@clicktap/ui 0.2.11 → 0.2.13

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/index.js CHANGED
@@ -1,26 +1,26 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),u=require("react"),_=require("styled-components"),Wt=require("react-dom");function T$(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 Sn=T$(u);var A$=()=>S.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[S.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"}),S.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 M$(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=Sn.createContext(void 0);o.displayName=r;function i(){var a;const s=Sn.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 k$(e){return{UNSAFE_getDOMNode(){return e.current}}}function As(e){const t=u.useRef(null);return u.useImperativeHandle(e,()=>t.current),t}var R$=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function Pp(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=Pp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function sr(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=Pp(n))&&(o&&(o+=" "),o+=r);return o}var jc={};function F$(e,t,...n){var r;const i=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!jc[i]&&(jc[i]=!0,((r=process==null?void 0:process.env)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}function Sp(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}process.env.NODE_ENV;process.env.NODE_ENV;function B$(e){return typeof e=="function"}var Et=e=>e?"true":void 0;function I$(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function L$(e,t){if(e!=null){if(B$(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function V$(...e){return t=>{e.forEach(n=>L$(n,t))}}var O$=Object.create,Tp=Object.defineProperty,N$=Object.getOwnPropertyDescriptor,Ap=Object.getOwnPropertyNames,K$=Object.getPrototypeOf,j$=Object.prototype.hasOwnProperty,Il=(e,t)=>function(){return t||(0,e[Ap(e)[0]])((t={exports:{}}).exports,t),t.exports},_$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ap(t))!j$.call(e,o)&&o!==n&&Tp(e,o,{get:()=>t[o],enumerable:!(r=N$(t,o))||r.enumerable});return e},z$=(e,t,n)=>(n=e!=null?O$(K$(e)):{},_$(t||!e||!e.__esModule?Tp(n,"default",{value:e,enumerable:!0}):n,e)),U$=Il({"../../../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"),d=Symbol.for("react.suspense"),c=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 b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function $(D,O,W){this.props=D,this.context=O,this.refs=y,this.updater=W||b}$.prototype.isReactComponent={},$.prototype.setState=function(D,O){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,O,"setState")},$.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=$.prototype;function w(D,O,W){this.props=D,this.context=O,this.refs=y,this.updater=W||b}var E=w.prototype=new C;E.constructor=w,g(E,$.prototype),E.isPureReactComponent=!0;var P=Array.isArray,k=Object.prototype.hasOwnProperty,N={current:null},v={key:!0,ref:!0,__self:!0,__source:!0};function L(D,O,W){var J,Q={},re=null,z=null;if(O!=null)for(J in O.ref!==void 0&&(z=O.ref),O.key!==void 0&&(re=""+O.key),O)k.call(O,J)&&!v.hasOwnProperty(J)&&(Q[J]=O[J]);var q=arguments.length-2;if(q===1)Q.children=W;else if(1<q){for(var te=Array(q),ae=0;ae<q;ae++)te[ae]=arguments[ae+2];Q.children=te}if(D&&D.defaultProps)for(J in q=D.defaultProps,q)Q[J]===void 0&&(Q[J]=q[J]);return{$$typeof:t,type:D,key:re,ref:z,props:Q,_owner:N.current}}function F(D,O){return{$$typeof:t,type:D.type,key:O,ref:D.ref,props:D.props,_owner:D._owner}}function A(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function B(D){var O={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(W){return O[W]})}var R=/\/+/g;function I(D,O){return typeof D=="object"&&D!==null&&D.key!=null?B(""+D.key):O.toString(36)}function K(D,O,W,J,Q){var re=typeof D;(re==="undefined"||re==="boolean")&&(D=null);var z=!1;if(D===null)z=!0;else switch(re){case"string":case"number":z=!0;break;case"object":switch(D.$$typeof){case t:case n:z=!0}}if(z)return z=D,Q=Q(z),D=J===""?"."+I(z,0):J,P(Q)?(W="",D!=null&&(W=D.replace(R,"$&/")+"/"),K(Q,O,W,"",function(ae){return ae})):Q!=null&&(A(Q)&&(Q=F(Q,W+(!Q.key||z&&z.key===Q.key?"":(""+Q.key).replace(R,"$&/")+"/")+D)),O.push(Q)),1;if(z=0,J=J===""?".":J+":",P(D))for(var q=0;q<D.length;q++){re=D[q];var te=J+I(re,q);z+=K(re,O,W,te,Q)}else if(te=h(D),typeof te=="function")for(D=te.call(D),q=0;!(re=D.next()).done;)re=re.value,te=J+I(re,q++),z+=K(re,O,W,te,Q);else if(re==="object")throw O=String(D),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.");return z}function V(D,O,W){if(D==null)return D;var J=[],Q=0;return K(D,J,"","",function(re){return O.call(W,re,Q++)}),J}function T(D){if(D._status===-1){var O=D._result;O=O(),O.then(function(W){(D._status===0||D._status===-1)&&(D._status=1,D._result=W)},function(W){(D._status===0||D._status===-1)&&(D._status=2,D._result=W)}),D._status===-1&&(D._status=0,D._result=O)}if(D._status===1)return D._result.default;throw D._result}var G={current:null},Y={transition:null},H={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:Y,ReactCurrentOwner:N};e.Children={map:V,forEach:function(D,O,W){V(D,function(){O.apply(this,arguments)},W)},count:function(D){var O=0;return V(D,function(){O++}),O},toArray:function(D){return V(D,function(O){return O})||[]},only:function(D){if(!A(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=w,e.StrictMode=o,e.Suspense=d,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,e.cloneElement=function(D,O,W){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var J=g({},D.props),Q=D.key,re=D.ref,z=D._owner;if(O!=null){if(O.ref!==void 0&&(re=O.ref,z=N.current),O.key!==void 0&&(Q=""+O.key),D.type&&D.type.defaultProps)var q=D.type.defaultProps;for(te in O)k.call(O,te)&&!v.hasOwnProperty(te)&&(J[te]=O[te]===void 0&&q!==void 0?q[te]:O[te])}var te=arguments.length-2;if(te===1)J.children=W;else if(1<te){q=Array(te);for(var ae=0;ae<te;ae++)q[ae]=arguments[ae+2];J.children=q}return{$$typeof:t,type:D.type,key:Q,ref:re,props:J,_owner:z}},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=L,e.createFactory=function(D){var O=L.bind(null,D);return O.type=D,O},e.createRef=function(){return{current:null}},e.forwardRef=function(D){return{$$typeof:l,render:D}},e.isValidElement=A,e.lazy=function(D){return{$$typeof:f,_payload:{_status:-1,_result:D},_init:T}},e.memo=function(D,O){return{$$typeof:c,type:D,compare:O===void 0?null:O}},e.startTransition=function(D){var O=Y.transition;Y.transition={};try{D()}finally{Y.transition=O}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(D,O){return G.current.useCallback(D,O)},e.useContext=function(D){return G.current.useContext(D)},e.useDebugValue=function(){},e.useDeferredValue=function(D){return G.current.useDeferredValue(D)},e.useEffect=function(D,O){return G.current.useEffect(D,O)},e.useId=function(){return G.current.useId()},e.useImperativeHandle=function(D,O,W){return G.current.useImperativeHandle(D,O,W)},e.useInsertionEffect=function(D,O){return G.current.useInsertionEffect(D,O)},e.useLayoutEffect=function(D,O){return G.current.useLayoutEffect(D,O)},e.useMemo=function(D,O){return G.current.useMemo(D,O)},e.useReducer=function(D,O,W){return G.current.useReducer(D,O,W)},e.useRef=function(D){return G.current.useRef(D)},e.useState=function(D){return G.current.useState(D)},e.useSyncExternalStore=function(D,O,W){return G.current.useSyncExternalStore(D,O,W)},e.useTransition=function(){return G.current.useTransition()},e.version="18.2.0"}}),H$=Il({"../../../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"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y=Symbol.iterator,$="@@iterator";function C(m){if(m===null||typeof m!="object")return null;var M=y&&m[y]||m[$];return typeof M=="function"?M:null}var w={current:null},E={transition:null},P={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},k={current:null},N={},v=null;function L(m){v=m}N.setExtraStackFrame=function(m){v=m},N.getCurrentStack=null,N.getStackAddendum=function(){var m="";v&&(m+=v);var M=N.getCurrentStack;return M&&(m+=M()||""),m};var F=!1,A=!1,B=!1,R=!1,I=!1,K={ReactCurrentDispatcher:w,ReactCurrentBatchConfig:E,ReactCurrentOwner:k};K.ReactDebugCurrentFrame=N,K.ReactCurrentActQueue=P;function V(m){{for(var M=arguments.length,j=new Array(M>1?M-1:0),U=1;U<M;U++)j[U-1]=arguments[U];G("warn",m,j)}}function T(m){{for(var M=arguments.length,j=new Array(M>1?M-1:0),U=1;U<M;U++)j[U-1]=arguments[U];G("error",m,j)}}function G(m,M,j){{var U=K.ReactDebugCurrentFrame,Z=U.getStackAddendum();Z!==""&&(M+="%s",j=j.concat([Z]));var oe=j.map(function(ee){return String(ee)});oe.unshift("Warning: "+M),Function.prototype.apply.call(console[m],console,oe)}}var Y={};function H(m,M){{var j=m.constructor,U=j&&(j.displayName||j.name)||"ReactClass",Z=U+"."+M;if(Y[Z])return;T("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.",M,U),Y[Z]=!0}}var D={isMounted:function(m){return!1},enqueueForceUpdate:function(m,M,j){H(m,"forceUpdate")},enqueueReplaceState:function(m,M,j,U){H(m,"replaceState")},enqueueSetState:function(m,M,j,U){H(m,"setState")}},O=Object.assign,W={};Object.freeze(W);function J(m,M,j){this.props=m,this.context=M,this.refs=W,this.updater=j||D}J.prototype.isReactComponent={},J.prototype.setState=function(m,M){if(typeof m!="object"&&typeof m!="function"&&m!=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,m,M,"setState")},J.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};{var Q={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)."]},re=function(m,M){Object.defineProperty(J.prototype,m,{get:function(){V("%s(...) is deprecated in plain JavaScript React classes. %s",M[0],M[1])}})};for(var z in Q)Q.hasOwnProperty(z)&&re(z,Q[z])}function q(){}q.prototype=J.prototype;function te(m,M,j){this.props=m,this.context=M,this.refs=W,this.updater=j||D}var ae=te.prototype=new q;ae.constructor=te,O(ae,J.prototype),ae.isPureReactComponent=!0;function se(){var m={current:null};return Object.seal(m),m}var Be=Array.isArray;function Ue(m){return Be(m)}function xt(m){{var M=typeof Symbol=="function"&&Symbol.toStringTag,j=M&&m[Symbol.toStringTag]||m.constructor.name||"Object";return j}}function Kn(m){try{return Zt(m),!1}catch{return!0}}function Zt(m){return""+m}function Xt(m){if(Kn(m))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(m)),Zt(m)}function Dr(m,M,j){var U=m.displayName;if(U)return U;var Z=M.displayName||M.name||"";return Z!==""?j+"("+Z+")":j}function ue(m){return m.displayName||"Context"}function fe(m){if(m==null)return null;if(typeof m.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){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 m=="object")switch(m.$$typeof){case d:var M=m;return ue(M)+".Consumer";case l:var j=m;return ue(j._context)+".Provider";case c:return Dr(m,m.render,"ForwardRef");case h:var U=m.displayName||null;return U!==null?U:fe(m.type)||"Memo";case b:{var Z=m,oe=Z._payload,ee=Z._init;try{return fe(ee(oe))}catch{return null}}}return null}var $e=Object.prototype.hasOwnProperty,Fo={key:!0,ref:!0,__self:!0,__source:!0},Er,Pr,pn;pn={};function wt(m){if($e.call(m,"ref")){var M=Object.getOwnPropertyDescriptor(m,"ref").get;if(M&&M.isReactWarning)return!1}return m.ref!==void 0}function Sr(m){if($e.call(m,"key")){var M=Object.getOwnPropertyDescriptor(m,"key").get;if(M&&M.isReactWarning)return!1}return m.key!==void 0}function Bo(m,M){var j=function(){Er||(Er=!0,T("%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)",M))};j.isReactWarning=!0,Object.defineProperty(m,"key",{get:j,configurable:!0})}function Sa(m,M){var j=function(){Pr||(Pr=!0,T("%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)",M))};j.isReactWarning=!0,Object.defineProperty(m,"ref",{get:j,configurable:!0})}function Ta(m){if(typeof m.ref=="string"&&k.current&&m.__self&&k.current.stateNode!==m.__self){var M=fe(k.current.type);pn[M]||(T('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',M,m.ref),pn[M]=!0)}}var Ne=function(m,M,j,U,Z,oe,ee){var ie={$$typeof:r,type:m,key:M,ref:j,props:ee,_owner:oe};return ie._store={},Object.defineProperty(ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.defineProperty(ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie};function Tr(m,M,j){var U,Z={},oe=null,ee=null,ie=null,pe=null;if(M!=null){wt(M)&&(ee=M.ref,Ta(M)),Sr(M)&&(Xt(M.key),oe=""+M.key),ie=M.__self===void 0?null:M.__self,pe=M.__source===void 0?null:M.__source;for(U in M)$e.call(M,U)&&!Fo.hasOwnProperty(U)&&(Z[U]=M[U])}var ge=arguments.length-2;if(ge===1)Z.children=j;else if(ge>1){for(var we=Array(ge),Ce=0;Ce<ge;Ce++)we[Ce]=arguments[Ce+2];Object.freeze&&Object.freeze(we),Z.children=we}if(m&&m.defaultProps){var De=m.defaultProps;for(U in De)Z[U]===void 0&&(Z[U]=De[U])}if(oe||ee){var Me=typeof m=="function"?m.displayName||m.name||"Unknown":m;oe&&Bo(Z,Me),ee&&Sa(Z,Me)}return Ne(m,oe,ee,ie,pe,k.current,Z)}function M1(m,M){var j=Ne(m.type,M,m.ref,m._self,m._source,m._owner,m.props);return j}function k1(m,M,j){if(m==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+m+".");var U,Z=O({},m.props),oe=m.key,ee=m.ref,ie=m._self,pe=m._source,ge=m._owner;if(M!=null){wt(M)&&(ee=M.ref,ge=k.current),Sr(M)&&(Xt(M.key),oe=""+M.key);var we;m.type&&m.type.defaultProps&&(we=m.type.defaultProps);for(U in M)$e.call(M,U)&&!Fo.hasOwnProperty(U)&&(M[U]===void 0&&we!==void 0?Z[U]=we[U]:Z[U]=M[U])}var Ce=arguments.length-2;if(Ce===1)Z.children=j;else if(Ce>1){for(var De=Array(Ce),Me=0;Me<Ce;Me++)De[Me]=arguments[Me+2];Z.children=De}return Ne(m.type,oe,ee,ie,pe,ge,Z)}function jn(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}var fc=".",R1=":";function F1(m){var M=/[=:]/g,j={"=":"=0",":":"=2"},U=m.replace(M,function(Z){return j[Z]});return"$"+U}var pc=!1,B1=/\/+/g;function hc(m){return m.replace(B1,"$&/")}function Aa(m,M){return typeof m=="object"&&m!==null&&m.key!=null?(Xt(m.key),F1(""+m.key)):M.toString(36)}function Io(m,M,j,U,Z){var oe=typeof m;(oe==="undefined"||oe==="boolean")&&(m=null);var ee=!1;if(m===null)ee=!0;else switch(oe){case"string":case"number":ee=!0;break;case"object":switch(m.$$typeof){case r:case o:ee=!0}}if(ee){var ie=m,pe=Z(ie),ge=U===""?fc+Aa(ie,0):U;if(Ue(pe)){var we="";ge!=null&&(we=hc(ge)+"/"),Io(pe,M,we,"",function(S$){return S$})}else pe!=null&&(jn(pe)&&(pe.key&&(!ie||ie.key!==pe.key)&&Xt(pe.key),pe=M1(pe,j+(pe.key&&(!ie||ie.key!==pe.key)?hc(""+pe.key)+"/":"")+ge)),M.push(pe));return 1}var Ce,De,Me=0,Ke=U===""?fc:U+R1;if(Ue(m))for(var zo=0;zo<m.length;zo++)Ce=m[zo],De=Ke+Aa(Ce,zo),Me+=Io(Ce,M,j,De,Z);else{var Oa=C(m);if(typeof Oa=="function"){var Oc=m;Oa===Oc.entries&&(pc||V("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pc=!0);for(var E$=Oa.call(Oc),Nc,P$=0;!(Nc=E$.next()).done;)Ce=Nc.value,De=Ke+Aa(Ce,P$++),Me+=Io(Ce,M,j,De,Z)}else if(oe==="object"){var Kc=String(m);throw new Error("Objects are not valid as a React child (found: "+(Kc==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":Kc)+"). If you meant to render a collection of children, use an array instead.")}}return Me}function Lo(m,M,j){if(m==null)return m;var U=[],Z=0;return Io(m,U,"","",function(oe){return M.call(j,oe,Z++)}),U}function I1(m){var M=0;return Lo(m,function(){M++}),M}function L1(m,M,j){Lo(m,function(){M.apply(this,arguments)},j)}function V1(m){return Lo(m,function(M){return M})||[]}function O1(m){if(!jn(m))throw new Error("React.Children.only expected to receive a single React element child.");return m}function N1(m){var M={$$typeof:d,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};M.Provider={$$typeof:l,_context:M};var j=!1,U=!1,Z=!1;{var oe={$$typeof:d,_context:M};Object.defineProperties(oe,{Provider:{get:function(){return U||(U=!0,T("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),M.Provider},set:function(ee){M.Provider=ee}},_currentValue:{get:function(){return M._currentValue},set:function(ee){M._currentValue=ee}},_currentValue2:{get:function(){return M._currentValue2},set:function(ee){M._currentValue2=ee}},_threadCount:{get:function(){return M._threadCount},set:function(ee){M._threadCount=ee}},Consumer:{get:function(){return j||(j=!0,T("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),M.Consumer}},displayName:{get:function(){return M.displayName},set:function(ee){Z||(V("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ee),Z=!0)}}}),M.Consumer=oe}return M._currentRenderer=null,M._currentRenderer2=null,M}var Ar=-1,Ma=0,bc=1,K1=2;function j1(m){if(m._status===Ar){var M=m._result,j=M();if(j.then(function(oe){if(m._status===Ma||m._status===Ar){var ee=m;ee._status=bc,ee._result=oe}},function(oe){if(m._status===Ma||m._status===Ar){var ee=m;ee._status=K1,ee._result=oe}}),m._status===Ar){var U=m;U._status=Ma,U._result=j}}if(m._status===bc){var Z=m._result;return Z===void 0&&T(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),d=require("react"),m=require("styled-components"),Re=require("framer-motion"),D=require("react-aria-components"),Hs=require("react-aria"),Yr=require("react-dom");function Gs(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const Fr=Gs(d);var Ws=()=>p.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[p.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"}),p.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 Us(e={}){const{strict:r=!0,errorMessage:t="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,n=Fr.createContext(void 0);n.displayName=o;function s(){var i;const l=Fr.useContext(n);if(!l&&r){const u=new Error(t);throw u.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,u,s),u}return l}return[n.Provider,s,n]}function Ks(e){return{UNSAFE_getDOMNode(){return e.current}}}function yt(e){const r=d.useRef(null);return d.useImperativeHandle(e,()=>r.current),r}var Ys=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function kn(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=kn(e[r]))&&(o&&(o+=" "),o+=t);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function or(...e){for(var r=0,t,o,n="";r<e.length;)(t=e[r++])&&(o=kn(t))&&(n&&(n+=" "),n+=o);return n}var Bo={};function Xs(e,r,...t){var o;const s=`[Next UI]${r?` [${r}]`:" "}: ${e}`;if(!(typeof console>"u")&&!Bo[s]&&(Bo[s]=!0,((o=process==null?void 0:process.env)==null?void 0:o.NODE_ENV)!=="production"))return console.warn(s,t)}function Sn(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}process.env.NODE_ENV;process.env.NODE_ENV;function qs(e){return typeof e=="function"}var _e=e=>e?"true":void 0;function Zs(e){const r=Object.assign({},e);for(let t in r)r[t]===void 0&&delete r[t];return r}function Js(e,r){if(e!=null){if(qs(e)){e(r);return}try{e.current=r}catch{throw new Error(`Cannot assign value '${r}' to ref '${e}'`)}}}function Qs(...e){return r=>{e.forEach(t=>Js(t,r))}}var ei=Object.create,Tn=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,Pn=Object.getOwnPropertyNames,ti=Object.getPrototypeOf,oi=Object.prototype.hasOwnProperty,Wt=(e,r)=>function(){return r||(0,e[Pn(e)[0]])((r={exports:{}}).exports,r),r.exports},ni=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Pn(r))!oi.call(e,n)&&n!==t&&Tn(e,n,{get:()=>r[n],enumerable:!(o=ri(r,n))||o.enumerable});return e},ai=(e,r,t)=>(t=e!=null?ei(ti(e)):{},ni(r||!e||!e.__esModule?Tn(t,"default",{value:e,enumerable:!0}):t,e)),si=Wt({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var r=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),h=Symbol.iterator;function v($){return $===null||typeof $!="object"?null:($=h&&$[h]||$["@@iterator"],typeof $=="function"?$:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,k={};function T($,S,W){this.props=$,this.context=S,this.refs=k,this.updater=W||x}T.prototype.isReactComponent={},T.prototype.setState=function($,S){if(typeof $!="object"&&typeof $!="function"&&$!=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,$,S,"setState")},T.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function M(){}M.prototype=T.prototype;function _($,S,W){this.props=$,this.context=S,this.refs=k,this.updater=W||x}var I=_.prototype=new M;I.constructor=_,E(I,T.prototype),I.isPureReactComponent=!0;var O=Array.isArray,P=Object.prototype.hasOwnProperty,F={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function N($,S,W){var Y,ee={},ne=null,se=null;if(S!=null)for(Y in S.ref!==void 0&&(se=S.ref),S.key!==void 0&&(ne=""+S.key),S)P.call(S,Y)&&!L.hasOwnProperty(Y)&&(ee[Y]=S[Y]);var ae=arguments.length-2;if(ae===1)ee.children=W;else if(1<ae){for(var ie=Array(ae),ve=0;ve<ae;ve++)ie[ve]=arguments[ve+2];ee.children=ie}if($&&$.defaultProps)for(Y in ae=$.defaultProps,ae)ee[Y]===void 0&&(ee[Y]=ae[Y]);return{$$typeof:r,type:$,key:ne,ref:se,props:ee,_owner:F.current}}function J($,S){return{$$typeof:r,type:$.type,key:S,ref:$.ref,props:$.props,_owner:$._owner}}function q($){return typeof $=="object"&&$!==null&&$.$$typeof===r}function j($){var S={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(W){return S[W]})}var H=/\/+/g;function z($,S){return typeof $=="object"&&$!==null&&$.key!=null?j(""+$.key):S.toString(36)}function V($,S,W,Y,ee){var ne=typeof $;(ne==="undefined"||ne==="boolean")&&($=null);var se=!1;if($===null)se=!0;else switch(ne){case"string":case"number":se=!0;break;case"object":switch($.$$typeof){case r:case t:se=!0}}if(se)return se=$,ee=ee(se),$=Y===""?"."+z(se,0):Y,O(ee)?(W="",$!=null&&(W=$.replace(H,"$&/")+"/"),V(ee,S,W,"",function(ve){return ve})):ee!=null&&(q(ee)&&(ee=J(ee,W+(!ee.key||se&&se.key===ee.key?"":(""+ee.key).replace(H,"$&/")+"/")+$)),S.push(ee)),1;if(se=0,Y=Y===""?".":Y+":",O($))for(var ae=0;ae<$.length;ae++){ne=$[ae];var ie=Y+z(ne,ae);se+=V(ne,S,W,ie,ee)}else if(ie=v($),typeof ie=="function")for($=ie.call($),ae=0;!(ne=$.next()).done;)ne=ne.value,ie=Y+z(ne,ae++),se+=V(ne,S,W,ie,ee);else if(ne==="object")throw S=String($),Error("Objects are not valid as a React child (found: "+(S==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":S)+"). If you meant to render a collection of children, use an array instead.");return se}function G($,S,W){if($==null)return $;var Y=[],ee=0;return V($,Y,"","",function(ne){return S.call(W,ne,ee++)}),Y}function A($){if($._status===-1){var S=$._result;S=S(),S.then(function(W){($._status===0||$._status===-1)&&($._status=1,$._result=W)},function(W){($._status===0||$._status===-1)&&($._status=2,$._result=W)}),$._status===-1&&($._status=0,$._result=S)}if($._status===1)return $._result.default;throw $._result}var U={current:null},Z={transition:null},Q={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:Z,ReactCurrentOwner:F};e.Children={map:G,forEach:function($,S,W){G($,function(){S.apply(this,arguments)},W)},count:function($){var S=0;return G($,function(){S++}),S},toArray:function($){return G($,function(S){return S})||[]},only:function($){if(!q($))throw Error("React.Children.only expected to receive a single React element child.");return $}},e.Component=T,e.Fragment=o,e.Profiler=s,e.PureComponent=_,e.StrictMode=n,e.Suspense=g,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,e.cloneElement=function($,S,W){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var Y=E({},$.props),ee=$.key,ne=$.ref,se=$._owner;if(S!=null){if(S.ref!==void 0&&(ne=S.ref,se=F.current),S.key!==void 0&&(ee=""+S.key),$.type&&$.type.defaultProps)var ae=$.type.defaultProps;for(ie in S)P.call(S,ie)&&!L.hasOwnProperty(ie)&&(Y[ie]=S[ie]===void 0&&ae!==void 0?ae[ie]:S[ie])}var ie=arguments.length-2;if(ie===1)Y.children=W;else if(1<ie){ae=Array(ie);for(var ve=0;ve<ie;ve++)ae[ve]=arguments[ve+2];Y.children=ae}return{$$typeof:r,type:$.type,key:ee,ref:ne,props:Y,_owner:se}},e.createContext=function($){return $={$$typeof:l,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:i,_context:$},$.Consumer=$},e.createElement=N,e.createFactory=function($){var S=N.bind(null,$);return S.type=$,S},e.createRef=function(){return{current:null}},e.forwardRef=function($){return{$$typeof:u,render:$}},e.isValidElement=q,e.lazy=function($){return{$$typeof:y,_payload:{_status:-1,_result:$},_init:A}},e.memo=function($,S){return{$$typeof:b,type:$,compare:S===void 0?null:S}},e.startTransition=function($){var S=Z.transition;Z.transition={};try{$()}finally{Z.transition=S}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function($,S){return U.current.useCallback($,S)},e.useContext=function($){return U.current.useContext($)},e.useDebugValue=function(){},e.useDeferredValue=function($){return U.current.useDeferredValue($)},e.useEffect=function($,S){return U.current.useEffect($,S)},e.useId=function(){return U.current.useId()},e.useImperativeHandle=function($,S,W){return U.current.useImperativeHandle($,S,W)},e.useInsertionEffect=function($,S){return U.current.useInsertionEffect($,S)},e.useLayoutEffect=function($,S){return U.current.useLayoutEffect($,S)},e.useMemo=function($,S){return U.current.useMemo($,S)},e.useReducer=function($,S,W){return U.current.useReducer($,S,W)},e.useRef=function($){return U.current.useRef($)},e.useState=function($){return U.current.useState($)},e.useSyncExternalStore=function($,S,W){return U.current.useSyncExternalStore($,S,W)},e.useTransition=function(){return U.current.useTransition()},e.version="18.2.0"}}),ii=Wt({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,r){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 t="18.2.0",o=Symbol.for("react.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),k=Symbol.iterator,T="@@iterator";function M(a){if(a===null||typeof a!="object")return null;var f=k&&a[k]||a[T];return typeof f=="function"?f:null}var _={current:null},I={transition:null},O={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},P={current:null},F={},L=null;function N(a){L=a}F.setExtraStackFrame=function(a){L=a},F.getCurrentStack=null,F.getStackAddendum=function(){var a="";L&&(a+=L);var f=F.getCurrentStack;return f&&(a+=f()||""),a};var J=!1,q=!1,j=!1,H=!1,z=!1,V={ReactCurrentDispatcher:_,ReactCurrentBatchConfig:I,ReactCurrentOwner:P};V.ReactDebugCurrentFrame=F,V.ReactCurrentActQueue=O;function G(a){{for(var f=arguments.length,w=new Array(f>1?f-1:0),C=1;C<f;C++)w[C-1]=arguments[C];U("warn",a,w)}}function A(a){{for(var f=arguments.length,w=new Array(f>1?f-1:0),C=1;C<f;C++)w[C-1]=arguments[C];U("error",a,w)}}function U(a,f,w){{var C=V.ReactDebugCurrentFrame,R=C.getStackAddendum();R!==""&&(f+="%s",w=w.concat([R]));var K=w.map(function(B){return String(B)});K.unshift("Warning: "+f),Function.prototype.apply.call(console[a],console,K)}}var Z={};function Q(a,f){{var w=a.constructor,C=w&&(w.displayName||w.name)||"ReactClass",R=C+"."+f;if(Z[R])return;A("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.",f,C),Z[R]=!0}}var $={isMounted:function(a){return!1},enqueueForceUpdate:function(a,f,w){Q(a,"forceUpdate")},enqueueReplaceState:function(a,f,w,C){Q(a,"replaceState")},enqueueSetState:function(a,f,w,C){Q(a,"setState")}},S=Object.assign,W={};Object.freeze(W);function Y(a,f,w){this.props=a,this.context=f,this.refs=W,this.updater=w||$}Y.prototype.isReactComponent={},Y.prototype.setState=function(a,f){if(typeof a!="object"&&typeof a!="function"&&a!=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,a,f,"setState")},Y.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};{var ee={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)."]},ne=function(a,f){Object.defineProperty(Y.prototype,a,{get:function(){G("%s(...) is deprecated in plain JavaScript React classes. %s",f[0],f[1])}})};for(var se in ee)ee.hasOwnProperty(se)&&ne(se,ee[se])}function ae(){}ae.prototype=Y.prototype;function ie(a,f,w){this.props=a,this.context=f,this.refs=W,this.updater=w||$}var ve=ie.prototype=new ae;ve.constructor=ie,S(ve,Y.prototype),ve.isPureReactComponent=!0;function Te(){var a={current:null};return Object.seal(a),a}var Ie=Array.isArray;function Ae(a){return Ie(a)}function wr(a){{var f=typeof Symbol=="function"&&Symbol.toStringTag,w=f&&a[Symbol.toStringTag]||a.constructor.name||"Object";return w}}function Fa(a){try{return ao(a),!1}catch{return!0}}function ao(a){return""+a}function mr(a){if(Fa(a))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wr(a)),ao(a)}function za(a,f,w){var C=a.displayName;if(C)return C;var R=f.displayName||f.name||"";return R!==""?w+"("+R+")":w}function so(a){return a.displayName||"Context"}function ze(a){if(a==null)return null;if(typeof a.tag=="number"&&A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case s:return"Fragment";case n:return"Portal";case l:return"Profiler";case i:return"StrictMode";case y:return"Suspense";case h:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case g:var f=a;return so(f)+".Consumer";case u:var w=a;return so(w._context)+".Provider";case b:return za(a,a.render,"ForwardRef");case v:var C=a.displayName||null;return C!==null?C:ze(a.type)||"Memo";case x:{var R=a,K=R._payload,B=R._init;try{return ze(B(K))}catch{return null}}}return null}var ir=Object.prototype.hasOwnProperty,io={key:!0,ref:!0,__self:!0,__source:!0},lo,co,Jr;Jr={};function uo(a){if(ir.call(a,"ref")){var f=Object.getOwnPropertyDescriptor(a,"ref").get;if(f&&f.isReactWarning)return!1}return a.ref!==void 0}function fo(a){if(ir.call(a,"key")){var f=Object.getOwnPropertyDescriptor(a,"key").get;if(f&&f.isReactWarning)return!1}return a.key!==void 0}function Va(a,f){var w=function(){lo||(lo=!0,A("%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)",f))};w.isReactWarning=!0,Object.defineProperty(a,"key",{get:w,configurable:!0})}function Ba(a,f){var w=function(){co||(co=!0,A("%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)",f))};w.isReactWarning=!0,Object.defineProperty(a,"ref",{get:w,configurable:!0})}function Ha(a){if(typeof a.ref=="string"&&P.current&&a.__self&&P.current.stateNode!==a.__self){var f=ze(P.current.type);Jr[f]||(A('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',f,a.ref),Jr[f]=!0)}}var Qr=function(a,f,w,C,R,K,B){var X={$$typeof:o,type:a,key:f,ref:w,props:B,_owner:K};return X._store={},Object.defineProperty(X._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(X,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(X,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(X.props),Object.freeze(X)),X};function Ga(a,f,w){var C,R={},K=null,B=null,X=null,oe=null;if(f!=null){uo(f)&&(B=f.ref,Ha(f)),fo(f)&&(mr(f.key),K=""+f.key),X=f.__self===void 0?null:f.__self,oe=f.__source===void 0?null:f.__source;for(C in f)ir.call(f,C)&&!io.hasOwnProperty(C)&&(R[C]=f[C])}var le=arguments.length-2;if(le===1)R.children=w;else if(le>1){for(var de=Array(le),ue=0;ue<le;ue++)de[ue]=arguments[ue+2];Object.freeze&&Object.freeze(de),R.children=de}if(a&&a.defaultProps){var fe=a.defaultProps;for(C in fe)R[C]===void 0&&(R[C]=fe[C])}if(K||B){var ge=typeof a=="function"?a.displayName||a.name||"Unknown":a;K&&Va(R,ge),B&&Ba(R,ge)}return Qr(a,K,B,X,oe,P.current,R)}function Wa(a,f){var w=Qr(a.type,f,a.ref,a._self,a._source,a._owner,a.props);return w}function Ua(a,f,w){if(a==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var C,R=S({},a.props),K=a.key,B=a.ref,X=a._self,oe=a._source,le=a._owner;if(f!=null){uo(f)&&(B=f.ref,le=P.current),fo(f)&&(mr(f.key),K=""+f.key);var de;a.type&&a.type.defaultProps&&(de=a.type.defaultProps);for(C in f)ir.call(f,C)&&!io.hasOwnProperty(C)&&(f[C]===void 0&&de!==void 0?R[C]=de[C]:R[C]=f[C])}var ue=arguments.length-2;if(ue===1)R.children=w;else if(ue>1){for(var fe=Array(ue),ge=0;ge<ue;ge++)fe[ge]=arguments[ge+2];R.children=fe}return Qr(a.type,K,B,X,oe,le,R)}function qe(a){return typeof a=="object"&&a!==null&&a.$$typeof===o}var po=".",Ka=":";function Ya(a){var f=/[=:]/g,w={"=":"=0",":":"=2"},C=a.replace(f,function(R){return w[R]});return"$"+C}var bo=!1,Xa=/\/+/g;function go(a){return a.replace(Xa,"$&/")}function et(a,f){return typeof a=="object"&&a!==null&&a.key!=null?(mr(a.key),Ya(""+a.key)):f.toString(36)}function hr(a,f,w,C,R){var K=typeof a;(K==="undefined"||K==="boolean")&&(a=null);var B=!1;if(a===null)B=!0;else switch(K){case"string":case"number":B=!0;break;case"object":switch(a.$$typeof){case o:case n:B=!0}}if(B){var X=a,oe=R(X),le=C===""?po+et(X,0):C;if(Ae(oe)){var de="";le!=null&&(de=go(le)+"/"),hr(oe,f,de,"",function(Bs){return Bs})}else oe!=null&&(qe(oe)&&(oe.key&&(!X||X.key!==oe.key)&&mr(oe.key),oe=Wa(oe,w+(oe.key&&(!X||X.key!==oe.key)?go(""+oe.key)+"/":"")+le)),f.push(oe));return 1}var ue,fe,ge=0,$e=C===""?po:C+Ka;if(Ae(a))for(var Or=0;Or<a.length;Or++)ue=a[Or],fe=$e+et(ue,Or),ge+=hr(ue,f,w,fe,R);else{var ct=M(a);if(typeof ct=="function"){var Fo=a;ct===Fo.entries&&(bo||G("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bo=!0);for(var zs=ct.call(Fo),zo,Vs=0;!(zo=zs.next()).done;)ue=zo.value,fe=$e+et(ue,Vs++),ge+=hr(ue,f,w,fe,R)}else if(K==="object"){var Vo=String(a);throw new Error("Objects are not valid as a React child (found: "+(Vo==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":Vo)+"). If you meant to render a collection of children, use an array instead.")}}return ge}function Cr(a,f,w){if(a==null)return a;var C=[],R=0;return hr(a,C,"","",function(K){return f.call(w,K,R++)}),C}function qa(a){var f=0;return Cr(a,function(){f++}),f}function Za(a,f,w){Cr(a,function(){f.apply(this,arguments)},w)}function Ja(a){return Cr(a,function(f){return f})||[]}function Qa(a){if(!qe(a))throw new Error("React.Children.only expected to receive a single React element child.");return a}function es(a){var f={$$typeof:g,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};f.Provider={$$typeof:u,_context:f};var w=!1,C=!1,R=!1;{var K={$$typeof:g,_context:f};Object.defineProperties(K,{Provider:{get:function(){return C||(C=!0,A("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),f.Provider},set:function(B){f.Provider=B}},_currentValue:{get:function(){return f._currentValue},set:function(B){f._currentValue=B}},_currentValue2:{get:function(){return f._currentValue2},set:function(B){f._currentValue2=B}},_threadCount:{get:function(){return f._threadCount},set:function(B){f._threadCount=B}},Consumer:{get:function(){return w||(w=!0,A("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),f.Consumer}},displayName:{get:function(){return f.displayName},set:function(B){R||(G("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",B),R=!0)}}}),f.Consumer=K}return f._currentRenderer=null,f._currentRenderer2=null,f}var lr=-1,rt=0,vo=1,rs=2;function ts(a){if(a._status===lr){var f=a._result,w=f();if(w.then(function(K){if(a._status===rt||a._status===lr){var B=a;B._status=vo,B._result=K}},function(K){if(a._status===rt||a._status===lr){var B=a;B._status=rs,B._result=K}}),a._status===lr){var C=a;C._status=rt,C._result=w}}if(a._status===vo){var R=a._result;return R===void 0&&A(`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'))
5
5
 
6
- Did you accidentally put curly braces around the import?`,Z),"default"in Z||T(`lazy: Expected the result of a dynamic import() call. Instead received: %s
6
+ Did you accidentally put curly braces around the import?`,R),"default"in R||A(`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'))`,Z),Z.default}else throw m._result}function _1(m){var M={_status:Ar,_result:m},j={$$typeof:b,_payload:M,_init:j1};{var U,Z;Object.defineProperties(j,{defaultProps:{configurable:!0,get:function(){return U},set:function(oe){T("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."),U=oe,Object.defineProperty(j,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Z},set:function(oe){T("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."),Z=oe,Object.defineProperty(j,"propTypes",{enumerable:!0})}}})}return j}function z1(m){m!=null&&m.$$typeof===h?T("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof m!="function"?T("forwardRef requires a render function but was given %s.",m===null?"null":typeof m):m.length!==0&&m.length!==2&&T("forwardRef render functions accept exactly two parameters: props and ref. %s",m.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),m!=null&&(m.defaultProps!=null||m.propTypes!=null)&&T("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var M={$$typeof:c,render:m};{var j;Object.defineProperty(M,"displayName",{enumerable:!1,configurable:!0,get:function(){return j},set:function(U){j=U,!m.name&&!m.displayName&&(m.displayName=U)}})}return M}var mc;mc=Symbol.for("react.module.reference");function gc(m){return!!(typeof m=="string"||typeof m=="function"||m===i||m===s||I||m===a||m===f||m===p||R||m===g||F||A||B||typeof m=="object"&&m!==null&&(m.$$typeof===b||m.$$typeof===h||m.$$typeof===l||m.$$typeof===d||m.$$typeof===c||m.$$typeof===mc||m.getModuleId!==void 0))}function U1(m,M){gc(m)||T("memo: The first argument must be a component. Instead received: %s",m===null?"null":typeof m);var j={$$typeof:h,type:m,compare:M===void 0?null:M};{var U;Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:function(){return U},set:function(Z){U=Z,!m.name&&!m.displayName&&(m.displayName=Z)}})}return j}function qe(){var m=w.current;return m===null&&T(`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:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,R),R.default}else throw a._result}function os(a){var f={_status:lr,_result:a},w={$$typeof:x,_payload:f,_init:ts};{var C,R;Object.defineProperties(w,{defaultProps:{configurable:!0,get:function(){return C},set:function(K){A("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."),C=K,Object.defineProperty(w,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return R},set:function(K){A("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."),R=K,Object.defineProperty(w,"propTypes",{enumerable:!0})}}})}return w}function ns(a){a!=null&&a.$$typeof===v?A("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof a!="function"?A("forwardRef requires a render function but was given %s.",a===null?"null":typeof a):a.length!==0&&a.length!==2&&A("forwardRef render functions accept exactly two parameters: props and ref. %s",a.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),a!=null&&(a.defaultProps!=null||a.propTypes!=null)&&A("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var f={$$typeof:b,render:a};{var w;Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return w},set:function(C){w=C,!a.name&&!a.displayName&&(a.displayName=C)}})}return f}var yo;yo=Symbol.for("react.module.reference");function $o(a){return!!(typeof a=="string"||typeof a=="function"||a===s||a===l||z||a===i||a===y||a===h||H||a===E||J||q||j||typeof a=="object"&&a!==null&&(a.$$typeof===x||a.$$typeof===v||a.$$typeof===u||a.$$typeof===g||a.$$typeof===b||a.$$typeof===yo||a.getModuleId!==void 0))}function as(a,f){$o(a)||A("memo: The first argument must be a component. Instead received: %s",a===null?"null":typeof a);var w={$$typeof:v,type:a,compare:f===void 0?null:f};{var C;Object.defineProperty(w,"displayName",{enumerable:!1,configurable:!0,get:function(){return C},set:function(R){C=R,!a.name&&!a.displayName&&(a.displayName=R)}})}return w}function xe(){var a=_.current;return a===null&&A(`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.`),m}function H1(m){var M=qe();if(m._context!==void 0){var j=m._context;j.Consumer===m?T("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?"):j.Provider===m&&T("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return M.useContext(m)}function G1(m){var M=qe();return M.useState(m)}function W1(m,M,j){var U=qe();return U.useReducer(m,M,j)}function Y1(m){var M=qe();return M.useRef(m)}function q1(m,M){var j=qe();return j.useEffect(m,M)}function Z1(m,M){var j=qe();return j.useInsertionEffect(m,M)}function X1(m,M){var j=qe();return j.useLayoutEffect(m,M)}function J1(m,M){var j=qe();return j.useCallback(m,M)}function Q1(m,M){var j=qe();return j.useMemo(m,M)}function e$(m,M,j){var U=qe();return U.useImperativeHandle(m,M,j)}function t$(m,M){{var j=qe();return j.useDebugValue(m,M)}}function n$(){var m=qe();return m.useTransition()}function r$(m){var M=qe();return M.useDeferredValue(m)}function o$(){var m=qe();return m.useId()}function i$(m,M,j){var U=qe();return U.useSyncExternalStore(m,M,j)}var Mr=0,vc,yc,$c,xc,wc,Cc,Dc;function Ec(){}Ec.__reactDisabledLog=!0;function a$(){{if(Mr===0){vc=console.log,yc=console.info,$c=console.warn,xc=console.error,wc=console.group,Cc=console.groupCollapsed,Dc=console.groupEnd;var m={configurable:!0,enumerable:!0,value:Ec,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Mr++}}function s$(){{if(Mr--,Mr===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},m,{value:vc}),info:O({},m,{value:yc}),warn:O({},m,{value:$c}),error:O({},m,{value:xc}),group:O({},m,{value:wc}),groupCollapsed:O({},m,{value:Cc}),groupEnd:O({},m,{value:Dc})})}Mr<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ka=K.ReactCurrentDispatcher,Ra;function Vo(m,M,j){{if(Ra===void 0)try{throw Error()}catch(Z){var U=Z.stack.trim().match(/\n( *(at )?)/);Ra=U&&U[1]||""}return`
14
- `+Ra+m}}var Fa=!1,Oo;{var l$=typeof WeakMap=="function"?WeakMap:Map;Oo=new l$}function Pc(m,M){if(!m||Fa)return"";{var j=Oo.get(m);if(j!==void 0)return j}var U;Fa=!0;var Z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=ka.current,ka.current=null,a$();try{if(M){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(Ke){U=Ke}Reflect.construct(m,[],ee)}else{try{ee.call()}catch(Ke){U=Ke}m.call(ee.prototype)}}else{try{throw Error()}catch(Ke){U=Ke}m()}}catch(Ke){if(Ke&&U&&typeof Ke.stack=="string"){for(var ie=Ke.stack.split(`
15
- `),pe=U.stack.split(`
16
- `),ge=ie.length-1,we=pe.length-1;ge>=1&&we>=0&&ie[ge]!==pe[we];)we--;for(;ge>=1&&we>=0;ge--,we--)if(ie[ge]!==pe[we]){if(ge!==1||we!==1)do if(ge--,we--,we<0||ie[ge]!==pe[we]){var Ce=`
17
- `+ie[ge].replace(" at new "," at ");return m.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",m.displayName)),typeof m=="function"&&Oo.set(m,Ce),Ce}while(ge>=1&&we>=0);break}}}finally{Fa=!1,ka.current=oe,s$(),Error.prepareStackTrace=Z}var De=m?m.displayName||m.name:"",Me=De?Vo(De):"";return typeof m=="function"&&Oo.set(m,Me),Me}function u$(m,M,j){return Pc(m,!1)}function c$(m){var M=m.prototype;return!!(M&&M.isReactComponent)}function No(m,M,j){if(m==null)return"";if(typeof m=="function")return Pc(m,c$(m));if(typeof m=="string")return Vo(m);switch(m){case f:return Vo("Suspense");case p:return Vo("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case c:return u$(m.render);case h:return No(m.type,M,j);case b:{var U=m,Z=U._payload,oe=U._init;try{return No(oe(Z),M,j)}catch{}}}return""}var Sc={},Tc=K.ReactDebugCurrentFrame;function Ko(m){if(m){var M=m._owner,j=No(m.type,m._source,M?M.type:null);Tc.setExtraStackFrame(j)}else Tc.setExtraStackFrame(null)}function d$(m,M,j,U,Z){{var oe=Function.call.bind($e);for(var ee in m)if(oe(m,ee)){var ie=void 0;try{if(typeof m[ee]!="function"){var pe=Error((U||"React class")+": "+j+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw pe.name="Invariant Violation",pe}ie=m[ee](M,ee,U,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ge){ie=ge}ie&&!(ie instanceof Error)&&(Ko(Z),T("%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).",U||"React class",j,ee,typeof ie),Ko(null)),ie instanceof Error&&!(ie.message in Sc)&&(Sc[ie.message]=!0,Ko(Z),T("Failed %s type: %s",j,ie.message),Ko(null))}}}function _n(m){if(m){var M=m._owner,j=No(m.type,m._source,M?M.type:null);L(j)}else L(null)}var Ba;Ba=!1;function Ac(){if(k.current){var m=fe(k.current.type);if(m)return`
13
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),a}function ss(a){var f=xe();if(a._context!==void 0){var w=a._context;w.Consumer===a?A("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?"):w.Provider===a&&A("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return f.useContext(a)}function is(a){var f=xe();return f.useState(a)}function ls(a,f,w){var C=xe();return C.useReducer(a,f,w)}function cs(a){var f=xe();return f.useRef(a)}function ds(a,f){var w=xe();return w.useEffect(a,f)}function us(a,f){var w=xe();return w.useInsertionEffect(a,f)}function fs(a,f){var w=xe();return w.useLayoutEffect(a,f)}function ps(a,f){var w=xe();return w.useCallback(a,f)}function bs(a,f){var w=xe();return w.useMemo(a,f)}function gs(a,f,w){var C=xe();return C.useImperativeHandle(a,f,w)}function vs(a,f){{var w=xe();return w.useDebugValue(a,f)}}function ys(){var a=xe();return a.useTransition()}function $s(a){var f=xe();return f.useDeferredValue(a)}function xs(){var a=xe();return a.useId()}function ws(a,f,w){var C=xe();return C.useSyncExternalStore(a,f,w)}var cr=0,xo,wo,mo,ho,Co,Eo,ko;function So(){}So.__reactDisabledLog=!0;function ms(){{if(cr===0){xo=console.log,wo=console.info,mo=console.warn,ho=console.error,Co=console.group,Eo=console.groupCollapsed,ko=console.groupEnd;var a={configurable:!0,enumerable:!0,value:So,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}cr++}}function hs(){{if(cr--,cr===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},a,{value:xo}),info:S({},a,{value:wo}),warn:S({},a,{value:mo}),error:S({},a,{value:ho}),group:S({},a,{value:Co}),groupCollapsed:S({},a,{value:Eo}),groupEnd:S({},a,{value:ko})})}cr<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var tt=V.ReactCurrentDispatcher,ot;function Er(a,f,w){{if(ot===void 0)try{throw Error()}catch(R){var C=R.stack.trim().match(/\n( *(at )?)/);ot=C&&C[1]||""}return`
14
+ `+ot+a}}var nt=!1,kr;{var Cs=typeof WeakMap=="function"?WeakMap:Map;kr=new Cs}function To(a,f){if(!a||nt)return"";{var w=kr.get(a);if(w!==void 0)return w}var C;nt=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=tt.current,tt.current=null,ms();try{if(f){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch($e){C=$e}Reflect.construct(a,[],B)}else{try{B.call()}catch($e){C=$e}a.call(B.prototype)}}else{try{throw Error()}catch($e){C=$e}a()}}catch($e){if($e&&C&&typeof $e.stack=="string"){for(var X=$e.stack.split(`
15
+ `),oe=C.stack.split(`
16
+ `),le=X.length-1,de=oe.length-1;le>=1&&de>=0&&X[le]!==oe[de];)de--;for(;le>=1&&de>=0;le--,de--)if(X[le]!==oe[de]){if(le!==1||de!==1)do if(le--,de--,de<0||X[le]!==oe[de]){var ue=`
17
+ `+X[le].replace(" at new "," at ");return a.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",a.displayName)),typeof a=="function"&&kr.set(a,ue),ue}while(le>=1&&de>=0);break}}}finally{nt=!1,tt.current=K,hs(),Error.prepareStackTrace=R}var fe=a?a.displayName||a.name:"",ge=fe?Er(fe):"";return typeof a=="function"&&kr.set(a,ge),ge}function Es(a,f,w){return To(a,!1)}function ks(a){var f=a.prototype;return!!(f&&f.isReactComponent)}function Sr(a,f,w){if(a==null)return"";if(typeof a=="function")return To(a,ks(a));if(typeof a=="string")return Er(a);switch(a){case y:return Er("Suspense");case h:return Er("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case b:return Es(a.render);case v:return Sr(a.type,f,w);case x:{var C=a,R=C._payload,K=C._init;try{return Sr(K(R),f,w)}catch{}}}return""}var Po={},Ro=V.ReactDebugCurrentFrame;function Tr(a){if(a){var f=a._owner,w=Sr(a.type,a._source,f?f.type:null);Ro.setExtraStackFrame(w)}else Ro.setExtraStackFrame(null)}function Ss(a,f,w,C,R){{var K=Function.call.bind(ir);for(var B in a)if(K(a,B)){var X=void 0;try{if(typeof a[B]!="function"){var oe=Error((C||"React class")+": "+w+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw oe.name="Invariant Violation",oe}X=a[B](f,B,C,w,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(le){X=le}X&&!(X instanceof Error)&&(Tr(R),A("%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).",C||"React class",w,B,typeof X),Tr(null)),X instanceof Error&&!(X.message in Po)&&(Po[X.message]=!0,Tr(R),A("Failed %s type: %s",w,X.message),Tr(null))}}}function Ze(a){if(a){var f=a._owner,w=Sr(a.type,a._source,f?f.type:null);N(w)}else N(null)}var at;at=!1;function Oo(){if(P.current){var a=ze(P.current.type);if(a)return`
18
18
 
19
- Check the render method of \``+m+"`."}return""}function f$(m){if(m!==void 0){var M=m.fileName.replace(/^.*[\\\/]/,""),j=m.lineNumber;return`
19
+ Check the render method of \``+a+"`."}return""}function Ts(a){if(a!==void 0){var f=a.fileName.replace(/^.*[\\\/]/,""),w=a.lineNumber;return`
20
20
 
21
- Check your code at `+M+":"+j+"."}return""}function p$(m){return m!=null?f$(m.__source):""}var Mc={};function h$(m){var M=Ac();if(!M){var j=typeof m=="string"?m:m.displayName||m.name;j&&(M=`
21
+ Check your code at `+f+":"+w+"."}return""}function Ps(a){return a!=null?Ts(a.__source):""}var jo={};function Rs(a){var f=Oo();if(!f){var w=typeof a=="string"?a:a.displayName||a.name;w&&(f=`
22
22
 
23
- Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(!m._store||m._store.validated||m.key!=null)){m._store.validated=!0;var j=h$(M);if(!Mc[j]){Mc[j]=!0;var U="";m&&m._owner&&m._owner!==k.current&&(U=" It was passed a child from "+fe(m._owner.type)+"."),_n(m),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,U),_n(null)}}}function Rc(m,M){if(typeof m=="object"){if(Ue(m))for(var j=0;j<m.length;j++){var U=m[j];jn(U)&&kc(U,M)}else if(jn(m))m._store&&(m._store.validated=!0);else if(m){var Z=C(m);if(typeof Z=="function"&&Z!==m.entries)for(var oe=Z.call(m),ee;!(ee=oe.next()).done;)jn(ee.value)&&kc(ee.value,M)}}}function Fc(m){{var M=m.type;if(M==null||typeof M=="string")return;var j;if(typeof M=="function")j=M.propTypes;else if(typeof M=="object"&&(M.$$typeof===c||M.$$typeof===h))j=M.propTypes;else return;if(j){var U=fe(M);d$(j,m.props,"prop",U,m)}else if(M.PropTypes!==void 0&&!Ba){Ba=!0;var Z=fe(M);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Z||"Unknown")}typeof M.getDefaultProps=="function"&&!M.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function b$(m){{for(var M=Object.keys(m.props),j=0;j<M.length;j++){var U=M[j];if(U!=="children"&&U!=="key"){_n(m),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",U),_n(null);break}}m.ref!==null&&(_n(m),T("Invalid attribute `ref` supplied to `React.Fragment`."),_n(null))}}function Bc(m,M,j){var U=gc(m);if(!U){var Z="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(Z+=" 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 oe=p$(M);oe?Z+=oe:Z+=Ac();var ee;m===null?ee="null":Ue(m)?ee="array":m!==void 0&&m.$$typeof===r?(ee="<"+(fe(m.type)||"Unknown")+" />",Z=" Did you accidentally export a JSX literal instead of a component?"):ee=typeof m,T("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ee,Z)}var ie=Tr.apply(this,arguments);if(ie==null)return ie;if(U)for(var pe=2;pe<arguments.length;pe++)Rc(arguments[pe],m);return m===i?b$(ie):Fc(ie),ie}var Ic=!1;function m$(m){var M=Bc.bind(null,m);return M.type=m,Ic||(Ic=!0,V("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(M,"type",{enumerable:!1,get:function(){return V("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:m}),m}}),M}function g$(m,M,j){for(var U=k1.apply(this,arguments),Z=2;Z<arguments.length;Z++)Rc(arguments[Z],U.type);return Fc(U),U}function v$(m,M){var j=E.transition;E.transition={};var U=E.transition;E.transition._updatedFibers=new Set;try{m()}finally{if(E.transition=j,j===null&&U._updatedFibers){var Z=U._updatedFibers.size;Z>10&&V("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."),U._updatedFibers.clear()}}}var Lc=!1,jo=null;function y$(m){if(jo===null)try{var M=("require"+Math.random()).slice(0,7),j=t&&t[M];jo=j.call(t,"timers").setImmediate}catch{jo=function(Z){Lc===!1&&(Lc=!0,typeof MessageChannel>"u"&&T("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 oe=new MessageChannel;oe.port1.onmessage=Z,oe.port2.postMessage(void 0)}}return jo(m)}var zn=0,Vc=!1;function $$(m){{var M=zn;zn++,P.current===null&&(P.current=[]);var j=P.isBatchingLegacy,U;try{if(P.isBatchingLegacy=!0,U=m(),!j&&P.didScheduleLegacyUpdate){var Z=P.current;Z!==null&&(P.didScheduleLegacyUpdate=!1,Va(Z))}}catch(De){throw _o(M),De}finally{P.isBatchingLegacy=j}if(U!==null&&typeof U=="object"&&typeof U.then=="function"){var oe=U,ee=!1,ie={then:function(De,Me){ee=!0,oe.then(function(Ke){_o(M),zn===0?Ia(Ke,De,Me):De(Ke)},function(Ke){_o(M),Me(Ke)})}};return!Vc&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){ee||(Vc=!0,T("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 () => ...);"))}),ie}else{var pe=U;if(_o(M),zn===0){var ge=P.current;ge!==null&&(Va(ge),P.current=null);var we={then:function(De,Me){P.current===null?(P.current=[],Ia(pe,De,Me)):De(pe)}};return we}else{var Ce={then:function(De,Me){De(pe)}};return Ce}}}}function _o(m){m!==zn-1&&T("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),zn=m}function Ia(m,M,j){{var U=P.current;if(U!==null)try{Va(U),y$(function(){U.length===0?(P.current=null,M(m)):Ia(m,M,j)})}catch(Z){j(Z)}else M(m)}}var La=!1;function Va(m){if(!La){La=!0;var M=0;try{for(;M<m.length;M++){var j=m[M];do j=j(!0);while(j!==null)}m.length=0}catch(U){throw m=m.slice(M+1),U}finally{La=!1}}}var x$=Bc,w$=g$,C$=m$,D$={map:Lo,forEach:L1,count:I1,toArray:V1,only:O1};e.Children=D$,e.Component=J,e.Fragment=i,e.Profiler=s,e.PureComponent=te,e.StrictMode=a,e.Suspense=f,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,e.cloneElement=w$,e.createContext=N1,e.createElement=x$,e.createFactory=C$,e.createRef=se,e.forwardRef=z1,e.isValidElement=jn,e.lazy=_1,e.memo=U1,e.startTransition=v$,e.unstable_act=$$,e.useCallback=J1,e.useContext=H1,e.useDebugValue=t$,e.useDeferredValue=r$,e.useEffect=q1,e.useId=o$,e.useImperativeHandle=e$,e.useInsertionEffect=Z1,e.useLayoutEffect=X1,e.useMemo=Q1,e.useReducer=W1,e.useRef=Y1,e.useState=G1,e.useSyncExternalStore=i$,e.useTransition=n$,e.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),G$=Il({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){process.env.NODE_ENV==="production"?t.exports=U$():t.exports=H$()}});/**
23
+ Check the top-level render call using <`+w+">.")}return f}function Mo(a,f){if(!(!a._store||a._store.validated||a.key!=null)){a._store.validated=!0;var w=Rs(f);if(!jo[w]){jo[w]=!0;var C="";a&&a._owner&&a._owner!==P.current&&(C=" It was passed a child from "+ze(a._owner.type)+"."),Ze(a),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',w,C),Ze(null)}}}function _o(a,f){if(typeof a=="object"){if(Ae(a))for(var w=0;w<a.length;w++){var C=a[w];qe(C)&&Mo(C,f)}else if(qe(a))a._store&&(a._store.validated=!0);else if(a){var R=M(a);if(typeof R=="function"&&R!==a.entries)for(var K=R.call(a),B;!(B=K.next()).done;)qe(B.value)&&Mo(B.value,f)}}}function Io(a){{var f=a.type;if(f==null||typeof f=="string")return;var w;if(typeof f=="function")w=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===b||f.$$typeof===v))w=f.propTypes;else return;if(w){var C=ze(f);Ss(w,a.props,"prop",C,a)}else if(f.PropTypes!==void 0&&!at){at=!0;var R=ze(f);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Os(a){{for(var f=Object.keys(a.props),w=0;w<f.length;w++){var C=f[w];if(C!=="children"&&C!=="key"){Ze(a),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),Ze(null);break}}a.ref!==null&&(Ze(a),A("Invalid attribute `ref` supplied to `React.Fragment`."),Ze(null))}}function Ao(a,f,w){var C=$o(a);if(!C){var R="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(R+=" 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 K=Ps(f);K?R+=K:R+=Oo();var B;a===null?B="null":Ae(a)?B="array":a!==void 0&&a.$$typeof===o?(B="<"+(ze(a.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):B=typeof a,A("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",B,R)}var X=Ga.apply(this,arguments);if(X==null)return X;if(C)for(var oe=2;oe<arguments.length;oe++)_o(arguments[oe],a);return a===s?Os(X):Io(X),X}var Lo=!1;function js(a){var f=Ao.bind(null,a);return f.type=a,Lo||(Lo=!0,G("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(f,"type",{enumerable:!1,get:function(){return G("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:a}),a}}),f}function Ms(a,f,w){for(var C=Ua.apply(this,arguments),R=2;R<arguments.length;R++)_o(arguments[R],C.type);return Io(C),C}function _s(a,f){var w=I.transition;I.transition={};var C=I.transition;I.transition._updatedFibers=new Set;try{a()}finally{if(I.transition=w,w===null&&C._updatedFibers){var R=C._updatedFibers.size;R>10&&G("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."),C._updatedFibers.clear()}}}var No=!1,Pr=null;function Is(a){if(Pr===null)try{var f=("require"+Math.random()).slice(0,7),w=r&&r[f];Pr=w.call(r,"timers").setImmediate}catch{Pr=function(R){No===!1&&(No=!0,typeof MessageChannel>"u"&&A("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 K=new MessageChannel;K.port1.onmessage=R,K.port2.postMessage(void 0)}}return Pr(a)}var Je=0,Do=!1;function As(a){{var f=Je;Je++,O.current===null&&(O.current=[]);var w=O.isBatchingLegacy,C;try{if(O.isBatchingLegacy=!0,C=a(),!w&&O.didScheduleLegacyUpdate){var R=O.current;R!==null&&(O.didScheduleLegacyUpdate=!1,lt(R))}}catch(fe){throw Rr(f),fe}finally{O.isBatchingLegacy=w}if(C!==null&&typeof C=="object"&&typeof C.then=="function"){var K=C,B=!1,X={then:function(fe,ge){B=!0,K.then(function($e){Rr(f),Je===0?st($e,fe,ge):fe($e)},function($e){Rr(f),ge($e)})}};return!Do&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){B||(Do=!0,A("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 () => ...);"))}),X}else{var oe=C;if(Rr(f),Je===0){var le=O.current;le!==null&&(lt(le),O.current=null);var de={then:function(fe,ge){O.current===null?(O.current=[],st(oe,fe,ge)):fe(oe)}};return de}else{var ue={then:function(fe,ge){fe(oe)}};return ue}}}}function Rr(a){a!==Je-1&&A("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Je=a}function st(a,f,w){{var C=O.current;if(C!==null)try{lt(C),Is(function(){C.length===0?(O.current=null,f(a)):st(a,f,w)})}catch(R){w(R)}else f(a)}}var it=!1;function lt(a){if(!it){it=!0;var f=0;try{for(;f<a.length;f++){var w=a[f];do w=w(!0);while(w!==null)}a.length=0}catch(C){throw a=a.slice(f+1),C}finally{it=!1}}}var Ls=Ao,Ns=Ms,Ds=js,Fs={map:Cr,forEach:Za,count:qa,toArray:Ja,only:Qa};e.Children=Fs,e.Component=Y,e.Fragment=s,e.Profiler=l,e.PureComponent=ie,e.StrictMode=i,e.Suspense=y,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,e.cloneElement=Ns,e.createContext=es,e.createElement=Ls,e.createFactory=Ds,e.createRef=Te,e.forwardRef=ns,e.isValidElement=qe,e.lazy=os,e.memo=as,e.startTransition=_s,e.unstable_act=As,e.useCallback=ps,e.useContext=ss,e.useDebugValue=vs,e.useDeferredValue=$s,e.useEffect=ds,e.useId=xs,e.useImperativeHandle=gs,e.useInsertionEffect=us,e.useLayoutEffect=fs,e.useMemo=bs,e.useReducer=ls,e.useRef=cs,e.useState=is,e.useSyncExternalStore=ws,e.useTransition=ys,e.version=t,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),li=Wt({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,r){process.env.NODE_ENV==="production"?r.exports=si():r.exports=ii()}});/**
24
24
  * @license React
25
25
  * react.development.js
26
26
  *
@@ -36,20 +36,20 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){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 _c=z$(G$());function W$(e){return _c.Children.toArray(e).filter(t=>(0,_c.isValidElement)(t))}var[Y$,Mp]=M$({name:"AvatarGroupContext",strict:!1}),q$={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"},Z$={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"},X$={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"},J$={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"},Q$={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"},e3={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"},t3={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"},de={solid:q$,shadow:Z$,bordered:X$,flat:J$,faded:Q$,light:e3,ghost:t3},zc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tt=e=>!e||typeof e!="object"||Object.keys(e).length===0,n3=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function kp(e,t){e.forEach(function(n){Array.isArray(n)?kp(n,t):t.push(n)})}function Rp(e){let t=[];return kp(e,t),t}var Fp=(...e)=>Rp(e).filter(Boolean),Bp=(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]=Bp(a,s):Array.isArray(a)||Array.isArray(s)?n[i]=Fp(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},Uc=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function r3(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Ip(t))&&(r&&(r+=" "),r+=n);return r}function Ip(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Ip(e[r]))&&(n&&(n+=" "),n+=t);return n}var Ll="-";function o3(e){var t=a3(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(s){var l=s.split(Ll);return l[0]===""&&l.length!==1&&l.shift(),Lp(l,t)||i3(s)}function a(s,l){var d=n[s]||[];return l&&o[s]?[].concat(d,o[s]):d}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Lp(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Lp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(Ll);return(a=t.validators.find(function(s){var l=s.validator;return l(i)}))==null?void 0:a.classGroupId}}var Hc=/^\[(.+)\]$/;function i3(e){if(Hc.test(e)){var t=Hc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function a3(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=l3(Object.entries(e.classGroups),n);return o.forEach(function(i){var a=i[0],s=i[1];Ms(s,r,a,t)}),r}function Ms(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:Gc(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(s3(o)){Ms(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];Ms(l,Gc(t,s),n,r)})})}function Gc(e,t){var n=e;return t.split(Ll).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function s3(e){return e.isThemeGetter}function l3(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],d=s[1];return[t+l,d]})):a});return[r,i]}):e}function u3(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 Vp="!";function c3(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(a){for(var s=[],l=0,d=0,c,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(d,f)),d=f+o;continue}if(p==="/"){c=f;continue}}p==="["?l++:p==="]"&&l--}var h=s.length===0?a:a.substring(d),b=h.startsWith(Vp),g=b?h.substring(1):h,y=c&&c>d?c-d:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:y}}}function d3(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 f3(e){return{cache:u3(e.cacheSize),splitModifiers:c3(e),...o3(e)}}var p3=/\s+/;function h3(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(p3).map(function(a){var s=n(a),l=s.modifiers,d=s.hasImportantModifier,c=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?c.substring(0,f):c),h=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:a};if(p=r(c),!p)return{isTailwindClass:!1,originalClassName:a};h=!1}var b=d3(l).join(":"),g=d?b+Vp:b;return{isTailwindClass:!0,modifierId:g,classGroupId:p,originalClassName:a,hasPostfixModifier:h}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var s=a.modifierId,l=a.classGroupId,d=a.hasPostfixModifier,c=s+l;return i.has(c)?!1:(i.add(c),o(l,d).forEach(function(f){return i.add(s+f)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function ks(){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(d){var c=t[0],f=t.slice(1),p=f.reduce(function(h,b){return b(h)},c());return r=f3(p),o=r.cache.get,i=r.cache.set,a=l,l(d)}function l(d){var c=o(d);if(c)return c;var f=h3(d,r);return i(d,f),f}return function(){return a(r3.apply(null,arguments))}}function xe(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var Op=/^\[(?:([a-z-]+):)?(.+)\]$/i,b3=/^\d+\/\d+$/,m3=new Set(["px","full","screen"]),g3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,v3=/\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$/,y3=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function gt(e){return wn(e)||m3.has(e)||b3.test(e)||Rs(e)}function Rs(e){return Bn(e,"length",E3)}function $3(e){return Bn(e,"size",Np)}function x3(e){return Bn(e,"position",Np)}function w3(e){return Bn(e,"url",P3)}function Uo(e){return Bn(e,"number",wn)}function wn(e){return!Number.isNaN(Number(e))}function C3(e){return e.endsWith("%")&&wn(e.slice(0,-1))}function kr(e){return Wc(e)||Bn(e,"number",Wc)}function ce(e){return Op.test(e)}function Rr(){return!0}function Jt(e){return g3.test(e)}function D3(e){return Bn(e,"",S3)}function Bn(e,t,n){var r=Op.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function E3(e){return v3.test(e)}function Np(){return!1}function P3(e){return e.startsWith("url(")}function Wc(e){return Number.isInteger(Number(e))}function S3(e){return y3.test(e)}function Fs(){var e=xe("colors"),t=xe("spacing"),n=xe("blur"),r=xe("brightness"),o=xe("borderColor"),i=xe("borderRadius"),a=xe("borderSpacing"),s=xe("borderWidth"),l=xe("contrast"),d=xe("grayscale"),c=xe("hueRotate"),f=xe("invert"),p=xe("gap"),h=xe("gradientColorStops"),b=xe("gradientColorStopPositions"),g=xe("inset"),y=xe("margin"),$=xe("opacity"),C=xe("padding"),w=xe("saturate"),E=xe("scale"),P=xe("sepia"),k=xe("skew"),N=xe("space"),v=xe("translate"),L=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},A=function(){return["auto",ce,t]},B=function(){return[ce,t]},R=function(){return["",gt]},I=function(){return["auto",wn,ce]},K=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},V=function(){return["solid","dashed","dotted","double","none"]},T=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},G=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",ce]},H=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},D=function(){return[wn,Uo]},O=function(){return[wn,ce]};return{cacheSize:500,theme:{colors:[Rr],spacing:[gt],blur:["none","",Jt,ce],brightness:D(),borderColor:[e],borderRadius:["none","","full",Jt,ce],borderSpacing:B(),borderWidth:R(),contrast:D(),grayscale:Y(),hueRotate:O(),invert:Y(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[C3,Rs],inset:A(),margin:A(),opacity:D(),padding:B(),saturate:D(),scale:D(),sepia:Y(),skew:O(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"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(),[ce])}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",kr]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ce]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",kr]}],"grid-cols":[{"grid-cols":[Rr]}],"col-start-end":[{col:["auto",{span:["full",kr]},ce]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Rr]}],"row-start-end":[{row:["auto",{span:[kr]},ce]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(G())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(G(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(G(),["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:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ce,t]}],"min-w":[{"min-w":["min","max","fit",ce,gt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Jt]},Jt,ce]}],h:[{h:[ce,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ce,gt]}],"max-h":[{"max-h":[ce,t,"min","max","fit"]}],"font-size":[{text:["base",Jt,Rs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Uo]}],"font-family":[{font:[Rr]}],"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",ce]}],"line-clamp":[{"line-clamp":["none",wn,Uo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ce,gt]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"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(V(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",gt]}],"underline-offset":[{"underline-offset":["auto",ce,gt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],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",ce]}],"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(),[x3])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},w3]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"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(V(),["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:V()}],"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(V())}],"outline-offset":[{"outline-offset":[ce,gt]}],"outline-w":[{outline:[gt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[gt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jt,D3]}],"shadow-color":[{shadow:[Rr]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":T()}],"bg-blend":[{"bg-blend":T()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Jt,ce]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"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",ce]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[kr,ce]}],"translate-x":[{"translate-x":[v]}],"translate-y":[{"translate-y":[v]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ce]}],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",ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gt,Uo]}],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 T3(e,t){for(var n in t)Kp(e,n,t[n]);return e}var A3=Object.prototype.hasOwnProperty,M3=new Set(["string","number","boolean"]);function Kp(e,t,n){if(!A3.call(e,t)||M3.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)Kp(e[t],r,n[r])}}function k3(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"?ks.apply(void 0,[Fs,e].concat(n)):ks.apply(void 0,[function(){return T3(Fs(),e)}].concat(n))}var R3=ks(Fs),F3={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},jp=e=>e||void 0,eo=(...e)=>jp(Rp(e).filter(Boolean).join(" ")),Na=null,$i={},Bs=!1,Fr=(...e)=>t=>t.twMerge?((!Na||Bs)&&(Bs=!1,Na=tt($i)?R3:k3($i)),jp(Na(eo(e)))):eo(e),Yc=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=eo(e[n],t[n]):e[n]=t[n];return e},B3=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:a=[],defaultVariants:s={}}=e,l={...F3,...t},d=n!=null&&n.base?eo(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!tt(n.variants)?Bp(o,n.variants):o,f=n!=null&&n.defaultVariants&&!tt(n.defaultVariants)?{...n.defaultVariants,...s}:s;!tt(l.twMergeConfig)&&!n3(l.twMergeConfig,$i)&&(Bs=!0,$i=l.twMergeConfig);let p=tt(n==null?void 0:n.slots),h=tt(r)?{}:{base:eo(e==null?void 0:e.base,p&&(n==null?void 0:n.base)),...r},b=p?h:Yc({...n==null?void 0:n.slots},tt(h)?{base:e==null?void 0:e.base}:h),g=$=>{if(tt(c)&&tt(r)&&p)return Fr(d,$==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=(B,R,I=[],K)=>{let V=I;if(typeof R=="string")V=V.concat(Uc(R).split(" ").map(T=>`${B}:${T}`));else if(Array.isArray(R))V=V.concat(R.reduce((T,G)=>T.concat(`${B}:${G}`),[]));else if(typeof R=="object"&&typeof K=="string"){for(let T in R)if(R.hasOwnProperty(T)&&T===K){let G=R[T];if(G&&typeof G=="string"){let Y=Uc(G);V[K]?V[K]=V[K].concat(Y.split(" ").map(H=>`${B}:${H}`)):V[K]=Y.split(" ").map(H=>`${B}:${H}`)}else Array.isArray(G)&&G.length>0&&(V[K]=G.reduce((Y,H)=>Y.concat(`${B}:${H}`),[]))}}return V},w=(B,R=c,I=null,K=null)=>{var V;let T=R[B];if(!T||tt(T))return null;let G=(V=K==null?void 0:K[B])!=null?V:$==null?void 0:$[B];if(G===null)return null;let Y=zc(G),H=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,D=f==null?void 0:f[B],O=[];if(typeof Y=="object"&&H)for(let[J,Q]of Object.entries(Y)){let re=T[Q];if(J==="initial"){D=Q;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(J)||(O=C(J,re,O,I))}let W=T[Y]||T[zc(D)];return typeof O=="object"&&typeof I=="string"&&O[I]?Yc(O,W):O.length>0?(O.push(W),O):W},E=()=>c?Object.keys(c).map(B=>w(B,c)):null,P=(B,R)=>{if(!c||typeof c!="object")return null;let I=new Array;for(let K in c){let V=w(K,c,B,R),T=B==="base"&&typeof V=="string"?V:V&&V[B];T&&(I[I.length]=T)}return I},k={};for(let B in $)$[B]!==void 0&&(k[B]=$[B]);let N=(B,R)=>{var I;let K=typeof($==null?void 0:$[B])=="object"?{[B]:(I=$[B])==null?void 0:I.initial}:{};return{...f,...k,...K,...R}},v=(B=[],R)=>{let I=[];for(let{class:K,className:V,...T}of B){let G=!0;for(let[Y,H]of Object.entries(T)){let D=N(Y,R);if(Array.isArray(H)){if(!H.includes(D[Y])){G=!1;break}}else if(D[Y]!==H){G=!1;break}}G&&(K&&I.push(K),V&&I.push(V))}return I},L=B=>{let R=v(i,B),I=v(n==null?void 0:n.compoundVariants,B);return Fp(I,R)},F=B=>{let R=L(B);if(!Array.isArray(R))return R;let I={};for(let K of R)if(typeof K=="string"&&(I.base=Fr(I.base,K)(l)),typeof K=="object")for(let[V,T]of Object.entries(K))I[V]=Fr(I[V],T)(l);return I},A=B=>{if(a.length<1)return null;let R={};for(let{slots:I=[],class:K,className:V,...T}of a){if(!tt(T)){let G=!0;for(let Y of Object.keys(T)){let H=N(Y,B)[Y];if(H===void 0||(Array.isArray(T[Y])?!T[Y].includes(H):T[Y]!==H)){G=!1;break}}if(!G)continue}for(let G of I)R[G]=R[G]||[],R[G].push([K,V])}return R};if(!tt(r)||!p){let B={};if(typeof b=="object"&&!tt(b))for(let R of Object.keys(b))B[R]=I=>{var K,V;return Fr(b[R],P(R,I),((K=F(I))!=null?K:[])[R],((V=A(I))!=null?V:[])[R],I==null?void 0:I.class,I==null?void 0:I.className)(l)};return B}return Fr(d,E(),L(),$==null?void 0:$.class,$==null?void 0:$.className)(l)},y=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return g.variantKeys=y(),g.extend=n,g.base=d,g.slots=b,g.variants=c,g.defaultVariants=f,g.compoundSlots=a,g.compoundVariants=i,g},Ho=["small","medium","large"],Xi=(e,t)=>{var n,r,o;return B3(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"],borderWidth:Ho,borderRadius:Ho},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:Ho}],"font-size":[{text:["tiny",...Ho]}],"bg-image":["bg-stripe-gradient"]}}})},_p=["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"],Ka=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],qc=Xi({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",..._p],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:de.solid.foreground},primary:{base:"before:bg-primary",content:de.solid.primary},secondary:{base:"before:bg-secondary",content:de.solid.secondary},success:{base:"before:bg-success",content:de.solid.success},warning:{base:"before:bg-warning",content:de.solid.warning},danger:{base:"before:bg-danger",content:de.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"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},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"}}]}),I3=Xi({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",..._p],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Ka,"flex","items-center","justify-center"],name:[...Ka,"font-normal","text-center","text-inherit"],icon:[...Ka,"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:de.solid.default},primary:{base:de.solid.primary},secondary:{base:de.solid.secondary},success:{base:de.solid.success},warning:{base:de.solid.warning},danger:{base:de.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 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl: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"}}]}),L3=Xi({slots:{base:"flex items-center justify-center h-auto w-max-content",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),Zc=Xi({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:de.solid.default}},{variant:"solid",color:"primary",class:{badge:de.solid.primary}},{variant:"solid",color:"secondary",class:{badge:de.solid.secondary}},{variant:"solid",color:"success",class:{badge:de.solid.success}},{variant:"solid",color:"warning",class:{badge:de.solid.warning}},{variant:"solid",color:"danger",class:{badge:de.solid.danger}},{variant:"shadow",color:"default",class:{badge:de.shadow.default}},{variant:"shadow",color:"primary",class:{badge:de.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:de.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:de.shadow.success}},{variant:"shadow",color:"warning",class:{badge:de.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:de.shadow.danger}},{variant:"flat",color:"default",class:{badge:de.flat.default}},{variant:"flat",color:"primary",class:{badge:de.flat.primary}},{variant:"flat",color:"secondary",class:{badge:de.flat.secondary}},{variant:"flat",color:"success",class:{badge:de.flat.success}},{variant:"flat",color:"warning",class:{badge:de.flat.warning}},{variant:"flat",color:"danger",class:{badge:de.flat.danger}},{variant:"faded",color:"default",class:{badge:de.faded.default}},{variant:"faded",color:"primary",class:{badge:de.faded.primary}},{variant:"faded",color:"secondary",class:{badge:de.faded.secondary}},{variant:"faded",color:"success",class:{badge:de.faded.success}},{variant:"faded",color:"warning",class:{badge:de.faded.warning}},{variant:"faded",color:"danger",class:{badge:de.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 bt(e,t,n){let[r,o]=u.useState(e||t),i=u.useRef(e!==void 0),a=e!==void 0;u.useEffect(()=>{let d=i.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a},[a]);let s=a?e:r,l=u.useCallback((d,...c)=>{let f=(p,...h)=>{n&&(Object.is(s,p)||n(p,...h)),a||(s=p)};typeof d=="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,...b)=>{let g=d(a?s:h,...b);return f(g,...c),a?h:g})):(a||o(d),f(d,...c))},[a,s,n]);return[s,l]}function pt(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Qe(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 d=Math.pow(10,l);i=Math.round(i*d)/d}return i}const xi={prefix:String(Math.round(Math.random()*1e10)),current:0},zp=u.createContext(xi),V3=u.createContext(!1);let O3=!!(typeof window<"u"&&window.document&&window.document.createElement),ja=new WeakMap;function N3(e=!1){let t=u.useContext(zp),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=ja.get(i);a==null?ja.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,ja.delete(i))}n.current=++t.current}return n.current}function K3(e){let t=u.useContext(zp);t===xi&&!O3&&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=N3(!!e),r=t===xi&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function j3(e){let t=u.useId(),[n]=u.useState(At()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${xi.prefix}`;return e||`${r}-${t}`}const _3=typeof u.useId=="function"?j3:K3;function z3(){return!1}function U3(){return!0}function H3(e){return()=>{}}function At(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(H3,z3,U3):u.useContext(V3)}function Up(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=Up(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function G3(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Up(e))&&(r&&(r+=" "),r+=t);return r}const be=typeof document<"u"?u.useLayoutEffect:()=>{};function Pe(e){const t=u.useRef(null);return be(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function W3(e){let[t,n]=u.useState(e),r=u.useRef(null),o=Pe(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?o():n(a.value)});be(()=>{r.current&&o()});let i=Pe(a=>{r.current=a(t),o()});return[t,i]}let Y3=!!(typeof window<"u"&&window.document&&window.document.createElement),wi=new Map;function _e(e){let[t,n]=u.useState(e),r=u.useRef(null),o=_3(t),i=u.useCallback(a=>{r.current=a},[]);return Y3&&wi.set(o,i),be(()=>{let a=o;return()=>{wi.delete(a)}},[o]),u.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),o}function q3(e,t){if(e===t)return e;let n=wi.get(e);if(n)return n(t),t;let r=wi.get(t);return r?(r(e),e):t}function rn(e=[]){let t=_e(),[n,r]=W3(t),o=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return be(o,[t,o,...e]),n}function an(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ye=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ft=e=>e&&"window"in e&&e.window===e?e:ye(e).defaultView||window;function X(...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]=an(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=G3(i,a):o==="id"&&i&&a?t.id=q3(i,a):t[o]=a!==void 0?a:i}}return t}function Ji(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const Z3=new Set(["id"]),X3=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),J3=new Set(["href","target","rel","download","ping","referrerPolicy"]),Q3=/^(data-.*)$/;function le(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(Z3.has(a)||n&&X3.has(a)||r&&J3.has(a)||o!=null&&o.has(a)||Q3.test(a))&&(i[a]=e[a]);return i}function Pt(e){if(ex())e.focus({preventScroll:!0});else{let t=tx(e);e.focus(),nx(t)}}let Go=null;function ex(){if(Go==null){Go=!1;try{document.createElement("div").focus({get preventScroll(){return Go=!0,!0}})}catch{}}return Go}function tx(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 nx(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Qi(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 Vl(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 Ut(){return Vl(/^Mac/i)}function Hp(){return Vl(/^iPhone/i)}function Gp(){return Vl(/^iPad/i)||Ut()&&navigator.maxTouchPoints>1}function pr(){return Hp()||Gp()}function ui(){return Ut()||pr()}function Ol(){return Qi(/AppleWebKit/i)&&!rx()}function rx(){return Qi(/Chrome/i)}function Nl(){return Qi(/Android/i)}function ox(){return Qi(/Firefox/i)}const ix=u.createContext({isNative:!0,open:lx});function bo(){return u.useContext(ix)}function ax(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 Tn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;ox()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ut()?i=!0:a=!0);let d=Ol()&&Ut()&&!Gp()?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});Tn.isOpening=n,Pt(e),e.dispatchEvent(d),Tn.isOpening=!1}Tn.isOpening=!1;function sx(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 lx(e,t){sx(e,n=>Tn(n,t))}let Yn=new Map,Is=new Set;function Xc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Yn.get(r.target);o||(o=new Set,Yn.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=Yn.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Yn.delete(r.target)),Yn.size===0)){for(let i of Is)i();Is.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Xc():document.addEventListener("DOMContentLoaded",Xc));function Wp(e){requestAnimationFrame(()=>{Yn.size===0?e():Is.add(e)})}function hr(){let e=u.useRef(new Map),t=u.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...d)=>{e.current.delete(a),a(...d)}: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 d=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,d,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 An(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=_e(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 mt(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 ux(){return typeof window.ResizeObserver<"u"}function Kl(e){const{ref:t,onResize:n}=e;u.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(ux()){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 jl(e,t){be(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function to(e,t){let n=e;for(Ci(n,t)&&(n=n.parentElement);n&&!Ci(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Ci(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 lt=typeof document<"u"&&window.visualViewport;function cx(){let e=At(),[t,n]=u.useState(()=>e?{width:0,height:0}:Jc());return u.useEffect(()=>{let r=()=>{n(o=>{let i=Jc();return i.width===o.width&&i.height===o.height?o:i})};return lt?lt.addEventListener("resize",r):window.addEventListener("resize",r),()=>{lt?lt.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Jc(){return{width:lt&&(lt==null?void 0:lt.width)||window.innerWidth,height:lt&&(lt==null?void 0:lt.height)||window.innerHeight}}let dx=0;const _a=new Map;function Yp(e){let[t,n]=u.useState();return be(()=>{if(!e)return;let r=_a.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${dx++}`;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},_a.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),_a.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Di(e,t,n,r){let o=Pe(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 qp(e,t){let n=Qc(e,t,"left"),r=Qc(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d}=getComputedStyle(e),c=e.scrollLeft+parseInt(d,10),f=e.scrollTop+parseInt(l,10),p=c+e.clientWidth,h=f+e.clientHeight;n<=a?a=n-parseInt(d,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 Qc(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 Ls(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=to(e);for(;e&&l&&e!==a&&l!==a;)qp(l,e),e=l,l=to(e)}else{var n;let{left:l,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:f}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(d-f)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Vs(e){return e.mozInputSource===0&&e.isTrusted?!0:Nl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function fx(e){return!Nl()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function px(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=Pe(()=>{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 hx(e,t){return t.get?t.get.call(e):t.value}function Zp(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function bx(e,t){var n=Zp(e,t,"get");return hx(e,n)}function mx(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function go(e,t,n){mx(e,t),t.set(e,n)}function gx(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 ed(e,t,n){var r=Zp(e,t,"set");return gx(e,r,n),n}let Xn="default",Os="",ci=new WeakMap;function Ns(e){if(pr()){if(Xn==="default"){const t=ye(e);Os=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Xn="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ci.set(e,e.style.userSelect),e.style.userSelect="none")}function jr(e){if(pr()){if(Xn!=="disabled")return;Xn="restoring",setTimeout(()=>{Wp(()=>{if(Xn==="restoring"){const t=ye(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Os||""),Os="",Xn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ci.has(e)){let t=ci.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ci.delete(e)}}const no=u.createContext({register:()=>{}});no.displayName="PressResponderContext";function vx(e){let t=u.useContext(no);if(t){let{register:n,...r}=t;e=X(r,e),n()}return jl(t,e.ref),e}var Wo=new WeakMap;class Yo{continuePropagation(){ed(this,Wo,!1)}get shouldStopPropagation(){return bx(this,Wo)}constructor(t,n,r){go(this,Wo,{writable:!0,value:void 0}),ed(this,Wo,!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 td=Symbol("linkClicked");function sn(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:c,ref:f,...p}=vx(e),[h,b]=u.useState(!1),g=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:$}=hr(),C=Pe((v,L)=>{let F=g.current;if(a||F.didFirePressStart)return!1;let A=!0;if(F.isTriggeringEvent=!0,r){let B=new Yo("pressstart",L,v);r(B),A=B.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,b(!0),A}),w=Pe((v,L,F=!0)=>{let A=g.current;if(!A.didFirePressStart)return!1;A.ignoreClickAfterPress=!0,A.didFirePressStart=!1,A.isTriggeringEvent=!0;let B=!0;if(o){let R=new Yo("pressend",L,v);o(R),B=R.shouldStopPropagation}if(n&&n(!1),b(!1),t&&F&&!a){let R=new Yo("press",L,v);t(R),B&&(B=R.shouldStopPropagation)}return A.isTriggeringEvent=!1,B}),E=Pe((v,L)=>{let F=g.current;if(a)return!1;if(i){F.isTriggeringEvent=!0;let A=new Yo("pressup",L,v);return i(A),F.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),P=Pe(v=>{let L=g.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&w(kt(L.target,v),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,$(),c||jr(L.target))}),k=Pe(v=>{d&&P(v)}),N=u.useMemo(()=>{let v=g.current,L={onKeyDown(A){if(za(A.nativeEvent,A.currentTarget)&&A.currentTarget.contains(A.target)){var B;rd(A.target,A.key)&&A.preventDefault();let R=!0;if(!v.isPressed&&!A.repeat){v.target=A.currentTarget,v.isPressed=!0,R=C(A,"keyboard");let I=A.currentTarget,K=V=>{za(V,I)&&!V.repeat&&I.contains(V.target)&&v.target&&E(kt(v.target,V),"keyboard")};y(ye(A.currentTarget),"keyup",an(K,F),!0)}R&&A.stopPropagation(),A.metaKey&&Ut()&&((B=v.metaKeyEvents)===null||B===void 0||B.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(v.metaKeyEvents=new Map)},onClick(A){if(!(A&&!A.currentTarget.contains(A.target))&&A&&A.button===0&&!v.isTriggeringEvent&&!Tn.isOpening){let B=!0;if(a&&A.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||Vs(A.nativeEvent))){!a&&!l&&Pt(A.currentTarget);let R=C(A,"virtual"),I=E(A,"virtual"),K=w(A,"virtual");B=R&&I&&K}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,B&&A.stopPropagation()}}},F=A=>{var B;if(v.isPressed&&v.target&&za(A,v.target)){var R;rd(A.target,A.key)&&A.preventDefault();let K=A.target;w(kt(v.target,A),"keyboard",v.target.contains(K)),$(),A.key!=="Enter"&&_l(v.target)&&v.target.contains(K)&&!A[td]&&(A[td]=!0,Tn(v.target,A,!1)),v.isPressed=!1,(R=v.metaKeyEvents)===null||R===void 0||R.delete(A.key)}else if(A.key==="Meta"&&(!((B=v.metaKeyEvents)===null||B===void 0)&&B.size)){var I;let K=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let V of K.values())(I=v.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",V))}};if(typeof PointerEvent<"u"){L.onPointerDown=I=>{if(I.button!==0||!I.currentTarget.contains(I.target))return;if(fx(I.nativeEvent)){v.pointerType="virtual";return}Ua(I.currentTarget)&&I.preventDefault(),v.pointerType=I.pointerType;let K=!0;v.isPressed||(v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=I.pointerId,v.target=I.currentTarget,!a&&!l&&Pt(I.currentTarget),c||Ns(v.target),K=C(I,v.pointerType),y(ye(I.currentTarget),"pointermove",A,!1),y(ye(I.currentTarget),"pointerup",B,!1),y(ye(I.currentTarget),"pointercancel",R,!1)),K&&I.stopPropagation()},L.onMouseDown=I=>{I.currentTarget.contains(I.target)&&I.button===0&&(Ua(I.currentTarget)&&I.preventDefault(),I.stopPropagation())},L.onPointerUp=I=>{!I.currentTarget.contains(I.target)||v.pointerType==="virtual"||I.button===0&&Un(I,I.currentTarget)&&E(I,v.pointerType||I.pointerType)};let A=I=>{I.pointerId===v.activePointerId&&(v.target&&Un(I,v.target)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,C(kt(v.target,I),v.pointerType)):v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,w(kt(v.target,I),v.pointerType,!1),k(I)))},B=I=>{I.pointerId===v.activePointerId&&v.isPressed&&I.button===0&&v.target&&(Un(I,v.target)&&v.pointerType!=null?w(kt(v.target,I),v.pointerType):v.isOverTarget&&v.pointerType!=null&&w(kt(v.target,I),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,$(),c||jr(v.target))},R=I=>{P(I)};L.onDragStart=I=>{I.currentTarget.contains(I.target)&&P(I)}}else{L.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(Ua(R.currentTarget)&&R.preventDefault(),v.ignoreEmulatedMouseEvents){R.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=R.currentTarget,v.pointerType=Vs(R.nativeEvent)?"virtual":"mouse",!a&&!l&&Pt(R.currentTarget),C(R,v.pointerType)&&R.stopPropagation(),y(ye(R.currentTarget),"mouseup",A,!1)},L.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,I=C(R,v.pointerType)),I&&R.stopPropagation()},L.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,I=w(R,v.pointerType,!1),k(R)),I&&R.stopPropagation()},L.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!v.ignoreEmulatedMouseEvents&&R.button===0&&E(R,v.pointerType||"mouse")};let A=R=>{if(R.button===0){if(v.isPressed=!1,$(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&Un(R,v.target)&&v.pointerType!=null?w(kt(v.target,R),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&w(kt(v.target,R),v.pointerType,!1),v.isOverTarget=!1}};L.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let I=yx(R.nativeEvent);if(!I)return;v.activePointerId=I.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=R.currentTarget,v.pointerType="touch",!a&&!l&&Pt(R.currentTarget),c||Ns(v.target),C(R,v.pointerType)&&R.stopPropagation(),y(ft(R.currentTarget),"scroll",B,!0)},L.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!v.isPressed){R.stopPropagation();return}let I=nd(R.nativeEvent,v.activePointerId),K=!0;I&&Un(I,R.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,K=C(R,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,K=w(R,v.pointerType,!1),k(R)),K&&R.stopPropagation()},L.onTouchEnd=R=>{if(!R.currentTarget.contains(R.target))return;if(!v.isPressed){R.stopPropagation();return}let I=nd(R.nativeEvent,v.activePointerId),K=!0;I&&Un(I,R.currentTarget)&&v.pointerType!=null?(E(R,v.pointerType),K=w(R,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(K=w(R,v.pointerType,!1)),K&&R.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!c&&jr(v.target),$()},L.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),v.isPressed&&P(R))};let B=R=>{v.isPressed&&R.target.contains(v.target)&&P({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=R=>{R.currentTarget.contains(R.target)&&P(R)}}return L},[y,a,l,$,c,P,k,w,C,E]);return u.useEffect(()=>()=>{var v;c||jr((v=g.current.target)!==null&&v!==void 0?v:void 0)},[c]),{isPressed:s||h,pressProps:X(p,N)}}function _l(e){return e.tagName==="A"&&e.hasAttribute("href")}function za(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof ft(o).HTMLInputElement&&!Xp(o,n)||o instanceof ft(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&_l(o))&&n!=="Enter")}function yx(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function nd(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 kt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function $x(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 xx(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Un(e,t){let n=t.getBoundingClientRect(),r=$x(e);return xx(n,r)}function Ua(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function rd(e,t){return e instanceof HTMLInputElement?!Xp(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_l(e)}const wx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Xp(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":wx.has(e.type)}const Cx=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),o=u.useContext(no);n=mt(n||(o==null?void 0:o.ref));let i=X(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return jl(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(no.Provider,{value:i},e)});function Dx({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(no.Provider,{value:t},e)}class Ex{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 Jp(e){let t=u.useRef({isFocused:!1,observer:null});be(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Pe(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 Ex("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=Jp(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 Ht=null,ro=new Set,Gr=new Map,Mn=!1,Ks=!1;const Px={Tab:!0,Escape:!0};function ta(e,t){for(let n of ro)n(e,t)}function Sx(e){return!(e.metaKey||!Ut()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ei(e){Mn=!0,Sx(e)&&(Ht="keyboard",ta("keyboard",e))}function ct(e){Ht="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Mn=!0,ta("pointer",e))}function Qp(e){Vs(e)&&(Mn=!0,Ht="virtual")}function e0(e){e.target===window||e.target===document||(!Mn&&!Ks&&(Ht="virtual",ta("virtual",e)),Mn=!1,Ks=!1)}function t0(){Mn=!1,Ks=!0}function Pi(e){if(typeof window>"u"||Gr.get(ft(e)))return;const t=ft(e),n=ye(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Mn=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ei,!0),n.addEventListener("keyup",Ei,!0),n.addEventListener("click",Qp,!0),t.addEventListener("focus",e0,!0),t.addEventListener("blur",t0,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ct,!0),n.addEventListener("pointermove",ct,!0),n.addEventListener("pointerup",ct,!0)):(n.addEventListener("mousedown",ct,!0),n.addEventListener("mousemove",ct,!0),n.addEventListener("mouseup",ct,!0)),t.addEventListener("beforeunload",()=>{n0(e)},{once:!0}),Gr.set(t,{focus:r})}const n0=(e,t)=>{const n=ft(e),r=ye(e);t&&r.removeEventListener("DOMContentLoaded",t),Gr.has(n)&&(n.HTMLElement.prototype.focus=Gr.get(n).focus,r.removeEventListener("keydown",Ei,!0),r.removeEventListener("keyup",Ei,!0),r.removeEventListener("click",Qp,!0),n.removeEventListener("focus",e0,!0),n.removeEventListener("blur",t0,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ct,!0),r.removeEventListener("pointermove",ct,!0),r.removeEventListener("pointerup",ct,!0)):(r.removeEventListener("mousedown",ct,!0),r.removeEventListener("mousemove",ct,!0),r.removeEventListener("mouseup",ct,!0)),Gr.delete(n))};function Tx(e){const t=ye(e);let n;return t.readyState!=="loading"?Pi(e):(n=()=>{Pi(e)},t.addEventListener("DOMContentLoaded",n)),()=>n0(e,n)}typeof document<"u"&&Tx();function lr(){return Ht!=="pointer"}function Si(){return Ht}function r0(e){Ht=e,ta(e,null)}function Ax(){Pi();let[e,t]=u.useState(Ht);return u.useEffect(()=>{let n=()=>{t(Ht)};return ro.add(n),()=>{ro.delete(n)}},[]),At()?null:e}const Mx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kx(e,t,n){var r;const o=typeof window<"u"?ft(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ft(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?ft(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?ft(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!Mx.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&&!Px[n.key])}function Rx(e,t,n){Pi(),u.useEffect(()=>{let r=(o,i)=>{kx(!!(n!=null&&n.isTextInput),o,i)&&e(lr())};return ro.add(r),()=>{ro.delete(r)}},t)}function br(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=u.useRef({isFocusWithin:!1}),a=u.useCallback(d=>{i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(d),o&&o(!1))},[n,o,i]),s=Jp(a),l=u.useCallback(d=>{!i.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),o&&o(!0),i.current.isFocusWithin=!0,s(d))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let Ti=!1,Ha=0;function js(){Ti=!0,setTimeout(()=>{Ti=!1},50)}function od(e){e.pointerType==="touch"&&js()}function Fx(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",od):document.addEventListener("touchend",js),Ha++,()=>{Ha--,!(Ha>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",od):document.removeEventListener("touchend",js))}}function Fe(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(Fx,[]);let{hoverProps:l,triggerHoverEnd:d}=u.useMemo(()=>{let c=(h,b)=>{if(s.pointerType=b,o||b==="touch"||s.isHovered||!h.currentTarget.contains(h.target))return;s.isHovered=!0;let g=h.currentTarget;s.target=g,t&&t({type:"hoverstart",target:g,pointerType:b}),n&&n(!0),a(!0)},f=(h,b)=>{if(s.pointerType="",s.target=null,b==="touch"||!s.isHovered)return;s.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:b}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{Ti&&h.pointerType==="mouse"||c(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&&!Ti&&c(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&&d({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:i}}function o0(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Pe(l=>{n&&qo(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Pe(l=>{n&&n(l)});u.useEffect(()=>{let l=i.current;if(r)return;const d=t.current,c=ye(d);if(typeof PointerEvent<"u"){let f=p=>{l.isPointerDown&&qo(p,t)&&s(p),l.isPointerDown=!1};return c.addEventListener("pointerdown",a,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",a,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&qo(h,t)&&s(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&qo(h,t)&&s(h),l.isPointerDown=!1};return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",p,!0)}}},[t,r,a,s])}function qo(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 zl(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:id(e.onKeyDown),onKeyUp:id(e.onKeyUp)}}}function i0(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=u.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=hr(),s=Pe((c,f,p,h)=>{p===0&&h===0||(o.current.didMove||(o.current.didMove=!0,t==null||t({type:"movestart",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey})),n==null||n({type:"move",pointerType:f,deltaX:p,deltaY:h,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))}),l=Pe((c,f)=>{jr(),o.current.didMove&&(r==null||r({type:"moveend",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))});return{moveProps:u.useMemo(()=>{let c={},f=()=>{Ns(),o.current.didMove=!1};if(typeof PointerEvent>"u"){let h=$=>{if($.button===0){var C,w,E,P;s($,"mouse",$.pageX-((E=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&E!==void 0?E:0),$.pageY-((P=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&P!==void 0?P:0)),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},b=$=>{$.button===0&&(l($,"mouse"),a(window,"mousemove",h,!1),a(window,"mouseup",b,!1))};c.onMouseDown=$=>{$.button===0&&(f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i(window,"mousemove",h,!1),i(window,"mouseup",b,!1))};let g=$=>{let C=[...$.changedTouches].findIndex(({identifier:N})=>N===o.current.id);if(C>=0){var w,E;let{pageX:N,pageY:v}=$.changedTouches[C];var P,k;s($,"touch",N-((P=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageX)!==null&&P!==void 0?P:0),v-((k=(E=o.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&k!==void 0?k:0)),o.current.lastPosition={pageX:N,pageY:v}}},y=$=>{[...$.changedTouches].findIndex(({identifier:w})=>w===o.current.id)>=0&&(l($,"touch"),o.current.id=null,a(window,"touchmove",g),a(window,"touchend",y),a(window,"touchcancel",y))};c.onTouchStart=$=>{if($.changedTouches.length===0||o.current.id!=null)return;let{pageX:C,pageY:w,identifier:E}=$.changedTouches[0];f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:C,pageY:w},o.current.id=E,i(window,"touchmove",g,!1),i(window,"touchend",y,!1),i(window,"touchcancel",y,!1)}}else{let h=g=>{if(g.pointerId===o.current.id){var y,$;let E=g.pointerType||"mouse";var C,w;s(g,E,g.pageX-((C=(y=o.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&C!==void 0?C:0),g.pageY-((w=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&w!==void 0?w:0)),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY}}},b=g=>{if(g.pointerId===o.current.id){let y=g.pointerType||"mouse";l(g,y),o.current.id=null,a(window,"pointermove",h,!1),a(window,"pointerup",b,!1),a(window,"pointercancel",b,!1)}};c.onPointerDown=g=>{g.button===0&&o.current.id==null&&(f(),g.stopPropagation(),g.preventDefault(),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY},o.current.id=g.pointerId,i(window,"pointermove",h,!1),i(window,"pointerup",b,!1),i(window,"pointercancel",b,!1))}}let p=(h,b,g)=>{f(),s(h,"keyboard",b,g),l(h,"keyboard")};return c.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}},c},[o,i,a,s,l])}}function Bx(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]);Di(t,"wheel",r?void 0:o)}const Ix=500;function a0(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Ix,accessibilityDescription:a}=e;const s=u.useRef();let{addGlobalListener:l,removeGlobalListener:d}=hr(),{pressProps:c}=sn({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=b=>{b.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{d(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=Yp(o&&!t?a:void 0);return{longPressProps:X(c,f)}}function kn(e){const t=ye(e);if(Si()==="virtual"){let n=t.activeElement;Wp(()=>{t.activeElement===n&&e.isConnected&&Pt(e)})}else Pt(e)}function Lx(e){const t=ft(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 Vx(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function s0(e,t){return e.nodeName!=="#comment"&&Lx(e)&&Vx(e,t)&&(!e.parentElement||s0(e.parentElement,e))}const ad=u.createContext(null);let ve=null;function Ul(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(ad)||{},d=u.useMemo(()=>new _s({scopeRef:s}),[s]);be(()=>{let p=l||ke.root;if(ke.getTreeNode(p.scopeRef)&&ve&&!Mi(ve,p.scopeRef)){let h=ke.getTreeNode(ve);h&&(p=h)}p.addChild(d),ke.addNode(d)},[d,l]),be(()=>{let p=ke.getTreeNode(s);p&&(p.contain=!!n)},[n]),be(()=>{var p;let h=(p=i.current)===null||p===void 0?void 0:p.nextSibling,b=[];for(;h&&h!==a.current;)b.push(h),h=h.nextSibling;s.current=b},[t]),Ux(s,r,n),jx(s,n),Gx(s,r,n),zx(s,o),u.useEffect(()=>{const p=ye(s.current?s.current[0]:void 0).activeElement;let h=null;if(Ge(p,s.current)){for(let b of ke.traverse())b.scopeRef&&Ge(p,b.scopeRef.current)&&(h=b);h===ke.getTreeNode(s)&&(ve=h.scopeRef)}},[s]),be(()=>()=>{var p,h,b;let g=(b=(h=ke.getTreeNode(s))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(s===ve||Mi(s,ve))&&(!g||ke.getTreeNode(g))&&(ve=g),ke.removeTreeNode(s)},[s]);let c=u.useMemo(()=>Ox(s),[]),f=u.useMemo(()=>({focusManager:c,parentNode:d}),[d,c]);return u.createElement(ad.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 Ox(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||ye(n[0]).activeElement,l=n[0].previousElementSibling,d=Cn(n),c=Ze(d,{tabbable:o,accept:a},n);c.currentNode=Ge(s,n)?s:l;let f=c.nextNode();return!f&&i&&(c.currentNode=l,f=c.nextNode()),f&&et(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||ye(n[0]).activeElement,l=n[n.length-1].nextElementSibling,d=Cn(n),c=Ze(d,{tabbable:o,accept:a},n);c.currentNode=Ge(s,n)?s:l;let f=c.previousNode();return!f&&i&&(c.currentNode=l,f=c.previousNode()),f&&et(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Cn(n),a=Ze(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&et(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Cn(n),a=Ze(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&et(s,!0),s}}}const Hl=["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]"],Nx=Hl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Hl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Kx=Hl.join(':not([hidden]):not([tabindex="-1"]),');function Cn(e){return e[0].parentElement}function _r(e){let t=ke.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function jx(e,t){let n=u.useRef(),r=u.useRef();be(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=ye(o?o[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!_r(e))return;let c=i.activeElement,f=e.current;if(!f||!Ge(c,f))return;let p=Cn(f),h=Ze(p,{tabbable:!0},f);if(!c)return;h.currentNode=c;let b=d.shiftKey?h.previousNode():h.nextNode();b||(h.currentNode=d.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=d.shiftKey?h.previousNode():h.nextNode()),d.preventDefault(),b&&et(b,!0)},s=d=>{(!ve||Mi(ve,e))&&Ge(d.target,e.current)?(ve=e,n.current=d.target):_r(e)&&!Ai(d.target,e)?n.current?n.current.focus():ve&&ve.current&&ki(ve.current):_r(e)&&(n.current=d.target)},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&_r(e)&&!Ai(i.activeElement,e))if(ve=e,i.body.contains(d.target)){var c;n.current=d.target,(c=n.current)===null||c===void 0||c.focus()}else ve.current&&ki(ve.current)})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(d=>d.addEventListener("focusin",s,!1)),o==null||o.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(d=>d.removeEventListener("focusin",s,!1)),o==null||o.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),be(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function l0(e){return Ai(e)}function Ge(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ai(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ke.traverse(ke.getTreeNode(t)))if(n&&Ge(e,n.current))return!0;return!1}function _x(e){return Ai(e,ve)}function Mi(e,t){var n;let r=(n=ke.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function et(e,t=!1){if(e!=null&&!t)try{kn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ki(e,t=!0){let n=e[0].previousElementSibling,r=Cn(e),o=Ze(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=Cn(e),o=Ze(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),et(i)}function zx(e,t){const n=u.useRef(t);u.useEffect(()=>{if(n.current){ve=e;const r=ye(e.current?e.current[0]:void 0);!Ge(r.activeElement,ve.current)&&e.current&&ki(e.current)}n.current=!1},[e])}function Ux(e,t,n){be(()=>{if(t||n)return;let r=e.current;const o=ye(r?r[0]:void 0);let i=a=>{let s=a.target;Ge(s,e.current)?ve=e:l0(s)||(ve=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 Hx(e){let t=ke.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Gx(e,t,n){const r=u.useRef(typeof document<"u"?ye(e.current?e.current[0]:void 0).activeElement:null);be(()=>{let o=e.current;const i=ye(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ve||Mi(ve,e))&&Ge(i.activeElement,e.current)&&(ve=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]),be(()=>{const o=ye(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!_r(e))return;let s=o.activeElement;if(!Ge(s,e.current))return;let l=ke.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,c=Ze(o.body,{tabbable:!0});c.currentNode=s;let f=a.shiftKey?c.previousNode():c.nextNode();if((!d||!o.body.contains(d)||d===o.body)&&(d=void 0,l.nodeToRestore=void 0),(!f||!Ge(f,e.current))&&d){c.currentNode=d;do f=a.shiftKey?c.previousNode():c.nextNode();while(Ge(f,e.current));a.preventDefault(),a.stopPropagation(),f?et(f,!0):l0(d)?et(d,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),be(()=>{const o=ye(e.current?e.current[0]:void 0);if(!t)return;let i=ke.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=ke.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(Ge(o.activeElement,e.current)||o.activeElement===o.body&&Hx(e))){let d=ke.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=d.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){et(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&ke.getTreeNode(c.scopeRef)){ki(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function Ze(e,t,n){let r=t!=null&&t.tabbable?Kx:Nx,o=ye(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)&&s0(i)&&(!n||Ge(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 u0(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||ye(r).activeElement,d=Ze(r,{tabbable:i,accept:s});r.contains(l)&&(d.currentNode=l);let c=d.nextNode();return!c&&a&&(d.currentNode=r,c=d.nextNode()),c&&et(c,!0),c},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||ye(r).activeElement,d=Ze(r,{tabbable:i,accept:s});if(r.contains(l))d.currentNode=l;else{let f=Ga(d);return f&&et(f,!0),f??null}let c=d.previousNode();if(!c&&a){d.currentNode=r;let f=Ga(d);if(!f)return null;c=f}return c&&et(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=Ze(r,{tabbable:o,accept:i}).nextNode();return s&&et(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=Ze(r,{tabbable:o,accept:i}),s=Ga(a);return s&&et(s,!0),s??null}}}function Ga(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Gl{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 _s({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&&Ge(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 Gl;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 _s({scopeRef:null}),this.fastMap.set(null,this.root)}}class _s{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 ke=new Gl;function Ye(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=u.useRef({isFocused:!1,isFocusVisible:t||lr()}),[i,a]=u.useState(!1),[s,l]=u.useState(()=>o.current.isFocused&&o.current.isFocusVisible),d=u.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=u.useCallback(h=>{o.current.isFocused=h,a(h),d()},[d]);Rx(h=>{o.current.isFocusVisible=h,d()},[],{isTextInput:n});let{focusProps:f}=ea({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=br({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:s,focusProps:r?p:f}}let Wx=u.createContext(null);function Yx(e){let t=u.useContext(Wx)||{};jl(t,e);let{ref:n,...r}=t;return r}function mr(e,t){let{focusProps:n}=ea(e),{keyboardProps:r}=zl(e),o=X(n,r),i=Yx(t),a=e.isDisabled?{}:i,s=u.useRef(e.autoFocus);return u.useEffect(()=>{s.current&&t.current&&kn(t.current),s.current=!1},[t]),{focusableProps:X({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function qx(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=u.useState(!1);return be(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let s=Ze(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 c0=globalThis!=null&&globalThis.document?u.useLayoutEffect:u.useEffect;function Zx(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[d,c]=u.useState("pending");u.useEffect(()=>{c(n?"loading":"pending")},[n]);const f=u.useRef(),p=u.useCallback(()=>{if(!n)return;h();const b=new Image;b.src=n,a&&(b.crossOrigin=a),r&&(b.srcset=r),s&&(b.sizes=s),t&&(b.loading=t),b.onload=g=>{h(),c("loaded"),o==null||o(g)},b.onerror=g=>{h(),c("failed"),i==null||i(g)},f.current=b},[n,a,r,s,o,i,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return c0(()=>{if(!l)return d==="loading"&&p(),()=>{h()}},[d,p,l]),l?"loaded":d}function Xx(e={}){var t,n,r,o,i;const a=Mp(),s=!!a,{as:l,ref:d,src:c,name:f,icon:p,classNames:h,fallback:b,alt:g=f||"avatar",imgRef:y,color:$=(t=a==null?void 0:a.color)!=null?t:"default",radius:C=(n=a==null?void 0:a.radius)!=null?n:"full",size:w=(r=a==null?void 0:a.size)!=null?r:"md",isBordered:E=(o=a==null?void 0:a.isBordered)!=null?o:!1,isDisabled:P=(i=a==null?void 0:a.isDisabled)!=null?i:!1,isFocusable:k=!1,getInitials:N=R$,ignoreFallback:v=!1,showFallback:L=!1,ImgComponent:F="img",imgProps:A,className:B,onError:R,...I}=e,K=l||"span",V=As(d),T=As(y),{isFocusVisible:G,isFocused:Y,focusProps:H}=Ye(),{isHovered:D,hoverProps:O}=Fe({isDisabled:P}),J=Zx({src:c,onError:R,ignoreFallback:v})==="loaded",Q=(!c||!J)&&L,re=u.useMemo(()=>{var se;return I3({color:$,radius:C,size:w,isBordered:E,isDisabled:P,isInGroup:s,isInGridGroup:(se=a==null?void 0:a.isGrid)!=null?se:!1})},[$,C,w,E,P,s,a==null?void 0:a.isGrid]),z=sr(h==null?void 0:h.base,B),q=u.useMemo(()=>k||l==="button",[k,l]),te=u.useCallback((se={})=>({ref:V,tabIndex:q?0:-1,"data-hover":Et(D),"data-focus":Et(Y),"data-focus-visible":Et(G),className:re.base({class:sr(z,se==null?void 0:se.className)}),...X(I,O,q?H:{})}),[q,re,z,H,I]),ae=u.useCallback((se={})=>({ref:T,src:c,"data-loaded":Et(J),className:re.img({class:h==null?void 0:h.img}),...X(A,se)}),[re,J,A,c,T]);return{Component:K,ImgComponent:F,src:c,alt:g,icon:p,name:f,imgRef:T,slots:re,classNames:h,fallback:b,isImgLoaded:J,showFallback:Q,ignoreFallback:v,getInitials:N,getAvatarProps:te,getImageProps:ae}}const Jx=Symbol.for("react-aria.i18n.locale"),Qx=Symbol.for("react-aria.i18n.strings");let Hn;class In{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=e5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Jx];if(Hn===void 0){let o=window[Qx];if(!o)return null;Hn={};for(let i in o)Hn[i]=new In({[n]:o[i]},n)}let r=Hn==null?void 0:Hn[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 e5(e,t,n="en-US"){if(t[e])return t[e];let r=t5(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function t5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const sd=new Map,ld=new Map;class d0{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=sd.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),sd.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=ld.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ld.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 Nt(e,t){return e-t*Math.floor(e/t)}const f0=1721426;function Dn(e,t,n,r){t=vo(e,t);let o=t-1,i=-2;return n<=2?i=0:nn(t)&&(i=-1),f0-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function nn(e){return e%4===0&&(e%100!==0||e%400===0)}function vo(e,t){return e==="BC"?1-t:t}function na(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const n5={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 nt{fromJulianDay(t){let n=t,r=n-f0,o=Math.floor(r/146097),i=Nt(r,146097),a=Math.floor(i/36524),s=Nt(i,36524),l=Math.floor(s/1461),d=Nt(s,1461),c=Math.floor(d/365),f=o*400+a*100+l*4+c+(a!==4&&c!==4?1:0),[p,h]=na(f),b=n-Dn(p,h,1,1),g=2;n<Dn(p,h,3,1)?g=0:nn(h)&&(g=1);let y=Math.floor(((b+g)*12+373)/367),$=n-Dn(p,h,y,1)+1;return new Re(p,h,y,$)}toJulianDay(t){return Dn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return n5[nn(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return nn(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 p0(e){return Lt(Date.now(),e)}function r5(e){return y0(p0(e))}function h0(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function b0(e,t){return ud(e)-ud(t)}function ud(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Wa=null;function Wl(){return Wa==null&&(Wa=new Intl.DateTimeFormat().resolvedOptions().timeZone),Wa}function o5(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function i5(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function ur(e){e=Xe(e,new nt);let t=vo(e.era,e.year);return m0(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function m0(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 zs(e,t){if(t==="UTC")return 0;if(e>0&&t===Wl())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:a,second:s}=g0(e,t);return m0(n,r,o,i,a,s,0)-Math.floor(e/1e3)*1e3}const cd=new Map;function g0(e,t){let n=cd.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"}),cd.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 dd=864e5;function a5(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>s5(e,t,i))}function s5(e,t,n){let r=g0(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 It(e,t,n="compatible"){let r=ln(e);if(t==="UTC")return ur(r);if(t===Wl()&&n==="compatible"){r=Xe(r,new nt);let l=new Date,d=vo(r.era,r.year);return l.setFullYear(d,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let o=ur(r),i=zs(o-dd,t),a=zs(o+dd,t),s=a5(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 v0(e,t,n="compatible"){return new Date(It(e,t,n))}function Lt(e,t){let n=zs(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new io(o,i,a,t,n,s,l,d,c)}function y0(e){return new Re(e.calendar,e.era,e.year,e.month,e.day)}function ln(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 Ri(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function fd(e){return new oa(e.hour,e.minute,e.second,e.millisecond)}function Xe(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,Rn(r),r}function $0(e,t,n){if(e instanceof io)return e.timeZone===t?e:u5(e,t);let r=It(e,t,n);return Lt(r,t)}function l5(e){let t=ur(e)-e.offset;return new Date(t)}function u5(e,t){let n=ur(e)-e.offset;return Xe(Lt(n,t),e.calendar)}const Br=36e5;function ra(e,t){let n=e.copy(),r="hour"in n?D0(n,t):0;Us(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Hs(n),x0(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,c5(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 Us(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Hs(e){for(;e.month<1;)Us(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Us(e,1)}function c5(e){for(;e.day<1;)e.month--,Hs(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Hs(e)}function x0(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 Rn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),x0(e)}function Yl(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function w0(e,t){return ra(e,Yl(t))}function ql(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),Rn(n),n}function oo(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),C0(n),n}function d5(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Zo(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Zo(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Zo(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Zo(e.hour,24),t}function C0(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 Zo(e,t){let n=e%t;return n<0&&(n+=t),n}function D0(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,d5(e)}function E0(e,t){let n=e.copy();return D0(n,t),n}function f5(e,t){return E0(e,Yl(t))}function Zl(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=Vt(l,n,0,s.length-1,r==null?void 0:r.round),o.era=s[l],Rn(o);break}case"year":var i,a;!((i=(a=o.calendar).isInverseEra)===null||i===void 0)&&i.call(a,o)&&(n=-n),o.year=Vt(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=Vt(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=Vt(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),Rn(o),o}function Xl(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=Vt(i,n,a,s,r==null?void 0:r.round);break}case"minute":o.minute=Vt(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=Vt(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=Vt(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function Vt(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 P0(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=ra(ln(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=It(o,e.timeZone)}else n=ur(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Lt(n,e.timeZone);return Xe(r,e.calendar)}function p5(e,t){return P0(e,Yl(t))}function h5(e,t,n,r){switch(t){case"hour":{let o=0,i=23;if((r==null?void 0:r.hourCycle)===12){let b=e.hour>=12;o=b?12:0,i=b?23:11}let a=ln(e),s=Xe(oo(a,{hour:o}),new nt),l=[It(s,e.timeZone,"earlier"),It(s,e.timeZone,"later")].filter(b=>Lt(b,e.timeZone).day===s.day)[0],d=Xe(oo(a,{hour:i}),new nt),c=[It(d,e.timeZone,"earlier"),It(d,e.timeZone,"later")].filter(b=>Lt(b,e.timeZone).day===d.day).pop(),f=ur(e)-e.offset,p=Math.floor(f/Br),h=f%Br;return f=Vt(p,n,Math.floor(l/Br),Math.floor(c/Br),r==null?void 0:r.round)*Br+h,Xe(Lt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Xl(e,t,n,r);case"era":case"year":case"month":case"day":{let o=Zl(ln(e),t,n,r),i=It(o,e.timeZone);return Xe(Lt(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function b5(e,t,n){let r=ln(e),o=oo(ql(r,t),t);if(o.compare(r)===0)return e;let i=It(o,e.timeZone,n);return Xe(Lt(i,e.timeZone),e.calendar)}function S0(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 T0(e){let t=Xe(e,new nt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function A0(e){return`${T0(e)}T${S0(e)}`}function m5(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 g5(e){return`${A0(e)}${m5(e.offset)}[${e.timeZone}]`}function Jl(e){let t=typeof e[0]=="object"?e.shift():new nt,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 v5=new WeakMap;class Re{copy(){return this.era?new Re(this.calendar,this.era,this.year,this.month,this.day):new Re(this.calendar,this.year,this.month,this.day)}add(t){return ra(this,t)}subtract(t){return w0(this,t)}set(t){return ql(this,t)}cycle(t,n,r){return Zl(this,t,n,r)}toDate(t){return v0(this,t)}toString(){return T0(this)}compare(t){return h0(this,t)}constructor(...t){go(this,v5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,Rn(this)}}var y5=new WeakMap;class oa{copy(){return new oa(this.hour,this.minute,this.second,this.millisecond)}add(t){return E0(this,t)}subtract(t){return f5(this,t)}set(t){return oo(this,t)}cycle(t,n,r){return Xl(this,t,n,r)}toString(){return S0(this)}compare(t){return b0(this,t)}constructor(t=0,n=0,r=0,o=0){go(this,y5,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,C0(this)}}var $5=new WeakMap;class Ri{copy(){return this.era?new Ri(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ri(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ra(this,t)}subtract(t){return w0(this,t)}set(t){return ql(oo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Zl(this,t,n,r);default:return Xl(this,t,n,r)}}toDate(t,n){return v0(this,t,n)}toString(){return A0(this)}compare(t){let n=h0(this,t);return n===0?b0(this,ln(t)):n}constructor(...t){go(this,$5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(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,Rn(this)}}var x5=new WeakMap;class io{copy(){return this.era?new io(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new io(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return P0(this,t)}subtract(t){return p5(this,t)}set(t,n){return b5(this,t,n)}cycle(t,n,r){return h5(this,t,n,r)}toDate(){return l5(this)}toString(){return g5(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-$0(t,this.timeZone).toDate().getTime()}constructor(...t){go(this,x5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(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,Rn(this)}}const or=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],w5=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],di=[1867,1911,1925,1988,2018],en=["meiji","taisho","showa","heisei","reiwa"];function pd(e){const t=or.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?or.length-1:t===0?0:t-1}function Ya(e){let t=di[en.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Re(e.year+t,e.month,e.day)}class C5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=pd(n);return new Re(this,en[r],n.year-di[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Ya(t))}balanceDate(t){let n=Ya(t),r=pd(n);en[r]!==t.era&&(t.era=en[r],t.year=n.year-di[r]),this.constrainDate(t)}constrainDate(t){let n=en.indexOf(t.era),r=w5[n];if(r!=null){let[o,i,a]=r,s=o-di[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]=or[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(i,t.day))}}getEras(){return en}getYearsInEra(t){let n=en.indexOf(t.era),r=or[n],o=or[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(Ya(t))}getMinimumMonthInYear(t){let n=hd(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=hd(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function hd(e){if(e.year===1){let t=en.indexOf(e.era);return or[t]}}const M0=-543;class D5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=vo(n.era,n.year);return new Re(this,r-M0,n.month,n.day)}toJulianDay(t){return super.toJulianDay(bd(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(bd(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function bd(e){let[t,n]=na(e.year+M0);return new Re(t,n,e.month,e.day)}const Fi=1911;function k0(e){return e.era==="minguo"?e.year+Fi:1-e.year+Fi}function md(e){let t=e-Fi;return t>0?["minguo",t]:["before_minguo",1-t]}class E5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=vo(n.era,n.year),[o,i]=md(r);return new Re(this,o,i,n.month,n.day)}toJulianDay(t){return super.toJulianDay(gd(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=md(k0(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(gd(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Fi}constructor(...t){super(...t),this.identifier="roc"}}function gd(e){let[t,n]=na(k0(e));return new Re(t,n,e.month,e.day)}const P5=1948321;function S5(e){let t=e>0?e-474:e-473,n=Nt(t,2820)+474;return Nt((n+38)*31,128)<31}function Xo(e,t,n){let r=e>0?e-474:e-473,o=Nt(r,2820)+474,i=t<=7?31*(t-1):30*(t-1)+6;return P5-1+1029983*Math.floor(r/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+n}class T5{fromJulianDay(t){let n=t-Xo(475,1,1),r=Math.floor(n/1029983),o=Nt(n,1029983),i=o===1029982?2820:Math.floor((128*o+46878)/46751),a=474+2820*r+i;a<=0&&a--;let s=t-Xo(a,1,1)+1,l=s<=186?Math.ceil(s/31):Math.ceil((s-6)/31),d=t-Xo(a,l,1)+1;return new Re(this,a,l,d)}toJulianDay(t){return Xo(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||S5(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const qa=78,vd=80;class A5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-qa,o=t-Dn(n.era,n.year,1,1),i;o<vd?(r--,i=nn(n.year-1)?31:30,o+=i+155+90+10):(i=nn(n.year)?31:30,o-=vd);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 Re(this,r,a,s)}toJulianDay(t){let n=t.year+qa,[r,o]=na(n),i,a;return nn(o)?(i=31,a=Dn(r,o,3,21)):(i=30,a=Dn(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&&nn(t.year+qa)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Bi=1948440,yd=1948439,ut=1300,Gn=1600,M5=460322;function Ii(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function R0(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+Ii(t,r,1,1)))/29.5)+1),i=n-Ii(t,r,o,1)+1;return new Re(e,r,o,i)}function $d(e){return(14+11*e)%30<11}class Ql{fromJulianDay(t){return R0(this,Bi,t)}toJulianDay(t){return Ii(Bi,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&$d(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return $d(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class k5 extends Ql{fromJulianDay(t){return R0(this,yd,t)}toJulianDay(t){return Ii(yd,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const R5="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Gs,ir;function fi(e){return M5+ir[e-ut]}function zr(e,t){let n=e-ut,r=1<<11-(t-1);return Gs[n]&r?30:29}function xd(e,t){let n=fi(e);for(let r=1;r<t;r++)n+=zr(e,r);return n}function wd(e){return ir[e+1-ut]-ir[e-ut]}class F5 extends Ql{fromJulianDay(t){let n=t-Bi,r=fi(ut),o=fi(Gn);if(n<r||n>o)return super.fromJulianDay(t);{let i=ut-1,a=1,s=1;for(;s>0;){i++,s=n-fi(i)+1;let l=wd(i);if(s===l){a=12;break}else if(s<l){let d=zr(i,a);for(a=1;s>d;)s-=d,a++,d=zr(i,a);break}}return new Re(this,i,a,n-xd(i,a)+1)}}toJulianDay(t){return t.year<ut||t.year>Gn?super.toJulianDay(t):Bi+xd(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ut||t.year>Gn?super.getDaysInMonth(t):zr(t.year,t.month)}getDaysInYear(t){return t.year<ut||t.year>Gn?super.getDaysInYear(t):wd(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Gs||(Gs=new Uint16Array(Uint8Array.from(atob(R5),t=>t.charCodeAt(0)).buffer)),!ir){ir=new Uint32Array(Gn-ut+1);let t=0;for(let n=ut;n<=Gn;n++){ir[n-ut]=t;for(let r=1;r<=12;r++)t+=zr(n,r)}}}}const Cd=347997,F0=1080,B0=24*F0,B5=29,I5=12*F0+793,L5=B5*B0+I5;function $n(e){return Nt(e*7+1,19)<7}function pi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Nt(3*(r+1),7)<3&&(r+=1),r}function V5(e){let t=pi(e-1),n=pi(e);return pi(e+1)-n===356?2:n-t===382?1:0}function Wr(e){return pi(e)+V5(e)}function I0(e){return Wr(e+1)-Wr(e)}function O5(e){let t=I0(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Jo(e,t){if(t>=6&&!$n(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=O5(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$n(e)?30:0:30}class N5{fromJulianDay(t){let n=t-Cd,r=n*B0/L5,o=Math.floor((19*r+234)/235)+1,i=Wr(o),a=Math.floor(n-i);for(;a<1;)o--,i=Wr(o),a=Math.floor(n-i);let s=1,l=0;for(;l<a;)l+=Jo(o,s),s++;s--,l-=Jo(o,s);let d=a-l;return new Re(this,o,s,d)}toJulianDay(t){let n=Wr(t.year);for(let r=1;r<t.month;r++)n+=Jo(t.year,r);return n+t.day+Cd}getDaysInMonth(t){return Jo(t.year,t.month)}getMonthsInYear(t){return $n(t.year)?13:12}getDaysInYear(t){return I0(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&($n(n.year)&&!$n(t.year)&&n.month>6?t.month--:!$n(n.year)&&$n(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ws=1723856,Dd=1824665,Ys=5500;function Li(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function eu(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Li(e,n,1,1))/30),o=t+1-Li(e,n,r,1);return[n,r,o]}function L0(e){return Math.floor(e%4/3)}function V0(e,t){return t%13!==0?30:L0(e)+5}class tu{fromJulianDay(t){let[n,r,o]=eu(Ws,t),i="AM";return n<=0&&(i="AA",n+=Ys),new Re(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Ys),Li(Ws,n,t.month,t.day)}getDaysInMonth(t){return V0(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+L0(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class K5 extends tu{fromJulianDay(t){let[n,r,o]=eu(Ws,t);return n+=Ys,new Re(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class j5 extends tu{fromJulianDay(t){let[n,r,o]=eu(Dd,t),i="CE";return n<=0&&(i="BCE",n=1-n),new Re(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Li(Dd,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),V0(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 O0(e){switch(e){case"buddhist":return new D5;case"ethiopic":return new tu;case"ethioaa":return new K5;case"coptic":return new j5;case"hebrew":return new N5;case"indian":return new A5;case"islamic-civil":return new Ql;case"islamic-tbla":return new k5;case"islamic-umalqura":return new F5;case"japanese":return new C5;case"persian":return new T5;case"roc":return new E5;case"gregory":default:return new nt}}let Za=new Map;class Yr{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 U5()&&(this.resolvedHourCycle||(this.resolvedHourCycle=H5(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=N0(t,n),this.options=n}}const _5={true:{ja:"h11"},false:{}};function N0(e,t={}){if(typeof t.hour12=="boolean"&&z5()){t={...t};let o=_5[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(Za.has(n))return Za.get(n);let r=new Intl.DateTimeFormat(e,t);return Za.set(n,r),r}let Xa=null;function z5(){return Xa==null&&(Xa=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Xa}let Ja=null;function U5(){return Ja==null&&(Ja=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Ja}function H5(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=N0(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 Qa=new Map,qs=!1;try{qs=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Vi=!1;try{Vi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const K0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Oi{format(t){let n="";if(!qs&&this.options.signDisplay!=null?n=W5(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Vi){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=K0[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!qs&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Vi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=G5(t,n),this.options=n}}function G5(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Vi){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=K0[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(Qa.has(o))return Qa.get(o);let i=new Intl.NumberFormat(e,t);return Qa.set(o,i),i}function W5(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 Y5=new RegExp("^.*\\(.*\\).*$"),q5=["latn","arab","hanidec"];class nu{parse(t){return es(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return es(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return es(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Ed=new Map;function es(e,t,n){let r=Pd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of q5)if(o!==r.options.numberingSystem){let i=Pd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Pd(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=Ed.get(n);return r||(r=new Z5(e,t),Ed.set(n,r)),r}class Z5{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Qo(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 nu(this.locale,o).parse(new Oi(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&Y5.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=Qo(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=Qo(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=Qo(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=J5(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 Sd=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),X5=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function J5(e,t,n,r){var o,i,a,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),d=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),f=X5.map(F=>l.formatToParts(F));var p;let h=(p=(o=d.find(F=>F.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&p!==void 0?p:"-",b=(i=c.find(F=>F.type==="plusSign"))===null||i===void 0?void 0:i.value;!b&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(b="+");let y=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(F=>F.type==="decimal"))===null||a===void 0?void 0:a.value,$=(s=d.find(F=>F.type==="group"))===null||s===void 0?void 0:s.value,C=d.filter(F=>!Sd.has(F.type)).map(F=>Td(F.value)),w=f.flatMap(F=>F.filter(A=>!Sd.has(A.type)).map(A=>Td(A.value))),E=[...new Set([...C,...w])].sort((F,A)=>A.length-F.length),P=E.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${E.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),N=new Map(k.map((F,A)=>[F,A])),v=new RegExp(`[${k.join("")}]`,"g");return{minusSign:h,plusSign:b,decimal:y,group:$,literals:P,numeral:v,index:F=>String(N.get(F))}}function Qo(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Td(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Q5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),e2=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function t2(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 Q5.has(n.script)}let t=e.split("-")[0];return e2.has(t)}const n2=Symbol.for("react-aria.i18n.locale");function j0(){let e=typeof window<"u"&&window[n2]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:t2(e)?"rtl":"ltr"}}let Zs=j0(),Ur=new Set;function Ad(){Zs=j0();for(let e of Ur)e(Zs)}function r2(){let e=At(),[t,n]=u.useState(Zs);return u.useEffect(()=>(Ur.size===0&&window.addEventListener("languagechange",Ad),Ur.add(n),()=>{Ur.delete(n),Ur.size===0&&window.removeEventListener("languagechange",Ad)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const o2=u.createContext(null);function Ve(){let e=r2();return u.useContext(o2)||e}const Md=new WeakMap;function i2(e){let t=Md.get(e);return t||(t=new In(e),Md.set(e,t)),t}function _0(e,t){return t&&In.getGlobalDictionaryForPackage(t)||i2(e)}function gr(e,t){let{locale:n}=Ve(),r=_0(e,t);return u.useMemo(()=>new d0(n,r),[n,r])}function ei(e){e=px(e??{},a2);let{locale:t}=Ve();return u.useMemo(()=>new Yr(t,e),[t,e])}function a2(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 Ni(e={}){let{locale:t}=Ve();return u.useMemo(()=>new Oi(t,e),[t,e])}let ts=new Map;function ru(e){let{locale:t}=Ve(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ts.has(n))return ts.get(n);let r=new Intl.Collator(t,e);return ts.set(n,r),r}function z0(e){let t=ru({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 d=i.slice(s,s+l);if(t.compare(a,d)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}var U0={};U0={dismiss:"تجاهل"};var H0={};H0={dismiss:"Отхвърляне"};var G0={};G0={dismiss:"Odstranit"};var W0={};W0={dismiss:"Luk"};var Y0={};Y0={dismiss:"Schließen"};var q0={};q0={dismiss:"Απόρριψη"};var Z0={};Z0={dismiss:"Dismiss"};var X0={};X0={dismiss:"Descartar"};var J0={};J0={dismiss:"Lõpeta"};var Q0={};Q0={dismiss:"Hylkää"};var eh={};eh={dismiss:"Rejeter"};var th={};th={dismiss:"התעלם"};var nh={};nh={dismiss:"Odbaci"};var rh={};rh={dismiss:"Elutasítás"};var oh={};oh={dismiss:"Ignora"};var ih={};ih={dismiss:"閉じる"};var ah={};ah={dismiss:"무시"};var sh={};sh={dismiss:"Atmesti"};var lh={};lh={dismiss:"Nerādīt"};var uh={};uh={dismiss:"Lukk"};var ch={};ch={dismiss:"Negeren"};var dh={};dh={dismiss:"Zignoruj"};var fh={};fh={dismiss:"Descartar"};var ph={};ph={dismiss:"Dispensar"};var hh={};hh={dismiss:"Revocare"};var bh={};bh={dismiss:"Пропустить"};var mh={};mh={dismiss:"Zrušiť"};var gh={};gh={dismiss:"Opusti"};var vh={};vh={dismiss:"Odbaci"};var yh={};yh={dismiss:"Avvisa"};var $h={};$h={dismiss:"Kapat"};var xh={};xh={dismiss:"Скасувати"};var wh={};wh={dismiss:"取消"};var Ch={};Ch={dismiss:"關閉"};const kd={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 s2(e={}){let{style:t,isFocusable:n}=e,[r,o]=u.useState(!1),{focusWithinProps:i}=br({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=u.useMemo(()=>r?t:t?{...kd,...t}:kd,[r]);return{visuallyHiddenProps:{...i,style:a}}}function ia(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=s2(e);return u.createElement(n,X(i,a),t)}function l2(e){return e&&e.__esModule?e.default:e}const Jn={top:"top",bottom:"top",left:"left",right:"left"},Ki={top:"bottom",bottom:"top",left:"right",right:"left"},u2={top:"left",left:"top"},Xs={top:"height",left:"width"},Dh={width:"totalWidth",height:"totalHeight"},ti={};let Je=typeof document<"u"&&window.visualViewport;function Rd(e){let t=0,n=0,r=0,o=0,i=0,a=0,s={},l=(Je==null?void 0:Je.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,o=f.clientHeight;var d;t=(d=Je==null?void 0:Je.width)!==null&&d!==void 0?d:r;var c;n=(c=Je==null?void 0:Je.height)!==null&&c!==void 0?c:o,s.top=f.scrollTop||e.scrollTop,s.left=f.scrollLeft||e.scrollLeft,Je&&(i=Je.offsetTop,a=Je.offsetLeft)}else({width:t,height:n,top:i,left:a}=ar(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return Ol()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(s.top=0,s.left=0,i=Je.pageTop,a=Je.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:a}}function c2(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Fd(e,t,n,r,o,i,a){let s=o.scroll[e],l=r[Xs[e]],d=r.scroll[Jn[e]]+i,c=l+r.scroll[Jn[e]]-i,f=t-s+a[e]-r[Jn[e]],p=t-s+n+a[e]-r[Jn[e]];return f<d?d-f:p>c?Math.max(c-p,d-f):0}function d2(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 Bd(e){if(ti[e])return ti[e];let[t,n]=e.split(" "),r=Jn[t]||"right",o=u2[r];Jn[n]||(n="center");let i=Xs[r],a=Xs[o];return ti[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},ti[e]}function ns(e,t,n,r,o,i,a,s,l,d){let{placement:c,crossPlacement:f,axis:p,crossAxis:h,size:b,crossSize:g}=r,y={};y[h]=e[h],f==="center"?y[h]+=(e[g]-n[g])/2:f!==h&&(y[h]+=e[g]-n[g]),y[h]+=i;const $=e[h]-n[g]+l+d,C=e[h]+e[g]-l-d;if(y[h]=pt(y[h],$,C),c===p){const w=s?a[b]:t[Dh[b]];y[Ki[p]]=Math.floor(w-e[p]+o)}else y[p]=Math.floor(e[p]+e[b]+o);return y}function f2(e,t,n,r,o,i,a,s){const l=r?n.height:t[Dh.height];let d=e.top!=null?n.top+e.top:n.top+(l-e.bottom-a),c=s!=="top"?Math.max(0,t.height+t.top+t.scroll.top-d-(o.top+o.bottom+i)):Math.max(0,d+a-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-i*2,c)}function Id(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[Ki[s]]-o):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[Ki[s]]-o)}function p2(e,t,n,r,o,i,a,s,l,d,c,f,p,h,b,g){let y=Bd(e),{size:$,crossAxis:C,crossSize:w,placement:E,crossPlacement:P}=y,k=ns(t,s,n,y,c,f,d,p,b,g),N=c,v=Id(s,d,t,o,i+c,y);if(a&&r[$]>v){let Y=Bd(`${Ki[E]} ${P}`),H=ns(t,s,n,Y,c,f,d,p,b,g);Id(s,d,t,o,i+c,Y)>v&&(y=Y,k=H,N=c)}let L="bottom";y.axis==="top"?y.placement==="top"?L="top":y.placement==="bottom"&&(L="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?L="bottom":y.crossPlacement==="bottom"&&(L="top"));let F=Fd(C,k[C],n[w],s,l,i,d);k[C]+=F;let A=f2(k,s,d,p,o,i,n.height,L);h&&h<A&&(A=h),n.height=Math.min(n.height,A),k=ns(t,s,n,y,N,f,d,p,b,g),F=Fd(C,k[C],n[w],s,l,i,d),k[C]+=F;let B={},R=t[C]+.5*t[w]-n[C];const I=b/2+g,K=n[w]-b/2-g,V=t[C]-n[C]+b/2,T=t[C]+t[w]-n[C]-b/2,G=pt(R,V,T);return B[C]=pt(G,I,K),{position:k,maxHeight:A,arrowOffsetLeft:B.left,arrowOffsetTop:B.top,placement:y.placement}}function h2(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:d,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,h=r instanceof HTMLElement?b2(r):document.documentElement,b=h===document.documentElement;const g=window.getComputedStyle(h).position;let y=!!g&&g!=="static",$=b?ar(n):Ld(n,h);if(!b){let{marginTop:v,marginLeft:L}=window.getComputedStyle(n);$.top+=parseInt(v,10)||0,$.left+=parseInt(L,10)||0}let C=ar(r),w=d2(r);C.width+=w.left+w.right,C.height+=w.top+w.bottom;let E=c2(o),P=Rd(s),k=Rd(h),N=s.tagName==="BODY"?ar(h):Ld(h,s);return h.tagName==="HTML"&&s.tagName==="BODY"&&(k.scroll.top=0,k.scroll.left=0),p2(t,$,C,E,w,i,a,P,k,N,l,d,y,c,f,p)}function ar(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 Ld(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=ar(e);let o=ar(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 b2(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Vd(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Vd(t);)t=t.parentElement;return t||document.documentElement}function Vd(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 Eh=new WeakMap;function m2(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||Eh.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Te=typeof document<"u"&&window.visualViewport;function Ph(e){let{direction:t}=Ve(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:a="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:h=!0,onClose:b,maxHeight:g,arrowBoundaryOffset:y=0}=e,[$,C]=u.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),w=[p,a,o.current,r.current,i.current,s,l,d,c,f,h,t,g,y,n],E=u.useRef(Te==null?void 0:Te.scale);u.useEffect(()=>{h&&(E.current=Te==null?void 0:Te.scale)},[h]);let P=u.useCallback(()=>{if(p===!1||!h||!o.current||!r.current||!i.current||!d||(Te==null?void 0:Te.scale)!==E.current)return;!g&&o.current&&(o.current.style.maxHeight="none");let v=h2({placement:v2(a,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:l,boundaryElement:d,offset:c,crossOffset:f,maxHeight:g,arrowSize:n,arrowBoundaryOffset:y});Object.keys(v.position).forEach(L=>o.current.style[L]=v.position[L]+"px"),o.current.style.maxHeight=v.maxHeight!=null?v.maxHeight+"px":void 0,C(v)},w);be(P,w),g2(P),Kl({ref:o,onResize:P});let k=u.useRef(!1);be(()=>{let v,L=()=>{k.current=!0,clearTimeout(v),v=setTimeout(()=>{k.current=!1},500),P()},F=()=>{k.current&&L()};return Te==null||Te.addEventListener("resize",L),Te==null||Te.addEventListener("scroll",F),()=>{Te==null||Te.removeEventListener("resize",L),Te==null||Te.removeEventListener("scroll",F)}},[P]);let N=u.useCallback(()=>{k.current||b()},[b,k]);return m2({triggerRef:r,isOpen:h,onClose:b&&N}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...$.position,maxHeight:$.maxHeight}},placement:$.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$.arrowOffsetLeft,top:$.arrowOffsetTop}},updatePosition:P}}function g2(e){be(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function v2(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Rt=[];function ou(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;u.useEffect(()=>(o&&Rt.push(t),()=>{let b=Rt.indexOf(t);b>=0&&Rt.splice(b,1)}),[o,t]);let l=()=>{Rt[Rt.length-1]===t&&n&&n()},d=b=>{(!s||s(b.target))&&Rt[Rt.length-1]===t&&(b.stopPropagation(),b.preventDefault())},c=b=>{(!s||s(b.target))&&(Rt[Rt.length-1]===t&&(b.stopPropagation(),b.preventDefault()),l())},f=b=>{b.key==="Escape"&&!a&&(b.stopPropagation(),b.preventDefault(),l())};o0({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:d});let{focusWithinProps:p}=br({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||_x(b.relatedTarget)||(!s||s(b.relatedTarget))&&n()}}),h=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:h}}}function y2(e,t,n){let{type:r}=e,{isOpen:o}=t;u.useEffect(()=>{n&&n.current&&Eh.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=_e();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:null,onPress:t.toggle},overlayProps:{id:a}}}const rs=typeof document<"u"&&window.visualViewport,$2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ni=0,os;function Sh(e={}){let{isDisabled:t}=e;be(()=>{if(!t)return ni++,ni===1&&(pr()?os=w2():os=x2()),()=>{ni--,ni===0&&os()}},[t])}function x2(){return an(Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"))}function w2(){let e,t,n=d=>{e=to(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Qn(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},o=d=>{let c=d.target;Nd(c)&&c!==document.activeElement&&(d.preventDefault(),s(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},i=d=>{let c=d.target;Nd(c)&&(s(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",rs&&(rs.height<window.innerHeight?requestAnimationFrame(()=>{Od(c)}):rs.addEventListener("resize",()=>Od(c),{once:!0}))}))},a=null,s=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;a=an(Ir(window,"scroll",d),Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"),Qn(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},l=an(Ir(document,"touchstart",n,{passive:!1,capture:!0}),Ir(document,"touchmove",r,{passive:!1,capture:!0}),Ir(document,"touchend",o,{passive:!1,capture:!0}),Ir(document,"focus",i,!0));return()=>{t==null||t(),a==null||a(),l()}}function Qn(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ir(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Od(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=to(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 Nd(e){return e instanceof HTMLInputElement&&!$2.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Js=u.createContext(null);function C2(e){let{children:t}=e,n=u.useContext(Js),[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(Js.Provider,{value:i},t)}function D2(){let e=u.useContext(Js);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function E2(e){let{modalProviderProps:t}=D2();return u.createElement("div",{"data-overlay-container":!0,...e,...t})}function P2(e){return u.createElement(C2,null,u.createElement(E2,e))}function Kd(e){let t=At(),{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(P2,r);return Wt.createPortal(o,n)}var Th={};Th={"ar-AE":U0,"bg-BG":H0,"cs-CZ":G0,"da-DK":W0,"de-DE":Y0,"el-GR":q0,"en-US":Z0,"es-ES":X0,"et-EE":J0,"fi-FI":Q0,"fr-FR":eh,"he-IL":th,"hr-HR":nh,"hu-HU":rh,"it-IT":oh,"ja-JP":ih,"ko-KR":ah,"lt-LT":sh,"lv-LV":lh,"nb-NO":uh,"nl-NL":ch,"pl-PL":dh,"pt-BR":fh,"pt-PT":ph,"ro-RO":hh,"ru-RU":bh,"sk-SK":mh,"sl-SI":gh,"sr-SP":vh,"sv-SE":yh,"tr-TR":$h,"uk-UA":xh,"zh-CN":wh,"zh-TW":Ch};function Qs(e){let{onDismiss:t,...n}=e,r=gr(l2(Th),"@react-aria/overlays"),o=An(n,r.format("dismiss")),i=()=>{t&&t()};return u.createElement(ia,null,u.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Lr=new WeakMap,ot=[];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 d=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},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),f=d(l);if(f===NodeFilter.FILTER_ACCEPT&&i(l),f!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)i(p),p=c.nextNode()}},i=l=>{var d;let c=(d=Lr.get(l))!==null&&d!==void 0?d:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),Lr.set(l,c+1))};ot.length&&ot[ot.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let d of l)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(d.target))){for(let c of d.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of d.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return ot.push(s),()=>{a.disconnect();for(let l of r){let d=Lr.get(l);d===1?(l.removeAttribute("aria-hidden"),Lr.delete(l)):Lr.set(l,d-1)}s===ot[ot.length-1]?(ot.pop(),ot.length&&ot[ot.length-1].observe()):ot.splice(ot.indexOf(s),1)}}function S2(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...s}=e,{overlayProps:l,underlayProps:d}=ou({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:c,arrowProps:f,placement:p}=Ph({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Sh({isDisabled:o||!t.isOpen}),be(()=>{if(t.isOpen&&!o&&r.current)return iu([r.current])},[o,t.isOpen,r]),{popoverProps:X(l,c),arrowProps:f,underlayProps:d,placement:p}}const Ah=u.createContext(null);function Mh(e){let t=At(),{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(Ul,{restoreFocus:!0,contain:o&&!r},s)),s=u.createElement(Ah.Provider,{value:a},u.createElement(Dx,null,s)),Wt.createPortal(s,n)}function kh(){let e=u.useContext(Ah),t=e==null?void 0:e.setContain;be(()=>{t==null||t(!0)},[t])}function T2(e,t,n){let{overlayProps:r,underlayProps:o}=ou({...e,isOpen:t.isOpen,onClose:t.close},n);return Sh({isDisabled:!t.isOpen}),kh(),u.useEffect(()=>{if(t.isOpen)return iu([n.current])},[t.isOpen,n]),{modalProps:X(r),underlayProps:o}}function aa(e){return u.forwardRef(e)}var Rh=(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]},Fh=aa((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=S.jsx(A$,{}),alt:a,classNames:s,slots:l,name:d,showFallback:c,fallback:f,getInitials:p,getAvatarProps:h,getImageProps:b}=Xx({...e,ref:t}),g=u.useMemo(()=>!c&&o?null:f?S.jsx("div",{"aria-label":a,className:l.fallback({class:s==null?void 0:s.fallback}),role:"img",children:f}):d?S.jsx("span",{"aria-label":a,className:l.name({class:s==null?void 0:s.name}),role:"img",children:p(d)}):S.jsx("span",{"aria-label":a,className:l.icon({class:s==null?void 0:s.icon}),role:"img",children:i}),[c,o,f,d,s]);return S.jsxs(n,{...h(),children:[o&&S.jsx(r,{...b(),alt:a}),g]})});Fh.displayName="NextUI.Avatar";var Bh=Fh;function A2(e={}){const{as:t,ref:n,max:r=5,total:o,size:i,color:a,radius:s,children:l,isBordered:d,isDisabled:c,isGrid:f,renderCount:p,className:h,classNames:b,...g}=e,y=As(n),$=t||"div",C=u.useMemo(()=>({size:i,color:a,radius:s,isGrid:f,isBordered:d,isDisabled:c}),[i,a,s,f,d,c]),w=u.useMemo(()=>L3({className:h,isGrid:f}),[h,f]),E=W$(l),P=r?E.slice(0,r):E,k=o||(r!=null?E.length-r:-1),N=P.map((F,A)=>{const B=A===0,R=A===P.length-1,I={className:sr(B?"ms-0":f?"":"-ms-2",R&&k<1?"hover:-translate-x-0":"")};return u.cloneElement(F,I$(I))});return{Component:$,context:C,remainingCount:k,clones:N,renderCount:p,getAvatarGroupProps:()=>({ref:y,className:w.base({class:sr(b==null?void 0:b.base,h)}),role:"group",...g}),getAvatarGroupCountProps:()=>({className:w.count({class:b==null?void 0:b.count})})}}var Ih=aa((e,t)=>{const{Component:n,clones:r,context:o,remainingCount:i,getAvatarGroupCountProps:a,getAvatarGroupProps:s,renderCount:l=d=>S.jsx(Bh,{...a(),name:`+${d}`})}=A2({...e,ref:t});return S.jsx(n,{...s(),children:S.jsxs(Y$,{value:o,children:[r,i>0&&l(i)]})})});Ih.displayName="NextUI.AvatarGroup";var M2=Ih;const x={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 Lh(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]=Lh(n[r],o)):n[r]=o}),n}const k2=_.styled.div`
39
+ */var Ho=ai(li());function ci(e){return Ho.Children.toArray(e).filter(r=>(0,Ho.isValidElement)(r))}var[di,Rn]=Us({name:"AvatarGroupContext",strict:!1}),ui={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"},fi={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"},pi={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"},bi={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"},gi={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"},vi={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"},yi={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"},te={solid:ui,shadow:fi,bordered:pi,flat:bi,faded:gi,light:vi,ghost:yi},Go=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,me=e=>!e||typeof e!="object"||Object.keys(e).length===0,$i=(e,r)=>JSON.stringify(e)===JSON.stringify(r);function On(e,r){e.forEach(function(t){Array.isArray(t)?On(t,r):r.push(t)})}function jn(e){let r=[];return On(e,r),r}var Mn=(...e)=>jn(e).filter(Boolean),_n=(e,r)=>{let t={},o=Object.keys(e),n=Object.keys(r);for(let s of o)if(n.includes(s)){let i=e[s],l=r[s];typeof i=="object"&&typeof l=="object"?t[s]=_n(i,l):Array.isArray(i)||Array.isArray(l)?t[s]=Mn(l,i):t[s]=l+" "+i}else t[s]=e[s];for(let s of n)o.includes(s)||(t[s]=r[s]);return t},Wo=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function xi(){for(var e=0,r,t,o="";e<arguments.length;)(r=arguments[e++])&&(t=In(r))&&(o&&(o+=" "),o+=t);return o}function In(e){if(typeof e=="string")return e;for(var r,t="",o=0;o<e.length;o++)e[o]&&(r=In(e[o]))&&(t&&(t+=" "),t+=r);return t}var Ut="-";function wi(e){var r=hi(e),t=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,n=o===void 0?{}:o;function s(l){var u=l.split(Ut);return u[0]===""&&u.length!==1&&u.shift(),An(u,r)||mi(l)}function i(l,u){var g=t[l]||[];return u&&n[l]?[].concat(g,n[l]):g}return{getClassGroupId:s,getConflictingClassGroupIds:i}}function An(e,r){var i;if(e.length===0)return r.classGroupId;var t=e[0],o=r.nextPart.get(t),n=o?An(e.slice(1),o):void 0;if(n)return n;if(r.validators.length!==0){var s=e.join(Ut);return(i=r.validators.find(function(l){var u=l.validator;return u(s)}))==null?void 0:i.classGroupId}}var Uo=/^\[(.+)\]$/;function mi(e){if(Uo.test(e)){var r=Uo.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}function hi(e){var r=e.theme,t=e.prefix,o={nextPart:new Map,validators:[]},n=Ei(Object.entries(e.classGroups),t);return n.forEach(function(s){var i=s[0],l=s[1];$t(l,o,i,r)}),o}function $t(e,r,t,o){e.forEach(function(n){if(typeof n=="string"){var s=n===""?r:Ko(r,n);s.classGroupId=t;return}if(typeof n=="function"){if(Ci(n)){$t(n(o),r,t,o);return}r.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(function(i){var l=i[0],u=i[1];$t(u,Ko(r,l),t,o)})})}function Ko(e,r){var t=e;return r.split(Ut).forEach(function(o){t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function Ci(e){return e.isThemeGetter}function Ei(e,r){return r?e.map(function(t){var o=t[0],n=t[1],s=n.map(function(i){return typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(l){var u=l[0],g=l[1];return[r+u,g]})):i});return[o,s]}):e}function ki(e){if(e<1)return{get:function(){},set:function(){}};var r=0,t=new Map,o=new Map;function n(s,i){t.set(s,i),r++,r>e&&(r=0,o=t,t=new Map)}return{get:function(i){var l=t.get(i);if(l!==void 0)return l;if((l=o.get(i))!==void 0)return n(i,l),l},set:function(i,l){t.has(i)?t.set(i,l):n(i,l)}}}var Ln="!";function Si(e){var r=e.separator||":",t=r.length===1,o=r[0],n=r.length;return function(i){for(var l=[],u=0,g=0,b,y=0;y<i.length;y++){var h=i[y];if(u===0){if(h===o&&(t||i.slice(y,y+n)===r)){l.push(i.slice(g,y)),g=y+n;continue}if(h==="/"){b=y;continue}}h==="["?u++:h==="]"&&u--}var v=l.length===0?i:i.substring(g),x=v.startsWith(Ln),E=x?v.substring(1):v,k=b&&b>g?b-g:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:E,maybePostfixModifierPosition:k}}}function Ti(e){if(e.length<=1)return e;var r=[],t=[];return e.forEach(function(o){var n=o[0]==="[";n?(r.push.apply(r,t.sort().concat([o])),t=[]):t.push(o)}),r.push.apply(r,t.sort()),r}function Pi(e){return{cache:ki(e.cacheSize),splitModifiers:Si(e),...wi(e)}}var Ri=/\s+/;function Oi(e,r){var t=r.splitModifiers,o=r.getClassGroupId,n=r.getConflictingClassGroupIds,s=new Set;return e.trim().split(Ri).map(function(i){var l=t(i),u=l.modifiers,g=l.hasImportantModifier,b=l.baseClassName,y=l.maybePostfixModifierPosition,h=o(y?b.substring(0,y):b),v=!!y;if(!h){if(!y)return{isTailwindClass:!1,originalClassName:i};if(h=o(b),!h)return{isTailwindClass:!1,originalClassName:i};v=!1}var x=Ti(u).join(":"),E=g?x+Ln:x;return{isTailwindClass:!0,modifierId:E,classGroupId:h,originalClassName:i,hasPostfixModifier:v}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var l=i.modifierId,u=i.classGroupId,g=i.hasPostfixModifier,b=l+u;return s.has(b)?!1:(s.add(b),n(u,g).forEach(function(y){return s.add(l+y)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function xt(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var o,n,s,i=l;function l(g){var b=r[0],y=r.slice(1),h=y.reduce(function(v,x){return x(v)},b());return o=Pi(h),n=o.cache.get,s=o.cache.set,i=u,u(g)}function u(g){var b=n(g);if(b)return b;var y=Oi(g,o);return s(g,y),y}return function(){return i(xi.apply(null,arguments))}}function ce(e){var r=function(o){return o[e]||[]};return r.isThemeGetter=!0,r}var Nn=/^\[(?:([a-z-]+):)?(.+)\]$/i,ji=/^\d+\/\d+$/,Mi=new Set(["px","full","screen"]),_i=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ii=/\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$/,Ai=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Pe(e){return We(e)||Mi.has(e)||ji.test(e)||wt(e)}function wt(e){return Xe(e,"length",Vi)}function Li(e){return Xe(e,"size",Dn)}function Ni(e){return Xe(e,"position",Dn)}function Di(e){return Xe(e,"url",Bi)}function jr(e){return Xe(e,"number",We)}function We(e){return!Number.isNaN(Number(e))}function Fi(e){return e.endsWith("%")&&We(e.slice(0,-1))}function dr(e){return Yo(e)||Xe(e,"number",Yo)}function re(e){return Nn.test(e)}function ur(){return!0}function Ve(e){return _i.test(e)}function zi(e){return Xe(e,"",Hi)}function Xe(e,r,t){var o=Nn.exec(e);return o?o[1]?o[1]===r:t(o[2]):!1}function Vi(e){return Ii.test(e)}function Dn(){return!1}function Bi(e){return e.startsWith("url(")}function Yo(e){return Number.isInteger(Number(e))}function Hi(e){return Ai.test(e)}function mt(){var e=ce("colors"),r=ce("spacing"),t=ce("blur"),o=ce("brightness"),n=ce("borderColor"),s=ce("borderRadius"),i=ce("borderSpacing"),l=ce("borderWidth"),u=ce("contrast"),g=ce("grayscale"),b=ce("hueRotate"),y=ce("invert"),h=ce("gap"),v=ce("gradientColorStops"),x=ce("gradientColorStopPositions"),E=ce("inset"),k=ce("margin"),T=ce("opacity"),M=ce("padding"),_=ce("saturate"),I=ce("scale"),O=ce("sepia"),P=ce("skew"),F=ce("space"),L=ce("translate"),N=function(){return["auto","contain","none"]},J=function(){return["auto","hidden","clip","visible","scroll"]},q=function(){return["auto",re,r]},j=function(){return[re,r]},H=function(){return["",Pe]},z=function(){return["auto",We,re]},V=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},G=function(){return["solid","dashed","dotted","double","none"]},A=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},U=function(){return["start","end","center","between","around","evenly","stretch"]},Z=function(){return["","0",re]},Q=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},$=function(){return[We,jr]},S=function(){return[We,re]};return{cacheSize:500,theme:{colors:[ur],spacing:[Pe],blur:["none","",Ve,re],brightness:$(),borderColor:[e],borderRadius:["none","","full",Ve,re],borderSpacing:j(),borderWidth:H(),contrast:$(),grayscale:Z(),hueRotate:S(),invert:Z(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[Fi,wt],inset:q(),margin:q(),opacity:$(),padding:j(),saturate:$(),scale:$(),sepia:Z(),skew:S(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[Ve]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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(V(),[re])}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",dr]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",dr]}],"grid-cols":[{"grid-cols":[ur]}],"col-start-end":[{col:["auto",{span:["full",dr]},re]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[ur]}],"row-start-end":[{row:["auto",{span:[dr]},re]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal"].concat(U())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(U(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(U(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",re,r]}],"min-w":[{"min-w":["min","max","fit",re,Pe]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Ve]},Ve,re]}],h:[{h:[re,r,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",re,Pe]}],"max-h":[{"max-h":[re,r,"min","max","fit"]}],"font-size":[{text:["base",Ve,wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jr]}],"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",re]}],"line-clamp":[{"line-clamp":["none",We,jr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",re,Pe]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(G(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Pe]}],"underline-offset":[{"underline-offset":["auto",re,Pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],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",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(V(),[Ni])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Li]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Di]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[].concat(G(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:G()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:[""].concat(G())}],"outline-offset":[{"outline-offset":[re,Pe]}],"outline-w":[{outline:[Pe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[Pe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ve,zi]}],"shadow-color":[{shadow:[ur]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":A()}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Ve,re]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[y]}],saturate:[{saturate:[_]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",re]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[dr,re]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],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",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Pe,jr]}],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 Gi(e,r){for(var t in r)Fn(e,t,r[t]);return e}var Wi=Object.prototype.hasOwnProperty,Ui=new Set(["string","number","boolean"]);function Fn(e,r,t){if(!Wi.call(e,r)||Ui.has(typeof t)||t===null){e[r]=t;return}if(Array.isArray(t)&&Array.isArray(e[r])){e[r]=e[r].concat(t);return}if(typeof t=="object"&&typeof e[r]=="object"){if(e[r]===null){e[r]=t;return}for(var o in t)Fn(e[r],o,t[o])}}function Ki(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];return typeof e=="function"?xt.apply(void 0,[mt,e].concat(t)):xt.apply(void 0,[function(){return Gi(mt(),e)}].concat(t))}var Yi=xt(mt),Xi={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},zn=e=>e||void 0,vr=(...e)=>zn(jn(e).filter(Boolean).join(" ")),dt=null,zr={},ht=!1,fr=(...e)=>r=>r.twMerge?((!dt||ht)&&(ht=!1,dt=me(zr)?Yi:Ki(zr)),zn(dt(vr(e)))):vr(e),Xo=(e,r)=>{for(let t in r)e.hasOwnProperty(t)?e[t]=vr(e[t],r[t]):e[t]=r[t];return e},qi=(e,r)=>{let{extend:t=null,slots:o={},variants:n={},compoundVariants:s=[],compoundSlots:i=[],defaultVariants:l={}}=e,u={...Xi,...r},g=t!=null&&t.base?vr(t.base,e==null?void 0:e.base):e==null?void 0:e.base,b=t!=null&&t.variants&&!me(t.variants)?_n(n,t.variants):n,y=t!=null&&t.defaultVariants&&!me(t.defaultVariants)?{...t.defaultVariants,...l}:l;!me(u.twMergeConfig)&&!$i(u.twMergeConfig,zr)&&(ht=!0,zr=u.twMergeConfig);let h=me(t==null?void 0:t.slots),v=me(o)?{}:{base:vr(e==null?void 0:e.base,h&&(t==null?void 0:t.base)),...o},x=h?v:Xo({...t==null?void 0:t.slots},me(v)?{base:e==null?void 0:e.base}:v),E=T=>{if(me(b)&&me(o)&&h)return fr(g,T==null?void 0:T.class,T==null?void 0:T.className)(u);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof s}`);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof i}`);let M=(j,H,z=[],V)=>{let G=z;if(typeof H=="string")G=G.concat(Wo(H).split(" ").map(A=>`${j}:${A}`));else if(Array.isArray(H))G=G.concat(H.reduce((A,U)=>A.concat(`${j}:${U}`),[]));else if(typeof H=="object"&&typeof V=="string"){for(let A in H)if(H.hasOwnProperty(A)&&A===V){let U=H[A];if(U&&typeof U=="string"){let Z=Wo(U);G[V]?G[V]=G[V].concat(Z.split(" ").map(Q=>`${j}:${Q}`)):G[V]=Z.split(" ").map(Q=>`${j}:${Q}`)}else Array.isArray(U)&&U.length>0&&(G[V]=U.reduce((Z,Q)=>Z.concat(`${j}:${Q}`),[]))}}return G},_=(j,H=b,z=null,V=null)=>{var G;let A=H[j];if(!A||me(A))return null;let U=(G=V==null?void 0:V[j])!=null?G:T==null?void 0:T[j];if(U===null)return null;let Z=Go(U),Q=Array.isArray(u.responsiveVariants)&&u.responsiveVariants.length>0||u.responsiveVariants===!0,$=y==null?void 0:y[j],S=[];if(typeof Z=="object"&&Q)for(let[Y,ee]of Object.entries(Z)){let ne=A[ee];if(Y==="initial"){$=ee;continue}Array.isArray(u.responsiveVariants)&&!u.responsiveVariants.includes(Y)||(S=M(Y,ne,S,z))}let W=A[Z]||A[Go($)];return typeof S=="object"&&typeof z=="string"&&S[z]?Xo(S,W):S.length>0?(S.push(W),S):W},I=()=>b?Object.keys(b).map(j=>_(j,b)):null,O=(j,H)=>{if(!b||typeof b!="object")return null;let z=new Array;for(let V in b){let G=_(V,b,j,H),A=j==="base"&&typeof G=="string"?G:G&&G[j];A&&(z[z.length]=A)}return z},P={};for(let j in T)T[j]!==void 0&&(P[j]=T[j]);let F=(j,H)=>{var z;let V=typeof(T==null?void 0:T[j])=="object"?{[j]:(z=T[j])==null?void 0:z.initial}:{};return{...y,...P,...V,...H}},L=(j=[],H)=>{let z=[];for(let{class:V,className:G,...A}of j){let U=!0;for(let[Z,Q]of Object.entries(A)){let $=F(Z,H);if(Array.isArray(Q)){if(!Q.includes($[Z])){U=!1;break}}else if($[Z]!==Q){U=!1;break}}U&&(V&&z.push(V),G&&z.push(G))}return z},N=j=>{let H=L(s,j),z=L(t==null?void 0:t.compoundVariants,j);return Mn(z,H)},J=j=>{let H=N(j);if(!Array.isArray(H))return H;let z={};for(let V of H)if(typeof V=="string"&&(z.base=fr(z.base,V)(u)),typeof V=="object")for(let[G,A]of Object.entries(V))z[G]=fr(z[G],A)(u);return z},q=j=>{if(i.length<1)return null;let H={};for(let{slots:z=[],class:V,className:G,...A}of i){if(!me(A)){let U=!0;for(let Z of Object.keys(A)){let Q=F(Z,j)[Z];if(Q===void 0||(Array.isArray(A[Z])?!A[Z].includes(Q):A[Z]!==Q)){U=!1;break}}if(!U)continue}for(let U of z)H[U]=H[U]||[],H[U].push([V,G])}return H};if(!me(o)||!h){let j={};if(typeof x=="object"&&!me(x))for(let H of Object.keys(x))j[H]=z=>{var V,G;return fr(x[H],O(H,z),((V=J(z))!=null?V:[])[H],((G=q(z))!=null?G:[])[H],z==null?void 0:z.class,z==null?void 0:z.className)(u)};return j}return fr(g,I(),N(),T==null?void 0:T.class,T==null?void 0:T.className)(u)},k=()=>{if(!(!b||typeof b!="object"))return Object.keys(b)};return E.variantKeys=k(),E.extend=t,E.base=g,E.slots=x,E.variants=b,E.defaultVariants=y,E.compoundSlots=i,E.compoundVariants=s,E},Mr=["small","medium","large"],Xr=(e,r)=>{var t,o,n;return qi(e,{...r,twMerge:(t=r==null?void 0:r.twMerge)!=null?t:!0,twMergeConfig:{...r==null?void 0:r.twMergeConfig,theme:{...(o=r==null?void 0:r.twMergeConfig)==null?void 0:o.theme,opacity:["disabled"],spacing:["divider"],borderWidth:Mr,borderRadius:Mr},classGroups:{...(n=r==null?void 0:r.twMergeConfig)==null?void 0:n.classGroups,shadow:[{shadow:Mr}],"font-size":[{text:["tiny",...Mr]}],"bg-image":["bg-stripe-gradient"]}}})},Vn=["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"],ut=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],qo=Xr({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",...Vn],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:te.solid.foreground},primary:{base:"before:bg-primary",content:te.solid.primary},secondary:{base:"before:bg-secondary",content:te.solid.secondary},success:{base:"before:bg-success",content:te.solid.success},warning:{base:"before:bg-warning",content:te.solid.warning},danger:{base:"before:bg-danger",content:te.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"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},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"}}]}),Zi=Xr({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...Vn],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...ut,"flex","items-center","justify-center"],name:[...ut,"font-normal","text-center","text-inherit"],icon:[...ut,"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:te.solid.default},primary:{base:te.solid.primary},secondary:{base:te.solid.secondary},success:{base:te.solid.success},warning:{base:te.solid.warning},danger:{base:te.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 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl: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"}}]}),Ji=Xr({slots:{base:"flex items-center justify-center h-auto w-max-content",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),Zo=Xr({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:te.solid.default}},{variant:"solid",color:"primary",class:{badge:te.solid.primary}},{variant:"solid",color:"secondary",class:{badge:te.solid.secondary}},{variant:"solid",color:"success",class:{badge:te.solid.success}},{variant:"solid",color:"warning",class:{badge:te.solid.warning}},{variant:"solid",color:"danger",class:{badge:te.solid.danger}},{variant:"shadow",color:"default",class:{badge:te.shadow.default}},{variant:"shadow",color:"primary",class:{badge:te.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:te.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:te.shadow.success}},{variant:"shadow",color:"warning",class:{badge:te.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:te.shadow.danger}},{variant:"flat",color:"default",class:{badge:te.flat.default}},{variant:"flat",color:"primary",class:{badge:te.flat.primary}},{variant:"flat",color:"secondary",class:{badge:te.flat.secondary}},{variant:"flat",color:"success",class:{badge:te.flat.success}},{variant:"flat",color:"warning",class:{badge:te.flat.warning}},{variant:"flat",color:"danger",class:{badge:te.flat.danger}},{variant:"faded",color:"default",class:{badge:te.faded.default}},{variant:"faded",color:"primary",class:{badge:te.faded.primary}},{variant:"faded",color:"secondary",class:{badge:te.faded.secondary}},{variant:"faded",color:"success",class:{badge:te.faded.success}},{variant:"faded",color:"warning",class:{badge:te.faded.warning}},{variant:"faded",color:"danger",class:{badge:te.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 Bn(e,r,t){let[o,n]=d.useState(e||r),s=d.useRef(e!==void 0),i=e!==void 0;d.useEffect(()=>{let g=s.current;g!==i&&console.warn(`WARN: A component changed from ${g?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),s.current=i},[i]);let l=i?e:o,u=d.useCallback((g,...b)=>{let y=(h,...v)=>{t&&(Object.is(l,h)||t(h,...v)),i||(l=h)};typeof g=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),n((v,...x)=>{let E=g(i?l:v,...x);return y(E,...b),i?v:E})):(i||n(g),y(g,...b))},[i,l,t]);return[l,u]}function Ct(e,r=-1/0,t=1/0){return Math.min(Math.max(e,r),t)}const Vr={prefix:String(Math.round(Math.random()*1e10)),current:0},Hn=d.createContext(Vr),Qi=d.createContext(!1);let el=!!(typeof window<"u"&&window.document&&window.document.createElement),ft=new WeakMap;function rl(e=!1){let r=d.useContext(Hn),t=d.useRef(null);if(t.current===null&&!e){var o,n;let s=(n=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||n===void 0||(o=n.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(s){let i=ft.get(s);i==null?ft.set(s,{id:r.current,state:s.memoizedState}):s.memoizedState!==i.state&&(r.current=i.id,ft.delete(s))}t.current=++r.current}return t.current}function tl(e){let r=d.useContext(Hn);r===Vr&&!el&&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 t=rl(!!e),o=r===Vr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return e||`${o}-${t}`}function ol(e){let r=d.useId(),[t]=d.useState(Kt()),o=t||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Vr.prefix}`;return e||`${o}-${r}`}const nl=typeof d.useId=="function"?ol:tl;function al(){return!1}function sl(){return!0}function il(e){return()=>{}}function Kt(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(il,al,sl):d.useContext(Qi)}function Gn(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=Gn(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function ll(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=Gn(e))&&(o&&(o+=" "),o+=r);return o}const Ke=typeof document<"u"?d.useLayoutEffect:()=>{};function Et(e){const r=d.useRef(null);return Ke(()=>{r.current=e},[e]),d.useCallback((...t)=>{const o=r.current;return o==null?void 0:o(...t)},[])}let cl=!!(typeof window<"u"&&window.document&&window.document.createElement),Br=new Map;function dl(e){let[r,t]=d.useState(e),o=d.useRef(null),n=nl(r),s=d.useCallback(i=>{o.current=i},[]);return cl&&Br.set(n,s),Ke(()=>{let i=n;return()=>{Br.delete(i)}},[n]),d.useEffect(()=>{let i=o.current;i&&(o.current=null,t(i))}),n}function ul(e,r){if(e===r)return e;let t=Br.get(e);if(t)return t(r),r;let o=Br.get(r);return o?(o(e),e):r}function fl(...e){return(...r)=>{for(let t of e)typeof t=="function"&&t(...r)}}const ar=e=>{var r;return(r=e==null?void 0:e.ownerDocument)!==null&&r!==void 0?r:document},Ue=e=>e&&"window"in e&&e.window===e?e:ar(e).defaultView||window;function ke(...e){let r={...e[0]};for(let t=1;t<e.length;t++){let o=e[t];for(let n in o){let s=r[n],i=o[n];typeof s=="function"&&typeof i=="function"&&n[0]==="o"&&n[1]==="n"&&n.charCodeAt(2)>=65&&n.charCodeAt(2)<=90?r[n]=fl(s,i):(n==="className"||n==="UNSAFE_className")&&typeof s=="string"&&typeof i=="string"?r[n]=ll(s,i):n==="id"&&s&&i?r.id=ul(s,i):r[n]=i!==void 0?i:s}}return r}const pl=new Set(["id"]),bl=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),gl=new Set(["href","target","rel","download","ping","referrerPolicy"]),vl=/^(data-.*)$/;function yl(e,r={}){let{labelable:t,isLink:o,propNames:n}=r,s={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(pl.has(i)||t&&bl.has(i)||o&&gl.has(i)||n!=null&&n.has(i)||vl.test(i))&&(s[i]=e[i]);return s}function Jo(e){if($l())e.focus({preventScroll:!0});else{let r=xl(e);e.focus(),wl(r)}}let _r=null;function $l(){if(_r==null){_r=!1;try{document.createElement("div").focus({get preventScroll(){return _r=!0,!0}})}catch{}}return _r}function xl(e){let r=e.parentNode,t=[],o=document.scrollingElement||document.documentElement;for(;r instanceof HTMLElement&&r!==o;)(r.offsetHeight<r.scrollHeight||r.offsetWidth<r.scrollWidth)&&t.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),r=r.parentNode;return o instanceof HTMLElement&&t.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),t}function wl(e){for(let{element:r,scrollTop:t,scrollLeft:o}of e)r.scrollTop=t,r.scrollLeft=o}function Yt(e){var r;return typeof window>"u"||window.navigator==null?!1:((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent)}function ml(e){var r;return typeof window<"u"&&window.navigator!=null?e.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function hl(){return ml(/^Mac/i)}function Cl(){return Yt(/AppleWebKit/i)&&!El()}function El(){return Yt(/Chrome/i)}function kl(){return Yt(/Android/i)}let er=new Map,kt=new Set;function Qo(){if(typeof window>"u")return;function e(o){return"propertyName"in o}let r=o=>{if(!e(o)||!o.target)return;let n=er.get(o.target);n||(n=new Set,er.set(o.target,n),o.target.addEventListener("transitioncancel",t,{once:!0})),n.add(o.propertyName)},t=o=>{if(!e(o)||!o.target)return;let n=er.get(o.target);if(n&&(n.delete(o.propertyName),n.size===0&&(o.target.removeEventListener("transitioncancel",t),er.delete(o.target)),er.size===0)){for(let s of kt)s();kt.clear()}};document.body.addEventListener("transitionrun",r),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Qo():document.addEventListener("DOMContentLoaded",Qo));function Sl(e){requestAnimationFrame(()=>{er.size===0?e():kt.add(e)})}function Tl(e){const r=d.useRef(null);return d.useMemo(()=>({get current(){return r.current},set current(t){r.current=t,typeof e=="function"?e(t):e&&(e.current=t)}}),[e])}function Pl(){return typeof window.ResizeObserver<"u"}function Rl(e){const{ref:r,onResize:t}=e;d.useEffect(()=>{let o=r==null?void 0:r.current;if(o)if(Pl()){const n=new window.ResizeObserver(s=>{s.length&&t()});return n.observe(o),()=>{o&&n.unobserve(o)}}else return window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}},[t,r])}function Wn(e,r){Ke(()=>{if(e&&e.ref&&r)return e.ref.current=r.current,()=>{e.ref&&(e.ref.current=null)}})}function Ol(e){return e.mozInputSource===0&&e.isTrusted?!0:kl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}const St=d.createContext({register:()=>{}});St.displayName="PressResponderContext";const jl=d.forwardRef(({children:e,...r},t)=>{let o=d.useRef(!1),n=d.useContext(St);t=Tl(t||(n==null?void 0:n.ref));let s=ke(n||{},{...r,ref:t,register(){o.current=!0,n&&n.register()}});return Wn(n,t),d.useEffect(()=>{o.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),o.current=!0)},[]),d.createElement(St.Provider,{value:s},e)});class Ml{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(r,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=r}}function Un(e){let r=d.useRef({isFocused:!1,observer:null});Ke(()=>{const o=r.current;return()=>{o.observer&&(o.observer.disconnect(),o.observer=null)}},[]);let t=Et(o=>{e==null||e(o)});return d.useCallback(o=>{if(o.target instanceof HTMLButtonElement||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement||o.target instanceof HTMLSelectElement){r.current.isFocused=!0;let n=o.target,s=i=>{r.current.isFocused=!1,n.disabled&&t(new Ml("blur",i)),r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};n.addEventListener("focusout",s,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&n.disabled){var i;(i=r.current.observer)===null||i===void 0||i.disconnect();let l=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),r.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[t])}function Kn(e){let{isDisabled:r,onFocus:t,onBlur:o,onFocusChange:n}=e;const s=d.useCallback(u=>{if(u.target===u.currentTarget)return o&&o(u),n&&n(!1),!0},[o,n]),i=Un(s),l=d.useCallback(u=>{u.target===u.currentTarget&&document.activeElement===u.target&&(t&&t(u),n&&n(!0),i(u))},[n,t,i]);return{focusProps:{onFocus:!r&&(t||n||o)?l:void 0,onBlur:!r&&(o||n)?s:void 0}}}let sr=null,Tt=new Set,gr=new Map,Ye=!1,Pt=!1;const _l={Tab:!0,Escape:!0};function Xt(e,r){for(let t of Tt)t(e,r)}function Il(e){return!(e.metaKey||!hl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Hr(e){Ye=!0,Il(e)&&(sr="keyboard",Xt("keyboard",e))}function Ce(e){sr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ye=!0,Xt("pointer",e))}function Yn(e){Ol(e)&&(Ye=!0,sr="virtual")}function Xn(e){e.target===window||e.target===document||(!Ye&&!Pt&&(sr="virtual",Xt("virtual",e)),Ye=!1,Pt=!1)}function qn(){Ye=!1,Pt=!0}function Rt(e){if(typeof window>"u"||gr.get(Ue(e)))return;const r=Ue(e),t=ar(e);let o=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){Ye=!0,o.apply(this,arguments)},t.addEventListener("keydown",Hr,!0),t.addEventListener("keyup",Hr,!0),t.addEventListener("click",Yn,!0),r.addEventListener("focus",Xn,!0),r.addEventListener("blur",qn,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",Ce,!0),t.addEventListener("pointermove",Ce,!0),t.addEventListener("pointerup",Ce,!0)):(t.addEventListener("mousedown",Ce,!0),t.addEventListener("mousemove",Ce,!0),t.addEventListener("mouseup",Ce,!0)),r.addEventListener("beforeunload",()=>{Zn(e)},{once:!0}),gr.set(r,{focus:o})}const Zn=(e,r)=>{const t=Ue(e),o=ar(e);r&&o.removeEventListener("DOMContentLoaded",r),gr.has(t)&&(t.HTMLElement.prototype.focus=gr.get(t).focus,o.removeEventListener("keydown",Hr,!0),o.removeEventListener("keyup",Hr,!0),o.removeEventListener("click",Yn,!0),t.removeEventListener("focus",Xn,!0),t.removeEventListener("blur",qn,!1),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",Ce,!0),o.removeEventListener("pointermove",Ce,!0),o.removeEventListener("pointerup",Ce,!0)):(o.removeEventListener("mousedown",Ce,!0),o.removeEventListener("mousemove",Ce,!0),o.removeEventListener("mouseup",Ce,!0)),gr.delete(t))};function Al(e){const r=ar(e);let t;return r.readyState!=="loading"?Rt(e):(t=()=>{Rt(e)},r.addEventListener("DOMContentLoaded",t)),()=>Zn(e,t)}typeof document<"u"&&Al();function qt(){return sr!=="pointer"}function Jn(){return sr}const Ll=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Nl(e,r,t){var o;const n=typeof window<"u"?Ue(t==null?void 0:t.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?Ue(t==null?void 0:t.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?Ue(t==null?void 0:t.target).HTMLElement:HTMLElement,l=typeof window<"u"?Ue(t==null?void 0:t.target).KeyboardEvent:KeyboardEvent;return e=e||(t==null?void 0:t.target)instanceof n&&!Ll.has(t==null||(o=t.target)===null||o===void 0?void 0:o.type)||(t==null?void 0:t.target)instanceof s||(t==null?void 0:t.target)instanceof i&&(t==null?void 0:t.target.isContentEditable),!(e&&r==="keyboard"&&t instanceof l&&!_l[t.key])}function Dl(e,r,t){Rt(),d.useEffect(()=>{let o=(n,s)=>{Nl(!!(t!=null&&t.isTextInput),n,s)&&e(qt())};return Tt.add(o),()=>{Tt.delete(o)}},r)}function Qn(e){let{isDisabled:r,onBlurWithin:t,onFocusWithin:o,onFocusWithinChange:n}=e,s=d.useRef({isFocusWithin:!1}),i=d.useCallback(g=>{s.current.isFocusWithin&&!g.currentTarget.contains(g.relatedTarget)&&(s.current.isFocusWithin=!1,t&&t(g),n&&n(!1))},[t,n,s]),l=Un(i),u=d.useCallback(g=>{!s.current.isFocusWithin&&document.activeElement===g.target&&(o&&o(g),n&&n(!0),s.current.isFocusWithin=!0,l(g))},[o,n,l]);return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:i}}}let Gr=!1,pt=0;function Ot(){Gr=!0,setTimeout(()=>{Gr=!1},50)}function en(e){e.pointerType==="touch"&&Ot()}function Fl(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",en):document.addEventListener("touchend",Ot),pt++,()=>{pt--,!(pt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",en):document.removeEventListener("touchend",Ot))}}function Zt(e){let{onHoverStart:r,onHoverChange:t,onHoverEnd:o,isDisabled:n}=e,[s,i]=d.useState(!1),l=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(Fl,[]);let{hoverProps:u,triggerHoverEnd:g}=d.useMemo(()=>{let b=(v,x)=>{if(l.pointerType=x,n||x==="touch"||l.isHovered||!v.currentTarget.contains(v.target))return;l.isHovered=!0;let E=v.currentTarget;l.target=E,r&&r({type:"hoverstart",target:E,pointerType:x}),t&&t(!0),i(!0)},y=(v,x)=>{if(l.pointerType="",l.target=null,x==="touch"||!l.isHovered)return;l.isHovered=!1;let E=v.currentTarget;o&&o({type:"hoverend",target:E,pointerType:x}),t&&t(!1),i(!1)},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=v=>{Gr&&v.pointerType==="mouse"||b(v,v.pointerType)},h.onPointerLeave=v=>{!n&&v.currentTarget.contains(v.target)&&y(v,v.pointerType)}):(h.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=v=>{!l.ignoreEmulatedMouseEvents&&!Gr&&b(v,"mouse"),l.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=v=>{!n&&v.currentTarget.contains(v.target)&&y(v,"mouse")}),{hoverProps:h,triggerHoverEnd:y}},[r,t,o,n,l]);return d.useEffect(()=>{n&&g({currentTarget:l.target},l.pointerType)},[n]),{hoverProps:u,isHovered:s}}function zl(e){let{ref:r,onInteractOutside:t,isDisabled:o,onInteractOutsideStart:n}=e,s=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=Et(u=>{t&&Ir(u,r)&&(n&&n(u),s.current.isPointerDown=!0)}),l=Et(u=>{t&&t(u)});d.useEffect(()=>{let u=s.current;if(o)return;const g=r.current,b=ar(g);if(typeof PointerEvent<"u"){let y=h=>{u.isPointerDown&&Ir(h,r)&&l(h),u.isPointerDown=!1};return b.addEventListener("pointerdown",i,!0),b.addEventListener("pointerup",y,!0),()=>{b.removeEventListener("pointerdown",i,!0),b.removeEventListener("pointerup",y,!0)}}else{let y=v=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&Ir(v,r)&&l(v),u.isPointerDown=!1},h=v=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&Ir(v,r)&&l(v),u.isPointerDown=!1};return b.addEventListener("mousedown",i,!0),b.addEventListener("mouseup",y,!0),b.addEventListener("touchstart",i,!0),b.addEventListener("touchend",h,!0),()=>{b.removeEventListener("mousedown",i,!0),b.removeEventListener("mouseup",y,!0),b.removeEventListener("touchstart",i,!0),b.removeEventListener("touchend",h,!0)}}},[r,o,i,l])}function Ir(e,r){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return r.current&&!r.current.contains(e.target)}function rn(e){if(!e)return;let r=!0;return t=>{let o={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){r=!1}};e(o),r&&t.stopPropagation()}}function Vl(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:rn(e.onKeyDown),onKeyUp:rn(e.onKeyUp)}}}function Bl(e){const r=ar(e);if(Jn()==="virtual"){let t=r.activeElement;Sl(()=>{r.activeElement===t&&e.isConnected&&Jo(e)})}else Jo(e)}let Hl=null;function ea(e,r){return!e||!r?!1:r.some(t=>t.contains(e))}function Gl(e,r=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:t}of on.traverse(on.getTreeNode(r)))if(t&&ea(e,t.current))return!0;return!1}function Wl(e){return Gl(e,Hl)}class Jt{get size(){return this.fastMap.size}getTreeNode(r){return this.fastMap.get(r)}addTreeNode(r,t,o){let n=this.fastMap.get(t??null);if(!n)return;let s=new tn({scopeRef:r});n.addChild(s),s.parent=n,this.fastMap.set(r,s),o&&(s.nodeToRestore=o)}addNode(r){this.fastMap.set(r.scopeRef,r)}removeTreeNode(r){if(r===null)return;let t=this.fastMap.get(r);if(!t)return;let o=t.parent;for(let s of this.traverse())s!==t&&t.nodeToRestore&&s.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&ea(s.nodeToRestore,t.scopeRef.current)&&(s.nodeToRestore=t.nodeToRestore);let n=t.children;o&&(o.removeChild(t),n.size>0&&n.forEach(s=>o&&o.addChild(s))),this.fastMap.delete(t.scopeRef)}*traverse(r=this.root){if(r.scopeRef!=null&&(yield r),r.children.size>0)for(let t of r.children)yield*this.traverse(t)}clone(){var r;let t=new Jt;var o;for(let n of this.traverse())t.addTreeNode(n.scopeRef,(o=(r=n.parent)===null||r===void 0?void 0:r.scopeRef)!==null&&o!==void 0?o:null,n.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new tn({scopeRef:null}),this.fastMap.set(null,this.root)}}class tn{addChild(r){this.children.add(r),r.parent=this}removeChild(r){this.children.delete(r),r.parent=void 0}constructor(r){this.children=new Set,this.contain=!1,this.scopeRef=r.scopeRef}}let on=new Jt;function Ul(e={}){let{autoFocus:r=!1,isTextInput:t,within:o}=e,n=d.useRef({isFocused:!1,isFocusVisible:r||qt()}),[s,i]=d.useState(!1),[l,u]=d.useState(()=>n.current.isFocused&&n.current.isFocusVisible),g=d.useCallback(()=>u(n.current.isFocused&&n.current.isFocusVisible),[]),b=d.useCallback(v=>{n.current.isFocused=v,i(v),g()},[g]);Dl(v=>{n.current.isFocusVisible=v,g()},[],{isTextInput:t});let{focusProps:y}=Kn({isDisabled:o,onFocusChange:b}),{focusWithinProps:h}=Qn({isDisabled:!o,onFocusWithinChange:b});return{isFocused:s,isFocusVisible:l,focusProps:o?h:y}}let Kl=d.createContext(null);function Yl(e){let r=d.useContext(Kl)||{};Wn(r,e);let{ref:t,...o}=r;return o}function Xl(e,r){let{focusProps:t}=Kn(e),{keyboardProps:o}=Vl(e),n=ke(t,o),s=Yl(r),i=e.isDisabled?{}:s,l=d.useRef(e.autoFocus);return d.useEffect(()=>{l.current&&r.current&&Bl(r.current),l.current=!1},[r]),{focusableProps:ke({...n,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},i)}}var ra=globalThis!=null&&globalThis.document?d.useLayoutEffect:d.useEffect;function ql(e={}){const{loading:r,src:t,srcSet:o,onLoad:n,onError:s,crossOrigin:i,sizes:l,ignoreFallback:u}=e,[g,b]=d.useState("pending");d.useEffect(()=>{b(t?"loading":"pending")},[t]);const y=d.useRef(),h=d.useCallback(()=>{if(!t)return;v();const x=new Image;x.src=t,i&&(x.crossOrigin=i),o&&(x.srcset=o),l&&(x.sizes=l),r&&(x.loading=r),x.onload=E=>{v(),b("loaded"),n==null||n(E)},x.onerror=E=>{v(),b("failed"),s==null||s(E)},y.current=x},[t,i,o,l,n,s,r]),v=()=>{y.current&&(y.current.onload=null,y.current.onerror=null,y.current=null)};return ra(()=>{if(!u)return g==="loading"&&h(),()=>{v()}},[g,h,u]),u?"loaded":g}function Zl(e={}){var r,t,o,n,s;const i=Rn(),l=!!i,{as:u,ref:g,src:b,name:y,icon:h,classNames:v,fallback:x,alt:E=y||"avatar",imgRef:k,color:T=(r=i==null?void 0:i.color)!=null?r:"default",radius:M=(t=i==null?void 0:i.radius)!=null?t:"full",size:_=(o=i==null?void 0:i.size)!=null?o:"md",isBordered:I=(n=i==null?void 0:i.isBordered)!=null?n:!1,isDisabled:O=(s=i==null?void 0:i.isDisabled)!=null?s:!1,isFocusable:P=!1,getInitials:F=Ys,ignoreFallback:L=!1,showFallback:N=!1,ImgComponent:J="img",imgProps:q,className:j,onError:H,...z}=e,V=u||"span",G=yt(g),A=yt(k),{isFocusVisible:U,isFocused:Z,focusProps:Q}=Ul(),{isHovered:$,hoverProps:S}=Zt({isDisabled:O}),Y=ql({src:b,onError:H,ignoreFallback:L})==="loaded",ee=(!b||!Y)&&N,ne=d.useMemo(()=>{var Te;return Zi({color:T,radius:M,size:_,isBordered:I,isDisabled:O,isInGroup:l,isInGridGroup:(Te=i==null?void 0:i.isGrid)!=null?Te:!1})},[T,M,_,I,O,l,i==null?void 0:i.isGrid]),se=or(v==null?void 0:v.base,j),ae=d.useMemo(()=>P||u==="button",[P,u]),ie=d.useCallback((Te={})=>({ref:G,tabIndex:ae?0:-1,"data-hover":_e($),"data-focus":_e(Z),"data-focus-visible":_e(U),className:ne.base({class:or(se,Te==null?void 0:Te.className)}),...ke(z,S,ae?Q:{})}),[ae,ne,se,Q,z]),ve=d.useCallback((Te={})=>({ref:A,src:b,"data-loaded":_e(Y),className:ne.img({class:v==null?void 0:v.img}),...ke(q,Te)}),[ne,Y,q,b,A]);return{Component:V,ImgComponent:J,src:b,alt:E,icon:h,name:y,imgRef:A,slots:ne,classNames:v,fallback:x,isImgLoaded:Y,showFallback:ee,ignoreFallback:L,getInitials:F,getAvatarProps:ie,getImageProps:ve}}const Jl=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ql=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ec(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),o=typeof t.getTextInfo=="function"?t.getTextInfo():t.textInfo;if(o)return o.direction==="rtl";if(t.script)return Jl.has(t.script)}let r=e.split("-")[0];return Ql.has(r)}const rc=Symbol.for("react-aria.i18n.locale");function ta(){let e=typeof window<"u"&&window[rc]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:ec(e)?"rtl":"ltr"}}let jt=ta(),br=new Set;function nn(){jt=ta();for(let e of br)e(jt)}function tc(){let e=Kt(),[r,t]=d.useState(jt);return d.useEffect(()=>(br.size===0&&window.addEventListener("languagechange",nn),br.add(t),()=>{br.delete(t),br.size===0&&window.removeEventListener("languagechange",nn)}),[]),e?{locale:"en-US",direction:"ltr"}:r}const oc=d.createContext(null);function nc(){let e=tc();return d.useContext(oc)||e}const rr={top:"top",bottom:"top",left:"left",right:"left"},Wr={top:"bottom",bottom:"top",left:"right",right:"left"},ac={top:"left",left:"top"},Mt={top:"height",left:"width"},oa={width:"totalWidth",height:"totalHeight"},Ar={};let we=typeof document<"u"&&window.visualViewport;function an(e){let r=0,t=0,o=0,n=0,s=0,i=0,l={},u=(we==null?void 0:we.scale)>1;if(e.tagName==="BODY"){let y=document.documentElement;o=y.clientWidth,n=y.clientHeight;var g;r=(g=we==null?void 0:we.width)!==null&&g!==void 0?g:o;var b;t=(b=we==null?void 0:we.height)!==null&&b!==void 0?b:n,l.top=y.scrollTop||e.scrollTop,l.left=y.scrollLeft||e.scrollLeft,we&&(s=we.offsetTop,i=we.offsetLeft)}else({width:r,height:t,top:s,left:i}=tr(e)),l.top=e.scrollTop,l.left=e.scrollLeft,o=r,n=t;return Cl()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u&&(l.top=0,l.left=0,s=we.pageTop,i=we.pageLeft),{width:r,height:t,totalWidth:o,totalHeight:n,scroll:l,top:s,left:i}}function sc(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function sn(e,r,t,o,n,s,i){let l=n.scroll[e],u=o[Mt[e]],g=o.scroll[rr[e]]+s,b=u+o.scroll[rr[e]]-s,y=r-l+i[e]-o[rr[e]],h=r-l+t+i[e]-o[rr[e]];return y<g?g-y:h>b?Math.max(b-h,g-y):0}function ic(e){let r=window.getComputedStyle(e);return{top:parseInt(r.marginTop,10)||0,bottom:parseInt(r.marginBottom,10)||0,left:parseInt(r.marginLeft,10)||0,right:parseInt(r.marginRight,10)||0}}function ln(e){if(Ar[e])return Ar[e];let[r,t]=e.split(" "),o=rr[r]||"right",n=ac[o];rr[t]||(t="center");let s=Mt[o],i=Mt[n];return Ar[e]={placement:r,crossPlacement:t,axis:o,crossAxis:n,size:s,crossSize:i},Ar[e]}function bt(e,r,t,o,n,s,i,l,u,g){let{placement:b,crossPlacement:y,axis:h,crossAxis:v,size:x,crossSize:E}=o,k={};k[v]=e[v],y==="center"?k[v]+=(e[E]-t[E])/2:y!==v&&(k[v]+=e[E]-t[E]),k[v]+=s;const T=e[v]-t[E]+u+g,M=e[v]+e[E]-u-g;if(k[v]=Ct(k[v],T,M),b===h){const _=l?i[x]:r[oa[x]];k[Wr[h]]=Math.floor(_-e[h]+n)}else k[h]=Math.floor(e[h]+e[x]+n);return k}function lc(e,r,t,o,n,s,i,l){const u=o?t.height:r[oa.height];let g=e.top!=null?t.top+e.top:t.top+(u-e.bottom-i),b=l!=="top"?Math.max(0,r.height+r.top+r.scroll.top-g-(n.top+n.bottom+s)):Math.max(0,g+i-(r.top+r.scroll.top)-(n.top+n.bottom+s));return Math.min(r.height-s*2,b)}function cn(e,r,t,o,n,s){let{placement:i,axis:l,size:u}=s;return i===l?Math.max(0,t[l]-e[l]-e.scroll[l]+r[l]-o[l]-o[Wr[l]]-n):Math.max(0,e[u]+e[l]+e.scroll[l]-r[l]-t[l]-t[u]-o[l]-o[Wr[l]]-n)}function cc(e,r,t,o,n,s,i,l,u,g,b,y,h,v,x,E){let k=ln(e),{size:T,crossAxis:M,crossSize:_,placement:I,crossPlacement:O}=k,P=bt(r,l,t,k,b,y,g,h,x,E),F=b,L=cn(l,g,r,n,s+b,k);if(i&&o[T]>L){let Z=ln(`${Wr[I]} ${O}`),Q=bt(r,l,t,Z,b,y,g,h,x,E);cn(l,g,r,n,s+b,Z)>L&&(k=Z,P=Q,F=b)}let N="bottom";k.axis==="top"?k.placement==="top"?N="top":k.placement==="bottom"&&(N="bottom"):k.crossAxis==="top"&&(k.crossPlacement==="top"?N="bottom":k.crossPlacement==="bottom"&&(N="top"));let J=sn(M,P[M],t[_],l,u,s,g);P[M]+=J;let q=lc(P,l,g,h,n,s,t.height,N);v&&v<q&&(q=v),t.height=Math.min(t.height,q),P=bt(r,l,t,k,F,y,g,h,x,E),J=sn(M,P[M],t[_],l,u,s,g),P[M]+=J;let j={},H=r[M]+.5*r[_]-t[M];const z=x/2+E,V=t[_]-x/2-E,G=r[M]-t[M]+x/2,A=r[M]+r[_]-t[M]-x/2,U=Ct(H,G,A);return j[M]=Ct(U,z,V),{position:P,maxHeight:q,arrowOffsetLeft:j.left,arrowOffsetTop:j.top,placement:k.placement}}function dc(e){let{placement:r,targetNode:t,overlayNode:o,scrollNode:n,padding:s,shouldFlip:i,boundaryElement:l,offset:u,crossOffset:g,maxHeight:b,arrowSize:y=0,arrowBoundaryOffset:h=0}=e,v=o instanceof HTMLElement?uc(o):document.documentElement,x=v===document.documentElement;const E=window.getComputedStyle(v).position;let k=!!E&&E!=="static",T=x?tr(t):dn(t,v);if(!x){let{marginTop:L,marginLeft:N}=window.getComputedStyle(t);T.top+=parseInt(L,10)||0,T.left+=parseInt(N,10)||0}let M=tr(o),_=ic(o);M.width+=_.left+_.right,M.height+=_.top+_.bottom;let I=sc(n),O=an(l),P=an(v),F=l.tagName==="BODY"?tr(v):dn(v,l);return v.tagName==="HTML"&&l.tagName==="BODY"&&(P.scroll.top=0,P.scroll.left=0),cc(r,T,M,I,_,s,i,O,P,F,u,g,k,b,y,h)}function tr(e){let{top:r,left:t,width:o,height:n}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:i,clientTop:l,clientLeft:u}=document.documentElement;return{top:r+s-l,left:t+i-u,width:o,height:n}}function dn(e,r){let t=window.getComputedStyle(e),o;if(t.position==="fixed"){let{top:n,left:s,width:i,height:l}=e.getBoundingClientRect();o={top:n,left:s,width:i,height:l}}else{o=tr(e);let n=tr(r),s=window.getComputedStyle(r);n.top+=(parseInt(s.borderTopWidth,10)||0)-r.scrollTop,n.left+=(parseInt(s.borderLeftWidth,10)||0)-r.scrollLeft,o.top-=n.top,o.left-=n.left}return o.top-=parseInt(t.marginTop,10)||0,o.left-=parseInt(t.marginLeft,10)||0,o}function uc(e){let r=e.offsetParent;if(r&&r===document.body&&window.getComputedStyle(r).position==="static"&&!un(r)&&(r=document.documentElement),r==null)for(r=e.parentElement;r&&!un(r);)r=r.parentElement;return r||document.documentElement}function un(e){let r=window.getComputedStyle(e);return r.transform!=="none"||/transform|perspective/.test(r.willChange)||r.filter!=="none"||r.contain==="paint"||"backdropFilter"in r&&r.backdropFilter!=="none"||"WebkitBackdropFilter"in r&&r.WebkitBackdropFilter!=="none"}const fc=new WeakMap;function pc(e){let{triggerRef:r,isOpen:t,onClose:o}=e;d.useEffect(()=>{if(!t||o===null)return;let n=s=>{let i=s.target;if(!r.current||i instanceof Node&&!i.contains(r.current))return;let l=o||fc.get(r.current);l&&l()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[t,o,r])}let be=typeof document<"u"&&window.visualViewport;function bc(e){let{direction:r}=nc(),{arrowSize:t=0,targetRef:o,overlayRef:n,scrollRef:s=n,placement:i="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:g=typeof document<"u"?document.body:null,offset:b=0,crossOffset:y=0,shouldUpdatePosition:h=!0,isOpen:v=!0,onClose:x,maxHeight:E,arrowBoundaryOffset:k=0}=e,[T,M]=d.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),_=[h,i,n.current,o.current,s.current,l,u,g,b,y,v,r,E,k,t],I=d.useRef(be==null?void 0:be.scale);d.useEffect(()=>{v&&(I.current=be==null?void 0:be.scale)},[v]);let O=d.useCallback(()=>{if(h===!1||!v||!n.current||!o.current||!s.current||!g||(be==null?void 0:be.scale)!==I.current)return;!E&&n.current&&(n.current.style.maxHeight="none");let L=dc({placement:vc(i,r),overlayNode:n.current,targetNode:o.current,scrollNode:s.current,padding:l,shouldFlip:u,boundaryElement:g,offset:b,crossOffset:y,maxHeight:E,arrowSize:t,arrowBoundaryOffset:k});Object.keys(L.position).forEach(N=>n.current.style[N]=L.position[N]+"px"),n.current.style.maxHeight=L.maxHeight!=null?L.maxHeight+"px":void 0,M(L)},_);Ke(O,_),gc(O),Rl({ref:n,onResize:O});let P=d.useRef(!1);Ke(()=>{let L,N=()=>{P.current=!0,clearTimeout(L),L=setTimeout(()=>{P.current=!1},500),O()},J=()=>{P.current&&N()};return be==null||be.addEventListener("resize",N),be==null||be.addEventListener("scroll",J),()=>{be==null||be.removeEventListener("resize",N),be==null||be.removeEventListener("scroll",J)}},[O]);let F=d.useCallback(()=>{P.current||x()},[x,P]);return pc({triggerRef:o,isOpen:v,onClose:x&&F}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...T.position,maxHeight:T.maxHeight}},placement:T.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:T.arrowOffsetLeft,top:T.arrowOffsetTop}},updatePosition:O}}function gc(e){Ke(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function vc(e,r){return r==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Le=[];function yc(e,r){let{onClose:t,shouldCloseOnBlur:o,isOpen:n,isDismissable:s=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:l}=e;d.useEffect(()=>(n&&Le.push(r),()=>{let x=Le.indexOf(r);x>=0&&Le.splice(x,1)}),[n,r]);let u=()=>{Le[Le.length-1]===r&&t&&t()},g=x=>{(!l||l(x.target))&&Le[Le.length-1]===r&&(x.stopPropagation(),x.preventDefault())},b=x=>{(!l||l(x.target))&&(Le[Le.length-1]===r&&(x.stopPropagation(),x.preventDefault()),u())},y=x=>{x.key==="Escape"&&!i&&(x.stopPropagation(),x.preventDefault(),u())};zl({ref:r,onInteractOutside:s&&n?b:null,onInteractOutsideStart:g});let{focusWithinProps:h}=Qn({isDisabled:!o,onBlurWithin:x=>{!x.relatedTarget||Wl(x.relatedTarget)||(!l||l(x.relatedTarget))&&t()}}),v=x=>{x.target===x.currentTarget&&x.preventDefault()};return{overlayProps:{onKeyDown:y,...h},underlayProps:{onPointerDown:v}}}const _t=d.createContext(null);function $c(e){let{children:r}=e,t=d.useContext(_t),[o,n]=d.useState(0),s=d.useMemo(()=>({parent:t,modalCount:o,addModal(){n(i=>i+1),t&&t.addModal()},removeModal(){n(i=>i-1),t&&t.removeModal()}}),[t,o]);return d.createElement(_t.Provider,{value:s},r)}function xc(){let e=d.useContext(_t);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function wc(e){let{modalProviderProps:r}=xc();return d.createElement("div",{"data-overlay-container":!0,...e,...r})}function mc(e){return d.createElement($c,null,d.createElement(wc,e))}function fn(e){let r=Kt(),{portalContainer:t=r?null:document.body,...o}=e;if(d.useEffect(()=>{if(t!=null&&t.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[t]),!t)return null;let n=d.createElement(mc,o);return Yr.createPortal(n,t)}function qr(e){return d.forwardRef(e)}var na=(e,r,t=!0)=>{if(!r)return[e,{}];const o=r.reduce((n,s)=>s in e?{...n,[s]:e[s]}:n,{});return t?[Object.keys(e).filter(s=>!r.includes(s)).reduce((s,i)=>({...s,[i]:e[i]}),{}),o]:[e,o]},aa=qr((e,r)=>{const{Component:t,ImgComponent:o,src:n,icon:s=p.jsx(Ws,{}),alt:i,classNames:l,slots:u,name:g,showFallback:b,fallback:y,getInitials:h,getAvatarProps:v,getImageProps:x}=Zl({...e,ref:r}),E=d.useMemo(()=>!b&&n?null:y?p.jsx("div",{"aria-label":i,className:u.fallback({class:l==null?void 0:l.fallback}),role:"img",children:y}):g?p.jsx("span",{"aria-label":i,className:u.name({class:l==null?void 0:l.name}),role:"img",children:h(g)}):p.jsx("span",{"aria-label":i,className:u.icon({class:l==null?void 0:l.icon}),role:"img",children:s}),[b,n,y,g,l]);return p.jsxs(t,{...v(),children:[n&&p.jsx(o,{...x(),alt:i}),E]})});aa.displayName="NextUI.Avatar";var sa=aa;function hc(e={}){const{as:r,ref:t,max:o=5,total:n,size:s,color:i,radius:l,children:u,isBordered:g,isDisabled:b,isGrid:y,renderCount:h,className:v,classNames:x,...E}=e,k=yt(t),T=r||"div",M=d.useMemo(()=>({size:s,color:i,radius:l,isGrid:y,isBordered:g,isDisabled:b}),[s,i,l,y,g,b]),_=d.useMemo(()=>Ji({className:v,isGrid:y}),[v,y]),I=ci(u),O=o?I.slice(0,o):I,P=n||(o!=null?I.length-o:-1),F=O.map((J,q)=>{const j=q===0,H=q===O.length-1,z={className:or(j?"ms-0":y?"":"-ms-2",H&&P<1?"hover:-translate-x-0":"")};return d.cloneElement(J,Zs(z))});return{Component:T,context:M,remainingCount:P,clones:F,renderCount:h,getAvatarGroupProps:()=>({ref:k,className:_.base({class:or(x==null?void 0:x.base,v)}),role:"group",...E}),getAvatarGroupCountProps:()=>({className:_.count({class:x==null?void 0:x.count})})}}var ia=qr((e,r)=>{const{Component:t,clones:o,context:n,remainingCount:s,getAvatarGroupCountProps:i,getAvatarGroupProps:l,renderCount:u=g=>p.jsx(sa,{...i(),name:`+${g}`})}=hc({...e,ref:r});return p.jsx(t,{...l(),children:p.jsxs(di,{value:n,children:[o,s>0&&u(s)]})})});ia.displayName="NextUI.AvatarGroup";var Cc=ia;const c={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 la(e,r){const t={...e};return Object.entries(r).forEach(([o,n])=>{n!==null&&typeof n=="object"&&!Array.isArray(n)?((t[o]===void 0||t[o]===null)&&(t[o]={}),t[o]=la(t[o],n)):t[o]=n}),t}const Ec=m.styled.div`
40
40
  z-index: 1;
41
41
 
42
42
  &:not(:first-child) {
43
- margin-inline-start: ${({isInGroup:e,isGrid:t})=>t||!e?0:"-0.5rem"};
43
+ margin-inline-start: ${({isInGroup:e,isGrid:r})=>r||!e?0:"-0.5rem"};
44
44
  }
45
45
 
46
46
  &:hover {
47
47
  & > * {
48
- transform: ${({isInGroup:e,isGrid:t})=>!t&&e?"translateY(-0.8rem)":"none"};
48
+ transform: ${({isInGroup:e,isGrid:r})=>!r&&e?"translateY(-0.8rem)":"none"};
49
49
  }
50
50
  }
51
- `,R2=_.styled(Bh)`
52
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
51
+ `,kc=m.styled(sa)`
52
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
53
53
  display: flex;
54
54
  align-items: center;
55
55
  justify-content: center;
@@ -59,11 +59,11 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
59
59
  transition: 0.25s transform ease;
60
60
  opacity: ${({isDisabled:e})=>e?.5:1};
61
61
 
62
- ${({size:e})=>{const t={sm:"2rem",md:"2.5rem",lg:"3rem"};let n=t.md;return e&&t[e]&&(n=t[e]),`width: ${n}; height: ${n}`}};
62
+ ${({size:e})=>{const r={sm:"2rem",md:"2.5rem",lg:"3rem"};let t=r.md;return e&&r[e]&&(t=r[e]),`width: ${t}; height: ${t}`}};
63
63
 
64
- box-shadow: ${({isBordered:e,theme:t})=>{var n,r,o;return e?`${((n=t==null?void 0:t.colors)==null?void 0:n.white)??x.colors.white} 0px 0px 0px 2px, ${((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[100])??x.colors.slate[100]} 0px 0px 0px 4px, rgba(0, 0, 0, 0) 0px 0px 0px 0px`:"none"}};
64
+ box-shadow: ${({isBordered:e,theme:r})=>{var t,o,n;return e?`${((t=r==null?void 0:r.colors)==null?void 0:t.white)??c.colors.white} 0px 0px 0px 2px, ${((n=(o=r==null?void 0:r.colors)==null?void 0:o.slate)==null?void 0:n[100])??c.colors.slate[100]} 0px 0px 0px 4px, rgba(0, 0, 0, 0) 0px 0px 0px 0px`:"none"}};
65
65
 
66
- border-radius: ${({radius:e})=>{const t={full:"9999px",lg:"14px",md:"12px",sm:"8px",none:"0"};return e&&t[e]?t[e]:t.full}};
66
+ border-radius: ${({radius:e})=>{const r={full:"9999px",lg:"14px",md:"12px",sm:"8px",none:"0"};return e&&r[e]?r[e]:r.full}};
67
67
 
68
68
  img {
69
69
  opacity: 0;
@@ -95,31 +95,23 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
95
95
  overflow: hidden;
96
96
  text-align: center;
97
97
  }
98
- `;function F2({icon:e,...t}){const n=Mp();return S.jsx(k2,{isInGroup:!!n,isGrid:!!(n!=null&&n.isGrid),children:S.jsx(R2,{...t,icon:e||S.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.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 B2=_.styled(M2)`
98
+ `;function Sc({icon:e,...r}){const t=Rn();return p.jsx(Ec,{isInGroup:!!t,isGrid:!!(t!=null&&t.isGrid),children:p.jsx(kc,{...r,icon:e||p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.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 Tc=m.styled(Cc)`
99
99
  display: ${({isGrid:e})=>e?"inline-grid":"flex"};
100
100
  grid-template-columns: repeat(4, minmax(0, 1fr));
101
101
  align-items: center;
102
102
  gap: ${({isGrid:e})=>e?"0.75rem":"0"};
103
- `;function I2({children:e,isGrid:t,renderCount:n}){return S.jsx(B2,{isGrid:t,max:0,renderCount:n??void 0,children:e})}const au=u.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),sa=u.createContext({}),la=u.createContext(null),su=typeof document<"u",lu=su?u.useLayoutEffect:u.useEffect,uu=u.createContext({strict:!1}),cu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),L2="framerAppearId",Vh="data-"+cu(L2),V2={skipAnimations:!1,useManualTiming:!1};class jd{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 O2(e){let t=new jd,n=new jd,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,d=!1,c=!1)=>{const f=c&&o,p=f?t:n;return d&&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 d=0;d<r;d++){const c=t.order[d];a.has(c)&&(s.schedule(c),e()),c(l)}o=!1,i&&(i=!1,s.process(l))}};return s}const ri=["read","resolveKeyframes","update","preRender","render","postRender"],N2=40;function Oh(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=ri.reduce((f,p)=>(f[p]=O2(()=>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,N2),1),o.timestamp=f,o.isProcessing=!0,ri.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:ri.reduce((f,p)=>{const h=i[p];return f[p]=(b,g=!1,y=!1)=>(n||l(),h.schedule(b,g,y)),f},{}),cancel:f=>ri.forEach(p=>i[p].cancel(f)),state:o,steps:i}}const{schedule:du,cancel:CA}=Oh(queueMicrotask,!1);function K2(e,t,n,r){const{visualElement:o}=u.useContext(sa),i=u.useContext(uu),a=u.useContext(la),s=u.useContext(au).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 d=l.current;u.useInsertionEffect(()=>{d&&d.update(n,a)});const c=u.useRef(!!(n[Vh]&&!window.HandoffComplete));return lu(()=>{d&&(du.postRender(d.render),c.current&&d.animationState&&d.animationState.animateChanges())}),u.useEffect(()=>{d&&(d.updateFeatures(),!c.current&&d.animationState&&d.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),d}function er(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function j2(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):er(n)&&(n.current=r))},[t])}function ao(e){return typeof e=="string"||Array.isArray(e)}function ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const fu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pu=["initial",...fu];function ca(e){return ua(e.animate)||pu.some(t=>ao(e[t]))}function Nh(e){return!!(ca(e)||e.variants)}function _2(e,t){if(ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ao(n)?n:void 0,animate:ao(r)?r:void 0}}return e.inherit!==!1?t:{}}function z2(e){const{initial:t,animate:n}=_2(e,u.useContext(sa));return u.useMemo(()=>({initial:t,animate:n}),[_d(t),_d(n)])}function _d(e){return Array.isArray(e)?e.join(" "):e}const zd={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"]},so={};for(const e in zd)so[e]={isEnabled:t=>zd[e].some(n=>!!t[n])};function el(e){for(const t in e)so[t]={...so[t],...e[t]}}const hu=u.createContext({}),Kh=u.createContext({}),U2=Symbol.for("motionComponentSymbol");function H2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&el(e);function i(s,l){let d;const c={...u.useContext(au),...s,layoutId:G2(s)},{isStatic:f}=c,p=z2(s),h=r(s,f);if(!f&&su){p.visualElement=K2(o,h,c,t);const b=u.useContext(Kh),g=u.useContext(uu).strict;p.visualElement&&(d=p.visualElement.loadFeatures(c,g,e,b))}return S.jsxs(sa.Provider,{value:p,children:[d&&p.visualElement?S.jsx(d,{visualElement:p.visualElement,...c}):null,n(o,s,j2(h,p.visualElement,l),h,f,p.visualElement)]})}const a=u.forwardRef(i);return a[U2]=o,a}function G2({layoutId:e}){const t=u.useContext(hu).id;return t&&e!==void 0?t+"-"+e:e}function jh(e){function t(r,o={}){return H2(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 W2=["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 bu(e){return typeof e!="string"||e.includes("-")?!1:!!(W2.indexOf(e)>-1||/[A-Z]/u.test(e))}const ji={};function Y2(e){Object.assign(ji,e)}const yo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ln=new Set(yo);function _h(e,{layout:t,layoutId:n}){return Ln.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ji[e]||e==="opacity")}const We=e=>!!(e&&e.getVelocity),q2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Z2=yo.length;function X2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<Z2;a++){const s=yo[a];if(e[s]!==void 0){const l=q2[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 zh=e=>t=>typeof t=="string"&&t.startsWith(e),Uh=zh("--"),J2=zh("var(--"),mu=e=>J2(e)?Q2.test(e.split("/*")[0].trim()):!1,Q2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,e6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,un=(e,t,n)=>n>t?t:n<e?e:n,vr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qr={...vr,transform:e=>un(0,1,e)},oi={...vr,default:1},Zr=e=>Math.round(e*1e5)/1e5,gu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,t6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,n6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function $o(e){return typeof e=="string"}const xo=e=>({test:t=>$o(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qt=xo("deg"),St=xo("%"),ne=xo("px"),r6=xo("vh"),o6=xo("vw"),Ud={...St,parse:e=>St.parse(e)/100,transform:e=>St.transform(e*100)},Hd={...vr,transform:Math.round},Hh={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,size:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,rotate:Qt,rotateX:Qt,rotateY:Qt,rotateZ:Qt,scale:oi,scaleX:oi,scaleY:oi,scaleZ:oi,skew:Qt,skewX:Qt,skewY:Qt,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:qr,originX:Ud,originY:Ud,originZ:ne,zIndex:Hd,backgroundPositionX:ne,backgroundPositionY:ne,fillOpacity:qr,strokeOpacity:qr,numOctaves:Hd};function vu(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,d=!1,c=!0;for(const f in t){const p=t[f];if(Uh(f)){i[f]=p;continue}const h=Hh[f],b=e6(p,h);if(Ln.has(f)){if(l=!0,a[f]=b,!c)continue;p!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(d=!0,s[f]=b):o[f]=b}if(t.transform||(l||r?o.transform=X2(e.transform,n,c,r):o.transform&&(o.transform="none")),d){const{originX:f="50%",originY:p="50%",originZ:h=0}=s;o.transformOrigin=`${f} ${p} ${h}`}}const yu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gh(e,t,n){for(const r in t)!We(t[r])&&!_h(r,n)&&(e[r]=t[r])}function i6({transformTemplate:e},t,n){return u.useMemo(()=>{const r=yu();return vu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function a6(e,t,n){const r=e.style||{},o={};return Gh(o,r,e),Object.assign(o,i6(e,t,n)),o}function s6(e,t,n){const r={},o=a6(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 l6=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 _i(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||l6.has(e)}let Wh=e=>!_i(e);function u6(e){e&&(Wh=t=>t.startsWith("on")?!_i(t):e(t))}try{u6(require("@emotion/is-prop-valid").default)}catch{}function c6(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Wh(o)||n===!0&&_i(o)||!t&&!_i(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Gd(e,t,n){return typeof e=="string"?e:ne.transform(t+n*e)}function d6(e,t,n){const r=Gd(t,e.x,e.width),o=Gd(n,e.y,e.height);return`${r} ${o}`}const f6={offset:"stroke-dashoffset",array:"stroke-dasharray"},p6={offset:"strokeDashoffset",array:"strokeDasharray"};function h6(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?f6:p6;e[i.offset]=ne.transform(-r);const a=ne.transform(t),s=ne.transform(n);e[i.array]=`${a} ${s}`}function $u(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...d},c,f,p){if(vu(e,d,c,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:b,dimensions:g}=e;h.transform&&(g&&(b.transform=h.transform),delete h.transform),g&&(o!==void 0||i!==void 0||b.transform)&&(b.transformOrigin=d6(g,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&&h6(h,a,s,l,!1)}const Yh=()=>({...yu(),attrs:{}}),xu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function b6(e,t,n,r){const o=u.useMemo(()=>{const i=Yh();return $u(i,t,{enableHardwareAcceleration:!1},xu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Gh(i,e.style,e),o.style={...i,...o.style}}return o}function m6(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(bu(n)?b6:s6)(r,i,a,n),d=c6(r,typeof n=="string",e),c=n!==u.Fragment?{...d,...l,ref:o}:{},{children:f}=r,p=u.useMemo(()=>We(f)?f.get():f,[f]);return u.createElement(n,{...c,children:p})}}function qh(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 Zh=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 Xh(e,t,n,r){qh(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Zh.has(o)?o:cu(o),t.attrs[o])}function wu(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(We(o[a])||t.style&&We(t.style[a])||_h(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=o[a]);return i}function Jh(e,t,n){const r=wu(e,t,n);for(const o in e)if(We(e[o])||We(t[o])){const i=yo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Cu(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 Qh(e){const t=u.useRef(null);return t.current===null&&(t.current=e()),t.current}const tl=e=>Array.isArray(e),g6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),v6=e=>tl(e)?e[e.length-1]||0:e;function hi(e){const t=We(e)?e.get():e;return g6(t)?t.toValue():t}function y6({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:$6(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const eb=e=>(t,n)=>{const r=u.useContext(sa),o=u.useContext(la),i=()=>y6(e,t,r,o);return n?i():Qh(i)};function $6(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=hi(i[p]);let{initial:a,animate:s}=e;const l=ca(e),d=Nh(e);t&&d&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!ua(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const b=Cu(e,h);if(!b)return;const{transitionEnd:g,transition:y,...$}=b;for(const C in $){let w=$[C];if(Array.isArray(w)){const E=c?w.length-1:0;w=w[E]}w!==null&&(o[C]=w)}for(const C in g)o[C]=g[C]}),o}const ze=e=>e,{schedule:Le,cancel:cn,state:je,steps:is}=Oh(typeof requestAnimationFrame<"u"?requestAnimationFrame:ze,!0),x6={useVisualState:eb({scrapeMotionValuesFromProps:Jh,createRenderState:Yh,onMount:(e,t,{renderState:n,latestValues:r})=>{Le.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Le.render(()=>{$u(n,r,{enableHardwareAcceleration:!1},xu(t.tagName),e.transformTemplate),Xh(t,n)})}})},w6={useVisualState:eb({scrapeMotionValuesFromProps:wu,createRenderState:yu})};function tb(e,{forwardMotionProps:t=!1},n,r){return{...bu(e)?x6:w6,preloadedFeatures:n,useRender:m6(t),createVisualElement:r,Component:e}}function Ot(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const nb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function da(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const C6=e=>t=>nb(t)&&e(t,da(t));function Kt(e,t,n,r){return Ot(e,t,C6(n),r)}const D6=(e,t)=>n=>t(e(n)),jt=(...e)=>e.reduce(D6);function rb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Wd=rb("dragHorizontal"),Yd=rb("dragVertical");function ob(e){let t=!1;if(e==="y")t=Yd();else if(e==="x")t=Wd();else{const n=Wd(),r=Yd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ib(){const e=ob(!0);return e?(e(),!1):!0}class fn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qd(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,a)=>{if(i.pointerType==="touch"||ib())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const l=s[r];l&&l(i,a)};return Kt(e.current,n,o,{passive:!e.getProps()[r]})}class E6 extends fn{mount(){this.unmount=jt(qd(this.node,!0),qd(this.node,!1))}unmount(){}}class P6 extends fn{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=jt(Ot(this.node.current,"focus",()=>this.onFocus()),Ot(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ab=(e,t)=>t?e===t?!0:ab(e,t.parentElement):!1;function as(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,da(n))}class S6 extends fn{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=Kt(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:c,globalTapTarget:f}=this.node.getProps();!f&&!ab(this.node.current,s.target)?c&&c(s,l):d&&d(s,l)},{passive:!(r.onTap||r.onPointerUp)}),a=Kt(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=jt(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()||as("up",(l,d)=>{const{onTap:c}=this.node.getProps();c&&c(l,d)})};this.removeEndListeners(),this.removeEndListeners=Ot(this.node.current,"keyup",a),as("down",(s,l)=>{this.startPress(s,l)})},n=Ot(this.node.current,"keydown",t),r=()=>{this.isPressing&&as("cancel",(i,a)=>this.cancelPress(i,a))},o=Ot(this.node.current,"blur",r);this.removeAccessibleListeners=jt(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&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ib()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=Kt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Ot(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const nl=new WeakMap,ss=new WeakMap,T6=e=>{const t=nl.get(e.target);t&&t(e)},A6=e=>{e.forEach(T6)};function M6({root:e,...t}){const n=e||document;ss.has(n)||ss.set(n,{});const r=ss.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(A6,{root:e,...t})),r[o]}function k6(e,t,n){const r=M6(t);return nl.set(e,n),r.observe(e),()=>{nl.delete(e),r.unobserve(e)}}const R6={some:0,all:1};class F6 extends fn{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:d}=l;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),p=d?c:f;p&&p(l)};return k6(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 sb={inView:{Feature:F6},tap:{Feature:S6},focus:{Feature:P6},hover:{Feature:E6}};function lb(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 I6(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 fa(e,t,n){const r=e.getProps();return Cu(r,t,n!==void 0?n:r.custom,I6(e),L6(e))}const _t=e=>e*1e3,zt=e=>e/1e3,V6={type:"spring",stiffness:500,damping:25,restSpeed:10},O6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),N6={type:"keyframes",duration:.8},K6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},j6=(e,{keyframes:t})=>t.length>2?N6:Ln.has(e)?e.startsWith("scale")?O6(t[1]):V6:K6;function _6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:d,...c}){return!!Object.keys(c).length}function Du(e,t){return e[t]||e.default||e}const z6=e=>e!==null;function pa(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(z6),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let bi;function U6(){bi=void 0}const on={now:()=>(bi===void 0&&on.set(je.isProcessing||V2.useManualTiming?je.timestamp:performance.now()),bi),set:e=>{bi=e,queueMicrotask(U6)}},ub=e=>/^0[^.\s]+$/u.test(e);function H6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ub(e):!0}let wo=ze,Tt=ze;process.env.NODE_ENV!=="production"&&(wo=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Tt=(e,t)=>{if(!e)throw new Error(t)});const cb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),G6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function W6(e){const t=G6.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Y6=4;function db(e,t,n=1){Tt(n<=Y6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=W6(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return cb(a)?parseFloat(a):a}return mu(o)?db(o,t,n+1):o}const q6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Zd=e=>e===vr||e===ne,Xd=(e,t)=>parseFloat(e.split(", ")[t]),Jd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Xd(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Xd(i[1],e):0}},Z6=new Set(["x","y","z"]),X6=yo.filter(e=>!Z6.has(e));function J6(e){const t=[];return X6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cr={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:Jd(4,13),y:Jd(5,14)};cr.translateX=cr.x;cr.translateY=cr.y;const fb=e=>t=>t.test(e),Q6={test:e=>e==="auto",parse:e=>e},pb=[vr,ne,St,Qt,o6,r6,Q6],Qd=e=>pb.find(fb(e)),Pn=new Set;let rl=!1,ol=!1;function hb(){if(ol){const e=Array.from(Pn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=J6(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,a])=>{var s;(s=r.getValue(i))===null||s===void 0||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ol=!1,rl=!1,Pn.forEach(e=>e.complete()),Pn.clear()}function bb(){Pn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ol=!0)})}function ew(){bb(),hb()}class Eu{constructor(t,n,r,o,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Pn.add(this),rl||(rl=!0,Le.read(bb),Le.resolveKeyframes(hb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const a=o==null?void 0:o.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const l=r.readValue(n,s);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=s),o&&a===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Pn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Pn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Pu=(e,t)=>n=>!!($o(n)&&n6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),mb=(e,t,n)=>r=>{if(!$o(r))return r;const[o,i,a,s]=r.match(gu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},tw=e=>un(0,255,e),ls={...vr,transform:e=>Math.round(tw(e))},En={test:Pu("rgb","red"),parse:mb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ls.transform(e)+", "+ls.transform(t)+", "+ls.transform(n)+", "+Zr(qr.transform(r))+")"};function nw(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 il={test:Pu("#"),parse:nw,transform:En.transform},tr={test:Pu("hsl","hue"),parse:mb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+St.transform(Zr(t))+", "+St.transform(Zr(n))+", "+Zr(qr.transform(r))+")"},He={test:e=>En.test(e)||il.test(e)||tr.test(e),parse:e=>En.test(e)?En.parse(e):tr.test(e)?tr.parse(e):il.parse(e),transform:e=>$o(e)?e:e.hasOwnProperty("red")?En.transform(e):tr.transform(e)};function rw(e){var t,n;return isNaN(e)&&$o(e)&&(((t=e.match(gu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(t6))===null||n===void 0?void 0:n.length)||0)>0}const gb="number",vb="color",ow="var",iw="var(",ef="${}",aw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function zi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(aw,l=>(He.test(l)?(r.color.push(i),o.push(vb),n.push(He.parse(l))):l.startsWith(iw)?(r.var.push(i),o.push(ow),n.push(l)):(r.number.push(i),o.push(gb),n.push(parseFloat(l))),++i,ef)).split(ef);return{values:n,split:s,indexes:r,types:o}}function yb(e){return zi(e).values}function $b(e){const{split:t,types:n}=zi(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===gb?i+=Zr(o[a]):s===vb?i+=He.transform(o[a]):i+=o[a]}return i}}const sw=e=>typeof e=="number"?0:e;function lw(e){const t=yb(e);return $b(e)(t.map(sw))}const dn={test:rw,parse:yb,createTransformer:$b,getAnimatableNone:lw},uw=new Set(["brightness","contrast","saturate","opacity"]);function cw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(gu)||[];if(!r)return e;const o=n.replace(r,"");let i=uw.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const dw=/\b([a-z-]*)\(.*?\)/gu,al={...dn,getAnimatableNone:e=>{const t=e.match(dw);return t?t.map(cw).join(" "):e}},fw={...Hh,color:He,backgroundColor:He,outlineColor:He,fill:He,stroke:He,borderColor:He,borderTopColor:He,borderRightColor:He,borderBottomColor:He,borderLeftColor:He,filter:al,WebkitFilter:al},Su=e=>fw[e];function xb(e,t){let n=Su(e);return n!==al&&(n=dn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function pw(e,t,n){let r=0,o;for(;r<e.length&&!o;)typeof e[r]=="string"&&e[r]!=="none"&&e[r]!=="0"&&(o=e[r]),r++;if(o&&n)for(const i of t)e[i]=xb(n,o)}class wb extends Eu{constructor(t,n,r,o){super(t,n,r,o,o==null?void 0:o.owner,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){const d=t[l];if(typeof d=="string"&&mu(d)){const c=db(d,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=d)}}if(!q6.has(r)||t.length!==2)return this.resolveNoneKeyframes();const[o,i]=t,a=Qd(o),s=Qd(i);if(a!==s)if(Zd(a)&&Zd(s))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)H6(t[o])&&r.push(o);r.length&&pw(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=o.length-1,s=o[a];o[a]=cr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}}function hw(e){let t;return()=>(t===void 0&&(t=e()),t)}const tf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(dn.test(e)||e==="0")&&!e.startsWith("url("));function bw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function mw(e,t,n,r){const o=e[0];if(o===null)return!1;const i=e[e.length-1],a=tf(o,t),s=tf(i,t);return wo(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!a||!s?!1:bw(e)||n==="spring"&&r}class Cb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,...s},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ew(),this._resolved}onKeyframesResolved(t,n){this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:a,onComplete:s,onUpdate:l,isGenerator:d}=this.options;if(!d&&!mw(t,r,o,i))if(a)this.options.duration=0;else{l==null||l(pa(t,this.options,n)),s==null||s(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Db(e,t){return t?e*(1e3/t):0}const gw=5;function Eb(e,t,n){const r=Math.max(t-gw,0);return Db(n-e(r),t-r)}const us=.001,vw=.01,nf=10,yw=.05,$w=1;function xw({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;wo(e<=_t(nf),"Spring duration must be 10 seconds or less");let a=1-t;a=un(yw,$w,a),e=un(vw,nf,zt(e)),a<1?(o=d=>{const c=d*a,f=c*e,p=c-n,h=sl(d,a),b=Math.exp(-f);return us-p/h*b},i=d=>{const f=d*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(d,2)*e,b=Math.exp(-f),g=sl(Math.pow(d,2),a);return(-o(d)+us>0?-1:1)*((p-h)*b)/g}):(o=d=>{const c=Math.exp(-d*e),f=(d-n)*e+1;return-us+c*f},i=d=>{const c=Math.exp(-d*e),f=(n-d)*(e*e);return c*f});const s=5/e,l=Cw(o,i,s);if(e=_t(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const ww=12;function Cw(e,t,n){let r=n;for(let o=1;o<ww;o++)r=r-e(r)/t(r);return r}function sl(e,t){return e*Math.sqrt(1-t*t)}const Dw=["duration","bounce"],Ew=["stiffness","damping","mass"];function rf(e,t){return t.some(n=>e[n]!==void 0)}function Pw(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!rf(e,Ew)&&rf(e,Dw)){const n=xw(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Pb({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:d,duration:c,velocity:f,isResolvedFromDuration:p}=Pw({...r,velocity:-zt(r.velocity||0)}),h=f||0,b=l/(2*Math.sqrt(s*d)),g=i-o,y=zt(Math.sqrt(s/d)),$=Math.abs(g)<5;n||(n=$?.01:2),t||(t=$?.005:.5);let C;if(b<1){const w=sl(y,b);C=E=>{const P=Math.exp(-b*y*E);return i-P*((h+b*y*g)/w*Math.sin(w*E)+g*Math.cos(w*E))}}else if(b===1)C=w=>i-Math.exp(-y*w)*(g+(h+y*g)*w);else{const w=y*Math.sqrt(b*b-1);C=E=>{const P=Math.exp(-b*y*E),k=Math.min(w*E,300);return i-P*((h+b*y*g)*Math.sinh(k)+w*g*Math.cosh(k))/w}}return{calculatedDuration:p&&c||null,next:w=>{const E=C(w);if(p)a.done=w>=c;else{let P=h;w!==0&&(b<1?P=Eb(C,w,E):P=0);const k=Math.abs(P)<=n,N=Math.abs(i-E)<=t;a.done=k&&N}return a.value=a.done?i:E,a}}}function of({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:d=.5,restSpeed:c}){const f=e[0],p={done:!1,value:f},h=v=>s!==void 0&&v<s||l!==void 0&&v>l,b=v=>s===void 0?l:l===void 0||Math.abs(s-v)<Math.abs(l-v)?s:l;let g=n*t;const y=f+g,$=a===void 0?y:a(y);$!==y&&(g=$-f);const C=v=>-g*Math.exp(-v/r),w=v=>$+C(v),E=v=>{const L=C(v),F=w(v);p.done=Math.abs(L)<=d,p.value=p.done?$:F};let P,k;const N=v=>{h(p.value)&&(P=v,k=Pb({keyframes:[p.value,b(p.value)],velocity:Eb(w,v,p.value),damping:o,stiffness:i,restDelta:d,restSpeed:c}))};return N(0),{calculatedDuration:null,next:v=>{let L=!1;return!k&&P===void 0&&(L=!0,E(v),N(v)),P!==void 0&&v>=P?k.next(v-P):(!L&&E(v),p)}}}const Sb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Sw=1e-7,Tw=12;function Aw(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=Sb(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>Sw&&++s<Tw);return a}function Co(e,t,n,r){if(e===t&&n===r)return ze;const o=i=>Aw(i,0,1,e,n);return i=>i===0||i===1?i:Sb(o(i),t,r)}const Mw=Co(.42,0,1,1),kw=Co(0,0,.58,1),Tb=Co(.42,0,.58,1),Rw=e=>Array.isArray(e)&&typeof e[0]!="number",Ab=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mb=e=>t=>1-e(1-t),Tu=e=>1-Math.sin(Math.acos(e)),kb=Mb(Tu),Fw=Ab(Tu),Rb=Co(.33,1.53,.69,.99),Au=Mb(Rb),Bw=Ab(Au),Iw=e=>(e*=2)<1?.5*Au(e):.5*(2-Math.pow(2,-10*(e-1))),af={linear:ze,easeIn:Mw,easeInOut:Tb,easeOut:kw,circIn:Tu,circInOut:Fw,circOut:kb,backIn:Au,backInOut:Bw,backOut:Rb,anticipate:Iw},sf=e=>{if(Array.isArray(e)){Tt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Co(t,n,r,o)}else if(typeof e=="string")return Tt(af[e]!==void 0,`Invalid easing type '${e}'`),af[e];return e},lo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ee=(e,t,n)=>e+(t-e)*n;function cs(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 Lw({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=cs(l,s,e+1/3),i=cs(l,s,e),a=cs(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const ds=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Vw=[il,En,tr],Ow=e=>Vw.find(t=>t.test(e));function lf(e){const t=Ow(e);Tt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===tr&&(n=Lw(n)),n}const uf=(e,t)=>{const n=lf(e),r=lf(t),o={...n};return i=>(o.red=ds(n.red,r.red,i),o.green=ds(n.green,r.green,i),o.blue=ds(n.blue,r.blue,i),o.alpha=Ee(n.alpha,r.alpha,i),En.transform(o))};function ll(e,t){return n=>n>0?t:e}function Nw(e,t){return n=>Ee(e,t,n)}function Mu(e){return typeof e=="number"?Nw:typeof e=="string"?mu(e)?ll:He.test(e)?uf:_w:Array.isArray(e)?Fb:typeof e=="object"?He.test(e)?uf:Kw:ll}function Fb(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>Mu(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function Kw(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Mu(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function jw(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 _w=(e,t)=>{const n=dn.createTransformer(t),r=zi(e),o=zi(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?jt(Fb(jw(r,o),o.values),n):(wo(!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.`),ll(e,t))};function Bb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ee(e,t,n):Mu(e)(e,t)}function zw(e,t,n){const r=[],o=n||Bb,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=jt(l,s)}r.push(s)}return r}function Uw(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Tt(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=zw(t,r,o),s=a.length,l=d=>{let c=0;if(s>1)for(;c<e.length-2&&!(d<e[c+1]);c++);const f=lo(e[c],e[c+1],d);return a[c](f)};return n?d=>l(un(e[0],e[i-1],d)):l}function Hw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=lo(0,t,r);e.push(Ee(n,1,o))}}function Gw(e){const t=[0];return Hw(t,e.length-1),t}function Ww(e,t){return e.map(n=>n*t)}function Yw(e,t){return e.map(()=>t||Tb).splice(0,e.length-1)}function Ui({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Rw(r)?r.map(sf):sf(r),i={done:!1,value:t[0]},a=Ww(n&&n.length===t.length?n:Gw(t),e),s=Uw(a,t,{ease:Array.isArray(o)?o:Yw(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const cf=2e4;function qw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<cf;)t+=n,r=e.next(t);return t>=cf?1/0:t}const Zw=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Le.update(t,!0),stop:()=>cn(t),now:()=>je.isProcessing?je.timestamp:on.now()}},Xw={decay:of,inertia:of,tween:Ui,keyframes:Ui,spring:Pb},Jw=e=>e/100;class ku extends Cb{constructor({KeyframeResolver:t=Eu,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:s}=this.options;s&&s()};const{name:r,motionValue:o,keyframes:i}=this.options,a=(s,l)=>this.onKeyframesResolved(s,l);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,a,r,o):this.resolver=new t(i,a,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=this.options,s=Xw[n]||Ui;let l,d;s!==Ui&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Tt(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=jt(Jw,Bb(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});i==="mirror"&&(d=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=qw(c));const{calculatedDuration:f}=c,p=f+o,h=p*(r+1)-o;return{generator:c,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:v}=this.options;return{done:!0,value:v[v.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:d,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:h,repeatType:b,repeatDelay:g,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const $=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?$<0:$>c;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let w=this.currentTime,E=i;if(h){const v=Math.min(this.currentTime,c)/f;let L=Math.floor(v),F=v%1;!F&&v>=1&&(F=1),F===1&&L--,L=Math.min(L,h+1),!!(L%2)&&(b==="reverse"?(F=1-F,g&&(F-=g/f)):b==="mirror"&&(E=a)),w=un(0,1,F)*f}const P=C?{done:!1,value:l[0]}:E.next(w);s&&(P.value=s(P.value));let{done:k}=P;!C&&d!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&o!==void 0&&(P.value=pa(l,this.options,o)),y&&y(P.value),N&&this.finish(),P}get duration(){const{resolved:t}=this;return t?zt(t.calculatedDuration):0}get time(){return zt(this.currentTime)}set time(t){t=_t(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=zt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Zw,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Ib=e=>Array.isArray(e)&&typeof e[0]=="number";function Lb(e){return!!(!e||typeof e=="string"&&e in Ru||Ib(e)||Array.isArray(e)&&e.every(Lb))}const Hr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ru={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hr([0,.65,.55,1]),circOut:Hr([.55,0,1,.45]),backIn:Hr([.31,.01,.66,-.59]),backOut:Hr([.33,1.53,.69,.99])};function Qw(e){return Vb(e)||Ru.easeOut}function Vb(e){if(e)return Ib(e)?Hr(e):Array.isArray(e)?e.map(Qw):Ru[e]}function e7(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const d={[t]:n};l&&(d.offset=l);const c=Vb(s);return Array.isArray(c)&&(d.easing=c),e.animate(d,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const t7=hw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),n7=new Set(["opacity","clipPath","filter","transform"]),Hi=10,r7=2e4;function o7(e){return e.type==="spring"||e.name==="backgroundColor"||!Lb(e.ease)}function i7(e,t){const n=new ku({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<r7;)r=n.sample(i),o.push(r.value),i+=Hi;return{times:void 0,keyframes:o,duration:i-Hi,ease:"linear"}}class df extends Cb{constructor(t){super(t);const{name:n,motionValue:r,keyframes:o}=this.options;this.resolver=new wb(o,(i,a)=>this.onKeyframesResolved(i,a),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:a,type:s,motionValue:l,name:d}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(o7(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,...b}=this.options,g=i7(t,b);t=g.keyframes,t.length===1&&(t[1]=t[0]),o=g.duration,i=g.times,a=g.ease,s="keyframes"}const c=e7(l.owner.current,d,t,{...this.options,duration:o,times:i,ease:a});return c.startTime=on.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(pa(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return zt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return zt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=_t(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ze;const{animation:r}=n;r.timeline=t,r.onfinish=null}return ze}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:a,times:s}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:d,onComplete:c,...f}=this.options,p=new ku({...f,keyframes:r,duration:o,type:i,ease:a,times:s,isGenerator:!0}),h=_t(this.time);l.setWithVelocity(p.sample(h-Hi).value,p.sample(h).value,Hi)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:a,type:s}=t;return t7()&&r&&n7.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&a!==0&&s!=="inertia"}}const Fu=(e,t,n,r={},o,i)=>a=>{const s=Du(r,e)||{},l=s.delay||r.delay||0;let{elapsed:d=0}=r;d=d-_t(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-d,onUpdate:p=>{t.set(p),s.onUpdate&&s.onUpdate(p)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};_6(s)||(c={...c,...j6(e,c)}),c.duration&&(c.duration=_t(c.duration)),c.repeatDelay&&(c.repeatDelay=_t(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=pa(c.keyframes,s);if(p!==void 0){Le.update(()=>{c.onUpdate(p),c.onComplete()});return}}return!i&&df.supports(c)?new df(c):new ku(c)};function Gi(e){return!!(We(e)&&e.add)}function Bu(e,t){e.indexOf(t)===-1&&e.push(t)}function Iu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Lu{constructor(){this.subscriptions=[]}add(t){return Bu(this.subscriptions,t),()=>Iu(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 ff=new Set;function Vu(e,t,n){e||ff.has(t)||(console.warn(t),n&&console.warn(n),ff.add(t))}const pf=30,a7=e=>!isNaN(parseFloat(e));class s7{constructor(t,n={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=on.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=a7(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=on.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Vu(!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 Lu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Le.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,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=on.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,pf);return Db(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 uo(e,t){return new s7(e,t)}function l7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uo(n))}function u7(e,t){const n=fa(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const s=v6(i[a]);l7(e,a,s)}}function c7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ob(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const d=e.getValue("willChange");r&&(a=r);const c=[],f=o&&e.animationState&&e.animationState.getState()[o];for(const p in l){const h=e.getValue(p,(i=e.latestValues[p])!==null&&i!==void 0?i:null),b=l[p];if(b===void 0||f&&c7(f,p))continue;const g={delay:n,elapsed:0,...Du(a||{},p)};let y=!1;if(window.HandoffAppearAnimations){const w=e.getProps()[Vh];if(w){const E=window.HandoffAppearAnimations(w,p);E!==null&&(g.elapsed=E,y=!0)}}h.start(Fu(p,h,b,e.shouldReduceMotion&&Ln.has(p)?{type:!1}:g,e,y));const $=h.animation;$&&(Gi(d)&&(d.add(p),$.then(()=>d.remove(p))),c.push($))}return s&&Promise.all(c).then(()=>{Le.update(()=>{s&&u7(e,s)})}),c}function ul(e,t,n={}){var r;const o=fa(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(Ob(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:p}=i;return d7(e,t,c+d,f,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[d,c]=l==="beforeChildren"?[a,s]:[s,a];return d().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function d7(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(d=0)=>d*r:(d=0)=>s-d*r;return Array.from(e.variantChildren).sort(f7).forEach((d,c)=>{d.notify("AnimationStart",t),a.push(ul(d,t,{...i,delay:n+l(c)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function f7(e,t){return e.sortNodePosition(t)}function p7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ul(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ul(e,t,n);else{const o=typeof t=="function"?fa(e,t,n.custom):t;r=Promise.all(Ob(e,o,n))}return r.then(()=>{Le.postRender(()=>{e.notify("AnimationComplete",t)})})}const h7=[...fu].reverse(),b7=fu.length;function m7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>p7(e,n,r)))}function g7(e){let t=m7(e);const n=y7();let r=!0;const o=l=>(d,c)=>{var f;const p=fa(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:b,...g}=p;d={...d,...g,...b}}return d};function i(l){t=l(e)}function a(l){const d=e.getProps(),c=e.getVariantContext(!0)||{},f=[],p=new Set;let h={},b=1/0;for(let y=0;y<b7;y++){const $=h7[y],C=n[$],w=d[$]!==void 0?d[$]:c[$],E=ao(w),P=$===l?C.isActive:null;P===!1&&(b=y);let k=w===c[$]&&w!==d[$]&&E;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...h},!C.isActive&&P===null||!w&&!C.prevProp||ua(w)||typeof w=="boolean")continue;let v=v7(C.prevProp,w)||$===l&&C.isActive&&!k&&E||y>b&&E,L=!1;const F=Array.isArray(w)?w:[w];let A=F.reduce(o($),{});P===!1&&(A={});const{prevResolvedValues:B={}}=C,R={...B,...A},I=K=>{v=!0,p.has(K)&&(L=!0,p.delete(K)),C.needsAnimating[K]=!0;const V=e.getValue(K);V&&(V.liveStyle=!1)};for(const K in R){const V=A[K],T=B[K];if(h.hasOwnProperty(K))continue;let G=!1;tl(V)&&tl(T)?G=!lb(V,T):G=V!==T,G?V!=null?I(K):p.add(K):V!==void 0&&p.has(K)?I(K):C.protectedKeys[K]=!0}C.prevProp=w,C.prevResolvedValues=A,C.isActive&&(h={...h,...A}),r&&e.blockInitialAnimation&&(v=!1),v&&(!k||L)&&f.push(...F.map(K=>({animation:K,options:{type:$}})))}if(p.size){const y={};p.forEach($=>{const C=e.getBaseTarget($),w=e.getValue($);w&&(w.liveStyle=!0),y[$]=C??null}),f.push({animation:y})}let g=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function s(l,d){var c;if(n[l].isActive===d)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(l,d)}),n[l].isActive=d;const f=a(l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n}}function v7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!lb(t,e):!1}function hn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y7(){return{animate:hn(!0),whileInView:hn(),whileHover:hn(),whileTap:hn(),whileDrag:hn(),whileFocus:hn(),exit:hn()}}class $7 extends fn{constructor(t){super(t),t.animationState||(t.animationState=g7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ua(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 x7=0;class w7 extends fn{constructor(){super(...arguments),this.id=x7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Nb={animation:{Feature:$7},exit:{Feature:w7}},hf=(e,t)=>Math.abs(e-t);function C7(e,t){const n=hf(e.x,t.x),r=hf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Kb{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=ps(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=C7(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:b}=f,{timestamp:g}=je;this.history.push({...b,timestamp:g});const{onStart:y,onMove:$}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=fs(p,this.transformPagePoint),Le.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:b,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ps(f.type==="pointercancel"?this.lastMoveEventInfo:fs(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,y),b&&b(f,y)},!nb(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=da(t),s=fs(a,this.transformPagePoint),{point:l}=s,{timestamp:d}=je;this.history=[{...l,timestamp:d}];const{onSessionStart:c}=n;c&&c(t,ps(s,this.history)),this.removeListeners=jt(Kt(this.contextWindow,"pointermove",this.handlePointerMove),Kt(this.contextWindow,"pointerup",this.handlePointerUp),Kt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cn(this.updatePoint)}}function fs(e,t){return t?{point:t(e.point)}:e}function bf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ps({point:e},t){return{point:e,delta:bf(e,jb(t)),offset:bf(e,D7(t)),velocity:E7(t,.1)}}function D7(e){return e[0]}function jb(e){return e[e.length-1]}function E7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=jb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>_t(t)));)n--;if(!r)return{x:0,y:0};const i=zt(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 rt(e){return e.max-e.min}function cl(e,t=0,n=.01){return Math.abs(e-t)<=n}function mf(e,t,n,r=.5){e.origin=r,e.originPoint=Ee(t.min,t.max,e.origin),e.scale=rt(n)/rt(t),(cl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ee(n.min,n.max,e.origin)-e.originPoint,(cl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Xr(e,t,n,r){mf(e.x,t.x,n.x,r?r.originX:void 0),mf(e.y,t.y,n.y,r?r.originY:void 0)}function gf(e,t,n){e.min=n.min+t.min,e.max=e.min+rt(t)}function P7(e,t,n){gf(e.x,t.x,n.x),gf(e.y,t.y,n.y)}function vf(e,t,n){e.min=t.min-n.min,e.max=e.min+rt(t)}function Jr(e,t,n){vf(e.x,t.x,n.x),vf(e.y,t.y,n.y)}function S7(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ee(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ee(n,e,r.max):Math.min(e,n)),e}function yf(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 T7(e,{top:t,left:n,bottom:r,right:o}){return{x:yf(e.x,n,o),y:yf(e.y,t,r)}}function $f(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 A7(e,t){return{x:$f(e.x,t.x),y:$f(e.y,t.y)}}function M7(e,t){let n=.5;const r=rt(e),o=rt(t);return o>r?n=lo(t.min,t.max-r,e.min):r>o&&(n=lo(e.min,e.max-o,t.min)),un(0,1,n)}function k7(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 dl=.35;function R7(e=dl){return e===!1?e=0:e===!0&&(e=dl),{x:xf(e,"left","right"),y:xf(e,"top","bottom")}}function xf(e,t,n){return{min:wf(e,t),max:wf(e,n)}}function wf(e,t){return typeof e=="number"?e:e[t]||0}const Cf=()=>({translate:0,scale:1,origin:0,originPoint:0}),nr=()=>({x:Cf(),y:Cf()}),Df=()=>({min:0,max:0}),Ae=()=>({x:Df(),y:Df()});function st(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 F7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function B7(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 hs(e){return e===void 0||e===1}function fl({scale:e,scaleX:t,scaleY:n}){return!hs(e)||!hs(t)||!hs(n)}function gn(e){return fl(e)||zb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function zb(e){return Ef(e.x)||Ef(e.y)}function Ef(e){return e&&e!=="0%"}function Wi(e,t,n){const r=e-n,o=t*r;return n+o}function Pf(e,t,n,r,o){return o!==void 0&&(e=Wi(e,o,r)),Wi(e,n,r)+t}function pl(e,t=0,n=1,r,o){e.min=Pf(e.min,t,n,r,o),e.max=Pf(e.max,t,n,r,o)}function Ub(e,{x:t,y:n}){pl(e.x,t.translate,t.scale,t.originPoint),pl(e.y,n.translate,n.scale,n.originPoint)}function I7(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&&rr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Ub(e,a)),r&&gn(i.latestValues)&&rr(e,i.latestValues))}t.x=Sf(t.x),t.y=Sf(t.y)}function Sf(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function tn(e,t){e.min=e.min+t,e.max=e.max+t}function Tf(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Ee(e.min,e.max,i);pl(e,t[n],t[r],a,t.scale)}const L7=["x","scaleX","originX"],V7=["y","scaleY","originY"];function rr(e,t){Tf(e.x,t,L7),Tf(e.y,t,V7)}function Hb(e,t){return _b(B7(e.getBoundingClientRect(),t))}function O7(e,t,n){const r=Hb(e,n),{scroll:o}=t;return o&&(tn(r.x,o.offset.x),tn(r.y,o.offset.y)),r}const Gb=({current:e})=>e?e.ownerDocument.defaultView:null,N7=new WeakMap;class K7{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=Ae(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(da(c,"page").point)},i=(c,f)=>{const{drag:p,dragPropagation:h,onDragStart:b}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ob(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),st(y=>{let $=this.getAxisMotionValue(y).get()||0;if(St.test($)){const{projection:C}=this.visualElement;if(C&&C.layout){const w=C.layout.layoutBox[y];w&&($=rt(w)*(parseFloat($)/100))}}this.originPoint[y]=$}),b&&b(c,f);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(c,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:b,onDrag:g}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:y}=f;if(h&&this.currentDirection===null){this.currentDirection=j7(y),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),g&&g(c,f)},s=(c,f)=>this.stop(c,f),l=()=>st(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Kb(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Gb(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&&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||!ii(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=S7(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&&er(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=T7(o.layoutBox,n):this.constraints=!1,this.elastic=R7(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&st(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=k7(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!er(t))return!1;const r=t.current;Tt(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=O7(r,o.root,this.visualElement.getTransformPagePoint());let a=A7(o.layout.layoutBox,i);if(n){const s=n(F7(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||{},d=st(c=>{if(!ii(c,n,this.currentDirection))return;let f=l&&l[c]||{};a&&(f={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(c,b)});return Promise.all(d).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Fu(t,r,0,n,this.visualElement))}stopAnimation(){st(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){st(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){st(n=>{const{drag:r}=this.getProps();if(!ii(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]-Ee(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!er(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};st(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=M7({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(),st(a=>{if(!ii(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:d}=this.constraints[a];s.set(Ee(l,d,o[a]))})}addListeners(){if(!this.visualElement.current)return;N7.set(this.visualElement,this);const t=this.visualElement.current,n=Kt(t,"pointerdown",l=>{const{drag:d,dragListener:c=!0}=this.getProps();d&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();er(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=Ot(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(st(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].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=dl,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function ii(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function j7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class _7 extends fn{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new K7(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 Af=e=>(t,n)=>{e&&e(t,n)};class z7 extends fn{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new Kb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Af(t),onStart:Af(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&o(i,a)}}}mount(){this.removePointerDownListener=Kt(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 U7(){const e=u.useContext(la);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 mi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;const n=Mf(e,t.target.x),r=Mf(e,t.target.y);return`${n}% ${r}%`}},H7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=dn.parse(e);if(o.length>5)return r;const i=dn.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 d=Ee(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),i(o)}};class G7 extends u.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Y2(W7),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()})),mi.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()||Le.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),du.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 Wb(e){const[t,n]=U7(),r=u.useContext(hu);return S.jsx(G7,{...e,layoutGroup:r,switchLayoutGroup:u.useContext(Kh),isPresent:t,safeToRemove:n})}const W7={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:H7},Yb=["TopLeft","TopRight","BottomLeft","BottomRight"],Y7=Yb.length,kf=e=>typeof e=="string"?parseFloat(e):e,Rf=e=>typeof e=="number"||ne.test(e);function q7(e,t,n,r,o,i){o?(e.opacity=Ee(0,n.opacity!==void 0?n.opacity:1,Z7(r)),e.opacityExit=Ee(t.opacity!==void 0?t.opacity:1,0,X7(r))):i&&(e.opacity=Ee(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<Y7;a++){const s=`border${Yb[a]}Radius`;let l=Ff(t,s),d=Ff(n,s);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||Rf(l)===Rf(d)?(e[s]=Math.max(Ee(kf(l),kf(d),r),0),(St.test(d)||St.test(l))&&(e[s]+="%")):e[s]=d}(t.rotate||n.rotate)&&(e.rotate=Ee(t.rotate||0,n.rotate||0,r))}function Ff(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Z7=qb(0,.5,kb),X7=qb(.5,.95,ze);function qb(e,t,n){return r=>r<e?0:r>t?1:n(lo(e,t,r))}function Bf(e,t){e.min=t.min,e.max=t.max}function it(e,t){Bf(e.x,t.x),Bf(e.y,t.y)}function If(e,t,n,r,o){return e-=t,e=Wi(e,1/n,r),o!==void 0&&(e=Wi(e,1/o,r)),e}function J7(e,t=0,n=1,r=.5,o,i=e,a=e){if(St.test(t)&&(t=parseFloat(t),t=Ee(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Ee(i.min,i.max,r);e===i&&(s-=t),e.min=If(e.min,t,n,s,o),e.max=If(e.max,t,n,s,o)}function Lf(e,t,[n,r,o],i,a){J7(e,t[n],t[r],t[o],t.scale,i,a)}const Q7=["x","scaleX","originX"],eC=["y","scaleY","originY"];function Vf(e,t,n,r){Lf(e.x,t,Q7,n?n.x:void 0,r?r.x:void 0),Lf(e.y,t,eC,n?n.y:void 0,r?r.y:void 0)}function Of(e){return e.translate===0&&e.scale===1}function Zb(e){return Of(e.x)&&Of(e.y)}function tC(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 Xb(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 Nf(e){return rt(e.x)/rt(e.y)}class nC{constructor(){this.members=[]}add(t){Bu(this.members,t),t.scheduleRender()}remove(t){if(Iu(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 Kf(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:c,rotateX:f,rotateY:p,skewX:h,skewY:b}=n;d&&(r=`perspective(${d}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),b&&(r+=`skewY(${b}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const rC=(e,t)=>e.depth-t.depth;class oC{constructor(){this.children=[],this.isDirty=!1}add(t){Bu(this.children,t),this.isDirty=!0}remove(t){Iu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rC),this.isDirty=!1,this.children.forEach(t)}}function iC(e,t){const n=on.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(cn(r),e(i-t))};return Le.read(r,!0),()=>cn(r)}function aC(e){window.MotionDebug&&window.MotionDebug.record(e)}function sC(e){return e instanceof SVGElement&&e.tagName!=="svg"}function lC(e,t,n){const r=We(e)?e:uo(e);return r.start(Fu("",r,t,n)),r.animation}const bs=["","X","Y","Z"],uC={visibility:"hidden"},jf=1e3;let cC=0;const vn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ms(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Jb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=cC++,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,vn.totalNodes=vn.resolvedTargetDeltas=vn.recalculatedProjection=0,this.nodes.forEach(pC),this.nodes.forEach(vC),this.nodes.forEach(yC),this.nodes.forEach(hC),aC(vn)},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 oC)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Lu),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=sC(a),this.instance=a;const{layoutId:l,layout:d,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(d||l)&&(this.isLayoutDirty=!0),e){let f;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=iC(p,250),mi.hasAnimatedSinceResize&&(mi.hasAnimatedSinceResize=!1,this.nodes.forEach(zf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||d)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||DC,{onLayoutAnimationStart:y,onLayoutAnimationComplete:$}=c.getProps(),C=!this.targetLayout||!Xb(this.targetLayout,b)||h,w=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,w);const E={...Du(g,"layout"),onPlay:y,onComplete:$};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||zf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}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,cn(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($C),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 c=0;c<this.path.length;c++){const f=this.path[c];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 d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_f);return}this.isUpdating||this.nodes.forEach(mC),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(gC),this.nodes.forEach(dC),this.nodes.forEach(fC),this.clearAllSnapshots();const s=on.now();je.delta=un(0,1e3/60,s-je.timestamp),je.timestamp=s,je.isProcessing=!0,is.update.process(je),is.preRender.process(je),is.render.process(je),je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,du.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(bC),this.sharedNodes.forEach(xC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Le.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=Ae(),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&&!Zb(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,c=d!==this.prevTransformTemplateValue;a&&(s||gn(this.latestValues)||c)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),EC(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Ae();const s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(tn(s.x,l.offset.x),tn(s.y,l.offset.y)),s}removeElementScroll(a){const s=Ae();it(s,a);for(let l=0;l<this.path.length;l++){const d=this.path[l],{scroll:c,options:f}=d;if(d!==this.root&&c&&f.layoutScroll){if(c.isRoot){it(s,a);const{scroll:p}=this.root;p&&(tn(s.x,-p.offset.x),tn(s.y,-p.offset.y))}tn(s.x,c.offset.x),tn(s.y,c.offset.y)}}return s}applyTransform(a,s=!1){const l=Ae();it(l,a);for(let d=0;d<this.path.length;d++){const c=this.path[d];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&rr(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),gn(c.latestValues)&&rr(l,c.latestValues)}return gn(this.latestValues)&&rr(l,this.latestValues),l}removeTransform(a){const s=Ae();it(s,a);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!gn(d.latestValues))continue;fl(d.latestValues)&&d.updateSnapshot();const c=Ae(),f=d.measurePageBox();it(c,f),Vf(s,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,c)}return gn(this.latestValues)&&Vf(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!==je.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 d=!!this.resumingFrom||this!==l;if(!(a||d&&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=je.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ae(),this.relativeTargetOrigin=Ae(),Jr(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ae(),this.targetWithTransforms=Ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),P7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):it(this.target,this.layout.layoutBox),Ub(this.target,this.targetDelta)):it(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=Ae(),this.relativeTargetOrigin=Ae(),Jr(this.relativeTargetOrigin,this.target,h.target),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||fl(this.parent.latestValues)||zb(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 d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===je.timestamp&&(d=!1),d)return;const{layout:c,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||!(c||f))return;it(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;I7(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=Ae());const{target:b}=s;if(!b){this.projectionTransform&&(this.projectionDelta=nr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=nr(),this.projectionDeltaWithTransform=nr());const g=this.projectionTransform;Xr(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=Kf(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==p||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),vn.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,d=l?l.latestValues:{},c={...this.latestValues},f=nr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=Ae(),h=l?l.source:void 0,b=this.layout?this.layout.source:void 0,g=h!==b,y=this.getStack(),$=!y||y.members.length<=1,C=!!(g&&!$&&this.options.crossfade===!0&&!this.path.some(CC));this.animationProgress=0;let w;this.mixTargetDelta=E=>{const P=E/1e3;Uf(f.x,a.x,P),Uf(f.y,a.y,P),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jr(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wC(this.relativeTarget,this.relativeTargetOrigin,p,P),w&&tC(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Ae()),it(w,this.relativeTarget)),g&&(this.animationValues=c,q7(c,d,this.latestValues,P,C,$)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},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&&(cn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Le.update(()=>{mi.hasAnimatedSinceResize=!0,this.currentAnimation=lC(0,jf,{...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(jf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:d,latestValues:c}=a;if(!(!s||!l||!d)){if(this!==a&&this.layout&&d&&Qb(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Ae();const f=rt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const p=rt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}it(s,l),rr(s,c),Xr(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new nC),this.sharedNodes.get(a).add(s);const d=s.options.initialPromotionConfig;s.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.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 d=this.getStack();d&&d.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}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const d={};l.z&&ms("z",a,d,this.animationValues);for(let c=0;c<bs.length;c++)ms(`rotate${bs[c]}`,a,d,this.animationValues),ms(`skew${bs[c]}`,a,d,this.animationValues);a.render();for(const c in d)a.setStaticValue(c,d[c]),this.animationValues&&(this.animationValues[c]=d[c]);a.scheduleRender()}getProjectionStyles(a){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return uC;const d={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=hi(a==null?void 0:a.pointerEvents)||"",d.transform=c?c(this.latestValues,""):"none",d;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=hi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!gn(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),d.transform=Kf(this.projectionDeltaWithTransform,this.treeScale,p),c&&(d.transform=c(p,d.transform));const{x:h,y:b}=this.projectionDelta;d.transformOrigin=`${h.origin*100}% ${b.origin*100}% 0`,f.animationValues?d.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:d.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const g in ji){if(p[g]===void 0)continue;const{correct:y,applyTo:$}=ji[g],C=d.transform==="none"?p[g]:y(p[g],f);if($){const w=$.length;for(let E=0;E<w;E++)d[$[E]]=C}else d[g]=C}return this.options.layoutId&&(d.pointerEvents=f===this?hi(a==null?void 0:a.pointerEvents)||"":"none"),d}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(_f),this.root.sharedNodes.clear()}}}function dC(e){e.updateLayout()}function fC(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"?st(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=rt(p);p.min=r[f].min,p.max=p.min+h}):Qb(i,n.layoutBox,r)&&st(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=rt(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=nr();Xr(s,r,n.layoutBox);const l=nr();a?Xr(l,e.applyTransform(o,!0),n.measuredBox):Xr(l,r,n.layoutBox);const d=!Zb(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const b=Ae();Jr(b,n.layoutBox,p.layoutBox);const g=Ae();Jr(g,r,h.layoutBox),Xb(b,g)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=b,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:d,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function pC(e){vn.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 hC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function bC(e){e.clearSnapshot()}function _f(e){e.clearMeasurements()}function mC(e){e.isLayoutDirty=!1}function gC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vC(e){e.resolveTargetDelta()}function yC(e){e.calcProjection()}function $C(e){e.resetSkewAndRotation()}function xC(e){e.removeLeadSnapshot()}function Uf(e,t,n){e.translate=Ee(t.translate,0,n),e.scale=Ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hf(e,t,n,r){e.min=Ee(t.min,n.min,r),e.max=Ee(t.max,n.max,r)}function wC(e,t,n,r){Hf(e.x,t.x,n.x,r),Hf(e.y,t.y,n.y,r)}function CC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const DC={duration:.45,ease:[.4,0,.1,1]},Gf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Wf=Gf("applewebkit/")&&!Gf("chrome/")?Math.round:ze;function Yf(e){e.min=Wf(e.min),e.max=Wf(e.max)}function EC(e){Yf(e.x),Yf(e.y)}function Qb(e,t,n){return e==="position"||e==="preserve-aspect"&&!cl(Nf(t),Nf(n),.2)}const PC=Jb({attachResizeListener:(e,t)=>Ot(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gs={current:void 0},em=Jb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gs.current){const e=new PC({});e.mount(window),e.setOptions({layoutScroll:!0}),gs.current=e}return gs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),SC={pan:{Feature:z7},drag:{Feature:_7,ProjectionNode:em,MeasureLayout:Wb}},hl={current:null},tm={current:!1};function TC(){if(tm.current=!0,!!su)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hl.current=e.matches;e.addListener(t),t()}else hl.current=!1}function AC(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(We(i))e.addValue(o,i),Gi(r)&&r.add(o),process.env.NODE_ENV==="development"&&Vu(i.version==="11.1.7",`Attempting to mix Framer Motion versions ${i.version} with 11.1.7 may not work as expected.`);else if(We(a))e.addValue(o,uo(i,{owner:e})),Gi(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,uo(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const qf=new WeakMap,MC=[...pb,He,dn],kC=e=>MC.find(fb(e)),nm=Object.keys(so),RC=nm.length,Zf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],FC=pu.length;function rm(e){if(e)return e.options.allowProjection!==!1?e.projection:rm(e.parent)}class BC{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:a},s={}){this.resolveKeyframes=(p,h,b,g)=>new this.KeyframeResolver(p,h,b,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Eu,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=()=>Le.render(this.render,!1,!0);const{latestValues:l,renderState:d}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=ca(n),this.isVariantNode=Nh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const h=f[p];l[p]!==void 0&&We(h)&&(h.set(l[p],!1),Gi(c)&&c.add(p))}}mount(t){this.current=t,qf.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)),tm.current||TC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hl.current,process.env.NODE_ENV!=="production"&&Vu(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(){var t;qf.delete(this.current),this.projection&&this.projection.unmount(),cn(this.notifyUpdate),cn(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)(t=this.features[n])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,n){const r=Ln.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),n.owner&&n.stop()})}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?wo(!1,l):Tt(!1,l)}for(let l=0;l<RC;l++){const d=nm[l],{isEnabled:c,Feature:f,ProjectionNode:p,MeasureLayout:h}=so[d];p&&(a=p),c(n)&&(!this.features[d]&&f&&(this.features[d]=new f(this)),h&&(s=h))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,rm(this.parent));const{layoutId:l,layout:d,drag:c,dragConstraints:f,layoutScroll:p,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:d,alwaysMeasureLayout:!!c||f&&er(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"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):Ae()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[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<Zf.length;r++){const o=Zf[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=AC(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),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<FC;r++){const o=pu[r],i=this.props[o];(ao(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){const r=this.values.get(t);n!==r&&(r&&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=uo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(cb(o)||ub(o))?o=parseFloat(o):!kC(o)&&dn.test(n)&&(o=xb(t,n)),this.setBaseTarget(t,We(o)?o.get():o)),We(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const a=Cu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(o=a[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!We(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 Lu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class om extends BC{constructor(){super(...arguments),this.KeyframeResolver=wb}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]}}function IC(e){return window.getComputedStyle(e)}class LC extends om{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Ln.has(n)){const r=Su(n);return r&&r.default||0}else{const r=IC(t),o=(Uh(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Hb(t,n)}build(t,n,r,o){vu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return wu(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;We(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){qh(t,n,r,o)}}class VC extends om{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ln.has(n)){const r=Su(n);return r&&r.default||0}return n=Zh.has(n)?n:cu(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ae()}scrapeMotionValuesFromProps(t,n,r){return Jh(t,n,r)}build(t,n,r,o){$u(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Xh(t,n,r,o)}mount(t){this.isSVGTag=xu(t.tagName),super.mount(t)}}const im=(e,t)=>bu(e)?new VC(t,{enableHardwareAcceleration:!1}):new LC(t,{allowProjection:e!==u.Fragment,enableHardwareAcceleration:!0}),OC={layout:{ProjectionNode:em,MeasureLayout:Wb}},NC={...Nb,...sb,...SC,...OC},yr=jh((e,t)=>tb(e,t,NC,im)),KC=jh(tb);function am(){const e=u.useRef(!1);return lu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function jC(){const e=am(),[t,n]=u.useState(0),r=u.useCallback(()=>{e.current&&n(t+1)},[t]);return[u.useCallback(()=>Le.postRender(r),[r]),t]}class _C extends Sn.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 zC({children:e,isPresent:t}){const n=u.useId(),r=u.useRef(null),o=u.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=u.useContext(au);return u.useInsertionEffect(()=>{const{width:a,height:s,top:l,left:d}=o.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
104
- [data-motion-pop-id="${n}"] {
105
- position: absolute !important;
106
- width: ${a}px !important;
107
- height: ${s}px !important;
108
- top: ${l}px !important;
109
- left: ${d}px !important;
110
- }
111
- `),()=>{document.head.removeChild(c)}},[t]),S.jsx(_C,{isPresent:t,childRef:r,sizeRef:o,children:Sn.cloneElement(e,{ref:r})})}const vs=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Qh(UC),l=u.useId(),d=u.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?[Math.random()]:[n]);return u.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[n]),Sn.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=S.jsx(zC,{isPresent:n,children:e})),S.jsx(la.Provider,{value:d,children:e})};function UC(){return new Map}function HC(e){return u.useEffect(()=>()=>e(),[])}const yn=e=>e.key||"";function GC(e,t){e.forEach(n=>{const r=yn(n);t.set(r,n)})}function WC(e){const t=[];return u.Children.forEach(e,n=>{u.isValidElement(n)&&t.push(n)}),t}const sm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{Tt(!o,"Replace exitBeforeEnter with mode='wait'");const s=u.useContext(hu).forceRender||jC()[0],l=am(),d=WC(e);let c=d;const f=u.useRef(new Map).current,p=u.useRef(c),h=u.useRef(new Map).current,b=u.useRef(!0);if(lu(()=>{b.current=!1,GC(d,h),p.current=c}),HC(()=>{b.current=!0,h.clear(),f.clear()}),b.current)return S.jsx(S.Fragment,{children:c.map(C=>S.jsx(vs,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:a,children:C},yn(C)))});c=[...c];const g=p.current.map(yn),y=d.map(yn),$=g.length;for(let C=0;C<$;C++){const w=g[C];y.indexOf(w)===-1&&!f.has(w)&&f.set(w,void 0)}return a==="wait"&&f.size&&(c=[]),f.forEach((C,w)=>{if(y.indexOf(w)!==-1)return;const E=h.get(w);if(!E)return;const P=g.indexOf(w);let k=C;if(!k){const N=()=>{f.delete(w);const v=Array.from(h.keys()).filter(L=>!y.includes(L));if(v.forEach(L=>h.delete(L)),p.current=d.filter(L=>{const F=yn(L);return F===w||v.includes(F)}),!f.size){if(l.current===!1)return;s(),r&&r()}};k=S.jsx(vs,{isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:i,mode:a,children:E},yn(E)),f.set(w,k)}c.splice(P,0,k)}),c=c.map(C=>{const w=C.key;return f.has(w)?C:S.jsx(vs,{isPresent:!0,presenceAffectsLayout:i,mode:a,children:C},yn(C))}),process.env.NODE_ENV!=="production"&&a==="wait"&&c.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.`),S.jsx(S.Fragment,{children:f.size?c:c.map(C=>u.cloneElement(C))})};function YC({children:e,features:t,strict:n=!1}){const[,r]=u.useState(!ys(t)),o=u.useRef(void 0);if(!ys(t)){const{renderer:i,...a}=t;o.current=i,el(a)}return u.useEffect(()=>{ys(t)&&t().then(({renderer:i,...a})=>{el(a),o.current=i,r(!0)})},[]),S.jsx(uu.Provider,{value:{renderer:o.current,strict:n},children:e})}function ys(e){return typeof e=="function"}const qC={renderer:im,...Nb,...sb};function ZC(e){const[t,n]=Rh(e,Zc.variantKeys),{as:r,children:o,className:i,content:a,classNames:s,...l}=t,d=r||"span",c=u.useMemo(()=>{var g;return((g=String(a))==null?void 0:g.length)===1||(e==null?void 0:e.isOneChar)},[a,e==null?void 0:e.isOneChar]),f=u.useMemo(()=>{var g;return((g=String(a))==null?void 0:g.length)===0},[a]),p=sr(s==null?void 0:s.badge,i),h=u.useMemo(()=>Zc({...n,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:c,isDot:f}),[Sp(n),c,f]),b=()=>({className:h.badge({class:p}),"data-invisible":e.isInvisible,...l});return{Component:d,children:o,content:a,slots:h,classNames:s,disableAnimation:e==null?void 0:e.disableAnimation,isInvisible:e==null?void 0:e.isInvisible,getBadgeProps:b}}var lm=aa((e,t)=>{const{Component:n,children:r,content:o,slots:i,classNames:a,getBadgeProps:s}=ZC({...e});return S.jsxs("div",{className:i.base({class:a==null?void 0:a.base}),children:[r,S.jsx(n,{ref:t,...s(),children:o})]})});lm.displayName="NextUI.Badge";var XC=lm;const JC=_.styled.div`
103
+ `;function Pc({children:e,isGrid:r,renderCount:t}){return p.jsx(Tc,{isGrid:r,max:0,renderCount:t??void 0,children:e})}function Rc(e){const[r,t]=na(e,Zo.variantKeys),{as:o,children:n,className:s,content:i,classNames:l,...u}=r,g=o||"span",b=d.useMemo(()=>{var E;return((E=String(i))==null?void 0:E.length)===1||(e==null?void 0:e.isOneChar)},[i,e==null?void 0:e.isOneChar]),y=d.useMemo(()=>{var E;return((E=String(i))==null?void 0:E.length)===0},[i]),h=or(l==null?void 0:l.badge,s),v=d.useMemo(()=>Zo({...t,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:b,isDot:y}),[Sn(t),b,y]),x=()=>({className:v.badge({class:h}),"data-invisible":e.isInvisible,...u});return{Component:g,children:n,content:i,slots:v,classNames:l,disableAnimation:e==null?void 0:e.disableAnimation,isInvisible:e==null?void 0:e.isInvisible,getBadgeProps:x}}var ca=qr((e,r)=>{const{Component:t,children:o,content:n,slots:s,classNames:i,getBadgeProps:l}=Rc({...e});return p.jsxs("div",{className:s.base({class:i==null?void 0:i.base}),children:[o,p.jsx(t,{ref:r,...l(),children:n})]})});ca.displayName="NextUI.Badge";var Oc=ca;const jc=m.styled.div`
112
104
  position: relative;
113
105
  display: inline-flex;
114
106
  flex-shrink: 0;
115
- `,QC=_.styled.div`
107
+ `,Mc=m.styled.div`
116
108
  position: absolute;
117
109
  z-index: 2;
118
110
 
119
- 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"]}};
111
+ transform: ${({placement:e})=>{const r={"top-right":"translate(50%, -50%)","bottom-right":"translate(50%, 50%)","bottom-left":"translate(-50%, 50%)","top-left":"translate(-50%, -50%)"};return e&&r[e]?r[e]:r["top-right"]}};
120
112
 
121
- ${({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"]}};
122
- `,eD=_.styled(XC)`
113
+ ${({placement:e,shape:r})=>{const t={rectangle:"5%",circle:"10%"};let o=t.rectangle;r&&t[r]&&(o=t[r]);const n={"top-right":{top:o,right:o},"bottom-right":{bottom:o,right:o},"top-left":{top:o,left:o},"bottom-left":{bottom:o,left:o}};return e&&n[e]?n[e]:n["top-right"]}};
114
+ `,_c=m.styled(Oc)`
123
115
  display: flex;
124
116
  flex-wrap: wrap;
125
117
  place-content: center;
@@ -129,75 +121,59 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
129
121
  padding: 0 0.25rem;
130
122
  font-weight: 400;
131
123
  user-select: none;
132
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
124
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
133
125
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
134
126
  white-space: nowrap;
135
127
 
136
- ${({size:e,content:t,isOneChar:n,isDot:r})=>{var s;const o={sm:"1rem",md:"1.25rem",lg:"1.5rem;"},i=((s=String(t))==null?void 0:s.length)===1||n;let a=o.md;return e&&o[e]&&(a=o[e]),!t||r?"width: 0.875rem; height: 0.875rem;":i?`width: ${a}; height: ${a};`:`min-width: ${a}; height: ${a};`}}
128
+ ${({size:e,content:r,isOneChar:t,isDot:o})=>{var l;const n={sm:"1rem",md:"1.25rem",lg:"1.5rem;"},s=((l=String(r))==null?void 0:l.length)===1||t;let i=n.md;return e&&n[e]&&(i=n[e]),!r||o?"width: 0.875rem; height: 0.875rem;":s?`width: ${i}; height: ${i};`:`min-width: ${i}; height: ${i};`}}
137
129
 
138
- font-size: ${({size:e,content:t,isDot:n})=>{const r={sm:"0.75rem",md:"0.875rem",lg:"0.875rem"};if(typeof t=="string"&&t.length>1||n)return r.sm;let o=r.md;return e&&r[e]&&(o=r[e]),o}};
130
+ font-size: ${({size:e,content:r,isDot:t})=>{const o={sm:"0.75rem",md:"0.875rem",lg:"0.875rem"};if(typeof r=="string"&&r.length>1||t)return o.sm;let n=o.md;return e&&o[e]&&(n=o[e]),n}};
139
131
 
140
- background: ${({variant:e,theme:t})=>{var n,r,o,i,a;switch(e){case"flat":return`color-mix(
132
+ background: ${({variant:e,theme:r})=>{var t,o,n,s,i;switch(e){case"flat":return`color-mix(
141
133
  in srgb,
142
- ${((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??x.colors.slate[800]},
134
+ ${((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[800])??c.colors.slate[800]},
143
135
  transparent 45%
144
- )`;case"faded":return`${((o=t==null?void 0:t.colors)==null?void 0:o.white)??x.colors.white}`;case"solid":case"shadow":default:return`${((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[800])??x.colors.slate[800]}`}}};
136
+ )`;case"faded":return`${((n=r==null?void 0:r.colors)==null?void 0:n.white)??c.colors.white}`;case"solid":case"shadow":default:return`${((i=(s=r==null?void 0:r.colors)==null?void 0:s.slate)==null?void 0:i[800])??c.colors.slate[800]}`}}};
145
137
 
146
- color: ${({variant:e,theme:t})=>{var n,r,o;return e==="faded"?`${((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??x.colors.slate[800]}`:`${((o=t==null?void 0:t.colors)==null?void 0:o.white)??x.colors.white}`}};
138
+ color: ${({variant:e,theme:r})=>{var t,o,n;return e==="faded"?`${((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[800])??c.colors.slate[800]}`:`${((n=r==null?void 0:r.colors)==null?void 0:n.white)??c.colors.white}`}};
147
139
 
148
- border: ${({showOutline:e,variant:t,theme:n})=>{var r,o,i;return t==="faded"?`2px solid ${((o=(r=n==null?void 0:n.colors)==null?void 0:r.slate)==null?void 0:o[800])??x.colors.slate[800]}`:e?`2px solid ${((i=n==null?void 0:n.colors)==null?void 0:i.white)??x.colors.white}`:"none"}};
140
+ border: ${({showOutline:e,variant:r,theme:t})=>{var o,n,s;return r==="faded"?`2px solid ${((n=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:n[800])??c.colors.slate[800]}`:e?`2px solid ${((s=t==null?void 0:t.colors)==null?void 0:s.white)??c.colors.white}`:"none"}};
149
141
 
150
- box-shadow: ${({variant:e,theme:t})=>{var n,r,o,i;return e==="shadow"?`rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
142
+ box-shadow: ${({variant:e,theme:r})=>{var t,o,n,s;return e==="shadow"?`rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
151
143
  color-mix(
152
144
  in srgb,
153
- ${((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??x.colors.slate[800]},
145
+ ${((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[800])??c.colors.slate[800]},
154
146
  transparent 60%
155
147
  )
156
148
  0px 10px 15px -3px,
157
149
  color-mix(
158
150
  in srgb,
159
- ${((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[800])??x.colors.slate[800]},
151
+ ${((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[800])??c.colors.slate[800]},
160
152
  transparent 60%
161
153
  )
162
154
  0px 4px 6px -4px`:"none"}};
163
- `,tD={hidden:{opacity:0,transform:"scale(0)"},show:{opacity:1,transform:"scale(1)"}};function nD({children:e,isInvisible:t,disableAnimation:n,placement:r,shape:o,...i}){const a=u.useId(),s=n?{duration:0}:{type:"spring",bounce:.3};return S.jsxs(JC,{children:[e,S.jsx(QC,{placement:r,shape:o,children:S.jsx(sm,{children:!t&&S.jsx(yr.div,{variants:tD,initial:n?"show":"hidden",transition:s,animate:"show",exit:"hidden",children:S.jsx(eD,{...i,isInvisible:t,showOutline:i.showOutline??!0})},`badge-${a}`)})})]})}function rD({children:e,...t}){return S.jsx("span",{...t,"aria-hidden":"true",children:e??S.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.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"}),S.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"}),S.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 oD(e,t){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,...l}=e,d={};n!=="a"&&(d={role:"link",tabIndex:s?void 0:0});let{focusableProps:c}=mr(e,t),{pressProps:f,isPressed:p}=sn({onPress:r,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),h=le(l,{labelable:!0,isLink:n==="a"}),b=X(c,f),g=bo();return{isPressed:p,linkProps:X(h,{...b,...d,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:y=>{var $;($=f.onClick)===null||$===void 0||$.call(f,y),a&&(a(y),console.warn("onClick is deprecated, please use onPress")),!g.isNative&&y.currentTarget instanceof HTMLAnchorElement&&y.currentTarget.href&&!y.isDefaultPrevented()&&ax(y.currentTarget,y)&&(y.preventDefault(),g.open(y.currentTarget,y))}})}}function um(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:f,href:p,target:h,rel:b,type:g="button"}=e,y;n==="button"?y={type:g,disabled:r}:y={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:p,target:n==="a"?h:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?b:void 0};let{pressProps:$,isPressed:C}=sn({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:w}=mr(e,t);c&&(w.tabIndex=r?-1:w.tabIndex);let E=X(w,$,le(e,{labelable:!0}));return{isPressed:C,buttonProps:X(y,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:P=>{f&&(f(P),console.warn("onClick is deprecated, please use onPress"))}})}}function iD(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=um({...e,onPress:an(t.toggle,e.onPress)},n);return{isPressed:o,buttonProps:X(i,{"aria-pressed":r})}}const cm=7e3;let Qr=null;function gi(e,t="assertive",n=cm){Qr||(Qr=new sD),Qr.announce(e,t,n)}function aD(e){Qr&&Qr.clear(e)}class sD{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=cm){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 Ou(e,t,n){let{validationBehavior:r,focus:o}=e;be(()=>{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(uD(n.current))}});let i=Pe(()=>{t.resetValidation()}),a=Pe(l=>{var d;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!l.defaultPrevented&&n&&c&&cD(c)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),r0("keyboard")}l.preventDefault()}),s=Pe(()=>{t.commitValidation()});u.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let d=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",s),d==null||d.addEventListener("reset",i),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",s),d==null||d.removeEventListener("reset",i)}},[n,a,s,i,r])}function lD(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 uD(e){return{isInvalid:!e.validity.valid,validationDetails:lD(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function cD(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const dm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},fm={...dm,customError:!0,valid:!1},qn={isInvalid:!1,validationDetails:dm,validationErrors:[]},dD=u.createContext({}),co="__formValidationState"+Date.now();function $r(e){if(e[co]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[co];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return fD(e)}function fD(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:fm}:null,d=u.useMemo(()=>Xf(pD(a,o)),[a,o]);i!=null&&i.validationDetails.valid&&(i=null);let c=u.useContext(dD),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(F=>bl(c[F])):bl(c[r]):[],[c,r]),[p,h]=u.useState(c),[b,g]=u.useState(!1);c!==p&&(h(c),g(!1));let y=u.useMemo(()=>Xf(b?[]:f),[b,f]),$=u.useRef(qn),[C,w]=u.useState(qn),E=u.useRef(qn),P=()=>{if(!k)return;N(!1);let F=d||i||$.current;$s(F,E.current)||(E.current=F,w(F))},[k,N]=u.useState(!1);return u.useEffect(P),{realtimeValidation:l||y||d||i||qn,displayValidation:s==="native"?l||y||C:l||y||d||i||C,updateValidation(F){s==="aria"&&!$s(C,F)?w(F):$.current=F},resetValidation(){let F=qn;$s(F,E.current)||(E.current=F,w(F)),s==="native"&&N(!1),g(!0)},commitValidation(){s==="native"&&N(!0),g(!0)}}}function bl(e){return e?Array.isArray(e)?e:[e]:[]}function pD(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return bl(n)}return[]}function Xf(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:fm}:null}function $s(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 pm(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:a,children:s,"aria-label":l,"aria-labelledby":d,validationState:c="valid",isInvalid:f}=e,p=k=>{k.stopPropagation(),t.setSelected(k.target.checked)},h=s!=null,b=l!=null||d!=null;!h&&!b&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:g,isPressed:y}=sn({isDisabled:r}),{pressProps:$,isPressed:C}=sn({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:w}=mr(e,n),E=X(g,w),P=le(e,{labelable:!0});return mo(n,t.isSelected,t.setSelected),{labelProps:X($,{onClick:k=>k.preventDefault()}),inputProps:X(P,{"aria-invalid":f||c==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:p,disabled:r,...i==null?{}:{value:i},name:a,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:y||C,isDisabled:r,isReadOnly:o,isInvalid:f||c==="invalid"}}function Do(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=_e(t);let a=_e(),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=An({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function hm(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:a}=Do(e),s=rn([!!t,!!n,r,o]),l=rn([!!t,!!n,r,o]);return a=X(a,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:s},errorMessageProps:{id:l}}}function ha(e={}){let{isReadOnly:t}=e,[n,r]=bt(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 bm(e,t,n){let r=$r({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:a}=r.displayValidation,{labelProps:s,inputProps:l,isSelected:d,isPressed:c,isDisabled:f,isReadOnly:p}=pm({...e,isInvalid:o},t,n);Ou(e,r,n);let{isIndeterminate:h,isRequired:b,validationBehavior:g="aria"}=e;return u.useEffect(()=>{n.current&&(n.current.indeterminate=!!h)}),{labelProps:s,inputProps:{...l,checked:d,"aria-required":b&&g==="aria"||void 0,required:b&&g==="native"},isSelected:d,isPressed:c,isDisabled:f,isReadOnly:p,isInvalid:o,validationErrors:i,validationDetails:a}}const hD=new WeakMap;function bD(e,t,n){const r=ha({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(y){y?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(y)}});let{name:o,descriptionId:i,errorMessageId:a,validationBehavior:s}=hD.get(t);var l;s=(l=e.validationBehavior)!==null&&l!==void 0?l:s;let{realtimeValidation:d}=$r({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),c=u.useRef(qn),f=()=>{t.setInvalid(e.value,d.isInvalid?d:c.current)};u.useEffect(f);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:d,h=s==="native"?t.displayValidation:p;var b;let g=bm({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(b=e.isRequired)!==null&&b!==void 0?b:t.isRequired,validationBehavior:s,[co]:{realtimeValidation:p,displayValidation:h,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(y){c.current=y,f()}}},r,n);return{...g,inputProps:{...g.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,i].filter(Boolean).join(" ")||void 0}}}var mm={};mm={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 gm={};gm={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 vm={};vm={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 ym={};ym={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 $m={};$m={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 xm={};xm={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 wm={};wm={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 Cm={};Cm={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 Dm={};Dm={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 Em={};Em={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 Pm={};Pm={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 Sm={};Sm={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 Tm={};Tm={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 Am={};Am={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 Mm={};Mm={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 km={};km={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 Rm={};Rm={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 Fm={};Fm={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 Bm={};Bm={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 Im={};Im={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 Lm={};Lm={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 Vm={};Vm={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 Om={};Om={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 Nm={};Nm={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 Km={};Km={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 jm={};jm={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 _m={};_m={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 zm={};zm={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 Um={};Um={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 Hm={};Hm={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 Gm={};Gm={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 Wm={};Wm={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 Ym={};Ym={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 qm={};qm={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 ml(e){return ui()?e.altKey:e.ctrlKey}function Zn(e){return Ut()?e.metaKey:e.ctrlKey}const mD=1e3;function gD(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=u.useRef({search:"",timeout:null}).current,i=a=>{let s=vD(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=""},mD)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function vD(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Nu(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:d=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:h=r,linkBehavior:b="action"}=e,{direction:g}=Ve(),y=bo(),$=F=>{if(F.altKey&&F.key==="Tab"&&F.preventDefault(),!r.current.contains(F.target))return;const A=(H,D)=>{if(H!=null){if(t.isLink(H)&&b==="selection"&&l&&!ml(F)){Wt.flushSync(()=>{t.setFocusedKey(H,D)});let O=h.current.querySelector(`[data-key="${CSS.escape(H.toString())}"]`);y.open(O,F);return}if(t.setFocusedKey(H,D),t.isLink(H)&&b==="override")return;F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(H):l&&!ml(F)&&t.replaceSelection(H)}};switch(F.key){case"ArrowDown":if(n.getKeyBelow){var B,R;F.preventDefault();let H=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n);H==null&&i&&(H=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n,t.focusedKey)),A(H)}break;case"ArrowUp":if(n.getKeyAbove){var I,K;F.preventDefault();let H=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(I=n.getLastKey)===null||I===void 0?void 0:I.call(n);H==null&&i&&(H=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n,t.focusedKey)),A(H)}break;case"ArrowLeft":if(n.getKeyLeftOf){var V,T;F.preventDefault();let H=n.getKeyLeftOf(t.focusedKey);H==null&&i&&(H=g==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,t.focusedKey):(T=n.getLastKey)===null||T===void 0?void 0:T.call(n,t.focusedKey)),A(H,g==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var G,Y;F.preventDefault();let H=n.getKeyRightOf(t.focusedKey);H==null&&i&&(H=g==="rtl"?(G=n.getLastKey)===null||G===void 0?void 0:G.call(n,t.focusedKey):(Y=n.getFirstKey)===null||Y===void 0?void 0:Y.call(n,t.focusedKey)),A(H,g==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){F.preventDefault();let H=n.getFirstKey(t.focusedKey,Zn(F));t.setFocusedKey(H),Zn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(H):l&&t.replaceSelection(H)}break;case"End":if(n.getLastKey){F.preventDefault();let H=n.getLastKey(t.focusedKey,Zn(F));t.setFocusedKey(H),Zn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(H):l&&t.replaceSelection(H)}break;case"PageDown":if(n.getKeyPageBelow){F.preventDefault();let H=n.getKeyPageBelow(t.focusedKey);A(H)}break;case"PageUp":if(n.getKeyPageAbove){F.preventDefault();let H=n.getKeyPageAbove(t.focusedKey);A(H)}break;case"a":Zn(F)&&t.selectionMode==="multiple"&&s!==!0&&(F.preventDefault(),t.selectAll());break;case"Escape":F.preventDefault(),a||t.clearSelection();break;case"Tab":if(!f){if(F.shiftKey)r.current.focus();else{let H=Ze(r.current,{tabbable:!0}),D,O;do O=H.lastChild(),O&&(D=O);while(O);D&&!D.contains(document.activeElement)&&Pt(D)}break}}},C=u.useRef({top:0,left:0});Di(h,"scroll",p?null:()=>{C.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let w=F=>{if(t.isFocused){F.currentTarget.contains(F.target)||t.setFocused(!1);return}if(F.currentTarget.contains(F.target)){if(t.setFocused(!0),t.focusedKey==null){let R=K=>{K!=null&&(t.setFocusedKey(K),l&&t.replaceSelection(K))},I=F.relatedTarget;var A,B;I&&F.currentTarget.compareDocumentPosition(I)&Node.DOCUMENT_POSITION_FOLLOWING?R((A=t.lastSelectedKey)!==null&&A!==void 0?A:n.getLastKey()):R((B=t.firstSelectedKey)!==null&&B!==void 0?B:n.getFirstKey())}else p||(h.current.scrollTop=C.current.top,h.current.scrollLeft=C.current.left);if(!p&&t.focusedKey!=null){let R=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);R&&(R.contains(document.activeElement)||Pt(R),Si()==="keyboard"&&Ls(R,{containingElement:r.current}))}}},E=F=>{F.currentTarget.contains(F.relatedTarget)||t.setFocused(!1)};const P=u.useRef(o);u.useEffect(()=>{if(P.current){let F=null;o==="first"&&(F=n.getFirstKey()),o==="last"&&(F=n.getLastKey());let A=t.selectedKeys;if(A.size){for(let B of A)if(t.canSelectItem(B)){F=B;break}}t.setFocused(!0),t.setFocusedKey(F),F==null&&!c&&kn(r.current)}},[]);let k=u.useRef(t.focusedKey);u.useEffect(()=>{let F=Si();if(t.isFocused&&t.focusedKey!=null&&(h!=null&&h.current)){let A=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);A&&(F==="keyboard"||P.current)&&(p||qp(h.current,A),F!=="virtual"&&Ls(A,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&k.current!=null&&kn(r.current),k.current=t.focusedKey,P.current=!1},[p,h,t.focusedKey,t.isFocused,r]);let N={onKeyDown:$,onFocus:w,onBlur:E,onMouseDown(F){h.current===F.target&&F.preventDefault()}},{typeSelectProps:v}=gD({keyboardDelegate:n,selectionManager:t});d||(N=X(v,N));let L;return c||(L=t.focusedKey==null?0:-1),{collectionProps:{...N,tabIndex:L}}}function Ku(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:a,isDisabled:s,onAction:l,allowsDifferentPressOrigin:d,linkBehavior:c="action"}=e,f=bo(),p=T=>{if(T.pointerType==="keyboard"&&ml(T))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){f.open(r.current,T),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):T&&T.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||T&&(Zn(T)||T.pointerType==="touch"||T.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};u.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(a?a():document.activeElement!==r.current&&kn(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(T){T.target===r.current&&t.setFocusedKey(n)}}:s&&(h.onMouseDown=T=>{T.preventDefault()});let b=t.isLink(n)&&c==="override",g=t.isLink(n)&&c!=="selection"&&c!=="none",y=!s&&t.canSelectItem(n)&&!b,$=(l||g)&&!s,C=$&&(t.selectionBehavior==="replace"?!y:!y||t.isEmpty),w=$&&y&&t.selectionBehavior==="replace",E=C||w,P=u.useRef(null),k=E&&y,N=u.useRef(!1),v=u.useRef(!1),L=T=>{l&&l(),g&&f.open(r.current,T)},F={};o?(F.onPressStart=T=>{P.current=T.pointerType,N.current=k,T.pointerType==="keyboard"&&(!E||Qf())&&p(T)},d?(F.onPressUp=C?null:T=>{T.pointerType!=="keyboard"&&y&&p(T)},F.onPress=C?L:null):F.onPress=T=>{if(C||w&&T.pointerType!=="mouse"){if(T.pointerType==="keyboard"&&!Jf())return;L(T)}else T.pointerType!=="keyboard"&&y&&p(T)}):(F.onPressStart=T=>{P.current=T.pointerType,N.current=k,v.current=C,y&&(T.pointerType==="mouse"&&!C||T.pointerType==="keyboard"&&(!$||Qf()))&&p(T)},F.onPress=T=>{(T.pointerType==="touch"||T.pointerType==="pen"||T.pointerType==="virtual"||T.pointerType==="keyboard"&&E&&Jf()||T.pointerType==="mouse"&&v.current)&&(E?L(T):y&&p(T))}),h["data-key"]=n,F.preventFocusOnPress=i;let{pressProps:A,isPressed:B}=sn(F),R=w?T=>{P.current==="mouse"&&(T.stopPropagation(),T.preventDefault(),L(T))}:void 0,{longPressProps:I}=a0({isDisabled:!k,onLongPress(T){T.pointerType==="touch"&&(p(T),t.setSelectionBehavior("toggle"))}}),K=T=>{P.current==="touch"&&N.current&&T.preventDefault()},V=t.isLink(n)?T=>{Tn.isOpening||T.preventDefault()}:void 0;return{itemProps:X(h,y||C?A:{},k?I:{},{onDoubleClick:R,onDragStartCapture:K,onClick:V}),isPressed:B,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:y,hasAction:E}}function Jf(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Qf(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class ju{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(!Ci(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(!Ci(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 Zm(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i}=e,a=ru({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,l=u.useMemo(()=>i||new ju(n,s==="selection"?new Set:r,o,a),[i,n,r,o,a,s]),{collectionProps:d}=Nu({...e,ref:o,selectionManager:t,keyboardDelegate:l});return{listProps:d}}class yD{build(t,n){return this.context=n,ep(()=>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 d=l.getCollectionNode(i.props,this.context),c=t.index,f=d.next();for(;!f.done&&f.value;){let p=f.value;t.index=c;let h=p.key;h||(h=p.element?null:this.getKey(i,t,n,r));let g=[...this.getFullNode({...p,key:h,index:c,wrapper:$D(t.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${i.key}`:i.key,o)];for(let y of g){if(y.value=p.value||t.value,y.value&&this.cache.set(y.value,y),t.type&&y.type!==t.type)throw new Error(`Unsupported type <${xs(y.type)}> in <${xs(o.type)}>. Only <${xs(t.type)}> is supported.`);c++,yield y}f=d.next(g)}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:ep(function*(){if(!t.hasChildNodes)return;let l=0;for(let d of t.childNodes()){d.key!=null&&(d.key=`${s.key}${d.key}`),d.index=l;let c=a.getFullNode(d,a.getChildState(n,d),s.key,s);for(let f of c)l++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function ep(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 $D(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function xs(e){return e[0].toUpperCase()+e.slice(1)}function Xm(e,t,n){let r=u.useMemo(()=>new yD,[]),{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 ba(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function xD(e){return wD(e,0)}function wD(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function ws(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...tp(e,t),t],o=[...tp(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 tp(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const np=new WeakMap;function _u(e){let t=np.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(ba(o,e)):t++};return n(e),np.set(e,t),t}const ma=new WeakMap;function CD(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Jm(e,t){let n=ma.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${CD(t)}`}function DD(e,t,n){let r=le(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:a}=Zm({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=br({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=_e(e.id);ma.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:d,fieldProps:c}=Do({...e,id:l,labelElementType:"span"});return{labelProps:d,listBoxProps:X(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...X(c,a)})}}function ED(e,t,n){var r;let{key:o}=e,i=ma.get(t);var a;let s=(a=e.isDisabled)!==null&&a!==void 0?a:t.disabledKeys.has(o);var l;let d=(l=e.isSelected)!==null&&l!==void 0?l:t.selectionManager.isSelected(o);var c;let f=(c=e.shouldSelectOnPressUp)!==null&&c!==void 0?c: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 b;let g=(b=e.shouldUseVirtualFocus)!==null&&b!==void 0?b:i==null?void 0:i.shouldUseVirtualFocus;var y;let $=(y=e.isVirtualized)!==null&&y!==void 0?y:i==null?void 0:i.isVirtualized,C=rn(),w=rn(),E={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?d:void 0};Ut()&&Ol()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=C,E["aria-describedby"]=w);let P=t.collection.getItem(o);if($){let R=Number(P==null?void 0:P.index);E["aria-posinset"]=Number.isNaN(R)?void 0:R+1,E["aria-setsize"]=_u(t.collection)}let{itemProps:k,isPressed:N,isFocused:v,hasAction:L,allowsSelection:F}=Ku({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:$,shouldUseVirtualFocus:g,isDisabled:s,onAction:i!=null&&i.onAction?()=>{var R;return i==null||(R=i.onAction)===null||R===void 0?void 0:R.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:A}=Fe({isDisabled:s||!h,onHoverStart(){lr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),B=le(P==null?void 0:P.props,{isLink:!!(!(P==null||(r=P.props)===null||r===void 0)&&r.href)});return delete B.id,{optionProps:{...E,...X(B,k,A),id:Jm(t,o)},labelProps:{id:C},descriptionProps:{id:w},isFocused:v,isFocusVisible:v&&lr(),isSelected:d,isDisabled:s,isPressed:N,allowsSelection:F,hasAction:L}}function PD(e){let{heading:t,"aria-label":n}=e,r=_e();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Qm={};Qm={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var eg={};eg={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var tg={};tg={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var ng={};ng={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var rg={};rg={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var og={};og={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var ig={};ig={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var ag={};ag={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var sg={};sg={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var lg={};lg={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var ug={};ug={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var cg={};cg={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var dg={};dg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var fg={};fg={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var pg={};pg={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var hg={};hg={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var bg={};bg={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var mg={};mg={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var gg={};gg={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var vg={};vg={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var yg={};yg={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var $g={};$g={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var xg={};xg={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var wg={};wg={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Cg={};Cg={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Dg={};Dg={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Eg={};Eg={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Pg={};Pg={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Sg={};Sg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Tg={};Tg={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Ag={};Ag={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Mg={};Mg={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var kg={};kg={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Rg={};Rg={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function SD(e){return e&&e.__esModule?e.default:e}var Fg={};Fg={"ar-AE":Qm,"bg-BG":eg,"cs-CZ":tg,"da-DK":ng,"de-DE":rg,"el-GR":og,"en-US":ig,"es-ES":ag,"et-EE":sg,"fi-FI":lg,"fr-FR":ug,"he-IL":cg,"hr-HR":dg,"hu-HU":fg,"it-IT":pg,"ja-JP":hg,"ko-KR":bg,"lt-LT":mg,"lv-LV":gg,"nb-NO":vg,"nl-NL":yg,"pl-PL":$g,"pt-BR":xg,"pt-PT":wg,"ro-RO":Cg,"ru-RU":Dg,"sk-SK":Eg,"sl-SI":Pg,"sr-SP":Sg,"sv-SE":Tg,"tr-TR":Ag,"uk-UA":Mg,"zh-CN":kg,"zh-TW":Rg};function TD(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=_e(),{triggerProps:s,overlayProps:l}=y2({type:r},t,n),d=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()}},c=gr(SD(Fg),"@react-aria/menu"),{longPressProps:f}=a0({isDisabled:o||i!=="longPress",accessibilityDescription:c.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:d},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const Bg=new WeakMap;function AD(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=le(e,{labelable:!0}),{listProps:l}=Zm({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Bg.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:X(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...l,onKeyDown:d=>{d.key!=="Escape"&&l.onKeyDown(d)}})}}function Ig(e,t,n){var r;let{key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":s,onPressStart:l,onPressUp:d,onPress:c,onPressChange:f,onPressEnd:p,onHoverStart:h,onHoverChange:b,onHoverEnd:g,onKeyDown:y,onKeyUp:$,onFocus:C,onFocusChange:w,onBlur:E}=e,P=!!s;var k;let N=(k=e.isDisabled)!==null&&k!==void 0?k:t.disabledKeys.has(o);var v;let L=(v=e.isSelected)!==null&&v!==void 0?v:t.selectionManager.isSelected(o),F=Bg.get(t),A=e.onClose||F.onClose,B=P?()=>{}:e.onAction||F.onAction,R=bo(),I=se=>{B&&B(o),se.target instanceof HTMLAnchorElement&&R.open(se.target,se)},K="menuitem";P||(t.selectionManager.selectionMode==="single"?K="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(K="menuitemcheckbox"));let V=rn(),T=rn(),G=rn(),Y={"aria-disabled":N||void 0,role:K,"aria-label":e["aria-label"],"aria-labelledby":V,"aria-describedby":[T,G].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};t.selectionManager.selectionMode!=="none"&&!P&&(Y["aria-checked"]=L);let H=t.collection.getItem(o);a&&(Y["aria-posinset"]=H==null?void 0:H.index,Y["aria-setsize"]=_u(t.collection));let D=se=>{se.pointerType==="keyboard"&&I(se),l==null||l(se)},O=se=>{se.pointerType!=="keyboard"&&(I(se),!P&&A&&(i??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(o)))&&A()),d==null||d(se)},{itemProps:W,isFocused:J}=Ku({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:Q,isPressed:re}=sn({onPressStart:D,onPress:c,onPressUp:O,onPressChange:f,onPressEnd:p,isDisabled:N}),{hoverProps:z}=Fe({isDisabled:N,onHoverStart(se){lr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),h==null||h(se)},onHoverChange:b,onHoverEnd:g}),{keyboardProps:q}=zl({onKeyDown:se=>{if(se.repeat){se.continuePropagation();return}switch(se.key){case" ":!N&&t.selectionManager.selectionMode==="none"&&!P&&i!==!1&&A&&A();break;case"Enter":!N&&i!==!1&&!P&&A&&A();break;default:P||se.continuePropagation(),y==null||y(se);break}},onKeyUp:$}),{focusProps:te}=ea({onBlur:E,onFocus:C,onFocusChange:w}),ae=le(H.props,{isLink:!!(!(H==null||(r=H.props)===null||r===void 0)&&r.href)});return delete ae.id,{menuItemProps:{...Y,...X(ae,P?{onFocus:W.onFocus}:W,Q,z,q,te),tabIndex:W.tabIndex!=null?-1:void 0},labelProps:{id:V},descriptionProps:{id:T},keyboardShortcutProps:{id:G},isFocused:J,isSelected:L,isPressed:re,isDisabled:N}}function MD(e){let{heading:t,"aria-label":n}=e,r=_e();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}const ai=2,kD=50,RD=1e3,rp=Math.PI/12;function FD(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:o}=e,i=u.useRef(),a=u.useRef(),s=u.useRef(0),l=u.useRef(),d=u.useRef(),c=u.useRef(),f=u.useRef(2),[p,h]=u.useState(!1);Kl({ref:n,onResize:()=>{n.current&&(a.current=n.current.getBoundingClientRect(),c.current=void 0)}});let g=()=>{h(!1),f.current=ai},y=Ax();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||y!=="pointer"){g();return}a.current=$.getBoundingClientRect();let w=E=>{if(E.pointerType==="touch"||E.pointerType==="pen")return;let P=Date.now();if(P-s.current<kD)return;clearTimeout(l.current),clearTimeout(d.current);let{clientX:k,clientY:N}=E;if(!i.current){i.current={x:k,y:N};return}if(!a.current)return;if(c.current||(c.current=k>a.current.right?"left":"right"),k<C.getBoundingClientRect().left||k>C.getBoundingClientRect().right||N<C.getBoundingClientRect().top||N>C.getBoundingClientRect().bottom){g();return}let v=i.current.x,L=i.current.y,F=c.current==="right"?a.current.left-v:v-a.current.right,A=Math.atan2(L-a.current.top,F)+rp,B=Math.atan2(L-a.current.bottom,F)-rp,R=Math.atan2(L-N,c.current==="left"?-(k-v):k-v),I=R<A&&R>B;f.current=I?Math.min(f.current+1,ai):Math.max(f.current-1,0),f.current>=ai?h(!0):h(!1),s.current=P,i.current={x:k,y:N},I&&(l.current=setTimeout(()=>{g(),d.current=setTimeout(()=>{let K=document.elementFromPoint(k,N);K&&C.contains(K)&&K.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},RD))};return window.addEventListener("pointermove",w),()=>{window.removeEventListener("pointermove",w),clearTimeout(l.current),clearTimeout(d.current),f.current=ai}},[o,r,t,y,h,n])}function BD(e,t,n){let{parentMenuRef:r,submenuRef:o,type:i="menu",isDisabled:a,node:s,delay:l=200}=e,d=_e(),c=_e(),{direction:f}=Ve(),p=u.useRef(),h=u.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=void 0)},[p]),b=Pe(v=>{h(),t.open(v)}),g=Pe(()=>{h(),t.close()});be(()=>()=>{h()},[h]);let y=v=>{switch(v.key){case"ArrowLeft":f==="ltr"&&v.currentTarget.contains(v.target)&&(v.stopPropagation(),g(),n.current.focus());break;case"ArrowRight":f==="rtl"&&v.currentTarget.contains(v.target)&&(v.stopPropagation(),g(),n.current.focus());break;case"Escape":v.stopPropagation(),t.closeAll();break}},$={id:c,"aria-label":s.textValue,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:t.focusStrategy,onKeyDown:y}},C=v=>{switch(v.key){case"ArrowRight":a||(f==="ltr"?(t.isOpen||b("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?g():v.continuePropagation());break;case"ArrowLeft":a||(f==="rtl"?(t.isOpen||b("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?g():v.continuePropagation());break;case"Escape":t.closeAll();break;default:v.continuePropagation();break}},w=v=>{!a&&(v.pointerType==="virtual"||v.pointerType==="keyboard")&&b("first")},E=v=>{!a&&(v.pointerType==="touch"||v.pointerType==="mouse")&&b()},P=v=>{a||(v&&!t.isOpen?p.current||(p.current=setTimeout(()=>{b()},l)):v||h())},k=v=>{t.isOpen&&r.current.contains(v.relatedTarget)&&g()},N=v=>v!==n.current;return FD({menuRef:r,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:d,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:w,onPress:E,onHoverChange:P,onKeyDown:C,onBlur:k,isOpen:t.isOpen},submenuProps:$,popoverProps:{isNonModal:!0,disableFocusManagement:!0,shouldCloseOnInteractOutside:N}}}function zu(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:a="text",validationBehavior:s="aria"}=e,[l,d]=bt(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=mr(e,t),f=$r({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:b}=f.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:C}=hm({...e,isInvalid:p,errorMessage:e.errorMessage||h}),w=le(e,{labelable:!0});const E={type:a,pattern:e.pattern};return mo(t,l,d),Ou(e,f,t),u.useEffect(()=>{if(t.current instanceof ft(t.current).HTMLTextAreaElement){let P=t.current;Object.defineProperty(P,"defaultValue",{get:()=>P.value,set:()=>{},configurable:!0})}},[t]),{labelProps:g,inputProps:X(w,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:P=>d(P.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,...c,...y}),descriptionProps:$,errorMessageProps:C,isInvalid:p,validationErrors:h,validationDetails:b}}function op(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function ID(e,t,n){let r=Pe(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(!op())return;let f=n.current;return f.addEventListener("beforeinput",r,!1),()=>{f.removeEventListener("beforeinput",r,!1)}},[n,r]);let o=op()?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,...d}=zu(e,n),c=u.useRef(null);return{inputProps:X(a,{onBeforeInput:o,onCompositionStart(){let{value:f,selectionStart:p,selectionEnd:h}=n.current;c.current={value:f,selectionStart:p,selectionEnd:h}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:f,selectionStart:p,selectionEnd:h}=c.current;n.current.value=f,n.current.setSelectionRange(p,h),t.setInputValue(f)}}}),labelProps:i,descriptionProps:s,errorMessageProps:l,...d}}function LD(e){return e&&e.__esModule?e.default:e}var Lg={};Lg={"ar-AE":mm,"bg-BG":gm,"cs-CZ":vm,"da-DK":ym,"de-DE":$m,"el-GR":xm,"en-US":wm,"es-ES":Cm,"et-EE":Dm,"fi-FI":Em,"fr-FR":Pm,"he-IL":Sm,"hr-HR":Tm,"hu-HU":Am,"it-IT":Mm,"ja-JP":km,"ko-KR":Rm,"lt-LT":Fm,"lv-LV":Bm,"nb-NO":Im,"nl-NL":Lm,"pl-PL":Vm,"pt-BR":Om,"pt-PT":Nm,"ro-RO":Km,"ru-RU":jm,"sk-SK":_m,"sl-SI":zm,"sr-SP":Um,"sv-SE":Hm,"tr-TR":Gm,"uk-UA":Wm,"zh-CN":Ym,"zh-TW":qm};function VD(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:a,shouldFocusWrap:s,isReadOnly:l,isDisabled:d}=e,c=gr(LD(Lg),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:p}=TD({type:"listbox",isDisabled:d||l},t,n);ma.set(t,{id:p.id});let h=u.useMemo(()=>a||new ju(t.collection,t.disabledKeys,i),[a,t.collection,t.disabledKeys,i]),{collectionProps:b}=Nu({selectionManager:t.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),g=bo(),y=z=>{switch(z.key){case"Enter":case"Tab":if(t.isOpen&&z.key==="Enter"&&z.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(z.key==="Enter"){let q=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);q instanceof HTMLAnchorElement&&g.open(q,z)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&z.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}},$=z=>{var q;z.relatedTarget===(n==null?void 0:n.current)||!((q=r.current)===null||q===void 0)&&q.contains(z.relatedTarget)||(e.onBlur&&e.onBlur(z),t.setFocused(!1))},C=z=>{t.isFocused||(e.onFocus&&e.onFocus(z),t.setFocused(!0))},{isInvalid:w,validationErrors:E,validationDetails:P}=t.displayValidation,{labelProps:k,inputProps:N,descriptionProps:v,errorMessageProps:L}=zu({...e,onChange:t.setInputValue,onKeyDown:l?e.onKeyDown:an(t.isOpen&&b.onKeyDown,y,e.onKeyDown),onBlur:$,value:t.inputValue,onFocus:C,autoComplete:"off",validate:void 0,[co]:t},o),F=z=>{z.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},A=z=>{z.pointerType!=="touch"&&(o.current.focus(),t.toggle(z.pointerType==="keyboard"||z.pointerType==="virtual"?"first":null,"manual"))},B=An({id:f.id,"aria-label":c.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||k.id}),R=An({id:p.id,"aria-label":c.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||k.id}),I=u.useRef(0),K=z=>{if(d||l)return;if(z.timeStamp-I.current<500){z.preventDefault(),o.current.focus();return}let q=z.target.getBoundingClientRect(),te=z.changedTouches[0],ae=Math.ceil(q.left+.5*q.width),se=Math.ceil(q.top+.5*q.height);te.clientX===ae&&te.clientY===se&&(z.preventDefault(),o.current.focus(),t.toggle(null,"manual"),I.current=z.timeStamp)},V=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var T;let G=(T=V==null?void 0:V.parentKey)!==null&&T!==void 0?T:null;var Y;let H=(Y=t.selectionManager.focusedKey)!==null&&Y!==void 0?Y:null,D=u.useRef(G),O=u.useRef(H);u.useEffect(()=>{if(ui()&&V!=null&&H!==O.current){let z=t.selectionManager.isSelected(H),q=G!=null?t.collection.getItem(G):null,te=(q==null?void 0:q["aria-label"])||(typeof(q==null?void 0:q.rendered)=="string"?q.rendered:"")||"",ae=c.format("focusAnnouncement",{isGroupChange:q&&G!==D.current,groupTitle:te,groupCount:q?[...ba(q,t.collection)].length:0,optionText:V["aria-label"]||V.textValue||"",isSelected:z});gi(ae)}D.current=G,O.current=H});let W=_u(t.collection),J=u.useRef(W),Q=u.useRef(t.isOpen);u.useEffect(()=>{let z=t.isOpen!==Q.current&&(t.selectionManager.focusedKey==null||ui());if(t.isOpen&&(z||W!==J.current)){let q=c.format("countAnnouncement",{optionCount:W});gi(q)}J.current=W,Q.current=t.isOpen});let re=u.useRef(t.selectedKey);return u.useEffect(()=>{if(ui()&&t.isFocused&&t.selectedItem&&t.selectedKey!==re.current){let z=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",q=c.format("selectedAnnouncement",{optionText:z});gi(q)}re.current=t.selectedKey}),u.useEffect(()=>{if(t.isOpen)return iu([o.current,r.current])},[t.isOpen,o,r]),{labelProps:k,buttonProps:{...f,...B,excludeFromTabOrder:!0,onPress:F,onPressStart:A,isDisabled:d||l},inputProps:X(N,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":V?Jm(t,V.key):void 0,onTouchEnd:K,autoCorrect:"off",spellCheck:"false"}),listBoxProps:X(p,R,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:v,errorMessageProps:L,isInvalid:w,validationErrors:E,validationDetails:P}}var Vg={};Vg={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:"Календар",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 Ng={};Ng={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 Kg={};Kg={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 jg={};jg={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 _g={};_g={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={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 Ug={};Ug={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 Hg={};Hg={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 Gg={};Gg={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 Wg={};Wg={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 Yg={};Yg={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 qg={};qg={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 Zg={};Zg={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 Xg={};Xg={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 Jg={};Jg={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 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 ev={};ev={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 tv={};tv={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 nv={};nv={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 rv={};rv={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 ov={};ov={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 iv={};iv={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 av={};av={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 sv={};sv={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 lv={};lv={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 uv={};uv={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 cv={};cv={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 dv={};dv={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 fv={};fv={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 pv={};pv={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 hv={};hv={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 bv={};bv={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 mv={};mv={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 gv={};gv={Empty:"فارغ"};var vv={};vv={Empty:"Изпразни"};var yv={};yv={Empty:"Prázdné"};var $v={};$v={Empty:"Tom"};var xv={};xv={Empty:"Leer"};var wv={};wv={Empty:"Άδειο"};var Cv={};Cv={Empty:"Empty"};var Dv={};Dv={Empty:"Vacío"};var Ev={};Ev={Empty:"Tühjenda"};var Pv={};Pv={Empty:"Tyhjä"};var Sv={};Sv={Empty:"Vide"};var Tv={};Tv={Empty:"ריק"};var Av={};Av={Empty:"Prazno"};var Mv={};Mv={Empty:"Üres"};var kv={};kv={Empty:"Vuoto"};var Rv={};Rv={Empty:"空"};var Fv={};Fv={Empty:"비어 있음"};var Bv={};Bv={Empty:"Tuščias"};var Iv={};Iv={Empty:"Tukšs"};var Lv={};Lv={Empty:"Tom"};var Vv={};Vv={Empty:"Leeg"};var Ov={};Ov={Empty:"Pusty"};var Nv={};Nv={Empty:"Vazio"};var Kv={};Kv={Empty:"Vazio"};var jv={};jv={Empty:"Gol"};var _v={};_v={Empty:"Не заполнено"};var zv={};zv={Empty:"Prázdne"};var Uv={};Uv={Empty:"Prazen"};var Hv={};Hv={Empty:"Prazno"};var Gv={};Gv={Empty:"Tomt"};var Wv={};Wv={Empty:"Boş"};var Yv={};Yv={Empty:"Пусто"};var qv={};qv={Empty:"空"};var Zv={};Zv={Empty:"空白"};function OD(e){return e&&e.__esModule?e.default:e}var Xv={};Xv={"ar-AE":gv,"bg-BG":vv,"cs-CZ":yv,"da-DK":$v,"de-DE":xv,"el-GR":wv,"en-US":Cv,"es-ES":Dv,"et-EE":Ev,"fi-FI":Pv,"fr-FR":Sv,"he-IL":Tv,"hr-HR":Av,"hu-HU":Mv,"it-IT":kv,"ja-JP":Rv,"ko-KR":Fv,"lt-LT":Bv,"lv-LV":Iv,"nb-NO":Lv,"nl-NL":Vv,"pl-PL":Ov,"pt-BR":Nv,"pt-PT":Kv,"ro-RO":jv,"ru-RU":_v,"sk-SK":zv,"sl-SI":Uv,"sr-SP":Hv,"sv-SE":Gv,"tr-TR":Wv,"uk-UA":Yv,"zh-CN":qv,"zh-TW":Zv};function Jv(e){const t=u.useRef();let{value:n,textValue:r,minValue:o,maxValue:i,isDisabled:a,isReadOnly:s,isRequired:l,onIncrement:d,onIncrementPage:c,onDecrement:f,onDecrementPage:p,onDecrementToMin:h,onIncrementToMax:b}=e;const g=gr(OD(Xv),"@react-aria/spinbutton"),y=()=>clearTimeout(t.current);u.useEffect(()=>()=>y(),[]);let $=A=>{if(!(A.ctrlKey||A.metaKey||A.shiftKey||A.altKey||s))switch(A.key){case"PageUp":if(c){A.preventDefault(),c==null||c();break}case"ArrowUp":case"Up":d&&(A.preventDefault(),d==null||d());break;case"PageDown":if(p){A.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":f&&(A.preventDefault(),f==null||f());break;case"Home":h&&(A.preventDefault(),h==null||h());break;case"End":b&&(A.preventDefault(),b==null||b());break}},C=u.useRef(!1),w=()=>{C.current=!0},E=()=>{C.current=!1},P=r===""?g.format("Empty"):(r||`${n}`).replace("-","−");u.useEffect(()=>{C.current&&(aD("assertive"),gi(P,"assertive"))},[P]);const k=Pe(A=>{y(),d==null||d(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n<i)&&k(60)},A)}),N=Pe(A=>{y(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&N(60)},A)});let v=A=>{A.preventDefault()},{addGlobalListener:L,removeAllGlobalListeners:F}=hr();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":P,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":a||void 0,"aria-readonly":s||void 0,"aria-required":l||void 0,onKeyDown:$,onFocus:w,onBlur:E},incrementButtonProps:{onPressStart:()=>{k(400),L(window,"contextmenu",v)},onPressEnd:()=>{y(),F()},onFocus:w,onBlur:E},decrementButtonProps:{onPressStart:()=>{N(400),L(window,"contextmenu",v)},onPressEnd:()=>{y(),F()},onFocus:w,onBlur:E}}}function Qv(e){return e&&e.__esModule?e.default:e}var Uu={};Uu={"ar-AE":Vg,"bg-BG":Og,"cs-CZ":Ng,"da-DK":Kg,"de-DE":jg,"el-GR":_g,"en-US":zg,"es-ES":Ug,"et-EE":Hg,"fi-FI":Gg,"fr-FR":Wg,"he-IL":Yg,"hr-HR":qg,"hu-HU":Zg,"it-IT":Xg,"ja-JP":Jg,"ko-KR":Qg,"lt-LT":ev,"lv-LV":tv,"nb-NO":nv,"nl-NL":rv,"pl-PL":ov,"pt-BR":iv,"pt-PT":av,"ro-RO":sv,"ru-RU":lv,"sk-SK":uv,"sl-SI":cv,"sr-SP":dv,"sv-SE":fv,"tr-TR":pv,"uk-UA":hv,"zh-CN":bv,"zh-TW":mv};function ND(e,t,n){let{direction:r}=Ve(),o=u.useMemo(()=>u0(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 d=(l=window.event)===null||l===void 0?void 0:l.target,c=Ze(t.current,{tabbable:!0});if(d&&(c.currentNode=d,d=c.previousNode()),!d){let f;do f=c.lastChild(),f&&(d=f);while(f)}for(;d!=null&&d.hasAttribute("data-placeholder");){let f=c.previousNode();if(f&&f.hasAttribute("data-placeholder"))d=f;else break}d&&d.focus()},{pressProps:s}=sn({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){l.pointerType!=="mouse"&&a()}});return X(s,{onKeyDown:i})}const ey=new WeakMap,Cs="__role_"+Date.now(),KD="__focusManager_"+Date.now();function Hu(e,t,n){var r;let{isInvalid:o,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:d,errorMessageProps:c}=hm({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),f=u.useRef(null),{focusWithinProps:p}=br({...e,onFocusWithin(F){var A;f.current=t.value,(A=e.onFocus)===null||A===void 0||A.call(e,F)},onBlurWithin:F=>{var A;t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),(A=e.onBlur)===null||A===void 0||A.call(e,F)},onFocusWithinChange:e.onFocusChange}),h=gr(Qv(Uu),"@react-aria/datepicker"),b=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=t.maxGranularity==="hour"?"time":"date",y=t.value?h.format(b,{[g]:t.formatValue({month:"long"})}):"",$=Yp(y),C=e[Cs]==="presentation"?l["aria-describedby"]:[$["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=e[KD],E=u.useMemo(()=>w||u0(n),[w,n]),P=ND(t,n,e[Cs]==="presentation");ey.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:E});let k=u.useRef(e.autoFocus),N;e[Cs]==="presentation"?N={role:"presentation"}:N=X(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),u.useEffect(()=>{k.current&&E.focusFirst(),k.current=!1},[E]),mo(e.inputRef,t.value,t.setValue),Ou({...e,focus(){E.focusFirst()}},t,e.inputRef);let v={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||""};e.validationBehavior==="native"&&(v.type="text",v.hidden=!0,v.required=e.isRequired,v.onChange=()=>{});let L=le(e);return{labelProps:{...s,onClick:()=>{E.focusFirst()}},fieldProps:X(L,N,P,p,{onKeyDown(F){e.onKeyDown&&e.onKeyDown(F)},onKeyUp(F){e.onKeyUp&&e.onKeyUp(F)}}),inputProps:v,descriptionProps:d,errorMessageProps:c,isInvalid:o,validationErrors:i,validationDetails:a}}function jD(e,t,n){var r;let o=Hu(e,t,n);return o.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",o}function _D(){let{locale:e}=Ve(),t=_0(Qv(Uu),"@react-aria/datepicker");return u.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new zD(e,t)}},[e,t])}class zD{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function UD(e,t,n){let r=u.useRef(""),{locale:o}=Ve(),i=_D(),{ariaLabel:a,ariaLabelledBy:s,ariaDescribedBy:l,focusManager:d}=ey.get(t),c=e.isPlaceholder?"":e.text,f=u.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=ei({month:"long",timeZone:f.timeZone}),h=ei({hour:"numeric",hour12:f.hour12,timeZone:f.timeZone});if(e.type==="month"&&!e.isPlaceholder){let T=p.format(t.dateValue);c=T!==c?`${c} – ${T}`:T}else e.type==="hour"&&!e.isPlaceholder&&(c=h.format(t.dateValue));let{spinButtonProps:b}=Jv({value:e.value,textValue:c,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)}}),g=u.useMemo(()=>new nu(o,{maximumFractionDigits:0}),[o]),y=()=>{if(g.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let T=e.text.slice(0,-1),G=g.parse(T);T.length===0||G===0?t.clearSegment(e.type):t.setSegment(e.type,G),r.current=T}else e.type==="dayPeriod"&&t.clearSegment(e.type)},$=T=>{if(T.key==="a"&&(Ut()?T.metaKey:T.ctrlKey)&&T.preventDefault(),!(T.ctrlKey||T.metaKey||T.shiftKey||T.altKey))switch(T.key){case"Backspace":case"Delete":T.preventDefault(),T.stopPropagation(),y();break}},{startsWith:C}=z0({sensitivity:"base"}),w=ei({hour:"numeric",hour12:!0}),E=u.useMemo(()=>{let T=new Date;return T.setHours(0),w.formatToParts(T).find(G=>G.type==="dayPeriod").value},[w]),P=u.useMemo(()=>{let T=new Date;return T.setHours(12),w.formatToParts(T).find(G=>G.type==="dayPeriod").value},[w]),k=ei({year:"numeric",era:"narrow",timeZone:"UTC"}),N=u.useMemo(()=>{if(e.type!=="era")return[];let T=Xe(new Re(1,1,1),t.calendar),G=t.calendar.getEras().map(H=>{let D=T.set({year:1,month:1,day:1,era:H}).toDate("UTC"),W=k.formatToParts(D).find(J=>J.type==="era").value;return{era:H,formatted:W}}),Y=HD(G.map(H=>H.formatted));if(Y)for(let H of G)H.formatted=H.formatted.slice(Y);return G},[k,t.calendar,e.type]),v=T=>{if(t.isDisabled||t.isReadOnly)return;let G=r.current+T;switch(e.type){case"dayPeriod":if(C(E,T))t.setSegment("dayPeriod",0);else if(C(P,T))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let Y=N.find(H=>C(H.formatted,T));Y&&(t.setSegment("era",Y.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!g.isValidPartialNumber(G))return;let Y=g.parse(G),H=Y,D=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":Y>11&&(H=g.parse(T));break;case"h12":D=!1,Y>12&&(H=g.parse(T));break}e.value>=12&&Y>1&&(Y+=12)}else Y>e.maxValue&&(H=g.parse(T));if(isNaN(Y))return;let O=H!==0||D;O&&t.setSegment(e.type,H),+(Y+"0")>e.maxValue||G.length>=String(e.maxValue).length?(r.current="",O&&d.focusNext()):r.current=G;break}}},L=()=>{r.current="",Ls(n.current,{containingElement:to(n.current)}),window.getSelection().collapse(n.current)},F=u.useRef("");Di(n,"beforeinput",T=>{switch(T.preventDefault(),T.inputType){case"deleteContentBackward":case"deleteContentForward":g.isValidPartialNumber(e.text)&&!t.isReadOnly&&y();break;case"insertCompositionText":F.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:T.data!=null&&v(T.data);break}}),Di(n,"input",T=>{let{inputType:G,data:Y}=T;switch(G){case"insertCompositionText":n.current.textContent=F.current,(C(E,Y)||C(P,Y))&&v(Y);break}}),be(()=>{let T=n.current;return()=>{document.activeElement===T&&(d.focusPrevious()||d.focusNext())}},[n,d]);let A=pr()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},B=u.useMemo(()=>t.segments.find(T=>T.isEditable),[t.segments]);e!==B&&!t.isInvalid&&(l=void 0);let R=_e(),I=!t.isDisabled&&!t.isReadOnly&&e.isEditable,K=e.type==="literal"?"":i.of(e.type),V=An({"aria-label":`${K}${a?`, ${a}`:""}${s?", ":""}`,"aria-labelledby":s});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:X(b,V,{id:R,...A,"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:I,suppressContentEditableWarning:I,spellCheck:I?"false":void 0,autoCapitalize:I?"off":void 0,autoCorrect:I?"off":void 0,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:I?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!I?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:$,onFocus:L,style:{caretColor:"transparent"},onPointerDown(T){T.stopPropagation()},onMouseDown(T){T.stopPropagation()}})}}function HD(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 GD(e,t){let{role:n="dialog"}=e,r=rn();r=e["aria-label"]?void 0:r;let o=u.useRef(!1);return u.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){kn(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),kn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),kh(),{dialogProps:{...le(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function ty(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=le(e,{labelable:!0}),{labelProps:l,fieldProps:d}=Do({...e,labelElementType:"span"});t=pt(t,n,r);let c=(t-n)/(r-n),f=Ni(a);if(!i&&!o){let p=a.style==="percent"?c:t;o=f.format(p)}return{progressBarProps:X(s,{...d,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}function WD(e){let{progressBarProps:t,labelProps:n}=ty(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}var ny={};ny={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var ry={};ry={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var oy={};oy={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var iy={};iy={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var ay={};ay={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var sy={};sy={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var ly={};ly={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var uy={};uy={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var cy={};cy={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var dy={};dy={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var fy={};fy={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var py={};py={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var hy={};hy={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var by={};by={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var my={};my={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var gy={};gy={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var vy={};vy={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var yy={};yy={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var $y={};$y={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var xy={};xy={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var wy={};wy={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var Cy={};Cy={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var Dy={};Dy={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Ey={};Ey={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var Py={};Py={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var Sy={};Sy={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var Ty={};Ty={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var Ay={};Ay={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var My={};My={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var ky={};ky={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var Ry={};Ry={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var Fy={};Fy={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var By={};By={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var Iy={};Iy={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};function YD(e){return e&&e.__esModule?e.default:e}var Ly={};Ly={"ar-AE":ny,"bg-BG":ry,"cs-CZ":oy,"da-DK":iy,"de-DE":ay,"el-GR":sy,"en-US":ly,"es-ES":uy,"et-EE":cy,"fi-FI":dy,"fr-FR":fy,"he-IL":py,"hr-HR":hy,"hu-HU":by,"it-IT":my,"ja-JP":gy,"ko-KR":vy,"lt-LT":yy,"lv-LV":$y,"nb-NO":xy,"nl-NL":wy,"pl-PL":Cy,"pt-BR":Dy,"pt-PT":Ey,"ro-RO":Py,"ru-RU":Sy,"sk-SK":Ty,"sl-SI":Ay,"sr-SP":My,"sv-SE":ky,"tr-TR":Ry,"uk-UA":Fy,"zh-CN":By,"zh-TW":Iy};function qD(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:a,isReadOnly:s,isRequired:l,minValue:d,maxValue:c,autoFocus:f,label:p,formatOptions:h,onBlur:b=()=>{},onFocus:g,onFocusChange:y,onKeyDown:$,onKeyUp:C,description:w,errorMessage:E,isWheelDisabled:P,...k}=e,{increment:N,incrementToMax:v,decrement:L,decrementToMin:F,numberValue:A,inputValue:B,commit:R,commitValidation:I}=t;const K=gr(YD(Ly),"@react-aria/numberfield");let V=_e(r),{focusProps:T}=ea({onBlur(){R()}}),G=Ni(h),Y=u.useMemo(()=>G.resolvedOptions(),[G]),H=Ni({...h,currencySign:void 0}),D=u.useMemo(()=>isNaN(A)?"":H.format(A),[H,A]),{spinButtonProps:O,incrementButtonProps:W,decrementButtonProps:J}=Jv({isDisabled:a,isReadOnly:s,isRequired:l,maxValue:c,minValue:d,onIncrement:N,onIncrementToMax:v,onDecrement:L,onDecrementToMin:F,value:A,textValue:D}),[Q,re]=u.useState(!1),{focusWithinProps:z}=br({isDisabled:a,onFocusWithinChange:re}),q=u.useCallback(Ne=>{Math.abs(Ne.deltaY)<=Math.abs(Ne.deltaX)||(Ne.deltaY>0?N():Ne.deltaY<0&&L())},[L,N]);Bx({onScroll:q,isDisabled:P||a||s||!Q},n);let ae=Y.maximumFractionDigits>0,se=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,Be="numeric";Hp()?se?Be="text":ae&&(Be="decimal"):Nl()&&(se?Be="numeric":ae&&(Be="decimal"));let Ue=Ne=>{t.validate(Ne)&&t.setInputValue(Ne)},xt=le(e),Kn=u.useCallback(Ne=>{Ne.key==="Enter"?(R(),I()):Ne.continuePropagation()},[R,I]),{isInvalid:Zt,validationErrors:Xt,validationDetails:Dr}=t.displayValidation,{labelProps:ue,inputProps:fe,descriptionProps:$e,errorMessageProps:Fo}=ID({...k,...xt,name:void 0,label:p,autoFocus:f,isDisabled:a,isReadOnly:s,isRequired:l,validate:void 0,[co]:t,value:B,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:V,type:"text",inputMode:Be,onChange:Ue,onBlur:b,onFocus:g,onFocusChange:y,onKeyDown:u.useMemo(()=>an(Kn,$),[Kn,$]),onKeyUp:C,description:w,errorMessage:E},t,n);mo(n,t.numberValue,t.setNumberValue);let Er=X(O,T,fe,{role:null,"aria-roledescription":pr()?null:K.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(Er["aria-required"]=void 0);let Pr=Ne=>{var Tr;document.activeElement!==n.current&&(Ne.pointerType==="mouse"?(Tr=n.current)===null||Tr===void 0||Tr.focus():Ne.target.focus())},pn=e["aria-label"]||(typeof e.label=="string"?e.label:""),wt;pn||(wt=e.label!=null?ue.id:e["aria-labelledby"]);let Sr=_e(),Bo=_e(),Sa=X(W,{"aria-label":i||K.format("increase",{fieldLabel:pn}).trim(),id:wt&&!i?Sr:null,"aria-labelledby":wt&&!i?`${Sr} ${wt}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:Pr}),Ta=X(J,{"aria-label":o||K.format("decrease",{fieldLabel:pn}).trim(),id:wt&&!o?Bo:null,"aria-labelledby":wt&&!o?`${Bo} ${wt}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:Pr});return{groupProps:{...z,role:"group","aria-disabled":a,"aria-invalid":Zt?"true":void 0},labelProps:ue,inputProps:Er,incrementButtonProps:Sa,decrementButtonProps:Ta,errorMessageProps:Fo,descriptionProps:$e,isInvalid:Zt,validationErrors:Xt,validationDetails:Dr}}function Vy(e){let t=le(e,{labelable:!0}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}const Gu=new WeakMap;function gl(e,t){let n=Gu.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function ZD(e,t,n){let{labelProps:r,fieldProps:o}=Do(e),i=e.orientation==="vertical";var a;Gu.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}=Ve(),{addGlobalListener:l,removeGlobalListener:d}=hr();const c=u.useRef(null),f=s==="rtl",p=u.useRef(null),{moveProps:h}=i0({onMoveStart(){p.current=null},onMove({deltaX:$,deltaY:C}){let{height:w,width:E}=n.current.getBoundingClientRect(),P=i?w:E;p.current==null&&(p.current=t.getThumbPercent(c.current)*P);let k=i?C:$;if((i||f)&&(k=-k),p.current+=k,c.current!=null&&n.current){const N=pt(p.current/P,0,1);t.setThumbPercent(c.current,N)}},onMoveEnd(){c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null)}});let b=u.useRef(void 0),g=($,C,w,E)=>{if(n.current&&!e.isDisabled&&t.values.every((P,k)=>!t.isThumbDragging(k))){let{height:P,width:k,top:N,left:v}=n.current.getBoundingClientRect(),L=i?P:k,R=((i?E:w)-(i?N:v))/L;(s==="rtl"||i)&&(R=1-R);let I=t.getPercentValue(R),K,V=t.values.findIndex(T=>I-T<0);if(V===0)K=V;else if(V===-1)K=t.values.length-1;else{let T=t.values[V-1],G=t.values[V];Math.abs(T-I)<Math.abs(G-I)?K=V-1:K=V}K>=0&&t.isThumbEditable(K)?($.preventDefault(),c.current=K,t.setFocusedThumb(K),b.current=C,t.setThumbDragging(c.current,!0),t.setThumbValue(K,I),l(window,"mouseup",y,!1),l(window,"touchend",y,!1),l(window,"pointerup",y,!1)):c.current=null}},y=$=>{var C,w;((w=$.pointerId)!==null&&w!==void 0?w:(C=$.changedTouches)===null||C===void 0?void 0:C[0].identifier)===b.current&&(c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null),d(window,"mouseup",y,!1),d(window,"touchend",y,!1),d(window,"pointerup",y,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var $;($=document.getElementById(gl(t,0)))===null||$===void 0||$.focus(),r0("keyboard")}),{labelProps:r,groupProps:{role:"group",...o},trackProps:X({onMouseDown($){$.button!==0||$.altKey||$.ctrlKey||$.metaKey||g($,void 0,$.clientX,$.clientY)},onPointerDown($){$.pointerType==="mouse"&&($.button!==0||$.altKey||$.ctrlKey||$.metaKey)||g($,$.pointerId,$.clientX,$.clientY)},onTouchStart($){g($,$.changedTouches[0].identifier,$.changedTouches[0].clientX,$.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:t.values.map(($,C)=>gl(t,C)).join(" "),"aria-live":"off"}}}function XD(e,t){let{index:n=0,isRequired:r,validationState:o,isInvalid:i,trackRef:a,inputRef:s,orientation:l=t.orientation,name:d}=e,c=e.isDisabled||t.isDisabled,f=l==="vertical",{direction:p}=Ve(),{addGlobalListener:h,removeGlobalListener:b}=hr(),g=Gu.get(t);var y;const{labelProps:$,fieldProps:C}=Do({...e,id:gl(t,n),"aria-labelledby":`${g.id} ${(y=e["aria-labelledby"])!==null&&y!==void 0?y:""}`.trim()}),w=t.values[n],E=u.useCallback(()=>{s.current&&Pt(s.current)},[s]),P=t.focusedThumb===n;u.useEffect(()=>{P&&E()},[P,E]);let k=p==="rtl",N=u.useRef(null),{keyboardProps:v}=zl({onKeyDown(V){let{getThumbMaxValue:T,getThumbMinValue:G,decrementThumb:Y,incrementThumb:H,setThumbValue:D,setThumbDragging:O,pageSize:W}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(V.key)){V.continuePropagation();return}switch(V.preventDefault(),O(n,!0),V.key){case"PageUp":H(n,W);break;case"PageDown":Y(n,W);break;case"Home":D(n,G(n));break;case"End":D(n,T(n));break}O(n,!1)}}),{moveProps:L}=i0({onMoveStart(){N.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:V,deltaY:T,pointerType:G,shiftKey:Y}){const{getThumbPercent:H,setThumbPercent:D,decrementThumb:O,incrementThumb:W,step:J,pageSize:Q}=t;let{width:re,height:z}=a.current.getBoundingClientRect(),q=f?z:re;if(N.current==null&&(N.current=H(n)*q),G==="keyboard")V>0&&k||V<0&&!k||T>0?O(n,Y?Q:J):W(n,Y?Q:J);else{let te=f?T:V;(f||k)&&(te=-te),N.current+=te,D(n,pt(N.current/q,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!c);const{focusableProps:F}=mr(X(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s);let A=u.useRef(void 0),B=V=>{E(),A.current=V,t.setThumbDragging(n,!0),h(window,"mouseup",R,!1),h(window,"touchend",R,!1),h(window,"pointerup",R,!1)},R=V=>{var T,G;((G=V.pointerId)!==null&&G!==void 0?G:(T=V.changedTouches)===null||T===void 0?void 0:T[0].identifier)===A.current&&(E(),t.setThumbDragging(n,!1),b(window,"mouseup",R,!1),b(window,"touchend",R,!1),b(window,"pointerup",R,!1))},I=t.getThumbPercent(n);(f||p==="rtl")&&(I=1-I);let K=c?{}:X(v,L,{onMouseDown:V=>{V.button!==0||V.altKey||V.ctrlKey||V.metaKey||B()},onPointerDown:V=>{V.button!==0||V.altKey||V.ctrlKey||V.metaKey||B(V.pointerId)},onTouchStart:V=>{B(V.changedTouches[0].identifier)}});return mo(s,w,V=>{t.setThumbValue(n,V)}),{inputProps:X(F,C,{type:"range",tabIndex:c?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:w,name:d,disabled:c,"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":[g["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[g["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:V=>{t.setThumbValue(n,parseFloat(V.target.value))}}),thumbProps:{...K,style:{position:"absolute",[f?"top":"left"]:`${I*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(n),isDisabled:c,isFocused:P}}function JD(e,t,n){let{labelProps:r,inputProps:o,isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}=pm(e,t,n);return{labelProps:r,inputProps:{...o,role:"switch",checked:i},isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}}const Oy=new WeakMap;function Yi(e,t,n){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${Oy.get(e)}-${n}-${t}`}function QD(e,t,n){var r;let{key:o,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:s,selectedKey:l}=t,d=o===l,c=i||t.isDisabled||t.disabledKeys.has(o),{itemProps:f,isPressed:p}=Ku({selectionManager:s,key:o,ref:n,isDisabled:c,shouldSelectOnPressUp:a,linkBehavior:"selection"}),h=Yi(t,o,"tab"),b=Yi(t,o,"tabpanel"),{tabIndex:g}=f,y=t.collection.getItem(o),$=le(y==null?void 0:y.props,{isLink:!!(!(y==null||(r=y.props)===null||r===void 0)&&r.href),labelable:!0});return delete $.id,{tabProps:X($,f,{id:h,"aria-selected":d,"aria-disabled":c||void 0,"aria-controls":d?b:void 0,tabIndex:c?void 0:g,role:"tab"}),isSelected:d,isDisabled:c,isPressed:p}}function eE(e,t,n){let r=qx(n)?void 0:0;var o;const i=Yi(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),a=An({...e,id:i,"aria-labelledby":Yi(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:X(a,{tabIndex:r,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class tE{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 nE(e,t,n){let{orientation:r="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:s}=t,{direction:l}=Ve(),d=u.useMemo(()=>new tE(i,l,r,s),[i,s,r,l]),{collectionProps:c}=Nu({ref:n,selectionManager:a,keyboardDelegate:d,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=_e();Oy.set(t,f);let p=An({...e,id:f});return{tabListProps:{...X(c,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function rE(e,t){let n=le(e,{labelable:!0}),{hoverProps:r}=Fe({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:X(n,r,{role:"tooltip"})}}function oE(e,t,n){let{isDisabled:r,trigger:o}=e,i=_e(),a=u.useRef(!1),s=u.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},d=$=>{!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 c=()=>{o!=="focus"&&(Si()==="pointer"?a.current=!0:a.current=!1,l())},f=()=>{o!=="focus"&&(s.current=!1,a.current=!1,d())},p=()=>{s.current=!1,a.current=!1,d(!0)},h=()=>{lr()&&(s.current=!0,l())},b=()=>{s.current=!1,a.current=!1,d(!0)},{hoverProps:g}=Fe({isDisabled:r,onHoverStart:c,onHoverEnd:f}),{focusableProps:y}=mr({isDisabled:r,onFocus:h,onBlur:b},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...X(y,g,{onPointerDown:p,onKeyDown:p})},tooltipProps:{id:i}}}class vt extends Set{constructor(t,n,r){super(t),t instanceof vt?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function iE(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Ny(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),d=u.useRef(null),[,c]=u.useState(null),f=u.useMemo(()=>ip(e.selectedKeys),[e.selectedKeys]),p=u.useMemo(()=>ip(e.defaultSelectedKeys,new vt),[e.defaultSelectedKeys]),[h,b]=bt(f,p,e.onSelectionChange),g=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,$]=u.useState(o);o==="replace"&&y==="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:y,setSelectionBehavior:$,get isFocused(){return a.current},setFocused(w){a.current=w,s(w)},get focusedKey(){return l.current},get childFocusStrategy(){return d.current},setFocusedKey(w,E="first"){l.current=w,d.current=E,c(w)},selectedKeys:h,setSelectedKeys(w){(r||!iE(w,h))&&b(w)},disabledKeys:g,disabledBehavior:i}}function ip(e,t){return e?e==="all"?"all":new vt(e):t}class Ky{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&&ws(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&&ws(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 vt([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new vt(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?ws(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 vt(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 vt([t],t,t):new vt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new vt;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(xD(ba(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 vt)}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 vl{*[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 jy(e){let{filter:t}=e,n=Ny(e),r=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=u.useCallback(d=>t?new vl(t(d)):new vl(d),[t]),i=u.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=Xm(e,o,i),s=u.useMemo(()=>new Ky(a,n),[a,n]);const l=u.useRef(null);return u.useEffect(()=>{if(n.focusedKey!=null&&!a.getItem(n.focusedKey)){const d=l.current.getItem(n.focusedKey),c=[...l.current.getKeys()].map(g=>{const y=l.current.getItem(g);return y.type==="item"?y:null}).filter(g=>g!==null),f=[...a.getKeys()].map(g=>{const y=a.getItem(g);return y.type==="item"?y:null}).filter(g=>g!==null),p=c.length-f.length;let h=Math.min(p>1?Math.max(d.index-p+1,0):d.index,f.length-1),b;for(;h>=0;){if(!s.isDisabled(f[h].key)){b=f[h];break}h<f.length-1?h++:(h>d.index&&(h=d.index),h--)}n.setFocusedKey(b?b.key:null)}l.current=a},[a,s,n,n.focusedKey]),{collection:a,disabledKeys:r,selectionManager:s}}function _y(e){var t;let[n,r]=bt(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}=jy({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:d=>{var c;let f=(c=d.values().next().value)!==null&&c!==void 0?c: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 ga(e){let[t,n]=bt(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 aE(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:s=!0}=e,[l,d]=u.useState(!1),[c,f]=u.useState(!1),[p,h]=u.useState(null),b=ue=>{e.onSelectionChange&&e.onSelectionChange(ue),ue===C&&(J(),D())};var g;let{collection:y,selectionManager:$,selectedKey:C,setSelectedKey:w,selectedItem:E,disabledKeys:P}=_y({...e,onSelectionChange:b,items:(g=e.items)!==null&&g!==void 0?g:e.defaultItems});var k,N;let[v,L]=bt(e.inputValue,(N=(k=e.defaultInputValue)!==null&&k!==void 0?k:(t=y.getItem(C))===null||t===void 0?void 0:t.textValue)!==null&&N!==void 0?N:"",e.onInputChange),F=y,A=u.useMemo(()=>e.items!=null||!r?y:sE(y,v,r),[y,v,r,e.items]),[B,R]=u.useState(A),I=u.useRef("focus"),V=ga({...e,onOpenChange:ue=>{e.onOpenChange&&e.onOpenChange(ue,ue?I.current:void 0),$.setFocused(ue),ue||$.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),T=(ue=null,fe)=>{let $e=fe==="manual"||fe==="focus"&&o==="focus";(i||A.size>0||$e&&F.size>0||e.items)&&($e&&!V.isOpen&&e.items===void 0&&d(!0),I.current=fe,h(ue),V.open())},G=(ue=null,fe)=>{let $e=fe==="manual"||fe==="focus"&&o==="focus";!(i||A.size>0||$e&&F.size>0||e.items)&&!V.isOpen||($e&&!V.isOpen&&e.items===void 0&&d(!0),V.isOpen||(I.current=fe),H(ue))},Y=u.useCallback(()=>{R(l?F:A)},[l,F,A]),H=u.useCallback((ue=null)=>{V.isOpen&&Y(),h(ue),V.toggle()},[V,Y]),D=u.useCallback(()=>{V.isOpen&&(Y(),V.close())},[V,Y]),[O,W]=u.useState(v),J=()=>{var ue,fe;let $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";W($e),L($e)};var Q,re;let z=u.useRef((re=(Q=e.selectedKey)!==null&&Q!==void 0?Q:e.defaultSelectedKey)!==null&&re!==void 0?re:null);var q;let te=u.useRef((q=(n=y.getItem(C))===null||n===void 0?void 0:n.textValue)!==null&&q!==void 0?q:"");u.useEffect(()=>{var ue;c&&(A.size>0||i)&&!V.isOpen&&v!==O&&o!=="manual"&&T(null,"input"),!l&&!i&&V.isOpen&&A.size===0&&D(),C!=null&&C!==z.current&&D(),v!==O&&($.setFocusedKey(null),d(!1),v===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&w(null)),C!==z.current&&(e.inputValue===void 0||e.selectedKey===void 0)?J():O!==v&&W(v);var fe;let $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";!c&&C!=null&&e.inputValue===void 0&&C===z.current&&te.current!==$e&&(W($e),L($e)),z.current=C,te.current=$e});let ae=$r({...e,value:u.useMemo(()=>({inputValue:v,selectedKey:C}),[v,C])}),se=()=>{a&&C==null?Be():Ue()},Be=()=>{z.current=null,w(null),D()},Ue=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var ue;e.onSelectionChange(C);var fe;let $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";W($e),D()}else J(),D()};const xt=()=>{if(a){var ue,fe;const $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";v===$e?Ue():Be()}else Ue()};let Kn=()=>{V.isOpen&&$.focusedKey!=null?C===$.focusedKey?Ue():w($.focusedKey):xt()},Zt=u.useRef(v),Xt=ue=>{ue?(Zt.current=v,o==="focus"&&T(null,"focus")):(s&&xt(),v!==Zt.current&&ae.commitValidation()),f(ue)},Dr=u.useMemo(()=>V.isOpen?l?F:A:B,[V.isOpen,F,A,l,B]);return{...ae,...V,focusStrategy:p,toggle:G,open:T,close:xt,selectionManager:$,selectedKey:C,setSelectedKey:w,disabledKeys:P,isFocused:c,setFocused:Xt,selectedItem:E,collection:Dr,inputValue:v,setInputValue:L,commit:Kn,revert:se}}function sE(e,t,n){return new vl(zy(e,e,t,n))}function zy(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let a=zy(e,ba(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 Uy={};Uy={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Hy={};Hy={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Gy={};Gy={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 Wy={};Wy={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 Yy={};Yy={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 qy={};qy={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Zy={};Zy={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 Xy={};Xy={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 Jy={};Jy={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 Qy={};Qy={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 e4={};e4={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 t4={};t4={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var n4={};n4={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 r4={};r4={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 o4={};o4={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 i4={};i4={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var a4={};a4={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var s4={};s4={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 l4={};l4={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 u4={};u4={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 c4={};c4={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 d4={};d4={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 f4={};f4={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 p4={};p4={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 h4={};h4={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 b4={};b4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var m4={};m4={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 g4={};g4={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 v4={};v4={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 y4={};y4={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 $4={};$4={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 x4={};x4={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var w4={};w4={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var C4={};C4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};function lE(e){return e&&e.__esModule?e.default:e}var D4={};D4={"ar-AE":Uy,"bg-BG":Hy,"cs-CZ":Gy,"da-DK":Wy,"de-DE":Yy,"el-GR":qy,"en-US":Zy,"es-ES":Xy,"et-EE":Jy,"fi-FI":Qy,"fr-FR":e4,"he-IL":t4,"hr-HR":n4,"hu-HU":r4,"it-IT":o4,"ja-JP":i4,"ko-KR":a4,"lt-LT":s4,"lv-LV":l4,"nb-NO":u4,"nl-NL":c4,"pl-PL":d4,"pt-BR":f4,"pt-PT":p4,"ro-RO":h4,"ru-RU":b4,"sk-SK":m4,"sl-SI":g4,"sr-SP":v4,"sv-SE":y4,"tr-TR":$4,"uk-UA":x4,"zh-CN":w4,"zh-TW":C4};const uE=new In(lE(D4));function cE(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function dE(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,d=[];if(l){let c=cE(),f=In.getGlobalDictionaryForPackage("@react-stately/datepicker")||uE,p=new d0(c,f),h=new Yr(c,yl({},o)),b=h.resolvedOptions().timeZone;a&&d.push(p.format("rangeUnderflow",{minValue:h.format(t.toDate(b))})),i&&d.push(p.format("rangeOverflow",{maxValue:h.format(n.toDate(b))})),s&&d.push(p.format("unavailableDate"))}return{isInvalid:l,validationErrors:d,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}const fE={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},pE={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function yl(e,t){e={...t.shouldForceLeadingZeros?pE:fE,...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((c,f)=>(c[f]=e[f],c),{});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 E4(e,t){if(e===null)return null;if(e)return Xe(e,t)}function Or(e,t,n,r){if(e)return E4(e,n);let o=Xe(p0(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?y0(o):r?o:ln(o)}function hE(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 bE=new In({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 mE(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?bE.getStringForLocale(e,n):"––"}const si={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},ap={year:5,month:2,day:7,hour:2,minute:15,second:15},gE={dayperiod:"dayPeriod"};function Wu(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:o,isReadOnly:i,isRequired:a,minValue:s,maxValue:l,isDateUnavailable:d}=e,c=e.value||e.defaultValue||e.placeholderValue,[f,p]=hE(c,e.granularity),h=p||"UTC";if(c&&!(f in c))throw new Error("Invalid granularity "+f+" for value "+c.toString());let b=u.useMemo(()=>new Yr(t),[t]),g=u.useMemo(()=>n(b.resolvedOptions().calendar),[n,b]),[y,$]=bt(e.value,e.defaultValue,e.onChange),C=u.useMemo(()=>E4(y,g),[y,g]),[w,E]=u.useState(()=>Or(e.placeholderValue,f,g,p)),P=C||w,k=g.identifier==="gregory"&&P.era==="BC",N=u.useMemo(()=>{var z;return{granularity:f,maxGranularity:(z=e.maxGranularity)!==null&&z!==void 0?z:"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:k,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,p,r,k]),v=u.useMemo(()=>yl({},N),[N]),L=u.useMemo(()=>new Yr(t,v),[t,v]),F=u.useMemo(()=>L.resolvedOptions(),[L]),A=u.useMemo(()=>L.formatToParts(new Date).filter(z=>si[z.type]).reduce((z,q)=>(z[q.type]=!0,z),{}),[L]),[B,R]=u.useState(()=>e.value||e.defaultValue?{...A}:{}),I=u.useRef(),K=u.useRef(g.identifier);u.useEffect(()=>{g.identifier!==K.current&&(K.current=g.identifier,E(z=>Object.keys(B).length>0?Xe(z,g):Or(e.placeholderValue,f,g,p)))},[g,f,B,p,e.placeholderValue]),y&&Object.keys(B).length<Object.keys(A).length&&(B={...A},R(B)),y==null&&Object.keys(B).length===Object.keys(A).length&&(B={},R(B),E(Or(e.placeholderValue,f,g,p)));let V=C&&Object.keys(B).length>=Object.keys(A).length?C:w,T=z=>{if(e.isDisabled||e.isReadOnly)return;let q=Object.keys(B),te=Object.keys(A);z==null?($(null),E(Or(e.placeholderValue,f,g,p)),R({})):q.length>=te.length||q.length===te.length-1&&A.dayPeriod&&!B.dayPeriod&&I.current!=="dayPeriod"?(z=Xe(z,(c==null?void 0:c.calendar)||new nt),$(z)):E(z),I.current=null},G=u.useMemo(()=>V.toDate(h),[V,h]),Y=u.useMemo(()=>L.formatToParts(G).map(z=>{let q=si[z.type];z.type==="era"&&g.getEras().length===1&&(q=!1);let te=si[z.type]&&!B[z.type],ae=si[z.type]?mE(z.type,z.value,t):null;return{type:gE[z.type]||z.type,text:te?ae:z.value,...vE(V,z.type,F),isPlaceholder:te,placeholder:ae,isEditable:q}}),[G,B,L,F,V,g,t]);A.era&&B.year&&!B.era?(B.era=!0,R({...B})):!A.era&&B.era&&(delete B.era,R({...B}));let H=z=>{B[z]=!0,z==="year"&&A.era&&(B.era=!0),R({...B})},D=(z,q)=>{if(B[z])T(yE(V,z,q,F));else{H(z);let te=Object.keys(B),ae=Object.keys(A);(te.length>=ae.length||te.length===ae.length-1&&A.dayPeriod&&!B.dayPeriod)&&T(V)}},O=u.useMemo(()=>dE(y,s,l,d,N),[y,s,l,d,N]),W=$r({...e,value:y,builtinValidation:O}),J=W.displayValidation.isInvalid,Q=e.validationState||(J?"invalid":null);var re;return{...W,value:C,dateValue:G,calendar:g,setValue:T,segments:Y,dateFormatter:L,validationState:Q,isInvalid:J,granularity:f,maxGranularity:(re=e.maxGranularity)!==null&&re!==void 0?re:"year",isDisabled:o,isReadOnly:i,isRequired:a,increment(z){D(z,1)},decrement(z){D(z,-1)},incrementPage(z){D(z,ap[z]||1)},decrementPage(z){D(z,-(ap[z]||1))},setSegment(z,q){H(z),T($E(V,z,q,F))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let z=Object.keys(B),q=Object.keys(A);z.length===q.length-1&&A.dayPeriod&&!B.dayPeriod&&(B={...A},R(B),T(V.copy()))},clearSegment(z){delete B[z],I.current=z,R({...B});let q=Or(e.placeholderValue,f,g,p),te=V;if(z==="dayPeriod"&&"hour"in V&&"hour"in q){let ae=V.hour>=12,se=q.hour>=12;ae&&!se?te=V.set({hour:V.hour-12}):!ae&&se&&(te=V.set({hour:V.hour+12}))}else z in V&&(te=V.set({[z]:q[z]}));$(null),T(te)},formatValue(z){if(!C)return"";let q=yl(z,N);return new Yr(t,q).format(G)}}}function vE(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:o5(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:i5(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 yE(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 $E(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 xE(e){let{placeholderValue:t=new oa,minValue:n,maxValue:r,granularity:o,validate:i}=e,[a,s]=bt(e.value,e.defaultValue,e.onChange),l=a||t,d=l&&"day"in l?l:void 0,c=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||c)&&t?$0(Nr(t),C||c):Nr(t)},[t,l,c]),p=u.useMemo(()=>Nr(n,d),[n,d]),h=u.useMemo(()=>Nr(r,d),[r,d]),b=u.useMemo(()=>a&&"day"in a?fd(a):a,[a]),g=u.useMemo(()=>a==null?null:Nr(a),[a]);return{...Wu({...e,value:g,defaultValue:void 0,minValue:p,maxValue:h,onChange:C=>{s(d||c?C:C&&fd(C))},granularity:o||"minute",maxGranularity:"hour",placeholderValue:f,createCalendar:()=>new nt,validate:u.useCallback(()=>i==null?void 0:i(a),[i,a])}),timeValue:b}}function Nr(e,t=r5(Wl())){return e?"day"in e?e:ln(t,e):null}function wE(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]),[d,c]=u.useState(null),f=u.useCallback((b=null)=>{c(b),o(n,s)},[o,s,n]),p=u.useCallback(()=>{c(null),i(n,s)},[i,s,n]),h=u.useCallback((b=null)=>{c(b),l?p():f(b)},[p,f,l]);return u.useMemo(()=>({focusStrategy:d,isOpen:l,open:f,close:p,closeAll:a,submenuLevel:s,setOpen:()=>{},toggle:h}),[l,f,p,a,d,h,s])}function CE(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:i,defaultValue:a=NaN,onChange:s,locale:l,isDisabled:d,isReadOnly:c}=e;i===null&&(i=NaN),i!==void 0&&!isNaN(i)&&(r!==void 0&&!isNaN(r)?i=Qe(i,t,n,r):i=pt(i,t,n)),isNaN(a)||(r!==void 0&&!isNaN(r)?a=Qe(a,t,n,r):a=pt(a,t,n));let[f,p]=bt(i,isNaN(a)?NaN:a,s),[h,b]=u.useState(()=>isNaN(f)?"":new Oi(l,o).format(f)),g=u.useMemo(()=>new nu(l,o),[l,o]),y=u.useMemo(()=>g.getNumberingSystem(h),[g,h]),$=u.useMemo(()=>new Oi(l,{...o,numberingSystem:y}),[l,o,y]),C=u.useMemo(()=>$.resolvedOptions(),[$]),w=u.useCallback(O=>isNaN(O)||O===null?"":$.format(O),[$]),E=$r({...e,value:f}),P=r!==void 0&&!isNaN(r)?r:1;C.style==="percent"&&(r===void 0||isNaN(r))&&(P=.01);let[k,N]=u.useState(f),[v,L]=u.useState(l),[F,A]=u.useState(o);(!Object.is(f,k)||l!==v||o!==F)&&(b(w(f)),N(f),L(l),A(o));let B=u.useMemo(()=>g.parse(h),[g,h]),R=()=>{if(!h.length){p(NaN),b(i===void 0?"":w(f));return}if(isNaN(B)){b(w(f));return}let O;r===void 0||isNaN(r)?O=pt(B,t,n):O=Qe(B,t,n,r),O=g.parse(w(O)),p(O),b(w(i===void 0?O:f))},I=(O,W=0)=>{let J=B;if(isNaN(J)){let Q=isNaN(W)?0:W;return Qe(Q,t,n,P)}else{let Q=Qe(J,t,n,P);return O==="+"&&Q>J||O==="-"&&Q<J?Q:Qe(Ds(O,J,P),t,n,P)}},K=()=>{let O=I("+",t);O===f&&b(w(O)),p(O),E.commitValidation()},V=()=>{let O=I("-",n);O===f&&b(w(O)),p(O),E.commitValidation()},T=()=>{n!=null&&(p(Qe(n,t,n,P)),E.commitValidation())},G=()=>{t!=null&&(p(t),E.commitValidation())},Y=u.useMemo(()=>!d&&!c&&(isNaN(B)||n===void 0||isNaN(n)||Qe(B,t,n,P)>B||Ds("+",B,P)<=n),[d,c,t,n,P,B]),H=u.useMemo(()=>!d&&!c&&(isNaN(B)||t===void 0||isNaN(t)||Qe(B,t,n,P)<B||Ds("-",B,P)>=t),[d,c,t,n,P,B]);return{...E,validate:O=>g.isValidPartialNumber(O,t,n),increment:K,incrementToMax:T,decrement:V,decrementToMin:G,canIncrement:Y,canDecrement:H,minValue:t,maxValue:n,numberValue:B,setNumberValue:p,setInputValue:b,inputValue:h,commit:R}}function Ds(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 DE=0,EE=100,PE=1;function SE(e){const{isDisabled:t=!1,minValue:n=DE,maxValue:r=EE,numberFormatter:o,step:i=PE,orientation:a="horizontal"}=e;let s=u.useMemo(()=>{let D=(r-n)/10;return D=Qe(D,0,D+i,i),Math.max(D,i)},[i,r,n]),l=u.useCallback(D=>D==null?void 0:D.map((O,W)=>{let J=W===0?n:O[W-1],Q=W===D.length-1?r:O[W+1];return Qe(O,J,Q,i)}),[n,r,i]),d=u.useMemo(()=>l(lp(e.value)),[e.value]),c=u.useMemo(()=>{var D;return l((D=lp(e.defaultValue))!==null&&D!==void 0?D:[n])},[e.defaultValue,n]),f=up(e.value,e.defaultValue,e.onChange),p=up(e.value,e.defaultValue,e.onChangeEnd);const[h,b]=bt(d,c,f),[g,y]=u.useState(new Array(h.length).fill(!1)),$=u.useRef(new Array(h.length).fill(!0)),[C,w]=u.useState(void 0),E=u.useRef(h),P=u.useRef(g);let k=D=>{E.current=D,b(D)},N=D=>{P.current=D,y(D)};function v(D){return(D-n)/(r-n)}function L(D){return D===0?n:h[D-1]}function F(D){return D===h.length-1?r:h[D+1]}function A(D){return $.current[D]}function B(D,O){$.current[D]=O}function R(D,O){if(t||!A(D))return;const W=L(D),J=F(D);O=Qe(O,W,J,i);let Q=sp(E.current,D,O);k(Q)}function I(D,O){if(t||!A(D))return;O&&(E.current=h);const W=P.current[D];P.current=sp(P.current,D,O),N(P.current),p&&W&&!P.current.some(Boolean)&&p(E.current)}function K(D){return o.format(D)}function V(D,O){R(D,G(O))}function T(D){return Math.round((D-n)/i)*i+n}function G(D){const O=D*(r-n)+n;return pt(T(O),n,r)}function Y(D,O=1){let W=Math.max(O,i);R(D,Qe(h[D]+W,n,r,i))}function H(D,O=1){let W=Math.max(O,i);R(D,Qe(h[D]-W,n,r,i))}return{values:h,getThumbValue:D=>h[D],setThumbValue:R,setThumbPercent:V,isThumbDragging:D=>g[D],setThumbDragging:I,focusedThumb:C,setFocusedThumb:w,getThumbPercent:D=>v(h[D]),getValuePercent:v,getThumbValueLabel:D=>K(h[D]),getFormattedValue:K,getThumbMinValue:L,getThumbMaxValue:F,getPercentValue:G,isThumbEditable:A,setThumbEditable:B,incrementThumb:Y,decrementThumb:H,step:i,pageSize:s,orientation:a,isDisabled:t}}function sp(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function lp(e){if(e!=null)return Array.isArray(e)?e:[e]}function up(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}function TE(e){var t;let n=_y({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:cp(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=cp(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 cp(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 AE=1500,dp=500;let bn={},ME=0,Kr=!1,Ft=null,mn=null;function kE(e={}){let{delay:t=AE,closeDelay:n=dp}=e,{isOpen:r,open:o,close:i}=ga(e),a=u.useMemo(()=>`${++ME}`,[]),s=u.useRef(),l=()=>{bn[a]=f},d=()=>{for(let h in bn)h!==a&&(bn[h](!0),delete bn[h])},c=()=>{clearTimeout(s.current),s.current=null,d(),l(),Kr=!0,o(),Ft&&(clearTimeout(Ft),Ft=null),mn&&(clearTimeout(mn),mn=null)},f=h=>{h||n<=0?(clearTimeout(s.current),s.current=null,i()):s.current||(s.current=setTimeout(()=>{s.current=null,i()},n)),Ft&&(clearTimeout(Ft),Ft=null),Kr&&(mn&&clearTimeout(mn),mn=setTimeout(()=>{delete bn[a],mn=null,Kr=!1},Math.max(dp,n)))},p=()=>{d(),l(),!r&&!Ft&&!Kr?Ft=setTimeout(()=>{Ft=null,Kr=!0,c()},t):r||c()};return u.useEffect(()=>()=>{clearTimeout(s.current),bn[a]&&delete bn[a]},[a]),{isOpen:r,open:h=>{!h&&t>0&&!s.current?p():c()},close:f}}class RE{*[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 FE(e){let[t,n]=bt(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),r=Ny(e),o=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=Xm(e,u.useCallback(s=>new RE(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(BE(t,s))},setExpandedKeys:n,selectionManager:new Ky(i,r)}}function BE(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var $l={exports:{}},Es={};/**
164
- * @license React
165
- * use-sync-external-store-shim.production.min.js
166
- *
167
- * Copyright (c) Facebook, Inc. and its affiliates.
168
- *
169
- * This source code is licensed under the MIT license found in the
170
- * LICENSE file in the root directory of this source tree.
171
- */var fp;function IE(){if(fp)return Es;fp=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(),b=r({inst:{value:h,getSnapshot:p}}),g=b[0].inst,y=b[1];return i(function(){g.value=h,g.getSnapshot=p,l(g)&&y({inst:g})},[f,h,p]),o(function(){return l(g)&&y({inst:g}),f(function(){l(g)&&y({inst:g})})},[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 d(f,p){return p()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return Es.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Es}var Ps={};/**
172
- * @license React
173
- * use-sync-external-store-shim.development.js
174
- *
175
- * Copyright (c) Facebook, Inc. and its affiliates.
176
- *
177
- * This source code is licensed under the MIT license found in the
178
- * LICENSE file in the root directory of this source tree.
179
- */var pp;function LE(){return pp||(pp=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(w){{for(var E=arguments.length,P=new Array(E>1?E-1:0),k=1;k<E;k++)P[k-1]=arguments[k];r("error",w,P)}}function r(w,E,P){{var k=t.ReactDebugCurrentFrame,N=k.getStackAddendum();N!==""&&(E+="%s",P=P.concat([N]));var v=P.map(function(L){return String(L)});v.unshift("Warning: "+E),Function.prototype.apply.call(console[w],console,v)}}function o(w,E){return w===E&&(w!==0||1/w===1/E)||w!==w&&E!==E}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,d=e.useDebugValue,c=!1,f=!1;function p(w,E,P){c||e.startTransition!==void 0&&(c=!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 k=E();if(!f){var N=E();i(k,N)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var v=a({inst:{value:k,getSnapshot:E}}),L=v[0].inst,F=v[1];return l(function(){L.value=k,L.getSnapshot=E,h(L)&&F({inst:L})},[w,k,E]),s(function(){h(L)&&F({inst:L});var A=function(){h(L)&&F({inst:L})};return w(A)},[w]),d(k),k}function h(w){var E=w.getSnapshot,P=w.value;try{var k=E();return!i(P,k)}catch{return!0}}function b(w,E,P){return E()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!g,$=y?b:p,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:$;Ps.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ps}process.env.NODE_ENV==="production"?$l.exports=IE():$l.exports=LE();var VE=$l.exports;class Yu{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Yu(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 P4{*[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 fo extends P4{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof fo?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 fo?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 d;i.lastChildKey=(d=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&d!==void 0?d: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 Yu(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class OE{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 NE extends P4{get isConnected(){return!0}createElement(t){return new fo(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 fo&&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 xr(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 d=[];for(let c of n){let f=a.get(c);if(!f){f=t(c);var s,l;let p=(l=(s=f.props.id)!==null&&s!==void 0?s:c.key)!==null&&l!==void 0?l:c.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=u.cloneElement(f,o?{key:p,id:p,value:c}:{key:p}),a.set(c,f)}d.push(f)}return d}else if(typeof t!="function")return t},[t,n,a,r,o])}function KE(e){return xr({...e,addIdAndValue:!0})}const S4=u.createContext(!1);function qu(e,t){let{collection:n,document:r}=Zu(t);return{portal:T4(e,r),collection:n}}function jE(e,t,n){let r=At(),o=u.useRef(r);o.current=r;let i=u.useCallback(()=>o.current?n():t(),[t,n]);return VE.useSyncExternalStore(e,i)}const _E=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:jE;function Zu(e){let t=u.useMemo(()=>new NE(e||new OE),[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:_E(n,r,o),document:t}}const xl=u.createContext(null),Eo=u.createContext(null);function T4(e,t){let n=u.useContext(Eo),r=t??n,o=KE(e),i=u.useMemo(()=>u.createElement(S4.Provider,{value:!0},o),[o]);return At()?u.createElement(xl.Provider,{value:r},i):Wt.createPortal(i,r)}function A4(e){return u.createElement(u.Fragment,null,T4(e))}function M4(e,t,n){let r=u.useContext(S4);var o;return r?(o=va(e,t,n,"children"in t?t.children:null))!==null&&o!==void 0?o:u.createElement(u.Fragment,null):null}function zE(e,t,n){return u.useCallback(r=>{r==null||r.setProps(e,t,n)},[e,t,n])}function va(e,t,n,r,o){let i=zE(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 UE=Symbol("callback"),wl=Symbol("default");function Oe({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function he(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,values:a}=e;return u.useMemo(()=>{let s,l,d;return typeof t=="function"?s=t(a):s=t,typeof n=="function"?l=n(a):l=n,typeof r=="function"?d=r(a):r==null?d=i:d=r,{className:s??o,style:l,children:d,"data-rac":""}},[t,n,r,o,i,a])}function ya(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[wl])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=t||wl;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[o]}return n}function me(e,t,n){let r=ya(n,e.slot)||{},{ref:o,[UE]:i,...a}=r,s=mt(u.useMemo(()=>Ji(t,o),[t,o])),l=X(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 yt(){let[e,t]=u.useState(!0),n=u.useRef(!1),r=u.useCallback(o=>{n.current=!0,t(!!o)},[]);return be(()=>{n.current||t(!1)},[]),[r,e]}function Xu(e,t=!0){let[n,r]=u.useState(!0);return k4(e,n&&t,u.useCallback(()=>r(!1),[])),n&&t}function Cl(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"),k4(e,n,u.useCallback(()=>{i("exited"),r(!1)},[])),n}function k4(e,t,n){let r=u.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),be(()=>{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),Wt.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 po=u.createContext(!1),HE=typeof DocumentFragment<"u"?new DocumentFragment:null;function R4(e){let t=u.useContext(po),n=At();if(t)return u.createElement(u.Fragment,null,e.children);let r=u.createElement(po.Provider,{value:!0},e.children);return n?u.createElement("template",{"data-react-aria-hidden":!0},r):Wt.createPortal(r,HE)}function $a(e){let t=(n,r)=>u.useContext(po)?null:e(n,r);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function Fn(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}const F4=u.createContext(null);function GE(e,t){[e,t]=me(e,t,F4);let n=e.href?"a":"span",{linkProps:r,isPressed:o}=oD({...e,elementType:n},t),{hoverProps:i,isHovered:a}=Fe(e),{focusProps:s,isFocused:l,isFocusVisible:d}=Ye(),c=he({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:a,isFocused:l,isFocusVisible:d}});return u.createElement(n,{ref:t,slot:e.slot||void 0,...X(c,r,i,s),"data-focused":l||void 0,"data-hovered":a||void 0,"data-pressed":o||void 0,"data-focus-visible":d||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},c.children)}const xa=u.forwardRef(GE),WE=u.createContext(null);function YE(e,t){[e,t]=me(e,t,WE);let{portal:n,collection:r}=qu(e);return u.createElement(u.Fragment,null,n,u.createElement(qE,{props:e,collection:r,breadcrumbsRef:t}))}function qE({props:e,collection:t,breadcrumbsRef:n}){var r;return u.createElement("ol",{ref:n,...le(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(JE,{key:o.key,node:o,isCurrent:i===t.size-1,isDisabled:e.isDisabled,onAction:e.onAction})))}const ZE=u.forwardRef(YE);function XE(e,t){return va("item",e,t,e.children)}const B4=u.forwardRef(XE);function JE({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",{...le(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(F4.Provider,{value:o},e.rendered))}const QE=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Ju=u.createContext({});function e8(e,t){[e,t]=me(e,t,Ju);let n=e,{buttonProps:r,isPressed:o}=um(e,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(e),{hoverProps:l,isHovered:d}=Fe(e),c=he({...e,values:{isHovered:d,isPressed:o,isFocused:a,isFocusVisible:s,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return u.createElement("button",{...le(e,{propNames:QE}),...X(r,i,l),...c,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":n.isPressed||o||void 0,"data-hovered":d||void 0,"data-focused":a||void 0,"data-focus-visible":s||void 0})}const I4=$a(e8),t8=u.createContext({}),Yt=u.createContext({});function n8(e,t){[e,t]=me(e,t,Yt);let{elementType:n="span",...r}=e;return u.createElement(n,{className:"react-aria-Text",...r,ref:t})}const wr=u.forwardRef(n8),Vn=u.createContext(null);function r8(e,t){let n=u.useContext(Vn);return n!=null&&n.isInvalid?u.createElement(o8,{...e,ref:t}):null}const Po=u.forwardRef(r8),o8=u.forwardRef((e,t)=>{let n=u.useContext(Vn),r=he({...e,defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.join(" "),values:n});return u.createElement(wr,{slot:"errorMessage",...r,ref:t})}),Mt=u.createContext({});function i8(e,t){[e,t]=me(e,t,Mt);let{elementType:n="label",...r}=e;return u.createElement(n,{className:"react-aria-Label",...r,ref:t})}const qt=$a(i8),a8=u.createContext(null),s8=u.createContext(null);function l8(e,t){[e,t]=me(e,t,s8);let n=u.useRef(null),r=u.useContext(a8);var o;let{labelProps:i,inputProps:a,isSelected:s,isDisabled:l,isReadOnly:d,isPressed:c,isInvalid:f}=r?bD({...e,value:e.value,children:typeof e.children=="function"?!0:e.children},r,n):bm({...e,children:typeof e.children=="function"?!0:e.children,validationBehavior:(o=e.validationBehavior)!==null&&o!==void 0?o:"native"},ha(e),n),{isFocused:p,isFocusVisible:h,focusProps:b}=Ye(),g=l||d,{hoverProps:y,isHovered:$}=Fe({...e,isDisabled:g}),C=he({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:s,isIndeterminate:e.isIndeterminate||!1,isPressed:c,isHovered:$,isFocused:p,isFocusVisible:h,isDisabled:l,isReadOnly:d,isInvalid:f,isRequired:e.isRequired||!1}}),w=le(e);return delete w.id,u.createElement("label",{...X(w,i,y,C),ref:t,slot:e.slot||void 0,"data-selected":s||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":c||void 0,"data-hovered":$||void 0,"data-focused":p||void 0,"data-focus-visible":h||void 0,"data-disabled":l||void 0,"data-readonly":d||void 0,"data-invalid":f||void 0,"data-required":e.isRequired||void 0},u.createElement(ia,{elementType:"span"},u.createElement("input",{...X(a,b),ref:n})),C.children)}const u8=u.forwardRef(l8),Cr=u.createContext({});function c8(e,t){[e,t]=me(e,t,Cr);let{isDisabled:n,isInvalid:r,onHoverStart:o,onHoverChange:i,onHoverEnd:a,...s}=e,{hoverProps:l,isHovered:d}=Fe({onHoverStart:o,onHoverChange:i,onHoverEnd:a,isDisabled:n}),{isFocused:c,isFocusVisible:f,focusProps:p}=Ye({within:!0});n??(n=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r??(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let h=he({...e,values:{isHovered:d,isFocusWithin:c,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});var b,g;return u.createElement("div",{...X(s,p,l),...h,ref:t,role:(b=e.role)!==null&&b!==void 0?b:"group",slot:(g=e.slot)!==null&&g!==void 0?g:void 0,"data-focus-within":c||void 0,"data-hovered":d||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0},h.children)}const Qu=u.forwardRef(c8),On=u.createContext({});let d8=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function f8(e,t){[e,t]=me(e,t,On);let{hoverProps:n,isHovered:r}=Fe(e),{isFocused:o,isFocusVisible:i,focusProps:a}=Ye({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",l=he({...e,values:{isHovered:r,isFocused:o,isFocusVisible:i,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement("input",{...X(d8(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 So=$a(f8),L4=u.createContext(null);function p8(e,t){let{render:n}=u.useContext(L4);return u.createElement(u.Fragment,null,n(e,t))}const h8=u.forwardRef(p8),ec=u.createContext({}),b8=u.createContext({});function m8(e,t){let[n,r]=me(e,t,b8),o=M4("header",e,t);return o||u.createElement("header",{className:"react-aria-Header",...n,ref:r},n.children)}const V4=u.forwardRef(m8),tc=u.createContext({});function g8(e,t){let[n,r]=me(e,t,tc),{elementType:o,orientation:i,style:a,className:s}=n,l=o||"hr";l==="hr"&&i==="vertical"&&(l="div");let{separatorProps:d}=Vy({elementType:o,orientation:i}),c=M4("separator",e,t);return c||u.createElement(l,{...le(n),...d,style:a,className:s??"react-aria-Separator",ref:r,slot:n.slot||void 0})}const O4=u.forwardRef(g8),wa=u.createContext(null),To=u.createContext(null);function v8(e,t){[e,t]=me(e,t,wa);let n=u.useContext(po),r=u.useContext(To);return u.useContext(Eo)?u.createElement(A4,e):r?n?null:u.createElement(N4,{state:r,props:e,listBoxRef:t}):u.createElement(y8,{props:e,listBoxRef:t})}function y8({props:e,listBoxRef:t}){let{portal:n,collection:r}=qu(e);e={...e,collection:r,children:null,items:null};let o=jy(e);return u.createElement(u.Fragment,null,n,u.createElement(N4,{state:o,props:e,listBoxRef:t}))}const $8=u.forwardRef(v8);function N4({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),d=!!(r!=null&&r.useDroppableCollectionState),{direction:c}=Ve(),{disabledBehavior:f,disabledKeys:p}=s,h=ru({usage:"search",sensitivity:"base"}),b=u.useMemo(()=>t.keyboardDelegate||new ju({collection:a,collator:h,ref:n,disabledKeys:f==="selection"?new Set:p,layout:o,orientation:i,direction:c}),[a,h,n,f,p,i,c,t.keyboardDelegate,o]),{listBoxProps:g}=DD({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:b},e,n),y=xr({items:a,children:K=>{switch(K.type){case"section":return u.createElement(x8,{section:K});case"separator":return u.createElement(O4,K.props);case"item":return u.createElement(K4,{item:K});default:throw new Error("Unsupported node type in Menu: "+K.type)}}}),$=u.useRef(l),C=u.useRef(d);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!==d&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[l,d]);let w,E,P,k=!1,N=null,v=u.useRef(null);if(l&&r){w=r.useDraggableCollectionState({collection:a,selectionManager:s,preview:r.renderDragPreview?v:void 0}),r.useDraggableCollection({},w,n);let K=r.DragPreview;N=r.renderDragPreview?u.createElement(K,{ref:v},r.renderDragPreview):null}if(d&&r){E=r.useDroppableCollectionState({collection:a,selectionManager:s});let K=r.dropTargetDelegate||new r.ListDropTargetDelegate(a,n,{orientation:i,layout:o,direction:c});P=r.useDroppableCollection({keyboardDelegate:b,dropTargetDelegate:K},E,n),k=E.isDropTarget({type:"root"})}let{focusProps:L,isFocused:F,isFocusVisible:A}=Ye(),B={isDropTarget:k,isEmpty:e.collection.size===0,isFocused:F,isFocusVisible:A,layout:t.layout||"stack",state:e},R=he({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:B}),I=null;return e.collection.size===0&&t.renderEmptyState&&(I=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(B))),u.createElement(Ul,null,u.createElement("div",{...le(t),...X(g,L,P==null?void 0:P.collectionProps),...R,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":k||void 0,"data-empty":e.collection.size===0||void 0,"data-focused":F||void 0,"data-focus-visible":A||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},u.createElement(Oe,{values:[[wa,t],[To,e],[ec,{dragAndDropHooks:r,dragState:w,dropState:E}],[tc,{elementType:"div"}],[L4,{render:E8}]]},y),I,N))}function x8({section:e,className:t,style:n}){var r,o;let i=u.useContext(To),[a,s]=yt();var l;let{headingProps:d,groupProps:c}=PD({heading:s,"aria-label":(l=e.props["aria-label"])!==null&&l!==void 0?l:void 0}),f=xr({items:i.collection.getChildren(e.key),children:p=>{switch(p.type){case"header":return u.createElement(w8,{item:p,headingProps:d,headingRef:a});case"item":return u.createElement(K4,{item:p});default:throw new Error("Unsupported element type in Section: "+p.type)}}});return u.createElement("section",{...le(e.props),...c,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 w8({item:e,headingProps:t,headingRef:n}){let{ref:r,...o}=e.props;return u.createElement(V4,{...t,...o,ref:Ji(n,r)},e.rendered)}function C8(e,t){return va("item",e,t,e.children)}const D8=u.forwardRef(C8);function K4({item:e}){var t;let n=mt(e.props.ref),r=u.useContext(To),{dragAndDropHooks:o,dragState:i,dropState:a}=u.useContext(ec),{optionProps:s,labelProps:l,descriptionProps:d,...c}=ED({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},r,n),{hoverProps:f,isHovered:p}=Fe({isDisabled:!c.allowsSelection&&!c.hasAction}),h=null;i&&o&&(h=o.useDraggableItem({key:e.key},i));let b=null;a&&o&&(b=o.useDroppableItem({target:{type:"item",key:e.key,dropPosition:"on"}},a,n));let g=e.props,y=i&&i.isDragging(e.key),$=he({...g,id:void 0,children:e.rendered,defaultClassName:"react-aria-ListBoxItem",values:{...c,isHovered:p,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!i,isDragging:y,isDropTarget:b==null?void 0:b.isDropTarget}}),C=(o==null?void 0:o.renderDropIndicator)||(E=>u.createElement(h8,{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 w=g.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(w,{...X(s,f,h==null?void 0:h.dragProps,b==null?void 0:b.dropProps),...$,ref:n,"data-allows-dragging":!!i||void 0,"data-selected":c.isSelected||void 0,"data-disabled":c.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":c.isFocused||void 0,"data-focus-visible":c.isFocusVisible||void 0,"data-pressed":c.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":(b==null?void 0:b.isDropTarget)||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},u.createElement(Oe,{values:[[Yt,{slots:{label:l,description:d}}]]},$.children)),(o==null?void 0:o.useDropIndicator)&&r.collection.getKeyAfter(e.key)==null&&C({type:"item",key:e.key,dropPosition:"after"}))}function E8(e,t){t=mt(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(ec),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:u.createElement(S8,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function P8(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=he({...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 S8=u.forwardRef(P8),T8=u.createContext({placement:"bottom"}),dr=u.createContext(null);function A8(e,t){[e,t]=me(e,t,dr);let n=u.useContext(Nn),r=ga(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Cl(t,o.isOpen)||e.isExiting||!1;if(u.useContext(po)){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(M8,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i})}const j4=u.forwardRef(A8);function M8({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var o;let{popoverProps:i,underlayProps:a,arrowProps:s,placement:l}=S2({...r,offset:(o=r.offset)!==null&&o!==void 0?o:8},e),d=r.popoverRef,c=Xu(d,!!l)||r.isEntering||!1,f=he({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:l,isEntering:c,isExiting:t}}),p={...i.style,...f.style};return u.createElement(Mh,{isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...a,style:{position:"fixed",inset:0}}),u.createElement("div",{...X(le(r),i),...f,ref:d,slot:r.slot||void 0,style:p,"data-trigger":r.trigger,"data-placement":l,"data-entering":c||void 0,"data-exiting":t||void 0},!r.isNonModal&&u.createElement(Qs,{onDismiss:e.close}),u.createElement(T8.Provider,{value:{...s,placement:l}},f.children),u.createElement(Qs,{onDismiss:e.close})))}const k8=u.createContext(null),Nn=u.createContext(null);function R8(e,t){let n=e["aria-labelledby"];[e,t]=me(e,t,k8);let{dialogProps:r,titleProps:o}=GD({...e,"aria-labelledby":n},t),i=u.useContext(Nn),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",{...le(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(Oe,{values:[[t8,{slots:{[wl]:{},title:{...o,level:2}}}]]},a))}const _4=u.forwardRef(R8),F8=u.createContext(null),B8=u.createContext(null);function I8(e,t){[e,t]=me(e,t,F8);let{collection:n,document:r}=Zu(),{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(R4,null,u.createElement(Oe,{values:[[Eo,r],[wa,{items:(l=e.items)!==null&&l!==void 0?l:e.defaultItems}]]},o)),u.createElement(L8,{props:e,collection:n,comboBoxRef:t}))}function L8({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:o="key",allowsCustomValue:i}=e;i&&(o="text");let{contains:a}=z0({sensitivity:"base"});var s;let l=aE({defaultFilter:e.defaultFilter||a,...e,items:e.items,children:void 0,collection:t,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"}),d=u.useRef(null),c=u.useRef(null),f=u.useRef(null),p=u.useRef(null),[h,b]=yt();var g;let{buttonProps:y,inputProps:$,listBoxProps:C,labelProps:w,descriptionProps:E,errorMessageProps:P,...k}=VD({...Fn(e),label:b,inputRef:c,buttonRef:d,listBoxRef:f,popoverRef:p,name:o==="text"?r:void 0,validationBehavior:(g=e.validationBehavior)!==null&&g!==void 0?g:"native"},l),[N,v]=u.useState(null),L=u.useCallback(()=>{if(c.current){var R;let I=(R=d.current)===null||R===void 0?void 0:R.getBoundingClientRect(),K=c.current.getBoundingClientRect(),V=I?Math.min(I.left,K.left):K.left,T=I?Math.max(I.right,K.right):K.right;v(T-V+"px")}},[d,c,v]);Kl({ref:c,onResize:L});let F=u.useMemo(()=>({isOpen:l.isOpen,isDisabled:e.isDisabled||!1,isInvalid:k.isInvalid||!1,isRequired:e.isRequired||!1}),[l.isOpen,e.isDisabled,k.isInvalid,e.isRequired]),A=he({...e,values:F,defaultClassName:"react-aria-ComboBox"}),B=le(e);return delete B.id,u.createElement(Oe,{values:[[B8,l],[Mt,{...w,ref:h}],[Ju,{...y,ref:d,isPressed:l.isOpen}],[On,{...$,ref:c}],[Nn,l],[dr,{ref:p,triggerRef:c,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":N}}],[wa,{...C,ref:f}],[To,l],[Yt,{slots:{description:E,errorMessage:P}}],[Cr,{isInvalid:k.isInvalid,isDisabled:e.isDisabled||!1}],[Vn,k]]},u.createElement("div",{...B,...A,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":k.isInvalid||void 0,"data-required":e.isRequired||void 0}),r&&o==="key"&&u.createElement("input",{type:"hidden",name:r,value:l.selectedKey}))}const V8=u.forwardRef(I8),z4=u.createContext(null),O8=u.createContext(null),Ao=u.createContext(null),Ca=u.createContext(null);function N8(e,t){[e,t]=me(e,t,z4);let{locale:n}=Ve();var r;let o=Wu({...e,locale:n,createCalendar:O0,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt(),l=u.useRef(null);var d;let{labelProps:c,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=Hu({...Fn(e),label:s,inputRef:l,validationBehavior:(d=e.validationBehavior)!==null&&d!==void 0?d:"native"},o,i),y=he({...Fn(e),values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-DateField"}),$=le(e);return delete $.id,u.createElement(Oe,{values:[[Ao,o],[Cr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Mt,{...c,ref:a,elementType:"span"}],[Yt,{slots:{description:h,errorMessage:b}}],[Vn,g]]},u.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const K8=u.forwardRef(N8);function j8(e,t){[e,t]=me(e,t,O8);let{locale:n}=Ve();var r;let o=xE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt(),l=u.useRef(null);var d;let{labelProps:c,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=jD({...Fn(e),label:s,inputRef:l,validationBehavior:(d=e.validationBehavior)!==null&&d!==void 0?d:"native"},o,i),y=he({...e,values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-TimeField"}),$=le(e);return delete $.id,u.createElement(Oe,{values:[[Ca,o],[Cr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Mt,{...c,ref:a,elementType:"span"}],[Yt,{slots:{description:h,errorMessage:b}}],[Vn,g]]},u.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const _8=u.forwardRef(j8);function z8(e,t){let n=u.useContext(Ao),r=u.useContext(Ca);return n||r?u.createElement(U4,{...e,ref:t}):u.createElement(U8,{...e,ref:t})}const U8=u.forwardRef((e,t)=>{let[n,r]=me({slot:e.slot},t,z4),{locale:o}=Ve(),i=Wu({...n,locale:o,createCalendar:O0}),a=u.useRef(null),{fieldProps:s,inputProps:l}=Hu({...n,inputRef:a},i,r);return u.createElement(Oe,{values:[[Ao,i],[On,{...l,ref:a}],[Cr,{...s,ref:r,isInvalid:i.isInvalid}]]},u.createElement(U4,e))}),U4=u.forwardRef((e,t)=>{let{className:n,children:r}=e,o=u.useContext(Ao),i=u.useContext(Ca),a=o??i;return u.createElement(u.Fragment,null,u.createElement(Qu,{...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(So,null))}),H4=u.forwardRef(z8);function H8({segment:e,...t},n){let r=u.useContext(Ao),o=u.useContext(Ca),i=r??o,a=mt(n),{segmentProps:s}=UD(e,i,a),{focusProps:l,isFocused:d,isFocusVisible:c}=Ye(),{hoverProps:f,isHovered:p}=Fe({...t,isDisabled:i.isDisabled||e.type==="literal"}),h=he({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:p,isFocused:d,isFocusVisible:c},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return u.createElement("div",{...X(le(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":d||void 0,"data-focus-visible":c||void 0})}const G4=u.forwardRef(H8),W4=u.createContext({}),Y4=u.createContext(null),Mo=u.createContext(null),q4=u.createContext(null);function Z4(e){let{item:t,parentMenuRef:n}=e,r=u.useContext(Mo);return xr({items:r.collection.getChildren(t.key),children:i=>{switch(i.type){case"item":return u.createElement(Z8,{item:i,popover:t.rendered[1],parentMenuRef:n,delay:t.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+t.type)}}})}function G8(e,t){[e,t]=me(e,t,Y4);let{portal:n,collection:r}=qu(e);return u.createElement(u.Fragment,null,r.size>0&&u.createElement(W8,{props:e,collection:r,menuRef:t}),n)}function W8({props:e,collection:t,menuRef:n}){let r=FE({...e,collection:t,children:void 0}),[o,i]=u.useState(null),{menuProps:a}=AD(e,r,n),s=u.useContext(q4),l=u.useContext(dr),d=xr({items:r.collection,children:p=>{switch(p.type){case"section":return u.createElement(q8,{section:p,parentMenuRef:n});case"separator":return u.createElement(O4,p.props);case"item":return u.createElement(X4,{item:p});case"submenutrigger":return u.createElement(Z4,{item:p,parentMenuRef:n});default:throw new Error("Unsupported node type in Menu: "+p.type)}}}),c=(l==null?void 0:l.trigger)==="SubmenuTrigger";o0({ref:n,onInteractOutside:p=>{s&&!(o!=null&&o.contains(p.target))&&s.close()},isDisabled:c||(s==null?void 0:s.UNSTABLE_expandedKeysStack.length)===0});var f;return u.createElement(Ul,null,u.createElement("div",{...le(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(Oe,{values:[[Mo,r],[tc,{elementType:"div"}],[dr,{UNSTABLE_portalContainer:o||void 0}]]},d)),u.createElement("div",{ref:i,style:{width:"100vw",position:"absolute",top:0}}))}const Y8=u.forwardRef(G8);function q8({section:e,className:t,style:n,parentMenuRef:r,...o}){var i,a;let s=u.useContext(Mo),[l,d]=yt();var c;let{headingProps:f,groupProps:p}=MD({heading:d,"aria-label":(c=e["aria-label"])!==null&&c!==void 0?c:void 0}),h=xr({items:s.collection.getChildren(e.key),children:b=>{switch(b.type){case"header":{let{ref:g,...y}=b.props;return u.createElement(V4,{...f,...y,ref:Ji(l,g)},b.rendered)}case"item":return u.createElement(X4,{item:b});case"submenutrigger":return u.createElement(Z4,{item:b,parentMenuRef:r});default:throw new Error("Unsupported element type in Section: "+b.type)}}});return u.createElement("section",{...le(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 X4({item:e}){var t;let n=u.useContext(Mo),r=mt(e.props.ref),{menuItemProps:o,labelProps:i,descriptionProps:a,keyboardShortcutProps:s,...l}=Ig({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},n,r),d=e.props,{isFocusVisible:c,focusProps:f}=Ye(),{hoverProps:p,isHovered:h}=Fe({isDisabled:l.isDisabled}),b=he({...d,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...l,isHovered:h,isFocusVisible:c,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),g=d.href?"a":"div";return u.createElement(g,{...X(o,f,p),...b,ref:r,"data-disabled":l.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":c||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(Oe,{values:[[Yt,{slots:{label:i,description:a}}],[W4,s]]},b.children))}function Z8({item:e,popover:t,parentMenuRef:n,delay:r}){let o=u.useContext(Mo),i=ya(dr),a=mt(e.props.ref),s=u.useContext(q4),l=wE({triggerKey:e.key},s),d=u.useRef(null),{submenuTriggerProps:c,submenuProps:f,popoverProps:p}=BD({node:e,parentMenuRef:n,submenuRef:d,delay:r},l,a),{menuItemProps:h,labelProps:b,descriptionProps:g,keyboardShortcutProps:y,...$}=Ig({key:e.key,...c},o,a),C=e.props,{hoverProps:w,isHovered:E}=Fe({isDisabled:$.isDisabled}),{isFocusVisible:P,focusProps:k}=Ye(),N=he({...C,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...$,isHovered:E,isFocusVisible:P,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,hasSubmenu:!0,isOpen:l.isOpen}});return u.createElement(Oe,{values:[[Yt,{slots:{label:b,description:g}}],[W4,y],[Y4,f],[Nn,l],[dr,{ref:d,trigger:"SubmenuTrigger",triggerRef:a,placement:"end top",UNSTABLE_portalContainer:i.UNSTABLE_portalContainer||void 0,...p}]]},u.createElement("div",{...X(h,k,w),...N,ref:a,"data-disabled":$.isDisabled||void 0,"data-hovered":E||void 0,"data-focused":$.isFocused||void 0,"data-focus-visible":P||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},N.children),t)}const X8=u.createContext(null);function J8(e,t){[e,t]=me(e,t,X8);let{value:n=0,minValue:r=0,maxValue:o=100}=e;n=pt(n,r,o);let[i,a]=yt(),{meterProps:s,labelProps:l}=WD({...e,label:a}),d=(n-r)/(o-r)*100,c=he({...e,defaultClassName:"react-aria-Meter",values:{percentage:d,valueText:s["aria-valuetext"]}});return u.createElement("div",{...s,...c,ref:t,slot:e.slot||void 0},u.createElement(Mt.Provider,{value:{...l,ref:i,elementType:"span"}},c.children))}const Q8=u.forwardRef(J8),eP=u.createContext(null),nc=u.createContext(null);function tP(e,t){if(u.useContext(nc))return u.createElement(hp,{...e,modalRef:t},e.children);let{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,isEntering:d,isExiting:c,UNSTABLE_portalContainer:f,...p}=e;return u.createElement(J4,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:d,isExiting:c,UNSTABLE_portalContainer:f},u.createElement(hp,{...p,modalRef:t},l))}const nP=u.forwardRef(tP);function rP(e,t){[e,t]=me(e,t,eP);let n=u.useContext(Nn),r=ga(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=mt(t),a=u.useRef(null),s=Cl(i,o.isOpen),l=Cl(a,o.isOpen),d=s||l||e.isExiting||!1,c=At();return!o.isOpen&&!d||c?null:u.createElement(oP,{...e,state:o,isExiting:d,overlayRef:i,modalRef:a})}const J4=u.forwardRef(rP);function oP({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=T2(t,r,n),a=Xu(t.overlayRef)||t.isEntering||!1,s=he({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=cx(),d={...s.style,"--visual-viewport-height":l.height+"px"};return u.createElement(Mh,{isExiting:t.isExiting,portalContainer:e},u.createElement("div",{...X(le(t),i),...s,style:d,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},u.createElement(Oe,{values:[[nc,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Nn,r]]},s.children)))}function hp(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=u.useContext(nc),i=u.useContext(Nn),a=u.useMemo(()=>Ji(e.modalRef,n),[e.modalRef,n]),s=mt(a),l=Xu(s),d=he({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return u.createElement("div",{...X(le(e),t),...d,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&u.createElement(Qs,{onDismiss:i.close}),d.children)}const iP=u.createContext(null),aP=u.createContext(null);function sP(e,t){[e,t]=me(e,t,iP);let{locale:n}=Ve();var r;let o=CE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt();var l;let{labelProps:d,groupProps:c,inputProps:f,incrementButtonProps:p,decrementButtonProps:h,descriptionProps:b,errorMessageProps:g,...y}=qD({...Fn(e),label:s,validationBehavior:(l=e.validationBehavior)!==null&&l!==void 0?l:"native"},o,i),$=he({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),C=le(e);return delete C.id,u.createElement(Oe,{values:[[aP,o],[Cr,c],[On,{...f,ref:i}],[Mt,{...d,ref:a}],[Ju,{slots:{increment:p,decrement:h}}],[Yt,{slots:{description:b,errorMessage:g}}],[Vn,y]]},u.createElement("div",{...C,...$,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0}),e.name&&u.createElement("input",{type:"hidden",name:e.name,value:isNaN(o.numberValue)?"":o.numberValue}))}const lP=u.forwardRef(sP),uP=u.createContext(null);function cP(e,t){[e,t]=me(e,t,uP);let{value:n=0,minValue:r=0,maxValue:o=100,isIndeterminate:i=!1}=e;n=pt(n,r,o);let[a,s]=yt(),{progressBarProps:l,labelProps:d}=ty({...e,label:s}),c=i?void 0:(n-r)/(o-r)*100,f=he({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:l["aria-valuetext"],isIndeterminate:i}});return u.createElement("div",{...l,...f,ref:t,slot:e.slot||void 0},u.createElement(Mt.Provider,{value:{...d,ref:a,elementType:"span"}},f.children))}const Q4=u.forwardRef(cP),dP=u.createContext(null),Da=u.createContext(null),rc=u.createContext(null),e1=u.createContext(null);function fP(e,t){[e,t]=me(e,t,dP);let n=u.useRef(null),r=Ni(e.formatOptions),o=SE({...e,numberFormatter:r}),[i,a]=yt(),{groupProps:s,trackProps:l,labelProps:d,outputProps:c}=ZD({...e,label:a},o,n),f=he({...e,values:{orientation:o.orientation,isDisabled:o.isDisabled,state:o},defaultClassName:"react-aria-Slider"}),p=le(e);return delete p.id,u.createElement(Oe,{values:[[Da,o],[rc,{...l,ref:n}],[e1,c],[Mt,{...d,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 pP=u.forwardRef(fP);function hP(e,t){[e,t]=me(e,t,e1);let{children:n,style:r,className:o,...i}=e,a=u.useContext(Da),s=he({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 bP=u.forwardRef(hP);function mP(e,t){[e,t]=me(e,t,rc);let n=u.useContext(Da),{onHoverStart:r,onHoverEnd:o,onHoverChange:i,...a}=e,{hoverProps:s,isHovered:l}=Fe({onHoverStart:r,onHoverEnd:o,onHoverChange:i}),d=he({...e,defaultClassName:"react-aria-SliderTrack",values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:l,state:n}});return u.createElement("div",{...X(a,s),...d,ref:t,"data-hovered":l||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})}const gP=u.forwardRef(mP);function vP(e,t){let n=u.useContext(Da),{ref:r}=ya(rc),{index:o=0}=e,i=u.useRef(null),[a,s]=yt(),{thumbProps:l,inputProps:d,labelProps:c,isDragging:f,isFocused:p,isDisabled:h}=XD({...e,index:o,trackRef:r,inputRef:i,label:s},n),{focusProps:b,isFocusVisible:g}=Ye(),{hoverProps:y,isHovered:$}=Fe(e),C=he({...e,defaultClassName:"react-aria-SliderThumb",values:{state:n,isHovered:$,isDragging:f,isFocused:p,isFocusVisible:g,isDisabled:h}}),w=le(e);return delete w.id,u.createElement("div",{...X(w,l,y),...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":g||void 0,"data-disabled":h||void 0},u.createElement(ia,null,u.createElement("input",{ref:i,...X(d,b)})),u.createElement(Oe,{values:[[Mt,{...c,ref:a}]]},C.children))}const yP=u.forwardRef(vP),$P=u.createContext(null);function xP(e,t){[e,t]=me(e,t,$P);let n=u.useRef(null),r=ha(e),{labelProps:o,inputProps:i,isSelected:a,isDisabled:s,isReadOnly:l,isPressed:d}=JD({...Fn(e),children:typeof e.children=="function"?!0:e.children},r,n),{isFocused:c,isFocusVisible:f,focusProps:p}=Ye(),h=e.isDisabled||e.isReadOnly,{hoverProps:b,isHovered:g}=Fe({...e,isDisabled:h}),y=he({...e,defaultClassName:"react-aria-Switch",values:{isSelected:a,isPressed:d,isHovered:g,isFocused:c,isFocusVisible:f,isDisabled:s,isReadOnly:l,state:r}}),$=le(e);return delete $.id,u.createElement("label",{...X($,o,b,y),ref:t,slot:e.slot||void 0,"data-selected":a||void 0,"data-pressed":d||void 0,"data-hovered":g||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0,"data-disabled":s||void 0,"data-readonly":l||void 0},u.createElement(ia,{elementType:"span"},u.createElement("input",{...i,...p,ref:n})),y.children)}const wP=u.forwardRef(xP),oc=u.createContext(null),ic=u.createContext(null);function CP(e,t){[e,t]=me(e,t,oc);let{collection:n,document:r}=Zu(),{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(R4,null,u.createElement(Eo.Provider,{value:r},o)),u.createElement(DP,{props:e,collection:n,tabsRef:t}))}function DP({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,o=TE({...e,collection:n,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye({within:!0}),l=u.useMemo(()=>({orientation:r,isFocusWithin:a,isFocusVisible:s}),[r,a,s]),d=he({...e,defaultClassName:"react-aria-Tabs",values:l});return u.createElement("div",{...le(e),...i,...d,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(Oe,{values:[[oc,e],[ic,o]]},d.children))}const EP=u.forwardRef(CP);function PP(e,t){return u.useContext(Eo)?u.createElement(A4,e):u.createElement(SP,{props:e,forwardedRef:t})}function SP({props:e,forwardedRef:t}){let n=u.useContext(ic),{orientation:r="horizontal",keyboardActivation:o="automatic"}=ya(oc),i=mt(t),{tabListProps:a}=nE({...e,orientation:r,keyboardActivation:o},n,i),s=he({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:r,state:n}}),l=le(e);return delete l.id,u.createElement("div",{...l,...a,ref:i,...s,"data-orientation":r||void 0},[...n.collection].map(d=>u.createElement(kP,{key:d.key,item:d,state:n})))}const TP=u.forwardRef(PP);function AP(e,t){return va("item",e,t,e.children)}const MP=u.forwardRef(AP);function kP({item:e,state:t}){let n=mt(e.props.ref),{tabProps:r,isSelected:o,isDisabled:i,isPressed:a}=QD({key:e.key,...e.props},t,n),{focusProps:s,isFocused:l,isFocusVisible:d}=Ye(),{hoverProps:c,isHovered:f}=Fe({isDisabled:i}),p=he({...e.props,children:e.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:i,isFocused:l,isFocusVisible:d,isPressed:a,isHovered:f,state:t}}),h=e.props.href?"a":"div";return u.createElement(h,{...X(r,s,c,p),ref:n,"data-selected":o||void 0,"data-disabled":i||void 0,"data-focus-visible":d||void 0,"data-pressed":a||void 0,"data-hovered":f||void 0})}function RP(e,t){const n=u.useContext(ic);let r=mt(t),{tabPanelProps:o}=eE(e,n,r),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(),l=n.selectedKey===e.id,d=he({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!l,state:n}});if(!l&&!e.shouldForceMount)return null;let c=le(e);delete c.id;let f=l?X(c,o,i,d):d;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 FP=$a(RP),BP=u.createContext({}),IP=u.createContext(null);function LP(e,t){[e,t]=me(e,t,IP);let n=u.useRef(null),[r,o]=yt(),[i,a]=u.useState("input");var s;let{labelProps:l,inputProps:d,descriptionProps:c,errorMessageProps:f,...p}=zu({...Fn(e),inputElementType:i,label:o,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"},n),h=u.useCallback(g=>{n.current=g,g&&a(g instanceof HTMLTextAreaElement?"textarea":"input")},[]),b=he({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid},defaultClassName:"react-aria-TextField"});return u.createElement("div",{...le(e),...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0},u.createElement(Oe,{values:[[Mt,{...l,ref:r}],[On,{...d,ref:h}],[BP,{...d,ref:h}],[Yt,{slots:{description:c,errorMessage:f}}],[Vn,p]]},b.children))}const Ea=u.forwardRef(LP),VP=u.createContext({});function OP(e,t){[e,t]=me(e,t,VP);let n=ha(e),{buttonProps:r,isPressed:o}=iD(e,n,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(e),{hoverProps:l,isHovered:d}=Fe(e),c=he({...e,values:{isHovered:d,isPressed:o,isFocused:a,isSelected:n.isSelected,isFocusVisible:s,isDisabled:e.isDisabled||!1,state:n},defaultClassName:"react-aria-ToggleButton"});return u.createElement("button",{...X(r,i,l),...c,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":d||void 0,"data-focus-visible":s||void 0})}const NP=u.forwardRef(OP),KP=_.styled(ZE)`
155
+ `,Ic={hidden:{opacity:0,transform:"scale(0)"},show:{opacity:1,transform:"scale(1)"}};function Ac({children:e,isInvisible:r,disableAnimation:t,placement:o,shape:n,...s}){const i=d.useId(),l=t?{duration:0}:{type:"spring",bounce:.3};return p.jsxs(jc,{children:[e,p.jsx(Mc,{placement:o,shape:n,children:p.jsx(Re.AnimatePresence,{children:!r&&p.jsx(Re.motion.div,{variants:Ic,initial:t?"show":"hidden",transition:l,animate:"show",exit:"hidden",children:p.jsx(_c,{...s,isInvisible:r,showOutline:s.showOutline??!0})},`badge-${i}`)})})]})}function Lc({children:e,...r}){return p.jsx("span",{...r,"aria-hidden":"true",children:e??p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.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"}),p.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"}),p.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"})]})})}const Nc=m.styled(D.Breadcrumbs)`
180
156
  display: flex;
181
157
  align-items: center;
182
158
  list-style: none;
183
159
  margin: 0 0 1rem;
184
160
  padding: 0.3125rem 0 0;
185
161
  font-size: 0.9rem;
186
- `,jP=_.styled(B4)`
162
+ `,Dc=m.styled(D.Breadcrumb)`
187
163
  display: flex;
188
164
  align-items: center;
189
- `,_P=_.styled(B4)`
165
+ `,Fc=m.styled(D.Breadcrumb)`
190
166
  display: flex;
191
167
  align-items: center;
192
168
  margin: 0 0.5rem;
193
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[600])??x.colors.slate[600]}};
169
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[600])??c.colors.slate[600]}};
194
170
 
195
171
  > svg {
196
172
  width: 1rem;
197
173
  height: 1rem;
198
174
  }
199
- `,zP=_.styled(xa)`
200
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[600])??x.colors.slate[600]}};
175
+ `,zc=m.styled(D.Link)`
176
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[600])??c.colors.slate[600]}};
201
177
  text-decoration: none;
202
178
  cursor: pointer;
203
179
 
@@ -206,23 +182,23 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
206
182
  }
207
183
  &[data-hovered] {
208
184
  text-decoration: underline;
209
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
185
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
210
186
  }
211
187
 
212
188
  &[data-current] {
213
189
  font-weight: 600;
214
190
  cursor: default;
215
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
191
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
216
192
  }
217
193
 
218
194
  &[data-disabled] {
219
195
  cursor: default;
220
196
 
221
197
  &:not([data-current]) {
222
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
198
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
223
199
  }
224
200
  }
225
- `;function UP({children:e,...t}){return S.jsx(jP,{...t,children:e})}function HP(e){return S.jsx(zP,{...e})}function GP({children:e,...t}){return S.jsx(_P,{...t,children:e??S.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:S.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}function WP({children:e,...t}){return S.jsx(KP,{...t,children:e})}const Dt=_.styled(I4)`
201
+ `;function Vc({children:e,...r}){return p.jsx(Dc,{...r,children:e})}function Bc(e){return p.jsx(zc,{...e})}function Hc({children:e,...r}){return p.jsx(Fc,{...r,children:e??p.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:p.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}function Gc({children:e,...r}){return p.jsx(Nc,{...r,children:e})}const Me=m.styled(D.Button)`
226
202
  display: flex;
227
203
  align-items: center;
228
204
  padding: 0.4rem 2rem;
@@ -235,20 +211,20 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
235
211
  justify-content: center;
236
212
  transition: all ease 200ms;
237
213
  height: ${({size:e})=>{switch(e){case"sm":return"2rem";case"lg":return"3rem";case"md":default:return"2.5rem"}}};
238
- background-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??x.colors.slate[800]}}};
239
- border-color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":return"transparent";case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[300])??x.colors.slate[300];case"solid":default:return((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[800])??x.colors.slate[800]}}};
240
- color: ${({variant:e,theme:t})=>{var n,r,o;switch(e){case"ghost":case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[900])??x.colors.slate[900];case"solid":default:return((o=t==null?void 0:t.colors)==null?void 0:o.white)??x.colors.white}}};
214
+ background-color: ${({variant:e,theme:r})=>{var t,o;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[800])??c.colors.slate[800]}}};
215
+ border-color: ${({variant:e,theme:r})=>{var t,o,n,s;switch(e){case"ghost":return"transparent";case"outline":return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[300])??c.colors.slate[300];case"solid":default:return((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[800])??c.colors.slate[800]}}};
216
+ color: ${({variant:e,theme:r})=>{var t,o,n;switch(e){case"ghost":case"outline":return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[900])??c.colors.slate[900];case"solid":default:return((n=r==null?void 0:r.colors)==null?void 0:n.white)??c.colors.white}}};
241
217
 
242
218
  &[data-hovered] {
243
- background-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":return"transparent";case"outline":return"transparent";case"solid":default:return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[900])??x.colors.slate[900]}}};
244
- border-color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":return"transparent";case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[400])??x.colors.slate[400];case"solid":default:return((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[900])??x.colors.slate[900]}}};
219
+ background-color: ${({variant:e,theme:r})=>{var t,o;switch(e){case"ghost":return"transparent";case"outline":return"transparent";case"solid":default:return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[900])??c.colors.slate[900]}}};
220
+ border-color: ${({variant:e,theme:r})=>{var t,o,n,s;switch(e){case"ghost":return"transparent";case"outline":return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[400])??c.colors.slate[400];case"solid":default:return((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[900])??c.colors.slate[900]}}};
245
221
  }
246
222
 
247
223
  &[data-focused] {
248
224
  outline: 2px solid
249
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
250
- background-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":return"transparent";case"outline":return"transparent";case"solid":default:return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[900])??x.colors.slate[900]}}};
251
- border-color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":return"transparent";case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[400])??x.colors.slate[400];case"solid":default:return((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[900])??x.colors.slate[900]}}};
225
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
226
+ background-color: ${({variant:e,theme:r})=>{var t,o;switch(e){case"ghost":return"transparent";case"outline":return"transparent";case"solid":default:return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[900])??c.colors.slate[900]}}};
227
+ border-color: ${({variant:e,theme:r})=>{var t,o,n,s;switch(e){case"ghost":return"transparent";case"outline":return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[400])??c.colors.slate[400];case"solid":default:return((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[900])??c.colors.slate[900]}}};
252
228
  }
253
229
 
254
230
  &[data-pressed] {
@@ -256,227 +232,227 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
256
232
  }
257
233
 
258
234
  &[data-disabled] {
259
- background-color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a;switch(n){case"ghost":case"outline":return"transparent";case"solid":default:return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[900])??x.colors.slate[900]:((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[100])??x.colors.slate[100]}}};
260
- border-color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a,s,l,d,c;switch(n){case"ghost":return"transparent";case"outline":return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[300])??x.colors.slate[300]:((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[200])??x.colors.slate[200];case"solid":default:return e?((l=(s=t==null?void 0:t.colors)==null?void 0:s.slate)==null?void 0:l[900])??x.colors.slate[900]:((c=(d=t==null?void 0:t.colors)==null?void 0:d.slate)==null?void 0:c[200])??x.colors.slate[200]}}};
261
- color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a,s,l,d;switch(n){case"ghost":case"outline":return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[900])??x.colors.slate[900]:((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[500])??x.colors.slate[500];case"solid":default:return e?((s=t==null?void 0:t.colors)==null?void 0:s.white)??x.colors.white:((d=(l=t==null?void 0:t.colors)==null?void 0:l.slate)==null?void 0:d[400])??x.colors.slate[400]}}};
235
+ background-color: ${({isLoading:e,theme:r,variant:t})=>{var o,n,s,i;switch(t){case"ghost":case"outline":return"transparent";case"solid":default:return e?((n=(o=r==null?void 0:r.colors)==null?void 0:o.slate)==null?void 0:n[900])??c.colors.slate[900]:((i=(s=r==null?void 0:r.colors)==null?void 0:s.slate)==null?void 0:i[100])??c.colors.slate[100]}}};
236
+ border-color: ${({isLoading:e,theme:r,variant:t})=>{var o,n,s,i,l,u,g,b;switch(t){case"ghost":return"transparent";case"outline":return e?((n=(o=r==null?void 0:r.colors)==null?void 0:o.slate)==null?void 0:n[300])??c.colors.slate[300]:((i=(s=r==null?void 0:r.colors)==null?void 0:s.slate)==null?void 0:i[200])??c.colors.slate[200];case"solid":default:return e?((u=(l=r==null?void 0:r.colors)==null?void 0:l.slate)==null?void 0:u[900])??c.colors.slate[900]:((b=(g=r==null?void 0:r.colors)==null?void 0:g.slate)==null?void 0:b[200])??c.colors.slate[200]}}};
237
+ color: ${({isLoading:e,theme:r,variant:t})=>{var o,n,s,i,l,u,g;switch(t){case"ghost":case"outline":return e?((n=(o=r==null?void 0:r.colors)==null?void 0:o.slate)==null?void 0:n[900])??c.colors.slate[900]:((i=(s=r==null?void 0:r.colors)==null?void 0:s.slate)==null?void 0:i[500])??c.colors.slate[500];case"solid":default:return e?((l=r==null?void 0:r.colors)==null?void 0:l.white)??c.colors.white:((g=(u=r==null?void 0:r.colors)==null?void 0:u.slate)==null?void 0:g[400])??c.colors.slate[400]}}};
262
238
  }
263
- `;function YP({children:e,isDisabled:t=!1,isLoading:n=!1,size:r="md",variant:o="solid",...i}){return S.jsx(Dt,{isDisabled:t||n,isLoading:n,size:r,variant:o,...i,children:e})}const qP=_.styled.div`
239
+ `;function Wc({children:e,isDisabled:r=!1,isLoading:t=!1,size:o="md",variant:n="solid",...s}){return p.jsx(Me,{isDisabled:r||t,isLoading:t,size:o,variant:n,...s,children:e})}const Uc=m.styled.div`
264
240
  display: flex;
265
241
  flex-direction: column;
266
- `;function ZP({children:e,...t}){return S.jsx(qP,{...t,children:e})}const at=_.styled.div`
242
+ `;function Kc({children:e,...r}){return p.jsx(Uc,{...r,children:e})}const he=m.styled.div`
267
243
  width: 1.5rem;
268
244
  height: 1.5rem;
269
245
  border: 1px solid
270
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
246
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
271
247
  border-radius: 4px;
272
248
  transition: all ease 200ms;
273
249
  display: flex;
274
250
  align-items: center;
275
251
  justify-content: center;
276
- `,vi=_.styled.svg`
252
+ `,Nr=m.styled.svg`
277
253
  width: 1rem;
278
254
  height: 1rem;
279
255
  fill: none;
280
- stroke: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
256
+ stroke: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
281
257
  stroke-width: 3px;
282
258
  stroke-dasharray: 22px;
283
259
  stroke-dashoffset: 66;
284
260
  transition: all 200ms;
285
- `,XP=_.styled(u8)`
261
+ `,Yc=m.styled(D.Checkbox)`
286
262
  display: flex;
287
263
  align-items: center;
288
264
  gap: 0.5rem;
289
265
  font-size: 0.8rem;
290
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
266
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
291
267
  forced-color-adjust: none;
292
268
 
293
- &[data-hovered] ${at} {
294
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
269
+ &[data-hovered] ${he} {
270
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
295
271
  }
296
272
 
297
- &[data-focused] ${at} {
298
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
273
+ &[data-focused] ${he} {
274
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
299
275
  outline: 2px solid
300
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
276
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
301
277
  }
302
278
 
303
279
  &[data-disabled] {
304
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
280
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
305
281
 
306
282
  &[data-indeterminate] {
307
- & ${vi} {
283
+ & ${Nr} {
308
284
  stroke: none;
309
- fill: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
285
+ fill: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
310
286
  }
311
287
  }
312
288
 
313
- &[data-indeterminate] ${at} {
314
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
315
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
289
+ &[data-indeterminate] ${he} {
290
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
291
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
316
292
  }
317
293
  }
318
- &[data-disabled] ${at} {
319
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
320
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
294
+ &[data-disabled] ${he} {
295
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
296
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
321
297
  }
322
298
 
323
299
  &[data-invalid] {
324
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
300
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
325
301
 
326
- ${at} {
327
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[100])??x.colors.red[100]}};
328
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
302
+ ${he} {
303
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[100])??c.colors.red[100]}};
304
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
329
305
  border: 1px solid
330
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
306
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
331
307
  }
332
308
 
333
- &[data-hovered] ${at} {
309
+ &[data-hovered] ${he} {
334
310
  border: 1px solid
335
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
311
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
336
312
  }
337
313
 
338
- &[data-focused] ${at} {
314
+ &[data-focused] ${he} {
339
315
  border: 1px solid
340
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
316
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
341
317
  outline: 2px solid
342
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[200])??x.colors.red[200]}};
318
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[200])??c.colors.red[200]}};
343
319
  }
344
320
 
345
321
  &[data-selected],
346
322
  &[data-indeterminate] {
347
- ${at} {
348
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
323
+ ${he} {
324
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
349
325
  border: 1px solid
350
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
326
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
351
327
  }
352
328
 
353
- &[data-pressed] ${at} {
354
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
329
+ &[data-pressed] ${he} {
330
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
355
331
  border: 1px solid
356
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
332
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
357
333
  }
358
334
  }
359
335
  }
360
336
 
361
337
  &[data-selected],
362
338
  &[data-indeterminate] {
363
- ${at} {
364
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
365
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
339
+ ${he} {
340
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
341
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
366
342
  }
367
343
 
368
- &[data-pressed] ${at} {
369
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
370
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
344
+ &[data-pressed] ${he} {
345
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
346
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
371
347
  }
372
348
 
373
- ${vi} {
349
+ ${Nr} {
374
350
  stroke-dashoffset: 44;
375
351
  }
376
352
  }
377
353
 
378
354
  &[data-indeterminate] {
379
- & ${vi} {
355
+ & ${Nr} {
380
356
  stroke: none;
381
- fill: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
357
+ fill: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
382
358
  }
383
359
  }
384
- `;function JP({children:e,...t}){return S.jsx(XP,{...t,children:({isIndeterminate:n})=>S.jsxs(S.Fragment,{children:[S.jsx(at,{children:S.jsx(vi,{viewBox:"0 0 18 18","aria-hidden":"true",children:n?S.jsx("rect",{x:1,y:7.5,width:15,height:3}):S.jsx("polyline",{points:"1 9 7 14 15 4"})})}),e]})})}const QP=_.styled.div`
360
+ `;function Xc({children:e,...r}){return p.jsx(Yc,{...r,children:({isIndeterminate:t})=>p.jsxs(p.Fragment,{children:[p.jsx(he,{children:p.jsx(Nr,{viewBox:"0 0 18 18","aria-hidden":"true",children:t?p.jsx("rect",{x:1,y:7.5,width:15,height:3}):p.jsx("polyline",{points:"1 9 7 14 15 4"})})}),e]})})}const qc=m.styled.div`
385
361
  width: 100%;
386
- `,e9=_.styled(yr.div)`
362
+ `,Zc=m.styled(Re.motion.div)`
387
363
  width: 100%;
388
364
  overflow: hidden;
389
- `,ac=u.createContext({});function t9({children:e,...t}){const n=u.useId(),[r,o]=bt(t.isOpen,t.defaultOpen||!1,t.onOpenChange),i=u.useRef(null),a=u.useCallback(()=>{o(!r)},[o,r]);return S.jsx(Oe,{values:[[ac,{isOpen:r,id:n,defaultOpen:t.defaultOpen||!1}]],children:S.jsx(Cx,{ref:i,isPressed:r,onPress:a,"aria-expanded":r,"aria-controls":n,children:S.jsx(QP,{children:e})})})}function n9({children:e}){const{isOpen:t,id:n,defaultOpen:r}=u.useContext(ac);return S.jsx(e9,{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 r9=e=>{let t="";return Object.values(e).forEach(n=>{t+=`
390
- @media (min-width: ${n}) {
391
- max-width: ${n};
365
+ `,Qt=d.createContext({});function Jc({children:e,...r}){const t=d.useId(),[o,n]=Bn(r.isOpen,r.defaultOpen||!1,r.onOpenChange),s=d.useRef(null),i=d.useCallback(()=>{n(!o)},[n,o]);return p.jsx(D.Provider,{values:[[Qt,{isOpen:o,id:t,defaultOpen:r.defaultOpen||!1}]],children:p.jsx(jl,{ref:s,isPressed:o,onPress:i,"aria-expanded":o,"aria-controls":t,children:p.jsx(qc,{children:e})})})}function Qc({children:e}){const{isOpen:r,id:t,defaultOpen:o}=d.useContext(Qt);return p.jsx(Zc,{id:t,variants:{hidden:{height:"0px",opacity:0},visible:{height:"auto",opacity:1}},initial:o?"visible":"hidden",animate:r?"visible":"hidden",transition:{type:"spring",bounce:0},children:e})}const ed=e=>{let r="";return Object.values(e).forEach(t=>{r+=`
366
+ @media (min-width: ${t}) {
367
+ max-width: ${t};
392
368
  }
393
- `}),t},o9=_.styled.div`
369
+ `}),r},rd=m.styled.div`
394
370
  width: 100%;
395
371
  margin: 0 auto;
396
372
  padding: 0 1rem;
397
373
 
398
- ${({theme:e})=>r9((e==null?void 0:e.screens)??x.screens)}
399
- `,i9=u.forwardRef(({children:e,...t},n)=>S.jsx(o9,{...t,ref:n,children:e})),a9=_.styled(yr(j4))`
374
+ ${({theme:e})=>ed((e==null?void 0:e.screens)??c.screens)}
375
+ `,td=d.forwardRef(({children:e,...r},t)=>p.jsx(rd,{...r,ref:t,children:e})),od=m.styled(Re.motion(D.Popover))`
400
376
  padding: 0.4rem 0;
401
377
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
402
378
  border-radius: 0.375rem;
403
379
  width: 14rem;
404
- background: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
380
+ background: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
405
381
  border: 1px solid
406
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
407
- `,t1=u.forwardRef(({children:e,key:t,onAction:n,setAnimation:r,animation:o="hidden",...i},a)=>S.jsx(a9,{ref:a,isExiting:o==="hidden",onAnimationComplete:s=>{r(l=>s==="hidden"&&l==="hidden"?"unmounted":l)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:o,...i,children:S.jsx(Y8,{style:{outline:"none"},onAction:n,children:e})},t));t1.defaultProps={key:void 0,onAction:void 0};const s9=_.styled(K8)`
408
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
409
- `,l9=_.styled(H4)`
382
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
383
+ `;function da({children:e,key:r,onAction:t,setAnimation:o,animation:n="hidden",...s}){return p.jsx(od,{isExiting:n==="hidden",onAnimationComplete:i=>{o(l=>i==="hidden"&&l==="hidden"?"unmounted":l)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:n,...s,children:p.jsx(D.Menu,{style:{outline:"none"},onAction:t,children:e})},r)}da.defaultProps={key:void 0,onAction:void 0};const nd=m.styled(D.DateField)`
384
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
385
+ `,ad=m.styled(D.DateInput)`
410
386
  display: flex;
411
387
  align-items: center;
412
388
  border: 1px solid
413
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
389
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
414
390
  font-size: 0.9rem;
415
391
  padding: 0 0.25rem;
416
392
  height: 2.5rem;
417
393
  margin: 0;
418
394
  border-radius: 0.375rem;
419
- background: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
420
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
395
+ background: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
396
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
421
397
  width: 100%;
422
398
  transition: all ease 200ms;
423
399
 
424
400
  &[data-hovered] {
425
401
  border: 1px solid
426
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
402
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
427
403
  }
428
404
 
429
405
  &[data-focus-within] {
430
406
  border: 1px solid
431
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
407
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
432
408
  outline: 2px solid
433
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
409
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
434
410
  }
435
411
 
436
412
  &[data-disabled] {
437
413
  border: 1px solid
438
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
439
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
414
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
415
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
440
416
  }
441
417
 
442
418
  &[data-invalid] {
443
419
  border: 1px solid
444
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
445
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[100])??x.colors.red[100]}};
446
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
420
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
421
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[100])??c.colors.red[100]}};
422
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
447
423
 
448
424
  &[data-hovered] {
449
425
  border: 1px solid
450
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
426
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
451
427
  }
452
428
 
453
429
  &[data-focus-within] {
454
430
  border: 1px solid
455
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
431
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
456
432
  outline: 2px solid
457
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[200])??x.colors.red[200]}};
433
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[200])??c.colors.red[200]}};
458
434
  }
459
435
  }
460
- `,u9=_.styled(G4)`
436
+ `,sd=m.styled(D.DateSegment)`
461
437
  padding: 0.25rem;
462
438
  font-variant-numeric: tabular-nums;
463
439
  text-align: end;
464
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
440
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
465
441
 
466
442
  &[data-invalid] {
467
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
443
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
468
444
  }
469
445
 
470
446
  &[data-disabled] {
471
447
  cursor: default;
472
448
  user-select: none;
473
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
449
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
474
450
  }
475
451
 
476
452
  &[data-focused],
477
453
  &[data-focus-visible] {
478
454
  outline: 1px auto
479
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
455
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
480
456
  }
481
457
 
482
458
  &[data-type='literal'] {
@@ -484,153 +460,153 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
484
460
  }
485
461
 
486
462
  &[data-placeholder] {
487
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
463
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
488
464
 
489
465
  &[data-invalid] {
490
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
466
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
491
467
 
492
468
  &:focus {
493
- color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
469
+ color: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
494
470
  }
495
471
  }
496
472
  }
497
473
 
498
474
  &:focus:not([aria-readonly]) {
499
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
500
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
475
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
476
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
501
477
  outline: none;
502
478
  border-radius: 0.375rem;
503
479
  caret-color: transparent;
504
480
 
505
481
  &[data-invalid] {
506
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
507
- color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
482
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
483
+ color: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
508
484
  }
509
485
  }
510
- `,c9=_.styled(qt)`
486
+ `,id=m.styled(D.Label)`
511
487
  display: flex;
512
488
  font-size: 0.8rem;
513
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
514
- `,d9=_.styled(Po)`
489
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
490
+ `,ld=m.styled(D.FieldError)`
515
491
  display: flex;
516
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
492
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
517
493
  font-size: 0.8rem;
518
- `,f9=_.styled(wr)`
494
+ `,cd=m.styled(D.Text)`
519
495
  display: flex;
520
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
496
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
521
497
  font-size: 0.8rem;
522
- `;function n1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(s9,{...r,children:[S.jsx(c9,{children:e}),S.jsx(l9,{children:o=>S.jsx(u9,{segment:o})}),S.jsx(f9,{slot:"description",children:t}),S.jsx(d9,{children:n})]})}n1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const p9=_.styled.div`
498
+ `;function ua({label:e,description:r,errorMessage:t,...o}){return p.jsxs(nd,{...o,children:[p.jsx(id,{children:e}),p.jsx(ad,{children:n=>p.jsx(sd,{segment:n})}),p.jsx(cd,{slot:"description",children:r}),p.jsx(ld,{children:t})]})}ua.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const dd=m.styled.div`
523
499
  width: ${({orientation:e})=>e==="vertical"?"1px":"100%"};
524
500
  height: ${({orientation:e})=>e==="vertical"?"auto":"1px"};
525
501
  margin: ${({orientation:e})=>e==="vertical"?"0 1rem":"1rem 0"};
526
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
527
- `;function h9(e){const{orientation:t}=e,{separatorProps:n}=Vy(e);return S.jsx(p9,{...n,orientation:t})}const xn=_.styled(So)`
502
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
503
+ `;function ud(e){const{orientation:r}=e,{separatorProps:t}=Hs.useSeparator(e);return p.jsx(dd,{...t,orientation:r})}const Ge=m.styled(D.Input)`
528
504
  border: 1px solid
529
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
505
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
530
506
  font-size: 0.9rem;
531
507
  padding: 0 0.5rem;
532
508
  height: 2.5rem;
533
509
  margin: 0;
534
510
  border-radius: 0.375rem;
535
- background: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
536
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
511
+ background: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
512
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
537
513
  width: 100%;
538
514
  transition: all ease 200ms;
539
515
 
540
516
  &[data-hovered] {
541
517
  border: 1px solid
542
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
518
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
543
519
  }
544
520
 
545
521
  &[data-focused] {
546
522
  border: 1px solid
547
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
523
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
548
524
  outline: 2px solid
549
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
525
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
550
526
  }
551
527
 
552
528
  &[data-disabled] {
553
529
  border: 1px solid
554
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
555
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
530
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
531
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
556
532
  }
557
533
 
558
534
  &[data-invalid] {
559
535
  border: 1px solid
560
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
561
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[100])??x.colors.red[100]}};
562
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
536
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
537
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[100])??c.colors.red[100]}};
538
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
563
539
 
564
540
  &[data-hovered] {
565
541
  border: 1px solid
566
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
542
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
567
543
  }
568
544
 
569
545
  &[data-focused] {
570
546
  border: 1px solid
571
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
547
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
572
548
  outline: 2px solid
573
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[200])??x.colors.red[200]}};
549
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[200])??c.colors.red[200]}};
574
550
  }
575
551
  }
576
552
 
577
553
  ::placeholder {
578
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
554
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
579
555
  }
580
- `,r1=_.styled(qt)`
556
+ `,fa=m.styled(D.Label)`
581
557
  display: flex;
582
558
  font-size: 0.8rem;
583
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
584
- `,b9=_.styled(Ea)`
559
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
560
+ `,fd=m.styled(D.TextField)`
585
561
  display: flex;
586
562
  flex-direction: column;
587
563
  width: 100%;
588
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
589
- `,o1=_.styled(Po)`
564
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
565
+ `,pa=m.styled(D.FieldError)`
590
566
  display: flex;
591
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
567
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
592
568
  font-size: 0.8rem;
593
- `,i1=_.styled(wr)`
569
+ `,ba=m.styled(D.Text)`
594
570
  display: flex;
595
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
571
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
596
572
  font-size: 0.8rem;
597
- `;function a1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(b9,{...r,children:[S.jsx(r1,{children:e}),S.jsx(xn,{}),t&&S.jsx(i1,{slot:"description",children:t}),S.jsx(o1,{children:n})]})}a1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const m9=_.styled(xa)`
598
- color: ${({isDisabled:e,theme:t})=>{var n,r,o,i;return e?((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[300])??x.colors.slate[300]:((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[500])??x.colors.slate[500]}};
573
+ `;function ga({label:e,description:r,errorMessage:t,...o}){return p.jsxs(fd,{...o,children:[p.jsx(fa,{children:e}),p.jsx(Ge,{}),r&&p.jsx(ba,{slot:"description",children:r}),p.jsx(pa,{children:t})]})}ga.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const pd=m.styled(D.Link)`
574
+ color: ${({isDisabled:e,theme:r})=>{var t,o,n,s;return e?((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[300])??c.colors.slate[300]:((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[500])??c.colors.slate[500]}};
599
575
  cursor: ${({isDisabled:e})=>e?"default":"pointer"};
600
576
  text-decoration: none;
601
577
  transition: 0.3s color;
602
578
  outline: none;
603
579
 
604
580
  &:hover {
605
- color: ${({isDisabled:e,theme:t})=>{var n,r,o,i;return e?((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[300])??x.colors.slate[300]:((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[800])??x.colors.slate[800]}};
581
+ color: ${({isDisabled:e,theme:r})=>{var t,o,n,s;return e?((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[300])??c.colors.slate[300]:((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[800])??c.colors.slate[800]}};
606
582
  }
607
- `;function g9({children:e,...t}){return S.jsx(m9,{...t,children:e})}const v9=_.styled(Q8)`
583
+ `;function bd({children:e,...r}){return p.jsx(pd,{...r,children:e})}const gd=m.styled(D.Meter)`
608
584
  display: flex;
609
585
  flex-direction: column;
610
586
  gap: 0.5rem;
611
- `,y9=_.styled.div`
587
+ `,vd=m.styled.div`
612
588
  display: flex;
613
589
  justify-content: space-between;
614
590
  gap: 1rem;
615
- `,$9=_.styled(qt)`
591
+ `,yd=m.styled(D.Label)`
616
592
  font-size: 0.875rem;
617
- `,x9=_.styled.span`
593
+ `,$d=m.styled.span`
618
594
  font-size: 0.875rem;
619
595
  font-variant-numeric: tabular-nums;
620
596
  margin-left: auto;
621
- `,w9=_.styled.div`
597
+ `,xd=m.styled.div`
622
598
  height: 0.625rem;
623
599
  border-radius: 0.3rem;
624
- background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
600
+ background-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
625
601
  forced-color-adjust: none;
626
602
  overflow: hidden;
627
- `,C9=_.styled(yr.div)`
603
+ `,wd=m.styled(Re.motion.div)`
628
604
  height: 100%;
629
- background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[800])??x.colors.slate[800]}};
630
- `;function D9({label:e,showValue:t=!0,value:n=0,minValue:r=0,maxValue:o=100,formatOptions:i={style:"percent"},...a}){return S.jsx(v9,{value:n,minValue:r,maxValue:o,formatOptions:i,...a,children:({percentage:s,valueText:l})=>S.jsxs(S.Fragment,{children:[(e||t)&&S.jsxs(y9,{children:[e&&S.jsx($9,{children:e}),t&&S.jsx(x9,{children:l})]}),S.jsx(w9,{children:S.jsx(C9,{initial:{width:`${s}%`},animate:{width:`${s}%`},transition:{type:"spring",bounce:0}})})]})})}const E9=_.styled(nP)`
605
+ background-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[800])??c.colors.slate[800]}};
606
+ `;function md({label:e,showValue:r=!0,value:t=0,minValue:o=0,maxValue:n=100,formatOptions:s={style:"percent"},...i}){return p.jsx(gd,{value:t,minValue:o,maxValue:n,formatOptions:s,...i,children:({percentage:l,valueText:u})=>p.jsxs(p.Fragment,{children:[(e||r)&&p.jsxs(vd,{children:[e&&p.jsx(yd,{children:e}),r&&p.jsx($d,{children:u})]}),p.jsx(xd,{children:p.jsx(wd,{initial:{width:`${l}%`},animate:{width:`${l}%`},transition:{type:"spring",bounce:0}})})]})})}const hd=m.styled(D.Modal)`
631
607
  position: absolute;
632
608
  inset: 50%;
633
- `;function P9(e){return S.jsx(E9,{...e})}const bp=_.keyframes`
609
+ `;function Cd(e){return p.jsx(hd,{...e})}const pn=m.keyframes`
634
610
  0% {
635
611
  opacity: 0;
636
612
  backdrop-filter: blur(0);
@@ -640,9 +616,9 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
640
616
  opacity: 1;
641
617
  backdrop-filter: blur(10px);
642
618
  }
643
- `,S9=_.styled(J4)`
619
+ `,Ed=m.styled(D.ModalOverlay)`
644
620
  backdrop-filter: blur(10px);
645
- background: ${({theme:e})=>{var t;return`rgb(from ${((t=e==null?void 0:e.colors)==null?void 0:t.black)??x.colors.black} r g b / 30%)`}};
621
+ background: ${({theme:e})=>{var r;return`rgb(from ${((r=e==null?void 0:e.colors)==null?void 0:r.black)??c.colors.black} r g b / 30%)`}};
646
622
  position: fixed;
647
623
  z-index: 100;
648
624
  top: 0;
@@ -651,13 +627,13 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
651
627
  height: var(--visual-viewport-height);
652
628
 
653
629
  &[data-entering] {
654
- animation: ${bp} 300ms;
630
+ animation: ${pn} 300ms;
655
631
  }
656
632
 
657
633
  &[data-exiting] {
658
- animation: ${bp} 300ms reverse;
634
+ animation: ${pn} 300ms reverse;
659
635
  }
660
- `;function T9(e){return S.jsx(S9,{...e})}const mp=_.keyframes`
636
+ `;function kd(e){return p.jsx(Ed,{...e})}const bn=m.keyframes`
661
637
  from {
662
638
  transform: translate(-50%, -50%) scale(0.8);
663
639
  }
@@ -665,14 +641,14 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
665
641
  to {
666
642
  transform: translate(-50%, -50%) scale(1);
667
643
  }
668
- `,Dl=_.styled(_4)`
644
+ `,It=m.styled(D.Dialog)`
669
645
  padding: 2rem;
670
646
  outline: none;
671
647
  box-shadow: 0 0.5rem 1.5rem rgba(0 0 0 / 0.1);
672
648
  border-radius: 0.5rem;
673
- background: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
649
+ background: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
674
650
  border: 1px solid
675
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
651
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
676
652
  outline: none;
677
653
  max-width: max-content;
678
654
  width: 100vw;
@@ -680,33 +656,33 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
680
656
  top: 50%;
681
657
  left: 50%;
682
658
  transform: translate(-50%, -50%);
683
- `,A9=_.createGlobalStyle`
684
- [data-entering] ${Dl} {
685
- animation: ${mp} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
659
+ `,Sd=m.createGlobalStyle`
660
+ [data-entering] ${It} {
661
+ animation: ${bn} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
686
662
  }
687
663
 
688
- [data-exiting] ${Dl} {
689
- animation: ${mp} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275) reverse;
664
+ [data-exiting] ${It} {
665
+ animation: ${bn} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275) reverse;
690
666
  }
691
- `;function M9(e){return S.jsxs(S.Fragment,{children:[S.jsx(A9,{}),S.jsx(Dl,{...e})]})}const k9=_.keyframes`
667
+ `;function Td(e){return p.jsxs(p.Fragment,{children:[p.jsx(Sd,{}),p.jsx(It,{...e})]})}const Pd=m.keyframes`
692
668
  from { transform: translateY(-100%); }
693
669
  to { transform: translateY(0); }
694
- `,R9=_.keyframes`
670
+ `,Rd=m.keyframes`
695
671
  from { transform: translateX(100%); }
696
672
  to { transform: translateX(0); }
697
- `,F9=_.keyframes`
673
+ `,Od=m.keyframes`
698
674
  from { transform: translateY(100%); }
699
675
  to { transform: translateY(0); }
700
- `,B9=_.keyframes`
676
+ `,jd=m.keyframes`
701
677
  from { transform: translateX(-100%); }
702
678
  to { transform: translateX(0); }
703
- `,El=_.styled(_4)`
679
+ `,At=m.styled(D.Dialog)`
704
680
  padding: 2rem;
705
681
  position: fixed;
706
682
  outline: none;
707
- background: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
683
+ background: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
708
684
  border: 0
709
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}}
685
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}}
710
686
  solid;
711
687
  animation-duration: 300ms;
712
688
 
@@ -733,41 +709,41 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
733
709
  border-right-width: 1px;
734
710
  box-shadow: 0.5rem 0 1.5rem rgba(0 0 0 / 0.1);
735
711
  }
736
- `,I9=_.createGlobalStyle`
737
- [data-exiting] ${El} {
712
+ `,Md=m.createGlobalStyle`
713
+ [data-exiting] ${At} {
738
714
  animation-direction: reverse;
739
715
  animation-timing-function: ease-in;
740
716
  }
741
717
 
742
718
  [data-entering],
743
719
  [data-exiting] {
744
- ${El} {
720
+ ${At} {
745
721
  &[data-direction='top'] {
746
- animation-name: ${k9};
722
+ animation-name: ${Pd};
747
723
  }
748
724
 
749
725
  &[data-direction='right'] {
750
- animation-name: ${R9};
726
+ animation-name: ${Rd};
751
727
  }
752
728
 
753
729
  &[data-direction='bottom'] {
754
- animation-name: ${F9};
730
+ animation-name: ${Od};
755
731
  }
756
732
 
757
733
  &[data-direction='left'] {
758
- animation-name: ${B9};
734
+ animation-name: ${jd};
759
735
  }
760
736
  }
761
737
  }
762
- `;function s1({direction:e,...t}){return S.jsxs(S.Fragment,{children:[S.jsx(I9,{}),S.jsx(El,{"data-direction":e,...t})]})}s1.defaultProps={direction:"right"};const L9=_.styled(lP)`
738
+ `;function va({direction:e,...r}){return p.jsxs(p.Fragment,{children:[p.jsx(Md,{}),p.jsx(At,{"data-direction":e,...r})]})}va.defaultProps={direction:"right"};const _d=m.styled(D.NumberField)`
763
739
  display: flex;
764
740
  flex-direction: column;
765
741
  width: 100%;
766
- `,V9=_.styled(Qu)`
742
+ `,Id=m.styled(D.Group)`
767
743
  display: flex;
768
744
  border-radius: 0.375rem;
769
745
 
770
- ${Dt} {
746
+ ${Me} {
771
747
  cursor: pointer;
772
748
  padding: 0;
773
749
  width: 2.5rem;
@@ -787,7 +763,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
787
763
  }
788
764
  }
789
765
 
790
- ${xn} {
766
+ ${Ge} {
791
767
  border-radius: 0;
792
768
 
793
769
  &[data-focused] {
@@ -796,187 +772,187 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
796
772
  }
797
773
 
798
774
  &[data-hovered] {
799
- ${Dt}, ${xn} {
800
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
775
+ ${Me}, ${Ge} {
776
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
801
777
  }
802
778
  }
803
779
 
804
780
  &[data-focus-within] {
805
781
  outline: 2px solid
806
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
782
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
807
783
 
808
784
  &[data-invalid] {
809
785
  outline: 2px solid
810
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[200])??x.colors.red[200]}};
786
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[200])??c.colors.red[200]}};
811
787
  }
812
788
 
813
- ${Dt}, ${xn} {
814
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
789
+ ${Me}, ${Ge} {
790
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
815
791
  }
816
792
  }
817
793
 
818
794
  &[data-disabled] {
819
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
795
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
820
796
 
821
- ${Dt} {
797
+ ${Me} {
822
798
  cursor: default;
823
799
  }
824
800
 
825
- ${Dt}, ${xn} {
826
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
801
+ ${Me}, ${Ge} {
802
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
827
803
  }
828
804
  }
829
805
 
830
806
  &[data-invalid] {
831
- ${Dt}, ${xn} {
832
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
833
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[100])??x.colors.red[100]}};
834
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
807
+ ${Me}, ${Ge} {
808
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
809
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[100])??c.colors.red[100]}};
810
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
835
811
 
836
812
  &[data-hovered] {
837
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
813
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
838
814
  }
839
815
 
840
816
  &[data-focused] {
841
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
817
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
842
818
  }
843
819
  }
844
820
  }
845
821
 
846
822
  &[aria-readonly] {
847
- ${Dt} {
848
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
849
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
850
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
823
+ ${Me} {
824
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
825
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
826
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
851
827
  cursor: default;
852
828
  }
853
829
  }
854
- `,O9=S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),N9=S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function l1({label:e,description:t,errorMessage:n,isInvalid:r,isReadOnly:o,slots:i,...a}){return S.jsxs(L9,{isInvalid:r,...a,children:[S.jsx(r1,{children:e}),S.jsxs(V9,{isInvalid:r,"aria-readonly":o,children:[S.jsx(Dt,{variant:"outline",slot:"decrement",children:i==null?void 0:i.decrementIcon}),S.jsx(xn,{readOnly:o}),S.jsx(Dt,{variant:"outline",slot:"increment",children:i==null?void 0:i.incrementIcon})]}),t&&S.jsx(i1,{slot:"description",children:t}),S.jsx(o1,{children:n})]})}l1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,slots:{decrementIcon:O9,incrementIcon:N9}};const K9=_.styled(Qu)`
830
+ `,Ad=p.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Ld=p.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function ya({label:e,description:r,errorMessage:t,isInvalid:o,isReadOnly:n,slots:s,...i}){return p.jsxs(_d,{isInvalid:o,...i,children:[p.jsx(fa,{children:e}),p.jsxs(Id,{isInvalid:o,"aria-readonly":n,children:[p.jsx(Me,{variant:"outline",slot:"decrement",children:s==null?void 0:s.decrementIcon}),p.jsx(Ge,{readOnly:n}),p.jsx(Me,{variant:"outline",slot:"increment",children:s==null?void 0:s.incrementIcon})]}),r&&p.jsx(ba,{slot:"description",children:r}),p.jsx(pa,{children:t})]})}ya.defaultProps={label:void 0,description:void 0,errorMessage:void 0,slots:{decrementIcon:Ad,incrementIcon:Ld}};const Nd=m.styled(D.Group)`
855
831
  display: flex;
856
832
  flex-wrap: wrap;
857
833
  gap: 0.5rem;
858
- `,j9=_.styled(So)`
834
+ `,Dd=m.styled(D.Input)`
859
835
  border: 1px solid
860
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
836
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
861
837
  font-size: 0.9rem;
862
838
  padding: 0 0.5rem;
863
839
  height: 2.5rem;
864
840
  margin: 0;
865
841
  border-radius: 0.375rem;
866
- background: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
867
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
842
+ background: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
843
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
868
844
  width: 100%;
869
845
  text-align: center;
870
846
  transition: all ease 200ms;
871
847
 
872
848
  &[data-hovered] {
873
849
  border: 1px solid
874
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
850
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
875
851
  }
876
852
 
877
853
  &[data-focused] {
878
854
  border: 1px solid
879
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
855
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
880
856
  outline: 2px solid
881
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
857
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
882
858
  }
883
859
 
884
860
  &[data-disabled] {
885
861
  border: 1px solid
886
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
887
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
862
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
863
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
888
864
  }
889
865
 
890
866
  &[data-invalid] {
891
867
  border: 1px solid
892
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
893
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[100])??x.colors.red[100]}};
894
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
868
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
869
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[100])??c.colors.red[100]}};
870
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
895
871
 
896
872
  &[data-hovered] {
897
873
  border: 1px solid
898
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
874
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
899
875
  }
900
876
 
901
877
  &[data-focused] {
902
878
  border: 1px solid
903
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
879
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
904
880
  outline: 2px solid
905
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[200])??x.colors.red[200]}};
881
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[200])??c.colors.red[200]}};
906
882
  }
907
883
  }
908
884
 
909
885
  ::placeholder {
910
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
886
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
911
887
  }
912
- `,_9=_.styled(qt)`
888
+ `,Fd=m.styled(D.Label)`
913
889
  display: flex;
914
890
  flex: 1 0 100%;
915
891
  font-size: 0.8rem;
916
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
917
- `,z9=_.styled(Ea)`
892
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
893
+ `,zd=m.styled(D.TextField)`
918
894
  display: flex;
919
895
  flex-direction: column;
920
896
  width: 100%;
921
897
  flex: 1;
922
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
923
- `,U9=_.styled(Ea)`
898
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
899
+ `,Vd=m.styled(D.TextField)`
924
900
  display: flex;
925
901
  flex-direction: row;
926
902
  flex-wrap: wrap;
927
903
  flex: 1 0 100%;
928
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
929
- `,H9=_.styled(Po)`
904
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
905
+ `,Bd=m.styled(D.FieldError)`
930
906
  display: flex;
931
907
  flex: 1 0 100%;
932
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
908
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
933
909
  font-size: 0.8rem;
934
- `,G9=_.styled(wr)`
910
+ `,Hd=m.styled(D.Text)`
935
911
  display: flex;
936
912
  flex: 1 0 100%;
937
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
913
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
938
914
  font-size: 0.8rem;
939
- `;function u1({description:e,errorMessage:t,isDisabled:n=!1,isInvalid:r=!1,isMasked:o=!1,isRequired:i=!0,label:a,length:s=6,name:l,onChange:d,value:c="",type:f="numeric",validationBehavior:p="native",...h}){u.useState(-1);const[b,g]=u.useState(c),[y,$]=u.useState(Array(s).fill("")),C=u.useRef([]);u.useEffect(()=>{C.current=C.current.slice(0,s)},[s]),u.useEffect(()=>{const k=y.join("");g(k),d&&d(k)},[d,y]);const w=k=>{var F,A;const N=k.target.value,v=Number(k.target.getAttribute("data-pin-input-index"));N!==""&&v<y.length-1&&((A=(F=C.current)==null?void 0:F[v+1])==null||A.focus());const L=y.map((B,R)=>R===v?N:B);$(L)},E=k=>{var F,A,B,R;const N=Number(k.currentTarget.getAttribute("data-pin-input-index"));if(k.ctrlKey||k.metaKey)return;const v=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Control","Alt","Meta","Shift","Tab","Enter","Escape"],L={alpha:/^[a-z]$/i,alphanumeric:/^[a-z0-9]$/i,numeric:/^[0-9]$/i};if(!k.key.match(L[f])&&!v.includes(k.key)&&k.preventDefault(),y[N]===""&&N>0&&k.key==="Backspace"){const I=y.map((K,V)=>V===N-1?"":K);$(I),(A=(F=C.current)==null?void 0:F[N-1])==null||A.focus(),k.preventDefault()}if(y[N]===""&&N<y.length-1&&k.key==="Delete"){const I=y.map((K,V)=>V===N+1?"":K);$(I),(R=(B=C.current)==null?void 0:B[N+1])==null||R.focus(),k.preventDefault()}},P=k=>{var R,I;const N=Number(k.currentTarget.getAttribute("data-pin-input-index"));k.preventDefault();const v=(R=k.clipboardData)==null?void 0:R.getData("text");if(!v)return;const L=v.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(L.length===0)return;const F=[...y];let A=N;for(let K=0;K<L.length&&N+K<s;K++)F[N+K]=L[K],A=N+K;$(F);const B=A+1<s?A+1:s-1;(I=C.current[B])==null||I.focus()};return S.jsxs(K9,{...h,"aria-label":a,children:[S.jsx(_9,{children:a}),y.map((k,N)=>S.jsx(z9,{"aria-label":`Pin Input Digit ${N+1}`,isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:S.jsx(j9,{onChange:w,onKeyDown:E,onPaste:P,type:o?"password":"text",ref:v=>v?C.current[N]=v:null,value:k,maxLength:1,name:l&&`${l}-${N}`,"data-pin-input-index":N})},`pin-input-${N}`)),S.jsxs(U9,{"aria-label":"Pin Input",isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:[l&&S.jsx(So,{type:"hidden",name:l,value:b}),e&&S.jsx(G9,{slot:"description",children:e}),S.jsx(H9,{children:t})]})]})}u1.defaultProps={description:void 0,errorMessage:void 0,isMasked:!1,isRequired:!0,label:void 0,length:6,name:"",onChange:()=>{},value:"",type:"numeric",validationBehavior:"native"};const W9=_.styled(Q4)`
915
+ `;function $a({description:e,errorMessage:r,isDisabled:t=!1,isInvalid:o=!1,isMasked:n=!1,isRequired:s=!0,label:i,length:l=6,name:u,onChange:g,value:b="",type:y="numeric",validationBehavior:h="native",...v}){d.useState(-1);const[x,E]=d.useState(b),[k,T]=d.useState(Array(l).fill("")),M=d.useRef([]);d.useEffect(()=>{M.current=M.current.slice(0,l)},[l]),d.useEffect(()=>{const P=k.join("");E(P),g&&g(P)},[g,k]);const _=P=>{var J,q;const F=P.target.value,L=Number(P.target.getAttribute("data-pin-input-index"));F!==""&&L<k.length-1&&((q=(J=M.current)==null?void 0:J[L+1])==null||q.focus());const N=k.map((j,H)=>H===L?F:j);T(N)},I=P=>{var J,q,j,H;const F=Number(P.currentTarget.getAttribute("data-pin-input-index"));if(P.ctrlKey||P.metaKey)return;const L=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Control","Alt","Meta","Shift","Tab","Enter","Escape"],N={alpha:/^[a-z]$/i,alphanumeric:/^[a-z0-9]$/i,numeric:/^[0-9]$/i};if(!P.key.match(N[y])&&!L.includes(P.key)&&P.preventDefault(),k[F]===""&&F>0&&P.key==="Backspace"){const z=k.map((V,G)=>G===F-1?"":V);T(z),(q=(J=M.current)==null?void 0:J[F-1])==null||q.focus(),P.preventDefault()}if(k[F]===""&&F<k.length-1&&P.key==="Delete"){const z=k.map((V,G)=>G===F+1?"":V);T(z),(H=(j=M.current)==null?void 0:j[F+1])==null||H.focus(),P.preventDefault()}},O=P=>{var H,z;const F=Number(P.currentTarget.getAttribute("data-pin-input-index"));P.preventDefault();const L=(H=P.clipboardData)==null?void 0:H.getData("text");if(!L)return;const N=L.split("").filter(V=>{switch(y){case"alpha":return/^[a-zA-Z]$/.test(V);case"alphanumeric":return/^[a-z0-9]$/i.test(V);case"numeric":default:return/^[0-9]$/.test(V)}});if(N.length===0)return;const J=[...k];let q=F;for(let V=0;V<N.length&&F+V<l;V++)J[F+V]=N[V],q=F+V;T(J);const j=q+1<l?q+1:l-1;(z=M.current[j])==null||z.focus()};return p.jsxs(Nd,{...v,"aria-label":i,children:[p.jsx(Fd,{children:i}),k.map((P,F)=>p.jsx(zd,{"aria-label":`Pin Input Digit ${F+1}`,isDisabled:t,isInvalid:o,isRequired:s,validationBehavior:h,children:p.jsx(Dd,{onChange:_,onKeyDown:I,onPaste:O,type:n?"password":"text",ref:L=>L?M.current[F]=L:null,value:P,maxLength:1,name:u&&`${u}-${F}`,"data-pin-input-index":F})},`pin-input-${F}`)),p.jsxs(Vd,{"aria-label":"Pin Input",isDisabled:t,isInvalid:o,isRequired:s,validationBehavior:h,children:[u&&p.jsx(D.Input,{type:"hidden",name:u,value:x}),e&&p.jsx(Hd,{slot:"description",children:e}),p.jsx(Bd,{children:r})]})]})}$a.defaultProps={description:void 0,errorMessage:void 0,isMasked:!1,isRequired:!0,label:void 0,length:6,name:"",onChange:()=>{},value:"",type:"numeric",validationBehavior:"native"};const Gd=m.styled(D.ProgressBar)`
940
916
  display: flex;
941
- `,Y9=_.styled.div`
917
+ `,Wd=m.styled.div`
942
918
  display: flex;
943
919
  flex-direction: column;
944
920
  align-items: center;
945
- `,q9=_.styled(qt)`
921
+ `,Ud=m.styled(D.Label)`
946
922
  font-size: 0.875rem;
947
- `,Z9=_.styled.circle`
948
- stroke: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
949
- `,X9=_.styled.circle`
950
- stroke: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[800])??x.colors.slate[800]}};
923
+ `,Kd=m.styled.circle`
924
+ stroke: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
925
+ `,Yd=m.styled.circle`
926
+ stroke: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[800])??c.colors.slate[800]}};
951
927
  transition: stroke-dashoffset 600ms ease-in-out;
952
- `,J9=_.styled.text`
928
+ `,Xd=m.styled.text`
953
929
  font-size: 0.875rem;
954
- fill: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[800])??x.colors.slate[800]}};
955
- `;function Q9({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 S.jsx(W9,{"aria-label":"Loading...",...i,value:t,children:({percentage:d=0})=>S.jsxs(Y9,{children:[S.jsx(q9,{children:e}),S.jsxs("svg",{width:r,height:r,fill:"none",children:[S.jsx(Z9,{cx:a,cy:a,r:s,strokeWidth:o}),S.jsx(X9,{cx:a,cy:a,r:s,strokeWidth:o,strokeDasharray:`${l} ${l}`,strokeDashoffset:(100-d)/100*l,strokeLinecap:"round",transform:`rotate(-90 ${a} ${a})`}),n&&S.jsxs(J9,{x:"50%",y:"50%",alignmentBaseline:"middle",textAnchor:"middle",children:[d,"%"]})]})]})})}const eS=_.styled(Q4)`
930
+ fill: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[800])??c.colors.slate[800]}};
931
+ `;function qd({label:e,value:r=0,showValue:t=!0,size:o=60,strokeWidth:n=6,...s}){const i=o/2,l=i-n,u=2*Math.PI*l;return p.jsx(Gd,{"aria-label":"Loading...",...s,value:r,children:({percentage:g=0})=>p.jsxs(Wd,{children:[p.jsx(Ud,{children:e}),p.jsxs("svg",{width:o,height:o,fill:"none",children:[p.jsx(Kd,{cx:i,cy:i,r:l,strokeWidth:n}),p.jsx(Yd,{cx:i,cy:i,r:l,strokeWidth:n,strokeDasharray:`${u} ${u}`,strokeDashoffset:(100-g)/100*u,strokeLinecap:"round",transform:`rotate(-90 ${i} ${i})`}),t&&p.jsxs(Xd,{x:"50%",y:"50%",alignmentBaseline:"middle",textAnchor:"middle",children:[g,"%"]})]})]})})}const Zd=m.styled(D.ProgressBar)`
956
932
  width: ${({width:e})=>e||"100%"};
957
933
  overflow: hidden;
958
- `,tS=_.styled.div`
934
+ `,Jd=m.styled.div`
959
935
  display: flex;
960
936
  align-items: center;
961
937
  justify-content: space-between;
962
938
  gap: 0.5rem;
963
939
  margin-bottom: 0.3rem;
964
- `,nS=_.styled(qt)`
940
+ `,Qd=m.styled(D.Label)`
965
941
  font-size: 0.875rem;
966
- `,rS=_.styled.span`
942
+ `,eu=m.styled.span`
967
943
  font-size: 0.875rem;
968
- `,oS=_.styled.div`
944
+ `,ru=m.styled.div`
969
945
  forced-color-adjust: none;
970
946
  height: 0.625rem;
971
947
  border-radius: 0.3rem;
972
948
  overflow: hidden;
973
949
  will-change: transform;
974
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
975
- `,iS=_.styled.div`
976
- width: ${({width:e,isIndeterminate:t})=>t?"40%":e};
950
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
951
+ `,tu=m.styled.div`
952
+ width: ${({width:e,isIndeterminate:r})=>r?"40%":e};
977
953
  transition: ${({isIndeterminate:e})=>e?"none":"width 600ms ease-in-out"};
978
954
  height: 100%;
979
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[800])??x.colors.slate[800]}};
955
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[800])??c.colors.slate[800]}};
980
956
  border-radius: inherit;
981
957
  animation: ${({isIndeterminate:e})=>e?"indeterminate 1.5s infinite ease-in-out":"none"};
982
958
 
@@ -989,117 +965,117 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
989
965
  transform: translateX(250px);
990
966
  }
991
967
  }
992
- `;function aS({label:e,isIndeterminate:t,showValue:n=!0,width:r,...o}){return S.jsx(eS,{...o,width:r,children:({percentage:i,valueText:a})=>S.jsxs(S.Fragment,{children:[S.jsxs(tS,{children:[S.jsx(nS,{children:e}),n&&S.jsx(rS,{children:a})]}),S.jsx(oS,{children:S.jsx(iS,{isIndeterminate:t,width:typeof i=="number"?`${i}%`:""})})]})})}const sS=_.styled(V8)`
968
+ `;function ou({label:e,isIndeterminate:r,showValue:t=!0,width:o,...n}){return p.jsx(Zd,{...n,width:o,children:({percentage:s,valueText:i})=>p.jsxs(p.Fragment,{children:[p.jsxs(Jd,{children:[p.jsx(Qd,{children:e}),t&&p.jsx(eu,{children:i})]}),p.jsx(ru,{children:p.jsx(tu,{isIndeterminate:r,width:typeof s=="number"?`${s}%`:""})})]})})}const nu=m.styled(D.ComboBox)`
993
969
  display: flex;
994
970
  flex-direction: column;
995
971
  width: 100%;
996
- `,lS=_.styled.div`
972
+ `,au=m.styled.div`
997
973
  display: flex;
998
974
  position: relative;
999
975
  width: 100%;
1000
- `,uS=_.styled(yr(j4))`
976
+ `,su=m.styled(Re.motion(D.Popover))`
1001
977
  padding: 0.4rem 0;
1002
978
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
1003
979
  border-radius: 0.375rem;
1004
980
  width: 14rem;
1005
981
  background: #fff;
1006
982
  border: 1px solid
1007
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1008
- `,cS=_.styled(So).withConfig({shouldForwardProp:e=>!["isLoading"].includes(e)})`
983
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
984
+ `,iu=m.styled(D.Input).withConfig({shouldForwardProp:e=>!["isLoading"].includes(e)})`
1009
985
  border: 1px solid
1010
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
986
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
1011
987
  font-size: 0.9rem;
1012
988
  padding: 0 0.5rem;
1013
989
  height: 2.5rem;
1014
990
  margin: 0;
1015
991
  border-radius: 0.375rem;
1016
- background: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
1017
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
992
+ background: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
993
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1018
994
  width: 100%;
1019
995
  transition: all ease 200ms;
1020
996
 
1021
997
  &[data-hovered] {
1022
998
  border: 1px solid
1023
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
999
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1024
1000
  }
1025
1001
 
1026
1002
  &[data-focused] {
1027
1003
  border: 1px solid
1028
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1004
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1029
1005
  outline: 2px solid
1030
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
1006
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
1031
1007
  }
1032
1008
 
1033
1009
  &[data-disabled] {
1034
- background: ${({isLoading:e,theme:t})=>{var n,r,o;return e?((n=t==null?void 0:t.colors)==null?void 0:n.white)??x.colors.white:((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[100])??x.colors.slate[100]}};
1010
+ background: ${({isLoading:e,theme:r})=>{var t,o,n;return e?((t=r==null?void 0:r.colors)==null?void 0:t.white)??c.colors.white:((n=(o=r==null?void 0:r.colors)==null?void 0:o.slate)==null?void 0:n[100])??c.colors.slate[100]}};
1035
1011
  border: 1px solid
1036
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1037
- color: ${({isLoading:e,theme:t})=>{var n,r,o,i;return e?((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[900])??x.colors.slate[900]:((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[500])??x.colors.slate[500]}};
1012
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
1013
+ color: ${({isLoading:e,theme:r})=>{var t,o,n,s;return e?((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[900])??c.colors.slate[900]:((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[500])??c.colors.slate[500]}};
1038
1014
  }
1039
1015
 
1040
1016
  &[data-invalid] {
1041
1017
  border: 1px solid
1042
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
1043
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[100])??x.colors.red[100]}};
1044
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
1018
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
1019
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[100])??c.colors.red[100]}};
1020
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
1045
1021
 
1046
1022
  &[data-hovered] {
1047
1023
  border: 1px solid
1048
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
1024
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
1049
1025
  }
1050
1026
 
1051
1027
  &[data-focused] {
1052
1028
  border: 1px solid
1053
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
1029
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
1054
1030
  outline: 2px solid
1055
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[200])??x.colors.red[200]}};
1031
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[200])??c.colors.red[200]}};
1056
1032
  }
1057
1033
 
1058
1034
  ::placeholder {
1059
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
1035
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
1060
1036
  }
1061
1037
  }
1062
1038
 
1063
1039
  ::placeholder {
1064
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1040
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1065
1041
  }
1066
- `,dS=_.styled.svg.withConfig({shouldForwardProp:e=>!["isDisabled","isInvalid","isOpen"].includes(e)})`
1042
+ `,lu=m.styled.svg.withConfig({shouldForwardProp:e=>!["isDisabled","isInvalid","isOpen"].includes(e)})`
1067
1043
  transition: all ease 200ms;
1068
1044
  transform: rotate(${({isOpen:e})=>e?"180deg":"0"});
1069
1045
 
1070
1046
  path {
1071
- stroke: ${({isDisabled:e,isInvalid:t,theme:n})=>{var r,o,i,a,s,l;return t?((o=(r=n==null?void 0:n.colors)==null?void 0:r.red)==null?void 0:o[500])??x.colors.red[500]:e?((a=(i=n==null?void 0:n.colors)==null?void 0:i.slate)==null?void 0:a[400])??x.colors.slate[400]:((l=(s=n==null?void 0:n.colors)==null?void 0:s.slate)==null?void 0:l[900])??x.colors.slate[900]}};
1047
+ stroke: ${({isDisabled:e,isInvalid:r,theme:t})=>{var o,n,s,i,l,u;return r?((n=(o=t==null?void 0:t.colors)==null?void 0:o.red)==null?void 0:n[500])??c.colors.red[500]:e?((i=(s=t==null?void 0:t.colors)==null?void 0:s.slate)==null?void 0:i[400])??c.colors.slate[400]:((u=(l=t==null?void 0:t.colors)==null?void 0:l.slate)==null?void 0:u[900])??c.colors.slate[900]}};
1072
1048
  }
1073
- `,fS=_.styled.div`
1049
+ `,cu=m.styled.div`
1074
1050
  position: absolute;
1075
1051
  display: block;
1076
1052
  top: 0.5rem;
1077
1053
  right: 0.5rem;
1078
- `,pS=_.styled(I4)`
1054
+ `,du=m.styled(D.Button)`
1079
1055
  position: absolute;
1080
1056
  display: block;
1081
1057
  top: 0.5rem;
1082
1058
  right: 0;
1083
1059
  border: none;
1084
1060
  background: none;
1085
- `,hS=_.styled(qt)`
1061
+ `,uu=m.styled(D.Label)`
1086
1062
  display: flex;
1087
1063
  font-size: 0.8rem;
1088
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1089
- `;_.styled(Ea)`
1064
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
1065
+ `;m.styled(D.TextField)`
1090
1066
  display: flex;
1091
1067
  flex-direction: column;
1092
1068
  width: 100%;
1093
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1094
- `;const bS=_.styled(Po)`
1069
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1070
+ `;const fu=m.styled(D.FieldError)`
1095
1071
  display: flex;
1096
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
1072
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
1097
1073
  font-size: 0.8rem;
1098
- `,mS=_.styled(wr)`
1074
+ `,pu=m.styled(D.Text)`
1099
1075
  display: flex;
1100
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1076
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
1101
1077
  font-size: 0.8rem;
1102
- `,gS=_.styled(D8)`
1078
+ `,bu=m.styled(D.ListBoxItem)`
1103
1079
  display: flex;
1104
1080
  flex: 1 1 auto;
1105
1081
  align-items: center;
@@ -1110,43 +1086,43 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1110
1086
  margin-right: 0.4rem;
1111
1087
  cursor: default;
1112
1088
  outline: none;
1113
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1089
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1114
1090
  transition: all ease 0.25s;
1115
1091
 
1116
1092
  &[data-hovered] {
1117
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
1118
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1093
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
1094
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1119
1095
  }
1120
1096
 
1121
1097
  &[data-focused] {
1122
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
1123
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1098
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
1099
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1124
1100
  }
1125
1101
 
1126
1102
  &[data-pressed] {
1127
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
1128
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1103
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
1104
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1129
1105
  }
1130
1106
 
1131
1107
  &[data-selected] {
1132
1108
  background: none;
1133
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1109
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1134
1110
  font-weight: 600;
1135
1111
 
1136
1112
  &[data-focused] {
1137
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
1113
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
1138
1114
  }
1139
1115
  }
1140
1116
 
1141
1117
  &[data-disabled] {
1142
1118
  background: none;
1143
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1119
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
1144
1120
  }
1145
- `;function vS(e){return S.jsx(gS,{...e})}const yS=_.keyframes`
1121
+ `;function gu(e){return p.jsx(bu,{...e})}const vu=m.keyframes`
1146
1122
  100% {
1147
1123
  transform: rotate(360deg);
1148
1124
  }
1149
- `,$S=_.keyframes`
1125
+ `,yu=m.keyframes`
1150
1126
  0% {
1151
1127
  stroke-dasharray: 1, 200;
1152
1128
  stroke-dashoffset: 0;
@@ -1159,7 +1135,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1159
1135
  stroke-dasharray: 89, 200;
1160
1136
  stroke-dashoffset: -124px;
1161
1137
  }
1162
- `,xS=_.styled.div`
1138
+ `,$u=m.styled.div`
1163
1139
  position: relative;
1164
1140
  margin: 0;
1165
1141
  width: ${({width:e})=>e}px;
@@ -1168,8 +1144,8 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1168
1144
  display: block;
1169
1145
  padding-top: 100%;
1170
1146
  }
1171
- `,wS=_.styled.svg`
1172
- animation: ${yS} 2s linear infinite;
1147
+ `,xu=m.styled.svg`
1148
+ animation: ${vu} 2s linear infinite;
1173
1149
  height: 100%;
1174
1150
  transform-origin: center center;
1175
1151
  width: 100%;
@@ -1179,12 +1155,12 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1179
1155
  left: 0;
1180
1156
  right: 0;
1181
1157
  margin: auto;
1182
- `,CS=_.styled.circle`
1158
+ `,wu=m.styled.circle`
1183
1159
  stroke: ${({stroke:e})=>e};
1184
1160
  stroke-dasharray: 1, 200;
1185
1161
  stroke-dashoffset: 0;
1186
- animation: ${$S} 1.5s ease-in-out infinite;
1187
- `;function DS({width:e,stroke:t,strokeLinecap:n="round",strokeWidth:r=5,...o}){return S.jsx(xS,{width:e,...o,children:S.jsx(wS,{viewBox:"25 25 50 50",children:S.jsx(CS,{className:"path",cx:"50",cy:"50",fill:"none",r:"20",stroke:t,strokeLinecap:n,strokeMiterlimit:"10",strokeWidth:r})})})}const ES=_.keyframes`
1162
+ animation: ${yu} 1.5s ease-in-out infinite;
1163
+ `;function mu({width:e,stroke:r,strokeLinecap:t="round",strokeWidth:o=5,...n}){return p.jsx($u,{width:e,...n,children:p.jsx(xu,{viewBox:"25 25 50 50",children:p.jsx(wu,{className:"path",cx:"50",cy:"50",fill:"none",r:"20",stroke:r,strokeLinecap:t,strokeMiterlimit:"10",strokeWidth:o})})})}const hu=m.keyframes`
1188
1164
  0% {
1189
1165
  transform: scale(1);
1190
1166
  opacity: 1;
@@ -1197,30 +1173,30 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1197
1173
  transform: scale(1);
1198
1174
  opacity: 1;
1199
1175
  }
1200
- `,Ss=_.styled.span`
1201
- background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1176
+ `,gt=m.styled.span`
1177
+ background-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
1202
1178
  display: inline-block;
1203
1179
  width: 0.5rem;
1204
1180
  height: 0.5rem;
1205
1181
  margin: 0.1rem;
1206
1182
  border-radius: 0.5rem;
1207
- animation: ${ES}
1183
+ animation: ${hu}
1208
1184
  ${({speedMultiplier:e})=>.75/e}s
1209
- ${({i:e,speedMultiplier:t})=>e*.12/t}s infinite
1185
+ ${({i:e,speedMultiplier:r})=>e*.12/r}s infinite
1210
1186
  cubic-bezier(0.2, 0.68, 0.18, 1.08);
1211
1187
  animation-fill-mode: both;
1212
- `;function c1(){return S.jsxs("span",{children:[S.jsx(Ss,{speedMultiplier:1,i:1}),S.jsx(Ss,{speedMultiplier:1,i:2}),S.jsx(Ss,{speedMultiplier:1,i:3})]})}function d1({label:e,description:t,errorMessage:n,children:r,placeholder:o,key:i,isLoading:a,...s}){const[l,d]=u.useState("unmounted"),c=u.useRef(null),[f,p]=u.useState(!1);return S.jsxs(sS,{ref:c,onOpenChange:()=>{d(l==="visible"?"hidden":"visible"),p(!f)},isDisabled:s.isDisabled||a,...s,children:[S.jsx(hS,{children:e}),S.jsxs(lS,{children:[S.jsx(cS,{placeholder:o,isLoading:a??!1}),a?S.jsx(fS,{children:S.jsx(c1,{})}):S.jsx(pS,{children:S.jsx(dS,{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:S.jsx("path",{d:"M6 9L12 15L18 9",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t&&S.jsx(mS,{slot:"description",children:t}),S.jsx(bS,{children:n}),S.jsx(uS,{isOpen:f,style:{width:c.current?c.current.getBoundingClientRect().width:"14rem"},isExiting:l==="hidden",onAnimationComplete:h=>{d(b=>h==="hidden"&&b==="hidden"?"unmounted":b)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:l,children:S.jsx($8,{style:{maxHeight:"20rem",overflowY:"scroll"},children:r})},i)]})}d1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,placeholder:"",key:void 0,isLoading:!1};const PS=_.styled(pP)`
1213
- --label-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1214
- --track-background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1215
- --thumb-background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1216
- --thumb-background-dragging: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1217
- --thumb-border-color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
1188
+ `;function xa(){return p.jsxs("span",{children:[p.jsx(gt,{speedMultiplier:1,i:1}),p.jsx(gt,{speedMultiplier:1,i:2}),p.jsx(gt,{speedMultiplier:1,i:3})]})}function wa({label:e,description:r,errorMessage:t,children:o,placeholder:n,key:s,isLoading:i,...l}){const[u,g]=d.useState("unmounted"),b=d.useRef(null),[y,h]=d.useState(!1);return p.jsxs(nu,{ref:b,onOpenChange:()=>{g(u==="visible"?"hidden":"visible"),h(!y)},isDisabled:l.isDisabled||i,...l,children:[p.jsx(uu,{children:e}),p.jsxs(au,{children:[p.jsx(iu,{placeholder:n,isLoading:i??!1}),i?p.jsx(cu,{children:p.jsx(xa,{})}):p.jsx(du,{children:p.jsx(lu,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",isOpen:u==="visible",isDisabled:!!l.isDisabled,isInvalid:!!l.isInvalid,children:p.jsx("path",{d:"M6 9L12 15L18 9",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),r&&p.jsx(pu,{slot:"description",children:r}),p.jsx(fu,{children:t}),p.jsx(su,{isOpen:y,style:{width:b.current?b.current.getBoundingClientRect().width:"14rem"},isExiting:u==="hidden",onAnimationComplete:v=>{g(x=>v==="hidden"&&x==="hidden"?"unmounted":x)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:u,children:p.jsx(D.ListBox,{style:{maxHeight:"20rem",overflowY:"scroll"},children:o})},s)]})}wa.defaultProps={label:void 0,description:void 0,errorMessage:void 0,placeholder:"",key:void 0,isLoading:!1};const Cu=m.styled(D.Slider)`
1189
+ --label-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
1190
+ --track-background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
1191
+ --thumb-background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
1192
+ --thumb-background-dragging: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1193
+ --thumb-border-color: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
1218
1194
  --thumb-cursor: pointer;
1219
1195
 
1220
1196
  &[data-disabled] {
1221
- --label-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1222
- --track-background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
1223
- --thumb-background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
1197
+ --label-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1198
+ --track-background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
1199
+ --thumb-background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
1224
1200
  --thumb-cursor: default;
1225
1201
  }
1226
1202
 
@@ -1235,19 +1211,19 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1235
1211
  height: 100%;
1236
1212
  width: 2rem;
1237
1213
  }
1238
- `,SS=_.styled(qt)`
1214
+ `,Eu=m.styled(D.Label)`
1239
1215
  display: flex;
1240
1216
  flex: 1 1 0;
1241
1217
  font-size: 0.8rem;
1242
1218
  color: var(--label-color);
1243
- `,TS=_.styled(bP)`
1219
+ `,ku=m.styled(D.SliderOutput)`
1244
1220
  display: flex;
1245
1221
  flex: 0 1 0;
1246
1222
  margin-left: auto;
1247
1223
  justify-content: flex-end;
1248
1224
  font-size: 0.8rem;
1249
1225
  color: var(--label-color);
1250
- `,Pl=_.styled(yP)`
1226
+ `,Lt=m.styled(D.SliderThumb)`
1251
1227
  background-color: var(--thumb-background);
1252
1228
  border: 2px solid var(--thumb-border-color);
1253
1229
  forced-color-adjust: none;
@@ -1259,13 +1235,13 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1259
1235
 
1260
1236
  &[data-focused] {
1261
1237
  outline: 2px solid
1262
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
1238
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
1263
1239
  }
1264
1240
 
1265
1241
  &[data-dragging] {
1266
1242
  background-color: var(--thumb-background-dragging);
1267
1243
  }
1268
- `,AS=_.styled(gP)`
1244
+ `,Su=m.styled(D.SliderTrack)`
1269
1245
  width: 100%;
1270
1246
  transition: all ease 0.25s;
1271
1247
 
@@ -1288,7 +1264,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1288
1264
  transform: translateY(-50%);
1289
1265
  }
1290
1266
 
1291
- ${Pl} {
1267
+ ${Lt} {
1292
1268
  top: 50%;
1293
1269
  }
1294
1270
  }
@@ -1304,15 +1280,15 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1304
1280
  transform: translate(-50%);
1305
1281
  }
1306
1282
 
1307
- ${Pl} {
1283
+ ${Lt} {
1308
1284
  left: 50%;
1309
1285
  }
1310
1286
  }
1311
- `;function f1({label:e,showOutput:t=!0,thumbLabels:n,...r}){return S.jsxs(PS,{...r,children:[S.jsx(SS,{children:e}),t&&S.jsx(TS,{children:({state:o})=>o.values.map((i,a)=>o.getThumbValueLabel(a)).join(" – ")}),S.jsx(AS,{children:({state:o})=>o.values.map((i,a)=>S.jsx(Pl,{index:a,"aria-label":n==null?void 0:n[a]},a))})]})}f1.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const Bt=_.styled.div`
1287
+ `;function ma({label:e,showOutput:r=!0,thumbLabels:t,...o}){return p.jsxs(Cu,{...o,children:[p.jsx(Eu,{children:e}),r&&p.jsx(ku,{children:({state:n})=>n.values.map((s,i)=>n.getThumbValueLabel(i)).join(" – ")}),p.jsx(Su,{children:({state:n})=>n.values.map((s,i)=>p.jsx(Lt,{index:i,"aria-label":t==null?void 0:t[i]},i))})]})}ma.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const De=m.styled.div`
1312
1288
  width: 4rem;
1313
1289
  height: 2.5rem;
1314
1290
  border: 1px solid
1315
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1291
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
1316
1292
  background: transparent;
1317
1293
  border-radius: 1.5rem;
1318
1294
  transition: all cubic-bezier(0.4, 0, 0.2, 1) 200ms;
@@ -1323,66 +1299,66 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1323
1299
  width: 1.5rem;
1324
1300
  height: 1.5rem;
1325
1301
  margin: calc(0.5rem - 1px);
1326
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1302
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
1327
1303
  border-radius: 1.25rem;
1328
1304
  transition: all cubic-bezier(0.4, 0, 0.2, 1) 200ms;
1329
1305
  }
1330
- `,MS=_.styled(wP)`
1306
+ `,Tu=m.styled(D.Switch)`
1331
1307
  display: flex;
1332
1308
  align-items: center;
1333
1309
  gap: 0.5rem;
1334
1310
  font-size: 0.8rem;
1335
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1311
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
1336
1312
  forced-color-adjust: none;
1337
1313
 
1338
- &[data-hovered] ${Bt} {
1339
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1314
+ &[data-hovered] ${De} {
1315
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1340
1316
  }
1341
1317
 
1342
- &[data-disabled] ${Bt} {
1343
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
1318
+ &[data-disabled] ${De} {
1319
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
1344
1320
  }
1345
1321
 
1346
- &[data-pressed] ${Bt} {
1347
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1322
+ &[data-pressed] ${De} {
1323
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1348
1324
 
1349
1325
  &:before {
1350
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1326
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1351
1327
  }
1352
1328
  }
1353
1329
 
1354
- &[data-focused] ${Bt} {
1355
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1330
+ &[data-focused] ${De} {
1331
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1356
1332
  outline: 2px solid
1357
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
1333
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
1358
1334
  }
1359
1335
 
1360
1336
  &[data-selected] {
1361
- ${Bt} {
1362
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1363
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1337
+ ${De} {
1338
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
1339
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
1364
1340
 
1365
1341
  &:before {
1366
- background: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
1342
+ background: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
1367
1343
  transform: translateX(100%);
1368
1344
  }
1369
1345
  }
1370
1346
 
1371
- &[data-hovered] ${Bt} {
1372
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1347
+ &[data-hovered] ${De} {
1348
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1373
1349
  }
1374
- &[data-focused] ${Bt} {
1375
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1350
+ &[data-focused] ${De} {
1351
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1376
1352
  }
1377
1353
 
1378
1354
  &[data-pressed] {
1379
- ${Bt} {
1380
- border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1381
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1355
+ ${De} {
1356
+ border-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1357
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1382
1358
  }
1383
1359
  }
1384
1360
  }
1385
- `;function kS({children:e,...t}){return S.jsxs(MS,{...t,children:[S.jsx(Bt,{}),e]})}const RS=_.styled(EP)`
1361
+ `;function Pu({children:e,...r}){return p.jsxs(Tu,{...r,children:[p.jsx(De,{}),e]})}const Ru=m.styled(D.Tabs)`
1386
1362
  width: 100%;
1387
1363
  display: flex;
1388
1364
  flex-direction: column;
@@ -1391,7 +1367,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1391
1367
  &[data-orientation='vertical'] {
1392
1368
  flex-direction: row;
1393
1369
  }
1394
- `,FS=_.styled(TP)`
1370
+ `,Ou=m.styled(D.TabList)`
1395
1371
  width: 100%;
1396
1372
  position: relative;
1397
1373
  display: flex;
@@ -1405,16 +1381,16 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1405
1381
  justify-content: flex-start;
1406
1382
  }
1407
1383
 
1408
- ${({variant:e,theme:t})=>{var n,r,o,i,a,s,l,d;switch(e){case"solid":return _.css`
1409
- background-color: ${((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[200])??x.colors.slate[200]};
1384
+ ${({variant:e,theme:r})=>{var t,o,n,s,i,l,u,g;switch(e){case"solid":return m.css`
1385
+ background-color: ${((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[200])??c.colors.slate[200]};
1410
1386
  border-radius: 0.75rem;
1411
1387
  padding: 0.25rem;
1412
- `;case"outline":return _.css`
1388
+ `;case"outline":return m.css`
1413
1389
  border: 2px solid
1414
- ${((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[200])??x.colors.slate[200]};
1390
+ ${((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[200])??c.colors.slate[200]};
1415
1391
  border-radius: 0.75rem;
1416
1392
  padding: 0.25rem;
1417
- `;case"underline":return _.css`
1393
+ `;case"underline":return m.css`
1418
1394
  &[data-orientation='vertical'] {
1419
1395
  &:before {
1420
1396
  display: block;
@@ -1424,7 +1400,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1424
1400
  bottom: 0;
1425
1401
  content: '';
1426
1402
  width: 1px;
1427
- background-color: ${((s=(a=t==null?void 0:t.colors)==null?void 0:a.slate)==null?void 0:s[200])??x.colors.slate[200]};
1403
+ background-color: ${((l=(i=r==null?void 0:r.colors)==null?void 0:i.slate)==null?void 0:l[200])??c.colors.slate[200]};
1428
1404
  }
1429
1405
  }
1430
1406
  &[data-orientation='horizontal'] {
@@ -1436,27 +1412,27 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1436
1412
  right: 0;
1437
1413
  content: '';
1438
1414
  height: 1px;
1439
- background-color: ${((d=(l=t==null?void 0:t.colors)==null?void 0:l.slate)==null?void 0:d[200])??x.colors.slate[200]};
1415
+ background-color: ${((g=(u=r==null?void 0:r.colors)==null?void 0:u.slate)==null?void 0:g[200])??c.colors.slate[200]};
1440
1416
  }
1441
1417
  }
1442
1418
  `;default:return null}}}
1443
- `,p1=_.styled(MP)`
1419
+ `,ha=m.styled(D.Tab)`
1444
1420
  position: relative;
1445
1421
  z-index: 3;
1446
1422
  display: flex;
1447
1423
  align-items: center;
1448
- justify-content: ${({orientation:e,variant:t})=>{switch(t){case"underline":return e==="horizontal"?"center":"flex-start";default:return"center"}}};
1449
- padding: ${({orientation:e,variant:t})=>{switch(t){case"underline":return e==="horizontal"?"0.75rem 0.75rem":"0.75rem 0.75rem 0.75rem 0";default:return"0.5rem 0.75rem"}}};
1424
+ justify-content: ${({orientation:e,variant:r})=>{switch(r){case"underline":return e==="horizontal"?"center":"flex-start";default:return"center"}}};
1425
+ padding: ${({orientation:e,variant:r})=>{switch(r){case"underline":return e==="horizontal"?"0.75rem 0.75rem":"0.75rem 0.75rem 0.75rem 0";default:return"0.5rem 0.75rem"}}};
1450
1426
  font-size: 0.875rem;
1451
1427
  line-height: 1.2;
1452
1428
  cursor: pointer;
1453
1429
  forced-color-adjust: none;
1454
1430
  transition: color 0.3s ease;
1455
1431
 
1456
- color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"underline":case"enclosed":case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??x.colors.slate[800];case"solid":return((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[400])??x.colors.slate[400];default:return null}}};
1432
+ color: ${({variant:e,theme:r})=>{var t,o,n,s;switch(e){case"underline":case"enclosed":case"outline":return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[800])??c.colors.slate[800];case"solid":return((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[400])??c.colors.slate[400];default:return null}}};
1457
1433
 
1458
1434
  &[data-selected] {
1459
- color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"underline":case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??x.colors.slate[800];case"solid":case"enclosed":return((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[100])??x.colors.slate[100];default:return null}}};
1435
+ color: ${({variant:e,theme:r})=>{var t,o,n,s;switch(e){case"underline":case"outline":return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[800])??c.colors.slate[800];case"solid":case"enclosed":return((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[100])??c.colors.slate[100];default:return null}}};
1460
1436
  }
1461
1437
 
1462
1438
  &[data-selected],
@@ -1467,131 +1443,131 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1467
1443
  }
1468
1444
 
1469
1445
  &[data-hovered]:not([data-selected]) {
1470
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1446
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
1471
1447
  }
1472
1448
 
1473
1449
  &[data-disabled] {
1474
1450
  opacity: 0.5;
1475
1451
  }
1476
- `,BS=_.styled(yr.span).attrs({className:"tab-overlay"})`
1452
+ `,ju=m.styled(Re.motion.span).attrs({className:"tab-overlay"})`
1477
1453
  position: absolute;
1478
1454
  z-index: 1;
1479
1455
 
1480
- ${({orientation:e,theme:t,variant:n})=>{var r,o,i,a,s,l,d,c,f,p,h;switch(n){case"solid":return _.css`
1456
+ ${({orientation:e,theme:r,variant:t})=>{var o,n,s,i,l,u,g,b,y,h,v;switch(t){case"solid":return m.css`
1481
1457
  inset: 0px;
1482
1458
  border-radius: 0.5rem;
1483
- background-color: ${((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[600])??x.colors.slate[600]};
1459
+ background-color: ${((n=(o=r==null?void 0:r.colors)==null?void 0:o.slate)==null?void 0:n[600])??c.colors.slate[600]};
1484
1460
  mix-blend-mode: color;
1485
- `;case"outline":return _.css`
1461
+ `;case"outline":return m.css`
1486
1462
  inset: 0px;
1487
1463
  border: 2px solid
1488
- ${((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[800])??x.colors.slate[800]};
1464
+ ${((i=(s=r==null?void 0:r.colors)==null?void 0:s.slate)==null?void 0:i[800])??c.colors.slate[800]};
1489
1465
  border-radius: 0.5rem;
1490
- `;case"underline":return e==="horizontal"?_.css`
1466
+ `;case"underline":return e==="horizontal"?m.css`
1491
1467
  bottom: 0;
1492
1468
  left: 0;
1493
1469
  width: 100%;
1494
1470
  height: 1px;
1495
1471
  border-radius: 0.5rem;
1496
- background-color: ${((l=(s=t==null?void 0:t.colors)==null?void 0:s.slate)==null?void 0:l[800])??x.colors.slate[800]};
1472
+ background-color: ${((u=(l=r==null?void 0:r.colors)==null?void 0:l.slate)==null?void 0:u[800])??c.colors.slate[800]};
1497
1473
  mix-blend-mode: color;
1498
- `:_.css`
1474
+ `:m.css`
1499
1475
  bottom: 0;
1500
1476
  right: 0;
1501
1477
  width: 1px;
1502
1478
  height: 100%;
1503
1479
  border-radius: 0.5rem;
1504
- background-color: ${((c=(d=t==null?void 0:t.colors)==null?void 0:d.slate)==null?void 0:c[800])??x.colors.slate[800]};
1480
+ background-color: ${((b=(g=r==null?void 0:r.colors)==null?void 0:g.slate)==null?void 0:b[800])??c.colors.slate[800]};
1505
1481
  mix-blend-mode: color;
1506
- `;case"enclosed":return _.css`
1482
+ `;case"enclosed":return m.css`
1507
1483
  inset: 0px;
1508
1484
  border: 1px solid
1509
- ${((p=(f=t==null?void 0:t.colors)==null?void 0:f.slate)==null?void 0:p[800])??x.colors.slate[800]};
1485
+ ${((h=(y=r==null?void 0:r.colors)==null?void 0:y.slate)==null?void 0:h[800])??c.colors.slate[800]};
1510
1486
  margin-bottom: -1px;
1511
1487
  border-bottom: none;
1512
1488
  border-radius: 0.5rem 0.5rem 0 0;
1513
- background-color: ${((h=t==null?void 0:t.colors)==null?void 0:h.white)??x.colors.white};
1489
+ background-color: ${((v=r==null?void 0:r.colors)==null?void 0:v.white)??c.colors.white};
1514
1490
  mix-blend-mode: difference;
1515
- `;case"base":default:return _.css`
1491
+ `;case"base":default:return m.css`
1516
1492
  display: none;
1517
1493
  `}}}
1518
- `,IS=_.styled(FP)`
1494
+ `,Mu=m.styled(D.TabPanel)`
1519
1495
  display: flex;
1520
1496
  flex-grow: 1;
1521
1497
  padding: 1rem 0;
1522
- `,Pa=u.createContext("horizontal");function LS({children:e,...t}){return S.jsx(Pa.Provider,{value:t.orientation??"horizontal",children:S.jsx(RS,{...t,children:e})})}function VS({variant:e="base",...t}){const n=u.useContext(Pa);return S.jsx(p1,{orientation:n,variant:e,...t,children:({isSelected:r,isFocusVisible:o})=>S.jsxs(S.Fragment,{children:[t.children,(o||r)&&S.jsx(BS,{orientation:n,layoutId:e,variant:e,transition:{type:"spring",bounce:.2,duration:.75}})]})})}function OS({items:e,children:t,variant:n="base",...r}){const o=u.useContext(Pa);return S.jsx(FS,{items:e,variant:n,...r,children:t||(i=>S.jsx(p1,{orientation:o,children:i.title}))})}function NS({children:e,...t}){return S.jsx(IS,{...t,children:e})}const KS=_.styled(_8)`
1523
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1524
- `,jS=_.styled(H4)`
1498
+ `,Zr=d.createContext("horizontal");function _u({children:e,...r}){return p.jsx(Zr.Provider,{value:r.orientation??"horizontal",children:p.jsx(Ru,{...r,children:e})})}function Iu({variant:e="base",...r}){const t=d.useContext(Zr);return p.jsx(ha,{orientation:t,variant:e,...r,children:({isSelected:o,isFocusVisible:n})=>p.jsxs(p.Fragment,{children:[r.children,(n||o)&&p.jsx(ju,{orientation:t,layoutId:e,variant:e,transition:{type:"spring",bounce:.2,duration:.75}})]})})}function Au({items:e,children:r,variant:t="base",...o}){const n=d.useContext(Zr);return p.jsx(Ou,{items:e,variant:t,...o,children:r||(s=>p.jsx(ha,{orientation:n,children:s.title}))})}function Lu({children:e,...r}){return p.jsx(Mu,{...r,children:e})}const Nu=m.styled(D.TimeField)`
1499
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1500
+ `,Du=m.styled(D.DateInput)`
1525
1501
  display: flex;
1526
1502
  align-items: center;
1527
1503
  border: 1px solid
1528
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1504
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[300])??c.colors.slate[300]}};
1529
1505
  font-size: 0.9rem;
1530
1506
  padding: 0 0.25rem;
1531
1507
  height: 2.5rem;
1532
1508
  margin: 0;
1533
1509
  border-radius: 0.375rem;
1534
- background: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
1535
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1510
+ background: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
1511
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1536
1512
  width: 100%;
1537
1513
  transition: all ease 200ms;
1538
1514
 
1539
1515
  &[data-hovered] {
1540
1516
  border: 1px solid
1541
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1517
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1542
1518
  }
1543
1519
 
1544
1520
  &[data-focus-within] {
1545
1521
  border: 1px solid
1546
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1522
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1547
1523
  outline: 2px solid
1548
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
1524
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
1549
1525
  }
1550
1526
 
1551
1527
  &[data-disabled] {
1552
1528
  border: 1px solid
1553
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
1554
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
1529
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
1530
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
1555
1531
  }
1556
1532
 
1557
1533
  &[data-invalid] {
1558
1534
  border: 1px solid
1559
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
1560
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[100])??x.colors.red[100]}};
1561
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
1535
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
1536
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[100])??c.colors.red[100]}};
1537
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
1562
1538
 
1563
1539
  &[data-hovered] {
1564
1540
  border: 1px solid
1565
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
1541
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
1566
1542
  }
1567
1543
 
1568
1544
  &[data-focus-within] {
1569
1545
  border: 1px solid
1570
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
1546
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[600])??c.colors.red[600]}};
1571
1547
  outline: 2px solid
1572
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[200])??x.colors.red[200]}};
1548
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[200])??c.colors.red[200]}};
1573
1549
  }
1574
1550
  }
1575
- `,_S=_.styled(G4)`
1551
+ `,Fu=m.styled(D.DateSegment)`
1576
1552
  padding: 0.25rem;
1577
1553
  font-variant-numeric: tabular-nums;
1578
1554
  text-align: end;
1579
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1555
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1580
1556
 
1581
1557
  &[data-invalid] {
1582
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
1558
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
1583
1559
  }
1584
1560
 
1585
1561
  &[data-disabled] {
1586
1562
  cursor: default;
1587
1563
  user-select: none;
1588
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1564
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1589
1565
  }
1590
1566
 
1591
1567
  &[data-focused],
1592
1568
  &[data-focus-visible] {
1593
1569
  outline: 1px auto
1594
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1570
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
1595
1571
  }
1596
1572
 
1597
1573
  &[data-type='literal'] {
@@ -1599,42 +1575,42 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1599
1575
  }
1600
1576
 
1601
1577
  &[data-placeholder] {
1602
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1578
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[400])??c.colors.slate[400]}};
1603
1579
 
1604
1580
  &[data-invalid] {
1605
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
1581
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
1606
1582
 
1607
1583
  &:focus {
1608
- color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
1584
+ color: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
1609
1585
  }
1610
1586
  }
1611
1587
  }
1612
1588
 
1613
1589
  &:focus:not([aria-readonly]) {
1614
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1615
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
1590
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1591
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
1616
1592
  outline: none;
1617
1593
  border-radius: 0.375rem;
1618
1594
  caret-color: transparent;
1619
1595
 
1620
1596
  &[data-invalid] {
1621
- background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
1622
- color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
1597
+ background: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
1598
+ color: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
1623
1599
  }
1624
1600
  }
1625
- `,zS=_.styled(qt)`
1601
+ `,zu=m.styled(D.Label)`
1626
1602
  display: flex;
1627
1603
  font-size: 0.8rem;
1628
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1629
- `,US=_.styled(Po)`
1604
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
1605
+ `,Vu=m.styled(D.FieldError)`
1630
1606
  display: flex;
1631
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
1607
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.red)==null?void 0:t[500])??c.colors.red[500]}};
1632
1608
  font-size: 0.8rem;
1633
- `,HS=_.styled(wr)`
1609
+ `,Bu=m.styled(D.Text)`
1634
1610
  display: flex;
1635
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1611
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
1636
1612
  font-size: 0.8rem;
1637
- `;function h1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(KS,{...r,children:[S.jsx(zS,{children:e}),S.jsx(jS,{children:o=>S.jsx(_S,{segment:o})}),S.jsx(HS,{slot:"description",children:t}),S.jsx(US,{children:n})]})}h1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const GS=_.styled(NP)`
1613
+ `;function Ca({label:e,description:r,errorMessage:t,...o}){return p.jsxs(Nu,{...o,children:[p.jsx(zu,{children:e}),p.jsx(Du,{children:n=>p.jsx(Fu,{segment:n})}),p.jsx(Bu,{slot:"description",children:r}),p.jsx(Vu,{children:t})]})}Ca.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const Hu=m.styled(D.ToggleButton)`
1638
1614
  display: flex;
1639
1615
  align-items: center;
1640
1616
  font-size: 0.9rem;
@@ -1648,27 +1624,27 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1648
1624
  outline: none;
1649
1625
  border-style: solid;
1650
1626
  border-width: 1px;
1651
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1627
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1652
1628
 
1653
1629
  height: ${({size:e})=>{switch(e){case"sm":return"2rem";case"lg":return"3rem";case"md":default:return"2.5rem"}}};
1654
1630
 
1655
- background: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[200])??x.colors.slate[200]}}};
1656
- border-color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":return"transparent";case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[300])??x.colors.slate[300];case"solid":default:return((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[200])??x.colors.slate[200]}}};
1631
+ background: ${({variant:e,theme:r})=>{var t,o;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[200])??c.colors.slate[200]}}};
1632
+ border-color: ${({variant:e,theme:r})=>{var t,o,n,s;switch(e){case"ghost":return"transparent";case"outline":return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[300])??c.colors.slate[300];case"solid":default:return((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[200])??c.colors.slate[200]}}};
1657
1633
 
1658
1634
  &[data-selected] {
1659
- background-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??x.colors.slate[800]}}};
1660
- border-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":return"transparent";case"outline":case"solid":default:return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[800])??x.colors.slate[800]}}};
1661
- color: ${({variant:e,theme:t})=>{var n,r,o;switch(e){case"ghost":case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[700])??x.colors.slate[700];case"solid":default:return((o=t==null?void 0:t.colors)==null?void 0:o.white)??x.colors.white}}};
1635
+ background-color: ${({variant:e,theme:r})=>{var t,o;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[800])??c.colors.slate[800]}}};
1636
+ border-color: ${({variant:e,theme:r})=>{var t,o;switch(e){case"ghost":return"transparent";case"outline":case"solid":default:return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[800])??c.colors.slate[800]}}};
1637
+ color: ${({variant:e,theme:r})=>{var t,o,n;switch(e){case"ghost":case"outline":return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[700])??c.colors.slate[700];case"solid":default:return((n=r==null?void 0:r.colors)==null?void 0:n.white)??c.colors.white}}};
1662
1638
  }
1663
1639
 
1664
1640
  &[data-disabled] {
1665
1641
  cursor: default;
1666
1642
 
1667
- background-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[100])??x.colors.slate[100]}}};
1668
- border-color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":return"transparent";case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[200])??x.colors.slate[200];case"solid":default:return((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[100])??x.colors.slate[100]}}};
1669
- color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[500])??x.colors.slate[500];case"solid":default:return((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[400])??x.colors.slate[400]}}};
1643
+ background-color: ${({variant:e,theme:r})=>{var t,o;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[100])??c.colors.slate[100]}}};
1644
+ border-color: ${({variant:e,theme:r})=>{var t,o,n,s;switch(e){case"ghost":return"transparent";case"outline":return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[200])??c.colors.slate[200];case"solid":default:return((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[100])??c.colors.slate[100]}}};
1645
+ color: ${({variant:e,theme:r})=>{var t,o,n,s;switch(e){case"ghost":case"outline":return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[500])??c.colors.slate[500];case"solid":default:return((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[400])??c.colors.slate[400]}}};
1670
1646
  }
1671
- `;function WS({children:e,size:t="md",variant:n="solid",...r}){return S.jsx(GS,{...r,size:t,variant:n,children:e})}var YS=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])||{}},qS=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],gp=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e};function ZS(e){const[t,n]=Rh(e,qc.variantKeys),{ref:r,as:o,isOpen:i,content:a,children:s,defaultOpen:l,onOpenChange:d,isDisabled:c,trigger:f,shouldFlip:p=!0,containerPadding:h=12,placement:b="top",delay:g=0,closeDelay:y=500,showArrow:$=!1,offset:C=7,crossOffset:w=0,isDismissable:E,shouldCloseOnBlur:P=!0,portalContainer:k,isKeyboardDismissDisabled:N=!1,updatePositionDeps:v=[],shouldCloseOnInteractOutside:L,className:F,onClose:A,motionProps:B,classNames:R,...I}=t,K=o||"div",V=kE({delay:g,closeDelay:y,isDisabled:c,defaultOpen:l,isOpen:i,onOpenChange:Be=>{d==null||d(Be),Be||A==null||A()}}),T=u.useRef(null),G=u.useRef(null),Y=u.useId(),H=V.isOpen&&!c;u.useImperativeHandle(r,()=>k$(G));const{triggerProps:D,tooltipProps:O}=oE({isDisabled:c,trigger:f},V,T),{tooltipProps:W}=rE({isOpen:H,...X(t,O)},V),{overlayProps:J,placement:Q,updatePosition:re}=Ph({isOpen:H,targetRef:T,placement:qS(b),overlayRef:G,offset:$?C+3:C,crossOffset:w,shouldFlip:p,containerPadding:h});c0(()=>{v.length&&re()},v);const{overlayProps:z}=ou({isOpen:H,onClose:V.close,isDismissable:E,shouldCloseOnBlur:P,isKeyboardDismissDisabled:N,shouldCloseOnInteractOutside:L},G),q=u.useMemo(()=>{var Be,Ue,xt;return qc({...n,radius:(Be=e==null?void 0:e.radius)!=null?Be:"md",size:(Ue=e==null?void 0:e.size)!=null?Ue:"md",shadow:(xt=e==null?void 0:e.shadow)!=null?xt:"sm"})},[Sp(n),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),te=u.useCallback((Be={},Ue=null)=>({...X(D,Be),ref:V$(Ue,T),"aria-describedby":H?Y:void 0}),[D,H,Y,V]),ae=u.useCallback(()=>({ref:G,"data-slot":"base","data-open":Et(H),"data-arrow":Et($),"data-disabled":Et(c),"data-placement":gp(Q,b),...X(W,z,I),style:X(J.style,I.style,t.style),className:q.base({class:R==null?void 0:R.base}),id:Y}),[q,H,$,c,Q,b,W,z,I,J,t,Y]),se=u.useCallback(()=>({"data-slot":"content","data-open":Et(H),"data-arrow":Et($),"data-disabled":Et(c),"data-placement":gp(Q,b),className:q.content({class:sr(R==null?void 0:R.content,F)})}),[q,H,$,c,Q,b,R]);return{Component:K,content:a,children:s,isOpen:H,triggerRef:T,showArrow:$,portalContainer:k,placement:b,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:c,motionProps:B,getTooltipContentProps:se,getTriggerProps:te,getTooltipProps:ae}}var Wn={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]},XS={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.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:Wn.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:Wn.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:Wn.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:Wn.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Wn.ease}},exit:{opacity:0,transition:{duration:.3,ease:Wn.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}}}},b1=aa((e,t)=>{const{Component:n,children:r,content:o,isOpen:i,portalContainer:a,placement:s,disableAnimation:l,motionProps:d,getTriggerProps:c,getTooltipProps:f,getTooltipContentProps:p}=ZS({...e,ref:t});let h;try{if(u.Children.count(r)!==1)throw new Error;if(!u.isValidElement(r))h=S.jsx("p",{...c(),children:r});else{const E=r;h=u.cloneElement(E,c(E.props,E.ref))}}catch{h=S.jsx("span",{}),F$("Tooltip must have only one child node. Please, check your code.")}const{ref:b,id:g,style:y,...$}=f(),C=S.jsx("div",{ref:b,id:g,style:y,children:S.jsx(YC,{features:qC,children:S.jsx(KC.div,{animate:"enter",exit:"exit",initial:"exit",variants:XS.scaleSpring,...X(d,$),style:{...YS(s)},children:S.jsx(n,{...p(),children:o})})})});return S.jsxs(S.Fragment,{children:[h,l&&i?S.jsx(Kd,{portalContainer:a,children:S.jsx("div",{ref:b,id:g,style:y,...$,children:S.jsx(n,{...p(),children:o})})}):S.jsx(sm,{children:i?S.jsx(Kd,{portalContainer:a,children:C}):null})]})});b1.displayName="NextUI.Tooltip";var JS=b1;const QS=_.styled(JS).attrs({className:"tooltip"})`
1647
+ `;function Gu({children:e,size:r="md",variant:t="solid",...o}){return p.jsx(Hu,{...o,size:r,variant:t,children:e})}function Wu(e){let[r,t]=Bn(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=d.useCallback(()=>{t(!0)},[t]),n=d.useCallback(()=>{t(!1)},[t]),s=d.useCallback(()=>{t(!r)},[t,r]);return{isOpen:r,setOpen:t,open:o,close:n,toggle:s}}const Uu=1500,gn=500;let Be={},Ku=0,pr=!1,Ne=null,He=null;function Yu(e={}){let{delay:r=Uu,closeDelay:t=gn}=e,{isOpen:o,open:n,close:s}=Wu(e),i=d.useMemo(()=>`${++Ku}`,[]),l=d.useRef(),u=()=>{Be[i]=y},g=()=>{for(let v in Be)v!==i&&(Be[v](!0),delete Be[v])},b=()=>{clearTimeout(l.current),l.current=null,g(),u(),pr=!0,n(),Ne&&(clearTimeout(Ne),Ne=null),He&&(clearTimeout(He),He=null)},y=v=>{v||t<=0?(clearTimeout(l.current),l.current=null,s()):l.current||(l.current=setTimeout(()=>{l.current=null,s()},t)),Ne&&(clearTimeout(Ne),Ne=null),pr&&(He&&clearTimeout(He),He=setTimeout(()=>{delete Be[i],He=null,pr=!1},Math.max(gn,t)))},h=()=>{g(),u(),!o&&!Ne&&!pr?Ne=setTimeout(()=>{Ne=null,pr=!0,b()},r):o||b()};return d.useEffect(()=>()=>{clearTimeout(l.current),Be[i]&&delete Be[i]},[i]),{isOpen:o,open:v=>{!v&&r>0&&!l.current?h():b()},close:y}}function Xu(e,r){let t=yl(e,{labelable:!0}),{hoverProps:o}=Zt({onHoverStart:()=>r==null?void 0:r.open(!0),onHoverEnd:()=>r==null?void 0:r.close()});return{tooltipProps:ke(t,o,{role:"tooltip"})}}function qu(e,r,t){let{isDisabled:o,trigger:n}=e,s=dl(),i=d.useRef(!1),l=d.useRef(!1),u=()=>{(i.current||l.current)&&r.open(l.current)},g=T=>{!i.current&&!l.current&&r.close(T)};d.useEffect(()=>{let T=M=>{t&&t.current&&M.key==="Escape"&&(M.stopPropagation(),r.close(!0))};if(r.isOpen)return document.addEventListener("keydown",T,!0),()=>{document.removeEventListener("keydown",T,!0)}},[t,r]);let b=()=>{n!=="focus"&&(Jn()==="pointer"?i.current=!0:i.current=!1,u())},y=()=>{n!=="focus"&&(l.current=!1,i.current=!1,g())},h=()=>{l.current=!1,i.current=!1,g(!0)},v=()=>{qt()&&(l.current=!0,u())},x=()=>{l.current=!1,i.current=!1,g(!0)},{hoverProps:E}=Zt({isDisabled:o,onHoverStart:b,onHoverEnd:y}),{focusableProps:k}=Xl({isDisabled:o,onFocus:v,onBlur:x},t);return{triggerProps:{"aria-describedby":r.isOpen?s:void 0,...ke(k,E,{onPointerDown:h,onKeyDown:h})},tooltipProps:{id:s}}}var Zu=e=>{const r={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(r==null?void 0:r[e])||{}},Ju=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],vn=(e,r)=>{if(r.includes("-")){const[,t]=r.split("-");return`${e}-${t}`}return e};function Qu(e){const[r,t]=na(e,qo.variantKeys),{ref:o,as:n,isOpen:s,content:i,children:l,defaultOpen:u,onOpenChange:g,isDisabled:b,trigger:y,shouldFlip:h=!0,containerPadding:v=12,placement:x="top",delay:E=0,closeDelay:k=500,showArrow:T=!1,offset:M=7,crossOffset:_=0,isDismissable:I,shouldCloseOnBlur:O=!0,portalContainer:P,isKeyboardDismissDisabled:F=!1,updatePositionDeps:L=[],shouldCloseOnInteractOutside:N,className:J,onClose:q,motionProps:j,classNames:H,...z}=r,V=n||"div",G=Yu({delay:E,closeDelay:k,isDisabled:b,defaultOpen:u,isOpen:s,onOpenChange:Ie=>{g==null||g(Ie),Ie||q==null||q()}}),A=d.useRef(null),U=d.useRef(null),Z=d.useId(),Q=G.isOpen&&!b;d.useImperativeHandle(o,()=>Ks(U));const{triggerProps:$,tooltipProps:S}=qu({isDisabled:b,trigger:y},G,A),{tooltipProps:W}=Xu({isOpen:Q,...ke(r,S)},G),{overlayProps:Y,placement:ee,updatePosition:ne}=bc({isOpen:Q,targetRef:A,placement:Ju(x),overlayRef:U,offset:T?M+3:M,crossOffset:_,shouldFlip:h,containerPadding:v});ra(()=>{L.length&&ne()},L);const{overlayProps:se}=yc({isOpen:Q,onClose:G.close,isDismissable:I,shouldCloseOnBlur:O,isKeyboardDismissDisabled:F,shouldCloseOnInteractOutside:N},U),ae=d.useMemo(()=>{var Ie,Ae,wr;return qo({...t,radius:(Ie=e==null?void 0:e.radius)!=null?Ie:"md",size:(Ae=e==null?void 0:e.size)!=null?Ae:"md",shadow:(wr=e==null?void 0:e.shadow)!=null?wr:"sm"})},[Sn(t),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),ie=d.useCallback((Ie={},Ae=null)=>({...ke($,Ie),ref:Qs(Ae,A),"aria-describedby":Q?Z:void 0}),[$,Q,Z,G]),ve=d.useCallback(()=>({ref:U,"data-slot":"base","data-open":_e(Q),"data-arrow":_e(T),"data-disabled":_e(b),"data-placement":vn(ee,x),...ke(W,se,z),style:ke(Y.style,z.style,r.style),className:ae.base({class:H==null?void 0:H.base}),id:Z}),[ae,Q,T,b,ee,x,W,se,z,Y,r,Z]),Te=d.useCallback(()=>({"data-slot":"content","data-open":_e(Q),"data-arrow":_e(T),"data-disabled":_e(b),"data-placement":vn(ee,x),className:ae.content({class:or(H==null?void 0:H.content,J)})}),[ae,Q,T,b,ee,x,H]);return{Component:V,content:i,children:l,isOpen:Q,triggerRef:A,showArrow:T,portalContainer:P,placement:x,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:b,motionProps:j,getTooltipContentProps:Te,getTriggerProps:ie,getTooltipProps:ve}}var Qe={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]},ef={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.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:Qe.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:Qe.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:Qe.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:Qe.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Qe.ease}},exit:{opacity:0,transition:{duration:.3,ease:Qe.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}}}},Ea=qr((e,r)=>{const{Component:t,children:o,content:n,isOpen:s,portalContainer:i,placement:l,disableAnimation:u,motionProps:g,getTriggerProps:b,getTooltipProps:y,getTooltipContentProps:h}=Qu({...e,ref:r});let v;try{if(d.Children.count(o)!==1)throw new Error;if(!d.isValidElement(o))v=p.jsx("p",{...b(),children:o});else{const I=o;v=d.cloneElement(I,b(I.props,I.ref))}}catch{v=p.jsx("span",{}),Xs("Tooltip must have only one child node. Please, check your code.")}const{ref:x,id:E,style:k,...T}=y(),M=p.jsx("div",{ref:x,id:E,style:k,children:p.jsx(Re.LazyMotion,{features:Re.domAnimation,children:p.jsx(Re.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:ef.scaleSpring,...ke(g,T),style:{...Zu(l)},children:p.jsx(t,{...h(),children:n})})})});return p.jsxs(p.Fragment,{children:[v,u&&s?p.jsx(fn,{portalContainer:i,children:p.jsx("div",{ref:x,id:E,style:k,...T,children:p.jsx(t,{...h(),children:n})})}):p.jsx(Re.AnimatePresence,{children:s?p.jsx(fn,{portalContainer:i,children:M}):null})]})});Ea.displayName="NextUI.Tooltip";var rf=Ea;const tf=m.styled(rf).attrs({className:"tooltip"})`
1672
1648
  z-index: 0;
1673
1649
  position: relative;
1674
1650
  background-color: transparent;
@@ -1681,7 +1657,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1681
1657
  width: 0.625rem;
1682
1658
  height: 0.625rem;
1683
1659
  border-radius: 0.125rem;
1684
- background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1660
+ background-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
1685
1661
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
1686
1662
  }
1687
1663
 
@@ -1767,7 +1743,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1767
1743
  z-index: 10;
1768
1744
  outline-width: 2px;
1769
1745
  outline-offset: 2px;
1770
- outline-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1746
+ outline-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
1771
1747
  }
1772
1748
 
1773
1749
  &.tooltip-content {
@@ -1784,12 +1760,12 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1784
1760
  box-sizing: border-box;
1785
1761
  font-size: 0.875rem;
1786
1762
  line-height: 1.25rem;
1787
- background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1788
- color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
1763
+ background-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[500])??c.colors.slate[500]}};
1764
+ color: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
1789
1765
  border-radius: 0.375rem;
1790
1766
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
1791
1767
  }
1792
- `;function eT({children:e,...t}){return S.jsx(QS,{classNames:{base:["tooltip"],content:["tooltip-content"]},...t,children:e})}function Se(){return Se=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},Se.apply(this,arguments)}function m1(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function d(f){const{scope:p,children:h,...b}=f,g=(p==null?void 0:p[e][l])||s,y=u.useMemo(()=>b,Object.values(b));return u.createElement(g.Provider,{value:y},h)}function c(f,p){const h=(p==null?void 0:p[e][l])||s,b=u.useContext(h);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,c]}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,tT(o,...t)]}function tT(...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:d})=>{const f=l(i)[`__scope${d}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ie(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 nT(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function sc(...e){return t=>e.forEach(n=>nT(n,t))}function Gt(...e){return u.useCallback(sc(...e),e)}const qi=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(oT);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(Sl,Se({},r,{ref:t}),u.isValidElement(a)?u.cloneElement(a,void 0,s):null)}return u.createElement(Sl,Se({},r,{ref:t}),n)});qi.displayName="Slot";const Sl=u.forwardRef((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...iT(r,n.props),ref:t?sc(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});Sl.displayName="SlotClone";const rT=({children:e})=>u.createElement(u.Fragment,null,e);function oT(e){return u.isValidElement(e)&&e.type===rT}function iT(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 aT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ht=aT.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?qi:t;return u.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),u.createElement(s,Se({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Tl(e,t){e&&Wt.flushSync(()=>e.dispatchEvent(t))}function dt(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 sT({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=lT({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=dt(n),l=u.useCallback(d=>{if(i){const f=typeof d=="function"?d(e):d;f!==e&&s(f)}else o(d)},[i,e,o,s]);return[a,l]}function lT({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=dt(t);return u.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const uT=u.createContext(void 0);function cT(e){const t=u.useContext(uT);return e||t||"ltr"}const fr=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};function dT(e,t){return u.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const ko=e=>{const{present:t,children:n}=e,r=fT(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),i=Gt(r.ref,o.ref);return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:i}):null};ko.displayName="Presence";function fT(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),i=u.useRef("none"),a=e?"mounted":"unmounted",[s,l]=dT(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=li(r.current);i.current=s==="mounted"?d:"none"},[s]),fr(()=>{const d=r.current,c=o.current;if(c!==e){const p=i.current,h=li(d);e?l("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(c&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fr(()=>{if(t){const d=f=>{const h=li(r.current).includes(f.animationName);f.target===t&&h&&Wt.flushSync(()=>l("ANIMATION_END"))},c=f=>{f.target===t&&(i.current=li(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function li(e){return(e==null?void 0:e.animationName)||"none"}const pT=Sn["useId".toString()]||(()=>{});let hT=0;function g1(e){const[t,n]=Sn.useState(pT());return fr(()=>{e||n(r=>r??String(hT++))},[e]),e||(t?`radix-${t}`:"")}function v1(e){const t=e+"CollectionProvider",[n,r]=m1(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:b,children:g}=h,y=u.useRef(null),$=u.useRef(new Map).current;return u.createElement(o,{scope:b,itemMap:$,collectionRef:y},g)},s=e+"CollectionSlot",l=u.forwardRef((h,b)=>{const{scope:g,children:y}=h,$=i(s,g),C=Gt(b,$.collectionRef);return u.createElement(qi,{ref:C},y)}),d=e+"CollectionItemSlot",c="data-radix-collection-item",f=u.forwardRef((h,b)=>{const{scope:g,children:y,...$}=h,C=u.useRef(null),w=Gt(b,C),E=i(d,g);return u.useEffect(()=>(E.itemMap.set(C,{ref:C,...$}),()=>void E.itemMap.delete(C))),u.createElement(qi,{[c]:"",ref:w},y)});function p(h){const b=i(e+"CollectionConsumer",h);return u.useCallback(()=>{const y=b.collectionRef.current;if(!y)return[];const $=Array.from(y.querySelectorAll(`[${c}]`));return Array.from(b.itemMap.values()).sort((E,P)=>$.indexOf(E.ref.current)-$.indexOf(P.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},p,r]}function bT(e,t=globalThis==null?void 0:globalThis.document){const n=dt(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Al="dismissableLayer.update",mT="dismissableLayer.pointerDownOutside",gT="dismissableLayer.focusOutside";let vp;const vT=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yT=u.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...d}=e,c=u.useContext(vT),[f,p]=u.useState(null),h=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=u.useState({}),g=Gt(t,v=>p(v)),y=Array.from(c.layers),[$]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),C=y.indexOf($),w=f?y.indexOf(f):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,P=w>=C,k=$T(v=>{const L=v.target,F=[...c.branches].some(A=>A.contains(L));!P||F||(i==null||i(v),s==null||s(v),v.defaultPrevented||l==null||l())},h),N=xT(v=>{const L=v.target;[...c.branches].some(A=>A.contains(L))||(a==null||a(v),s==null||s(v),v.defaultPrevented||l==null||l())},h);return bT(v=>{w===c.layers.size-1&&(o==null||o(v),!v.defaultPrevented&&l&&(v.preventDefault(),l()))},h),u.useEffect(()=>{if(f)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(vp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),yp(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=vp)}},[f,h,r,c]),u.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),yp())},[f,c]),u.useEffect(()=>{const v=()=>b({});return document.addEventListener(Al,v),()=>document.removeEventListener(Al,v)},[]),u.createElement(ht.div,Se({},d,{ref:g,style:{pointerEvents:E?P?"auto":"none":void 0,...e.style},onFocusCapture:Ie(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Ie(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Ie(e.onPointerDownCapture,k.onPointerDownCapture)}))});function $T(e,t=globalThis==null?void 0:globalThis.document){const n=dt(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){y1(mT,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}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 xT(e,t=globalThis==null?void 0:globalThis.document){const n=dt(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&y1(gT,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 yp(){const e=new CustomEvent(Al);document.dispatchEvent(e)}function y1(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?Tl(o,i):o.dispatchEvent(i)}function wT(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 CT=u.forwardRef((e,t)=>u.createElement(ht.span,Se({},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}}))),DT=CT,Ro="NavigationMenu",[lc,$1,ET]=v1(Ro),[Ml,PT,ST]=v1(Ro),[uc,EA]=m1(Ro,[ET,ST]),[TT,$t]=uc(Ro),[AT,MT]=uc(Ro),kT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:d,...c}=e,[f,p]=u.useState(null),h=Gt(t,L=>p(L)),b=cT(d),g=u.useRef(0),y=u.useRef(0),$=u.useRef(0),[C,w]=u.useState(!0),[E="",P]=sT({prop:r,onChange:L=>{const F=L!=="",A=s>0;F?(window.clearTimeout($.current),A&&w(!1)):(window.clearTimeout($.current),$.current=window.setTimeout(()=>w(!0),s)),o==null||o(L)},defaultProp:i}),k=u.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>P(""),150)},[P]),N=u.useCallback(L=>{window.clearTimeout(y.current),P(L)},[P]),v=u.useCallback(L=>{E===L?window.clearTimeout(y.current):g.current=window.setTimeout(()=>{window.clearTimeout(y.current),P(L)},a)},[E,P,a]);return u.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(y.current),window.clearTimeout($.current)},[]),u.createElement(RT,{scope:n,isRootMenu:!0,value:E,dir:b,orientation:l,rootNavigationMenu:f,onTriggerEnter:L=>{window.clearTimeout(g.current),C?v(L):N(L)},onTriggerLeave:()=>{window.clearTimeout(g.current),k()},onContentEnter:()=>window.clearTimeout(y.current),onContentLeave:k,onItemSelect:L=>{P(F=>F===L?"":L)},onItemDismiss:()=>P("")},u.createElement(ht.nav,Se({"aria-label":"Main","data-orientation":l,dir:b},c,{ref:h})))}),RT=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:s,onItemSelect:l,onItemDismiss:d,onTriggerEnter:c,onTriggerLeave:f,onContentEnter:p,onContentLeave:h}=e,[b,g]=u.useState(null),[y,$]=u.useState(new Map),[C,w]=u.useState(null);return u.createElement(TT,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:wT(s),baseId:g1(),dir:o,orientation:i,viewport:b,onViewportChange:g,indicatorTrack:C,onIndicatorTrackChange:w,onTriggerEnter:dt(c),onTriggerLeave:dt(f),onContentEnter:dt(p),onContentLeave:dt(h),onItemSelect:dt(l),onItemDismiss:dt(d),onViewportContentChange:u.useCallback((E,P)=>{$(k=>(k.set(E,P),new Map(k)))},[]),onViewportContentRemove:u.useCallback(E=>{$(P=>P.has(E)?(P.delete(E),new Map(P)):P)},[])},u.createElement(lc.Provider,{scope:t},u.createElement(AT,{scope:t,items:y},a)))},FT="NavigationMenuList",BT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(FT,n),i=u.createElement(ht.ul,Se({"data-orientation":o.orientation},r,{ref:t}));return u.createElement(ht.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},u.createElement(lc.Slot,{scope:n},o.isRootMenu?u.createElement(E1,{asChild:!0},i):i))}),IT="NavigationMenuItem",[LT,x1]=uc(IT),VT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=g1(),a=r||i||"LEGACY_REACT_AUTO_VALUE",s=u.useRef(null),l=u.useRef(null),d=u.useRef(null),c=u.useRef(()=>{}),f=u.useRef(!1),p=u.useCallback((b="start")=>{if(s.current){c.current();const g=kl(s.current);g.length&&cc(b==="start"?g:g.reverse())}},[]),h=u.useCallback(()=>{if(s.current){const b=kl(s.current);b.length&&(c.current=YT(b))}},[]);return u.createElement(LT,{scope:n,value:a,triggerRef:l,contentRef:s,focusProxyRef:d,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h},u.createElement(ht.li,Se({},o,{ref:t})))}),$p="NavigationMenuTrigger",OT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=$t($p,e.__scopeNavigationMenu),a=x1($p,e.__scopeNavigationMenu),s=u.useRef(null),l=Gt(s,a.triggerRef,t),d=S1(i.baseId,a.value),c=T1(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(lc.ItemSlot,{scope:n,value:a.value},u.createElement(P1,{asChild:!0},u.createElement(ht.button,Se({id:d,disabled:r,"data-disabled":r?"":void 0,"data-state":dc(h),"aria-expanded":h,"aria-controls":c},o,{ref:l,onPointerEnter:Ie(e.onPointerEnter,()=>{p.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:Ie(e.onPointerMove,Zi(()=>{r||p.current||a.wasEscapeCloseRef.current||f.current||(i.onTriggerEnter(a.value),f.current=!0)})),onPointerLeave:Ie(e.onPointerLeave,Zi(()=>{r||(i.onTriggerLeave(),f.current=!1)})),onClick:Ie(e.onClick,()=>{i.onItemSelect(a.value),p.current=h}),onKeyDown:Ie(e.onKeyDown,b=>{const y={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&b.key===y&&(a.onEntryKeyDown(),b.preventDefault())})})))),h&&u.createElement(u.Fragment,null,u.createElement(DT,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:b=>{const g=a.contentRef.current,y=b.relatedTarget,$=y===s.current,C=g==null?void 0:g.contains(y);($||!C)&&a.onFocusProxyEnter($?"start":"end")}}),i.viewport&&u.createElement("span",{"aria-owns":c})))}),xp="navigationMenu.linkSelect",NT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return u.createElement(P1,{asChild:!0},u.createElement(ht.a,Se({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:Ie(e.onClick,a=>{const s=a.target,l=new CustomEvent(xp,{bubbles:!0,cancelable:!0});if(s.addEventListener(xp,d=>o==null?void 0:o(d),{once:!0}),Tl(s,l),!l.defaultPrevented&&!a.metaKey){const d=new CustomEvent(yi,{bubbles:!0,cancelable:!0});Tl(s,d)}},{checkForDefaultPrevented:!1})})))}),w1="NavigationMenuIndicator",KT=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$t(w1,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?Wt.createPortal(u.createElement(ko,{present:n||i},u.createElement(jT,Se({},r,{ref:t}))),o.indicatorTrack):null}),jT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(w1,n),i=$1(n),[a,s]=u.useState(null),[l,d]=u.useState(null),c=o.orientation==="horizontal",f=!!o.value;u.useEffect(()=>{var h;const g=(h=i().find(y=>y.value===o.value))===null||h===void 0?void 0:h.ref.current;g&&s(g)},[i,o.value]);const p=()=>{a&&d({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return Rl(a,p),Rl(o.indicatorTrack,p),l?u.createElement(ht.div,Se({"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation},r,{ref:t,style:{position:"absolute",...c?{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}),ho="NavigationMenuContent",_T=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$t(ho,e.__scopeNavigationMenu),i=x1(ho,e.__scopeNavigationMenu),a=Gt(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(zT,Se({forceMount:n},l,{ref:a})):u.createElement(ko,{present:n||s},u.createElement(C1,Se({"data-state":dc(s)},l,{ref:a,onPointerEnter:Ie(e.onPointerEnter,o.onContentEnter),onPointerLeave:Ie(e.onPointerLeave,Zi(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),zT=u.forwardRef((e,t)=>{const n=$t(ho,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return fr(()=>{r(e.value,{ref:t,...e})},[e,t,r]),fr(()=>()=>o(e.value),[e.value,o]),null}),yi="navigationMenu.rootContentDismiss",C1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...d}=e,c=$t(ho,n),f=u.useRef(null),p=Gt(f,t),h=S1(c.baseId,r),b=T1(c.baseId,r),g=$1(n),y=u.useRef(null),{onItemDismiss:$}=c;u.useEffect(()=>{const w=f.current;if(c.isRootMenu&&w){const E=()=>{var P;$(),s(),w.contains(document.activeElement)&&((P=o.current)===null||P===void 0||P.focus())};return w.addEventListener(yi,E),()=>w.removeEventListener(yi,E)}},[c.isRootMenu,e.value,o,$,s]);const C=u.useMemo(()=>{const E=g().map(F=>F.value);c.dir==="rtl"&&E.reverse();const P=E.indexOf(c.value),k=E.indexOf(c.previousValue),N=r===c.value,v=k===E.indexOf(r);if(!N&&!v)return y.current;const L=(()=>{if(P!==k){if(N&&k!==-1)return P>k?"from-end":"from-start";if(v&&P!==-1)return P>k?"to-start":"to-end"}return null})();return y.current=L,L},[c.previousValue,c.value,c.dir,g,r]);return u.createElement(E1,{asChild:!0},u.createElement(yT,Se({id:b,"aria-labelledby":h,"data-motion":C,"data-orientation":c.orientation},d,{ref:p,onDismiss:()=>{var w;const E=new Event(yi,{bubbles:!0,cancelable:!0});(w=f.current)===null||w===void 0||w.dispatchEvent(E)},onFocusOutside:Ie(e.onFocusOutside,w=>{var E;l();const P=w.target;(E=c.rootNavigationMenu)!==null&&E!==void 0&&E.contains(P)&&w.preventDefault()}),onPointerDownOutside:Ie(e.onPointerDownOutside,w=>{var E;const P=w.target,k=g().some(v=>{var L;return(L=v.ref.current)===null||L===void 0?void 0:L.contains(P)}),N=c.isRootMenu&&((E=c.viewport)===null||E===void 0?void 0:E.contains(P));(k||N||!c.isRootMenu)&&w.preventDefault()}),onKeyDown:Ie(e.onKeyDown,w=>{const E=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!E){const N=kl(w.currentTarget),v=document.activeElement,L=N.findIndex(B=>B===v),A=w.shiftKey?N.slice(0,L).reverse():N.slice(L+1,N.length);if(cc(A))w.preventDefault();else{var k;(k=i.current)===null||k===void 0||k.focus()}}}),onEscapeKeyDown:Ie(e.onEscapeKeyDown,w=>{a.current=!0})})))}),D1="NavigationMenuViewport",UT=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!$t(D1,e.__scopeNavigationMenu).value;return u.createElement(ko,{present:n||i},u.createElement(HT,Se({},r,{ref:t})))}),HT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=$t(D1,n),a=Gt(t,i.onViewportChange),s=MT(ho,e.__scopeNavigationMenu),[l,d]=u.useState(null),[c,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,b=!!i.value,g=b?i.value:i.previousValue;return Rl(c,()=>{c&&d({width:c.offsetWidth,height:c.offsetHeight})}),u.createElement(ht.div,Se({"data-state":dc(b),"data-orientation":i.orientation},o,{ref:a,style:{pointerEvents:!b&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":h,...o.style},onPointerEnter:Ie(e.onPointerEnter,i.onContentEnter),onPointerLeave:Ie(e.onPointerLeave,Zi(i.onContentLeave))}),Array.from(s.items).map(([$,{ref:C,forceMount:w,...E}])=>{const P=g===$;return u.createElement(ko,{key:$,present:w||P},u.createElement(C1,Se({},E,{ref:sc(C,k=>{P&&k&&f(k)})})))}))}),GT="FocusGroup",E1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(GT,n);return u.createElement(Ml.Provider,{scope:n},u.createElement(Ml.Slot,{scope:n},u.createElement(ht.div,Se({dir:o.dir},r,{ref:t}))))}),wp=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],WT="FocusGroupItem",P1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=PT(n),i=$t(WT,n);return u.createElement(Ml.ItemSlot,{scope:n},u.createElement(ht.button,Se({},r,{ref:t,onKeyDown:Ie(e.onKeyDown,a=>{if(["Home","End",...wp].includes(a.key)){let l=o().map(f=>f.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&l.reverse(),wp.includes(a.key)){const f=l.indexOf(a.currentTarget);l=l.slice(f+1)}setTimeout(()=>cc(l)),a.preventDefault()}})})))});function kl(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 cc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function YT(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 Rl(e,t){const n=dt(t);fr(()=>{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 dc(e){return e?"open":"closed"}function S1(e,t){return`${e}-trigger-${t}`}function T1(e,t){return`${e}-content-${t}`}function Zi(e){return t=>t.pointerType==="mouse"?e(t):void 0}const qT=kT,ZT=BT,Ts=VT,XT=OT,JT=NT,QT=KT,eA=_T,tA=UT,nA=_.keyframes`
1768
+ `;function of({children:e,...r}){return p.jsx(tf,{classNames:{base:["tooltip"],content:["tooltip-content"]},...r,children:e})}function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},pe.apply(this,arguments)}function ka(e,r=[]){let t=[];function o(s,i){const l=d.createContext(i),u=t.length;t=[...t,i];function g(y){const{scope:h,children:v,...x}=y,E=(h==null?void 0:h[e][u])||l,k=d.useMemo(()=>x,Object.values(x));return d.createElement(E.Provider,{value:k},v)}function b(y,h){const v=(h==null?void 0:h[e][u])||l,x=d.useContext(v);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${y}\` must be used within \`${s}\``)}return g.displayName=s+"Provider",[g,b]}const n=()=>{const s=t.map(i=>d.createContext(i));return function(l){const u=(l==null?void 0:l[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return n.scopeName=e,[o,nf(n,...r)]}function nf(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const i=o.reduce((l,{useScope:u,scopeName:g})=>{const y=u(s)[`__scope${g}`];return{...l,...y}},{});return d.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return t.scopeName=r.scopeName,t}function ye(e,r,{checkForDefaultPrevented:t=!0}={}){return function(n){if(e==null||e(n),t===!1||!n.defaultPrevented)return r==null?void 0:r(n)}}function af(e,r){typeof e=="function"?e(r):e!=null&&(e.current=r)}function eo(...e){return r=>e.forEach(t=>af(t,r))}function Fe(...e){return d.useCallback(eo(...e),e)}const Ur=d.forwardRef((e,r)=>{const{children:t,...o}=e,n=d.Children.toArray(t),s=n.find(lf);if(s){const i=s.props.children,l=n.map(u=>u===s?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:u);return d.createElement(Nt,pe({},o,{ref:r}),d.isValidElement(i)?d.cloneElement(i,void 0,l):null)}return d.createElement(Nt,pe({},o,{ref:r}),t)});Ur.displayName="Slot";const Nt=d.forwardRef((e,r)=>{const{children:t,...o}=e;return d.isValidElement(t)?d.cloneElement(t,{...cf(o,t.props),ref:r?eo(r,t.ref):t.ref}):d.Children.count(t)>1?d.Children.only(null):null});Nt.displayName="SlotClone";const sf=({children:e})=>d.createElement(d.Fragment,null,e);function lf(e){return d.isValidElement(e)&&e.type===sf}function cf(e,r){const t={...r};for(const o in r){const n=e[o],s=r[o];/^on[A-Z]/.test(o)?n&&s?t[o]=(...l)=>{s(...l),n(...l)}:n&&(t[o]=n):o==="style"?t[o]={...n,...s}:o==="className"&&(t[o]=[n,s].filter(Boolean).join(" "))}return{...e,...t}}const df=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Se=df.reduce((e,r)=>{const t=d.forwardRef((o,n)=>{const{asChild:s,...i}=o,l=s?Ur:r;return d.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),d.createElement(l,pe({},i,{ref:n}))});return t.displayName=`Primitive.${r}`,{...e,[r]:t}},{});function Dt(e,r){e&&Yr.flushSync(()=>e.dispatchEvent(r))}function Ee(e){const r=d.useRef(e);return d.useEffect(()=>{r.current=e}),d.useMemo(()=>(...t)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...t)},[])}function uf({prop:e,defaultProp:r,onChange:t=()=>{}}){const[o,n]=ff({defaultProp:r,onChange:t}),s=e!==void 0,i=s?e:o,l=Ee(t),u=d.useCallback(g=>{if(s){const y=typeof g=="function"?g(e):g;y!==e&&l(y)}else n(g)},[s,e,n,l]);return[i,u]}function ff({defaultProp:e,onChange:r}){const t=d.useState(e),[o]=t,n=d.useRef(o),s=Ee(r);return d.useEffect(()=>{n.current!==o&&(s(o),n.current=o)},[o,n,s]),t}const pf=d.createContext(void 0);function bf(e){const r=d.useContext(pf);return e||r||"ltr"}const nr=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{};function gf(e,r){return d.useReducer((t,o)=>{const n=r[t][o];return n??t},e)}const $r=e=>{const{present:r,children:t}=e,o=vf(r),n=typeof t=="function"?t({present:o.isPresent}):d.Children.only(t),s=Fe(o.ref,n.ref);return typeof t=="function"||o.isPresent?d.cloneElement(n,{ref:s}):null};$r.displayName="Presence";function vf(e){const[r,t]=d.useState(),o=d.useRef({}),n=d.useRef(e),s=d.useRef("none"),i=e?"mounted":"unmounted",[l,u]=gf(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const g=Lr(o.current);s.current=l==="mounted"?g:"none"},[l]),nr(()=>{const g=o.current,b=n.current;if(b!==e){const h=s.current,v=Lr(g);e?u("MOUNT"):v==="none"||(g==null?void 0:g.display)==="none"?u("UNMOUNT"):u(b&&h!==v?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,u]),nr(()=>{if(r){const g=y=>{const v=Lr(o.current).includes(y.animationName);y.target===r&&v&&Yr.flushSync(()=>u("ANIMATION_END"))},b=y=>{y.target===r&&(s.current=Lr(o.current))};return r.addEventListener("animationstart",b),r.addEventListener("animationcancel",g),r.addEventListener("animationend",g),()=>{r.removeEventListener("animationstart",b),r.removeEventListener("animationcancel",g),r.removeEventListener("animationend",g)}}else u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:d.useCallback(g=>{g&&(o.current=getComputedStyle(g)),t(g)},[])}}function Lr(e){return(e==null?void 0:e.animationName)||"none"}const yf=Fr["useId".toString()]||(()=>{});let $f=0;function Sa(e){const[r,t]=Fr.useState(yf());return nr(()=>{e||t(o=>o??String($f++))},[e]),e||(r?`radix-${r}`:"")}function Ta(e){const r=e+"CollectionProvider",[t,o]=ka(r),[n,s]=t(r,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:x,children:E}=v,k=d.useRef(null),T=d.useRef(new Map).current;return d.createElement(n,{scope:x,itemMap:T,collectionRef:k},E)},l=e+"CollectionSlot",u=d.forwardRef((v,x)=>{const{scope:E,children:k}=v,T=s(l,E),M=Fe(x,T.collectionRef);return d.createElement(Ur,{ref:M},k)}),g=e+"CollectionItemSlot",b="data-radix-collection-item",y=d.forwardRef((v,x)=>{const{scope:E,children:k,...T}=v,M=d.useRef(null),_=Fe(x,M),I=s(g,E);return d.useEffect(()=>(I.itemMap.set(M,{ref:M,...T}),()=>void I.itemMap.delete(M))),d.createElement(Ur,{[b]:"",ref:_},k)});function h(v){const x=s(e+"CollectionConsumer",v);return d.useCallback(()=>{const k=x.collectionRef.current;if(!k)return[];const T=Array.from(k.querySelectorAll(`[${b}]`));return Array.from(x.itemMap.values()).sort((I,O)=>T.indexOf(I.ref.current)-T.indexOf(O.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:y},h,o]}function xf(e,r=globalThis==null?void 0:globalThis.document){const t=Ee(e);d.useEffect(()=>{const o=n=>{n.key==="Escape"&&t(n)};return r.addEventListener("keydown",o),()=>r.removeEventListener("keydown",o)},[t,r])}const Ft="dismissableLayer.update",wf="dismissableLayer.pointerDownOutside",mf="dismissableLayer.focusOutside";let yn;const hf=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cf=d.forwardRef((e,r)=>{var t;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...g}=e,b=d.useContext(hf),[y,h]=d.useState(null),v=(t=y==null?void 0:y.ownerDocument)!==null&&t!==void 0?t:globalThis==null?void 0:globalThis.document,[,x]=d.useState({}),E=Fe(r,L=>h(L)),k=Array.from(b.layers),[T]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),M=k.indexOf(T),_=y?k.indexOf(y):-1,I=b.layersWithOutsidePointerEventsDisabled.size>0,O=_>=M,P=Ef(L=>{const N=L.target,J=[...b.branches].some(q=>q.contains(N));!O||J||(s==null||s(L),l==null||l(L),L.defaultPrevented||u==null||u())},v),F=kf(L=>{const N=L.target;[...b.branches].some(q=>q.contains(N))||(i==null||i(L),l==null||l(L),L.defaultPrevented||u==null||u())},v);return xf(L=>{_===b.layers.size-1&&(n==null||n(L),!L.defaultPrevented&&u&&(L.preventDefault(),u()))},v),d.useEffect(()=>{if(y)return o&&(b.layersWithOutsidePointerEventsDisabled.size===0&&(yn=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(y)),b.layers.add(y),$n(),()=>{o&&b.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=yn)}},[y,v,o,b]),d.useEffect(()=>()=>{y&&(b.layers.delete(y),b.layersWithOutsidePointerEventsDisabled.delete(y),$n())},[y,b]),d.useEffect(()=>{const L=()=>x({});return document.addEventListener(Ft,L),()=>document.removeEventListener(Ft,L)},[]),d.createElement(Se.div,pe({},g,{ref:E,style:{pointerEvents:I?O?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,F.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,P.onPointerDownCapture)}))});function Ef(e,r=globalThis==null?void 0:globalThis.document){const t=Ee(e),o=d.useRef(!1),n=d.useRef(()=>{});return d.useEffect(()=>{const s=l=>{if(l.target&&!o.current){let g=function(){Pa(wf,t,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(r.removeEventListener("click",n.current),n.current=g,r.addEventListener("click",n.current,{once:!0})):g()}else r.removeEventListener("click",n.current);o.current=!1},i=window.setTimeout(()=>{r.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),r.removeEventListener("pointerdown",s),r.removeEventListener("click",n.current)}},[r,t]),{onPointerDownCapture:()=>o.current=!0}}function kf(e,r=globalThis==null?void 0:globalThis.document){const t=Ee(e),o=d.useRef(!1);return d.useEffect(()=>{const n=s=>{s.target&&!o.current&&Pa(mf,t,{originalEvent:s},{discrete:!1})};return r.addEventListener("focusin",n),()=>r.removeEventListener("focusin",n)},[r,t]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function $n(){const e=new CustomEvent(Ft);document.dispatchEvent(e)}function Pa(e,r,t,{discrete:o}){const n=t.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});r&&n.addEventListener(e,r,{once:!0}),o?Dt(n,s):n.dispatchEvent(s)}function Sf(e){const r=d.useRef({value:e,previous:e});return d.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}const Tf=d.forwardRef((e,r)=>d.createElement(Se.span,pe({},e,{ref:r,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}}))),Pf=Tf,xr="NavigationMenu",[ro,Ra,Rf]=Ta(xr),[zt,Of,jf]=Ta(xr),[to,T0]=ka(xr,[Rf,jf]),[Mf,Oe]=to(xr),[_f,If]=to(xr),Af=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,value:o,onValueChange:n,defaultValue:s,delayDuration:i=200,skipDelayDuration:l=300,orientation:u="horizontal",dir:g,...b}=e,[y,h]=d.useState(null),v=Fe(r,N=>h(N)),x=bf(g),E=d.useRef(0),k=d.useRef(0),T=d.useRef(0),[M,_]=d.useState(!0),[I="",O]=uf({prop:o,onChange:N=>{const J=N!=="",q=l>0;J?(window.clearTimeout(T.current),q&&_(!1)):(window.clearTimeout(T.current),T.current=window.setTimeout(()=>_(!0),l)),n==null||n(N)},defaultProp:s}),P=d.useCallback(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>O(""),150)},[O]),F=d.useCallback(N=>{window.clearTimeout(k.current),O(N)},[O]),L=d.useCallback(N=>{I===N?window.clearTimeout(k.current):E.current=window.setTimeout(()=>{window.clearTimeout(k.current),O(N)},i)},[I,O,i]);return d.useEffect(()=>()=>{window.clearTimeout(E.current),window.clearTimeout(k.current),window.clearTimeout(T.current)},[]),d.createElement(Lf,{scope:t,isRootMenu:!0,value:I,dir:x,orientation:u,rootNavigationMenu:y,onTriggerEnter:N=>{window.clearTimeout(E.current),M?L(N):F(N)},onTriggerLeave:()=>{window.clearTimeout(E.current),P()},onContentEnter:()=>window.clearTimeout(k.current),onContentLeave:P,onItemSelect:N=>{O(J=>J===N?"":N)},onItemDismiss:()=>O("")},d.createElement(Se.nav,pe({"aria-label":"Main","data-orientation":u,dir:x},b,{ref:v})))}),Lf=e=>{const{scope:r,isRootMenu:t,rootNavigationMenu:o,dir:n,orientation:s,children:i,value:l,onItemSelect:u,onItemDismiss:g,onTriggerEnter:b,onTriggerLeave:y,onContentEnter:h,onContentLeave:v}=e,[x,E]=d.useState(null),[k,T]=d.useState(new Map),[M,_]=d.useState(null);return d.createElement(Mf,{scope:r,isRootMenu:t,rootNavigationMenu:o,value:l,previousValue:Sf(l),baseId:Sa(),dir:n,orientation:s,viewport:x,onViewportChange:E,indicatorTrack:M,onIndicatorTrackChange:_,onTriggerEnter:Ee(b),onTriggerLeave:Ee(y),onContentEnter:Ee(h),onContentLeave:Ee(v),onItemSelect:Ee(u),onItemDismiss:Ee(g),onViewportContentChange:d.useCallback((I,O)=>{T(P=>(P.set(I,O),new Map(P)))},[]),onViewportContentRemove:d.useCallback(I=>{T(O=>O.has(I)?(O.delete(I),new Map(O)):O)},[])},d.createElement(ro.Provider,{scope:r},d.createElement(_f,{scope:r,items:k},i)))},Nf="NavigationMenuList",Df=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,...o}=e,n=Oe(Nf,t),s=d.createElement(Se.ul,pe({"data-orientation":n.orientation},o,{ref:r}));return d.createElement(Se.div,{style:{position:"relative"},ref:n.onIndicatorTrackChange},d.createElement(ro.Slot,{scope:t},n.isRootMenu?d.createElement(Ia,{asChild:!0},s):s))}),Ff="NavigationMenuItem",[zf,Oa]=to(Ff),Vf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,value:o,...n}=e,s=Sa(),i=o||s||"LEGACY_REACT_AUTO_VALUE",l=d.useRef(null),u=d.useRef(null),g=d.useRef(null),b=d.useRef(()=>{}),y=d.useRef(!1),h=d.useCallback((x="start")=>{if(l.current){b.current();const E=Vt(l.current);E.length&&oo(x==="start"?E:E.reverse())}},[]),v=d.useCallback(()=>{if(l.current){const x=Vt(l.current);x.length&&(b.current=Jf(x))}},[]);return d.createElement(zf,{scope:t,value:i,triggerRef:u,contentRef:l,focusProxyRef:g,wasEscapeCloseRef:y,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:v,onContentFocusOutside:v},d.createElement(Se.li,pe({},n,{ref:r})))}),xn="NavigationMenuTrigger",Bf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,disabled:o,...n}=e,s=Oe(xn,e.__scopeNavigationMenu),i=Oa(xn,e.__scopeNavigationMenu),l=d.useRef(null),u=Fe(l,i.triggerRef,r),g=La(s.baseId,i.value),b=Na(s.baseId,i.value),y=d.useRef(!1),h=d.useRef(!1),v=i.value===s.value;return d.createElement(d.Fragment,null,d.createElement(ro.ItemSlot,{scope:t,value:i.value},d.createElement(Aa,{asChild:!0},d.createElement(Se.button,pe({id:g,disabled:o,"data-disabled":o?"":void 0,"data-state":no(v),"aria-expanded":v,"aria-controls":b},n,{ref:u,onPointerEnter:ye(e.onPointerEnter,()=>{h.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:ye(e.onPointerMove,Kr(()=>{o||h.current||i.wasEscapeCloseRef.current||y.current||(s.onTriggerEnter(i.value),y.current=!0)})),onPointerLeave:ye(e.onPointerLeave,Kr(()=>{o||(s.onTriggerLeave(),y.current=!1)})),onClick:ye(e.onClick,()=>{s.onItemSelect(i.value),h.current=v}),onKeyDown:ye(e.onKeyDown,x=>{const k={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];v&&x.key===k&&(i.onEntryKeyDown(),x.preventDefault())})})))),v&&d.createElement(d.Fragment,null,d.createElement(Pf,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:x=>{const E=i.contentRef.current,k=x.relatedTarget,T=k===l.current,M=E==null?void 0:E.contains(k);(T||!M)&&i.onFocusProxyEnter(T?"start":"end")}}),s.viewport&&d.createElement("span",{"aria-owns":b})))}),wn="navigationMenu.linkSelect",Hf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,active:o,onSelect:n,...s}=e;return d.createElement(Aa,{asChild:!0},d.createElement(Se.a,pe({"data-active":o?"":void 0,"aria-current":o?"page":void 0},s,{ref:r,onClick:ye(e.onClick,i=>{const l=i.target,u=new CustomEvent(wn,{bubbles:!0,cancelable:!0});if(l.addEventListener(wn,g=>n==null?void 0:n(g),{once:!0}),Dt(l,u),!u.defaultPrevented&&!i.metaKey){const g=new CustomEvent(Dr,{bubbles:!0,cancelable:!0});Dt(l,g)}},{checkForDefaultPrevented:!1})})))}),ja="NavigationMenuIndicator",Gf=d.forwardRef((e,r)=>{const{forceMount:t,...o}=e,n=Oe(ja,e.__scopeNavigationMenu),s=!!n.value;return n.indicatorTrack?Yr.createPortal(d.createElement($r,{present:t||s},d.createElement(Wf,pe({},o,{ref:r}))),n.indicatorTrack):null}),Wf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,...o}=e,n=Oe(ja,t),s=Ra(t),[i,l]=d.useState(null),[u,g]=d.useState(null),b=n.orientation==="horizontal",y=!!n.value;d.useEffect(()=>{var v;const E=(v=s().find(k=>k.value===n.value))===null||v===void 0?void 0:v.ref.current;E&&l(E)},[s,n.value]);const h=()=>{i&&g({size:b?i.offsetWidth:i.offsetHeight,offset:b?i.offsetLeft:i.offsetTop})};return Bt(i,h),Bt(n.indicatorTrack,h),u?d.createElement(Se.div,pe({"aria-hidden":!0,"data-state":y?"visible":"hidden","data-orientation":n.orientation},o,{ref:r,style:{position:"absolute",...b?{left:0,width:u.size+"px",transform:`translateX(${u.offset}px)`}:{top:0,height:u.size+"px",transform:`translateY(${u.offset}px)`},...o.style}})):null}),yr="NavigationMenuContent",Uf=d.forwardRef((e,r)=>{const{forceMount:t,...o}=e,n=Oe(yr,e.__scopeNavigationMenu),s=Oa(yr,e.__scopeNavigationMenu),i=Fe(s.contentRef,r),l=s.value===n.value,u={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...o};return n.viewport?d.createElement(Kf,pe({forceMount:t},u,{ref:i})):d.createElement($r,{present:t||l},d.createElement(Ma,pe({"data-state":no(l)},u,{ref:i,onPointerEnter:ye(e.onPointerEnter,n.onContentEnter),onPointerLeave:ye(e.onPointerLeave,Kr(n.onContentLeave)),style:{pointerEvents:!l&&n.isRootMenu?"none":void 0,...u.style}})))}),Kf=d.forwardRef((e,r)=>{const t=Oe(yr,e.__scopeNavigationMenu),{onViewportContentChange:o,onViewportContentRemove:n}=t;return nr(()=>{o(e.value,{ref:r,...e})},[e,r,o]),nr(()=>()=>n(e.value),[e.value,n]),null}),Dr="navigationMenu.rootContentDismiss",Ma=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,value:o,triggerRef:n,focusProxyRef:s,wasEscapeCloseRef:i,onRootContentClose:l,onContentFocusOutside:u,...g}=e,b=Oe(yr,t),y=d.useRef(null),h=Fe(y,r),v=La(b.baseId,o),x=Na(b.baseId,o),E=Ra(t),k=d.useRef(null),{onItemDismiss:T}=b;d.useEffect(()=>{const _=y.current;if(b.isRootMenu&&_){const I=()=>{var O;T(),l(),_.contains(document.activeElement)&&((O=n.current)===null||O===void 0||O.focus())};return _.addEventListener(Dr,I),()=>_.removeEventListener(Dr,I)}},[b.isRootMenu,e.value,n,T,l]);const M=d.useMemo(()=>{const I=E().map(J=>J.value);b.dir==="rtl"&&I.reverse();const O=I.indexOf(b.value),P=I.indexOf(b.previousValue),F=o===b.value,L=P===I.indexOf(o);if(!F&&!L)return k.current;const N=(()=>{if(O!==P){if(F&&P!==-1)return O>P?"from-end":"from-start";if(L&&O!==-1)return O>P?"to-start":"to-end"}return null})();return k.current=N,N},[b.previousValue,b.value,b.dir,E,o]);return d.createElement(Ia,{asChild:!0},d.createElement(Cf,pe({id:x,"aria-labelledby":v,"data-motion":M,"data-orientation":b.orientation},g,{ref:h,onDismiss:()=>{var _;const I=new Event(Dr,{bubbles:!0,cancelable:!0});(_=y.current)===null||_===void 0||_.dispatchEvent(I)},onFocusOutside:ye(e.onFocusOutside,_=>{var I;u();const O=_.target;(I=b.rootNavigationMenu)!==null&&I!==void 0&&I.contains(O)&&_.preventDefault()}),onPointerDownOutside:ye(e.onPointerDownOutside,_=>{var I;const O=_.target,P=E().some(L=>{var N;return(N=L.ref.current)===null||N===void 0?void 0:N.contains(O)}),F=b.isRootMenu&&((I=b.viewport)===null||I===void 0?void 0:I.contains(O));(P||F||!b.isRootMenu)&&_.preventDefault()}),onKeyDown:ye(e.onKeyDown,_=>{const I=_.altKey||_.ctrlKey||_.metaKey;if(_.key==="Tab"&&!I){const F=Vt(_.currentTarget),L=document.activeElement,N=F.findIndex(j=>j===L),q=_.shiftKey?F.slice(0,N).reverse():F.slice(N+1,F.length);if(oo(q))_.preventDefault();else{var P;(P=s.current)===null||P===void 0||P.focus()}}}),onEscapeKeyDown:ye(e.onEscapeKeyDown,_=>{i.current=!0})})))}),_a="NavigationMenuViewport",Yf=d.forwardRef((e,r)=>{const{forceMount:t,...o}=e,s=!!Oe(_a,e.__scopeNavigationMenu).value;return d.createElement($r,{present:t||s},d.createElement(Xf,pe({},o,{ref:r})))}),Xf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,children:o,...n}=e,s=Oe(_a,t),i=Fe(r,s.onViewportChange),l=If(yr,e.__scopeNavigationMenu),[u,g]=d.useState(null),[b,y]=d.useState(null),h=u?(u==null?void 0:u.width)+"px":void 0,v=u?(u==null?void 0:u.height)+"px":void 0,x=!!s.value,E=x?s.value:s.previousValue;return Bt(b,()=>{b&&g({width:b.offsetWidth,height:b.offsetHeight})}),d.createElement(Se.div,pe({"data-state":no(x),"data-orientation":s.orientation},n,{ref:i,style:{pointerEvents:!x&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":v,...n.style},onPointerEnter:ye(e.onPointerEnter,s.onContentEnter),onPointerLeave:ye(e.onPointerLeave,Kr(s.onContentLeave))}),Array.from(l.items).map(([T,{ref:M,forceMount:_,...I}])=>{const O=E===T;return d.createElement($r,{key:T,present:_||O},d.createElement(Ma,pe({},I,{ref:eo(M,P=>{O&&P&&y(P)})})))}))}),qf="FocusGroup",Ia=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,...o}=e,n=Oe(qf,t);return d.createElement(zt.Provider,{scope:t},d.createElement(zt.Slot,{scope:t},d.createElement(Se.div,pe({dir:n.dir},o,{ref:r}))))}),mn=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Zf="FocusGroupItem",Aa=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,...o}=e,n=Of(t),s=Oe(Zf,t);return d.createElement(zt.ItemSlot,{scope:t},d.createElement(Se.button,pe({},o,{ref:r,onKeyDown:ye(e.onKeyDown,i=>{if(["Home","End",...mn].includes(i.key)){let u=n().map(y=>y.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&u.reverse(),mn.includes(i.key)){const y=u.indexOf(i.currentTarget);u=u.slice(y+1)}setTimeout(()=>oo(u)),i.preventDefault()}})})))});function Vt(e){const r=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const n=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||n?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)r.push(t.currentNode);return r}function oo(e){const r=document.activeElement;return e.some(t=>t===r?!0:(t.focus(),document.activeElement!==r))}function Jf(e){return e.forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")}),()=>{e.forEach(r=>{const t=r.dataset.tabindex;r.setAttribute("tabindex",t)})}}function Bt(e,r){const t=Ee(r);nr(()=>{let o=0;if(e){const n=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(t)});return n.observe(e),()=>{window.cancelAnimationFrame(o),n.unobserve(e)}}},[e,t])}function no(e){return e?"open":"closed"}function La(e,r){return`${e}-trigger-${r}`}function Na(e,r){return`${e}-content-${r}`}function Kr(e){return r=>r.pointerType==="mouse"?e(r):void 0}const Qf=Af,e0=Df,vt=Vf,r0=Bf,t0=Hf,o0=Gf,n0=Uf,a0=Yf,s0=m.keyframes`
1793
1769
  from {
1794
1770
  opacity: 0;
1795
1771
  transform: translateX(200px);
@@ -1798,7 +1774,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1798
1774
  opacity: 1;
1799
1775
  transform: translateX(0);
1800
1776
  }
1801
- `,rA=_.keyframes`
1777
+ `,i0=m.keyframes`
1802
1778
  from {
1803
1779
  opacity: 0;
1804
1780
  transform: translateX(-200px);
@@ -1807,7 +1783,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1807
1783
  opacity: 1;
1808
1784
  transform: translateX(0);
1809
1785
  }
1810
- `,oA=_.keyframes`
1786
+ `,l0=m.keyframes`
1811
1787
  from {
1812
1788
  opacity: 1;
1813
1789
  transform: translateX(0);
@@ -1816,7 +1792,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1816
1792
  opacity: 0;
1817
1793
  transform: translateX(200px);
1818
1794
  }
1819
- `,iA=_.keyframes`
1795
+ `,c0=m.keyframes`
1820
1796
  from {
1821
1797
  opacity: 1;
1822
1798
  transform: translateX(0);
@@ -1825,7 +1801,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1825
1801
  opacity: 0;
1826
1802
  transform: translateX(-200px);
1827
1803
  }
1828
- `,aA=_.keyframes`
1804
+ `,d0=m.keyframes`
1829
1805
  from {
1830
1806
  opacity: 0;
1831
1807
  transform: rotateX(-30deg) scale(0.9);
@@ -1834,7 +1810,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1834
1810
  opacity: 1;
1835
1811
  transform: rotateX(0deg) scale(1);
1836
1812
  }
1837
- `,sA=_.keyframes`
1813
+ `,u0=m.keyframes`
1838
1814
  from {
1839
1815
  opacity: 1;
1840
1816
  transform: rotateX(0deg) scale(1);
@@ -1843,38 +1819,38 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1843
1819
  opacity: 0;
1844
1820
  transform: rotateX(-10deg) scale(0.95);
1845
1821
  }
1846
- `,lA=_.keyframes`
1822
+ `,f0=m.keyframes`
1847
1823
  from {
1848
1824
  opacity: 0;
1849
1825
  }
1850
1826
  to {
1851
1827
  opacity: 1;
1852
1828
  }
1853
- `,uA=_.keyframes`
1829
+ `,p0=m.keyframes`
1854
1830
  from {
1855
1831
  opacity: 1;
1856
1832
  }
1857
1833
  to {
1858
1834
  opacity: 0;
1859
1835
  }
1860
- `,A1=_.styled.svg`
1836
+ `,Da=m.styled.svg`
1861
1837
  position: relative;
1862
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1838
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1863
1839
  top: 1px;
1864
1840
  transition: transform 200ms ease;
1865
- `,cA=_.styled(qT)`
1841
+ `,b0=m.styled(Qf)`
1866
1842
  position: relative;
1867
1843
  display: flex;
1868
1844
  width: 100%;
1869
1845
  justify-content: center;
1870
1846
  z-index: 1;
1871
- `,dA=_.styled(ZT)`
1847
+ `,g0=m.styled(e0)`
1872
1848
  display: flex;
1873
1849
  justify-content: center;
1874
1850
  list-style: none;
1875
1851
  margin: 0;
1876
1852
  padding: 0;
1877
- `,Cp=_.styled(XT)`
1853
+ `,hn=m.styled(r0)`
1878
1854
  display: flex;
1879
1855
  align-items: center;
1880
1856
  justify-content: space-between;
@@ -1889,22 +1865,22 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1889
1865
  cursor: pointer;
1890
1866
  background-color: transparent;
1891
1867
  font-size: 0.9rem;
1892
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1868
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1893
1869
  transition: all 200ms ease;
1894
1870
 
1895
1871
  &:focus {
1896
1872
  box-shadow: 0 0 0 2px
1897
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
1873
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
1898
1874
  }
1899
1875
 
1900
1876
  &:hover {
1901
- background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
1877
+ background-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
1902
1878
  }
1903
1879
 
1904
- &[data-state='open'] > ${A1} {
1880
+ &[data-state='open'] > ${Da} {
1905
1881
  transform: rotate(-180deg);
1906
1882
  }
1907
- `,Fl=_.styled(JT)`
1883
+ `,Ht=m.styled(t0)`
1908
1884
  display: block;
1909
1885
  text-decoration: none;
1910
1886
  font-size: 0.9rem;
@@ -1918,18 +1894,18 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1918
1894
  font-size: 0.9rem;
1919
1895
  border: none;
1920
1896
  background-color: transparent;
1921
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1897
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
1922
1898
  transition: all 200ms ease;
1923
1899
 
1924
1900
  &:focus {
1925
1901
  box-shadow: 0 0 0 2px
1926
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
1902
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[200])??c.colors.slate[200]}};
1927
1903
  }
1928
1904
 
1929
1905
  &:hover {
1930
- background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
1906
+ background-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
1931
1907
  }
1932
- `,Dp=_.styled(eA)`
1908
+ `,Cn=m.styled(n0)`
1933
1909
  position: absolute;
1934
1910
  top: 0;
1935
1911
  left: 0;
@@ -1938,22 +1914,22 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1938
1914
  animation-timing-function: ease;
1939
1915
 
1940
1916
  &[data-motion='from-start'] {
1941
- animation-name: ${rA};
1917
+ animation-name: ${i0};
1942
1918
  }
1943
1919
  &[data-motion='from-end'] {
1944
- animation-name: ${nA};
1920
+ animation-name: ${s0};
1945
1921
  }
1946
1922
  &[data-motion='to-start'] {
1947
- animation-name: ${iA};
1923
+ animation-name: ${c0};
1948
1924
  }
1949
1925
  &[data-motion='to-end'] {
1950
- animation-name: ${oA};
1926
+ animation-name: ${l0};
1951
1927
  }
1952
1928
 
1953
1929
  @media only screen and (min-width: 600px) {
1954
1930
  width: auto;
1955
1931
  }
1956
- `,fA=_.styled(QT)`
1932
+ `,v0=m.styled(o0)`
1957
1933
  display: flex;
1958
1934
  align-items: flex-end;
1959
1935
  justify-content: center;
@@ -1964,18 +1940,18 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1964
1940
  transition: width, transform 250ms ease;
1965
1941
 
1966
1942
  &[data-state='visible'] {
1967
- animation: ${lA} 200ms ease;
1943
+ animation: ${f0} 200ms ease;
1968
1944
  }
1969
1945
 
1970
1946
  &[data-state='hidden'] {
1971
- animation: ${uA} 200ms ease;
1947
+ animation: ${p0} 200ms ease;
1972
1948
  }
1973
- `,pA=_.styled(tA)`
1949
+ `,y0=m.styled(a0)`
1974
1950
  position: relative;
1975
1951
  transform-origin: top center;
1976
1952
  margin-top: 10px;
1977
1953
  width: 100%;
1978
- background-color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
1954
+ background-color: ${({theme:e})=>{var r;return((r=e==null?void 0:e.colors)==null?void 0:r.white)??c.colors.white}};
1979
1955
  border-radius: 6px;
1980
1956
  overflow: hidden;
1981
1957
  box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
@@ -1983,18 +1959,18 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1983
1959
  transition: width, height, 300ms ease;
1984
1960
 
1985
1961
  &[data-state='open'] {
1986
- animation: ${aA} 200ms ease;
1962
+ animation: ${d0} 200ms ease;
1987
1963
  }
1988
1964
 
1989
1965
  &[data-state='closed'] {
1990
- animation: ${sA} 200ms ease;
1966
+ animation: ${u0} 200ms ease;
1991
1967
  }
1992
1968
 
1993
1969
  @media only screen and (min-width: 600px) {
1994
1970
  width: var(--radix-navigation-menu-viewport-width);
1995
1971
  }
1996
1972
  }
1997
- `,Ep=_.styled.ul`
1973
+ `,En=m.styled.ul`
1998
1974
  display: grid;
1999
1975
  padding: 22px;
2000
1976
  margin: 0;
@@ -2012,7 +1988,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
2012
1988
  grid-template-rows: repeat(3, 1fr);
2013
1989
  }
2014
1990
  }
2015
- `,hA=_.styled(xa)`
1991
+ `,$0=m.styled(D.Link)`
2016
1992
  display: block;
2017
1993
  outline: none;
2018
1994
  text-decoration: none;
@@ -2025,22 +2001,22 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
2025
2001
 
2026
2002
  &:focus {
2027
2003
  box-shadow: 0 0 0 2px
2028
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
2004
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
2029
2005
  }
2030
2006
 
2031
2007
  &:hover {
2032
- background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
2008
+ background-color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[100])??c.colors.slate[100]}};
2033
2009
  }
2034
- `,bA=_.styled.div`
2010
+ `,x0=m.styled.div`
2035
2011
  font-weight: 500;
2036
2012
  line-height: 1.2;
2037
2013
  margin-bottom: 5px;
2038
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
2039
- `,mA=_.styled.p`
2040
- color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
2014
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
2015
+ `,w0=m.styled.p`
2016
+ color: ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
2041
2017
  line-height: 1.4;
2042
2018
  font-weight: initial;
2043
- `,gA=_.styled(xa)`
2019
+ `,m0=m.styled(D.Link)`
2044
2020
  display: flex;
2045
2021
  justify-content: flex-end;
2046
2022
  flex-direction: column;
@@ -2048,9 +2024,9 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
2048
2024
  height: 100%;
2049
2025
  background: linear-gradient(
2050
2026
  135deg,
2051
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.violet)==null?void 0:n[500])??x.colors.violet[500]}}
2027
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.violet)==null?void 0:t[500])??c.colors.violet[500]}}
2052
2028
  0%,
2053
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.indigo)==null?void 0:n[500])??x.colors.indigo[500]}}
2029
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.indigo)==null?void 0:t[500])??c.colors.indigo[500]}}
2054
2030
  100%
2055
2031
  );
2056
2032
  border-radius: 0.375rem;
@@ -2061,20 +2037,20 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
2061
2037
 
2062
2038
  &:focus {
2063
2039
  box-shadow: 0 0 0 2px
2064
- ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
2040
+ ${({theme:e})=>{var r,t;return((t=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:t[900])??c.colors.slate[900]}};
2065
2041
  }
2066
- `,vA=_.styled.div`
2042
+ `,h0=m.styled.div`
2067
2043
  color: white;
2068
2044
  font-size: 18px;
2069
2045
  font-weight: 500;
2070
2046
  line-height: 1.2;
2071
2047
  margin-top: 16px;
2072
2048
  margin-bottom: 7px;
2073
- `,yA=_.styled.p`
2049
+ `,C0=m.styled.p`
2074
2050
  color: white;
2075
2051
  font-size: 14px;
2076
2052
  line-height: 1.3;
2077
- `,$A=_.styled.div`
2053
+ `,E0=m.styled.div`
2078
2054
  position: absolute;
2079
2055
  display: flex;
2080
2056
  justify-content: center;
@@ -2082,7 +2058,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
2082
2058
  top: 100%;
2083
2059
  left: 0;
2084
2060
  perspective: 2000px;
2085
- `,xA=_.styled.div`
2061
+ `,k0=m.styled.div`
2086
2062
  position: relative;
2087
2063
  top: 70%;
2088
2064
  background-color: white;
@@ -2090,4 +2066,4 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
2090
2066
  height: 10px;
2091
2067
  transform: rotate(45deg);
2092
2068
  border-top-left-radius: 2px;
2093
- `;function Bl({className:e,...t}){return S.jsx(A1,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:S.jsx("path",{d:"M6 9L12 15L18 9",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}Bl.defaultProps={className:void 0};const Ct=u.forwardRef(({className:e,children:t,title:n,...r},o)=>S.jsx("li",{children:S.jsx(Fl,{asChild:!0,children:S.jsxs(hA,{className:`${e??""}`,...r,ref:o,children:[S.jsx(bA,{children:n}),S.jsx(mA,{children:t})]})})}));Ct.defaultProps={className:void 0,href:void 0,title:void 0};function wA(){return S.jsxs(cA,{children:[S.jsxs(dA,{children:[S.jsxs(Ts,{children:[S.jsxs(Cp,{children:["Learn ",S.jsx(Bl,{"aria-hidden":!0})]}),S.jsx(Dp,{children:S.jsxs(Ep,{className:"one",children:[S.jsx("li",{style:{gridRow:"span 3"},children:S.jsx(Fl,{asChild:!0,children:S.jsxs(gA,{href:"/",children:[S.jsxs("svg",{"aria-hidden":!0,width:"38",height:"38",viewBox:"0 0 25 25",fill:"white",children:[S.jsx("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z"}),S.jsx("path",{d:"M12 0H4V8H12V0Z"}),S.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"})]}),S.jsx(vA,{children:"Radix Primitives"}),S.jsx(yA,{children:"Unstyled, accessible components for React."})]})})}),S.jsx(Ct,{href:"https://stitches.dev/",title:"Stitches",children:"CSS-in-JS with best-in-class developer experience."}),S.jsx(Ct,{href:"/colors",title:"Colors",children:"Beautiful, thought-out palettes with auto dark mode."}),S.jsx(Ct,{href:"https://icons.radix-ui.com/",title:"Icons",children:"A crisp set of 15x15 icons, balanced and consistent."})]})})]}),S.jsxs(Ts,{children:[S.jsxs(Cp,{children:["Overview ",S.jsx(Bl,{"aria-hidden":!0})]}),S.jsx(Dp,{children:S.jsxs(Ep,{className:"two",children:[S.jsx(Ct,{title:"Introduction",href:"/primitives/docs/overview/introduction",children:"Build high-quality, accessible design systems and web apps."}),S.jsx(Ct,{title:"Getting started",href:"/primitives/docs/overview/getting-started",children:"A quick tutorial to get you up and running with Radix Primitives."}),S.jsx(Ct,{title:"Styling",href:"/primitives/docs/guides/styling",children:"Unstyled and compatible with any styling solution."}),S.jsx(Ct,{title:"Animation",href:"/primitives/docs/guides/animation",children:"Use CSS keyframes or any animation library of your choice."}),S.jsx(Ct,{title:"Accessibility",href:"/primitives/docs/overview/accessibility",children:"Tested in a range of browsers and assistive technologies."}),S.jsx(Ct,{title:"Releases",href:"/primitives/docs/overview/releases",children:"Radix Primitives releases and their changelogs."})]})})]}),S.jsx(Ts,{children:S.jsx(Fl,{href:"https://github.com/radix-ui",children:"Github"})}),S.jsx(fA,{children:S.jsx(xA,{})})]}),S.jsx($A,{children:S.jsx(pA,{})})]})}exports.Avatar=F2;exports.AvatarGroup=I2;exports.Badge=nD;exports.BreadcrumbEllipsis=rD;exports.BreadcrumbItem=UP;exports.BreadcrumbLink=HP;exports.BreadcrumbSeparator=GP;exports.Breadcrumbs=WP;exports.Button=YP;exports.Card=ZP;exports.Checkbox=JP;exports.CircularEasing=DS;exports.CircularProgressbar=Q9;exports.Collapsible=n9;exports.CollapsibleTrigger=t9;exports.CollapsibleTriggerStateContext=ac;exports.Container=i9;exports.ContextMenu=t1;exports.DateInput=n1;exports.Dialog=M9;exports.Divider=h9;exports.Drawer=s1;exports.Input=a1;exports.LinearProgressbar=aS;exports.Link=g9;exports.Meter=D9;exports.Modal=P9;exports.ModalOverlay=T9;exports.NavigationMenu=wA;exports.NumberInput=l1;exports.Option=vS;exports.PinInput=u1;exports.Pulse=c1;exports.Select=d1;exports.Slider=f1;exports.Switch=kS;exports.Tab=VS;exports.TabList=OS;exports.TabPanel=NS;exports.Tabs=LS;exports.TabsOrientationContext=Pa;exports.TimeInput=h1;exports.ToggleButton=WS;exports.Tooltip=eT;exports.defaultTheme=x;exports.mergeTheme=Lh;
2069
+ `;function Gt({className:e,...r}){return p.jsx(Da,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...r,children:p.jsx("path",{d:"M6 9L12 15L18 9",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}Gt.defaultProps={className:void 0};const je=d.forwardRef(({className:e,children:r,title:t,...o},n)=>p.jsx("li",{children:p.jsx(Ht,{asChild:!0,children:p.jsxs($0,{className:`${e??""}`,...o,ref:n,children:[p.jsx(x0,{children:t}),p.jsx(w0,{children:r})]})})}));je.defaultProps={className:void 0,href:void 0,title:void 0};function S0(){return p.jsxs(b0,{children:[p.jsxs(g0,{children:[p.jsxs(vt,{children:[p.jsxs(hn,{children:["Learn ",p.jsx(Gt,{"aria-hidden":!0})]}),p.jsx(Cn,{children:p.jsxs(En,{className:"one",children:[p.jsx("li",{style:{gridRow:"span 3"},children:p.jsx(Ht,{asChild:!0,children:p.jsxs(m0,{href:"/",children:[p.jsxs("svg",{"aria-hidden":!0,width:"38",height:"38",viewBox:"0 0 25 25",fill:"white",children:[p.jsx("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z"}),p.jsx("path",{d:"M12 0H4V8H12V0Z"}),p.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"})]}),p.jsx(h0,{children:"Radix Primitives"}),p.jsx(C0,{children:"Unstyled, accessible components for React."})]})})}),p.jsx(je,{href:"https://stitches.dev/",title:"Stitches",children:"CSS-in-JS with best-in-class developer experience."}),p.jsx(je,{href:"/colors",title:"Colors",children:"Beautiful, thought-out palettes with auto dark mode."}),p.jsx(je,{href:"https://icons.radix-ui.com/",title:"Icons",children:"A crisp set of 15x15 icons, balanced and consistent."})]})})]}),p.jsxs(vt,{children:[p.jsxs(hn,{children:["Overview ",p.jsx(Gt,{"aria-hidden":!0})]}),p.jsx(Cn,{children:p.jsxs(En,{className:"two",children:[p.jsx(je,{title:"Introduction",href:"/primitives/docs/overview/introduction",children:"Build high-quality, accessible design systems and web apps."}),p.jsx(je,{title:"Getting started",href:"/primitives/docs/overview/getting-started",children:"A quick tutorial to get you up and running with Radix Primitives."}),p.jsx(je,{title:"Styling",href:"/primitives/docs/guides/styling",children:"Unstyled and compatible with any styling solution."}),p.jsx(je,{title:"Animation",href:"/primitives/docs/guides/animation",children:"Use CSS keyframes or any animation library of your choice."}),p.jsx(je,{title:"Accessibility",href:"/primitives/docs/overview/accessibility",children:"Tested in a range of browsers and assistive technologies."}),p.jsx(je,{title:"Releases",href:"/primitives/docs/overview/releases",children:"Radix Primitives releases and their changelogs."})]})})]}),p.jsx(vt,{children:p.jsx(Ht,{href:"https://github.com/radix-ui",children:"Github"})}),p.jsx(v0,{children:p.jsx(k0,{})})]}),p.jsx(E0,{children:p.jsx(y0,{})})]})}exports.Avatar=Sc;exports.AvatarGroup=Pc;exports.Badge=Ac;exports.BreadcrumbEllipsis=Lc;exports.BreadcrumbItem=Vc;exports.BreadcrumbLink=Bc;exports.BreadcrumbSeparator=Hc;exports.Breadcrumbs=Gc;exports.Button=Wc;exports.Card=Kc;exports.Checkbox=Xc;exports.CircularEasing=mu;exports.CircularProgressbar=qd;exports.Collapsible=Qc;exports.CollapsibleTrigger=Jc;exports.CollapsibleTriggerStateContext=Qt;exports.Container=td;exports.ContextMenu=da;exports.DateInput=ua;exports.Dialog=Td;exports.Divider=ud;exports.Drawer=va;exports.Input=ga;exports.LinearProgressbar=ou;exports.Link=bd;exports.Meter=md;exports.Modal=Cd;exports.ModalOverlay=kd;exports.NavigationMenu=S0;exports.NumberInput=ya;exports.Option=gu;exports.PinInput=$a;exports.Pulse=xa;exports.Select=wa;exports.Slider=ma;exports.Switch=Pu;exports.Tab=Iu;exports.TabList=Au;exports.TabPanel=Lu;exports.Tabs=_u;exports.TabsOrientationContext=Zr;exports.TimeInput=Ca;exports.ToggleButton=Gu;exports.Tooltip=of;exports.defaultTheme=c;exports.mergeTheme=la;