@protonradio/proton-ui 0.1.39 → 0.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/proton-ui.es.d.ts +32 -6
- package/dist/proton-ui.es.js +1246 -1183
- package/dist/proton-ui.es.js.map +1 -1
- package/dist/proton-ui.umd.js +10 -10
- package/dist/proton-ui.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/proton-ui.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(G,
|
|
1
|
+
(function(G,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],f):(G=typeof globalThis<"u"?globalThis:G||self,f(G["proton-ui"]={},G.$73SJx$react,G.$k7QOs$reactdom))})(this,function(G,f,Nn){"use strict";const id="";var Ft={exports:{}},We={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Rn;function
|
|
9
|
+
*/var Rn;function ps(){if(Rn)return We;Rn=1;var t=f,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,s,c){var u,p={},h=null,m=null;c!==void 0&&(h=""+c),s.key!==void 0&&(h=""+s.key),s.ref!==void 0&&(m=s.ref);for(u in s)l.call(s,u)&&!i.hasOwnProperty(u)&&(p[u]=s[u]);if(a&&a.defaultProps)for(u in s=a.defaultProps,s)p[u]===void 0&&(p[u]=s[u]);return{$$typeof:e,type:a,key:h,ref:m,props:p,_owner:r.current}}return We.Fragment=n,We.jsx=o,We.jsxs=o,We}var Ue={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var zn;function
|
|
18
|
-
`+Sn+d}}var Kn=!1,Dt;{var
|
|
19
|
-
`),
|
|
20
|
-
`),q=F.length-1,Z=
|
|
21
|
-
`+F[q].replace(" at new "," at ");return d.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",d.displayName)),typeof d=="function"&&Dt.set(d,oe),oe}while(q>=1&&Z>=0);break}}}finally{Kn=!1,Tn.current=H,
|
|
17
|
+
*/var zn;function hs(){return zn||(zn=1,process.env.NODE_ENV!=="production"&&function(){var t=f,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.iterator,x="@@iterator";function w(d){if(d===null||typeof d!="object")return null;var P=g&&d[g]||d[x];return typeof P=="function"?P:null}var S=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(d){{for(var P=arguments.length,K=new Array(P>1?P-1:0),N=1;N<P;N++)K[N-1]=arguments[N];$("error",d,K)}}function $(d,P,K){{var N=S.ReactDebugCurrentFrame,V=N.getStackAddendum();V!==""&&(P+="%s",K=K.concat([V]));var H=K.map(function(j){return String(j)});H.unshift("Warning: "+P),Function.prototype.apply.call(console[d],console,H)}}var M=!1,C=!1,L=!1,_=!1,b=!1,D;D=Symbol.for("react.module.reference");function T(d){return!!(typeof d=="string"||typeof d=="function"||d===l||d===i||b||d===r||d===c||d===u||_||d===m||M||C||L||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===p||d.$$typeof===o||d.$$typeof===a||d.$$typeof===s||d.$$typeof===D||d.getModuleId!==void 0))}function E(d,P,K){var N=d.displayName;if(N)return N;var V=P.displayName||P.name||"";return V!==""?K+"("+V+")":K}function z(d){return d.displayName||"Context"}function v(d){if(d==null)return null;if(typeof d.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case l:return"Fragment";case n:return"Portal";case i:return"Profiler";case r:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case a:var P=d;return z(P)+".Consumer";case o:var K=d;return z(K._context)+".Provider";case s:return E(d,d.render,"ForwardRef");case p:var N=d.displayName||null;return N!==null?N:v(d.type)||"Memo";case h:{var V=d,H=V._payload,j=V._init;try{return v(j(H))}catch{return null}}}return null}var k=Object.assign,O=0,ue,I,de,Se,R,fe,we;function Qo(){}Qo.__reactDisabledLog=!0;function Nu(){{if(O===0){ue=console.log,I=console.info,de=console.warn,Se=console.error,R=console.group,fe=console.groupCollapsed,we=console.groupEnd;var d={configurable:!0,enumerable:!0,value:Qo,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}O++}}function Ru(){{if(O--,O===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},d,{value:ue}),info:k({},d,{value:I}),warn:k({},d,{value:de}),error:k({},d,{value:Se}),group:k({},d,{value:R}),groupCollapsed:k({},d,{value:fe}),groupEnd:k({},d,{value:we})})}O<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Tn=S.ReactCurrentDispatcher,Sn;function At(d,P,K){{if(Sn===void 0)try{throw Error()}catch(V){var N=V.stack.trim().match(/\n( *(at )?)/);Sn=N&&N[1]||""}return`
|
|
18
|
+
`+Sn+d}}var Kn=!1,Dt;{var zu=typeof WeakMap=="function"?WeakMap:Map;Dt=new zu}function Jo(d,P){if(!d||Kn)return"";{var K=Dt.get(d);if(K!==void 0)return K}var N;Kn=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var H;H=Tn.current,Tn.current=null,Nu();try{if(P){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(Pe){N=Pe}Reflect.construct(d,[],j)}else{try{j.call()}catch(Pe){N=Pe}d.call(j.prototype)}}else{try{throw Error()}catch(Pe){N=Pe}d()}}catch(Pe){if(Pe&&N&&typeof Pe.stack=="string"){for(var F=Pe.stack.split(`
|
|
19
|
+
`),ee=N.stack.split(`
|
|
20
|
+
`),q=F.length-1,Z=ee.length-1;q>=1&&Z>=0&&F[q]!==ee[Z];)Z--;for(;q>=1&&Z>=0;q--,Z--)if(F[q]!==ee[Z]){if(q!==1||Z!==1)do if(q--,Z--,Z<0||F[q]!==ee[Z]){var oe=`
|
|
21
|
+
`+F[q].replace(" at new "," at ");return d.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",d.displayName)),typeof d=="function"&&Dt.set(d,oe),oe}while(q>=1&&Z>=0);break}}}finally{Kn=!1,Tn.current=H,Ru(),Error.prepareStackTrace=V}var He=d?d.displayName||d.name:"",fs=He?At(He):"";return typeof d=="function"&&Dt.set(d,fs),fs}function Fu(d,P,K){return Jo(d,!1)}function Lu(d){var P=d.prototype;return!!(P&&P.isReactComponent)}function Nt(d,P,K){if(d==null)return"";if(typeof d=="function")return Jo(d,Lu(d));if(typeof d=="string")return At(d);switch(d){case c:return At("Suspense");case u:return At("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case s:return Fu(d.render);case p:return Nt(d.type,P,K);case h:{var N=d,V=N._payload,H=N._init;try{return Nt(H(V),P,K)}catch{}}}return""}var Rt=Object.prototype.hasOwnProperty,es={},ts=S.ReactDebugCurrentFrame;function zt(d){if(d){var P=d._owner,K=Nt(d.type,d._source,P?P.type:null);ts.setExtraStackFrame(K)}else ts.setExtraStackFrame(null)}function Ou(d,P,K,N,V){{var H=Function.call.bind(Rt);for(var j in d)if(H(d,j)){var F=void 0;try{if(typeof d[j]!="function"){var ee=Error((N||"React class")+": "+K+" type `"+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[j]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ee.name="Invariant Violation",ee}F=d[j](P,j,N,K,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(q){F=q}F&&!(F instanceof Error)&&(zt(V),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",N||"React class",K,j,typeof F),zt(null)),F instanceof Error&&!(F.message in es)&&(es[F.message]=!0,zt(V),y("Failed %s type: %s",K,F.message),zt(null))}}}var ju=Array.isArray;function Cn(d){return ju(d)}function _u(d){{var P=typeof Symbol=="function"&&Symbol.toStringTag,K=P&&d[Symbol.toStringTag]||d.constructor.name||"Object";return K}}function Bu(d){try{return ns(d),!1}catch{return!0}}function ns(d){return""+d}function ls(d){if(Bu(d))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_u(d)),ns(d)}var rt=S.ReactCurrentOwner,Vu={key:!0,ref:!0,__self:!0,__source:!0},rs,is,In;In={};function Hu(d){if(Rt.call(d,"ref")){var P=Object.getOwnPropertyDescriptor(d,"ref").get;if(P&&P.isReactWarning)return!1}return d.ref!==void 0}function Wu(d){if(Rt.call(d,"key")){var P=Object.getOwnPropertyDescriptor(d,"key").get;if(P&&P.isReactWarning)return!1}return d.key!==void 0}function Uu(d,P){if(typeof d.ref=="string"&&rt.current&&P&&rt.current.stateNode!==P){var K=v(rt.current.type);In[K]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',v(rt.current.type),d.ref),In[K]=!0)}}function Gu(d,P){{var K=function(){rs||(rs=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};K.isReactWarning=!0,Object.defineProperty(d,"key",{get:K,configurable:!0})}}function Yu(d,P){{var K=function(){is||(is=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};K.isReactWarning=!0,Object.defineProperty(d,"ref",{get:K,configurable:!0})}}var qu=function(d,P,K,N,V,H,j){var F={$$typeof:e,type:d,key:P,ref:K,props:j,_owner:H};return F._store={},Object.defineProperty(F._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(F,"_self",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.defineProperty(F,"_source",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.freeze&&(Object.freeze(F.props),Object.freeze(F)),F};function Xu(d,P,K,N,V){{var H,j={},F=null,ee=null;K!==void 0&&(ls(K),F=""+K),Wu(P)&&(ls(P.key),F=""+P.key),Hu(P)&&(ee=P.ref,Uu(P,V));for(H in P)Rt.call(P,H)&&!Vu.hasOwnProperty(H)&&(j[H]=P[H]);if(d&&d.defaultProps){var q=d.defaultProps;for(H in q)j[H]===void 0&&(j[H]=q[H])}if(F||ee){var Z=typeof d=="function"?d.displayName||d.name||"Unknown":d;F&&Gu(j,Z),ee&&Yu(j,Z)}return qu(d,F,ee,V,N,rt.current,j)}}var Mn=S.ReactCurrentOwner,os=S.ReactDebugCurrentFrame;function Ve(d){if(d){var P=d._owner,K=Nt(d.type,d._source,P?P.type:null);os.setExtraStackFrame(K)}else os.setExtraStackFrame(null)}var An;An=!1;function Dn(d){return typeof d=="object"&&d!==null&&d.$$typeof===e}function ss(){{if(Mn.current){var d=v(Mn.current.type);if(d)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+d+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+d+"`."}return""}}function Zu(d){{if(d!==void 0){var P=d.fileName.replace(/^.*[\\\/]/,""),K=d.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+P+":"+K+"."}return""}}var
|
|
25
|
+
Check your code at `+P+":"+K+"."}return""}}var as={};function Qu(d){{var P=ss();if(!P){var K=typeof d=="string"?d:d.displayName||d.name;K&&(P=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+K+">.")}return P}}function as(d,P){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var K=qu(P);if(ss[K])return;ss[K]=!0;var N="";d&&d._owner&&d._owner!==Mn.current&&(N=" It was passed a child from "+v(d._owner.type)+"."),Ve(d),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',K,N),Ve(null)}}function cs(d,P){{if(typeof d!="object")return;if(Cn(d))for(var K=0;K<d.length;K++){var N=d[K];Dn(N)&&as(N,P)}else if(Dn(d))d._store&&(d._store.validated=!0);else if(d){var V=w(d);if(typeof V=="function"&&V!==d.entries)for(var H=V.call(d),j;!(j=H.next()).done;)Dn(j.value)&&as(j.value,P)}}}function Xu(d){{var P=d.type;if(P==null||typeof P=="string")return;var K;if(typeof P=="function")K=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===s||P.$$typeof===f))K=P.propTypes;else return;if(K){var N=v(P);zu(K,d.props,"prop",N,d)}else if(P.PropTypes!==void 0&&!An){An=!0;var V=v(P);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zu(d){{for(var P=Object.keys(d.props),K=0;K<P.length;K++){var N=P[K];if(N!=="children"&&N!=="key"){Ve(d),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),Ve(null);break}}d.ref!==null&&(Ve(d),y("Invalid attribute `ref` supplied to `React.Fragment`."),Ve(null))}}function us(d,P,K,N,V,H){{var j=T(d);if(!j){var F="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(F+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var J=Yu(V);J?F+=J:F+=os();var q;d===null?q="null":Cn(d)?q="array":d!==void 0&&d.$$typeof===e?(q="<"+(v(d.type)||"Unknown")+" />",F=" Did you accidentally export a JSX literal instead of a component?"):q=typeof d,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",q,F)}var Z=Gu(d,P,K,V,H);if(Z==null)return Z;if(j){var oe=P.children;if(oe!==void 0)if(N)if(Cn(oe)){for(var He=0;He<oe.length;He++)cs(oe[He],d);Object.freeze&&Object.freeze(oe)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else cs(oe,d)}return d===r?Zu(Z):Xu(Z),Z}}function Qu(d,P,K){return us(d,P,K,!0)}function Ju(d,P,K){return us(d,P,K,!1)}var ed=Ju,td=Qu;Ue.Fragment=r,Ue.jsx=ed,Ue.jsxs=td}()),Ue}process.env.NODE_ENV==="production"?Ft.exports=fs():Ft.exports=ps();var A=Ft.exports;function Ge(t,e,n){let[r,l]=p.useState(t||e),i=p.useRef(t!==void 0),o=t!==void 0;p.useEffect(()=>{let c=i.current;c!==o&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),i.current=o},[o]);let a=o?t:r,s=p.useCallback((c,...u)=>{let f=(h,...m)=>{n&&(Object.is(a,h)||n(h,...m)),o||(a=h)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),l((m,...g)=>{let x=c(o?a:m,...g);return f(x,...u),o?m:x})):(o||l(c),f(c,...u))},[o,a,n]);return[a,s]}function Lt(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const lt={prefix:String(Math.round(Math.random()*1e10)),current:0},Fn=p.createContext(lt),hs=p.createContext(!1);let ms=!!(typeof window<"u"&&window.document&&window.document.createElement),Ot=new WeakMap;function bs(t=!1){let e=p.useContext(Fn),n=p.useRef(null);if(n.current===null&&!t){var r,l;let i=(r=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||r===void 0||(l=r.ReactCurrentOwner)===null||l===void 0?void 0:l.current;if(i){let o=Ot.get(i);o==null?Ot.set(i,{id:e.current,state:i.memoizedState}):i.memoizedState!==o.state&&(e.current=o.id,Ot.delete(i))}n.current=++e.current}return n.current}function gs(t){let e=p.useContext(Fn);e===lt&&!ms&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=bs(!!t),r=e===lt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function vs(t){let e=p.useId(),[n]=p.useState(it()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${lt.prefix}`;return t||`${r}-${e}`}const ys=typeof p.useId=="function"?vs:gs;function $s(){return!1}function ws(){return!0}function Ps(t){return()=>{}}function it(){return typeof p.useSyncExternalStore=="function"?p.useSyncExternalStore(Ps,$s,ws):p.useContext(hs)}function Ln(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=Ln(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function Es(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=Ln(t))&&(r&&(r+=" "),r+=e);return r}const U=typeof document<"u"?p.useLayoutEffect:()=>{};function re(t){const e=p.useRef(null);return U(()=>{e.current=t},[t]),p.useCallback((...n)=>{const r=e.current;return r(...n)},[])}function xs(t){let[e,n]=p.useState(t),r=p.useRef(null),l=re(()=>{let o=r.current.next();if(o.done){r.current=null;return}e===o.value?l():n(o.value)});U(()=>{r.current&&l()});let i=re(o=>{r.current=o(e),l()});return[e,i]}let ot=new Map;function se(t){let[e,n]=p.useState(t),r=p.useRef(null),l=ys(e),i=p.useCallback(o=>{r.current=o},[]);return ot.set(l,i),U(()=>{let o=l;return()=>{ot.delete(o)}},[l]),p.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),l}function ks(t,e){if(t===e)return t;let n=ot.get(t);if(n)return n(e),e;let r=ot.get(e);return r?(r(t),t):e}function st(t=[]){let e=se(),[n,r]=xs(e),l=p.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return U(l,[e,l,...t]),n}function Ye(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}function B(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let l in r){let i=e[l],o=r[l];typeof i=="function"&&typeof o=="function"&&l[0]==="o"&&l[1]==="n"&&l.charCodeAt(2)>=65&&l.charCodeAt(2)<=90?e[l]=Ye(i,o):(l==="className"||l==="UNSAFE_className")&&typeof i=="string"&&typeof o=="string"?e[l]=Es(i,o):l==="id"&&i&&o?e.id=ks(i,o):e[l]=o!==void 0?o:i}}return e}const Ts=new Set(["id"]),Ss=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ks=new Set(["href","target","rel","download","ping","referrerPolicy"]),Cs=/^(data-.*)$/;function Pe(t,e={}){let{labelable:n,isLink:r,propNames:l}=e,i={};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Ts.has(o)||n&&Ss.has(o)||r&&Ks.has(o)||l!=null&&l.has(o)||Cs.test(o))&&(i[o]=t[o]);return i}function pe(t){if(Is())t.focus({preventScroll:!0});else{let e=Ms(t);t.focus(),As(e)}}let at=null;function Is(){if(at==null){at=!1;try{var t=document.createElement("div");t.focus({get preventScroll(){return at=!0,!0}})}catch{}}return at}function Ms(t){for(var e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function As(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function ct(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function jt(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function Ee(){return jt(/^Mac/i)}function Ds(){return jt(/^iPhone/i)}function On(){return jt(/^iPad/i)||Ee()&&navigator.maxTouchPoints>1}function ut(){return Ds()||On()}function Ns(){return Ee()||ut()}function jn(){return ct(/AppleWebKit/i)&&!Rs()}function Rs(){return ct(/Chrome/i)}function dt(){return ct(/Android/i)}function zs(){return ct(/Firefox/i)}const Fs=p.createContext({isNative:!0,open:Os});function _n(){return p.useContext(Fs)}function Ke(t,e,n=!0){var r,l;let{metaKey:i,ctrlKey:o,altKey:a,shiftKey:s}=e;zs()&&(!((r=window.event)===null||r===void 0||(l=r.type)===null||l===void 0)&&l.startsWith("key"))&&t.target==="_blank"&&(Ee()?i=!0:o=!0);let c=jn()&&Ee()&&!On()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:o,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:o,altKey:a,shiftKey:s,bubbles:!0,cancelable:!0});Ke.isOpening=n,pe(t),t.dispatchEvent(c),Ke.isOpening=!1}Ke.isOpening=!1;function Ls(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function Os(t,e){Ls(t,n=>Ke(n,e))}function js(t){return{"data-href":t.href,"data-target":t.target,"data-rel":t.rel,"data-download":t.download,"data-ping":t.ping,"data-referrer-policy":t.referrerPolicy}}let Me=new Map,_t=new Set;function Bn(){if(typeof window>"u")return;let t=n=>{let r=Me.get(n.target);r||(r=new Set,Me.set(n.target,r),n.target.addEventListener("transitioncancel",e)),r.add(n.propertyName)},e=n=>{let r=Me.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",e),Me.delete(n.target)),Me.size===0)){for(let l of _t)l();_t.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",e)}typeof document<"u"&&(document.readyState!=="loading"?Bn():document.addEventListener("DOMContentLoaded",Bn));function Vn(t){requestAnimationFrame(()=>{Me.size===0?t():_t.add(t)})}function Hn(){let t=p.useRef(new Map),e=p.useCallback((l,i,o,a)=>{let s=a!=null&&a.once?(...c)=>{t.current.delete(o),o(...c)}:o;t.current.set(o,{type:i,eventTarget:l,fn:s,options:a}),l.addEventListener(i,o,a)},[]),n=p.useCallback((l,i,o,a)=>{var s;let c=((s=t.current.get(o))===null||s===void 0?void 0:s.fn)||o;l.removeEventListener(i,c,a),t.current.delete(o)},[]),r=p.useCallback(()=>{t.current.forEach((l,i)=>{n(l.eventTarget,l.type,i,l.options)})},[n]);return p.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function Wn(t,e){let{id:n,"aria-label":r,"aria-labelledby":l}=t;return n=se(n),l&&r?l=[...new Set([n,...l.trim().split(/\s+/)])].join(" "):l&&(l=l.trim().split(/\s+/).join(" ")),!r&&!l&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":l}}function Un(t,e){const n=p.useRef(!0),r=p.useRef(null);p.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),p.useEffect(()=>{n.current?n.current=!1:(!r.current||e.some((l,i)=>!Object.is(l,r[i])))&&t(),r.current=e},e)}function _s(){return typeof window.ResizeObserver<"u"}function Bs(t){const{ref:e,onResize:n}=t;p.useEffect(()=>{let r=e==null?void 0:e.current;if(r)if(_s()){const l=new window.ResizeObserver(i=>{i.length&&n()});return l.observe(r),()=>{r&&l.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,e])}function Gn(t,e){U(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref.current=null}})}function ce(t){for(ft(t)&&(t=t.parentElement);t&&!ft(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function ft(t){let e=window.getComputedStyle(t);return/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY)}let Vs=0;const Bt=new Map;function pt(t){let[e,n]=p.useState(void 0);return U(()=>{if(!t)return;let r=Bt.get(t);if(r)n(r.element.id);else{let l=`react-aria-description-${Vs++}`;n(l);let i=document.createElement("div");i.id=l,i.style.display="none",i.textContent=t,document.body.appendChild(i),r={refCount:0,element:i},Bt.set(t,r)}return r.refCount++,()=>{--r.refCount===0&&(r.element.remove(),Bt.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Hs(t,e,n,r){let l=re(n),i=n==null;p.useEffect(()=>{if(i)return;let o=t.current;return o.addEventListener(e,l,r),()=>{o.removeEventListener(e,l,r)}},[t,e,r,i,l])}function Yn(t,e){let n=qn(t,e,"left"),r=qn(t,e,"top"),l=e.offsetWidth,i=e.offsetHeight,o=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c}=getComputedStyle(t),u=t.scrollLeft+parseInt(c,10),f=t.scrollTop+parseInt(s,10),h=u+t.clientWidth,m=f+t.clientHeight;n<=o?o=n-parseInt(c,10):n+l>h&&(o+=n+l-h),r<=f?a=r-parseInt(s,10):r+i>m&&(a+=r+i-m),t.scrollLeft=o,t.scrollTop=a}function qn(t,e,n){const r=n==="left"?"offsetLeft":"offsetTop";let l=0;for(;e.offsetParent&&(l+=e[r],e.offsetParent!==t);){if(e.offsetParent.contains(t)){l-=t[r];break}e=e.offsetParent}return l}function xe(t,e){if(document.contains(t)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let s=ce(t);for(;t&&s&&t!==o&&s!==o;)Yn(s,t),t=s,s=ce(t)}else{var n;let{left:s,top:c}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:u,top:f}=t.getBoundingClientRect();if(Math.abs(s-u)>1||Math.abs(c-f)>1){var r,l,i;e==null||(r=e.containingElement)===null||r===void 0||(l=r.scrollIntoView)===null||l===void 0||l.call(r,{block:"center",inline:"center"}),(i=t.scrollIntoView)===null||i===void 0||i.call(t,{block:"nearest"})}}}}function Vt(t){return t.mozInputSource===0&&t.isTrusted?!0:dt()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Ws(t){return!dt()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Ht(t,e,n){let r=p.useRef(e),l=re(()=>{n&&n(r.current)});p.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",l),()=>{o==null||o.removeEventListener("reset",l)}},[t,l])}function Us(t,e){return e.get?e.get.call(t):e.value}function Xn(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Gs(t,e){var n=Xn(t,e,"get");return Us(t,n)}function Ys(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function qs(t,e,n){Ys(t,e),e.set(t,n)}function Xs(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function Zn(t,e,n){var r=Xn(t,e,"set");return Xs(t,r,n),n}let Ae="default",Wt="",ht=new WeakMap;function Qn(t){ut()?(Ae==="default"&&(Wt=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Ae="disabled"):(t instanceof HTMLElement||t instanceof SVGElement)&&(ht.set(t,t.style.userSelect),t.style.userSelect="none")}function mt(t){if(ut()){if(Ae!=="disabled")return;Ae="restoring",setTimeout(()=>{Vn(()=>{Ae==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=Wt||""),Wt="",Ae="default")})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&ht.has(t)){let e=ht.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),ht.delete(t)}}const Ut=p.createContext(null);Ut.displayName="PressResponderContext";function Zs(t){let e=p.useContext(Ut);if(e){let{register:n,...r}=e;t=B(r,t),n()}return Gn(e,t.ref),t}var bt=new WeakMap;class gt{continuePropagation(){Zn(this,bt,!1)}get shouldStopPropagation(){return Gs(this,bt)}constructor(e,n,r){qs(this,bt,{writable:!0,value:void 0}),Zn(this,bt,!0),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const Jn=Symbol("linkClicked");function De(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:l,onPressUp:i,isDisabled:o,isPressed:a,preventFocusOnPress:s,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:f,...h}=Zs(t),[m,g]=p.useState(!1),x=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:w,removeAllGlobalListeners:S}=Hn(),y=re((b,D)=>{let T=x.current;if(o||T.didFirePressStart)return;let E=!0;if(T.isTriggeringEvent=!0,r){let z=new gt("pressstart",D,b);r(z),E=z.shouldStopPropagation}return n&&n(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,g(!0),E}),$=re((b,D,T=!0)=>{let E=x.current;if(!E.didFirePressStart)return;E.ignoreClickAfterPress=!0,E.didFirePressStart=!1,E.isTriggeringEvent=!0;let z=!0;if(l){let v=new gt("pressend",D,b);l(v),z=v.shouldStopPropagation}if(n&&n(!1),g(!1),e&&T&&!o){let v=new gt("press",D,b);e(v),z&&(z=v.shouldStopPropagation)}return E.isTriggeringEvent=!1,z}),M=re((b,D)=>{let T=x.current;if(!o){if(i){T.isTriggeringEvent=!0;let E=new gt("pressup",D,b);return i(E),T.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}}),C=re(b=>{let D=x.current;D.isPressed&&(D.isOverTarget&&$(he(D.target,b),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,S(),u||mt(D.target))}),L=re(b=>{c&&C(b)}),_=p.useMemo(()=>{let b=x.current,D={onKeyDown(E){if(Yt(E.nativeEvent,E.currentTarget)&&E.currentTarget.contains(E.target)){tr(E.target,E.key)&&E.preventDefault();let z=!0;!b.isPressed&&!E.repeat&&(b.target=E.currentTarget,b.isPressed=!0,z=y(E,"keyboard"),w(document,"keyup",T,!1)),z&&E.stopPropagation(),E.metaKey&&Ee()&&b.metaKeyEvents.set(E.key,E.nativeEvent)}else E.key==="Meta"&&(b.metaKeyEvents=new Map)},onKeyUp(E){Yt(E.nativeEvent,E.currentTarget)&&!E.repeat&&E.currentTarget.contains(E.target)&&M(he(b.target,E),"keyboard")},onClick(E){if(!(E&&!E.currentTarget.contains(E.target))&&E&&E.button===0&&!b.isTriggeringEvent&&!Ke.isOpening){let z=!0;if(o&&E.preventDefault(),!b.ignoreClickAfterPress&&!b.ignoreEmulatedMouseEvents&&!b.isPressed&&(b.pointerType==="virtual"||Vt(E.nativeEvent))){!o&&!s&&pe(E.currentTarget);let v=y(E,"virtual"),k=M(E,"virtual"),O=$(E,"virtual");z=v&&k&&O}b.ignoreEmulatedMouseEvents=!1,b.ignoreClickAfterPress=!1,z&&E.stopPropagation()}}},T=E=>{var z;if(b.isPressed&&Yt(E,b.target)){var v;tr(E.target,E.key)&&E.preventDefault();let k=E.target,O=$(he(b.target,E),"keyboard",b.target.contains(k));S(),O&&E.stopPropagation(),E.key!=="Enter"&&Gt(b.target)&&b.target.contains(k)&&!E[Jn]&&(E[Jn]=!0,Ke(b.target,E,!1)),b.isPressed=!1,(v=b.metaKeyEvents)===null||v===void 0||v.delete(E.key)}else if(E.key==="Meta"&&(!((z=b.metaKeyEvents)===null||z===void 0)&&z.size)){let k=b.metaKeyEvents;b.metaKeyEvents=null;for(let O of k.values())b.target.dispatchEvent(new KeyboardEvent("keyup",O))}};if(typeof PointerEvent<"u"){D.onPointerDown=k=>{if(k.button!==0||!k.currentTarget.contains(k.target))return;if(Ws(k.nativeEvent)){b.pointerType="virtual";return}qt(k.currentTarget)&&k.preventDefault(),b.pointerType=k.pointerType;let O=!0;b.isPressed||(b.isPressed=!0,b.isOverTarget=!0,b.activePointerId=k.pointerId,b.target=k.currentTarget,!o&&!s&&pe(k.currentTarget),u||Qn(b.target),O=y(k,b.pointerType),w(document,"pointermove",E,!1),w(document,"pointerup",z,!1),w(document,"pointercancel",v,!1)),O&&k.stopPropagation()},D.onMouseDown=k=>{k.currentTarget.contains(k.target)&&k.button===0&&(qt(k.currentTarget)&&k.preventDefault(),k.stopPropagation())},D.onPointerUp=k=>{!k.currentTarget.contains(k.target)||b.pointerType==="virtual"||k.button===0&&Ne(k,k.currentTarget)&&M(k,b.pointerType||k.pointerType)};let E=k=>{k.pointerId===b.activePointerId&&(Ne(k,b.target)?b.isOverTarget||(b.isOverTarget=!0,y(he(b.target,k),b.pointerType)):b.isOverTarget&&(b.isOverTarget=!1,$(he(b.target,k),b.pointerType,!1),L(k)))},z=k=>{k.pointerId===b.activePointerId&&b.isPressed&&k.button===0&&(Ne(k,b.target)?$(he(b.target,k),b.pointerType):b.isOverTarget&&$(he(b.target,k),b.pointerType,!1),b.isPressed=!1,b.isOverTarget=!1,b.activePointerId=null,b.pointerType=null,S(),u||mt(b.target))},v=k=>{C(k)};D.onDragStart=k=>{k.currentTarget.contains(k.target)&&C(k)}}else{D.onMouseDown=v=>{if(v.button!==0||!v.currentTarget.contains(v.target))return;if(qt(v.currentTarget)&&v.preventDefault(),b.ignoreEmulatedMouseEvents){v.stopPropagation();return}b.isPressed=!0,b.isOverTarget=!0,b.target=v.currentTarget,b.pointerType=Vt(v.nativeEvent)?"virtual":"mouse",!o&&!s&&pe(v.currentTarget),y(v,b.pointerType)&&v.stopPropagation(),w(document,"mouseup",E,!1)},D.onMouseEnter=v=>{if(!v.currentTarget.contains(v.target))return;let k=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&(b.isOverTarget=!0,k=y(v,b.pointerType)),k&&v.stopPropagation()},D.onMouseLeave=v=>{if(!v.currentTarget.contains(v.target))return;let k=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&(b.isOverTarget=!1,k=$(v,b.pointerType,!1),L(v)),k&&v.stopPropagation()},D.onMouseUp=v=>{v.currentTarget.contains(v.target)&&!b.ignoreEmulatedMouseEvents&&v.button===0&&M(v,b.pointerType||"mouse")};let E=v=>{if(v.button===0){if(b.isPressed=!1,S(),b.ignoreEmulatedMouseEvents){b.ignoreEmulatedMouseEvents=!1;return}Ne(v,b.target)?$(he(b.target,v),b.pointerType):b.isOverTarget&&$(he(b.target,v),b.pointerType,!1),b.isOverTarget=!1}};D.onTouchStart=v=>{if(!v.currentTarget.contains(v.target))return;let k=Qs(v.nativeEvent);if(!k)return;b.activePointerId=k.identifier,b.ignoreEmulatedMouseEvents=!0,b.isOverTarget=!0,b.isPressed=!0,b.target=v.currentTarget,b.pointerType="touch",!o&&!s&&pe(v.currentTarget),u||Qn(b.target),y(v,b.pointerType)&&v.stopPropagation(),w(window,"scroll",z,!0)},D.onTouchMove=v=>{if(!v.currentTarget.contains(v.target))return;if(!b.isPressed){v.stopPropagation();return}let k=er(v.nativeEvent,b.activePointerId),O=!0;k&&Ne(k,v.currentTarget)?b.isOverTarget||(b.isOverTarget=!0,O=y(v,b.pointerType)):b.isOverTarget&&(b.isOverTarget=!1,O=$(v,b.pointerType,!1),L(v)),O&&v.stopPropagation()},D.onTouchEnd=v=>{if(!v.currentTarget.contains(v.target))return;if(!b.isPressed){v.stopPropagation();return}let k=er(v.nativeEvent,b.activePointerId),O=!0;k&&Ne(k,v.currentTarget)?(M(v,b.pointerType),O=$(v,b.pointerType)):b.isOverTarget&&(O=$(v,b.pointerType,!1)),O&&v.stopPropagation(),b.isPressed=!1,b.activePointerId=null,b.isOverTarget=!1,b.ignoreEmulatedMouseEvents=!0,u||mt(b.target),S()},D.onTouchCancel=v=>{v.currentTarget.contains(v.target)&&(v.stopPropagation(),b.isPressed&&C(v))};let z=v=>{b.isPressed&&v.target.contains(b.target)&&C({currentTarget:b.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};D.onDragStart=v=>{v.currentTarget.contains(v.target)&&C(v)}}return D},[w,o,s,S,u,C,L,$,y,M]);return p.useEffect(()=>()=>{u||mt(x.current.target)},[u]),{isPressed:a||m,pressProps:B(h,_)}}function Gt(t){return t.tagName==="A"&&t.hasAttribute("href")}function Yt(t,e){const{key:n,code:r}=t,l=e,i=l.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(l instanceof HTMLInputElement&&!nr(l,n)||l instanceof HTMLTextAreaElement||l.isContentEditable)&&!((i==="link"||!i&&Gt(l))&&n!=="Enter")}function Qs(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function er(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const l=n[r];if(l.identifier===e)return l}return null}function he(t,e){return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey}}function Js(t){let e=t.width/2||t.radiusX||0,n=t.height/2||t.radiusY||0;return{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function ea(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ne(t,e){let n=e.getBoundingClientRect(),r=Js(t);return ea(n,r)}function qt(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function tr(t,e){return t instanceof HTMLInputElement?!nr(t,e):t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Gt(t)}const ta=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function nr(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":ta.has(t.type)}function na({children:t}){return p.createElement(Ut.Provider,{value:void 0},t)}class ra{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function rr(t){let e=p.useRef({isFocused:!1,observer:null});U(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=re(r=>{t==null||t(r)});return p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let l=r.target,i=o=>{e.current.isFocused=!1,l.disabled&&n(new ra("blur",o)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};l.addEventListener("focusout",i,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&l.disabled){e.current.observer.disconnect();let o=l===document.activeElement?null:document.activeElement;l.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),l.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),e.current.observer.observe(l,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function lr(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:l}=t;const i=p.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),l&&l(!1),!0},[r,l]),o=rr(i),a=p.useCallback(s=>{s.target===s.currentTarget&&document.activeElement===s.target&&(n&&n(s),l&&l(!0),o(s))},[l,n,o]);return{focusProps:{onFocus:!e&&(n||l||r)?a:void 0,onBlur:!e&&(r||l)?i:void 0}}}let me=null,qe=new Set,ir=!1,Ce=!1,Xt=!1;const la={Tab:!0,Escape:!0};function vt(t,e){for(let n of qe)n(t,e)}function ia(t){return!(t.metaKey||!Ee()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function or(t){Ce=!0,ia(t)&&(me="keyboard",vt("keyboard",t))}function Re(t){me="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Ce=!0,vt("pointer",t))}function oa(t){Vt(t)&&(Ce=!0,me="virtual")}function sa(t){t.target===window||t.target===document||(!Ce&&!Xt&&(me="virtual",vt("virtual",t)),Ce=!1,Xt=!1)}function aa(){Ce=!1,Xt=!0}function yt(){if(typeof window>"u"||ir)return;let t=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Ce=!0,t.apply(this,arguments)},document.addEventListener("keydown",or,!0),document.addEventListener("keyup",or,!0),document.addEventListener("click",oa,!0),window.addEventListener("focus",sa,!0),window.addEventListener("blur",aa,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Re,!0),document.addEventListener("pointermove",Re,!0),document.addEventListener("pointerup",Re,!0)):(document.addEventListener("mousedown",Re,!0),document.addEventListener("mousemove",Re,!0),document.addEventListener("mouseup",Re,!0)),ir=!0}typeof document<"u"&&(document.readyState!=="loading"?yt():document.addEventListener("DOMContentLoaded",yt));function Xe(){return me!=="pointer"}function Zt(){return me}function ca(t){me=t,vt(t,null)}function sr(){yt();let[t,e]=p.useState(me);return p.useEffect(()=>{let n=()=>{e(me)};return qe.add(n),()=>{qe.delete(n)}},[]),it()?null:t}function ua(t,e,n){return!(t&&e==="keyboard"&&n instanceof KeyboardEvent&&!la[n.key])}function da(t,e,n){yt(),p.useEffect(()=>{let r=(l,i)=>{ua(n==null?void 0:n.isTextInput,l,i)&&t(Xe())};return qe.add(r),()=>{qe.delete(r)}},e)}function Ze(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:l}=t,i=p.useRef({isFocusWithin:!1}),o=p.useCallback(c=>{i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(c),l&&l(!1))},[n,l,i]),a=rr(o),s=p.useCallback(c=>{!i.current.isFocusWithin&&document.activeElement===c.target&&(r&&r(c),l&&l(!0),i.current.isFocusWithin=!0,a(c))},[r,l,a]);return e?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:s,onBlur:o}}}let $t=!1,Qt=0;function Jt(){$t=!0,setTimeout(()=>{$t=!1},50)}function ar(t){t.pointerType==="touch"&&Jt()}function fa(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",ar):document.addEventListener("touchend",Jt),Qt++,()=>{Qt--,!(Qt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",ar):document.removeEventListener("touchend",Jt))}}function pa(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:l}=t,[i,o]=p.useState(!1),a=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(fa,[]);let{hoverProps:s,triggerHoverEnd:c}=p.useMemo(()=>{let u=(m,g)=>{if(a.pointerType=g,l||g==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let x=m.currentTarget;a.target=x,e&&e({type:"hoverstart",target:x,pointerType:g}),n&&n(!0),o(!0)},f=(m,g)=>{if(a.pointerType="",a.target=null,g==="touch"||!a.isHovered)return;a.isHovered=!1;let x=m.currentTarget;r&&r({type:"hoverend",target:x,pointerType:g}),n&&n(!1),o(!1)},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=m=>{$t&&m.pointerType==="mouse"||u(m,m.pointerType)},h.onPointerLeave=m=>{!l&&m.currentTarget.contains(m.target)&&f(m,m.pointerType)}):(h.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!$t&&u(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=m=>{!l&&m.currentTarget.contains(m.target)&&f(m,"mouse")}),{hoverProps:h,triggerHoverEnd:f}},[e,n,r,l,a]);return p.useEffect(()=>{l&&c({currentTarget:a.target},a.pointerType)},[l]),{hoverProps:s,isHovered:i}}function ha(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:l}=t,i=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=re(s=>{n&&wt(s,e)&&(l&&l(s),i.current.isPointerDown=!0)}),a=re(s=>{n&&n(s)});p.useEffect(()=>{let s=i.current;if(!r)if(typeof PointerEvent<"u"){let c=u=>{s.isPointerDown&&wt(u,e)&&a(u),s.isPointerDown=!1};return document.addEventListener("pointerdown",o,!0),document.addEventListener("pointerup",c,!0),()=>{document.removeEventListener("pointerdown",o,!0),document.removeEventListener("pointerup",c,!0)}}else{let c=f=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&wt(f,e)&&a(f),s.isPointerDown=!1},u=f=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&wt(f,e)&&a(f),s.isPointerDown=!1};return document.addEventListener("mousedown",o,!0),document.addEventListener("mouseup",c,!0),document.addEventListener("touchstart",o,!0),document.addEventListener("touchend",u,!0),()=>{document.removeEventListener("mousedown",o,!0),document.removeEventListener("mouseup",c,!0),document.removeEventListener("touchstart",o,!0),document.removeEventListener("touchend",u,!0)}}},[e,r,o,a])}function wt(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current&&!e.current.contains(t.target)}function cr(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){e=!1}};t(r),e&&n.stopPropagation()}}function ma(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:cr(t.onKeyDown),onKeyUp:cr(t.onKeyUp)}}}const ba=500;function ur(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:l,threshold:i=ba,accessibilityDescription:o}=t;const a=p.useRef(null);let{addGlobalListener:s,removeGlobalListener:c}=Hn(),{pressProps:u}=De({isDisabled:e,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(n&&n({...h,type:"longpressstart"}),a.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),l&&l({...h,type:"longpress"}),a.current=null},i),h.pointerType==="touch")){let m=g=>{g.preventDefault()};s(h.target,"contextmenu",m,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{c(h.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(h){a.current&&clearTimeout(a.current),r&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r({...h,type:"longpressend"})}}),f=pt(l&&!e?o:null);return{longPressProps:B(u,f)}}function te(t){if(Zt()==="virtual"){let e=document.activeElement;Vn(()=>{document.activeElement===e&&document.contains(t)&&pe(t)})}else pe(t)}function ga(t){if(!(t instanceof HTMLElement)&&!(t instanceof SVGElement))return!1;let{display:e,visibility:n}=t.style,r=e!=="none"&&n!=="hidden"&&n!=="collapse";if(r){const{getComputedStyle:l}=t.ownerDocument.defaultView;let{display:i,visibility:o}=l(t);r=i!=="none"&&o!=="hidden"&&o!=="collapse"}return r}function va(t,e){return!t.hasAttribute("hidden")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function dr(t,e){return t.nodeName!=="#comment"&&ga(t)&&va(t,e)&&(!t.parentElement||dr(t.parentElement,t))}const fr=p.createContext(null);let W=null;function ya(t){let{children:e,contain:n,restoreFocus:r,autoFocus:l}=t,i=p.useRef(),o=p.useRef(),a=p.useRef([]),{parentNode:s}=p.useContext(fr)||{},c=p.useMemo(()=>new nn({scopeRef:a}),[a]);U(()=>{let h=s||Y.root;if(Y.getTreeNode(h.scopeRef)&&W&&!Et(W,h.scopeRef)){let m=Y.getTreeNode(W);m&&(h=m)}h.addChild(c),Y.addNode(c)},[c,s]),U(()=>{let h=Y.getTreeNode(a);h.contain=n},[n]),U(()=>{let h=i.current.nextSibling,m=[];for(;h&&h!==o.current;)m.push(h),h=h.nextSibling;a.current=m},[e]),Ta(a,r,n),Ea(a,n),Ka(a,r,n),ka(a,l),p.useEffect(()=>{if(a){let h=document.activeElement,m=null;if(Q(h,a.current)){for(let g of Y.traverse())Q(h,g.scopeRef.current)&&(m=g);m===Y.getTreeNode(a)&&(W=m.scopeRef)}return()=>{let g=Y.getTreeNode(a).parent.scopeRef;(a===W||Et(a,W))&&(!g||Y.getTreeNode(g))&&(W=g),Y.removeTreeNode(a)}}},[a]);let u=p.useMemo(()=>$a(a),[]),f=p.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return p.createElement(fr.Provider,{value:f},p.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),e,p.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function $a(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:l,wrap:i,accept:o}=e,a=r||document.activeElement,s=n[0].previousElementSibling,c=ne(Ie(n),{tabbable:l,accept:o},n);c.currentNode=Q(a,n)?a:s;let u=c.nextNode();return!u&&i&&(c.currentNode=s,u=c.nextNode()),u&&be(u,!0),u},focusPrevious(e={}){let n=t.current,{from:r,tabbable:l,wrap:i,accept:o}=e,a=r||document.activeElement,s=n[n.length-1].nextElementSibling,c=ne(Ie(n),{tabbable:l,accept:o},n);c.currentNode=Q(a,n)?a:s;let u=c.previousNode();return!u&&i&&(c.currentNode=s,u=c.previousNode()),u&&be(u,!0),u},focusFirst(e={}){let n=t.current,{tabbable:r,accept:l}=e,i=ne(Ie(n),{tabbable:r,accept:l},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&be(o,!0),o},focusLast(e={}){let n=t.current,{tabbable:r,accept:l}=e,i=ne(Ie(n),{tabbable:r,accept:l},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&be(o,!0),o}}}const en=["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]"],wa=en.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";en.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Pa=en.join(':not([hidden]):not([tabindex="-1"]),');function Ie(t){return t[0].parentElement}function Qe(t){let e=Y.getTreeNode(W);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Ea(t,e){let n=p.useRef(),r=p.useRef(null);U(()=>{let l=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=null);return}let i=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!Qe(t))return;let c=document.activeElement,u=t.current;if(!Q(c,u))return;let f=ne(Ie(u),{tabbable:!0},u);f.currentNode=c;let h=s.shiftKey?f.previousNode():f.nextNode();h||(f.currentNode=s.shiftKey?u[u.length-1].nextElementSibling:u[0].previousElementSibling,h=s.shiftKey?f.previousNode():f.nextNode()),s.preventDefault(),h&&be(h,!0)},o=s=>{(!W||Et(W,t))&&Q(s.target,t.current)?(W=t,n.current=s.target):Qe(t)&&!Pt(s.target,t)?n.current?n.current.focus():W&&xt(W.current):Qe(t)&&(n.current=s.target)},a=s=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{Qe(t)&&!Pt(document.activeElement,t)&&(W=t,document.body.contains(s.target)?(n.current=s.target,n.current.focus()):W&&xt(W.current))})};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",o,!1),l.forEach(s=>s.addEventListener("focusin",o,!1)),l.forEach(s=>s.addEventListener("focusout",a,!1)),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",o,!1),l.forEach(s=>s.removeEventListener("focusin",o,!1)),l.forEach(s=>s.removeEventListener("focusout",a,!1))}},[t,e]),U(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function pr(t){return Pt(t)}function Q(t,e){return e.some(n=>n.contains(t))}function Pt(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Y.traverse(Y.getTreeNode(e)))if(Q(t,n.current))return!0;return!1}function xa(t){return Pt(t,W)}function Et(t,e){var n;let r=(n=Y.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function be(t,e=!1){if(t!=null&&!e)try{te(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function xt(t,e=!0){let n=t[0].previousElementSibling,r=ne(Ie(t),{tabbable:e},t);r.currentNode=n;let l=r.nextNode();e&&!l&&(r=ne(Ie(t),{tabbable:!1},t),r.currentNode=n,l=r.nextNode()),be(l)}function ka(t,e){const n=p.useRef(e);p.useEffect(()=>{n.current&&(W=t,Q(document.activeElement,W.current)||xt(t.current)),n.current=!1},[t])}function Ta(t,e,n){U(()=>{if(e||n)return;let r=t.current,l=i=>{let o=i.target;Q(o,t.current)?W=t:pr(o)||(W=null)};return document.addEventListener("focusin",l,!1),r.forEach(i=>i.addEventListener("focusin",l,!1)),()=>{document.removeEventListener("focusin",l,!1),r.forEach(i=>i.removeEventListener("focusin",l,!1))}},[t,e,n])}function Sa(t){let e=Y.getTreeNode(W);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Ka(t,e,n){const r=p.useRef(typeof document<"u"?document.activeElement:null);U(()=>{let l=t.current;if(!e||n)return;let i=()=>{(!W||Et(W,t))&&Q(document.activeElement,t.current)&&(W=t)};return document.addEventListener("focusin",i,!1),l.forEach(o=>o.addEventListener("focusin",i,!1)),()=>{document.removeEventListener("focusin",i,!1),l.forEach(o=>o.removeEventListener("focusin",i,!1))}},[t,n]),U(()=>{if(!e)return;let l=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!Qe(t))return;let o=document.activeElement;if(!Q(o,t.current))return;let a=Y.getTreeNode(t).nodeToRestore,s=ne(document.body,{tabbable:!0});s.currentNode=o;let c=i.shiftKey?s.previousNode():s.nextNode();if((!document.body.contains(a)||a===document.body)&&(a=null,Y.getTreeNode(t).nodeToRestore=null),(!c||!Q(c,t.current))&&a){s.currentNode=a;do c=i.shiftKey?s.previousNode():s.nextNode();while(Q(c,t.current));i.preventDefault(),i.stopPropagation(),c?be(c,!0):pr(a)?be(a,!0):o.blur()}};return n||document.addEventListener("keydown",l,!0),()=>{n||document.removeEventListener("keydown",l,!0)}},[t,e,n]),U(()=>{if(e)return Y.getTreeNode(t).nodeToRestore=r.current,()=>{let l=Y.getTreeNode(t).nodeToRestore;if(e&&l&&(Q(document.activeElement,t.current)||document.activeElement===document.body&&Sa(t))){let i=Y.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let o=i.getTreeNode(t);for(;o;){if(o.nodeToRestore&&document.body.contains(o.nodeToRestore)){be(o.nodeToRestore);return}o=o.parent}for(o=i.getTreeNode(t);o;){if(o.scopeRef&&Y.getTreeNode(o.scopeRef)){xt(o.scopeRef.current,!0);return}o=o.parent}}})}}},[t,e])}function ne(t,e,n){let r=e!=null&&e.tabbable?Pa:wa,l=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var o;return!(e==null||(o=e.from)===null||o===void 0)&&o.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&dr(i)&&(!n||Q(i,n))&&(!(e!=null&&e.accept)||e.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class tn{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let l=this.fastMap.get(n??null),i=new nn({scopeRef:e});l.addChild(i),i.parent=l,this.fastMap.set(e,i),r&&(i.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e),r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef.current&&Q(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let l=n.children;r.removeChild(n),l.size>0&&l.forEach(i=>r.addChild(i)),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){let e=new tn;for(let n of this.traverse())e.addTreeNode(n.scopeRef,n.parent.scopeRef,n.nodeToRestore);return e}constructor(){this.fastMap=new Map,this.root=new nn({scopeRef:null}),this.fastMap.set(null,this.root)}}class nn{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let Y=new tn;function rn(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,l=p.useRef({isFocused:!1,isFocusVisible:e||Xe()}),[i,o]=p.useState(!1),[a,s]=p.useState(()=>l.current.isFocused&&l.current.isFocusVisible),c=p.useCallback(()=>s(l.current.isFocused&&l.current.isFocusVisible),[]),u=p.useCallback(m=>{l.current.isFocused=m,o(m),c()},[c]);da(m=>{l.current.isFocusVisible=m,c()},[],{isTextInput:n});let{focusProps:f}=lr({isDisabled:r,onFocusChange:u}),{focusWithinProps:h}=Ze({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:a,focusProps:r?h:f}}let Ca=p.createContext(null);function Ia(t){let e=p.useContext(Ca)||{};Gn(e,t);let{ref:n,...r}=e;return r}function kt(t,e){let{focusProps:n}=lr(t),{keyboardProps:r}=ma(t),l=B(n,r),i=Ia(e),o=t.isDisabled?{}:i,a=p.useRef(t.autoFocus);return p.useEffect(()=>{a.current&&e.current&&te(e.current),a.current=!1},[e]),{focusableProps:B({...l,tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0},o)}}function Ma(t,e){let n=e==null?void 0:e.isDisabled,[r,l]=p.useState(!1);return U(()=>{if(t!=null&&t.current&&!n){let i=()=>{if(t.current){let a=ne(t.current,{tabbable:!0});l(!!a.nextNode())}};i();let o=new MutationObserver(i);return o.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{o.disconnect()}}}),n?!1:r}class Aa{getStringForLocale(e,n){let r=this.strings[n];r||(r=Da(n,this.strings,this.defaultLocale),this.strings[n]=r);let l=r[e];if(!l)throw new Error(`Could not find intl message ${e} in ${n} locale`);return l}constructor(e,n="en-US"){this.strings={...e},this.defaultLocale=n}}function Da(t,e,n="en-US"){if(e[t])return e[t];let r=Na(t);if(e[r])return e[r];for(let l in e)if(l.startsWith(r+"-"))return e[l];return e[n]}function Na(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const hr=new Map,mr=new Map;class Ra{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let l=n["="+e];if(l)return typeof l=="function"?l():l;let i=this.locale+":"+r,o=hr.get(i);o||(o=new Intl.PluralRules(this.locale,{type:r}),hr.set(i,o));let a=o.select(e);return l=n[a]||n.other,typeof l=="function"?l():l}number(e){let n=mr.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),mr.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const za=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Fa=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function La(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize().script;return za.has(n)}let e=t.split("-")[0];return Fa.has(e)}function br(){let t=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:La(t)?"rtl":"ltr"}}let ln=br(),Je=new Set;function gr(){ln=br();for(let t of Je)t(ln)}function Oa(){let t=it(),[e,n]=p.useState(ln);return p.useEffect(()=>(Je.size===0&&window.addEventListener("languagechange",gr),Je.add(n),()=>{Je.delete(n),Je.size===0&&window.removeEventListener("languagechange",gr)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const ja=p.createContext(null);function ge(){let t=Oa();return p.useContext(ja)||t}const vr=new WeakMap;function _a(t){let e=vr.get(t);return e||(e=new Aa(t),vr.set(t,e)),e}function ze(t){let{locale:e}=ge(),n=p.useMemo(()=>_a(t),[t]);return p.useMemo(()=>new Ra(e,n),[e,n])}let on=new Map;function Tt(t){let{locale:e}=ge(),n=e+(t?Object.entries(t).sort((l,i)=>l[0]<i[0]?-1:1).join():"");if(on.has(n))return on.get(n);let r=new Intl.Collator(e,t);return on.set(n,r),r}function yr(t,e){let{elementType:n="button",isDisabled:r,onPress:l,onPressStart:i,onPressEnd:o,onPressChange:a,preventFocusOnPress:s,allowFocusWhenDisabled:c,onClick:u,href:f,target:h,rel:m,type:g="button"}=t,x;n==="button"?x={type:g,disabled:r}:x={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:f,target:n==="a"?h:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?m:void 0};let{pressProps:w,isPressed:S}=De({onPressStart:i,onPressEnd:o,onPressChange:a,onPress:l,isDisabled:r,preventFocusOnPress:s,ref:e}),{focusableProps:y}=kt(t,e);c&&(y.tabIndex=r?-1:y.tabIndex);let $=B(y,w,Pe(t,{labelable:!0}));return{isPressed:S,buttonProps:B(x,$,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],onClick:M=>{u&&(u(M),console.warn("onClick is deprecated, please use onPress"))}})}}const $r=7e3;let sn=null;function wr(t,e="assertive",n=$r){sn||(sn=new Ba),sn.announce(t,e,n)}class Ba{createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=$r){if(!this.node)return;let l=document.createElement("div");l.textContent=e,n==="assertive"?this.assertiveLog.appendChild(l):this.politeLog.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&(this.politeLog.innerHTML=""))}constructor(){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)}}function Va(t,e,n){let{isDisabled:r=!1,isRequired:l=!1,isReadOnly:i=!1,value:o,name:a,children:s,"aria-label":c,"aria-labelledby":u,validationState:f="valid",isInvalid:h}=t,m=C=>{C.stopPropagation(),e.setSelected(C.target.checked)},g=s!=null,x=c!=null||u!=null;!g&&!x&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:w,isPressed:S}=De({isDisabled:r}),{focusableProps:y}=kt(t,n),$=B(w,y),M=Pe(t,{labelable:!0});return Ht(n,e.isSelected,e.setSelected),{inputProps:B(M,{"aria-invalid":h||f==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":i||void 0,"aria-required":l||void 0,onChange:m,disabled:r,...o==null?{}:{value:o},name:a,type:"checkbox",...$}),isSelected:e.isSelected,isPressed:S,isDisabled:r,isReadOnly:i,isInvalid:h||f==="invalid"}}function Pr(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":l,labelElementType:i="label"}=t;e=se(e);let o=se(),a={};n?(r=r?`${o} ${r}`:o,a={id:o,htmlFor:i==="label"?e:void 0}):!r&&!l&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=Wn({id:e,"aria-label":l,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function Er(t){let{description:e,errorMessage:n,isInvalid:r,validationState:l}=t,{labelProps:i,fieldProps:o}=Pr(t),a=st([!!e,!!n,r,l]),s=st([!!e,!!n,r,l]);return o=B(o,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:o,descriptionProps:{id:a},errorMessageProps:{id:s}}}function Ha(t={}){let{isReadOnly:e}=t,[n,r]=Ge(t.isSelected,t.defaultSelected||!1,t.onChange);function l(o){e||r(o)}function i(){e||r(!n)}return{isSelected:n,setSelected:l,toggle:i}}const xr={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 kr(t={}){let{style:e,isFocusable:n}=t,[r,l]=p.useState(!1),{focusWithinProps:i}=Ze({isDisabled:!n,onFocusWithinChange:a=>l(a)}),o=p.useMemo(()=>r?e:e?{...xr,...e}:xr,[r]);return{visuallyHiddenProps:{...i,style:o}}}function an(t){let{children:e,elementType:n="div",isFocusable:r,style:l,...i}=t,{visuallyHiddenProps:o}=kr(t);return p.createElement(n,B(i,o),e)}function Wa(t){return t&&t.__esModule?t.default:t}const Tr={top:"top",bottom:"top",left:"left",right:"left"},St={top:"bottom",bottom:"top",left:"right",right:"left"},Ua={top:"left",left:"top"},cn={top:"height",left:"width"},Ga={width:"totalWidth",height:"totalHeight"},Kt={};let Fe=typeof document<"u"&&window.visualViewport;function Sr(t){let e=0,n=0,r=0,l=0,i=0,o=0,a={};if(t.tagName==="BODY"){let u=document.documentElement;r=u.clientWidth,l=u.clientHeight;var s;e=(s=Fe==null?void 0:Fe.width)!==null&&s!==void 0?s:r;var c;n=(c=Fe==null?void 0:Fe.height)!==null&&c!==void 0?c:l,a.top=u.scrollTop||t.scrollTop,a.left=u.scrollLeft||t.scrollLeft}else({width:e,height:n,top:i,left:o}=Le(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,l=n;return{width:e,height:n,totalWidth:r,totalHeight:l,scroll:a,top:i,left:o}}function Ya(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Kr(t,e,n,r,l,i){let o=l.scroll[t],a=r[cn[t]],s=e-i-o,c=e+i-o+n;return s<0?-s:c>a?Math.max(a-c,-s):0}function qa(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Cr(t){if(Kt[t])return Kt[t];let[e,n]=t.split(" "),r=Tr[e]||"right",l=Ua[r];Tr[n]||(n="center");let i=cn[r],o=cn[l];return Kt[t]={placement:e,crossPlacement:n,axis:r,crossAxis:l,size:i,crossSize:o},Kt[t]}function un(t,e,n,r,l,i,o,a,s,c){let{placement:u,crossPlacement:f,axis:h,crossAxis:m,size:g,crossSize:x}=r,w={};w[m]=t[m],f==="center"?w[m]+=(t[x]-n[x])/2:f!==m&&(w[m]+=t[x]-n[x]),w[m]+=i;const S=t[m]-n[x]+s+c,y=t[m]+t[x]-s-c;if(w[m]=Lt(w[m],S,y),u===h){const $=a?o[g]:e[Ga[g]];w[St[h]]=Math.floor($-t[h]+l)}else w[h]=Math.floor(t[h]+t[g]+l);return w}function Xa(t,e,n,r,l,i){return t.top!=null?Math.max(0,e.height+e.top+e.scroll.top-(n.top+t.top)-(l.top+l.bottom+i)):Math.max(0,r.top+n.top-(e.top+e.scroll.top)-(l.top+l.bottom+i))}function Ir(t,e,n,r,l,i){let{placement:o,axis:a,size:s}=i;return o===a?Math.max(0,n[a]-t[a]-t.scroll[a]+e[a]-r[a]-r[St[a]]-l):Math.max(0,t[s]+t[a]+t.scroll[a]-e[a]-n[a]-n[s]-r[a]-r[St[a]]-l)}function Za(t,e,n,r,l,i,o,a,s,c,u,f,h,m,g,x){let w=Cr(t),{size:S,crossAxis:y,crossSize:$,placement:M,crossPlacement:C}=w,L=un(e,a,n,w,u,f,c,h,g,x),_=u,b=Ir(a,c,e,l,i+u,w);if(o&&r[S]>b){let de=Cr(`${St[M]} ${C}`),Se=un(e,a,n,de,u,f,c,h,g,x);Ir(a,c,e,l,i+u,de)>b&&(w=de,L=Se,_=u)}let D=Kr(y,L[y],n[$],a,s,i);L[y]+=D;let T=Xa(L,a,c,e,l,i);m&&m<T&&(T=m),n.height=Math.min(n.height,T),L=un(e,a,n,w,_,f,c,h,g,x),D=Kr(y,L[y],n[$],a,s,i),L[y]+=D;let E={},z=e[y]+.5*e[$]-n[y];const v=g/2+x,k=n[$]-g/2-x,O=e[y]-n[y]+g/2,ue=e[y]+e[$]-n[y]-g/2,I=Lt(z,O,ue);return E[y]=Lt(I,v,k),{position:L,maxHeight:T,arrowOffsetLeft:E.left,arrowOffsetTop:E.top,placement:w.placement}}function Qa(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:l,padding:i,shouldFlip:o,boundaryElement:a,offset:s,crossOffset:c,maxHeight:u,arrowSize:f=0,arrowBoundaryOffset:h=0}=t,m=r instanceof HTMLElement?Ja(r):document.documentElement,g=m===document.documentElement;const x=window.getComputedStyle(m).position;let w=!!x&&x!=="static",S=g?Le(n):Mr(n,m);if(!g){let{marginTop:b,marginLeft:D}=window.getComputedStyle(n);S.top+=parseInt(b,10)||0,S.left+=parseInt(D,10)||0}let y=Le(r),$=qa(r);y.width+=$.left+$.right,y.height+=$.top+$.bottom;let M=Ya(l),C=Sr(a),L=Sr(m),_=a.tagName==="BODY"?Le(m):Mr(m,a);return Za(e,S,y,M,$,i,o,C,L,_,s,c,w,u,f,h)}function Le(t){let{top:e,left:n,width:r,height:l}=t.getBoundingClientRect(),{scrollTop:i,scrollLeft:o,clientTop:a,clientLeft:s}=document.documentElement;return{top:e+i-a,left:n+o-s,width:r,height:l}}function Mr(t,e){let n=window.getComputedStyle(t),r;if(n.position==="fixed"){let{top:l,left:i,width:o,height:a}=t.getBoundingClientRect();r={top:l,left:i,width:o,height:a}}else{r=Le(t);let l=Le(e),i=window.getComputedStyle(e);l.top+=(parseInt(i.borderTopWidth,10)||0)-e.scrollTop,l.left+=(parseInt(i.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=l.top,r.left-=l.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function Ja(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Ar(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Ar(e);)e=e.parentElement;return e||document.documentElement}function Ar(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const Dr=new WeakMap;function ec(t){let{triggerRef:e,isOpen:n,onClose:r}=t;p.useEffect(()=>{if(!n||r===null)return;let l=i=>{let o=i.target;if(!e.current||o instanceof Node&&!o.contains(e.current))return;let a=r||Dr.get(e.current);a&&a()};return window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("scroll",l,!0)}},[n,r,e])}let le=typeof document<"u"&&window.visualViewport;function tc(t){let{direction:e}=ge(),{arrowSize:n=0,targetRef:r,overlayRef:l,scrollRef:i=l,placement:o="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:u=0,crossOffset:f=0,shouldUpdatePosition:h=!0,isOpen:m=!0,onClose:g,maxHeight:x,arrowBoundaryOffset:w=0}=t,[S,y]=p.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),$=[h,o,l.current,r.current,i.current,a,s,c,u,f,m,e,x,w,n],M=p.useCallback(()=>{if(h===!1||!m||!l.current||!r.current||!i.current||!c)return;let _=Qa({placement:rc(o,e),overlayNode:l.current,targetNode:r.current,scrollNode:i.current,padding:a,shouldFlip:s,boundaryElement:c,offset:u,crossOffset:f,maxHeight:x,arrowSize:n,arrowBoundaryOffset:w});Object.keys(_.position).forEach(b=>l.current.style[b]=_.position[b]+"px"),l.current.style.maxHeight=_.maxHeight!=null?_.maxHeight+"px":void 0,y(_)},$);U(M,$),nc(M),Bs({ref:l,onResize:M});let C=p.useRef(!1);U(()=>{let _,b=()=>{C.current=!0,clearTimeout(_),_=setTimeout(()=>{C.current=!1},500),M()};return le==null||le.addEventListener("resize",b),le==null||le.addEventListener("scroll",b),()=>{le==null||le.removeEventListener("resize",b),le==null||le.removeEventListener("scroll",b)}},[M]);let L=p.useCallback(()=>{C.current||g()},[g,C]);return ec({triggerRef:r,isOpen:m,onClose:g&&L}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...S.position,maxHeight:S.maxHeight}},placement:S.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:S.arrowOffsetLeft,top:S.arrowOffsetTop}},updatePosition:M}}function nc(t){U(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function rc(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const ve=[];function lc(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:l,isDismissable:i=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:a}=t;p.useEffect(()=>(l&&ve.push(e),()=>{let g=ve.indexOf(e);g>=0&&ve.splice(g,1)}),[l,e]);let s=()=>{ve[ve.length-1]===e&&n&&n()},c=g=>{(!a||a(g.target))&&ve[ve.length-1]===e&&(g.stopPropagation(),g.preventDefault())},u=g=>{(!a||a(g.target))&&(ve[ve.length-1]===e&&(g.stopPropagation(),g.preventDefault()),s())},f=g=>{g.key==="Escape"&&!o&&(g.stopPropagation(),g.preventDefault(),s())};ha({ref:e,onInteractOutside:i?u:null,onInteractOutsideStart:c});let{focusWithinProps:h}=Ze({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||xa(g.relatedTarget)||(!a||a(g.relatedTarget))&&n()}}),m=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:f,...h},underlayProps:{onPointerDown:m}}}function ic(t,e,n){let{type:r}=t,{isOpen:l}=e;p.useEffect(()=>{n&&n.current&&Dr.set(n.current,e.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let o=se();return{triggerProps:{"aria-haspopup":i,"aria-expanded":l,"aria-controls":l?o:null,onPress:e.toggle},overlayProps:{id:o}}}const dn=typeof document<"u"&&window.visualViewport,oc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ct=0,fn;function sc(t={}){let{isDisabled:e}=t;U(()=>{if(!e)return Ct++,Ct===1&&(ut()?fn=cc():fn=ac()),()=>{Ct--,Ct===0&&fn()}},[e])}function ac(){return Ye(et(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),et(document.documentElement,"overflow","hidden"))}function cc(){let t,e=0,n=f=>{t=ce(f.target),!(t===document.documentElement&&t===document.body)&&(e=f.changedTouches[0].pageY)},r=f=>{if(!t||t===document.documentElement||t===document.body){f.preventDefault();return}let h=f.changedTouches[0].pageY,m=t.scrollTop,g=t.scrollHeight-t.clientHeight;g!==0&&((m<=0&&h>e||m>=g&&h<e)&&f.preventDefault(),e=h)},l=f=>{let h=f.target;Rr(h)&&h!==document.activeElement&&(f.preventDefault(),h.style.transform="translateY(-2000px)",h.focus(),requestAnimationFrame(()=>{h.style.transform=""}))},i=f=>{let h=f.target;Rr(h)&&(h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",dn&&(dn.height<window.innerHeight?requestAnimationFrame(()=>{Nr(h)}):dn.addEventListener("resize",()=>Nr(h),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},a=window.pageXOffset,s=window.pageYOffset,c=Ye(et(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),et(document.documentElement,"overflow","hidden"),et(document.body,"marginTop",`-${s}px`));window.scrollTo(0,0);let u=Ye(tt(document,"touchstart",n,{passive:!1,capture:!0}),tt(document,"touchmove",r,{passive:!1,capture:!0}),tt(document,"touchend",l,{passive:!1,capture:!0}),tt(document,"focus",i,!0),tt(window,"scroll",o));return()=>{c(),u(),window.scrollTo(a,s)}}function et(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function tt(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function Nr(t){let e=document.scrollingElement||document.documentElement;for(;t&&t!==e;){let n=ce(t);if(n!==document.documentElement&&n!==document.body&&n!==t){let r=n.getBoundingClientRect().top,l=t.getBoundingClientRect().top;l>r+t.clientHeight&&(n.scrollTop+=l-r)}t=n.parentElement}}function Rr(t){return t instanceof HTMLInputElement&&!oc.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}var zr={},Fr={};Fr={dismiss:"تجاهل"};var Lr={};Lr={dismiss:"Отхвърляне"};var Or={};Or={dismiss:"Odstranit"};var jr={};jr={dismiss:"Luk"};var _r={};_r={dismiss:"Schließen"};var Br={};Br={dismiss:"Απόρριψη"};var Vr={};Vr={dismiss:"Dismiss"};var Hr={};Hr={dismiss:"Descartar"};var Wr={};Wr={dismiss:"Lõpeta"};var Ur={};Ur={dismiss:"Hylkää"};var Gr={};Gr={dismiss:"Rejeter"};var Yr={};Yr={dismiss:"התעלם"};var qr={};qr={dismiss:"Odbaci"};var Xr={};Xr={dismiss:"Elutasítás"};var Zr={};Zr={dismiss:"Ignora"};var Qr={};Qr={dismiss:"閉じる"};var Jr={};Jr={dismiss:"무시"};var el={};el={dismiss:"Atmesti"};var tl={};tl={dismiss:"Nerādīt"};var nl={};nl={dismiss:"Lukk"};var rl={};rl={dismiss:"Negeren"};var ll={};ll={dismiss:"Zignoruj"};var il={};il={dismiss:"Descartar"};var ol={};ol={dismiss:"Dispensar"};var sl={};sl={dismiss:"Revocare"};var al={};al={dismiss:"Пропустить"};var cl={};cl={dismiss:"Zrušiť"};var ul={};ul={dismiss:"Opusti"};var dl={};dl={dismiss:"Odbaci"};var fl={};fl={dismiss:"Avvisa"};var pl={};pl={dismiss:"Kapat"};var hl={};hl={dismiss:"Скасувати"};var ml={};ml={dismiss:"取消"};var bl={};bl={dismiss:"關閉"},zr={"ar-AE":Fr,"bg-BG":Lr,"cs-CZ":Or,"da-DK":jr,"de-DE":_r,"el-GR":Br,"en-US":Vr,"es-ES":Hr,"et-EE":Wr,"fi-FI":Ur,"fr-FR":Gr,"he-IL":Yr,"hr-HR":qr,"hu-HU":Xr,"it-IT":Zr,"ja-JP":Qr,"ko-KR":Jr,"lt-LT":el,"lv-LV":tl,"nb-NO":nl,"nl-NL":rl,"pl-PL":ll,"pt-BR":il,"pt-PT":ol,"ro-RO":sl,"ru-RU":al,"sk-SK":cl,"sl-SI":ul,"sr-SP":dl,"sv-SE":fl,"tr-TR":pl,"uk-UA":hl,"zh-CN":ml,"zh-TW":bl};function gl(t){let{onDismiss:e,...n}=t,r=ze(Wa(zr)),l=Wn(n,r.format("dismiss")),i=()=>{e&&e()};return p.createElement(an,null,p.createElement("button",{...l,tabIndex:-1,onClick:i}))}let nt=new WeakMap,ie=[];function uc(t,e=document.body){let n=new Set(t),r=new Set,l=s=>{for(let h of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(h);let c=h=>{if(n.has(h)||r.has(h.parentElement)&&h.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let m of n)if(h.contains(m))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},u=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(s);if(f===NodeFilter.FILTER_ACCEPT&&i(s),f!==NodeFilter.FILTER_REJECT){let h=u.nextNode();for(;h!=null;)i(h),h=u.nextNode()}},i=s=>{var c;let u=(c=nt.get(s))!==null&&c!==void 0?c:0;s.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&s.setAttribute("aria-hidden","true"),r.add(s),nt.set(s,u+1))};ie.length&&ie[ie.length-1].disconnect(),l(e);let o=new MutationObserver(s=>{for(let c of s)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(u=>u.contains(c.target))){for(let u of c.removedNodes)u instanceof Element&&(n.delete(u),r.delete(u));for(let u of c.addedNodes)(u instanceof HTMLElement||u instanceof SVGElement)&&(u.dataset.liveAnnouncer==="true"||u.dataset.reactAriaTopLayer==="true")?n.add(u):u instanceof Element&&l(u)}});o.observe(e,{childList:!0,subtree:!0});let a={observe(){o.observe(e,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return ie.push(a),()=>{o.disconnect();for(let s of r){let c=nt.get(s);c===1?(s.removeAttribute("aria-hidden"),nt.delete(s)):nt.set(s,c-1)}a===ie[ie.length-1]?(ie.pop(),ie.length&&ie[ie.length-1].observe()):ie.splice(ie.indexOf(a),1)}}function dc(t,e){let{triggerRef:n,popoverRef:r,isNonModal:l,isKeyboardDismissDisabled:i,...o}=t,{overlayProps:a,underlayProps:s}=lc({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!l,isKeyboardDismissDisabled:i},r),{overlayProps:c,arrowProps:u,placement:f}=tc({...o,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:null});return sc({isDisabled:l}),U(()=>{if(e.isOpen&&!l&&r.current)return uc([r.current])},[l,e.isOpen,r]),{popoverProps:B(a,c),arrowProps:u,underlayProps:s,placement:f}}const fc=p.createContext(null);function pc(t){let e=it(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[l,i]=p.useState(!1),o=p.useMemo(()=>({contain:l,setContain:i}),[l,i]);if(!n)return null;let a=t.children;return t.disableFocusManagement||(a=p.createElement(ya,{restoreFocus:!0,contain:l&&!r},a)),a=p.createElement(fc.Provider,{value:o},p.createElement(na,null,a)),Nn.createPortal(a,n)}function pn(t){return Ns()?t.altKey:t.ctrlKey}function Oe(t){return Ee()?t.metaKey:t.ctrlKey}const hc=1e3;function vl(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,l=p.useRef({search:"",timeout:null}).current,i=o=>{let a=mc(o.key);if(!a||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))return;a===" "&&l.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),l.search+=a;let s=e.getKeyForSearch(l.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(l.search)),s!=null&&(n.setFocusedKey(s),r&&r(s)),clearTimeout(l.timeout),l.timeout=setTimeout(()=>{l.search=""},hc)};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:null}}}function mc(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function yl(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:l=!1,shouldFocusWrap:i=!1,disallowEmptySelection:o=!1,disallowSelectAll:a=!1,selectOnFocus:s=e.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:u,allowsTabNavigation:f=!1,isVirtualized:h,scrollRef:m=r,linkBehavior:g="action"}=t,{direction:x}=ge(),w=_n(),S=T=>{if(T.altKey&&T.key==="Tab"&&T.preventDefault(),!r.current.contains(T.target))return;const E=(R,fe)=>{if(R!=null){if(e.isLink(R)&&g==="selection"&&s&&!pn(T)){Nn.flushSync(()=>{e.setFocusedKey(R,fe)});let $e=m.current.querySelector(`[data-key="${R}"]`);w.open($e,T);return}if(e.setFocusedKey(R,fe),e.isLink(R)&&g==="override")return;T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&!pn(T)&&e.replaceSelection(R)}};switch(T.key){case"ArrowDown":if(n.getKeyBelow){var z,v;T.preventDefault();let R=e.focusedKey!=null?n.getKeyBelow(e.focusedKey):(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n);R==null&&i&&(R=(v=n.getFirstKey)===null||v===void 0?void 0:v.call(n,e.focusedKey)),E(R)}break;case"ArrowUp":if(n.getKeyAbove){var k,O;T.preventDefault();let R=e.focusedKey!=null?n.getKeyAbove(e.focusedKey):(k=n.getLastKey)===null||k===void 0?void 0:k.call(n);R==null&&i&&(R=(O=n.getLastKey)===null||O===void 0?void 0:O.call(n,e.focusedKey)),E(R)}break;case"ArrowLeft":if(n.getKeyLeftOf){var ue,I;T.preventDefault();let R=n.getKeyLeftOf(e.focusedKey);R==null&&i&&(R=x==="rtl"?(ue=n.getFirstKey)===null||ue===void 0?void 0:ue.call(n,e.focusedKey):(I=n.getLastKey)===null||I===void 0?void 0:I.call(n,e.focusedKey)),E(R,x==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var de,Se;T.preventDefault();let R=n.getKeyRightOf(e.focusedKey);R==null&&i&&(R=x==="rtl"?(de=n.getLastKey)===null||de===void 0?void 0:de.call(n,e.focusedKey):(Se=n.getFirstKey)===null||Se===void 0?void 0:Se.call(n,e.focusedKey)),E(R,x==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){T.preventDefault();let R=n.getFirstKey(e.focusedKey,Oe(T));e.setFocusedKey(R),Oe(T)&&T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&e.replaceSelection(R)}break;case"End":if(n.getLastKey){T.preventDefault();let R=n.getLastKey(e.focusedKey,Oe(T));e.setFocusedKey(R),Oe(T)&&T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&e.replaceSelection(R)}break;case"PageDown":if(n.getKeyPageBelow){T.preventDefault();let R=n.getKeyPageBelow(e.focusedKey);E(R)}break;case"PageUp":if(n.getKeyPageAbove){T.preventDefault();let R=n.getKeyPageAbove(e.focusedKey);E(R)}break;case"a":Oe(T)&&e.selectionMode==="multiple"&&a!==!0&&(T.preventDefault(),e.selectAll());break;case"Escape":T.preventDefault(),o||e.clearSelection();break;case"Tab":if(!f){if(T.shiftKey)r.current.focus();else{let R=ne(r.current,{tabbable:!0}),fe,$e;do $e=R.lastChild(),$e&&(fe=$e);while($e);fe&&!fe.contains(document.activeElement)&&pe(fe)}break}}},y=p.useRef({top:0,left:0});Hs(m,"scroll",h?null:()=>{y.current={top:m.current.scrollTop,left:m.current.scrollLeft}});let $=T=>{if(e.isFocused){T.currentTarget.contains(T.target)||e.setFocused(!1);return}if(T.currentTarget.contains(T.target)){if(e.setFocused(!0),e.focusedKey==null){let v=O=>{O!=null&&(e.setFocusedKey(O),s&&e.replaceSelection(O))},k=T.relatedTarget;var E,z;k&&T.currentTarget.compareDocumentPosition(k)&Node.DOCUMENT_POSITION_FOLLOWING?v((E=e.lastSelectedKey)!==null&&E!==void 0?E:n.getLastKey()):v((z=e.firstSelectedKey)!==null&&z!==void 0?z:n.getFirstKey())}else h||(m.current.scrollTop=y.current.top,m.current.scrollLeft=y.current.left);if(!h&&e.focusedKey!=null){let v=m.current.querySelector(`[data-key="${e.focusedKey}"]`);v&&(v.contains(document.activeElement)||pe(v),Zt()==="keyboard"&&xe(v,{containingElement:r.current}))}}},M=T=>{T.currentTarget.contains(T.relatedTarget)||e.setFocused(!1)};const C=p.useRef(l);p.useEffect(()=>{if(C.current){let T=null;l==="first"&&(T=n.getFirstKey()),l==="last"&&(T=n.getLastKey());let E=e.selectedKeys;E.size&&(T=E.values().next().value),e.setFocused(!0),e.setFocusedKey(T),T==null&&!u&&te(r.current)}C.current=!1},[]);let L=p.useRef(e.focusedKey);p.useEffect(()=>{let T=Zt();if(e.isFocused&&e.focusedKey!=null&&(m!=null&&m.current)){let E=m.current.querySelector(`[data-key="${e.focusedKey}"]`);E&&T==="keyboard"&&(h||Yn(m.current,E),xe(E,{containingElement:r.current}))}e.isFocused&&e.focusedKey==null&&L.current!=null&&te(r.current),L.current=e.focusedKey},[h,m,e.focusedKey,e.isFocused,r]);let _={onKeyDown:S,onFocus:$,onBlur:M,onMouseDown(T){m.current===T.target&&T.preventDefault()}},{typeSelectProps:b}=vl({keyboardDelegate:n,selectionManager:e});c||(_=B(b,_));let D;return u||(D=e.focusedKey==null?0:-1),{collectionProps:{..._,tabIndex:D}}}function hn(t){let{selectionManager:e,key:n,ref:r,shouldSelectOnPressUp:l,shouldUseVirtualFocus:i,focus:o,isDisabled:a,onAction:s,allowsDifferentPressOrigin:c,linkBehavior:u="action"}=t,f=_n(),h=I=>{if(I.pointerType==="keyboard"&&pn(I))e.toggleSelection(n);else{if(e.selectionMode==="none")return;if(e.isLink(n)){if(u==="selection"){f.open(r.current,I),e.setSelectedKeys(e.selectedKeys);return}else if(u==="override"||u==="none")return}e.selectionMode==="single"?e.isSelected(n)&&!e.disallowEmptySelection?e.toggleSelection(n):e.replaceSelection(n):I&&I.shiftKey?e.extendSelection(n):e.selectionBehavior==="toggle"||I&&(Oe(I)||I.pointerType==="touch"||I.pointerType==="virtual")?e.toggleSelection(n):e.replaceSelection(n)}};p.useEffect(()=>{n===e.focusedKey&&e.isFocused&&!i&&(o?o():document.activeElement!==r.current&&te(r.current))},[r,n,e.focusedKey,e.childFocusStrategy,e.isFocused,i]),a=a||e.isDisabled(n);let m={};!i&&!a?m={tabIndex:n===e.focusedKey?0:-1,onFocus(I){I.target===r.current&&e.setFocusedKey(n)}}:a&&(m.onMouseDown=I=>{I.preventDefault()});let g=e.isLink(n)&&u==="override",x=e.isLink(n)&&u!=="selection"&&u!=="none",w=!a&&e.canSelectItem(n)&&!g,S=(s||x)&&!a,y=S&&(e.selectionBehavior==="replace"?!w:!w||e.isEmpty),$=S&&w&&e.selectionBehavior==="replace",M=y||$,C=p.useRef(null),L=M&&w,_=p.useRef(!1),b=p.useRef(!1),D=I=>{s&&s(),x&&f.open(r.current,I)},T={};l?(T.onPressStart=I=>{C.current=I.pointerType,_.current=L,I.pointerType==="keyboard"&&(!M||wl())&&h(I)},c?(T.onPressUp=y?null:I=>{I.pointerType!=="keyboard"&&w&&h(I)},T.onPress=y?D:null):T.onPress=I=>{if(y||$&&I.pointerType!=="mouse"){if(I.pointerType==="keyboard"&&!$l())return;D(I)}else I.pointerType!=="keyboard"&&w&&h(I)}):(T.onPressStart=I=>{C.current=I.pointerType,_.current=L,b.current=y,w&&(I.pointerType==="mouse"&&!y||I.pointerType==="keyboard"&&(!S||wl()))&&h(I)},T.onPress=I=>{(I.pointerType==="touch"||I.pointerType==="pen"||I.pointerType==="virtual"||I.pointerType==="keyboard"&&M&&$l()||I.pointerType==="mouse"&&b.current)&&(M?D(I):w&&h(I))}),m["data-key"]=n,T.preventFocusOnPress=i;let{pressProps:E,isPressed:z}=De(T),v=$?I=>{C.current==="mouse"&&(I.stopPropagation(),I.preventDefault(),D(I))}:void 0,{longPressProps:k}=ur({isDisabled:!L,onLongPress(I){I.pointerType==="touch"&&(h(I),e.setSelectionBehavior("toggle"))}}),O=I=>{C.current==="touch"&&_.current&&I.preventDefault()},ue=e.isLink(n)?I=>{Ke.isOpening||I.preventDefault()}:void 0;return{itemProps:B(m,w||y?E:{},L?k:{},{onDoubleClick:v,onDragStartCapture:O,onClick:ue}),isPressed:z,isSelected:e.isSelected(n),isFocused:e.isFocused&&e.focusedKey===n,isDisabled:a,allowsSelection:w,hasAction:M}}function $l(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function wl(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Pl{getNextKey(e){for(e=this.collection.getKeyAfter(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,n,r){let l=this.getItem(e);if(!l)return null;let i=l.getBoundingClientRect();do e=n(e),l=this.getItem(e);while(l&&r(i,l.getBoundingClientRect()));return e}isSameRow(e,n){return e.top===n.top||e.left!==n.left}isSameColumn(e,n){return e.left===n.left||e.top!==n.top}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();for(;e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getKeyPageAbove(e){let n=this.ref.current,r=this.getItem(e);if(!r)return null;if(!ft(n))return this.getFirstKey();let l=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let o=l.x-n.scrollLeft,a=Math.max(0,i.x-o+i.width-l.width);for(;r&&i.x-o>a;)e=this.getKeyAbove(e),r=e==null?null:this.getItem(e),i=r==null?void 0:r.getBoundingClientRect()}else{let o=l.y-n.scrollTop,a=Math.max(0,i.y-o+i.height-l.height);for(;r&&i.y-o>a;)e=this.getKeyAbove(e),r=e==null?null:this.getItem(e),i=r==null?void 0:r.getBoundingClientRect()}return e??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.getItem(e);if(!r)return null;if(!ft(n))return this.getLastKey();let l=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let o=l.x-n.scrollLeft,a=Math.min(n.scrollWidth,i.x-o-i.width+l.width);for(;r&&i.x-o<a;)e=this.getKeyBelow(e),r=e==null?null:this.getItem(e),i=r==null?void 0:r.getBoundingClientRect()}else{let o=l.y-n.scrollTop,a=Math.min(n.scrollHeight,i.y-o-i.height+l.height);for(;r&&i.y-o<a;)e=this.getKeyBelow(e),r=e==null?null:this.getItem(e),i=r==null?void 0:r.getBoundingClientRect()}return e??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,l=n||this.getFirstKey();for(;l!=null;){let i=r.getItem(l),o=i.textValue.slice(0,e.length);if(i.textValue&&this.collator.compare(o,e)===0)return l;l=this.getKeyBelow(l)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.orientation=n.orientation,this.direction=n.direction,this.layout=n.layout||"stack"}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function bc(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:l,keyboardDelegate:i}=t,o=Tt({usage:"search",sensitivity:"base"}),a=e.disabledBehavior,s=p.useMemo(()=>i||new Pl(n,a==="selection"?new Set:r,l,o),[i,n,r,l,o,a]),{collectionProps:c}=yl({...t,ref:l,selectionManager:e,keyboardDelegate:s});return{listProps:c}}function El(t){return null}El.getCollectionNode=function*(e,n){let{childItems:r,title:l,children:i}=e,o=e.title||e.children,a=e.textValue||(typeof o=="string"?o:"")||e["aria-label"]||"";!a&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:o,textValue:a,"aria-label":e["aria-label"],hasChildNodes:gc(e),*childNodes(){if(r)for(let s of r)yield{type:"item",value:s};else if(l){let s=[];p.Children.forEach(i,c=>{s.push({type:"item",element:c})}),yield*s}}}};function gc(t){return t.hasChildItems!=null?t.hasChildItems:!!(t.childItems||t.title&&p.Children.count(t.children)>0)}let vc=El;function xl(t){return null}xl.getCollectionNode=function*(e){let{children:n,title:r,items:l}=e;yield{type:"section",props:e,hasChildNodes:!0,rendered:r,"aria-label":e["aria-label"],*childNodes(){if(typeof n=="function"){if(!l)throw new Error("props.children was a function but props.items is missing");for(let i of l)yield{type:"item",value:i,renderer:n}}else{let i=[];p.Children.forEach(n,o=>{i.push({type:"item",element:o})}),yield*i}}}};let yc=xl;class $c{build(e,n){return this.context=n,kl(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let l of e.items)yield*this.getFullNode({value:l},{renderer:n})}else{let l=[];p.Children.forEach(n,o=>{l.push(o)});let i=0;for(let o of l){let a=this.getFullNode({element:o,index:i},{});for(let s of a)i++,yield s}}}getKey(e,n,r,l){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${l}${n.key}`;let i=n.value;if(i!=null){var o;let a=(o=i.key)!==null&&o!==void 0?o:i.id;if(a==null)throw new Error("No key found for item");return a}return l?`${l}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,l){let i=e.element;if(!i&&e.value&&n&&n.renderer){let s=this.cache.get(e.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=e.index,s.parentKey=l?l.key:null,yield s;return}i=n.renderer(e.value)}if(p.isValidElement(i)){let s=i.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let h=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${h}> in collection.`)}let c=s.getCollectionNode(i.props,this.context),u=e.index,f=c.next();for(;!f.done&&f.value;){let h=f.value;e.index=u;let m=h.key;m||(m=h.element?null:this.getKey(i,e,n,r));let x=[...this.getFullNode({...h,key:m,index:u,wrapper:wc(e.wrapper,h.wrapper)},this.getChildState(n,h),r?`${r}${i.key}`:i.key,l)];for(let w of x){if(w.value=h.value||e.value,w.value&&this.cache.set(w.value,w),e.type&&w.type!==e.type)throw new Error(`Unsupported type <${mn(w.type)}> in <${mn(l.type)}>. Only <${mn(e.type)}> is supported.`);u++,yield w}f=c.next(x)}return}if(e.key==null)return;let o=this,a={type:e.type,props:e.props,key:e.key,parentKey:l?l.key:null,value:e.value,level:l?l.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:kl(function*(){if(!e.hasChildNodes)return;let s=0;for(let c of e.childNodes()){c.key!=null&&(c.key=`${a.key}${c.key}`),c.index=s;let u=o.getFullNode(c,o.getChildState(n,c),a.key,a);for(let f of u)s++,yield f}})};yield a}constructor(){this.cache=new WeakMap}}function kl(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function wc(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function mn(t){return t[0].toUpperCase()+t.slice(1)}function Tl(t,e,n){let r=p.useMemo(()=>new $c,[]),{children:l,items:i,collection:o}=t;return p.useMemo(()=>{if(o)return o;let s=r.build({children:l,items:i},n);return e(s)},[r,l,i,o,n,e])}function X(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function ye(t){return ke(t,0)}function ke(t,e){if(e<0)return;let n=0;for(let r of t){if(n===e)return r;n++}}function Te(t){let e;for(let n of t)e=n;return e}function bn(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...Sl(t,e),e],l=[...Sl(t,n),n],i=r.slice(0,l.length).findIndex((o,a)=>o!==l[a]);return i!==-1?(e=r[i],n=l[i],e.index-n.index):r.findIndex(o=>o===n)>=0?1:(l.findIndex(o=>o===e)>=0,-1)}function Sl(t,e){let n=[];for(;(e==null?void 0:e.parentKey)!=null;)e=t.getItem(e.parentKey),n.unshift(e);return n}const Kl=new WeakMap;function Pc(t){let e=Kl.get(t);if(e!=null)return e;e=0;let n=r=>{for(let l of r)l.type==="section"?n(X(l,t)):e++};return n(t),Kl.set(t,e),e}const gn=new WeakMap;function Ec(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function xc(t,e){let n=gn.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Ec(e)}`}function kc(t,e,n){let r=Pe(t,{labelable:!0}),l=t.selectionBehavior||"toggle",i=t.linkBehavior||(l==="replace"?"action":"override");l==="toggle"&&i==="action"&&(i="override");let{listProps:o}=bc({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:i}),{focusWithinProps:a}=Ze({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=se(t.id);gn.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:i});let{labelProps:c,fieldProps:u}=Pr({...t,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:B(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...B(u,o)})}}function Tc(t,e,n){var r;let{key:l}=t,i=gn.get(e);var o;let a=(o=t.isDisabled)!==null&&o!==void 0?o:e.disabledKeys.has(l);var s;let c=(s=t.isSelected)!==null&&s!==void 0?s:e.selectionManager.isSelected(l);var u;let f=(u=t.shouldSelectOnPressUp)!==null&&u!==void 0?u:i==null?void 0:i.shouldSelectOnPressUp;var h;let m=(h=t.shouldFocusOnHover)!==null&&h!==void 0?h:i==null?void 0:i.shouldFocusOnHover;var g;let x=(g=t.shouldUseVirtualFocus)!==null&&g!==void 0?g:i==null?void 0:i.shouldUseVirtualFocus;var w;let S=(w=t.isVirtualized)!==null&&w!==void 0?w:i==null?void 0:i.isVirtualized,y=st(),$=st(),M={role:"option","aria-disabled":a||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?c:void 0};Ee()&&jn()||(M["aria-label"]=t["aria-label"],M["aria-labelledby"]=y,M["aria-describedby"]=$);let C=e.collection.getItem(l);if(S){let v=Number(C==null?void 0:C.index);M["aria-posinset"]=Number.isNaN(v)?void 0:v+1,M["aria-setsize"]=Pc(e.collection)}let{itemProps:L,isPressed:_,isFocused:b,hasAction:D,allowsSelection:T}=hn({selectionManager:e.selectionManager,key:l,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&m,isVirtualized:S,shouldUseVirtualFocus:x,isDisabled:a,onAction:i!=null&&i.onAction?()=>{var v;return i==null||(v=i.onAction)===null||v===void 0?void 0:v.call(i,l)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:E}=pa({isDisabled:a||!m,onHoverStart(){Xe()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(l))}}),z=Pe(C==null?void 0:C.props,{isLink:!!(!(C==null||(r=C.props)===null||r===void 0)&&r.href)});return delete z.id,{optionProps:{...M,...B(z,L,E),id:xc(e,l)},labelProps:{id:y},descriptionProps:{id:$},isFocused:b,isFocusVisible:b&&Xe(),isSelected:c,isDisabled:a,isPressed:_,allowsSelection:T,hasAction:D}}function Sc(t){return t&&t.__esModule?t.default:t}var Cl={},Il={};Il={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Ml={};Ml={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Al={};Al={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Dl={};Dl={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Nl={};Nl={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Rl={};Rl={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var zl={};zl={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Fl={};Fl={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Ll={};Ll={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Ol={};Ol={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var jl={};jl={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var _l={};_l={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Bl={};Bl={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Vl={};Vl={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Hl={};Hl={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Wl={};Wl={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Ul={};Ul={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Gl={};Gl={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Yl={};Yl={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var ql={};ql={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Xl={};Xl={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Zl={};Zl={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Ql={};Ql={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Jl={};Jl={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var ei={};ei={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var ti={};ti={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var ni={};ni={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var ri={};ri={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var li={};li={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var ii={};ii={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var oi={};oi={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var si={};si={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var ai={};ai={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var ci={};ci={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"},Cl={"ar-AE":Il,"bg-BG":Ml,"cs-CZ":Al,"da-DK":Dl,"de-DE":Nl,"el-GR":Rl,"en-US":zl,"es-ES":Fl,"et-EE":Ll,"fi-FI":Ol,"fr-FR":jl,"he-IL":_l,"hr-HR":Bl,"hu-HU":Vl,"it-IT":Hl,"ja-JP":Wl,"ko-KR":Ul,"lt-LT":Gl,"lv-LV":Yl,"nb-NO":ql,"nl-NL":Xl,"pl-PL":Zl,"pt-BR":Ql,"pt-PT":Jl,"ro-RO":ei,"ru-RU":ti,"sk-SK":ni,"sl-SI":ri,"sr-SP":li,"sv-SE":ii,"tr-TR":oi,"uk-UA":si,"zh-CN":ai,"zh-TW":ci};function Kc(t,e,n){let{type:r="menu",isDisabled:l,trigger:i="press"}=t,o=se(),{triggerProps:a,overlayProps:s}=ic({type:r},e,n),c=m=>{if(!l&&!(i==="longPress"&&!m.altKey)&&n&&n.current)switch(m.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),e.toggle("last");break;default:"continuePropagation"in m&&m.continuePropagation()}},u=ze(Sc(Cl)),{longPressProps:f}=ur({isDisabled:l||i!=="longPress",accessibilityDescription:u.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),h={onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!l&&e.toggle(m.pointerType==="virtual"?"first":null)},onPress(m){m.pointerType==="touch"&&!l&&e.toggle()}};return delete a.onPress,{menuTriggerProps:{...a,...i==="press"?h:f,id:o,onKeyDown:c},menuProps:{...s,"aria-labelledby":o,autoFocus:e.focusStrategy||!0,onClose:e.close}}}class je{copy(){return new je(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}constructor(e=0,n=0){this.x=e,this.y=n}}class _e{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new je(this.x,this.y)}get topRight(){return new je(this.maxX,this.y)}get bottomLeft(){return new je(this.x,this.maxY)}get bottomRight(){return new je(this.maxX,this.maxY)}intersects(e){return this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let n of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[n]))return n;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let n=Math.min(this.x,e.x),r=Math.min(this.y,e.y),l=Math.max(this.maxX,e.maxX)-n,i=Math.max(this.maxY,e.maxY)-r;return new _e(n,r,l,i)}intersection(e){if(!this.intersects(e))return new _e(0,0,0,0);let n=Math.max(this.x,e.x),r=Math.max(this.y,e.y);return new _e(n,r,Math.min(this.maxX,e.maxX)-n,Math.min(this.maxY,e.maxY)-r)}copy(){return new _e(this.x,this.y,this.width,this.height)}constructor(e=0,n=0,r=0,l=0){this.x=e,this.y=n,this.width=r,this.height=l}}let Be=typeof window<"u"?window.performance:null,ui=Be&&(Be.now||Be.webkitNow||Be.msNow||Be.mozNow);ui&&ui.bind(Be);function di(t){return t&&t.__esModule?t.default:t}class fi{isCell(e){return e.type==="cell"}isRow(e){return e.type==="row"||e.type==="item"}findPreviousKey(e,n){let r=e!=null?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;r!=null;){let l=this.collection.getItem(r);if(!this.disabledKeys.has(r)&&(!n||n(l)))return r;r=this.collection.getKeyBefore(r)}}findNextKey(e,n){let r=e!=null?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;r!=null;){let l=this.collection.getItem(r);if(!this.disabledKeys.has(r)&&(!n||n(l)))return r;r=this.collection.getKeyAfter(r)}}getKeyBelow(e){let n=this.collection.getItem(e);if(n&&(this.isCell(n)&&(e=n.parentKey),e=this.findNextKey(e),e!=null)){if(this.isCell(n)){let r=this.collection.getItem(e);return ke(X(r,this.collection),n.index).key}if(this.focusMode==="row")return e}}getKeyAbove(e){let n=this.collection.getItem(e);if(n&&(this.isCell(n)&&(e=n.parentKey),e=this.findPreviousKey(e),e!=null)){if(this.isCell(n)){let r=this.collection.getItem(e);return ke(X(r,this.collection),n.index).key}if(this.focusMode==="row")return e}}getKeyRightOf(e){let n=this.collection.getItem(e);if(n){if(this.isRow(n)){let r=X(n,this.collection);return this.direction==="rtl"?Te(r).key:ye(r).key}if(this.isCell(n)){let r=this.collection.getItem(n.parentKey),l=X(r,this.collection),i=this.direction==="rtl"?ke(l,n.index-1):ke(l,n.index+1);return i?i.key:this.focusMode==="row"?n.parentKey:this.direction==="rtl"?this.getFirstKey(e):this.getLastKey(e)}}}getKeyLeftOf(e){let n=this.collection.getItem(e);if(n){if(this.isRow(n)){let r=X(n,this.collection);return this.direction==="rtl"?ye(r).key:Te(r).key}if(this.isCell(n)){let r=this.collection.getItem(n.parentKey),l=X(r,this.collection),i=this.direction==="rtl"?ke(l,n.index+1):ke(l,n.index-1);return i?i.key:this.focusMode==="row"?n.parentKey:this.direction==="rtl"?this.getLastKey(e):this.getFirstKey(e)}}}getFirstKey(e,n){let r;if(e!=null){if(r=this.collection.getItem(e),!r)return;if(this.isCell(r)&&!n){let l=this.collection.getItem(r.parentKey);return ye(X(l,this.collection)).key}}if(e=this.findNextKey(),e!=null&&r&&this.isCell(r)&&n||this.focusMode==="cell"){let l=this.collection.getItem(e);e=ye(X(l,this.collection)).key}return e}getLastKey(e,n){let r;if(e!=null){if(r=this.collection.getItem(e),!r)return;if(this.isCell(r)&&!n){let l=this.collection.getItem(r.parentKey),i=X(l,this.collection);return Te(i).key}}if(e=this.findPreviousKey(),e!=null&&r&&this.isCell(r)&&n||this.focusMode==="cell"){let l=this.collection.getItem(e),i=X(l,this.collection);e=Te(i).key}return e}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getItemRect(e){var n;if(this.layout)return(n=this.layout.getLayoutInfo(e))===null||n===void 0?void 0:n.rect;let r=this.getItem(e);if(r)return new _e(r.offsetLeft,r.offsetTop,r.offsetWidth,r.offsetHeight)}getPageHeight(){var e,n,r;return this.layout?(e=this.layout.virtualizer)===null||e===void 0?void 0:e.visibleRect.height:(n=this.ref)===null||n===void 0||(r=n.current)===null||r===void 0?void 0:r.offsetHeight}getContentHeight(){var e,n;return this.layout?this.layout.getContentSize().height:(e=this.ref)===null||e===void 0||(n=e.current)===null||n===void 0?void 0:n.scrollHeight}getKeyPageAbove(e){let n=this.getItemRect(e);if(!n)return null;let r=Math.max(0,n.maxY-this.getPageHeight());for(;n&&n.y>r;)e=this.getKeyAbove(e),n=this.getItemRect(e);return e}getKeyPageBelow(e){let n=this.getItemRect(e);if(!n)return null;let r=this.getPageHeight(),l=Math.min(this.getContentHeight(),n.y+r);for(;n&&n.maxY<l;){let i=this.getKeyBelow(e);n=this.getItemRect(i),i!=null&&(e=i)}return e}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,l=n??this.getFirstKey(),i=r.getItem(l);i.type==="cell"&&(l=i.parentKey);let o=!1;for(;l!=null;){let a=r.getItem(l);if(a.textValue){let s=a.textValue.slice(0,e.length);if(this.collator.compare(s,e)===0)return this.isRow(a)&&this.focusMode==="cell"?ye(X(a,this.collection)).key:a.key}l=this.findNextKey(l),l==null&&!o&&(l=this.getFirstKey(),o=!0)}return null}constructor(e){this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.ref=e.ref,this.direction=e.direction,this.collator=e.collator,this.layout=e.layout,this.focusMode=e.focusMode||"row"}}const vn=new WeakMap;var yn={},pi={};pi={deselectedItem:t=>`${t.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${e.number(t.count)} عنصر محدد`,other:()=>`${e.number(t.count)} عنصر محدد`})}.`,selectedItem:t=>`${t.item} المحدد`};var hi={};hi={deselectedItem:t=>`${t.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Няма избрани елементи",one:()=>`${e.number(t.count)} избран елемент`,other:()=>`${e.number(t.count)} избрани елементи`})}.`,selectedItem:t=>`${t.item} избран.`};var mi={};mi={deselectedItem:t=>`Položka ${t.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${e.number(t.count)} položka`,other:()=>`Vybráno ${e.number(t.count)} položek`})}.`,selectedItem:t=>`Vybrána položka ${t.item}.`};var bi={};bi={deselectedItem:t=>`${t.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer valgt",one:()=>`${e.number(t.count)} element valgt`,other:()=>`${e.number(t.count)} elementer valgt`})}.`,selectedItem:t=>`${t.item} valgt.`};var gi={};gi={deselectedItem:t=>`${t.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${e.number(t.count)} Element ausgewählt`,other:()=>`${e.number(t.count)} Elemente ausgewählt`})}.`,selectedItem:t=>`${t.item} ausgewählt.`};var vi={};vi={deselectedItem:t=>`Δεν επιλέχθηκε το στοιχείο ${t.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${e.number(t.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${e.number(t.count)} στοιχεία`})}.`,selectedItem:t=>`Επιλέχθηκε το στοιχείο ${t.item}.`};var yi={};yi={deselectedItem:t=>`${t.item} not selected.`,select:"Select",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"No items selected",one:()=>`${e.number(t.count)} item selected`,other:()=>`${e.number(t.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:t=>`${t.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var $i={};$i={deselectedItem:t=>`${t.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ningún elemento seleccionado",one:()=>`${e.number(t.count)} elemento seleccionado`,other:()=>`${e.number(t.count)} elementos seleccionados`})}.`,selectedItem:t=>`${t.item} seleccionado.`};var wi={};wi={deselectedItem:t=>`${t.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Üksusi pole valitud",one:()=>`${e.number(t.count)} üksus valitud`,other:()=>`${e.number(t.count)} üksust valitud`})}.`,selectedItem:t=>`${t.item} valitud.`};var Pi={};Pi={deselectedItem:t=>`Kohdetta ${t.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${e.number(t.count)} kohde valittu`,other:()=>`${e.number(t.count)} kohdetta valittu`})}.`,selectedItem:t=>`${t.item} valittu.`};var Ei={};Ei={deselectedItem:t=>`${t.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Aucun élément sélectionné",one:()=>`${e.number(t.count)} élément sélectionné`,other:()=>`${e.number(t.count)} éléments sélectionnés`})}.`,selectedItem:t=>`${t.item} sélectionné.`};var xi={};xi={deselectedItem:t=>`${t.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${e.number(t.count)} נבחר`,other:()=>`${e.number(t.count)} פריטים נבחרו`})}.`,selectedItem:t=>`${t.item} נבחר.`};var ki={};ki={deselectedItem:t=>`Stavka ${t.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${e.number(t.count)} stavka`,other:()=>`Odabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`Stavka ${t.item} je odabrana.`};var Ti={};Ti={deselectedItem:t=>`${t.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${e.number(t.count)} elem kijelölve`,other:()=>`${e.number(t.count)} elem kijelölve`})}.`,selectedItem:t=>`${t.item} kijelölve.`};var Si={};Si={deselectedItem:t=>`${t.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nessun elemento selezionato",one:()=>`${e.number(t.count)} elemento selezionato`,other:()=>`${e.number(t.count)} elementi selezionati`})}.`,selectedItem:t=>`${t.item} selezionato.`};var Ki={};Ki={deselectedItem:t=>`${t.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"項目が選択されていません",one:()=>`${e.number(t.count)} 項目を選択しました`,other:()=>`${e.number(t.count)} 項目を選択しました`})}。`,selectedItem:t=>`${t.item} を選択しました。`};var Ci={};Ci={deselectedItem:t=>`${t.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"선택된 항목이 없습니다",one:()=>`${e.number(t.count)}개 항목이 선택되었습니다`,other:()=>`${e.number(t.count)}개 항목이 선택되었습니다`})}.`,selectedItem:t=>`${t.item}이(가) 선택되었습니다.`};var Ii={};Ii={deselectedItem:t=>`${t.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${e.number(t.count)} elementas`,other:()=>`Pasirinkta elementų: ${e.number(t.count)}`})}.`,selectedItem:t=>`Pasirinkta: ${t.item}.`};var Mi={};Mi={deselectedItem:t=>`Vienums ${t.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`,other:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`})}.`,selectedItem:t=>`Atlasīts vienums ${t.item}.`};var Ai={};Ai={deselectedItem:t=>`${t.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer er valgt",one:()=>`${e.number(t.count)} element er valgt`,other:()=>`${e.number(t.count)} elementer er valgt`})}.`,selectedItem:t=>`${t.item} er valgt.`};var Di={};Di={deselectedItem:t=>`${t.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Geen items geselecteerd",one:()=>`${e.number(t.count)} item geselecteerd`,other:()=>`${e.number(t.count)} items geselecteerd`})}.`,selectedItem:t=>`${t.item} geselecteerd.`};var Ni={};Ni={deselectedItem:t=>`Nie zaznaczono ${t.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${e.number(t.count)} zaznaczony element`,other:()=>`${e.number(t.count)} zaznaczonych elementów`})}.`,selectedItem:t=>`Zaznaczono ${t.item}.`};var Ri={};Ri={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var zi={};zi={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var Fi={};Fi={deselectedItem:t=>`${t.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Niciun element selectat",one:()=>`${e.number(t.count)} element selectat`,other:()=>`${e.number(t.count)} elemente selectate`})}.`,selectedItem:t=>`${t.item} selectat.`};var Li={};Li={deselectedItem:t=>`${t.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Нет выбранных элементов",one:()=>`${e.number(t.count)} элемент выбран`,other:()=>`${e.number(t.count)} элементов выбрано`})}.`,selectedItem:t=>`${t.item} выбрано.`};var Oi={};Oi={deselectedItem:t=>`Nevybraté položky: ${t.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Žiadne vybraté položky",one:()=>`${e.number(t.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${e.number(t.count)}`})}.`,selectedItem:t=>`Vybraté položky: ${t.item}.`};var ji={};ji={deselectedItem:t=>`Element ${t.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Noben element ni izbran",one:()=>`${e.number(t.count)} element je izbran`,other:()=>`${e.number(t.count)} elementov je izbranih`})}.`,selectedItem:t=>`Element ${t.item} je izbran.`};var _i={};_i={deselectedItem:t=>`${t.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${e.number(t.count)} stavka`,other:()=>`Izabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`${t.item} je izabrano.`};var Bi={};Bi={deselectedItem:t=>`${t.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Inga markerade objekt",one:()=>`${e.number(t.count)} markerat objekt`,other:()=>`${e.number(t.count)} markerade objekt`})}.`,selectedItem:t=>`${t.item} markerat.`};var Vi={};Vi={deselectedItem:t=>`${t.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${e.number(t.count)} öge seçildi`,other:()=>`${e.number(t.count)} öge seçildi`})}.`,selectedItem:t=>`${t.item} seçildi.`};var Hi={};Hi={deselectedItem:t=>`${t.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Жодних елементів не вибрано",one:()=>`${e.number(t.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${e.number(t.count)}`})}.`,selectedItem:t=>`${t.item} вибрано.`};var Wi={};Wi={deselectedItem:t=>`未选择 ${t.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未选择项目",one:()=>`已选择 ${e.number(t.count)} 个项目`,other:()=>`已选择 ${e.number(t.count)} 个项目`})}。`,selectedItem:t=>`已选择 ${t.item}。`};var Ui={};Ui={deselectedItem:t=>`未選取「${t.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未選取任何項目",one:()=>`已選取 ${e.number(t.count)} 個項目`,other:()=>`已選取 ${e.number(t.count)} 個項目`})}。`,selectedItem:t=>`已選取「${t.item}」。`},yn={"ar-AE":pi,"bg-BG":hi,"cs-CZ":mi,"da-DK":bi,"de-DE":gi,"el-GR":vi,"en-US":yi,"es-ES":$i,"et-EE":wi,"fi-FI":Pi,"fr-FR":Ei,"he-IL":xi,"hr-HR":ki,"hu-HU":Ti,"it-IT":Si,"ja-JP":Ki,"ko-KR":Ci,"lt-LT":Ii,"lv-LV":Mi,"nb-NO":Ai,"nl-NL":Di,"pl-PL":Ni,"pt-BR":Ri,"pt-PT":zi,"ro-RO":Fi,"ru-RU":Li,"sk-SK":Oi,"sl-SI":ji,"sr-SP":_i,"sv-SE":Bi,"tr-TR":Vi,"uk-UA":Hi,"zh-CN":Wi,"zh-TW":Ui};function Cc(t,e){var n;let{getRowText:r=a=>{var s,c,u;return(n=(c=(s=e.collection).getTextValue)===null||c===void 0?void 0:c.call(s,a))!==null&&n!==void 0?n:(u=e.collection.getItem(a))===null||u===void 0?void 0:u.textValue}}=t,l=ze(di(yn)),i=e.selectionManager.rawSelection,o=p.useRef(i);Un(()=>{var a;if(!e.selectionManager.isFocused){o.current=i;return}let s=Gi(i,o.current),c=Gi(o.current,i),u=e.selectionManager.selectionBehavior==="replace",f=[];if(e.selectionManager.selectedKeys.size===1&&u){if(e.collection.getItem(e.selectionManager.selectedKeys.keys().next().value)){let h=r(e.selectionManager.selectedKeys.keys().next().value);h&&f.push(l.format("selectedItem",{item:h}))}}else if(s.size===1&&c.size===0){let h=r(s.keys().next().value);h&&f.push(l.format("selectedItem",{item:h}))}else if(c.size===1&&s.size===0&&e.collection.getItem(c.keys().next().value)){let h=r(c.keys().next().value);h&&f.push(l.format("deselectedItem",{item:h}))}e.selectionManager.selectionMode==="multiple"&&(f.length===0||i==="all"||i.size>1||o.current==="all"||((a=o.current)===null||a===void 0?void 0:a.size)>1)&&f.push(i==="all"?l.format("selectedAll"):l.format("selectedCount",{count:i.size})),f.length>0&&wr(f.join(" ")),o.current=i},[i])}function Gi(t,e){let n=new Set;if(t==="all"||e==="all")return n;for(let r of t.keys())e.has(r)||n.add(r);return n}function Ic(t){let e=ze(di(yn)),n=sr(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,l=p.useMemo(()=>{let o=t.selectionManager.selectionMode,a=t.selectionManager.selectionBehavior,s;return r&&(s=e.format("longPressToSelect")),a==="replace"&&o!=="none"&&t.hasItemActions?s:void 0},[t.selectionManager.selectionMode,t.selectionManager.selectionBehavior,t.hasItemActions,e,r]);return pt(l)}function Mc(t,e,n){let{isVirtualized:r,keyboardDelegate:l,focusMode:i,scrollRef:o,getRowText:a,onRowAction:s,onCellAction:c}=t,{selectionManager:u}=e;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let f=Tt({usage:"search",sensitivity:"base"}),{direction:h}=ge(),m=e.selectionManager.disabledBehavior,g=p.useMemo(()=>l||new fi({collection:e.collection,disabledKeys:m==="selection"?new Set:e.disabledKeys,ref:n,direction:h,collator:f,focusMode:i}),[l,e.collection,e.disabledKeys,m,n,h,f,i]),{collectionProps:x}=yl({ref:n,selectionManager:u,keyboardDelegate:g,isVirtualized:r,scrollRef:o}),w=se(t.id);vn.set(e,{keyboardDelegate:g,actions:{onRowAction:s,onCellAction:c}});let S=Ic({selectionManager:u,hasItemActions:!!(s||c)}),y=Pe(t,{labelable:!0}),$=p.useCallback(_=>{if(u.isFocused){_.currentTarget.contains(_.target)||u.setFocused(!1);return}_.currentTarget.contains(_.target)&&u.setFocused(!0)},[u]),M=p.useMemo(()=>({onBlur:x.onBlur,onFocus:$}),[$,x.onBlur]),C=Ma(n,{isDisabled:e.collection.size!==0}),L=B(y,{role:"grid",id:w,"aria-multiselectable":u.selectionMode==="multiple"?"true":void 0},e.isKeyboardNavigationDisabled?M:x,e.collection.size===0&&{tabIndex:C?-1:0},S);return r&&(L["aria-rowcount"]=e.collection.size,L["aria-colcount"]=e.collection.columnCount),Cc({getRowText:a},e),{gridProps:L}}function Ac(){return{rowGroupProps:{role:"rowgroup"}}}function Dc(t,e,n){let{node:r,isVirtualized:l,shouldSelectOnPressUp:i,onAction:o}=t,{actions:{onRowAction:a}}=vn.get(e),{itemProps:s,...c}=hn({selectionManager:e.selectionManager,key:r.key,ref:n,isVirtualized:l,shouldSelectOnPressUp:i,onAction:a?()=>a(r.key):o,isDisabled:e.collection.size===0}),u=e.selectionManager.isSelected(r.key),f={role:"row","aria-selected":e.selectionManager.selectionMode!=="none"?u:void 0,"aria-disabled":c.isDisabled||void 0,...s};return l&&(f["aria-rowindex"]=r.index+1),{rowProps:f,...c}}function Yi(t,e,n){let{node:r,isVirtualized:l,focusMode:i="child",shouldSelectOnPressUp:o,onAction:a}=t,{direction:s}=ge(),{keyboardDelegate:c,actions:{onCellAction:u}}=vn.get(e),f=p.useRef(null),h=()=>{let $=ne(n.current);if(i==="child"){if(n.current.contains(document.activeElement)&&n.current!==document.activeElement)return;let M=e.selectionManager.childFocusStrategy==="last"?$n($):$.firstChild();if(M){te(M);return}}(f.current!=null&&r.key!==f.current||!n.current.contains(document.activeElement))&&te(n.current)},{itemProps:m,isPressed:g}=hn({selectionManager:e.selectionManager,key:r.key,ref:n,isVirtualized:l,focus:h,shouldSelectOnPressUp:o,onAction:u?()=>u(r.key):a,isDisabled:e.collection.size===0}),S=B(m,{role:"gridcell",onKeyDownCapture:$=>{if(!$.currentTarget.contains($.target)||e.isKeyboardNavigationDisabled)return;let M=ne(n.current);switch(M.currentNode=document.activeElement,$.key){case"ArrowLeft":{let C=s==="rtl"?M.nextNode():M.previousNode();if(i==="child"&&C===n.current&&(C=null),C)$.preventDefault(),$.stopPropagation(),te(C),xe(C,{containingElement:ce(n.current)});else{if(c.getKeyLeftOf(r.key)!==r.key)break;$.preventDefault(),$.stopPropagation(),i==="cell"&&s==="rtl"?(te(n.current),xe(n.current,{containingElement:ce(n.current)})):(M.currentNode=n.current,C=s==="rtl"?M.firstChild():$n(M),C&&(te(C),xe(C,{containingElement:ce(n.current)})))}break}case"ArrowRight":{let C=s==="rtl"?M.previousNode():M.nextNode();if(i==="child"&&C===n.current&&(C=null),C)$.preventDefault(),$.stopPropagation(),te(C),xe(C,{containingElement:ce(n.current)});else{if(c.getKeyRightOf(r.key)!==r.key)break;$.preventDefault(),$.stopPropagation(),i==="cell"&&s==="ltr"?(te(n.current),xe(n.current,{containingElement:ce(n.current)})):(M.currentNode=n.current,C=s==="rtl"?$n(M):M.firstChild(),C&&(te(C),xe(C,{containingElement:ce(n.current)})))}break}case"ArrowUp":case"ArrowDown":!$.altKey&&n.current.contains($.target)&&($.stopPropagation(),$.preventDefault(),n.current.parentElement.dispatchEvent(new KeyboardEvent($.nativeEvent.type,$.nativeEvent)));break}},onFocus:$=>{if(f.current=r.key,$.target!==n.current){Xe()||e.selectionManager.setFocusedKey(r.key);return}requestAnimationFrame(()=>{i==="child"&&document.activeElement===n.current&&h()})}});var y;return l&&(S["aria-colindex"]=((y=r.colIndex)!==null&&y!==void 0?y:r.index)+1),o&&S.tabIndex!=null&&S.onPointerDown==null&&(S.onPointerDown=$=>{let M=$.currentTarget,C=M.getAttribute("tabindex");M.removeAttribute("tabindex"),requestAnimationFrame(()=>{M.setAttribute("tabindex",C)})}),{gridCellProps:S,isPressed:g}}function $n(t){let e,n;do n=t.lastChild(),n&&(e=n);while(n);return e}const qi=new WeakMap,Xi=new WeakMap,Zi=new WeakMap;function Nc(t,e,n){let{value:r,children:l,"aria-label":i,"aria-labelledby":o}=t;const a=t.isDisabled||e.isDisabled;let s=l!=null,c=i!=null||o!=null;!s&&!c&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let u=e.selectedValue===r,f=y=>{y.stopPropagation(),e.setSelectedValue(r)},{pressProps:h,isPressed:m}=De({isDisabled:a}),{focusableProps:g}=kt(B(t,{onFocus:()=>e.setLastFocusedValue(r)}),n),x=B(h,g),w=Pe(t,{labelable:!0}),S=-1;return e.selectedValue!=null?e.selectedValue===r&&(S=0):(e.lastFocusedValue===r||e.lastFocusedValue==null)&&(S=0),a&&(S=void 0),Ht(n,e.selectedValue,e.setSelectedValue),{inputProps:B(w,{...x,type:"radio",name:qi.get(e),tabIndex:S,disabled:a,checked:u,value:r,onChange:f,"aria-describedby":[t["aria-describedby"],e.isInvalid?Zi.get(e):null,Xi.get(e)].filter(Boolean).join(" ")||void 0}),isDisabled:a,isSelected:u,isPressed:m}}function Rc(t,e){let{name:n,isReadOnly:r,isRequired:l,isDisabled:i,orientation:o="vertical"}=t,{direction:a}=ge(),{labelProps:s,fieldProps:c,descriptionProps:u,errorMessageProps:f}=Er({...t,labelElementType:"span"});Xi.set(e,u.id),Zi.set(e,f.id);let h=Pe(t,{labelable:!0}),{focusWithinProps:m}=Ze({onBlurWithin(){e.selectedValue||e.setLastFocusedValue(null)}}),g=w=>{let S;switch(w.key){case"ArrowRight":a==="rtl"&&o!=="vertical"?S="prev":S="next";break;case"ArrowLeft":a==="rtl"&&o!=="vertical"?S="next":S="prev";break;case"ArrowDown":S="next";break;case"ArrowUp":S="prev";break;default:return}w.preventDefault();let y=ne(w.currentTarget,{from:w.target}),$;S==="next"?($=y.nextNode(),$||(y.currentNode=w.currentTarget,$=y.firstChild())):($=y.previousNode(),$||(y.currentNode=w.currentTarget,$=y.lastChild())),$&&($.focus(),e.setSelectedValue($.value))},x=se(n);return qi.set(e,x),{radioGroupProps:B(h,{role:"radiogroup",onKeyDown:g,"aria-invalid":e.isInvalid||void 0,"aria-errormessage":t["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":l||void 0,"aria-disabled":i||void 0,"aria-orientation":o,...c,...m}),labelProps:s,descriptionProps:u,errorMessageProps:f}}function zc(t,e,n){let{keyboardDelegate:r,isDisabled:l}=t,i=Tt({usage:"search",sensitivity:"base"}),o=p.useMemo(()=>r||new Pl(e.collection,e.disabledKeys,null,i),[r,e.collection,e.disabledKeys,i]),{menuTriggerProps:a,menuProps:s}=Kc({isDisabled:l,type:"listbox"},e,n),c=y=>{switch(y.key){case"ArrowLeft":{y.preventDefault();let $=e.selectedKey!=null?o.getKeyAbove(e.selectedKey):o.getFirstKey();$&&e.setSelectedKey($);break}case"ArrowRight":{y.preventDefault();let $=e.selectedKey!=null?o.getKeyBelow(e.selectedKey):o.getFirstKey();$&&e.setSelectedKey($);break}}},{typeSelectProps:u}=vl({keyboardDelegate:o,selectionManager:e.selectionManager,onTypeSelect(y){e.setSelectedKey(y)}}),{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=Er({...t,labelElementType:"span"});u.onKeyDown=u.onKeyDownCapture,delete u.onKeyDownCapture;let x=Pe(t,{labelable:!0}),w=B(u,a,h),S=se();return{labelProps:{...f,onClick:()=>{t.isDisabled||(n.current.focus(),ca("keyboard"))}},triggerProps:B(x,{...w,isDisabled:l,onKeyDown:Ye(w.onKeyDown,c,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[S,w["aria-labelledby"],w["aria-label"]&&!w["aria-labelledby"]?w.id:null].filter(Boolean).join(" "),onFocus(y){e.isFocused||(t.onFocus&&t.onFocus(y),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(y){e.isOpen||(t.onBlur&&t.onBlur(y),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:S},menuProps:{...s,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:y=>{y.currentTarget.contains(y.relatedTarget)||(t.onBlur&&t.onBlur(y),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[h["aria-labelledby"],w["aria-label"]&&!h["aria-labelledby"]?w.id:null].filter(Boolean).join(" ")},descriptionProps:m,errorMessageProps:g}}function Fc(t,e,n){let{autoComplete:r,name:l,isDisabled:i}=t,o=sr(),{visuallyHiddenProps:a}=kr();Ht(t.selectRef,e.selectedKey,e.setSelectedKey);var s;return{containerProps:{...a,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{type:"text",tabIndex:o==null||e.isFocused||e.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:i},selectProps:{tabIndex:-1,autoComplete:r,disabled:i,name:l,size:e.collection.size,value:(s=e.selectedKey)!==null&&s!==void 0?s:"",onChange:c=>e.setSelectedKey(c.target.value)}}}function Lc(t){let{state:e,triggerRef:n,label:r,name:l,isDisabled:i}=t,o=p.useRef(null),{containerProps:a,inputProps:s,selectProps:c}=Fc({...t,selectRef:o},e,n);var u;return e.collection.size<=300?p.createElement("div",{...a,"data-testid":"hidden-select-container"},p.createElement("input",s),p.createElement("label",null,r,p.createElement("select",{...c,ref:o},p.createElement("option",null),[...e.collection.getKeys()].map(f=>{let h=e.collection.getItem(f);if(h.type==="item")return p.createElement("option",{key:h.key,value:h.key},h.textValue)})))):l?p.createElement("input",{type:"hidden",autoComplete:c.autoComplete,name:l,disabled:i,value:(u=e.selectedKey)!==null&&u!==void 0?u:""}):null}function Oc(t,e,n){let{inputProps:r,isSelected:l,isPressed:i,isDisabled:o,isReadOnly:a}=Va(t,e,n);return{inputProps:{...r,role:"switch",checked:l},isSelected:l,isPressed:i,isDisabled:o,isReadOnly:a}}let jc=!1;function It(){return jc}function Qi(t){return t&&t.__esModule?t.default:t}const wn=new WeakMap;function Pn(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function _c(t,e){let n=wn.get(t);if(!n)throw new Error("Unknown grid");return`${n}-${Pn(e)}`}function Ji(t,e,n){let r=wn.get(t);if(!r)throw new Error("Unknown grid");return`${r}-${Pn(e)}-${Pn(n)}`}function Bc(t,e){return[...t.collection.rowHeaderColumnKeys].map(n=>Ji(t,e,n)).join(" ")}var En={},eo={};eo={ascending:"تصاعدي",ascendingSort:t=>`ترتيب حسب العمود ${t.columnName} بترتيب تصاعدي`,columnSize:t=>`${t.value} بالبكسل`,descending:"تنازلي",descendingSort:t=>`ترتيب حسب العمود ${t.columnName} بترتيب تنازلي`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var to={};to={ascending:"възходящ",ascendingSort:t=>`сортирано по колона ${t.columnName} във възходящ ред`,columnSize:t=>`${t.value} пиксела`,descending:"низходящ",descendingSort:t=>`сортирано по колона ${t.columnName} в низходящ ред`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var no={};no={ascending:"vzestupně",ascendingSort:t=>`řazeno vzestupně podle sloupce ${t.columnName}`,columnSize:t=>`${t.value} pixelů`,descending:"sestupně",descendingSort:t=>`řazeno sestupně podle sloupce ${t.columnName}`,resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var ro={};ro={ascending:"stigende",ascendingSort:t=>`sorteret efter kolonne ${t.columnName} i stigende rækkefølge`,columnSize:t=>`${t.value} pixels`,descending:"faldende",descendingSort:t=>`sorteret efter kolonne ${t.columnName} i faldende rækkefølge`,resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var lo={};lo={ascending:"aufsteigend",ascendingSort:t=>`sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,columnSize:t=>`${t.value} Pixel`,descending:"absteigend",descendingSort:t=>`sortiert nach Spalte ${t.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var io={};io={ascending:"αύξουσα",ascendingSort:t=>`διαλογή ανά στήλη ${t.columnName} σε αύξουσα σειρά`,columnSize:t=>`${t.value} pixel`,descending:"φθίνουσα",descendingSort:t=>`διαλογή ανά στήλη ${t.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var oo={};oo={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:t=>`sorted by column ${t.columnName} in ascending order`,descendingSort:t=>`sorted by column ${t.columnName} in descending order`,columnSize:t=>`${t.value} pixels`,resizerDescription:"Press Enter to start resizing"};var so={};so={ascending:"de subida",ascendingSort:t=>`ordenado por columna ${t.columnName} en orden de subida`,columnSize:t=>`${t.value} píxeles`,descending:"de bajada",descendingSort:t=>`ordenado por columna ${t.columnName} en orden de bajada`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var ao={};ao={ascending:"tõusev järjestus",ascendingSort:t=>`sorditud veeru järgi ${t.columnName} tõusvas järjestuses`,columnSize:t=>`${t.value} pikslit`,descending:"laskuv järjestus",descendingSort:t=>`sorditud veeru järgi ${t.columnName} laskuvas järjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var co={};co={ascending:"nouseva",ascendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan nousevassa järjestyksessä`,columnSize:t=>`${t.value} pikseliä`,descending:"laskeva",descendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan laskevassa järjestyksessä`,resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var uo={};uo={ascending:"croissant",ascendingSort:t=>`trié en fonction de la colonne ${t.columnName} par ordre croissant`,columnSize:t=>`${t.value} pixels`,descending:"décroissant",descendingSort:t=>`trié en fonction de la colonne ${t.columnName} par ordre décroissant`,resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var fo={};fo={ascending:"עולה",ascendingSort:t=>`מוין לפי עמודה ${t.columnName} בסדר עולה`,columnSize:t=>`${t.value} פיקסלים`,descending:"יורד",descendingSort:t=>`מוין לפי עמודה ${t.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var po={};po={ascending:"rastući",ascendingSort:t=>`razvrstano po stupcima ${t.columnName} rastućem redoslijedom`,columnSize:t=>`${t.value} piksela`,descending:"padajući",descendingSort:t=>`razvrstano po stupcima ${t.columnName} padajućim redoslijedom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var ho={};ho={ascending:"növekvő",ascendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, növekvő sorrendben`,columnSize:t=>`${t.value} képpont`,descending:"csökkenő",descendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, csökkenő 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"};var mo={};mo={ascending:"crescente",ascendingSort:t=>`in ordine crescente in base alla colonna ${t.columnName}`,columnSize:t=>`${t.value} pixel`,descending:"decrescente",descendingSort:t=>`in ordine decrescente in base alla colonna ${t.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var bo={};bo={ascending:"昇順",ascendingSort:t=>`列 ${t.columnName} を昇順で並べ替え`,columnSize:t=>`${t.value} ピクセル`,descending:"降順",descendingSort:t=>`列 ${t.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var go={};go={ascending:"오름차순",ascendingSort:t=>`${t.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:t=>`${t.value} 픽셀`,descending:"내림차순",descendingSort:t=>`${t.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var vo={};vo={ascending:"didėjančia tvarka",ascendingSort:t=>`surikiuota pagal stulpelį ${t.columnName} didėjančia tvarka`,columnSize:t=>`${t.value} piks.`,descending:"mažėjančia tvarka",descendingSort:t=>`surikiuota pagal stulpelį ${t.columnName} mažėjančia tvarka`,resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var yo={};yo={ascending:"augošā secībā",ascendingSort:t=>`kārtots pēc kolonnas ${t.columnName} augošā secībā`,columnSize:t=>`${t.value} pikseļi`,descending:"dilstošā secībā",descendingSort:t=>`kārtots pēc kolonnas ${t.columnName} dilstošā secībā`,resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var $o={};$o={ascending:"stigende",ascendingSort:t=>`sortert etter kolonne ${t.columnName} i stigende rekkefølge`,columnSize:t=>`${t.value} piksler`,descending:"synkende",descendingSort:t=>`sortert etter kolonne ${t.columnName} i synkende rekkefølge`,resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var wo={};wo={ascending:"oplopend",ascendingSort:t=>`gesorteerd in oplopende volgorde in kolom ${t.columnName}`,columnSize:t=>`${t.value} pixels`,descending:"aflopend",descendingSort:t=>`gesorteerd in aflopende volgorde in kolom ${t.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var Po={};Po={ascending:"rosnąco",ascendingSort:t=>`posortowano według kolumny ${t.columnName} w porządku rosnącym`,columnSize:t=>`Liczba pikseli: ${t.value}`,descending:"malejąco",descendingSort:t=>`posortowano według kolumny ${t.columnName} w porządku malejącym`,resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var Eo={};Eo={ascending:"crescente",ascendingSort:t=>`classificado pela coluna ${t.columnName} em ordem crescente`,columnSize:t=>`${t.value} pixels`,descending:"decrescente",descendingSort:t=>`classificado pela coluna ${t.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var xo={};xo={ascending:"ascendente",ascendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem ascendente`,columnSize:t=>`${t.value} pixels`,descending:"descendente",descendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var ko={};ko={ascending:"crescătoare",ascendingSort:t=>`sortate după coloana ${t.columnName} în ordine crescătoare`,columnSize:t=>`${t.value} pixeli`,descending:"descrescătoare",descendingSort:t=>`sortate după coloana ${t.columnName} în ordine descrescătoare`,resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var To={};To={ascending:"возрастание",ascendingSort:t=>`сортировать столбец ${t.columnName} в порядке возрастания`,columnSize:t=>`${t.value} пикс.`,descending:"убывание",descendingSort:t=>`сортировать столбец ${t.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var So={};So={ascending:"vzostupne",ascendingSort:t=>`zoradené zostupne podľa stĺpca ${t.columnName}`,columnSize:t=>`Počet pixelov: ${t.value}`,descending:"zostupne",descendingSort:t=>`zoradené zostupne podľa stĺpca ${t.columnName}`,resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var Ko={};Ko={ascending:"naraščajoče",ascendingSort:t=>`razvrščeno po stolpcu ${t.columnName} v naraščajočem vrstnem redu`,columnSize:t=>`${t.value} slikovnih pik`,descending:"padajoče",descendingSort:t=>`razvrščeno po stolpcu ${t.columnName} v padajočem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var Co={};Co={ascending:"rastući",ascendingSort:t=>`sortirano po kolonama ${t.columnName} padajućim redosledom`,columnSize:t=>`${t.value} piksela`,descending:"padajući",descendingSort:t=>`sortirano po kolonama ${t.columnName} padajućim redosledom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var Io={};Io={ascending:"stigande",ascendingSort:t=>`sorterat på kolumn ${t.columnName} i stigande ordning`,columnSize:t=>`${t.value} pixlar`,descending:"fallande",descendingSort:t=>`sorterat på kolumn ${t.columnName} i fallande ordning`,resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var Mo={};Mo={ascending:"artan sırada",ascendingSort:t=>`${t.columnName} sütuna göre artan düzende sırala`,columnSize:t=>`${t.value} piksel`,descending:"azalan sırada",descendingSort:t=>`${t.columnName} sütuna göre azalan düzende sırala`,resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var Ao={};Ao={ascending:"висхідний",ascendingSort:t=>`відсортовано за стовпцем ${t.columnName} у висхідному порядку`,columnSize:t=>`${t.value} пікс.`,descending:"низхідний",descendingSort:t=>`відсортовано за стовпцем ${t.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var Do={};Do={ascending:"升序",ascendingSort:t=>`按列 ${t.columnName} 升序排序`,columnSize:t=>`${t.value} 像素`,descending:"降序",descendingSort:t=>`按列 ${t.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var No={};No={ascending:"遞增",ascendingSort:t=>`已依據「${t.columnName}」欄遞增排序`,columnSize:t=>`${t.value} 像素`,descending:"遞減",descendingSort:t=>`已依據「${t.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"},En={"ar-AE":eo,"bg-BG":to,"cs-CZ":no,"da-DK":ro,"de-DE":lo,"el-GR":io,"en-US":oo,"es-ES":so,"et-EE":ao,"fi-FI":co,"fr-FR":uo,"he-IL":fo,"hr-HR":po,"hu-HU":ho,"it-IT":mo,"ja-JP":bo,"ko-KR":go,"lt-LT":vo,"lv-LV":yo,"nb-NO":$o,"nl-NL":wo,"pl-PL":Po,"pt-BR":Eo,"pt-PT":xo,"ro-RO":ko,"ru-RU":To,"sk-SK":So,"sl-SI":Ko,"sr-SP":Co,"sv-SE":Io,"tr-TR":Mo,"uk-UA":Ao,"zh-CN":Do,"zh-TW":No};class Vc extends fi{isCell(e){return e.type==="cell"||e.type==="rowheader"||e.type==="column"}getKeyBelow(e){let n=this.collection.getItem(e);if(n){if(n.type==="column"){let r=ye(X(n,this.collection));if(r)return r.key;let l=this.getFirstKey();if(l==null)return;let i=this.collection.getItem(l);return ke(X(i,this.collection),n.index).key}return super.getKeyBelow(e)}}getKeyAbove(e){let n=this.collection.getItem(e);if(!n)return;if(n.type==="column"){let l=this.collection.getItem(n.parentKey);return l&&l.type==="column"?l.key:void 0}let r=super.getKeyAbove(e);return r!=null&&this.collection.getItem(r).type!=="headerrow"?r:this.isCell(n)?this.collection.columns[n.index].key:this.collection.columns[0].key}findNextColumnKey(e){let n=this.findNextKey(e.key,l=>l.type==="column");if(n!=null)return n;let r=this.collection.headerRows[e.level];for(let l of X(r,this.collection))if(l.type==="column")return l.key}findPreviousColumnKey(e){let n=this.findPreviousKey(e.key,i=>i.type==="column");if(n!=null)return n;let r=this.collection.headerRows[e.level],l=[...X(r,this.collection)];for(let i=l.length-1;i>=0;i--){let o=l[i];if(o.type==="column")return o.key}}getKeyRightOf(e){let n=this.collection.getItem(e);if(n)return n.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(n):this.findNextColumnKey(n):super.getKeyRightOf(e)}getKeyLeftOf(e){let n=this.collection.getItem(e);if(n)return n.type==="column"?this.direction==="rtl"?this.findNextColumnKey(n):this.findPreviousColumnKey(n):super.getKeyLeftOf(e)}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,l=n??this.getFirstKey();if(l==null)return null;let i=r.getItem(l);i.type==="cell"&&(l=i.parentKey);let o=!1;for(;l!=null;){let a=r.getItem(l);for(let s of X(a,this.collection)){let c=r.columns[s.index];if(r.rowHeaderColumnKeys.has(c.key)&&s.textValue){let u=s.textValue.slice(0,e.length);if(this.collator.compare(u,e)===0)return(n!=null?r.getItem(n):i).type==="cell"?s.key:a.key}}l=this.getKeyBelow(l),l==null&&!o&&(l=this.getFirstKey(),o=!0)}return null}}function Hc(t,e,n){let{keyboardDelegate:r,isVirtualized:l,layout:i}=t,o=Tt({usage:"search",sensitivity:"base"}),{direction:a}=ge(),s=e.selectionManager.disabledBehavior,c=p.useMemo(()=>r||new Vc({collection:e.collection,disabledKeys:s==="selection"?new Set:e.disabledKeys,ref:n,direction:a,collator:o,layout:i}),[r,e.collection,e.disabledKeys,s,n,a,o,i]),u=se(t.id);wn.set(e,u);let{gridProps:f}=Mc({...t,id:u,keyboardDelegate:c},e,n);l&&(f["aria-rowcount"]=e.collection.size+e.collection.headerRows.length),It()&&"expandedKeys"in e&&(f.role="treegrid");let{column:h,direction:m}=e.sortDescriptor||{},g=ze(Qi(En)),x=p.useMemo(()=>{var S;let y=(S=e.collection.columns.find($=>$.key===h))===null||S===void 0?void 0:S.textValue;return m&&h?g.format(`${m}Sort`,{columnName:y}):void 0},[m,h,e.collection.columns]),w=pt(x);return Un(()=>{wr(x,"assertive",500)},[x]),{gridProps:B(f,w,{"aria-describedby":[w["aria-describedby"],f["aria-describedby"]].filter(Boolean).join(" ")})}}function Wc(t,e,n){var r,l;let{node:i}=t,o=i.props.allowsSorting,{gridCellProps:a}=Yi({...t,focusMode:"child"},e,n),s=i.props.isSelectionCell&&e.selectionManager.selectionMode==="single",{pressProps:c}=De({isDisabled:!o||s,onPress(){e.sort(i.key)},ref:n}),{focusableProps:u}=kt({},n),f=null,h=((r=e.sortDescriptor)===null||r===void 0?void 0:r.column)===i.key,m=(l=e.sortDescriptor)===null||l===void 0?void 0:l.direction;i.props.allowsSorting&&!dt()&&(f=h?m:"none");let g=ze(Qi(En)),x;o&&(x=`${g.format("sortable")}`,h&&m&&dt()&&(x=`${x}, ${g.format(m)}`));let w=pt(x),S=e.collection.size===0;return p.useEffect(()=>{S&&e.selectionManager.focusedKey===i.key&&e.selectionManager.setFocusedKey(null)},[S,e.selectionManager,i.key]),{columnHeaderProps:{...B(a,c,u,w,S&&{tabIndex:-1}),role:"columnheader",id:_c(e,i.key),"aria-colspan":i.colspan&&i.colspan>1?i.colspan:null,"aria-sort":f}}}const Ro={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Uc(t,e,n){let{node:r,isVirtualized:l}=t,{rowProps:i,...o}=Dc(t,e,n),{direction:a}=ge();l&&!(It()&&"expandedKeys"in e)?i["aria-rowindex"]=r.index+1+e.collection.headerRows.length:delete i["aria-rowindex"];let s={};if(It()&&"expandedKeys"in e){let m=e.keyMap.get(r.key);if(m!=null){var c,u,f;let g=((c=m.props)===null||c===void 0?void 0:c.UNSTABLE_childItems)||((u=m.props)===null||u===void 0||(f=u.children)===null||f===void 0?void 0:f.length)>e.userColumnCount;s={onKeyDown:x=>{(x.key===Ro.expand[a]&&e.selectionManager.focusedKey===m.key&&g&&e.expandedKeys!=="all"&&!e.expandedKeys.has(m.key)||x.key===Ro.collapse[a]&&e.selectionManager.focusedKey===m.key&&g&&(e.expandedKeys==="all"||e.expandedKeys.has(m.key)))&&(e.toggleKey(m.key),x.stopPropagation())},"aria-expanded":g?e.expandedKeys==="all"||e.expandedKeys.has(r.key):void 0,"aria-level":m.level,"aria-posinset":m.indexOfType+1,"aria-setsize":m.level>1?Te(e.keyMap.get(m==null?void 0:m.parentKey).childNodes).indexOfType+1:Te(e.keyMap.get(e.collection.body.key).childNodes).indexOfType+1}}}let h=o.hasAction?js(r.props):{};return{rowProps:{...B(i,s,h),"aria-labelledby":Bc(e,r.key)},...o}}function Gc(t,e,n){let{node:r,isVirtualized:l}=t,i={role:"row"};return l&&!(It()&&"expandedKeys"in e)&&(i["aria-rowindex"]=r.index+1),{rowProps:i}}function Yc(t,e,n){let{gridCellProps:r,isPressed:l}=Yi(t,e,n),i=t.node.column.key;return e.collection.rowHeaderColumnKeys.has(i)&&(r.role="rowheader",r.id=Ji(e,t.node.parentKey,i)),{gridCellProps:r,isPressed:l}}function qc(){return Ac()}const Xc="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICA8ZGVmcz4KICAgIDxzeW1ib2wgaWQ9ImV4dGVybmFsLWxpbmsiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KICAgICAgPHBhdGggZD0iTTM4NCAyMjR2MTg0YTQwIDQwIDAgMDEtNDAgNDBIMTA0YTQwIDQwIDAgMDEtNDAtNDBWMTY4YTQwIDQwIDAgMDE0MC00MGgxNjcuNDhNMzM2IDY0aDExMnYxMTJNMjI0IDI4OEw0NDAgNzIiIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMzIiLz4KICAgIDwvc3ltYm9sPgoKICAgIDxzeW1ib2wgaWQ9ImNhcmV0LWRvd24iIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KICAgICAgPHBhdGggZmlsbD0iY3VycmVudENvbG9yIiBkPSJtOTggMTkwLjA2bDEzOS43OCAxNjMuMTJhMjQgMjQgMCAwIDAgMzYuNDQgMEw0MTQgMTkwLjA2YzEzLjM0LTE1LjU3IDIuMjgtMzkuNjItMTguMjItMzkuNjJoLTI3OS42Yy0yMC41IDAtMzEuNTYgMjQuMDUtMTguMTggMzkuNjIiLz4KICAgIDwvc3ltYm9sPgoKICAgIDxzeW1ib2wgaWQ9ImNoZXZyb24tZG93biIgdmlld0JveD0iMCAwIDUxMiA1MTIiPgogICAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjQ4IiBkPSJtMTEyIDE4NGwxNDQgMTQ0bDE0NC0xNDQiLz4KICAgIDwvc3ltYm9sPgogIDwvZGVmcz4KPC9zdmc+";function Mt(t){let e={height:t.size||void 0,width:t.size||void 0,color:t.color||void 0};return A.jsx("svg",{style:e,...t,children:A.jsx("use",{href:`${Xc}#${t.id}`})})}const Zc=t=>typeof t=="string"||t instanceof String;function ee(...t){return t.filter(Zc).join(" ")}zo.defaultProps={variant:"primary"};function zo(t){let e=t.href?"a":"button",n={...t,"data-testid":void 0,elementType:e},r=e!=="a"?{}:{target:"_blank"},l=t.buttonRef||p.useRef(null),{buttonProps:i}=yr(n,l),{children:o}=t;return A.jsxs(e,{...i,...r,className:ee("proton-Button",`proton-Button--${t.variant}`,t.isDisabled&&"proton-Button--disabled"),ref:l,"data-testid":t["data-testid"],children:[o,t.href&&A.jsx(Mt,{id:"external-link",size:"0.9em"})]})}class ae extends Set{constructor(e,n,r){super(e),e instanceof ae?(this.anchorKey=n||e.anchorKey,this.currentKey=r||e.currentKey):(this.anchorKey=n,this.currentKey=r)}}function Qc(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Fo(t){let{selectionMode:e="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:l="toggle",disabledBehavior:i="all"}=t,o=p.useRef(!1),[,a]=p.useState(!1),s=p.useRef(null),c=p.useRef(null),[,u]=p.useState(null),f=p.useMemo(()=>Lo(t.selectedKeys),[t.selectedKeys]),h=p.useMemo(()=>Lo(t.defaultSelectedKeys,new ae),[t.defaultSelectedKeys]),[m,g]=Ge(f,h,t.onSelectionChange),x=p.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[w,S]=p.useState(l);l==="replace"&&w==="toggle"&&typeof m=="object"&&m.size===0&&S("replace");let y=p.useRef(l);return p.useEffect(()=>{l!==y.current&&(S(l),y.current=l)},[l]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:S,get isFocused(){return o.current},setFocused($){o.current=$,a($)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey($,M="first"){s.current=$,c.current=M,u($)},selectedKeys:m,setSelectedKeys($){(r||!Qc($,m))&&g($)},disabledKeys:x,disabledBehavior:i}}function Lo(t,e){return t?t==="all"?"all":new ae(t):e}class Oo{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return this.state.selectionMode==="none"?!1:(e=this.getKey(e),this.state.selectedKeys==="all"?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!e||r&&bn(this.collection,r,e)<0)&&(e=r)}return e==null?void 0:e.key}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!e||r&&bn(this.collection,r,e)>0)&&(e=r)}return e==null?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}e=this.getKey(e);let n;if(this.state.selectedKeys==="all")n=new ae([e],e,e);else{let r=this.state.selectedKeys,l=r.anchorKey||e;n=new ae(r,l,e);for(let i of this.getKeyRange(l,r.currentKey||e))n.delete(i);for(let i of this.getKeyRange(e,l))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(e,n){let r=this.collection.getItem(e),l=this.collection.getItem(n);return r&&l?bn(this.collection,r,l)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){let r=[],l=e;for(;l;){let i=this.collection.getItem(l);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(l),l===n)return r;l=this.collection.getKeyAfter(l)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}if(e=this.getKey(e),e==null)return;let n=new ae(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(e)?n.delete(e):this.canSelectItem(e)&&(n.add(e),n.anchorKey=e,n.currentKey=e),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode==="none"||(e=this.getKey(e),e==null))return;let n=this.canSelectItem(e)?new ae([e],e,e):new ae;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new ae;for(let r of e)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let l=this.collection.getItem(r);l.type==="item"&&e.push(r),l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n(ye(X(l,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ae)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){return this.state.disabledKeys.has(e)&&this.state.disabledBehavior==="all"}isLink(e){var n,r;return!!(!((n=this.collection.getItem(e))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}constructor(e,n,r){this.collection=e,this.state=n;var l;this.allowsCellSelection=(l=r==null?void 0:r.allowsCellSelection)!==null&&l!==void 0?l:!1,this._isSelectAll=null}}class jo{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.iterable=e;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let o of i.childNodes)n(o)};for(let i of e)n(i);let r,l=0;for(let[i,o]of this.keyMap)r?(r.nextKey=i,o.prevKey=r.key):(this.firstKey=i,o.prevKey=void 0),o.type==="item"&&(o.index=l++),r=o,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function Jc(t){let{filter:e}=t,n=Fo(t),r=p.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=p.useCallback(c=>e?new jo(e(c)):new jo(c),[e]),i=p.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),o=Tl(t,l,i),a=p.useMemo(()=>new Oo(o,n),[o,n]);const s=p.useRef(null);return p.useEffect(()=>{if(n.focusedKey!=null&&!o.getItem(n.focusedKey)){const c=s.current.getItem(n.focusedKey),u=[...s.current.getKeys()].map(x=>{const w=s.current.getItem(x);return w.type==="item"?w:null}).filter(x=>x!==null),f=[...o.getKeys()].map(x=>{const w=o.getItem(x);return w.type==="item"?w:null}).filter(x=>x!==null),h=u.length-f.length;let m=Math.min(h>1?Math.max(c.index-h+1,0):c.index,f.length-1),g;for(;m>=0;){if(!a.isDisabled(f[m].key)){g=f[m];break}m<f.length-1?m++:(m>c.index&&(m=c.index),m--)}n.setFocusedKey(g?g.key:null)}s.current=o},[o,a,n,n.focusedKey]),{collection:o,disabledKeys:r,selectionManager:a}}function eu(t){var e;let[n,r]=Ge(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),l=p.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:o,selectionManager:a}=Jc({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:l,onSelectionChange:c=>{var u;let f=(u=c.values().next().value)!==null&&u!==void 0?u:null;f===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),s=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:o,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:s}}function tu(t){let[e,n]=Ge(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=p.useCallback(()=>{n(!0)},[n]),l=p.useCallback(()=>{n(!1)},[n]),i=p.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:l,toggle:i}}function nu(t){let e=tu(t),[n,r]=p.useState(null);return{focusStrategy:n,...e,open(l=null){r(l),e.open()},toggle(l=null){r(l),e.toggle()}}}let ru=Math.round(Math.random()*1e10),lu=0;function iu(t){let e=p.useMemo(()=>t.name||`radio-group-${ru}-${++lu}`,[t.name]),[n,r]=Ge(t.value,t.defaultValue,t.onChange),[l,i]=p.useState(null);return{name:e,selectedValue:n,setSelectedValue:a=>{!t.isReadOnly&&!t.isDisabled&&r(a)},lastFocusedValue:l,setLastFocusedValue:i,isDisabled:t.isDisabled||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,validationState:t.validationState||null,isInvalid:t.isInvalid||t.validationState==="invalid"}}function ou(t){let e=nu(t),n=eu({...t,onSelectionChange:i=>{t.onSelectionChange!=null&&t.onSelectionChange(i),e.close()}}),[r,l]=p.useState(!1);return{...n,...e,open(){n.collection.size!==0&&e.open()},toggle(i){n.collection.size!==0&&e.toggle(i)},isFocused:r,setFocused:l}}function su(t){let{collection:e,focusMode:n}=t,r=Fo(t),l=p.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),i=r.setFocusedKey;r.setFocusedKey=(s,c)=>{if(n==="cell"&&s!=null){let h=e.getItem(s);if((h==null?void 0:h.type)==="item"){var u,f;let m=X(h,e);c==="last"?s=(u=Te(m))===null||u===void 0?void 0:u.key:s=(f=ye(m))===null||f===void 0?void 0:f.key}}i(s,c)};let o=p.useMemo(()=>new Oo(e,r),[e,r]);const a=p.useRef(null);return p.useEffect(()=>{if(r.focusedKey!=null&&!e.getItem(r.focusedKey)){const s=a.current.getItem(r.focusedKey),c=s.parentKey!=null&&(s.type==="cell"||s.type==="rowheader"||s.type==="column")?a.current.getItem(s.parentKey):s,u=a.current.rows,f=e.rows,h=u.length-f.length;let m=Math.min(h>1?Math.max(c.index-h+1,0):c.index,f.length-1),g;for(;m>=0;){if(!o.isDisabled(f[m].key)&&f[m].type!=="headerrow"){g=f[m];break}m<f.length-1?m++:(m>c.index&&(m=c.index),m--)}if(g){const x=g.hasChildNodes?[...X(g,e)]:[],w=g.hasChildNodes&&c!==s&&s.index<x.length?x[s.index].key:g.key;r.setFocusedKey(w)}else r.setFocusedKey(null)}a.current=e},[e,o,r,r.focusedKey]),{collection:e,disabledKeys:l,isKeyboardNavigationDisabled:!1,selectionManager:o}}class au{*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey:null}getFirstKey(){var e;return(e=[...this.rows][0])===null||e===void 0?void 0:e.key}getLastKey(){var e;let n=[...this.rows];return(e=n[n.length-1])===null||e===void 0?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=e==null?void 0:e.columnCount,this.rows=[];let n=i=>{let o=this.keyMap.get(i.key);e.visitNode&&(i=e.visitNode(i)),this.keyMap.set(i.key,i);let a=new Set,s;for(let c of i.childNodes)c.type==="cell"&&c.parentKey==null&&(c.parentKey=i.key),a.add(c.key),s?(s.nextKey=c.key,c.prevKey=s.key):c.prevKey=null,n(c),s=c;if(s&&(s.nextKey=null),o)for(let c of o.childNodes)a.has(c.key)||r(c)},r=i=>{this.keyMap.delete(i.key);for(let o of i.childNodes)this.keyMap.get(o.key)===o&&r(o)},l;e.items.forEach((i,o)=>{let a={level:0,key:"row-"+o,type:"row",value:void 0,hasChildNodes:!0,childNodes:[...i.childNodes],rendered:void 0,textValue:void 0,...i};l?(l.nextKey=a.key,a.prevKey=l.key):a.prevKey=null,this.rows.push(a),n(a),l=a}),l&&(l.nextKey=null)}}const _o="row-header-column-"+Math.random().toString(36).slice(2);let xn="row-header-column-"+Math.random().toString(36).slice(2);for(;_o===xn;)xn="row-header-column-"+Math.random().toString(36).slice(2);function cu(t,e){if(e.length===0)return[];let n=[],r=new Map;for(let s of e){let c=s.parentKey,u=[s];for(;c;){let f=t.get(c);if(!f)break;if(r.has(f)){f.colspan++;let{column:h,index:m}=r.get(f);if(m>u.length)break;for(let g=m;g<u.length;g++)h.splice(g,0,null);for(let g=u.length;g<h.length;g++)h[g]&&r.has(h[g])&&(r.get(h[g]).index=g)}else f.colspan=1,u.push(f),r.set(f,{column:u,index:u.length-1});c=f.parentKey}n.push(u),s.index=n.length-1}let l=Math.max(...n.map(s=>s.length)),i=Array(l).fill(0).map(()=>[]),o=0;for(let s of n){let c=l-1;for(let u of s){if(u){let f=i[c],h=f.reduce((m,g)=>m+g.colspan,0);if(h<o){let m={type:"placeholder",key:"placeholder-"+u.key,colspan:o-h,index:h,value:null,rendered:null,level:c,hasChildNodes:!1,childNodes:[],textValue:null};f.length>0&&(f[f.length-1].nextKey=m.key,m.prevKey=f[f.length-1].key),f.push(m)}f.length>0&&(f[f.length-1].nextKey=u.key,u.prevKey=f[f.length-1].key),u.level=c,u.colIndex=o,f.push(u)}c--}o++}let a=0;for(let s of i){let c=s.reduce((u,f)=>u+f.colspan,0);if(c<e.length){let u={type:"placeholder",key:"placeholder-"+s[s.length-1].key,colspan:e.length-c,index:c,value:null,rendered:null,level:a,hasChildNodes:!1,childNodes:[],textValue:null,prevKey:s[s.length-1].key};s.push(u)}a++}return i.map((s,c)=>({type:"headerrow",key:"headerrow-"+c,index:c,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:s,textValue:null}))}class uu extends au{*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey:null}getFirstKey(){var e;return(e=ye(this.body.childNodes))===null||e===void 0?void 0:e.key}getLastKey(){var e;return(e=Te(this.body.childNodes))===null||e===void 0?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getTextValue(e){let n=this.getItem(e);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys;if(r){let l=[];for(let i of n.childNodes){let o=this.columns[i.index];if(r.has(o.key)&&i.textValue&&l.push(i.textValue),l.length===r.size)break}return l.join(" ")}return""}constructor(e,n,r){let l=new Set,i,o=[];if(r!=null&&r.showSelectionCheckboxes){let f={type:"column",key:_o,value:null,textValue:"",level:0,index:r!=null&&r.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};o.unshift(f)}if(r!=null&&r.showDragButtons){let f={type:"column",key:xn,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};o.unshift(f)}let a=[],s=new Map,c=f=>{switch(f.type){case"body":i=f;break;case"column":s.set(f.key,f),f.hasChildNodes||(o.push(f),f.props.isRowHeader&&l.add(f.key));break;case"item":a.push(f);return}for(let h of f.childNodes)c(h)};for(let f of e)c(f);let u=cu(s,o);u.forEach((f,h)=>a.splice(h,0,f)),super({columnCount:o.length,items:a,visitNode:f=>(f.column=o[f.index],f)}),this._size=0,this.columns=o,this.rowHeaderColumnKeys=l,this.body=i,this.headerRows=u,this._size=[...i.childNodes].length,this.rowHeaderColumnKeys.size===0&&(r!=null&&r.showSelectionCheckboxes?r!=null&&r.showDragButtons?this.rowHeaderColumnKeys.add(this.columns[2].key):this.rowHeaderColumnKeys.add(this.columns[1].key):this.rowHeaderColumnKeys.add(this.columns[0].key))}}const du={ascending:"descending",descending:"ascending"};function fu(t){let[e,n]=p.useState(!1),{selectionMode:r="none",showSelectionCheckboxes:l,showDragButtons:i}=t,o=p.useMemo(()=>({showSelectionCheckboxes:l&&r!=="none",showDragButtons:i,selectionMode:r,columns:[]}),[t.children,l,r,i]),a=Tl(t,p.useCallback(u=>new uu(u,null,o),[o]),o),{disabledKeys:s,selectionManager:c}=su({...t,collection:a,disabledBehavior:t.disabledBehavior||"selection"});return{collection:a,disabledKeys:s,selectionManager:c,showSelectionCheckboxes:t.showSelectionCheckboxes||!1,sortDescriptor:t.sortDescriptor,isKeyboardNavigationDisabled:a.size===0||e,setKeyboardNavigationDisabled:n,sort(u,f){var h;t.onSortChange({column:u,direction:f??(((h=t.sortDescriptor)===null||h===void 0?void 0:h.column)===u?du[t.sortDescriptor.direction]:"ascending")})}}}function Bo(t){return null}Bo.getCollectionNode=function*(e,n){let{children:r,columns:l}=e;if(n.columns=[],typeof r=="function"){if(!l)throw new Error("props.children was a function but props.columns is missing");for(let i of l)yield{type:"column",value:i,renderer:r}}else{let i=[];p.Children.forEach(r,o=>{i.push({type:"column",element:o})}),yield*i}};let pu=Bo;function Vo(t){return null}Vo.getCollectionNode=function*(e){let{children:n,items:r}=e;yield{type:"body",hasChildNodes:!0,props:e,*childNodes(){if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let l of r)yield{type:"item",value:l,renderer:n}}else{let l=[];p.Children.forEach(n,i=>{l.push({type:"item",element:i})}),yield*l}}}};let hu=Vo;function Ho(t){return null}Ho.getCollectionNode=function*(e,n){let{title:r,children:l,childColumns:i}=e,o=r||l,a=e.textValue||(typeof o=="string"?o:"")||e["aria-label"],s=yield{type:"column",hasChildNodes:!!i||r&&p.Children.count(l)>0,rendered:o,textValue:a,props:e,*childNodes(){if(i)for(let u of i)yield{type:"column",value:u};else if(r){let u=[];p.Children.forEach(l,f=>{u.push({type:"column",element:f})}),yield*u}},shouldInvalidate(u){return c(u),!1}},c=u=>{for(let f of s)f.hasChildNodes||u.columns.push(f)};c(n)};let mu=Ho;function kn(t){return null}kn.getCollectionNode=function*(e,n){let{children:r,textValue:l,UNSTABLE_childItems:i}=e;yield{type:"item",props:e,textValue:l,"aria-label":e["aria-label"],hasChildNodes:!0,*childNodes(){if(n.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),n.showSelectionCheckboxes&&n.selectionMode!=="none"&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),typeof r=="function"){for(let o of n.columns)yield{type:"cell",element:r(o.key),key:o.key};if(i)for(let o of i)yield{type:"item",value:o}}else{let o=[],a=[];if(p.Children.forEach(r,s=>{if(s.type===kn){if(o.length<n.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");a.push({type:"item",element:s})}else o.push({type:"cell",element:s})}),o.length!==n.columns.length)throw new Error(`Cell count must match column count. Found ${o.length} cells and ${n.columns.length} columns.`);yield*o,yield*a}},shouldInvalidate(o){return o.columns.length!==n.columns.length||o.columns.some((a,s)=>a.key!==n.columns[s].key)||o.showSelectionCheckboxes!==n.showSelectionCheckboxes||o.showDragButtons!==n.showDragButtons||o.selectionMode!==n.selectionMode}}};let bu=kn;function Wo(t){return null}Wo.getCollectionNode=function*(e){let{children:n}=e,r=e.textValue||(typeof n=="string"?n:"")||e["aria-label"]||"";yield{type:"cell",props:e,rendered:n,textValue:r,"aria-label":e["aria-label"],hasChildNodes:!1}};let gu=Wo,Uo=p.createContext(null);function Go(t){let e={...t,"data-testid":void 0},n=iu(e),{radioGroupProps:r}=Rc(e,n);return A.jsx("div",{...r,className:"proton-ButtonGroup","data-value":n.selectedValue,"data-testid":t["data-testid"]||void 0,children:A.jsx(Uo.Provider,{value:n,children:t.children})})}Go.Option=function(e){let n={...e,"data-testid":void 0},r=p.useContext(Uo),l=p.useRef(null),{inputProps:i,isSelected:o}=Nc(n,r,l);return A.jsxs("label",{className:ee("proton-ButtonGroup__option",o&&"proton-ButtonGroup__option--selected"),"data-selected":o||void 0,"data-testid":e["data-testid"]||void 0,children:[A.jsx(an,{children:A.jsx("input",{...i,ref:l})}),e.children]})};function Yo({children:t,state:e,...n}){const r=p.useRef(null),{popoverRef:l=r}=n;let{popoverProps:i,underlayProps:o}=dc({...n,popoverRef:l},e);return A.jsxs(pc,{children:[A.jsx("div",{...o,style:{position:"fixed",inset:0}}),A.jsxs("div",{...i,ref:l,className:ee("proton-Popover"),style:{...i.style},children:[A.jsx(gl,{onDismiss:e.close}),t,A.jsx(gl,{onDismiss:e.close})]})]})}function vu(t){let e=p.useRef(null),{listBoxRef:n=e,state:r}=t,{listBoxProps:l}=kc(t,r,n);return A.jsx("ul",{...l,ref:n,className:"proton-ListBox",children:[...r.collection].map(i=>A.jsx(yu,{item:i,state:r},i.key))})}function yu({item:t,state:e}){let n=p.useRef(null),{optionProps:r,isSelected:l,isFocused:i,isDisabled:o}=Tc({key:t.key},e,n);return A.jsx("li",{...r,className:ee("proton-ListBox__item",i&&"proton-ListBox__item--focused",l&&"proton-ListBox__item--selected",o&&"proton-ListBox__item--disabled"),ref:n,children:t.rendered})}function $u(t){let e=t.buttonRef,{buttonProps:n}=yr(t,e);return A.jsx("button",{...n,ref:e,className:ee("proton-Select__trigger",n.disabled&&"proton-Select__trigger--disabled",t.isOpen&&"proton-Select__trigger--opened"),children:t.children})}function wu(t){const e=ou(t),n=p.useRef(null),r=p.useRef(null),{labelProps:l,triggerProps:i,valueProps:o,menuProps:a}=zc({...t,label:t.label||t.name},e,n);return p.useEffect(()=>{e.isOpen&&r.current&&n.current&&!r.current.style.minWidth&&(r.current.style.minWidth=`${n.current.offsetWidth}px`)}),A.jsxs("div",{className:ee("proton-Select",t.isDisabled&&"proton-Select--disabled"),children:[t.label?A.jsx("div",{...l,className:"proton-Select__label",children:t.label}):A.jsx("div",{...l}),A.jsx(Lc,{isDisabled:t.isDisabled,state:e,triggerRef:n,label:t.label,name:t.name}),A.jsxs($u,{...i,isOpen:e.isOpen,buttonRef:n,children:[A.jsx("div",{...o,children:e.selectedItem?e.selectedItem.rendered:"Select an option"}),A.jsxs("div",{className:"proton-Select__trigger_icon","aria-hidden":"true",children:[A.jsx(Mt,{id:"caret-down",size:"1em"}),A.jsx(Mt,{id:"chevron-down",size:"1em"})]})]}),e.isOpen&&A.jsx(Yo,{state:e,triggerRef:n,popoverRef:r,placement:"bottom start",children:A.jsx(vu,{...a,state:e})})]})}const Pu={Menu:wu,Option:vc};qo.defaultProps={defaultOn:!1,isDisabled:!1};function qo(t){let e={...t,isSelected:t.isOn,"data-testid":void 0},n=p.useRef(null),r=Ha(e),{inputProps:l}=Oc(e,r,n);return A.jsxs("label",{className:ee("proton-Switch",t.isDisabled&&"proton-Switch--disabled",r.isSelected&&"proton-Switch--on"),"data-on":r.isSelected||void 0,"data-disabled":t.isDisabled||void 0,"data-testid":t["data-testid"]||void 0,"aria-label":t.label||void 0,children:[A.jsx(an,{children:A.jsx("input",{...l,ref:n})}),t.label&&A.jsx("div",{className:"proton-Switch__label",children:t.label}),A.jsxs("div",{className:"proton-Switch__wrapper",children:[A.jsx("div",{className:"proton-Switch__toggle",children:A.jsx("div",{className:"proton-Switch__slider"})}),t.children&&A.jsx("div",{className:"proton-Switch__description",children:t.children})]})]})}function Eu({item:t,state:e,children:n}){let r=p.useRef(),{rowProps:l}=Gc({node:t},e);return A.jsx("tr",{className:ee("proton-Table__headerRow"),...l,ref:r,children:n})}function xu({column:t,state:e}){var s,c;let n=p.useRef(),{columnHeaderProps:r}=Wc({node:t},e,n);const{align:l="left"}=t.props;let{isFocusVisible:i,focusProps:o}=rn(),a=((s=e.sortDescriptor)==null?void 0:s.direction)==="ascending"?"▲":"▼";return A.jsxs("th",{...B(r,o),colSpan:t.colspan,className:ee("proton-Table__header",`proton-Table__header--${l}`,i?"proton-Table__header--focused":null),ref:n,children:[t.rendered,t.props.allowsSorting&&A.jsx("span",{"aria-hidden":"true",className:ee("proton-Table__headerSortIcon"),style:{visibility:((c=e.sortDescriptor)==null?void 0:c.column)===t.key?"visible":"hidden"},children:a})]})}function Xo({type:t,children:e}){let{rowGroupProps:n}=qc();return A.jsx(t,{...n,className:ee("proton-Table__rowGroup",t==="thead"?"proton-Table__rowGroup--header":"proton-Table__rowGroup--body"),children:e})}function ku({item:t,children:e,state:n}){let r=p.useRef(),l=n.selectionManager.isSelected(t.key),{rowProps:i,isPressed:o}=Uc({node:t},n,r),{isFocusVisible:a,focusProps:s}=rn();return A.jsx("tr",{className:ee("proton-Table__row",l?"proton-Table__row--selected":null,o?"proton-Table__row--pressed":null,a?"proton-Table__row--focused":null),...B(i,s),ref:r,children:e})}function Tu({cell:t,state:e,...n}){let r=p.useRef(),{gridCellProps:l}=Yc({node:t},e,r),{isFocusVisible:i,focusProps:o}=rn();const{align:a}=t.props;return A.jsx("td",{...B(l,o),className:ee("proton-Table__cell",i?"proton-Table__cell--focused":null,`proton-Table__cell--${a}`),ref:r,children:t.rendered})}const Su=mu,Ku=gu;function Cu(t){let e=fu({...t}),n=p.useRef(),{collection:r}=e,{gridProps:l}=Hc(t,e,n);return A.jsxs("table",{...l,ref:n,className:ee("proton-Table"),children:[A.jsx(Xo,{type:"thead",children:r.headerRows.map(i=>A.jsx(Eu,{item:i,state:e,children:Array.from(r.getChildren(i.key)).map(o=>A.jsx(xu,{column:o,state:e},o.key))},i.key))}),A.jsx(Xo,{type:"tbody",children:Array.from(r.body.childNodes).map(i=>A.jsx(ku,{item:i,state:e,children:Array.from(r.getChildren(i.key)).map(o=>A.jsx(Tu,{cell:o,state:e},o.key))},i.key))})]})}const Iu={ReleaseLinks:"rl-theme",ProtonRadio:"client-theme"},rd="";G.Button=zo,G.ButtonGroup=Go,G.Cell=Ku,G.Column=Su,G.Icon=Mt,G.Popover=Yo,G.Row=bu,G.Section=yc,G.Select=Pu,G.Switch=qo,G.THEME_CONFIG=Iu,G.Table=Cu,G.TableBody=hu,G.TableHeader=pu,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
|
|
27
|
+
Check the top-level render call using <`+K+">.")}return P}}function cs(d,P){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var K=Qu(P);if(as[K])return;as[K]=!0;var N="";d&&d._owner&&d._owner!==Mn.current&&(N=" It was passed a child from "+v(d._owner.type)+"."),Ve(d),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',K,N),Ve(null)}}function us(d,P){{if(typeof d!="object")return;if(Cn(d))for(var K=0;K<d.length;K++){var N=d[K];Dn(N)&&cs(N,P)}else if(Dn(d))d._store&&(d._store.validated=!0);else if(d){var V=w(d);if(typeof V=="function"&&V!==d.entries)for(var H=V.call(d),j;!(j=H.next()).done;)Dn(j.value)&&cs(j.value,P)}}}function Ju(d){{var P=d.type;if(P==null||typeof P=="string")return;var K;if(typeof P=="function")K=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===s||P.$$typeof===p))K=P.propTypes;else return;if(K){var N=v(P);Ou(K,d.props,"prop",N,d)}else if(P.PropTypes!==void 0&&!An){An=!0;var V=v(P);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ed(d){{for(var P=Object.keys(d.props),K=0;K<P.length;K++){var N=P[K];if(N!=="children"&&N!=="key"){Ve(d),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),Ve(null);break}}d.ref!==null&&(Ve(d),y("Invalid attribute `ref` supplied to `React.Fragment`."),Ve(null))}}function ds(d,P,K,N,V,H){{var j=T(d);if(!j){var F="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(F+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ee=Zu(V);ee?F+=ee:F+=ss();var q;d===null?q="null":Cn(d)?q="array":d!==void 0&&d.$$typeof===e?(q="<"+(v(d.type)||"Unknown")+" />",F=" Did you accidentally export a JSX literal instead of a component?"):q=typeof d,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",q,F)}var Z=Xu(d,P,K,V,H);if(Z==null)return Z;if(j){var oe=P.children;if(oe!==void 0)if(N)if(Cn(oe)){for(var He=0;He<oe.length;He++)us(oe[He],d);Object.freeze&&Object.freeze(oe)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else us(oe,d)}return d===l?ed(Z):Ju(Z),Z}}function td(d,P,K){return ds(d,P,K,!0)}function nd(d,P,K){return ds(d,P,K,!1)}var ld=nd,rd=td;Ue.Fragment=l,Ue.jsx=ld,Ue.jsxs=rd}()),Ue}process.env.NODE_ENV==="production"?Ft.exports=ps():Ft.exports=hs();var A=Ft.exports;function Ge(t,e,n){let[l,r]=f.useState(t||e),i=f.useRef(t!==void 0),o=t!==void 0;f.useEffect(()=>{let c=i.current;c!==o&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),i.current=o},[o]);let a=o?t:l,s=f.useCallback((c,...u)=>{let p=(h,...m)=>{n&&(Object.is(a,h)||n(h,...m)),o||(a=h)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),r((m,...g)=>{let x=c(o?a:m,...g);return p(x,...u),o?m:x})):(o||r(c),p(c,...u))},[o,a,n]);return[a,s]}function Lt(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const it={prefix:String(Math.round(Math.random()*1e10)),current:0},Fn=f.createContext(it),ms=f.createContext(!1);let bs=!!(typeof window<"u"&&window.document&&window.document.createElement),Ot=new WeakMap;function gs(t=!1){let e=f.useContext(Fn),n=f.useRef(null);if(n.current===null&&!t){var l,r;let i=(l=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||l===void 0||(r=l.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let o=Ot.get(i);o==null?Ot.set(i,{id:e.current,state:i.memoizedState}):i.memoizedState!==o.state&&(e.current=o.id,Ot.delete(i))}n.current=++e.current}return n.current}function vs(t){let e=f.useContext(Fn);e===it&&!bs&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=gs(!!t),l=e===it&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${l}-${n}`}function ys(t){let e=f.useId(),[n]=f.useState(ot()),l=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${it.prefix}`;return t||`${l}-${e}`}const $s=typeof f.useId=="function"?ys:vs;function ws(){return!1}function Ps(){return!0}function Es(t){return()=>{}}function ot(){return typeof f.useSyncExternalStore=="function"?f.useSyncExternalStore(Es,ws,Ps):f.useContext(ms)}function Ln(t){var e,n,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=Ln(t[e]))&&(l&&(l+=" "),l+=n);else for(e in t)t[e]&&(l&&(l+=" "),l+=e);return l}function xs(){for(var t,e,n=0,l="";n<arguments.length;)(t=arguments[n++])&&(e=Ln(t))&&(l&&(l+=" "),l+=e);return l}const U=typeof document<"u"?f.useLayoutEffect:()=>{};function le(t){const e=f.useRef(null);return U(()=>{e.current=t},[t]),f.useCallback((...n)=>{const l=e.current;return l(...n)},[])}function ks(t){let[e,n]=f.useState(t),l=f.useRef(null),r=le(()=>{let o=l.current.next();if(o.done){l.current=null;return}e===o.value?r():n(o.value)});U(()=>{l.current&&r()});let i=le(o=>{l.current=o(e),r()});return[e,i]}let st=new Map;function se(t){let[e,n]=f.useState(t),l=f.useRef(null),r=$s(e),i=f.useCallback(o=>{l.current=o},[]);return st.set(r,i),U(()=>{let o=r;return()=>{st.delete(o)}},[r]),f.useEffect(()=>{let o=l.current;o&&(l.current=null,n(o))}),r}function Ts(t,e){if(t===e)return t;let n=st.get(t);if(n)return n(e),e;let l=st.get(e);return l?(l(t),t):e}function Ye(t=[]){let e=se(),[n,l]=ks(e),r=f.useCallback(()=>{l(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,l]);return U(r,[e,r,...t]),n}function qe(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}function B(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let l=t[n];for(let r in l){let i=e[r],o=l[r];typeof i=="function"&&typeof o=="function"&&r[0]==="o"&&r[1]==="n"&&r.charCodeAt(2)>=65&&r.charCodeAt(2)<=90?e[r]=qe(i,o):(r==="className"||r==="UNSAFE_className")&&typeof i=="string"&&typeof o=="string"?e[r]=xs(i,o):r==="id"&&i&&o?e.id=Ts(i,o):e[r]=o!==void 0?o:i}}return e}const Ss=new Set(["id"]),Ks=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Cs=new Set(["href","target","rel","download","ping","referrerPolicy"]),Is=/^(data-.*)$/;function pe(t,e={}){let{labelable:n,isLink:l,propNames:r}=e,i={};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Ss.has(o)||n&&Ks.has(o)||l&&Cs.has(o)||r!=null&&r.has(o)||Is.test(o))&&(i[o]=t[o]);return i}function he(t){if(Ms())t.focus({preventScroll:!0});else{let e=As(t);t.focus(),Ds(e)}}let at=null;function Ms(){if(at==null){at=!1;try{var t=document.createElement("div");t.focus({get preventScroll(){return at=!0,!0}})}catch{}}return at}function As(t){for(var e=t.parentNode,n=[],l=document.scrollingElement||document.documentElement;e instanceof HTMLElement&&e!==l;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return l instanceof HTMLElement&&n.push({element:l,scrollTop:l.scrollTop,scrollLeft:l.scrollLeft}),n}function Ds(t){for(let{element:e,scrollTop:n,scrollLeft:l}of t)e.scrollTop=n,e.scrollLeft=l}function ct(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function jt(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function Ee(){return jt(/^Mac/i)}function Ns(){return jt(/^iPhone/i)}function On(){return jt(/^iPad/i)||Ee()&&navigator.maxTouchPoints>1}function ut(){return Ns()||On()}function Rs(){return Ee()||ut()}function jn(){return ct(/AppleWebKit/i)&&!zs()}function zs(){return ct(/Chrome/i)}function dt(){return ct(/Android/i)}function Fs(){return ct(/Firefox/i)}const Ls=f.createContext({isNative:!0,open:js});function _n(){return f.useContext(Ls)}function Ke(t,e,n=!0){var l,r;let{metaKey:i,ctrlKey:o,altKey:a,shiftKey:s}=e;Fs()&&(!((l=window.event)===null||l===void 0||(r=l.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(Ee()?i=!0:o=!0);let c=jn()&&Ee()&&!On()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:o,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:o,altKey:a,shiftKey:s,bubbles:!0,cancelable:!0});Ke.isOpening=n,he(t),t.dispatchEvent(c),Ke.isOpening=!1}Ke.isOpening=!1;function Os(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function js(t,e){Os(t,n=>Ke(n,e))}function _s(t){return{"data-href":t.href,"data-target":t.target,"data-rel":t.rel,"data-download":t.download,"data-ping":t.ping,"data-referrer-policy":t.referrerPolicy}}let Me=new Map,_t=new Set;function Bn(){if(typeof window>"u")return;let t=n=>{let l=Me.get(n.target);l||(l=new Set,Me.set(n.target,l),n.target.addEventListener("transitioncancel",e)),l.add(n.propertyName)},e=n=>{let l=Me.get(n.target);if(l&&(l.delete(n.propertyName),l.size===0&&(n.target.removeEventListener("transitioncancel",e),Me.delete(n.target)),Me.size===0)){for(let r of _t)r();_t.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",e)}typeof document<"u"&&(document.readyState!=="loading"?Bn():document.addEventListener("DOMContentLoaded",Bn));function Vn(t){requestAnimationFrame(()=>{Me.size===0?t():_t.add(t)})}function Hn(){let t=f.useRef(new Map),e=f.useCallback((r,i,o,a)=>{let s=a!=null&&a.once?(...c)=>{t.current.delete(o),o(...c)}:o;t.current.set(o,{type:i,eventTarget:r,fn:s,options:a}),r.addEventListener(i,o,a)},[]),n=f.useCallback((r,i,o,a)=>{var s;let c=((s=t.current.get(o))===null||s===void 0?void 0:s.fn)||o;r.removeEventListener(i,c,a),t.current.delete(o)},[]),l=f.useCallback(()=>{t.current.forEach((r,i)=>{n(r.eventTarget,r.type,i,r.options)})},[n]);return f.useEffect(()=>l,[l]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:l}}function Wn(t,e){let{id:n,"aria-label":l,"aria-labelledby":r}=t;return n=se(n),r&&l?r=[...new Set([n,...r.trim().split(/\s+/)])].join(" "):r&&(r=r.trim().split(/\s+/).join(" ")),!l&&!r&&e&&(l=e),{id:n,"aria-label":l,"aria-labelledby":r}}function Un(t,e){const n=f.useRef(!0),l=f.useRef(null);f.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),f.useEffect(()=>{n.current?n.current=!1:(!l.current||e.some((r,i)=>!Object.is(r,l[i])))&&t(),l.current=e},e)}function Bs(){return typeof window.ResizeObserver<"u"}function Vs(t){const{ref:e,onResize:n}=t;f.useEffect(()=>{let l=e==null?void 0:e.current;if(l)if(Bs()){const r=new window.ResizeObserver(i=>{i.length&&n()});return r.observe(l),()=>{l&&r.unobserve(l)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,e])}function Gn(t,e){U(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref.current=null}})}function ce(t){for(ft(t)&&(t=t.parentElement);t&&!ft(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function ft(t){let e=window.getComputedStyle(t);return/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY)}let Hs=0;const Bt=new Map;function pt(t){let[e,n]=f.useState(void 0);return U(()=>{if(!t)return;let l=Bt.get(t);if(l)n(l.element.id);else{let r=`react-aria-description-${Hs++}`;n(r);let i=document.createElement("div");i.id=r,i.style.display="none",i.textContent=t,document.body.appendChild(i),l={refCount:0,element:i},Bt.set(t,l)}return l.refCount++,()=>{--l.refCount===0&&(l.element.remove(),Bt.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Ws(t,e,n,l){let r=le(n),i=n==null;f.useEffect(()=>{if(i)return;let o=t.current;return o.addEventListener(e,r,l),()=>{o.removeEventListener(e,r,l)}},[t,e,l,i,r])}function Yn(t,e){let n=qn(t,e,"left"),l=qn(t,e,"top"),r=e.offsetWidth,i=e.offsetHeight,o=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c}=getComputedStyle(t),u=t.scrollLeft+parseInt(c,10),p=t.scrollTop+parseInt(s,10),h=u+t.clientWidth,m=p+t.clientHeight;n<=o?o=n-parseInt(c,10):n+r>h&&(o+=n+r-h),l<=p?a=l-parseInt(s,10):l+i>m&&(a+=l+i-m),t.scrollLeft=o,t.scrollTop=a}function qn(t,e,n){const l=n==="left"?"offsetLeft":"offsetTop";let r=0;for(;e.offsetParent&&(r+=e[l],e.offsetParent!==t);){if(e.offsetParent.contains(t)){r-=t[l];break}e=e.offsetParent}return r}function xe(t,e){if(document.contains(t)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let s=ce(t);for(;t&&s&&t!==o&&s!==o;)Yn(s,t),t=s,s=ce(t)}else{var n;let{left:s,top:c}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:u,top:p}=t.getBoundingClientRect();if(Math.abs(s-u)>1||Math.abs(c-p)>1){var l,r,i;e==null||(l=e.containingElement)===null||l===void 0||(r=l.scrollIntoView)===null||r===void 0||r.call(l,{block:"center",inline:"center"}),(i=t.scrollIntoView)===null||i===void 0||i.call(t,{block:"nearest"})}}}}function Vt(t){return t.mozInputSource===0&&t.isTrusted?!0:dt()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Us(t){return!dt()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Ht(t,e,n){let l=f.useRef(e),r=le(()=>{n&&n(l.current)});f.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",r),()=>{o==null||o.removeEventListener("reset",r)}},[t,r])}function Gs(t,e){return e.get?e.get.call(t):e.value}function Xn(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Ys(t,e){var n=Xn(t,e,"get");return Gs(t,n)}function qs(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xs(t,e,n){qs(t,e),e.set(t,n)}function Zs(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function Zn(t,e,n){var l=Xn(t,e,"set");return Zs(t,l,n),n}let Ae="default",Wt="",ht=new WeakMap;function Qn(t){ut()?(Ae==="default"&&(Wt=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Ae="disabled"):(t instanceof HTMLElement||t instanceof SVGElement)&&(ht.set(t,t.style.userSelect),t.style.userSelect="none")}function mt(t){if(ut()){if(Ae!=="disabled")return;Ae="restoring",setTimeout(()=>{Vn(()=>{Ae==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=Wt||""),Wt="",Ae="default")})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&ht.has(t)){let e=ht.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),ht.delete(t)}}const Ut=f.createContext(null);Ut.displayName="PressResponderContext";function Qs(t){let e=f.useContext(Ut);if(e){let{register:n,...l}=e;t=B(l,t),n()}return Gn(e,t.ref),t}var bt=new WeakMap;class gt{continuePropagation(){Zn(this,bt,!1)}get shouldStopPropagation(){return Ys(this,bt)}constructor(e,n,l){Xs(this,bt,{writable:!0,value:void 0}),Zn(this,bt,!0),this.type=e,this.pointerType=n,this.target=l.currentTarget,this.shiftKey=l.shiftKey,this.metaKey=l.metaKey,this.ctrlKey=l.ctrlKey,this.altKey=l.altKey}}const Jn=Symbol("linkClicked");function De(t){let{onPress:e,onPressChange:n,onPressStart:l,onPressEnd:r,onPressUp:i,isDisabled:o,isPressed:a,preventFocusOnPress:s,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:p,...h}=Qs(t),[m,g]=f.useState(!1),x=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:w,removeAllGlobalListeners:S}=Hn(),y=le((b,D)=>{let T=x.current;if(o||T.didFirePressStart)return;let E=!0;if(T.isTriggeringEvent=!0,l){let z=new gt("pressstart",D,b);l(z),E=z.shouldStopPropagation}return n&&n(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,g(!0),E}),$=le((b,D,T=!0)=>{let E=x.current;if(!E.didFirePressStart)return;E.ignoreClickAfterPress=!0,E.didFirePressStart=!1,E.isTriggeringEvent=!0;let z=!0;if(r){let v=new gt("pressend",D,b);r(v),z=v.shouldStopPropagation}if(n&&n(!1),g(!1),e&&T&&!o){let v=new gt("press",D,b);e(v),z&&(z=v.shouldStopPropagation)}return E.isTriggeringEvent=!1,z}),M=le((b,D)=>{let T=x.current;if(!o){if(i){T.isTriggeringEvent=!0;let E=new gt("pressup",D,b);return i(E),T.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}}),C=le(b=>{let D=x.current;D.isPressed&&(D.isOverTarget&&$(me(D.target,b),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,S(),u||mt(D.target))}),L=le(b=>{c&&C(b)}),_=f.useMemo(()=>{let b=x.current,D={onKeyDown(E){if(Yt(E.nativeEvent,E.currentTarget)&&E.currentTarget.contains(E.target)){tl(E.target,E.key)&&E.preventDefault();let z=!0;!b.isPressed&&!E.repeat&&(b.target=E.currentTarget,b.isPressed=!0,z=y(E,"keyboard"),w(document,"keyup",T,!1)),z&&E.stopPropagation(),E.metaKey&&Ee()&&b.metaKeyEvents.set(E.key,E.nativeEvent)}else E.key==="Meta"&&(b.metaKeyEvents=new Map)},onKeyUp(E){Yt(E.nativeEvent,E.currentTarget)&&!E.repeat&&E.currentTarget.contains(E.target)&&M(me(b.target,E),"keyboard")},onClick(E){if(!(E&&!E.currentTarget.contains(E.target))&&E&&E.button===0&&!b.isTriggeringEvent&&!Ke.isOpening){let z=!0;if(o&&E.preventDefault(),!b.ignoreClickAfterPress&&!b.ignoreEmulatedMouseEvents&&!b.isPressed&&(b.pointerType==="virtual"||Vt(E.nativeEvent))){!o&&!s&&he(E.currentTarget);let v=y(E,"virtual"),k=M(E,"virtual"),O=$(E,"virtual");z=v&&k&&O}b.ignoreEmulatedMouseEvents=!1,b.ignoreClickAfterPress=!1,z&&E.stopPropagation()}}},T=E=>{var z;if(b.isPressed&&Yt(E,b.target)){var v;tl(E.target,E.key)&&E.preventDefault();let k=E.target,O=$(me(b.target,E),"keyboard",b.target.contains(k));S(),O&&E.stopPropagation(),E.key!=="Enter"&&Gt(b.target)&&b.target.contains(k)&&!E[Jn]&&(E[Jn]=!0,Ke(b.target,E,!1)),b.isPressed=!1,(v=b.metaKeyEvents)===null||v===void 0||v.delete(E.key)}else if(E.key==="Meta"&&(!((z=b.metaKeyEvents)===null||z===void 0)&&z.size)){let k=b.metaKeyEvents;b.metaKeyEvents=null;for(let O of k.values())b.target.dispatchEvent(new KeyboardEvent("keyup",O))}};if(typeof PointerEvent<"u"){D.onPointerDown=k=>{if(k.button!==0||!k.currentTarget.contains(k.target))return;if(Us(k.nativeEvent)){b.pointerType="virtual";return}qt(k.currentTarget)&&k.preventDefault(),b.pointerType=k.pointerType;let O=!0;b.isPressed||(b.isPressed=!0,b.isOverTarget=!0,b.activePointerId=k.pointerId,b.target=k.currentTarget,!o&&!s&&he(k.currentTarget),u||Qn(b.target),O=y(k,b.pointerType),w(document,"pointermove",E,!1),w(document,"pointerup",z,!1),w(document,"pointercancel",v,!1)),O&&k.stopPropagation()},D.onMouseDown=k=>{k.currentTarget.contains(k.target)&&k.button===0&&(qt(k.currentTarget)&&k.preventDefault(),k.stopPropagation())},D.onPointerUp=k=>{!k.currentTarget.contains(k.target)||b.pointerType==="virtual"||k.button===0&&Ne(k,k.currentTarget)&&M(k,b.pointerType||k.pointerType)};let E=k=>{k.pointerId===b.activePointerId&&(Ne(k,b.target)?b.isOverTarget||(b.isOverTarget=!0,y(me(b.target,k),b.pointerType)):b.isOverTarget&&(b.isOverTarget=!1,$(me(b.target,k),b.pointerType,!1),L(k)))},z=k=>{k.pointerId===b.activePointerId&&b.isPressed&&k.button===0&&(Ne(k,b.target)?$(me(b.target,k),b.pointerType):b.isOverTarget&&$(me(b.target,k),b.pointerType,!1),b.isPressed=!1,b.isOverTarget=!1,b.activePointerId=null,b.pointerType=null,S(),u||mt(b.target))},v=k=>{C(k)};D.onDragStart=k=>{k.currentTarget.contains(k.target)&&C(k)}}else{D.onMouseDown=v=>{if(v.button!==0||!v.currentTarget.contains(v.target))return;if(qt(v.currentTarget)&&v.preventDefault(),b.ignoreEmulatedMouseEvents){v.stopPropagation();return}b.isPressed=!0,b.isOverTarget=!0,b.target=v.currentTarget,b.pointerType=Vt(v.nativeEvent)?"virtual":"mouse",!o&&!s&&he(v.currentTarget),y(v,b.pointerType)&&v.stopPropagation(),w(document,"mouseup",E,!1)},D.onMouseEnter=v=>{if(!v.currentTarget.contains(v.target))return;let k=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&(b.isOverTarget=!0,k=y(v,b.pointerType)),k&&v.stopPropagation()},D.onMouseLeave=v=>{if(!v.currentTarget.contains(v.target))return;let k=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&(b.isOverTarget=!1,k=$(v,b.pointerType,!1),L(v)),k&&v.stopPropagation()},D.onMouseUp=v=>{v.currentTarget.contains(v.target)&&!b.ignoreEmulatedMouseEvents&&v.button===0&&M(v,b.pointerType||"mouse")};let E=v=>{if(v.button===0){if(b.isPressed=!1,S(),b.ignoreEmulatedMouseEvents){b.ignoreEmulatedMouseEvents=!1;return}Ne(v,b.target)?$(me(b.target,v),b.pointerType):b.isOverTarget&&$(me(b.target,v),b.pointerType,!1),b.isOverTarget=!1}};D.onTouchStart=v=>{if(!v.currentTarget.contains(v.target))return;let k=Js(v.nativeEvent);if(!k)return;b.activePointerId=k.identifier,b.ignoreEmulatedMouseEvents=!0,b.isOverTarget=!0,b.isPressed=!0,b.target=v.currentTarget,b.pointerType="touch",!o&&!s&&he(v.currentTarget),u||Qn(b.target),y(v,b.pointerType)&&v.stopPropagation(),w(window,"scroll",z,!0)},D.onTouchMove=v=>{if(!v.currentTarget.contains(v.target))return;if(!b.isPressed){v.stopPropagation();return}let k=el(v.nativeEvent,b.activePointerId),O=!0;k&&Ne(k,v.currentTarget)?b.isOverTarget||(b.isOverTarget=!0,O=y(v,b.pointerType)):b.isOverTarget&&(b.isOverTarget=!1,O=$(v,b.pointerType,!1),L(v)),O&&v.stopPropagation()},D.onTouchEnd=v=>{if(!v.currentTarget.contains(v.target))return;if(!b.isPressed){v.stopPropagation();return}let k=el(v.nativeEvent,b.activePointerId),O=!0;k&&Ne(k,v.currentTarget)?(M(v,b.pointerType),O=$(v,b.pointerType)):b.isOverTarget&&(O=$(v,b.pointerType,!1)),O&&v.stopPropagation(),b.isPressed=!1,b.activePointerId=null,b.isOverTarget=!1,b.ignoreEmulatedMouseEvents=!0,u||mt(b.target),S()},D.onTouchCancel=v=>{v.currentTarget.contains(v.target)&&(v.stopPropagation(),b.isPressed&&C(v))};let z=v=>{b.isPressed&&v.target.contains(b.target)&&C({currentTarget:b.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};D.onDragStart=v=>{v.currentTarget.contains(v.target)&&C(v)}}return D},[w,o,s,S,u,C,L,$,y,M]);return f.useEffect(()=>()=>{u||mt(x.current.target)},[u]),{isPressed:a||m,pressProps:B(h,_)}}function Gt(t){return t.tagName==="A"&&t.hasAttribute("href")}function Yt(t,e){const{key:n,code:l}=t,r=e,i=r.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||l==="Space")&&!(r instanceof HTMLInputElement&&!nl(r,n)||r instanceof HTMLTextAreaElement||r.isContentEditable)&&!((i==="link"||!i&&Gt(r))&&n!=="Enter")}function Js(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function el(t,e){const n=t.changedTouches;for(let l=0;l<n.length;l++){const r=n[l];if(r.identifier===e)return r}return null}function me(t,e){return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey}}function ea(t){let e=t.width/2||t.radiusX||0,n=t.height/2||t.radiusY||0;return{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function ta(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ne(t,e){let n=e.getBoundingClientRect(),l=ea(t);return ta(n,l)}function qt(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function tl(t,e){return t instanceof HTMLInputElement?!nl(t,e):t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Gt(t)}const na=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function nl(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":na.has(t.type)}function la({children:t}){return f.createElement(Ut.Provider,{value:void 0},t)}class ra{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function ll(t){let e=f.useRef({isFocused:!1,observer:null});U(()=>{const l=e.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]);let n=le(l=>{t==null||t(l)});return f.useCallback(l=>{if(l.target instanceof HTMLButtonElement||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement){e.current.isFocused=!0;let r=l.target,i=o=>{e.current.isFocused=!1,r.disabled&&n(new ra("blur",o)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&r.disabled){e.current.observer.disconnect();let o=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),e.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function rl(t){let{isDisabled:e,onFocus:n,onBlur:l,onFocusChange:r}=t;const i=f.useCallback(s=>{if(s.target===s.currentTarget)return l&&l(s),r&&r(!1),!0},[l,r]),o=ll(i),a=f.useCallback(s=>{s.target===s.currentTarget&&document.activeElement===s.target&&(n&&n(s),r&&r(!0),o(s))},[r,n,o]);return{focusProps:{onFocus:!e&&(n||r||l)?a:void 0,onBlur:!e&&(l||r)?i:void 0}}}let be=null,Xe=new Set,il=!1,Ce=!1,Xt=!1;const ia={Tab:!0,Escape:!0};function vt(t,e){for(let n of Xe)n(t,e)}function oa(t){return!(t.metaKey||!Ee()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function ol(t){Ce=!0,oa(t)&&(be="keyboard",vt("keyboard",t))}function Re(t){be="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Ce=!0,vt("pointer",t))}function sa(t){Vt(t)&&(Ce=!0,be="virtual")}function aa(t){t.target===window||t.target===document||(!Ce&&!Xt&&(be="virtual",vt("virtual",t)),Ce=!1,Xt=!1)}function ca(){Ce=!1,Xt=!0}function yt(){if(typeof window>"u"||il)return;let t=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Ce=!0,t.apply(this,arguments)},document.addEventListener("keydown",ol,!0),document.addEventListener("keyup",ol,!0),document.addEventListener("click",sa,!0),window.addEventListener("focus",aa,!0),window.addEventListener("blur",ca,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Re,!0),document.addEventListener("pointermove",Re,!0),document.addEventListener("pointerup",Re,!0)):(document.addEventListener("mousedown",Re,!0),document.addEventListener("mousemove",Re,!0),document.addEventListener("mouseup",Re,!0)),il=!0}typeof document<"u"&&(document.readyState!=="loading"?yt():document.addEventListener("DOMContentLoaded",yt));function Ze(){return be!=="pointer"}function Zt(){return be}function ua(t){be=t,vt(t,null)}function sl(){yt();let[t,e]=f.useState(be);return f.useEffect(()=>{let n=()=>{e(be)};return Xe.add(n),()=>{Xe.delete(n)}},[]),ot()?null:t}function da(t,e,n){return!(t&&e==="keyboard"&&n instanceof KeyboardEvent&&!ia[n.key])}function fa(t,e,n){yt(),f.useEffect(()=>{let l=(r,i)=>{da(n==null?void 0:n.isTextInput,r,i)&&t(Ze())};return Xe.add(l),()=>{Xe.delete(l)}},e)}function Qe(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:l,onFocusWithinChange:r}=t,i=f.useRef({isFocusWithin:!1}),o=f.useCallback(c=>{i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(c),r&&r(!1))},[n,r,i]),a=ll(o),s=f.useCallback(c=>{!i.current.isFocusWithin&&document.activeElement===c.target&&(l&&l(c),r&&r(!0),i.current.isFocusWithin=!0,a(c))},[l,r,a]);return e?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:s,onBlur:o}}}let $t=!1,Qt=0;function Jt(){$t=!0,setTimeout(()=>{$t=!1},50)}function al(t){t.pointerType==="touch"&&Jt()}function pa(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",al):document.addEventListener("touchend",Jt),Qt++,()=>{Qt--,!(Qt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",al):document.removeEventListener("touchend",Jt))}}function ha(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:l,isDisabled:r}=t,[i,o]=f.useState(!1),a=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(pa,[]);let{hoverProps:s,triggerHoverEnd:c}=f.useMemo(()=>{let u=(m,g)=>{if(a.pointerType=g,r||g==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let x=m.currentTarget;a.target=x,e&&e({type:"hoverstart",target:x,pointerType:g}),n&&n(!0),o(!0)},p=(m,g)=>{if(a.pointerType="",a.target=null,g==="touch"||!a.isHovered)return;a.isHovered=!1;let x=m.currentTarget;l&&l({type:"hoverend",target:x,pointerType:g}),n&&n(!1),o(!1)},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=m=>{$t&&m.pointerType==="mouse"||u(m,m.pointerType)},h.onPointerLeave=m=>{!r&&m.currentTarget.contains(m.target)&&p(m,m.pointerType)}):(h.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!$t&&u(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=m=>{!r&&m.currentTarget.contains(m.target)&&p(m,"mouse")}),{hoverProps:h,triggerHoverEnd:p}},[e,n,l,r,a]);return f.useEffect(()=>{r&&c({currentTarget:a.target},a.pointerType)},[r]),{hoverProps:s,isHovered:i}}function ma(t){let{ref:e,onInteractOutside:n,isDisabled:l,onInteractOutsideStart:r}=t,i=f.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=le(s=>{n&&wt(s,e)&&(r&&r(s),i.current.isPointerDown=!0)}),a=le(s=>{n&&n(s)});f.useEffect(()=>{let s=i.current;if(!l)if(typeof PointerEvent<"u"){let c=u=>{s.isPointerDown&&wt(u,e)&&a(u),s.isPointerDown=!1};return document.addEventListener("pointerdown",o,!0),document.addEventListener("pointerup",c,!0),()=>{document.removeEventListener("pointerdown",o,!0),document.removeEventListener("pointerup",c,!0)}}else{let c=p=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&wt(p,e)&&a(p),s.isPointerDown=!1},u=p=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&wt(p,e)&&a(p),s.isPointerDown=!1};return document.addEventListener("mousedown",o,!0),document.addEventListener("mouseup",c,!0),document.addEventListener("touchstart",o,!0),document.addEventListener("touchend",u,!0),()=>{document.removeEventListener("mousedown",o,!0),document.removeEventListener("mouseup",c,!0),document.removeEventListener("touchstart",o,!0),document.removeEventListener("touchend",u,!0)}}},[e,l,o,a])}function wt(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current&&!e.current.contains(t.target)}function cl(t){if(!t)return;let e=!0;return n=>{let l={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){e=!1}};t(l),e&&n.stopPropagation()}}function ba(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:cl(t.onKeyDown),onKeyUp:cl(t.onKeyUp)}}}const ga=500;function ul(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:l,onLongPress:r,threshold:i=ga,accessibilityDescription:o}=t;const a=f.useRef(null);let{addGlobalListener:s,removeGlobalListener:c}=Hn(),{pressProps:u}=De({isDisabled:e,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(n&&n({...h,type:"longpressstart"}),a.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),r&&r({...h,type:"longpress"}),a.current=null},i),h.pointerType==="touch")){let m=g=>{g.preventDefault()};s(h.target,"contextmenu",m,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{c(h.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(h){a.current&&clearTimeout(a.current),l&&(h.pointerType==="mouse"||h.pointerType==="touch")&&l({...h,type:"longpressend"})}}),p=pt(r&&!e?o:null);return{longPressProps:B(u,p)}}function J(t){if(Zt()==="virtual"){let e=document.activeElement;Vn(()=>{document.activeElement===e&&document.contains(t)&&he(t)})}else he(t)}function va(t){if(!(t instanceof HTMLElement)&&!(t instanceof SVGElement))return!1;let{display:e,visibility:n}=t.style,l=e!=="none"&&n!=="hidden"&&n!=="collapse";if(l){const{getComputedStyle:r}=t.ownerDocument.defaultView;let{display:i,visibility:o}=r(t);l=i!=="none"&&o!=="hidden"&&o!=="collapse"}return l}function ya(t,e){return!t.hasAttribute("hidden")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function dl(t,e){return t.nodeName!=="#comment"&&va(t)&&ya(t,e)&&(!t.parentElement||dl(t.parentElement,t))}const fl=f.createContext(null);let W=null;function $a(t){let{children:e,contain:n,restoreFocus:l,autoFocus:r}=t,i=f.useRef(),o=f.useRef(),a=f.useRef([]),{parentNode:s}=f.useContext(fl)||{},c=f.useMemo(()=>new nn({scopeRef:a}),[a]);U(()=>{let h=s||Y.root;if(Y.getTreeNode(h.scopeRef)&&W&&!Et(W,h.scopeRef)){let m=Y.getTreeNode(W);m&&(h=m)}h.addChild(c),Y.addNode(c)},[c,s]),U(()=>{let h=Y.getTreeNode(a);h.contain=n},[n]),U(()=>{let h=i.current.nextSibling,m=[];for(;h&&h!==o.current;)m.push(h),h=h.nextSibling;a.current=m},[e]),Sa(a,l,n),xa(a,n),Ca(a,l,n),Ta(a,r),f.useEffect(()=>{if(a){let h=document.activeElement,m=null;if(Q(h,a.current)){for(let g of Y.traverse())Q(h,g.scopeRef.current)&&(m=g);m===Y.getTreeNode(a)&&(W=m.scopeRef)}return()=>{let g=Y.getTreeNode(a).parent.scopeRef;(a===W||Et(a,W))&&(!g||Y.getTreeNode(g))&&(W=g),Y.removeTreeNode(a)}}},[a]);let u=f.useMemo(()=>wa(a),[]),p=f.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return f.createElement(fl.Provider,{value:p},f.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),e,f.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function wa(t){return{focusNext(e={}){let n=t.current,{from:l,tabbable:r,wrap:i,accept:o}=e,a=l||document.activeElement,s=n[0].previousElementSibling,c=ne(Ie(n),{tabbable:r,accept:o},n);c.currentNode=Q(a,n)?a:s;let u=c.nextNode();return!u&&i&&(c.currentNode=s,u=c.nextNode()),u&&ge(u,!0),u},focusPrevious(e={}){let n=t.current,{from:l,tabbable:r,wrap:i,accept:o}=e,a=l||document.activeElement,s=n[n.length-1].nextElementSibling,c=ne(Ie(n),{tabbable:r,accept:o},n);c.currentNode=Q(a,n)?a:s;let u=c.previousNode();return!u&&i&&(c.currentNode=s,u=c.previousNode()),u&&ge(u,!0),u},focusFirst(e={}){let n=t.current,{tabbable:l,accept:r}=e,i=ne(Ie(n),{tabbable:l,accept:r},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&ge(o,!0),o},focusLast(e={}){let n=t.current,{tabbable:l,accept:r}=e,i=ne(Ie(n),{tabbable:l,accept:r},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&ge(o,!0),o}}}const en=["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]"],Pa=en.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";en.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Ea=en.join(':not([hidden]):not([tabindex="-1"]),');function Ie(t){return t[0].parentElement}function Je(t){let e=Y.getTreeNode(W);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function xa(t,e){let n=f.useRef(),l=f.useRef(null);U(()=>{let r=t.current;if(!e){l.current&&(cancelAnimationFrame(l.current),l.current=null);return}let i=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!Je(t))return;let c=document.activeElement,u=t.current;if(!Q(c,u))return;let p=ne(Ie(u),{tabbable:!0},u);p.currentNode=c;let h=s.shiftKey?p.previousNode():p.nextNode();h||(p.currentNode=s.shiftKey?u[u.length-1].nextElementSibling:u[0].previousElementSibling,h=s.shiftKey?p.previousNode():p.nextNode()),s.preventDefault(),h&&ge(h,!0)},o=s=>{(!W||Et(W,t))&&Q(s.target,t.current)?(W=t,n.current=s.target):Je(t)&&!Pt(s.target,t)?n.current?n.current.focus():W&&xt(W.current):Je(t)&&(n.current=s.target)},a=s=>{l.current&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>{Je(t)&&!Pt(document.activeElement,t)&&(W=t,document.body.contains(s.target)?(n.current=s.target,n.current.focus()):W&&xt(W.current))})};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",o,!1),r.forEach(s=>s.addEventListener("focusin",o,!1)),r.forEach(s=>s.addEventListener("focusout",a,!1)),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",o,!1),r.forEach(s=>s.removeEventListener("focusin",o,!1)),r.forEach(s=>s.removeEventListener("focusout",a,!1))}},[t,e]),U(()=>()=>{l.current&&cancelAnimationFrame(l.current)},[l])}function pl(t){return Pt(t)}function Q(t,e){return e.some(n=>n.contains(t))}function Pt(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Y.traverse(Y.getTreeNode(e)))if(Q(t,n.current))return!0;return!1}function ka(t){return Pt(t,W)}function Et(t,e){var n;let l=(n=Y.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;l;){if(l.scopeRef===t)return!0;l=l.parent}return!1}function ge(t,e=!1){if(t!=null&&!e)try{J(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function xt(t,e=!0){let n=t[0].previousElementSibling,l=ne(Ie(t),{tabbable:e},t);l.currentNode=n;let r=l.nextNode();e&&!r&&(l=ne(Ie(t),{tabbable:!1},t),l.currentNode=n,r=l.nextNode()),ge(r)}function Ta(t,e){const n=f.useRef(e);f.useEffect(()=>{n.current&&(W=t,Q(document.activeElement,W.current)||xt(t.current)),n.current=!1},[t])}function Sa(t,e,n){U(()=>{if(e||n)return;let l=t.current,r=i=>{let o=i.target;Q(o,t.current)?W=t:pl(o)||(W=null)};return document.addEventListener("focusin",r,!1),l.forEach(i=>i.addEventListener("focusin",r,!1)),()=>{document.removeEventListener("focusin",r,!1),l.forEach(i=>i.removeEventListener("focusin",r,!1))}},[t,e,n])}function Ka(t){let e=Y.getTreeNode(W);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Ca(t,e,n){const l=f.useRef(typeof document<"u"?document.activeElement:null);U(()=>{let r=t.current;if(!e||n)return;let i=()=>{(!W||Et(W,t))&&Q(document.activeElement,t.current)&&(W=t)};return document.addEventListener("focusin",i,!1),r.forEach(o=>o.addEventListener("focusin",i,!1)),()=>{document.removeEventListener("focusin",i,!1),r.forEach(o=>o.removeEventListener("focusin",i,!1))}},[t,n]),U(()=>{if(!e)return;let r=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!Je(t))return;let o=document.activeElement;if(!Q(o,t.current))return;let a=Y.getTreeNode(t).nodeToRestore,s=ne(document.body,{tabbable:!0});s.currentNode=o;let c=i.shiftKey?s.previousNode():s.nextNode();if((!document.body.contains(a)||a===document.body)&&(a=null,Y.getTreeNode(t).nodeToRestore=null),(!c||!Q(c,t.current))&&a){s.currentNode=a;do c=i.shiftKey?s.previousNode():s.nextNode();while(Q(c,t.current));i.preventDefault(),i.stopPropagation(),c?ge(c,!0):pl(a)?ge(a,!0):o.blur()}};return n||document.addEventListener("keydown",r,!0),()=>{n||document.removeEventListener("keydown",r,!0)}},[t,e,n]),U(()=>{if(e)return Y.getTreeNode(t).nodeToRestore=l.current,()=>{let r=Y.getTreeNode(t).nodeToRestore;if(e&&r&&(Q(document.activeElement,t.current)||document.activeElement===document.body&&Ka(t))){let i=Y.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let o=i.getTreeNode(t);for(;o;){if(o.nodeToRestore&&document.body.contains(o.nodeToRestore)){ge(o.nodeToRestore);return}o=o.parent}for(o=i.getTreeNode(t);o;){if(o.scopeRef&&Y.getTreeNode(o.scopeRef)){xt(o.scopeRef.current,!0);return}o=o.parent}}})}}},[t,e])}function ne(t,e,n){let l=e!=null&&e.tabbable?Ea:Pa,r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var o;return!(e==null||(o=e.from)===null||o===void 0)&&o.contains(i)?NodeFilter.FILTER_REJECT:i.matches(l)&&dl(i)&&(!n||Q(i,n))&&(!(e!=null&&e.accept)||e.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(r.currentNode=e.from),r}class tn{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,l){let r=this.fastMap.get(n??null),i=new nn({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),l&&(i.nodeToRestore=l)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e),l=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef.current&&Q(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let r=n.children;l.removeChild(n),r.size>0&&r.forEach(i=>l.addChild(i)),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){let e=new tn;for(let n of this.traverse())e.addTreeNode(n.scopeRef,n.parent.scopeRef,n.nodeToRestore);return e}constructor(){this.fastMap=new Map,this.root=new nn({scopeRef:null}),this.fastMap.set(null,this.root)}}class nn{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let Y=new tn;function ln(t={}){let{autoFocus:e=!1,isTextInput:n,within:l}=t,r=f.useRef({isFocused:!1,isFocusVisible:e||Ze()}),[i,o]=f.useState(!1),[a,s]=f.useState(()=>r.current.isFocused&&r.current.isFocusVisible),c=f.useCallback(()=>s(r.current.isFocused&&r.current.isFocusVisible),[]),u=f.useCallback(m=>{r.current.isFocused=m,o(m),c()},[c]);fa(m=>{r.current.isFocusVisible=m,c()},[],{isTextInput:n});let{focusProps:p}=rl({isDisabled:l,onFocusChange:u}),{focusWithinProps:h}=Qe({isDisabled:!l,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:a,focusProps:l?h:p}}let Ia=f.createContext(null);function Ma(t){let e=f.useContext(Ia)||{};Gn(e,t);let{ref:n,...l}=e;return l}function kt(t,e){let{focusProps:n}=rl(t),{keyboardProps:l}=ba(t),r=B(n,l),i=Ma(e),o=t.isDisabled?{}:i,a=f.useRef(t.autoFocus);return f.useEffect(()=>{a.current&&e.current&&J(e.current),a.current=!1},[e]),{focusableProps:B({...r,tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0},o)}}function Aa(t,e){let n=e==null?void 0:e.isDisabled,[l,r]=f.useState(!1);return U(()=>{if(t!=null&&t.current&&!n){let i=()=>{if(t.current){let a=ne(t.current,{tabbable:!0});r(!!a.nextNode())}};i();let o=new MutationObserver(i);return o.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{o.disconnect()}}}),n?!1:l}class Da{getStringForLocale(e,n){let l=this.strings[n];l||(l=Na(n,this.strings,this.defaultLocale),this.strings[n]=l);let r=l[e];if(!r)throw new Error(`Could not find intl message ${e} in ${n} locale`);return r}constructor(e,n="en-US"){this.strings={...e},this.defaultLocale=n}}function Na(t,e,n="en-US"){if(e[t])return e[t];let l=Ra(t);if(e[l])return e[l];for(let r in e)if(r.startsWith(l+"-"))return e[r];return e[n]}function Ra(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const hl=new Map,ml=new Map;class za{format(e,n){let l=this.strings.getStringForLocale(e,this.locale);return typeof l=="function"?l(n,this):l}plural(e,n,l="cardinal"){let r=n["="+e];if(r)return typeof r=="function"?r():r;let i=this.locale+":"+l,o=hl.get(i);o||(o=new Intl.PluralRules(this.locale,{type:l}),hl.set(i,o));let a=o.select(e);return r=n[a]||n.other,typeof r=="function"?r():r}number(e){let n=ml.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ml.set(this.locale,n)),n.format(e)}select(e,n){let l=e[n]||e.other;return typeof l=="function"?l():l}constructor(e,n){this.locale=e,this.strings=n}}const Fa=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),La=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Oa(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize().script;return Fa.has(n)}let e=t.split("-")[0];return La.has(e)}function bl(){let t=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Oa(t)?"rtl":"ltr"}}let rn=bl(),et=new Set;function gl(){rn=bl();for(let t of et)t(rn)}function ja(){let t=ot(),[e,n]=f.useState(rn);return f.useEffect(()=>(et.size===0&&window.addEventListener("languagechange",gl),et.add(n),()=>{et.delete(n),et.size===0&&window.removeEventListener("languagechange",gl)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const _a=f.createContext(null);function ve(){let t=ja();return f.useContext(_a)||t}const vl=new WeakMap;function Ba(t){let e=vl.get(t);return e||(e=new Da(t),vl.set(t,e)),e}function ze(t){let{locale:e}=ve(),n=f.useMemo(()=>Ba(t),[t]);return f.useMemo(()=>new za(e,n),[e,n])}let on=new Map;function Tt(t){let{locale:e}=ve(),n=e+(t?Object.entries(t).sort((r,i)=>r[0]<i[0]?-1:1).join():"");if(on.has(n))return on.get(n);let l=new Intl.Collator(e,t);return on.set(n,l),l}function yl(t,e){let{elementType:n="button",isDisabled:l,onPress:r,onPressStart:i,onPressEnd:o,onPressChange:a,preventFocusOnPress:s,allowFocusWhenDisabled:c,onClick:u,href:p,target:h,rel:m,type:g="button"}=t,x;n==="button"?x={type:g,disabled:l}:x={role:"button",tabIndex:l?void 0:0,href:n==="a"&&l?void 0:p,target:n==="a"?h:void 0,type:n==="input"?g:void 0,disabled:n==="input"?l:void 0,"aria-disabled":!l||n==="input"?void 0:l,rel:n==="a"?m:void 0};let{pressProps:w,isPressed:S}=De({onPressStart:i,onPressEnd:o,onPressChange:a,onPress:r,isDisabled:l,preventFocusOnPress:s,ref:e}),{focusableProps:y}=kt(t,e);c&&(y.tabIndex=l?-1:y.tabIndex);let $=B(y,w,pe(t,{labelable:!0}));return{isPressed:S,buttonProps:B(x,$,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],onClick:M=>{u&&(u(M),console.warn("onClick is deprecated, please use onPress"))}})}}const $l=7e3;let sn=null;function wl(t,e="assertive",n=$l){sn||(sn=new Va),sn.announce(t,e,n)}class Va{createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",l=$l){if(!this.node)return;let r=document.createElement("div");r.textContent=e,n==="assertive"?this.assertiveLog.appendChild(r):this.politeLog.appendChild(r),e!==""&&setTimeout(()=>{r.remove()},l)}clear(e){this.node&&((!e||e==="assertive")&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&(this.politeLog.innerHTML=""))}constructor(){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)}}function Ha(t,e,n){let{isDisabled:l=!1,isRequired:r=!1,isReadOnly:i=!1,value:o,name:a,children:s,"aria-label":c,"aria-labelledby":u,validationState:p="valid",isInvalid:h}=t,m=C=>{C.stopPropagation(),e.setSelected(C.target.checked)},g=s!=null,x=c!=null||u!=null;!g&&!x&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:w,isPressed:S}=De({isDisabled:l}),{focusableProps:y}=kt(t,n),$=B(w,y),M=pe(t,{labelable:!0});return Ht(n,e.isSelected,e.setSelected),{inputProps:B(M,{"aria-invalid":h||p==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":i||void 0,"aria-required":r||void 0,onChange:m,disabled:l,...o==null?{}:{value:o},name:a,type:"checkbox",...$}),isSelected:e.isSelected,isPressed:S,isDisabled:l,isReadOnly:i,isInvalid:h||p==="invalid"}}function Pl(t){let{id:e,label:n,"aria-labelledby":l,"aria-label":r,labelElementType:i="label"}=t;e=se(e);let o=se(),a={};n?(l=l?`${o} ${l}`:o,a={id:o,htmlFor:i==="label"?e:void 0}):!l&&!r&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=Wn({id:e,"aria-label":r,"aria-labelledby":l});return{labelProps:a,fieldProps:s}}function El(t){let{description:e,errorMessage:n,isInvalid:l,validationState:r}=t,{labelProps:i,fieldProps:o}=Pl(t),a=Ye([!!e,!!n,l,r]),s=Ye([!!e,!!n,l,r]);return o=B(o,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:o,descriptionProps:{id:a},errorMessageProps:{id:s}}}function Wa(t={}){let{isReadOnly:e}=t,[n,l]=Ge(t.isSelected,t.defaultSelected||!1,t.onChange);function r(o){e||l(o)}function i(){e||l(!n)}return{isSelected:n,setSelected:r,toggle:i}}const xl={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 kl(t={}){let{style:e,isFocusable:n}=t,[l,r]=f.useState(!1),{focusWithinProps:i}=Qe({isDisabled:!n,onFocusWithinChange:a=>r(a)}),o=f.useMemo(()=>l?e:e?{...xl,...e}:xl,[l]);return{visuallyHiddenProps:{...i,style:o}}}function an(t){let{children:e,elementType:n="div",isFocusable:l,style:r,...i}=t,{visuallyHiddenProps:o}=kl(t);return f.createElement(n,B(i,o),e)}function Ua(t){return t&&t.__esModule?t.default:t}const Tl={top:"top",bottom:"top",left:"left",right:"left"},St={top:"bottom",bottom:"top",left:"right",right:"left"},Ga={top:"left",left:"top"},cn={top:"height",left:"width"},Ya={width:"totalWidth",height:"totalHeight"},Kt={};let Fe=typeof document<"u"&&window.visualViewport;function Sl(t){let e=0,n=0,l=0,r=0,i=0,o=0,a={};if(t.tagName==="BODY"){let u=document.documentElement;l=u.clientWidth,r=u.clientHeight;var s;e=(s=Fe==null?void 0:Fe.width)!==null&&s!==void 0?s:l;var c;n=(c=Fe==null?void 0:Fe.height)!==null&&c!==void 0?c:r,a.top=u.scrollTop||t.scrollTop,a.left=u.scrollLeft||t.scrollLeft}else({width:e,height:n,top:i,left:o}=Le(t)),a.top=t.scrollTop,a.left=t.scrollLeft,l=e,r=n;return{width:e,height:n,totalWidth:l,totalHeight:r,scroll:a,top:i,left:o}}function qa(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Kl(t,e,n,l,r,i){let o=r.scroll[t],a=l[cn[t]],s=e-i-o,c=e+i-o+n;return s<0?-s:c>a?Math.max(a-c,-s):0}function Xa(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Cl(t){if(Kt[t])return Kt[t];let[e,n]=t.split(" "),l=Tl[e]||"right",r=Ga[l];Tl[n]||(n="center");let i=cn[l],o=cn[r];return Kt[t]={placement:e,crossPlacement:n,axis:l,crossAxis:r,size:i,crossSize:o},Kt[t]}function un(t,e,n,l,r,i,o,a,s,c){let{placement:u,crossPlacement:p,axis:h,crossAxis:m,size:g,crossSize:x}=l,w={};w[m]=t[m],p==="center"?w[m]+=(t[x]-n[x])/2:p!==m&&(w[m]+=t[x]-n[x]),w[m]+=i;const S=t[m]-n[x]+s+c,y=t[m]+t[x]-s-c;if(w[m]=Lt(w[m],S,y),u===h){const $=a?o[g]:e[Ya[g]];w[St[h]]=Math.floor($-t[h]+r)}else w[h]=Math.floor(t[h]+t[g]+r);return w}function Za(t,e,n,l,r,i){return t.top!=null?Math.max(0,e.height+e.top+e.scroll.top-(n.top+t.top)-(r.top+r.bottom+i)):Math.max(0,l.top+n.top-(e.top+e.scroll.top)-(r.top+r.bottom+i))}function Il(t,e,n,l,r,i){let{placement:o,axis:a,size:s}=i;return o===a?Math.max(0,n[a]-t[a]-t.scroll[a]+e[a]-l[a]-l[St[a]]-r):Math.max(0,t[s]+t[a]+t.scroll[a]-e[a]-n[a]-n[s]-l[a]-l[St[a]]-r)}function Qa(t,e,n,l,r,i,o,a,s,c,u,p,h,m,g,x){let w=Cl(t),{size:S,crossAxis:y,crossSize:$,placement:M,crossPlacement:C}=w,L=un(e,a,n,w,u,p,c,h,g,x),_=u,b=Il(a,c,e,r,i+u,w);if(o&&l[S]>b){let de=Cl(`${St[M]} ${C}`),Se=un(e,a,n,de,u,p,c,h,g,x);Il(a,c,e,r,i+u,de)>b&&(w=de,L=Se,_=u)}let D=Kl(y,L[y],n[$],a,s,i);L[y]+=D;let T=Za(L,a,c,e,r,i);m&&m<T&&(T=m),n.height=Math.min(n.height,T),L=un(e,a,n,w,_,p,c,h,g,x),D=Kl(y,L[y],n[$],a,s,i),L[y]+=D;let E={},z=e[y]+.5*e[$]-n[y];const v=g/2+x,k=n[$]-g/2-x,O=e[y]-n[y]+g/2,ue=e[y]+e[$]-n[y]-g/2,I=Lt(z,O,ue);return E[y]=Lt(I,v,k),{position:L,maxHeight:T,arrowOffsetLeft:E.left,arrowOffsetTop:E.top,placement:w.placement}}function Ja(t){let{placement:e,targetNode:n,overlayNode:l,scrollNode:r,padding:i,shouldFlip:o,boundaryElement:a,offset:s,crossOffset:c,maxHeight:u,arrowSize:p=0,arrowBoundaryOffset:h=0}=t,m=l instanceof HTMLElement?ec(l):document.documentElement,g=m===document.documentElement;const x=window.getComputedStyle(m).position;let w=!!x&&x!=="static",S=g?Le(n):Ml(n,m);if(!g){let{marginTop:b,marginLeft:D}=window.getComputedStyle(n);S.top+=parseInt(b,10)||0,S.left+=parseInt(D,10)||0}let y=Le(l),$=Xa(l);y.width+=$.left+$.right,y.height+=$.top+$.bottom;let M=qa(r),C=Sl(a),L=Sl(m),_=a.tagName==="BODY"?Le(m):Ml(m,a);return Qa(e,S,y,M,$,i,o,C,L,_,s,c,w,u,p,h)}function Le(t){let{top:e,left:n,width:l,height:r}=t.getBoundingClientRect(),{scrollTop:i,scrollLeft:o,clientTop:a,clientLeft:s}=document.documentElement;return{top:e+i-a,left:n+o-s,width:l,height:r}}function Ml(t,e){let n=window.getComputedStyle(t),l;if(n.position==="fixed"){let{top:r,left:i,width:o,height:a}=t.getBoundingClientRect();l={top:r,left:i,width:o,height:a}}else{l=Le(t);let r=Le(e),i=window.getComputedStyle(e);r.top+=(parseInt(i.borderTopWidth,10)||0)-e.scrollTop,r.left+=(parseInt(i.borderLeftWidth,10)||0)-e.scrollLeft,l.top-=r.top,l.left-=r.left}return l.top-=parseInt(n.marginTop,10)||0,l.left-=parseInt(n.marginLeft,10)||0,l}function ec(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Al(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Al(e);)e=e.parentElement;return e||document.documentElement}function Al(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const Dl=new WeakMap;function tc(t){let{triggerRef:e,isOpen:n,onClose:l}=t;f.useEffect(()=>{if(!n||l===null)return;let r=i=>{let o=i.target;if(!e.current||o instanceof Node&&!o.contains(e.current))return;let a=l||Dl.get(e.current);a&&a()};return window.addEventListener("scroll",r,!0),()=>{window.removeEventListener("scroll",r,!0)}},[n,l,e])}let re=typeof document<"u"&&window.visualViewport;function nc(t){let{direction:e}=ve(),{arrowSize:n=0,targetRef:l,overlayRef:r,scrollRef:i=r,placement:o="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:u=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:m=!0,onClose:g,maxHeight:x,arrowBoundaryOffset:w=0}=t,[S,y]=f.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),$=[h,o,r.current,l.current,i.current,a,s,c,u,p,m,e,x,w,n],M=f.useCallback(()=>{if(h===!1||!m||!r.current||!l.current||!i.current||!c)return;let _=Ja({placement:rc(o,e),overlayNode:r.current,targetNode:l.current,scrollNode:i.current,padding:a,shouldFlip:s,boundaryElement:c,offset:u,crossOffset:p,maxHeight:x,arrowSize:n,arrowBoundaryOffset:w});Object.keys(_.position).forEach(b=>r.current.style[b]=_.position[b]+"px"),r.current.style.maxHeight=_.maxHeight!=null?_.maxHeight+"px":void 0,y(_)},$);U(M,$),lc(M),Vs({ref:r,onResize:M});let C=f.useRef(!1);U(()=>{let _,b=()=>{C.current=!0,clearTimeout(_),_=setTimeout(()=>{C.current=!1},500),M()};return re==null||re.addEventListener("resize",b),re==null||re.addEventListener("scroll",b),()=>{re==null||re.removeEventListener("resize",b),re==null||re.removeEventListener("scroll",b)}},[M]);let L=f.useCallback(()=>{C.current||g()},[g,C]);return tc({triggerRef:l,isOpen:m,onClose:g&&L}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...S.position,maxHeight:S.maxHeight}},placement:S.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:S.arrowOffsetLeft,top:S.arrowOffsetTop}},updatePosition:M}}function lc(t){U(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function rc(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const ye=[];function ic(t,e){let{onClose:n,shouldCloseOnBlur:l,isOpen:r,isDismissable:i=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:a}=t;f.useEffect(()=>(r&&ye.push(e),()=>{let g=ye.indexOf(e);g>=0&&ye.splice(g,1)}),[r,e]);let s=()=>{ye[ye.length-1]===e&&n&&n()},c=g=>{(!a||a(g.target))&&ye[ye.length-1]===e&&(g.stopPropagation(),g.preventDefault())},u=g=>{(!a||a(g.target))&&(ye[ye.length-1]===e&&(g.stopPropagation(),g.preventDefault()),s())},p=g=>{g.key==="Escape"&&!o&&(g.stopPropagation(),g.preventDefault(),s())};ma({ref:e,onInteractOutside:i?u:null,onInteractOutsideStart:c});let{focusWithinProps:h}=Qe({isDisabled:!l,onBlurWithin:g=>{!g.relatedTarget||ka(g.relatedTarget)||(!a||a(g.relatedTarget))&&n()}}),m=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:p,...h},underlayProps:{onPointerDown:m}}}function oc(t,e,n){let{type:l}=t,{isOpen:r}=e;f.useEffect(()=>{n&&n.current&&Dl.set(n.current,e.close)});let i;l==="menu"?i=!0:l==="listbox"&&(i="listbox");let o=se();return{triggerProps:{"aria-haspopup":i,"aria-expanded":r,"aria-controls":r?o:null,onPress:e.toggle},overlayProps:{id:o}}}const dn=typeof document<"u"&&window.visualViewport,sc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ct=0,fn;function ac(t={}){let{isDisabled:e}=t;U(()=>{if(!e)return Ct++,Ct===1&&(ut()?fn=uc():fn=cc()),()=>{Ct--,Ct===0&&fn()}},[e])}function cc(){return qe(tt(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),tt(document.documentElement,"overflow","hidden"))}function uc(){let t,e=0,n=p=>{t=ce(p.target),!(t===document.documentElement&&t===document.body)&&(e=p.changedTouches[0].pageY)},l=p=>{if(!t||t===document.documentElement||t===document.body){p.preventDefault();return}let h=p.changedTouches[0].pageY,m=t.scrollTop,g=t.scrollHeight-t.clientHeight;g!==0&&((m<=0&&h>e||m>=g&&h<e)&&p.preventDefault(),e=h)},r=p=>{let h=p.target;Rl(h)&&h!==document.activeElement&&(p.preventDefault(),h.style.transform="translateY(-2000px)",h.focus(),requestAnimationFrame(()=>{h.style.transform=""}))},i=p=>{let h=p.target;Rl(h)&&(h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",dn&&(dn.height<window.innerHeight?requestAnimationFrame(()=>{Nl(h)}):dn.addEventListener("resize",()=>Nl(h),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},a=window.pageXOffset,s=window.pageYOffset,c=qe(tt(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),tt(document.documentElement,"overflow","hidden"),tt(document.body,"marginTop",`-${s}px`));window.scrollTo(0,0);let u=qe(nt(document,"touchstart",n,{passive:!1,capture:!0}),nt(document,"touchmove",l,{passive:!1,capture:!0}),nt(document,"touchend",r,{passive:!1,capture:!0}),nt(document,"focus",i,!0),nt(window,"scroll",o));return()=>{c(),u(),window.scrollTo(a,s)}}function tt(t,e,n){let l=t.style[e];return t.style[e]=n,()=>{t.style[e]=l}}function nt(t,e,n,l){return t.addEventListener(e,n,l),()=>{t.removeEventListener(e,n,l)}}function Nl(t){let e=document.scrollingElement||document.documentElement;for(;t&&t!==e;){let n=ce(t);if(n!==document.documentElement&&n!==document.body&&n!==t){let l=n.getBoundingClientRect().top,r=t.getBoundingClientRect().top;r>l+t.clientHeight&&(n.scrollTop+=r-l)}t=n.parentElement}}function Rl(t){return t instanceof HTMLInputElement&&!sc.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}var zl={},Fl={};Fl={dismiss:"تجاهل"};var Ll={};Ll={dismiss:"Отхвърляне"};var Ol={};Ol={dismiss:"Odstranit"};var jl={};jl={dismiss:"Luk"};var _l={};_l={dismiss:"Schließen"};var Bl={};Bl={dismiss:"Απόρριψη"};var Vl={};Vl={dismiss:"Dismiss"};var Hl={};Hl={dismiss:"Descartar"};var Wl={};Wl={dismiss:"Lõpeta"};var Ul={};Ul={dismiss:"Hylkää"};var Gl={};Gl={dismiss:"Rejeter"};var Yl={};Yl={dismiss:"התעלם"};var ql={};ql={dismiss:"Odbaci"};var Xl={};Xl={dismiss:"Elutasítás"};var Zl={};Zl={dismiss:"Ignora"};var Ql={};Ql={dismiss:"閉じる"};var Jl={};Jl={dismiss:"무시"};var er={};er={dismiss:"Atmesti"};var tr={};tr={dismiss:"Nerādīt"};var nr={};nr={dismiss:"Lukk"};var lr={};lr={dismiss:"Negeren"};var rr={};rr={dismiss:"Zignoruj"};var ir={};ir={dismiss:"Descartar"};var or={};or={dismiss:"Dispensar"};var sr={};sr={dismiss:"Revocare"};var ar={};ar={dismiss:"Пропустить"};var cr={};cr={dismiss:"Zrušiť"};var ur={};ur={dismiss:"Opusti"};var dr={};dr={dismiss:"Odbaci"};var fr={};fr={dismiss:"Avvisa"};var pr={};pr={dismiss:"Kapat"};var hr={};hr={dismiss:"Скасувати"};var mr={};mr={dismiss:"取消"};var br={};br={dismiss:"關閉"},zl={"ar-AE":Fl,"bg-BG":Ll,"cs-CZ":Ol,"da-DK":jl,"de-DE":_l,"el-GR":Bl,"en-US":Vl,"es-ES":Hl,"et-EE":Wl,"fi-FI":Ul,"fr-FR":Gl,"he-IL":Yl,"hr-HR":ql,"hu-HU":Xl,"it-IT":Zl,"ja-JP":Ql,"ko-KR":Jl,"lt-LT":er,"lv-LV":tr,"nb-NO":nr,"nl-NL":lr,"pl-PL":rr,"pt-BR":ir,"pt-PT":or,"ro-RO":sr,"ru-RU":ar,"sk-SK":cr,"sl-SI":ur,"sr-SP":dr,"sv-SE":fr,"tr-TR":pr,"uk-UA":hr,"zh-CN":mr,"zh-TW":br};function gr(t){let{onDismiss:e,...n}=t,l=ze(Ua(zl)),r=Wn(n,l.format("dismiss")),i=()=>{e&&e()};return f.createElement(an,null,f.createElement("button",{...r,tabIndex:-1,onClick:i}))}let lt=new WeakMap,ie=[];function dc(t,e=document.body){let n=new Set(t),l=new Set,r=s=>{for(let h of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(h);let c=h=>{if(n.has(h)||l.has(h.parentElement)&&h.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let m of n)if(h.contains(m))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},u=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),p=c(s);if(p===NodeFilter.FILTER_ACCEPT&&i(s),p!==NodeFilter.FILTER_REJECT){let h=u.nextNode();for(;h!=null;)i(h),h=u.nextNode()}},i=s=>{var c;let u=(c=lt.get(s))!==null&&c!==void 0?c:0;s.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&s.setAttribute("aria-hidden","true"),l.add(s),lt.set(s,u+1))};ie.length&&ie[ie.length-1].disconnect(),r(e);let o=new MutationObserver(s=>{for(let c of s)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...l].some(u=>u.contains(c.target))){for(let u of c.removedNodes)u instanceof Element&&(n.delete(u),l.delete(u));for(let u of c.addedNodes)(u instanceof HTMLElement||u instanceof SVGElement)&&(u.dataset.liveAnnouncer==="true"||u.dataset.reactAriaTopLayer==="true")?n.add(u):u instanceof Element&&r(u)}});o.observe(e,{childList:!0,subtree:!0});let a={observe(){o.observe(e,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return ie.push(a),()=>{o.disconnect();for(let s of l){let c=lt.get(s);c===1?(s.removeAttribute("aria-hidden"),lt.delete(s)):lt.set(s,c-1)}a===ie[ie.length-1]?(ie.pop(),ie.length&&ie[ie.length-1].observe()):ie.splice(ie.indexOf(a),1)}}function fc(t,e){let{triggerRef:n,popoverRef:l,isNonModal:r,isKeyboardDismissDisabled:i,...o}=t,{overlayProps:a,underlayProps:s}=ic({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!r,isKeyboardDismissDisabled:i},l),{overlayProps:c,arrowProps:u,placement:p}=nc({...o,targetRef:n,overlayRef:l,isOpen:e.isOpen,onClose:null});return ac({isDisabled:r}),U(()=>{if(e.isOpen&&!r&&l.current)return dc([l.current])},[r,e.isOpen,l]),{popoverProps:B(a,c),arrowProps:u,underlayProps:s,placement:p}}const vr=f.createContext(null);function pc(t){let e=ot(),{portalContainer:n=e?null:document.body,isExiting:l}=t,[r,i]=f.useState(!1),o=f.useMemo(()=>({contain:r,setContain:i}),[r,i]);if(!n)return null;let a=t.children;return t.disableFocusManagement||(a=f.createElement($a,{restoreFocus:!0,contain:r&&!l},a)),a=f.createElement(vr.Provider,{value:o},f.createElement(la,null,a)),Nn.createPortal(a,n)}function hc(){let t=f.useContext(vr),e=t==null?void 0:t.setContain;U(()=>{e==null||e(!0)},[e])}function pn(t){return Rs()?t.altKey:t.ctrlKey}function Oe(t){return Ee()?t.metaKey:t.ctrlKey}const mc=1e3;function yr(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:l}=t,r=f.useRef({search:"",timeout:null}).current,i=o=>{let a=bc(o.key);if(!a||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))return;a===" "&&r.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),r.search+=a;let s=e.getKeyForSearch(r.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(r.search)),s!=null&&(n.setFocusedKey(s),l&&l(s)),clearTimeout(r.timeout),r.timeout=setTimeout(()=>{r.search=""},mc)};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:null}}}function bc(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function $r(t){let{selectionManager:e,keyboardDelegate:n,ref:l,autoFocus:r=!1,shouldFocusWrap:i=!1,disallowEmptySelection:o=!1,disallowSelectAll:a=!1,selectOnFocus:s=e.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:u,allowsTabNavigation:p=!1,isVirtualized:h,scrollRef:m=l,linkBehavior:g="action"}=t,{direction:x}=ve(),w=_n(),S=T=>{if(T.altKey&&T.key==="Tab"&&T.preventDefault(),!l.current.contains(T.target))return;const E=(R,fe)=>{if(R!=null){if(e.isLink(R)&&g==="selection"&&s&&!pn(T)){Nn.flushSync(()=>{e.setFocusedKey(R,fe)});let we=m.current.querySelector(`[data-key="${R}"]`);w.open(we,T);return}if(e.setFocusedKey(R,fe),e.isLink(R)&&g==="override")return;T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&!pn(T)&&e.replaceSelection(R)}};switch(T.key){case"ArrowDown":if(n.getKeyBelow){var z,v;T.preventDefault();let R=e.focusedKey!=null?n.getKeyBelow(e.focusedKey):(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n);R==null&&i&&(R=(v=n.getFirstKey)===null||v===void 0?void 0:v.call(n,e.focusedKey)),E(R)}break;case"ArrowUp":if(n.getKeyAbove){var k,O;T.preventDefault();let R=e.focusedKey!=null?n.getKeyAbove(e.focusedKey):(k=n.getLastKey)===null||k===void 0?void 0:k.call(n);R==null&&i&&(R=(O=n.getLastKey)===null||O===void 0?void 0:O.call(n,e.focusedKey)),E(R)}break;case"ArrowLeft":if(n.getKeyLeftOf){var ue,I;T.preventDefault();let R=n.getKeyLeftOf(e.focusedKey);R==null&&i&&(R=x==="rtl"?(ue=n.getFirstKey)===null||ue===void 0?void 0:ue.call(n,e.focusedKey):(I=n.getLastKey)===null||I===void 0?void 0:I.call(n,e.focusedKey)),E(R,x==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var de,Se;T.preventDefault();let R=n.getKeyRightOf(e.focusedKey);R==null&&i&&(R=x==="rtl"?(de=n.getLastKey)===null||de===void 0?void 0:de.call(n,e.focusedKey):(Se=n.getFirstKey)===null||Se===void 0?void 0:Se.call(n,e.focusedKey)),E(R,x==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){T.preventDefault();let R=n.getFirstKey(e.focusedKey,Oe(T));e.setFocusedKey(R),Oe(T)&&T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&e.replaceSelection(R)}break;case"End":if(n.getLastKey){T.preventDefault();let R=n.getLastKey(e.focusedKey,Oe(T));e.setFocusedKey(R),Oe(T)&&T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&e.replaceSelection(R)}break;case"PageDown":if(n.getKeyPageBelow){T.preventDefault();let R=n.getKeyPageBelow(e.focusedKey);E(R)}break;case"PageUp":if(n.getKeyPageAbove){T.preventDefault();let R=n.getKeyPageAbove(e.focusedKey);E(R)}break;case"a":Oe(T)&&e.selectionMode==="multiple"&&a!==!0&&(T.preventDefault(),e.selectAll());break;case"Escape":T.preventDefault(),o||e.clearSelection();break;case"Tab":if(!p){if(T.shiftKey)l.current.focus();else{let R=ne(l.current,{tabbable:!0}),fe,we;do we=R.lastChild(),we&&(fe=we);while(we);fe&&!fe.contains(document.activeElement)&&he(fe)}break}}},y=f.useRef({top:0,left:0});Ws(m,"scroll",h?null:()=>{y.current={top:m.current.scrollTop,left:m.current.scrollLeft}});let $=T=>{if(e.isFocused){T.currentTarget.contains(T.target)||e.setFocused(!1);return}if(T.currentTarget.contains(T.target)){if(e.setFocused(!0),e.focusedKey==null){let v=O=>{O!=null&&(e.setFocusedKey(O),s&&e.replaceSelection(O))},k=T.relatedTarget;var E,z;k&&T.currentTarget.compareDocumentPosition(k)&Node.DOCUMENT_POSITION_FOLLOWING?v((E=e.lastSelectedKey)!==null&&E!==void 0?E:n.getLastKey()):v((z=e.firstSelectedKey)!==null&&z!==void 0?z:n.getFirstKey())}else h||(m.current.scrollTop=y.current.top,m.current.scrollLeft=y.current.left);if(!h&&e.focusedKey!=null){let v=m.current.querySelector(`[data-key="${e.focusedKey}"]`);v&&(v.contains(document.activeElement)||he(v),Zt()==="keyboard"&&xe(v,{containingElement:l.current}))}}},M=T=>{T.currentTarget.contains(T.relatedTarget)||e.setFocused(!1)};const C=f.useRef(r);f.useEffect(()=>{if(C.current){let T=null;r==="first"&&(T=n.getFirstKey()),r==="last"&&(T=n.getLastKey());let E=e.selectedKeys;E.size&&(T=E.values().next().value),e.setFocused(!0),e.setFocusedKey(T),T==null&&!u&&J(l.current)}C.current=!1},[]);let L=f.useRef(e.focusedKey);f.useEffect(()=>{let T=Zt();if(e.isFocused&&e.focusedKey!=null&&(m!=null&&m.current)){let E=m.current.querySelector(`[data-key="${e.focusedKey}"]`);E&&T==="keyboard"&&(h||Yn(m.current,E),xe(E,{containingElement:l.current}))}e.isFocused&&e.focusedKey==null&&L.current!=null&&J(l.current),L.current=e.focusedKey},[h,m,e.focusedKey,e.isFocused,l]);let _={onKeyDown:S,onFocus:$,onBlur:M,onMouseDown(T){m.current===T.target&&T.preventDefault()}},{typeSelectProps:b}=yr({keyboardDelegate:n,selectionManager:e});c||(_=B(b,_));let D;return u||(D=e.focusedKey==null?0:-1),{collectionProps:{..._,tabIndex:D}}}function hn(t){let{selectionManager:e,key:n,ref:l,shouldSelectOnPressUp:r,shouldUseVirtualFocus:i,focus:o,isDisabled:a,onAction:s,allowsDifferentPressOrigin:c,linkBehavior:u="action"}=t,p=_n(),h=I=>{if(I.pointerType==="keyboard"&&pn(I))e.toggleSelection(n);else{if(e.selectionMode==="none")return;if(e.isLink(n)){if(u==="selection"){p.open(l.current,I),e.setSelectedKeys(e.selectedKeys);return}else if(u==="override"||u==="none")return}e.selectionMode==="single"?e.isSelected(n)&&!e.disallowEmptySelection?e.toggleSelection(n):e.replaceSelection(n):I&&I.shiftKey?e.extendSelection(n):e.selectionBehavior==="toggle"||I&&(Oe(I)||I.pointerType==="touch"||I.pointerType==="virtual")?e.toggleSelection(n):e.replaceSelection(n)}};f.useEffect(()=>{n===e.focusedKey&&e.isFocused&&!i&&(o?o():document.activeElement!==l.current&&J(l.current))},[l,n,e.focusedKey,e.childFocusStrategy,e.isFocused,i]),a=a||e.isDisabled(n);let m={};!i&&!a?m={tabIndex:n===e.focusedKey?0:-1,onFocus(I){I.target===l.current&&e.setFocusedKey(n)}}:a&&(m.onMouseDown=I=>{I.preventDefault()});let g=e.isLink(n)&&u==="override",x=e.isLink(n)&&u!=="selection"&&u!=="none",w=!a&&e.canSelectItem(n)&&!g,S=(s||x)&&!a,y=S&&(e.selectionBehavior==="replace"?!w:!w||e.isEmpty),$=S&&w&&e.selectionBehavior==="replace",M=y||$,C=f.useRef(null),L=M&&w,_=f.useRef(!1),b=f.useRef(!1),D=I=>{s&&s(),x&&p.open(l.current,I)},T={};r?(T.onPressStart=I=>{C.current=I.pointerType,_.current=L,I.pointerType==="keyboard"&&(!M||Pr())&&h(I)},c?(T.onPressUp=y?null:I=>{I.pointerType!=="keyboard"&&w&&h(I)},T.onPress=y?D:null):T.onPress=I=>{if(y||$&&I.pointerType!=="mouse"){if(I.pointerType==="keyboard"&&!wr())return;D(I)}else I.pointerType!=="keyboard"&&w&&h(I)}):(T.onPressStart=I=>{C.current=I.pointerType,_.current=L,b.current=y,w&&(I.pointerType==="mouse"&&!y||I.pointerType==="keyboard"&&(!S||Pr()))&&h(I)},T.onPress=I=>{(I.pointerType==="touch"||I.pointerType==="pen"||I.pointerType==="virtual"||I.pointerType==="keyboard"&&M&&wr()||I.pointerType==="mouse"&&b.current)&&(M?D(I):w&&h(I))}),m["data-key"]=n,T.preventFocusOnPress=i;let{pressProps:E,isPressed:z}=De(T),v=$?I=>{C.current==="mouse"&&(I.stopPropagation(),I.preventDefault(),D(I))}:void 0,{longPressProps:k}=ul({isDisabled:!L,onLongPress(I){I.pointerType==="touch"&&(h(I),e.setSelectionBehavior("toggle"))}}),O=I=>{C.current==="touch"&&_.current&&I.preventDefault()},ue=e.isLink(n)?I=>{Ke.isOpening||I.preventDefault()}:void 0;return{itemProps:B(m,w||y?E:{},L?k:{},{onDoubleClick:v,onDragStartCapture:O,onClick:ue}),isPressed:z,isSelected:e.isSelected(n),isFocused:e.isFocused&&e.focusedKey===n,isDisabled:a,allowsSelection:w,hasAction:M}}function wr(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Pr(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Er{getNextKey(e){for(e=this.collection.getKeyAfter(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,n,l){let r=this.getItem(e);if(!r)return null;let i=r.getBoundingClientRect();do e=n(e),r=this.getItem(e);while(r&&l(i,r.getBoundingClientRect()));return e}isSameRow(e,n){return e.top===n.top||e.left!==n.left}isSameColumn(e,n){return e.left===n.left||e.top!==n.top}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();for(;e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getKeyPageAbove(e){let n=this.ref.current,l=this.getItem(e);if(!l)return null;if(!ft(n))return this.getFirstKey();let r=n.getBoundingClientRect(),i=l.getBoundingClientRect();if(this.orientation==="horizontal"){let o=r.x-n.scrollLeft,a=Math.max(0,i.x-o+i.width-r.width);for(;l&&i.x-o>a;)e=this.getKeyAbove(e),l=e==null?null:this.getItem(e),i=l==null?void 0:l.getBoundingClientRect()}else{let o=r.y-n.scrollTop,a=Math.max(0,i.y-o+i.height-r.height);for(;l&&i.y-o>a;)e=this.getKeyAbove(e),l=e==null?null:this.getItem(e),i=l==null?void 0:l.getBoundingClientRect()}return e??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,l=this.getItem(e);if(!l)return null;if(!ft(n))return this.getLastKey();let r=n.getBoundingClientRect(),i=l.getBoundingClientRect();if(this.orientation==="horizontal"){let o=r.x-n.scrollLeft,a=Math.min(n.scrollWidth,i.x-o-i.width+r.width);for(;l&&i.x-o<a;)e=this.getKeyBelow(e),l=e==null?null:this.getItem(e),i=l==null?void 0:l.getBoundingClientRect()}else{let o=r.y-n.scrollTop,a=Math.min(n.scrollHeight,i.y-o-i.height+r.height);for(;l&&i.y-o<a;)e=this.getKeyBelow(e),l=e==null?null:this.getItem(e),i=l==null?void 0:l.getBoundingClientRect()}return e??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let l=this.collection,r=n||this.getFirstKey();for(;r!=null;){let i=l.getItem(r),o=i.textValue.slice(0,e.length);if(i.textValue&&this.collator.compare(o,e)===0)return r;r=this.getKeyBelow(r)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.orientation=n.orientation,this.direction=n.direction,this.layout=n.layout||"stack"}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function gc(t){let{selectionManager:e,collection:n,disabledKeys:l,ref:r,keyboardDelegate:i}=t,o=Tt({usage:"search",sensitivity:"base"}),a=e.disabledBehavior,s=f.useMemo(()=>i||new Er(n,a==="selection"?new Set:l,r,o),[i,n,l,r,o,a]),{collectionProps:c}=$r({...t,ref:r,selectionManager:e,keyboardDelegate:s});return{listProps:c}}function xr(t){return null}xr.getCollectionNode=function*(e,n){let{childItems:l,title:r,children:i}=e,o=e.title||e.children,a=e.textValue||(typeof o=="string"?o:"")||e["aria-label"]||"";!a&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:o,textValue:a,"aria-label":e["aria-label"],hasChildNodes:vc(e),*childNodes(){if(l)for(let s of l)yield{type:"item",value:s};else if(r){let s=[];f.Children.forEach(i,c=>{s.push({type:"item",element:c})}),yield*s}}}};function vc(t){return t.hasChildItems!=null?t.hasChildItems:!!(t.childItems||t.title&&f.Children.count(t.children)>0)}let yc=xr;function kr(t){return null}kr.getCollectionNode=function*(e){let{children:n,title:l,items:r}=e;yield{type:"section",props:e,hasChildNodes:!0,rendered:l,"aria-label":e["aria-label"],*childNodes(){if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let i of r)yield{type:"item",value:i,renderer:n}}else{let i=[];f.Children.forEach(n,o=>{i.push({type:"item",element:o})}),yield*i}}}};let $c=kr;class wc{build(e,n){return this.context=n,Tr(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:l}=e;if(typeof n=="function"){if(!l)throw new Error("props.children was a function but props.items is missing");for(let r of e.items)yield*this.getFullNode({value:r},{renderer:n})}else{let r=[];f.Children.forEach(n,o=>{r.push(o)});let i=0;for(let o of r){let a=this.getFullNode({element:o,index:i},{});for(let s of a)i++,yield s}}}getKey(e,n,l,r){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${r}${n.key}`;let i=n.value;if(i!=null){var o;let a=(o=i.key)!==null&&o!==void 0?o:i.id;if(a==null)throw new Error("No key found for item");return a}return r?`${r}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,l,r){let i=e.element;if(!i&&e.value&&n&&n.renderer){let s=this.cache.get(e.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=e.index,s.parentKey=r?r.key:null,yield s;return}i=n.renderer(e.value)}if(f.isValidElement(i)){let s=i.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let h=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${h}> in collection.`)}let c=s.getCollectionNode(i.props,this.context),u=e.index,p=c.next();for(;!p.done&&p.value;){let h=p.value;e.index=u;let m=h.key;m||(m=h.element?null:this.getKey(i,e,n,l));let x=[...this.getFullNode({...h,key:m,index:u,wrapper:Pc(e.wrapper,h.wrapper)},this.getChildState(n,h),l?`${l}${i.key}`:i.key,r)];for(let w of x){if(w.value=h.value||e.value,w.value&&this.cache.set(w.value,w),e.type&&w.type!==e.type)throw new Error(`Unsupported type <${mn(w.type)}> in <${mn(r.type)}>. Only <${mn(e.type)}> is supported.`);u++,yield w}p=c.next(x)}return}if(e.key==null)return;let o=this,a={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:Tr(function*(){if(!e.hasChildNodes)return;let s=0;for(let c of e.childNodes()){c.key!=null&&(c.key=`${a.key}${c.key}`),c.index=s;let u=o.getFullNode(c,o.getChildState(n,c),a.key,a);for(let p of u)s++,yield p}})};yield a}constructor(){this.cache=new WeakMap}}function Tr(t){let e=[],n=null;return{*[Symbol.iterator](){for(let l of e)yield l;n||(n=t());for(let l of n)e.push(l),yield l}}}function Pc(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function mn(t){return t[0].toUpperCase()+t.slice(1)}function Sr(t,e,n){let l=f.useMemo(()=>new wc,[]),{children:r,items:i,collection:o}=t;return f.useMemo(()=>{if(o)return o;let s=l.build({children:r,items:i},n);return e(s)},[l,r,i,o,n,e])}function X(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function $e(t){return ke(t,0)}function ke(t,e){if(e<0)return;let n=0;for(let l of t){if(n===e)return l;n++}}function Te(t){let e;for(let n of t)e=n;return e}function bn(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let l=[...Kr(t,e),e],r=[...Kr(t,n),n],i=l.slice(0,r.length).findIndex((o,a)=>o!==r[a]);return i!==-1?(e=l[i],n=r[i],e.index-n.index):l.findIndex(o=>o===n)>=0?1:(r.findIndex(o=>o===e)>=0,-1)}function Kr(t,e){let n=[];for(;(e==null?void 0:e.parentKey)!=null;)e=t.getItem(e.parentKey),n.unshift(e);return n}const Cr=new WeakMap;function Ec(t){let e=Cr.get(t);if(e!=null)return e;e=0;let n=l=>{for(let r of l)r.type==="section"?n(X(r,t)):e++};return n(t),Cr.set(t,e),e}const gn=new WeakMap;function xc(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function kc(t,e){let n=gn.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${xc(e)}`}function Tc(t,e,n){let l=pe(t,{labelable:!0}),r=t.selectionBehavior||"toggle",i=t.linkBehavior||(r==="replace"?"action":"override");r==="toggle"&&i==="action"&&(i="override");let{listProps:o}=gc({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:i}),{focusWithinProps:a}=Qe({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=se(t.id);gn.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:i});let{labelProps:c,fieldProps:u}=Pl({...t,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:B(l,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...B(u,o)})}}function Sc(t,e,n){var l;let{key:r}=t,i=gn.get(e);var o;let a=(o=t.isDisabled)!==null&&o!==void 0?o:e.disabledKeys.has(r);var s;let c=(s=t.isSelected)!==null&&s!==void 0?s:e.selectionManager.isSelected(r);var u;let p=(u=t.shouldSelectOnPressUp)!==null&&u!==void 0?u:i==null?void 0:i.shouldSelectOnPressUp;var h;let m=(h=t.shouldFocusOnHover)!==null&&h!==void 0?h:i==null?void 0:i.shouldFocusOnHover;var g;let x=(g=t.shouldUseVirtualFocus)!==null&&g!==void 0?g:i==null?void 0:i.shouldUseVirtualFocus;var w;let S=(w=t.isVirtualized)!==null&&w!==void 0?w:i==null?void 0:i.isVirtualized,y=Ye(),$=Ye(),M={role:"option","aria-disabled":a||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?c:void 0};Ee()&&jn()||(M["aria-label"]=t["aria-label"],M["aria-labelledby"]=y,M["aria-describedby"]=$);let C=e.collection.getItem(r);if(S){let v=Number(C==null?void 0:C.index);M["aria-posinset"]=Number.isNaN(v)?void 0:v+1,M["aria-setsize"]=Ec(e.collection)}let{itemProps:L,isPressed:_,isFocused:b,hasAction:D,allowsSelection:T}=hn({selectionManager:e.selectionManager,key:r,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&m,isVirtualized:S,shouldUseVirtualFocus:x,isDisabled:a,onAction:i!=null&&i.onAction?()=>{var v;return i==null||(v=i.onAction)===null||v===void 0?void 0:v.call(i,r)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:E}=ha({isDisabled:a||!m,onHoverStart(){Ze()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(r))}}),z=pe(C==null?void 0:C.props,{isLink:!!(!(C==null||(l=C.props)===null||l===void 0)&&l.href)});return delete z.id,{optionProps:{...M,...B(z,L,E),id:kc(e,r)},labelProps:{id:y},descriptionProps:{id:$},isFocused:b,isFocusVisible:b&&Ze(),isSelected:c,isDisabled:a,isPressed:_,allowsSelection:T,hasAction:D}}function Kc(t){return t&&t.__esModule?t.default:t}var Ir={},Mr={};Mr={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Ar={};Ar={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Dr={};Dr={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Nr={};Nr={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Rr={};Rr={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var zr={};zr={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Fr={};Fr={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Lr={};Lr={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Or={};Or={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var jr={};jr={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var _r={};_r={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Br={};Br={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Vr={};Vr={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Hr={};Hr={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Wr={};Wr={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Ur={};Ur={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Gr={};Gr={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Yr={};Yr={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var qr={};qr={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Xr={};Xr={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Zr={};Zr={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Qr={};Qr={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Jr={};Jr={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var ei={};ei={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var ti={};ti={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var ni={};ni={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var li={};li={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var ri={};ri={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var ii={};ii={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var oi={};oi={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var si={};si={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ai={};ai={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var ci={};ci={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var ui={};ui={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"},Ir={"ar-AE":Mr,"bg-BG":Ar,"cs-CZ":Dr,"da-DK":Nr,"de-DE":Rr,"el-GR":zr,"en-US":Fr,"es-ES":Lr,"et-EE":Or,"fi-FI":jr,"fr-FR":_r,"he-IL":Br,"hr-HR":Vr,"hu-HU":Hr,"it-IT":Wr,"ja-JP":Ur,"ko-KR":Gr,"lt-LT":Yr,"lv-LV":qr,"nb-NO":Xr,"nl-NL":Zr,"pl-PL":Qr,"pt-BR":Jr,"pt-PT":ei,"ro-RO":ti,"ru-RU":ni,"sk-SK":li,"sl-SI":ri,"sr-SP":ii,"sv-SE":oi,"tr-TR":si,"uk-UA":ai,"zh-CN":ci,"zh-TW":ui};function Cc(t,e,n){let{type:l="menu",isDisabled:r,trigger:i="press"}=t,o=se(),{triggerProps:a,overlayProps:s}=oc({type:l},e,n),c=m=>{if(!r&&!(i==="longPress"&&!m.altKey)&&n&&n.current)switch(m.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),e.toggle("last");break;default:"continuePropagation"in m&&m.continuePropagation()}},u=ze(Kc(Ir)),{longPressProps:p}=ul({isDisabled:r||i!=="longPress",accessibilityDescription:u.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),h={onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!r&&e.toggle(m.pointerType==="virtual"?"first":null)},onPress(m){m.pointerType==="touch"&&!r&&e.toggle()}};return delete a.onPress,{menuTriggerProps:{...a,...i==="press"?h:p,id:o,onKeyDown:c},menuProps:{...s,"aria-labelledby":o,autoFocus:e.focusStrategy||!0,onClose:e.close}}}function Ic(t,e){let{role:n="dialog"}=t,l=Ye();l=t["aria-label"]?void 0:l;let r=f.useRef(!1);return f.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){J(e.current);let i=setTimeout(()=>{document.activeElement===e.current&&(r.current=!0,e.current.blur(),J(e.current),r.current=!1)},500);return()=>{clearTimeout(i)}}},[e]),hc(),{dialogProps:{...pe(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||l,onBlur:i=>{r.current&&i.stopPropagation()}},titleProps:{id:l}}}class je{copy(){return new je(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}constructor(e=0,n=0){this.x=e,this.y=n}}class _e{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new je(this.x,this.y)}get topRight(){return new je(this.maxX,this.y)}get bottomLeft(){return new je(this.x,this.maxY)}get bottomRight(){return new je(this.maxX,this.maxY)}intersects(e){return this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let n of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[n]))return n;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let n=Math.min(this.x,e.x),l=Math.min(this.y,e.y),r=Math.max(this.maxX,e.maxX)-n,i=Math.max(this.maxY,e.maxY)-l;return new _e(n,l,r,i)}intersection(e){if(!this.intersects(e))return new _e(0,0,0,0);let n=Math.max(this.x,e.x),l=Math.max(this.y,e.y);return new _e(n,l,Math.min(this.maxX,e.maxX)-n,Math.min(this.maxY,e.maxY)-l)}copy(){return new _e(this.x,this.y,this.width,this.height)}constructor(e=0,n=0,l=0,r=0){this.x=e,this.y=n,this.width=l,this.height=r}}let Be=typeof window<"u"?window.performance:null,di=Be&&(Be.now||Be.webkitNow||Be.msNow||Be.mozNow);di&&di.bind(Be);function fi(t){return t&&t.__esModule?t.default:t}class pi{isCell(e){return e.type==="cell"}isRow(e){return e.type==="row"||e.type==="item"}findPreviousKey(e,n){let l=e!=null?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;l!=null;){let r=this.collection.getItem(l);if(!this.disabledKeys.has(l)&&(!n||n(r)))return l;l=this.collection.getKeyBefore(l)}}findNextKey(e,n){let l=e!=null?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;l!=null;){let r=this.collection.getItem(l);if(!this.disabledKeys.has(l)&&(!n||n(r)))return l;l=this.collection.getKeyAfter(l)}}getKeyBelow(e){let n=this.collection.getItem(e);if(n&&(this.isCell(n)&&(e=n.parentKey),e=this.findNextKey(e),e!=null)){if(this.isCell(n)){let l=this.collection.getItem(e);return ke(X(l,this.collection),n.index).key}if(this.focusMode==="row")return e}}getKeyAbove(e){let n=this.collection.getItem(e);if(n&&(this.isCell(n)&&(e=n.parentKey),e=this.findPreviousKey(e),e!=null)){if(this.isCell(n)){let l=this.collection.getItem(e);return ke(X(l,this.collection),n.index).key}if(this.focusMode==="row")return e}}getKeyRightOf(e){let n=this.collection.getItem(e);if(n){if(this.isRow(n)){let l=X(n,this.collection);return this.direction==="rtl"?Te(l).key:$e(l).key}if(this.isCell(n)){let l=this.collection.getItem(n.parentKey),r=X(l,this.collection),i=this.direction==="rtl"?ke(r,n.index-1):ke(r,n.index+1);return i?i.key:this.focusMode==="row"?n.parentKey:this.direction==="rtl"?this.getFirstKey(e):this.getLastKey(e)}}}getKeyLeftOf(e){let n=this.collection.getItem(e);if(n){if(this.isRow(n)){let l=X(n,this.collection);return this.direction==="rtl"?$e(l).key:Te(l).key}if(this.isCell(n)){let l=this.collection.getItem(n.parentKey),r=X(l,this.collection),i=this.direction==="rtl"?ke(r,n.index+1):ke(r,n.index-1);return i?i.key:this.focusMode==="row"?n.parentKey:this.direction==="rtl"?this.getLastKey(e):this.getFirstKey(e)}}}getFirstKey(e,n){let l;if(e!=null){if(l=this.collection.getItem(e),!l)return;if(this.isCell(l)&&!n){let r=this.collection.getItem(l.parentKey);return $e(X(r,this.collection)).key}}if(e=this.findNextKey(),e!=null&&l&&this.isCell(l)&&n||this.focusMode==="cell"){let r=this.collection.getItem(e);e=$e(X(r,this.collection)).key}return e}getLastKey(e,n){let l;if(e!=null){if(l=this.collection.getItem(e),!l)return;if(this.isCell(l)&&!n){let r=this.collection.getItem(l.parentKey),i=X(r,this.collection);return Te(i).key}}if(e=this.findPreviousKey(),e!=null&&l&&this.isCell(l)&&n||this.focusMode==="cell"){let r=this.collection.getItem(e),i=X(r,this.collection);e=Te(i).key}return e}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getItemRect(e){var n;if(this.layout)return(n=this.layout.getLayoutInfo(e))===null||n===void 0?void 0:n.rect;let l=this.getItem(e);if(l)return new _e(l.offsetLeft,l.offsetTop,l.offsetWidth,l.offsetHeight)}getPageHeight(){var e,n,l;return this.layout?(e=this.layout.virtualizer)===null||e===void 0?void 0:e.visibleRect.height:(n=this.ref)===null||n===void 0||(l=n.current)===null||l===void 0?void 0:l.offsetHeight}getContentHeight(){var e,n;return this.layout?this.layout.getContentSize().height:(e=this.ref)===null||e===void 0||(n=e.current)===null||n===void 0?void 0:n.scrollHeight}getKeyPageAbove(e){let n=this.getItemRect(e);if(!n)return null;let l=Math.max(0,n.maxY-this.getPageHeight());for(;n&&n.y>l;)e=this.getKeyAbove(e),n=this.getItemRect(e);return e}getKeyPageBelow(e){let n=this.getItemRect(e);if(!n)return null;let l=this.getPageHeight(),r=Math.min(this.getContentHeight(),n.y+l);for(;n&&n.maxY<r;){let i=this.getKeyBelow(e);n=this.getItemRect(i),i!=null&&(e=i)}return e}getKeyForSearch(e,n){if(!this.collator)return null;let l=this.collection,r=n??this.getFirstKey(),i=l.getItem(r);i.type==="cell"&&(r=i.parentKey);let o=!1;for(;r!=null;){let a=l.getItem(r);if(a.textValue){let s=a.textValue.slice(0,e.length);if(this.collator.compare(s,e)===0)return this.isRow(a)&&this.focusMode==="cell"?$e(X(a,this.collection)).key:a.key}r=this.findNextKey(r),r==null&&!o&&(r=this.getFirstKey(),o=!0)}return null}constructor(e){this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.ref=e.ref,this.direction=e.direction,this.collator=e.collator,this.layout=e.layout,this.focusMode=e.focusMode||"row"}}const vn=new WeakMap;var yn={},hi={};hi={deselectedItem:t=>`${t.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${e.number(t.count)} عنصر محدد`,other:()=>`${e.number(t.count)} عنصر محدد`})}.`,selectedItem:t=>`${t.item} المحدد`};var mi={};mi={deselectedItem:t=>`${t.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Няма избрани елементи",one:()=>`${e.number(t.count)} избран елемент`,other:()=>`${e.number(t.count)} избрани елементи`})}.`,selectedItem:t=>`${t.item} избран.`};var bi={};bi={deselectedItem:t=>`Položka ${t.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${e.number(t.count)} položka`,other:()=>`Vybráno ${e.number(t.count)} položek`})}.`,selectedItem:t=>`Vybrána položka ${t.item}.`};var gi={};gi={deselectedItem:t=>`${t.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer valgt",one:()=>`${e.number(t.count)} element valgt`,other:()=>`${e.number(t.count)} elementer valgt`})}.`,selectedItem:t=>`${t.item} valgt.`};var vi={};vi={deselectedItem:t=>`${t.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${e.number(t.count)} Element ausgewählt`,other:()=>`${e.number(t.count)} Elemente ausgewählt`})}.`,selectedItem:t=>`${t.item} ausgewählt.`};var yi={};yi={deselectedItem:t=>`Δεν επιλέχθηκε το στοιχείο ${t.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${e.number(t.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${e.number(t.count)} στοιχεία`})}.`,selectedItem:t=>`Επιλέχθηκε το στοιχείο ${t.item}.`};var $i={};$i={deselectedItem:t=>`${t.item} not selected.`,select:"Select",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"No items selected",one:()=>`${e.number(t.count)} item selected`,other:()=>`${e.number(t.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:t=>`${t.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var wi={};wi={deselectedItem:t=>`${t.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ningún elemento seleccionado",one:()=>`${e.number(t.count)} elemento seleccionado`,other:()=>`${e.number(t.count)} elementos seleccionados`})}.`,selectedItem:t=>`${t.item} seleccionado.`};var Pi={};Pi={deselectedItem:t=>`${t.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Üksusi pole valitud",one:()=>`${e.number(t.count)} üksus valitud`,other:()=>`${e.number(t.count)} üksust valitud`})}.`,selectedItem:t=>`${t.item} valitud.`};var Ei={};Ei={deselectedItem:t=>`Kohdetta ${t.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${e.number(t.count)} kohde valittu`,other:()=>`${e.number(t.count)} kohdetta valittu`})}.`,selectedItem:t=>`${t.item} valittu.`};var xi={};xi={deselectedItem:t=>`${t.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Aucun élément sélectionné",one:()=>`${e.number(t.count)} élément sélectionné`,other:()=>`${e.number(t.count)} éléments sélectionnés`})}.`,selectedItem:t=>`${t.item} sélectionné.`};var ki={};ki={deselectedItem:t=>`${t.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${e.number(t.count)} נבחר`,other:()=>`${e.number(t.count)} פריטים נבחרו`})}.`,selectedItem:t=>`${t.item} נבחר.`};var Ti={};Ti={deselectedItem:t=>`Stavka ${t.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${e.number(t.count)} stavka`,other:()=>`Odabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`Stavka ${t.item} je odabrana.`};var Si={};Si={deselectedItem:t=>`${t.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${e.number(t.count)} elem kijelölve`,other:()=>`${e.number(t.count)} elem kijelölve`})}.`,selectedItem:t=>`${t.item} kijelölve.`};var Ki={};Ki={deselectedItem:t=>`${t.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nessun elemento selezionato",one:()=>`${e.number(t.count)} elemento selezionato`,other:()=>`${e.number(t.count)} elementi selezionati`})}.`,selectedItem:t=>`${t.item} selezionato.`};var Ci={};Ci={deselectedItem:t=>`${t.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"項目が選択されていません",one:()=>`${e.number(t.count)} 項目を選択しました`,other:()=>`${e.number(t.count)} 項目を選択しました`})}。`,selectedItem:t=>`${t.item} を選択しました。`};var Ii={};Ii={deselectedItem:t=>`${t.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"선택된 항목이 없습니다",one:()=>`${e.number(t.count)}개 항목이 선택되었습니다`,other:()=>`${e.number(t.count)}개 항목이 선택되었습니다`})}.`,selectedItem:t=>`${t.item}이(가) 선택되었습니다.`};var Mi={};Mi={deselectedItem:t=>`${t.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${e.number(t.count)} elementas`,other:()=>`Pasirinkta elementų: ${e.number(t.count)}`})}.`,selectedItem:t=>`Pasirinkta: ${t.item}.`};var Ai={};Ai={deselectedItem:t=>`Vienums ${t.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`,other:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`})}.`,selectedItem:t=>`Atlasīts vienums ${t.item}.`};var Di={};Di={deselectedItem:t=>`${t.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer er valgt",one:()=>`${e.number(t.count)} element er valgt`,other:()=>`${e.number(t.count)} elementer er valgt`})}.`,selectedItem:t=>`${t.item} er valgt.`};var Ni={};Ni={deselectedItem:t=>`${t.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Geen items geselecteerd",one:()=>`${e.number(t.count)} item geselecteerd`,other:()=>`${e.number(t.count)} items geselecteerd`})}.`,selectedItem:t=>`${t.item} geselecteerd.`};var Ri={};Ri={deselectedItem:t=>`Nie zaznaczono ${t.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${e.number(t.count)} zaznaczony element`,other:()=>`${e.number(t.count)} zaznaczonych elementów`})}.`,selectedItem:t=>`Zaznaczono ${t.item}.`};var zi={};zi={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var Fi={};Fi={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var Li={};Li={deselectedItem:t=>`${t.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Niciun element selectat",one:()=>`${e.number(t.count)} element selectat`,other:()=>`${e.number(t.count)} elemente selectate`})}.`,selectedItem:t=>`${t.item} selectat.`};var Oi={};Oi={deselectedItem:t=>`${t.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Нет выбранных элементов",one:()=>`${e.number(t.count)} элемент выбран`,other:()=>`${e.number(t.count)} элементов выбрано`})}.`,selectedItem:t=>`${t.item} выбрано.`};var ji={};ji={deselectedItem:t=>`Nevybraté položky: ${t.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Žiadne vybraté položky",one:()=>`${e.number(t.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${e.number(t.count)}`})}.`,selectedItem:t=>`Vybraté položky: ${t.item}.`};var _i={};_i={deselectedItem:t=>`Element ${t.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Noben element ni izbran",one:()=>`${e.number(t.count)} element je izbran`,other:()=>`${e.number(t.count)} elementov je izbranih`})}.`,selectedItem:t=>`Element ${t.item} je izbran.`};var Bi={};Bi={deselectedItem:t=>`${t.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${e.number(t.count)} stavka`,other:()=>`Izabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`${t.item} je izabrano.`};var Vi={};Vi={deselectedItem:t=>`${t.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Inga markerade objekt",one:()=>`${e.number(t.count)} markerat objekt`,other:()=>`${e.number(t.count)} markerade objekt`})}.`,selectedItem:t=>`${t.item} markerat.`};var Hi={};Hi={deselectedItem:t=>`${t.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${e.number(t.count)} öge seçildi`,other:()=>`${e.number(t.count)} öge seçildi`})}.`,selectedItem:t=>`${t.item} seçildi.`};var Wi={};Wi={deselectedItem:t=>`${t.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Жодних елементів не вибрано",one:()=>`${e.number(t.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${e.number(t.count)}`})}.`,selectedItem:t=>`${t.item} вибрано.`};var Ui={};Ui={deselectedItem:t=>`未选择 ${t.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未选择项目",one:()=>`已选择 ${e.number(t.count)} 个项目`,other:()=>`已选择 ${e.number(t.count)} 个项目`})}。`,selectedItem:t=>`已选择 ${t.item}。`};var Gi={};Gi={deselectedItem:t=>`未選取「${t.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未選取任何項目",one:()=>`已選取 ${e.number(t.count)} 個項目`,other:()=>`已選取 ${e.number(t.count)} 個項目`})}。`,selectedItem:t=>`已選取「${t.item}」。`},yn={"ar-AE":hi,"bg-BG":mi,"cs-CZ":bi,"da-DK":gi,"de-DE":vi,"el-GR":yi,"en-US":$i,"es-ES":wi,"et-EE":Pi,"fi-FI":Ei,"fr-FR":xi,"he-IL":ki,"hr-HR":Ti,"hu-HU":Si,"it-IT":Ki,"ja-JP":Ci,"ko-KR":Ii,"lt-LT":Mi,"lv-LV":Ai,"nb-NO":Di,"nl-NL":Ni,"pl-PL":Ri,"pt-BR":zi,"pt-PT":Fi,"ro-RO":Li,"ru-RU":Oi,"sk-SK":ji,"sl-SI":_i,"sr-SP":Bi,"sv-SE":Vi,"tr-TR":Hi,"uk-UA":Wi,"zh-CN":Ui,"zh-TW":Gi};function Mc(t,e){var n;let{getRowText:l=a=>{var s,c,u;return(n=(c=(s=e.collection).getTextValue)===null||c===void 0?void 0:c.call(s,a))!==null&&n!==void 0?n:(u=e.collection.getItem(a))===null||u===void 0?void 0:u.textValue}}=t,r=ze(fi(yn)),i=e.selectionManager.rawSelection,o=f.useRef(i);Un(()=>{var a;if(!e.selectionManager.isFocused){o.current=i;return}let s=Yi(i,o.current),c=Yi(o.current,i),u=e.selectionManager.selectionBehavior==="replace",p=[];if(e.selectionManager.selectedKeys.size===1&&u){if(e.collection.getItem(e.selectionManager.selectedKeys.keys().next().value)){let h=l(e.selectionManager.selectedKeys.keys().next().value);h&&p.push(r.format("selectedItem",{item:h}))}}else if(s.size===1&&c.size===0){let h=l(s.keys().next().value);h&&p.push(r.format("selectedItem",{item:h}))}else if(c.size===1&&s.size===0&&e.collection.getItem(c.keys().next().value)){let h=l(c.keys().next().value);h&&p.push(r.format("deselectedItem",{item:h}))}e.selectionManager.selectionMode==="multiple"&&(p.length===0||i==="all"||i.size>1||o.current==="all"||((a=o.current)===null||a===void 0?void 0:a.size)>1)&&p.push(i==="all"?r.format("selectedAll"):r.format("selectedCount",{count:i.size})),p.length>0&&wl(p.join(" ")),o.current=i},[i])}function Yi(t,e){let n=new Set;if(t==="all"||e==="all")return n;for(let l of t.keys())e.has(l)||n.add(l);return n}function Ac(t){let e=ze(fi(yn)),n=sl(),l=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,r=f.useMemo(()=>{let o=t.selectionManager.selectionMode,a=t.selectionManager.selectionBehavior,s;return l&&(s=e.format("longPressToSelect")),a==="replace"&&o!=="none"&&t.hasItemActions?s:void 0},[t.selectionManager.selectionMode,t.selectionManager.selectionBehavior,t.hasItemActions,e,l]);return pt(r)}function Dc(t,e,n){let{isVirtualized:l,keyboardDelegate:r,focusMode:i,scrollRef:o,getRowText:a,onRowAction:s,onCellAction:c}=t,{selectionManager:u}=e;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let p=Tt({usage:"search",sensitivity:"base"}),{direction:h}=ve(),m=e.selectionManager.disabledBehavior,g=f.useMemo(()=>r||new pi({collection:e.collection,disabledKeys:m==="selection"?new Set:e.disabledKeys,ref:n,direction:h,collator:p,focusMode:i}),[r,e.collection,e.disabledKeys,m,n,h,p,i]),{collectionProps:x}=$r({ref:n,selectionManager:u,keyboardDelegate:g,isVirtualized:l,scrollRef:o}),w=se(t.id);vn.set(e,{keyboardDelegate:g,actions:{onRowAction:s,onCellAction:c}});let S=Ac({selectionManager:u,hasItemActions:!!(s||c)}),y=pe(t,{labelable:!0}),$=f.useCallback(_=>{if(u.isFocused){_.currentTarget.contains(_.target)||u.setFocused(!1);return}_.currentTarget.contains(_.target)&&u.setFocused(!0)},[u]),M=f.useMemo(()=>({onBlur:x.onBlur,onFocus:$}),[$,x.onBlur]),C=Aa(n,{isDisabled:e.collection.size!==0}),L=B(y,{role:"grid",id:w,"aria-multiselectable":u.selectionMode==="multiple"?"true":void 0},e.isKeyboardNavigationDisabled?M:x,e.collection.size===0&&{tabIndex:C?-1:0},S);return l&&(L["aria-rowcount"]=e.collection.size,L["aria-colcount"]=e.collection.columnCount),Mc({getRowText:a},e),{gridProps:L}}function Nc(){return{rowGroupProps:{role:"rowgroup"}}}function Rc(t,e,n){let{node:l,isVirtualized:r,shouldSelectOnPressUp:i,onAction:o}=t,{actions:{onRowAction:a}}=vn.get(e),{itemProps:s,...c}=hn({selectionManager:e.selectionManager,key:l.key,ref:n,isVirtualized:r,shouldSelectOnPressUp:i,onAction:a?()=>a(l.key):o,isDisabled:e.collection.size===0}),u=e.selectionManager.isSelected(l.key),p={role:"row","aria-selected":e.selectionManager.selectionMode!=="none"?u:void 0,"aria-disabled":c.isDisabled||void 0,...s};return r&&(p["aria-rowindex"]=l.index+1),{rowProps:p,...c}}function qi(t,e,n){let{node:l,isVirtualized:r,focusMode:i="child",shouldSelectOnPressUp:o,onAction:a}=t,{direction:s}=ve(),{keyboardDelegate:c,actions:{onCellAction:u}}=vn.get(e),p=f.useRef(null),h=()=>{let $=ne(n.current);if(i==="child"){if(n.current.contains(document.activeElement)&&n.current!==document.activeElement)return;let M=e.selectionManager.childFocusStrategy==="last"?$n($):$.firstChild();if(M){J(M);return}}(p.current!=null&&l.key!==p.current||!n.current.contains(document.activeElement))&&J(n.current)},{itemProps:m,isPressed:g}=hn({selectionManager:e.selectionManager,key:l.key,ref:n,isVirtualized:r,focus:h,shouldSelectOnPressUp:o,onAction:u?()=>u(l.key):a,isDisabled:e.collection.size===0}),S=B(m,{role:"gridcell",onKeyDownCapture:$=>{if(!$.currentTarget.contains($.target)||e.isKeyboardNavigationDisabled)return;let M=ne(n.current);switch(M.currentNode=document.activeElement,$.key){case"ArrowLeft":{let C=s==="rtl"?M.nextNode():M.previousNode();if(i==="child"&&C===n.current&&(C=null),C)$.preventDefault(),$.stopPropagation(),J(C),xe(C,{containingElement:ce(n.current)});else{if(c.getKeyLeftOf(l.key)!==l.key)break;$.preventDefault(),$.stopPropagation(),i==="cell"&&s==="rtl"?(J(n.current),xe(n.current,{containingElement:ce(n.current)})):(M.currentNode=n.current,C=s==="rtl"?M.firstChild():$n(M),C&&(J(C),xe(C,{containingElement:ce(n.current)})))}break}case"ArrowRight":{let C=s==="rtl"?M.previousNode():M.nextNode();if(i==="child"&&C===n.current&&(C=null),C)$.preventDefault(),$.stopPropagation(),J(C),xe(C,{containingElement:ce(n.current)});else{if(c.getKeyRightOf(l.key)!==l.key)break;$.preventDefault(),$.stopPropagation(),i==="cell"&&s==="ltr"?(J(n.current),xe(n.current,{containingElement:ce(n.current)})):(M.currentNode=n.current,C=s==="rtl"?$n(M):M.firstChild(),C&&(J(C),xe(C,{containingElement:ce(n.current)})))}break}case"ArrowUp":case"ArrowDown":!$.altKey&&n.current.contains($.target)&&($.stopPropagation(),$.preventDefault(),n.current.parentElement.dispatchEvent(new KeyboardEvent($.nativeEvent.type,$.nativeEvent)));break}},onFocus:$=>{if(p.current=l.key,$.target!==n.current){Ze()||e.selectionManager.setFocusedKey(l.key);return}requestAnimationFrame(()=>{i==="child"&&document.activeElement===n.current&&h()})}});var y;return r&&(S["aria-colindex"]=((y=l.colIndex)!==null&&y!==void 0?y:l.index)+1),o&&S.tabIndex!=null&&S.onPointerDown==null&&(S.onPointerDown=$=>{let M=$.currentTarget,C=M.getAttribute("tabindex");M.removeAttribute("tabindex"),requestAnimationFrame(()=>{M.setAttribute("tabindex",C)})}),{gridCellProps:S,isPressed:g}}function $n(t){let e,n;do n=t.lastChild(),n&&(e=n);while(n);return e}const Xi=new WeakMap,Zi=new WeakMap,Qi=new WeakMap;function zc(t,e,n){let{value:l,children:r,"aria-label":i,"aria-labelledby":o}=t;const a=t.isDisabled||e.isDisabled;let s=r!=null,c=i!=null||o!=null;!s&&!c&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let u=e.selectedValue===l,p=y=>{y.stopPropagation(),e.setSelectedValue(l)},{pressProps:h,isPressed:m}=De({isDisabled:a}),{focusableProps:g}=kt(B(t,{onFocus:()=>e.setLastFocusedValue(l)}),n),x=B(h,g),w=pe(t,{labelable:!0}),S=-1;return e.selectedValue!=null?e.selectedValue===l&&(S=0):(e.lastFocusedValue===l||e.lastFocusedValue==null)&&(S=0),a&&(S=void 0),Ht(n,e.selectedValue,e.setSelectedValue),{inputProps:B(w,{...x,type:"radio",name:Xi.get(e),tabIndex:S,disabled:a,checked:u,value:l,onChange:p,"aria-describedby":[t["aria-describedby"],e.isInvalid?Qi.get(e):null,Zi.get(e)].filter(Boolean).join(" ")||void 0}),isDisabled:a,isSelected:u,isPressed:m}}function Fc(t,e){let{name:n,isReadOnly:l,isRequired:r,isDisabled:i,orientation:o="vertical"}=t,{direction:a}=ve(),{labelProps:s,fieldProps:c,descriptionProps:u,errorMessageProps:p}=El({...t,labelElementType:"span"});Zi.set(e,u.id),Qi.set(e,p.id);let h=pe(t,{labelable:!0}),{focusWithinProps:m}=Qe({onBlurWithin(){e.selectedValue||e.setLastFocusedValue(null)}}),g=w=>{let S;switch(w.key){case"ArrowRight":a==="rtl"&&o!=="vertical"?S="prev":S="next";break;case"ArrowLeft":a==="rtl"&&o!=="vertical"?S="next":S="prev";break;case"ArrowDown":S="next";break;case"ArrowUp":S="prev";break;default:return}w.preventDefault();let y=ne(w.currentTarget,{from:w.target}),$;S==="next"?($=y.nextNode(),$||(y.currentNode=w.currentTarget,$=y.firstChild())):($=y.previousNode(),$||(y.currentNode=w.currentTarget,$=y.lastChild())),$&&($.focus(),e.setSelectedValue($.value))},x=se(n);return Xi.set(e,x),{radioGroupProps:B(h,{role:"radiogroup",onKeyDown:g,"aria-invalid":e.isInvalid||void 0,"aria-errormessage":t["aria-errormessage"],"aria-readonly":l||void 0,"aria-required":r||void 0,"aria-disabled":i||void 0,"aria-orientation":o,...c,...m}),labelProps:s,descriptionProps:u,errorMessageProps:p}}function Lc(t,e,n){let{keyboardDelegate:l,isDisabled:r}=t,i=Tt({usage:"search",sensitivity:"base"}),o=f.useMemo(()=>l||new Er(e.collection,e.disabledKeys,null,i),[l,e.collection,e.disabledKeys,i]),{menuTriggerProps:a,menuProps:s}=Cc({isDisabled:r,type:"listbox"},e,n),c=y=>{switch(y.key){case"ArrowLeft":{y.preventDefault();let $=e.selectedKey!=null?o.getKeyAbove(e.selectedKey):o.getFirstKey();$&&e.setSelectedKey($);break}case"ArrowRight":{y.preventDefault();let $=e.selectedKey!=null?o.getKeyBelow(e.selectedKey):o.getFirstKey();$&&e.setSelectedKey($);break}}},{typeSelectProps:u}=yr({keyboardDelegate:o,selectionManager:e.selectionManager,onTypeSelect(y){e.setSelectedKey(y)}}),{labelProps:p,fieldProps:h,descriptionProps:m,errorMessageProps:g}=El({...t,labelElementType:"span"});u.onKeyDown=u.onKeyDownCapture,delete u.onKeyDownCapture;let x=pe(t,{labelable:!0}),w=B(u,a,h),S=se();return{labelProps:{...p,onClick:()=>{t.isDisabled||(n.current.focus(),ua("keyboard"))}},triggerProps:B(x,{...w,isDisabled:r,onKeyDown:qe(w.onKeyDown,c,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[S,w["aria-labelledby"],w["aria-label"]&&!w["aria-labelledby"]?w.id:null].filter(Boolean).join(" "),onFocus(y){e.isFocused||(t.onFocus&&t.onFocus(y),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(y){e.isOpen||(t.onBlur&&t.onBlur(y),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:S},menuProps:{...s,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:y=>{y.currentTarget.contains(y.relatedTarget)||(t.onBlur&&t.onBlur(y),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[h["aria-labelledby"],w["aria-label"]&&!h["aria-labelledby"]?w.id:null].filter(Boolean).join(" ")},descriptionProps:m,errorMessageProps:g}}function Oc(t,e,n){let{autoComplete:l,name:r,isDisabled:i}=t,o=sl(),{visuallyHiddenProps:a}=kl();Ht(t.selectRef,e.selectedKey,e.setSelectedKey);var s;return{containerProps:{...a,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{type:"text",tabIndex:o==null||e.isFocused||e.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:i},selectProps:{tabIndex:-1,autoComplete:l,disabled:i,name:r,size:e.collection.size,value:(s=e.selectedKey)!==null&&s!==void 0?s:"",onChange:c=>e.setSelectedKey(c.target.value)}}}function jc(t){let{state:e,triggerRef:n,label:l,name:r,isDisabled:i}=t,o=f.useRef(null),{containerProps:a,inputProps:s,selectProps:c}=Oc({...t,selectRef:o},e,n);var u;return e.collection.size<=300?f.createElement("div",{...a,"data-testid":"hidden-select-container"},f.createElement("input",s),f.createElement("label",null,l,f.createElement("select",{...c,ref:o},f.createElement("option",null),[...e.collection.getKeys()].map(p=>{let h=e.collection.getItem(p);if(h.type==="item")return f.createElement("option",{key:h.key,value:h.key},h.textValue)})))):r?f.createElement("input",{type:"hidden",autoComplete:c.autoComplete,name:r,disabled:i,value:(u=e.selectedKey)!==null&&u!==void 0?u:""}):null}function _c(t,e,n){let{inputProps:l,isSelected:r,isPressed:i,isDisabled:o,isReadOnly:a}=Ha(t,e,n);return{inputProps:{...l,role:"switch",checked:r},isSelected:r,isPressed:i,isDisabled:o,isReadOnly:a}}let Bc=!1;function It(){return Bc}function Ji(t){return t&&t.__esModule?t.default:t}const wn=new WeakMap;function Pn(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function Vc(t,e){let n=wn.get(t);if(!n)throw new Error("Unknown grid");return`${n}-${Pn(e)}`}function eo(t,e,n){let l=wn.get(t);if(!l)throw new Error("Unknown grid");return`${l}-${Pn(e)}-${Pn(n)}`}function Hc(t,e){return[...t.collection.rowHeaderColumnKeys].map(n=>eo(t,e,n)).join(" ")}var En={},to={};to={ascending:"تصاعدي",ascendingSort:t=>`ترتيب حسب العمود ${t.columnName} بترتيب تصاعدي`,columnSize:t=>`${t.value} بالبكسل`,descending:"تنازلي",descendingSort:t=>`ترتيب حسب العمود ${t.columnName} بترتيب تنازلي`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var no={};no={ascending:"възходящ",ascendingSort:t=>`сортирано по колона ${t.columnName} във възходящ ред`,columnSize:t=>`${t.value} пиксела`,descending:"низходящ",descendingSort:t=>`сортирано по колона ${t.columnName} в низходящ ред`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var lo={};lo={ascending:"vzestupně",ascendingSort:t=>`řazeno vzestupně podle sloupce ${t.columnName}`,columnSize:t=>`${t.value} pixelů`,descending:"sestupně",descendingSort:t=>`řazeno sestupně podle sloupce ${t.columnName}`,resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var ro={};ro={ascending:"stigende",ascendingSort:t=>`sorteret efter kolonne ${t.columnName} i stigende rækkefølge`,columnSize:t=>`${t.value} pixels`,descending:"faldende",descendingSort:t=>`sorteret efter kolonne ${t.columnName} i faldende rækkefølge`,resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var io={};io={ascending:"aufsteigend",ascendingSort:t=>`sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,columnSize:t=>`${t.value} Pixel`,descending:"absteigend",descendingSort:t=>`sortiert nach Spalte ${t.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var oo={};oo={ascending:"αύξουσα",ascendingSort:t=>`διαλογή ανά στήλη ${t.columnName} σε αύξουσα σειρά`,columnSize:t=>`${t.value} pixel`,descending:"φθίνουσα",descendingSort:t=>`διαλογή ανά στήλη ${t.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var so={};so={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:t=>`sorted by column ${t.columnName} in ascending order`,descendingSort:t=>`sorted by column ${t.columnName} in descending order`,columnSize:t=>`${t.value} pixels`,resizerDescription:"Press Enter to start resizing"};var ao={};ao={ascending:"de subida",ascendingSort:t=>`ordenado por columna ${t.columnName} en orden de subida`,columnSize:t=>`${t.value} píxeles`,descending:"de bajada",descendingSort:t=>`ordenado por columna ${t.columnName} en orden de bajada`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var co={};co={ascending:"tõusev järjestus",ascendingSort:t=>`sorditud veeru järgi ${t.columnName} tõusvas järjestuses`,columnSize:t=>`${t.value} pikslit`,descending:"laskuv järjestus",descendingSort:t=>`sorditud veeru järgi ${t.columnName} laskuvas järjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var uo={};uo={ascending:"nouseva",ascendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan nousevassa järjestyksessä`,columnSize:t=>`${t.value} pikseliä`,descending:"laskeva",descendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan laskevassa järjestyksessä`,resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var fo={};fo={ascending:"croissant",ascendingSort:t=>`trié en fonction de la colonne ${t.columnName} par ordre croissant`,columnSize:t=>`${t.value} pixels`,descending:"décroissant",descendingSort:t=>`trié en fonction de la colonne ${t.columnName} par ordre décroissant`,resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var po={};po={ascending:"עולה",ascendingSort:t=>`מוין לפי עמודה ${t.columnName} בסדר עולה`,columnSize:t=>`${t.value} פיקסלים`,descending:"יורד",descendingSort:t=>`מוין לפי עמודה ${t.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var ho={};ho={ascending:"rastući",ascendingSort:t=>`razvrstano po stupcima ${t.columnName} rastućem redoslijedom`,columnSize:t=>`${t.value} piksela`,descending:"padajući",descendingSort:t=>`razvrstano po stupcima ${t.columnName} padajućim redoslijedom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var mo={};mo={ascending:"növekvő",ascendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, növekvő sorrendben`,columnSize:t=>`${t.value} képpont`,descending:"csökkenő",descendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, csökkenő 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"};var bo={};bo={ascending:"crescente",ascendingSort:t=>`in ordine crescente in base alla colonna ${t.columnName}`,columnSize:t=>`${t.value} pixel`,descending:"decrescente",descendingSort:t=>`in ordine decrescente in base alla colonna ${t.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var go={};go={ascending:"昇順",ascendingSort:t=>`列 ${t.columnName} を昇順で並べ替え`,columnSize:t=>`${t.value} ピクセル`,descending:"降順",descendingSort:t=>`列 ${t.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var vo={};vo={ascending:"오름차순",ascendingSort:t=>`${t.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:t=>`${t.value} 픽셀`,descending:"내림차순",descendingSort:t=>`${t.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var yo={};yo={ascending:"didėjančia tvarka",ascendingSort:t=>`surikiuota pagal stulpelį ${t.columnName} didėjančia tvarka`,columnSize:t=>`${t.value} piks.`,descending:"mažėjančia tvarka",descendingSort:t=>`surikiuota pagal stulpelį ${t.columnName} mažėjančia tvarka`,resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var $o={};$o={ascending:"augošā secībā",ascendingSort:t=>`kārtots pēc kolonnas ${t.columnName} augošā secībā`,columnSize:t=>`${t.value} pikseļi`,descending:"dilstošā secībā",descendingSort:t=>`kārtots pēc kolonnas ${t.columnName} dilstošā secībā`,resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var wo={};wo={ascending:"stigende",ascendingSort:t=>`sortert etter kolonne ${t.columnName} i stigende rekkefølge`,columnSize:t=>`${t.value} piksler`,descending:"synkende",descendingSort:t=>`sortert etter kolonne ${t.columnName} i synkende rekkefølge`,resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var Po={};Po={ascending:"oplopend",ascendingSort:t=>`gesorteerd in oplopende volgorde in kolom ${t.columnName}`,columnSize:t=>`${t.value} pixels`,descending:"aflopend",descendingSort:t=>`gesorteerd in aflopende volgorde in kolom ${t.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var Eo={};Eo={ascending:"rosnąco",ascendingSort:t=>`posortowano według kolumny ${t.columnName} w porządku rosnącym`,columnSize:t=>`Liczba pikseli: ${t.value}`,descending:"malejąco",descendingSort:t=>`posortowano według kolumny ${t.columnName} w porządku malejącym`,resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var xo={};xo={ascending:"crescente",ascendingSort:t=>`classificado pela coluna ${t.columnName} em ordem crescente`,columnSize:t=>`${t.value} pixels`,descending:"decrescente",descendingSort:t=>`classificado pela coluna ${t.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var ko={};ko={ascending:"ascendente",ascendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem ascendente`,columnSize:t=>`${t.value} pixels`,descending:"descendente",descendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var To={};To={ascending:"crescătoare",ascendingSort:t=>`sortate după coloana ${t.columnName} în ordine crescătoare`,columnSize:t=>`${t.value} pixeli`,descending:"descrescătoare",descendingSort:t=>`sortate după coloana ${t.columnName} în ordine descrescătoare`,resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var So={};So={ascending:"возрастание",ascendingSort:t=>`сортировать столбец ${t.columnName} в порядке возрастания`,columnSize:t=>`${t.value} пикс.`,descending:"убывание",descendingSort:t=>`сортировать столбец ${t.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var Ko={};Ko={ascending:"vzostupne",ascendingSort:t=>`zoradené zostupne podľa stĺpca ${t.columnName}`,columnSize:t=>`Počet pixelov: ${t.value}`,descending:"zostupne",descendingSort:t=>`zoradené zostupne podľa stĺpca ${t.columnName}`,resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var Co={};Co={ascending:"naraščajoče",ascendingSort:t=>`razvrščeno po stolpcu ${t.columnName} v naraščajočem vrstnem redu`,columnSize:t=>`${t.value} slikovnih pik`,descending:"padajoče",descendingSort:t=>`razvrščeno po stolpcu ${t.columnName} v padajočem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var Io={};Io={ascending:"rastući",ascendingSort:t=>`sortirano po kolonama ${t.columnName} padajućim redosledom`,columnSize:t=>`${t.value} piksela`,descending:"padajući",descendingSort:t=>`sortirano po kolonama ${t.columnName} padajućim redosledom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var Mo={};Mo={ascending:"stigande",ascendingSort:t=>`sorterat på kolumn ${t.columnName} i stigande ordning`,columnSize:t=>`${t.value} pixlar`,descending:"fallande",descendingSort:t=>`sorterat på kolumn ${t.columnName} i fallande ordning`,resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var Ao={};Ao={ascending:"artan sırada",ascendingSort:t=>`${t.columnName} sütuna göre artan düzende sırala`,columnSize:t=>`${t.value} piksel`,descending:"azalan sırada",descendingSort:t=>`${t.columnName} sütuna göre azalan düzende sırala`,resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var Do={};Do={ascending:"висхідний",ascendingSort:t=>`відсортовано за стовпцем ${t.columnName} у висхідному порядку`,columnSize:t=>`${t.value} пікс.`,descending:"низхідний",descendingSort:t=>`відсортовано за стовпцем ${t.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var No={};No={ascending:"升序",ascendingSort:t=>`按列 ${t.columnName} 升序排序`,columnSize:t=>`${t.value} 像素`,descending:"降序",descendingSort:t=>`按列 ${t.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var Ro={};Ro={ascending:"遞增",ascendingSort:t=>`已依據「${t.columnName}」欄遞增排序`,columnSize:t=>`${t.value} 像素`,descending:"遞減",descendingSort:t=>`已依據「${t.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"},En={"ar-AE":to,"bg-BG":no,"cs-CZ":lo,"da-DK":ro,"de-DE":io,"el-GR":oo,"en-US":so,"es-ES":ao,"et-EE":co,"fi-FI":uo,"fr-FR":fo,"he-IL":po,"hr-HR":ho,"hu-HU":mo,"it-IT":bo,"ja-JP":go,"ko-KR":vo,"lt-LT":yo,"lv-LV":$o,"nb-NO":wo,"nl-NL":Po,"pl-PL":Eo,"pt-BR":xo,"pt-PT":ko,"ro-RO":To,"ru-RU":So,"sk-SK":Ko,"sl-SI":Co,"sr-SP":Io,"sv-SE":Mo,"tr-TR":Ao,"uk-UA":Do,"zh-CN":No,"zh-TW":Ro};class Wc extends pi{isCell(e){return e.type==="cell"||e.type==="rowheader"||e.type==="column"}getKeyBelow(e){let n=this.collection.getItem(e);if(n){if(n.type==="column"){let l=$e(X(n,this.collection));if(l)return l.key;let r=this.getFirstKey();if(r==null)return;let i=this.collection.getItem(r);return ke(X(i,this.collection),n.index).key}return super.getKeyBelow(e)}}getKeyAbove(e){let n=this.collection.getItem(e);if(!n)return;if(n.type==="column"){let r=this.collection.getItem(n.parentKey);return r&&r.type==="column"?r.key:void 0}let l=super.getKeyAbove(e);return l!=null&&this.collection.getItem(l).type!=="headerrow"?l:this.isCell(n)?this.collection.columns[n.index].key:this.collection.columns[0].key}findNextColumnKey(e){let n=this.findNextKey(e.key,r=>r.type==="column");if(n!=null)return n;let l=this.collection.headerRows[e.level];for(let r of X(l,this.collection))if(r.type==="column")return r.key}findPreviousColumnKey(e){let n=this.findPreviousKey(e.key,i=>i.type==="column");if(n!=null)return n;let l=this.collection.headerRows[e.level],r=[...X(l,this.collection)];for(let i=r.length-1;i>=0;i--){let o=r[i];if(o.type==="column")return o.key}}getKeyRightOf(e){let n=this.collection.getItem(e);if(n)return n.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(n):this.findNextColumnKey(n):super.getKeyRightOf(e)}getKeyLeftOf(e){let n=this.collection.getItem(e);if(n)return n.type==="column"?this.direction==="rtl"?this.findNextColumnKey(n):this.findPreviousColumnKey(n):super.getKeyLeftOf(e)}getKeyForSearch(e,n){if(!this.collator)return null;let l=this.collection,r=n??this.getFirstKey();if(r==null)return null;let i=l.getItem(r);i.type==="cell"&&(r=i.parentKey);let o=!1;for(;r!=null;){let a=l.getItem(r);for(let s of X(a,this.collection)){let c=l.columns[s.index];if(l.rowHeaderColumnKeys.has(c.key)&&s.textValue){let u=s.textValue.slice(0,e.length);if(this.collator.compare(u,e)===0)return(n!=null?l.getItem(n):i).type==="cell"?s.key:a.key}}r=this.getKeyBelow(r),r==null&&!o&&(r=this.getFirstKey(),o=!0)}return null}}function Uc(t,e,n){let{keyboardDelegate:l,isVirtualized:r,layout:i}=t,o=Tt({usage:"search",sensitivity:"base"}),{direction:a}=ve(),s=e.selectionManager.disabledBehavior,c=f.useMemo(()=>l||new Wc({collection:e.collection,disabledKeys:s==="selection"?new Set:e.disabledKeys,ref:n,direction:a,collator:o,layout:i}),[l,e.collection,e.disabledKeys,s,n,a,o,i]),u=se(t.id);wn.set(e,u);let{gridProps:p}=Dc({...t,id:u,keyboardDelegate:c},e,n);r&&(p["aria-rowcount"]=e.collection.size+e.collection.headerRows.length),It()&&"expandedKeys"in e&&(p.role="treegrid");let{column:h,direction:m}=e.sortDescriptor||{},g=ze(Ji(En)),x=f.useMemo(()=>{var S;let y=(S=e.collection.columns.find($=>$.key===h))===null||S===void 0?void 0:S.textValue;return m&&h?g.format(`${m}Sort`,{columnName:y}):void 0},[m,h,e.collection.columns]),w=pt(x);return Un(()=>{wl(x,"assertive",500)},[x]),{gridProps:B(p,w,{"aria-describedby":[w["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")})}}function Gc(t,e,n){var l,r;let{node:i}=t,o=i.props.allowsSorting,{gridCellProps:a}=qi({...t,focusMode:"child"},e,n),s=i.props.isSelectionCell&&e.selectionManager.selectionMode==="single",{pressProps:c}=De({isDisabled:!o||s,onPress(){e.sort(i.key)},ref:n}),{focusableProps:u}=kt({},n),p=null,h=((l=e.sortDescriptor)===null||l===void 0?void 0:l.column)===i.key,m=(r=e.sortDescriptor)===null||r===void 0?void 0:r.direction;i.props.allowsSorting&&!dt()&&(p=h?m:"none");let g=ze(Ji(En)),x;o&&(x=`${g.format("sortable")}`,h&&m&&dt()&&(x=`${x}, ${g.format(m)}`));let w=pt(x),S=e.collection.size===0;return f.useEffect(()=>{S&&e.selectionManager.focusedKey===i.key&&e.selectionManager.setFocusedKey(null)},[S,e.selectionManager,i.key]),{columnHeaderProps:{...B(a,c,u,w,S&&{tabIndex:-1}),role:"columnheader",id:Vc(e,i.key),"aria-colspan":i.colspan&&i.colspan>1?i.colspan:null,"aria-sort":p}}}const zo={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Yc(t,e,n){let{node:l,isVirtualized:r}=t,{rowProps:i,...o}=Rc(t,e,n),{direction:a}=ve();r&&!(It()&&"expandedKeys"in e)?i["aria-rowindex"]=l.index+1+e.collection.headerRows.length:delete i["aria-rowindex"];let s={};if(It()&&"expandedKeys"in e){let m=e.keyMap.get(l.key);if(m!=null){var c,u,p;let g=((c=m.props)===null||c===void 0?void 0:c.UNSTABLE_childItems)||((u=m.props)===null||u===void 0||(p=u.children)===null||p===void 0?void 0:p.length)>e.userColumnCount;s={onKeyDown:x=>{(x.key===zo.expand[a]&&e.selectionManager.focusedKey===m.key&&g&&e.expandedKeys!=="all"&&!e.expandedKeys.has(m.key)||x.key===zo.collapse[a]&&e.selectionManager.focusedKey===m.key&&g&&(e.expandedKeys==="all"||e.expandedKeys.has(m.key)))&&(e.toggleKey(m.key),x.stopPropagation())},"aria-expanded":g?e.expandedKeys==="all"||e.expandedKeys.has(l.key):void 0,"aria-level":m.level,"aria-posinset":m.indexOfType+1,"aria-setsize":m.level>1?Te(e.keyMap.get(m==null?void 0:m.parentKey).childNodes).indexOfType+1:Te(e.keyMap.get(e.collection.body.key).childNodes).indexOfType+1}}}let h=o.hasAction?_s(l.props):{};return{rowProps:{...B(i,s,h),"aria-labelledby":Hc(e,l.key)},...o}}function qc(t,e,n){let{node:l,isVirtualized:r}=t,i={role:"row"};return r&&!(It()&&"expandedKeys"in e)&&(i["aria-rowindex"]=l.index+1),{rowProps:i}}function Xc(t,e,n){let{gridCellProps:l,isPressed:r}=qi(t,e,n),i=t.node.column.key;return e.collection.rowHeaderColumnKeys.has(i)&&(l.role="rowheader",l.id=eo(e,t.node.parentKey,i)),{gridCellProps:l,isPressed:r}}function Zc(){return Nc()}const Qc="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICA8ZGVmcz4KICAgIDxzeW1ib2wgaWQ9ImV4dGVybmFsLWxpbmsiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KICAgICAgPHBhdGggZD0iTTM4NCAyMjR2MTg0YTQwIDQwIDAgMDEtNDAgNDBIMTA0YTQwIDQwIDAgMDEtNDAtNDBWMTY4YTQwIDQwIDAgMDE0MC00MGgxNjcuNDhNMzM2IDY0aDExMnYxMTJNMjI0IDI4OEw0NDAgNzIiIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMzIiLz4KICAgIDwvc3ltYm9sPgoKICAgIDxzeW1ib2wgaWQ9ImNhcmV0LWRvd24iIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KICAgICAgPHBhdGggZmlsbD0iY3VycmVudENvbG9yIiBkPSJtOTggMTkwLjA2bDEzOS43OCAxNjMuMTJhMjQgMjQgMCAwIDAgMzYuNDQgMEw0MTQgMTkwLjA2YzEzLjM0LTE1LjU3IDIuMjgtMzkuNjItMTguMjItMzkuNjJoLTI3OS42Yy0yMC41IDAtMzEuNTYgMjQuMDUtMTguMTggMzkuNjIiLz4KICAgIDwvc3ltYm9sPgoKICAgIDxzeW1ib2wgaWQ9ImNoZXZyb24tZG93biIgdmlld0JveD0iMCAwIDUxMiA1MTIiPgogICAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjQ4IiBkPSJtMTEyIDE4NGwxNDQgMTQ0bDE0NC0xNDQiLz4KICAgIDwvc3ltYm9sPgogIDwvZGVmcz4KPC9zdmc+";function Mt(t){let e={height:t.size||void 0,width:t.size||void 0,color:t.color||void 0};return A.jsx("svg",{style:e,...t,children:A.jsx("use",{href:`${Qc}#${t.id}`})})}const Jc=t=>typeof t=="string"||t instanceof String;function te(...t){return t.filter(Jc).join(" ")}Fo.defaultProps={variant:"primary"};function Fo(t){let e=t.href?"a":"button",n={...t,"data-testid":void 0,elementType:e},l=e!=="a"?{}:{target:"_blank"},r=t.buttonRef||f.useRef(null),{buttonProps:i}=yl(n,r),{children:o}=t;return A.jsxs(e,{...i,...l,className:te("proton-Button",`proton-Button--${t.variant}`,t.isDisabled&&"proton-Button--disabled"),ref:r,"data-testid":t["data-testid"],children:[o,t.href&&A.jsx(Mt,{id:"external-link",size:"0.9em"})]})}class ae extends Set{constructor(e,n,l){super(e),e instanceof ae?(this.anchorKey=n||e.anchorKey,this.currentKey=l||e.currentKey):(this.anchorKey=n,this.currentKey=l)}}function eu(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Lo(t){let{selectionMode:e="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:l,selectionBehavior:r="toggle",disabledBehavior:i="all"}=t,o=f.useRef(!1),[,a]=f.useState(!1),s=f.useRef(null),c=f.useRef(null),[,u]=f.useState(null),p=f.useMemo(()=>Oo(t.selectedKeys),[t.selectedKeys]),h=f.useMemo(()=>Oo(t.defaultSelectedKeys,new ae),[t.defaultSelectedKeys]),[m,g]=Ge(p,h,t.onSelectionChange),x=f.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[w,S]=f.useState(r);r==="replace"&&w==="toggle"&&typeof m=="object"&&m.size===0&&S("replace");let y=f.useRef(r);return f.useEffect(()=>{r!==y.current&&(S(r),y.current=r)},[r]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:S,get isFocused(){return o.current},setFocused($){o.current=$,a($)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey($,M="first"){s.current=$,c.current=M,u($)},selectedKeys:m,setSelectedKeys($){(l||!eu($,m))&&g($)},disabledKeys:x,disabledBehavior:i}}function Oo(t,e){return t?t==="all"?"all":new ae(t):e}class jo{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return this.state.selectionMode==="none"?!1:(e=this.getKey(e),this.state.selectedKeys==="all"?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(l=>n.has(l)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let l=this.collection.getItem(n);(!e||l&&bn(this.collection,l,e)<0)&&(e=l)}return e==null?void 0:e.key}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let l=this.collection.getItem(n);(!e||l&&bn(this.collection,l,e)>0)&&(e=l)}return e==null?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}e=this.getKey(e);let n;if(this.state.selectedKeys==="all")n=new ae([e],e,e);else{let l=this.state.selectedKeys,r=l.anchorKey||e;n=new ae(l,r,e);for(let i of this.getKeyRange(r,l.currentKey||e))n.delete(i);for(let i of this.getKeyRange(e,r))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(e,n){let l=this.collection.getItem(e),r=this.collection.getItem(n);return l&&r?bn(this.collection,l,r)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){let l=[],r=e;for(;r;){let i=this.collection.getItem(r);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&l.push(r),r===n)return l;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}if(e=this.getKey(e),e==null)return;let n=new ae(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(e)?n.delete(e):this.canSelectItem(e)&&(n.add(e),n.anchorKey=e,n.currentKey=e),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode==="none"||(e=this.getKey(e),e==null))return;let n=this.canSelectItem(e)?new ae([e],e,e):new ae;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new ae;for(let l of e)if(l=this.getKey(l),l!=null&&(n.add(l),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=l=>{for(;l;){if(this.canSelectItem(l)){let r=this.collection.getItem(l);r.type==="item"&&e.push(l),r.hasChildNodes&&(this.allowsCellSelection||r.type!=="item")&&n($e(X(r,this.collection)).key)}l=this.collection.getKeyAfter(l)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ae)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let l of e)if(!n.has(l))return!1;for(let l of n)if(!e.has(l))return!1;return!0}canSelectItem(e){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){return this.state.disabledKeys.has(e)&&this.state.disabledBehavior==="all"}isLink(e){var n,l;return!!(!((n=this.collection.getItem(e))===null||n===void 0||(l=n.props)===null||l===void 0)&&l.href)}constructor(e,n,l){this.collection=e,this.state=n;var r;this.allowsCellSelection=(r=l==null?void 0:l.allowsCellSelection)!==null&&r!==void 0?r:!1,this._isSelectAll=null}}class _o{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.iterable=e;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let o of i.childNodes)n(o)};for(let i of e)n(i);let l,r=0;for(let[i,o]of this.keyMap)l?(l.nextKey=i,o.prevKey=l.key):(this.firstKey=i,o.prevKey=void 0),o.type==="item"&&(o.index=r++),l=o,l.nextKey=void 0;this.lastKey=l==null?void 0:l.key}}function tu(t){let{filter:e}=t,n=Lo(t),l=f.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),r=f.useCallback(c=>e?new _o(e(c)):new _o(c),[e]),i=f.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),o=Sr(t,r,i),a=f.useMemo(()=>new jo(o,n),[o,n]);const s=f.useRef(null);return f.useEffect(()=>{if(n.focusedKey!=null&&!o.getItem(n.focusedKey)){const c=s.current.getItem(n.focusedKey),u=[...s.current.getKeys()].map(x=>{const w=s.current.getItem(x);return w.type==="item"?w:null}).filter(x=>x!==null),p=[...o.getKeys()].map(x=>{const w=o.getItem(x);return w.type==="item"?w:null}).filter(x=>x!==null),h=u.length-p.length;let m=Math.min(h>1?Math.max(c.index-h+1,0):c.index,p.length-1),g;for(;m>=0;){if(!a.isDisabled(p[m].key)){g=p[m];break}m<p.length-1?m++:(m>c.index&&(m=c.index),m--)}n.setFocusedKey(g?g.key:null)}s.current=o},[o,a,n,n.focusedKey]),{collection:o,disabledKeys:l,selectionManager:a}}function nu(t){var e;let[n,l]=Ge(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),r=f.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:o,selectionManager:a}=tu({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:c=>{var u;let p=(u=c.values().next().value)!==null&&u!==void 0?u:null;p===n&&t.onSelectionChange&&t.onSelectionChange(p),l(p)}}),s=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:o,selectionManager:a,selectedKey:n,setSelectedKey:l,selectedItem:s}}function lu(t){let[e,n]=Ge(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const l=f.useCallback(()=>{n(!0)},[n]),r=f.useCallback(()=>{n(!1)},[n]),i=f.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:l,close:r,toggle:i}}function ru(t){let e=lu(t),[n,l]=f.useState(null);return{focusStrategy:n,...e,open(r=null){l(r),e.open()},toggle(r=null){l(r),e.toggle()}}}let iu=Math.round(Math.random()*1e10),ou=0;function su(t){let e=f.useMemo(()=>t.name||`radio-group-${iu}-${++ou}`,[t.name]),[n,l]=Ge(t.value,t.defaultValue,t.onChange),[r,i]=f.useState(null);return{name:e,selectedValue:n,setSelectedValue:a=>{!t.isReadOnly&&!t.isDisabled&&l(a)},lastFocusedValue:r,setLastFocusedValue:i,isDisabled:t.isDisabled||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,validationState:t.validationState||null,isInvalid:t.isInvalid||t.validationState==="invalid"}}function au(t){let e=ru(t),n=nu({...t,onSelectionChange:i=>{t.onSelectionChange!=null&&t.onSelectionChange(i),e.close()}}),[l,r]=f.useState(!1);return{...n,...e,open(){n.collection.size!==0&&e.open()},toggle(i){n.collection.size!==0&&e.toggle(i)},isFocused:l,setFocused:r}}function cu(t){let{collection:e,focusMode:n}=t,l=Lo(t),r=f.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),i=l.setFocusedKey;l.setFocusedKey=(s,c)=>{if(n==="cell"&&s!=null){let h=e.getItem(s);if((h==null?void 0:h.type)==="item"){var u,p;let m=X(h,e);c==="last"?s=(u=Te(m))===null||u===void 0?void 0:u.key:s=(p=$e(m))===null||p===void 0?void 0:p.key}}i(s,c)};let o=f.useMemo(()=>new jo(e,l),[e,l]);const a=f.useRef(null);return f.useEffect(()=>{if(l.focusedKey!=null&&!e.getItem(l.focusedKey)){const s=a.current.getItem(l.focusedKey),c=s.parentKey!=null&&(s.type==="cell"||s.type==="rowheader"||s.type==="column")?a.current.getItem(s.parentKey):s,u=a.current.rows,p=e.rows,h=u.length-p.length;let m=Math.min(h>1?Math.max(c.index-h+1,0):c.index,p.length-1),g;for(;m>=0;){if(!o.isDisabled(p[m].key)&&p[m].type!=="headerrow"){g=p[m];break}m<p.length-1?m++:(m>c.index&&(m=c.index),m--)}if(g){const x=g.hasChildNodes?[...X(g,e)]:[],w=g.hasChildNodes&&c!==s&&s.index<x.length?x[s.index].key:g.key;l.setFocusedKey(w)}else l.setFocusedKey(null)}a.current=e},[e,o,l,l.focusedKey]),{collection:e,disabledKeys:r,isKeyboardNavigationDisabled:!1,selectionManager:o}}class uu{*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey:null}getFirstKey(){var e;return(e=[...this.rows][0])===null||e===void 0?void 0:e.key}getLastKey(){var e;let n=[...this.rows];return(e=n[n.length-1])===null||e===void 0?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=e==null?void 0:e.columnCount,this.rows=[];let n=i=>{let o=this.keyMap.get(i.key);e.visitNode&&(i=e.visitNode(i)),this.keyMap.set(i.key,i);let a=new Set,s;for(let c of i.childNodes)c.type==="cell"&&c.parentKey==null&&(c.parentKey=i.key),a.add(c.key),s?(s.nextKey=c.key,c.prevKey=s.key):c.prevKey=null,n(c),s=c;if(s&&(s.nextKey=null),o)for(let c of o.childNodes)a.has(c.key)||l(c)},l=i=>{this.keyMap.delete(i.key);for(let o of i.childNodes)this.keyMap.get(o.key)===o&&l(o)},r;e.items.forEach((i,o)=>{let a={level:0,key:"row-"+o,type:"row",value:void 0,hasChildNodes:!0,childNodes:[...i.childNodes],rendered:void 0,textValue:void 0,...i};r?(r.nextKey=a.key,a.prevKey=r.key):a.prevKey=null,this.rows.push(a),n(a),r=a}),r&&(r.nextKey=null)}}const Bo="row-header-column-"+Math.random().toString(36).slice(2);let xn="row-header-column-"+Math.random().toString(36).slice(2);for(;Bo===xn;)xn="row-header-column-"+Math.random().toString(36).slice(2);function du(t,e){if(e.length===0)return[];let n=[],l=new Map;for(let s of e){let c=s.parentKey,u=[s];for(;c;){let p=t.get(c);if(!p)break;if(l.has(p)){p.colspan++;let{column:h,index:m}=l.get(p);if(m>u.length)break;for(let g=m;g<u.length;g++)h.splice(g,0,null);for(let g=u.length;g<h.length;g++)h[g]&&l.has(h[g])&&(l.get(h[g]).index=g)}else p.colspan=1,u.push(p),l.set(p,{column:u,index:u.length-1});c=p.parentKey}n.push(u),s.index=n.length-1}let r=Math.max(...n.map(s=>s.length)),i=Array(r).fill(0).map(()=>[]),o=0;for(let s of n){let c=r-1;for(let u of s){if(u){let p=i[c],h=p.reduce((m,g)=>m+g.colspan,0);if(h<o){let m={type:"placeholder",key:"placeholder-"+u.key,colspan:o-h,index:h,value:null,rendered:null,level:c,hasChildNodes:!1,childNodes:[],textValue:null};p.length>0&&(p[p.length-1].nextKey=m.key,m.prevKey=p[p.length-1].key),p.push(m)}p.length>0&&(p[p.length-1].nextKey=u.key,u.prevKey=p[p.length-1].key),u.level=c,u.colIndex=o,p.push(u)}c--}o++}let a=0;for(let s of i){let c=s.reduce((u,p)=>u+p.colspan,0);if(c<e.length){let u={type:"placeholder",key:"placeholder-"+s[s.length-1].key,colspan:e.length-c,index:c,value:null,rendered:null,level:a,hasChildNodes:!1,childNodes:[],textValue:null,prevKey:s[s.length-1].key};s.push(u)}a++}return i.map((s,c)=>({type:"headerrow",key:"headerrow-"+c,index:c,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:s,textValue:null}))}class fu extends uu{*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey:null}getFirstKey(){var e;return(e=$e(this.body.childNodes))===null||e===void 0?void 0:e.key}getLastKey(){var e;return(e=Te(this.body.childNodes))===null||e===void 0?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getTextValue(e){let n=this.getItem(e);if(!n)return"";if(n.textValue)return n.textValue;let l=this.rowHeaderColumnKeys;if(l){let r=[];for(let i of n.childNodes){let o=this.columns[i.index];if(l.has(o.key)&&i.textValue&&r.push(i.textValue),r.length===l.size)break}return r.join(" ")}return""}constructor(e,n,l){let r=new Set,i,o=[];if(l!=null&&l.showSelectionCheckboxes){let p={type:"column",key:Bo,value:null,textValue:"",level:0,index:l!=null&&l.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};o.unshift(p)}if(l!=null&&l.showDragButtons){let p={type:"column",key:xn,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};o.unshift(p)}let a=[],s=new Map,c=p=>{switch(p.type){case"body":i=p;break;case"column":s.set(p.key,p),p.hasChildNodes||(o.push(p),p.props.isRowHeader&&r.add(p.key));break;case"item":a.push(p);return}for(let h of p.childNodes)c(h)};for(let p of e)c(p);let u=du(s,o);u.forEach((p,h)=>a.splice(h,0,p)),super({columnCount:o.length,items:a,visitNode:p=>(p.column=o[p.index],p)}),this._size=0,this.columns=o,this.rowHeaderColumnKeys=r,this.body=i,this.headerRows=u,this._size=[...i.childNodes].length,this.rowHeaderColumnKeys.size===0&&(l!=null&&l.showSelectionCheckboxes?l!=null&&l.showDragButtons?this.rowHeaderColumnKeys.add(this.columns[2].key):this.rowHeaderColumnKeys.add(this.columns[1].key):this.rowHeaderColumnKeys.add(this.columns[0].key))}}const pu={ascending:"descending",descending:"ascending"};function hu(t){let[e,n]=f.useState(!1),{selectionMode:l="none",showSelectionCheckboxes:r,showDragButtons:i}=t,o=f.useMemo(()=>({showSelectionCheckboxes:r&&l!=="none",showDragButtons:i,selectionMode:l,columns:[]}),[t.children,r,l,i]),a=Sr(t,f.useCallback(u=>new fu(u,null,o),[o]),o),{disabledKeys:s,selectionManager:c}=cu({...t,collection:a,disabledBehavior:t.disabledBehavior||"selection"});return{collection:a,disabledKeys:s,selectionManager:c,showSelectionCheckboxes:t.showSelectionCheckboxes||!1,sortDescriptor:t.sortDescriptor,isKeyboardNavigationDisabled:a.size===0||e,setKeyboardNavigationDisabled:n,sort(u,p){var h;t.onSortChange({column:u,direction:p??(((h=t.sortDescriptor)===null||h===void 0?void 0:h.column)===u?pu[t.sortDescriptor.direction]:"ascending")})}}}function Vo(t){return null}Vo.getCollectionNode=function*(e,n){let{children:l,columns:r}=e;if(n.columns=[],typeof l=="function"){if(!r)throw new Error("props.children was a function but props.columns is missing");for(let i of r)yield{type:"column",value:i,renderer:l}}else{let i=[];f.Children.forEach(l,o=>{i.push({type:"column",element:o})}),yield*i}};let mu=Vo;function Ho(t){return null}Ho.getCollectionNode=function*(e){let{children:n,items:l}=e;yield{type:"body",hasChildNodes:!0,props:e,*childNodes(){if(typeof n=="function"){if(!l)throw new Error("props.children was a function but props.items is missing");for(let r of l)yield{type:"item",value:r,renderer:n}}else{let r=[];f.Children.forEach(n,i=>{r.push({type:"item",element:i})}),yield*r}}}};let bu=Ho;function Wo(t){return null}Wo.getCollectionNode=function*(e,n){let{title:l,children:r,childColumns:i}=e,o=l||r,a=e.textValue||(typeof o=="string"?o:"")||e["aria-label"],s=yield{type:"column",hasChildNodes:!!i||l&&f.Children.count(r)>0,rendered:o,textValue:a,props:e,*childNodes(){if(i)for(let u of i)yield{type:"column",value:u};else if(l){let u=[];f.Children.forEach(r,p=>{u.push({type:"column",element:p})}),yield*u}},shouldInvalidate(u){return c(u),!1}},c=u=>{for(let p of s)p.hasChildNodes||u.columns.push(p)};c(n)};let gu=Wo;function kn(t){return null}kn.getCollectionNode=function*(e,n){let{children:l,textValue:r,UNSTABLE_childItems:i}=e;yield{type:"item",props:e,textValue:r,"aria-label":e["aria-label"],hasChildNodes:!0,*childNodes(){if(n.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),n.showSelectionCheckboxes&&n.selectionMode!=="none"&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),typeof l=="function"){for(let o of n.columns)yield{type:"cell",element:l(o.key),key:o.key};if(i)for(let o of i)yield{type:"item",value:o}}else{let o=[],a=[];if(f.Children.forEach(l,s=>{if(s.type===kn){if(o.length<n.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");a.push({type:"item",element:s})}else o.push({type:"cell",element:s})}),o.length!==n.columns.length)throw new Error(`Cell count must match column count. Found ${o.length} cells and ${n.columns.length} columns.`);yield*o,yield*a}},shouldInvalidate(o){return o.columns.length!==n.columns.length||o.columns.some((a,s)=>a.key!==n.columns[s].key)||o.showSelectionCheckboxes!==n.showSelectionCheckboxes||o.showDragButtons!==n.showDragButtons||o.selectionMode!==n.selectionMode}}};let vu=kn;function Uo(t){return null}Uo.getCollectionNode=function*(e){let{children:n}=e,l=e.textValue||(typeof n=="string"?n:"")||e["aria-label"]||"";yield{type:"cell",props:e,rendered:n,textValue:l,"aria-label":e["aria-label"],hasChildNodes:!1}};let yu=Uo,Go=f.createContext(null);function Yo(t){let e={...t,"data-testid":void 0},n=su(e),{radioGroupProps:l}=Fc(e,n);return A.jsx("div",{...l,className:"proton-ButtonGroup","data-value":n.selectedValue,"data-testid":t["data-testid"]||void 0,children:A.jsx(Go.Provider,{value:n,children:t.children})})}Yo.Option=function(e){let n={...e,"data-testid":void 0},l=f.useContext(Go),r=f.useRef(null),{inputProps:i,isSelected:o}=zc(n,l,r);return A.jsxs("label",{className:te("proton-ButtonGroup__option",o&&"proton-ButtonGroup__option--selected"),"data-selected":o||void 0,"data-testid":e["data-testid"]||void 0,children:[A.jsx(an,{children:A.jsx("input",{...i,ref:r})}),e.children]})};function $u({title:t,children:e,...n}){let l=f.useRef(null),{dialogProps:r,titleProps:i}=Ic(n,l);return A.jsxs("div",{...r,ref:l,className:"proton-Dialog",children:[t&&A.jsx("h3",{...i,style:{marginTop:0},children:t}),e]})}function qo({children:t,state:e,arrow:n,offset:l,...r}){const i=f.useRef(null),{popoverRef:o=i}=r;let{popoverProps:a,underlayProps:s,arrowProps:c,placement:u}=fc({...r,offset:l,popoverRef:o},e);return e!=null&&e.isOpen?A.jsxs(pc,{children:[A.jsx("div",{...s,style:{position:"fixed",inset:0}}),A.jsxs("div",{...a,ref:o,className:te("proton-Popover"),style:{...a.style},children:[n&&A.jsx("svg",{...c,className:"arrow","data-placement":u,viewBox:"0 0 12 12",children:A.jsx("path",{d:"M0 0 L6 6 L12 0"})}),A.jsx(gr,{onDismiss:e.close}),t,A.jsx(gr,{onDismiss:e.close})]})]}):null}function wu(t){let e=f.useRef(null),{listBoxRef:n=e,state:l}=t,{listBoxProps:r}=Tc(t,l,n);return A.jsx("ul",{...r,ref:n,className:"proton-ListBox",children:[...l.collection].map(i=>A.jsx(Pu,{item:i,state:l},i.key))})}function Pu({item:t,state:e}){let n=f.useRef(null),{optionProps:l,isSelected:r,isFocused:i,isDisabled:o}=Sc({key:t.key},e,n);return A.jsx("li",{...l,className:te("proton-ListBox__item",i&&"proton-ListBox__item--focused",r&&"proton-ListBox__item--selected",o&&"proton-ListBox__item--disabled"),ref:n,children:t.rendered})}function Eu(t){let e=t.buttonRef,{buttonProps:n}=yl(t,e);return A.jsx("button",{...n,ref:e,className:te("proton-Select__trigger",n.disabled&&"proton-Select__trigger--disabled",t.isOpen&&"proton-Select__trigger--opened"),children:t.children})}function xu(t){const e=au(t),n=f.useRef(null),l=f.useRef(null),{labelProps:r,triggerProps:i,valueProps:o,menuProps:a}=Lc({...t,label:t.label||t.name},e,n);return f.useEffect(()=>{e.isOpen&&l.current&&n.current&&!l.current.style.minWidth&&(l.current.style.minWidth=`${n.current.offsetWidth}px`)}),A.jsxs("div",{className:te("proton-Select",t.isDisabled&&"proton-Select--disabled"),children:[t.label?A.jsx("div",{...r,className:"proton-Select__label",children:t.label}):A.jsx("div",{...r}),A.jsx(jc,{isDisabled:t.isDisabled,state:e,triggerRef:n,label:t.label,name:t.name}),A.jsxs(Eu,{...i,isOpen:e.isOpen,buttonRef:n,children:[A.jsx("div",{...o,children:e.selectedItem?e.selectedItem.rendered:"Select an option"}),A.jsxs("div",{className:"proton-Select__trigger_icon","aria-hidden":"true",children:[A.jsx(Mt,{id:"caret-down",size:"1em"}),A.jsx(Mt,{id:"chevron-down",size:"1em"})]})]}),e.isOpen&&A.jsx(qo,{state:e,triggerRef:n,popoverRef:l,placement:"bottom start",children:A.jsx(wu,{...a,state:e})})]})}const ku={Menu:xu,Option:yc};Xo.defaultProps={defaultOn:!1,isDisabled:!1};function Xo(t){let e={...t,isSelected:t.isOn,"data-testid":void 0},n=f.useRef(null),l=Wa(e),{inputProps:r}=_c(e,l,n);return A.jsxs("label",{className:te("proton-Switch",t.isDisabled&&"proton-Switch--disabled",l.isSelected&&"proton-Switch--on"),"data-on":l.isSelected||void 0,"data-disabled":t.isDisabled||void 0,"data-testid":t["data-testid"]||void 0,"aria-label":t.label||void 0,children:[A.jsx(an,{children:A.jsx("input",{...r,ref:n})}),t.label&&A.jsx("div",{className:"proton-Switch__label",children:t.label}),A.jsxs("div",{className:"proton-Switch__wrapper",children:[A.jsx("div",{className:"proton-Switch__toggle",children:A.jsx("div",{className:"proton-Switch__slider"})}),t.children&&A.jsx("div",{className:"proton-Switch__description",children:t.children})]})]})}function Tu({item:t,state:e,children:n}){let l=f.useRef(),{rowProps:r}=qc({node:t},e);return A.jsx("tr",{className:te("proton-Table__headerRow"),...r,ref:l,children:n})}function Su({column:t,state:e}){var s,c;let n=f.useRef(),{columnHeaderProps:l}=Gc({node:t},e,n);const{align:r="left"}=t.props;let{isFocusVisible:i,focusProps:o}=ln(),a=((s=e.sortDescriptor)==null?void 0:s.direction)==="ascending"?"▲":"▼";return A.jsxs("th",{...B(l,o),colSpan:t.colspan,className:te("proton-Table__header",`proton-Table__header--${r}`,i?"proton-Table__header--focused":null),ref:n,children:[t.rendered,t.props.allowsSorting&&A.jsx("span",{"aria-hidden":"true",className:te("proton-Table__headerSortIcon"),style:{visibility:((c=e.sortDescriptor)==null?void 0:c.column)===t.key?"visible":"hidden"},children:a})]})}function Zo({type:t,children:e}){let{rowGroupProps:n}=Zc();return A.jsx(t,{...n,className:te("proton-Table__rowGroup",t==="thead"?"proton-Table__rowGroup--header":"proton-Table__rowGroup--body"),children:e})}function Ku({item:t,children:e,state:n}){let l=f.useRef(),r=n.selectionManager.isSelected(t.key),{rowProps:i,isPressed:o}=Yc({node:t},n,l),{isFocusVisible:a,focusProps:s}=ln();return A.jsx("tr",{className:te("proton-Table__row",r?"proton-Table__row--selected":null,o?"proton-Table__row--pressed":null,a?"proton-Table__row--focused":null),...B(i,s),ref:l,children:e})}function Cu({cell:t,state:e,...n}){let l=f.useRef(),{gridCellProps:r}=Xc({node:t},e,l),{isFocusVisible:i,focusProps:o}=ln();const{align:a}=t.props;return A.jsx("td",{...B(r,o),className:te("proton-Table__cell",i?"proton-Table__cell--focused":null,`proton-Table__cell--${a}`),ref:l,children:t.rendered})}const Iu=gu,Mu=yu;function Au(t){let e=hu({...t}),n=f.useRef(),{collection:l}=e,{gridProps:r}=Uc(t,e,n);return A.jsxs("table",{...r,ref:n,className:te("proton-Table"),children:[A.jsx(Zo,{type:"thead",children:l.headerRows.map(i=>A.jsx(Tu,{item:i,state:e,children:Array.from(l.getChildren(i.key)).map(o=>A.jsx(Su,{column:o,state:e},o.key))},i.key))}),A.jsx(Zo,{type:"tbody",children:Array.from(l.body.childNodes).map(i=>A.jsx(Ku,{item:i,state:e,children:Array.from(l.getChildren(i.key)).map(o=>A.jsx(Cu,{cell:o,state:e},o.key))},i.key))})]})}const Du={ReleaseLinks:"rl-theme",ProtonRadio:"client-theme"},od="";G.Button=Fo,G.ButtonGroup=Yo,G.Cell=Mu,G.Column=Iu,G.Dialog=$u,G.Icon=Mt,G.Popover=qo,G.Row=vu,G.Section=$c,G.Select=ku,G.Switch=Xo,G.THEME_CONFIG=Du,G.Table=Au,G.TableBody=bu,G.TableHeader=mu,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
|
|
28
28
|
//# sourceMappingURL=proton-ui.umd.js.map
|