PageSourceSearch

https://www.tailwindapp.com/_next/static/chunks/3ooag4qcs9s1q.js

js tailwindapp.com collected 2026-09-24 07:53:36 UTC 634,136 bytes, 12 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,592338,21078,702453,507972,831375,683970,617855,409163,522360,107892,251104,916344,879871,135679,790895,877468,913107,215363,407781,e=>{"use strict";let t,a,r,n,l,i;var o,s,u=e.i(276017),d=e.i(294237),c=e.i(524694);function m(...e){return(...t)=>{for(let a of e)"function"==typeof a&&a(...t)}}e.i(974908);let p="u">typeof document?c.default.useLayoutEffect:()=>{},h={prefix:String(Math.round(1e10*Math.random())),current:0},g=c.default.createContext(h),f=c.default.createContext(!1);"u">typeof window&&window.document&&window.document.createElement;let y=new WeakMap,b="function"==typeof c.default.useId?function(e){let t=c.default.useId(),[a]=(0,c.useState)(k()),r=a?"react-aria":`react-aria${h.prefix}`;return e||`${r}-${t}`}:function(e){let t=(0,c.useContext)(g),a=function(e=!1){let t=(0,c.useContext)(g),a=(0,c.useRef)(null);if(null===a.current&&!e){let e=c.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let a=y.get(e);null==a?y.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==a.state&&(t.current=a.id,y.delete(e))}a.current=++t.current}return a.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${a}`};function v(){return!1}function x(){return!0}function D(e){return()=>{}}function k(){return"function"==typeof c.default.useSyncExternalStore?c.default.useSyncExternalStore(D,v,x):(0,c.useContext)(f)}let C=!!("u">typeof window&&window.document&&window.document.createElement),w=new Map;function E(e){let[a,r]=(0,c.useState)(e),n=(0,c.useRef)(null),l=b(a),i=(0,c.useRef)(null);if(t&&t.register(i,l),C){let e=w.get(l);e&&!e.includes(n)?e.push(n):w.set(l,[n])}return p(()=>()=>{t&&t.unregister(i),w.delete(l)},[l]),(0,c.useEffect)(()=>{let e=n.current;return e&&r(e),()=>{e&&(n.current=null)}}),l}function S(e=[]){let t=E(),[a,r]=function(e){let[t,a]=(0,c.useState)(e),r=(0,c.useRef)(t),n=(0,c.useRef)(null),l=(0,c.useRef)(()=>{if(!n.current)return;let e=n.current.next();if(e.done){n.current=null;return}r.current===e.value?l.current():a(e.value)});return p(()=>{r.current=t,n.current&&l.current()}),[t,(0,c.useCallback)(e=>{n.current=e(r.current),l.current()},[l])]}(t),n=(0,c.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return p(n,[t,n,...e]),a}function P(...e){return 1===e.length&&e[0]?e[0]:t=>{let a=!1,r=e.map(e=>{let r=$(e,t);return a||="function"==typeof r,r});if(a)return()=>{r.forEach((t,a)=>{"function"==typeof t?t():$(e[a],null)})}}}function $(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}"u">typeof FinalizationRegistry&&(t=new FinalizationRegistry(e=>{w.delete(e)}));var R=e.i(7284);function N(...e){let t={...e[0]};for(let a=1;a<e.length;a++){let r=e[a];for(let e in r){let a=t[e],n=r[e];"function"==typeof a&&"function"==typeof n&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=m(a,n):("className"===e||"UNSAFE_className"===e)&&"string"==typeof a&&"string"==typeof n?t[e]=(0,R.default)(a,n):"id"===e&&a&&n?t.id=function(e,t){if(e===t)return e;let a=w.get(e);if(a)return a.forEach(e=>e.current=t),t;let r=w.get(t);return r?(r.forEach(t=>t.current=e),e):t}(a,n):"ref"===e&&a&&n?t.ref=P(a,n):t[e]=void 0!==n?n:a}}return t}function M(e){let t=(0,c.useRef)(null),a=(0,c.useRef)(void 0),r=(0,c.useCallback)(t=>{if("function"==typeof e){let a=e(t);return()=>{"function"==typeof a?a():e(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,c.useMemo)(()=>({get current(){return t.current},set current(value){t.current=value,a.current&&(a.current(),a.current=void 0),null!=value&&(a.current=r(value))}}),[r])}let T=Symbol("default");function F({values:e,children:t}){for(let[a,r]of e)t=c.default.createElement(a.Provider,{value:r},t);return t}function K(e){let{className:t,style:a,children:r,defaultClassName:n,defaultChildren:l,defaultStyle:i,values:o,render:s}=e;return(0,c.useMemo)(()=>{let e,u,d;return e="function"==typeof t?t({...o,defaultClassName:n}):t,u="function"==typeof a?a({...o,defaultStyle:i||{}}):a,d="function"==typeof r?r({...o,defaultChildren:l}):null==r?l:r,{className:e??n,style:u||i?{...i,...u}:void 0,children:d??l,"data-rac":"",render:s?e=>s(e,o):void 0}},[t,a,r,n,l,i,o,s])}function B(e,t){let a=(0,c.useContext)(e);if(null===t)return null;if(a&&"object"==typeof a&&"slots"in a&&a.slots){let e=t||T;if(!a.slots[e]){let e=new Intl.ListFormat().format(Object.keys(a.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:"A slot prop is required.";throw Error(`${r} Valid slot names are ${e}.`)}return a.slots[e]}return a}function A(e,t,a){let{ref:r,...n}=B(a,e.slot)||{},l=M((0,c.useMemo)(()=>P(t,r),[t,r])),i=N(n,e);return"style"in n&&n.style&&"style"in e&&e.style&&("function"==typeof n.style||"function"==typeof e.style?i.style=t=>{let a="function"==typeof n.style?n.style(t):n.style,r={...t.defaultStyle,...a},l="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...l}}:i.style={...n.style,...e.style}),[i,l]}
1function I(e=!0){let[t,a]=(0,c.useState)(e),r=(0,c.useRef)(!1),n=(0,c.useCallback)(e=>{r.current=!0,a(!!e)},[]);return p(()=>{r.current||a(!1)},[]),[n,t]}function z(e){let t=/^(data-.*)$/,a={};for(let r in e)t.test(r)||(a[r]=e[r]);return a}function V(e,t,a){let{render:r,...n}=t,l=(0,c.useRef)(null),i=(0,c.useMemo)(()=>P(a,l),[a,l]);p(()=>{},[e,r]);let o={...n,ref:i};return r?r(o,void 0):c.default.createElement(e,o)}let j={},L=new Proxy({},{get(e,t){if("string"!=typeof t)return;let a=j[t];return a||(a=(0,c.forwardRef)(V.bind(null,t)),j[t]=a),a}});"u">typeof HTMLTemplateElement&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));let O=(0,c.createContext)(!1);function U(e){if((0,c.useContext)(O))return c.default.createElement(c.default.Fragment,null,e.children);let t=c.default.createElement(O.Provider,{value:!0},e.children);return c.default.createElement("template",null,t)}function H(e){let t=(t,a)=>(0,c.useContext)(O)?null:e(t,a);return t.displayName=e.displayName||e.name,(0,c.forwardRef)(t)}let Z=(0,c.createContext)({}),W=H(function(e,t){[e,t]=A(e,t,Z);let{elementType:a="label",...r}=e,n=L[a];return c.default.createElement(n,{className:"react-aria-Label",...r,ref:t})}),G=new Set(["id"]),q=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),_=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Y=new Set(["dir","lang","hidden","inert","translate"]),J=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Q=/^(data-.*)$/;function X(e,t={}){let{labelable:a,isLink:r,global:n,events:l=n,propNames:i}=t,o={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(G.has(t)||a&&q.has(t)||r&&_.has(t)||n&&Y.has(t)||l&&(J.has(t)||t.endsWith("Capture")&&J.has(t.slice(0,-7)))||i?.has(t)||Q.test(t))&&(o[t]=e[t]);return o}function ee(e,t){let{id:a,"aria-label":r,"aria-labelledby":n}=e;return a=E(a),n&&r?n=[...new Set([a,...n.trim().split(/\s+/)])].join(" "):n&&(n=n.trim().split(/\s+/).join(" ")),r||n||!t||(r=t),{id:a,"aria-label":r,"aria-labelledby":n}}function et(e){let{id:t,label:a,"aria-labelledby":r,"aria-label":n,labelElementType:l="label"}=e;t=E(t);let i=E(),o={};return a&&(r=r?`${i} ${r}`:i,o={id:i,htmlFor:"label"===l?t:void 0}),{labelProps:o,fieldProps:ee({id:t,"aria-label":n,"aria-labelledby":r})}}let ea=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),er=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),en=Symbol.for("react-aria.i18n.locale");function el(){let e="u">typeof window&&window[en]||"u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:!function(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),a="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(a)return"rtl"===a.direction;if(t.script)return ea.has(t.script)}let t=e.split("-")[0];return er.has(t)}(e)?"ltr":"rtl"}}let ei=el(),eo=new Set;function es(){for(let e of(ei=el(),eo))e(ei)}let eu=c.default.createContext(null);function ed(){let e=function(){let e=k(),[t,a]=(0,c.useState)(ei);return((0,c.useEffect)(()=>(0===eo.size&&window.addEventListener("languagechange",es),eo.add(a),()=>{eo.delete(a),0===eo.size&&window.removeEventListener("languagechange",es)}),[]),e)?{locale:"u">typeof window&&window[en]||"en-US",direction:"ltr"}:t}();return(0,c.useContext)(eu)||e}let ec=new Map,em=!1;try{em="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let ep=!1;try{ep="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}let eh={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class eg{constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:a}=t;if(a&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${a}`),"unit"===t.style&&!ep){let{unit:e,unitDisplay:a="short"}=t;if(!e)throw Error('unit option must be provided with style: "unit"');if(!eh[e]?.[a])throw Error(`Unsupported unit ${e} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort((e,t)=>
1e[0]<t[0]?-1:1).join():"");if(ec.has(r))return ec.get(r);let n=new Intl.NumberFormat(e,t);return ec.set(r,n),n}(e,t),this.options=t}format(e){let t="";if(t=em||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,a){if("auto"===t)return e.format(a);{if("never"===t)return e.format(Math.abs(a));let r=!1;if("always"===t?r=a>0||Object.is(a,0):"exceptZero"===t&&(Object.is(a,-0)||Object.is(a,0)?a=Math.abs(a):r=a>0),!r)return e.format(a);{let t=e.format(-a),r=e.format(a),n=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!=[...n].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(n,"+").replace("!!!",r)}}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!ep){let{unit:e,unitDisplay:a="short",locale:r}=this.resolvedOptions();if(!e)return t;let n=eh[e]?.[a];t+=n[r]||n.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let a=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...a.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return em||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),ep||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}}function ef(e={}){let{locale:t}=ed();return(0,c.useMemo)(()=>new eg(t,e),[t,e])}function ey(e,t=-1/0,a=1/0){return Math.min(Math.max(e,t),a)}function eb(e,t){let a=e,r=0,n=t.toString(),l=n.toLowerCase().indexOf("e-");if(l>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+l;else{let e=n.indexOf(".");e>=0&&(r=n.length-e)}if(r>0){let e=Math.pow(10,r);a=Math.round(a*e)/e}return a}function ev(e,t,a,r){t=Number(t),a=Number(a);let n=(e-(isNaN(t)?0:t))%r,l=eb(2*Math.abs(n)>=r?e+Math.sign(n)*(r-Math.abs(n)):e-n,r);return isNaN(t)?!isNaN(a)&&l>a&&(l=Math.floor(eb(a/r,r))*r):l<t?l=t:!isNaN(a)&&l>a&&(l=t+Math.floor(eb((a-t)/r,r))*r),l=eb(l,r)}function ex(e,t,a=10){let r=Math.pow(a,t);return Math.round(e*r)/r}function eD(e){let{value:t=0,minValue:a=0,maxValue:r=100,valueLabel:n,isIndeterminate:l,formatOptions:i={style:"percent"}}=e,o=X(e,{labelable:!0}),{labelProps:s,fieldProps:u}=et({...e,labelElementType:"span"}),d=((t=ey(t,a,r))-a)/(r-a),c=ef(i);if(!l&&!n){let e="percent"===i.style?d:t;n=c.format(e)}return{progressBarProps:N(o,{...u,"aria-valuenow":l?void 0:t,"aria-valuemin":a,"aria-valuemax":r,"aria-valuetext":l?void 0:n,role:"progressbar"}),labelProps:s}}let ek=(0,c.createContext)(null),eC=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,ek);let{value:a=0,minValue:r=0,maxValue:n=100,isIndeterminate:l=!1}=e;a=ey(a,r,n);let[i,o]=I(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=eD({...e,label:o}),d=l?void 0:(a-r)/(n-r)*100,m=K({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:d,valueText:s["aria-valuetext"],isIndeterminate:l}}),p=X(e,{global:!0});return c.default.createElement(L.div,{...N(p,m,s),ref:t,slot:e.slot||void 0},c.default.createElement(Z.Provider,{value:{...u,ref:i,elementType:"span"}},m.children))}),ew=null;function eE(e,t="assertive",a=7e3){ew?ew.announce(e,t,a):(ew=new eS,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"u">typeof jest)?ew.announce(e,t,a):setTimeout(()=>{ew?.isAttached()&&ew?.announce(e,t,a)},100))}class eS{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"u">typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",a=7e3){if(!this.node)return;let r=document.createElement("div");"object"==typeof e?(r.setAttribute("role","img"),r.setAttribute("aria-labelledby",e["aria-labelledby"])):r.textContent=e,"assertive"===t?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),""!==e&&setTimeout(()=>{r.remove()},a)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}}function eP(e){if(function(){if(null==e$){e$=!1;try{document.createElement("div").focus({get preventScroll(){return e$=!0,!0}})}catch{}}return e$}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,a=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&a.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&a.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),a}(e);e.focus(),function(e){for(let{element:t,scrollTop:a,scrollLeft:r}of e)t.scrollTop=a,t.scrollLeft=r}(t)}}let e$=null,eR=e=>e?.ownerDocument??document,eN=e=>e&&"window"in e&&e.window===e?e:eR(e).defaultView||window;function eM(e,t){return!!t&&!!e&&e.contains(t)}function eT(e){return e.target}function eF(e){if(!e)return!1;let t=e.getRootNode(),a=eN(e);if(!(t instanceof a.Document||t instanceof a.ShadowRoot))return!1;let r=t.activeElement;return null!=r&&e.contains(r)}let eK="u">typeof Element&&"checkVisibility"in Element.prototype;function eB(e,t){return eK?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){let t=eN(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:a,visibility:r}
1=e.style,n="none"!==a&&"hidden"!==r&&"collapse"!==r;if(n){let{getComputedStyle:t}=eN(e),{display:a,visibility:r}=t(e);n="none"!==a&&"hidden"!==r&&"collapse"!==r}return n}(e)&&!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))&&(!e.parentElement||eB(e.parentElement,e))}let eA=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],eI=eA.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";eA.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let ez=eA.join(':not([hidden]):not([tabindex="-1"]),');function eV(e,t){return e.matches(eI)&&!eL(e)&&(t?.skipVisibilityCheck||eB(e))}function ej(e){return e.matches(ez)&&eB(e)&&!eL(e)}function eL(e){let t=e;for(;null!=t;){if(t instanceof eN(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function eO(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function eU(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function eH(e){let t=(0,c.useRef)({isFocused:!1,observer:null});return p(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,c.useCallback)(a=>{let r=eT(a);(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&(t.current.isFocused=!0,r.addEventListener("focusout",a=>{if(t.current.isFocused=!1,r.disabled){let t=eO(a);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer?.disconnect();let e=r===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]}))},[e])}let eZ=!1;function eW(e){if("u"<typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function eG(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function eq(e){let t=null;return()=>(null==t&&(t=e()),t)}let e_=eq(function(){return eG(/^Mac/i)}),eY=eq(function(){return eG(/^iPhone/i)}),eJ=eq(function(){return eG(/^iPad/i)||e_()&&navigator.maxTouchPoints>1}),eQ=eq(function(){return eY()||eJ()}),eX=eq(function(){return e_()||eQ()}),e0=eq(function(){return eW(/AppleWebKit/i)&&!e1()}),e1=eq(function(){return eW(/Chrome/i)}),e4=eq(function(){return eW(/Android/i)}),e3=eq(function(){return eW(/Firefox/i)});function e5(e){return""===e.pointerType&&!!e.isTrusted||(e4()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}let e2=(0,c.createContext)({isNative:!0,open:function(e,t){if(e instanceof HTMLAnchorElement)e7(e,t);else if(e.hasAttribute("data-href")){let a=document.createElement("a");a.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(a.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(a.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(a.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(a.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(a.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(a),e7(a,t),e.removeChild(a)}},useHref:e=>e});function e6(){return(0,c.useContext)(e2)}function e7(e,t,a=!0){let{metaKey:r,ctrlKey:n,altKey:l,shiftKey:i}=t;e3()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(e_()?r=!0:n=!0);let o=e0()&&e_()&&!eJ()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:n,altKey:l,shiftKey:i}):new MouseEvent("click",{metaKey:r,ctrlKey:n,altKey:l,shiftKey:i,detail:1,bubbles:!0,cancelable:!0});e7.isOpening=a,eP(e),e.dispatchEvent(o),e7.isOpening=!1}e7.isOpening=!1;function e9(e){let t=e6().useHref(e?.href??""),a={};if(e)for(let r of["href","target","rel","download","ping","referrerPolicy"])r in e&&(a[r]="href"===r?t:e[r]);return a}function e8(e,t,a,r){var n;let l;!(!t.isNative&&e.currentTarget instanceof HTMLAnchorElement)||!e.currentTarget.href||e.isDefaultPrevented()||(n=e.currentTarget,(l=n.getAttribute("target"))&&"_self"!==l||n.origin!==location.origin||n.hasAttribute("download")||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)||!a||(e.preventDefault(),t.open(e.currentTarget,e,a,r))}let te=null,tt=new Set,ta=new Map,tr=!1,tn=!1,tl={Tab:!0,Escape:!0};function ti(e,t){for(let a of tt)a(e,t)}function to(e){tr=!0,e7.isOpening||e.metaKey||!e_()&&e.altKey||e.ctrlKey||"Control"
1===e.key||"Shift"===e.key||"Meta"===e.key||(te="keyboard",ti("keyboard",e))}function ts(e){te="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(tr=!0,ti("pointer",e))}function tu(e){!e7.isOpening&&e5(e)&&(tr=!0,te="virtual")}function td(e){let t=eN(eT(e)),a=eR(eT(e));eT(e)!==t&&eT(e)!==a&&!eZ&&e.isTrusted&&(tr||tn||(te="virtual",ti("virtual",e)),tr=!1,tn=!1)}function tc(){eZ||(tr=!1,tn=!0)}function tm(e){if("u"<typeof window||"u"<typeof document)return;let t=eN(e),a=eR(e);if(ta.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){tr=!0,r.apply(this,arguments)}}),a.addEventListener("keydown",to,!0),a.addEventListener("keyup",to,!0),a.addEventListener("click",tu,!0),t.addEventListener("focus",td,!0),t.addEventListener("blur",tc,!1),"u">typeof PointerEvent&&(a.addEventListener("pointerdown",ts,!0),a.addEventListener("pointermove",ts,!0),a.addEventListener("pointerup",ts,!0)),t.addEventListener("beforeunload",()=>{tp(e)},{once:!0}),ta.set(t,{focus:r})}let tp=(e,t)=>{let a=eN(e),r=eR(e);t&&r.removeEventListener("DOMContentLoaded",t),ta.has(a)&&(Reflect.defineProperty(a.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:ta.get(a).focus}),r.removeEventListener("keydown",to,!0),r.removeEventListener("keyup",to,!0),r.removeEventListener("click",tu,!0),a.removeEventListener("focus",td,!0),a.removeEventListener("blur",tc,!1),"u">typeof PointerEvent&&(r.removeEventListener("pointerdown",ts,!0),r.removeEventListener("pointermove",ts,!0),r.removeEventListener("pointerup",ts,!0)),ta.delete(a))};function th(){return"pointer"!==te}function tg(e){te=e,ti(e,null)}"u">typeof document&&("loading"!==(l=eR(void 0)).readyState?tm(void 0):l.addEventListener("DOMContentLoaded",()=>{tm(void 0)}));let tf=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),ty=new Map,tb=new Set;function tv(){if("u"<typeof window)return;function e(e){return"propertyName"in e}let t=a=>{let r=eT(a);if(!e(a)||!r)return;let n=ty.get(r);if(n&&(n.delete(a.propertyName),0===n.size&&(r.removeEventListener("transitioncancel",t),ty.delete(r)),0===ty.size)){for(let e of tb)e();tb.clear()}};document.body.addEventListener("transitionrun",a=>{let r=eT(a);if(!e(a)||!r)return;let n=ty.get(r);n||(n=new Set,ty.set(r,n),r.addEventListener("transitioncancel",t,{once:!0})),n.add(a.propertyName)}),document.body.addEventListener("transitionend",t)}function tx(e){requestAnimationFrame(()=>{for(let[e]of ty)"isConnected"in e&&!e.isConnected&&ty.delete(e);0===ty.size?e():tb.add(e)})}function tD(e){if(!e.isConnected)return;let t=eR(e);if("virtual"===te){let a=((e=document)=>e.activeElement)(t);tx(()=>{let r=((e=document)=>e.activeElement)(t);(r===a||r===t.body)&&e.isConnected&&eP(e)})}else eP(e)}function tk(e){let{isDisabled:t,onFocus:a,onBlur:r,onFocusChange:n}=e,l=(0,c.useCallback)(e=>{if(eT(e)===e.currentTarget)return r&&r(e),n&&n(!1),!0},[r,n]),i=eH(l),o=(0,c.useCallback)(e=>{let t=eT(e),r=eR(t),l=r?((e=document)=>e.activeElement)(r):((e=document)=>e.activeElement)();t===e.currentTarget&&t===l&&(a&&a(e),n&&n(!0),i(e))},[n,a,i]);return{focusProps:{onFocus:!t&&(a||n||r)?o:void 0,onBlur:!t&&(r||n)?l:void 0}}}function tC(e){if(!e)return;let t=!0;return a=>{e({...a,preventDefault(){a.preventDefault()},isDefaultPrevented:()=>a.isDefaultPrevented(),stopPropagation(){t=!0},continuePropagation(){t=!1,"function"==typeof a.continuePropagation&&a.continuePropagation()},isPropagationStopped:()=>t}),t&&a.stopPropagation()}}function tw(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:tC(e.onKeyDown),onKeyUp:tC(e.onKeyUp)}}}function tE(e,t){p(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}"u">typeof document&&("loading"!==document.readyState?tv():document.addEventListener("DOMContentLoaded",tv));let tS=c.default.createContext(null),tP=c.default.forwardRef(function(e,t){let{children:a,...r}=e,n=M(t),l={...r,ref:n};return c.default.createElement(tS.Provider,{value:l},a)});function t$(e,t){let{focusProps:a}=tk(e),{keyboardProps:r}=tw(e),n=N(a,r),l=function(e){let t=(0,c.useContext)(tS)||{};tE(t,e);let{ref:a,...r}=t;return r}(t),i=e.isDisabled?{}:l,o=(0,c.useRef)(e.autoFocus);(0,c.useEffect)(()=>{o.current&&t.current&&tD(t.current),o.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:N({...n,tabIndex:s},i)}}let tR="default",tN="",tM=new WeakMap;
1function tT(e){if(eQ()){if("default"===tR){let t=eR(e);tN=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}tR="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";tM.set(e,e.style[t]),e.style[t]="none"}}function tF(e){if(eQ())"disabled"===tR&&(tR="restoring",setTimeout(()=>{tx(()=>{if("restoring"===tR){let t=eR(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=tN||""),tN="",tR="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&tM.has(e)){let t=tM.get(e),a="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[a]&&(e.style[a]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),tM.delete(e)}}function tK(e){let t=e?.defaultView;return t?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let tB=new WeakMap;function tA(e){let t=e??("u">typeof document?document:void 0);if(!t)return tK(t);if(tB.has(t))return tB.get(t);let a=t.querySelector('meta[property="csp-nonce"]'),r=a&&a instanceof eN(a).HTMLMetaElement&&(a.nonce||a.content)||tK(t)||void 0;return void 0!==r&&tB.set(t,r),r}let tI=c.default.createContext({register:()=>{}});tI.displayName="PressResponderContext";let tz=c.default.useInsertionEffect??p;function tV(e){let t=(0,c.useRef)(null);return tz(()=>{t.current=e},[e]),(0,c.useCallback)((...e)=>{let a=t.current;return a?.(...e)},[])}function tj(){let e=(0,c.useRef)(new Map),t=(0,c.useCallback)((t,a,r,n)=>{let l=n?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:a,eventTarget:t,fn:l,options:n}),t.addEventListener(a,l,n)},[]),a=(0,c.useCallback)((t,a,r,n)=>{let l=e.current.get(r)?.fn||r;t.removeEventListener(a,l,n),e.current.delete(r)},[]),r=(0,c.useCallback)(()=>{e.current.forEach((e,t)=>{a(e.eventTarget,e.type,t,e.options)})},[a]);return(0,c.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:a,removeAllGlobalListeners:r}}var tL=e.i(989981);class tO{#e;constructor(e,t,a,r){this.#e=!0;let n=r?.target??a.currentTarget;const l=n?.getBoundingClientRect();let i,o=0,s,u=null;null!=a.clientX&&null!=a.clientY&&(s=a.clientX,u=a.clientY),l&&(null!=s&&null!=u?(i=s-l.left,o=u-l.top):(i=l.width/2,o=l.height/2)),this.type=e,this.pointerType=t,this.target=a.currentTarget,this.shiftKey=a.shiftKey,this.metaKey=a.metaKey,this.ctrlKey=a.ctrlKey,this.altKey=a.altKey,this.x=i,this.y=o,this.key=a.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}let tU=Symbol("linkClicked"),tH="react-aria-pressable-style",tZ="data-react-aria-pressable";function tW(e){let{onPress:t,onPressChange:a,onPressStart:r,onPressEnd:n,onPressUp:l,onClick:i,isDisabled:o,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:p,ref:h,...g}=function(e){let t=(0,c.useContext)(tI);if(t){let{register:a,ref:r,...n}=t;e=N(n,e),a()}return tE(t,e.ref),e}(e),[f,y]=(0,c.useState)(!1),b=(0,c.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:x}=tj(),D=(0,c.useCallback)((e,t)=>{let n=b.current;if(o||n.didFirePressStart)return!1;let l=!0;if(n.isTriggeringEvent=!0,r){let a=new tO("pressstart",t,e);r(a),l=a.shouldStopPropagation}return a&&a(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,y(!0),l},[o,r,a]),k=(0,c.useCallback)((e,r,l=!0)=>{let i=b.current;if(!i.didFirePressStart)return!1;i.didFirePressStart=!1,i.isTriggeringEvent=!0;let s=!0;if(n){let t=new tO("pressend",r,e);n(t),s=t.shouldStopPropagation}if(a&&a(!1),y(!1),t&&l&&!o){let a=new tO("press",r,e);t(a),s&&=a.shouldStopPropagation}return i.isTriggeringEvent=!1,s},[o,n,a,t]),C=tV(k),w=tV((0,c.useCallback)((e,t)=>{let a=b.current;if(o)return!1;if(l){a.isTriggeringEvent=!0;let r=new tO("pressup",t,e);return l(r),a.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[o,l])),E=(0,c.useCallback)(e=>{let t=b.current;if(t.isPressed&&t.target){for(let a of(t.didFirePressStart&&null!=t.pointerType&&k(t_(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,x(),p||tF(t.target),t.disposables)
1)a();t.disposables=[]}},[p,x,k]),S=tV(E);(0,c.useEffect)(()=>{o&&b.current.isPressed&&S({currentTarget:b.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[o]);let P=(0,c.useCallback)(e=>{d&&E(e)},[d,E]),$=(0,c.useCallback)(e=>{o||i?.(e)},[o,i]),R=(0,c.useCallback)((e,t)=>{if(!o&&i){let a=new MouseEvent("click",e);eU(a,t),i(eO(a))}},[o,i]),M=(0,c.useMemo)(()=>{let e=b.current,t={onKeyDown(t){if(tq(t.nativeEvent,t.currentTarget)&&eM(t.currentTarget,eT(t))){tY(eT(t),t.key)&&t.preventDefault();let r=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",r=D(t,"keyboard"));let n=t.currentTarget;v(eR(t.currentTarget),"keyup",m(t=>{tq(t,n)&&!t.repeat&&eM(n,eT(t))&&e.target&&w(t_(e.target,t),"keyboard")},a),!0),r&&t.stopPropagation(),t.metaKey&&e_()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||eM(t.currentTarget,eT(t)))&&t&&0===t.button&&!e.isTriggeringEvent&&!e7.isOpening){let a=!0;if(o&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||e5(t.nativeEvent))){let e=D(t,"virtual"),r=w(t,"virtual"),n=C(t,"virtual");$(t),a=e&&r&&n}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual",n=w(t_(t.currentTarget,t),r),l=C(t_(t.currentTarget,t),r,!0);a=n&&l,e.isOverTarget=!1,$(t),S(t)}e.ignoreEmulatedMouseEvents=!1,a&&t.stopPropagation()}}},a=t=>{if(e.isPressed&&e.target&&tq(t,e.target)){tY(eT(t),t.key)&&t.preventDefault();let a=eT(t),r=eM(e.target,a);C(t_(e.target,t),"keyboard",r),r&&R(t,e.target),x(),"Enter"!==t.key&&tG(e.target)&&eM(e.target,a)&&!t[tU]&&(t[tU]=!0,e7(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if("Meta"===t.key&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;for(let a of(e.metaKeyEvents=void 0,t.values()))e.target?.dispatchEvent(new KeyboardEvent("keyup",a))}};if("u">typeof PointerEvent){t.onPointerDown=t=>{var n;if(0!==t.button||!eM(t.currentTarget,eT(t)))return;if(n=t.nativeEvent,!e4()&&0===n.width&&0===n.height||1===n.width&&1===n.height&&0===n.pressure&&0===n.detail&&"mouse"===n.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let l=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,p||tT(e.target),l=D(t,e.pointerType);let n=eT(t);"releasePointerCapture"in n&&("hasPointerCapture"in n?n.hasPointerCapture(t.pointerId)&&n.releasePointerCapture(t.pointerId):n.releasePointerCapture(t.pointerId)),v(eR(t.currentTarget),"pointerup",a,!1),v(eR(t.currentTarget),"pointercancel",r,!1)}l&&t.stopPropagation()},t.onMouseDown=t=>{if(eM(t.currentTarget,eT(t))&&0===t.button){if(u){let a=function(e){for(;e&&!eV(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=eN(e),a=t.document.activeElement;if(!a||a===e)return;eZ=!0;let r=!1,n=e=>{(eT(e)===a||r)&&e.stopImmediatePropagation()},l=t=>{(eT(t)===a||r)&&(t.stopImmediatePropagation(),e||r||(r=!0,eP(a),s()))},i=t=>{(eT(t)===e||r)&&t.stopImmediatePropagation()},o=t=>{(eT(t)===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,eP(a),s()))};t.addEventListener("blur",n,!0),t.addEventListener("focusout",l,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",n,!0),t.removeEventListener("focusout",l,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",i,!0),eZ=!1,r=!1},u=requestAnimationFrame(s);return s}(t.target);a&&e.disposables.push(a)}t.stopPropagation()}},t.onPointerUp=t=>{eM(t.currentTarget,eT(t))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||w(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,D(t_(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,C(t_(e.target,t),e.pointerType,!1),P(t))};let a=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(eM(e.target,eT(t))&&null!=e.pointerType){let a=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(a?S(t):(eP(e.target),e.target.click()))},80);v(t.currentTarget,"click",()=>a=!0,!0),e.disposables.push(()=>clearTimeout(r))}else S(t);e.isOverTarget=!1}},r=e=>{S(e)};t.onDragStart=e=>{eM(e.currentTarget,eT(e))&&S(e)}}return t},[v,o,u,x,p,P,D,$,R]);return(0,c.useEffect)(()=>
1{if(!h)return;let e=eR(h.current);if(!e||!e.head||e.getElementById(tH))return;let t=e.createElement("style");t.id=tH;let a=tA(e);a&&(t.nonce=a),t.textContent=`
2@layer {
3  [${tZ}] {
4    touch-action: pan-x pan-y pinch-zoom;
5  }
6}
7    `.trim(),e.head.prepend(t)},[h]),(0,c.useEffect)(()=>{let e=b.current;return()=>{for(let t of(p||tF(e.target??void 0),e.disposables))t();e.disposables=[]}},[p]),{isPressed:s||f,pressProps:N(g,M,{[tZ]:!0})}}function tG(e){return"A"===e.tagName&&e.hasAttribute("href")}function tq(e,t){let{key:a,code:r}=e,n=t.getAttribute("role");return("Enter"===a||" "===a||"Spacebar"===a||"Space"===r)&&!(t instanceof eN(t).HTMLInputElement&&!tQ(t,a)||t instanceof eN(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===n||!n&&tG(t))&&"Enter"!==a)}function t_(e,t){let a=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:a,clientY:r,key:t.key}}function tY(e,t){return e instanceof HTMLInputElement?!tQ(e,t):!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!tG(e))}let tJ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function tQ(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:tJ.has(e.type)}function tX(e,t){let a,{elementType:r="button",isDisabled:n,onPress:l,onPressStart:i,onPressEnd:o,onPressUp:s,onPressChange:u,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:m,href:p,target:h,rel:g,type:f="button"}=e;a="button"===r?{type:f,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:"button",href:"a"!==r||n?void 0:p,target:"a"===r?h:void 0,type:"input"===r?f:void 0,disabled:"input"===r?n:void 0,"aria-disabled":n&&"input"!==r?n:void 0,rel:"a"===r?g:void 0};let{pressProps:y,isPressed:b}=tW({onPressStart:i,onPressEnd:o,onPressChange:u,onPress:l,onPressUp:s,onClick:m,isDisabled:n,preventFocusOnPress:d,ref:t}),{focusableProps:v}=t$(e,t);c&&(v.tabIndex=n?-1:v.tabIndex);let x=N(v,y,X(e,{labelable:!0}));return{isPressed:b,buttonProps:N(a,x,{"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"],"aria-disabled":e["aria-disabled"]})}}function t0(e){let{isDisabled:t,onBlurWithin:a,onFocusWithin:r,onFocusWithinChange:n}=e,l=(0,c.useRef)({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:o}=tj(),s=(0,c.useCallback)(e=>{eM(e.currentTarget,eT(e))&&l.current.isFocusWithin&&!eM(e.currentTarget,e.relatedTarget)&&(l.current.isFocusWithin=!1,o(),a&&a(e),n&&n(!1))},[a,n,l,o]),u=eH(s),d=(0,c.useCallback)(e=>{if(!eM(e.currentTarget,eT(e)))return;let t=eT(e),a=eR(t),o=((e=document)=>e.activeElement)(a);if(!l.current.isFocusWithin&&o===t){r&&r(e),n&&n(!0),l.current.isFocusWithin=!0,u(e);let t=e.currentTarget;i(a,"focus",e=>{let r=eT(e);if(l.current.isFocusWithin&&!eM(t,r)){let e=new a.defaultView.FocusEvent("blur",{relatedTarget:r});eU(e,t),s(eO(e))}},{capture:!0})}},[r,n,u,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}function t1(e={}){var t;let{autoFocus:a=!1,isTextInput:r,within:n}=e,l=(0,c.useRef)({isFocused:!1,isFocusVisible:a||th()}),[i,o]=(0,c.useState)(!1),[s,u]=(0,c.useState)(()=>l.current.isFocused&&l.current.isFocusVisible),d=(0,c.useCallback)(()=>u(l.current.isFocused&&l.current.isFocusVisible),[]),m=(0,c.useCallback)(e=>{l.current.isFocused=e,l.current.isFocusVisible=th(),o(e),d()},[d]);t={enabled:i,isTextInput:r},tm(),(0,c.useEffect)(()=>{if(t?.enabled===!1)return;let e=(e,a)=>{var r;let n,i,o,s,u,c,m,p;r=!!t?.isTextInput,i=eR(n=a?eT(a):void 0),s=void 0!==(o=eN(n))?o.HTMLInputElement:HTMLInputElement,u=void 0!==o?o.HTMLTextAreaElement:HTMLTextAreaElement,c=void 0!==o?o.HTMLElement:HTMLElement,m=void 0!==o?o.KeyboardEvent:KeyboardEvent,p=((e=document)=>e.activeElement)(i),(r=r||p instanceof s&&!tf.has(p.type)||p instanceof u||p instanceof c&&p.isContentEditable)&&"keyboard"===e&&a instanceof m&&!tl[a.key]||(e=>{l.current.isFocusVisible=e,d()})(th())};return tt.add(e),()=>{tt.delete(e)}},[r,i]);let{focusProps:p}=tk({isDisabled:n,onFocusChange:m}),{focusWithinProps:h}=t0({isDisabled:!n,onFocusWithinChange:m});return{isFocused:i,isFocusVisible:s,focusProps:n?h:p}}let t4=!1,t3=0;function t5(e){"touch"===e.pointerType&&(t4=!0,setTimeout(()=>{t4=!1},500))}function t2(){let e=eR(null);if(void 0!==e)return 0===t3&&"u">typeof PointerEvent&&e.addEventListener("pointerup",t5),t3++,()=>{!(--t3>0)&&"u">typeof PointerEvent&&e.removeEventListener("pointerup",t5)}}function t6(e){let{onHoverStart:t,onHoverChange:a,onHoverEnd:r,isDisabled:n}=e,[l,i]=(0,c.useState)(!1),o=(0,c.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,c.useEffect)(t2,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=tj(),{hoverProps:d,triggerHoverEnd:m}=(0,c.useMemo)(()=>{let e=(e,t)=>
7{let n=o.target;o.pointerType="",o.target=null,"touch"!==t&&o.isHovered&&n&&(o.isHovered=!1,u(),r&&r({type:"hoverend",target:n,pointerType:t}),a&&a(!1),i(!1))},l={};return"u">typeof PointerEvent&&(l.onPointerEnter=r=>{t4&&"mouse"===r.pointerType||((r,l)=>{if(o.pointerType=l,n||"touch"===l||o.isHovered||!eM(r.currentTarget,eT(r)))return;o.isHovered=!0;let u=r.currentTarget;o.target=u,s(eR(eT(r)),"pointerover",t=>{o.isHovered&&o.target&&!eM(o.target,eT(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:l}),a&&a(!0),i(!0)})(r,r.pointerType)},l.onPointerLeave=t=>{!n&&eM(t.currentTarget,eT(t))&&e(t,t.pointerType)}),{hoverProps:l,triggerHoverEnd:e}},[t,a,r,n,o,s,u]);return(0,c.useEffect)(()=>{n&&m({currentTarget:o.target},o.pointerType)},[n]),{hoverProps:d,isHovered:l}}let t7=(0,c.createContext)({}),t9=H(function(e,t){[e,t]=A(e,t,t7);let a=e,{isPending:r}=a,{buttonProps:n,isPressed:l}=tX(e,t);n=function(e,t){if(t){for(let t in e)t.startsWith("on")&&!t8.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}(n,r);let{focusProps:i,isFocused:o,isFocusVisible:s}=t1(e),{hoverProps:u,isHovered:d}=t6({...e,isDisabled:e.isDisabled||r}),m={isHovered:d,isPressed:(a.isPressed||l)&&!r,isFocused:o,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:r??!1},p=K({...e,values:m,defaultClassName:"react-aria-Button"}),h=E(n.id),g=E(),f=n["aria-labelledby"];r&&(f?f=`${f} ${g}`:n["aria-label"]&&(f=`${h} ${g}`));let y=(0,c.useRef)(r);(0,c.useEffect)(()=>{let e={"aria-labelledby":f||h};!y.current&&o&&r?eE(e,"assertive"):y.current&&o&&!r&&eE(e,"assertive"),y.current=r},[r,o,f,h]);let b=X(e,{global:!0});return delete b.onClick,c.default.createElement(L.button,{...N(b,p,n,i,u),type:"submit"===n.type&&r?"button":n.type,id:h,ref:t,"aria-labelledby":f,slot:e.slot||void 0,"aria-disabled":r?"true":n["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":d||void 0,"data-focused":o||void 0,"data-pending":r||void 0,"data-focus-visible":s||void 0},c.default.createElement(ek.Provider,{value:{id:g}},p.children))}),t8=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;var ae=e.i(854769);function at(...e){return(0,ae.twMerge)((0,R.clsx)(e))}let aa="outline-none data-focus-visible:ring-2 data-focus-visible:ring-blue-600/50 data-focus-visible:ring-offset-2 dark:data-focus-visible:ring-offset-gray-900",ar=at("underline-offset-3 transition-colors duration-150 cursor-pointer",aa),an=(0,d.cva)(ar,{variants:{variant:{default:at("text-blue-600 underline decoration-blue-300 decoration-2","data-hover:text-blue-600","dark:text-blue-400 dark:decoration-blue-700 dark:data-hover:text-blue-300"),subtle:at("text-gray-700 underline decoration-gray-300 decoration-2","data-hover:text-gray-900","dark:text-gray-300 dark:decoration-gray-600 dark:data-hover:text-gray-100"),muted:at("text-gray-400 no-underline","data-hover:text-gray-600 data-hover:underline","dark:text-gray-500 dark:data-hover:text-gray-300")}}}),al=(0,d.cva)("text-blue-600 animate-spin",{variants:{size:{sm:"size-5",md:"size-7",lg:"size-9"}}}),ai=(0,c.forwardRef)(({size:e="md",className:t,...a},r)=>(0,u.jsx)(eC,{ref:r,isIndeterminate:!0,className:at(al({size:e}),t),"aria-label":a["aria-label"]??"Loading",...a,children:(0,u.jsxs)("svg",{className:"w-full h-full",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",role:"img","aria-label":"Loading",children:[(0,u.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3"}),(0,u.jsx)("path",{className:"opacity-75",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",d:"M22 12a10 10 0 01-10 10"})]})}));ai.displayName="Spinner",e.s(["Spinner",0,ai],21078);let ao=at("select-none whitespace-nowrap cursor-pointer","inline-flex items-center justify-center gap-1.5 relative","font-medium outline-none","transition-all duration-150","data-
7pressed:scale-[0.97]","data-disabled:opacity-50 data-disabled:cursor-not-allowed","min-h-[44px] md:min-h-0",aa),as=(0,d.cva)(ao,{variants:{variant:{primary:at("bg-blue-600 text-white rounded-lg","data-hover:bg-blue-700","data-pressed:bg-blue-800"),secondary:at("bg-white text-gray-700 border border-gray-300 rounded-lg","data-hover:bg-gray-50","data-pressed:bg-gray-100","dark:bg-gray-800 dark:text-gray-100 dark:border-gray-600","dark:data-hover:bg-gray-700","dark:data-pressed:bg-gray-600"),ghost:at("bg-transparent text-current rounded-lg","data-hover:bg-gray-900/5","data-pressed:bg-gray-900/10","dark:data-hover:bg-white/10","dark:data-pressed:bg-white/20"),danger:at("bg-white border border-red-500 text-red-500 rounded-lg","data-hover:bg-red-50","data-pressed:bg-red-100","dark:bg-gray-800 dark:text-red-400 dark:border-red-400","dark:data-hover:bg-red-950","dark:data-pressed:bg-red-900"),gray:at("bg-gray-100 text-gray-700 rounded-lg","data-hover:bg-gray-200","data-pressed:bg-gray-300","dark:bg-gray-700 dark:text-gray-100","dark:data-hover:bg-gray-600","dark:data-pressed:bg-gray-500"),pinterest:at("bg-pinterest text-white rounded-lg","data-hover:bg-pinterest-hover","data-pressed:bg-pinterest-active"),instagram:at("bg-instagram text-white rounded-lg","data-hover:bg-instagram-hover","data-pressed:bg-instagram-active"),facebook:at("bg-facebook text-white rounded-lg","data-hover:bg-facebook-hover","data-pressed:bg-facebook-active"),link:at("bg-transparent text-blue-600","data-hover:text-blue-700","data-pressed:text-blue-800","dark:text-blue-400","dark:data-hover:text-blue-300","dark:data-pressed:text-blue-200"),upgrade:at("bg-success-500 text-white rounded-lg","data-hover:bg-success-600","data-pressed:bg-success-700","dark:bg-success-600","dark:text-white","dark:data-hover:bg-success-700","dark:data-pressed:bg-success-800")},size:{sm:"h-8 px-3 text-sm",md:"h-9 px-4 text-sm",lg:"h-10 px-5 text-base","icon-xs":"size-6 rounded-md p-0","icon-sm":"size-8 rounded-lg p-0","icon-md":"size-9 rounded-lg p-0","icon-lg":"size-10 rounded-lg p-0"}}}),au=(0,c.forwardRef)(({children:e,headless:t=!1,variant:a="primary",start:r,end:n,size:l="md",isPending:i,className:o,...s},d)=>{let c="inline-link"===a,m=!!r&&!l?.startsWith("icon-"),p=t?o:c?at(an({variant:"default"}),i&&"opacity-50 cursor-not-allowed",o):at(as({size:l,variant:a}),m&&("sm"===l?"pl-2":"lg"===l?"pl-4":"pl-3"),o),h=t||c?(0,u.jsxs)(u.Fragment,{children:[r,e,n]}):(0,u.jsxs)("span",{className:at("inline-flex w-full gap-1.5 items-center",n?"justify-between":"justify-center",i?"opacity-0":void 0),children:[r,e,n]});return(0,u.jsxs)(t9,{ref:d,className:p,isPending:i,...s,children:[h,i&&!c?(0,u.jsx)("span",{className:at("absolute inset-0 flex items-center justify-center","primary"===a&&"opacity-60"),children:(0,u.jsx)(ai,{"aria-label":"Loading",size:"sm",className:"text-current"})}):null]})});au.displayName="Button",e.s(["Button",0,au,"buttonVariants",0,as],702453);let ad=(0,d.cva)("grid grid-cols-[auto_1fr_auto] items-start",{variants:{variant:{info:at("bg-blue-50 border border-blue-200 text-blue-800","dark:bg-blue-950 dark:border-blue-800 dark:text-blue-200"),success:at("bg-green-50 border border-green-200 text-green-800","dark:bg-green-950 dark:border-green-800 dark:text-green-200"),warning:at("bg-amber-50 border border-amber-200 text-amber-800","dark:bg-amber-950 dark:border-amber-800 dark:text-amber-200"),danger:at("bg-red-50 border border-red-200 text-red-800","dark:bg-red-950 dark:border-red-800 dark:text-red-200")},size:{default:"gap-x-3 p-4 rounded-xl",compact:"gap-x-2 p-2 rounded-lg"}},defaultVariants:{size:"default"}}),ac={info:"text-blue-600",success:"text-green-500",warning:"text-amber-500",danger:"text-red-500"};function am({variant:e,size:t="default"}){let a=at("compact"===t?"size-4":"size-5","shrink-0",ac[e]);switch(e){case"info":return(0,u.jsx)("svg",{className:a,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})});case"success":return(0,u.jsx)("svg",{className:a,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})});case"warning":return(0,u.jsx)("svg",{className:a,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.16
77 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})});case"danger":return(0,u.jsx)("svg",{className:a,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})})}}e.s(["Alert",0,function({variant:e="info",size:t="default",title:a,children:r,icon:n,onDismiss:l,className:i,style:o}){let[s,d]=(0,c.useState)(!1),m=(0,c.useRef)(null),p=(0,c.useCallback)(()=>{d(!0)},[]),h=(0,c.useCallback)(()=>{s&&l?.()},[s,l]);return(0,u.jsxs)("div",{ref:m,role:"alert",className:at(ad({variant:e,size:t,className:i}),"transition-all duration-200 ease-out",s&&"opacity-0 max-h-0 !p-0 !mt-0 overflow-hidden"),onTransitionEnd:h,style:o,children:[n??(0,u.jsx)(am,{variant:e,size:t}),a?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h3",{className:at("font-semibold","compact"===t?"text-xs":"text-sm"),children:a}),l?(0,u.jsx)(au,{size:"icon-xs",variant:"ghost",onPress:p,"aria-label":"Dismiss",className:"col-start-3 -m-1",children:(0,u.jsx)("svg",{className:"size-3.5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})})}):null,r?(0,u.jsx)("div",{className:at("col-start-2","compact"===t?"text-xs":"text-sm","mt-1"),children:r}):null]}):(0,u.jsxs)(u.Fragment,{children:[r?(0,u.jsx)("div",{className:at("compact"===t?"text-xs":"text-sm"),children:r}):null,l?(0,u.jsx)(au,{size:"icon-xs",variant:"ghost",onPress:p,"aria-label":"Dismiss",className:"col-start-3 -m-1",children:(0,u.jsx)("svg",{className:"size-3.5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})})}):null]})]})}],507972);let ap=(0,d.cva)(at("rounded-xl bg-white dark:bg-gray-800"),{variants:{variant:{default:"border border-gray-200 dark:border-gray-700",elevated:at("shadow-lg border border-gray-100 dark:border-gray-700","transition-[transform,box-shadow] duration-200","hover:-translate-y-0.5 hover:shadow-xl")}}}),ah=Object.assign((0,c.forwardRef)(({variant:e="default",children:t,className:a,...r},n)=>(0,u.jsx)("div",{ref:n,className:at(ap({variant:e}),a),...r,children:t})),{displayName:"Card",Header:function({children:e,className:t}){return(0,u.jsx)("div",{className:at("p-4",t),children:e})},Body:function({children:e,className:t}){return(0,u.jsx)("div",{className:at("px-4 pb-4 first:pt-4",t),children:e})},Footer:function({children:e,className:t}){return(0,u.jsx)("div",{className:at("px-4 pb-4",t),children:e})}});e.s(["Card",0,ah],831375);let ag={"gradient-dark":"bg-gradient-to-t from-black/70 to-transparent","gradient-light":"bg-gradient-to-t from-white/70 to-transparent","solid-dark":"bg-black/50","top-gradient":"bg-gradient-to-b from-black/70 to-transparent"},af={top:"top-0 left-0 right-0",bottom:"bottom-0 left-0 right-0"};(0,c.forwardRef)(({src:e,alt:t,scrim:a="gradient-dark",contentPosition:r="bottom",aspectRatio:n,children:l},i)=>(0,u.jsxs)("div",{ref:i,className:"relative rounded-xl overflow-hidden",style:n?{aspectRatio:n}:void 0,children:[(0,u.jsx)("img",{src:e,alt:t,className:"absolute inset-0 size-full object-cover"}),(0,u.jsx)("div",{className:at("absolute inset-0",ag[a])}),l?(0,u.jsx)("div",{className:at("absolute p-4 z-10",af[r]),children:l}):null]})).displayName="MediaOverlay";let ay=(0,d.cva)("inline-flex items-center font-medium rounded-full whitespace-nowrap",{variants:{variant:{default:at("bg-gray-100 text-gray-700","dark:bg-gray-700 dark:text-gray-200"),green:at("bg-green-100 text-green-700","dark:bg-green-950 dark:text-green-300"),amber:at("bg-amber-100 text-amber-700","dark:bg-amber-950 dar
7k:text-amber-300"),red:at("bg-red-100 text-red-700","dark:bg-red-950 dark:text-red-300"),blue:at("bg-blue-100 text-blue-700","dark:bg-blue-950 dark:text-blue-300"),orange:at("bg-orange-100 text-orange-700","dark:bg-orange-950 dark:text-orange-300"),purple:at("bg-purple-100 text-purple-700","dark:bg-purple-950 dark:text-purple-300"),outline:at("border border-gray-300 text-gray-700","dark:border-gray-600 dark:text-gray-300")},size:{sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-0.5 text-sm"}}}),ab=(0,c.forwardRef)(({variant:e="default",size:t="md",className:a,children:r,...n},l)=>(0,u.jsx)("span",{ref:l,className:ay({variant:e,size:t,className:a}),...n,children:r}));function av(){return(0,u.jsxs)("svg",{className:"h-5 w-5 text-gray-600 dark:text-gray-300",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,u.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),(0,u.jsx)("path",{d:"M3 10h18"})]})}function ax(){return(0,u.jsxs)("svg",{className:"h-5 w-5 text-gray-600 dark:text-gray-300",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,u.jsx)("path",{d:"M20 7H6a2 2 0 0 1 0-4h12v4"}),(0,u.jsx)("path",{d:"M4 7v12a2 2 0 0 0 2 2h14v-6"}),(0,u.jsx)("path",{d:"M16 13h4v4h-4a2 2 0 0 1 0-4Z"})]})}function aD({className:e}){return(0,u.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M6 9l6 6 6-6"})})}ab.displayName="Badge",e.s(["Badge",0,ab],683970),(0,c.forwardRef)(({type:e="credit_card",brand:t,last4:a,expirationMonth:r,expirationYear:n,accountEmail:l,isDefault:i=!1,isExpired:o=!1,isExpiringSoon:s=!1,isBusy:d=!1,pendingAction:c,onSetDefault:m,onDelete:p,actions:h,stackedBehindCount:g=0,footer:f,isFooterOpen:y=!0,onFooterToggle:b,footerToggleLabel:v,className:x},D)=>{let k=function(e,t,a){var r;if("paypal_account"===e)return"PayPal";if("bank_account"===e)return"Bank account";if("apple_pay"===e)return"Apple Pay";let n=t?.trim(),l=n&&"unknown"!==n?0===(r=n).length?r:r.charAt(0).toUpperCase()+r.slice(1).toLowerCase():"Card";return a?`${l} ending in ${a}`:l}(e,t,a),C=r&&n?`Expires ${r<10?`0${r}`:String(r)}/${n}`:null,w="paypal_account"===e?l??null:C,E=h??(m||p?(0,u.jsxs)("div",{className:"flex items-center gap-2",children:[!i&&m?(0,u.jsx)(au,{size:"sm",variant:"secondary",onPress:m,isDisabled:d,isPending:"set-default"===c,children:"Set as active"}):null,!i&&p?(0,u.jsx)(au,{size:"sm",variant:"danger",onPress:p,isDisabled:d,isPending:"delete"===c,children:"Delete"}):null]}):null),S=Math.max(0,Math.min(2,g)),P=v??(y?"Hide details":"Show details"),$=(0,u.jsxs)("div",{className:at("relative z-10 overflow-hidden rounded-xl border border-gray-200 bg-white","dark:border-gray-700 dark:bg-gray-800"),children:[(0,u.jsxs)("div",{className:"flex items-center justify-between gap-4 p-4",children:[(0,u.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,u.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-gray-100 dark:bg-gray-700",children:"credit_card"===e?(0,u.jsx)(av,{}):(0,u.jsx)(ax,{})}),(0,u.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,u.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,u.jsx)("p",{className:"font-medium text-gray-900 dark:text-gray-100 truncate",children:k}),i?(0,u.jsx)(ab,{variant:"blue",size:"sm",children:"Active"}):null,o?(0,u.jsx)(ab,{variant:"red",size:"sm",children:"Expired"}):s?(0,u.jsx)(ab,{variant:"amber",size:"sm",children:"Expires soon"}):null]}),w?(0,u.jsx)("p",{className:at("text-sm truncate",o?"text-red-600 dark:text-red-400":s?"text-amber-600 dark:text-amber-400":"text-gray-500 dark:text-gray-400"),children:w}):null]})]}),E||f&&b?(0,u.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[E,f&&b?(0,u.jsx)(au,{size:"icon-sm",variant:"ghost",onPress:b,"aria-label":P,"aria-expanded":y,children:(0,u.jsx)(aD,{className:at("size-4 transition-transform duration-200 ease-out",y&&"rotate-180")}
7)}):null]}):null]}),f?(0,u.jsx)("div",{className:at("grid transition-[grid-template-rows,opacity] duration-300 ease-[cubic-bezier(0.32,0.72,0,1)]",y?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),"aria-hidden":!y,children:(0,u.jsx)("div",{className:"overflow-hidden",children:(0,u.jsx)("div",{className:at("border-t border-gray-200 bg-gray-50 p-4","dark:border-gray-700 dark:bg-gray-900/30"),children:f})})}):null]});return 0===S?(0,u.jsx)("div",{ref:D,className:at("relative",x),children:$}):(0,u.jsxs)("div",{ref:D,className:at("relative pb-2",x),children:[$,S>=2?(0,u.jsx)("div",{"aria-hidden":"true",className:at("absolute inset-x-4 -bottom-1 z-0 h-3 rounded-b-xl border border-t-0 border-gray-200 bg-gray-50","dark:border-gray-700 dark:bg-gray-800/60")}):null,(0,u.jsx)("div",{"aria-hidden":"true",className:at("absolute inset-x-2 z-0 h-3 rounded-b-xl border border-t-0 border-gray-200 bg-white",S>=2?"bottom-1":"-bottom-1","dark:border-gray-700 dark:bg-gray-800/80")})]})}).displayName="PaymentMethodCard";let ak={up:"text-green-600 dark:text-green-400",down:"text-red-600 dark:text-red-400",neutral:"text-gray-500 dark:text-gray-400"};function aC(){return(0,u.jsx)("svg",{className:"size-4",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M12 7a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0V8.414l-4.293 4.293a1 1 0 01-1.414 0L8 10.414l-4.293 4.293a1 1 0 01-1.414-1.414l5-5a1 1 0 011.414 0L11 10.586 14.586 7H12z",clipRule:"evenodd"})})}function aw(){return(0,u.jsx)("svg",{className:"size-4",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M12 13a1 1 0 100 2h5a1 1 0 001-1V9a1 1 0 10-2 0v2.586l-4.293-4.293a1 1 0 00-1.414 0L8 9.586 3.707 5.293a1 1 0 00-1.414 1.414l5 5a1 1 0 001.414 0L11 9.414 14.586 13H12z",clipRule:"evenodd"})})}e.s(["StatCard",0,function({label:e,value:t,trend:a="neutral",trendValue:r,icon:n,className:l}){return(0,u.jsxs)("div",{className:at("bg-white rounded-xl border border-gray-200 p-5","dark:bg-gray-800 dark:border-gray-700",l),children:[(0,u.jsxs)("div",{className:"flex items-center justify-between",children:[(0,u.jsx)("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:e}),n?(0,u.jsx)("span",{className:"text-gray-400 dark:text-gray-500",children:n}):null]}),(0,u.jsxs)("div",{className:"mt-2 flex items-baseline gap-2",children:[(0,u.jsx)("span",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100 font-heading",children:t}),r?(0,u.jsxs)("span",{className:at("flex items-center gap-0.5 text-sm font-medium",ak[a]),children:["up"===a?(0,u.jsx)(aC,{}):"down"===a?(0,u.jsx)(aw,{}):null,r]}):null]})]})}],617855);let aE=[{name:"2xl",query:"(min-width: 1536px)"},{name:"xl",query:"(min-width: 1280px)"},{name:"lg",query:"(min-width: 1024px)"},{name:"md",query:"(min-width: 768px)"},{name:"sm",query:"(min-width: 640px)"}];aE.map(e=>e.query),aE.map(()=>!1),aE.map(e=>"sm"===e.name),aE.map(e=>"md"===e.name),aE.map(e=>"lg"===e.name),aE.map(e=>"xl"===e.name),aE.map(e=>"2xl"===e.name),e.s(["useClipboard",0,function(e,t={}){let{timeout:a=2e3}=t,[r,n]=(0,c.useState)(!1),l=(0,c.useRef)(void 0);return{copy:(0,c.useCallback)(()=>{n(!0),navigator.clipboard.writeText(e).then(()=>{clearTimeout(l.current),l.current=setTimeout(()=>n(!1),a)})},[e,a]),hasCopied:r}}],409163),(0,c.forwardRef)(({ratio:e="1",children:t,className:a},r)=>(0,u.jsx)("div",{ref:r,className:at("relative overflow-hidden",a),style:{aspectRatio:e},children:t})).displayName="AspectRatio";let aS=(0,d.cva)("relative inline-flex items-center justify-center rounded-full bg-gray-200 dark:bg-gray-700 shrink-0",{variants:{size:{xs:"size-6 text-[10px]",sm:"size-8 text-xs",md:"size-10 text-sm",lg:"size-12 text-base",xl:"size-16 text-lg"}}}),aP={online:"bg-green-500",offline:"bg-gray-400",away:"bg-amber-500",busy:"bg-red-500"},a$={xs:"size-1.5 ring-1",sm:"size-2 ring-[1.5px]",md:"size-2.5 ring-2",lg:"size-3 ring-2",xl:"size-3.5 ring-2"};(0,c.forwardRef)(({src:e,alt:t,name:a,size:r="md",status:n,className:l},i)=>{let[o,s]=(0,c.useState)(!1),d=e&&!o,m=a?a.split(" ").map(e=>
7e[0]).filter(Boolean).slice(0,2).join("").toUpperCase():null;return(0,u.jsxs)("div",{ref:i,className:aS({size:r,className:l}),children:[(0,u.jsx)("div",{className:"size-full rounded-full overflow-hidden flex items-center justify-center",children:d?(0,u.jsx)("img",{src:e,alt:t??a??"Avatar",className:"size-full object-cover",onError:()=>s(!0)}):m?(0,u.jsx)("span",{className:"font-medium text-gray-600 dark:text-gray-300 select-none",children:m}):(0,u.jsx)("svg",{className:"size-[60%] text-gray-400 dark:text-gray-500",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M10 8a3 3 0 100-6 3 3 0 000 6zM3.465 14.493a1.23 1.23 0 00.41 1.412A9.957 9.957 0 0010 18c2.31 0 4.438-.784 6.131-2.1.43-.333.604-.903.408-1.41a7.002 7.002 0 00-13.074.003z"})})}),n?(0,u.jsx)("span",{className:at("absolute bottom-0 right-0 rounded-full ring-white dark:ring-gray-800",aP[n],a$[r])}):null]})}).displayName="Avatar";let aR=(0,c.createContext)(null),aN=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,aR);let a=e.href&&!e.isDisabled?"a":"span",{linkProps:r,isPressed:n}=function(e,t){let{elementType:a="a",onPress:r,onPressStart:n,onPressEnd:l,onClick:i,isDisabled:o,...s}=e,u={};"a"!==a&&(u={role:"link",tabIndex:o?void 0:0});let{focusableProps:d}=t$(e,t),{pressProps:c,isPressed:m}=tW({onPress:r,onPressStart:n,onPressEnd:l,onClick:i,isDisabled:o,ref:t}),p=X(s,{labelable:!0}),h=N(d,c),g=e6();return{isPressed:m,linkProps:N(p,e9(e),{...h,...u,"aria-disabled":o||void 0,"aria-current":e["aria-current"],onClick:t=>{c.onClick?.(t),e8(t,g,e.href,e.routerOptions)}})}}({...e,elementType:a},t),l=L[a],{hoverProps:i,isHovered:o}=t6(e),{focusProps:s,isFocused:u,isFocusVisible:d}=t1(),m=K({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:n,isHovered:o,isFocused:u,isFocusVisible:d}}),p=X(e,{global:!0});return delete p.onClick,c.default.createElement(l,{ref:t,slot:e.slot||void 0,...N(p,m,r,i,s),"data-focused":u||void 0,"data-hovered":o||void 0,"data-pressed":n||void 0,"data-focus-visible":d||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},m.children)});class aM{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,a){let r=this.clone();return t.addDescendants(r,e),r}}class aT extends aM{filter(e,t,a){let[r,n]=az(e,t,this.firstChildKey,a),l=this.clone();return l.firstChildKey=r,l.lastChildKey=n,l}}class aF extends aM{static{this.type="header"}}class aK extends aM{static{this.type="loader"}}class aB extends aT{static{this.type="item"}filter(e,t,a){if(a(this.textValue,this)){let a=this.clone();return t.addDescendants(a,e),a}return null}}class aA extends aT{static{this.type="section"}filter(e,t,a){let r=super.filter(e,t,a);if(r&&null!==r.lastChildKey){let t=e.getItem(r.lastChildKey);if(t&&"header"!==t.type)return r}return null}}class aI{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=null!=this.firstKey?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=null!=e.nextKey?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let a=t.get(e),r=a?.firstChildKey!=null?t.get(a.firstChildKey):null;for(;r;)yield r,r=null!=r.nextKey?t.get(r.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(null!=t.prevKey){for(t=this.keyMap.get(t.prevKey);t&&"item"!==t.type&&null!=t.lastChildKey;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if("item"!==t.type&&null!=t.firstChildKey)return t.firstChildKey;for(;t;){if(null!=t.nextKey)return t.nextKey;if(null!=t.parentKey)t=this.keyMap.get(t.parentKey);else break}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=null!=this.lastKey?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error("Not implemented")}clone(){let e=new this.constructor;return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e.itemCount=this.itemCount,e}addNode(e){if(this.frozen)throw Error("Cannot add a node to a frozen collection");"item"===e.type&&null==this.keyMap.get(e.key)&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){for(let a of(this.addNode(e),t.getChildren(e.key)))this.addDescendants(a,t)}removeNode(e){if(this.frozen)throw Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);null!=t&&"item"===t.type&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,a=!1){if(this.frozen)throw Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!a}filter(e){let t=new this.constructor,[a,r]=az(this,t,this.firstKey,e);return t?.commit(a,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}
7function az(e,t,a,r){if(null==a)return[null,null];let n=null,l=null,i=e.getItem(a);for(;null!=i;){let a=i.filter(e,t,r);null!=a&&(a.nextKey=null,l&&(a.prevKey=l.key,l.nextKey=a.key),null==n&&(n=a),t.addNode(a),l=a),i=null!=i.nextKey?e.getItem(i.nextKey):null}if(l&&"separator"===l.type){let e=l.prevKey;t.removeNode(l.key),null!=e?(l=t.getItem(e)).nextKey=null:l=null}return[n?.key??null,l?.key??null]}class aV{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(null==this._minInvalidChildIndex||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),null==this.firstChild&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(null==t)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}}class aj extends aV{constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof aj?this.parentNode.level+ +(this.parentNode.node?.type==="item"):0}getMutableNode(){return null==this.node?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let e=this.nextVisibleSibling,t=this.getMutableNode();if(null!=t&&(t.index=this.index,t.level=this.level,t.parentKey=this.parentNode instanceof aj?this.parentNode.node?.key??null:null,t.prevKey=this.previousVisibleSibling?.node?.key??null,t.nextKey=e?.node?.key??null,t.hasChildNodes=!!this.firstChild,t.firstChildKey=this.first
7VisibleChild?.node?.key??null,t.lastChildKey=this.lastVisibleChild?.node?.key??null,(null!=t.colSpan||null!=t.colIndex)&&e)){let a=(t.colIndex??t.index)+(t.colSpan??1);null!=e.node&&a!==e.node.colIndex&&(e.getMutableNode().colIndex=a)}}setProps(e,t,a,r,n){let l,{value:i,textValue:o,id:s,...u}=e;if(null==this.node?(l=new a(s??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),u.ref=t,l.props=u,l.rendered=r,l.render=n,l.value=i,e["aria-label"]&&(l["aria-label"]=e["aria-label"]),l.textValue=o||("string"==typeof u.children?u.children:"")||e["aria-label"]||"",null!=s&&s!==l.key)throw Error("Cannot change the id of an item");null!=u.colSpan&&(l.colSpan=u.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(value){let t="none"===value;if(e.isHidden!==t){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let a=e.previousVisibleSibling,r=e.nextVisibleSibling;a&&e.ownerDocument.markDirty(a),r&&e.ownerDocument.markDirty(r),e.isHidden=t,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class aL extends aV{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new aj(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||null==e.node)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription||(this.queuedRender=!1,this.updateCollection()),this.collection}updateCollection(){for(let e of this.dirtyNodes)e instanceof aj&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof aj?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(0!==this.dirtyNodes.size&&!this.queuedRender){for(let e of(this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone()),this.subscriptions))e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}function aO(e){let{children:t,items:a,idScope:r,addIdAndValue:n,dependencies:l=[]}=e,i=(0,c.useMemo)(()=>void 0,[t]),o=(0,c.useMemo)(()=>new WeakMap,[...l,i]);return(0,c.useMemo)(()=>{if(a&&"function"==typeof t){let e=[];for(let l of a){let a=!function(e){switch(typeof e){case"object":return null!=e;case"function":case"symbol":return!0;default:return!1}}(l)?null:l,i=a?o.get(a):null;if(!i){let s=(i=t(l)).props.id??l?.key??l?.id;null!=r&&null==i.props.id&&null!=s&&(s=r+":"+s);let u=s??e.length;i=(0,c.cloneElement)(i,n?{key:u,id:s,value:l}:{key:u}),a&&o.set(a,i)}e.push(i)}return e}if("function"!=typeof t)return t},[t,a,o,r,n])}var aU=e.i(118850);let aH=(0,c.createContext)(!1),aZ=(0,c.createContext)(null);function aW(e){if((0,c.useContext)(aZ))return e.content;let{collection:t,document:a}=function(e){let[t]=(0,c.useState)(()=>new aL(e?.()||new aI));return{collection:aq((0,c.useCallback)(e=>t.subscribe(e),[t]),(0,c.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,c.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t])),document:t}}(e.createCollection);return c.default.createElement(c.default.Fragment,null,c.default.createElement(U,null,c.default.createElement(aZ.Provider,{value:a},e.content)),c.default.createElement(aG,{render:e.children,collection:t}))}function aG({collection:e,render:t}){return t(e)}let aq="function"==typeof c.default.useSyncExternalStore?c.default.useSyncExternalStore:function(e,t,a){let r=k(),n=(0,c.useRef)(r);n.current=r;let l=(0,c.useCallback)(()=>n.current?a():t(),[t,a]);return(0,aU.useSyncExternalStore)(e,l)},a_=(0,c.createContext)(null);function aY(e,t){let a=({node:e})=>t(e.props,e.props.ref,e),r=(0,c.forwardRef)((r,n)=>{let l=(0,c.useContext)(tS);
7if(!(0,c.useContext)(aH)){if(t.length>=3)throw Error(t.name+" cannot be rendered outside a collection.");return t(r,n)}return function(e,t,a,r,n){"string"==typeof e&&(e=function(e){return class extends aM{static{this.type=e}}}(e));let l=(0,c.useCallback)(l=>{l?.setProps(t,a,e,r,n)},[t,a,r,n,e]),i=(0,c.useContext)(a_);if(i){let l=i.ownerDocument.nodesByProps.get(t);return l||((l=i.ownerDocument.createElement(e.type)).setProps(t,a,e,r,n),i.appendChild(l),i.ownerDocument.updateCollection(),i.ownerDocument.nodesByProps.set(t,l)),null}return c.default.createElement(e.type,{ref:l},null)}(e,r,n,"children"in r?r.children:null,e=>c.default.createElement(tS.Provider,{value:l},c.default.createElement(a,{node:e})))});return r.displayName=t.name,r}let aJ=(0,c.createContext)(null);function aQ(e){let t=(0,c.useContext)(aJ),a=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,n=aO({...e,idScope:r,dependencies:a,addIdAndValue:!0});return(0,c.useContext)(aZ)&&(n=c.default.createElement(aX,null,n)),t=(0,c.useMemo)(()=>({dependencies:a,idScope:r}),[r,...a]),c.default.createElement(aJ.Provider,{value:t},n)}function aX({children:e}){let t=(0,c.useContext)(aZ),a=(0,c.useMemo)(()=>c.default.createElement(aZ.Provider,{value:null},c.default.createElement(aH.Provider,{value:!0},e)),[e]);return k()?c.default.createElement(a_.Provider,{value:t},a):(0,tL.createPortal)(a,t)}let a0=(0,c.createContext)(null),a1={CollectionRoot:({collection:e,renderDropIndicator:t})=>a4(e,null,t),CollectionBranch:({collection:e,parent:t,renderDropIndicator:a})=>a4(e,t,a)};function a4(e,t,a){return aO({items:t?e.getChildren(t.key):e,dependencies:[a],children(t){if("content"===t.type)return c.default.createElement(c.default.Fragment,null);let r=t.render(t);return a&&"item"===t.type?c.default.createElement(c.default.Fragment,null,a({type:"item",key:t.key,dropPosition:"before"}),r,function(e,t,a){let r=t.key,n=e.getKeyAfter(r),l=null!=n?e.getItem(n):null;for(;null!=l&&"item"!==l.type;)l=null!=(n=e.getKeyAfter(l.key))?e.getItem(n):null;let i=null!=t.nextKey?e.getItem(t.nextKey):null;for(;null!=i&&"item"!==i.type;)i=null!=i.nextKey?e.getItem(i.nextKey):null;let o=[];if(null==i){let r=t;for(;r?.type==="item"&&(!l||r.parentKey!==l.parentKey&&l.level<r.level);){let t=a({type:"item",key:r.key,dropPosition:"after"});(0,c.isValidElement)(t)&&o.push((0,c.cloneElement)(t,{key:`${r.key}-after`})),r=null!=r.parentKey?e.getItem(r.parentKey):null}}return o}(e,t,a)):r}})}let a3=(0,c.createContext)(a1);function a5(e){return(0,c.useMemo)(()=>null!=e?new Set([e]):null,[e])}var a2={};a2={"ar-AE":{breadcrumbs:"عناصر الواجهة"},"bg-BG":{breadcrumbs:"Трохи хляб"},"cs-CZ":{breadcrumbs:"Popis cesty"},"da-DK":{breadcrumbs:"Brødkrummer"},"de-DE":{breadcrumbs:"Breadcrumbs"},"el-GR":{breadcrumbs:"Πλοηγήσεις breadcrumb"},"en-US":{breadcrumbs:"Breadcrumbs"},"es-ES":{breadcrumbs:"Migas de pan"},"et-EE":{breadcrumbs:"Lingiread"},"fi-FI":{breadcrumbs:"Navigointilinkit"},"fr-FR":{breadcrumbs:"Chemin de navigation"},"he-IL":{breadcrumbs:"שבילי ניווט"},"hr-HR":{breadcrumbs:"Navigacijski putovi"},"hu-HU":{breadcrumbs:"Morzsamenü"},"it-IT":{breadcrumbs:"Breadcrumb"},"ja-JP":{breadcrumbs:"パンくずリスト"},"ko-KR":{breadcrumbs:"탐색 표시"},"lt-LT":{breadcrumbs:"Naršymo kelias"},"lv-LV":{breadcrumbs:"Atpakaļceļi"},"nb-NO":{breadcrumbs:"Navigasjonsstier"},"nl-NL":{breadcrumbs:"Broodkruimels"},"pl-PL":{breadcrumbs:"Struktura nawigacyjna"},"pt-BR":{breadcrumbs:"Caminho detalhado"},"pt-PT":{breadcrumbs:"Categorias"},"ro-RO":{breadcrumbs:"Miez de pâine"},"ru-RU":{breadcrumbs:"Навигация"},"sk-SK":{breadcrumbs:"Navigačné prvky Breadcrumbs"},"sl-SI":{breadcrumbs:"Drobtine"},"sr-SP":{breadcrumbs:"Putanje navigacije"},"sv-SE":{breadcrumbs:"Sökvägar"},"tr-TR":{breadcrumbs:"İçerik haritaları"},"uk-UA":{breadcrumbs:"Навігаційна стежка"},"zh-CN":{breadcrumbs:"导航栏"},"zh-TW":{breadcrumbs:"導覽列"}};let a6=Symbol.for("react-aria.i18n.locale"),a7=Symbol.for("react-aria.i18n.strings");class a9{constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let a=this.getStringsForLocale(t)[e];if(!a)throw Error(`Could not find intl message ${e} in ${t} locale`);return a}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,a="en-US"){var r;if(t[e])return t[e];let n=(r=e,Intl.Locale?new Intl.Locale(r).language:r.split("-")[0]);if(t[n])return t[n];for(let e in t)if(e.startsWith(n+"-"))return t[e];return t[a]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("u"<typeof window)return null;let t=window[a6];if(void 0===i){let e=window[a7];if(!e)return null;for(let a in i={},e)i[a]=new a9({[t]:e[a]},t)}let a=i?.[e];if(!a)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return a}}let a8=new Map,re=new Map;class rt{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let a=this.strings.getStringForLocale(e,this.locale);return"function"==typeof a?a(t,this):a}plural(e,t,a="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let n=this.locale+":"+a,l=a8.get(n);return l||(l=new Intl.PluralRules(this.locale,{type:a}),a8.set(n,l)),"function"==typeof(r=t[l.select(e)]||t.other)?r():r}number(e){let t=re.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),re.set(this.locale,t)),t.format(e)}select(e,t){let a=e[t]||e.other;return"function"==typeof a?a():a}}let ra=new WeakMap;function rr(e,t){let a;return t&&a9.getGlobalDictionaryForPackage(t)||((a=ra.get(e))||(a=new a9(e),ra.set(e,a)),a)}function rn(e,t){let{locale:a}=ed(),r=rr(e,t);return(0,c.useMemo)(()=>new rt(a,r),[a,r])}let rl=(0,c.createContext)(null),ri=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,rl);let{CollectionRoot:a}=(0,c.useContext)(a3),{navProps:r}=function(e){var t;let{"aria-label":a,...r}=e,n=rn((t=a2)&&t.__esModule?t.default:t,"@react-aria/breadcrumbs");return{navProps:{...X(r,{labelable:!0}),"aria-label":a||n.format("breadcrumbs")}}}(e),n=X(e,{global:!0,labelable:!0});return c.default.createElement(aW,{content:c.default.createElement(aQ,e)},l=>c.default.createElement(L.ol,{render:e.render,ref:t,...N(n,r),slot:e.slot||void 0,style:e.style,className:e.className??"react-aria-Breadcrumbs"},c.default.createElement(rl.Provider,{value:e},c.default.createElement(a,{collection:l}))))});class ro extends aM{static{this.type="item"}}let rs=aY(ro,function(e,t,a){let r=null==a.nextKey,{isDisabled:n,onAction:l}=B(rl),i=K({...a.props,children:a.rendered,values:{isDisabled:n||r,isCurrent:r},defaultClassName:"react-aria-Breadcrumb"}),o=X(e,{global:!0,labelable:!0});return delete o.id,c.default.createElement(L.li,{...o,...i,ref:t,"data-disabled":n||r||void 0,"data-current":r||void 0},c.default.createElement(aR.Provider,{value:{"aria-current":r?"page":null,isDisabled:n||r,onPress:()=>l?.(a.key)}},i.children))});function ru(){return(0,u.jsx)("svg",{className:"size-4 text-gray-400",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})}function rd(e,t){return e-t*Math.floor(e/t)}function rc(e,t,a,r){let n=(t=rp(e,t))-1,l=-2;return a<=2?l=0:rm(t)&&(l=-1),1721425+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*a-362)/12+l+r)}function rm(e){return e%4==0&&(e%100!=0||e%400==0)}function rp(e,t){return"BC"===e?1-t:t}function rh(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}e.s(["BreadcrumbItem",0,function({children:e,href:t,className:a}){return(0,u.jsxs)(rs,{className:at("flex items-center gap-1",a),children:[(0,u.jsx)(aN,{href:t,className:at("text-gray-500 transition-colors outline-none",t?"data-hover:text-gray-700 cursor-pointer dark:data-hover:text-gray-300":"text-gray-900 font-medium dark:text-gray-100","dark:text-gray-400",t?"":"dark:text-gray-100"),children:e}),t?(0,u.jsx)(ru,{}):null]})},"Breadcrumbs",0,function({children:e,className:t}){return(0,u.jsx)(ri,{className:at("flex items-center gap-1 text-sm",t),children:e})}],522360);let rg={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 rf{fromJulianDay(e){let t=e-1721426,a=Math.floor(t/146097),r=rd(t,146097),n=Math.floor(r/36524),l=rd(r,3
76524),i=Math.floor(l/1461),o=Math.floor(rd(l,1461)/365),[s,u]=rh(400*a+100*n+4*i+o+ +(4!==n&&4!==o)),d=e-rc(s,u,1,1),c=2;e<rc(s,u,3,1)?c=0:rm(u)&&(c=1);let m=Math.floor(((d+c)*12+373)/367),p=e-rc(s,u,m,1)+1;return new nd(s,u,m,p)}toJulianDay(e){return rc(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return rg[rm(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return rm(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}let ry={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function rb(e,t){return t=rG(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function rv(e,t){return rx(e.calendar,t.calendar)&&rb(e,t)}function rx(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}let rD={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function rk(e,t,a){let r=Math.ceil(e.calendar.toJulianDay(e)+1-(a?rD[a]:function(e){let t=rF.get(e);if(!t){if(Intl.Locale){let a=new Intl.Locale(e);if("getWeekInfo"in a&&(t=a.getWeekInfo()))return rF.set(e,t),t.firstDay}let a=function(e){if(Intl.Locale){let t=rT.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&rT.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);if(e.includes("-fw-")){let a=e.split("-fw-")[1].split("-")[0];t="mon"===a?{firstDay:1}:"tue"===a?{firstDay:2}:"wed"===a?{firstDay:3}:"thu"===a?{firstDay:4}:"fri"===a?{firstDay:5}:"sat"===a?{firstDay:6}:{firstDay:0}}else t=e.includes("-ca-iso8601")?{firstDay:1}:{firstDay:a&&ry[a]||0};rF.set(e,t)}return t.firstDay}(t)))%7;return r<0&&(r+=7),r}function rC(e){return rU(Date.now(),e)}function rw(e){return rH(rC(e))}function rE(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function rS(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let rP=null;function r$(){return null==rP&&(rP=new Intl.DateTimeFormat().resolvedOptions().timeZone),rP}function rR(e){return e.subtract({days:e.day-1})}function rN(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function rM(e,t,a){let r=rk(e,t,a);return e.subtract({days:r})}let rT=new Map,rF=new Map;function rK(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function rB(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function rA(e){return rI(rp((e=rG(e,new rf)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function rI(e,t,a,r,n,l,i){let o=new Date;return o.setUTCHours(r,n,l,i),o.setUTCFullYear(e,t-1,a),o.getTime()}function rz(e,t){if("UTC"===t)return 0;if(e>0&&t===r$())return -6e4*new Date(e).getTimezoneOffset();let{year:a,month:r,day:n,hour:l,minute:i,second:o}=rj(e,t);return rI(a,r,n,l,i,o,0)-1e3*Math.floor(e/1e3)}let rV=new Map;function rj(e,t){let a=rV.get(t);a||(a=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),rV.set(t,a));let r=a.formatToParts(new Date(e)),n={};for(let e of r)"literal"!==e.type&&(n[e.type]=e.value);return{year:"BC"===n.era||"B"===n.era?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:"24"===n.hour?0:+n.hour,minute:+n.minute,second:+n.second}}function rL(e,t,a="compatible"){var r,n,l;let i=rZ(e);if("UTC"===t)return rA(i);if(t===r$()&&"compatible"===a){i=rG(i,new rf);let e=new Date,t=rp(i.era,i.year);return e.setFullYear(t,i.month-1,i.day),e.setHours(i.hour,i.minute,i.second,i.millisecond),e.getTime()}let o=rA(i),s=rz(o-864e5,t),u=rz(o+864e5,t),d=(r=i,((n=o-s)==(l=o-u)?[n]:[n,l]).filter(e=>{var a;let n;return a=r,n=rj(e,t),a.year===n.year&&a.month===n.month&&a.day===n.day&&a.hour===n.hour&&a.minute===n.minute&&a.second===n.second}));if(1===d.length)return d[0];if(d.length>1)switch(a){case"compatible":case"earlier":return d[0];case"later":return d[d.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(o-s,o-u);case"compatible":case"later":return Math.max(o-s,o-u);case"reject":throw RangeError("No such absolute time found")}}function rO(e,t,a="compatible"){return new Date(rL(e,t,a))}function rU(e,t){let a=rz(e,t),r=new Date(e+a),n=r.getUTCFullYear();return new np(n<1?"BC":"AD",n<1?-n+1:n,r.getUTCMonth()+1,r.getUTCDate(),t,a,r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds())}function rH(e){return new nd(e.calendar,e.era,e.year,e.month,e.day)}function rZ(e,t){let a=0,r=0,n=0,l=0;if("timeZone"in e)({hour:a,minute:r,second:n,millisecond:l}=e);else if("hour"in e&&!t)return e;return t&&({hour:a,minute:r,second:n,millisecond:l}=t),new nm(e.calendar,e.era,e.year,e.month,e.day,a,r,n,l)}function rW(e){return new nc(e.hour,e.minute,e.second,e.millisecond)}function rG(e,t){if(rx(e.calendar,t))return e;let a=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=a.era,r.year=a.year,r.month=a.month,r.day=a.day,r0(r),r}function rq(e,t,a){return e instanceof np?e.timeZone===t?e:r_(e,t):rU(rL(e,t,a),t)}function r_(e,t){return rG(rU(rA(e)-e.offset,t),e.calendar)}function rY(e,t){let a=e.copy(),r="hour"in a?r6(a,t):0;rJ(a,t.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e),a.month+=t.months||0,rQ(a),rX(a),a.day+=7*(t.weeks||0),a.day+=t.days||0,a.day+=r,function(e){for(;e.day<1;)e.month--,rQ(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,rQ(e)}(a),a.calendar.balanceDate&&a.calendar.balanceDate(a),a.year<1&&(a.year=1,a.month=1,a.day=1);let n=a.calendar.getYearsInEra(a);if(a.year>n){let e=a.calendar.isInverseEra?.(a);a.year=n,a.month=e?1:a.calendar.getMonthsInYear(a),a.day=e?1:a.calendar.getDaysInMonth(a)}a.month<1&&(a.month=1,a.day=1);let l=a.calendar.getMonthsInYear(a);return a.month>l&&(a.month=l,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function rJ(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function rQ(e){for(;e.month<1;)rJ(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,rJ(e,1)}function rX(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 r0(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),rX(e)}function r1(e){let t={};for(let a in e)"number"==typeof e[a]&&(t[a]=-e[a]);return t}function r4(e,t){let a=e.copy();return null!=t.era&&(a.era=t.era),null!=t.year&&(a.year=t.year),null!=t.month&&(a.month=t.month),null!=t.day&&(a.day=t.day),r0(a),a}function r3(e,t){let a=e.copy();return null!=t.hour&&(a.hour=t.hour),null!=t.minute&&(a.minute=t.minute),null!=t.second&&(a.second=t.second),null!=t.millisecond&&(a.millisecond=t.millisecond),r5(a),a}function r5(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 r2(e,t){let a=e%t;return a<0&&(a+=t),a}function r6(e,t){let a;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=r2(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=r2(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=r2(e.minute,60),a=Math.floor(e.hour/24),e.hour=r2(e.hour,24),a}function r7(e,t){let a=e.copy();return r6(a,t),a}function r9(e,t,a,r){let n=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),l=t.indexOf(e.era);if(l<0)throw Error("Invalid era: "+e.era);l=ne(l,a,0,t.length-1,r?.round),n.era=t[l],r0(n);break}case"year":n.calendar.isInverseEra?.(n)&&(a=-a),n.year=ne(e.year,a,-1/0,9999,r?.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e);break;case"month":n.month=ne(e.month,a,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":n.day=ne(e.day,a,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(n),r0(n),n}function r8(e,t,a,r){let n=e.copy();switch(t){case"hour":{let t=e.hour,l=0,i=23;if(r?.hourCycle===12){let e=t>=12;l=12*!!e,i=e?23:11}n.hour=ne(t,a,l,i,r?.round);break}case"minute":n.minute=ne(e.minute,a,0,59,r?.round);break;case"second":n.second=ne(e.second,a,0,59,r?.round);break;case"millisecond":n.millisecond=ne(e.millisecond,a,0,999,r?.round);break;default:throw Error("Unsupported field "+t)}return n}function ne(e,t,a,r,n=!1){if(n){(e+=Math.sign(t))<a&&(e=r);let n=Math.abs(t);(e=t>0?Math.ceil(e/n)*n:Math.floor(e/n)*n)>r&&(e=a)}else(e+=t)<a?e=r-(a-e-1):e>r&&(e=a+(e-r-1));return e}function nt(e,t){let a;return a=(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days?rL(rY(rZ(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):rA(e)-e.offset)+(t.milliseconds||0),a+=1e3*(t.seconds||0),a+=6e4*(t.minutes||0),rG(rU(a+=36e5*(t.hours||0),e.timeZone),e.calendar)}let na=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,nr=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,nn=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function nl(e,t,a){let r=Number(e);if(r<t||r>a)throw RangeError(`Value out of range: ${t} <= ${r} <= ${a}`);return r}function ni(e){return`${String(e.hour).padStart(2,"0")}
7:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function no(e){let t,a=rG(e,new rf);return t="BC"===a.era?1===a.year?"0000":"-"+String(Math.abs(1-a.year)).padStart(6,"00"):String(a.year).padStart(4,"0"),`${t}-${String(a.month).padStart(2,"0")}-${String(a.day).padStart(2,"0")}`}function ns(e){return`${no(e)}T${ni(e)}`}function nu(e){let t,a="object"==typeof e[0]?e.shift():new rf;if("string"==typeof e[0])t=e.shift();else{let e=a.getEras();t=e[e.length-1]}return[a,t,e.shift(),e.shift(),e.shift()]}class nd{#t;constructor(...e){let[t,a,r,n,l]=nu(e);this.calendar=t,this.era=a,this.year=r,this.month=n,this.day=l,r0(this)}copy(){return this.era?new nd(this.calendar,this.era,this.year,this.month,this.day):new nd(this.calendar,this.year,this.month,this.day)}add(e){return rY(this,e)}subtract(e){return rY(this,r1(e))}set(e){return r4(this,e)}cycle(e,t,a){return r9(this,e,t,a)}toDate(e){return rO(this,e)}toString(){return no(this)}compare(e){return rE(this,e)}}class nc{#t;constructor(e=0,t=0,a=0,r=0){this.hour=e,this.minute=t,this.second=a,this.millisecond=r,r5(this)}copy(){return new nc(this.hour,this.minute,this.second,this.millisecond)}add(e){return r7(this,e)}subtract(e){return r7(this,r1(e))}set(e){return r3(this,e)}cycle(e,t,a){return r8(this,e,t,a)}toString(){return ni(this)}compare(e){return rS(this)-rS(e)}}class nm{#t;constructor(...e){let[t,a,r,n,l]=nu(e);this.calendar=t,this.era=a,this.year=r,this.month=n,this.day=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,r0(this)}copy(){return this.era?new nm(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new nm(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return rY(this,e)}subtract(e){return rY(this,r1(e))}set(e){return r4(r3(this,e),e)}cycle(e,t,a){switch(e){case"era":case"year":case"month":case"day":return r9(this,e,t,a);default:return r8(this,e,t,a)}}toDate(e,t){return rO(this,e,t)}toString(){return ns(this)}compare(e){let t=rE(this,e);if(0===t){var a;return a=rZ(e),rS(this)-rS(a)}return t}}class np{#t;constructor(...e){let[t,a,r,n,l]=nu(e),i=e.shift(),o=e.shift();this.calendar=t,this.era=a,this.year=r,this.month=n,this.day=l,this.timeZone=i,this.offset=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,r0(this)}copy(){return this.era?new np(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new np(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return nt(this,e)}subtract(e){return nt(this,r1(e))}set(e,t){let a,r;return 0===(r=r3(r4(a=rZ(this),e),e)).compare(a)?this:rG(rU(rL(r,this.timeZone,t),this.timeZone),this.calendar)}cycle(e,t,a){return function(e,t,a,r){switch(t){case"hour":{let t=0,n=23;if(r?.hourCycle===12){let a=e.hour>=12;t=12*!!a,n=a?23:11}let l=rZ(e),i=rG(r3(l,{hour:t}),new rf),o=[rL(i,e.timeZone,"earlier"),rL(i,e.timeZone,"later")].filter(t=>rU(t,e.timeZone).day===i.day)[0],s=rG(r3(l,{hour:n}),new rf),u=[rL(s,e.timeZone,"earlier"),rL(s,e.timeZone,"later")].filter(t=>rU(t,e.timeZone).day===s.day).pop(),d=rA(e)-e.offset,c=Math.floor(d/36e5),m=d%36e5;return rG(rU(d=36e5*ne(c,a,Math.floor(o/36e5),Math.floor(u/36e5),r?.round)+m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return r8(e,t,a,r);case"era":case"year":case"month":case"day":return rG(rU(rL(r9(rZ(e),t,a,r),e.timeZone),e.timeZone),e.calendar);default:throw Error("Unsupported field "+t)}}(this,e,t,a)}toDate(){return new Date(rA(this)-this.offset)}toString(){var e;let t,a,r,n,l;return`${ns(this)}${t=0>Math.sign(e=this.offset)?"-":"+",a=Math.floor((e=Math.abs(e))/36e5),r=Math.floor(e%36e5/6e4),n=Math.floor(e%36e5%6e4/1e3),l=`${t}${String(a).padStart(2,"0")}:${String(r).padStart(2,"0")}`,0!==n&&(l+=`:${String(n).padStart(2,"0")}`),l}[${this.timeZone}]`}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-rq(e,this.timeZone).toDate().getTime()}}let nh=(0,c.createContext)({}),ng=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,nh);let{children:a,level:r=3,className:n,...l}=e,i=L[`h${r}`];return c.default.createElement(i,{...l,ref:t,className:n??"react-aria-Heading"},a)}),nf=(0,c.createContext)({}),ny=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,nf);let{elementType:a="span",...r}=e,n=L[a];return c.default.createElement(n,{className:"react-aria-Text",...r,ref:t})});var nb={};function nv(e,t){let a=(0,c.useRef)(null);return e&&a.current&&t(e,a.current)&&(e=a.current),a.current=e,e}nb={"ar-AE":{dateRange:e=>`${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,dateSelected:e=>`${e.date} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date}`,todayDateSelected:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date} \u{645}\u{62D}\u{62F}\u{62F}`},"bg-BG":{dateRange:e=>`${e.startDate} \u{434}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{435} ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date}`,todayDateSelected:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date} \u{441}\u{430} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`},"cs-CZ":{dateRange:e=>`${e.startDate} a\u{17E} ${e.endDate}`,dateSelected:e=>`Vybr\xe1no ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybr\xe1no ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgew\xe4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgew\xe4hlt`},"el-GR":{dateRange:e=>`${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,dateSelected:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, ${e.date}`,todayDateSelected:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3C4}\u{3B7}\u{3BA}\u{3B5} ${e.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>
7`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`T\xe4na, ${e.date}`,todayDateSelected:e=>`T\xe4na, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} \u{2013} ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`T\xe4n\xe4\xe4n, ${e.date}`,todayDateSelected:e=>`T\xe4n\xe4\xe4n, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} \xe0 ${e.endDate}`,dateSelected:e=>`${e.date} s\xe9lectionn\xe9`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd\u{2019}hui, ${e.date} s\xe9lectionn\xe9`},"he-IL":{dateRange:e=>`${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,dateSelected:e=>`${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date}`,todayDateSelected:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}\u{2013}${e.endDate}`,dateSelected:e=>`${e.date} kiv\xe1lasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijel\xf6lve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} \u{304B}\u{3089} ${e.endDate}`,dateSelected:e=>`${e.date} \u{3092}\u{9078}\u{629E}`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`\u{672C}\u{65E5}\u{3001}${e.date}`,todayDateSelected:e=>`\u{672C}\u{65E5}\u{3001}${e.date} \u{3092}\u{9078}\u{629E}`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} \u{C120}\u{D0DD}\u{B428}`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`\u{C624}\u{B298}, ${e.date}`,todayDateSelected:e=>`\u{C624}\u{B298}, ${e.date} \u{C120}\u{D0DD}\u{B428}`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`\u{160}iandien, ${e.date}`,todayDateSelected:e=>`\u{160}iandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} l\u{12B}dz ${e.endDate}`,dateSelected:e=>`Atlas\u{12B}ts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`\u{160}odien, ${e.date}`,todayDateSelected:e=>`Atlas\u{12B}ta \u{161}odiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>
7`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,dateSelected:e=>`${e.date} selectat\u{103}`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Ast\u{103}zi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectat\u{103}`},"ru-RU":{dateRange:e=>`\u{421} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybrat\xfd d\xe1tum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybrat\xfd dne\u{161}n\xfd d\xe1tum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista t
7illgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} se\xe7ildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bug\xfcn, ${e.date}`,todayDateSelected:e=>`Bug\xfcn, ${e.date} se\xe7ildi`},"uk-UA":{dateRange:e=>`${e.startDate} \u{2014} ${e.endDate}`,dateSelected:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9009}\u{62E9} ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9009}\u{62E9}\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9078}\u{53D6} ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9078}\u{53D6}\u{4ECA}\u{5929}\u{FF0C}${e.date}`}};let nx=new Map;class nD{constructor(e,t={}){this.formatter=nC(e,t),this.options=t}format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let a=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...a.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==nE&&(nE="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),nE&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let a=nC(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),r=parseInt(a.formatToParts(new Date(2020,2,3,0)).find(e=>"hour"===e.type).value,10),n=parseInt(a.formatToParts(new Date(2020,2,3,23)).find(e=>"hour"===e.type).value,10);if(0===r&&23===n)return"h23";if(24===r&&23===n)return"h24";if(0===r&&11===n)return"h11";if(12===r&&11===n)return"h12";throw Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}}let nk={true:{ja:"h11"},false:{}};function nC(e,t={}){if("boolean"==typeof t.hour12&&(null==nw&&(nw="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),nw)){let a=nk[String((t={...t}).hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=a??r,delete t.hour12}let a=e+(t?Object.entries(t).sort((e,t)=>
7e[0]<t[0]?-1:1).join():"");if(nx.has(a))return nx.get(a);let r=new Intl.DateTimeFormat(e,t);return nx.set(a,r),r}let nw=null,nE=null;function nS(e){e=nv(e??{},nP);let{locale:t}=ed();return(0,c.useMemo)(()=>new nD(t,e),[t,e])}function nP(e,t){if(e===t)return!0;let a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(let r of a)if(t[r]!==e[r])return!1;return!0}function n$(e){return e&&e.__esModule?e.default:e}let nR=new WeakMap;function nN(e){return e?.calendar.identifier==="gregory"&&"BC"===e.era?"short":void 0}function nM(e,t,a,r){let n=rn(n$(nb),"@react-aria/calendar"),l=nN(e)||nN(t),i=nS({month:"long",year:"numeric",era:l,calendar:e.calendar.identifier,timeZone:a}),o=nS({month:"long",year:"numeric",day:"numeric",era:l,calendar:e.calendar.identifier,timeZone:a});return(0,c.useMemo)(()=>{if(rb(e,rR(e))){let l=e,o=t;if(e.calendar.getFormattableMonth&&(l=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(o=t.calendar.getFormattableMonth(t)),rb(t,rN(e)))return i.format(l.toDate(a));if(rb(t,rN(t)))return r?nT(i,n,l,o,a):i.formatRange(l.toDate(a),o.toDate(a))}return r?nT(o,n,e,t,a):o.formatRange(e.toDate(a),t.toDate(a))},[e,t,i,o,n,a,r])}function nT(e,t,a,r,n){let l=e.formatRangeToParts(a.toDate(n),r.toDate(n)),i=-1;for(let e=0;e<l.length;e++){let t=l[e];if("shared"===t.source&&"literal"===t.type)i=e;else if("endRange"===t.source)break}let o="",s="";for(let e=0;e<l.length;e++)e<i?o+=l[e].value:e>i&&(s+=l[e].value);return t.format("dateRange",{startDate:o,endDate:s})}function nF(e,t){let a=(0,c.useRef)(!0),r=(0,c.useRef)(null),n=tV(e);(0,c.useEffect)(()=>(a.current=!0,()=>{a.current=!1}),[]),(0,c.useEffect)(()=>{let e=r.current;a.current?a.current=!1:(!e||t.some((t,a)=>!Object.is(t,e[a])))&&n(),r.current=t},t)}function nK(e,t){var a;let r=rn((a=nb)&&a.__esModule?a.default:a,"@react-aria/calendar"),n=X(e),l=nM(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),i=nM(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);nF(()=>{t.isFocused||eE(i)},[i]);let o=function(e){let t,a,r=rn(n$(nb),"@react-aria/calendar");"highlightedRange"in e?{start:t,end:a}=e.highlightedRange||{}:(t=Array.isArray(e.value)?e.value[0]:e.value??void 0,a=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let n=nS({weekday:"long",month:"long",year:"numeric",day:"numeric",era:nN(t)||nN(a),timeZone:e.timeZone}),{locale:l}=ed(),i=(0,c.useMemo)(()=>new Intl.ListFormat(l),[l]),o="anchorDate"in e?e.anchorDate:null;return(0,c.useMemo)(()=>{if(!o&&t&&a){if(rb(t,a)){let a=n.format(t.toDate(e.timeZone));return r.format("selectedDateDescription",{date:a})}else if("highlightedRange"in e){let l=nT(n,r,t,a,e.timeZone);return r.format("selectedRangeDescription",{dateRange:l})}else if(Array.isArray(e.value)){let t=e.value.map(t=>n.format(t.toDate(e.timeZone))),a=i.format(t);return r.format("selectedDateDescription",{date:a})}}return""},[t,a,o,e,r,n,i])}(t);nF(()=>{o&&eE(o,"polite",4e3)},[o]);let s=S([!!e.errorMessage,e.isInvalid,e.validationState]);nR.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});let[u,d]=(0,c.useState)(!1),m=e.isDisabled||t.isNextVisibleRangeInvalid();m&&u&&(d(!1),t.setFocused(!0));let[p,h]=(0,c.useState)(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();return g&&p&&(h(!1),t.setFocused(!0)),{calendarProps:N(n,ee({id:e.id,"aria-label":[e["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":r.format("next"),isDisabled:m,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":r.format("previous"),isDisabled:g,onFocusChange:h},errorMessageProps:{id:s},title:l}}function nB(e,t){if(!e)return!1;let a=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,n=/(auto|scroll)/.test(a.overflow+a.overflowX+a.overflowY);return e===r&&"hidden"!==a.overflow&&(n=!0),n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function nA(e,t){let a=e;for(nB(a,t)&&(a=a.parentElement);a&&!nB(a,t);)a=a.parentElement;return a||document.scrollingElement||document.documentElement}function nI(e,t){let a=[],r=document.scrollingElement||document.documentElement;for(;e&&(nB(e,t)&&a.push(e),e!==r);)e=e.parentElement;return a}function nz(e,t,a={}){let{block:r="nearest",inline:n="nearest"}=a;if(e===t)return;let l=e.scrollTop,i=e.scrollLeft,o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),u=window.getComputedStyle(t),d=window.getComputedStyle(e),c=document.scrollingElement||document.documentElement,m=e===c,p=e===c?0:s.top,h=e===c?e.clientHeight:s.bottom,g=e===c?0:s.left,f=e===c?e.clientWidth:s.right,y=parseFloat(u.scrollMarginTop)||0,b=parseFloat(u.scrollMarginBottom)||
70,v=parseFloat(u.scrollMarginLeft)||0,x=parseFloat(u.scrollMarginRight)||0,D=parseFloat(d.scrollPaddingTop)||0,k=parseFloat(d.scrollPaddingBottom)||0,C=parseFloat(d.scrollPaddingLeft)||0,w=parseFloat(d.scrollPaddingRight)||0,E=parseFloat(d.borderTopWidth)||0,S=parseFloat(d.borderBottomWidth)||0,P=parseFloat(d.borderLeftWidth)||0,$=parseFloat(d.borderRightWidth)||0,R=o.top-y,N=o.bottom+b,M=o.left-v,T=o.right+x,F=e===c?0:P+$,K=e===c?0:E+S,B=e===c?0:e.offsetWidth-e.clientWidth-F,A=e===c?0:e.offsetHeight-e.clientHeight-K,I=p+(m?0:E)+D,z=h-(m?0:S)-k-A,V=g+(m?0:P)+C,j=f-(m?0:$)-w;"rtl"!==d.direction||eQ()?j-=B:V+=B;let L=R<I||N>z,O=M<V||T>j;if(L&&"start"===r)l+=R-I;else if(L&&"center"===r)l+=(R+N)/2-(I+z)/2;else if(L&&"end"===r)l+=N-z;else if(L&&"nearest"===r){let e=R-I,t=N-z;l+=Math.abs(e)<=Math.abs(t)?e:t}if(O&&"start"===n)i+=M-V;else if(O&&"center"===n)i+=(M+T)/2-(V+j)/2;else if(O&&"end"===n)i+=T-j;else if(O&&"nearest"===n){let e=M-V,t=T-j;i+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:i,top:l})}function nV(e,t={}){let{containingElement:a}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(t).overflow){let{left:t,top:r}=e.getBoundingClientRect(),n=nI(e,!0);for(let t of n)nz(t,e);let{left:l,top:i}=e.getBoundingClientRect();if(Math.abs(t-l)>1||Math.abs(r-i)>1){for(let e of n=a?nI(a,!0):[])nz(e,a,{block:"center",inline:"center"});for(let t of nI(e,!0))nz(t,e)}}else{let{left:t,top:r}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:n,top:l}=e.getBoundingClientRect();(Math.abs(t-n)>1||Math.abs(r-l)>1)&&(a?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let nj=0,nL=new Map;function nO(e){let[t,a]=(0,c.useState)();return p(()=>{if(!e)return;let t=nL.get(e);if(t)a(t.element.id);else{let r=`react-aria-description-${nj++}`;a(r);let n=document.createElement("div");n.id=r,n.style.display="none",n.textContent=e,document.body.appendChild(n),t={refCount:0,element:n},nL.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),nL.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function nU(e,t,a,r){let n=tV(a),l=null==a;(0,c.useEffect)(()=>{if(l||!e.current)return;let a=e.current;return a.addEventListener(t,n,r),()=>{a.removeEventListener(t,n,r)}},[e,t,r,l])}class nH extends rf{fromJulianDay(e){let t=super.fromJulianDay(e);return new nd(this,rp(t.era,t.year)- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(nZ(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(nZ(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function nZ(e){let[t,a]=rh(e.year+-543);return new nd(t,a,e.month,e.day)}function nW(e,t,a,r){return e+365*t+Math.floor(t/4)+30*(a-1)+r-1}function nG(e,t){let a=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-nW(e,a,1,1))/30),n=t+1-nW(e,a,r,1);return[a,r,n]}function nq(e){return Math.floor(e%4/3)}function n_(e,t){return t%13!=0?30:nq(e)+5}class nY{fromJulianDay(e){let[t,a,r]=nG(1723856,e),n="AM";return t<=0&&(n="AA",t+=5500),new nd(this,n,t,a,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),nW(1723856,t,e.month,e.day)}getDaysInMonth(e){return n_(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+nq(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class nJ extends nY{fromJulianDay(e){let[t,a,r]=nG(1723856,e);return new nd(this,"AA",t+=5500,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class nQ extends nY{fromJulianDay(e){let[t,a,r]=nG(1824665,e),n="CE";return t<=0&&(n="BCE",t=1-t),new nd(this,n,t,a,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),nW(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),n_(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}let nX=765433;function n0(e){return 7>rd(7*e+1,19)}function n1(e){let t=Math.floor((235*e-234)/19),a=29*t+Math.floor((12084+13753*t)/25920);return 3>rd(3*(a+1),7)&&(a+=1),a}function n4(e){let t,a;return n1(e)+(t=n1(e-1),a=n1(e),n1(e+1)-a==356?2:+(a-t==382))}function n3(e){return n4(e+1)-n4(e)}function n5(e,t){if(t>=6&&!n0(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let a=function(e){let t=n3(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===a?30:29:3===t?0===a?29:30:6===t?30*!!n0(e):30}class n2{fromJulianDay(e){let t=e-347997,a=Math.floor((25920*t/nX*19+234)/235)+1,r=n4(a),n=Math.floor(t-r);for(;n<1;)n=Math.floor(t-(r=n4(--a)));let l=1,i=0;for(;i<n;)i+=n5(a,l),l++;let o=n-(i-=n5(a,--l));return new nd(this,a,l,o)}toJulianDay(e){let t=n4(e.year);for(let a=1;a<e.month;a++)t+=n5(e.year,a);return t+e.day+347997}getDaysInMonth(e){return n5(e.year,e.month)}getMonthsInYear(e){return n0(e.year)?13:12}getDaysInYear(e){return n3(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(n0(t.year)&&!n0(e.year)&&t.month>6?e.month--:!n0(t.year)&&n0(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class n6 extends rf{fromJulianDay(e){let t,a,r,n=super.fromJulianDay(e),l=n.year-78,i=e-rc(n.era,n.year,1,1);if(i<80?(l--,i+=(t=rm(n.year-1)?31:30)+155+90+10):(t=rm(n.year)?31:30,i-=80),i<t)a=1,r=i+1;else{let e=i-t;e<155?(a=Math.floor(e/31)+2,r=e%31+1):(e-=155,a=Math.floor(e/30)+7,r=e%30+1)}return new nd(this,l,a,r)}toJulianDay(e){let t,a,[r,n]=rh(e.year+78);
7return(rm(n)?(t=31,a=rc(r,n,3,21)):(t=30,a=rc(r,n,3,22)),1===e.month)?a+e.day-1:(a+=t+31*Math.min(e.month-2,5),e.month>=8&&(a+=(e.month-7)*30),a+=e.day-1)}getDaysInMonth(e){return 1===e.month&&rm(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function n7(e,t,a,r){return r+Math.ceil(29.5*(a-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function n9(e,t,a){let r=Math.floor((30*(a-t)+10646)/10631),n=Math.min(12,Math.ceil((a-(29+n7(t,r,1,1)))/29.5)+1),l=a-n7(t,r,n,1)+1;return new nd(e,r,n,l)}function n8(e){return(14+11*e)%30<11}class le{fromJulianDay(e){return n9(this,1948440,e)}toJulianDay(e){return n7(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&n8(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return n8(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class lt extends le{fromJulianDay(e){return n9(this,1948439,e)}toJulianDay(e){return n7(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function la(e){return 460322+r[e-1300]}function lr(e,t){return(a[e-1300]&1<<11-(t-1))==0?29:30}function ln(e,t){let a=la(e);for(let r=1;r<t;r++)a+=lr(e,r);return a}function ll(e){return r[e+1-1300]-r[e-1300]}class li extends le{constructor(){if(super(),this.identifier="islamic-umalqura",a||(a=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!r){r=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){r[t-1300]=e;for(let a=1;a<=12;a++)e+=lr(t,a)}}}fromJulianDay(e){let t=e-1948440,a=la(1300),r=la(1600);if(t<a||t>r)return super.fromJulianDay(e);{let e=1299,a=1,r=1;for(;r>0;){r=t-la(++e)+1;let n=ll(e);if(r===n){a=12;break}if(r<n){let t=lr(e,a);for(a=1;r>t;)r-=t,t=lr(e,++a);break}}return new nd(this,e,a,t-ln(e,a)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+ln(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):lr(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):ll(e.year)}}let lo=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],ls=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],lu=[1867,1911,1925,1988,2018],ld=["meiji","taisho","showa","heisei","reiwa"];function lc(e){let t=lo.findIndex(([t,a,r])=>!!(e.year<t)||e.year===t&&!!(e.month<a)||e.year===t&&e.month===a&&!!(e.day<r));return -1===t?lo.length-1:0===t?0:t-1}function lm(e){let t=lu[ld.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new nd(e.year+t,e.month,e.day)}class lp extends rf{fromJulianDay(e){let t=super.fromJulianDay(e),a=lc(t);return new nd(this,ld[a],t.year-lu[a],t.month,t.day)}toJulianDay(e){return super.toJulianDay(lm(e))}balanceDate(e){let t=lm(e),a=lc(t);ld[a]!==e.era&&(e.era=ld[a],e.year=t.year-lu[a]),this.constrainDate(e)}constrainDate(e){let t=ld.indexOf(e.era),a=ls[t];if(null!=a){let[r,n,l]=a,i=r-lu[t];e.year=Math.max(1,Math.min(i,e.year)),e.year===i&&(e.month=Math.min(n,e.month),e.month===n&&(e.day=Math.min(l,e.day)))}if(1===e.year&&t>=0){let[,a,r]=lo[t];e.month=Math.max(a,e.month),e.month===a&&(e.day=Math.max(r,e.day))}}getEras(){return ld}getYearsInEra(e){let t=ld.indexOf(e.era),a=lo[t],r=lo[t+1];if(null==r)return 9999-a[0]+1;let n=r[0]-a[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&n++,n}getDaysInMonth(e){return super.getDaysInMonth(lm(e))}getMinimumMonthInYear(e){let t=lh(e);return t?t[1]:1}
7getMinimumDayInMonth(e){let t=lh(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function lh(e){if(1===e.year)return lo[ld.indexOf(e.era)]}let lg=[0,31,62,93,124,155,186,216,246,276,306,336];class lf{fromJulianDay(e){let t=e-1948320,a=1+Math.floor((33*t+3)/12053),r=t-(365*(a-1)+Math.floor((8*a+21)/33)),n=r<216?Math.floor(r/31):Math.floor((r-6)/30),l=r-lg[n]+1;return new nd(this,a,n+1,l)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=lg[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>rd(25*e.year+11,33)?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function ly(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function lb(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class lv extends rf{fromJulianDay(e){let t=super.fromJulianDay(e),[a,r]=lb(rp(t.era,t.year));return new nd(this,a,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(lx(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,a]=lb(ly(e));e.era=t,e.year=a}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(lx(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function lx(e){let[t,a]=rh(ly(e));return new nd(t,a,e.month,e.day)}function lD(e){switch(e){case"buddhist":return new nH;case"ethiopic":return new nY;case"ethioaa":return new nJ;case"coptic":return new nQ;case"hebrew":return new n2;case"indian":return new n6;case"islamic-civil":return new le;case"islamic-tbla":return new lt;case"islamic-umalqura":return new li;case"japanese":return new lp;case"persian":return new lf;case"roc":return new lv;default:return new rf}}function lk(e,t,a){return null!=t&&0>e.compare(t)||null!=a&&e.compare(a)>0}function lC(e,t,a,r,n){let l={};for(let e in t)l[e]=Math.floor(t[e]/2),l[e]>0&&t[e]%2==0&&l[e]--;let i=lw(e,t,a).subtract(l);return lS(e,i,t,a,r,n)}function lw(e,t,a,r,n){let l=e;if(t.years)l=rR(e.subtract({months:e.month-1}));else t.months?l=rR(e):(t.weeks||t.days&&t.days>7)&&(l=rM(e,a));return lS(e,l,t,a,r,n)}function lE(e,t,a,r,n){let l={...t};l.days?l.days--:l.weeks?l.weeks--:l.months?l.months--:l.years&&l.years--;let i=lw(e,t,a).subtract(l);return lS(e,i,t,a,r,n)}function lS(e,t,a,r,n,l){if(n&&e.compare(n)>=0){let e=rB(t,lw(rH(n),a,r));e&&(t=e)}if(l&&0>=e.compare(l)){let e=rK(t,lE(rH(l),a,r));e&&(t=e)}return t}function lP(e,t,a){if(t){let a=rB(e,rH(t));a&&(e=a)}if(a){let t=rK(e,rH(a));t&&(e=t)}return e}function l$(e,t,a){if(!a)return e;for(;e.compare(t)>=0&&a(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}let lR="u">typeof document?c.default.useInsertionEffect??c.default.useLayoutEffect:()=>{};function lN(e,t,a){let[r,n]=(0,c.useState)(e||t),l=(0,c.useRef)(r),i=(0,c.useRef)(void 0!==e),o=void 0!==e;(0,c.useEffect)(()=>{i.current,i.current=o},[o]);let s=o?e:r;lR(()=>{l.current=s});let[,u]=(0,c.useReducer)(()=>({}),{});return[s,(0,c.useCallback)((e,...t)=>{let r="function"==typeof e?e(l.current):e;Object.is(l.current,r)||(l.current=r,n(r),u(),a?.(r,...t))},[a])]}function lM(e){let t=(0,c.useMemo)(()=>new nD(e.locale),[e.locale]),a=(0,c.useMemo)(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:n,visibleDuration:l={months:1},minValue:i,maxValue:o,selectionAlignment:s,isDateUnavailable:u,pageBehavior:d="visible",selectionMode:m="single",firstDayOfWeek:p,weeksInMonth:h}=e,g=(0,c.useMemo)(()=>n(a.calendar),[n,a.calendar]),[f,y]=lN(e.value,e.defaultValue??null,e.onChange),b=(0,c.useMemo)(()=>Array.isArray(f)?f.map(e=>rG(rH(e),g)):f?rG(rH(f),g):null,[f,g]),v=(0,c.useMemo)(()=>{let e=Array.isArray(f)?f[0]:f;return e&&"timeZone"in e?e.timeZone:a.timeZone},[f,a.timeZone]),[x,D]=lN((0,c.useMemo)(()=>e.focusedValue?lP(rG(rH(e.focusedValue),g),i,o):void 0,[e.focusedValue,g,i,o]),(0,c.useMemo)(()=>e.defaultFocusedValue?lP(rG(rH(e.defaultFocusedValue),g),i,o):b?lP(Array.isArray(b)?b[0]:b,i,o):lP(rG(rw(v),g),i,o),[e.defaultFocusedValue,b,v,g,i,o]),e.onF
7ocusChange),k=()=>{switch(s){case"start":return lw(x,l,r,i,o);case"end":return lE(x,l,r,i,o);default:return lC(x,l,r,i,o)}},[C,w]=(0,c.useState)(k),[E,S]=(0,c.useState)(e.autoFocus||!1),[P,$]=(0,c.useState)(l);l!==P&&(l.days!==P.days||l.weeks!==P.weeks||l.months!==P.months||l.years!==P.years)&&($(l),w(k()));let R=(0,c.useMemo)(()=>{let e={...l};return e.days?e.days--:e.days=-1,C.add(e)},[C,l]),[N,M]=(0,c.useState)(g);if(!rx(g,N)){let e=rG(x,g);w(lC(e,l,r,i,o)),D(e),M(g)}function T(e){D(e=lP(e,i,o))}function F(e){let t=l$(lP(e,i,o),C,u);if(!t)return null;let a=Array.isArray(f)?f[0]:f,r=rG(t,a?.calendar||new rf);return a&&"hour"in a?a.set(r):r}function K(t){if(!e.isDisabled&&!e.isReadOnly){if(null===t)return void y("multiple"===m?[]:null);if(Array.isArray(t))y(t.map(F).filter(Boolean));else{let e=F(t);e&&y(e)}}}lk(x,i,o)?D(lP(x,i,o)):0>x.compare(C)?w(lE(x,l,r,i,o)):x.compare(R)>0&&w(lw(x,l,r,i,o));let B=(0,c.useMemo)(()=>!!b&&(Array.isArray(b)?b.some(e=>u?.(e)||lk(e,i,o)):u?.(b)||lk(b,i,o)),[b,u,i,o]),A=e.isInvalid||"invalid"===e.validationState||B,I=(0,c.useMemo)(()=>"visible"===d?l:lT(l),[d,l]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:b,setValue:K,selectionMode:m,visibleDuration:l,visibleRange:{start:C,end:R},minValue:i,maxValue:o,focusedDate:x,timeZone:v,validationState:A?"invalid":null,isValueInvalid:A,setFocusedDate(e){T(e)},focusNextDay(){T(x.add({days:1}))},focusPreviousDay(){T(x.subtract({days:1}))},focusNextRow(){l.days?this.focusNextPage():(l.weeks||l.months||l.years)&&T(x.add({weeks:1}))},focusPreviousRow(){l.days?this.focusPreviousPage():(l.weeks||l.months||l.years)&&T(x.subtract({weeks:1}))},focusNextPage(){let e=C.add(I);D(lP(x.add(I),i,o)),w(lw(lS(x,e,I,r,i,o),I,r))},focusPreviousPage(){let e=C.subtract(I);D(lP(x.subtract(I),i,o)),w(lw(lS(x,e,I,r,i,o),I,r))},focusSectionStart(){l.days?T(C):l.weeks?T(rM(x,r)):(l.months||l.years)&&T(rR(x))},focusSectionEnd(){l.days?T(R):l.weeks?T(rM(x,r,void 0).add({days:6})):(l.months||l.years)&&T(rN(x))},focusNextSection(e){e||l.days?l.days?this.focusNextPage():l.weeks?T(x.add({months:1})):(l.months||l.years)&&T(x.add({years:1})):T(x.add(lT(l)))},focusPreviousSection(e){e||l.days?l.days?this.focusPreviousPage():l.weeks?T(x.subtract({months:1})):(l.months||l.years)&&T(x.subtract({years:1})):T(x.subtract(lT(l)))},selectFocusedDate(){u&&u(x)||this.selectDate(x)},selectDate(t){if(!e.isDisabled&&!e.isReadOnly)if("multiple"===m&&null!=t){let e=F(t);if(!e)return;let a=[];Array.isArray(f)?a=f:null!=f&&(a=[f]);let r=a.findIndex(t=>rb(t,e));y(r>=0?a.slice(0,r).concat(a.slice(r+1)):[...a,e])}else K(t)},isFocused:E,setFocused:S,isInvalid:e=>lk(e,i,o),isSelected(e){return!(!b||this.isCellDisabled(e)||this.isCellUnavailable(e))&&(Array.isArray(b)?b.some(t=>rb(t,e)):rb(e,b))},isCellFocused:e=>E&&x&&rb(e,x),isCellDisabled(t){return e.isDisabled||0>t.compare(C)||t.compare(R)>0||this.isInvalid(t)},isCellUnavailable:t=>!!e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=C.subtract({days:1});return rb(e,C)||this.isInvalid(e)},isNextVisibleRangeInvalid(){let e=R.add({days:1});return rb(e,R)||this.isInvalid(e)},getDatesInWeek(e,t=C){let a=t.add({weeks:e}),n=[],i=l.days&&l.days<7?l.days:7;if(7===i){let e=rk(a=rM(a,r,p),r,p);for(let t=0;t<e;t++)n.push(null)}for(;n.length<i;){n.push(a);let e=a.add({days:1});if(rb(a,e))break;a=e}for(;n.length<i;)n.push(null);return n},getWeeksInMonth(e=C){let t,a=h||(t=e.calendar.getDaysInMonth(e),Math.ceil((rk(rR(e),r,p)+t)/7));return(l.weeks||l.days)&&(a=l.weeks??0,l.days&&(a+=Math.ceil(l.days/7))),a}}}function lT(e){let t={...e};for(let a in e)t[a]=1;return t}function lF(e,t){return e&&t?(0>t.compare(e)&&([e,t]=[t,e]),{start:rH(e),end:rH(t)}):null}function lK(e,t){return(e=rG(e,t?.calendar||new rf),t&&"hour"in t)?t.set(e):e}function lB(e,t,a,r){let n=e.add({days:r}),l=e.subtract(a),i=e.add(a);for(;(r<0?n.compare(l)>=0:0>=n.compare(i))&&!t(n);)n=n.add({days:r});if(t(n))return n.add({days:-r})}let lA={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 lI(e={}){let{style:t,isFocusable:a}=e,[r,n]=(0,c.useState)(!1),{focusWithinProps:l}=t0({isDisabled:!a,onFocusWithinChange:e=>n(e)}),i=(0,c.useMemo)(()=>r?t:t?{...lA,...t}:lA,[r]);return{visuallyHiddenProps:{...l,style:i}}}function lz(e){let{children:t,elementType:a="div",isFocusable:r,style:n,...l}=e,{visuallyHiddenProps:i}=lI(e);return c.default.createElement(a,N(l,i),t)}let lV=(0,c.createContext)(null),lj=(0,c.createContext)(null),lL=(0,c.createContext)(null),lO=(0,c.createContext)(null),lU=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,lV);let{locale:a}=ed(),r=lM({...e,locale:a,createCalendar:e.createCalendar||lD}),{calendarProps:n,prevButtonProps:l,nextButtonProps:i,errorMessageProps:o,title:s}=nK(e,r),u=K({...e,values:{state:r,isDisabled:e.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"}),d=X(e,{global:!0});return c.default.createElement(L.div,{...N(d,u,n),ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},c.default.createElement(F,{values:[[t7,{slots:{previous:l,next:i}}],[nh,{"aria-hidden":!0,level:2,children:s}],[lL,r],[lV,e],[nf,{slots:{errorMessage:o}}]]},c.default.createElement(lz,null,c.default.createElement("h2",null,n["aria-label"])),u.children,c.default.createElement(lz,null,c.default.createElement("button",{"aria-label":i["aria-label"],disabled:i.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),lH=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,lj);let{locale:a}=ed(),r=function(e){let{value:t,defaultValue:a,onChange:r,createCalendar:n,locale:l,visibleDuration:i={months:1},minValue:o,maxValue:s,...u}=e,[d,m]=lN(t,a||null,r),[p,h]=(0,c.useState)(null),g="center";if(d&&d.start&&d.end){let e=lC(rH(d.start),i,l,o,s).add(i).subtract({days:1});d.end.compare(e)>0&&(g="start")}let f=(0,c.useMemo)(()=>{let t=e.isDateUnavailable;if(t)return e=>t(e,p)},[e.isDateUnavailable,p]),y=(0,c.useCallback)(t=>t&&f&&!e.allowsNonContiguousRanges?{start:lB(t,f,i,-1),end:lB(t,f,i,1)}:null,[f,i,e.allowsNonContiguousRanges]),b=(0,c.useMemo)(()=>y(p),[y,p]),v=(0,c.useMemo)(()=>rB(o,b?.start),[o,b]),x=(0,c.useMemo)(()=>rK(s,b?.end),[s,b]),D=lM({...u,value:d&&d.start,createCalendar:n,locale:l,visibleDuration:i,minValue:v,maxValue:x,selectionAlignment:e.selectionAlignment||g,isDateUnavailable:f}),k=p?lF(p,D.focusedDate):d&&lF(d.start,d.end),C=t=>{if(e.isReadOnly)return;let a=l$(lP(t,v,x),D.visibleRange.start,f);if(a)if(p){let e=lF(p,a);e&&m({start:lK(e.start,d?.start),end:lK(e.end,d?.end)}),h(null)}else h(a)},[w,E]=(0,c.useState)(!1),S=(0,c.useMemo)(()=>!!d&&!p&&(!!(f&&(f(d.start)||f(d.end)))||lk(d.start,o,s)||lk(d.end,o,s)),[f,d,p,o,s]),P=e.isInvalid||"invalid"===e.validationState||S;return{...D,value:d,setValue:m,anchorDate:p,setAnchorDate:h,highlightedRange:k,validationState:P?"invalid":null,isValueInvalid:P,selectFocusedDate(){D.isCellUnavailable(D.focusedDate)||C(D.focusedDate)},commitSelection(){C(D.focusedDate)},selectDate:C,highlightDate(e){p&&D.setFocusedDate(e)},isSelected:e=>!!(k&&e.compare(k.start)>=0&&0>=e.compare(k.end)&&!D.isCellDisabled(e)&&!D.isCellUnavailable(e)),isInvalid:e=>D.isInvalid(e)||lk(e,b?.start,b?.end),isDragging:w,setDragging:E,clearSelection(){h(null),m(null)},focusNearestAvailableDate(e){let t=y(e),a=e=>
7this.isInvalid(e)||lk(e,t?.start,t?.end),r=e.add({days:1});a(r)&&(r=e.subtract({days:1})),a(r)||(this.setFocusedDate(r),this.setFocused(!0))}}}({...e,locale:a,createCalendar:e.createCalendar||lD}),{calendarProps:n,prevButtonProps:l,nextButtonProps:i,errorMessageProps:o,title:s}=function(e,t,a){let{commitBehavior:r="select",...n}=e,l=nK(n,t),i=(0,c.useRef)(!1),o=(0,c.useRef)("u">typeof window?window:null);nU(o,"pointerdown",e=>{i.current=0===e.width&&0===e.height});let s={clear:()=>t.clearSelection(),reset:()=>t.setAnchorDate(null),select:()=>t.commitSelection()};return nU(o,"pointerup",e=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let n=e.target;a.current&&eF(a.current)&&(!eM(a.current,n)||!n.closest('button, [role="button"]'))&&s[r]()}),l.calendarProps.onBlur=e=>{a.current&&(e.relatedTarget&&eM(a.current,e.relatedTarget)||!t.anchorDate||s[r]())},nU(a,"touchmove",e=>{t.isDragging&&e.preventDefault()},{passive:!1,capture:!0}),l}(e,r,t),u=K({...e,values:{state:r,isDisabled:e.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),d=X(e,{global:!0});return c.default.createElement(L.div,{...N(u,d,n),ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},c.default.createElement(F,{values:[[t7,{slots:{previous:l,next:i}}],[nh,{"aria-hidden":!0,level:2,children:s}],[lO,r],[lj,e],[nf,{slots:{errorMessage:o}}]]},c.default.createElement(lz,null,c.default.createElement("h2",null,n["aria-label"])),u.children,c.default.createElement(lz,null,c.default.createElement("button",{"aria-label":i["aria-label"],disabled:i.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),lZ=(0,c.createContext)(null),lW=(0,c.forwardRef)(function(e,t){let a=(0,c.useContext)(lL),r=(0,c.useContext)(lO),n=B(lV),l=B(lj),i=a??r,o=i.visibleRange.start;e.offset&&(o=o.add(e.offset));let s=n?.firstDayOfWeek??l?.firstDayOfWeek,{gridProps:u,headerProps:d,weekDays:m,weeksInMonth:p}=function(e,t){let{startDate:a=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:n}=e,{direction:l}=ed(),i=nM(a,r,t.timeZone,!0),{ariaLabel:o,ariaLabelledBy:s}=nR.get(t),u=ee({"aria-label":[o,i].filter(Boolean).join(", "),"aria-labelledby":s}),d=nS({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:m}=ed(),p=(0,c.useMemo)(()=>{let e=t.visibleDuration.days&&t.visibleDuration.days<7,r=e?a:rM(rw(t.timeZone),m,n);return[...Array(e?t.visibleDuration.days:7).keys()].map(e=>{let a=r.add({days:e}).toDate(t.timeZone);return d.format(a)})},[m,t.timeZone,d,n,a,t.visibleDuration.days]),h=t.getWeeksInMonth(a);return{gridProps:N(u,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||"multiple"===t.selectionMode||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),t.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),t.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),t.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===l?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===l?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(e.preventDefault(),t.setAnchorDate(null))}},onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:p,weeksInMonth:h}}({startDate:o,endDate:rN(o),weekdayStyle:e.weekdayStyle,firstDayOfWeek:s},i),h=X(e,{global:!0});return c.default.createElement(lZ.Provider,{value:{headerProps:d,weekDays:m,startDate:o,weeksInMonth:p}},c.default.createElement(L.table,{render:e.render,...N(h,u),ref:t,style:e.style,cellPadding:0,className:e.className??"react-aria-CalendarGrid"},"function"!=typeof e.children?e.children:c.default.createElement(c.default.Fragment,null,c.default.createElement(lG,null,e=>c.default.createElement(lq,null,e)),c.default.createElement(l_,null,e.children))))}),lG=(0,c.forwardRef)(function(e,t){let{children:a,style:r,className:n}=e,{headerProps:l,weekDays:i}=(0,c.useContext)(lZ),o=X(e,{global:!0});return c.default.createElement(L.thead,{render:e.render,...N(o,l),ref:t,style:r,className:n??"react-aria-CalendarGridHeader"},c.default.createElement("tr",null,i.map((e,t)=>c.default.cloneElement(a(e),{key:t}
7))))}),lq=(0,c.forwardRef)(function(e,t){let{children:a,style:r,className:n}=e,l=X(e,{global:!0});return c.default.createElement(L.th,{render:e.render,...l,ref:t,style:r,className:n||"react-aria-CalendarHeaderCell"},a)}),l_=(0,c.forwardRef)(function(e,t){let{children:a,style:r,className:n}=e,l=(0,c.useContext)(lL),i=(0,c.useContext)(lO),o=l??i,{startDate:s,weeksInMonth:u}=(0,c.useContext)(lZ),d=X(e,{global:!0});return c.default.createElement(L.tbody,{render:e.render,...d,ref:t,style:r,className:n??"react-aria-CalendarGridBody"},[...Array(u).keys()].map(e=>c.default.createElement("tr",{key:e},o.getDatesInWeek(e,s).map((e,t)=>e?c.default.cloneElement(a(e),{key:t}):c.default.createElement("td",{key:t})))))}),lY=(0,c.forwardRef)(function({date:e,...t},a){var r,n;let l=(0,c.useContext)(lL),i=(0,c.useContext)(lO),o=l??i,{startDate:s}=(0,c.useContext)(lZ)??{startDate:o.visibleRange.start},u=!o.visibleDuration.days&&!o.visibleDuration.weeks&&(r=s,n=rG(n=e,r.calendar),r=rR(r),n=rR(n),r.era!==n.era||r.year!==n.year||r.month!==n.month),d=rb(e,rw(o.timeZone)),m=(0,c.useRef)(null),{cellProps:p,buttonProps:h,...g}=function(e,t,a){var r;let n,{date:l,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:s}=nR.get(t),u=rn((r=nb)&&r.__esModule?r.default:r,"@react-aria/calendar"),d=nS({weekday:"long",day:"numeric",month:"long",year:"numeric",era:nN(l),timeZone:t.timeZone}),m=t.isCellFocused(l)&&!e.isOutsideMonth;i=i||t.isCellDisabled(l)||!!e.isOutsideMonth;let p=t.isCellUnavailable(l),h=!i&&!p,g=t.isSelected(l)&&h,f=!1;t.isValueInvalid&&("highlightedRange"in t?f=!t.anchorDate&&null!=t.highlightedRange&&l.compare(t.highlightedRange.start)>=0&&0>=l.compare(t.highlightedRange.end):Array.isArray(t.value)?f=t.value.some(e=>rb(e,l)):t.value&&(f=rb(t.value,l))),f&&!i&&(g=!0),l=nv(l,rv);let y=(0,c.useMemo)(()=>l.toDate(t.timeZone),[l,t.timeZone]),b=rb(l,rw(t.timeZone)),v=(0,c.useMemo)(()=>{let e="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(rb(l,t.value.start)||rb(l,t.value.end))&&(e=s+", "),e+=d.format(y),b?e=u.format(g?"todayDateSelected":"todayDate",{date:e}):g&&(e=u.format("dateSelected",{date:e})),t.minValue&&rb(l,t.minValue)?e+=", "+u.format("minimumDate"):t.maxValue&&rb(l,t.maxValue)&&(e+=", "+u.format("maximumDate")),e},[d,y,u,g,b,l,t,s]),x="";"anchorDate"in t&&m&&!t.isReadOnly&&h&&(x=t.anchorDate?u.format("finishRangeSelectionPrompt"):u.format("startRangeSelectionPrompt"));let D=nO(x),k=(0,c.useRef)(!1),C=(0,c.useRef)(!1),w=(0,c.useRef)(void 0),{pressProps:E,isPressed:S}=tW({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!h||t.isReadOnly,onPressStart(e){if(t.isReadOnly){t.setFocusedDate(l),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(t.highlightedRange&&!f){if(rb(l,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(l),t.setFocused(!0),t.setDragging(!0),C.current=!0;return}else if(rb(l,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(l),t.setFocused(!0),t.setDragging(!0),C.current=!0;return}}let a=()=>{t.setDragging(!0),w.current=void 0,t.selectDate(l),t.setFocusedDate(l),t.setFocused(!0),k.current=!0};"touch"===e.pointerType?w.current=setTimeout(a,200):a()}},onPressEnd(){C.current=!1,k.current=!1,clearTimeout(w.current),w.current=void 0},onPress(){"anchorDate"in t||t.isReadOnly||(t.selectDate(l),t.setFocusedDate(l),t.setFocused(!0))},onPressUp(e){!t.isReadOnly&&("anchorDate"in t&&w.current&&(t.selectDate(l),t.setFocusedDate(l),t.setFocused(!0)),"anchorDate"in t&&(C.current?t.setAnchorDate(l):t.anchorDate&&!k.current?(t.selectDate(l),t.setFocusedDate(l),t.setFocused(!0)):"keyboard"!==e.pointerType||t.anchorDate?"virtual"===e.pointerType&&(t.selectDate(l),t.setFocusedDate(l),t.setFocused(!0)):(t.selectDate(l),t.focusNearestAvailableDate(l))))}});i||(n=rb(l,t.focusedDate)?0:-1),(0,c.useEffect)(()=>{m&&a.current&&(eP(a.current),"pointer"!==te&&((e=document)=>e.activeElement)()===a.current&&nV(a.current,{containingElement:nA(a.current)}))},[m,a]);let P=nS({day:"numeric",timeZone:t.timeZone,calendar:l.calendar.identifier}),$=(0,c.useMemo)(()=>P.formatToParts(y).find(e=>"day"===e.type).value,[P,y]);return{cellProps:{role:"gridcell","aria-disabled":!h||void 0,"aria-selected":g||void 0,"aria-invalid":f||void 0},buttonProps:N(E,{onFocus(){i||(t.setFocusedDate(l),t.setFocused(!0))},tabIndex:n,role:"button","aria-disabled":!h||void 0,"aria-label":v,"aria-invalid":f||void 0,"aria-describedby":[f?o:void 0,D["aria-describedby"]].filter(
7Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in t&&("touch"!==e.pointerType||t.isDragging)&&h&&t.highlightDate(l)},onPointerDown(e){let t=eT(e);t instanceof HTMLElement&&"releasePointerCapture"in t&&("hasPointerCapture"in t?t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId):t.releasePointerCapture(e.pointerId))},onContextMenu(e){e.preventDefault()}}),isPressed:S,isFocused:m,isSelected:g,isDisabled:i,isUnavailable:p,isOutsideVisibleRange:0>l.compare(t.visibleRange.start)||l.compare(t.visibleRange.end)>0,isInvalid:f,formattedDate:$}}({date:e,isOutsideMonth:u},o,m),{hoverProps:f,isHovered:y}=t6({...t,isDisabled:g.isDisabled||g.isUnavailable}),{focusProps:b,isFocusVisible:v}=t1();v&&=g.isFocused;let x=!1,D=!1;"highlightedRange"in o&&o.highlightedRange&&(x=rb(e,o.highlightedRange.start),D=rb(e,o.highlightedRange.end));let k=K({...t,defaultChildren:g.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:e,isHovered:y,isOutsideMonth:u,isFocusVisible:v,isSelectionStart:x,isSelectionEnd:D,isToday:d,...g}}),C={"data-focused":g.isFocused||void 0,"data-hovered":y||void 0,"data-pressed":g.isPressed||void 0,"data-unavailable":g.isUnavailable||void 0,"data-disabled":g.isDisabled||void 0,"data-focus-visible":v||void 0,"data-outside-visible-range":g.isOutsideVisibleRange||void 0,"data-outside-month":u||void 0,"data-selected":g.isSelected||void 0,"data-selection-start":x||void 0,"data-selection-end":D||void 0,"data-invalid":g.isInvalid||void 0,"data-today":d||void 0},w=X(t,{global:!0});return c.default.createElement("td",{...p,ref:a},c.default.createElement(L.div,{...N(w,h,b,f,C,k),ref:m}))});function lJ(e){return new nd(e.getFullYear(),e.getMonth()+1,e.getDate())}function lQ(e){return e.toDate(r$())}(0,c.forwardRef)(({value:e,defaultValue:t,onChange:a,minValue:r,maxValue:n,isDisabled:l,isDateUnavailable:i,className:o},s)=>(0,u.jsxs)(lU,{ref:s,value:e?lJ(e):e,defaultValue:t?lJ(t):void 0,onChange:e=>a?.(lQ(e)),minValue:r?lJ(r):void 0,maxValue:n?lJ(n):void 0,isDisabled:l,isDateUnavailable:i?e=>i(lQ(e)):void 0,className:at("inline-flex flex-col",o),children:[(0,u.jsxs)("header",{className:"mb-3 flex items-center justify-between gap-2",children:[(0,u.jsx)(t9,{slot:"previous","aria-label":"Previous month",className:at("flex size-8 items-center justify-center rounded-lg text-gray-600 transition-colors","data-hover:bg-gray-100","data-disabled:cursor-not-allowed data-disabled:opacity-40","dark:text-gray-300 dark:data-hover:bg-gray-700",aa),children:(0,u.jsx)("svg",{className:"size-4",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z",clipRule:"evenodd"})})}),(0,u.jsx)(ng,{className:"text-sm font-semibold text-gray-900 dark:text-gray-100"}),(0,u.jsx)(t9,{slot:"next","aria-label":"Next month",className:at("flex size-8 items-center justify-center rounded-lg text-gray-600 transition-colors","data-hover:bg-gray-100","data-disabled:cursor-not-allowed data-disabled:opacity-40","dark:text-gray-300 dark:data-hover:bg-gray-700",aa),children:(0,u.jsx)("svg",{className:"size-4",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})})]}),(0,u.jsxs)(lW,{className:"border-separate border-spacing-y-0.5",children:[(0,u.jsx)(lG,{children:e=>(0,u.jsx)(lq,{className:"pb-1 text-xs font-medium text-gray-500 dark:text-gray-400",children:e})}),(0,u.jsx)(l_,{children:e=>(0,u.jsx)(lY,{date:e,className:at("flex size-9 cursor-pointer items-center justify-center rounded-full text-sm outline-none transition-colors","text-gray-900 dark:text-gray-100","data-hover:bg-gray-100 dark:data-hover:bg-gray-700","data-pressed:scale-[0.97]","data-selected:bg-blue-600 data-selected:text-white","data-selected:data-hover:bg-blue-700","data-disabled:cursor-not-allowed data-disabled:text-gray-300 data-disabled:data-hover:bg-transparent","data-unavailable:text-gray-300 data-unavailable:line-through data-unavailable:cursor-not-allowed","data-outside-month:text-gray-300 dark:data-outside-month:text-gray-600","data-focus-visible:ring-2 data-focus-visible:ring-blue-500 data-focus-visible:ring-offset-1")})})]})]}
7)).displayName="Calendar";let lX=(0,c.createContext)(null),l0=(0,c.forwardRef)(function(e,t){let a=(0,c.useContext)(lX);return a?.isInvalid?c.default.createElement(l1,{...e,ref:t}):null}),l1=(0,c.forwardRef)((e,t)=>{let a=(0,c.useContext)(lX),{elementType:r,...n}=e,l=X(n,{global:!0}),i=K({...n,defaultClassName:"react-aria-FieldError",defaultChildren:0===a.validationErrors.length?void 0:a.validationErrors.join(" "),values:a});return null==i.children?null:c.default.createElement(ny,{slot:"errorMessage",elementType:r,...l,...i,ref:t})}),l4={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},l3={...l4,customError:!0,valid:!1},l5={isInvalid:!1,validationDetails:l4,validationErrors:[]},l2=(0,c.createContext)({}),l6="__reactAriaFormValidationState";function l7(e){if(e[l6]){let{realtimeValidation:t,displayValidation:a,updateValidation:r,resetValidation:n,commitValidation:l}=e[l6];return{realtimeValidation:t,displayValidation:a,updateValidation:r,resetValidation:n,commitValidation:l}}return function(e){let{isInvalid:t,validationState:a,name:r,value:n,builtinValidation:l,validate:i,validationBehavior:o="aria"}=e;a&&(t||="invalid"===a);let s=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:l3}:null,u=(0,c.useMemo)(()=>i&&null!=n?l8(function(e,t){if("function"==typeof e){let a=e(t);if(a&&"boolean"!=typeof a)return l9(a)}return[]}(i,n)):null,[i,n]);l?.validationDetails.valid&&(l=void 0);let d=(0,c.useContext)(l2),m=(0,c.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>l9(d[e])):l9(d[r]):[],[d,r]),[p,h]=(0,c.useState)(d),[g,f]=(0,c.useState)(!1);d!==p&&(h(d),f(!1));let y=(0,c.useMemo)(()=>l8(g?[]:m),[g,m]),b=(0,c.useRef)(l5),[v,x]=(0,c.useState)(l5),D=(0,c.useRef)(l5),[k,C]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(!k)return;C(!1);let e=u||l||b.current;ie(e,D.current)||(D.current=e,x(e))}),{realtimeValidation:s||y||u||l||l5,displayValidation:"native"===o?s||y||v:s||y||u||l||v,updateValidation(e){"aria"!==o||ie(v,e)?b.current=e:x(e)},resetValidation(){ie(l5,D.current)||(D.current=l5,x(l5)),"native"===o&&C(!1),f(!0)},commitValidation(){"native"===o&&C(!0),f(!0)}}}(e)}function l9(e){return e?Array.isArray(e)?e:[e]:[]}function l8(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:l3}:null}function ie(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,a)=>e===t.validationErrors[a])&&Object.entries(e.validationDetails).every(([e,a])=>t.validationDetails[e]===a)}function it(...e){let t=new Set,a=!1,r={...l4};for(let n of e){for(let e of n.validationErrors)t.add(e);for(let e in a||=n.isInvalid,r)r[e]||=n.validationDetails[e]}return r.valid=!a,{isInvalid:a,validationErrors:[...t],validationDetails:r}}let ia=(0,c.createContext)(null),ir=new WeakMap;function il(e){let{description:t,errorMessage:a,isInvalid:r,validationState:n}=e,{labelProps:l,fieldProps:i}=et(e),o=S([!!t,!!a,r,n]),s=S([!!t,!!a,r,n]);return{labelProps:l,fieldProps:i=N(i,{"aria-describedby":[o,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:o},errorMessageProps:{id:s}}}function ii(e,t,a){let r=tV(e=>{a&&!e.defaultPrevented&&a(t)});(0,c.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener("reset",r),()=>{t?.removeEventListener("reset",r)}},[e])}function io(e,t,a){let{validationBehavior:r,focus:n}=e;p(()=>{if("native"===r&&a?.current&&"setCustomValidity"in a.current&&!a.current.disabled){var e;let r,n=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";a.current.setCustomValidity(n),a.current.hasAttribute("title")||(a.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=a.current).validity.valid,validationDetails:{badInput:(r=e.validity).badInput,customError:r.customError,patternMismatch:r.patternMismatch,rangeOverflow:r.rangeOverflow,rangeUnderflow:r.rangeUnderflow,stepMismatch:r.stepMismatch,tooLong:r.tooLong,tooShort:r.tooShort,typeMismatch:r.typeMismatch,valueMissing:r.valueMissing,valid:r.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let l=(0,c.useRef)(!1),i=tV(()=>{l.current||t.resetValidation()}),o=tV(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=a?.current?.form;!e.defaultPrevented&&a&&r&&function(e){for(let t=0;t<e.elements.length;t++){let a=e.elements[t];if(a.validity?.valid===!1)return a}return null}(r)===a.current&&(n?n():a.current?.focus(),tg("keyboard")),e.preventDefault()}),s=tV(()=>{t.commitValidation()});(0,c.useEffect)(()=>{let e=a?.current;if(!e)return;let t=e.form,r=t?.reset;return t&&(t.reset=()=>{l.current=!window.event||"message"===window.event.type&&eT(window.event)instanceof MessagePort,r?.call(t),l.current=!1}),e.addEventListener("invalid",o),e.addEventListener("change",s),t?.addEventListener("reset",i),()=>{e.removeEventListener("invalid",o),e.removeEventListener("change",s),t?.removeEventListener("reset",i),t&&(t.reset=r)}},[a,r])}
7function is(e=!0){let t=E(),[a,r]=function(e=!0){let[t,a]=(0,c.useState)(e),r=(0,c.useRef)(!1),n=(0,c.useCallback)(e=>{r.current=!0,a(!!e)},[]);return p(()=>{r.current||a(!1)},[]),[n,t]}(e);return{id:r?t:void 0,ref:a}}function iu(e,t,a){let{isDisabled:r=!1,isReadOnly:n=!1,value:l,name:i,form:o,children:s,isRequired:u,validationBehavior:d="aria","aria-label":m,"aria-labelledby":p,"aria-describedby":h,onPressStart:g,onPressEnd:f,onPressChange:y,onPress:b,onPressUp:v,onClick:x}=e,D=l7({...e,value:t.isSelected}),{isInvalid:k,validationErrors:C,validationDetails:w}=D.displayValidation;io(e,D,a);let{pressProps:E,isPressed:S}=tW({onPressStart:g,onPressEnd:f,onPressChange:y,onPress:b,onPressUp:v,onClick:x,isDisabled:r}),[P,$]=(0,c.useState)(!1),{pressProps:R}=tW({onPressStart(e){"keyboard"===e.pointerType||"virtual"===e.pointerType?e.continuePropagation():(g?.(e),y?.(!0),$(!0))},onPressEnd(e){"keyboard"===e.pointerType||"virtual"===e.pointerType?e.continuePropagation():(f?.(e),y?.(!1),$(!1))},onPressUp(e){"keyboard"===e.pointerType||"virtual"===e.pointerType?e.continuePropagation():v?.(e)},onClick:x,onPress(r){if("keyboard"===r.pointerType||"virtual"===r.pointerType)return void r.continuePropagation();b?.(r),t.toggle(),a.current?.focus();let{[l6]:n}=e,{commitValidation:l}=n||D;l()},isDisabled:r||n}),{focusableProps:M}=t$(e,a),T=N(E,M),F=X(e,{labelable:!0});ii(a,t.defaultSelected,t.setSelected);let K=is(),B=is();return{labelProps:N(R,{onClick:e=>e.preventDefault()}),inputProps:N(F,{checked:t.isSelected,"aria-required":u&&"aria"===d||void 0,required:u&&"native"===d,"aria-invalid":k||"invalid"===e.validationState||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":n||void 0,"aria-describedby":[K.id,B.id,h].filter(Boolean).join(" ")||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(eT(e).checked)},disabled:r,...null==l?{}:{value:l},name:i,form:o,type:"checkbox",...T}),descriptionProps:K,errorMessageProps:B,isSelected:t.isSelected,isPressed:S||P,isDisabled:r,isReadOnly:n,isInvalid:k||"invalid"===e.validationState,validationErrors:C,validationDetails:w}}function id(e,t,a){let{labelProps:r,inputProps:n,descriptionProps:l,errorMessageProps:i,isSelected:o,isPressed:s,isDisabled:u,isReadOnly:d,isInvalid:m,validationErrors:p,validationDetails:h}=iu(e,t,a),{isIndeterminate:g}=e;return(0,c.useEffect)(()=>{a.current&&(a.current.indeterminate=!!g)}),{labelProps:N(r,(0,c.useMemo)(()=>({onMouseDown:e=>e.preventDefault()}),[])),inputProps:n,descriptionProps:l,errorMessageProps:i,isSelected:o,isPressed:s,isDisabled:u,isReadOnly:d,isInvalid:m,validationErrors:p,validationDetails:h}}function ic(e={}){let{isReadOnly:t}=e,[a,r]=lN(e.isSelected,e.defaultSelected||!1,e.onChange),[n]=(0,c.useState)(a);return{isSelected:a,defaultSelected:e.defaultSelected??n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!a)}}}let im=(0,c.createContext)(null),ip=(0,c.createContext)(null),ih=(0,c.createContext)(null),ig=(0,c.createContext)(null),iy=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,ih);let{validationBehavior:a}=B(ia)||{},r=e.validationBehavior??a??"native",n=function(e={}){let[t,a]=lN(e.value,e.defaultValue||[],e.onChange),[r]=(0,c.useState)(t),n=!!e.isRequired&&0===t.length,l=(0,c.useRef)(new Map),i=l7({...e,value:t}),o=i.displayValidation.isInvalid;return{...i,value:t,defaultValue:e.defaultValue??r,setValue(t){e.isReadOnly||e.isDisabled||a(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected:e=>t.includes(e),addValue(t){e.isReadOnly||e.isDisabled||a(e=>e.includes(t)?e:e.concat(t))},removeValue(r){e.isReadOnly||e.isDisabled||t.includes(r)&&a(t.filter(e=>e!==r))},toggleValue(r){e.isReadOnly||e.isDisabled||(t.includes(r)?a(t.filter(e=>e!==r)):a(t.concat(r)))},setInvalid(e,t){let a=new Map(l.current);t.isInvalid?a.set(e,t):a.delete(e),l.current=a,i.updateValidation(it(...a.values()))},validationState:e.validationState??(o?"invalid":null),isInvalid:o,isRequired:n}}({...e,validationBehavior:r}),[l,i]=I(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:o,labelProps:s,descriptionProps:u,errorMessageProps:d,...m}=function(e,t){let{isDisabled:a,name:r,form:n,validationBehavior:l="aria"}
7=e,{isInvalid:i,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:u,fieldProps:d,descriptionProps:c,errorMessageProps:m}=il({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o});ir.set(t,{name:r,form:n,descriptionId:c.id,errorMessageId:m.id,validationBehavior:l});let p=X(e,{labelable:!0}),{focusWithinProps:h}=t0({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:N(p,{role:"group","aria-disabled":a||void 0,...d,...h}),labelProps:u,descriptionProps:c,errorMessageProps:m,isInvalid:i,validationErrors:o,validationDetails:s}}({...e,label:i,validationBehavior:r},n),p=K({...e,values:{isDisabled:n.isDisabled,isReadOnly:n.isReadOnly,isRequired:e.isRequired||!1,isInvalid:n.isInvalid,state:n},defaultClassName:"react-aria-CheckboxGroup"}),h=X(e,{global:!0});return c.default.createElement(L.div,{...N(h,p,o),ref:t,slot:e.slot||void 0,"data-readonly":n.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":n.isInvalid||void 0,"data-disabled":e.isDisabled||void 0},c.default.createElement(F,{values:[[ig,n],[Z,{...s,ref:l,elementType:"span"}],[nf,{slots:{description:u,errorMessage:d}}],[lX,m]]},p.children))}),ib=(0,c.createContext)(null),iv=(0,c.forwardRef)(function(e,t){let{inputRef:a=null,...r}=e;[e,t]=A(r,t,im);let[n,l]=function(e,t){let{validationBehavior:a}=B(ia)||{},r=e.validationBehavior??a??"native",n=(0,c.useContext)(ig),l=M((0,c.useMemo)(()=>P(t,void 0!==e.inputRef?e.inputRef:null),[t,e.inputRef])),i={...z(e),children:"function"==typeof e.children||e.children,value:e.value,validationBehavior:r};return[n?function(e,t,a){let r=ic({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(a){a?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(a)}}),{name:n,form:l,descriptionId:i,errorMessageId:o,validationBehavior:s}=ir.get(t);s=e.validationBehavior??s;let{realtimeValidation:u}=l7({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),d=(0,c.useRef)(l5),m=()=>{t.setInvalid(e.value,u.isInvalid?u:d.current)};(0,c.useEffect)(m);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:u,h="native"===s?t.displayValidation:p,g=id({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||n,form:e.form||l,isRequired:e.isRequired??t.isRequired,validationBehavior:s,[l6]:{realtimeValidation:p,displayValidation:h,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){d.current=e,m()}}},r,a);return{...g,inputProps:{...g.inputProps,"aria-describedby":[g.inputProps["aria-describedby"],t.isInvalid?o:null,i].filter(Boolean).join(" ")||void 0}}}(i,n,l):id(i,ic(e),l),l]}(e,a);return c.default.createElement(ib.Provider,{value:{...n,inputRef:l,defaultClassName:"react-aria-Checkbox",isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}},c.default.createElement(ix,{...e,ref:t}))}),ix=(0,c.forwardRef)(function(e,t){let{labelProps:a,inputProps:r,isSelected:n,isDisabled:l,isReadOnly:i,isPressed:o,isInvalid:s,inputRef:u,defaultClassName:d,isIndeterminate:m,isRequired:p}=(0,c.useContext)(ib),{isFocused:h,isFocusVisible:g,focusProps:f}=t1(),y=l||i,{hoverProps:b,isHovered:v}=t6({...e,isDisabled:y}),x=K({...e,defaultClassName:d,values:{isSelected:n,isIndeterminate:m||!1,isPressed:o,isHovered:v,isFocused:h,isFocusVisible:g,isDisabled:l,isReadOnly:i,isInvalid:s,isRequired:p||!1}}),D=X(e,{global:!0});return delete D.id,delete D.onClick,c.default.createElement(L.label,{...N(D,a,b,x),ref:t,slot:e.slot||void 0,"data-selected":n||void 0,"data-indeterminate":m||void 0,"data-pressed":o||void 0,"data-hovered":v||void 0,"data-focused":h||void 0,"data-focus-visible":g||void 0,"data-disabled":l||void 0,"data-readonly":i||void 0,"data-invalid":s||void 0,"data-required":p||void 0},c.default.createElement(lz,{elementType:"span"},c.default.createElement("input",{...N(r,f),ref:u})),x.children)}),iD=(0,d.cva)(at("group relative flex items-center cursor-pointer","data-disabled:opacity-50 data-disabled:cursor-not-allowed"),{variants:{size:{sm:"gap-1.5",md:"gap-2"}},defaultVariants:{size:"md"}}),ik=(0,d.cva)(at("flex items-center justify-center shrink-0","rounded border-2 border-gray-300 transition-all duration-150","group-data-pressed:border-gray-400","group-data-selected:bg-blue-600 group-data-selected:border-blue-600","group-data-indeterminate:bg-blue-600 group-data-indeterminate:border-blue-600","dark:border-gray-500","dark:group-data-selected:bg-blue-600 dar
7k:group-data-selected:border-blue-600",aa),{variants:{size:{sm:"size-4",md:"size-5"}},defaultVariants:{size:"md"}}),iC=(0,d.cva)("text-white",{variants:{size:{sm:"size-3",md:"size-3.5"}},defaultVariants:{size:"md"}});(0,c.forwardRef)(({children:e,className:t,headless:a,size:r,...n},l)=>a?(0,u.jsx)(iv,{ref:l,className:t,...n,children:e}):(0,u.jsx)(iv,{ref:l,className:at(iD({size:r}),t),...n,children:({isSelected:t,isIndeterminate:a})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:ik({size:r}),children:[t&&!a?(0,u.jsx)("svg",{className:iC({size:r}),viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:(0,u.jsx)("polyline",{points:"2 9 7 14 15 4",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",className:"checkmark-draw",style:{strokeDasharray:22,strokeDashoffset:0,transition:"stroke-dashoffset 0.25s ease"}})}):null,a?(0,u.jsx)("svg",{className:iC({size:r}),viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:(0,u.jsx)("polyline",{points:"2 9 16 9",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",fill:"none"})}):null]}),e?(0,u.jsx)("span",{className:"text-sm text-gray-700 dark:text-gray-200",children:e}):null]})})).displayName="Checkbox",(0,c.forwardRef)(({label:e,description:t,children:a,className:r,headless:n,...l},i)=>n?(0,u.jsx)(iy,{ref:i,className:r,...l,children:a}):(0,u.jsxs)(iy,{ref:i,className:at("flex flex-col gap-2",r),...l,children:[e?(0,u.jsx)("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:e}):null,t?(0,u.jsx)("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:t}):null,a]})).displayName="CheckboxGroup";let iw=(0,c.createContext)({}),iE=H(function(e,t){[e,t]=A(e,t,iw);let{hoverProps:a,isHovered:r}=t6({...e,isDisabled:e.disabled}),{isFocused:n,isFocusVisible:l,focusProps:i}=t1({isTextInput:!0,autoFocus:e.autoFocus}),o=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],s=K({...e,values:{isHovered:r,isFocused:n,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:o},defaultClassName:"react-aria-Input"});return c.default.createElement(L.input,{...N((e=>{let{onHoverStart:t,onHoverChange:a,onHoverEnd:r,...n}=e;return n})(e),i,a),...s,ref:t,"data-focused":n||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":l||void 0,"data-invalid":o||void 0})});var iS={};let iP=new a9((o=iS={"ar-AE":{alpha:"ألفا",black:"أسود",blue:"أزرق","blue purple":"أرجواني مزرق",brightness:"السطوع",brown:"بني","brown yellow":"أصفر بني",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"سماوي","cyan blue":"أزرق سماوي",dark:"داكن",gray:"رمادي",grayish:"مائل للرمادي",green:"أخضر","green cyan":"سماوي مخضر",hue:"درجة اللون",light:"فاتح",lightness:"الإضاءة",magenta:"أرجواني","magenta pink":"أرجواني وردي",orange:"برتقالي","orange yellow":"أصفر برتقالي",pale:"باهت",pink:"وردي","pink red":"أحمر وردي",purple:"أرجواني","purple magenta":"بنفسجي",red:"أحمر","red orange":"برتقالي محمر",saturation:"التشبع",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} \u{634}\u{641}\u{627}\u{641}`,"very dark":"داكن جدًا","very light":"فاتح جدًا",vibrant:"ساطع",white:"أبيض",yellow:"أصفر","yellow green":"أخضر مصفر"},"bg-BG":{alpha:"Алфа",black:"черно",blue:"Синьо","blue purple":"синьо лилаво",brightness:"Яркост",brown:"кафяво","brown yellow":"кафяво жълто",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"циан","cyan blue":"циан синьо",dark:"тъмно",gray:"сиво",grayish:"сивкав",green:"Зелено","green cyan":"зелен циан",hue:"Оттенък",light:"светло",lightness:"Лекота",magenta:"магента","magenta pink":"магента розово",orange:"оранжево","orange yellow":"оранжево жълто",pale:"бледо",pink:"розово","pink red":"розово червено",purple:"лилаво","purple magenta":"лилаво магента",red:"Червено","red orange":"червен портокал",saturation:"Наситеност",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} \u{43F}\u{440}\u{43E}\u{437}\u{440}\u{430}\u{447}\u{435}\u{43D}`,"very dark":"много тъмно","very light":"много светло",vibrant:" ярко",white:"бяло",yellow:"жълто","yellow green":"жълто зелен"},"cs-CZ":{alpha:"Alfa",black:"černá",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnědá","brown yellow":"hnědožlutá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tyrkysová","cyan blue":"tyrkysovomodrá",dark:"tmavá",gray:"šedá",grayish:"našedlá",green:"Zelená","green cyan":"zelenotyrkysová",hue:"Odstín",light:"světlá",lightness:"Světlost",magenta:"purpurová","magenta pink":"purpurově růžová",orange:"oranžová","orange yellow":"oranžovožlutá",pale:"bledá",pink:"růžová","pink red":"růžovočervená",purple:"fialová","purple magenta":"fialově purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sytost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTrans
7parent} pr\u{16F}hledn\xe9`,"very dark":"velmi tmavá","very light":"velmi světlá",vibrant:"zářivá",white:"bílá",yellow:"žlutá","yellow green":"žlutozelená"},"da-DK":{alpha:"Alfa",black:"sort",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyan blå",dark:"mørk",gray:"grå",grayish:"grålig",green:"Grøn","green cyan":"grøn cyan",hue:"Tone",light:"lys",lightness:"Lyshed",magenta:"magenta","magenta pink":"magenta pink",orange:"orange","orange yellow":"orangegul",pale:"bleg",pink:"lyserød","pink red":"lyserødlig rød",purple:"lilla","purple magenta":"lilla magenta",red:"Rød","red orange":"rødorange",saturation:"Farvemætning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gennemsigtig`,"very dark":"meget mørk","very light":"meget lys",vibrant:"klar",white:"hvid",yellow:"gul","yellow green":"gulgrøn"},"de-DE":{alpha:"Alpha",black:"Schwarz",blue:"Blau","blue purple":"Blaulila",brightness:"Helligkeit",brown:"Braun","brown yellow":"Braungelb",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Cyanblau",dark:"dunkles",gray:"Grau",grayish:"gräuliches",green:"Grün","green cyan":"Grüncyan",hue:"Farbton",light:"helles",lightness:"Leuchtkraft",magenta:"Magenta","magenta pink":"Magentarosa",orange:"Orange","orange yellow":"Orangegelb",pale:"blasses",pink:"Rosa","pink red":"Rosarot",purple:"Lila","purple magenta":"Lilamagenta",red:"Rot","red orange":"Rotorange",saturation:"Sättigung",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, zu ${e.percentTransparent} transparent`,"very dark":"sehr dunkles","very light":"sehr helles",vibrant:"lebhaftes",white:"Weiß",yellow:"Gelb","yellow green":"Gelbgrün"},"el-GR":{alpha:"Άλφα",black:"μαύρο",blue:"Μπλε","blue purple":"μπλε μωβ",brightness:"Φωτεινότητα",brown:"καφέ","brown yellow":"καφέ κίτρινο",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"κυανό","cyan blue":"κυανό μπλε",dark:"σκούρο",gray:"γκρι",grayish:"γκριζωπό",green:"Πράσινο","green cyan":"πράσινο κυανό",hue:"Τόνος",light:"ανοιχτό",lightness:"Φωτεινότητα",magenta:"ματζέντα","magenta pink":"ματζέντα ροζ",orange:"πορτοκαλί","orange yellow":"πορτοκαλί κίτρινο",pale:"ανοιχτό",pink:"ροζ","pink red":"ροζ κόκκινο",purple:"μωβ","purple magenta":"μωβ ματζέντα",red:"Κόκκινο","red orange":"κόκκινο πορτοκαλί",saturation:"Κορεσμός",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} \u{3B4}\u{3B9}\u{3B1}\u{3C6}\u{3B1}\u{3BD}\u{3AD}\u{3C2}`,"very dark":"πολύ σκούρο","very light":"πολύ ανοιχτό",vibrant:"έντονο",white:"λευκό",yellow:"κίτρινο","yellow green":"κίτρινο πράσινο"},"en-US":{hue:"Hue",saturation:"Saturation",lightness:"Lightness",brightness:"Brightness",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"very dark",dark:"dark",light:"light","very light":"very light",pale:"pale",grayish:"grayish",vibrant:"vibrant",black:"black",white:"white",gray:"gray",pink:"pink","pink red":"pink red","red orange":"red orange",brown:"brown",orange:"orange","orange yellow":"orange yellow","brown yellow":"brown yellow",yellow:"yellow","yellow green":"yellow green","green cyan":"green cyan",cyan:"cyan","cyan blue":"cyan blue","blue purple":"blue purple",purple:"purple","purple magenta":"purple magenta",magenta:"magenta","magenta pink":"magenta pink"},"es-ES":{alpha:"Alpha",black:"negro",blue:"Azul","blue purple":"púrpura azulado",brightness:"Brillo",brown:"marrón","brown yellow":"amarillo amarronado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"azul cian",dark:"oscuro",gray:"gris",grayish:"grisáceo",green:"Verde","green cyan":"cian verdoso",hue:"Tono",light:"claro",lightness:"Luminosidad",magenta:"magenta","magenta pink":"rosa magenta",orange:"naranja","orange yellow":"amarillo anaranjado",pale:"pálido",pink:"rosa","pink red":"rojo rosado",purple:"morado","purple magenta":"magenta violáceo",red:"Rojo","red orange":"naranja rojizo",saturation:"Saturación",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} transparente`,"very dark":"muy oscuro","very light":"muy claro",vibrant:"intenso",white:"blanco",yellow:"amarillo","yellow green":"verde amarillento"},"et-EE":{alpha:"Alfa",black:"must",blue:"Sinine","blue purple":"sinakaslilla",brightness:"Heledus",brown:"pruun","brown yellow":"pruunikaskollane",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tsüaan","cyan blue":"tsüaansinine",dark:"tume",gray:"hall",grayish:"hallikas",green:"Roheline","green cyan":"tsüaanroheline",hue:"Värv",light:"valgus",lightness:"Valgus",magenta:"magentapunane","magenta pink":"magentaroosa",orange:"oranž","orange yellow":"oranžikaskollane",pale:"kahvatu",pink:"roosa","pink red":"vaarikapunane",purple:"lilla","purple magenta":"purpurne magenta",red:"Punane","red orange":"punakasoranž",saturation:"Küllastus",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} l\xe4bipaistev`,"very dark":"väga tume","very light":"väga hele",vibrant:"ere",white:"valge",yellow:"kollane","yellow green":"kollakasroheline"},"fi-FI":{alpha:"Alpha",black:"musta",blue:"Sininen","blue purple":"sinivioletti",brightness:"Kirkkaus",brown:"ruskea","brown yellow":"ruskeankeltainen",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"syaani","cyan blue":"syaaninsininen",dark:"tumma",gray:"harmaa",grayish:"harmahtava",green:"Vihreä","green cyan":"vihreänsyaani",hue:"Sävy",light:"vaalea",lightness:"Valomäärä",magenta:"magenta","magenta pink":"magentapinkki",orange:"oranssi","orange yellow":"oranssinkeltainen",pale:"vaalea",pink:"pinkki","pink red":"vaaleanpunainen",purple:"violetti","purple magenta":"violettimagenta",red:"Punainen","red orange":"punaoranssi",saturation:"Värikylläisyys",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} l\xe4pin\xe4kyv\xe4`,"very dark":"hyvin tumma","very light":"erittäin vaalea",vibrant:"eloisa",white:"valkea",yellow:"keltainen","yellow green":"keltavihreä"},"fr-FR":{alpha:"Alpha",black:"Noir",blue:"Bleu","blue purple":"Violet bleu",brightness:"Luminosité",brown:"Brun","brown yellow":"Jaune brun",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Bleu cyan",dark:"Sombre",gray:"Gris",grayish:"Grisâtre",green:"Vert","green cyan":"Cyan vert",hue:"Teinte",light:"Clair",lightness:"Luminosité",magenta:"Magenta","magenta pink":"Rose magenta",orange:"Orange","orange yellow":"Jaune orangé",pale:"Pâle",pink:"Rose","pink red":"Rouge rosé",purple:"Violet","purple magenta":"Magenta violet",red:"Rouge","red orange":"Orange rouge",saturation:"Saturation",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"Très sombre","very light":"Très clair",vibrant:"Vif",white:"Blanc",yellow:"Jaune","yellow green":"Vert jaune"},"he-IL":{alpha:"אלפא",black:"שחור",blue:"כחול","blue purple":"כחול סגול",brightness:"בהירות",brown:"חום","brown yellow":"חום צהוב",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"טורקיז","cyan blue":"כחול ציאן",dark:"כהה",gray:"אפור",grayish:"אפרפר",green:"ירוק","green cyan":"ציאן ירוק",hue:"גוון",light:"אור",lightness:"כמות אור",magenta:"מג'נטה","magenta pink":"ורוד מג'נטה",orange:"כתום","orange yellow":"כתום צהוב",pale:"חיוור",pink:"ורוד","pink red":"ורוד אדום",purple:"סגול","purple magenta":"מג'נטה סגול",red:"אדום","red orange":"כתום אדום",saturation:"רוויה",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} \u{5E9}\u{5E7}\u{5D5}\u{5E3}`,"very dark":"כהה מאוד","very light":"בהיר מאוד",vibrant:"תוסס",white:"לבן",yellow:"צהוב","yellow green":"צהוב ירוק"},"hr-HR":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavo ljubičasta",brightness:"Svjetlina",brown:"smeđa","brown yellow":"smeđe žuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasto",green:"Zelena","green cyan":"zelena cijan",hue:"Nijansa",light:"svjetlo",lightness:"Osvijetljenost",magenta:"magenta","magenta pink":"magentno ružičasta",orange:"narančasta","orange yellow":"narančasto žuta",pale:"blijeda",pink:"ružičasta","pink red":"ružičasto crvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crveno narančasta",saturation:"Zasićenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirnosti`,"very dark":"jako tamna","very light":"vrlo svijetlo",vibrant:"vibrantna",white:"bijela",yellow:"žuto","yellow green":"žuto zelena"},"hu-HU":{alpha:"Alfa",black:"fekete",blue:"Kék","blue purple":"kék lila",brightness:"Fényesség",brown:"barna","brown yellow":"barna sárga",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciánkék","cyan blue":"ciánkék",dark:"sötét",gray:"szürke",grayish:"szürkés",green:"Zöld","green cyan":"zöld ciánkék",hue:"Színárnyalat",light:"világos",lightness:"Világosság",magenta:"bíbor","magenta pink":"bíbor rózsaszín",orange:"narancs","orange yellow":"narancssárga",pale:"halvány",pink:"rózsaszín","pink red":"rózsaszín piros",purple:"lila","purple magenta":"lila bíbor",red:"Piros","red orange":"piros narancs",saturation:"Telítettség",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} \xe1tl\xe1tsz\xf3`,"very dark":"nagyon sötét","very light":"nagyon világos",vibrant:"élénk",white:"fehér",yellow:"sárga","yellow green":"sárga zöld"},"it-IT":{alpha:"Alfa",black:"nero",blue:"Blu","blue purple":"blu viola",brightness:"Luminosità",brown:"marrone","brown yellow":"giallo bruno",colorName:e=>`${e.hue} ${e.chroma} ${e.lightness}`,cyan:"ciano","cyan blue":"blu ciano",dark:"scuro",gray:"grigio",grayish:"grigiastro",green:"Verde","green cyan":"verde ciano",hue:"Tonalità",light:"chiaro",lightness:"Luminosità",magenta:"magenta","magenta pink":"rosa magenta",orange:"arancio","orange yellow":"giallo arancio",pale:"tenue",pink:"rosa","pink red":"rosa rosso",purple:"viola","purple magenta":"viola magenta",red:"Rosso","red orange":"rosso arancio",saturation:"Saturazione",transparentColorName:e=>`${e.hue} ${e.chroma} ${e.lightness}, trasparenza ${e.percentTransparent}`,"very dark":"molto scuro","very light":"molto chiaro",vibrant:"vivace",white:"bianco",yellow:"giallo","yellow green":"giallo verde"},"ja-JP":{alpha:"アルファ",black:"ブラック",blue:"青","blue purple":"ブルーパープル",brightness:"明るさ",brown:"ブラウン","brown yellow":"ブラウンイエロー",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"シアン","cyan blue":"シアンブルー",dark:"ダーク",gray:"グレー",grayish:"グレイッシュ",green:"緑","green cyan":"グリーンシアン",hue:"色相",light:"ライト",lightness:"明度",magenta:"マゼンタ","magenta pink":"マゼンタピンク",orange:"オレンジ","orange yellow":"オレンジイエロー",pale:"ペール",pink:"ピンク","pink red":"ピンクレッド",purple:"パープル","purple magenta":"パープルマゼンタ",red:"赤","red orange":"レッドオレンジ",saturation:"彩度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} \u{900F}\u{660E}`,"very dark":"最も暗い","very light":"ベリーライト",vibrant:"鮮やか",white:"ホワイト",yellow:"イエロー","yellow green":"イエローグリーン"},"ko-KR":{alpha:"알파",black:"검은색",blue:"파랑","blue purple":"청자색",brightness:"명도",brown:"갈색","brown yellow":"황갈색",colorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}`,cyan:"청록색","cyan blue":"청록색",dark:"다크",gray:"회색",grayish:"회갈색",green:"초록","green cyan":"청록색",hue:"색조",light:"라이트",lightness:"밝기",magenta:"자홍색","magenta pink":"마젠타 핑크",orange:"주황색","orange yellow":"불그스름한 노랑",pale:"흙색",pink:"분홍색","pink red":"핑크 레드",purple:"자주색","purple magenta":"보라빛 자홍색",red:"빨강","red orange":"붉은 주황색",saturation:"채도",transparentColorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}, ${e.percentTransparent} \u{D22C}\u{BA85}\u{B3C4}`,"very dark":"매우 어두운","very light":"매우 연함",vibrant:"강렬한",white:"흰색",yellow:"노란색","yellow green":"연두색"},"lt-LT":{alpha:"Alfa",black:"juoda",blue:"Mėlyna","blue purple":"melsvai violetinė",brightness:"Ryškumas",brown:"ruda","brown yellow":"rusvai geltona",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"žalsvai mėlyna","cyan blue":"žalsvai mėlyna",dark:"tamsi",gray:"pilka",grayish:"pilkšva",green:"Žalia","green cyan":"žalsvai mėlyna",hue:"Atspalvis",light:"šviesi",lightness:"Šviesumas",magenta:"rausvai raudona","magenta pink":"purpurinė",orange:"oranžinė","orange yellow":"oranžinio atspalvio geltona",pale:"blyški",pink:"rožinė","pink red":"rožinė raudona",purple:"violetinė","purple magenta":"purpurinė rausvai raudona",red:"Raudona","red orange":"rausvai oranžinė",saturation:"Įsotinimas",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} skaidri`,"very dark":"labai tamsi","very light":"labai šviesi",vibrant:"ryški",white:"balta",yellow:"geltona","yellow green":"gelsvai žalia"},"lv-LV":{alpha:"Alfa",black:"melns",blue:"Zila","blue purple":"zili violets",brightness:"Spilgtums",brown:"brūns","brown yellow":"brūni dzeltens",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciāns","cyan blue":"ciāna zils",dark:"tumšs",gray:"pelēks",grayish:"pelēcīgs",green:"Zaļa","green cyan":"zaļš ciāns",hue:"Nokrāsa",light:"gaišs",lightness:"Gaišums",magenta:"fuksiju","magenta pink":"fuksiju rozā",orange:"oranžs","orange yellow":"oranži dzeltens",pale:"bāls",pink:"rozā","pink red":"rozīgi sarkans",purple:"violets","purple magenta":"violets fuksiju",red:"Sarkana","red orange":"sarkanīgi oranžs",saturation:"Piesātinājums",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} caursp\u{12B}d\u{12B}gs`,"very dark":"ļoti tumšs","very light":"ļoti gaišs",vibrant:"košs",white:"balts",yellow:"dzeltens","yellow green":"dzelteni zaļš"},"nb-NO":{alpha:"Alfa",black:"svart",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mørk",gray:"grå",grayish:"gråaktig",green:"Grønn","green cyan":"grønncyan",hue:"Fargetone",light:"lys",lightness:"Lyshet",magenta:"magenta","magenta pink":"magentarosa",orange:"oransje","orange yellow":"oransjegul",pale:"blek",pink:"rosa","pink red":"rosarød",purple:"lilla","purple magenta":"lillamagenta",red:"Rød","red orange":"rødoransje",saturation:"Metning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} gjennomsiktig`,"very dark":"svært mørk","very light":"svært lys",vibrant:"levende",white:"hvit",yellow:"gul","yellow green":"gulgrønn"},"nl-NL":{alpha:"Alfa",black:"zwart",blue:"Blauw","blue purple":"paarsblauw",brightness:"Helderheid",brown:"bruin","brown yellow":"bruingeel",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyaan","cyan blue":"cyaanblauw",dark:"donker",gray:"grijs",grayish:"grijsachtig",green:"Groen","green cyan":"cyaangroen",hue:"Kleurtoon",light:"licht",lightness:"Lichtsterkte",magenta:"magenta","magenta pink":"magentaroze",orange:"oranje","orange yellow":"oranjegeel",pale:"bleek",pink:"roze","pink red":"rozerood",purple:"paars","purple magenta":"magentapaars",red:"Rood","red orange":"roodoranje",saturation:"Verzadiging",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparant`,"very dark":"heel donker","very light":"heel licht",vibrant:"levendig",white:"wit",yellow:"geel","yellow green":"geelgroen"},"pl-PL":{alpha:"Alfa",black:"czarny",blue:"Niebieski","blue purple":"niebiesko-fioletowy",brightness:"Jasność",brown:"brązowy","brown yellow":"brązowo-żółty",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyjanowy","cyan blue":"cyjanowo-niebieski",dark:"ciemny",gray:"szary",grayish:"szarawy",green:"Zielony","green cyan":"zielono-cyjanowy",hue:"Odcień",light:"jasny",lightness:"Jaskrawość",magenta:"purpurowy","magenta pink":"purpurowo-różowy",orange:"pomarańczowy","orange yellow":"pomarańczowo-żółty",pale:"blady",pink:"różowy","pink red":"różowo-czerwony",purple:"fioletowy","purple magenta":"fioletowo-purpurowy",red:"Czerwony","red orange":"czerwono-pomarańczowy",saturation:"Nasycenie",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} przezroczysto\u{15B}ci`,"very dark":"bardzo ciemny","very light":"bardzo jasny",vibrant:"intensywny",white:"biały",yellow:"żółty","yellow green":"żółto-zielony"},"pt-BR":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"roxo azulado",brightness:"Brilho",brown:"marrom","brown yellow":"marrom amarelado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinza",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Matiz",light:"claro",lightness:"Luminosidade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo alaranjado",pale:"pálido",pink:"rosa","pink red":"rosa avermelhado",purple:"roxo","purple magenta":"roxo-magenta",red:"Vermelho","red orange":"laranja avermelhado",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde amarelado"},"pt-PT":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"azul-púrpura",brightness:"Luminosidade",brown:"castanho","brown yellow":"amarelo-castanho",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinzento",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Tonalidade",light:"claro",lightness:"Claridade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo-laranja",pale:"pálido",pink:"cor-de-rosa","pink red":"vermelho-rosa",purple:"púrpura","purple magenta":"púrpura-magenta",red:"Vermelho","red orange":"laranja-vermelho",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde-amarelo"},"ro-RO":{alpha:"Alfa",black:"negru",blue:"Albastru","blue purple":"albastru-violet",brightness:"Luminozitate",brown:"maro","brown yellow":"galben maro",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"bleu","cyan blue":"albastru-bleu",dark:"închis",gray:"gri",grayish:"cenușiu",green:"Verde","green cyan":"verde bleu",hue:"Nuanță",light:"deschis",lightness:"Luminozitate",magenta:"fucsia","magenta pink":"roz-fucsia",orange:"portocaliu","orange yellow":"galben-portocaliu",pale:"pal",pink:"roz","pink red":"roz-roșu",purple:"violet","purple magenta":"violet-fucsia",red:"Roșu","red orange":"portocaliu-roșu",saturation:"Saturație",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"foarte închis","very light":"foarte deschis",vibrant:"plin de viață",white:"alb",yellow:"galben","yellow green":"galben-verde"},"ru-RU":{alpha:"Альфа",black:"черный",blue:"Синий","blue purple":"сине-фиолетовый",brightness:"Яркость",brown:"коричневый","brown yellow":"коричнево-желтый",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"голубой","cyan blue":"цвет морской волны",dark:"темный",gray:"серый",grayish:"сероватый",green:"Зеленый","green cyan":"сине-зеленый",hue:"Оттенок",light:"светлый",lightness:"Освещенность",magenta:"пурпурный","magenta pink":"пурпурно-розовый",orange:"оранжевый","orange yellow":"оранжево-желтый",pale:"бледный",pink:"розовый","pink red":"розово-красный",purple:"фиолетовый","purple magenta":"фиолетово-пурпурный",red:"Красный","red orange":"красно-оранжевый",saturation:"Насыщенность",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, \u{43F}\u{440}\u{43E}\u{437}\u{440}\u{430}\u{447}\u{43D}\u{44B}\u{439} \u{43D}\u{430}
7 ${e.percentTransparent}`,"very dark":"очень темный","very light":"очень светлый",vibrant:"яркий",white:"белый",yellow:"желтый","yellow green":"желто-зеленый"},"sk-SK":{alpha:"Alfa",black:"čierna",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnedá","brown yellow":"hnedožltá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"azúrová","cyan blue":"azúrová modrá",dark:"tmavá",gray:"sivá",grayish:"sivastá",green:"Zelená","green cyan":"zelená azúrová",hue:"Odtieň",light:"svetlá",lightness:"Svetlosť",magenta:"purpurová","magenta pink":"ružová purpurová",orange:"oranžová","orange yellow":"oranžovožltá",pale:"bledá",pink:"ružová","pink red":"ružovočervená",purple:"fialová","purple magenta":"fialová purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sýtosť",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prieh\u{13E}adn\xe1`,"very dark":"veľmi tmavá","very light":"veľmi svetlá",vibrant:"energická",white:"biela",yellow:"žltá","yellow green":"žltozelená"},"sl-SI":{alpha:"Alfa",black:"črna",blue:"Modra","blue purple":"modro vijolična",brightness:"Svetlost",brown:"rjava","brown yellow":"rjavo rumena",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"cian modra",dark:"temna",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zelena cian",hue:"Barva",light:"svetla",lightness:"Lahkost",magenta:"škrlatna","magenta pink":"škrlatno roza",orange:"oranžna","orange yellow":"oranžno rumena",pale:"bleda",pink:"roza","pink red":"roza rdeča",purple:"vijolična","purple magenta":"vijolično škrlatna",red:"Rdeča","red orange":"rdeče oranžna",saturation:"Nasičenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} prozorna`,"very dark":"zelo temna","very light":"zelo svetla",vibrant:"živahna",white:"bela",yellow:"rumena","yellow green":"rumeno zelena"},"sr-SP":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavoljubičasta",brightness:"Osvetljenost",brown:"smeđa","brown yellow":"smeđežuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zeleno cijan",hue:"Nijansa",light:"svetla",lightness:"Osvetljenje",magenta:"purpurnocrvena","magenta pink":"magenta ružičasta",orange:"narandžasta","orange yellow":"narandžastožuta",pale:"bledo",pink:"ružičasta","pink red":"ružičastocrvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crvenonarandžasta",saturation:"Zasićenje",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirna`,"very dark":"veoma tamno","very light":"vrlo svetlo",vibrant:"živopisna",white:"bela",yellow:"žuto","yellow green":"žutozelena"},"sv-SE":{alpha:"Alfa",black:"svart",blue:"Blått","blue purple":"blålila",brightness:"Ljusstyrka",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mörk",gray:"grå",grayish:"gråaktig",green:"Grönt","green cyan":"grön cyan",hue:"Nyans",light:"ljus",lightness:"Ljushet",magenta:"magenta","magenta pink":"magentarosa",orange:"orange","orange yellow":"orangegul",pale:"blek",pink:"rosa","pink red":"rosaröd",purple:"lila","purple magenta":"lila magenta",red:"Rött","red orange":"rödorange",saturation:"Mättnad",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} genomskinlig`,"very dark":"mycket mörk","very light":"mycket ljus",vibrant:"livfull",white:"vit",yellow:"gul","yellow green":"gulgrön"},"tr-TR":{alpha:"Alfa",black:"siyah",blue:"Mavi","blue purple":"mavi mor",brightness:"Parlaklık",brown:"kahverengi","brown yellow":"kahverengi sarı",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"camgöbeği","cyan blue":"camgöbeği mavi",dark:"koyu",gray:"gri",grayish:"grimsi",green:"Yeşil","green cyan":"yeşil camgöbeği",hue:"Ton",light:"açık",lightness:"Canlılık",magenta:"eflatun","magenta pink":"eflatun pembe",orange:"turuncu","orange yellow":"turuncu sarı",pale:"solgun",pink:"pembe","pink red":"pembe kırmızı",purple:"mor","purple magenta":"mor eflatun",red:"Kırmızı","red orange":"kırmızı portakal",saturation:"Doygunluk",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} saydam`,"very dark":"çok koyu","very light":"çok açık",vibrant:"canlı",white:"beyaz",yellow:"sarı","yellow green":"sarı yeşil"},"uk-UA":{alpha:"Альфа",black:"чорний",blue:"Синій","blue purple":"синьо-фіолетовий",brightness:"Яскравість",brown:"коричневий","brown yellow":"коричнево-жовтий",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"блакитний","cyan blue":"синьо-блакитний",dark:"темний",gray:"сірий",grayish:"сіруватий",green:"Зелений","green cyan":"зелено-блакитний",hue:"Тон",light:"світлий",lightness:"Освітленість",magenta:"пурпуровий","magenta pink":"пурпурово-рожевий",orange:"помаранчевий","orange yellow":"помаранчево-жовтий",pale:"блідий",pink:"рожевий","pink red":"рожево-червоний",purple:"фіолетовий","purple magenta":"фіолетово-пурпуровий",red:"Червоний","red orange":"червоно-помаранчевий",saturation:"Насиченість",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, \u{43F}\u{440}\u{43E}\u{437}\u{43E}\u{440}\u{438}\u{439} \u{43D}\u{430}
7 ${e.percentTransparent}`,"very dark":"дуже темний","very light":"дуже світлий",vibrant:"яскравий",white:"білий",yellow:"жовтий","yellow green":"жовто-зелений"},"zh-CN":{alpha:"Alpha",black:"黑色",blue:"蓝色","blue purple":"蓝紫色",brightness:"亮度",brown:"棕色的","brown yellow":"棕黄色",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"蓝绿色","cyan blue":"青蓝色",dark:"深色",gray:"灰色",grayish:"浅灰色的",green:"绿色","green cyan":"绿青色",hue:"色相",light:"浅色",lightness:"明亮度",magenta:"紫红色","magenta pink":"紫粉色",orange:"橙色","orange yellow":"橙黄色",pale:"苍白的",pink:"粉色","pink red":"粉红色",purple:"紫色","purple magenta":"紫洋红色",red:"红色","red orange":"红橙色",saturation:"饱和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u{900F}\u{660E}`,"very dark":"很暗","very light":"很浅",vibrant:"生机勃勃",white:"白色",yellow:"黄色","yellow green":"黄色/绿色"},"zh-TW":{alpha:"Alpha",black:"黑",blue:"藍色","blue purple":"藍紫",brightness:"亮度",brown:"棕","brown yellow":"棕黃",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"青","cyan blue":"青藍",dark:"暗",gray:"灰",grayish:"偏灰",green:"綠色","green cyan":"青綠",hue:"色相",light:"淺",lightness:"明亮",magenta:"洋紅","magenta pink":"淺洋紅",orange:"橙","orange yellow":"橙黃",pale:"淡",pink:"粉紅","pink red":"粉紅",purple:"紫","purple magenta":"紫洋紅",red:"紅色","red orange":"橙紅",saturation:"飽和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}
7, ${e.percentTransparent} \u{900F}\u{660E}`,"very dark":"很暗","very light":"很淺",vibrant:"鮮豔",white:"白",yellow:"黃","yellow green":"黃綠"}},o.__esModule)?o.default:o);function i$(e){let t=iT.parse(e)||iK.parse(e)||iA.parse(e);if(t)return t;throw Error("Invalid color value: "+e)}function iR(e){return 360===e?e:(e%360+360)%360}let iN=[[0,"pink"],[15,"red"],[48,"orange"],[94,"yellow"],[135,"green"],[175,"cyan"],[264,"blue"],[284,"purple"],[320,"magenta"],[349,"pink"]];class iM{toHexInt(){return this.toFormat("rgb").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw Error("Unsupported color channel: "+e)}withChannelValue(e,t){if(e in this){let a=this.clone();return a[e]=t,a}throw Error("Unsupported color channel: "+e)}getChannelName(e,t){return(a9.getGlobalDictionaryForPackage("@react-stately/color")||iP).getStringForLocale(e,t)}getColorSpaceAxes(e){let{xChannel:t,yChannel:a}=e,r=t||this.getColorChannels().find(e=>e!==a),n=a||this.getColorChannels().find(e=>e!==r),l=this.getColorChannels().find(e=>e!==r&&e!==n);return{xChannel:r,yChannel:n,zChannel:l}}getColorName(e){let t,[a,r,n]=iI(this),l=a9.getGlobalDictionaryForPackage("@react-stately/color")||iP;if(a>.999)return l.getStringForLocale("white",e);if(a<.001)return l.getStringForLocale("black",e);[t,a]=this.getOklchHue(a,r,n,e);let i="",o="";r<=.1&&r>=.001?o=a>=.7?"pale":"grayish":r>=.15&&(o="vibrant"),a<.3?i="very dark":a<.55?i="dark":a<.7||(i=a<.85?"light":"very light"),o&&(o=l.getStringForLocale(o,e)),i&&(i=l.getStringForLocale(i,e));let s=this.getChannelValue("alpha"),u=new rt(e,l);if(!(s<1))return u.format("colorName",{lightness:i,chroma:o,hue:t}).replace(/\s+/g," ").trim();{let a=new eg(e,{style:"percent"}).format(1-s);return u.format("transparentColorName",{lightness:i,chroma:o,hue:t,percentTrans
7parent:a}).replace(/\s+/g," ").trim()}}getOklchHue(e,t,a,r){let n=a9.getGlobalDictionaryForPackage("@react-stately/color")||iP;if(t<.001)return[n.getStringForLocale("gray",r),e];for(let t=0;t<iN.length;t++){let[l,i]=iN[t],[o,s]=iN[t+1]||[360,"pink"];if(a>=l&&a<o)return"orange"===i&&(e<.68?i="brown":e=e-.68+.55),a>l+(o-l)/2&&i!==s?i=`${i} ${s}`:"yellow"===i&&e<.85&&(i="yellow green"),[n.getStringForLocale(i,r).toLocaleLowerCase(r),e]}throw Error("Unexpected hue")}getHueName(e){let[t,a,r]=iI(this),[n]=this.getOklchHue(t,a,r,e);return n}}class iT extends iM{constructor(e,t,a,r){super(),this.red=e,this.green=t,this.blue=a,this.alpha=r}static parse(e){let t=[];if(/^#[\da-f]+$/i.test(e)&&[4,5,7,9].includes(e.length)){let a=(e.length<6?e.replace(/[^#]/gi,"$&$&"):e).slice(1).split("");for(;a.length>0;)t.push(parseInt(a.splice(0,2).join(""),16));t[3]=void 0!==t[3]?t[3]/255:void 0}let a=e.match(/^rgba?\((.*)\)$/);if(a?.[1]&&(t=(t=a[1].split(",").map(e=>Number(e.trim()))).map((e,t)=>ey(e??0,0,t<3?255:1))),void 0!==t[0]&&void 0!==t[1]&&void 0!==t[2])return t.length<3?void 0:new iT(t[0],t[1],t[2],t[3]??1)}toString(e="css"){switch(e){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(255*this.alpha).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hex":case"hexa":case"rgb":case"rgba":return this;case"hsb":case"hsba":return this.toHSB();case"hsl":case"hsla":return this.toHSL();default:throw Error("Unsupported color conversion: rgb -> "+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}
7toHSB(){let e=this.red/255,t=this.green/255,a=this.blue/255,r=Math.min(e,t,a),n=Math.max(e,t,a),l=n-r,i=0;if(0!==l){switch(n){case e:i=(t-a)/l+6*(t<a);break;case t:i=(a-e)/l+2;break;case a:i=(e-t)/l+4}i/=6}return new iK(ex(360*i,2),ex(100*(0===n?0:l/n),2),ex(100*n,2),this.alpha)}toHSL(){let e,t,a=this.red/255,r=this.green/255,n=this.blue/255,l=Math.min(a,r,n),i=Math.max(a,r,n),o=(i+l)/2,s=i-l;if(0===s)e=t=0;else{switch(t=s/(o<.5?i+l:2-i-l),i){case a:e=(r-n)/s+6*(r<n);break;case r:e=(n-a)/s+2;break;default:e=(a-r)/s+4}e/=6}return new iA(ex(360*e,2),ex(100*t,2),ex(100*o,2),this.alpha)}clone(){return new iT(this.red,this.green,this.blue,this.alpha)}getChannelRange(e){switch(e){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let a=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return new eg(t,a).format(r)}getColorSpace(){return"rgb"}static{this.colorChannels=["red","green","blue"]}getColorChannels(){return iT.colorChannels}}let iF=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;class iK extends iM{constructor(e,t,a,r){super(),this.hue=e,this.saturation=t,this.brightness=a,this.alpha=r}static parse(e){let t;if(t=e.match(iF)){let[e,a,r,n]=(t[1]??t[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new iK(iR(e),ey(a,0,100),ey(r,0,100),ey(n??1,0,1))}}toString(e="css"){switch(e){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${ex(this.saturation,2)}%, ${ex(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${ex(this.saturation,2)}%, ${ex(this.brightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsb":case"hsba":return this;case"hsl":case"hsla":return this.toHSL();case"rgb":case"rgba":return this.toRGB();default:throw Error("Unsupported color conversion: hsb -> "+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,a=t*(1-e/2);return e=0===a||1===a?0:(t-a)/Math.min(a,1-a),new iA(ex(this.hue,2),ex(100*e,2),ex(100*a,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,a=this.brightness/100,r=(r,n=(r+e/60)%6)=>a-t*a*Math.max(Math.min(n,4-n,1),0);return new iT(Math.round(255*r(5)),Math.round(255*r(3)),Math.round(255*r(1)),this.alpha)}clone(){return new iK(this.hue,this.saturation,this.brightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let a=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return("saturation"===e||"brightness"===e)&&(r/=100),new eg(t,a).format(r)}getColorSpace(){return"hsb"}static{this.colorChannels=["hue","saturation","brightness"]}getColorChannels(){return iK.colorChannels}}let iB=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;class iA extends iM{constructor(e,t,a,r){super(),this.hue=e,this.saturation=t,this.lightness=a,this.alpha=r}static parse(e){let t;if(t=e.match(iB)){let[e,a,r,n]=(t[1]??t[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new iA(iR(e),ey(a,0,100),ey(r,0,100),ey(n??1,0,1))}}toString(e="css"){switch(e){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${ex(this.saturation,2)}%, ${ex(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${ex(this.saturation,2)}%, ${ex(this.lightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsl":case"hsla":return this;case"hsb":case"hsba":return this.toHSB();case"rgb":case"rgba":return this.toRGB();default:throw Error("Unsupported color conversion: hsl -> "+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,a=t+e*Math.min(t,1-t);return e=0===a?0:2*(1-t/a),new iK(ex(this.hue,2),ex(100*e,2),ex(100*a,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,a=this.lightness/100,r=t*Math.min(a,1-a),n=(t,n=(t+e/30)%12)=>a-r*Math.max(Math.min(n-3,9-n,1),-1);return new iT(Math.round(255*n(0)),Math.round(255*n(8)),Math.round(255*n(4)),this.alpha)}clone(){return new iA(this.hue,this.saturation,this.lightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};
7case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let a=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return("saturation"===e||"lightness"===e)&&(r/=100),new eg(t,a).format(r)}getColorSpace(){return"hsl"}static{this.colorChannels=["hue","saturation","lightness"]}getColorChannels(){return iA.colorChannels}}function iI(e){var t,a,r,n,l,i,o;let s=e.toFormat("rgb"),u=s.getChannelValue("red")/255,d=s.getChannelValue("green")/255,c=s.getChannelValue("blue")/255;[u,d,c]=(t=u,a=d,r=c,[iz(t),iz(a),iz(r)]);let[m,p,h]=iV([506752/1228815,87881/245763,12673/70218,87098/409605,175762/245763,12673/175545,7918/409605,87881/737289,1001167/1053270],u,d,c),[g,f,y]=function(e,t,a){let[r,n,l]=iV([.819022437996703,.3619062600528904,-.1288737815209879,.0329836539323885,.9292868615863434,.0361446663506424,.0481771893596242,.2642395317527308,.6335478284694309],e,t,a);return iV([.210454268309314,.7936177747023054,-.0040720430116193,1.9779985324311684,-2.42859224204858,.450593709617411,.0259040424655478,.7827717124575296,-.8086757549230774],Math.cbrt(r),Math.cbrt(n),Math.cbrt(l))}(m,p,h);return n=g,l=f,o=180*Math.atan2(i=y,l)/Math.PI,[n,Math.sqrt(l**2+i**2),o>=0?o:o+360]}function iz(e){let t=Math.abs(e);return t<=.04045?e/12.92:(e<0?-1:1)*Math.pow((t+.055)/1.055,2.4)}function iV(e,t,a,r){return[e[0]*t+e[1]*a+e[2]*r,e[3]*t+e[4]*a+e[5]*r,e[6]*t+e[7]*a+e[8]*r]}let ij=(0,c.createContext)({}),iL=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,ij);let{isDisabled:a,isInvalid:r,isReadOnly:n,onHoverStart:l,onHoverChange:i,onHoverEnd:o,...s}=e;a??=!!e["aria-disabled"]&&"false"!==e["aria-disabled"],r??=!!e["aria-invalid"]&&"false"!==e["aria-invalid"];let{hoverProps:u,isHovered:d}=t6({onHoverStart:l,onHoverChange:i,onHoverEnd:o,isDisabled:a}),{isFocused:m,isFocusVisible:p,focusProps:h}=t1({within:!0}),g=K({...e,values:{isHovered:d,isFocusWithin:m,isFocusVisible:p,isDisabled:a,isInvalid:r},defaultClassName:"react-aria-Group"});return c.default.createElement(L.div,{...N(s,h,u),...g,ref:t,role:e.role??"group",slot:e.slot??void 0,"data-focus-within":m||void 0,"data-hovered":d||void 0,"data-focus-visible":p||void 0,"data-disabled":a||void 0,"data-invalid":r||void 0,"data-readonly":n||void 0},g.children)});var iO={};function iU(e,t){let{inputElementType:a="input",isDisabled:r=!1,isRequired:n=!1,isReadOnly:l=!1,type:i="text",validationBehavior:o="aria"}=e,[s,u]=lN(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=t$(e,t),m=l7({...e,value:s}),{isInvalid:p,validationErrors:h,validationDetails:g}=m.displayValidation,{labelProps:f,fieldProps:y,descriptionProps:b,errorMessageProps:v}=il({...e,isInvalid:p,errorMessage:e.errorMessage||h}),x=X(e,{labelable:!0}),D={type:i,pattern:e.pattern},[k]=(0,c.useState)(s);return ii(t,e.defaultValue??k,u),io(e,m,t),{labelProps:f,inputProps:N(x,"input"===a?D:void 0,{disabled:r,readOnly:l,required:n&&"native"===o,"aria-required":n&&"aria"===o||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:e=>u(eT(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(c.default.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,...d,...y}),descriptionProps:b,errorMessageProps:v,isInvalid:p,validationErrors:h,validationDetail
7s:g}}function iH(){return"u">typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}function iZ(e,t,a){let r=tV(e=>{let r=a.current;if(!r)return;let n=null;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":n=r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentForward":n=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd+1):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentBackward":n=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart-1)+r.value.slice(r.selectionStart):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":n=r.value.slice(r.selectionStart);break;default:null!=e.data&&(n=r.value.slice(0,r.selectionStart)+e.data+r.value.slice(r.selectionEnd))}null!=n&&t.validate(n)||e.preventDefault()});(0,c.useEffect)(()=>{if(!iH()||!a.current)return;let e=a.current;return e.addEventListener("beforeinput",r,!1),()=>{e.removeEventListener("beforeinput",r,!1)}},[a]);let n=iH()?null:e=>{let a=eT(e).value.slice(0,eT(e).selectionStart)+e.data+eT(e).value.slice(eT(e).selectionEnd);t.validate(a)||e.preventDefault()},{labelProps:l,inputProps:i,descriptionProps:o,errorMessageProps:s,...u}=iU(e,a),d=(0,c.useRef)(null);return{inputProps:N(i,{onBeforeInput:n,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=a.current;d.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(a.current&&!t.validate(a.current.value)){let{value:e,selectionStart:r,selectionEnd:n}=d.current;a.current.value=e,a.current.setSelectionRange(r,n),t.setInputValue(e)}}}),labelProps:l,descriptionProps:o,errorMessageProps:s,...u}}function iW(e,t){let{onScroll:a,isDisabled:r}=e,n=(0,c.useCallback)(e=>{!e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),a&&a({deltaX:e.deltaX,deltaY:e.deltaY}))},[a]);nU(t,"wheel",r?void 0:n)}iO={"ar-AE":{decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:"حقل رقمي"},"bg-BG":{decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:"Номер на полето"},"cs-CZ":{decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:"Číselné pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"},"et-EE":{decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"},"fi-FI":{decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:"Numerokenttä"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:"שדה מספר"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:"Számmező"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:"数値フィールド"},"ko-KR":{decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:"번호 필드"},"lt-LT":{decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:"Skaitļu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"},"ro-RO":{decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:"Câmp numeric"},"ru-RU":{decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:"Числовое поле"},"sk-SK":{decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:"Číselné pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:"Številčno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:"Nummerfält"}
7,"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:"Sayı alanı"},"uk-UA":{decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:"Поле номера"},"zh-CN":{decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:"数字字段"},"zh-TW":{decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:"數字欄位"}};var iG={};iG={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Prázdné"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vacío"},"et-EE":{Empty:"Tühjenda"},"fi-FI":{Empty:"Tyhjä"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"Üres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Prázdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};let iq=()=>{};function i_(e){var t;let a=(0,c.useRef)(void 0),{value:r,textValue:n,minValue:l,maxValue:i,isDisabled:o,isReadOnly:s,isRequired:u,onIncrement:d,onIncrementPage:m,onDecrement:p,onDecrementPage:h,onDecrementToMin:g,onIncrementToMax:f}=e,y=rn((t=iG)&&t.__esModule?t.default:t,"@react-aria/spinbutton"),b=(0,c.useRef)(!1),v=(0,c.useCallback)(()=>{clearTimeout(a.current),b.current=!1},[]),x=tV(()=>{v()});(0,c.useEffect)(()=>()=>x(),[]);let D=(0,c.useRef)(!1),k=()=>{D.current=!0},C=()=>{D.current=!1},w=""===n?y.format("Empty"):(n||`${r}`).replace("-","−");(0,c.useEffect)(()=>{D.current&&(ew&&ew.clear("assertive"),eE(w,"assertive"))},[w]);let E=(0,c.useCallback)(()=>{v()},[v]),S=tV(d??iq),P=tV(p??iq),$=tV(()=>{(void 0===i||isNaN(i)||void 0===r||isNaN(r)||r<i)&&(S(),R(60))}),R=tV(e=>{x(),b.current=!0,a.current=window.setTimeout($,e)}),N=tV(()=>{(void 0===l||isNaN(l)||void 0===r||isNaN(r)||r>l)&&(P(),M(60))}),M=tV(e=>{x(),b.current=!0,a.current=window.setTimeout(N,e)}),T=e=>{e.preventDefault()},{addGlobalListener:F,removeAllGlobalListeners:K}=tj(),B=(0,c.useRef)(!1),[A,I]=(0,c.useState)(null);(0,c.useEffect)(()=>{"touch"===A?R(600):A?R(400):A||x()},[A]);let[z,V]=(0,c.useState)(null);return(0,c.useEffect)(()=>{"touch"===z?M(600):z?M(400):z||x()},[z]),{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===r||isNaN(r)?void 0:r,"aria-valuetext":w,"aria-valuemin":l,"aria-valuemax":i,"aria-disabled":o||void 0,"aria-readonly":s||void 0,"aria-required":u||void 0,onKeyDown:e=>{if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey&&!s&&!e.nativeEvent.isComposing)switch(e.key){case"PageUp":if(m){e.preventDefault(),m?.();break}case"ArrowUp":case"Up":d&&(e.preventDefault(),d?.());break;case"PageDown":if(h){e.preventDefault(),h?.();break}case"ArrowDown":case"Down":p&&(e.preventDefault(),p?.());break;case"Home":g&&(e.preventDefault(),g?.());break;case"End":f&&(e.preventDefault(),f?.())}},onFocus:k,onBlur:C},incrementButtonProps:{onPressStart:e=>{v(),"touch"!==e.pointerType?(d?.(),I("mouse")):(F(window,"pointercancel",E,{capture:!0}),B.current=!1,I("touch")),F(window,"contextmenu",T)},onPressUp:e=>{v(),"touch"===e.pointerType&&(B.current=!0),K(),I(null)},onPressEnd:e=>{v(),"touch"===e.pointerType&&!b.current&&B.current&&d?.(),B.current=!1,I(null)},onFocus:k,onBlur:C},decrementButtonProps:{onPressStart:e=>{v(),"touch"!==e.pointerType?(p?.(),V("mouse")):(F(window,"pointercancel",E,{capture:!0}),B.current=!1,V("touch"))},onPressUp:e=>{v(),"touch"===e.pointerType&&(B.current=!0),K(),V(null)},onPressEnd:e=>{v(),"touch"===e.pointerType&&!b.current&&B.current&&p?.(),B.current=!1,V(null)},onFocus:k,onBlur:C}}}function iY(e,t,a){var r,n,l,i,o,s,u,d,h;let g,{id:f,decrementAriaLabel:y,incrementAriaLabel:b,isDisabled:v,isReadOnly:x,isRequired:D,minValue:k,maxValue:C,autoFocus:w,label:S,formatOptions:P,onBlur:$=()=>{},onFocus:R,onFocusChange:M,onKeyDown:T,onKeyUp:F,description:K,errorMessage:B,isWheelDisabled:A,...I}=e,{increment:z,incrementToMax:V,decrement:j,decrementToMin:L,numberValue:O,inputValue:U,commit:H,commitValidation:Z}=t,W=rn((r=iO)&&r.__esModule?r.default:r,"@react-aria/numberfield"),G=(0,c.useCallback)(()=>{let e=a.current?.value??"";(0,tL.flushSync)(()=>{H()}),a.current?.value!==e&&eE(a.current?.value??"","assertive")},[H,a]),q=E(f),{focusProps:_}=tk({onBlur(){G()}}),Y=ef(P),J=(0,c.useMemo)(()=>Y.resolvedOptions(),[Y]),Q=ef({...P,currencySign:void 0}),ee=(0,c.useMemo)(()=>isNaN(O)?"":Q.format(O),[Q,O]),{spinButtonProps:et,incrementButtonProps:ea,decrementButtonProps:er}=i_({isDisabled:v,isReadOnly:x,isRequired:D,maxValue:C,minValue:k,onIncrement:z,onIncrementToMax:V,onDecrement:j,onDecrementToMin:L,value:O,textValue:ee}),[en,el]=(0,c.useState)(!1),{focusWithinProps:ei}=t0({isDisabled:v,onFocusWithinChange:el});iW({onScroll:(0,c.useCallback)(e=>{!(Math.abs(e.deltaY)<=Math.abs(e.deltaX))&&(e.deltaY>0?z():e.deltaY<0&&j())},[j,z]),isDisabled:A||v||x||!en},a);
7let eo=(J.maximumFractionDigits??0)>0,es=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,eu="numeric";eY()?es?eu="text":eo&&(eu="decimal"):e4()&&(es?eu="numeric":eo&&(eu="decimal"));let ed=X(e),ec=(0,c.useCallback)(e=>{e.nativeEvent.isComposing||("Enter"===e.key?((0,tL.flushSync)(()=>{H()}),Z()):e.continuePropagation())},[H,Z]),{isInvalid:em,validationErrors:ep,validationDetails:eh}=t.displayValidation,{labelProps:eg,inputProps:ey,descriptionProps:eb,errorMessageProps:ev}=iZ({...I,...ed,name:void 0,form:void 0,label:S,autoFocus:w,isDisabled:v,isReadOnly:x,isRequired:D,validate:void 0,[l6]:t,value:U,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:q,type:"text",inputMode:eu,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:$,onFocus:R,onFocusChange:M,onKeyDown:(0,c.useMemo)(()=>m(ec,T),[ec,T]),onKeyUp:F,onPaste:t=>{e.onPaste?.(t);let a=eT(t);a&&(a.selectionEnd??-1)-(a.selectionStart??0)===a.value.length&&(t.preventDefault(),H(t.clipboardData?.getData?.("text/plain")?.trim()??""))},description:K,errorMessage:B},t,a);ii(a,t.defaultNumberValue,t.setNumberValue),n=t,l=e.validationBehavior,i=e.commitBehavior,o=a,s=t.minValue,u=t.maxValue,d=e.step,h=t.numberValue,p(()=>{let e=o.current;if("validate"!==i||n.realtimeValidation.isInvalid||!e||e.disabled||(!iJ&&"u">typeof document&&((iJ=document.createElement("input")).type="number"),!iJ))return;iJ.min=null==s||isNaN(s)?"":String(s),iJ.max=null==u||isNaN(u)?"":String(u),iJ.step=null==d||isNaN(d)?"":String(d),iJ.value=null==h||isNaN(h)?"":String(h);let t=e.validity.valid&&iJ.validity.valid,a=e.validationMessage||iJ.validationMessage,r={isInvalid:!t,validationErrors:a?[a]:[],validationDetails:{badInput:e.validity.badInput,customError:e.validity.customError,patternMismatch:e.validity.patternMismatch,rangeOverflow:iJ.validity.rangeOverflow,rangeUnderflow:iJ.validity.rangeUnderflow,stepMismatch:iJ.validity.stepMismatch,tooLong:e.validity.tooLong,tooShort:e.validity.tooShort,typeMismatch:e.validity.typeMismatch,valueMissing:e.validity.valueMissing,valid:t}};n.updateValidation(r),"native"!==l||iJ.validity.valid||e.setCustomValidity(iJ.validationMessage)});let ex=N(et,_,ey,{role:null,"aria-roledescription":eQ()?null:W.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(ex["aria-required"]=void 0);let eD=e=>{((e=document)=>e.activeElement)()!==a.current&&("mouse"===e.pointerType?a.current?.focus():e.target.focus())},ek=e["aria-label"]||("string"==typeof e.label?e.label:"");ek||(g=null!=e.label?eg.id:e["aria-labelledby"]);let eC=E(),ew=E(),eS=N(ea,{"aria-label":b||W.format("increase",{fieldLabel:ek}).trim(),id:g&&!b?eC:null,"aria-labelledby":g&&!b?`${eC} ${g}`:null,"aria-controls":q,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:eD}),eP=N(er,{"aria-label":y||W.format("decrease",{fieldLabel:ek}).trim(),id:g&&!y?ew:null,"aria-labelledby":g&&!y?`${ew} ${g}`:null,"aria-controls":q,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:eD});return{groupProps:{...ei,role:"group","aria-disabled":v,"aria-invalid":em?"true":void 0},labelProps:eg,inputProps:ex,incrementButtonProps:eS,decrementButtonProps:eP,errorMessageProps:ev,descriptionProps:eb,isInvalid:em,validationErrors:ep,validationDetails:eh}}let iJ=null,iQ=RegExp("^.*\\(.*\\).*$"),iX=["latn","arab","hanidec","deva","beng","fullwide"];class i0{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return i4(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,a){return i4(this.locale,this.options,e).isValidPartialNumber(e,t,a)}getNumberingSystem(e){return i4(this.locale,this.options,e).options.numberingSystem}}let i1=new Map;function i4(e,t,a){let r=i3(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(a)){for(let n of iX)if(n!==r.options.numberingSystem){let r=i3(e+(e.includes("-u-")?"-nu-":"-u-nu-")+n,t);if(r.isValidPartialNumber(a))return r}}return r}function i3(e,t){let a=e+(t?Object.entries(t).sort((e,t)=>
7e[0]<t[0]?-1:1).join():""),r=i1.get(a);return r||(r=new i5(e,t),i1.set(a,r)),r}class i5{constructor(e,t={}){this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,a,r){let n=new Intl.NumberFormat(e,{...a,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),l=n.formatToParts(-10000.111),i=n.formatToParts(10000.111),o=i6.map(e=>n.formatToParts(e)),s=o.map((e,t)=>{let a=e.find(e=>"unit"===e.type);return a&&!e.some(e=>"integer"===e.type||"fraction"===e.type)?{unit:a.value,value:i6[t]}:null}).filter(e=>!!e),u=l.find(e=>"minusSign"===e.type)?.value??"-",d=i.find(e=>"plusSign"===e.type)?.value;d||r?.signDisplay!=="exceptZero"&&r?.signDisplay!=="always"||(d="+");let c=new Intl.NumberFormat(e,{...a,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),m=c.find(e=>"decimal"===e.type)?.value,p=l.find(e=>"group"===e.type)?.value,h=[...new Set([...l.filter(e=>!i2.has(e.type)).map(e=>i9(e.value)),...o.flatMap(e=>e.filter(e=>!i2.has(e.type)).map(e=>i9(e.value)))])].sort((e,t)=>t.length-e.length),g=0===h.length?RegExp("\\p{White_Space}|\\p{Cf}","gu"):RegExp(`${h.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),f=[...new Intl.NumberFormat(a.locale,{useGrouping:!1}).format(0x24cb016ea)].reverse(),y=new Map(f.map((e,t)=>[e,t]));return{minusSign:u,plusSign:d,decimal:m,group:p,literals:g,numeral:RegExp(`[${f.join("")}]`,"g"),numerals:f,index:e=>String(y.get(e)),noNumeralUnits:s}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(e){let t=this.formatter.resolvedOptions().useGrouping,a=this.sanitize(e);if(!t&&this.symbols.group&&a.includes(this.symbols.group))return NaN;if(this.symbols.group&&(a=a.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(a=a.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(a=a.replace(this.symbols.minusSign,"-")),a=a.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=a.indexOf("-"),t=(a=(a=a.replace("-","")).replace("+","")).indexOf(".");-1===t&&(t=a.length),a=a.replace(".",""),a=t-2==0?`0.${a}`:t-2==-1?`0.0${a}`:t-2==-2?"0.00":`${a.slice(0,t-2)}.${a.slice(t-2)}`,e>-1&&(a=`-${a}`)}let r=a?+a:NaN;if(isNaN(r))return NaN;if("percent"===this.options.style){let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new i0(this.locale,e).parse(new eg(this.locale,e).format(r))}return"accounting"===this.options.currencySign&&iQ.test(e)&&(r*=-1),r}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=i7(e,",",this.symbols.decimal),e=i7(e,String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&t&&(e=i7(e,".",this.symbols.group))),"’"===this.symbols.group&&e.includes("'")&&t&&(e=i7(e,"'",this.symbols.group)),"'"===this.symbols.group&&e.includes("’")&&t&&(e=i7(e,"’",this.symbols.group)),"fr-FR"===this.options.locale&&this.symbols.group&&t&&(e=i7(e," ",this.symbols.group),e=i7(e,/\u00A0/g,this.symbols.group)),e)}isValidPartialNumber(e,t=-1/0,a=1/0){let r=this.formatter.resolvedOptions().useGrouping;return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&a>0&&(e=e.slice(this.symbols.plusSign.length)),(!(this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1)||0!==this.options.maximumFractionDigits)&&(this.symbols.group&&r&&(e=i7(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length)}}let i2=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),i6=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function i7(e,t,a){return e.replaceAll?e.replaceAll(t,a):e.split(t).join(a)}function i9(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i8(e){let{minValue:t,maxValue:a,step:r,formatOptions:n,value:l,defaultValue:i=NaN,onChange:o,locale:s,isDisabled:u,isReadOnly:d,commitBehavior:m="snap"}=e;null===l&&(l=NaN);let p=(0,c.useCallback)(e=>void 0===r||isNaN(r)?ey(e,t,a):ev(e,t,a,r),[r,t,a]);void 0===l||isNaN(l)||"snap"!==m||(l=p(l)),isNaN(i)||"snap"!==m||(i=p(i));let[h,g]=lN(l,isNaN(i)?NaN:i,o),[f]=(0,c.useState)(h),[y,b]=(0,c.useState)(()=>isNaN(h)?"":new eg(s,n).format(h)),v=(0,c.useMemo)(()=>new i0(s,n),[s,n]),x=(0,c.useMemo)(()=>v.getNumberingSystem(y),[v,y]),D=(0,c.useMemo)(()=>new eg(s,{...n,numberingSystem:x}),[s,n,x]),k=(0,c.useMemo)(()=>D.resolvedOptions(),[D]),C=(0,c.useCallback)(e=>isNaN(e)||null===e?"":D.format(e),[D]),w=l7({...e,value:h}),E=void 0===r||isNaN(r)?1:r;"percent"===k.style&&(void 0===r||isNaN(r))&&(E=.01);let[S,P]=(0,c.useState)(h),[$,R]=(0,c.useState)(s),[N,M]=(0,c.useState)(n);Object.is(h,S)&&s===$&&function(e,t){if(e===t)return!0;
7if(!e||!t)return!1;let a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(let r of a)if(t[r]!==e[r])return!1;return!0}(n,N)||(b(C(h)),P(h),R(s),M(n));let T=(0,c.useMemo)(()=>v.parse(y),[v,y]),F=(e,r=0)=>{if(isNaN(T))return ev(isNaN(r)?0:r,t,a,E);{let r=ev(T,t,a,E);return"+"===e&&r>T||"-"===e&&r<T?r:ev(oe(e,T,E),t,a,E)}},K=(0,c.useMemo)(()=>!u&&!d&&(isNaN(T)||void 0===a||isNaN(a)||ev(T,t,a,E)>T||oe("+",T,E)<=a),[u,d,t,a,E,T]),B=(0,c.useMemo)(()=>!u&&!d&&(isNaN(T)||void 0===t||isNaN(t)||ev(T,t,a,E)<T||oe("-",T,E)>=t),[u,d,t,a,E,T]);return{...w,validate:e=>v.isValidPartialNumber(e,t,a),increment:()=>{let e=F("+",t);e===h&&b(C(e)),g(e),w.commitValidation()},incrementToMax:()=>{null!=a&&(g(ev(a,t,a,E)),w.commitValidation())},decrement:()=>{let e=F("-",a);e===h&&b(C(e)),g(e),w.commitValidation()},decrementToMin:()=>{null!=t&&(g(t),w.commitValidation())},canIncrement:K,canDecrement:B,minValue:t,maxValue:a,numberValue:T,defaultNumberValue:isNaN(i)?f:i,setNumberValue:g,setInputValue:b,inputValue:y,commit:e=>{let t=void 0===e?y:e,a=T;if(void 0!==e&&(a=v.parse(t)),!t.length){g(NaN),b(void 0===l?"":C(h));return}if(isNaN(a))return void b(C(h));let r="snap"===m?p(a):a,n=(r=v.parse(C(r)))!==h;g(r),b(C(void 0===l?r:h)),n&&w.commitValidation()}}}function oe(e,t,a){let r="+"===e?t+a:t-a;if(t%1!=0||a%1!=0){let n=t.toString().split("."),l=a.toString().split("."),i=Math.pow(10,Math.max(n[1]&&n[1].length||0,l[1]&&l[1].length||0));t=Math.round(t*i),a=Math.round(a*i),r=("+"===e?t+a:t-a)/i}return r}function ot(e){return(0,c.useMemo)(()=>{if("string"==typeof e)try{return i$(e)}catch{return}return e},[e])}function oa(e,t){let a=ot("#000");return(0,c.useMemo)(()=>{let r=e||a;return t&&r?r.toFormat(t):r},[a,e,t])}let or=i$("#000000"),on=i$("#FFFFFF"),ol=or.toHexInt(),oi=on.toHexInt();function oo(e,t){let a=e||or,r=a.toHexInt(),n=Math.min(Math.max(r+t,ol),oi);return n!==r&&(a=i$(`#${n.toString(16).padStart(6,"0").toUpperCase()}`)),a}let os=(0,c.createContext)(null),ou=(0,c.createContext)(null),od=(0,c.forwardRef)(function(e,t){return([e,t]=A(e,t,os),e.channel)?c.default.createElement(oc,{...e,channel:e.channel,forwardedRef:t}):c.default.createElement(om,{...e,forwardedRef:t})});function oc(e){let{locale:t}=ed(),a=function(e){let{channel:t,colorSpace:a,locale:r}=e,n=ot(e.value),l=ot(e.defaultValue),[i,o]=lN(n,l??null,e.onChange),s=oa(i,a),[u]=(0,c.useState)(i),d=l??u,m=oa(d,a),p=s.getChannelValue(t),h=s.getChannelRange(t),g=(0,c.useMemo)(()=>s.getChannelFormatOptions(t),[s,t]),f="percent"===g.style&&100===h.maxValue?100:1;return{...i8({locale:r,value:null===i?NaN:p/f,defaultValue:null===d?NaN:m.getChannelValue(t)/f,onChange:e=>{Number.isNaN(e)?o(null):o(s.withChannelValue(t,e*f))},minValue:h.minValue/f,maxValue:h.maxValue/f,step:h.step/f,formatOptions:g}),colorValue:s,defaultColorValue:d,setColorValue:o}}({...e,locale:t}),r=(0,c.useRef)(null),[n,l]=I(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:i,inputProps:o,descriptionProps:s,errorMessageProps:u,...d}=function(e,t,a){let{locale:r}=ed();return iY({...e,value:void 0,defaultValue:void 0,onChange:void 0,validate:void 0,"aria-label":e["aria-label"]||(e.label||e["aria-labelledby"]?void 0:t.colorValue.getChannelName(e.channel,r))},t,a)}({...z(e),label:l,validationBehavior:e.validationBehavior??"native"},a,r);return c.default.createElement(c.default.Fragment,null,op(e,a,e.forwardedRef,o,r,i,n,s,u,d),e.name&&c.default.createElement("input",{type:"hidden",name:e.name,form:e.form,value:isNaN(a.numberValue)?"":a.numberValue}))}function om(e){let t=function(e){let{value:t,defaultValue:a,onChange:r}=e,{step:n}=or.getChannelRange("red"),l=ot(a),[i,o]=lN(ot(t),l,r),[s]=(0,c.useState)(i),[u,d]=(0,c.useState)(()=>(t||a)&&i?i.toString("hex"):""),m=l7({...e,value:i}),p=e=>{if(!i||!e||e.toHexInt()!==i.toHexInt())return void o(e)},[h,g]=(0,c.useState)(i);h!==i&&(d(i?i.toString("hex"):""),g(i));let f=(0,c.useMemo)(()=>{let e;try{e=i$(u.startsWith("#")?u:`#${u}`)}catch{e=null}return e},[u]);return{...m,validate:e=>""===e||!!e.match(/^#?[0-9a-f]{0,6}$/i)?.[0],colorValue:i,defaultColorValue:l??s,setColorValue:o,inputValue:u,setInputValue:d,commit:()=>{if(!u.length){p(null),void 0===t||null===i?d(""):d(i.toString("hex"));return}if(null==f)return void d(i?i.toString("hex"):"");p(f);let e="";i&&(e=i.toString("hex")),d(e),m.commitValidation()},increment:()=>{let e=oo(f,n);e===i&&d(e.toString("hex")),p(e),m.commitValidation()},incrementToMax:()=>p(on),decrement:()=>{let e=oo(f,-n);e===i&&d(e.toString("hex")),p(e),m.commitValidation()},decrementToMin:()=>p(or)}}({...e,validationBehavior:e.validationBehavior??"native"}),a=(0,c.useRef)(null),[r,n]=I(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:l,inputProps:i,descriptionProps:o,errorMessageProps:s,...u}=function(e,t,a){let{isDisabled:r,isReadOnly:n,isRequired:l,isWheelDisabled:i,validationBehavior:o="aria"}
7=e,{colorValue:s,inputValue:u,increment:d,decrement:m,incrementToMax:p,decrementToMin:h,commit:g}=t,f=E(),{spinButtonProps:y}=i_({isDisabled:r,isReadOnly:n,isRequired:l,maxValue:0xffffff,minValue:0,onIncrement:d,onIncrementToMax:p,onDecrement:m,onDecrementToMin:h,value:s?s.toHexInt():void 0,textValue:s?s.toString("hex"):void 0}),[b,v]=(0,c.useState)(!1),{focusWithinProps:x}=t0({isDisabled:r,onFocusWithinChange:v});iW({onScroll:(0,c.useCallback)(e=>{!(Math.abs(e.deltaY)<=Math.abs(e.deltaX))&&(e.deltaY>0?d():e.deltaY<0&&m())},[m,d]),isDisabled:i||r||n||!b},a);let{inputProps:D,...k}=iZ({...e,id:f,value:u,defaultValue:"!",validate:void 0,[l6]:t,type:"text",autoComplete:"off",onChange:e=>{t.validate(e)&&t.setInputValue(e)}},t,a);return ii(a,t.defaultColorValue,t.setColorValue),D=N(D,y,x,{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false",onBlur:g}),"native"===o&&(D["aria-required"]=void 0),{inputProps:D,...k}}({...z(e),label:n,validationBehavior:e.validationBehavior??"native"},t,a);return op(e,t,e.forwardedRef,i,a,l,r,o,s,u)}function op(e,t,a,r,n,l,i,o,s,u){let d=K({...e,values:{state:t,channel:e.channel||"hex",isDisabled:e.isDisabled||!1,isInvalid:u.isInvalid||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-ColorField"}),m=X(e,{global:!0});return delete m.id,c.default.createElement(F,{values:[[ou,t],[iw,{...r,ref:n}],[Z,{...l,ref:i}],[ij,{role:"presentation",isInvalid:u.isInvalid,isDisabled:e.isDisabled||!1}],[nf,{slots:{description:o,errorMessage:s}}],[lX,u]]},c.default.createElement(L.div,{...m,...d,ref:a,slot:e.slot||void 0,"data-channel":e.channel||"hex","data-disabled":e.isDisabled||void 0,"data-invalid":u.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0}))}(0,c.forwardRef)(({label:e,className:t,...a},r)=>(0,u.jsxs)(od,{ref:r,className:at("flex flex-col gap-1",t),...a,children:[e?(0,u.jsx)(W,{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:e}):null,(0,u.jsx)(iE,{className:at("border border-gray-300 rounded-md px-3 py-2 bg-white text-sm text-gray-900 outline-none","focus:border-blue-600 focus:ring-1 focus:ring-blue-600","dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100")})]})).displayName="ColorField";let oh=(0,c.createContext)({}),og=(0,c.createContext)(null),of=(0,c.forwardRef)(function(e,t){let{render:a}=(0,c.useContext)(og);return c.default.createElement(c.default.Fragment,null,a(e,t))});function oy(e,t){let a=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),n=(0,c.useCallback)(e=>{if(r||t?.isDropTarget(e))return a?a(e):c.default.createElement(of,{target:e})},[t?.target,r,a]);return e?.useDropIndicator?n:void 0}function ob(e,t,a){let r=e.focusedKey,n=null;if(t?.isVirtualDragging?.()&&a?.target?.type==="item"&&(n=a.target.key,"after"===a.target.dropPosition)){let e=a.collection.getKeyAfter(n),t=null;if(null!=e){let r=a.collection.getItem(n)?.level??0;for(;null!=e;){let n=a.collection.getItem(e);if(!n)break;if("item"!==n.type){e=a.collection.getKeyAfter(e);continue}if((n.level??0)<=r)break;t=e,e=a.collection.getKeyAfter(e)}}n=e??t??n}return(0,c.useMemo)(()=>new Set([r,n].filter(e=>null!=e)),[r,n])}let ov=(0,c.createContext)({});function ox(e){var t,a,r;
7let n,l,i=(n=((e=document)=>e.activeElement)(t=eR(e)),(l=n?.getAttribute("aria-activedescendant"))&&t.getElementById(l)||n);i!==e&&(i&&(a=i,r=e,a.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))),e&&oD(e,i))}function oD(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function ok(e){return e_()?e.metaKey:e.ctrlKey}let oC=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ow(e){return e instanceof HTMLInputElement&&!oC.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let oE=(0,c.createContext)(null),oS=(0,c.createContext)(null),oP=(0,c.createContext)(null);function o$(e){let t=(0,c.useRef)({});return c.default.createElement(oP.Provider,{value:t},e.children)}let oR=(0,c.createContext)({isSelected:!1}),oN=(0,c.createContext)({});class oM extends aM{static{this.type="separator"}filter(e,t){let a=t.getItem(this.prevKey);if(a&&"separator"!==a.type){let a=this.clone();return t.addDescendants(a,e),a}return null}}let oT=new WeakMap;function oF(e,t,a,r){return e.createTreeWalker(t,a,r)}let oK=c.default.createContext(null),oB="react-aria-focus-scope-restore",oA=null;function oI(e){var t,a,r,n,l,i,o,s,u,d;let m,h,g,f,{children:y,contain:b,restoreFocus:v,autoFocus:x}=e,D=(0,c.useRef)(null),k=(0,c.useRef)(null),C=(0,c.useRef)([]),{parentNode:w}=(0,c.useContext)(oK)||{},E=(0,c.useMemo)(()=>new oQ({scopeRef:C}),[C]);p(()=>{let e=w||oX.root;if(oX.getTreeNode(e.scopeRef)&&oA&&!oO(oA,e.scopeRef)){let t=oX.getTreeNode(oA);t&&(e=t)}e.addChild(E),oX.addNode(E)},[E,w]),p(()=>{let e=oX.getTreeNode(C);e&&(e.contain=!!b)},[b]),p(()=>{let e=D.current?.nextSibling,t=[],a=e=>e.stopPropagation();for(;e&&e!==k.current;)t.push(e),e.addEventListener(oB,a),e=e.nextSibling;return C.current=t,()=>{for(let e of t)e.removeEventListener(oB,a)}},[y]),p(()=>{if(a||r)return;let e=t.current,n=eR(e?e[0]:void 0),l=e=>{let a=eT(e);oj(a,t.current)?oA=t:oL(a)||(oA=null)};return n.addEventListener("focusin",l,!1),e?.forEach(e=>e.addEventListener("focusin",l,!1)),()=>{n.removeEventListener("focusin",l,!1),e?.forEach(e=>e.removeEventListener("focusin",l,!1))}},[t=C,a=v,r=b]),n=C,l=b,m=(0,c.useRef)(void 0),h=(0,c.useRef)(void 0),p(()=>{let e=n.current;if(!l){h.current&&(cancelAnimationFrame(h.current),h.current=void 0);return}let t=eR(e?e[0]:void 0),a=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!oV(n)||e.isComposing)return;let a=((e=document)=>e.activeElement)(t),r=n.current;if(!r||!oj(a,r))return;let l=oq(oz(r),{tabbable:!0},r);if(!a)return;l.currentNode=a;let i=e.shiftKey?l.previousNode():l.nextNode();i||(l.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=e.shiftKey?l.previousNode():l.nextNode()),e.preventDefault(),i&&(oU(i,!0),i instanceof eN(i).HTMLInputElement&&i.select())},r=e=>{(!oA||oO(oA,n))&&oj(eT(e),n.current)?(oA=n,m.current=eT(e)):oV(n)&&!oL(eT(e),n)?m.current?m.current.focus():oA&&oA.current&&oZ(oA.current):oV(n)&&(m.current=eT(e))},i=e=>{h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(()=>{let a=te,r=("virtual"===a||null===a)&&e4()&&e1(),l=((e=document)=>e.activeElement)(t);
7if(!r&&l&&oV(n)&&!oL(l,n)){oA=n;let t=eT(e);t&&t.isConnected?(m.current=t,m.current?.focus()):oA.current&&oZ(oA.current)}})};return t.addEventListener("keydown",a,!1),t.addEventListener("focusin",r,!1),e?.forEach(e=>e.addEventListener("focusin",r,!1)),e?.forEach(e=>e.addEventListener("focusout",i,!1)),()=>{t.removeEventListener("keydown",a,!1),t.removeEventListener("focusin",r,!1),e?.forEach(e=>e.removeEventListener("focusin",r,!1)),e?.forEach(e=>e.removeEventListener("focusout",i,!1))}},[n,l]),p(()=>()=>{h.current&&cancelAnimationFrame(h.current)},[h]),i=C,o=v,s=b,g=(0,c.useRef)("u">typeof document?((e=document)=>e.activeElement)(eR(i.current?i.current[0]:void 0)):null),p(()=>{let e=i.current,t=eR(e?e[0]:void 0);if(!o||s)return;let a=()=>{(!oA||oO(oA,i))&&oj(((e=document)=>e.activeElement)(t),i.current)&&(oA=i)};return t.addEventListener("focusin",a,!1),e?.forEach(e=>e.addEventListener("focusin",a,!1)),()=>{t.removeEventListener("focusin",a,!1),e?.forEach(e=>e.removeEventListener("focusin",a,!1))}},[i,s]),p(()=>{let e=eR(i.current?i.current[0]:void 0);if(!o)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!oV(i)||t.isComposing)return;let a=e.activeElement;if(!oL(a,i)||!oW(i))return;let r=oX.getTreeNode(i);if(!r)return;let n=r.nodeToRestore,l=oq(e.body,{tabbable:!0});l.currentNode=a;let o=t.shiftKey?l.previousNode():l.nextNode();if(n&&n.isConnected&&n!==e.body||(n=void 0,r.nodeToRestore=void 0),(!o||!oL(o,i))&&n){l.currentNode=n;do o=t.shiftKey?l.previousNode():l.nextNode();while(oL(o,i))(t.preventDefault(),t.stopPropagation(),o)?oU(o,!0):oL(n)?oU(n,!0):a.blur()}};return s||e.addEventListener("keydown",t,!0),()=>{s||e.removeEventListener("keydown",t,!0)}},[i,o,s]),p(()=>{let e=eR(i.current?i.current[0]:void 0);if(!o)return;let t=oX.getTreeNode(i);if(t)return t.nodeToRestore=g.current??void 0,()=>{let t=oX.getTreeNode(i);if(!t)return;let a=t.nodeToRestore,r=((e=document)=>e.activeElement)(e);if(o&&a&&(r&&oL(r,i)||r===e.body&&oW(i))){let t=oX.clone();requestAnimationFrame(()=>{if(e.activeElement===e.body){let e=t.getTreeNode(i);for(;e;){if(e.nodeToRestore&&e.nodeToRestore.isConnected)return void oG(e.nodeToRestore);e=e.parent}for(e=t.getTreeNode(i);e;){if(e.scopeRef&&e.scopeRef.current&&oX.getTreeNode(e.scopeRef))return void oG(oH(e.scopeRef.current,!0));e=e.parent}}})}}},[i,o]),u=C,d=x,f=c.default.useRef(d),(0,c.useEffect)(()=>{f.current&&(oA=u,!oj(((e=document)=>e.activeElement)(eR(u.current?u.current[0]:void 0)),oA.current)&&u.current&&oZ(u.current)),f.current=!1},[u]),(0,c.useEffect)(()=>{let e=((e=document)=>e.activeElement)(eR(C.current?C.current[0]:void 0)),t=null;if(oj(e,C.current)){for(let a of oX.traverse())a.scopeRef&&oj(e,a.scopeRef.current)&&(t=a);t===oX.getTreeNode(C)&&(oA=t.scopeRef)}},[C]),p(()=>()=>{let e=oX.getTreeNode(C)?.parent?.scopeRef??null;(C===oA||oO(C,oA))&&(!e||oX.getTreeNode(e))&&(oA=e),oX.removeTreeNode(C)},[C]);let S=(0,c.useMemo)(()=>{var e;return e=C,{focusNext(t={}){let a=e.current,{from:r,tabbable:n,wrap:l,accept:i}=t,o=r||((e=document)=>e.activeElement)(eR(a[0]??void 0)),s=a[0].previousElementSibling,u=oq(oz(a),{tabbable:n,accept:i},a);u.currentNode=oj(o,a)?o:s;let d=u.nextNode();return!d&&l&&(u.currentNode=s,d=u.nextNode()),d&&oU(d,!0),d},focusPrevious(t={}){let a=e.current,{from:r,tabbable:n,wrap:l,accept:i}=t,o=r||((e=document)=>e.activeElement)(eR(a[0]??void 0)),s=a[a.length-1].nextElementSibling,u=oq(oz(a),{tabbable:n,accept:i},a);u.currentNode=oj(o,a)?o:s;let d=u.previousNode();return!d&&l&&(u.currentNode=s,d=u.previousNode()),d&&oU(d,!0),d},focusFirst(t={}){let a=e.current,{tabbable:r,accept:n}=t,l=oq(oz(a),{tabbable:r,accept:n},a);l.currentNode=a[0].previousElementSibling;let i=l.nextNode();return i&&oU(i,!0),i},focusLast(t={}){let a=e.current,{tabbable:r,accept:n}=t,l=oq(oz(a),{tabbable:r,accept:n},a);l.currentNode=a[a.length-1].nextElementSibling;let i=l.previousNode();return i&&oU(i,!0),i}}},[]),P=(0,c.useMemo)(()=>({focusManager:S,parentNode:E}),[E,S]);return c.default.createElement(oK.Provider,{value:P},c.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:D}),y,c.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:k}))}function oz(e){return e[0].parentElement}function oV(e){let t=oX.getTreeNode(oA);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function oj(e,t){return!!e&&!!t&&t.some(t=>eM(t,e))}function oL(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:a}of oX.traverse(oX.getTreeNode(t)))if(a&&oj(e,a.current))return!0;return!1}function oO(e,t){let a=oX.getTreeNode(t)?.parent;for(;a;){if(a.scopeRef===e)return!0;a=a.parent}return!1}function oU(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{tD(e)}catch{}}function oH(e,t=!0){let a=e[0].previousElementSibling,r=oz(e),n=oq(r,{tabbable:t},e);n.currentNode=a;let l=n.nextNode();return t&&!l&&((n=oq(r=oz(e),{tabbable:!1},e)).currentNode=a,l=n.nextNode()),l}function oZ(e,t=!0){oU(oH(e,t))}function oW(e){let t=oX.getTreeNode(oA);for(;t&&t.scopeRef!==e;
7){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function oG(e){e.dispatchEvent(new CustomEvent(oB,{bubbles:!0,cancelable:!0}))&&oU(e)}function oq(e,t,a){let r=t?.tabbable?ej:eV,n=eR(e?.nodeType===Node.ELEMENT_NODE?e:null),l=oF(n,e||n,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>eM(t?.from,e)||t?.tabbable&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=function(e){if(!e.form)return Array.from(eR(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),a=eN(e);return t instanceof a.RadioNodeList?Array.from(t).filter(e=>e instanceof a.HTMLInputElement):t instanceof a.HTMLInputElement?[t]:[]}(e);return t.length>0&&!t.some(e=>e.checked)}(e)||"INPUT"===l.currentNode.tagName&&"radio"===l.currentNode.type&&l.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!a||oj(e,a))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});return t?.from&&(l.currentNode=t.from),l}function o_(e,t={}){return{focusNext(a={}){let r=e.current;if(!r)return null;let{from:n,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=a,s=n||((e=document)=>e.activeElement)(eR(r)),u=oq(r,{tabbable:l,accept:o});eM(r,s)&&(u.currentNode=s);let d=u.nextNode();return!d&&i&&(u.currentNode=r,d=u.nextNode()),d&&oU(d,!0),d},focusPrevious(a=t){let r=e.current;if(!r)return null;let{from:n,tabbable:l=t.tabbable,wrap:i=t.wrap,accept:o=t.accept}=a,s=n||((e=document)=>e.activeElement)(eR(r)),u=oq(r,{tabbable:l,accept:o});if(eM(r,s))u.currentNode=s;else{let e=oY(u);return e&&oU(e,!0),e??null}let d=u.previousNode();if(!d&&i){u.currentNode=r;let e=oY(u);if(!e)return null;d=e}return d&&oU(d,!0),d??null},focusFirst(a=t){let r=e.current;if(!r)return null;let{tabbable:n=t.tabbable,accept:l=t.accept}=a,i=oq(r,{tabbable:n,accept:l}).nextNode();return i&&oU(i,!0),i},focusLast(a=t){let r=e.current;if(!r)return null;let{tabbable:n=t.tabbable,accept:l=t.accept}=a,i=oY(oq(r,{tabbable:n,accept:l}));return i&&oU(i,!0),i??null}}}function oY(e){let t,a;do(t=e.lastChild())&&(a=t);while(t)return a}class oJ{constructor(){this.fastMap=new Map,this.root=new oQ({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,a){let r=this.fastMap.get(t??null);if(!r)return;let n=new oQ({scopeRef:e});r.addChild(n),n.parent=r,this.fastMap.set(e,n),a&&(n.nodeToRestore=a)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let a=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&oj(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;a&&(a.removeChild(t),r.size>0&&r.forEach(e=>a&&a.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new oJ;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent?.scopeRef??null,t.nodeToRestore);return e}}class oQ{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}}let oX=new oJ;function o0(e){return eX()?e.altKey:e.ctrlKey}function o1(e,t){let a=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(a=`[data-collection="${CSS.escape(r)}"]${a}`),e.current?.querySelector(a)}let o4=new WeakMap;function o3(e){let{keyboardDelegate:t,selectionManager:a,onTypeSelect:r}=e,n=(0,c.useRef)({search:"",timeout:void 0});return(0,c.useEffect)(()=>{let e=n.current.timeout;return()=>{clearTimeout(e)}},[n]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{if(n.current.search.length>0&&" "===e.key){if(e.preventDefault(),"continuePropagation"in e&&(!("continuePropagation"in e)||e.isPropagationStopped())||e.stopPropagation(),n.current.search+=" ",null!=t.getKeyForSearch){let e=t.getKeyForSearch(n.current.search,a.focusedKey);null==e&&(e=t.getKeyForSearch(n.current.search)),null!=e&&(a.setFocusedKey(e),r&&r(e))}clearTimeout(n.current.timeout),n.current.timeout=setTimeout(()=>{n.current.search=""},1e3)}}:void 0,onKeyDown:t.getKeyForSearch?e=>{var l;let i=1!==(l=e.key).length&&/^[A-Z]/i.test(l)?"":l;if(i&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&eM(e.currentTarget,eT(e))&&(0!==n.current.search.length||" "!==i)){if(n.current.search+=i,null!=t.getKeyForSearch){let l=t.getKeyForSearch(n.current.search,a.focusedKey);if(null==l&&(l=t.getKeyForSearch(n.current.search)),null!=l)a.setFocusedKey(l),r&&r(l),e.preventDefault(),"continuePropagation"in e||e.stopPropagation();else{n.current.search="",clearTimeout(n.current.timeout),n.current.timeout=void 0;return}}clearTimeout(n.current.timeout),n.current.timeout=setTimeout(()=>{n.current.search=""},1e3)}}:void 0}}}function o5(e,t){let a=(0,c.useRef)(!0),r=(0,c.useRef)(null);p(()=>(a.current=!0,()=>{a.current=!1}),[]),p(()=>{a.current?a.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function o2(e){var t;let a,r,{selectionManager:n,keyboardDelegate:l,ref:i,autoFocus:o=!1,shouldFocusWrap:s=!1,disallowEmptySelection:u=!1,disallowSelectAll:d=!1,escapeKeyBehavior:m="clearSelection",selectOnFocus:p="replace"===n.selectionBehavior,disallowTypeAhead:h=!1,shouldUseVirtualFocus:g,allowsTabNavigation:f=!1,scrollRef:y=i,linkBehavior:b="action",UNSTABLE_focusOnEntry:v}=e,{direction:x}=ed(),D=e6(),k=(0,c.useRef)({top:0,left:0});nU(y,"scroll",()=>
7{k.current={top:y.current?.scrollTop??0,left:y.current?.scrollLeft??0}});let C=(0,c.useRef)(!1);nU(i,"react-aria-focus",g?e=>{let{detail:t}=e;e.stopPropagation(),n.setFocused(!0),t?.focusStrategy==="first"&&(C.current=!0)}:void 0);let w=l.getFirstKey?.()??null;o5(()=>{if(C.current)if(null==w){let e=((e=document)=>e.activeElement)();ox(i.current),oD(e,null),n.collection.size>0&&(C.current=!1)}else n.setFocusedKey(w),C.current=!1},[w,n.collection.size]),o5(()=>{n.collection.size>0&&(C.current=!1)},[n.focusedKey]),nU(i,"react-aria-clear-focus",g?e=>{e.stopPropagation(),n.setFocused(!1),e.detail?.clearFocusKey&&n.setFocusedKey(null)}:void 0);let S=(0,c.useRef)(o),P=(0,c.useRef)(!1);(0,c.useEffect)(()=>{if(S.current){let e=null;"first"===o&&(e=l.getFirstKey?.()??null),"last"===o&&(e=l.getLastKey?.()??null);let t=n.selectedKeys;if(t.size){for(let a of t)if(n.canSelectItem(a)){e=a;break}}n.setFocused(!0),n.setFocusedKey(e),null==e&&!g&&i.current&&tD(i.current),n.collection.size>0&&(S.current=!1,P.current=!0)}});let $=(0,c.useRef)(n.focusedKey),R=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(n.isFocused&&null!=n.focusedKey&&(n.focusedKey!==$.current||P.current)&&y.current&&i.current){let e=te,t=o1(i,n.focusedKey);if(!(t instanceof HTMLElement))return;("keyboard"===e||P.current)&&(R.current&&cancelAnimationFrame(R.current),R.current=requestAnimationFrame(()=>{y.current&&(nz(y.current,t),"virtual"!==e&&nV(t,{containingElement:i.current}))}))}!g&&n.isFocused&&null==n.focusedKey&&null!=$.current&&i.current&&tD(i.current),$.current=n.focusedKey,P.current=!1}),(0,c.useEffect)(()=>()=>{R.current&&cancelAnimationFrame(R.current)},[]),nU(i,"react-aria-focus-scope-restore",e=>{e.preventDefault(),n.setFocused(!0)});let M={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!i.current||!eM(i.current,eT(e)))return;let t=(t,a)=>{if(null!=t){if(n.isLink(t)&&"selection"===b&&p&&!o0(e)){(0,tL.flushSync)(()=>{n.setFocusedKey(t,a)});let r=o1(i,t),l=n.getItemProps(t);r&&D.open(r,e,l.href,l.routerOptions);return}n.setFocusedKey(t,a),n.isLink(t)&&"override"===b||(e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):p&&!o0(e)&&n.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(l.getKeyBelow){let a=null!=n.focusedKey?l.getKeyBelow?.(n.focusedKey):l.getFirstKey?.();null==a&&s&&(a=l.getFirstKey?.(n.focusedKey)),null!=a&&(e.preventDefault(),t(a))}break;case"ArrowUp":if(l.getKeyAbove){let a=null!=n.focusedKey?l.getKeyAbove?.(n.focusedKey):l.getLastKey?.();null==a&&s&&(a=l.getLastKey?.(n.focusedKey)),null!=a&&(e.preventDefault(),t(a))}break;case"ArrowLeft":if(l.getKeyLeftOf){let a=null!=n.focusedKey?l.getKeyLeftOf?.(n.focusedKey):l.getFirstKey?.();null==a&&s&&(a="rtl"===x?l.getFirstKey?.(n.focusedKey):l.getLastKey?.(n.focusedKey)),null!=a&&(e.preventDefault(),t(a,"rtl"===x?"first":"last"))}break;case"ArrowRight":if(l.getKeyRightOf){let a=null!=n.focusedKey?l.getKeyRightOf?.(n.focusedKey):l.getFirstKey?.();null==a&&s&&(a="rtl"===x?l.getLastKey?.(n.focusedKey):l.getFirstKey?.(n.focusedKey)),null!=a&&(e.preventDefault(),t(a,"rtl"===x?"last":"first"))}break;case"Home":if(l.getFirstKey){if(null===n.focusedKey&&e.shiftKey)return;e.preventDefault();let t=l.getFirstKey(n.focusedKey,ok(e));n.setFocusedKey(t),null!=t&&(ok(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):p&&n.replaceSelection(t))}break;case"End":if(l.getLastKey){if(null===n.focusedKey&&e.shiftKey)return;e.preventDefault();let t=l.getLastKey(n.focusedKey,ok(e));n.setFocusedKey(t),null!=t&&(ok(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):p&&n.replaceSelection(t))}break;case"PageDown":if(l.getKeyPageBelow&&null!=n.focusedKey){let a=l.getKeyPageBelow(n.focusedKey);null!=a&&(e.preventDefault(),t(a))}break;case"PageUp":if(l.getKeyPageAbove&&null!=n.focusedKey){let a=l.getKeyPageAbove(n.focusedKey);null!=a&&(e.preventDefault(),t(a))}break;case"a":ok(e)&&"multiple"===n.selectionMode&&!0!==d&&(e.preventDefault(),n.selectAll());break;case"Escape":"clearSelection"!==m||u||0===n.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),n.clearSelection());break;case"Tab":if(!f)if(e.shiftKey)i.current.focus();else{let e,t,a=oq(i.current,{tabbable:!0});do(t=a.lastChild())&&(e=t);while(t)let r=((e=document)=>e.activeElement)();e&&(!eF(e)||r&&!ej(r))&&eP(e)}}},onFocus:e=>{if(n.isFocused){eM(e.currentTarget,eT(e))||n.setFocused(!1);return}if(!eM(e.currentTarget,eT(e)))return;let t=te;n.setFocused(!0);let a=e=>{null!=e&&(n.setFocusedKey(e),p&&!n.isSelected(e)&&n.replaceSelection(e))};if(v&&("keyboard"===t||"virtual"===t))a("first"===v?l.getFirstKey?.():l.getLastKey?.());else if(null==n.focusedKey){let t=e.relatedTarget;t&&e.currentTarget.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?a(n.lastSelectedKey??l.getLastKey?.()):a(n.firstSelectedKey??l.getFirstKey?.())}else y.current&&(y.current.scrollTop=k.current.top,y.current.scrollLeft=k.current.left);if(null!=n.focusedKey&&y.current){let e=o1(i,n.focusedKey);e instanceof HTMLElement&&(eF(e)||g||eP(e),("keyboard"===t||v&&"virtual"===t)&&nV(e,{containingElement:i.current}))}},onBlur:e=>{eM(e.currentTarget,e.relatedTarget)||n.setFocused(!1)},onMouseDown(e){y.current===eT(e)&&e.preventDefault()}}
7,{typeSelectProps:T}=o3({keyboardDelegate:l,selectionManager:n});return h||(M=N(T,M)),g||(a=null==n.focusedKey?0:-1),{collectionProps:N(M,{tabIndex:a,"data-collection":(t=n.collection,r=E(),o4.set(t,r),r)})}}class o6{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let a=null!=e?o1(this.ref,e):null;if(!a)return null;let r=t.getBoundingClientRect(),n=a.getBoundingClientRect();return{x:n.left-r.left-t.clientLeft+t.scrollLeft,y:n.top-r.top-t.clientTop+t.scrollTop,width:n.width,height:n.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}}class o7{constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new o6(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new o6(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){return"all"===this.disabledBehavior&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!=="selection"}findNextNonDisabled(e,t,a=!1){let r=e;for(;null!=r;){let e=this.collection.getItem(r);if(e?.type==="item"&&(a||!this.isDisabled(e)))return r;r=t(r)}return null}getNextKey(e,t){let a=e;return a=this.collection.getKeyAfter(a),this.findNextNonDisabled(a,e=>this.collection.getKeyAfter(e),t?.includeDisabled)}getPreviousKey(e,t){let a=e;return a=this.collection.getKeyBefore(a),this.findNextNonDisabled(a,e=>this.collection.getKeyBefore(e),t?.includeDisabled)}findKey(e,t,a){let r=e,n=this.layoutDelegate.getItemRect(r);if(!n||null==r)return null;let l=n;do{if(null==(r=t(r)))break;n=this.layoutDelegate.getItemRect(r)}while(n&&a(l,n)&&null!=r)return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}isReversed(e){let t=this.getNextKey(e),a=o1(this.ref,e);if(null!=t){let e=o1(this.ref,t);return!!a&&!!e&&a.getBoundingClientRect().top>e.getBoundingClientRect().top}let r=this.getPreviousKey(e);if(null!=r){let e=o1(this.ref,r);return!!a&&!!e&&e.getBoundingClientRect().top>a.getBoundingClientRect().top}return!1}getKeyBelow(e,t){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e,t),this.isSameRow):"vertical"===this.orientation&&this.isReversed(e)?this.getPreviousKey(e,t):this.getNextKey(e,t)}getKeyAbove(e,t){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e,t),this.isSameRow):"vertical"===this.orientation&&this.isReversed(e)?this.getNextKey(e,t):this.getPreviousKey(e,t)}getNextColumn(e,t,a){return t?this.getPreviousKey(e,a):this.getNextKey(e,a)}getKeyRightOf(e,t){let a="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";if(this.layoutDelegate[a])return e=this.layoutDelegate[a](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[a](e),t?.includeDisabled);if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"rtl"===this.direction,t);else return this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction,t),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction,t):null}getKeyLeftOf(e,t){let a="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";if(this.layoutDelegate[a])return e=this.layoutDelegate[a](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[a](e),t?.includeDisabled);if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"ltr"===this.direction,t);else return this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction,t),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction,t):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,a=this.layoutDelegate.getItemRect(e);
7if(!a)return null;let r=this.isReversed(e);if(t&&!nB(t))return this.getFirstKey();let n=e;if("horizontal"===this.orientation){let e=Math.max(0,a.x+a.width-this.layoutDelegate.getVisibleRect().width);for(;a&&a.x>e&&null!=n;)a=null==(n=this.getKeyAbove(n))?null:this.layoutDelegate.getItemRect(n)}else{let e=this.layoutDelegate.getVisibleRect(),t=r?a.y-e.height:Math.max(0,a.y+a.height-e.height);for(;a&&a.y>t&&null!=n;)a=null==(n=this.getKeyAbove(n))?null:this.layoutDelegate.getItemRect(n)}return n??(r?this.getLastKey():this.getFirstKey())}getKeyPageBelow(e){let t=this.ref.current,a=this.layoutDelegate.getItemRect(e);if(!a)return null;let r=this.isReversed(e);if(t&&!nB(t))return this.getLastKey();let n=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,a.x-a.width+this.layoutDelegate.getVisibleRect().width);for(;a&&a.x<e&&null!=n;)a=null==(n=this.getKeyBelow(n))?null:this.layoutDelegate.getItemRect(n)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,a.y-a.height+this.layoutDelegate.getVisibleRect().height);for(;a&&a.y<e&&null!=n;)a=null==(n=this.getKeyBelow(n))?null:this.layoutDelegate.getItemRect(n)}return n??(r?this.getFirstKey():this.getLastKey())}getKeyForSearch(e,t){if(!this.collator)return null;let a=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=a.getItem(r);if(!t)break;let n=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(n,e))return r;r=this.getNextKey(r)}return null}}let o9=new Map;function o8(e){let{locale:t}=ed(),a=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(o9.has(a))return o9.get(a);let r=new Intl.Collator(t,e);return o9.set(a,r),r}function se(e){let{selectionManager:t,collection:a,disabledKeys:r,ref:n,keyboardDelegate:l,layoutDelegate:i,orientation:o}=e,s=o8({usage:"search",sensitivity:"base"}),u=t.disabledBehavior,d=(0,c.useMemo)(()=>l||new o7({collection:a,disabledKeys:r,disabledBehavior:u,ref:n,collator:s,layoutDelegate:i,orientation:o}),[l,i,a,r,n,s,u,o]),{collectionProps:m}=o2({...e,ref:n,selectionManager:t,keyboardDelegate:d});return{listProps:m}}function st(e){let{isDisabled:t,onLongPressStart:a,onLongPressEnd:r,onLongPress:n,threshold:l=500,accessibilityDescription:i}=e,o=(0,c.useRef)(void 0),{addGlobalListener:s,removeGlobalListener:u}=tj(),{pressProps:d}=tW({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(a&&a({...e,type:"longpressstart"}),o.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),eR(e.target).activeElement!==e.target&&eP(e.target),n&&n({...e,type:"longpress"}),o.current=void 0},l),"touch"===e.pointerType)){let t=e=>{e.preventDefault()},a=eN(e.target);s(e.target,"contextmenu",t,{once:!0}),s(a,"pointerup",()=>{setTimeout(()=>{u(e.target,"contextmenu",t)}
7,30)},{once:!0})}},onPressEnd(e){o.current&&clearTimeout(o.current),r&&("mouse"===e.pointerType||"touch"===e.pointerType)&&r({...e,type:"longpressend"})}});return{longPressProps:N(d,nO(n&&!t?i:void 0))}}function sa(e){var t;let{id:a,selectionManager:r,key:n,ref:l,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:s,isDisabled:u,onAction:d,allowsDifferentPressOrigin:p,linkBehavior:h="action"}=e,g=e6();a=E(a);let f=e=>{if("keyboard"===e.pointerType&&o0(e))r.toggleSelection(n);else{if("none"===r.selectionMode)return;if(r.isLink(n)){if("selection"===h&&l.current){let t=r.getItemProps(n);g.open(l.current,e,t.href,t.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if("override"===h||"none"===h)return}"single"===r.selectionMode?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):e&&e.shiftKey?r.extendSelection(n):"toggle"===r.selectionBehavior||e&&(ok(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?r.toggleSelection(n):r.replaceSelection(n)}};(0,c.useEffect)(()=>{n===r.focusedKey&&r.isFocused&&(o?ox(l.current):s?s():((e=document)=>e.activeElement)()!==l.current&&l.current&&tD(l.current))},[l,n,r.focusedKey,r.childFocusStrategy,r.isFocused,o]),u=u||r.isDisabled(n);let y={};o||u?u&&(y.onMouseDown=e=>{e.preventDefault()}):y={tabIndex:n===r.focusedKey?0:-1,onFocus(e){eT(e)===l.current&&r.setFocusedKey(n)}},(0,c.useEffect)(()=>{u&&r.focusedKey===n&&r.setFocusedKey(null)},[r,u,n]);let b=r.isLink(n)&&"override"===h,v=d&&"action"===e.UNSTABLE_itemBehavior,x=r.isLink(n)&&"selection"!==h&&"none"!==h,D=!u&&r.canSelectItem(n)&&!b&&!v,k=(d||x)&&!u,C=k&&("replace"===r.selectionBehavior?!D:!D||r.isEmpty),w=k&&D&&"replace"===r.selectionBehavior,S=C||w,P=(0,c.useRef)(null),$=S&&D,R=(0,c.useRef)(!1),M=(0,c.useRef)(!1),T=r.getItemProps(n),F=e=>{d&&(d(),l.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),x&&l.current&&g.open(l.current,e,T.href,T.routerOptions)},K={ref:l};if(i?(K.onPressStart=e=>{P.current=e.pointerType,R.current=$,"keyboard"!==e.pointerType||S&&" "!==e.key||f(e)},p?(K.onPressUp=C?void 0:e=>{"mouse"===e.pointerType&&D&&f(e)},K.onPress=C?F:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&D&&f(e)}):K.onPress=e=>{C||w&&"mouse"!==e.pointerType?("keyboard"!==e.pointerType||"Enter"===e.key)&&F(e):"keyboard"!==e.pointerType&&D&&f(e)}):(K.onPressStart=e=>{P.current=e.pointerType,R.current=$,M.current=C,!D||("mouse"!==e.pointerType||C)&&("keyboard"!==e.pointerType||k&&" "!==e.key)||f(e)},K.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&S&&"Enter"===e.key||"mouse"===e.pointerType&&M.current)&&(S?F(e):D&&f(e))}),y["data-collection"]=(t=r.collection,o4.get(t)),y["data-key"]=n,K.preventFocusOnPress=o,o&&(K=N(K,{onPressStart(e){"touch"!==e.pointerType&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(e){"touch"===e.pointerType&&(r.setFocused(!0),r.setFocusedKey(n))}})),T)for(let e of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])T[e]&&(K[e]=m(K[e],T[e]));let{pressProps:B,isPressed:A}=tW(K),I=w?e=>{"mouse"===P.current&&(e.stopPropagation(),e.preventDefault(),F(e))}:void 0,{longPressProps:z}=st({isDisabled:!$,onLongPress(e){"touch"===e.pointerType&&(f(e),r.setSelectionBehavior("toggle"))}}),V="none"!==h&&r.isLink(n)?e=>{e7.isOpening||e.preventDefault()}:void 0;return{itemProps:N(y,D||C||o&&!u?B:{},$?z:{},{onDoubleClick:I,onDragStartCapture:e=>{"touch"===P.current&&R.current&&e.preventDefault()},onClick:V,id:a},o?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:A,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:u,allowsSelection:D,hasAction:S}}function sr(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function sn(e){return sl(e,0)}function sl(e,t){if(t<0)return;let a=0;for(let r of e){if(a===t)return r;a++}}function si(e){let t;for(let a of e)t=a;return t}function so(e,t,a){if(t.parentKey===a.parentKey)return t.index-a.index;let r=[...ss(e,t),t],n=[...ss(e,a),a],l=r.slice(0,n.length).findIndex((e,t)=>e!==n[t]);return -1!==l?(t=r[l],a=n[l],t.index-a.index):r.findIndex(e=>e===a)>=0?1:(n.findIndex(e=>e===t),-1)}function ss(e,t){let a=[],r=t;for(;r?.parentKey!=null;)(r=e.getItem(r.parentKey))&&a.unshift(r);return a}let su=new WeakMap;function sd(e){let t=su.get(e);if(null!=t)return t;let a=0,r=t=>{for(let n of t)"section"===n.type?r(sr(n,e)):"item"===n.type&&a++};return r(e),su.set(e,a),a}function sc(e){return parseInt(c.version.split(".")[0],10)>=19?e:e?"true":void 0}class sm{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let a of e.childNodes)t(a)};for(let a of e)t(a);let a=null,r=0,n=0;for(let[e,t]of this.keyMap)a?(a.nextKey=e,t.prevKey=a.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=r++),("section"===t.type||"item"===t.type)&&n++,(a=t).nextKey=void 0;this._size=n,this.lastKey=a?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return t?.childNodes||[]}}class sp extends Set{constructor(e,t,a){super(e),e instanceof sp?(this.anchorKey=t??e.anchorKey,this.currentKey=a??e.currentKey):(this.anchorKey=t??null,this.currentKey=a??null)}}function sh(e){let{selectionMode:t="none",disallowEmptySelection:a=!1,allowDuplicateSelectionEvents:r,selectionBehavior:n="toggle",disabledBehavior:l="all"}=e,i=(0,c.useRef)(!1),[,o]=(0,c.useState)(!1),s=(0,c.useRef)(null),u=(0,c.useRef)(null),[,d]=(0,c.useState)(null),[m,p]=lN((0,c.useMemo)(()=>sg(e.selectedKeys),[e.selectedKeys]),(0,c.useMemo)(()=>sg(e.defaultSelectedKeys,new sp),[e.defaultSelectedKeys]),e.onSelectionChange),h=(0,c.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[g,f]=(0,c.useState)(n);"replace"===n&&"toggle"===g&&"object"==typeof m&&0===m.size&&f("replace");let y=(0,c.useRef)(n);return(0,c.useEffect)(()=>{n!==y.current&&(f(n),y.current=n)},[n]),{selectionMode:t,disallowEmptySelection:a,selectionBehavior:g,setSelectionBehavior:f,get isFocused(){return i.current},setFocused(e){i.current=e,o(e)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(e,t="first"){s.current=e,u.current=t,d(e)},selectedKeys:m,setSelectedKeys(e){(r||!function(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}(e,m))&&p(e)},disabledKeys:h,disabledBehavior:l}}function sg(e,t){return e?"all"===e?"all":new sp(e):t}class sf{constructor(e,t,a){this.collection=e,this.state=t,this.allowsCellSelection=a?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=a?.layoutDelegate||null,this.fullCollection=a?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if("none"===this.state.selectionMode)return!1;let t=this.getKey(e);return null!=t&&("all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;
7if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let a=this.collection.getItem(t);(!e||a&&0>so(this.collection,a,e))&&(e=a)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let a=this.collection.getItem(t);(!e||a&&so(this.collection,a,e)>0)&&(e=a)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let t;if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let a=this.getKey(e);if(null!=a){if("all"===this.state.selectedKeys)t=new sp([a],a,a);else{let e=this.state.selectedKeys,r=e.anchorKey??a;for(let n of(t=new sp(e,r,a),this.getKeyRange(r,e.currentKey??a)))t.delete(n);for(let e of this.getKeyRange(a,r))this.canSelectItem(e)&&t.add(e)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let a=this.collection.getItem(e),r=this.collection.getItem(t);return a&&r?0>=so(this.collection,a,r)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let a=[],r=e;for(;null!=r;){let e=this.collection.getItem(r);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&a.push(r),r===t)return a;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;t&&"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);let t=this.getKey(e);if(null==t)return;let a=new sp("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);a.has(t)?a.delete(t):this.canSelectItem(t)&&(a.add(t),a.anchorKey=t,a.currentKey=t),this.disallowEmptySelection&&0===a.size||this.state.setSelectedKeys(a)}replaceSelection(e){if("none"===this.selectionMode)return;let t=this.getKey(e);if(null==t)return;let a=this.canSelectItem(t)?new sp([t],t,t):new sp;this.state.setSelectedKeys(a)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new sp;for(let a of e){let e=this.getKey(a);if(null!=e&&(t.add(e),"single"===this.selectionMode))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=this.fullCollection??this.collection,t=[],a=r=>{for(;null!=r;){if(this.canSelectItemIn(r,e)){let n=e.getItem(r);n?.type==="item"&&t.push(r),n?.hasChildNodes&&(this.allowsCellSelection||"item"!==n.type)&&a(sn(sr(n,e))?.key??null)}r=e.getKeyAfter(r)}};return a(e.getFirstKey()),t}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new sp)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;for(let a of t)if(!e.has(a))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,t){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let a=t.getItem(e);return!(!a||a?.props?.isDisabled)&&("cell"!==a.type||!!this.allowsCellSelection)}isDisabled(e){let t=this.collection.getItem(e);return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!t?.props?.isDisabled)&&t?.props?.disabledBehavior!=="selection"}isLink(e){return!!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(e){return new sf(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}class sy{build(e,t){return this.context=t,sb(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:a}=e;if(c.default.isValidElement(t)&&t.type===c.default.Fragment)yield*this.iterateCollection({children:t.props.children,items:a});else if("function"==typeof t){if(!a)throw Error("props.children was a function but props.items is missing");let e=0;for(let r of a)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];
7c.default.Children.forEach(t,t=>{t&&e.push(t)});let a=0;for(let t of e)for(let e of this.getFullNode({element:t,index:a},{}))a++,yield e}}getKey(e,t,a,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${r}${t.key}`;let n=t.value;if(null!=n){let e=n.key??n.id;if(null==e)throw Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,a,r){if(c.default.isValidElement(e.element)&&e.element.type===c.default.Fragment){let n=[];c.default.Children.forEach(e.element.props.children,e=>{n.push(e)});let l=e.index??0;for(let e of n)yield*this.getFullNode({element:e,index:l++},t,a,r);return}let n=e.element;if(!n&&e.value&&t&&t.renderer){let a=this.cache.get(e.value);if(a&&(!a.shouldInvalidate||!a.shouldInvalidate(this.context))){a.index=e.index,a.parentKey=r?r.key:null,yield a;return}n=t.renderer(e.value)}if(c.default.isValidElement(n)){let l=n.type;if("function"!=typeof l&&"function"!=typeof l.getCollectionNode){let e=n.type;throw Error(`Unknown element <${e}> in collection.`)}let i=l.getCollectionNode(n.props,this.context),o=e.index??0,s=i.next();for(;!s.done&&s.value;){let l=s.value;e.index=o;let u=l.key??null;null==u&&(u=l.element?null:this.getKey(n,e,t,a));let d=[...this.getFullNode({...l,key:u,index:o,wrapper:function(e,t){return e&&t?a=>e(t(a)):e||t||void 0}(e.wrapper,l.wrapper)},this.getChildState(t,l),a?`${a}${n.key}`:n.key,r)];for(let t of d){if(t.value=l.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${sv(t.type)}> in <${sv(r?.type??"unknown parent type")}>. Only <${sv(e.type)}> is supported.`);o++,yield t}s=i.next(d)}return}if(null==e.key||null==e.type)return;let l=this,i={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:(r?.level??0)+ +(r?.type==="item"),index:e.index,rendered:e.rendered,textValue:e.textValue??"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:sb(function*(){if(!e.hasChildNodes||!e.childNodes)return;let a=0;for(let r of e.childNodes())for(let e of(null!=r.key&&(r.key=`${i.key}${r.key}`),l.getFullNode({...r,index:a},l.getChildState(t,r),i.key,i)))a++,yield e})};yield i}constructor(){this.cache=new WeakMap}}function sb(e){let t=[],a=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let r of(a||(a=e()),a))t.push(r),yield r}}}function sv(e){return e[0].toUpperCase()+e.slice(1)}function sx(e,t,a){let r=(0,c.useMemo)(()=>new sy,[]),{children:n,items:l,collection:i}=e;return(0,c.useMemo)(()=>i||t(r.build({children:n,items:l},a)),[r,n,l,i,a,t])}function sD(e){let{filter:t,layoutDelegate:a}=e,r=sh(e),n=(0,c.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),l=(0,c.useCallback)(e=>new sm(t?t(e):e),[t]),i=(0,c.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=sx(e,l,i),s=(0,c.useMemo)(()=>new sf(o,r,{layoutDelegate:a}),[o,r,a]);return sC(o,s),{collection:o,disabledKeys:n,selectionManager:s}}function sk(e,t){let a=(0,c.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(a);return sC(a,r),{collection:a,selectionManager:r,disabledKeys:e.disabledKeys}}function sC(e,t){let a=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(null!=t.focusedKey&&!e.getItem(t.focusedKey)&&a.current){let r=a.current.getKeyAfter(t.focusedKey),n=null;for(;null!=r;){let l=e.getItem(r);if(l&&"item"===l.type&&!t.isDisabled(r)){n=r;break}r=a.current.getKeyAfter(r)}if(null==n)for(r=a.current.getKeyBefore(t.focusedKey);null!=r;){let l=e.getItem(r);if(l&&"item"===l.type&&!t.isDisabled(r)){n=r;break}r=a.current.getKeyBefore(r)}t.setFocusedKey(n)}a.current=e},[e,t])}function sw(e,t){let{collection:a,onLoadMore:r,scrollOffset:n=1}=e,l=(0,c.useRef)(null),i=tV(e=>{for(let t of e)t.isIntersecting&&r&&r()});p(()=>(t.current&&(l.current=new IntersectionObserver(i,{root:nA(t?.current),rootMargin:`0px ${100*n}% ${100*n}% ${100*n}%`}),l.current.observe(t.current)),()=>{l.current&&l.current.disconnect()}),[a,t,n])}let sE=(0,c.createContext)(null),sS=(0,c.createContext)(null),sP=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,sE);let a=(0,c.useContext)(sS);return a?c.default.createElement(sR,{state:a,props:e,listBoxRef:t}):c.default.createElement(aW,{content:c.default.createElement(aQ,e)},a=>c.default.createElement(s$,{props:e,listBoxRef:t,collection:a}))});function s$({props:e,listBoxRef:t,collection:a}){e={...e,collection:a,children:null,items:null};let{layoutDelegate:r}=(0,c.useContext)(a3),n=sD({...e,layoutDelegate:r});return c.default.createElement(sR,{state:n,props:e,listBoxRef:t})}function sR({state:e,props:t,listBoxRef:a}){let r,n,l;[t,a]=A(t,a,oE);let{dragAndDropHooks:i,layout:o="stack",orientation:s="vertical",filter:u}=t,d=sk(e,u),{collection:m,selectionManager:p}=d,h=!!i?.useDraggableCollectionState,g=!!i?.useDroppableCollectionState,{direction:f}=ed(),{disabledBehavior:y,disabledKeys:b}=p,v=o8({usage:"search",sensitivity:"base"}),{isVirtualized:x,layoutDelegate:D,dropTargetDelegate:k,CollectionRoot:C}=(0,c.useContext)(a3),w=(0,c.useMemo)(()=>t.keyboardDelegate||new o7({collection:m,collator:v,ref:a,disabledKeys:b,disabledBehavior:y,layout:o,orientation:s,direction:f,layoutDelegate:D}),[m,v,a,y,b,s,f,t.keyboardDelegate,o,D]),{listBoxProps:S}=function(e,t,a){let r=X(e,{labelable:!0}),n=e.selectionBehavior||"toggle",l=e.orientation||"vertical",i=e.linkBehavior||("replace"===n?"action":"override");"toggle"===n&&"action"===i&&(i="override");let{listProps:o}=se({...e,ref:a,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=t0({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),u=E(e.id);oT.set(t,{id:u,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:d,fieldProps:c}=et({...e,id:u,labelElementType:"span"});return{labelProps:d,listBoxProps:N(r,s,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":l,...N(c,o)})}}({...t,shouldSelectOnPressUp:h||t.shouldSelectOnPressUp,keyboardDelegate:w,isVirtualized:x},d,a);(0,c.useRef)(h),(0,c.useRef)(g),(0,c.useEffect)(()=>{},[h,g]);let P=!1,$=null,R=(0,c.useRef)(null);if(h&&i){r=i.useDraggableCollectionState({collection:m,selectionManager:p,preview:i.renderDragPreview?R:void 0}),i.useDraggableCollection({},r,a);let e=i.DragPreview;$=i.renderDragPreview?c.default.createElement(e,{ref:R},i.renderDragPreview):null}if(g&&i){n=i.useDroppableCollectionState({collection:m,selectionManager:p});let e=i.dropTargetDelegate||k||new i.ListDropTargetDelegate(m,a,{orientation:s,layout:o,direction:f});l=i.useDroppableCollection({keyboardDelegate:w,dropTargetDelegate:e},n,a),P=n.isDropTarget({type:"root"})}let{focusProps:M,isFocused:T,isFocusVisible:B}=t1(),I=0===d.collection.size,z={isDropTarget:P,isEmpty:I,isFocused:T,isFocusVisible:B,layout:t.layout||"stack",orientation:s,state:d},V=K({...t,children:void 0,defaultClassName:"react-aria-ListBox",values:z}),j=null;I&&t.renderEmptyState&&(j=c.default.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(z)));let O=X(t,{global:!0});return c.default.createElement(oI,null,c.default.createElement(L.div,{...N(O,V,S,M,l?.collectionProps),ref:a,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":P||void 0,"data-empty":I||void 0,"data-focused":T||void 0,"data-focus-visible":B||void 0,"data-layout":t.layout||"stack","data-orientation":s},c.default.createElement(F,{values:[[sE,t],[sS,d],[oh,{dragAndDropHooks:i,dragState:r,dropState:n}],[oN,{elementType:"div"}],[og,{render:sM}],[a0,{name:"ListBoxSection",render:sN}]]},c.default.createElement(o$,null,c.default.createElement(C,{collection:m,scrollRef:a,persistedKeys:ob(p,i,n),renderDropIndicator:oy(i,n)}))),j,$))}function sN(e,t,a,r="react-aria-ListBoxSection"){let n=(0,c.useContext)(sS),{dragAndDropHooks:l,dropState:i}=(0,c.useContext)(oh),{CollectionBranch:o}=(0,c.useContext)(a3),[s,u]=I(),{headingProps:d,groupProps:m}=function(e){let{heading:t,"aria-label":a}=e,r=E();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation",onMouseDown:e=>{e.preventDefault()}}:{},groupProps:{role:"group","aria-label":a,"aria-labelledby":t?r:void 0}}}({heading:u,"aria-label":e["aria-label"]??void 0}),p=K({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),h=X(e,{global:!0});return delete h.id,c.default.createElement(L.section,{...N(h,p,m),ref:t},c.default.createElement(ov.Provider,{value:{...d,ref:s}},c.default.createElement(o,{collection:n.collection,parent:a,renderDropIndicator:oy(l,i)})))}
7function sM(e,t){t=M(t);let{dragAndDropHooks:a,dropState:r}=(0,c.useContext)(oh),{dropIndicatorProps:n,isHidden:l,isDropTarget:i}=a.useDropIndicator(e,r,t);return l?null:c.default.createElement(sT,{...e,dropIndicatorProps:n,isDropTarget:i,ref:t})}let sT=(0,c.forwardRef)(function(e,t){let{dropIndicatorProps:a,isDropTarget:r,...n}=e,l=K({...n,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return c.default.createElement(c.default.Fragment,null,c.default.createElement(L.div,{...a,...l,role:"option",ref:t,"data-drop-target":r||void 0}))});aY(aK,function(e,t,a){let r=(0,c.useContext)(sS),{isLoading:n,onLoadMore:l,scrollOffset:i,...o}=e,s=(0,c.useRef)(null);sw((0,c.useMemo)(()=>({onLoadMore:l,collection:r?.collection,sentinelRef:s,scrollOffset:i}),[l,i,r?.collection]),s);let u=K({...o,id:void 0,children:a.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0});return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{style:{position:"relative",width:0,height:0},inert:sc(!0)},c.default.createElement("div",{"data-testid":"loadMoreSentinel",ref:s,style:{position:"absolute",height:1,width:1}})),n&&u.children&&c.default.createElement(c.default.Fragment,null,c.default.createElement(L.div,{...N(X(e,{global:!0}),{tabIndex:-1}),...u,role:"option",ref:t},u.children)))});let sF=(0,c.createContext)({placement:"bottom"}),sK=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,sF);let a=e.placement,r={position:"absolute",transform:"top"===a||"bottom"===a?"translateX(-50%)":"translateY(-50%)"};null!=a&&(r[a]="100%");let n=K({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:a}});n.style&&Object.keys(n.style).forEach(e=>void 0===n.style[e]&&delete n.style[e]);let l=X(e);return c.default.createElement(L.div,{...l,...n,style:{...r,...n.style},ref:t,"data-placement":a})}),sB=(0,c.createContext)({});var sA={};sA={"ar-AE":{longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"},"bg-BG":{longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"},"cs-CZ":{longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"},"da-DK":{longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"},"de-DE":{longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"},"el-GR":{longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"},"et-EE":{longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"},"it-IT":{longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"},"ja-JP":{longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"},"ko-KR":{longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"},"lt-LT":{longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."},"lv-LV":{longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"},"sk-SK":{longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"},"tr-TR":{longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"},"uk-UA":{longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"},"zh-CN":{longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"},"zh-TW":{longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"}};let sI=new WeakMap;function sz(e,t,a){var r;let{type:n="menu",isDisabled:l,trigger:i="press"}=e,o=E(),{triggerProps:s,overlayProps:u}=function(e,t,a){let r,{type:n}=e,{isOpen:l}=t;(0,c.useEffect)(()=>{a&&a.current&&sI.set(a.current,t.close)}),"menu"===n?r=!0:"listbox"===n&&(r="listbox");let i=E();return{triggerProps:{"aria-haspopup":r,"aria-expanded":l,"aria-controls":l?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}({type:n},t,a),{longPressProps:d}=st({isDisabled:l||"longPress"!==i,accessibilityDescription:rn((r=sA)&&r.__esModule?r.default:r,"@react-aria/menu").format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}});return delete s.onPress,{menuTriggerProps:{...s,..."press"===i?{preventFocusOnPress:!0,onPressStart(e){"touch"===e.pointerType||"ke
7yboard"===e.pointerType||l||(eP(e.target),t.open("virtual"===e.pointerType?"first":null))},onPress(e){"touch"!==e.pointerType||l||(eP(e.target),t.toggle())}}:d,id:o,onKeyDown:e=>{if(!l&&("longPress"!==i||e.altKey)&&a&&a.current)switch(e.key){case"Enter":case" ":if("longPress"===i||e.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...u,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function sV(e){let{ref:t,box:a,onResize:r}=e,n=tV(r);(0,c.useEffect)(()=>{let e=t?.current;if(e)if(void 0===window.ResizeObserver)return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};else{let t=new window.ResizeObserver(e=>{e.length&&n()});return t.observe(e,{box:a}),()=>{e&&t.unobserve(e)}}},[t,a])}let sj=new WeakMap;function sL(e){let[t,a]=lN(e.isOpen,e.defaultOpen||!1,e.onOpenChange),r=(0,c.useCallback)(()=>{a(!0)},[a]),n=(0,c.useCallback)(()=>{a(!1)},[a]),l=(0,c.useCallback)(()=>{a(!t)},[a,t]);return{isOpen:t,setOpen:a,open:r,close:n,toggle:l}}function sO({children:e}){let t=(0,c.useMemo)(()=>({register:()=>{}}),[]);return c.default.createElement(tI.Provider,{value:t},e)}c.default.forwardRef(({children:e,...t},a)=>{let r=(0,c.useRef)(!1),n=(0,c.useContext)(tI),l=N(n||{},{...t,register(){r.current=!0,n&&n.register()}});return l.ref=M(a||n?.ref),tE(n,l.ref),(0,c.useEffect)(()=>{r.current||(r.current=!0)},[]),c.default.createElement(tI.Provider,{value:l},e)}),Symbol.iterator;let sU=(0,c.createContext)(null),sH=(0,c.createContext)(null);class sZ extends aM{static{this.type="submenutrigger"}filter(e,t,a){let r=e.getItem(this.firstChildKey);if(r&&a(r.textValue,this)){let a=this.clone();return t.addDescendants(a,e),a}return null}}let sW=(0,c.createContext)(null),sG=aY(aB,function(e,t,a){[e,t]=A(e,t,sW);let r=B(sW)?.id,n=(0,c.useContext)(sU),l=M(t),i=(0,c.useContext)(sH),{isVirtualized:o}=(0,c.useContext)(a3),{menuItemProps:s,labelProps:u,descriptionProps:d,keyboardShortcutProps:m,...p}=function(e,t,a){let{id:r,key:n,closeOnSelect:l,shouldCloseOnSelect:i,isVirtualized:o,"aria-haspopup":s,onPressStart:u,onPressUp:d,onPress:m,onPressChange:p,onPressEnd:h,onClick:g,onHoverStart:f,onHoverChange:y,onHoverEnd:b,onKeyDown:v,onKeyUp:x,onFocus:D,onFocusChange:k,onBlur:C,selectionManager:w=t.selectionManager}=e,E=!!s,P=E&&"true"===e["aria-expanded"],$=e.isDisabled??w.isDisabled(n),R=e.isSelected??w.isSelected(n),M=sj.get(t),T=t.collection.getItem(n),F=e.onClose||M.onClose,K=e6(),B="menuitem";E||("single"===w.selectionMode?B="menuitemradio":"multiple"===w.selectionMode&&(B="menuitemcheckbox"));let A=S(),I=S(),z=S(),V={id:r,"aria-disabled":$||void 0,role:B,"aria-label":e["aria-label"],"aria-labelledby":A,"aria-describedby":[e["aria-describedby"],I,z].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};if("none"===w.selectionMode||E||(V["aria-checked"]=R),o){let e=Number(T?.index);V["aria-posinset"]=Number.isNaN(e)?void 0:e+1,V["aria-setsize"]=sd(t.collection)}let j=(0,c.useRef)(!1),L=(0,c.useRef)(null),{itemProps:O,isFocused:U}=sa({id:r,selectionManager:w,key:n,ref:a,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:M.shouldUseVirtualFocus}),{pressProps:H,isPressed:Z}=tW({onPressStart:u,onPress:m,onPressUp:e=>{"keyboard"!==e.pointerType&&(L.current={pointerType:e.pointerType}),"mouse"!==e.pointerType||j.current||e.target.click(),d?.(e)},onPressChange:e=>{p?.(e),j.current=e},onPressEnd:h,isDisabled:$}),{hoverProps:W}=t6({isDisabled:$,onHoverStart(e){th()||P&&s||(w.setFocused(!0),w.setFocusedKey(n)),f?.(e)},onHoverChange:y,onHoverEnd:b}),{keyboardProps:G}=tw({onKeyDown:e=>{if(e.repeat)return void e.continuePropagation();switch(e.key){case" ":L.current={pointerType:"keyboard",key:" "},eT(e).click(),tg("keyboard");break;case"Enter":L.current={pointerType:"keyboard",key:"Enter"},"A"!==eT(e).tagName&&eT(e).click(),tg("keyboard");break;default:E||e.continuePropagation(),v?.(e)}},onKeyUp:x}),{focusableProps:q}=t$({onBlur:C,onFocus:D,onFocusChange:k},a),_=X(T?.props);delete _.id;let Y=e9(T?.props);return{menuItemProps:{...V,...N(_,Y,E?{onFocus:O.onFocus,"data-collection":O["data-collection"],"data-key":O["data-key"]}:O,H,W,G,q,M.shouldUseVirtualFocus||E?{onMouseDown:e=>e.preventDefault()}:void 0,$?void 0:{onClick:t=>{g?.(t),!E&&(T?.props?.onAction?T.props.onAction():e.onAction&&e.onAction(n),M.onAction&&(0,M.onAction)(n,T?.value)),e8(t,K,T.props.href,T?.props.routerOptions);let a=L.current?.pointerType==="keyboard"?L.current?.key==="Enter"||"none"===w.selectionMode||w.isLink(n):"multiple"!==w.selectionMode||w.isLink(n);a=i??l??a,F&&!E&&a&&F(),L.current=null}}),tabIndex:null!=O.tabIndex&&P&&!M.shouldUseVirtualFocus?-1:O.tabIndex},labelProps:{id:A},descriptionProps:{id:I},keyboardShortcutProps:{id:z},isFocused:U,isFocusVisible:U&&w.isFocused&&th()&&!P,isSelected:R,isPressed:Z,isDisabled:$}}({...e,id:r,key:a.key,selectionManager:i,isVirtualized:o},n,l),{hoverProps:h,isHovered:g}=t6({isDisabled:p.isDisabled}),f=K({...e,id:void 0,children:a.rendered,defaultClassName:"react-aria-MenuItem",values:{...p,isHovered:g,isFocusVisible:p.isFocusVisible,selectionMode:i.selectionMode,selectionBehavior:i.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:"true"===e["aria-expanded"]}}),y=e.href?L.a:L.div,b=X(e,{global:!0});return delete b.id,delete b.onClick,c.default.createElement(y,{...N(b,f,s,h),ref:l,"data-disabled":p.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-selected":p.isSelected||void 0,"data-selection-mode":"none"===i.selectionMode?void 0:i.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":"true"===e["aria-expanded"]||void 0},c.default.createElement(F,{values:[[nf,{slots:{[T]:u,label:u,description:d}}],[sB,m],[oR,{isSelected:p.isSelected}]]},f.children))}),sq=(0,c.createContext)({});function s_(){return(0,c.useContext)(sq)??{}}let sY=c.default.createContext(null);
7function sJ(e){let t=k(),{portalContainer:a=t?null:document.body,isExiting:r}=e,[n,l]=(0,c.useState)(!1),i=(0,c.useMemo)(()=>({contain:n,setContain:l}),[n,l]),{getContainer:o}=s_();if(!e.portalContainer&&o&&(a=o()),!a)return null;let s=e.children;return e.disableFocusManagement||(s=c.default.createElement(oI,{restoreFocus:!0,contain:(e.shouldContainFocus||n)&&!r},s)),s=c.default.createElement(sY.Provider,{value:i},c.default.createElement(sO,null,s)),tL.default.createPortal(s,a)}function sQ(){let e=(0,c.useContext)(sY),t=e?.setContain;p(()=>{t?.(!0)},[t])}let sX=(0,c.createContext)(null),s0=(0,c.createContext)(null),s1=(0,c.forwardRef)(function(e,t){let a=e["aria-labelledby"];[e,t]=A(e,t,sX);let{dialogProps:r,titleProps:n}=function(e,t){let{role:a="dialog"}=e,r=S();r=e["aria-label"]?void 0:r;let n=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{if(t.current&&!eF(t.current)){tD(t.current);let e=setTimeout(()=>{(((e=document)=>e.activeElement)()===t.current||((e=document)=>e.activeElement)()===document.body)&&(n.current=!0,t.current&&(t.current.blur(),tD(t.current)),n.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),sQ(),(0,c.useRef)(!1),(0,c.useEffect)(()=>{}),{dialogProps:{...X(e,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:e=>{n.current&&e.stopPropagation()}},titleProps:{id:r}}}({...e,"aria-labelledby":a},t),l=(0,c.useContext)(s0);r["aria-label"]||r["aria-labelledby"]||e["aria-labelledby"]&&(r["aria-labelledby"]=e["aria-labelledby"]);let i=K({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:l?.close||(()=>{})}}),o=X(e,{global:!0});return c.default.createElement(L.section,{...N(o,i,r),render:e.render,ref:t,slot:e.slot||void 0},c.default.createElement(F,{values:[[nh,{slots:{[T]:{},title:{...n,level:2}}}],[t7,{slots:{[T]:{},close:{onPress:()=>l?.close()}}}]]},i.children))}),s4="u">typeof HTMLElement&&"inert"in HTMLElement.prototype,s3=new WeakMap,s5=[];function s2(e,t){let a=eN(e?.[0]),r=t instanceof a.Element?{root:t}:t,n=r?.root??document.body,l=r?.shouldUseInert&&s4,i=new Set(e),o=new Set,s=(e,t)=>{l&&e instanceof a.HTMLElement?e.inert=t:t?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof a.HTMLElement&&(e.inert=!1))};let u=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))i.add(t);let t=e=>{if(o.has(e)||i.has(e)||e.parentElement&&o.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of i)if(eM(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},a=oF(eR(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&d(e),r!==NodeFilter.FILTER_REJECT){let e=a.nextNode();for(;null!=e;)d(e),e=a.nextNode()}},d=e=>{let t=s3.get(e)??0;(l&&e instanceof a.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===t||(0===t&&s(e,!0),o.add(e),s3.set(e,t+1))};s5.length&&s5[s5.length-1].disconnect(),u(n);let c=new MutationObserver(e=>{for(let a of e)if("childList"===a.type&&a.target.isConnected&&![...i,...o].some(e=>eM(e,a.target)))for(let e of a.addedNodes){var t;(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===(t=e).dataset.liveAnnouncer||void 0!==t.dataset.reactAriaTopLayer)?i.add(e):e instanceof Element&&u(e)}});c.observe(n,{childList:!0,subtree:!0});let m={visibleNodes:i,hiddenNodes:o,observe(){c.observe(n,{childList:!0,subtree:!0})},disconnect(){c.disconnect()}};return s5.push(m),()=>{for(let e of(c.disconnect(),o)){let t=s3.get(e);null!=t&&(1===t?(s(e,!1),s3.delete(e)):s3.set(e,t-1))}m===s5[s5.length-1]?(s5.pop(),s5.length&&s5[s5.length-1].observe()):s5.splice(s5.indexOf(m),1)}}let s6={top:"top",bottom:"top",left:"left",right:"left"},s7={top:"bottom",bottom:"top",left:"right",right:"left"},s9={top:"left",left:"top"},s8={top:"height",left:"width"},ue={width:"totalWidth",height:"totalHeight"},ut={};function ua(e,t){let a=0,r=0,n=0,l=0,i=0,o=0,s={},u=(t?.scale??1)>1;if("BODY"===e.tagName||"HTML"===e.tagName){let u=document.documentElement;n=u.clientWidth,l=u.clientHeight,a=t?.width??n,r=t?.height??l,s.top=u.scrollTop||e.scrollTop,s.left=u.scrollLeft||e.scrollLeft,t&&(i=t.offsetTop,o=t.offsetLeft)}else({width:a,height:r,top:i,left:o}=us(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,n=a,l=r;return e0()&&("BODY"===e.tagName||"HTML"===e.tagName)&&u&&(s.top=0,s.left=0,i=t?.pageTop??0,o=t?.pageLeft??0),{width:a,height:r,totalWidth:n,totalHeight:l,scroll:s,top:i,left:o}}function ur(e,t,a,r,n,l,i){let o=n.scroll[e]??0,s=r[s8[e]],u=i[e]+r.scroll[s6[e]]+l,d=i[e]+r.scroll[s6[e]]+s-l,c=t-o+r.scroll[s6[e]]+i[e]-r[s6[e]],m=t-o+a+r.
7scroll[s6[e]]+i[e]-r[s6[e]];return c<u?u-c:m>d?Math.max(d-m,u-c):0}function un(e){if(ut[e])return ut[e];let[t,a]=e.split(" "),r=s6[t]||"right",n=s9[r];s6[a]||(a="center");let l=s8[r],i=s8[n];return ut[e]={placement:t,crossPlacement:a,axis:r,crossAxis:n,size:l,crossSize:i},ut[e]}function ul(e,t,a,r,n,l,i,o,s,u,d){let{placement:c,crossPlacement:m,axis:p,crossAxis:h,size:g,crossSize:f}=r,y={};y[h]=e[h]??0,"center"===m?y[h]+=((e[f]??0)-(a[f]??0))/2:m!==h&&(y[h]+=(e[f]??0)-(a[f]??0)),y[h]+=l;let b=e[h]-a[f]+s+u,v=e[h]+e[f]-s-u;if(y[h]=ey(y[h],b,v),c===p){let t=o?d[g]:d[ue[g]];y[s7[p]]=Math.floor(t-e[p]+n)}else y[p]=Math.floor(e[p]+e[g]+n);return y}function ui(e,t,a,r,n,l,i,o){let{placement:s,axis:u,size:d}=l;return s===u?Math.max(0,a[u]-(i.scroll[u]??0)-(e[u]+(o?t[u]:0))-(r[u]??0)-r[s7[u]]-n):Math.max(0,e[d]+e[u]+(o?t[u]:0)-a[u]-a[d]+(i.scroll[u]??0)-(r[u]??0)-r[s7[u]]-n)}function uo(e,t){let{top:a,left:r,width:n,height:l}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(n=e.offsetWidth,l=e.offsetHeight),{top:a,left:r,width:n,height:l}}function us(e,t,a){let{top:r,left:n,width:l,height:i}=a||uo(e,t),{scrollTop:o,scrollLeft:s,clientTop:u,clientLeft:d}=document.documentElement;return{top:r+o-u,left:n+s-d,width:l,height:i}}function uu(e,t,a,r){let n,l=window.getComputedStyle(e);if("fixed"===l.position)n=r||uo(e,a);else{n=us(e,a,r);let l=us(t,a),i=window.getComputedStyle(t);l.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=l.top,n.left-=l.left}return n.top-=parseInt(l.marginTop,10)||0,n.left-=parseInt(l.marginLeft,10)||0,n}function ud(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}let uc="u">typeof document?window.visualViewport:null;function um(e){var t;let{direction:a}=ed(),{arrowSize:r,targetRef:n,overlayRef:l,arrowRef:i,scrollRef:o=l,placement:s="bottom",containerPadding:u=12,shouldFlip:d=!0,boundaryElement:m="u">typeof document?document.body:null,offset:h=0,crossOffset:g=0,shouldUpdatePosition:f=!0,isOpen:y=!0,onClose:b,maxHeight:v,arrowBoundaryOffset:x=0,getTargetRect:D}=e,[k,C]=(0,c.useState)(null),w=[f,s,l.current,n.current,i?.current,o.current,u,d,m,h,g,y,a,v,x,r],E=(0,c.useRef)(uc?.scale);(0,c.useEffect)(()=>{y&&(E.current=uc?.scale)},[y]);let S=(0,c.useCallback)(()=>{var e;if(!1===f||!y||!l.current||!n.current||!m||uc?.scale!==E.current)return;let t=null;if(o.current&&eF(o.current)){let e=((e=document)=>e.activeElement)()?.getBoundingClientRect(),a=o.current.getBoundingClientRect();(t={type:"top",offset:(e?.top??0)-a.top}).offset>a.height/2&&(t.type="bottom",t.offset=(e?.bottom??0)-a.bottom)}let c=l.current;!v&&l.current&&(c.style.top="0px",c.style.bottom="",c.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let p=function(e){let t,a,{placement:r,targetNode:n,overlayNode:l,scrollNode:i,padding:o,shouldFlip:s,boundaryElement:u,offset:d,crossOffset:c,maxHeight:m,arrowSize:p=0,arrowBoundaryOffset:h=0,targetRect:g}=e,f="u">typeof document?window.visualViewport:null,y=l instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!ud(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!ud(t);)t=t.parentElement;return t||document.documentElement}(l):document.documentElement,b=y===document.documentElement,v=window.getComputedStyle(y).position,x=b?us(n,!1,g):uu(n,y,!1,g);if(!b){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);x.top+=parseInt(e,10)||0,x.left+=parseInt(t,10)||0}let D=us(l,!0),k={top:parseInt((t=window.getComputedStyle(l)).marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0};D.width+=(k.left??0)+(k.right??0),D.height+=(k.top??0)+(k.bottom??0),i.scrollTop,i.scrollLeft,i.scrollWidth,i.scrollHeight;let C=ua(u,f),w=ua(y,f);
7if("BODY"!==u.tagName&&"HTML"!==u.tagName||b)a=("BODY"===u.tagName||"HTML"===u.tagName)&&b?{top:0,left:0,width:0,height:0}:uu(u,y,!1);else{let e=uo(y,!1);a={top:-(e.top-C.top),left:-(e.left-C.left),width:0,height:0}}return function(e,t,a,r,n,l,i,o,s,u,d,c,m,p,h,g,f){var y,b,v;let x,D,k,C=un(e),{size:w,crossAxis:E,crossSize:S,placement:P,crossPlacement:$}=C,R=ul(t,i,a,C,u,d,s,c,p,h,o),N=u,M=ui(i,s,t,r,n+u,C,o,g);if(l&&a[w]>M){let e=un(`${s7[P]} ${$}`),l=ul(t,i,a,e,u,d,s,c,p,h,o);ui(i,s,t,r,n+u,e,o,g)>M&&(C=e,R=l,N=u)}let T="bottom";"top"===C.axis?"top"===C.placement?T="top":"bottom"===C.placement&&(T="bottom"):"top"===C.crossAxis&&("top"===C.crossPlacement?T="bottom":"bottom"===C.crossPlacement&&(T="top"));let F=ur(E,R[E],a[S],i,o,n,s);R[E]+=F;let K=(y=R,b=a.height,v=T,x=(null!=y.top?y.top:o[ue.height]-(y.bottom??0)-b)-(o.scroll.top??0),D=g?s.top:0,k={top:Math.max(i.top+D,(f?.offsetTop??i.top)+D),bottom:Math.min(i.top+i.height+D,(f?.offsetTop??0)+(f?.height??0))},"top"!==v?Math.max(0,k.bottom-x-((r.top??0)+(r.bottom??0)+n)):Math.max(0,x+b-k.top-((r.top??0)+(r.bottom??0)+n)));m&&m<K&&(K=m),a.height=Math.min(a.height,K),F=ur(E,(R=ul(t,i,a,C,N,d,s,c,p,h,o))[E],a[S],i,o,n,s),R[E]+=F;let B={},A=t[E]-R[E]-r[s6[E]],I=A+.5*t[S],z=p/2+h,V="left"===s6[E]?(r.left??0)+(r.right??0):(r.top??0)+(r.bottom??0),j=a[S]-V-p/2-h,L=ey(I,t[E]+p/2-(R[E]+r[s6[E]]),t[E]+t[S]-p/2-(R[E]+r[s6[E]]));B[E]=ey(L,z,j),({placement:P,crossPlacement:$}=C),p?A=B[E]:"right"===$?A+=t[S]:"center"===$&&(A+=t[S]/2);let O="left"===P||"top"===P?a[w]:0,U={x:"top"===P||"bottom"===P?A:O,y:"left"===P||"right"===P?A:O};return{position:R,maxHeight:K,arrowOffsetLeft:B.left,arrowOffsetTop:B.top,placement:P,triggerAnchorPoint:U}}(r,x,D,k,o,s,C,w,a,d,c,!!v&&"static"!==v,m,p,h,eM(u,y),f)}({placement:(e=s,"rtl"===a?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")),overlayNode:l.current,targetNode:n.current,scrollNode:o.current||l.current,padding:u,shouldFlip:d,boundaryElement:m,offset:h,crossOffset:g,maxHeight:v,arrowSize:r??(i?.current?uo(i.current,!0).width:0),arrowBoundaryOffset:x,targetRect:D?.(n.current)});if(!p.position)return;c.style.top="",c.style.bottom="",c.style.left="",c.style.right="",Object.keys(p.position).forEach(e=>c.style[e]=p.position[e]+"px"),c.style.maxHeight=null!=p.maxHeight?p.maxHeight+"px":"";let b=((e=document)=>e.activeElement)();if(t&&b&&o.current){let e=b.getBoundingClientRect(),a=o.current.getBoundingClientRect(),r=e[t.type]-a[t.type];o.current.scrollTop+=r-t.offset}C(p)},w);p(S,w),p(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t=S]),sV({ref:l,onResize:S}),sV({ref:n,onResize:S});let P=(0,c.useRef)(!1);p(()=>{let e,t=()=>{P.current=!0,clearTimeout(e),e=setTimeout(()=>{P.current=!1},500),S()},a=()=>{P.current&&t()};return uc?.addEventListener("resize",t),uc?.addEventListener("scroll",a),()=>{uc?.removeEventListener("resize",t),uc?.removeEventListener("scroll",a)}},[S]);let $=(0,c.useCallback)(()=>{P.current||b?.()},[b,P]);return!function(e){let{triggerRef:t,isOpen:a,onClose:r}=e;(0,c.useEffect)(()=>{if(!a||null===r)return;let e=e=>{let a=eT(e);if(!t.current||a instanceof Node&&!eM(a,t.current)||a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement)return;let n=r||sI.get(t.current);n&&n()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[a,r,t])}({triggerRef:n,isOpen:y,onClose:b&&$}),{overlayProps:{style:{position:k?"absolute":"fixed",top:k?void 0:0,left:k?void 0:0,zIndex:1e5,...k?.position,maxHeight:k?.maxHeight??"100vh"}},placement:k?.placement??null,triggerAnchorPoint:k?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:k?.arrowOffsetLeft,top:k?.arrowOffsetTop}},updatePosition:S}}function up(e,t){if(e.button>0)return!1;let a=eT(e);if(a){let e=a.ownerDocument;if(!e||!eM(e.documentElement,a)||a.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}let uh=[];function ug(e,t){let{onClose:a,shouldCloseOnBlur:r,isOpen:n,isDismissable:l=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:o}=e,s=(0,c.useRef)(void 0);(0,c.useEffect)(()=>
7{if(n&&!uh.includes(t))return uh.push(t),()=>{let e=uh.indexOf(t);e>=0&&uh.splice(e,1)}},[n,t]);let u=()=>{uh[uh.length-1]===t&&a&&a()};!function(e){let{ref:t,onInteractOutside:a,isDisabled:r,onInteractOutsideStart:n}=e,l=(0,c.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=tV(e=>{a&&up(e,t)&&(n&&n(e),l.current.isPointerDown=!0)}),o=tV(e=>{a&&a(e)});(0,c.useEffect)(()=>{let e=l.current;if(r)return;let a=eR(t.current);if("u">typeof PointerEvent){let r=a=>{e.isPointerDown&&up(a,t)&&o(a),e.isPointerDown=!1};return a.addEventListener("pointerdown",i,!0),a.addEventListener("click",r,!0),()=>{a.removeEventListener("pointerdown",i,!0),a.removeEventListener("click",r,!0)}}},[t,r])}({ref:t,onInteractOutside:l&&n?e=>{(!o||o(eT(e)))&&(uh[uh.length-1]===t&&e.stopPropagation(),s.current===t&&u()),s.current=void 0}:void 0,onInteractOutsideStart:e=>{let a=uh[uh.length-1];s.current=a,(!o||o(eT(e)))&&a===t&&e.stopPropagation()}});let{focusWithinProps:d}=t0({isDisabled:!r,onBlurWithin:e=>{!(!e.relatedTarget||oL(e.relatedTarget,oA))&&(!o||o(e.relatedTarget))&&a?.()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||i||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),u())},...d},underlayProps:{}}}let uf="u">typeof document&&window.visualViewport,uy=0;function ub(e={}){let{isDisabled:t}=e;p(()=>{if(!t){let e,t,a,r,l,i,o,s;return 1==++uy&&(n=eQ()?(t=uv(document.documentElement,"overflow","hidden"),a=!1,r=document.createElement("style"),(l=tA())&&(r.nonce=l),r.textContent=`
8@layer {
9  * {
10    overscroll-behavior: contain;
11  }
12}`.trim(),document.head.prepend(r),i=HTMLElement.prototype.focus,HTMLElement.prototype.focus=function(e){let t=((e=document)=>e.activeElement)(),a=null!=t&&ow(t);i.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||uD(this,a)},o=m(ux(document,"touchstart",t=>{let r=eT(t);e=nB(r)?r:nA(r,!0),a=!1;let n=r.ownerDocument.defaultView.getSelection();n&&!n.isCollapsed&&n.containsNode(r,!0)&&(a=!0),t.composedPath().some(e=>e instanceof HTMLInputElement&&"range"===e.type)&&(a=!0),"selectionStart"in r&&"selectionEnd"in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(a=!0)},{passive:!1,capture:!0}),ux(document,"touchmove",t=>{if(2!==t.touches.length&&!a){if(!e||e===document.documentElement||e===document.body)return void t.preventDefault();e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()}},{passive:!1,capture:!0}),ux(document,"blur",e=>{let t=eT(e),a=e.relatedTarget;if(a&&ow(a))a.focus({preventScroll:!0}),uD(a,ow(t));else if(!a){let e=t.parentElement?.closest("[tabindex]");e?.focus({preventScroll:!0})}},!0)),()=>{t(),o(),r.remove(),HTMLElement.prototype.focus=i}):m((s=window.innerWidth-document.documentElement.clientWidth)>0&&("scrollbarGutter"in document.documentElement.style?uv(document.documentElement,"scrollbarGutter","stable"):uv(document.documentElement,"paddingRight",`${s}px`)),uv(document.documentElement,"overflow","hidden"))),()=>{0==--uy&&n()}}},[t])}function uv(e,t,a){let r=e.style[t];return e.style[t]=a,()=>{e.style[t]=r}}function ux(e,t,a,r){return e.addEventListener(t,a,r),()=>{e.removeEventListener(t,a,r)}}function uD(e,t){t||!uf?uk(e):uf.addEventListener("resize",()=>uk(e),{once:!0})}function uk(e){let t=document.scrollingElement||document.documentElement,a=e;for(;a&&a!==t;){let e=nA(a);if(e!==document.documentElement&&e!==document.body&&e!==a){let t=e.getBoundingClientRect(),r=a.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+a.clientHeight){let a=t.bottom;uf&&(a=Math.min(a,uf.offsetTop+uf.height));let n=r.top-t.top-((a-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+n)),behavior:"smooth"})}}a=e.parentElement}}var uC={};function uw(e){var t;let{onDismiss:a,...r}=e,n=ee(r,rn((t=uC)&&t.__esModule?t.default:t,"@react-aria/overlays").format("dismiss"));return c.default.createElement(lz,null,c.default.createElement("button",{...n,tabIndex:-1,onClick:()=>{a&&a()},style:{width:1,height:1}}))}function uE(e,t=!0){let[a,r]=(0,c.useState)(!0),n=a&&t;return p(()=>{if(n&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,n]),uP(e,n,(0,c.useCallback)(()=>r(!1),[])),n}function uS(e,t){let[a,r]=(0,c.useState)(t?"open":"closed");switch(a){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open")}let n="exiting"===a;return uP(e,n,(0,c.useCallback)(()=>{r(e=>"exiting"===e?"closed":e)},[])),n}function uP(e,t,a){p(()=>
12{if(t&&e.current){if(!("getAnimations"in e.current))return void a();let t=e.current.getAnimations();if(0===t.length)return void a();let r=!1;return Promise.allSettled(t.map(e=>e.finished)).then(()=>{r||(0,tL.flushSync)(()=>{a()})}),()=>{r=!0}}},[e,t,a])}uC={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};let u$=(0,c.createContext)(null),uR=(0,c.createContext)(null),uN=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,u$);let a=(0,c.useContext)(s0),r=sL(e),n=null==e.isOpen&&null==e.defaultOpen&&a?a:r,l=uS(t,n.isOpen)||e.isExiting||!1,i=(0,c.useContext)(O),{direction:o}=ed();if(i){let t=e.children;return"function"==typeof t&&(t=t({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),c.default.createElement(c.default.Fragment,null,t)}return!n||n.isOpen||l?c.default.createElement(uM,{...e,triggerRef:e.triggerRef,state:n,popoverRef:t,isExiting:l,dir:o}):null});function uM({state:e,isExiting:t,UNSTABLE_portalContainer:a,clearContexts:r,...n}){let l=(0,c.useRef)(null),i=(0,c.useRef)(null),o=(0,c.useContext)(uR),s=o&&"SubmenuTrigger"===n.trigger,{popoverProps:u,underlayProps:d,arrowProps:m,placement:h,triggerAnchorPoint:g}=function(e,t){let{triggerRef:a,popoverRef:r,groupRef:n,isNonModal:l,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o,...s}=e,u="SubmenuTrigger"===s.trigger,{overlayProps:d,underlayProps:m}=ug({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!l||u,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:o},n??r),{overlayProps:p,arrowProps:h,placement:g,triggerAnchorPoint:f}
12=um({...s,targetRef:a,overlayRef:r,isOpen:t.isOpen,onClose:l&&!u?t.close:null});return ub({isDisabled:l||!t.isOpen}),(0,c.useEffect)(()=>{if(t.isOpen&&r.current)if(!l)return s2([n?.current??r.current],{shouldUseInert:!0});else{var e=n?.current??r.current;let t=s5[s5.length-1];return t&&!t.visibleNodes.has(e)?(t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}):void 0}},[l,t.isOpen,r,n]),{popoverProps:N(d,p),arrowProps:h,underlayProps:m,placement:g,triggerAnchorPoint:f}}({...n,offset:n.offset??8,arrowRef:l,groupRef:s?o:i},e),f=n.popoverRef,y=uE(f,!!h)||n.isEntering||!1,b=K({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:h,isEntering:y,isExiting:t}}),v=!n.isNonModal||"SubmenuTrigger"===n.trigger,[x,D]=(0,c.useState)(!1);p(()=>{f.current&&D(v&&!f.current.querySelector("[role=dialog]"))},[f,v]),(0,c.useEffect)(()=>{x&&("SubmenuTrigger"!==n.trigger||"pointer"!==te)&&f.current&&!eF(f.current)&&tD(f.current)},[x,f,n.trigger]);let k=(0,c.useMemo)(()=>{let e=b.children;if(r)for(let t of r)e=c.default.createElement(t.Provider,{value:null},e);return e},[b.children,r]),[C,w]=(0,c.useState)(null),E=(0,c.useCallback)(()=>{n.triggerRef.current&&w(n.triggerRef.current.getBoundingClientRect().width+"px")},[n.triggerRef]);p(E,[E]),sV({ref:b.style?.["--trigger-width"]?void 0:n.triggerRef,onResize:E});let S={...u.style,"--trigger-anchor-point":g?`${g.x}px ${g.y}px`:void 0,...b.style,"--trigger-width":b.style?.["--trigger-width"]||C},P=c.default.createElement(L.div,{...N(X(n,{global:!0}),u),...b,role:x?"dialog":void 0,tabIndex:x?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:f,slot:n.slot||void 0,style:S,dir:n.dir,"data-trigger":n.trigger,"data-placement":h,"data-entering":y||void 0,"data-exiting":t||void 0},!n.isNonModal&&c.default.createElement(uw,{onDismiss:e.close}),c.default.createElement(sF.Provider,{value:{...m,placement:h,ref:l}},k),c.default.createElement(uw,{onDismiss:e.close}));return s?c.default.createElement(sJ,{...n,shouldContainFocus:x,isExiting:t,portalContainer:a??o?.current??void 0},P):c.default.createElement(sJ,{...n,shouldContainFocus:x,isExiting:t,portalContainer:a},!n.isNonModal&&e.isOpen&&c.default.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),c.default.createElement("div",{ref:i,style:{display:"contents"}},c.default.createElement(uR.Provider,{value:i},P)))}var uT={};function uF(e,t,a){return null==e&&null!=t?a.getItem(t)?.textValue??"":e}function uK(e){let t=o8({usage:"search",...e}),a=(0,c.useCallback)((e,a)=>0===a.length||(e=e.normalize("NFC"),a=a.normalize("NFC"),0===t.compare(e.slice(0,a.length),a)),[t]),r=(0,c.useCallback)((e,a)=>0===a.length||(e=e.normalize("NFC"),a=a.normalize("NFC"),0===t.compare(e.slice(-a.length),a)),[t]),n=(0,c.useCallback)((e,a)=>{if(0===a.length)return!0;e=e.normalize("NFC");let r=0,n=(a=a.normalize("NFC")).length;for(;r+n<=e.length;r++){let l=e.slice(r,r+n);if(0===t.compare(a,l))return!0}return!1},[t]);return(0,c.useMemo)(()=>({startsWith:a,endsWith:r,contains:n}),[a,r,n])}uT={"ar-AE":{buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u{62E}\u{64A}\u{627}\u{631}`,other:()=>`${t.number(e.optionCount)} \u{62E}\u{64A}\u{627}\u{631}\u{627}\u{62A}`})} \u{645}\u{62A}\u{627}\u{62D}\u{629}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u{627}\u{644}\u{645}\u{62C}\u{645}\u{648}\u{639}\u{629} \u{627}\u{644}\u{645}\u{62F}\u{62E}\u{644}\u{629} ${e.groupTitle}, \u{645}\u{639} ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u{62E}\u{64A}\u{627}\u{631}`,other:()=>`${t.number(e.groupCount)} \u{62E}\u{64A}\u{627}\u{631}\u{627}\u{62A}`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}\u{60C} \u{645}\u{62D}\u{62F}\u{62F}`},"bg-BG":{buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u{43E}\u{43F}\u{446}\u{438}\u{44F}`,other:()=>`${t.number(e.optionCount)} \u{43E}\u{43F}\u{446}\u{438}\u{438}`})} \u{43D}\u{430} \u{440}\u{430}\u{437}\u{43F}\u{43E}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{435}.`,focusAnnouncement:(e,t)=>
12`${t.select({true:()=>`\u{412}\u{44A}\u{432}\u{435}\u{434}\u{435}\u{43D}\u{430} \u{433}\u{440}\u{443}\u{43F}\u{430} ${e.groupTitle}, \u{441} ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u{43E}\u{43F}\u{446}\u{438}\u{44F}`,other:()=>`${t.number(e.groupCount)} \u{43E}\u{43F}\u{446}\u{438}\u{438}`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`},"cs-CZ":{buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} mo\u{17E}nost`,other:()=>`jsou/je ${t.number(e.optionCount)} mo\u{17E}nosti/-\xed`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadan\xe1 skupina \u{201E}${e.groupTitle}\u{201C} ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} mo\u{17E}nost\xed`,other:()=>`se ${t.number(e.groupCount)} mo\u{17E}nostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybr\xe1no`},"da-DK":{buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilg\xe6ngelig`,other:()=>`${t.number(e.optionCount)} muligheder tilg\xe6ngelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`},"de-DE":{buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verf\xfcgbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgew\xe4hlt`},"el-GR":{buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE}`,other:()=>`${t.number(e.optionCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AD}\u{3C2} `})} \u{3B4}\u{3B9}\u{3B1}\u{3B8}\u{3AD}\u{3C3}\u{3B9}\u{3BC}\u{3B5}\u{3C2}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u{395}\u{3B9}\u{3C3}\u{3B1}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3BF}\u{3BC}\u{3AC}\u{3B4}\u{3B1} ${e.groupTitle}, \u{3BC}\u{3B5} ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE}`,other:()=>`${t.number(e.groupCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AD}\u{3C2}`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5}`},"en-US":{focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"},"es-ES":{buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opci\xf3n`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>
12`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opci\xf3n`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`},"et-EE":{buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud r\xfchm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`},"fi-FI":{buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhm\xe4\xe4n ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`},"fr-FR":{buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, s\xe9lectionn\xe9`},"he-IL":{buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`\u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5EA} ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} \u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5D9}\u{5D5}\u{5EA}`})} \u{5D1}\u{5DE}\u{5E6}\u{5D1} \u{5D6}\u{5DE}\u{5D9}\u{5DF}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u{5E0}\u{5DB}\u{5E0}\u{5E1} \u{5DC}\u{5E7}\u{5D1}\u{5D5}\u{5E6}\u{5D4} ${e.groupTitle}, \u{5E2}\u{5DD} ${t.plural(e.groupCount,{one:()=>`\u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5EA} ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} \u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5D9}\u{5D5}\u{5EA}`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, \u{5E0}\u{5D1}\u{5D7}\u{5E8}`},"hr-HR":{buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno jo\u{161}: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`},"hu-HU":{buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehet\u{151}s\xe9g`,other:()=>`${t.number(e.optionCount)} lehet\u{151}s\xe9g`})} \xe1ll rendelkez\xe9sre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Bel\xe9pett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehet\u{151}s\xe9get`,other:()=>`${t.number(e.groupCount)} lehet\u{151}s\xe9get`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijel\xf6lve`},"it-IT":{buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>
12`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`},"ja-JP":{buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`,other:()=>`${t.number(e.optionCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`})}\u{3092}\u{5229}\u{7528}\u{3067}\u{304D}\u{307E}\u{3059}\u{3002}`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u{5165}\u{529B}\u{3055}\u{308C}\u{305F}\u{30B0}\u{30EB}\u{30FC}\u{30D7} ${e.groupTitle}\u{3001}${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`,other:()=>`${t.number(e.groupCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`})}\u{3092}\u{542B}\u{3080}\u{3002}`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}\u{3001}\u{9078}\u{629E}\u{6E08}\u{307F}`},"ko-KR":{buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}\u{AC1C} \u{C635}\u{C158}`,other:()=>`${t.number(e.optionCount)}\u{AC1C} \u{C635}\u{C158}`})}\u{C744} \u{C0AC}\u{C6A9}\u{D560} \u{C218} \u{C788}\u{C2B5}\u{B2C8}\u{B2E4}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u{C785}\u{B825}\u{D55C} \u{ADF8}\u{B8F9} ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}\u{AC1C} \u{C635}\u{C158}`,other:()=>`${t.number(e.groupCount)}\u{AC1C} \u{C635}\u{C158}`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, \u{C120}\u{D0DD}\u{B428}`},"lt-LT":{buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-i\u{173})`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u{12E}vesta grup\u{117} ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-i\u{173})`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`},"lv-LV":{buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievad\u{12B}ta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcij\u{101}m`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlas\u{12B}ta`},"nb-NO":{buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`},"nl-NL":{buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>
12`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`},"pl-PL":{buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dost\u{119}pna/dost\u{119}pne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Do\u{142}\u{105}czono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcj\u{105}`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`},"pt-BR":{buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} op\xe7\xe3o`,other:()=>`${t.number(e.optionCount)} op\xe7\xf5es`})} dispon\xedvel.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} op\xe7\xe3o`,other:()=>`${t.number(e.groupCount)} op\xe7\xf5es`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`},"pt-PT":{buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} op\xe7\xe3o`,other:()=>`${t.number(e.optionCount)} op\xe7\xf5es`})} dispon\xedvel.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} op\xe7\xe3o`,other:()=>`${t.number(e.groupCount)} op\xe7\xf5es`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`},"ro-RO":{buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} op\u{21B}iune`,other:()=>`${t.number(e.optionCount)} op\u{21B}iuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} op\u{21B}iune`,other:()=>`${t.number(e.groupCount)} op\u{21B}iuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`},"ru-RU":{buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,other:()=>`${t.number(e.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{43E}\u{432}`})} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{43E}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u{412}\u{432}\u{435}\u{434}\u{435}\u{43D}\u{43D}\u{430}\u{44F} \u{433}\u{440}\u{443}\u{43F}\u{43F}\u{430} ${e.groupTitle}, \u{441} ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{43E}\u{43C}`,other:()=>`${t.number(e.groupCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{430}\u{43C}\u{438}`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}`},"sk-SK":{buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>
12`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mo\u{17E}nos\u{165}`,other:()=>`${t.number(e.optionCount)} mo\u{17E}nosti/-\xed`})} k dispoz\xedcii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadan\xe1 skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mo\u{17E}nos\u{165}ou`,other:()=>`${t.number(e.groupCount)} mo\u{17E}nos\u{165}ami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybrat\xe9`},"sl-SI":{buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`},"sr-SP":{buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno jo\u{161}: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`},"sv-SE":{buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillg\xe4ngliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`},"tr-TR":{buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} se\xe7enek`,other:()=>`${t.number(e.optionCount)} se\xe7enekler`})} kullan\u{131}labilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} se\xe7enek`,other:()=>`${t.number(e.groupCount)} se\xe7enekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, se\xe7ildi`},"uk-UA":{buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,other:()=>`${t.number(e.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{438}(-\u{456}\u{432})`})} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{43E}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u{412}\u{432}\u{435}\u{434}\u{435}\u{43D}\u{430} \u{433}\u{440}\u{443}\u{43F}\u{430} ${e.groupTitle}, \u{437} ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,other:()=>`${t.number(e.groupCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{438}(-\u{456}\u{432})`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`},"zh-CN":{buttonLabel:"显示建议",countAnnouncement:(e,t)=>`\u{6709} ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u{4E2A}\u{9009}\u{9879}`,other:()=>`${t.number(e.optionCount)} \u{4E2A}\u{9009}\u{9879}`})}\u{53EF}\u{7528}\u{3002}
12`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u{8FDB}\u{5165}\u{4E86} ${e.groupTitle} \u{7EC4}\u{FF0C}\u{5176}\u{4E2D}\u{6709} ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u{4E2A}\u{9009}\u{9879}`,other:()=>`${t.number(e.groupCount)} \u{4E2A}\u{9009}\u{9879}`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, \u{5DF2}\u{9009}\u{62E9}`},"zh-TW":{buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u{9078}\u{9805}`,other:()=>`${t.number(e.optionCount)} \u{9078}\u{9805}`})} \u{53EF}\u{7528}\u{3002}`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u{8F38}\u{5165}\u{7684}\u{7FA4}\u{7D44} ${e.groupTitle}, \u{6709} ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u{9078}\u{9805}`,other:()=>`${t.number(e.groupCount)} \u{9078}\u{9805}`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, \u{5DF2}\u{9078}\u{53D6}`}};let uB=(0,c.createContext)(null),uA=(0,c.createContext)(null),uI=H(function(e,t){[e,t]=A(e,t,uB);let{children:a,isDisabled:r=!1,isInvalid:n=!1,isRequired:l=!1,isReadOnly:i=!1}=e,o=(0,c.useMemo)(()=>c.default.createElement(sE.Provider,{value:{items:e.items??e.defaultItems}},"function"==typeof a?a({isOpen:!1,isDisabled:r,isInvalid:n,isRequired:l,defaultChildren:null,isReadOnly:i}):a),[a,r,n,l,i,e.items,e.defaultItems]);return c.default.createElement(aW,{content:o},a=>c.default.createElement(uV,{props:e,collection:a,comboBoxRef:t}))}),uz=[Z,t7,iw,ij,nf];function uV({props:e,collection:t,comboBoxRef:a}){let{name:r,formValue:n="key",allowsCustomValue:l}=e;l&&(n="text");let{validationBehavior:i}=B(ia)||{},o=e.validationBehavior??i??"native",{contains:s}=uK({sensitivity:"base"}),u=function(e){let{defaultFilter:t,menuTrigger:a="input",allowsEmptyCollection:r=!1,allowsCustomValue:n,shouldCloseOnBlur:l=!0,selectionMode:i="single"}=e,[o,s]=(0,c.useState)(!1),[u,d]=(0,c.useState)(!1),[m,p]=(0,c.useState)(null),h=(0,c.useMemo)(()=>void 0!==e.defaultValue?e.defaultValue:"single"===i?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,i]),g=(0,c.useMemo)(()=>void 0!==e.value?e.value:"single"===i?e.selectedKey:void 0,[e.value,e.selectedKey,i]),[f,y]=lN(g,h,e.onChange),b="single"===i&&Array.isArray(f)?f[0]:f,v=t=>{if("single"===i){let a=Array.isArray(t)?t[0]??null:t;y(a),a!==b&&e.onSelectionChange?.(a)}else{let e=[];Array.isArray(t)?e=t:null!=t&&(e=[t]),y(e)}},{collection:x,selectionManager:D,disabledKeys:k}=sD({...e,items:e.items??e.defaultItems,selectionMode:i,disallowEmptySelection:"single"===i,allowDuplicateSelectionEvents:!0,selectedKeys:(0,c.useMemo)(()=>(function(e){if(void 0!==e)return null===e?[]:Array.isArray(e)?e:[e]})(b),[b]),onSelectionChange:t=>{if("all"!==t)if("single"===i){let a=t.values().next().value??null;a===b?(e.onSelectionChange?.(a),j(),I()):v(a)}else v([...t])}}),C="single"===i?D.firstSelectedKey:null,w=(0,c.useMemo)(()=>[...D.selectedKeys].map(e=>x.getItem(e)).filter(e=>null!=e),[D.selectedKeys,x]),[E,S]=lN(e.inputValue,uF(e.defaultInputValue,C,x)||"",e.onInputChange),[P]=(0,c.useState)(b),[$]=(0,c.useState)(E),R=(0,c.useMemo)(()=>{var a;return null==e.items&&t?new sm(function e(t,a,r,n){let l=[];for(let i of a)if("section"===i.type&&i.hasChildNodes){let a=e(t,sr(i,t),r,n);[...a].some(e=>"item"===e.type)&&l.push({...i,childNodes:a})}else"item"===i.type&&n(i.textValue,r)?l.push({...i}):"item"!==i.type&&l.push({...i});return l}(a=x,a,E,t)):x},[x,E,t,e.items]),[N,M]=(0,c.useState)(R),T=(0,c.useRef)("focus"),F=sL({...e,onOpenChange:t=>{e.onOpenChange&&e.onOpenChange(t,t?T.current:void 0),D.setFocused(t),t||D.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),K=(t=null,n)=>{let l="manual"===n||"focus"===n&&"focus"===a;(r||R.size>0||l&&x.size>0||e.items)&&(l&&!F.isOpen&&void 0===e.items&&s(!0),T.current=n,p(t),F.open())},B=(0,c.useCallback)(()=>{M(o?x:R)},[o,x,R]),A=(0,c.useCallback)((e=null)=>{F.isOpen&&B(),p(e),F.toggle()},[F,B]),I=(0,c.useCallback)(()=>{F.isOpen&&(B(),F.close())},[F,B]),[z,V]=(0,c.useState)(E),j=()=>{let e=null!=C?x.getItem(C)?.textValue??"":"";V(e),S(e)},L=(0,c.useRef)(b),O=(0,c.useRef)(null!=C?x.getItem(C)?.textValue??"":"");(0,c.useEffect)(()=>{u&&(R.size>0||r)&&!F.isOpen&&E!==z&&"manual"!==a&&K(null,"input"),o||r||!F.isOpen||0!==R.size||I(),null!=b&&b!==L.current&&"single"===i&&I(),E!==z&&(D.setFocusedKey(null),s(!1),"single"===i&&""===E&&(void 0===e.inputValue||void 0===g)&&v(null)),b!==L.current&&(void 0===e.inputValue||void 0===g)?j():z!==E&&V(E);let t=null!=C?x.getItem(C)?.textValue??"":"";u||null==C||void 0!==e.inputValue||C!==L.current||O.current===t||(V(t),S(t)),L.current=b,O.current=t});let U=l7({...e,value:(0,c.useMemo)(()=>Array.isArray(b)&&0===b.length?null:{inputValue:E,value:b,selectedKey:C},[E,C,b])}),H=()=>
12{if("multiple"===i){V(E),I();return}L.current=null,v(null),I()},Z=(t=!1)=>{if(void 0!==g&&void 0!==e.inputValue){let a=null!=C?x.getItem(C)?.textValue??"":"";(t||"multiple"===i||E!==a)&&(e.onSelectionChange?.(C),e.onChange?.(b)),V(a),I()}else j(),I()},W=()=>{n?E===(null!=C?x.getItem(C)?.textValue??"":"")?Z():H():Z()},G=(0,c.useRef)([E,b]),q=(0,c.useMemo)(()=>F.isOpen?o?x:R:N,[F.isOpen,x,R,o,N]),_=e.defaultSelectedKey??("single"===i?P:null);return{...U,...F,focusStrategy:m,toggle:(t=null,n)=>{let l="manual"===n||"focus"===n&&"focus"===a;(r||R.size>0||l&&x.size>0||e.items||F.isOpen)&&(l&&!F.isOpen&&void 0===e.items&&s(!0),F.isOpen||(T.current=n),A(t))},open:K,close:W,selectionManager:D,value:b,defaultValue:h??P,setValue:v,selectedKey:C,selectedItems:w,defaultSelectedKey:_,setSelectedKey:v,disabledKeys:k,isFocused:u,setFocused:t=>{t?(G.current=[E,b],"focus"!==a||e.isReadOnly||K(null,"focus")):(l&&W(),(E!==G.current[0]||b!==G.current[1])&&U.commitValidation()),d(t)},selectedItem:w[0]??null,collection:q,inputValue:E,defaultInputValue:uF(e.defaultInputValue,_,x)??$,setInputValue:S,commit:()=>{F.isOpen&&null!=D.focusedKey?D.isSelected(D.focusedKey)&&"single"===i?Z(!0):D.select(D.focusedKey):W()},revert:()=>{n&&null==C?H():Z()}}}({...e,defaultFilter:e.defaultFilter||s,items:e.items,children:void 0,collection:t,validationBehavior:o}),d=(0,c.useRef)(null),p=(0,c.useRef)(null),h=(0,c.useRef)(null),g=(0,c.useRef)(null),f=(0,c.useRef)(null),[y,b]=I(!e["aria-label"]&&!e["aria-labelledby"]),{buttonProps:v,inputProps:x,listBoxProps:D,labelProps:k,descriptionProps:C,errorMessageProps:w,valueProps:S,...P}=function(e,t){var a;let{buttonRef:r,popoverRef:n,inputRef:l,listBoxRef:i,keyboardDelegate:o,layoutDelegate:s,shouldFocusWrap:u,isReadOnly:d,isDisabled:p}=e,h=(0,c.useRef)(null);r=r??h;let g=rn((a=uT)&&a.__esModule?a.default:a,"@react-aria/combobox"),{menuTriggerProps:f,menuProps:y}=sz({type:"listbox",isDisabled:p||d},t,r);oT.set(t,{id:y.id});let{collection:b}=t,{disabledKeys:v}=t.selectionManager,x=(0,c.useMemo)(()=>o||new o7({collection:b,disabledKeys:v,ref:i,layoutDelegate:s}),[o,s,b,v,i]),{collectionProps:D}=o2({selectionManager:t.selectionManager,keyboardDelegate:x,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:u,ref:l,isVirtualized:!0}),k=e6(),C=function(e=[]){let t=E(),[a,r]=(0,c.useState)(!0),[n,l]=(0,c.useState)(e);return n.some((t,a)=>!Object.is(t,e[a]))&&(r(!0),l(e)),(0,c.useEffect)(()=>{a&&!document.getElementById(t)&&r(!1)},[t,a,n]),a?t:void 0}([t.selectionManager.selectedKeys,t.selectionManager.selectionMode]),{isInvalid:w,validationErrors:S,validationDetails:P}=t.displayValidation,{labelProps:$,inputProps:R,descriptionProps:M,errorMessageProps:T}=iU({...e,isRequired:"multiple"===e.selectionMode?e.isRequired&&t.selectionManager.isEmpty:e.isRequired,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:m(t.isOpen&&D.onKeyDown,a=>{if(!a.nativeEvent.isComposing)switch(a.key){case"Enter":case"Tab":if(t.isOpen&&"Enter"===a.key&&a.preventDefault(),t.isOpen&&i.current&&null!=t.selectionManager.focusedKey){let e=t.collection.getItem(t.selectionManager.focusedKey);if(e?.props.href){let r=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);"Enter"===a.key&&r instanceof HTMLAnchorElement&&k.open(r,a,e.props.href,e.props.routerOptions),t.close();break}if(e?.props.onAction){e.props.onAction(),t.close();break}}("Enter"===a.key||t.isOpen)&&t.commit(),"Tab"===a.key&&a.continuePropagation();break;case"Escape":(!t.selectionManager.isEmpty||""===t.inputValue||e.allowsCustomValue)&&a.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null)}},e.onKeyDown),onBlur:a=>{let l=r?.current&&r.current===a.relatedTarget,i=eM(n.current,a.relatedTarget);l||i||(e.onBlur&&e.onBlur(a),t.setFocused(!1))},value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:a=>{t.isFocused||(e.onFocus&&e.onFocus(a),t.setFocused(!0))},autoComplete:"off",validate:void 0,[l6]:t,"aria-describedby":[C,e["aria-describedby"]].filter(
12Boolean).join(" ")||void 0},l);ii(l,t.defaultValue,t.setValue);let F=ee({id:f.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||$.id}),K=ee({id:y.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||$.id}),B=(0,c.useRef)(0),A=null!=t.selectionManager.focusedKey&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0,I=A?.parentKey??null,z=t.selectionManager.focusedKey??null,V=(0,c.useRef)(I),j=(0,c.useRef)(z);(0,c.useEffect)(()=>{if(eX()&&null!=A&&null!=z&&z!==j.current){let e=t.selectionManager.isSelected(z),a=null!=I?t.collection.getItem(I):null,r=a?.["aria-label"]||("string"==typeof a?.rendered?a.rendered:"")||"";eE(g.format("focusAnnouncement",{isGroupChange:(a&&I!==V.current)??!1,groupTitle:r,groupCount:a?[...sr(a,t.collection)].length:0,optionText:A["aria-label"]||A.textValue||"",isSelected:e}))}V.current=I,j.current=z});let L=sd(t.collection),O=(0,c.useRef)(L),U=(0,c.useRef)(t.isOpen);(0,c.useEffect)(()=>{let e=t.isOpen!==U.current&&(null==t.selectionManager.focusedKey||eX());t.isOpen&&(e||L!==O.current)&&eE(g.format("countAnnouncement",{optionCount:L})),O.current=L,U.current=t.isOpen});let H=(0,c.useRef)(t.selectedKey);return(0,c.useEffect)(()=>{if(eX()&&t.isFocused&&t.selectedItem&&t.selectedKey!==H.current){let e=t.selectedItem["aria-label"]||t.selectedItem.textValue||"";eE(g.format("selectedAnnouncement",{optionText:e}))}H.current=t.selectedKey}),(0,c.useEffect)(()=>{if(t.isOpen)return s2([l.current,n.current].filter(e=>null!=e))},[t.isOpen,l,n]),nF(()=>{!A&&l.current&&((e=document)=>e.activeElement)(eR(l.current))===l.current&&oD(l.current,null)},[A]),nU(i,"react-aria-item-action",t.isOpen?()=>{t.close()}:void 0),{labelProps:$,buttonProps:{...f,...F,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:e=>{"touch"===e.pointerType&&(l.current?.focus(),t.toggle(null,"manual"))},onPressStart:e=>{"touch"!==e.pointerType&&(l.current?.focus(),t.toggle("keyboard"===e.pointerType||"virtual"===e.pointerType?"first":null,"manual"))},isDisabled:p||d},inputProps:N(R,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?y.id:void 0,"aria-autocomplete":"list","aria-activedescendant":A?function(e,t){let a=oT.get(e);if(!a)throw Error("Unknown list");return`${a.id}-option-${"string"==typeof t?t.replace(/\s*/g,""):""+t}`}(t,A.key):void 0,onTouchEnd:e=>{if(p||d)return;if(e.timeStamp-B.current<500){e.preventDefault(),l.current?.focus();return}let a=eT(e).getBoundingClientRect(),r=e.changedTouches[0],n=Math.ceil(a.left+.5*a.width),i=Math.ceil(a.top+.5*a.height);r.clientX===n&&r.clientY===i&&(e.preventDefault(),l.current?.focus(),t.toggle(null,"manual"),B.current=e.timeStamp)},autoCorrect:"off",spellCheck:"false"}),listBoxProps:N(y,K,{onAction:void 0,autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),valueProps:{id:C},descriptionProps:M,errorMessageProps:T,isInvalid:w,validationErrors:S,validationDetails:P}}({...z(e),label:b,inputRef:p,buttonRef:d,listBoxRef:g,popoverRef:f,name:"text"===n?r:void 0,validationBehavior:o},u),[$,R]=(0,c.useState)(null),M=(0,c.useCallback)(()=>{if(p.current&&!h.current){let e=d.current?.getBoundingClientRect(),t=p.current.getBoundingClientRect(),a=e?Math.min(e.left,t.left):t.left;R((e?Math.max(e.right,t.right):t.right)-a+"px")}},[d,p,R]);sV({ref:p,onResize:M});let T=(0,c.useMemo)(()=>({get current(){return h.current||p.current}}),[h,p]),A=(0,c.useMemo)(()=>({isOpen:u.isOpen,isDisabled:e.isDisabled||!1,isInvalid:P.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1}),[u.isOpen,e.isDisabled,P.isInvalid,e.isRequired,e.isReadOnly]),V=K({...e,values:A,defaultClassName:"react-aria-ComboBox"}),j=X(e,{global:!0});delete j.id;let O=[];if(r&&"key"===n){let t=Array.isArray(u.value)?u.value:[u.value];0===t.length&&(t=[null]),O=t.map((t,a)=>c.default.createElement("input",{key:a,type:"hidden",name:r,form:e.form,value:t??""}))}return c.default.createElement(F,{values:[[uA,u],[Z,{...k,ref:y}],[t7,{...v,ref:d,isPressed:u.isOpen}],[iw,{...x,ref:p}],[s0,u],[u$,{ref:f,triggerRef:T,scrollRef:g,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":$},clearContexts:uz}],[sE,{...D,ref:g}],[sS,u],[nf,{slots:{description:C,errorMessage:w}}],[ij,{ref:h,isInvalid:P.isInvalid,isDisabled:e.isDisabled||!1}],[lX,P],[uj,S]]},c.default.createElement(L.div,{...j,...V,ref:a,slot:e.slot||void 0,"data-focused":u.isFocused||void 0,"data-open":u.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-invalid":P.isInvalid||void 0,"data-required":e.isRequired||void 0},V.children,O))}let uj=(0,c.createContext)(null),uL=(0,d.cva)("font-medium text-gray-700 dark:text-gray-200",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}}}),uO=(0,c.forwardRef)(({size:e="md",className:t,children:a,...r},n)=>(0,u.jsx)(W,{ref:n,className:uL({size:e,className:t}),...r,children:a}));function uU(){return(0,u.jsx)("svg",{className:"size-4 shrink-0",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"})})}uO.displayName="Label",e.s(["Label",0,uO],107892),(0,c.forwardRef)(({label:e,labelClassName:t,placeholder:a,children:r,className:n,hideChevron:l=!1,popoverHeader:i,startIcon:o,isInvalid:s=!1,inputE2eId:d,...c},m)=>(0,u.jsxs)(uI,{ref:m,className:at("flex flex-col gap-1",n),...c,children:[e?(0,u.jsx)(uO,{className:t,children:e}):null,(0,u.jsxs)("div",{className:"relative flex items-center",children:[o?(0,u.jsx)("span",{className:"pointer-events-none absolute left-0 flex w-8 items-center justify-center text-gray-400 dark:text-gray-500",children:o}):null,(0,u.jsx)(iE,{"data-e2e-id":d,placeholder:a,className:at("w-full border border-gray-300 rounded-lg pl-3 h-9 bg-white text-sm text-gray-900 outline-none",o?"pl-8":"pl-3",l?"pr-3":"pr-8",s&&"border-red-500 data-[focused]:border-red-500 data-[focused]:ring-red-500 dark:border-red-500","data-[focused]:border-blue-600 data-[focused]:ring-1 data-[focused]:ring-blue-600","data-disabled:bg-gray-100 data-disabled:opacity-60 data-disabled:cursor-not-allowed","placeholder:text-gray-400","dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100","dark:placeholder:text-gray-500","dark:data-[focused]:border-blue-400 dark:data-[focused]:ring-blue-400","dark:data-disabled:bg-gray-900")}),l?null:(0,u.jsx)(t9,{className:"absolute right-0 flex items-center justify-center w-8 h-9 text-gray-400 cursor-pointer data-pressed:text-gray-600 dark:text-gray-500 dark:data-pressed:text-gray-300",children:(0,u.jsx)(uU,{})})]}),(0,u.jsxs)(uN,{className:at("w-[var(--trigger-width)] bg-white border border-gray-200 rounded-xl shadow-lg overflow-hidden max-h-72","dark:bg-gray-900 dark:border-gray-700","data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95","data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95","origin-top duration-150"),children:[i,(0,u.jsx)(sP,{className:"p-1 outline-none overflow-auto max-h-60",children:r})]})]})).displayName="ComboBox";let uH=["day","month","year"],uZ={hour:1,minute:2,second:3};function uW(e){let{state:t}
12=e,{containerProps:a,inputProps:r}=function(e,t){let{autoComplete:a,isDisabled:r,name:n}=e,{visuallyHiddenProps:l}=lI({style:{position:"fixed",top:0,left:0}}),i=60;"second"===t.granularity?i=1:"hour"===t.granularity&&(i=3600);let o="";t.value&&(o="day"===t.granularity?rH(t.value).toString():rZ("timeZone"in t.value?r_(t.value,r$()):t.value).toString());let s="day"===t.granularity?"date":"datetime-local",u=["hour","minute","second"],d=0;return u.includes(t.granularity)&&(d=uZ[t.granularity],u=u.slice(0,d)),{containerProps:{...l,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:a,disabled:r,type:s,form:"",name:n,step:i,value:o,onChange:e=>{let a=eT(e).value.toString();if(a)try{let e=function(e){let t=e.match(nr);if(!t){if(nn.test(e))throw Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date time string: "+e)}let a=nl(t[1],-9999,9999),r=new nm(a<1?"BC":"AD",a<1?-a+1:a,nl(t[2],1,12),1,t[4]?nl(t[4],0,23):0,t[5]?nl(t[5],0,59):0,t[6]?nl(t[6],0,59):0,t[7]?1e3*nl(t[7],0,1/0):0);return r.day=nl(t[3],0,r.calendar.getDaysInMonth(r)),r}(a);if("day"===t.granularity&&(e=function(e){let t=e.match(na);if(!t){if(nn.test(e))throw Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date string: "+e)}let a=new nd(nl(t[1],0,9999),nl(t[2],1,12),1);return a.day=nl(t[3],1,a.calendar.getDaysInMonth(a)),a}(a)),"setSegment"in t)for(let a in e)uH.includes(a)&&t.setSegment(a,e[a]),u.includes(a)&&t.setSegment(a,e[a]);t.setValue(e)}catch{}}}}}({...e},t);return c.default.createElement("div",{...a,"data-testid":"hidden-dateinput-container"},c.default.createElement("input",r))}var uG={};function uq(e,t,a){let{direction:r}=ed(),n=(0,c.useMemo)(()=>o_(t),[t]),l=()=>{if(!t.current)return;let e=window.event?eT(window.event):null,a=oq(t.current,{tabbable:!0});if(e&&(a.currentNode=e,e=a.previousNode()),!e){let t;do(t=a.lastChild())&&(e=t);while(t)}for(;e?.hasAttribute("data-placeholder");){let t=a.previousNode();if(t&&t.hasAttribute("data-placeholder"))e=t;else break}e&&e.focus()},{pressProps:i}=tW({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&l()},onPress(e){("touch"===e.pointerType||"pen"===e.pointerType)&&l()}});return N(i,{onKeyDown:l=>{if(eM(l.currentTarget,eT(l))&&(l.altKey&&("ArrowDown"===l.key||"ArrowUp"===l.key)&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!a))switch(l.key){case"ArrowLeft":if(l.preventDefault(),l.stopPropagation(),"rtl"===r){if(t.current){let e=eT(l),a=u_(t.current,e.getBoundingClientRect().left,-1);a&&a.focus()}}else n.focusPrevious();break;case"ArrowRight":if(l.preventDefault(),l.stopPropagation(),"rtl"===r){if(t.current){let e=eT(l),a=u_(t.current,e.getBoundingClientRect().left,1);a&&a.focus()}}else n.focusNext()}}})}function u_(e,t,a){let r=oq(e,{tabbable:!0}),n=r.nextNode(),l=null,i=1/0;for(;n;){let e=n.getBoundingClientRect().left-t,o=Math.abs(e);Math.sign(e)===a&&o<i&&(l=n,i=o),n=r.nextNode()}return l}uG={"ar-AE":{calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,selectedTimeDescription:e=>`\u{627}\u{644}\u{648}\u{642}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"},"bg-BG":{calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{434}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{432}\u{440}\u{435}\u{43C}\u{435}
12: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"},"cs-CZ":{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\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.startDate} a\u{17E} ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xfd \u{10D}as: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"},"da-DK":{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"},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xe4hlte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,selectedTimeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"},"en-US":{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}`},"es-ES":{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"},"et-EE":{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\xe4ev: ${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"},"fi-FI":{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\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.startDate} \u{2013} ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xa0: ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"},"he-IL":{calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,selectedTimeDescription:e=>`\u{5D6}\u{5DE}\u{5DF} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"}
12,"hr-HR":{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"},"hu-HU":{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\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.startDate}\u{2013}${e.endDate}`,selectedTimeDescription:e=>`Kijel\xf6lt id\u{151}: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"},"it-IT":{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"},"ja-JP":{calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.startDate} \u{304B}\u{3089} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{6642}\u{9593} : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"},"ko-KR":{calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\u{C120}\u{D0DD} \u{C2DC}\u{AC04}: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"},"lt-LT":{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"},"lv-LV":{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\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: no ${e.startDate} l\u{12B}dz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u{12B}tais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"},"nb-NO":{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\xe5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"},"nl-NL":{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"},"pl-PL":{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"},"pt-BR":{calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endD
12ate:"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"},"pt-PT":{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"},"ro-RO":{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\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u{103}: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"},"ru-RU":{calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: \u{441} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{435} \u{432}\u{440}\u{435}\u{43C}\u{44F}: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"},"sk-SK":{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\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xfd \u{10D}as: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"},"sl-SI":{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\u{10D}je: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u{10D}as: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"},"sr-SP":{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:"година"},"sv-SE":{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"},"tr-TR":{calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xe7ilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"},"uk-UA":{calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{2014} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{447}\u{430}\u{441}
12: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"},"zh-CN":{calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65F6}\u{95F4}\u{FF1A}${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"},"zh-TW":{calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{6642}\u{9593}\u{FF1A}${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"}};let uY=new WeakMap,uJ="__reactAriaDateFieldRole",uQ="__reactAriaDateFieldFocusManager";function uX(e,t,a){var r;let n,{isInvalid:l,validationErrors:i,validationDetails:o}=t.displayValidation,{labelProps:s,fieldProps:u,descriptionProps:d,errorMessageProps:m}=il({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||i}),p=(0,c.useRef)(null),{focusWithinProps:h}=t0({...e,onFocusWithin(a){p.current=t.value,e.onFocus?.(a)},onBlurWithin:a=>{t.confirmPlaceholder(),t.value!==p.current&&t.commitValidation(),e.onBlur?.(a)},onFocusWithinChange:e.onFocusChange}),g=rn((r=uG)&&r.__esModule?r.default:r,"@react-aria/datepicker"),f="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",y="hour"===t.maxGranularity?"time":"date",b=nO(t.value?g.format(f,{[y]:t.formatValue({month:"long"})}):""),v="presentation"===e[uJ]?u["aria-describedby"]:[b["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[uQ],D=(0,c.useMemo)(()=>x||o_(a),[x,a]),k=uq(t,a,"presentation"===e[uJ]);uY.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:D});let C=(0,c.useRef)(e.autoFocus);n="presentation"===e[uJ]?{role:"presentation"}:N(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":v}),(0,c.useEffect)(()=>{C.current&&D.focusFirst(),C.current=!1},[D]),ii(e.inputRef,t.defaultValue,t.setValue),io({...e,focus(){D.focusFirst()}},t,e.inputRef);let w={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(w.type="text",w.hidden=!0,w.required=e.isRequired,w.onChange=()=>{});let E=X(e);return{labelProps:{...s,onClick:()=>{D.focusFirst()}},fieldProps:N(E,n,k,h,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)},style:{unicodeBidi:"isolate"}}),inputProps:w,descriptionProps:d,errorMessageProps:m,isInvalid:l,validationErrors:i,validationDetails:o}}class u0{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}}var u1={};let u4=new a9((s=u1={"ar-AE":{rangeOverflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.maxValue} \u{623}\u{648} \u{642}\u{628}\u{644} \u{630}\u{644}\u{643}.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.minValue} \u{623}\u{648} \u{628}\u{639}\u{62F} \u{630}\u{644}\u{643}.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.maxValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{440}\u{430}\u{43D}\u{43D}\u{430}.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.minValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{43A}\u{44A}\u{441}\u{43D}\u{43E}.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo d\u{159}\xedv\u{11B}j\u{161}\xed.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozd\u{11B}j\u{161}\xed.`,unavailableDate:"Vybrané datum není k dispozici."},"da-DK":{rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."},"el-GR":{rangeOverflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.maxValue} \u{3AE} \u{3C0}\u{3B1}\u{3BB}\u{3B1}\u{3B9}\u{3CC}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.minValue} \u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3B3}\u{3B5}\u{3BD}\u{3AD}\u{3C3}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{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."},"es-ES":{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}
12 o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."},"fr-FR":{rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."},"he-IL":{rangeOverflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.maxValue} \u{5D0}\u{5D5} \u{5DE}\u{5D5}\u{5E7}\u{5D3}\u{5DD} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.minValue} \u{5D0}\u{5D5} \u{5DE}\u{5D0}\u{5D5}\u{5D7}\u{5E8} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{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."},"hu-HU":{rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9s\u{151}bbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."},"it-IT":{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."},"ja-JP":{rangeOverflow:e=>`\u{5024}\u{306F} ${e.maxValue} \u{4EE5}\u{4E0B}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`\u{5024}\u{306F} ${e.minValue} \u{4EE5}\u{4E0A}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`\u{AC12}\u{C740} ${e.maxValue} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`\u{AC12}\u{C740} ${e.minValue} \u{C774}\u{D6C4}\u{C5EC}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.maxValue} arba ankstesn\u{117}.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.minValue} arba naujesn\u{117}.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.maxValue} vai agr\u{101}kai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.minValue} vai v\u{113}l\u{101}kai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{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."},"pl-PL":{rangeOverflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.maxValue} lub wcze\u{15B}niejsz\u{105}.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.minValue} lub p\xf3\u{17A}niejsz\u{105}.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{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."},"pt-PT":{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."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie s\u{103} fie ${e.maxValue} sau anterioar\u{103}.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie s\u{103} fie ${e.minValue} sau ulterioar\u{103}.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{43F}\u{43E}\u{437}\u{436}\u{435} ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{44C}\u{448}\u{435} ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xed by\u{165} ${e.maxValue} alebo skor\u{161}ia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota mus\xed by\u{165} ${e.minValue} alebo neskor\u{161}ia.`,unavailableDate:"Vybratý dátum je nedostupný."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u{161}a.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u{161}a.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{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."},"sv-SE":{rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."},"tr-TR":{rangeOverflow:e=>`De\u{11F}er, ${e.maxValue} veya \xf6ncesi olmal\u{131}d\u{131}r.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`De\u{11F}er, ${e.minValue} veya sonras\u{131} olmal\u{131}d\u{131}r.`,unavailableDate:"Seçilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{43F}\u{456}\u{437}\u{43D}\u{456}\u{448}\u{435} ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{456}\u{448}\u{435} ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{65E5}\u{671F}\u{3002}`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{65E5}\u{671F}\u{3002}`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{3002}`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{3002}`,unavailableDate:"所選日期無法使用。"}},s.__esModule)?s.default:s);function u3(){let e="u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function u5(e,t,a,r,n){let l=null!=e&&null!=a&&e.compare(a)>0,i=null!=e&&null!=t&&0>e.compare(t),o=null!=e&&r?.(e)||!1,s=l||i||o,u=[];
12if(s){let e=u3(),r=new rt(e,a9.getGlobalDictionaryForPackage("@react-stately/datepicker")||u4),s=new nD(e,u7({},n)),d=s.resolvedOptions().timeZone;i&&null!=t&&u.push(r.format("rangeUnderflow",{minValue:s.format(t.toDate(d))})),l&&null!=a&&u.push(r.format("rangeOverflow",{maxValue:s.format(a.toDate(d))})),o&&u.push(r.format("unavailableDate"))}return{isInvalid:s,validationErrors:u,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:l,rangeUnderflow:i,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}let u2={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},u6={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function u7(e,t){e={...t.shouldForceLeadingZeros?u6:u2,...e};let a=t.granularity||"minute",r=Object.keys(e),n=r.indexOf(t.maxGranularity??"year");n<0&&(n=0);let l=r.indexOf(a);if(l<0&&(l=2),n>l)throw Error("maxGranularity must be greater than granularity");let i=r.slice(n,l+1).reduce((t,a)=>(t[a]=e[a],t),{});return null!=t.hourCycle&&(i.hour12=12===t.hourCycle),i.timeZone=t.timeZone||"UTC",("hour"===a||"minute"===a||"second"===a)&&t.timeZone&&!t.hideTimeZone&&(i.timeZoneName="short"),t.showEra&&0===n&&(i.era="short"),i}function u9(e){return e&&"hour"in e?e:new nc}function u8(e,t){return null===e?null:e?rG(e,t):void 0}function de(e,t){let a=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw Error("Invalid granularity "+t+" for value "+e.toString());let[n,l]=(0,c.useState)([r,a]);return e&&(n[0]!==r||n[1]!==a)&&l([r,a]),t||(t=e?r:n[0]),[t,e?a:n[1]]}let dt=new a9({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"},is:{year:"áááá",month:"mm",day:"dd"},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"},nb:{year:"åååå",month:"mm",day:"dd"},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"}
12,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:"дд"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},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");class da{constructor(e,t,a){if(this.era=a?.era??null,this.calendar=e,this.year=a?.year??null,this.month=a?.month??null,this.day=a?.day??null,this.hour=a?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=a?.minute??null,this.second=a?.second??null,this.millisecond=a?.millisecond??null,this.offset="offset"in(a??{})?a.offset:null,null!=this.hour){let[e,a]=dn(this.hour,t);this.dayPeriod=e,this.hour=a}}copy(){let e=new da(this.calendar,this.hourCycle);return e.era=this.era,e.year=this.year,e.month=this.month,e.day=this.day,e.hour=this.hour,e.dayPeriod=this.dayPeriod,e.minute=this.minute,e.second=this.second,e.millisecond=this.millisecond,e.offset=this.offset,e}isComplete(e){return e.every(e=>null!=this[e])}validate(e,t){return t.every(t=>{if(("hour"===t||"dayPeriod"===t)&&"hour"in e){let[t,a]=dn(e.hour,this.hourCycle);return this.dayPeriod===t&&this.hour===a}return this[t]===e[t]})}isCleared(e){return e.every(e=>null===this[e])}set(e,t,a){let r=this.copy();return r[e]=t,"hour"===e&&null==r.dayPeriod&&"hour"in a&&(r.dayPeriod=dn(a.hour,this.hourCycle)[0]),"year"===e&&null==r.era&&(r.era=a.era),"second"!==e&&"literal"!==e&&"timeZoneName"!==e&&(r.offset=null),r}clear(e){let t=this.copy();return t[e]=null,"year"===e&&(t.era=null),t.offset=null,t}cycle(e,t,a,r){let n=this.copy();if(null==n[e]&&"dayPeriod"!==e&&"era"!==e){if("hour"===e&&"hour"in a){let[e,t]=dn(a.hour,this.hourCycle);n.dayPeriod=e,n.hour=t}else n[e]=a[e];return"year"===e&&null==n.era&&(n.era=a.era),n}switch(e){case"era":{let e=this.calendar.getEras(),a=e.indexOf(n.era);a=dr(a,t,0,e.length-1),n.era=e[a];break}case"year":{let r=new nd(this.calendar,this.era??a.era,this.year??a.year,this.month??1,this.day??1);n.era=(r=r.cycle(e,t,{round:"year"===e})).era,n.year=r.year;break}case"month":n.month=dr(n.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case"day":n.day=dr(n.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let e=r.some(e=>["year","month","day"].includes(e));if("timeZone"in a&&(!e||null!=n.year&&null!=n.month&&null!=n.day)){let e=this.toValue(a),[r,l]=dn((e=e.cycle("hour",t,{hourCycle:"h12"===this.hourCycle?12:24,round:!1})).hour,this.hourCycle);n.hour=l,n.dayPeriod=r,n.offset=e.offset}else{let e=n.hour??0,r=this.getSegmentLimits("hour");n.hour=dr(e,t,r.minValue,r.maxValue),null==n.dayPeriod&&"hour"in a&&(n.dayPeriod=dn(a.hour,this.hourCycle)[0])}break}case"dayPeriod":n.dayPeriod=dr(n.dayPeriod??0,t,0,1);break;case"minute":n.minute=dr(n.minute??0,t,0,59,!0);break;case"second":n.second=dr(n.second??0,t,0,59,!0)}return n}toValue(e){if(!("hour"in e))return e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day});{let t=this.hour;null!=t?t=function(e,t,a){switch(a){case"h11":1===t&&(e+=12);break;case"h12":12===e&&(e=0),1===t&&(e+=12);break;case"h24":e-=1}return e}(t,this.dayPeriod??0,this.hourCycle):("h12"===this.hourCycle||"h11"===this.hourCycle)&&(t=12*(1===this.dayPeriod));let a=e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day,hour:t??e.hour,minute:this.minute??e.minute,second:this.second??e.second,millisecond:this.millisecond??e.millisecond});return"offset"in a&&null!=this.offset&&a.offset!==this.offset&&(a=a.add({milliseconds:a.offset-this.offset})),a}}getSegmentLimits(e){switch(e){case"era":{let e=this.calendar.getEras();return{value:null!=this.era?e.indexOf(this.era):e.length-1,minValue:0,maxValue:e.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let e=0,t=23;return"h12"===this.hourCycle?(e=1,t=12):"h11"===this.hourCycle&&(e=0,t=11),{value:this.hour,minValue:e,maxValue:t}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function dr(e,t,a,r,n=!1){if(n){(e+=Math.sign(t))<a&&(e=r);let n=Math.abs(t);(e=t>0?Math.ceil(e/n)*n:Math.floor(e/n)*n)>r&&(e=a)}else(e+=t)<a?e=r-(a-e-1):e>r&&(e=a+(e-r-1));return e}function dn(e,t){let a=+(e>=12);switch(t){case"h11":e>=12&&(e-=12);break;case"h12":0===e?e=12:e>12&&(e-=12);break;case"h23":a=null;break;case"h24":e+=1,a=null}return[a,e]}let dl={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},di={year:5,month:2,day:7,hour:2,minute:15,second:15},ds={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function du(e){let{locale:t,createCalendar:a,hideTimeZone:r,isDisabled:n=!1,isReadOnly:l=!1,isRequired:i=!1,minValue:o,maxValue:s,isDateUnavailable:u}=e,d=e.value||e.defaultValue||e.placeholderValue||null,[m,p]=de(d,e.granularity),h=p||"UTC";if(d&&!(m in d))throw Error("Invalid granularity "+m+" for value "+d.toString());let[g,f]=(0,c.useMemo)(()=>{let r=new nD(t,{dateStyle:"short",timeStyle:"short",hour12:null!=e.hourCycle?12===e.hourCycle:void 0}).resolvedOptions();return[a(r.calendar),r.hourCycle]},[t,e.hourCycle,a]),[y,b]=lN(e.value,e.defaultValue??null,e.onChange),[v]=(0,c.useState)(y),x=(0,c.useMemo)(()=>u8(y,g)??null,[y,g]),[D,k]=(0,c.useState)(()=>new da(g,f,x)),C="gregory"===g.identifier&&"BC"===D.era,w=(0,c.useMemo)(()=>({granularity:m,maxGranularity:e.maxGranularity??"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:C,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,p,r,C]),E=(0,c.useMemo)(()=>u7({},w),[w]),S=(0,c.useMemo)(()=>new nD(t,E),[t,E]),P=(0,c.useMemo)(()=>S.resolvedOptions(),[S]),$=(0,c.useMemo)(()=>(function(e,t,a,r){if(e)return u8(e,a);let n=rG(rC(r??r$()).set({hour:0,minute:0,second:0,millisecond:0}),a);return"year"===t||"month"===t||"day"===t?rH(n):r?n:rZ(n)}
12)(e.placeholderValue,m,g,p),[e.placeholderValue,m,g,p]),R=(0,c.useMemo)(()=>{let t="h11"===f||"h12"===f,a=["era","year","month","day","hour",...t?["dayPeriod"]:[],"minute","second"],r=a.indexOf(e.maxGranularity||"era"),n=a.indexOf("hour"===m&&t?"dayPeriod":m);return a.slice(r,n+1)},[e.maxGranularity,m,f]),[N,M]=(0,c.useState)(x),[T,F]=(0,c.useState)(g),[K,B]=(0,c.useState)(f);x===N&&f===K&&rx(g,T)||(D=new da(g,f,x),M(x),F(g),B(f),k(D));let A=t=>{if(!e.isDisabled&&!e.isReadOnly)if(null==t||t instanceof da&&t.isCleared(R))k(new da(g,f,x)),b(null);else if(t instanceof da){if(t.isComplete(R)){let e=t.toValue(x??$);if(t.validate(e,R)){let t=rG(e,d?.calendar||new rf);if(!y||0!==t.compare(y)){k(new da(g,f,x)),b(t);return}}}k(t)}else t=rG(t,d?.calendar||new rf),k(new da(g,f,x)),b(t)},I=(0,c.useMemo)(()=>D.toValue(x??$).toDate(h),[D,h,x,$]),z=(0,c.useMemo)(()=>(function(e,t,a,r,n,l,i){let o=["hour","minute","second"],s=a.formatToParts(e),u=new eg(l,{useGrouping:!1}),d=new eg(l,{useGrouping:!1,minimumIntegerDigits:2});for(let e of s)if("year"===e.type||"month"===e.type||"day"===e.type||"hour"===e.type){let a=t[e.type]??0;"2-digit"===r[e.type]?e.value=d.format(a):e.value=u.format(a)}let c=[];for(let e of s){var m;let a=ds[e.type]||e.type,r=dl[a];"era"===a&&1===n.getEras().length&&(r=!1);let s=dl[a]&&null==t[e.type],u=dl[a]?(m=e.value,"era"===a||"dayPeriod"===a?m:"year"===a||"month"===a||"day"===a?dt.getStringForLocale(a,l):"––"):null,d={type:a,text:s?u:e.value,...t.getSegmentLimits(a),isPlaceholder:s,placeholder:u,isEditable:r};"hour"===a?(c.push({type:"literal",text:"⁦",isPlaceholder:!1,placeholder:"",isEditable:!1}),c.push(d),a===i&&c.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):o.includes(a)&&a===i?(c.push(d),c.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):c.push(d)}return c})(I,D,S,P,g,t,m),[I,S,P,D,g,t,m]),V=(e,t)=>{A(D.cycle(e,t,$,R))},j=(0,c.useMemo)(()=>u5(y,o,s,u,w),[y,o,s,u,w]),L=l7({...e,value:y,builtinValidation:j}),O=L.displayValidation.isInvalid,U=e.validationState||(O?"invalid":null);return{...L,value:x,defaultValue:e.defaultValue??v,dateValue:I,calendar:g,setValue:A,segments:z,dateFormatter:S,validationState:U,isInvalid:O,granularity:m,maxGranularity:e.maxGranularity??"year",isDisabled:n,isReadOnly:l,isRequired:i,increment(e){V(e,1)},decrement(e){V(e,-1)},incrementPage(e){V(e,di[e]||1)},decrementPage(e){V(e,-(di[e]||1))},incrementToMax(e){let t="hour"===e&&"h12"===f?11:D.getSegmentLimits(e).maxValue;A(D.set(e,t,$))},decrementToMin(e){let t="hour"===e&&"h12"===f?12:D.getSegmentLimits(e).minValue;A(D.set(e,t,$))},setSegment(e,t){A(D.set(e,t,$))},confirmPlaceholder(){if(!e.isDisabled&&!e.isReadOnly&&D.isComplete(R)){let e=rG(D.toValue(x??$),d?.calendar||new rf);y&&0===e.compare(y)||b(e),k(new da(g,f,x))}},clearSegment(e){let t=D;"timeZoneName"!==e&&"literal"!==e&&(t=D.clear(e)),A(t)},formatValue:e=>x?new nD(t,u7(e,w)).format(I):"",getDateFormatter:(e,t)=>new nD(e,u7({},{...w,...t}))}}function dd(e,t=rw(r$())){return e?"day"in e?e:rZ(t,e):null}let dc=(0,c.createContext)(null),dm=(0,c.createContext)(null),dp=(0,c.createContext)(null),dh=(0,c.createContext)(null),dg=(0,c.forwardRef)(function(e,t){let a;[e,t]=A(e,t,dm);let{validationBehavior:r}=B(ia)||{},n=e.validationBehavior??r??"native",{locale:l}=ed(),i=function(e){let{placeholderValue:t=new nc,minValue:a,maxValue:r,defaultValue:n,granularity:l,validate:i}=e,[o,s]=lN(e.value,n??null,e.onChange),u=o||t,d=u&&"day"in u?u:void 0,m=n&&"timeZone"in n?n.timeZone:void 0,p=(0,c.useMemo)(()=>{let e=u&&"timeZone"in u?u.timeZone:void 0;return(e||m)&&t?rq(dd(t),e||m):dd(t)},[t,u,m]),h=(0,c.useMemo)(()=>dd(a,d),[a,d]),g=(0,c.useMemo)(()=>dd(r,d),[r,d]),f=(0,c.useMemo)(()=>o&&"day"in o?rW(o):o,[o]),y=(0,c.useMemo)(()=>null==o?null:dd(o),[o]),b=(0,c.useMemo)(()=>null==n?null:dd(n),[n]);return{...du({...e,value:y,defaultValue:b,minValue:h,maxValue:g,onChange:e=>{s(d||m?e:e&&rW(e))},granularity:l||"minute",maxGranularity:"hour",placeholderValue:p??void 0,createCalendar:()=>new rf,validate:(0,c.useCallback)(()=>i?.(o),[i,o])}),timeValue:f}}({...e,locale:l,validationBehavior:n}),o=(0,c.useRef)(null),[s,u]=I(!e["aria-label"]&&!e["aria-labelledby"]),d=(0,c.useRef)(null),{labelProps:m,fieldProps:p,inputProps:h,descriptionProps:g,errorMessageProps:f,...y}
12=((a=uX({...z(e),label:u,inputRef:d,validationBehavior:n},i,o)).inputProps.value=i.timeValue?.toString()||"",a),b=K({...e,values:{state:i,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TimeField"}),v=X(e,{global:!0});return delete v.id,c.default.createElement(F,{values:[[dh,i],[ij,{...p,ref:o,isInvalid:i.isInvalid,isDisabled:i.isDisabled}],[iw,{...h,ref:d}],[Z,{...m,ref:s,elementType:"span"}],[nf,{slots:{description:g,errorMessage:f}}],[lX,y]]},c.default.createElement(L.div,{...v,...b,ref:t,slot:e.slot||void 0,"data-invalid":i.isInvalid||void 0,"data-disabled":i.isDisabled||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":e.isRequired||void 0}))}),df=(0,c.forwardRef)(function(e,t){let a=(0,c.useContext)(dp),r=(0,c.useContext)(dh);return a||r?c.default.createElement(db,{...e,ref:t}):c.default.createElement(dy,{...e,ref:t})}),dy=(0,c.forwardRef)((e,t)=>{let[a,r]=A({slot:e.slot},t,dc),{locale:n}=ed(),l=du({...a,locale:n,createCalendar:lD}),i=(0,c.useRef)(null),{fieldProps:o,inputProps:s}=uX({...a,inputRef:i},l,r);return c.default.createElement(F,{values:[[dp,l],[iw,{...s,ref:i}],[ij,{...o,ref:r,isInvalid:l.isInvalid,isDisabled:l.isDisabled}]]},c.default.createElement(db,e))}),db=(0,c.forwardRef)((e,t)=>{let{className:a,children:r}=e,n=(0,c.useContext)(dp),l=(0,c.useContext)(dh),i=n??l;return c.default.createElement(c.default.Fragment,null,c.default.createElement(iL,{...e,ref:t,slot:e.slot||void 0,className:a??"react-aria-DateInput",isReadOnly:i.isReadOnly,isInvalid:i.isInvalid,isDisabled:i.isDisabled},i.segments.map((e,t)=>(0,c.cloneElement)(r(e),{key:t}))),c.default.createElement(iE,{className:""}))}),dv=(0,c.forwardRef)(function({segment:e,...t},a){let r=(0,c.useContext)(dp),n=(0,c.useContext)(dh),l=r??n,i=M(a),{segmentProps:o}=function(e,t,a){let r=(0,c.useRef)(""),{locale:n,direction:l}=ed(),i=function(){var e;let{locale:t}=ed(),a=rr((e=uG)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,c.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new u0(t,a)}},[t,a])}(),{ariaLabel:o,ariaLabelledBy:s,ariaDescribedBy:u,focusManager:d}=uY.get(t),m=e.isPlaceholder?"":e.text,h=(0,c.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),g=nS({month:"long",timeZone:h.timeZone}),f=nS({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(m=f.format(t.dateValue));else{let e=g.format(t.dateValue);m=e!==m?`${m} \u{2013} ${e}`:e}let{spinButtonProps:y}=i_({value:e.value??void 0,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{r.current="",t.decrementToMin(e.type)}}),b=(0,c.useMemo)(()=>new i0(n,{maximumFractionDigits:0}),[n]),v=()=>{if(e.text===e.placeholder&&d.focusPrevious(),!b.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)("dayPeriod"===e.type||"era"===e.type)&&t.clearSegment(e.type);else{let a=e.text.slice(0,-1),n=b.parse(a);0===(a=0===n?"":a).length||0===n?t.clearSegment(e.type):t.setSegment(e.type,n),r.current=a}},{startsWith:x}=uK({sensitivity:"base"}),D=nS({hour:"numeric",hour12:!0}),k=(0,c.useMemo)(()=>{let e=new Date;return e.setHours(0),D.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[D]),C=(0,c.useMemo)(()=>{let e=new Date;return e.setHours(12),D.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[D]),w=nS({year:"numeric",era:"narrow",timeZone:"UTC"}),S=(0,c.useMemo)(()=>{if("era"!==e.type)return[];let a=rG(new nd(1,1,1),t.calendar),r=t.calendar.getEras().map(e=>{let t=a.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:w.formatToParts(t).find(e=>"era"===e.type).value}}),n=function(e){e.sort();let t=e[0],a=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==a[e])return e;return 0}(r.map(e=>e.formatted));if(n)for(let e of r)e.formatted=e.formatted.slice(n);return r}
12,[w,t.calendar,e.type]),P=a=>{if(t.isDisabled||t.isReadOnly)return;let n=r.current+a;switch(e.type){case"dayPeriod":if(x(k,a))t.setSegment("dayPeriod",0);else if(x(C,a))t.setSegment("dayPeriod",1);else break;d.focusNext();break;case"era":{let e=S.find(e=>x(e.formatted,a));e&&(t.setSegment("era",e.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!b.isValidPartialNumber(n))return;let l=b.parse(n),i=l;if(void 0!==e.maxValue&&l>e.maxValue&&(i=b.parse(a)),isNaN(l))return;t.setSegment(e.type,i),void 0!==e.maxValue&&(Number(l+"0")>e.maxValue||n.length>=String(e.maxValue).length)?(r.current="",d.focusNext()):r.current=n}}};nU((0,c.useRef)("u">typeof document?document:null),"selectionchange",()=>{let e=window.getSelection();e?.anchorNode&&eM(a.current,e?.anchorNode)&&e.collapse(a.current)});let $=(0,c.useRef)("");nU(a,"beforeinput",r=>{if(a.current)switch(r.preventDefault(),r.inputType){case"deleteContentBackward":case"deleteContentForward":b.isValidPartialNumber(e.text)&&!t.isReadOnly&&v();break;case"insertCompositionText":$.current=a.current.textContent,a.current.textContent=a.current.textContent;break;default:null!=r.data&&P(r.data)}}),nU(a,"input",e=>{let{inputType:t,data:r}=e;"insertCompositionText"===t&&(a.current&&(a.current.textContent=$.current),null!=r&&(x(k,r)||x(C,r))&&P(r))}),p(()=>{let e=a.current;return()=>{((e=document)=>e.activeElement)()===e&&(d.focusPrevious()||d.focusNext())}},[a,d]);let R=eQ()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e===(0,c.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])||t.isInvalid||(u=void 0);let M=E(),T=!t.isDisabled&&!t.isReadOnly&&e.isEditable,F="literal"===e.type?"":i.of(e.type),K=ee({"aria-label":`${F}${o?`, ${o}`:""}${s?", ":""}`,"aria-labelledby":s});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let B={caretColor:"transparent"};if("rtl"===l){B.unicodeBidi="embed";let t=h[e.type];("numeric"===t||"2-digit"===t)&&(B.direction="ltr")}return{segmentProps:N(y,K,{id:M,...R,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":u,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:T,suppressContentEditableWarning:T,spellCheck:T?"false":void 0,autoCorrect:T?"off":void 0,[parseInt(c.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:T?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!T?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(e_()?e.metaKey:e.ctrlKey)&&e.preventDefault(),!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey)switch(e.key){case"Backspace":case"Delete":e.preventDefault(),e.stopPropagation(),v()}},onFocus:()=>{r.current="",a.current&&nV(a.current,{containingElement:nA(a.current)});let e=window.getSelection();e?.collapse(a.current)},style:B,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(e,l,i),{focusProps:s,isFocused:u,isFocusVisible:d}=t1(),{hoverProps:m,isHovered:h}=t6({...t,isDisabled:l.isDisabled||"literal"===e.type}),g=K({...t,values:{...e,isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isHovered:h,isFocused:u,isFocusVisible:d},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return c.default.createElement(L.span,{...N(X(t,{global:!0}),o,s,m),...g,style:o.style,ref:i,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":l.isInvalid||void 0,"data-readonly":l.isReadOnly||void 0,"data-disabled":l.isDisabled||void 0,"data-type":e.type,"data-hovered":h||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0})});function dx(e){return e?.start!=null&&null!=e.end}let dD=(0,c.createContext)(null),dk=(0,c.createContext)(null),dC=(0,c.createContext)(null),dw=(0,c.createContext)(null),dE=[ij,t7,Z,nf],dS=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,dD);let{validationBehavior:a}=B(ia)||{},r=e.validationBehavior??a??"native",n=function(e){let t=sL(e),[a,r]=lN(e.value,e.defaultValue||null,e.onChange),[n]=(0,c.useState)(a),l=a||e.placeholderValue||null,[i,o]=de(l,e.granularity),s=null!=a?a.toDate(o??"UTC"):null,u="hour"===i||"minute"===i||"second"===i,d=e.shouldCloseOnSelect??!0,[m,p]=(0,c.useState)(null),[h,g]=(0,c.useState)(null);
12if(a&&(m=a,"hour"in a&&(h=a)),l&&!(i in l))throw Error("Invalid granularity "+i+" for value "+l.toString());let f=a?.calendar.identifier==="gregory"&&"BC"===a.era,y=(0,c.useMemo)(()=>({granularity:i,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:f}),[i,e.hourCycle,e.shouldForceLeadingZeros,o,e.hideTimeZone,f]),{minValue:b,maxValue:v,isDateUnavailable:x}=e,D=(0,c.useMemo)(()=>u5(a,b,v,x,y),[a,b,v,x,y]),k=l7({...e,value:a,builtinValidation:D}),C=k.displayValidation.isInvalid,w=e.validationState||(C?"invalid":null),E=(e,t)=>{r("timeZone"in t?t.set(rH(e)):rZ(e,t)),p(null),g(null),k.commitValidation()};return{...k,value:a,defaultValue:e.defaultValue??n,setValue:r,dateValue:m,timeValue:h,setDateValue:a=>{let n="function"==typeof d?d():d;u?h||n?E(a,h||u9(e.defaultValue||e.placeholderValue)):p(a):(r(a),k.commitValidation()),n&&t.setOpen(!1)},setTimeValue:e=>{m&&e?E(m,e):g(e)},granularity:i,hasTime:u,...t,setOpen(r){!r&&!a&&m&&u&&E(m,h||u9(e.defaultValue||e.placeholderValue)),t.setOpen(r)},validationState:w,isInvalid:C,formatValue:(e,t)=>s?new nD(e,u7(t,y)).format(s):"",getDateFormatter:(e,t)=>new nD(e,u7({},{...y,...t}))}}({...e,validationBehavior:r}),l=(0,c.useRef)(null),[i,o]=I(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:s,labelProps:u,fieldProps:d,buttonProps:m,dialogProps:p,calendarProps:h,descriptionProps:g,errorMessageProps:f,...y}=function(e,t,a){var r;let n=E(),l=E(),i=E(),o=rn((r=uG)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:s,validationErrors:u,validationDetails:d}=t.displayValidation,{labelProps:m,fieldProps:p,descriptionProps:h,errorMessageProps:g}=il({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||u}),f=uq(t,a),y=p["aria-labelledby"]||p.id,{locale:b}=ed(),v=t.formatValue(b,{month:"long"}),x=nO(v?o.format("selectedDateDescription",{date:v}):""),D=[x["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")||void 0,k=X(e),C=(0,c.useMemo)(()=>o_(a),[a]),w=(0,c.useRef)(!1),{focusWithinProps:S}=t0({...e,isDisabled:t.isOpen,onBlurWithin:t=>{eM(document.getElementById(l),t.relatedTarget)||(w.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{w.current||(w.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}});return{groupProps:N(k,f,p,x,S,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":y,"aria-describedby":D,onKeyDown(a){!t.isOpen&&e.onKeyDown&&e.onKeyDown(a)},onKeyUp(a){!t.isOpen&&e.onKeyUp&&e.onKeyUp(a)}}),labelProps:{...m,onClick:()=>{C.focusFirst()}},fieldProps:{...p,id:i,[uJ]:"presentation","aria-describedby":D,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[l6]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:h,errorMessageProps:g,buttonProps:{...x,id:n,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${n} ${y}`,"aria-describedby":D,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:l,"aria-labelledby":`${n} ${y}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:s,validationErrors:u,validationDetails:d}}({...z(e),label:o,validationBehavior:r},n,l),{focusProps:b,isFocused:v,isFocusVisible:x}=t1({within:!0}),D=K({...e,values:{state:n,isFocusWithin:v,isFocusVisible:x,isDisabled:e.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DatePicker"}),k=X(e,{global:!0});return delete k.id,c.default.createElement(F,{values:[[dC,n],[ij,{...s,ref:l,isInvalid:n.isInvalid}],[dc,d],[t7,{...m,isPressed:n.isOpen}],[Z,{...u,ref:i,elementType:"span"}],[lV,h],[s0,n],[u$,{trigger:"DatePicker",triggerRef:l,placement:"bottom start",clearContexts:dE}],[sX,p],[nf,{slots:{description:g,errorMessage:f}}],[lX,y]]},c.default.createElement(L.div,{...N(k,D,b),ref:t,slot:e.slot||void 0,"data-focus-within":v||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":x||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":n.isOpen||void 0}),c.default.createElement(uW,{autoComplete:e.autoComplete,name:e.name,isDisabled:e.isDisabled,state:n}))}),dP=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,dk);let{validationBehavior:a}=B(ia)||{},r=e.validationBehavior??a??"native",n=function(e){let t=sL(e),[a,r]=lN(e.value,e.defaultValue||null,e.onChange),[n]=(0,c.useState)(a),[l,i]=(0,c.useState)(()=>a||{start:null,end:null});null==a&&l.start&&l.end&&i(l={start:null,end:null});let o=a||l,s=e=>{i(o=e||{start:null,end:null}),dx(o)?r(o):r(null)},[u,d]=de(o?.start||o?.end||e.placeholderValue||null,e.granularity),m="hour"===u||"minute"===u||"second"===u,p=e.shouldCloseOnSelect??!0,[h,g]=(0,c.useState)(null),[f,y]=(0,c.useState)(null);o&&dx(o)&&(h=o,"hour"in o.start&&(f=o));let b=(e,t)=>{s({start:"timeZone"in t.start?t.start.set(rH(e.start)):rZ(e.start,t.start),end:"timeZone"in t.end?t.end.set(rH(e.end)):rZ(e.end,t.end)}),g(null),y(null),P.commitValidation()},v=a=>{let r="function"==typeof p?p():p;m?dx(a)&&(r||f?.start&&f?.end)?b(a,{start:f?.start||u9(e.placeholderValue),end:f?.end||u9(e.placeholderValue)}):g(a):dx(a)?(s(a),P.commitValidation()):g(a),r&&t.setOpen(!1)},x=e=>{dx(h)&&dx(e)?b(h,e):y(e)},D=o?.start?.calendar.identifier==="gregory"&&"BC"===o.start.era||o?.end?.calendar.identifier==="gregory"&&"BC"===o.end.era,k=(0,c.useMemo)(()=>({granularity:u,timeZone:d,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:D}),[u,e.hourCycle,e.shouldForceLeadingZeros,d,e.hideTimeZone,D]),{minValue:C,maxValue:w,isDateUnavailable:E}=e,S=(0,c.useMemo)(()=>{var e,t;let a;return e=o,t=E?e=>E(e,null):void 0,a=it(u5(e?.start??null,C,w,t,k),u5(e?.end??null,C,w,t,k)
12),e?.end!=null&&null!=e.start&&0>e.end.compare(e.start)&&(a=it(a,{isInvalid:!0,validationErrors:[(a9.getGlobalDictionaryForPackage("@react-stately/datepicker")||u4).getStringForLocale("rangeReversed",u3())],validationDetails:{...l4,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),a},[o,C,w,E,k]),P=l7({...e,value:a,name:(0,c.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:S}),$=P.displayValidation.isInvalid,R=e.validationState||($?"invalid":null);return{...P,value:o,defaultValue:e.defaultValue??n,setValue:s,dateRange:h,timeRange:f,granularity:u,hasTime:m,setDate(e,t){"start"===e?v({start:t,end:h?.end??null}):v({start:h?.start??null,end:t})},setTime(e,t){"start"===e?x({start:t,end:f?.end??null}):x({start:f?.start??null,end:t})},setDateTime(e,t){"start"===e?s({start:t,end:o?.end??null}):s({start:o?.start??null,end:t})},setDateRange:v,setTimeRange:x,...t,setOpen(a){!a&&!(o?.start&&o?.end)&&dx(h)&&m&&b(h,{start:f?.start||u9(e.placeholderValue),end:f?.end||u9(e.placeholderValue)}),t.setOpen(a)},validationState:R,isInvalid:$,formatValue(t,a){let r;if(!o||!o.start||!o.end)return null;let n="timeZone"in o.start?o.start.timeZone:void 0,l=e.granularity||(o.start&&"minute"in o.start?"minute":"day"),i="timeZone"in o.end?o.end.timeZone:void 0,s=e.granularity||(o.end&&"minute"in o.end?"minute":"day"),u=u7(a,{granularity:l,timeZone:n,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===o.start.calendar.identifier&&"BC"===o.start.era||"gregory"===o.end.calendar.identifier&&"BC"===o.end.era}),d=o.start.toDate(n||"UTC"),c=o.end.toDate(i||"UTC"),m=new nD(t,u);if(n===i&&l===s&&0!==o.start.compare(o.end)){try{let e=m.formatRangeToParts(d,c),t=-1;for(let a=0;a<e.length;a++){let r=e[a];if("shared"===r.source&&"literal"===r.type)t=a;else if("endRange"===r.source)break}let a="",r="";for(let n=0;n<e.length;n++)n<t?a+=e[n].value:n>t&&(r+=e[n].value);return{start:a,end:r}}catch{}r=m}else r=new nD(t,u7(a,{granularity:s,timeZone:i,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:m.format(d),end:r.format(c)}},getDateFormatter:(e,t)=>new nD(e,u7({},{...k,...t}))}}({...e,validationBehavior:r}),l=(0,c.useRef)(null),[i,o]=I(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:s,labelProps:u,startFieldProps:d,endFieldProps:m,buttonProps:p,dialogProps:h,calendarProps:g,descriptionProps:f,errorMessageProps:y,...b}=function(e,t,a){var r;let n=rn((r=uG)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:l,validationErrors:i,validationDetails:o}=t.displayValidation,{labelProps:s,fieldProps:u,descriptionProps:d,errorMessageProps:m}=il({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||i}),p=u["aria-labelledby"]||u.id,{locale:h}=ed(),g=t.formatValue(h,{month:"long"}),f=nO(g?n.format("selectedRangeDescription",{startDate:g.start,endDate:g.end}):""),y={"aria-label":n.format("startDate"),"aria-labelledby":p},b={"aria-label":n.format("endDate"),"aria-labelledby":p},v=E(),x=E(),D=uq(t,a),k=[f["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,C=(0,c.useMemo)(()=>o_(a,{accept:e=>e.id!==v}),[a,v]),w={[uQ]:C,[uJ]:"presentation","aria-describedby":k,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},S=X(e),P=(0,c.useRef)(!1),{focusWithinProps:$}=t0({...e,isDisabled:t.isOpen,onBlurWithin:t=>{eM(document.getElementById(x),t.relatedTarget)||(P.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{P.current||(P.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}}),R=(0,c.useRef)(l5),M=(0,c.useRef)(l5);return{groupProps:N(S,D,u,f,$,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":k,onKeyDown(a){!t.isOpen&&e.onKeyDown&&e.onKeyDown(a)},onKeyUp(a){!t.isOpen&&e.onKeyUp&&e.onKeyUp(a)}}),labelProps:{...s,onClick:()=>{C.focusFirst()}},buttonProps:{...f,id:v,"aria-haspopup":"dialog","aria-label":n.format("calendar"),"aria-labelledby":`${v} ${p}`,"aria-describedby":k,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:x,"aria-labelledby":`${v} ${p}`},startFieldProps:{...y,...w,value:t.value?.start??null,defaultValue:t.defaultValue?.start,onCh
12ange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[l6]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){R.current=e,t.updateValidation(it(e,M.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...b,...w,value:t.value?.end??null,defaultValue:t.defaultValue?.end,onChange:e=>t.setDateTime("end",e),name:e.endName,form:e.form,[l6]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){M.current=e,t.updateValidation(it(R.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:m,calendarProps:{autoFocus:!0,value:t.dateRange?.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:l,validationErrors:i,validationDetails:o}}({...z(e),label:o,validationBehavior:r},n,l),{focusProps:v,isFocused:x,isFocusVisible:D}=t1({within:!0}),k=K({...e,values:{state:n,isFocusWithin:x,isFocusVisible:D,isDisabled:e.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DateRangePicker"}),C=X(e,{global:!0});return delete C.id,c.default.createElement(F,{values:[[dw,n],[ij,{...s,ref:l,isInvalid:n.isInvalid}],[t7,{...p,isPressed:n.isOpen}],[Z,{...u,ref:i,elementType:"span"}],[lj,g],[s0,n],[u$,{trigger:"DateRangePicker",triggerRef:l,placement:"bottom start",clearContexts:dE}],[sX,h],[dc,{slots:{start:d,end:m}}],[nf,{slots:{description:f,errorMessage:y}}],[lX,b]]},c.default.createElement(L.div,{...N(C,k,v),ref:t,slot:e.slot||void 0,"data-focus-within":x||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":D||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":n.isOpen||void 0}))});function d$(){return(0,u.jsxs)(lU,{children:[(0,u.jsxs)("header",{className:"flex items-center justify-between mb-4",children:[(0,u.jsx)(t9,{slot:"previous",className:"p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-600 dark:text-gray-300",children:(0,u.jsx)("svg",{className:"size-5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z",clipRule:"evenodd"})})}),(0,u.jsx)(ng,{className:"text-sm font-semibold text-gray-900 dark:text-gray-100"}),(0,u.jsx)(t9,{slot:"next",className:"p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-600 dark:text-gray-300",children:(0,u.jsx)("svg",{className:"size-5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})})]}),(0,u.jsxs)(lW,{children:[(0,u.jsx)(lG,{children:e=>(0,u.jsx)(lq,{className:"text-xs font-medium text-gray-500 dark:text-gray-400 pb-2",children:e})}),(0,u.jsx)(l_,{children:e=>(0,u.jsx)(lY,{date:e,className:at("size-9 flex items-center justify-center rounded-full text-sm outline-none cursor-pointer","hover:bg-gray-100 dark:hover:bg-gray-700","data-selected:bg-blue-600 data-selected:text-white","data-disabled:text-gray-300 data-disabled:cursor-not-allowed","data-unavailable:text-gray-300 data-unavailable:line-through","text-gray-900 dark:text-gray-100","data-outside-month:text-gray-300 dark:data-outside-month:text-gray-600")})})]})]})}function dR(){return(0,u.jsx)("svg",{className:"size-5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M5.75 2a.75.75 0 01.75.75V4h7V2.75a.75.75 0 011.5 0V4h.25A2.75 2.75 0 0118 6.75v8.5A2.75 2.75 0 0115.25 18H4.75A2.75 2.75 0 012 15.25v-8.5A2.75 2.75 0 014.75 4H5V2.75A.75.75 0 015.75 2zm-1 5.5c-.69 0-1.25.56-1.25 1.25v6.5c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25v-6.5c0-.69-.56-1.25-1.25-1.25H4.75z",clipRule:"evenodd"})})}(0,c.forwardRef)(({label:e,className:t,...a},r)=>(0,u.jsxs)(dS,{ref:r,className:at("flex flex-col gap-1",t),...a,children:[e?(0,u.jsx)(W,{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:e}):null,(0,u.jsxs)(iL,{className:at("flex items-center border border-gray-300 rounded-lg bg-white px-3 py-2","data-focus-within:border-blue-600 data-focus-within:ring-1 data-focus-within:ring-blue-600","dark:bg-gray-800 dark:border-gray-600",aa),children:[(0,u.jsx)(df,{className:"flex flex-1 items-center text-sm",children:e=>(0,u.jsx)(dv,{segment:e,className:at("rounded outline-none text-gray-900 dark:text-gray-100","data-
12placeholder-shown:text-gray-400 dark:data-placeholder-shown:text-gray-500","data-focus:bg-gray-200 dark:data-focus:bg-gray-700")})}),(0,u.jsx)(t9,{className:"shrink-0 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",children:(0,u.jsx)(dR,{})})]}),(0,u.jsx)(uN,{className:at("bg-white border border-gray-200 rounded-xl shadow-lg p-4","dark:bg-gray-900 dark:border-gray-700","data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95","data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95","origin-top duration-150"),children:(0,u.jsx)(s1,{children:(0,u.jsx)(d$,{})})})]})).displayName="DatePicker",(0,c.forwardRef)(({label:e,className:t,...a},r)=>(0,u.jsxs)(dP,{ref:r,className:at("flex flex-col gap-1",t),...a,children:[e?(0,u.jsx)(W,{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:e}):null,(0,u.jsxs)(iL,{className:at("flex items-center gap-1 border border-gray-300 rounded-lg bg-white px-3 py-2","data-focus-within:border-blue-600 data-focus-within:ring-1 data-focus-within:ring-blue-600","dark:bg-gray-800 dark:border-gray-600",aa),children:[(0,u.jsx)(df,{slot:"start",className:"flex items-center text-sm",children:e=>(0,u.jsx)(dv,{segment:e,className:at("rounded outline-none text-gray-900 dark:text-gray-100","data-placeholder-shown:text-gray-400 dark:data-placeholder-shown:text-gray-500","data-focus:bg-gray-200 dark:data-focus:bg-gray-700")})}),(0,u.jsx)("span",{className:"text-gray-400","aria-hidden":"true",children:"-"}),(0,u.jsx)(df,{slot:"end",className:"flex items-center text-sm",children:e=>(0,u.jsx)(dv,{segment:e,className:at("rounded outline-none text-gray-900 dark:text-gray-100","data-placeholder-shown:text-gray-400 dark:data-placeholder-shown:text-gray-500","data-focus:bg-gray-200 dark:data-focus:bg-gray-700")})}),(0,u.jsx)(t9,{className:"shrink-0 ml-auto text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",children:(0,u.jsx)("svg",{className:"size-5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M5.75 2a.75.75 0 01.75.75V4h7V2.75a.75.75 0 011.5 0V4h.25A2.75 2.75 0 0118 6.75v8.5A2.75 2.75 0 0115.25 18H4.75A2.75 2.75 0 012 15.25v-8.5A2.75 2.75 0 014.75 4H5V2.75A.75.75 0 015.75 2zm-1 5.5c-.69 0-1.25.56-1.25 1.25v6.5c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25v-6.5c0-.69-.56-1.25-1.25-1.25H4.75z",clipRule:"evenodd"})})})]}),(0,u.jsx)(uN,{className:at("bg-white border border-gray-200 rounded-xl shadow-lg p-4","dark:bg-gray-900 dark:border-gray-700","data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95","data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95","origin-top duration-150"),children:(0,u.jsx)(s1,{children:(0,u.jsxs)(lH,{children:[(0,u.jsxs)("header",{className:"flex items-center justify-between mb-4",children:[(0,u.jsx)(t9,{slot:"previous",className:"p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-600 dark:text-gray-300",children:(0,u.jsx)("svg",{className:"size-5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z",clipRule:"evenodd"})})}),(0,u.jsx)(ng,{className:"text-sm font-semibold text-gray-900 dark:text-gray-100"}),(0,u.jsx)(t9,{slot:"next",className:"p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-600 dark:text-gray-300",children:(0,u.jsx)("svg",{className:"size-5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})})]}),(0,u.jsxs)(lW,{children:[(0,u.jsx)(lG,{children:e=>(0,u.jsx)(lq,{className:"text-xs font-medium text-gray-500 dark:text-gray-400 pb-2",children:e})}),(0,u.jsx)(l_,{children:e=>(0,u.jsx)(lY,{date:e,className:at("size-9 flex items-center justify-center rounded-full text-sm outline-none cursor-pointer","hover:bg-gray-100 dark:hover:bg-gray-700","data-selected:rounded-none data-selected:bg-gray-100 dark:data-selected:bg-gray-800","data-selection-start:bg-blue-600 data-selection-start:text-white data-selection-start:rounded-l-full","data-selection-end:bg-blue-600 data-selection-end:text-white data-selection-end:rounded-r-full","data-disabled:text-gray-300 data-disabled:cursor-not-allowed","text-gray-900 dark:text-gray-100","data-outside-month:text-gray-300 dark:data-outside-month:text-gray-600")})})]})]})})})]})).displayName="DateRangePicker";let dN=(0,c.createContext)(null),dM=(0,c.forwardRef)(function(e,t){let a=function(e){let{allowsMultipleExpanded:t=!1,isDisabled:a=!1}=e,[r,n]=lN((0,c.useMemo)(()=>e.expandedKeys?new Set(e.expandedKeys):void 0,[e.expandedKeys]),(0,c.useMemo)(()=>e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,[e.defaultExpandedKeys]),e.onExpandedChange);return(0,c.useEffect)(()=>
12{if(!t&&r.size>1){let e=r.values().next().value;null!=e&&n(new Set([e]))}}),{allowsMultipleExpanded:t,isDisabled:a,expandedKeys:r,setExpandedKeys:n,toggleKey(e){let a;t?(a=new Set(r)).has(e)?a.delete(e):a.add(e):a=new Set(r.has(e)?[]:[e]),n(a)}}}(e),r=K({...e,defaultClassName:"react-aria-DisclosureGroup",values:{isDisabled:a.isDisabled,state:a}}),n=X(e,{global:!0});return c.default.createElement(L.div,{...n,...r,ref:t,"data-disabled":e.isDisabled||void 0},c.default.createElement(dN.Provider,{value:a},r.children))}),dT=(0,c.createContext)(null),dF=(0,c.createContext)(null),dK=(0,c.createContext)(null),dB=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,dT);let a=(0,c.useContext)(dN),{id:r,...n}=e,l=E();r||=l;let i=a?a.expandedKeys.has(r):e.isExpanded,o=function(e){let[t,a]=lN(e.isExpanded,e.defaultExpanded||!1,e.onExpandedChange),r=(0,c.useCallback)(()=>{a(!0)},[a]),n=(0,c.useCallback)(()=>{a(!1)},[a]),l=(0,c.useCallback)(()=>{a(!t)},[a,t]);return{isExpanded:t,setExpanded:a,expand:r,collapse:n,toggle:l}}({...e,isExpanded:i,onExpandedChange(t){a&&a.toggleKey(r),e.onExpandedChange?.(t)}}),s=c.default.useRef(null),u=e.isDisabled||a?.isDisabled||!1,{buttonProps:d,panelProps:m}=function(e,t,a){let{isDisabled:r}=e,n=E(),l=E(),i=k(),o=(0,c.useRef)(null),s=(0,c.useCallback)(()=>{o.current=requestAnimationFrame(()=>{a.current&&a.current.setAttribute("hidden","until-found")}),(0,tL.flushSync)(()=>{t.toggle()})},[a,t]);nU(a,"beforematch",s);let u=(0,c.useRef)(null);return p(()=>{if(o.current&&cancelAnimationFrame(o.current),a.current&&!i){let e=a.current;null==u.current||"function"!=typeof e.getAnimations?t.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto")):(e.setAttribute("hidden","until-found"),e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px")):t.isExpanded!==u.current&&(t.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>{e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto")}).catch(()=>{})):(e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),window.getComputedStyle(e).height,e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px"),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>e.setAttribute("hidden","until-found")).catch(()=>{}))),u.current=t.isExpanded}},[r,a,t.isExpanded,i]),(0,c.useEffect)(()=>()=>{o.current&&cancelAnimationFrame(o.current)},[]),{buttonProps:{id:n,"aria-expanded":t.isExpanded,"aria-controls":l,onPress:e=>{r||"keyboard"===e.pointerType||t.toggle()},isDisabled:r,onPressStart(e){"keyboard"!==e.pointerType||r||t.toggle()}},panelProps:{id:l,role:"group","aria-labelledby":n,"aria-hidden":!t.isExpanded,hidden:i?!t.isExpanded:void 0}}}({...e,isExpanded:i,isDisabled:u},o,s),{isFocusVisible:h,focusProps:g}=t1({within:!0}),f=K({...e,id:void 0,defaultClassName:"react-aria-Disclosure",values:{isExpanded:o.isExpanded,isDisabled:u,isFocusVisibleWithin:h,state:o}}),y=X(n,{global:!0});return c.default.createElement(F,{values:[[t7,{slots:{[T]:{},trigger:d}}],[dK,{panelProps:m,panelRef:s}],[dF,o]]},c.default.createElement(L.div,{...N(y,f,g),ref:t,"data-expanded":o.isExpanded||void 0,"data-disabled":u||void 0,"data-focus-visible-within":h||void 0},f.children))}),dA=(0,c.forwardRef)(function(e,t){let{role:a="group"}=e,{panelProps:r,panelRef:n}=(0,c.useContext)(dK),{isFocusVisible:l,focusProps:i}=t1({within:!0}),o=K({...e,defaultClassName:"react-aria-DisclosurePanel",values:{isFocusVisibleWithin:l}}),s=X(e,{global:!0,labelable:!0});return c.default.createElement(L.div,{...N(s,o,r,i),ref:P(t,n),role:a,"data-focus-visible-within":l||void 0},c.default.createElement(F,{values:[[t7,null]]},e.children))}),dI=(0,c.forwardRef)(({children:e,allowsMultipleExpanded:t=!0,className:a,...r},n)=>(0,u.jsx)(dM,{ref:n,allowsMultipleExpanded:t,className:at("divide-y divide-gray-200 border border-gray-200 rounded-xl overflow-hidden dark:divide-gray-700 dark:border-gray-700",a),...r,children:e}));dI.displayName="DisclosureGroup";let dz={sm:"px-4 py-3 text-sm",lg:"px-6 py-5 text-base"},dV={sm:"px-4 pt-0.5 pb-3 text-sm",lg:"px-6 pt-1 pb-5 text-base"};function dj(){return(0,u.jsx)("svg",{className:"size-4 text-gray-400",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"})})}e.s(["Disclosure",0,function({id:e,title:t,children:a,size:r="sm",className:n,triggerClassName:l,panelClassName:i,...o}){return(0,u.jsx)(dB,{id:e,className:at("group",n),...o,children:({isExpanded:e})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ng,{children:(0,u.jsxs)(t9,{slot:"trigger",className:at("flex items-center justify-between w-full text-left font-medium outline-none cursor-pointer",dz[r],"text-gray-900 data-hover:bg-gray-50","dark:text-gray-100 dark:data-hover:bg-gray-800/50",l),children:[(0,u.jsx)("span",{children:t}),(0,u.jsx)("div",{className:at("transition-transform duration-200",e&&"rotate-180"),children:(0,u.jsx)(dj,{})})]})}),(0,u.jsx)(dA,{children:(0,u.jsx)("div",{className:at("grid transition-[grid-template-rows,opacity] duration-300 ease-[
12cubic-bezier(0.04,_0.62,_0.23,_0.98)]",e?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:(0,u.jsx)("div",{className:e?void 0:"overflow-hidden",children:(0,u.jsx)("div",{className:at(dV[r],"text-gray-600 dark:text-gray-300",i),children:a})})})})]})})},"DisclosureGroup",0,dI],251104),(0,c.forwardRef)(({title:e,description:t,className:a},r)=>{let n=(0,c.useContext)(s0);return(0,u.jsx)("div",{ref:r,className:at("px-6 pt-6 pb-4 shrink-0",a),children:(0,u.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,u.jsxs)("div",{className:"min-w-0",children:[(0,u.jsx)(ng,{slot:"title",className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:e}),t?(0,u.jsx)("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:t}):null]}),(0,u.jsx)(t9,{"aria-label":"Close",onPress:()=>n?.close(),className:"shrink-0 rounded-lg p-1.5 text-gray-400 transition-colors data-[hovered]:bg-gray-100 data-[hovered]:text-gray-600 dark:data-[hovered]:bg-gray-700 dark:data-[hovered]:text-gray-300",children:(0,u.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:(0,u.jsx)("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})})})]})})}).displayName="DrawerHeader";let dL=new WeakMap;var dO={};function dU(e,t){var a;let{getRowText:r=e=>t.collection.getTextValue?.(e)??t.collection.getItem(e)?.textValue}=e,n=rn((a=dO)&&a.__esModule?a.default:a,"@react-aria/grid"),l=t.selectionManager.rawSelection,i=(0,c.useRef)(l),o=(0,c.useCallback)(()=>{if(!t.selectionManager.isFocused||l===i.current){i.current=l;return}let e=dH(l,i.current),a=dH(i.current,l),o="replace"===t.selectionManager.selectionBehavior,s=[];if(1===t.selectionManager.selectedKeys.size&&o){let e=t.selectionManager.selectedKeys.keys().next().value;if(null!=e&&t.collection.getItem(e)){let t=r(e);t&&s.push(n.format("selectedItem",{item:t}))}}else if(1===e.size&&0===a.size){let t=e.keys().next().value;if(null!=t){let e=r(t);e&&s.push(n.format("selectedItem",{item:e}))}}else if(1===a.size&&0===e.size){let e=a.keys().next().value;if(null!=e&&t.collection.getItem(e)){let t=r(e);t&&s.push(n.format("deselectedItem",{item:t}))}}"multiple"===t.selectionManager.selectionMode&&(0===s.length||"all"===l||l.size>1||"all"===i.current||i.current?.size>1)&&s.push("all"===l?n.format("selectedAll"):n.format("selectedCount",{count:l.size})),s.length>0&&eE(s.join(" ")),i.current=l},[l,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,r,n]);nF(()=>{if(t.selectionManager.isFocused)o();else{let e=requestAnimationFrame(o);return()=>cancelAnimationFrame(e)}},[l,t.selectionManager.isFocused])}function dH(e,t){let a=new Set;if("all"===e||"all"===t)return a;for(let r of e.keys())t.has(r)||a.add(r);return a}function dZ(e,t){let a=t?.isDisabled,[r,n]=(0,c.useState)(!1);return p(()=>{if(e?.current&&!a){let t=()=>{e.current&&n(!!oq(e.current,{tabbable:!0}).nextNode())};t();let a=new MutationObserver(t);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),!a&&r}function dW(e){var t;let a=rn((t=dO)&&t.__esModule?t.default:t,"@react-aria/grid"),r=function(){tm();let[e,t]=(0,c.useState)(te);return(0,c.useEffect)(()=>{let e=()=>{t(te)};return tt.add(e),()=>{tt.delete(e)}},[]),k()?null:e}(),n=("pointer"===r||"virtual"===r||null==r)&&"u">typeof window&&"ontouchstart"in window;return nO((0,c.useMemo)(()=>{let t,r=e.selectionManager.selectionMode,l=e.selectionManager.selectionBehavior;return n&&(t=a.format("longPressToSelect")),"replace"===l&&"none"!==r&&e.hasItemActions?t:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,a,n]))}function dG(e,t,a){let{isVirtualized:r,keyboardDelegate:n,layoutDelegate:l,onAction:i,disallowTypeAhead:o,linkBehavior:s="action",keyboardNavigationBehavior:u="arrow",escapeKeyBehavior:d="clearSelection",shouldSelectOnPressUp:c}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:m}=se({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:a,keyboardDelegate:n,layoutDelegate:l,isVirtualized:r,selectOnFocus:"replace"===t.selectionManager.selectionBehavior,shouldFocusWrap:e.shouldFocusWrap,linkBehavior:s,disallowTypeAhead:o,autoFocus:e.autoFocus,escapeKeyBehavior:d,UNSTABLE_focusOnEntry:e.UNSTABLE_focusOnEntry}),p=E(e.id);dL.set(t,{id:p,onAction:i,linkBehavior:s,keyboardNavigationBehavior:u,shouldSelectOnPressUp:c});let h=dW({selectionManager:t.selectionManager,hasItemActions:!!i}),g=dZ(a,{isDisabled:0!==t.collection.size}),f=N(X(e,{labelable:!0}),{role:"grid",id:p,"aria-multiselectable":"multiple"===t.selectionManager.selectionMode?"true":void 0},0===t.collection.size?{tabIndex:g?-1:0}:m,h);return r&&(f["aria-rowcount"]=t.collection.size,f["aria-colcount"]=1),dU({},t),{gridProps:f}}dO={"ar-AE":{deselectedItem:e=>`${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>
12`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} \u{639}\u{646}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}`,other:()=>`${t.number(e.count)} \u{639}\u{646}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}`})}.`,selectedItem:e=>`${e.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`},"bg-BG":{deselectedItem:e=>`${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`})}.`,selectedItem:e=>`${e.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`},"cs-CZ":{deselectedItem:e=>`Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,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\xe1na ${t.number(e.count)} polo\u{17E}ka`,other:()=>`Vybr\xe1no ${t.number(e.count)} polo\u{17E}ek`})}.`,selectedItem:e=>`Vybr\xe1na polo\u{17E}ka ${e.item}.`},"da-DK":{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.`},"de-DE":{deselectedItem:e=>`${e.item} nicht ausgew\xe4hlt.`,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\xe4hlt`,other:()=>`${t.number(e.count)} Elemente ausgew\xe4hlt`})}.`,selectedItem:e=>`${e.item} ausgew\xe4hlt.`},"el-GR":{deselectedItem:e=>`\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} ${t.number(e.count)} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B1}\u{3BD} ${t.number(e.count)} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}.`,selectedItem:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`},"en-US":{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."},"es-ES":{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.`},"et-EE":{deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>
12`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} \xfcksus valitud`,other:()=>`${t.number(e.count)} \xfcksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`},"fi-FI":{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.`},"fr-FR":{deselectedItem:e=>`${e.item} non s\xe9lectionn\xe9.`,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)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}.`,selectedItem:e=>`${e.item} s\xe9lectionn\xe9.`},"he-IL":{deselectedItem:e=>`${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`\u{5E4}\u{5E8}\u{5D9}\u{5D8} ${t.number(e.count)} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}.`,selectedItem:e=>`${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`},"hr-HR":{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.`},"hu-HU":{deselectedItem:e=>`${e.item} nincs kijel\xf6lve.`,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\xf6lve`,other:()=>`${t.number(e.count)} elem kijel\xf6lve`})}.`,selectedItem:e=>`${e.item} kijel\xf6lve.`},"it-IT":{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.`},"ja-JP":{deselectedItem:e=>`${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} \u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}`,other:()=>`${t.number(e.count)} \u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}`})}\u{3002}`,selectedItem:e=>`${e.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`},"ko-KR":{deselectedItem:e=>`${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}\u{AC1C} \u{D56D}\u{BAA9}\u{C774} \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{D56D}\u{BAA9}\u{C774} \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}`})}.`,selectedItem:e=>`${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`},"lt-LT":{deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>
12`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta element\u{173}: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`},"lv-LV":{deselectedItem:e=>`Vienums ${e.item} nav atlas\u{12B}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\u{12B}to vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlas\u{12B}to vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlas\u{12B}ts vienums ${e.item}.`},"nb-NO":{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.`},"nl-NL":{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.`},"pl-PL":{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\xf3w`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`},"pt-BR":{deselectedItem:e=>`${e.item} n\xe3o 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.`},"pt-PT":{deselectedItem:e=>`${e.item} n\xe3o 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.`},"ro-RO":{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.`},"ru-RU":{deselectedItem:e=>`${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}`,other:()=>`${t.number(e.count)} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}`})}.`,selectedItem:e=>`${e.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`},"sk-SK":{deselectedItem:e=>`Nevybrat\xe9 polo\u{17E}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)=>
12`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybrat\xe1 polo\u{17E}ka`,other:()=>`Po\u{10D}et vybrat\xfdch polo\u{17E}iek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybrat\xe9 polo\u{17E}ky: ${e.item}.`},"sl-SI":{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.`},"sr-SP":{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.`},"sv-SE":{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.`},"tr-TR":{deselectedItem:e=>`${e.item} se\xe7ilmedi.`,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)} \xf6ge se\xe7ildi`,other:()=>`${t.number(e.count)} \xf6ge se\xe7ildi`})}.`,selectedItem:e=>`${e.item} se\xe7ildi.`},"uk-UA":{deselectedItem:e=>`${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`,other:()=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{456}\u{432}: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`},"zh-CN":{deselectedItem:e=>`\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`\u{5DF2}\u{9009}\u{62E9} ${t.number(e.count)} \u{4E2A}\u{9879}\u{76EE}`,other:()=>`\u{5DF2}\u{9009}\u{62E9} ${t.number(e.count)} \u{4E2A}\u{9879}\u{76EE}`})}\u{3002}`,selectedItem:e=>`\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`},"zh-TW":{deselectedItem:e=>`\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`\u{5DF2}\u{9078}\u{53D6} ${t.number(e.count)} \u{500B}\u{9805}\u{76EE}`,other:()=>`\u{5DF2}\u{9078}\u{53D6} ${t.number(e.count)} \u{500B}\u{9805}\u{76EE}`})}\u{3002}`,selectedItem:e=>`\u{5DF2}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`}};let dq=(0,c.createContext)(null),d_=(0,c.forwardRef)(function(e,t){return[e,t]=A(e,t,dq),c.default.createElement(aW,{content:c.default.createElement(aQ,e)},a=>c.default.createElement(dY,{props:e,collection:a,gridListRef:t}))});function dY({props:e,collection:t,gridListRef:a}){let r,n,l;[e,a]=A(e,a,oE);let{shouldUseVirtualFocus:i,filter:o,disallowTypeAhead:s,UNSTABLE_focusOnEntry:u,...d}=e,{dragAndDropHooks:m,keyboardNavigationBehavior:p="arrow",layout:h="stack",orientation:g="vertical"}=e,{CollectionRoot:f,isVirtualized:y,layoutDelegate:b,dropTargetDelegate:v}=(0,c.useContext)(a3),x=sk(sD({...d,collection:t,children:void 0,layoutDelegate:b}),o),D=o8({usage:"search",sensitivity:"base"}),{disabledBehavior:k,disabledKeys:C}=x.selectionManager,{direction:w}=ed(),E=(0,c.useMemo)(()=>
12new o7({collection:x.collection,collator:D,ref:a,disabledKeys:C,disabledBehavior:k,layoutDelegate:b,layout:h,orientation:g,direction:w}),[x.collection,a,h,g,C,k,b,D,w]),{gridProps:S}=dG({...d,keyboardDelegate:E,keyboardNavigationBehavior:"grid"===h?"tab":p,isVirtualized:y,shouldSelectOnPressUp:e.shouldSelectOnPressUp,disallowTypeAhead:s,UNSTABLE_focusOnEntry:u},x,a),P=x.selectionManager,$=!!m?.useDraggableCollectionState,R=!!m?.useDroppableCollectionState;(0,c.useRef)($),(0,c.useRef)(R),(0,c.useEffect)(()=>{},[$,R]);let M=!1,T=null,B=(0,c.useRef)(null);if($&&m){r=m.useDraggableCollectionState({collection:x.collection,selectionManager:P,preview:m.renderDragPreview?B:void 0}),m.useDraggableCollection({},r,a);let e=m.DragPreview;T=m.renderDragPreview?c.default.createElement(e,{ref:B},m.renderDragPreview):null}if(R&&m){n=m.useDroppableCollectionState({collection:x.collection,selectionManager:P});let e=m.dropTargetDelegate||v||new m.ListDropTargetDelegate(t,a,{layout:h,direction:w,orientation:g});l=m.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:e},n,a),M=n.isDropTarget({type:"root"})}let{focusProps:I,isFocused:z,isFocusVisible:V}=t1(),j=0===x.collection.size,O={isDropTarget:M,orientation:g,isEmpty:j,isFocused:z,isFocusVisible:V,layout:h,state:x},U=K({...e,children:void 0,defaultClassName:"react-aria-GridList",values:O}),H=null;if(j&&e.renderEmptyState){let t=e.renderEmptyState(O);H=c.default.createElement("div",{role:"row","aria-rowindex":1,style:{display:"contents"}},c.default.createElement("div",{role:"gridcell",style:{display:"contents"}},t))}let Z=X(e,{global:!0});return c.default.createElement(oI,null,c.default.createElement(L.div,{...N(Z,U,S,I,l?.collectionProps,null),ref:a,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":M||void 0,"data-empty":j||void 0,"data-focused":z||void 0,"data-focus-visible":V||void 0,"data-layout":h,"data-orientation":g},c.default.createElement(F,{values:[[sS,x],[oh,{dragAndDropHooks:m,dragState:r,dropState:n}],[og,{render:dJ}]]},R&&c.default.createElement(dX,null),c.default.createElement(o$,null,c.default.createElement(f,{collection:x.collection,scrollRef:a,persistedKeys:ob(P,m,n),renderDropIndicator:oy(m,n)}))),H,T))}function dJ(e,t){t=M(t);let{dragAndDropHooks:a,dropState:r}=(0,c.useContext)(oh),n=(0,c.useRef)(null),{dropIndicatorProps:l,isHidden:i,isDropTarget:o}=a.useDropIndicator(e,r,n);return i?null:c.default.createElement(dQ,{...e,dropIndicatorProps:l,isDropTarget:o,buttonRef:n,ref:t})}let dQ=(0,c.forwardRef)(function(e,t){let{dropIndicatorProps:a,isDropTarget:r,buttonRef:n,...l}=e,{visuallyHiddenProps:i}=lI(),o=K({...l,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return c.default.createElement(L.div,{...o,role:"row",ref:t,"data-drop-target":r||void 0},c.default.createElement("div",{role:"gridcell"},c.default.createElement("div",{...i,role:"button",...a,ref:n}),o.children))});function dX(){let{dragAndDropHooks:e,dropState:t}=(0,c.useContext)(oh),a=(0,c.useRef)(null),{dropIndicatorProps:r}=e.useDropIndicator({target:{type:"root"}},t,a),n=t.isDropTarget({type:"root"}),{visuallyHiddenProps:l}=lI();return!n&&r["aria-hidden"]?null:c.default.createElement("div",{role:"row","aria-hidden":r["aria-hidden"],style:{position:"absolute"}},c.default.createElement("div",{role:"gridcell"},c.default.createElement("div",{role:"button",...l,...r,ref:a})))}aY(aK,function(e,t,a){let r=(0,c.useContext)(sS),{isVirtualized:n}=(0,c.useContext)(a3),{isLoading:l,onLoadMore:i,scrollOffset:o,...s}=e,u=(0,c.useRef)(null);sw((0,c.useMemo)(()=>({onLoadMore:i,collection:r?.collection,sentinelRef:u,scrollOffset:o}),[i,o,r?.collection]),u);let d=K({...s,id:void 0,children:a.rendered,defaultClassName:"react-aria-GridListLoadingIndicator",values:void 0});return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{style:{position:"relative",width:0,height:0},inert:sc(!0)},c.default.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),l&&d.children&&c.default.createElement(L.div,{...d,...X(e,{global:!0}),role:"row",ref:t},c.default.createElement("div",{"aria-colindex":n?1:void 0,role:"gridcell"},d.children)))}),(0,c.forwardRef)(({children:e,className:t,...a},r)=>(0,u.jsx)(d_,{ref:r,className:at("border border-gray-200 rounded-xl overflow-hidden outline-none","dar
12k:border-gray-700",t),...a,children:e})).displayName="GridList",(0,c.forwardRef)(({children:e,className:t,...a},r)=>(0,u.jsx)(l0,{ref:r,className:at("text-sm text-red-500 dark:text-red-400",t),...a,children:e})).displayName="FieldError";let d0=(0,d.cva)(at("flex items-center justify-start w-full","border border-gray-300 bg-white text-gray-900 outline-none rounded-lg","data-focus:border-blue-600 data-focus:ring-1 data-focus:ring-blue-600","data-invalid:border-red-500 data-invalid:ring-1 data-invalid:ring-red-500","data-disabled:bg-gray-100 data-disabled:cursor-not-allowed data-disabled:opacity-60","placeholder:text-gray-400","dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100","dark:placeholder:text-gray-500","dark:data-focus:border-blue-400 dark:data-focus:ring-blue-400","dark:data-disabled:bg-gray-900"),{variants:{size:{sm:"h-8 px-2.5 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"},addOns:{left:"rounded-l-none",right:"rounded-r-none",both:"rounded-none",none:""}},defaultVariants:{size:"md"}}),d1=(0,c.createContext)({}),d4=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,d1);let{hoverProps:a,isHovered:r}=t6(e),{isFocused:n,isFocusVisible:l,focusProps:i}=t1({isTextInput:!0,autoFocus:e.autoFocus}),o=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],s=K({...e,values:{isHovered:r,isFocused:n,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:o},defaultClassName:"react-aria-TextArea"});return c.default.createElement(L.textarea,{...N((e=>{let{onHoverStart:t,onHoverChange:a,onHoverEnd:r,...n}=e;return n})(e),i,a),...s,ref:t,"data-focused":n||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":l||void 0,"data-invalid":o||void 0})}),d3=at("flex w-full min-h-[80px]","border border-gray-300 bg-white text-gray-900 outline-none rounded-lg","data-focus:border-blue-600 data-focus:ring-1 data-focus:ring-blue-600","data-invalid:border-red-500 data-invalid:ring-1 data-invalid:ring-red-500","data-disabled:bg-gray-100 data-disabled:cursor-not-allowed data-disabled:opacity-60","placeholder:text-gray-400 resize-y","dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100","dark:placeholder:text-gray-500","dark:data-focus:border-blue-400 dark:data-focus:ring-blue-400","dark:data-disabled:bg-gray-900"),d5={sm:"px-2.5 py-1.5 text-xs",md:"px-3 py-2 text-sm",lg:"px-4 py-3 text-base"},d2=(0,c.forwardRef)(({className:e,inputSize:t="md",...a},r)=>(0,u.jsx)(d4,{ref:r,className:at(d3,d5[t],e),...a}));d2.displayName="TextArea",e.s(["TextArea",0,d2],916344);let d6=(0,c.createContext)(null),d7=H(function(e,t){[e,t]=A(e,t,d6);let{validationBehavior:a}=B(ia)||{},r=e.validationBehavior??a??"native",n=(0,c.useRef)(null);[e,n]=A(e,n,oS);let[l,i]=I(!e["aria-label"]&&!e["aria-labelledby"]),[o,s]=(0,c.useState)("input"),{labelProps:u,inputProps:d,descriptionProps:m,errorMessageProps:p,...h}=iU({...z(e),inputElementType:o,label:i,validationBehavior:r},n),g=(0,c.useCallback)(e=>{n.current=e,e&&s(e instanceof HTMLTextAreaElement?"textarea":"input")},[n]),f=K({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:h.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),y=X(e,{global:!0});return delete y.id,c.default.createElement(L.div,{...y,...f,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":h.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},c.default.createElement(F,{values:[[Z,{...u,ref:l}],[iw,{...d,ref:g}],[d1,{...d,ref:g}],[ij,{role:"presentation",isInvalid:h.isInvalid,isDisabled:e.isDisabled||!1}],[nf,{slots:{description:m,errorMessage:p}}],[lX,h]]},f.children))}),d9=(0,c.forwardRef)(({children:e,className:t,...a},r)=>(0,u.jsx)(d7,{ref:r,className:at("flex flex-col gap-1",t),...a,children:e}));d9.displayName="TextField",e.s(["TextField",0,d9],879871),(0,c.forwardRef)(({className:e,left:t,right:a,inputSize:r,...n},l)=>{var i,o;let s=d0({className:e,addOns:(i=!!t,o=!!a,i&&o?"both":i?"left":o?"right":"none"),size:r});return void 0!==t||void 0!==a?(0,u.jsx)(d8,{ref:l,classes:s,left:t,right:a,inputSize:r,...n}):(0,u.jsx)(iE,{ref:l,className:s,...n})}).displayName="TextInput";let d8=(0,c.forwardRef)(({classes:e,left:t,right:a,inputSize:r="md",...n},l)=>(0,u.jsxs)("div",{className:"flex",children:[t?(0,u.jsx)(ct,{side:"left",size:r,children:t}):null,(0,u.jsx)(iE,{ref:l,className:at(e),...n}),a?(0,u.jsx)(ct,{side:"right",size:r,children:a}):null]}));d8.displayName="TextInputWithAddons";let ce={sm:"h-8 px-2.5 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"};function ct({children:e,side:t,size:a="md"}){return(0,u.jsx)("span",{className:at("flex items-center bg-gray-50 border border-gray-300 text-gray-500","dark:bg-gray-900 dark:border-gray-600 dark:text-gray-400",ce[a],"left"===t?"rounded-l-lg border-r-0":"rounded-r-lg border-l-0"),children:e})}let ca=(0,c.forwardRef)(({variant:e="default",headless:t=!1,className:a,children:r,...n},l)=>{let i=t?a:an({variant:e,className:a});return(0,u.jsx)(aN,{ref:l,className:i,...n,children:r})});ca.displayName="Link",e.s(["Link",0,ca],135679);let cr=(0,c.forwardRef)(({children:e,variant:t="primary",size:a="md",start:r,end:n,className:l,...i},o)=>
12{let s=!!r&&!a?.startsWith("icon-"),d=at(as({size:a,variant:t}),s&&("sm"===a?"pl-2":"lg"===a?"pl-4":"pl-3"),l);return(0,u.jsx)(aN,{ref:o,className:d,...i,children:(0,u.jsxs)("span",{className:at("inline-flex w-full gap-1.5 items-center",r||n?"justify-between":"justify-center"),children:[r,e,n]})})});cr.displayName="LinkButton",e.s(["LinkButton",0,cr],790895),(0,c.forwardRef)(({children:e,className:t,...a},r)=>(0,u.jsx)(sP,{ref:r,className:at("border border-gray-200 rounded-xl overflow-hidden outline-none","dark:border-gray-700",t),...a,children:e})).displayName="ListBox",(0,c.forwardRef)(({children:e,className:t,...a},r)=>(0,u.jsx)(sG,{ref:r,className:at("flex items-center gap-2 px-3 py-2 text-sm text-gray-700 rounded cursor-pointer outline-none","data-focus:bg-gray-100 data-focus:text-gray-900","data-selected:font-medium","data-disabled:opacity-50 data-disabled:cursor-not-allowed","dark:text-gray-200 dark:data-focus:bg-gray-800 dark:data-focus:text-gray-100",t),...a,children:({isSelected:t})=>(0,u.jsxs)(u.Fragment,{children:[e,t?(0,u.jsx)("svg",{className:"ml-auto size-4 shrink-0 text-blue-600",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}):null]})})).displayName="MenuItem";let cn=(0,c.createContext)(null),cl=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,cn);let{value:a=0,minValue:r=0,maxValue:n=100}=e;a=ey(a,r,n);let[l,i]=I(!e["aria-label"]&&!e["aria-labelledby"]),{meterProps:o,labelProps:s}=function(e){let{progressBarProps:t,labelProps:a}=eD(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:a}}({...e,label:i}),u=(a-r)/(n-r)*100,d=K({...e,defaultClassName:"react-aria-Meter",values:{percentage:u,valueText:o["aria-valuetext"]}}),m=X(e,{global:!0});return c.default.createElement(L.div,{...N(m,d,o),ref:t,slot:e.slot||void 0},c.default.createElement(Z.Provider,{value:{...s,ref:l,elementType:"span"}},d.children))}),ci=(0,d.cva)("h-full rounded-full",{variants:{color:{blue:"bg-blue-600",green:"bg-green-500",amber:"bg-amber-500",red:"bg-red-500"}}});(0,c.forwardRef)(({label:e,value:t=0,minValue:a=0,maxValue:r=100,color:n="blue",showValue:l=!0,className:i,...o},s)=>(0,u.jsx)(cl,{ref:s,value:t,minValue:a,maxValue:r,className:at("flex flex-col gap-1",i),...o,children:({percentage:t,valueText:a})=>(0,u.jsxs)(u.Fragment,{children:[e||l?(0,u.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[e?(0,u.jsx)(W,{className:"text-gray-700 dark:text-gray-200",children:e}):null,l?(0,u.jsx)("span",{className:"text-gray-500 dark:text-gray-400",children:a}):null]}):null,(0,u.jsx)("div",{className:"h-2 w-full bg-gray-200 rounded-full overflow-hidden dark:bg-gray-700",children:(0,u.jsx)("div",{className:at(ci({color:n}),"transition-[width] duration-300 ease-out"),style:{width:`${t}%`}})})]})})).displayName="Meter";let co="u">typeof document&&window.visualViewport;function cs(){return{width:co?Math.min(co.width*co.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:co?co.height*co.scale:document.documentElement.clientHeight}}let cu=(0,c.createContext)(null),cd=(0,c.createContext)(null),cc=(0,c.forwardRef)(function(e,t){if((0,c.useContext)(cd))return c.default.createElement(ch,{...e,modalRef:t},e.children);let{isDismissable:a,isKeyboardDismissDisabled:r,isOpen:n,defaultOpen:l,onOpenChange:i,children:o,isEntering:s,isExiting:u,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:m,...p}=e;return c.default.createElement(cm,{isDismissable:a,isKeyboardDismissDisabled:r,isOpen:n,defaultOpen:l,onOpenChange:i,isEntering:s,isExiting:u,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:m},c.default.createElement(ch,{...p,modalRef:t},o))}),cm=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,cu);let a=(0,c.useContext)(s0),r=sL(e),n=null==e.isOpen&&null==e.defaultOpen&&a?a:r,l=M(t),i=(0,c.useRef)(null),o=uS(l,n.isOpen),s=uS(i,n.isOpen),u=o||s||e.isExiting||!1,d=k();return(n.isOpen||u)&&!d?c.default.createElement(cp,{...e,state:n,isExiting:u,overlayRef:l,modalRef:i}):null});function cp({UNSTABLE_portalContainer:e,...t}){let a,r,n=t.modalRef,{state:l}=t,{modalProps:i,underlayProps:o}=function(e,t,a){let{overlayProps:r,underlayProps:n}
12=ug({...e,isOpen:t.isOpen,onClose:t.close},a);return ub({isDisabled:!t.isOpen}),sQ(),(0,c.useEffect)(()=>{if(t.isOpen&&a.current)return s2([a.current],{shouldUseInert:!0})},[t.isOpen,a]),{modalProps:N(r),underlayProps:n}}(t,l,n),s=uE(t.overlayRef)||t.isEntering||!1,u=K({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:s,isExiting:t.isExiting,state:l}}),d=function(){let e=k(),[t,a]=(0,c.useState)(()=>e?{width:0,height:0}:cs());return(0,c.useEffect)(()=>{let e,t=e=>{a(t=>e.width===t.width&&e.height===t.height?t:e)},r=()=>{co&&co.scale>1||t(cs())},n=a=>{co&&co.scale>1||ow(eT(a))&&(e=requestAnimationFrame(()=>{let e=((e=document)=>e.activeElement)();e&&ow(e)||t({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return t(cs()),eQ()&&window.addEventListener("blur",n,!0),co?co.addEventListener("resize",r):window.addEventListener("resize",r),()=>{cancelAnimationFrame(e),eQ()&&window.removeEventListener("blur",n,!0),co?co.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}();if("u">typeof document){let e=nB(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().width%1,n=e.getBoundingClientRect().height%1;a=e.scrollWidth-t,r=e.scrollHeight-n}let m={...u.style,"--visual-viewport-width":d.width+"px","--visual-viewport-height":d.height+"px","--page-width":void 0!==a?a+"px":void 0,"--page-height":void 0!==r?r+"px":void 0};return c.default.createElement(sJ,{isExiting:t.isExiting,portalContainer:e},c.default.createElement(L.div,{...N(X(t,{global:!0}),o),...u,style:m,ref:t.overlayRef,"data-entering":s||void 0,"data-exiting":t.isExiting||void 0},c.default.createElement(F,{values:[[cd,{modalProps:i,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[s0,l]]},u.children)))}function ch(e){let{modalProps:t,modalRef:a,isExiting:r,isDismissable:n}=(0,c.useContext)(cd),l=(0,c.useContext)(s0),i=M((0,c.useMemo)(()=>P(e.modalRef,a),[e.modalRef,a])),o=uE(i),s=K({...e,defaultClassName:"react-aria-Modal",values:{isEntering:o,isExiting:r,state:l}});return c.default.createElement(L.div,{...N(X(e,{global:!0}),t),...s,ref:i,"data-entering":o||void 0,"data-exiting":r||void 0},n&&c.default.createElement(uw,{onDismiss:l.close}),s.children)}let cg=(0,c.createContext)({isDismissible:!0}),cf=(0,d.cva)(at("fixed inset-0 bg-gray-950/50 flex justify-center p-4 z-modal","transition-colors duration-200","data-entering:bg-transparent data-exiting:bg-transparent"),{variants:{alignment:{center:"items-center",top:"items-start pt-[15vh]"}}}),cy=(0,d.cva)(at("bg-white rounded-xl shadow-xl outline-none max-h-[90vh] overflow-y-auto overscroll-contain","dark:bg-gray-900","data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95","data-exiting:animate-out data-exiting:fade-out data-exiting:fill-mode-forwards"),{variants:{size:{sm:"w-full max-w-sm",md:"w-full max-w-md",lg:"w-full max-w-lg",xl:"w-full max-w-xl","2xl":"w-full max-w-2xl",full:"w-full max-w-4xl"}}});(0,c.forwardRef)(({children:e,size:t="md",role:a,isDismissible:r=!0,isKeyboardDismissDisabled:n,alignment:l="center","aria-label":i,isOpen:o,onOpenChange:s,className:d},c)=>(0,u.jsx)(cm,{isDismissable:r,isKeyboardDismissDisabled:n,isOpen:o,onOpenChange:s,className:cf({alignment:l}),children:(0,u.jsx)(cc,{className:at(cy({size:t}),d),children:(0,u.jsx)(s1,{ref:c,role:a,"aria-label":i,className:"outline-none",children:"function"==typeof e?t=>(0,u.jsx)(cg.Provider,{value:{isDismissible:r},children:e(t)}):(0,u.jsx)(cg.Provider,{value:{isDismissible:r},children:e})})})})).displayName="Modal";let cb=(0,c.createContext)(null),cv=(0,c.createContext)(null),cx=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,cb);let{validationBehavior:a}=B(ia)||{},r=e.validationBehavior??a??"native",{locale:n}=ed(),l=i8({...e,locale:n,validationBehavior:r}),i=(0,c.useRef)(null),[o,s]=I(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:u,groupProps:d,inputProps:m,incrementButtonProps:p,decrementButtonProps:h,descriptionProps:g,errorMessageProps:f,...y}=iY({...z(e),label:s,validationBehavior:r},l,i),b=K({...e,values:{state:l,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1},defaultClassName:"react-aria-NumberField"}),v=X(e,{global:!0});
12return delete v.id,c.default.createElement(F,{values:[[cv,l],[ij,d],[iw,{...m,ref:i}],[Z,{...u,ref:o}],[t7,{slots:{increment:p,decrement:h}}],[nf,{slots:{description:g,errorMessage:f}}],[lX,y]]},c.default.createElement(L.div,{...v,...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":y.isInvalid||void 0}),e.name&&c.default.createElement("input",{type:"hidden",name:e.name,form:e.form,value:isNaN(l.numberValue)?"":l.numberValue,disabled:e.isDisabled||void 0}))}),cD={sm:{button:"px-1.5",input:"px-2 py-1 text-sm",icon:"size-3.5"},md:{button:"px-3",input:"px-3 py-2 text-sm",icon:"size-4"}};function ck(e,t){return Array.from({length:t-e+1},(t,a)=>e+a)}(0,c.forwardRef)(({label:e,description:t,className:a,size:r="md",...n},l)=>{let i=cD[r];return(0,u.jsxs)(cx,{ref:l,className:at("flex flex-col gap-1",a),...n,children:[e?(0,u.jsx)(W,{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:e}):null,t?(0,u.jsx)("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:t}):null,(0,u.jsxs)(iL,{className:at("flex items-center border border-gray-300 rounded-lg overflow-hidden","data-focus-within:border-blue-600 data-focus-within:ring-1 data-focus-within:ring-blue-600","data-disabled:opacity-60 data-disabled:cursor-not-allowed","dark:border-gray-600",aa),children:[(0,u.jsx)(t9,{slot:"decrement",className:at(i.button,"self-stretch flex items-center border-r border-gray-300 bg-gray-50 text-gray-500 hover:bg-gray-100 transition-all duration-100 active:scale-90","dark:border-gray-600 dark:bg-gray-700 dark:text-gray-400 dark:hover:bg-gray-600"),children:(0,u.jsx)("svg",{className:i.icon,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M4 10a.75.75 0 01.75-.75h10.5a.75.75 0 010 1.5H4.75A.75.75 0 014 10z",clipRule:"evenodd"})})}),(0,u.jsx)(iE,{className:at(i.input,"flex-1 text-gray-900 bg-white outline-none text-center min-w-0","dark:bg-gray-800 dark:text-gray-100")}),(0,u.jsx)(t9,{slot:"increment",className:at(i.button,"self-stretch flex items-center border-l border-gray-300 bg-gray-50 text-gray-500 hover:bg-gray-100 transition-all duration-100 active:scale-90","dark:border-gray-600 dark:bg-gray-700 dark:text-gray-400 dark:hover:bg-gray-600"),children:(0,u.jsx)("svg",{className:i.icon,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M10.75 4.75a.75.75 0 00-1.5 0v4.5h-4.5a.75.75 0 000 1.5h4.5v4.5a.75.75 0 001.5 0v-4.5h4.5a.75.75 0 000-1.5h-4.5v-4.5z"})})})]})]})}).displayName="NumberField";let cC=at("inline-flex items-center justify-center size-9 text-sm font-medium rounded-lg outline-none cursor-pointer select-none","transition-colors duration-150",aa);function cw({children:e,isActive:t,disabled:a,onClick:r,...n}){return(0,u.jsx)("button",{type:"button",disabled:a,onClick:r,className:at(cC,t?"bg-blue-600 text-white":at("text-gray-700 hover:bg-gray-100","dark:text-gray-300 dark:hover:bg-gray-800"),a&&"opacity-40 cursor-not-allowed"),...n,children:e})}function cE(){return(0,u.jsx)("svg",{className:"size-4",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z",clipRule:"evenodd"})})}function cS(){return(0,u.jsx)("svg",{className:"size-4",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})}(0,c.forwardRef)(({currentPage:e,totalPages:t,onPageChange:a,siblingCount:r=1,className:n},l)=>{let i=(0,c.useMemo)(()=>{if(t<=2*r+5)return ck(1,t);let a=Math.max(e-r,1),n=Math.min(e+r,t),l=a>2,i=n<t-1;return!l&&i?[...ck(1,3+2*r),"ellipsis",t]:l&&!i?[1,"ellipsis",...ck(t-(2+2*r),t)]:[1,"ellipsis",...ck(a,n),"ellipsis",t]},[e,t,r]);return t<=1?null:(0,u.jsxs)("nav",{ref:l,"aria-label":"Pagination",className:at("flex items-center gap-1",n),children:[(0,u.jsx)(cw,{disabled:e<=1,onClick:()=>a(e-1),"aria-label":"Previous page",children:(0,u.jsx)(cE,{})}),i.map((t,r)=>"ellipsis"===t?(0,u.jsx)("span",{className:"inline-flex items-center justify-center size-9 text-sm text-gray-400 dark:text-gray-500 select-none",children:"..."},`ellipsis-${r}`):(0,u.jsx)(cw,{isActive:t===e,onClick:()=>a(t),"aria-label":`Page ${t}`,"aria-current":t===e?"page":void 0,children:t},t)),(0,u.jsx)(cw,{disabled:e>=t,onClick:()=>a(e+1),"aria-label":"Next page",children:(0,u.jsx)(cS,{})})]})}).displayName="Pagination";
12let cP=(0,d.cva)("h-full rounded-full",{variants:{color:{blue:"bg-blue-600",green:"bg-green-500",amber:"bg-amber-500",red:"bg-red-500"}}});(0,c.forwardRef)(({label:e,value:t,minValue:a=0,maxValue:r=100,isIndeterminate:n,color:l="blue",showValue:i=!0,className:o,...s},d)=>(0,u.jsx)(eC,{ref:d,value:t,minValue:a,maxValue:r,isIndeterminate:n,className:at("flex flex-col gap-1",o),...s,children:({percentage:t,valueText:a})=>(0,u.jsxs)(u.Fragment,{children:[e||i?(0,u.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[e?(0,u.jsx)(W,{className:"text-gray-700 dark:text-gray-200",children:e}):null,i&&!n?(0,u.jsx)("span",{className:"text-gray-500 dark:text-gray-400",children:a}):null]}):null,(0,u.jsx)("div",{className:"h-2 w-full bg-gray-200 rounded-full overflow-hidden dark:bg-gray-700",children:n?(0,u.jsx)("div",{className:at(cP({color:l}),"w-1/3 animate-indeterminate relative")}):(0,u.jsx)("div",{className:at(cP({color:l}),"transition-[width] duration-300 ease-out"),style:{width:`${t}%`}})})]})})).displayName="ProgressBar";let c$=new WeakMap,cR=Math.round(1e10*Math.random()),cN=0,cM=(0,c.createContext)(null),cT=(0,c.createContext)(null),cF=(0,c.createContext)(null),cK=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,cM);let{validationBehavior:a}=B(ia)||{},r=e.validationBehavior??a??"native",n=function(e){let t=(0,c.useMemo)(()=>e.name||`radio-group-${cR}-${++cN}`,[e.name]),[a,r]=lN(e.value,e.defaultValue??null,e.onChange),[n]=(0,c.useState)(a),[l,i]=(0,c.useState)(null),o=l7({...e,value:a}),s=o.displayValidation.isInvalid;return{...o,name:t,selectedValue:a,defaultSelectedValue:void 0!==e.value?n:e.defaultValue??null,setSelectedValue:t=>{e.isReadOnly||e.isDisabled||(r(t),o.commitValidation())},lastFocusedValue:l,setLastFocusedValue:i,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(s?"invalid":null),isInvalid:s}}({...e,validationBehavior:r}),[l,i]=I(!e["aria-label"]&&!e["aria-labelledby"]),{radioGroupProps:o,labelProps:s,descriptionProps:u,errorMessageProps:d,...m}=function(e,t){let{name:a,form:r,isReadOnly:n,isRequired:l,isDisabled:i,orientation:o="vertical",validationBehavior:s="aria"}=e,{direction:u}=ed(),{isInvalid:d,validationErrors:c,validationDetails:m}=t.displayValidation,{labelProps:p,fieldProps:h,descriptionProps:g,errorMessageProps:f}=il({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||c}),y=X(e,{labelable:!0}),{focusWithinProps:b}=t0({onBlurWithin(a){e.onBlur?.(a),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),v=E(a);return c$.set(t,{name:v,form:r,descriptionId:g.id,errorMessageId:f.id,validationBehavior:s}),{radioGroupProps:N(y,{role:"radiogroup",onKeyDown:e=>{let a,r;switch(e.key){case"ArrowRight":a="rtl"===u&&"vertical"!==o?"prev":"next";break;case"ArrowLeft":a="rtl"===u&&"vertical"!==o?"next":"prev";break;case"ArrowDown":a="next";break;case"ArrowUp":a="prev";break;default:return}e.preventDefault();let n=oq(e.currentTarget,{from:eT(e),accept:e=>e instanceof eN(e).HTMLInputElement&&"radio"===e.type});"next"===a?(r=n.nextNode())||(n.currentNode=e.currentTarget,r=n.firstChild()):(r=n.previousNode())||(n.currentNode=e.currentTarget,r=n.lastChild()),r&&(r.focus(),t.setSelectedValue(r.value))},"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":n||void 0,"aria-required":l||void 0,"aria-disabled":i||void 0,"aria-orientation":o,...h,...b}),labelProps:p,descriptionProps:g,errorMessageProps:f,isInvalid:d,validationErrors:c,validationDetails:m}}({...e,label:i,validationBehavior:r},n),p=K({...e,values:{orientation:e.orientation||"vertical",isDisabled:n.isDisabled,isReadOnly:n.isReadOnly,isRequired:n.isRequired,isInvalid:n.isInvalid,state:n},defaultClassName:"react-aria-RadioGroup"}),h=X(e,{global:!0});return c.default.createElement(L.div,{...N(h,p,o),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||"vertical","data-invalid":n.isInvalid||void 0,"data-disabled":n.isDisabled||void 0,"data-readonly":n.isReadOnly||void 0,"data-required":n.isRequired||void 0},c.default.createElement(F,{values:[[cF,n],[Z,{...s,ref:l,elementType:"span"}],[nf,{slots:{description:u,errorMessage:d}}],[lX,m]]},c.default.createElement(o$,null,p.children)))}),cB=(0,c.forwardRef)(function(e,t){let{inputRef:a=null,...r}=e;[e,t]=A(r,t,cT);let n=c.default.useContext(cF),l=M((0,c.useMemo)(()=>P(a,void 0!==e.inputRef?e.inputRef:null),[a,e.inputRef])),i=function(e,t,a){let{value:r,children:n,"aria-label":l,"aria-labelledby":i,onPressStart:o,onPressEnd:s,onPressChange:u,onPress:d,onPressUp:m,onClick:p}=e,h=e.isDisabled||t.isDisabled,g=t.selectedValue===r,{pressProps:f,isPressed:y}=tW({onPressStart:o,onPressEnd:s,onPressChange:u,onPress:d,onPressUp:m,onClick:p,isDisabled:h}),{pressProps:b,isPressed:v}=tW({onPressStart:o,onPressEnd:s,onPressChange:u,onPressUp:m,onClick:p,isDisabled:h,onPress(e){d?.(e),t.setSelectedValue(r),a.current?.focus()}}),{focusableProps:x}=t$(N(e,{onFocus:()=>t.setLastFocusedValue(r)}),a),D=N(f,x),k=X(e,{labelable:!0}),C=-1;null!=t.selectedValue?t.selectedValue===r&&(C=0):(t.lastFocusedValue===r||null==t.lastFocusedValue)&&(C=0),h&&(C=void 0);let{name:w,form:E,descriptionId:S,errorMessageId:P,validationBehavior:$}=c$.get(t);ii(a,t.defaultSelectedValue,t.setSelectedValue),io({validationBehavior:$},t,a);let R=is();return{labelProps:N(b,(0,c.useMemo)(()=>({onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault()}),[])),inputProps:N(k,{...D,type:"radio",name:w,form:E,tabIndex:C,disabled:h,required:t.isRequired&&"native"===$,checked:g,value:r,onChange:e=>{e.stopPropagation(),t.setSelectedValue(r)},"aria-describedby":[e["aria-describedby"],R.id,t.isInvalid?P:null,S].filter(
12Boolean).join(" ")||void 0}),descriptionProps:R,isDisabled:h,isSelected:g,isPressed:y||v}}({...z(e),children:"function"==typeof e.children||e.children},n,l);return c.default.createElement(cA.Provider,{value:{...i,inputRef:l,defaultClassName:"react-aria-Radio"}},c.default.createElement(cI,{...e,ref:t}))}),cA=(0,c.createContext)(null),cI=(0,c.forwardRef)(function(e,t){let{labelProps:a,inputProps:r,isSelected:n,isDisabled:l,isPressed:i,defaultClassName:o,inputRef:s}=(0,c.useContext)(cA),u=c.default.useContext(cF),{isFocused:d,isFocusVisible:m,focusProps:p}=t1(),h=l||u.isReadOnly,{hoverProps:g,isHovered:f}=t6({...e,isDisabled:h}),y=K({...e,defaultClassName:o,values:{isSelected:n,isPressed:i,isHovered:f,isFocused:d,isFocusVisible:m,isDisabled:l,isReadOnly:u.isReadOnly,isInvalid:u.isInvalid,isRequired:u.isRequired}}),b=X(e,{global:!0});return delete b.id,delete b.onClick,c.default.createElement(L.label,{...N(b,a,g,y),ref:t,"data-selected":n||void 0,"data-pressed":i||void 0,"data-hovered":f||void 0,"data-focused":d||void 0,"data-focus-visible":m||void 0,"data-disabled":l||void 0,"data-readonly":u.isReadOnly||void 0,"data-invalid":u.isInvalid||void 0,"data-required":u.isRequired||void 0},c.default.createElement(lz,{elementType:"span"},c.default.createElement("input",{...N(r,p),ref:s})),y.children)}),cz=(0,c.forwardRef)(({label:e,description:t,children:a,orientation:r="vertical",className:n,headless:l,...i},o)=>l?(0,u.jsx)(cK,{ref:o,className:n,...i,children:a}):(0,u.jsxs)(cK,{ref:o,className:at("flex flex-col gap-2",n),...i,children:[e?(0,u.jsx)("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:e}):null,t?(0,u.jsx)("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:t}):null,(0,u.jsx)("div",{className:at("flex gap-3","vertical"===r?"flex-col":"flex-row"),children:a})]}));cz.displayName="RadioGroup";let cV=at("flex items-center justify-center shrink-0","size-5 rounded-full border-2 border-gray-300 transition-colors duration-150","group-data-pressed:border-gray-400","group-data-selected:border-blue-600","dark:border-gray-500 dark:group-data-selected:border-blue-600"),cj=(0,c.forwardRef)(({children:e,className:t,headless:a,...r},n)=>a?(0,u.jsx)(cB,{ref:n,className:t,...r,children:e}):(0,u.jsx)(cB,{ref:n,className:at("group relative flex items-center gap-2 cursor-pointer","data-disabled:opacity-50 data-disabled:cursor-not-allowed",aa,t),...r,children:({isSelected:t})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:cV,children:(0,u.jsx)("div",{className:at("size-2.5 rounded-full bg-blue-600","transition-transform duration-150 ease-[
12cubic-bezier(0.2,_0.8,_0.4,_1)]",t?"scale-100 opacity-100":"scale-0 opacity-0")})}),e?(0,u.jsx)("span",{className:"text-sm text-gray-700 dark:text-gray-200",children:e}):null]})}));cj.displayName="Radio",e.s(["Radio",0,cj,"RadioGroup",0,cz],877468);var cL={};function cO(e){if(null!=e)return e.toString()}cL={"ar-AE":{"Clear search":"مسح البحث"},"bg-BG":{"Clear search":"Изчистване на търсене"},"cs-CZ":{"Clear search":"Vymazat hledání"},"da-DK":{"Clear search":"Ryd søgning"},"de-DE":{"Clear search":"Suche zurücksetzen"},"el-GR":{"Clear search":"Απαλοιφή αναζήτησης"},"en-US":{"Clear search":"Clear search"},"es-ES":{"Clear search":"Borrar búsqueda"},"et-EE":{"Clear search":"Tühjenda otsing"},"fi-FI":{"Clear search":"Tyhjennä haku"},"fr-FR":{"Clear search":"Effacer la recherche"},"he-IL":{"Clear search":"נקה חיפוש"},"hr-HR":{"Clear search":"Obriši pretragu"},"hu-HU":{"Clear search":"Keresés törlése"},"it-IT":{"Clear search":"Cancella ricerca"},"ja-JP":{"Clear search":"検索をクリア"},"ko-KR":{"Clear search":"검색 지우기"},"lt-LT":{"Clear search":"Išvalyti iešką"},"lv-LV":{"Clear search":"Notīrīt meklēšanu"},"nb-NO":{"Clear search":"Tøm søk"},"nl-NL":{"Clear search":"Zoekactie wissen"},"pl-PL":{"Clear search":"Wyczyść zawartość wyszukiwania"},"pt-BR":{"Clear search":"Limpar pesquisa"},"pt-PT":{"Clear search":"Limpar pesquisa"},"ro-RO":{"Clear search":"Ştergeţi căutarea"},"ru-RU":{"Clear search":"Очистить поиск"},"sk-SK":{"Clear search":"Vymazať vyhľadávanie"},"sl-SI":{"Clear search":"Počisti iskanje"},"sr-SP":{"Clear search":"Obriši pretragu"},"sv-SE":{"Clear search":"Rensa sökning"},"tr-TR":{"Clear search":"Aramayı temizle"},"uk-UA":{"Clear search":"Очистити пошук"},"zh-CN":{"Clear search":"清除搜索"},"zh-TW":{"Clear search":"清除搜尋條件"}};let cU=(0,c.createContext)(null),cH=H(function(e,t){[e,t]=A(e,t,cU);let{validationBehavior:a}=B(ia)||{},r=e.validationBehavior??a??"native",n=(0,c.useRef)(null);[e,n]=A(e,n,oS);let[l,i]=I(!e["aria-label"]&&!e["aria-labelledby"]),o=function(e){let[t,a]=lN(cO(e.value),cO(e.defaultValue)||"",e.onChange);return{value:t,setValue:a}}({...e,validationBehavior:r}),{labelProps:s,inputProps:u,clearButtonProps:d,descriptionProps:p,errorMessageProps:h,...g}=function(e,t,a){var r;let n=rn((r=cL)&&r.__esModule?r.default:r,"@react-aria/searchfield"),{isDisabled:l,isReadOnly:i,onSubmit:o,onClear:s,type:u="search"}=e,{labelProps:d,inputProps:c,descriptionProps:p,errorMessageProps:h,...g}=iU({...e,value:t.value,onChange:t.setValue,onKeyDown:i?e.onKeyDown:m(e=>{let r=e.key;"Enter"===r&&(l||i)&&e.preventDefault(),l||i||("Enter"===r&&o&&(e.preventDefault(),o(t.value)),"Escape"===r&&(""!==t.value||a.current&&""!==a.current.value?(e.preventDefault(),t.setValue(""),s&&s()):e.continuePropagation()))},e.onKeyDown),type:u},a);return{labelProps:d,inputProps:{...c,defaultValue:void 0},clearButtonProps:{"aria-label":n.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:l||i,onPress:()=>{t.setValue(""),s&&s()},onPressStart:()=>{a.current?.focus()}},descriptionProps:p,errorMessageProps:h,...g}}({...z(e),label:i,validationBehavior:r},o,n),f=K({...e,values:{isEmpty:""===o.value,isDisabled:e.isDisabled||!1,isInvalid:g.isInvalid||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,state:o},defaultClassName:"react-aria-SearchField"}),y=X(e,{global:!0});return delete y.id,c.default.createElement(L.div,{...y,...f,ref:t,slot:e.slot||void 0,"data-empty":""===o.value||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":g.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},c.default.createElement(F,{values:[[Z,{...s,ref:l}],[iw,{...u,ref:n}],[t7,d],[nf,{slots:{description:p,errorMessage:h}}],[ij,{isInvalid:g.isInvalid,isDisabled:e.isDisabled||!1}],[lX,g]]},f.children))});(0,c.forwardRef)(({label:e,placeholder:t="Search...",size:a="md",className:r,...n},l)=>{let i={sm:{input:"h-8 pl-8 pr-7 text-xs",icon:"left-2.5 size-3.5",clear:"right-1.5 size-3.5"},md:{input:"h-9 pl-9 pr-8 text-sm",icon:"left-3 size-4",clear:"right-2 size-4"},lg:{input:"h-10 pl-10 pr-9 text-base",icon:"left-3 size-5",clear:"right-2.5 size-5"}};return(0,u.jsx)(cH,{ref:l,className:at("flex flex-col gap-1",r),...n,children:({isEmpty:r})=>(0,u.jsxs)(u.Fragment,{children:[e?(0,u.jsx)(W,{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:e}):null,(0,u.jsxs)("div",{className:"relative",children:[(0,u.jsx)("svg",{className:at("absolute top-1/2 -translate-y-1/2 text-gray-400",i[a].icon),viewB
12ox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z",clipRule:"evenodd"})}),(0,u.jsx)(iE,{placeholder:t,className:at("w-full border border-gray-300 rounded-lg bg-white text-gray-900 outline-none",i[a].input,"data-focus:border-blue-600 data-focus:ring-1 data-focus:ring-blue-600","data-disabled:bg-gray-100 data-disabled:opacity-60","placeholder:text-gray-400","[&::-webkit-search-cancel-button]:appearance-none","dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100","dark:placeholder:text-gray-500",aa)}),(0,u.jsx)(au,{slot:"clear",variant:"ghost",size:"icon-sm","aria-label":"Clear search",className:at("absolute top-1/2 -translate-y-1/2 rounded-md text-gray-400","transition-all duration-150",i[a].clear,r?"opacity-0 scale-[0.8] pointer-events-none":"opacity-100 scale-100"),children:(0,u.jsx)("svg",{className:"size-4",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})})})]})]})})}).displayName="SearchField";var cZ={};cZ={"ar-AE":{colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"},"bg-BG":{colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"},"cs-CZ":{colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"},"da-DK":{colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"},"de-DE":{colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"},"el-GR":{colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"},"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":{colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"},"et-EE":{colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"},"fi-FI":{colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"},"fr-FR":{colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"},"he-IL":{colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"},"hr-HR":{colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"},"hu-HU":{colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"},"it-IT":{colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"},"ja-JP":{colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"},"ko-KR":{colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"},"lt-LT":{colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"},"lv-LV":{colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"},"nb-NO":{colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"},"nl-NL":{colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"},"pl-PL":{colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"},"pt-BR":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"pt-PT":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"ro-RO":{colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"},"ru-RU":{colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"},"sk-SK":{colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"},"sl-SI":{colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"},"sr-SP":{colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"},"sv-SE":{colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"},"tr-TR":{colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"},"uk-UA":{colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"},"zh-CN":{colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"},"zh-TW":{colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"}};let cW=new WeakMap;function cG(e){let{state:t,triggerRef:a,label:r,name:n,form:l,isDisabled:i}=e,o=(0,c.useRef)(null),s=(0,c.useRef)(null),{containerProps:u,selectProps:d}=function(e,t,a){let r=cW.get(t)||{},{autoComplete:n,name:l=r.name,form:i=r.form,isDisabled:o=r.isDisabled}=e,{validationBehavior:s,isRequired:u}=r,{visuallyHiddenProps:d}=lI({style:{position:"fixed",top:0,left:0}});ii(e.selectRef,t.defaultValue,t.setValue),io({validationBehavior:s,focus:()=>a.current?.focus()},t,e.selectRef);let m=t.setValue,p=(0,c.useCallback)(e=>{let t=eT(e);t.multiple?m(Array.from(t.selectedOptions,e=>e.value)):m(e.currentTarget.value)},[m]);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:n,disabled:o,multiple:"multiple"===t.selectionManager.selectionMode,required:"native"===s&&u,name:l,form:i,value:t.value??"",onChange:p,onInput:p}}}({...e,selectRef:t.collection.size<=300?o:s},t,a),m=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return c.default.createElement("div",{...u,"data-testid":"hidden-select-container"},c.default.createElement("label",null,r,c.default.createElement("select",{...d,ref:o},c.default.createElement("option",{value:"",label:" "}," "),[...t.collection.getKeys()].map(e=>{let a=t.collection.getItem(e);if(a&&"item"===a.type)return c.default.createElement("option",{key:a.key,value:a.key},a.textValue)}),0===t.collection.size&&n&&m.map((e,t)=>c.default.createElement("option",{key:t,value:e??""})))));if(n){let{validationBehavior:e}=cW.get(t)||{};0===m.length&&(m=[null]);let a=m.map((t,a)=>{let r={type:"hidden",autoComplete:d.autoComplete,name:n,form:l,disabled:i,value:t??""};return"native"===e?c.default.createElement("input",{key:a,...r,ref:0===a?s:null,
12style:{display:"none"},type:"text",required:0===a&&d.required,onChange:()=>{}}):c.default.createElement("input",{key:a,...r,ref:0===a?s:null})});return c.default.createElement(c.default.Fragment,null,a)}return null}let cq=(0,c.createContext)(null),c_=(0,c.createContext)(null),cY=H(function(e,t){[e,t]=A(e,t,cq);let{children:a,isDisabled:r=!1,isInvalid:n=!1,isRequired:l=!1}=e,i=(0,c.useMemo)(()=>"function"==typeof a?a({isOpen:!1,isDisabled:r,isInvalid:n,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):a,[a,r,n,l]);return c.default.createElement(aW,{content:i},a=>c.default.createElement(cQ,{props:e,collection:a,selectRef:t}))}),cJ=[Z,t7,nf];function cQ({props:e,selectRef:t,collection:a}){let{validationBehavior:r}=B(ia)||{},n=e.validationBehavior??r??"native",l=function(e){let{selectionMode:t="single",shouldCloseOnSelect:a="single"===t}=e,r=sL(e),[n,l]=(0,c.useState)(null),i=(0,c.useMemo)(()=>void 0!==e.defaultValue?e.defaultValue:"single"===t?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,t]),[o,s]=lN((0,c.useMemo)(()=>void 0!==e.value?e.value:"single"===t?e.selectedKey:void 0,[e.value,e.selectedKey,t]),i,e.onChange),u="single"===t&&Array.isArray(o)?o[0]:o,d=a=>{if("single"===t){let t=Array.isArray(a)?a[0]??null:a;s(t),t!==u&&e.onSelectionChange?.(t)}else{let e=[];Array.isArray(a)?e=a:null!=a&&(e=[a]),s(e)}},m=sD({...e,selectionMode:t,disallowEmptySelection:"single"===t,allowDuplicateSelectionEvents:!0,selectedKeys:(0,c.useMemo)(()=>(function(e){if(void 0!==e)return null===e?[]:Array.isArray(e)?e:[e]})(u),[u]),onSelectionChange:e=>{"all"!==e&&("single"===t?d(e.values().next().value??null):d([...e]),a&&r.close(),g.commitValidation())}}),p=m.selectionManager.firstSelectedKey,h=(0,c.useMemo)(()=>[...m.selectionManager.selectedKeys].map(e=>m.collection.getItem(e)).filter(e=>null!=e),[m.selectionManager.selectedKeys,m.collection]),g=l7({...e,value:Array.isArray(u)&&0===u.length?null:u}),[f,y]=(0,c.useState)(!1),[b]=(0,c.useState)(u);return{...g,...m,...r,value:u,defaultValue:i??b,setValue:d,selectedKey:p,setSelectedKey:d,selectedItem:h[0]??null,selectedItems:h,defaultSelectedKey:e.defaultSelectedKey??("single"===e.selectionMode?b:null),focusStrategy:n,open(t=null){(0!==m.collection.size||e.allowsEmptyCollection)&&(l(t),r.open())},toggle(t=null){(0!==m.collection.size||e.allowsEmptyCollection)&&(l(t),r.toggle())},isFocused:f,setFocused:y}}({...e,collection:a,children:void 0,validationBehavior:n}),{isFocusVisible:i,focusProps:o}=t1({within:!0}),s=(0,c.useRef)(null),[u,d]=I(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:p,triggerProps:h,valueProps:g,menuProps:f,descriptionProps:y,errorMessageProps:b,hiddenSelectProps:v,...x}=function(e,t,a){let{keyboardDelegate:r,isDisabled:n,isRequired:l,name:i,form:o,validationBehavior:s="aria"}=e,u=o8({usage:"search",sensitivity:"base"}),d=(0,c.useMemo)(()=>r||new o7(t.collection,t.disabledKeys,a,u),[r,t.collection,t.disabledKeys,u,a]),{menuTriggerProps:p,menuProps:h}=sz({isDisabled:n,type:"listbox"},t,a),{typeSelectProps:g}=o3({keyboardDelegate:d,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{isInvalid:f,validationErrors:y,validationDetails:b}=t.displayValidation,{labelProps:v,fieldProps:x,descriptionProps:D,errorMessageProps:k}=il({...e,labelElementType:"span",isInvalid:f,errorMessage:e.errorMessage||y});"multiple"===t.selectionManager.selectionMode&&(g={});let C=X(e,{labelable:!0}),w=N(g,p,x),S=E();return cW.set(t,{isDisabled:n,isRequired:l,name:i,form:o,validationBehavior:s}),{labelProps:{...v,onClick:()=>{e.isDisabled||(a.current?.focus(),tg("keyboard"))}},triggerProps:N(C,{...w,isDisabled:n,onKeyDown:m(w.onKeyDown,e=>{if("multiple"!==t.selectionManager.selectionMode)switch(e.key){case"ArrowLeft":{e.preventDefault();let a=null!=t.selectedKey?d.getKeyAbove?.(t.selectedKey):d.getFirstKey?.();null!=a&&t.setSelectedKey(a);break}case"ArrowRight":{e.preventDefault();let a=null!=t.selectedKey?d.getKeyBelow?.(t.selectedKey):d.getFirstKey?.();null!=a&&t.setSelectedKey(a)}}},e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[S,w["aria-labelledby"],w["aria-label"]&&!w["aria-labelledby"]?w.id:null].filter(
12Boolean).join(" "),onFocus(a){t.isFocused||(e.onFocus&&e.onFocus(a),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(a){t.isOpen||(e.onBlur&&e.onBlur(a),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:S},menuProps:{...h,onAction:void 0,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:a=>{eM(a.currentTarget,a.relatedTarget)||(e.onBlur&&e.onBlur(a),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[x["aria-labelledby"],w["aria-label"]&&!x["aria-labelledby"]?w.id:null].filter(Boolean).join(" ")},descriptionProps:D,errorMessageProps:k,isInvalid:f,validationErrors:y,validationDetails:b,hiddenSelectProps:{isDisabled:n,name:i,label:e.label,state:t,triggerRef:a,form:o}}}({...z(e),label:d,validationBehavior:n},l,s),D=(0,c.useMemo)(()=>({isOpen:l.isOpen,isFocused:l.isFocused,isFocusVisible:i,isDisabled:e.isDisabled||!1,isInvalid:x.isInvalid||!1,isRequired:e.isRequired||!1}),[l.isOpen,l.
12isFocused,i,e.isDisabled,x.isInvalid,e.isRequired]),k=K({...e,values:D,defaultClassName:"react-aria-Select"}),C=X(e,{global:!0});delete C.id;let w=(0,c.useRef)(null);return c.default.createElement(F,{values:[[cq,e],[c_,l],[cX,g],[Z,{...p,ref:u,elementType:"span"}],[t7,{...h,ref:s,isPressed:l.isOpen,autoFocus:e.autoFocus}],[s0,l],[u$,{trigger:"Select",triggerRef:s,scrollRef:w,placement:"bottom start","aria-labelledby":f["aria-labelledby"],clearContexts:cJ}],[sE,{...f,ref:w}],[sS,l],[nf,{slots:{description:y,errorMessage:b}}],[lX,x]]},c.default.createElement(L.div,{...N(C,k,o),ref:t,slot:e.slot||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":i||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},k.children,c.default.createElement(cG,{...v,autoComplete:e.autoComplete})))}let cX=(0,c.createContext)(null),c0=H(function(e,t){var a;[e,t]=A(e,t,cX);let r=(0,c.useContext)(c_),{placeholder:n}=B(cq),l=r.selectedItems.map(e=>{let t=e.props?.children;return"function"==typeof t&&(t=t({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"})),t}),i=function(e={}){let{locale:t}=ed();return(0,c.useMemo)(()=>new Intl.ListFormat(t,e),[t,e])}(),o=(0,c.useMemo)(()=>r.selectedItems.map(e=>e?.textValue),[r.selectedItems]),s=r.selectionManager.selectionMode,u=(0,c.useMemo)(()=>"single"===s?o[0]??"":i.format(o),[s,i,o]),d=(0,c.useMemo)(()=>{if("single"===s)return l[0];let e=i.formatToParts(o);if(0===e.length)return null;let t=0;return e.map(e=>"element"===e.type?c.default.createElement(c.Fragment,{key:t},l[t++]):e.value)},[s,i,o,l]),m=rn((a=cZ)&&a.__esModule?a.default:a,"react-aria-components"),p=K({...e,defaultChildren:d??n??m.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:r.selectedItems[0]?.value??null,selectedItems:(0,c.useMemo)(()=>r.selectedItems.map(e=>e.value??null),[r.selectedItems]),selectedText:u,isPlaceholder:0===r.
12selectedItems.length,state:r}}),h=X(e,{global:!0});return c.default.createElement(L.span,{ref:t,...h,...p,"data-placeholder":0===r.selectedItems.length||void 0},c.default.createElement(nf.Provider,{value:void 0},p.children))});function c1(){return(0,u.jsx)("svg",{className:"size-4 text-gray-400 shrink-0",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"})})}(0,c.forwardRef)(function({label:e,description:t,placeholder:a,children:r,className:n,placement:l,...i},o){return(0,u.jsxs)(cY,{ref:o,placeholder:a,className:at("flex flex-col gap-1",n),...i,children:[e?(0,u.jsx)(uO,{children:e}):null,t?(0,u.jsx)("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:t}):null,(0,u.jsxs)(t9,{className:at("flex items-center justify-between gap-2 w-full","border border-gray-300 rounded-lg px-3 h-9 bg-white text-sm text-gray-900","data-hover:border-gray-400","data-disabled:bg-gray-100 data-disabled:opacity-60 data-disabled:cursor-not-allowed","dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100","dark:data-hover:border-gray-500",aa),children:[(0,u.jsx)(c0,{className:"truncate placeholder-shown:text-gray-400 dark:placeholder-shown:text-gray-500",children:({defaultChildren:e})=>e}),(0,u.jsx)(c1,{})]}),(0,u.jsx)(uN,{placement:l,className:at("min-w-[var(--trigger-width)] w-max bg-white border border-gray-200 rounded-lg shadow-lg overflow-auto max-h-60","dark:bg-gray-900 dark:border-gray-700","data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95","data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95","origin-top duration-150"),children:(0,u.jsx)(sP,{className:"p-1 outline-none",children:r})})]})}).displayName="Select",e.s(["Skeleton",0,function({className:e,width:t,height:a}){return(0,u.jsx)("div",{className:at("animate-pulse rounded-lg bg-gray-200 dark:bg-gray-700",e),style:{width:t,height:a}})}],913107);let c4=new WeakMap;function c3(e,t){let a=c4.get(e);if(!a)throw Error("Unknown slider state");return`${a.id}-${t}`}function c5(e){let{onMoveStart:t,onMove:a,onMoveEnd:r}=e,n=(0,c.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:l,removeGlobalListener:i}=tj(),o=tV((0,c.useCallback)((e,r,l,i)=>{(0!==l||0!==i)&&(n.current.didMove||(n.current.didMove=!0,t?.({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),a?.({type:"move",pointerType:r,deltaX:l,deltaY:i,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},[t,a,n])),s=tV((0,c.useCallback)((e,t)=>{tF(),n.current.didMove&&r?.({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},[r,n]));return{moveProps:(0,c.useMemo)(()=>{let e={},t=()=>{tT(),n.current.didMove=!1};{let a=e=>{if(e.pointerId===n.current.id){let t=e.pointerType||"mouse";o(e,t,e.pageX-(n.current.lastPosition?.pageX??0),e.pageY-(n.current.lastPosition?.pageY??0)),n.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},r=e=>{if(e.pointerId===n.current.id){let t=e.pointerType||"mouse";s(e,t),n.current.id=null;let l=eN(eT(e));i(l,"pointermove",a,!1),i(l,"pointerup",r,!1),i(l,"pointercancel",r,!1)}};e.onPointerDown=e=>{if(0===e.button&&null==n.current.id){t(),e.stopPropagation(),e.preventDefault(),n.current.lastPosition={pageX:e.pageX,pageY:e.pageY},n.current.id=e.pointerId;let i=eN(eT(e));l(i,"pointermove",a,!1),l(i,"pointerup",r,!1),l(i,"pointercancel",r,!1)}}}let a=(e,a,r)=>{t(),o(e,"keyboard",a,r),s(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),a(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),a(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),a(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),a(e,0,1)}},e},[l,i,n])}}function c2(e,t,a){return e[t]===a?e:[...e.slice(0,t),a,...e.slice(t+1)]}function c6(e){if(null!=e)return Array.isArray(e)?e:[e]}function c7(e,t,a){return r=>{"number"==typeof e||"number"==typeof t?a?.(r[0]):a?.(r)}}let c9=(0,c.createContext)(null),c8=(0,c.createContext)(null),me=(0,c.createContext)(null),mt=(0,c.createContext)(null),ma=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,c9);let a=(0,c.useRef)(null),r=ef(e.formatOptions),n=function(e){let{isDisabled:t=!1,minValue:a=0,maxValue:r=100,numberFormatter:n,step:l=1,orientation:i="horizontal"}=e,o=(0,c.useMemo)(()=>{let e=(r-a)/10;return Math.max(e=ev(e,0,e+l,l),l)},[l,r,a]),s=(0,c.useCallback)(e=>e?.map((t,n)=>
12ev(t,0===n?a:e[n-1],n===e.length-1?r:e[n+1],l)),[a,r,l]),u=(0,c.useMemo)(()=>s(c6(e.value)),[e.value,s]),d=(0,c.useMemo)(()=>s(c6(e.defaultValue)??[a]),[e.defaultValue,a,s]),m=c7(e.value,e.defaultValue,e.onChange),p=c7(e.value,e.defaultValue,e.onChangeEnd),[h,g]=lN(u,d,m),[f]=(0,c.useState)(h),[y,b]=(0,c.useState)(Array(h.length).fill(!1)),v=(0,c.useRef)(Array(h.length).fill(!0)),[x,D]=(0,c.useState)(void 0),k=(0,c.useRef)(h),C=(0,c.useRef)(y);function w(e){return(e-a)/(r-a)}function E(e){return 0===e?a:h[e-1]}function S(e){return e===h.length-1?r:h[e+1]}function P(e){return v.current[e]}function $(e,a){if(t||!P(e))return;a=ev(a,E(e),S(e),l);let r=c2(k.current,e,a);k.current=r,g(r)}let R=(0,c.useRef)(null);function N(e=h){switch("number"==typeof e&&(e=[e]),e.length){case 0:return"";case 1:return n.format(e[0]);case 2:return n.formatRange(e[0],e[1]);default:{let t=e.map(e=>n.format(e)),a=R.current;return a&&a.resolvedOptions().locale===n.resolvedOptions().locale||(a=R.current=new Intl.ListFormat(n.resolvedOptions().locale,{type:"unit"})),a.format(t)}}}function M(e){return ey(Math.round((e*(r-a)+a-a)/l)*l+a,a,r)}return{values:h,defaultValues:void 0!==e.defaultValue?d:f,getThumbValue:e=>h[e],setThumbValue:$,setThumbPercent:function(e,t){$(e,M(t))},isThumbDragging:e=>y[e],setThumbDragging:function(e,a){var r;if(t||!P(e))return;a&&(k.current=h);let n=C.current[e];C.current=c2(C.current,e,a),r=C.current,C.current=r,b(r),p&&n&&!C.current.some(Boolean)&&p(k.current)},focusedThumb:x,setFocusedThumb:D,getThumbPercent:e=>w(h[e]),getValuePercent:w,getThumbValueLabel:e=>N(h[e]),getFormattedValue:N,getThumbMinValue:E,getThumbMaxValue:S,getPercentValue:M,isThumbEditable:P,setThumbEditable:function(e,t){v.current[e]=t},incrementThumb:function(e,t=1){let n=Math.max(t,l);$(e,ev(h[e]+n,a,r,l))},decrementThumb:function(e,t=1){let n=Math.max(t,l);$(e,ev(h[e]-n,a,r,l))},step:l,pageSize:o,orientation:i,isDisabled:t}}({...e,numberFormatter:r}),[l,i]=I(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:o,trackProps:s,labelProps:u,outputProps:d}=function(e,t,a){let{labelProps:r,fieldProps:n}=et(e),l="vertical"===e.orientation;c4.set(t,{id:r.id??n.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:i}=ed(),{addGlobalListener:o,removeGlobalListener:s}=tj(),u=(0,c.useRef)(null),d="rtl"===i,m=(0,c.useRef)(null),{moveProps:p}=c5({onMoveStart(){m.current=null},onMove({deltaX:e,deltaY:r}){if(!a.current)return;let{height:n,width:i}=a.current.getBoundingClientRect(),o=l?n:i;null==m.current&&null!=u.current&&(m.current=t.getThumbPercent(u.current)*o);let s=l?r:e;if((l||d)&&(s=-s),m.current+=s,null!=u.current&&a.current){let e=ey(m.current/o,0,1);t.setThumbPercent(u.current,e)}},onMoveEnd(){null!=u.current&&(t.setThumbDragging(u.current,!1),u.current=null)}}),h=(0,c.useRef)(void 0),g=(r,n,s,d)=>{if(a.current&&!e.isDisabled&&t.values.every((e,a)=>!t.isThumbDragging(a))){let e,{height:c,width:m,top:p,left:g}=a.current.getBoundingClientRect(),y=((l?d:s)-(l?p:g))/(l?c:m);("rtl"===i||l)&&(y=1-y);let b=t.getPercentValue(y),v=t.values.findIndex(e=>b-e<0);(e=0===v?v:-1===v?t.values.length-1:Math.abs(t.values[v-1]-b)<Math.abs(t.values[v]-b)?v-1:v)>=0&&t.isThumbEditable(e)?(r.preventDefault(),u.current=e,t.setFocusedThumb(e),h.current=n,t.setThumbDragging(u.current,!0),t.setThumbValue(e,b),o(window,"mouseup",f,!1),o(window,"touchend",f,!1),o(window,"pointerup",f,!1)):u.current=null}},f=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===h.current&&(null!=u.current&&(t.setThumbDragging(u.current,!1),u.current=null),s(window,"mouseup",f,!1),s(window,"touchend",f,!1),s(window,"pointerup",f,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{document.getElementById(c3(t,0))?.focus(),tg("keyboard")}),{labelProps:r,groupProps:{role:"group",...n},trackProps:N({onMouseDown(e){0!==e.button||e.altKey||e.ctrlKey||e.metaKey||g(e,void 0,e.clientX,e.clientY)},onPointerDown(e){"mouse"===e.pointerType&&(0!==e.button||e.altKey||e.ctrlKey||e.metaKey)||g(e,e.pointerId,e.clientX,e.clientY)},onTouchStart(e){g(e,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},p),outputProps:{htmlFor:t.values.map((e,a)=>c3(t,a)).join(" "),"aria-live":"off"}}}({...e,label:i},n,a),m=K({...e,values:{orientation:n.orientation,isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-Slider"}),p=X(e,{global:!0});return delete p.id,c.default.createElement(F,{values:[[c8,n],[me,{...s,ref:a}],[mt,d],[Z,{...u,ref:l}]]},c.default.createElement(L.div,{...N(p,m,o),ref:t,slot:e.slot||void 0,"data-orientation":n.orientation,"data-disabled":n.isDisabled||void 0}))}
12),mr=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,mt);let{children:a,style:r,className:n,render:l,...i}=e,o=(0,c.useContext)(c8),s=K({className:n,style:r,children:a,render:l,defaultChildren:o.getFormattedValue(),defaultClassName:"react-aria-SliderOutput",values:{orientation:o.orientation,isDisabled:o.isDisabled,state:o}});return c.default.createElement(L.output,{...i,...s,ref:t,"data-orientation":o.orientation||void 0,"data-disabled":o.isDisabled||void 0})}),mn=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,me);let a=(0,c.useContext)(c8),{onHoverStart:r,onHoverEnd:n,onHoverChange:l,...i}=e,{hoverProps:o,isHovered:s}=t6({onHoverStart:r,onHoverEnd:n,onHoverChange:l}),u=K({...e,defaultClassName:"react-aria-SliderTrack",values:{orientation:a.orientation,isDisabled:a.isDisabled,isHovered:s,state:a}});return c.default.createElement(L.div,{...N(i,o),...u,ref:t,"data-hovered":s||void 0,"data-orientation":a.orientation||void 0,"data-disabled":a.isDisabled||void 0})}),ml=(0,c.forwardRef)(function(e,t){let{inputRef:a=null}=e,r=(0,c.useContext)(c8),{ref:n}=B(me),{index:l=0}=e,i=(0,c.useRef)(null),o=a||i,[s,u]=I(!e["aria-label"]&&!e["aria-labelledby"]),{thumbProps:d,inputProps:m,labelProps:p,isDragging:h,isFocused:g,isDisabled:f}=function(e,t){let{index:a=0,isRequired:r,validationState:n,isInvalid:l,trackRef:i,inputRef:o,orientation:s=t.orientation,name:u,form:d}=e,m=e.isDisabled||t.isDisabled,p="vertical"===s,{direction:h}=ed(),{addGlobalListener:g,removeGlobalListener:f}=tj(),y=c4.get(t),{labelProps:b,fieldProps:v}=et({...e,id:c3(t,a),"aria-labelledby":`${y.id} ${e["aria-labelledby"]??""}`.trim()}),x=t.values[a],D=(0,c.useCallback)(()=>{o.current&&eP(o.current)},[o]),k=t.focusedThumb===a;(0,c.useEffect)(()=>{k&&D()},[k,D]);let C="rtl"===h,w=(0,c.useRef)(null),{keyboardProps:E}=tw({onKeyDown(e){let{getThumbMaxValue:r,getThumbMinValue:n,decrementThumb:l,incrementThumb:i,setThumbValue:o,setThumbDragging:s,pageSize:u}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(e.key))return void e.continuePropagation();switch(e.preventDefault(),s(a,!0),e.key){case"PageUp":i(a,u);break;case"PageDown":l(a,u);break;case"Home":o(a,n(a));break;
12case"End":o(a,r(a))}s(a,!1)}}),{moveProps:S}=c5({onMoveStart(){w.current=null,t.setThumbDragging(a,!0)},onMove({deltaX:e,deltaY:r,pointerType:n,shiftKey:l}){let{getThumbPercent:o,setThumbPercent:s,decrementThumb:u,incrementThumb:d,step:c,pageSize:m}=t;if(!i.current)return;let{width:h,height:g}=i.current.getBoundingClientRect(),f=p?g:h;if(null==w.current&&(w.current=o(a)*f),"keyboard"===n)e>0&&C||e<0&&!C||r>0?u(a,l?m:c):d(a,l?m:c);else{let t=p?r:e;(p||C)&&(t=-t),w.current+=t,s(a,ey(w.current/f,0,1))}},onMoveEnd(){t.setThumbDragging(a,!1)}});t.setThumbEditable(a,!m);let{focusableProps:P}=t$(N(e,{onFocus:()=>t.setFocusedThumb(a),onBlur:()=>t.setFocusedThumb(void 0)}),o),$=(0,c.useRef)(void 0),R=e=>{D(),$.current=e,t.setThumbDragging(a,!0),g(window,"mouseup",M,!1),g(window,"touchend",M,!1),g(window,"pointerup",M,!1)},M=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===$.current&&(D(),t.setThumbDragging(a,!1),f(window,"mouseup",M,!1),f(window,"touchend",M,!1),f(window,"pointerup",M,!1))},T=t.getThumbPercent(a);(p||"rtl"===h)&&(T=1-T);let F=m?{}:N(E,S,{onMouseDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||R()},onPointerDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||R(e.pointerId)},onTouchStart:e=>{R(e.changedTouches[0].identifier)}});return ii(o,t.defaultValues[a],e=>{t.setThumbValue(a,e)}),{inputProps:N(P,v,{type:"range",tabIndex:m?void 0:0,min:t.getThumbMinValue(a),max:t.getThumbMaxValue(a),step:t.step,value:x,name:u,form:d,disabled:m,"aria-orientation":s,"aria-valuetext":t.getThumbValueLabel(a),"aria-required":r||void 0,"aria-invalid":l||"invalid"===n||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[y["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[y["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:e=>{t.setThumbValue(a,parseFloat(eT(e).value))}}),thumbProps:{...F,style:{position:"absolute",[p?"top":"left"]:`${100*T}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:b,isDragging:t.isThumbDragging(a),isDisabled:m,isFocused:k}}({...e,index:l,trackRef:n,inputRef:o,label:u},r),{focusProps:y,isFocusVisible:b}=t1(),{hoverProps:v,isHovered:x}=t6(e),D=K({...e,defaultClassName:"react-aria-SliderThumb",values:{state:r,isHovered:x,isDragging:h,isFocused:g,isFocusVisible:b,isDisabled:f}}),k=X(e,{global:!0});return delete k.id,c.default.createElement(L.div,{...N(k,d,v),...D,ref:t,style:{...d.style,...D.style},"data-hovered":x||void 0,"data-dragging":h||void 0,"data-focused":g||void 0,"data-focus-visible":b||void 0,"data-disabled":f||void 0},c.default.createElement(lz,null,c.default.createElement("input",{ref:o,...N(m,y)})),c.default.createElement(F,{values:[[Z,{...p,ref:s}]]},D.children))}),mi="relative h-1.5 w-full rounded-full bg-gray-200 dark:bg-gray-700",mo=at("size-5 bg-white border-2 border-blue-600 rounded-full shadow-sm cursor-pointer top-1/2","data-dragging:bg-blue-50 data-dragging:scale-110","data-disabled:opacity-50 data-disabled:cursor-not-allowed","transition-transform",aa),ms=(0,c.forwardRef)(({label:e,showOutput:t=!0,headless:a=!1,children:r,className:n,...l},i)=>a?(0,u.jsx)(ma,{ref:i,className:n,...l,children:r}):(0,u.jsxs)(ma,{ref:i,className:at("flex flex-col gap-2 w-full",n),...l,children:[e||t?(0,u.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[e?(0,u.jsx)(W,{className:"font-medium text-gray-700 dark:text-gray-200",children:e}):null,t?(0,u.jsx)(mr,{className:"text-gray-500 dark:text-gray-400"}):null]}):null,(0,u.jsx)(mn,{className:mi,children:({state:e})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"absolute h-full bg-blue-600 rounded-full",style:{width:`${100*e.getThumbPercent(0)}%`}}),(0,u.jsx)(ml,{className:mo})]})})]}));ms.displayName="Slider",(0,c.forwardRef)(({label:e,showOutput:t=!1,step:a=1,value:r,onChange:n,onChangeEnd:l,minStepsBetweenThumbs:i,thumbLabels:o,renderThumbLabel:s,className:d,...c},m)=>{let p=e=>Array.isArray(e)?e:[e];return(0,u.jsxs)(ma,{ref:m,step:a,value:r,onChange:e=>{let t=p(e),[r,l]=t;i&&void 0!==r&&void 0!==l&&l-r<i*a||n?.(t)},onChangeEnd:l?e=>l(p(e)):void 0,className:at("flex flex-col gap-2 w-full",d),...c,children:[e||t?(0,u.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[e?(0,u.jsx)(W,{className:"font-medium text-gray-700 dark:text-gray-200",children:e}):null,t?(0,u.jsx)(mr,{className:"text-gray-500 dark:text-gray-400"}):null]}):null,(0,u.jsx)(mn,{className:mi,children:({state:e})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"absolute h-full bg-blue-600 rounded-full",style:{left:`${100*e.getThumbPercent(0)}%`,width:`${(e.getThumbPercent(e.values.length-1)-e.getThumbPercent(0))*100}%`}}),e.values.map((t,a)=>(0,u.jsx)(ml,{index:a,"aria-label":o?.[a],className:mo,children:s?(0,u.jsx)("span",{className:"absolute -top-7 left-1/2 -translate-x-1/2 whitespace-nowrap rounded bg-gray-100 px-1.5 py-0.5 text-xs font-bold text-gray-700 dark:bg-gray-700 dark:text-gray-100",children:s(e.getThumbValue(a),a)}):null},a))]})})]})}).displayName="RangeSlider",e.s(["Slider",0,ms],215363);let mu=(0,c.createContext)(null),md=(0,c.createContext)(null),mc=(0,c.forwardRef)(function(e,t){let{inputRef:a=null,...r}=e;[e,t]=A(r,t,mu);let n=M(P(a,void 0!==e.inputRef?e.inputRef:null)),l=ic(e),i=function(e,t,a){let{labelProps:r,inputProps:n,isSelected:l,...i}=iu(e,t,a);return{labelProps:r,inputProps:{...n,role:"switch",checked:l},isSelected:l,...i}}({...z(e),children:"function"==typeof e.children||e.children},l,n);return c.default.createElement(F,{values:[[md,l],[mm,{...i,inputRef:n,defaultClassName:"react-aria-Switch"}]]},c.default.createElement(mp,{...e,ref:t}))}),mm=(0,c.createContext)(null),mp=(0,c.forwardRef)(function(e,t){let{labelProps:a,inputProps:r,isSelected:n,isDisabled:l,isReadOnly:i,isPressed:o,isInvalid:s,inputRef:u,defaultClassName:d,isRequired:m}=(0,c.useContext)(mm),{isFocused:p,isFocusVisible:h,focusProps:g}=t1(),f=l||i,y=(0,c.useContext)(md),{hoverProps:b,isHovered:v}=t6({...e,isDisabled:f}),x=K({...e,defaultClassName:d,values:{isSelected:n,isPressed:o,isHovered:v,isFocused:p,isFocusVisible:h,isDisabled:l,isReadOnly:i,isInvalid:s,isRequired:m||!1,state:y}}),D=X(e,{global:!0});return delete D.id,delete D.onClick,c.default.createElement(L.label,{...N(D,a,b,x),ref:t,slot:e.slot||void 0,"data-selected":n||void 0,"data-pressed":o||void 0,"data-hovered":v||void 0,"data-focused":p||void 0,"data-focus-visible":h||void 0,"data-disabled":l||void 0,"data-readonly":i||void 0,"data-invalid":s||void 0,"data-required":m||void 0},c.default.createElement(lz,{elementType:"span"},c.default.createElement("input",{...N(r,g),ref:u})),x.children)}),mh=(0,d.cva)(at("group relative flex items-center gap-2 cursor-pointer","data-disabled:opacity-50 data-disabled:cursor-not-allowed",aa)),mg={sm:"w-7 h-4 p-0.5",md:"w-9 h-5 p-0.5"},mf={sm:"size-3",md:"size-4"},my={sm:"translate-x-3",md:"translate-x-4"};(0,c.forwardRef)(({children:e,size:t="md",className:a,...r},n)=>(0,u.jsx)(mc,{ref:n,className:mh({className:a}),...r,children:({isSelected:a})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:at("rounded-full transition-colors duration-200 flex items-center",mg[t],a?"bg-blue-600":"bg-gray-300 dark:bg-gray-600"),children:(0,u.jsx)("div",{className:at("bg-white rounded-full shadow-sm","transition-transform duration-200 ease-[
12cubic-bezier(0.175,_0.885,_0.32,_1.275)]",mf[t],a?my[t]:"translate-x-0")})}),e?(0,u.jsx)("span",{className:"text-sm text-gray-700 dark:text-gray-200",children:e}):null]})})).displayName="Switch";class mb{setup(e,t,a){this.delegate=e,this.state=t,this.direction=a}getDropTargetFromPoint(e,t,a){let r=this.delegate.getDropTargetFromPoint(e,t,a);return r&&"root"!==r.type?this.resolveDropTarget(r,e,t,a):r}resolveDropTarget(e,t,a,r){let n,l=this.pointerTracking,i=a-l.lastY,o=t-l.lastX,s=l.yDirection,u=l.xDirection;if(Math.abs(i)>5&&(l.yDirection=s=i>0?"down":"up",l.lastY=a),Math.abs(o)>10&&(l.xDirection=u=o>0?"right":"left",l.lastX=t),"before"===e.dropPosition){let t=this.state.collection.getKeyBefore(e.key);for(;null!=t;){let e=this.state.collection.getItem(t);if(e?.type==="item")break;t=e?.parentKey??null}if(null!=t){let a={type:"item",key:t,dropPosition:"after"};r(a)&&(e=a)}}let d=this.getPotentialTargets(e,r);return 0===d.length?{type:"root"}:(d.length>1?n=this.selectTarget(d,e,t,a,s,u):(n=d[0],l.boundaryContext=null),n)}getPotentialTargets(e,t){if("on"===e.dropPosition)return[e];let a=this.state.collection,r=a.getItem(e.key);for(;r&&r?.type!=="item"&&null!=r.nextKey;)e.key=r.nextKey,r=a.getItem(r.nextKey);let n=[e];if(r&&r.hasChildNodes&&this.state.expandedKeys.has(r.key)&&a.getChildren&&"after"===e.dropPosition){let e=null!=r.firstChildKey?a.getItem(r.firstChildKey):null;for(;e&&"item"!==e.type;)e=null!=e.nextKey?a.getItem(e.nextKey):null;if(e?.type==="item"){let a={type:"item",key:e.key,dropPosition:"before"};return t(a)?[a]:[]}}if(r?.nextKey!=null)return[e];let l=r?.parentKey,i=[];for(;null!=l;){let e=a.getItem(l),r=e?.nextKey!=null?a.getItem(e.nextKey):null;if(!r||r.parentKey!==l){let e={type:"item",key:l,dropPosition:"after"};if(t(e)&&i.push(e),r)break}l=e?.parentKey}if(i.length>0&&n.push(...i),1===n.length){let n=a.getKeyAfter(e.key),l=null!=n?a.getItem(n):null;if(null!=n&&l&&r&&null!=l.level&&null!=r.level&&l.level>r.level){let e={type:"item",key:n,dropPosition:"before"};if(t(e))return[e]}}return n.filter(t)}selectTarget(e,t,a,r,n,l){if(e.length<2)return e[0];let i=this.pointerTracking,o=this.state.collection.getItem(t.key),s=o?.parentKey;if(null==s)return e[0];if(!i.boundaryContext||i.boundaryContext.parentKey!==s){let t="up"===i.yDirection?e.length-1:0;i.boundaryContext={parentKey:s,preferredTargetIndex:t,lastSwitchY:r,lastSwitchX:a}}let u=i.boundaryContext,d=Math.abs(a-u.lastSwitchX);if(Math.abs(r-u.lastSwitchY)>5&&n){let t=u.preferredTargetIndex||0;"down"===n&&0===t?u.preferredTargetIndex=e.length-1:"up"===n&&t===e.length-1&&(u.preferredTargetIndex=0),i.xDirection=null}if(d>10&&l){let t=u.preferredTargetIndex||0;"left"===l?"ltr"===this.direction?t<e.length-1&&(u.preferredTargetIndex=t+1,u.lastSwitchX=a):t>0&&(u.preferredTargetIndex=t-1,u.lastSwitchX=a):"right"===l&&("ltr"===this.direction?t>0&&(u.preferredTargetIndex=t-1,u.lastSwitchX=a):t<e.length-1&&(u.preferredTargetIndex=t+1,u.lastSwitchX=a)),i.yDirection=null}let c=Math.max(0,Math.min(u.preferredTargetIndex||0,e.length-1));return e[c]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class mv{constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=e?.columnCount,this.rows=[];let t=r=>{let n=this.keyMap.get(r.key);e.visitNode&&(r=e.visitNode(r)),this.keyMap.set(r.key,r);let l=new Set,i=null,o=!1;if("item"===r.type){for(let e of r.childNodes)if(e.props?.colSpan!==void 0){o=!0;break}}for(let e of r.childNodes)"cell"===e.type&&o&&(e.colspan=e.props?.colSpan,e.colSpan=e.props?.colSpan,e.colIndex=i?(i.colIndex??i.index)+(i.colSpan??1):e.index),"cell"===e.type&&null==e.parentKey&&(e.parentKey=r.key),l.add(e.key),i?(i.nextKey=e.key,e.prevKey=i.key):e.prevKey=null,t(e),i=e;if(i&&(i.nextKey=null),n)for(let e of n.childNodes)l.has(e.key)||a(e)},a=e=>{for(let t of(this.keyMap.delete(e.key),e.childNodes))this.keyMap.get(t.key)===t&&a(t)},r=null;for(let[a,n]of e.items.entries()){let e={...n,level:n.level??0,key:n.key??"row-"+a,type:n.type??"row",value:n.value??null,hasChildNodes:!0,childNodes:[...n.childNodes],rendered:n.rendered,textValue:n.textValue??"",index:n.index??a};r?(r.nextKey=e.key,e.prevKey=r.key):e.prevKey=null,this.rows.push(e),t(e),r=e}r&&(r.nextKey=null)}*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return[...this.rows][0]?.key}getLastKey(){let e=[...this.rows];return e[e.length-1]?.key}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return t?.childNodes||[]}}let mx="row-header-column-"+Math.random().toString(36).slice(2),mD="row-header-column-"+Math.random().toString(36).slice(2);for(;mx===mD;)mD="row-header-column-"+Math.random().toString(36).slice(2);function mk(e,t){if(0===t.length)return[];let a=[],r=new Map;for(let n of t){let t=n.parentKey,l=[n];for(;null!=t;){let a=e.get(t);if(!a)break;if(r.has(a)){a.colSpan??=0,a.colSpan++,a.colspan=a.colSpan;let{column:e,index:t}=r.get(a);if(t>l.length)break;for(let a=t;a<l.length;a++)e.splice(a,0,null);for(let t=l.length;t<e.length;t++)e[t]&&r.has(e[t])&&(r.get(e[t]).index=t)}else a.colSpan=1,a.colspan=1,l.push(a),r.set(a,{column:l,index:l.length-1});t=a.parentKey}a.push(l),n.index=a.length-1}let n=Math.max(...a.map(e=>e.length)),l=Array(n).fill(0).map(()=>[]),i=0;for(let e of a){let t=n-1;for(let a of e){if(a){let e=l[t],r=e.reduce((e,t)=>
12e+(t.colSpan??1),0);if(r<i){let n={type:"placeholder",key:"placeholder-"+a.key,colspan:i-r,colSpan:i-r,index:r,value:null,rendered:null,level:t,hasChildNodes:!1,childNodes:[],textValue:""};e.length>0&&(e[e.length-1].nextKey=n.key,n.prevKey=e[e.length-1].key),e.push(n)}e.length>0&&(e[e.length-1].nextKey=a.key,a.prevKey=e[e.length-1].key),a.level=t,a.colIndex=i,e.push(a)}t--}i++}let o=0;for(let e of l){let a=e.reduce((e,t)=>e+(t.colSpan??1),0);if(a<t.length){let r={type:"placeholder",key:"placeholder-"+e[e.length-1].key,colSpan:t.length-a,colspan:t.length-a,index:a,value:null,rendered:null,level:o,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:e[e.length-1].key};e.push(r)}o++}return l.map((e,t)=>({type:"headerrow",key:"headerrow-"+t,index:t,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:e,textValue:""}))}class mC extends mv{constructor(e,t,a){let r=new Set,n=null,l=[];if(a?.showSelectionCheckboxes){let e={type:"column",key:mx,value:null,textValue:"",level:0,index:+!!a?.showDragButtons,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};l.unshift(e)}if(a?.showDragButtons){let e={type:"column",key:mD,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};l.unshift(e)}let i=[],o=new Map,s=e=>{switch(e.type){case"body":n=e;break;case"column":o.set(e.key,e),!e.hasChildNodes&&(l.push(e),e.props.isRowHeader&&r.add(e.key));break;case"item":i.push(e);return}for(let t of e.childNodes)s(t)};for(let t of e)s(t);let u=mk(o,l);if(u.forEach((e,t)=>i.splice(t,0,e)),super({columnCount:l.length,items:i,visitNode:e=>(e.column=l[e.index],e)}),this._size=0,this.columns=l,this.rowHeaderColumnKeys=r,this.body=n,this.headerRows=u,this._size=[...n.childNodes].length,0===this.rowHeaderColumnKeys.size){let e=this.columns.find(e=>!e.props?.isDragButtonCell&&!e.props?.isSelectionCell);e&&this.rowHeaderColumnKeys.add(e.key)}}*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?.prevKey??null}getKeyAfter(e){let t=this.keyMap.get(e);return t?.nextKey??null}getFirstKey(){return sn(this.body.childNodes)?.key??null}getLastKey(){return si(this.body.childNodes)?.key??null}getItem(e){return e===this.body.key?this.body:this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){if(e===this.body.key)return this.body.childNodes;let t=this.getItem(e);return t?.type==="item"?[...t.childNodes].filter(e=>"cell"===e.type):super.getChildren(e)}getTextValue(e){let t=this.getItem(e);if(!t)return"";if(t.textValue)return t.textValue;let a=this.rowHeaderColumnKeys;if(a){let e=[];for(let r of t.childNodes){let t=this.columns[r.index];if(a.has(t.key)&&r.textValue&&e.push(r.textValue),e.length===a.size)break}return e.join(" ")}return""}}
12let mw={ascending:"descending",descending:"ascending"};class mE{constructor(e){if(this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.disabledBehavior=e.disabledBehavior||"all",this.direction=e.direction,this.collator=e.collator,!e.layout&&!e.ref)throw Error("Either a layout or a ref must be specified.");this.layoutDelegate=e.layoutDelegate||(e.layout?new mS(e.layout):new o6(e.ref)),this.focusMode=e.focusMode??"row"}isCell(e){return"cell"===e.type}isRow(e){return"row"===e.type||"item"===e.type}isDisabled(e){return"all"===this.disabledBehavior&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!=="selection"}findPreviousKey(e,t,a=!1){let r=null!=e?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;null!=r;){let e=this.collection.getItem(r);if(!e)break;if((a||!this.isDisabled(e))&&(!t||t(e)))return r;r=this.collection.getKeyBefore(r)}return null}findNextKey(e,t,a=!1){let r=null!=e?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;null!=r;){let e=this.collection.getItem(r);if(!e)break;if((a||!this.isDisabled(e))&&(!t||t(e)))return r;if(null==(r=this.collection.getKeyAfter(r)))break}return null}getKeyForItemInRowByIndex(e,t=0){if(t<0)return null;let a=this.collection.getItem(e);if(!a)return null;let r=0;for(let e of sr(a,this.collection)){if(e.colSpan&&e.colSpan+r>t||(e.colSpan&&(r=r+e.colSpan-1),r===t))return e.key??null;r++}return null}getKeyBelow(e,t){let a=e,r=this.collection.getItem(a);if(!r||(this.isCell(r)&&(a=r.parentKey??null),null==a))return null;if(null!=(a=this.findNextKey(a,e=>"item"===e.type,t?.includeDisabled))){if(this.isCell(r)){let e=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(a,e)}if("row"===this.focusMode)return a}return null}getKeyAbove(e,t){let a=e,r=this.collection.getItem(a);if(!r||(this.isCell(r)&&(a=r.parentKey??null),null==a))return null;if(null!=(a=this.findPreviousKey(a,e=>"item"===e.type,t?.includeDisabled))){if(this.isCell(r)){let e=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(a,e)}if("row"===this.focusMode)return a}return null}getKeyRightOf(e){let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let e=sr(t,this.collection);return("rtl"===this.direction?si(e)?.key:sn(e)?.key)??null}if(this.isCell(t)&&null!=t.parentKey){let a=this.collection.getItem(t.parentKey);if(!a)return null;let r=sr(a,this.collection),n=("rtl"===this.direction?sl(r,t.index-1):sl(r,t.index+1))??null;return n?n.key??null:"row"===this.focusMode?t.parentKey??null:("rtl"===this.direction?this.getFirstKey(e):this.getLastKey(e))??null}return null}getKeyLeftOf(e){let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let e=sr(t,this.collection);return("rtl"===this.direction?sn(e)?.key:si(e)?.key)??null}if(this.isCell(t)&&null!=t.parentKey){let a=this.collection.getItem(t.parentKey);if(!a)return null;let r=sr(a,this.collection),n=("rtl"===this.direction?sl(r,t.index+1):sl(r,t.index-1))??null;return n?n.key??null:"row"===this.focusMode?t.parentKey??null:("rtl"===this.direction?this.getLastKey(e):this.getFirstKey(e))??null}return null}getFirstKey(e,t){let a,r=e??null;if(null!=r){if(!(a=this.collection.getItem(r)))return null;if(this.isCell(a)&&!t&&null!=a.parentKey){let e=this.collection.getItem(a.parentKey);return e?sn(sr(e,this.collection))?.key??null:null}}if(null!=(r=this.findNextKey(void 0,e=>"item"===e.type))&&(a&&this.isCell(a)&&t||"cell"===this.focusMode)){let e=this.collection.getItem(r);if(!e)return null;r=sn(sr(e,this.collection))?.key??null}return r}getLastKey(e,t){let a,r=e??null;if(null!=r){if(!(a=this.collection.getItem(r)))return null;if(this.isCell(a)&&!t&&null!=a.parentKey){let e=this.collection.getItem(a.parentKey);if(!e)return null;let t=sr(e,this.collection);return si(t)?.key??null}}if(null!=(r=this.findPreviousKey(void 0,e=>"item"===e.type))&&(a&&this.isCell(a)&&t||"cell"===this.focusMode)){let e=this.collection.getItem(r);if(!e)return null;let t=sr(e,this.collection);r=si(t)?.key??null}return r}getKeyPageAbove(e){let t=e,a=this.layoutDelegate.getItemRect(t);if(!a)return null;let r=Math.max(0,a.y+a.height-this.layoutDelegate.getVisibleRect().height);for(;a&&a.y>
12r&&null!=t&&null!=(t=this.getKeyAbove(t)??null);)a=this.layoutDelegate.getItemRect(t);return t}getKeyPageBelow(e){let t=e,a=this.layoutDelegate.getItemRect(t);if(!a)return null;let r=this.layoutDelegate.getVisibleRect().height,n=Math.min(this.layoutDelegate.getContentSize().height,a.y+r);for(;a&&a.y+a.height<n;){let e=this.getKeyBelow(t);if(null==e)break;a=this.layoutDelegate.getItemRect(e),t=e}return t}getKeyForSearch(e,t){let a=t??null;if(!this.collator)return null;let r=this.collection;if(null==(a=t??this.getFirstKey()))return null;let n=r.getItem(a);if(!n)return null;"cell"===n.type&&(a=n.parentKey??null);let l=!1;for(;null!=a;){let t=r.getItem(a);if(!t)break;if(t.textValue){let a=t.textValue.slice(0,e.length);if(0===this.collator.compare(a,e)){if(this.isRow(t)&&"cell"===this.focusMode)return sn(sr(t,this.collection))?.key??null;return t.key}}null!=(a=this.findNextKey(a,e=>"item"===e.type))||l||(a=this.getFirstKey(),l=!0)}return null}}class mS{constructor(e){this.layout=e}getContentSize(){return this.layout.getContentSize()}getItemRect(e){return this.layout.getLayoutInfo(e)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}}let mP=new WeakMap,m$=new WeakMap;var mR={};mR={"ar-AE":{ascending:"تصاعدي",ascendingSort:e=>`\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,columnSize:e=>`${e.value} \u{628}\u{627}\u{644}\u{628}\u{643}\u{633}\u{644}`,descending:"تنازلي",descendingSort:e=>`\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{646}\u{627}\u{632}\u{644}\u{64A}`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب",collapse:"طي",expand:"تمديد"},"bg-BG":{ascending:"възходящ",ascendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,columnSize:e=>`${e.value} \u{43F}\u{438}\u{43A}\u{441}\u{435}\u{43B}\u{430}`,descending:"низходящ",descendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432} \u{43D}\u{438}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона",collapse:"Свиване",expand:"Разширяване"},"cs-CZ":{ascending:"vzestupně",ascendingSort:e=>`\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixel\u{16F}`,descending:"sestupně",descendingSort:e=>`\u{159}azeno sestupn\u{11B} podle sloupce ${e.columnName}`,resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení",collapse:"Sbalit",expand:"Roztáhnout"},"da-DK":{ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende r\xe6kkef\xf8lge`,resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne",collapse:"Skjul",expand:"Udvid"},"de-DE":{ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte",collapse:"Reduzieren",expand:"Erweitern"},"el-GR":{ascending:"αύξουσα",ascendingSort:e=>`\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3C6}\u{3B8}\u{3AF}\u{3BD}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής",collapse:"Σύμπτυξη",expand:"Ανάπτυξη"},"en-US":{select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",desce
12nding:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing",expand:"Expand",collapse:"Collapse"},"es-ES":{ascending:"ascendente",ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,columnSize:e=>`${e.value} p\xedxeles`,descending:"descendente",descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable",collapse:"Contraer",expand:"Ampliar"},"et-EE":{ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru j\xe4rgi ${e.columnName} laskuvas j\xe4rjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg",collapse:"Ahenda",expand:"Laienda"},"fi-FI":{ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,columnSize:e=>`${e.value} pikseli\xe4`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa j\xe4rjestyksess\xe4`,resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake",collapse:"Pienennä",expand:"Laajenna"},"fr-FR":{ascending:"croissant",ascendingSort:e=>`tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,columnSize:e=>`${e.value}\xa0pixels`,descending:"décroissant",descendingSort:e=>`tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre d\xe9croissant`,resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable",collapse:"Réduire",expand:"Développer"},"he-IL":{ascending:"עולה",ascendingSort:e=>`\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,columnSize:e=>`${e.value} \u{5E4}\u{5D9}\u{5E7}\u{5E1}\u{5DC}\u{5D9}\u{5DD}`,descending:"יורד",descendingSort:e=>`\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5D9}\u{5D5}\u{5E8}\u{5D3}`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין",collapse:"כווץ",expand:"הרחב"},"hr-HR":{ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padaju\u{107}im redoslijedom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati",collapse:"Sažmi",expand:"Proširi"},"hu-HU":{ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,columnSize:e=>`${e.value} k\xe9ppont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, cs\xf6kken\u{151} sorrendben`,resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop",collapse:"Összecsukás",expand:"Kibontás"},"it-IT":{ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile",collapse:"Comprimi",expand:"Espandi"},"ja-JP":{ascending:"昇順",ascendingSort:e=>`\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,columnSize:e=>`${e.value} \u{30D4}\u{30AF}\u{30BB}\u{30EB}
12`,descending:"降順",descendingSort:e=>`\u{5217} ${e.columnName} \u{3092}\u{964D}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列",collapse:"折りたたむ",expand:"展開"},"ko-KR":{ascending:"오름차순",ascendingSort:e=>`${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,columnSize:e=>`${e.value} \u{D53D}\u{C140}`,descending:"내림차순",descendingSort:e=>`${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{B0B4}\u{B9BC}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열",collapse:"접기",expand:"펼치기"},"lt-LT":{ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpel\u{12F} ${e.columnName} ma\u{17E}\u{117}jan\u{10D}ia tvarka`,resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis",collapse:"Sutraukti",expand:"IÅ¡skleisti"},"lv-LV":{ascending:"augošā secÄ«bā",ascendingSort:e=>`k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,columnSize:e=>`${e.value} pikse\u{13C}i`,descending:"dilstošā secÄ«bā",descendingSort:e=>`k\u{101}rtots p\u{113}c kolonnas ${e.columnName} dilsto\u{161}\u{101} sec\u{12B}b\u{101}`,resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"AtlasÄ«t",selectAll:"AtlasÄ«t visu",sortable:"kārtojamā kolonna",collapse:"Sakļaut",expand:"Izvērst"},"nb-NO":{ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkef\xf8lge`,resizerDescription:"Trykk pÃ¥ Enter for Ã¥ starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres",collapse:"Skjul",expand:"Utvid"},"nl-NL":{ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom",collapse:"Samenvouwen",expand:"Uitvouwen"},"pl-PL":{ascending:"rosnąco",ascendingSort:e=>`posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku malej\u{105}cym`,resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania",collapse:"Zwiń",expand:"Rozwiń"},"pt-BR":{ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável",collapse:"Recolher",expand:"Expandir"},"pt-PT":{ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenÃ
12¡vel",collapse:"Colapsar",expand:"Expandir"},"ro-RO":{ascending:"crescătoare",ascendingSort:e=>`sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate dup\u{103} coloana ${e.columnName} \xeen ordine descresc\u{103}toare`,resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă",collapse:"Restrângeți",expand:"Extindeți"},"ru-RU":{ascending:"возрастание",ascendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,columnSize:e=>`${e.value} \u{43F}\u{438}\u{43A}\u{441}.`,descending:"убывание",descendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{443}\u{431}\u{44B}\u{432}\u{430}\u{43D}\u{438}\u{44F}`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец",collapse:"Свернуть",expand:"Развернуть"},"sk-SK":{ascending:"vzostupne",ascendingSort:e=>`zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,columnSize:e=>`Po\u{10D}et pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"VybraÅ¥",selectAll:"VybraÅ¥ vÅ¡etko",sortable:"zoraditeľný stĺpec",collapse:"ZbaliÅ¥",expand:"RozbaliÅ¥"},"sl-SI":{ascending:"naraščajoče",ascendingSort:e=>`razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v padajo\u{10D}em vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec",collapse:"Strni",expand:"RazÅ¡iri"},"sr-SP":{ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padaju\u{107}im redosledom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati",collapse:" Skupi",expand:"ProÅ¡iri"},"sv-SE":{ascending:"stigande",ascendingSort:e=>`sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat p\xe5 kolumn ${e.columnName} i fallande ordning`,resizerDescription:"Tryck pÃ¥ Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn",collapse:"Dölj",expand:"Expandera"},"tr-TR":{ascending:"artan sırada",ascendingSort:e=>`${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} s\xfctuna g\xf6re azalan d\xfczende s\u{131}rala`,resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun",collapse:"Daralt",expand:"Genişlet"},"uk-UA":{ascending:"висхідний",ascendingSort:e=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,columnSize:e=>`${e.value} \u{43F}\u{456}\u{43A}\u{441}.`,descending:"низхідний",descendingSort:e=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{43D}\u{438}\u{437}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець",collapse:"Згорнути",expand:"Розгорнути"},"zh-CN":{ascending:"升序",ascendingSort:e=>`\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,columnSize:e=>`${e.value} \u{50CF}\u{7D20}
12`,descending:"降序",descendingSort:e=>`\u{6309}\u{5217} ${e.columnName} \u{964D}\u{5E8F}\u{6392}\u{5E8F}`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列",collapse:"折叠",expand:"扩展"},"zh-TW":{ascending:"遞增",ascendingSort:e=>`\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,columnSize:e=>`${e.value} \u{50CF}\u{7D20}`,descending:"遞減",descendingSort:e=>`\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{6E1B}\u{6392}\u{5E8F}`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄",collapse:"收合",expand:"展開"}};class mN extends mE{isCell(e){return"cell"===e.type||"rowheader"===e.type||"column"===e.type}getKeyBelow(e,t){let a=this.collection.getItem(e);if(!a)return null;if("column"===a.type){let e=sn(sr(a,this.collection));if(e)return e.key;let t=this.getFirstKey();return null!=t&&this.collection.getItem(t)?super.getKeyForItemInRowByIndex(t,a.index):null}return super.getKeyBelow(e,t)}getKeyAbove(e,t){let a=this.collection.getItem(e);if(!a)return null;if("column"===a.type){let e=null!=a.parentKey?this.collection.getItem(a.parentKey):null;return e&&"column"===e.type?e.key:null}let r=super.getKeyAbove(e,t),n=null!=r?this.collection.getItem(r):null;return n&&"headerrow"!==n.type?r:this.isCell(a)?this.collection.columns[a.index].key:this.collection.columns[0].key}findNextColumnKey(e){let t=this.findNextKey(e.key,e=>"column"===e.type);if(null!=t)return t;for(let t of sr(this.collection.headerRows[e.level],this.collection))if("column"===t.type)return t.key;return null}findPreviousColumnKey(e){let t=this.findPreviousKey(e.key,e=>"column"===e.type);if(null!=t)return t;let a=[...sr(this.collection.headerRows[e.level],this.collection)];for(let e=a.length-1;e>=0;e--){let t=a[e];if("column"===t.type)return t.key}return null}getKeyRightOf(e){let t=this.collection.getItem(e);return t?"column"===t.type?"rtl"===this.direction?this.findPreviousColumnKey(t):this.findNextColumnKey(t):super.getKeyRightOf(e):null}getKeyLeftOf(e){let t=this.collection.getItem(e);return t?"column"===t.type?"rtl"===this.direction?this.findNextColumnKey(t):this.findPreviousColumnKey(t):super.getKeyLeftOf(e):null}getKeyForSearch(e,t){if(!this.collator)return null;let a=this.collection,r=t??this.getFirstKey();if(null==r)return null;let n=a.getItem(r);n?.type==="cell"&&(r=n.parentKey??null);let l=!1;for(;null!=r;){let i=a.getItem(r);if(!i)break;if(i.textValue){let t=i.textValue.slice(0,e.length);if(0===this.collator.compare(t,e))return i.key}for(let r of sr(i,this.collection)){let l=a.columns[r.index];if(a.rowHeaderColumnKeys.has(l.key)&&r.textValue){let l=r.textValue.slice(0,e.length);if(0===this.collator.compare(l,e)){let e=null!=t?a.getItem(t):n;return e?.type==="cell"?r.key:i.key}}}null!=(r=this.getKeyBelow(r))||l||(r=this.getFirstKey(),l=!0)}return null}}class mM extends aI{withExpandedKeys(e){let t=this.clone();return t.expandedKeys=e,t.frozen=this.frozen,t.rows=Array.from(t.getRows()),t}addNode(e){super.addNode(e),this.columnsDirty||="column"===e.type,"tableheader"===e.type&&(this.head=e)}getRows(){let e=[];for(let t of this)("tablebody"===t.type||"tablefooter"===t.type)&&e.push(...this.getChildren(t.key));return e}get body(){for(let e of this)if("tablebody"===e.type)return e;return new mH(-2)}commit(e,t,a=!1){for(let r of(this.updateColumns(a),this.firstKey=e,this.lastKey=t,this.rows=[],this.getRows())){let e=r.lastChildKey;if(null!=e){let t=this.getItem(e);for(;t&&"cell"!==t.type;)t=null!=t.prevKey?this.getItem(t.prevKey):null;if(t){let e=(t.colIndex??t.index)+(t.colSpan??1);if(e!==this.columns.length&&!a)throw Error(`Cell count must match column count. Found ${e} cells and ${this.columns.length} columns.`)}}this.rows.push(r)}super.commit(e,t,a)}updateColumns(e){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let t=new Map,a=e=>{for(let r of("column"===e.type&&(t.set(e.key,e),!e.hasChildNodes&&(e.index=this.columns.length,this.columns.push(e),e.props.isRowHeader&&this.rowHeaderColumnKeys.add(e.key))),this.getChildren(e.key)))a(r)};for(let e of this.getChildren(this.head.key))a(e);
12if(this.headerRows=mk(t,this.columns),this.columnsDirty=!1,0===this.rowHeaderColumnKeys.size&&this.columns.length>0&&!e)throw Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){let e=this.firstKey;for(;null!=e;){let t=this.getItem(e);t&&(yield t),e=t?.nextKey??null}}getFirstKey(){for(let e of this)if("tablebody"===e.type)return e.firstChildKey??null;return null}getLastKey(){let e=this.lastKey;if(null==e)return null;let t=this.getItem(e);for(;t?.lastChildKey!=null&&("item"!==t.type||this.expandedKeys.has(t.key));)t=this.getItem(t.lastChildKey);return t?.key}getKeyAfter(e){let t=this.getItem(e);if(t?.type==="column")return t.nextKey??null;if(!t)return null;if("item"===t.type&&null!=t.firstChildKey&&this.expandedKeys.has(t.key)){let e=this.getItem(t.firstChildKey);for(;e;){if("item"===e.type)return e.key;e=null!=e.nextKey?this.getItem(e.nextKey):null}}return super.getKeyAfter(e)}getKeyBefore(e){let t=this.getItem(e);if(t?.type==="column")return t.prevKey??null;if(!t)return null;let a=null;if(null!=t.prevKey){for(t=this.getItem(t.prevKey);t&&("item"!==t.type||this.expandedKeys.has(t.key))&&null!=t.lastChildKey;)t=this.getItem(t.lastChildKey);a=t?.key??null}return(null==a&&(a=t.parentKey),null!=a&&this.getItem(a)?.type==="tableheader")?null:a}getChildren(e){let t=this.getItem(e);if(!t){for(let t of this.headerRows)if(t.key===e)return t.childNodes}let a=this;return t?.type==="tablebody"||t?.type==="tablefooter"?{*[Symbol.iterator](){let e=t.firstChildKey,r=null!=e?a.getItem(e):null;for(;r;){yield r;let e=a.getKeyAfter(r.key);if((r=null!=e?a.getItem(e):null)&&r.parentKey===t.parentKey)break}}}:{*[Symbol.iterator](){let t=a.getItem(e),r=t?.firstChildKey!=null?a.getItem(t.firstChildKey):null;for(;r&&(yield r,r=null!=r.nextKey?a.getItem(r.nextKey):null,t?.type!=="item"||r?.type==="cell"););}}}clone(){let e=super.clone();return e.headerRows=this.headerRows,e.columns=this.columns,e.rows=this.rows,e.rowHeaderColumnKeys=this.rowHeaderColumnKeys,e.head=this.head,e}getTextValue(e){let t=this.getItem(e);if(!t)return"";if(t.textValue)return t.textValue;let a=this.rowHeaderColumnKeys,r=[];for(let t of this.getChildren(e)){let e=this.columns[t.index];if(a.has(e.key)&&t.textValue&&r.push(t.textValue),r.length===a.size)break}return r.join(" ")}constructor(...e){super(...e),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new mO(-1),this.columnsDirty=!0,this.expandedKeys=new Set}}let mT=(0,c.createContext)(null),mF=(0,c.createContext)(null),mK=(0,c.createContext)(null),mB=(0,c.createContext)(null),mA=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,mF);let a=sh(e),{selectionBehavior:r,selectionMode:n,disallowEmptySelection:l}=a,i=!!e.dragAndDropHooks?.useDraggableCollectionState,o=(0,c.useMemo)(()=>({selectionBehavior:"none"===n?null:r,selectionMode:n,disallowEmptySelection:l,allowsDragging:i}),[r,n,l,i]),s=c.default.createElement(mL.Provider,{value:o},c.default.createElement(aQ,e));return c.default.createElement(aW,{content:s,createCollection:()=>new mM},r=>c.default.createElement(mj,{props:e,forwardedRef:t,selectionState:a,collection:r}))}),mI=(0,c.forwardRef)(function(e,t){let{isVirtualized:a}=(0,c.useContext)(a3);return a?c.default.createElement(L.div,{...e,ref:t}):c.default.createElement(L.table,{...e,ref:t})}),mz={ltr:"ArrowRight",rtl:"ArrowLeft"},mV={ltr:"ArrowLeft",rtl:"ArrowRight"};function mj({props:e,forwardedRef:t,selectionState:a,collection:r}){let n,l,i,o,s;[e,t]=A(e,t,oE);let{shouldUseVirtualFocus:u,disallowTypeAhead:d,filter:m,...p}=e,h=(0,c.useContext)(mT);t=M((0,c.useMemo)(()=>P(t,h?.tableRef),[t,h?.tableRef]));let[g,f]=lN(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);r=(0,c.useMemo)(()=>r.withExpandedKeys(g),[r,g]);let y=function(e){let[t,a]=(0,c.useState)(!1),{selectionMode:r="none",showSelectionCheckboxes:n,showDragButtons:l,treeColumn:i=null}=e,o=(0,c.useMemo)(()=>({showSelectionCheckboxes:n&&"none"!==r,showDragButtons:l,selectionMode:r,columns:[]}),[e.children,n,r,l]),s=sx(e,(0,c.useCallback)(e=>new mC(e,null,o),[o]),o),{disabledKeys:u,selectionManager:d}
12=function(e){let{collection:t,focusMode:a}=e,r=e.UNSAFE_selectionState||sh(e),n=(0,c.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),l=r.setFocusedKey;r.setFocusedKey=(e,r)=>{if("cell"===a&&null!=e){let a=t.getItem(e);if(a?.type==="item"){let n=sr(a,t);e="last"===r?si(n)?.key??null:sn(n)?.key??null}}l(e,r)};let i=(0,c.useMemo)(()=>new sf(t,r),[t,r]),o=(0,c.useRef)(null);return(0,c.useEffect)(()=>{if(null!=r.focusedKey&&o.current&&!t.getItem(r.focusedKey)){let e=o.current.getItem(r.focusedKey),a=e?.parentKey!=null&&("cell"===e.type||"rowheader"===e.type||"column"===e.type)?o.current.getItem(e.parentKey):e;if(!a)return void r.setFocusedKey(null);let n=o.current.rows,l=t.rows,s=n.length-l.length,u=Math.min(s>1?Math.max(a.index-s+1,0):a.index,l.length-1),d=null;for(;u>=0;){if(!i.isDisabled(l[u].key)&&"headerrow"!==l[u].type){d=l[u];break}u<l.length-1?u++:(u>a.index&&(u=a.index),u--)}if(d){let n=d.hasChildNodes?[...sr(d,t)]:[],l=d.hasChildNodes&&a!==e&&e&&e.index<n.length?n[e.index].key:d.key;r.setFocusedKey(l)}else r.setFocusedKey(null)}o.current=t},[t,i,r,r.focusedKey]),{collection:t,disabledKeys:n,isKeyboardNavigationDisabled:!1,selectionManager:i}}({...e,collection:s,disabledBehavior:e.disabledBehavior||"selection"}),[m,p]=lN(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);return{collection:s,disabledKeys:u,selectionManager:d,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor??null,isKeyboardNavigationDisabled:0===s.size||t,setKeyboardNavigationDisabled:a,sort(t,a){e.onSortChange?.({column:t,direction:a??(e.sortDescriptor?.column===t?mw[e.sortDescriptor.direction]:"ascending")})},expandedKeys:m,toggleKey(e){p(t=>{let a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a})},treeColumn:i}}({...p,collection:r,children:void 0,UNSAFE_selectionState:a,expandedKeys:g,onExpandedChange:f}),b=(n=(0,c.useMemo)(()=>m?y.collection.filter(m):y.collection,[y.collection,m]),l=y.selectionManager.withCollection(n),{...y,collection:n,selectionManager:l}),{isVirtualized:v,layoutDelegate:x,dropTargetDelegate:D,CollectionRoot:k}=(0,c.useContext)(a3),{dragAndDropHooks:C}=e,{gridProps:w}=function(e,t,a){var r;let{keyboardDelegate:n,isVirtualized:l,layoutDelegate:i,layout:o}=e,s=o8({usage:"search",sensitivity:"base"}),{direction:u}=ed(),d=t.selectionManager.disabledBehavior,m=(0,c.useMemo)(()=>n||new mN({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:d,ref:a,direction:u,collator:s,layoutDelegate:i,layout:o}),[n,t.collection,t.disabledKeys,d,a,u,s,i,o]),p=E(e.id);m$.set(t,p);let{gridProps:h}=function(e,t,a){let{isVirtualized:r,disallowTypeAhead:n,keyboardDelegate:l,focusMode:i,scrollRef:o,getRowText:s,onRowAction:u,onCellAction:d,escapeKeyBehavior:m="clearSelection",shouldSelectOnPressUp:p}=e,{selectionManager:h}=t;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let g=o8({usage:"search",sensitivity:"base"}),{direction:f}=ed(),y=t.selectionManager.disabledBehavior,b=(0,c.useMemo)(()=>l||new mE({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:y,ref:a,direction:f,collator:g,focusMode:i}),[l,t.collection,t.disabledKeys,y,a,f,g,i]),{collectionProps:v}=o2({ref:a,selectionManager:h,keyboardDelegate:b,isVirtualized:r,scrollRef:o,disallowTypeAhead:n,escapeKeyBehavior:m}),x=E(e.id);mP.set(t,{keyboardDelegate:b,actions:{onRowAction:u,onCellAction:d},shouldSelectOnPressUp:p});let D=dW({selectionManager:h,hasItemActions:!!(u||d)}),k=X(e,{labelable:!0}),C=(0,c.useCallback)(e=>{if(h.isFocused){eM(e.currentTarget,eT(e))||h.setFocused(!1);return}eM(e.currentTarget,eT(e))&&h.setFocused(!0)},[h]),w=(0,c.useMemo)(()=>({onBlur:v.onBlur,onFocus:C}),[C,v.onBlur]),S=dZ(a,{isDisabled:0!==t.collection.size}),P=N(k,{role:"grid",id:x,"aria-multiselectable":"multiple"===h.selectionMode?"true":void 0},t.isKeyboardNavigationDisabled?w:v,0===t.collection.size&&{tabIndex:S?-1:0}||void 0,D);return r&&(P["aria-rowcount"]=t.collection.size,P["aria-colcount"]=t.collection.columnCount),dU({getRowText:s},t),{gridProps:P}}({...e,id:p,keyboardDelegate:m},t,a);l&&(h["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),null!=t.treeColumn&&(h.role="treegrid");let{column:g,direction:f}=t.sortDescriptor||{},y=rn((r=mR)&&r.__esModule?r.default:r,"@react-aria/table"),b=(0,c.useMemo)(()=>{let e=t.collection.columns.find(e=>e.key===g)?.textValue??"";return f&&g?y.format(`${f}Sort`,{columnName:e}):void 0},[f,g,t.collection.columns]),v=nO(b);return nF(()=>{b&&eE(b,"assertive",500)},[b]),{gridProps:N(h,v,{"aria-describedby":[v["aria-describedby"],h["aria-describedby"]].filter(
12Boolean).join(" ")})}}({...p,layoutDelegate:x,isVirtualized:v},b,t),S=b.selectionManager,$=!!C?.useDraggableCollectionState,R=!!C?.useDroppableCollectionState;(0,c.useRef)($),(0,c.useRef)(R),(0,c.useEffect)(()=>{},[$,R]);let T=!1,B=null,I=(0,c.useRef)(null),{direction:z}=ed(),[V]=(0,c.useState)(()=>new mb);if($&&C){i=C.useDraggableCollectionState({collection:b.collection,selectionManager:S,preview:C.renderDragPreview?I:void 0}),C.useDraggableCollection({},i,t);let e=C.DragPreview;B=C.renderDragPreview?c.default.createElement(e,{ref:I},C.renderDragPreview):null}if(R&&C){o=C.useDroppableCollectionState({collection:b.collection,selectionManager:S});let e=new o7({collection:b.collection,disabledKeys:S.disabledKeys,disabledBehavior:S.disabledBehavior,ref:t,layoutDelegate:x}),a=C.dropTargetDelegate||D||new C.ListDropTargetDelegate(r.rows,t);V.setup(a,y,z),s=C.useDroppableCollection({keyboardDelegate:e,dropTargetDelegate:V,onDropActivate:e=>{if("item"===e.target.type){let t=e.target.key,a=y.collection.getItem(t),r=g.has(t);a&&a.hasChildNodes&&(!r||C?.isVirtualDragging?.())&&y.toggleKey(t)}},onKeyDown:e=>{let t=o?.target;if(t&&"item"===t.type&&"on"===t.dropPosition){let a=y.collection.getItem(t.key);e.key===mz[z]&&a?.hasChildNodes&&!y.expandedKeys.has(t.key)?y.toggleKey(t.key):e.key===mV[z]&&a?.hasChildNodes&&y.expandedKeys.has(t.key)&&y.toggleKey(t.key)}}},o,t),T=o.isDropTarget({type:"root"})}let{focusProps:j,isFocused:L,isFocusVisible:O}=t1(),U=K({...e,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:T,isFocused:L,isFocusVisible:O,state:b}}),H=!!($&&!i?.isDisabled),Z=U.style,W=null;h&&(W=h.useTableColumnResizeState({tableWidth:h.tableWidth},b),v||(Z={...Z,tableLayout:"fixed",width:"min-content"}));let G=X(e,{global:!0});return c.default.createElement(F,{values:[[mK,b],[mB,W],[oh,{dragAndDropHooks:C,dragState:i,dropState:o}],[og,{render:mY}],[oE,null],[oS,null]]},c.default.createElement(oI,null,c.default.createElement(mI,{...N(G,U,w,j,s?.collectionProps),style:Z,ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-allows-dragging":H||void 0,"data-drop-target":T||void 0,"data-focused":L||void 0,"data-focus-visible":O||void 0},c.default.createElement(o$,null,c.default.createElement(k,{collection:b.collection,scrollRef:h?.scrollRef??t,persistedKeys:ob(S,C,o)})))),B)}let mL=(0,c.createContext)(null);class mO extends aM{static{this.type="tableheader"}}class mU extends aM{static{this.type="column"}}class mH extends aT{static{this.type="tablebody"}}class mZ extends aT{static{this.type="tablefooter"}}class mW extends aM{static{this.type="item"}filter(e,t,a){for(let r of e.getChildren(this.key))if(a(r.textValue,r)){let a=this.clone();return t.addDescendants(a,e),a}return null}}let mG=(0,c.forwardRef)(function(e,t){let{isVirtualized:a}=(0,c.useContext)(a3);return a?c.default.createElement(L.div,{...e,ref:t}):c.default.createElement(L.tr,{...e,ref:t})});class mq extends aM{static{this.type="cell"}}let m_=(0,c.forwardRef)(function(e,t){let{isVirtualized:a}=(0,c.useContext)(a3);return a?c.default.createElement(L.div,{...e,ref:t}):c.default.createElement(L.td,{...e,ref:t})});function mY(e,t){t=M(t);let{dragAndDropHooks:a,dropState:r}=(0,c.useContext)(oh),n=(0,c.useRef)(null),{dropIndicatorProps:l,isHidden:i,isDropTarget:o}=a.useDropIndicator(e,r,n);if(i)return null;let s=r&&"item"===e.target.type?(r.collection.getItem(e.target.key)?.level||0)+1:1;return c.default.createElement(mX,{...e,dropIndicatorProps:l,isDropTarget:o,buttonRef:n,level:s,ref:t})}let mJ=(0,c.forwardRef)(function(e,t){let{isVirtualized:a}=(0,c.useContext)(a3);return a?c.default.createElement(L.div,{...e,ref:t}):c.default.createElement(L.tr,{...e,ref:t})}),mQ=(0,c.forwardRef)(function(e,t){let{isVirtualized:a}=(0,c.useContext)(a3);return a?c.default.createElement(L.div,{...e,ref:t}):c.default.createElement(L.td,{...e,ref:t})}),mX=(0,c.forwardRef)(function(e,t){let{dropIndicatorProps:a,isDropTarget:r,buttonRef:n,level:l,...i}=e,o=(0,c.useContext)(mK),{visuallyHiddenProps:s}=lI(),u=K({...i,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":l+1},values:{isDropTarget:r}});return c.default.createElement(mJ,{...X(e,{global:!0}),...u,role:"row",ref:t,"data-drop-target":r||void 0,"aria-level":l},c.default.createElement(mQ,{role:"gridcell",colSpan:o.collection.columnCount,style:{padding:0}},c.default.createElement("div",{...s,role:"button",...a,ref:n}),u.children))});aY(aK,function(e,t,a){let r=(0,c.useContext)(mK),{isVirtualized:n}=(0,c.useContext)(a3),{isLoading:l,onLoadMore:i,scrollOffset:o,...s}=e,u=r.collection.columns.length,d=(0,c.useRef)(null);sw((0,c.useMemo)(()=>({onLoadMore:i,collection:r?.collection,sentinelRef:d,scrollOffset:o}),[i,o,r?.collection]),d);let m=K({...s,id:void 0,children:a.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":a.level+1},values:void 0}),p={},h={};return n?(p["aria-colspan"]=u,h={display:"contents"}):p.colSpan=u,c.default.createElement(c.default.Fragment,null,c.default.createElement(mG,{style:{height:0},inert:sc(!0)},c.default.createElement(m_,{style:{padding:0,border:0}},c.default.createElement("div",{"data-testid":"loadMoreSentinel",ref:d,style:{position:"relative",height:1,width:1}}))),l&&m.children&&c.default.createElement(mG,{...N(X(e,{global:!0}),{}),...m,role:"row",ref:t,"aria-level":a.level+1,"data-level":a.level+1},c.default.createElement(m_,{role:"rowheader",...p,style:h},m.children)))}),(0,c.forwardRef)(({children:e,className:t,...a},r)=>(0,u.jsx)(mA,{ref:r,className:at("w-full border-collapse text-sm",t),...a,children:e})).displayName="Table";let m0=new WeakMap;function m1(e,t,a){if(!e)return"";"string"==typeof t&&(t=t.replace(/\s+/g,""));let r=m0.get(e);return`${r}-${a}-${t}`}class m4{constructor(e,t,a,r=new Set){this.collection=e,this.flipDirection="rtl"===t&&"horizontal"===a,this.disabledKeys=r,this.tabDirection="horizontal"===a}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}
12getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do null==(t=this.collection.getKeyAfter(t))&&(t=this.collection.getFirstKey());while(null!=t&&this.isDisabled(t)&&t!==e)return t}getPreviousKey(e){let t=e;do null==(t=this.collection.getKeyBefore(t))&&(t=this.collection.getLastKey());while(null!=t&&this.isDisabled(t)&&t!==e)return t}}function m3(e,t){let a=null;if(e){for(a=e.getFirstKey();null!=a&&(t.has(a)||e.getItem(a)?.props?.isDisabled)&&a!==e.getLastKey();)a=e.getKeyAfter(a);null!=a&&(t.has(a)||e.getItem(a)?.props?.isDisabled)&&a===e.getLastKey()&&(a=e.getFirstKey())}return a}let m5=(0,c.createContext)(null),m2=(0,c.createContext)(null),m6=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,m5);let{children:a,orientation:r="horizontal"}=e;return a=(0,c.useMemo)(()=>"function"==typeof a?a({orientation:r,defaultChildren:null}):a,[a,r]),c.default.createElement(aW,{content:a},a=>c.default.createElement(m7,{props:e,collection:a,tabsRef:t}))});function m7({props:e,tabsRef:t,collection:a}){let{orientation:r="horizontal"}=e,n=function(e){let t=function(e){let[t,a]=lN(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,c.useMemo)(()=>null!=t?[t]:[],[t]),{collection:n,disabledKeys:l,selectionManager:i}=sD({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{if("all"===r)return;let n=r.values().next().value??null;n===t&&e.onSelectionChange&&e.onSelectionChange(n),a(n)}}),o=null!=t?n.getItem(t):null;return{collection:n,disabledKeys:l,selectionManager:i,selectedKey:t,setSelectedKey:a,selectedItem:o}}({...e,onSelectionChange:e.onSelectionChange?t=>{null!=t&&e.onSelectionChange?.(t)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??m3(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:a,collection:r,selectedKey:n}=t,l=(0,c.useRef)(n);return(0,c.useEffect)(()=>{let i=n;null==e.selectedKey&&(a.isEmpty||null==i||!r.getItem(i))&&null!=(i=m3(r,t.disabledKeys))&&a.setSelectedKeys([i]),(null==i||null!=a.focusedKey)&&(a.isFocused||i===l.current)||a.setFocusedKey(i),l.current=i}),{...t,isDisabled:e.isDisabled||!1}}({...e,collection:a,children:void 0}),{focusProps:l,isFocused:i,isFocusVisible:o}=t1({within:!0}),s=(0,c.useMemo)(()=>({orientation:r,isFocusWithin:i,isFocusVisible:o}),[r,i,o]),u=K({...e,defaultClassName:"react-aria-Tabs",values:s}),d=X(e,{global:!0});return c.default.createElement(L.div,{...N(d,u,l),ref:t,slot:e.slot||void 0,"data-focused":i||void 0,"data-orientation":r,"data-focus-visible":o||void 0,"data-disabled":n.isDisabled||void 0},c.default.createElement(F,{values:[[m5,e],[m2,n]]},u.children))}let m9=(0,c.forwardRef)(function(e,t){return(0,c.useContext)(m2)?c.default.createElement(m8,{props:e,forwardedRef:t}):c.default.createElement(aQ,e)});function m8({props:e,forwardedRef:t}){let a=(0,c.useContext)(m2),{CollectionRoot:r}=(0,c.useContext)(a3),{orientation:n="horizontal",keyboardActivation:l="automatic"}=B(m5),i=M(t),{tabListProps:o}=function(e,t,a){let{orientation:r="horizontal",keyboardActivation:n="automatic"}=e,{collection:l,selectionManager:i,disabledKeys:o}=t,{direction:s}=ed(),{collectionProps:u}=o2({ref:a,selectionManager:i,keyboardDelegate:(0,c.useMemo)(()=>new m4(l,s,r,o),[l,o,r,s]),selectOnFocus:"automatic"===n,disallowEmptySelection:!0,scrollRef:a,linkBehavior:"selection"}),d=E();return m0.set(t,d),{tabListProps:{...N(u,ee({...e,id:d})),role:"tablist","aria-orientation":r,tabIndex:void 0}}}({...e,orientation:n,keyboardActivation:l},a,i),s=K({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:n,state:a}}),u=X(e,{global:!0});return delete u.id,c.default.createElement(L.div,{...N(u,s,o),ref:i,"data-orientation":n||void 0},c.default.createElement(o$,null,c.default.createElement(r,{collection:a.collection,persistedKeys:a5(a.selectionManager.focusedKey)})))}class pe extends aM{static{this.type="item"}}let pt=aY(pe,(e,t,a)=>{let r=(0,c.useContext)(m2),n=M(t),{tabProps:l,isSelected:i,isDisabled:o,isPressed:s}=function(e,t,a){let{key:r,isDisabled:n,shouldSelectOnPressUp:l}=e,{selectionManager:i,selectedKey:o}=t,s=r===o,u=n||t.isDisabled||t.selectionManager.isDisabled(r),d=t.collection.getItem(r),{itemProps:c,isPressed:m}=sa({selectionManager:i,key:r,ref:a,isDisabled:u,shouldSelectOnPressUp:l??d?.props.href!=null,linkBehavior:"selection"}),p=m1(t,r,"tab"),h=m1(t,r,"tabpanel"),{tabIndex:g}=c,f=X(d?.props,{labelable:!0});delete f.id;let y=e9(d?.props),{focusableProps:b}=t$({...d?.props,isDisabled:u},a);return{tabProps:N(f,b,y,c,{id:p,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?h:void 0,tabIndex:u?void 0:g,role:"tab"}),isSelected:s,isDisabled:u,isPressed:m}}
12({key:a.key,...e},r,n),{focusProps:u,isFocused:d,isFocusVisible:m}=t1(),{hoverProps:p,isHovered:h}=t6({isDisabled:o,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),g=K({...e,id:void 0,children:a.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:i,isDisabled:o,isFocused:d,isFocusVisible:m,isPressed:s,isHovered:h}}),f=a.props.href?L.a:L.div,y=X(e,{global:!0});return delete y.id,delete y.onClick,c.default.createElement(f,{...N(y,g,l,u,p),ref:n,"data-selected":i||void 0,"data-disabled":o||void 0,"data-focused":d||void 0,"data-focus-visible":m||void 0,"data-pressed":s||void 0,"data-hovered":h||void 0},c.default.createElement(oR.Provider,{value:{isSelected:i}},g.children))}),pa=H(function(e,t){let a=(0,c.useContext)(m2),r=M(t),n=a.selectedKey===e.id,[l,i]=(0,c.useState)(null!=a.selectedKey?n:null);null==l&&null!=a.selectedKey?i(n):!n&&l&&i(!1);let o=uS(r,n);return n||e.shouldForceMount||o?c.default.createElement(pr,{...e,tabPanelRef:r,isInitiallySelected:l||!1,isExiting:o}):null});function pr(e){let t,a,r=(0,c.useContext)(m2),{id:n,tabPanelRef:l,isInitiallySelected:i,isExiting:o,...s}=e,{tabPanelProps:u}=(t=dZ(l)?void 0:0,a=m1(r,e.id??r?.selectedKey,"tabpanel"),{tabPanelProps:N(ee({...e,id:a,"aria-labelledby":m1(r,r?.selectedKey,"tab")}),{tabIndex:t,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}),{focusProps:d,isFocused:m,isFocusVisible:p}=t1(),h=r.selectedKey===e.id,g=uE(l)&&!i,f=K({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:m,isFocusVisible:p,isInert:sc(!h),isEntering:g,isExiting:o,state:r}}),y=X(s,{global:!0});delete y.id;let b=h?N(y,u,d,f):N(y,f);return c.default.createElement(L.div,{...b,ref:l,"data-focused":m||void 0,"data-focus-visible":p||void 0,inert:sc(!h||e.inert),"data-inert":h?void 0:"true","data-entering":g||void 0,"data-exiting":o||void 0},c.default.createElement(F,{values:[[m5,null],[m2,null]]},c.default.createElement(a3.Provider,{value:a1},f.children)))}let pn=(0,c.createContext)("horizontal");(0,c.forwardRef)(({children:e,onSelectionChange:t,orientation:a="horizontal",className:r,...n},l)=>(0,u.jsx)(pn.Provider,{value:a,children:(0,u.jsx)(m6,{ref:l,orientation:a,onSelectionChange:t?e=>t(e.toString()):void 0,className:at("vertical"===a&&"flex",r),...n,children:e})})).displayName="Tabs";let pl=(0,d.cva)(at("flex gap-1 relative"),{variants:{orientation:{horizontal:at("items-stretch border-b border-gray-200 mb-2","dark:border-gray-700"),vertical:"flex-col"},layout:{start:"justify-start","space-between":"justify-between",stretch:""}},defaultVariants:{orientation:"horizontal"}}),pi=(0,c.createContext)("start");(0,c.forwardRef)(({children:e,layout:t="start",className:a,...r},n)=>{let l=(0,c.useContext)(pn);return(0,u.jsx)(pi.Provider,{value:t,children:(0,u.jsx)(m9,{ref:n,className:pl({orientation:l,layout:t,className:a}),...r,children:e})})}).displayName="TabList";let po=(0,d.cva)(at("relative px-3 py-2 cursor-pointer text-sm font-medium outline-none transition-colors"),{variants:{orientation:{horizontal:at("-mb-px border-b-2 border-transparent","data-selected:border-blue-600 data-selected:text-blue-600","data-hover:text-gray-700","data-disabled:text-gray-300 data-disabled:cursor-not-allowed","data-selected:data-disabled:text-gray-300","dark:data-selected:border-blue-400 dark:data-selected:text-blue-400","dark:data-hover:text-gray-300","dark:text-gray-400","dark:data-disabled:text-gray-600"),vertical:at("rounded-md text-gray-700","data-selected:bg-blue-50 data-selected:text-blue-600","data-hover:bg-gray-50","data-disabled:text-gray-300 data-disabled:cursor-not-allowed","dark:text-gray-300","dark:data-selected:bg-blue-950 dark:data-selected:text-blue-300","dark:data-hover:bg-gray-800",aa)}},defaultVariants:{orientation:"horizontal"}});(0,c.forwardRef)(({children:e,className:t,...a},r)=>{let n=(0,c.useContext)(pi),l=(0,c.useContext)(pn);return(0,u.jsx)(pt,{ref:r,className:at(po({orientation:l}),"stretch"===n?"flex-1 text-center":"",t),...a,children:e})}).displayName="Tab",(0,c.forwardRef)(({children:e,className:t,...a},r)=>(0,u.jsx)(pa,{ref:r,className:at("outline-none pt-2",t),...a,children:e})).displayName="TabPanel";let ps=new WeakMap,pu=(0,c.createContext)(null),pd=(0,c.createContext)(null),pc=(0,c.forwardRef)(function(e,t){return[e,t]=A(e,t,pu),c.default.createElement(sS.Provider,{value:null},c.default.createElement(aW,{content:e.children},a=>c.default.createElement(pm,{props:e,forwardedRef:t,collection:a})))});function pm({props:e,forwardedRef:t,collection:a}){let r=(0,c.useRef)(null),{id:n,...l}=e;[l,r]=A(l,r,oE);let{filter:i,shouldUseVirtualFocus:o,...s}=l,[u,d]=I(!e["aria-label"]&&!e["aria-labelledby"]),m=sk(sD({...s,children:void 0,collection:a}),i),p=X(l,{global:!0}),h=Object.fromEntries(Object.entries(p).map(([e,t])=>
12[e,"id"===e?t:void 0])),{gridProps:g,labelProps:f,descriptionProps:y,errorMessageProps:b}=function(e,t,a){let{direction:r}=ed(),n=e.keyboardDelegate||new o7({collection:t.collection,ref:a,orientation:"horizontal",direction:r,disabledKeys:t.disabledKeys,disabledBehavior:t.selectionManager.disabledBehavior}),{labelProps:l,fieldProps:i,descriptionProps:o,errorMessageProps:s}=il({...e,labelElementType:"span"}),{gridProps:u}=dG({...e,...i,keyboardDelegate:n,shouldFocusWrap:!0,linkBehavior:"override",keyboardNavigationBehavior:"tab"},t,a),[d,m]=(0,c.useState)(!1),{focusWithinProps:p}=t0({onFocusWithinChange:m}),h=X(e),g=(0,c.useRef)(t.collection.size);return(0,c.useEffect)(()=>{a.current&&g.current>0&&0===t.collection.size&&d&&a.current.focus(),g.current=t.collection.size},[t.collection.size,d,a]),ps.set(t,{onRemove:e.onRemove}),{gridProps:N(u,h,{role:t.collection.size?"grid":"group","aria-atomic":!1,"aria-relevant":"additions","aria-live":d?"polite":"off",...p,...i}),labelProps:l,descriptionProps:o,errorMessageProps:s}}({...s,...h,label:d},m,r);return c.default.createElement(L.div,{render:e.render,...p,id:n,ref:t,slot:e.slot||void 0,className:e.className??"react-aria-TagGroup",style:e.style},c.default.createElement(F,{values:[[Z,{...f,elementType:"span",ref:u}],[pd,{...g,ref:r}],[sS,m],[nf,{slots:{description:y,errorMessage:b}}]]},e.children))}let pp=(0,c.forwardRef)(function(e,t){return(0,c.useContext)(sS)?c.default.createElement(ph,{props:e,forwardedRef:t}):c.default.createElement(aQ,e)});function ph({props:e,forwardedRef:t}){let a=(0,c.useContext)(sS),{CollectionRoot:r}=(0,c.useContext)(a3),[n,l]=A({},t,pd),{focusProps:i,isFocused:o,isFocusVisible:s}=t1(),u={isEmpty:0===a.collection.size,isFocused:o,isFocusVisible:s,state:a},d=K({...e,children:void 0,defaultClassName:"react-aria-TagList",values:u}),m=a5(a.selectionManager.focusedKey),p=X(e,{global:!0});return c.default.createElement(L.div,{...N(p,d,n,i),ref:l,"data-empty":0===a.collection.size||void 0,"data-focused":o||void 0,"data-focus-visible":s||void 0},c.default.createElement(o$,null,0===a.collection.size&&e.renderEmptyState?e.renderEmptyState(u):c.default.createElement(r,{collection:a.collection,persistedKeys:m})))}(0,c.forwardRef)(({label:e,children:t,className:a,...r},n)=>(0,u.jsxs)(pc,{ref:n,className:at("flex flex-col gap-1",a),...r,children:[e?(0,u.jsx)(W,{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:e}):null,(0,u.jsx)(pp,{className:"flex flex-wrap gap-1",children:t})]})).displayName="TagGroup",(0,c.forwardRef)(({label:e,className:t,...a},r)=>(0,u.jsxs)(dg,{ref:r,className:at("flex flex-col gap-1",t),...a,children:[e?(0,u.jsx)(W,{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:e}):null,(0,u.jsx)(df,{className:at("flex items-center border border-gray-300 rounded-lg bg-white px-3 py-2 text-sm","data-focus-within:border-blue-600 data-focus-within:ring-1 data-focus-within:ring-blue-600","dark:bg-gray-800 dark:border-gray-600",aa),children:e=>(0,u.jsx)(dv,{segment:e,className:at("rounded outline-none text-gray-900 dark:text-gray-100","data-placeholder-shown:text-gray-400 dark:data-placeholder-shown:text-gray-500","data-focus:bg-gray-200 dark:data-focus:bg-gray-700","dayPeriod"===e.type&&"ml-1")})})]})).displayName="TimeField";class pg{constructor(e,t){this.startTime=null,this.remaining=t,this.callback=e}reset(e){this.remaining=e,this.resume()}pause(){null!=this.timerId&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}}let pf=new class{constructor(e){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[],this.maxVisibleToasts=e?.maxVisibleToasts??1/0,this.wrapUpdate=e?.wrapUpdate}runWithWrapUpdate(e,t){this.wrapUpdate?this.wrapUpdate(e,t):e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,t={}){let a="_"+Math.random().toString(36).slice(2),r={...t,content:e,key:a,timer:t.timeout?new pg(()=>this.close(a),t.timeout):void 0};return this.queue.unshift(r),this.updateVisibleToasts("add"),a}close(e){let t=this.queue.findIndex(t=>t.key===e);t>
12=0&&(this.queue[t].onClose?.(),this.queue.splice(t,1)),this.updateVisibleToasts("remove")}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let e of this.subscriptions)e()},e)}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts("clear")}}({maxVisibleToasts:5}),py=new Set,pb=0,pv=new Set;function px(){for(let e of(pb++,pv))e()}let pD=pf.close.bind(pf);function pk(e,t,a){let{isSelected:r}=t,{isPressed:n,buttonProps:l}=tX({...e,onPress:m(t.toggle,e.onPress)},a);return{isPressed:n,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:N(l,{"aria-pressed":r})}}pf.close=e=>{if(!py.has(e)){if(!pf.visibleToasts.some(t=>t.key===e))return void pD(e);py.add(e),px(),setTimeout(()=>{py.delete(e),px(),pD(e)},150)}},(0,d.cva)(at("relative grid grid-cols-[auto_1fr] items-start gap-x-3 gap-y-0.5","w-80 rounded-lg border border-l-4 pl-4 pr-10 py-3 text-sm shadow-md outline-none","bg-white border-gray-200 text-gray-900","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100","data-focus-visible:ring-2 data-focus-visible:ring-offset-2 data-focus-visible:ring-blue-600"),{variants:{variant:{info:"border-l-blue-500 dark:border-l-blue-400",success:"border-l-green-500 dark:border-l-green-400",warning:"border-l-amber-500 dark:border-l-amber-400",error:"border-l-red-500 dark:border-l-red-400"}}});let pC=(0,c.createContext)(null),pw=(0,c.createContext)({}),pE=(0,c.forwardRef)(function(e,t){[e,t]=A(e,t,pw);let a=(0,c.useContext)(pC),r=ic(a&&null!=e.id?{isSelected:a.selectedKeys.has(e.id),onChange(t){a.setSelected(e.id,t)}}:e),{buttonProps:n,isPressed:l,isSelected:i,isDisabled:o}=a&&null!=e.id?function(e,t,a){let r={isSelected:t.selectedKeys.has(e.id),defaultSelected:!1,setSelected(a){t.setSelected(e.id,a)},toggle(){t.toggleKey(e.id)}},{isPressed:n,isSelected:l,isDisabled:i,buttonProps:o}=pk({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,a);return"single"===t.selectionMode&&(o.role="radio",o["aria-checked"]=r.isSelected,delete o["aria-pressed"]),{isPressed:n,isSelected:l,isDisabled:i,buttonProps:o}}({...e,id:e.id},a,t):pk({...e,id:null!=e.id?String(e.id):void 0},r,t),{focusProps:s,isFocused:u,isFocusVisible:d}=t1(e),{hoverProps:m,isHovered:p}=t6({...e,isDisabled:o}),h=K({...e,id:void 0,values:{isHovered:p,isPressed:l,isFocused:u,isSelected:r.isSelected,isFocusVisible:d,isDisabled:o,state:r},defaultClassName:"react-aria-ToggleButton"}),g=X(e,{global:!0});return delete g.id,delete g.onClick,c.default.createElement(L.button,{...N(g,h,n,s,m),ref:t,slot:e.slot||void 0,"data-focused":u||void 0,"data-disabled":o||void 0,"data-pressed":l||void 0,"data-selected":i||void 0,"data-hovered":p||void 0,"data-focus-visible":d||void 0},c.default.createElement(oR.Provider,{value:{isSelected:i}},h.children))}),pS=(0,d.cva)(at("inline-flex items-center justify-center text-sm font-medium cursor-pointer outline-none","transition-all duration-150","data-
12pressed:scale-[0.97]","border border-gray-300 text-gray-700 bg-white","data-hover:bg-gray-50","data-selected:bg-blue-50 data-selected:text-blue-600 data-selected:border-blue-600","data-selected:data-hover:bg-blue-100","data-disabled:opacity-50 data-disabled:cursor-not-allowed","dark:bg-gray-800 dark:border-gray-600 dark:text-gray-200","dark:data-hover:bg-gray-700","dark:data-selected:bg-blue-950 dark:data-selected:text-blue-300 dark:data-selected:border-blue-400",aa),{variants:{size:{sm:"h-8 px-3 gap-1.5 text-sm rounded-lg",md:"h-9 px-4 gap-2 text-sm rounded-lg",lg:"h-10 px-5 gap-2 text-base rounded-lg","icon-xs":"size-6 rounded-md p-0","icon-sm":"size-8 rounded-lg p-0","icon-md":"size-9 rounded-lg p-0","icon-lg":"size-10 rounded-lg p-0"}}});(0,c.forwardRef)(({children:e,className:t,size:a="md",isPending:r,...n},l)=>(0,u.jsxs)(pE,{ref:l,className:at("relative",pS({size:a}),t),isDisabled:r||n.isDisabled,...n,children:[(0,u.jsx)("span",{className:at("inline-flex items-center gap-1.5",r&&"opacity-0"),children:e}),r?(0,u.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:(0,u.jsx)(ai,{"aria-label":"Loading",size:"sm",className:"text-current"})}):null]})).displayName="ToggleButton";let pP=c.default.createContext(null);function p$(e){let{children:t}=e,a=(0,c.useContext)(pP),[r,n]=(0,c.useState)(0),l=(0,c.useMemo)(()=>({parent:a,modalCount:r,addModal(){n(e=>e+1),a&&a.addModal()},removeModal(){n(e=>e-1),a&&a.removeModal()}}),[a,r]);return c.default.createElement(pP.Provider,{value:l},t)}function pR(e){let t,{modalProviderProps:a}={modalProviderProps:{"aria-hidden":!!(t=(0,c.useContext)(pP))&&t.modalCount>0||void 0}};return c.default.createElement("div",{"data-overlay-container":!0,...e,...a})}function pN(e){return c.default.createElement(p$,null,c.default.createElement(pR,e))}
12function pM(e){let t=k(),{portalContainer:a=t?null:document.body,...r}=e,{getContainer:n}=s_();if(!e.portalContainer&&n&&(a=n()),c.default.useEffect(()=>{if(a?.closest("[data-overlay-container]"))throw Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[a]),!a)return null;let l=c.default.createElement(pN,r);return tL.default.createPortal(l,a)}let pT={},pF=0,pK=!1,pB=null,pA=null;function pI(e={}){let{delay:t=1500,closeDelay:a=500}=e,{isOpen:r,open:n,close:l}=sL(e),i=(0,c.useMemo)(()=>`${++pF}`,[]),o=(0,c.useRef)(null),s=(0,c.useRef)(l),u=()=>{pT[i]=p},d=()=>{for(let e in pT)e!==i&&(pT[e](!0),delete pT[e])},m=()=>{o.current&&clearTimeout(o.current),o.current=null,d(),u(),pK=!0,n(),pB&&(clearTimeout(pB),pB=null),pA&&(clearTimeout(pA),pA=null)},p=e=>{e||a<=0?(o.current&&clearTimeout(o.current),o.current=null,s.current()):o.current||(o.current=setTimeout(()=>{o.current=null,s.current()},a)),pB&&(clearTimeout(pB),pB=null),pK&&(pA&&clearTimeout(pA),pA=setTimeout(()=>{delete pT[i],pA=null,pK=!1},Math.max(500,a)))};return(0,c.useEffect)(()=>{s.current=l},[l]),(0,c.useEffect)(()=>()=>{o.current&&clearTimeout(o.current),pT[i]&&delete pT[i]},[i]),{isOpen:r,open:e=>{e||!(t>0)||o.current?m():(d(),u(),r||pK?r||m():(pB&&clearTimeout(pB),pB=setTimeout(()=>{pB=null,pK=!0,m()},t)))},close:p}}let pz=(0,c.createContext)(null),pV=(0,c.createContext)(null);function pj(e){let t=pI(e),a=(0,c.useRef)(null),{triggerProps:r,tooltipProps:n}=function(e,t,a){let{isDisabled:r,trigger:n,shouldCloseOnPress:l=!0}=e,i=E(),o=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=()=>{(o.current||s.current)&&t.open(s.current)},d=e=>{o.current||s.current||t.close(e)};(0,c.useEffect)(()=>{let e=e=>{a&&a.current&&"Escape"===e.key&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[a,t]);let m=()=>{l&&(s.current=!1,o.current=!1,d(!0))},{hoverProps:p}=t6({isDisabled:r,onHoverStart:()=>{"focus"!==n&&("pointer"===te?o.current=!0:o.current=!1,u())},onHoverEnd:()=>{"focus"!==n&&(s.current=!1,o.current=!1,d())}}),{focusableProps:h}=t$({isDisabled:r,onFocus:()=>{th()&&(s.current=!0,u())},onBlur:()=>{s.current=!1,o.current=!1,d(!0)}},a);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...N(h,p,{onPointerDown:m,onKeyDown:m}),tabIndex:void 0},tooltipProps:{id:i}}}(e,t,a);return c.default.createElement(F,{values:[[pz,t],[pV,{...n,triggerRef:a}]]},c.default.createElement(tP,{...r,ref:a},e.children))}let pL=(0,c.forwardRef)(function({UNSTABLE_portalContainer:e,...t},a){[t,a]=A(t,a,pV);let r=(0,c.useContext)(pz),n=pI(t),l=null==t.isOpen&&null==t.defaultOpen&&r?r:n,i=uS(a,l.isOpen)||t.isExiting||!1;return l.isOpen||i?c.default.createElement(pM,{portalContainer:e},c.default.createElement(pO,{...t,tooltipRef:a,isExiting:i})):null});function pO(e){let t=(0,c.useContext)(pz),a=(0,c.useRef)(null),{overlayProps:r,arrowProps:n,placement:l,triggerAnchorPoint:i}=um({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:a,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),o=uE(e.tooltipRef,!!l)||e.isEntering||!1,s=K({...e,defaultClassName:"react-aria-Tooltip",values:{placement:l,isEntering:o,isExiting:e.isExiting,state:t}}),{tooltipProps:u}=function(e,t){let a=X(e,{labelable:!0}),{hoverProps:r}=t6({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:N(a,r,{role:"tooltip"})}}(e=N(e,r),t),d=X(e,{global:!0});return c.default.createElement(L.div,{...N(d,s,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":i?`${i.x}px ${i.y}px`:void 0,...s.style},"data-placement":l??void 0,"data-entering":o||void 0,"data-exiting":e.isExiting||void 0},c.default.createElement(sF.Provider,{value:{...n,placement:l,ref:a}},s.children))}let pU=(0,c.forwardRef)(({children:e,placement:t="top",className:a,...r},n)=>(0,u.jsxs)(pL,{ref:n,placement:t,offset:8,className:at("z-tooltip bg-gray-900 text-white text-sm px-3 py-2 rounded-lg shadow-md max-w-xs","dark:bg-gray-700","data-entering:animate-in data-entering:fade-in","data-exiting:animate-out data-exiting:fade-out",a),...r,children:[(0,u.jsx)(sK,{className:"group",children:(0,u.jsx)("svg",{className:at("fill-gray-900 dark:fill-gray-700","group-data-placement-bottom:rotate-180","group-data-placement-left:-rotate-90","group-data-placement-right:rotate-90"),width:8,height:8,viewBox:"0 0 8 8","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M0 0 L4 4 L8 0"})})}),e]}));pU.displayName="Tooltip",(0,c.forwardRef)(({className:e,children:t,...a},r)=>(0,u.jsx)(au,{ref:r,headless:!0,className:e,...a,children:t})).displayName="TooltipTarget",e.s(["Tooltip",0,pU,"TooltipTrigger",0,function({children:e,delay:t=500,closeDelay:a=0,isOpen:r,onOpenChange:n,isDisabled:l}){return(0,u.jsx)(pj,{delay:t,closeDelay:a,isOpen:r,onOpenChange:n,isDisabled:l,children:e})}],407781),e.s([],592338)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.