@clicktap/ui 0.0.3 → 0.0.5
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/Button/styles.d.ts +1 -1
- package/Card/Card.d.ts +3 -0
- package/Card/styles.d.ts +5 -0
- package/Container/Container.d.ts +4 -0
- package/Container/styles.d.ts +3 -0
- package/Container/types.d.ts +8 -0
- package/Drawer/Drawer.d.ts +1 -1
- package/ToggleButton/styles.d.ts +1 -1
- package/defaultTheme.d.ts +501 -0
- package/index.d.ts +3 -0
- package/index.js +192 -179
- package/index.mjs +4252 -3646
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react/jsx-runtime"),u=require("react"),dn=require("react-dom");function D3(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const We=D3(u);var P3=()=>O.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[O.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),O.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]});function S3(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=We.createContext(void 0);o.displayName=r;function i(){var a;const s=We.useContext(o);if(!s&&t){const l=new Error(n);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function T3(e){return{UNSAFE_getDOMNode(){return e.current}}}function Qs(e){const t=u.useRef(null);return u.useImperativeHandle(e,()=>t.current),t}var A3=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function bh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=bh(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function mo(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=bh(n))&&(o&&(o+=" "),o+=r);return o}var vd={};function k3(e,t,...n){var r;const i=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!vd[i]&&(vd[i]=!0,((r=process==null?void 0:process.env)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}process.env.NODE_ENV;process.env.NODE_ENV;function M3(e){return typeof e=="function"}var Kt=e=>e?"true":void 0;function R3(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function F3(e,t){if(e!=null){if(M3(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function B3(...e){return t=>{e.forEach(n=>F3(n,t))}}var I3=Object.create,vh=Object.defineProperty,O3=Object.getOwnPropertyDescriptor,gh=Object.getOwnPropertyNames,L3=Object.getPrototypeOf,V3=Object.prototype.hasOwnProperty,du=(e,t)=>function(){return t||(0,e[gh(e)[0]])((t={exports:{}}).exports,t),t.exports},N3=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of gh(t))!V3.call(e,o)&&o!==n&&vh(e,o,{get:()=>t[o],enumerable:!(r=O3(t,o))||r.enumerable});return e},_3=(e,t,n)=>(n=e!=null?I3(L3(e)):{},N3(t||!e||!e.__esModule?vh(n,"default",{value:e,enumerable:!0}):n,e)),K3=du({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function h(D){return D===null||typeof D!="object"?null:(D=p&&D[p]||D["@@iterator"],typeof D=="function"?D:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,v={};function $(D,T,z){this.props=D,this.context=T,this.refs=v,this.updater=z||m}$.prototype.isReactComponent={},$.prototype.setState=function(D,T){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,T,"setState")},$.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=$.prototype;function x(D,T,z){this.props=D,this.context=T,this.refs=v,this.updater=z||m}var E=x.prototype=new C;E.constructor=x,b(E,$.prototype),E.isPureReactComponent=!0;var w=Array.isArray,A=Object.prototype.hasOwnProperty,V={current:null},y={key:!0,ref:!0,__self:!0,__source:!0};function I(D,T,z){var H,Z={},N=null,j=null;if(T!=null)for(H in T.ref!==void 0&&(j=T.ref),T.key!==void 0&&(N=""+T.key),T)A.call(T,H)&&!y.hasOwnProperty(H)&&(Z[H]=T[H]);var _=arguments.length-2;if(_===1)Z.children=z;else if(1<_){for(var Q=Array(_),ne=0;ne<_;ne++)Q[ne]=arguments[ne+2];Z.children=Q}if(D&&D.defaultProps)for(H in _=D.defaultProps,_)Z[H]===void 0&&(Z[H]=_[H]);return{$$typeof:t,type:D,key:N,ref:j,props:Z,_owner:V.current}}function M(D,T){return{$$typeof:t,type:D.type,key:T,ref:D.ref,props:D.props,_owner:D._owner}}function k(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function R(D){var T={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(z){return T[z]})}var S=/\/+/g;function F(D,T){return typeof D=="object"&&D!==null&&D.key!=null?R(""+D.key):T.toString(36)}function K(D,T,z,H,Z){var N=typeof D;(N==="undefined"||N==="boolean")&&(D=null);var j=!1;if(D===null)j=!0;else switch(N){case"string":case"number":j=!0;break;case"object":switch(D.$$typeof){case t:case n:j=!0}}if(j)return j=D,Z=Z(j),D=H===""?"."+F(j,0):H,w(Z)?(z="",D!=null&&(z=D.replace(S,"$&/")+"/"),K(Z,T,z,"",function(ne){return ne})):Z!=null&&(k(Z)&&(Z=M(Z,z+(!Z.key||j&&j.key===Z.key?"":(""+Z.key).replace(S,"$&/")+"/")+D)),T.push(Z)),1;if(j=0,H=H===""?".":H+":",w(D))for(var _=0;_<D.length;_++){N=D[_];var Q=H+F(N,_);j+=K(N,T,z,Q,Z)}else if(Q=h(D),typeof Q=="function")for(D=Q.call(D),_=0;!(N=D.next()).done;)N=N.value,Q=H+F(N,_++),j+=K(N,T,z,Q,Z);else if(N==="object")throw T=String(D),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.");return j}function L(D,T,z){if(D==null)return D;var H=[],Z=0;return K(D,H,"","",function(N){return T.call(z,N,Z++)}),H}function P(D){if(D._status===-1){var T=D._result;T=T(),T.then(function(z){(D._status===0||D._status===-1)&&(D._status=1,D._result=z)},function(z){(D._status===0||D._status===-1)&&(D._status=2,D._result=z)}),D._status===-1&&(D._status=0,D._result=T)}if(D._status===1)return D._result.default;throw D._result}var W={current:null},J={transition:null},G={ReactCurrentDispatcher:W,ReactCurrentBatchConfig:J,ReactCurrentOwner:V};e.Children={map:L,forEach:function(D,T,z){L(D,function(){T.apply(this,arguments)},z)},count:function(D){var T=0;return L(D,function(){T++}),T},toArray:function(D){return L(D,function(T){return T})||[]},only:function(D){if(!k(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},e.Component=$,e.Fragment=r,e.Profiler=i,e.PureComponent=x,e.StrictMode=o,e.Suspense=c,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,e.cloneElement=function(D,T,z){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var H=b({},D.props),Z=D.key,N=D.ref,j=D._owner;if(T!=null){if(T.ref!==void 0&&(N=T.ref,j=V.current),T.key!==void 0&&(Z=""+T.key),D.type&&D.type.defaultProps)var _=D.type.defaultProps;for(Q in T)A.call(T,Q)&&!y.hasOwnProperty(Q)&&(H[Q]=T[Q]===void 0&&_!==void 0?_[Q]:T[Q])}var Q=arguments.length-2;if(Q===1)H.children=z;else if(1<Q){_=Array(Q);for(var ne=0;ne<Q;ne++)_[ne]=arguments[ne+2];H.children=_}return{$$typeof:t,type:D.type,key:Z,ref:N,props:H,_owner:j}},e.createContext=function(D){return D={$$typeof:s,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:a,_context:D},D.Consumer=D},e.createElement=I,e.createFactory=function(D){var T=I.bind(null,D);return T.type=D,T},e.createRef=function(){return{current:null}},e.forwardRef=function(D){return{$$typeof:l,render:D}},e.isValidElement=k,e.lazy=function(D){return{$$typeof:f,_payload:{_status:-1,_result:D},_init:P}},e.memo=function(D,T){return{$$typeof:d,type:D,compare:T===void 0?null:T}},e.startTransition=function(D){var T=J.transition;J.transition={};try{D()}finally{J.transition=T}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(D,T){return W.current.useCallback(D,T)},e.useContext=function(D){return W.current.useContext(D)},e.useDebugValue=function(){},e.useDeferredValue=function(D){return W.current.useDeferredValue(D)},e.useEffect=function(D,T){return W.current.useEffect(D,T)},e.useId=function(){return W.current.useId()},e.useImperativeHandle=function(D,T,z){return W.current.useImperativeHandle(D,T,z)},e.useInsertionEffect=function(D,T){return W.current.useInsertionEffect(D,T)},e.useLayoutEffect=function(D,T){return W.current.useLayoutEffect(D,T)},e.useMemo=function(D,T){return W.current.useMemo(D,T)},e.useReducer=function(D,T,z){return W.current.useReducer(D,T,z)},e.useRef=function(D){return W.current.useRef(D)},e.useState=function(D){return W.current.useState(D)},e.useSyncExternalStore=function(D,T,z){return W.current.useSyncExternalStore(D,T,z)},e.useTransition=function(){return W.current.useTransition()},e.version="18.2.0"}}),j3=du({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.2.0",r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),v=Symbol.iterator,$="@@iterator";function C(g){if(g===null||typeof g!="object")return null;var B=v&&g[v]||g[$];return typeof B=="function"?B:null}var x={current:null},E={transition:null},w={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},A={current:null},V={},y=null;function I(g){y=g}V.setExtraStackFrame=function(g){y=g},V.getCurrentStack=null,V.getStackAddendum=function(){var g="";y&&(g+=y);var B=V.getCurrentStack;return B&&(g+=B()||""),g};var M=!1,k=!1,R=!1,S=!1,F=!1,K={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:E,ReactCurrentOwner:A};K.ReactDebugCurrentFrame=V,K.ReactCurrentActQueue=w;function L(g){{for(var B=arguments.length,U=new Array(B>1?B-1:0),Y=1;Y<B;Y++)U[Y-1]=arguments[Y];W("warn",g,U)}}function P(g){{for(var B=arguments.length,U=new Array(B>1?B-1:0),Y=1;Y<B;Y++)U[Y-1]=arguments[Y];W("error",g,U)}}function W(g,B,U){{var Y=K.ReactDebugCurrentFrame,te=Y.getStackAddendum();te!==""&&(B+="%s",U=U.concat([te]));var le=U.map(function(ie){return String(ie)});le.unshift("Warning: "+B),Function.prototype.apply.call(console[g],console,le)}}var J={};function G(g,B){{var U=g.constructor,Y=U&&(U.displayName||U.name)||"ReactClass",te=Y+"."+B;if(J[te])return;P("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",B,Y),J[te]=!0}}var D={isMounted:function(g){return!1},enqueueForceUpdate:function(g,B,U){G(g,"forceUpdate")},enqueueReplaceState:function(g,B,U,Y){G(g,"replaceState")},enqueueSetState:function(g,B,U,Y){G(g,"setState")}},T=Object.assign,z={};Object.freeze(z);function H(g,B,U){this.props=g,this.context=B,this.refs=z,this.updater=U||D}H.prototype.isReactComponent={},H.prototype.setState=function(g,B){if(typeof g!="object"&&typeof g!="function"&&g!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,g,B,"setState")},H.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};{var Z={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},N=function(g,B){Object.defineProperty(H.prototype,g,{get:function(){L("%s(...) is deprecated in plain JavaScript React classes. %s",B[0],B[1])}})};for(var j in Z)Z.hasOwnProperty(j)&&N(j,Z[j])}function _(){}_.prototype=H.prototype;function Q(g,B,U){this.props=g,this.context=B,this.refs=z,this.updater=U||D}var ne=Q.prototype=new _;ne.constructor=Q,T(ne,H.prototype),ne.isPureReactComponent=!0;function ee(){var g={current:null};return Object.seal(g),g}var q=Array.isArray;function he(g){return q(g)}function re(g){{var B=typeof Symbol=="function"&&Symbol.toStringTag,U=B&&g[Symbol.toStringTag]||g.constructor.name||"Object";return U}}function ce(g){try{return $e(g),!1}catch{return!0}}function $e(g){return""+g}function pe(g){if(ce(g))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",re(g)),$e(g)}function Oe(g,B,U){var Y=g.displayName;if(Y)return Y;var te=B.displayName||B.name||"";return te!==""?U+"("+te+")":U}function de(g){return g.displayName||"Context"}function ae(g){if(g==null)return null;if(typeof g.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case i:return"Fragment";case o:return"Portal";case s:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case c:var B=g;return de(B)+".Consumer";case l:var U=g;return de(U._context)+".Provider";case d:return Oe(g,g.render,"ForwardRef");case h:var Y=g.displayName||null;return Y!==null?Y:ae(g.type)||"Memo";case m:{var te=g,le=te._payload,ie=te._init;try{return ae(ie(le))}catch{return null}}}return null}var xe=Object.prototype.hasOwnProperty,Vt={key:!0,ref:!0,__self:!0,__source:!0},Je,se,Pe;Pe={};function ct(g){if(xe.call(g,"ref")){var B=Object.getOwnPropertyDescriptor(g,"ref").get;if(B&&B.isReactWarning)return!1}return g.ref!==void 0}function Wt(g){if(xe.call(g,"key")){var B=Object.getOwnPropertyDescriptor(g,"key").get;if(B&&B.isReactWarning)return!1}return g.key!==void 0}function mt(g,B){var U=function(){Je||(Je=!0,P("%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)",B))};U.isReactWarning=!0,Object.defineProperty(g,"key",{get:U,configurable:!0})}function Xa(g,B){var U=function(){se||(se=!0,P("%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)",B))};U.isReactWarning=!0,Object.defineProperty(g,"ref",{get:U,configurable:!0})}function Ja(g){if(typeof g.ref=="string"&&A.current&&g.__self&&A.current.stateNode!==g.__self){var B=ae(A.current.type);Pe[B]||(P('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',B,g.ref),Pe[B]=!0)}}var Qe=function(g,B,U,Y,te,le,ie){var fe={$$typeof:r,type:g,key:B,ref:U,props:ie,_owner:le};return fe._store={},Object.defineProperty(fe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(fe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.defineProperty(fe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze(fe.props),Object.freeze(fe)),fe};function _r(g,B,U){var Y,te={},le=null,ie=null,fe=null,ge=null;if(B!=null){ct(B)&&(ie=B.ref,Ja(B)),Wt(B)&&(pe(B.key),le=""+B.key),fe=B.__self===void 0?null:B.__self,ge=B.__source===void 0?null:B.__source;for(Y in B)xe.call(B,Y)&&!Vt.hasOwnProperty(Y)&&(te[Y]=B[Y])}var Ae=arguments.length-2;if(Ae===1)te.children=U;else if(Ae>1){for(var Fe=Array(Ae),Be=0;Be<Ae;Be++)Fe[Be]=arguments[Be+2];Object.freeze&&Object.freeze(Fe),te.children=Fe}if(g&&g.defaultProps){var Le=g.defaultProps;for(Y in Le)te[Y]===void 0&&(te[Y]=Le[Y])}if(le||ie){var Ue=typeof g=="function"?g.displayName||g.name||"Unknown":g;le&&mt(te,Ue),ie&&Xa(te,Ue)}return Qe(g,le,ie,fe,ge,A.current,te)}function S1(g,B){var U=Qe(g.type,B,g.ref,g._self,g._source,g._owner,g.props);return U}function T1(g,B,U){if(g==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+g+".");var Y,te=T({},g.props),le=g.key,ie=g.ref,fe=g._self,ge=g._source,Ae=g._owner;if(B!=null){ct(B)&&(ie=B.ref,Ae=A.current),Wt(B)&&(pe(B.key),le=""+B.key);var Fe;g.type&&g.type.defaultProps&&(Fe=g.type.defaultProps);for(Y in B)xe.call(B,Y)&&!Vt.hasOwnProperty(Y)&&(B[Y]===void 0&&Fe!==void 0?te[Y]=Fe[Y]:te[Y]=B[Y])}var Be=arguments.length-2;if(Be===1)te.children=U;else if(Be>1){for(var Le=Array(Be),Ue=0;Ue<Be;Ue++)Le[Ue]=arguments[Ue+2];te.children=Le}return Qe(g.type,le,ie,fe,ge,Ae,te)}function nr(g){return typeof g=="object"&&g!==null&&g.$$typeof===r}var jc=".",A1=":";function k1(g){var B=/[=:]/g,U={"=":"=0",":":"=2"},Y=g.replace(B,function(te){return U[te]});return"$"+Y}var zc=!1,M1=/\/+/g;function Uc(g){return g.replace(M1,"$&/")}function Qa(g,B){return typeof g=="object"&&g!==null&&g.key!=null?(pe(g.key),k1(""+g.key)):B.toString(36)}function Yo(g,B,U,Y,te){var le=typeof g;(le==="undefined"||le==="boolean")&&(g=null);var ie=!1;if(g===null)ie=!0;else switch(le){case"string":case"number":ie=!0;break;case"object":switch(g.$$typeof){case r:case o:ie=!0}}if(ie){var fe=g,ge=te(fe),Ae=Y===""?jc+Qa(fe,0):Y;if(he(ge)){var Fe="";Ae!=null&&(Fe=Uc(Ae)+"/"),Yo(ge,B,Fe,"",function(E3){return E3})}else ge!=null&&(nr(ge)&&(ge.key&&(!fe||fe.key!==ge.key)&&pe(ge.key),ge=S1(ge,U+(ge.key&&(!fe||fe.key!==ge.key)?Uc(""+ge.key)+"/":"")+Ae)),B.push(ge));return 1}var Be,Le,Ue=0,et=Y===""?jc:Y+A1;if(he(g))for(var ni=0;ni<g.length;ni++)Be=g[ni],Le=et+Qa(Be,ni),Ue+=Yo(Be,B,U,Le,te);else{var ls=C(g);if(typeof ls=="function"){var hd=g;ls===hd.entries&&(zc||L("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),zc=!0);for(var w3=ls.call(hd),md,C3=0;!(md=w3.next()).done;)Be=md.value,Le=et+Qa(Be,C3++),Ue+=Yo(Be,B,U,Le,te)}else if(le==="object"){var bd=String(g);throw new Error("Objects are not valid as a React child (found: "+(bd==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":bd)+"). If you meant to render a collection of children, use an array instead.")}}return Ue}function qo(g,B,U){if(g==null)return g;var Y=[],te=0;return Yo(g,Y,"","",function(le){return B.call(U,le,te++)}),Y}function R1(g){var B=0;return qo(g,function(){B++}),B}function F1(g,B,U){qo(g,function(){B.apply(this,arguments)},U)}function B1(g){return qo(g,function(B){return B})||[]}function I1(g){if(!nr(g))throw new Error("React.Children.only expected to receive a single React element child.");return g}function O1(g){var B={$$typeof:c,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};B.Provider={$$typeof:l,_context:B};var U=!1,Y=!1,te=!1;{var le={$$typeof:c,_context:B};Object.defineProperties(le,{Provider:{get:function(){return Y||(Y=!0,P("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),B.Provider},set:function(ie){B.Provider=ie}},_currentValue:{get:function(){return B._currentValue},set:function(ie){B._currentValue=ie}},_currentValue2:{get:function(){return B._currentValue2},set:function(ie){B._currentValue2=ie}},_threadCount:{get:function(){return B._threadCount},set:function(ie){B._threadCount=ie}},Consumer:{get:function(){return U||(U=!0,P("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),B.Consumer}},displayName:{get:function(){return B.displayName},set:function(ie){te||(L("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ie),te=!0)}}}),B.Consumer=le}return B._currentRenderer=null,B._currentRenderer2=null,B}var Kr=-1,es=0,Hc=1,L1=2;function V1(g){if(g._status===Kr){var B=g._result,U=B();if(U.then(function(le){if(g._status===es||g._status===Kr){var ie=g;ie._status=Hc,ie._result=le}},function(le){if(g._status===es||g._status===Kr){var ie=g;ie._status=L1,ie._result=le}}),g._status===Kr){var Y=g;Y._status=es,Y._result=U}}if(g._status===Hc){var te=g._result;return te===void 0&&P(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react/jsx-runtime"),u=require("react"),dn=require("react-dom");function T3(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const We=T3(u);var A3=()=>O.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[O.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),O.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]});function k3(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=We.createContext(void 0);o.displayName=r;function i(){var a;const s=We.useContext(o);if(!s&&t){const l=new Error(n);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function M3(e){return{UNSAFE_getDOMNode(){return e.current}}}function Qs(e){const t=u.useRef(null);return u.useImperativeHandle(e,()=>t.current),t}var R3=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function gh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=gh(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function mo(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=gh(n))&&(o&&(o+=" "),o+=r);return o}var gd={};function F3(e,t,...n){var r;const i=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!gd[i]&&(gd[i]=!0,((r=process==null?void 0:process.env)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}process.env.NODE_ENV;process.env.NODE_ENV;function B3(e){return typeof e=="function"}var Kt=e=>e?"true":void 0;function I3(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function O3(e,t){if(e!=null){if(B3(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function L3(...e){return t=>{e.forEach(n=>O3(n,t))}}var V3=Object.create,vh=Object.defineProperty,N3=Object.getOwnPropertyDescriptor,yh=Object.getOwnPropertyNames,_3=Object.getPrototypeOf,K3=Object.prototype.hasOwnProperty,du=(e,t)=>function(){return t||(0,e[yh(e)[0]])((t={exports:{}}).exports,t),t.exports},j3=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yh(t))!K3.call(e,o)&&o!==n&&vh(e,o,{get:()=>t[o],enumerable:!(r=N3(t,o))||r.enumerable});return e},z3=(e,t,n)=>(n=e!=null?V3(_3(e)):{},j3(t||!e||!e.__esModule?vh(n,"default",{value:e,enumerable:!0}):n,e)),U3=du({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function h(D){return D===null||typeof D!="object"?null:(D=p&&D[p]||D["@@iterator"],typeof D=="function"?D:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,g={};function $(D,T,z){this.props=D,this.context=T,this.refs=g,this.updater=z||m}$.prototype.isReactComponent={},$.prototype.setState=function(D,T){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,T,"setState")},$.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=$.prototype;function x(D,T,z){this.props=D,this.context=T,this.refs=g,this.updater=z||m}var E=x.prototype=new C;E.constructor=x,b(E,$.prototype),E.isPureReactComponent=!0;var w=Array.isArray,A=Object.prototype.hasOwnProperty,V={current:null},y={key:!0,ref:!0,__self:!0,__source:!0};function I(D,T,z){var H,X={},N=null,j=null;if(T!=null)for(H in T.ref!==void 0&&(j=T.ref),T.key!==void 0&&(N=""+T.key),T)A.call(T,H)&&!y.hasOwnProperty(H)&&(X[H]=T[H]);var _=arguments.length-2;if(_===1)X.children=z;else if(1<_){for(var Q=Array(_),ne=0;ne<_;ne++)Q[ne]=arguments[ne+2];X.children=Q}if(D&&D.defaultProps)for(H in _=D.defaultProps,_)X[H]===void 0&&(X[H]=_[H]);return{$$typeof:t,type:D,key:N,ref:j,props:X,_owner:V.current}}function M(D,T){return{$$typeof:t,type:D.type,key:T,ref:D.ref,props:D.props,_owner:D._owner}}function k(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function R(D){var T={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(z){return T[z]})}var S=/\/+/g;function F(D,T){return typeof D=="object"&&D!==null&&D.key!=null?R(""+D.key):T.toString(36)}function K(D,T,z,H,X){var N=typeof D;(N==="undefined"||N==="boolean")&&(D=null);var j=!1;if(D===null)j=!0;else switch(N){case"string":case"number":j=!0;break;case"object":switch(D.$$typeof){case t:case n:j=!0}}if(j)return j=D,X=X(j),D=H===""?"."+F(j,0):H,w(X)?(z="",D!=null&&(z=D.replace(S,"$&/")+"/"),K(X,T,z,"",function(ne){return ne})):X!=null&&(k(X)&&(X=M(X,z+(!X.key||j&&j.key===X.key?"":(""+X.key).replace(S,"$&/")+"/")+D)),T.push(X)),1;if(j=0,H=H===""?".":H+":",w(D))for(var _=0;_<D.length;_++){N=D[_];var Q=H+F(N,_);j+=K(N,T,z,Q,X)}else if(Q=h(D),typeof Q=="function")for(D=Q.call(D),_=0;!(N=D.next()).done;)N=N.value,Q=H+F(N,_++),j+=K(N,T,z,Q,X);else if(N==="object")throw T=String(D),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.");return j}function L(D,T,z){if(D==null)return D;var H=[],X=0;return K(D,H,"","",function(N){return T.call(z,N,X++)}),H}function P(D){if(D._status===-1){var T=D._result;T=T(),T.then(function(z){(D._status===0||D._status===-1)&&(D._status=1,D._result=z)},function(z){(D._status===0||D._status===-1)&&(D._status=2,D._result=z)}),D._status===-1&&(D._status=0,D._result=T)}if(D._status===1)return D._result.default;throw D._result}var W={current:null},J={transition:null},G={ReactCurrentDispatcher:W,ReactCurrentBatchConfig:J,ReactCurrentOwner:V};e.Children={map:L,forEach:function(D,T,z){L(D,function(){T.apply(this,arguments)},z)},count:function(D){var T=0;return L(D,function(){T++}),T},toArray:function(D){return L(D,function(T){return T})||[]},only:function(D){if(!k(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},e.Component=$,e.Fragment=r,e.Profiler=i,e.PureComponent=x,e.StrictMode=o,e.Suspense=c,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,e.cloneElement=function(D,T,z){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var H=b({},D.props),X=D.key,N=D.ref,j=D._owner;if(T!=null){if(T.ref!==void 0&&(N=T.ref,j=V.current),T.key!==void 0&&(X=""+T.key),D.type&&D.type.defaultProps)var _=D.type.defaultProps;for(Q in T)A.call(T,Q)&&!y.hasOwnProperty(Q)&&(H[Q]=T[Q]===void 0&&_!==void 0?_[Q]:T[Q])}var Q=arguments.length-2;if(Q===1)H.children=z;else if(1<Q){_=Array(Q);for(var ne=0;ne<Q;ne++)_[ne]=arguments[ne+2];H.children=_}return{$$typeof:t,type:D.type,key:X,ref:N,props:H,_owner:j}},e.createContext=function(D){return D={$$typeof:s,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:a,_context:D},D.Consumer=D},e.createElement=I,e.createFactory=function(D){var T=I.bind(null,D);return T.type=D,T},e.createRef=function(){return{current:null}},e.forwardRef=function(D){return{$$typeof:l,render:D}},e.isValidElement=k,e.lazy=function(D){return{$$typeof:f,_payload:{_status:-1,_result:D},_init:P}},e.memo=function(D,T){return{$$typeof:d,type:D,compare:T===void 0?null:T}},e.startTransition=function(D){var T=J.transition;J.transition={};try{D()}finally{J.transition=T}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(D,T){return W.current.useCallback(D,T)},e.useContext=function(D){return W.current.useContext(D)},e.useDebugValue=function(){},e.useDeferredValue=function(D){return W.current.useDeferredValue(D)},e.useEffect=function(D,T){return W.current.useEffect(D,T)},e.useId=function(){return W.current.useId()},e.useImperativeHandle=function(D,T,z){return W.current.useImperativeHandle(D,T,z)},e.useInsertionEffect=function(D,T){return W.current.useInsertionEffect(D,T)},e.useLayoutEffect=function(D,T){return W.current.useLayoutEffect(D,T)},e.useMemo=function(D,T){return W.current.useMemo(D,T)},e.useReducer=function(D,T,z){return W.current.useReducer(D,T,z)},e.useRef=function(D){return W.current.useRef(D)},e.useState=function(D){return W.current.useState(D)},e.useSyncExternalStore=function(D,T,z){return W.current.useSyncExternalStore(D,T,z)},e.useTransition=function(){return W.current.useTransition()},e.version="18.2.0"}}),H3=du({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.2.0",r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=Symbol.iterator,$="@@iterator";function C(v){if(v===null||typeof v!="object")return null;var B=g&&v[g]||v[$];return typeof B=="function"?B:null}var x={current:null},E={transition:null},w={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},A={current:null},V={},y=null;function I(v){y=v}V.setExtraStackFrame=function(v){y=v},V.getCurrentStack=null,V.getStackAddendum=function(){var v="";y&&(v+=y);var B=V.getCurrentStack;return B&&(v+=B()||""),v};var M=!1,k=!1,R=!1,S=!1,F=!1,K={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:E,ReactCurrentOwner:A};K.ReactDebugCurrentFrame=V,K.ReactCurrentActQueue=w;function L(v){{for(var B=arguments.length,U=new Array(B>1?B-1:0),Y=1;Y<B;Y++)U[Y-1]=arguments[Y];W("warn",v,U)}}function P(v){{for(var B=arguments.length,U=new Array(B>1?B-1:0),Y=1;Y<B;Y++)U[Y-1]=arguments[Y];W("error",v,U)}}function W(v,B,U){{var Y=K.ReactDebugCurrentFrame,te=Y.getStackAddendum();te!==""&&(B+="%s",U=U.concat([te]));var le=U.map(function(ie){return String(ie)});le.unshift("Warning: "+B),Function.prototype.apply.call(console[v],console,le)}}var J={};function G(v,B){{var U=v.constructor,Y=U&&(U.displayName||U.name)||"ReactClass",te=Y+"."+B;if(J[te])return;P("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",B,Y),J[te]=!0}}var D={isMounted:function(v){return!1},enqueueForceUpdate:function(v,B,U){G(v,"forceUpdate")},enqueueReplaceState:function(v,B,U,Y){G(v,"replaceState")},enqueueSetState:function(v,B,U,Y){G(v,"setState")}},T=Object.assign,z={};Object.freeze(z);function H(v,B,U){this.props=v,this.context=B,this.refs=z,this.updater=U||D}H.prototype.isReactComponent={},H.prototype.setState=function(v,B){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,B,"setState")},H.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};{var X={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},N=function(v,B){Object.defineProperty(H.prototype,v,{get:function(){L("%s(...) is deprecated in plain JavaScript React classes. %s",B[0],B[1])}})};for(var j in X)X.hasOwnProperty(j)&&N(j,X[j])}function _(){}_.prototype=H.prototype;function Q(v,B,U){this.props=v,this.context=B,this.refs=z,this.updater=U||D}var ne=Q.prototype=new _;ne.constructor=Q,T(ne,H.prototype),ne.isPureReactComponent=!0;function ee(){var v={current:null};return Object.seal(v),v}var q=Array.isArray;function he(v){return q(v)}function re(v){{var B=typeof Symbol=="function"&&Symbol.toStringTag,U=B&&v[Symbol.toStringTag]||v.constructor.name||"Object";return U}}function ce(v){try{return $e(v),!1}catch{return!0}}function $e(v){return""+v}function pe(v){if(ce(v))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",re(v)),$e(v)}function Oe(v,B,U){var Y=v.displayName;if(Y)return Y;var te=B.displayName||B.name||"";return te!==""?U+"("+te+")":U}function de(v){return v.displayName||"Context"}function ae(v){if(v==null)return null;if(typeof v.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case i:return"Fragment";case o:return"Portal";case s:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case c:var B=v;return de(B)+".Consumer";case l:var U=v;return de(U._context)+".Provider";case d:return Oe(v,v.render,"ForwardRef");case h:var Y=v.displayName||null;return Y!==null?Y:ae(v.type)||"Memo";case m:{var te=v,le=te._payload,ie=te._init;try{return ae(ie(le))}catch{return null}}}return null}var xe=Object.prototype.hasOwnProperty,Vt={key:!0,ref:!0,__self:!0,__source:!0},Je,se,Pe;Pe={};function ct(v){if(xe.call(v,"ref")){var B=Object.getOwnPropertyDescriptor(v,"ref").get;if(B&&B.isReactWarning)return!1}return v.ref!==void 0}function Wt(v){if(xe.call(v,"key")){var B=Object.getOwnPropertyDescriptor(v,"key").get;if(B&&B.isReactWarning)return!1}return v.key!==void 0}function mt(v,B){var U=function(){Je||(Je=!0,P("%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)",B))};U.isReactWarning=!0,Object.defineProperty(v,"key",{get:U,configurable:!0})}function Xa(v,B){var U=function(){se||(se=!0,P("%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)",B))};U.isReactWarning=!0,Object.defineProperty(v,"ref",{get:U,configurable:!0})}function Ja(v){if(typeof v.ref=="string"&&A.current&&v.__self&&A.current.stateNode!==v.__self){var B=ae(A.current.type);Pe[B]||(P('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',B,v.ref),Pe[B]=!0)}}var Qe=function(v,B,U,Y,te,le,ie){var fe={$$typeof:r,type:v,key:B,ref:U,props:ie,_owner:le};return fe._store={},Object.defineProperty(fe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(fe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.defineProperty(fe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze(fe.props),Object.freeze(fe)),fe};function _r(v,B,U){var Y,te={},le=null,ie=null,fe=null,ve=null;if(B!=null){ct(B)&&(ie=B.ref,Ja(B)),Wt(B)&&(pe(B.key),le=""+B.key),fe=B.__self===void 0?null:B.__self,ve=B.__source===void 0?null:B.__source;for(Y in B)xe.call(B,Y)&&!Vt.hasOwnProperty(Y)&&(te[Y]=B[Y])}var Ae=arguments.length-2;if(Ae===1)te.children=U;else if(Ae>1){for(var Fe=Array(Ae),Be=0;Be<Ae;Be++)Fe[Be]=arguments[Be+2];Object.freeze&&Object.freeze(Fe),te.children=Fe}if(v&&v.defaultProps){var Le=v.defaultProps;for(Y in Le)te[Y]===void 0&&(te[Y]=Le[Y])}if(le||ie){var Ue=typeof v=="function"?v.displayName||v.name||"Unknown":v;le&&mt(te,Ue),ie&&Xa(te,Ue)}return Qe(v,le,ie,fe,ve,A.current,te)}function k$(v,B){var U=Qe(v.type,B,v.ref,v._self,v._source,v._owner,v.props);return U}function M$(v,B,U){if(v==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+v+".");var Y,te=T({},v.props),le=v.key,ie=v.ref,fe=v._self,ve=v._source,Ae=v._owner;if(B!=null){ct(B)&&(ie=B.ref,Ae=A.current),Wt(B)&&(pe(B.key),le=""+B.key);var Fe;v.type&&v.type.defaultProps&&(Fe=v.type.defaultProps);for(Y in B)xe.call(B,Y)&&!Vt.hasOwnProperty(Y)&&(B[Y]===void 0&&Fe!==void 0?te[Y]=Fe[Y]:te[Y]=B[Y])}var Be=arguments.length-2;if(Be===1)te.children=U;else if(Be>1){for(var Le=Array(Be),Ue=0;Ue<Be;Ue++)Le[Ue]=arguments[Ue+2];te.children=Le}return Qe(v.type,le,ie,fe,ve,Ae,te)}function nr(v){return typeof v=="object"&&v!==null&&v.$$typeof===r}var jc=".",R$=":";function F$(v){var B=/[=:]/g,U={"=":"=0",":":"=2"},Y=v.replace(B,function(te){return U[te]});return"$"+Y}var zc=!1,B$=/\/+/g;function Uc(v){return v.replace(B$,"$&/")}function Qa(v,B){return typeof v=="object"&&v!==null&&v.key!=null?(pe(v.key),F$(""+v.key)):B.toString(36)}function Yo(v,B,U,Y,te){var le=typeof v;(le==="undefined"||le==="boolean")&&(v=null);var ie=!1;if(v===null)ie=!0;else switch(le){case"string":case"number":ie=!0;break;case"object":switch(v.$$typeof){case r:case o:ie=!0}}if(ie){var fe=v,ve=te(fe),Ae=Y===""?jc+Qa(fe,0):Y;if(he(ve)){var Fe="";Ae!=null&&(Fe=Uc(Ae)+"/"),Yo(ve,B,Fe,"",function(S3){return S3})}else ve!=null&&(nr(ve)&&(ve.key&&(!fe||fe.key!==ve.key)&&pe(ve.key),ve=k$(ve,U+(ve.key&&(!fe||fe.key!==ve.key)?Uc(""+ve.key)+"/":"")+Ae)),B.push(ve));return 1}var Be,Le,Ue=0,et=Y===""?jc:Y+R$;if(he(v))for(var ni=0;ni<v.length;ni++)Be=v[ni],Le=et+Qa(Be,ni),Ue+=Yo(Be,B,U,Le,te);else{var ls=C(v);if(typeof ls=="function"){var hd=v;ls===hd.entries&&(zc||L("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),zc=!0);for(var D3=ls.call(hd),md,P3=0;!(md=D3.next()).done;)Be=md.value,Le=et+Qa(Be,P3++),Ue+=Yo(Be,B,U,Le,te)}else if(le==="object"){var bd=String(v);throw new Error("Objects are not valid as a React child (found: "+(bd==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":bd)+"). If you meant to render a collection of children, use an array instead.")}}return Ue}function qo(v,B,U){if(v==null)return v;var Y=[],te=0;return Yo(v,Y,"","",function(le){return B.call(U,le,te++)}),Y}function I$(v){var B=0;return qo(v,function(){B++}),B}function O$(v,B,U){qo(v,function(){B.apply(this,arguments)},U)}function L$(v){return qo(v,function(B){return B})||[]}function V$(v){if(!nr(v))throw new Error("React.Children.only expected to receive a single React element child.");return v}function N$(v){var B={$$typeof:c,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};B.Provider={$$typeof:l,_context:B};var U=!1,Y=!1,te=!1;{var le={$$typeof:c,_context:B};Object.defineProperties(le,{Provider:{get:function(){return Y||(Y=!0,P("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),B.Provider},set:function(ie){B.Provider=ie}},_currentValue:{get:function(){return B._currentValue},set:function(ie){B._currentValue=ie}},_currentValue2:{get:function(){return B._currentValue2},set:function(ie){B._currentValue2=ie}},_threadCount:{get:function(){return B._threadCount},set:function(ie){B._threadCount=ie}},Consumer:{get:function(){return U||(U=!0,P("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),B.Consumer}},displayName:{get:function(){return B.displayName},set:function(ie){te||(L("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ie),te=!0)}}}),B.Consumer=le}return B._currentRenderer=null,B._currentRenderer2=null,B}var Kr=-1,es=0,Hc=1,_$=2;function K$(v){if(v._status===Kr){var B=v._result,U=B();if(U.then(function(le){if(v._status===es||v._status===Kr){var ie=v;ie._status=Hc,ie._result=le}},function(le){if(v._status===es||v._status===Kr){var ie=v;ie._status=_$,ie._result=le}}),v._status===Kr){var Y=v;Y._status=es,Y._result=U}}if(v._status===Hc){var te=v._result;return te===void 0&&P(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -6,21 +6,21 @@ Your code should look like:
|
|
|
6
6
|
Did you accidentally put curly braces around the import?`,te),"default"in te||P(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
7
|
|
|
8
8
|
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,te),te.default}else throw
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,te),te.default}else throw v._result}function j$(v){var B={_status:Kr,_result:v},U={$$typeof:m,_payload:B,_init:K$};{var Y,te;Object.defineProperties(U,{defaultProps:{configurable:!0,get:function(){return Y},set:function(le){P("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Y=le,Object.defineProperty(U,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return te},set:function(le){P("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),te=le,Object.defineProperty(U,"propTypes",{enumerable:!0})}}})}return U}function z$(v){v!=null&&v.$$typeof===h?P("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof v!="function"?P("forwardRef requires a render function but was given %s.",v===null?"null":typeof v):v.length!==0&&v.length!==2&&P("forwardRef render functions accept exactly two parameters: props and ref. %s",v.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),v!=null&&(v.defaultProps!=null||v.propTypes!=null)&&P("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var B={$$typeof:d,render:v};{var U;Object.defineProperty(B,"displayName",{enumerable:!1,configurable:!0,get:function(){return U},set:function(Y){U=Y,!v.name&&!v.displayName&&(v.displayName=Y)}})}return B}var Gc;Gc=Symbol.for("react.module.reference");function Wc(v){return!!(typeof v=="string"||typeof v=="function"||v===i||v===s||F||v===a||v===f||v===p||S||v===b||M||k||R||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===h||v.$$typeof===l||v.$$typeof===c||v.$$typeof===d||v.$$typeof===Gc||v.getModuleId!==void 0))}function U$(v,B){Wc(v)||P("memo: The first argument must be a component. Instead received: %s",v===null?"null":typeof v);var U={$$typeof:h,type:v,compare:B===void 0?null:B};{var Y;Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return Y},set:function(te){Y=te,!v.name&&!v.displayName&&(v.displayName=te)}})}return U}function st(){var v=x.current;return v===null&&P(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
10
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
11
|
2. You might be breaking the Rules of Hooks
|
|
12
12
|
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),
|
|
14
|
-
`+ns+
|
|
15
|
-
`),
|
|
16
|
-
`),Ae=fe.length-1,Fe=
|
|
17
|
-
`+fe[Ae].replace(" at new "," at ");return
|
|
13
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),v}function H$(v){var B=st();if(v._context!==void 0){var U=v._context;U.Consumer===v?P("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):U.Provider===v&&P("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return B.useContext(v)}function G$(v){var B=st();return B.useState(v)}function W$(v,B,U){var Y=st();return Y.useReducer(v,B,U)}function Y$(v){var B=st();return B.useRef(v)}function q$(v,B){var U=st();return U.useEffect(v,B)}function Z$(v,B){var U=st();return U.useInsertionEffect(v,B)}function X$(v,B){var U=st();return U.useLayoutEffect(v,B)}function J$(v,B){var U=st();return U.useCallback(v,B)}function Q$(v,B){var U=st();return U.useMemo(v,B)}function e3(v,B,U){var Y=st();return Y.useImperativeHandle(v,B,U)}function t3(v,B){{var U=st();return U.useDebugValue(v,B)}}function n3(){var v=st();return v.useTransition()}function r3(v){var B=st();return B.useDeferredValue(v)}function o3(){var v=st();return v.useId()}function i3(v,B,U){var Y=st();return Y.useSyncExternalStore(v,B,U)}var jr=0,Yc,qc,Zc,Xc,Jc,Qc,ed;function td(){}td.__reactDisabledLog=!0;function a3(){{if(jr===0){Yc=console.log,qc=console.info,Zc=console.warn,Xc=console.error,Jc=console.group,Qc=console.groupCollapsed,ed=console.groupEnd;var v={configurable:!0,enumerable:!0,value:td,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}jr++}}function s3(){{if(jr--,jr===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},v,{value:Yc}),info:T({},v,{value:qc}),warn:T({},v,{value:Zc}),error:T({},v,{value:Xc}),group:T({},v,{value:Jc}),groupCollapsed:T({},v,{value:Qc}),groupEnd:T({},v,{value:ed})})}jr<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ts=K.ReactCurrentDispatcher,ns;function Zo(v,B,U){{if(ns===void 0)try{throw Error()}catch(te){var Y=te.stack.trim().match(/\n( *(at )?)/);ns=Y&&Y[1]||""}return`
|
|
14
|
+
`+ns+v}}var rs=!1,Xo;{var l3=typeof WeakMap=="function"?WeakMap:Map;Xo=new l3}function nd(v,B){if(!v||rs)return"";{var U=Xo.get(v);if(U!==void 0)return U}var Y;rs=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var le;le=ts.current,ts.current=null,a3();try{if(B){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(et){Y=et}Reflect.construct(v,[],ie)}else{try{ie.call()}catch(et){Y=et}v.call(ie.prototype)}}else{try{throw Error()}catch(et){Y=et}v()}}catch(et){if(et&&Y&&typeof et.stack=="string"){for(var fe=et.stack.split(`
|
|
15
|
+
`),ve=Y.stack.split(`
|
|
16
|
+
`),Ae=fe.length-1,Fe=ve.length-1;Ae>=1&&Fe>=0&&fe[Ae]!==ve[Fe];)Fe--;for(;Ae>=1&&Fe>=0;Ae--,Fe--)if(fe[Ae]!==ve[Fe]){if(Ae!==1||Fe!==1)do if(Ae--,Fe--,Fe<0||fe[Ae]!==ve[Fe]){var Be=`
|
|
17
|
+
`+fe[Ae].replace(" at new "," at ");return v.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",v.displayName)),typeof v=="function"&&Xo.set(v,Be),Be}while(Ae>=1&&Fe>=0);break}}}finally{rs=!1,ts.current=le,s3(),Error.prepareStackTrace=te}var Le=v?v.displayName||v.name:"",Ue=Le?Zo(Le):"";return typeof v=="function"&&Xo.set(v,Ue),Ue}function u3(v,B,U){return nd(v,!1)}function c3(v){var B=v.prototype;return!!(B&&B.isReactComponent)}function Jo(v,B,U){if(v==null)return"";if(typeof v=="function")return nd(v,c3(v));if(typeof v=="string")return Zo(v);switch(v){case f:return Zo("Suspense");case p:return Zo("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case d:return u3(v.render);case h:return Jo(v.type,B,U);case m:{var Y=v,te=Y._payload,le=Y._init;try{return Jo(le(te),B,U)}catch{}}}return""}var rd={},od=K.ReactDebugCurrentFrame;function Qo(v){if(v){var B=v._owner,U=Jo(v.type,v._source,B?B.type:null);od.setExtraStackFrame(U)}else od.setExtraStackFrame(null)}function d3(v,B,U,Y,te){{var le=Function.call.bind(xe);for(var ie in v)if(le(v,ie)){var fe=void 0;try{if(typeof v[ie]!="function"){var ve=Error((Y||"React class")+": "+U+" type `"+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[ie]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ve.name="Invariant Violation",ve}fe=v[ie](B,ie,Y,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ae){fe=Ae}fe&&!(fe instanceof Error)&&(Qo(te),P("%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).",Y||"React class",U,ie,typeof fe),Qo(null)),fe instanceof Error&&!(fe.message in rd)&&(rd[fe.message]=!0,Qo(te),P("Failed %s type: %s",U,fe.message),Qo(null))}}}function rr(v){if(v){var B=v._owner,U=Jo(v.type,v._source,B?B.type:null);I(U)}else I(null)}var os;os=!1;function id(){if(A.current){var v=ae(A.current.type);if(v)return`
|
|
18
18
|
|
|
19
|
-
Check the render method of \``+
|
|
19
|
+
Check the render method of \``+v+"`."}return""}function f3(v){if(v!==void 0){var B=v.fileName.replace(/^.*[\\\/]/,""),U=v.lineNumber;return`
|
|
20
20
|
|
|
21
|
-
Check your code at `+B+":"+U+"."}return""}function
|
|
21
|
+
Check your code at `+B+":"+U+"."}return""}function p3(v){return v!=null?f3(v.__source):""}var ad={};function h3(v){var B=id();if(!B){var U=typeof v=="string"?v:v.displayName||v.name;U&&(B=`
|
|
22
22
|
|
|
23
|
-
Check the top-level render call using <`+U+">.")}return B}function sd(
|
|
23
|
+
Check the top-level render call using <`+U+">.")}return B}function sd(v,B){if(!(!v._store||v._store.validated||v.key!=null)){v._store.validated=!0;var U=h3(B);if(!ad[U]){ad[U]=!0;var Y="";v&&v._owner&&v._owner!==A.current&&(Y=" It was passed a child from "+ae(v._owner.type)+"."),rr(v),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,Y),rr(null)}}}function ld(v,B){if(typeof v=="object"){if(he(v))for(var U=0;U<v.length;U++){var Y=v[U];nr(Y)&&sd(Y,B)}else if(nr(v))v._store&&(v._store.validated=!0);else if(v){var te=C(v);if(typeof te=="function"&&te!==v.entries)for(var le=te.call(v),ie;!(ie=le.next()).done;)nr(ie.value)&&sd(ie.value,B)}}}function ud(v){{var B=v.type;if(B==null||typeof B=="string")return;var U;if(typeof B=="function")U=B.propTypes;else if(typeof B=="object"&&(B.$$typeof===d||B.$$typeof===h))U=B.propTypes;else return;if(U){var Y=ae(B);d3(U,v.props,"prop",Y,v)}else if(B.PropTypes!==void 0&&!os){os=!0;var te=ae(B);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof B.getDefaultProps=="function"&&!B.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function m3(v){{for(var B=Object.keys(v.props),U=0;U<B.length;U++){var Y=B[U];if(Y!=="children"&&Y!=="key"){rr(v),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),rr(null);break}}v.ref!==null&&(rr(v),P("Invalid attribute `ref` supplied to `React.Fragment`."),rr(null))}}function cd(v,B,U){var Y=Wc(v);if(!Y){var te="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(te+=" 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 le=p3(B);le?te+=le:te+=id();var ie;v===null?ie="null":he(v)?ie="array":v!==void 0&&v.$$typeof===r?(ie="<"+(ae(v.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):ie=typeof v,P("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ie,te)}var fe=_r.apply(this,arguments);if(fe==null)return fe;if(Y)for(var ve=2;ve<arguments.length;ve++)ld(arguments[ve],v);return v===i?m3(fe):ud(fe),fe}var dd=!1;function b3(v){var B=cd.bind(null,v);return B.type=v,dd||(dd=!0,L("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(B,"type",{enumerable:!1,get:function(){return L("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:v}),v}}),B}function g3(v,B,U){for(var Y=M$.apply(this,arguments),te=2;te<arguments.length;te++)ld(arguments[te],Y.type);return ud(Y),Y}function v3(v,B){var U=E.transition;E.transition={};var Y=E.transition;E.transition._updatedFibers=new Set;try{v()}finally{if(E.transition=U,U===null&&Y._updatedFibers){var te=Y._updatedFibers.size;te>10&&L("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),Y._updatedFibers.clear()}}}var fd=!1,ei=null;function y3(v){if(ei===null)try{var B=("require"+Math.random()).slice(0,7),U=t&&t[B];ei=U.call(t,"timers").setImmediate}catch{ei=function(te){fd===!1&&(fd=!0,typeof MessageChannel>"u"&&P("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var le=new MessageChannel;le.port1.onmessage=te,le.port2.postMessage(void 0)}}return ei(v)}var or=0,pd=!1;function $3(v){{var B=or;or++,w.current===null&&(w.current=[]);var U=w.isBatchingLegacy,Y;try{if(w.isBatchingLegacy=!0,Y=v(),!U&&w.didScheduleLegacyUpdate){var te=w.current;te!==null&&(w.didScheduleLegacyUpdate=!1,ss(te))}}catch(Le){throw ti(B),Le}finally{w.isBatchingLegacy=U}if(Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var le=Y,ie=!1,fe={then:function(Le,Ue){ie=!0,le.then(function(et){ti(B),or===0?is(et,Le,Ue):Le(et)},function(et){ti(B),Ue(et)})}};return!pd&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){ie||(pd=!0,P("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),fe}else{var ve=Y;if(ti(B),or===0){var Ae=w.current;Ae!==null&&(ss(Ae),w.current=null);var Fe={then:function(Le,Ue){w.current===null?(w.current=[],is(ve,Le,Ue)):Le(ve)}};return Fe}else{var Be={then:function(Le,Ue){Le(ve)}};return Be}}}}function ti(v){v!==or-1&&P("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),or=v}function is(v,B,U){{var Y=w.current;if(Y!==null)try{ss(Y),y3(function(){Y.length===0?(w.current=null,B(v)):is(v,B,U)})}catch(te){U(te)}else B(v)}}var as=!1;function ss(v){if(!as){as=!0;var B=0;try{for(;B<v.length;B++){var U=v[B];do U=U(!0);while(U!==null)}v.length=0}catch(Y){throw v=v.slice(B+1),Y}finally{as=!1}}}var x3=cd,w3=g3,C3=b3,E3={map:qo,forEach:O$,count:I$,toArray:L$,only:V$};e.Children=E3,e.Component=H,e.Fragment=i,e.Profiler=s,e.PureComponent=Q,e.StrictMode=a,e.Suspense=f,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,e.cloneElement=w3,e.createContext=N$,e.createElement=x3,e.createFactory=C3,e.createRef=ee,e.forwardRef=z$,e.isValidElement=nr,e.lazy=j$,e.memo=U$,e.startTransition=v3,e.unstable_act=$3,e.useCallback=J$,e.useContext=H$,e.useDebugValue=t3,e.useDeferredValue=r3,e.useEffect=q$,e.useId=o3,e.useImperativeHandle=e3,e.useInsertionEffect=Z$,e.useLayoutEffect=X$,e.useMemo=Q$,e.useReducer=W$,e.useRef=Y$,e.useState=G$,e.useSyncExternalStore=i3,e.useTransition=n3,e.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),G3=du({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){process.env.NODE_ENV==="production"?t.exports=U3():t.exports=H3()}});/**
|
|
24
24
|
* @license React
|
|
25
25
|
* react.development.js
|
|
26
26
|
*
|
|
@@ -36,7 +36,7 @@ Check the top-level render call using <`+U+">.")}return B}function sd(g,B){if(!(
|
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var gd=_3(z3());function U3(e){return gd.Children.toArray(e).filter(t=>(0,gd.isValidElement)(t))}var[H3,yh]=S3({name:"AvatarGroupContext",strict:!1}),G3=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],us=G3.map(e=>`unit-${e}`),yd=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bt=e=>!e||typeof e!="object"||Object.keys(e).length===0,W3=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function $h(e,t){e.forEach(function(n){Array.isArray(n)?$h(n,t):t.push(n)})}function xh(e){let t=[];return $h(e,t),t}var wh=(...e)=>xh(e).filter(Boolean),Ch=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let a=e[i],s=t[i];typeof a=="object"&&typeof s=="object"?n[i]=Ch(a,s):Array.isArray(a)||Array.isArray(s)?n[i]=wh(s,a):n[i]=s+" "+a}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},$d=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function Y3(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Eh(t))&&(r&&(r+=" "),r+=n);return r}function Eh(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Eh(e[r]))&&(n&&(n+=" "),n+=t);return n}var fu="-";function q3(e){var t=X3(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(s){var l=s.split(fu);return l[0]===""&&l.length!==1&&l.shift(),Dh(l,t)||Z3(s)}function a(s,l){var c=n[s]||[];return l&&o[s]?[].concat(c,o[s]):c}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Dh(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Dh(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(fu);return(a=t.validators.find(function(s){var l=s.validator;return l(i)}))==null?void 0:a.classGroupId}}var xd=/^\[(.+)\]$/;function Z3(e){if(xd.test(e)){var t=xd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function X3(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=Q3(Object.entries(e.classGroups),n);return o.forEach(function(i){var a=i[0],s=i[1];el(s,r,a,t)}),r}function el(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:wd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(J3(o)){el(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(a){var s=a[0],l=a[1];el(l,wd(t,s),n,r)})})}function wd(e,t){var n=e;return t.split(fu).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function J3(e){return e.isThemeGetter}function Q3(e,t){return t?e.map(function(n){var r=n[0],o=n[1],i=o.map(function(a){return typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(function(s){var l=s[0],c=s[1];return[t+l,c]})):a});return[r,i]}):e}function ex(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(i,a){n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(a){var s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set:function(a,s){n.has(a)?n.set(a,s):o(a,s)}}}var Ph="!";function tx(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(a){for(var s=[],l=0,c=0,d,f=0;f<a.length;f++){var p=a[f];if(l===0){if(p===r&&(n||a.slice(f,f+o)===t)){s.push(a.slice(c,f)),c=f+o;continue}if(p==="/"){d=f;continue}}p==="["?l++:p==="]"&&l--}var h=s.length===0?a:a.substring(c),m=h.startsWith(Ph),b=m?h.substring(1):h,v=d&&d>c?d-c:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:v}}}function nx(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function rx(e){return{cache:ex(e.cacheSize),splitModifiers:tx(e),...q3(e)}}var ox=/\s+/;function ix(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(ox).map(function(a){var s=n(a),l=s.modifiers,c=s.hasImportantModifier,d=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?d.substring(0,f):d),h=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:a};if(p=r(d),!p)return{isTailwindClass:!1,originalClassName:a};h=!1}var m=nx(l).join(":"),b=c?m+Ph:m;return{isTailwindClass:!0,modifierId:b,classGroupId:p,originalClassName:a,hasPostfixModifier:h}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var s=a.modifierId,l=a.classGroupId,c=a.hasPostfixModifier,d=s+l;return i.has(d)?!1:(i.add(d),o(l,c).forEach(function(f){return i.add(s+f)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function tl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=s;function s(c){var d=t[0],f=t.slice(1),p=f.reduce(function(h,m){return m(h)},d());return r=rx(p),o=r.cache.get,i=r.cache.set,a=l,l(c)}function l(c){var d=o(c);if(d)return d;var f=ix(c,r);return i(c,f),f}return function(){return a(Y3.apply(null,arguments))}}function Re(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var Sh=/^\[(?:([a-z-]+):)?(.+)\]$/i,ax=/^\d+\/\d+$/,sx=new Set(["px","full","screen"]),lx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ux=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,cx=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Bt(e){return Ln(e)||sx.has(e)||ax.test(e)||nl(e)}function nl(e){return qn(e,"length",bx)}function dx(e){return qn(e,"size",Th)}function fx(e){return qn(e,"position",Th)}function px(e){return qn(e,"url",vx)}function ri(e){return qn(e,"number",Ln)}function Ln(e){return!Number.isNaN(Number(e))}function hx(e){return e.endsWith("%")&&Ln(e.slice(0,-1))}function zr(e){return Cd(e)||qn(e,"number",Cd)}function be(e){return Sh.test(e)}function Ur(){return!0}function hn(e){return lx.test(e)}function mx(e){return qn(e,"",gx)}function qn(e,t,n){var r=Sh.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function bx(e){return ux.test(e)}function Th(){return!1}function vx(e){return e.startsWith("url(")}function Cd(e){return Number.isInteger(Number(e))}function gx(e){return cx.test(e)}function rl(){var e=Re("colors"),t=Re("spacing"),n=Re("blur"),r=Re("brightness"),o=Re("borderColor"),i=Re("borderRadius"),a=Re("borderSpacing"),s=Re("borderWidth"),l=Re("contrast"),c=Re("grayscale"),d=Re("hueRotate"),f=Re("invert"),p=Re("gap"),h=Re("gradientColorStops"),m=Re("gradientColorStopPositions"),b=Re("inset"),v=Re("margin"),$=Re("opacity"),C=Re("padding"),x=Re("saturate"),E=Re("scale"),w=Re("sepia"),A=Re("skew"),V=Re("space"),y=Re("translate"),I=function(){return["auto","contain","none"]},M=function(){return["auto","hidden","clip","visible","scroll"]},k=function(){return["auto",be,t]},R=function(){return[be,t]},S=function(){return["",Bt]},F=function(){return["auto",Ln,be]},K=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},L=function(){return["solid","dashed","dotted","double","none"]},P=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},W=function(){return["start","end","center","between","around","evenly","stretch"]},J=function(){return["","0",be]},G=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},D=function(){return[Ln,ri]},T=function(){return[Ln,be]};return{cacheSize:500,theme:{colors:[Ur],spacing:[Bt],blur:["none","",hn,be],brightness:D(),borderColor:[e],borderRadius:["none","","full",hn,be],borderSpacing:R(),borderWidth:S(),contrast:D(),grayscale:J(),hueRotate:T(),invert:J(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[hx,nl],inset:k(),margin:k(),opacity:D(),padding:R(),saturate:D(),scale:D(),sepia:J(),skew:T(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",be]}],container:["container"],columns:[{columns:[hn]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(K(),[be])}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zr]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",be]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",zr]}],"grid-cols":[{"grid-cols":[Ur]}],"col-start-end":[{col:["auto",{span:["full",zr]},be]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Ur]}],"row-start-end":[{row:["auto",{span:[zr]},be]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",be]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(W())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(W(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(W(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",be,t]}],"min-w":[{"min-w":["min","max","fit",be,Bt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[hn]},hn,be]}],h:[{h:[be,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",be,Bt]}],"max-h":[{"max-h":[be,t,"min","max","fit"]}],"font-size":[{text:["base",hn,nl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ri]}],"font-family":[{font:[Ur]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",be]}],"line-clamp":[{"line-clamp":["none",Ln,ri]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",be,Bt]}],"list-image":[{"list-image":["none",be]}],"list-style-type":[{list:["none","disc","decimal",be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(L(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Bt]}],"underline-offset":[{"underline-offset":["auto",be,Bt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(K(),[fx])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},px]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[$]}],"border-style":[{border:[].concat(L(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$]}],"divide-style":[{divide:L()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(L())}],"outline-offset":[{"outline-offset":[be,Bt]}],"outline-w":[{outline:[Bt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[Bt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",hn,mx]}],"shadow-color":[{shadow:[Ur]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":P()}],"bg-blend":[{"bg-blend":P()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",hn,be]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",be]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",be]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[zr,be]}],"translate-x":[{"translate-x":[y]}],"translate-y":[{"translate-y":[y]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Bt,ri]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function yx(e,t){for(var n in t)Ah(e,n,t[n]);return e}var $x=Object.prototype.hasOwnProperty,xx=new Set(["string","number","boolean"]);function Ah(e,t,n){if(!$x.call(e,t)||xx.has(typeof n)||n===null){e[t]=n;return}if(Array.isArray(n)&&Array.isArray(e[t])){e[t]=e[t].concat(n);return}if(typeof n=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=n;return}for(var r in n)Ah(e[t],r,n[r])}}function wx(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?tl.apply(void 0,[rl,e].concat(n)):tl.apply(void 0,[function(){return yx(rl(),e)}].concat(n))}var Cx=tl(rl),Ex={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},kh=e=>e||void 0,bo=(...e)=>kh(xh(e).filter(Boolean).join(" ")),cs=null,Ni={},ol=!1,Hr=(...e)=>t=>t.twMerge?((!cs||ol)&&(ol=!1,cs=bt(Ni)?Cx:wx(Ni)),kh(cs(bo(e)))):bo(e),Ed=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=bo(e[n],t[n]):e[n]=t[n];return e},Dx=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:a=[],defaultVariants:s={}}=e,l={...Ex,...t},c=n!=null&&n.base?bo(n.base,e==null?void 0:e.base):e==null?void 0:e.base,d=n!=null&&n.variants&&!bt(n.variants)?Ch(o,n.variants):o,f=n!=null&&n.defaultVariants&&!bt(n.defaultVariants)?{...n.defaultVariants,...s}:s;!bt(l.twMergeConfig)&&!W3(l.twMergeConfig,Ni)&&(ol=!0,Ni=l.twMergeConfig);let p=bt(n==null?void 0:n.slots),h=bt(r)?{}:{base:bo(e==null?void 0:e.base,p&&(n==null?void 0:n.base)),...r},m=p?h:Ed({...n==null?void 0:n.slots},bt(h)?{base:e==null?void 0:e.base}:h),b=$=>{if(bt(d)&&bt(r)&&p)return Hr(c,$==null?void 0:$.class,$==null?void 0:$.className)(l);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof a}`);let C=(R,S,F=[],K)=>{let L=F;if(typeof S=="string")L=L.concat($d(S).split(" ").map(P=>`${R}:${P}`));else if(Array.isArray(S))L=L.concat(S.reduce((P,W)=>P.concat(`${R}:${W}`),[]));else if(typeof S=="object"&&typeof K=="string"){for(let P in S)if(S.hasOwnProperty(P)&&P===K){let W=S[P];if(W&&typeof W=="string"){let J=$d(W);L[K]?L[K]=L[K].concat(J.split(" ").map(G=>`${R}:${G}`)):L[K]=J.split(" ").map(G=>`${R}:${G}`)}else Array.isArray(W)&&W.length>0&&(L[K]=W.reduce((J,G)=>J.concat(`${R}:${G}`),[]))}}return L},x=(R,S=d,F=null,K=null)=>{var L;let P=S[R];if(!P||bt(P))return null;let W=(L=K==null?void 0:K[R])!=null?L:$==null?void 0:$[R];if(W===null)return null;let J=yd(W),G=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,D=f==null?void 0:f[R],T=[];if(typeof J=="object"&&G)for(let[H,Z]of Object.entries(J)){let N=P[Z];if(H==="initial"){D=Z;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(H)||(T=C(H,N,T,F))}let z=P[J]||P[yd(D)];return typeof T=="object"&&typeof F=="string"&&T[F]?Ed(T,z):T.length>0?(T.push(z),T):z},E=()=>d?Object.keys(d).map(R=>x(R,d)):null,w=(R,S)=>{if(!d||typeof d!="object")return null;let F=new Array;for(let K in d){let L=x(K,d,R,S),P=R==="base"&&typeof L=="string"?L:L&&L[R];P&&(F[F.length]=P)}return F},A={};for(let R in $)$[R]!==void 0&&(A[R]=$[R]);let V=(R,S)=>{var F;let K=typeof($==null?void 0:$[R])=="object"?{[R]:(F=$[R])==null?void 0:F.initial}:{};return{...f,...A,...K,...S}},y=(R=[],S)=>{let F=[];for(let{class:K,className:L,...P}of R){let W=!0;for(let[J,G]of Object.entries(P)){let D=V(J,S);if(Array.isArray(G)){if(!G.includes(D[J])){W=!1;break}}else if(D[J]!==G){W=!1;break}}W&&(K&&F.push(K),L&&F.push(L))}return F},I=R=>{let S=y(i,R),F=y(n==null?void 0:n.compoundVariants,R);return wh(F,S)},M=R=>{let S=I(R);if(!Array.isArray(S))return S;let F={};for(let K of S)if(typeof K=="string"&&(F.base=Hr(F.base,K)(l)),typeof K=="object")for(let[L,P]of Object.entries(K))F[L]=Hr(F[L],P)(l);return F},k=R=>{if(a.length<1)return null;let S={};for(let{slots:F=[],class:K,className:L,...P}of a){if(!bt(P)){let W=!0;for(let J of Object.keys(P)){let G=V(J,R)[J];if(G===void 0||(Array.isArray(P[J])?!P[J].includes(G):P[J]!==G)){W=!1;break}}if(!W)continue}for(let W of F)S[W]=S[W]||[],S[W].push([K,L])}return S};if(!bt(r)||!p){let R={};if(typeof m=="object"&&!bt(m))for(let S of Object.keys(m))R[S]=F=>{var K,L;return Hr(m[S],w(S,F),((K=M(F))!=null?K:[])[S],((L=k(F))!=null?L:[])[S],F==null?void 0:F.class,F==null?void 0:F.className)(l)};return R}return Hr(c,E(),I(),$==null?void 0:$.class,$==null?void 0:$.className)(l)},v=()=>{if(!(!d||typeof d!="object"))return Object.keys(d)};return b.variantKeys=v(),b.extend=n,b.base=c,b.slots=m,b.variants=d,b.defaultVariants=f,b.compoundSlots=a,b.compoundVariants=i,b},oi=["small","medium","large"],xa=(e,t)=>{var n,r,o;return Dx(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider","unit",...us],borderWidth:oi,borderRadius:oi},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:oi}],"font-size":[{text:["tiny",...oi]}],"bg-image":["bg-stripe-gradient"],"min-w":[{"min-w":["unit",...us]}],"min-h":[{"min-h":["unit",...us]}]}}})},Mh=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],ds=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],Px={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},Sx={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},Tx={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},Ax={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},kx={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},Mx={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},Rx={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},ve={solid:Px,shadow:Sx,bordered:Tx,flat:Ax,faded:kx,light:Mx,ghost:Rx},Dd=xa({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...Mh],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:ve.solid.foreground},primary:{base:"before:bg-primary",content:ve.solid.primary},secondary:{base:"before:bg-secondary",content:ve.solid.secondary},success:{base:"before:bg-success",content:ve.solid.success},warning:{base:"before:bg-warning",content:ve.solid.warning},danger:{base:"before:bg-danger",content:ve.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",disableAnimation:!1,triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),Fx=xa({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...Mh],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...ds,"flex","items-center","justify-center"],name:[...ds,"font-normal","text-center","text-inherit"],icon:[...ds,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:ve.solid.default},primary:{base:ve.solid.primary},secondary:{base:ve.solid.secondary},success:{base:ve.solid.success},warning:{base:ve.solid.warning},danger:{base:ve.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]}),Bx=xa({base:"flex items-center justify-center h-auto w-max-content",variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),Pd=xa({slots:{base:["relative","inline-flex","shrink-0"],badge:["flex","z-10","flex-wrap","absolute","box-border","rounded-full","whitespace-nowrap","place-content-center","origin-center","items-center","text-inherit","select-none","font-regular","scale-100","opacity-100","subpixel-antialiased","data-[invisible=true]:scale-0","data-[invisible=true]:opacity-0"]},variants:{variant:{solid:{},flat:{},faded:{badge:"border-medium"},shadow:{}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{badge:"px-1 text-tiny"},md:{badge:"px-1 text-small"},lg:{badge:"px-1 text-small"}},placement:{"top-right":{},"top-left":{},"bottom-right":{},"bottom-left":{}},shape:{circle:{},rectangle:{}},isInvisible:{true:{}},isOneChar:{true:{badge:"px-0"}},isDot:{true:{}},disableAnimation:{true:{badge:"transition-none"},false:{badge:"transition-transform-opacity !ease-soft-spring !duration-300"}},showOutline:{true:{badge:"border-2 border-background"},false:{badge:"border-transparent border-0"}}},defaultVariants:{variant:"solid",color:"default",size:"md",shape:"rectangle",placement:"top-right",showOutline:!0,disableAnimation:!1,isInvisible:!1},compoundVariants:[{variant:"solid",color:"default",class:{badge:ve.solid.default}},{variant:"solid",color:"primary",class:{badge:ve.solid.primary}},{variant:"solid",color:"secondary",class:{badge:ve.solid.secondary}},{variant:"solid",color:"success",class:{badge:ve.solid.success}},{variant:"solid",color:"warning",class:{badge:ve.solid.warning}},{variant:"solid",color:"danger",class:{badge:ve.solid.danger}},{variant:"shadow",color:"default",class:{badge:ve.shadow.default}},{variant:"shadow",color:"primary",class:{badge:ve.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:ve.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:ve.shadow.success}},{variant:"shadow",color:"warning",class:{badge:ve.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:ve.shadow.danger}},{variant:"flat",color:"default",class:{badge:ve.flat.default}},{variant:"flat",color:"primary",class:{badge:ve.flat.primary}},{variant:"flat",color:"secondary",class:{badge:ve.flat.secondary}},{variant:"flat",color:"success",class:{badge:ve.flat.success}},{variant:"flat",color:"warning",class:{badge:ve.flat.warning}},{variant:"flat",color:"danger",class:{badge:ve.flat.danger}},{variant:"faded",color:"default",class:{badge:ve.faded.default}},{variant:"faded",color:"primary",class:{badge:ve.faded.primary}},{variant:"faded",color:"secondary",class:{badge:ve.faded.secondary}},{variant:"faded",color:"success",class:{badge:ve.faded.success}},{variant:"faded",color:"warning",class:{badge:ve.faded.warning}},{variant:"faded",color:"danger",class:{badge:ve.faded.danger}},{isOneChar:!0,size:"sm",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{isOneChar:!0,size:"md",class:{badge:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,size:"lg",class:{badge:"w-6 h-6 min-w-6 min-h-6"}},{isDot:!0,size:"sm",class:{badge:"w-3 h-3 min-w-3 min-h-3"}},{isDot:!0,size:"md",class:{badge:"w-3.5 h-3.5 min-w-3.5 min-h-3.5"}},{isDot:!0,size:"lg",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{placement:"top-right",shape:"rectangle",class:{badge:"top-[5%] right-[5%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"rectangle",class:{badge:"top-[5%] left-[5%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"rectangle",class:{badge:"bottom-[5%] right-[5%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"rectangle",class:{badge:"bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2"}},{placement:"top-right",shape:"circle",class:{badge:"top-[10%] right-[10%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"circle",class:{badge:"top-[10%] left-[10%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"circle",class:{badge:"bottom-[10%] right-[10%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"circle",class:{badge:"bottom-[10%] left-[10%] -translate-x-1/2 translate-y-1/2"}}]});function Ix(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rt(e,t,n){let[r,o]=u.useState(e||t),i=u.useRef(e!==void 0),a=e!==void 0;u.useEffect(()=>{let c=i.current;c!==a&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a},[a]);let s=a?e:r,l=u.useCallback((c,...d)=>{let f=(p,...h)=>{n&&(Object.is(s,p)||n(p,...h)),a||(s=p)};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"),o((h,...m)=>{let b=c(a?s:h,...m);return f(b,...d),a?h:b})):(a||o(c),f(c,...d))},[a,s,n]);return[s,l]}function At(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function ft(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);let a=r.toString(),s=a.indexOf("."),l=s>=0?a.length-s:0;if(l>0){let c=Math.pow(10,l);i=Math.round(i*c)/c}return i}const _i={prefix:String(Math.round(Math.random()*1e10)),current:0},Rh=u.createContext(_i),Ox=u.createContext(!1);let Lx=!!(typeof window<"u"&&window.document&&window.document.createElement),fs=new WeakMap;function Vx(e=!1){let t=u.useContext(Rh),n=u.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let a=fs.get(i);a==null?fs.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,fs.delete(i))}n.current=++t.current}return n.current}function Nx(e){let t=u.useContext(Rh);t===_i&&!Lx&&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=Vx(!!e),r=t===_i&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function _x(e){let t=u.useId(),[n]=u.useState(Ht()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${_i.prefix}`;return e||`${r}-${t}`}const Kx=typeof u.useId=="function"?_x:Nx;function jx(){return!1}function zx(){return!0}function Ux(e){return()=>{}}function Ht(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(Ux,jx,zx):u.useContext(Ox)}function Fh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Fh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Hx(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fh(e))&&(r&&(r+=" "),r+=t);return r}const Se=typeof document<"u"?u.useLayoutEffect:()=>{};function Ne(e){const t=u.useRef(null);return Se(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function Gx(e){let[t,n]=u.useState(e),r=u.useRef(null),o=Ne(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?o():n(a.value)});Se(()=>{r.current&&o()});let i=Ne(a=>{r.current=a(t),o()});return[t,i]}let Wx=!!(typeof window<"u"&&window.document&&window.document.createElement),Ki=new Map;function nt(e){let[t,n]=u.useState(e),r=u.useRef(null),o=Kx(t),i=u.useCallback(a=>{r.current=a},[]);return Wx&&Ki.set(o,i),Se(()=>{let a=o;return()=>{Ki.delete(a)}},[o]),u.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),o}function Yx(e,t){if(e===t)return e;let n=Ki.get(e);if(n)return n(t),t;let r=Ki.get(t);return r?(r(e),e):t}function yn(e=[]){let t=nt(),[n,r]=Gx(t),o=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Se(o,[t,o,...e]),n}function wn(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Me=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Tt=e=>e&&"window"in e&&e.window===e?e:Me(e).defaultView||window;function oe(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=wn(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=Hx(i,a):o==="id"&&i&&a?t.id=Yx(i,a):t[o]=a!==void 0?a:i}}return t}function wa(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const qx=new Set(["id"]),Zx=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Xx=new Set(["href","target","rel","download","ping","referrerPolicy"]),Jx=/^(data-.*)$/;function me(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(qx.has(a)||n&&Zx.has(a)||r&&Xx.has(a)||o!=null&&o.has(a)||Jx.test(a))&&(i[a]=e[a]);return i}function jt(e){if(Qx())e.focus({preventScroll:!0});else{let t=e5(e);e.focus(),t5(t)}}let ii=null;function Qx(){if(ii==null){ii=!1;try{document.createElement("div").focus({get preventScroll(){return ii=!0,!0}})}catch{}}return ii}function e5(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function t5(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Ca(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function pu(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function sn(){return pu(/^Mac/i)}function Bh(){return pu(/^iPhone/i)}function Ih(){return pu(/^iPad/i)||sn()&&navigator.maxTouchPoints>1}function Ar(){return Bh()||Ih()}function Si(){return sn()||Ar()}function hu(){return Ca(/AppleWebKit/i)&&!n5()}function n5(){return Ca(/Chrome/i)}function mu(){return Ca(/Android/i)}function r5(){return Ca(/Firefox/i)}const o5=u.createContext({isNative:!0,open:s5});function ko(){return u.useContext(o5)}function i5(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function jn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;r5()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(sn()?i=!0:a=!0);let c=hu()&&sn()&&!Ih()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});jn.isOpening=n,jt(e),e.dispatchEvent(c),jn.isOpening=!1}jn.isOpening=!1;function a5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function s5(e,t){a5(e,n=>jn(n,t))}let ur=new Map,il=new Set;function Sd(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=ur.get(r.target);o||(o=new Set,ur.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=ur.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),ur.delete(r.target)),ur.size===0)){for(let i of il)i();il.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Sd():document.addEventListener("DOMContentLoaded",Sd));function Oh(e){requestAnimationFrame(()=>{ur.size===0?e():il.add(e)})}function kr(){let e=u.useRef(new Map),t=u.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...c)=>{e.current.delete(a),a(...c)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,a,s)},[]),n=u.useCallback((o,i,a,s)=>{var l;let c=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,c,s),e.current.delete(a)},[]),r=u.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function zn(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=nt(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function Ft(e){const t=u.useRef(null);return u.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function l5(){return typeof window.ResizeObserver<"u"}function bu(e){const{ref:t,onResize:n}=e;u.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(l5()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function vu(e,t){Se(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function vo(e,t){let n=e;for(ji(n,t)&&(n=n.parentElement);n&&!ji(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ji(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let Ct=typeof document<"u"&&window.visualViewport;function u5(){let e=Ht(),[t,n]=u.useState(()=>e?{width:0,height:0}:Td());return u.useEffect(()=>{let r=()=>{n(o=>{let i=Td();return i.width===o.width&&i.height===o.height?o:i})};return Ct?Ct.addEventListener("resize",r):window.addEventListener("resize",r),()=>{Ct?Ct.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Td(){return{width:Ct&&(Ct==null?void 0:Ct.width)||window.innerWidth,height:Ct&&(Ct==null?void 0:Ct.height)||window.innerHeight}}let c5=0;const ps=new Map;function Lh(e){let[t,n]=u.useState();return Se(()=>{if(!e)return;let r=ps.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${c5++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},ps.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),ps.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function zi(e,t,n,r){let o=Ne(n),i=n==null;u.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[e,t,r,i,o])}function Vh(e,t){let n=Ad(e,t,"left"),r=Ad(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c}=getComputedStyle(e),d=e.scrollLeft+parseInt(c,10),f=e.scrollTop+parseInt(l,10),p=d+e.clientWidth,h=f+e.clientHeight;n<=a?a=n-parseInt(c,10):n+o>p&&(a+=n+o-p),r<=f?s=r-parseInt(l,10):r+i>h&&(s+=r+i-h),e.scrollLeft=a,e.scrollTop=s}function Ad(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function al(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=vo(e);for(;e&&l&&e!==a&&l!==a;)Vh(l,e),e=l,l=vo(e)}else{var n;let{left:l,top:c}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:d,top:f}=e.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(c-f)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function sl(e){return e.mozInputSource===0&&e.isTrusted?!0:mu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function d5(e){return!mu()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function f5(e,t){let n=u.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Mo(e,t,n){let r=u.useRef(t),o=Ne(()=>{n&&n(r.current)});u.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",o),()=>{a==null||a.removeEventListener("reset",o)}},[e,o])}function p5(e,t){return t.get?t.get.call(e):t.value}function Nh(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function h5(e,t){var n=Nh(e,t,"get");return p5(e,n)}function m5(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ro(e,t,n){m5(e,t),t.set(e,n)}function b5(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function kd(e,t,n){var r=Nh(e,t,"set");return b5(e,r,n),n}let fr="default",ll="",Ti=new WeakMap;function ul(e){if(Ar()){if(fr==="default"){const t=Me(e);ll=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}fr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Ti.set(e,e.style.userSelect),e.style.userSelect="none")}function eo(e){if(Ar()){if(fr!=="disabled")return;fr="restoring",setTimeout(()=>{Oh(()=>{if(fr==="restoring"){const t=Me(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ll||""),ll="",fr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ti.has(e)){let t=Ti.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ti.delete(e)}}const go=u.createContext({register:()=>{}});go.displayName="PressResponderContext";function v5(e){let t=u.useContext(go);if(t){let{register:n,...r}=t;e=oe(r,e),n()}return vu(t,e.ref),e}var ai=new WeakMap;class si{continuePropagation(){kd(this,ai,!1)}get shouldStopPropagation(){return h5(this,ai)}constructor(t,n,r){Ro(this,ai,{writable:!0,value:void 0}),kd(this,ai,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const Md=Symbol("linkClicked");function Cn(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=v5(e),[h,m]=u.useState(!1),b=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:v,removeAllGlobalListeners:$}=kr(),C=Ne((y,I)=>{let M=b.current;if(a||M.didFirePressStart)return!1;let k=!0;if(M.isTriggeringEvent=!0,r){let R=new si("pressstart",I,y);r(R),k=R.shouldStopPropagation}return n&&n(!0),M.isTriggeringEvent=!1,M.didFirePressStart=!0,m(!0),k}),x=Ne((y,I,M=!0)=>{let k=b.current;if(!k.didFirePressStart)return!1;k.ignoreClickAfterPress=!0,k.didFirePressStart=!1,k.isTriggeringEvent=!0;let R=!0;if(o){let S=new si("pressend",I,y);o(S),R=S.shouldStopPropagation}if(n&&n(!1),m(!1),t&&M&&!a){let S=new si("press",I,y);t(S),R&&(R=S.shouldStopPropagation)}return k.isTriggeringEvent=!1,R}),E=Ne((y,I)=>{let M=b.current;if(a)return!1;if(i){M.isTriggeringEvent=!0;let k=new si("pressup",I,y);return i(k),M.isTriggeringEvent=!1,k.shouldStopPropagation}return!0}),w=Ne(y=>{let I=b.current;I.isPressed&&I.target&&(I.isOverTarget&&I.pointerType!=null&&x(Yt(I.target,y),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,$(),d||eo(I.target))}),A=Ne(y=>{c&&w(y)}),V=u.useMemo(()=>{let y=b.current,I={onKeyDown(k){if(hs(k.nativeEvent,k.currentTarget)&&k.currentTarget.contains(k.target)){var R;Fd(k.target,k.key)&&k.preventDefault();let S=!0;if(!y.isPressed&&!k.repeat){y.target=k.currentTarget,y.isPressed=!0,S=C(k,"keyboard");let F=k.currentTarget,K=L=>{hs(L,F)&&!L.repeat&&F.contains(L.target)&&y.target&&E(Yt(y.target,L),"keyboard")};v(Me(k.currentTarget),"keyup",wn(K,M),!0)}S&&k.stopPropagation(),k.metaKey&&sn()&&((R=y.metaKeyEvents)===null||R===void 0||R.set(k.key,k.nativeEvent))}else k.key==="Meta"&&(y.metaKeyEvents=new Map)},onClick(k){if(!(k&&!k.currentTarget.contains(k.target))&&k&&k.button===0&&!y.isTriggeringEvent&&!jn.isOpening){let R=!0;if(a&&k.preventDefault(),!y.ignoreClickAfterPress&&!y.ignoreEmulatedMouseEvents&&!y.isPressed&&(y.pointerType==="virtual"||sl(k.nativeEvent))){!a&&!l&&jt(k.currentTarget);let S=C(k,"virtual"),F=E(k,"virtual"),K=x(k,"virtual");R=S&&F&&K}y.ignoreEmulatedMouseEvents=!1,y.ignoreClickAfterPress=!1,R&&k.stopPropagation()}}},M=k=>{var R;if(y.isPressed&&y.target&&hs(k,y.target)){var S;Fd(k.target,k.key)&&k.preventDefault();let K=k.target;x(Yt(y.target,k),"keyboard",y.target.contains(K)),$(),k.key!=="Enter"&&gu(y.target)&&y.target.contains(K)&&!k[Md]&&(k[Md]=!0,jn(y.target,k,!1)),y.isPressed=!1,(S=y.metaKeyEvents)===null||S===void 0||S.delete(k.key)}else if(k.key==="Meta"&&(!((R=y.metaKeyEvents)===null||R===void 0)&&R.size)){var F;let K=y.metaKeyEvents;y.metaKeyEvents=void 0;for(let L of K.values())(F=y.target)===null||F===void 0||F.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){I.onPointerDown=F=>{if(F.button!==0||!F.currentTarget.contains(F.target))return;if(d5(F.nativeEvent)){y.pointerType="virtual";return}ms(F.currentTarget)&&F.preventDefault(),y.pointerType=F.pointerType;let K=!0;y.isPressed||(y.isPressed=!0,y.isOverTarget=!0,y.activePointerId=F.pointerId,y.target=F.currentTarget,!a&&!l&&jt(F.currentTarget),d||ul(y.target),K=C(F,y.pointerType),v(Me(F.currentTarget),"pointermove",k,!1),v(Me(F.currentTarget),"pointerup",R,!1),v(Me(F.currentTarget),"pointercancel",S,!1)),K&&F.stopPropagation()},I.onMouseDown=F=>{F.currentTarget.contains(F.target)&&F.button===0&&(ms(F.currentTarget)&&F.preventDefault(),F.stopPropagation())},I.onPointerUp=F=>{!F.currentTarget.contains(F.target)||y.pointerType==="virtual"||F.button===0&&ir(F,F.currentTarget)&&E(F,y.pointerType||F.pointerType)};let k=F=>{F.pointerId===y.activePointerId&&(y.target&&ir(F,y.target)?!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,C(Yt(y.target,F),y.pointerType)):y.target&&y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,x(Yt(y.target,F),y.pointerType,!1),A(F)))},R=F=>{F.pointerId===y.activePointerId&&y.isPressed&&F.button===0&&y.target&&(ir(F,y.target)&&y.pointerType!=null?x(Yt(y.target,F),y.pointerType):y.isOverTarget&&y.pointerType!=null&&x(Yt(y.target,F),y.pointerType,!1),y.isPressed=!1,y.isOverTarget=!1,y.activePointerId=null,y.pointerType=null,$(),d||eo(y.target))},S=F=>{w(F)};I.onDragStart=F=>{F.currentTarget.contains(F.target)&&w(F)}}else{I.onMouseDown=S=>{if(S.button!==0||!S.currentTarget.contains(S.target))return;if(ms(S.currentTarget)&&S.preventDefault(),y.ignoreEmulatedMouseEvents){S.stopPropagation();return}y.isPressed=!0,y.isOverTarget=!0,y.target=S.currentTarget,y.pointerType=sl(S.nativeEvent)?"virtual":"mouse",!a&&!l&&jt(S.currentTarget),C(S,y.pointerType)&&S.stopPropagation(),v(Me(S.currentTarget),"mouseup",k,!1)},I.onMouseEnter=S=>{if(!S.currentTarget.contains(S.target))return;let F=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!0,F=C(S,y.pointerType)),F&&S.stopPropagation()},I.onMouseLeave=S=>{if(!S.currentTarget.contains(S.target))return;let F=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!1,F=x(S,y.pointerType,!1),A(S)),F&&S.stopPropagation()},I.onMouseUp=S=>{S.currentTarget.contains(S.target)&&!y.ignoreEmulatedMouseEvents&&S.button===0&&E(S,y.pointerType||"mouse")};let k=S=>{if(S.button===0){if(y.isPressed=!1,$(),y.ignoreEmulatedMouseEvents){y.ignoreEmulatedMouseEvents=!1;return}y.target&&ir(S,y.target)&&y.pointerType!=null?x(Yt(y.target,S),y.pointerType):y.target&&y.isOverTarget&&y.pointerType!=null&&x(Yt(y.target,S),y.pointerType,!1),y.isOverTarget=!1}};I.onTouchStart=S=>{if(!S.currentTarget.contains(S.target))return;let F=g5(S.nativeEvent);if(!F)return;y.activePointerId=F.identifier,y.ignoreEmulatedMouseEvents=!0,y.isOverTarget=!0,y.isPressed=!0,y.target=S.currentTarget,y.pointerType="touch",!a&&!l&&jt(S.currentTarget),d||ul(y.target),C(S,y.pointerType)&&S.stopPropagation(),v(Tt(S.currentTarget),"scroll",R,!0)},I.onTouchMove=S=>{if(!S.currentTarget.contains(S.target))return;if(!y.isPressed){S.stopPropagation();return}let F=Rd(S.nativeEvent,y.activePointerId),K=!0;F&&ir(F,S.currentTarget)?!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,K=C(S,y.pointerType)):y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,K=x(S,y.pointerType,!1),A(S)),K&&S.stopPropagation()},I.onTouchEnd=S=>{if(!S.currentTarget.contains(S.target))return;if(!y.isPressed){S.stopPropagation();return}let F=Rd(S.nativeEvent,y.activePointerId),K=!0;F&&ir(F,S.currentTarget)&&y.pointerType!=null?(E(S,y.pointerType),K=x(S,y.pointerType)):y.isOverTarget&&y.pointerType!=null&&(K=x(S,y.pointerType,!1)),K&&S.stopPropagation(),y.isPressed=!1,y.activePointerId=null,y.isOverTarget=!1,y.ignoreEmulatedMouseEvents=!0,y.target&&!d&&eo(y.target),$()},I.onTouchCancel=S=>{S.currentTarget.contains(S.target)&&(S.stopPropagation(),y.isPressed&&w(S))};let R=S=>{y.isPressed&&S.target.contains(y.target)&&w({currentTarget:y.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};I.onDragStart=S=>{S.currentTarget.contains(S.target)&&w(S)}}return I},[v,a,l,$,d,w,A,x,C,E]);return u.useEffect(()=>()=>{var y;d||eo((y=b.current.target)!==null&&y!==void 0?y:void 0)},[d]),{isPressed:s||h,pressProps:oe(p,V)}}function gu(e){return e.tagName==="A"&&e.hasAttribute("href")}function hs(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Tt(o).HTMLInputElement&&!_h(o,n)||o instanceof Tt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&gu(o))&&n!=="Enter")}function g5(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Rd(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function Yt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function y5(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function $5(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ir(e,t){let n=t.getBoundingClientRect(),r=y5(e);return $5(n,r)}function ms(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Fd(e,t){return e instanceof HTMLInputElement?!_h(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!gu(e)}const x5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _h(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":x5.has(e.type)}const w5=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),o=u.useContext(go);n=Ft(n||(o==null?void 0:o.ref));let i=oe(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return vu(o,n),u.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),u.createElement(go.Provider,{value:i},e)});function C5({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(go.Provider,{value:t},e)}class E5{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,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=t}}function Kh(e){let t=u.useRef({isFocused:!1,observer:null});Se(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ne(r=>{e==null||e(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=a=>{t.current.isFocused=!1,o.disabled&&n(new E5("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Ea(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=u.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=Kh(i),s=u.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let ln=null,yo=new Set,io=new Map,Un=!1,cl=!1;const D5={Tab:!0,Escape:!0};function Da(e,t){for(let n of yo)n(e,t)}function P5(e){return!(e.metaKey||!sn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ui(e){Un=!0,P5(e)&&(ln="keyboard",Da("keyboard",e))}function Dt(e){ln="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Un=!0,Da("pointer",e))}function jh(e){sl(e)&&(Un=!0,ln="virtual")}function zh(e){e.target===window||e.target===document||(!Un&&!cl&&(ln="virtual",Da("virtual",e)),Un=!1,cl=!1)}function Uh(){Un=!1,cl=!0}function Hi(e){if(typeof window>"u"||io.get(Tt(e)))return;const t=Tt(e),n=Me(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Un=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ui,!0),n.addEventListener("keyup",Ui,!0),n.addEventListener("click",jh,!0),t.addEventListener("focus",zh,!0),t.addEventListener("blur",Uh,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Dt,!0),n.addEventListener("pointermove",Dt,!0),n.addEventListener("pointerup",Dt,!0)):(n.addEventListener("mousedown",Dt,!0),n.addEventListener("mousemove",Dt,!0),n.addEventListener("mouseup",Dt,!0)),t.addEventListener("beforeunload",()=>{Hh(e)},{once:!0}),io.set(t,{focus:r})}const Hh=(e,t)=>{const n=Tt(e),r=Me(e);t&&r.removeEventListener("DOMContentLoaded",t),io.has(n)&&(n.HTMLElement.prototype.focus=io.get(n).focus,r.removeEventListener("keydown",Ui,!0),r.removeEventListener("keyup",Ui,!0),r.removeEventListener("click",jh,!0),n.removeEventListener("focus",zh,!0),n.removeEventListener("blur",Uh,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Dt,!0),r.removeEventListener("pointermove",Dt,!0),r.removeEventListener("pointerup",Dt,!0)):(r.removeEventListener("mousedown",Dt,!0),r.removeEventListener("mousemove",Dt,!0),r.removeEventListener("mouseup",Dt,!0)),io.delete(n))};function S5(e){const t=Me(e);let n;return t.readyState!=="loading"?Hi(e):(n=()=>{Hi(e)},t.addEventListener("DOMContentLoaded",n)),()=>Hh(e,n)}typeof document<"u"&&S5();function wr(){return ln!=="pointer"}function Gi(){return ln}function Gh(e){ln=e,Da(e,null)}function T5(){Hi();let[e,t]=u.useState(ln);return u.useEffect(()=>{let n=()=>{t(ln)};return yo.add(n),()=>{yo.delete(n)}},[]),Ht()?null:e}const A5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k5(e,t,n){var r;const o=typeof window<"u"?Tt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Tt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?Tt(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?Tt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!A5.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!D5[n.key])}function M5(e,t,n){Hi(),u.useEffect(()=>{let r=(o,i)=>{k5(!!(n!=null&&n.isTextInput),o,i)&&e(wr())};return yo.add(r),()=>{yo.delete(r)}},t)}function Mr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=u.useRef({isFocusWithin:!1}),a=u.useCallback(c=>{i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(c),o&&o(!1))},[n,o,i]),s=Kh(a),l=u.useCallback(c=>{!i.current.isFocusWithin&&document.activeElement===c.target&&(r&&r(c),o&&o(!0),i.current.isFocusWithin=!0,s(c))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let Wi=!1,bs=0;function dl(){Wi=!0,setTimeout(()=>{Wi=!1},50)}function Bd(e){e.pointerType==="touch"&&dl()}function R5(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Bd):document.addEventListener("touchend",dl),bs++,()=>{bs--,!(bs>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Bd):document.removeEventListener("touchend",dl))}}function Ye(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=u.useState(!1),s=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(R5,[]);let{hoverProps:l,triggerHoverEnd:c}=u.useMemo(()=>{let d=(h,m)=>{if(s.pointerType=m,o||m==="touch"||s.isHovered||!h.currentTarget.contains(h.target))return;s.isHovered=!0;let b=h.currentTarget;s.target=b,t&&t({type:"hoverstart",target:b,pointerType:m}),n&&n(!0),a(!0)},f=(h,m)=>{if(s.pointerType="",s.target=null,m==="touch"||!s.isHovered)return;s.isHovered=!1;let b=h.currentTarget;r&&r({type:"hoverend",target:b,pointerType:m}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{Wi&&h.pointerType==="mouse"||d(h,h.pointerType)},p.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(p.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!s.ignoreEmulatedMouseEvents&&!Wi&&d(h,"mouse"),s.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,o,s]);return u.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:i}}function Wh(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Ne(l=>{n&&li(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Ne(l=>{n&&n(l)});u.useEffect(()=>{let l=i.current;if(r)return;const c=t.current,d=Me(c);if(typeof PointerEvent<"u"){let f=p=>{l.isPointerDown&&li(p,t)&&s(p),l.isPointerDown=!1};return d.addEventListener("pointerdown",a,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",a,!0),d.removeEventListener("pointerup",f,!0)}}else{let f=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&li(h,t)&&s(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&li(h,t)&&s(h),l.isPointerDown=!1};return d.addEventListener("mousedown",a,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",a,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",a,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",a,!0),d.removeEventListener("touchend",p,!0)}}},[t,r,a,s])}function li(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Id(e){if(!e)return;let t=!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(){t=!1}};e(r),t&&n.stopPropagation()}}function yu(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Id(e.onKeyDown),onKeyUp:Id(e.onKeyUp)}}}function Yh(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=u.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=kr(),s=Ne((d,f,p,h)=>{p===0&&h===0||(o.current.didMove||(o.current.didMove=!0,t==null||t({type:"movestart",pointerType:f,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey})),n==null||n({type:"move",pointerType:f,deltaX:p,deltaY:h,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))}),l=Ne((d,f)=>{eo(),o.current.didMove&&(r==null||r({type:"moveend",pointerType:f,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))});return{moveProps:u.useMemo(()=>{let d={},f=()=>{ul(),o.current.didMove=!1};if(typeof PointerEvent>"u"){let h=$=>{if($.button===0){var C,x,E,w;s($,"mouse",$.pageX-((E=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&E!==void 0?E:0),$.pageY-((w=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&w!==void 0?w:0)),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},m=$=>{$.button===0&&(l($,"mouse"),a(window,"mousemove",h,!1),a(window,"mouseup",m,!1))};d.onMouseDown=$=>{$.button===0&&(f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i(window,"mousemove",h,!1),i(window,"mouseup",m,!1))};let b=$=>{let C=[...$.changedTouches].findIndex(({identifier:V})=>V===o.current.id);if(C>=0){var x,E;let{pageX:V,pageY:y}=$.changedTouches[C];var w,A;s($,"touch",V-((w=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&w!==void 0?w:0),y-((A=(E=o.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&A!==void 0?A:0)),o.current.lastPosition={pageX:V,pageY:y}}},v=$=>{[...$.changedTouches].findIndex(({identifier:x})=>x===o.current.id)>=0&&(l($,"touch"),o.current.id=null,a(window,"touchmove",b),a(window,"touchend",v),a(window,"touchcancel",v))};d.onTouchStart=$=>{if($.changedTouches.length===0||o.current.id!=null)return;let{pageX:C,pageY:x,identifier:E}=$.changedTouches[0];f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:C,pageY:x},o.current.id=E,i(window,"touchmove",b,!1),i(window,"touchend",v,!1),i(window,"touchcancel",v,!1)}}else{let h=b=>{if(b.pointerId===o.current.id){var v,$;let E=b.pointerType||"mouse";var C,x;s(b,E,b.pageX-((C=(v=o.current.lastPosition)===null||v===void 0?void 0:v.pageX)!==null&&C!==void 0?C:0),b.pageY-((x=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&x!==void 0?x:0)),o.current.lastPosition={pageX:b.pageX,pageY:b.pageY}}},m=b=>{if(b.pointerId===o.current.id){let v=b.pointerType||"mouse";l(b,v),o.current.id=null,a(window,"pointermove",h,!1),a(window,"pointerup",m,!1),a(window,"pointercancel",m,!1)}};d.onPointerDown=b=>{b.button===0&&o.current.id==null&&(f(),b.stopPropagation(),b.preventDefault(),o.current.lastPosition={pageX:b.pageX,pageY:b.pageY},o.current.id=b.pointerId,i(window,"pointermove",h,!1),i(window,"pointerup",m,!1),i(window,"pointercancel",m,!1))}}let p=(h,m,b)=>{f(),s(h,"keyboard",m,b),l(h,"keyboard")};return d.onKeyDown=h=>{switch(h.key){case"Left":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),p(h,-1,0);break;case"Right":case"ArrowRight":h.preventDefault(),h.stopPropagation(),p(h,1,0);break;case"Up":case"ArrowUp":h.preventDefault(),h.stopPropagation(),p(h,0,-1);break;case"Down":case"ArrowDown":h.preventDefault(),h.stopPropagation(),p(h,0,1);break}},d},[o,i,a,s,l])}}function F5(e,t){let{onScroll:n,isDisabled:r}=e,o=u.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),n&&n({deltaX:i.deltaX,deltaY:i.deltaY}))},[n]);zi(t,"wheel",r?void 0:o)}const B5=500;function qh(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=B5,accessibilityDescription:a}=e;const s=u.useRef();let{addGlobalListener:l,removeGlobalListener:c}=kr(),{pressProps:d}=Cn({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let h=m=>{m.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Lh(o&&!t?a:void 0);return{longPressProps:oe(d,f)}}function Hn(e){const t=Me(e);if(Gi()==="virtual"){let n=t.activeElement;Oh(()=>{t.activeElement===n&&e.isConnected&&jt(e)})}else jt(e)}function I5(e){const t=Tt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function O5(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Zh(e,t){return e.nodeName!=="#comment"&&I5(e)&&O5(e,t)&&(!e.parentElement||Zh(e.parentElement,e))}const Od=u.createContext(null);let ke=null;function $u(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=u.useRef(null),a=u.useRef(null),s=u.useRef([]),{parentNode:l}=u.useContext(Od)||{},c=u.useMemo(()=>new fl({scopeRef:s}),[s]);Se(()=>{let p=l||He.root;if(He.getTreeNode(p.scopeRef)&&ke&&!qi(ke,p.scopeRef)){let h=He.getTreeNode(ke);h&&(p=h)}p.addChild(c),He.addNode(c)},[c,l]),Se(()=>{let p=He.getTreeNode(s);p&&(p.contain=!!n)},[n]),Se(()=>{var p;let h=(p=i.current)===null||p===void 0?void 0:p.nextSibling,m=[];for(;h&&h!==a.current;)m.push(h),h=h.nextSibling;s.current=m},[t]),z5(s,r,n),_5(s,n),H5(s,r,n),j5(s,o),u.useEffect(()=>{const p=Me(s.current?s.current[0]:void 0).activeElement;let h=null;if(it(p,s.current)){for(let m of He.traverse())m.scopeRef&&it(p,m.scopeRef.current)&&(h=m);h===He.getTreeNode(s)&&(ke=h.scopeRef)}},[s]),Se(()=>()=>{var p,h,m;let b=(m=(h=He.getTreeNode(s))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&m!==void 0?m:null;(s===ke||qi(s,ke))&&(!b||He.getTreeNode(b))&&(ke=b),He.removeTreeNode(s)},[s]);let d=u.useMemo(()=>L5(s),[]),f=u.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return u.createElement(Od.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function L5(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||Me(n[0]).activeElement,l=n[0].previousElementSibling,c=Vn(n),d=lt(c,{tabbable:o,accept:a},n);d.currentNode=it(s,n)?s:l;let f=d.nextNode();return!f&&i&&(d.currentNode=l,f=d.nextNode()),f&&pt(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||Me(n[0]).activeElement,l=n[n.length-1].nextElementSibling,c=Vn(n),d=lt(c,{tabbable:o,accept:a},n);d.currentNode=it(s,n)?s:l;let f=d.previousNode();return!f&&i&&(d.currentNode=l,f=d.previousNode()),f&&pt(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Vn(n),a=lt(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&pt(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Vn(n),a=lt(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&pt(s,!0),s}}}const xu=["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]"],V5=xu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";xu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const N5=xu.join(':not([hidden]):not([tabindex="-1"]),');function Vn(e){return e[0].parentElement}function to(e){let t=He.getTreeNode(ke);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function _5(e,t){let n=u.useRef(),r=u.useRef();Se(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=Me(o?o[0]:void 0);let a=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!to(e))return;let d=i.activeElement,f=e.current;if(!f||!it(d,f))return;let p=Vn(f),h=lt(p,{tabbable:!0},f);if(!d)return;h.currentNode=d;let m=c.shiftKey?h.previousNode():h.nextNode();m||(h.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,m=c.shiftKey?h.previousNode():h.nextNode()),c.preventDefault(),m&&pt(m,!0)},s=c=>{(!ke||qi(ke,e))&&it(c.target,e.current)?(ke=e,n.current=c.target):to(e)&&!Yi(c.target,e)?n.current?n.current.focus():ke&&ke.current&&Zi(ke.current):to(e)&&(n.current=c.target)},l=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&to(e)&&!Yi(i.activeElement,e))if(ke=e,i.body.contains(c.target)){var d;n.current=c.target,(d=n.current)===null||d===void 0||d.focus()}else ke.current&&Zi(ke.current)})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(c=>c.addEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",l,!1))}},[e,t]),Se(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Xh(e){return Yi(e)}function it(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Yi(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of He.traverse(He.getTreeNode(t)))if(n&&it(e,n.current))return!0;return!1}function K5(e){return Yi(e,ke)}function qi(e,t){var n;let r=(n=He.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function pt(e,t=!1){if(e!=null&&!t)try{Hn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Zi(e,t=!0){let n=e[0].previousElementSibling,r=Vn(e),o=lt(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=Vn(e),o=lt(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),pt(i)}function j5(e,t){const n=u.useRef(t);u.useEffect(()=>{if(n.current){ke=e;const r=Me(e.current?e.current[0]:void 0);!it(r.activeElement,ke.current)&&e.current&&Zi(e.current)}n.current=!1},[e])}function z5(e,t,n){Se(()=>{if(t||n)return;let r=e.current;const o=Me(r?r[0]:void 0);let i=a=>{let s=a.target;it(s,e.current)?ke=e:Xh(s)||(ke=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function U5(e){let t=He.getTreeNode(ke);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function H5(e,t,n){const r=u.useRef(typeof document<"u"?Me(e.current?e.current[0]:void 0).activeElement:null);Se(()=>{let o=e.current;const i=Me(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ke||qi(ke,e))&&it(i.activeElement,e.current)&&(ke=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,n]),Se(()=>{const o=Me(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!to(e))return;let s=o.activeElement;if(!it(s,e.current))return;let l=He.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,d=lt(o.body,{tabbable:!0});d.currentNode=s;let f=a.shiftKey?d.previousNode():d.nextNode();if((!c||!o.body.contains(c)||c===o.body)&&(c=void 0,l.nodeToRestore=void 0),(!f||!it(f,e.current))&&c){d.currentNode=c;do f=a.shiftKey?d.previousNode():d.nextNode();while(it(f,e.current));a.preventDefault(),a.stopPropagation(),f?pt(f,!0):Xh(c)?pt(c,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),Se(()=>{const o=Me(e.current?e.current[0]:void 0);if(!t)return;let i=He.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=He.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(it(o.activeElement,e.current)||o.activeElement===o.body&&U5(e))){let c=He.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){pt(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&He.getTreeNode(d.scopeRef)){Zi(d.scopeRef.current,!0);return}d=d.parent}}})}}}},[e,t])}function lt(e,t,n){let r=t!=null&&t.tabbable?N5:V5,o=Me(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&Zh(i)&&(!n||it(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function Jh(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Me(r).activeElement,c=lt(r,{tabbable:i,accept:s});r.contains(l)&&(c.currentNode=l);let d=c.nextNode();return!d&&a&&(c.currentNode=r,d=c.nextNode()),d&&pt(d,!0),d},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Me(r).activeElement,c=lt(r,{tabbable:i,accept:s});if(r.contains(l))c.currentNode=l;else{let f=vs(c);return f&&pt(f,!0),f??null}let d=c.previousNode();if(!d&&a){c.currentNode=r;let f=vs(c);if(!f)return null;d=f}return d&&pt(d,!0),d??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=lt(r,{tabbable:o,accept:i}).nextNode();return s&&pt(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=lt(r,{tabbable:o,accept:i}),s=vs(a);return s&&pt(s,!0),s??null}}}function vs(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class wu{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new fl({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&it(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new wu;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new fl({scopeRef:null}),this.fastMap.set(null,this.root)}}class fl{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let He=new wu;function at(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=u.useRef({isFocused:!1,isFocusVisible:t||wr()}),[i,a]=u.useState(!1),[s,l]=u.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=u.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),d=u.useCallback(h=>{o.current.isFocused=h,a(h),c()},[c]);M5(h=>{o.current.isFocusVisible=h,c()},[],{isTextInput:n});let{focusProps:f}=Ea({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=Mr({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:r?p:f}}let G5=u.createContext(null);function W5(e){let t=u.useContext(G5)||{};vu(t,e);let{ref:n,...r}=t;return r}function Rr(e,t){let{focusProps:n}=Ea(e),{keyboardProps:r}=yu(e),o=oe(n,r),i=W5(t),a=e.isDisabled?{}:i,s=u.useRef(e.autoFocus);return u.useEffect(()=>{s.current&&t.current&&Hn(t.current),s.current=!1},[t]),{focusableProps:oe({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function Y5(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=u.useState(!1);return Se(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let s=lt(e.current,{tabbable:!0});o(!!s.nextNode())}};i();let a=new MutationObserver(i);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),n?!1:r}var Qh=globalThis!=null&&globalThis.document?u.useLayoutEffect:u.useEffect;function q5(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[c,d]=u.useState("pending");u.useEffect(()=>{d(n?"loading":"pending")},[n]);const f=u.useRef(),p=u.useCallback(()=>{if(!n)return;h();const m=new Image;m.src=n,a&&(m.crossOrigin=a),r&&(m.srcset=r),s&&(m.sizes=s),t&&(m.loading=t),m.onload=b=>{h(),d("loaded"),o==null||o(b)},m.onerror=b=>{h(),d("failed"),i==null||i(b)},f.current=m},[n,a,r,s,o,i,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return Qh(()=>{if(!l)return c==="loading"&&p(),()=>{h()}},[c,p,l]),l?"loaded":c}function Z5(e={}){var t,n,r,o,i;const a=yh(),s=!!a,{as:l,ref:c,src:d,name:f,icon:p,classNames:h,fallback:m,alt:b=f||"avatar",imgRef:v,color:$=(t=a==null?void 0:a.color)!=null?t:"default",radius:C=(n=a==null?void 0:a.radius)!=null?n:"full",size:x=(r=a==null?void 0:a.size)!=null?r:"md",isBordered:E=(o=a==null?void 0:a.isBordered)!=null?o:!1,isDisabled:w=(i=a==null?void 0:a.isDisabled)!=null?i:!1,isFocusable:A=!1,getInitials:V=A3,ignoreFallback:y=!1,showFallback:I=!1,ImgComponent:M="img",imgProps:k,className:R,onError:S,...F}=e,K=l||"span",L=Qs(c),P=Qs(v),{isFocusVisible:W,isFocused:J,focusProps:G}=at(),{isHovered:D,hoverProps:T}=Ye({isDisabled:w}),H=q5({src:d,onError:S,ignoreFallback:y})==="loaded",Z=(!d||!H)&&I,N=u.useMemo(()=>{var ee;return Fx({color:$,radius:C,size:x,isBordered:E,isDisabled:w,isInGroup:s,isInGridGroup:(ee=a==null?void 0:a.isGrid)!=null?ee:!1})},[$,C,x,E,w,s,a==null?void 0:a.isGrid]),j=mo(h==null?void 0:h.base,R),_=u.useMemo(()=>A||l==="button",[A,l]),Q=u.useCallback((ee={})=>({ref:L,tabIndex:_?0:-1,"data-hover":Kt(D),"data-focus":Kt(J),"data-focus-visible":Kt(W),className:N.base({class:mo(j,ee==null?void 0:ee.className)}),...oe(F,T,_?G:{})}),[_,N,j,G,F]),ne=u.useCallback((ee={})=>({ref:P,src:d,"data-loaded":Kt(H),className:N.img({class:h==null?void 0:h.img}),...oe(k,ee)}),[N,H,k,d,P]);return{Component:K,ImgComponent:M,src:d,alt:b,icon:p,name:f,imgRef:P,slots:N,classNames:h,fallback:m,isImgLoaded:H,showFallback:Z,ignoreFallback:y,getInitials:V,getAvatarProps:Q,getImageProps:ne}}const X5=Symbol.for("react-aria.i18n.locale"),J5=Symbol.for("react-aria.i18n.strings");let ar;class Zn{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=Q5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[X5];if(ar===void 0){let o=window[J5];if(!o)return null;ar={};for(let i in o)ar[i]=new Zn({[n]:o[i]},n)}let r=ar==null?void 0:ar[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function Q5(e,t,n="en-US"){if(t[e])return t[e];let r=e2(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function e2(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Ld=new Map,Vd=new Map;class em{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,a=Ld.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),Ld.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Vd.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Vd.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}function nn(e,t){return e-t*Math.floor(e/t)}const tm=1721426;function Nn(e,t,n,r){t=Fo(e,t);let o=t-1,i=-2;return n<=2?i=0:gn(t)&&(i=-1),tm-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function gn(e){return e%4===0&&(e%100!==0||e%400===0)}function Fo(e,t){return e==="BC"?1-t:t}function Pa(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const t2={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class vt{fromJulianDay(t){let n=t,r=n-tm,o=Math.floor(r/146097),i=nn(r,146097),a=Math.floor(i/36524),s=nn(i,36524),l=Math.floor(s/1461),c=nn(s,1461),d=Math.floor(c/365),f=o*400+a*100+l*4+d+(a!==4&&d!==4?1:0),[p,h]=Pa(f),m=n-Nn(p,h,1,1),b=2;n<Nn(p,h,3,1)?b=0:gn(h)&&(b=1);let v=Math.floor(((m+b)*12+373)/367),$=n-Nn(p,h,v,1)+1;return new Ge(p,h,v,$)}toJulianDay(t){return Nn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return t2[gn(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return gn(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function nm(e){return Qt(Date.now(),e)}function n2(e){return lm(nm(e))}function rm(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function om(e,t){return Nd(e)-Nd(t)}function Nd(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let gs=null;function Cu(){return gs==null&&(gs=new Intl.DateTimeFormat().resolvedOptions().timeZone),gs}function r2(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function o2(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Cr(e){e=ut(e,new vt);let t=Fo(e.era,e.year);return im(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function im(e,t,n,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function pl(e,t){if(t==="UTC")return 0;if(e>0&&t===Cu())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:a,second:s}=am(e,t);return im(n,r,o,i,a,s,0)-Math.floor(e/1e3)*1e3}const _d=new Map;function am(e,t){let n=_d.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),_d.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let i of r)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const Kd=864e5;function i2(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>a2(e,t,i))}function a2(e,t,n){let r=am(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Jt(e,t,n="compatible"){let r=En(e);if(t==="UTC")return Cr(r);if(t===Cu()&&n==="compatible"){r=ut(r,new vt);let l=new Date,c=Fo(r.era,r.year);return l.setFullYear(c,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let o=Cr(r),i=pl(o-Kd,t),a=pl(o+Kd,t),s=i2(r,t,o-i,o-a);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function sm(e,t,n="compatible"){return new Date(Jt(e,t,n))}function Qt(e,t){let n=pl(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),c=r.getUTCSeconds(),d=r.getUTCMilliseconds();return new xo(o,i,a,t,n,s,l,c,d)}function lm(e){return new Ge(e.calendar,e.era,e.year,e.month,e.day)}function En(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new Xi(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function jd(e){return new Ta(e.hour,e.minute,e.second,e.millisecond)}function ut(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Gn(r),r}function um(e,t,n){if(e instanceof xo)return e.timeZone===t?e:l2(e,t);let r=Jt(e,t,n);return Qt(r,t)}function s2(e){let t=Cr(e)-e.offset;return new Date(t)}function l2(e,t){let n=Cr(e)-e.offset;return ut(Qt(n,t),e.calendar)}const Gr=36e5;function Sa(e,t){let n=e.copy(),r="hour"in n?pm(n,t):0;hl(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,ml(n),cm(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,u2(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,a;let l=(i=(a=n.calendar).isInverseEra)===null||i===void 0?void 0:i.call(a,n);n.year=o,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function hl(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function ml(e){for(;e.month<1;)hl(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,hl(e,1)}function u2(e){for(;e.day<1;)e.month--,ml(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,ml(e)}function cm(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Gn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),cm(e)}function Eu(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function dm(e,t){return Sa(e,Eu(t))}function Du(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Gn(n),n}function $o(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),fm(n),n}function c2(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ui(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ui(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ui(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ui(e.hour,24),t}function fm(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ui(e,t){let n=e%t;return n<0&&(n+=t),n}function pm(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,c2(e)}function hm(e,t){let n=e.copy();return pm(n,t),n}function d2(e,t){return hm(e,Eu(t))}function Pu(e,t,n,r){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=en(l,n,0,s.length-1,r==null?void 0:r.round),o.era=s[l],Gn(o);break}case"year":var i,a;!((i=(a=o.calendar).isInverseEra)===null||i===void 0)&&i.call(a,o)&&(n=-n),o.year=en(e.year,n,-1/0,9999,r==null?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=en(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=en(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Gn(o),o}function Su(e,t,n,r){let o=e.copy();switch(t){case"hour":{let i=e.hour,a=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=i>=12;a=l?12:0,s=l?23:11}o.hour=en(i,n,a,s,r==null?void 0:r.round);break}case"minute":o.minute=en(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=en(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=en(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function en(e,t,n,r,o=!1){if(o){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function mm(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let o=Sa(En(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Jt(o,e.timeZone)}else n=Cr(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Qt(n,e.timeZone);return ut(r,e.calendar)}function f2(e,t){return mm(e,Eu(t))}function p2(e,t,n,r){switch(t){case"hour":{let o=0,i=23;if((r==null?void 0:r.hourCycle)===12){let m=e.hour>=12;o=m?12:0,i=m?23:11}let a=En(e),s=ut($o(a,{hour:o}),new vt),l=[Jt(s,e.timeZone,"earlier"),Jt(s,e.timeZone,"later")].filter(m=>Qt(m,e.timeZone).day===s.day)[0],c=ut($o(a,{hour:i}),new vt),d=[Jt(c,e.timeZone,"earlier"),Jt(c,e.timeZone,"later")].filter(m=>Qt(m,e.timeZone).day===c.day).pop(),f=Cr(e)-e.offset,p=Math.floor(f/Gr),h=f%Gr;return f=en(p,n,Math.floor(l/Gr),Math.floor(d/Gr),r==null?void 0:r.round)*Gr+h,ut(Qt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Su(e,t,n,r);case"era":case"year":case"month":case"day":{let o=Pu(En(e),t,n,r),i=Jt(o,e.timeZone);return ut(Qt(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function h2(e,t,n){let r=En(e),o=$o(Du(r,t),t);if(o.compare(r)===0)return e;let i=Jt(o,e.timeZone,n);return ut(Qt(i,e.timeZone),e.calendar)}function bm(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function vm(e){let t=ut(e,new vt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function gm(e){return`${vm(e)}T${bm(e)}`}function m2(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function b2(e){return`${gm(e)}${m2(e.offset)}[${e.timeZone}]`}function Tu(e){let t=typeof e[0]=="object"?e.shift():new vt,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),o=e.shift(),i=e.shift();return[t,n,r,o,i]}var v2=new WeakMap;class Ge{copy(){return this.era?new Ge(this.calendar,this.era,this.year,this.month,this.day):new Ge(this.calendar,this.year,this.month,this.day)}add(t){return Sa(this,t)}subtract(t){return dm(this,t)}set(t){return Du(this,t)}cycle(t,n,r){return Pu(this,t,n,r)}toDate(t){return sm(this,t)}toString(){return vm(this)}compare(t){return rm(this,t)}constructor(...t){Ro(this,v2,{writable:!0,value:void 0});let[n,r,o,i,a]=Tu(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,Gn(this)}}var g2=new WeakMap;class Ta{copy(){return new Ta(this.hour,this.minute,this.second,this.millisecond)}add(t){return hm(this,t)}subtract(t){return d2(this,t)}set(t){return $o(this,t)}cycle(t,n,r){return Su(this,t,n,r)}toString(){return bm(this)}compare(t){return om(this,t)}constructor(t=0,n=0,r=0,o=0){Ro(this,g2,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,fm(this)}}var y2=new WeakMap;class Xi{copy(){return this.era?new Xi(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Xi(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Sa(this,t)}subtract(t){return dm(this,t)}set(t){return Du($o(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Pu(this,t,n,r);default:return Su(this,t,n,r)}}toDate(t,n){return sm(this,t,n)}toString(){return gm(this)}compare(t){let n=rm(this,t);return n===0?om(this,En(t)):n}constructor(...t){Ro(this,y2,{writable:!0,value:void 0});let[n,r,o,i,a]=Tu(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Gn(this)}}var $2=new WeakMap;class xo{copy(){return this.era?new xo(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new xo(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return mm(this,t)}subtract(t){return f2(this,t)}set(t,n){return h2(this,t,n)}cycle(t,n,r){return p2(this,t,n,r)}toDate(){return s2(this)}toString(){return b2(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-um(t,this.timeZone).toDate().getTime()}constructor(...t){Ro(this,$2,{writable:!0,value:void 0});let[n,r,o,i,a]=Tu(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Gn(this)}}const yr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],x2=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Ai=[1867,1911,1925,1988,2018],bn=["meiji","taisho","showa","heisei","reiwa"];function zd(e){const t=yr.findIndex(([n,r,o])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<o);return t===-1?yr.length-1:t===0?0:t-1}function ys(e){let t=Ai[bn.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Ge(e.year+t,e.month,e.day)}class w2 extends vt{fromJulianDay(t){let n=super.fromJulianDay(t),r=zd(n);return new Ge(this,bn[r],n.year-Ai[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(ys(t))}balanceDate(t){let n=ys(t),r=zd(n);bn[r]!==t.era&&(t.era=bn[r],t.year=n.year-Ai[r]),this.constrainDate(t)}constrainDate(t){let n=bn.indexOf(t.era),r=x2[n];if(r!=null){let[o,i,a]=r,s=o-Ai[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(i,t.month),t.month===i&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,o,i]=yr[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(i,t.day))}}getEras(){return bn}getYearsInEra(t){let n=bn.indexOf(t.era),r=yr[n],o=yr[n+1];if(o==null)return 9999-r[0]+1;let i=o[0]-r[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&i++,i}getDaysInMonth(t){return super.getDaysInMonth(ys(t))}getMinimumMonthInYear(t){let n=Ud(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Ud(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Ud(e){if(e.year===1){let t=bn.indexOf(e.era);return yr[t]}}const ym=-543;class C2 extends vt{fromJulianDay(t){let n=super.fromJulianDay(t),r=Fo(n.era,n.year);return new Ge(this,r-ym,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Hd(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Hd(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Hd(e){let[t,n]=Pa(e.year+ym);return new Ge(t,n,e.month,e.day)}const Ji=1911;function $m(e){return e.era==="minguo"?e.year+Ji:1-e.year+Ji}function Gd(e){let t=e-Ji;return t>0?["minguo",t]:["before_minguo",1-t]}class E2 extends vt{fromJulianDay(t){let n=super.fromJulianDay(t),r=Fo(n.era,n.year),[o,i]=Gd(r);return new Ge(this,o,i,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Wd(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Gd($m(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Wd(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Ji}constructor(...t){super(...t),this.identifier="roc"}}function Wd(e){let[t,n]=Pa($m(e));return new Ge(t,n,e.month,e.day)}const D2=1948321;function P2(e){let t=e>0?e-474:e-473,n=nn(t,2820)+474;return nn((n+38)*31,128)<31}function ci(e,t,n){let r=e>0?e-474:e-473,o=nn(r,2820)+474,i=t<=7?31*(t-1):30*(t-1)+6;return D2-1+1029983*Math.floor(r/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+n}class S2{fromJulianDay(t){let n=t-ci(475,1,1),r=Math.floor(n/1029983),o=nn(n,1029983),i=o===1029982?2820:Math.floor((128*o+46878)/46751),a=474+2820*r+i;a<=0&&a--;let s=t-ci(a,1,1)+1,l=s<=186?Math.ceil(s/31):Math.ceil((s-6)/31),c=t-ci(a,l,1)+1;return new Ge(this,a,l,c)}toJulianDay(t){return ci(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||P2(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const $s=78,Yd=80;class T2 extends vt{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-$s,o=t-Nn(n.era,n.year,1,1),i;o<Yd?(r--,i=gn(n.year-1)?31:30,o+=i+155+90+10):(i=gn(n.year)?31:30,o-=Yd);let a,s;if(o<i)a=1,s=o+1;else{let l=o-i;l<155?(a=Math.floor(l/31)+2,s=l%31+1):(l-=155,a=Math.floor(l/30)+7,s=l%30+1)}return new Ge(this,r,a,s)}toJulianDay(t){let n=t.year+$s,[r,o]=Pa(n),i,a;return gn(o)?(i=31,a=Nn(r,o,3,21)):(i=30,a=Nn(r,o,3,22)),t.month===1?a+t.day-1:(a+=i+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&gn(t.year+$s)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Qi=1948440,qd=1948439,Et=1300,sr=1600,A2=460322;function ea(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function xm(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+ea(t,r,1,1)))/29.5)+1),i=n-ea(t,r,o,1)+1;return new Ge(e,r,o,i)}function Zd(e){return(14+11*e)%30<11}class Au{fromJulianDay(t){return xm(this,Qi,t)}toJulianDay(t){return ea(Qi,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&Zd(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return Zd(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class k2 extends Au{fromJulianDay(t){return xm(this,qd,t)}toJulianDay(t){return ea(qd,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const M2="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let bl,$r;function ki(e){return A2+$r[e-Et]}function no(e,t){let n=e-Et,r=1<<11-(t-1);return bl[n]&r?30:29}function Xd(e,t){let n=ki(e);for(let r=1;r<t;r++)n+=no(e,r);return n}function Jd(e){return $r[e+1-Et]-$r[e-Et]}class R2 extends Au{fromJulianDay(t){let n=t-Qi,r=ki(Et),o=ki(sr);if(n<r||n>o)return super.fromJulianDay(t);{let i=Et-1,a=1,s=1;for(;s>0;){i++,s=n-ki(i)+1;let l=Jd(i);if(s===l){a=12;break}else if(s<l){let c=no(i,a);for(a=1;s>c;)s-=c,a++,c=no(i,a);break}}return new Ge(this,i,a,n-Xd(i,a)+1)}}toJulianDay(t){return t.year<Et||t.year>sr?super.toJulianDay(t):Qi+Xd(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Et||t.year>sr?super.getDaysInMonth(t):no(t.year,t.month)}getDaysInYear(t){return t.year<Et||t.year>sr?super.getDaysInYear(t):Jd(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",bl||(bl=new Uint16Array(Uint8Array.from(atob(M2),t=>t.charCodeAt(0)).buffer)),!$r){$r=new Uint32Array(sr-Et+1);let t=0;for(let n=Et;n<=sr;n++){$r[n-Et]=t;for(let r=1;r<=12;r++)t+=no(n,r)}}}}const Qd=347997,wm=1080,Cm=24*wm,F2=29,B2=12*wm+793,I2=F2*Cm+B2;function Bn(e){return nn(e*7+1,19)<7}function Mi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return nn(3*(r+1),7)<3&&(r+=1),r}function O2(e){let t=Mi(e-1),n=Mi(e);return Mi(e+1)-n===356?2:n-t===382?1:0}function ao(e){return Mi(e)+O2(e)}function Em(e){return ao(e+1)-ao(e)}function L2(e){let t=Em(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function di(e,t){if(t>=6&&!Bn(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=L2(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Bn(e)?30:0:30}class V2{fromJulianDay(t){let n=t-Qd,r=n*Cm/I2,o=Math.floor((19*r+234)/235)+1,i=ao(o),a=Math.floor(n-i);for(;a<1;)o--,i=ao(o),a=Math.floor(n-i);let s=1,l=0;for(;l<a;)l+=di(o,s),s++;s--,l-=di(o,s);let c=a-l;return new Ge(this,o,s,c)}toJulianDay(t){let n=ao(t.year);for(let r=1;r<t.month;r++)n+=di(t.year,r);return n+t.day+Qd}getDaysInMonth(t){return di(t.year,t.month)}getMonthsInYear(t){return Bn(t.year)?13:12}getDaysInYear(t){return Em(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Bn(n.year)&&!Bn(t.year)&&n.month>6?t.month--:!Bn(n.year)&&Bn(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const vl=1723856,ef=1824665,gl=5500;function ta(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function ku(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-ta(e,n,1,1))/30),o=t+1-ta(e,n,r,1);return[n,r,o]}function Dm(e){return Math.floor(e%4/3)}function Pm(e,t){return t%13!==0?30:Dm(e)+5}class Mu{fromJulianDay(t){let[n,r,o]=ku(vl,t),i="AM";return n<=0&&(i="AA",n+=gl),new Ge(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=gl),ta(vl,n,t.month,t.day)}getDaysInMonth(t){return Pm(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Dm(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class N2 extends Mu{fromJulianDay(t){let[n,r,o]=ku(vl,t);return n+=gl,new Ge(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class _2 extends Mu{fromJulianDay(t){let[n,r,o]=ku(ef,t),i="CE";return n<=0&&(i="BCE",n=1-n),new Ge(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),ta(ef,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Pm(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function Sm(e){switch(e){case"buddhist":return new C2;case"ethiopic":return new Mu;case"ethioaa":return new N2;case"coptic":return new _2;case"hebrew":return new V2;case"indian":return new T2;case"islamic-civil":return new Au;case"islamic-tbla":return new k2;case"islamic-umalqura":return new R2;case"japanese":return new w2;case"persian":return new S2;case"roc":return new E2;case"gregory":default:return new vt}}let xs=new Map;class so{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return z2()&&(this.resolvedHourCycle||(this.resolvedHourCycle=U2(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=Tm(t,n),this.options=n}}const K2={true:{ja:"h11"},false:{}};function Tm(e,t={}){if(typeof t.hour12=="boolean"&&j2()){t={...t};let o=K2[String(t.hour12)][e.split("-")[0]],i=t.hour12?"h12":"h23";t.hourCycle=o??i,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(xs.has(n))return xs.get(n);let r=new Intl.DateTimeFormat(e,t);return xs.set(n,r),r}let ws=null;function j2(){return ws==null&&(ws=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),ws}let Cs=null;function z2(){return Cs==null&&(Cs=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Cs}function U2(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=Tm(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(i=>i.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(i=>i.type==="hour").value,10);if(r===0&&o===23)return"h23";if(r===24&&o===23)return"h24";if(r===0&&o===11)return"h11";if(r===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}let Es=new Map,yl=!1;try{yl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let na=!1;try{na=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Am={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class ra{format(t){let n="";if(!yl&&this.options.signDisplay!=null?n=G2(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!na){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=Am[o])===null||r===void 0?void 0:r[i];n+=s[a]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!yl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!na&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=H2(t,n),this.options=n}}function H2(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!na){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Am[a])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(Es.has(o))return Es.get(o);let i=new Intl.NumberFormat(e,t);return Es.set(o,i),i}function G2(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(n)}}const W2=new RegExp("^.*\\(.*\\).*$"),Y2=["latn","arab","hanidec"];class Ru{parse(t){return Ds(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Ds(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Ds(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const tf=new Map;function Ds(e,t,n){let r=nf(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of Y2)if(o!==r.options.numberingSystem){let i=nf(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function nf(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=tf.get(n);return r||(r=new q2(e,t),tf.set(n,r)),r}class q2{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=fi(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");let i=n.indexOf(".");i===-1&&(i=n.length),n=n.replace(".",""),i-2===0?n=`0.${n}`:i-2===-1?n=`0.0${n}`:i-2===-2?n="0.00":n=`${n.slice(0,i-2)}.${n.slice(i-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(this.options.minimumFractionDigits+2,20),maximumFractionDigits:Math.min(this.options.maximumFractionDigits+2,20)};return new Ru(this.locale,o).parse(new ra(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&W2.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(t=fi(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=fi(t,".",String.fromCharCode(8239))),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=fi(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=X2(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const rf=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Z2=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function X2(e,t,n,r){var o,i,a,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),c=l.formatToParts(-10000.111),d=l.formatToParts(10000.111),f=Z2.map(M=>l.formatToParts(M));var p;let h=(p=(o=c.find(M=>M.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&p!==void 0?p:"-",m=(i=d.find(M=>M.type==="plusSign"))===null||i===void 0?void 0:i.value;!m&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(m="+");let v=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(M=>M.type==="decimal"))===null||a===void 0?void 0:a.value,$=(s=c.find(M=>M.type==="group"))===null||s===void 0?void 0:s.value,C=c.filter(M=>!rf.has(M.type)).map(M=>of(M.value)),x=f.flatMap(M=>M.filter(k=>!rf.has(k.type)).map(k=>of(k.value))),E=[...new Set([...C,...x])].sort((M,k)=>k.length-M.length),w=E.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${E.join("|")}|[\\p{White_Space}]`,"gu"),A=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),V=new Map(A.map((M,k)=>[M,k])),y=new RegExp(`[${A.join("")}]`,"g");return{minusSign:h,plusSign:m,decimal:v,group:$,literals:w,numeral:y,index:M=>String(V.get(M))}}function fi(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function of(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const J2=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Q2=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ew(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return J2.has(n.script)}let t=e.split("-")[0];return Q2.has(t)}const tw=Symbol.for("react-aria.i18n.locale");function km(){let e=typeof window<"u"&&window[tw]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:ew(e)?"rtl":"ltr"}}let $l=km(),ro=new Set;function af(){$l=km();for(let e of ro)e($l)}function nw(){let e=Ht(),[t,n]=u.useState($l);return u.useEffect(()=>(ro.size===0&&window.addEventListener("languagechange",af),ro.add(n),()=>{ro.delete(n),ro.size===0&&window.removeEventListener("languagechange",af)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const rw=u.createContext(null);function Ze(){let e=nw();return u.useContext(rw)||e}const sf=new WeakMap;function ow(e){let t=sf.get(e);return t||(t=new Zn(e),sf.set(e,t)),t}function Mm(e,t){return t&&Zn.getGlobalDictionaryForPackage(t)||ow(e)}function Fr(e,t){let{locale:n}=Ze(),r=Mm(e,t);return u.useMemo(()=>new em(n,r),[n,r])}function pi(e){e=f5(e??{},iw);let{locale:t}=Ze();return u.useMemo(()=>new so(t,e),[t,e])}function iw(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}function oa(e={}){let{locale:t}=Ze();return u.useMemo(()=>new ra(t,e),[t,e])}let Ps=new Map;function Fu(e){let{locale:t}=Ze(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Ps.has(n))return Ps.get(n);let r=new Intl.Collator(t,e);return Ps.set(n,r),r}function Rm(e){let t=Fu({usage:"search",...e}),n=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(0,a.length),a)===0),[t]),r=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(-a.length),a)===0),[t]),o=u.useCallback((i,a)=>{if(a.length===0)return!0;i=i.normalize("NFC"),a=a.normalize("NFC");let s=0,l=a.length;for(;s+l<=i.length;s++){let c=i.slice(s,s+l);if(t.compare(a,c)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}var Fm={};Fm={dismiss:"تجاهل"};var Bm={};Bm={dismiss:"Отхвърляне"};var Im={};Im={dismiss:"Odstranit"};var Om={};Om={dismiss:"Luk"};var Lm={};Lm={dismiss:"Schließen"};var Vm={};Vm={dismiss:"Απόρριψη"};var Nm={};Nm={dismiss:"Dismiss"};var _m={};_m={dismiss:"Descartar"};var Km={};Km={dismiss:"Lõpeta"};var jm={};jm={dismiss:"Hylkää"};var zm={};zm={dismiss:"Rejeter"};var Um={};Um={dismiss:"התעלם"};var Hm={};Hm={dismiss:"Odbaci"};var Gm={};Gm={dismiss:"Elutasítás"};var Wm={};Wm={dismiss:"Ignora"};var Ym={};Ym={dismiss:"閉じる"};var qm={};qm={dismiss:"무시"};var Zm={};Zm={dismiss:"Atmesti"};var Xm={};Xm={dismiss:"Nerādīt"};var Jm={};Jm={dismiss:"Lukk"};var Qm={};Qm={dismiss:"Negeren"};var e0={};e0={dismiss:"Zignoruj"};var t0={};t0={dismiss:"Descartar"};var n0={};n0={dismiss:"Dispensar"};var r0={};r0={dismiss:"Revocare"};var o0={};o0={dismiss:"Пропустить"};var i0={};i0={dismiss:"Zrušiť"};var a0={};a0={dismiss:"Opusti"};var s0={};s0={dismiss:"Odbaci"};var l0={};l0={dismiss:"Avvisa"};var u0={};u0={dismiss:"Kapat"};var c0={};c0={dismiss:"Скасувати"};var d0={};d0={dismiss:"取消"};var f0={};f0={dismiss:"關閉"};const lf={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 aw(e={}){let{style:t,isFocusable:n}=e,[r,o]=u.useState(!1),{focusWithinProps:i}=Mr({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=u.useMemo(()=>r?t:t?{...lf,...t}:lf,[r]);return{visuallyHiddenProps:{...i,style:a}}}function Aa(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=aw(e);return u.createElement(n,oe(i,a),t)}function sw(e){return e&&e.__esModule?e.default:e}const pr={top:"top",bottom:"top",left:"left",right:"left"},ia={top:"bottom",bottom:"top",left:"right",right:"left"},lw={top:"left",left:"top"},xl={top:"height",left:"width"},p0={width:"totalWidth",height:"totalHeight"},hi={};let dt=typeof document<"u"&&window.visualViewport;function uf(e){let t=0,n=0,r=0,o=0,i=0,a=0,s={},l=(dt==null?void 0:dt.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,o=f.clientHeight;var c;t=(c=dt==null?void 0:dt.width)!==null&&c!==void 0?c:r;var d;n=(d=dt==null?void 0:dt.height)!==null&&d!==void 0?d:o,s.top=f.scrollTop||e.scrollTop,s.left=f.scrollLeft||e.scrollLeft,dt&&(i=dt.offsetTop,a=dt.offsetLeft)}else({width:t,height:n,top:i,left:a}=xr(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return hu()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(s.top=0,s.left=0,i=dt.pageTop,a=dt.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:a}}function uw(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function cf(e,t,n,r,o,i,a){let s=o.scroll[e],l=r[xl[e]],c=r.scroll[pr[e]]+i,d=l+r.scroll[pr[e]]-i,f=t-s+a[e]-r[pr[e]],p=t-s+n+a[e]-r[pr[e]];return f<c?c-f:p>d?Math.max(d-p,c-f):0}function cw(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function df(e){if(hi[e])return hi[e];let[t,n]=e.split(" "),r=pr[t]||"right",o=lw[r];pr[n]||(n="center");let i=xl[r],a=xl[o];return hi[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},hi[e]}function Ss(e,t,n,r,o,i,a,s,l,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:h,size:m,crossSize:b}=r,v={};v[h]=e[h],f==="center"?v[h]+=(e[b]-n[b])/2:f!==h&&(v[h]+=e[b]-n[b]),v[h]+=i;const $=e[h]-n[b]+l+c,C=e[h]+e[b]-l-c;if(v[h]=At(v[h],$,C),d===p){const x=s?a[m]:t[p0[m]];v[ia[p]]=Math.floor(x-e[p]+o)}else v[p]=Math.floor(e[p]+e[m]+o);return v}function dw(e,t,n,r,o,i,a,s){const l=r?n.height:t[p0.height];let c=e.top!=null?n.top+e.top:n.top+(l-e.bottom-a),d=s!=="top"?Math.max(0,t.height+t.top+t.scroll.top-c-(o.top+o.bottom+i)):Math.max(0,c+a-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-i*2,d)}function ff(e,t,n,r,o,i){let{placement:a,axis:s,size:l}=i;return a===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[ia[s]]-o):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[ia[s]]-o)}function fw(e,t,n,r,o,i,a,s,l,c,d,f,p,h,m,b){let v=df(e),{size:$,crossAxis:C,crossSize:x,placement:E,crossPlacement:w}=v,A=Ss(t,s,n,v,d,f,c,p,m,b),V=d,y=ff(s,c,t,o,i+d,v);if(a&&r[$]>y){let J=df(`${ia[E]} ${w}`),G=Ss(t,s,n,J,d,f,c,p,m,b);ff(s,c,t,o,i+d,J)>y&&(v=J,A=G,V=d)}let I="bottom";v.axis==="top"?v.placement==="top"?I="top":v.placement==="bottom"&&(I="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?I="bottom":v.crossPlacement==="bottom"&&(I="top"));let M=cf(C,A[C],n[x],s,l,i,c);A[C]+=M;let k=dw(A,s,c,p,o,i,n.height,I);h&&h<k&&(k=h),n.height=Math.min(n.height,k),A=Ss(t,s,n,v,V,f,c,p,m,b),M=cf(C,A[C],n[x],s,l,i,c),A[C]+=M;let R={},S=t[C]+.5*t[x]-n[C];const F=m/2+b,K=n[x]-m/2-b,L=t[C]-n[C]+m/2,P=t[C]+t[x]-n[C]-m/2,W=At(S,L,P);return R[C]=At(W,F,K),{position:A,maxHeight:k,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:v.placement}}function pw(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,h=r instanceof HTMLElement?hw(r):document.documentElement,m=h===document.documentElement;const b=window.getComputedStyle(h).position;let v=!!b&&b!=="static",$=m?xr(n):pf(n,h);if(!m){let{marginTop:y,marginLeft:I}=window.getComputedStyle(n);$.top+=parseInt(y,10)||0,$.left+=parseInt(I,10)||0}let C=xr(r),x=cw(r);C.width+=x.left+x.right,C.height+=x.top+x.bottom;let E=uw(o),w=uf(s),A=uf(h),V=s.tagName==="BODY"?xr(h):pf(h,s);return h.tagName==="HTML"&&s.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),fw(t,$,C,E,x,i,a,w,A,V,l,c,v,d,f,p)}function xr(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:n+a-l,width:r,height:o}}function pf(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:i,width:a,height:s}=e.getBoundingClientRect();r={top:o,left:i,width:a,height:s}}else{r=xr(e);let o=xr(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function hw(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!hf(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!hf(t);)t=t.parentElement;return t||document.documentElement}function hf(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const h0=new WeakMap;function mw(e){let{triggerRef:t,isOpen:n,onClose:r}=e;u.useEffect(()=>{if(!n||r===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current))return;let s=r||h0.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Ke=typeof document<"u"&&window.visualViewport;function m0(e){let{direction:t}=Ze(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:a="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:h=!0,onClose:m,maxHeight:b,arrowBoundaryOffset:v=0}=e,[$,C]=u.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[p,a,o.current,r.current,i.current,s,l,c,d,f,h,t,b,v,n],E=u.useRef(Ke==null?void 0:Ke.scale);u.useEffect(()=>{h&&(E.current=Ke==null?void 0:Ke.scale)},[h]);let w=u.useCallback(()=>{if(p===!1||!h||!o.current||!r.current||!i.current||!c||(Ke==null?void 0:Ke.scale)!==E.current)return;!b&&o.current&&(o.current.style.maxHeight="none");let y=pw({placement:vw(a,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:l,boundaryElement:c,offset:d,crossOffset:f,maxHeight:b,arrowSize:n,arrowBoundaryOffset:v});Object.keys(y.position).forEach(I=>o.current.style[I]=y.position[I]+"px"),o.current.style.maxHeight=y.maxHeight!=null?y.maxHeight+"px":void 0,C(y)},x);Se(w,x),bw(w),bu({ref:o,onResize:w});let A=u.useRef(!1);Se(()=>{let y,I=()=>{A.current=!0,clearTimeout(y),y=setTimeout(()=>{A.current=!1},500),w()},M=()=>{A.current&&I()};return Ke==null||Ke.addEventListener("resize",I),Ke==null||Ke.addEventListener("scroll",M),()=>{Ke==null||Ke.removeEventListener("resize",I),Ke==null||Ke.removeEventListener("scroll",M)}},[w]);let V=u.useCallback(()=>{A.current||m()},[m,A]);return mw({triggerRef:r,isOpen:h,onClose:m&&V}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...$.position,maxHeight:$.maxHeight}},placement:$.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$.arrowOffsetLeft,top:$.arrowOffsetTop}},updatePosition:w}}function bw(e){Se(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function vw(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const qt=[];function Bu(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;u.useEffect(()=>(o&&qt.push(t),()=>{let m=qt.indexOf(t);m>=0&&qt.splice(m,1)}),[o,t]);let l=()=>{qt[qt.length-1]===t&&n&&n()},c=m=>{(!s||s(m.target))&&qt[qt.length-1]===t&&(m.stopPropagation(),m.preventDefault())},d=m=>{(!s||s(m.target))&&(qt[qt.length-1]===t&&(m.stopPropagation(),m.preventDefault()),l())},f=m=>{m.key==="Escape"&&!a&&(m.stopPropagation(),m.preventDefault(),l())};Wh({ref:t,onInteractOutside:i&&o?d:null,onInteractOutsideStart:c});let{focusWithinProps:p}=Mr({isDisabled:!r,onBlurWithin:m=>{!m.relatedTarget||K5(m.relatedTarget)||(!s||s(m.relatedTarget))&&n()}}),h=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:h}}}function gw(e,t,n){let{type:r}=e,{isOpen:o}=t;u.useEffect(()=>{n&&n.current&&h0.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=nt();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:null,onPress:t.toggle},overlayProps:{id:a}}}const Ts=typeof document<"u"&&window.visualViewport,yw=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let mi=0,As;function b0(e={}){let{isDisabled:t}=e;Se(()=>{if(!t)return mi++,mi===1&&(Ar()?As=xw():As=$w()),()=>{mi--,mi===0&&As()}},[t])}function $w(){return wn(hr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),hr(document.documentElement,"overflow","hidden"))}function xw(){let e,t,n=c=>{e=vo(c.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=hr(e,"overscrollBehavior","contain"))},r=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()},o=c=>{let d=c.target;bf(d)&&d!==document.activeElement&&(c.preventDefault(),s(),d.style.transform="translateY(-2000px)",d.focus(),requestAnimationFrame(()=>{d.style.transform=""})),t&&t()},i=c=>{let d=c.target;bf(d)&&(s(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Ts&&(Ts.height<window.innerHeight?requestAnimationFrame(()=>{mf(d)}):Ts.addEventListener("resize",()=>mf(d),{once:!0}))}))},a=null,s=()=>{if(a)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;a=wn(Wr(window,"scroll",c),hr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),hr(document.documentElement,"overflow","hidden"),hr(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},l=wn(Wr(document,"touchstart",n,{passive:!1,capture:!0}),Wr(document,"touchmove",r,{passive:!1,capture:!0}),Wr(document,"touchend",o,{passive:!1,capture:!0}),Wr(document,"focus",i,!0));return()=>{t==null||t(),a==null||a(),l()}}function hr(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Wr(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function mf(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=vo(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(n.scrollTop+=o-r)}e=n.parentElement}}function bf(e){return e instanceof HTMLInputElement&&!yw.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const wl=u.createContext(null);function ww(e){let{children:t}=e,n=u.useContext(wl),[r,o]=u.useState(0),i=u.useMemo(()=>({parent:n,modalCount:r,addModal(){o(a=>a+1),n&&n.addModal()},removeModal(){o(a=>a-1),n&&n.removeModal()}}),[n,r]);return u.createElement(wl.Provider,{value:i},t)}function Cw(){let e=u.useContext(wl);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function Ew(e){let{modalProviderProps:t}=Cw();return u.createElement("div",{"data-overlay-container":!0,...e,...t})}function Dw(e){return u.createElement(ww,null,u.createElement(Ew,e))}function vf(e){let t=Ht(),{portalContainer:n=t?null:document.body,...r}=e;if(u.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=u.createElement(Dw,r);return dn.createPortal(o,n)}var v0={};v0={"ar-AE":Fm,"bg-BG":Bm,"cs-CZ":Im,"da-DK":Om,"de-DE":Lm,"el-GR":Vm,"en-US":Nm,"es-ES":_m,"et-EE":Km,"fi-FI":jm,"fr-FR":zm,"he-IL":Um,"hr-HR":Hm,"hu-HU":Gm,"it-IT":Wm,"ja-JP":Ym,"ko-KR":qm,"lt-LT":Zm,"lv-LV":Xm,"nb-NO":Jm,"nl-NL":Qm,"pl-PL":e0,"pt-BR":t0,"pt-PT":n0,"ro-RO":r0,"ru-RU":o0,"sk-SK":i0,"sl-SI":a0,"sr-SP":s0,"sv-SE":l0,"tr-TR":u0,"uk-UA":c0,"zh-CN":d0,"zh-TW":f0};function Cl(e){let{onDismiss:t,...n}=e,r=Fr(sw(v0),"@react-aria/overlays"),o=zn(n,r.format("dismiss")),i=()=>{t&&t()};return u.createElement(Aa,null,u.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Yr=new WeakMap,yt=[];function Iu(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let c=p=>{if(n.has(p)||r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(l);if(f===NodeFilter.FILTER_ACCEPT&&i(l),f!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)i(p),p=d.nextNode()}},i=l=>{var c;let d=(c=Yr.get(l))!==null&&c!==void 0?c:0;l.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&l.setAttribute("aria-hidden","true"),r.add(l),Yr.set(l,d+1))};yt.length&&yt[yt.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&o(d)}});a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return yt.push(s),()=>{a.disconnect();for(let l of r){let c=Yr.get(l);c===1?(l.removeAttribute("aria-hidden"),Yr.delete(l)):Yr.set(l,c-1)}s===yt[yt.length-1]?(yt.pop(),yt.length&&yt[yt.length-1].observe()):yt.splice(yt.indexOf(s),1)}}function Pw(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...s}=e,{overlayProps:l,underlayProps:c}=Bu({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:d,arrowProps:f,placement:p}=m0({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return b0({isDisabled:o||!t.isOpen}),Se(()=>{if(t.isOpen&&!o&&r.current)return Iu([r.current])},[o,t.isOpen,r]),{popoverProps:oe(l,d),arrowProps:f,underlayProps:c,placement:p}}const g0=u.createContext(null);function y0(e){let t=Ht(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=u.useState(!1),a=u.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let s=e.children;return e.disableFocusManagement||(s=u.createElement($u,{restoreFocus:!0,contain:o&&!r},s)),s=u.createElement(g0.Provider,{value:a},u.createElement(C5,null,s)),dn.createPortal(s,n)}function $0(){let e=u.useContext(g0),t=e==null?void 0:e.setContain;Se(()=>{t==null||t(!0)},[t])}function Sw(e,t,n){let{overlayProps:r,underlayProps:o}=Bu({...e,isOpen:t.isOpen,onClose:t.close},n);return b0({isDisabled:!t.isOpen}),$0(),u.useEffect(()=>{if(t.isOpen)return Iu([n.current])},[t.isOpen,n]),{modalProps:oe(r),underlayProps:o}}function ka(e){return u.forwardRef(e)}var x0=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,a)=>({...i,[a]:e[a]}),{}),r]:[e,r]},w0=ka((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=O.jsx(P3,{}),alt:a,classNames:s,slots:l,name:c,showFallback:d,fallback:f,getInitials:p,getAvatarProps:h,getImageProps:m}=Z5({...e,ref:t}),b=u.useMemo(()=>!d&&o?null:f?O.jsx("div",{"aria-label":a,className:l.fallback({class:s==null?void 0:s.fallback}),role:"img",children:f}):c?O.jsx("span",{"aria-label":a,className:l.name({class:s==null?void 0:s.name}),role:"img",children:p(c)}):O.jsx("span",{"aria-label":a,className:l.icon({class:s==null?void 0:s.icon}),role:"img",children:i}),[d,o,f,c,s]);return O.jsxs(n,{...h(),children:[o&&O.jsx(r,{...m(),alt:a}),b]})});w0.displayName="NextUI.Avatar";var C0=w0;function Tw(e={}){const{as:t,ref:n,max:r=5,total:o,size:i,color:a,radius:s,children:l,isBordered:c,isDisabled:d,isGrid:f,renderCount:p,className:h,...m}=e,b=Qs(n),v=t||"div",$=u.useMemo(()=>({size:i,color:a,radius:s,isGrid:f,isBordered:c,isDisabled:d}),[i,a,s,f,c,d]),C=u.useMemo(()=>Bx({className:h,isGrid:f}),[h,f]),x=U3(l),E=r?x.slice(0,r):x,w=o||(r!=null?x.length-r:-1),A=E.map((y,I)=>{const M=I===0,k=I===E.length-1,R={className:mo(M?"ms-0":f?"":"-ms-2",k&&w<1?"hover:-translate-x-0":"")};return u.cloneElement(y,R3(R))});return{Component:v,context:$,remainingCount:w,clones:A,renderCount:p,getAvatarGroupProps:()=>({ref:b,className:C,role:"group",...m})}}var E0=ka((e,t)=>{const{Component:n,clones:r,context:o,remainingCount:i,renderCount:a=l=>O.jsx(C0,{className:"hover:-translate-x-0",name:`+${l}`}),getAvatarGroupProps:s}=Tw({...e,ref:t});return O.jsx(n,{...s(),children:O.jsxs(H3,{value:o,children:[r,i>0&&a(i)]})})});E0.displayName="NextUI.AvatarGroup";var Aw=E0,El={exports:{}},we={};/**
|
|
39
|
+
*/var vd=z3(G3());function W3(e){return vd.Children.toArray(e).filter(t=>(0,vd.isValidElement)(t))}var[Y3,$h]=k3({name:"AvatarGroupContext",strict:!1}),q3=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],us=q3.map(e=>`unit-${e}`),yd=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bt=e=>!e||typeof e!="object"||Object.keys(e).length===0,Z3=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function xh(e,t){e.forEach(function(n){Array.isArray(n)?xh(n,t):t.push(n)})}function wh(e){let t=[];return xh(e,t),t}var Ch=(...e)=>wh(e).filter(Boolean),Eh=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let a=e[i],s=t[i];typeof a=="object"&&typeof s=="object"?n[i]=Eh(a,s):Array.isArray(a)||Array.isArray(s)?n[i]=Ch(s,a):n[i]=s+" "+a}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},$d=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function X3(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Dh(t))&&(r&&(r+=" "),r+=n);return r}function Dh(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Dh(e[r]))&&(n&&(n+=" "),n+=t);return n}var fu="-";function J3(e){var t=ex(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(s){var l=s.split(fu);return l[0]===""&&l.length!==1&&l.shift(),Ph(l,t)||Q3(s)}function a(s,l){var c=n[s]||[];return l&&o[s]?[].concat(c,o[s]):c}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Ph(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Ph(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(fu);return(a=t.validators.find(function(s){var l=s.validator;return l(i)}))==null?void 0:a.classGroupId}}var xd=/^\[(.+)\]$/;function Q3(e){if(xd.test(e)){var t=xd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function ex(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=nx(Object.entries(e.classGroups),n);return o.forEach(function(i){var a=i[0],s=i[1];el(s,r,a,t)}),r}function el(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:wd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(tx(o)){el(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(a){var s=a[0],l=a[1];el(l,wd(t,s),n,r)})})}function wd(e,t){var n=e;return t.split(fu).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function tx(e){return e.isThemeGetter}function nx(e,t){return t?e.map(function(n){var r=n[0],o=n[1],i=o.map(function(a){return typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(function(s){var l=s[0],c=s[1];return[t+l,c]})):a});return[r,i]}):e}function rx(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(i,a){n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(a){var s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set:function(a,s){n.has(a)?n.set(a,s):o(a,s)}}}var Sh="!";function ox(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(a){for(var s=[],l=0,c=0,d,f=0;f<a.length;f++){var p=a[f];if(l===0){if(p===r&&(n||a.slice(f,f+o)===t)){s.push(a.slice(c,f)),c=f+o;continue}if(p==="/"){d=f;continue}}p==="["?l++:p==="]"&&l--}var h=s.length===0?a:a.substring(c),m=h.startsWith(Sh),b=m?h.substring(1):h,g=d&&d>c?d-c:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:g}}}function ix(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function ax(e){return{cache:rx(e.cacheSize),splitModifiers:ox(e),...J3(e)}}var sx=/\s+/;function lx(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(sx).map(function(a){var s=n(a),l=s.modifiers,c=s.hasImportantModifier,d=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?d.substring(0,f):d),h=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:a};if(p=r(d),!p)return{isTailwindClass:!1,originalClassName:a};h=!1}var m=ix(l).join(":"),b=c?m+Sh:m;return{isTailwindClass:!0,modifierId:b,classGroupId:p,originalClassName:a,hasPostfixModifier:h}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var s=a.modifierId,l=a.classGroupId,c=a.hasPostfixModifier,d=s+l;return i.has(d)?!1:(i.add(d),o(l,c).forEach(function(f){return i.add(s+f)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function tl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=s;function s(c){var d=t[0],f=t.slice(1),p=f.reduce(function(h,m){return m(h)},d());return r=ax(p),o=r.cache.get,i=r.cache.set,a=l,l(c)}function l(c){var d=o(c);if(d)return d;var f=lx(c,r);return i(c,f),f}return function(){return a(X3.apply(null,arguments))}}function Re(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var Th=/^\[(?:([a-z-]+):)?(.+)\]$/i,ux=/^\d+\/\d+$/,cx=new Set(["px","full","screen"]),dx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,px=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Bt(e){return Ln(e)||cx.has(e)||ux.test(e)||nl(e)}function nl(e){return qn(e,"length",yx)}function hx(e){return qn(e,"size",Ah)}function mx(e){return qn(e,"position",Ah)}function bx(e){return qn(e,"url",$x)}function ri(e){return qn(e,"number",Ln)}function Ln(e){return!Number.isNaN(Number(e))}function gx(e){return e.endsWith("%")&&Ln(e.slice(0,-1))}function zr(e){return Cd(e)||qn(e,"number",Cd)}function be(e){return Th.test(e)}function Ur(){return!0}function hn(e){return dx.test(e)}function vx(e){return qn(e,"",xx)}function qn(e,t,n){var r=Th.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function yx(e){return fx.test(e)}function Ah(){return!1}function $x(e){return e.startsWith("url(")}function Cd(e){return Number.isInteger(Number(e))}function xx(e){return px.test(e)}function rl(){var e=Re("colors"),t=Re("spacing"),n=Re("blur"),r=Re("brightness"),o=Re("borderColor"),i=Re("borderRadius"),a=Re("borderSpacing"),s=Re("borderWidth"),l=Re("contrast"),c=Re("grayscale"),d=Re("hueRotate"),f=Re("invert"),p=Re("gap"),h=Re("gradientColorStops"),m=Re("gradientColorStopPositions"),b=Re("inset"),g=Re("margin"),$=Re("opacity"),C=Re("padding"),x=Re("saturate"),E=Re("scale"),w=Re("sepia"),A=Re("skew"),V=Re("space"),y=Re("translate"),I=function(){return["auto","contain","none"]},M=function(){return["auto","hidden","clip","visible","scroll"]},k=function(){return["auto",be,t]},R=function(){return[be,t]},S=function(){return["",Bt]},F=function(){return["auto",Ln,be]},K=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},L=function(){return["solid","dashed","dotted","double","none"]},P=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},W=function(){return["start","end","center","between","around","evenly","stretch"]},J=function(){return["","0",be]},G=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},D=function(){return[Ln,ri]},T=function(){return[Ln,be]};return{cacheSize:500,theme:{colors:[Ur],spacing:[Bt],blur:["none","",hn,be],brightness:D(),borderColor:[e],borderRadius:["none","","full",hn,be],borderSpacing:R(),borderWidth:S(),contrast:D(),grayscale:J(),hueRotate:T(),invert:J(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[gx,nl],inset:k(),margin:k(),opacity:D(),padding:R(),saturate:D(),scale:D(),sepia:J(),skew:T(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",be]}],container:["container"],columns:[{columns:[hn]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(K(),[be])}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zr]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",be]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",zr]}],"grid-cols":[{"grid-cols":[Ur]}],"col-start-end":[{col:["auto",{span:["full",zr]},be]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Ur]}],"row-start-end":[{row:["auto",{span:[zr]},be]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",be]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(W())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(W(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(W(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",be,t]}],"min-w":[{"min-w":["min","max","fit",be,Bt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[hn]},hn,be]}],h:[{h:[be,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",be,Bt]}],"max-h":[{"max-h":[be,t,"min","max","fit"]}],"font-size":[{text:["base",hn,nl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ri]}],"font-family":[{font:[Ur]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",be]}],"line-clamp":[{"line-clamp":["none",Ln,ri]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",be,Bt]}],"list-image":[{"list-image":["none",be]}],"list-style-type":[{list:["none","disc","decimal",be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(L(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Bt]}],"underline-offset":[{"underline-offset":["auto",be,Bt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(K(),[mx])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",hx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bx]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[$]}],"border-style":[{border:[].concat(L(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$]}],"divide-style":[{divide:L()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(L())}],"outline-offset":[{"outline-offset":[be,Bt]}],"outline-w":[{outline:[Bt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[Bt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",hn,vx]}],"shadow-color":[{shadow:[Ur]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":P()}],"bg-blend":[{"bg-blend":P()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",hn,be]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",be]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",be]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[zr,be]}],"translate-x":[{"translate-x":[y]}],"translate-y":[{"translate-y":[y]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Bt,ri]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function wx(e,t){for(var n in t)kh(e,n,t[n]);return e}var Cx=Object.prototype.hasOwnProperty,Ex=new Set(["string","number","boolean"]);function kh(e,t,n){if(!Cx.call(e,t)||Ex.has(typeof n)||n===null){e[t]=n;return}if(Array.isArray(n)&&Array.isArray(e[t])){e[t]=e[t].concat(n);return}if(typeof n=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=n;return}for(var r in n)kh(e[t],r,n[r])}}function Dx(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?tl.apply(void 0,[rl,e].concat(n)):tl.apply(void 0,[function(){return wx(rl(),e)}].concat(n))}var Px=tl(rl),Sx={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Mh=e=>e||void 0,bo=(...e)=>Mh(wh(e).filter(Boolean).join(" ")),cs=null,Ni={},ol=!1,Hr=(...e)=>t=>t.twMerge?((!cs||ol)&&(ol=!1,cs=bt(Ni)?Px:Dx(Ni)),Mh(cs(bo(e)))):bo(e),Ed=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=bo(e[n],t[n]):e[n]=t[n];return e},Tx=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:a=[],defaultVariants:s={}}=e,l={...Sx,...t},c=n!=null&&n.base?bo(n.base,e==null?void 0:e.base):e==null?void 0:e.base,d=n!=null&&n.variants&&!bt(n.variants)?Eh(o,n.variants):o,f=n!=null&&n.defaultVariants&&!bt(n.defaultVariants)?{...n.defaultVariants,...s}:s;!bt(l.twMergeConfig)&&!Z3(l.twMergeConfig,Ni)&&(ol=!0,Ni=l.twMergeConfig);let p=bt(n==null?void 0:n.slots),h=bt(r)?{}:{base:bo(e==null?void 0:e.base,p&&(n==null?void 0:n.base)),...r},m=p?h:Ed({...n==null?void 0:n.slots},bt(h)?{base:e==null?void 0:e.base}:h),b=$=>{if(bt(d)&&bt(r)&&p)return Hr(c,$==null?void 0:$.class,$==null?void 0:$.className)(l);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof a}`);let C=(R,S,F=[],K)=>{let L=F;if(typeof S=="string")L=L.concat($d(S).split(" ").map(P=>`${R}:${P}`));else if(Array.isArray(S))L=L.concat(S.reduce((P,W)=>P.concat(`${R}:${W}`),[]));else if(typeof S=="object"&&typeof K=="string"){for(let P in S)if(S.hasOwnProperty(P)&&P===K){let W=S[P];if(W&&typeof W=="string"){let J=$d(W);L[K]?L[K]=L[K].concat(J.split(" ").map(G=>`${R}:${G}`)):L[K]=J.split(" ").map(G=>`${R}:${G}`)}else Array.isArray(W)&&W.length>0&&(L[K]=W.reduce((J,G)=>J.concat(`${R}:${G}`),[]))}}return L},x=(R,S=d,F=null,K=null)=>{var L;let P=S[R];if(!P||bt(P))return null;let W=(L=K==null?void 0:K[R])!=null?L:$==null?void 0:$[R];if(W===null)return null;let J=yd(W),G=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,D=f==null?void 0:f[R],T=[];if(typeof J=="object"&&G)for(let[H,X]of Object.entries(J)){let N=P[X];if(H==="initial"){D=X;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(H)||(T=C(H,N,T,F))}let z=P[J]||P[yd(D)];return typeof T=="object"&&typeof F=="string"&&T[F]?Ed(T,z):T.length>0?(T.push(z),T):z},E=()=>d?Object.keys(d).map(R=>x(R,d)):null,w=(R,S)=>{if(!d||typeof d!="object")return null;let F=new Array;for(let K in d){let L=x(K,d,R,S),P=R==="base"&&typeof L=="string"?L:L&&L[R];P&&(F[F.length]=P)}return F},A={};for(let R in $)$[R]!==void 0&&(A[R]=$[R]);let V=(R,S)=>{var F;let K=typeof($==null?void 0:$[R])=="object"?{[R]:(F=$[R])==null?void 0:F.initial}:{};return{...f,...A,...K,...S}},y=(R=[],S)=>{let F=[];for(let{class:K,className:L,...P}of R){let W=!0;for(let[J,G]of Object.entries(P)){let D=V(J,S);if(Array.isArray(G)){if(!G.includes(D[J])){W=!1;break}}else if(D[J]!==G){W=!1;break}}W&&(K&&F.push(K),L&&F.push(L))}return F},I=R=>{let S=y(i,R),F=y(n==null?void 0:n.compoundVariants,R);return Ch(F,S)},M=R=>{let S=I(R);if(!Array.isArray(S))return S;let F={};for(let K of S)if(typeof K=="string"&&(F.base=Hr(F.base,K)(l)),typeof K=="object")for(let[L,P]of Object.entries(K))F[L]=Hr(F[L],P)(l);return F},k=R=>{if(a.length<1)return null;let S={};for(let{slots:F=[],class:K,className:L,...P}of a){if(!bt(P)){let W=!0;for(let J of Object.keys(P)){let G=V(J,R)[J];if(G===void 0||(Array.isArray(P[J])?!P[J].includes(G):P[J]!==G)){W=!1;break}}if(!W)continue}for(let W of F)S[W]=S[W]||[],S[W].push([K,L])}return S};if(!bt(r)||!p){let R={};if(typeof m=="object"&&!bt(m))for(let S of Object.keys(m))R[S]=F=>{var K,L;return Hr(m[S],w(S,F),((K=M(F))!=null?K:[])[S],((L=k(F))!=null?L:[])[S],F==null?void 0:F.class,F==null?void 0:F.className)(l)};return R}return Hr(c,E(),I(),$==null?void 0:$.class,$==null?void 0:$.className)(l)},g=()=>{if(!(!d||typeof d!="object"))return Object.keys(d)};return b.variantKeys=g(),b.extend=n,b.base=c,b.slots=m,b.variants=d,b.defaultVariants=f,b.compoundSlots=a,b.compoundVariants=i,b},oi=["small","medium","large"],xa=(e,t)=>{var n,r,o;return Tx(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider","unit",...us],borderWidth:oi,borderRadius:oi},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:oi}],"font-size":[{text:["tiny",...oi]}],"bg-image":["bg-stripe-gradient"],"min-w":[{"min-w":["unit",...us]}],"min-h":[{"min-h":["unit",...us]}]}}})},Rh=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],ds=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],Ax={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},kx={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},Mx={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},Rx={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},Fx={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},Bx={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},Ix={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},ge={solid:Ax,shadow:kx,bordered:Mx,flat:Rx,faded:Fx,light:Bx,ghost:Ix},Dd=xa({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...Rh],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:ge.solid.foreground},primary:{base:"before:bg-primary",content:ge.solid.primary},secondary:{base:"before:bg-secondary",content:ge.solid.secondary},success:{base:"before:bg-success",content:ge.solid.success},warning:{base:"before:bg-warning",content:ge.solid.warning},danger:{base:"before:bg-danger",content:ge.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",disableAnimation:!1,triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),Ox=xa({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...Rh],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...ds,"flex","items-center","justify-center"],name:[...ds,"font-normal","text-center","text-inherit"],icon:[...ds,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:ge.solid.default},primary:{base:ge.solid.primary},secondary:{base:ge.solid.secondary},success:{base:ge.solid.success},warning:{base:ge.solid.warning},danger:{base:ge.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]}),Lx=xa({base:"flex items-center justify-center h-auto w-max-content",variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),Pd=xa({slots:{base:["relative","inline-flex","shrink-0"],badge:["flex","z-10","flex-wrap","absolute","box-border","rounded-full","whitespace-nowrap","place-content-center","origin-center","items-center","text-inherit","select-none","font-regular","scale-100","opacity-100","subpixel-antialiased","data-[invisible=true]:scale-0","data-[invisible=true]:opacity-0"]},variants:{variant:{solid:{},flat:{},faded:{badge:"border-medium"},shadow:{}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{badge:"px-1 text-tiny"},md:{badge:"px-1 text-small"},lg:{badge:"px-1 text-small"}},placement:{"top-right":{},"top-left":{},"bottom-right":{},"bottom-left":{}},shape:{circle:{},rectangle:{}},isInvisible:{true:{}},isOneChar:{true:{badge:"px-0"}},isDot:{true:{}},disableAnimation:{true:{badge:"transition-none"},false:{badge:"transition-transform-opacity !ease-soft-spring !duration-300"}},showOutline:{true:{badge:"border-2 border-background"},false:{badge:"border-transparent border-0"}}},defaultVariants:{variant:"solid",color:"default",size:"md",shape:"rectangle",placement:"top-right",showOutline:!0,disableAnimation:!1,isInvisible:!1},compoundVariants:[{variant:"solid",color:"default",class:{badge:ge.solid.default}},{variant:"solid",color:"primary",class:{badge:ge.solid.primary}},{variant:"solid",color:"secondary",class:{badge:ge.solid.secondary}},{variant:"solid",color:"success",class:{badge:ge.solid.success}},{variant:"solid",color:"warning",class:{badge:ge.solid.warning}},{variant:"solid",color:"danger",class:{badge:ge.solid.danger}},{variant:"shadow",color:"default",class:{badge:ge.shadow.default}},{variant:"shadow",color:"primary",class:{badge:ge.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:ge.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:ge.shadow.success}},{variant:"shadow",color:"warning",class:{badge:ge.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:ge.shadow.danger}},{variant:"flat",color:"default",class:{badge:ge.flat.default}},{variant:"flat",color:"primary",class:{badge:ge.flat.primary}},{variant:"flat",color:"secondary",class:{badge:ge.flat.secondary}},{variant:"flat",color:"success",class:{badge:ge.flat.success}},{variant:"flat",color:"warning",class:{badge:ge.flat.warning}},{variant:"flat",color:"danger",class:{badge:ge.flat.danger}},{variant:"faded",color:"default",class:{badge:ge.faded.default}},{variant:"faded",color:"primary",class:{badge:ge.faded.primary}},{variant:"faded",color:"secondary",class:{badge:ge.faded.secondary}},{variant:"faded",color:"success",class:{badge:ge.faded.success}},{variant:"faded",color:"warning",class:{badge:ge.faded.warning}},{variant:"faded",color:"danger",class:{badge:ge.faded.danger}},{isOneChar:!0,size:"sm",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{isOneChar:!0,size:"md",class:{badge:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,size:"lg",class:{badge:"w-6 h-6 min-w-6 min-h-6"}},{isDot:!0,size:"sm",class:{badge:"w-3 h-3 min-w-3 min-h-3"}},{isDot:!0,size:"md",class:{badge:"w-3.5 h-3.5 min-w-3.5 min-h-3.5"}},{isDot:!0,size:"lg",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{placement:"top-right",shape:"rectangle",class:{badge:"top-[5%] right-[5%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"rectangle",class:{badge:"top-[5%] left-[5%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"rectangle",class:{badge:"bottom-[5%] right-[5%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"rectangle",class:{badge:"bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2"}},{placement:"top-right",shape:"circle",class:{badge:"top-[10%] right-[10%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"circle",class:{badge:"top-[10%] left-[10%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"circle",class:{badge:"bottom-[10%] right-[10%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"circle",class:{badge:"bottom-[10%] left-[10%] -translate-x-1/2 translate-y-1/2"}}]});function Vx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rt(e,t,n){let[r,o]=u.useState(e||t),i=u.useRef(e!==void 0),a=e!==void 0;u.useEffect(()=>{let c=i.current;c!==a&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a},[a]);let s=a?e:r,l=u.useCallback((c,...d)=>{let f=(p,...h)=>{n&&(Object.is(s,p)||n(p,...h)),a||(s=p)};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"),o((h,...m)=>{let b=c(a?s:h,...m);return f(b,...d),a?h:b})):(a||o(c),f(c,...d))},[a,s,n]);return[s,l]}function At(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function ft(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);let a=r.toString(),s=a.indexOf("."),l=s>=0?a.length-s:0;if(l>0){let c=Math.pow(10,l);i=Math.round(i*c)/c}return i}const _i={prefix:String(Math.round(Math.random()*1e10)),current:0},Fh=u.createContext(_i),Nx=u.createContext(!1);let _x=!!(typeof window<"u"&&window.document&&window.document.createElement),fs=new WeakMap;function Kx(e=!1){let t=u.useContext(Fh),n=u.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let a=fs.get(i);a==null?fs.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,fs.delete(i))}n.current=++t.current}return n.current}function jx(e){let t=u.useContext(Fh);t===_i&&!_x&&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=Kx(!!e),r=t===_i&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function zx(e){let t=u.useId(),[n]=u.useState(Ht()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${_i.prefix}`;return e||`${r}-${t}`}const Ux=typeof u.useId=="function"?zx:jx;function Hx(){return!1}function Gx(){return!0}function Wx(e){return()=>{}}function Ht(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(Wx,Hx,Gx):u.useContext(Nx)}function Bh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Bh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Yx(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Bh(e))&&(r&&(r+=" "),r+=t);return r}const Se=typeof document<"u"?u.useLayoutEffect:()=>{};function Ne(e){const t=u.useRef(null);return Se(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function qx(e){let[t,n]=u.useState(e),r=u.useRef(null),o=Ne(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?o():n(a.value)});Se(()=>{r.current&&o()});let i=Ne(a=>{r.current=a(t),o()});return[t,i]}let Zx=!!(typeof window<"u"&&window.document&&window.document.createElement),Ki=new Map;function nt(e){let[t,n]=u.useState(e),r=u.useRef(null),o=Ux(t),i=u.useCallback(a=>{r.current=a},[]);return Zx&&Ki.set(o,i),Se(()=>{let a=o;return()=>{Ki.delete(a)}},[o]),u.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),o}function Xx(e,t){if(e===t)return e;let n=Ki.get(e);if(n)return n(t),t;let r=Ki.get(t);return r?(r(e),e):t}function yn(e=[]){let t=nt(),[n,r]=qx(t),o=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Se(o,[t,o,...e]),n}function wn(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Me=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Tt=e=>e&&"window"in e&&e.window===e?e:Me(e).defaultView||window;function oe(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=wn(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=Yx(i,a):o==="id"&&i&&a?t.id=Xx(i,a):t[o]=a!==void 0?a:i}}return t}function wa(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const Jx=new Set(["id"]),Qx=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),e5=new Set(["href","target","rel","download","ping","referrerPolicy"]),t5=/^(data-.*)$/;function me(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(Jx.has(a)||n&&Qx.has(a)||r&&e5.has(a)||o!=null&&o.has(a)||t5.test(a))&&(i[a]=e[a]);return i}function jt(e){if(n5())e.focus({preventScroll:!0});else{let t=r5(e);e.focus(),o5(t)}}let ii=null;function n5(){if(ii==null){ii=!1;try{document.createElement("div").focus({get preventScroll(){return ii=!0,!0}})}catch{}}return ii}function r5(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function o5(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Ca(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function pu(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function sn(){return pu(/^Mac/i)}function Ih(){return pu(/^iPhone/i)}function Oh(){return pu(/^iPad/i)||sn()&&navigator.maxTouchPoints>1}function Ar(){return Ih()||Oh()}function Si(){return sn()||Ar()}function hu(){return Ca(/AppleWebKit/i)&&!i5()}function i5(){return Ca(/Chrome/i)}function mu(){return Ca(/Android/i)}function a5(){return Ca(/Firefox/i)}const s5=u.createContext({isNative:!0,open:c5});function ko(){return u.useContext(s5)}function l5(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function jn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;a5()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(sn()?i=!0:a=!0);let c=hu()&&sn()&&!Oh()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});jn.isOpening=n,jt(e),e.dispatchEvent(c),jn.isOpening=!1}jn.isOpening=!1;function u5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function c5(e,t){u5(e,n=>jn(n,t))}let ur=new Map,il=new Set;function Sd(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=ur.get(r.target);o||(o=new Set,ur.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=ur.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),ur.delete(r.target)),ur.size===0)){for(let i of il)i();il.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Sd():document.addEventListener("DOMContentLoaded",Sd));function Lh(e){requestAnimationFrame(()=>{ur.size===0?e():il.add(e)})}function kr(){let e=u.useRef(new Map),t=u.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...c)=>{e.current.delete(a),a(...c)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,a,s)},[]),n=u.useCallback((o,i,a,s)=>{var l;let c=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,c,s),e.current.delete(a)},[]),r=u.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function zn(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=nt(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function Ft(e){const t=u.useRef(null);return u.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function d5(){return typeof window.ResizeObserver<"u"}function bu(e){const{ref:t,onResize:n}=e;u.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(d5()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function gu(e,t){Se(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function go(e,t){let n=e;for(ji(n,t)&&(n=n.parentElement);n&&!ji(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ji(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let Ct=typeof document<"u"&&window.visualViewport;function f5(){let e=Ht(),[t,n]=u.useState(()=>e?{width:0,height:0}:Td());return u.useEffect(()=>{let r=()=>{n(o=>{let i=Td();return i.width===o.width&&i.height===o.height?o:i})};return Ct?Ct.addEventListener("resize",r):window.addEventListener("resize",r),()=>{Ct?Ct.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Td(){return{width:Ct&&(Ct==null?void 0:Ct.width)||window.innerWidth,height:Ct&&(Ct==null?void 0:Ct.height)||window.innerHeight}}let p5=0;const ps=new Map;function Vh(e){let[t,n]=u.useState();return Se(()=>{if(!e)return;let r=ps.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${p5++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},ps.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),ps.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function zi(e,t,n,r){let o=Ne(n),i=n==null;u.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[e,t,r,i,o])}function Nh(e,t){let n=Ad(e,t,"left"),r=Ad(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c}=getComputedStyle(e),d=e.scrollLeft+parseInt(c,10),f=e.scrollTop+parseInt(l,10),p=d+e.clientWidth,h=f+e.clientHeight;n<=a?a=n-parseInt(c,10):n+o>p&&(a+=n+o-p),r<=f?s=r-parseInt(l,10):r+i>h&&(s+=r+i-h),e.scrollLeft=a,e.scrollTop=s}function Ad(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function al(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=go(e);for(;e&&l&&e!==a&&l!==a;)Nh(l,e),e=l,l=go(e)}else{var n;let{left:l,top:c}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:d,top:f}=e.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(c-f)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function sl(e){return e.mozInputSource===0&&e.isTrusted?!0:mu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function h5(e){return!mu()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function m5(e,t){let n=u.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Mo(e,t,n){let r=u.useRef(t),o=Ne(()=>{n&&n(r.current)});u.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",o),()=>{a==null||a.removeEventListener("reset",o)}},[e,o])}function b5(e,t){return t.get?t.get.call(e):t.value}function _h(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function g5(e,t){var n=_h(e,t,"get");return b5(e,n)}function v5(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ro(e,t,n){v5(e,t),t.set(e,n)}function y5(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function kd(e,t,n){var r=_h(e,t,"set");return y5(e,r,n),n}let fr="default",ll="",Ti=new WeakMap;function ul(e){if(Ar()){if(fr==="default"){const t=Me(e);ll=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}fr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Ti.set(e,e.style.userSelect),e.style.userSelect="none")}function eo(e){if(Ar()){if(fr!=="disabled")return;fr="restoring",setTimeout(()=>{Lh(()=>{if(fr==="restoring"){const t=Me(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ll||""),ll="",fr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ti.has(e)){let t=Ti.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ti.delete(e)}}const vo=u.createContext({register:()=>{}});vo.displayName="PressResponderContext";function $5(e){let t=u.useContext(vo);if(t){let{register:n,...r}=t;e=oe(r,e),n()}return gu(t,e.ref),e}var ai=new WeakMap;class si{continuePropagation(){kd(this,ai,!1)}get shouldStopPropagation(){return g5(this,ai)}constructor(t,n,r){Ro(this,ai,{writable:!0,value:void 0}),kd(this,ai,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const Md=Symbol("linkClicked");function Cn(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=$5(e),[h,m]=u.useState(!1),b=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:g,removeAllGlobalListeners:$}=kr(),C=Ne((y,I)=>{let M=b.current;if(a||M.didFirePressStart)return!1;let k=!0;if(M.isTriggeringEvent=!0,r){let R=new si("pressstart",I,y);r(R),k=R.shouldStopPropagation}return n&&n(!0),M.isTriggeringEvent=!1,M.didFirePressStart=!0,m(!0),k}),x=Ne((y,I,M=!0)=>{let k=b.current;if(!k.didFirePressStart)return!1;k.ignoreClickAfterPress=!0,k.didFirePressStart=!1,k.isTriggeringEvent=!0;let R=!0;if(o){let S=new si("pressend",I,y);o(S),R=S.shouldStopPropagation}if(n&&n(!1),m(!1),t&&M&&!a){let S=new si("press",I,y);t(S),R&&(R=S.shouldStopPropagation)}return k.isTriggeringEvent=!1,R}),E=Ne((y,I)=>{let M=b.current;if(a)return!1;if(i){M.isTriggeringEvent=!0;let k=new si("pressup",I,y);return i(k),M.isTriggeringEvent=!1,k.shouldStopPropagation}return!0}),w=Ne(y=>{let I=b.current;I.isPressed&&I.target&&(I.isOverTarget&&I.pointerType!=null&&x(Yt(I.target,y),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,$(),d||eo(I.target))}),A=Ne(y=>{c&&w(y)}),V=u.useMemo(()=>{let y=b.current,I={onKeyDown(k){if(hs(k.nativeEvent,k.currentTarget)&&k.currentTarget.contains(k.target)){var R;Fd(k.target,k.key)&&k.preventDefault();let S=!0;if(!y.isPressed&&!k.repeat){y.target=k.currentTarget,y.isPressed=!0,S=C(k,"keyboard");let F=k.currentTarget,K=L=>{hs(L,F)&&!L.repeat&&F.contains(L.target)&&y.target&&E(Yt(y.target,L),"keyboard")};g(Me(k.currentTarget),"keyup",wn(K,M),!0)}S&&k.stopPropagation(),k.metaKey&&sn()&&((R=y.metaKeyEvents)===null||R===void 0||R.set(k.key,k.nativeEvent))}else k.key==="Meta"&&(y.metaKeyEvents=new Map)},onClick(k){if(!(k&&!k.currentTarget.contains(k.target))&&k&&k.button===0&&!y.isTriggeringEvent&&!jn.isOpening){let R=!0;if(a&&k.preventDefault(),!y.ignoreClickAfterPress&&!y.ignoreEmulatedMouseEvents&&!y.isPressed&&(y.pointerType==="virtual"||sl(k.nativeEvent))){!a&&!l&&jt(k.currentTarget);let S=C(k,"virtual"),F=E(k,"virtual"),K=x(k,"virtual");R=S&&F&&K}y.ignoreEmulatedMouseEvents=!1,y.ignoreClickAfterPress=!1,R&&k.stopPropagation()}}},M=k=>{var R;if(y.isPressed&&y.target&&hs(k,y.target)){var S;Fd(k.target,k.key)&&k.preventDefault();let K=k.target;x(Yt(y.target,k),"keyboard",y.target.contains(K)),$(),k.key!=="Enter"&&vu(y.target)&&y.target.contains(K)&&!k[Md]&&(k[Md]=!0,jn(y.target,k,!1)),y.isPressed=!1,(S=y.metaKeyEvents)===null||S===void 0||S.delete(k.key)}else if(k.key==="Meta"&&(!((R=y.metaKeyEvents)===null||R===void 0)&&R.size)){var F;let K=y.metaKeyEvents;y.metaKeyEvents=void 0;for(let L of K.values())(F=y.target)===null||F===void 0||F.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){I.onPointerDown=F=>{if(F.button!==0||!F.currentTarget.contains(F.target))return;if(h5(F.nativeEvent)){y.pointerType="virtual";return}ms(F.currentTarget)&&F.preventDefault(),y.pointerType=F.pointerType;let K=!0;y.isPressed||(y.isPressed=!0,y.isOverTarget=!0,y.activePointerId=F.pointerId,y.target=F.currentTarget,!a&&!l&&jt(F.currentTarget),d||ul(y.target),K=C(F,y.pointerType),g(Me(F.currentTarget),"pointermove",k,!1),g(Me(F.currentTarget),"pointerup",R,!1),g(Me(F.currentTarget),"pointercancel",S,!1)),K&&F.stopPropagation()},I.onMouseDown=F=>{F.currentTarget.contains(F.target)&&F.button===0&&(ms(F.currentTarget)&&F.preventDefault(),F.stopPropagation())},I.onPointerUp=F=>{!F.currentTarget.contains(F.target)||y.pointerType==="virtual"||F.button===0&&ir(F,F.currentTarget)&&E(F,y.pointerType||F.pointerType)};let k=F=>{F.pointerId===y.activePointerId&&(y.target&&ir(F,y.target)?!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,C(Yt(y.target,F),y.pointerType)):y.target&&y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,x(Yt(y.target,F),y.pointerType,!1),A(F)))},R=F=>{F.pointerId===y.activePointerId&&y.isPressed&&F.button===0&&y.target&&(ir(F,y.target)&&y.pointerType!=null?x(Yt(y.target,F),y.pointerType):y.isOverTarget&&y.pointerType!=null&&x(Yt(y.target,F),y.pointerType,!1),y.isPressed=!1,y.isOverTarget=!1,y.activePointerId=null,y.pointerType=null,$(),d||eo(y.target))},S=F=>{w(F)};I.onDragStart=F=>{F.currentTarget.contains(F.target)&&w(F)}}else{I.onMouseDown=S=>{if(S.button!==0||!S.currentTarget.contains(S.target))return;if(ms(S.currentTarget)&&S.preventDefault(),y.ignoreEmulatedMouseEvents){S.stopPropagation();return}y.isPressed=!0,y.isOverTarget=!0,y.target=S.currentTarget,y.pointerType=sl(S.nativeEvent)?"virtual":"mouse",!a&&!l&&jt(S.currentTarget),C(S,y.pointerType)&&S.stopPropagation(),g(Me(S.currentTarget),"mouseup",k,!1)},I.onMouseEnter=S=>{if(!S.currentTarget.contains(S.target))return;let F=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!0,F=C(S,y.pointerType)),F&&S.stopPropagation()},I.onMouseLeave=S=>{if(!S.currentTarget.contains(S.target))return;let F=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!1,F=x(S,y.pointerType,!1),A(S)),F&&S.stopPropagation()},I.onMouseUp=S=>{S.currentTarget.contains(S.target)&&!y.ignoreEmulatedMouseEvents&&S.button===0&&E(S,y.pointerType||"mouse")};let k=S=>{if(S.button===0){if(y.isPressed=!1,$(),y.ignoreEmulatedMouseEvents){y.ignoreEmulatedMouseEvents=!1;return}y.target&&ir(S,y.target)&&y.pointerType!=null?x(Yt(y.target,S),y.pointerType):y.target&&y.isOverTarget&&y.pointerType!=null&&x(Yt(y.target,S),y.pointerType,!1),y.isOverTarget=!1}};I.onTouchStart=S=>{if(!S.currentTarget.contains(S.target))return;let F=x5(S.nativeEvent);if(!F)return;y.activePointerId=F.identifier,y.ignoreEmulatedMouseEvents=!0,y.isOverTarget=!0,y.isPressed=!0,y.target=S.currentTarget,y.pointerType="touch",!a&&!l&&jt(S.currentTarget),d||ul(y.target),C(S,y.pointerType)&&S.stopPropagation(),g(Tt(S.currentTarget),"scroll",R,!0)},I.onTouchMove=S=>{if(!S.currentTarget.contains(S.target))return;if(!y.isPressed){S.stopPropagation();return}let F=Rd(S.nativeEvent,y.activePointerId),K=!0;F&&ir(F,S.currentTarget)?!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,K=C(S,y.pointerType)):y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,K=x(S,y.pointerType,!1),A(S)),K&&S.stopPropagation()},I.onTouchEnd=S=>{if(!S.currentTarget.contains(S.target))return;if(!y.isPressed){S.stopPropagation();return}let F=Rd(S.nativeEvent,y.activePointerId),K=!0;F&&ir(F,S.currentTarget)&&y.pointerType!=null?(E(S,y.pointerType),K=x(S,y.pointerType)):y.isOverTarget&&y.pointerType!=null&&(K=x(S,y.pointerType,!1)),K&&S.stopPropagation(),y.isPressed=!1,y.activePointerId=null,y.isOverTarget=!1,y.ignoreEmulatedMouseEvents=!0,y.target&&!d&&eo(y.target),$()},I.onTouchCancel=S=>{S.currentTarget.contains(S.target)&&(S.stopPropagation(),y.isPressed&&w(S))};let R=S=>{y.isPressed&&S.target.contains(y.target)&&w({currentTarget:y.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};I.onDragStart=S=>{S.currentTarget.contains(S.target)&&w(S)}}return I},[g,a,l,$,d,w,A,x,C,E]);return u.useEffect(()=>()=>{var y;d||eo((y=b.current.target)!==null&&y!==void 0?y:void 0)},[d]),{isPressed:s||h,pressProps:oe(p,V)}}function vu(e){return e.tagName==="A"&&e.hasAttribute("href")}function hs(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Tt(o).HTMLInputElement&&!Kh(o,n)||o instanceof Tt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&vu(o))&&n!=="Enter")}function x5(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Rd(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function Yt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function w5(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function C5(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ir(e,t){let n=t.getBoundingClientRect(),r=w5(e);return C5(n,r)}function ms(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Fd(e,t){return e instanceof HTMLInputElement?!Kh(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!vu(e)}const E5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Kh(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":E5.has(e.type)}const D5=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),o=u.useContext(vo);n=Ft(n||(o==null?void 0:o.ref));let i=oe(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return gu(o,n),u.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),u.createElement(vo.Provider,{value:i},e)});function P5({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(vo.Provider,{value:t},e)}class S5{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,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=t}}function jh(e){let t=u.useRef({isFocused:!1,observer:null});Se(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ne(r=>{e==null||e(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=a=>{t.current.isFocused=!1,o.disabled&&n(new S5("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Ea(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=u.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=jh(i),s=u.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let ln=null,yo=new Set,io=new Map,Un=!1,cl=!1;const T5={Tab:!0,Escape:!0};function Da(e,t){for(let n of yo)n(e,t)}function A5(e){return!(e.metaKey||!sn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ui(e){Un=!0,A5(e)&&(ln="keyboard",Da("keyboard",e))}function Dt(e){ln="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Un=!0,Da("pointer",e))}function zh(e){sl(e)&&(Un=!0,ln="virtual")}function Uh(e){e.target===window||e.target===document||(!Un&&!cl&&(ln="virtual",Da("virtual",e)),Un=!1,cl=!1)}function Hh(){Un=!1,cl=!0}function Hi(e){if(typeof window>"u"||io.get(Tt(e)))return;const t=Tt(e),n=Me(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Un=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ui,!0),n.addEventListener("keyup",Ui,!0),n.addEventListener("click",zh,!0),t.addEventListener("focus",Uh,!0),t.addEventListener("blur",Hh,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Dt,!0),n.addEventListener("pointermove",Dt,!0),n.addEventListener("pointerup",Dt,!0)):(n.addEventListener("mousedown",Dt,!0),n.addEventListener("mousemove",Dt,!0),n.addEventListener("mouseup",Dt,!0)),t.addEventListener("beforeunload",()=>{Gh(e)},{once:!0}),io.set(t,{focus:r})}const Gh=(e,t)=>{const n=Tt(e),r=Me(e);t&&r.removeEventListener("DOMContentLoaded",t),io.has(n)&&(n.HTMLElement.prototype.focus=io.get(n).focus,r.removeEventListener("keydown",Ui,!0),r.removeEventListener("keyup",Ui,!0),r.removeEventListener("click",zh,!0),n.removeEventListener("focus",Uh,!0),n.removeEventListener("blur",Hh,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Dt,!0),r.removeEventListener("pointermove",Dt,!0),r.removeEventListener("pointerup",Dt,!0)):(r.removeEventListener("mousedown",Dt,!0),r.removeEventListener("mousemove",Dt,!0),r.removeEventListener("mouseup",Dt,!0)),io.delete(n))};function k5(e){const t=Me(e);let n;return t.readyState!=="loading"?Hi(e):(n=()=>{Hi(e)},t.addEventListener("DOMContentLoaded",n)),()=>Gh(e,n)}typeof document<"u"&&k5();function wr(){return ln!=="pointer"}function Gi(){return ln}function Wh(e){ln=e,Da(e,null)}function M5(){Hi();let[e,t]=u.useState(ln);return u.useEffect(()=>{let n=()=>{t(ln)};return yo.add(n),()=>{yo.delete(n)}},[]),Ht()?null:e}const R5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function F5(e,t,n){var r;const o=typeof window<"u"?Tt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Tt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?Tt(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?Tt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!R5.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!T5[n.key])}function B5(e,t,n){Hi(),u.useEffect(()=>{let r=(o,i)=>{F5(!!(n!=null&&n.isTextInput),o,i)&&e(wr())};return yo.add(r),()=>{yo.delete(r)}},t)}function Mr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=u.useRef({isFocusWithin:!1}),a=u.useCallback(c=>{i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(c),o&&o(!1))},[n,o,i]),s=jh(a),l=u.useCallback(c=>{!i.current.isFocusWithin&&document.activeElement===c.target&&(r&&r(c),o&&o(!0),i.current.isFocusWithin=!0,s(c))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let Wi=!1,bs=0;function dl(){Wi=!0,setTimeout(()=>{Wi=!1},50)}function Bd(e){e.pointerType==="touch"&&dl()}function I5(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Bd):document.addEventListener("touchend",dl),bs++,()=>{bs--,!(bs>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Bd):document.removeEventListener("touchend",dl))}}function Ye(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=u.useState(!1),s=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(I5,[]);let{hoverProps:l,triggerHoverEnd:c}=u.useMemo(()=>{let d=(h,m)=>{if(s.pointerType=m,o||m==="touch"||s.isHovered||!h.currentTarget.contains(h.target))return;s.isHovered=!0;let b=h.currentTarget;s.target=b,t&&t({type:"hoverstart",target:b,pointerType:m}),n&&n(!0),a(!0)},f=(h,m)=>{if(s.pointerType="",s.target=null,m==="touch"||!s.isHovered)return;s.isHovered=!1;let b=h.currentTarget;r&&r({type:"hoverend",target:b,pointerType:m}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{Wi&&h.pointerType==="mouse"||d(h,h.pointerType)},p.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(p.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!s.ignoreEmulatedMouseEvents&&!Wi&&d(h,"mouse"),s.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,o,s]);return u.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:i}}function Yh(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Ne(l=>{n&&li(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Ne(l=>{n&&n(l)});u.useEffect(()=>{let l=i.current;if(r)return;const c=t.current,d=Me(c);if(typeof PointerEvent<"u"){let f=p=>{l.isPointerDown&&li(p,t)&&s(p),l.isPointerDown=!1};return d.addEventListener("pointerdown",a,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",a,!0),d.removeEventListener("pointerup",f,!0)}}else{let f=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&li(h,t)&&s(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&li(h,t)&&s(h),l.isPointerDown=!1};return d.addEventListener("mousedown",a,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",a,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",a,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",a,!0),d.removeEventListener("touchend",p,!0)}}},[t,r,a,s])}function li(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Id(e){if(!e)return;let t=!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(){t=!1}};e(r),t&&n.stopPropagation()}}function yu(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Id(e.onKeyDown),onKeyUp:Id(e.onKeyUp)}}}function qh(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=u.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=kr(),s=Ne((d,f,p,h)=>{p===0&&h===0||(o.current.didMove||(o.current.didMove=!0,t==null||t({type:"movestart",pointerType:f,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey})),n==null||n({type:"move",pointerType:f,deltaX:p,deltaY:h,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))}),l=Ne((d,f)=>{eo(),o.current.didMove&&(r==null||r({type:"moveend",pointerType:f,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))});return{moveProps:u.useMemo(()=>{let d={},f=()=>{ul(),o.current.didMove=!1};if(typeof PointerEvent>"u"){let h=$=>{if($.button===0){var C,x,E,w;s($,"mouse",$.pageX-((E=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&E!==void 0?E:0),$.pageY-((w=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&w!==void 0?w:0)),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},m=$=>{$.button===0&&(l($,"mouse"),a(window,"mousemove",h,!1),a(window,"mouseup",m,!1))};d.onMouseDown=$=>{$.button===0&&(f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i(window,"mousemove",h,!1),i(window,"mouseup",m,!1))};let b=$=>{let C=[...$.changedTouches].findIndex(({identifier:V})=>V===o.current.id);if(C>=0){var x,E;let{pageX:V,pageY:y}=$.changedTouches[C];var w,A;s($,"touch",V-((w=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&w!==void 0?w:0),y-((A=(E=o.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&A!==void 0?A:0)),o.current.lastPosition={pageX:V,pageY:y}}},g=$=>{[...$.changedTouches].findIndex(({identifier:x})=>x===o.current.id)>=0&&(l($,"touch"),o.current.id=null,a(window,"touchmove",b),a(window,"touchend",g),a(window,"touchcancel",g))};d.onTouchStart=$=>{if($.changedTouches.length===0||o.current.id!=null)return;let{pageX:C,pageY:x,identifier:E}=$.changedTouches[0];f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:C,pageY:x},o.current.id=E,i(window,"touchmove",b,!1),i(window,"touchend",g,!1),i(window,"touchcancel",g,!1)}}else{let h=b=>{if(b.pointerId===o.current.id){var g,$;let E=b.pointerType||"mouse";var C,x;s(b,E,b.pageX-((C=(g=o.current.lastPosition)===null||g===void 0?void 0:g.pageX)!==null&&C!==void 0?C:0),b.pageY-((x=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&x!==void 0?x:0)),o.current.lastPosition={pageX:b.pageX,pageY:b.pageY}}},m=b=>{if(b.pointerId===o.current.id){let g=b.pointerType||"mouse";l(b,g),o.current.id=null,a(window,"pointermove",h,!1),a(window,"pointerup",m,!1),a(window,"pointercancel",m,!1)}};d.onPointerDown=b=>{b.button===0&&o.current.id==null&&(f(),b.stopPropagation(),b.preventDefault(),o.current.lastPosition={pageX:b.pageX,pageY:b.pageY},o.current.id=b.pointerId,i(window,"pointermove",h,!1),i(window,"pointerup",m,!1),i(window,"pointercancel",m,!1))}}let p=(h,m,b)=>{f(),s(h,"keyboard",m,b),l(h,"keyboard")};return d.onKeyDown=h=>{switch(h.key){case"Left":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),p(h,-1,0);break;case"Right":case"ArrowRight":h.preventDefault(),h.stopPropagation(),p(h,1,0);break;case"Up":case"ArrowUp":h.preventDefault(),h.stopPropagation(),p(h,0,-1);break;case"Down":case"ArrowDown":h.preventDefault(),h.stopPropagation(),p(h,0,1);break}},d},[o,i,a,s,l])}}function O5(e,t){let{onScroll:n,isDisabled:r}=e,o=u.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),n&&n({deltaX:i.deltaX,deltaY:i.deltaY}))},[n]);zi(t,"wheel",r?void 0:o)}const L5=500;function Zh(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=L5,accessibilityDescription:a}=e;const s=u.useRef();let{addGlobalListener:l,removeGlobalListener:c}=kr(),{pressProps:d}=Cn({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let h=m=>{m.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Vh(o&&!t?a:void 0);return{longPressProps:oe(d,f)}}function Hn(e){const t=Me(e);if(Gi()==="virtual"){let n=t.activeElement;Lh(()=>{t.activeElement===n&&e.isConnected&&jt(e)})}else jt(e)}function V5(e){const t=Tt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function N5(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Xh(e,t){return e.nodeName!=="#comment"&&V5(e)&&N5(e,t)&&(!e.parentElement||Xh(e.parentElement,e))}const Od=u.createContext(null);let ke=null;function $u(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=u.useRef(null),a=u.useRef(null),s=u.useRef([]),{parentNode:l}=u.useContext(Od)||{},c=u.useMemo(()=>new fl({scopeRef:s}),[s]);Se(()=>{let p=l||He.root;if(He.getTreeNode(p.scopeRef)&&ke&&!qi(ke,p.scopeRef)){let h=He.getTreeNode(ke);h&&(p=h)}p.addChild(c),He.addNode(c)},[c,l]),Se(()=>{let p=He.getTreeNode(s);p&&(p.contain=!!n)},[n]),Se(()=>{var p;let h=(p=i.current)===null||p===void 0?void 0:p.nextSibling,m=[];for(;h&&h!==a.current;)m.push(h),h=h.nextSibling;s.current=m},[t]),G5(s,r,n),z5(s,n),Y5(s,r,n),H5(s,o),u.useEffect(()=>{const p=Me(s.current?s.current[0]:void 0).activeElement;let h=null;if(it(p,s.current)){for(let m of He.traverse())m.scopeRef&&it(p,m.scopeRef.current)&&(h=m);h===He.getTreeNode(s)&&(ke=h.scopeRef)}},[s]),Se(()=>()=>{var p,h,m;let b=(m=(h=He.getTreeNode(s))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&m!==void 0?m:null;(s===ke||qi(s,ke))&&(!b||He.getTreeNode(b))&&(ke=b),He.removeTreeNode(s)},[s]);let d=u.useMemo(()=>_5(s),[]),f=u.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return u.createElement(Od.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function _5(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||Me(n[0]).activeElement,l=n[0].previousElementSibling,c=Vn(n),d=lt(c,{tabbable:o,accept:a},n);d.currentNode=it(s,n)?s:l;let f=d.nextNode();return!f&&i&&(d.currentNode=l,f=d.nextNode()),f&&pt(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||Me(n[0]).activeElement,l=n[n.length-1].nextElementSibling,c=Vn(n),d=lt(c,{tabbable:o,accept:a},n);d.currentNode=it(s,n)?s:l;let f=d.previousNode();return!f&&i&&(d.currentNode=l,f=d.previousNode()),f&&pt(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Vn(n),a=lt(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&pt(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Vn(n),a=lt(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&pt(s,!0),s}}}const xu=["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]"],K5=xu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";xu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const j5=xu.join(':not([hidden]):not([tabindex="-1"]),');function Vn(e){return e[0].parentElement}function to(e){let t=He.getTreeNode(ke);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function z5(e,t){let n=u.useRef(),r=u.useRef();Se(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=Me(o?o[0]:void 0);let a=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!to(e))return;let d=i.activeElement,f=e.current;if(!f||!it(d,f))return;let p=Vn(f),h=lt(p,{tabbable:!0},f);if(!d)return;h.currentNode=d;let m=c.shiftKey?h.previousNode():h.nextNode();m||(h.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,m=c.shiftKey?h.previousNode():h.nextNode()),c.preventDefault(),m&&pt(m,!0)},s=c=>{(!ke||qi(ke,e))&&it(c.target,e.current)?(ke=e,n.current=c.target):to(e)&&!Yi(c.target,e)?n.current?n.current.focus():ke&&ke.current&&Zi(ke.current):to(e)&&(n.current=c.target)},l=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&to(e)&&!Yi(i.activeElement,e))if(ke=e,i.body.contains(c.target)){var d;n.current=c.target,(d=n.current)===null||d===void 0||d.focus()}else ke.current&&Zi(ke.current)})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(c=>c.addEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",l,!1))}},[e,t]),Se(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Jh(e){return Yi(e)}function it(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Yi(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of He.traverse(He.getTreeNode(t)))if(n&&it(e,n.current))return!0;return!1}function U5(e){return Yi(e,ke)}function qi(e,t){var n;let r=(n=He.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function pt(e,t=!1){if(e!=null&&!t)try{Hn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Zi(e,t=!0){let n=e[0].previousElementSibling,r=Vn(e),o=lt(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=Vn(e),o=lt(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),pt(i)}function H5(e,t){const n=u.useRef(t);u.useEffect(()=>{if(n.current){ke=e;const r=Me(e.current?e.current[0]:void 0);!it(r.activeElement,ke.current)&&e.current&&Zi(e.current)}n.current=!1},[e])}function G5(e,t,n){Se(()=>{if(t||n)return;let r=e.current;const o=Me(r?r[0]:void 0);let i=a=>{let s=a.target;it(s,e.current)?ke=e:Jh(s)||(ke=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function W5(e){let t=He.getTreeNode(ke);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Y5(e,t,n){const r=u.useRef(typeof document<"u"?Me(e.current?e.current[0]:void 0).activeElement:null);Se(()=>{let o=e.current;const i=Me(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ke||qi(ke,e))&&it(i.activeElement,e.current)&&(ke=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,n]),Se(()=>{const o=Me(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!to(e))return;let s=o.activeElement;if(!it(s,e.current))return;let l=He.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,d=lt(o.body,{tabbable:!0});d.currentNode=s;let f=a.shiftKey?d.previousNode():d.nextNode();if((!c||!o.body.contains(c)||c===o.body)&&(c=void 0,l.nodeToRestore=void 0),(!f||!it(f,e.current))&&c){d.currentNode=c;do f=a.shiftKey?d.previousNode():d.nextNode();while(it(f,e.current));a.preventDefault(),a.stopPropagation(),f?pt(f,!0):Jh(c)?pt(c,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),Se(()=>{const o=Me(e.current?e.current[0]:void 0);if(!t)return;let i=He.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=He.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(it(o.activeElement,e.current)||o.activeElement===o.body&&W5(e))){let c=He.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){pt(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&He.getTreeNode(d.scopeRef)){Zi(d.scopeRef.current,!0);return}d=d.parent}}})}}}},[e,t])}function lt(e,t,n){let r=t!=null&&t.tabbable?j5:K5,o=Me(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&Xh(i)&&(!n||it(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function Qh(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Me(r).activeElement,c=lt(r,{tabbable:i,accept:s});r.contains(l)&&(c.currentNode=l);let d=c.nextNode();return!d&&a&&(c.currentNode=r,d=c.nextNode()),d&&pt(d,!0),d},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Me(r).activeElement,c=lt(r,{tabbable:i,accept:s});if(r.contains(l))c.currentNode=l;else{let f=gs(c);return f&&pt(f,!0),f??null}let d=c.previousNode();if(!d&&a){c.currentNode=r;let f=gs(c);if(!f)return null;d=f}return d&&pt(d,!0),d??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=lt(r,{tabbable:o,accept:i}).nextNode();return s&&pt(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=lt(r,{tabbable:o,accept:i}),s=gs(a);return s&&pt(s,!0),s??null}}}function gs(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class wu{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new fl({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&it(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new wu;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new fl({scopeRef:null}),this.fastMap.set(null,this.root)}}class fl{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let He=new wu;function at(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=u.useRef({isFocused:!1,isFocusVisible:t||wr()}),[i,a]=u.useState(!1),[s,l]=u.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=u.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),d=u.useCallback(h=>{o.current.isFocused=h,a(h),c()},[c]);B5(h=>{o.current.isFocusVisible=h,c()},[],{isTextInput:n});let{focusProps:f}=Ea({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=Mr({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:r?p:f}}let q5=u.createContext(null);function Z5(e){let t=u.useContext(q5)||{};gu(t,e);let{ref:n,...r}=t;return r}function Rr(e,t){let{focusProps:n}=Ea(e),{keyboardProps:r}=yu(e),o=oe(n,r),i=Z5(t),a=e.isDisabled?{}:i,s=u.useRef(e.autoFocus);return u.useEffect(()=>{s.current&&t.current&&Hn(t.current),s.current=!1},[t]),{focusableProps:oe({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function X5(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=u.useState(!1);return Se(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let s=lt(e.current,{tabbable:!0});o(!!s.nextNode())}};i();let a=new MutationObserver(i);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),n?!1:r}var em=globalThis!=null&&globalThis.document?u.useLayoutEffect:u.useEffect;function J5(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[c,d]=u.useState("pending");u.useEffect(()=>{d(n?"loading":"pending")},[n]);const f=u.useRef(),p=u.useCallback(()=>{if(!n)return;h();const m=new Image;m.src=n,a&&(m.crossOrigin=a),r&&(m.srcset=r),s&&(m.sizes=s),t&&(m.loading=t),m.onload=b=>{h(),d("loaded"),o==null||o(b)},m.onerror=b=>{h(),d("failed"),i==null||i(b)},f.current=m},[n,a,r,s,o,i,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return em(()=>{if(!l)return c==="loading"&&p(),()=>{h()}},[c,p,l]),l?"loaded":c}function Q5(e={}){var t,n,r,o,i;const a=$h(),s=!!a,{as:l,ref:c,src:d,name:f,icon:p,classNames:h,fallback:m,alt:b=f||"avatar",imgRef:g,color:$=(t=a==null?void 0:a.color)!=null?t:"default",radius:C=(n=a==null?void 0:a.radius)!=null?n:"full",size:x=(r=a==null?void 0:a.size)!=null?r:"md",isBordered:E=(o=a==null?void 0:a.isBordered)!=null?o:!1,isDisabled:w=(i=a==null?void 0:a.isDisabled)!=null?i:!1,isFocusable:A=!1,getInitials:V=R3,ignoreFallback:y=!1,showFallback:I=!1,ImgComponent:M="img",imgProps:k,className:R,onError:S,...F}=e,K=l||"span",L=Qs(c),P=Qs(g),{isFocusVisible:W,isFocused:J,focusProps:G}=at(),{isHovered:D,hoverProps:T}=Ye({isDisabled:w}),H=J5({src:d,onError:S,ignoreFallback:y})==="loaded",X=(!d||!H)&&I,N=u.useMemo(()=>{var ee;return Ox({color:$,radius:C,size:x,isBordered:E,isDisabled:w,isInGroup:s,isInGridGroup:(ee=a==null?void 0:a.isGrid)!=null?ee:!1})},[$,C,x,E,w,s,a==null?void 0:a.isGrid]),j=mo(h==null?void 0:h.base,R),_=u.useMemo(()=>A||l==="button",[A,l]),Q=u.useCallback((ee={})=>({ref:L,tabIndex:_?0:-1,"data-hover":Kt(D),"data-focus":Kt(J),"data-focus-visible":Kt(W),className:N.base({class:mo(j,ee==null?void 0:ee.className)}),...oe(F,T,_?G:{})}),[_,N,j,G,F]),ne=u.useCallback((ee={})=>({ref:P,src:d,"data-loaded":Kt(H),className:N.img({class:h==null?void 0:h.img}),...oe(k,ee)}),[N,H,k,d,P]);return{Component:K,ImgComponent:M,src:d,alt:b,icon:p,name:f,imgRef:P,slots:N,classNames:h,fallback:m,isImgLoaded:H,showFallback:X,ignoreFallback:y,getInitials:V,getAvatarProps:Q,getImageProps:ne}}const e2=Symbol.for("react-aria.i18n.locale"),t2=Symbol.for("react-aria.i18n.strings");let ar;class Zn{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=n2(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[e2];if(ar===void 0){let o=window[t2];if(!o)return null;ar={};for(let i in o)ar[i]=new Zn({[n]:o[i]},n)}let r=ar==null?void 0:ar[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function n2(e,t,n="en-US"){if(t[e])return t[e];let r=r2(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function r2(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Ld=new Map,Vd=new Map;class tm{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,a=Ld.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),Ld.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Vd.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Vd.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}function nn(e,t){return e-t*Math.floor(e/t)}const nm=1721426;function Nn(e,t,n,r){t=Fo(e,t);let o=t-1,i=-2;return n<=2?i=0:vn(t)&&(i=-1),nm-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function vn(e){return e%4===0&&(e%100!==0||e%400===0)}function Fo(e,t){return e==="BC"?1-t:t}function Pa(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const o2={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class gt{fromJulianDay(t){let n=t,r=n-nm,o=Math.floor(r/146097),i=nn(r,146097),a=Math.floor(i/36524),s=nn(i,36524),l=Math.floor(s/1461),c=nn(s,1461),d=Math.floor(c/365),f=o*400+a*100+l*4+d+(a!==4&&d!==4?1:0),[p,h]=Pa(f),m=n-Nn(p,h,1,1),b=2;n<Nn(p,h,3,1)?b=0:vn(h)&&(b=1);let g=Math.floor(((m+b)*12+373)/367),$=n-Nn(p,h,g,1)+1;return new Ge(p,h,g,$)}toJulianDay(t){return Nn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return o2[vn(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return vn(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function rm(e){return Qt(Date.now(),e)}function i2(e){return um(rm(e))}function om(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function im(e,t){return Nd(e)-Nd(t)}function Nd(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let vs=null;function Cu(){return vs==null&&(vs=new Intl.DateTimeFormat().resolvedOptions().timeZone),vs}function a2(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function s2(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Cr(e){e=ut(e,new gt);let t=Fo(e.era,e.year);return am(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function am(e,t,n,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function pl(e,t){if(t==="UTC")return 0;if(e>0&&t===Cu())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:a,second:s}=sm(e,t);return am(n,r,o,i,a,s,0)-Math.floor(e/1e3)*1e3}const _d=new Map;function sm(e,t){let n=_d.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),_d.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let i of r)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const Kd=864e5;function l2(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>u2(e,t,i))}function u2(e,t,n){let r=sm(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Jt(e,t,n="compatible"){let r=En(e);if(t==="UTC")return Cr(r);if(t===Cu()&&n==="compatible"){r=ut(r,new gt);let l=new Date,c=Fo(r.era,r.year);return l.setFullYear(c,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let o=Cr(r),i=pl(o-Kd,t),a=pl(o+Kd,t),s=l2(r,t,o-i,o-a);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function lm(e,t,n="compatible"){return new Date(Jt(e,t,n))}function Qt(e,t){let n=pl(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),c=r.getUTCSeconds(),d=r.getUTCMilliseconds();return new xo(o,i,a,t,n,s,l,c,d)}function um(e){return new Ge(e.calendar,e.era,e.year,e.month,e.day)}function En(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new Xi(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function jd(e){return new Ta(e.hour,e.minute,e.second,e.millisecond)}function ut(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Gn(r),r}function cm(e,t,n){if(e instanceof xo)return e.timeZone===t?e:d2(e,t);let r=Jt(e,t,n);return Qt(r,t)}function c2(e){let t=Cr(e)-e.offset;return new Date(t)}function d2(e,t){let n=Cr(e)-e.offset;return ut(Qt(n,t),e.calendar)}const Gr=36e5;function Sa(e,t){let n=e.copy(),r="hour"in n?hm(n,t):0;hl(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,ml(n),dm(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,f2(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,a;let l=(i=(a=n.calendar).isInverseEra)===null||i===void 0?void 0:i.call(a,n);n.year=o,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function hl(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function ml(e){for(;e.month<1;)hl(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,hl(e,1)}function f2(e){for(;e.day<1;)e.month--,ml(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,ml(e)}function dm(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Gn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),dm(e)}function Eu(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function fm(e,t){return Sa(e,Eu(t))}function Du(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Gn(n),n}function $o(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),pm(n),n}function p2(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ui(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ui(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ui(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ui(e.hour,24),t}function pm(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ui(e,t){let n=e%t;return n<0&&(n+=t),n}function hm(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,p2(e)}function mm(e,t){let n=e.copy();return hm(n,t),n}function h2(e,t){return mm(e,Eu(t))}function Pu(e,t,n,r){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=en(l,n,0,s.length-1,r==null?void 0:r.round),o.era=s[l],Gn(o);break}case"year":var i,a;!((i=(a=o.calendar).isInverseEra)===null||i===void 0)&&i.call(a,o)&&(n=-n),o.year=en(e.year,n,-1/0,9999,r==null?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=en(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=en(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Gn(o),o}function Su(e,t,n,r){let o=e.copy();switch(t){case"hour":{let i=e.hour,a=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=i>=12;a=l?12:0,s=l?23:11}o.hour=en(i,n,a,s,r==null?void 0:r.round);break}case"minute":o.minute=en(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=en(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=en(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function en(e,t,n,r,o=!1){if(o){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function bm(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let o=Sa(En(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Jt(o,e.timeZone)}else n=Cr(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Qt(n,e.timeZone);return ut(r,e.calendar)}function m2(e,t){return bm(e,Eu(t))}function b2(e,t,n,r){switch(t){case"hour":{let o=0,i=23;if((r==null?void 0:r.hourCycle)===12){let m=e.hour>=12;o=m?12:0,i=m?23:11}let a=En(e),s=ut($o(a,{hour:o}),new gt),l=[Jt(s,e.timeZone,"earlier"),Jt(s,e.timeZone,"later")].filter(m=>Qt(m,e.timeZone).day===s.day)[0],c=ut($o(a,{hour:i}),new gt),d=[Jt(c,e.timeZone,"earlier"),Jt(c,e.timeZone,"later")].filter(m=>Qt(m,e.timeZone).day===c.day).pop(),f=Cr(e)-e.offset,p=Math.floor(f/Gr),h=f%Gr;return f=en(p,n,Math.floor(l/Gr),Math.floor(d/Gr),r==null?void 0:r.round)*Gr+h,ut(Qt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Su(e,t,n,r);case"era":case"year":case"month":case"day":{let o=Pu(En(e),t,n,r),i=Jt(o,e.timeZone);return ut(Qt(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function g2(e,t,n){let r=En(e),o=$o(Du(r,t),t);if(o.compare(r)===0)return e;let i=Jt(o,e.timeZone,n);return ut(Qt(i,e.timeZone),e.calendar)}function gm(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function vm(e){let t=ut(e,new gt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function ym(e){return`${vm(e)}T${gm(e)}`}function v2(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function y2(e){return`${ym(e)}${v2(e.offset)}[${e.timeZone}]`}function Tu(e){let t=typeof e[0]=="object"?e.shift():new gt,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),o=e.shift(),i=e.shift();return[t,n,r,o,i]}var $2=new WeakMap;class Ge{copy(){return this.era?new Ge(this.calendar,this.era,this.year,this.month,this.day):new Ge(this.calendar,this.year,this.month,this.day)}add(t){return Sa(this,t)}subtract(t){return fm(this,t)}set(t){return Du(this,t)}cycle(t,n,r){return Pu(this,t,n,r)}toDate(t){return lm(this,t)}toString(){return vm(this)}compare(t){return om(this,t)}constructor(...t){Ro(this,$2,{writable:!0,value:void 0});let[n,r,o,i,a]=Tu(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,Gn(this)}}var x2=new WeakMap;class Ta{copy(){return new Ta(this.hour,this.minute,this.second,this.millisecond)}add(t){return mm(this,t)}subtract(t){return h2(this,t)}set(t){return $o(this,t)}cycle(t,n,r){return Su(this,t,n,r)}toString(){return gm(this)}compare(t){return im(this,t)}constructor(t=0,n=0,r=0,o=0){Ro(this,x2,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,pm(this)}}var w2=new WeakMap;class Xi{copy(){return this.era?new Xi(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Xi(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Sa(this,t)}subtract(t){return fm(this,t)}set(t){return Du($o(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Pu(this,t,n,r);default:return Su(this,t,n,r)}}toDate(t,n){return lm(this,t,n)}toString(){return ym(this)}compare(t){let n=om(this,t);return n===0?im(this,En(t)):n}constructor(...t){Ro(this,w2,{writable:!0,value:void 0});let[n,r,o,i,a]=Tu(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Gn(this)}}var C2=new WeakMap;class xo{copy(){return this.era?new xo(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new xo(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return bm(this,t)}subtract(t){return m2(this,t)}set(t,n){return g2(this,t,n)}cycle(t,n,r){return b2(this,t,n,r)}toDate(){return c2(this)}toString(){return y2(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-cm(t,this.timeZone).toDate().getTime()}constructor(...t){Ro(this,C2,{writable:!0,value:void 0});let[n,r,o,i,a]=Tu(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Gn(this)}}const yr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],E2=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Ai=[1867,1911,1925,1988,2018],bn=["meiji","taisho","showa","heisei","reiwa"];function zd(e){const t=yr.findIndex(([n,r,o])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<o);return t===-1?yr.length-1:t===0?0:t-1}function ys(e){let t=Ai[bn.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Ge(e.year+t,e.month,e.day)}class D2 extends gt{fromJulianDay(t){let n=super.fromJulianDay(t),r=zd(n);return new Ge(this,bn[r],n.year-Ai[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(ys(t))}balanceDate(t){let n=ys(t),r=zd(n);bn[r]!==t.era&&(t.era=bn[r],t.year=n.year-Ai[r]),this.constrainDate(t)}constrainDate(t){let n=bn.indexOf(t.era),r=E2[n];if(r!=null){let[o,i,a]=r,s=o-Ai[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(i,t.month),t.month===i&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,o,i]=yr[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(i,t.day))}}getEras(){return bn}getYearsInEra(t){let n=bn.indexOf(t.era),r=yr[n],o=yr[n+1];if(o==null)return 9999-r[0]+1;let i=o[0]-r[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&i++,i}getDaysInMonth(t){return super.getDaysInMonth(ys(t))}getMinimumMonthInYear(t){let n=Ud(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Ud(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Ud(e){if(e.year===1){let t=bn.indexOf(e.era);return yr[t]}}const $m=-543;class P2 extends gt{fromJulianDay(t){let n=super.fromJulianDay(t),r=Fo(n.era,n.year);return new Ge(this,r-$m,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Hd(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Hd(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Hd(e){let[t,n]=Pa(e.year+$m);return new Ge(t,n,e.month,e.day)}const Ji=1911;function xm(e){return e.era==="minguo"?e.year+Ji:1-e.year+Ji}function Gd(e){let t=e-Ji;return t>0?["minguo",t]:["before_minguo",1-t]}class S2 extends gt{fromJulianDay(t){let n=super.fromJulianDay(t),r=Fo(n.era,n.year),[o,i]=Gd(r);return new Ge(this,o,i,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Wd(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Gd(xm(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Wd(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Ji}constructor(...t){super(...t),this.identifier="roc"}}function Wd(e){let[t,n]=Pa(xm(e));return new Ge(t,n,e.month,e.day)}const T2=1948321;function A2(e){let t=e>0?e-474:e-473,n=nn(t,2820)+474;return nn((n+38)*31,128)<31}function ci(e,t,n){let r=e>0?e-474:e-473,o=nn(r,2820)+474,i=t<=7?31*(t-1):30*(t-1)+6;return T2-1+1029983*Math.floor(r/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+n}class k2{fromJulianDay(t){let n=t-ci(475,1,1),r=Math.floor(n/1029983),o=nn(n,1029983),i=o===1029982?2820:Math.floor((128*o+46878)/46751),a=474+2820*r+i;a<=0&&a--;let s=t-ci(a,1,1)+1,l=s<=186?Math.ceil(s/31):Math.ceil((s-6)/31),c=t-ci(a,l,1)+1;return new Ge(this,a,l,c)}toJulianDay(t){return ci(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||A2(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const $s=78,Yd=80;class M2 extends gt{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-$s,o=t-Nn(n.era,n.year,1,1),i;o<Yd?(r--,i=vn(n.year-1)?31:30,o+=i+155+90+10):(i=vn(n.year)?31:30,o-=Yd);let a,s;if(o<i)a=1,s=o+1;else{let l=o-i;l<155?(a=Math.floor(l/31)+2,s=l%31+1):(l-=155,a=Math.floor(l/30)+7,s=l%30+1)}return new Ge(this,r,a,s)}toJulianDay(t){let n=t.year+$s,[r,o]=Pa(n),i,a;return vn(o)?(i=31,a=Nn(r,o,3,21)):(i=30,a=Nn(r,o,3,22)),t.month===1?a+t.day-1:(a+=i+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&vn(t.year+$s)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Qi=1948440,qd=1948439,Et=1300,sr=1600,R2=460322;function ea(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function wm(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+ea(t,r,1,1)))/29.5)+1),i=n-ea(t,r,o,1)+1;return new Ge(e,r,o,i)}function Zd(e){return(14+11*e)%30<11}class Au{fromJulianDay(t){return wm(this,Qi,t)}toJulianDay(t){return ea(Qi,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&Zd(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return Zd(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class F2 extends Au{fromJulianDay(t){return wm(this,qd,t)}toJulianDay(t){return ea(qd,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const B2="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let bl,$r;function ki(e){return R2+$r[e-Et]}function no(e,t){let n=e-Et,r=1<<11-(t-1);return bl[n]&r?30:29}function Xd(e,t){let n=ki(e);for(let r=1;r<t;r++)n+=no(e,r);return n}function Jd(e){return $r[e+1-Et]-$r[e-Et]}class I2 extends Au{fromJulianDay(t){let n=t-Qi,r=ki(Et),o=ki(sr);if(n<r||n>o)return super.fromJulianDay(t);{let i=Et-1,a=1,s=1;for(;s>0;){i++,s=n-ki(i)+1;let l=Jd(i);if(s===l){a=12;break}else if(s<l){let c=no(i,a);for(a=1;s>c;)s-=c,a++,c=no(i,a);break}}return new Ge(this,i,a,n-Xd(i,a)+1)}}toJulianDay(t){return t.year<Et||t.year>sr?super.toJulianDay(t):Qi+Xd(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Et||t.year>sr?super.getDaysInMonth(t):no(t.year,t.month)}getDaysInYear(t){return t.year<Et||t.year>sr?super.getDaysInYear(t):Jd(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",bl||(bl=new Uint16Array(Uint8Array.from(atob(B2),t=>t.charCodeAt(0)).buffer)),!$r){$r=new Uint32Array(sr-Et+1);let t=0;for(let n=Et;n<=sr;n++){$r[n-Et]=t;for(let r=1;r<=12;r++)t+=no(n,r)}}}}const Qd=347997,Cm=1080,Em=24*Cm,O2=29,L2=12*Cm+793,V2=O2*Em+L2;function Bn(e){return nn(e*7+1,19)<7}function Mi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return nn(3*(r+1),7)<3&&(r+=1),r}function N2(e){let t=Mi(e-1),n=Mi(e);return Mi(e+1)-n===356?2:n-t===382?1:0}function ao(e){return Mi(e)+N2(e)}function Dm(e){return ao(e+1)-ao(e)}function _2(e){let t=Dm(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function di(e,t){if(t>=6&&!Bn(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=_2(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Bn(e)?30:0:30}class K2{fromJulianDay(t){let n=t-Qd,r=n*Em/V2,o=Math.floor((19*r+234)/235)+1,i=ao(o),a=Math.floor(n-i);for(;a<1;)o--,i=ao(o),a=Math.floor(n-i);let s=1,l=0;for(;l<a;)l+=di(o,s),s++;s--,l-=di(o,s);let c=a-l;return new Ge(this,o,s,c)}toJulianDay(t){let n=ao(t.year);for(let r=1;r<t.month;r++)n+=di(t.year,r);return n+t.day+Qd}getDaysInMonth(t){return di(t.year,t.month)}getMonthsInYear(t){return Bn(t.year)?13:12}getDaysInYear(t){return Dm(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Bn(n.year)&&!Bn(t.year)&&n.month>6?t.month--:!Bn(n.year)&&Bn(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const gl=1723856,ef=1824665,vl=5500;function ta(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function ku(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-ta(e,n,1,1))/30),o=t+1-ta(e,n,r,1);return[n,r,o]}function Pm(e){return Math.floor(e%4/3)}function Sm(e,t){return t%13!==0?30:Pm(e)+5}class Mu{fromJulianDay(t){let[n,r,o]=ku(gl,t),i="AM";return n<=0&&(i="AA",n+=vl),new Ge(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=vl),ta(gl,n,t.month,t.day)}getDaysInMonth(t){return Sm(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Pm(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class j2 extends Mu{fromJulianDay(t){let[n,r,o]=ku(gl,t);return n+=vl,new Ge(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class z2 extends Mu{fromJulianDay(t){let[n,r,o]=ku(ef,t),i="CE";return n<=0&&(i="BCE",n=1-n),new Ge(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),ta(ef,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Sm(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function Tm(e){switch(e){case"buddhist":return new P2;case"ethiopic":return new Mu;case"ethioaa":return new j2;case"coptic":return new z2;case"hebrew":return new K2;case"indian":return new M2;case"islamic-civil":return new Au;case"islamic-tbla":return new F2;case"islamic-umalqura":return new I2;case"japanese":return new D2;case"persian":return new k2;case"roc":return new S2;case"gregory":default:return new gt}}let xs=new Map;class so{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return G2()&&(this.resolvedHourCycle||(this.resolvedHourCycle=W2(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=Am(t,n),this.options=n}}const U2={true:{ja:"h11"},false:{}};function Am(e,t={}){if(typeof t.hour12=="boolean"&&H2()){t={...t};let o=U2[String(t.hour12)][e.split("-")[0]],i=t.hour12?"h12":"h23";t.hourCycle=o??i,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(xs.has(n))return xs.get(n);let r=new Intl.DateTimeFormat(e,t);return xs.set(n,r),r}let ws=null;function H2(){return ws==null&&(ws=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),ws}let Cs=null;function G2(){return Cs==null&&(Cs=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Cs}function W2(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=Am(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(i=>i.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(i=>i.type==="hour").value,10);if(r===0&&o===23)return"h23";if(r===24&&o===23)return"h24";if(r===0&&o===11)return"h11";if(r===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}let Es=new Map,yl=!1;try{yl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let na=!1;try{na=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const km={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class ra{format(t){let n="";if(!yl&&this.options.signDisplay!=null?n=q2(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!na){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=km[o])===null||r===void 0?void 0:r[i];n+=s[a]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!yl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!na&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=Y2(t,n),this.options=n}}function Y2(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!na){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=km[a])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(Es.has(o))return Es.get(o);let i=new Intl.NumberFormat(e,t);return Es.set(o,i),i}function q2(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(n)}}const Z2=new RegExp("^.*\\(.*\\).*$"),X2=["latn","arab","hanidec"];class Ru{parse(t){return Ds(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Ds(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Ds(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const tf=new Map;function Ds(e,t,n){let r=nf(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of X2)if(o!==r.options.numberingSystem){let i=nf(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function nf(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=tf.get(n);return r||(r=new J2(e,t),tf.set(n,r)),r}class J2{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=fi(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");let i=n.indexOf(".");i===-1&&(i=n.length),n=n.replace(".",""),i-2===0?n=`0.${n}`:i-2===-1?n=`0.0${n}`:i-2===-2?n="0.00":n=`${n.slice(0,i-2)}.${n.slice(i-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(this.options.minimumFractionDigits+2,20),maximumFractionDigits:Math.min(this.options.maximumFractionDigits+2,20)};return new Ru(this.locale,o).parse(new ra(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&Z2.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(t=fi(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=fi(t,".",String.fromCharCode(8239))),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=fi(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=ew(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const rf=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Q2=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function ew(e,t,n,r){var o,i,a,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),c=l.formatToParts(-10000.111),d=l.formatToParts(10000.111),f=Q2.map(M=>l.formatToParts(M));var p;let h=(p=(o=c.find(M=>M.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&p!==void 0?p:"-",m=(i=d.find(M=>M.type==="plusSign"))===null||i===void 0?void 0:i.value;!m&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(m="+");let g=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(M=>M.type==="decimal"))===null||a===void 0?void 0:a.value,$=(s=c.find(M=>M.type==="group"))===null||s===void 0?void 0:s.value,C=c.filter(M=>!rf.has(M.type)).map(M=>of(M.value)),x=f.flatMap(M=>M.filter(k=>!rf.has(k.type)).map(k=>of(k.value))),E=[...new Set([...C,...x])].sort((M,k)=>k.length-M.length),w=E.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${E.join("|")}|[\\p{White_Space}]`,"gu"),A=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),V=new Map(A.map((M,k)=>[M,k])),y=new RegExp(`[${A.join("")}]`,"g");return{minusSign:h,plusSign:m,decimal:g,group:$,literals:w,numeral:y,index:M=>String(V.get(M))}}function fi(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function of(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const tw=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),nw=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function rw(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return tw.has(n.script)}let t=e.split("-")[0];return nw.has(t)}const ow=Symbol.for("react-aria.i18n.locale");function Mm(){let e=typeof window<"u"&&window[ow]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:rw(e)?"rtl":"ltr"}}let $l=Mm(),ro=new Set;function af(){$l=Mm();for(let e of ro)e($l)}function iw(){let e=Ht(),[t,n]=u.useState($l);return u.useEffect(()=>(ro.size===0&&window.addEventListener("languagechange",af),ro.add(n),()=>{ro.delete(n),ro.size===0&&window.removeEventListener("languagechange",af)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const aw=u.createContext(null);function Ze(){let e=iw();return u.useContext(aw)||e}const sf=new WeakMap;function sw(e){let t=sf.get(e);return t||(t=new Zn(e),sf.set(e,t)),t}function Rm(e,t){return t&&Zn.getGlobalDictionaryForPackage(t)||sw(e)}function Fr(e,t){let{locale:n}=Ze(),r=Rm(e,t);return u.useMemo(()=>new tm(n,r),[n,r])}function pi(e){e=m5(e??{},lw);let{locale:t}=Ze();return u.useMemo(()=>new so(t,e),[t,e])}function lw(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}function oa(e={}){let{locale:t}=Ze();return u.useMemo(()=>new ra(t,e),[t,e])}let Ps=new Map;function Fu(e){let{locale:t}=Ze(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Ps.has(n))return Ps.get(n);let r=new Intl.Collator(t,e);return Ps.set(n,r),r}function Fm(e){let t=Fu({usage:"search",...e}),n=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(0,a.length),a)===0),[t]),r=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(-a.length),a)===0),[t]),o=u.useCallback((i,a)=>{if(a.length===0)return!0;i=i.normalize("NFC"),a=a.normalize("NFC");let s=0,l=a.length;for(;s+l<=i.length;s++){let c=i.slice(s,s+l);if(t.compare(a,c)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}var Bm={};Bm={dismiss:"تجاهل"};var Im={};Im={dismiss:"Отхвърляне"};var Om={};Om={dismiss:"Odstranit"};var Lm={};Lm={dismiss:"Luk"};var Vm={};Vm={dismiss:"Schließen"};var Nm={};Nm={dismiss:"Απόρριψη"};var _m={};_m={dismiss:"Dismiss"};var Km={};Km={dismiss:"Descartar"};var jm={};jm={dismiss:"Lõpeta"};var zm={};zm={dismiss:"Hylkää"};var Um={};Um={dismiss:"Rejeter"};var Hm={};Hm={dismiss:"התעלם"};var Gm={};Gm={dismiss:"Odbaci"};var Wm={};Wm={dismiss:"Elutasítás"};var Ym={};Ym={dismiss:"Ignora"};var qm={};qm={dismiss:"閉じる"};var Zm={};Zm={dismiss:"무시"};var Xm={};Xm={dismiss:"Atmesti"};var Jm={};Jm={dismiss:"Nerādīt"};var Qm={};Qm={dismiss:"Lukk"};var e0={};e0={dismiss:"Negeren"};var t0={};t0={dismiss:"Zignoruj"};var n0={};n0={dismiss:"Descartar"};var r0={};r0={dismiss:"Dispensar"};var o0={};o0={dismiss:"Revocare"};var i0={};i0={dismiss:"Пропустить"};var a0={};a0={dismiss:"Zrušiť"};var s0={};s0={dismiss:"Opusti"};var l0={};l0={dismiss:"Odbaci"};var u0={};u0={dismiss:"Avvisa"};var c0={};c0={dismiss:"Kapat"};var d0={};d0={dismiss:"Скасувати"};var f0={};f0={dismiss:"取消"};var p0={};p0={dismiss:"關閉"};const lf={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 uw(e={}){let{style:t,isFocusable:n}=e,[r,o]=u.useState(!1),{focusWithinProps:i}=Mr({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=u.useMemo(()=>r?t:t?{...lf,...t}:lf,[r]);return{visuallyHiddenProps:{...i,style:a}}}function Aa(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=uw(e);return u.createElement(n,oe(i,a),t)}function cw(e){return e&&e.__esModule?e.default:e}const pr={top:"top",bottom:"top",left:"left",right:"left"},ia={top:"bottom",bottom:"top",left:"right",right:"left"},dw={top:"left",left:"top"},xl={top:"height",left:"width"},h0={width:"totalWidth",height:"totalHeight"},hi={};let dt=typeof document<"u"&&window.visualViewport;function uf(e){let t=0,n=0,r=0,o=0,i=0,a=0,s={},l=(dt==null?void 0:dt.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,o=f.clientHeight;var c;t=(c=dt==null?void 0:dt.width)!==null&&c!==void 0?c:r;var d;n=(d=dt==null?void 0:dt.height)!==null&&d!==void 0?d:o,s.top=f.scrollTop||e.scrollTop,s.left=f.scrollLeft||e.scrollLeft,dt&&(i=dt.offsetTop,a=dt.offsetLeft)}else({width:t,height:n,top:i,left:a}=xr(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return hu()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(s.top=0,s.left=0,i=dt.pageTop,a=dt.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:a}}function fw(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function cf(e,t,n,r,o,i,a){let s=o.scroll[e],l=r[xl[e]],c=r.scroll[pr[e]]+i,d=l+r.scroll[pr[e]]-i,f=t-s+a[e]-r[pr[e]],p=t-s+n+a[e]-r[pr[e]];return f<c?c-f:p>d?Math.max(d-p,c-f):0}function pw(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function df(e){if(hi[e])return hi[e];let[t,n]=e.split(" "),r=pr[t]||"right",o=dw[r];pr[n]||(n="center");let i=xl[r],a=xl[o];return hi[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},hi[e]}function Ss(e,t,n,r,o,i,a,s,l,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:h,size:m,crossSize:b}=r,g={};g[h]=e[h],f==="center"?g[h]+=(e[b]-n[b])/2:f!==h&&(g[h]+=e[b]-n[b]),g[h]+=i;const $=e[h]-n[b]+l+c,C=e[h]+e[b]-l-c;if(g[h]=At(g[h],$,C),d===p){const x=s?a[m]:t[h0[m]];g[ia[p]]=Math.floor(x-e[p]+o)}else g[p]=Math.floor(e[p]+e[m]+o);return g}function hw(e,t,n,r,o,i,a,s){const l=r?n.height:t[h0.height];let c=e.top!=null?n.top+e.top:n.top+(l-e.bottom-a),d=s!=="top"?Math.max(0,t.height+t.top+t.scroll.top-c-(o.top+o.bottom+i)):Math.max(0,c+a-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-i*2,d)}function ff(e,t,n,r,o,i){let{placement:a,axis:s,size:l}=i;return a===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[ia[s]]-o):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[ia[s]]-o)}function mw(e,t,n,r,o,i,a,s,l,c,d,f,p,h,m,b){let g=df(e),{size:$,crossAxis:C,crossSize:x,placement:E,crossPlacement:w}=g,A=Ss(t,s,n,g,d,f,c,p,m,b),V=d,y=ff(s,c,t,o,i+d,g);if(a&&r[$]>y){let J=df(`${ia[E]} ${w}`),G=Ss(t,s,n,J,d,f,c,p,m,b);ff(s,c,t,o,i+d,J)>y&&(g=J,A=G,V=d)}let I="bottom";g.axis==="top"?g.placement==="top"?I="top":g.placement==="bottom"&&(I="bottom"):g.crossAxis==="top"&&(g.crossPlacement==="top"?I="bottom":g.crossPlacement==="bottom"&&(I="top"));let M=cf(C,A[C],n[x],s,l,i,c);A[C]+=M;let k=hw(A,s,c,p,o,i,n.height,I);h&&h<k&&(k=h),n.height=Math.min(n.height,k),A=Ss(t,s,n,g,V,f,c,p,m,b),M=cf(C,A[C],n[x],s,l,i,c),A[C]+=M;let R={},S=t[C]+.5*t[x]-n[C];const F=m/2+b,K=n[x]-m/2-b,L=t[C]-n[C]+m/2,P=t[C]+t[x]-n[C]-m/2,W=At(S,L,P);return R[C]=At(W,F,K),{position:A,maxHeight:k,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:g.placement}}function bw(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,h=r instanceof HTMLElement?gw(r):document.documentElement,m=h===document.documentElement;const b=window.getComputedStyle(h).position;let g=!!b&&b!=="static",$=m?xr(n):pf(n,h);if(!m){let{marginTop:y,marginLeft:I}=window.getComputedStyle(n);$.top+=parseInt(y,10)||0,$.left+=parseInt(I,10)||0}let C=xr(r),x=pw(r);C.width+=x.left+x.right,C.height+=x.top+x.bottom;let E=fw(o),w=uf(s),A=uf(h),V=s.tagName==="BODY"?xr(h):pf(h,s);return h.tagName==="HTML"&&s.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),mw(t,$,C,E,x,i,a,w,A,V,l,c,g,d,f,p)}function xr(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:n+a-l,width:r,height:o}}function pf(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:i,width:a,height:s}=e.getBoundingClientRect();r={top:o,left:i,width:a,height:s}}else{r=xr(e);let o=xr(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function gw(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!hf(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!hf(t);)t=t.parentElement;return t||document.documentElement}function hf(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const m0=new WeakMap;function vw(e){let{triggerRef:t,isOpen:n,onClose:r}=e;u.useEffect(()=>{if(!n||r===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current))return;let s=r||m0.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Ke=typeof document<"u"&&window.visualViewport;function b0(e){let{direction:t}=Ze(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:a="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:h=!0,onClose:m,maxHeight:b,arrowBoundaryOffset:g=0}=e,[$,C]=u.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[p,a,o.current,r.current,i.current,s,l,c,d,f,h,t,b,g,n],E=u.useRef(Ke==null?void 0:Ke.scale);u.useEffect(()=>{h&&(E.current=Ke==null?void 0:Ke.scale)},[h]);let w=u.useCallback(()=>{if(p===!1||!h||!o.current||!r.current||!i.current||!c||(Ke==null?void 0:Ke.scale)!==E.current)return;!b&&o.current&&(o.current.style.maxHeight="none");let y=bw({placement:$w(a,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:l,boundaryElement:c,offset:d,crossOffset:f,maxHeight:b,arrowSize:n,arrowBoundaryOffset:g});Object.keys(y.position).forEach(I=>o.current.style[I]=y.position[I]+"px"),o.current.style.maxHeight=y.maxHeight!=null?y.maxHeight+"px":void 0,C(y)},x);Se(w,x),yw(w),bu({ref:o,onResize:w});let A=u.useRef(!1);Se(()=>{let y,I=()=>{A.current=!0,clearTimeout(y),y=setTimeout(()=>{A.current=!1},500),w()},M=()=>{A.current&&I()};return Ke==null||Ke.addEventListener("resize",I),Ke==null||Ke.addEventListener("scroll",M),()=>{Ke==null||Ke.removeEventListener("resize",I),Ke==null||Ke.removeEventListener("scroll",M)}},[w]);let V=u.useCallback(()=>{A.current||m()},[m,A]);return vw({triggerRef:r,isOpen:h,onClose:m&&V}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...$.position,maxHeight:$.maxHeight}},placement:$.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$.arrowOffsetLeft,top:$.arrowOffsetTop}},updatePosition:w}}function yw(e){Se(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function $w(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const qt=[];function Bu(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;u.useEffect(()=>(o&&qt.push(t),()=>{let m=qt.indexOf(t);m>=0&&qt.splice(m,1)}),[o,t]);let l=()=>{qt[qt.length-1]===t&&n&&n()},c=m=>{(!s||s(m.target))&&qt[qt.length-1]===t&&(m.stopPropagation(),m.preventDefault())},d=m=>{(!s||s(m.target))&&(qt[qt.length-1]===t&&(m.stopPropagation(),m.preventDefault()),l())},f=m=>{m.key==="Escape"&&!a&&(m.stopPropagation(),m.preventDefault(),l())};Yh({ref:t,onInteractOutside:i&&o?d:null,onInteractOutsideStart:c});let{focusWithinProps:p}=Mr({isDisabled:!r,onBlurWithin:m=>{!m.relatedTarget||U5(m.relatedTarget)||(!s||s(m.relatedTarget))&&n()}}),h=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:h}}}function xw(e,t,n){let{type:r}=e,{isOpen:o}=t;u.useEffect(()=>{n&&n.current&&m0.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=nt();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:null,onPress:t.toggle},overlayProps:{id:a}}}const Ts=typeof document<"u"&&window.visualViewport,ww=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let mi=0,As;function g0(e={}){let{isDisabled:t}=e;Se(()=>{if(!t)return mi++,mi===1&&(Ar()?As=Ew():As=Cw()),()=>{mi--,mi===0&&As()}},[t])}function Cw(){return wn(hr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),hr(document.documentElement,"overflow","hidden"))}function Ew(){let e,t,n=c=>{e=go(c.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=hr(e,"overscrollBehavior","contain"))},r=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()},o=c=>{let d=c.target;bf(d)&&d!==document.activeElement&&(c.preventDefault(),s(),d.style.transform="translateY(-2000px)",d.focus(),requestAnimationFrame(()=>{d.style.transform=""})),t&&t()},i=c=>{let d=c.target;bf(d)&&(s(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Ts&&(Ts.height<window.innerHeight?requestAnimationFrame(()=>{mf(d)}):Ts.addEventListener("resize",()=>mf(d),{once:!0}))}))},a=null,s=()=>{if(a)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;a=wn(Wr(window,"scroll",c),hr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),hr(document.documentElement,"overflow","hidden"),hr(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},l=wn(Wr(document,"touchstart",n,{passive:!1,capture:!0}),Wr(document,"touchmove",r,{passive:!1,capture:!0}),Wr(document,"touchend",o,{passive:!1,capture:!0}),Wr(document,"focus",i,!0));return()=>{t==null||t(),a==null||a(),l()}}function hr(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Wr(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function mf(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=go(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(n.scrollTop+=o-r)}e=n.parentElement}}function bf(e){return e instanceof HTMLInputElement&&!ww.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const wl=u.createContext(null);function Dw(e){let{children:t}=e,n=u.useContext(wl),[r,o]=u.useState(0),i=u.useMemo(()=>({parent:n,modalCount:r,addModal(){o(a=>a+1),n&&n.addModal()},removeModal(){o(a=>a-1),n&&n.removeModal()}}),[n,r]);return u.createElement(wl.Provider,{value:i},t)}function Pw(){let e=u.useContext(wl);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function Sw(e){let{modalProviderProps:t}=Pw();return u.createElement("div",{"data-overlay-container":!0,...e,...t})}function Tw(e){return u.createElement(Dw,null,u.createElement(Sw,e))}function gf(e){let t=Ht(),{portalContainer:n=t?null:document.body,...r}=e;if(u.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=u.createElement(Tw,r);return dn.createPortal(o,n)}var v0={};v0={"ar-AE":Bm,"bg-BG":Im,"cs-CZ":Om,"da-DK":Lm,"de-DE":Vm,"el-GR":Nm,"en-US":_m,"es-ES":Km,"et-EE":jm,"fi-FI":zm,"fr-FR":Um,"he-IL":Hm,"hr-HR":Gm,"hu-HU":Wm,"it-IT":Ym,"ja-JP":qm,"ko-KR":Zm,"lt-LT":Xm,"lv-LV":Jm,"nb-NO":Qm,"nl-NL":e0,"pl-PL":t0,"pt-BR":n0,"pt-PT":r0,"ro-RO":o0,"ru-RU":i0,"sk-SK":a0,"sl-SI":s0,"sr-SP":l0,"sv-SE":u0,"tr-TR":c0,"uk-UA":d0,"zh-CN":f0,"zh-TW":p0};function Cl(e){let{onDismiss:t,...n}=e,r=Fr(cw(v0),"@react-aria/overlays"),o=zn(n,r.format("dismiss")),i=()=>{t&&t()};return u.createElement(Aa,null,u.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Yr=new WeakMap,yt=[];function Iu(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let c=p=>{if(n.has(p)||r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(l);if(f===NodeFilter.FILTER_ACCEPT&&i(l),f!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)i(p),p=d.nextNode()}},i=l=>{var c;let d=(c=Yr.get(l))!==null&&c!==void 0?c:0;l.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&l.setAttribute("aria-hidden","true"),r.add(l),Yr.set(l,d+1))};yt.length&&yt[yt.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&o(d)}});a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return yt.push(s),()=>{a.disconnect();for(let l of r){let c=Yr.get(l);c===1?(l.removeAttribute("aria-hidden"),Yr.delete(l)):Yr.set(l,c-1)}s===yt[yt.length-1]?(yt.pop(),yt.length&&yt[yt.length-1].observe()):yt.splice(yt.indexOf(s),1)}}function Aw(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...s}=e,{overlayProps:l,underlayProps:c}=Bu({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:d,arrowProps:f,placement:p}=b0({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return g0({isDisabled:o||!t.isOpen}),Se(()=>{if(t.isOpen&&!o&&r.current)return Iu([r.current])},[o,t.isOpen,r]),{popoverProps:oe(l,d),arrowProps:f,underlayProps:c,placement:p}}const y0=u.createContext(null);function $0(e){let t=Ht(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=u.useState(!1),a=u.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let s=e.children;return e.disableFocusManagement||(s=u.createElement($u,{restoreFocus:!0,contain:o&&!r},s)),s=u.createElement(y0.Provider,{value:a},u.createElement(P5,null,s)),dn.createPortal(s,n)}function x0(){let e=u.useContext(y0),t=e==null?void 0:e.setContain;Se(()=>{t==null||t(!0)},[t])}function kw(e,t,n){let{overlayProps:r,underlayProps:o}=Bu({...e,isOpen:t.isOpen,onClose:t.close},n);return g0({isDisabled:!t.isOpen}),x0(),u.useEffect(()=>{if(t.isOpen)return Iu([n.current])},[t.isOpen,n]),{modalProps:oe(r),underlayProps:o}}function ka(e){return u.forwardRef(e)}var w0=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,a)=>({...i,[a]:e[a]}),{}),r]:[e,r]},C0=ka((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=O.jsx(A3,{}),alt:a,classNames:s,slots:l,name:c,showFallback:d,fallback:f,getInitials:p,getAvatarProps:h,getImageProps:m}=Q5({...e,ref:t}),b=u.useMemo(()=>!d&&o?null:f?O.jsx("div",{"aria-label":a,className:l.fallback({class:s==null?void 0:s.fallback}),role:"img",children:f}):c?O.jsx("span",{"aria-label":a,className:l.name({class:s==null?void 0:s.name}),role:"img",children:p(c)}):O.jsx("span",{"aria-label":a,className:l.icon({class:s==null?void 0:s.icon}),role:"img",children:i}),[d,o,f,c,s]);return O.jsxs(n,{...h(),children:[o&&O.jsx(r,{...m(),alt:a}),b]})});C0.displayName="NextUI.Avatar";var E0=C0;function Mw(e={}){const{as:t,ref:n,max:r=5,total:o,size:i,color:a,radius:s,children:l,isBordered:c,isDisabled:d,isGrid:f,renderCount:p,className:h,...m}=e,b=Qs(n),g=t||"div",$=u.useMemo(()=>({size:i,color:a,radius:s,isGrid:f,isBordered:c,isDisabled:d}),[i,a,s,f,c,d]),C=u.useMemo(()=>Lx({className:h,isGrid:f}),[h,f]),x=W3(l),E=r?x.slice(0,r):x,w=o||(r!=null?x.length-r:-1),A=E.map((y,I)=>{const M=I===0,k=I===E.length-1,R={className:mo(M?"ms-0":f?"":"-ms-2",k&&w<1?"hover:-translate-x-0":"")};return u.cloneElement(y,I3(R))});return{Component:g,context:$,remainingCount:w,clones:A,renderCount:p,getAvatarGroupProps:()=>({ref:b,className:C,role:"group",...m})}}var D0=ka((e,t)=>{const{Component:n,clones:r,context:o,remainingCount:i,renderCount:a=l=>O.jsx(E0,{className:"hover:-translate-x-0",name:`+${l}`}),getAvatarGroupProps:s}=Mw({...e,ref:t});return O.jsx(n,{...s(),children:O.jsxs(Y3,{value:o,children:[r,i>0&&a(i)]})})});D0.displayName="NextUI.AvatarGroup";var Rw=D0,El={exports:{}},we={};/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-is.production.min.js
|
|
42
42
|
*
|
|
@@ -44,7 +44,7 @@ Check the top-level render call using <`+U+">.")}return B}function sd(g,B){if(!(
|
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/var
|
|
47
|
+
*/var vf;function Fw(){if(vf)return we;vf=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function b(g){if(typeof g=="object"&&g!==null){var $=g.$$typeof;switch($){case e:switch(g=g.type,g){case n:case o:case r:case c:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case a:case l:case p:case f:case i:return g;default:return $}}case t:return $}}}return we.ContextConsumer=a,we.ContextProvider=i,we.Element=e,we.ForwardRef=l,we.Fragment=n,we.Lazy=p,we.Memo=f,we.Portal=t,we.Profiler=o,we.StrictMode=r,we.Suspense=c,we.SuspenseList=d,we.isAsyncMode=function(){return!1},we.isConcurrentMode=function(){return!1},we.isContextConsumer=function(g){return b(g)===a},we.isContextProvider=function(g){return b(g)===i},we.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},we.isForwardRef=function(g){return b(g)===l},we.isFragment=function(g){return b(g)===n},we.isLazy=function(g){return b(g)===p},we.isMemo=function(g){return b(g)===f},we.isPortal=function(g){return b(g)===t},we.isProfiler=function(g){return b(g)===o},we.isStrictMode=function(g){return b(g)===r},we.isSuspense=function(g){return b(g)===c},we.isSuspenseList=function(g){return b(g)===d},we.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===d||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===f||g.$$typeof===i||g.$$typeof===a||g.$$typeof===l||g.$$typeof===m||g.getModuleId!==void 0)},we.typeOf=b,we}var Ce={};/**
|
|
48
48
|
* @license React
|
|
49
49
|
* react-is.development.js
|
|
50
50
|
*
|
|
@@ -52,21 +52,21 @@ Check the top-level render call using <`+U+">.")}return B}function sd(g,B){if(!(
|
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the MIT license found in the
|
|
54
54
|
* LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/var yf;function Mw(){return yf||(yf=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=!1,b=!1,v=!1,$=!1,C=!1,x;x=Symbol.for("react.module.reference");function E(re){return!!(typeof re=="string"||typeof re=="function"||re===n||re===o||C||re===r||re===c||re===d||$||re===h||m||b||v||typeof re=="object"&&re!==null&&(re.$$typeof===p||re.$$typeof===f||re.$$typeof===i||re.$$typeof===a||re.$$typeof===l||re.$$typeof===x||re.getModuleId!==void 0))}function w(re){if(typeof re=="object"&&re!==null){var ce=re.$$typeof;switch(ce){case e:var $e=re.type;switch($e){case n:case o:case r:case c:case d:return $e;default:var pe=$e&&$e.$$typeof;switch(pe){case s:case a:case l:case p:case f:case i:return pe;default:return ce}}case t:return ce}}}var A=a,V=i,y=e,I=l,M=n,k=p,R=f,S=t,F=o,K=r,L=c,P=d,W=!1,J=!1;function G(re){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(re){return J||(J=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function T(re){return w(re)===a}function z(re){return w(re)===i}function H(re){return typeof re=="object"&&re!==null&&re.$$typeof===e}function Z(re){return w(re)===l}function N(re){return w(re)===n}function j(re){return w(re)===p}function _(re){return w(re)===f}function Q(re){return w(re)===t}function ne(re){return w(re)===o}function ee(re){return w(re)===r}function q(re){return w(re)===c}function he(re){return w(re)===d}Ce.ContextConsumer=A,Ce.ContextProvider=V,Ce.Element=y,Ce.ForwardRef=I,Ce.Fragment=M,Ce.Lazy=k,Ce.Memo=R,Ce.Portal=S,Ce.Profiler=F,Ce.StrictMode=K,Ce.Suspense=L,Ce.SuspenseList=P,Ce.isAsyncMode=G,Ce.isConcurrentMode=D,Ce.isContextConsumer=T,Ce.isContextProvider=z,Ce.isElement=H,Ce.isForwardRef=Z,Ce.isFragment=N,Ce.isLazy=j,Ce.isMemo=_,Ce.isPortal=Q,Ce.isProfiler=ne,Ce.isStrictMode=ee,Ce.isSuspense=q,Ce.isSuspenseList=he,Ce.isValidElementType=E,Ce.typeOf=w}()),Ce}process.env.NODE_ENV==="production"?El.exports=kw():El.exports=Mw();var Ou=El.exports;function Rw(e){function t(T,z,H,Z,N){for(var j=0,_=0,Q=0,ne=0,ee,q,he=0,re=0,ce,$e=ce=ee=0,pe=0,Oe=0,de=0,ae=0,xe=H.length,Vt=xe-1,Je,se="",Pe="",ct="",Wt="",mt;pe<xe;){if(q=H.charCodeAt(pe),pe===Vt&&_+ne+Q+j!==0&&(_!==0&&(q=_===47?10:47),ne=Q=j=0,xe++,Vt++),_+ne+Q+j===0){if(pe===Vt&&(0<Oe&&(se=se.replace(p,"")),0<se.trim().length)){switch(q){case 32:case 9:case 59:case 13:case 10:break;default:se+=H.charAt(pe)}q=59}switch(q){case 123:for(se=se.trim(),ee=se.charCodeAt(0),ce=1,ae=++pe;pe<xe;){switch(q=H.charCodeAt(pe)){case 123:ce++;break;case 125:ce--;break;case 47:switch(q=H.charCodeAt(pe+1)){case 42:case 47:e:{for($e=pe+1;$e<Vt;++$e)switch(H.charCodeAt($e)){case 47:if(q===42&&H.charCodeAt($e-1)===42&&pe+2!==$e){pe=$e+1;break e}break;case 10:if(q===47){pe=$e+1;break e}}pe=$e}}break;case 91:q++;case 40:q++;case 34:case 39:for(;pe++<Vt&&H.charCodeAt(pe)!==q;);}if(ce===0)break;pe++}switch(ce=H.substring(ae,pe),ee===0&&(ee=(se=se.replace(f,"").trim()).charCodeAt(0)),ee){case 64:switch(0<Oe&&(se=se.replace(p,"")),q=se.charCodeAt(1),q){case 100:case 109:case 115:case 45:Oe=z;break;default:Oe=L}if(ce=t(z,Oe,ce,q,N+1),ae=ce.length,0<W&&(Oe=n(L,se,de),mt=s(3,ce,Oe,z,S,R,ae,q,N,Z),se=Oe.join(""),mt!==void 0&&(ae=(ce=mt.trim()).length)===0&&(q=0,ce="")),0<ae)switch(q){case 115:se=se.replace(A,a);case 100:case 109:case 45:ce=se+"{"+ce+"}";break;case 107:se=se.replace(C,"$1 $2"),ce=se+"{"+ce+"}",ce=K===1||K===2&&i("@"+ce,3)?"@-webkit-"+ce+"@"+ce:"@"+ce;break;default:ce=se+ce,Z===112&&(ce=(Pe+=ce,""))}else ce="";break;default:ce=t(z,n(z,se,de),ce,Z,N+1)}ct+=ce,ce=de=Oe=$e=ee=0,se="",q=H.charCodeAt(++pe);break;case 125:case 59:if(se=(0<Oe?se.replace(p,""):se).trim(),1<(ae=se.length))switch($e===0&&(ee=se.charCodeAt(0),ee===45||96<ee&&123>ee)&&(ae=(se=se.replace(" ",":")).length),0<W&&(mt=s(1,se,z,T,S,R,Pe.length,Z,N,Z))!==void 0&&(ae=(se=mt.trim()).length)===0&&(se="\0\0"),ee=se.charCodeAt(0),q=se.charCodeAt(1),ee){case 0:break;case 64:if(q===105||q===99){Wt+=se+H.charAt(pe);break}default:se.charCodeAt(ae-1)!==58&&(Pe+=o(se,ee,q,se.charCodeAt(2)))}de=Oe=$e=ee=0,se="",q=H.charCodeAt(++pe)}}switch(q){case 13:case 10:_===47?_=0:1+ee===0&&Z!==107&&0<se.length&&(Oe=1,se+="\0"),0<W*G&&s(0,se,z,T,S,R,Pe.length,Z,N,Z),R=1,S++;break;case 59:case 125:if(_+ne+Q+j===0){R++;break}default:switch(R++,Je=H.charAt(pe),q){case 9:case 32:if(ne+j+_===0)switch(he){case 44:case 58:case 9:case 32:Je="";break;default:q!==32&&(Je=" ")}break;case 0:Je="\\0";break;case 12:Je="\\f";break;case 11:Je="\\v";break;case 38:ne+_+j===0&&(Oe=de=1,Je="\f"+Je);break;case 108:if(ne+_+j+F===0&&0<$e)switch(pe-$e){case 2:he===112&&H.charCodeAt(pe-3)===58&&(F=he);case 8:re===111&&(F=re)}break;case 58:ne+_+j===0&&($e=pe);break;case 44:_+Q+ne+j===0&&(Oe=1,Je+="\r");break;case 34:case 39:_===0&&(ne=ne===q?0:ne===0?q:ne);break;case 91:ne+_+Q===0&&j++;break;case 93:ne+_+Q===0&&j--;break;case 41:ne+_+j===0&&Q--;break;case 40:if(ne+_+j===0){if(ee===0)switch(2*he+3*re){case 533:break;default:ee=1}Q++}break;case 64:_+Q+ne+j+$e+ce===0&&(ce=1);break;case 42:case 47:if(!(0<ne+j+Q))switch(_){case 0:switch(2*q+3*H.charCodeAt(pe+1)){case 235:_=47;break;case 220:ae=pe,_=42}break;case 42:q===47&&he===42&&ae+2!==pe&&(H.charCodeAt(ae+2)===33&&(Pe+=H.substring(ae,pe+1)),Je="",_=0)}}_===0&&(se+=Je)}re=he,he=q,pe++}if(ae=Pe.length,0<ae){if(Oe=z,0<W&&(mt=s(2,Pe,Oe,T,S,R,ae,Z,N,Z),mt!==void 0&&(Pe=mt).length===0))return Wt+Pe+ct;if(Pe=Oe.join(",")+"{"+Pe+"}",K*F!==0){switch(K!==2||i(Pe,2)||(F=0),F){case 111:Pe=Pe.replace(E,":-moz-$1")+Pe;break;case 112:Pe=Pe.replace(x,"::-webkit-input-$1")+Pe.replace(x,"::-moz-$1")+Pe.replace(x,":-ms-input-$1")+Pe}F=0}}return Wt+Pe+ct}function n(T,z,H){var Z=z.trim().split(v);z=Z;var N=Z.length,j=T.length;switch(j){case 0:case 1:var _=0;for(T=j===0?"":T[0]+" ";_<N;++_)z[_]=r(T,z[_],H).trim();break;default:var Q=_=0;for(z=[];_<N;++_)for(var ne=0;ne<j;++ne)z[Q++]=r(T[ne]+" ",Z[_],H).trim()}return z}function r(T,z,H){var Z=z.charCodeAt(0);switch(33>Z&&(Z=(z=z.trim()).charCodeAt(0)),Z){case 38:return z.replace($,"$1"+T.trim());case 58:return T.trim()+z.replace($,"$1"+T.trim());default:if(0<1*H&&0<z.indexOf("\f"))return z.replace($,(T.charCodeAt(0)===58?"":"$1")+T.trim())}return T+z}function o(T,z,H,Z){var N=T+";",j=2*z+3*H+4*Z;if(j===944){T=N.indexOf(":",9)+1;var _=N.substring(T,N.length-1).trim();return _=N.substring(0,T).trim()+_+";",K===1||K===2&&i(_,1)?"-webkit-"+_+_:_}if(K===0||K===2&&!i(N,1))return N;switch(j){case 1015:return N.charCodeAt(10)===97?"-webkit-"+N+N:N;case 951:return N.charCodeAt(3)===116?"-webkit-"+N+N:N;case 963:return N.charCodeAt(5)===110?"-webkit-"+N+N:N;case 1009:if(N.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+N+N;case 978:return"-webkit-"+N+"-moz-"+N+N;case 1019:case 983:return"-webkit-"+N+"-moz-"+N+"-ms-"+N+N;case 883:if(N.charCodeAt(8)===45)return"-webkit-"+N+N;if(0<N.indexOf("image-set(",11))return N.replace(k,"$1-webkit-$2")+N;break;case 932:if(N.charCodeAt(4)===45)switch(N.charCodeAt(5)){case 103:return"-webkit-box-"+N.replace("-grow","")+"-webkit-"+N+"-ms-"+N.replace("grow","positive")+N;case 115:return"-webkit-"+N+"-ms-"+N.replace("shrink","negative")+N;case 98:return"-webkit-"+N+"-ms-"+N.replace("basis","preferred-size")+N}return"-webkit-"+N+"-ms-"+N+N;case 964:return"-webkit-"+N+"-ms-flex-"+N+N;case 1023:if(N.charCodeAt(8)!==99)break;return _=N.substring(N.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+_+"-webkit-"+N+"-ms-flex-pack"+_+N;case 1005:return m.test(N)?N.replace(h,":-webkit-")+N.replace(h,":-moz-")+N:N;case 1e3:switch(_=N.substring(13).trim(),z=_.indexOf("-")+1,_.charCodeAt(0)+_.charCodeAt(z)){case 226:_=N.replace(w,"tb");break;case 232:_=N.replace(w,"tb-rl");break;case 220:_=N.replace(w,"lr");break;default:return N}return"-webkit-"+N+"-ms-"+_+N;case 1017:if(N.indexOf("sticky",9)===-1)break;case 975:switch(z=(N=T).length-10,_=(N.charCodeAt(z)===33?N.substring(0,z):N).substring(T.indexOf(":",7)+1).trim(),j=_.charCodeAt(0)+(_.charCodeAt(7)|0)){case 203:if(111>_.charCodeAt(8))break;case 115:N=N.replace(_,"-webkit-"+_)+";"+N;break;case 207:case 102:N=N.replace(_,"-webkit-"+(102<j?"inline-":"")+"box")+";"+N.replace(_,"-webkit-"+_)+";"+N.replace(_,"-ms-"+_+"box")+";"+N}return N+";";case 938:if(N.charCodeAt(5)===45)switch(N.charCodeAt(6)){case 105:return _=N.replace("-items",""),"-webkit-"+N+"-webkit-box-"+_+"-ms-flex-"+_+N;case 115:return"-webkit-"+N+"-ms-flex-item-"+N.replace(y,"")+N;default:return"-webkit-"+N+"-ms-flex-line-pack"+N.replace("align-content","").replace(y,"")+N}break;case 973:case 989:if(N.charCodeAt(3)!==45||N.charCodeAt(4)===122)break;case 931:case 953:if(M.test(T)===!0)return(_=T.substring(T.indexOf(":")+1)).charCodeAt(0)===115?o(T.replace("stretch","fill-available"),z,H,Z).replace(":fill-available",":stretch"):N.replace(_,"-webkit-"+_)+N.replace(_,"-moz-"+_.replace("fill-",""))+N;break;case 962:if(N="-webkit-"+N+(N.charCodeAt(5)===102?"-ms-"+N:"")+N,H+Z===211&&N.charCodeAt(13)===105&&0<N.indexOf("transform",10))return N.substring(0,N.indexOf(";",27)+1).replace(b,"$1-webkit-$2")+N}return N}function i(T,z){var H=T.indexOf(z===1?":":"{"),Z=T.substring(0,z!==3?H:10);return H=T.substring(H+1,T.length-1),J(z!==2?Z:Z.replace(I,"$1"),H,z)}function a(T,z){var H=o(z,z.charCodeAt(0),z.charCodeAt(1),z.charCodeAt(2));return H!==z+";"?H.replace(V," or ($1)").substring(4):"("+z+")"}function s(T,z,H,Z,N,j,_,Q,ne,ee){for(var q=0,he=z,re;q<W;++q)switch(re=P[q].call(d,T,he,H,Z,N,j,_,Q,ne,ee)){case void 0:case!1:case!0:case null:break;default:he=re}if(he!==z)return he}function l(T){switch(T){case void 0:case null:W=P.length=0;break;default:if(typeof T=="function")P[W++]=T;else if(typeof T=="object")for(var z=0,H=T.length;z<H;++z)l(T[z]);else G=!!T|0}return l}function c(T){return T=T.prefix,T!==void 0&&(J=null,T?typeof T!="function"?K=1:(K=2,J=T):K=0),c}function d(T,z){var H=T;if(33>H.charCodeAt(0)&&(H=H.trim()),D=H,H=[D],0<W){var Z=s(-1,z,H,H,S,R,0,0,0,0);Z!==void 0&&typeof Z=="string"&&(z=Z)}var N=t(L,H,z,0,0);return 0<W&&(Z=s(-2,N,H,H,S,R,N.length,0,0,0),Z!==void 0&&(N=Z)),D="",F=0,R=S=1,N}var f=/^\0+/g,p=/[\0\r\f]/g,h=/: */g,m=/zoo|gra/,b=/([,: ])(transform)/g,v=/,\r+?/g,$=/([\t\r\n ])*\f?&/g,C=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,E=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,A=/\(\s*(.*)\s*\)/g,V=/([\s\S]*?);/g,y=/-self|flex-/g,I=/[^]*?(:[rp][el]a[\w-]+)[^]*/,M=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,R=1,S=1,F=0,K=1,L=[],P=[],W=0,J=null,G=0,D="";return d.use=l,d.set=c,e!==void 0&&c(e),d}var Fw={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Bw(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Iw=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$f=Bw(function(e){return Iw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Dl={exports:{}},Ee={};/** @license React v16.13.1
|
|
55
|
+
*/var yf;function Bw(){return yf||(yf=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=!1,b=!1,g=!1,$=!1,C=!1,x;x=Symbol.for("react.module.reference");function E(re){return!!(typeof re=="string"||typeof re=="function"||re===n||re===o||C||re===r||re===c||re===d||$||re===h||m||b||g||typeof re=="object"&&re!==null&&(re.$$typeof===p||re.$$typeof===f||re.$$typeof===i||re.$$typeof===a||re.$$typeof===l||re.$$typeof===x||re.getModuleId!==void 0))}function w(re){if(typeof re=="object"&&re!==null){var ce=re.$$typeof;switch(ce){case e:var $e=re.type;switch($e){case n:case o:case r:case c:case d:return $e;default:var pe=$e&&$e.$$typeof;switch(pe){case s:case a:case l:case p:case f:case i:return pe;default:return ce}}case t:return ce}}}var A=a,V=i,y=e,I=l,M=n,k=p,R=f,S=t,F=o,K=r,L=c,P=d,W=!1,J=!1;function G(re){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(re){return J||(J=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function T(re){return w(re)===a}function z(re){return w(re)===i}function H(re){return typeof re=="object"&&re!==null&&re.$$typeof===e}function X(re){return w(re)===l}function N(re){return w(re)===n}function j(re){return w(re)===p}function _(re){return w(re)===f}function Q(re){return w(re)===t}function ne(re){return w(re)===o}function ee(re){return w(re)===r}function q(re){return w(re)===c}function he(re){return w(re)===d}Ce.ContextConsumer=A,Ce.ContextProvider=V,Ce.Element=y,Ce.ForwardRef=I,Ce.Fragment=M,Ce.Lazy=k,Ce.Memo=R,Ce.Portal=S,Ce.Profiler=F,Ce.StrictMode=K,Ce.Suspense=L,Ce.SuspenseList=P,Ce.isAsyncMode=G,Ce.isConcurrentMode=D,Ce.isContextConsumer=T,Ce.isContextProvider=z,Ce.isElement=H,Ce.isForwardRef=X,Ce.isFragment=N,Ce.isLazy=j,Ce.isMemo=_,Ce.isPortal=Q,Ce.isProfiler=ne,Ce.isStrictMode=ee,Ce.isSuspense=q,Ce.isSuspenseList=he,Ce.isValidElementType=E,Ce.typeOf=w}()),Ce}process.env.NODE_ENV==="production"?El.exports=Fw():El.exports=Bw();var Ou=El.exports;function Iw(e){function t(T,z,H,X,N){for(var j=0,_=0,Q=0,ne=0,ee,q,he=0,re=0,ce,$e=ce=ee=0,pe=0,Oe=0,de=0,ae=0,xe=H.length,Vt=xe-1,Je,se="",Pe="",ct="",Wt="",mt;pe<xe;){if(q=H.charCodeAt(pe),pe===Vt&&_+ne+Q+j!==0&&(_!==0&&(q=_===47?10:47),ne=Q=j=0,xe++,Vt++),_+ne+Q+j===0){if(pe===Vt&&(0<Oe&&(se=se.replace(p,"")),0<se.trim().length)){switch(q){case 32:case 9:case 59:case 13:case 10:break;default:se+=H.charAt(pe)}q=59}switch(q){case 123:for(se=se.trim(),ee=se.charCodeAt(0),ce=1,ae=++pe;pe<xe;){switch(q=H.charCodeAt(pe)){case 123:ce++;break;case 125:ce--;break;case 47:switch(q=H.charCodeAt(pe+1)){case 42:case 47:e:{for($e=pe+1;$e<Vt;++$e)switch(H.charCodeAt($e)){case 47:if(q===42&&H.charCodeAt($e-1)===42&&pe+2!==$e){pe=$e+1;break e}break;case 10:if(q===47){pe=$e+1;break e}}pe=$e}}break;case 91:q++;case 40:q++;case 34:case 39:for(;pe++<Vt&&H.charCodeAt(pe)!==q;);}if(ce===0)break;pe++}switch(ce=H.substring(ae,pe),ee===0&&(ee=(se=se.replace(f,"").trim()).charCodeAt(0)),ee){case 64:switch(0<Oe&&(se=se.replace(p,"")),q=se.charCodeAt(1),q){case 100:case 109:case 115:case 45:Oe=z;break;default:Oe=L}if(ce=t(z,Oe,ce,q,N+1),ae=ce.length,0<W&&(Oe=n(L,se,de),mt=s(3,ce,Oe,z,S,R,ae,q,N,X),se=Oe.join(""),mt!==void 0&&(ae=(ce=mt.trim()).length)===0&&(q=0,ce="")),0<ae)switch(q){case 115:se=se.replace(A,a);case 100:case 109:case 45:ce=se+"{"+ce+"}";break;case 107:se=se.replace(C,"$1 $2"),ce=se+"{"+ce+"}",ce=K===1||K===2&&i("@"+ce,3)?"@-webkit-"+ce+"@"+ce:"@"+ce;break;default:ce=se+ce,X===112&&(ce=(Pe+=ce,""))}else ce="";break;default:ce=t(z,n(z,se,de),ce,X,N+1)}ct+=ce,ce=de=Oe=$e=ee=0,se="",q=H.charCodeAt(++pe);break;case 125:case 59:if(se=(0<Oe?se.replace(p,""):se).trim(),1<(ae=se.length))switch($e===0&&(ee=se.charCodeAt(0),ee===45||96<ee&&123>ee)&&(ae=(se=se.replace(" ",":")).length),0<W&&(mt=s(1,se,z,T,S,R,Pe.length,X,N,X))!==void 0&&(ae=(se=mt.trim()).length)===0&&(se="\0\0"),ee=se.charCodeAt(0),q=se.charCodeAt(1),ee){case 0:break;case 64:if(q===105||q===99){Wt+=se+H.charAt(pe);break}default:se.charCodeAt(ae-1)!==58&&(Pe+=o(se,ee,q,se.charCodeAt(2)))}de=Oe=$e=ee=0,se="",q=H.charCodeAt(++pe)}}switch(q){case 13:case 10:_===47?_=0:1+ee===0&&X!==107&&0<se.length&&(Oe=1,se+="\0"),0<W*G&&s(0,se,z,T,S,R,Pe.length,X,N,X),R=1,S++;break;case 59:case 125:if(_+ne+Q+j===0){R++;break}default:switch(R++,Je=H.charAt(pe),q){case 9:case 32:if(ne+j+_===0)switch(he){case 44:case 58:case 9:case 32:Je="";break;default:q!==32&&(Je=" ")}break;case 0:Je="\\0";break;case 12:Je="\\f";break;case 11:Je="\\v";break;case 38:ne+_+j===0&&(Oe=de=1,Je="\f"+Je);break;case 108:if(ne+_+j+F===0&&0<$e)switch(pe-$e){case 2:he===112&&H.charCodeAt(pe-3)===58&&(F=he);case 8:re===111&&(F=re)}break;case 58:ne+_+j===0&&($e=pe);break;case 44:_+Q+ne+j===0&&(Oe=1,Je+="\r");break;case 34:case 39:_===0&&(ne=ne===q?0:ne===0?q:ne);break;case 91:ne+_+Q===0&&j++;break;case 93:ne+_+Q===0&&j--;break;case 41:ne+_+j===0&&Q--;break;case 40:if(ne+_+j===0){if(ee===0)switch(2*he+3*re){case 533:break;default:ee=1}Q++}break;case 64:_+Q+ne+j+$e+ce===0&&(ce=1);break;case 42:case 47:if(!(0<ne+j+Q))switch(_){case 0:switch(2*q+3*H.charCodeAt(pe+1)){case 235:_=47;break;case 220:ae=pe,_=42}break;case 42:q===47&&he===42&&ae+2!==pe&&(H.charCodeAt(ae+2)===33&&(Pe+=H.substring(ae,pe+1)),Je="",_=0)}}_===0&&(se+=Je)}re=he,he=q,pe++}if(ae=Pe.length,0<ae){if(Oe=z,0<W&&(mt=s(2,Pe,Oe,T,S,R,ae,X,N,X),mt!==void 0&&(Pe=mt).length===0))return Wt+Pe+ct;if(Pe=Oe.join(",")+"{"+Pe+"}",K*F!==0){switch(K!==2||i(Pe,2)||(F=0),F){case 111:Pe=Pe.replace(E,":-moz-$1")+Pe;break;case 112:Pe=Pe.replace(x,"::-webkit-input-$1")+Pe.replace(x,"::-moz-$1")+Pe.replace(x,":-ms-input-$1")+Pe}F=0}}return Wt+Pe+ct}function n(T,z,H){var X=z.trim().split(g);z=X;var N=X.length,j=T.length;switch(j){case 0:case 1:var _=0;for(T=j===0?"":T[0]+" ";_<N;++_)z[_]=r(T,z[_],H).trim();break;default:var Q=_=0;for(z=[];_<N;++_)for(var ne=0;ne<j;++ne)z[Q++]=r(T[ne]+" ",X[_],H).trim()}return z}function r(T,z,H){var X=z.charCodeAt(0);switch(33>X&&(X=(z=z.trim()).charCodeAt(0)),X){case 38:return z.replace($,"$1"+T.trim());case 58:return T.trim()+z.replace($,"$1"+T.trim());default:if(0<1*H&&0<z.indexOf("\f"))return z.replace($,(T.charCodeAt(0)===58?"":"$1")+T.trim())}return T+z}function o(T,z,H,X){var N=T+";",j=2*z+3*H+4*X;if(j===944){T=N.indexOf(":",9)+1;var _=N.substring(T,N.length-1).trim();return _=N.substring(0,T).trim()+_+";",K===1||K===2&&i(_,1)?"-webkit-"+_+_:_}if(K===0||K===2&&!i(N,1))return N;switch(j){case 1015:return N.charCodeAt(10)===97?"-webkit-"+N+N:N;case 951:return N.charCodeAt(3)===116?"-webkit-"+N+N:N;case 963:return N.charCodeAt(5)===110?"-webkit-"+N+N:N;case 1009:if(N.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+N+N;case 978:return"-webkit-"+N+"-moz-"+N+N;case 1019:case 983:return"-webkit-"+N+"-moz-"+N+"-ms-"+N+N;case 883:if(N.charCodeAt(8)===45)return"-webkit-"+N+N;if(0<N.indexOf("image-set(",11))return N.replace(k,"$1-webkit-$2")+N;break;case 932:if(N.charCodeAt(4)===45)switch(N.charCodeAt(5)){case 103:return"-webkit-box-"+N.replace("-grow","")+"-webkit-"+N+"-ms-"+N.replace("grow","positive")+N;case 115:return"-webkit-"+N+"-ms-"+N.replace("shrink","negative")+N;case 98:return"-webkit-"+N+"-ms-"+N.replace("basis","preferred-size")+N}return"-webkit-"+N+"-ms-"+N+N;case 964:return"-webkit-"+N+"-ms-flex-"+N+N;case 1023:if(N.charCodeAt(8)!==99)break;return _=N.substring(N.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+_+"-webkit-"+N+"-ms-flex-pack"+_+N;case 1005:return m.test(N)?N.replace(h,":-webkit-")+N.replace(h,":-moz-")+N:N;case 1e3:switch(_=N.substring(13).trim(),z=_.indexOf("-")+1,_.charCodeAt(0)+_.charCodeAt(z)){case 226:_=N.replace(w,"tb");break;case 232:_=N.replace(w,"tb-rl");break;case 220:_=N.replace(w,"lr");break;default:return N}return"-webkit-"+N+"-ms-"+_+N;case 1017:if(N.indexOf("sticky",9)===-1)break;case 975:switch(z=(N=T).length-10,_=(N.charCodeAt(z)===33?N.substring(0,z):N).substring(T.indexOf(":",7)+1).trim(),j=_.charCodeAt(0)+(_.charCodeAt(7)|0)){case 203:if(111>_.charCodeAt(8))break;case 115:N=N.replace(_,"-webkit-"+_)+";"+N;break;case 207:case 102:N=N.replace(_,"-webkit-"+(102<j?"inline-":"")+"box")+";"+N.replace(_,"-webkit-"+_)+";"+N.replace(_,"-ms-"+_+"box")+";"+N}return N+";";case 938:if(N.charCodeAt(5)===45)switch(N.charCodeAt(6)){case 105:return _=N.replace("-items",""),"-webkit-"+N+"-webkit-box-"+_+"-ms-flex-"+_+N;case 115:return"-webkit-"+N+"-ms-flex-item-"+N.replace(y,"")+N;default:return"-webkit-"+N+"-ms-flex-line-pack"+N.replace("align-content","").replace(y,"")+N}break;case 973:case 989:if(N.charCodeAt(3)!==45||N.charCodeAt(4)===122)break;case 931:case 953:if(M.test(T)===!0)return(_=T.substring(T.indexOf(":")+1)).charCodeAt(0)===115?o(T.replace("stretch","fill-available"),z,H,X).replace(":fill-available",":stretch"):N.replace(_,"-webkit-"+_)+N.replace(_,"-moz-"+_.replace("fill-",""))+N;break;case 962:if(N="-webkit-"+N+(N.charCodeAt(5)===102?"-ms-"+N:"")+N,H+X===211&&N.charCodeAt(13)===105&&0<N.indexOf("transform",10))return N.substring(0,N.indexOf(";",27)+1).replace(b,"$1-webkit-$2")+N}return N}function i(T,z){var H=T.indexOf(z===1?":":"{"),X=T.substring(0,z!==3?H:10);return H=T.substring(H+1,T.length-1),J(z!==2?X:X.replace(I,"$1"),H,z)}function a(T,z){var H=o(z,z.charCodeAt(0),z.charCodeAt(1),z.charCodeAt(2));return H!==z+";"?H.replace(V," or ($1)").substring(4):"("+z+")"}function s(T,z,H,X,N,j,_,Q,ne,ee){for(var q=0,he=z,re;q<W;++q)switch(re=P[q].call(d,T,he,H,X,N,j,_,Q,ne,ee)){case void 0:case!1:case!0:case null:break;default:he=re}if(he!==z)return he}function l(T){switch(T){case void 0:case null:W=P.length=0;break;default:if(typeof T=="function")P[W++]=T;else if(typeof T=="object")for(var z=0,H=T.length;z<H;++z)l(T[z]);else G=!!T|0}return l}function c(T){return T=T.prefix,T!==void 0&&(J=null,T?typeof T!="function"?K=1:(K=2,J=T):K=0),c}function d(T,z){var H=T;if(33>H.charCodeAt(0)&&(H=H.trim()),D=H,H=[D],0<W){var X=s(-1,z,H,H,S,R,0,0,0,0);X!==void 0&&typeof X=="string"&&(z=X)}var N=t(L,H,z,0,0);return 0<W&&(X=s(-2,N,H,H,S,R,N.length,0,0,0),X!==void 0&&(N=X)),D="",F=0,R=S=1,N}var f=/^\0+/g,p=/[\0\r\f]/g,h=/: */g,m=/zoo|gra/,b=/([,: ])(transform)/g,g=/,\r+?/g,$=/([\t\r\n ])*\f?&/g,C=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,E=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,A=/\(\s*(.*)\s*\)/g,V=/([\s\S]*?);/g,y=/-self|flex-/g,I=/[^]*?(:[rp][el]a[\w-]+)[^]*/,M=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,R=1,S=1,F=0,K=1,L=[],P=[],W=0,J=null,G=0,D="";return d.use=l,d.set=c,e!==void 0&&c(e),d}var Ow={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Lw(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Vw=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$f=Lw(function(e){return Vw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Dl={exports:{}},Ee={};/** @license React v16.13.1
|
|
56
56
|
* react-is.production.min.js
|
|
57
57
|
*
|
|
58
58
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
59
59
|
*
|
|
60
60
|
* This source code is licensed under the MIT license found in the
|
|
61
61
|
* LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/var xf;function
|
|
62
|
+
*/var xf;function Nw(){if(xf)return Ee;xf=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function x(w){if(typeof w=="object"&&w!==null){var A=w.$$typeof;switch(A){case t:switch(w=w.type,w){case l:case c:case r:case i:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case s:case d:case m:case h:case a:return w;default:return A}}case n:return A}}}function E(w){return x(w)===c}return Ee.AsyncMode=l,Ee.ConcurrentMode=c,Ee.ContextConsumer=s,Ee.ContextProvider=a,Ee.Element=t,Ee.ForwardRef=d,Ee.Fragment=r,Ee.Lazy=m,Ee.Memo=h,Ee.Portal=n,Ee.Profiler=i,Ee.StrictMode=o,Ee.Suspense=f,Ee.isAsyncMode=function(w){return E(w)||x(w)===l},Ee.isConcurrentMode=E,Ee.isContextConsumer=function(w){return x(w)===s},Ee.isContextProvider=function(w){return x(w)===a},Ee.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ee.isForwardRef=function(w){return x(w)===d},Ee.isFragment=function(w){return x(w)===r},Ee.isLazy=function(w){return x(w)===m},Ee.isMemo=function(w){return x(w)===h},Ee.isPortal=function(w){return x(w)===n},Ee.isProfiler=function(w){return x(w)===i},Ee.isStrictMode=function(w){return x(w)===o},Ee.isSuspense=function(w){return x(w)===f},Ee.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===i||w===o||w===f||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===h||w.$$typeof===a||w.$$typeof===s||w.$$typeof===d||w.$$typeof===g||w.$$typeof===$||w.$$typeof===C||w.$$typeof===b)},Ee.typeOf=x,Ee}var De={};/** @license React v16.13.1
|
|
63
63
|
* react-is.development.js
|
|
64
64
|
*
|
|
65
65
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the MIT license found in the
|
|
68
68
|
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/var wf;function
|
|
69
|
+
*/var wf;function _w(){return wf||(wf=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function x(q){return typeof q=="string"||typeof q=="function"||q===r||q===c||q===i||q===o||q===f||q===p||typeof q=="object"&&q!==null&&(q.$$typeof===m||q.$$typeof===h||q.$$typeof===a||q.$$typeof===s||q.$$typeof===d||q.$$typeof===g||q.$$typeof===$||q.$$typeof===C||q.$$typeof===b)}function E(q){if(typeof q=="object"&&q!==null){var he=q.$$typeof;switch(he){case t:var re=q.type;switch(re){case l:case c:case r:case i:case o:case f:return re;default:var ce=re&&re.$$typeof;switch(ce){case s:case d:case m:case h:case a:return ce;default:return he}}case n:return he}}}var w=l,A=c,V=s,y=a,I=t,M=d,k=r,R=m,S=h,F=n,K=i,L=o,P=f,W=!1;function J(q){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(q)||E(q)===l}function G(q){return E(q)===c}function D(q){return E(q)===s}function T(q){return E(q)===a}function z(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function H(q){return E(q)===d}function X(q){return E(q)===r}function N(q){return E(q)===m}function j(q){return E(q)===h}function _(q){return E(q)===n}function Q(q){return E(q)===i}function ne(q){return E(q)===o}function ee(q){return E(q)===f}De.AsyncMode=w,De.ConcurrentMode=A,De.ContextConsumer=V,De.ContextProvider=y,De.Element=I,De.ForwardRef=M,De.Fragment=k,De.Lazy=R,De.Memo=S,De.Portal=F,De.Profiler=K,De.StrictMode=L,De.Suspense=P,De.isAsyncMode=J,De.isConcurrentMode=G,De.isContextConsumer=D,De.isContextProvider=T,De.isElement=z,De.isForwardRef=H,De.isFragment=X,De.isLazy=N,De.isMemo=j,De.isPortal=_,De.isProfiler=Q,De.isStrictMode=ne,De.isSuspense=ee,De.isValidElementType=x,De.typeOf=E}()),De}process.env.NODE_ENV==="production"?Dl.exports=Nw():Dl.exports=_w();var Kw=Dl.exports,Lu=Kw,jw={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},zw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Uw={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},P0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Vu={};Vu[Lu.ForwardRef]=Uw;Vu[Lu.Memo]=P0;function Cf(e){return Lu.isMemo(e)?P0:Vu[e.$$typeof]||jw}var Hw=Object.defineProperty,Gw=Object.getOwnPropertyNames,Ef=Object.getOwnPropertySymbols,Ww=Object.getOwnPropertyDescriptor,Yw=Object.getPrototypeOf,Df=Object.prototype;function S0(e,t,n){if(typeof t!="string"){if(Df){var r=Yw(t);r&&r!==Df&&S0(e,r,n)}var o=Gw(t);Ef&&(o=o.concat(Ef(t)));for(var i=Cf(e),a=Cf(t),s=0;s<o.length;++s){var l=o[s];if(!zw[l]&&!(n&&n[l])&&!(a&&a[l])&&!(i&&i[l])){var c=Ww(t,l);try{Hw(e,l,c)}catch{}}}}return e}var qw=S0;const Zw=Vx(qw);function zt(){return(zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Pf=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},Pl=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!Ou.typeOf(e)},aa=Object.freeze([]),$n=Object.freeze({});function wo(e){return typeof e=="function"}function Sl(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Nu(e){return e&&typeof e.styledComponentId=="string"}var Er=typeof process<"u"&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",_u=typeof window<"u"&&"HTMLElement"in window,Xw=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Jw={},Qw=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
70
70
|
|
|
71
71
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
72
72
|
|
|
@@ -107,12 +107,12 @@ as for instance in your render method then you may be running into this limitati
|
|
|
107
107
|
|
|
108
108
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
109
109
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
110
|
-
`}:{};function
|
|
111
|
-
`;return r},e}(),Ri=new Map,sa=new Map,lo=1,bi=function(e){if(Ri.has(e))return Ri.get(e);for(;sa.has(lo);)lo++;var t=lo++;return process.env.NODE_ENV!=="production"&&((0|t)<0||t>1<<30)&&Br(16,""+t),Ri.set(e,t),sa.set(t,e),t},
|
|
112
|
-
`),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(
|
|
113
|
-
`}}}return i}(this)},e}(),
|
|
110
|
+
`}:{};function eC(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(o){e=e.replace(/%[a-z]/,o)}),e}function Br(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw process.env.NODE_ENV==="production"?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(eC.apply(void 0,[Qw[e]].concat(n)).trim())}var tC=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,o=0;o<n;o++)r+=this.groupSizes[o];return r},t.insertRules=function(n,r){if(n>=this.groupSizes.length){for(var o=this.groupSizes,i=o.length,a=i;n>=a;)(a<<=1)<0&&Br(16,""+n);this.groupSizes=new Uint32Array(a),this.groupSizes.set(o),this.length=a;for(var s=i;s<a;s++)this.groupSizes[s]=0}for(var l=this.indexOfGroup(n+1),c=0,d=r.length;c<d;c++)this.tag.insertRule(l,r[c])&&(this.groupSizes[n]++,l++)},t.clearGroup=function(n){if(n<this.length){var r=this.groupSizes[n],o=this.indexOfGroup(n),i=o+r;this.groupSizes[n]=0;for(var a=o;a<i;a++)this.tag.deleteRule(o)}},t.getGroup=function(n){var r="";if(n>=this.length||this.groupSizes[n]===0)return r;for(var o=this.groupSizes[n],i=this.indexOfGroup(n),a=i+o,s=i;s<a;s++)r+=this.tag.getRule(s)+`/*!sc*/
|
|
111
|
+
`;return r},e}(),Ri=new Map,sa=new Map,lo=1,bi=function(e){if(Ri.has(e))return Ri.get(e);for(;sa.has(lo);)lo++;var t=lo++;return process.env.NODE_ENV!=="production"&&((0|t)<0||t>1<<30)&&Br(16,""+t),Ri.set(e,t),sa.set(t,e),t},nC=function(e){return sa.get(e)},rC=function(e,t){t>=lo&&(lo=t+1),Ri.set(e,t),sa.set(t,e)},oC="style["+Er+'][data-styled-version="5.3.6"]',iC=new RegExp("^"+Er+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),aC=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},sC=function(e,t){for(var n=(t.textContent||"").split(`/*!sc*/
|
|
112
|
+
`),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(iC);if(s){var l=0|parseInt(s[1],10),c=s[2];l!==0&&(rC(c,l),aC(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},lC=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},T0=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(s){for(var l=s.childNodes,c=l.length;c>=0;c--){var d=l[c];if(d&&d.nodeType===1&&d.hasAttribute(Er))return d}}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(Er,"active"),r.setAttribute("data-styled-version","5.3.6");var a=lC();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},uC=function(){function e(n){var r=this.element=T0(n);r.appendChild(document.createTextNode("")),this.sheet=function(o){if(o.sheet)return o.sheet;for(var i=document.styleSheets,a=0,s=i.length;a<s;a++){var l=i[a];if(l.ownerNode===o)return l}Br(17)}(r),this.length=0}var t=e.prototype;return t.insertRule=function(n,r){try{return this.sheet.insertRule(r,n),this.length++,!0}catch{return!1}},t.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},t.getRule=function(n){var r=this.sheet.cssRules[n];return r!==void 0&&typeof r.cssText=="string"?r.cssText:""},e}(),cC=function(){function e(n){var r=this.element=T0(n);this.nodes=r.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(n,r){if(n<=this.length&&n>=0){var o=document.createTextNode(r),i=this.nodes[n];return this.element.insertBefore(o,i||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},e}(),dC=function(){function e(n){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(n,r){return n<=this.length&&(this.rules.splice(n,0,r),this.length++,!0)},t.deleteRule=function(n){this.rules.splice(n,1),this.length--},t.getRule=function(n){return n<this.length?this.rules[n]:""},e}(),Sf=_u,fC={isServer:!_u,useCSSOMInjection:!Xw},la=function(){function e(n,r,o){n===void 0&&(n=$n),r===void 0&&(r={}),this.options=zt({},fC,{},n),this.gs=r,this.names=new Map(o),this.server=!!n.isServer,!this.server&&_u&&Sf&&(Sf=!1,function(i){for(var a=document.querySelectorAll(oC),s=0,l=a.length;s<l;s++){var c=a[s];c&&c.getAttribute(Er)!=="active"&&(sC(i,c),c.parentNode&&c.parentNode.removeChild(c))}}(this))}e.registerId=function(n){return bi(n)};var t=e.prototype;return t.reconstructWithOptions=function(n,r){return r===void 0&&(r=!0),new e(zt({},this.options,{},n),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},t.getTag=function(){return this.tag||(this.tag=(o=(r=this.options).isServer,i=r.useCSSOMInjection,a=r.target,n=o?new dC(a):i?new uC(a):new cC(a),new tC(n)));var n,r,o,i,a},t.hasNameForId=function(n,r){return this.names.has(n)&&this.names.get(n).has(r)},t.registerName=function(n,r){if(bi(n),this.names.has(n))this.names.get(n).add(r);else{var o=new Set;o.add(r),this.names.set(n,o)}},t.insertRules=function(n,r,o){this.registerName(n,r),this.getTag().insertRules(bi(n),o)},t.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},t.clearRules=function(n){this.getTag().clearGroup(bi(n)),this.clearNames(n)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(n){for(var r=n.getTag(),o=r.length,i="",a=0;a<o;a++){var s=nC(a);if(s!==void 0){var l=n.names.get(s),c=r.getGroup(a);if(l&&c&&l.size){var d=Er+".g"+a+'[id="'+s+'"]',f="";l!==void 0&&l.forEach(function(p){p.length>0&&(f+=p+",")}),i+=""+c+d+'{content:"'+f+`"}/*!sc*/
|
|
113
|
+
`}}}return i}(this)},e}(),pC=/(a)(d)/gi,Tf=function(e){return String.fromCharCode(e+(e>25?39:97))};function Tl(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Tf(t%52)+n;return(Tf(t%52)+n).replace(pC,"$1-$2")}var In=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},A0=function(e){return In(5381,e)};function k0(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(wo(n)&&!Nu(n))return!1}return!0}var hC=A0("5.3.6"),mC=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&k0(t),this.componentId=n,this.baseHash=In(hC,n),this.baseStyle=r,la.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(t,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(o,this.staticRulesId))i.push(this.staticRulesId);else{var a=Wn(this.rules,t,n,r).join(""),s=Tl(In(this.baseHash,a)>>>0);if(!n.hasNameForId(o,s)){var l=r(a,"."+s,void 0,o);n.insertRules(o,s,l)}i.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,d=In(this.baseHash,r.hash),f="",p=0;p<c;p++){var h=this.rules[p];if(typeof h=="string")f+=h,process.env.NODE_ENV!=="production"&&(d=In(d,h+p));else if(h){var m=Wn(h,t,n,r),b=Array.isArray(m)?m.join(""):m;d=In(d,b+p),f+=b}}if(f){var g=Tl(d>>>0);if(!n.hasNameForId(o,g)){var $=r(f,"."+g,void 0,o);n.insertRules(o,g,$)}i.push(g)}}return i.join(" ")},e}(),bC=/^\s*\/\/.*$/gm,gC=[":","[",".","#"];function vC(e){var t,n,r,o,i=e===void 0?$n:e,a=i.options,s=a===void 0?$n:a,l=i.plugins,c=l===void 0?aa:l,d=new Iw(s),f=[],p=function(b){function g($){if($)try{b($+"}")}catch{}}return function($,C,x,E,w,A,V,y,I,M){switch($){case 1:if(I===0&&C.charCodeAt(0)===64)return b(C+";"),"";break;case 2:if(y===0)return C+"/*|*/";break;case 3:switch(y){case 102:case 112:return b(x[0]+C),"";default:return C+(M===0?"/*|*/":"")}case-2:C.split("/*|*/}").forEach(g)}}}(function(b){f.push(b)}),h=function(b,g,$){return g===0&&gC.indexOf($[n.length])!==-1||$.match(o)?b:"."+t};function m(b,g,$,C){C===void 0&&(C="&");var x=b.replace(bC,""),E=g&&$?$+" "+g+" { "+x+" }":x;return t=C,n=g,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d($||!g?"":g,E)}return d.use([].concat(c,[function(b,g,$){b===2&&$.length&&$[0].lastIndexOf(n)>0&&($[0]=$[0].replace(r,h))},p,function(b){if(b===-2){var g=f;return f=[],g}}])),m.hash=c.length?c.reduce(function(b,g){return g.name||Br(15),In(b,g.name)},5381).toString():"",m}var M0=u.createContext();M0.Consumer;var R0=u.createContext(),yC=(R0.Consumer,new la),Al=vC();function F0(){return u.useContext(M0)||yC}function B0(){return u.useContext(R0)||Al}var I0=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=Al);var a=r.name+i.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,i(r.rules,a,"@keyframes"))},this.toString=function(){return Br(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Al),this.name+t.hash},e}(),$C=/([A-Z])/,xC=/([A-Z])/g,wC=/^ms-/,CC=function(e){return"-"+e.toLowerCase()};function Af(e){return $C.test(e)?e.replace(xC,CC).replace(wC,"-ms-"):e}var kf=function(e){return e==null||e===!1||e===""};function Wn(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)(o=Wn(e[a],t,n,r))!==""&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}if(kf(e))return"";if(Nu(e))return"."+e.styledComponentId;if(wo(e)){if(typeof(c=e)!="function"||c.prototype&&c.prototype.isReactComponent||!t)return e;var l=e(t);return process.env.NODE_ENV!=="production"&&Ou.isElement(l)&&console.warn(Sl(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Wn(l,t,n,r)}var c;return e instanceof I0?n?(e.inject(n,r),e.getName(r)):e:Pl(e)?function d(f,p){var h,m,b=[];for(var g in f)f.hasOwnProperty(g)&&!kf(f[g])&&(Array.isArray(f[g])&&f[g].isCss||wo(f[g])?b.push(Af(g)+":",f[g],";"):Pl(f[g])?b.push.apply(b,d(f[g],g)):b.push(Af(g)+": "+(h=g,(m=f[g])==null||typeof m=="boolean"||m===""?"":typeof m!="number"||m===0||h in Ow?String(m).trim():m+"px")+";"));return p?[p+" {"].concat(b,["}"]):b}(e):e.toString()}var Mf=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Pt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return wo(e)||Pl(e)?Mf(Wn(Pf(aa,[e].concat(n)))):n.length===0&&e.length===1&&typeof e[0]=="string"?e:Mf(Wn(Pf(e,n)))}var Rf=/invalid hook call/i,gi=new Set,O0=function(e,t){if(process.env.NODE_ENV!=="production"){var n="The component "+e+(t?' with the id of "'+t+'"':"")+` has been created dynamically.
|
|
114
114
|
You may see this warning because you've called styled inside another component.
|
|
115
|
-
To resolve this only create new StyledComponents outside of any render method and function component.`,r=console.error;try{var o=!0;console.error=function(i){if(Rf.test(i))o=!1,
|
|
115
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,r=console.error;try{var o=!0;console.error=function(i){if(Rf.test(i))o=!1,gi.delete(n);else{for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];r.apply(void 0,[i].concat(s))}},u.useRef(),o&&!gi.has(n)&&(console.warn(n),gi.add(n))}catch(i){Rf.test(i.message)&&gi.delete(n)}finally{console.error=r}}},L0=function(e,t,n){return n===void 0&&(n=$n),e.theme!==n.theme&&e.theme||t||n.theme},EC=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,DC=/(^-|-$)/g;function ks(e){return e.replace(EC,"-").replace(DC,"")}var Ku=function(e){return Tl(A0(e)>>>0)};function vi(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var kl=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},PC=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function SC(e,t,n){var r=e[n];kl(t)&&kl(r)?V0(r,t):e[n]=t}function V0(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(kl(a))for(var s in a)PC(s)&&SC(e,a[s],s)}return e}var ju=u.createContext();ju.Consumer;var Ms={};function N0(e,t,n){var r=Nu(e),o=!vi(e),i=t.attrs,a=i===void 0?aa:i,s=t.componentId,l=s===void 0?function(C,x){var E=typeof C!="string"?"sc":ks(C);Ms[E]=(Ms[E]||0)+1;var w=E+"-"+Ku("5.3.6"+E+Ms[E]);return x?x+"-"+w:w}(t.displayName,t.parentComponentId):s,c=t.displayName,d=c===void 0?function(C){return vi(C)?"styled."+C:"Styled("+Sl(C)+")"}(e):c,f=t.displayName&&t.componentId?ks(t.displayName)+"-"+t.componentId:t.componentId||l,p=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,h=t.shouldForwardProp;r&&e.shouldForwardProp&&(h=t.shouldForwardProp?function(C,x,E){return e.shouldForwardProp(C,x,E)&&t.shouldForwardProp(C,x,E)}:e.shouldForwardProp);var m,b=new mC(n,f,r?e.componentStyle:void 0),g=b.isStatic&&a.length===0,$=function(C,x){return function(E,w,A,V){var y=E.attrs,I=E.componentStyle,M=E.defaultProps,k=E.foldedComponentIds,R=E.shouldForwardProp,S=E.styledComponentId,F=E.target;process.env.NODE_ENV!=="production"&&u.useDebugValue(S);var K=function(X,N,j){X===void 0&&(X=$n);var _=zt({},N,{theme:X}),Q={};return j.forEach(function(ne){var ee,q,he,re=ne;for(ee in wo(re)&&(re=re(_)),re)_[ee]=Q[ee]=ee==="className"?(q=Q[ee],he=re[ee],q&&he?q+" "+he:q||he):re[ee]}),[_,Q]}(L0(w,u.useContext(ju),M)||$n,w,y),L=K[0],P=K[1],W=function(X,N,j,_){var Q=F0(),ne=B0(),ee=N?X.generateAndInjectStyles($n,Q,ne):X.generateAndInjectStyles(j,Q,ne);return process.env.NODE_ENV!=="production"&&u.useDebugValue(ee),process.env.NODE_ENV!=="production"&&!N&&_&&_(ee),ee}(I,V,L,process.env.NODE_ENV!=="production"?E.warnTooManyClasses:void 0),J=A,G=P.$as||w.$as||P.as||w.as||F,D=vi(G),T=P!==w?zt({},w,{},P):w,z={};for(var H in T)H[0]!=="$"&&H!=="as"&&(H==="forwardedAs"?z.as=T[H]:(R?R(H,$f,G):!D||$f(H))&&(z[H]=T[H]));return w.style&&P.style!==w.style&&(z.style=zt({},w.style,{},P.style)),z.className=Array.prototype.concat(k,S,W!==S?W:null,w.className,P.className).filter(Boolean).join(" "),z.ref=J,u.createElement(G,z)}(m,C,x,g)};return $.displayName=d,(m=u.forwardRef($)).attrs=p,m.componentStyle=b,m.displayName=d,m.shouldForwardProp=h,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):aa,m.styledComponentId=f,m.target=r?e.target:e,m.withComponent=function(C){var x=t.componentId,E=function(A,V){if(A==null)return{};var y,I,M={},k=Object.keys(A);for(I=0;I<k.length;I++)y=k[I],V.indexOf(y)>=0||(M[y]=A[y]);return M}(t,["componentId"]),w=x&&x+"-"+(vi(C)?C:ks(Sl(C)));return N0(C,zt({},E,{attrs:p,componentId:w}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=r?V0({},e.defaultProps,C):C}}),process.env.NODE_ENV!=="production"&&(O0(d,f),m.warnTooManyClasses=function(C,x){var E={},w=!1;return function(A){if(!w&&(E[A]=!0,Object.keys(E).length>=200)){var V=x?' with the id of "'+x+'"':"";console.warn("Over 200 classes were generated for component "+C+V+`.
|
|
116
116
|
Consider using the attrs method, together with a style object for frequently changed styles.
|
|
117
117
|
Example:
|
|
118
118
|
const Component = styled.div.attrs(props => ({
|
|
@@ -121,11 +121,11 @@ Example:
|
|
|
121
121
|
},
|
|
122
122
|
}))\`width: 100%;\`
|
|
123
123
|
|
|
124
|
-
<Component />`),w=!0,E={}}}}(d,f)),m.toString=function(){return"."+m.styledComponentId},o&&
|
|
124
|
+
<Component />`),w=!0,E={}}}}(d,f)),m.toString=function(){return"."+m.styledComponentId},o&&Zw(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var Ml=function(e){return function t(n,r,o){if(o===void 0&&(o=$n),!Ou.isValidElementType(r))return Br(1,String(r));var i=function(){return n(r,o,Pt.apply(void 0,arguments))};return i.withConfig=function(a){return t(n,r,zt({},o,{},a))},i.attrs=function(a){return t(n,r,zt({},o,{attrs:Array.prototype.concat(o.attrs,a).filter(Boolean)}))},i}(N0,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Ml[e]=Ml(e)});var TC=function(){function e(n,r){this.rules=n,this.componentId=r,this.isStatic=k0(n),la.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(n,r,o,i){var a=i(Wn(this.rules,r,o,i).join(""),""),s=this.componentId+n;o.insertRules(s,s,a)},t.removeStyles=function(n,r){r.clearRules(this.componentId+n)},t.renderStyles=function(n,r,o,i){n>2&&la.registerId(this.componentId+n),this.removeStyles(n,o),this.createStyles(n,r,o,i)},e}();function _0(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Pt.apply(void 0,[e].concat(n)),i="sc-global-"+Ku(JSON.stringify(o)),a=new TC(o,i);function s(c){var d=F0(),f=B0(),p=u.useContext(ju),h=u.useRef(d.allocateGSInstance(i)).current;return process.env.NODE_ENV!=="production"&&u.Children.count(c.children)&&console.warn("The global style component "+i+" was given child JSX. createGlobalStyle does not render children."),process.env.NODE_ENV!=="production"&&o.some(function(m){return typeof m=="string"&&m.indexOf("@import")!==-1})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),d.server&&l(h,c,d,p,f),u.useLayoutEffect(function(){if(!d.server)return l(h,c,d,p,f),function(){return a.removeStyles(h,d)}},[h,c,d,p,f]),null}function l(c,d,f,p,h){if(a.isStatic)a.renderStyles(c,Jw,f,h);else{var m=zt({},d,{theme:L0(d,p,s.defaultProps)});a.renderStyles(c,m,f,h)}}return process.env.NODE_ENV!=="production"&&O0(i),u.memo(s)}function rt(e){process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Pt.apply(void 0,[e].concat(n)).join(""),i=Ku(o);return new I0(i,o)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
125
125
|
Perhaps you're looking to import 'styled-components/native'?
|
|
126
126
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,window["__styled-components-init__"]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
127
127
|
|
|
128
|
-
See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);const
|
|
128
|
+
See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);const Z=Ml,AC=Z.div`
|
|
129
129
|
z-index: 1;
|
|
130
130
|
|
|
131
131
|
&:not(:first-child) {
|
|
@@ -137,7 +137,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
137
137
|
transform: ${({isInGroup:e,isGrid:t})=>!t&&e?"translateY(-0.8rem)":"none"};
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
`,
|
|
140
|
+
`,kC=Z(E0)`
|
|
141
141
|
background: ${({theme:e})=>{var t,n;return(n=(t=e.colors)==null?void 0:t.slate)==null?void 0:n[100]}};
|
|
142
142
|
display: flex;
|
|
143
143
|
align-items: center;
|
|
@@ -184,12 +184,12 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
184
184
|
overflow: hidden;
|
|
185
185
|
text-align: center;
|
|
186
186
|
}
|
|
187
|
-
`;function
|
|
187
|
+
`;function MC({icon:e,...t}){const n=$h();return O.jsx(AC,{isInGroup:!!n,isGrid:!!(n!=null&&n.isGrid),children:O.jsx(kC,{...t,icon:e||O.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M20 21C20 19.6044 20 18.9067 19.8278 18.3389C19.44 17.0605 18.4395 16.06 17.1611 15.6722C16.5933 15.5 15.8956 15.5 14.5 15.5H9.5C8.10444 15.5 7.40665 15.5 6.83886 15.6722C5.56045 16.06 4.56004 17.0605 4.17224 18.3389C4 18.9067 4 19.6044 4 21M16.5 7.5C16.5 9.98528 14.4853 12 12 12C9.51472 12 7.5 9.98528 7.5 7.5C7.5 5.01472 9.51472 3 12 3C14.4853 3 16.5 5.01472 16.5 7.5Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}const RC=Z(Rw)`
|
|
188
188
|
display: ${({isGrid:e})=>e?"inline-grid":"flex"};
|
|
189
189
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
190
190
|
align-items: center;
|
|
191
191
|
gap: ${({isGrid:e})=>e?"0.75rem":"0"};
|
|
192
|
-
`;function kC({children:e,isGrid:t,renderCount:n}){return O.jsx(AC,{isGrid:t,max:0,renderCount:n??(()=>{}),children:e})}const _0=u.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ma=u.createContext({}),Ra=u.createContext(null),Fa=typeof document<"u",zu=Fa?u.useLayoutEffect:u.useEffect,K0=u.createContext({strict:!1}),Uu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),MC="framerAppearId",j0="data-"+Uu(MC),z0={skipAnimations:!1,useManualTiming:!1};class Ff{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function RC(e){let t=new Ff,n=new Ff,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,c=!1,d=!1)=>{const f=d&&o,p=f?t:n;return c&&a.add(l),p.add(l)&&f&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let c=0;c<r;c++){const d=t.order[c];a.has(d)&&(s.schedule(d),e()),d(l)}o=!1,i&&(i=!1,s.process(l))}};return s}const yi=["prepare","read","update","preRender","render","postRender"],FC=40;function U0(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=yi.reduce((f,p)=>(f[p]=RC(()=>n=!0),f),{}),a=f=>{i[f].process(o)},s=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,FC),1),o.timestamp=f,o.isProcessing=!0,yi.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:yi.reduce((f,p)=>{const h=i[p];return f[p]=(m,b=!1,v=!1)=>(n||l(),h.schedule(m,b,v)),f},{}),cancel:f=>yi.forEach(p=>i[p].cancel(f)),state:o,steps:i}}const{schedule:Hu,cancel:xM}=U0(queueMicrotask,!1);function BC(e,t,n,r){const{visualElement:o}=u.useContext(Ma),i=u.useContext(K0),a=u.useContext(Ra),s=u.useContext(_0).reducedMotion,l=u.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const c=l.current;u.useInsertionEffect(()=>{c&&c.update(n,a)});const d=u.useRef(!!(n[j0]&&!window.HandoffComplete));return zu(()=>{c&&(Hu.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())}),u.useEffect(()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),c}function mr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function IC(e,t,n){return u.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):mr(n)&&(n.current=r))},[t])}function Co(e){return typeof e=="string"||Array.isArray(e)}function Ba(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Gu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wu=["initial",...Gu];function Ia(e){return Ba(e.animate)||Wu.some(t=>Co(e[t]))}function H0(e){return!!(Ia(e)||e.variants)}function OC(e,t){if(Ia(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Co(n)?n:void 0,animate:Co(r)?r:void 0}}return e.inherit!==!1?t:{}}function LC(e){const{initial:t,animate:n}=OC(e,u.useContext(Ma));return u.useMemo(()=>({initial:t,animate:n}),[Bf(t),Bf(n)])}function Bf(e){return Array.isArray(e)?e.join(" "):e}const If={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Eo={};for(const e in If)Eo[e]={isEnabled:t=>If[e].some(n=>!!t[n])};function VC(e){for(const t in e)Eo[t]={...Eo[t],...e[t]}}const Yu=u.createContext({}),G0=u.createContext({}),NC=Symbol.for("motionComponentSymbol");function _C({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&VC(e);function i(s,l){let c;const d={...u.useContext(_0),...s,layoutId:KC(s)},{isStatic:f}=d,p=LC(s),h=r(s,f);if(!f&&Fa){p.visualElement=BC(o,h,d,t);const m=u.useContext(G0),b=u.useContext(K0).strict;p.visualElement&&(c=p.visualElement.loadFeatures(d,b,e,m))}return We.createElement(Ma.Provider,{value:p},c&&p.visualElement?We.createElement(c,{visualElement:p.visualElement,...d}):null,n(o,s,IC(h,p.visualElement,l),h,f,p.visualElement))}const a=u.forwardRef(i);return a[NC]=o,a}function KC({layoutId:e}){const t=u.useContext(Yu).id;return t&&e!==void 0?t+"-"+e:e}function jC(e){function t(r,o={}){return _C(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const zC=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function qu(e){return typeof e!="string"||e.includes("-")?!1:!!(zC.indexOf(e)>-1||/[A-Z]/.test(e))}const ua={};function UC(e){Object.assign(ua,e)}const Bo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xn=new Set(Bo);function W0(e,{layout:t,layoutId:n}){return Xn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ua[e]||e==="opacity")}const ht=e=>!!(e&&e.getVelocity),HC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GC=Bo.length;function WC(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<GC;a++){const s=Bo[a];if(e[s]!==void 0){const l=HC[s]||s;i+=`${l}(${e[s]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const Y0=e=>t=>typeof t=="string"&&t.startsWith(e),q0=Y0("--"),YC=Y0("var(--"),ca=e=>YC(e)&&qC.test(e),qC=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,ZC=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Dn=(e,t,n)=>n>t?t:n<e?e:n,Ir={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},uo={...Ir,transform:e=>Dn(0,1,e)},$i={...Ir,default:1},co=e=>Math.round(e*1e5)/1e5,Zu=/(-)?([\d]*\.?[\d])+/g,XC=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,JC=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Io(e){return typeof e=="string"}const Oo=e=>({test:t=>Io(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),mn=Oo("deg"),Ut=Oo("%"),ue=Oo("px"),QC=Oo("vh"),eE=Oo("vw"),Of={...Ut,parse:e=>Ut.parse(e)/100,transform:e=>Ut.transform(e*100)},Lf={...Ir,transform:Math.round},Z0={borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,radius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,size:ue,top:ue,right:ue,bottom:ue,left:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,rotate:mn,rotateX:mn,rotateY:mn,rotateZ:mn,scale:$i,scaleX:$i,scaleY:$i,scaleZ:$i,skew:mn,skewX:mn,skewY:mn,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:uo,originX:Of,originY:Of,originZ:ue,zIndex:Lf,fillOpacity:uo,strokeOpacity:uo,numOctaves:Lf};function Xu(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,d=!0;for(const f in t){const p=t[f];if(q0(f)){i[f]=p;continue}const h=Z0[f],m=ZC(p,h);if(Xn.has(f)){if(l=!0,a[f]=m,!d)continue;p!==(h.default||0)&&(d=!1)}else f.startsWith("origin")?(c=!0,s[f]=m):o[f]=m}if(t.transform||(l||r?o.transform=WC(e.transform,n,d,r):o.transform&&(o.transform="none")),c){const{originX:f="50%",originY:p="50%",originZ:h=0}=s;o.transformOrigin=`${f} ${p} ${h}`}}const Ju=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function X0(e,t,n){for(const r in t)!ht(t[r])&&!W0(r,n)&&(e[r]=t[r])}function tE({transformTemplate:e},t,n){return u.useMemo(()=>{const r=Ju();return Xu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function nE(e,t,n){const r=e.style||{},o={};return X0(o,r,e),Object.assign(o,tE(e,t,n)),o}function rE(e,t,n){const r={},o=nE(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const oE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function da(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||oE.has(e)}let J0=e=>!da(e);function iE(e){e&&(J0=t=>t.startsWith("on")?!da(t):e(t))}try{iE(require("@emotion/is-prop-valid").default)}catch{}function aE(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(J0(o)||n===!0&&da(o)||!t&&!da(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Vf(e,t,n){return typeof e=="string"?e:ue.transform(t+n*e)}function sE(e,t,n){const r=Vf(t,e.x,e.width),o=Vf(n,e.y,e.height);return`${r} ${o}`}const lE={offset:"stroke-dashoffset",array:"stroke-dasharray"},uE={offset:"strokeDashoffset",array:"strokeDasharray"};function cE(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?lE:uE;e[i.offset]=ue.transform(-r);const a=ue.transform(t),s=ue.transform(n);e[i.array]=`${a} ${s}`}function Qu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},d,f,p){if(Xu(e,c,d,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:b}=e;h.transform&&(b&&(m.transform=h.transform),delete h.transform),b&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=sE(b,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),a!==void 0&&cE(h,a,s,l,!1)}const Q0=()=>({...Ju(),attrs:{}}),ec=e=>typeof e=="string"&&e.toLowerCase()==="svg";function dE(e,t,n,r){const o=u.useMemo(()=>{const i=Q0();return Qu(i,t,{enableHardwareAcceleration:!1},ec(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};X0(i,e.style,e),o.style={...i,...o.style}}return o}function fE(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(qu(n)?dE:rE)(r,i,a,n),c=aE(r,typeof n=="string",e),d=n!==u.Fragment?{...c,...l,ref:o}:{},{children:f}=r,p=u.useMemo(()=>ht(f)?f.get():f,[f]);return u.createElement(n,{...d,children:p})}}function eb(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const tb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function nb(e,t,n,r){eb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(tb.has(o)?o:Uu(o),t.attrs[o])}function tc(e,t){const{style:n}=e,r={};for(const o in n)(ht(n[o])||t.style&&ht(t.style[o])||W0(o,e))&&(r[o]=n[o]);return r}function rb(e,t){const n=tc(e,t);for(const r in e)if(ht(e[r])||ht(t[r])){const o=Bo.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function nc(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function ob(e){const t=u.useRef(null);return t.current===null&&(t.current=e()),t.current}const fa=e=>Array.isArray(e),pE=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),hE=e=>fa(e)?e[e.length-1]||0:e;function Fi(e){const t=ht(e)?e.get():e;return pE(t)?t.toValue():t}function mE({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:bE(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const ib=e=>(t,n)=>{const r=u.useContext(Ma),o=u.useContext(Ra),i=()=>mE(e,t,r,o);return n?i():ob(i)};function bE(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=Fi(i[p]);let{initial:a,animate:s}=e;const l=Ia(e),c=H0(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?s:a;return f&&typeof f!="boolean"&&!Ba(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const m=nc(e,h);if(!m)return;const{transitionEnd:b,transition:v,...$}=m;for(const C in $){let x=$[C];if(Array.isArray(x)){const E=d?x.length-1:0;x=x[E]}x!==null&&(o[C]=x)}for(const C in b)o[C]=b[C]}),o}const ze=e=>e,{schedule:Ie,cancel:un,state:tt,steps:Rs}=U0(typeof requestAnimationFrame<"u"?requestAnimationFrame:ze,!0),vE={useVisualState:ib({scrapeMotionValuesFromProps:rb,createRenderState:Q0,onMount:(e,t,{renderState:n,latestValues:r})=>{Ie.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ie.render(()=>{Qu(n,r,{enableHardwareAcceleration:!1},ec(t.tagName),e.transformTemplate),nb(t,n)})}})},gE={useVisualState:ib({scrapeMotionValuesFromProps:tc,createRenderState:Ju})};function yE(e,{forwardMotionProps:t=!1},n,r){return{...qu(e)?vE:gE,preloadedFeatures:n,useRender:fE(t),createVisualElement:r,Component:e}}function tn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const ab=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Oa(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const $E=e=>t=>ab(t)&&e(t,Oa(t));function rn(e,t,n,r){return tn(e,t,$E(n),r)}const xE=(e,t)=>n=>t(e(n)),on=(...e)=>e.reduce(xE);function sb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Nf=sb("dragHorizontal"),_f=sb("dragVertical");function lb(e){let t=!1;if(e==="y")t=_f();else if(e==="x")t=Nf();else{const n=Nf(),r=_f();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ub(){const e=lb(!0);return e?(e(),!1):!0}class Sn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Kf(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.pointerType==="touch"||ub())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&Ie.update(()=>s[r](i,a))};return rn(e.current,n,o,{passive:!e.getProps()[r]})}class wE extends Sn{mount(){this.unmount=on(Kf(this.node,!0),Kf(this.node,!1))}unmount(){}}class CE extends Sn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=on(tn(this.node.current,"focus",()=>this.onFocus()),tn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const cb=(e,t)=>t?e===t?!0:cb(e,t.parentElement):!1;function Fs(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Oa(n))}class EE extends Sn{constructor(){super(...arguments),this.removeStartListeners=ze,this.removeEndListeners=ze,this.removeAccessibleListeners=ze,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=rn(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:d,globalTapTarget:f}=this.node.getProps();Ie.update(()=>{!f&&!cb(this.node.current,s.target)?d&&d(s,l):c&&c(s,l)})},{passive:!(r.onTap||r.onPointerUp)}),a=rn(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=on(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||Fs("up",(l,c)=>{const{onTap:d}=this.node.getProps();d&&Ie.update(()=>d(l,c))})};this.removeEndListeners(),this.removeEndListeners=tn(this.node.current,"keyup",a),Fs("down",(s,l)=>{this.startPress(s,l)})},n=tn(this.node.current,"keydown",t),r=()=>{this.isPressing&&Fs("cancel",(i,a)=>this.cancelPress(i,a))},o=tn(this.node.current,"blur",r);this.removeAccessibleListeners=on(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ie.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ub()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ie.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=rn(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=tn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=on(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Rl=new WeakMap,Bs=new WeakMap,DE=e=>{const t=Rl.get(e.target);t&&t(e)},PE=e=>{e.forEach(DE)};function SE({root:e,...t}){const n=e||document;Bs.has(n)||Bs.set(n,{});const r=Bs.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(PE,{root:e,...t})),r[o]}function TE(e,t,n){const r=SE(t);return Rl.set(e,n),r.observe(e),()=>{Rl.delete(e),r.unobserve(e)}}const AE={some:0,all:1};class kE extends Sn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:AE[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=c?d:f;p&&p(l)};return TE(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ME(t,n))&&this.startObserver()}unmount(){}}function ME({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const RE={inView:{Feature:kE},tap:{Feature:EE},focus:{Feature:CE},hover:{Feature:wE}};function db(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function FE(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function BE(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function La(e,t,n){const r=e.getProps();return nc(r,t,n!==void 0?n:r.custom,FE(e),BE(e))}let Lo=ze,kt=ze;process.env.NODE_ENV!=="production"&&(Lo=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},kt=(e,t)=>{if(!e)throw new Error(t)});const xn=e=>e*1e3,an=e=>e/1e3,IE={current:!1},fb=e=>Array.isArray(e)&&typeof e[0]=="number";function pb(e){return!!(!e||typeof e=="string"&&hb[e]||fb(e)||Array.isArray(e)&&e.every(pb))}const oo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:oo([0,.65,.55,1]),circOut:oo([.55,0,1,.45]),backIn:oo([.31,.01,.66,-.59]),backOut:oo([.33,1.53,.69,.99])};function mb(e){if(e)return fb(e)?oo(e):Array.isArray(e)?e.map(mb):hb[e]}function OE(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=mb(s);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function LE(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const bb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,VE=1e-7,NE=12;function _E(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=bb(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>VE&&++s<NE);return a}function Vo(e,t,n,r){if(e===t&&n===r)return ze;const o=i=>_E(i,0,1,e,n);return i=>i===0||i===1?i:bb(o(i),t,r)}const KE=Vo(.42,0,1,1),jE=Vo(0,0,.58,1),vb=Vo(.42,0,.58,1),zE=e=>Array.isArray(e)&&typeof e[0]!="number",gb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yb=e=>t=>1-e(1-t),rc=e=>1-Math.sin(Math.acos(e)),$b=yb(rc),UE=gb(rc),xb=Vo(.33,1.53,.69,.99),oc=yb(xb),HE=gb(oc),GE=e=>(e*=2)<1?.5*oc(e):.5*(2-Math.pow(2,-10*(e-1))),jf={linear:ze,easeIn:KE,easeInOut:vb,easeOut:jE,circIn:rc,circInOut:UE,circOut:$b,backIn:oc,backInOut:HE,backOut:xb,anticipate:GE},zf=e=>{if(Array.isArray(e)){kt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Vo(t,n,r,o)}else if(typeof e=="string")return kt(jf[e]!==void 0,`Invalid easing type '${e}'`),jf[e];return e},Do=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ve=(e,t,n)=>e+(t-e)*n;function Is(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function WE({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=Is(l,s,e+1/3),i=Is(l,s,e),a=Is(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const ic=(e,t)=>n=>!!(Io(n)&&JC.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),wb=(e,t,n)=>r=>{if(!Io(r))return r;const[o,i,a,s]=r.match(Zu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},YE=e=>Dn(0,255,e),Os={...Ir,transform:e=>Math.round(YE(e))},_n={test:ic("rgb","red"),parse:wb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Os.transform(e)+", "+Os.transform(t)+", "+Os.transform(n)+", "+co(uo.transform(r))+")"};function qE(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Fl={test:ic("#"),parse:qE,transform:_n.transform},br={test:ic("hsl","hue"),parse:wb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ut.transform(co(t))+", "+Ut.transform(co(n))+", "+co(uo.transform(r))+")"},Ls=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},ZE=[Fl,_n,br],XE=e=>ZE.find(t=>t.test(e));function Uf(e){const t=XE(e);kt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===br&&(n=WE(n)),n}const Hf=(e,t)=>{const n=Uf(e),r=Uf(t),o={...n};return i=>(o.red=Ls(n.red,r.red,i),o.green=Ls(n.green,r.green,i),o.blue=Ls(n.blue,r.blue,i),o.alpha=Ve(n.alpha,r.alpha,i),_n.transform(o))},ot={test:e=>_n.test(e)||Fl.test(e)||br.test(e),parse:e=>_n.test(e)?_n.parse(e):br.test(e)?br.parse(e):Fl.parse(e),transform:e=>Io(e)?e:e.hasOwnProperty("red")?_n.transform(e):br.transform(e)};function JE(e){var t,n;return isNaN(e)&&Io(e)&&(((t=e.match(Zu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(XC))===null||n===void 0?void 0:n.length)||0)>0}const Cb="number",Eb="color",QE="var",e6="var(",Gf="${}",Wf=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function pa(e){const t=e.toString(),n=t.match(Wf)||[],r=[],o={color:[],number:[],var:[]},i=[];for(let l=0;l<n.length;l++){const c=n[l];ot.test(c)?(o.color.push(l),i.push(Eb),r.push(ot.parse(c))):c.startsWith(e6)?(o.var.push(l),i.push(QE),r.push(c)):(o.number.push(l),i.push(Cb),r.push(parseFloat(c)))}const s=t.replace(Wf,Gf).split(Gf);return{values:r,split:s,indexes:o,types:i}}function Db(e){return pa(e).values}function Pb(e){const{split:t,types:n}=pa(e),r=t.length;return o=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],o[a]!==void 0){const s=n[a];s===Cb?i+=co(o[a]):s===Eb?i+=ot.transform(o[a]):i+=o[a]}return i}}const t6=e=>typeof e=="number"?0:e;function n6(e){const t=Db(e);return Pb(e)(t.map(t6))}const Pn={test:JE,parse:Db,createTransformer:Pb,getAnimatableNone:n6};function Bl(e,t){return n=>n>0?t:e}function r6(e,t){return n=>Ve(e,t,n)}function ac(e){return typeof e=="number"?r6:typeof e=="string"?ca(e)?Bl:ot.test(e)?Hf:a6:Array.isArray(e)?Sb:typeof e=="object"?ot.test(e)?Hf:o6:Bl}function Sb(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>ac(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function o6(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=ac(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function i6(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=(n=e.values[s])!==null&&n!==void 0?n:0;r[i]=l,o[a]++}return r}const a6=(e,t)=>{const n=Pn.createTransformer(t),r=pa(e),o=pa(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?on(Sb(i6(r,o),o.values),n):(Lo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Bl(e,t))};function Tb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ve(e,t,n):ac(e)(e,t)}function s6(e,t,n){const r=[],o=n||Tb,i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ze:t;s=on(l,s)}r.push(s)}return r}function l6(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(kt(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=s6(t,r,o),s=a.length,l=c=>{let d=0;if(s>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=Do(e[d],e[d+1],c);return a[d](f)};return n?c=>l(Dn(e[0],e[i-1],c)):l}function u6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Do(0,t,r);e.push(Ve(n,1,o))}}function c6(e){const t=[0];return u6(t,e.length-1),t}function d6(e,t){return e.map(n=>n*t)}function f6(e,t){return e.map(()=>t||vb).splice(0,e.length-1)}function ha({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=zE(r)?r.map(zf):zf(r),i={done:!1,value:t[0]},a=d6(n&&n.length===t.length?n:c6(t),e),s=l6(a,t,{ease:Array.isArray(o)?o:f6(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function Ab(e,t){return t?e*(1e3/t):0}const p6=5;function kb(e,t,n){const r=Math.max(t-p6,0);return Ab(n-e(r),t-r)}const Vs=.001,h6=.01,Yf=10,m6=.05,b6=1;function v6({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Lo(e<=xn(Yf),"Spring duration must be 10 seconds or less");let a=1-t;a=Dn(m6,b6,a),e=Dn(h6,Yf,an(e)),a<1?(o=c=>{const d=c*a,f=d*e,p=d-n,h=Il(c,a),m=Math.exp(-f);return Vs-p/h*m},i=c=>{const f=c*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(c,2)*e,m=Math.exp(-f),b=Il(Math.pow(c,2),a);return(-o(c)+Vs>0?-1:1)*((p-h)*m)/b}):(o=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Vs+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const s=5/e,l=y6(o,i,s);if(e=xn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const g6=12;function y6(e,t,n){let r=n;for(let o=1;o<g6;o++)r=r-e(r)/t(r);return r}function Il(e,t){return e*Math.sqrt(1-t*t)}const $6=["duration","bounce"],x6=["stiffness","damping","mass"];function qf(e,t){return t.some(n=>e[n]!==void 0)}function w6(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!qf(e,x6)&&qf(e,$6)){const n=v6(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Mb({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=w6({...r,velocity:-an(r.velocity||0)}),h=f||0,m=l/(2*Math.sqrt(s*c)),b=i-o,v=an(Math.sqrt(s/c)),$=Math.abs(b)<5;n||(n=$?.01:2),t||(t=$?.005:.5);let C;if(m<1){const x=Il(v,m);C=E=>{const w=Math.exp(-m*v*E);return i-w*((h+m*v*b)/x*Math.sin(x*E)+b*Math.cos(x*E))}}else if(m===1)C=x=>i-Math.exp(-v*x)*(b+(h+v*b)*x);else{const x=v*Math.sqrt(m*m-1);C=E=>{const w=Math.exp(-m*v*E),A=Math.min(x*E,300);return i-w*((h+m*v*b)*Math.sinh(A)+x*b*Math.cosh(A))/x}}return{calculatedDuration:p&&d||null,next:x=>{const E=C(x);if(p)a.done=x>=d;else{let w=h;x!==0&&(m<1?w=kb(C,x,E):w=0);const A=Math.abs(w)<=n,V=Math.abs(i-E)<=t;a.done=A&&V}return a.value=a.done?i:E,a}}}function Zf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=y=>s!==void 0&&y<s||l!==void 0&&y>l,m=y=>s===void 0?l:l===void 0||Math.abs(s-y)<Math.abs(l-y)?s:l;let b=n*t;const v=f+b,$=a===void 0?v:a(v);$!==v&&(b=$-f);const C=y=>-b*Math.exp(-y/r),x=y=>$+C(y),E=y=>{const I=C(y),M=x(y);p.done=Math.abs(I)<=c,p.value=p.done?$:M};let w,A;const V=y=>{h(p.value)&&(w=y,A=Mb({keyframes:[p.value,m(p.value)],velocity:kb(x,y,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return V(0),{calculatedDuration:null,next:y=>{let I=!1;return!A&&w===void 0&&(I=!0,E(y),V(y)),w!==void 0&&y>w?A.next(y-w):(!I&&E(y),p)}}}let Bi;function C6(){Bi=void 0}const Kn={now:()=>(Bi===void 0&&Kn.set(tt.isProcessing||z0.useManualTiming?tt.timestamp:performance.now()),Bi),set:e=>{Bi=e,queueMicrotask(C6)}},E6=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ie.update(t,!0),stop:()=>un(t),now:()=>tt.isProcessing?tt.timestamp:Kn.now()}},Xf=2e4;function Jf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Xf;)t+=n,r=e.next(t);return t>=Xf?1/0:t}const D6={decay:Zf,inertia:Zf,tween:ha,keyframes:ha,spring:Mb},P6=e=>e/100;function ma({autoplay:e=!0,delay:t=0,driver:n=E6,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:d,onUpdate:f,...p}){let h=1,m=!1,b,v;const $=()=>{v=new Promise(D=>{b=D})};$();let C;const x=D6[o]||ha;let E;x!==ha&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&kt(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),E=on(P6,Tb(r[0],r[1])),r=[0,100]);const w=x({...p,keyframes:r});let A;s==="mirror"&&(A=x({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let V="idle",y=null,I=null,M=null;w.calculatedDuration===null&&i&&(w.calculatedDuration=Jf(w));const{calculatedDuration:k}=w;let R=1/0,S=1/0;k!==null&&(R=k+a,S=R*(i+1)-a);let F=0;const K=D=>{if(I===null)return;h>0&&(I=Math.min(I,D)),h<0&&(I=Math.min(D-S/h,I)),y!==null?F=y:F=Math.round(D-I)*h;const T=F-t*(h>=0?1:-1),z=h>=0?T<0:T>S;F=Math.max(T,0),V==="finished"&&y===null&&(F=S);let H=F,Z=w;if(i){const Q=Math.min(F,S)/R;let ne=Math.floor(Q),ee=Q%1;!ee&&Q>=1&&(ee=1),ee===1&&ne--,ne=Math.min(ne,i+1),!!(ne%2)&&(s==="reverse"?(ee=1-ee,a&&(ee-=a/R)):s==="mirror"&&(Z=A)),H=Dn(0,1,ee)*R}const N=z?{done:!1,value:r[0]}:Z.next(H);E&&(N.value=E(N.value));let{done:j}=N;!z&&k!==null&&(j=h>=0?F>=S:F<=0);const _=y===null&&(V==="finished"||V==="running"&&j);return f&&f(N.value),_&&W(),N},L=()=>{C&&C.stop(),C=void 0},P=()=>{V="idle",L(),b(),$(),I=M=null},W=()=>{V="finished",d&&d(),L(),b()},J=()=>{if(m)return;C||(C=n(K));const D=C.now();l&&l(),y!==null?I=D-y:(!I||V==="finished")&&(I=D),V==="finished"&&$(),M=I,y=null,V="running",C.start()};e&&J();const G={then(D,T){return v.then(D,T)},get time(){return an(F)},set time(D){D=xn(D),F=D,y!==null||!C||h===0?y=D:I=C.now()-D/h},get duration(){const D=w.calculatedDuration===null?Jf(w):w.calculatedDuration;return an(D)},get speed(){return h},set speed(D){D===h||!C||(h=D,G.time=an(F))},get state(){return V},play:J,pause:()=>{V="paused",y=F},stop:()=>{m=!0,V!=="idle"&&(V="idle",c&&c(),P())},cancel:()=>{M!==null&&K(M),P()},complete:()=>{V="finished"},sample:D=>(I=0,K(D))};return G}function S6(e){let t;return()=>(t===void 0&&(t=e()),t)}const T6=S6(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),A6=new Set(["opacity","clipPath","filter","transform"]),xi=10,k6=2e4,M6=(e,t)=>t.type==="spring"||e==="backgroundColor"||!pb(t.ease);function R6(e,t,{onUpdate:n,onComplete:r,...o}){if(!(T6()&&A6.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l,c=!1;const d=()=>{l=new Promise(x=>{s=x})};d();let{keyframes:f,duration:p=300,ease:h,times:m}=o;if(M6(t,o)){const x=ma({...o,repeat:0,delay:0});let E={done:!1,value:f[0]};const w=[];let A=0;for(;!E.done&&A<k6;)E=x.sample(A),w.push(E.value),A+=xi;m=void 0,f=w,p=A-xi,h="linear"}const b=OE(e.owner.current,t,f,{...o,duration:p,ease:h,times:m}),v=()=>{c=!1,b.cancel()},$=()=>{c=!0,Ie.update(v),s(),d()};return b.onfinish=()=>{c||(e.set(LE(f,o)),r&&r(),$())},{then(x,E){return l.then(x,E)},attachTimeline(x){return b.timeline=x,b.onfinish=null,ze},get time(){return an(b.currentTime||0)},set time(x){b.currentTime=xn(x)},get speed(){return b.playbackRate},set speed(x){b.playbackRate=x},get duration(){return an(p)},play:()=>{a||(b.play(),un(v))},pause:()=>b.pause(),stop:()=>{if(a=!0,b.playState==="idle")return;const{currentTime:x}=b;if(x){const E=ma({...o,autoplay:!1});e.setWithVelocity(E.sample(x-xi).value,E.sample(x).value,xi)}$()},complete:()=>{c||b.finish()},cancel:$}}function F6({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ze,pause:ze,stop:ze,then:i=>(i(),Promise.resolve()),cancel:ze,complete:ze});return t?ma({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const B6={type:"spring",stiffness:500,damping:25,restSpeed:10},I6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),O6={type:"keyframes",duration:.8},L6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V6=(e,{keyframes:t})=>t.length>2?O6:Xn.has(e)?e.startsWith("scale")?I6(t[1]):B6:L6,Ol=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Pn.test(t)||t==="0")&&!t.startsWith("url(")),N6=new Set(["brightness","contrast","saturate","opacity"]);function _6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Zu)||[];if(!r)return e;const o=n.replace(r,"");let i=N6.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const K6=/([a-z-]*)\(.*?\)/g,Ll={...Pn,getAnimatableNone:e=>{const t=e.match(K6);return t?t.map(_6).join(" "):e}},j6={...Z0,color:ot,backgroundColor:ot,outlineColor:ot,fill:ot,stroke:ot,borderColor:ot,borderTopColor:ot,borderRightColor:ot,borderBottomColor:ot,borderLeftColor:ot,filter:Ll,WebkitFilter:Ll},sc=e=>j6[e];function Rb(e,t){let n=sc(e);return n!==Ll&&(n=Pn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Fb=e=>/^0[^.\s]+$/.test(e);function z6(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Fb(e)}function U6(e,t,n,r){const o=Ol(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const a=r.from!==void 0?r.from:e.get();let s;const l=[];for(let c=0;c<i.length;c++)i[c]===null&&(i[c]=c===0?a:i[c-1]),z6(i[c])&&l.push(c),typeof i[c]=="string"&&i[c]!=="none"&&i[c]!=="0"&&(s=i[c]);if(o&&l.length&&s)for(let c=0;c<l.length;c++){const d=l[c];i[d]=Rb(t,s)}return i}function H6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...d}){return!!Object.keys(d).length}function lc(e,t){return e[t]||e.default||e}const uc=(e,t,n,r={})=>o=>{const i=lc(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s=s-xn(a);const l=U6(t,e,n,i),c=l[0],d=l[l.length-1],f=Ol(e,c),p=Ol(e,d);Lo(f===p,`You are trying to animate ${e} from "${c}" to "${d}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${d} via the \`style\` property.`);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:m=>{t.set(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(H6(i)||(h={...h,...V6(e,h)}),h.duration&&(h.duration=xn(h.duration)),h.repeatDelay&&(h.repeatDelay=xn(h.repeatDelay)),!f||!p||IE.current||i.type===!1||z0.skipAnimations)return F6(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=R6(t,e,h);if(m)return m}return ma(h)};function ba(e){return!!(ht(e)&&e.add)}const Bb=e=>/^\-?\d*\.?\d+$/.test(e);function cc(e,t){e.indexOf(t)===-1&&e.push(t)}function dc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class fc{constructor(){this.subscriptions=[]}add(t){return cc(this.subscriptions,t),()=>dc(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Qf=new Set;function pc(e,t,n){e||Qf.has(t)||(console.warn(t),n&&console.warn(n),Qf.add(t))}const ep=30,G6=e=>!isNaN(parseFloat(e));class W6{constructor(t,n={}){this.version="11.0.6",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Kn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=G6(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Kn.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&pc(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new fc);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ie.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Kn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ep)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ep);return Ab(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Dr(e,t){return new W6(e,t)}const Ib=e=>t=>t.test(e),Y6={test:e=>e==="auto",parse:e=>e},Ob=[Ir,ue,Ut,mn,eE,QC,Y6],qr=e=>Ob.find(Ib(e)),q6=[...Ob,ot,Pn],Z6=e=>q6.find(Ib(e));function X6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dr(n))}function J6(e,t){const n=La(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i){const s=hE(i[a]);X6(e,a,s)}}function Q6(e,t,n){var r,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;s<a;s++){const l=i[s],c=t[l];let d=null;Array.isArray(c)&&(d=c[0]),d===null&&(d=(o=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&o!==void 0?o:t[l]),d!=null&&(typeof d=="string"&&(Bb(d)||Fb(d))?d=parseFloat(d):!Z6(d)&&Pn.test(c)&&(d=Rb(l,c)),e.addValue(l,Dr(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function e7(e,t){return t?(t[e]||t.default||t).from:void 0}function t7(e,t,n){const r={};for(const o in e){const i=e7(o,t);if(i!==void 0)r[o]=i;else{const a=n.getValue(o);a&&(r[o]=a.get())}}return r}function n7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function r7(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Lb(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in s){const p=e.getValue(f),h=s[f];if(!p||h===void 0||d&&n7(d,f))continue;const m={delay:n,elapsed:0,...lc(i||{},f)};if(window.HandoffAppearAnimations){const $=e.getProps()[j0];if($){const C=window.HandoffAppearAnimations($,f,p,Ie);C!==null&&(m.elapsed=C,m.isHandoff=!0)}}let b=!m.isHandoff&&!r7(p,h);if(m.type==="spring"&&(p.getVelocity()||m.velocity)&&(b=!1),p.animation&&(b=!1),b)continue;p.start(uc(f,p,h,e.shouldReduceMotion&&Xn.has(f)?{type:!1}:m));const v=p.animation;ba(l)&&(l.add(f),v.then(()=>l.remove(f))),c.push(v)}return a&&Promise.all(c).then(()=>{a&&J6(e,a)}),c}function Vl(e,t,n={}){const r=La(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Lb(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return o7(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,c]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>c())}else return Promise.all([i(),a(n.delay)])}function o7(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(i7).forEach((c,d)=>{c.notify("AnimationStart",t),a.push(Vl(c,t,{...i,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function i7(e,t){return e.sortNodePosition(t)}function a7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Vl(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Vl(e,t,n);else{const o=typeof t=="function"?La(e,t,n.custom):t;r=Promise.all(Lb(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const s7=[...Gu].reverse(),l7=Gu.length;function u7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>a7(e,n,r)))}function c7(e){let t=u7(e);const n=f7();let r=!0;const o=(l,c)=>{const d=La(e,c);if(d){const{transition:f,transitionEnd:p,...h}=d;l={...l,...h,...p}}return l};function i(l){t=l(e)}function a(l,c){const d=e.getProps(),f=e.getVariantContext(!0)||{},p=[],h=new Set;let m={},b=1/0;for(let $=0;$<l7;$++){const C=s7[$],x=n[C],E=d[C]!==void 0?d[C]:f[C],w=Co(E),A=C===c?x.isActive:null;A===!1&&(b=$);let V=E===f[C]&&E!==d[C]&&w;if(V&&r&&e.manuallyAnimateOnMount&&(V=!1),x.protectedKeys={...m},!x.isActive&&A===null||!E&&!x.prevProp||Ba(E)||typeof E=="boolean")continue;let I=d7(x.prevProp,E)||C===c&&x.isActive&&!V&&w||$>b&&w,M=!1;const k=Array.isArray(E)?E:[E];let R=k.reduce(o,{});A===!1&&(R={});const{prevResolvedValues:S={}}=x,F={...S,...R},K=L=>{I=!0,h.has(L)&&(M=!0,h.delete(L)),x.needsAnimating[L]=!0};for(const L in F){const P=R[L],W=S[L];if(m.hasOwnProperty(L))continue;let J=!1;fa(P)&&fa(W)?J=!db(P,W):J=P!==W,J?P!==void 0?K(L):h.add(L):P!==void 0&&h.has(L)?K(L):x.protectedKeys[L]=!0}x.prevProp=E,x.prevResolvedValues=R,x.isActive&&(m={...m,...R}),r&&e.blockInitialAnimation&&(I=!1),I&&(!V||M)&&p.push(...k.map(L=>({animation:L,options:{type:C,...l}})))}if(h.size){const $={};h.forEach(C=>{const x=e.getBaseTarget(C);x!==void 0&&($[C]=x)}),p.push({animation:$})}let v=!!p.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(p):Promise.resolve()}function s(l,c,d){var f;if(n[l].isActive===c)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var m;return(m=h.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const p=a(d,l);for(const h in n)n[h].protectedKeys={};return p}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n}}function d7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!db(t,e):!1}function Tn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function f7(){return{animate:Tn(!0),whileInView:Tn(),whileHover:Tn(),whileTap:Tn(),whileDrag:Tn(),whileFocus:Tn(),exit:Tn()}}class p7 extends Sn{constructor(t){super(t),t.animationState||(t.animationState=c7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ba(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let h7=0;class m7 extends Sn{constructor(){super(...arguments),this.id=h7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const b7={animation:{Feature:p7},exit:{Feature:m7}},tp=(e,t)=>Math.abs(e-t);function v7(e,t){const n=tp(e.x,t.x),r=tp(e.y,t.y);return Math.sqrt(n**2+r**2)}class Vb{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=_s(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=v7(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:m}=f,{timestamp:b}=tt;this.history.push({...m,timestamp:b});const{onStart:v,onMove:$}=this.handlers;p||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ns(p,this.transformPagePoint),Ie.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:m,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=_s(f.type==="pointercancel"?this.lastMoveEventInfo:Ns(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,v),m&&m(f,v)},!ab(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=Oa(t),s=Ns(a,this.transformPagePoint),{point:l}=s,{timestamp:c}=tt;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,_s(s,this.history)),this.removeListeners=on(rn(this.contextWindow,"pointermove",this.handlePointerMove),rn(this.contextWindow,"pointerup",this.handlePointerUp),rn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),un(this.updatePoint)}}function Ns(e,t){return t?{point:t(e.point)}:e}function np(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _s({point:e},t){return{point:e,delta:np(e,Nb(t)),offset:np(e,g7(t)),velocity:y7(t,.1)}}function g7(e){return e[0]}function Nb(e){return e[e.length-1]}function y7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Nb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>xn(t)));)n--;if(!r)return{x:0,y:0};const i=an(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function gt(e){return e.max-e.min}function Nl(e,t=0,n=.01){return Math.abs(e-t)<=n}function rp(e,t,n,r=.5){e.origin=r,e.originPoint=Ve(t.min,t.max,e.origin),e.scale=gt(n)/gt(t),(Nl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ve(n.min,n.max,e.origin)-e.originPoint,(Nl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function fo(e,t,n,r){rp(e.x,t.x,n.x,r?r.originX:void 0),rp(e.y,t.y,n.y,r?r.originY:void 0)}function op(e,t,n){e.min=n.min+t.min,e.max=e.min+gt(t)}function $7(e,t,n){op(e.x,t.x,n.x),op(e.y,t.y,n.y)}function ip(e,t,n){e.min=t.min-n.min,e.max=e.min+gt(t)}function po(e,t,n){ip(e.x,t.x,n.x),ip(e.y,t.y,n.y)}function x7(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ve(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ve(n,e,r.max):Math.min(e,n)),e}function ap(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function w7(e,{top:t,left:n,bottom:r,right:o}){return{x:ap(e.x,n,o),y:ap(e.y,t,r)}}function sp(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function C7(e,t){return{x:sp(e.x,t.x),y:sp(e.y,t.y)}}function E7(e,t){let n=.5;const r=gt(e),o=gt(t);return o>r?n=Do(t.min,t.max-r,e.min):r>o&&(n=Do(e.min,e.max-o,t.min)),Dn(0,1,n)}function D7(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const _l=.35;function P7(e=_l){return e===!1?e=0:e===!0&&(e=_l),{x:lp(e,"left","right"),y:lp(e,"top","bottom")}}function lp(e,t,n){return{min:up(e,t),max:up(e,n)}}function up(e,t){return typeof e=="number"?e:e[t]||0}const cp=()=>({translate:0,scale:1,origin:0,originPoint:0}),vr=()=>({x:cp(),y:cp()}),dp=()=>({min:0,max:0}),je=()=>({x:dp(),y:dp()});function wt(e){return[e("x"),e("y")]}function _b({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function S7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function T7(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ks(e){return e===void 0||e===1}function Kl({scale:e,scaleX:t,scaleY:n}){return!Ks(e)||!Ks(t)||!Ks(n)}function Mn(e){return Kl(e)||Kb(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Kb(e){return fp(e.x)||fp(e.y)}function fp(e){return e&&e!=="0%"}function va(e,t,n){const r=e-n,o=t*r;return n+o}function pp(e,t,n,r,o){return o!==void 0&&(e=va(e,o,r)),va(e,n,r)+t}function jl(e,t=0,n=1,r,o){e.min=pp(e.min,t,n,r,o),e.max=pp(e.max,t,n,r,o)}function jb(e,{x:t,y:n}){jl(e.x,t.translate,t.scale,t.originPoint),jl(e.y,n.translate,n.scale,n.originPoint)}function A7(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const l=i.instance;l&&l.style&&l.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&gr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,jb(e,a)),r&&Mn(i.latestValues)&&gr(e,i.latestValues))}t.x=hp(t.x),t.y=hp(t.y)}function hp(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function vn(e,t){e.min=e.min+t,e.max=e.max+t}function mp(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Ve(e.min,e.max,i);jl(e,t[n],t[r],a,t.scale)}const k7=["x","scaleX","originX"],M7=["y","scaleY","originY"];function gr(e,t){mp(e.x,t,k7),mp(e.y,t,M7)}function zb(e,t){return _b(T7(e.getBoundingClientRect(),t))}function R7(e,t,n){const r=zb(e,n),{scroll:o}=t;return o&&(vn(r.x,o.offset.x),vn(r.y,o.offset.y)),r}const Ub=({current:e})=>e?e.ownerDocument.defaultView:null,F7=new WeakMap;class B7{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=je(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Oa(d,"page").point)},i=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:m}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=lb(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wt(v=>{let $=this.getAxisMotionValue(v).get()||0;if(Ut.test($)){const{projection:C}=this.visualElement;if(C&&C.layout){const x=C.layout.layoutBox[v];x&&($=gt(x)*(parseFloat($)/100))}}this.originPoint[v]=$}),m&&Ie.update(()=>m(d,f),!1,!0);const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:m,onDrag:b}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:v}=f;if(h&&this.currentDirection===null){this.currentDirection=I7(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),b&&b(d,f)},s=(d,f)=>this.stop(d,f),l=()=>wt(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Vb(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Ub(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Ie.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!wi(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=x7(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&mr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=w7(o.layoutBox,n):this.constraints=!1,this.elastic=P7(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&wt(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=D7(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!mr(t))return!1;const r=t.current;kt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=R7(r,o.root,this.visualElement.getTransformPagePoint());let a=C7(o.layout.layoutBox,i);if(n){const s=n(S7(a));this.hasMutatedConstraints=!!s,s&&(a=_b(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=wt(d=>{if(!wi(d,n,this.currentDirection))return;let f=l&&l[d]||{};a&&(f={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,m={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,m)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(uc(t,r,0,n))}stopAnimation(){wt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){wt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){wt(n=>{const{drag:r}=this.getProps();if(!wi(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-Ve(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!mr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};wt(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=E7({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),wt(a=>{if(!wi(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(Ve(l,c,o[a]))})}addListeners(){if(!this.visualElement.current)return;F7.set(this.visualElement,this);const t=this.visualElement.current,n=rn(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();mr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=tn(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(wt(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=_l,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function wi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function I7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class O7 extends Sn{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new B7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ze}unmount(){this.removeGroupControls(),this.removeListeners()}}const bp=e=>(t,n)=>{e&&Ie.update(()=>e(t,n))};class L7 extends Sn{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new Vb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ub(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:bp(t),onStart:bp(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&Ie.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=rn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function V7(){const e=u.useContext(Ra);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=u.useId();return u.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Ii={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vp(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Zr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ue.test(e))e=parseFloat(e);else return e;const n=vp(e,t.target.x),r=vp(e,t.target.y);return`${n}% ${r}%`}},N7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Pn.parse(e);if(o.length>5)return r;const i=Pn.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=Ve(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=c),typeof o[3+a]=="number"&&(o[3+a]/=c),i(o)}};class _7 extends u.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;UC(K7),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ii.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Ie.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Hu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Hb(e){const[t,n]=V7(),r=u.useContext(Yu);return u.createElement(_7,{...e,layoutGroup:r,switchLayoutGroup:u.useContext(G0),isPresent:t,safeToRemove:n})}const K7={borderRadius:{...Zr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zr,borderTopRightRadius:Zr,borderBottomLeftRadius:Zr,borderBottomRightRadius:Zr,boxShadow:N7},Gb=["TopLeft","TopRight","BottomLeft","BottomRight"],j7=Gb.length,gp=e=>typeof e=="string"?parseFloat(e):e,yp=e=>typeof e=="number"||ue.test(e);function z7(e,t,n,r,o,i){o?(e.opacity=Ve(0,n.opacity!==void 0?n.opacity:1,U7(r)),e.opacityExit=Ve(t.opacity!==void 0?t.opacity:1,0,H7(r))):i&&(e.opacity=Ve(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<j7;a++){const s=`border${Gb[a]}Radius`;let l=$p(t,s),c=$p(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||yp(l)===yp(c)?(e[s]=Math.max(Ve(gp(l),gp(c),r),0),(Ut.test(c)||Ut.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=Ve(t.rotate||0,n.rotate||0,r))}function $p(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const U7=Wb(0,.5,$b),H7=Wb(.5,.95,ze);function Wb(e,t,n){return r=>r<e?0:r>t?1:n(Do(e,t,r))}function xp(e,t){e.min=t.min,e.max=t.max}function $t(e,t){xp(e.x,t.x),xp(e.y,t.y)}function wp(e,t,n,r,o){return e-=t,e=va(e,1/n,r),o!==void 0&&(e=va(e,1/o,r)),e}function G7(e,t=0,n=1,r=.5,o,i=e,a=e){if(Ut.test(t)&&(t=parseFloat(t),t=Ve(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Ve(i.min,i.max,r);e===i&&(s-=t),e.min=wp(e.min,t,n,s,o),e.max=wp(e.max,t,n,s,o)}function Cp(e,t,[n,r,o],i,a){G7(e,t[n],t[r],t[o],t.scale,i,a)}const W7=["x","scaleX","originX"],Y7=["y","scaleY","originY"];function Ep(e,t,n,r){Cp(e.x,t,W7,n?n.x:void 0,r?r.x:void 0),Cp(e.y,t,Y7,n?n.y:void 0,r?r.y:void 0)}function Dp(e){return e.translate===0&&e.scale===1}function Yb(e){return Dp(e.x)&&Dp(e.y)}function q7(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function qb(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Pp(e){return gt(e.x)/gt(e.y)}class Z7{constructor(){this.members=[]}add(t){cc(this.members,t),t.scheduleRender()}remove(t){if(dc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Sp(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),d&&(r+=`rotateY(${d}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(r+=`scale(${a}, ${s})`),r||"none"}const X7=(e,t)=>e.depth-t.depth;class J7{constructor(){this.children=[],this.isDirty=!1}add(t){cc(this.children,t),this.isDirty=!0}remove(t){dc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(X7),this.isDirty=!1,this.children.forEach(t)}}function Q7(e,t){const n=Kn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(un(r),e(i-t))};return Ie.read(r,!0),()=>un(r)}function eD(e){window.MotionDebug&&window.MotionDebug.record(e)}function tD(e){return e instanceof SVGElement&&e.tagName!=="svg"}function nD(e,t,n){const r=ht(e)?e:Dr(e);return r.start(uc("",r,t,n)),r.animation}const Tp=["","X","Y","Z"],rD={visibility:"hidden"},Ap=1e3;let oD=0;const Rn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Zb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=oD++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Rn.totalNodes=Rn.resolvedTargetDeltas=Rn.recalculatedProjection=0,this.nodes.forEach(sD),this.nodes.forEach(fD),this.nodes.forEach(pD),this.nodes.forEach(lD),eD(Rn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new J7)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new fc),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=tD(a),this.instance=a;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||l)&&(this.isLayoutDirty=!0),e){let f;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Q7(p,250),Ii.hasAnimatedSinceResize&&(Ii.hasAnimatedSinceResize=!1,this.nodes.forEach(Mp))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||gD,{onLayoutAnimationStart:v,onLayoutAnimationComplete:$}=d.getProps(),C=!this.targetLayout||!qb(this.targetLayout,m)||h,x=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);const E={...lc(b,"layout"),onPlay:v,onComplete:$};(d.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||Mp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,un(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(hD),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(kp);return}this.isUpdating||this.nodes.forEach(cD),this.isUpdating=!1,this.nodes.forEach(dD),this.nodes.forEach(iD),this.nodes.forEach(aD),this.clearAllSnapshots();const s=Kn.now();tt.delta=Dn(0,1e3/60,s-tt.timestamp),tt.timestamp=s,tt.isProcessing=!0,Rs.update.process(tt),Rs.preRender.process(tt),Rs.render.process(tt),tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hu.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(uD),this.sharedNodes.forEach(mD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ie.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ie.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=je(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!Yb(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;a&&(s||Mn(this.latestValues)||d)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),yD(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return je();const s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(vn(s.x,l.offset.x),vn(s.y,l.offset.y)),s}removeElementScroll(a){const s=je();$t(s,a);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:f}=c;if(c!==this.root&&d&&f.layoutScroll){if(d.isRoot){$t(s,a);const{scroll:p}=this.root;p&&(vn(s.x,-p.offset.x),vn(s.y,-p.offset.y))}vn(s.x,d.offset.x),vn(s.y,d.offset.y)}}return s}applyTransform(a,s=!1){const l=je();$t(l,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&gr(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Mn(d.latestValues)&&gr(l,d.latestValues)}return Mn(this.latestValues)&&gr(l,this.latestValues),l}removeTransform(a){const s=je();$t(s,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Mn(c.latestValues))continue;Kl(c.latestValues)&&c.updateSnapshot();const d=je(),f=c.measurePageBox();$t(d,f),Ep(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return Mn(this.latestValues)&&Ep(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=tt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=je(),this.relativeTargetOrigin=je(),po(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),$t(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=je(),this.targetWithTransforms=je()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$t(this.target,this.layout.layoutBox),jb(this.target,this.targetDelta)):$t(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=je(),this.relativeTargetOrigin=je(),po(this.relativeTargetOrigin,this.target,h.target),$t(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Rn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Kl(this.parent.latestValues)||Kb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===tt.timestamp&&(c=!1),c)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;$t(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;A7(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=je());const{target:m}=s;if(!m){this.projectionTransform&&(this.projectionDelta=vr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=vr(),this.projectionDeltaWithTransform=vr());const b=this.projectionTransform;fo(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Sp(this.projectionDelta,this.treeScale),(this.projectionTransform!==b||this.treeScale.x!==p||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Rn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},f=vr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=je(),h=l?l.source:void 0,m=this.layout?this.layout.source:void 0,b=h!==m,v=this.getStack(),$=!v||v.members.length<=1,C=!!(b&&!$&&this.options.crossfade===!0&&!this.path.some(vD));this.animationProgress=0;let x;this.mixTargetDelta=E=>{const w=E/1e3;Rp(f.x,a.x,w),Rp(f.y,a.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(po(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bD(this.relativeTarget,this.relativeTargetOrigin,p,w),x&&q7(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=je()),$t(x,this.relativeTarget)),b&&(this.animationValues=d,z7(d,c,this.latestValues,w,C,$)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(un(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ie.update(()=>{Ii.hasAnimatedSinceResize=!0,this.currentAnimation=nD(0,Ap,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ap),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:d}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&Xb(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||je();const f=gt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const p=gt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}$t(s,l),gr(s,d),fo(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Z7),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const c={};for(let d=0;d<Tp.length;d++){const f="rotate"+Tp[d];l[f]&&(c[f]=l[f],a.setStaticValue(f,0))}a.render();for(const d in c)a.setStaticValue(d,c[d]);a.scheduleRender()}getProjectionStyles(a){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rD;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Fi(a==null?void 0:a.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Fi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Mn(this.latestValues)&&(b.transform=d?d({},""):"none",this.hasProjected=!1),b}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=Sp(this.projectionDeltaWithTransform,this.treeScale,p),d&&(c.transform=d(p,c.transform));const{x:h,y:m}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in ua){if(p[b]===void 0)continue;const{correct:v,applyTo:$}=ua[b],C=c.transform==="none"?p[b]:v(p[b],f);if($){const x=$.length;for(let E=0;E<x;E++)c[$[E]]=C}else c[b]=C}return this.options.layoutId&&(c.pointerEvents=f===this?Fi(a==null?void 0:a.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(kp),this.root.sharedNodes.clear()}}}function iD(e){e.updateLayout()}function aD(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?wt(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=gt(p);p.min=r[f].min,p.max=p.min+h}):Xb(i,n.layoutBox,r)&&wt(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=gt(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=vr();fo(s,r,n.layoutBox);const l=vr();a?fo(l,e.applyTransform(o,!0),n.measuredBox):fo(l,r,n.layoutBox);const c=!Yb(s);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const m=je();po(m,n.layoutBox,p.layoutBox);const b=je();po(b,r,h.layoutBox),qb(m,b)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function sD(e){Rn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function lD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function uD(e){e.clearSnapshot()}function kp(e){e.clearMeasurements()}function cD(e){e.isLayoutDirty=!1}function dD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Mp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fD(e){e.resolveTargetDelta()}function pD(e){e.calcProjection()}function hD(e){e.resetRotation()}function mD(e){e.removeLeadSnapshot()}function Rp(e,t,n){e.translate=Ve(t.translate,0,n),e.scale=Ve(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fp(e,t,n,r){e.min=Ve(t.min,n.min,r),e.max=Ve(t.max,n.max,r)}function bD(e,t,n,r){Fp(e.x,t.x,n.x,r),Fp(e.y,t.y,n.y,r)}function vD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const gD={duration:.45,ease:[.4,0,.1,1]},Bp=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ip=Bp("applewebkit/")&&!Bp("chrome/")?Math.round:ze;function Op(e){e.min=Ip(e.min),e.max=Ip(e.max)}function yD(e){Op(e.x),Op(e.y)}function Xb(e,t,n){return e==="position"||e==="preserve-aspect"&&!Nl(Pp(t),Pp(n),.2)}const $D=Zb({attachResizeListener:(e,t)=>tn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),js={current:void 0},Jb=Zb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!js.current){const e=new $D({});e.mount(window),e.setOptions({layoutScroll:!0}),js.current=e}return js.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),xD={pan:{Feature:L7},drag:{Feature:O7,ProjectionNode:Jb,MeasureLayout:Hb}},wD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function CD(e){const t=wD.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const ED=4;function zl(e,t,n=1){kt(n<=ED,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=CD(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return Bb(a)?parseFloat(a):a}else return ca(o)?zl(o,t,n+1):o}function DD(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!ca(i))return;const a=zl(i,r);a&&o.set(a)});for(const o in t){const i=t[o];if(!ca(i))continue;const a=zl(i,r);a&&(t[o]=a,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const PD=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Qb=e=>PD.has(e),SD=e=>Object.keys(e).some(Qb),Ci=e=>e===Ir||e===ue,Lp=(e,t)=>parseFloat(e.split(", ")[t]),Vp=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Lp(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Lp(i[1],e):0}},TD=new Set(["x","y","z"]),AD=Bo.filter(e=>!TD.has(e));function kD(e){const t=[];return AD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Pr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Vp(4,13),y:Vp(5,14)};Pr.translateX=Pr.x;Pr.translateY=Pr.y;const MD=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{s[c]=Pr[c](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const d=t.getValue(c);d&&d.jump(s[c]),e[c]=Pr[c](l,i)}),e},RD=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Qb);let i=[],a=!1;const s=[];if(o.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],f=qr(d);const p=t[l];let h;if(fa(p)){const m=p.length,b=p[0]===null?1:0;d=p[b],f=qr(d);for(let v=b;v<m&&p[v]!==null;v++)h?kt(qr(p[v])===h,"All keyframes must be of the same type"):(h=qr(p[v]),kt(h===f||Ci(f)&&Ci(h),"Keyframes must be of the same dimension as the current value"))}else h=qr(p);if(f!==h)if(Ci(f)&&Ci(h)){const m=c.get();typeof m=="string"&&c.set(parseFloat(m)),typeof p=="string"?t[l]=parseFloat(p):Array.isArray(p)&&h===ue&&(t[l]=p.map(parseFloat))}else f!=null&&f.transform&&(h!=null&&h.transform)&&(d===0||p===0)?d===0?c.set(h.transform(d)):t[l]=f.transform(p):(a||(i=kD(e),a=!0),s.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(p))}),s.length){const l=s.indexOf("height")>=0?window.pageYOffset:null,c=MD(t,e,s);return i.length&&i.forEach(([d,f])=>{e.getValue(d).set(f)}),e.render(),Fa&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function FD(e,t,n,r){return SD(t)?RD(e,t,n,r):{target:t,transitionEnd:r}}const BD=(e,t,n,r)=>{const o=DD(e,t,r);return t=o.target,r=o.transitionEnd,FD(e,t,n,r)},Ul={current:null},ev={current:!1};function ID(){if(ev.current=!0,!!Fa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ul.current=e.matches;e.addListener(t),t()}else Ul.current=!1}function OD(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(ht(i))e.addValue(o,i),ba(r)&&r.add(o),process.env.NODE_ENV==="development"&&pc(i.version==="11.0.6",`Attempting to mix Framer Motion versions ${i.version} with 11.0.6 may not work as expected.`);else if(ht(a))e.addValue(o,Dr(i,{owner:e})),ba(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,Dr(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Np=new WeakMap,tv=Object.keys(Eo),LD=tv.length,_p=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],VD=Wu.length;class ND{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ie.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Ia(n),this.isVariantNode=H0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{});for(const f in d){const p=d[f];s[f]!==void 0&&ht(p)&&(p.set(s[f],!1),ba(c)&&c.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Np.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ev.current||ID(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ul.current,process.env.NODE_ENV!=="production"&&pc(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Np.delete(this.current),this.projection&&this.projection.unmount(),un(this.notifyUpdate),un(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Xn.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ie.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,s;if(process.env.NODE_ENV!=="production"&&o&&r){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Lo(!1,l):kt(!1,l)}for(let l=0;l<LD;l++){const c=tv[l],{isEnabled:d,Feature:f,ProjectionNode:p,MeasureLayout:h}=Eo[c];p&&(a=p),d(n)&&(!this.features[c]&&f&&(this.features[c]=new f(this)),h&&(s=h))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:d,dragConstraints:f,layoutScroll:p,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!d||f&&mr(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):je()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<_p.length;r++){const o=_p[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i=t["on"+o];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=OD(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<VD;r++){const o=Wu[r],i=this.props[o];(Co(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Dr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=nc(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ht(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new fc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class nv extends ND{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},o){const i=t7(r,t||{},this);if(o){Q6(this,r,i);const a=BD(this,r,i,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function _D(e){return window.getComputedStyle(e)}class KD extends nv{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Xn.has(n)){const r=sc(n);return r&&r.default||0}else{const r=_D(t),o=(q0(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return zb(t,n)}build(t,n,r,o){Xu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return tc(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ht(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){eb(t,n,r,o)}}class jD extends nv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xn.has(n)){const r=sc(n);return r&&r.default||0}return n=tb.has(n)?n:Uu(n),t.getAttribute(n)}measureInstanceViewportBox(){return je()}scrapeMotionValuesFromProps(t,n){return rb(t,n)}build(t,n,r,o){Qu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){nb(t,n,r,o)}mount(t){this.isSVGTag=ec(t.tagName),super.mount(t)}}const zD=(e,t)=>qu(e)?new jD(t,{enableHardwareAcceleration:!1}):new KD(t,{enableHardwareAcceleration:!0}),UD={layout:{ProjectionNode:Jb,MeasureLayout:Hb}},HD={...b7,...RE,...xD,...UD},Jn=jC((e,t)=>yE(e,t,HD,zD));function rv(){const e=u.useRef(!1);return zu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function GD(){const e=rv(),[t,n]=u.useState(0),r=u.useCallback(()=>{e.current&&n(t+1)},[t]);return[u.useCallback(()=>Ie.postRender(r),[r]),t]}class WD extends We.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function YD({children:e,isPresent:t}){const n=u.useId(),r=u.useRef(null),o=u.useRef({width:0,height:0,top:0,left:0});return u.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!r.current||!i||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
192
|
+
`;function FC({children:e,isGrid:t,renderCount:n}){return O.jsx(RC,{isGrid:t,max:0,renderCount:n??(()=>{}),children:e})}const K0=u.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ma=u.createContext({}),Ra=u.createContext(null),Fa=typeof document<"u",zu=Fa?u.useLayoutEffect:u.useEffect,j0=u.createContext({strict:!1}),Uu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),BC="framerAppearId",z0="data-"+Uu(BC),U0={skipAnimations:!1,useManualTiming:!1};class Ff{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function IC(e){let t=new Ff,n=new Ff,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,c=!1,d=!1)=>{const f=d&&o,p=f?t:n;return c&&a.add(l),p.add(l)&&f&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let c=0;c<r;c++){const d=t.order[c];a.has(d)&&(s.schedule(d),e()),d(l)}o=!1,i&&(i=!1,s.process(l))}};return s}const yi=["prepare","read","update","preRender","render","postRender"],OC=40;function H0(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=yi.reduce((f,p)=>(f[p]=IC(()=>n=!0),f),{}),a=f=>{i[f].process(o)},s=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,OC),1),o.timestamp=f,o.isProcessing=!0,yi.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:yi.reduce((f,p)=>{const h=i[p];return f[p]=(m,b=!1,g=!1)=>(n||l(),h.schedule(m,b,g)),f},{}),cancel:f=>yi.forEach(p=>i[p].cancel(f)),state:o,steps:i}}const{schedule:Hu,cancel:TM}=H0(queueMicrotask,!1);function LC(e,t,n,r){const{visualElement:o}=u.useContext(Ma),i=u.useContext(j0),a=u.useContext(Ra),s=u.useContext(K0).reducedMotion,l=u.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const c=l.current;u.useInsertionEffect(()=>{c&&c.update(n,a)});const d=u.useRef(!!(n[z0]&&!window.HandoffComplete));return zu(()=>{c&&(Hu.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())}),u.useEffect(()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),c}function mr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function VC(e,t,n){return u.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):mr(n)&&(n.current=r))},[t])}function Co(e){return typeof e=="string"||Array.isArray(e)}function Ba(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Gu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wu=["initial",...Gu];function Ia(e){return Ba(e.animate)||Wu.some(t=>Co(e[t]))}function G0(e){return!!(Ia(e)||e.variants)}function NC(e,t){if(Ia(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Co(n)?n:void 0,animate:Co(r)?r:void 0}}return e.inherit!==!1?t:{}}function _C(e){const{initial:t,animate:n}=NC(e,u.useContext(Ma));return u.useMemo(()=>({initial:t,animate:n}),[Bf(t),Bf(n)])}function Bf(e){return Array.isArray(e)?e.join(" "):e}const If={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Eo={};for(const e in If)Eo[e]={isEnabled:t=>If[e].some(n=>!!t[n])};function KC(e){for(const t in e)Eo[t]={...Eo[t],...e[t]}}const Yu=u.createContext({}),W0=u.createContext({}),jC=Symbol.for("motionComponentSymbol");function zC({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&KC(e);function i(s,l){let c;const d={...u.useContext(K0),...s,layoutId:UC(s)},{isStatic:f}=d,p=_C(s),h=r(s,f);if(!f&&Fa){p.visualElement=LC(o,h,d,t);const m=u.useContext(W0),b=u.useContext(j0).strict;p.visualElement&&(c=p.visualElement.loadFeatures(d,b,e,m))}return We.createElement(Ma.Provider,{value:p},c&&p.visualElement?We.createElement(c,{visualElement:p.visualElement,...d}):null,n(o,s,VC(h,p.visualElement,l),h,f,p.visualElement))}const a=u.forwardRef(i);return a[jC]=o,a}function UC({layoutId:e}){const t=u.useContext(Yu).id;return t&&e!==void 0?t+"-"+e:e}function HC(e){function t(r,o={}){return zC(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const GC=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function qu(e){return typeof e!="string"||e.includes("-")?!1:!!(GC.indexOf(e)>-1||/[A-Z]/.test(e))}const ua={};function WC(e){Object.assign(ua,e)}const Bo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xn=new Set(Bo);function Y0(e,{layout:t,layoutId:n}){return Xn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ua[e]||e==="opacity")}const ht=e=>!!(e&&e.getVelocity),YC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qC=Bo.length;function ZC(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<qC;a++){const s=Bo[a];if(e[s]!==void 0){const l=YC[s]||s;i+=`${l}(${e[s]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const q0=e=>t=>typeof t=="string"&&t.startsWith(e),Z0=q0("--"),XC=q0("var(--"),ca=e=>XC(e)&&JC.test(e),JC=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,QC=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Dn=(e,t,n)=>n>t?t:n<e?e:n,Ir={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},uo={...Ir,transform:e=>Dn(0,1,e)},$i={...Ir,default:1},co=e=>Math.round(e*1e5)/1e5,Zu=/(-)?([\d]*\.?[\d])+/g,e6=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,t6=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Io(e){return typeof e=="string"}const Oo=e=>({test:t=>Io(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),mn=Oo("deg"),Ut=Oo("%"),ue=Oo("px"),n6=Oo("vh"),r6=Oo("vw"),Of={...Ut,parse:e=>Ut.parse(e)/100,transform:e=>Ut.transform(e*100)},Lf={...Ir,transform:Math.round},X0={borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,radius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,size:ue,top:ue,right:ue,bottom:ue,left:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,rotate:mn,rotateX:mn,rotateY:mn,rotateZ:mn,scale:$i,scaleX:$i,scaleY:$i,scaleZ:$i,skew:mn,skewX:mn,skewY:mn,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:uo,originX:Of,originY:Of,originZ:ue,zIndex:Lf,fillOpacity:uo,strokeOpacity:uo,numOctaves:Lf};function Xu(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,d=!0;for(const f in t){const p=t[f];if(Z0(f)){i[f]=p;continue}const h=X0[f],m=QC(p,h);if(Xn.has(f)){if(l=!0,a[f]=m,!d)continue;p!==(h.default||0)&&(d=!1)}else f.startsWith("origin")?(c=!0,s[f]=m):o[f]=m}if(t.transform||(l||r?o.transform=ZC(e.transform,n,d,r):o.transform&&(o.transform="none")),c){const{originX:f="50%",originY:p="50%",originZ:h=0}=s;o.transformOrigin=`${f} ${p} ${h}`}}const Ju=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function J0(e,t,n){for(const r in t)!ht(t[r])&&!Y0(r,n)&&(e[r]=t[r])}function o6({transformTemplate:e},t,n){return u.useMemo(()=>{const r=Ju();return Xu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function i6(e,t,n){const r=e.style||{},o={};return J0(o,r,e),Object.assign(o,o6(e,t,n)),o}function a6(e,t,n){const r={},o=i6(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const s6=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function da(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||s6.has(e)}let Q0=e=>!da(e);function l6(e){e&&(Q0=t=>t.startsWith("on")?!da(t):e(t))}try{l6(require("@emotion/is-prop-valid").default)}catch{}function u6(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Q0(o)||n===!0&&da(o)||!t&&!da(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Vf(e,t,n){return typeof e=="string"?e:ue.transform(t+n*e)}function c6(e,t,n){const r=Vf(t,e.x,e.width),o=Vf(n,e.y,e.height);return`${r} ${o}`}const d6={offset:"stroke-dashoffset",array:"stroke-dasharray"},f6={offset:"strokeDashoffset",array:"strokeDasharray"};function p6(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?d6:f6;e[i.offset]=ue.transform(-r);const a=ue.transform(t),s=ue.transform(n);e[i.array]=`${a} ${s}`}function Qu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},d,f,p){if(Xu(e,c,d,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:b}=e;h.transform&&(b&&(m.transform=h.transform),delete h.transform),b&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=c6(b,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),a!==void 0&&p6(h,a,s,l,!1)}const eb=()=>({...Ju(),attrs:{}}),ec=e=>typeof e=="string"&&e.toLowerCase()==="svg";function h6(e,t,n,r){const o=u.useMemo(()=>{const i=eb();return Qu(i,t,{enableHardwareAcceleration:!1},ec(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};J0(i,e.style,e),o.style={...i,...o.style}}return o}function m6(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(qu(n)?h6:a6)(r,i,a,n),c=u6(r,typeof n=="string",e),d=n!==u.Fragment?{...c,...l,ref:o}:{},{children:f}=r,p=u.useMemo(()=>ht(f)?f.get():f,[f]);return u.createElement(n,{...d,children:p})}}function tb(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const nb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function rb(e,t,n,r){tb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(nb.has(o)?o:Uu(o),t.attrs[o])}function tc(e,t){const{style:n}=e,r={};for(const o in n)(ht(n[o])||t.style&&ht(t.style[o])||Y0(o,e))&&(r[o]=n[o]);return r}function ob(e,t){const n=tc(e,t);for(const r in e)if(ht(e[r])||ht(t[r])){const o=Bo.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function nc(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function ib(e){const t=u.useRef(null);return t.current===null&&(t.current=e()),t.current}const fa=e=>Array.isArray(e),b6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),g6=e=>fa(e)?e[e.length-1]||0:e;function Fi(e){const t=ht(e)?e.get():e;return b6(t)?t.toValue():t}function v6({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:y6(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const ab=e=>(t,n)=>{const r=u.useContext(Ma),o=u.useContext(Ra),i=()=>v6(e,t,r,o);return n?i():ib(i)};function y6(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=Fi(i[p]);let{initial:a,animate:s}=e;const l=Ia(e),c=G0(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?s:a;return f&&typeof f!="boolean"&&!Ba(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const m=nc(e,h);if(!m)return;const{transitionEnd:b,transition:g,...$}=m;for(const C in $){let x=$[C];if(Array.isArray(x)){const E=d?x.length-1:0;x=x[E]}x!==null&&(o[C]=x)}for(const C in b)o[C]=b[C]}),o}const ze=e=>e,{schedule:Ie,cancel:un,state:tt,steps:Rs}=H0(typeof requestAnimationFrame<"u"?requestAnimationFrame:ze,!0),$6={useVisualState:ab({scrapeMotionValuesFromProps:ob,createRenderState:eb,onMount:(e,t,{renderState:n,latestValues:r})=>{Ie.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ie.render(()=>{Qu(n,r,{enableHardwareAcceleration:!1},ec(t.tagName),e.transformTemplate),rb(t,n)})}})},x6={useVisualState:ab({scrapeMotionValuesFromProps:tc,createRenderState:Ju})};function w6(e,{forwardMotionProps:t=!1},n,r){return{...qu(e)?$6:x6,preloadedFeatures:n,useRender:m6(t),createVisualElement:r,Component:e}}function tn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const sb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Oa(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const C6=e=>t=>sb(t)&&e(t,Oa(t));function rn(e,t,n,r){return tn(e,t,C6(n),r)}const E6=(e,t)=>n=>t(e(n)),on=(...e)=>e.reduce(E6);function lb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Nf=lb("dragHorizontal"),_f=lb("dragVertical");function ub(e){let t=!1;if(e==="y")t=_f();else if(e==="x")t=Nf();else{const n=Nf(),r=_f();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function cb(){const e=ub(!0);return e?(e(),!1):!0}class Sn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Kf(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.pointerType==="touch"||cb())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&Ie.update(()=>s[r](i,a))};return rn(e.current,n,o,{passive:!e.getProps()[r]})}class D6 extends Sn{mount(){this.unmount=on(Kf(this.node,!0),Kf(this.node,!1))}unmount(){}}class P6 extends Sn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=on(tn(this.node.current,"focus",()=>this.onFocus()),tn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const db=(e,t)=>t?e===t?!0:db(e,t.parentElement):!1;function Fs(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Oa(n))}class S6 extends Sn{constructor(){super(...arguments),this.removeStartListeners=ze,this.removeEndListeners=ze,this.removeAccessibleListeners=ze,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=rn(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:d,globalTapTarget:f}=this.node.getProps();Ie.update(()=>{!f&&!db(this.node.current,s.target)?d&&d(s,l):c&&c(s,l)})},{passive:!(r.onTap||r.onPointerUp)}),a=rn(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=on(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||Fs("up",(l,c)=>{const{onTap:d}=this.node.getProps();d&&Ie.update(()=>d(l,c))})};this.removeEndListeners(),this.removeEndListeners=tn(this.node.current,"keyup",a),Fs("down",(s,l)=>{this.startPress(s,l)})},n=tn(this.node.current,"keydown",t),r=()=>{this.isPressing&&Fs("cancel",(i,a)=>this.cancelPress(i,a))},o=tn(this.node.current,"blur",r);this.removeAccessibleListeners=on(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ie.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!cb()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ie.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=rn(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=tn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=on(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Rl=new WeakMap,Bs=new WeakMap,T6=e=>{const t=Rl.get(e.target);t&&t(e)},A6=e=>{e.forEach(T6)};function k6({root:e,...t}){const n=e||document;Bs.has(n)||Bs.set(n,{});const r=Bs.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(A6,{root:e,...t})),r[o]}function M6(e,t,n){const r=k6(t);return Rl.set(e,n),r.observe(e),()=>{Rl.delete(e),r.unobserve(e)}}const R6={some:0,all:1};class F6 extends Sn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:R6[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=c?d:f;p&&p(l)};return M6(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(B6(t,n))&&this.startObserver()}unmount(){}}function B6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const I6={inView:{Feature:F6},tap:{Feature:S6},focus:{Feature:P6},hover:{Feature:D6}};function fb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function O6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function L6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function La(e,t,n){const r=e.getProps();return nc(r,t,n!==void 0?n:r.custom,O6(e),L6(e))}let Lo=ze,kt=ze;process.env.NODE_ENV!=="production"&&(Lo=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},kt=(e,t)=>{if(!e)throw new Error(t)});const xn=e=>e*1e3,an=e=>e/1e3,V6={current:!1},pb=e=>Array.isArray(e)&&typeof e[0]=="number";function hb(e){return!!(!e||typeof e=="string"&&mb[e]||pb(e)||Array.isArray(e)&&e.every(hb))}const oo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,mb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:oo([0,.65,.55,1]),circOut:oo([.55,0,1,.45]),backIn:oo([.31,.01,.66,-.59]),backOut:oo([.33,1.53,.69,.99])};function bb(e){if(e)return pb(e)?oo(e):Array.isArray(e)?e.map(bb):mb[e]}function N6(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=bb(s);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function _6(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const gb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,K6=1e-7,j6=12;function z6(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=gb(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>K6&&++s<j6);return a}function Vo(e,t,n,r){if(e===t&&n===r)return ze;const o=i=>z6(i,0,1,e,n);return i=>i===0||i===1?i:gb(o(i),t,r)}const U6=Vo(.42,0,1,1),H6=Vo(0,0,.58,1),vb=Vo(.42,0,.58,1),G6=e=>Array.isArray(e)&&typeof e[0]!="number",yb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$b=e=>t=>1-e(1-t),rc=e=>1-Math.sin(Math.acos(e)),xb=$b(rc),W6=yb(rc),wb=Vo(.33,1.53,.69,.99),oc=$b(wb),Y6=yb(oc),q6=e=>(e*=2)<1?.5*oc(e):.5*(2-Math.pow(2,-10*(e-1))),jf={linear:ze,easeIn:U6,easeInOut:vb,easeOut:H6,circIn:rc,circInOut:W6,circOut:xb,backIn:oc,backInOut:Y6,backOut:wb,anticipate:q6},zf=e=>{if(Array.isArray(e)){kt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Vo(t,n,r,o)}else if(typeof e=="string")return kt(jf[e]!==void 0,`Invalid easing type '${e}'`),jf[e];return e},Do=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ve=(e,t,n)=>e+(t-e)*n;function Is(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Z6({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=Is(l,s,e+1/3),i=Is(l,s,e),a=Is(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const ic=(e,t)=>n=>!!(Io(n)&&t6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Cb=(e,t,n)=>r=>{if(!Io(r))return r;const[o,i,a,s]=r.match(Zu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},X6=e=>Dn(0,255,e),Os={...Ir,transform:e=>Math.round(X6(e))},_n={test:ic("rgb","red"),parse:Cb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Os.transform(e)+", "+Os.transform(t)+", "+Os.transform(n)+", "+co(uo.transform(r))+")"};function J6(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Fl={test:ic("#"),parse:J6,transform:_n.transform},br={test:ic("hsl","hue"),parse:Cb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ut.transform(co(t))+", "+Ut.transform(co(n))+", "+co(uo.transform(r))+")"},Ls=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Q6=[Fl,_n,br],e7=e=>Q6.find(t=>t.test(e));function Uf(e){const t=e7(e);kt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===br&&(n=Z6(n)),n}const Hf=(e,t)=>{const n=Uf(e),r=Uf(t),o={...n};return i=>(o.red=Ls(n.red,r.red,i),o.green=Ls(n.green,r.green,i),o.blue=Ls(n.blue,r.blue,i),o.alpha=Ve(n.alpha,r.alpha,i),_n.transform(o))},ot={test:e=>_n.test(e)||Fl.test(e)||br.test(e),parse:e=>_n.test(e)?_n.parse(e):br.test(e)?br.parse(e):Fl.parse(e),transform:e=>Io(e)?e:e.hasOwnProperty("red")?_n.transform(e):br.transform(e)};function t7(e){var t,n;return isNaN(e)&&Io(e)&&(((t=e.match(Zu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(e6))===null||n===void 0?void 0:n.length)||0)>0}const Eb="number",Db="color",n7="var",r7="var(",Gf="${}",Wf=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function pa(e){const t=e.toString(),n=t.match(Wf)||[],r=[],o={color:[],number:[],var:[]},i=[];for(let l=0;l<n.length;l++){const c=n[l];ot.test(c)?(o.color.push(l),i.push(Db),r.push(ot.parse(c))):c.startsWith(r7)?(o.var.push(l),i.push(n7),r.push(c)):(o.number.push(l),i.push(Eb),r.push(parseFloat(c)))}const s=t.replace(Wf,Gf).split(Gf);return{values:r,split:s,indexes:o,types:i}}function Pb(e){return pa(e).values}function Sb(e){const{split:t,types:n}=pa(e),r=t.length;return o=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],o[a]!==void 0){const s=n[a];s===Eb?i+=co(o[a]):s===Db?i+=ot.transform(o[a]):i+=o[a]}return i}}const o7=e=>typeof e=="number"?0:e;function i7(e){const t=Pb(e);return Sb(e)(t.map(o7))}const Pn={test:t7,parse:Pb,createTransformer:Sb,getAnimatableNone:i7};function Bl(e,t){return n=>n>0?t:e}function a7(e,t){return n=>Ve(e,t,n)}function ac(e){return typeof e=="number"?a7:typeof e=="string"?ca(e)?Bl:ot.test(e)?Hf:u7:Array.isArray(e)?Tb:typeof e=="object"?ot.test(e)?Hf:s7:Bl}function Tb(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>ac(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function s7(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=ac(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function l7(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=(n=e.values[s])!==null&&n!==void 0?n:0;r[i]=l,o[a]++}return r}const u7=(e,t)=>{const n=Pn.createTransformer(t),r=pa(e),o=pa(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?on(Tb(l7(r,o),o.values),n):(Lo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Bl(e,t))};function Ab(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ve(e,t,n):ac(e)(e,t)}function c7(e,t,n){const r=[],o=n||Ab,i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ze:t;s=on(l,s)}r.push(s)}return r}function d7(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(kt(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=c7(t,r,o),s=a.length,l=c=>{let d=0;if(s>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=Do(e[d],e[d+1],c);return a[d](f)};return n?c=>l(Dn(e[0],e[i-1],c)):l}function f7(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Do(0,t,r);e.push(Ve(n,1,o))}}function p7(e){const t=[0];return f7(t,e.length-1),t}function h7(e,t){return e.map(n=>n*t)}function m7(e,t){return e.map(()=>t||vb).splice(0,e.length-1)}function ha({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=G6(r)?r.map(zf):zf(r),i={done:!1,value:t[0]},a=h7(n&&n.length===t.length?n:p7(t),e),s=d7(a,t,{ease:Array.isArray(o)?o:m7(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function kb(e,t){return t?e*(1e3/t):0}const b7=5;function Mb(e,t,n){const r=Math.max(t-b7,0);return kb(n-e(r),t-r)}const Vs=.001,g7=.01,Yf=10,v7=.05,y7=1;function $7({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Lo(e<=xn(Yf),"Spring duration must be 10 seconds or less");let a=1-t;a=Dn(v7,y7,a),e=Dn(g7,Yf,an(e)),a<1?(o=c=>{const d=c*a,f=d*e,p=d-n,h=Il(c,a),m=Math.exp(-f);return Vs-p/h*m},i=c=>{const f=c*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(c,2)*e,m=Math.exp(-f),b=Il(Math.pow(c,2),a);return(-o(c)+Vs>0?-1:1)*((p-h)*m)/b}):(o=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Vs+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const s=5/e,l=w7(o,i,s);if(e=xn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const x7=12;function w7(e,t,n){let r=n;for(let o=1;o<x7;o++)r=r-e(r)/t(r);return r}function Il(e,t){return e*Math.sqrt(1-t*t)}const C7=["duration","bounce"],E7=["stiffness","damping","mass"];function qf(e,t){return t.some(n=>e[n]!==void 0)}function D7(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!qf(e,E7)&&qf(e,C7)){const n=$7(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Rb({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=D7({...r,velocity:-an(r.velocity||0)}),h=f||0,m=l/(2*Math.sqrt(s*c)),b=i-o,g=an(Math.sqrt(s/c)),$=Math.abs(b)<5;n||(n=$?.01:2),t||(t=$?.005:.5);let C;if(m<1){const x=Il(g,m);C=E=>{const w=Math.exp(-m*g*E);return i-w*((h+m*g*b)/x*Math.sin(x*E)+b*Math.cos(x*E))}}else if(m===1)C=x=>i-Math.exp(-g*x)*(b+(h+g*b)*x);else{const x=g*Math.sqrt(m*m-1);C=E=>{const w=Math.exp(-m*g*E),A=Math.min(x*E,300);return i-w*((h+m*g*b)*Math.sinh(A)+x*b*Math.cosh(A))/x}}return{calculatedDuration:p&&d||null,next:x=>{const E=C(x);if(p)a.done=x>=d;else{let w=h;x!==0&&(m<1?w=Mb(C,x,E):w=0);const A=Math.abs(w)<=n,V=Math.abs(i-E)<=t;a.done=A&&V}return a.value=a.done?i:E,a}}}function Zf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=y=>s!==void 0&&y<s||l!==void 0&&y>l,m=y=>s===void 0?l:l===void 0||Math.abs(s-y)<Math.abs(l-y)?s:l;let b=n*t;const g=f+b,$=a===void 0?g:a(g);$!==g&&(b=$-f);const C=y=>-b*Math.exp(-y/r),x=y=>$+C(y),E=y=>{const I=C(y),M=x(y);p.done=Math.abs(I)<=c,p.value=p.done?$:M};let w,A;const V=y=>{h(p.value)&&(w=y,A=Rb({keyframes:[p.value,m(p.value)],velocity:Mb(x,y,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return V(0),{calculatedDuration:null,next:y=>{let I=!1;return!A&&w===void 0&&(I=!0,E(y),V(y)),w!==void 0&&y>w?A.next(y-w):(!I&&E(y),p)}}}let Bi;function P7(){Bi=void 0}const Kn={now:()=>(Bi===void 0&&Kn.set(tt.isProcessing||U0.useManualTiming?tt.timestamp:performance.now()),Bi),set:e=>{Bi=e,queueMicrotask(P7)}},S7=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ie.update(t,!0),stop:()=>un(t),now:()=>tt.isProcessing?tt.timestamp:Kn.now()}},Xf=2e4;function Jf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Xf;)t+=n,r=e.next(t);return t>=Xf?1/0:t}const T7={decay:Zf,inertia:Zf,tween:ha,keyframes:ha,spring:Rb},A7=e=>e/100;function ma({autoplay:e=!0,delay:t=0,driver:n=S7,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:d,onUpdate:f,...p}){let h=1,m=!1,b,g;const $=()=>{g=new Promise(D=>{b=D})};$();let C;const x=T7[o]||ha;let E;x!==ha&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&kt(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),E=on(A7,Ab(r[0],r[1])),r=[0,100]);const w=x({...p,keyframes:r});let A;s==="mirror"&&(A=x({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let V="idle",y=null,I=null,M=null;w.calculatedDuration===null&&i&&(w.calculatedDuration=Jf(w));const{calculatedDuration:k}=w;let R=1/0,S=1/0;k!==null&&(R=k+a,S=R*(i+1)-a);let F=0;const K=D=>{if(I===null)return;h>0&&(I=Math.min(I,D)),h<0&&(I=Math.min(D-S/h,I)),y!==null?F=y:F=Math.round(D-I)*h;const T=F-t*(h>=0?1:-1),z=h>=0?T<0:T>S;F=Math.max(T,0),V==="finished"&&y===null&&(F=S);let H=F,X=w;if(i){const Q=Math.min(F,S)/R;let ne=Math.floor(Q),ee=Q%1;!ee&&Q>=1&&(ee=1),ee===1&&ne--,ne=Math.min(ne,i+1),!!(ne%2)&&(s==="reverse"?(ee=1-ee,a&&(ee-=a/R)):s==="mirror"&&(X=A)),H=Dn(0,1,ee)*R}const N=z?{done:!1,value:r[0]}:X.next(H);E&&(N.value=E(N.value));let{done:j}=N;!z&&k!==null&&(j=h>=0?F>=S:F<=0);const _=y===null&&(V==="finished"||V==="running"&&j);return f&&f(N.value),_&&W(),N},L=()=>{C&&C.stop(),C=void 0},P=()=>{V="idle",L(),b(),$(),I=M=null},W=()=>{V="finished",d&&d(),L(),b()},J=()=>{if(m)return;C||(C=n(K));const D=C.now();l&&l(),y!==null?I=D-y:(!I||V==="finished")&&(I=D),V==="finished"&&$(),M=I,y=null,V="running",C.start()};e&&J();const G={then(D,T){return g.then(D,T)},get time(){return an(F)},set time(D){D=xn(D),F=D,y!==null||!C||h===0?y=D:I=C.now()-D/h},get duration(){const D=w.calculatedDuration===null?Jf(w):w.calculatedDuration;return an(D)},get speed(){return h},set speed(D){D===h||!C||(h=D,G.time=an(F))},get state(){return V},play:J,pause:()=>{V="paused",y=F},stop:()=>{m=!0,V!=="idle"&&(V="idle",c&&c(),P())},cancel:()=>{M!==null&&K(M),P()},complete:()=>{V="finished"},sample:D=>(I=0,K(D))};return G}function k7(e){let t;return()=>(t===void 0&&(t=e()),t)}const M7=k7(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),R7=new Set(["opacity","clipPath","filter","transform"]),xi=10,F7=2e4,B7=(e,t)=>t.type==="spring"||e==="backgroundColor"||!hb(t.ease);function I7(e,t,{onUpdate:n,onComplete:r,...o}){if(!(M7()&&R7.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l,c=!1;const d=()=>{l=new Promise(x=>{s=x})};d();let{keyframes:f,duration:p=300,ease:h,times:m}=o;if(B7(t,o)){const x=ma({...o,repeat:0,delay:0});let E={done:!1,value:f[0]};const w=[];let A=0;for(;!E.done&&A<F7;)E=x.sample(A),w.push(E.value),A+=xi;m=void 0,f=w,p=A-xi,h="linear"}const b=N6(e.owner.current,t,f,{...o,duration:p,ease:h,times:m}),g=()=>{c=!1,b.cancel()},$=()=>{c=!0,Ie.update(g),s(),d()};return b.onfinish=()=>{c||(e.set(_6(f,o)),r&&r(),$())},{then(x,E){return l.then(x,E)},attachTimeline(x){return b.timeline=x,b.onfinish=null,ze},get time(){return an(b.currentTime||0)},set time(x){b.currentTime=xn(x)},get speed(){return b.playbackRate},set speed(x){b.playbackRate=x},get duration(){return an(p)},play:()=>{a||(b.play(),un(g))},pause:()=>b.pause(),stop:()=>{if(a=!0,b.playState==="idle")return;const{currentTime:x}=b;if(x){const E=ma({...o,autoplay:!1});e.setWithVelocity(E.sample(x-xi).value,E.sample(x).value,xi)}$()},complete:()=>{c||b.finish()},cancel:$}}function O7({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ze,pause:ze,stop:ze,then:i=>(i(),Promise.resolve()),cancel:ze,complete:ze});return t?ma({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const L7={type:"spring",stiffness:500,damping:25,restSpeed:10},V7=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),N7={type:"keyframes",duration:.8},_7={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},K7=(e,{keyframes:t})=>t.length>2?N7:Xn.has(e)?e.startsWith("scale")?V7(t[1]):L7:_7,Ol=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Pn.test(t)||t==="0")&&!t.startsWith("url(")),j7=new Set(["brightness","contrast","saturate","opacity"]);function z7(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Zu)||[];if(!r)return e;const o=n.replace(r,"");let i=j7.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const U7=/([a-z-]*)\(.*?\)/g,Ll={...Pn,getAnimatableNone:e=>{const t=e.match(U7);return t?t.map(z7).join(" "):e}},H7={...X0,color:ot,backgroundColor:ot,outlineColor:ot,fill:ot,stroke:ot,borderColor:ot,borderTopColor:ot,borderRightColor:ot,borderBottomColor:ot,borderLeftColor:ot,filter:Ll,WebkitFilter:Ll},sc=e=>H7[e];function Fb(e,t){let n=sc(e);return n!==Ll&&(n=Pn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Bb=e=>/^0[^.\s]+$/.test(e);function G7(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Bb(e)}function W7(e,t,n,r){const o=Ol(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const a=r.from!==void 0?r.from:e.get();let s;const l=[];for(let c=0;c<i.length;c++)i[c]===null&&(i[c]=c===0?a:i[c-1]),G7(i[c])&&l.push(c),typeof i[c]=="string"&&i[c]!=="none"&&i[c]!=="0"&&(s=i[c]);if(o&&l.length&&s)for(let c=0;c<l.length;c++){const d=l[c];i[d]=Fb(t,s)}return i}function Y7({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...d}){return!!Object.keys(d).length}function lc(e,t){return e[t]||e.default||e}const uc=(e,t,n,r={})=>o=>{const i=lc(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s=s-xn(a);const l=W7(t,e,n,i),c=l[0],d=l[l.length-1],f=Ol(e,c),p=Ol(e,d);Lo(f===p,`You are trying to animate ${e} from "${c}" to "${d}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${d} via the \`style\` property.`);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:m=>{t.set(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(Y7(i)||(h={...h,...K7(e,h)}),h.duration&&(h.duration=xn(h.duration)),h.repeatDelay&&(h.repeatDelay=xn(h.repeatDelay)),!f||!p||V6.current||i.type===!1||U0.skipAnimations)return O7(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=I7(t,e,h);if(m)return m}return ma(h)};function ba(e){return!!(ht(e)&&e.add)}const Ib=e=>/^\-?\d*\.?\d+$/.test(e);function cc(e,t){e.indexOf(t)===-1&&e.push(t)}function dc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class fc{constructor(){this.subscriptions=[]}add(t){return cc(this.subscriptions,t),()=>dc(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Qf=new Set;function pc(e,t,n){e||Qf.has(t)||(console.warn(t),n&&console.warn(n),Qf.add(t))}const ep=30,q7=e=>!isNaN(parseFloat(e));class Z7{constructor(t,n={}){this.version="11.0.6",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Kn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=q7(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Kn.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&pc(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new fc);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ie.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Kn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ep)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ep);return kb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Dr(e,t){return new Z7(e,t)}const Ob=e=>t=>t.test(e),X7={test:e=>e==="auto",parse:e=>e},Lb=[Ir,ue,Ut,mn,r6,n6,X7],qr=e=>Lb.find(Ob(e)),J7=[...Lb,ot,Pn],Q7=e=>J7.find(Ob(e));function eE(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dr(n))}function tE(e,t){const n=La(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i){const s=g6(i[a]);eE(e,a,s)}}function nE(e,t,n){var r,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;s<a;s++){const l=i[s],c=t[l];let d=null;Array.isArray(c)&&(d=c[0]),d===null&&(d=(o=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&o!==void 0?o:t[l]),d!=null&&(typeof d=="string"&&(Ib(d)||Bb(d))?d=parseFloat(d):!Q7(d)&&Pn.test(c)&&(d=Fb(l,c)),e.addValue(l,Dr(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function rE(e,t){return t?(t[e]||t.default||t).from:void 0}function oE(e,t,n){const r={};for(const o in e){const i=rE(o,t);if(i!==void 0)r[o]=i;else{const a=n.getValue(o);a&&(r[o]=a.get())}}return r}function iE({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function aE(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Vb(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in s){const p=e.getValue(f),h=s[f];if(!p||h===void 0||d&&iE(d,f))continue;const m={delay:n,elapsed:0,...lc(i||{},f)};if(window.HandoffAppearAnimations){const $=e.getProps()[z0];if($){const C=window.HandoffAppearAnimations($,f,p,Ie);C!==null&&(m.elapsed=C,m.isHandoff=!0)}}let b=!m.isHandoff&&!aE(p,h);if(m.type==="spring"&&(p.getVelocity()||m.velocity)&&(b=!1),p.animation&&(b=!1),b)continue;p.start(uc(f,p,h,e.shouldReduceMotion&&Xn.has(f)?{type:!1}:m));const g=p.animation;ba(l)&&(l.add(f),g.then(()=>l.remove(f))),c.push(g)}return a&&Promise.all(c).then(()=>{a&&tE(e,a)}),c}function Vl(e,t,n={}){const r=La(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Vb(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return sE(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,c]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>c())}else return Promise.all([i(),a(n.delay)])}function sE(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(lE).forEach((c,d)=>{c.notify("AnimationStart",t),a.push(Vl(c,t,{...i,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function lE(e,t){return e.sortNodePosition(t)}function uE(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Vl(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Vl(e,t,n);else{const o=typeof t=="function"?La(e,t,n.custom):t;r=Promise.all(Vb(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const cE=[...Gu].reverse(),dE=Gu.length;function fE(e){return t=>Promise.all(t.map(({animation:n,options:r})=>uE(e,n,r)))}function pE(e){let t=fE(e);const n=mE();let r=!0;const o=(l,c)=>{const d=La(e,c);if(d){const{transition:f,transitionEnd:p,...h}=d;l={...l,...h,...p}}return l};function i(l){t=l(e)}function a(l,c){const d=e.getProps(),f=e.getVariantContext(!0)||{},p=[],h=new Set;let m={},b=1/0;for(let $=0;$<dE;$++){const C=cE[$],x=n[C],E=d[C]!==void 0?d[C]:f[C],w=Co(E),A=C===c?x.isActive:null;A===!1&&(b=$);let V=E===f[C]&&E!==d[C]&&w;if(V&&r&&e.manuallyAnimateOnMount&&(V=!1),x.protectedKeys={...m},!x.isActive&&A===null||!E&&!x.prevProp||Ba(E)||typeof E=="boolean")continue;let I=hE(x.prevProp,E)||C===c&&x.isActive&&!V&&w||$>b&&w,M=!1;const k=Array.isArray(E)?E:[E];let R=k.reduce(o,{});A===!1&&(R={});const{prevResolvedValues:S={}}=x,F={...S,...R},K=L=>{I=!0,h.has(L)&&(M=!0,h.delete(L)),x.needsAnimating[L]=!0};for(const L in F){const P=R[L],W=S[L];if(m.hasOwnProperty(L))continue;let J=!1;fa(P)&&fa(W)?J=!fb(P,W):J=P!==W,J?P!==void 0?K(L):h.add(L):P!==void 0&&h.has(L)?K(L):x.protectedKeys[L]=!0}x.prevProp=E,x.prevResolvedValues=R,x.isActive&&(m={...m,...R}),r&&e.blockInitialAnimation&&(I=!1),I&&(!V||M)&&p.push(...k.map(L=>({animation:L,options:{type:C,...l}})))}if(h.size){const $={};h.forEach(C=>{const x=e.getBaseTarget(C);x!==void 0&&($[C]=x)}),p.push({animation:$})}let g=!!p.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(p):Promise.resolve()}function s(l,c,d){var f;if(n[l].isActive===c)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var m;return(m=h.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const p=a(d,l);for(const h in n)n[h].protectedKeys={};return p}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n}}function hE(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fb(t,e):!1}function Tn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mE(){return{animate:Tn(!0),whileInView:Tn(),whileHover:Tn(),whileTap:Tn(),whileDrag:Tn(),whileFocus:Tn(),exit:Tn()}}class bE extends Sn{constructor(t){super(t),t.animationState||(t.animationState=pE(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ba(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let gE=0;class vE extends Sn{constructor(){super(...arguments),this.id=gE++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const yE={animation:{Feature:bE},exit:{Feature:vE}},tp=(e,t)=>Math.abs(e-t);function $E(e,t){const n=tp(e.x,t.x),r=tp(e.y,t.y);return Math.sqrt(n**2+r**2)}class Nb{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=_s(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=$E(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:m}=f,{timestamp:b}=tt;this.history.push({...m,timestamp:b});const{onStart:g,onMove:$}=this.handlers;p||(g&&g(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ns(p,this.transformPagePoint),Ie.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:m,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=_s(f.type==="pointercancel"?this.lastMoveEventInfo:Ns(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,g),m&&m(f,g)},!sb(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=Oa(t),s=Ns(a,this.transformPagePoint),{point:l}=s,{timestamp:c}=tt;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,_s(s,this.history)),this.removeListeners=on(rn(this.contextWindow,"pointermove",this.handlePointerMove),rn(this.contextWindow,"pointerup",this.handlePointerUp),rn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),un(this.updatePoint)}}function Ns(e,t){return t?{point:t(e.point)}:e}function np(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _s({point:e},t){return{point:e,delta:np(e,_b(t)),offset:np(e,xE(t)),velocity:wE(t,.1)}}function xE(e){return e[0]}function _b(e){return e[e.length-1]}function wE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=_b(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>xn(t)));)n--;if(!r)return{x:0,y:0};const i=an(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function vt(e){return e.max-e.min}function Nl(e,t=0,n=.01){return Math.abs(e-t)<=n}function rp(e,t,n,r=.5){e.origin=r,e.originPoint=Ve(t.min,t.max,e.origin),e.scale=vt(n)/vt(t),(Nl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ve(n.min,n.max,e.origin)-e.originPoint,(Nl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function fo(e,t,n,r){rp(e.x,t.x,n.x,r?r.originX:void 0),rp(e.y,t.y,n.y,r?r.originY:void 0)}function op(e,t,n){e.min=n.min+t.min,e.max=e.min+vt(t)}function CE(e,t,n){op(e.x,t.x,n.x),op(e.y,t.y,n.y)}function ip(e,t,n){e.min=t.min-n.min,e.max=e.min+vt(t)}function po(e,t,n){ip(e.x,t.x,n.x),ip(e.y,t.y,n.y)}function EE(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ve(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ve(n,e,r.max):Math.min(e,n)),e}function ap(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function DE(e,{top:t,left:n,bottom:r,right:o}){return{x:ap(e.x,n,o),y:ap(e.y,t,r)}}function sp(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function PE(e,t){return{x:sp(e.x,t.x),y:sp(e.y,t.y)}}function SE(e,t){let n=.5;const r=vt(e),o=vt(t);return o>r?n=Do(t.min,t.max-r,e.min):r>o&&(n=Do(e.min,e.max-o,t.min)),Dn(0,1,n)}function TE(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const _l=.35;function AE(e=_l){return e===!1?e=0:e===!0&&(e=_l),{x:lp(e,"left","right"),y:lp(e,"top","bottom")}}function lp(e,t,n){return{min:up(e,t),max:up(e,n)}}function up(e,t){return typeof e=="number"?e:e[t]||0}const cp=()=>({translate:0,scale:1,origin:0,originPoint:0}),gr=()=>({x:cp(),y:cp()}),dp=()=>({min:0,max:0}),je=()=>({x:dp(),y:dp()});function wt(e){return[e("x"),e("y")]}function Kb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function kE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ME(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ks(e){return e===void 0||e===1}function Kl({scale:e,scaleX:t,scaleY:n}){return!Ks(e)||!Ks(t)||!Ks(n)}function Mn(e){return Kl(e)||jb(e)||e.z||e.rotate||e.rotateX||e.rotateY}function jb(e){return fp(e.x)||fp(e.y)}function fp(e){return e&&e!=="0%"}function ga(e,t,n){const r=e-n,o=t*r;return n+o}function pp(e,t,n,r,o){return o!==void 0&&(e=ga(e,o,r)),ga(e,n,r)+t}function jl(e,t=0,n=1,r,o){e.min=pp(e.min,t,n,r,o),e.max=pp(e.max,t,n,r,o)}function zb(e,{x:t,y:n}){jl(e.x,t.translate,t.scale,t.originPoint),jl(e.y,n.translate,n.scale,n.originPoint)}function RE(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const l=i.instance;l&&l.style&&l.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&vr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,zb(e,a)),r&&Mn(i.latestValues)&&vr(e,i.latestValues))}t.x=hp(t.x),t.y=hp(t.y)}function hp(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function gn(e,t){e.min=e.min+t,e.max=e.max+t}function mp(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Ve(e.min,e.max,i);jl(e,t[n],t[r],a,t.scale)}const FE=["x","scaleX","originX"],BE=["y","scaleY","originY"];function vr(e,t){mp(e.x,t,FE),mp(e.y,t,BE)}function Ub(e,t){return Kb(ME(e.getBoundingClientRect(),t))}function IE(e,t,n){const r=Ub(e,n),{scroll:o}=t;return o&&(gn(r.x,o.offset.x),gn(r.y,o.offset.y)),r}const Hb=({current:e})=>e?e.ownerDocument.defaultView:null,OE=new WeakMap;class LE{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=je(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Oa(d,"page").point)},i=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:m}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ub(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wt(g=>{let $=this.getAxisMotionValue(g).get()||0;if(Ut.test($)){const{projection:C}=this.visualElement;if(C&&C.layout){const x=C.layout.layoutBox[g];x&&($=vt(x)*(parseFloat($)/100))}}this.originPoint[g]=$}),m&&Ie.update(()=>m(d,f),!1,!0);const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:m,onDrag:b}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:g}=f;if(h&&this.currentDirection===null){this.currentDirection=VE(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),b&&b(d,f)},s=(d,f)=>this.stop(d,f),l=()=>wt(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Nb(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Hb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Ie.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!wi(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=EE(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&mr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=DE(o.layoutBox,n):this.constraints=!1,this.elastic=AE(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&wt(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=TE(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!mr(t))return!1;const r=t.current;kt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=IE(r,o.root,this.visualElement.getTransformPagePoint());let a=PE(o.layout.layoutBox,i);if(n){const s=n(kE(a));this.hasMutatedConstraints=!!s,s&&(a=Kb(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=wt(d=>{if(!wi(d,n,this.currentDirection))return;let f=l&&l[d]||{};a&&(f={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,m={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,m)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(uc(t,r,0,n))}stopAnimation(){wt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){wt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){wt(n=>{const{drag:r}=this.getProps();if(!wi(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-Ve(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!mr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};wt(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=SE({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),wt(a=>{if(!wi(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(Ve(l,c,o[a]))})}addListeners(){if(!this.visualElement.current)return;OE.set(this.visualElement,this);const t=this.visualElement.current,n=rn(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();mr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=tn(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(wt(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=_l,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function wi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function VE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class NE extends Sn{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new LE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ze}unmount(){this.removeGroupControls(),this.removeListeners()}}const bp=e=>(t,n)=>{e&&Ie.update(()=>e(t,n))};class _E extends Sn{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new Nb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Hb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:bp(t),onStart:bp(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&Ie.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=rn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function KE(){const e=u.useContext(Ra);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=u.useId();return u.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Ii={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gp(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Zr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ue.test(e))e=parseFloat(e);else return e;const n=gp(e,t.target.x),r=gp(e,t.target.y);return`${n}% ${r}%`}},jE={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Pn.parse(e);if(o.length>5)return r;const i=Pn.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=Ve(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=c),typeof o[3+a]=="number"&&(o[3+a]/=c),i(o)}};class zE extends u.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;WC(UE),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ii.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Ie.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Hu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Gb(e){const[t,n]=KE(),r=u.useContext(Yu);return u.createElement(zE,{...e,layoutGroup:r,switchLayoutGroup:u.useContext(W0),isPresent:t,safeToRemove:n})}const UE={borderRadius:{...Zr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zr,borderTopRightRadius:Zr,borderBottomLeftRadius:Zr,borderBottomRightRadius:Zr,boxShadow:jE},Wb=["TopLeft","TopRight","BottomLeft","BottomRight"],HE=Wb.length,vp=e=>typeof e=="string"?parseFloat(e):e,yp=e=>typeof e=="number"||ue.test(e);function GE(e,t,n,r,o,i){o?(e.opacity=Ve(0,n.opacity!==void 0?n.opacity:1,WE(r)),e.opacityExit=Ve(t.opacity!==void 0?t.opacity:1,0,YE(r))):i&&(e.opacity=Ve(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<HE;a++){const s=`border${Wb[a]}Radius`;let l=$p(t,s),c=$p(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||yp(l)===yp(c)?(e[s]=Math.max(Ve(vp(l),vp(c),r),0),(Ut.test(c)||Ut.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=Ve(t.rotate||0,n.rotate||0,r))}function $p(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const WE=Yb(0,.5,xb),YE=Yb(.5,.95,ze);function Yb(e,t,n){return r=>r<e?0:r>t?1:n(Do(e,t,r))}function xp(e,t){e.min=t.min,e.max=t.max}function $t(e,t){xp(e.x,t.x),xp(e.y,t.y)}function wp(e,t,n,r,o){return e-=t,e=ga(e,1/n,r),o!==void 0&&(e=ga(e,1/o,r)),e}function qE(e,t=0,n=1,r=.5,o,i=e,a=e){if(Ut.test(t)&&(t=parseFloat(t),t=Ve(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Ve(i.min,i.max,r);e===i&&(s-=t),e.min=wp(e.min,t,n,s,o),e.max=wp(e.max,t,n,s,o)}function Cp(e,t,[n,r,o],i,a){qE(e,t[n],t[r],t[o],t.scale,i,a)}const ZE=["x","scaleX","originX"],XE=["y","scaleY","originY"];function Ep(e,t,n,r){Cp(e.x,t,ZE,n?n.x:void 0,r?r.x:void 0),Cp(e.y,t,XE,n?n.y:void 0,r?r.y:void 0)}function Dp(e){return e.translate===0&&e.scale===1}function qb(e){return Dp(e.x)&&Dp(e.y)}function JE(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Zb(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Pp(e){return vt(e.x)/vt(e.y)}class QE{constructor(){this.members=[]}add(t){cc(this.members,t),t.scheduleRender()}remove(t){if(dc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Sp(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),d&&(r+=`rotateY(${d}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(r+=`scale(${a}, ${s})`),r||"none"}const eD=(e,t)=>e.depth-t.depth;class tD{constructor(){this.children=[],this.isDirty=!1}add(t){cc(this.children,t),this.isDirty=!0}remove(t){dc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eD),this.isDirty=!1,this.children.forEach(t)}}function nD(e,t){const n=Kn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(un(r),e(i-t))};return Ie.read(r,!0),()=>un(r)}function rD(e){window.MotionDebug&&window.MotionDebug.record(e)}function oD(e){return e instanceof SVGElement&&e.tagName!=="svg"}function iD(e,t,n){const r=ht(e)?e:Dr(e);return r.start(uc("",r,t,n)),r.animation}const Tp=["","X","Y","Z"],aD={visibility:"hidden"},Ap=1e3;let sD=0;const Rn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Xb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=sD++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Rn.totalNodes=Rn.resolvedTargetDeltas=Rn.recalculatedProjection=0,this.nodes.forEach(cD),this.nodes.forEach(mD),this.nodes.forEach(bD),this.nodes.forEach(dD),rD(Rn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new tD)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new fc),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=oD(a),this.instance=a;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||l)&&(this.isLayoutDirty=!0),e){let f;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=nD(p,250),Ii.hasAnimatedSinceResize&&(Ii.hasAnimatedSinceResize=!1,this.nodes.forEach(Mp))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||xD,{onLayoutAnimationStart:g,onLayoutAnimationComplete:$}=d.getProps(),C=!this.targetLayout||!Zb(this.targetLayout,m)||h,x=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);const E={...lc(b,"layout"),onPlay:g,onComplete:$};(d.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||Mp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,un(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gD),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(kp);return}this.isUpdating||this.nodes.forEach(pD),this.isUpdating=!1,this.nodes.forEach(hD),this.nodes.forEach(lD),this.nodes.forEach(uD),this.clearAllSnapshots();const s=Kn.now();tt.delta=Dn(0,1e3/60,s-tt.timestamp),tt.timestamp=s,tt.isProcessing=!0,Rs.update.process(tt),Rs.preRender.process(tt),Rs.render.process(tt),tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hu.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(fD),this.sharedNodes.forEach(vD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ie.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ie.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=je(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!qb(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;a&&(s||Mn(this.latestValues)||d)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),wD(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return je();const s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(gn(s.x,l.offset.x),gn(s.y,l.offset.y)),s}removeElementScroll(a){const s=je();$t(s,a);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:f}=c;if(c!==this.root&&d&&f.layoutScroll){if(d.isRoot){$t(s,a);const{scroll:p}=this.root;p&&(gn(s.x,-p.offset.x),gn(s.y,-p.offset.y))}gn(s.x,d.offset.x),gn(s.y,d.offset.y)}}return s}applyTransform(a,s=!1){const l=je();$t(l,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&vr(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Mn(d.latestValues)&&vr(l,d.latestValues)}return Mn(this.latestValues)&&vr(l,this.latestValues),l}removeTransform(a){const s=je();$t(s,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Mn(c.latestValues))continue;Kl(c.latestValues)&&c.updateSnapshot();const d=je(),f=c.measurePageBox();$t(d,f),Ep(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return Mn(this.latestValues)&&Ep(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=tt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=je(),this.relativeTargetOrigin=je(),po(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),$t(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=je(),this.targetWithTransforms=je()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),CE(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$t(this.target,this.layout.layoutBox),zb(this.target,this.targetDelta)):$t(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=je(),this.relativeTargetOrigin=je(),po(this.relativeTargetOrigin,this.target,h.target),$t(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Rn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Kl(this.parent.latestValues)||jb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===tt.timestamp&&(c=!1),c)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;$t(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;RE(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=je());const{target:m}=s;if(!m){this.projectionTransform&&(this.projectionDelta=gr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=gr(),this.projectionDeltaWithTransform=gr());const b=this.projectionTransform;fo(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Sp(this.projectionDelta,this.treeScale),(this.projectionTransform!==b||this.treeScale.x!==p||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Rn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},f=gr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=je(),h=l?l.source:void 0,m=this.layout?this.layout.source:void 0,b=h!==m,g=this.getStack(),$=!g||g.members.length<=1,C=!!(b&&!$&&this.options.crossfade===!0&&!this.path.some($D));this.animationProgress=0;let x;this.mixTargetDelta=E=>{const w=E/1e3;Rp(f.x,a.x,w),Rp(f.y,a.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(po(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yD(this.relativeTarget,this.relativeTargetOrigin,p,w),x&&JE(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=je()),$t(x,this.relativeTarget)),b&&(this.animationValues=d,GE(d,c,this.latestValues,w,C,$)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(un(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ie.update(()=>{Ii.hasAnimatedSinceResize=!0,this.currentAnimation=iD(0,Ap,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ap),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:d}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&Jb(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||je();const f=vt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const p=vt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}$t(s,l),vr(s,d),fo(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new QE),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const c={};for(let d=0;d<Tp.length;d++){const f="rotate"+Tp[d];l[f]&&(c[f]=l[f],a.setStaticValue(f,0))}a.render();for(const d in c)a.setStaticValue(d,c[d]);a.scheduleRender()}getProjectionStyles(a){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return aD;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Fi(a==null?void 0:a.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Fi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Mn(this.latestValues)&&(b.transform=d?d({},""):"none",this.hasProjected=!1),b}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=Sp(this.projectionDeltaWithTransform,this.treeScale,p),d&&(c.transform=d(p,c.transform));const{x:h,y:m}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in ua){if(p[b]===void 0)continue;const{correct:g,applyTo:$}=ua[b],C=c.transform==="none"?p[b]:g(p[b],f);if($){const x=$.length;for(let E=0;E<x;E++)c[$[E]]=C}else c[b]=C}return this.options.layoutId&&(c.pointerEvents=f===this?Fi(a==null?void 0:a.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(kp),this.root.sharedNodes.clear()}}}function lD(e){e.updateLayout()}function uD(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?wt(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=vt(p);p.min=r[f].min,p.max=p.min+h}):Jb(i,n.layoutBox,r)&&wt(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=vt(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=gr();fo(s,r,n.layoutBox);const l=gr();a?fo(l,e.applyTransform(o,!0),n.measuredBox):fo(l,r,n.layoutBox);const c=!qb(s);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const m=je();po(m,n.layoutBox,p.layoutBox);const b=je();po(b,r,h.layoutBox),Zb(m,b)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function cD(e){Rn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function dD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fD(e){e.clearSnapshot()}function kp(e){e.clearMeasurements()}function pD(e){e.isLayoutDirty=!1}function hD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Mp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mD(e){e.resolveTargetDelta()}function bD(e){e.calcProjection()}function gD(e){e.resetRotation()}function vD(e){e.removeLeadSnapshot()}function Rp(e,t,n){e.translate=Ve(t.translate,0,n),e.scale=Ve(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fp(e,t,n,r){e.min=Ve(t.min,n.min,r),e.max=Ve(t.max,n.max,r)}function yD(e,t,n,r){Fp(e.x,t.x,n.x,r),Fp(e.y,t.y,n.y,r)}function $D(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const xD={duration:.45,ease:[.4,0,.1,1]},Bp=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ip=Bp("applewebkit/")&&!Bp("chrome/")?Math.round:ze;function Op(e){e.min=Ip(e.min),e.max=Ip(e.max)}function wD(e){Op(e.x),Op(e.y)}function Jb(e,t,n){return e==="position"||e==="preserve-aspect"&&!Nl(Pp(t),Pp(n),.2)}const CD=Xb({attachResizeListener:(e,t)=>tn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),js={current:void 0},Qb=Xb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!js.current){const e=new CD({});e.mount(window),e.setOptions({layoutScroll:!0}),js.current=e}return js.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ED={pan:{Feature:_E},drag:{Feature:NE,ProjectionNode:Qb,MeasureLayout:Gb}},DD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function PD(e){const t=DD.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const SD=4;function zl(e,t,n=1){kt(n<=SD,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=PD(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return Ib(a)?parseFloat(a):a}else return ca(o)?zl(o,t,n+1):o}function TD(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!ca(i))return;const a=zl(i,r);a&&o.set(a)});for(const o in t){const i=t[o];if(!ca(i))continue;const a=zl(i,r);a&&(t[o]=a,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const AD=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),eg=e=>AD.has(e),kD=e=>Object.keys(e).some(eg),Ci=e=>e===Ir||e===ue,Lp=(e,t)=>parseFloat(e.split(", ")[t]),Vp=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Lp(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Lp(i[1],e):0}},MD=new Set(["x","y","z"]),RD=Bo.filter(e=>!MD.has(e));function FD(e){const t=[];return RD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Pr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Vp(4,13),y:Vp(5,14)};Pr.translateX=Pr.x;Pr.translateY=Pr.y;const BD=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{s[c]=Pr[c](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const d=t.getValue(c);d&&d.jump(s[c]),e[c]=Pr[c](l,i)}),e},ID=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(eg);let i=[],a=!1;const s=[];if(o.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],f=qr(d);const p=t[l];let h;if(fa(p)){const m=p.length,b=p[0]===null?1:0;d=p[b],f=qr(d);for(let g=b;g<m&&p[g]!==null;g++)h?kt(qr(p[g])===h,"All keyframes must be of the same type"):(h=qr(p[g]),kt(h===f||Ci(f)&&Ci(h),"Keyframes must be of the same dimension as the current value"))}else h=qr(p);if(f!==h)if(Ci(f)&&Ci(h)){const m=c.get();typeof m=="string"&&c.set(parseFloat(m)),typeof p=="string"?t[l]=parseFloat(p):Array.isArray(p)&&h===ue&&(t[l]=p.map(parseFloat))}else f!=null&&f.transform&&(h!=null&&h.transform)&&(d===0||p===0)?d===0?c.set(h.transform(d)):t[l]=f.transform(p):(a||(i=FD(e),a=!0),s.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(p))}),s.length){const l=s.indexOf("height")>=0?window.pageYOffset:null,c=BD(t,e,s);return i.length&&i.forEach(([d,f])=>{e.getValue(d).set(f)}),e.render(),Fa&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function OD(e,t,n,r){return kD(t)?ID(e,t,n,r):{target:t,transitionEnd:r}}const LD=(e,t,n,r)=>{const o=TD(e,t,r);return t=o.target,r=o.transitionEnd,OD(e,t,n,r)},Ul={current:null},tg={current:!1};function VD(){if(tg.current=!0,!!Fa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ul.current=e.matches;e.addListener(t),t()}else Ul.current=!1}function ND(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(ht(i))e.addValue(o,i),ba(r)&&r.add(o),process.env.NODE_ENV==="development"&&pc(i.version==="11.0.6",`Attempting to mix Framer Motion versions ${i.version} with 11.0.6 may not work as expected.`);else if(ht(a))e.addValue(o,Dr(i,{owner:e})),ba(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,Dr(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Np=new WeakMap,ng=Object.keys(Eo),_D=ng.length,_p=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],KD=Wu.length;class jD{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ie.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Ia(n),this.isVariantNode=G0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{});for(const f in d){const p=d[f];s[f]!==void 0&&ht(p)&&(p.set(s[f],!1),ba(c)&&c.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Np.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),tg.current||VD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ul.current,process.env.NODE_ENV!=="production"&&pc(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Np.delete(this.current),this.projection&&this.projection.unmount(),un(this.notifyUpdate),un(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Xn.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ie.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,s;if(process.env.NODE_ENV!=="production"&&o&&r){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Lo(!1,l):kt(!1,l)}for(let l=0;l<_D;l++){const c=ng[l],{isEnabled:d,Feature:f,ProjectionNode:p,MeasureLayout:h}=Eo[c];p&&(a=p),d(n)&&(!this.features[c]&&f&&(this.features[c]=new f(this)),h&&(s=h))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:d,dragConstraints:f,layoutScroll:p,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!d||f&&mr(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):je()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<_p.length;r++){const o=_p[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i=t["on"+o];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=ND(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<KD;r++){const o=Wu[r],i=this.props[o];(Co(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Dr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=nc(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ht(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new fc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class rg extends jD{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},o){const i=oE(r,t||{},this);if(o){nE(this,r,i);const a=LD(this,r,i,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function zD(e){return window.getComputedStyle(e)}class UD extends rg{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Xn.has(n)){const r=sc(n);return r&&r.default||0}else{const r=zD(t),o=(Z0(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ub(t,n)}build(t,n,r,o){Xu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return tc(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ht(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){tb(t,n,r,o)}}class HD extends rg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xn.has(n)){const r=sc(n);return r&&r.default||0}return n=nb.has(n)?n:Uu(n),t.getAttribute(n)}measureInstanceViewportBox(){return je()}scrapeMotionValuesFromProps(t,n){return ob(t,n)}build(t,n,r,o){Qu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){rb(t,n,r,o)}mount(t){this.isSVGTag=ec(t.tagName),super.mount(t)}}const GD=(e,t)=>qu(e)?new HD(t,{enableHardwareAcceleration:!1}):new UD(t,{enableHardwareAcceleration:!0}),WD={layout:{ProjectionNode:Qb,MeasureLayout:Gb}},YD={...yE,...I6,...ED,...WD},Jn=HC((e,t)=>w6(e,t,YD,GD));function og(){const e=u.useRef(!1);return zu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function qD(){const e=og(),[t,n]=u.useState(0),r=u.useCallback(()=>{e.current&&n(t+1)},[t]);return[u.useCallback(()=>Ie.postRender(r),[r]),t]}class ZD extends We.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function XD({children:e,isPresent:t}){const n=u.useId(),r=u.useRef(null),o=u.useRef({width:0,height:0,top:0,left:0});return u.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!r.current||!i||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
193
193
|
[data-motion-pop-id="${n}"] {
|
|
194
194
|
position: absolute !important;
|
|
195
195
|
width: ${i}px !important;
|
|
@@ -197,18 +197,18 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
197
197
|
top: ${s}px !important;
|
|
198
198
|
left: ${l}px !important;
|
|
199
199
|
}
|
|
200
|
-
`),()=>{document.head.removeChild(c)}},[t]),We.createElement(
|
|
200
|
+
`),()=>{document.head.removeChild(c)}},[t]),We.createElement(ZD,{isPresent:t,childRef:r,sizeRef:o},We.cloneElement(e,{ref:r}))}const zs=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=ib(JD),l=u.useId(),c=u.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:d=>{s.set(d,!0);for(const f of s.values())if(!f)return;r&&r()},register:d=>(s.set(d,!1),()=>s.delete(d))}),i?void 0:[n]);return u.useMemo(()=>{s.forEach((d,f)=>s.set(f,!1))},[n]),We.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=We.createElement(XD,{isPresent:n},e)),We.createElement(Ra.Provider,{value:c},e)};function JD(){return new Map}function QD(e){return u.useEffect(()=>()=>e(),[])}const Fn=e=>e.key||"";function eP(e,t){e.forEach(n=>{const r=Fn(n);t.set(r,n)})}function tP(e){const t=[];return u.Children.forEach(e,n=>{u.isValidElement(n)&&t.push(n)}),t}const ig=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{kt(!o,"Replace exitBeforeEnter with mode='wait'");const s=u.useContext(Yu).forceRender||qD()[0],l=og(),c=tP(e);let d=c;const f=u.useRef(new Map).current,p=u.useRef(d),h=u.useRef(new Map).current,m=u.useRef(!0);if(zu(()=>{m.current=!1,eP(c,h),p.current=d}),QD(()=>{m.current=!0,h.clear(),f.clear()}),m.current)return We.createElement(We.Fragment,null,d.map(C=>We.createElement(zs,{key:Fn(C),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:a},C)));d=[...d];const b=p.current.map(Fn),g=c.map(Fn),$=b.length;for(let C=0;C<$;C++){const x=b[C];g.indexOf(x)===-1&&!f.has(x)&&f.set(x,void 0)}return a==="wait"&&f.size&&(d=[]),f.forEach((C,x)=>{if(g.indexOf(x)!==-1)return;const E=h.get(x);if(!E)return;const w=b.indexOf(x);let A=C;if(!A){const V=()=>{f.delete(x);const y=Array.from(h.keys()).filter(I=>!g.includes(I));if(y.forEach(I=>h.delete(I)),p.current=c.filter(I=>{const M=Fn(I);return M===x||y.includes(M)}),!f.size){if(l.current===!1)return;s(),r&&r()}};A=We.createElement(zs,{key:Fn(E),isPresent:!1,onExitComplete:V,custom:t,presenceAffectsLayout:i,mode:a},E),f.set(x,A)}d.splice(w,0,A)}),d=d.map(C=>{const x=C.key;return f.has(x)?C:We.createElement(zs,{key:Fn(C),isPresent:!0,presenceAffectsLayout:i,mode:a},C)}),process.env.NODE_ENV!=="production"&&a==="wait"&&d.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),We.createElement(We.Fragment,null,f.size?d:d.map(C=>u.cloneElement(C)))};function nP(e){const[t,n]=w0(e,Pd.variantKeys),{as:r,children:o,className:i,content:a,classNames:s,...l}=t,c=r||"span",d=u.useMemo(()=>{var b;return((b=String(a))==null?void 0:b.length)===1||(e==null?void 0:e.isOneChar)},[a,e==null?void 0:e.isOneChar]),f=u.useMemo(()=>{var b;return((b=String(a))==null?void 0:b.length)===0},[a]),p=mo(s==null?void 0:s.badge,i),h=u.useMemo(()=>Pd({...n,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:d,isDot:f}),[...Object.values(n),d,f]),m=()=>({className:h.badge({class:p}),"data-invisible":e.isInvisible,...l});return{Component:c,children:o,content:a,slots:h,classNames:s,disableAnimation:e==null?void 0:e.disableAnimation,isInvisible:e==null?void 0:e.isInvisible,getBadgeProps:m}}var ag=ka((e,t)=>{const{Component:n,children:r,content:o,slots:i,classNames:a,getBadgeProps:s}=nP({...e});return O.jsxs("div",{className:i.base({class:a==null?void 0:a.base}),children:[r,O.jsx(n,{ref:t,...s(),children:o})]})});ag.displayName="NextUI.Badge";var rP=ag;const oP=Z.div`
|
|
201
201
|
position: relative;
|
|
202
202
|
display: inline-flex;
|
|
203
203
|
flex-shrink: 0;
|
|
204
|
-
`,
|
|
204
|
+
`,iP=Z.div`
|
|
205
205
|
position: absolute;
|
|
206
206
|
z-index: 2;
|
|
207
207
|
|
|
208
208
|
transform: ${({placement:e})=>{const t={"top-right":"translate(50%, -50%)","bottom-right":"translate(50%, 50%)","bottom-left":"translate(-50%, 50%)","top-left":"translate(-50%, -50%)"};return e&&t[e]?t[e]:t["top-right"]}};
|
|
209
209
|
|
|
210
210
|
${({placement:e,shape:t})=>{const n={rectangle:"5%",circle:"10%"};let r=n.rectangle;t&&n[t]&&(r=n[t]);const o={"top-right":{top:r,right:r},"bottom-right":{bottom:r,right:r},"top-left":{top:r,left:r},"bottom-left":{bottom:r,left:r}};return e&&o[e]?o[e]:o["top-right"]}};
|
|
211
|
-
`,
|
|
211
|
+
`,aP=Z(rP)`
|
|
212
212
|
display: flex;
|
|
213
213
|
flex-wrap: wrap;
|
|
214
214
|
place-content: center;
|
|
@@ -249,7 +249,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
249
249
|
transparent 60%
|
|
250
250
|
)
|
|
251
251
|
0px 4px 6px -4px`:"none"}};
|
|
252
|
-
`,oP={hidden:{opacity:0,transform:"scale(0)"},show:{opacity:1,transform:"scale(1)"}};function iP({children:e,isInvisible:t,disableAnimation:n,placement:r,shape:o,...i}){const a=u.useId(),s=n?{duration:0}:{type:"spring",bounce:.3};return O.jsxs(tP,{children:[e,O.jsx(nP,{placement:r,shape:o,children:O.jsx(ov,{children:!t&&O.jsx(Jn.div,{variants:oP,initial:n?"show":"hidden",transition:s,animate:"show",exit:"hidden",children:O.jsx(rP,{...i,isInvisible:t,showOutline:i.showOutline??!0})},`badge-${a}`)})})]})}function aP({children:e,...t}){return O.jsx("span",{...t,"aria-hidden":"true",children:e??O.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),O.jsx("path",{d:"M19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),O.jsx("path",{d:"M5 13C5.55228 13 6 12.5523 6 12C6 11.4477 5.55228 11 5 11C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function sP(e,t){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,...l}=e,c={};n!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:d}=Rr(e,t),{pressProps:f,isPressed:p}=Cn({onPress:r,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),h=me(l,{labelable:!0,isLink:n==="a"}),m=oe(d,f),b=ko();return{isPressed:p,linkProps:oe(h,{...m,...c,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:v=>{var $;($=f.onClick)===null||$===void 0||$.call(f,v),a&&(a(v),console.warn("onClick is deprecated, please use onPress")),!b.isNative&&v.currentTarget instanceof HTMLAnchorElement&&v.currentTarget.href&&!v.isDefaultPrevented()&&i5(v.currentTarget,v)&&(v.preventDefault(),b.open(v.currentTarget,v))}})}}function av(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:h,rel:m,type:b="button"}=e,v;n==="button"?v={type:b,disabled:r}:v={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:p,target:n==="a"?h:void 0,type:n==="input"?b:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?m:void 0};let{pressProps:$,isPressed:C}=Cn({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,isDisabled:r,preventFocusOnPress:c,ref:t}),{focusableProps:x}=Rr(e,t);d&&(x.tabIndex=r?-1:x.tabIndex);let E=oe(x,$,me(e,{labelable:!0}));return{isPressed:C,buttonProps:oe(v,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:w=>{f&&(f(w),console.warn("onClick is deprecated, please use onPress"))}})}}function lP(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=av({...e,onPress:wn(t.toggle,e.onPress)},n);return{isPressed:o,buttonProps:oe(i,{"aria-pressed":r})}}const sv=7e3;let ho=null;function Oi(e,t="assertive",n=sv){ho||(ho=new cP),ho.announce(e,t,n)}function uP(e){ho&&ho.clear(e)}class cP{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=sv){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="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 hc(e,t,n){let{validationBehavior:r,focus:o}=e;Se(()=>{if(r==="native"&&(n!=null&&n.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(fP(n.current))}});let i=Ne(()=>{t.resetValidation()}),a=Ne(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&n&&d&&pP(d)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),Gh("keyboard")}l.preventDefault()}),s=Ne(()=>{t.commitValidation()});u.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",s),c==null||c.addEventListener("reset",i),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",s),c==null||c.removeEventListener("reset",i)}},[n,a,s,i,r])}function dP(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function fP(e){return{isInvalid:!e.validity.valid,validationDetails:dP(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function pP(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const lv={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},uv={...lv,customError:!0,valid:!1},cr={isInvalid:!1,validationDetails:lv,validationErrors:[]},hP=u.createContext({}),Po="__formValidationState"+Date.now();function Or(e){if(e[Po]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[Po];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return mP(e)}function mP(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:i,validate:a,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:uv}:null,c=u.useMemo(()=>Kp(bP(a,o)),[a,o]);i!=null&&i.validationDetails.valid&&(i=null);let d=u.useContext(hP),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(M=>Hl(d[M])):Hl(d[r]):[],[d,r]),[p,h]=u.useState(d),[m,b]=u.useState(!1);d!==p&&(h(d),b(!1));let v=u.useMemo(()=>Kp(m?[]:f),[m,f]),$=u.useRef(cr),[C,x]=u.useState(cr),E=u.useRef(cr),w=()=>{if(!A)return;V(!1);let M=c||i||$.current;Us(M,E.current)||(E.current=M,x(M))},[A,V]=u.useState(!1);return u.useEffect(w),{realtimeValidation:l||v||c||i||cr,displayValidation:s==="native"?l||v||C:l||v||c||i||C,updateValidation(M){s==="aria"&&!Us(C,M)?x(M):$.current=M},resetValidation(){let M=cr;Us(M,E.current)||(E.current=M,x(M)),s==="native"&&V(!1),b(!0)},commitValidation(){s==="native"&&V(!0),b(!0)}}}function Hl(e){return e?Array.isArray(e)?e:[e]:[]}function bP(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Hl(n)}return[]}function Kp(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:uv}:null}function Us(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function cv(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:a,children:s,"aria-label":l,"aria-labelledby":c,validationState:d="valid",isInvalid:f}=e,p=A=>{A.stopPropagation(),t.setSelected(A.target.checked)},h=s!=null,m=l!=null||c!=null;!h&&!m&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:b,isPressed:v}=Cn({isDisabled:r}),{pressProps:$,isPressed:C}=Cn({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:x}=Rr(e,n),E=oe(b,x),w=me(e,{labelable:!0});return Mo(n,t.isSelected,t.setSelected),{labelProps:oe($,{onClick:A=>A.preventDefault()}),inputProps:oe(w,{"aria-invalid":f||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:p,disabled:r,...i==null?{}:{value:i},name:a,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:v||C,isDisabled:r,isReadOnly:o,isInvalid:f||d==="invalid"}}function No(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=nt(t);let a=nt(),s={};n?(r=r?`${a} ${r}`:a,s={id:a,htmlFor:i==="label"?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=zn({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function dv(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:a}=No(e),s=yn([!!t,!!n,r,o]),l=yn([!!t,!!n,r,o]);return a=oe(a,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:s},errorMessageProps:{id:l}}}function Va(e={}){let{isReadOnly:t}=e,[n,r]=Rt(e.isSelected,e.defaultSelected||!1,e.onChange);function o(a){t||r(a)}function i(){t||r(!n)}return{isSelected:n,setSelected:o,toggle:i}}function fv(e,t,n){let r=Or({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:a}=r.displayValidation,{labelProps:s,inputProps:l,isSelected:c,isPressed:d,isDisabled:f,isReadOnly:p}=cv({...e,isInvalid:o},t,n);hc(e,r,n);let{isIndeterminate:h,isRequired:m,validationBehavior:b="aria"}=e;return u.useEffect(()=>{n.current&&(n.current.indeterminate=!!h)}),{labelProps:s,inputProps:{...l,checked:c,"aria-required":m&&b==="aria"||void 0,required:m&&b==="native"},isSelected:c,isPressed:d,isDisabled:f,isReadOnly:p,isInvalid:o,validationErrors:i,validationDetails:a}}const vP=new WeakMap;function gP(e,t,n){const r=Va({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(v){v?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(v)}});let{name:o,descriptionId:i,errorMessageId:a,validationBehavior:s}=vP.get(t);var l;s=(l=e.validationBehavior)!==null&&l!==void 0?l:s;let{realtimeValidation:c}=Or({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),d=u.useRef(cr),f=()=>{t.setInvalid(e.value,c.isInvalid?c:d.current)};u.useEffect(f);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:c,h=s==="native"?t.displayValidation:p;var m;let b=fv({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(m=e.isRequired)!==null&&m!==void 0?m:t.isRequired,validationBehavior:s,[Po]:{realtimeValidation:p,displayValidation:h,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(v){d.current=v,f()}}},r,n);return{...b,inputProps:{...b.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,i].filter(Boolean).join(" ")||void 0}}}var pv={};pv={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var hv={};hv={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var mv={};mv={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var bv={};bv={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var vv={};vv={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var gv={};gv={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var yv={};yv={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var $v={};$v={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var xv={};xv={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var wv={};wv={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var Cv={};Cv={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var Ev={};Ev={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Dv={};Dv={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var Pv={};Pv={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var Sv={};Sv={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var Tv={};Tv={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var Av={};Av={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var kv={};kv={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var Mv={};Mv={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var Rv={};Rv={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Fv={};Fv={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var Bv={};Bv={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var Iv={};Iv={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Ov={};Ov={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Lv={};Lv={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var Vv={};Vv={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var Nv={};Nv={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var _v={};_v={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var Kv={};Kv={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var jv={};jv={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var zv={};zv={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var Uv={};Uv={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var Hv={};Hv={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var Gv={};Gv={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};function Gl(e){return Si()?e.altKey:e.ctrlKey}function dr(e){return sn()?e.metaKey:e.ctrlKey}const yP=1e3;function $P(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=u.useRef({search:"",timeout:null}).current,i=a=>{let s=xP(a.key);if(!s||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))return;s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s;let l=t.getKeyForSearch(o.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(n.setFocusedKey(l),r&&r(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},yP)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function xP(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function mc(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:h=r,linkBehavior:m="action"}=e,{direction:b}=Ze(),v=ko(),$=M=>{if(M.altKey&&M.key==="Tab"&&M.preventDefault(),!r.current.contains(M.target))return;const k=(G,D)=>{if(G!=null){if(t.isLink(G)&&m==="selection"&&l&&!Gl(M)){dn.flushSync(()=>{t.setFocusedKey(G,D)});let T=h.current.querySelector(`[data-key="${CSS.escape(G.toString())}"]`);v.open(T,M);return}if(t.setFocusedKey(G,D),t.isLink(G)&&m==="override")return;M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):l&&!Gl(M)&&t.replaceSelection(G)}};switch(M.key){case"ArrowDown":if(n.getKeyBelow){var R,S;M.preventDefault();let G=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n);G==null&&i&&(G=(S=n.getFirstKey)===null||S===void 0?void 0:S.call(n,t.focusedKey)),k(G)}break;case"ArrowUp":if(n.getKeyAbove){var F,K;M.preventDefault();let G=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(F=n.getLastKey)===null||F===void 0?void 0:F.call(n);G==null&&i&&(G=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n,t.focusedKey)),k(G)}break;case"ArrowLeft":if(n.getKeyLeftOf){var L,P;M.preventDefault();let G=n.getKeyLeftOf(t.focusedKey);G==null&&i&&(G=b==="rtl"?(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n,t.focusedKey):(P=n.getLastKey)===null||P===void 0?void 0:P.call(n,t.focusedKey)),k(G,b==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var W,J;M.preventDefault();let G=n.getKeyRightOf(t.focusedKey);G==null&&i&&(G=b==="rtl"?(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,t.focusedKey):(J=n.getFirstKey)===null||J===void 0?void 0:J.call(n,t.focusedKey)),k(G,b==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){M.preventDefault();let G=n.getFirstKey(t.focusedKey,dr(M));t.setFocusedKey(G),dr(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):l&&t.replaceSelection(G)}break;case"End":if(n.getLastKey){M.preventDefault();let G=n.getLastKey(t.focusedKey,dr(M));t.setFocusedKey(G),dr(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):l&&t.replaceSelection(G)}break;case"PageDown":if(n.getKeyPageBelow){M.preventDefault();let G=n.getKeyPageBelow(t.focusedKey);k(G)}break;case"PageUp":if(n.getKeyPageAbove){M.preventDefault();let G=n.getKeyPageAbove(t.focusedKey);k(G)}break;case"a":dr(M)&&t.selectionMode==="multiple"&&s!==!0&&(M.preventDefault(),t.selectAll());break;case"Escape":M.preventDefault(),a||t.clearSelection();break;case"Tab":if(!f){if(M.shiftKey)r.current.focus();else{let G=lt(r.current,{tabbable:!0}),D,T;do T=G.lastChild(),T&&(D=T);while(T);D&&!D.contains(document.activeElement)&&jt(D)}break}}},C=u.useRef({top:0,left:0});zi(h,"scroll",p?null:()=>{C.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let x=M=>{if(t.isFocused){M.currentTarget.contains(M.target)||t.setFocused(!1);return}if(M.currentTarget.contains(M.target)){if(t.setFocused(!0),t.focusedKey==null){let S=K=>{K!=null&&(t.setFocusedKey(K),l&&t.replaceSelection(K))},F=M.relatedTarget;var k,R;F&&M.currentTarget.compareDocumentPosition(F)&Node.DOCUMENT_POSITION_FOLLOWING?S((k=t.lastSelectedKey)!==null&&k!==void 0?k:n.getLastKey()):S((R=t.firstSelectedKey)!==null&&R!==void 0?R:n.getFirstKey())}else p||(h.current.scrollTop=C.current.top,h.current.scrollLeft=C.current.left);if(!p&&t.focusedKey!=null){let S=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);S&&(S.contains(document.activeElement)||jt(S),Gi()==="keyboard"&&al(S,{containingElement:r.current}))}}},E=M=>{M.currentTarget.contains(M.relatedTarget)||t.setFocused(!1)};const w=u.useRef(o);u.useEffect(()=>{if(w.current){let M=null;o==="first"&&(M=n.getFirstKey()),o==="last"&&(M=n.getLastKey());let k=t.selectedKeys;if(k.size){for(let R of k)if(t.canSelectItem(R)){M=R;break}}t.setFocused(!0),t.setFocusedKey(M),M==null&&!d&&Hn(r.current)}},[]);let A=u.useRef(t.focusedKey);u.useEffect(()=>{let M=Gi();if(t.isFocused&&t.focusedKey!=null&&(h!=null&&h.current)){let k=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);k&&(M==="keyboard"||w.current)&&(p||Vh(h.current,k),M!=="virtual"&&al(k,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&A.current!=null&&Hn(r.current),A.current=t.focusedKey,w.current=!1},[p,h,t.focusedKey,t.isFocused,r]);let V={onKeyDown:$,onFocus:x,onBlur:E,onMouseDown(M){h.current===M.target&&M.preventDefault()}},{typeSelectProps:y}=$P({keyboardDelegate:n,selectionManager:t});c||(V=oe(y,V));let I;return d||(I=t.focusedKey==null?0:-1),{collectionProps:{...V,tabIndex:I}}}function bc(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:a,isDisabled:s,onAction:l,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=ko(),p=P=>{if(P.pointerType==="keyboard"&&Gl(P))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(d==="selection"){f.open(r.current,P),t.setSelectedKeys(t.selectedKeys);return}else if(d==="override"||d==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):P&&P.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||P&&(dr(P)||P.pointerType==="touch"||P.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};u.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(a?a():document.activeElement!==r.current&&Hn(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),s=s||t.isDisabled(n);let h={};!i&&!s?h={tabIndex:n===t.focusedKey?0:-1,onFocus(P){P.target===r.current&&t.setFocusedKey(n)}}:s&&(h.onMouseDown=P=>{P.preventDefault()});let m=t.isLink(n)&&d==="override",b=t.isLink(n)&&d!=="selection"&&d!=="none",v=!s&&t.canSelectItem(n)&&!m,$=(l||b)&&!s,C=$&&(t.selectionBehavior==="replace"?!v:!v||t.isEmpty),x=$&&v&&t.selectionBehavior==="replace",E=C||x,w=u.useRef(null),A=E&&v,V=u.useRef(!1),y=u.useRef(!1),I=P=>{l&&l(),b&&f.open(r.current,P)},M={};o?(M.onPressStart=P=>{w.current=P.pointerType,V.current=A,P.pointerType==="keyboard"&&(!E||zp())&&p(P)},c?(M.onPressUp=C?null:P=>{P.pointerType!=="keyboard"&&v&&p(P)},M.onPress=C?I:null):M.onPress=P=>{if(C||x&&P.pointerType!=="mouse"){if(P.pointerType==="keyboard"&&!jp())return;I(P)}else P.pointerType!=="keyboard"&&v&&p(P)}):(M.onPressStart=P=>{w.current=P.pointerType,V.current=A,y.current=C,v&&(P.pointerType==="mouse"&&!C||P.pointerType==="keyboard"&&(!$||zp()))&&p(P)},M.onPress=P=>{(P.pointerType==="touch"||P.pointerType==="pen"||P.pointerType==="virtual"||P.pointerType==="keyboard"&&E&&jp()||P.pointerType==="mouse"&&y.current)&&(E?I(P):v&&p(P))}),h["data-key"]=n,M.preventFocusOnPress=i;let{pressProps:k,isPressed:R}=Cn(M),S=x?P=>{w.current==="mouse"&&(P.stopPropagation(),P.preventDefault(),I(P))}:void 0,{longPressProps:F}=qh({isDisabled:!A,onLongPress(P){P.pointerType==="touch"&&(p(P),t.setSelectionBehavior("toggle"))}}),K=P=>{w.current==="touch"&&V.current&&P.preventDefault()},L=t.isLink(n)?P=>{jn.isOpening||P.preventDefault()}:void 0;return{itemProps:oe(h,v||C?k:{},A?F:{},{onDoubleClick:S,onDragStartCapture:K,onClick:L}),isPressed:R,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:v,hasAction:E}}function jp(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function zp(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class vc{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let o=this.getItem(t);if(!o)return null;let i=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(i,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){let n=this.collection.getItem(t);if((n==null?void 0:n.type)==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!ji(n))return this.getFirstKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.max(0,i.x-a+i.width-o.width);for(;r&&i.x-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.max(0,i.y-a+i.height-o.height);for(;r&&i.y-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!ji(n))return this.getLastKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.min(n.scrollWidth,i.x-a-i.width+o.width);for(;r&&i.x-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.min(n.scrollHeight,i.y-a-i.height+o.height);for(;r&&i.y-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o),a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getKeyBelow(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.orientation=n.orientation,this.direction=n.direction,this.layout=n.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Wv(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i}=e,a=Fu({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,l=u.useMemo(()=>i||new vc(n,s==="selection"?new Set:r,o,a),[i,n,r,o,a,s]),{collectionProps:c}=mc({...e,ref:o,selectionManager:t,keyboardDelegate:l});return{listProps:c}}class wP{build(t,n){return this.context=n,Up(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];u.Children.forEach(n,a=>{o.push(a)});let i=0;for(let a of o){let s=this.getFullNode({element:a,index:i},{});for(let l of s)i++,yield l}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var a;let s=(a=i.key)!==null&&a!==void 0?a:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let l=this.cache.get(t.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=t.index,l.parentKey=o?o.key:null,yield l;return}i=n.renderer(t.value)}if(u.isValidElement(i)){let l=i.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let p=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${p}> in collection.`)}let c=l.getCollectionNode(i.props,this.context),d=t.index,f=c.next();for(;!f.done&&f.value;){let p=f.value;t.index=d;let h=p.key;h||(h=p.element?null:this.getKey(i,t,n,r));let b=[...this.getFullNode({...p,key:h,index:d,wrapper:CP(t.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${i.key}`:i.key,o)];for(let v of b){if(v.value=p.value||t.value,v.value&&this.cache.set(v.value,v),t.type&&v.type!==t.type)throw new Error(`Unsupported type <${Hs(v.type)}> in <${Hs(o.type)}>. Only <${Hs(t.type)}> is supported.`);d++,yield v}f=c.next(b)}return}if(t.key==null)return;let a=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Up(function*(){if(!t.hasChildNodes)return;let l=0;for(let c of t.childNodes()){c.key!=null&&(c.key=`${s.key}${c.key}`),c.index=l;let d=a.getFullNode(c,a.getChildState(n,c),s.key,s);for(let f of d)l++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function Up(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function CP(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Hs(e){return e[0].toUpperCase()+e.slice(1)}function Yv(e,t,n){let r=u.useMemo(()=>new wP,[]),{children:o,items:i,collection:a}=e;return u.useMemo(()=>{if(a)return a;let l=r.build({children:o,items:i},n);return t(l)},[r,o,i,a,n,t])}function Na(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function EP(e){return DP(e,0)}function DP(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Gs(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Hp(e,t),t],o=[...Hp(e,n),n],i=r.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function Hp(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const Gp=new WeakMap;function gc(e){let t=Gp.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(Na(o,e)):t++};return n(e),Gp.set(e,t),t}const _a=new WeakMap;function PP(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function qv(e,t){let n=_a.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${PP(t)}`}function SP(e,t,n){let r=me(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:a}=Wv({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=Mr({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=nt(e.id);_a.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:c,fieldProps:d}=No({...e,id:l,labelElementType:"span"});return{labelProps:c,listBoxProps:oe(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...oe(d,a)})}}function TP(e,t,n){var r;let{key:o}=e,i=_a.get(t);var a;let s=(a=e.isDisabled)!==null&&a!==void 0?a:t.disabledKeys.has(o);var l;let c=(l=e.isSelected)!==null&&l!==void 0?l:t.selectionManager.isSelected(o);var d;let f=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:i==null?void 0:i.shouldSelectOnPressUp;var p;let h=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:i==null?void 0:i.shouldFocusOnHover;var m;let b=(m=e.shouldUseVirtualFocus)!==null&&m!==void 0?m:i==null?void 0:i.shouldUseVirtualFocus;var v;let $=(v=e.isVirtualized)!==null&&v!==void 0?v:i==null?void 0:i.isVirtualized,C=yn(),x=yn(),E={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};sn()&&hu()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=C,E["aria-describedby"]=x);let w=t.collection.getItem(o);if($){let S=Number(w==null?void 0:w.index);E["aria-posinset"]=Number.isNaN(S)?void 0:S+1,E["aria-setsize"]=gc(t.collection)}let{itemProps:A,isPressed:V,isFocused:y,hasAction:I,allowsSelection:M}=bc({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:$,shouldUseVirtualFocus:b,isDisabled:s,onAction:i!=null&&i.onAction?()=>{var S;return i==null||(S=i.onAction)===null||S===void 0?void 0:S.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:k}=Ye({isDisabled:s||!h,onHoverStart(){wr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),R=me(w==null?void 0:w.props,{isLink:!!(!(w==null||(r=w.props)===null||r===void 0)&&r.href)});return delete R.id,{optionProps:{...E,...oe(R,A,k),id:qv(t,o)},labelProps:{id:C},descriptionProps:{id:x},isFocused:y,isFocusVisible:y&&wr(),isSelected:c,isDisabled:s,isPressed:V,allowsSelection:M,hasAction:I}}function AP(e){let{heading:t,"aria-label":n}=e,r=nt();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Zv={};Zv={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Xv={};Xv={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Jv={};Jv={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Qv={};Qv={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var eg={};eg={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var tg={};tg={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var ng={};ng={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var rg={};rg={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var og={};og={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var ig={};ig={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var ag={};ag={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var sg={};sg={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var lg={};lg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var ug={};ug={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var cg={};cg={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var dg={};dg={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var fg={};fg={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var pg={};pg={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var hg={};hg={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var mg={};mg={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var bg={};bg={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var vg={};vg={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var gg={};gg={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var yg={};yg={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var $g={};$g={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var xg={};xg={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var wg={};wg={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Cg={};Cg={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Eg={};Eg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Dg={};Dg={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Pg={};Pg={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Sg={};Sg={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Tg={};Tg={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Ag={};Ag={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function kP(e){return e&&e.__esModule?e.default:e}var kg={};kg={"ar-AE":Zv,"bg-BG":Xv,"cs-CZ":Jv,"da-DK":Qv,"de-DE":eg,"el-GR":tg,"en-US":ng,"es-ES":rg,"et-EE":og,"fi-FI":ig,"fr-FR":ag,"he-IL":sg,"hr-HR":lg,"hu-HU":ug,"it-IT":cg,"ja-JP":dg,"ko-KR":fg,"lt-LT":pg,"lv-LV":hg,"nb-NO":mg,"nl-NL":bg,"pl-PL":vg,"pt-BR":gg,"pt-PT":yg,"ro-RO":$g,"ru-RU":xg,"sk-SK":wg,"sl-SI":Cg,"sr-SP":Eg,"sv-SE":Dg,"tr-TR":Pg,"uk-UA":Sg,"zh-CN":Tg,"zh-TW":Ag};function MP(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=nt(),{triggerProps:s,overlayProps:l}=gw({type:r},t,n),c=h=>{if(!o&&!(i==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},d=Fr(kP(kg),"@react-aria/menu"),{longPressProps:f}=qh({isDisabled:o||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&t.toggle(h.pointerType==="virtual"?"first":null)},onPress(h){h.pointerType==="touch"&&!o&&t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?p:f,id:a,onKeyDown:c},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const Mg=new WeakMap;function RP(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=me(e,{labelable:!0}),{listProps:l}=Wv({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Mg.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:oe(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...l,onKeyDown:c=>{c.key!=="Escape"&&l.onKeyDown(c)}})}}function Rg(e,t,n){var r;let{key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":s,onPressStart:l,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:p,onHoverStart:h,onHoverChange:m,onHoverEnd:b,onKeyDown:v,onKeyUp:$,onFocus:C,onFocusChange:x,onBlur:E}=e,w=!!s;var A;let V=(A=e.isDisabled)!==null&&A!==void 0?A:t.disabledKeys.has(o);var y;let I=(y=e.isSelected)!==null&&y!==void 0?y:t.selectionManager.isSelected(o),M=Mg.get(t),k=e.onClose||M.onClose,R=w?()=>{}:e.onAction||M.onAction,S=ko(),F=ee=>{R&&R(o),ee.target instanceof HTMLAnchorElement&&S.open(ee.target,ee)},K="menuitem";w||(t.selectionManager.selectionMode==="single"?K="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(K="menuitemcheckbox"));let L=yn(),P=yn(),W=yn(),J={"aria-disabled":V||void 0,role:K,"aria-label":e["aria-label"],"aria-labelledby":L,"aria-describedby":[P,W].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};t.selectionManager.selectionMode!=="none"&&!w&&(J["aria-checked"]=I);let G=t.collection.getItem(o);a&&(J["aria-posinset"]=G==null?void 0:G.index,J["aria-setsize"]=gc(t.collection));let D=ee=>{ee.pointerType==="keyboard"&&F(ee),l==null||l(ee)},T=ee=>{ee.pointerType!=="keyboard"&&(F(ee),!w&&k&&(i??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(o)))&&k()),c==null||c(ee)},{itemProps:z,isFocused:H}=bc({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:Z,isPressed:N}=Cn({onPressStart:D,onPress:d,onPressUp:T,onPressChange:f,onPressEnd:p,isDisabled:V}),{hoverProps:j}=Ye({isDisabled:V,onHoverStart(ee){wr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),h==null||h(ee)},onHoverChange:m,onHoverEnd:b}),{keyboardProps:_}=yu({onKeyDown:ee=>{if(ee.repeat){ee.continuePropagation();return}switch(ee.key){case" ":!V&&t.selectionManager.selectionMode==="none"&&!w&&i!==!1&&k&&k();break;case"Enter":!V&&i!==!1&&!w&&k&&k();break;default:w||ee.continuePropagation(),v==null||v(ee);break}},onKeyUp:$}),{focusProps:Q}=Ea({onBlur:E,onFocus:C,onFocusChange:x}),ne=me(G.props,{isLink:!!(!(G==null||(r=G.props)===null||r===void 0)&&r.href)});return delete ne.id,{menuItemProps:{...J,...oe(ne,w?{onFocus:z.onFocus}:z,Z,j,_,Q),tabIndex:z.tabIndex!=null?-1:void 0},labelProps:{id:L},descriptionProps:{id:P},keyboardShortcutProps:{id:W},isFocused:H,isSelected:I,isPressed:N,isDisabled:V}}function FP(e){let{heading:t,"aria-label":n}=e,r=nt();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}const Ei=2,BP=50,IP=1e3,Wp=Math.PI/12;function OP(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:o}=e,i=u.useRef(),a=u.useRef(),s=u.useRef(0),l=u.useRef(),c=u.useRef(),d=u.useRef(),f=u.useRef(2),[p,h]=u.useState(!1);bu({ref:n,onResize:()=>{n.current&&(a.current=n.current.getBoundingClientRect(),d.current=void 0)}});let b=()=>{h(!1),f.current=Ei},v=T5();u.useEffect(()=>{p&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,p]),u.useEffect(()=>{let $=n.current,C=t.current;if(o||!$||!r||v!=="pointer"){b();return}a.current=$.getBoundingClientRect();let x=E=>{if(E.pointerType==="touch"||E.pointerType==="pen")return;let w=Date.now();if(w-s.current<BP)return;clearTimeout(l.current),clearTimeout(c.current);let{clientX:A,clientY:V}=E;if(!i.current){i.current={x:A,y:V};return}if(!a.current)return;if(d.current||(d.current=A>a.current.right?"left":"right"),A<C.getBoundingClientRect().left||A>C.getBoundingClientRect().right||V<C.getBoundingClientRect().top||V>C.getBoundingClientRect().bottom){b();return}let y=i.current.x,I=i.current.y,M=d.current==="right"?a.current.left-y:y-a.current.right,k=Math.atan2(I-a.current.top,M)+Wp,R=Math.atan2(I-a.current.bottom,M)-Wp,S=Math.atan2(I-V,d.current==="left"?-(A-y):A-y),F=S<k&&S>R;f.current=F?Math.min(f.current+1,Ei):Math.max(f.current-1,0),f.current>=Ei?h(!0):h(!1),s.current=w,i.current={x:A,y:V},F&&(l.current=setTimeout(()=>{b(),c.current=setTimeout(()=>{let K=document.elementFromPoint(A,V);K&&C.contains(K)&&K.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},IP))};return window.addEventListener("pointermove",x),()=>{window.removeEventListener("pointermove",x),clearTimeout(l.current),clearTimeout(c.current),f.current=Ei}},[o,r,t,v,h,n])}function LP(e,t,n){let{parentMenuRef:r,submenuRef:o,type:i="menu",isDisabled:a,node:s,delay:l=200}=e,c=nt(),d=nt(),{direction:f}=Ze(),p=u.useRef(),h=u.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=void 0)},[p]),m=Ne(y=>{h(),t.open(y)}),b=Ne(()=>{h(),t.close()});Se(()=>()=>{h()},[h]);let v=y=>{switch(y.key){case"ArrowLeft":f==="ltr"&&y.currentTarget.contains(y.target)&&(y.stopPropagation(),b(),n.current.focus());break;case"ArrowRight":f==="rtl"&&y.currentTarget.contains(y.target)&&(y.stopPropagation(),b(),n.current.focus());break;case"Escape":y.stopPropagation(),t.closeAll();break}},$={id:d,"aria-label":s.textValue,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:t.focusStrategy,onKeyDown:v}},C=y=>{switch(y.key){case"ArrowRight":a||(f==="ltr"?(t.isOpen||m("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?b():y.continuePropagation());break;case"ArrowLeft":a||(f==="rtl"?(t.isOpen||m("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?b():y.continuePropagation());break;case"Escape":t.closeAll();break;default:y.continuePropagation();break}},x=y=>{!a&&(y.pointerType==="virtual"||y.pointerType==="keyboard")&&m("first")},E=y=>{!a&&(y.pointerType==="touch"||y.pointerType==="mouse")&&m()},w=y=>{a||(y&&!t.isOpen?p.current||(p.current=setTimeout(()=>{m()},l)):y||h())},A=y=>{t.isOpen&&r.current.contains(y.relatedTarget)&&b()},V=y=>y!==n.current;return OP({menuRef:r,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:c,"aria-controls":t.isOpen?d:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:E,onHoverChange:w,onKeyDown:C,onBlur:A,isOpen:t.isOpen},submenuProps:$,popoverProps:{isNonModal:!0,disableFocusManagement:!0,shouldCloseOnInteractOutside:V}}}function yc(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:a="text",validationBehavior:s="aria"}=e,[l,c]=Rt(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=Rr(e,t),f=Or({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:m}=f.displayValidation,{labelProps:b,fieldProps:v,descriptionProps:$,errorMessageProps:C}=dv({...e,isInvalid:p,errorMessage:e.errorMessage||h}),x=me(e,{labelable:!0});const E={type:a,pattern:e.pattern};return Mo(t,l,c),hc(e,f,t),u.useEffect(()=>{if(t.current instanceof Tt(t.current).HTMLTextAreaElement){let w=t.current;Object.defineProperty(w,"defaultValue",{get:()=>w.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:oe(x,n==="input"&&E,{disabled:r,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:w=>c(w.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...v}),descriptionProps:$,errorMessageProps:C,isInvalid:p,validationErrors:h,validationDetails:m}}function Yp(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function VP(e,t,n){let r=Ne(f=>{let p=n.current,h;switch(f.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":h=p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentForward":h=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd+1):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentBackward":h=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart-1)+p.value.slice(p.selectionStart):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":h=p.value.slice(p.selectionStart);break;default:f.data!=null&&(h=p.value.slice(0,p.selectionStart)+f.data+p.value.slice(p.selectionEnd));break}(h==null||!t.validate(h))&&f.preventDefault()});u.useEffect(()=>{if(!Yp())return;let f=n.current;return f.addEventListener("beforeinput",r,!1),()=>{f.removeEventListener("beforeinput",r,!1)}},[n,r]);let o=Yp()?null:f=>{let p=f.target.value.slice(0,f.target.selectionStart)+f.data+f.target.value.slice(f.target.selectionEnd);t.validate(p)||f.preventDefault()},{labelProps:i,inputProps:a,descriptionProps:s,errorMessageProps:l,...c}=yc(e,n),d=u.useRef(null);return{inputProps:oe(a,{onBeforeInput:o,onCompositionStart(){let{value:f,selectionStart:p,selectionEnd:h}=n.current;d.current={value:f,selectionStart:p,selectionEnd:h}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:f,selectionStart:p,selectionEnd:h}=d.current;n.current.value=f,n.current.setSelectionRange(p,h),t.setInputValue(f)}}}),labelProps:i,descriptionProps:s,errorMessageProps:l,...c}}function NP(e){return e&&e.__esModule?e.default:e}var Fg={};Fg={"ar-AE":pv,"bg-BG":hv,"cs-CZ":mv,"da-DK":bv,"de-DE":vv,"el-GR":gv,"en-US":yv,"es-ES":$v,"et-EE":xv,"fi-FI":wv,"fr-FR":Cv,"he-IL":Ev,"hr-HR":Dv,"hu-HU":Pv,"it-IT":Sv,"ja-JP":Tv,"ko-KR":Av,"lt-LT":kv,"lv-LV":Mv,"nb-NO":Rv,"nl-NL":Fv,"pl-PL":Bv,"pt-BR":Iv,"pt-PT":Ov,"ro-RO":Lv,"ru-RU":Vv,"sk-SK":Nv,"sl-SI":_v,"sr-SP":Kv,"sv-SE":jv,"tr-TR":zv,"uk-UA":Uv,"zh-CN":Hv,"zh-TW":Gv};function _P(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:a,shouldFocusWrap:s,isReadOnly:l,isDisabled:c}=e,d=Fr(NP(Fg),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:p}=MP({type:"listbox",isDisabled:c||l},t,n);_a.set(t,{id:p.id});let h=u.useMemo(()=>a||new vc(t.collection,t.disabledKeys,i),[a,t.collection,t.disabledKeys,i]),{collectionProps:m}=mc({selectionManager:t.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),b=ko(),v=j=>{switch(j.key){case"Enter":case"Tab":if(t.isOpen&&j.key==="Enter"&&j.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(j.key==="Enter"){let _=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);_ instanceof HTMLAnchorElement&&b.open(_,j)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&j.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},$=j=>{var _;j.relatedTarget===(n==null?void 0:n.current)||!((_=r.current)===null||_===void 0)&&_.contains(j.relatedTarget)||(e.onBlur&&e.onBlur(j),t.setFocused(!1))},C=j=>{t.isFocused||(e.onFocus&&e.onFocus(j),t.setFocused(!0))},{isInvalid:x,validationErrors:E,validationDetails:w}=t.displayValidation,{labelProps:A,inputProps:V,descriptionProps:y,errorMessageProps:I}=yc({...e,onChange:t.setInputValue,onKeyDown:l?e.onKeyDown:wn(t.isOpen&&m.onKeyDown,v,e.onKeyDown),onBlur:$,value:t.inputValue,onFocus:C,autoComplete:"off",validate:void 0,[Po]:t},o),M=j=>{j.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},k=j=>{j.pointerType!=="touch"&&(o.current.focus(),t.toggle(j.pointerType==="keyboard"||j.pointerType==="virtual"?"first":null,"manual"))},R=zn({id:f.id,"aria-label":d.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),S=zn({id:p.id,"aria-label":d.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),F=u.useRef(0),K=j=>{if(c||l)return;if(j.timeStamp-F.current<500){j.preventDefault(),o.current.focus();return}let _=j.target.getBoundingClientRect(),Q=j.changedTouches[0],ne=Math.ceil(_.left+.5*_.width),ee=Math.ceil(_.top+.5*_.height);Q.clientX===ne&&Q.clientY===ee&&(j.preventDefault(),o.current.focus(),t.toggle(null,"manual"),F.current=j.timeStamp)},L=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var P;let W=(P=L==null?void 0:L.parentKey)!==null&&P!==void 0?P:null;var J;let G=(J=t.selectionManager.focusedKey)!==null&&J!==void 0?J:null,D=u.useRef(W),T=u.useRef(G);u.useEffect(()=>{if(Si()&&L!=null&&G!==T.current){let j=t.selectionManager.isSelected(G),_=W!=null?t.collection.getItem(W):null,Q=(_==null?void 0:_["aria-label"])||(typeof(_==null?void 0:_.rendered)=="string"?_.rendered:"")||"",ne=d.format("focusAnnouncement",{isGroupChange:_&&W!==D.current,groupTitle:Q,groupCount:_?[...Na(_,t.collection)].length:0,optionText:L["aria-label"]||L.textValue||"",isSelected:j});Oi(ne)}D.current=W,T.current=G});let z=gc(t.collection),H=u.useRef(z),Z=u.useRef(t.isOpen);u.useEffect(()=>{let j=t.isOpen!==Z.current&&(t.selectionManager.focusedKey==null||Si());if(t.isOpen&&(j||z!==H.current)){let _=d.format("countAnnouncement",{optionCount:z});Oi(_)}H.current=z,Z.current=t.isOpen});let N=u.useRef(t.selectedKey);return u.useEffect(()=>{if(Si()&&t.isFocused&&t.selectedItem&&t.selectedKey!==N.current){let j=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",_=d.format("selectedAnnouncement",{optionText:j});Oi(_)}N.current=t.selectedKey}),u.useEffect(()=>{if(t.isOpen)return Iu([o.current,r.current])},[t.isOpen,o,r]),{labelProps:A,buttonProps:{...f,...R,excludeFromTabOrder:!0,onPress:M,onPressStart:k,isDisabled:c||l},inputProps:oe(V,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":L?qv(t,L.key):void 0,onTouchEnd:K,autoCorrect:"off",spellCheck:"false"}),listBoxProps:oe(p,S,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:y,errorMessageProps:I,isInvalid:x,validationErrors:E,validationDetails:w}}var Bg={};Bg={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Ig={};Ig={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Og={};Og={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Lg={};Lg={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Vg={};Vg={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var Ng={};Ng={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var _g={};_g={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var Kg={};Kg={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var jg={};jg={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var zg={};zg={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var Ug={};Ug={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var Hg={};Hg={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var Gg={};Gg={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Wg={};Wg={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var Yg={};Yg={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var qg={};qg={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var Zg={};Zg={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var Xg={};Xg={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var Jg={};Jg={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var Qg={};Qg={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var ey={};ey={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var ty={};ty={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var ny={};ny={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var ry={};ry={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var oy={};oy={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var iy={};iy={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var ay={};ay={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var sy={};sy={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var ly={};ly={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var uy={};uy={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var cy={};cy={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var dy={};dy={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var fy={};fy={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var py={};py={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var hy={};hy={Empty:"فارغ"};var my={};my={Empty:"Изпразни"};var by={};by={Empty:"Prázdné"};var vy={};vy={Empty:"Tom"};var gy={};gy={Empty:"Leer"};var yy={};yy={Empty:"Άδειο"};var $y={};$y={Empty:"Empty"};var xy={};xy={Empty:"Vacío"};var wy={};wy={Empty:"Tühjenda"};var Cy={};Cy={Empty:"Tyhjä"};var Ey={};Ey={Empty:"Vide"};var Dy={};Dy={Empty:"ריק"};var Py={};Py={Empty:"Prazno"};var Sy={};Sy={Empty:"Üres"};var Ty={};Ty={Empty:"Vuoto"};var Ay={};Ay={Empty:"空"};var ky={};ky={Empty:"비어 있음"};var My={};My={Empty:"Tuščias"};var Ry={};Ry={Empty:"Tukšs"};var Fy={};Fy={Empty:"Tom"};var By={};By={Empty:"Leeg"};var Iy={};Iy={Empty:"Pusty"};var Oy={};Oy={Empty:"Vazio"};var Ly={};Ly={Empty:"Vazio"};var Vy={};Vy={Empty:"Gol"};var Ny={};Ny={Empty:"Не заполнено"};var _y={};_y={Empty:"Prázdne"};var Ky={};Ky={Empty:"Prazen"};var jy={};jy={Empty:"Prazno"};var zy={};zy={Empty:"Tomt"};var Uy={};Uy={Empty:"Boş"};var Hy={};Hy={Empty:"Пусто"};var Gy={};Gy={Empty:"空"};var Wy={};Wy={Empty:"空白"};function KP(e){return e&&e.__esModule?e.default:e}var Yy={};Yy={"ar-AE":hy,"bg-BG":my,"cs-CZ":by,"da-DK":vy,"de-DE":gy,"el-GR":yy,"en-US":$y,"es-ES":xy,"et-EE":wy,"fi-FI":Cy,"fr-FR":Ey,"he-IL":Dy,"hr-HR":Py,"hu-HU":Sy,"it-IT":Ty,"ja-JP":Ay,"ko-KR":ky,"lt-LT":My,"lv-LV":Ry,"nb-NO":Fy,"nl-NL":By,"pl-PL":Iy,"pt-BR":Oy,"pt-PT":Ly,"ro-RO":Vy,"ru-RU":Ny,"sk-SK":_y,"sl-SI":Ky,"sr-SP":jy,"sv-SE":zy,"tr-TR":Uy,"uk-UA":Hy,"zh-CN":Gy,"zh-TW":Wy};function qy(e){const t=u.useRef();let{value:n,textValue:r,minValue:o,maxValue:i,isDisabled:a,isReadOnly:s,isRequired:l,onIncrement:c,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:h,onIncrementToMax:m}=e;const b=Fr(KP(Yy),"@react-aria/spinbutton"),v=()=>clearTimeout(t.current);u.useEffect(()=>()=>v(),[]);let $=k=>{if(!(k.ctrlKey||k.metaKey||k.shiftKey||k.altKey||s))switch(k.key){case"PageUp":if(d){k.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":c&&(k.preventDefault(),c==null||c());break;case"PageDown":if(p){k.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":f&&(k.preventDefault(),f==null||f());break;case"Home":h&&(k.preventDefault(),h==null||h());break;case"End":m&&(k.preventDefault(),m==null||m());break}},C=u.useRef(!1),x=()=>{C.current=!0},E=()=>{C.current=!1},w=r===""?b.format("Empty"):(r||`${n}`).replace("-","−");u.useEffect(()=>{C.current&&(uP("assertive"),Oi(w,"assertive"))},[w]);const A=Ne(k=>{v(),c==null||c(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n<i)&&A(60)},k)}),V=Ne(k=>{v(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&V(60)},k)});let y=k=>{k.preventDefault()},{addGlobalListener:I,removeAllGlobalListeners:M}=kr();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":w,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":a||void 0,"aria-readonly":s||void 0,"aria-required":l||void 0,onKeyDown:$,onFocus:x,onBlur:E},incrementButtonProps:{onPressStart:()=>{A(400),I(window,"contextmenu",y)},onPressEnd:()=>{v(),M()},onFocus:x,onBlur:E},decrementButtonProps:{onPressStart:()=>{V(400),I(window,"contextmenu",y)},onPressEnd:()=>{v(),M()},onFocus:x,onBlur:E}}}function Zy(e){return e&&e.__esModule?e.default:e}var $c={};$c={"ar-AE":Bg,"bg-BG":Ig,"cs-CZ":Og,"da-DK":Lg,"de-DE":Vg,"el-GR":Ng,"en-US":_g,"es-ES":Kg,"et-EE":jg,"fi-FI":zg,"fr-FR":Ug,"he-IL":Hg,"hr-HR":Gg,"hu-HU":Wg,"it-IT":Yg,"ja-JP":qg,"ko-KR":Zg,"lt-LT":Xg,"lv-LV":Jg,"nb-NO":Qg,"nl-NL":ey,"pl-PL":ty,"pt-BR":ny,"pt-PT":ry,"ro-RO":oy,"ru-RU":iy,"sk-SK":ay,"sl-SI":sy,"sr-SP":ly,"sv-SE":uy,"tr-TR":cy,"uk-UA":dy,"zh-CN":fy,"zh-TW":py};function jP(e,t,n){let{direction:r}=Ze(),o=u.useMemo(()=>Jh(t),[t]),i=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?o.focusNext():o.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?o.focusPrevious():o.focusNext();break}},a=()=>{var l;let c=(l=window.event)===null||l===void 0?void 0:l.target,d=lt(t.current,{tabbable:!0});if(c&&(d.currentNode=c,c=d.previousNode()),!c){let f;do f=d.lastChild(),f&&(c=f);while(f)}for(;c!=null&&c.hasAttribute("data-placeholder");){let f=d.previousNode();if(f&&f.hasAttribute("data-placeholder"))c=f;else break}c&&c.focus()},{pressProps:s}=Cn({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){l.pointerType!=="mouse"&&a()}});return oe(s,{onKeyDown:i})}const Xy=new WeakMap,Ws="__role_"+Date.now(),zP="__focusManager_"+Date.now();function xc(e,t,n){var r;let{isInvalid:o,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:c,errorMessageProps:d}=dv({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),f=u.useRef(null),{focusWithinProps:p}=Mr({...e,onFocusWithin(M){var k;f.current=t.value,(k=e.onFocus)===null||k===void 0||k.call(e,M)},onBlurWithin:M=>{var k;t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),(k=e.onBlur)===null||k===void 0||k.call(e,M)},onFocusWithinChange:e.onFocusChange}),h=Fr(Zy($c),"@react-aria/datepicker"),m=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",b=t.maxGranularity==="hour"?"time":"date",v=t.value?h.format(m,{[b]:t.formatValue({month:"long"})}):"",$=Lh(v),C=e[Ws]==="presentation"?l["aria-describedby"]:[$["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[zP],E=u.useMemo(()=>x||Jh(n),[x,n]),w=jP(t,n,e[Ws]==="presentation");Xy.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:E});let A=u.useRef(e.autoFocus),V;e[Ws]==="presentation"?V={role:"presentation"}:V=oe(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),u.useEffect(()=>{A.current&&E.focusFirst(),A.current=!1},[E]),Mo(e.inputRef,t.value,t.setValue),hc({...e,focus(){E.focusFirst()}},t,e.inputRef);let y={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||""};e.validationBehavior==="native"&&(y.type="text",y.hidden=!0,y.required=e.isRequired,y.onChange=()=>{});let I=me(e);return{labelProps:{...s,onClick:()=>{E.focusFirst()}},fieldProps:oe(I,V,w,p,{onKeyDown(M){e.onKeyDown&&e.onKeyDown(M)},onKeyUp(M){e.onKeyUp&&e.onKeyUp(M)}}),inputProps:y,descriptionProps:c,errorMessageProps:d,isInvalid:o,validationErrors:i,validationDetails:a}}function UP(e,t,n){var r;let o=xc(e,t,n);return o.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",o}function HP(){let{locale:e}=Ze(),t=Mm(Zy($c),"@react-aria/datepicker");return u.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new GP(e,t)}},[e,t])}class GP{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function WP(e,t,n){let r=u.useRef(""),{locale:o}=Ze(),i=HP(),{ariaLabel:a,ariaLabelledBy:s,ariaDescribedBy:l,focusManager:c}=Xy.get(t),d=e.isPlaceholder?"":e.text,f=u.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=pi({month:"long",timeZone:f.timeZone}),h=pi({hour:"numeric",hour12:f.hour12,timeZone:f.timeZone});if(e.type==="month"&&!e.isPlaceholder){let P=p.format(t.dateValue);d=P!==d?`${d} – ${P}`:P}else e.type==="hour"&&!e.isPlaceholder&&(d=h.format(t.dateValue));let{spinButtonProps:m}=qy({value:e.value,textValue:d,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",t.setSegment(e.type,e.minValue)}}),b=u.useMemo(()=>new Ru(o,{maximumFractionDigits:0}),[o]),v=()=>{if(b.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let P=e.text.slice(0,-1),W=b.parse(P);P.length===0||W===0?t.clearSegment(e.type):t.setSegment(e.type,W),r.current=P}else e.type==="dayPeriod"&&t.clearSegment(e.type)},$=P=>{if(P.key==="a"&&(sn()?P.metaKey:P.ctrlKey)&&P.preventDefault(),!(P.ctrlKey||P.metaKey||P.shiftKey||P.altKey))switch(P.key){case"Backspace":case"Delete":P.preventDefault(),P.stopPropagation(),v();break}},{startsWith:C}=Rm({sensitivity:"base"}),x=pi({hour:"numeric",hour12:!0}),E=u.useMemo(()=>{let P=new Date;return P.setHours(0),x.formatToParts(P).find(W=>W.type==="dayPeriod").value},[x]),w=u.useMemo(()=>{let P=new Date;return P.setHours(12),x.formatToParts(P).find(W=>W.type==="dayPeriod").value},[x]),A=pi({year:"numeric",era:"narrow",timeZone:"UTC"}),V=u.useMemo(()=>{if(e.type!=="era")return[];let P=ut(new Ge(1,1,1),t.calendar),W=t.calendar.getEras().map(G=>{let D=P.set({year:1,month:1,day:1,era:G}).toDate("UTC"),z=A.formatToParts(D).find(H=>H.type==="era").value;return{era:G,formatted:z}}),J=YP(W.map(G=>G.formatted));if(J)for(let G of W)G.formatted=G.formatted.slice(J);return W},[A,t.calendar,e.type]),y=P=>{if(t.isDisabled||t.isReadOnly)return;let W=r.current+P;switch(e.type){case"dayPeriod":if(C(E,P))t.setSegment("dayPeriod",0);else if(C(w,P))t.setSegment("dayPeriod",12);else break;c.focusNext();break;case"era":{let J=V.find(G=>C(G.formatted,P));J&&(t.setSegment("era",J.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!b.isValidPartialNumber(W))return;let J=b.parse(W),G=J,D=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":J>11&&(G=b.parse(P));break;case"h12":D=!1,J>12&&(G=b.parse(P));break}e.value>=12&&J>1&&(J+=12)}else J>e.maxValue&&(G=b.parse(P));if(isNaN(J))return;let T=G!==0||D;T&&t.setSegment(e.type,G),+(J+"0")>e.maxValue||W.length>=String(e.maxValue).length?(r.current="",T&&c.focusNext()):r.current=W;break}}},I=()=>{r.current="",al(n.current,{containingElement:vo(n.current)}),window.getSelection().collapse(n.current)},M=u.useRef("");zi(n,"beforeinput",P=>{switch(P.preventDefault(),P.inputType){case"deleteContentBackward":case"deleteContentForward":b.isValidPartialNumber(e.text)&&!t.isReadOnly&&v();break;case"insertCompositionText":M.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:P.data!=null&&y(P.data);break}}),zi(n,"input",P=>{let{inputType:W,data:J}=P;switch(W){case"insertCompositionText":n.current.textContent=M.current,(C(E,J)||C(w,J))&&y(J);break}}),Se(()=>{let P=n.current;return()=>{document.activeElement===P&&(c.focusPrevious()||c.focusNext())}},[n,c]);let k=Ar()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},R=u.useMemo(()=>t.segments.find(P=>P.isEditable),[t.segments]);e!==R&&!t.isInvalid&&(l=void 0);let S=nt(),F=!t.isDisabled&&!t.isReadOnly&&e.isEditable,K=e.type==="literal"?"":i.of(e.type),L=zn({"aria-label":`${K}${a?`, ${a}`:""}${s?", ":""}`,"aria-labelledby":s});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:oe(m,L,{id:S,...k,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:F,suppressContentEditableWarning:F,spellCheck:F?"false":void 0,autoCapitalize:F?"off":void 0,autoCorrect:F?"off":void 0,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:F?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!F?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:$,onFocus:I,style:{caretColor:"transparent"},onPointerDown(P){P.stopPropagation()},onMouseDown(P){P.stopPropagation()}})}}function YP(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function qP(e,t){let{role:n="dialog"}=e,r=yn();r=e["aria-label"]?void 0:r;let o=u.useRef(!1);return u.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Hn(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),Hn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),$0(),{dialogProps:{...me(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function Jy(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=me(e,{labelable:!0}),{labelProps:l,fieldProps:c}=No({...e,labelElementType:"span"});t=At(t,n,r);let d=(t-n)/(r-n),f=oa(a);if(!i&&!o){let p=a.style==="percent"?d:t;o=f.format(p)}return{progressBarProps:oe(s,{...c,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}function ZP(e){let{progressBarProps:t,labelProps:n}=Jy(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}var Qy={};Qy={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var e$={};e$={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var t$={};t$={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var n$={};n$={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var r$={};r$={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var o$={};o$={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var i$={};i$={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var a$={};a$={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var s$={};s$={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var l$={};l$={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var u$={};u$={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var c$={};c$={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var d$={};d$={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var f$={};f$={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var p$={};p$={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var h$={};h$={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var m$={};m$={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var b$={};b$={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var v$={};v$={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var g$={};g$={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var y$={};y$={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var $$={};$$={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var x$={};x$={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var w$={};w$={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var C$={};C$={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var E$={};E$={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var D$={};D$={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var P$={};P$={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var S$={};S$={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var T$={};T$={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var A$={};A$={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var k$={};k$={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var M$={};M$={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var R$={};R$={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};function XP(e){return e&&e.__esModule?e.default:e}var F$={};F$={"ar-AE":Qy,"bg-BG":e$,"cs-CZ":t$,"da-DK":n$,"de-DE":r$,"el-GR":o$,"en-US":i$,"es-ES":a$,"et-EE":s$,"fi-FI":l$,"fr-FR":u$,"he-IL":c$,"hr-HR":d$,"hu-HU":f$,"it-IT":p$,"ja-JP":h$,"ko-KR":m$,"lt-LT":b$,"lv-LV":v$,"nb-NO":g$,"nl-NL":y$,"pl-PL":$$,"pt-BR":x$,"pt-PT":w$,"ro-RO":C$,"ru-RU":E$,"sk-SK":D$,"sl-SI":P$,"sr-SP":S$,"sv-SE":T$,"tr-TR":A$,"uk-UA":k$,"zh-CN":M$,"zh-TW":R$};function JP(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:a,isReadOnly:s,isRequired:l,minValue:c,maxValue:d,autoFocus:f,label:p,formatOptions:h,onBlur:m=()=>{},onFocus:b,onFocusChange:v,onKeyDown:$,onKeyUp:C,description:x,errorMessage:E,isWheelDisabled:w,...A}=e,{increment:V,incrementToMax:y,decrement:I,decrementToMin:M,numberValue:k,inputValue:R,commit:S,commitValidation:F}=t;const K=Fr(XP(F$),"@react-aria/numberfield");let L=nt(r),{focusProps:P}=Ea({onBlur(){S()}}),W=oa(h),J=u.useMemo(()=>W.resolvedOptions(),[W]),G=oa({...h,currencySign:void 0}),D=u.useMemo(()=>isNaN(k)?"":G.format(k),[G,k]),{spinButtonProps:T,incrementButtonProps:z,decrementButtonProps:H}=qy({isDisabled:a,isReadOnly:s,isRequired:l,maxValue:d,minValue:c,onIncrement:V,onIncrementToMax:y,onDecrement:I,onDecrementToMin:M,value:k,textValue:D}),[Z,N]=u.useState(!1),{focusWithinProps:j}=Mr({isDisabled:a,onFocusWithinChange:N}),_=u.useCallback(Qe=>{Math.abs(Qe.deltaY)<=Math.abs(Qe.deltaX)||(Qe.deltaY>0?V():Qe.deltaY<0&&I())},[I,V]);F5({onScroll:_,isDisabled:w||a||s||!Z},n);let ne=J.maximumFractionDigits>0,ee=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,q="numeric";Bh()?ee?q="text":ne&&(q="decimal"):mu()&&(ee?q="numeric":ne&&(q="decimal"));let he=Qe=>{t.validate(Qe)&&t.setInputValue(Qe)},re=me(e),ce=u.useCallback(Qe=>{Qe.key==="Enter"?(S(),F()):Qe.continuePropagation()},[S,F]),{isInvalid:$e,validationErrors:pe,validationDetails:Oe}=t.displayValidation,{labelProps:de,inputProps:ae,descriptionProps:xe,errorMessageProps:Vt}=VP({...A,...re,name:void 0,label:p,autoFocus:f,isDisabled:a,isReadOnly:s,isRequired:l,validate:void 0,[Po]:t,value:R,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:L,type:"text",inputMode:q,onChange:he,onBlur:m,onFocus:b,onFocusChange:v,onKeyDown:u.useMemo(()=>wn(ce,$),[ce,$]),onKeyUp:C,description:x,errorMessage:E},t,n);Mo(n,t.numberValue,t.setNumberValue);let Je=oe(T,P,ae,{role:null,"aria-roledescription":Ar()?null:K.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(Je["aria-required"]=void 0);let se=Qe=>{var _r;document.activeElement!==n.current&&(Qe.pointerType==="mouse"?(_r=n.current)===null||_r===void 0||_r.focus():Qe.target.focus())},Pe=e["aria-label"]||(typeof e.label=="string"?e.label:""),ct;Pe||(ct=e.label!=null?de.id:e["aria-labelledby"]);let Wt=nt(),mt=nt(),Xa=oe(z,{"aria-label":i||K.format("increase",{fieldLabel:Pe}).trim(),id:ct&&!i?Wt:null,"aria-labelledby":ct&&!i?`${Wt} ${ct}`:null,"aria-controls":L,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:se}),Ja=oe(H,{"aria-label":o||K.format("decrease",{fieldLabel:Pe}).trim(),id:ct&&!o?mt:null,"aria-labelledby":ct&&!o?`${mt} ${ct}`:null,"aria-controls":L,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:se});return{groupProps:{...j,role:"group","aria-disabled":a,"aria-invalid":$e?"true":void 0},labelProps:de,inputProps:Je,incrementButtonProps:Xa,decrementButtonProps:Ja,errorMessageProps:Vt,descriptionProps:xe,isInvalid:$e,validationErrors:pe,validationDetails:Oe}}function B$(e){let t=me(e,{labelable:!0}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}const wc=new WeakMap;function Wl(e,t){let n=wc.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function QP(e,t,n){let{labelProps:r,fieldProps:o}=No(e),i=e.orientation==="vertical";var a;wc.set(t,{id:(a=r.id)!==null&&a!==void 0?a:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:s}=Ze(),{addGlobalListener:l,removeGlobalListener:c}=kr();const d=u.useRef(null),f=s==="rtl",p=u.useRef(null),{moveProps:h}=Yh({onMoveStart(){p.current=null},onMove({deltaX:$,deltaY:C}){let{height:x,width:E}=n.current.getBoundingClientRect(),w=i?x:E;p.current==null&&(p.current=t.getThumbPercent(d.current)*w);let A=i?C:$;if((i||f)&&(A=-A),p.current+=A,d.current!=null&&n.current){const V=At(p.current/w,0,1);t.setThumbPercent(d.current,V)}},onMoveEnd(){d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null)}});let m=u.useRef(void 0),b=($,C,x,E)=>{if(n.current&&!e.isDisabled&&t.values.every((w,A)=>!t.isThumbDragging(A))){let{height:w,width:A,top:V,left:y}=n.current.getBoundingClientRect(),I=i?w:A,S=((i?E:x)-(i?V:y))/I;(s==="rtl"||i)&&(S=1-S);let F=t.getPercentValue(S),K,L=t.values.findIndex(P=>F-P<0);if(L===0)K=L;else if(L===-1)K=t.values.length-1;else{let P=t.values[L-1],W=t.values[L];Math.abs(P-F)<Math.abs(W-F)?K=L-1:K=L}K>=0&&t.isThumbEditable(K)?($.preventDefault(),d.current=K,t.setFocusedThumb(K),m.current=C,t.setThumbDragging(d.current,!0),t.setThumbValue(K,F),l(window,"mouseup",v,!1),l(window,"touchend",v,!1),l(window,"pointerup",v,!1)):d.current=null}},v=$=>{var C,x;((x=$.pointerId)!==null&&x!==void 0?x:(C=$.changedTouches)===null||C===void 0?void 0:C[0].identifier)===m.current&&(d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null),c(window,"mouseup",v,!1),c(window,"touchend",v,!1),c(window,"pointerup",v,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var $;($=document.getElementById(Wl(t,0)))===null||$===void 0||$.focus(),Gh("keyboard")}),{labelProps:r,groupProps:{role:"group",...o},trackProps:oe({onMouseDown($){$.button!==0||$.altKey||$.ctrlKey||$.metaKey||b($,void 0,$.clientX,$.clientY)},onPointerDown($){$.pointerType==="mouse"&&($.button!==0||$.altKey||$.ctrlKey||$.metaKey)||b($,$.pointerId,$.clientX,$.clientY)},onTouchStart($){b($,$.changedTouches[0].identifier,$.changedTouches[0].clientX,$.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:t.values.map(($,C)=>Wl(t,C)).join(" "),"aria-live":"off"}}}function eS(e,t){let{index:n=0,isRequired:r,validationState:o,isInvalid:i,trackRef:a,inputRef:s,orientation:l=t.orientation,name:c}=e,d=e.isDisabled||t.isDisabled,f=l==="vertical",{direction:p}=Ze(),{addGlobalListener:h,removeGlobalListener:m}=kr(),b=wc.get(t);var v;const{labelProps:$,fieldProps:C}=No({...e,id:Wl(t,n),"aria-labelledby":`${b.id} ${(v=e["aria-labelledby"])!==null&&v!==void 0?v:""}`.trim()}),x=t.values[n],E=u.useCallback(()=>{s.current&&jt(s.current)},[s]),w=t.focusedThumb===n;u.useEffect(()=>{w&&E()},[w,E]);let A=p==="rtl",V=u.useRef(null),{keyboardProps:y}=yu({onKeyDown(L){let{getThumbMaxValue:P,getThumbMinValue:W,decrementThumb:J,incrementThumb:G,setThumbValue:D,setThumbDragging:T,pageSize:z}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),T(n,!0),L.key){case"PageUp":G(n,z);break;case"PageDown":J(n,z);break;case"Home":D(n,W(n));break;case"End":D(n,P(n));break}T(n,!1)}}),{moveProps:I}=Yh({onMoveStart(){V.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:P,pointerType:W,shiftKey:J}){const{getThumbPercent:G,setThumbPercent:D,decrementThumb:T,incrementThumb:z,step:H,pageSize:Z}=t;let{width:N,height:j}=a.current.getBoundingClientRect(),_=f?j:N;if(V.current==null&&(V.current=G(n)*_),W==="keyboard")L>0&&A||L<0&&!A||P>0?T(n,J?Z:H):z(n,J?Z:H);else{let Q=f?P:L;(f||A)&&(Q=-Q),V.current+=Q,D(n,At(V.current/_,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);const{focusableProps:M}=Rr(oe(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s);let k=u.useRef(void 0),R=L=>{E(),k.current=L,t.setThumbDragging(n,!0),h(window,"mouseup",S,!1),h(window,"touchend",S,!1),h(window,"pointerup",S,!1)},S=L=>{var P,W;((W=L.pointerId)!==null&&W!==void 0?W:(P=L.changedTouches)===null||P===void 0?void 0:P[0].identifier)===k.current&&(E(),t.setThumbDragging(n,!1),m(window,"mouseup",S,!1),m(window,"touchend",S,!1),m(window,"pointerup",S,!1))},F=t.getThumbPercent(n);(f||p==="rtl")&&(F=1-F);let K=d?{}:oe(y,I,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||R()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||R(L.pointerId)},onTouchStart:L=>{R(L.changedTouches[0].identifier)}});return Mo(s,x,L=>{t.setThumbValue(n,L)}),{inputProps:oe(M,C,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:x,name:c,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":i||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[b["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[b["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:L=>{t.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:{...K,style:{position:"absolute",[f?"top":"left"]:`${F*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(n),isDisabled:d,isFocused:w}}function tS(e,t,n){let{labelProps:r,inputProps:o,isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}=cv(e,t,n);return{labelProps:r,inputProps:{...o,role:"switch",checked:i},isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}}const I$=new WeakMap;function ga(e,t,n){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${I$.get(e)}-${n}-${t}`}function nS(e,t,n){var r;let{key:o,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:s,selectedKey:l}=t,c=o===l,d=i||t.isDisabled||t.disabledKeys.has(o),{itemProps:f,isPressed:p}=bc({selectionManager:s,key:o,ref:n,isDisabled:d,shouldSelectOnPressUp:a,linkBehavior:"selection"}),h=ga(t,o,"tab"),m=ga(t,o,"tabpanel"),{tabIndex:b}=f,v=t.collection.getItem(o),$=me(v==null?void 0:v.props,{isLink:!!(!(v==null||(r=v.props)===null||r===void 0)&&r.href),labelable:!0});return delete $.id,{tabProps:oe($,f,{id:h,"aria-selected":c,"aria-disabled":d||void 0,"aria-controls":c?m:void 0,tabIndex:d?void 0:b,role:"tab"}),isSelected:c,isDisabled:d,isPressed:p}}function rS(e,t,n){let r=Y5(n)?void 0:0;var o;const i=ga(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),a=zn({...e,id:i,"aria-labelledby":ga(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:oe(a,{tabIndex:r,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class oS{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}getKeyAbove(t){return this.getPreviousKey(t)}getKeyBelow(t){return this.getNextKey(t)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getPreviousKey(t)),t}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.disabledKeys.has(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.disabledKeys.has(t));return t}constructor(t,n,r,o=new Set){this.collection=t,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=o}}function iS(e,t,n){let{orientation:r="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:s}=t,{direction:l}=Ze(),c=u.useMemo(()=>new oS(i,l,r,s),[i,s,r,l]),{collectionProps:d}=mc({ref:n,selectionManager:a,keyboardDelegate:c,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=nt();I$.set(t,f);let p=zn({...e,id:f});return{tabListProps:{...oe(d,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function aS(e,t){let n=me(e,{labelable:!0}),{hoverProps:r}=Ye({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:oe(n,r,{role:"tooltip"})}}function sS(e,t,n){let{isDisabled:r,trigger:o}=e,i=nt(),a=u.useRef(!1),s=u.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},c=$=>{!a.current&&!s.current&&t.close($)};u.useEffect(()=>{let $=C=>{n&&n.current&&C.key==="Escape"&&(C.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",$,!0),()=>{document.removeEventListener("keydown",$,!0)}},[n,t]);let d=()=>{o!=="focus"&&(Gi()==="pointer"?a.current=!0:a.current=!1,l())},f=()=>{o!=="focus"&&(s.current=!1,a.current=!1,c())},p=()=>{s.current=!1,a.current=!1,c(!0)},h=()=>{wr()&&(s.current=!0,l())},m=()=>{s.current=!1,a.current=!1,c(!0)},{hoverProps:b}=Ye({isDisabled:r,onHoverStart:d,onHoverEnd:f}),{focusableProps:v}=Rr({isDisabled:r,onFocus:h,onBlur:m},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...oe(v,b,{onPointerDown:p,onKeyDown:p})},tooltipProps:{id:i}}}class It extends Set{constructor(t,n,r){super(t),t instanceof It?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function lS(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function O$(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=u.useRef(!1),[,s]=u.useState(!1),l=u.useRef(null),c=u.useRef(null),[,d]=u.useState(null),f=u.useMemo(()=>qp(e.selectedKeys),[e.selectedKeys]),p=u.useMemo(()=>qp(e.defaultSelectedKeys,new It),[e.defaultSelectedKeys]),[h,m]=Rt(f,p,e.onSelectionChange),b=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,$]=u.useState(o);o==="replace"&&v==="toggle"&&typeof h=="object"&&h.size===0&&$("replace");let C=u.useRef(o);return u.useEffect(()=>{o!==C.current&&($(o),C.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:$,get isFocused(){return a.current},setFocused(x){a.current=x,s(x)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(x,E="first"){l.current=x,c.current=E,d(x)},selectedKeys:h,setSelectedKeys(x){(r||!lS(x,h))&&m(x)},disabledKeys:b,disabledBehavior:i}}function qp(e,t){return e?e==="all"?"all":new It(e):t}class L${get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Gs(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Gs(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new It([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new It(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Gs(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new It(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new It([t],t,t):new It;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new It;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(EP(Na(o,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new It)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class Yl{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let a of i.childNodes)n(a)};for(let i of t)n(i);let r,o=0;for(let[i,a]of this.keyMap)r?(r.nextKey=i,a.prevKey=r.key):(this.firstKey=i,a.prevKey=void 0),a.type==="item"&&(a.index=o++),r=a,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function V$(e){let{filter:t}=e,n=O$(e),r=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=u.useCallback(c=>t?new Yl(t(c)):new Yl(c),[t]),i=u.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=Yv(e,o,i),s=u.useMemo(()=>new L$(a,n),[a,n]);const l=u.useRef(null);return u.useEffect(()=>{if(n.focusedKey!=null&&!a.getItem(n.focusedKey)){const c=l.current.getItem(n.focusedKey),d=[...l.current.getKeys()].map(b=>{const v=l.current.getItem(b);return v.type==="item"?v:null}).filter(b=>b!==null),f=[...a.getKeys()].map(b=>{const v=a.getItem(b);return v.type==="item"?v:null}).filter(b=>b!==null),p=d.length-f.length;let h=Math.min(p>1?Math.max(c.index-p+1,0):c.index,f.length-1),m;for(;h>=0;){if(!s.isDisabled(f[h].key)){m=f[h];break}h<f.length-1?h++:(h>c.index&&(h=c.index),h--)}n.setFocusedKey(m?m.key:null)}l.current=a},[a,s,n,n.focusedKey]),{collection:a,disabledKeys:r,selectionManager:s}}function N$(e){var t;let[n,r]=Rt(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=u.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:a,selectionManager:s}=V$({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{var d;let f=(d=c.values().next().value)!==null&&d!==void 0?d:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),l=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:a,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:l}}function Ka(e){let[t,n]=Rt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=u.useCallback(()=>{n(!0)},[n]),o=u.useCallback(()=>{n(!1)},[n]),i=u.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function uS(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:s=!0}=e,[l,c]=u.useState(!1),[d,f]=u.useState(!1),[p,h]=u.useState(null),m=de=>{e.onSelectionChange&&e.onSelectionChange(de),de===C&&(H(),D())};var b;let{collection:v,selectionManager:$,selectedKey:C,setSelectedKey:x,selectedItem:E,disabledKeys:w}=N$({...e,onSelectionChange:m,items:(b=e.items)!==null&&b!==void 0?b:e.defaultItems});var A,V;let[y,I]=Rt(e.inputValue,(V=(A=e.defaultInputValue)!==null&&A!==void 0?A:(t=v.getItem(C))===null||t===void 0?void 0:t.textValue)!==null&&V!==void 0?V:"",e.onInputChange),M=v,k=u.useMemo(()=>e.items!=null||!r?v:cS(v,y,r),[v,y,r,e.items]),[R,S]=u.useState(k),F=u.useRef("focus"),L=Ka({...e,onOpenChange:de=>{e.onOpenChange&&e.onOpenChange(de,de?F.current:void 0),$.setFocused(de),de||$.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),P=(de=null,ae)=>{let xe=ae==="manual"||ae==="focus"&&o==="focus";(i||k.size>0||xe&&M.size>0||e.items)&&(xe&&!L.isOpen&&e.items===void 0&&c(!0),F.current=ae,h(de),L.open())},W=(de=null,ae)=>{let xe=ae==="manual"||ae==="focus"&&o==="focus";!(i||k.size>0||xe&&M.size>0||e.items)&&!L.isOpen||(xe&&!L.isOpen&&e.items===void 0&&c(!0),L.isOpen||(F.current=ae),G(de))},J=u.useCallback(()=>{S(l?M:k)},[l,M,k]),G=u.useCallback((de=null)=>{L.isOpen&&J(),h(de),L.toggle()},[L,J]),D=u.useCallback(()=>{L.isOpen&&(J(),L.close())},[L,J]),[T,z]=u.useState(y),H=()=>{var de,ae;let xe=(ae=(de=v.getItem(C))===null||de===void 0?void 0:de.textValue)!==null&&ae!==void 0?ae:"";z(xe),I(xe)};var Z,N;let j=u.useRef((N=(Z=e.selectedKey)!==null&&Z!==void 0?Z:e.defaultSelectedKey)!==null&&N!==void 0?N:null);var _;let Q=u.useRef((_=(n=v.getItem(C))===null||n===void 0?void 0:n.textValue)!==null&&_!==void 0?_:"");u.useEffect(()=>{var de;d&&(k.size>0||i)&&!L.isOpen&&y!==T&&o!=="manual"&&P(null,"input"),!l&&!i&&L.isOpen&&k.size===0&&D(),C!=null&&C!==j.current&&D(),y!==T&&($.setFocusedKey(null),c(!1),y===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&x(null)),C!==j.current&&(e.inputValue===void 0||e.selectedKey===void 0)?H():T!==y&&z(y);var ae;let xe=(ae=(de=v.getItem(C))===null||de===void 0?void 0:de.textValue)!==null&&ae!==void 0?ae:"";!d&&C!=null&&e.inputValue===void 0&&C===j.current&&Q.current!==xe&&(z(xe),I(xe)),j.current=C,Q.current=xe});let ne=Or({...e,value:u.useMemo(()=>({inputValue:y,selectedKey:C}),[y,C])}),ee=()=>{a&&C==null?q():he()},q=()=>{j.current=null,x(null),D()},he=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var de;e.onSelectionChange(C);var ae;let xe=(ae=(de=v.getItem(C))===null||de===void 0?void 0:de.textValue)!==null&&ae!==void 0?ae:"";z(xe),D()}else H(),D()};const re=()=>{if(a){var de,ae;const xe=(ae=(de=v.getItem(C))===null||de===void 0?void 0:de.textValue)!==null&&ae!==void 0?ae:"";y===xe?he():q()}else he()};let ce=()=>{L.isOpen&&$.focusedKey!=null?C===$.focusedKey?he():x($.focusedKey):re()},$e=u.useRef(y),pe=de=>{de?($e.current=y,o==="focus"&&P(null,"focus")):(s&&re(),y!==$e.current&&ne.commitValidation()),f(de)},Oe=u.useMemo(()=>L.isOpen?l?M:k:R,[L.isOpen,M,k,l,R]);return{...ne,...L,focusStrategy:p,toggle:W,open:P,close:re,selectionManager:$,selectedKey:C,setSelectedKey:x,disabledKeys:w,isFocused:d,setFocused:pe,selectedItem:E,collection:Oe,inputValue:y,setInputValue:I,commit:ce,revert:ee}}function cS(e,t,n){return new Yl(_$(e,e,t,n))}function _$(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let a=_$(e,Na(i,e),n,r);[...a].some(s=>s.type==="item")&&o.push({...i,childNodes:a})}else i.type==="item"&&r(i.textValue,n)?o.push({...i}):i.type!=="item"&&o.push({...i});return o}var K$={};K$={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var j$={};j$={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var z$={};z$={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var U$={};U$={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var H$={};H$={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var G$={};G$={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var W$={};W$={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Y$={};Y$={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var q$={};q$={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var Z$={};Z$={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var X$={};X$={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var J$={};J$={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Q$={};Q$={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var e4={};e4={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var t4={};t4={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var n4={};n4={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var r4={};r4={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var o4={};o4={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var i4={};i4={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var a4={};a4={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var s4={};s4={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var l4={};l4={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var u4={};u4={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var c4={};c4={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var d4={};d4={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var f4={};f4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var p4={};p4={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var h4={};h4={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var m4={};m4={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var b4={};b4={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var v4={};v4={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var g4={};g4={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var y4={};y4={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var $4={};$4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};function dS(e){return e&&e.__esModule?e.default:e}var x4={};x4={"ar-AE":K$,"bg-BG":j$,"cs-CZ":z$,"da-DK":U$,"de-DE":H$,"el-GR":G$,"en-US":W$,"es-ES":Y$,"et-EE":q$,"fi-FI":Z$,"fr-FR":X$,"he-IL":J$,"hr-HR":Q$,"hu-HU":e4,"it-IT":t4,"ja-JP":n4,"ko-KR":r4,"lt-LT":o4,"lv-LV":i4,"nb-NO":a4,"nl-NL":s4,"pl-PL":l4,"pt-BR":u4,"pt-PT":c4,"ro-RO":d4,"ru-RU":f4,"sk-SK":p4,"sl-SI":h4,"sr-SP":m4,"sv-SE":b4,"tr-TR":v4,"uk-UA":g4,"zh-CN":y4,"zh-TW":$4};const fS=new Zn(dS(x4));function pS(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function hS(e,t,n,r,o){let i=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=i||a||s,c=[];if(l){let d=pS(),f=Zn.getGlobalDictionaryForPackage("@react-stately/datepicker")||fS,p=new em(d,f),h=new so(d,ql({},o)),m=h.resolvedOptions().timeZone;a&&c.push(p.format("rangeUnderflow",{minValue:h.format(t.toDate(m))})),i&&c.push(p.format("rangeOverflow",{maxValue:h.format(n.toDate(m))})),s&&c.push(p.format("unavailableDate"))}return{isInvalid:l,validationErrors:c,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}const mS={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},bS={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ql(e,t){e={...t.shouldForceLeadingZeros?bS:mS,...e};let r=t.granularity||"minute",o=Object.keys(e);var i;let a=o.indexOf((i=t.maxGranularity)!==null&&i!==void 0?i:"year");a<0&&(a=0);let s=o.indexOf(r);if(s<0&&(s=2),a>s)throw new Error("maxGranularity must be greater than granularity");let l=o.slice(a,s+1).reduce((d,f)=>(d[f]=e[f],d),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&a===0&&(l.era="short"),l}function w4(e,t){if(e===null)return null;if(e)return ut(e,t)}function Xr(e,t,n,r){if(e)return w4(e,n);let o=ut(nm(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?lm(o):r?o:En(o)}function vS(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[o,i]=u.useState([r,n]);e&&(o[0]!==r||o[1]!==n)&&i([r,n]),t||(t=e?r:o[0]);let a=e?n:o[1];return[t,a]}const gS=new Zn({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function yS(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?gS.getStringForLocale(e,n):"––"}const Di={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Zp={year:5,month:2,day:7,hour:2,minute:15,second:15},$S={dayperiod:"dayPeriod"};function Cc(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:o,isReadOnly:i,isRequired:a,minValue:s,maxValue:l,isDateUnavailable:c}=e,d=e.value||e.defaultValue||e.placeholderValue,[f,p]=vS(d,e.granularity),h=p||"UTC";if(d&&!(f in d))throw new Error("Invalid granularity "+f+" for value "+d.toString());let m=u.useMemo(()=>new so(t),[t]),b=u.useMemo(()=>n(m.resolvedOptions().calendar),[n,m]),[v,$]=Rt(e.value,e.defaultValue,e.onChange),C=u.useMemo(()=>w4(v,b),[v,b]),[x,E]=u.useState(()=>Xr(e.placeholderValue,f,b,p)),w=C||x,A=b.identifier==="gregory"&&w.era==="BC",V=u.useMemo(()=>{var j;return{granularity:f,maxGranularity:(j=e.maxGranularity)!==null&&j!==void 0?j:"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:A,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,p,r,A]),y=u.useMemo(()=>ql({},V),[V]),I=u.useMemo(()=>new so(t,y),[t,y]),M=u.useMemo(()=>I.resolvedOptions(),[I]),k=u.useMemo(()=>I.formatToParts(new Date).filter(j=>Di[j.type]).reduce((j,_)=>(j[_.type]=!0,j),{}),[I]),[R,S]=u.useState(()=>e.value||e.defaultValue?{...k}:{}),F=u.useRef(),K=u.useRef(b.identifier);u.useEffect(()=>{b.identifier!==K.current&&(K.current=b.identifier,E(j=>Object.keys(R).length>0?ut(j,b):Xr(e.placeholderValue,f,b,p)))},[b,f,R,p,e.placeholderValue]),v&&Object.keys(R).length<Object.keys(k).length&&(R={...k},S(R)),v==null&&Object.keys(R).length===Object.keys(k).length&&(R={},S(R),E(Xr(e.placeholderValue,f,b,p)));let L=C&&Object.keys(R).length>=Object.keys(k).length?C:x,P=j=>{if(e.isDisabled||e.isReadOnly)return;let _=Object.keys(R),Q=Object.keys(k);j==null?($(null),E(Xr(e.placeholderValue,f,b,p)),S({})):_.length>=Q.length||_.length===Q.length-1&&k.dayPeriod&&!R.dayPeriod&&F.current!=="dayPeriod"?(j=ut(j,(d==null?void 0:d.calendar)||new vt),$(j)):E(j),F.current=null},W=u.useMemo(()=>L.toDate(h),[L,h]),J=u.useMemo(()=>I.formatToParts(W).map(j=>{let _=Di[j.type];j.type==="era"&&b.getEras().length===1&&(_=!1);let Q=Di[j.type]&&!R[j.type],ne=Di[j.type]?yS(j.type,j.value,t):null;return{type:$S[j.type]||j.type,text:Q?ne:j.value,...xS(L,j.type,M),isPlaceholder:Q,placeholder:ne,isEditable:_}}),[W,R,I,M,L,b,t]);k.era&&R.year&&!R.era?(R.era=!0,S({...R})):!k.era&&R.era&&(delete R.era,S({...R}));let G=j=>{R[j]=!0,j==="year"&&k.era&&(R.era=!0),S({...R})},D=(j,_)=>{if(R[j])P(wS(L,j,_,M));else{G(j);let Q=Object.keys(R),ne=Object.keys(k);(Q.length>=ne.length||Q.length===ne.length-1&&k.dayPeriod&&!R.dayPeriod)&&P(L)}},T=u.useMemo(()=>hS(v,s,l,c,V),[v,s,l,c,V]),z=Or({...e,value:v,builtinValidation:T}),H=z.displayValidation.isInvalid,Z=e.validationState||(H?"invalid":null);var N;return{...z,value:C,dateValue:W,calendar:b,setValue:P,segments:J,dateFormatter:I,validationState:Z,isInvalid:H,granularity:f,maxGranularity:(N=e.maxGranularity)!==null&&N!==void 0?N:"year",isDisabled:o,isReadOnly:i,isRequired:a,increment(j){D(j,1)},decrement(j){D(j,-1)},incrementPage(j){D(j,Zp[j]||1)},decrementPage(j){D(j,-(Zp[j]||1))},setSegment(j,_){G(j),P(CS(L,j,_,M))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let j=Object.keys(R),_=Object.keys(k);j.length===_.length-1&&k.dayPeriod&&!R.dayPeriod&&(R={...k},S(R),P(L.copy()))},clearSegment(j){delete R[j],F.current=j,S({...R});let _=Xr(e.placeholderValue,f,b,p),Q=L;if(j==="dayPeriod"&&"hour"in L&&"hour"in _){let ne=L.hour>=12,ee=_.hour>=12;ne&&!ee?Q=L.set({hour:L.hour-12}):!ne&&ee&&(Q=L.set({hour:L.hour+12}))}else j in L&&(Q=L.set({[j]:_[j]}));$(null),P(Q)},formatValue(j){if(!C)return"";let _=ql(j,V);return new so(t,_).format(W)}}}function xS(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:r2(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:o2(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function wS(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return e.set({hour:i?o-12:o+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}}function CS(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return n>=12===i?e:e.set({hour:i?o-12:o+12})}case"hour":if(r.hour12){let i=e.hour>=12;!i&&n===12&&(n=0),i&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}function ES(e){let{placeholderValue:t=new Ta,minValue:n,maxValue:r,granularity:o,validate:i}=e,[a,s]=Rt(e.value,e.defaultValue,e.onChange),l=a||t,c=l&&"day"in l?l:void 0,d=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,f=u.useMemo(()=>{let C=l&&"timeZone"in l?l.timeZone:void 0;return(C||d)&&t?um(Jr(t),C||d):Jr(t)},[t,l,d]),p=u.useMemo(()=>Jr(n,c),[n,c]),h=u.useMemo(()=>Jr(r,c),[r,c]),m=u.useMemo(()=>a&&"day"in a?jd(a):a,[a]),b=u.useMemo(()=>a==null?null:Jr(a),[a]);return{...Cc({...e,value:b,defaultValue:void 0,minValue:p,maxValue:h,onChange:C=>{s(c||d?C:C&&jd(C))},granularity:o||"minute",maxGranularity:"hour",placeholderValue:f,createCalendar:()=>new vt,validate:u.useCallback(()=>i==null?void 0:i(a),[i,a])}),timeValue:m}}function Jr(e,t=n2(Cu())){return e?"day"in e?e:En(t,e):null}function DS(e,t){let{triggerKey:n}=e,{UNSTABLE_expandedKeysStack:r,UNSTABLE_openSubmenu:o,UNSTABLE_closeSubmenu:i,close:a}=t,[s]=u.useState(r==null?void 0:r.length),l=u.useMemo(()=>r[s]===n,[r,n,s]),[c,d]=u.useState(null),f=u.useCallback((m=null)=>{d(m),o(n,s)},[o,s,n]),p=u.useCallback(()=>{d(null),i(n,s)},[i,s,n]),h=u.useCallback((m=null)=>{d(m),l?p():f(m)},[p,f,l]);return u.useMemo(()=>({focusStrategy:c,isOpen:l,open:f,close:p,closeAll:a,submenuLevel:s,setOpen:()=>{},toggle:h}),[l,f,p,a,c,h,s])}function PS(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:i,defaultValue:a=NaN,onChange:s,locale:l,isDisabled:c,isReadOnly:d}=e;i===null&&(i=NaN),i!==void 0&&!isNaN(i)&&(r!==void 0&&!isNaN(r)?i=ft(i,t,n,r):i=At(i,t,n)),isNaN(a)||(r!==void 0&&!isNaN(r)?a=ft(a,t,n,r):a=At(a,t,n));let[f,p]=Rt(i,isNaN(a)?NaN:a,s),[h,m]=u.useState(()=>isNaN(f)?"":new ra(l,o).format(f)),b=u.useMemo(()=>new Ru(l,o),[l,o]),v=u.useMemo(()=>b.getNumberingSystem(h),[b,h]),$=u.useMemo(()=>new ra(l,{...o,numberingSystem:v}),[l,o,v]),C=u.useMemo(()=>$.resolvedOptions(),[$]),x=u.useCallback(T=>isNaN(T)||T===null?"":$.format(T),[$]),E=Or({...e,value:f}),w=r!==void 0&&!isNaN(r)?r:1;C.style==="percent"&&(r===void 0||isNaN(r))&&(w=.01);let[A,V]=u.useState(f),[y,I]=u.useState(l),[M,k]=u.useState(o);(!Object.is(f,A)||l!==y||o!==M)&&(m(x(f)),V(f),I(l),k(o));let R=u.useMemo(()=>b.parse(h),[b,h]),S=()=>{if(!h.length){p(NaN),m(i===void 0?"":x(f));return}if(isNaN(R)){m(x(f));return}let T;r===void 0||isNaN(r)?T=At(R,t,n):T=ft(R,t,n,r),T=b.parse(x(T)),p(T),m(x(i===void 0?T:f))},F=(T,z=0)=>{let H=R;if(isNaN(H)){let Z=isNaN(z)?0:z;return ft(Z,t,n,w)}else{let Z=ft(H,t,n,w);return T==="+"&&Z>H||T==="-"&&Z<H?Z:ft(Ys(T,H,w),t,n,w)}},K=()=>{let T=F("+",t);T===f&&m(x(T)),p(T),E.commitValidation()},L=()=>{let T=F("-",n);T===f&&m(x(T)),p(T),E.commitValidation()},P=()=>{n!=null&&(p(ft(n,t,n,w)),E.commitValidation())},W=()=>{t!=null&&(p(t),E.commitValidation())},J=u.useMemo(()=>!c&&!d&&(isNaN(R)||n===void 0||isNaN(n)||ft(R,t,n,w)>R||Ys("+",R,w)<=n),[c,d,t,n,w,R]),G=u.useMemo(()=>!c&&!d&&(isNaN(R)||t===void 0||isNaN(t)||ft(R,t,n,w)<R||Ys("-",R,w)>=t),[c,d,t,n,w,R]);return{...E,validate:T=>b.isValidPartialNumber(T,t,n),increment:K,incrementToMax:P,decrement:L,decrementToMin:W,canIncrement:J,canDecrement:G,minValue:t,maxValue:n,numberValue:R,setNumberValue:p,setInputValue:m,inputValue:h,commit:S}}function Ys(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const o=t.toString().split("."),i=n.toString().split("."),a=o[1]&&o[1].length||0,s=i[1]&&i[1].length||0,l=Math.pow(10,Math.max(a,s));t=Math.round(t*l),n=Math.round(n*l),r=e==="+"?t+n:t-n,r/=l}return r}const SS=0,TS=100,AS=1;function kS(e){const{isDisabled:t=!1,minValue:n=SS,maxValue:r=TS,numberFormatter:o,step:i=AS,orientation:a="horizontal"}=e;let s=u.useMemo(()=>{let D=(r-n)/10;return D=ft(D,0,D+i,i),Math.max(D,i)},[i,r,n]),l=u.useCallback(D=>D==null?void 0:D.map((T,z)=>{let H=z===0?n:T[z-1],Z=z===D.length-1?r:T[z+1];return ft(T,H,Z,i)}),[n,r,i]),c=u.useMemo(()=>l(Jp(e.value)),[e.value]),d=u.useMemo(()=>{var D;return l((D=Jp(e.defaultValue))!==null&&D!==void 0?D:[n])},[e.defaultValue,n]),f=Qp(e.value,e.defaultValue,e.onChange),p=Qp(e.value,e.defaultValue,e.onChangeEnd);const[h,m]=Rt(c,d,f),[b,v]=u.useState(new Array(h.length).fill(!1)),$=u.useRef(new Array(h.length).fill(!0)),[C,x]=u.useState(void 0),E=u.useRef(h),w=u.useRef(b);let A=D=>{E.current=D,m(D)},V=D=>{w.current=D,v(D)};function y(D){return(D-n)/(r-n)}function I(D){return D===0?n:h[D-1]}function M(D){return D===h.length-1?r:h[D+1]}function k(D){return $.current[D]}function R(D,T){$.current[D]=T}function S(D,T){if(t||!k(D))return;const z=I(D),H=M(D);T=ft(T,z,H,i);let Z=Xp(E.current,D,T);A(Z)}function F(D,T){if(t||!k(D))return;T&&(E.current=h);const z=w.current[D];w.current=Xp(w.current,D,T),V(w.current),p&&z&&!w.current.some(Boolean)&&p(E.current)}function K(D){return o.format(D)}function L(D,T){S(D,W(T))}function P(D){return Math.round((D-n)/i)*i+n}function W(D){const T=D*(r-n)+n;return At(P(T),n,r)}function J(D,T=1){let z=Math.max(T,i);S(D,ft(h[D]+z,n,r,i))}function G(D,T=1){let z=Math.max(T,i);S(D,ft(h[D]-z,n,r,i))}return{values:h,getThumbValue:D=>h[D],setThumbValue:S,setThumbPercent:L,isThumbDragging:D=>b[D],setThumbDragging:F,focusedThumb:C,setFocusedThumb:x,getThumbPercent:D=>y(h[D]),getValuePercent:y,getThumbValueLabel:D=>K(h[D]),getFormattedValue:K,getThumbMinValue:I,getThumbMaxValue:M,getPercentValue:W,isThumbEditable:k,setThumbEditable:R,incrementThumb:J,decrementThumb:G,step:i,pageSize:s,orientation:a,isDisabled:t}}function Xp(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function Jp(e){if(e!=null)return Array.isArray(e)?e:[e]}function Qp(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}function MS(e){var t;let n=N$({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:eh(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:r,collection:o,selectedKey:i}=n,a=u.useRef(i);return u.useEffect(()=>{let s=i;(r.isEmpty||!o.getItem(s))&&(s=eh(o,n.disabledKeys),s!=null&&r.setSelectedKeys([s])),(s!=null&&r.focusedKey==null||!r.isFocused&&s!==a.current)&&r.setFocusedKey(s),a.current=s}),{...n,isDisabled:e.isDisabled||!1}}function eh(e,t){let n=null;if(e){for(n=e.getFirstKey();t.has(n)&&n!==e.getLastKey();)n=e.getKeyAfter(n);t.has(n)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}const RS=1500,th=500;let An={},FS=0,Qr=!1,Zt=null,kn=null;function BS(e={}){let{delay:t=RS,closeDelay:n=th}=e,{isOpen:r,open:o,close:i}=Ka(e),a=u.useMemo(()=>`${++FS}`,[]),s=u.useRef(),l=()=>{An[a]=f},c=()=>{for(let h in An)h!==a&&(An[h](!0),delete An[h])},d=()=>{clearTimeout(s.current),s.current=null,c(),l(),Qr=!0,o(),Zt&&(clearTimeout(Zt),Zt=null),kn&&(clearTimeout(kn),kn=null)},f=h=>{h||n<=0?(clearTimeout(s.current),s.current=null,i()):s.current||(s.current=setTimeout(()=>{s.current=null,i()},n)),Zt&&(clearTimeout(Zt),Zt=null),Qr&&(kn&&clearTimeout(kn),kn=setTimeout(()=>{delete An[a],kn=null,Qr=!1},Math.max(th,n)))},p=()=>{c(),l(),!r&&!Zt&&!Qr?Zt=setTimeout(()=>{Zt=null,Qr=!0,d()},t):r||d()};return u.useEffect(()=>()=>{clearTimeout(s.current),An[a]&&delete An[a]},[a]),{isOpen:r,open:h=>{!h&&t>0&&!s.current?p():d()},close:f}}class IS{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.iterable=t,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of t)r(a);let o,i=0;for(let[a,s]of this.keyMap)o?(o.nextKey=a,s.prevKey=o.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=i++),o=s,o.nextKey=void 0;this.lastKey=o==null?void 0:o.key}}function OS(e){let[t,n]=Rt(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),r=O$(e),o=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=Yv(e,u.useCallback(s=>new IS(s,{expandedKeys:t}),[t]),null);return u.useEffect(()=>{r.focusedKey!=null&&!i.getItem(r.focusedKey)&&r.setFocusedKey(null)},[i,r.focusedKey]),{collection:i,expandedKeys:t,disabledKeys:o,toggleKey:s=>{n(LS(t,s))},setExpandedKeys:n,selectionManager:new L$(i,r)}}function LS(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var Zl={exports:{}},qs={};/**
|
|
252
|
+
`,sP={hidden:{opacity:0,transform:"scale(0)"},show:{opacity:1,transform:"scale(1)"}};function lP({children:e,isInvisible:t,disableAnimation:n,placement:r,shape:o,...i}){const a=u.useId(),s=n?{duration:0}:{type:"spring",bounce:.3};return O.jsxs(oP,{children:[e,O.jsx(iP,{placement:r,shape:o,children:O.jsx(ig,{children:!t&&O.jsx(Jn.div,{variants:sP,initial:n?"show":"hidden",transition:s,animate:"show",exit:"hidden",children:O.jsx(aP,{...i,isInvisible:t,showOutline:i.showOutline??!0})},`badge-${a}`)})})]})}function uP({children:e,...t}){return O.jsx("span",{...t,"aria-hidden":"true",children:e??O.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),O.jsx("path",{d:"M19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),O.jsx("path",{d:"M5 13C5.55228 13 6 12.5523 6 12C6 11.4477 5.55228 11 5 11C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function cP(e,t){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,...l}=e,c={};n!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:d}=Rr(e,t),{pressProps:f,isPressed:p}=Cn({onPress:r,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),h=me(l,{labelable:!0,isLink:n==="a"}),m=oe(d,f),b=ko();return{isPressed:p,linkProps:oe(h,{...m,...c,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:g=>{var $;($=f.onClick)===null||$===void 0||$.call(f,g),a&&(a(g),console.warn("onClick is deprecated, please use onPress")),!b.isNative&&g.currentTarget instanceof HTMLAnchorElement&&g.currentTarget.href&&!g.isDefaultPrevented()&&l5(g.currentTarget,g)&&(g.preventDefault(),b.open(g.currentTarget,g))}})}}function sg(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:h,rel:m,type:b="button"}=e,g;n==="button"?g={type:b,disabled:r}:g={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:p,target:n==="a"?h:void 0,type:n==="input"?b:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?m:void 0};let{pressProps:$,isPressed:C}=Cn({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,isDisabled:r,preventFocusOnPress:c,ref:t}),{focusableProps:x}=Rr(e,t);d&&(x.tabIndex=r?-1:x.tabIndex);let E=oe(x,$,me(e,{labelable:!0}));return{isPressed:C,buttonProps:oe(g,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:w=>{f&&(f(w),console.warn("onClick is deprecated, please use onPress"))}})}}function dP(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=sg({...e,onPress:wn(t.toggle,e.onPress)},n);return{isPressed:o,buttonProps:oe(i,{"aria-pressed":r})}}const lg=7e3;let ho=null;function Oi(e,t="assertive",n=lg){ho||(ho=new pP),ho.announce(e,t,n)}function fP(e){ho&&ho.clear(e)}class pP{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=lg){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="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 hc(e,t,n){let{validationBehavior:r,focus:o}=e;Se(()=>{if(r==="native"&&(n!=null&&n.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(mP(n.current))}});let i=Ne(()=>{t.resetValidation()}),a=Ne(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&n&&d&&bP(d)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),Wh("keyboard")}l.preventDefault()}),s=Ne(()=>{t.commitValidation()});u.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",s),c==null||c.addEventListener("reset",i),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",s),c==null||c.removeEventListener("reset",i)}},[n,a,s,i,r])}function hP(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function mP(e){return{isInvalid:!e.validity.valid,validationDetails:hP(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function bP(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const ug={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},cg={...ug,customError:!0,valid:!1},cr={isInvalid:!1,validationDetails:ug,validationErrors:[]},gP=u.createContext({}),Po="__formValidationState"+Date.now();function Or(e){if(e[Po]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[Po];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return vP(e)}function vP(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:i,validate:a,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:cg}:null,c=u.useMemo(()=>Kp(yP(a,o)),[a,o]);i!=null&&i.validationDetails.valid&&(i=null);let d=u.useContext(gP),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(M=>Hl(d[M])):Hl(d[r]):[],[d,r]),[p,h]=u.useState(d),[m,b]=u.useState(!1);d!==p&&(h(d),b(!1));let g=u.useMemo(()=>Kp(m?[]:f),[m,f]),$=u.useRef(cr),[C,x]=u.useState(cr),E=u.useRef(cr),w=()=>{if(!A)return;V(!1);let M=c||i||$.current;Us(M,E.current)||(E.current=M,x(M))},[A,V]=u.useState(!1);return u.useEffect(w),{realtimeValidation:l||g||c||i||cr,displayValidation:s==="native"?l||g||C:l||g||c||i||C,updateValidation(M){s==="aria"&&!Us(C,M)?x(M):$.current=M},resetValidation(){let M=cr;Us(M,E.current)||(E.current=M,x(M)),s==="native"&&V(!1),b(!0)},commitValidation(){s==="native"&&V(!0),b(!0)}}}function Hl(e){return e?Array.isArray(e)?e:[e]:[]}function yP(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Hl(n)}return[]}function Kp(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:cg}:null}function Us(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function dg(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:a,children:s,"aria-label":l,"aria-labelledby":c,validationState:d="valid",isInvalid:f}=e,p=A=>{A.stopPropagation(),t.setSelected(A.target.checked)},h=s!=null,m=l!=null||c!=null;!h&&!m&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:b,isPressed:g}=Cn({isDisabled:r}),{pressProps:$,isPressed:C}=Cn({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:x}=Rr(e,n),E=oe(b,x),w=me(e,{labelable:!0});return Mo(n,t.isSelected,t.setSelected),{labelProps:oe($,{onClick:A=>A.preventDefault()}),inputProps:oe(w,{"aria-invalid":f||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:p,disabled:r,...i==null?{}:{value:i},name:a,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:g||C,isDisabled:r,isReadOnly:o,isInvalid:f||d==="invalid"}}function No(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=nt(t);let a=nt(),s={};n?(r=r?`${a} ${r}`:a,s={id:a,htmlFor:i==="label"?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=zn({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function fg(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:a}=No(e),s=yn([!!t,!!n,r,o]),l=yn([!!t,!!n,r,o]);return a=oe(a,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:s},errorMessageProps:{id:l}}}function Va(e={}){let{isReadOnly:t}=e,[n,r]=Rt(e.isSelected,e.defaultSelected||!1,e.onChange);function o(a){t||r(a)}function i(){t||r(!n)}return{isSelected:n,setSelected:o,toggle:i}}function pg(e,t,n){let r=Or({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:a}=r.displayValidation,{labelProps:s,inputProps:l,isSelected:c,isPressed:d,isDisabled:f,isReadOnly:p}=dg({...e,isInvalid:o},t,n);hc(e,r,n);let{isIndeterminate:h,isRequired:m,validationBehavior:b="aria"}=e;return u.useEffect(()=>{n.current&&(n.current.indeterminate=!!h)}),{labelProps:s,inputProps:{...l,checked:c,"aria-required":m&&b==="aria"||void 0,required:m&&b==="native"},isSelected:c,isPressed:d,isDisabled:f,isReadOnly:p,isInvalid:o,validationErrors:i,validationDetails:a}}const $P=new WeakMap;function xP(e,t,n){const r=Va({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(g){g?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(g)}});let{name:o,descriptionId:i,errorMessageId:a,validationBehavior:s}=$P.get(t);var l;s=(l=e.validationBehavior)!==null&&l!==void 0?l:s;let{realtimeValidation:c}=Or({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),d=u.useRef(cr),f=()=>{t.setInvalid(e.value,c.isInvalid?c:d.current)};u.useEffect(f);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:c,h=s==="native"?t.displayValidation:p;var m;let b=pg({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(m=e.isRequired)!==null&&m!==void 0?m:t.isRequired,validationBehavior:s,[Po]:{realtimeValidation:p,displayValidation:h,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(g){d.current=g,f()}}},r,n);return{...b,inputProps:{...b.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,i].filter(Boolean).join(" ")||void 0}}}var hg={};hg={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var mg={};mg={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var bg={};bg={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var gg={};gg={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var vg={};vg={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var yg={};yg={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var $g={};$g={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var xg={};xg={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var wg={};wg={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Cg={};Cg={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var Eg={};Eg={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var Dg={};Dg={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Pg={};Pg={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var Sg={};Sg={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var Tg={};Tg={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var Ag={};Ag={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var kg={};kg={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var Mg={};Mg={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var Rg={};Rg={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var Fg={};Fg={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Bg={};Bg={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var Ig={};Ig={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var Og={};Og={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Lg={};Lg={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Vg={};Vg={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var Ng={};Ng={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var _g={};_g={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var Kg={};Kg={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var jg={};jg={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var zg={};zg={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var Ug={};Ug={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var Hg={};Hg={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var Gg={};Gg={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var Wg={};Wg={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};function Gl(e){return Si()?e.altKey:e.ctrlKey}function dr(e){return sn()?e.metaKey:e.ctrlKey}const wP=1e3;function CP(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=u.useRef({search:"",timeout:null}).current,i=a=>{let s=EP(a.key);if(!s||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))return;s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s;let l=t.getKeyForSearch(o.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(n.setFocusedKey(l),r&&r(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},wP)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function EP(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function mc(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:h=r,linkBehavior:m="action"}=e,{direction:b}=Ze(),g=ko(),$=M=>{if(M.altKey&&M.key==="Tab"&&M.preventDefault(),!r.current.contains(M.target))return;const k=(G,D)=>{if(G!=null){if(t.isLink(G)&&m==="selection"&&l&&!Gl(M)){dn.flushSync(()=>{t.setFocusedKey(G,D)});let T=h.current.querySelector(`[data-key="${CSS.escape(G.toString())}"]`);g.open(T,M);return}if(t.setFocusedKey(G,D),t.isLink(G)&&m==="override")return;M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):l&&!Gl(M)&&t.replaceSelection(G)}};switch(M.key){case"ArrowDown":if(n.getKeyBelow){var R,S;M.preventDefault();let G=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n);G==null&&i&&(G=(S=n.getFirstKey)===null||S===void 0?void 0:S.call(n,t.focusedKey)),k(G)}break;case"ArrowUp":if(n.getKeyAbove){var F,K;M.preventDefault();let G=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(F=n.getLastKey)===null||F===void 0?void 0:F.call(n);G==null&&i&&(G=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n,t.focusedKey)),k(G)}break;case"ArrowLeft":if(n.getKeyLeftOf){var L,P;M.preventDefault();let G=n.getKeyLeftOf(t.focusedKey);G==null&&i&&(G=b==="rtl"?(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n,t.focusedKey):(P=n.getLastKey)===null||P===void 0?void 0:P.call(n,t.focusedKey)),k(G,b==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var W,J;M.preventDefault();let G=n.getKeyRightOf(t.focusedKey);G==null&&i&&(G=b==="rtl"?(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,t.focusedKey):(J=n.getFirstKey)===null||J===void 0?void 0:J.call(n,t.focusedKey)),k(G,b==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){M.preventDefault();let G=n.getFirstKey(t.focusedKey,dr(M));t.setFocusedKey(G),dr(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):l&&t.replaceSelection(G)}break;case"End":if(n.getLastKey){M.preventDefault();let G=n.getLastKey(t.focusedKey,dr(M));t.setFocusedKey(G),dr(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):l&&t.replaceSelection(G)}break;case"PageDown":if(n.getKeyPageBelow){M.preventDefault();let G=n.getKeyPageBelow(t.focusedKey);k(G)}break;case"PageUp":if(n.getKeyPageAbove){M.preventDefault();let G=n.getKeyPageAbove(t.focusedKey);k(G)}break;case"a":dr(M)&&t.selectionMode==="multiple"&&s!==!0&&(M.preventDefault(),t.selectAll());break;case"Escape":M.preventDefault(),a||t.clearSelection();break;case"Tab":if(!f){if(M.shiftKey)r.current.focus();else{let G=lt(r.current,{tabbable:!0}),D,T;do T=G.lastChild(),T&&(D=T);while(T);D&&!D.contains(document.activeElement)&&jt(D)}break}}},C=u.useRef({top:0,left:0});zi(h,"scroll",p?null:()=>{C.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let x=M=>{if(t.isFocused){M.currentTarget.contains(M.target)||t.setFocused(!1);return}if(M.currentTarget.contains(M.target)){if(t.setFocused(!0),t.focusedKey==null){let S=K=>{K!=null&&(t.setFocusedKey(K),l&&t.replaceSelection(K))},F=M.relatedTarget;var k,R;F&&M.currentTarget.compareDocumentPosition(F)&Node.DOCUMENT_POSITION_FOLLOWING?S((k=t.lastSelectedKey)!==null&&k!==void 0?k:n.getLastKey()):S((R=t.firstSelectedKey)!==null&&R!==void 0?R:n.getFirstKey())}else p||(h.current.scrollTop=C.current.top,h.current.scrollLeft=C.current.left);if(!p&&t.focusedKey!=null){let S=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);S&&(S.contains(document.activeElement)||jt(S),Gi()==="keyboard"&&al(S,{containingElement:r.current}))}}},E=M=>{M.currentTarget.contains(M.relatedTarget)||t.setFocused(!1)};const w=u.useRef(o);u.useEffect(()=>{if(w.current){let M=null;o==="first"&&(M=n.getFirstKey()),o==="last"&&(M=n.getLastKey());let k=t.selectedKeys;if(k.size){for(let R of k)if(t.canSelectItem(R)){M=R;break}}t.setFocused(!0),t.setFocusedKey(M),M==null&&!d&&Hn(r.current)}},[]);let A=u.useRef(t.focusedKey);u.useEffect(()=>{let M=Gi();if(t.isFocused&&t.focusedKey!=null&&(h!=null&&h.current)){let k=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);k&&(M==="keyboard"||w.current)&&(p||Nh(h.current,k),M!=="virtual"&&al(k,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&A.current!=null&&Hn(r.current),A.current=t.focusedKey,w.current=!1},[p,h,t.focusedKey,t.isFocused,r]);let V={onKeyDown:$,onFocus:x,onBlur:E,onMouseDown(M){h.current===M.target&&M.preventDefault()}},{typeSelectProps:y}=CP({keyboardDelegate:n,selectionManager:t});c||(V=oe(y,V));let I;return d||(I=t.focusedKey==null?0:-1),{collectionProps:{...V,tabIndex:I}}}function bc(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:a,isDisabled:s,onAction:l,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=ko(),p=P=>{if(P.pointerType==="keyboard"&&Gl(P))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(d==="selection"){f.open(r.current,P),t.setSelectedKeys(t.selectedKeys);return}else if(d==="override"||d==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):P&&P.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||P&&(dr(P)||P.pointerType==="touch"||P.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};u.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(a?a():document.activeElement!==r.current&&Hn(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),s=s||t.isDisabled(n);let h={};!i&&!s?h={tabIndex:n===t.focusedKey?0:-1,onFocus(P){P.target===r.current&&t.setFocusedKey(n)}}:s&&(h.onMouseDown=P=>{P.preventDefault()});let m=t.isLink(n)&&d==="override",b=t.isLink(n)&&d!=="selection"&&d!=="none",g=!s&&t.canSelectItem(n)&&!m,$=(l||b)&&!s,C=$&&(t.selectionBehavior==="replace"?!g:!g||t.isEmpty),x=$&&g&&t.selectionBehavior==="replace",E=C||x,w=u.useRef(null),A=E&&g,V=u.useRef(!1),y=u.useRef(!1),I=P=>{l&&l(),b&&f.open(r.current,P)},M={};o?(M.onPressStart=P=>{w.current=P.pointerType,V.current=A,P.pointerType==="keyboard"&&(!E||zp())&&p(P)},c?(M.onPressUp=C?null:P=>{P.pointerType!=="keyboard"&&g&&p(P)},M.onPress=C?I:null):M.onPress=P=>{if(C||x&&P.pointerType!=="mouse"){if(P.pointerType==="keyboard"&&!jp())return;I(P)}else P.pointerType!=="keyboard"&&g&&p(P)}):(M.onPressStart=P=>{w.current=P.pointerType,V.current=A,y.current=C,g&&(P.pointerType==="mouse"&&!C||P.pointerType==="keyboard"&&(!$||zp()))&&p(P)},M.onPress=P=>{(P.pointerType==="touch"||P.pointerType==="pen"||P.pointerType==="virtual"||P.pointerType==="keyboard"&&E&&jp()||P.pointerType==="mouse"&&y.current)&&(E?I(P):g&&p(P))}),h["data-key"]=n,M.preventFocusOnPress=i;let{pressProps:k,isPressed:R}=Cn(M),S=x?P=>{w.current==="mouse"&&(P.stopPropagation(),P.preventDefault(),I(P))}:void 0,{longPressProps:F}=Zh({isDisabled:!A,onLongPress(P){P.pointerType==="touch"&&(p(P),t.setSelectionBehavior("toggle"))}}),K=P=>{w.current==="touch"&&V.current&&P.preventDefault()},L=t.isLink(n)?P=>{jn.isOpening||P.preventDefault()}:void 0;return{itemProps:oe(h,g||C?k:{},A?F:{},{onDoubleClick:S,onDragStartCapture:K,onClick:L}),isPressed:R,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:g,hasAction:E}}function jp(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function zp(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class gc{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let o=this.getItem(t);if(!o)return null;let i=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(i,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){let n=this.collection.getItem(t);if((n==null?void 0:n.type)==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!ji(n))return this.getFirstKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.max(0,i.x-a+i.width-o.width);for(;r&&i.x-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.max(0,i.y-a+i.height-o.height);for(;r&&i.y-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!ji(n))return this.getLastKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.min(n.scrollWidth,i.x-a-i.width+o.width);for(;r&&i.x-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.min(n.scrollHeight,i.y-a-i.height+o.height);for(;r&&i.y-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o),a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getKeyBelow(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.orientation=n.orientation,this.direction=n.direction,this.layout=n.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Yg(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i}=e,a=Fu({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,l=u.useMemo(()=>i||new gc(n,s==="selection"?new Set:r,o,a),[i,n,r,o,a,s]),{collectionProps:c}=mc({...e,ref:o,selectionManager:t,keyboardDelegate:l});return{listProps:c}}class DP{build(t,n){return this.context=n,Up(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];u.Children.forEach(n,a=>{o.push(a)});let i=0;for(let a of o){let s=this.getFullNode({element:a,index:i},{});for(let l of s)i++,yield l}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var a;let s=(a=i.key)!==null&&a!==void 0?a:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let l=this.cache.get(t.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=t.index,l.parentKey=o?o.key:null,yield l;return}i=n.renderer(t.value)}if(u.isValidElement(i)){let l=i.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let p=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${p}> in collection.`)}let c=l.getCollectionNode(i.props,this.context),d=t.index,f=c.next();for(;!f.done&&f.value;){let p=f.value;t.index=d;let h=p.key;h||(h=p.element?null:this.getKey(i,t,n,r));let b=[...this.getFullNode({...p,key:h,index:d,wrapper:PP(t.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${i.key}`:i.key,o)];for(let g of b){if(g.value=p.value||t.value,g.value&&this.cache.set(g.value,g),t.type&&g.type!==t.type)throw new Error(`Unsupported type <${Hs(g.type)}> in <${Hs(o.type)}>. Only <${Hs(t.type)}> is supported.`);d++,yield g}f=c.next(b)}return}if(t.key==null)return;let a=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Up(function*(){if(!t.hasChildNodes)return;let l=0;for(let c of t.childNodes()){c.key!=null&&(c.key=`${s.key}${c.key}`),c.index=l;let d=a.getFullNode(c,a.getChildState(n,c),s.key,s);for(let f of d)l++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function Up(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function PP(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Hs(e){return e[0].toUpperCase()+e.slice(1)}function qg(e,t,n){let r=u.useMemo(()=>new DP,[]),{children:o,items:i,collection:a}=e;return u.useMemo(()=>{if(a)return a;let l=r.build({children:o,items:i},n);return t(l)},[r,o,i,a,n,t])}function Na(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function SP(e){return TP(e,0)}function TP(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Gs(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Hp(e,t),t],o=[...Hp(e,n),n],i=r.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function Hp(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const Gp=new WeakMap;function vc(e){let t=Gp.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(Na(o,e)):t++};return n(e),Gp.set(e,t),t}const _a=new WeakMap;function AP(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Zg(e,t){let n=_a.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${AP(t)}`}function kP(e,t,n){let r=me(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:a}=Yg({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=Mr({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=nt(e.id);_a.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:c,fieldProps:d}=No({...e,id:l,labelElementType:"span"});return{labelProps:c,listBoxProps:oe(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...oe(d,a)})}}function MP(e,t,n){var r;let{key:o}=e,i=_a.get(t);var a;let s=(a=e.isDisabled)!==null&&a!==void 0?a:t.disabledKeys.has(o);var l;let c=(l=e.isSelected)!==null&&l!==void 0?l:t.selectionManager.isSelected(o);var d;let f=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:i==null?void 0:i.shouldSelectOnPressUp;var p;let h=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:i==null?void 0:i.shouldFocusOnHover;var m;let b=(m=e.shouldUseVirtualFocus)!==null&&m!==void 0?m:i==null?void 0:i.shouldUseVirtualFocus;var g;let $=(g=e.isVirtualized)!==null&&g!==void 0?g:i==null?void 0:i.isVirtualized,C=yn(),x=yn(),E={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};sn()&&hu()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=C,E["aria-describedby"]=x);let w=t.collection.getItem(o);if($){let S=Number(w==null?void 0:w.index);E["aria-posinset"]=Number.isNaN(S)?void 0:S+1,E["aria-setsize"]=vc(t.collection)}let{itemProps:A,isPressed:V,isFocused:y,hasAction:I,allowsSelection:M}=bc({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:$,shouldUseVirtualFocus:b,isDisabled:s,onAction:i!=null&&i.onAction?()=>{var S;return i==null||(S=i.onAction)===null||S===void 0?void 0:S.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:k}=Ye({isDisabled:s||!h,onHoverStart(){wr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),R=me(w==null?void 0:w.props,{isLink:!!(!(w==null||(r=w.props)===null||r===void 0)&&r.href)});return delete R.id,{optionProps:{...E,...oe(R,A,k),id:Zg(t,o)},labelProps:{id:C},descriptionProps:{id:x},isFocused:y,isFocusVisible:y&&wr(),isSelected:c,isDisabled:s,isPressed:V,allowsSelection:M,hasAction:I}}function RP(e){let{heading:t,"aria-label":n}=e,r=nt();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Xg={};Xg={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Jg={};Jg={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Qg={};Qg={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var ev={};ev={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var tv={};tv={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var nv={};nv={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var rv={};rv={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var ov={};ov={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var iv={};iv={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var av={};av={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var sv={};sv={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var lv={};lv={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var uv={};uv={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var cv={};cv={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var dv={};dv={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var fv={};fv={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var pv={};pv={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var hv={};hv={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var mv={};mv={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var bv={};bv={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var gv={};gv={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var vv={};vv={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var yv={};yv={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var $v={};$v={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var xv={};xv={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var wv={};wv={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Cv={};Cv={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Ev={};Ev={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Dv={};Dv={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Pv={};Pv={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Sv={};Sv={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Tv={};Tv={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Av={};Av={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var kv={};kv={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function FP(e){return e&&e.__esModule?e.default:e}var Mv={};Mv={"ar-AE":Xg,"bg-BG":Jg,"cs-CZ":Qg,"da-DK":ev,"de-DE":tv,"el-GR":nv,"en-US":rv,"es-ES":ov,"et-EE":iv,"fi-FI":av,"fr-FR":sv,"he-IL":lv,"hr-HR":uv,"hu-HU":cv,"it-IT":dv,"ja-JP":fv,"ko-KR":pv,"lt-LT":hv,"lv-LV":mv,"nb-NO":bv,"nl-NL":gv,"pl-PL":vv,"pt-BR":yv,"pt-PT":$v,"ro-RO":xv,"ru-RU":wv,"sk-SK":Cv,"sl-SI":Ev,"sr-SP":Dv,"sv-SE":Pv,"tr-TR":Sv,"uk-UA":Tv,"zh-CN":Av,"zh-TW":kv};function BP(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=nt(),{triggerProps:s,overlayProps:l}=xw({type:r},t,n),c=h=>{if(!o&&!(i==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},d=Fr(FP(Mv),"@react-aria/menu"),{longPressProps:f}=Zh({isDisabled:o||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&t.toggle(h.pointerType==="virtual"?"first":null)},onPress(h){h.pointerType==="touch"&&!o&&t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?p:f,id:a,onKeyDown:c},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const Rv=new WeakMap;function IP(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=me(e,{labelable:!0}),{listProps:l}=Yg({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Rv.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:oe(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...l,onKeyDown:c=>{c.key!=="Escape"&&l.onKeyDown(c)}})}}function Fv(e,t,n){var r;let{key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":s,onPressStart:l,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:p,onHoverStart:h,onHoverChange:m,onHoverEnd:b,onKeyDown:g,onKeyUp:$,onFocus:C,onFocusChange:x,onBlur:E}=e,w=!!s;var A;let V=(A=e.isDisabled)!==null&&A!==void 0?A:t.disabledKeys.has(o);var y;let I=(y=e.isSelected)!==null&&y!==void 0?y:t.selectionManager.isSelected(o),M=Rv.get(t),k=e.onClose||M.onClose,R=w?()=>{}:e.onAction||M.onAction,S=ko(),F=ee=>{R&&R(o),ee.target instanceof HTMLAnchorElement&&S.open(ee.target,ee)},K="menuitem";w||(t.selectionManager.selectionMode==="single"?K="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(K="menuitemcheckbox"));let L=yn(),P=yn(),W=yn(),J={"aria-disabled":V||void 0,role:K,"aria-label":e["aria-label"],"aria-labelledby":L,"aria-describedby":[P,W].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};t.selectionManager.selectionMode!=="none"&&!w&&(J["aria-checked"]=I);let G=t.collection.getItem(o);a&&(J["aria-posinset"]=G==null?void 0:G.index,J["aria-setsize"]=vc(t.collection));let D=ee=>{ee.pointerType==="keyboard"&&F(ee),l==null||l(ee)},T=ee=>{ee.pointerType!=="keyboard"&&(F(ee),!w&&k&&(i??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(o)))&&k()),c==null||c(ee)},{itemProps:z,isFocused:H}=bc({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:X,isPressed:N}=Cn({onPressStart:D,onPress:d,onPressUp:T,onPressChange:f,onPressEnd:p,isDisabled:V}),{hoverProps:j}=Ye({isDisabled:V,onHoverStart(ee){wr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),h==null||h(ee)},onHoverChange:m,onHoverEnd:b}),{keyboardProps:_}=yu({onKeyDown:ee=>{if(ee.repeat){ee.continuePropagation();return}switch(ee.key){case" ":!V&&t.selectionManager.selectionMode==="none"&&!w&&i!==!1&&k&&k();break;case"Enter":!V&&i!==!1&&!w&&k&&k();break;default:w||ee.continuePropagation(),g==null||g(ee);break}},onKeyUp:$}),{focusProps:Q}=Ea({onBlur:E,onFocus:C,onFocusChange:x}),ne=me(G.props,{isLink:!!(!(G==null||(r=G.props)===null||r===void 0)&&r.href)});return delete ne.id,{menuItemProps:{...J,...oe(ne,w?{onFocus:z.onFocus}:z,X,j,_,Q),tabIndex:z.tabIndex!=null?-1:void 0},labelProps:{id:L},descriptionProps:{id:P},keyboardShortcutProps:{id:W},isFocused:H,isSelected:I,isPressed:N,isDisabled:V}}function OP(e){let{heading:t,"aria-label":n}=e,r=nt();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}const Ei=2,LP=50,VP=1e3,Wp=Math.PI/12;function NP(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:o}=e,i=u.useRef(),a=u.useRef(),s=u.useRef(0),l=u.useRef(),c=u.useRef(),d=u.useRef(),f=u.useRef(2),[p,h]=u.useState(!1);bu({ref:n,onResize:()=>{n.current&&(a.current=n.current.getBoundingClientRect(),d.current=void 0)}});let b=()=>{h(!1),f.current=Ei},g=M5();u.useEffect(()=>{p&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,p]),u.useEffect(()=>{let $=n.current,C=t.current;if(o||!$||!r||g!=="pointer"){b();return}a.current=$.getBoundingClientRect();let x=E=>{if(E.pointerType==="touch"||E.pointerType==="pen")return;let w=Date.now();if(w-s.current<LP)return;clearTimeout(l.current),clearTimeout(c.current);let{clientX:A,clientY:V}=E;if(!i.current){i.current={x:A,y:V};return}if(!a.current)return;if(d.current||(d.current=A>a.current.right?"left":"right"),A<C.getBoundingClientRect().left||A>C.getBoundingClientRect().right||V<C.getBoundingClientRect().top||V>C.getBoundingClientRect().bottom){b();return}let y=i.current.x,I=i.current.y,M=d.current==="right"?a.current.left-y:y-a.current.right,k=Math.atan2(I-a.current.top,M)+Wp,R=Math.atan2(I-a.current.bottom,M)-Wp,S=Math.atan2(I-V,d.current==="left"?-(A-y):A-y),F=S<k&&S>R;f.current=F?Math.min(f.current+1,Ei):Math.max(f.current-1,0),f.current>=Ei?h(!0):h(!1),s.current=w,i.current={x:A,y:V},F&&(l.current=setTimeout(()=>{b(),c.current=setTimeout(()=>{let K=document.elementFromPoint(A,V);K&&C.contains(K)&&K.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},VP))};return window.addEventListener("pointermove",x),()=>{window.removeEventListener("pointermove",x),clearTimeout(l.current),clearTimeout(c.current),f.current=Ei}},[o,r,t,g,h,n])}function _P(e,t,n){let{parentMenuRef:r,submenuRef:o,type:i="menu",isDisabled:a,node:s,delay:l=200}=e,c=nt(),d=nt(),{direction:f}=Ze(),p=u.useRef(),h=u.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=void 0)},[p]),m=Ne(y=>{h(),t.open(y)}),b=Ne(()=>{h(),t.close()});Se(()=>()=>{h()},[h]);let g=y=>{switch(y.key){case"ArrowLeft":f==="ltr"&&y.currentTarget.contains(y.target)&&(y.stopPropagation(),b(),n.current.focus());break;case"ArrowRight":f==="rtl"&&y.currentTarget.contains(y.target)&&(y.stopPropagation(),b(),n.current.focus());break;case"Escape":y.stopPropagation(),t.closeAll();break}},$={id:d,"aria-label":s.textValue,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:t.focusStrategy,onKeyDown:g}},C=y=>{switch(y.key){case"ArrowRight":a||(f==="ltr"?(t.isOpen||m("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?b():y.continuePropagation());break;case"ArrowLeft":a||(f==="rtl"?(t.isOpen||m("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?b():y.continuePropagation());break;case"Escape":t.closeAll();break;default:y.continuePropagation();break}},x=y=>{!a&&(y.pointerType==="virtual"||y.pointerType==="keyboard")&&m("first")},E=y=>{!a&&(y.pointerType==="touch"||y.pointerType==="mouse")&&m()},w=y=>{a||(y&&!t.isOpen?p.current||(p.current=setTimeout(()=>{m()},l)):y||h())},A=y=>{t.isOpen&&r.current.contains(y.relatedTarget)&&b()},V=y=>y!==n.current;return NP({menuRef:r,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:c,"aria-controls":t.isOpen?d:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:E,onHoverChange:w,onKeyDown:C,onBlur:A,isOpen:t.isOpen},submenuProps:$,popoverProps:{isNonModal:!0,disableFocusManagement:!0,shouldCloseOnInteractOutside:V}}}function yc(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:a="text",validationBehavior:s="aria"}=e,[l,c]=Rt(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=Rr(e,t),f=Or({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:m}=f.displayValidation,{labelProps:b,fieldProps:g,descriptionProps:$,errorMessageProps:C}=fg({...e,isInvalid:p,errorMessage:e.errorMessage||h}),x=me(e,{labelable:!0});const E={type:a,pattern:e.pattern};return Mo(t,l,c),hc(e,f,t),u.useEffect(()=>{if(t.current instanceof Tt(t.current).HTMLTextAreaElement){let w=t.current;Object.defineProperty(w,"defaultValue",{get:()=>w.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:oe(x,n==="input"&&E,{disabled:r,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:w=>c(w.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...g}),descriptionProps:$,errorMessageProps:C,isInvalid:p,validationErrors:h,validationDetails:m}}function Yp(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function KP(e,t,n){let r=Ne(f=>{let p=n.current,h;switch(f.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":h=p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentForward":h=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd+1):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentBackward":h=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart-1)+p.value.slice(p.selectionStart):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":h=p.value.slice(p.selectionStart);break;default:f.data!=null&&(h=p.value.slice(0,p.selectionStart)+f.data+p.value.slice(p.selectionEnd));break}(h==null||!t.validate(h))&&f.preventDefault()});u.useEffect(()=>{if(!Yp())return;let f=n.current;return f.addEventListener("beforeinput",r,!1),()=>{f.removeEventListener("beforeinput",r,!1)}},[n,r]);let o=Yp()?null:f=>{let p=f.target.value.slice(0,f.target.selectionStart)+f.data+f.target.value.slice(f.target.selectionEnd);t.validate(p)||f.preventDefault()},{labelProps:i,inputProps:a,descriptionProps:s,errorMessageProps:l,...c}=yc(e,n),d=u.useRef(null);return{inputProps:oe(a,{onBeforeInput:o,onCompositionStart(){let{value:f,selectionStart:p,selectionEnd:h}=n.current;d.current={value:f,selectionStart:p,selectionEnd:h}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:f,selectionStart:p,selectionEnd:h}=d.current;n.current.value=f,n.current.setSelectionRange(p,h),t.setInputValue(f)}}}),labelProps:i,descriptionProps:s,errorMessageProps:l,...c}}function jP(e){return e&&e.__esModule?e.default:e}var Bv={};Bv={"ar-AE":hg,"bg-BG":mg,"cs-CZ":bg,"da-DK":gg,"de-DE":vg,"el-GR":yg,"en-US":$g,"es-ES":xg,"et-EE":wg,"fi-FI":Cg,"fr-FR":Eg,"he-IL":Dg,"hr-HR":Pg,"hu-HU":Sg,"it-IT":Tg,"ja-JP":Ag,"ko-KR":kg,"lt-LT":Mg,"lv-LV":Rg,"nb-NO":Fg,"nl-NL":Bg,"pl-PL":Ig,"pt-BR":Og,"pt-PT":Lg,"ro-RO":Vg,"ru-RU":Ng,"sk-SK":_g,"sl-SI":Kg,"sr-SP":jg,"sv-SE":zg,"tr-TR":Ug,"uk-UA":Hg,"zh-CN":Gg,"zh-TW":Wg};function zP(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:a,shouldFocusWrap:s,isReadOnly:l,isDisabled:c}=e,d=Fr(jP(Bv),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:p}=BP({type:"listbox",isDisabled:c||l},t,n);_a.set(t,{id:p.id});let h=u.useMemo(()=>a||new gc(t.collection,t.disabledKeys,i),[a,t.collection,t.disabledKeys,i]),{collectionProps:m}=mc({selectionManager:t.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),b=ko(),g=j=>{switch(j.key){case"Enter":case"Tab":if(t.isOpen&&j.key==="Enter"&&j.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(j.key==="Enter"){let _=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);_ instanceof HTMLAnchorElement&&b.open(_,j)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&j.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},$=j=>{var _;j.relatedTarget===(n==null?void 0:n.current)||!((_=r.current)===null||_===void 0)&&_.contains(j.relatedTarget)||(e.onBlur&&e.onBlur(j),t.setFocused(!1))},C=j=>{t.isFocused||(e.onFocus&&e.onFocus(j),t.setFocused(!0))},{isInvalid:x,validationErrors:E,validationDetails:w}=t.displayValidation,{labelProps:A,inputProps:V,descriptionProps:y,errorMessageProps:I}=yc({...e,onChange:t.setInputValue,onKeyDown:l?e.onKeyDown:wn(t.isOpen&&m.onKeyDown,g,e.onKeyDown),onBlur:$,value:t.inputValue,onFocus:C,autoComplete:"off",validate:void 0,[Po]:t},o),M=j=>{j.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},k=j=>{j.pointerType!=="touch"&&(o.current.focus(),t.toggle(j.pointerType==="keyboard"||j.pointerType==="virtual"?"first":null,"manual"))},R=zn({id:f.id,"aria-label":d.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),S=zn({id:p.id,"aria-label":d.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),F=u.useRef(0),K=j=>{if(c||l)return;if(j.timeStamp-F.current<500){j.preventDefault(),o.current.focus();return}let _=j.target.getBoundingClientRect(),Q=j.changedTouches[0],ne=Math.ceil(_.left+.5*_.width),ee=Math.ceil(_.top+.5*_.height);Q.clientX===ne&&Q.clientY===ee&&(j.preventDefault(),o.current.focus(),t.toggle(null,"manual"),F.current=j.timeStamp)},L=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var P;let W=(P=L==null?void 0:L.parentKey)!==null&&P!==void 0?P:null;var J;let G=(J=t.selectionManager.focusedKey)!==null&&J!==void 0?J:null,D=u.useRef(W),T=u.useRef(G);u.useEffect(()=>{if(Si()&&L!=null&&G!==T.current){let j=t.selectionManager.isSelected(G),_=W!=null?t.collection.getItem(W):null,Q=(_==null?void 0:_["aria-label"])||(typeof(_==null?void 0:_.rendered)=="string"?_.rendered:"")||"",ne=d.format("focusAnnouncement",{isGroupChange:_&&W!==D.current,groupTitle:Q,groupCount:_?[...Na(_,t.collection)].length:0,optionText:L["aria-label"]||L.textValue||"",isSelected:j});Oi(ne)}D.current=W,T.current=G});let z=vc(t.collection),H=u.useRef(z),X=u.useRef(t.isOpen);u.useEffect(()=>{let j=t.isOpen!==X.current&&(t.selectionManager.focusedKey==null||Si());if(t.isOpen&&(j||z!==H.current)){let _=d.format("countAnnouncement",{optionCount:z});Oi(_)}H.current=z,X.current=t.isOpen});let N=u.useRef(t.selectedKey);return u.useEffect(()=>{if(Si()&&t.isFocused&&t.selectedItem&&t.selectedKey!==N.current){let j=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",_=d.format("selectedAnnouncement",{optionText:j});Oi(_)}N.current=t.selectedKey}),u.useEffect(()=>{if(t.isOpen)return Iu([o.current,r.current])},[t.isOpen,o,r]),{labelProps:A,buttonProps:{...f,...R,excludeFromTabOrder:!0,onPress:M,onPressStart:k,isDisabled:c||l},inputProps:oe(V,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":L?Zg(t,L.key):void 0,onTouchEnd:K,autoCorrect:"off",spellCheck:"false"}),listBoxProps:oe(p,S,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:y,errorMessageProps:I,isInvalid:x,validationErrors:E,validationDetails:w}}var Iv={};Iv={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Ov={};Ov={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Lv={};Lv={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Vv={};Vv={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Nv={};Nv={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var _v={};_v={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var Kv={};Kv={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var jv={};jv={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var zv={};zv={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var Uv={};Uv={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var Hv={};Hv={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var Gv={};Gv={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var Wv={};Wv={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Yv={};Yv={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var qv={};qv={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var Zv={};Zv={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var Xv={};Xv={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var Jv={};Jv={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var Qv={};Qv={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var ey={};ey={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var ty={};ty={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var ny={};ny={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var ry={};ry={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var oy={};oy={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var iy={};iy={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var ay={};ay={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var sy={};sy={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var ly={};ly={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var uy={};uy={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var cy={};cy={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var dy={};dy={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var fy={};fy={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var py={};py={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var hy={};hy={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var my={};my={Empty:"فارغ"};var by={};by={Empty:"Изпразни"};var gy={};gy={Empty:"Prázdné"};var vy={};vy={Empty:"Tom"};var yy={};yy={Empty:"Leer"};var $y={};$y={Empty:"Άδειο"};var xy={};xy={Empty:"Empty"};var wy={};wy={Empty:"Vacío"};var Cy={};Cy={Empty:"Tühjenda"};var Ey={};Ey={Empty:"Tyhjä"};var Dy={};Dy={Empty:"Vide"};var Py={};Py={Empty:"ריק"};var Sy={};Sy={Empty:"Prazno"};var Ty={};Ty={Empty:"Üres"};var Ay={};Ay={Empty:"Vuoto"};var ky={};ky={Empty:"空"};var My={};My={Empty:"비어 있음"};var Ry={};Ry={Empty:"Tuščias"};var Fy={};Fy={Empty:"Tukšs"};var By={};By={Empty:"Tom"};var Iy={};Iy={Empty:"Leeg"};var Oy={};Oy={Empty:"Pusty"};var Ly={};Ly={Empty:"Vazio"};var Vy={};Vy={Empty:"Vazio"};var Ny={};Ny={Empty:"Gol"};var _y={};_y={Empty:"Не заполнено"};var Ky={};Ky={Empty:"Prázdne"};var jy={};jy={Empty:"Prazen"};var zy={};zy={Empty:"Prazno"};var Uy={};Uy={Empty:"Tomt"};var Hy={};Hy={Empty:"Boş"};var Gy={};Gy={Empty:"Пусто"};var Wy={};Wy={Empty:"空"};var Yy={};Yy={Empty:"空白"};function UP(e){return e&&e.__esModule?e.default:e}var qy={};qy={"ar-AE":my,"bg-BG":by,"cs-CZ":gy,"da-DK":vy,"de-DE":yy,"el-GR":$y,"en-US":xy,"es-ES":wy,"et-EE":Cy,"fi-FI":Ey,"fr-FR":Dy,"he-IL":Py,"hr-HR":Sy,"hu-HU":Ty,"it-IT":Ay,"ja-JP":ky,"ko-KR":My,"lt-LT":Ry,"lv-LV":Fy,"nb-NO":By,"nl-NL":Iy,"pl-PL":Oy,"pt-BR":Ly,"pt-PT":Vy,"ro-RO":Ny,"ru-RU":_y,"sk-SK":Ky,"sl-SI":jy,"sr-SP":zy,"sv-SE":Uy,"tr-TR":Hy,"uk-UA":Gy,"zh-CN":Wy,"zh-TW":Yy};function Zy(e){const t=u.useRef();let{value:n,textValue:r,minValue:o,maxValue:i,isDisabled:a,isReadOnly:s,isRequired:l,onIncrement:c,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:h,onIncrementToMax:m}=e;const b=Fr(UP(qy),"@react-aria/spinbutton"),g=()=>clearTimeout(t.current);u.useEffect(()=>()=>g(),[]);let $=k=>{if(!(k.ctrlKey||k.metaKey||k.shiftKey||k.altKey||s))switch(k.key){case"PageUp":if(d){k.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":c&&(k.preventDefault(),c==null||c());break;case"PageDown":if(p){k.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":f&&(k.preventDefault(),f==null||f());break;case"Home":h&&(k.preventDefault(),h==null||h());break;case"End":m&&(k.preventDefault(),m==null||m());break}},C=u.useRef(!1),x=()=>{C.current=!0},E=()=>{C.current=!1},w=r===""?b.format("Empty"):(r||`${n}`).replace("-","−");u.useEffect(()=>{C.current&&(fP("assertive"),Oi(w,"assertive"))},[w]);const A=Ne(k=>{g(),c==null||c(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n<i)&&A(60)},k)}),V=Ne(k=>{g(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&V(60)},k)});let y=k=>{k.preventDefault()},{addGlobalListener:I,removeAllGlobalListeners:M}=kr();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":w,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":a||void 0,"aria-readonly":s||void 0,"aria-required":l||void 0,onKeyDown:$,onFocus:x,onBlur:E},incrementButtonProps:{onPressStart:()=>{A(400),I(window,"contextmenu",y)},onPressEnd:()=>{g(),M()},onFocus:x,onBlur:E},decrementButtonProps:{onPressStart:()=>{V(400),I(window,"contextmenu",y)},onPressEnd:()=>{g(),M()},onFocus:x,onBlur:E}}}function Xy(e){return e&&e.__esModule?e.default:e}var $c={};$c={"ar-AE":Iv,"bg-BG":Ov,"cs-CZ":Lv,"da-DK":Vv,"de-DE":Nv,"el-GR":_v,"en-US":Kv,"es-ES":jv,"et-EE":zv,"fi-FI":Uv,"fr-FR":Hv,"he-IL":Gv,"hr-HR":Wv,"hu-HU":Yv,"it-IT":qv,"ja-JP":Zv,"ko-KR":Xv,"lt-LT":Jv,"lv-LV":Qv,"nb-NO":ey,"nl-NL":ty,"pl-PL":ny,"pt-BR":ry,"pt-PT":oy,"ro-RO":iy,"ru-RU":ay,"sk-SK":sy,"sl-SI":ly,"sr-SP":uy,"sv-SE":cy,"tr-TR":dy,"uk-UA":fy,"zh-CN":py,"zh-TW":hy};function HP(e,t,n){let{direction:r}=Ze(),o=u.useMemo(()=>Qh(t),[t]),i=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?o.focusNext():o.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?o.focusPrevious():o.focusNext();break}},a=()=>{var l;let c=(l=window.event)===null||l===void 0?void 0:l.target,d=lt(t.current,{tabbable:!0});if(c&&(d.currentNode=c,c=d.previousNode()),!c){let f;do f=d.lastChild(),f&&(c=f);while(f)}for(;c!=null&&c.hasAttribute("data-placeholder");){let f=d.previousNode();if(f&&f.hasAttribute("data-placeholder"))c=f;else break}c&&c.focus()},{pressProps:s}=Cn({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){l.pointerType!=="mouse"&&a()}});return oe(s,{onKeyDown:i})}const Jy=new WeakMap,Ws="__role_"+Date.now(),GP="__focusManager_"+Date.now();function xc(e,t,n){var r;let{isInvalid:o,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:c,errorMessageProps:d}=fg({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),f=u.useRef(null),{focusWithinProps:p}=Mr({...e,onFocusWithin(M){var k;f.current=t.value,(k=e.onFocus)===null||k===void 0||k.call(e,M)},onBlurWithin:M=>{var k;t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),(k=e.onBlur)===null||k===void 0||k.call(e,M)},onFocusWithinChange:e.onFocusChange}),h=Fr(Xy($c),"@react-aria/datepicker"),m=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",b=t.maxGranularity==="hour"?"time":"date",g=t.value?h.format(m,{[b]:t.formatValue({month:"long"})}):"",$=Vh(g),C=e[Ws]==="presentation"?l["aria-describedby"]:[$["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[GP],E=u.useMemo(()=>x||Qh(n),[x,n]),w=HP(t,n,e[Ws]==="presentation");Jy.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:E});let A=u.useRef(e.autoFocus),V;e[Ws]==="presentation"?V={role:"presentation"}:V=oe(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),u.useEffect(()=>{A.current&&E.focusFirst(),A.current=!1},[E]),Mo(e.inputRef,t.value,t.setValue),hc({...e,focus(){E.focusFirst()}},t,e.inputRef);let y={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||""};e.validationBehavior==="native"&&(y.type="text",y.hidden=!0,y.required=e.isRequired,y.onChange=()=>{});let I=me(e);return{labelProps:{...s,onClick:()=>{E.focusFirst()}},fieldProps:oe(I,V,w,p,{onKeyDown(M){e.onKeyDown&&e.onKeyDown(M)},onKeyUp(M){e.onKeyUp&&e.onKeyUp(M)}}),inputProps:y,descriptionProps:c,errorMessageProps:d,isInvalid:o,validationErrors:i,validationDetails:a}}function WP(e,t,n){var r;let o=xc(e,t,n);return o.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",o}function YP(){let{locale:e}=Ze(),t=Rm(Xy($c),"@react-aria/datepicker");return u.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new qP(e,t)}},[e,t])}class qP{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function ZP(e,t,n){let r=u.useRef(""),{locale:o}=Ze(),i=YP(),{ariaLabel:a,ariaLabelledBy:s,ariaDescribedBy:l,focusManager:c}=Jy.get(t),d=e.isPlaceholder?"":e.text,f=u.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=pi({month:"long",timeZone:f.timeZone}),h=pi({hour:"numeric",hour12:f.hour12,timeZone:f.timeZone});if(e.type==="month"&&!e.isPlaceholder){let P=p.format(t.dateValue);d=P!==d?`${d} – ${P}`:P}else e.type==="hour"&&!e.isPlaceholder&&(d=h.format(t.dateValue));let{spinButtonProps:m}=Zy({value:e.value,textValue:d,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",t.setSegment(e.type,e.minValue)}}),b=u.useMemo(()=>new Ru(o,{maximumFractionDigits:0}),[o]),g=()=>{if(b.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let P=e.text.slice(0,-1),W=b.parse(P);P.length===0||W===0?t.clearSegment(e.type):t.setSegment(e.type,W),r.current=P}else e.type==="dayPeriod"&&t.clearSegment(e.type)},$=P=>{if(P.key==="a"&&(sn()?P.metaKey:P.ctrlKey)&&P.preventDefault(),!(P.ctrlKey||P.metaKey||P.shiftKey||P.altKey))switch(P.key){case"Backspace":case"Delete":P.preventDefault(),P.stopPropagation(),g();break}},{startsWith:C}=Fm({sensitivity:"base"}),x=pi({hour:"numeric",hour12:!0}),E=u.useMemo(()=>{let P=new Date;return P.setHours(0),x.formatToParts(P).find(W=>W.type==="dayPeriod").value},[x]),w=u.useMemo(()=>{let P=new Date;return P.setHours(12),x.formatToParts(P).find(W=>W.type==="dayPeriod").value},[x]),A=pi({year:"numeric",era:"narrow",timeZone:"UTC"}),V=u.useMemo(()=>{if(e.type!=="era")return[];let P=ut(new Ge(1,1,1),t.calendar),W=t.calendar.getEras().map(G=>{let D=P.set({year:1,month:1,day:1,era:G}).toDate("UTC"),z=A.formatToParts(D).find(H=>H.type==="era").value;return{era:G,formatted:z}}),J=XP(W.map(G=>G.formatted));if(J)for(let G of W)G.formatted=G.formatted.slice(J);return W},[A,t.calendar,e.type]),y=P=>{if(t.isDisabled||t.isReadOnly)return;let W=r.current+P;switch(e.type){case"dayPeriod":if(C(E,P))t.setSegment("dayPeriod",0);else if(C(w,P))t.setSegment("dayPeriod",12);else break;c.focusNext();break;case"era":{let J=V.find(G=>C(G.formatted,P));J&&(t.setSegment("era",J.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!b.isValidPartialNumber(W))return;let J=b.parse(W),G=J,D=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":J>11&&(G=b.parse(P));break;case"h12":D=!1,J>12&&(G=b.parse(P));break}e.value>=12&&J>1&&(J+=12)}else J>e.maxValue&&(G=b.parse(P));if(isNaN(J))return;let T=G!==0||D;T&&t.setSegment(e.type,G),+(J+"0")>e.maxValue||W.length>=String(e.maxValue).length?(r.current="",T&&c.focusNext()):r.current=W;break}}},I=()=>{r.current="",al(n.current,{containingElement:go(n.current)}),window.getSelection().collapse(n.current)},M=u.useRef("");zi(n,"beforeinput",P=>{switch(P.preventDefault(),P.inputType){case"deleteContentBackward":case"deleteContentForward":b.isValidPartialNumber(e.text)&&!t.isReadOnly&&g();break;case"insertCompositionText":M.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:P.data!=null&&y(P.data);break}}),zi(n,"input",P=>{let{inputType:W,data:J}=P;switch(W){case"insertCompositionText":n.current.textContent=M.current,(C(E,J)||C(w,J))&&y(J);break}}),Se(()=>{let P=n.current;return()=>{document.activeElement===P&&(c.focusPrevious()||c.focusNext())}},[n,c]);let k=Ar()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},R=u.useMemo(()=>t.segments.find(P=>P.isEditable),[t.segments]);e!==R&&!t.isInvalid&&(l=void 0);let S=nt(),F=!t.isDisabled&&!t.isReadOnly&&e.isEditable,K=e.type==="literal"?"":i.of(e.type),L=zn({"aria-label":`${K}${a?`, ${a}`:""}${s?", ":""}`,"aria-labelledby":s});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:oe(m,L,{id:S,...k,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:F,suppressContentEditableWarning:F,spellCheck:F?"false":void 0,autoCapitalize:F?"off":void 0,autoCorrect:F?"off":void 0,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:F?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!F?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:$,onFocus:I,style:{caretColor:"transparent"},onPointerDown(P){P.stopPropagation()},onMouseDown(P){P.stopPropagation()}})}}function XP(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function JP(e,t){let{role:n="dialog"}=e,r=yn();r=e["aria-label"]?void 0:r;let o=u.useRef(!1);return u.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Hn(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),Hn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),x0(),{dialogProps:{...me(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function Qy(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=me(e,{labelable:!0}),{labelProps:l,fieldProps:c}=No({...e,labelElementType:"span"});t=At(t,n,r);let d=(t-n)/(r-n),f=oa(a);if(!i&&!o){let p=a.style==="percent"?d:t;o=f.format(p)}return{progressBarProps:oe(s,{...c,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}function QP(e){let{progressBarProps:t,labelProps:n}=Qy(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}var e1={};e1={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var t1={};t1={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var n1={};n1={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var r1={};r1={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var o1={};o1={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var i1={};i1={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var a1={};a1={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var s1={};s1={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var l1={};l1={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var u1={};u1={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var c1={};c1={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var d1={};d1={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var f1={};f1={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var p1={};p1={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var h1={};h1={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var m1={};m1={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var b1={};b1={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var g1={};g1={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var v1={};v1={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var y1={};y1={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var $1={};$1={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var x1={};x1={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var w1={};w1={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var C1={};C1={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var E1={};E1={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var D1={};D1={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var P1={};P1={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var S1={};S1={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var T1={};T1={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var A1={};A1={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var k1={};k1={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var M1={};M1={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var R1={};R1={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var F1={};F1={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};function e8(e){return e&&e.__esModule?e.default:e}var B1={};B1={"ar-AE":e1,"bg-BG":t1,"cs-CZ":n1,"da-DK":r1,"de-DE":o1,"el-GR":i1,"en-US":a1,"es-ES":s1,"et-EE":l1,"fi-FI":u1,"fr-FR":c1,"he-IL":d1,"hr-HR":f1,"hu-HU":p1,"it-IT":h1,"ja-JP":m1,"ko-KR":b1,"lt-LT":g1,"lv-LV":v1,"nb-NO":y1,"nl-NL":$1,"pl-PL":x1,"pt-BR":w1,"pt-PT":C1,"ro-RO":E1,"ru-RU":D1,"sk-SK":P1,"sl-SI":S1,"sr-SP":T1,"sv-SE":A1,"tr-TR":k1,"uk-UA":M1,"zh-CN":R1,"zh-TW":F1};function t8(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:a,isReadOnly:s,isRequired:l,minValue:c,maxValue:d,autoFocus:f,label:p,formatOptions:h,onBlur:m=()=>{},onFocus:b,onFocusChange:g,onKeyDown:$,onKeyUp:C,description:x,errorMessage:E,isWheelDisabled:w,...A}=e,{increment:V,incrementToMax:y,decrement:I,decrementToMin:M,numberValue:k,inputValue:R,commit:S,commitValidation:F}=t;const K=Fr(e8(B1),"@react-aria/numberfield");let L=nt(r),{focusProps:P}=Ea({onBlur(){S()}}),W=oa(h),J=u.useMemo(()=>W.resolvedOptions(),[W]),G=oa({...h,currencySign:void 0}),D=u.useMemo(()=>isNaN(k)?"":G.format(k),[G,k]),{spinButtonProps:T,incrementButtonProps:z,decrementButtonProps:H}=Zy({isDisabled:a,isReadOnly:s,isRequired:l,maxValue:d,minValue:c,onIncrement:V,onIncrementToMax:y,onDecrement:I,onDecrementToMin:M,value:k,textValue:D}),[X,N]=u.useState(!1),{focusWithinProps:j}=Mr({isDisabled:a,onFocusWithinChange:N}),_=u.useCallback(Qe=>{Math.abs(Qe.deltaY)<=Math.abs(Qe.deltaX)||(Qe.deltaY>0?V():Qe.deltaY<0&&I())},[I,V]);O5({onScroll:_,isDisabled:w||a||s||!X},n);let ne=J.maximumFractionDigits>0,ee=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,q="numeric";Ih()?ee?q="text":ne&&(q="decimal"):mu()&&(ee?q="numeric":ne&&(q="decimal"));let he=Qe=>{t.validate(Qe)&&t.setInputValue(Qe)},re=me(e),ce=u.useCallback(Qe=>{Qe.key==="Enter"?(S(),F()):Qe.continuePropagation()},[S,F]),{isInvalid:$e,validationErrors:pe,validationDetails:Oe}=t.displayValidation,{labelProps:de,inputProps:ae,descriptionProps:xe,errorMessageProps:Vt}=KP({...A,...re,name:void 0,label:p,autoFocus:f,isDisabled:a,isReadOnly:s,isRequired:l,validate:void 0,[Po]:t,value:R,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:L,type:"text",inputMode:q,onChange:he,onBlur:m,onFocus:b,onFocusChange:g,onKeyDown:u.useMemo(()=>wn(ce,$),[ce,$]),onKeyUp:C,description:x,errorMessage:E},t,n);Mo(n,t.numberValue,t.setNumberValue);let Je=oe(T,P,ae,{role:null,"aria-roledescription":Ar()?null:K.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(Je["aria-required"]=void 0);let se=Qe=>{var _r;document.activeElement!==n.current&&(Qe.pointerType==="mouse"?(_r=n.current)===null||_r===void 0||_r.focus():Qe.target.focus())},Pe=e["aria-label"]||(typeof e.label=="string"?e.label:""),ct;Pe||(ct=e.label!=null?de.id:e["aria-labelledby"]);let Wt=nt(),mt=nt(),Xa=oe(z,{"aria-label":i||K.format("increase",{fieldLabel:Pe}).trim(),id:ct&&!i?Wt:null,"aria-labelledby":ct&&!i?`${Wt} ${ct}`:null,"aria-controls":L,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:se}),Ja=oe(H,{"aria-label":o||K.format("decrease",{fieldLabel:Pe}).trim(),id:ct&&!o?mt:null,"aria-labelledby":ct&&!o?`${mt} ${ct}`:null,"aria-controls":L,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:se});return{groupProps:{...j,role:"group","aria-disabled":a,"aria-invalid":$e?"true":void 0},labelProps:de,inputProps:Je,incrementButtonProps:Xa,decrementButtonProps:Ja,errorMessageProps:Vt,descriptionProps:xe,isInvalid:$e,validationErrors:pe,validationDetails:Oe}}function I1(e){let t=me(e,{labelable:!0}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}const wc=new WeakMap;function Wl(e,t){let n=wc.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function n8(e,t,n){let{labelProps:r,fieldProps:o}=No(e),i=e.orientation==="vertical";var a;wc.set(t,{id:(a=r.id)!==null&&a!==void 0?a:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:s}=Ze(),{addGlobalListener:l,removeGlobalListener:c}=kr();const d=u.useRef(null),f=s==="rtl",p=u.useRef(null),{moveProps:h}=qh({onMoveStart(){p.current=null},onMove({deltaX:$,deltaY:C}){let{height:x,width:E}=n.current.getBoundingClientRect(),w=i?x:E;p.current==null&&(p.current=t.getThumbPercent(d.current)*w);let A=i?C:$;if((i||f)&&(A=-A),p.current+=A,d.current!=null&&n.current){const V=At(p.current/w,0,1);t.setThumbPercent(d.current,V)}},onMoveEnd(){d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null)}});let m=u.useRef(void 0),b=($,C,x,E)=>{if(n.current&&!e.isDisabled&&t.values.every((w,A)=>!t.isThumbDragging(A))){let{height:w,width:A,top:V,left:y}=n.current.getBoundingClientRect(),I=i?w:A,S=((i?E:x)-(i?V:y))/I;(s==="rtl"||i)&&(S=1-S);let F=t.getPercentValue(S),K,L=t.values.findIndex(P=>F-P<0);if(L===0)K=L;else if(L===-1)K=t.values.length-1;else{let P=t.values[L-1],W=t.values[L];Math.abs(P-F)<Math.abs(W-F)?K=L-1:K=L}K>=0&&t.isThumbEditable(K)?($.preventDefault(),d.current=K,t.setFocusedThumb(K),m.current=C,t.setThumbDragging(d.current,!0),t.setThumbValue(K,F),l(window,"mouseup",g,!1),l(window,"touchend",g,!1),l(window,"pointerup",g,!1)):d.current=null}},g=$=>{var C,x;((x=$.pointerId)!==null&&x!==void 0?x:(C=$.changedTouches)===null||C===void 0?void 0:C[0].identifier)===m.current&&(d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null),c(window,"mouseup",g,!1),c(window,"touchend",g,!1),c(window,"pointerup",g,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var $;($=document.getElementById(Wl(t,0)))===null||$===void 0||$.focus(),Wh("keyboard")}),{labelProps:r,groupProps:{role:"group",...o},trackProps:oe({onMouseDown($){$.button!==0||$.altKey||$.ctrlKey||$.metaKey||b($,void 0,$.clientX,$.clientY)},onPointerDown($){$.pointerType==="mouse"&&($.button!==0||$.altKey||$.ctrlKey||$.metaKey)||b($,$.pointerId,$.clientX,$.clientY)},onTouchStart($){b($,$.changedTouches[0].identifier,$.changedTouches[0].clientX,$.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:t.values.map(($,C)=>Wl(t,C)).join(" "),"aria-live":"off"}}}function r8(e,t){let{index:n=0,isRequired:r,validationState:o,isInvalid:i,trackRef:a,inputRef:s,orientation:l=t.orientation,name:c}=e,d=e.isDisabled||t.isDisabled,f=l==="vertical",{direction:p}=Ze(),{addGlobalListener:h,removeGlobalListener:m}=kr(),b=wc.get(t);var g;const{labelProps:$,fieldProps:C}=No({...e,id:Wl(t,n),"aria-labelledby":`${b.id} ${(g=e["aria-labelledby"])!==null&&g!==void 0?g:""}`.trim()}),x=t.values[n],E=u.useCallback(()=>{s.current&&jt(s.current)},[s]),w=t.focusedThumb===n;u.useEffect(()=>{w&&E()},[w,E]);let A=p==="rtl",V=u.useRef(null),{keyboardProps:y}=yu({onKeyDown(L){let{getThumbMaxValue:P,getThumbMinValue:W,decrementThumb:J,incrementThumb:G,setThumbValue:D,setThumbDragging:T,pageSize:z}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),T(n,!0),L.key){case"PageUp":G(n,z);break;case"PageDown":J(n,z);break;case"Home":D(n,W(n));break;case"End":D(n,P(n));break}T(n,!1)}}),{moveProps:I}=qh({onMoveStart(){V.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:P,pointerType:W,shiftKey:J}){const{getThumbPercent:G,setThumbPercent:D,decrementThumb:T,incrementThumb:z,step:H,pageSize:X}=t;let{width:N,height:j}=a.current.getBoundingClientRect(),_=f?j:N;if(V.current==null&&(V.current=G(n)*_),W==="keyboard")L>0&&A||L<0&&!A||P>0?T(n,J?X:H):z(n,J?X:H);else{let Q=f?P:L;(f||A)&&(Q=-Q),V.current+=Q,D(n,At(V.current/_,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);const{focusableProps:M}=Rr(oe(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s);let k=u.useRef(void 0),R=L=>{E(),k.current=L,t.setThumbDragging(n,!0),h(window,"mouseup",S,!1),h(window,"touchend",S,!1),h(window,"pointerup",S,!1)},S=L=>{var P,W;((W=L.pointerId)!==null&&W!==void 0?W:(P=L.changedTouches)===null||P===void 0?void 0:P[0].identifier)===k.current&&(E(),t.setThumbDragging(n,!1),m(window,"mouseup",S,!1),m(window,"touchend",S,!1),m(window,"pointerup",S,!1))},F=t.getThumbPercent(n);(f||p==="rtl")&&(F=1-F);let K=d?{}:oe(y,I,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||R()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||R(L.pointerId)},onTouchStart:L=>{R(L.changedTouches[0].identifier)}});return Mo(s,x,L=>{t.setThumbValue(n,L)}),{inputProps:oe(M,C,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:x,name:c,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":i||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[b["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[b["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:L=>{t.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:{...K,style:{position:"absolute",[f?"top":"left"]:`${F*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(n),isDisabled:d,isFocused:w}}function o8(e,t,n){let{labelProps:r,inputProps:o,isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}=dg(e,t,n);return{labelProps:r,inputProps:{...o,role:"switch",checked:i},isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}}const O1=new WeakMap;function va(e,t,n){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${O1.get(e)}-${n}-${t}`}function i8(e,t,n){var r;let{key:o,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:s,selectedKey:l}=t,c=o===l,d=i||t.isDisabled||t.disabledKeys.has(o),{itemProps:f,isPressed:p}=bc({selectionManager:s,key:o,ref:n,isDisabled:d,shouldSelectOnPressUp:a,linkBehavior:"selection"}),h=va(t,o,"tab"),m=va(t,o,"tabpanel"),{tabIndex:b}=f,g=t.collection.getItem(o),$=me(g==null?void 0:g.props,{isLink:!!(!(g==null||(r=g.props)===null||r===void 0)&&r.href),labelable:!0});return delete $.id,{tabProps:oe($,f,{id:h,"aria-selected":c,"aria-disabled":d||void 0,"aria-controls":c?m:void 0,tabIndex:d?void 0:b,role:"tab"}),isSelected:c,isDisabled:d,isPressed:p}}function a8(e,t,n){let r=X5(n)?void 0:0;var o;const i=va(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),a=zn({...e,id:i,"aria-labelledby":va(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:oe(a,{tabIndex:r,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class s8{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}getKeyAbove(t){return this.getPreviousKey(t)}getKeyBelow(t){return this.getNextKey(t)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getPreviousKey(t)),t}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.disabledKeys.has(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.disabledKeys.has(t));return t}constructor(t,n,r,o=new Set){this.collection=t,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=o}}function l8(e,t,n){let{orientation:r="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:s}=t,{direction:l}=Ze(),c=u.useMemo(()=>new s8(i,l,r,s),[i,s,r,l]),{collectionProps:d}=mc({ref:n,selectionManager:a,keyboardDelegate:c,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=nt();O1.set(t,f);let p=zn({...e,id:f});return{tabListProps:{...oe(d,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function u8(e,t){let n=me(e,{labelable:!0}),{hoverProps:r}=Ye({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:oe(n,r,{role:"tooltip"})}}function c8(e,t,n){let{isDisabled:r,trigger:o}=e,i=nt(),a=u.useRef(!1),s=u.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},c=$=>{!a.current&&!s.current&&t.close($)};u.useEffect(()=>{let $=C=>{n&&n.current&&C.key==="Escape"&&(C.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",$,!0),()=>{document.removeEventListener("keydown",$,!0)}},[n,t]);let d=()=>{o!=="focus"&&(Gi()==="pointer"?a.current=!0:a.current=!1,l())},f=()=>{o!=="focus"&&(s.current=!1,a.current=!1,c())},p=()=>{s.current=!1,a.current=!1,c(!0)},h=()=>{wr()&&(s.current=!0,l())},m=()=>{s.current=!1,a.current=!1,c(!0)},{hoverProps:b}=Ye({isDisabled:r,onHoverStart:d,onHoverEnd:f}),{focusableProps:g}=Rr({isDisabled:r,onFocus:h,onBlur:m},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...oe(g,b,{onPointerDown:p,onKeyDown:p})},tooltipProps:{id:i}}}class It extends Set{constructor(t,n,r){super(t),t instanceof It?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function d8(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function L1(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=u.useRef(!1),[,s]=u.useState(!1),l=u.useRef(null),c=u.useRef(null),[,d]=u.useState(null),f=u.useMemo(()=>qp(e.selectedKeys),[e.selectedKeys]),p=u.useMemo(()=>qp(e.defaultSelectedKeys,new It),[e.defaultSelectedKeys]),[h,m]=Rt(f,p,e.onSelectionChange),b=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[g,$]=u.useState(o);o==="replace"&&g==="toggle"&&typeof h=="object"&&h.size===0&&$("replace");let C=u.useRef(o);return u.useEffect(()=>{o!==C.current&&($(o),C.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:g,setSelectionBehavior:$,get isFocused(){return a.current},setFocused(x){a.current=x,s(x)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(x,E="first"){l.current=x,c.current=E,d(x)},selectedKeys:h,setSelectedKeys(x){(r||!d8(x,h))&&m(x)},disabledKeys:b,disabledBehavior:i}}function qp(e,t){return e?e==="all"?"all":new It(e):t}class V1{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Gs(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Gs(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new It([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new It(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Gs(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new It(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new It([t],t,t):new It;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new It;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(SP(Na(o,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new It)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class Yl{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let a of i.childNodes)n(a)};for(let i of t)n(i);let r,o=0;for(let[i,a]of this.keyMap)r?(r.nextKey=i,a.prevKey=r.key):(this.firstKey=i,a.prevKey=void 0),a.type==="item"&&(a.index=o++),r=a,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function N1(e){let{filter:t}=e,n=L1(e),r=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=u.useCallback(c=>t?new Yl(t(c)):new Yl(c),[t]),i=u.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=qg(e,o,i),s=u.useMemo(()=>new V1(a,n),[a,n]);const l=u.useRef(null);return u.useEffect(()=>{if(n.focusedKey!=null&&!a.getItem(n.focusedKey)){const c=l.current.getItem(n.focusedKey),d=[...l.current.getKeys()].map(b=>{const g=l.current.getItem(b);return g.type==="item"?g:null}).filter(b=>b!==null),f=[...a.getKeys()].map(b=>{const g=a.getItem(b);return g.type==="item"?g:null}).filter(b=>b!==null),p=d.length-f.length;let h=Math.min(p>1?Math.max(c.index-p+1,0):c.index,f.length-1),m;for(;h>=0;){if(!s.isDisabled(f[h].key)){m=f[h];break}h<f.length-1?h++:(h>c.index&&(h=c.index),h--)}n.setFocusedKey(m?m.key:null)}l.current=a},[a,s,n,n.focusedKey]),{collection:a,disabledKeys:r,selectionManager:s}}function _1(e){var t;let[n,r]=Rt(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=u.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:a,selectionManager:s}=N1({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{var d;let f=(d=c.values().next().value)!==null&&d!==void 0?d:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),l=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:a,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:l}}function Ka(e){let[t,n]=Rt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=u.useCallback(()=>{n(!0)},[n]),o=u.useCallback(()=>{n(!1)},[n]),i=u.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function f8(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:s=!0}=e,[l,c]=u.useState(!1),[d,f]=u.useState(!1),[p,h]=u.useState(null),m=de=>{e.onSelectionChange&&e.onSelectionChange(de),de===C&&(H(),D())};var b;let{collection:g,selectionManager:$,selectedKey:C,setSelectedKey:x,selectedItem:E,disabledKeys:w}=_1({...e,onSelectionChange:m,items:(b=e.items)!==null&&b!==void 0?b:e.defaultItems});var A,V;let[y,I]=Rt(e.inputValue,(V=(A=e.defaultInputValue)!==null&&A!==void 0?A:(t=g.getItem(C))===null||t===void 0?void 0:t.textValue)!==null&&V!==void 0?V:"",e.onInputChange),M=g,k=u.useMemo(()=>e.items!=null||!r?g:p8(g,y,r),[g,y,r,e.items]),[R,S]=u.useState(k),F=u.useRef("focus"),L=Ka({...e,onOpenChange:de=>{e.onOpenChange&&e.onOpenChange(de,de?F.current:void 0),$.setFocused(de),de||$.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),P=(de=null,ae)=>{let xe=ae==="manual"||ae==="focus"&&o==="focus";(i||k.size>0||xe&&M.size>0||e.items)&&(xe&&!L.isOpen&&e.items===void 0&&c(!0),F.current=ae,h(de),L.open())},W=(de=null,ae)=>{let xe=ae==="manual"||ae==="focus"&&o==="focus";!(i||k.size>0||xe&&M.size>0||e.items)&&!L.isOpen||(xe&&!L.isOpen&&e.items===void 0&&c(!0),L.isOpen||(F.current=ae),G(de))},J=u.useCallback(()=>{S(l?M:k)},[l,M,k]),G=u.useCallback((de=null)=>{L.isOpen&&J(),h(de),L.toggle()},[L,J]),D=u.useCallback(()=>{L.isOpen&&(J(),L.close())},[L,J]),[T,z]=u.useState(y),H=()=>{var de,ae;let xe=(ae=(de=g.getItem(C))===null||de===void 0?void 0:de.textValue)!==null&&ae!==void 0?ae:"";z(xe),I(xe)};var X,N;let j=u.useRef((N=(X=e.selectedKey)!==null&&X!==void 0?X:e.defaultSelectedKey)!==null&&N!==void 0?N:null);var _;let Q=u.useRef((_=(n=g.getItem(C))===null||n===void 0?void 0:n.textValue)!==null&&_!==void 0?_:"");u.useEffect(()=>{var de;d&&(k.size>0||i)&&!L.isOpen&&y!==T&&o!=="manual"&&P(null,"input"),!l&&!i&&L.isOpen&&k.size===0&&D(),C!=null&&C!==j.current&&D(),y!==T&&($.setFocusedKey(null),c(!1),y===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&x(null)),C!==j.current&&(e.inputValue===void 0||e.selectedKey===void 0)?H():T!==y&&z(y);var ae;let xe=(ae=(de=g.getItem(C))===null||de===void 0?void 0:de.textValue)!==null&&ae!==void 0?ae:"";!d&&C!=null&&e.inputValue===void 0&&C===j.current&&Q.current!==xe&&(z(xe),I(xe)),j.current=C,Q.current=xe});let ne=Or({...e,value:u.useMemo(()=>({inputValue:y,selectedKey:C}),[y,C])}),ee=()=>{a&&C==null?q():he()},q=()=>{j.current=null,x(null),D()},he=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var de;e.onSelectionChange(C);var ae;let xe=(ae=(de=g.getItem(C))===null||de===void 0?void 0:de.textValue)!==null&&ae!==void 0?ae:"";z(xe),D()}else H(),D()};const re=()=>{if(a){var de,ae;const xe=(ae=(de=g.getItem(C))===null||de===void 0?void 0:de.textValue)!==null&&ae!==void 0?ae:"";y===xe?he():q()}else he()};let ce=()=>{L.isOpen&&$.focusedKey!=null?C===$.focusedKey?he():x($.focusedKey):re()},$e=u.useRef(y),pe=de=>{de?($e.current=y,o==="focus"&&P(null,"focus")):(s&&re(),y!==$e.current&&ne.commitValidation()),f(de)},Oe=u.useMemo(()=>L.isOpen?l?M:k:R,[L.isOpen,M,k,l,R]);return{...ne,...L,focusStrategy:p,toggle:W,open:P,close:re,selectionManager:$,selectedKey:C,setSelectedKey:x,disabledKeys:w,isFocused:d,setFocused:pe,selectedItem:E,collection:Oe,inputValue:y,setInputValue:I,commit:ce,revert:ee}}function p8(e,t,n){return new Yl(K1(e,e,t,n))}function K1(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let a=K1(e,Na(i,e),n,r);[...a].some(s=>s.type==="item")&&o.push({...i,childNodes:a})}else i.type==="item"&&r(i.textValue,n)?o.push({...i}):i.type!=="item"&&o.push({...i});return o}var j1={};j1={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var z1={};z1={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var U1={};U1={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var H1={};H1={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var G1={};G1={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var W1={};W1={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Y1={};Y1={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var q1={};q1={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var Z1={};Z1={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var X1={};X1={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var J1={};J1={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var Q1={};Q1={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var e4={};e4={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var t4={};t4={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var n4={};n4={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var r4={};r4={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var o4={};o4={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var i4={};i4={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var a4={};a4={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var s4={};s4={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var l4={};l4={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var u4={};u4={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var c4={};c4={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var d4={};d4={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var f4={};f4={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var p4={};p4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var h4={};h4={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var m4={};m4={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var b4={};b4={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var g4={};g4={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var v4={};v4={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var y4={};y4={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var $4={};$4={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var x4={};x4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};function h8(e){return e&&e.__esModule?e.default:e}var w4={};w4={"ar-AE":j1,"bg-BG":z1,"cs-CZ":U1,"da-DK":H1,"de-DE":G1,"el-GR":W1,"en-US":Y1,"es-ES":q1,"et-EE":Z1,"fi-FI":X1,"fr-FR":J1,"he-IL":Q1,"hr-HR":e4,"hu-HU":t4,"it-IT":n4,"ja-JP":r4,"ko-KR":o4,"lt-LT":i4,"lv-LV":a4,"nb-NO":s4,"nl-NL":l4,"pl-PL":u4,"pt-BR":c4,"pt-PT":d4,"ro-RO":f4,"ru-RU":p4,"sk-SK":h4,"sl-SI":m4,"sr-SP":b4,"sv-SE":g4,"tr-TR":v4,"uk-UA":y4,"zh-CN":$4,"zh-TW":x4};const m8=new Zn(h8(w4));function b8(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function g8(e,t,n,r,o){let i=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=i||a||s,c=[];if(l){let d=b8(),f=Zn.getGlobalDictionaryForPackage("@react-stately/datepicker")||m8,p=new tm(d,f),h=new so(d,ql({},o)),m=h.resolvedOptions().timeZone;a&&c.push(p.format("rangeUnderflow",{minValue:h.format(t.toDate(m))})),i&&c.push(p.format("rangeOverflow",{maxValue:h.format(n.toDate(m))})),s&&c.push(p.format("unavailableDate"))}return{isInvalid:l,validationErrors:c,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}const v8={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},y8={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ql(e,t){e={...t.shouldForceLeadingZeros?y8:v8,...e};let r=t.granularity||"minute",o=Object.keys(e);var i;let a=o.indexOf((i=t.maxGranularity)!==null&&i!==void 0?i:"year");a<0&&(a=0);let s=o.indexOf(r);if(s<0&&(s=2),a>s)throw new Error("maxGranularity must be greater than granularity");let l=o.slice(a,s+1).reduce((d,f)=>(d[f]=e[f],d),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&a===0&&(l.era="short"),l}function C4(e,t){if(e===null)return null;if(e)return ut(e,t)}function Xr(e,t,n,r){if(e)return C4(e,n);let o=ut(rm(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?um(o):r?o:En(o)}function $8(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[o,i]=u.useState([r,n]);e&&(o[0]!==r||o[1]!==n)&&i([r,n]),t||(t=e?r:o[0]);let a=e?n:o[1];return[t,a]}const x8=new Zn({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function w8(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?x8.getStringForLocale(e,n):"––"}const Di={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Zp={year:5,month:2,day:7,hour:2,minute:15,second:15},C8={dayperiod:"dayPeriod"};function Cc(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:o,isReadOnly:i,isRequired:a,minValue:s,maxValue:l,isDateUnavailable:c}=e,d=e.value||e.defaultValue||e.placeholderValue,[f,p]=$8(d,e.granularity),h=p||"UTC";if(d&&!(f in d))throw new Error("Invalid granularity "+f+" for value "+d.toString());let m=u.useMemo(()=>new so(t),[t]),b=u.useMemo(()=>n(m.resolvedOptions().calendar),[n,m]),[g,$]=Rt(e.value,e.defaultValue,e.onChange),C=u.useMemo(()=>C4(g,b),[g,b]),[x,E]=u.useState(()=>Xr(e.placeholderValue,f,b,p)),w=C||x,A=b.identifier==="gregory"&&w.era==="BC",V=u.useMemo(()=>{var j;return{granularity:f,maxGranularity:(j=e.maxGranularity)!==null&&j!==void 0?j:"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:A,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,p,r,A]),y=u.useMemo(()=>ql({},V),[V]),I=u.useMemo(()=>new so(t,y),[t,y]),M=u.useMemo(()=>I.resolvedOptions(),[I]),k=u.useMemo(()=>I.formatToParts(new Date).filter(j=>Di[j.type]).reduce((j,_)=>(j[_.type]=!0,j),{}),[I]),[R,S]=u.useState(()=>e.value||e.defaultValue?{...k}:{}),F=u.useRef(),K=u.useRef(b.identifier);u.useEffect(()=>{b.identifier!==K.current&&(K.current=b.identifier,E(j=>Object.keys(R).length>0?ut(j,b):Xr(e.placeholderValue,f,b,p)))},[b,f,R,p,e.placeholderValue]),g&&Object.keys(R).length<Object.keys(k).length&&(R={...k},S(R)),g==null&&Object.keys(R).length===Object.keys(k).length&&(R={},S(R),E(Xr(e.placeholderValue,f,b,p)));let L=C&&Object.keys(R).length>=Object.keys(k).length?C:x,P=j=>{if(e.isDisabled||e.isReadOnly)return;let _=Object.keys(R),Q=Object.keys(k);j==null?($(null),E(Xr(e.placeholderValue,f,b,p)),S({})):_.length>=Q.length||_.length===Q.length-1&&k.dayPeriod&&!R.dayPeriod&&F.current!=="dayPeriod"?(j=ut(j,(d==null?void 0:d.calendar)||new gt),$(j)):E(j),F.current=null},W=u.useMemo(()=>L.toDate(h),[L,h]),J=u.useMemo(()=>I.formatToParts(W).map(j=>{let _=Di[j.type];j.type==="era"&&b.getEras().length===1&&(_=!1);let Q=Di[j.type]&&!R[j.type],ne=Di[j.type]?w8(j.type,j.value,t):null;return{type:C8[j.type]||j.type,text:Q?ne:j.value,...E8(L,j.type,M),isPlaceholder:Q,placeholder:ne,isEditable:_}}),[W,R,I,M,L,b,t]);k.era&&R.year&&!R.era?(R.era=!0,S({...R})):!k.era&&R.era&&(delete R.era,S({...R}));let G=j=>{R[j]=!0,j==="year"&&k.era&&(R.era=!0),S({...R})},D=(j,_)=>{if(R[j])P(D8(L,j,_,M));else{G(j);let Q=Object.keys(R),ne=Object.keys(k);(Q.length>=ne.length||Q.length===ne.length-1&&k.dayPeriod&&!R.dayPeriod)&&P(L)}},T=u.useMemo(()=>g8(g,s,l,c,V),[g,s,l,c,V]),z=Or({...e,value:g,builtinValidation:T}),H=z.displayValidation.isInvalid,X=e.validationState||(H?"invalid":null);var N;return{...z,value:C,dateValue:W,calendar:b,setValue:P,segments:J,dateFormatter:I,validationState:X,isInvalid:H,granularity:f,maxGranularity:(N=e.maxGranularity)!==null&&N!==void 0?N:"year",isDisabled:o,isReadOnly:i,isRequired:a,increment(j){D(j,1)},decrement(j){D(j,-1)},incrementPage(j){D(j,Zp[j]||1)},decrementPage(j){D(j,-(Zp[j]||1))},setSegment(j,_){G(j),P(P8(L,j,_,M))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let j=Object.keys(R),_=Object.keys(k);j.length===_.length-1&&k.dayPeriod&&!R.dayPeriod&&(R={...k},S(R),P(L.copy()))},clearSegment(j){delete R[j],F.current=j,S({...R});let _=Xr(e.placeholderValue,f,b,p),Q=L;if(j==="dayPeriod"&&"hour"in L&&"hour"in _){let ne=L.hour>=12,ee=_.hour>=12;ne&&!ee?Q=L.set({hour:L.hour-12}):!ne&&ee&&(Q=L.set({hour:L.hour+12}))}else j in L&&(Q=L.set({[j]:_[j]}));$(null),P(Q)},formatValue(j){if(!C)return"";let _=ql(j,V);return new so(t,_).format(W)}}}function E8(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:a2(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:s2(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function D8(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return e.set({hour:i?o-12:o+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}}function P8(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return n>=12===i?e:e.set({hour:i?o-12:o+12})}case"hour":if(r.hour12){let i=e.hour>=12;!i&&n===12&&(n=0),i&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}function S8(e){let{placeholderValue:t=new Ta,minValue:n,maxValue:r,granularity:o,validate:i}=e,[a,s]=Rt(e.value,e.defaultValue,e.onChange),l=a||t,c=l&&"day"in l?l:void 0,d=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,f=u.useMemo(()=>{let C=l&&"timeZone"in l?l.timeZone:void 0;return(C||d)&&t?cm(Jr(t),C||d):Jr(t)},[t,l,d]),p=u.useMemo(()=>Jr(n,c),[n,c]),h=u.useMemo(()=>Jr(r,c),[r,c]),m=u.useMemo(()=>a&&"day"in a?jd(a):a,[a]),b=u.useMemo(()=>a==null?null:Jr(a),[a]);return{...Cc({...e,value:b,defaultValue:void 0,minValue:p,maxValue:h,onChange:C=>{s(c||d?C:C&&jd(C))},granularity:o||"minute",maxGranularity:"hour",placeholderValue:f,createCalendar:()=>new gt,validate:u.useCallback(()=>i==null?void 0:i(a),[i,a])}),timeValue:m}}function Jr(e,t=i2(Cu())){return e?"day"in e?e:En(t,e):null}function T8(e,t){let{triggerKey:n}=e,{UNSTABLE_expandedKeysStack:r,UNSTABLE_openSubmenu:o,UNSTABLE_closeSubmenu:i,close:a}=t,[s]=u.useState(r==null?void 0:r.length),l=u.useMemo(()=>r[s]===n,[r,n,s]),[c,d]=u.useState(null),f=u.useCallback((m=null)=>{d(m),o(n,s)},[o,s,n]),p=u.useCallback(()=>{d(null),i(n,s)},[i,s,n]),h=u.useCallback((m=null)=>{d(m),l?p():f(m)},[p,f,l]);return u.useMemo(()=>({focusStrategy:c,isOpen:l,open:f,close:p,closeAll:a,submenuLevel:s,setOpen:()=>{},toggle:h}),[l,f,p,a,c,h,s])}function A8(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:i,defaultValue:a=NaN,onChange:s,locale:l,isDisabled:c,isReadOnly:d}=e;i===null&&(i=NaN),i!==void 0&&!isNaN(i)&&(r!==void 0&&!isNaN(r)?i=ft(i,t,n,r):i=At(i,t,n)),isNaN(a)||(r!==void 0&&!isNaN(r)?a=ft(a,t,n,r):a=At(a,t,n));let[f,p]=Rt(i,isNaN(a)?NaN:a,s),[h,m]=u.useState(()=>isNaN(f)?"":new ra(l,o).format(f)),b=u.useMemo(()=>new Ru(l,o),[l,o]),g=u.useMemo(()=>b.getNumberingSystem(h),[b,h]),$=u.useMemo(()=>new ra(l,{...o,numberingSystem:g}),[l,o,g]),C=u.useMemo(()=>$.resolvedOptions(),[$]),x=u.useCallback(T=>isNaN(T)||T===null?"":$.format(T),[$]),E=Or({...e,value:f}),w=r!==void 0&&!isNaN(r)?r:1;C.style==="percent"&&(r===void 0||isNaN(r))&&(w=.01);let[A,V]=u.useState(f),[y,I]=u.useState(l),[M,k]=u.useState(o);(!Object.is(f,A)||l!==y||o!==M)&&(m(x(f)),V(f),I(l),k(o));let R=u.useMemo(()=>b.parse(h),[b,h]),S=()=>{if(!h.length){p(NaN),m(i===void 0?"":x(f));return}if(isNaN(R)){m(x(f));return}let T;r===void 0||isNaN(r)?T=At(R,t,n):T=ft(R,t,n,r),T=b.parse(x(T)),p(T),m(x(i===void 0?T:f))},F=(T,z=0)=>{let H=R;if(isNaN(H)){let X=isNaN(z)?0:z;return ft(X,t,n,w)}else{let X=ft(H,t,n,w);return T==="+"&&X>H||T==="-"&&X<H?X:ft(Ys(T,H,w),t,n,w)}},K=()=>{let T=F("+",t);T===f&&m(x(T)),p(T),E.commitValidation()},L=()=>{let T=F("-",n);T===f&&m(x(T)),p(T),E.commitValidation()},P=()=>{n!=null&&(p(ft(n,t,n,w)),E.commitValidation())},W=()=>{t!=null&&(p(t),E.commitValidation())},J=u.useMemo(()=>!c&&!d&&(isNaN(R)||n===void 0||isNaN(n)||ft(R,t,n,w)>R||Ys("+",R,w)<=n),[c,d,t,n,w,R]),G=u.useMemo(()=>!c&&!d&&(isNaN(R)||t===void 0||isNaN(t)||ft(R,t,n,w)<R||Ys("-",R,w)>=t),[c,d,t,n,w,R]);return{...E,validate:T=>b.isValidPartialNumber(T,t,n),increment:K,incrementToMax:P,decrement:L,decrementToMin:W,canIncrement:J,canDecrement:G,minValue:t,maxValue:n,numberValue:R,setNumberValue:p,setInputValue:m,inputValue:h,commit:S}}function Ys(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const o=t.toString().split("."),i=n.toString().split("."),a=o[1]&&o[1].length||0,s=i[1]&&i[1].length||0,l=Math.pow(10,Math.max(a,s));t=Math.round(t*l),n=Math.round(n*l),r=e==="+"?t+n:t-n,r/=l}return r}const k8=0,M8=100,R8=1;function F8(e){const{isDisabled:t=!1,minValue:n=k8,maxValue:r=M8,numberFormatter:o,step:i=R8,orientation:a="horizontal"}=e;let s=u.useMemo(()=>{let D=(r-n)/10;return D=ft(D,0,D+i,i),Math.max(D,i)},[i,r,n]),l=u.useCallback(D=>D==null?void 0:D.map((T,z)=>{let H=z===0?n:T[z-1],X=z===D.length-1?r:T[z+1];return ft(T,H,X,i)}),[n,r,i]),c=u.useMemo(()=>l(Jp(e.value)),[e.value]),d=u.useMemo(()=>{var D;return l((D=Jp(e.defaultValue))!==null&&D!==void 0?D:[n])},[e.defaultValue,n]),f=Qp(e.value,e.defaultValue,e.onChange),p=Qp(e.value,e.defaultValue,e.onChangeEnd);const[h,m]=Rt(c,d,f),[b,g]=u.useState(new Array(h.length).fill(!1)),$=u.useRef(new Array(h.length).fill(!0)),[C,x]=u.useState(void 0),E=u.useRef(h),w=u.useRef(b);let A=D=>{E.current=D,m(D)},V=D=>{w.current=D,g(D)};function y(D){return(D-n)/(r-n)}function I(D){return D===0?n:h[D-1]}function M(D){return D===h.length-1?r:h[D+1]}function k(D){return $.current[D]}function R(D,T){$.current[D]=T}function S(D,T){if(t||!k(D))return;const z=I(D),H=M(D);T=ft(T,z,H,i);let X=Xp(E.current,D,T);A(X)}function F(D,T){if(t||!k(D))return;T&&(E.current=h);const z=w.current[D];w.current=Xp(w.current,D,T),V(w.current),p&&z&&!w.current.some(Boolean)&&p(E.current)}function K(D){return o.format(D)}function L(D,T){S(D,W(T))}function P(D){return Math.round((D-n)/i)*i+n}function W(D){const T=D*(r-n)+n;return At(P(T),n,r)}function J(D,T=1){let z=Math.max(T,i);S(D,ft(h[D]+z,n,r,i))}function G(D,T=1){let z=Math.max(T,i);S(D,ft(h[D]-z,n,r,i))}return{values:h,getThumbValue:D=>h[D],setThumbValue:S,setThumbPercent:L,isThumbDragging:D=>b[D],setThumbDragging:F,focusedThumb:C,setFocusedThumb:x,getThumbPercent:D=>y(h[D]),getValuePercent:y,getThumbValueLabel:D=>K(h[D]),getFormattedValue:K,getThumbMinValue:I,getThumbMaxValue:M,getPercentValue:W,isThumbEditable:k,setThumbEditable:R,incrementThumb:J,decrementThumb:G,step:i,pageSize:s,orientation:a,isDisabled:t}}function Xp(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function Jp(e){if(e!=null)return Array.isArray(e)?e:[e]}function Qp(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}function B8(e){var t;let n=_1({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:eh(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:r,collection:o,selectedKey:i}=n,a=u.useRef(i);return u.useEffect(()=>{let s=i;(r.isEmpty||!o.getItem(s))&&(s=eh(o,n.disabledKeys),s!=null&&r.setSelectedKeys([s])),(s!=null&&r.focusedKey==null||!r.isFocused&&s!==a.current)&&r.setFocusedKey(s),a.current=s}),{...n,isDisabled:e.isDisabled||!1}}function eh(e,t){let n=null;if(e){for(n=e.getFirstKey();t.has(n)&&n!==e.getLastKey();)n=e.getKeyAfter(n);t.has(n)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}const I8=1500,th=500;let An={},O8=0,Qr=!1,Zt=null,kn=null;function L8(e={}){let{delay:t=I8,closeDelay:n=th}=e,{isOpen:r,open:o,close:i}=Ka(e),a=u.useMemo(()=>`${++O8}`,[]),s=u.useRef(),l=()=>{An[a]=f},c=()=>{for(let h in An)h!==a&&(An[h](!0),delete An[h])},d=()=>{clearTimeout(s.current),s.current=null,c(),l(),Qr=!0,o(),Zt&&(clearTimeout(Zt),Zt=null),kn&&(clearTimeout(kn),kn=null)},f=h=>{h||n<=0?(clearTimeout(s.current),s.current=null,i()):s.current||(s.current=setTimeout(()=>{s.current=null,i()},n)),Zt&&(clearTimeout(Zt),Zt=null),Qr&&(kn&&clearTimeout(kn),kn=setTimeout(()=>{delete An[a],kn=null,Qr=!1},Math.max(th,n)))},p=()=>{c(),l(),!r&&!Zt&&!Qr?Zt=setTimeout(()=>{Zt=null,Qr=!0,d()},t):r||d()};return u.useEffect(()=>()=>{clearTimeout(s.current),An[a]&&delete An[a]},[a]),{isOpen:r,open:h=>{!h&&t>0&&!s.current?p():d()},close:f}}class V8{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.iterable=t,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of t)r(a);let o,i=0;for(let[a,s]of this.keyMap)o?(o.nextKey=a,s.prevKey=o.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=i++),o=s,o.nextKey=void 0;this.lastKey=o==null?void 0:o.key}}function N8(e){let[t,n]=Rt(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),r=L1(e),o=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=qg(e,u.useCallback(s=>new V8(s,{expandedKeys:t}),[t]),null);return u.useEffect(()=>{r.focusedKey!=null&&!i.getItem(r.focusedKey)&&r.setFocusedKey(null)},[i,r.focusedKey]),{collection:i,expandedKeys:t,disabledKeys:o,toggleKey:s=>{n(_8(t,s))},setExpandedKeys:n,selectionManager:new V1(i,r)}}function _8(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var Zl={exports:{}},qs={};/**
|
|
253
253
|
* @license React
|
|
254
254
|
* use-sync-external-store-shim.production.min.js
|
|
255
255
|
*
|
|
@@ -257,7 +257,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
257
257
|
*
|
|
258
258
|
* This source code is licensed under the MIT license found in the
|
|
259
259
|
* LICENSE file in the root directory of this source tree.
|
|
260
|
-
*/var nh;function
|
|
260
|
+
*/var nh;function K8(){if(nh)return qs;nh=1;var e=u;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(f,p){var h=p(),m=r({inst:{value:h,getSnapshot:p}}),b=m[0].inst,g=m[1];return i(function(){b.value=h,b.getSnapshot=p,l(b)&&g({inst:b})},[f,h,p]),o(function(){return l(b)&&g({inst:b}),f(function(){l(b)&&g({inst:b})})},[f]),a(h),h}function l(f){var p=f.getSnapshot;f=f.value;try{var h=p();return!n(f,h)}catch{return!0}}function c(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return qs.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,qs}var Zs={};/**
|
|
261
261
|
* @license React
|
|
262
262
|
* use-sync-external-store-shim.development.js
|
|
263
263
|
*
|
|
@@ -265,17 +265,17 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
265
265
|
*
|
|
266
266
|
* This source code is licensed under the MIT license found in the
|
|
267
267
|
* LICENSE file in the root directory of this source tree.
|
|
268
|
-
*/var rh;function NS(){return rh||(rh=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=u,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(x){{for(var E=arguments.length,w=new Array(E>1?E-1:0),A=1;A<E;A++)w[A-1]=arguments[A];r("error",x,w)}}function r(x,E,w){{var A=t.ReactDebugCurrentFrame,V=A.getStackAddendum();V!==""&&(E+="%s",w=w.concat([V]));var y=w.map(function(I){return String(I)});y.unshift("Warning: "+E),Function.prototype.apply.call(console[x],console,y)}}function o(x,E){return x===E&&(x!==0||1/x===1/E)||x!==x&&E!==E}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue,d=!1,f=!1;function p(x,E,w){d||e.startTransition!==void 0&&(d=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var A=E();if(!f){var V=E();i(A,V)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var y=a({inst:{value:A,getSnapshot:E}}),I=y[0].inst,M=y[1];return l(function(){I.value=A,I.getSnapshot=E,h(I)&&M({inst:I})},[x,A,E]),s(function(){h(I)&&M({inst:I});var k=function(){h(I)&&M({inst:I})};return x(k)},[x]),c(A),A}function h(x){var E=x.getSnapshot,w=x.value;try{var A=E();return!i(w,A)}catch{return!0}}function m(x,E,w){return E()}var b=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",v=!b,$=v?m:p,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:$;Zs.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Zs}process.env.NODE_ENV==="production"?Zl.exports=VS():Zl.exports=NS();var _S=Zl.exports;class Ec{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Ec(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t}constructor(t,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=t,this.key=n}}class C4{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}appendChild(t){this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(t){if(t.parentNode!==this)return;this.ownerDocument.startTransaction();let n=t.nextSibling;for(;n;)n.index--,n=n.nextSibling;t.nextSibling&&(t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.removeNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=t}}class So extends C4{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof So?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,n,r,o;let i=this.ownerDocument.getMutableNode(this);i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof So?this.parentNode.node.key:null;var a;i.prevKey=(a=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&a!==void 0?a:null;var s;i.nextKey=(s=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var l;i.firstChildKey=(l=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&l!==void 0?l:null;var c;i.lastChildKey=(c=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&c!==void 0?c:null}setProps(t,n,r){let o=this.ownerDocument.getMutableNode(this),{value:i,textValue:a,id:s,...l}=t;if(l.ref=n,o.props=l,o.rendered=r,o.value=i,o.textValue=a||(typeof r=="string"?r:"")||t["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new Ec(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class KS{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class jS extends C4{get isConnected(){return!0}createElement(t){return new So(t,this)}getMutableNode(t){let n=t.node;return this.mutatedNodes.has(t)||(n=t.node.clone(),this.mutatedNodes.add(t),t.node=n),this.markDirty(t),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(t){this.dirtyNodes.add(t)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(t){let n=this.getMutableCollection();if(!n.getItem(t.node.key)){n.addNode(t.node);for(let r of t)this.addNode(r)}this.markDirty(t)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key),this.markDirty(t)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof So&&i.isConnected&&i.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,n;let i=this.getMutableCollection();for(let a of this.mutatedNodes)a.isConnected&&i.addNode(a.node);var r,o;i.commit((r=(t=this.firstChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(o=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let t of this.subscriptions)t()}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}}function Lr(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=u.useMemo(()=>new WeakMap,i);return u.useMemo(()=>{if(n&&typeof t=="function"){let c=[];for(let d of n){let f=a.get(d);if(!f){f=t(d);var s,l;let p=(l=(s=f.props.id)!==null&&s!==void 0?s:d.key)!==null&&l!==void 0?l:d.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=u.cloneElement(f,o?{key:p,id:p,value:d}:{key:p}),a.set(d,f)}c.push(f)}return c}else if(typeof t!="function")return t},[t,n,a,r,o])}function zS(e){return Lr({...e,addIdAndValue:!0})}const E4=u.createContext(!1);function Dc(e,t){let{collection:n,document:r}=Pc(t);return{portal:D4(e,r),collection:n}}function US(e,t,n){let r=Ht(),o=u.useRef(r);o.current=r;let i=u.useCallback(()=>o.current?n():t(),[t,n]);return _S.useSyncExternalStore(e,i)}const HS=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:US;function Pc(e){let t=u.useMemo(()=>new jS(e||new KS),[e]),n=u.useCallback(a=>t.subscribe(a),[t]),r=u.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=u.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:HS(n,r,o),document:t}}const Xl=u.createContext(null),_o=u.createContext(null);function D4(e,t){let n=u.useContext(_o),r=t??n,o=zS(e),i=u.useMemo(()=>u.createElement(E4.Provider,{value:!0},o),[o]);return Ht()?u.createElement(Xl.Provider,{value:r},i):dn.createPortal(i,r)}function P4(e){return u.createElement(u.Fragment,null,D4(e))}function S4(e,t,n){let r=u.useContext(E4);var o;return r?(o=ja(e,t,n,"children"in t?t.children:null))!==null&&o!==void 0?o:u.createElement(u.Fragment,null):null}function GS(e,t,n){return u.useCallback(r=>{r==null||r.setProps(e,t,n)},[e,t,n])}function ja(e,t,n,r,o){let i=GS(t,n,r),a=u.useContext(Xl);if(a){let s=a.ownerDocument.nodesByProps.get(t);return s||(s=a.ownerDocument.createElement(e),s.setProps(t,n,r),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,s)),o?u.createElement(Xl.Provider,{value:s},o):null}return u.createElement(e,{ref:i},o)}const WS=Symbol("callback"),Jl=Symbol("default");function Xe({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function ye(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,values:a}=e;return u.useMemo(()=>{let s,l,c;return typeof t=="function"?s=t(a):s=t,typeof n=="function"?l=n(a):l=n,typeof r=="function"?c=r(a):r==null?c=i:c=r,{className:s??o,style:l,children:c,"data-rac":""}},[t,n,r,o,i,a])}function za(e,t){let n=u.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`));if(!t&&!n.slots[Jl])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=t||Jl;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[o]}return n}function Te(e,t,n){let r=za(n,e.slot)||{},{ref:o,[WS]:i,...a}=r,s=Ft(u.useMemo(()=>wa(t,o),[t,o])),l=oe(a,e);return"style"in a&&a.style&&typeof a.style=="object"&&"style"in e&&e.style&&typeof e.style=="object"&&(l.style={...a.style,...e.style}),u.useEffect(()=>{i&&i(e)},[i,e]),[l,s]}function Ot(){let[e,t]=u.useState(!0),n=u.useRef(!1),r=u.useCallback(o=>{n.current=!0,t(!!o)},[]);return Se(()=>{n.current||t(!1)},[]),[r,e]}function Sc(e,t=!0){let[n,r]=u.useState(!0);return T4(e,n&&t,u.useCallback(()=>r(!1),[])),n&&t}function Ql(e,t){let[n,r]=u.useState(!1),[o,i]=u.useState("idle");return!t&&e.current&&o==="idle"&&(n=!0,r(!0),i("exiting")),!e.current&&o==="exited"&&i("idle"),T4(e,n,u.useCallback(()=>{i("exited"),r(!1)},[])),n}function T4(e,t,n){let r=u.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),Se(()=>{if(t&&e.current){let o=window.getComputedStyle(e.current);if(o.animationName&&o.animationName!=="none"&&o.animation!==r.current){let i=s=>{s.target===e.current&&(a.removeEventListener("animationend",i),dn.flushSync(()=>{n()}))},a=e.current;return a.addEventListener("animationend",i),()=>{a.removeEventListener("animationend",i)}}else n()}},[e,t,n])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const To=u.createContext(!1),YS=typeof DocumentFragment<"u"?new DocumentFragment:null;function A4(e){let t=u.useContext(To),n=Ht();if(t)return u.createElement(u.Fragment,null,e.children);let r=u.createElement(To.Provider,{value:!0},e.children);return n?u.createElement("template",{"data-react-aria-hidden":!0},r):dn.createPortal(r,YS)}function Ua(e){let t=(n,r)=>u.useContext(To)?null:e(n,r);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function Yn(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}const k4=u.createContext(null);function qS(e,t){[e,t]=Te(e,t,k4);let n=e.href?"a":"span",{linkProps:r,isPressed:o}=sP({...e,elementType:n},t),{hoverProps:i,isHovered:a}=Ye(e),{focusProps:s,isFocused:l,isFocusVisible:c}=at(),d=ye({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:a,isFocused:l,isFocusVisible:c}});return u.createElement(n,{ref:t,slot:e.slot||void 0,...oe(d,r,i,s),"data-focused":l||void 0,"data-hovered":a||void 0,"data-pressed":o||void 0,"data-focus-visible":c||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},d.children)}const Ha=u.forwardRef(qS),ZS=u.createContext(null);function XS(e,t){[e,t]=Te(e,t,ZS);let{portal:n,collection:r}=Dc(e);return u.createElement(u.Fragment,null,n,u.createElement(JS,{props:e,collection:r,breadcrumbsRef:t}))}function JS({props:e,collection:t,breadcrumbsRef:n}){var r;return u.createElement("ol",{ref:n,...me(e,{labelable:!0}),slot:e.slot||void 0,style:e.style,className:(r=e.className)!==null&&r!==void 0?r:"react-aria-Breadcrumbs"},[...t].map((o,i)=>u.createElement(t8,{key:o.key,node:o,isCurrent:i===t.size-1,isDisabled:e.isDisabled,onAction:e.onAction})))}const QS=u.forwardRef(XS);function e8(e,t){return ja("item",e,t,e.children)}const M4=u.forwardRef(e8);function t8({node:e,isCurrent:t,isDisabled:n,onAction:r}){let o={"aria-current":t?"page":null,isDisabled:n||t,onPress:()=>r==null?void 0:r(e.key)};var i;return u.createElement("li",{...me(e.props),ref:e.props.ref,style:e.props.style,className:(i=e.props.className)!==null&&i!==void 0?i:"react-aria-Breadcrumb"},u.createElement(k4.Provider,{value:o},e.rendered))}const n8=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Tc=u.createContext({});function r8(e,t){[e,t]=Te(e,t,Tc);let n=e,{buttonProps:r,isPressed:o}=av(e,t),{focusProps:i,isFocused:a,isFocusVisible:s}=at(e),{hoverProps:l,isHovered:c}=Ye(e),d=ye({...e,values:{isHovered:c,isPressed:o,isFocused:a,isFocusVisible:s,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return u.createElement("button",{...me(e,{propNames:n8}),...oe(r,i,l),...d,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":n.isPressed||o||void 0,"data-hovered":c||void 0,"data-focused":a||void 0,"data-focus-visible":s||void 0})}const R4=Ua(r8),o8=u.createContext({}),fn=u.createContext({});function i8(e,t){[e,t]=Te(e,t,fn);let{elementType:n="span",...r}=e;return u.createElement(n,{className:"react-aria-Text",...r,ref:t})}const Vr=u.forwardRef(i8),Qn=u.createContext(null);function a8(e,t){let n=u.useContext(Qn);return n!=null&&n.isInvalid?u.createElement(s8,{...e,ref:t}):null}const Ko=u.forwardRef(a8),s8=u.forwardRef((e,t)=>{let n=u.useContext(Qn),r=ye({...e,defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.join(" "),values:n});return u.createElement(Vr,{slot:"errorMessage",...r,ref:t})}),Gt=u.createContext({});function l8(e,t){[e,t]=Te(e,t,Gt);let{elementType:n="label",...r}=e;return u.createElement(n,{className:"react-aria-Label",...r,ref:t})}const pn=Ua(l8),u8=u.createContext(null),c8=u.createContext(null);function d8(e,t){[e,t]=Te(e,t,c8);let n=u.useRef(null),r=u.useContext(u8);var o;let{labelProps:i,inputProps:a,isSelected:s,isDisabled:l,isReadOnly:c,isPressed:d,isInvalid:f}=r?gP({...e,value:e.value,children:typeof e.children=="function"?!0:e.children},r,n):fv({...e,children:typeof e.children=="function"?!0:e.children,validationBehavior:(o=e.validationBehavior)!==null&&o!==void 0?o:"native"},Va(e),n),{isFocused:p,isFocusVisible:h,focusProps:m}=at(),b=l||c,{hoverProps:v,isHovered:$}=Ye({...e,isDisabled:b}),C=ye({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:s,isIndeterminate:e.isIndeterminate||!1,isPressed:d,isHovered:$,isFocused:p,isFocusVisible:h,isDisabled:l,isReadOnly:c,isInvalid:f,isRequired:e.isRequired||!1}}),x=me(e);return delete x.id,u.createElement("label",{...oe(x,i,v,C),ref:t,slot:e.slot||void 0,"data-selected":s||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":d||void 0,"data-hovered":$||void 0,"data-focused":p||void 0,"data-focus-visible":h||void 0,"data-disabled":l||void 0,"data-readonly":c||void 0,"data-invalid":f||void 0,"data-required":e.isRequired||void 0},u.createElement(Aa,{elementType:"span"},u.createElement("input",{...oe(a,m),ref:n})),C.children)}const f8=u.forwardRef(d8),Nr=u.createContext({});function p8(e,t){[e,t]=Te(e,t,Nr);let{isDisabled:n,isInvalid:r,onHoverStart:o,onHoverChange:i,onHoverEnd:a,...s}=e,{hoverProps:l,isHovered:c}=Ye({onHoverStart:o,onHoverChange:i,onHoverEnd:a,isDisabled:n}),{isFocused:d,isFocusVisible:f,focusProps:p}=at({within:!0});n??(n=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r??(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let h=ye({...e,values:{isHovered:c,isFocusWithin:d,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});var m,b;return u.createElement("div",{...oe(s,p,l),...h,ref:t,role:(m=e.role)!==null&&m!==void 0?m:"group",slot:(b=e.slot)!==null&&b!==void 0?b:void 0,"data-focus-within":d||void 0,"data-hovered":c||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0},h.children)}const Ac=u.forwardRef(p8),er=u.createContext({});let h8=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function m8(e,t){[e,t]=Te(e,t,er);let{hoverProps:n,isHovered:r}=Ye(e),{isFocused:o,isFocusVisible:i,focusProps:a}=at({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",l=ye({...e,values:{isHovered:r,isFocused:o,isFocusVisible:i,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement("input",{...oe(h8(e),a,n),...l,ref:t,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":i||void 0,"data-invalid":s||void 0})}const jo=Ua(m8),F4=u.createContext(null);function b8(e,t){let{render:n}=u.useContext(F4);return u.createElement(u.Fragment,null,n(e,t))}const v8=u.forwardRef(b8),kc=u.createContext({}),g8=u.createContext({});function y8(e,t){let[n,r]=Te(e,t,g8),o=S4("header",e,t);return o||u.createElement("header",{className:"react-aria-Header",...n,ref:r},n.children)}const B4=u.forwardRef(y8),Mc=u.createContext({});function $8(e,t){let[n,r]=Te(e,t,Mc),{elementType:o,orientation:i,style:a,className:s}=n,l=o||"hr";l==="hr"&&i==="vertical"&&(l="div");let{separatorProps:c}=B$({elementType:o,orientation:i}),d=S4("separator",e,t);return d||u.createElement(l,{...me(n),...c,style:a,className:s??"react-aria-Separator",ref:r,slot:n.slot||void 0})}const I4=u.forwardRef($8),Ga=u.createContext(null),zo=u.createContext(null);function x8(e,t){[e,t]=Te(e,t,Ga);let n=u.useContext(To),r=u.useContext(zo);return u.useContext(_o)?u.createElement(P4,e):r?n?null:u.createElement(O4,{state:r,props:e,listBoxRef:t}):u.createElement(w8,{props:e,listBoxRef:t})}function w8({props:e,listBoxRef:t}){let{portal:n,collection:r}=Dc(e);e={...e,collection:r,children:null,items:null};let o=V$(e);return u.createElement(u.Fragment,null,n,u.createElement(O4,{state:o,props:e,listBoxRef:t}))}const C8=u.forwardRef(x8);function O4({state:e,props:t,listBoxRef:n}){let{dragAndDropHooks:r,layout:o="stack",orientation:i="vertical"}=t,{collection:a,selectionManager:s}=e,l=!!(r!=null&&r.useDraggableCollectionState),c=!!(r!=null&&r.useDroppableCollectionState),{direction:d}=Ze(),{disabledBehavior:f,disabledKeys:p}=s,h=Fu({usage:"search",sensitivity:"base"}),m=u.useMemo(()=>t.keyboardDelegate||new vc({collection:a,collator:h,ref:n,disabledKeys:f==="selection"?new Set:p,layout:o,orientation:i,direction:d}),[a,h,n,f,p,i,d,t.keyboardDelegate,o]),{listBoxProps:b}=SP({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:m},e,n),v=Lr({items:a,children:K=>{switch(K.type){case"section":return u.createElement(E8,{section:K});case"separator":return u.createElement(I4,K.props);case"item":return u.createElement(L4,{item:K});default:throw new Error("Unsupported node type in Menu: "+K.type)}}}),$=u.useRef(l),C=u.useRef(c);u.useEffect(()=>{$.current!==l&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),C.current!==c&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[l,c]);let x,E,w,A=!1,V=null,y=u.useRef(null);if(l&&r){x=r.useDraggableCollectionState({collection:a,selectionManager:s,preview:r.renderDragPreview?y:void 0}),r.useDraggableCollection({},x,n);let K=r.DragPreview;V=r.renderDragPreview?u.createElement(K,{ref:y},r.renderDragPreview):null}if(c&&r){E=r.useDroppableCollectionState({collection:a,selectionManager:s});let K=r.dropTargetDelegate||new r.ListDropTargetDelegate(a,n,{orientation:i,layout:o,direction:d});w=r.useDroppableCollection({keyboardDelegate:m,dropTargetDelegate:K},E,n),A=E.isDropTarget({type:"root"})}let{focusProps:I,isFocused:M,isFocusVisible:k}=at(),R={isDropTarget:A,isEmpty:e.collection.size===0,isFocused:M,isFocusVisible:k,layout:t.layout||"stack",state:e},S=ye({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:R}),F=null;return e.collection.size===0&&t.renderEmptyState&&(F=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(R))),u.createElement($u,null,u.createElement("div",{...me(t),...oe(b,I,w==null?void 0:w.collectionProps),...S,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":A||void 0,"data-empty":e.collection.size===0||void 0,"data-focused":M||void 0,"data-focus-visible":k||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},u.createElement(Xe,{values:[[Ga,t],[zo,e],[kc,{dragAndDropHooks:r,dragState:x,dropState:E}],[Mc,{elementType:"div"}],[F4,{render:T8}]]},v),F,V))}function E8({section:e,className:t,style:n}){var r,o;let i=u.useContext(zo),[a,s]=Ot();var l;let{headingProps:c,groupProps:d}=AP({heading:s,"aria-label":(l=e.props["aria-label"])!==null&&l!==void 0?l:void 0}),f=Lr({items:i.collection.getChildren(e.key),children:p=>{switch(p.type){case"header":return u.createElement(D8,{item:p,headingProps:c,headingRef:a});case"item":return u.createElement(L4,{item:p});default:throw new Error("Unsupported element type in Section: "+p.type)}}});return u.createElement("section",{...me(e.props),...d,className:t||((r=e.props)===null||r===void 0?void 0:r.className)||"react-aria-Section",style:n||((o=e.props)===null||o===void 0?void 0:o.style),ref:e.props.ref},f)}function D8({item:e,headingProps:t,headingRef:n}){let{ref:r,...o}=e.props;return u.createElement(B4,{...t,...o,ref:wa(n,r)},e.rendered)}function P8(e,t){return ja("item",e,t,e.children)}const S8=u.forwardRef(P8);function L4({item:e}){var t;let n=Ft(e.props.ref),r=u.useContext(zo),{dragAndDropHooks:o,dragState:i,dropState:a}=u.useContext(kc),{optionProps:s,labelProps:l,descriptionProps:c,...d}=TP({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},r,n),{hoverProps:f,isHovered:p}=Ye({isDisabled:!d.allowsSelection&&!d.hasAction}),h=null;i&&o&&(h=o.useDraggableItem({key:e.key},i));let m=null;a&&o&&(m=o.useDroppableItem({target:{type:"item",key:e.key,dropPosition:"on"}},a,n));let b=e.props,v=i&&i.isDragging(e.key),$=ye({...b,id:void 0,children:e.rendered,defaultClassName:"react-aria-ListBoxItem",values:{...d,isHovered:p,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!i,isDragging:v,isDropTarget:m==null?void 0:m.isDropTarget}}),C=(o==null?void 0:o.renderDropIndicator)||(E=>u.createElement(v8,{target:E}));u.useEffect(()=>{e.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[e.textValue]);let x=b.href?"a":"div";return u.createElement(u.Fragment,null,(o==null?void 0:o.useDropIndicator)&&C({type:"item",key:e.key,dropPosition:"before"}),u.createElement(x,{...oe(s,f,h==null?void 0:h.dragProps,m==null?void 0:m.dropProps),...$,ref:n,"data-allows-dragging":!!i||void 0,"data-selected":d.isSelected||void 0,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-dragging":v||void 0,"data-drop-target":(m==null?void 0:m.isDropTarget)||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},u.createElement(Xe,{values:[[fn,{slots:{label:l,description:c}}]]},$.children)),(o==null?void 0:o.useDropIndicator)&&r.collection.getKeyAfter(e.key)==null&&C({type:"item",key:e.key,dropPosition:"after"}))}function T8(e,t){t=Ft(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(kc),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:u.createElement(k8,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function A8(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=ye({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement("div",{...n,...i,role:"option",ref:t,"data-drop-target":r||void 0})}const k8=u.forwardRef(A8),M8=u.createContext({placement:"bottom"}),Sr=u.createContext(null);function R8(e,t){[e,t]=Te(e,t,Sr);let n=u.useContext(tr),r=Ka(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Ql(t,o.isOpen)||e.isExiting||!1;if(u.useContext(To)){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1})),u.createElement(u.Fragment,null,s)}return o&&!o.isOpen&&!i?null:u.createElement(F8,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i})}const V4=u.forwardRef(R8);function F8({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var o;let{popoverProps:i,underlayProps:a,arrowProps:s,placement:l}=Pw({...r,offset:(o=r.offset)!==null&&o!==void 0?o:8},e),c=r.popoverRef,d=Sc(c,!!l)||r.isEntering||!1,f=ye({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:l,isEntering:d,isExiting:t}}),p={...i.style,...f.style};return u.createElement(y0,{isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...a,style:{position:"fixed",inset:0}}),u.createElement("div",{...oe(me(r),i),...f,ref:c,slot:r.slot||void 0,style:p,"data-trigger":r.trigger,"data-placement":l,"data-entering":d||void 0,"data-exiting":t||void 0},!r.isNonModal&&u.createElement(Cl,{onDismiss:e.close}),u.createElement(M8.Provider,{value:{...s,placement:l}},f.children),u.createElement(Cl,{onDismiss:e.close})))}const B8=u.createContext(null),tr=u.createContext(null);function I8(e,t){let n=e["aria-labelledby"];[e,t]=Te(e,t,B8);let{dialogProps:r,titleProps:o}=qP({...e,"aria-labelledby":n},t),i=u.useContext(tr),a=e.children;typeof a=="function"&&(a=a({close:(i==null?void 0:i.close)||(()=>{})})),!r["aria-label"]&&!r["aria-labelledby"]&&(e["aria-labelledby"]?r["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));var s;return u.createElement("section",{...me(e),...r,ref:t,slot:e.slot||void 0,style:e.style,className:(s=e.className)!==null&&s!==void 0?s:"react-aria-Dialog"},u.createElement(Xe,{values:[[o8,{slots:{[Jl]:{},title:{...o,level:2}}}]]},a))}const N4=u.forwardRef(I8),O8=u.createContext(null),L8=u.createContext(null);function V8(e,t){[e,t]=Te(e,t,O8);let{collection:n,document:r}=Pc(),{children:o,isDisabled:i=!1,isInvalid:a=!1,isRequired:s=!1}=e;o=u.useMemo(()=>typeof o=="function"?o({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:s}):o,[o,i,a,s]);var l;return u.createElement(u.Fragment,null,u.createElement(A4,null,u.createElement(Xe,{values:[[_o,r],[Ga,{items:(l=e.items)!==null&&l!==void 0?l:e.defaultItems}]]},o)),u.createElement(N8,{props:e,collection:n,comboBoxRef:t}))}function N8({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:o="key",allowsCustomValue:i}=e;i&&(o="text");let{contains:a}=Rm({sensitivity:"base"});var s;let l=uS({defaultFilter:e.defaultFilter||a,...e,items:e.items,children:void 0,collection:t,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"}),c=u.useRef(null),d=u.useRef(null),f=u.useRef(null),p=u.useRef(null),[h,m]=Ot();var b;let{buttonProps:v,inputProps:$,listBoxProps:C,labelProps:x,descriptionProps:E,errorMessageProps:w,...A}=_P({...Yn(e),label:m,inputRef:d,buttonRef:c,listBoxRef:f,popoverRef:p,name:o==="text"?r:void 0,validationBehavior:(b=e.validationBehavior)!==null&&b!==void 0?b:"native"},l),[V,y]=u.useState(null),I=u.useCallback(()=>{if(d.current){var S;let F=(S=c.current)===null||S===void 0?void 0:S.getBoundingClientRect(),K=d.current.getBoundingClientRect(),L=F?Math.min(F.left,K.left):K.left,P=F?Math.max(F.right,K.right):K.right;y(P-L+"px")}},[c,d,y]);bu({ref:d,onResize:I});let M=u.useMemo(()=>({isOpen:l.isOpen,isDisabled:e.isDisabled||!1,isInvalid:A.isInvalid||!1,isRequired:e.isRequired||!1}),[l.isOpen,e.isDisabled,A.isInvalid,e.isRequired]),k=ye({...e,values:M,defaultClassName:"react-aria-ComboBox"}),R=me(e);return delete R.id,u.createElement(Xe,{values:[[L8,l],[Gt,{...x,ref:h}],[Tc,{...v,ref:c,isPressed:l.isOpen}],[er,{...$,ref:d}],[tr,l],[Sr,{ref:p,triggerRef:d,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":V}}],[Ga,{...C,ref:f}],[zo,l],[fn,{slots:{description:E,errorMessage:w}}],[Nr,{isInvalid:A.isInvalid,isDisabled:e.isDisabled||!1}],[Qn,A]]},u.createElement("div",{...R,...k,ref:n,slot:e.slot||void 0,"data-focused":l.isFocused||void 0,"data-open":l.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":A.isInvalid||void 0,"data-required":e.isRequired||void 0}),r&&o==="key"&&u.createElement("input",{type:"hidden",name:r,value:l.selectedKey}))}const _8=u.forwardRef(V8),_4=u.createContext(null),K8=u.createContext(null),Uo=u.createContext(null),Wa=u.createContext(null);function j8(e,t){[e,t]=Te(e,t,_4);let{locale:n}=Ze();var r;let o=Cc({...e,locale:n,createCalendar:Sm,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=Ot(),l=u.useRef(null);var c;let{labelProps:d,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:m,...b}=xc({...Yn(e),label:s,inputRef:l,validationBehavior:(c=e.validationBehavior)!==null&&c!==void 0?c:"native"},o,i),v=ye({...Yn(e),values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-DateField"}),$=me(e);return delete $.id,u.createElement(Xe,{values:[[Uo,o],[Nr,{...f,ref:i,isInvalid:o.isInvalid}],[er,{...p,ref:l}],[Gt,{...d,ref:a,elementType:"span"}],[fn,{slots:{description:h,errorMessage:m}}],[Qn,b]]},u.createElement("div",{...$,...v,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const z8=u.forwardRef(j8);function U8(e,t){[e,t]=Te(e,t,K8);let{locale:n}=Ze();var r;let o=ES({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=Ot(),l=u.useRef(null);var c;let{labelProps:d,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:m,...b}=UP({...Yn(e),label:s,inputRef:l,validationBehavior:(c=e.validationBehavior)!==null&&c!==void 0?c:"native"},o,i),v=ye({...e,values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-TimeField"}),$=me(e);return delete $.id,u.createElement(Xe,{values:[[Wa,o],[Nr,{...f,ref:i,isInvalid:o.isInvalid}],[er,{...p,ref:l}],[Gt,{...d,ref:a,elementType:"span"}],[fn,{slots:{description:h,errorMessage:m}}],[Qn,b]]},u.createElement("div",{...$,...v,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const H8=u.forwardRef(U8);function G8(e,t){let n=u.useContext(Uo),r=u.useContext(Wa);return n||r?u.createElement(K4,{...e,ref:t}):u.createElement(W8,{...e,ref:t})}const W8=u.forwardRef((e,t)=>{let[n,r]=Te({slot:e.slot},t,_4),{locale:o}=Ze(),i=Cc({...n,locale:o,createCalendar:Sm}),a=u.useRef(null),{fieldProps:s,inputProps:l}=xc({...n,inputRef:a},i,r);return u.createElement(Xe,{values:[[Uo,i],[er,{...l,ref:a}],[Nr,{...s,ref:r,isInvalid:i.isInvalid}]]},u.createElement(K4,e))}),K4=u.forwardRef((e,t)=>{let{className:n,children:r}=e,o=u.useContext(Uo),i=u.useContext(Wa),a=o??i;return u.createElement(u.Fragment,null,u.createElement(Ac,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isInvalid:a.isInvalid},a.segments.map((s,l)=>u.cloneElement(r(s),{key:l}))),u.createElement(jo,null))}),j4=u.forwardRef(G8);function Y8({segment:e,...t},n){let r=u.useContext(Uo),o=u.useContext(Wa),i=r??o,a=Ft(n),{segmentProps:s}=WP(e,i,a),{focusProps:l,isFocused:c,isFocusVisible:d}=at(),{hoverProps:f,isHovered:p}=Ye({...t,isDisabled:i.isDisabled||e.type==="literal"}),h=ye({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:p,isFocused:c,isFocusVisible:d},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return u.createElement("div",{...oe(me(t),s,l,f),...h,ref:a,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":i.isDisabled||void 0,"data-type":e.type,"data-hovered":p||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0})}const z4=u.forwardRef(Y8),U4=u.createContext({}),H4=u.createContext(null),Ho=u.createContext(null),G4=u.createContext(null);function W4(e){let{item:t,parentMenuRef:n}=e,r=u.useContext(Ho);return Lr({items:r.collection.getChildren(t.key),children:i=>{switch(i.type){case"item":return u.createElement(Q8,{item:i,popover:t.rendered[1],parentMenuRef:n,delay:t.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+t.type)}}})}function q8(e,t){[e,t]=Te(e,t,H4);let{portal:n,collection:r}=Dc(e);return u.createElement(u.Fragment,null,r.size>0&&u.createElement(Z8,{props:e,collection:r,menuRef:t}),n)}function Z8({props:e,collection:t,menuRef:n}){let r=OS({...e,collection:t,children:void 0}),[o,i]=u.useState(null),{menuProps:a}=RP(e,r,n),s=u.useContext(G4),l=u.useContext(Sr),c=Lr({items:r.collection,children:p=>{switch(p.type){case"section":return u.createElement(J8,{section:p,parentMenuRef:n});case"separator":return u.createElement(I4,p.props);case"item":return u.createElement(Y4,{item:p});case"submenutrigger":return u.createElement(W4,{item:p,parentMenuRef:n});default:throw new Error("Unsupported node type in Menu: "+p.type)}}}),d=(l==null?void 0:l.trigger)==="SubmenuTrigger";Wh({ref:n,onInteractOutside:p=>{s&&!(o!=null&&o.contains(p.target))&&s.close()},isDisabled:d||(s==null?void 0:s.UNSTABLE_expandedKeysStack.length)===0});var f;return u.createElement($u,null,u.createElement("div",{...me(e),...a,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,style:e.style,className:(f=e.className)!==null&&f!==void 0?f:"react-aria-Menu"},u.createElement(Xe,{values:[[Ho,r],[Mc,{elementType:"div"}],[Sr,{UNSTABLE_portalContainer:o||void 0}]]},c)),u.createElement("div",{ref:i,style:{width:"100vw",position:"absolute",top:0}}))}const X8=u.forwardRef(q8);function J8({section:e,className:t,style:n,parentMenuRef:r,...o}){var i,a;let s=u.useContext(Ho),[l,c]=Ot();var d;let{headingProps:f,groupProps:p}=FP({heading:c,"aria-label":(d=e["aria-label"])!==null&&d!==void 0?d:void 0}),h=Lr({items:s.collection.getChildren(e.key),children:m=>{switch(m.type){case"header":{let{ref:b,...v}=m.props;return u.createElement(B4,{...f,...v,ref:wa(l,b)},m.rendered)}case"item":return u.createElement(Y4,{item:m});case"submenutrigger":return u.createElement(W4,{item:m,parentMenuRef:r});default:throw new Error("Unsupported element type in Section: "+m.type)}}});return u.createElement("section",{...me(o),...p,className:t||((i=e.props)===null||i===void 0?void 0:i.className)||"react-aria-Section",style:n||((a=e.props)===null||a===void 0?void 0:a.style),ref:e.props.ref},h)}function Y4({item:e}){var t;let n=u.useContext(Ho),r=Ft(e.props.ref),{menuItemProps:o,labelProps:i,descriptionProps:a,keyboardShortcutProps:s,...l}=Rg({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},n,r),c=e.props,{isFocusVisible:d,focusProps:f}=at(),{hoverProps:p,isHovered:h}=Ye({isDisabled:l.isDisabled}),m=ye({...c,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...l,isHovered:h,isFocusVisible:d,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),b=c.href?"a":"div";return u.createElement(b,{...oe(o,f,p),...m,ref:r,"data-disabled":l.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":d||void 0,"data-pressed":l.isPressed||void 0,"data-selected":l.isSelected||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode},u.createElement(Xe,{values:[[fn,{slots:{label:i,description:a}}],[U4,s]]},m.children))}function Q8({item:e,popover:t,parentMenuRef:n,delay:r}){let o=u.useContext(Ho),i=za(Sr),a=Ft(e.props.ref),s=u.useContext(G4),l=DS({triggerKey:e.key},s),c=u.useRef(null),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=LP({node:e,parentMenuRef:n,submenuRef:c,delay:r},l,a),{menuItemProps:h,labelProps:m,descriptionProps:b,keyboardShortcutProps:v,...$}=Rg({key:e.key,...d},o,a),C=e.props,{hoverProps:x,isHovered:E}=Ye({isDisabled:$.isDisabled}),{isFocusVisible:w,focusProps:A}=at(),V=ye({...C,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...$,isHovered:E,isFocusVisible:w,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,hasSubmenu:!0,isOpen:l.isOpen}});return u.createElement(Xe,{values:[[fn,{slots:{label:m,description:b}}],[U4,v],[H4,f],[tr,l],[Sr,{ref:c,trigger:"SubmenuTrigger",triggerRef:a,placement:"end top",UNSTABLE_portalContainer:i.UNSTABLE_portalContainer||void 0,...p}]]},u.createElement("div",{...oe(h,A,x),...V,ref:a,"data-disabled":$.isDisabled||void 0,"data-hovered":E||void 0,"data-focused":$.isFocused||void 0,"data-focus-visible":w||void 0,"data-pressed":$.isPressed||void 0,"data-selected":$.isSelected||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-has-submenu":!0,"data-open":l.isOpen||void 0},V.children),t)}const eT=u.createContext(null);function tT(e,t){[e,t]=Te(e,t,eT);let{value:n=0,minValue:r=0,maxValue:o=100}=e;n=At(n,r,o);let[i,a]=Ot(),{meterProps:s,labelProps:l}=ZP({...e,label:a}),c=(n-r)/(o-r)*100,d=ye({...e,defaultClassName:"react-aria-Meter",values:{percentage:c,valueText:s["aria-valuetext"]}});return u.createElement("div",{...s,...d,ref:t,slot:e.slot||void 0},u.createElement(Gt.Provider,{value:{...l,ref:i,elementType:"span"}},d.children))}const nT=u.forwardRef(tT),rT=u.createContext(null),Rc=u.createContext(null);function oT(e,t){if(u.useContext(Rc))return u.createElement(oh,{...e,modalRef:t},e.children);let{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,isEntering:c,isExiting:d,UNSTABLE_portalContainer:f,...p}=e;return u.createElement(q4,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:c,isExiting:d,UNSTABLE_portalContainer:f},u.createElement(oh,{...p,modalRef:t},l))}const iT=u.forwardRef(oT);function aT(e,t){[e,t]=Te(e,t,rT);let n=u.useContext(tr),r=Ka(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Ft(t),a=u.useRef(null),s=Ql(i,o.isOpen),l=Ql(a,o.isOpen),c=s||l||e.isExiting||!1,d=Ht();return!o.isOpen&&!c||d?null:u.createElement(sT,{...e,state:o,isExiting:c,overlayRef:i,modalRef:a})}const q4=u.forwardRef(aT);function sT({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=Sw(t,r,n),a=Sc(t.overlayRef)||t.isEntering||!1,s=ye({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=u5(),c={...s.style,"--visual-viewport-height":l.height+"px"};return u.createElement(y0,{isExiting:t.isExiting,portalContainer:e},u.createElement("div",{...oe(me(t),i),...s,style:c,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},u.createElement(Xe,{values:[[Rc,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[tr,r]]},s.children)))}function oh(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=u.useContext(Rc),i=u.useContext(tr),a=u.useMemo(()=>wa(e.modalRef,n),[e.modalRef,n]),s=Ft(a),l=Sc(s),c=ye({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return u.createElement("div",{...oe(me(e),t),...c,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&u.createElement(Cl,{onDismiss:i.close}),c.children)}const lT=u.createContext(null),uT=u.createContext(null);function cT(e,t){[e,t]=Te(e,t,lT);let{locale:n}=Ze();var r;let o=PS({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=Ot();var l;let{labelProps:c,groupProps:d,inputProps:f,incrementButtonProps:p,decrementButtonProps:h,descriptionProps:m,errorMessageProps:b,...v}=JP({...Yn(e),label:s,validationBehavior:(l=e.validationBehavior)!==null&&l!==void 0?l:"native"},o,i),$=ye({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),C=me(e);return delete C.id,u.createElement(Xe,{values:[[uT,o],[Nr,d],[er,{...f,ref:i}],[Gt,{...c,ref:a}],[Tc,{slots:{increment:p,decrement:h}}],[fn,{slots:{description:m,errorMessage:b}}],[Qn,v]]},u.createElement("div",{...C,...$,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":v.isInvalid||void 0}),e.name&&u.createElement("input",{type:"hidden",name:e.name,value:isNaN(o.numberValue)?"":o.numberValue}))}const dT=u.forwardRef(cT),fT=u.createContext(null);function pT(e,t){[e,t]=Te(e,t,fT);let{value:n=0,minValue:r=0,maxValue:o=100,isIndeterminate:i=!1}=e;n=At(n,r,o);let[a,s]=Ot(),{progressBarProps:l,labelProps:c}=Jy({...e,label:s}),d=i?void 0:(n-r)/(o-r)*100,f=ye({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:d,valueText:l["aria-valuetext"],isIndeterminate:i}});return u.createElement("div",{...l,...f,ref:t,slot:e.slot||void 0},u.createElement(Gt.Provider,{value:{...c,ref:a,elementType:"span"}},f.children))}const Z4=u.forwardRef(pT),hT=u.createContext(null),Ya=u.createContext(null),Fc=u.createContext(null),X4=u.createContext(null);function mT(e,t){[e,t]=Te(e,t,hT);let n=u.useRef(null),r=oa(e.formatOptions),o=kS({...e,numberFormatter:r}),[i,a]=Ot(),{groupProps:s,trackProps:l,labelProps:c,outputProps:d}=QP({...e,label:a},o,n),f=ye({...e,values:{orientation:o.orientation,isDisabled:o.isDisabled,state:o},defaultClassName:"react-aria-Slider"}),p=me(e);return delete p.id,u.createElement(Xe,{values:[[Ya,o],[Fc,{...l,ref:n}],[X4,d],[Gt,{...c,ref:i}]]},u.createElement("div",{...p,...s,...f,ref:t,slot:e.slot||void 0,"data-orientation":o.orientation,"data-disabled":o.isDisabled||void 0}))}const bT=u.forwardRef(mT);function vT(e,t){[e,t]=Te(e,t,X4);let{children:n,style:r,className:o,...i}=e,a=u.useContext(Ya),s=ye({className:o,style:r,children:n,defaultChildren:a.getThumbValueLabel(0),defaultClassName:"react-aria-SliderOutput",values:{orientation:a.orientation,isDisabled:a.isDisabled,state:a}});return u.createElement("output",{...i,...s,ref:t,"data-orientation":a.orientation||void 0,"data-disabled":a.isDisabled||void 0})}const gT=u.forwardRef(vT);function yT(e,t){[e,t]=Te(e,t,Fc);let n=u.useContext(Ya),{onHoverStart:r,onHoverEnd:o,onHoverChange:i,...a}=e,{hoverProps:s,isHovered:l}=Ye({onHoverStart:r,onHoverEnd:o,onHoverChange:i}),c=ye({...e,defaultClassName:"react-aria-SliderTrack",values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:l,state:n}});return u.createElement("div",{...oe(a,s),...c,ref:t,"data-hovered":l||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})}const $T=u.forwardRef(yT);function xT(e,t){let n=u.useContext(Ya),{ref:r}=za(Fc),{index:o=0}=e,i=u.useRef(null),[a,s]=Ot(),{thumbProps:l,inputProps:c,labelProps:d,isDragging:f,isFocused:p,isDisabled:h}=eS({...e,index:o,trackRef:r,inputRef:i,label:s},n),{focusProps:m,isFocusVisible:b}=at(),{hoverProps:v,isHovered:$}=Ye(e),C=ye({...e,defaultClassName:"react-aria-SliderThumb",values:{state:n,isHovered:$,isDragging:f,isFocused:p,isFocusVisible:b,isDisabled:h}}),x=me(e);return delete x.id,u.createElement("div",{...oe(x,l,v),...C,ref:t,style:{...l.style,...C.style},"data-hovered":$||void 0,"data-dragging":f||void 0,"data-focused":p||void 0,"data-focus-visible":b||void 0,"data-disabled":h||void 0},u.createElement(Aa,null,u.createElement("input",{ref:i,...oe(c,m)})),u.createElement(Xe,{values:[[Gt,{...d,ref:a}]]},C.children))}const wT=u.forwardRef(xT),CT=u.createContext(null);function ET(e,t){[e,t]=Te(e,t,CT);let n=u.useRef(null),r=Va(e),{labelProps:o,inputProps:i,isSelected:a,isDisabled:s,isReadOnly:l,isPressed:c}=tS({...Yn(e),children:typeof e.children=="function"?!0:e.children},r,n),{isFocused:d,isFocusVisible:f,focusProps:p}=at(),h=e.isDisabled||e.isReadOnly,{hoverProps:m,isHovered:b}=Ye({...e,isDisabled:h}),v=ye({...e,defaultClassName:"react-aria-Switch",values:{isSelected:a,isPressed:c,isHovered:b,isFocused:d,isFocusVisible:f,isDisabled:s,isReadOnly:l,state:r}}),$=me(e);return delete $.id,u.createElement("label",{...oe($,o,m,v),ref:t,slot:e.slot||void 0,"data-selected":a||void 0,"data-pressed":c||void 0,"data-hovered":b||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-disabled":s||void 0,"data-readonly":l||void 0},u.createElement(Aa,{elementType:"span"},u.createElement("input",{...i,...p,ref:n})),v.children)}const DT=u.forwardRef(ET),Bc=u.createContext(null),Ic=u.createContext(null);function PT(e,t){[e,t]=Te(e,t,Bc);let{collection:n,document:r}=Pc(),{children:o,orientation:i="horizontal"}=e;return o=u.useMemo(()=>typeof o=="function"?o({orientation:i}):o,[o,i]),u.createElement(u.Fragment,null,u.createElement(A4,null,u.createElement(_o.Provider,{value:r},o)),u.createElement(ST,{props:e,collection:n,tabsRef:t}))}function ST({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,o=MS({...e,collection:n,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:s}=at({within:!0}),l=u.useMemo(()=>({orientation:r,isFocusWithin:a,isFocusVisible:s}),[r,a,s]),c=ye({...e,defaultClassName:"react-aria-Tabs",values:l});return u.createElement("div",{...me(e),...i,...c,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":o.isDisabled||void 0},u.createElement(Xe,{values:[[Bc,e],[Ic,o]]},c.children))}const TT=u.forwardRef(PT);function AT(e,t){return u.useContext(_o)?u.createElement(P4,e):u.createElement(kT,{props:e,forwardedRef:t})}function kT({props:e,forwardedRef:t}){let n=u.useContext(Ic),{orientation:r="horizontal",keyboardActivation:o="automatic"}=za(Bc),i=Ft(t),{tabListProps:a}=iS({...e,orientation:r,keyboardActivation:o},n,i),s=ye({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:r,state:n}}),l=me(e);return delete l.id,u.createElement("div",{...l,...a,ref:i,...s,"data-orientation":r||void 0},[...n.collection].map(c=>u.createElement(BT,{key:c.key,item:c,state:n})))}const MT=u.forwardRef(AT);function RT(e,t){return ja("item",e,t,e.children)}const FT=u.forwardRef(RT);function BT({item:e,state:t}){let n=Ft(e.props.ref),{tabProps:r,isSelected:o,isDisabled:i,isPressed:a}=nS({key:e.key,...e.props},t,n),{focusProps:s,isFocused:l,isFocusVisible:c}=at(),{hoverProps:d,isHovered:f}=Ye({isDisabled:i}),p=ye({...e.props,children:e.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:i,isFocused:l,isFocusVisible:c,isPressed:a,isHovered:f,state:t}}),h=e.props.href?"a":"div";return u.createElement(h,{...oe(r,s,d,p),ref:n,"data-selected":o||void 0,"data-disabled":i||void 0,"data-focus-visible":c||void 0,"data-pressed":a||void 0,"data-hovered":f||void 0})}function IT(e,t){const n=u.useContext(Ic);let r=Ft(t),{tabPanelProps:o}=rS(e,n,r),{focusProps:i,isFocused:a,isFocusVisible:s}=at(),l=n.selectedKey===e.id,c=ye({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!l,state:n}});if(!l&&!e.shouldForceMount)return null;let d=me(e);delete d.id;let f=l?oe(d,o,i,c):c;return u.createElement("div",{...f,ref:r,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:l?void 0:"true","data-inert":l?void 0:"true"})}const OT=Ua(IT),LT=u.createContext({}),VT=u.createContext(null);function NT(e,t){[e,t]=Te(e,t,VT);let n=u.useRef(null),[r,o]=Ot(),[i,a]=u.useState("input");var s;let{labelProps:l,inputProps:c,descriptionProps:d,errorMessageProps:f,...p}=yc({...Yn(e),inputElementType:i,label:o,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"},n),h=u.useCallback(b=>{n.current=b,b&&a(b instanceof HTMLTextAreaElement?"textarea":"input")},[]),m=ye({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid},defaultClassName:"react-aria-TextField"});return u.createElement("div",{...me(e),...m,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0},u.createElement(Xe,{values:[[Gt,{...l,ref:r}],[er,{...c,ref:h}],[LT,{...c,ref:h}],[fn,{slots:{description:d,errorMessage:f}}],[Qn,p]]},m.children))}const qa=u.forwardRef(NT),_T=u.createContext({});function KT(e,t){[e,t]=Te(e,t,_T);let n=Va(e),{buttonProps:r,isPressed:o}=lP(e,n,t),{focusProps:i,isFocused:a,isFocusVisible:s}=at(e),{hoverProps:l,isHovered:c}=Ye(e),d=ye({...e,values:{isHovered:c,isPressed:o,isFocused:a,isSelected:n.isSelected,isFocusVisible:s,isDisabled:e.isDisabled||!1,state:n},defaultClassName:"react-aria-ToggleButton"});return u.createElement("button",{...oe(r,i,l),...d,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":o||void 0,"data-selected":n.isSelected||void 0,"data-hovered":c||void 0,"data-focus-visible":s||void 0})}const jT=u.forwardRef(KT),zT=X(QS)`
|
|
268
|
+
*/var rh;function j8(){return rh||(rh=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=u,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(x){{for(var E=arguments.length,w=new Array(E>1?E-1:0),A=1;A<E;A++)w[A-1]=arguments[A];r("error",x,w)}}function r(x,E,w){{var A=t.ReactDebugCurrentFrame,V=A.getStackAddendum();V!==""&&(E+="%s",w=w.concat([V]));var y=w.map(function(I){return String(I)});y.unshift("Warning: "+E),Function.prototype.apply.call(console[x],console,y)}}function o(x,E){return x===E&&(x!==0||1/x===1/E)||x!==x&&E!==E}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue,d=!1,f=!1;function p(x,E,w){d||e.startTransition!==void 0&&(d=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var A=E();if(!f){var V=E();i(A,V)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var y=a({inst:{value:A,getSnapshot:E}}),I=y[0].inst,M=y[1];return l(function(){I.value=A,I.getSnapshot=E,h(I)&&M({inst:I})},[x,A,E]),s(function(){h(I)&&M({inst:I});var k=function(){h(I)&&M({inst:I})};return x(k)},[x]),c(A),A}function h(x){var E=x.getSnapshot,w=x.value;try{var A=E();return!i(w,A)}catch{return!0}}function m(x,E,w){return E()}var b=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",g=!b,$=g?m:p,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:$;Zs.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Zs}process.env.NODE_ENV==="production"?Zl.exports=K8():Zl.exports=j8();var z8=Zl.exports;class Ec{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Ec(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t}constructor(t,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=t,this.key=n}}class E4{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}appendChild(t){this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(t){if(t.parentNode!==this)return;this.ownerDocument.startTransaction();let n=t.nextSibling;for(;n;)n.index--,n=n.nextSibling;t.nextSibling&&(t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.removeNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=t}}class So extends E4{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof So?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,n,r,o;let i=this.ownerDocument.getMutableNode(this);i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof So?this.parentNode.node.key:null;var a;i.prevKey=(a=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&a!==void 0?a:null;var s;i.nextKey=(s=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var l;i.firstChildKey=(l=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&l!==void 0?l:null;var c;i.lastChildKey=(c=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&c!==void 0?c:null}setProps(t,n,r){let o=this.ownerDocument.getMutableNode(this),{value:i,textValue:a,id:s,...l}=t;if(l.ref=n,o.props=l,o.rendered=r,o.value=i,o.textValue=a||(typeof r=="string"?r:"")||t["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new Ec(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class U8{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class H8 extends E4{get isConnected(){return!0}createElement(t){return new So(t,this)}getMutableNode(t){let n=t.node;return this.mutatedNodes.has(t)||(n=t.node.clone(),this.mutatedNodes.add(t),t.node=n),this.markDirty(t),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(t){this.dirtyNodes.add(t)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(t){let n=this.getMutableCollection();if(!n.getItem(t.node.key)){n.addNode(t.node);for(let r of t)this.addNode(r)}this.markDirty(t)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key),this.markDirty(t)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof So&&i.isConnected&&i.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,n;let i=this.getMutableCollection();for(let a of this.mutatedNodes)a.isConnected&&i.addNode(a.node);var r,o;i.commit((r=(t=this.firstChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(o=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let t of this.subscriptions)t()}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}}function Lr(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=u.useMemo(()=>new WeakMap,i);return u.useMemo(()=>{if(n&&typeof t=="function"){let c=[];for(let d of n){let f=a.get(d);if(!f){f=t(d);var s,l;let p=(l=(s=f.props.id)!==null&&s!==void 0?s:d.key)!==null&&l!==void 0?l:d.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=u.cloneElement(f,o?{key:p,id:p,value:d}:{key:p}),a.set(d,f)}c.push(f)}return c}else if(typeof t!="function")return t},[t,n,a,r,o])}function G8(e){return Lr({...e,addIdAndValue:!0})}const D4=u.createContext(!1);function Dc(e,t){let{collection:n,document:r}=Pc(t);return{portal:P4(e,r),collection:n}}function W8(e,t,n){let r=Ht(),o=u.useRef(r);o.current=r;let i=u.useCallback(()=>o.current?n():t(),[t,n]);return z8.useSyncExternalStore(e,i)}const Y8=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:W8;function Pc(e){let t=u.useMemo(()=>new H8(e||new U8),[e]),n=u.useCallback(a=>t.subscribe(a),[t]),r=u.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=u.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:Y8(n,r,o),document:t}}const Xl=u.createContext(null),_o=u.createContext(null);function P4(e,t){let n=u.useContext(_o),r=t??n,o=G8(e),i=u.useMemo(()=>u.createElement(D4.Provider,{value:!0},o),[o]);return Ht()?u.createElement(Xl.Provider,{value:r},i):dn.createPortal(i,r)}function S4(e){return u.createElement(u.Fragment,null,P4(e))}function T4(e,t,n){let r=u.useContext(D4);var o;return r?(o=ja(e,t,n,"children"in t?t.children:null))!==null&&o!==void 0?o:u.createElement(u.Fragment,null):null}function q8(e,t,n){return u.useCallback(r=>{r==null||r.setProps(e,t,n)},[e,t,n])}function ja(e,t,n,r,o){let i=q8(t,n,r),a=u.useContext(Xl);if(a){let s=a.ownerDocument.nodesByProps.get(t);return s||(s=a.ownerDocument.createElement(e),s.setProps(t,n,r),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,s)),o?u.createElement(Xl.Provider,{value:s},o):null}return u.createElement(e,{ref:i},o)}const Z8=Symbol("callback"),Jl=Symbol("default");function Xe({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function ye(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,values:a}=e;return u.useMemo(()=>{let s,l,c;return typeof t=="function"?s=t(a):s=t,typeof n=="function"?l=n(a):l=n,typeof r=="function"?c=r(a):r==null?c=i:c=r,{className:s??o,style:l,children:c,"data-rac":""}},[t,n,r,o,i,a])}function za(e,t){let n=u.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`));if(!t&&!n.slots[Jl])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=t||Jl;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[o]}return n}function Te(e,t,n){let r=za(n,e.slot)||{},{ref:o,[Z8]:i,...a}=r,s=Ft(u.useMemo(()=>wa(t,o),[t,o])),l=oe(a,e);return"style"in a&&a.style&&typeof a.style=="object"&&"style"in e&&e.style&&typeof e.style=="object"&&(l.style={...a.style,...e.style}),u.useEffect(()=>{i&&i(e)},[i,e]),[l,s]}function Ot(){let[e,t]=u.useState(!0),n=u.useRef(!1),r=u.useCallback(o=>{n.current=!0,t(!!o)},[]);return Se(()=>{n.current||t(!1)},[]),[r,e]}function Sc(e,t=!0){let[n,r]=u.useState(!0);return A4(e,n&&t,u.useCallback(()=>r(!1),[])),n&&t}function Ql(e,t){let[n,r]=u.useState(!1),[o,i]=u.useState("idle");return!t&&e.current&&o==="idle"&&(n=!0,r(!0),i("exiting")),!e.current&&o==="exited"&&i("idle"),A4(e,n,u.useCallback(()=>{i("exited"),r(!1)},[])),n}function A4(e,t,n){let r=u.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),Se(()=>{if(t&&e.current){let o=window.getComputedStyle(e.current);if(o.animationName&&o.animationName!=="none"&&o.animation!==r.current){let i=s=>{s.target===e.current&&(a.removeEventListener("animationend",i),dn.flushSync(()=>{n()}))},a=e.current;return a.addEventListener("animationend",i),()=>{a.removeEventListener("animationend",i)}}else n()}},[e,t,n])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const To=u.createContext(!1),X8=typeof DocumentFragment<"u"?new DocumentFragment:null;function k4(e){let t=u.useContext(To),n=Ht();if(t)return u.createElement(u.Fragment,null,e.children);let r=u.createElement(To.Provider,{value:!0},e.children);return n?u.createElement("template",{"data-react-aria-hidden":!0},r):dn.createPortal(r,X8)}function Ua(e){let t=(n,r)=>u.useContext(To)?null:e(n,r);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function Yn(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}const M4=u.createContext(null);function J8(e,t){[e,t]=Te(e,t,M4);let n=e.href?"a":"span",{linkProps:r,isPressed:o}=cP({...e,elementType:n},t),{hoverProps:i,isHovered:a}=Ye(e),{focusProps:s,isFocused:l,isFocusVisible:c}=at(),d=ye({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:a,isFocused:l,isFocusVisible:c}});return u.createElement(n,{ref:t,slot:e.slot||void 0,...oe(d,r,i,s),"data-focused":l||void 0,"data-hovered":a||void 0,"data-pressed":o||void 0,"data-focus-visible":c||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},d.children)}const Ha=u.forwardRef(J8),Q8=u.createContext(null);function eS(e,t){[e,t]=Te(e,t,Q8);let{portal:n,collection:r}=Dc(e);return u.createElement(u.Fragment,null,n,u.createElement(tS,{props:e,collection:r,breadcrumbsRef:t}))}function tS({props:e,collection:t,breadcrumbsRef:n}){var r;return u.createElement("ol",{ref:n,...me(e,{labelable:!0}),slot:e.slot||void 0,style:e.style,className:(r=e.className)!==null&&r!==void 0?r:"react-aria-Breadcrumbs"},[...t].map((o,i)=>u.createElement(oS,{key:o.key,node:o,isCurrent:i===t.size-1,isDisabled:e.isDisabled,onAction:e.onAction})))}const nS=u.forwardRef(eS);function rS(e,t){return ja("item",e,t,e.children)}const R4=u.forwardRef(rS);function oS({node:e,isCurrent:t,isDisabled:n,onAction:r}){let o={"aria-current":t?"page":null,isDisabled:n||t,onPress:()=>r==null?void 0:r(e.key)};var i;return u.createElement("li",{...me(e.props),ref:e.props.ref,style:e.props.style,className:(i=e.props.className)!==null&&i!==void 0?i:"react-aria-Breadcrumb"},u.createElement(M4.Provider,{value:o},e.rendered))}const iS=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Tc=u.createContext({});function aS(e,t){[e,t]=Te(e,t,Tc);let n=e,{buttonProps:r,isPressed:o}=sg(e,t),{focusProps:i,isFocused:a,isFocusVisible:s}=at(e),{hoverProps:l,isHovered:c}=Ye(e),d=ye({...e,values:{isHovered:c,isPressed:o,isFocused:a,isFocusVisible:s,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return u.createElement("button",{...me(e,{propNames:iS}),...oe(r,i,l),...d,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":n.isPressed||o||void 0,"data-hovered":c||void 0,"data-focused":a||void 0,"data-focus-visible":s||void 0})}const F4=Ua(aS),sS=u.createContext({}),fn=u.createContext({});function lS(e,t){[e,t]=Te(e,t,fn);let{elementType:n="span",...r}=e;return u.createElement(n,{className:"react-aria-Text",...r,ref:t})}const Vr=u.forwardRef(lS),Qn=u.createContext(null);function uS(e,t){let n=u.useContext(Qn);return n!=null&&n.isInvalid?u.createElement(cS,{...e,ref:t}):null}const Ko=u.forwardRef(uS),cS=u.forwardRef((e,t)=>{let n=u.useContext(Qn),r=ye({...e,defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.join(" "),values:n});return u.createElement(Vr,{slot:"errorMessage",...r,ref:t})}),Gt=u.createContext({});function dS(e,t){[e,t]=Te(e,t,Gt);let{elementType:n="label",...r}=e;return u.createElement(n,{className:"react-aria-Label",...r,ref:t})}const pn=Ua(dS),fS=u.createContext(null),pS=u.createContext(null);function hS(e,t){[e,t]=Te(e,t,pS);let n=u.useRef(null),r=u.useContext(fS);var o;let{labelProps:i,inputProps:a,isSelected:s,isDisabled:l,isReadOnly:c,isPressed:d,isInvalid:f}=r?xP({...e,value:e.value,children:typeof e.children=="function"?!0:e.children},r,n):pg({...e,children:typeof e.children=="function"?!0:e.children,validationBehavior:(o=e.validationBehavior)!==null&&o!==void 0?o:"native"},Va(e),n),{isFocused:p,isFocusVisible:h,focusProps:m}=at(),b=l||c,{hoverProps:g,isHovered:$}=Ye({...e,isDisabled:b}),C=ye({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:s,isIndeterminate:e.isIndeterminate||!1,isPressed:d,isHovered:$,isFocused:p,isFocusVisible:h,isDisabled:l,isReadOnly:c,isInvalid:f,isRequired:e.isRequired||!1}}),x=me(e);return delete x.id,u.createElement("label",{...oe(x,i,g,C),ref:t,slot:e.slot||void 0,"data-selected":s||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":d||void 0,"data-hovered":$||void 0,"data-focused":p||void 0,"data-focus-visible":h||void 0,"data-disabled":l||void 0,"data-readonly":c||void 0,"data-invalid":f||void 0,"data-required":e.isRequired||void 0},u.createElement(Aa,{elementType:"span"},u.createElement("input",{...oe(a,m),ref:n})),C.children)}const mS=u.forwardRef(hS),Nr=u.createContext({});function bS(e,t){[e,t]=Te(e,t,Nr);let{isDisabled:n,isInvalid:r,onHoverStart:o,onHoverChange:i,onHoverEnd:a,...s}=e,{hoverProps:l,isHovered:c}=Ye({onHoverStart:o,onHoverChange:i,onHoverEnd:a,isDisabled:n}),{isFocused:d,isFocusVisible:f,focusProps:p}=at({within:!0});n??(n=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r??(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let h=ye({...e,values:{isHovered:c,isFocusWithin:d,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});var m,b;return u.createElement("div",{...oe(s,p,l),...h,ref:t,role:(m=e.role)!==null&&m!==void 0?m:"group",slot:(b=e.slot)!==null&&b!==void 0?b:void 0,"data-focus-within":d||void 0,"data-hovered":c||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0},h.children)}const Ac=u.forwardRef(bS),er=u.createContext({});let gS=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function vS(e,t){[e,t]=Te(e,t,er);let{hoverProps:n,isHovered:r}=Ye(e),{isFocused:o,isFocusVisible:i,focusProps:a}=at({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",l=ye({...e,values:{isHovered:r,isFocused:o,isFocusVisible:i,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement("input",{...oe(gS(e),a,n),...l,ref:t,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":i||void 0,"data-invalid":s||void 0})}const jo=Ua(vS),B4=u.createContext(null);function yS(e,t){let{render:n}=u.useContext(B4);return u.createElement(u.Fragment,null,n(e,t))}const $S=u.forwardRef(yS),kc=u.createContext({}),xS=u.createContext({});function wS(e,t){let[n,r]=Te(e,t,xS),o=T4("header",e,t);return o||u.createElement("header",{className:"react-aria-Header",...n,ref:r},n.children)}const I4=u.forwardRef(wS),Mc=u.createContext({});function CS(e,t){let[n,r]=Te(e,t,Mc),{elementType:o,orientation:i,style:a,className:s}=n,l=o||"hr";l==="hr"&&i==="vertical"&&(l="div");let{separatorProps:c}=I1({elementType:o,orientation:i}),d=T4("separator",e,t);return d||u.createElement(l,{...me(n),...c,style:a,className:s??"react-aria-Separator",ref:r,slot:n.slot||void 0})}const O4=u.forwardRef(CS),Ga=u.createContext(null),zo=u.createContext(null);function ES(e,t){[e,t]=Te(e,t,Ga);let n=u.useContext(To),r=u.useContext(zo);return u.useContext(_o)?u.createElement(S4,e):r?n?null:u.createElement(L4,{state:r,props:e,listBoxRef:t}):u.createElement(DS,{props:e,listBoxRef:t})}function DS({props:e,listBoxRef:t}){let{portal:n,collection:r}=Dc(e);e={...e,collection:r,children:null,items:null};let o=N1(e);return u.createElement(u.Fragment,null,n,u.createElement(L4,{state:o,props:e,listBoxRef:t}))}const PS=u.forwardRef(ES);function L4({state:e,props:t,listBoxRef:n}){let{dragAndDropHooks:r,layout:o="stack",orientation:i="vertical"}=t,{collection:a,selectionManager:s}=e,l=!!(r!=null&&r.useDraggableCollectionState),c=!!(r!=null&&r.useDroppableCollectionState),{direction:d}=Ze(),{disabledBehavior:f,disabledKeys:p}=s,h=Fu({usage:"search",sensitivity:"base"}),m=u.useMemo(()=>t.keyboardDelegate||new gc({collection:a,collator:h,ref:n,disabledKeys:f==="selection"?new Set:p,layout:o,orientation:i,direction:d}),[a,h,n,f,p,i,d,t.keyboardDelegate,o]),{listBoxProps:b}=kP({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:m},e,n),g=Lr({items:a,children:K=>{switch(K.type){case"section":return u.createElement(SS,{section:K});case"separator":return u.createElement(O4,K.props);case"item":return u.createElement(V4,{item:K});default:throw new Error("Unsupported node type in Menu: "+K.type)}}}),$=u.useRef(l),C=u.useRef(c);u.useEffect(()=>{$.current!==l&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),C.current!==c&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[l,c]);let x,E,w,A=!1,V=null,y=u.useRef(null);if(l&&r){x=r.useDraggableCollectionState({collection:a,selectionManager:s,preview:r.renderDragPreview?y:void 0}),r.useDraggableCollection({},x,n);let K=r.DragPreview;V=r.renderDragPreview?u.createElement(K,{ref:y},r.renderDragPreview):null}if(c&&r){E=r.useDroppableCollectionState({collection:a,selectionManager:s});let K=r.dropTargetDelegate||new r.ListDropTargetDelegate(a,n,{orientation:i,layout:o,direction:d});w=r.useDroppableCollection({keyboardDelegate:m,dropTargetDelegate:K},E,n),A=E.isDropTarget({type:"root"})}let{focusProps:I,isFocused:M,isFocusVisible:k}=at(),R={isDropTarget:A,isEmpty:e.collection.size===0,isFocused:M,isFocusVisible:k,layout:t.layout||"stack",state:e},S=ye({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:R}),F=null;return e.collection.size===0&&t.renderEmptyState&&(F=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(R))),u.createElement($u,null,u.createElement("div",{...me(t),...oe(b,I,w==null?void 0:w.collectionProps),...S,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":A||void 0,"data-empty":e.collection.size===0||void 0,"data-focused":M||void 0,"data-focus-visible":k||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},u.createElement(Xe,{values:[[Ga,t],[zo,e],[kc,{dragAndDropHooks:r,dragState:x,dropState:E}],[Mc,{elementType:"div"}],[B4,{render:MS}]]},g),F,V))}function SS({section:e,className:t,style:n}){var r,o;let i=u.useContext(zo),[a,s]=Ot();var l;let{headingProps:c,groupProps:d}=RP({heading:s,"aria-label":(l=e.props["aria-label"])!==null&&l!==void 0?l:void 0}),f=Lr({items:i.collection.getChildren(e.key),children:p=>{switch(p.type){case"header":return u.createElement(TS,{item:p,headingProps:c,headingRef:a});case"item":return u.createElement(V4,{item:p});default:throw new Error("Unsupported element type in Section: "+p.type)}}});return u.createElement("section",{...me(e.props),...d,className:t||((r=e.props)===null||r===void 0?void 0:r.className)||"react-aria-Section",style:n||((o=e.props)===null||o===void 0?void 0:o.style),ref:e.props.ref},f)}function TS({item:e,headingProps:t,headingRef:n}){let{ref:r,...o}=e.props;return u.createElement(I4,{...t,...o,ref:wa(n,r)},e.rendered)}function AS(e,t){return ja("item",e,t,e.children)}const kS=u.forwardRef(AS);function V4({item:e}){var t;let n=Ft(e.props.ref),r=u.useContext(zo),{dragAndDropHooks:o,dragState:i,dropState:a}=u.useContext(kc),{optionProps:s,labelProps:l,descriptionProps:c,...d}=MP({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},r,n),{hoverProps:f,isHovered:p}=Ye({isDisabled:!d.allowsSelection&&!d.hasAction}),h=null;i&&o&&(h=o.useDraggableItem({key:e.key},i));let m=null;a&&o&&(m=o.useDroppableItem({target:{type:"item",key:e.key,dropPosition:"on"}},a,n));let b=e.props,g=i&&i.isDragging(e.key),$=ye({...b,id:void 0,children:e.rendered,defaultClassName:"react-aria-ListBoxItem",values:{...d,isHovered:p,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!i,isDragging:g,isDropTarget:m==null?void 0:m.isDropTarget}}),C=(o==null?void 0:o.renderDropIndicator)||(E=>u.createElement($S,{target:E}));u.useEffect(()=>{e.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[e.textValue]);let x=b.href?"a":"div";return u.createElement(u.Fragment,null,(o==null?void 0:o.useDropIndicator)&&C({type:"item",key:e.key,dropPosition:"before"}),u.createElement(x,{...oe(s,f,h==null?void 0:h.dragProps,m==null?void 0:m.dropProps),...$,ref:n,"data-allows-dragging":!!i||void 0,"data-selected":d.isSelected||void 0,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-dragging":g||void 0,"data-drop-target":(m==null?void 0:m.isDropTarget)||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},u.createElement(Xe,{values:[[fn,{slots:{label:l,description:c}}]]},$.children)),(o==null?void 0:o.useDropIndicator)&&r.collection.getKeyAfter(e.key)==null&&C({type:"item",key:e.key,dropPosition:"after"}))}function MS(e,t){t=Ft(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(kc),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:u.createElement(FS,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function RS(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=ye({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement("div",{...n,...i,role:"option",ref:t,"data-drop-target":r||void 0})}const FS=u.forwardRef(RS),BS=u.createContext({placement:"bottom"}),Sr=u.createContext(null);function IS(e,t){[e,t]=Te(e,t,Sr);let n=u.useContext(tr),r=Ka(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Ql(t,o.isOpen)||e.isExiting||!1;if(u.useContext(To)){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1})),u.createElement(u.Fragment,null,s)}return o&&!o.isOpen&&!i?null:u.createElement(OS,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i})}const N4=u.forwardRef(IS);function OS({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var o;let{popoverProps:i,underlayProps:a,arrowProps:s,placement:l}=Aw({...r,offset:(o=r.offset)!==null&&o!==void 0?o:8},e),c=r.popoverRef,d=Sc(c,!!l)||r.isEntering||!1,f=ye({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:l,isEntering:d,isExiting:t}}),p={...i.style,...f.style};return u.createElement($0,{isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...a,style:{position:"fixed",inset:0}}),u.createElement("div",{...oe(me(r),i),...f,ref:c,slot:r.slot||void 0,style:p,"data-trigger":r.trigger,"data-placement":l,"data-entering":d||void 0,"data-exiting":t||void 0},!r.isNonModal&&u.createElement(Cl,{onDismiss:e.close}),u.createElement(BS.Provider,{value:{...s,placement:l}},f.children),u.createElement(Cl,{onDismiss:e.close})))}const LS=u.createContext(null),tr=u.createContext(null);function VS(e,t){let n=e["aria-labelledby"];[e,t]=Te(e,t,LS);let{dialogProps:r,titleProps:o}=JP({...e,"aria-labelledby":n},t),i=u.useContext(tr),a=e.children;typeof a=="function"&&(a=a({close:(i==null?void 0:i.close)||(()=>{})})),!r["aria-label"]&&!r["aria-labelledby"]&&(e["aria-labelledby"]?r["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));var s;return u.createElement("section",{...me(e),...r,ref:t,slot:e.slot||void 0,style:e.style,className:(s=e.className)!==null&&s!==void 0?s:"react-aria-Dialog"},u.createElement(Xe,{values:[[sS,{slots:{[Jl]:{},title:{...o,level:2}}}]]},a))}const _4=u.forwardRef(VS),NS=u.createContext(null),_S=u.createContext(null);function KS(e,t){[e,t]=Te(e,t,NS);let{collection:n,document:r}=Pc(),{children:o,isDisabled:i=!1,isInvalid:a=!1,isRequired:s=!1}=e;o=u.useMemo(()=>typeof o=="function"?o({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:s}):o,[o,i,a,s]);var l;return u.createElement(u.Fragment,null,u.createElement(k4,null,u.createElement(Xe,{values:[[_o,r],[Ga,{items:(l=e.items)!==null&&l!==void 0?l:e.defaultItems}]]},o)),u.createElement(jS,{props:e,collection:n,comboBoxRef:t}))}function jS({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:o="key",allowsCustomValue:i}=e;i&&(o="text");let{contains:a}=Fm({sensitivity:"base"});var s;let l=f8({defaultFilter:e.defaultFilter||a,...e,items:e.items,children:void 0,collection:t,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"}),c=u.useRef(null),d=u.useRef(null),f=u.useRef(null),p=u.useRef(null),[h,m]=Ot();var b;let{buttonProps:g,inputProps:$,listBoxProps:C,labelProps:x,descriptionProps:E,errorMessageProps:w,...A}=zP({...Yn(e),label:m,inputRef:d,buttonRef:c,listBoxRef:f,popoverRef:p,name:o==="text"?r:void 0,validationBehavior:(b=e.validationBehavior)!==null&&b!==void 0?b:"native"},l),[V,y]=u.useState(null),I=u.useCallback(()=>{if(d.current){var S;let F=(S=c.current)===null||S===void 0?void 0:S.getBoundingClientRect(),K=d.current.getBoundingClientRect(),L=F?Math.min(F.left,K.left):K.left,P=F?Math.max(F.right,K.right):K.right;y(P-L+"px")}},[c,d,y]);bu({ref:d,onResize:I});let M=u.useMemo(()=>({isOpen:l.isOpen,isDisabled:e.isDisabled||!1,isInvalid:A.isInvalid||!1,isRequired:e.isRequired||!1}),[l.isOpen,e.isDisabled,A.isInvalid,e.isRequired]),k=ye({...e,values:M,defaultClassName:"react-aria-ComboBox"}),R=me(e);return delete R.id,u.createElement(Xe,{values:[[_S,l],[Gt,{...x,ref:h}],[Tc,{...g,ref:c,isPressed:l.isOpen}],[er,{...$,ref:d}],[tr,l],[Sr,{ref:p,triggerRef:d,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":V}}],[Ga,{...C,ref:f}],[zo,l],[fn,{slots:{description:E,errorMessage:w}}],[Nr,{isInvalid:A.isInvalid,isDisabled:e.isDisabled||!1}],[Qn,A]]},u.createElement("div",{...R,...k,ref:n,slot:e.slot||void 0,"data-focused":l.isFocused||void 0,"data-open":l.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":A.isInvalid||void 0,"data-required":e.isRequired||void 0}),r&&o==="key"&&u.createElement("input",{type:"hidden",name:r,value:l.selectedKey}))}const zS=u.forwardRef(KS),K4=u.createContext(null),US=u.createContext(null),Uo=u.createContext(null),Wa=u.createContext(null);function HS(e,t){[e,t]=Te(e,t,K4);let{locale:n}=Ze();var r;let o=Cc({...e,locale:n,createCalendar:Tm,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=Ot(),l=u.useRef(null);var c;let{labelProps:d,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:m,...b}=xc({...Yn(e),label:s,inputRef:l,validationBehavior:(c=e.validationBehavior)!==null&&c!==void 0?c:"native"},o,i),g=ye({...Yn(e),values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-DateField"}),$=me(e);return delete $.id,u.createElement(Xe,{values:[[Uo,o],[Nr,{...f,ref:i,isInvalid:o.isInvalid}],[er,{...p,ref:l}],[Gt,{...d,ref:a,elementType:"span"}],[fn,{slots:{description:h,errorMessage:m}}],[Qn,b]]},u.createElement("div",{...$,...g,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const GS=u.forwardRef(HS);function WS(e,t){[e,t]=Te(e,t,US);let{locale:n}=Ze();var r;let o=S8({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=Ot(),l=u.useRef(null);var c;let{labelProps:d,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:m,...b}=WP({...Yn(e),label:s,inputRef:l,validationBehavior:(c=e.validationBehavior)!==null&&c!==void 0?c:"native"},o,i),g=ye({...e,values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-TimeField"}),$=me(e);return delete $.id,u.createElement(Xe,{values:[[Wa,o],[Nr,{...f,ref:i,isInvalid:o.isInvalid}],[er,{...p,ref:l}],[Gt,{...d,ref:a,elementType:"span"}],[fn,{slots:{description:h,errorMessage:m}}],[Qn,b]]},u.createElement("div",{...$,...g,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const YS=u.forwardRef(WS);function qS(e,t){let n=u.useContext(Uo),r=u.useContext(Wa);return n||r?u.createElement(j4,{...e,ref:t}):u.createElement(ZS,{...e,ref:t})}const ZS=u.forwardRef((e,t)=>{let[n,r]=Te({slot:e.slot},t,K4),{locale:o}=Ze(),i=Cc({...n,locale:o,createCalendar:Tm}),a=u.useRef(null),{fieldProps:s,inputProps:l}=xc({...n,inputRef:a},i,r);return u.createElement(Xe,{values:[[Uo,i],[er,{...l,ref:a}],[Nr,{...s,ref:r,isInvalid:i.isInvalid}]]},u.createElement(j4,e))}),j4=u.forwardRef((e,t)=>{let{className:n,children:r}=e,o=u.useContext(Uo),i=u.useContext(Wa),a=o??i;return u.createElement(u.Fragment,null,u.createElement(Ac,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isInvalid:a.isInvalid},a.segments.map((s,l)=>u.cloneElement(r(s),{key:l}))),u.createElement(jo,null))}),z4=u.forwardRef(qS);function XS({segment:e,...t},n){let r=u.useContext(Uo),o=u.useContext(Wa),i=r??o,a=Ft(n),{segmentProps:s}=ZP(e,i,a),{focusProps:l,isFocused:c,isFocusVisible:d}=at(),{hoverProps:f,isHovered:p}=Ye({...t,isDisabled:i.isDisabled||e.type==="literal"}),h=ye({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:p,isFocused:c,isFocusVisible:d},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return u.createElement("div",{...oe(me(t),s,l,f),...h,ref:a,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":i.isDisabled||void 0,"data-type":e.type,"data-hovered":p||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0})}const U4=u.forwardRef(XS),H4=u.createContext({}),G4=u.createContext(null),Ho=u.createContext(null),W4=u.createContext(null);function Y4(e){let{item:t,parentMenuRef:n}=e,r=u.useContext(Ho);return Lr({items:r.collection.getChildren(t.key),children:i=>{switch(i.type){case"item":return u.createElement(n9,{item:i,popover:t.rendered[1],parentMenuRef:n,delay:t.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+t.type)}}})}function JS(e,t){[e,t]=Te(e,t,G4);let{portal:n,collection:r}=Dc(e);return u.createElement(u.Fragment,null,r.size>0&&u.createElement(QS,{props:e,collection:r,menuRef:t}),n)}function QS({props:e,collection:t,menuRef:n}){let r=N8({...e,collection:t,children:void 0}),[o,i]=u.useState(null),{menuProps:a}=IP(e,r,n),s=u.useContext(W4),l=u.useContext(Sr),c=Lr({items:r.collection,children:p=>{switch(p.type){case"section":return u.createElement(t9,{section:p,parentMenuRef:n});case"separator":return u.createElement(O4,p.props);case"item":return u.createElement(q4,{item:p});case"submenutrigger":return u.createElement(Y4,{item:p,parentMenuRef:n});default:throw new Error("Unsupported node type in Menu: "+p.type)}}}),d=(l==null?void 0:l.trigger)==="SubmenuTrigger";Yh({ref:n,onInteractOutside:p=>{s&&!(o!=null&&o.contains(p.target))&&s.close()},isDisabled:d||(s==null?void 0:s.UNSTABLE_expandedKeysStack.length)===0});var f;return u.createElement($u,null,u.createElement("div",{...me(e),...a,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,style:e.style,className:(f=e.className)!==null&&f!==void 0?f:"react-aria-Menu"},u.createElement(Xe,{values:[[Ho,r],[Mc,{elementType:"div"}],[Sr,{UNSTABLE_portalContainer:o||void 0}]]},c)),u.createElement("div",{ref:i,style:{width:"100vw",position:"absolute",top:0}}))}const e9=u.forwardRef(JS);function t9({section:e,className:t,style:n,parentMenuRef:r,...o}){var i,a;let s=u.useContext(Ho),[l,c]=Ot();var d;let{headingProps:f,groupProps:p}=OP({heading:c,"aria-label":(d=e["aria-label"])!==null&&d!==void 0?d:void 0}),h=Lr({items:s.collection.getChildren(e.key),children:m=>{switch(m.type){case"header":{let{ref:b,...g}=m.props;return u.createElement(I4,{...f,...g,ref:wa(l,b)},m.rendered)}case"item":return u.createElement(q4,{item:m});case"submenutrigger":return u.createElement(Y4,{item:m,parentMenuRef:r});default:throw new Error("Unsupported element type in Section: "+m.type)}}});return u.createElement("section",{...me(o),...p,className:t||((i=e.props)===null||i===void 0?void 0:i.className)||"react-aria-Section",style:n||((a=e.props)===null||a===void 0?void 0:a.style),ref:e.props.ref},h)}function q4({item:e}){var t;let n=u.useContext(Ho),r=Ft(e.props.ref),{menuItemProps:o,labelProps:i,descriptionProps:a,keyboardShortcutProps:s,...l}=Fv({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},n,r),c=e.props,{isFocusVisible:d,focusProps:f}=at(),{hoverProps:p,isHovered:h}=Ye({isDisabled:l.isDisabled}),m=ye({...c,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...l,isHovered:h,isFocusVisible:d,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),b=c.href?"a":"div";return u.createElement(b,{...oe(o,f,p),...m,ref:r,"data-disabled":l.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":d||void 0,"data-pressed":l.isPressed||void 0,"data-selected":l.isSelected||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode},u.createElement(Xe,{values:[[fn,{slots:{label:i,description:a}}],[H4,s]]},m.children))}function n9({item:e,popover:t,parentMenuRef:n,delay:r}){let o=u.useContext(Ho),i=za(Sr),a=Ft(e.props.ref),s=u.useContext(W4),l=T8({triggerKey:e.key},s),c=u.useRef(null),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=_P({node:e,parentMenuRef:n,submenuRef:c,delay:r},l,a),{menuItemProps:h,labelProps:m,descriptionProps:b,keyboardShortcutProps:g,...$}=Fv({key:e.key,...d},o,a),C=e.props,{hoverProps:x,isHovered:E}=Ye({isDisabled:$.isDisabled}),{isFocusVisible:w,focusProps:A}=at(),V=ye({...C,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...$,isHovered:E,isFocusVisible:w,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,hasSubmenu:!0,isOpen:l.isOpen}});return u.createElement(Xe,{values:[[fn,{slots:{label:m,description:b}}],[H4,g],[G4,f],[tr,l],[Sr,{ref:c,trigger:"SubmenuTrigger",triggerRef:a,placement:"end top",UNSTABLE_portalContainer:i.UNSTABLE_portalContainer||void 0,...p}]]},u.createElement("div",{...oe(h,A,x),...V,ref:a,"data-disabled":$.isDisabled||void 0,"data-hovered":E||void 0,"data-focused":$.isFocused||void 0,"data-focus-visible":w||void 0,"data-pressed":$.isPressed||void 0,"data-selected":$.isSelected||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-has-submenu":!0,"data-open":l.isOpen||void 0},V.children),t)}const r9=u.createContext(null);function o9(e,t){[e,t]=Te(e,t,r9);let{value:n=0,minValue:r=0,maxValue:o=100}=e;n=At(n,r,o);let[i,a]=Ot(),{meterProps:s,labelProps:l}=QP({...e,label:a}),c=(n-r)/(o-r)*100,d=ye({...e,defaultClassName:"react-aria-Meter",values:{percentage:c,valueText:s["aria-valuetext"]}});return u.createElement("div",{...s,...d,ref:t,slot:e.slot||void 0},u.createElement(Gt.Provider,{value:{...l,ref:i,elementType:"span"}},d.children))}const i9=u.forwardRef(o9),a9=u.createContext(null),Rc=u.createContext(null);function s9(e,t){if(u.useContext(Rc))return u.createElement(oh,{...e,modalRef:t},e.children);let{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,isEntering:c,isExiting:d,UNSTABLE_portalContainer:f,...p}=e;return u.createElement(Z4,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:c,isExiting:d,UNSTABLE_portalContainer:f},u.createElement(oh,{...p,modalRef:t},l))}const l9=u.forwardRef(s9);function u9(e,t){[e,t]=Te(e,t,a9);let n=u.useContext(tr),r=Ka(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Ft(t),a=u.useRef(null),s=Ql(i,o.isOpen),l=Ql(a,o.isOpen),c=s||l||e.isExiting||!1,d=Ht();return!o.isOpen&&!c||d?null:u.createElement(c9,{...e,state:o,isExiting:c,overlayRef:i,modalRef:a})}const Z4=u.forwardRef(u9);function c9({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=kw(t,r,n),a=Sc(t.overlayRef)||t.isEntering||!1,s=ye({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=f5(),c={...s.style,"--visual-viewport-height":l.height+"px"};return u.createElement($0,{isExiting:t.isExiting,portalContainer:e},u.createElement("div",{...oe(me(t),i),...s,style:c,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},u.createElement(Xe,{values:[[Rc,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[tr,r]]},s.children)))}function oh(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=u.useContext(Rc),i=u.useContext(tr),a=u.useMemo(()=>wa(e.modalRef,n),[e.modalRef,n]),s=Ft(a),l=Sc(s),c=ye({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return u.createElement("div",{...oe(me(e),t),...c,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&u.createElement(Cl,{onDismiss:i.close}),c.children)}const d9=u.createContext(null),f9=u.createContext(null);function p9(e,t){[e,t]=Te(e,t,d9);let{locale:n}=Ze();var r;let o=A8({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=Ot();var l;let{labelProps:c,groupProps:d,inputProps:f,incrementButtonProps:p,decrementButtonProps:h,descriptionProps:m,errorMessageProps:b,...g}=t8({...Yn(e),label:s,validationBehavior:(l=e.validationBehavior)!==null&&l!==void 0?l:"native"},o,i),$=ye({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:g.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),C=me(e);return delete C.id,u.createElement(Xe,{values:[[f9,o],[Nr,d],[er,{...f,ref:i}],[Gt,{...c,ref:a}],[Tc,{slots:{increment:p,decrement:h}}],[fn,{slots:{description:m,errorMessage:b}}],[Qn,g]]},u.createElement("div",{...C,...$,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":g.isInvalid||void 0}),e.name&&u.createElement("input",{type:"hidden",name:e.name,value:isNaN(o.numberValue)?"":o.numberValue}))}const h9=u.forwardRef(p9),m9=u.createContext(null);function b9(e,t){[e,t]=Te(e,t,m9);let{value:n=0,minValue:r=0,maxValue:o=100,isIndeterminate:i=!1}=e;n=At(n,r,o);let[a,s]=Ot(),{progressBarProps:l,labelProps:c}=Qy({...e,label:s}),d=i?void 0:(n-r)/(o-r)*100,f=ye({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:d,valueText:l["aria-valuetext"],isIndeterminate:i}});return u.createElement("div",{...l,...f,ref:t,slot:e.slot||void 0},u.createElement(Gt.Provider,{value:{...c,ref:a,elementType:"span"}},f.children))}const X4=u.forwardRef(b9),g9=u.createContext(null),Ya=u.createContext(null),Fc=u.createContext(null),J4=u.createContext(null);function v9(e,t){[e,t]=Te(e,t,g9);let n=u.useRef(null),r=oa(e.formatOptions),o=F8({...e,numberFormatter:r}),[i,a]=Ot(),{groupProps:s,trackProps:l,labelProps:c,outputProps:d}=n8({...e,label:a},o,n),f=ye({...e,values:{orientation:o.orientation,isDisabled:o.isDisabled,state:o},defaultClassName:"react-aria-Slider"}),p=me(e);return delete p.id,u.createElement(Xe,{values:[[Ya,o],[Fc,{...l,ref:n}],[J4,d],[Gt,{...c,ref:i}]]},u.createElement("div",{...p,...s,...f,ref:t,slot:e.slot||void 0,"data-orientation":o.orientation,"data-disabled":o.isDisabled||void 0}))}const y9=u.forwardRef(v9);function $9(e,t){[e,t]=Te(e,t,J4);let{children:n,style:r,className:o,...i}=e,a=u.useContext(Ya),s=ye({className:o,style:r,children:n,defaultChildren:a.getThumbValueLabel(0),defaultClassName:"react-aria-SliderOutput",values:{orientation:a.orientation,isDisabled:a.isDisabled,state:a}});return u.createElement("output",{...i,...s,ref:t,"data-orientation":a.orientation||void 0,"data-disabled":a.isDisabled||void 0})}const x9=u.forwardRef($9);function w9(e,t){[e,t]=Te(e,t,Fc);let n=u.useContext(Ya),{onHoverStart:r,onHoverEnd:o,onHoverChange:i,...a}=e,{hoverProps:s,isHovered:l}=Ye({onHoverStart:r,onHoverEnd:o,onHoverChange:i}),c=ye({...e,defaultClassName:"react-aria-SliderTrack",values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:l,state:n}});return u.createElement("div",{...oe(a,s),...c,ref:t,"data-hovered":l||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})}const C9=u.forwardRef(w9);function E9(e,t){let n=u.useContext(Ya),{ref:r}=za(Fc),{index:o=0}=e,i=u.useRef(null),[a,s]=Ot(),{thumbProps:l,inputProps:c,labelProps:d,isDragging:f,isFocused:p,isDisabled:h}=r8({...e,index:o,trackRef:r,inputRef:i,label:s},n),{focusProps:m,isFocusVisible:b}=at(),{hoverProps:g,isHovered:$}=Ye(e),C=ye({...e,defaultClassName:"react-aria-SliderThumb",values:{state:n,isHovered:$,isDragging:f,isFocused:p,isFocusVisible:b,isDisabled:h}}),x=me(e);return delete x.id,u.createElement("div",{...oe(x,l,g),...C,ref:t,style:{...l.style,...C.style},"data-hovered":$||void 0,"data-dragging":f||void 0,"data-focused":p||void 0,"data-focus-visible":b||void 0,"data-disabled":h||void 0},u.createElement(Aa,null,u.createElement("input",{ref:i,...oe(c,m)})),u.createElement(Xe,{values:[[Gt,{...d,ref:a}]]},C.children))}const D9=u.forwardRef(E9),P9=u.createContext(null);function S9(e,t){[e,t]=Te(e,t,P9);let n=u.useRef(null),r=Va(e),{labelProps:o,inputProps:i,isSelected:a,isDisabled:s,isReadOnly:l,isPressed:c}=o8({...Yn(e),children:typeof e.children=="function"?!0:e.children},r,n),{isFocused:d,isFocusVisible:f,focusProps:p}=at(),h=e.isDisabled||e.isReadOnly,{hoverProps:m,isHovered:b}=Ye({...e,isDisabled:h}),g=ye({...e,defaultClassName:"react-aria-Switch",values:{isSelected:a,isPressed:c,isHovered:b,isFocused:d,isFocusVisible:f,isDisabled:s,isReadOnly:l,state:r}}),$=me(e);return delete $.id,u.createElement("label",{...oe($,o,m,g),ref:t,slot:e.slot||void 0,"data-selected":a||void 0,"data-pressed":c||void 0,"data-hovered":b||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-disabled":s||void 0,"data-readonly":l||void 0},u.createElement(Aa,{elementType:"span"},u.createElement("input",{...i,...p,ref:n})),g.children)}const T9=u.forwardRef(S9),Bc=u.createContext(null),Ic=u.createContext(null);function A9(e,t){[e,t]=Te(e,t,Bc);let{collection:n,document:r}=Pc(),{children:o,orientation:i="horizontal"}=e;return o=u.useMemo(()=>typeof o=="function"?o({orientation:i}):o,[o,i]),u.createElement(u.Fragment,null,u.createElement(k4,null,u.createElement(_o.Provider,{value:r},o)),u.createElement(k9,{props:e,collection:n,tabsRef:t}))}function k9({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,o=B8({...e,collection:n,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:s}=at({within:!0}),l=u.useMemo(()=>({orientation:r,isFocusWithin:a,isFocusVisible:s}),[r,a,s]),c=ye({...e,defaultClassName:"react-aria-Tabs",values:l});return u.createElement("div",{...me(e),...i,...c,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":o.isDisabled||void 0},u.createElement(Xe,{values:[[Bc,e],[Ic,o]]},c.children))}const M9=u.forwardRef(A9);function R9(e,t){return u.useContext(_o)?u.createElement(S4,e):u.createElement(F9,{props:e,forwardedRef:t})}function F9({props:e,forwardedRef:t}){let n=u.useContext(Ic),{orientation:r="horizontal",keyboardActivation:o="automatic"}=za(Bc),i=Ft(t),{tabListProps:a}=l8({...e,orientation:r,keyboardActivation:o},n,i),s=ye({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:r,state:n}}),l=me(e);return delete l.id,u.createElement("div",{...l,...a,ref:i,...s,"data-orientation":r||void 0},[...n.collection].map(c=>u.createElement(L9,{key:c.key,item:c,state:n})))}const B9=u.forwardRef(R9);function I9(e,t){return ja("item",e,t,e.children)}const O9=u.forwardRef(I9);function L9({item:e,state:t}){let n=Ft(e.props.ref),{tabProps:r,isSelected:o,isDisabled:i,isPressed:a}=i8({key:e.key,...e.props},t,n),{focusProps:s,isFocused:l,isFocusVisible:c}=at(),{hoverProps:d,isHovered:f}=Ye({isDisabled:i}),p=ye({...e.props,children:e.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:i,isFocused:l,isFocusVisible:c,isPressed:a,isHovered:f,state:t}}),h=e.props.href?"a":"div";return u.createElement(h,{...oe(r,s,d,p),ref:n,"data-selected":o||void 0,"data-disabled":i||void 0,"data-focus-visible":c||void 0,"data-pressed":a||void 0,"data-hovered":f||void 0})}function V9(e,t){const n=u.useContext(Ic);let r=Ft(t),{tabPanelProps:o}=a8(e,n,r),{focusProps:i,isFocused:a,isFocusVisible:s}=at(),l=n.selectedKey===e.id,c=ye({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!l,state:n}});if(!l&&!e.shouldForceMount)return null;let d=me(e);delete d.id;let f=l?oe(d,o,i,c):c;return u.createElement("div",{...f,ref:r,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:l?void 0:"true","data-inert":l?void 0:"true"})}const N9=Ua(V9),_9=u.createContext({}),K9=u.createContext(null);function j9(e,t){[e,t]=Te(e,t,K9);let n=u.useRef(null),[r,o]=Ot(),[i,a]=u.useState("input");var s;let{labelProps:l,inputProps:c,descriptionProps:d,errorMessageProps:f,...p}=yc({...Yn(e),inputElementType:i,label:o,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"},n),h=u.useCallback(b=>{n.current=b,b&&a(b instanceof HTMLTextAreaElement?"textarea":"input")},[]),m=ye({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid},defaultClassName:"react-aria-TextField"});return u.createElement("div",{...me(e),...m,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0},u.createElement(Xe,{values:[[Gt,{...l,ref:r}],[er,{...c,ref:h}],[_9,{...c,ref:h}],[fn,{slots:{description:d,errorMessage:f}}],[Qn,p]]},m.children))}const qa=u.forwardRef(j9),z9=u.createContext({});function U9(e,t){[e,t]=Te(e,t,z9);let n=Va(e),{buttonProps:r,isPressed:o}=dP(e,n,t),{focusProps:i,isFocused:a,isFocusVisible:s}=at(e),{hoverProps:l,isHovered:c}=Ye(e),d=ye({...e,values:{isHovered:c,isPressed:o,isFocused:a,isSelected:n.isSelected,isFocusVisible:s,isDisabled:e.isDisabled||!1,state:n},defaultClassName:"react-aria-ToggleButton"});return u.createElement("button",{...oe(r,i,l),...d,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":o||void 0,"data-selected":n.isSelected||void 0,"data-hovered":c||void 0,"data-focus-visible":s||void 0})}const H9=u.forwardRef(U9),G9=Z(nS)`
|
|
269
269
|
display: flex;
|
|
270
270
|
align-items: center;
|
|
271
271
|
list-style: none;
|
|
272
272
|
margin: 0 0 1rem;
|
|
273
273
|
padding: 0.3125rem 0 0;
|
|
274
274
|
font-size: 0.9rem;
|
|
275
|
-
`,
|
|
275
|
+
`,W9=Z(R4)`
|
|
276
276
|
display: flex;
|
|
277
277
|
align-items: center;
|
|
278
|
-
`,
|
|
278
|
+
`,Y9=Z(R4)`
|
|
279
279
|
display: flex;
|
|
280
280
|
align-items: center;
|
|
281
281
|
margin: 0 0.5rem;
|
|
@@ -285,7 +285,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
285
285
|
width: 1rem;
|
|
286
286
|
height: 1rem;
|
|
287
287
|
}
|
|
288
|
-
`,
|
|
288
|
+
`,q9=Z(Ha)`
|
|
289
289
|
color: ${({theme:e})=>e.colors.slate[600]};
|
|
290
290
|
text-decoration: none;
|
|
291
291
|
cursor: pointer;
|
|
@@ -311,7 +311,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
311
311
|
color: ${({theme:e})=>e.colors.slate[400]};
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
`;function
|
|
314
|
+
`;function Z9({children:e,...t}){return O.jsx(W9,{...t,children:e})}function X9(e){return O.jsx(q9,{...e})}function J9({children:e,...t}){return O.jsx(Y9,{...t,children:e??O.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:O.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}function Q9({children:e,...t}){return O.jsx(G9,{...t,children:e})}const _t=Z(F4)`
|
|
315
315
|
display: flex;
|
|
316
316
|
align-items: center;
|
|
317
317
|
padding: 0.4rem 2rem;
|
|
@@ -348,7 +348,10 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
348
348
|
border-color: ${({isLoading:e,theme:t,variant:n})=>{switch(n){case"ghost":return"transparent";case"outline":return e?t.colors.slate[300]:t.colors.slate[200];case"solid":default:return e?t.colors.slate[900]:t.colors.slate[200]}}};
|
|
349
349
|
color: ${({isLoading:e,theme:t,variant:n})=>{switch(n){case"ghost":case"outline":return e?t.colors.slate[900]:t.colors.slate[500];case"solid":default:return e?t.colors.white:t.colors.slate[400]}}};
|
|
350
350
|
}
|
|
351
|
-
`;function
|
|
351
|
+
`;function eT({children:e,isDisabled:t=!1,isLoading:n=!1,size:r="md",variant:o="solid",...i}){return O.jsx(_t,{isDisabled:t||n,isLoading:n,size:r,variant:o,...i,children:e})}const tT=Z.div`
|
|
352
|
+
display: flex;
|
|
353
|
+
flex-direction: column;
|
|
354
|
+
`;function nT({children:e,...t}){return O.jsx(tT,{...t,children:e})}const xt=Z.div`
|
|
352
355
|
width: 1.5rem;
|
|
353
356
|
height: 1.5rem;
|
|
354
357
|
border: 1px solid ${({theme:e})=>e.colors.slate[300]};
|
|
@@ -357,7 +360,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
357
360
|
display: flex;
|
|
358
361
|
align-items: center;
|
|
359
362
|
justify-content: center;
|
|
360
|
-
`,Li=
|
|
363
|
+
`,Li=Z.svg`
|
|
361
364
|
width: 1rem;
|
|
362
365
|
height: 1rem;
|
|
363
366
|
fill: none;
|
|
@@ -366,7 +369,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
366
369
|
stroke-dasharray: 22px;
|
|
367
370
|
stroke-dashoffset: 66;
|
|
368
371
|
transition: all 200ms;
|
|
369
|
-
`,
|
|
372
|
+
`,rT=Z(mS)`
|
|
370
373
|
display: flex;
|
|
371
374
|
align-items: center;
|
|
372
375
|
gap: 0.5rem;
|
|
@@ -458,21 +461,31 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
458
461
|
fill: ${({theme:e})=>e.colors.white};
|
|
459
462
|
}
|
|
460
463
|
}
|
|
461
|
-
`;function
|
|
464
|
+
`;function oT({children:e,...t}){return O.jsx(rT,{...t,children:({isIndeterminate:n})=>O.jsxs(O.Fragment,{children:[O.jsx(xt,{children:O.jsx(Li,{viewBox:"0 0 18 18","aria-hidden":"true",children:n?O.jsx("rect",{x:1,y:7.5,width:15,height:3}):O.jsx("polyline",{points:"1 9 7 14 15 4"})})}),e]})})}const iT=Z.div`
|
|
462
465
|
width: 100%;
|
|
463
|
-
`,
|
|
466
|
+
`,aT=Z(Jn.div)`
|
|
464
467
|
width: 100%;
|
|
465
468
|
overflow: hidden;
|
|
466
|
-
`,Oc=u.createContext({});function
|
|
469
|
+
`,Oc=u.createContext({});function sT({children:e,...t}){const n=u.useId(),[r,o]=Rt(t.isOpen,t.defaultOpen||!1,t.onOpenChange),i=u.useRef(null),a=u.useCallback(()=>{o(!r)},[o,r]);return O.jsx(Xe,{values:[[Oc,{isOpen:r,id:n,defaultOpen:t.defaultOpen||!1}]],children:O.jsx(D5,{ref:i,isPressed:r,onPress:a,"aria-expanded":r,"aria-controls":n,children:O.jsx(iT,{children:e})})})}function lT({children:e}){const{isOpen:t,id:n,defaultOpen:r}=u.useContext(Oc);return O.jsx(aT,{id:n,variants:{hidden:{height:"0px",opacity:0},visible:{height:"auto",opacity:1}},initial:r?"visible":"hidden",animate:t?"visible":"hidden",transition:{type:"spring",bounce:0},children:e})}const Q4={fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"],monospace:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:100,extralight:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},borderRadius:{.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{primary:"#4785ff",secondary:"#b8cfff",tertiary:"#d6e4ff",background:"#f0f5ff",inherit:"inherit",current:"currentColor",transparent:"transparent",black:"rgb(0 0 0)",white:"rgb(255 255 255)",slate:{50:"rgb(248 250 252)",100:"rgb(241 245 249)",200:"rgb(226 232 240)",300:"rgb(203 213 225)",400:"rgb(148 163 184)",500:"rgb(100 116 139)",600:"rgb(71 85 105)",700:"rgb(51 65 85)",800:"rgb(30 41 59)",900:"rgb(15 23 42)"},gray:{50:"rgb(249 250 251)",100:"rgb(243 244 246)",200:"rgb(229 231 235)",300:"rgb(209 213 219)",400:"rgb(156 163 175)",500:"rgb(107 114 128)",600:"rgb(75 85 99)",700:"rgb(55 65 81)",800:"rgb(31 41 55)",900:"rgb(17 24 39)"},zinc:{50:"rgb(250 250 250)",100:"rgb(244 244 245)",200:"rgb(228 228 231)",300:"rgb(212 212 216)",400:"rgb(161 161 170)",500:"rgb(113 113 122)",600:"rgb(82 82 91)",700:"rgb(63 63 70)",800:"rgb(39 39 42)",900:"rgb(24 24 27)"},neutral:{50:"rgb(250 250 250)",100:"rgb(245 245 245)",200:"rgb(229 229 229)",300:"rgb(212 212 212)",400:"rgb(163 163 163)",500:"rgb(115 115 115)",600:"rgb(82 82 82)",700:"rgb(64 64 64)",800:"rgb(38 38 38)",900:"rgb(23 23 23)"},stone:{50:"rgb(250 250 249)",100:"rgb(245 245 244)",200:"rgb(231 229 228)",300:"rgb(214 211 209)",400:"rgb(168 162 158)",500:"rgb(120 113 108)",600:"rgb(87 83 78)",700:"rgb(68 64 60)",800:"rgb(41 37 36)",900:"rgb(28 25 23)"},red:{50:"rgb(254 242 242)",100:"rgb(254 226 226)",200:"rgb(254 202 202)",300:"rgb(252 165 165)",400:"rgb(248 113 113)",500:"rgb(239 68 68)",600:"rgb(220 38 38)",700:"rgb(185 28 28)",800:"rgb(153 27 27)",900:"rgb(127 29 29)"},orange:{50:"rgb(255 247 237)",100:"rgb(255 237 213)",200:"rgb(254 215 170)",300:"rgb(253 186 116)",400:"rgb(251 146 60)",500:"rgb(249 115 22)",600:"rgb(234 88 12)",700:"rgb(194 65 12)",800:"rgb(154 52 18)",900:"rgb(124 45 18)"},amber:{50:"rgb(255 251 235)",100:"rgb(254 243 199)",200:"rgb(253 230 138)",300:"rgb(252 211 77)",400:"rgb(251 191 36)",500:"rgb(245 158 11)",600:"rgb(217 119 6)",700:"rgb(180 83 9)",800:"rgb(146 64 14)",900:"rgb(120 53 15)"},yellow:{50:"rgb(254 252 232)",100:"rgb(254 249 195)",200:"rgb(254 240 138)",300:"rgb(253 224 71)",400:"rgb(250 204 21)",500:"rgb(234 179 8)",600:"rgb(202 138 4)",700:"rgb(161 98 7)",800:"rgb(133 77 14)",900:"rgb(113 63 18)"},lime:{50:"rgb(247 254 231)",100:"rgb(236 252 203)",200:"rgb(217 249 157)",300:"rgb(190 242 100)",400:"rgb(163 230 53)",500:"rgb(132 204 22)",600:"rgb(101 163 13)",700:"rgb(77 124 15)",800:"rgb(63 98 18)",900:"rgb(54 83 20)"},green:{50:"rgb(240 253 244)",100:"rgb(220 252 231)",200:"rgb(187 247 208)",300:"rgb(134 239 172)",400:"rgb(74 222 128)",500:"rgb(34 197 94)",600:"rgb(22 163 74)",700:"rgb(21 128 61)",800:"rgb(22 101 52)",900:"rgb(20 83 45)"},emerald:{50:"rgb(236 253 245)",100:"rgb(209 250 229)",200:"rgb(167 243 208)",300:"rgb(110 231 183)",400:"rgb(52 211 153)",500:"rgb(16 185 129)",600:"rgb(5 150 105)",700:"rgb(4 120 87)",800:"rgb(6 95 70)",900:"rgb(6 78 59)"},teal:{50:"rgb(240 253 250)",100:"rgb(204 251 241)",200:"rgb(153 246 228)",300:"rgb(94 234 212)",400:"rgb(45 212 191)",500:"rgb(20 184 166)",600:"rgb(13 148 136)",700:"rgb(15 118 110)",800:"rgb(17 94 89)",900:"rgb(19 78 74)"},cyan:{50:"rgb(236 254 255)",100:"rgb(207 250 254)",200:"rgb(165 243 252)",300:"rgb(103 232 249)",400:"rgb(34 211 238)",500:"rgb(6 182 212)",600:"rgb(8 145 178)",700:"rgb(14 116 144)",800:"rgb(21 94 117)",900:"rgb(22 78 99)"},sky:{50:"rgb(240 249 255)",100:"rgb(224 242 254)",200:"rgb(186 230 253)",300:"rgb(125 211 252)",400:"rgb(56 189 248)",500:"rgb(14 165 233)",600:"rgb(2 132 199)",700:"rgb(3 105 161)",800:"rgb(7 89 133)",900:"rgb(12 74 110)"},blue:{50:"rgb(239 246 255)",100:"rgb(219 234 254)",200:"rgb(191 219 254)",300:"rgb(147 197 253)",400:"rgb(96 165 250)",500:"rgb(59 130 246)",600:"rgb(37 99 235)",700:"rgb(29 78 216)",800:"rgb(30 64 175)",900:"rgb(30 58 138)"},indigo:{50:"rgb(238 242 255)",100:"rgb(224 231 255)",200:"rgb(199 210 254)",300:"rgb(165 180 252)",400:"rgb(129 140 248)",500:"rgb(99 102 241)",600:"rgb(79 70 229)",700:"rgb(67 56 202)",800:"rgb(55 48 163)",900:"rgb(49 46 129)"},violet:{50:"rgb(245 243 255)",100:"rgb(237 233 254)",200:"rgb(221 214 254)",300:"rgb(196 181 253)",400:"rgb(167 139 250)",500:"rgb(139 92 246)",600:"rgb(124 58 237)",700:"rgb(109 40 217)",800:"rgb(91 33 182)",900:"rgb(76 29 149)"},purple:{50:"rgb(250 245 255)",100:"rgb(243 232 255)",200:"rgb(233 213 255)",300:"rgb(216 180 254)",400:"rgb(192 132 252)",500:"rgb(168 85 247)",600:"rgb(147 51 234)",700:"rgb(126 34 206)",800:"rgb(107 33 168)",900:"rgb(88 28 135)"},fuchsia:{50:"rgb(253 244 255)",100:"rgb(250 232 255)",200:"rgb(245 208 254)",300:"rgb(240 171 252)",400:"rgb(232 121 249)",500:"rgb(217 70 239)",600:"rgb(192 38 211)",700:"rgb(162 28 175)",800:"rgb(134 25 143)",900:"rgb(112 26 117)"},pink:{50:"rgb(253 242 248)",100:"rgb(252 231 243)",200:"rgb(251 207 232)",300:"rgb(249 168 212)",400:"rgb(244 114 182)",500:"rgb(236 72 153)",600:"rgb(219 39 119)",700:"rgb(190 24 93)",800:"rgb(157 23 77)",900:"rgb(131 24 67)"},rose:{50:"rgb(255 241 242)",100:"rgb(255 228 230)",200:"rgb(254 205 211)",300:"rgb(253 164 175)",400:"rgb(251 113 133)",500:"rgb(244 63 94)",600:"rgb(225 29 72)",700:"rgb(190 18 60)",800:"rgb(159 18 57)",900:"rgb(136 19 55)"}},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},height:{auto:"auto",px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},components:{button:{primary:{color:"#FFF",backgroundColor:"#000"}},Card:{border:"1px solid rgb(226 232 240)",padding:"1rem",backgroundColor:"transparent",borderRadius:"2px",boxShadow:"rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px"},"Card.Content":{padding:0,fontSize:"0.9rem"},"Card.Header":{fontSize:"1.125rem",fontWeight:"700",marginBottom:"1rem"}}};function e$(e,t){const n={...e};return Object.entries(t).forEach(([r,o])=>{o!==null&&typeof o=="object"&&!Array.isArray(o)?((n[r]===void 0||n[r]===null)&&(n[r]={}),n[r]=e$(n[r],o)):n[r]=o}),n}const ih=e=>{let t="";return Object.values(e).forEach(n=>{t+=`
|
|
470
|
+
@media (min-width: ${n}) {
|
|
471
|
+
max-width: ${n};
|
|
472
|
+
}
|
|
473
|
+
`}),t},uT=Z.div`
|
|
474
|
+
width: 100%;
|
|
475
|
+
margin: 0 auto;
|
|
476
|
+
padding: 0 1rem;
|
|
477
|
+
|
|
478
|
+
${({theme:e})=>e.screens?ih(e.screens):ih(Q4.screens)}
|
|
479
|
+
`,cT=u.forwardRef(({children:e,...t},n)=>O.jsx(uT,{...t,ref:n,children:e})),dT=Jn(Z(N4)`
|
|
467
480
|
padding: 0.4rem 0;
|
|
468
481
|
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
469
482
|
border-radius: 0.375rem;
|
|
470
483
|
width: 14rem;
|
|
471
484
|
background: #fff;
|
|
472
485
|
border: 1px solid ${({theme:e})=>e.colors.slate[300]};
|
|
473
|
-
`);function
|
|
486
|
+
`);function t$({children:e,key:t,onAction:n,setAnimation:r,animation:o="hidden",...i}){return O.jsx(dT,{isExiting:o==="hidden",onAnimationComplete:a=>{r(s=>a==="hidden"&&s==="hidden"?"unmounted":s)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:o,...i,children:O.jsx(e9,{style:{outline:"none"},onAction:n,children:e})},t)}t$.defaultProps={key:void 0,onAction:void 0};const fT=Z(GS)`
|
|
474
487
|
color: ${({theme:e})=>e.colors.slate[900]};
|
|
475
|
-
`,
|
|
488
|
+
`,pT=Z(z4)`
|
|
476
489
|
display: flex;
|
|
477
490
|
align-items: center;
|
|
478
491
|
border: 1px solid ${({theme:e})=>e.colors.slate[300]};
|
|
@@ -514,7 +527,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
514
527
|
outline: 2px solid ${({theme:e})=>e.colors.red[200]};
|
|
515
528
|
}
|
|
516
529
|
}
|
|
517
|
-
`,
|
|
530
|
+
`,hT=Z(U4)`
|
|
518
531
|
padding: 0.25rem;
|
|
519
532
|
font-variant-numeric: tabular-nums;
|
|
520
533
|
text-align: end;
|
|
@@ -563,24 +576,24 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
563
576
|
color: ${({theme:e})=>e.colors.white};
|
|
564
577
|
}
|
|
565
578
|
}
|
|
566
|
-
`,
|
|
579
|
+
`,mT=Z(pn)`
|
|
567
580
|
display: flex;
|
|
568
581
|
font-size: 0.8rem;
|
|
569
582
|
color: ${({theme:e})=>e.colors.slate[500]};
|
|
570
|
-
`,
|
|
583
|
+
`,bT=Z(Ko)`
|
|
571
584
|
display: flex;
|
|
572
585
|
color: ${({theme:e})=>e.colors.red[500]};
|
|
573
586
|
font-size: 0.8rem;
|
|
574
|
-
`,
|
|
587
|
+
`,gT=Z(Vr)`
|
|
575
588
|
display: flex;
|
|
576
589
|
color: ${({theme:e})=>e.colors.slate[500]};
|
|
577
590
|
font-size: 0.8rem;
|
|
578
|
-
`;function
|
|
591
|
+
`;function n$({label:e,description:t,errorMessage:n,...r}){return O.jsxs(fT,{...r,children:[O.jsx(mT,{children:e}),O.jsx(pT,{children:o=>O.jsx(hT,{segment:o})}),O.jsx(gT,{slot:"description",children:t}),O.jsx(bT,{children:n})]})}n$.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const vT=Z.div`
|
|
579
592
|
width: ${({orientation:e})=>e==="vertical"?"1px":"100%"};
|
|
580
593
|
height: ${({orientation:e})=>e==="vertical"?"auto":"1px"};
|
|
581
594
|
margin: ${({orientation:e})=>e==="vertical"?"0 1rem":"1rem 0"};
|
|
582
595
|
background: ${({theme:e})=>{var t,n;return(n=(t=e.colors)==null?void 0:t.slate)==null?void 0:n[200]}};
|
|
583
|
-
`;function
|
|
596
|
+
`;function yT(e){const{orientation:t}=e,{separatorProps:n}=I1(e);return O.jsx(vT,{...n,orientation:t})}const On=Z(jo)`
|
|
584
597
|
border: 1px solid ${({theme:e})=>e.colors.slate[300]};
|
|
585
598
|
font-size: 0.9rem;
|
|
586
599
|
padding: 0 0.5rem;
|
|
@@ -624,24 +637,24 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
624
637
|
::placeholder {
|
|
625
638
|
color: ${({theme:e})=>e.colors.slate[400]};
|
|
626
639
|
}
|
|
627
|
-
`,
|
|
640
|
+
`,r$=Z(pn)`
|
|
628
641
|
display: flex;
|
|
629
642
|
font-size: 0.8rem;
|
|
630
643
|
color: ${({theme:e})=>e.colors.slate[500]};
|
|
631
|
-
|
|
644
|
+
`,$T=Z(qa)`
|
|
632
645
|
display: flex;
|
|
633
646
|
flex-direction: column;
|
|
634
647
|
width: 100%;
|
|
635
648
|
color: ${({theme:e})=>e.colors.slate[900]};
|
|
636
|
-
`,
|
|
649
|
+
`,o$=Z(Ko)`
|
|
637
650
|
display: flex;
|
|
638
651
|
color: ${({theme:e})=>e.colors.red[500]};
|
|
639
652
|
font-size: 0.8rem;
|
|
640
|
-
`,
|
|
653
|
+
`,i$=Z(Vr)`
|
|
641
654
|
display: flex;
|
|
642
655
|
color: ${({theme:e})=>e.colors.slate[500]};
|
|
643
656
|
font-size: 0.8rem;
|
|
644
|
-
`;function
|
|
657
|
+
`;function a$({label:e,description:t,errorMessage:n,...r}){return O.jsxs($T,{...r,children:[O.jsx(r$,{children:e}),O.jsx(On,{}),t&&O.jsx(i$,{slot:"description",children:t}),O.jsx(o$,{children:n})]})}a$.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const xT=Z(Ha)`
|
|
645
658
|
color: ${({isDisabled:e,theme:t})=>{var n,r,o,i;return e?(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[300]:(i=(o=t.colors)==null?void 0:o.slate)==null?void 0:i[500]}};
|
|
646
659
|
cursor: ${({isDisabled:e})=>e?"default":"pointer"};
|
|
647
660
|
text-decoration: none;
|
|
@@ -651,33 +664,33 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
651
664
|
&:hover {
|
|
652
665
|
color: ${({isDisabled:e,theme:t})=>{var n,r,o,i;return e?(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[300]:(i=(o=t.colors)==null?void 0:o.slate)==null?void 0:i[800]}};
|
|
653
666
|
}
|
|
654
|
-
`;function
|
|
667
|
+
`;function wT({children:e,...t}){return O.jsx(xT,{...t,children:e})}const CT=Z(i9)`
|
|
655
668
|
display: flex;
|
|
656
669
|
flex-direction: column;
|
|
657
670
|
gap: 0.5rem;
|
|
658
|
-
`,
|
|
671
|
+
`,ET=Z.div`
|
|
659
672
|
display: flex;
|
|
660
673
|
justify-content: space-between;
|
|
661
674
|
gap: 1rem;
|
|
662
|
-
`,
|
|
675
|
+
`,DT=Z(pn)`
|
|
663
676
|
font-size: 0.875rem;
|
|
664
|
-
`,
|
|
677
|
+
`,PT=Z.span`
|
|
665
678
|
font-size: 0.875rem;
|
|
666
679
|
font-variant-numeric: tabular-nums;
|
|
667
680
|
margin-left: auto;
|
|
668
|
-
|
|
681
|
+
`,ST=Z.div`
|
|
669
682
|
height: 0.625rem;
|
|
670
683
|
border-radius: 0.3rem;
|
|
671
684
|
background-color: ${({theme:e})=>e.colors.slate[300]};
|
|
672
685
|
forced-color-adjust: none;
|
|
673
686
|
overflow: hidden;
|
|
674
|
-
`,
|
|
687
|
+
`,TT=Z(Jn.div)`
|
|
675
688
|
height: 100%;
|
|
676
689
|
background-color: ${({theme:e})=>e.colors.slate[800]};
|
|
677
|
-
`;function
|
|
690
|
+
`;function AT({label:e,showValue:t=!0,value:n=0,minValue:r=0,maxValue:o=100,formatOptions:i={style:"percent"},...a}){return O.jsx(CT,{value:n,minValue:r,maxValue:o,formatOptions:i,...a,children:({percentage:s,valueText:l})=>O.jsxs(O.Fragment,{children:[(e||t)&&O.jsxs(ET,{children:[e&&O.jsx(DT,{children:e}),t&&O.jsx(PT,{children:l})]}),O.jsx(ST,{children:O.jsx(TT,{initial:{width:`${s}%`},animate:{width:`${s}%`},transition:{type:"spring",bounce:0}})})]})})}const kT=Z(l9)`
|
|
678
691
|
position: absolute;
|
|
679
692
|
inset: 50%;
|
|
680
|
-
`;function
|
|
693
|
+
`;function MT(e){return O.jsx(kT,{...e})}const ah=rt`
|
|
681
694
|
0% {
|
|
682
695
|
opacity: 0;
|
|
683
696
|
backdrop-filter: blur(0);
|
|
@@ -687,7 +700,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
687
700
|
opacity: 1;
|
|
688
701
|
backdrop-filter: blur(10px);
|
|
689
702
|
}
|
|
690
|
-
`,
|
|
703
|
+
`,RT=Z(Z4)`
|
|
691
704
|
backdrop-filter: blur(10px);
|
|
692
705
|
background: ${({theme:e})=>`rgb(from ${e.colors.black} r g b / 30%)`};
|
|
693
706
|
position: fixed;
|
|
@@ -698,13 +711,13 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
698
711
|
height: var(--visual-viewport-height);
|
|
699
712
|
|
|
700
713
|
&[data-entering] {
|
|
701
|
-
animation: ${
|
|
714
|
+
animation: ${ah} 300ms;
|
|
702
715
|
}
|
|
703
716
|
|
|
704
717
|
&[data-exiting] {
|
|
705
|
-
animation: ${
|
|
718
|
+
animation: ${ah} 300ms reverse;
|
|
706
719
|
}
|
|
707
|
-
`;function
|
|
720
|
+
`;function FT(e){return O.jsx(RT,{...e})}const sh=rt`
|
|
708
721
|
from {
|
|
709
722
|
transform: translate(-50%, -50%) scale(0.8);
|
|
710
723
|
}
|
|
@@ -712,7 +725,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
712
725
|
to {
|
|
713
726
|
transform: translate(-50%, -50%) scale(1);
|
|
714
727
|
}
|
|
715
|
-
`,eu=
|
|
728
|
+
`,eu=Z(_4)`
|
|
716
729
|
padding: 2rem;
|
|
717
730
|
outline: none;
|
|
718
731
|
box-shadow: 0 0.5rem 1.5rem rgba(0 0 0 / 0.1);
|
|
@@ -720,33 +733,33 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
720
733
|
background: ${({theme:e})=>e.colors.white};
|
|
721
734
|
border: 1px solid ${({theme:e})=>e.colors.slate[400]};
|
|
722
735
|
outline: none;
|
|
723
|
-
max-width:
|
|
736
|
+
max-width: max-content;
|
|
724
737
|
width: 100vw;
|
|
725
738
|
position: absolute;
|
|
726
739
|
top: 50%;
|
|
727
740
|
left: 50%;
|
|
728
741
|
transform: translate(-50%, -50%);
|
|
729
|
-
`,
|
|
742
|
+
`,BT=_0`
|
|
730
743
|
[data-entering] ${eu} {
|
|
731
|
-
animation: ${
|
|
744
|
+
animation: ${sh} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
732
745
|
}
|
|
733
746
|
|
|
734
747
|
[data-exiting] ${eu} {
|
|
735
|
-
animation: ${
|
|
748
|
+
animation: ${sh} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275) reverse;
|
|
736
749
|
}
|
|
737
|
-
`;function
|
|
750
|
+
`;function IT(e){return O.jsxs(O.Fragment,{children:[O.jsx(BT,{}),O.jsx(eu,{...e})]})}const OT=rt`
|
|
738
751
|
from { transform: translateY(-100%); }
|
|
739
752
|
to { transform: translateY(0); }
|
|
740
|
-
`,
|
|
753
|
+
`,LT=rt`
|
|
741
754
|
from { transform: translateX(100%); }
|
|
742
755
|
to { transform: translateX(0); }
|
|
743
|
-
`,
|
|
756
|
+
`,VT=rt`
|
|
744
757
|
from { transform: translateY(100%); }
|
|
745
758
|
to { transform: translateY(0); }
|
|
746
|
-
`,
|
|
759
|
+
`,NT=rt`
|
|
747
760
|
from { transform: translateX(-100%); }
|
|
748
761
|
to { transform: translateX(0); }
|
|
749
|
-
`,tu=
|
|
762
|
+
`,tu=Z(_4)`
|
|
750
763
|
padding: 2rem;
|
|
751
764
|
position: fixed;
|
|
752
765
|
outline: none;
|
|
@@ -777,7 +790,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
777
790
|
border-right-width: 1px;
|
|
778
791
|
box-shadow: 0.5rem 0 1.5rem rgba(0 0 0 / 0.1);
|
|
779
792
|
}
|
|
780
|
-
`,
|
|
793
|
+
`,_T=_0`
|
|
781
794
|
[data-exiting] ${tu} {
|
|
782
795
|
animation-direction: reverse;
|
|
783
796
|
animation-timing-function: ease-in;
|
|
@@ -787,27 +800,27 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
787
800
|
[data-exiting] {
|
|
788
801
|
${tu} {
|
|
789
802
|
&[data-direction='top'] {
|
|
790
|
-
animation-name: ${
|
|
803
|
+
animation-name: ${OT};
|
|
791
804
|
}
|
|
792
805
|
|
|
793
806
|
&[data-direction='right'] {
|
|
794
|
-
animation-name: ${
|
|
807
|
+
animation-name: ${LT};
|
|
795
808
|
}
|
|
796
809
|
|
|
797
810
|
&[data-direction='bottom'] {
|
|
798
|
-
animation-name: ${
|
|
811
|
+
animation-name: ${VT};
|
|
799
812
|
}
|
|
800
813
|
|
|
801
814
|
&[data-direction='left'] {
|
|
802
|
-
animation-name: ${
|
|
815
|
+
animation-name: ${NT};
|
|
803
816
|
}
|
|
804
817
|
}
|
|
805
818
|
}
|
|
806
|
-
`;function
|
|
819
|
+
`;function s$({direction:e,...t}){return O.jsxs(O.Fragment,{children:[O.jsx(_T,{}),O.jsx(tu,{"data-direction":e,...t})]})}s$.defaultProps={direction:"right"};const KT=Z(h9)`
|
|
807
820
|
display: flex;
|
|
808
821
|
flex-direction: column;
|
|
809
822
|
width: 100%;
|
|
810
|
-
`,
|
|
823
|
+
`,jT=Z(Ac)`
|
|
811
824
|
display: flex;
|
|
812
825
|
border-radius: 0.375rem;
|
|
813
826
|
|
|
@@ -893,11 +906,11 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
893
906
|
cursor: default;
|
|
894
907
|
}
|
|
895
908
|
}
|
|
896
|
-
`,
|
|
909
|
+
`,zT=O.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),UT=O.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function l$({label:e,description:t,errorMessage:n,isInvalid:r,isReadOnly:o,slots:i,...a}){return O.jsxs(KT,{isInvalid:r,...a,children:[O.jsx(r$,{children:e}),O.jsxs(jT,{isInvalid:r,"aria-readonly":o,children:[O.jsx(_t,{variant:"outline",slot:"decrement",children:i==null?void 0:i.decrementIcon}),O.jsx(On,{readOnly:o}),O.jsx(_t,{variant:"outline",slot:"increment",children:i==null?void 0:i.incrementIcon})]}),t&&O.jsx(i$,{slot:"description",children:t}),O.jsx(o$,{children:n})]})}l$.defaultProps={label:void 0,description:void 0,errorMessage:void 0,slots:{decrementIcon:zT,incrementIcon:UT}};const HT=Z(Ac)`
|
|
897
910
|
display: flex;
|
|
898
911
|
flex-wrap: wrap;
|
|
899
912
|
gap: 0.5rem;
|
|
900
|
-
`,
|
|
913
|
+
`,GT=Z(jo)`
|
|
901
914
|
border: 1px solid ${({theme:e})=>e.colors.slate[300]};
|
|
902
915
|
font-size: 0.9rem;
|
|
903
916
|
padding: 0 0.5rem;
|
|
@@ -942,70 +955,70 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
942
955
|
::placeholder {
|
|
943
956
|
color: ${({theme:e})=>e.colors.slate[400]};
|
|
944
957
|
}
|
|
945
|
-
`,
|
|
958
|
+
`,WT=Z(pn)`
|
|
946
959
|
display: flex;
|
|
947
960
|
flex: 1 0 100%;
|
|
948
961
|
font-size: 0.8rem;
|
|
949
962
|
color: ${({theme:e})=>e.colors.slate[500]};
|
|
950
|
-
`,
|
|
963
|
+
`,YT=Z(qa)`
|
|
951
964
|
display: flex;
|
|
952
965
|
flex-direction: column;
|
|
953
966
|
width: 100%;
|
|
954
967
|
flex: 1;
|
|
955
968
|
color: ${({theme:e})=>e.colors.slate[900]};
|
|
956
|
-
`,
|
|
969
|
+
`,qT=Z(qa)`
|
|
957
970
|
display: flex;
|
|
958
971
|
flex-direction: row;
|
|
959
972
|
flex-wrap: wrap;
|
|
960
973
|
flex: 1 0 100%;
|
|
961
974
|
color: ${({theme:e})=>e.colors.slate[900]};
|
|
962
|
-
`,
|
|
975
|
+
`,ZT=Z(Ko)`
|
|
963
976
|
display: flex;
|
|
964
977
|
flex: 1 0 100%;
|
|
965
978
|
color: ${({theme:e})=>e.colors.red[500]};
|
|
966
979
|
font-size: 0.8rem;
|
|
967
|
-
`,
|
|
980
|
+
`,XT=Z(Vr)`
|
|
968
981
|
display: flex;
|
|
969
982
|
flex: 1 0 100%;
|
|
970
983
|
color: ${({theme:e})=>e.colors.slate[500]};
|
|
971
984
|
font-size: 0.8rem;
|
|
972
|
-
`;function
|
|
985
|
+
`;function u$({description:e,errorMessage:t,isDisabled:n=!1,isInvalid:r=!1,isMasked:o=!1,isRequired:i=!0,label:a,length:s=6,name:l,onChange:c,value:d="",type:f="numeric",validationBehavior:p="native",...h}){u.useState(-1);const[m,b]=u.useState(d),[g,$]=u.useState(Array(s).fill("")),C=u.useRef([]);u.useEffect(()=>{C.current=C.current.slice(0,s)},[s]),u.useEffect(()=>{const A=g.join("");b(A),c&&c(A)},[c,g]);const x=A=>{var M,k;const V=A.target.value,y=Number(A.target.getAttribute("data-pin-input-index"));V!==""&&y<g.length-1&&((k=(M=C.current)==null?void 0:M[y+1])==null||k.focus());const I=g.map((R,S)=>S===y?V:R);$(I)},E=A=>{var M,k,R,S;const V=Number(A.currentTarget.getAttribute("data-pin-input-index"));if(A.ctrlKey||A.metaKey)return;const y=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Control","Alt","Meta","Shift","Tab","Enter","Escape"],I={alpha:/^[a-z]$/i,alphanumeric:/^[a-z0-9]$/i,numeric:/^[0-9]$/i};if(!A.key.match(I[f])&&!y.includes(A.key)&&A.preventDefault(),g[V]===""&&V>0&&A.key==="Backspace"){const F=g.map((K,L)=>L===V-1?"":K);$(F),(k=(M=C.current)==null?void 0:M[V-1])==null||k.focus(),A.preventDefault()}if(g[V]===""&&V<g.length-1&&A.key==="Delete"){const F=g.map((K,L)=>L===V+1?"":K);$(F),(S=(R=C.current)==null?void 0:R[V+1])==null||S.focus(),A.preventDefault()}},w=A=>{var S,F;const V=Number(A.currentTarget.getAttribute("data-pin-input-index"));A.preventDefault();const y=(S=A.clipboardData)==null?void 0:S.getData("text");if(!y)return;const I=y.split("").filter(K=>{switch(f){case"alpha":return/^[a-zA-Z]$/.test(K);case"alphanumeric":return/^[a-z0-9]$/i.test(K);case"numeric":default:return/^[0-9]$/.test(K)}});if(I.length===0)return;const M=[...g];let k=V;for(let K=0;K<I.length&&V+K<s;K++)M[V+K]=I[K],k=V+K;$(M);const R=k+1<s?k+1:s-1;(F=C.current[R])==null||F.focus()};return O.jsxs(HT,{...h,"aria-label":a,children:[O.jsx(WT,{children:a}),g.map((A,V)=>O.jsx(YT,{"aria-label":`Pin Input Digit ${V+1}`,isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:O.jsx(GT,{onChange:x,onKeyDown:E,onPaste:w,type:o?"password":"text",ref:y=>y?C.current[V]=y:null,value:A,maxLength:1,name:l&&`${l}-${V}`,"data-pin-input-index":V})},`pin-input-${V}`)),O.jsxs(qT,{"aria-label":"Pin Input",isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:[l&&O.jsx(jo,{type:"hidden",name:l,value:m}),e&&O.jsx(XT,{slot:"description",children:e}),O.jsx(ZT,{children:t})]})]})}u$.defaultProps={description:void 0,errorMessage:void 0,isMasked:!1,isRequired:!0,label:void 0,length:6,name:"",onChange:()=>{},value:"",type:"numeric",validationBehavior:"native"};const JT=Z(X4)`
|
|
973
986
|
display: flex;
|
|
974
|
-
`,
|
|
987
|
+
`,QT=Z.div`
|
|
975
988
|
display: flex;
|
|
976
989
|
flex-direction: column;
|
|
977
990
|
align-items: center;
|
|
978
|
-
`,
|
|
991
|
+
`,eA=Z(pn)`
|
|
979
992
|
font-size: 0.875rem;
|
|
980
|
-
`,
|
|
993
|
+
`,tA=Z.circle`
|
|
981
994
|
stroke: ${({theme:e})=>e.colors.slate[300]};
|
|
982
|
-
`,
|
|
995
|
+
`,nA=Z.circle`
|
|
983
996
|
stroke: ${({theme:e})=>e.colors.slate[800]};
|
|
984
997
|
transition: stroke-dashoffset 600ms ease-in-out;
|
|
985
|
-
`,
|
|
998
|
+
`,rA=Z.text`
|
|
986
999
|
font-size: 0.875rem;
|
|
987
1000
|
fill: ${({theme:e})=>e.colors.slate[800]};
|
|
988
|
-
`;function
|
|
1001
|
+
`;function oA({label:e,value:t=0,showValue:n=!0,size:r=60,strokeWidth:o=6,...i}){const a=r/2,s=a-o,l=2*Math.PI*s;return O.jsx(JT,{"aria-label":"Loading...",...i,value:t,children:({percentage:c=0})=>O.jsxs(QT,{children:[O.jsx(eA,{children:e}),O.jsxs("svg",{width:r,height:r,fill:"none",children:[O.jsx(tA,{cx:a,cy:a,r:s,strokeWidth:o}),O.jsx(nA,{cx:a,cy:a,r:s,strokeWidth:o,strokeDasharray:`${l} ${l}`,strokeDashoffset:(100-c)/100*l,strokeLinecap:"round",transform:`rotate(-90 ${a} ${a})`}),n&&O.jsxs(rA,{x:"50%",y:"50%",alignmentBaseline:"middle",textAnchor:"middle",children:[c,"%"]})]})]})})}const iA=Z(X4)`
|
|
989
1002
|
width: ${({width:e})=>e||"100%"};
|
|
990
1003
|
overflow: hidden;
|
|
991
|
-
`,
|
|
1004
|
+
`,aA=Z.div`
|
|
992
1005
|
display: flex;
|
|
993
1006
|
align-items: center;
|
|
994
1007
|
justify-content: space-between;
|
|
995
1008
|
gap: 0.5rem;
|
|
996
1009
|
margin-bottom: 0.3rem;
|
|
997
|
-
`,
|
|
1010
|
+
`,sA=Z(pn)`
|
|
998
1011
|
font-size: 0.875rem;
|
|
999
|
-
`,
|
|
1012
|
+
`,lA=Z.span`
|
|
1000
1013
|
font-size: 0.875rem;
|
|
1001
|
-
`,
|
|
1014
|
+
`,uA=Z.div`
|
|
1002
1015
|
forced-color-adjust: none;
|
|
1003
1016
|
height: 0.625rem;
|
|
1004
1017
|
border-radius: 0.3rem;
|
|
1005
1018
|
overflow: hidden;
|
|
1006
1019
|
will-change: transform;
|
|
1007
1020
|
background: ${({theme:e})=>e.colors.slate[300]};
|
|
1008
|
-
`,
|
|
1021
|
+
`,cA=Z.div`
|
|
1009
1022
|
width: ${({width:e,isIndeterminate:t})=>t?"40%":e};
|
|
1010
1023
|
transition: ${({isIndeterminate:e})=>e?"none":"width 600ms ease-in-out"};
|
|
1011
1024
|
height: 100%;
|
|
@@ -1022,22 +1035,22 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1022
1035
|
transform: translateX(250px);
|
|
1023
1036
|
}
|
|
1024
1037
|
}
|
|
1025
|
-
`;function
|
|
1038
|
+
`;function dA({label:e,isIndeterminate:t,showValue:n=!0,width:r,...o}){return O.jsx(iA,{...o,width:r,children:({percentage:i,valueText:a})=>O.jsxs(O.Fragment,{children:[O.jsxs(aA,{children:[O.jsx(sA,{children:e}),n&&O.jsx(lA,{children:a})]}),O.jsx(uA,{children:O.jsx(cA,{isIndeterminate:t,width:typeof i=="number"?`${i}%`:""})})]})})}const fA=Z(zS)`
|
|
1026
1039
|
display: flex;
|
|
1027
1040
|
flex-direction: column;
|
|
1028
1041
|
width: 100%;
|
|
1029
|
-
`,
|
|
1042
|
+
`,pA=Z.div`
|
|
1030
1043
|
display: flex;
|
|
1031
1044
|
position: relative;
|
|
1032
1045
|
width: 100%;
|
|
1033
|
-
`,
|
|
1046
|
+
`,hA=Jn(Z(N4)`
|
|
1034
1047
|
padding: 0.4rem 0;
|
|
1035
1048
|
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
1036
1049
|
border-radius: 0.375rem;
|
|
1037
1050
|
width: 14rem;
|
|
1038
1051
|
background: #fff;
|
|
1039
1052
|
border: 1px solid ${({theme:e})=>e.colors.slate[300]};
|
|
1040
|
-
`),
|
|
1053
|
+
`),mA=Z(jo).withConfig({shouldForwardProp:e=>!["isLoading"].includes(e)})`
|
|
1041
1054
|
border: 1px solid ${({theme:e})=>e.colors.slate[300]};
|
|
1042
1055
|
font-size: 0.9rem;
|
|
1043
1056
|
padding: 0 0.5rem;
|
|
@@ -1086,43 +1099,43 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1086
1099
|
::placeholder {
|
|
1087
1100
|
color: ${({theme:e})=>e.colors.slate[400]};
|
|
1088
1101
|
}
|
|
1089
|
-
`,
|
|
1102
|
+
`,bA=Z.svg.withConfig({shouldForwardProp:e=>!["isDisabled","isInvalid","isOpen"].includes(e)})`
|
|
1090
1103
|
transition: all ease 200ms;
|
|
1091
1104
|
transform: rotate(${({isOpen:e})=>e?"180deg":"0"});
|
|
1092
1105
|
|
|
1093
1106
|
path {
|
|
1094
1107
|
stroke: ${({isDisabled:e,isInvalid:t,theme:n})=>t?n.colors.red[500]:e?n.colors.slate[400]:n.colors.slate[900]};
|
|
1095
1108
|
}
|
|
1096
|
-
`,
|
|
1109
|
+
`,gA=Z.div`
|
|
1097
1110
|
position: absolute;
|
|
1098
1111
|
display: block;
|
|
1099
1112
|
top: 0.5rem;
|
|
1100
1113
|
right: 0.5rem;
|
|
1101
|
-
`,
|
|
1114
|
+
`,vA=Z(F4)`
|
|
1102
1115
|
position: absolute;
|
|
1103
1116
|
display: block;
|
|
1104
1117
|
top: 0.5rem;
|
|
1105
1118
|
right: 0;
|
|
1106
1119
|
border: none;
|
|
1107
1120
|
background: none;
|
|
1108
|
-
`,
|
|
1121
|
+
`,yA=Z(pn)`
|
|
1109
1122
|
display: flex;
|
|
1110
1123
|
font-size: 0.8rem;
|
|
1111
1124
|
color: ${({theme:e})=>e.colors.slate[500]};
|
|
1112
|
-
`;
|
|
1125
|
+
`;Z(qa)`
|
|
1113
1126
|
display: flex;
|
|
1114
1127
|
flex-direction: column;
|
|
1115
1128
|
width: 100%;
|
|
1116
1129
|
color: ${({theme:e})=>e.colors.slate[900]};
|
|
1117
|
-
`;const
|
|
1130
|
+
`;const $A=Z(Ko)`
|
|
1118
1131
|
display: flex;
|
|
1119
1132
|
color: ${({theme:e})=>e.colors.red[500]};
|
|
1120
1133
|
font-size: 0.8rem;
|
|
1121
|
-
`,
|
|
1134
|
+
`,xA=Z(Vr)`
|
|
1122
1135
|
display: flex;
|
|
1123
1136
|
color: ${({theme:e})=>e.colors.slate[500]};
|
|
1124
1137
|
font-size: 0.8rem;
|
|
1125
|
-
`,
|
|
1138
|
+
`,wA=Z(kS)`
|
|
1126
1139
|
display: flex;
|
|
1127
1140
|
flex: 1 1 auto;
|
|
1128
1141
|
align-items: center;
|
|
@@ -1165,11 +1178,11 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1165
1178
|
background: none;
|
|
1166
1179
|
color: ${({theme:e})=>e.colors.slate[500]};
|
|
1167
1180
|
}
|
|
1168
|
-
`;function
|
|
1181
|
+
`;function CA(e){return O.jsx(wA,{...e})}const EA=rt`
|
|
1169
1182
|
100% {
|
|
1170
1183
|
transform: rotate(360deg);
|
|
1171
1184
|
}
|
|
1172
|
-
`,
|
|
1185
|
+
`,DA=rt`
|
|
1173
1186
|
0% {
|
|
1174
1187
|
stroke-dasharray: 1, 200;
|
|
1175
1188
|
stroke-dashoffset: 0;
|
|
@@ -1182,7 +1195,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1182
1195
|
stroke-dasharray: 89, 200;
|
|
1183
1196
|
stroke-dashoffset: -124px;
|
|
1184
1197
|
}
|
|
1185
|
-
`,
|
|
1198
|
+
`,PA=Z.div`
|
|
1186
1199
|
position: relative;
|
|
1187
1200
|
margin: 0;
|
|
1188
1201
|
width: ${({width:e})=>e}px;
|
|
@@ -1191,8 +1204,8 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1191
1204
|
display: block;
|
|
1192
1205
|
padding-top: 100%;
|
|
1193
1206
|
}
|
|
1194
|
-
|
|
1195
|
-
animation: ${
|
|
1207
|
+
`,SA=Z.svg`
|
|
1208
|
+
animation: ${EA} 2s linear infinite;
|
|
1196
1209
|
height: 100%;
|
|
1197
1210
|
transform-origin: center center;
|
|
1198
1211
|
width: 100%;
|
|
@@ -1202,12 +1215,12 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1202
1215
|
left: 0;
|
|
1203
1216
|
right: 0;
|
|
1204
1217
|
margin: auto;
|
|
1205
|
-
`,
|
|
1218
|
+
`,TA=Z.circle`
|
|
1206
1219
|
stroke: ${({stroke:e})=>e};
|
|
1207
1220
|
stroke-dasharray: 1, 200;
|
|
1208
1221
|
stroke-dashoffset: 0;
|
|
1209
|
-
animation: ${
|
|
1210
|
-
`;function
|
|
1222
|
+
animation: ${DA} 1.5s ease-in-out infinite;
|
|
1223
|
+
`;function AA({width:e,stroke:t,strokeLinecap:n="round",strokeWidth:r=5,...o}){return O.jsx(PA,{width:e,...o,children:O.jsx(SA,{viewBox:"25 25 50 50",children:O.jsx(TA,{className:"path",cx:"50",cy:"50",fill:"none",r:"20",stroke:t,strokeLinecap:n,strokeMiterlimit:"10",strokeWidth:r})})})}const kA=rt`
|
|
1211
1224
|
0% {
|
|
1212
1225
|
transform: scale(1);
|
|
1213
1226
|
opacity: 1;
|
|
@@ -1220,19 +1233,19 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1220
1233
|
transform: scale(1);
|
|
1221
1234
|
opacity: 1;
|
|
1222
1235
|
}
|
|
1223
|
-
`,Xs=
|
|
1236
|
+
`,Xs=Z.span`
|
|
1224
1237
|
background-color: ${({theme:e})=>e.colors.slate[300]};
|
|
1225
1238
|
display: inline-block;
|
|
1226
1239
|
width: 0.5rem;
|
|
1227
1240
|
height: 0.5rem;
|
|
1228
1241
|
margin: 0.1rem;
|
|
1229
1242
|
border-radius: 0.5rem;
|
|
1230
|
-
animation: ${
|
|
1243
|
+
animation: ${kA}
|
|
1231
1244
|
${({speedMultiplier:e})=>.75/e}s
|
|
1232
1245
|
${({i:e,speedMultiplier:t})=>e*.12/t}s infinite
|
|
1233
1246
|
cubic-bezier(0.2, 0.68, 0.18, 1.08);
|
|
1234
1247
|
animation-fill-mode: both;
|
|
1235
|
-
`;function
|
|
1248
|
+
`;function c$(){return O.jsxs("span",{children:[O.jsx(Xs,{speedMultiplier:1,i:1}),O.jsx(Xs,{speedMultiplier:1,i:2}),O.jsx(Xs,{speedMultiplier:1,i:3})]})}function d$({label:e,description:t,errorMessage:n,children:r,placeholder:o,key:i,isLoading:a,...s}){const[l,c]=u.useState("unmounted"),d=u.useRef(null),[f,p]=u.useState(!1);return O.jsxs(fA,{ref:d,onOpenChange:()=>{c(l==="visible"?"hidden":"visible"),p(!f)},isDisabled:s.isDisabled||a,...s,children:[O.jsx(yA,{children:e}),O.jsxs(pA,{children:[O.jsx(mA,{placeholder:o,isLoading:a??!1}),a?O.jsx(gA,{children:O.jsx(c$,{})}):O.jsx(vA,{children:O.jsx(bA,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",isOpen:l==="visible",isDisabled:!!s.isDisabled,isInvalid:!!s.isInvalid,children:O.jsx("path",{d:"M6 9L12 15L18 9",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t&&O.jsx(xA,{slot:"description",children:t}),O.jsx($A,{children:n}),O.jsx(hA,{isOpen:f,style:{width:d.current?d.current.getBoundingClientRect().width:"14rem"},isExiting:l==="hidden",onAnimationComplete:h=>{c(m=>h==="hidden"&&m==="hidden"?"unmounted":m)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:l,children:O.jsx(PS,{style:{maxHeight:"20rem",overflowY:"scroll"},children:r})},i)]})}d$.defaultProps={label:void 0,description:void 0,errorMessage:void 0,placeholder:"",key:void 0,isLoading:!1};const MA=Z(y9)`
|
|
1236
1249
|
--label-color: ${({theme:e})=>e.colors.slate[500]};
|
|
1237
1250
|
--track-background: ${({theme:e})=>e.colors.slate[300]};
|
|
1238
1251
|
--thumb-background: ${({theme:e})=>e.colors.slate[300]};
|
|
@@ -1258,19 +1271,19 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1258
1271
|
height: 100%;
|
|
1259
1272
|
width: 2rem;
|
|
1260
1273
|
}
|
|
1261
|
-
`,
|
|
1274
|
+
`,RA=Z(pn)`
|
|
1262
1275
|
display: flex;
|
|
1263
1276
|
flex: 1 1 0;
|
|
1264
1277
|
font-size: 0.8rem;
|
|
1265
1278
|
color: var(--label-color);
|
|
1266
|
-
`,
|
|
1279
|
+
`,FA=Z(x9)`
|
|
1267
1280
|
display: flex;
|
|
1268
1281
|
flex: 0 1 0;
|
|
1269
1282
|
margin-left: auto;
|
|
1270
1283
|
justify-content: flex-end;
|
|
1271
1284
|
font-size: 0.8rem;
|
|
1272
1285
|
color: var(--label-color);
|
|
1273
|
-
`,nu=
|
|
1286
|
+
`,nu=Z(D9)`
|
|
1274
1287
|
background-color: var(--thumb-background);
|
|
1275
1288
|
border: 2px solid var(--thumb-border-color);
|
|
1276
1289
|
forced-color-adjust: none;
|
|
@@ -1287,7 +1300,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1287
1300
|
&[data-dragging] {
|
|
1288
1301
|
background-color: var(--thumb-background-dragging);
|
|
1289
1302
|
}
|
|
1290
|
-
`,
|
|
1303
|
+
`,BA=Z(C9)`
|
|
1291
1304
|
width: 100%;
|
|
1292
1305
|
transition: all ease 0.25s;
|
|
1293
1306
|
|
|
@@ -1330,7 +1343,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1330
1343
|
left: 50%;
|
|
1331
1344
|
}
|
|
1332
1345
|
}
|
|
1333
|
-
`;function
|
|
1346
|
+
`;function f$({label:e,showOutput:t=!0,thumbLabels:n,...r}){return O.jsxs(MA,{...r,children:[O.jsx(RA,{children:e}),t&&O.jsx(FA,{children:({state:o})=>o.values.map((i,a)=>o.getThumbValueLabel(a)).join(" – ")}),O.jsx(BA,{children:({state:o})=>o.values.map((i,a)=>O.jsx(nu,{index:a,"aria-label":n==null?void 0:n[a]},a))})]})}f$.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const Xt=Z.div`
|
|
1334
1347
|
width: 4rem;
|
|
1335
1348
|
height: 2.5rem;
|
|
1336
1349
|
border: 1px solid ${({theme:e})=>e.colors.slate[300]};
|
|
@@ -1348,7 +1361,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1348
1361
|
border-radius: 1.25rem;
|
|
1349
1362
|
transition: all cubic-bezier(0.4, 0, 0.2, 1) 200ms;
|
|
1350
1363
|
}
|
|
1351
|
-
`,
|
|
1364
|
+
`,IA=Z(T9)`
|
|
1352
1365
|
display: flex;
|
|
1353
1366
|
align-items: center;
|
|
1354
1367
|
gap: 0.5rem;
|
|
@@ -1402,7 +1415,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1402
1415
|
}
|
|
1403
1416
|
}
|
|
1404
1417
|
}
|
|
1405
|
-
`;function
|
|
1418
|
+
`;function OA({children:e,...t}){return O.jsxs(IA,{...t,children:[O.jsx(Xt,{}),e]})}const LA=Z(M9)`
|
|
1406
1419
|
width: 100%;
|
|
1407
1420
|
display: flex;
|
|
1408
1421
|
flex-direction: column;
|
|
@@ -1411,7 +1424,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1411
1424
|
&[data-orientation='vertical'] {
|
|
1412
1425
|
flex-direction: row;
|
|
1413
1426
|
}
|
|
1414
|
-
`,
|
|
1427
|
+
`,VA=Z(B9)`
|
|
1415
1428
|
width: 100%;
|
|
1416
1429
|
position: relative;
|
|
1417
1430
|
display: flex;
|
|
@@ -1459,7 +1472,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1459
1472
|
}
|
|
1460
1473
|
}
|
|
1461
1474
|
`;default:return null}}}
|
|
1462
|
-
`,
|
|
1475
|
+
`,p$=Z(O9)`
|
|
1463
1476
|
position: relative;
|
|
1464
1477
|
z-index: 3;
|
|
1465
1478
|
display: flex;
|
|
@@ -1492,7 +1505,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1492
1505
|
&[data-disabled] {
|
|
1493
1506
|
opacity: 0.5;
|
|
1494
1507
|
}
|
|
1495
|
-
`,
|
|
1508
|
+
`,NA=Z(Jn.span).attrs({className:"tab-overlay"})`
|
|
1496
1509
|
position: absolute;
|
|
1497
1510
|
z-index: 1;
|
|
1498
1511
|
|
|
@@ -1532,13 +1545,13 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1532
1545
|
`;case"base":default:return Pt`
|
|
1533
1546
|
display: none;
|
|
1534
1547
|
`}}}
|
|
1535
|
-
`,
|
|
1548
|
+
`,_A=Z(N9)`
|
|
1536
1549
|
display: flex;
|
|
1537
1550
|
flex-grow: 1;
|
|
1538
1551
|
padding: 1rem 0;
|
|
1539
|
-
`,Za=u.createContext("horizontal");function
|
|
1552
|
+
`,Za=u.createContext("horizontal");function KA({children:e,...t}){return O.jsx(Za.Provider,{value:t.orientation??"horizontal",children:O.jsx(LA,{...t,children:e})})}function jA({variant:e="base",...t}){const n=u.useContext(Za);return O.jsx(p$,{orientation:n,variant:e,...t,children:({isSelected:r,isFocusVisible:o})=>O.jsxs(O.Fragment,{children:[t.children,(o||r)&&O.jsx(NA,{orientation:n,layoutId:e,variant:e,transition:{type:"spring",bounce:.2,duration:.75}})]})})}function zA({items:e,children:t,variant:n="base",...r}){const o=u.useContext(Za);return O.jsx(VA,{items:e,variant:n,...r,children:t||(i=>O.jsx(p$,{orientation:o,children:i.title}))})}function UA({children:e,...t}){return O.jsx(_A,{...t,children:e})}const HA=Z(YS)`
|
|
1540
1553
|
color: ${({theme:e})=>e.colors.slate[900]};
|
|
1541
|
-
`,
|
|
1554
|
+
`,GA=Z(z4)`
|
|
1542
1555
|
display: flex;
|
|
1543
1556
|
align-items: center;
|
|
1544
1557
|
border: 1px solid ${({theme:e})=>e.colors.slate[300]};
|
|
@@ -1580,7 +1593,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1580
1593
|
outline: 2px solid ${({theme:e})=>e.colors.red[200]};
|
|
1581
1594
|
}
|
|
1582
1595
|
}
|
|
1583
|
-
`,
|
|
1596
|
+
`,WA=Z(U4)`
|
|
1584
1597
|
padding: 0.25rem;
|
|
1585
1598
|
font-variant-numeric: tabular-nums;
|
|
1586
1599
|
text-align: end;
|
|
@@ -1629,19 +1642,19 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1629
1642
|
color: ${({theme:e})=>e.colors.white};
|
|
1630
1643
|
}
|
|
1631
1644
|
}
|
|
1632
|
-
`,
|
|
1645
|
+
`,YA=Z(pn)`
|
|
1633
1646
|
display: flex;
|
|
1634
1647
|
font-size: 0.8rem;
|
|
1635
1648
|
color: ${({theme:e})=>e.colors.slate[500]};
|
|
1636
|
-
`,
|
|
1649
|
+
`,qA=Z(Ko)`
|
|
1637
1650
|
display: flex;
|
|
1638
1651
|
color: ${({theme:e})=>e.colors.red[500]};
|
|
1639
1652
|
font-size: 0.8rem;
|
|
1640
|
-
`,
|
|
1653
|
+
`,ZA=Z(Vr)`
|
|
1641
1654
|
display: flex;
|
|
1642
1655
|
color: ${({theme:e})=>e.colors.slate[500]};
|
|
1643
1656
|
font-size: 0.8rem;
|
|
1644
|
-
`;function
|
|
1657
|
+
`;function h$({label:e,description:t,errorMessage:n,...r}){return O.jsxs(HA,{...r,children:[O.jsx(YA,{children:e}),O.jsx(GA,{children:o=>O.jsx(WA,{segment:o})}),O.jsx(ZA,{slot:"description",children:t}),O.jsx(qA,{children:n})]})}h$.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const XA=Z(H9)`
|
|
1645
1658
|
display: flex;
|
|
1646
1659
|
align-items: center;
|
|
1647
1660
|
font-size: 0.9rem;
|
|
@@ -1675,7 +1688,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1675
1688
|
border-color: ${({variant:e,theme:t})=>{switch(e){case"ghost":return"transparent";case"outline":return t.colors.slate[200];case"solid":default:return t.colors.slate[100]}}};
|
|
1676
1689
|
color: ${({variant:e,theme:t})=>{switch(e){case"ghost":case"outline":return t.colors.slate[500];case"solid":default:return t.colors.slate[400]}}};
|
|
1677
1690
|
}
|
|
1678
|
-
`;function
|
|
1691
|
+
`;function JA({children:e,size:t="md",variant:n="solid",...r}){return O.jsx(XA,{...r,size:t,variant:n,children:e})}var QA=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(t==null?void 0:t[e])||{}},ek=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],lh=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e};function tk(e){const[t,n]=w0(e,Dd.variantKeys),{ref:r,as:o,isOpen:i,content:a,children:s,defaultOpen:l,onOpenChange:c,isDisabled:d,trigger:f,shouldFlip:p=!0,containerPadding:h=12,placement:m="top",delay:b=0,closeDelay:g=500,showArrow:$=!1,offset:C=7,crossOffset:x=0,isDismissable:E,shouldCloseOnBlur:w=!0,portalContainer:A,isKeyboardDismissDisabled:V=!1,updatePositionDeps:y=[],shouldCloseOnInteractOutside:I,className:M,onClose:k,motionProps:R,classNames:S,...F}=t,K=o||"div",L=L8({delay:b,closeDelay:g,isDisabled:d,defaultOpen:l,isOpen:i,onOpenChange:q=>{c==null||c(q),q||k==null||k()}}),P=u.useRef(null),W=u.useRef(null),J=u.useId(),G=L.isOpen&&!d;u.useImperativeHandle(r,()=>M3(W));const{triggerProps:D,tooltipProps:T}=c8({isDisabled:d,trigger:f},L,P),{tooltipProps:z}=u8({isOpen:G,...oe(t,T)},L),{overlayProps:H,placement:X,updatePosition:N}=b0({isOpen:G,targetRef:P,placement:ek(m),overlayRef:W,offset:$?C+3:C,crossOffset:x,shouldFlip:p,containerPadding:h});em(()=>{y.length&&N()},y);const{overlayProps:j}=Bu({isOpen:G,onClose:L.close,isDismissable:E,shouldCloseOnBlur:w,isKeyboardDismissDisabled:V,shouldCloseOnInteractOutside:I},W),_=u.useMemo(()=>{var q,he,re;return Dd({...n,radius:(q=e==null?void 0:e.radius)!=null?q:"md",size:(he=e==null?void 0:e.size)!=null?he:"md",shadow:(re=e==null?void 0:e.shadow)!=null?re:"sm"})},[...Object.values(n),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),Q=u.useCallback((q={},he=null)=>({...oe(D,q),ref:L3(he,P),"aria-describedby":G?J:void 0}),[D,G,J,L]),ne=u.useCallback(()=>({ref:W,"data-slot":"base","data-open":Kt(G),"data-arrow":Kt($),"data-disabled":Kt(d),"data-placement":lh(X,m),...oe(z,j,F),style:oe(H.style,F.style,t.style),className:_.base({class:S==null?void 0:S.base}),id:J}),[_,G,$,d,X,m,z,j,F,H,t,J]),ee=u.useCallback(()=>({"data-slot":"content","data-open":Kt(G),"data-arrow":Kt($),"data-disabled":Kt(d),"data-placement":lh(X,m),className:_.content({class:mo(S==null?void 0:S.content,M)})}),[_,G,$,d,X,m,S]);return{Component:K,content:a,children:s,isOpen:G,triggerRef:P,showArrow:$,portalContainer:A,placement:m,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:d,motionProps:R,getTooltipContentProps:ee,getTriggerProps:Q,getTooltipProps:ne}}var lr={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},nk={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.3}},exit:{transform:"scale(0.6)",opacity:0,transition:{type:"easeOut",duration:.2}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.7)",transition:{type:"easeOut",bounce:0,duration:.18}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:lr.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:lr.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:lr.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:lr.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:lr.ease}},exit:{opacity:0,transition:{duration:.3,ease:lr.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},m$=ka((e,t)=>{const{Component:n,children:r,content:o,isOpen:i,portalContainer:a,placement:s,disableAnimation:l,motionProps:c,getTriggerProps:d,getTooltipProps:f,getTooltipContentProps:p}=tk({...e,ref:t});let h;try{const x=u.Children.only(r);h=u.cloneElement(x,d(x.props,x.ref))}catch{h=O.jsx("span",{}),F3("Tooltip must have only one child node. Please, check your code.")}const{ref:m,id:b,style:g,...$}=f(),C=O.jsx("div",{ref:m,id:b,style:g,children:O.jsx(Jn.div,{animate:"enter",exit:"exit",initial:"exit",variants:nk.scaleSpring,...oe(c,$),style:{...QA(s)},children:O.jsx(n,{...p(),children:o})})});return O.jsxs(O.Fragment,{children:[h,l&&i?O.jsx(gf,{portalContainer:a,children:O.jsx("div",{ref:m,id:b,style:g,...$,children:O.jsx(n,{...p(),children:o})})}):O.jsx(ig,{children:i?O.jsx(gf,{portalContainer:a,children:C}):null})]})});m$.displayName="NextUI.Tooltip";var rk=m$;const ok=Z(rk).attrs({className:"tooltip"})`
|
|
1679
1692
|
z-index: 0;
|
|
1680
1693
|
position: relative;
|
|
1681
1694
|
background-color: transparent;
|
|
@@ -1796,7 +1809,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1796
1809
|
border-radius: 0.375rem;
|
|
1797
1810
|
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1798
1811
|
}
|
|
1799
|
-
`;function JA({children:e,...t}){return O.jsx(XA,{classNames:{base:["tooltip"],content:["tooltip-content"]},...t,children:e})}function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_e.apply(this,arguments)}function p1(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...m}=f,b=(p==null?void 0:p[e][l])||s,v=u.useMemo(()=>m,Object.values(m));return u.createElement(b.Provider,{value:v},h)}function d(f,p){const h=(p==null?void 0:p[e][l])||s,m=u.useContext(h);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(a=>u.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,QA(o,...t)]}function QA(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function qe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ek(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Lc(...e){return t=>e.forEach(n=>ek(n,t))}function cn(...e){return u.useCallback(Lc(...e),e)}const ya=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(nk);if(i){const a=i.props.children,s=o.map(l=>l===i?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:l);return u.createElement(ru,_e({},r,{ref:t}),u.isValidElement(a)?u.cloneElement(a,void 0,s):null)}return u.createElement(ru,_e({},r,{ref:t}),n)});ya.displayName="Slot";const ru=u.forwardRef((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...rk(r,n.props),ref:t?Lc(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});ru.displayName="SlotClone";const tk=({children:e})=>u.createElement(u.Fragment,null,e);function nk(e){return u.isValidElement(e)&&e.type===tk}function rk(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const ok=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Mt=ok.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?ya:t;return u.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),u.createElement(s,_e({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ou(e,t){e&&dn.flushSync(()=>e.dispatchEvent(t))}function St(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function ik({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=ak({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=St(n),l=u.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[i,e,o,s]);return[a,l]}function ak({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=St(t);return u.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const sk=u.createContext(void 0);function lk(e){const t=u.useContext(sk);return e||t||"ltr"}const Tr=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};function uk(e,t){return u.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Go=e=>{const{present:t,children:n}=e,r=ck(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),i=cn(r.ref,o.ref);return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:i}):null};Go.displayName="Presence";function ck(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),i=u.useRef("none"),a=e?"mounted":"unmounted",[s,l]=uk(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=Pi(r.current);i.current=s==="mounted"?c:"none"},[s]),Tr(()=>{const c=r.current,d=o.current;if(d!==e){const p=i.current,h=Pi(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Tr(()=>{if(t){const c=f=>{const h=Pi(r.current).includes(f.animationName);f.target===t&&h&&dn.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=Pi(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Pi(e){return(e==null?void 0:e.animationName)||"none"}const dk=We["useId".toString()]||(()=>{});let fk=0;function h1(e){const[t,n]=We.useState(dk());return Tr(()=>{e||n(r=>r??String(fk++))},[e]),e||(t?`radix-${t}`:"")}function m1(e){const t=e+"CollectionProvider",[n,r]=p1(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:m,children:b}=h,v=u.useRef(null),$=u.useRef(new Map).current;return u.createElement(o,{scope:m,itemMap:$,collectionRef:v},b)},s=e+"CollectionSlot",l=u.forwardRef((h,m)=>{const{scope:b,children:v}=h,$=i(s,b),C=cn(m,$.collectionRef);return u.createElement(ya,{ref:C},v)}),c=e+"CollectionItemSlot",d="data-radix-collection-item",f=u.forwardRef((h,m)=>{const{scope:b,children:v,...$}=h,C=u.useRef(null),x=cn(m,C),E=i(c,b);return u.useEffect(()=>(E.itemMap.set(C,{ref:C,...$}),()=>void E.itemMap.delete(C))),u.createElement(ya,{[d]:"",ref:x},v)});function p(h){const m=i(e+"CollectionConsumer",h);return u.useCallback(()=>{const v=m.collectionRef.current;if(!v)return[];const $=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(m.itemMap.values()).sort((E,w)=>$.indexOf(E.ref.current)-$.indexOf(w.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},p,r]}function pk(e,t=globalThis==null?void 0:globalThis.document){const n=St(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const iu="dismissableLayer.update",hk="dismissableLayer.pointerDownOutside",mk="dismissableLayer.focusOutside";let lh;const bk=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vk=u.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,d=u.useContext(bk),[f,p]=u.useState(null),h=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=u.useState({}),b=cn(t,y=>p(y)),v=Array.from(d.layers),[$]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=v.indexOf($),x=f?v.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,w=x>=C,A=gk(y=>{const I=y.target,M=[...d.branches].some(k=>k.contains(I));!w||M||(i==null||i(y),s==null||s(y),y.defaultPrevented||l==null||l())},h),V=yk(y=>{const I=y.target;[...d.branches].some(k=>k.contains(I))||(a==null||a(y),s==null||s(y),y.defaultPrevented||l==null||l())},h);return pk(y=>{x===d.layers.size-1&&(o==null||o(y),!y.defaultPrevented&&l&&(y.preventDefault(),l()))},h),u.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(lh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),uh(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=lh)}},[f,h,r,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),uh())},[f,d]),u.useEffect(()=>{const y=()=>m({});return document.addEventListener(iu,y),()=>document.removeEventListener(iu,y)},[]),u.createElement(Mt.div,_e({},c,{ref:b,style:{pointerEvents:E?w?"auto":"none":void 0,...e.style},onFocusCapture:qe(e.onFocusCapture,V.onFocusCapture),onBlurCapture:qe(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:qe(e.onPointerDownCapture,A.onPointerDownCapture)}))});function gk(e,t=globalThis==null?void 0:globalThis.document){const n=St(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let c=function(){b1(hk,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function yk(e,t=globalThis==null?void 0:globalThis.document){const n=St(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&b1(mk,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function uh(){const e=new CustomEvent(iu);document.dispatchEvent(e)}function b1(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ou(o,i):o.dispatchEvent(i)}function $k(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const xk=u.forwardRef((e,t)=>u.createElement(Mt.span,_e({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),wk=xk,Wo="NavigationMenu",[Vc,v1,Ck]=m1(Wo),[au,Ek,Dk]=m1(Wo),[Nc,CM]=p1(Wo,[Ck,Dk]),[Pk,Lt]=Nc(Wo),[Sk,Tk]=Nc(Wo),Ak=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:c,...d}=e,[f,p]=u.useState(null),h=cn(t,I=>p(I)),m=lk(c),b=u.useRef(0),v=u.useRef(0),$=u.useRef(0),[C,x]=u.useState(!0),[E="",w]=ik({prop:r,onChange:I=>{const M=I!=="",k=s>0;M?(window.clearTimeout($.current),k&&x(!1)):(window.clearTimeout($.current),$.current=window.setTimeout(()=>x(!0),s)),o==null||o(I)},defaultProp:i}),A=u.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>w(""),150)},[w]),V=u.useCallback(I=>{window.clearTimeout(v.current),w(I)},[w]),y=u.useCallback(I=>{E===I?window.clearTimeout(v.current):b.current=window.setTimeout(()=>{window.clearTimeout(v.current),w(I)},a)},[E,w,a]);return u.useEffect(()=>()=>{window.clearTimeout(b.current),window.clearTimeout(v.current),window.clearTimeout($.current)},[]),u.createElement(kk,{scope:n,isRootMenu:!0,value:E,dir:m,orientation:l,rootNavigationMenu:f,onTriggerEnter:I=>{window.clearTimeout(b.current),C?y(I):V(I)},onTriggerLeave:()=>{window.clearTimeout(b.current),A()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:A,onItemSelect:I=>{w(M=>M===I?"":I)},onItemDismiss:()=>w("")},u.createElement(Mt.nav,_e({"aria-label":"Main","data-orientation":l,dir:m},d,{ref:h})))}),kk=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:s,onItemSelect:l,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:f,onContentEnter:p,onContentLeave:h}=e,[m,b]=u.useState(null),[v,$]=u.useState(new Map),[C,x]=u.useState(null);return u.createElement(Pk,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:$k(s),baseId:h1(),dir:o,orientation:i,viewport:m,onViewportChange:b,indicatorTrack:C,onIndicatorTrackChange:x,onTriggerEnter:St(d),onTriggerLeave:St(f),onContentEnter:St(p),onContentLeave:St(h),onItemSelect:St(l),onItemDismiss:St(c),onViewportContentChange:u.useCallback((E,w)=>{$(A=>(A.set(E,w),new Map(A)))},[]),onViewportContentRemove:u.useCallback(E=>{$(w=>w.has(E)?(w.delete(E),new Map(w)):w)},[])},u.createElement(Vc.Provider,{scope:t},u.createElement(Sk,{scope:t,items:v},a)))},Mk="NavigationMenuList",Rk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lt(Mk,n),i=u.createElement(Mt.ul,_e({"data-orientation":o.orientation},r,{ref:t}));return u.createElement(Mt.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},u.createElement(Vc.Slot,{scope:n},o.isRootMenu?u.createElement(w1,{asChild:!0},i):i))}),Fk="NavigationMenuItem",[Bk,g1]=Nc(Fk),Ik=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=h1(),a=r||i||"LEGACY_REACT_AUTO_VALUE",s=u.useRef(null),l=u.useRef(null),c=u.useRef(null),d=u.useRef(()=>{}),f=u.useRef(!1),p=u.useCallback((m="start")=>{if(s.current){d.current();const b=su(s.current);b.length&&_c(m==="start"?b:b.reverse())}},[]),h=u.useCallback(()=>{if(s.current){const m=su(s.current);m.length&&(d.current=Gk(m))}},[]);return u.createElement(Bk,{scope:n,value:a,triggerRef:l,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h},u.createElement(Mt.li,_e({},o,{ref:t})))}),ch="NavigationMenuTrigger",Ok=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Lt(ch,e.__scopeNavigationMenu),a=g1(ch,e.__scopeNavigationMenu),s=u.useRef(null),l=cn(s,a.triggerRef,t),c=E1(i.baseId,a.value),d=D1(i.baseId,a.value),f=u.useRef(!1),p=u.useRef(!1),h=a.value===i.value;return u.createElement(u.Fragment,null,u.createElement(Vc.ItemSlot,{scope:n,value:a.value},u.createElement(C1,{asChild:!0},u.createElement(Mt.button,_e({id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":Kc(h),"aria-expanded":h,"aria-controls":d},o,{ref:l,onPointerEnter:qe(e.onPointerEnter,()=>{p.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:qe(e.onPointerMove,$a(()=>{r||p.current||a.wasEscapeCloseRef.current||f.current||(i.onTriggerEnter(a.value),f.current=!0)})),onPointerLeave:qe(e.onPointerLeave,$a(()=>{r||(i.onTriggerLeave(),f.current=!1)})),onClick:qe(e.onClick,()=>{i.onItemSelect(a.value),p.current=h}),onKeyDown:qe(e.onKeyDown,m=>{const v={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&m.key===v&&(a.onEntryKeyDown(),m.preventDefault())})})))),h&&u.createElement(u.Fragment,null,u.createElement(wk,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:m=>{const b=a.contentRef.current,v=m.relatedTarget,$=v===s.current,C=b==null?void 0:b.contains(v);($||!C)&&a.onFocusProxyEnter($?"start":"end")}}),i.viewport&&u.createElement("span",{"aria-owns":d})))}),dh="navigationMenu.linkSelect",Lk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return u.createElement(C1,{asChild:!0},u.createElement(Mt.a,_e({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:qe(e.onClick,a=>{const s=a.target,l=new CustomEvent(dh,{bubbles:!0,cancelable:!0});if(s.addEventListener(dh,c=>o==null?void 0:o(c),{once:!0}),ou(s,l),!l.defaultPrevented&&!a.metaKey){const c=new CustomEvent(Vi,{bubbles:!0,cancelable:!0});ou(s,c)}},{checkForDefaultPrevented:!1})})))}),y1="NavigationMenuIndicator",Vk=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Lt(y1,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?dn.createPortal(u.createElement(Go,{present:n||i},u.createElement(Nk,_e({},r,{ref:t}))),o.indicatorTrack):null}),Nk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lt(y1,n),i=v1(n),[a,s]=u.useState(null),[l,c]=u.useState(null),d=o.orientation==="horizontal",f=!!o.value;u.useEffect(()=>{var h;const b=(h=i().find(v=>v.value===o.value))===null||h===void 0?void 0:h.ref.current;b&&s(b)},[i,o.value]);const p=()=>{a&&c({size:d?a.offsetWidth:a.offsetHeight,offset:d?a.offsetLeft:a.offsetTop})};return lu(a,p),lu(o.indicatorTrack,p),l?u.createElement(Mt.div,_e({"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation},r,{ref:t,style:{position:"absolute",...d?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null}),Ao="NavigationMenuContent",_k=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Lt(Ao,e.__scopeNavigationMenu),i=g1(Ao,e.__scopeNavigationMenu),a=cn(i.contentRef,t),s=i.value===o.value,l={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?u.createElement(Kk,_e({forceMount:n},l,{ref:a})):u.createElement(Go,{present:n||s},u.createElement($1,_e({"data-state":Kc(s)},l,{ref:a,onPointerEnter:qe(e.onPointerEnter,o.onContentEnter),onPointerLeave:qe(e.onPointerLeave,$a(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),Kk=u.forwardRef((e,t)=>{const n=Lt(Ao,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Tr(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Tr(()=>()=>o(e.value),[e.value,o]),null}),Vi="navigationMenu.rootContentDismiss",$1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...c}=e,d=Lt(Ao,n),f=u.useRef(null),p=cn(f,t),h=E1(d.baseId,r),m=D1(d.baseId,r),b=v1(n),v=u.useRef(null),{onItemDismiss:$}=d;u.useEffect(()=>{const x=f.current;if(d.isRootMenu&&x){const E=()=>{var w;$(),s(),x.contains(document.activeElement)&&((w=o.current)===null||w===void 0||w.focus())};return x.addEventListener(Vi,E),()=>x.removeEventListener(Vi,E)}},[d.isRootMenu,e.value,o,$,s]);const C=u.useMemo(()=>{const E=b().map(M=>M.value);d.dir==="rtl"&&E.reverse();const w=E.indexOf(d.value),A=E.indexOf(d.previousValue),V=r===d.value,y=A===E.indexOf(r);if(!V&&!y)return v.current;const I=(()=>{if(w!==A){if(V&&A!==-1)return w>A?"from-end":"from-start";if(y&&w!==-1)return w>A?"to-start":"to-end"}return null})();return v.current=I,I},[d.previousValue,d.value,d.dir,b,r]);return u.createElement(w1,{asChild:!0},u.createElement(vk,_e({id:m,"aria-labelledby":h,"data-motion":C,"data-orientation":d.orientation},c,{ref:p,onDismiss:()=>{var x;const E=new Event(Vi,{bubbles:!0,cancelable:!0});(x=f.current)===null||x===void 0||x.dispatchEvent(E)},onFocusOutside:qe(e.onFocusOutside,x=>{var E;l();const w=x.target;(E=d.rootNavigationMenu)!==null&&E!==void 0&&E.contains(w)&&x.preventDefault()}),onPointerDownOutside:qe(e.onPointerDownOutside,x=>{var E;const w=x.target,A=b().some(y=>{var I;return(I=y.ref.current)===null||I===void 0?void 0:I.contains(w)}),V=d.isRootMenu&&((E=d.viewport)===null||E===void 0?void 0:E.contains(w));(A||V||!d.isRootMenu)&&x.preventDefault()}),onKeyDown:qe(e.onKeyDown,x=>{const E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){const V=su(x.currentTarget),y=document.activeElement,I=V.findIndex(R=>R===y),k=x.shiftKey?V.slice(0,I).reverse():V.slice(I+1,V.length);if(_c(k))x.preventDefault();else{var A;(A=i.current)===null||A===void 0||A.focus()}}}),onEscapeKeyDown:qe(e.onEscapeKeyDown,x=>{a.current=!0})})))}),x1="NavigationMenuViewport",jk=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!Lt(x1,e.__scopeNavigationMenu).value;return u.createElement(Go,{present:n||i},u.createElement(zk,_e({},r,{ref:t})))}),zk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=Lt(x1,n),a=cn(t,i.onViewportChange),s=Tk(Ao,e.__scopeNavigationMenu),[l,c]=u.useState(null),[d,f]=u.useState(null),p=l?(l==null?void 0:l.width)+"px":void 0,h=l?(l==null?void 0:l.height)+"px":void 0,m=!!i.value,b=m?i.value:i.previousValue;return lu(d,()=>{d&&c({width:d.offsetWidth,height:d.offsetHeight})}),u.createElement(Mt.div,_e({"data-state":Kc(m),"data-orientation":i.orientation},o,{ref:a,style:{pointerEvents:!m&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":h,...o.style},onPointerEnter:qe(e.onPointerEnter,i.onContentEnter),onPointerLeave:qe(e.onPointerLeave,$a(i.onContentLeave))}),Array.from(s.items).map(([$,{ref:C,forceMount:x,...E}])=>{const w=b===$;return u.createElement(Go,{key:$,present:x||w},u.createElement($1,_e({},E,{ref:Lc(C,A=>{w&&A&&f(A)})})))}))}),Uk="FocusGroup",w1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lt(Uk,n);return u.createElement(au.Provider,{scope:n},u.createElement(au.Slot,{scope:n},u.createElement(Mt.div,_e({dir:o.dir},r,{ref:t}))))}),fh=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Hk="FocusGroupItem",C1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ek(n),i=Lt(Hk,n);return u.createElement(au.ItemSlot,{scope:n},u.createElement(Mt.button,_e({},r,{ref:t,onKeyDown:qe(e.onKeyDown,a=>{if(["Home","End",...fh].includes(a.key)){let l=o().map(f=>f.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&l.reverse(),fh.includes(a.key)){const f=l.indexOf(a.currentTarget);l=l.slice(f+1)}setTimeout(()=>_c(l)),a.preventDefault()}})})))});function su(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _c(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function Gk(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function lu(e,t){const n=St(t);Tr(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function Kc(e){return e?"open":"closed"}function E1(e,t){return`${e}-trigger-${t}`}function D1(e,t){return`${e}-content-${t}`}function $a(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Wk=Ak,Yk=Rk,Js=Ik,qk=Ok,Zk=Lk,Xk=Vk,Jk=_k,Qk=jk,eM=rt`
|
|
1812
|
+
`;function ik({children:e,...t}){return O.jsx(ok,{classNames:{base:["tooltip"],content:["tooltip-content"]},...t,children:e})}function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_e.apply(this,arguments)}function b$(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...m}=f,b=(p==null?void 0:p[e][l])||s,g=u.useMemo(()=>m,Object.values(m));return u.createElement(b.Provider,{value:g},h)}function d(f,p){const h=(p==null?void 0:p[e][l])||s,m=u.useContext(h);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(a=>u.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,ak(o,...t)]}function ak(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function qe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function sk(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Lc(...e){return t=>e.forEach(n=>sk(n,t))}function cn(...e){return u.useCallback(Lc(...e),e)}const ya=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(uk);if(i){const a=i.props.children,s=o.map(l=>l===i?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:l);return u.createElement(ru,_e({},r,{ref:t}),u.isValidElement(a)?u.cloneElement(a,void 0,s):null)}return u.createElement(ru,_e({},r,{ref:t}),n)});ya.displayName="Slot";const ru=u.forwardRef((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...ck(r,n.props),ref:t?Lc(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});ru.displayName="SlotClone";const lk=({children:e})=>u.createElement(u.Fragment,null,e);function uk(e){return u.isValidElement(e)&&e.type===lk}function ck(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const dk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Mt=dk.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?ya:t;return u.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),u.createElement(s,_e({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ou(e,t){e&&dn.flushSync(()=>e.dispatchEvent(t))}function St(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function fk({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=pk({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=St(n),l=u.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[i,e,o,s]);return[a,l]}function pk({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=St(t);return u.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const hk=u.createContext(void 0);function mk(e){const t=u.useContext(hk);return e||t||"ltr"}const Tr=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};function bk(e,t){return u.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Go=e=>{const{present:t,children:n}=e,r=gk(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),i=cn(r.ref,o.ref);return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:i}):null};Go.displayName="Presence";function gk(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),i=u.useRef("none"),a=e?"mounted":"unmounted",[s,l]=bk(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=Pi(r.current);i.current=s==="mounted"?c:"none"},[s]),Tr(()=>{const c=r.current,d=o.current;if(d!==e){const p=i.current,h=Pi(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Tr(()=>{if(t){const c=f=>{const h=Pi(r.current).includes(f.animationName);f.target===t&&h&&dn.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=Pi(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Pi(e){return(e==null?void 0:e.animationName)||"none"}const vk=We["useId".toString()]||(()=>{});let yk=0;function g$(e){const[t,n]=We.useState(vk());return Tr(()=>{e||n(r=>r??String(yk++))},[e]),e||(t?`radix-${t}`:"")}function v$(e){const t=e+"CollectionProvider",[n,r]=b$(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:m,children:b}=h,g=u.useRef(null),$=u.useRef(new Map).current;return u.createElement(o,{scope:m,itemMap:$,collectionRef:g},b)},s=e+"CollectionSlot",l=u.forwardRef((h,m)=>{const{scope:b,children:g}=h,$=i(s,b),C=cn(m,$.collectionRef);return u.createElement(ya,{ref:C},g)}),c=e+"CollectionItemSlot",d="data-radix-collection-item",f=u.forwardRef((h,m)=>{const{scope:b,children:g,...$}=h,C=u.useRef(null),x=cn(m,C),E=i(c,b);return u.useEffect(()=>(E.itemMap.set(C,{ref:C,...$}),()=>void E.itemMap.delete(C))),u.createElement(ya,{[d]:"",ref:x},g)});function p(h){const m=i(e+"CollectionConsumer",h);return u.useCallback(()=>{const g=m.collectionRef.current;if(!g)return[];const $=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(m.itemMap.values()).sort((E,w)=>$.indexOf(E.ref.current)-$.indexOf(w.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},p,r]}function $k(e,t=globalThis==null?void 0:globalThis.document){const n=St(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const iu="dismissableLayer.update",xk="dismissableLayer.pointerDownOutside",wk="dismissableLayer.focusOutside";let uh;const Ck=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ek=u.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,d=u.useContext(Ck),[f,p]=u.useState(null),h=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=u.useState({}),b=cn(t,y=>p(y)),g=Array.from(d.layers),[$]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=g.indexOf($),x=f?g.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,w=x>=C,A=Dk(y=>{const I=y.target,M=[...d.branches].some(k=>k.contains(I));!w||M||(i==null||i(y),s==null||s(y),y.defaultPrevented||l==null||l())},h),V=Pk(y=>{const I=y.target;[...d.branches].some(k=>k.contains(I))||(a==null||a(y),s==null||s(y),y.defaultPrevented||l==null||l())},h);return $k(y=>{x===d.layers.size-1&&(o==null||o(y),!y.defaultPrevented&&l&&(y.preventDefault(),l()))},h),u.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(uh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),ch(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=uh)}},[f,h,r,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),ch())},[f,d]),u.useEffect(()=>{const y=()=>m({});return document.addEventListener(iu,y),()=>document.removeEventListener(iu,y)},[]),u.createElement(Mt.div,_e({},c,{ref:b,style:{pointerEvents:E?w?"auto":"none":void 0,...e.style},onFocusCapture:qe(e.onFocusCapture,V.onFocusCapture),onBlurCapture:qe(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:qe(e.onPointerDownCapture,A.onPointerDownCapture)}))});function Dk(e,t=globalThis==null?void 0:globalThis.document){const n=St(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let c=function(){y$(xk,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Pk(e,t=globalThis==null?void 0:globalThis.document){const n=St(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&y$(wk,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ch(){const e=new CustomEvent(iu);document.dispatchEvent(e)}function y$(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ou(o,i):o.dispatchEvent(i)}function Sk(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const Tk=u.forwardRef((e,t)=>u.createElement(Mt.span,_e({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Ak=Tk,Wo="NavigationMenu",[Vc,$$,kk]=v$(Wo),[au,Mk,Rk]=v$(Wo),[Nc,kM]=b$(Wo,[kk,Rk]),[Fk,Lt]=Nc(Wo),[Bk,Ik]=Nc(Wo),Ok=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:c,...d}=e,[f,p]=u.useState(null),h=cn(t,I=>p(I)),m=mk(c),b=u.useRef(0),g=u.useRef(0),$=u.useRef(0),[C,x]=u.useState(!0),[E="",w]=fk({prop:r,onChange:I=>{const M=I!=="",k=s>0;M?(window.clearTimeout($.current),k&&x(!1)):(window.clearTimeout($.current),$.current=window.setTimeout(()=>x(!0),s)),o==null||o(I)},defaultProp:i}),A=u.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>w(""),150)},[w]),V=u.useCallback(I=>{window.clearTimeout(g.current),w(I)},[w]),y=u.useCallback(I=>{E===I?window.clearTimeout(g.current):b.current=window.setTimeout(()=>{window.clearTimeout(g.current),w(I)},a)},[E,w,a]);return u.useEffect(()=>()=>{window.clearTimeout(b.current),window.clearTimeout(g.current),window.clearTimeout($.current)},[]),u.createElement(Lk,{scope:n,isRootMenu:!0,value:E,dir:m,orientation:l,rootNavigationMenu:f,onTriggerEnter:I=>{window.clearTimeout(b.current),C?y(I):V(I)},onTriggerLeave:()=>{window.clearTimeout(b.current),A()},onContentEnter:()=>window.clearTimeout(g.current),onContentLeave:A,onItemSelect:I=>{w(M=>M===I?"":I)},onItemDismiss:()=>w("")},u.createElement(Mt.nav,_e({"aria-label":"Main","data-orientation":l,dir:m},d,{ref:h})))}),Lk=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:s,onItemSelect:l,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:f,onContentEnter:p,onContentLeave:h}=e,[m,b]=u.useState(null),[g,$]=u.useState(new Map),[C,x]=u.useState(null);return u.createElement(Fk,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:Sk(s),baseId:g$(),dir:o,orientation:i,viewport:m,onViewportChange:b,indicatorTrack:C,onIndicatorTrackChange:x,onTriggerEnter:St(d),onTriggerLeave:St(f),onContentEnter:St(p),onContentLeave:St(h),onItemSelect:St(l),onItemDismiss:St(c),onViewportContentChange:u.useCallback((E,w)=>{$(A=>(A.set(E,w),new Map(A)))},[]),onViewportContentRemove:u.useCallback(E=>{$(w=>w.has(E)?(w.delete(E),new Map(w)):w)},[])},u.createElement(Vc.Provider,{scope:t},u.createElement(Bk,{scope:t,items:g},a)))},Vk="NavigationMenuList",Nk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lt(Vk,n),i=u.createElement(Mt.ul,_e({"data-orientation":o.orientation},r,{ref:t}));return u.createElement(Mt.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},u.createElement(Vc.Slot,{scope:n},o.isRootMenu?u.createElement(D$,{asChild:!0},i):i))}),_k="NavigationMenuItem",[Kk,x$]=Nc(_k),jk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=g$(),a=r||i||"LEGACY_REACT_AUTO_VALUE",s=u.useRef(null),l=u.useRef(null),c=u.useRef(null),d=u.useRef(()=>{}),f=u.useRef(!1),p=u.useCallback((m="start")=>{if(s.current){d.current();const b=su(s.current);b.length&&_c(m==="start"?b:b.reverse())}},[]),h=u.useCallback(()=>{if(s.current){const m=su(s.current);m.length&&(d.current=Qk(m))}},[]);return u.createElement(Kk,{scope:n,value:a,triggerRef:l,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h},u.createElement(Mt.li,_e({},o,{ref:t})))}),dh="NavigationMenuTrigger",zk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Lt(dh,e.__scopeNavigationMenu),a=x$(dh,e.__scopeNavigationMenu),s=u.useRef(null),l=cn(s,a.triggerRef,t),c=S$(i.baseId,a.value),d=T$(i.baseId,a.value),f=u.useRef(!1),p=u.useRef(!1),h=a.value===i.value;return u.createElement(u.Fragment,null,u.createElement(Vc.ItemSlot,{scope:n,value:a.value},u.createElement(P$,{asChild:!0},u.createElement(Mt.button,_e({id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":Kc(h),"aria-expanded":h,"aria-controls":d},o,{ref:l,onPointerEnter:qe(e.onPointerEnter,()=>{p.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:qe(e.onPointerMove,$a(()=>{r||p.current||a.wasEscapeCloseRef.current||f.current||(i.onTriggerEnter(a.value),f.current=!0)})),onPointerLeave:qe(e.onPointerLeave,$a(()=>{r||(i.onTriggerLeave(),f.current=!1)})),onClick:qe(e.onClick,()=>{i.onItemSelect(a.value),p.current=h}),onKeyDown:qe(e.onKeyDown,m=>{const g={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&m.key===g&&(a.onEntryKeyDown(),m.preventDefault())})})))),h&&u.createElement(u.Fragment,null,u.createElement(Ak,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:m=>{const b=a.contentRef.current,g=m.relatedTarget,$=g===s.current,C=b==null?void 0:b.contains(g);($||!C)&&a.onFocusProxyEnter($?"start":"end")}}),i.viewport&&u.createElement("span",{"aria-owns":d})))}),fh="navigationMenu.linkSelect",Uk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return u.createElement(P$,{asChild:!0},u.createElement(Mt.a,_e({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:qe(e.onClick,a=>{const s=a.target,l=new CustomEvent(fh,{bubbles:!0,cancelable:!0});if(s.addEventListener(fh,c=>o==null?void 0:o(c),{once:!0}),ou(s,l),!l.defaultPrevented&&!a.metaKey){const c=new CustomEvent(Vi,{bubbles:!0,cancelable:!0});ou(s,c)}},{checkForDefaultPrevented:!1})})))}),w$="NavigationMenuIndicator",Hk=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Lt(w$,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?dn.createPortal(u.createElement(Go,{present:n||i},u.createElement(Gk,_e({},r,{ref:t}))),o.indicatorTrack):null}),Gk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lt(w$,n),i=$$(n),[a,s]=u.useState(null),[l,c]=u.useState(null),d=o.orientation==="horizontal",f=!!o.value;u.useEffect(()=>{var h;const b=(h=i().find(g=>g.value===o.value))===null||h===void 0?void 0:h.ref.current;b&&s(b)},[i,o.value]);const p=()=>{a&&c({size:d?a.offsetWidth:a.offsetHeight,offset:d?a.offsetLeft:a.offsetTop})};return lu(a,p),lu(o.indicatorTrack,p),l?u.createElement(Mt.div,_e({"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation},r,{ref:t,style:{position:"absolute",...d?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null}),Ao="NavigationMenuContent",Wk=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Lt(Ao,e.__scopeNavigationMenu),i=x$(Ao,e.__scopeNavigationMenu),a=cn(i.contentRef,t),s=i.value===o.value,l={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?u.createElement(Yk,_e({forceMount:n},l,{ref:a})):u.createElement(Go,{present:n||s},u.createElement(C$,_e({"data-state":Kc(s)},l,{ref:a,onPointerEnter:qe(e.onPointerEnter,o.onContentEnter),onPointerLeave:qe(e.onPointerLeave,$a(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),Yk=u.forwardRef((e,t)=>{const n=Lt(Ao,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Tr(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Tr(()=>()=>o(e.value),[e.value,o]),null}),Vi="navigationMenu.rootContentDismiss",C$=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...c}=e,d=Lt(Ao,n),f=u.useRef(null),p=cn(f,t),h=S$(d.baseId,r),m=T$(d.baseId,r),b=$$(n),g=u.useRef(null),{onItemDismiss:$}=d;u.useEffect(()=>{const x=f.current;if(d.isRootMenu&&x){const E=()=>{var w;$(),s(),x.contains(document.activeElement)&&((w=o.current)===null||w===void 0||w.focus())};return x.addEventListener(Vi,E),()=>x.removeEventListener(Vi,E)}},[d.isRootMenu,e.value,o,$,s]);const C=u.useMemo(()=>{const E=b().map(M=>M.value);d.dir==="rtl"&&E.reverse();const w=E.indexOf(d.value),A=E.indexOf(d.previousValue),V=r===d.value,y=A===E.indexOf(r);if(!V&&!y)return g.current;const I=(()=>{if(w!==A){if(V&&A!==-1)return w>A?"from-end":"from-start";if(y&&w!==-1)return w>A?"to-start":"to-end"}return null})();return g.current=I,I},[d.previousValue,d.value,d.dir,b,r]);return u.createElement(D$,{asChild:!0},u.createElement(Ek,_e({id:m,"aria-labelledby":h,"data-motion":C,"data-orientation":d.orientation},c,{ref:p,onDismiss:()=>{var x;const E=new Event(Vi,{bubbles:!0,cancelable:!0});(x=f.current)===null||x===void 0||x.dispatchEvent(E)},onFocusOutside:qe(e.onFocusOutside,x=>{var E;l();const w=x.target;(E=d.rootNavigationMenu)!==null&&E!==void 0&&E.contains(w)&&x.preventDefault()}),onPointerDownOutside:qe(e.onPointerDownOutside,x=>{var E;const w=x.target,A=b().some(y=>{var I;return(I=y.ref.current)===null||I===void 0?void 0:I.contains(w)}),V=d.isRootMenu&&((E=d.viewport)===null||E===void 0?void 0:E.contains(w));(A||V||!d.isRootMenu)&&x.preventDefault()}),onKeyDown:qe(e.onKeyDown,x=>{const E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){const V=su(x.currentTarget),y=document.activeElement,I=V.findIndex(R=>R===y),k=x.shiftKey?V.slice(0,I).reverse():V.slice(I+1,V.length);if(_c(k))x.preventDefault();else{var A;(A=i.current)===null||A===void 0||A.focus()}}}),onEscapeKeyDown:qe(e.onEscapeKeyDown,x=>{a.current=!0})})))}),E$="NavigationMenuViewport",qk=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!Lt(E$,e.__scopeNavigationMenu).value;return u.createElement(Go,{present:n||i},u.createElement(Zk,_e({},r,{ref:t})))}),Zk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=Lt(E$,n),a=cn(t,i.onViewportChange),s=Ik(Ao,e.__scopeNavigationMenu),[l,c]=u.useState(null),[d,f]=u.useState(null),p=l?(l==null?void 0:l.width)+"px":void 0,h=l?(l==null?void 0:l.height)+"px":void 0,m=!!i.value,b=m?i.value:i.previousValue;return lu(d,()=>{d&&c({width:d.offsetWidth,height:d.offsetHeight})}),u.createElement(Mt.div,_e({"data-state":Kc(m),"data-orientation":i.orientation},o,{ref:a,style:{pointerEvents:!m&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":h,...o.style},onPointerEnter:qe(e.onPointerEnter,i.onContentEnter),onPointerLeave:qe(e.onPointerLeave,$a(i.onContentLeave))}),Array.from(s.items).map(([$,{ref:C,forceMount:x,...E}])=>{const w=b===$;return u.createElement(Go,{key:$,present:x||w},u.createElement(C$,_e({},E,{ref:Lc(C,A=>{w&&A&&f(A)})})))}))}),Xk="FocusGroup",D$=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lt(Xk,n);return u.createElement(au.Provider,{scope:n},u.createElement(au.Slot,{scope:n},u.createElement(Mt.div,_e({dir:o.dir},r,{ref:t}))))}),ph=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Jk="FocusGroupItem",P$=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Mk(n),i=Lt(Jk,n);return u.createElement(au.ItemSlot,{scope:n},u.createElement(Mt.button,_e({},r,{ref:t,onKeyDown:qe(e.onKeyDown,a=>{if(["Home","End",...ph].includes(a.key)){let l=o().map(f=>f.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&l.reverse(),ph.includes(a.key)){const f=l.indexOf(a.currentTarget);l=l.slice(f+1)}setTimeout(()=>_c(l)),a.preventDefault()}})})))});function su(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _c(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function Qk(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function lu(e,t){const n=St(t);Tr(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function Kc(e){return e?"open":"closed"}function S$(e,t){return`${e}-trigger-${t}`}function T$(e,t){return`${e}-content-${t}`}function $a(e){return t=>t.pointerType==="mouse"?e(t):void 0}const eM=Ok,tM=Nk,Js=jk,nM=zk,rM=Uk,oM=Hk,iM=Wk,aM=qk,sM=rt`
|
|
1800
1813
|
from {
|
|
1801
1814
|
opacity: 0;
|
|
1802
1815
|
transform: translateX(200px);
|
|
@@ -1805,7 +1818,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1805
1818
|
opacity: 1;
|
|
1806
1819
|
transform: translateX(0);
|
|
1807
1820
|
}
|
|
1808
|
-
`,
|
|
1821
|
+
`,lM=rt`
|
|
1809
1822
|
from {
|
|
1810
1823
|
opacity: 0;
|
|
1811
1824
|
transform: translateX(-200px);
|
|
@@ -1814,7 +1827,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1814
1827
|
opacity: 1;
|
|
1815
1828
|
transform: translateX(0);
|
|
1816
1829
|
}
|
|
1817
|
-
`,
|
|
1830
|
+
`,uM=rt`
|
|
1818
1831
|
from {
|
|
1819
1832
|
opacity: 1;
|
|
1820
1833
|
transform: translateX(0);
|
|
@@ -1823,7 +1836,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1823
1836
|
opacity: 0;
|
|
1824
1837
|
transform: translateX(200px);
|
|
1825
1838
|
}
|
|
1826
|
-
`,
|
|
1839
|
+
`,cM=rt`
|
|
1827
1840
|
from {
|
|
1828
1841
|
opacity: 1;
|
|
1829
1842
|
transform: translateX(0);
|
|
@@ -1832,7 +1845,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1832
1845
|
opacity: 0;
|
|
1833
1846
|
transform: translateX(-200px);
|
|
1834
1847
|
}
|
|
1835
|
-
`,
|
|
1848
|
+
`,dM=rt`
|
|
1836
1849
|
from {
|
|
1837
1850
|
opacity: 0;
|
|
1838
1851
|
transform: rotateX(-30deg) scale(0.9);
|
|
@@ -1841,7 +1854,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1841
1854
|
opacity: 1;
|
|
1842
1855
|
transform: rotateX(0deg) scale(1);
|
|
1843
1856
|
}
|
|
1844
|
-
`,
|
|
1857
|
+
`,fM=rt`
|
|
1845
1858
|
from {
|
|
1846
1859
|
opacity: 1;
|
|
1847
1860
|
transform: rotateX(0deg) scale(1);
|
|
@@ -1850,32 +1863,32 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1850
1863
|
opacity: 0;
|
|
1851
1864
|
transform: rotateX(-10deg) scale(0.95);
|
|
1852
1865
|
}
|
|
1853
|
-
`,
|
|
1866
|
+
`,pM=rt`
|
|
1854
1867
|
from {
|
|
1855
1868
|
opacity: 0;
|
|
1856
1869
|
}
|
|
1857
1870
|
to {
|
|
1858
1871
|
opacity: 1;
|
|
1859
1872
|
}
|
|
1860
|
-
`,
|
|
1873
|
+
`,hM=rt`
|
|
1861
1874
|
from {
|
|
1862
1875
|
opacity: 1;
|
|
1863
1876
|
}
|
|
1864
1877
|
to {
|
|
1865
1878
|
opacity: 0;
|
|
1866
1879
|
}
|
|
1867
|
-
`,
|
|
1880
|
+
`,A$=Z.svg`
|
|
1868
1881
|
position: relative;
|
|
1869
1882
|
color: ${({theme:e})=>e.colors.slate[900]};
|
|
1870
1883
|
top: 1px;
|
|
1871
1884
|
transition: transform 200ms ease;
|
|
1872
|
-
`,
|
|
1885
|
+
`,mM=Z(eM)`
|
|
1873
1886
|
position: relative;
|
|
1874
1887
|
display: flex;
|
|
1875
1888
|
width: 100%;
|
|
1876
1889
|
justify-content: center;
|
|
1877
1890
|
z-index: 1;
|
|
1878
|
-
`,
|
|
1891
|
+
`,bM=Z(tM)`
|
|
1879
1892
|
display: flex;
|
|
1880
1893
|
justify-content: center;
|
|
1881
1894
|
list-style: none;
|
|
@@ -1885,7 +1898,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1885
1898
|
// padding: 4px;
|
|
1886
1899
|
// border-radius: 6px;
|
|
1887
1900
|
// box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
|
|
1888
|
-
`,
|
|
1901
|
+
`,hh=Z(nM)`
|
|
1889
1902
|
display: flex;
|
|
1890
1903
|
align-items: center;
|
|
1891
1904
|
justify-content: space-between;
|
|
@@ -1911,10 +1924,10 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1911
1924
|
background-color: ${({theme:e})=>e.colors.slate[100]};
|
|
1912
1925
|
}
|
|
1913
1926
|
|
|
1914
|
-
&[data-state='open'] > ${
|
|
1927
|
+
&[data-state='open'] > ${A$} {
|
|
1915
1928
|
transform: rotate(-180deg);
|
|
1916
1929
|
}
|
|
1917
|
-
`,uu=
|
|
1930
|
+
`,uu=Z(rM)`
|
|
1918
1931
|
display: block;
|
|
1919
1932
|
text-decoration: none;
|
|
1920
1933
|
font-size: 0.9rem;
|
|
@@ -1938,7 +1951,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1938
1951
|
&:hover {
|
|
1939
1952
|
background-color: ${({theme:e})=>e.colors.slate[100]};
|
|
1940
1953
|
}
|
|
1941
|
-
`,
|
|
1954
|
+
`,mh=Z(iM)`
|
|
1942
1955
|
position: absolute;
|
|
1943
1956
|
top: 0;
|
|
1944
1957
|
left: 0;
|
|
@@ -1947,22 +1960,22 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1947
1960
|
animation-timing-function: ease;
|
|
1948
1961
|
|
|
1949
1962
|
&[data-motion='from-start'] {
|
|
1950
|
-
animation-name: ${
|
|
1963
|
+
animation-name: ${lM};
|
|
1951
1964
|
}
|
|
1952
1965
|
&[data-motion='from-end'] {
|
|
1953
|
-
animation-name: ${
|
|
1966
|
+
animation-name: ${sM};
|
|
1954
1967
|
}
|
|
1955
1968
|
&[data-motion='to-start'] {
|
|
1956
|
-
animation-name: ${
|
|
1969
|
+
animation-name: ${cM};
|
|
1957
1970
|
}
|
|
1958
1971
|
&[data-motion='to-end'] {
|
|
1959
|
-
animation-name: ${
|
|
1972
|
+
animation-name: ${uM};
|
|
1960
1973
|
}
|
|
1961
1974
|
|
|
1962
1975
|
@media only screen and (min-width: 600px) {
|
|
1963
1976
|
width: auto;
|
|
1964
1977
|
}
|
|
1965
|
-
`,
|
|
1978
|
+
`,gM=Z(oM)`
|
|
1966
1979
|
display: flex;
|
|
1967
1980
|
align-items: flex-end;
|
|
1968
1981
|
justify-content: center;
|
|
@@ -1973,13 +1986,13 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1973
1986
|
transition: width, transform 250ms ease;
|
|
1974
1987
|
|
|
1975
1988
|
&[data-state='visible'] {
|
|
1976
|
-
animation: ${
|
|
1989
|
+
animation: ${pM} 200ms ease;
|
|
1977
1990
|
}
|
|
1978
1991
|
|
|
1979
1992
|
&[data-state='hidden'] {
|
|
1980
|
-
animation: ${
|
|
1993
|
+
animation: ${hM} 200ms ease;
|
|
1981
1994
|
}
|
|
1982
|
-
`,
|
|
1995
|
+
`,vM=Z(aM)`
|
|
1983
1996
|
position: relative;
|
|
1984
1997
|
transform-origin: top center;
|
|
1985
1998
|
margin-top: 10px;
|
|
@@ -1992,18 +2005,18 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1992
2005
|
transition: width, height, 300ms ease;
|
|
1993
2006
|
|
|
1994
2007
|
&[data-state='open'] {
|
|
1995
|
-
animation: ${
|
|
2008
|
+
animation: ${dM} 200ms ease;
|
|
1996
2009
|
}
|
|
1997
2010
|
|
|
1998
2011
|
&[data-state='closed'] {
|
|
1999
|
-
animation: ${
|
|
2012
|
+
animation: ${fM} 200ms ease;
|
|
2000
2013
|
}
|
|
2001
2014
|
|
|
2002
2015
|
@media only screen and (min-width: 600px) {
|
|
2003
2016
|
width: var(--radix-navigation-menu-viewport-width);
|
|
2004
2017
|
}
|
|
2005
2018
|
}
|
|
2006
|
-
`,
|
|
2019
|
+
`,bh=Z.ul`
|
|
2007
2020
|
display: grid;
|
|
2008
2021
|
padding: 22px;
|
|
2009
2022
|
margin: 0;
|
|
@@ -2021,7 +2034,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
2021
2034
|
grid-template-rows: repeat(3, 1fr);
|
|
2022
2035
|
}
|
|
2023
2036
|
}
|
|
2024
|
-
`,
|
|
2037
|
+
`,yM=Z(Ha)`
|
|
2025
2038
|
display: block;
|
|
2026
2039
|
outline: none;
|
|
2027
2040
|
text-decoration: none;
|
|
@@ -2039,16 +2052,16 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
2039
2052
|
&:hover {
|
|
2040
2053
|
background-color: ${({theme:e})=>e.colors.slate[100]};
|
|
2041
2054
|
}
|
|
2042
|
-
|
|
2055
|
+
`,$M=Z.div`
|
|
2043
2056
|
font-weight: 500;
|
|
2044
2057
|
line-height: 1.2;
|
|
2045
2058
|
margin-bottom: 5px;
|
|
2046
2059
|
color: ${({theme:e})=>e.colors.slate[900]};
|
|
2047
|
-
`,
|
|
2060
|
+
`,xM=Z.p`
|
|
2048
2061
|
color: ${({theme:e})=>e.colors.slate[900]};
|
|
2049
2062
|
line-height: 1.4;
|
|
2050
2063
|
font-weight: initial;
|
|
2051
|
-
`,
|
|
2064
|
+
`,wM=Z(Ha)`
|
|
2052
2065
|
display: flex;
|
|
2053
2066
|
justify-content: flex-end;
|
|
2054
2067
|
flex-direction: column;
|
|
@@ -2068,18 +2081,18 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
2068
2081
|
&:focus {
|
|
2069
2082
|
box-shadow: 0 0 0 2px ${({theme:e})=>e.colors.slate[900]};
|
|
2070
2083
|
}
|
|
2071
|
-
`,
|
|
2084
|
+
`,CM=Z.div`
|
|
2072
2085
|
color: white;
|
|
2073
2086
|
font-size: 18px;
|
|
2074
2087
|
font-weight: 500;
|
|
2075
2088
|
line-height: 1.2;
|
|
2076
2089
|
margin-top: 16px;
|
|
2077
2090
|
margin-bottom: 7px;
|
|
2078
|
-
`,
|
|
2091
|
+
`,EM=Z.p`
|
|
2079
2092
|
color: white;
|
|
2080
2093
|
font-size: 14px;
|
|
2081
2094
|
line-height: 1.3;
|
|
2082
|
-
`,
|
|
2095
|
+
`,DM=Z.div`
|
|
2083
2096
|
position: absolute;
|
|
2084
2097
|
display: flex;
|
|
2085
2098
|
justify-content: center;
|
|
@@ -2087,7 +2100,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
2087
2100
|
top: 100%;
|
|
2088
2101
|
left: 0;
|
|
2089
2102
|
perspective: 2000px;
|
|
2090
|
-
`,
|
|
2103
|
+
`,PM=Z.div`
|
|
2091
2104
|
position: relative;
|
|
2092
2105
|
top: 70%;
|
|
2093
2106
|
background-color: white;
|
|
@@ -2095,4 +2108,4 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
2095
2108
|
height: 10px;
|
|
2096
2109
|
transform: rotate(45deg);
|
|
2097
2110
|
border-top-left-radius: 2px;
|
|
2098
|
-
`;function cu({className:e,...t}){return O.jsx(
|
|
2111
|
+
`;function cu({className:e,...t}){return O.jsx(A$,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:O.jsx("path",{d:"M6 9L12 15L18 9",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}cu.defaultProps={className:void 0};const Nt=u.forwardRef(({className:e,children:t,title:n,...r},o)=>O.jsx("li",{children:O.jsx(uu,{asChild:!0,children:O.jsxs(yM,{className:`${e??""}`,...r,ref:o,children:[O.jsx($M,{children:n}),O.jsx(xM,{children:t})]})})}));Nt.defaultProps={className:void 0,href:void 0,title:void 0};function SM(){return O.jsxs(mM,{children:[O.jsxs(bM,{children:[O.jsxs(Js,{children:[O.jsxs(hh,{children:["Learn ",O.jsx(cu,{"aria-hidden":!0})]}),O.jsx(mh,{children:O.jsxs(bh,{className:"one",children:[O.jsx("li",{style:{gridRow:"span 3"},children:O.jsx(uu,{asChild:!0,children:O.jsxs(wM,{href:"/",children:[O.jsxs("svg",{"aria-hidden":!0,width:"38",height:"38",viewBox:"0 0 25 25",fill:"white",children:[O.jsx("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z"}),O.jsx("path",{d:"M12 0H4V8H12V0Z"}),O.jsx("path",{d:"M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z"})]}),O.jsx(CM,{children:"Radix Primitives"}),O.jsx(EM,{children:"Unstyled, accessible components for React."})]})})}),O.jsx(Nt,{href:"https://stitches.dev/",title:"Stitches",children:"CSS-in-JS with best-in-class developer experience."}),O.jsx(Nt,{href:"/colors",title:"Colors",children:"Beautiful, thought-out palettes with auto dark mode."}),O.jsx(Nt,{href:"https://icons.radix-ui.com/",title:"Icons",children:"A crisp set of 15x15 icons, balanced and consistent."})]})})]}),O.jsxs(Js,{children:[O.jsxs(hh,{children:["Overview ",O.jsx(cu,{"aria-hidden":!0})]}),O.jsx(mh,{children:O.jsxs(bh,{className:"two",children:[O.jsx(Nt,{title:"Introduction",href:"/primitives/docs/overview/introduction",children:"Build high-quality, accessible design systems and web apps."}),O.jsx(Nt,{title:"Getting started",href:"/primitives/docs/overview/getting-started",children:"A quick tutorial to get you up and running with Radix Primitives."}),O.jsx(Nt,{title:"Styling",href:"/primitives/docs/guides/styling",children:"Unstyled and compatible with any styling solution."}),O.jsx(Nt,{title:"Animation",href:"/primitives/docs/guides/animation",children:"Use CSS keyframes or any animation library of your choice."}),O.jsx(Nt,{title:"Accessibility",href:"/primitives/docs/overview/accessibility",children:"Tested in a range of browsers and assistive technologies."}),O.jsx(Nt,{title:"Releases",href:"/primitives/docs/overview/releases",children:"Radix Primitives releases and their changelogs."})]})})]}),O.jsx(Js,{children:O.jsx(uu,{href:"https://github.com/radix-ui",children:"Github"})}),O.jsx(gM,{children:O.jsx(PM,{})})]}),O.jsx(DM,{children:O.jsx(vM,{})})]})}exports.Avatar=MC;exports.AvatarGroup=FC;exports.Badge=lP;exports.BreadcrumbEllipsis=uP;exports.BreadcrumbItem=Z9;exports.BreadcrumbLink=X9;exports.BreadcrumbSeparator=J9;exports.Breadcrumbs=Q9;exports.Button=eT;exports.Card=nT;exports.Checkbox=oT;exports.CircularEasing=AA;exports.CircularProgressbar=oA;exports.Collapsible=lT;exports.CollapsibleTrigger=sT;exports.CollapsibleTriggerStateContext=Oc;exports.Container=cT;exports.ContextMenu=t$;exports.DateInput=n$;exports.Dialog=IT;exports.Divider=yT;exports.Drawer=s$;exports.Input=a$;exports.LinearProgressbar=dA;exports.Link=wT;exports.Meter=AT;exports.Modal=MT;exports.ModalOverlay=FT;exports.NavigationMenu=SM;exports.NumberInput=l$;exports.Option=CA;exports.PinInput=u$;exports.Pulse=c$;exports.Select=d$;exports.Slider=f$;exports.Switch=OA;exports.Tab=jA;exports.TabList=zA;exports.TabPanel=UA;exports.Tabs=KA;exports.TabsOrientationContext=Za;exports.TimeInput=h$;exports.ToggleButton=JA;exports.Tooltip=ik;exports.defaultTheme=Q4;exports.mergeTheme=e$;
|