@clicktap/ui 0.0.3

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.
Files changed (86) hide show
  1. package/Avatar/Avatar.d.ts +3 -0
  2. package/Avatar/AvatarGroup/AvatarGroup.d.ts +4 -0
  3. package/Avatar/AvatarGroup/types.d.ts +2 -0
  4. package/Avatar/types.d.ts +6 -0
  5. package/Badge/Badge.d.ts +3 -0
  6. package/Badge/types.d.ts +3 -0
  7. package/Breadcrumbs/BreadcrumbEllipsis.d.ts +3 -0
  8. package/Breadcrumbs/BreadcrumbItem.d.ts +3 -0
  9. package/Breadcrumbs/BreadcrumbLink.d.ts +3 -0
  10. package/Breadcrumbs/BreadcrumbSeparator.d.ts +3 -0
  11. package/Breadcrumbs/Breadcrumbs.d.ts +3 -0
  12. package/Breadcrumbs/styles.d.ts +5 -0
  13. package/Breadcrumbs/types.d.ts +10 -0
  14. package/Button/Button.d.ts +3 -0
  15. package/Button/styles.d.ts +7 -0
  16. package/Button/types.d.ts +6 -0
  17. package/Checkbox/Checkbox.d.ts +3 -0
  18. package/Checkbox/styles.d.ts +5 -0
  19. package/Collapsible/Collapsible.d.ts +3 -0
  20. package/Collapsible/CollapsibleTrigger.d.ts +5 -0
  21. package/Collapsible/styles.d.ts +2 -0
  22. package/Collapsible/types.d.ts +12 -0
  23. package/ContextMenu/ContextMenu.d.ts +18 -0
  24. package/ContextMenu/styles.d.ts +12 -0
  25. package/DateInput/DateInput.d.ts +15 -0
  26. package/DateInput/styles.d.ts +8 -0
  27. package/Dialog/Dialog.d.ts +3 -0
  28. package/Dialog/styles.d.ts +12 -0
  29. package/Divider/Divider.d.ts +3 -0
  30. package/Divider/styles.d.ts +5 -0
  31. package/Drawer/Drawer.d.ts +11 -0
  32. package/Drawer/styles.d.ts +12 -0
  33. package/Input/Input.d.ts +15 -0
  34. package/Input/styles.d.ts +6 -0
  35. package/Link/Link.d.ts +3 -0
  36. package/Link/styles.d.ts +4 -0
  37. package/Loader/CircularEasing/CircularEasing.d.ts +3 -0
  38. package/Loader/CircularEasing/styles.d.ts +76 -0
  39. package/Loader/CircularEasing/types.d.ts +7 -0
  40. package/Loader/Pulse/Pulse.d.ts +2 -0
  41. package/Loader/Pulse/styles.d.ts +5 -0
  42. package/Loader/index.d.ts +2 -0
  43. package/Meter/Meter.d.ts +3 -0
  44. package/Meter/styles.d.ts +7 -0
  45. package/Meter/types.d.ts +5 -0
  46. package/Modal/Modal.d.ts +3 -0
  47. package/Modal/styles.d.ts +6 -0
  48. package/ModalOverlay/ModalOverlay.d.ts +3 -0
  49. package/ModalOverlay/styles.d.ts +6 -0
  50. package/NavigationMenu/NavigationMenu.d.ts +2 -0
  51. package/NavigationMenu/styles.d.ts +19 -0
  52. package/NumberInput/NumberInput.d.ts +24 -0
  53. package/NumberInput/styles.d.ts +3 -0
  54. package/PinInput/PinInput.d.ts +33 -0
  55. package/PinInput/styles.d.ts +8 -0
  56. package/Progressbar/CircularProgressbar/CircularProgressbar.d.ts +3 -0
  57. package/Progressbar/CircularProgressbar/styles.d.ts +7 -0
  58. package/Progressbar/CircularProgressbar/types.d.ts +7 -0
  59. package/Progressbar/LinearProgressbar/LinearProgressbar.d.ts +3 -0
  60. package/Progressbar/LinearProgressbar/styles.d.ts +13 -0
  61. package/Progressbar/LinearProgressbar/types.d.ts +6 -0
  62. package/Progressbar/index.d.ts +2 -0
  63. package/Select/Option.d.ts +3 -0
  64. package/Select/Select.d.ts +24 -0
  65. package/Select/styles.d.ts +29 -0
  66. package/Slider/Slider.d.ts +15 -0
  67. package/Slider/styles.d.ts +6 -0
  68. package/Switch/Switch.d.ts +7 -0
  69. package/Switch/styles.d.ts +3 -0
  70. package/Tabs/Tab.d.ts +3 -0
  71. package/Tabs/TabList.d.ts +3 -0
  72. package/Tabs/TabPanel.d.ts +3 -0
  73. package/Tabs/Tabs.d.ts +5 -0
  74. package/Tabs/styles.d.ts +14 -0
  75. package/Tabs/types.d.ts +13 -0
  76. package/TimeInput/TimeInput.d.ts +10 -0
  77. package/TimeInput/styles.d.ts +8 -0
  78. package/TimeInput/types.d.ts +6 -0
  79. package/ToggleButton/ToggleButton.d.ts +3 -0
  80. package/ToggleButton/styles.d.ts +6 -0
  81. package/ToggleButton/types.d.ts +5 -0
  82. package/Tooltip/Tooltip.d.ts +3 -0
  83. package/index.d.ts +39 -0
  84. package/index.js +2098 -0
  85. package/index.mjs +31143 -0
  86. package/package.json +49 -0
package/index.js ADDED
@@ -0,0 +1,2098 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react/jsx-runtime"),u=require("react"),dn=require("react-dom");function D3(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const We=D3(u);var P3=()=>O.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[O.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),O.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]});function S3(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=We.createContext(void 0);o.displayName=r;function i(){var a;const s=We.useContext(o);if(!s&&t){const l=new Error(n);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function T3(e){return{UNSAFE_getDOMNode(){return e.current}}}function Qs(e){const t=u.useRef(null);return u.useImperativeHandle(e,()=>t.current),t}var A3=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function bh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=bh(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function mo(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=bh(n))&&(o&&(o+=" "),o+=r);return o}var vd={};function k3(e,t,...n){var r;const i=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!vd[i]&&(vd[i]=!0,((r=process==null?void 0:process.env)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}process.env.NODE_ENV;process.env.NODE_ENV;function M3(e){return typeof e=="function"}var Kt=e=>e?"true":void 0;function R3(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function F3(e,t){if(e!=null){if(M3(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function B3(...e){return t=>{e.forEach(n=>F3(n,t))}}var I3=Object.create,vh=Object.defineProperty,O3=Object.getOwnPropertyDescriptor,gh=Object.getOwnPropertyNames,L3=Object.getPrototypeOf,V3=Object.prototype.hasOwnProperty,du=(e,t)=>function(){return t||(0,e[gh(e)[0]])((t={exports:{}}).exports,t),t.exports},N3=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of gh(t))!V3.call(e,o)&&o!==n&&vh(e,o,{get:()=>t[o],enumerable:!(r=O3(t,o))||r.enumerable});return e},_3=(e,t,n)=>(n=e!=null?I3(L3(e)):{},N3(t||!e||!e.__esModule?vh(n,"default",{value:e,enumerable:!0}):n,e)),K3=du({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function h(D){return D===null||typeof D!="object"?null:(D=p&&D[p]||D["@@iterator"],typeof D=="function"?D:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,v={};function $(D,T,z){this.props=D,this.context=T,this.refs=v,this.updater=z||m}$.prototype.isReactComponent={},$.prototype.setState=function(D,T){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,T,"setState")},$.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=$.prototype;function x(D,T,z){this.props=D,this.context=T,this.refs=v,this.updater=z||m}var E=x.prototype=new C;E.constructor=x,b(E,$.prototype),E.isPureReactComponent=!0;var w=Array.isArray,A=Object.prototype.hasOwnProperty,V={current:null},y={key:!0,ref:!0,__self:!0,__source:!0};function I(D,T,z){var H,Z={},N=null,j=null;if(T!=null)for(H in T.ref!==void 0&&(j=T.ref),T.key!==void 0&&(N=""+T.key),T)A.call(T,H)&&!y.hasOwnProperty(H)&&(Z[H]=T[H]);var _=arguments.length-2;if(_===1)Z.children=z;else if(1<_){for(var Q=Array(_),ne=0;ne<_;ne++)Q[ne]=arguments[ne+2];Z.children=Q}if(D&&D.defaultProps)for(H in _=D.defaultProps,_)Z[H]===void 0&&(Z[H]=_[H]);return{$$typeof:t,type:D,key:N,ref:j,props:Z,_owner:V.current}}function M(D,T){return{$$typeof:t,type:D.type,key:T,ref:D.ref,props:D.props,_owner:D._owner}}function k(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function R(D){var T={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(z){return T[z]})}var S=/\/+/g;function F(D,T){return typeof D=="object"&&D!==null&&D.key!=null?R(""+D.key):T.toString(36)}function K(D,T,z,H,Z){var N=typeof D;(N==="undefined"||N==="boolean")&&(D=null);var j=!1;if(D===null)j=!0;else switch(N){case"string":case"number":j=!0;break;case"object":switch(D.$$typeof){case t:case n:j=!0}}if(j)return j=D,Z=Z(j),D=H===""?"."+F(j,0):H,w(Z)?(z="",D!=null&&(z=D.replace(S,"$&/")+"/"),K(Z,T,z,"",function(ne){return ne})):Z!=null&&(k(Z)&&(Z=M(Z,z+(!Z.key||j&&j.key===Z.key?"":(""+Z.key).replace(S,"$&/")+"/")+D)),T.push(Z)),1;if(j=0,H=H===""?".":H+":",w(D))for(var _=0;_<D.length;_++){N=D[_];var Q=H+F(N,_);j+=K(N,T,z,Q,Z)}else if(Q=h(D),typeof Q=="function")for(D=Q.call(D),_=0;!(N=D.next()).done;)N=N.value,Q=H+F(N,_++),j+=K(N,T,z,Q,Z);else if(N==="object")throw T=String(D),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.");return j}function L(D,T,z){if(D==null)return D;var H=[],Z=0;return K(D,H,"","",function(N){return T.call(z,N,Z++)}),H}function P(D){if(D._status===-1){var T=D._result;T=T(),T.then(function(z){(D._status===0||D._status===-1)&&(D._status=1,D._result=z)},function(z){(D._status===0||D._status===-1)&&(D._status=2,D._result=z)}),D._status===-1&&(D._status=0,D._result=T)}if(D._status===1)return D._result.default;throw D._result}var W={current:null},J={transition:null},G={ReactCurrentDispatcher:W,ReactCurrentBatchConfig:J,ReactCurrentOwner:V};e.Children={map:L,forEach:function(D,T,z){L(D,function(){T.apply(this,arguments)},z)},count:function(D){var T=0;return L(D,function(){T++}),T},toArray:function(D){return L(D,function(T){return T})||[]},only:function(D){if(!k(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},e.Component=$,e.Fragment=r,e.Profiler=i,e.PureComponent=x,e.StrictMode=o,e.Suspense=c,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,e.cloneElement=function(D,T,z){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var H=b({},D.props),Z=D.key,N=D.ref,j=D._owner;if(T!=null){if(T.ref!==void 0&&(N=T.ref,j=V.current),T.key!==void 0&&(Z=""+T.key),D.type&&D.type.defaultProps)var _=D.type.defaultProps;for(Q in T)A.call(T,Q)&&!y.hasOwnProperty(Q)&&(H[Q]=T[Q]===void 0&&_!==void 0?_[Q]:T[Q])}var Q=arguments.length-2;if(Q===1)H.children=z;else if(1<Q){_=Array(Q);for(var ne=0;ne<Q;ne++)_[ne]=arguments[ne+2];H.children=_}return{$$typeof:t,type:D.type,key:Z,ref:N,props:H,_owner:j}},e.createContext=function(D){return D={$$typeof:s,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:a,_context:D},D.Consumer=D},e.createElement=I,e.createFactory=function(D){var T=I.bind(null,D);return T.type=D,T},e.createRef=function(){return{current:null}},e.forwardRef=function(D){return{$$typeof:l,render:D}},e.isValidElement=k,e.lazy=function(D){return{$$typeof:f,_payload:{_status:-1,_result:D},_init:P}},e.memo=function(D,T){return{$$typeof:d,type:D,compare:T===void 0?null:T}},e.startTransition=function(D){var T=J.transition;J.transition={};try{D()}finally{J.transition=T}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(D,T){return W.current.useCallback(D,T)},e.useContext=function(D){return W.current.useContext(D)},e.useDebugValue=function(){},e.useDeferredValue=function(D){return W.current.useDeferredValue(D)},e.useEffect=function(D,T){return W.current.useEffect(D,T)},e.useId=function(){return W.current.useId()},e.useImperativeHandle=function(D,T,z){return W.current.useImperativeHandle(D,T,z)},e.useInsertionEffect=function(D,T){return W.current.useInsertionEffect(D,T)},e.useLayoutEffect=function(D,T){return W.current.useLayoutEffect(D,T)},e.useMemo=function(D,T){return W.current.useMemo(D,T)},e.useReducer=function(D,T,z){return W.current.useReducer(D,T,z)},e.useRef=function(D){return W.current.useRef(D)},e.useState=function(D){return W.current.useState(D)},e.useSyncExternalStore=function(D,T,z){return W.current.useSyncExternalStore(D,T,z)},e.useTransition=function(){return W.current.useTransition()},e.version="18.2.0"}}),j3=du({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.2.0",r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),v=Symbol.iterator,$="@@iterator";function C(g){if(g===null||typeof g!="object")return null;var B=v&&g[v]||g[$];return typeof B=="function"?B:null}var x={current:null},E={transition:null},w={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},A={current:null},V={},y=null;function I(g){y=g}V.setExtraStackFrame=function(g){y=g},V.getCurrentStack=null,V.getStackAddendum=function(){var g="";y&&(g+=y);var B=V.getCurrentStack;return B&&(g+=B()||""),g};var M=!1,k=!1,R=!1,S=!1,F=!1,K={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:E,ReactCurrentOwner:A};K.ReactDebugCurrentFrame=V,K.ReactCurrentActQueue=w;function L(g){{for(var B=arguments.length,U=new Array(B>1?B-1:0),Y=1;Y<B;Y++)U[Y-1]=arguments[Y];W("warn",g,U)}}function P(g){{for(var B=arguments.length,U=new Array(B>1?B-1:0),Y=1;Y<B;Y++)U[Y-1]=arguments[Y];W("error",g,U)}}function W(g,B,U){{var Y=K.ReactDebugCurrentFrame,te=Y.getStackAddendum();te!==""&&(B+="%s",U=U.concat([te]));var le=U.map(function(ie){return String(ie)});le.unshift("Warning: "+B),Function.prototype.apply.call(console[g],console,le)}}var J={};function G(g,B){{var U=g.constructor,Y=U&&(U.displayName||U.name)||"ReactClass",te=Y+"."+B;if(J[te])return;P("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",B,Y),J[te]=!0}}var D={isMounted:function(g){return!1},enqueueForceUpdate:function(g,B,U){G(g,"forceUpdate")},enqueueReplaceState:function(g,B,U,Y){G(g,"replaceState")},enqueueSetState:function(g,B,U,Y){G(g,"setState")}},T=Object.assign,z={};Object.freeze(z);function H(g,B,U){this.props=g,this.context=B,this.refs=z,this.updater=U||D}H.prototype.isReactComponent={},H.prototype.setState=function(g,B){if(typeof g!="object"&&typeof g!="function"&&g!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,g,B,"setState")},H.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};{var Z={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},N=function(g,B){Object.defineProperty(H.prototype,g,{get:function(){L("%s(...) is deprecated in plain JavaScript React classes. %s",B[0],B[1])}})};for(var j in Z)Z.hasOwnProperty(j)&&N(j,Z[j])}function _(){}_.prototype=H.prototype;function Q(g,B,U){this.props=g,this.context=B,this.refs=z,this.updater=U||D}var ne=Q.prototype=new _;ne.constructor=Q,T(ne,H.prototype),ne.isPureReactComponent=!0;function ee(){var g={current:null};return Object.seal(g),g}var q=Array.isArray;function he(g){return q(g)}function re(g){{var B=typeof Symbol=="function"&&Symbol.toStringTag,U=B&&g[Symbol.toStringTag]||g.constructor.name||"Object";return U}}function ce(g){try{return $e(g),!1}catch{return!0}}function $e(g){return""+g}function pe(g){if(ce(g))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",re(g)),$e(g)}function Oe(g,B,U){var Y=g.displayName;if(Y)return Y;var te=B.displayName||B.name||"";return te!==""?U+"("+te+")":U}function de(g){return g.displayName||"Context"}function ae(g){if(g==null)return null;if(typeof g.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case i:return"Fragment";case o:return"Portal";case s:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case c:var B=g;return de(B)+".Consumer";case l:var U=g;return de(U._context)+".Provider";case d:return Oe(g,g.render,"ForwardRef");case h:var Y=g.displayName||null;return Y!==null?Y:ae(g.type)||"Memo";case m:{var te=g,le=te._payload,ie=te._init;try{return ae(ie(le))}catch{return null}}}return null}var xe=Object.prototype.hasOwnProperty,Vt={key:!0,ref:!0,__self:!0,__source:!0},Je,se,Pe;Pe={};function ct(g){if(xe.call(g,"ref")){var B=Object.getOwnPropertyDescriptor(g,"ref").get;if(B&&B.isReactWarning)return!1}return g.ref!==void 0}function Wt(g){if(xe.call(g,"key")){var B=Object.getOwnPropertyDescriptor(g,"key").get;if(B&&B.isReactWarning)return!1}return g.key!==void 0}function mt(g,B){var U=function(){Je||(Je=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",B))};U.isReactWarning=!0,Object.defineProperty(g,"key",{get:U,configurable:!0})}function Xa(g,B){var U=function(){se||(se=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",B))};U.isReactWarning=!0,Object.defineProperty(g,"ref",{get:U,configurable:!0})}function Ja(g){if(typeof g.ref=="string"&&A.current&&g.__self&&A.current.stateNode!==g.__self){var B=ae(A.current.type);Pe[B]||(P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',B,g.ref),Pe[B]=!0)}}var Qe=function(g,B,U,Y,te,le,ie){var fe={$$typeof:r,type:g,key:B,ref:U,props:ie,_owner:le};return fe._store={},Object.defineProperty(fe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(fe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.defineProperty(fe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze(fe.props),Object.freeze(fe)),fe};function _r(g,B,U){var Y,te={},le=null,ie=null,fe=null,ge=null;if(B!=null){ct(B)&&(ie=B.ref,Ja(B)),Wt(B)&&(pe(B.key),le=""+B.key),fe=B.__self===void 0?null:B.__self,ge=B.__source===void 0?null:B.__source;for(Y in B)xe.call(B,Y)&&!Vt.hasOwnProperty(Y)&&(te[Y]=B[Y])}var Ae=arguments.length-2;if(Ae===1)te.children=U;else if(Ae>1){for(var Fe=Array(Ae),Be=0;Be<Ae;Be++)Fe[Be]=arguments[Be+2];Object.freeze&&Object.freeze(Fe),te.children=Fe}if(g&&g.defaultProps){var Le=g.defaultProps;for(Y in Le)te[Y]===void 0&&(te[Y]=Le[Y])}if(le||ie){var Ue=typeof g=="function"?g.displayName||g.name||"Unknown":g;le&&mt(te,Ue),ie&&Xa(te,Ue)}return Qe(g,le,ie,fe,ge,A.current,te)}function S1(g,B){var U=Qe(g.type,B,g.ref,g._self,g._source,g._owner,g.props);return U}function T1(g,B,U){if(g==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+g+".");var Y,te=T({},g.props),le=g.key,ie=g.ref,fe=g._self,ge=g._source,Ae=g._owner;if(B!=null){ct(B)&&(ie=B.ref,Ae=A.current),Wt(B)&&(pe(B.key),le=""+B.key);var Fe;g.type&&g.type.defaultProps&&(Fe=g.type.defaultProps);for(Y in B)xe.call(B,Y)&&!Vt.hasOwnProperty(Y)&&(B[Y]===void 0&&Fe!==void 0?te[Y]=Fe[Y]:te[Y]=B[Y])}var Be=arguments.length-2;if(Be===1)te.children=U;else if(Be>1){for(var Le=Array(Be),Ue=0;Ue<Be;Ue++)Le[Ue]=arguments[Ue+2];te.children=Le}return Qe(g.type,le,ie,fe,ge,Ae,te)}function nr(g){return typeof g=="object"&&g!==null&&g.$$typeof===r}var jc=".",A1=":";function k1(g){var B=/[=:]/g,U={"=":"=0",":":"=2"},Y=g.replace(B,function(te){return U[te]});return"$"+Y}var zc=!1,M1=/\/+/g;function Uc(g){return g.replace(M1,"$&/")}function Qa(g,B){return typeof g=="object"&&g!==null&&g.key!=null?(pe(g.key),k1(""+g.key)):B.toString(36)}function Yo(g,B,U,Y,te){var le=typeof g;(le==="undefined"||le==="boolean")&&(g=null);var ie=!1;if(g===null)ie=!0;else switch(le){case"string":case"number":ie=!0;break;case"object":switch(g.$$typeof){case r:case o:ie=!0}}if(ie){var fe=g,ge=te(fe),Ae=Y===""?jc+Qa(fe,0):Y;if(he(ge)){var Fe="";Ae!=null&&(Fe=Uc(Ae)+"/"),Yo(ge,B,Fe,"",function(E3){return E3})}else ge!=null&&(nr(ge)&&(ge.key&&(!fe||fe.key!==ge.key)&&pe(ge.key),ge=S1(ge,U+(ge.key&&(!fe||fe.key!==ge.key)?Uc(""+ge.key)+"/":"")+Ae)),B.push(ge));return 1}var Be,Le,Ue=0,et=Y===""?jc:Y+A1;if(he(g))for(var ni=0;ni<g.length;ni++)Be=g[ni],Le=et+Qa(Be,ni),Ue+=Yo(Be,B,U,Le,te);else{var ls=C(g);if(typeof ls=="function"){var hd=g;ls===hd.entries&&(zc||L("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),zc=!0);for(var w3=ls.call(hd),md,C3=0;!(md=w3.next()).done;)Be=md.value,Le=et+Qa(Be,C3++),Ue+=Yo(Be,B,U,Le,te)}else if(le==="object"){var bd=String(g);throw new Error("Objects are not valid as a React child (found: "+(bd==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":bd)+"). If you meant to render a collection of children, use an array instead.")}}return Ue}function qo(g,B,U){if(g==null)return g;var Y=[],te=0;return Yo(g,Y,"","",function(le){return B.call(U,le,te++)}),Y}function R1(g){var B=0;return qo(g,function(){B++}),B}function F1(g,B,U){qo(g,function(){B.apply(this,arguments)},U)}function B1(g){return qo(g,function(B){return B})||[]}function I1(g){if(!nr(g))throw new Error("React.Children.only expected to receive a single React element child.");return g}function O1(g){var B={$$typeof:c,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};B.Provider={$$typeof:l,_context:B};var U=!1,Y=!1,te=!1;{var le={$$typeof:c,_context:B};Object.defineProperties(le,{Provider:{get:function(){return Y||(Y=!0,P("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),B.Provider},set:function(ie){B.Provider=ie}},_currentValue:{get:function(){return B._currentValue},set:function(ie){B._currentValue=ie}},_currentValue2:{get:function(){return B._currentValue2},set:function(ie){B._currentValue2=ie}},_threadCount:{get:function(){return B._threadCount},set:function(ie){B._threadCount=ie}},Consumer:{get:function(){return U||(U=!0,P("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),B.Consumer}},displayName:{get:function(){return B.displayName},set:function(ie){te||(L("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ie),te=!0)}}}),B.Consumer=le}return B._currentRenderer=null,B._currentRenderer2=null,B}var Kr=-1,es=0,Hc=1,L1=2;function V1(g){if(g._status===Kr){var B=g._result,U=B();if(U.then(function(le){if(g._status===es||g._status===Kr){var ie=g;ie._status=Hc,ie._result=le}},function(le){if(g._status===es||g._status===Kr){var ie=g;ie._status=L1,ie._result=le}}),g._status===Kr){var Y=g;Y._status=es,Y._result=U}}if(g._status===Hc){var te=g._result;return te===void 0&&P(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,te),"default"in te||P(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,te),te.default}else throw g._result}function N1(g){var B={_status:Kr,_result:g},U={$$typeof:m,_payload:B,_init:V1};{var Y,te;Object.defineProperties(U,{defaultProps:{configurable:!0,get:function(){return Y},set:function(le){P("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Y=le,Object.defineProperty(U,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return te},set:function(le){P("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),te=le,Object.defineProperty(U,"propTypes",{enumerable:!0})}}})}return U}function _1(g){g!=null&&g.$$typeof===h?P("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof g!="function"?P("forwardRef requires a render function but was given %s.",g===null?"null":typeof g):g.length!==0&&g.length!==2&&P("forwardRef render functions accept exactly two parameters: props and ref. %s",g.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),g!=null&&(g.defaultProps!=null||g.propTypes!=null)&&P("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var B={$$typeof:d,render:g};{var U;Object.defineProperty(B,"displayName",{enumerable:!1,configurable:!0,get:function(){return U},set:function(Y){U=Y,!g.name&&!g.displayName&&(g.displayName=Y)}})}return B}var Gc;Gc=Symbol.for("react.module.reference");function Wc(g){return!!(typeof g=="string"||typeof g=="function"||g===i||g===s||F||g===a||g===f||g===p||S||g===b||M||k||R||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===h||g.$$typeof===l||g.$$typeof===c||g.$$typeof===d||g.$$typeof===Gc||g.getModuleId!==void 0))}function K1(g,B){Wc(g)||P("memo: The first argument must be a component. Instead received: %s",g===null?"null":typeof g);var U={$$typeof:h,type:g,compare:B===void 0?null:B};{var Y;Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return Y},set:function(te){Y=te,!g.name&&!g.displayName&&(g.displayName=te)}})}return U}function st(){var g=x.current;return g===null&&P(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
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.`),g}function j1(g){var B=st();if(g._context!==void 0){var U=g._context;U.Consumer===g?P("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):U.Provider===g&&P("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return B.useContext(g)}function z1(g){var B=st();return B.useState(g)}function U1(g,B,U){var Y=st();return Y.useReducer(g,B,U)}function H1(g){var B=st();return B.useRef(g)}function G1(g,B){var U=st();return U.useEffect(g,B)}function W1(g,B){var U=st();return U.useInsertionEffect(g,B)}function Y1(g,B){var U=st();return U.useLayoutEffect(g,B)}function q1(g,B){var U=st();return U.useCallback(g,B)}function Z1(g,B){var U=st();return U.useMemo(g,B)}function X1(g,B,U){var Y=st();return Y.useImperativeHandle(g,B,U)}function J1(g,B){{var U=st();return U.useDebugValue(g,B)}}function Q1(){var g=st();return g.useTransition()}function e3(g){var B=st();return B.useDeferredValue(g)}function t3(){var g=st();return g.useId()}function n3(g,B,U){var Y=st();return Y.useSyncExternalStore(g,B,U)}var jr=0,Yc,qc,Zc,Xc,Jc,Qc,ed;function td(){}td.__reactDisabledLog=!0;function r3(){{if(jr===0){Yc=console.log,qc=console.info,Zc=console.warn,Xc=console.error,Jc=console.group,Qc=console.groupCollapsed,ed=console.groupEnd;var g={configurable:!0,enumerable:!0,value:td,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}jr++}}function o3(){{if(jr--,jr===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},g,{value:Yc}),info:T({},g,{value:qc}),warn:T({},g,{value:Zc}),error:T({},g,{value:Xc}),group:T({},g,{value:Jc}),groupCollapsed:T({},g,{value:Qc}),groupEnd:T({},g,{value:ed})})}jr<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ts=K.ReactCurrentDispatcher,ns;function Zo(g,B,U){{if(ns===void 0)try{throw Error()}catch(te){var Y=te.stack.trim().match(/\n( *(at )?)/);ns=Y&&Y[1]||""}return`
14
+ `+ns+g}}var rs=!1,Xo;{var i3=typeof WeakMap=="function"?WeakMap:Map;Xo=new i3}function nd(g,B){if(!g||rs)return"";{var U=Xo.get(g);if(U!==void 0)return U}var Y;rs=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var le;le=ts.current,ts.current=null,r3();try{if(B){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(et){Y=et}Reflect.construct(g,[],ie)}else{try{ie.call()}catch(et){Y=et}g.call(ie.prototype)}}else{try{throw Error()}catch(et){Y=et}g()}}catch(et){if(et&&Y&&typeof et.stack=="string"){for(var fe=et.stack.split(`
15
+ `),ge=Y.stack.split(`
16
+ `),Ae=fe.length-1,Fe=ge.length-1;Ae>=1&&Fe>=0&&fe[Ae]!==ge[Fe];)Fe--;for(;Ae>=1&&Fe>=0;Ae--,Fe--)if(fe[Ae]!==ge[Fe]){if(Ae!==1||Fe!==1)do if(Ae--,Fe--,Fe<0||fe[Ae]!==ge[Fe]){var Be=`
17
+ `+fe[Ae].replace(" at new "," at ");return g.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",g.displayName)),typeof g=="function"&&Xo.set(g,Be),Be}while(Ae>=1&&Fe>=0);break}}}finally{rs=!1,ts.current=le,o3(),Error.prepareStackTrace=te}var Le=g?g.displayName||g.name:"",Ue=Le?Zo(Le):"";return typeof g=="function"&&Xo.set(g,Ue),Ue}function a3(g,B,U){return nd(g,!1)}function s3(g){var B=g.prototype;return!!(B&&B.isReactComponent)}function Jo(g,B,U){if(g==null)return"";if(typeof g=="function")return nd(g,s3(g));if(typeof g=="string")return Zo(g);switch(g){case f:return Zo("Suspense");case p:return Zo("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case d:return a3(g.render);case h:return Jo(g.type,B,U);case m:{var Y=g,te=Y._payload,le=Y._init;try{return Jo(le(te),B,U)}catch{}}}return""}var rd={},od=K.ReactDebugCurrentFrame;function Qo(g){if(g){var B=g._owner,U=Jo(g.type,g._source,B?B.type:null);od.setExtraStackFrame(U)}else od.setExtraStackFrame(null)}function l3(g,B,U,Y,te){{var le=Function.call.bind(xe);for(var ie in g)if(le(g,ie)){var fe=void 0;try{if(typeof g[ie]!="function"){var ge=Error((Y||"React class")+": "+U+" type `"+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ie]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ge.name="Invariant Violation",ge}fe=g[ie](B,ie,Y,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ae){fe=Ae}fe&&!(fe instanceof Error)&&(Qo(te),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Y||"React class",U,ie,typeof fe),Qo(null)),fe instanceof Error&&!(fe.message in rd)&&(rd[fe.message]=!0,Qo(te),P("Failed %s type: %s",U,fe.message),Qo(null))}}}function rr(g){if(g){var B=g._owner,U=Jo(g.type,g._source,B?B.type:null);I(U)}else I(null)}var os;os=!1;function id(){if(A.current){var g=ae(A.current.type);if(g)return`
18
+
19
+ Check the render method of \``+g+"`."}return""}function u3(g){if(g!==void 0){var B=g.fileName.replace(/^.*[\\\/]/,""),U=g.lineNumber;return`
20
+
21
+ Check your code at `+B+":"+U+"."}return""}function c3(g){return g!=null?u3(g.__source):""}var ad={};function d3(g){var B=id();if(!B){var U=typeof g=="string"?g:g.displayName||g.name;U&&(B=`
22
+
23
+ Check the top-level render call using <`+U+">.")}return B}function sd(g,B){if(!(!g._store||g._store.validated||g.key!=null)){g._store.validated=!0;var U=d3(B);if(!ad[U]){ad[U]=!0;var Y="";g&&g._owner&&g._owner!==A.current&&(Y=" It was passed a child from "+ae(g._owner.type)+"."),rr(g),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,Y),rr(null)}}}function ld(g,B){if(typeof g=="object"){if(he(g))for(var U=0;U<g.length;U++){var Y=g[U];nr(Y)&&sd(Y,B)}else if(nr(g))g._store&&(g._store.validated=!0);else if(g){var te=C(g);if(typeof te=="function"&&te!==g.entries)for(var le=te.call(g),ie;!(ie=le.next()).done;)nr(ie.value)&&sd(ie.value,B)}}}function ud(g){{var B=g.type;if(B==null||typeof B=="string")return;var U;if(typeof B=="function")U=B.propTypes;else if(typeof B=="object"&&(B.$$typeof===d||B.$$typeof===h))U=B.propTypes;else return;if(U){var Y=ae(B);l3(U,g.props,"prop",Y,g)}else if(B.PropTypes!==void 0&&!os){os=!0;var te=ae(B);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof B.getDefaultProps=="function"&&!B.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function f3(g){{for(var B=Object.keys(g.props),U=0;U<B.length;U++){var Y=B[U];if(Y!=="children"&&Y!=="key"){rr(g),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),rr(null);break}}g.ref!==null&&(rr(g),P("Invalid attribute `ref` supplied to `React.Fragment`."),rr(null))}}function cd(g,B,U){var Y=Wc(g);if(!Y){var te="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var le=c3(B);le?te+=le:te+=id();var ie;g===null?ie="null":he(g)?ie="array":g!==void 0&&g.$$typeof===r?(ie="<"+(ae(g.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):ie=typeof g,P("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ie,te)}var fe=_r.apply(this,arguments);if(fe==null)return fe;if(Y)for(var ge=2;ge<arguments.length;ge++)ld(arguments[ge],g);return g===i?f3(fe):ud(fe),fe}var dd=!1;function p3(g){var B=cd.bind(null,g);return B.type=g,dd||(dd=!0,L("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(B,"type",{enumerable:!1,get:function(){return L("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:g}),g}}),B}function h3(g,B,U){for(var Y=T1.apply(this,arguments),te=2;te<arguments.length;te++)ld(arguments[te],Y.type);return ud(Y),Y}function m3(g,B){var U=E.transition;E.transition={};var Y=E.transition;E.transition._updatedFibers=new Set;try{g()}finally{if(E.transition=U,U===null&&Y._updatedFibers){var te=Y._updatedFibers.size;te>10&&L("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),Y._updatedFibers.clear()}}}var fd=!1,ei=null;function b3(g){if(ei===null)try{var B=("require"+Math.random()).slice(0,7),U=t&&t[B];ei=U.call(t,"timers").setImmediate}catch{ei=function(te){fd===!1&&(fd=!0,typeof MessageChannel>"u"&&P("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var le=new MessageChannel;le.port1.onmessage=te,le.port2.postMessage(void 0)}}return ei(g)}var or=0,pd=!1;function v3(g){{var B=or;or++,w.current===null&&(w.current=[]);var U=w.isBatchingLegacy,Y;try{if(w.isBatchingLegacy=!0,Y=g(),!U&&w.didScheduleLegacyUpdate){var te=w.current;te!==null&&(w.didScheduleLegacyUpdate=!1,ss(te))}}catch(Le){throw ti(B),Le}finally{w.isBatchingLegacy=U}if(Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var le=Y,ie=!1,fe={then:function(Le,Ue){ie=!0,le.then(function(et){ti(B),or===0?is(et,Le,Ue):Le(et)},function(et){ti(B),Ue(et)})}};return!pd&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){ie||(pd=!0,P("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),fe}else{var ge=Y;if(ti(B),or===0){var Ae=w.current;Ae!==null&&(ss(Ae),w.current=null);var Fe={then:function(Le,Ue){w.current===null?(w.current=[],is(ge,Le,Ue)):Le(ge)}};return Fe}else{var Be={then:function(Le,Ue){Le(ge)}};return Be}}}}function ti(g){g!==or-1&&P("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),or=g}function is(g,B,U){{var Y=w.current;if(Y!==null)try{ss(Y),b3(function(){Y.length===0?(w.current=null,B(g)):is(g,B,U)})}catch(te){U(te)}else B(g)}}var as=!1;function ss(g){if(!as){as=!0;var B=0;try{for(;B<g.length;B++){var U=g[B];do U=U(!0);while(U!==null)}g.length=0}catch(Y){throw g=g.slice(B+1),Y}finally{as=!1}}}var g3=cd,y3=h3,$3=p3,x3={map:qo,forEach:F1,count:R1,toArray:B1,only:I1};e.Children=x3,e.Component=H,e.Fragment=i,e.Profiler=s,e.PureComponent=Q,e.StrictMode=a,e.Suspense=f,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,e.cloneElement=y3,e.createContext=O1,e.createElement=g3,e.createFactory=$3,e.createRef=ee,e.forwardRef=_1,e.isValidElement=nr,e.lazy=N1,e.memo=K1,e.startTransition=m3,e.unstable_act=v3,e.useCallback=q1,e.useContext=j1,e.useDebugValue=J1,e.useDeferredValue=e3,e.useEffect=G1,e.useId=t3,e.useImperativeHandle=X1,e.useInsertionEffect=W1,e.useLayoutEffect=Y1,e.useMemo=Z1,e.useReducer=U1,e.useRef=H1,e.useState=z1,e.useSyncExternalStore=n3,e.useTransition=Q1,e.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),z3=du({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){process.env.NODE_ENV==="production"?t.exports=K3():t.exports=j3()}});/**
24
+ * @license React
25
+ * react.development.js
26
+ *
27
+ * Copyright (c) Facebook, Inc. and its affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ *//**
32
+ * @license React
33
+ * react.production.min.js
34
+ *
35
+ * Copyright (c) Facebook, Inc. and its affiliates.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */var gd=_3(z3());function U3(e){return gd.Children.toArray(e).filter(t=>(0,gd.isValidElement)(t))}var[H3,yh]=S3({name:"AvatarGroupContext",strict:!1}),G3=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],us=G3.map(e=>`unit-${e}`),yd=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bt=e=>!e||typeof e!="object"||Object.keys(e).length===0,W3=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function $h(e,t){e.forEach(function(n){Array.isArray(n)?$h(n,t):t.push(n)})}function xh(e){let t=[];return $h(e,t),t}var wh=(...e)=>xh(e).filter(Boolean),Ch=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let a=e[i],s=t[i];typeof a=="object"&&typeof s=="object"?n[i]=Ch(a,s):Array.isArray(a)||Array.isArray(s)?n[i]=wh(s,a):n[i]=s+" "+a}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},$d=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function Y3(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Eh(t))&&(r&&(r+=" "),r+=n);return r}function Eh(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Eh(e[r]))&&(n&&(n+=" "),n+=t);return n}var fu="-";function q3(e){var t=X3(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(s){var l=s.split(fu);return l[0]===""&&l.length!==1&&l.shift(),Dh(l,t)||Z3(s)}function a(s,l){var c=n[s]||[];return l&&o[s]?[].concat(c,o[s]):c}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Dh(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Dh(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(fu);return(a=t.validators.find(function(s){var l=s.validator;return l(i)}))==null?void 0:a.classGroupId}}var xd=/^\[(.+)\]$/;function Z3(e){if(xd.test(e)){var t=xd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function X3(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=Q3(Object.entries(e.classGroups),n);return o.forEach(function(i){var a=i[0],s=i[1];el(s,r,a,t)}),r}function el(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:wd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(J3(o)){el(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(a){var s=a[0],l=a[1];el(l,wd(t,s),n,r)})})}function wd(e,t){var n=e;return t.split(fu).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function J3(e){return e.isThemeGetter}function Q3(e,t){return t?e.map(function(n){var r=n[0],o=n[1],i=o.map(function(a){return typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(function(s){var l=s[0],c=s[1];return[t+l,c]})):a});return[r,i]}):e}function ex(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(i,a){n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(a){var s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set:function(a,s){n.has(a)?n.set(a,s):o(a,s)}}}var Ph="!";function tx(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(a){for(var s=[],l=0,c=0,d,f=0;f<a.length;f++){var p=a[f];if(l===0){if(p===r&&(n||a.slice(f,f+o)===t)){s.push(a.slice(c,f)),c=f+o;continue}if(p==="/"){d=f;continue}}p==="["?l++:p==="]"&&l--}var h=s.length===0?a:a.substring(c),m=h.startsWith(Ph),b=m?h.substring(1):h,v=d&&d>c?d-c:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:v}}}function nx(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function rx(e){return{cache:ex(e.cacheSize),splitModifiers:tx(e),...q3(e)}}var ox=/\s+/;function ix(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(ox).map(function(a){var s=n(a),l=s.modifiers,c=s.hasImportantModifier,d=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?d.substring(0,f):d),h=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:a};if(p=r(d),!p)return{isTailwindClass:!1,originalClassName:a};h=!1}var m=nx(l).join(":"),b=c?m+Ph:m;return{isTailwindClass:!0,modifierId:b,classGroupId:p,originalClassName:a,hasPostfixModifier:h}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var s=a.modifierId,l=a.classGroupId,c=a.hasPostfixModifier,d=s+l;return i.has(d)?!1:(i.add(d),o(l,c).forEach(function(f){return i.add(s+f)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function tl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=s;function s(c){var d=t[0],f=t.slice(1),p=f.reduce(function(h,m){return m(h)},d());return r=rx(p),o=r.cache.get,i=r.cache.set,a=l,l(c)}function l(c){var d=o(c);if(d)return d;var f=ix(c,r);return i(c,f),f}return function(){return a(Y3.apply(null,arguments))}}function Re(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var Sh=/^\[(?:([a-z-]+):)?(.+)\]$/i,ax=/^\d+\/\d+$/,sx=new Set(["px","full","screen"]),lx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ux=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,cx=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Bt(e){return Ln(e)||sx.has(e)||ax.test(e)||nl(e)}function nl(e){return qn(e,"length",bx)}function dx(e){return qn(e,"size",Th)}function fx(e){return qn(e,"position",Th)}function px(e){return qn(e,"url",vx)}function ri(e){return qn(e,"number",Ln)}function Ln(e){return!Number.isNaN(Number(e))}function hx(e){return e.endsWith("%")&&Ln(e.slice(0,-1))}function zr(e){return Cd(e)||qn(e,"number",Cd)}function be(e){return Sh.test(e)}function Ur(){return!0}function hn(e){return lx.test(e)}function mx(e){return qn(e,"",gx)}function qn(e,t,n){var r=Sh.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function bx(e){return ux.test(e)}function Th(){return!1}function vx(e){return e.startsWith("url(")}function Cd(e){return Number.isInteger(Number(e))}function gx(e){return cx.test(e)}function rl(){var e=Re("colors"),t=Re("spacing"),n=Re("blur"),r=Re("brightness"),o=Re("borderColor"),i=Re("borderRadius"),a=Re("borderSpacing"),s=Re("borderWidth"),l=Re("contrast"),c=Re("grayscale"),d=Re("hueRotate"),f=Re("invert"),p=Re("gap"),h=Re("gradientColorStops"),m=Re("gradientColorStopPositions"),b=Re("inset"),v=Re("margin"),$=Re("opacity"),C=Re("padding"),x=Re("saturate"),E=Re("scale"),w=Re("sepia"),A=Re("skew"),V=Re("space"),y=Re("translate"),I=function(){return["auto","contain","none"]},M=function(){return["auto","hidden","clip","visible","scroll"]},k=function(){return["auto",be,t]},R=function(){return[be,t]},S=function(){return["",Bt]},F=function(){return["auto",Ln,be]},K=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},L=function(){return["solid","dashed","dotted","double","none"]},P=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},W=function(){return["start","end","center","between","around","evenly","stretch"]},J=function(){return["","0",be]},G=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},D=function(){return[Ln,ri]},T=function(){return[Ln,be]};return{cacheSize:500,theme:{colors:[Ur],spacing:[Bt],blur:["none","",hn,be],brightness:D(),borderColor:[e],borderRadius:["none","","full",hn,be],borderSpacing:R(),borderWidth:S(),contrast:D(),grayscale:J(),hueRotate:T(),invert:J(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[hx,nl],inset:k(),margin:k(),opacity:D(),padding:R(),saturate:D(),scale:D(),sepia:J(),skew:T(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",be]}],container:["container"],columns:[{columns:[hn]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(K(),[be])}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zr]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",be]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",zr]}],"grid-cols":[{"grid-cols":[Ur]}],"col-start-end":[{col:["auto",{span:["full",zr]},be]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Ur]}],"row-start-end":[{row:["auto",{span:[zr]},be]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",be]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(W())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(W(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(W(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",be,t]}],"min-w":[{"min-w":["min","max","fit",be,Bt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[hn]},hn,be]}],h:[{h:[be,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",be,Bt]}],"max-h":[{"max-h":[be,t,"min","max","fit"]}],"font-size":[{text:["base",hn,nl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ri]}],"font-family":[{font:[Ur]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",be]}],"line-clamp":[{"line-clamp":["none",Ln,ri]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",be,Bt]}],"list-image":[{"list-image":["none",be]}],"list-style-type":[{list:["none","disc","decimal",be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(L(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Bt]}],"underline-offset":[{"underline-offset":["auto",be,Bt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(K(),[fx])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},px]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[$]}],"border-style":[{border:[].concat(L(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$]}],"divide-style":[{divide:L()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(L())}],"outline-offset":[{"outline-offset":[be,Bt]}],"outline-w":[{outline:[Bt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[Bt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",hn,mx]}],"shadow-color":[{shadow:[Ur]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":P()}],"bg-blend":[{"bg-blend":P()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",hn,be]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",be]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",be]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[zr,be]}],"translate-x":[{"translate-x":[y]}],"translate-y":[{"translate-y":[y]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Bt,ri]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function yx(e,t){for(var n in t)Ah(e,n,t[n]);return e}var $x=Object.prototype.hasOwnProperty,xx=new Set(["string","number","boolean"]);function Ah(e,t,n){if(!$x.call(e,t)||xx.has(typeof n)||n===null){e[t]=n;return}if(Array.isArray(n)&&Array.isArray(e[t])){e[t]=e[t].concat(n);return}if(typeof n=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=n;return}for(var r in n)Ah(e[t],r,n[r])}}function wx(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?tl.apply(void 0,[rl,e].concat(n)):tl.apply(void 0,[function(){return yx(rl(),e)}].concat(n))}var Cx=tl(rl),Ex={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},kh=e=>e||void 0,bo=(...e)=>kh(xh(e).filter(Boolean).join(" ")),cs=null,Ni={},ol=!1,Hr=(...e)=>t=>t.twMerge?((!cs||ol)&&(ol=!1,cs=bt(Ni)?Cx:wx(Ni)),kh(cs(bo(e)))):bo(e),Ed=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=bo(e[n],t[n]):e[n]=t[n];return e},Dx=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:a=[],defaultVariants:s={}}=e,l={...Ex,...t},c=n!=null&&n.base?bo(n.base,e==null?void 0:e.base):e==null?void 0:e.base,d=n!=null&&n.variants&&!bt(n.variants)?Ch(o,n.variants):o,f=n!=null&&n.defaultVariants&&!bt(n.defaultVariants)?{...n.defaultVariants,...s}:s;!bt(l.twMergeConfig)&&!W3(l.twMergeConfig,Ni)&&(ol=!0,Ni=l.twMergeConfig);let p=bt(n==null?void 0:n.slots),h=bt(r)?{}:{base:bo(e==null?void 0:e.base,p&&(n==null?void 0:n.base)),...r},m=p?h:Ed({...n==null?void 0:n.slots},bt(h)?{base:e==null?void 0:e.base}:h),b=$=>{if(bt(d)&&bt(r)&&p)return Hr(c,$==null?void 0:$.class,$==null?void 0:$.className)(l);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof a}`);let C=(R,S,F=[],K)=>{let L=F;if(typeof S=="string")L=L.concat($d(S).split(" ").map(P=>`${R}:${P}`));else if(Array.isArray(S))L=L.concat(S.reduce((P,W)=>P.concat(`${R}:${W}`),[]));else if(typeof S=="object"&&typeof K=="string"){for(let P in S)if(S.hasOwnProperty(P)&&P===K){let W=S[P];if(W&&typeof W=="string"){let J=$d(W);L[K]?L[K]=L[K].concat(J.split(" ").map(G=>`${R}:${G}`)):L[K]=J.split(" ").map(G=>`${R}:${G}`)}else Array.isArray(W)&&W.length>0&&(L[K]=W.reduce((J,G)=>J.concat(`${R}:${G}`),[]))}}return L},x=(R,S=d,F=null,K=null)=>{var L;let P=S[R];if(!P||bt(P))return null;let W=(L=K==null?void 0:K[R])!=null?L:$==null?void 0:$[R];if(W===null)return null;let J=yd(W),G=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,D=f==null?void 0:f[R],T=[];if(typeof J=="object"&&G)for(let[H,Z]of Object.entries(J)){let N=P[Z];if(H==="initial"){D=Z;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(H)||(T=C(H,N,T,F))}let z=P[J]||P[yd(D)];return typeof T=="object"&&typeof F=="string"&&T[F]?Ed(T,z):T.length>0?(T.push(z),T):z},E=()=>d?Object.keys(d).map(R=>x(R,d)):null,w=(R,S)=>{if(!d||typeof d!="object")return null;let F=new Array;for(let K in d){let L=x(K,d,R,S),P=R==="base"&&typeof L=="string"?L:L&&L[R];P&&(F[F.length]=P)}return F},A={};for(let R in $)$[R]!==void 0&&(A[R]=$[R]);let V=(R,S)=>{var F;let K=typeof($==null?void 0:$[R])=="object"?{[R]:(F=$[R])==null?void 0:F.initial}:{};return{...f,...A,...K,...S}},y=(R=[],S)=>{let F=[];for(let{class:K,className:L,...P}of R){let W=!0;for(let[J,G]of Object.entries(P)){let D=V(J,S);if(Array.isArray(G)){if(!G.includes(D[J])){W=!1;break}}else if(D[J]!==G){W=!1;break}}W&&(K&&F.push(K),L&&F.push(L))}return F},I=R=>{let S=y(i,R),F=y(n==null?void 0:n.compoundVariants,R);return wh(F,S)},M=R=>{let S=I(R);if(!Array.isArray(S))return S;let F={};for(let K of S)if(typeof K=="string"&&(F.base=Hr(F.base,K)(l)),typeof K=="object")for(let[L,P]of Object.entries(K))F[L]=Hr(F[L],P)(l);return F},k=R=>{if(a.length<1)return null;let S={};for(let{slots:F=[],class:K,className:L,...P}of a){if(!bt(P)){let W=!0;for(let J of Object.keys(P)){let G=V(J,R)[J];if(G===void 0||(Array.isArray(P[J])?!P[J].includes(G):P[J]!==G)){W=!1;break}}if(!W)continue}for(let W of F)S[W]=S[W]||[],S[W].push([K,L])}return S};if(!bt(r)||!p){let R={};if(typeof m=="object"&&!bt(m))for(let S of Object.keys(m))R[S]=F=>{var K,L;return Hr(m[S],w(S,F),((K=M(F))!=null?K:[])[S],((L=k(F))!=null?L:[])[S],F==null?void 0:F.class,F==null?void 0:F.className)(l)};return R}return Hr(c,E(),I(),$==null?void 0:$.class,$==null?void 0:$.className)(l)},v=()=>{if(!(!d||typeof d!="object"))return Object.keys(d)};return b.variantKeys=v(),b.extend=n,b.base=c,b.slots=m,b.variants=d,b.defaultVariants=f,b.compoundSlots=a,b.compoundVariants=i,b},oi=["small","medium","large"],xa=(e,t)=>{var n,r,o;return Dx(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider","unit",...us],borderWidth:oi,borderRadius:oi},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:oi}],"font-size":[{text:["tiny",...oi]}],"bg-image":["bg-stripe-gradient"],"min-w":[{"min-w":["unit",...us]}],"min-h":[{"min-h":["unit",...us]}]}}})},Mh=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],ds=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],Px={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},Sx={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},Tx={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},Ax={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},kx={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},Mx={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},Rx={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},ve={solid:Px,shadow:Sx,bordered:Tx,flat:Ax,faded:kx,light:Mx,ghost:Rx},Dd=xa({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...Mh],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:ve.solid.foreground},primary:{base:"before:bg-primary",content:ve.solid.primary},secondary:{base:"before:bg-secondary",content:ve.solid.secondary},success:{base:"before:bg-success",content:ve.solid.success},warning:{base:"before:bg-warning",content:ve.solid.warning},danger:{base:"before:bg-danger",content:ve.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",disableAnimation:!1,triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),Fx=xa({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...Mh],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...ds,"flex","items-center","justify-center"],name:[...ds,"font-normal","text-center","text-inherit"],icon:[...ds,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:ve.solid.default},primary:{base:ve.solid.primary},secondary:{base:ve.solid.secondary},success:{base:ve.solid.success},warning:{base:ve.solid.warning},danger:{base:ve.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]}),Bx=xa({base:"flex items-center justify-center h-auto w-max-content",variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),Pd=xa({slots:{base:["relative","inline-flex","shrink-0"],badge:["flex","z-10","flex-wrap","absolute","box-border","rounded-full","whitespace-nowrap","place-content-center","origin-center","items-center","text-inherit","select-none","font-regular","scale-100","opacity-100","subpixel-antialiased","data-[invisible=true]:scale-0","data-[invisible=true]:opacity-0"]},variants:{variant:{solid:{},flat:{},faded:{badge:"border-medium"},shadow:{}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{badge:"px-1 text-tiny"},md:{badge:"px-1 text-small"},lg:{badge:"px-1 text-small"}},placement:{"top-right":{},"top-left":{},"bottom-right":{},"bottom-left":{}},shape:{circle:{},rectangle:{}},isInvisible:{true:{}},isOneChar:{true:{badge:"px-0"}},isDot:{true:{}},disableAnimation:{true:{badge:"transition-none"},false:{badge:"transition-transform-opacity !ease-soft-spring !duration-300"}},showOutline:{true:{badge:"border-2 border-background"},false:{badge:"border-transparent border-0"}}},defaultVariants:{variant:"solid",color:"default",size:"md",shape:"rectangle",placement:"top-right",showOutline:!0,disableAnimation:!1,isInvisible:!1},compoundVariants:[{variant:"solid",color:"default",class:{badge:ve.solid.default}},{variant:"solid",color:"primary",class:{badge:ve.solid.primary}},{variant:"solid",color:"secondary",class:{badge:ve.solid.secondary}},{variant:"solid",color:"success",class:{badge:ve.solid.success}},{variant:"solid",color:"warning",class:{badge:ve.solid.warning}},{variant:"solid",color:"danger",class:{badge:ve.solid.danger}},{variant:"shadow",color:"default",class:{badge:ve.shadow.default}},{variant:"shadow",color:"primary",class:{badge:ve.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:ve.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:ve.shadow.success}},{variant:"shadow",color:"warning",class:{badge:ve.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:ve.shadow.danger}},{variant:"flat",color:"default",class:{badge:ve.flat.default}},{variant:"flat",color:"primary",class:{badge:ve.flat.primary}},{variant:"flat",color:"secondary",class:{badge:ve.flat.secondary}},{variant:"flat",color:"success",class:{badge:ve.flat.success}},{variant:"flat",color:"warning",class:{badge:ve.flat.warning}},{variant:"flat",color:"danger",class:{badge:ve.flat.danger}},{variant:"faded",color:"default",class:{badge:ve.faded.default}},{variant:"faded",color:"primary",class:{badge:ve.faded.primary}},{variant:"faded",color:"secondary",class:{badge:ve.faded.secondary}},{variant:"faded",color:"success",class:{badge:ve.faded.success}},{variant:"faded",color:"warning",class:{badge:ve.faded.warning}},{variant:"faded",color:"danger",class:{badge:ve.faded.danger}},{isOneChar:!0,size:"sm",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{isOneChar:!0,size:"md",class:{badge:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,size:"lg",class:{badge:"w-6 h-6 min-w-6 min-h-6"}},{isDot:!0,size:"sm",class:{badge:"w-3 h-3 min-w-3 min-h-3"}},{isDot:!0,size:"md",class:{badge:"w-3.5 h-3.5 min-w-3.5 min-h-3.5"}},{isDot:!0,size:"lg",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{placement:"top-right",shape:"rectangle",class:{badge:"top-[5%] right-[5%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"rectangle",class:{badge:"top-[5%] left-[5%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"rectangle",class:{badge:"bottom-[5%] right-[5%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"rectangle",class:{badge:"bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2"}},{placement:"top-right",shape:"circle",class:{badge:"top-[10%] right-[10%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"circle",class:{badge:"top-[10%] left-[10%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"circle",class:{badge:"bottom-[10%] right-[10%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"circle",class:{badge:"bottom-[10%] left-[10%] -translate-x-1/2 translate-y-1/2"}}]});function Ix(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rt(e,t,n){let[r,o]=u.useState(e||t),i=u.useRef(e!==void 0),a=e!==void 0;u.useEffect(()=>{let c=i.current;c!==a&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a},[a]);let s=a?e:r,l=u.useCallback((c,...d)=>{let f=(p,...h)=>{n&&(Object.is(s,p)||n(p,...h)),a||(s=p)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((h,...m)=>{let b=c(a?s:h,...m);return f(b,...d),a?h:b})):(a||o(c),f(c,...d))},[a,s,n]);return[s,l]}function At(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function ft(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);let a=r.toString(),s=a.indexOf("."),l=s>=0?a.length-s:0;if(l>0){let c=Math.pow(10,l);i=Math.round(i*c)/c}return i}const _i={prefix:String(Math.round(Math.random()*1e10)),current:0},Rh=u.createContext(_i),Ox=u.createContext(!1);let Lx=!!(typeof window<"u"&&window.document&&window.document.createElement),fs=new WeakMap;function Vx(e=!1){let t=u.useContext(Rh),n=u.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let a=fs.get(i);a==null?fs.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,fs.delete(i))}n.current=++t.current}return n.current}function Nx(e){let t=u.useContext(Rh);t===_i&&!Lx&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Vx(!!e),r=t===_i&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function _x(e){let t=u.useId(),[n]=u.useState(Ht()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${_i.prefix}`;return e||`${r}-${t}`}const Kx=typeof u.useId=="function"?_x:Nx;function jx(){return!1}function zx(){return!0}function Ux(e){return()=>{}}function Ht(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(Ux,jx,zx):u.useContext(Ox)}function Fh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Fh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Hx(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fh(e))&&(r&&(r+=" "),r+=t);return r}const Se=typeof document<"u"?u.useLayoutEffect:()=>{};function Ne(e){const t=u.useRef(null);return Se(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function Gx(e){let[t,n]=u.useState(e),r=u.useRef(null),o=Ne(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?o():n(a.value)});Se(()=>{r.current&&o()});let i=Ne(a=>{r.current=a(t),o()});return[t,i]}let Wx=!!(typeof window<"u"&&window.document&&window.document.createElement),Ki=new Map;function nt(e){let[t,n]=u.useState(e),r=u.useRef(null),o=Kx(t),i=u.useCallback(a=>{r.current=a},[]);return Wx&&Ki.set(o,i),Se(()=>{let a=o;return()=>{Ki.delete(a)}},[o]),u.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),o}function Yx(e,t){if(e===t)return e;let n=Ki.get(e);if(n)return n(t),t;let r=Ki.get(t);return r?(r(e),e):t}function yn(e=[]){let t=nt(),[n,r]=Gx(t),o=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Se(o,[t,o,...e]),n}function wn(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Me=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Tt=e=>e&&"window"in e&&e.window===e?e:Me(e).defaultView||window;function oe(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=wn(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=Hx(i,a):o==="id"&&i&&a?t.id=Yx(i,a):t[o]=a!==void 0?a:i}}return t}function wa(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const qx=new Set(["id"]),Zx=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Xx=new Set(["href","target","rel","download","ping","referrerPolicy"]),Jx=/^(data-.*)$/;function me(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(qx.has(a)||n&&Zx.has(a)||r&&Xx.has(a)||o!=null&&o.has(a)||Jx.test(a))&&(i[a]=e[a]);return i}function jt(e){if(Qx())e.focus({preventScroll:!0});else{let t=e5(e);e.focus(),t5(t)}}let ii=null;function Qx(){if(ii==null){ii=!1;try{document.createElement("div").focus({get preventScroll(){return ii=!0,!0}})}catch{}}return ii}function e5(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function t5(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Ca(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function pu(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function sn(){return pu(/^Mac/i)}function Bh(){return pu(/^iPhone/i)}function Ih(){return pu(/^iPad/i)||sn()&&navigator.maxTouchPoints>1}function Ar(){return Bh()||Ih()}function Si(){return sn()||Ar()}function hu(){return Ca(/AppleWebKit/i)&&!n5()}function n5(){return Ca(/Chrome/i)}function mu(){return Ca(/Android/i)}function r5(){return Ca(/Firefox/i)}const o5=u.createContext({isNative:!0,open:s5});function ko(){return u.useContext(o5)}function i5(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function jn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;r5()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(sn()?i=!0:a=!0);let c=hu()&&sn()&&!Ih()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});jn.isOpening=n,jt(e),e.dispatchEvent(c),jn.isOpening=!1}jn.isOpening=!1;function a5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function s5(e,t){a5(e,n=>jn(n,t))}let ur=new Map,il=new Set;function Sd(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=ur.get(r.target);o||(o=new Set,ur.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=ur.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),ur.delete(r.target)),ur.size===0)){for(let i of il)i();il.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Sd():document.addEventListener("DOMContentLoaded",Sd));function Oh(e){requestAnimationFrame(()=>{ur.size===0?e():il.add(e)})}function kr(){let e=u.useRef(new Map),t=u.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...c)=>{e.current.delete(a),a(...c)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,a,s)},[]),n=u.useCallback((o,i,a,s)=>{var l;let c=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,c,s),e.current.delete(a)},[]),r=u.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function zn(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=nt(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function Ft(e){const t=u.useRef(null);return u.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function l5(){return typeof window.ResizeObserver<"u"}function bu(e){const{ref:t,onResize:n}=e;u.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(l5()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function vu(e,t){Se(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function vo(e,t){let n=e;for(ji(n,t)&&(n=n.parentElement);n&&!ji(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ji(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let Ct=typeof document<"u"&&window.visualViewport;function u5(){let e=Ht(),[t,n]=u.useState(()=>e?{width:0,height:0}:Td());return u.useEffect(()=>{let r=()=>{n(o=>{let i=Td();return i.width===o.width&&i.height===o.height?o:i})};return Ct?Ct.addEventListener("resize",r):window.addEventListener("resize",r),()=>{Ct?Ct.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Td(){return{width:Ct&&(Ct==null?void 0:Ct.width)||window.innerWidth,height:Ct&&(Ct==null?void 0:Ct.height)||window.innerHeight}}let c5=0;const ps=new Map;function Lh(e){let[t,n]=u.useState();return Se(()=>{if(!e)return;let r=ps.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${c5++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},ps.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),ps.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function zi(e,t,n,r){let o=Ne(n),i=n==null;u.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[e,t,r,i,o])}function Vh(e,t){let n=Ad(e,t,"left"),r=Ad(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c}=getComputedStyle(e),d=e.scrollLeft+parseInt(c,10),f=e.scrollTop+parseInt(l,10),p=d+e.clientWidth,h=f+e.clientHeight;n<=a?a=n-parseInt(c,10):n+o>p&&(a+=n+o-p),r<=f?s=r-parseInt(l,10):r+i>h&&(s+=r+i-h),e.scrollLeft=a,e.scrollTop=s}function Ad(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function al(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=vo(e);for(;e&&l&&e!==a&&l!==a;)Vh(l,e),e=l,l=vo(e)}else{var n;let{left:l,top:c}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:d,top:f}=e.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(c-f)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function sl(e){return e.mozInputSource===0&&e.isTrusted?!0:mu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function d5(e){return!mu()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function f5(e,t){let n=u.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Mo(e,t,n){let r=u.useRef(t),o=Ne(()=>{n&&n(r.current)});u.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",o),()=>{a==null||a.removeEventListener("reset",o)}},[e,o])}function p5(e,t){return t.get?t.get.call(e):t.value}function Nh(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function h5(e,t){var n=Nh(e,t,"get");return p5(e,n)}function m5(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ro(e,t,n){m5(e,t),t.set(e,n)}function b5(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function kd(e,t,n){var r=Nh(e,t,"set");return b5(e,r,n),n}let fr="default",ll="",Ti=new WeakMap;function ul(e){if(Ar()){if(fr==="default"){const t=Me(e);ll=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}fr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Ti.set(e,e.style.userSelect),e.style.userSelect="none")}function eo(e){if(Ar()){if(fr!=="disabled")return;fr="restoring",setTimeout(()=>{Oh(()=>{if(fr==="restoring"){const t=Me(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ll||""),ll="",fr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ti.has(e)){let t=Ti.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ti.delete(e)}}const go=u.createContext({register:()=>{}});go.displayName="PressResponderContext";function v5(e){let t=u.useContext(go);if(t){let{register:n,...r}=t;e=oe(r,e),n()}return vu(t,e.ref),e}var ai=new WeakMap;class si{continuePropagation(){kd(this,ai,!1)}get shouldStopPropagation(){return h5(this,ai)}constructor(t,n,r){Ro(this,ai,{writable:!0,value:void 0}),kd(this,ai,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const Md=Symbol("linkClicked");function Cn(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=v5(e),[h,m]=u.useState(!1),b=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:v,removeAllGlobalListeners:$}=kr(),C=Ne((y,I)=>{let M=b.current;if(a||M.didFirePressStart)return!1;let k=!0;if(M.isTriggeringEvent=!0,r){let R=new si("pressstart",I,y);r(R),k=R.shouldStopPropagation}return n&&n(!0),M.isTriggeringEvent=!1,M.didFirePressStart=!0,m(!0),k}),x=Ne((y,I,M=!0)=>{let k=b.current;if(!k.didFirePressStart)return!1;k.ignoreClickAfterPress=!0,k.didFirePressStart=!1,k.isTriggeringEvent=!0;let R=!0;if(o){let S=new si("pressend",I,y);o(S),R=S.shouldStopPropagation}if(n&&n(!1),m(!1),t&&M&&!a){let S=new si("press",I,y);t(S),R&&(R=S.shouldStopPropagation)}return k.isTriggeringEvent=!1,R}),E=Ne((y,I)=>{let M=b.current;if(a)return!1;if(i){M.isTriggeringEvent=!0;let k=new si("pressup",I,y);return i(k),M.isTriggeringEvent=!1,k.shouldStopPropagation}return!0}),w=Ne(y=>{let I=b.current;I.isPressed&&I.target&&(I.isOverTarget&&I.pointerType!=null&&x(Yt(I.target,y),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,$(),d||eo(I.target))}),A=Ne(y=>{c&&w(y)}),V=u.useMemo(()=>{let y=b.current,I={onKeyDown(k){if(hs(k.nativeEvent,k.currentTarget)&&k.currentTarget.contains(k.target)){var R;Fd(k.target,k.key)&&k.preventDefault();let S=!0;if(!y.isPressed&&!k.repeat){y.target=k.currentTarget,y.isPressed=!0,S=C(k,"keyboard");let F=k.currentTarget,K=L=>{hs(L,F)&&!L.repeat&&F.contains(L.target)&&y.target&&E(Yt(y.target,L),"keyboard")};v(Me(k.currentTarget),"keyup",wn(K,M),!0)}S&&k.stopPropagation(),k.metaKey&&sn()&&((R=y.metaKeyEvents)===null||R===void 0||R.set(k.key,k.nativeEvent))}else k.key==="Meta"&&(y.metaKeyEvents=new Map)},onClick(k){if(!(k&&!k.currentTarget.contains(k.target))&&k&&k.button===0&&!y.isTriggeringEvent&&!jn.isOpening){let R=!0;if(a&&k.preventDefault(),!y.ignoreClickAfterPress&&!y.ignoreEmulatedMouseEvents&&!y.isPressed&&(y.pointerType==="virtual"||sl(k.nativeEvent))){!a&&!l&&jt(k.currentTarget);let S=C(k,"virtual"),F=E(k,"virtual"),K=x(k,"virtual");R=S&&F&&K}y.ignoreEmulatedMouseEvents=!1,y.ignoreClickAfterPress=!1,R&&k.stopPropagation()}}},M=k=>{var R;if(y.isPressed&&y.target&&hs(k,y.target)){var S;Fd(k.target,k.key)&&k.preventDefault();let K=k.target;x(Yt(y.target,k),"keyboard",y.target.contains(K)),$(),k.key!=="Enter"&&gu(y.target)&&y.target.contains(K)&&!k[Md]&&(k[Md]=!0,jn(y.target,k,!1)),y.isPressed=!1,(S=y.metaKeyEvents)===null||S===void 0||S.delete(k.key)}else if(k.key==="Meta"&&(!((R=y.metaKeyEvents)===null||R===void 0)&&R.size)){var F;let K=y.metaKeyEvents;y.metaKeyEvents=void 0;for(let L of K.values())(F=y.target)===null||F===void 0||F.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){I.onPointerDown=F=>{if(F.button!==0||!F.currentTarget.contains(F.target))return;if(d5(F.nativeEvent)){y.pointerType="virtual";return}ms(F.currentTarget)&&F.preventDefault(),y.pointerType=F.pointerType;let K=!0;y.isPressed||(y.isPressed=!0,y.isOverTarget=!0,y.activePointerId=F.pointerId,y.target=F.currentTarget,!a&&!l&&jt(F.currentTarget),d||ul(y.target),K=C(F,y.pointerType),v(Me(F.currentTarget),"pointermove",k,!1),v(Me(F.currentTarget),"pointerup",R,!1),v(Me(F.currentTarget),"pointercancel",S,!1)),K&&F.stopPropagation()},I.onMouseDown=F=>{F.currentTarget.contains(F.target)&&F.button===0&&(ms(F.currentTarget)&&F.preventDefault(),F.stopPropagation())},I.onPointerUp=F=>{!F.currentTarget.contains(F.target)||y.pointerType==="virtual"||F.button===0&&ir(F,F.currentTarget)&&E(F,y.pointerType||F.pointerType)};let k=F=>{F.pointerId===y.activePointerId&&(y.target&&ir(F,y.target)?!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,C(Yt(y.target,F),y.pointerType)):y.target&&y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,x(Yt(y.target,F),y.pointerType,!1),A(F)))},R=F=>{F.pointerId===y.activePointerId&&y.isPressed&&F.button===0&&y.target&&(ir(F,y.target)&&y.pointerType!=null?x(Yt(y.target,F),y.pointerType):y.isOverTarget&&y.pointerType!=null&&x(Yt(y.target,F),y.pointerType,!1),y.isPressed=!1,y.isOverTarget=!1,y.activePointerId=null,y.pointerType=null,$(),d||eo(y.target))},S=F=>{w(F)};I.onDragStart=F=>{F.currentTarget.contains(F.target)&&w(F)}}else{I.onMouseDown=S=>{if(S.button!==0||!S.currentTarget.contains(S.target))return;if(ms(S.currentTarget)&&S.preventDefault(),y.ignoreEmulatedMouseEvents){S.stopPropagation();return}y.isPressed=!0,y.isOverTarget=!0,y.target=S.currentTarget,y.pointerType=sl(S.nativeEvent)?"virtual":"mouse",!a&&!l&&jt(S.currentTarget),C(S,y.pointerType)&&S.stopPropagation(),v(Me(S.currentTarget),"mouseup",k,!1)},I.onMouseEnter=S=>{if(!S.currentTarget.contains(S.target))return;let F=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!0,F=C(S,y.pointerType)),F&&S.stopPropagation()},I.onMouseLeave=S=>{if(!S.currentTarget.contains(S.target))return;let F=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!1,F=x(S,y.pointerType,!1),A(S)),F&&S.stopPropagation()},I.onMouseUp=S=>{S.currentTarget.contains(S.target)&&!y.ignoreEmulatedMouseEvents&&S.button===0&&E(S,y.pointerType||"mouse")};let k=S=>{if(S.button===0){if(y.isPressed=!1,$(),y.ignoreEmulatedMouseEvents){y.ignoreEmulatedMouseEvents=!1;return}y.target&&ir(S,y.target)&&y.pointerType!=null?x(Yt(y.target,S),y.pointerType):y.target&&y.isOverTarget&&y.pointerType!=null&&x(Yt(y.target,S),y.pointerType,!1),y.isOverTarget=!1}};I.onTouchStart=S=>{if(!S.currentTarget.contains(S.target))return;let F=g5(S.nativeEvent);if(!F)return;y.activePointerId=F.identifier,y.ignoreEmulatedMouseEvents=!0,y.isOverTarget=!0,y.isPressed=!0,y.target=S.currentTarget,y.pointerType="touch",!a&&!l&&jt(S.currentTarget),d||ul(y.target),C(S,y.pointerType)&&S.stopPropagation(),v(Tt(S.currentTarget),"scroll",R,!0)},I.onTouchMove=S=>{if(!S.currentTarget.contains(S.target))return;if(!y.isPressed){S.stopPropagation();return}let F=Rd(S.nativeEvent,y.activePointerId),K=!0;F&&ir(F,S.currentTarget)?!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,K=C(S,y.pointerType)):y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,K=x(S,y.pointerType,!1),A(S)),K&&S.stopPropagation()},I.onTouchEnd=S=>{if(!S.currentTarget.contains(S.target))return;if(!y.isPressed){S.stopPropagation();return}let F=Rd(S.nativeEvent,y.activePointerId),K=!0;F&&ir(F,S.currentTarget)&&y.pointerType!=null?(E(S,y.pointerType),K=x(S,y.pointerType)):y.isOverTarget&&y.pointerType!=null&&(K=x(S,y.pointerType,!1)),K&&S.stopPropagation(),y.isPressed=!1,y.activePointerId=null,y.isOverTarget=!1,y.ignoreEmulatedMouseEvents=!0,y.target&&!d&&eo(y.target),$()},I.onTouchCancel=S=>{S.currentTarget.contains(S.target)&&(S.stopPropagation(),y.isPressed&&w(S))};let R=S=>{y.isPressed&&S.target.contains(y.target)&&w({currentTarget:y.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};I.onDragStart=S=>{S.currentTarget.contains(S.target)&&w(S)}}return I},[v,a,l,$,d,w,A,x,C,E]);return u.useEffect(()=>()=>{var y;d||eo((y=b.current.target)!==null&&y!==void 0?y:void 0)},[d]),{isPressed:s||h,pressProps:oe(p,V)}}function gu(e){return e.tagName==="A"&&e.hasAttribute("href")}function hs(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Tt(o).HTMLInputElement&&!_h(o,n)||o instanceof Tt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&gu(o))&&n!=="Enter")}function g5(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Rd(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function Yt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function y5(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function $5(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ir(e,t){let n=t.getBoundingClientRect(),r=y5(e);return $5(n,r)}function ms(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Fd(e,t){return e instanceof HTMLInputElement?!_h(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!gu(e)}const x5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _h(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":x5.has(e.type)}const w5=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),o=u.useContext(go);n=Ft(n||(o==null?void 0:o.ref));let i=oe(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return vu(o,n),u.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),u.createElement(go.Provider,{value:i},e)});function C5({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(go.Provider,{value:t},e)}class E5{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Kh(e){let t=u.useRef({isFocused:!1,observer:null});Se(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ne(r=>{e==null||e(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=a=>{t.current.isFocused=!1,o.disabled&&n(new E5("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Ea(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=u.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=Kh(i),s=u.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let ln=null,yo=new Set,io=new Map,Un=!1,cl=!1;const D5={Tab:!0,Escape:!0};function Da(e,t){for(let n of yo)n(e,t)}function P5(e){return!(e.metaKey||!sn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ui(e){Un=!0,P5(e)&&(ln="keyboard",Da("keyboard",e))}function Dt(e){ln="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Un=!0,Da("pointer",e))}function jh(e){sl(e)&&(Un=!0,ln="virtual")}function zh(e){e.target===window||e.target===document||(!Un&&!cl&&(ln="virtual",Da("virtual",e)),Un=!1,cl=!1)}function Uh(){Un=!1,cl=!0}function Hi(e){if(typeof window>"u"||io.get(Tt(e)))return;const t=Tt(e),n=Me(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Un=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ui,!0),n.addEventListener("keyup",Ui,!0),n.addEventListener("click",jh,!0),t.addEventListener("focus",zh,!0),t.addEventListener("blur",Uh,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Dt,!0),n.addEventListener("pointermove",Dt,!0),n.addEventListener("pointerup",Dt,!0)):(n.addEventListener("mousedown",Dt,!0),n.addEventListener("mousemove",Dt,!0),n.addEventListener("mouseup",Dt,!0)),t.addEventListener("beforeunload",()=>{Hh(e)},{once:!0}),io.set(t,{focus:r})}const Hh=(e,t)=>{const n=Tt(e),r=Me(e);t&&r.removeEventListener("DOMContentLoaded",t),io.has(n)&&(n.HTMLElement.prototype.focus=io.get(n).focus,r.removeEventListener("keydown",Ui,!0),r.removeEventListener("keyup",Ui,!0),r.removeEventListener("click",jh,!0),n.removeEventListener("focus",zh,!0),n.removeEventListener("blur",Uh,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Dt,!0),r.removeEventListener("pointermove",Dt,!0),r.removeEventListener("pointerup",Dt,!0)):(r.removeEventListener("mousedown",Dt,!0),r.removeEventListener("mousemove",Dt,!0),r.removeEventListener("mouseup",Dt,!0)),io.delete(n))};function S5(e){const t=Me(e);let n;return t.readyState!=="loading"?Hi(e):(n=()=>{Hi(e)},t.addEventListener("DOMContentLoaded",n)),()=>Hh(e,n)}typeof document<"u"&&S5();function wr(){return ln!=="pointer"}function Gi(){return ln}function Gh(e){ln=e,Da(e,null)}function T5(){Hi();let[e,t]=u.useState(ln);return u.useEffect(()=>{let n=()=>{t(ln)};return yo.add(n),()=>{yo.delete(n)}},[]),Ht()?null:e}const A5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k5(e,t,n){var r;const o=typeof window<"u"?Tt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Tt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?Tt(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?Tt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!A5.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!D5[n.key])}function M5(e,t,n){Hi(),u.useEffect(()=>{let r=(o,i)=>{k5(!!(n!=null&&n.isTextInput),o,i)&&e(wr())};return yo.add(r),()=>{yo.delete(r)}},t)}function Mr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=u.useRef({isFocusWithin:!1}),a=u.useCallback(c=>{i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(c),o&&o(!1))},[n,o,i]),s=Kh(a),l=u.useCallback(c=>{!i.current.isFocusWithin&&document.activeElement===c.target&&(r&&r(c),o&&o(!0),i.current.isFocusWithin=!0,s(c))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let Wi=!1,bs=0;function dl(){Wi=!0,setTimeout(()=>{Wi=!1},50)}function Bd(e){e.pointerType==="touch"&&dl()}function R5(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Bd):document.addEventListener("touchend",dl),bs++,()=>{bs--,!(bs>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Bd):document.removeEventListener("touchend",dl))}}function Ye(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=u.useState(!1),s=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(R5,[]);let{hoverProps:l,triggerHoverEnd:c}=u.useMemo(()=>{let d=(h,m)=>{if(s.pointerType=m,o||m==="touch"||s.isHovered||!h.currentTarget.contains(h.target))return;s.isHovered=!0;let b=h.currentTarget;s.target=b,t&&t({type:"hoverstart",target:b,pointerType:m}),n&&n(!0),a(!0)},f=(h,m)=>{if(s.pointerType="",s.target=null,m==="touch"||!s.isHovered)return;s.isHovered=!1;let b=h.currentTarget;r&&r({type:"hoverend",target:b,pointerType:m}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{Wi&&h.pointerType==="mouse"||d(h,h.pointerType)},p.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(p.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!s.ignoreEmulatedMouseEvents&&!Wi&&d(h,"mouse"),s.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,o,s]);return u.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:i}}function Wh(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Ne(l=>{n&&li(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Ne(l=>{n&&n(l)});u.useEffect(()=>{let l=i.current;if(r)return;const c=t.current,d=Me(c);if(typeof PointerEvent<"u"){let f=p=>{l.isPointerDown&&li(p,t)&&s(p),l.isPointerDown=!1};return d.addEventListener("pointerdown",a,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",a,!0),d.removeEventListener("pointerup",f,!0)}}else{let f=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&li(h,t)&&s(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&li(h,t)&&s(h),l.isPointerDown=!1};return d.addEventListener("mousedown",a,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",a,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",a,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",a,!0),d.removeEventListener("touchend",p,!0)}}},[t,r,a,s])}function li(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Id(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function yu(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Id(e.onKeyDown),onKeyUp:Id(e.onKeyUp)}}}function Yh(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=u.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=kr(),s=Ne((d,f,p,h)=>{p===0&&h===0||(o.current.didMove||(o.current.didMove=!0,t==null||t({type:"movestart",pointerType:f,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey})),n==null||n({type:"move",pointerType:f,deltaX:p,deltaY:h,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))}),l=Ne((d,f)=>{eo(),o.current.didMove&&(r==null||r({type:"moveend",pointerType:f,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))});return{moveProps:u.useMemo(()=>{let d={},f=()=>{ul(),o.current.didMove=!1};if(typeof PointerEvent>"u"){let h=$=>{if($.button===0){var C,x,E,w;s($,"mouse",$.pageX-((E=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&E!==void 0?E:0),$.pageY-((w=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&w!==void 0?w:0)),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},m=$=>{$.button===0&&(l($,"mouse"),a(window,"mousemove",h,!1),a(window,"mouseup",m,!1))};d.onMouseDown=$=>{$.button===0&&(f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i(window,"mousemove",h,!1),i(window,"mouseup",m,!1))};let b=$=>{let C=[...$.changedTouches].findIndex(({identifier:V})=>V===o.current.id);if(C>=0){var x,E;let{pageX:V,pageY:y}=$.changedTouches[C];var w,A;s($,"touch",V-((w=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&w!==void 0?w:0),y-((A=(E=o.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&A!==void 0?A:0)),o.current.lastPosition={pageX:V,pageY:y}}},v=$=>{[...$.changedTouches].findIndex(({identifier:x})=>x===o.current.id)>=0&&(l($,"touch"),o.current.id=null,a(window,"touchmove",b),a(window,"touchend",v),a(window,"touchcancel",v))};d.onTouchStart=$=>{if($.changedTouches.length===0||o.current.id!=null)return;let{pageX:C,pageY:x,identifier:E}=$.changedTouches[0];f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:C,pageY:x},o.current.id=E,i(window,"touchmove",b,!1),i(window,"touchend",v,!1),i(window,"touchcancel",v,!1)}}else{let h=b=>{if(b.pointerId===o.current.id){var v,$;let E=b.pointerType||"mouse";var C,x;s(b,E,b.pageX-((C=(v=o.current.lastPosition)===null||v===void 0?void 0:v.pageX)!==null&&C!==void 0?C:0),b.pageY-((x=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&x!==void 0?x:0)),o.current.lastPosition={pageX:b.pageX,pageY:b.pageY}}},m=b=>{if(b.pointerId===o.current.id){let v=b.pointerType||"mouse";l(b,v),o.current.id=null,a(window,"pointermove",h,!1),a(window,"pointerup",m,!1),a(window,"pointercancel",m,!1)}};d.onPointerDown=b=>{b.button===0&&o.current.id==null&&(f(),b.stopPropagation(),b.preventDefault(),o.current.lastPosition={pageX:b.pageX,pageY:b.pageY},o.current.id=b.pointerId,i(window,"pointermove",h,!1),i(window,"pointerup",m,!1),i(window,"pointercancel",m,!1))}}let p=(h,m,b)=>{f(),s(h,"keyboard",m,b),l(h,"keyboard")};return d.onKeyDown=h=>{switch(h.key){case"Left":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),p(h,-1,0);break;case"Right":case"ArrowRight":h.preventDefault(),h.stopPropagation(),p(h,1,0);break;case"Up":case"ArrowUp":h.preventDefault(),h.stopPropagation(),p(h,0,-1);break;case"Down":case"ArrowDown":h.preventDefault(),h.stopPropagation(),p(h,0,1);break}},d},[o,i,a,s,l])}}function F5(e,t){let{onScroll:n,isDisabled:r}=e,o=u.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),n&&n({deltaX:i.deltaX,deltaY:i.deltaY}))},[n]);zi(t,"wheel",r?void 0:o)}const B5=500;function qh(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=B5,accessibilityDescription:a}=e;const s=u.useRef();let{addGlobalListener:l,removeGlobalListener:c}=kr(),{pressProps:d}=Cn({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let h=m=>{m.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Lh(o&&!t?a:void 0);return{longPressProps:oe(d,f)}}function Hn(e){const t=Me(e);if(Gi()==="virtual"){let n=t.activeElement;Oh(()=>{t.activeElement===n&&e.isConnected&&jt(e)})}else jt(e)}function I5(e){const t=Tt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function O5(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Zh(e,t){return e.nodeName!=="#comment"&&I5(e)&&O5(e,t)&&(!e.parentElement||Zh(e.parentElement,e))}const Od=u.createContext(null);let ke=null;function $u(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=u.useRef(null),a=u.useRef(null),s=u.useRef([]),{parentNode:l}=u.useContext(Od)||{},c=u.useMemo(()=>new fl({scopeRef:s}),[s]);Se(()=>{let p=l||He.root;if(He.getTreeNode(p.scopeRef)&&ke&&!qi(ke,p.scopeRef)){let h=He.getTreeNode(ke);h&&(p=h)}p.addChild(c),He.addNode(c)},[c,l]),Se(()=>{let p=He.getTreeNode(s);p&&(p.contain=!!n)},[n]),Se(()=>{var p;let h=(p=i.current)===null||p===void 0?void 0:p.nextSibling,m=[];for(;h&&h!==a.current;)m.push(h),h=h.nextSibling;s.current=m},[t]),z5(s,r,n),_5(s,n),H5(s,r,n),j5(s,o),u.useEffect(()=>{const p=Me(s.current?s.current[0]:void 0).activeElement;let h=null;if(it(p,s.current)){for(let m of He.traverse())m.scopeRef&&it(p,m.scopeRef.current)&&(h=m);h===He.getTreeNode(s)&&(ke=h.scopeRef)}},[s]),Se(()=>()=>{var p,h,m;let b=(m=(h=He.getTreeNode(s))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&m!==void 0?m:null;(s===ke||qi(s,ke))&&(!b||He.getTreeNode(b))&&(ke=b),He.removeTreeNode(s)},[s]);let d=u.useMemo(()=>L5(s),[]),f=u.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return u.createElement(Od.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function L5(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||Me(n[0]).activeElement,l=n[0].previousElementSibling,c=Vn(n),d=lt(c,{tabbable:o,accept:a},n);d.currentNode=it(s,n)?s:l;let f=d.nextNode();return!f&&i&&(d.currentNode=l,f=d.nextNode()),f&&pt(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||Me(n[0]).activeElement,l=n[n.length-1].nextElementSibling,c=Vn(n),d=lt(c,{tabbable:o,accept:a},n);d.currentNode=it(s,n)?s:l;let f=d.previousNode();return!f&&i&&(d.currentNode=l,f=d.previousNode()),f&&pt(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Vn(n),a=lt(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&pt(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Vn(n),a=lt(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&pt(s,!0),s}}}const xu=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],V5=xu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";xu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const N5=xu.join(':not([hidden]):not([tabindex="-1"]),');function Vn(e){return e[0].parentElement}function to(e){let t=He.getTreeNode(ke);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function _5(e,t){let n=u.useRef(),r=u.useRef();Se(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=Me(o?o[0]:void 0);let a=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!to(e))return;let d=i.activeElement,f=e.current;if(!f||!it(d,f))return;let p=Vn(f),h=lt(p,{tabbable:!0},f);if(!d)return;h.currentNode=d;let m=c.shiftKey?h.previousNode():h.nextNode();m||(h.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,m=c.shiftKey?h.previousNode():h.nextNode()),c.preventDefault(),m&&pt(m,!0)},s=c=>{(!ke||qi(ke,e))&&it(c.target,e.current)?(ke=e,n.current=c.target):to(e)&&!Yi(c.target,e)?n.current?n.current.focus():ke&&ke.current&&Zi(ke.current):to(e)&&(n.current=c.target)},l=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&to(e)&&!Yi(i.activeElement,e))if(ke=e,i.body.contains(c.target)){var d;n.current=c.target,(d=n.current)===null||d===void 0||d.focus()}else ke.current&&Zi(ke.current)})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(c=>c.addEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",l,!1))}},[e,t]),Se(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Xh(e){return Yi(e)}function it(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Yi(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of He.traverse(He.getTreeNode(t)))if(n&&it(e,n.current))return!0;return!1}function K5(e){return Yi(e,ke)}function qi(e,t){var n;let r=(n=He.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function pt(e,t=!1){if(e!=null&&!t)try{Hn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Zi(e,t=!0){let n=e[0].previousElementSibling,r=Vn(e),o=lt(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=Vn(e),o=lt(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),pt(i)}function j5(e,t){const n=u.useRef(t);u.useEffect(()=>{if(n.current){ke=e;const r=Me(e.current?e.current[0]:void 0);!it(r.activeElement,ke.current)&&e.current&&Zi(e.current)}n.current=!1},[e])}function z5(e,t,n){Se(()=>{if(t||n)return;let r=e.current;const o=Me(r?r[0]:void 0);let i=a=>{let s=a.target;it(s,e.current)?ke=e:Xh(s)||(ke=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function U5(e){let t=He.getTreeNode(ke);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function H5(e,t,n){const r=u.useRef(typeof document<"u"?Me(e.current?e.current[0]:void 0).activeElement:null);Se(()=>{let o=e.current;const i=Me(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ke||qi(ke,e))&&it(i.activeElement,e.current)&&(ke=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,n]),Se(()=>{const o=Me(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!to(e))return;let s=o.activeElement;if(!it(s,e.current))return;let l=He.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,d=lt(o.body,{tabbable:!0});d.currentNode=s;let f=a.shiftKey?d.previousNode():d.nextNode();if((!c||!o.body.contains(c)||c===o.body)&&(c=void 0,l.nodeToRestore=void 0),(!f||!it(f,e.current))&&c){d.currentNode=c;do f=a.shiftKey?d.previousNode():d.nextNode();while(it(f,e.current));a.preventDefault(),a.stopPropagation(),f?pt(f,!0):Xh(c)?pt(c,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),Se(()=>{const o=Me(e.current?e.current[0]:void 0);if(!t)return;let i=He.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=He.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(it(o.activeElement,e.current)||o.activeElement===o.body&&U5(e))){let c=He.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){pt(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&He.getTreeNode(d.scopeRef)){Zi(d.scopeRef.current,!0);return}d=d.parent}}})}}}},[e,t])}function lt(e,t,n){let r=t!=null&&t.tabbable?N5:V5,o=Me(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&Zh(i)&&(!n||it(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function Jh(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Me(r).activeElement,c=lt(r,{tabbable:i,accept:s});r.contains(l)&&(c.currentNode=l);let d=c.nextNode();return!d&&a&&(c.currentNode=r,d=c.nextNode()),d&&pt(d,!0),d},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Me(r).activeElement,c=lt(r,{tabbable:i,accept:s});if(r.contains(l))c.currentNode=l;else{let f=vs(c);return f&&pt(f,!0),f??null}let d=c.previousNode();if(!d&&a){c.currentNode=r;let f=vs(c);if(!f)return null;d=f}return d&&pt(d,!0),d??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=lt(r,{tabbable:o,accept:i}).nextNode();return s&&pt(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=lt(r,{tabbable:o,accept:i}),s=vs(a);return s&&pt(s,!0),s??null}}}function vs(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class wu{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new fl({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&it(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new wu;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new fl({scopeRef:null}),this.fastMap.set(null,this.root)}}class fl{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let He=new wu;function at(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=u.useRef({isFocused:!1,isFocusVisible:t||wr()}),[i,a]=u.useState(!1),[s,l]=u.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=u.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),d=u.useCallback(h=>{o.current.isFocused=h,a(h),c()},[c]);M5(h=>{o.current.isFocusVisible=h,c()},[],{isTextInput:n});let{focusProps:f}=Ea({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=Mr({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:r?p:f}}let G5=u.createContext(null);function W5(e){let t=u.useContext(G5)||{};vu(t,e);let{ref:n,...r}=t;return r}function Rr(e,t){let{focusProps:n}=Ea(e),{keyboardProps:r}=yu(e),o=oe(n,r),i=W5(t),a=e.isDisabled?{}:i,s=u.useRef(e.autoFocus);return u.useEffect(()=>{s.current&&t.current&&Hn(t.current),s.current=!1},[t]),{focusableProps:oe({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function Y5(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=u.useState(!1);return Se(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let s=lt(e.current,{tabbable:!0});o(!!s.nextNode())}};i();let a=new MutationObserver(i);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),n?!1:r}var Qh=globalThis!=null&&globalThis.document?u.useLayoutEffect:u.useEffect;function q5(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[c,d]=u.useState("pending");u.useEffect(()=>{d(n?"loading":"pending")},[n]);const f=u.useRef(),p=u.useCallback(()=>{if(!n)return;h();const m=new Image;m.src=n,a&&(m.crossOrigin=a),r&&(m.srcset=r),s&&(m.sizes=s),t&&(m.loading=t),m.onload=b=>{h(),d("loaded"),o==null||o(b)},m.onerror=b=>{h(),d("failed"),i==null||i(b)},f.current=m},[n,a,r,s,o,i,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return Qh(()=>{if(!l)return c==="loading"&&p(),()=>{h()}},[c,p,l]),l?"loaded":c}function Z5(e={}){var t,n,r,o,i;const a=yh(),s=!!a,{as:l,ref:c,src:d,name:f,icon:p,classNames:h,fallback:m,alt:b=f||"avatar",imgRef:v,color:$=(t=a==null?void 0:a.color)!=null?t:"default",radius:C=(n=a==null?void 0:a.radius)!=null?n:"full",size:x=(r=a==null?void 0:a.size)!=null?r:"md",isBordered:E=(o=a==null?void 0:a.isBordered)!=null?o:!1,isDisabled:w=(i=a==null?void 0:a.isDisabled)!=null?i:!1,isFocusable:A=!1,getInitials:V=A3,ignoreFallback:y=!1,showFallback:I=!1,ImgComponent:M="img",imgProps:k,className:R,onError:S,...F}=e,K=l||"span",L=Qs(c),P=Qs(v),{isFocusVisible:W,isFocused:J,focusProps:G}=at(),{isHovered:D,hoverProps:T}=Ye({isDisabled:w}),H=q5({src:d,onError:S,ignoreFallback:y})==="loaded",Z=(!d||!H)&&I,N=u.useMemo(()=>{var ee;return Fx({color:$,radius:C,size:x,isBordered:E,isDisabled:w,isInGroup:s,isInGridGroup:(ee=a==null?void 0:a.isGrid)!=null?ee:!1})},[$,C,x,E,w,s,a==null?void 0:a.isGrid]),j=mo(h==null?void 0:h.base,R),_=u.useMemo(()=>A||l==="button",[A,l]),Q=u.useCallback((ee={})=>({ref:L,tabIndex:_?0:-1,"data-hover":Kt(D),"data-focus":Kt(J),"data-focus-visible":Kt(W),className:N.base({class:mo(j,ee==null?void 0:ee.className)}),...oe(F,T,_?G:{})}),[_,N,j,G,F]),ne=u.useCallback((ee={})=>({ref:P,src:d,"data-loaded":Kt(H),className:N.img({class:h==null?void 0:h.img}),...oe(k,ee)}),[N,H,k,d,P]);return{Component:K,ImgComponent:M,src:d,alt:b,icon:p,name:f,imgRef:P,slots:N,classNames:h,fallback:m,isImgLoaded:H,showFallback:Z,ignoreFallback:y,getInitials:V,getAvatarProps:Q,getImageProps:ne}}const X5=Symbol.for("react-aria.i18n.locale"),J5=Symbol.for("react-aria.i18n.strings");let ar;class Zn{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=Q5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[X5];if(ar===void 0){let o=window[J5];if(!o)return null;ar={};for(let i in o)ar[i]=new Zn({[n]:o[i]},n)}let r=ar==null?void 0:ar[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function Q5(e,t,n="en-US"){if(t[e])return t[e];let r=e2(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function e2(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Ld=new Map,Vd=new Map;class em{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,a=Ld.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),Ld.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Vd.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Vd.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}function nn(e,t){return e-t*Math.floor(e/t)}const tm=1721426;function Nn(e,t,n,r){t=Fo(e,t);let o=t-1,i=-2;return n<=2?i=0:gn(t)&&(i=-1),tm-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function gn(e){return e%4===0&&(e%100!==0||e%400===0)}function Fo(e,t){return e==="BC"?1-t:t}function Pa(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const t2={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class vt{fromJulianDay(t){let n=t,r=n-tm,o=Math.floor(r/146097),i=nn(r,146097),a=Math.floor(i/36524),s=nn(i,36524),l=Math.floor(s/1461),c=nn(s,1461),d=Math.floor(c/365),f=o*400+a*100+l*4+d+(a!==4&&d!==4?1:0),[p,h]=Pa(f),m=n-Nn(p,h,1,1),b=2;n<Nn(p,h,3,1)?b=0:gn(h)&&(b=1);let v=Math.floor(((m+b)*12+373)/367),$=n-Nn(p,h,v,1)+1;return new Ge(p,h,v,$)}toJulianDay(t){return Nn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return t2[gn(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return gn(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function nm(e){return Qt(Date.now(),e)}function n2(e){return lm(nm(e))}function rm(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function om(e,t){return Nd(e)-Nd(t)}function Nd(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let gs=null;function Cu(){return gs==null&&(gs=new Intl.DateTimeFormat().resolvedOptions().timeZone),gs}function r2(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function o2(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Cr(e){e=ut(e,new vt);let t=Fo(e.era,e.year);return im(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function im(e,t,n,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function pl(e,t){if(t==="UTC")return 0;if(e>0&&t===Cu())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:a,second:s}=am(e,t);return im(n,r,o,i,a,s,0)-Math.floor(e/1e3)*1e3}const _d=new Map;function am(e,t){let n=_d.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),_d.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let i of r)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const Kd=864e5;function i2(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>a2(e,t,i))}function a2(e,t,n){let r=am(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Jt(e,t,n="compatible"){let r=En(e);if(t==="UTC")return Cr(r);if(t===Cu()&&n==="compatible"){r=ut(r,new vt);let l=new Date,c=Fo(r.era,r.year);return l.setFullYear(c,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let o=Cr(r),i=pl(o-Kd,t),a=pl(o+Kd,t),s=i2(r,t,o-i,o-a);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function sm(e,t,n="compatible"){return new Date(Jt(e,t,n))}function Qt(e,t){let n=pl(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),c=r.getUTCSeconds(),d=r.getUTCMilliseconds();return new xo(o,i,a,t,n,s,l,c,d)}function lm(e){return new Ge(e.calendar,e.era,e.year,e.month,e.day)}function En(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new Xi(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function jd(e){return new Ta(e.hour,e.minute,e.second,e.millisecond)}function ut(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Gn(r),r}function um(e,t,n){if(e instanceof xo)return e.timeZone===t?e:l2(e,t);let r=Jt(e,t,n);return Qt(r,t)}function s2(e){let t=Cr(e)-e.offset;return new Date(t)}function l2(e,t){let n=Cr(e)-e.offset;return ut(Qt(n,t),e.calendar)}const Gr=36e5;function Sa(e,t){let n=e.copy(),r="hour"in n?pm(n,t):0;hl(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,ml(n),cm(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,u2(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,a;let l=(i=(a=n.calendar).isInverseEra)===null||i===void 0?void 0:i.call(a,n);n.year=o,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function hl(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function ml(e){for(;e.month<1;)hl(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,hl(e,1)}function u2(e){for(;e.day<1;)e.month--,ml(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,ml(e)}function cm(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Gn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),cm(e)}function Eu(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function dm(e,t){return Sa(e,Eu(t))}function Du(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Gn(n),n}function $o(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),fm(n),n}function c2(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ui(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ui(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ui(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ui(e.hour,24),t}function fm(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ui(e,t){let n=e%t;return n<0&&(n+=t),n}function pm(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,c2(e)}function hm(e,t){let n=e.copy();return pm(n,t),n}function d2(e,t){return hm(e,Eu(t))}function Pu(e,t,n,r){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=en(l,n,0,s.length-1,r==null?void 0:r.round),o.era=s[l],Gn(o);break}case"year":var i,a;!((i=(a=o.calendar).isInverseEra)===null||i===void 0)&&i.call(a,o)&&(n=-n),o.year=en(e.year,n,-1/0,9999,r==null?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=en(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=en(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Gn(o),o}function Su(e,t,n,r){let o=e.copy();switch(t){case"hour":{let i=e.hour,a=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=i>=12;a=l?12:0,s=l?23:11}o.hour=en(i,n,a,s,r==null?void 0:r.round);break}case"minute":o.minute=en(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=en(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=en(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function en(e,t,n,r,o=!1){if(o){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function mm(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let o=Sa(En(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Jt(o,e.timeZone)}else n=Cr(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Qt(n,e.timeZone);return ut(r,e.calendar)}function f2(e,t){return mm(e,Eu(t))}function p2(e,t,n,r){switch(t){case"hour":{let o=0,i=23;if((r==null?void 0:r.hourCycle)===12){let m=e.hour>=12;o=m?12:0,i=m?23:11}let a=En(e),s=ut($o(a,{hour:o}),new vt),l=[Jt(s,e.timeZone,"earlier"),Jt(s,e.timeZone,"later")].filter(m=>Qt(m,e.timeZone).day===s.day)[0],c=ut($o(a,{hour:i}),new vt),d=[Jt(c,e.timeZone,"earlier"),Jt(c,e.timeZone,"later")].filter(m=>Qt(m,e.timeZone).day===c.day).pop(),f=Cr(e)-e.offset,p=Math.floor(f/Gr),h=f%Gr;return f=en(p,n,Math.floor(l/Gr),Math.floor(d/Gr),r==null?void 0:r.round)*Gr+h,ut(Qt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Su(e,t,n,r);case"era":case"year":case"month":case"day":{let o=Pu(En(e),t,n,r),i=Jt(o,e.timeZone);return ut(Qt(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function h2(e,t,n){let r=En(e),o=$o(Du(r,t),t);if(o.compare(r)===0)return e;let i=Jt(o,e.timeZone,n);return ut(Qt(i,e.timeZone),e.calendar)}function bm(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function vm(e){let t=ut(e,new vt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function gm(e){return`${vm(e)}T${bm(e)}`}function m2(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function b2(e){return`${gm(e)}${m2(e.offset)}[${e.timeZone}]`}function Tu(e){let t=typeof e[0]=="object"?e.shift():new vt,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),o=e.shift(),i=e.shift();return[t,n,r,o,i]}var v2=new WeakMap;class Ge{copy(){return this.era?new Ge(this.calendar,this.era,this.year,this.month,this.day):new Ge(this.calendar,this.year,this.month,this.day)}add(t){return Sa(this,t)}subtract(t){return dm(this,t)}set(t){return Du(this,t)}cycle(t,n,r){return Pu(this,t,n,r)}toDate(t){return sm(this,t)}toString(){return vm(this)}compare(t){return rm(this,t)}constructor(...t){Ro(this,v2,{writable:!0,value:void 0});let[n,r,o,i,a]=Tu(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,Gn(this)}}var g2=new WeakMap;class Ta{copy(){return new Ta(this.hour,this.minute,this.second,this.millisecond)}add(t){return hm(this,t)}subtract(t){return d2(this,t)}set(t){return $o(this,t)}cycle(t,n,r){return Su(this,t,n,r)}toString(){return bm(this)}compare(t){return om(this,t)}constructor(t=0,n=0,r=0,o=0){Ro(this,g2,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,fm(this)}}var y2=new WeakMap;class Xi{copy(){return this.era?new Xi(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Xi(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Sa(this,t)}subtract(t){return dm(this,t)}set(t){return Du($o(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Pu(this,t,n,r);default:return Su(this,t,n,r)}}toDate(t,n){return sm(this,t,n)}toString(){return gm(this)}compare(t){let n=rm(this,t);return n===0?om(this,En(t)):n}constructor(...t){Ro(this,y2,{writable:!0,value:void 0});let[n,r,o,i,a]=Tu(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Gn(this)}}var $2=new WeakMap;class xo{copy(){return this.era?new xo(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new xo(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return mm(this,t)}subtract(t){return f2(this,t)}set(t,n){return h2(this,t,n)}cycle(t,n,r){return p2(this,t,n,r)}toDate(){return s2(this)}toString(){return b2(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-um(t,this.timeZone).toDate().getTime()}constructor(...t){Ro(this,$2,{writable:!0,value:void 0});let[n,r,o,i,a]=Tu(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Gn(this)}}const yr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],x2=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Ai=[1867,1911,1925,1988,2018],bn=["meiji","taisho","showa","heisei","reiwa"];function zd(e){const t=yr.findIndex(([n,r,o])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<o);return t===-1?yr.length-1:t===0?0:t-1}function ys(e){let t=Ai[bn.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Ge(e.year+t,e.month,e.day)}class w2 extends vt{fromJulianDay(t){let n=super.fromJulianDay(t),r=zd(n);return new Ge(this,bn[r],n.year-Ai[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(ys(t))}balanceDate(t){let n=ys(t),r=zd(n);bn[r]!==t.era&&(t.era=bn[r],t.year=n.year-Ai[r]),this.constrainDate(t)}constrainDate(t){let n=bn.indexOf(t.era),r=x2[n];if(r!=null){let[o,i,a]=r,s=o-Ai[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(i,t.month),t.month===i&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,o,i]=yr[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(i,t.day))}}getEras(){return bn}getYearsInEra(t){let n=bn.indexOf(t.era),r=yr[n],o=yr[n+1];if(o==null)return 9999-r[0]+1;let i=o[0]-r[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&i++,i}getDaysInMonth(t){return super.getDaysInMonth(ys(t))}getMinimumMonthInYear(t){let n=Ud(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Ud(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Ud(e){if(e.year===1){let t=bn.indexOf(e.era);return yr[t]}}const ym=-543;class C2 extends vt{fromJulianDay(t){let n=super.fromJulianDay(t),r=Fo(n.era,n.year);return new Ge(this,r-ym,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Hd(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Hd(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Hd(e){let[t,n]=Pa(e.year+ym);return new Ge(t,n,e.month,e.day)}const Ji=1911;function $m(e){return e.era==="minguo"?e.year+Ji:1-e.year+Ji}function Gd(e){let t=e-Ji;return t>0?["minguo",t]:["before_minguo",1-t]}class E2 extends vt{fromJulianDay(t){let n=super.fromJulianDay(t),r=Fo(n.era,n.year),[o,i]=Gd(r);return new Ge(this,o,i,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Wd(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Gd($m(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Wd(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Ji}constructor(...t){super(...t),this.identifier="roc"}}function Wd(e){let[t,n]=Pa($m(e));return new Ge(t,n,e.month,e.day)}const D2=1948321;function P2(e){let t=e>0?e-474:e-473,n=nn(t,2820)+474;return nn((n+38)*31,128)<31}function ci(e,t,n){let r=e>0?e-474:e-473,o=nn(r,2820)+474,i=t<=7?31*(t-1):30*(t-1)+6;return D2-1+1029983*Math.floor(r/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+n}class S2{fromJulianDay(t){let n=t-ci(475,1,1),r=Math.floor(n/1029983),o=nn(n,1029983),i=o===1029982?2820:Math.floor((128*o+46878)/46751),a=474+2820*r+i;a<=0&&a--;let s=t-ci(a,1,1)+1,l=s<=186?Math.ceil(s/31):Math.ceil((s-6)/31),c=t-ci(a,l,1)+1;return new Ge(this,a,l,c)}toJulianDay(t){return ci(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||P2(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const $s=78,Yd=80;class T2 extends vt{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-$s,o=t-Nn(n.era,n.year,1,1),i;o<Yd?(r--,i=gn(n.year-1)?31:30,o+=i+155+90+10):(i=gn(n.year)?31:30,o-=Yd);let a,s;if(o<i)a=1,s=o+1;else{let l=o-i;l<155?(a=Math.floor(l/31)+2,s=l%31+1):(l-=155,a=Math.floor(l/30)+7,s=l%30+1)}return new Ge(this,r,a,s)}toJulianDay(t){let n=t.year+$s,[r,o]=Pa(n),i,a;return gn(o)?(i=31,a=Nn(r,o,3,21)):(i=30,a=Nn(r,o,3,22)),t.month===1?a+t.day-1:(a+=i+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&gn(t.year+$s)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Qi=1948440,qd=1948439,Et=1300,sr=1600,A2=460322;function ea(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function xm(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+ea(t,r,1,1)))/29.5)+1),i=n-ea(t,r,o,1)+1;return new Ge(e,r,o,i)}function Zd(e){return(14+11*e)%30<11}class Au{fromJulianDay(t){return xm(this,Qi,t)}toJulianDay(t){return ea(Qi,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&Zd(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return Zd(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class k2 extends Au{fromJulianDay(t){return xm(this,qd,t)}toJulianDay(t){return ea(qd,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const M2="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let bl,$r;function ki(e){return A2+$r[e-Et]}function no(e,t){let n=e-Et,r=1<<11-(t-1);return bl[n]&r?30:29}function Xd(e,t){let n=ki(e);for(let r=1;r<t;r++)n+=no(e,r);return n}function Jd(e){return $r[e+1-Et]-$r[e-Et]}class R2 extends Au{fromJulianDay(t){let n=t-Qi,r=ki(Et),o=ki(sr);if(n<r||n>o)return super.fromJulianDay(t);{let i=Et-1,a=1,s=1;for(;s>0;){i++,s=n-ki(i)+1;let l=Jd(i);if(s===l){a=12;break}else if(s<l){let c=no(i,a);for(a=1;s>c;)s-=c,a++,c=no(i,a);break}}return new Ge(this,i,a,n-Xd(i,a)+1)}}toJulianDay(t){return t.year<Et||t.year>sr?super.toJulianDay(t):Qi+Xd(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Et||t.year>sr?super.getDaysInMonth(t):no(t.year,t.month)}getDaysInYear(t){return t.year<Et||t.year>sr?super.getDaysInYear(t):Jd(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",bl||(bl=new Uint16Array(Uint8Array.from(atob(M2),t=>t.charCodeAt(0)).buffer)),!$r){$r=new Uint32Array(sr-Et+1);let t=0;for(let n=Et;n<=sr;n++){$r[n-Et]=t;for(let r=1;r<=12;r++)t+=no(n,r)}}}}const Qd=347997,wm=1080,Cm=24*wm,F2=29,B2=12*wm+793,I2=F2*Cm+B2;function Bn(e){return nn(e*7+1,19)<7}function Mi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return nn(3*(r+1),7)<3&&(r+=1),r}function O2(e){let t=Mi(e-1),n=Mi(e);return Mi(e+1)-n===356?2:n-t===382?1:0}function ao(e){return Mi(e)+O2(e)}function Em(e){return ao(e+1)-ao(e)}function L2(e){let t=Em(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function di(e,t){if(t>=6&&!Bn(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=L2(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Bn(e)?30:0:30}class V2{fromJulianDay(t){let n=t-Qd,r=n*Cm/I2,o=Math.floor((19*r+234)/235)+1,i=ao(o),a=Math.floor(n-i);for(;a<1;)o--,i=ao(o),a=Math.floor(n-i);let s=1,l=0;for(;l<a;)l+=di(o,s),s++;s--,l-=di(o,s);let c=a-l;return new Ge(this,o,s,c)}toJulianDay(t){let n=ao(t.year);for(let r=1;r<t.month;r++)n+=di(t.year,r);return n+t.day+Qd}getDaysInMonth(t){return di(t.year,t.month)}getMonthsInYear(t){return Bn(t.year)?13:12}getDaysInYear(t){return Em(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Bn(n.year)&&!Bn(t.year)&&n.month>6?t.month--:!Bn(n.year)&&Bn(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const vl=1723856,ef=1824665,gl=5500;function ta(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function ku(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-ta(e,n,1,1))/30),o=t+1-ta(e,n,r,1);return[n,r,o]}function Dm(e){return Math.floor(e%4/3)}function Pm(e,t){return t%13!==0?30:Dm(e)+5}class Mu{fromJulianDay(t){let[n,r,o]=ku(vl,t),i="AM";return n<=0&&(i="AA",n+=gl),new Ge(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=gl),ta(vl,n,t.month,t.day)}getDaysInMonth(t){return Pm(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Dm(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class N2 extends Mu{fromJulianDay(t){let[n,r,o]=ku(vl,t);return n+=gl,new Ge(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class _2 extends Mu{fromJulianDay(t){let[n,r,o]=ku(ef,t),i="CE";return n<=0&&(i="BCE",n=1-n),new Ge(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),ta(ef,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Pm(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function Sm(e){switch(e){case"buddhist":return new C2;case"ethiopic":return new Mu;case"ethioaa":return new N2;case"coptic":return new _2;case"hebrew":return new V2;case"indian":return new T2;case"islamic-civil":return new Au;case"islamic-tbla":return new k2;case"islamic-umalqura":return new R2;case"japanese":return new w2;case"persian":return new S2;case"roc":return new E2;case"gregory":default:return new vt}}let xs=new Map;class so{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return z2()&&(this.resolvedHourCycle||(this.resolvedHourCycle=U2(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=Tm(t,n),this.options=n}}const K2={true:{ja:"h11"},false:{}};function Tm(e,t={}){if(typeof t.hour12=="boolean"&&j2()){t={...t};let o=K2[String(t.hour12)][e.split("-")[0]],i=t.hour12?"h12":"h23";t.hourCycle=o??i,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(xs.has(n))return xs.get(n);let r=new Intl.DateTimeFormat(e,t);return xs.set(n,r),r}let ws=null;function j2(){return ws==null&&(ws=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),ws}let Cs=null;function z2(){return Cs==null&&(Cs=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Cs}function U2(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=Tm(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(i=>i.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(i=>i.type==="hour").value,10);if(r===0&&o===23)return"h23";if(r===24&&o===23)return"h24";if(r===0&&o===11)return"h11";if(r===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}let Es=new Map,yl=!1;try{yl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let na=!1;try{na=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Am={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class ra{format(t){let n="";if(!yl&&this.options.signDisplay!=null?n=G2(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!na){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=Am[o])===null||r===void 0?void 0:r[i];n+=s[a]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!yl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!na&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=H2(t,n),this.options=n}}function H2(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!na){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Am[a])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(Es.has(o))return Es.get(o);let i=new Intl.NumberFormat(e,t);return Es.set(o,i),i}function G2(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(n)}}const W2=new RegExp("^.*\\(.*\\).*$"),Y2=["latn","arab","hanidec"];class Ru{parse(t){return Ds(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Ds(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Ds(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const tf=new Map;function Ds(e,t,n){let r=nf(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of Y2)if(o!==r.options.numberingSystem){let i=nf(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function nf(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=tf.get(n);return r||(r=new q2(e,t),tf.set(n,r)),r}class q2{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=fi(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");let i=n.indexOf(".");i===-1&&(i=n.length),n=n.replace(".",""),i-2===0?n=`0.${n}`:i-2===-1?n=`0.0${n}`:i-2===-2?n="0.00":n=`${n.slice(0,i-2)}.${n.slice(i-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(this.options.minimumFractionDigits+2,20),maximumFractionDigits:Math.min(this.options.maximumFractionDigits+2,20)};return new Ru(this.locale,o).parse(new ra(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&W2.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(t=fi(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=fi(t,".",String.fromCharCode(8239))),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=fi(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=X2(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const rf=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Z2=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function X2(e,t,n,r){var o,i,a,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),c=l.formatToParts(-10000.111),d=l.formatToParts(10000.111),f=Z2.map(M=>l.formatToParts(M));var p;let h=(p=(o=c.find(M=>M.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&p!==void 0?p:"-",m=(i=d.find(M=>M.type==="plusSign"))===null||i===void 0?void 0:i.value;!m&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(m="+");let v=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(M=>M.type==="decimal"))===null||a===void 0?void 0:a.value,$=(s=c.find(M=>M.type==="group"))===null||s===void 0?void 0:s.value,C=c.filter(M=>!rf.has(M.type)).map(M=>of(M.value)),x=f.flatMap(M=>M.filter(k=>!rf.has(k.type)).map(k=>of(k.value))),E=[...new Set([...C,...x])].sort((M,k)=>k.length-M.length),w=E.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${E.join("|")}|[\\p{White_Space}]`,"gu"),A=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),V=new Map(A.map((M,k)=>[M,k])),y=new RegExp(`[${A.join("")}]`,"g");return{minusSign:h,plusSign:m,decimal:v,group:$,literals:w,numeral:y,index:M=>String(V.get(M))}}function fi(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function of(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const J2=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Q2=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ew(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return J2.has(n.script)}let t=e.split("-")[0];return Q2.has(t)}const tw=Symbol.for("react-aria.i18n.locale");function km(){let e=typeof window<"u"&&window[tw]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:ew(e)?"rtl":"ltr"}}let $l=km(),ro=new Set;function af(){$l=km();for(let e of ro)e($l)}function nw(){let e=Ht(),[t,n]=u.useState($l);return u.useEffect(()=>(ro.size===0&&window.addEventListener("languagechange",af),ro.add(n),()=>{ro.delete(n),ro.size===0&&window.removeEventListener("languagechange",af)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const rw=u.createContext(null);function Ze(){let e=nw();return u.useContext(rw)||e}const sf=new WeakMap;function ow(e){let t=sf.get(e);return t||(t=new Zn(e),sf.set(e,t)),t}function Mm(e,t){return t&&Zn.getGlobalDictionaryForPackage(t)||ow(e)}function Fr(e,t){let{locale:n}=Ze(),r=Mm(e,t);return u.useMemo(()=>new em(n,r),[n,r])}function pi(e){e=f5(e??{},iw);let{locale:t}=Ze();return u.useMemo(()=>new so(t,e),[t,e])}function iw(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}function oa(e={}){let{locale:t}=Ze();return u.useMemo(()=>new ra(t,e),[t,e])}let Ps=new Map;function Fu(e){let{locale:t}=Ze(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Ps.has(n))return Ps.get(n);let r=new Intl.Collator(t,e);return Ps.set(n,r),r}function Rm(e){let t=Fu({usage:"search",...e}),n=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(0,a.length),a)===0),[t]),r=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(-a.length),a)===0),[t]),o=u.useCallback((i,a)=>{if(a.length===0)return!0;i=i.normalize("NFC"),a=a.normalize("NFC");let s=0,l=a.length;for(;s+l<=i.length;s++){let c=i.slice(s,s+l);if(t.compare(a,c)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}var Fm={};Fm={dismiss:"تجاهل"};var Bm={};Bm={dismiss:"Отхвърляне"};var Im={};Im={dismiss:"Odstranit"};var Om={};Om={dismiss:"Luk"};var Lm={};Lm={dismiss:"Schließen"};var Vm={};Vm={dismiss:"Απόρριψη"};var Nm={};Nm={dismiss:"Dismiss"};var _m={};_m={dismiss:"Descartar"};var Km={};Km={dismiss:"Lõpeta"};var jm={};jm={dismiss:"Hylkää"};var zm={};zm={dismiss:"Rejeter"};var Um={};Um={dismiss:"התעלם"};var Hm={};Hm={dismiss:"Odbaci"};var Gm={};Gm={dismiss:"Elutasítás"};var Wm={};Wm={dismiss:"Ignora"};var Ym={};Ym={dismiss:"閉じる"};var qm={};qm={dismiss:"무시"};var Zm={};Zm={dismiss:"Atmesti"};var Xm={};Xm={dismiss:"Nerādīt"};var Jm={};Jm={dismiss:"Lukk"};var Qm={};Qm={dismiss:"Negeren"};var e0={};e0={dismiss:"Zignoruj"};var t0={};t0={dismiss:"Descartar"};var n0={};n0={dismiss:"Dispensar"};var r0={};r0={dismiss:"Revocare"};var o0={};o0={dismiss:"Пропустить"};var i0={};i0={dismiss:"Zrušiť"};var a0={};a0={dismiss:"Opusti"};var s0={};s0={dismiss:"Odbaci"};var l0={};l0={dismiss:"Avvisa"};var u0={};u0={dismiss:"Kapat"};var c0={};c0={dismiss:"Скасувати"};var d0={};d0={dismiss:"取消"};var f0={};f0={dismiss:"關閉"};const lf={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function aw(e={}){let{style:t,isFocusable:n}=e,[r,o]=u.useState(!1),{focusWithinProps:i}=Mr({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=u.useMemo(()=>r?t:t?{...lf,...t}:lf,[r]);return{visuallyHiddenProps:{...i,style:a}}}function Aa(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=aw(e);return u.createElement(n,oe(i,a),t)}function sw(e){return e&&e.__esModule?e.default:e}const pr={top:"top",bottom:"top",left:"left",right:"left"},ia={top:"bottom",bottom:"top",left:"right",right:"left"},lw={top:"left",left:"top"},xl={top:"height",left:"width"},p0={width:"totalWidth",height:"totalHeight"},hi={};let dt=typeof document<"u"&&window.visualViewport;function uf(e){let t=0,n=0,r=0,o=0,i=0,a=0,s={},l=(dt==null?void 0:dt.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,o=f.clientHeight;var c;t=(c=dt==null?void 0:dt.width)!==null&&c!==void 0?c:r;var d;n=(d=dt==null?void 0:dt.height)!==null&&d!==void 0?d:o,s.top=f.scrollTop||e.scrollTop,s.left=f.scrollLeft||e.scrollLeft,dt&&(i=dt.offsetTop,a=dt.offsetLeft)}else({width:t,height:n,top:i,left:a}=xr(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return hu()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(s.top=0,s.left=0,i=dt.pageTop,a=dt.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:a}}function uw(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function cf(e,t,n,r,o,i,a){let s=o.scroll[e],l=r[xl[e]],c=r.scroll[pr[e]]+i,d=l+r.scroll[pr[e]]-i,f=t-s+a[e]-r[pr[e]],p=t-s+n+a[e]-r[pr[e]];return f<c?c-f:p>d?Math.max(d-p,c-f):0}function cw(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function df(e){if(hi[e])return hi[e];let[t,n]=e.split(" "),r=pr[t]||"right",o=lw[r];pr[n]||(n="center");let i=xl[r],a=xl[o];return hi[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},hi[e]}function Ss(e,t,n,r,o,i,a,s,l,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:h,size:m,crossSize:b}=r,v={};v[h]=e[h],f==="center"?v[h]+=(e[b]-n[b])/2:f!==h&&(v[h]+=e[b]-n[b]),v[h]+=i;const $=e[h]-n[b]+l+c,C=e[h]+e[b]-l-c;if(v[h]=At(v[h],$,C),d===p){const x=s?a[m]:t[p0[m]];v[ia[p]]=Math.floor(x-e[p]+o)}else v[p]=Math.floor(e[p]+e[m]+o);return v}function dw(e,t,n,r,o,i,a,s){const l=r?n.height:t[p0.height];let c=e.top!=null?n.top+e.top:n.top+(l-e.bottom-a),d=s!=="top"?Math.max(0,t.height+t.top+t.scroll.top-c-(o.top+o.bottom+i)):Math.max(0,c+a-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-i*2,d)}function ff(e,t,n,r,o,i){let{placement:a,axis:s,size:l}=i;return a===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[ia[s]]-o):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[ia[s]]-o)}function fw(e,t,n,r,o,i,a,s,l,c,d,f,p,h,m,b){let v=df(e),{size:$,crossAxis:C,crossSize:x,placement:E,crossPlacement:w}=v,A=Ss(t,s,n,v,d,f,c,p,m,b),V=d,y=ff(s,c,t,o,i+d,v);if(a&&r[$]>y){let J=df(`${ia[E]} ${w}`),G=Ss(t,s,n,J,d,f,c,p,m,b);ff(s,c,t,o,i+d,J)>y&&(v=J,A=G,V=d)}let I="bottom";v.axis==="top"?v.placement==="top"?I="top":v.placement==="bottom"&&(I="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?I="bottom":v.crossPlacement==="bottom"&&(I="top"));let M=cf(C,A[C],n[x],s,l,i,c);A[C]+=M;let k=dw(A,s,c,p,o,i,n.height,I);h&&h<k&&(k=h),n.height=Math.min(n.height,k),A=Ss(t,s,n,v,V,f,c,p,m,b),M=cf(C,A[C],n[x],s,l,i,c),A[C]+=M;let R={},S=t[C]+.5*t[x]-n[C];const F=m/2+b,K=n[x]-m/2-b,L=t[C]-n[C]+m/2,P=t[C]+t[x]-n[C]-m/2,W=At(S,L,P);return R[C]=At(W,F,K),{position:A,maxHeight:k,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:v.placement}}function pw(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,h=r instanceof HTMLElement?hw(r):document.documentElement,m=h===document.documentElement;const b=window.getComputedStyle(h).position;let v=!!b&&b!=="static",$=m?xr(n):pf(n,h);if(!m){let{marginTop:y,marginLeft:I}=window.getComputedStyle(n);$.top+=parseInt(y,10)||0,$.left+=parseInt(I,10)||0}let C=xr(r),x=cw(r);C.width+=x.left+x.right,C.height+=x.top+x.bottom;let E=uw(o),w=uf(s),A=uf(h),V=s.tagName==="BODY"?xr(h):pf(h,s);return h.tagName==="HTML"&&s.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),fw(t,$,C,E,x,i,a,w,A,V,l,c,v,d,f,p)}function xr(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:n+a-l,width:r,height:o}}function pf(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:i,width:a,height:s}=e.getBoundingClientRect();r={top:o,left:i,width:a,height:s}}else{r=xr(e);let o=xr(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function hw(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!hf(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!hf(t);)t=t.parentElement;return t||document.documentElement}function hf(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const h0=new WeakMap;function mw(e){let{triggerRef:t,isOpen:n,onClose:r}=e;u.useEffect(()=>{if(!n||r===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current))return;let s=r||h0.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Ke=typeof document<"u"&&window.visualViewport;function m0(e){let{direction:t}=Ze(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:a="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:h=!0,onClose:m,maxHeight:b,arrowBoundaryOffset:v=0}=e,[$,C]=u.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[p,a,o.current,r.current,i.current,s,l,c,d,f,h,t,b,v,n],E=u.useRef(Ke==null?void 0:Ke.scale);u.useEffect(()=>{h&&(E.current=Ke==null?void 0:Ke.scale)},[h]);let w=u.useCallback(()=>{if(p===!1||!h||!o.current||!r.current||!i.current||!c||(Ke==null?void 0:Ke.scale)!==E.current)return;!b&&o.current&&(o.current.style.maxHeight="none");let y=pw({placement:vw(a,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:l,boundaryElement:c,offset:d,crossOffset:f,maxHeight:b,arrowSize:n,arrowBoundaryOffset:v});Object.keys(y.position).forEach(I=>o.current.style[I]=y.position[I]+"px"),o.current.style.maxHeight=y.maxHeight!=null?y.maxHeight+"px":void 0,C(y)},x);Se(w,x),bw(w),bu({ref:o,onResize:w});let A=u.useRef(!1);Se(()=>{let y,I=()=>{A.current=!0,clearTimeout(y),y=setTimeout(()=>{A.current=!1},500),w()},M=()=>{A.current&&I()};return Ke==null||Ke.addEventListener("resize",I),Ke==null||Ke.addEventListener("scroll",M),()=>{Ke==null||Ke.removeEventListener("resize",I),Ke==null||Ke.removeEventListener("scroll",M)}},[w]);let V=u.useCallback(()=>{A.current||m()},[m,A]);return mw({triggerRef:r,isOpen:h,onClose:m&&V}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...$.position,maxHeight:$.maxHeight}},placement:$.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$.arrowOffsetLeft,top:$.arrowOffsetTop}},updatePosition:w}}function bw(e){Se(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function vw(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const qt=[];function Bu(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;u.useEffect(()=>(o&&qt.push(t),()=>{let m=qt.indexOf(t);m>=0&&qt.splice(m,1)}),[o,t]);let l=()=>{qt[qt.length-1]===t&&n&&n()},c=m=>{(!s||s(m.target))&&qt[qt.length-1]===t&&(m.stopPropagation(),m.preventDefault())},d=m=>{(!s||s(m.target))&&(qt[qt.length-1]===t&&(m.stopPropagation(),m.preventDefault()),l())},f=m=>{m.key==="Escape"&&!a&&(m.stopPropagation(),m.preventDefault(),l())};Wh({ref:t,onInteractOutside:i&&o?d:null,onInteractOutsideStart:c});let{focusWithinProps:p}=Mr({isDisabled:!r,onBlurWithin:m=>{!m.relatedTarget||K5(m.relatedTarget)||(!s||s(m.relatedTarget))&&n()}}),h=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:h}}}function gw(e,t,n){let{type:r}=e,{isOpen:o}=t;u.useEffect(()=>{n&&n.current&&h0.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=nt();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:null,onPress:t.toggle},overlayProps:{id:a}}}const Ts=typeof document<"u"&&window.visualViewport,yw=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let mi=0,As;function b0(e={}){let{isDisabled:t}=e;Se(()=>{if(!t)return mi++,mi===1&&(Ar()?As=xw():As=$w()),()=>{mi--,mi===0&&As()}},[t])}function $w(){return wn(hr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),hr(document.documentElement,"overflow","hidden"))}function xw(){let e,t,n=c=>{e=vo(c.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=hr(e,"overscrollBehavior","contain"))},r=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()},o=c=>{let d=c.target;bf(d)&&d!==document.activeElement&&(c.preventDefault(),s(),d.style.transform="translateY(-2000px)",d.focus(),requestAnimationFrame(()=>{d.style.transform=""})),t&&t()},i=c=>{let d=c.target;bf(d)&&(s(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Ts&&(Ts.height<window.innerHeight?requestAnimationFrame(()=>{mf(d)}):Ts.addEventListener("resize",()=>mf(d),{once:!0}))}))},a=null,s=()=>{if(a)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;a=wn(Wr(window,"scroll",c),hr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),hr(document.documentElement,"overflow","hidden"),hr(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},l=wn(Wr(document,"touchstart",n,{passive:!1,capture:!0}),Wr(document,"touchmove",r,{passive:!1,capture:!0}),Wr(document,"touchend",o,{passive:!1,capture:!0}),Wr(document,"focus",i,!0));return()=>{t==null||t(),a==null||a(),l()}}function hr(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Wr(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function mf(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=vo(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(n.scrollTop+=o-r)}e=n.parentElement}}function bf(e){return e instanceof HTMLInputElement&&!yw.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const wl=u.createContext(null);function ww(e){let{children:t}=e,n=u.useContext(wl),[r,o]=u.useState(0),i=u.useMemo(()=>({parent:n,modalCount:r,addModal(){o(a=>a+1),n&&n.addModal()},removeModal(){o(a=>a-1),n&&n.removeModal()}}),[n,r]);return u.createElement(wl.Provider,{value:i},t)}function Cw(){let e=u.useContext(wl);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function Ew(e){let{modalProviderProps:t}=Cw();return u.createElement("div",{"data-overlay-container":!0,...e,...t})}function Dw(e){return u.createElement(ww,null,u.createElement(Ew,e))}function vf(e){let t=Ht(),{portalContainer:n=t?null:document.body,...r}=e;if(u.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=u.createElement(Dw,r);return dn.createPortal(o,n)}var v0={};v0={"ar-AE":Fm,"bg-BG":Bm,"cs-CZ":Im,"da-DK":Om,"de-DE":Lm,"el-GR":Vm,"en-US":Nm,"es-ES":_m,"et-EE":Km,"fi-FI":jm,"fr-FR":zm,"he-IL":Um,"hr-HR":Hm,"hu-HU":Gm,"it-IT":Wm,"ja-JP":Ym,"ko-KR":qm,"lt-LT":Zm,"lv-LV":Xm,"nb-NO":Jm,"nl-NL":Qm,"pl-PL":e0,"pt-BR":t0,"pt-PT":n0,"ro-RO":r0,"ru-RU":o0,"sk-SK":i0,"sl-SI":a0,"sr-SP":s0,"sv-SE":l0,"tr-TR":u0,"uk-UA":c0,"zh-CN":d0,"zh-TW":f0};function Cl(e){let{onDismiss:t,...n}=e,r=Fr(sw(v0),"@react-aria/overlays"),o=zn(n,r.format("dismiss")),i=()=>{t&&t()};return u.createElement(Aa,null,u.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Yr=new WeakMap,yt=[];function Iu(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let c=p=>{if(n.has(p)||r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(l);if(f===NodeFilter.FILTER_ACCEPT&&i(l),f!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)i(p),p=d.nextNode()}},i=l=>{var c;let d=(c=Yr.get(l))!==null&&c!==void 0?c:0;l.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&l.setAttribute("aria-hidden","true"),r.add(l),Yr.set(l,d+1))};yt.length&&yt[yt.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&o(d)}});a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return yt.push(s),()=>{a.disconnect();for(let l of r){let c=Yr.get(l);c===1?(l.removeAttribute("aria-hidden"),Yr.delete(l)):Yr.set(l,c-1)}s===yt[yt.length-1]?(yt.pop(),yt.length&&yt[yt.length-1].observe()):yt.splice(yt.indexOf(s),1)}}function Pw(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...s}=e,{overlayProps:l,underlayProps:c}=Bu({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:d,arrowProps:f,placement:p}=m0({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return b0({isDisabled:o||!t.isOpen}),Se(()=>{if(t.isOpen&&!o&&r.current)return Iu([r.current])},[o,t.isOpen,r]),{popoverProps:oe(l,d),arrowProps:f,underlayProps:c,placement:p}}const g0=u.createContext(null);function y0(e){let t=Ht(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=u.useState(!1),a=u.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let s=e.children;return e.disableFocusManagement||(s=u.createElement($u,{restoreFocus:!0,contain:o&&!r},s)),s=u.createElement(g0.Provider,{value:a},u.createElement(C5,null,s)),dn.createPortal(s,n)}function $0(){let e=u.useContext(g0),t=e==null?void 0:e.setContain;Se(()=>{t==null||t(!0)},[t])}function Sw(e,t,n){let{overlayProps:r,underlayProps:o}=Bu({...e,isOpen:t.isOpen,onClose:t.close},n);return b0({isDisabled:!t.isOpen}),$0(),u.useEffect(()=>{if(t.isOpen)return Iu([n.current])},[t.isOpen,n]),{modalProps:oe(r),underlayProps:o}}function ka(e){return u.forwardRef(e)}var x0=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,a)=>({...i,[a]:e[a]}),{}),r]:[e,r]},w0=ka((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=O.jsx(P3,{}),alt:a,classNames:s,slots:l,name:c,showFallback:d,fallback:f,getInitials:p,getAvatarProps:h,getImageProps:m}=Z5({...e,ref:t}),b=u.useMemo(()=>!d&&o?null:f?O.jsx("div",{"aria-label":a,className:l.fallback({class:s==null?void 0:s.fallback}),role:"img",children:f}):c?O.jsx("span",{"aria-label":a,className:l.name({class:s==null?void 0:s.name}),role:"img",children:p(c)}):O.jsx("span",{"aria-label":a,className:l.icon({class:s==null?void 0:s.icon}),role:"img",children:i}),[d,o,f,c,s]);return O.jsxs(n,{...h(),children:[o&&O.jsx(r,{...m(),alt:a}),b]})});w0.displayName="NextUI.Avatar";var C0=w0;function Tw(e={}){const{as:t,ref:n,max:r=5,total:o,size:i,color:a,radius:s,children:l,isBordered:c,isDisabled:d,isGrid:f,renderCount:p,className:h,...m}=e,b=Qs(n),v=t||"div",$=u.useMemo(()=>({size:i,color:a,radius:s,isGrid:f,isBordered:c,isDisabled:d}),[i,a,s,f,c,d]),C=u.useMemo(()=>Bx({className:h,isGrid:f}),[h,f]),x=U3(l),E=r?x.slice(0,r):x,w=o||(r!=null?x.length-r:-1),A=E.map((y,I)=>{const M=I===0,k=I===E.length-1,R={className:mo(M?"ms-0":f?"":"-ms-2",k&&w<1?"hover:-translate-x-0":"")};return u.cloneElement(y,R3(R))});return{Component:v,context:$,remainingCount:w,clones:A,renderCount:p,getAvatarGroupProps:()=>({ref:b,className:C,role:"group",...m})}}var E0=ka((e,t)=>{const{Component:n,clones:r,context:o,remainingCount:i,renderCount:a=l=>O.jsx(C0,{className:"hover:-translate-x-0",name:`+${l}`}),getAvatarGroupProps:s}=Tw({...e,ref:t});return O.jsx(n,{...s(),children:O.jsxs(H3,{value:o,children:[r,i>0&&a(i)]})})});E0.displayName="NextUI.AvatarGroup";var Aw=E0,El={exports:{}},we={};/**
40
+ * @license React
41
+ * react-is.production.min.js
42
+ *
43
+ * Copyright (c) Facebook, Inc. and its affiliates.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE file in the root directory of this source tree.
47
+ */var gf;function kw(){if(gf)return we;gf=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function b(v){if(typeof v=="object"&&v!==null){var $=v.$$typeof;switch($){case e:switch(v=v.type,v){case n:case o:case r:case c:case d:return v;default:switch(v=v&&v.$$typeof,v){case s:case a:case l:case p:case f:case i:return v;default:return $}}case t:return $}}}return we.ContextConsumer=a,we.ContextProvider=i,we.Element=e,we.ForwardRef=l,we.Fragment=n,we.Lazy=p,we.Memo=f,we.Portal=t,we.Profiler=o,we.StrictMode=r,we.Suspense=c,we.SuspenseList=d,we.isAsyncMode=function(){return!1},we.isConcurrentMode=function(){return!1},we.isContextConsumer=function(v){return b(v)===a},we.isContextProvider=function(v){return b(v)===i},we.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},we.isForwardRef=function(v){return b(v)===l},we.isFragment=function(v){return b(v)===n},we.isLazy=function(v){return b(v)===p},we.isMemo=function(v){return b(v)===f},we.isPortal=function(v){return b(v)===t},we.isProfiler=function(v){return b(v)===o},we.isStrictMode=function(v){return b(v)===r},we.isSuspense=function(v){return b(v)===c},we.isSuspenseList=function(v){return b(v)===d},we.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===o||v===r||v===c||v===d||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===f||v.$$typeof===i||v.$$typeof===a||v.$$typeof===l||v.$$typeof===m||v.getModuleId!==void 0)},we.typeOf=b,we}var Ce={};/**
48
+ * @license React
49
+ * react-is.development.js
50
+ *
51
+ * Copyright (c) Facebook, Inc. and its affiliates.
52
+ *
53
+ * This source code is licensed under the MIT license found in the
54
+ * LICENSE file in the root directory of this source tree.
55
+ */var yf;function Mw(){return yf||(yf=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=!1,b=!1,v=!1,$=!1,C=!1,x;x=Symbol.for("react.module.reference");function E(re){return!!(typeof re=="string"||typeof re=="function"||re===n||re===o||C||re===r||re===c||re===d||$||re===h||m||b||v||typeof re=="object"&&re!==null&&(re.$$typeof===p||re.$$typeof===f||re.$$typeof===i||re.$$typeof===a||re.$$typeof===l||re.$$typeof===x||re.getModuleId!==void 0))}function w(re){if(typeof re=="object"&&re!==null){var ce=re.$$typeof;switch(ce){case e:var $e=re.type;switch($e){case n:case o:case r:case c:case d:return $e;default:var pe=$e&&$e.$$typeof;switch(pe){case s:case a:case l:case p:case f:case i:return pe;default:return ce}}case t:return ce}}}var A=a,V=i,y=e,I=l,M=n,k=p,R=f,S=t,F=o,K=r,L=c,P=d,W=!1,J=!1;function G(re){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(re){return J||(J=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function T(re){return w(re)===a}function z(re){return w(re)===i}function H(re){return typeof re=="object"&&re!==null&&re.$$typeof===e}function Z(re){return w(re)===l}function N(re){return w(re)===n}function j(re){return w(re)===p}function _(re){return w(re)===f}function Q(re){return w(re)===t}function ne(re){return w(re)===o}function ee(re){return w(re)===r}function q(re){return w(re)===c}function he(re){return w(re)===d}Ce.ContextConsumer=A,Ce.ContextProvider=V,Ce.Element=y,Ce.ForwardRef=I,Ce.Fragment=M,Ce.Lazy=k,Ce.Memo=R,Ce.Portal=S,Ce.Profiler=F,Ce.StrictMode=K,Ce.Suspense=L,Ce.SuspenseList=P,Ce.isAsyncMode=G,Ce.isConcurrentMode=D,Ce.isContextConsumer=T,Ce.isContextProvider=z,Ce.isElement=H,Ce.isForwardRef=Z,Ce.isFragment=N,Ce.isLazy=j,Ce.isMemo=_,Ce.isPortal=Q,Ce.isProfiler=ne,Ce.isStrictMode=ee,Ce.isSuspense=q,Ce.isSuspenseList=he,Ce.isValidElementType=E,Ce.typeOf=w}()),Ce}process.env.NODE_ENV==="production"?El.exports=kw():El.exports=Mw();var Ou=El.exports;function Rw(e){function t(T,z,H,Z,N){for(var j=0,_=0,Q=0,ne=0,ee,q,he=0,re=0,ce,$e=ce=ee=0,pe=0,Oe=0,de=0,ae=0,xe=H.length,Vt=xe-1,Je,se="",Pe="",ct="",Wt="",mt;pe<xe;){if(q=H.charCodeAt(pe),pe===Vt&&_+ne+Q+j!==0&&(_!==0&&(q=_===47?10:47),ne=Q=j=0,xe++,Vt++),_+ne+Q+j===0){if(pe===Vt&&(0<Oe&&(se=se.replace(p,"")),0<se.trim().length)){switch(q){case 32:case 9:case 59:case 13:case 10:break;default:se+=H.charAt(pe)}q=59}switch(q){case 123:for(se=se.trim(),ee=se.charCodeAt(0),ce=1,ae=++pe;pe<xe;){switch(q=H.charCodeAt(pe)){case 123:ce++;break;case 125:ce--;break;case 47:switch(q=H.charCodeAt(pe+1)){case 42:case 47:e:{for($e=pe+1;$e<Vt;++$e)switch(H.charCodeAt($e)){case 47:if(q===42&&H.charCodeAt($e-1)===42&&pe+2!==$e){pe=$e+1;break e}break;case 10:if(q===47){pe=$e+1;break e}}pe=$e}}break;case 91:q++;case 40:q++;case 34:case 39:for(;pe++<Vt&&H.charCodeAt(pe)!==q;);}if(ce===0)break;pe++}switch(ce=H.substring(ae,pe),ee===0&&(ee=(se=se.replace(f,"").trim()).charCodeAt(0)),ee){case 64:switch(0<Oe&&(se=se.replace(p,"")),q=se.charCodeAt(1),q){case 100:case 109:case 115:case 45:Oe=z;break;default:Oe=L}if(ce=t(z,Oe,ce,q,N+1),ae=ce.length,0<W&&(Oe=n(L,se,de),mt=s(3,ce,Oe,z,S,R,ae,q,N,Z),se=Oe.join(""),mt!==void 0&&(ae=(ce=mt.trim()).length)===0&&(q=0,ce="")),0<ae)switch(q){case 115:se=se.replace(A,a);case 100:case 109:case 45:ce=se+"{"+ce+"}";break;case 107:se=se.replace(C,"$1 $2"),ce=se+"{"+ce+"}",ce=K===1||K===2&&i("@"+ce,3)?"@-webkit-"+ce+"@"+ce:"@"+ce;break;default:ce=se+ce,Z===112&&(ce=(Pe+=ce,""))}else ce="";break;default:ce=t(z,n(z,se,de),ce,Z,N+1)}ct+=ce,ce=de=Oe=$e=ee=0,se="",q=H.charCodeAt(++pe);break;case 125:case 59:if(se=(0<Oe?se.replace(p,""):se).trim(),1<(ae=se.length))switch($e===0&&(ee=se.charCodeAt(0),ee===45||96<ee&&123>ee)&&(ae=(se=se.replace(" ",":")).length),0<W&&(mt=s(1,se,z,T,S,R,Pe.length,Z,N,Z))!==void 0&&(ae=(se=mt.trim()).length)===0&&(se="\0\0"),ee=se.charCodeAt(0),q=se.charCodeAt(1),ee){case 0:break;case 64:if(q===105||q===99){Wt+=se+H.charAt(pe);break}default:se.charCodeAt(ae-1)!==58&&(Pe+=o(se,ee,q,se.charCodeAt(2)))}de=Oe=$e=ee=0,se="",q=H.charCodeAt(++pe)}}switch(q){case 13:case 10:_===47?_=0:1+ee===0&&Z!==107&&0<se.length&&(Oe=1,se+="\0"),0<W*G&&s(0,se,z,T,S,R,Pe.length,Z,N,Z),R=1,S++;break;case 59:case 125:if(_+ne+Q+j===0){R++;break}default:switch(R++,Je=H.charAt(pe),q){case 9:case 32:if(ne+j+_===0)switch(he){case 44:case 58:case 9:case 32:Je="";break;default:q!==32&&(Je=" ")}break;case 0:Je="\\0";break;case 12:Je="\\f";break;case 11:Je="\\v";break;case 38:ne+_+j===0&&(Oe=de=1,Je="\f"+Je);break;case 108:if(ne+_+j+F===0&&0<$e)switch(pe-$e){case 2:he===112&&H.charCodeAt(pe-3)===58&&(F=he);case 8:re===111&&(F=re)}break;case 58:ne+_+j===0&&($e=pe);break;case 44:_+Q+ne+j===0&&(Oe=1,Je+="\r");break;case 34:case 39:_===0&&(ne=ne===q?0:ne===0?q:ne);break;case 91:ne+_+Q===0&&j++;break;case 93:ne+_+Q===0&&j--;break;case 41:ne+_+j===0&&Q--;break;case 40:if(ne+_+j===0){if(ee===0)switch(2*he+3*re){case 533:break;default:ee=1}Q++}break;case 64:_+Q+ne+j+$e+ce===0&&(ce=1);break;case 42:case 47:if(!(0<ne+j+Q))switch(_){case 0:switch(2*q+3*H.charCodeAt(pe+1)){case 235:_=47;break;case 220:ae=pe,_=42}break;case 42:q===47&&he===42&&ae+2!==pe&&(H.charCodeAt(ae+2)===33&&(Pe+=H.substring(ae,pe+1)),Je="",_=0)}}_===0&&(se+=Je)}re=he,he=q,pe++}if(ae=Pe.length,0<ae){if(Oe=z,0<W&&(mt=s(2,Pe,Oe,T,S,R,ae,Z,N,Z),mt!==void 0&&(Pe=mt).length===0))return Wt+Pe+ct;if(Pe=Oe.join(",")+"{"+Pe+"}",K*F!==0){switch(K!==2||i(Pe,2)||(F=0),F){case 111:Pe=Pe.replace(E,":-moz-$1")+Pe;break;case 112:Pe=Pe.replace(x,"::-webkit-input-$1")+Pe.replace(x,"::-moz-$1")+Pe.replace(x,":-ms-input-$1")+Pe}F=0}}return Wt+Pe+ct}function n(T,z,H){var Z=z.trim().split(v);z=Z;var N=Z.length,j=T.length;switch(j){case 0:case 1:var _=0;for(T=j===0?"":T[0]+" ";_<N;++_)z[_]=r(T,z[_],H).trim();break;default:var Q=_=0;for(z=[];_<N;++_)for(var ne=0;ne<j;++ne)z[Q++]=r(T[ne]+" ",Z[_],H).trim()}return z}function r(T,z,H){var Z=z.charCodeAt(0);switch(33>Z&&(Z=(z=z.trim()).charCodeAt(0)),Z){case 38:return z.replace($,"$1"+T.trim());case 58:return T.trim()+z.replace($,"$1"+T.trim());default:if(0<1*H&&0<z.indexOf("\f"))return z.replace($,(T.charCodeAt(0)===58?"":"$1")+T.trim())}return T+z}function o(T,z,H,Z){var N=T+";",j=2*z+3*H+4*Z;if(j===944){T=N.indexOf(":",9)+1;var _=N.substring(T,N.length-1).trim();return _=N.substring(0,T).trim()+_+";",K===1||K===2&&i(_,1)?"-webkit-"+_+_:_}if(K===0||K===2&&!i(N,1))return N;switch(j){case 1015:return N.charCodeAt(10)===97?"-webkit-"+N+N:N;case 951:return N.charCodeAt(3)===116?"-webkit-"+N+N:N;case 963:return N.charCodeAt(5)===110?"-webkit-"+N+N:N;case 1009:if(N.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+N+N;case 978:return"-webkit-"+N+"-moz-"+N+N;case 1019:case 983:return"-webkit-"+N+"-moz-"+N+"-ms-"+N+N;case 883:if(N.charCodeAt(8)===45)return"-webkit-"+N+N;if(0<N.indexOf("image-set(",11))return N.replace(k,"$1-webkit-$2")+N;break;case 932:if(N.charCodeAt(4)===45)switch(N.charCodeAt(5)){case 103:return"-webkit-box-"+N.replace("-grow","")+"-webkit-"+N+"-ms-"+N.replace("grow","positive")+N;case 115:return"-webkit-"+N+"-ms-"+N.replace("shrink","negative")+N;case 98:return"-webkit-"+N+"-ms-"+N.replace("basis","preferred-size")+N}return"-webkit-"+N+"-ms-"+N+N;case 964:return"-webkit-"+N+"-ms-flex-"+N+N;case 1023:if(N.charCodeAt(8)!==99)break;return _=N.substring(N.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+_+"-webkit-"+N+"-ms-flex-pack"+_+N;case 1005:return m.test(N)?N.replace(h,":-webkit-")+N.replace(h,":-moz-")+N:N;case 1e3:switch(_=N.substring(13).trim(),z=_.indexOf("-")+1,_.charCodeAt(0)+_.charCodeAt(z)){case 226:_=N.replace(w,"tb");break;case 232:_=N.replace(w,"tb-rl");break;case 220:_=N.replace(w,"lr");break;default:return N}return"-webkit-"+N+"-ms-"+_+N;case 1017:if(N.indexOf("sticky",9)===-1)break;case 975:switch(z=(N=T).length-10,_=(N.charCodeAt(z)===33?N.substring(0,z):N).substring(T.indexOf(":",7)+1).trim(),j=_.charCodeAt(0)+(_.charCodeAt(7)|0)){case 203:if(111>_.charCodeAt(8))break;case 115:N=N.replace(_,"-webkit-"+_)+";"+N;break;case 207:case 102:N=N.replace(_,"-webkit-"+(102<j?"inline-":"")+"box")+";"+N.replace(_,"-webkit-"+_)+";"+N.replace(_,"-ms-"+_+"box")+";"+N}return N+";";case 938:if(N.charCodeAt(5)===45)switch(N.charCodeAt(6)){case 105:return _=N.replace("-items",""),"-webkit-"+N+"-webkit-box-"+_+"-ms-flex-"+_+N;case 115:return"-webkit-"+N+"-ms-flex-item-"+N.replace(y,"")+N;default:return"-webkit-"+N+"-ms-flex-line-pack"+N.replace("align-content","").replace(y,"")+N}break;case 973:case 989:if(N.charCodeAt(3)!==45||N.charCodeAt(4)===122)break;case 931:case 953:if(M.test(T)===!0)return(_=T.substring(T.indexOf(":")+1)).charCodeAt(0)===115?o(T.replace("stretch","fill-available"),z,H,Z).replace(":fill-available",":stretch"):N.replace(_,"-webkit-"+_)+N.replace(_,"-moz-"+_.replace("fill-",""))+N;break;case 962:if(N="-webkit-"+N+(N.charCodeAt(5)===102?"-ms-"+N:"")+N,H+Z===211&&N.charCodeAt(13)===105&&0<N.indexOf("transform",10))return N.substring(0,N.indexOf(";",27)+1).replace(b,"$1-webkit-$2")+N}return N}function i(T,z){var H=T.indexOf(z===1?":":"{"),Z=T.substring(0,z!==3?H:10);return H=T.substring(H+1,T.length-1),J(z!==2?Z:Z.replace(I,"$1"),H,z)}function a(T,z){var H=o(z,z.charCodeAt(0),z.charCodeAt(1),z.charCodeAt(2));return H!==z+";"?H.replace(V," or ($1)").substring(4):"("+z+")"}function s(T,z,H,Z,N,j,_,Q,ne,ee){for(var q=0,he=z,re;q<W;++q)switch(re=P[q].call(d,T,he,H,Z,N,j,_,Q,ne,ee)){case void 0:case!1:case!0:case null:break;default:he=re}if(he!==z)return he}function l(T){switch(T){case void 0:case null:W=P.length=0;break;default:if(typeof T=="function")P[W++]=T;else if(typeof T=="object")for(var z=0,H=T.length;z<H;++z)l(T[z]);else G=!!T|0}return l}function c(T){return T=T.prefix,T!==void 0&&(J=null,T?typeof T!="function"?K=1:(K=2,J=T):K=0),c}function d(T,z){var H=T;if(33>H.charCodeAt(0)&&(H=H.trim()),D=H,H=[D],0<W){var Z=s(-1,z,H,H,S,R,0,0,0,0);Z!==void 0&&typeof Z=="string"&&(z=Z)}var N=t(L,H,z,0,0);return 0<W&&(Z=s(-2,N,H,H,S,R,N.length,0,0,0),Z!==void 0&&(N=Z)),D="",F=0,R=S=1,N}var f=/^\0+/g,p=/[\0\r\f]/g,h=/: */g,m=/zoo|gra/,b=/([,: ])(transform)/g,v=/,\r+?/g,$=/([\t\r\n ])*\f?&/g,C=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,E=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,A=/\(\s*(.*)\s*\)/g,V=/([\s\S]*?);/g,y=/-self|flex-/g,I=/[^]*?(:[rp][el]a[\w-]+)[^]*/,M=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,R=1,S=1,F=0,K=1,L=[],P=[],W=0,J=null,G=0,D="";return d.use=l,d.set=c,e!==void 0&&c(e),d}var Fw={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Bw(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Iw=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$f=Bw(function(e){return Iw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Dl={exports:{}},Ee={};/** @license React v16.13.1
56
+ * react-is.production.min.js
57
+ *
58
+ * Copyright (c) Facebook, Inc. and its affiliates.
59
+ *
60
+ * This source code is licensed under the MIT license found in the
61
+ * LICENSE file in the root directory of this source tree.
62
+ */var xf;function Ow(){if(xf)return Ee;xf=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function x(w){if(typeof w=="object"&&w!==null){var A=w.$$typeof;switch(A){case t:switch(w=w.type,w){case l:case c:case r:case i:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case s:case d:case m:case h:case a:return w;default:return A}}case n:return A}}}function E(w){return x(w)===c}return Ee.AsyncMode=l,Ee.ConcurrentMode=c,Ee.ContextConsumer=s,Ee.ContextProvider=a,Ee.Element=t,Ee.ForwardRef=d,Ee.Fragment=r,Ee.Lazy=m,Ee.Memo=h,Ee.Portal=n,Ee.Profiler=i,Ee.StrictMode=o,Ee.Suspense=f,Ee.isAsyncMode=function(w){return E(w)||x(w)===l},Ee.isConcurrentMode=E,Ee.isContextConsumer=function(w){return x(w)===s},Ee.isContextProvider=function(w){return x(w)===a},Ee.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ee.isForwardRef=function(w){return x(w)===d},Ee.isFragment=function(w){return x(w)===r},Ee.isLazy=function(w){return x(w)===m},Ee.isMemo=function(w){return x(w)===h},Ee.isPortal=function(w){return x(w)===n},Ee.isProfiler=function(w){return x(w)===i},Ee.isStrictMode=function(w){return x(w)===o},Ee.isSuspense=function(w){return x(w)===f},Ee.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===i||w===o||w===f||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===h||w.$$typeof===a||w.$$typeof===s||w.$$typeof===d||w.$$typeof===v||w.$$typeof===$||w.$$typeof===C||w.$$typeof===b)},Ee.typeOf=x,Ee}var De={};/** @license React v16.13.1
63
+ * react-is.development.js
64
+ *
65
+ * Copyright (c) Facebook, Inc. and its affiliates.
66
+ *
67
+ * This source code is licensed under the MIT license found in the
68
+ * LICENSE file in the root directory of this source tree.
69
+ */var wf;function Lw(){return wf||(wf=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function x(q){return typeof q=="string"||typeof q=="function"||q===r||q===c||q===i||q===o||q===f||q===p||typeof q=="object"&&q!==null&&(q.$$typeof===m||q.$$typeof===h||q.$$typeof===a||q.$$typeof===s||q.$$typeof===d||q.$$typeof===v||q.$$typeof===$||q.$$typeof===C||q.$$typeof===b)}function E(q){if(typeof q=="object"&&q!==null){var he=q.$$typeof;switch(he){case t:var re=q.type;switch(re){case l:case c:case r:case i:case o:case f:return re;default:var ce=re&&re.$$typeof;switch(ce){case s:case d:case m:case h:case a:return ce;default:return he}}case n:return he}}}var w=l,A=c,V=s,y=a,I=t,M=d,k=r,R=m,S=h,F=n,K=i,L=o,P=f,W=!1;function J(q){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(q)||E(q)===l}function G(q){return E(q)===c}function D(q){return E(q)===s}function T(q){return E(q)===a}function z(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function H(q){return E(q)===d}function Z(q){return E(q)===r}function N(q){return E(q)===m}function j(q){return E(q)===h}function _(q){return E(q)===n}function Q(q){return E(q)===i}function ne(q){return E(q)===o}function ee(q){return E(q)===f}De.AsyncMode=w,De.ConcurrentMode=A,De.ContextConsumer=V,De.ContextProvider=y,De.Element=I,De.ForwardRef=M,De.Fragment=k,De.Lazy=R,De.Memo=S,De.Portal=F,De.Profiler=K,De.StrictMode=L,De.Suspense=P,De.isAsyncMode=J,De.isConcurrentMode=G,De.isContextConsumer=D,De.isContextProvider=T,De.isElement=z,De.isForwardRef=H,De.isFragment=Z,De.isLazy=N,De.isMemo=j,De.isPortal=_,De.isProfiler=Q,De.isStrictMode=ne,De.isSuspense=ee,De.isValidElementType=x,De.typeOf=E}()),De}process.env.NODE_ENV==="production"?Dl.exports=Ow():Dl.exports=Lw();var Vw=Dl.exports,Lu=Vw,Nw={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_w={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Kw={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},D0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Vu={};Vu[Lu.ForwardRef]=Kw;Vu[Lu.Memo]=D0;function Cf(e){return Lu.isMemo(e)?D0:Vu[e.$$typeof]||Nw}var jw=Object.defineProperty,zw=Object.getOwnPropertyNames,Ef=Object.getOwnPropertySymbols,Uw=Object.getOwnPropertyDescriptor,Hw=Object.getPrototypeOf,Df=Object.prototype;function P0(e,t,n){if(typeof t!="string"){if(Df){var r=Hw(t);r&&r!==Df&&P0(e,r,n)}var o=zw(t);Ef&&(o=o.concat(Ef(t)));for(var i=Cf(e),a=Cf(t),s=0;s<o.length;++s){var l=o[s];if(!_w[l]&&!(n&&n[l])&&!(a&&a[l])&&!(i&&i[l])){var c=Uw(t,l);try{jw(e,l,c)}catch{}}}}return e}var Gw=P0;const Ww=Ix(Gw);function zt(){return(zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Pf=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},Pl=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!Ou.typeOf(e)},aa=Object.freeze([]),$n=Object.freeze({});function wo(e){return typeof e=="function"}function Sl(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Nu(e){return e&&typeof e.styledComponentId=="string"}var Er=typeof process<"u"&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",_u=typeof window<"u"&&"HTMLElement"in window,Yw=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),qw={},Zw=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
70
+
71
+ `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
72
+
73
+ - Are you trying to reuse it across renders?
74
+ - Are you accidentally calling collectStyles twice?
75
+
76
+ `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
77
+
78
+ `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
79
+
80
+ - Does this error occur on the client and is your target falsy?
81
+ - Does this error occur on the server and is the sheet falsy?
82
+
83
+ `,5:`The clone method cannot be used on the client!
84
+
85
+ - Are you running in a client-like environment on the server?
86
+ - Are you trying to run SSR on the client?
87
+
88
+ `,6:`Trying to insert a new style tag, but the given Node is unmounted!
89
+
90
+ - Are you using a custom target that isn't mounted?
91
+ - Does your document not have a valid head element?
92
+ - Have you accidentally removed a style tag manually?
93
+
94
+ `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
95
+
96
+ `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
97
+
98
+ `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
99
+
100
+ `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
101
+
102
+ `,14:`ThemeProvider: "theme" prop is required.
103
+
104
+ `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
105
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
106
+ as for instance in your render method then you may be running into this limitation.
107
+
108
+ `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
109
+ Has styled-components' style tag been unmounted or altered by another script?
110
+ `}:{};function Xw(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(o){e=e.replace(/%[a-z]/,o)}),e}function Br(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw process.env.NODE_ENV==="production"?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(Xw.apply(void 0,[Zw[e]].concat(n)).trim())}var Jw=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,o=0;o<n;o++)r+=this.groupSizes[o];return r},t.insertRules=function(n,r){if(n>=this.groupSizes.length){for(var o=this.groupSizes,i=o.length,a=i;n>=a;)(a<<=1)<0&&Br(16,""+n);this.groupSizes=new Uint32Array(a),this.groupSizes.set(o),this.length=a;for(var s=i;s<a;s++)this.groupSizes[s]=0}for(var l=this.indexOfGroup(n+1),c=0,d=r.length;c<d;c++)this.tag.insertRule(l,r[c])&&(this.groupSizes[n]++,l++)},t.clearGroup=function(n){if(n<this.length){var r=this.groupSizes[n],o=this.indexOfGroup(n),i=o+r;this.groupSizes[n]=0;for(var a=o;a<i;a++)this.tag.deleteRule(o)}},t.getGroup=function(n){var r="";if(n>=this.length||this.groupSizes[n]===0)return r;for(var o=this.groupSizes[n],i=this.indexOfGroup(n),a=i+o,s=i;s<a;s++)r+=this.tag.getRule(s)+`/*!sc*/
111
+ `;return r},e}(),Ri=new Map,sa=new Map,lo=1,bi=function(e){if(Ri.has(e))return Ri.get(e);for(;sa.has(lo);)lo++;var t=lo++;return process.env.NODE_ENV!=="production"&&((0|t)<0||t>1<<30)&&Br(16,""+t),Ri.set(e,t),sa.set(t,e),t},Qw=function(e){return sa.get(e)},eC=function(e,t){t>=lo&&(lo=t+1),Ri.set(e,t),sa.set(t,e)},tC="style["+Er+'][data-styled-version="5.3.6"]',nC=new RegExp("^"+Er+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),rC=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},oC=function(e,t){for(var n=(t.textContent||"").split(`/*!sc*/
112
+ `),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(nC);if(s){var l=0|parseInt(s[1],10),c=s[2];l!==0&&(eC(c,l),rC(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},iC=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},S0=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(s){for(var l=s.childNodes,c=l.length;c>=0;c--){var d=l[c];if(d&&d.nodeType===1&&d.hasAttribute(Er))return d}}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(Er,"active"),r.setAttribute("data-styled-version","5.3.6");var a=iC();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},aC=function(){function e(n){var r=this.element=S0(n);r.appendChild(document.createTextNode("")),this.sheet=function(o){if(o.sheet)return o.sheet;for(var i=document.styleSheets,a=0,s=i.length;a<s;a++){var l=i[a];if(l.ownerNode===o)return l}Br(17)}(r),this.length=0}var t=e.prototype;return t.insertRule=function(n,r){try{return this.sheet.insertRule(r,n),this.length++,!0}catch{return!1}},t.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},t.getRule=function(n){var r=this.sheet.cssRules[n];return r!==void 0&&typeof r.cssText=="string"?r.cssText:""},e}(),sC=function(){function e(n){var r=this.element=S0(n);this.nodes=r.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(n,r){if(n<=this.length&&n>=0){var o=document.createTextNode(r),i=this.nodes[n];return this.element.insertBefore(o,i||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},e}(),lC=function(){function e(n){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(n,r){return n<=this.length&&(this.rules.splice(n,0,r),this.length++,!0)},t.deleteRule=function(n){this.rules.splice(n,1),this.length--},t.getRule=function(n){return n<this.length?this.rules[n]:""},e}(),Sf=_u,uC={isServer:!_u,useCSSOMInjection:!Yw},la=function(){function e(n,r,o){n===void 0&&(n=$n),r===void 0&&(r={}),this.options=zt({},uC,{},n),this.gs=r,this.names=new Map(o),this.server=!!n.isServer,!this.server&&_u&&Sf&&(Sf=!1,function(i){for(var a=document.querySelectorAll(tC),s=0,l=a.length;s<l;s++){var c=a[s];c&&c.getAttribute(Er)!=="active"&&(oC(i,c),c.parentNode&&c.parentNode.removeChild(c))}}(this))}e.registerId=function(n){return bi(n)};var t=e.prototype;return t.reconstructWithOptions=function(n,r){return r===void 0&&(r=!0),new e(zt({},this.options,{},n),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},t.getTag=function(){return this.tag||(this.tag=(o=(r=this.options).isServer,i=r.useCSSOMInjection,a=r.target,n=o?new lC(a):i?new aC(a):new sC(a),new Jw(n)));var n,r,o,i,a},t.hasNameForId=function(n,r){return this.names.has(n)&&this.names.get(n).has(r)},t.registerName=function(n,r){if(bi(n),this.names.has(n))this.names.get(n).add(r);else{var o=new Set;o.add(r),this.names.set(n,o)}},t.insertRules=function(n,r,o){this.registerName(n,r),this.getTag().insertRules(bi(n),o)},t.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},t.clearRules=function(n){this.getTag().clearGroup(bi(n)),this.clearNames(n)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(n){for(var r=n.getTag(),o=r.length,i="",a=0;a<o;a++){var s=Qw(a);if(s!==void 0){var l=n.names.get(s),c=r.getGroup(a);if(l&&c&&l.size){var d=Er+".g"+a+'[id="'+s+'"]',f="";l!==void 0&&l.forEach(function(p){p.length>0&&(f+=p+",")}),i+=""+c+d+'{content:"'+f+`"}/*!sc*/
113
+ `}}}return i}(this)},e}(),cC=/(a)(d)/gi,Tf=function(e){return String.fromCharCode(e+(e>25?39:97))};function Tl(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Tf(t%52)+n;return(Tf(t%52)+n).replace(cC,"$1-$2")}var In=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},T0=function(e){return In(5381,e)};function A0(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(wo(n)&&!Nu(n))return!1}return!0}var dC=T0("5.3.6"),fC=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&A0(t),this.componentId=n,this.baseHash=In(dC,n),this.baseStyle=r,la.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(t,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(o,this.staticRulesId))i.push(this.staticRulesId);else{var a=Wn(this.rules,t,n,r).join(""),s=Tl(In(this.baseHash,a)>>>0);if(!n.hasNameForId(o,s)){var l=r(a,"."+s,void 0,o);n.insertRules(o,s,l)}i.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,d=In(this.baseHash,r.hash),f="",p=0;p<c;p++){var h=this.rules[p];if(typeof h=="string")f+=h,process.env.NODE_ENV!=="production"&&(d=In(d,h+p));else if(h){var m=Wn(h,t,n,r),b=Array.isArray(m)?m.join(""):m;d=In(d,b+p),f+=b}}if(f){var v=Tl(d>>>0);if(!n.hasNameForId(o,v)){var $=r(f,"."+v,void 0,o);n.insertRules(o,v,$)}i.push(v)}}return i.join(" ")},e}(),pC=/^\s*\/\/.*$/gm,hC=[":","[",".","#"];function mC(e){var t,n,r,o,i=e===void 0?$n:e,a=i.options,s=a===void 0?$n:a,l=i.plugins,c=l===void 0?aa:l,d=new Rw(s),f=[],p=function(b){function v($){if($)try{b($+"}")}catch{}}return function($,C,x,E,w,A,V,y,I,M){switch($){case 1:if(I===0&&C.charCodeAt(0)===64)return b(C+";"),"";break;case 2:if(y===0)return C+"/*|*/";break;case 3:switch(y){case 102:case 112:return b(x[0]+C),"";default:return C+(M===0?"/*|*/":"")}case-2:C.split("/*|*/}").forEach(v)}}}(function(b){f.push(b)}),h=function(b,v,$){return v===0&&hC.indexOf($[n.length])!==-1||$.match(o)?b:"."+t};function m(b,v,$,C){C===void 0&&(C="&");var x=b.replace(pC,""),E=v&&$?$+" "+v+" { "+x+" }":x;return t=C,n=v,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d($||!v?"":v,E)}return d.use([].concat(c,[function(b,v,$){b===2&&$.length&&$[0].lastIndexOf(n)>0&&($[0]=$[0].replace(r,h))},p,function(b){if(b===-2){var v=f;return f=[],v}}])),m.hash=c.length?c.reduce(function(b,v){return v.name||Br(15),In(b,v.name)},5381).toString():"",m}var k0=u.createContext();k0.Consumer;var M0=u.createContext(),bC=(M0.Consumer,new la),Al=mC();function R0(){return u.useContext(k0)||bC}function F0(){return u.useContext(M0)||Al}var B0=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=Al);var a=r.name+i.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,i(r.rules,a,"@keyframes"))},this.toString=function(){return Br(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Al),this.name+t.hash},e}(),vC=/([A-Z])/,gC=/([A-Z])/g,yC=/^ms-/,$C=function(e){return"-"+e.toLowerCase()};function Af(e){return vC.test(e)?e.replace(gC,$C).replace(yC,"-ms-"):e}var kf=function(e){return e==null||e===!1||e===""};function Wn(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)(o=Wn(e[a],t,n,r))!==""&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}if(kf(e))return"";if(Nu(e))return"."+e.styledComponentId;if(wo(e)){if(typeof(c=e)!="function"||c.prototype&&c.prototype.isReactComponent||!t)return e;var l=e(t);return process.env.NODE_ENV!=="production"&&Ou.isElement(l)&&console.warn(Sl(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Wn(l,t,n,r)}var c;return e instanceof B0?n?(e.inject(n,r),e.getName(r)):e:Pl(e)?function d(f,p){var h,m,b=[];for(var v in f)f.hasOwnProperty(v)&&!kf(f[v])&&(Array.isArray(f[v])&&f[v].isCss||wo(f[v])?b.push(Af(v)+":",f[v],";"):Pl(f[v])?b.push.apply(b,d(f[v],v)):b.push(Af(v)+": "+(h=v,(m=f[v])==null||typeof m=="boolean"||m===""?"":typeof m!="number"||m===0||h in Fw?String(m).trim():m+"px")+";"));return p?[p+" {"].concat(b,["}"]):b}(e):e.toString()}var Mf=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Pt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return wo(e)||Pl(e)?Mf(Wn(Pf(aa,[e].concat(n)))):n.length===0&&e.length===1&&typeof e[0]=="string"?e:Mf(Wn(Pf(e,n)))}var Rf=/invalid hook call/i,vi=new Set,I0=function(e,t){if(process.env.NODE_ENV!=="production"){var n="The component "+e+(t?' with the id of "'+t+'"':"")+` has been created dynamically.
114
+ You may see this warning because you've called styled inside another component.
115
+ To resolve this only create new StyledComponents outside of any render method and function component.`,r=console.error;try{var o=!0;console.error=function(i){if(Rf.test(i))o=!1,vi.delete(n);else{for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];r.apply(void 0,[i].concat(s))}},u.useRef(),o&&!vi.has(n)&&(console.warn(n),vi.add(n))}catch(i){Rf.test(i.message)&&vi.delete(n)}finally{console.error=r}}},O0=function(e,t,n){return n===void 0&&(n=$n),e.theme!==n.theme&&e.theme||t||n.theme},xC=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,wC=/(^-|-$)/g;function ks(e){return e.replace(xC,"-").replace(wC,"")}var Ku=function(e){return Tl(T0(e)>>>0)};function gi(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var kl=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},CC=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function EC(e,t,n){var r=e[n];kl(t)&&kl(r)?L0(r,t):e[n]=t}function L0(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(kl(a))for(var s in a)CC(s)&&EC(e,a[s],s)}return e}var ju=u.createContext();ju.Consumer;var Ms={};function V0(e,t,n){var r=Nu(e),o=!gi(e),i=t.attrs,a=i===void 0?aa:i,s=t.componentId,l=s===void 0?function(C,x){var E=typeof C!="string"?"sc":ks(C);Ms[E]=(Ms[E]||0)+1;var w=E+"-"+Ku("5.3.6"+E+Ms[E]);return x?x+"-"+w:w}(t.displayName,t.parentComponentId):s,c=t.displayName,d=c===void 0?function(C){return gi(C)?"styled."+C:"Styled("+Sl(C)+")"}(e):c,f=t.displayName&&t.componentId?ks(t.displayName)+"-"+t.componentId:t.componentId||l,p=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,h=t.shouldForwardProp;r&&e.shouldForwardProp&&(h=t.shouldForwardProp?function(C,x,E){return e.shouldForwardProp(C,x,E)&&t.shouldForwardProp(C,x,E)}:e.shouldForwardProp);var m,b=new fC(n,f,r?e.componentStyle:void 0),v=b.isStatic&&a.length===0,$=function(C,x){return function(E,w,A,V){var y=E.attrs,I=E.componentStyle,M=E.defaultProps,k=E.foldedComponentIds,R=E.shouldForwardProp,S=E.styledComponentId,F=E.target;process.env.NODE_ENV!=="production"&&u.useDebugValue(S);var K=function(Z,N,j){Z===void 0&&(Z=$n);var _=zt({},N,{theme:Z}),Q={};return j.forEach(function(ne){var ee,q,he,re=ne;for(ee in wo(re)&&(re=re(_)),re)_[ee]=Q[ee]=ee==="className"?(q=Q[ee],he=re[ee],q&&he?q+" "+he:q||he):re[ee]}),[_,Q]}(O0(w,u.useContext(ju),M)||$n,w,y),L=K[0],P=K[1],W=function(Z,N,j,_){var Q=R0(),ne=F0(),ee=N?Z.generateAndInjectStyles($n,Q,ne):Z.generateAndInjectStyles(j,Q,ne);return process.env.NODE_ENV!=="production"&&u.useDebugValue(ee),process.env.NODE_ENV!=="production"&&!N&&_&&_(ee),ee}(I,V,L,process.env.NODE_ENV!=="production"?E.warnTooManyClasses:void 0),J=A,G=P.$as||w.$as||P.as||w.as||F,D=gi(G),T=P!==w?zt({},w,{},P):w,z={};for(var H in T)H[0]!=="$"&&H!=="as"&&(H==="forwardedAs"?z.as=T[H]:(R?R(H,$f,G):!D||$f(H))&&(z[H]=T[H]));return w.style&&P.style!==w.style&&(z.style=zt({},w.style,{},P.style)),z.className=Array.prototype.concat(k,S,W!==S?W:null,w.className,P.className).filter(Boolean).join(" "),z.ref=J,u.createElement(G,z)}(m,C,x,v)};return $.displayName=d,(m=u.forwardRef($)).attrs=p,m.componentStyle=b,m.displayName=d,m.shouldForwardProp=h,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):aa,m.styledComponentId=f,m.target=r?e.target:e,m.withComponent=function(C){var x=t.componentId,E=function(A,V){if(A==null)return{};var y,I,M={},k=Object.keys(A);for(I=0;I<k.length;I++)y=k[I],V.indexOf(y)>=0||(M[y]=A[y]);return M}(t,["componentId"]),w=x&&x+"-"+(gi(C)?C:ks(Sl(C)));return V0(C,zt({},E,{attrs:p,componentId:w}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=r?L0({},e.defaultProps,C):C}}),process.env.NODE_ENV!=="production"&&(I0(d,f),m.warnTooManyClasses=function(C,x){var E={},w=!1;return function(A){if(!w&&(E[A]=!0,Object.keys(E).length>=200)){var V=x?' with the id of "'+x+'"':"";console.warn("Over 200 classes were generated for component "+C+V+`.
116
+ Consider using the attrs method, together with a style object for frequently changed styles.
117
+ Example:
118
+ const Component = styled.div.attrs(props => ({
119
+ style: {
120
+ background: props.background,
121
+ },
122
+ }))\`width: 100%;\`
123
+
124
+ <Component />`),w=!0,E={}}}}(d,f)),m.toString=function(){return"."+m.styledComponentId},o&&Ww(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var Ml=function(e){return function t(n,r,o){if(o===void 0&&(o=$n),!Ou.isValidElementType(r))return Br(1,String(r));var i=function(){return n(r,o,Pt.apply(void 0,arguments))};return i.withConfig=function(a){return t(n,r,zt({},o,{},a))},i.attrs=function(a){return t(n,r,zt({},o,{attrs:Array.prototype.concat(o.attrs,a).filter(Boolean)}))},i}(V0,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Ml[e]=Ml(e)});var DC=function(){function e(n,r){this.rules=n,this.componentId=r,this.isStatic=A0(n),la.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(n,r,o,i){var a=i(Wn(this.rules,r,o,i).join(""),""),s=this.componentId+n;o.insertRules(s,s,a)},t.removeStyles=function(n,r){r.clearRules(this.componentId+n)},t.renderStyles=function(n,r,o,i){n>2&&la.registerId(this.componentId+n),this.removeStyles(n,o),this.createStyles(n,r,o,i)},e}();function N0(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Pt.apply(void 0,[e].concat(n)),i="sc-global-"+Ku(JSON.stringify(o)),a=new DC(o,i);function s(c){var d=R0(),f=F0(),p=u.useContext(ju),h=u.useRef(d.allocateGSInstance(i)).current;return process.env.NODE_ENV!=="production"&&u.Children.count(c.children)&&console.warn("The global style component "+i+" was given child JSX. createGlobalStyle does not render children."),process.env.NODE_ENV!=="production"&&o.some(function(m){return typeof m=="string"&&m.indexOf("@import")!==-1})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),d.server&&l(h,c,d,p,f),u.useLayoutEffect(function(){if(!d.server)return l(h,c,d,p,f),function(){return a.removeStyles(h,d)}},[h,c,d,p,f]),null}function l(c,d,f,p,h){if(a.isStatic)a.renderStyles(c,qw,f,h);else{var m=zt({},d,{theme:O0(d,p,s.defaultProps)});a.renderStyles(c,m,f,h)}}return process.env.NODE_ENV!=="production"&&I0(i),u.memo(s)}function rt(e){process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Pt.apply(void 0,[e].concat(n)).join(""),i=Ku(o);return new B0(i,o)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
125
+ Perhaps you're looking to import 'styled-components/native'?
126
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,window["__styled-components-init__"]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
127
+
128
+ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);const X=Ml,PC=X.div`
129
+ z-index: 1;
130
+
131
+ &:not(:first-child) {
132
+ margin-inline-start: ${({isInGroup:e,isGrid:t})=>t||!e?0:"-0.5rem"};
133
+ }
134
+
135
+ &:hover {
136
+ & > * {
137
+ transform: ${({isInGroup:e,isGrid:t})=>!t&&e?"translateY(-0.8rem)":"none"};
138
+ }
139
+ }
140
+ `,SC=X(C0)`
141
+ background: ${({theme:e})=>{var t,n;return(n=(t=e.colors)==null?void 0:t.slate)==null?void 0:n[100]}};
142
+ display: flex;
143
+ align-items: center;
144
+ justify-content: center;
145
+ position: relative;
146
+ z-index: 1;
147
+ overflow: hidden;
148
+ transition: 0.25s transform ease;
149
+ opacity: ${({isDisabled:e})=>e?.5:1};
150
+
151
+ ${({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}`}};
152
+
153
+ box-shadow: ${({isBordered:e,theme:t})=>{var n,r,o;return e?`${(n=t.colors)==null?void 0:n.white} 0px 0px 0px 2px, ${(o=(r=t.colors)==null?void 0:r.slate)==null?void 0:o[100]} 0px 0px 0px 4px, rgba(0, 0, 0, 0) 0px 0px 0px 0px`:"none"}};
154
+
155
+ border-radius: ${({radius:e})=>{const t={full:"9999px",lg:"14px",md:"12px",sm:"8px",none:"0"};return e&&t[e]?t[e]:t.full}};
156
+
157
+ img {
158
+ opacity: 0;
159
+ position: absolute;
160
+ width: 100%;
161
+ height: 100%;
162
+ overflow: hidden;
163
+ object-fit: cover;
164
+ object-position: center;
165
+ transition: 0.5s easy;
166
+ transition-property: opacity;
167
+
168
+ &[data-loaded='true'] {
169
+ opacity: 1;
170
+ }
171
+ }
172
+
173
+ span,
174
+ div {
175
+ display: flex;
176
+ align-items: center;
177
+ justify-content: center;
178
+ position: absolute;
179
+ top: 50%;
180
+ left: 50%;
181
+ transform: translate(-50%, -50%);
182
+ font-size: 0.75rem;
183
+ max-width: 100%;
184
+ overflow: hidden;
185
+ text-align: center;
186
+ }
187
+ `;function TC({icon:e,...t}){const n=yh();return O.jsx(PC,{isInGroup:!!n,isGrid:!!(n!=null&&n.isGrid),children:O.jsx(SC,{...t,icon:e||O.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M20 21C20 19.6044 20 18.9067 19.8278 18.3389C19.44 17.0605 18.4395 16.06 17.1611 15.6722C16.5933 15.5 15.8956 15.5 14.5 15.5H9.5C8.10444 15.5 7.40665 15.5 6.83886 15.6722C5.56045 16.06 4.56004 17.0605 4.17224 18.3389C4 18.9067 4 19.6044 4 21M16.5 7.5C16.5 9.98528 14.4853 12 12 12C9.51472 12 7.5 9.98528 7.5 7.5C7.5 5.01472 9.51472 3 12 3C14.4853 3 16.5 5.01472 16.5 7.5Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}const AC=X(Aw)`
188
+ display: ${({isGrid:e})=>e?"inline-grid":"flex"};
189
+ grid-template-columns: repeat(4, minmax(0, 1fr));
190
+ align-items: center;
191
+ gap: ${({isGrid:e})=>e?"0.75rem":"0"};
192
+ `;function kC({children:e,isGrid:t,renderCount:n}){return O.jsx(AC,{isGrid:t,max:0,renderCount:n??(()=>{}),children:e})}const _0=u.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ma=u.createContext({}),Ra=u.createContext(null),Fa=typeof document<"u",zu=Fa?u.useLayoutEffect:u.useEffect,K0=u.createContext({strict:!1}),Uu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),MC="framerAppearId",j0="data-"+Uu(MC),z0={skipAnimations:!1,useManualTiming:!1};class Ff{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function RC(e){let t=new Ff,n=new Ff,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,c=!1,d=!1)=>{const f=d&&o,p=f?t:n;return c&&a.add(l),p.add(l)&&f&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let c=0;c<r;c++){const d=t.order[c];a.has(d)&&(s.schedule(d),e()),d(l)}o=!1,i&&(i=!1,s.process(l))}};return s}const yi=["prepare","read","update","preRender","render","postRender"],FC=40;function U0(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=yi.reduce((f,p)=>(f[p]=RC(()=>n=!0),f),{}),a=f=>{i[f].process(o)},s=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,FC),1),o.timestamp=f,o.isProcessing=!0,yi.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:yi.reduce((f,p)=>{const h=i[p];return f[p]=(m,b=!1,v=!1)=>(n||l(),h.schedule(m,b,v)),f},{}),cancel:f=>yi.forEach(p=>i[p].cancel(f)),state:o,steps:i}}const{schedule:Hu,cancel:xM}=U0(queueMicrotask,!1);function BC(e,t,n,r){const{visualElement:o}=u.useContext(Ma),i=u.useContext(K0),a=u.useContext(Ra),s=u.useContext(_0).reducedMotion,l=u.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const c=l.current;u.useInsertionEffect(()=>{c&&c.update(n,a)});const d=u.useRef(!!(n[j0]&&!window.HandoffComplete));return zu(()=>{c&&(Hu.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())}),u.useEffect(()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),c}function mr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function IC(e,t,n){return u.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):mr(n)&&(n.current=r))},[t])}function Co(e){return typeof e=="string"||Array.isArray(e)}function Ba(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Gu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wu=["initial",...Gu];function Ia(e){return Ba(e.animate)||Wu.some(t=>Co(e[t]))}function H0(e){return!!(Ia(e)||e.variants)}function OC(e,t){if(Ia(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Co(n)?n:void 0,animate:Co(r)?r:void 0}}return e.inherit!==!1?t:{}}function LC(e){const{initial:t,animate:n}=OC(e,u.useContext(Ma));return u.useMemo(()=>({initial:t,animate:n}),[Bf(t),Bf(n)])}function Bf(e){return Array.isArray(e)?e.join(" "):e}const If={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Eo={};for(const e in If)Eo[e]={isEnabled:t=>If[e].some(n=>!!t[n])};function VC(e){for(const t in e)Eo[t]={...Eo[t],...e[t]}}const Yu=u.createContext({}),G0=u.createContext({}),NC=Symbol.for("motionComponentSymbol");function _C({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&VC(e);function i(s,l){let c;const d={...u.useContext(_0),...s,layoutId:KC(s)},{isStatic:f}=d,p=LC(s),h=r(s,f);if(!f&&Fa){p.visualElement=BC(o,h,d,t);const m=u.useContext(G0),b=u.useContext(K0).strict;p.visualElement&&(c=p.visualElement.loadFeatures(d,b,e,m))}return We.createElement(Ma.Provider,{value:p},c&&p.visualElement?We.createElement(c,{visualElement:p.visualElement,...d}):null,n(o,s,IC(h,p.visualElement,l),h,f,p.visualElement))}const a=u.forwardRef(i);return a[NC]=o,a}function KC({layoutId:e}){const t=u.useContext(Yu).id;return t&&e!==void 0?t+"-"+e:e}function jC(e){function t(r,o={}){return _C(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const zC=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function qu(e){return typeof e!="string"||e.includes("-")?!1:!!(zC.indexOf(e)>-1||/[A-Z]/.test(e))}const ua={};function UC(e){Object.assign(ua,e)}const Bo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xn=new Set(Bo);function W0(e,{layout:t,layoutId:n}){return Xn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ua[e]||e==="opacity")}const ht=e=>!!(e&&e.getVelocity),HC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GC=Bo.length;function WC(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<GC;a++){const s=Bo[a];if(e[s]!==void 0){const l=HC[s]||s;i+=`${l}(${e[s]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const Y0=e=>t=>typeof t=="string"&&t.startsWith(e),q0=Y0("--"),YC=Y0("var(--"),ca=e=>YC(e)&&qC.test(e),qC=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,ZC=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Dn=(e,t,n)=>n>t?t:n<e?e:n,Ir={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},uo={...Ir,transform:e=>Dn(0,1,e)},$i={...Ir,default:1},co=e=>Math.round(e*1e5)/1e5,Zu=/(-)?([\d]*\.?[\d])+/g,XC=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,JC=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Io(e){return typeof e=="string"}const Oo=e=>({test:t=>Io(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),mn=Oo("deg"),Ut=Oo("%"),ue=Oo("px"),QC=Oo("vh"),eE=Oo("vw"),Of={...Ut,parse:e=>Ut.parse(e)/100,transform:e=>Ut.transform(e*100)},Lf={...Ir,transform:Math.round},Z0={borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,radius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,size:ue,top:ue,right:ue,bottom:ue,left:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,rotate:mn,rotateX:mn,rotateY:mn,rotateZ:mn,scale:$i,scaleX:$i,scaleY:$i,scaleZ:$i,skew:mn,skewX:mn,skewY:mn,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:uo,originX:Of,originY:Of,originZ:ue,zIndex:Lf,fillOpacity:uo,strokeOpacity:uo,numOctaves:Lf};function Xu(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,d=!0;for(const f in t){const p=t[f];if(q0(f)){i[f]=p;continue}const h=Z0[f],m=ZC(p,h);if(Xn.has(f)){if(l=!0,a[f]=m,!d)continue;p!==(h.default||0)&&(d=!1)}else f.startsWith("origin")?(c=!0,s[f]=m):o[f]=m}if(t.transform||(l||r?o.transform=WC(e.transform,n,d,r):o.transform&&(o.transform="none")),c){const{originX:f="50%",originY:p="50%",originZ:h=0}=s;o.transformOrigin=`${f} ${p} ${h}`}}const Ju=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function X0(e,t,n){for(const r in t)!ht(t[r])&&!W0(r,n)&&(e[r]=t[r])}function tE({transformTemplate:e},t,n){return u.useMemo(()=>{const r=Ju();return Xu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function nE(e,t,n){const r=e.style||{},o={};return X0(o,r,e),Object.assign(o,tE(e,t,n)),o}function rE(e,t,n){const r={},o=nE(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const oE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function da(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||oE.has(e)}let J0=e=>!da(e);function iE(e){e&&(J0=t=>t.startsWith("on")?!da(t):e(t))}try{iE(require("@emotion/is-prop-valid").default)}catch{}function aE(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(J0(o)||n===!0&&da(o)||!t&&!da(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Vf(e,t,n){return typeof e=="string"?e:ue.transform(t+n*e)}function sE(e,t,n){const r=Vf(t,e.x,e.width),o=Vf(n,e.y,e.height);return`${r} ${o}`}const lE={offset:"stroke-dashoffset",array:"stroke-dasharray"},uE={offset:"strokeDashoffset",array:"strokeDasharray"};function cE(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?lE:uE;e[i.offset]=ue.transform(-r);const a=ue.transform(t),s=ue.transform(n);e[i.array]=`${a} ${s}`}function Qu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},d,f,p){if(Xu(e,c,d,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:b}=e;h.transform&&(b&&(m.transform=h.transform),delete h.transform),b&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=sE(b,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),a!==void 0&&cE(h,a,s,l,!1)}const Q0=()=>({...Ju(),attrs:{}}),ec=e=>typeof e=="string"&&e.toLowerCase()==="svg";function dE(e,t,n,r){const o=u.useMemo(()=>{const i=Q0();return Qu(i,t,{enableHardwareAcceleration:!1},ec(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};X0(i,e.style,e),o.style={...i,...o.style}}return o}function fE(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(qu(n)?dE:rE)(r,i,a,n),c=aE(r,typeof n=="string",e),d=n!==u.Fragment?{...c,...l,ref:o}:{},{children:f}=r,p=u.useMemo(()=>ht(f)?f.get():f,[f]);return u.createElement(n,{...d,children:p})}}function eb(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const tb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function nb(e,t,n,r){eb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(tb.has(o)?o:Uu(o),t.attrs[o])}function tc(e,t){const{style:n}=e,r={};for(const o in n)(ht(n[o])||t.style&&ht(t.style[o])||W0(o,e))&&(r[o]=n[o]);return r}function rb(e,t){const n=tc(e,t);for(const r in e)if(ht(e[r])||ht(t[r])){const o=Bo.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function nc(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function ob(e){const t=u.useRef(null);return t.current===null&&(t.current=e()),t.current}const fa=e=>Array.isArray(e),pE=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),hE=e=>fa(e)?e[e.length-1]||0:e;function Fi(e){const t=ht(e)?e.get():e;return pE(t)?t.toValue():t}function mE({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:bE(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const ib=e=>(t,n)=>{const r=u.useContext(Ma),o=u.useContext(Ra),i=()=>mE(e,t,r,o);return n?i():ob(i)};function bE(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=Fi(i[p]);let{initial:a,animate:s}=e;const l=Ia(e),c=H0(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?s:a;return f&&typeof f!="boolean"&&!Ba(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const m=nc(e,h);if(!m)return;const{transitionEnd:b,transition:v,...$}=m;for(const C in $){let x=$[C];if(Array.isArray(x)){const E=d?x.length-1:0;x=x[E]}x!==null&&(o[C]=x)}for(const C in b)o[C]=b[C]}),o}const ze=e=>e,{schedule:Ie,cancel:un,state:tt,steps:Rs}=U0(typeof requestAnimationFrame<"u"?requestAnimationFrame:ze,!0),vE={useVisualState:ib({scrapeMotionValuesFromProps:rb,createRenderState:Q0,onMount:(e,t,{renderState:n,latestValues:r})=>{Ie.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ie.render(()=>{Qu(n,r,{enableHardwareAcceleration:!1},ec(t.tagName),e.transformTemplate),nb(t,n)})}})},gE={useVisualState:ib({scrapeMotionValuesFromProps:tc,createRenderState:Ju})};function yE(e,{forwardMotionProps:t=!1},n,r){return{...qu(e)?vE:gE,preloadedFeatures:n,useRender:fE(t),createVisualElement:r,Component:e}}function tn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const ab=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Oa(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const $E=e=>t=>ab(t)&&e(t,Oa(t));function rn(e,t,n,r){return tn(e,t,$E(n),r)}const xE=(e,t)=>n=>t(e(n)),on=(...e)=>e.reduce(xE);function sb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Nf=sb("dragHorizontal"),_f=sb("dragVertical");function lb(e){let t=!1;if(e==="y")t=_f();else if(e==="x")t=Nf();else{const n=Nf(),r=_f();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ub(){const e=lb(!0);return e?(e(),!1):!0}class Sn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Kf(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.pointerType==="touch"||ub())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&Ie.update(()=>s[r](i,a))};return rn(e.current,n,o,{passive:!e.getProps()[r]})}class wE extends Sn{mount(){this.unmount=on(Kf(this.node,!0),Kf(this.node,!1))}unmount(){}}class CE extends Sn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=on(tn(this.node.current,"focus",()=>this.onFocus()),tn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const cb=(e,t)=>t?e===t?!0:cb(e,t.parentElement):!1;function Fs(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Oa(n))}class EE extends Sn{constructor(){super(...arguments),this.removeStartListeners=ze,this.removeEndListeners=ze,this.removeAccessibleListeners=ze,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=rn(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:d,globalTapTarget:f}=this.node.getProps();Ie.update(()=>{!f&&!cb(this.node.current,s.target)?d&&d(s,l):c&&c(s,l)})},{passive:!(r.onTap||r.onPointerUp)}),a=rn(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=on(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||Fs("up",(l,c)=>{const{onTap:d}=this.node.getProps();d&&Ie.update(()=>d(l,c))})};this.removeEndListeners(),this.removeEndListeners=tn(this.node.current,"keyup",a),Fs("down",(s,l)=>{this.startPress(s,l)})},n=tn(this.node.current,"keydown",t),r=()=>{this.isPressing&&Fs("cancel",(i,a)=>this.cancelPress(i,a))},o=tn(this.node.current,"blur",r);this.removeAccessibleListeners=on(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ie.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ub()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ie.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=rn(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=tn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=on(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Rl=new WeakMap,Bs=new WeakMap,DE=e=>{const t=Rl.get(e.target);t&&t(e)},PE=e=>{e.forEach(DE)};function SE({root:e,...t}){const n=e||document;Bs.has(n)||Bs.set(n,{});const r=Bs.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(PE,{root:e,...t})),r[o]}function TE(e,t,n){const r=SE(t);return Rl.set(e,n),r.observe(e),()=>{Rl.delete(e),r.unobserve(e)}}const AE={some:0,all:1};class kE extends Sn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:AE[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=c?d:f;p&&p(l)};return TE(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ME(t,n))&&this.startObserver()}unmount(){}}function ME({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const RE={inView:{Feature:kE},tap:{Feature:EE},focus:{Feature:CE},hover:{Feature:wE}};function db(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function FE(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function BE(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function La(e,t,n){const r=e.getProps();return nc(r,t,n!==void 0?n:r.custom,FE(e),BE(e))}let Lo=ze,kt=ze;process.env.NODE_ENV!=="production"&&(Lo=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},kt=(e,t)=>{if(!e)throw new Error(t)});const xn=e=>e*1e3,an=e=>e/1e3,IE={current:!1},fb=e=>Array.isArray(e)&&typeof e[0]=="number";function pb(e){return!!(!e||typeof e=="string"&&hb[e]||fb(e)||Array.isArray(e)&&e.every(pb))}const oo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:oo([0,.65,.55,1]),circOut:oo([.55,0,1,.45]),backIn:oo([.31,.01,.66,-.59]),backOut:oo([.33,1.53,.69,.99])};function mb(e){if(e)return fb(e)?oo(e):Array.isArray(e)?e.map(mb):hb[e]}function OE(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=mb(s);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function LE(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const bb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,VE=1e-7,NE=12;function _E(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=bb(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>VE&&++s<NE);return a}function Vo(e,t,n,r){if(e===t&&n===r)return ze;const o=i=>_E(i,0,1,e,n);return i=>i===0||i===1?i:bb(o(i),t,r)}const KE=Vo(.42,0,1,1),jE=Vo(0,0,.58,1),vb=Vo(.42,0,.58,1),zE=e=>Array.isArray(e)&&typeof e[0]!="number",gb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yb=e=>t=>1-e(1-t),rc=e=>1-Math.sin(Math.acos(e)),$b=yb(rc),UE=gb(rc),xb=Vo(.33,1.53,.69,.99),oc=yb(xb),HE=gb(oc),GE=e=>(e*=2)<1?.5*oc(e):.5*(2-Math.pow(2,-10*(e-1))),jf={linear:ze,easeIn:KE,easeInOut:vb,easeOut:jE,circIn:rc,circInOut:UE,circOut:$b,backIn:oc,backInOut:HE,backOut:xb,anticipate:GE},zf=e=>{if(Array.isArray(e)){kt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Vo(t,n,r,o)}else if(typeof e=="string")return kt(jf[e]!==void 0,`Invalid easing type '${e}'`),jf[e];return e},Do=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ve=(e,t,n)=>e+(t-e)*n;function Is(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function WE({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=Is(l,s,e+1/3),i=Is(l,s,e),a=Is(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const ic=(e,t)=>n=>!!(Io(n)&&JC.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),wb=(e,t,n)=>r=>{if(!Io(r))return r;const[o,i,a,s]=r.match(Zu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},YE=e=>Dn(0,255,e),Os={...Ir,transform:e=>Math.round(YE(e))},_n={test:ic("rgb","red"),parse:wb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Os.transform(e)+", "+Os.transform(t)+", "+Os.transform(n)+", "+co(uo.transform(r))+")"};function qE(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Fl={test:ic("#"),parse:qE,transform:_n.transform},br={test:ic("hsl","hue"),parse:wb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ut.transform(co(t))+", "+Ut.transform(co(n))+", "+co(uo.transform(r))+")"},Ls=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},ZE=[Fl,_n,br],XE=e=>ZE.find(t=>t.test(e));function Uf(e){const t=XE(e);kt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===br&&(n=WE(n)),n}const Hf=(e,t)=>{const n=Uf(e),r=Uf(t),o={...n};return i=>(o.red=Ls(n.red,r.red,i),o.green=Ls(n.green,r.green,i),o.blue=Ls(n.blue,r.blue,i),o.alpha=Ve(n.alpha,r.alpha,i),_n.transform(o))},ot={test:e=>_n.test(e)||Fl.test(e)||br.test(e),parse:e=>_n.test(e)?_n.parse(e):br.test(e)?br.parse(e):Fl.parse(e),transform:e=>Io(e)?e:e.hasOwnProperty("red")?_n.transform(e):br.transform(e)};function JE(e){var t,n;return isNaN(e)&&Io(e)&&(((t=e.match(Zu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(XC))===null||n===void 0?void 0:n.length)||0)>0}const Cb="number",Eb="color",QE="var",e6="var(",Gf="${}",Wf=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function pa(e){const t=e.toString(),n=t.match(Wf)||[],r=[],o={color:[],number:[],var:[]},i=[];for(let l=0;l<n.length;l++){const c=n[l];ot.test(c)?(o.color.push(l),i.push(Eb),r.push(ot.parse(c))):c.startsWith(e6)?(o.var.push(l),i.push(QE),r.push(c)):(o.number.push(l),i.push(Cb),r.push(parseFloat(c)))}const s=t.replace(Wf,Gf).split(Gf);return{values:r,split:s,indexes:o,types:i}}function Db(e){return pa(e).values}function Pb(e){const{split:t,types:n}=pa(e),r=t.length;return o=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],o[a]!==void 0){const s=n[a];s===Cb?i+=co(o[a]):s===Eb?i+=ot.transform(o[a]):i+=o[a]}return i}}const t6=e=>typeof e=="number"?0:e;function n6(e){const t=Db(e);return Pb(e)(t.map(t6))}const Pn={test:JE,parse:Db,createTransformer:Pb,getAnimatableNone:n6};function Bl(e,t){return n=>n>0?t:e}function r6(e,t){return n=>Ve(e,t,n)}function ac(e){return typeof e=="number"?r6:typeof e=="string"?ca(e)?Bl:ot.test(e)?Hf:a6:Array.isArray(e)?Sb:typeof e=="object"?ot.test(e)?Hf:o6:Bl}function Sb(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>ac(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function o6(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=ac(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function i6(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=(n=e.values[s])!==null&&n!==void 0?n:0;r[i]=l,o[a]++}return r}const a6=(e,t)=>{const n=Pn.createTransformer(t),r=pa(e),o=pa(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?on(Sb(i6(r,o),o.values),n):(Lo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Bl(e,t))};function Tb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ve(e,t,n):ac(e)(e,t)}function s6(e,t,n){const r=[],o=n||Tb,i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ze:t;s=on(l,s)}r.push(s)}return r}function l6(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(kt(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=s6(t,r,o),s=a.length,l=c=>{let d=0;if(s>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=Do(e[d],e[d+1],c);return a[d](f)};return n?c=>l(Dn(e[0],e[i-1],c)):l}function u6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Do(0,t,r);e.push(Ve(n,1,o))}}function c6(e){const t=[0];return u6(t,e.length-1),t}function d6(e,t){return e.map(n=>n*t)}function f6(e,t){return e.map(()=>t||vb).splice(0,e.length-1)}function ha({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=zE(r)?r.map(zf):zf(r),i={done:!1,value:t[0]},a=d6(n&&n.length===t.length?n:c6(t),e),s=l6(a,t,{ease:Array.isArray(o)?o:f6(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function Ab(e,t){return t?e*(1e3/t):0}const p6=5;function kb(e,t,n){const r=Math.max(t-p6,0);return Ab(n-e(r),t-r)}const Vs=.001,h6=.01,Yf=10,m6=.05,b6=1;function v6({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Lo(e<=xn(Yf),"Spring duration must be 10 seconds or less");let a=1-t;a=Dn(m6,b6,a),e=Dn(h6,Yf,an(e)),a<1?(o=c=>{const d=c*a,f=d*e,p=d-n,h=Il(c,a),m=Math.exp(-f);return Vs-p/h*m},i=c=>{const f=c*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(c,2)*e,m=Math.exp(-f),b=Il(Math.pow(c,2),a);return(-o(c)+Vs>0?-1:1)*((p-h)*m)/b}):(o=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Vs+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const s=5/e,l=y6(o,i,s);if(e=xn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const g6=12;function y6(e,t,n){let r=n;for(let o=1;o<g6;o++)r=r-e(r)/t(r);return r}function Il(e,t){return e*Math.sqrt(1-t*t)}const $6=["duration","bounce"],x6=["stiffness","damping","mass"];function qf(e,t){return t.some(n=>e[n]!==void 0)}function w6(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!qf(e,x6)&&qf(e,$6)){const n=v6(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Mb({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=w6({...r,velocity:-an(r.velocity||0)}),h=f||0,m=l/(2*Math.sqrt(s*c)),b=i-o,v=an(Math.sqrt(s/c)),$=Math.abs(b)<5;n||(n=$?.01:2),t||(t=$?.005:.5);let C;if(m<1){const x=Il(v,m);C=E=>{const w=Math.exp(-m*v*E);return i-w*((h+m*v*b)/x*Math.sin(x*E)+b*Math.cos(x*E))}}else if(m===1)C=x=>i-Math.exp(-v*x)*(b+(h+v*b)*x);else{const x=v*Math.sqrt(m*m-1);C=E=>{const w=Math.exp(-m*v*E),A=Math.min(x*E,300);return i-w*((h+m*v*b)*Math.sinh(A)+x*b*Math.cosh(A))/x}}return{calculatedDuration:p&&d||null,next:x=>{const E=C(x);if(p)a.done=x>=d;else{let w=h;x!==0&&(m<1?w=kb(C,x,E):w=0);const A=Math.abs(w)<=n,V=Math.abs(i-E)<=t;a.done=A&&V}return a.value=a.done?i:E,a}}}function Zf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=y=>s!==void 0&&y<s||l!==void 0&&y>l,m=y=>s===void 0?l:l===void 0||Math.abs(s-y)<Math.abs(l-y)?s:l;let b=n*t;const v=f+b,$=a===void 0?v:a(v);$!==v&&(b=$-f);const C=y=>-b*Math.exp(-y/r),x=y=>$+C(y),E=y=>{const I=C(y),M=x(y);p.done=Math.abs(I)<=c,p.value=p.done?$:M};let w,A;const V=y=>{h(p.value)&&(w=y,A=Mb({keyframes:[p.value,m(p.value)],velocity:kb(x,y,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return V(0),{calculatedDuration:null,next:y=>{let I=!1;return!A&&w===void 0&&(I=!0,E(y),V(y)),w!==void 0&&y>w?A.next(y-w):(!I&&E(y),p)}}}let Bi;function C6(){Bi=void 0}const Kn={now:()=>(Bi===void 0&&Kn.set(tt.isProcessing||z0.useManualTiming?tt.timestamp:performance.now()),Bi),set:e=>{Bi=e,queueMicrotask(C6)}},E6=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ie.update(t,!0),stop:()=>un(t),now:()=>tt.isProcessing?tt.timestamp:Kn.now()}},Xf=2e4;function Jf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Xf;)t+=n,r=e.next(t);return t>=Xf?1/0:t}const D6={decay:Zf,inertia:Zf,tween:ha,keyframes:ha,spring:Mb},P6=e=>e/100;function ma({autoplay:e=!0,delay:t=0,driver:n=E6,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:d,onUpdate:f,...p}){let h=1,m=!1,b,v;const $=()=>{v=new Promise(D=>{b=D})};$();let C;const x=D6[o]||ha;let E;x!==ha&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&kt(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),E=on(P6,Tb(r[0],r[1])),r=[0,100]);const w=x({...p,keyframes:r});let A;s==="mirror"&&(A=x({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let V="idle",y=null,I=null,M=null;w.calculatedDuration===null&&i&&(w.calculatedDuration=Jf(w));const{calculatedDuration:k}=w;let R=1/0,S=1/0;k!==null&&(R=k+a,S=R*(i+1)-a);let F=0;const K=D=>{if(I===null)return;h>0&&(I=Math.min(I,D)),h<0&&(I=Math.min(D-S/h,I)),y!==null?F=y:F=Math.round(D-I)*h;const T=F-t*(h>=0?1:-1),z=h>=0?T<0:T>S;F=Math.max(T,0),V==="finished"&&y===null&&(F=S);let H=F,Z=w;if(i){const Q=Math.min(F,S)/R;let ne=Math.floor(Q),ee=Q%1;!ee&&Q>=1&&(ee=1),ee===1&&ne--,ne=Math.min(ne,i+1),!!(ne%2)&&(s==="reverse"?(ee=1-ee,a&&(ee-=a/R)):s==="mirror"&&(Z=A)),H=Dn(0,1,ee)*R}const N=z?{done:!1,value:r[0]}:Z.next(H);E&&(N.value=E(N.value));let{done:j}=N;!z&&k!==null&&(j=h>=0?F>=S:F<=0);const _=y===null&&(V==="finished"||V==="running"&&j);return f&&f(N.value),_&&W(),N},L=()=>{C&&C.stop(),C=void 0},P=()=>{V="idle",L(),b(),$(),I=M=null},W=()=>{V="finished",d&&d(),L(),b()},J=()=>{if(m)return;C||(C=n(K));const D=C.now();l&&l(),y!==null?I=D-y:(!I||V==="finished")&&(I=D),V==="finished"&&$(),M=I,y=null,V="running",C.start()};e&&J();const G={then(D,T){return v.then(D,T)},get time(){return an(F)},set time(D){D=xn(D),F=D,y!==null||!C||h===0?y=D:I=C.now()-D/h},get duration(){const D=w.calculatedDuration===null?Jf(w):w.calculatedDuration;return an(D)},get speed(){return h},set speed(D){D===h||!C||(h=D,G.time=an(F))},get state(){return V},play:J,pause:()=>{V="paused",y=F},stop:()=>{m=!0,V!=="idle"&&(V="idle",c&&c(),P())},cancel:()=>{M!==null&&K(M),P()},complete:()=>{V="finished"},sample:D=>(I=0,K(D))};return G}function S6(e){let t;return()=>(t===void 0&&(t=e()),t)}const T6=S6(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),A6=new Set(["opacity","clipPath","filter","transform"]),xi=10,k6=2e4,M6=(e,t)=>t.type==="spring"||e==="backgroundColor"||!pb(t.ease);function R6(e,t,{onUpdate:n,onComplete:r,...o}){if(!(T6()&&A6.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l,c=!1;const d=()=>{l=new Promise(x=>{s=x})};d();let{keyframes:f,duration:p=300,ease:h,times:m}=o;if(M6(t,o)){const x=ma({...o,repeat:0,delay:0});let E={done:!1,value:f[0]};const w=[];let A=0;for(;!E.done&&A<k6;)E=x.sample(A),w.push(E.value),A+=xi;m=void 0,f=w,p=A-xi,h="linear"}const b=OE(e.owner.current,t,f,{...o,duration:p,ease:h,times:m}),v=()=>{c=!1,b.cancel()},$=()=>{c=!0,Ie.update(v),s(),d()};return b.onfinish=()=>{c||(e.set(LE(f,o)),r&&r(),$())},{then(x,E){return l.then(x,E)},attachTimeline(x){return b.timeline=x,b.onfinish=null,ze},get time(){return an(b.currentTime||0)},set time(x){b.currentTime=xn(x)},get speed(){return b.playbackRate},set speed(x){b.playbackRate=x},get duration(){return an(p)},play:()=>{a||(b.play(),un(v))},pause:()=>b.pause(),stop:()=>{if(a=!0,b.playState==="idle")return;const{currentTime:x}=b;if(x){const E=ma({...o,autoplay:!1});e.setWithVelocity(E.sample(x-xi).value,E.sample(x).value,xi)}$()},complete:()=>{c||b.finish()},cancel:$}}function F6({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ze,pause:ze,stop:ze,then:i=>(i(),Promise.resolve()),cancel:ze,complete:ze});return t?ma({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const B6={type:"spring",stiffness:500,damping:25,restSpeed:10},I6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),O6={type:"keyframes",duration:.8},L6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V6=(e,{keyframes:t})=>t.length>2?O6:Xn.has(e)?e.startsWith("scale")?I6(t[1]):B6:L6,Ol=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Pn.test(t)||t==="0")&&!t.startsWith("url(")),N6=new Set(["brightness","contrast","saturate","opacity"]);function _6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Zu)||[];if(!r)return e;const o=n.replace(r,"");let i=N6.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const K6=/([a-z-]*)\(.*?\)/g,Ll={...Pn,getAnimatableNone:e=>{const t=e.match(K6);return t?t.map(_6).join(" "):e}},j6={...Z0,color:ot,backgroundColor:ot,outlineColor:ot,fill:ot,stroke:ot,borderColor:ot,borderTopColor:ot,borderRightColor:ot,borderBottomColor:ot,borderLeftColor:ot,filter:Ll,WebkitFilter:Ll},sc=e=>j6[e];function Rb(e,t){let n=sc(e);return n!==Ll&&(n=Pn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Fb=e=>/^0[^.\s]+$/.test(e);function z6(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Fb(e)}function U6(e,t,n,r){const o=Ol(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const a=r.from!==void 0?r.from:e.get();let s;const l=[];for(let c=0;c<i.length;c++)i[c]===null&&(i[c]=c===0?a:i[c-1]),z6(i[c])&&l.push(c),typeof i[c]=="string"&&i[c]!=="none"&&i[c]!=="0"&&(s=i[c]);if(o&&l.length&&s)for(let c=0;c<l.length;c++){const d=l[c];i[d]=Rb(t,s)}return i}function H6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...d}){return!!Object.keys(d).length}function lc(e,t){return e[t]||e.default||e}const uc=(e,t,n,r={})=>o=>{const i=lc(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s=s-xn(a);const l=U6(t,e,n,i),c=l[0],d=l[l.length-1],f=Ol(e,c),p=Ol(e,d);Lo(f===p,`You are trying to animate ${e} from "${c}" to "${d}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${d} via the \`style\` property.`);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:m=>{t.set(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(H6(i)||(h={...h,...V6(e,h)}),h.duration&&(h.duration=xn(h.duration)),h.repeatDelay&&(h.repeatDelay=xn(h.repeatDelay)),!f||!p||IE.current||i.type===!1||z0.skipAnimations)return F6(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=R6(t,e,h);if(m)return m}return ma(h)};function ba(e){return!!(ht(e)&&e.add)}const Bb=e=>/^\-?\d*\.?\d+$/.test(e);function cc(e,t){e.indexOf(t)===-1&&e.push(t)}function dc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class fc{constructor(){this.subscriptions=[]}add(t){return cc(this.subscriptions,t),()=>dc(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Qf=new Set;function pc(e,t,n){e||Qf.has(t)||(console.warn(t),n&&console.warn(n),Qf.add(t))}const ep=30,G6=e=>!isNaN(parseFloat(e));class W6{constructor(t,n={}){this.version="11.0.6",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Kn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=G6(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Kn.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&pc(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new fc);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ie.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Kn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ep)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ep);return Ab(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Dr(e,t){return new W6(e,t)}const Ib=e=>t=>t.test(e),Y6={test:e=>e==="auto",parse:e=>e},Ob=[Ir,ue,Ut,mn,eE,QC,Y6],qr=e=>Ob.find(Ib(e)),q6=[...Ob,ot,Pn],Z6=e=>q6.find(Ib(e));function X6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dr(n))}function J6(e,t){const n=La(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i){const s=hE(i[a]);X6(e,a,s)}}function Q6(e,t,n){var r,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;s<a;s++){const l=i[s],c=t[l];let d=null;Array.isArray(c)&&(d=c[0]),d===null&&(d=(o=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&o!==void 0?o:t[l]),d!=null&&(typeof d=="string"&&(Bb(d)||Fb(d))?d=parseFloat(d):!Z6(d)&&Pn.test(c)&&(d=Rb(l,c)),e.addValue(l,Dr(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function e7(e,t){return t?(t[e]||t.default||t).from:void 0}function t7(e,t,n){const r={};for(const o in e){const i=e7(o,t);if(i!==void 0)r[o]=i;else{const a=n.getValue(o);a&&(r[o]=a.get())}}return r}function n7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function r7(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Lb(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in s){const p=e.getValue(f),h=s[f];if(!p||h===void 0||d&&n7(d,f))continue;const m={delay:n,elapsed:0,...lc(i||{},f)};if(window.HandoffAppearAnimations){const $=e.getProps()[j0];if($){const C=window.HandoffAppearAnimations($,f,p,Ie);C!==null&&(m.elapsed=C,m.isHandoff=!0)}}let b=!m.isHandoff&&!r7(p,h);if(m.type==="spring"&&(p.getVelocity()||m.velocity)&&(b=!1),p.animation&&(b=!1),b)continue;p.start(uc(f,p,h,e.shouldReduceMotion&&Xn.has(f)?{type:!1}:m));const v=p.animation;ba(l)&&(l.add(f),v.then(()=>l.remove(f))),c.push(v)}return a&&Promise.all(c).then(()=>{a&&J6(e,a)}),c}function Vl(e,t,n={}){const r=La(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Lb(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return o7(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,c]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>c())}else return Promise.all([i(),a(n.delay)])}function o7(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(i7).forEach((c,d)=>{c.notify("AnimationStart",t),a.push(Vl(c,t,{...i,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function i7(e,t){return e.sortNodePosition(t)}function a7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Vl(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Vl(e,t,n);else{const o=typeof t=="function"?La(e,t,n.custom):t;r=Promise.all(Lb(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const s7=[...Gu].reverse(),l7=Gu.length;function u7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>a7(e,n,r)))}function c7(e){let t=u7(e);const n=f7();let r=!0;const o=(l,c)=>{const d=La(e,c);if(d){const{transition:f,transitionEnd:p,...h}=d;l={...l,...h,...p}}return l};function i(l){t=l(e)}function a(l,c){const d=e.getProps(),f=e.getVariantContext(!0)||{},p=[],h=new Set;let m={},b=1/0;for(let $=0;$<l7;$++){const C=s7[$],x=n[C],E=d[C]!==void 0?d[C]:f[C],w=Co(E),A=C===c?x.isActive:null;A===!1&&(b=$);let V=E===f[C]&&E!==d[C]&&w;if(V&&r&&e.manuallyAnimateOnMount&&(V=!1),x.protectedKeys={...m},!x.isActive&&A===null||!E&&!x.prevProp||Ba(E)||typeof E=="boolean")continue;let I=d7(x.prevProp,E)||C===c&&x.isActive&&!V&&w||$>b&&w,M=!1;const k=Array.isArray(E)?E:[E];let R=k.reduce(o,{});A===!1&&(R={});const{prevResolvedValues:S={}}=x,F={...S,...R},K=L=>{I=!0,h.has(L)&&(M=!0,h.delete(L)),x.needsAnimating[L]=!0};for(const L in F){const P=R[L],W=S[L];if(m.hasOwnProperty(L))continue;let J=!1;fa(P)&&fa(W)?J=!db(P,W):J=P!==W,J?P!==void 0?K(L):h.add(L):P!==void 0&&h.has(L)?K(L):x.protectedKeys[L]=!0}x.prevProp=E,x.prevResolvedValues=R,x.isActive&&(m={...m,...R}),r&&e.blockInitialAnimation&&(I=!1),I&&(!V||M)&&p.push(...k.map(L=>({animation:L,options:{type:C,...l}})))}if(h.size){const $={};h.forEach(C=>{const x=e.getBaseTarget(C);x!==void 0&&($[C]=x)}),p.push({animation:$})}let v=!!p.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(p):Promise.resolve()}function s(l,c,d){var f;if(n[l].isActive===c)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var m;return(m=h.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const p=a(d,l);for(const h in n)n[h].protectedKeys={};return p}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n}}function d7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!db(t,e):!1}function Tn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function f7(){return{animate:Tn(!0),whileInView:Tn(),whileHover:Tn(),whileTap:Tn(),whileDrag:Tn(),whileFocus:Tn(),exit:Tn()}}class p7 extends Sn{constructor(t){super(t),t.animationState||(t.animationState=c7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ba(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let h7=0;class m7 extends Sn{constructor(){super(...arguments),this.id=h7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const b7={animation:{Feature:p7},exit:{Feature:m7}},tp=(e,t)=>Math.abs(e-t);function v7(e,t){const n=tp(e.x,t.x),r=tp(e.y,t.y);return Math.sqrt(n**2+r**2)}class Vb{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=_s(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=v7(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:m}=f,{timestamp:b}=tt;this.history.push({...m,timestamp:b});const{onStart:v,onMove:$}=this.handlers;p||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ns(p,this.transformPagePoint),Ie.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:m,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=_s(f.type==="pointercancel"?this.lastMoveEventInfo:Ns(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,v),m&&m(f,v)},!ab(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=Oa(t),s=Ns(a,this.transformPagePoint),{point:l}=s,{timestamp:c}=tt;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,_s(s,this.history)),this.removeListeners=on(rn(this.contextWindow,"pointermove",this.handlePointerMove),rn(this.contextWindow,"pointerup",this.handlePointerUp),rn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),un(this.updatePoint)}}function Ns(e,t){return t?{point:t(e.point)}:e}function np(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _s({point:e},t){return{point:e,delta:np(e,Nb(t)),offset:np(e,g7(t)),velocity:y7(t,.1)}}function g7(e){return e[0]}function Nb(e){return e[e.length-1]}function y7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Nb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>xn(t)));)n--;if(!r)return{x:0,y:0};const i=an(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function gt(e){return e.max-e.min}function Nl(e,t=0,n=.01){return Math.abs(e-t)<=n}function rp(e,t,n,r=.5){e.origin=r,e.originPoint=Ve(t.min,t.max,e.origin),e.scale=gt(n)/gt(t),(Nl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ve(n.min,n.max,e.origin)-e.originPoint,(Nl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function fo(e,t,n,r){rp(e.x,t.x,n.x,r?r.originX:void 0),rp(e.y,t.y,n.y,r?r.originY:void 0)}function op(e,t,n){e.min=n.min+t.min,e.max=e.min+gt(t)}function $7(e,t,n){op(e.x,t.x,n.x),op(e.y,t.y,n.y)}function ip(e,t,n){e.min=t.min-n.min,e.max=e.min+gt(t)}function po(e,t,n){ip(e.x,t.x,n.x),ip(e.y,t.y,n.y)}function x7(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ve(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ve(n,e,r.max):Math.min(e,n)),e}function ap(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function w7(e,{top:t,left:n,bottom:r,right:o}){return{x:ap(e.x,n,o),y:ap(e.y,t,r)}}function sp(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function C7(e,t){return{x:sp(e.x,t.x),y:sp(e.y,t.y)}}function E7(e,t){let n=.5;const r=gt(e),o=gt(t);return o>r?n=Do(t.min,t.max-r,e.min):r>o&&(n=Do(e.min,e.max-o,t.min)),Dn(0,1,n)}function D7(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const _l=.35;function P7(e=_l){return e===!1?e=0:e===!0&&(e=_l),{x:lp(e,"left","right"),y:lp(e,"top","bottom")}}function lp(e,t,n){return{min:up(e,t),max:up(e,n)}}function up(e,t){return typeof e=="number"?e:e[t]||0}const cp=()=>({translate:0,scale:1,origin:0,originPoint:0}),vr=()=>({x:cp(),y:cp()}),dp=()=>({min:0,max:0}),je=()=>({x:dp(),y:dp()});function wt(e){return[e("x"),e("y")]}function _b({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function S7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function T7(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ks(e){return e===void 0||e===1}function Kl({scale:e,scaleX:t,scaleY:n}){return!Ks(e)||!Ks(t)||!Ks(n)}function Mn(e){return Kl(e)||Kb(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Kb(e){return fp(e.x)||fp(e.y)}function fp(e){return e&&e!=="0%"}function va(e,t,n){const r=e-n,o=t*r;return n+o}function pp(e,t,n,r,o){return o!==void 0&&(e=va(e,o,r)),va(e,n,r)+t}function jl(e,t=0,n=1,r,o){e.min=pp(e.min,t,n,r,o),e.max=pp(e.max,t,n,r,o)}function jb(e,{x:t,y:n}){jl(e.x,t.translate,t.scale,t.originPoint),jl(e.y,n.translate,n.scale,n.originPoint)}function A7(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const l=i.instance;l&&l.style&&l.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&gr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,jb(e,a)),r&&Mn(i.latestValues)&&gr(e,i.latestValues))}t.x=hp(t.x),t.y=hp(t.y)}function hp(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function vn(e,t){e.min=e.min+t,e.max=e.max+t}function mp(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Ve(e.min,e.max,i);jl(e,t[n],t[r],a,t.scale)}const k7=["x","scaleX","originX"],M7=["y","scaleY","originY"];function gr(e,t){mp(e.x,t,k7),mp(e.y,t,M7)}function zb(e,t){return _b(T7(e.getBoundingClientRect(),t))}function R7(e,t,n){const r=zb(e,n),{scroll:o}=t;return o&&(vn(r.x,o.offset.x),vn(r.y,o.offset.y)),r}const Ub=({current:e})=>e?e.ownerDocument.defaultView:null,F7=new WeakMap;class B7{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=je(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Oa(d,"page").point)},i=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:m}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=lb(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wt(v=>{let $=this.getAxisMotionValue(v).get()||0;if(Ut.test($)){const{projection:C}=this.visualElement;if(C&&C.layout){const x=C.layout.layoutBox[v];x&&($=gt(x)*(parseFloat($)/100))}}this.originPoint[v]=$}),m&&Ie.update(()=>m(d,f),!1,!0);const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:m,onDrag:b}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:v}=f;if(h&&this.currentDirection===null){this.currentDirection=I7(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),b&&b(d,f)},s=(d,f)=>this.stop(d,f),l=()=>wt(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Vb(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Ub(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Ie.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!wi(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=x7(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&mr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=w7(o.layoutBox,n):this.constraints=!1,this.elastic=P7(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&wt(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=D7(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!mr(t))return!1;const r=t.current;kt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=R7(r,o.root,this.visualElement.getTransformPagePoint());let a=C7(o.layout.layoutBox,i);if(n){const s=n(S7(a));this.hasMutatedConstraints=!!s,s&&(a=_b(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=wt(d=>{if(!wi(d,n,this.currentDirection))return;let f=l&&l[d]||{};a&&(f={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,m={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,m)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(uc(t,r,0,n))}stopAnimation(){wt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){wt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){wt(n=>{const{drag:r}=this.getProps();if(!wi(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-Ve(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!mr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};wt(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=E7({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),wt(a=>{if(!wi(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(Ve(l,c,o[a]))})}addListeners(){if(!this.visualElement.current)return;F7.set(this.visualElement,this);const t=this.visualElement.current,n=rn(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();mr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=tn(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(wt(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=_l,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function wi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function I7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class O7 extends Sn{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new B7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ze}unmount(){this.removeGroupControls(),this.removeListeners()}}const bp=e=>(t,n)=>{e&&Ie.update(()=>e(t,n))};class L7 extends Sn{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new Vb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ub(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:bp(t),onStart:bp(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&Ie.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=rn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function V7(){const e=u.useContext(Ra);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=u.useId();return u.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Ii={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vp(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Zr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ue.test(e))e=parseFloat(e);else return e;const n=vp(e,t.target.x),r=vp(e,t.target.y);return`${n}% ${r}%`}},N7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Pn.parse(e);if(o.length>5)return r;const i=Pn.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=Ve(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=c),typeof o[3+a]=="number"&&(o[3+a]/=c),i(o)}};class _7 extends u.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;UC(K7),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ii.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Ie.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Hu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Hb(e){const[t,n]=V7(),r=u.useContext(Yu);return u.createElement(_7,{...e,layoutGroup:r,switchLayoutGroup:u.useContext(G0),isPresent:t,safeToRemove:n})}const K7={borderRadius:{...Zr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zr,borderTopRightRadius:Zr,borderBottomLeftRadius:Zr,borderBottomRightRadius:Zr,boxShadow:N7},Gb=["TopLeft","TopRight","BottomLeft","BottomRight"],j7=Gb.length,gp=e=>typeof e=="string"?parseFloat(e):e,yp=e=>typeof e=="number"||ue.test(e);function z7(e,t,n,r,o,i){o?(e.opacity=Ve(0,n.opacity!==void 0?n.opacity:1,U7(r)),e.opacityExit=Ve(t.opacity!==void 0?t.opacity:1,0,H7(r))):i&&(e.opacity=Ve(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<j7;a++){const s=`border${Gb[a]}Radius`;let l=$p(t,s),c=$p(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||yp(l)===yp(c)?(e[s]=Math.max(Ve(gp(l),gp(c),r),0),(Ut.test(c)||Ut.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=Ve(t.rotate||0,n.rotate||0,r))}function $p(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const U7=Wb(0,.5,$b),H7=Wb(.5,.95,ze);function Wb(e,t,n){return r=>r<e?0:r>t?1:n(Do(e,t,r))}function xp(e,t){e.min=t.min,e.max=t.max}function $t(e,t){xp(e.x,t.x),xp(e.y,t.y)}function wp(e,t,n,r,o){return e-=t,e=va(e,1/n,r),o!==void 0&&(e=va(e,1/o,r)),e}function G7(e,t=0,n=1,r=.5,o,i=e,a=e){if(Ut.test(t)&&(t=parseFloat(t),t=Ve(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Ve(i.min,i.max,r);e===i&&(s-=t),e.min=wp(e.min,t,n,s,o),e.max=wp(e.max,t,n,s,o)}function Cp(e,t,[n,r,o],i,a){G7(e,t[n],t[r],t[o],t.scale,i,a)}const W7=["x","scaleX","originX"],Y7=["y","scaleY","originY"];function Ep(e,t,n,r){Cp(e.x,t,W7,n?n.x:void 0,r?r.x:void 0),Cp(e.y,t,Y7,n?n.y:void 0,r?r.y:void 0)}function Dp(e){return e.translate===0&&e.scale===1}function Yb(e){return Dp(e.x)&&Dp(e.y)}function q7(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function qb(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Pp(e){return gt(e.x)/gt(e.y)}class Z7{constructor(){this.members=[]}add(t){cc(this.members,t),t.scheduleRender()}remove(t){if(dc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Sp(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),d&&(r+=`rotateY(${d}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(r+=`scale(${a}, ${s})`),r||"none"}const X7=(e,t)=>e.depth-t.depth;class J7{constructor(){this.children=[],this.isDirty=!1}add(t){cc(this.children,t),this.isDirty=!0}remove(t){dc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(X7),this.isDirty=!1,this.children.forEach(t)}}function Q7(e,t){const n=Kn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(un(r),e(i-t))};return Ie.read(r,!0),()=>un(r)}function eD(e){window.MotionDebug&&window.MotionDebug.record(e)}function tD(e){return e instanceof SVGElement&&e.tagName!=="svg"}function nD(e,t,n){const r=ht(e)?e:Dr(e);return r.start(uc("",r,t,n)),r.animation}const Tp=["","X","Y","Z"],rD={visibility:"hidden"},Ap=1e3;let oD=0;const Rn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Zb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=oD++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Rn.totalNodes=Rn.resolvedTargetDeltas=Rn.recalculatedProjection=0,this.nodes.forEach(sD),this.nodes.forEach(fD),this.nodes.forEach(pD),this.nodes.forEach(lD),eD(Rn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new J7)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new fc),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=tD(a),this.instance=a;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||l)&&(this.isLayoutDirty=!0),e){let f;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Q7(p,250),Ii.hasAnimatedSinceResize&&(Ii.hasAnimatedSinceResize=!1,this.nodes.forEach(Mp))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||gD,{onLayoutAnimationStart:v,onLayoutAnimationComplete:$}=d.getProps(),C=!this.targetLayout||!qb(this.targetLayout,m)||h,x=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);const E={...lc(b,"layout"),onPlay:v,onComplete:$};(d.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||Mp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,un(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(hD),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(kp);return}this.isUpdating||this.nodes.forEach(cD),this.isUpdating=!1,this.nodes.forEach(dD),this.nodes.forEach(iD),this.nodes.forEach(aD),this.clearAllSnapshots();const s=Kn.now();tt.delta=Dn(0,1e3/60,s-tt.timestamp),tt.timestamp=s,tt.isProcessing=!0,Rs.update.process(tt),Rs.preRender.process(tt),Rs.render.process(tt),tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hu.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(uD),this.sharedNodes.forEach(mD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ie.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ie.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=je(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!Yb(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;a&&(s||Mn(this.latestValues)||d)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),yD(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return je();const s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(vn(s.x,l.offset.x),vn(s.y,l.offset.y)),s}removeElementScroll(a){const s=je();$t(s,a);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:f}=c;if(c!==this.root&&d&&f.layoutScroll){if(d.isRoot){$t(s,a);const{scroll:p}=this.root;p&&(vn(s.x,-p.offset.x),vn(s.y,-p.offset.y))}vn(s.x,d.offset.x),vn(s.y,d.offset.y)}}return s}applyTransform(a,s=!1){const l=je();$t(l,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&gr(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Mn(d.latestValues)&&gr(l,d.latestValues)}return Mn(this.latestValues)&&gr(l,this.latestValues),l}removeTransform(a){const s=je();$t(s,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Mn(c.latestValues))continue;Kl(c.latestValues)&&c.updateSnapshot();const d=je(),f=c.measurePageBox();$t(d,f),Ep(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return Mn(this.latestValues)&&Ep(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=tt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=je(),this.relativeTargetOrigin=je(),po(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),$t(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=je(),this.targetWithTransforms=je()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$t(this.target,this.layout.layoutBox),jb(this.target,this.targetDelta)):$t(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=je(),this.relativeTargetOrigin=je(),po(this.relativeTargetOrigin,this.target,h.target),$t(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Rn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Kl(this.parent.latestValues)||Kb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===tt.timestamp&&(c=!1),c)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;$t(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;A7(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=je());const{target:m}=s;if(!m){this.projectionTransform&&(this.projectionDelta=vr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=vr(),this.projectionDeltaWithTransform=vr());const b=this.projectionTransform;fo(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Sp(this.projectionDelta,this.treeScale),(this.projectionTransform!==b||this.treeScale.x!==p||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Rn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},f=vr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=je(),h=l?l.source:void 0,m=this.layout?this.layout.source:void 0,b=h!==m,v=this.getStack(),$=!v||v.members.length<=1,C=!!(b&&!$&&this.options.crossfade===!0&&!this.path.some(vD));this.animationProgress=0;let x;this.mixTargetDelta=E=>{const w=E/1e3;Rp(f.x,a.x,w),Rp(f.y,a.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(po(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bD(this.relativeTarget,this.relativeTargetOrigin,p,w),x&&q7(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=je()),$t(x,this.relativeTarget)),b&&(this.animationValues=d,z7(d,c,this.latestValues,w,C,$)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(un(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ie.update(()=>{Ii.hasAnimatedSinceResize=!0,this.currentAnimation=nD(0,Ap,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ap),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:d}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&Xb(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||je();const f=gt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const p=gt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}$t(s,l),gr(s,d),fo(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Z7),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const c={};for(let d=0;d<Tp.length;d++){const f="rotate"+Tp[d];l[f]&&(c[f]=l[f],a.setStaticValue(f,0))}a.render();for(const d in c)a.setStaticValue(d,c[d]);a.scheduleRender()}getProjectionStyles(a){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rD;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Fi(a==null?void 0:a.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Fi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Mn(this.latestValues)&&(b.transform=d?d({},""):"none",this.hasProjected=!1),b}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=Sp(this.projectionDeltaWithTransform,this.treeScale,p),d&&(c.transform=d(p,c.transform));const{x:h,y:m}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in ua){if(p[b]===void 0)continue;const{correct:v,applyTo:$}=ua[b],C=c.transform==="none"?p[b]:v(p[b],f);if($){const x=$.length;for(let E=0;E<x;E++)c[$[E]]=C}else c[b]=C}return this.options.layoutId&&(c.pointerEvents=f===this?Fi(a==null?void 0:a.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(kp),this.root.sharedNodes.clear()}}}function iD(e){e.updateLayout()}function aD(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?wt(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=gt(p);p.min=r[f].min,p.max=p.min+h}):Xb(i,n.layoutBox,r)&&wt(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=gt(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=vr();fo(s,r,n.layoutBox);const l=vr();a?fo(l,e.applyTransform(o,!0),n.measuredBox):fo(l,r,n.layoutBox);const c=!Yb(s);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const m=je();po(m,n.layoutBox,p.layoutBox);const b=je();po(b,r,h.layoutBox),qb(m,b)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function sD(e){Rn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function lD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function uD(e){e.clearSnapshot()}function kp(e){e.clearMeasurements()}function cD(e){e.isLayoutDirty=!1}function dD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Mp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fD(e){e.resolveTargetDelta()}function pD(e){e.calcProjection()}function hD(e){e.resetRotation()}function mD(e){e.removeLeadSnapshot()}function Rp(e,t,n){e.translate=Ve(t.translate,0,n),e.scale=Ve(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fp(e,t,n,r){e.min=Ve(t.min,n.min,r),e.max=Ve(t.max,n.max,r)}function bD(e,t,n,r){Fp(e.x,t.x,n.x,r),Fp(e.y,t.y,n.y,r)}function vD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const gD={duration:.45,ease:[.4,0,.1,1]},Bp=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ip=Bp("applewebkit/")&&!Bp("chrome/")?Math.round:ze;function Op(e){e.min=Ip(e.min),e.max=Ip(e.max)}function yD(e){Op(e.x),Op(e.y)}function Xb(e,t,n){return e==="position"||e==="preserve-aspect"&&!Nl(Pp(t),Pp(n),.2)}const $D=Zb({attachResizeListener:(e,t)=>tn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),js={current:void 0},Jb=Zb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!js.current){const e=new $D({});e.mount(window),e.setOptions({layoutScroll:!0}),js.current=e}return js.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),xD={pan:{Feature:L7},drag:{Feature:O7,ProjectionNode:Jb,MeasureLayout:Hb}},wD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function CD(e){const t=wD.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const ED=4;function zl(e,t,n=1){kt(n<=ED,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=CD(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return Bb(a)?parseFloat(a):a}else return ca(o)?zl(o,t,n+1):o}function DD(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!ca(i))return;const a=zl(i,r);a&&o.set(a)});for(const o in t){const i=t[o];if(!ca(i))continue;const a=zl(i,r);a&&(t[o]=a,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const PD=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Qb=e=>PD.has(e),SD=e=>Object.keys(e).some(Qb),Ci=e=>e===Ir||e===ue,Lp=(e,t)=>parseFloat(e.split(", ")[t]),Vp=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Lp(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Lp(i[1],e):0}},TD=new Set(["x","y","z"]),AD=Bo.filter(e=>!TD.has(e));function kD(e){const t=[];return AD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Pr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Vp(4,13),y:Vp(5,14)};Pr.translateX=Pr.x;Pr.translateY=Pr.y;const MD=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{s[c]=Pr[c](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const d=t.getValue(c);d&&d.jump(s[c]),e[c]=Pr[c](l,i)}),e},RD=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Qb);let i=[],a=!1;const s=[];if(o.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],f=qr(d);const p=t[l];let h;if(fa(p)){const m=p.length,b=p[0]===null?1:0;d=p[b],f=qr(d);for(let v=b;v<m&&p[v]!==null;v++)h?kt(qr(p[v])===h,"All keyframes must be of the same type"):(h=qr(p[v]),kt(h===f||Ci(f)&&Ci(h),"Keyframes must be of the same dimension as the current value"))}else h=qr(p);if(f!==h)if(Ci(f)&&Ci(h)){const m=c.get();typeof m=="string"&&c.set(parseFloat(m)),typeof p=="string"?t[l]=parseFloat(p):Array.isArray(p)&&h===ue&&(t[l]=p.map(parseFloat))}else f!=null&&f.transform&&(h!=null&&h.transform)&&(d===0||p===0)?d===0?c.set(h.transform(d)):t[l]=f.transform(p):(a||(i=kD(e),a=!0),s.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(p))}),s.length){const l=s.indexOf("height")>=0?window.pageYOffset:null,c=MD(t,e,s);return i.length&&i.forEach(([d,f])=>{e.getValue(d).set(f)}),e.render(),Fa&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function FD(e,t,n,r){return SD(t)?RD(e,t,n,r):{target:t,transitionEnd:r}}const BD=(e,t,n,r)=>{const o=DD(e,t,r);return t=o.target,r=o.transitionEnd,FD(e,t,n,r)},Ul={current:null},ev={current:!1};function ID(){if(ev.current=!0,!!Fa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ul.current=e.matches;e.addListener(t),t()}else Ul.current=!1}function OD(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(ht(i))e.addValue(o,i),ba(r)&&r.add(o),process.env.NODE_ENV==="development"&&pc(i.version==="11.0.6",`Attempting to mix Framer Motion versions ${i.version} with 11.0.6 may not work as expected.`);else if(ht(a))e.addValue(o,Dr(i,{owner:e})),ba(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,Dr(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Np=new WeakMap,tv=Object.keys(Eo),LD=tv.length,_p=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],VD=Wu.length;class ND{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ie.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Ia(n),this.isVariantNode=H0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{});for(const f in d){const p=d[f];s[f]!==void 0&&ht(p)&&(p.set(s[f],!1),ba(c)&&c.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Np.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ev.current||ID(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ul.current,process.env.NODE_ENV!=="production"&&pc(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Np.delete(this.current),this.projection&&this.projection.unmount(),un(this.notifyUpdate),un(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Xn.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ie.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,s;if(process.env.NODE_ENV!=="production"&&o&&r){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Lo(!1,l):kt(!1,l)}for(let l=0;l<LD;l++){const c=tv[l],{isEnabled:d,Feature:f,ProjectionNode:p,MeasureLayout:h}=Eo[c];p&&(a=p),d(n)&&(!this.features[c]&&f&&(this.features[c]=new f(this)),h&&(s=h))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:d,dragConstraints:f,layoutScroll:p,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!d||f&&mr(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):je()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<_p.length;r++){const o=_p[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i=t["on"+o];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=OD(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<VD;r++){const o=Wu[r],i=this.props[o];(Co(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Dr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=nc(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ht(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new fc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class nv extends ND{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},o){const i=t7(r,t||{},this);if(o){Q6(this,r,i);const a=BD(this,r,i,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function _D(e){return window.getComputedStyle(e)}class KD extends nv{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Xn.has(n)){const r=sc(n);return r&&r.default||0}else{const r=_D(t),o=(q0(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return zb(t,n)}build(t,n,r,o){Xu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return tc(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ht(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){eb(t,n,r,o)}}class jD extends nv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xn.has(n)){const r=sc(n);return r&&r.default||0}return n=tb.has(n)?n:Uu(n),t.getAttribute(n)}measureInstanceViewportBox(){return je()}scrapeMotionValuesFromProps(t,n){return rb(t,n)}build(t,n,r,o){Qu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){nb(t,n,r,o)}mount(t){this.isSVGTag=ec(t.tagName),super.mount(t)}}const zD=(e,t)=>qu(e)?new jD(t,{enableHardwareAcceleration:!1}):new KD(t,{enableHardwareAcceleration:!0}),UD={layout:{ProjectionNode:Jb,MeasureLayout:Hb}},HD={...b7,...RE,...xD,...UD},Jn=jC((e,t)=>yE(e,t,HD,zD));function rv(){const e=u.useRef(!1);return zu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function GD(){const e=rv(),[t,n]=u.useState(0),r=u.useCallback(()=>{e.current&&n(t+1)},[t]);return[u.useCallback(()=>Ie.postRender(r),[r]),t]}class WD extends We.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function YD({children:e,isPresent:t}){const n=u.useId(),r=u.useRef(null),o=u.useRef({width:0,height:0,top:0,left:0});return u.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!r.current||!i||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
193
+ [data-motion-pop-id="${n}"] {
194
+ position: absolute !important;
195
+ width: ${i}px !important;
196
+ height: ${a}px !important;
197
+ top: ${s}px !important;
198
+ left: ${l}px !important;
199
+ }
200
+ `),()=>{document.head.removeChild(c)}},[t]),We.createElement(WD,{isPresent:t,childRef:r,sizeRef:o},We.cloneElement(e,{ref:r}))}const zs=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=ob(qD),l=u.useId(),c=u.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:d=>{s.set(d,!0);for(const f of s.values())if(!f)return;r&&r()},register:d=>(s.set(d,!1),()=>s.delete(d))}),i?void 0:[n]);return u.useMemo(()=>{s.forEach((d,f)=>s.set(f,!1))},[n]),We.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=We.createElement(YD,{isPresent:n},e)),We.createElement(Ra.Provider,{value:c},e)};function qD(){return new Map}function ZD(e){return u.useEffect(()=>()=>e(),[])}const Fn=e=>e.key||"";function XD(e,t){e.forEach(n=>{const r=Fn(n);t.set(r,n)})}function JD(e){const t=[];return u.Children.forEach(e,n=>{u.isValidElement(n)&&t.push(n)}),t}const ov=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{kt(!o,"Replace exitBeforeEnter with mode='wait'");const s=u.useContext(Yu).forceRender||GD()[0],l=rv(),c=JD(e);let d=c;const f=u.useRef(new Map).current,p=u.useRef(d),h=u.useRef(new Map).current,m=u.useRef(!0);if(zu(()=>{m.current=!1,XD(c,h),p.current=d}),ZD(()=>{m.current=!0,h.clear(),f.clear()}),m.current)return We.createElement(We.Fragment,null,d.map(C=>We.createElement(zs,{key:Fn(C),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:a},C)));d=[...d];const b=p.current.map(Fn),v=c.map(Fn),$=b.length;for(let C=0;C<$;C++){const x=b[C];v.indexOf(x)===-1&&!f.has(x)&&f.set(x,void 0)}return a==="wait"&&f.size&&(d=[]),f.forEach((C,x)=>{if(v.indexOf(x)!==-1)return;const E=h.get(x);if(!E)return;const w=b.indexOf(x);let A=C;if(!A){const V=()=>{f.delete(x);const y=Array.from(h.keys()).filter(I=>!v.includes(I));if(y.forEach(I=>h.delete(I)),p.current=c.filter(I=>{const M=Fn(I);return M===x||y.includes(M)}),!f.size){if(l.current===!1)return;s(),r&&r()}};A=We.createElement(zs,{key:Fn(E),isPresent:!1,onExitComplete:V,custom:t,presenceAffectsLayout:i,mode:a},E),f.set(x,A)}d.splice(w,0,A)}),d=d.map(C=>{const x=C.key;return f.has(x)?C:We.createElement(zs,{key:Fn(C),isPresent:!0,presenceAffectsLayout:i,mode:a},C)}),process.env.NODE_ENV!=="production"&&a==="wait"&&d.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),We.createElement(We.Fragment,null,f.size?d:d.map(C=>u.cloneElement(C)))};function QD(e){const[t,n]=x0(e,Pd.variantKeys),{as:r,children:o,className:i,content:a,classNames:s,...l}=t,c=r||"span",d=u.useMemo(()=>{var b;return((b=String(a))==null?void 0:b.length)===1||(e==null?void 0:e.isOneChar)},[a,e==null?void 0:e.isOneChar]),f=u.useMemo(()=>{var b;return((b=String(a))==null?void 0:b.length)===0},[a]),p=mo(s==null?void 0:s.badge,i),h=u.useMemo(()=>Pd({...n,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:d,isDot:f}),[...Object.values(n),d,f]),m=()=>({className:h.badge({class:p}),"data-invisible":e.isInvisible,...l});return{Component:c,children:o,content:a,slots:h,classNames:s,disableAnimation:e==null?void 0:e.disableAnimation,isInvisible:e==null?void 0:e.isInvisible,getBadgeProps:m}}var iv=ka((e,t)=>{const{Component:n,children:r,content:o,slots:i,classNames:a,getBadgeProps:s}=QD({...e});return O.jsxs("div",{className:i.base({class:a==null?void 0:a.base}),children:[r,O.jsx(n,{ref:t,...s(),children:o})]})});iv.displayName="NextUI.Badge";var eP=iv;const tP=X.div`
201
+ position: relative;
202
+ display: inline-flex;
203
+ flex-shrink: 0;
204
+ `,nP=X.div`
205
+ position: absolute;
206
+ z-index: 2;
207
+
208
+ transform: ${({placement:e})=>{const t={"top-right":"translate(50%, -50%)","bottom-right":"translate(50%, 50%)","bottom-left":"translate(-50%, 50%)","top-left":"translate(-50%, -50%)"};return e&&t[e]?t[e]:t["top-right"]}};
209
+
210
+ ${({placement:e,shape:t})=>{const n={rectangle:"5%",circle:"10%"};let r=n.rectangle;t&&n[t]&&(r=n[t]);const o={"top-right":{top:r,right:r},"bottom-right":{bottom:r,right:r},"top-left":{top:r,left:r},"bottom-left":{bottom:r,left:r}};return e&&o[e]?o[e]:o["top-right"]}};
211
+ `,rP=X(eP)`
212
+ display: flex;
213
+ flex-wrap: wrap;
214
+ place-content: center;
215
+ z-index: 10;
216
+ box-sizing: border-box;
217
+ border-radius: 9999px;
218
+ padding: 0 0.25rem;
219
+ font-weight: 400;
220
+ user-select: none;
221
+ color: ${({theme:e})=>e.colors.slate[900]};
222
+ transition: transform 0.3s ease-out, opacity 0.3s ease-out;
223
+ white-space: nowrap;
224
+
225
+ ${({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};`}}
226
+
227
+ 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}};
228
+
229
+ background: ${({variant:e,theme:t})=>{var n,r,o,i,a;switch(e){case"flat":return`color-mix(
230
+ in srgb,
231
+ ${(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[800]},
232
+ transparent 45%
233
+ )`;case"faded":return`${(o=t.colors)==null?void 0:o.white}`;case"solid":case"shadow":default:return`${(a=(i=t.colors)==null?void 0:i.slate)==null?void 0:a[800]}`}}};
234
+
235
+ color: ${({variant:e,theme:t})=>{var n,r,o;return e==="faded"?`${(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[800]}`:`${(o=t.colors)==null?void 0:o.white}`}};
236
+
237
+ border: ${({showOutline:e,variant:t,theme:n})=>{var r,o;return t==="faded"?`2px solid ${(o=(r=n.colors)==null?void 0:r.slate)==null?void 0:o[800]}`:e?`2px solid ${n.colors.white}`:"none"}};
238
+
239
+ 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,
240
+ color-mix(
241
+ in srgb,
242
+ ${(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[800]},
243
+ transparent 60%
244
+ )
245
+ 0px 10px 15px -3px,
246
+ color-mix(
247
+ in srgb,
248
+ ${(i=(o=t.colors)==null?void 0:o.slate)==null?void 0:i[800]},
249
+ transparent 60%
250
+ )
251
+ 0px 4px 6px -4px`:"none"}};
252
+ `,oP={hidden:{opacity:0,transform:"scale(0)"},show:{opacity:1,transform:"scale(1)"}};function iP({children:e,isInvisible:t,disableAnimation:n,placement:r,shape:o,...i}){const a=u.useId(),s=n?{duration:0}:{type:"spring",bounce:.3};return O.jsxs(tP,{children:[e,O.jsx(nP,{placement:r,shape:o,children:O.jsx(ov,{children:!t&&O.jsx(Jn.div,{variants:oP,initial:n?"show":"hidden",transition:s,animate:"show",exit:"hidden",children:O.jsx(rP,{...i,isInvisible:t,showOutline:i.showOutline??!0})},`badge-${a}`)})})]})}function aP({children:e,...t}){return O.jsx("span",{...t,"aria-hidden":"true",children:e??O.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),O.jsx("path",{d:"M19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),O.jsx("path",{d:"M5 13C5.55228 13 6 12.5523 6 12C6 11.4477 5.55228 11 5 11C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function sP(e,t){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,...l}=e,c={};n!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:d}=Rr(e,t),{pressProps:f,isPressed:p}=Cn({onPress:r,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),h=me(l,{labelable:!0,isLink:n==="a"}),m=oe(d,f),b=ko();return{isPressed:p,linkProps:oe(h,{...m,...c,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:v=>{var $;($=f.onClick)===null||$===void 0||$.call(f,v),a&&(a(v),console.warn("onClick is deprecated, please use onPress")),!b.isNative&&v.currentTarget instanceof HTMLAnchorElement&&v.currentTarget.href&&!v.isDefaultPrevented()&&i5(v.currentTarget,v)&&(v.preventDefault(),b.open(v.currentTarget,v))}})}}function av(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:h,rel:m,type:b="button"}=e,v;n==="button"?v={type:b,disabled:r}:v={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:p,target:n==="a"?h:void 0,type:n==="input"?b:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?m:void 0};let{pressProps:$,isPressed:C}=Cn({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,isDisabled:r,preventFocusOnPress:c,ref:t}),{focusableProps:x}=Rr(e,t);d&&(x.tabIndex=r?-1:x.tabIndex);let E=oe(x,$,me(e,{labelable:!0}));return{isPressed:C,buttonProps:oe(v,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:w=>{f&&(f(w),console.warn("onClick is deprecated, please use onPress"))}})}}function lP(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=av({...e,onPress:wn(t.toggle,e.onPress)},n);return{isPressed:o,buttonProps:oe(i,{"aria-pressed":r})}}const sv=7e3;let ho=null;function Oi(e,t="assertive",n=sv){ho||(ho=new cP),ho.announce(e,t,n)}function uP(e){ho&&ho.clear(e)}class cP{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=sv){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function hc(e,t,n){let{validationBehavior:r,focus:o}=e;Se(()=>{if(r==="native"&&(n!=null&&n.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(fP(n.current))}});let i=Ne(()=>{t.resetValidation()}),a=Ne(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&n&&d&&pP(d)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),Gh("keyboard")}l.preventDefault()}),s=Ne(()=>{t.commitValidation()});u.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",s),c==null||c.addEventListener("reset",i),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",s),c==null||c.removeEventListener("reset",i)}},[n,a,s,i,r])}function dP(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function fP(e){return{isInvalid:!e.validity.valid,validationDetails:dP(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function pP(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const lv={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},uv={...lv,customError:!0,valid:!1},cr={isInvalid:!1,validationDetails:lv,validationErrors:[]},hP=u.createContext({}),Po="__formValidationState"+Date.now();function Or(e){if(e[Po]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[Po];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return mP(e)}function mP(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:i,validate:a,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:uv}:null,c=u.useMemo(()=>Kp(bP(a,o)),[a,o]);i!=null&&i.validationDetails.valid&&(i=null);let d=u.useContext(hP),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(M=>Hl(d[M])):Hl(d[r]):[],[d,r]),[p,h]=u.useState(d),[m,b]=u.useState(!1);d!==p&&(h(d),b(!1));let v=u.useMemo(()=>Kp(m?[]:f),[m,f]),$=u.useRef(cr),[C,x]=u.useState(cr),E=u.useRef(cr),w=()=>{if(!A)return;V(!1);let M=c||i||$.current;Us(M,E.current)||(E.current=M,x(M))},[A,V]=u.useState(!1);return u.useEffect(w),{realtimeValidation:l||v||c||i||cr,displayValidation:s==="native"?l||v||C:l||v||c||i||C,updateValidation(M){s==="aria"&&!Us(C,M)?x(M):$.current=M},resetValidation(){let M=cr;Us(M,E.current)||(E.current=M,x(M)),s==="native"&&V(!1),b(!0)},commitValidation(){s==="native"&&V(!0),b(!0)}}}function Hl(e){return e?Array.isArray(e)?e:[e]:[]}function bP(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Hl(n)}return[]}function Kp(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:uv}:null}function Us(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function cv(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:a,children:s,"aria-label":l,"aria-labelledby":c,validationState:d="valid",isInvalid:f}=e,p=A=>{A.stopPropagation(),t.setSelected(A.target.checked)},h=s!=null,m=l!=null||c!=null;!h&&!m&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:b,isPressed:v}=Cn({isDisabled:r}),{pressProps:$,isPressed:C}=Cn({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:x}=Rr(e,n),E=oe(b,x),w=me(e,{labelable:!0});return Mo(n,t.isSelected,t.setSelected),{labelProps:oe($,{onClick:A=>A.preventDefault()}),inputProps:oe(w,{"aria-invalid":f||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:p,disabled:r,...i==null?{}:{value:i},name:a,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:v||C,isDisabled:r,isReadOnly:o,isInvalid:f||d==="invalid"}}function No(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=nt(t);let a=nt(),s={};n?(r=r?`${a} ${r}`:a,s={id:a,htmlFor:i==="label"?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=zn({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function dv(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:a}=No(e),s=yn([!!t,!!n,r,o]),l=yn([!!t,!!n,r,o]);return a=oe(a,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:s},errorMessageProps:{id:l}}}function Va(e={}){let{isReadOnly:t}=e,[n,r]=Rt(e.isSelected,e.defaultSelected||!1,e.onChange);function o(a){t||r(a)}function i(){t||r(!n)}return{isSelected:n,setSelected:o,toggle:i}}function fv(e,t,n){let r=Or({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:a}=r.displayValidation,{labelProps:s,inputProps:l,isSelected:c,isPressed:d,isDisabled:f,isReadOnly:p}=cv({...e,isInvalid:o},t,n);hc(e,r,n);let{isIndeterminate:h,isRequired:m,validationBehavior:b="aria"}=e;return u.useEffect(()=>{n.current&&(n.current.indeterminate=!!h)}),{labelProps:s,inputProps:{...l,checked:c,"aria-required":m&&b==="aria"||void 0,required:m&&b==="native"},isSelected:c,isPressed:d,isDisabled:f,isReadOnly:p,isInvalid:o,validationErrors:i,validationDetails:a}}const vP=new WeakMap;function gP(e,t,n){const r=Va({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(v){v?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(v)}});let{name:o,descriptionId:i,errorMessageId:a,validationBehavior:s}=vP.get(t);var l;s=(l=e.validationBehavior)!==null&&l!==void 0?l:s;let{realtimeValidation:c}=Or({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),d=u.useRef(cr),f=()=>{t.setInvalid(e.value,c.isInvalid?c:d.current)};u.useEffect(f);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:c,h=s==="native"?t.displayValidation:p;var m;let b=fv({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(m=e.isRequired)!==null&&m!==void 0?m:t.isRequired,validationBehavior:s,[Po]:{realtimeValidation:p,displayValidation:h,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(v){d.current=v,f()}}},r,n);return{...b,inputProps:{...b.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,i].filter(Boolean).join(" ")||void 0}}}var pv={};pv={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var hv={};hv={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var mv={};mv={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var bv={};bv={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var vv={};vv={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var gv={};gv={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var yv={};yv={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var $v={};$v={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var xv={};xv={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var wv={};wv={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var Cv={};Cv={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var Ev={};Ev={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Dv={};Dv={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var Pv={};Pv={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var Sv={};Sv={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var Tv={};Tv={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var Av={};Av={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var kv={};kv={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var Mv={};Mv={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var Rv={};Rv={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Fv={};Fv={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var Bv={};Bv={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var Iv={};Iv={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Ov={};Ov={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Lv={};Lv={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var Vv={};Vv={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var Nv={};Nv={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var _v={};_v={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var Kv={};Kv={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var jv={};jv={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var zv={};zv={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var Uv={};Uv={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var Hv={};Hv={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var Gv={};Gv={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};function Gl(e){return Si()?e.altKey:e.ctrlKey}function dr(e){return sn()?e.metaKey:e.ctrlKey}const yP=1e3;function $P(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=u.useRef({search:"",timeout:null}).current,i=a=>{let s=xP(a.key);if(!s||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))return;s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s;let l=t.getKeyForSearch(o.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(n.setFocusedKey(l),r&&r(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},yP)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function xP(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function mc(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:h=r,linkBehavior:m="action"}=e,{direction:b}=Ze(),v=ko(),$=M=>{if(M.altKey&&M.key==="Tab"&&M.preventDefault(),!r.current.contains(M.target))return;const k=(G,D)=>{if(G!=null){if(t.isLink(G)&&m==="selection"&&l&&!Gl(M)){dn.flushSync(()=>{t.setFocusedKey(G,D)});let T=h.current.querySelector(`[data-key="${CSS.escape(G.toString())}"]`);v.open(T,M);return}if(t.setFocusedKey(G,D),t.isLink(G)&&m==="override")return;M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):l&&!Gl(M)&&t.replaceSelection(G)}};switch(M.key){case"ArrowDown":if(n.getKeyBelow){var R,S;M.preventDefault();let G=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n);G==null&&i&&(G=(S=n.getFirstKey)===null||S===void 0?void 0:S.call(n,t.focusedKey)),k(G)}break;case"ArrowUp":if(n.getKeyAbove){var F,K;M.preventDefault();let G=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(F=n.getLastKey)===null||F===void 0?void 0:F.call(n);G==null&&i&&(G=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n,t.focusedKey)),k(G)}break;case"ArrowLeft":if(n.getKeyLeftOf){var L,P;M.preventDefault();let G=n.getKeyLeftOf(t.focusedKey);G==null&&i&&(G=b==="rtl"?(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n,t.focusedKey):(P=n.getLastKey)===null||P===void 0?void 0:P.call(n,t.focusedKey)),k(G,b==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var W,J;M.preventDefault();let G=n.getKeyRightOf(t.focusedKey);G==null&&i&&(G=b==="rtl"?(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,t.focusedKey):(J=n.getFirstKey)===null||J===void 0?void 0:J.call(n,t.focusedKey)),k(G,b==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){M.preventDefault();let G=n.getFirstKey(t.focusedKey,dr(M));t.setFocusedKey(G),dr(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):l&&t.replaceSelection(G)}break;case"End":if(n.getLastKey){M.preventDefault();let G=n.getLastKey(t.focusedKey,dr(M));t.setFocusedKey(G),dr(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):l&&t.replaceSelection(G)}break;case"PageDown":if(n.getKeyPageBelow){M.preventDefault();let G=n.getKeyPageBelow(t.focusedKey);k(G)}break;case"PageUp":if(n.getKeyPageAbove){M.preventDefault();let G=n.getKeyPageAbove(t.focusedKey);k(G)}break;case"a":dr(M)&&t.selectionMode==="multiple"&&s!==!0&&(M.preventDefault(),t.selectAll());break;case"Escape":M.preventDefault(),a||t.clearSelection();break;case"Tab":if(!f){if(M.shiftKey)r.current.focus();else{let G=lt(r.current,{tabbable:!0}),D,T;do T=G.lastChild(),T&&(D=T);while(T);D&&!D.contains(document.activeElement)&&jt(D)}break}}},C=u.useRef({top:0,left:0});zi(h,"scroll",p?null:()=>{C.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let x=M=>{if(t.isFocused){M.currentTarget.contains(M.target)||t.setFocused(!1);return}if(M.currentTarget.contains(M.target)){if(t.setFocused(!0),t.focusedKey==null){let S=K=>{K!=null&&(t.setFocusedKey(K),l&&t.replaceSelection(K))},F=M.relatedTarget;var k,R;F&&M.currentTarget.compareDocumentPosition(F)&Node.DOCUMENT_POSITION_FOLLOWING?S((k=t.lastSelectedKey)!==null&&k!==void 0?k:n.getLastKey()):S((R=t.firstSelectedKey)!==null&&R!==void 0?R:n.getFirstKey())}else p||(h.current.scrollTop=C.current.top,h.current.scrollLeft=C.current.left);if(!p&&t.focusedKey!=null){let S=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);S&&(S.contains(document.activeElement)||jt(S),Gi()==="keyboard"&&al(S,{containingElement:r.current}))}}},E=M=>{M.currentTarget.contains(M.relatedTarget)||t.setFocused(!1)};const w=u.useRef(o);u.useEffect(()=>{if(w.current){let M=null;o==="first"&&(M=n.getFirstKey()),o==="last"&&(M=n.getLastKey());let k=t.selectedKeys;if(k.size){for(let R of k)if(t.canSelectItem(R)){M=R;break}}t.setFocused(!0),t.setFocusedKey(M),M==null&&!d&&Hn(r.current)}},[]);let A=u.useRef(t.focusedKey);u.useEffect(()=>{let M=Gi();if(t.isFocused&&t.focusedKey!=null&&(h!=null&&h.current)){let k=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);k&&(M==="keyboard"||w.current)&&(p||Vh(h.current,k),M!=="virtual"&&al(k,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&A.current!=null&&Hn(r.current),A.current=t.focusedKey,w.current=!1},[p,h,t.focusedKey,t.isFocused,r]);let V={onKeyDown:$,onFocus:x,onBlur:E,onMouseDown(M){h.current===M.target&&M.preventDefault()}},{typeSelectProps:y}=$P({keyboardDelegate:n,selectionManager:t});c||(V=oe(y,V));let I;return d||(I=t.focusedKey==null?0:-1),{collectionProps:{...V,tabIndex:I}}}function bc(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:a,isDisabled:s,onAction:l,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=ko(),p=P=>{if(P.pointerType==="keyboard"&&Gl(P))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(d==="selection"){f.open(r.current,P),t.setSelectedKeys(t.selectedKeys);return}else if(d==="override"||d==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):P&&P.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||P&&(dr(P)||P.pointerType==="touch"||P.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};u.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(a?a():document.activeElement!==r.current&&Hn(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),s=s||t.isDisabled(n);let h={};!i&&!s?h={tabIndex:n===t.focusedKey?0:-1,onFocus(P){P.target===r.current&&t.setFocusedKey(n)}}:s&&(h.onMouseDown=P=>{P.preventDefault()});let m=t.isLink(n)&&d==="override",b=t.isLink(n)&&d!=="selection"&&d!=="none",v=!s&&t.canSelectItem(n)&&!m,$=(l||b)&&!s,C=$&&(t.selectionBehavior==="replace"?!v:!v||t.isEmpty),x=$&&v&&t.selectionBehavior==="replace",E=C||x,w=u.useRef(null),A=E&&v,V=u.useRef(!1),y=u.useRef(!1),I=P=>{l&&l(),b&&f.open(r.current,P)},M={};o?(M.onPressStart=P=>{w.current=P.pointerType,V.current=A,P.pointerType==="keyboard"&&(!E||zp())&&p(P)},c?(M.onPressUp=C?null:P=>{P.pointerType!=="keyboard"&&v&&p(P)},M.onPress=C?I:null):M.onPress=P=>{if(C||x&&P.pointerType!=="mouse"){if(P.pointerType==="keyboard"&&!jp())return;I(P)}else P.pointerType!=="keyboard"&&v&&p(P)}):(M.onPressStart=P=>{w.current=P.pointerType,V.current=A,y.current=C,v&&(P.pointerType==="mouse"&&!C||P.pointerType==="keyboard"&&(!$||zp()))&&p(P)},M.onPress=P=>{(P.pointerType==="touch"||P.pointerType==="pen"||P.pointerType==="virtual"||P.pointerType==="keyboard"&&E&&jp()||P.pointerType==="mouse"&&y.current)&&(E?I(P):v&&p(P))}),h["data-key"]=n,M.preventFocusOnPress=i;let{pressProps:k,isPressed:R}=Cn(M),S=x?P=>{w.current==="mouse"&&(P.stopPropagation(),P.preventDefault(),I(P))}:void 0,{longPressProps:F}=qh({isDisabled:!A,onLongPress(P){P.pointerType==="touch"&&(p(P),t.setSelectionBehavior("toggle"))}}),K=P=>{w.current==="touch"&&V.current&&P.preventDefault()},L=t.isLink(n)?P=>{jn.isOpening||P.preventDefault()}:void 0;return{itemProps:oe(h,v||C?k:{},A?F:{},{onDoubleClick:S,onDragStartCapture:K,onClick:L}),isPressed:R,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:v,hasAction:E}}function jp(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function zp(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class vc{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let o=this.getItem(t);if(!o)return null;let i=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(i,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){let n=this.collection.getItem(t);if((n==null?void 0:n.type)==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!ji(n))return this.getFirstKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.max(0,i.x-a+i.width-o.width);for(;r&&i.x-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.max(0,i.y-a+i.height-o.height);for(;r&&i.y-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!ji(n))return this.getLastKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.min(n.scrollWidth,i.x-a-i.width+o.width);for(;r&&i.x-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.min(n.scrollHeight,i.y-a-i.height+o.height);for(;r&&i.y-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o),a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getKeyBelow(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.orientation=n.orientation,this.direction=n.direction,this.layout=n.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Wv(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i}=e,a=Fu({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,l=u.useMemo(()=>i||new vc(n,s==="selection"?new Set:r,o,a),[i,n,r,o,a,s]),{collectionProps:c}=mc({...e,ref:o,selectionManager:t,keyboardDelegate:l});return{listProps:c}}class wP{build(t,n){return this.context=n,Up(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];u.Children.forEach(n,a=>{o.push(a)});let i=0;for(let a of o){let s=this.getFullNode({element:a,index:i},{});for(let l of s)i++,yield l}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var a;let s=(a=i.key)!==null&&a!==void 0?a:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let l=this.cache.get(t.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=t.index,l.parentKey=o?o.key:null,yield l;return}i=n.renderer(t.value)}if(u.isValidElement(i)){let l=i.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let p=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${p}> in collection.`)}let c=l.getCollectionNode(i.props,this.context),d=t.index,f=c.next();for(;!f.done&&f.value;){let p=f.value;t.index=d;let h=p.key;h||(h=p.element?null:this.getKey(i,t,n,r));let b=[...this.getFullNode({...p,key:h,index:d,wrapper:CP(t.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${i.key}`:i.key,o)];for(let v of b){if(v.value=p.value||t.value,v.value&&this.cache.set(v.value,v),t.type&&v.type!==t.type)throw new Error(`Unsupported type <${Hs(v.type)}> in <${Hs(o.type)}>. Only <${Hs(t.type)}> is supported.`);d++,yield v}f=c.next(b)}return}if(t.key==null)return;let a=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Up(function*(){if(!t.hasChildNodes)return;let l=0;for(let c of t.childNodes()){c.key!=null&&(c.key=`${s.key}${c.key}`),c.index=l;let d=a.getFullNode(c,a.getChildState(n,c),s.key,s);for(let f of d)l++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function Up(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function CP(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Hs(e){return e[0].toUpperCase()+e.slice(1)}function Yv(e,t,n){let r=u.useMemo(()=>new wP,[]),{children:o,items:i,collection:a}=e;return u.useMemo(()=>{if(a)return a;let l=r.build({children:o,items:i},n);return t(l)},[r,o,i,a,n,t])}function Na(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function EP(e){return DP(e,0)}function DP(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Gs(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Hp(e,t),t],o=[...Hp(e,n),n],i=r.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function Hp(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const Gp=new WeakMap;function gc(e){let t=Gp.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(Na(o,e)):t++};return n(e),Gp.set(e,t),t}const _a=new WeakMap;function PP(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function qv(e,t){let n=_a.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${PP(t)}`}function SP(e,t,n){let r=me(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:a}=Wv({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=Mr({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=nt(e.id);_a.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:c,fieldProps:d}=No({...e,id:l,labelElementType:"span"});return{labelProps:c,listBoxProps:oe(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...oe(d,a)})}}function TP(e,t,n){var r;let{key:o}=e,i=_a.get(t);var a;let s=(a=e.isDisabled)!==null&&a!==void 0?a:t.disabledKeys.has(o);var l;let c=(l=e.isSelected)!==null&&l!==void 0?l:t.selectionManager.isSelected(o);var d;let f=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:i==null?void 0:i.shouldSelectOnPressUp;var p;let h=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:i==null?void 0:i.shouldFocusOnHover;var m;let b=(m=e.shouldUseVirtualFocus)!==null&&m!==void 0?m:i==null?void 0:i.shouldUseVirtualFocus;var v;let $=(v=e.isVirtualized)!==null&&v!==void 0?v:i==null?void 0:i.isVirtualized,C=yn(),x=yn(),E={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};sn()&&hu()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=C,E["aria-describedby"]=x);let w=t.collection.getItem(o);if($){let S=Number(w==null?void 0:w.index);E["aria-posinset"]=Number.isNaN(S)?void 0:S+1,E["aria-setsize"]=gc(t.collection)}let{itemProps:A,isPressed:V,isFocused:y,hasAction:I,allowsSelection:M}=bc({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:$,shouldUseVirtualFocus:b,isDisabled:s,onAction:i!=null&&i.onAction?()=>{var S;return i==null||(S=i.onAction)===null||S===void 0?void 0:S.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:k}=Ye({isDisabled:s||!h,onHoverStart(){wr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),R=me(w==null?void 0:w.props,{isLink:!!(!(w==null||(r=w.props)===null||r===void 0)&&r.href)});return delete R.id,{optionProps:{...E,...oe(R,A,k),id:qv(t,o)},labelProps:{id:C},descriptionProps:{id:x},isFocused:y,isFocusVisible:y&&wr(),isSelected:c,isDisabled:s,isPressed:V,allowsSelection:M,hasAction:I}}function AP(e){let{heading:t,"aria-label":n}=e,r=nt();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Zv={};Zv={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Xv={};Xv={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Jv={};Jv={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Qv={};Qv={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var eg={};eg={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var tg={};tg={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var ng={};ng={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var rg={};rg={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var og={};og={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var ig={};ig={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var ag={};ag={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var sg={};sg={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var lg={};lg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var ug={};ug={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var cg={};cg={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var dg={};dg={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var fg={};fg={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var pg={};pg={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var hg={};hg={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var mg={};mg={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var bg={};bg={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var vg={};vg={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var gg={};gg={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var yg={};yg={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var $g={};$g={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var xg={};xg={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var wg={};wg={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Cg={};Cg={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Eg={};Eg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Dg={};Dg={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Pg={};Pg={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Sg={};Sg={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Tg={};Tg={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Ag={};Ag={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function kP(e){return e&&e.__esModule?e.default:e}var kg={};kg={"ar-AE":Zv,"bg-BG":Xv,"cs-CZ":Jv,"da-DK":Qv,"de-DE":eg,"el-GR":tg,"en-US":ng,"es-ES":rg,"et-EE":og,"fi-FI":ig,"fr-FR":ag,"he-IL":sg,"hr-HR":lg,"hu-HU":ug,"it-IT":cg,"ja-JP":dg,"ko-KR":fg,"lt-LT":pg,"lv-LV":hg,"nb-NO":mg,"nl-NL":bg,"pl-PL":vg,"pt-BR":gg,"pt-PT":yg,"ro-RO":$g,"ru-RU":xg,"sk-SK":wg,"sl-SI":Cg,"sr-SP":Eg,"sv-SE":Dg,"tr-TR":Pg,"uk-UA":Sg,"zh-CN":Tg,"zh-TW":Ag};function MP(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=nt(),{triggerProps:s,overlayProps:l}=gw({type:r},t,n),c=h=>{if(!o&&!(i==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},d=Fr(kP(kg),"@react-aria/menu"),{longPressProps:f}=qh({isDisabled:o||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&t.toggle(h.pointerType==="virtual"?"first":null)},onPress(h){h.pointerType==="touch"&&!o&&t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?p:f,id:a,onKeyDown:c},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const Mg=new WeakMap;function RP(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=me(e,{labelable:!0}),{listProps:l}=Wv({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Mg.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:oe(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...l,onKeyDown:c=>{c.key!=="Escape"&&l.onKeyDown(c)}})}}function Rg(e,t,n){var r;let{key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":s,onPressStart:l,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:p,onHoverStart:h,onHoverChange:m,onHoverEnd:b,onKeyDown:v,onKeyUp:$,onFocus:C,onFocusChange:x,onBlur:E}=e,w=!!s;var A;let V=(A=e.isDisabled)!==null&&A!==void 0?A:t.disabledKeys.has(o);var y;let I=(y=e.isSelected)!==null&&y!==void 0?y:t.selectionManager.isSelected(o),M=Mg.get(t),k=e.onClose||M.onClose,R=w?()=>{}:e.onAction||M.onAction,S=ko(),F=ee=>{R&&R(o),ee.target instanceof HTMLAnchorElement&&S.open(ee.target,ee)},K="menuitem";w||(t.selectionManager.selectionMode==="single"?K="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(K="menuitemcheckbox"));let L=yn(),P=yn(),W=yn(),J={"aria-disabled":V||void 0,role:K,"aria-label":e["aria-label"],"aria-labelledby":L,"aria-describedby":[P,W].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};t.selectionManager.selectionMode!=="none"&&!w&&(J["aria-checked"]=I);let G=t.collection.getItem(o);a&&(J["aria-posinset"]=G==null?void 0:G.index,J["aria-setsize"]=gc(t.collection));let D=ee=>{ee.pointerType==="keyboard"&&F(ee),l==null||l(ee)},T=ee=>{ee.pointerType!=="keyboard"&&(F(ee),!w&&k&&(i??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(o)))&&k()),c==null||c(ee)},{itemProps:z,isFocused:H}=bc({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:Z,isPressed:N}=Cn({onPressStart:D,onPress:d,onPressUp:T,onPressChange:f,onPressEnd:p,isDisabled:V}),{hoverProps:j}=Ye({isDisabled:V,onHoverStart(ee){wr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),h==null||h(ee)},onHoverChange:m,onHoverEnd:b}),{keyboardProps:_}=yu({onKeyDown:ee=>{if(ee.repeat){ee.continuePropagation();return}switch(ee.key){case" ":!V&&t.selectionManager.selectionMode==="none"&&!w&&i!==!1&&k&&k();break;case"Enter":!V&&i!==!1&&!w&&k&&k();break;default:w||ee.continuePropagation(),v==null||v(ee);break}},onKeyUp:$}),{focusProps:Q}=Ea({onBlur:E,onFocus:C,onFocusChange:x}),ne=me(G.props,{isLink:!!(!(G==null||(r=G.props)===null||r===void 0)&&r.href)});return delete ne.id,{menuItemProps:{...J,...oe(ne,w?{onFocus:z.onFocus}:z,Z,j,_,Q),tabIndex:z.tabIndex!=null?-1:void 0},labelProps:{id:L},descriptionProps:{id:P},keyboardShortcutProps:{id:W},isFocused:H,isSelected:I,isPressed:N,isDisabled:V}}function FP(e){let{heading:t,"aria-label":n}=e,r=nt();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}const Ei=2,BP=50,IP=1e3,Wp=Math.PI/12;function OP(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:o}=e,i=u.useRef(),a=u.useRef(),s=u.useRef(0),l=u.useRef(),c=u.useRef(),d=u.useRef(),f=u.useRef(2),[p,h]=u.useState(!1);bu({ref:n,onResize:()=>{n.current&&(a.current=n.current.getBoundingClientRect(),d.current=void 0)}});let b=()=>{h(!1),f.current=Ei},v=T5();u.useEffect(()=>{p&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,p]),u.useEffect(()=>{let $=n.current,C=t.current;if(o||!$||!r||v!=="pointer"){b();return}a.current=$.getBoundingClientRect();let x=E=>{if(E.pointerType==="touch"||E.pointerType==="pen")return;let w=Date.now();if(w-s.current<BP)return;clearTimeout(l.current),clearTimeout(c.current);let{clientX:A,clientY:V}=E;if(!i.current){i.current={x:A,y:V};return}if(!a.current)return;if(d.current||(d.current=A>a.current.right?"left":"right"),A<C.getBoundingClientRect().left||A>C.getBoundingClientRect().right||V<C.getBoundingClientRect().top||V>C.getBoundingClientRect().bottom){b();return}let y=i.current.x,I=i.current.y,M=d.current==="right"?a.current.left-y:y-a.current.right,k=Math.atan2(I-a.current.top,M)+Wp,R=Math.atan2(I-a.current.bottom,M)-Wp,S=Math.atan2(I-V,d.current==="left"?-(A-y):A-y),F=S<k&&S>R;f.current=F?Math.min(f.current+1,Ei):Math.max(f.current-1,0),f.current>=Ei?h(!0):h(!1),s.current=w,i.current={x:A,y:V},F&&(l.current=setTimeout(()=>{b(),c.current=setTimeout(()=>{let K=document.elementFromPoint(A,V);K&&C.contains(K)&&K.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},IP))};return window.addEventListener("pointermove",x),()=>{window.removeEventListener("pointermove",x),clearTimeout(l.current),clearTimeout(c.current),f.current=Ei}},[o,r,t,v,h,n])}function LP(e,t,n){let{parentMenuRef:r,submenuRef:o,type:i="menu",isDisabled:a,node:s,delay:l=200}=e,c=nt(),d=nt(),{direction:f}=Ze(),p=u.useRef(),h=u.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=void 0)},[p]),m=Ne(y=>{h(),t.open(y)}),b=Ne(()=>{h(),t.close()});Se(()=>()=>{h()},[h]);let v=y=>{switch(y.key){case"ArrowLeft":f==="ltr"&&y.currentTarget.contains(y.target)&&(y.stopPropagation(),b(),n.current.focus());break;case"ArrowRight":f==="rtl"&&y.currentTarget.contains(y.target)&&(y.stopPropagation(),b(),n.current.focus());break;case"Escape":y.stopPropagation(),t.closeAll();break}},$={id:d,"aria-label":s.textValue,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:t.focusStrategy,onKeyDown:v}},C=y=>{switch(y.key){case"ArrowRight":a||(f==="ltr"?(t.isOpen||m("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?b():y.continuePropagation());break;case"ArrowLeft":a||(f==="rtl"?(t.isOpen||m("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?b():y.continuePropagation());break;case"Escape":t.closeAll();break;default:y.continuePropagation();break}},x=y=>{!a&&(y.pointerType==="virtual"||y.pointerType==="keyboard")&&m("first")},E=y=>{!a&&(y.pointerType==="touch"||y.pointerType==="mouse")&&m()},w=y=>{a||(y&&!t.isOpen?p.current||(p.current=setTimeout(()=>{m()},l)):y||h())},A=y=>{t.isOpen&&r.current.contains(y.relatedTarget)&&b()},V=y=>y!==n.current;return OP({menuRef:r,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:c,"aria-controls":t.isOpen?d:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:E,onHoverChange:w,onKeyDown:C,onBlur:A,isOpen:t.isOpen},submenuProps:$,popoverProps:{isNonModal:!0,disableFocusManagement:!0,shouldCloseOnInteractOutside:V}}}function yc(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:a="text",validationBehavior:s="aria"}=e,[l,c]=Rt(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=Rr(e,t),f=Or({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:m}=f.displayValidation,{labelProps:b,fieldProps:v,descriptionProps:$,errorMessageProps:C}=dv({...e,isInvalid:p,errorMessage:e.errorMessage||h}),x=me(e,{labelable:!0});const E={type:a,pattern:e.pattern};return Mo(t,l,c),hc(e,f,t),u.useEffect(()=>{if(t.current instanceof Tt(t.current).HTMLTextAreaElement){let w=t.current;Object.defineProperty(w,"defaultValue",{get:()=>w.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:oe(x,n==="input"&&E,{disabled:r,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:w=>c(w.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...v}),descriptionProps:$,errorMessageProps:C,isInvalid:p,validationErrors:h,validationDetails:m}}function Yp(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function VP(e,t,n){let r=Ne(f=>{let p=n.current,h;switch(f.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":h=p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentForward":h=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd+1):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentBackward":h=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart-1)+p.value.slice(p.selectionStart):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":h=p.value.slice(p.selectionStart);break;default:f.data!=null&&(h=p.value.slice(0,p.selectionStart)+f.data+p.value.slice(p.selectionEnd));break}(h==null||!t.validate(h))&&f.preventDefault()});u.useEffect(()=>{if(!Yp())return;let f=n.current;return f.addEventListener("beforeinput",r,!1),()=>{f.removeEventListener("beforeinput",r,!1)}},[n,r]);let o=Yp()?null:f=>{let p=f.target.value.slice(0,f.target.selectionStart)+f.data+f.target.value.slice(f.target.selectionEnd);t.validate(p)||f.preventDefault()},{labelProps:i,inputProps:a,descriptionProps:s,errorMessageProps:l,...c}=yc(e,n),d=u.useRef(null);return{inputProps:oe(a,{onBeforeInput:o,onCompositionStart(){let{value:f,selectionStart:p,selectionEnd:h}=n.current;d.current={value:f,selectionStart:p,selectionEnd:h}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:f,selectionStart:p,selectionEnd:h}=d.current;n.current.value=f,n.current.setSelectionRange(p,h),t.setInputValue(f)}}}),labelProps:i,descriptionProps:s,errorMessageProps:l,...c}}function NP(e){return e&&e.__esModule?e.default:e}var Fg={};Fg={"ar-AE":pv,"bg-BG":hv,"cs-CZ":mv,"da-DK":bv,"de-DE":vv,"el-GR":gv,"en-US":yv,"es-ES":$v,"et-EE":xv,"fi-FI":wv,"fr-FR":Cv,"he-IL":Ev,"hr-HR":Dv,"hu-HU":Pv,"it-IT":Sv,"ja-JP":Tv,"ko-KR":Av,"lt-LT":kv,"lv-LV":Mv,"nb-NO":Rv,"nl-NL":Fv,"pl-PL":Bv,"pt-BR":Iv,"pt-PT":Ov,"ro-RO":Lv,"ru-RU":Vv,"sk-SK":Nv,"sl-SI":_v,"sr-SP":Kv,"sv-SE":jv,"tr-TR":zv,"uk-UA":Uv,"zh-CN":Hv,"zh-TW":Gv};function _P(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:a,shouldFocusWrap:s,isReadOnly:l,isDisabled:c}=e,d=Fr(NP(Fg),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:p}=MP({type:"listbox",isDisabled:c||l},t,n);_a.set(t,{id:p.id});let h=u.useMemo(()=>a||new vc(t.collection,t.disabledKeys,i),[a,t.collection,t.disabledKeys,i]),{collectionProps:m}=mc({selectionManager:t.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),b=ko(),v=j=>{switch(j.key){case"Enter":case"Tab":if(t.isOpen&&j.key==="Enter"&&j.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(j.key==="Enter"){let _=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);_ instanceof HTMLAnchorElement&&b.open(_,j)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&j.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},$=j=>{var _;j.relatedTarget===(n==null?void 0:n.current)||!((_=r.current)===null||_===void 0)&&_.contains(j.relatedTarget)||(e.onBlur&&e.onBlur(j),t.setFocused(!1))},C=j=>{t.isFocused||(e.onFocus&&e.onFocus(j),t.setFocused(!0))},{isInvalid:x,validationErrors:E,validationDetails:w}=t.displayValidation,{labelProps:A,inputProps:V,descriptionProps:y,errorMessageProps:I}=yc({...e,onChange:t.setInputValue,onKeyDown:l?e.onKeyDown:wn(t.isOpen&&m.onKeyDown,v,e.onKeyDown),onBlur:$,value:t.inputValue,onFocus:C,autoComplete:"off",validate:void 0,[Po]:t},o),M=j=>{j.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},k=j=>{j.pointerType!=="touch"&&(o.current.focus(),t.toggle(j.pointerType==="keyboard"||j.pointerType==="virtual"?"first":null,"manual"))},R=zn({id:f.id,"aria-label":d.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),S=zn({id:p.id,"aria-label":d.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),F=u.useRef(0),K=j=>{if(c||l)return;if(j.timeStamp-F.current<500){j.preventDefault(),o.current.focus();return}let _=j.target.getBoundingClientRect(),Q=j.changedTouches[0],ne=Math.ceil(_.left+.5*_.width),ee=Math.ceil(_.top+.5*_.height);Q.clientX===ne&&Q.clientY===ee&&(j.preventDefault(),o.current.focus(),t.toggle(null,"manual"),F.current=j.timeStamp)},L=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var P;let W=(P=L==null?void 0:L.parentKey)!==null&&P!==void 0?P:null;var J;let G=(J=t.selectionManager.focusedKey)!==null&&J!==void 0?J:null,D=u.useRef(W),T=u.useRef(G);u.useEffect(()=>{if(Si()&&L!=null&&G!==T.current){let j=t.selectionManager.isSelected(G),_=W!=null?t.collection.getItem(W):null,Q=(_==null?void 0:_["aria-label"])||(typeof(_==null?void 0:_.rendered)=="string"?_.rendered:"")||"",ne=d.format("focusAnnouncement",{isGroupChange:_&&W!==D.current,groupTitle:Q,groupCount:_?[...Na(_,t.collection)].length:0,optionText:L["aria-label"]||L.textValue||"",isSelected:j});Oi(ne)}D.current=W,T.current=G});let z=gc(t.collection),H=u.useRef(z),Z=u.useRef(t.isOpen);u.useEffect(()=>{let j=t.isOpen!==Z.current&&(t.selectionManager.focusedKey==null||Si());if(t.isOpen&&(j||z!==H.current)){let _=d.format("countAnnouncement",{optionCount:z});Oi(_)}H.current=z,Z.current=t.isOpen});let N=u.useRef(t.selectedKey);return u.useEffect(()=>{if(Si()&&t.isFocused&&t.selectedItem&&t.selectedKey!==N.current){let j=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",_=d.format("selectedAnnouncement",{optionText:j});Oi(_)}N.current=t.selectedKey}),u.useEffect(()=>{if(t.isOpen)return Iu([o.current,r.current])},[t.isOpen,o,r]),{labelProps:A,buttonProps:{...f,...R,excludeFromTabOrder:!0,onPress:M,onPressStart:k,isDisabled:c||l},inputProps:oe(V,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":L?qv(t,L.key):void 0,onTouchEnd:K,autoCorrect:"off",spellCheck:"false"}),listBoxProps:oe(p,S,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:y,errorMessageProps:I,isInvalid:x,validationErrors:E,validationDetails:w}}var Bg={};Bg={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Ig={};Ig={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Og={};Og={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Lg={};Lg={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Vg={};Vg={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var Ng={};Ng={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var _g={};_g={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var Kg={};Kg={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var jg={};jg={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var zg={};zg={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var Ug={};Ug={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var Hg={};Hg={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var Gg={};Gg={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Wg={};Wg={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var Yg={};Yg={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var qg={};qg={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var Zg={};Zg={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var Xg={};Xg={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var Jg={};Jg={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var Qg={};Qg={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var ey={};ey={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var ty={};ty={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var ny={};ny={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var ry={};ry={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var oy={};oy={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var iy={};iy={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var ay={};ay={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var sy={};sy={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var ly={};ly={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var uy={};uy={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var cy={};cy={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var dy={};dy={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var fy={};fy={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var py={};py={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var hy={};hy={Empty:"فارغ"};var my={};my={Empty:"Изпразни"};var by={};by={Empty:"Prázdné"};var vy={};vy={Empty:"Tom"};var gy={};gy={Empty:"Leer"};var yy={};yy={Empty:"Άδειο"};var $y={};$y={Empty:"Empty"};var xy={};xy={Empty:"Vacío"};var wy={};wy={Empty:"Tühjenda"};var Cy={};Cy={Empty:"Tyhjä"};var Ey={};Ey={Empty:"Vide"};var Dy={};Dy={Empty:"ריק"};var Py={};Py={Empty:"Prazno"};var Sy={};Sy={Empty:"Üres"};var Ty={};Ty={Empty:"Vuoto"};var Ay={};Ay={Empty:"空"};var ky={};ky={Empty:"비어 있음"};var My={};My={Empty:"Tuščias"};var Ry={};Ry={Empty:"Tukšs"};var Fy={};Fy={Empty:"Tom"};var By={};By={Empty:"Leeg"};var Iy={};Iy={Empty:"Pusty"};var Oy={};Oy={Empty:"Vazio"};var Ly={};Ly={Empty:"Vazio"};var Vy={};Vy={Empty:"Gol"};var Ny={};Ny={Empty:"Не заполнено"};var _y={};_y={Empty:"Prázdne"};var Ky={};Ky={Empty:"Prazen"};var jy={};jy={Empty:"Prazno"};var zy={};zy={Empty:"Tomt"};var Uy={};Uy={Empty:"Boş"};var Hy={};Hy={Empty:"Пусто"};var Gy={};Gy={Empty:"空"};var Wy={};Wy={Empty:"空白"};function KP(e){return e&&e.__esModule?e.default:e}var Yy={};Yy={"ar-AE":hy,"bg-BG":my,"cs-CZ":by,"da-DK":vy,"de-DE":gy,"el-GR":yy,"en-US":$y,"es-ES":xy,"et-EE":wy,"fi-FI":Cy,"fr-FR":Ey,"he-IL":Dy,"hr-HR":Py,"hu-HU":Sy,"it-IT":Ty,"ja-JP":Ay,"ko-KR":ky,"lt-LT":My,"lv-LV":Ry,"nb-NO":Fy,"nl-NL":By,"pl-PL":Iy,"pt-BR":Oy,"pt-PT":Ly,"ro-RO":Vy,"ru-RU":Ny,"sk-SK":_y,"sl-SI":Ky,"sr-SP":jy,"sv-SE":zy,"tr-TR":Uy,"uk-UA":Hy,"zh-CN":Gy,"zh-TW":Wy};function qy(e){const t=u.useRef();let{value:n,textValue:r,minValue:o,maxValue:i,isDisabled:a,isReadOnly:s,isRequired:l,onIncrement:c,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:h,onIncrementToMax:m}=e;const b=Fr(KP(Yy),"@react-aria/spinbutton"),v=()=>clearTimeout(t.current);u.useEffect(()=>()=>v(),[]);let $=k=>{if(!(k.ctrlKey||k.metaKey||k.shiftKey||k.altKey||s))switch(k.key){case"PageUp":if(d){k.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":c&&(k.preventDefault(),c==null||c());break;case"PageDown":if(p){k.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":f&&(k.preventDefault(),f==null||f());break;case"Home":h&&(k.preventDefault(),h==null||h());break;case"End":m&&(k.preventDefault(),m==null||m());break}},C=u.useRef(!1),x=()=>{C.current=!0},E=()=>{C.current=!1},w=r===""?b.format("Empty"):(r||`${n}`).replace("-","−");u.useEffect(()=>{C.current&&(uP("assertive"),Oi(w,"assertive"))},[w]);const A=Ne(k=>{v(),c==null||c(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n<i)&&A(60)},k)}),V=Ne(k=>{v(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&V(60)},k)});let y=k=>{k.preventDefault()},{addGlobalListener:I,removeAllGlobalListeners:M}=kr();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":w,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":a||void 0,"aria-readonly":s||void 0,"aria-required":l||void 0,onKeyDown:$,onFocus:x,onBlur:E},incrementButtonProps:{onPressStart:()=>{A(400),I(window,"contextmenu",y)},onPressEnd:()=>{v(),M()},onFocus:x,onBlur:E},decrementButtonProps:{onPressStart:()=>{V(400),I(window,"contextmenu",y)},onPressEnd:()=>{v(),M()},onFocus:x,onBlur:E}}}function Zy(e){return e&&e.__esModule?e.default:e}var $c={};$c={"ar-AE":Bg,"bg-BG":Ig,"cs-CZ":Og,"da-DK":Lg,"de-DE":Vg,"el-GR":Ng,"en-US":_g,"es-ES":Kg,"et-EE":jg,"fi-FI":zg,"fr-FR":Ug,"he-IL":Hg,"hr-HR":Gg,"hu-HU":Wg,"it-IT":Yg,"ja-JP":qg,"ko-KR":Zg,"lt-LT":Xg,"lv-LV":Jg,"nb-NO":Qg,"nl-NL":ey,"pl-PL":ty,"pt-BR":ny,"pt-PT":ry,"ro-RO":oy,"ru-RU":iy,"sk-SK":ay,"sl-SI":sy,"sr-SP":ly,"sv-SE":uy,"tr-TR":cy,"uk-UA":dy,"zh-CN":fy,"zh-TW":py};function jP(e,t,n){let{direction:r}=Ze(),o=u.useMemo(()=>Jh(t),[t]),i=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?o.focusNext():o.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?o.focusPrevious():o.focusNext();break}},a=()=>{var l;let c=(l=window.event)===null||l===void 0?void 0:l.target,d=lt(t.current,{tabbable:!0});if(c&&(d.currentNode=c,c=d.previousNode()),!c){let f;do f=d.lastChild(),f&&(c=f);while(f)}for(;c!=null&&c.hasAttribute("data-placeholder");){let f=d.previousNode();if(f&&f.hasAttribute("data-placeholder"))c=f;else break}c&&c.focus()},{pressProps:s}=Cn({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){l.pointerType!=="mouse"&&a()}});return oe(s,{onKeyDown:i})}const Xy=new WeakMap,Ws="__role_"+Date.now(),zP="__focusManager_"+Date.now();function xc(e,t,n){var r;let{isInvalid:o,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:c,errorMessageProps:d}=dv({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),f=u.useRef(null),{focusWithinProps:p}=Mr({...e,onFocusWithin(M){var k;f.current=t.value,(k=e.onFocus)===null||k===void 0||k.call(e,M)},onBlurWithin:M=>{var k;t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),(k=e.onBlur)===null||k===void 0||k.call(e,M)},onFocusWithinChange:e.onFocusChange}),h=Fr(Zy($c),"@react-aria/datepicker"),m=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",b=t.maxGranularity==="hour"?"time":"date",v=t.value?h.format(m,{[b]:t.formatValue({month:"long"})}):"",$=Lh(v),C=e[Ws]==="presentation"?l["aria-describedby"]:[$["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[zP],E=u.useMemo(()=>x||Jh(n),[x,n]),w=jP(t,n,e[Ws]==="presentation");Xy.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:E});let A=u.useRef(e.autoFocus),V;e[Ws]==="presentation"?V={role:"presentation"}:V=oe(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),u.useEffect(()=>{A.current&&E.focusFirst(),A.current=!1},[E]),Mo(e.inputRef,t.value,t.setValue),hc({...e,focus(){E.focusFirst()}},t,e.inputRef);let y={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||""};e.validationBehavior==="native"&&(y.type="text",y.hidden=!0,y.required=e.isRequired,y.onChange=()=>{});let I=me(e);return{labelProps:{...s,onClick:()=>{E.focusFirst()}},fieldProps:oe(I,V,w,p,{onKeyDown(M){e.onKeyDown&&e.onKeyDown(M)},onKeyUp(M){e.onKeyUp&&e.onKeyUp(M)}}),inputProps:y,descriptionProps:c,errorMessageProps:d,isInvalid:o,validationErrors:i,validationDetails:a}}function UP(e,t,n){var r;let o=xc(e,t,n);return o.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",o}function HP(){let{locale:e}=Ze(),t=Mm(Zy($c),"@react-aria/datepicker");return u.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new GP(e,t)}},[e,t])}class GP{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function WP(e,t,n){let r=u.useRef(""),{locale:o}=Ze(),i=HP(),{ariaLabel:a,ariaLabelledBy:s,ariaDescribedBy:l,focusManager:c}=Xy.get(t),d=e.isPlaceholder?"":e.text,f=u.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=pi({month:"long",timeZone:f.timeZone}),h=pi({hour:"numeric",hour12:f.hour12,timeZone:f.timeZone});if(e.type==="month"&&!e.isPlaceholder){let P=p.format(t.dateValue);d=P!==d?`${d} – ${P}`:P}else e.type==="hour"&&!e.isPlaceholder&&(d=h.format(t.dateValue));let{spinButtonProps:m}=qy({value:e.value,textValue:d,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",t.setSegment(e.type,e.minValue)}}),b=u.useMemo(()=>new Ru(o,{maximumFractionDigits:0}),[o]),v=()=>{if(b.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let P=e.text.slice(0,-1),W=b.parse(P);P.length===0||W===0?t.clearSegment(e.type):t.setSegment(e.type,W),r.current=P}else e.type==="dayPeriod"&&t.clearSegment(e.type)},$=P=>{if(P.key==="a"&&(sn()?P.metaKey:P.ctrlKey)&&P.preventDefault(),!(P.ctrlKey||P.metaKey||P.shiftKey||P.altKey))switch(P.key){case"Backspace":case"Delete":P.preventDefault(),P.stopPropagation(),v();break}},{startsWith:C}=Rm({sensitivity:"base"}),x=pi({hour:"numeric",hour12:!0}),E=u.useMemo(()=>{let P=new Date;return P.setHours(0),x.formatToParts(P).find(W=>W.type==="dayPeriod").value},[x]),w=u.useMemo(()=>{let P=new Date;return P.setHours(12),x.formatToParts(P).find(W=>W.type==="dayPeriod").value},[x]),A=pi({year:"numeric",era:"narrow",timeZone:"UTC"}),V=u.useMemo(()=>{if(e.type!=="era")return[];let P=ut(new Ge(1,1,1),t.calendar),W=t.calendar.getEras().map(G=>{let D=P.set({year:1,month:1,day:1,era:G}).toDate("UTC"),z=A.formatToParts(D).find(H=>H.type==="era").value;return{era:G,formatted:z}}),J=YP(W.map(G=>G.formatted));if(J)for(let G of W)G.formatted=G.formatted.slice(J);return W},[A,t.calendar,e.type]),y=P=>{if(t.isDisabled||t.isReadOnly)return;let W=r.current+P;switch(e.type){case"dayPeriod":if(C(E,P))t.setSegment("dayPeriod",0);else if(C(w,P))t.setSegment("dayPeriod",12);else break;c.focusNext();break;case"era":{let J=V.find(G=>C(G.formatted,P));J&&(t.setSegment("era",J.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!b.isValidPartialNumber(W))return;let J=b.parse(W),G=J,D=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":J>11&&(G=b.parse(P));break;case"h12":D=!1,J>12&&(G=b.parse(P));break}e.value>=12&&J>1&&(J+=12)}else J>e.maxValue&&(G=b.parse(P));if(isNaN(J))return;let T=G!==0||D;T&&t.setSegment(e.type,G),+(J+"0")>e.maxValue||W.length>=String(e.maxValue).length?(r.current="",T&&c.focusNext()):r.current=W;break}}},I=()=>{r.current="",al(n.current,{containingElement:vo(n.current)}),window.getSelection().collapse(n.current)},M=u.useRef("");zi(n,"beforeinput",P=>{switch(P.preventDefault(),P.inputType){case"deleteContentBackward":case"deleteContentForward":b.isValidPartialNumber(e.text)&&!t.isReadOnly&&v();break;case"insertCompositionText":M.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:P.data!=null&&y(P.data);break}}),zi(n,"input",P=>{let{inputType:W,data:J}=P;switch(W){case"insertCompositionText":n.current.textContent=M.current,(C(E,J)||C(w,J))&&y(J);break}}),Se(()=>{let P=n.current;return()=>{document.activeElement===P&&(c.focusPrevious()||c.focusNext())}},[n,c]);let k=Ar()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},R=u.useMemo(()=>t.segments.find(P=>P.isEditable),[t.segments]);e!==R&&!t.isInvalid&&(l=void 0);let S=nt(),F=!t.isDisabled&&!t.isReadOnly&&e.isEditable,K=e.type==="literal"?"":i.of(e.type),L=zn({"aria-label":`${K}${a?`, ${a}`:""}${s?", ":""}`,"aria-labelledby":s});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:oe(m,L,{id:S,...k,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:F,suppressContentEditableWarning:F,spellCheck:F?"false":void 0,autoCapitalize:F?"off":void 0,autoCorrect:F?"off":void 0,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:F?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!F?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:$,onFocus:I,style:{caretColor:"transparent"},onPointerDown(P){P.stopPropagation()},onMouseDown(P){P.stopPropagation()}})}}function YP(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function qP(e,t){let{role:n="dialog"}=e,r=yn();r=e["aria-label"]?void 0:r;let o=u.useRef(!1);return u.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Hn(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),Hn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),$0(),{dialogProps:{...me(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function Jy(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=me(e,{labelable:!0}),{labelProps:l,fieldProps:c}=No({...e,labelElementType:"span"});t=At(t,n,r);let d=(t-n)/(r-n),f=oa(a);if(!i&&!o){let p=a.style==="percent"?d:t;o=f.format(p)}return{progressBarProps:oe(s,{...c,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}function ZP(e){let{progressBarProps:t,labelProps:n}=Jy(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}var Qy={};Qy={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var e$={};e$={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var t$={};t$={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var n$={};n$={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var r$={};r$={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var o$={};o$={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var i$={};i$={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var a$={};a$={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var s$={};s$={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var l$={};l$={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var u$={};u$={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var c$={};c$={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var d$={};d$={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var f$={};f$={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var p$={};p$={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var h$={};h$={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var m$={};m$={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var b$={};b$={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var v$={};v$={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var g$={};g$={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var y$={};y$={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var $$={};$$={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var x$={};x$={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var w$={};w$={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var C$={};C$={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var E$={};E$={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var D$={};D$={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var P$={};P$={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var S$={};S$={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var T$={};T$={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var A$={};A$={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var k$={};k$={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var M$={};M$={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var R$={};R$={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};function XP(e){return e&&e.__esModule?e.default:e}var F$={};F$={"ar-AE":Qy,"bg-BG":e$,"cs-CZ":t$,"da-DK":n$,"de-DE":r$,"el-GR":o$,"en-US":i$,"es-ES":a$,"et-EE":s$,"fi-FI":l$,"fr-FR":u$,"he-IL":c$,"hr-HR":d$,"hu-HU":f$,"it-IT":p$,"ja-JP":h$,"ko-KR":m$,"lt-LT":b$,"lv-LV":v$,"nb-NO":g$,"nl-NL":y$,"pl-PL":$$,"pt-BR":x$,"pt-PT":w$,"ro-RO":C$,"ru-RU":E$,"sk-SK":D$,"sl-SI":P$,"sr-SP":S$,"sv-SE":T$,"tr-TR":A$,"uk-UA":k$,"zh-CN":M$,"zh-TW":R$};function JP(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:a,isReadOnly:s,isRequired:l,minValue:c,maxValue:d,autoFocus:f,label:p,formatOptions:h,onBlur:m=()=>{},onFocus:b,onFocusChange:v,onKeyDown:$,onKeyUp:C,description:x,errorMessage:E,isWheelDisabled:w,...A}=e,{increment:V,incrementToMax:y,decrement:I,decrementToMin:M,numberValue:k,inputValue:R,commit:S,commitValidation:F}=t;const K=Fr(XP(F$),"@react-aria/numberfield");let L=nt(r),{focusProps:P}=Ea({onBlur(){S()}}),W=oa(h),J=u.useMemo(()=>W.resolvedOptions(),[W]),G=oa({...h,currencySign:void 0}),D=u.useMemo(()=>isNaN(k)?"":G.format(k),[G,k]),{spinButtonProps:T,incrementButtonProps:z,decrementButtonProps:H}=qy({isDisabled:a,isReadOnly:s,isRequired:l,maxValue:d,minValue:c,onIncrement:V,onIncrementToMax:y,onDecrement:I,onDecrementToMin:M,value:k,textValue:D}),[Z,N]=u.useState(!1),{focusWithinProps:j}=Mr({isDisabled:a,onFocusWithinChange:N}),_=u.useCallback(Qe=>{Math.abs(Qe.deltaY)<=Math.abs(Qe.deltaX)||(Qe.deltaY>0?V():Qe.deltaY<0&&I())},[I,V]);F5({onScroll:_,isDisabled:w||a||s||!Z},n);let ne=J.maximumFractionDigits>0,ee=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,q="numeric";Bh()?ee?q="text":ne&&(q="decimal"):mu()&&(ee?q="numeric":ne&&(q="decimal"));let he=Qe=>{t.validate(Qe)&&t.setInputValue(Qe)},re=me(e),ce=u.useCallback(Qe=>{Qe.key==="Enter"?(S(),F()):Qe.continuePropagation()},[S,F]),{isInvalid:$e,validationErrors:pe,validationDetails:Oe}=t.displayValidation,{labelProps:de,inputProps:ae,descriptionProps:xe,errorMessageProps:Vt}=VP({...A,...re,name:void 0,label:p,autoFocus:f,isDisabled:a,isReadOnly:s,isRequired:l,validate:void 0,[Po]:t,value:R,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:L,type:"text",inputMode:q,onChange:he,onBlur:m,onFocus:b,onFocusChange:v,onKeyDown:u.useMemo(()=>wn(ce,$),[ce,$]),onKeyUp:C,description:x,errorMessage:E},t,n);Mo(n,t.numberValue,t.setNumberValue);let Je=oe(T,P,ae,{role:null,"aria-roledescription":Ar()?null:K.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(Je["aria-required"]=void 0);let se=Qe=>{var _r;document.activeElement!==n.current&&(Qe.pointerType==="mouse"?(_r=n.current)===null||_r===void 0||_r.focus():Qe.target.focus())},Pe=e["aria-label"]||(typeof e.label=="string"?e.label:""),ct;Pe||(ct=e.label!=null?de.id:e["aria-labelledby"]);let Wt=nt(),mt=nt(),Xa=oe(z,{"aria-label":i||K.format("increase",{fieldLabel:Pe}).trim(),id:ct&&!i?Wt:null,"aria-labelledby":ct&&!i?`${Wt} ${ct}`:null,"aria-controls":L,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:se}),Ja=oe(H,{"aria-label":o||K.format("decrease",{fieldLabel:Pe}).trim(),id:ct&&!o?mt:null,"aria-labelledby":ct&&!o?`${mt} ${ct}`:null,"aria-controls":L,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:se});return{groupProps:{...j,role:"group","aria-disabled":a,"aria-invalid":$e?"true":void 0},labelProps:de,inputProps:Je,incrementButtonProps:Xa,decrementButtonProps:Ja,errorMessageProps:Vt,descriptionProps:xe,isInvalid:$e,validationErrors:pe,validationDetails:Oe}}function B$(e){let t=me(e,{labelable:!0}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}const wc=new WeakMap;function Wl(e,t){let n=wc.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function QP(e,t,n){let{labelProps:r,fieldProps:o}=No(e),i=e.orientation==="vertical";var a;wc.set(t,{id:(a=r.id)!==null&&a!==void 0?a:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:s}=Ze(),{addGlobalListener:l,removeGlobalListener:c}=kr();const d=u.useRef(null),f=s==="rtl",p=u.useRef(null),{moveProps:h}=Yh({onMoveStart(){p.current=null},onMove({deltaX:$,deltaY:C}){let{height:x,width:E}=n.current.getBoundingClientRect(),w=i?x:E;p.current==null&&(p.current=t.getThumbPercent(d.current)*w);let A=i?C:$;if((i||f)&&(A=-A),p.current+=A,d.current!=null&&n.current){const V=At(p.current/w,0,1);t.setThumbPercent(d.current,V)}},onMoveEnd(){d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null)}});let m=u.useRef(void 0),b=($,C,x,E)=>{if(n.current&&!e.isDisabled&&t.values.every((w,A)=>!t.isThumbDragging(A))){let{height:w,width:A,top:V,left:y}=n.current.getBoundingClientRect(),I=i?w:A,S=((i?E:x)-(i?V:y))/I;(s==="rtl"||i)&&(S=1-S);let F=t.getPercentValue(S),K,L=t.values.findIndex(P=>F-P<0);if(L===0)K=L;else if(L===-1)K=t.values.length-1;else{let P=t.values[L-1],W=t.values[L];Math.abs(P-F)<Math.abs(W-F)?K=L-1:K=L}K>=0&&t.isThumbEditable(K)?($.preventDefault(),d.current=K,t.setFocusedThumb(K),m.current=C,t.setThumbDragging(d.current,!0),t.setThumbValue(K,F),l(window,"mouseup",v,!1),l(window,"touchend",v,!1),l(window,"pointerup",v,!1)):d.current=null}},v=$=>{var C,x;((x=$.pointerId)!==null&&x!==void 0?x:(C=$.changedTouches)===null||C===void 0?void 0:C[0].identifier)===m.current&&(d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null),c(window,"mouseup",v,!1),c(window,"touchend",v,!1),c(window,"pointerup",v,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var $;($=document.getElementById(Wl(t,0)))===null||$===void 0||$.focus(),Gh("keyboard")}),{labelProps:r,groupProps:{role:"group",...o},trackProps:oe({onMouseDown($){$.button!==0||$.altKey||$.ctrlKey||$.metaKey||b($,void 0,$.clientX,$.clientY)},onPointerDown($){$.pointerType==="mouse"&&($.button!==0||$.altKey||$.ctrlKey||$.metaKey)||b($,$.pointerId,$.clientX,$.clientY)},onTouchStart($){b($,$.changedTouches[0].identifier,$.changedTouches[0].clientX,$.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:t.values.map(($,C)=>Wl(t,C)).join(" "),"aria-live":"off"}}}function eS(e,t){let{index:n=0,isRequired:r,validationState:o,isInvalid:i,trackRef:a,inputRef:s,orientation:l=t.orientation,name:c}=e,d=e.isDisabled||t.isDisabled,f=l==="vertical",{direction:p}=Ze(),{addGlobalListener:h,removeGlobalListener:m}=kr(),b=wc.get(t);var v;const{labelProps:$,fieldProps:C}=No({...e,id:Wl(t,n),"aria-labelledby":`${b.id} ${(v=e["aria-labelledby"])!==null&&v!==void 0?v:""}`.trim()}),x=t.values[n],E=u.useCallback(()=>{s.current&&jt(s.current)},[s]),w=t.focusedThumb===n;u.useEffect(()=>{w&&E()},[w,E]);let A=p==="rtl",V=u.useRef(null),{keyboardProps:y}=yu({onKeyDown(L){let{getThumbMaxValue:P,getThumbMinValue:W,decrementThumb:J,incrementThumb:G,setThumbValue:D,setThumbDragging:T,pageSize:z}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),T(n,!0),L.key){case"PageUp":G(n,z);break;case"PageDown":J(n,z);break;case"Home":D(n,W(n));break;case"End":D(n,P(n));break}T(n,!1)}}),{moveProps:I}=Yh({onMoveStart(){V.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:P,pointerType:W,shiftKey:J}){const{getThumbPercent:G,setThumbPercent:D,decrementThumb:T,incrementThumb:z,step:H,pageSize:Z}=t;let{width:N,height:j}=a.current.getBoundingClientRect(),_=f?j:N;if(V.current==null&&(V.current=G(n)*_),W==="keyboard")L>0&&A||L<0&&!A||P>0?T(n,J?Z:H):z(n,J?Z:H);else{let Q=f?P:L;(f||A)&&(Q=-Q),V.current+=Q,D(n,At(V.current/_,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);const{focusableProps:M}=Rr(oe(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s);let k=u.useRef(void 0),R=L=>{E(),k.current=L,t.setThumbDragging(n,!0),h(window,"mouseup",S,!1),h(window,"touchend",S,!1),h(window,"pointerup",S,!1)},S=L=>{var P,W;((W=L.pointerId)!==null&&W!==void 0?W:(P=L.changedTouches)===null||P===void 0?void 0:P[0].identifier)===k.current&&(E(),t.setThumbDragging(n,!1),m(window,"mouseup",S,!1),m(window,"touchend",S,!1),m(window,"pointerup",S,!1))},F=t.getThumbPercent(n);(f||p==="rtl")&&(F=1-F);let K=d?{}:oe(y,I,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||R()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||R(L.pointerId)},onTouchStart:L=>{R(L.changedTouches[0].identifier)}});return Mo(s,x,L=>{t.setThumbValue(n,L)}),{inputProps:oe(M,C,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:x,name:c,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":i||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[b["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[b["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:L=>{t.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:{...K,style:{position:"absolute",[f?"top":"left"]:`${F*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(n),isDisabled:d,isFocused:w}}function tS(e,t,n){let{labelProps:r,inputProps:o,isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}=cv(e,t,n);return{labelProps:r,inputProps:{...o,role:"switch",checked:i},isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}}const I$=new WeakMap;function ga(e,t,n){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${I$.get(e)}-${n}-${t}`}function nS(e,t,n){var r;let{key:o,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:s,selectedKey:l}=t,c=o===l,d=i||t.isDisabled||t.disabledKeys.has(o),{itemProps:f,isPressed:p}=bc({selectionManager:s,key:o,ref:n,isDisabled:d,shouldSelectOnPressUp:a,linkBehavior:"selection"}),h=ga(t,o,"tab"),m=ga(t,o,"tabpanel"),{tabIndex:b}=f,v=t.collection.getItem(o),$=me(v==null?void 0:v.props,{isLink:!!(!(v==null||(r=v.props)===null||r===void 0)&&r.href),labelable:!0});return delete $.id,{tabProps:oe($,f,{id:h,"aria-selected":c,"aria-disabled":d||void 0,"aria-controls":c?m:void 0,tabIndex:d?void 0:b,role:"tab"}),isSelected:c,isDisabled:d,isPressed:p}}function rS(e,t,n){let r=Y5(n)?void 0:0;var o;const i=ga(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),a=zn({...e,id:i,"aria-labelledby":ga(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:oe(a,{tabIndex:r,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class oS{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}getKeyAbove(t){return this.getPreviousKey(t)}getKeyBelow(t){return this.getNextKey(t)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getPreviousKey(t)),t}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.disabledKeys.has(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.disabledKeys.has(t));return t}constructor(t,n,r,o=new Set){this.collection=t,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=o}}function iS(e,t,n){let{orientation:r="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:s}=t,{direction:l}=Ze(),c=u.useMemo(()=>new oS(i,l,r,s),[i,s,r,l]),{collectionProps:d}=mc({ref:n,selectionManager:a,keyboardDelegate:c,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=nt();I$.set(t,f);let p=zn({...e,id:f});return{tabListProps:{...oe(d,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function aS(e,t){let n=me(e,{labelable:!0}),{hoverProps:r}=Ye({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:oe(n,r,{role:"tooltip"})}}function sS(e,t,n){let{isDisabled:r,trigger:o}=e,i=nt(),a=u.useRef(!1),s=u.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},c=$=>{!a.current&&!s.current&&t.close($)};u.useEffect(()=>{let $=C=>{n&&n.current&&C.key==="Escape"&&(C.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",$,!0),()=>{document.removeEventListener("keydown",$,!0)}},[n,t]);let d=()=>{o!=="focus"&&(Gi()==="pointer"?a.current=!0:a.current=!1,l())},f=()=>{o!=="focus"&&(s.current=!1,a.current=!1,c())},p=()=>{s.current=!1,a.current=!1,c(!0)},h=()=>{wr()&&(s.current=!0,l())},m=()=>{s.current=!1,a.current=!1,c(!0)},{hoverProps:b}=Ye({isDisabled:r,onHoverStart:d,onHoverEnd:f}),{focusableProps:v}=Rr({isDisabled:r,onFocus:h,onBlur:m},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...oe(v,b,{onPointerDown:p,onKeyDown:p})},tooltipProps:{id:i}}}class It extends Set{constructor(t,n,r){super(t),t instanceof It?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function lS(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function O$(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=u.useRef(!1),[,s]=u.useState(!1),l=u.useRef(null),c=u.useRef(null),[,d]=u.useState(null),f=u.useMemo(()=>qp(e.selectedKeys),[e.selectedKeys]),p=u.useMemo(()=>qp(e.defaultSelectedKeys,new It),[e.defaultSelectedKeys]),[h,m]=Rt(f,p,e.onSelectionChange),b=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,$]=u.useState(o);o==="replace"&&v==="toggle"&&typeof h=="object"&&h.size===0&&$("replace");let C=u.useRef(o);return u.useEffect(()=>{o!==C.current&&($(o),C.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:$,get isFocused(){return a.current},setFocused(x){a.current=x,s(x)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(x,E="first"){l.current=x,c.current=E,d(x)},selectedKeys:h,setSelectedKeys(x){(r||!lS(x,h))&&m(x)},disabledKeys:b,disabledBehavior:i}}function qp(e,t){return e?e==="all"?"all":new It(e):t}class L${get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Gs(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Gs(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new It([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new It(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Gs(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new It(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new It([t],t,t):new It;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new It;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(EP(Na(o,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new It)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class Yl{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let a of i.childNodes)n(a)};for(let i of t)n(i);let r,o=0;for(let[i,a]of this.keyMap)r?(r.nextKey=i,a.prevKey=r.key):(this.firstKey=i,a.prevKey=void 0),a.type==="item"&&(a.index=o++),r=a,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function V$(e){let{filter:t}=e,n=O$(e),r=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=u.useCallback(c=>t?new Yl(t(c)):new Yl(c),[t]),i=u.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=Yv(e,o,i),s=u.useMemo(()=>new L$(a,n),[a,n]);const l=u.useRef(null);return u.useEffect(()=>{if(n.focusedKey!=null&&!a.getItem(n.focusedKey)){const c=l.current.getItem(n.focusedKey),d=[...l.current.getKeys()].map(b=>{const v=l.current.getItem(b);return v.type==="item"?v:null}).filter(b=>b!==null),f=[...a.getKeys()].map(b=>{const v=a.getItem(b);return v.type==="item"?v:null}).filter(b=>b!==null),p=d.length-f.length;let h=Math.min(p>1?Math.max(c.index-p+1,0):c.index,f.length-1),m;for(;h>=0;){if(!s.isDisabled(f[h].key)){m=f[h];break}h<f.length-1?h++:(h>c.index&&(h=c.index),h--)}n.setFocusedKey(m?m.key:null)}l.current=a},[a,s,n,n.focusedKey]),{collection:a,disabledKeys:r,selectionManager:s}}function N$(e){var t;let[n,r]=Rt(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=u.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:a,selectionManager:s}=V$({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{var d;let f=(d=c.values().next().value)!==null&&d!==void 0?d:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),l=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:a,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:l}}function Ka(e){let[t,n]=Rt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=u.useCallback(()=>{n(!0)},[n]),o=u.useCallback(()=>{n(!1)},[n]),i=u.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function uS(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:s=!0}=e,[l,c]=u.useState(!1),[d,f]=u.useState(!1),[p,h]=u.useState(null),m=de=>{e.onSelectionChange&&e.onSelectionChange(de),de===C&&(H(),D())};var b;let{collection:v,selectionManager:$,selectedKey:C,setSelectedKey:x,selectedItem:E,disabledKeys:w}=N$({...e,onSelectionChange:m,items:(b=e.items)!==null&&b!==void 0?b:e.defaultItems});var A,V;let[y,I]=Rt(e.inputValue,(V=(A=e.defaultInputValue)!==null&&A!==void 0?A:(t=v.getItem(C))===null||t===void 0?void 0:t.textValue)!==null&&V!==void 0?V:"",e.onInputChange),M=v,k=u.useMemo(()=>e.items!=null||!r?v:cS(v,y,r),[v,y,r,e.items]),[R,S]=u.useState(k),F=u.useRef("focus"),L=Ka({...e,onOpenChange:de=>{e.onOpenChange&&e.onOpenChange(de,de?F.current:void 0),$.setFocused(de),de||$.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),P=(de=null,ae)=>{let xe=ae==="manual"||ae==="focus"&&o==="focus";(i||k.size>0||xe&&M.size>0||e.items)&&(xe&&!L.isOpen&&e.items===void 0&&c(!0),F.current=ae,h(de),L.open())},W=(de=null,ae)=>{let xe=ae==="manual"||ae==="focus"&&o==="focus";!(i||k.size>0||xe&&M.size>0||e.items)&&!L.isOpen||(xe&&!L.isOpen&&e.items===void 0&&c(!0),L.isOpen||(F.current=ae),G(de))},J=u.useCallback(()=>{S(l?M:k)},[l,M,k]),G=u.useCallback((de=null)=>{L.isOpen&&J(),h(de),L.toggle()},[L,J]),D=u.useCallback(()=>{L.isOpen&&(J(),L.close())},[L,J]),[T,z]=u.useState(y),H=()=>{var de,ae;let xe=(ae=(de=v.getItem(C))===null||de===void 0?void 0:de.textValue)!==null&&ae!==void 0?ae:"";z(xe),I(xe)};var Z,N;let j=u.useRef((N=(Z=e.selectedKey)!==null&&Z!==void 0?Z:e.defaultSelectedKey)!==null&&N!==void 0?N:null);var _;let Q=u.useRef((_=(n=v.getItem(C))===null||n===void 0?void 0:n.textValue)!==null&&_!==void 0?_:"");u.useEffect(()=>{var de;d&&(k.size>0||i)&&!L.isOpen&&y!==T&&o!=="manual"&&P(null,"input"),!l&&!i&&L.isOpen&&k.size===0&&D(),C!=null&&C!==j.current&&D(),y!==T&&($.setFocusedKey(null),c(!1),y===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&x(null)),C!==j.current&&(e.inputValue===void 0||e.selectedKey===void 0)?H():T!==y&&z(y);var ae;let xe=(ae=(de=v.getItem(C))===null||de===void 0?void 0:de.textValue)!==null&&ae!==void 0?ae:"";!d&&C!=null&&e.inputValue===void 0&&C===j.current&&Q.current!==xe&&(z(xe),I(xe)),j.current=C,Q.current=xe});let ne=Or({...e,value:u.useMemo(()=>({inputValue:y,selectedKey:C}),[y,C])}),ee=()=>{a&&C==null?q():he()},q=()=>{j.current=null,x(null),D()},he=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var de;e.onSelectionChange(C);var ae;let xe=(ae=(de=v.getItem(C))===null||de===void 0?void 0:de.textValue)!==null&&ae!==void 0?ae:"";z(xe),D()}else H(),D()};const re=()=>{if(a){var de,ae;const xe=(ae=(de=v.getItem(C))===null||de===void 0?void 0:de.textValue)!==null&&ae!==void 0?ae:"";y===xe?he():q()}else he()};let ce=()=>{L.isOpen&&$.focusedKey!=null?C===$.focusedKey?he():x($.focusedKey):re()},$e=u.useRef(y),pe=de=>{de?($e.current=y,o==="focus"&&P(null,"focus")):(s&&re(),y!==$e.current&&ne.commitValidation()),f(de)},Oe=u.useMemo(()=>L.isOpen?l?M:k:R,[L.isOpen,M,k,l,R]);return{...ne,...L,focusStrategy:p,toggle:W,open:P,close:re,selectionManager:$,selectedKey:C,setSelectedKey:x,disabledKeys:w,isFocused:d,setFocused:pe,selectedItem:E,collection:Oe,inputValue:y,setInputValue:I,commit:ce,revert:ee}}function cS(e,t,n){return new Yl(_$(e,e,t,n))}function _$(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let a=_$(e,Na(i,e),n,r);[...a].some(s=>s.type==="item")&&o.push({...i,childNodes:a})}else i.type==="item"&&r(i.textValue,n)?o.push({...i}):i.type!=="item"&&o.push({...i});return o}var K$={};K$={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var j$={};j$={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var z$={};z$={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var U$={};U$={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var H$={};H$={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var G$={};G$={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var W$={};W$={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Y$={};Y$={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var q$={};q$={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var Z$={};Z$={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var X$={};X$={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var J$={};J$={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Q$={};Q$={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var e4={};e4={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var t4={};t4={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var n4={};n4={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var r4={};r4={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var o4={};o4={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var i4={};i4={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var a4={};a4={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var s4={};s4={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var l4={};l4={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var u4={};u4={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var c4={};c4={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var d4={};d4={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var f4={};f4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var p4={};p4={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var h4={};h4={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var m4={};m4={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var b4={};b4={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var v4={};v4={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var g4={};g4={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var y4={};y4={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var $4={};$4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};function dS(e){return e&&e.__esModule?e.default:e}var x4={};x4={"ar-AE":K$,"bg-BG":j$,"cs-CZ":z$,"da-DK":U$,"de-DE":H$,"el-GR":G$,"en-US":W$,"es-ES":Y$,"et-EE":q$,"fi-FI":Z$,"fr-FR":X$,"he-IL":J$,"hr-HR":Q$,"hu-HU":e4,"it-IT":t4,"ja-JP":n4,"ko-KR":r4,"lt-LT":o4,"lv-LV":i4,"nb-NO":a4,"nl-NL":s4,"pl-PL":l4,"pt-BR":u4,"pt-PT":c4,"ro-RO":d4,"ru-RU":f4,"sk-SK":p4,"sl-SI":h4,"sr-SP":m4,"sv-SE":b4,"tr-TR":v4,"uk-UA":g4,"zh-CN":y4,"zh-TW":$4};const fS=new Zn(dS(x4));function pS(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function hS(e,t,n,r,o){let i=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=i||a||s,c=[];if(l){let d=pS(),f=Zn.getGlobalDictionaryForPackage("@react-stately/datepicker")||fS,p=new em(d,f),h=new so(d,ql({},o)),m=h.resolvedOptions().timeZone;a&&c.push(p.format("rangeUnderflow",{minValue:h.format(t.toDate(m))})),i&&c.push(p.format("rangeOverflow",{maxValue:h.format(n.toDate(m))})),s&&c.push(p.format("unavailableDate"))}return{isInvalid:l,validationErrors:c,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}const mS={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},bS={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ql(e,t){e={...t.shouldForceLeadingZeros?bS:mS,...e};let r=t.granularity||"minute",o=Object.keys(e);var i;let a=o.indexOf((i=t.maxGranularity)!==null&&i!==void 0?i:"year");a<0&&(a=0);let s=o.indexOf(r);if(s<0&&(s=2),a>s)throw new Error("maxGranularity must be greater than granularity");let l=o.slice(a,s+1).reduce((d,f)=>(d[f]=e[f],d),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&a===0&&(l.era="short"),l}function w4(e,t){if(e===null)return null;if(e)return ut(e,t)}function Xr(e,t,n,r){if(e)return w4(e,n);let o=ut(nm(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?lm(o):r?o:En(o)}function vS(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[o,i]=u.useState([r,n]);e&&(o[0]!==r||o[1]!==n)&&i([r,n]),t||(t=e?r:o[0]);let a=e?n:o[1];return[t,a]}const gS=new Zn({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function yS(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?gS.getStringForLocale(e,n):"––"}const Di={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Zp={year:5,month:2,day:7,hour:2,minute:15,second:15},$S={dayperiod:"dayPeriod"};function Cc(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:o,isReadOnly:i,isRequired:a,minValue:s,maxValue:l,isDateUnavailable:c}=e,d=e.value||e.defaultValue||e.placeholderValue,[f,p]=vS(d,e.granularity),h=p||"UTC";if(d&&!(f in d))throw new Error("Invalid granularity "+f+" for value "+d.toString());let m=u.useMemo(()=>new so(t),[t]),b=u.useMemo(()=>n(m.resolvedOptions().calendar),[n,m]),[v,$]=Rt(e.value,e.defaultValue,e.onChange),C=u.useMemo(()=>w4(v,b),[v,b]),[x,E]=u.useState(()=>Xr(e.placeholderValue,f,b,p)),w=C||x,A=b.identifier==="gregory"&&w.era==="BC",V=u.useMemo(()=>{var j;return{granularity:f,maxGranularity:(j=e.maxGranularity)!==null&&j!==void 0?j:"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:A,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,p,r,A]),y=u.useMemo(()=>ql({},V),[V]),I=u.useMemo(()=>new so(t,y),[t,y]),M=u.useMemo(()=>I.resolvedOptions(),[I]),k=u.useMemo(()=>I.formatToParts(new Date).filter(j=>Di[j.type]).reduce((j,_)=>(j[_.type]=!0,j),{}),[I]),[R,S]=u.useState(()=>e.value||e.defaultValue?{...k}:{}),F=u.useRef(),K=u.useRef(b.identifier);u.useEffect(()=>{b.identifier!==K.current&&(K.current=b.identifier,E(j=>Object.keys(R).length>0?ut(j,b):Xr(e.placeholderValue,f,b,p)))},[b,f,R,p,e.placeholderValue]),v&&Object.keys(R).length<Object.keys(k).length&&(R={...k},S(R)),v==null&&Object.keys(R).length===Object.keys(k).length&&(R={},S(R),E(Xr(e.placeholderValue,f,b,p)));let L=C&&Object.keys(R).length>=Object.keys(k).length?C:x,P=j=>{if(e.isDisabled||e.isReadOnly)return;let _=Object.keys(R),Q=Object.keys(k);j==null?($(null),E(Xr(e.placeholderValue,f,b,p)),S({})):_.length>=Q.length||_.length===Q.length-1&&k.dayPeriod&&!R.dayPeriod&&F.current!=="dayPeriod"?(j=ut(j,(d==null?void 0:d.calendar)||new vt),$(j)):E(j),F.current=null},W=u.useMemo(()=>L.toDate(h),[L,h]),J=u.useMemo(()=>I.formatToParts(W).map(j=>{let _=Di[j.type];j.type==="era"&&b.getEras().length===1&&(_=!1);let Q=Di[j.type]&&!R[j.type],ne=Di[j.type]?yS(j.type,j.value,t):null;return{type:$S[j.type]||j.type,text:Q?ne:j.value,...xS(L,j.type,M),isPlaceholder:Q,placeholder:ne,isEditable:_}}),[W,R,I,M,L,b,t]);k.era&&R.year&&!R.era?(R.era=!0,S({...R})):!k.era&&R.era&&(delete R.era,S({...R}));let G=j=>{R[j]=!0,j==="year"&&k.era&&(R.era=!0),S({...R})},D=(j,_)=>{if(R[j])P(wS(L,j,_,M));else{G(j);let Q=Object.keys(R),ne=Object.keys(k);(Q.length>=ne.length||Q.length===ne.length-1&&k.dayPeriod&&!R.dayPeriod)&&P(L)}},T=u.useMemo(()=>hS(v,s,l,c,V),[v,s,l,c,V]),z=Or({...e,value:v,builtinValidation:T}),H=z.displayValidation.isInvalid,Z=e.validationState||(H?"invalid":null);var N;return{...z,value:C,dateValue:W,calendar:b,setValue:P,segments:J,dateFormatter:I,validationState:Z,isInvalid:H,granularity:f,maxGranularity:(N=e.maxGranularity)!==null&&N!==void 0?N:"year",isDisabled:o,isReadOnly:i,isRequired:a,increment(j){D(j,1)},decrement(j){D(j,-1)},incrementPage(j){D(j,Zp[j]||1)},decrementPage(j){D(j,-(Zp[j]||1))},setSegment(j,_){G(j),P(CS(L,j,_,M))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let j=Object.keys(R),_=Object.keys(k);j.length===_.length-1&&k.dayPeriod&&!R.dayPeriod&&(R={...k},S(R),P(L.copy()))},clearSegment(j){delete R[j],F.current=j,S({...R});let _=Xr(e.placeholderValue,f,b,p),Q=L;if(j==="dayPeriod"&&"hour"in L&&"hour"in _){let ne=L.hour>=12,ee=_.hour>=12;ne&&!ee?Q=L.set({hour:L.hour-12}):!ne&&ee&&(Q=L.set({hour:L.hour+12}))}else j in L&&(Q=L.set({[j]:_[j]}));$(null),P(Q)},formatValue(j){if(!C)return"";let _=ql(j,V);return new so(t,_).format(W)}}}function xS(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:r2(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:o2(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function wS(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return e.set({hour:i?o-12:o+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}}function CS(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return n>=12===i?e:e.set({hour:i?o-12:o+12})}case"hour":if(r.hour12){let i=e.hour>=12;!i&&n===12&&(n=0),i&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}function ES(e){let{placeholderValue:t=new Ta,minValue:n,maxValue:r,granularity:o,validate:i}=e,[a,s]=Rt(e.value,e.defaultValue,e.onChange),l=a||t,c=l&&"day"in l?l:void 0,d=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,f=u.useMemo(()=>{let C=l&&"timeZone"in l?l.timeZone:void 0;return(C||d)&&t?um(Jr(t),C||d):Jr(t)},[t,l,d]),p=u.useMemo(()=>Jr(n,c),[n,c]),h=u.useMemo(()=>Jr(r,c),[r,c]),m=u.useMemo(()=>a&&"day"in a?jd(a):a,[a]),b=u.useMemo(()=>a==null?null:Jr(a),[a]);return{...Cc({...e,value:b,defaultValue:void 0,minValue:p,maxValue:h,onChange:C=>{s(c||d?C:C&&jd(C))},granularity:o||"minute",maxGranularity:"hour",placeholderValue:f,createCalendar:()=>new vt,validate:u.useCallback(()=>i==null?void 0:i(a),[i,a])}),timeValue:m}}function Jr(e,t=n2(Cu())){return e?"day"in e?e:En(t,e):null}function DS(e,t){let{triggerKey:n}=e,{UNSTABLE_expandedKeysStack:r,UNSTABLE_openSubmenu:o,UNSTABLE_closeSubmenu:i,close:a}=t,[s]=u.useState(r==null?void 0:r.length),l=u.useMemo(()=>r[s]===n,[r,n,s]),[c,d]=u.useState(null),f=u.useCallback((m=null)=>{d(m),o(n,s)},[o,s,n]),p=u.useCallback(()=>{d(null),i(n,s)},[i,s,n]),h=u.useCallback((m=null)=>{d(m),l?p():f(m)},[p,f,l]);return u.useMemo(()=>({focusStrategy:c,isOpen:l,open:f,close:p,closeAll:a,submenuLevel:s,setOpen:()=>{},toggle:h}),[l,f,p,a,c,h,s])}function PS(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:i,defaultValue:a=NaN,onChange:s,locale:l,isDisabled:c,isReadOnly:d}=e;i===null&&(i=NaN),i!==void 0&&!isNaN(i)&&(r!==void 0&&!isNaN(r)?i=ft(i,t,n,r):i=At(i,t,n)),isNaN(a)||(r!==void 0&&!isNaN(r)?a=ft(a,t,n,r):a=At(a,t,n));let[f,p]=Rt(i,isNaN(a)?NaN:a,s),[h,m]=u.useState(()=>isNaN(f)?"":new ra(l,o).format(f)),b=u.useMemo(()=>new Ru(l,o),[l,o]),v=u.useMemo(()=>b.getNumberingSystem(h),[b,h]),$=u.useMemo(()=>new ra(l,{...o,numberingSystem:v}),[l,o,v]),C=u.useMemo(()=>$.resolvedOptions(),[$]),x=u.useCallback(T=>isNaN(T)||T===null?"":$.format(T),[$]),E=Or({...e,value:f}),w=r!==void 0&&!isNaN(r)?r:1;C.style==="percent"&&(r===void 0||isNaN(r))&&(w=.01);let[A,V]=u.useState(f),[y,I]=u.useState(l),[M,k]=u.useState(o);(!Object.is(f,A)||l!==y||o!==M)&&(m(x(f)),V(f),I(l),k(o));let R=u.useMemo(()=>b.parse(h),[b,h]),S=()=>{if(!h.length){p(NaN),m(i===void 0?"":x(f));return}if(isNaN(R)){m(x(f));return}let T;r===void 0||isNaN(r)?T=At(R,t,n):T=ft(R,t,n,r),T=b.parse(x(T)),p(T),m(x(i===void 0?T:f))},F=(T,z=0)=>{let H=R;if(isNaN(H)){let Z=isNaN(z)?0:z;return ft(Z,t,n,w)}else{let Z=ft(H,t,n,w);return T==="+"&&Z>H||T==="-"&&Z<H?Z:ft(Ys(T,H,w),t,n,w)}},K=()=>{let T=F("+",t);T===f&&m(x(T)),p(T),E.commitValidation()},L=()=>{let T=F("-",n);T===f&&m(x(T)),p(T),E.commitValidation()},P=()=>{n!=null&&(p(ft(n,t,n,w)),E.commitValidation())},W=()=>{t!=null&&(p(t),E.commitValidation())},J=u.useMemo(()=>!c&&!d&&(isNaN(R)||n===void 0||isNaN(n)||ft(R,t,n,w)>R||Ys("+",R,w)<=n),[c,d,t,n,w,R]),G=u.useMemo(()=>!c&&!d&&(isNaN(R)||t===void 0||isNaN(t)||ft(R,t,n,w)<R||Ys("-",R,w)>=t),[c,d,t,n,w,R]);return{...E,validate:T=>b.isValidPartialNumber(T,t,n),increment:K,incrementToMax:P,decrement:L,decrementToMin:W,canIncrement:J,canDecrement:G,minValue:t,maxValue:n,numberValue:R,setNumberValue:p,setInputValue:m,inputValue:h,commit:S}}function Ys(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const o=t.toString().split("."),i=n.toString().split("."),a=o[1]&&o[1].length||0,s=i[1]&&i[1].length||0,l=Math.pow(10,Math.max(a,s));t=Math.round(t*l),n=Math.round(n*l),r=e==="+"?t+n:t-n,r/=l}return r}const SS=0,TS=100,AS=1;function kS(e){const{isDisabled:t=!1,minValue:n=SS,maxValue:r=TS,numberFormatter:o,step:i=AS,orientation:a="horizontal"}=e;let s=u.useMemo(()=>{let D=(r-n)/10;return D=ft(D,0,D+i,i),Math.max(D,i)},[i,r,n]),l=u.useCallback(D=>D==null?void 0:D.map((T,z)=>{let H=z===0?n:T[z-1],Z=z===D.length-1?r:T[z+1];return ft(T,H,Z,i)}),[n,r,i]),c=u.useMemo(()=>l(Jp(e.value)),[e.value]),d=u.useMemo(()=>{var D;return l((D=Jp(e.defaultValue))!==null&&D!==void 0?D:[n])},[e.defaultValue,n]),f=Qp(e.value,e.defaultValue,e.onChange),p=Qp(e.value,e.defaultValue,e.onChangeEnd);const[h,m]=Rt(c,d,f),[b,v]=u.useState(new Array(h.length).fill(!1)),$=u.useRef(new Array(h.length).fill(!0)),[C,x]=u.useState(void 0),E=u.useRef(h),w=u.useRef(b);let A=D=>{E.current=D,m(D)},V=D=>{w.current=D,v(D)};function y(D){return(D-n)/(r-n)}function I(D){return D===0?n:h[D-1]}function M(D){return D===h.length-1?r:h[D+1]}function k(D){return $.current[D]}function R(D,T){$.current[D]=T}function S(D,T){if(t||!k(D))return;const z=I(D),H=M(D);T=ft(T,z,H,i);let Z=Xp(E.current,D,T);A(Z)}function F(D,T){if(t||!k(D))return;T&&(E.current=h);const z=w.current[D];w.current=Xp(w.current,D,T),V(w.current),p&&z&&!w.current.some(Boolean)&&p(E.current)}function K(D){return o.format(D)}function L(D,T){S(D,W(T))}function P(D){return Math.round((D-n)/i)*i+n}function W(D){const T=D*(r-n)+n;return At(P(T),n,r)}function J(D,T=1){let z=Math.max(T,i);S(D,ft(h[D]+z,n,r,i))}function G(D,T=1){let z=Math.max(T,i);S(D,ft(h[D]-z,n,r,i))}return{values:h,getThumbValue:D=>h[D],setThumbValue:S,setThumbPercent:L,isThumbDragging:D=>b[D],setThumbDragging:F,focusedThumb:C,setFocusedThumb:x,getThumbPercent:D=>y(h[D]),getValuePercent:y,getThumbValueLabel:D=>K(h[D]),getFormattedValue:K,getThumbMinValue:I,getThumbMaxValue:M,getPercentValue:W,isThumbEditable:k,setThumbEditable:R,incrementThumb:J,decrementThumb:G,step:i,pageSize:s,orientation:a,isDisabled:t}}function Xp(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function Jp(e){if(e!=null)return Array.isArray(e)?e:[e]}function Qp(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}function MS(e){var t;let n=N$({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:eh(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:r,collection:o,selectedKey:i}=n,a=u.useRef(i);return u.useEffect(()=>{let s=i;(r.isEmpty||!o.getItem(s))&&(s=eh(o,n.disabledKeys),s!=null&&r.setSelectedKeys([s])),(s!=null&&r.focusedKey==null||!r.isFocused&&s!==a.current)&&r.setFocusedKey(s),a.current=s}),{...n,isDisabled:e.isDisabled||!1}}function eh(e,t){let n=null;if(e){for(n=e.getFirstKey();t.has(n)&&n!==e.getLastKey();)n=e.getKeyAfter(n);t.has(n)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}const RS=1500,th=500;let An={},FS=0,Qr=!1,Zt=null,kn=null;function BS(e={}){let{delay:t=RS,closeDelay:n=th}=e,{isOpen:r,open:o,close:i}=Ka(e),a=u.useMemo(()=>`${++FS}`,[]),s=u.useRef(),l=()=>{An[a]=f},c=()=>{for(let h in An)h!==a&&(An[h](!0),delete An[h])},d=()=>{clearTimeout(s.current),s.current=null,c(),l(),Qr=!0,o(),Zt&&(clearTimeout(Zt),Zt=null),kn&&(clearTimeout(kn),kn=null)},f=h=>{h||n<=0?(clearTimeout(s.current),s.current=null,i()):s.current||(s.current=setTimeout(()=>{s.current=null,i()},n)),Zt&&(clearTimeout(Zt),Zt=null),Qr&&(kn&&clearTimeout(kn),kn=setTimeout(()=>{delete An[a],kn=null,Qr=!1},Math.max(th,n)))},p=()=>{c(),l(),!r&&!Zt&&!Qr?Zt=setTimeout(()=>{Zt=null,Qr=!0,d()},t):r||d()};return u.useEffect(()=>()=>{clearTimeout(s.current),An[a]&&delete An[a]},[a]),{isOpen:r,open:h=>{!h&&t>0&&!s.current?p():d()},close:f}}class IS{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.iterable=t,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of t)r(a);let o,i=0;for(let[a,s]of this.keyMap)o?(o.nextKey=a,s.prevKey=o.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=i++),o=s,o.nextKey=void 0;this.lastKey=o==null?void 0:o.key}}function OS(e){let[t,n]=Rt(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),r=O$(e),o=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=Yv(e,u.useCallback(s=>new IS(s,{expandedKeys:t}),[t]),null);return u.useEffect(()=>{r.focusedKey!=null&&!i.getItem(r.focusedKey)&&r.setFocusedKey(null)},[i,r.focusedKey]),{collection:i,expandedKeys:t,disabledKeys:o,toggleKey:s=>{n(LS(t,s))},setExpandedKeys:n,selectionManager:new L$(i,r)}}function LS(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var Zl={exports:{}},qs={};/**
253
+ * @license React
254
+ * use-sync-external-store-shim.production.min.js
255
+ *
256
+ * Copyright (c) Facebook, Inc. and its affiliates.
257
+ *
258
+ * This source code is licensed under the MIT license found in the
259
+ * LICENSE file in the root directory of this source tree.
260
+ */var nh;function VS(){if(nh)return qs;nh=1;var e=u;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(f,p){var h=p(),m=r({inst:{value:h,getSnapshot:p}}),b=m[0].inst,v=m[1];return i(function(){b.value=h,b.getSnapshot=p,l(b)&&v({inst:b})},[f,h,p]),o(function(){return l(b)&&v({inst:b}),f(function(){l(b)&&v({inst:b})})},[f]),a(h),h}function l(f){var p=f.getSnapshot;f=f.value;try{var h=p();return!n(f,h)}catch{return!0}}function c(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return qs.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,qs}var Zs={};/**
261
+ * @license React
262
+ * use-sync-external-store-shim.development.js
263
+ *
264
+ * Copyright (c) Facebook, Inc. and its affiliates.
265
+ *
266
+ * This source code is licensed under the MIT license found in the
267
+ * LICENSE file in the root directory of this source tree.
268
+ */var rh;function NS(){return rh||(rh=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=u,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(x){{for(var E=arguments.length,w=new Array(E>1?E-1:0),A=1;A<E;A++)w[A-1]=arguments[A];r("error",x,w)}}function r(x,E,w){{var A=t.ReactDebugCurrentFrame,V=A.getStackAddendum();V!==""&&(E+="%s",w=w.concat([V]));var y=w.map(function(I){return String(I)});y.unshift("Warning: "+E),Function.prototype.apply.call(console[x],console,y)}}function o(x,E){return x===E&&(x!==0||1/x===1/E)||x!==x&&E!==E}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue,d=!1,f=!1;function p(x,E,w){d||e.startTransition!==void 0&&(d=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var A=E();if(!f){var V=E();i(A,V)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var y=a({inst:{value:A,getSnapshot:E}}),I=y[0].inst,M=y[1];return l(function(){I.value=A,I.getSnapshot=E,h(I)&&M({inst:I})},[x,A,E]),s(function(){h(I)&&M({inst:I});var k=function(){h(I)&&M({inst:I})};return x(k)},[x]),c(A),A}function h(x){var E=x.getSnapshot,w=x.value;try{var A=E();return!i(w,A)}catch{return!0}}function m(x,E,w){return E()}var b=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",v=!b,$=v?m:p,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:$;Zs.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Zs}process.env.NODE_ENV==="production"?Zl.exports=VS():Zl.exports=NS();var _S=Zl.exports;class Ec{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Ec(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t}constructor(t,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=t,this.key=n}}class C4{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}appendChild(t){this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(t){if(t.parentNode!==this)return;this.ownerDocument.startTransaction();let n=t.nextSibling;for(;n;)n.index--,n=n.nextSibling;t.nextSibling&&(t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.removeNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=t}}class So extends C4{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof So?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,n,r,o;let i=this.ownerDocument.getMutableNode(this);i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof So?this.parentNode.node.key:null;var a;i.prevKey=(a=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&a!==void 0?a:null;var s;i.nextKey=(s=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var l;i.firstChildKey=(l=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&l!==void 0?l:null;var c;i.lastChildKey=(c=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&c!==void 0?c:null}setProps(t,n,r){let o=this.ownerDocument.getMutableNode(this),{value:i,textValue:a,id:s,...l}=t;if(l.ref=n,o.props=l,o.rendered=r,o.value=i,o.textValue=a||(typeof r=="string"?r:"")||t["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new Ec(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class KS{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class jS extends C4{get isConnected(){return!0}createElement(t){return new So(t,this)}getMutableNode(t){let n=t.node;return this.mutatedNodes.has(t)||(n=t.node.clone(),this.mutatedNodes.add(t),t.node=n),this.markDirty(t),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(t){this.dirtyNodes.add(t)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(t){let n=this.getMutableCollection();if(!n.getItem(t.node.key)){n.addNode(t.node);for(let r of t)this.addNode(r)}this.markDirty(t)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key),this.markDirty(t)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof So&&i.isConnected&&i.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,n;let i=this.getMutableCollection();for(let a of this.mutatedNodes)a.isConnected&&i.addNode(a.node);var r,o;i.commit((r=(t=this.firstChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(o=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let t of this.subscriptions)t()}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}}function Lr(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=u.useMemo(()=>new WeakMap,i);return u.useMemo(()=>{if(n&&typeof t=="function"){let c=[];for(let d of n){let f=a.get(d);if(!f){f=t(d);var s,l;let p=(l=(s=f.props.id)!==null&&s!==void 0?s:d.key)!==null&&l!==void 0?l:d.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=u.cloneElement(f,o?{key:p,id:p,value:d}:{key:p}),a.set(d,f)}c.push(f)}return c}else if(typeof t!="function")return t},[t,n,a,r,o])}function zS(e){return Lr({...e,addIdAndValue:!0})}const E4=u.createContext(!1);function Dc(e,t){let{collection:n,document:r}=Pc(t);return{portal:D4(e,r),collection:n}}function US(e,t,n){let r=Ht(),o=u.useRef(r);o.current=r;let i=u.useCallback(()=>o.current?n():t(),[t,n]);return _S.useSyncExternalStore(e,i)}const HS=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:US;function Pc(e){let t=u.useMemo(()=>new jS(e||new KS),[e]),n=u.useCallback(a=>t.subscribe(a),[t]),r=u.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=u.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:HS(n,r,o),document:t}}const Xl=u.createContext(null),_o=u.createContext(null);function D4(e,t){let n=u.useContext(_o),r=t??n,o=zS(e),i=u.useMemo(()=>u.createElement(E4.Provider,{value:!0},o),[o]);return Ht()?u.createElement(Xl.Provider,{value:r},i):dn.createPortal(i,r)}function P4(e){return u.createElement(u.Fragment,null,D4(e))}function S4(e,t,n){let r=u.useContext(E4);var o;return r?(o=ja(e,t,n,"children"in t?t.children:null))!==null&&o!==void 0?o:u.createElement(u.Fragment,null):null}function GS(e,t,n){return u.useCallback(r=>{r==null||r.setProps(e,t,n)},[e,t,n])}function ja(e,t,n,r,o){let i=GS(t,n,r),a=u.useContext(Xl);if(a){let s=a.ownerDocument.nodesByProps.get(t);return s||(s=a.ownerDocument.createElement(e),s.setProps(t,n,r),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,s)),o?u.createElement(Xl.Provider,{value:s},o):null}return u.createElement(e,{ref:i},o)}const WS=Symbol("callback"),Jl=Symbol("default");function Xe({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function ye(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,values:a}=e;return u.useMemo(()=>{let s,l,c;return typeof t=="function"?s=t(a):s=t,typeof n=="function"?l=n(a):l=n,typeof r=="function"?c=r(a):r==null?c=i:c=r,{className:s??o,style:l,children:c,"data-rac":""}},[t,n,r,o,i,a])}function za(e,t){let n=u.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`));if(!t&&!n.slots[Jl])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=t||Jl;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[o]}return n}function Te(e,t,n){let r=za(n,e.slot)||{},{ref:o,[WS]:i,...a}=r,s=Ft(u.useMemo(()=>wa(t,o),[t,o])),l=oe(a,e);return"style"in a&&a.style&&typeof a.style=="object"&&"style"in e&&e.style&&typeof e.style=="object"&&(l.style={...a.style,...e.style}),u.useEffect(()=>{i&&i(e)},[i,e]),[l,s]}function Ot(){let[e,t]=u.useState(!0),n=u.useRef(!1),r=u.useCallback(o=>{n.current=!0,t(!!o)},[]);return Se(()=>{n.current||t(!1)},[]),[r,e]}function Sc(e,t=!0){let[n,r]=u.useState(!0);return T4(e,n&&t,u.useCallback(()=>r(!1),[])),n&&t}function Ql(e,t){let[n,r]=u.useState(!1),[o,i]=u.useState("idle");return!t&&e.current&&o==="idle"&&(n=!0,r(!0),i("exiting")),!e.current&&o==="exited"&&i("idle"),T4(e,n,u.useCallback(()=>{i("exited"),r(!1)},[])),n}function T4(e,t,n){let r=u.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),Se(()=>{if(t&&e.current){let o=window.getComputedStyle(e.current);if(o.animationName&&o.animationName!=="none"&&o.animation!==r.current){let i=s=>{s.target===e.current&&(a.removeEventListener("animationend",i),dn.flushSync(()=>{n()}))},a=e.current;return a.addEventListener("animationend",i),()=>{a.removeEventListener("animationend",i)}}else n()}},[e,t,n])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const To=u.createContext(!1),YS=typeof DocumentFragment<"u"?new DocumentFragment:null;function A4(e){let t=u.useContext(To),n=Ht();if(t)return u.createElement(u.Fragment,null,e.children);let r=u.createElement(To.Provider,{value:!0},e.children);return n?u.createElement("template",{"data-react-aria-hidden":!0},r):dn.createPortal(r,YS)}function Ua(e){let t=(n,r)=>u.useContext(To)?null:e(n,r);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function Yn(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}const k4=u.createContext(null);function qS(e,t){[e,t]=Te(e,t,k4);let n=e.href?"a":"span",{linkProps:r,isPressed:o}=sP({...e,elementType:n},t),{hoverProps:i,isHovered:a}=Ye(e),{focusProps:s,isFocused:l,isFocusVisible:c}=at(),d=ye({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:a,isFocused:l,isFocusVisible:c}});return u.createElement(n,{ref:t,slot:e.slot||void 0,...oe(d,r,i,s),"data-focused":l||void 0,"data-hovered":a||void 0,"data-pressed":o||void 0,"data-focus-visible":c||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},d.children)}const Ha=u.forwardRef(qS),ZS=u.createContext(null);function XS(e,t){[e,t]=Te(e,t,ZS);let{portal:n,collection:r}=Dc(e);return u.createElement(u.Fragment,null,n,u.createElement(JS,{props:e,collection:r,breadcrumbsRef:t}))}function JS({props:e,collection:t,breadcrumbsRef:n}){var r;return u.createElement("ol",{ref:n,...me(e,{labelable:!0}),slot:e.slot||void 0,style:e.style,className:(r=e.className)!==null&&r!==void 0?r:"react-aria-Breadcrumbs"},[...t].map((o,i)=>u.createElement(t8,{key:o.key,node:o,isCurrent:i===t.size-1,isDisabled:e.isDisabled,onAction:e.onAction})))}const QS=u.forwardRef(XS);function e8(e,t){return ja("item",e,t,e.children)}const M4=u.forwardRef(e8);function t8({node:e,isCurrent:t,isDisabled:n,onAction:r}){let o={"aria-current":t?"page":null,isDisabled:n||t,onPress:()=>r==null?void 0:r(e.key)};var i;return u.createElement("li",{...me(e.props),ref:e.props.ref,style:e.props.style,className:(i=e.props.className)!==null&&i!==void 0?i:"react-aria-Breadcrumb"},u.createElement(k4.Provider,{value:o},e.rendered))}const n8=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Tc=u.createContext({});function r8(e,t){[e,t]=Te(e,t,Tc);let n=e,{buttonProps:r,isPressed:o}=av(e,t),{focusProps:i,isFocused:a,isFocusVisible:s}=at(e),{hoverProps:l,isHovered:c}=Ye(e),d=ye({...e,values:{isHovered:c,isPressed:o,isFocused:a,isFocusVisible:s,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return u.createElement("button",{...me(e,{propNames:n8}),...oe(r,i,l),...d,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":n.isPressed||o||void 0,"data-hovered":c||void 0,"data-focused":a||void 0,"data-focus-visible":s||void 0})}const R4=Ua(r8),o8=u.createContext({}),fn=u.createContext({});function i8(e,t){[e,t]=Te(e,t,fn);let{elementType:n="span",...r}=e;return u.createElement(n,{className:"react-aria-Text",...r,ref:t})}const Vr=u.forwardRef(i8),Qn=u.createContext(null);function a8(e,t){let n=u.useContext(Qn);return n!=null&&n.isInvalid?u.createElement(s8,{...e,ref:t}):null}const Ko=u.forwardRef(a8),s8=u.forwardRef((e,t)=>{let n=u.useContext(Qn),r=ye({...e,defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.join(" "),values:n});return u.createElement(Vr,{slot:"errorMessage",...r,ref:t})}),Gt=u.createContext({});function l8(e,t){[e,t]=Te(e,t,Gt);let{elementType:n="label",...r}=e;return u.createElement(n,{className:"react-aria-Label",...r,ref:t})}const pn=Ua(l8),u8=u.createContext(null),c8=u.createContext(null);function d8(e,t){[e,t]=Te(e,t,c8);let n=u.useRef(null),r=u.useContext(u8);var o;let{labelProps:i,inputProps:a,isSelected:s,isDisabled:l,isReadOnly:c,isPressed:d,isInvalid:f}=r?gP({...e,value:e.value,children:typeof e.children=="function"?!0:e.children},r,n):fv({...e,children:typeof e.children=="function"?!0:e.children,validationBehavior:(o=e.validationBehavior)!==null&&o!==void 0?o:"native"},Va(e),n),{isFocused:p,isFocusVisible:h,focusProps:m}=at(),b=l||c,{hoverProps:v,isHovered:$}=Ye({...e,isDisabled:b}),C=ye({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:s,isIndeterminate:e.isIndeterminate||!1,isPressed:d,isHovered:$,isFocused:p,isFocusVisible:h,isDisabled:l,isReadOnly:c,isInvalid:f,isRequired:e.isRequired||!1}}),x=me(e);return delete x.id,u.createElement("label",{...oe(x,i,v,C),ref:t,slot:e.slot||void 0,"data-selected":s||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":d||void 0,"data-hovered":$||void 0,"data-focused":p||void 0,"data-focus-visible":h||void 0,"data-disabled":l||void 0,"data-readonly":c||void 0,"data-invalid":f||void 0,"data-required":e.isRequired||void 0},u.createElement(Aa,{elementType:"span"},u.createElement("input",{...oe(a,m),ref:n})),C.children)}const f8=u.forwardRef(d8),Nr=u.createContext({});function p8(e,t){[e,t]=Te(e,t,Nr);let{isDisabled:n,isInvalid:r,onHoverStart:o,onHoverChange:i,onHoverEnd:a,...s}=e,{hoverProps:l,isHovered:c}=Ye({onHoverStart:o,onHoverChange:i,onHoverEnd:a,isDisabled:n}),{isFocused:d,isFocusVisible:f,focusProps:p}=at({within:!0});n??(n=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r??(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let h=ye({...e,values:{isHovered:c,isFocusWithin:d,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});var m,b;return u.createElement("div",{...oe(s,p,l),...h,ref:t,role:(m=e.role)!==null&&m!==void 0?m:"group",slot:(b=e.slot)!==null&&b!==void 0?b:void 0,"data-focus-within":d||void 0,"data-hovered":c||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0},h.children)}const Ac=u.forwardRef(p8),er=u.createContext({});let h8=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function m8(e,t){[e,t]=Te(e,t,er);let{hoverProps:n,isHovered:r}=Ye(e),{isFocused:o,isFocusVisible:i,focusProps:a}=at({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",l=ye({...e,values:{isHovered:r,isFocused:o,isFocusVisible:i,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement("input",{...oe(h8(e),a,n),...l,ref:t,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":i||void 0,"data-invalid":s||void 0})}const jo=Ua(m8),F4=u.createContext(null);function b8(e,t){let{render:n}=u.useContext(F4);return u.createElement(u.Fragment,null,n(e,t))}const v8=u.forwardRef(b8),kc=u.createContext({}),g8=u.createContext({});function y8(e,t){let[n,r]=Te(e,t,g8),o=S4("header",e,t);return o||u.createElement("header",{className:"react-aria-Header",...n,ref:r},n.children)}const B4=u.forwardRef(y8),Mc=u.createContext({});function $8(e,t){let[n,r]=Te(e,t,Mc),{elementType:o,orientation:i,style:a,className:s}=n,l=o||"hr";l==="hr"&&i==="vertical"&&(l="div");let{separatorProps:c}=B$({elementType:o,orientation:i}),d=S4("separator",e,t);return d||u.createElement(l,{...me(n),...c,style:a,className:s??"react-aria-Separator",ref:r,slot:n.slot||void 0})}const I4=u.forwardRef($8),Ga=u.createContext(null),zo=u.createContext(null);function x8(e,t){[e,t]=Te(e,t,Ga);let n=u.useContext(To),r=u.useContext(zo);return u.useContext(_o)?u.createElement(P4,e):r?n?null:u.createElement(O4,{state:r,props:e,listBoxRef:t}):u.createElement(w8,{props:e,listBoxRef:t})}function w8({props:e,listBoxRef:t}){let{portal:n,collection:r}=Dc(e);e={...e,collection:r,children:null,items:null};let o=V$(e);return u.createElement(u.Fragment,null,n,u.createElement(O4,{state:o,props:e,listBoxRef:t}))}const C8=u.forwardRef(x8);function O4({state:e,props:t,listBoxRef:n}){let{dragAndDropHooks:r,layout:o="stack",orientation:i="vertical"}=t,{collection:a,selectionManager:s}=e,l=!!(r!=null&&r.useDraggableCollectionState),c=!!(r!=null&&r.useDroppableCollectionState),{direction:d}=Ze(),{disabledBehavior:f,disabledKeys:p}=s,h=Fu({usage:"search",sensitivity:"base"}),m=u.useMemo(()=>t.keyboardDelegate||new vc({collection:a,collator:h,ref:n,disabledKeys:f==="selection"?new Set:p,layout:o,orientation:i,direction:d}),[a,h,n,f,p,i,d,t.keyboardDelegate,o]),{listBoxProps:b}=SP({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:m},e,n),v=Lr({items:a,children:K=>{switch(K.type){case"section":return u.createElement(E8,{section:K});case"separator":return u.createElement(I4,K.props);case"item":return u.createElement(L4,{item:K});default:throw new Error("Unsupported node type in Menu: "+K.type)}}}),$=u.useRef(l),C=u.useRef(c);u.useEffect(()=>{$.current!==l&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),C.current!==c&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[l,c]);let x,E,w,A=!1,V=null,y=u.useRef(null);if(l&&r){x=r.useDraggableCollectionState({collection:a,selectionManager:s,preview:r.renderDragPreview?y:void 0}),r.useDraggableCollection({},x,n);let K=r.DragPreview;V=r.renderDragPreview?u.createElement(K,{ref:y},r.renderDragPreview):null}if(c&&r){E=r.useDroppableCollectionState({collection:a,selectionManager:s});let K=r.dropTargetDelegate||new r.ListDropTargetDelegate(a,n,{orientation:i,layout:o,direction:d});w=r.useDroppableCollection({keyboardDelegate:m,dropTargetDelegate:K},E,n),A=E.isDropTarget({type:"root"})}let{focusProps:I,isFocused:M,isFocusVisible:k}=at(),R={isDropTarget:A,isEmpty:e.collection.size===0,isFocused:M,isFocusVisible:k,layout:t.layout||"stack",state:e},S=ye({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:R}),F=null;return e.collection.size===0&&t.renderEmptyState&&(F=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(R))),u.createElement($u,null,u.createElement("div",{...me(t),...oe(b,I,w==null?void 0:w.collectionProps),...S,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":A||void 0,"data-empty":e.collection.size===0||void 0,"data-focused":M||void 0,"data-focus-visible":k||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},u.createElement(Xe,{values:[[Ga,t],[zo,e],[kc,{dragAndDropHooks:r,dragState:x,dropState:E}],[Mc,{elementType:"div"}],[F4,{render:T8}]]},v),F,V))}function E8({section:e,className:t,style:n}){var r,o;let i=u.useContext(zo),[a,s]=Ot();var l;let{headingProps:c,groupProps:d}=AP({heading:s,"aria-label":(l=e.props["aria-label"])!==null&&l!==void 0?l:void 0}),f=Lr({items:i.collection.getChildren(e.key),children:p=>{switch(p.type){case"header":return u.createElement(D8,{item:p,headingProps:c,headingRef:a});case"item":return u.createElement(L4,{item:p});default:throw new Error("Unsupported element type in Section: "+p.type)}}});return u.createElement("section",{...me(e.props),...d,className:t||((r=e.props)===null||r===void 0?void 0:r.className)||"react-aria-Section",style:n||((o=e.props)===null||o===void 0?void 0:o.style),ref:e.props.ref},f)}function D8({item:e,headingProps:t,headingRef:n}){let{ref:r,...o}=e.props;return u.createElement(B4,{...t,...o,ref:wa(n,r)},e.rendered)}function P8(e,t){return ja("item",e,t,e.children)}const S8=u.forwardRef(P8);function L4({item:e}){var t;let n=Ft(e.props.ref),r=u.useContext(zo),{dragAndDropHooks:o,dragState:i,dropState:a}=u.useContext(kc),{optionProps:s,labelProps:l,descriptionProps:c,...d}=TP({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},r,n),{hoverProps:f,isHovered:p}=Ye({isDisabled:!d.allowsSelection&&!d.hasAction}),h=null;i&&o&&(h=o.useDraggableItem({key:e.key},i));let m=null;a&&o&&(m=o.useDroppableItem({target:{type:"item",key:e.key,dropPosition:"on"}},a,n));let b=e.props,v=i&&i.isDragging(e.key),$=ye({...b,id:void 0,children:e.rendered,defaultClassName:"react-aria-ListBoxItem",values:{...d,isHovered:p,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!i,isDragging:v,isDropTarget:m==null?void 0:m.isDropTarget}}),C=(o==null?void 0:o.renderDropIndicator)||(E=>u.createElement(v8,{target:E}));u.useEffect(()=>{e.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[e.textValue]);let x=b.href?"a":"div";return u.createElement(u.Fragment,null,(o==null?void 0:o.useDropIndicator)&&C({type:"item",key:e.key,dropPosition:"before"}),u.createElement(x,{...oe(s,f,h==null?void 0:h.dragProps,m==null?void 0:m.dropProps),...$,ref:n,"data-allows-dragging":!!i||void 0,"data-selected":d.isSelected||void 0,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-dragging":v||void 0,"data-drop-target":(m==null?void 0:m.isDropTarget)||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},u.createElement(Xe,{values:[[fn,{slots:{label:l,description:c}}]]},$.children)),(o==null?void 0:o.useDropIndicator)&&r.collection.getKeyAfter(e.key)==null&&C({type:"item",key:e.key,dropPosition:"after"}))}function T8(e,t){t=Ft(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(kc),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:u.createElement(k8,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function A8(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=ye({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement("div",{...n,...i,role:"option",ref:t,"data-drop-target":r||void 0})}const k8=u.forwardRef(A8),M8=u.createContext({placement:"bottom"}),Sr=u.createContext(null);function R8(e,t){[e,t]=Te(e,t,Sr);let n=u.useContext(tr),r=Ka(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Ql(t,o.isOpen)||e.isExiting||!1;if(u.useContext(To)){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1})),u.createElement(u.Fragment,null,s)}return o&&!o.isOpen&&!i?null:u.createElement(F8,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i})}const V4=u.forwardRef(R8);function F8({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var o;let{popoverProps:i,underlayProps:a,arrowProps:s,placement:l}=Pw({...r,offset:(o=r.offset)!==null&&o!==void 0?o:8},e),c=r.popoverRef,d=Sc(c,!!l)||r.isEntering||!1,f=ye({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:l,isEntering:d,isExiting:t}}),p={...i.style,...f.style};return u.createElement(y0,{isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...a,style:{position:"fixed",inset:0}}),u.createElement("div",{...oe(me(r),i),...f,ref:c,slot:r.slot||void 0,style:p,"data-trigger":r.trigger,"data-placement":l,"data-entering":d||void 0,"data-exiting":t||void 0},!r.isNonModal&&u.createElement(Cl,{onDismiss:e.close}),u.createElement(M8.Provider,{value:{...s,placement:l}},f.children),u.createElement(Cl,{onDismiss:e.close})))}const B8=u.createContext(null),tr=u.createContext(null);function I8(e,t){let n=e["aria-labelledby"];[e,t]=Te(e,t,B8);let{dialogProps:r,titleProps:o}=qP({...e,"aria-labelledby":n},t),i=u.useContext(tr),a=e.children;typeof a=="function"&&(a=a({close:(i==null?void 0:i.close)||(()=>{})})),!r["aria-label"]&&!r["aria-labelledby"]&&(e["aria-labelledby"]?r["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));var s;return u.createElement("section",{...me(e),...r,ref:t,slot:e.slot||void 0,style:e.style,className:(s=e.className)!==null&&s!==void 0?s:"react-aria-Dialog"},u.createElement(Xe,{values:[[o8,{slots:{[Jl]:{},title:{...o,level:2}}}]]},a))}const N4=u.forwardRef(I8),O8=u.createContext(null),L8=u.createContext(null);function V8(e,t){[e,t]=Te(e,t,O8);let{collection:n,document:r}=Pc(),{children:o,isDisabled:i=!1,isInvalid:a=!1,isRequired:s=!1}=e;o=u.useMemo(()=>typeof o=="function"?o({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:s}):o,[o,i,a,s]);var l;return u.createElement(u.Fragment,null,u.createElement(A4,null,u.createElement(Xe,{values:[[_o,r],[Ga,{items:(l=e.items)!==null&&l!==void 0?l:e.defaultItems}]]},o)),u.createElement(N8,{props:e,collection:n,comboBoxRef:t}))}function N8({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:o="key",allowsCustomValue:i}=e;i&&(o="text");let{contains:a}=Rm({sensitivity:"base"});var s;let l=uS({defaultFilter:e.defaultFilter||a,...e,items:e.items,children:void 0,collection:t,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"}),c=u.useRef(null),d=u.useRef(null),f=u.useRef(null),p=u.useRef(null),[h,m]=Ot();var b;let{buttonProps:v,inputProps:$,listBoxProps:C,labelProps:x,descriptionProps:E,errorMessageProps:w,...A}=_P({...Yn(e),label:m,inputRef:d,buttonRef:c,listBoxRef:f,popoverRef:p,name:o==="text"?r:void 0,validationBehavior:(b=e.validationBehavior)!==null&&b!==void 0?b:"native"},l),[V,y]=u.useState(null),I=u.useCallback(()=>{if(d.current){var S;let F=(S=c.current)===null||S===void 0?void 0:S.getBoundingClientRect(),K=d.current.getBoundingClientRect(),L=F?Math.min(F.left,K.left):K.left,P=F?Math.max(F.right,K.right):K.right;y(P-L+"px")}},[c,d,y]);bu({ref:d,onResize:I});let M=u.useMemo(()=>({isOpen:l.isOpen,isDisabled:e.isDisabled||!1,isInvalid:A.isInvalid||!1,isRequired:e.isRequired||!1}),[l.isOpen,e.isDisabled,A.isInvalid,e.isRequired]),k=ye({...e,values:M,defaultClassName:"react-aria-ComboBox"}),R=me(e);return delete R.id,u.createElement(Xe,{values:[[L8,l],[Gt,{...x,ref:h}],[Tc,{...v,ref:c,isPressed:l.isOpen}],[er,{...$,ref:d}],[tr,l],[Sr,{ref:p,triggerRef:d,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":V}}],[Ga,{...C,ref:f}],[zo,l],[fn,{slots:{description:E,errorMessage:w}}],[Nr,{isInvalid:A.isInvalid,isDisabled:e.isDisabled||!1}],[Qn,A]]},u.createElement("div",{...R,...k,ref:n,slot:e.slot||void 0,"data-focused":l.isFocused||void 0,"data-open":l.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":A.isInvalid||void 0,"data-required":e.isRequired||void 0}),r&&o==="key"&&u.createElement("input",{type:"hidden",name:r,value:l.selectedKey}))}const _8=u.forwardRef(V8),_4=u.createContext(null),K8=u.createContext(null),Uo=u.createContext(null),Wa=u.createContext(null);function j8(e,t){[e,t]=Te(e,t,_4);let{locale:n}=Ze();var r;let o=Cc({...e,locale:n,createCalendar:Sm,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=Ot(),l=u.useRef(null);var c;let{labelProps:d,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:m,...b}=xc({...Yn(e),label:s,inputRef:l,validationBehavior:(c=e.validationBehavior)!==null&&c!==void 0?c:"native"},o,i),v=ye({...Yn(e),values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-DateField"}),$=me(e);return delete $.id,u.createElement(Xe,{values:[[Uo,o],[Nr,{...f,ref:i,isInvalid:o.isInvalid}],[er,{...p,ref:l}],[Gt,{...d,ref:a,elementType:"span"}],[fn,{slots:{description:h,errorMessage:m}}],[Qn,b]]},u.createElement("div",{...$,...v,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const z8=u.forwardRef(j8);function U8(e,t){[e,t]=Te(e,t,K8);let{locale:n}=Ze();var r;let o=ES({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=Ot(),l=u.useRef(null);var c;let{labelProps:d,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:m,...b}=UP({...Yn(e),label:s,inputRef:l,validationBehavior:(c=e.validationBehavior)!==null&&c!==void 0?c:"native"},o,i),v=ye({...e,values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-TimeField"}),$=me(e);return delete $.id,u.createElement(Xe,{values:[[Wa,o],[Nr,{...f,ref:i,isInvalid:o.isInvalid}],[er,{...p,ref:l}],[Gt,{...d,ref:a,elementType:"span"}],[fn,{slots:{description:h,errorMessage:m}}],[Qn,b]]},u.createElement("div",{...$,...v,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const H8=u.forwardRef(U8);function G8(e,t){let n=u.useContext(Uo),r=u.useContext(Wa);return n||r?u.createElement(K4,{...e,ref:t}):u.createElement(W8,{...e,ref:t})}const W8=u.forwardRef((e,t)=>{let[n,r]=Te({slot:e.slot},t,_4),{locale:o}=Ze(),i=Cc({...n,locale:o,createCalendar:Sm}),a=u.useRef(null),{fieldProps:s,inputProps:l}=xc({...n,inputRef:a},i,r);return u.createElement(Xe,{values:[[Uo,i],[er,{...l,ref:a}],[Nr,{...s,ref:r,isInvalid:i.isInvalid}]]},u.createElement(K4,e))}),K4=u.forwardRef((e,t)=>{let{className:n,children:r}=e,o=u.useContext(Uo),i=u.useContext(Wa),a=o??i;return u.createElement(u.Fragment,null,u.createElement(Ac,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isInvalid:a.isInvalid},a.segments.map((s,l)=>u.cloneElement(r(s),{key:l}))),u.createElement(jo,null))}),j4=u.forwardRef(G8);function Y8({segment:e,...t},n){let r=u.useContext(Uo),o=u.useContext(Wa),i=r??o,a=Ft(n),{segmentProps:s}=WP(e,i,a),{focusProps:l,isFocused:c,isFocusVisible:d}=at(),{hoverProps:f,isHovered:p}=Ye({...t,isDisabled:i.isDisabled||e.type==="literal"}),h=ye({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:p,isFocused:c,isFocusVisible:d},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return u.createElement("div",{...oe(me(t),s,l,f),...h,ref:a,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":i.isDisabled||void 0,"data-type":e.type,"data-hovered":p||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0})}const z4=u.forwardRef(Y8),U4=u.createContext({}),H4=u.createContext(null),Ho=u.createContext(null),G4=u.createContext(null);function W4(e){let{item:t,parentMenuRef:n}=e,r=u.useContext(Ho);return Lr({items:r.collection.getChildren(t.key),children:i=>{switch(i.type){case"item":return u.createElement(Q8,{item:i,popover:t.rendered[1],parentMenuRef:n,delay:t.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+t.type)}}})}function q8(e,t){[e,t]=Te(e,t,H4);let{portal:n,collection:r}=Dc(e);return u.createElement(u.Fragment,null,r.size>0&&u.createElement(Z8,{props:e,collection:r,menuRef:t}),n)}function Z8({props:e,collection:t,menuRef:n}){let r=OS({...e,collection:t,children:void 0}),[o,i]=u.useState(null),{menuProps:a}=RP(e,r,n),s=u.useContext(G4),l=u.useContext(Sr),c=Lr({items:r.collection,children:p=>{switch(p.type){case"section":return u.createElement(J8,{section:p,parentMenuRef:n});case"separator":return u.createElement(I4,p.props);case"item":return u.createElement(Y4,{item:p});case"submenutrigger":return u.createElement(W4,{item:p,parentMenuRef:n});default:throw new Error("Unsupported node type in Menu: "+p.type)}}}),d=(l==null?void 0:l.trigger)==="SubmenuTrigger";Wh({ref:n,onInteractOutside:p=>{s&&!(o!=null&&o.contains(p.target))&&s.close()},isDisabled:d||(s==null?void 0:s.UNSTABLE_expandedKeysStack.length)===0});var f;return u.createElement($u,null,u.createElement("div",{...me(e),...a,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,style:e.style,className:(f=e.className)!==null&&f!==void 0?f:"react-aria-Menu"},u.createElement(Xe,{values:[[Ho,r],[Mc,{elementType:"div"}],[Sr,{UNSTABLE_portalContainer:o||void 0}]]},c)),u.createElement("div",{ref:i,style:{width:"100vw",position:"absolute",top:0}}))}const X8=u.forwardRef(q8);function J8({section:e,className:t,style:n,parentMenuRef:r,...o}){var i,a;let s=u.useContext(Ho),[l,c]=Ot();var d;let{headingProps:f,groupProps:p}=FP({heading:c,"aria-label":(d=e["aria-label"])!==null&&d!==void 0?d:void 0}),h=Lr({items:s.collection.getChildren(e.key),children:m=>{switch(m.type){case"header":{let{ref:b,...v}=m.props;return u.createElement(B4,{...f,...v,ref:wa(l,b)},m.rendered)}case"item":return u.createElement(Y4,{item:m});case"submenutrigger":return u.createElement(W4,{item:m,parentMenuRef:r});default:throw new Error("Unsupported element type in Section: "+m.type)}}});return u.createElement("section",{...me(o),...p,className:t||((i=e.props)===null||i===void 0?void 0:i.className)||"react-aria-Section",style:n||((a=e.props)===null||a===void 0?void 0:a.style),ref:e.props.ref},h)}function Y4({item:e}){var t;let n=u.useContext(Ho),r=Ft(e.props.ref),{menuItemProps:o,labelProps:i,descriptionProps:a,keyboardShortcutProps:s,...l}=Rg({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},n,r),c=e.props,{isFocusVisible:d,focusProps:f}=at(),{hoverProps:p,isHovered:h}=Ye({isDisabled:l.isDisabled}),m=ye({...c,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...l,isHovered:h,isFocusVisible:d,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),b=c.href?"a":"div";return u.createElement(b,{...oe(o,f,p),...m,ref:r,"data-disabled":l.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":d||void 0,"data-pressed":l.isPressed||void 0,"data-selected":l.isSelected||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode},u.createElement(Xe,{values:[[fn,{slots:{label:i,description:a}}],[U4,s]]},m.children))}function Q8({item:e,popover:t,parentMenuRef:n,delay:r}){let o=u.useContext(Ho),i=za(Sr),a=Ft(e.props.ref),s=u.useContext(G4),l=DS({triggerKey:e.key},s),c=u.useRef(null),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=LP({node:e,parentMenuRef:n,submenuRef:c,delay:r},l,a),{menuItemProps:h,labelProps:m,descriptionProps:b,keyboardShortcutProps:v,...$}=Rg({key:e.key,...d},o,a),C=e.props,{hoverProps:x,isHovered:E}=Ye({isDisabled:$.isDisabled}),{isFocusVisible:w,focusProps:A}=at(),V=ye({...C,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...$,isHovered:E,isFocusVisible:w,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,hasSubmenu:!0,isOpen:l.isOpen}});return u.createElement(Xe,{values:[[fn,{slots:{label:m,description:b}}],[U4,v],[H4,f],[tr,l],[Sr,{ref:c,trigger:"SubmenuTrigger",triggerRef:a,placement:"end top",UNSTABLE_portalContainer:i.UNSTABLE_portalContainer||void 0,...p}]]},u.createElement("div",{...oe(h,A,x),...V,ref:a,"data-disabled":$.isDisabled||void 0,"data-hovered":E||void 0,"data-focused":$.isFocused||void 0,"data-focus-visible":w||void 0,"data-pressed":$.isPressed||void 0,"data-selected":$.isSelected||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-has-submenu":!0,"data-open":l.isOpen||void 0},V.children),t)}const eT=u.createContext(null);function tT(e,t){[e,t]=Te(e,t,eT);let{value:n=0,minValue:r=0,maxValue:o=100}=e;n=At(n,r,o);let[i,a]=Ot(),{meterProps:s,labelProps:l}=ZP({...e,label:a}),c=(n-r)/(o-r)*100,d=ye({...e,defaultClassName:"react-aria-Meter",values:{percentage:c,valueText:s["aria-valuetext"]}});return u.createElement("div",{...s,...d,ref:t,slot:e.slot||void 0},u.createElement(Gt.Provider,{value:{...l,ref:i,elementType:"span"}},d.children))}const nT=u.forwardRef(tT),rT=u.createContext(null),Rc=u.createContext(null);function oT(e,t){if(u.useContext(Rc))return u.createElement(oh,{...e,modalRef:t},e.children);let{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,isEntering:c,isExiting:d,UNSTABLE_portalContainer:f,...p}=e;return u.createElement(q4,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:c,isExiting:d,UNSTABLE_portalContainer:f},u.createElement(oh,{...p,modalRef:t},l))}const iT=u.forwardRef(oT);function aT(e,t){[e,t]=Te(e,t,rT);let n=u.useContext(tr),r=Ka(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Ft(t),a=u.useRef(null),s=Ql(i,o.isOpen),l=Ql(a,o.isOpen),c=s||l||e.isExiting||!1,d=Ht();return!o.isOpen&&!c||d?null:u.createElement(sT,{...e,state:o,isExiting:c,overlayRef:i,modalRef:a})}const q4=u.forwardRef(aT);function sT({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=Sw(t,r,n),a=Sc(t.overlayRef)||t.isEntering||!1,s=ye({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=u5(),c={...s.style,"--visual-viewport-height":l.height+"px"};return u.createElement(y0,{isExiting:t.isExiting,portalContainer:e},u.createElement("div",{...oe(me(t),i),...s,style:c,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},u.createElement(Xe,{values:[[Rc,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[tr,r]]},s.children)))}function oh(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=u.useContext(Rc),i=u.useContext(tr),a=u.useMemo(()=>wa(e.modalRef,n),[e.modalRef,n]),s=Ft(a),l=Sc(s),c=ye({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return u.createElement("div",{...oe(me(e),t),...c,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&u.createElement(Cl,{onDismiss:i.close}),c.children)}const lT=u.createContext(null),uT=u.createContext(null);function cT(e,t){[e,t]=Te(e,t,lT);let{locale:n}=Ze();var r;let o=PS({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=Ot();var l;let{labelProps:c,groupProps:d,inputProps:f,incrementButtonProps:p,decrementButtonProps:h,descriptionProps:m,errorMessageProps:b,...v}=JP({...Yn(e),label:s,validationBehavior:(l=e.validationBehavior)!==null&&l!==void 0?l:"native"},o,i),$=ye({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),C=me(e);return delete C.id,u.createElement(Xe,{values:[[uT,o],[Nr,d],[er,{...f,ref:i}],[Gt,{...c,ref:a}],[Tc,{slots:{increment:p,decrement:h}}],[fn,{slots:{description:m,errorMessage:b}}],[Qn,v]]},u.createElement("div",{...C,...$,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":v.isInvalid||void 0}),e.name&&u.createElement("input",{type:"hidden",name:e.name,value:isNaN(o.numberValue)?"":o.numberValue}))}const dT=u.forwardRef(cT),fT=u.createContext(null);function pT(e,t){[e,t]=Te(e,t,fT);let{value:n=0,minValue:r=0,maxValue:o=100,isIndeterminate:i=!1}=e;n=At(n,r,o);let[a,s]=Ot(),{progressBarProps:l,labelProps:c}=Jy({...e,label:s}),d=i?void 0:(n-r)/(o-r)*100,f=ye({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:d,valueText:l["aria-valuetext"],isIndeterminate:i}});return u.createElement("div",{...l,...f,ref:t,slot:e.slot||void 0},u.createElement(Gt.Provider,{value:{...c,ref:a,elementType:"span"}},f.children))}const Z4=u.forwardRef(pT),hT=u.createContext(null),Ya=u.createContext(null),Fc=u.createContext(null),X4=u.createContext(null);function mT(e,t){[e,t]=Te(e,t,hT);let n=u.useRef(null),r=oa(e.formatOptions),o=kS({...e,numberFormatter:r}),[i,a]=Ot(),{groupProps:s,trackProps:l,labelProps:c,outputProps:d}=QP({...e,label:a},o,n),f=ye({...e,values:{orientation:o.orientation,isDisabled:o.isDisabled,state:o},defaultClassName:"react-aria-Slider"}),p=me(e);return delete p.id,u.createElement(Xe,{values:[[Ya,o],[Fc,{...l,ref:n}],[X4,d],[Gt,{...c,ref:i}]]},u.createElement("div",{...p,...s,...f,ref:t,slot:e.slot||void 0,"data-orientation":o.orientation,"data-disabled":o.isDisabled||void 0}))}const bT=u.forwardRef(mT);function vT(e,t){[e,t]=Te(e,t,X4);let{children:n,style:r,className:o,...i}=e,a=u.useContext(Ya),s=ye({className:o,style:r,children:n,defaultChildren:a.getThumbValueLabel(0),defaultClassName:"react-aria-SliderOutput",values:{orientation:a.orientation,isDisabled:a.isDisabled,state:a}});return u.createElement("output",{...i,...s,ref:t,"data-orientation":a.orientation||void 0,"data-disabled":a.isDisabled||void 0})}const gT=u.forwardRef(vT);function yT(e,t){[e,t]=Te(e,t,Fc);let n=u.useContext(Ya),{onHoverStart:r,onHoverEnd:o,onHoverChange:i,...a}=e,{hoverProps:s,isHovered:l}=Ye({onHoverStart:r,onHoverEnd:o,onHoverChange:i}),c=ye({...e,defaultClassName:"react-aria-SliderTrack",values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:l,state:n}});return u.createElement("div",{...oe(a,s),...c,ref:t,"data-hovered":l||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})}const $T=u.forwardRef(yT);function xT(e,t){let n=u.useContext(Ya),{ref:r}=za(Fc),{index:o=0}=e,i=u.useRef(null),[a,s]=Ot(),{thumbProps:l,inputProps:c,labelProps:d,isDragging:f,isFocused:p,isDisabled:h}=eS({...e,index:o,trackRef:r,inputRef:i,label:s},n),{focusProps:m,isFocusVisible:b}=at(),{hoverProps:v,isHovered:$}=Ye(e),C=ye({...e,defaultClassName:"react-aria-SliderThumb",values:{state:n,isHovered:$,isDragging:f,isFocused:p,isFocusVisible:b,isDisabled:h}}),x=me(e);return delete x.id,u.createElement("div",{...oe(x,l,v),...C,ref:t,style:{...l.style,...C.style},"data-hovered":$||void 0,"data-dragging":f||void 0,"data-focused":p||void 0,"data-focus-visible":b||void 0,"data-disabled":h||void 0},u.createElement(Aa,null,u.createElement("input",{ref:i,...oe(c,m)})),u.createElement(Xe,{values:[[Gt,{...d,ref:a}]]},C.children))}const wT=u.forwardRef(xT),CT=u.createContext(null);function ET(e,t){[e,t]=Te(e,t,CT);let n=u.useRef(null),r=Va(e),{labelProps:o,inputProps:i,isSelected:a,isDisabled:s,isReadOnly:l,isPressed:c}=tS({...Yn(e),children:typeof e.children=="function"?!0:e.children},r,n),{isFocused:d,isFocusVisible:f,focusProps:p}=at(),h=e.isDisabled||e.isReadOnly,{hoverProps:m,isHovered:b}=Ye({...e,isDisabled:h}),v=ye({...e,defaultClassName:"react-aria-Switch",values:{isSelected:a,isPressed:c,isHovered:b,isFocused:d,isFocusVisible:f,isDisabled:s,isReadOnly:l,state:r}}),$=me(e);return delete $.id,u.createElement("label",{...oe($,o,m,v),ref:t,slot:e.slot||void 0,"data-selected":a||void 0,"data-pressed":c||void 0,"data-hovered":b||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-disabled":s||void 0,"data-readonly":l||void 0},u.createElement(Aa,{elementType:"span"},u.createElement("input",{...i,...p,ref:n})),v.children)}const DT=u.forwardRef(ET),Bc=u.createContext(null),Ic=u.createContext(null);function PT(e,t){[e,t]=Te(e,t,Bc);let{collection:n,document:r}=Pc(),{children:o,orientation:i="horizontal"}=e;return o=u.useMemo(()=>typeof o=="function"?o({orientation:i}):o,[o,i]),u.createElement(u.Fragment,null,u.createElement(A4,null,u.createElement(_o.Provider,{value:r},o)),u.createElement(ST,{props:e,collection:n,tabsRef:t}))}function ST({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,o=MS({...e,collection:n,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:s}=at({within:!0}),l=u.useMemo(()=>({orientation:r,isFocusWithin:a,isFocusVisible:s}),[r,a,s]),c=ye({...e,defaultClassName:"react-aria-Tabs",values:l});return u.createElement("div",{...me(e),...i,...c,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":o.isDisabled||void 0},u.createElement(Xe,{values:[[Bc,e],[Ic,o]]},c.children))}const TT=u.forwardRef(PT);function AT(e,t){return u.useContext(_o)?u.createElement(P4,e):u.createElement(kT,{props:e,forwardedRef:t})}function kT({props:e,forwardedRef:t}){let n=u.useContext(Ic),{orientation:r="horizontal",keyboardActivation:o="automatic"}=za(Bc),i=Ft(t),{tabListProps:a}=iS({...e,orientation:r,keyboardActivation:o},n,i),s=ye({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:r,state:n}}),l=me(e);return delete l.id,u.createElement("div",{...l,...a,ref:i,...s,"data-orientation":r||void 0},[...n.collection].map(c=>u.createElement(BT,{key:c.key,item:c,state:n})))}const MT=u.forwardRef(AT);function RT(e,t){return ja("item",e,t,e.children)}const FT=u.forwardRef(RT);function BT({item:e,state:t}){let n=Ft(e.props.ref),{tabProps:r,isSelected:o,isDisabled:i,isPressed:a}=nS({key:e.key,...e.props},t,n),{focusProps:s,isFocused:l,isFocusVisible:c}=at(),{hoverProps:d,isHovered:f}=Ye({isDisabled:i}),p=ye({...e.props,children:e.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:i,isFocused:l,isFocusVisible:c,isPressed:a,isHovered:f,state:t}}),h=e.props.href?"a":"div";return u.createElement(h,{...oe(r,s,d,p),ref:n,"data-selected":o||void 0,"data-disabled":i||void 0,"data-focus-visible":c||void 0,"data-pressed":a||void 0,"data-hovered":f||void 0})}function IT(e,t){const n=u.useContext(Ic);let r=Ft(t),{tabPanelProps:o}=rS(e,n,r),{focusProps:i,isFocused:a,isFocusVisible:s}=at(),l=n.selectedKey===e.id,c=ye({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!l,state:n}});if(!l&&!e.shouldForceMount)return null;let d=me(e);delete d.id;let f=l?oe(d,o,i,c):c;return u.createElement("div",{...f,ref:r,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:l?void 0:"true","data-inert":l?void 0:"true"})}const OT=Ua(IT),LT=u.createContext({}),VT=u.createContext(null);function NT(e,t){[e,t]=Te(e,t,VT);let n=u.useRef(null),[r,o]=Ot(),[i,a]=u.useState("input");var s;let{labelProps:l,inputProps:c,descriptionProps:d,errorMessageProps:f,...p}=yc({...Yn(e),inputElementType:i,label:o,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"},n),h=u.useCallback(b=>{n.current=b,b&&a(b instanceof HTMLTextAreaElement?"textarea":"input")},[]),m=ye({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid},defaultClassName:"react-aria-TextField"});return u.createElement("div",{...me(e),...m,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0},u.createElement(Xe,{values:[[Gt,{...l,ref:r}],[er,{...c,ref:h}],[LT,{...c,ref:h}],[fn,{slots:{description:d,errorMessage:f}}],[Qn,p]]},m.children))}const qa=u.forwardRef(NT),_T=u.createContext({});function KT(e,t){[e,t]=Te(e,t,_T);let n=Va(e),{buttonProps:r,isPressed:o}=lP(e,n,t),{focusProps:i,isFocused:a,isFocusVisible:s}=at(e),{hoverProps:l,isHovered:c}=Ye(e),d=ye({...e,values:{isHovered:c,isPressed:o,isFocused:a,isSelected:n.isSelected,isFocusVisible:s,isDisabled:e.isDisabled||!1,state:n},defaultClassName:"react-aria-ToggleButton"});return u.createElement("button",{...oe(r,i,l),...d,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":o||void 0,"data-selected":n.isSelected||void 0,"data-hovered":c||void 0,"data-focus-visible":s||void 0})}const jT=u.forwardRef(KT),zT=X(QS)`
269
+ display: flex;
270
+ align-items: center;
271
+ list-style: none;
272
+ margin: 0 0 1rem;
273
+ padding: 0.3125rem 0 0;
274
+ font-size: 0.9rem;
275
+ `,UT=X(M4)`
276
+ display: flex;
277
+ align-items: center;
278
+ `,HT=X(M4)`
279
+ display: flex;
280
+ align-items: center;
281
+ margin: 0 0.5rem;
282
+ color: ${({theme:e})=>e.colors.slate[600]};
283
+
284
+ > svg {
285
+ width: 1rem;
286
+ height: 1rem;
287
+ }
288
+ `,GT=X(Ha)`
289
+ color: ${({theme:e})=>e.colors.slate[600]};
290
+ text-decoration: none;
291
+ cursor: pointer;
292
+
293
+ &:not([data-focus-visible='true']) {
294
+ outline: none;
295
+ }
296
+ &[data-hovered] {
297
+ text-decoration: underline;
298
+ color: ${({theme:e})=>e.colors.slate[900]};
299
+ }
300
+
301
+ &[data-current] {
302
+ font-weight: 600;
303
+ cursor: default;
304
+ color: ${({theme:e})=>e.colors.slate[900]};
305
+ }
306
+
307
+ &[data-disabled] {
308
+ cursor: default;
309
+
310
+ &:not([data-current]) {
311
+ color: ${({theme:e})=>e.colors.slate[400]};
312
+ }
313
+ }
314
+ `;function WT({children:e,...t}){return O.jsx(UT,{...t,children:e})}function YT(e){return O.jsx(GT,{...e})}function qT({children:e,...t}){return O.jsx(HT,{...t,children:e??O.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:O.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}function ZT({children:e,...t}){return O.jsx(zT,{...t,children:e})}const _t=X(R4)`
315
+ display: flex;
316
+ align-items: center;
317
+ padding: 0.4rem 2rem;
318
+ font-weight: 600;
319
+ font-size: 0.9rem;
320
+ line-height: 1;
321
+ border-radius: 0.375rem;
322
+ border-style: solid;
323
+ border-width: 1px;
324
+ justify-content: center;
325
+ transition: all ease 200ms;
326
+ height: ${({size:e})=>{switch(e){case"sm":return"2rem";case"lg":return"3rem";case"md":default:return"2.5rem"}}};
327
+ background-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[800]}}};
328
+ border-color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":return"transparent";case"outline":return(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[300];case"solid":default:return(i=(o=t.colors)==null?void 0:o.slate)==null?void 0:i[800]}}};
329
+ color: ${({variant:e,theme:t})=>{var n,r,o;switch(e){case"ghost":case"outline":return(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[900];case"solid":default:return(o=t.colors)==null?void 0:o.white}}};
330
+
331
+ &[data-hovered] {
332
+ 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.colors)==null?void 0:n.slate)==null?void 0:r[900]}}};
333
+ border-color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":return"transparent";case"outline":return(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[400];case"solid":default:return(i=(o=t.colors)==null?void 0:o.slate)==null?void 0:i[900]}}};
334
+ }
335
+
336
+ &[data-focused] {
337
+ outline: 2px solid ${({theme:e})=>e.colors.slate[200]};
338
+ 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.colors)==null?void 0:n.slate)==null?void 0:r[900]}}};
339
+ border-color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":return"transparent";case"outline":return(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[400];case"solid":default:return(i=(o=t.colors)==null?void 0:o.slate)==null?void 0:i[900]}}};
340
+ }
341
+
342
+ &[data-pressed] {
343
+ transform: scale(0.98);
344
+ }
345
+
346
+ &[data-disabled] {
347
+ background-color: ${({isLoading:e,theme:t,variant:n})=>{switch(n){case"ghost":case"outline":return"transparent";case"solid":default:return e?t.colors.slate[900]:t.colors.slate[100]}}};
348
+ border-color: ${({isLoading:e,theme:t,variant:n})=>{switch(n){case"ghost":return"transparent";case"outline":return e?t.colors.slate[300]:t.colors.slate[200];case"solid":default:return e?t.colors.slate[900]:t.colors.slate[200]}}};
349
+ color: ${({isLoading:e,theme:t,variant:n})=>{switch(n){case"ghost":case"outline":return e?t.colors.slate[900]:t.colors.slate[500];case"solid":default:return e?t.colors.white:t.colors.slate[400]}}};
350
+ }
351
+ `;function XT({children:e,isDisabled:t=!1,isLoading:n=!1,size:r="md",variant:o="solid",...i}){return O.jsx(_t,{isDisabled:t||n,isLoading:n,size:r,variant:o,...i,children:e})}const xt=X.div`
352
+ width: 1.5rem;
353
+ height: 1.5rem;
354
+ border: 1px solid ${({theme:e})=>e.colors.slate[300]};
355
+ border-radius: 4px;
356
+ transition: all ease 200ms;
357
+ display: flex;
358
+ align-items: center;
359
+ justify-content: center;
360
+ `,Li=X.svg`
361
+ width: 1rem;
362
+ height: 1rem;
363
+ fill: none;
364
+ stroke: ${({theme:e})=>e.colors.white};
365
+ stroke-width: 3px;
366
+ stroke-dasharray: 22px;
367
+ stroke-dashoffset: 66;
368
+ transition: all 200ms;
369
+ `,JT=X(f8)`
370
+ display: flex;
371
+ align-items: center;
372
+ gap: 0.5rem;
373
+ font-size: 0.8rem;
374
+ color: ${({theme:e})=>e.colors.slate[500]};
375
+ forced-color-adjust: none;
376
+
377
+ &[data-hovered] ${xt} {
378
+ border-color: ${({theme:e})=>e.colors.slate[400]};
379
+ }
380
+
381
+ &[data-focused] ${xt} {
382
+ border-color: ${({theme:e})=>e.colors.slate[400]};
383
+ outline: 2px solid ${({theme:e})=>e.colors.slate[200]};
384
+ }
385
+
386
+ &[data-disabled] {
387
+ color: ${({theme:e})=>e.colors.slate[400]};
388
+
389
+ &[data-indeterminate] {
390
+ & ${Li} {
391
+ stroke: none;
392
+ fill: ${({theme:e})=>e.colors.slate[300]};
393
+ }
394
+ }
395
+
396
+ &[data-indeterminate] ${xt} {
397
+ border-color: ${({theme:e})=>e.colors.slate[200]};
398
+ background: ${({theme:e})=>e.colors.slate[100]};
399
+ }
400
+ }
401
+ &[data-disabled] ${xt} {
402
+ border-color: ${({theme:e})=>e.colors.slate[200]};
403
+ background: ${({theme:e})=>e.colors.slate[100]};
404
+ }
405
+
406
+ &[data-invalid] {
407
+ color: ${({theme:e})=>e.colors.red[500]};
408
+
409
+ ${xt} {
410
+ background: ${({theme:e})=>e.colors.red[100]};
411
+ color: ${({theme:e})=>e.colors.red[600]};
412
+ border: 1px solid ${({theme:e})=>e.colors.red[500]};
413
+ }
414
+
415
+ &[data-hovered] ${xt} {
416
+ border: 1px solid ${({theme:e})=>e.colors.red[600]};
417
+ }
418
+
419
+ &[data-focused] ${xt} {
420
+ border: 1px solid ${({theme:e})=>e.colors.red[600]};
421
+ outline: 2px solid ${({theme:e})=>e.colors.red[200]};
422
+ }
423
+
424
+ &[data-selected],
425
+ &[data-indeterminate] {
426
+ ${xt} {
427
+ background: ${({theme:e})=>e.colors.red[500]};
428
+ border: 1px solid ${({theme:e})=>e.colors.red[500]};
429
+ }
430
+
431
+ &[data-pressed] ${xt} {
432
+ background: ${({theme:e})=>e.colors.red[600]};
433
+ border: 1px solid ${({theme:e})=>e.colors.red[600]};
434
+ }
435
+ }
436
+ }
437
+
438
+ &[data-selected],
439
+ &[data-indeterminate] {
440
+ ${xt} {
441
+ border-color: ${({theme:e})=>e.colors.slate[300]};
442
+ background: ${({theme:e})=>e.colors.slate[300]};
443
+ }
444
+
445
+ &[data-pressed] ${xt} {
446
+ border-color: ${({theme:e})=>e.colors.slate[400]};
447
+ background: ${({theme:e})=>e.colors.slate[400]};
448
+ }
449
+
450
+ ${Li} {
451
+ stroke-dashoffset: 44;
452
+ }
453
+ }
454
+
455
+ &[data-indeterminate] {
456
+ & ${Li} {
457
+ stroke: none;
458
+ fill: ${({theme:e})=>e.colors.white};
459
+ }
460
+ }
461
+ `;function QT({children:e,...t}){return O.jsx(JT,{...t,children:({isIndeterminate:n})=>O.jsxs(O.Fragment,{children:[O.jsx(xt,{children:O.jsx(Li,{viewBox:"0 0 18 18","aria-hidden":"true",children:n?O.jsx("rect",{x:1,y:7.5,width:15,height:3}):O.jsx("polyline",{points:"1 9 7 14 15 4"})})}),e]})})}const e9=X.div`
462
+ width: 100%;
463
+ `,t9=X(Jn.div)`
464
+ width: 100%;
465
+ overflow: hidden;
466
+ `,Oc=u.createContext({});function n9({children:e,...t}){const n=u.useId(),[r,o]=Rt(t.isOpen,t.defaultOpen||!1,t.onOpenChange),i=u.useRef(null),a=u.useCallback(()=>{o(!r)},[o,r]);return O.jsx(Xe,{values:[[Oc,{isOpen:r,id:n,defaultOpen:t.defaultOpen||!1}]],children:O.jsx(w5,{ref:i,isPressed:r,onPress:a,"aria-expanded":r,"aria-controls":n,children:O.jsx(e9,{children:e})})})}function r9({children:e}){const{isOpen:t,id:n,defaultOpen:r}=u.useContext(Oc);return O.jsx(t9,{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 o9=Jn(X(V4)`
467
+ padding: 0.4rem 0;
468
+ box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
469
+ border-radius: 0.375rem;
470
+ width: 14rem;
471
+ background: #fff;
472
+ border: 1px solid ${({theme:e})=>e.colors.slate[300]};
473
+ `);function J4({children:e,key:t,onAction:n,setAnimation:r,animation:o="hidden",...i}){return O.jsx(o9,{isExiting:o==="hidden",onAnimationComplete:a=>{r(s=>a==="hidden"&&s==="hidden"?"unmounted":s)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:o,...i,children:O.jsx(X8,{style:{outline:"none"},onAction:n,children:e})},t)}J4.defaultProps={key:void 0,onAction:void 0};const i9=X(z8)`
474
+ color: ${({theme:e})=>e.colors.slate[900]};
475
+ `,a9=X(j4)`
476
+ display: flex;
477
+ align-items: center;
478
+ border: 1px solid ${({theme:e})=>e.colors.slate[300]};
479
+ font-size: 0.9rem;
480
+ padding: 0 0.25rem;
481
+ height: 2.5rem;
482
+ margin: 0;
483
+ border-radius: 0.375rem;
484
+ background: ${({theme:e})=>e.colors.white};
485
+ color: ${({theme:e})=>e.colors.slate[900]};
486
+ width: 100%;
487
+ transition: all ease 200ms;
488
+
489
+ &[data-hovered] {
490
+ border: 1px solid ${({theme:e})=>e.colors.slate[400]};
491
+ }
492
+
493
+ &[data-focus-within] {
494
+ border: 1px solid ${({theme:e})=>e.colors.slate[400]};
495
+ outline: 2px solid ${({theme:e})=>e.colors.slate[200]};
496
+ }
497
+
498
+ &[data-disabled] {
499
+ border: 1px solid ${({theme:e})=>e.colors.slate[200]};
500
+ background: ${({theme:e})=>e.colors.slate[100]};
501
+ }
502
+
503
+ &[data-invalid] {
504
+ border: 1px solid ${({theme:e})=>e.colors.red[500]};
505
+ background: ${({theme:e})=>e.colors.red[100]};
506
+ color: ${({theme:e})=>e.colors.red[600]};
507
+
508
+ &[data-hovered] {
509
+ border: 1px solid ${({theme:e})=>e.colors.red[600]};
510
+ }
511
+
512
+ &[data-focus-within] {
513
+ border: 1px solid ${({theme:e})=>e.colors.red[600]};
514
+ outline: 2px solid ${({theme:e})=>e.colors.red[200]};
515
+ }
516
+ }
517
+ `,s9=X(z4)`
518
+ padding: 0.25rem;
519
+ font-variant-numeric: tabular-nums;
520
+ text-align: end;
521
+ color: ${({theme:e})=>e.colors.slate[900]};
522
+
523
+ &[data-invalid] {
524
+ color: ${({theme:e})=>e.colors.red[500]};
525
+ }
526
+
527
+ &[data-disabled] {
528
+ cursor: default;
529
+ user-select: none;
530
+ color: ${({theme:e})=>e.colors.slate[400]};
531
+ }
532
+
533
+ &[data-focused],
534
+ &[data-focus-visible] {
535
+ outline: 1px auto ${({theme:e})=>e.colors.slate[500]};
536
+ }
537
+
538
+ &[data-type='literal'] {
539
+ padding: 0;
540
+ }
541
+
542
+ &[data-placeholder] {
543
+ color: ${({theme:e})=>e.colors.slate[400]};
544
+
545
+ &[data-invalid] {
546
+ color: ${({theme:e})=>e.colors.red[500]};
547
+
548
+ &:focus {
549
+ color: ${({theme:e})=>e.colors.white};
550
+ }
551
+ }
552
+ }
553
+
554
+ &:focus:not([aria-readonly]) {
555
+ color: ${({theme:e})=>e.colors.slate[900]};
556
+ background: ${({theme:e})=>e.colors.slate[200]};
557
+ outline: none;
558
+ border-radius: 0.375rem;
559
+ caret-color: transparent;
560
+
561
+ &[data-invalid] {
562
+ background: ${({theme:e})=>e.colors.red[500]};
563
+ color: ${({theme:e})=>e.colors.white};
564
+ }
565
+ }
566
+ `,l9=X(pn)`
567
+ display: flex;
568
+ font-size: 0.8rem;
569
+ color: ${({theme:e})=>e.colors.slate[500]};
570
+ `,u9=X(Ko)`
571
+ display: flex;
572
+ color: ${({theme:e})=>e.colors.red[500]};
573
+ font-size: 0.8rem;
574
+ `,c9=X(Vr)`
575
+ display: flex;
576
+ color: ${({theme:e})=>e.colors.slate[500]};
577
+ font-size: 0.8rem;
578
+ `;function Q4({label:e,description:t,errorMessage:n,...r}){return O.jsxs(i9,{...r,children:[O.jsx(l9,{children:e}),O.jsx(a9,{children:o=>O.jsx(s9,{segment:o})}),O.jsx(c9,{slot:"description",children:t}),O.jsx(u9,{children:n})]})}Q4.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const d9=X.div`
579
+ width: ${({orientation:e})=>e==="vertical"?"1px":"100%"};
580
+ height: ${({orientation:e})=>e==="vertical"?"auto":"1px"};
581
+ margin: ${({orientation:e})=>e==="vertical"?"0 1rem":"1rem 0"};
582
+ background: ${({theme:e})=>{var t,n;return(n=(t=e.colors)==null?void 0:t.slate)==null?void 0:n[200]}};
583
+ `;function f9(e){const{orientation:t}=e,{separatorProps:n}=B$(e);return O.jsx(d9,{...n,orientation:t})}const On=X(jo)`
584
+ border: 1px solid ${({theme:e})=>e.colors.slate[300]};
585
+ font-size: 0.9rem;
586
+ padding: 0 0.5rem;
587
+ height: 2.5rem;
588
+ margin: 0;
589
+ border-radius: 0.375rem;
590
+ background: ${({theme:e})=>e.colors.white};
591
+ color: ${({theme:e})=>e.colors.slate[900]};
592
+ width: 100%;
593
+ transition: all ease 200ms;
594
+
595
+ &[data-hovered] {
596
+ border: 1px solid ${({theme:e})=>e.colors.slate[400]};
597
+ }
598
+
599
+ &[data-focused] {
600
+ border: 1px solid ${({theme:e})=>e.colors.slate[400]};
601
+ outline: 2px solid ${({theme:e})=>e.colors.slate[200]};
602
+ }
603
+
604
+ &[data-disabled] {
605
+ border: 1px solid ${({theme:e})=>e.colors.slate[200]};
606
+ background: ${({theme:e})=>e.colors.slate[100]};
607
+ }
608
+
609
+ &[data-invalid] {
610
+ border: 1px solid ${({theme:e})=>e.colors.red[500]};
611
+ background: ${({theme:e})=>e.colors.red[100]};
612
+ color: ${({theme:e})=>e.colors.red[600]};
613
+
614
+ &[data-hovered] {
615
+ border: 1px solid ${({theme:e})=>e.colors.red[600]};
616
+ }
617
+
618
+ &[data-focused] {
619
+ border: 1px solid ${({theme:e})=>e.colors.red[600]};
620
+ outline: 2px solid ${({theme:e})=>e.colors.red[200]};
621
+ }
622
+ }
623
+
624
+ ::placeholder {
625
+ color: ${({theme:e})=>e.colors.slate[400]};
626
+ }
627
+ `,e1=X(pn)`
628
+ display: flex;
629
+ font-size: 0.8rem;
630
+ color: ${({theme:e})=>e.colors.slate[500]};
631
+ `,p9=X(qa)`
632
+ display: flex;
633
+ flex-direction: column;
634
+ width: 100%;
635
+ color: ${({theme:e})=>e.colors.slate[900]};
636
+ `,t1=X(Ko)`
637
+ display: flex;
638
+ color: ${({theme:e})=>e.colors.red[500]};
639
+ font-size: 0.8rem;
640
+ `,n1=X(Vr)`
641
+ display: flex;
642
+ color: ${({theme:e})=>e.colors.slate[500]};
643
+ font-size: 0.8rem;
644
+ `;function r1({label:e,description:t,errorMessage:n,...r}){return O.jsxs(p9,{...r,children:[O.jsx(e1,{children:e}),O.jsx(On,{}),t&&O.jsx(n1,{slot:"description",children:t}),O.jsx(t1,{children:n})]})}r1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const h9=X(Ha)`
645
+ color: ${({isDisabled:e,theme:t})=>{var n,r,o,i;return e?(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[300]:(i=(o=t.colors)==null?void 0:o.slate)==null?void 0:i[500]}};
646
+ cursor: ${({isDisabled:e})=>e?"default":"pointer"};
647
+ text-decoration: none;
648
+ transition: 0.3s color;
649
+ outline: none;
650
+
651
+ &:hover {
652
+ color: ${({isDisabled:e,theme:t})=>{var n,r,o,i;return e?(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[300]:(i=(o=t.colors)==null?void 0:o.slate)==null?void 0:i[800]}};
653
+ }
654
+ `;function m9({children:e,...t}){return O.jsx(h9,{...t,children:e})}const b9=X(nT)`
655
+ display: flex;
656
+ flex-direction: column;
657
+ gap: 0.5rem;
658
+ `,v9=X.div`
659
+ display: flex;
660
+ justify-content: space-between;
661
+ gap: 1rem;
662
+ `,g9=X(pn)`
663
+ font-size: 0.875rem;
664
+ `,y9=X.span`
665
+ font-size: 0.875rem;
666
+ font-variant-numeric: tabular-nums;
667
+ margin-left: auto;
668
+ `,$9=X.div`
669
+ height: 0.625rem;
670
+ border-radius: 0.3rem;
671
+ background-color: ${({theme:e})=>e.colors.slate[300]};
672
+ forced-color-adjust: none;
673
+ overflow: hidden;
674
+ `,x9=X(Jn.div)`
675
+ height: 100%;
676
+ background-color: ${({theme:e})=>e.colors.slate[800]};
677
+ `;function w9({label:e,showValue:t=!0,value:n=0,minValue:r=0,maxValue:o=100,formatOptions:i={style:"percent"},...a}){return O.jsx(b9,{value:n,minValue:r,maxValue:o,formatOptions:i,...a,children:({percentage:s,valueText:l})=>O.jsxs(O.Fragment,{children:[(e||t)&&O.jsxs(v9,{children:[e&&O.jsx(g9,{children:e}),t&&O.jsx(y9,{children:l})]}),O.jsx($9,{children:O.jsx(x9,{initial:{width:`${s}%`},animate:{width:`${s}%`},transition:{type:"spring",bounce:0}})})]})})}const C9=X(iT)`
678
+ position: absolute;
679
+ inset: 50%;
680
+ `;function E9(e){return O.jsx(C9,{...e})}const ih=rt`
681
+ 0% {
682
+ opacity: 0;
683
+ backdrop-filter: blur(0);
684
+ }
685
+
686
+ 100% {
687
+ opacity: 1;
688
+ backdrop-filter: blur(10px);
689
+ }
690
+ `,D9=X(q4)`
691
+ backdrop-filter: blur(10px);
692
+ background: ${({theme:e})=>`rgb(from ${e.colors.black} r g b / 30%)`};
693
+ position: fixed;
694
+ z-index: 100;
695
+ top: 0;
696
+ left: 0;
697
+ width: 100vw;
698
+ height: var(--visual-viewport-height);
699
+
700
+ &[data-entering] {
701
+ animation: ${ih} 300ms;
702
+ }
703
+
704
+ &[data-exiting] {
705
+ animation: ${ih} 300ms reverse;
706
+ }
707
+ `;function P9(e){return O.jsx(D9,{...e})}const ah=rt`
708
+ from {
709
+ transform: translate(-50%, -50%) scale(0.8);
710
+ }
711
+
712
+ to {
713
+ transform: translate(-50%, -50%) scale(1);
714
+ }
715
+ `,eu=X(N4)`
716
+ padding: 2rem;
717
+ outline: none;
718
+ box-shadow: 0 0.5rem 1.5rem rgba(0 0 0 / 0.1);
719
+ border-radius: 0.5rem;
720
+ background: ${({theme:e})=>e.colors.white};
721
+ border: 1px solid ${({theme:e})=>e.colors.slate[400]};
722
+ outline: none;
723
+ max-width: 20rem;
724
+ width: 100vw;
725
+ position: absolute;
726
+ top: 50%;
727
+ left: 50%;
728
+ transform: translate(-50%, -50%);
729
+ `,S9=N0`
730
+ [data-entering] ${eu} {
731
+ animation: ${ah} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
732
+ }
733
+
734
+ [data-exiting] ${eu} {
735
+ animation: ${ah} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275) reverse;
736
+ }
737
+ `;function T9(e){return O.jsxs(O.Fragment,{children:[O.jsx(S9,{}),O.jsx(eu,{...e})]})}const A9=rt`
738
+ from { transform: translateY(-100%); }
739
+ to { transform: translateY(0); }
740
+ `,k9=rt`
741
+ from { transform: translateX(100%); }
742
+ to { transform: translateX(0); }
743
+ `,M9=rt`
744
+ from { transform: translateY(100%); }
745
+ to { transform: translateY(0); }
746
+ `,R9=rt`
747
+ from { transform: translateX(-100%); }
748
+ to { transform: translateX(0); }
749
+ `,tu=X(N4)`
750
+ padding: 2rem;
751
+ position: fixed;
752
+ outline: none;
753
+ background: ${({theme:e})=>e.colors.white};
754
+ border: 0 ${({theme:e})=>e.colors.slate[200]} solid;
755
+ animation-duration: 300ms;
756
+
757
+ &[data-direction='top'] {
758
+ inset: 0 0 calc(100% - 20rem) 0;
759
+ border-bottom-width: 1px;
760
+ box-shadow: 0 0.5rem 1.5rem rgba(0 0 0 / 0.1);
761
+ }
762
+
763
+ &[data-direction='right'] {
764
+ inset: 0 0 0 calc(100% - 20rem);
765
+ border-left-width: 1px;
766
+ box-shadow: -0.5rem 0 1.5rem rgba(0 0 0 / 0.1);
767
+ }
768
+
769
+ &[data-direction='bottom'] {
770
+ inset: calc(100% - 20rem) 0 0 0;
771
+ border-top-width: 1px;
772
+ box-shadow: 0 -0.5rem 1.5rem rgba(0 0 0 / 0.1);
773
+ }
774
+
775
+ &[data-direction='left'] {
776
+ inset: 0 calc(100% - 20rem) 0 0;
777
+ border-right-width: 1px;
778
+ box-shadow: 0.5rem 0 1.5rem rgba(0 0 0 / 0.1);
779
+ }
780
+ `,F9=N0`
781
+ [data-exiting] ${tu} {
782
+ animation-direction: reverse;
783
+ animation-timing-function: ease-in;
784
+ }
785
+
786
+ [data-entering],
787
+ [data-exiting] {
788
+ ${tu} {
789
+ &[data-direction='top'] {
790
+ animation-name: ${A9};
791
+ }
792
+
793
+ &[data-direction='right'] {
794
+ animation-name: ${k9};
795
+ }
796
+
797
+ &[data-direction='bottom'] {
798
+ animation-name: ${M9};
799
+ }
800
+
801
+ &[data-direction='left'] {
802
+ animation-name: ${R9};
803
+ }
804
+ }
805
+ }
806
+ `;function o1({direction:e,...t}){return O.jsxs(O.Fragment,{children:[O.jsx(F9,{}),O.jsx(tu,{"data-direction":e,...t})]})}o1.defaultProps={direction:"right"};const B9=X(dT)`
807
+ display: flex;
808
+ flex-direction: column;
809
+ width: 100%;
810
+ `,I9=X(Ac)`
811
+ display: flex;
812
+ border-radius: 0.375rem;
813
+
814
+ ${_t} {
815
+ cursor: pointer;
816
+ padding: 0;
817
+ width: 2.5rem;
818
+ height: 2.5rem;
819
+ flex-shrink: 0;
820
+
821
+ :first-of-type {
822
+ border-right: none;
823
+ border-top-right-radius: 0;
824
+ border-bottom-right-radius: 0;
825
+ }
826
+
827
+ :last-of-type {
828
+ border-left: none;
829
+ border-top-left-radius: 0;
830
+ border-bottom-left-radius: 0;
831
+ }
832
+ }
833
+
834
+ ${On} {
835
+ border-radius: 0;
836
+
837
+ &[data-focused] {
838
+ outline: none;
839
+ }
840
+ }
841
+
842
+ &[data-hovered] {
843
+ ${_t}, ${On} {
844
+ border-color: ${({theme:e})=>e.colors.slate[400]};
845
+ }
846
+ }
847
+
848
+ &[data-focus-within] {
849
+ outline: 2px solid ${({theme:e})=>e.colors.slate[200]};
850
+
851
+ &[data-invalid] {
852
+ outline: 2px solid ${({theme:e})=>e.colors.red[200]};
853
+ }
854
+
855
+ ${_t}, ${On} {
856
+ border-color: ${({theme:e})=>e.colors.slate[400]};
857
+ }
858
+ }
859
+
860
+ &[data-disabled] {
861
+ background: ${({theme:e})=>e.colors.slate[100]};
862
+
863
+ ${_t} {
864
+ cursor: default;
865
+ }
866
+
867
+ ${_t}, ${On} {
868
+ border-color: ${({theme:e})=>e.colors.slate[200]};
869
+ }
870
+ }
871
+
872
+ &[data-invalid] {
873
+ ${_t}, ${On} {
874
+ border-color: ${({theme:e})=>e.colors.red[500]};
875
+ background: ${({theme:e})=>e.colors.red[100]};
876
+ color: ${({theme:e})=>e.colors.red[600]};
877
+
878
+ &[data-hovered] {
879
+ border-color: ${({theme:e})=>e.colors.red[600]};
880
+ }
881
+
882
+ &[data-focused] {
883
+ border-color: ${({theme:e})=>e.colors.red[600]};
884
+ }
885
+ }
886
+ }
887
+
888
+ &[aria-readonly] {
889
+ ${_t} {
890
+ background: ${({theme:e})=>e.colors.slate[100]};
891
+ border-color: ${({theme:e})=>e.colors.slate[200]};
892
+ color: ${({theme:e})=>e.colors.slate[500]};
893
+ cursor: default;
894
+ }
895
+ }
896
+ `,O9=O.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),L9=O.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function i1({label:e,description:t,errorMessage:n,isInvalid:r,isReadOnly:o,slots:i,...a}){return O.jsxs(B9,{isInvalid:r,...a,children:[O.jsx(e1,{children:e}),O.jsxs(I9,{isInvalid:r,"aria-readonly":o,children:[O.jsx(_t,{variant:"outline",slot:"decrement",children:i==null?void 0:i.decrementIcon}),O.jsx(On,{readOnly:o}),O.jsx(_t,{variant:"outline",slot:"increment",children:i==null?void 0:i.incrementIcon})]}),t&&O.jsx(n1,{slot:"description",children:t}),O.jsx(t1,{children:n})]})}i1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,slots:{decrementIcon:O9,incrementIcon:L9}};const V9=X(Ac)`
897
+ display: flex;
898
+ flex-wrap: wrap;
899
+ gap: 0.5rem;
900
+ `,N9=X(jo)`
901
+ border: 1px solid ${({theme:e})=>e.colors.slate[300]};
902
+ font-size: 0.9rem;
903
+ padding: 0 0.5rem;
904
+ height: 2.5rem;
905
+ margin: 0;
906
+ border-radius: 0.375rem;
907
+ background: ${({theme:e})=>e.colors.white};
908
+ color: ${({theme:e})=>e.colors.slate[900]};
909
+ width: 100%;
910
+ text-align: center;
911
+ transition: all ease 200ms;
912
+
913
+ &[data-hovered] {
914
+ border: 1px solid ${({theme:e})=>e.colors.slate[400]};
915
+ }
916
+
917
+ &[data-focused] {
918
+ border: 1px solid ${({theme:e})=>e.colors.slate[400]};
919
+ outline: 2px solid ${({theme:e})=>e.colors.slate[200]};
920
+ }
921
+
922
+ &[data-disabled] {
923
+ border: 1px solid ${({theme:e})=>e.colors.slate[200]};
924
+ background: ${({theme:e})=>e.colors.slate[100]};
925
+ }
926
+
927
+ &[data-invalid] {
928
+ border: 1px solid ${({theme:e})=>e.colors.red[500]};
929
+ background: ${({theme:e})=>e.colors.red[100]};
930
+ color: ${({theme:e})=>e.colors.red[600]};
931
+
932
+ &[data-hovered] {
933
+ border: 1px solid ${({theme:e})=>e.colors.red[600]};
934
+ }
935
+
936
+ &[data-focused] {
937
+ border: 1px solid ${({theme:e})=>e.colors.red[600]};
938
+ outline: 2px solid ${({theme:e})=>e.colors.red[200]};
939
+ }
940
+ }
941
+
942
+ ::placeholder {
943
+ color: ${({theme:e})=>e.colors.slate[400]};
944
+ }
945
+ `,_9=X(pn)`
946
+ display: flex;
947
+ flex: 1 0 100%;
948
+ font-size: 0.8rem;
949
+ color: ${({theme:e})=>e.colors.slate[500]};
950
+ `,K9=X(qa)`
951
+ display: flex;
952
+ flex-direction: column;
953
+ width: 100%;
954
+ flex: 1;
955
+ color: ${({theme:e})=>e.colors.slate[900]};
956
+ `,j9=X(qa)`
957
+ display: flex;
958
+ flex-direction: row;
959
+ flex-wrap: wrap;
960
+ flex: 1 0 100%;
961
+ color: ${({theme:e})=>e.colors.slate[900]};
962
+ `,z9=X(Ko)`
963
+ display: flex;
964
+ flex: 1 0 100%;
965
+ color: ${({theme:e})=>e.colors.red[500]};
966
+ font-size: 0.8rem;
967
+ `,U9=X(Vr)`
968
+ display: flex;
969
+ flex: 1 0 100%;
970
+ color: ${({theme:e})=>e.colors.slate[500]};
971
+ font-size: 0.8rem;
972
+ `;function a1({description:e,errorMessage:t,isDisabled:n=!1,isInvalid:r=!1,isMasked:o=!1,isRequired:i=!0,label:a,length:s=6,name:l,onChange:c,value:d="",type:f="numeric",validationBehavior:p="native",...h}){u.useState(-1);const[m,b]=u.useState(d),[v,$]=u.useState(Array(s).fill("")),C=u.useRef([]);u.useEffect(()=>{C.current=C.current.slice(0,s)},[s]),u.useEffect(()=>{const A=v.join("");b(A),c&&c(A)},[c,v]);const x=A=>{var M,k;const V=A.target.value,y=Number(A.target.getAttribute("data-pin-input-index"));V!==""&&y<v.length-1&&((k=(M=C.current)==null?void 0:M[y+1])==null||k.focus());const I=v.map((R,S)=>S===y?V:R);$(I)},E=A=>{var M,k,R,S;const V=Number(A.currentTarget.getAttribute("data-pin-input-index"));if(A.ctrlKey||A.metaKey)return;const y=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Control","Alt","Meta","Shift","Tab","Enter","Escape"],I={alpha:/^[a-z]$/i,alphanumeric:/^[a-z0-9]$/i,numeric:/^[0-9]$/i};if(!A.key.match(I[f])&&!y.includes(A.key)&&A.preventDefault(),v[V]===""&&V>0&&A.key==="Backspace"){const F=v.map((K,L)=>L===V-1?"":K);$(F),(k=(M=C.current)==null?void 0:M[V-1])==null||k.focus(),A.preventDefault()}if(v[V]===""&&V<v.length-1&&A.key==="Delete"){const F=v.map((K,L)=>L===V+1?"":K);$(F),(S=(R=C.current)==null?void 0:R[V+1])==null||S.focus(),A.preventDefault()}},w=A=>{var S,F;const V=Number(A.currentTarget.getAttribute("data-pin-input-index"));A.preventDefault();const y=(S=A.clipboardData)==null?void 0:S.getData("text");if(!y)return;const I=y.split("").filter(K=>{switch(f){case"alpha":return/^[a-zA-Z]$/.test(K);case"alphanumeric":return/^[a-z0-9]$/i.test(K);case"numeric":default:return/^[0-9]$/.test(K)}});if(I.length===0)return;const M=[...v];let k=V;for(let K=0;K<I.length&&V+K<s;K++)M[V+K]=I[K],k=V+K;$(M);const R=k+1<s?k+1:s-1;(F=C.current[R])==null||F.focus()};return O.jsxs(V9,{...h,"aria-label":a,children:[O.jsx(_9,{children:a}),v.map((A,V)=>O.jsx(K9,{"aria-label":`Pin Input Digit ${V+1}`,isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:O.jsx(N9,{onChange:x,onKeyDown:E,onPaste:w,type:o?"password":"text",ref:y=>y?C.current[V]=y:null,value:A,maxLength:1,name:l&&`${l}-${V}`,"data-pin-input-index":V})},`pin-input-${V}`)),O.jsxs(j9,{"aria-label":"Pin Input",isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:[l&&O.jsx(jo,{type:"hidden",name:l,value:m}),e&&O.jsx(U9,{slot:"description",children:e}),O.jsx(z9,{children:t})]})]})}a1.defaultProps={description:void 0,errorMessage:void 0,isMasked:!1,isRequired:!0,label:void 0,length:6,name:"",onChange:()=>{},value:"",type:"numeric",validationBehavior:"native"};const H9=X(Z4)`
973
+ display: flex;
974
+ `,G9=X.div`
975
+ display: flex;
976
+ flex-direction: column;
977
+ align-items: center;
978
+ `,W9=X(pn)`
979
+ font-size: 0.875rem;
980
+ `,Y9=X.circle`
981
+ stroke: ${({theme:e})=>e.colors.slate[300]};
982
+ `,q9=X.circle`
983
+ stroke: ${({theme:e})=>e.colors.slate[800]};
984
+ transition: stroke-dashoffset 600ms ease-in-out;
985
+ `,Z9=X.text`
986
+ font-size: 0.875rem;
987
+ fill: ${({theme:e})=>e.colors.slate[800]};
988
+ `;function X9({label:e,value:t=0,showValue:n=!0,size:r=60,strokeWidth:o=6,...i}){const a=r/2,s=a-o,l=2*Math.PI*s;return O.jsx(H9,{"aria-label":"Loading...",...i,value:t,children:({percentage:c=0})=>O.jsxs(G9,{children:[O.jsx(W9,{children:e}),O.jsxs("svg",{width:r,height:r,fill:"none",children:[O.jsx(Y9,{cx:a,cy:a,r:s,strokeWidth:o}),O.jsx(q9,{cx:a,cy:a,r:s,strokeWidth:o,strokeDasharray:`${l} ${l}`,strokeDashoffset:(100-c)/100*l,strokeLinecap:"round",transform:`rotate(-90 ${a} ${a})`}),n&&O.jsxs(Z9,{x:"50%",y:"50%",alignmentBaseline:"middle",textAnchor:"middle",children:[c,"%"]})]})]})})}const J9=X(Z4)`
989
+ width: ${({width:e})=>e||"100%"};
990
+ overflow: hidden;
991
+ `,Q9=X.div`
992
+ display: flex;
993
+ align-items: center;
994
+ justify-content: space-between;
995
+ gap: 0.5rem;
996
+ margin-bottom: 0.3rem;
997
+ `,eA=X(pn)`
998
+ font-size: 0.875rem;
999
+ `,tA=X.span`
1000
+ font-size: 0.875rem;
1001
+ `,nA=X.div`
1002
+ forced-color-adjust: none;
1003
+ height: 0.625rem;
1004
+ border-radius: 0.3rem;
1005
+ overflow: hidden;
1006
+ will-change: transform;
1007
+ background: ${({theme:e})=>e.colors.slate[300]};
1008
+ `,rA=X.div`
1009
+ width: ${({width:e,isIndeterminate:t})=>t?"40%":e};
1010
+ transition: ${({isIndeterminate:e})=>e?"none":"width 600ms ease-in-out"};
1011
+ height: 100%;
1012
+ background: ${({theme:e})=>e.colors.slate[800]};
1013
+ border-radius: inherit;
1014
+ animation: ${({isIndeterminate:e})=>e?"indeterminate 1.5s infinite ease-in-out":"none"};
1015
+
1016
+ @keyframes indeterminate {
1017
+ from {
1018
+ transform: translateX(-100%);
1019
+ }
1020
+
1021
+ to {
1022
+ transform: translateX(250px);
1023
+ }
1024
+ }
1025
+ `;function oA({label:e,isIndeterminate:t,showValue:n=!0,width:r,...o}){return O.jsx(J9,{...o,width:r,children:({percentage:i,valueText:a})=>O.jsxs(O.Fragment,{children:[O.jsxs(Q9,{children:[O.jsx(eA,{children:e}),n&&O.jsx(tA,{children:a})]}),O.jsx(nA,{children:O.jsx(rA,{isIndeterminate:t,width:typeof i=="number"?`${i}%`:""})})]})})}const iA=X(_8)`
1026
+ display: flex;
1027
+ flex-direction: column;
1028
+ width: 100%;
1029
+ `,aA=X.div`
1030
+ display: flex;
1031
+ position: relative;
1032
+ width: 100%;
1033
+ `,sA=Jn(X(V4)`
1034
+ padding: 0.4rem 0;
1035
+ box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
1036
+ border-radius: 0.375rem;
1037
+ width: 14rem;
1038
+ background: #fff;
1039
+ border: 1px solid ${({theme:e})=>e.colors.slate[300]};
1040
+ `),lA=X(jo).withConfig({shouldForwardProp:e=>!["isLoading"].includes(e)})`
1041
+ border: 1px solid ${({theme:e})=>e.colors.slate[300]};
1042
+ font-size: 0.9rem;
1043
+ padding: 0 0.5rem;
1044
+ height: 2.5rem;
1045
+ margin: 0;
1046
+ border-radius: 0.375rem;
1047
+ background: ${({theme:e})=>e.colors.white};
1048
+ color: ${({theme:e})=>e.colors.slate[900]};
1049
+ width: 100%;
1050
+ transition: all ease 200ms;
1051
+
1052
+ &[data-hovered] {
1053
+ border: 1px solid ${({theme:e})=>e.colors.slate[400]};
1054
+ }
1055
+
1056
+ &[data-focused] {
1057
+ border: 1px solid ${({theme:e})=>e.colors.slate[400]};
1058
+ outline: 2px solid ${({theme:e})=>e.colors.slate[200]};
1059
+ }
1060
+
1061
+ &[data-disabled] {
1062
+ background: ${({isLoading:e,theme:t})=>e?t.colors.white:t.colors.slate[100]};
1063
+ border: 1px solid ${({theme:e})=>e.colors.slate[300]};
1064
+ color: ${({isLoading:e,theme:t})=>e?t.colors.slate[900]:t.colors.slate[500]};
1065
+ }
1066
+
1067
+ &[data-invalid] {
1068
+ border: 1px solid ${({theme:e})=>e.colors.red[500]};
1069
+ background: ${({theme:e})=>e.colors.red[100]};
1070
+ color: ${({theme:e})=>e.colors.red[600]};
1071
+
1072
+ &[data-hovered] {
1073
+ border: 1px solid ${({theme:e})=>e.colors.red[600]};
1074
+ }
1075
+
1076
+ &[data-focused] {
1077
+ border: 1px solid ${({theme:e})=>e.colors.red[600]};
1078
+ outline: 2px solid ${({theme:e})=>e.colors.red[200]};
1079
+ }
1080
+
1081
+ ::placeholder {
1082
+ color: ${({theme:e})=>e.colors.red[500]};
1083
+ }
1084
+ }
1085
+
1086
+ ::placeholder {
1087
+ color: ${({theme:e})=>e.colors.slate[400]};
1088
+ }
1089
+ `,uA=X.svg.withConfig({shouldForwardProp:e=>!["isDisabled","isInvalid","isOpen"].includes(e)})`
1090
+ transition: all ease 200ms;
1091
+ transform: rotate(${({isOpen:e})=>e?"180deg":"0"});
1092
+
1093
+ path {
1094
+ stroke: ${({isDisabled:e,isInvalid:t,theme:n})=>t?n.colors.red[500]:e?n.colors.slate[400]:n.colors.slate[900]};
1095
+ }
1096
+ `,cA=X.div`
1097
+ position: absolute;
1098
+ display: block;
1099
+ top: 0.5rem;
1100
+ right: 0.5rem;
1101
+ `,dA=X(R4)`
1102
+ position: absolute;
1103
+ display: block;
1104
+ top: 0.5rem;
1105
+ right: 0;
1106
+ border: none;
1107
+ background: none;
1108
+ `,fA=X(pn)`
1109
+ display: flex;
1110
+ font-size: 0.8rem;
1111
+ color: ${({theme:e})=>e.colors.slate[500]};
1112
+ `;X(qa)`
1113
+ display: flex;
1114
+ flex-direction: column;
1115
+ width: 100%;
1116
+ color: ${({theme:e})=>e.colors.slate[900]};
1117
+ `;const pA=X(Ko)`
1118
+ display: flex;
1119
+ color: ${({theme:e})=>e.colors.red[500]};
1120
+ font-size: 0.8rem;
1121
+ `,hA=X(Vr)`
1122
+ display: flex;
1123
+ color: ${({theme:e})=>e.colors.slate[500]};
1124
+ font-size: 0.8rem;
1125
+ `,mA=X(S8)`
1126
+ display: flex;
1127
+ flex: 1 1 auto;
1128
+ align-items: center;
1129
+ border-radius: 0.375rem;
1130
+ padding: 0.6rem;
1131
+ font-size: 0.9rem;
1132
+ margin-left: 0.4rem;
1133
+ margin-right: 0.4rem;
1134
+ cursor: default;
1135
+ outline: none;
1136
+ color: ${({theme:e})=>e.colors.slate[900]};
1137
+ transition: all ease 0.25s;
1138
+
1139
+ &[data-hovered] {
1140
+ background: ${({theme:e})=>e.colors.slate[100]};
1141
+ color: ${({theme:e})=>e.colors.slate[900]};
1142
+ }
1143
+
1144
+ &[data-focused] {
1145
+ background: ${({theme:e})=>e.colors.slate[100]};
1146
+ color: ${({theme:e})=>e.colors.slate[900]};
1147
+ }
1148
+
1149
+ &[data-pressed] {
1150
+ background: ${({theme:e})=>e.colors.slate[200]};
1151
+ color: ${({theme:e})=>e.colors.slate[900]};
1152
+ }
1153
+
1154
+ &[data-selected] {
1155
+ background: none;
1156
+ color: ${({theme:e})=>e.colors.slate[900]};
1157
+ font-weight: 600;
1158
+
1159
+ &[data-focused] {
1160
+ background: ${({theme:e})=>e.colors.slate[100]};
1161
+ }
1162
+ }
1163
+
1164
+ &[data-disabled] {
1165
+ background: none;
1166
+ color: ${({theme:e})=>e.colors.slate[500]};
1167
+ }
1168
+ `;function bA(e){return O.jsx(mA,{...e})}const vA=rt`
1169
+ 100% {
1170
+ transform: rotate(360deg);
1171
+ }
1172
+ `,gA=rt`
1173
+ 0% {
1174
+ stroke-dasharray: 1, 200;
1175
+ stroke-dashoffset: 0;
1176
+ }
1177
+ 50% {
1178
+ stroke-dasharray: 89, 200;
1179
+ stroke-dashoffset: -35px;
1180
+ }
1181
+ 100% {
1182
+ stroke-dasharray: 89, 200;
1183
+ stroke-dashoffset: -124px;
1184
+ }
1185
+ `,yA=X.div`
1186
+ position: relative;
1187
+ margin: 0;
1188
+ width: ${({width:e})=>e}px;
1189
+ &:before {
1190
+ content: '';
1191
+ display: block;
1192
+ padding-top: 100%;
1193
+ }
1194
+ `,$A=X.svg`
1195
+ animation: ${vA} 2s linear infinite;
1196
+ height: 100%;
1197
+ transform-origin: center center;
1198
+ width: 100%;
1199
+ position: absolute;
1200
+ top: 0;
1201
+ bottom: 0;
1202
+ left: 0;
1203
+ right: 0;
1204
+ margin: auto;
1205
+ `,xA=X.circle`
1206
+ stroke: ${({stroke:e})=>e};
1207
+ stroke-dasharray: 1, 200;
1208
+ stroke-dashoffset: 0;
1209
+ animation: ${gA} 1.5s ease-in-out infinite;
1210
+ `;function wA({width:e,stroke:t,strokeLinecap:n="round",strokeWidth:r=5,...o}){return O.jsx(yA,{width:e,...o,children:O.jsx($A,{viewBox:"25 25 50 50",children:O.jsx(xA,{className:"path",cx:"50",cy:"50",fill:"none",r:"20",stroke:t,strokeLinecap:n,strokeMiterlimit:"10",strokeWidth:r})})})}const CA=rt`
1211
+ 0% {
1212
+ transform: scale(1);
1213
+ opacity: 1;
1214
+ }
1215
+ 45% {
1216
+ transform: scale(0.1);
1217
+ opacity: 0.7;
1218
+ }
1219
+ 80% {
1220
+ transform: scale(1);
1221
+ opacity: 1;
1222
+ }
1223
+ `,Xs=X.span`
1224
+ background-color: ${({theme:e})=>e.colors.slate[300]};
1225
+ display: inline-block;
1226
+ width: 0.5rem;
1227
+ height: 0.5rem;
1228
+ margin: 0.1rem;
1229
+ border-radius: 0.5rem;
1230
+ animation: ${CA}
1231
+ ${({speedMultiplier:e})=>.75/e}s
1232
+ ${({i:e,speedMultiplier:t})=>e*.12/t}s infinite
1233
+ cubic-bezier(0.2, 0.68, 0.18, 1.08);
1234
+ animation-fill-mode: both;
1235
+ `;function s1(){return O.jsxs("span",{children:[O.jsx(Xs,{speedMultiplier:1,i:1}),O.jsx(Xs,{speedMultiplier:1,i:2}),O.jsx(Xs,{speedMultiplier:1,i:3})]})}function l1({label:e,description:t,errorMessage:n,children:r,placeholder:o,key:i,isLoading:a,...s}){const[l,c]=u.useState("unmounted"),d=u.useRef(null),[f,p]=u.useState(!1);return O.jsxs(iA,{ref:d,onOpenChange:()=>{c(l==="visible"?"hidden":"visible"),p(!f)},isDisabled:s.isDisabled||a,...s,children:[O.jsx(fA,{children:e}),O.jsxs(aA,{children:[O.jsx(lA,{placeholder:o,isLoading:a??!1}),a?O.jsx(cA,{children:O.jsx(s1,{})}):O.jsx(dA,{children:O.jsx(uA,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",isOpen:l==="visible",isDisabled:!!s.isDisabled,isInvalid:!!s.isInvalid,children:O.jsx("path",{d:"M6 9L12 15L18 9",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t&&O.jsx(hA,{slot:"description",children:t}),O.jsx(pA,{children:n}),O.jsx(sA,{isOpen:f,style:{width:d.current?d.current.getBoundingClientRect().width:"14rem"},isExiting:l==="hidden",onAnimationComplete:h=>{c(m=>h==="hidden"&&m==="hidden"?"unmounted":m)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:l,children:O.jsx(C8,{style:{maxHeight:"20rem",overflowY:"scroll"},children:r})},i)]})}l1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,placeholder:"",key:void 0,isLoading:!1};const EA=X(bT)`
1236
+ --label-color: ${({theme:e})=>e.colors.slate[500]};
1237
+ --track-background: ${({theme:e})=>e.colors.slate[300]};
1238
+ --thumb-background: ${({theme:e})=>e.colors.slate[300]};
1239
+ --thumb-background-dragging: ${({theme:e})=>e.colors.slate[400]};
1240
+ --thumb-border-color: ${({theme:e})=>e.colors.white};
1241
+ --thumb-cursor: pointer;
1242
+
1243
+ &[data-disabled] {
1244
+ --label-color: ${({theme:e})=>e.colors.slate[400]};
1245
+ --track-background: ${({theme:e})=>e.colors.slate[100]};
1246
+ --thumb-background: ${({theme:e})=>e.colors.slate[200]};
1247
+ --thumb-cursor: default;
1248
+ }
1249
+
1250
+ &[data-orientation='horizontal'] {
1251
+ width: 100%;
1252
+ display: flex;
1253
+ flex-wrap: wrap;
1254
+ }
1255
+
1256
+ &[data-orientation='vertical'] {
1257
+ display: block;
1258
+ height: 100%;
1259
+ width: 2rem;
1260
+ }
1261
+ `,DA=X(pn)`
1262
+ display: flex;
1263
+ flex: 1 1 0;
1264
+ font-size: 0.8rem;
1265
+ color: var(--label-color);
1266
+ `,PA=X(gT)`
1267
+ display: flex;
1268
+ flex: 0 1 0;
1269
+ margin-left: auto;
1270
+ justify-content: flex-end;
1271
+ font-size: 0.8rem;
1272
+ color: var(--label-color);
1273
+ `,nu=X(wT)`
1274
+ background-color: var(--thumb-background);
1275
+ border: 2px solid var(--thumb-border-color);
1276
+ forced-color-adjust: none;
1277
+ border-radius: 50%;
1278
+ width: 1.5rem;
1279
+ height: 1.5rem;
1280
+ cursor: var(--thumb-cursor);
1281
+ transition: background-color ease 0.25s;
1282
+
1283
+ &[data-focused] {
1284
+ outline: 2px solid ${({theme:e})=>e.colors.slate[200]};
1285
+ }
1286
+
1287
+ &[data-dragging] {
1288
+ background-color: var(--thumb-background-dragging);
1289
+ }
1290
+ `,SA=X($T)`
1291
+ width: 100%;
1292
+ transition: all ease 0.25s;
1293
+
1294
+ :before {
1295
+ content: '';
1296
+ background: var(--track-background);
1297
+ display: block;
1298
+ position: absolute;
1299
+ cursor: var(--thumb-cursor);
1300
+ }
1301
+
1302
+ &[data-orientation='horizontal'] {
1303
+ width: 100%;
1304
+ height: 2rem;
1305
+
1306
+ &:before {
1307
+ width: 100%;
1308
+ height: 2px;
1309
+ top: 50%;
1310
+ transform: translateY(-50%);
1311
+ }
1312
+
1313
+ ${nu} {
1314
+ top: 50%;
1315
+ }
1316
+ }
1317
+
1318
+ &[data-orientation='vertical'] {
1319
+ width: 2rem;
1320
+ height: 100%;
1321
+
1322
+ &:before {
1323
+ width: 2px;
1324
+ height: 100%;
1325
+ left: 50%;
1326
+ transform: translate(-50%);
1327
+ }
1328
+
1329
+ ${nu} {
1330
+ left: 50%;
1331
+ }
1332
+ }
1333
+ `;function u1({label:e,showOutput:t=!0,thumbLabels:n,...r}){return O.jsxs(EA,{...r,children:[O.jsx(DA,{children:e}),t&&O.jsx(PA,{children:({state:o})=>o.values.map((i,a)=>o.getThumbValueLabel(a)).join(" – ")}),O.jsx(SA,{children:({state:o})=>o.values.map((i,a)=>O.jsx(nu,{index:a,"aria-label":n==null?void 0:n[a]},a))})]})}u1.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const Xt=X.div`
1334
+ width: 4rem;
1335
+ height: 2.5rem;
1336
+ border: 1px solid ${({theme:e})=>e.colors.slate[300]};
1337
+ background: transparent;
1338
+ border-radius: 1.5rem;
1339
+ transition: all cubic-bezier(0.4, 0, 0.2, 1) 200ms;
1340
+
1341
+ &:before {
1342
+ content: '';
1343
+ display: block;
1344
+ width: 1.5rem;
1345
+ height: 1.5rem;
1346
+ margin: calc(0.5rem - 1px);
1347
+ background: ${({theme:e})=>e.colors.slate[300]};
1348
+ border-radius: 1.25rem;
1349
+ transition: all cubic-bezier(0.4, 0, 0.2, 1) 200ms;
1350
+ }
1351
+ `,TA=X(DT)`
1352
+ display: flex;
1353
+ align-items: center;
1354
+ gap: 0.5rem;
1355
+ font-size: 0.8rem;
1356
+ color: ${({theme:e})=>e.colors.slate[500]};
1357
+ forced-color-adjust: none;
1358
+
1359
+ &[data-hovered] ${Xt} {
1360
+ border-color: ${({theme:e})=>e.colors.slate[400]};
1361
+ }
1362
+
1363
+ &[data-disabled] ${Xt} {
1364
+ background: ${({theme:e})=>e.colors.slate[100]};
1365
+ }
1366
+
1367
+ &[data-pressed] ${Xt} {
1368
+ border-color: ${({theme:e})=>e.colors.slate[400]};
1369
+
1370
+ &:before {
1371
+ background: ${({theme:e})=>e.colors.slate[400]};
1372
+ }
1373
+ }
1374
+
1375
+ &[data-focused] ${Xt} {
1376
+ border-color: ${({theme:e})=>e.colors.slate[400]};
1377
+ outline: 2px solid ${({theme:e})=>e.colors.slate[200]};
1378
+ }
1379
+
1380
+ &[data-selected] {
1381
+ ${Xt} {
1382
+ border-color: ${({theme:e})=>e.colors.slate[300]};
1383
+ background: ${({theme:e})=>e.colors.slate[300]};
1384
+
1385
+ &:before {
1386
+ background: ${({theme:e})=>e.colors.white};
1387
+ transform: translateX(100%);
1388
+ }
1389
+ }
1390
+
1391
+ &[data-hovered] ${Xt} {
1392
+ border-color: ${({theme:e})=>e.colors.slate[400]};
1393
+ }
1394
+ &[data-focused] ${Xt} {
1395
+ border-color: ${({theme:e})=>e.colors.slate[400]};
1396
+ }
1397
+
1398
+ &[data-pressed] {
1399
+ ${Xt} {
1400
+ border-color: ${({theme:e})=>e.colors.slate[400]};
1401
+ background: ${({theme:e})=>e.colors.slate[400]};
1402
+ }
1403
+ }
1404
+ }
1405
+ `;function AA({children:e,...t}){return O.jsxs(TA,{...t,children:[O.jsx(Xt,{}),e]})}const kA=X(TT)`
1406
+ width: 100%;
1407
+ display: flex;
1408
+ flex-direction: column;
1409
+ padding: 0.5rem 0;
1410
+
1411
+ &[data-orientation='vertical'] {
1412
+ flex-direction: row;
1413
+ }
1414
+ `,MA=X(MT)`
1415
+ width: 100%;
1416
+ position: relative;
1417
+ display: flex;
1418
+ flex-direction: row;
1419
+ gap: 0.5rem;
1420
+ flex-wrap: nowrap;
1421
+
1422
+ &[data-orientation='vertical'] {
1423
+ max-width: max-content;
1424
+ flex-direction: column;
1425
+ justify-content: flex-start;
1426
+ }
1427
+
1428
+ ${({variant:e,theme:t})=>{switch(e){case"solid":return Pt`
1429
+ background-color: ${t.colors.slate[200]};
1430
+ border-radius: 0.75rem;
1431
+ padding: 0.25rem;
1432
+ `;case"outline":return Pt`
1433
+ border: 2px solid ${t.colors.slate[200]};
1434
+ border-radius: 0.75rem;
1435
+ padding: 0.25rem;
1436
+ `;case"underline":return Pt`
1437
+ &[data-orientation='vertical'] {
1438
+ &:before {
1439
+ display: block;
1440
+ position: absolute;
1441
+ right: 0;
1442
+ top: 0;
1443
+ bottom: 0;
1444
+ content: '';
1445
+ width: 1px;
1446
+ background-color: ${t.colors.slate[200]};
1447
+ }
1448
+ }
1449
+ &[data-orientation='horizontal'] {
1450
+ &:before {
1451
+ display: block;
1452
+ position: absolute;
1453
+ bottom: 0;
1454
+ left: 0;
1455
+ right: 0;
1456
+ content: '';
1457
+ height: 1px;
1458
+ background-color: ${t.colors.slate[200]};
1459
+ }
1460
+ }
1461
+ `;default:return null}}}
1462
+ `,c1=X(FT)`
1463
+ position: relative;
1464
+ z-index: 3;
1465
+ display: flex;
1466
+ align-items: center;
1467
+ justify-content: ${({orientation:e,variant:t})=>{switch(t){case"underline":return e==="horizontal"?"center":"flex-start";default:return"center"}}};
1468
+ 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"}}};
1469
+ font-size: 0.875rem;
1470
+ line-height: 1.2;
1471
+ cursor: pointer;
1472
+ forced-color-adjust: none;
1473
+ transition: color 0.3s ease;
1474
+
1475
+ color: ${({variant:e,theme:t})=>{switch(e){case"underline":case"enclosed":case"outline":return t.colors.slate[800];case"solid":return t.colors.slate[400];default:return null}}};
1476
+
1477
+ &[data-selected] {
1478
+ color: ${({variant:e,theme:t})=>{switch(e){case"underline":case"outline":return t.colors.slate[800];case"solid":case"enclosed":return t.colors.slate[100];default:return null}}};
1479
+ }
1480
+
1481
+ &[data-selected],
1482
+ &[data-hovered] {
1483
+ &:not([data-focus-visible]) {
1484
+ outline: none;
1485
+ }
1486
+ }
1487
+
1488
+ &[data-hovered]:not([data-selected]) {
1489
+ color: ${({theme:e})=>e.colors.slate[500]};
1490
+ }
1491
+
1492
+ &[data-disabled] {
1493
+ opacity: 0.5;
1494
+ }
1495
+ `,RA=X(Jn.span).attrs({className:"tab-overlay"})`
1496
+ position: absolute;
1497
+ z-index: 1;
1498
+
1499
+ ${({orientation:e,theme:t,variant:n})=>{switch(n){case"solid":return Pt`
1500
+ inset: 0px;
1501
+ border-radius: 0.5rem;
1502
+ background-color: ${t.colors.slate[600]};
1503
+ mix-blend-mode: color;
1504
+ `;case"outline":return Pt`
1505
+ inset: 0px;
1506
+ border: 2px solid ${t.colors.slate[800]};
1507
+ border-radius: 0.5rem;
1508
+ `;case"underline":return e==="horizontal"?Pt`
1509
+ bottom: 0;
1510
+ left: 0;
1511
+ width: 100%;
1512
+ height: 1px;
1513
+ border-radius: 0.5rem;
1514
+ background-color: ${t.colors.slate[800]};
1515
+ mix-blend-mode: color;
1516
+ `:Pt`
1517
+ bottom: 0;
1518
+ right: 0;
1519
+ width: 1px;
1520
+ height: 100%;
1521
+ border-radius: 0.5rem;
1522
+ background-color: ${t.colors.slate[800]};
1523
+ mix-blend-mode: color;
1524
+ `;case"enclosed":return Pt`
1525
+ inset: 0px;
1526
+ border: 1px solid ${t.colors.slate[800]};
1527
+ margin-bottom: -1px;
1528
+ border-bottom: none;
1529
+ border-radius: 0.5rem 0.5rem 0 0;
1530
+ background-color: ${t.colors.white};
1531
+ mix-blend-mode: difference;
1532
+ `;case"base":default:return Pt`
1533
+ display: none;
1534
+ `}}}
1535
+ `,FA=X(OT)`
1536
+ display: flex;
1537
+ flex-grow: 1;
1538
+ padding: 1rem 0;
1539
+ `,Za=u.createContext("horizontal");function BA({children:e,...t}){return O.jsx(Za.Provider,{value:t.orientation??"horizontal",children:O.jsx(kA,{...t,children:e})})}function IA({variant:e="base",...t}){const n=u.useContext(Za);return O.jsx(c1,{orientation:n,variant:e,...t,children:({isSelected:r,isFocusVisible:o})=>O.jsxs(O.Fragment,{children:[t.children,(o||r)&&O.jsx(RA,{orientation:n,layoutId:e,variant:e,transition:{type:"spring",bounce:.2,duration:.75}})]})})}function OA({items:e,children:t,variant:n="base",...r}){const o=u.useContext(Za);return O.jsx(MA,{items:e,variant:n,...r,children:t||(i=>O.jsx(c1,{orientation:o,children:i.title}))})}function LA({children:e,...t}){return O.jsx(FA,{...t,children:e})}const VA=X(H8)`
1540
+ color: ${({theme:e})=>e.colors.slate[900]};
1541
+ `,NA=X(j4)`
1542
+ display: flex;
1543
+ align-items: center;
1544
+ border: 1px solid ${({theme:e})=>e.colors.slate[300]};
1545
+ font-size: 0.9rem;
1546
+ padding: 0 0.25rem;
1547
+ height: 2.5rem;
1548
+ margin: 0;
1549
+ border-radius: 0.375rem;
1550
+ background: ${({theme:e})=>e.colors.white};
1551
+ color: ${({theme:e})=>e.colors.slate[900]};
1552
+ width: 100%;
1553
+ transition: all ease 200ms;
1554
+
1555
+ &[data-hovered] {
1556
+ border: 1px solid ${({theme:e})=>e.colors.slate[400]};
1557
+ }
1558
+
1559
+ &[data-focus-within] {
1560
+ border: 1px solid ${({theme:e})=>e.colors.slate[400]};
1561
+ outline: 2px solid ${({theme:e})=>e.colors.slate[200]};
1562
+ }
1563
+
1564
+ &[data-disabled] {
1565
+ border: 1px solid ${({theme:e})=>e.colors.slate[200]};
1566
+ background: ${({theme:e})=>e.colors.slate[100]};
1567
+ }
1568
+
1569
+ &[data-invalid] {
1570
+ border: 1px solid ${({theme:e})=>e.colors.red[500]};
1571
+ background: ${({theme:e})=>e.colors.red[100]};
1572
+ color: ${({theme:e})=>e.colors.red[600]};
1573
+
1574
+ &[data-hovered] {
1575
+ border: 1px solid ${({theme:e})=>e.colors.red[600]};
1576
+ }
1577
+
1578
+ &[data-focus-within] {
1579
+ border: 1px solid ${({theme:e})=>e.colors.red[600]};
1580
+ outline: 2px solid ${({theme:e})=>e.colors.red[200]};
1581
+ }
1582
+ }
1583
+ `,_A=X(z4)`
1584
+ padding: 0.25rem;
1585
+ font-variant-numeric: tabular-nums;
1586
+ text-align: end;
1587
+ color: ${({theme:e})=>e.colors.slate[900]};
1588
+
1589
+ &[data-invalid] {
1590
+ color: ${({theme:e})=>e.colors.red[500]};
1591
+ }
1592
+
1593
+ &[data-disabled] {
1594
+ cursor: default;
1595
+ user-select: none;
1596
+ color: ${({theme:e})=>e.colors.slate[400]};
1597
+ }
1598
+
1599
+ &[data-focused],
1600
+ &[data-focus-visible] {
1601
+ outline: 1px auto ${({theme:e})=>e.colors.slate[500]};
1602
+ }
1603
+
1604
+ &[data-type='literal'] {
1605
+ padding: 0.125rem;
1606
+ }
1607
+
1608
+ &[data-placeholder] {
1609
+ color: ${({theme:e})=>e.colors.slate[400]};
1610
+
1611
+ &[data-invalid] {
1612
+ color: ${({theme:e})=>e.colors.red[500]};
1613
+
1614
+ &:focus {
1615
+ color: ${({theme:e})=>e.colors.white};
1616
+ }
1617
+ }
1618
+ }
1619
+
1620
+ &:focus:not([aria-readonly]) {
1621
+ color: ${({theme:e})=>e.colors.slate[900]};
1622
+ background: ${({theme:e})=>e.colors.slate[200]};
1623
+ outline: none;
1624
+ border-radius: 0.375rem;
1625
+ caret-color: transparent;
1626
+
1627
+ &[data-invalid] {
1628
+ background: ${({theme:e})=>e.colors.red[500]};
1629
+ color: ${({theme:e})=>e.colors.white};
1630
+ }
1631
+ }
1632
+ `,KA=X(pn)`
1633
+ display: flex;
1634
+ font-size: 0.8rem;
1635
+ color: ${({theme:e})=>e.colors.slate[500]};
1636
+ `,jA=X(Ko)`
1637
+ display: flex;
1638
+ color: ${({theme:e})=>e.colors.red[500]};
1639
+ font-size: 0.8rem;
1640
+ `,zA=X(Vr)`
1641
+ display: flex;
1642
+ color: ${({theme:e})=>e.colors.slate[500]};
1643
+ font-size: 0.8rem;
1644
+ `;function d1({label:e,description:t,errorMessage:n,...r}){return O.jsxs(VA,{...r,children:[O.jsx(KA,{children:e}),O.jsx(NA,{children:o=>O.jsx(_A,{segment:o})}),O.jsx(zA,{slot:"description",children:t}),O.jsx(jA,{children:n})]})}d1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const UA=X(jT)`
1645
+ display: flex;
1646
+ align-items: center;
1647
+ font-size: 0.9rem;
1648
+ border-radius: 0.375rem;
1649
+ transition-duration: 0.3s;
1650
+ font-weight: 600;
1651
+ transition-property: background-color, color, border-color;
1652
+ padding: 0 1rem;
1653
+ height: 2.5rem;
1654
+ cursor: pointer;
1655
+ outline: none;
1656
+ border-style: solid;
1657
+ border-width: 1px;
1658
+ color: ${({theme:e})=>{var t,n;return(n=(t=e.colors)==null?void 0:t.slate)==null?void 0:n[900]}};
1659
+
1660
+ height: ${({size:e})=>{switch(e){case"sm":return"2rem";case"lg":return"3rem";case"md":default:return"2.5rem"}}};
1661
+
1662
+ background: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[200]}}};
1663
+ border-color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":return"transparent";case"outline":return(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[300];case"solid":default:return(i=(o=t.colors)==null?void 0:o.slate)==null?void 0:i[200]}}};
1664
+
1665
+ &[data-selected] {
1666
+ background-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[800]}}};
1667
+ border-color: ${({variant:e,theme:t})=>{switch(e){case"ghost":return"transparent";case"outline":case"solid":default:return t.colors.slate[800]}}};
1668
+ color: ${({variant:e,theme:t})=>{switch(e){case"ghost":case"outline":return t.colors.slate[700];case"solid":default:return t.colors.white}}};
1669
+ }
1670
+
1671
+ &[data-disabled] {
1672
+ cursor: default;
1673
+
1674
+ background-color: ${({variant:e,theme:t})=>{var n,r;switch(e){case"ghost":case"outline":return"transparent";case"solid":default:return(r=(n=t.colors)==null?void 0:n.slate)==null?void 0:r[100]}}};
1675
+ border-color: ${({variant:e,theme:t})=>{switch(e){case"ghost":return"transparent";case"outline":return t.colors.slate[200];case"solid":default:return t.colors.slate[100]}}};
1676
+ color: ${({variant:e,theme:t})=>{switch(e){case"ghost":case"outline":return t.colors.slate[500];case"solid":default:return t.colors.slate[400]}}};
1677
+ }
1678
+ `;function HA({children:e,size:t="md",variant:n="solid",...r}){return O.jsx(UA,{...r,size:t,variant:n,children:e})}var GA=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])||{}},WA=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],sh=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e};function YA(e){const[t,n]=x0(e,Dd.variantKeys),{ref:r,as:o,isOpen:i,content:a,children:s,defaultOpen:l,onOpenChange:c,isDisabled:d,trigger:f,shouldFlip:p=!0,containerPadding:h=12,placement:m="top",delay:b=0,closeDelay:v=500,showArrow:$=!1,offset:C=7,crossOffset:x=0,isDismissable:E,shouldCloseOnBlur:w=!0,portalContainer:A,isKeyboardDismissDisabled:V=!1,updatePositionDeps:y=[],shouldCloseOnInteractOutside:I,className:M,onClose:k,motionProps:R,classNames:S,...F}=t,K=o||"div",L=BS({delay:b,closeDelay:v,isDisabled:d,defaultOpen:l,isOpen:i,onOpenChange:q=>{c==null||c(q),q||k==null||k()}}),P=u.useRef(null),W=u.useRef(null),J=u.useId(),G=L.isOpen&&!d;u.useImperativeHandle(r,()=>T3(W));const{triggerProps:D,tooltipProps:T}=sS({isDisabled:d,trigger:f},L,P),{tooltipProps:z}=aS({isOpen:G,...oe(t,T)},L),{overlayProps:H,placement:Z,updatePosition:N}=m0({isOpen:G,targetRef:P,placement:WA(m),overlayRef:W,offset:$?C+3:C,crossOffset:x,shouldFlip:p,containerPadding:h});Qh(()=>{y.length&&N()},y);const{overlayProps:j}=Bu({isOpen:G,onClose:L.close,isDismissable:E,shouldCloseOnBlur:w,isKeyboardDismissDisabled:V,shouldCloseOnInteractOutside:I},W),_=u.useMemo(()=>{var q,he,re;return Dd({...n,radius:(q=e==null?void 0:e.radius)!=null?q:"md",size:(he=e==null?void 0:e.size)!=null?he:"md",shadow:(re=e==null?void 0:e.shadow)!=null?re:"sm"})},[...Object.values(n),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),Q=u.useCallback((q={},he=null)=>({...oe(D,q),ref:B3(he,P),"aria-describedby":G?J:void 0}),[D,G,J,L]),ne=u.useCallback(()=>({ref:W,"data-slot":"base","data-open":Kt(G),"data-arrow":Kt($),"data-disabled":Kt(d),"data-placement":sh(Z,m),...oe(z,j,F),style:oe(H.style,F.style,t.style),className:_.base({class:S==null?void 0:S.base}),id:J}),[_,G,$,d,Z,m,z,j,F,H,t,J]),ee=u.useCallback(()=>({"data-slot":"content","data-open":Kt(G),"data-arrow":Kt($),"data-disabled":Kt(d),"data-placement":sh(Z,m),className:_.content({class:mo(S==null?void 0:S.content,M)})}),[_,G,$,d,Z,m,S]);return{Component:K,content:a,children:s,isOpen:G,triggerRef:P,showArrow:$,portalContainer:A,placement:m,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:d,motionProps:R,getTooltipContentProps:ee,getTriggerProps:Q,getTooltipProps:ne}}var lr={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},qA={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.3}},exit:{transform:"scale(0.6)",opacity:0,transition:{type:"easeOut",duration:.2}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.7)",transition:{type:"easeOut",bounce:0,duration:.18}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:lr.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:lr.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:lr.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:lr.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:lr.ease}},exit:{opacity:0,transition:{duration:.3,ease:lr.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},f1=ka((e,t)=>{const{Component:n,children:r,content:o,isOpen:i,portalContainer:a,placement:s,disableAnimation:l,motionProps:c,getTriggerProps:d,getTooltipProps:f,getTooltipContentProps:p}=YA({...e,ref:t});let h;try{const x=u.Children.only(r);h=u.cloneElement(x,d(x.props,x.ref))}catch{h=O.jsx("span",{}),k3("Tooltip must have only one child node. Please, check your code.")}const{ref:m,id:b,style:v,...$}=f(),C=O.jsx("div",{ref:m,id:b,style:v,children:O.jsx(Jn.div,{animate:"enter",exit:"exit",initial:"exit",variants:qA.scaleSpring,...oe(c,$),style:{...GA(s)},children:O.jsx(n,{...p(),children:o})})});return O.jsxs(O.Fragment,{children:[h,l&&i?O.jsx(vf,{portalContainer:a,children:O.jsx("div",{ref:m,id:b,style:v,...$,children:O.jsx(n,{...p(),children:o})})}):O.jsx(ov,{children:i?O.jsx(vf,{portalContainer:a,children:C}):null})]})});f1.displayName="NextUI.Tooltip";var ZA=f1;const XA=X(ZA).attrs({className:"tooltip"})`
1679
+ z-index: 0;
1680
+ position: relative;
1681
+ background-color: transparent;
1682
+
1683
+ :before {
1684
+ content: '';
1685
+ display: none;
1686
+ z-index: -1;
1687
+ position: absolute;
1688
+ width: 0.625rem;
1689
+ height: 0.625rem;
1690
+ border-radius: 0.125rem;
1691
+ background-color: ${({theme:e})=>e.colors.slate[500]};
1692
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
1693
+ }
1694
+
1695
+ &[data-arrow='true']:before {
1696
+ display: block;
1697
+ }
1698
+
1699
+ &[data-placement='top']:before {
1700
+ bottom: calc(-1.25rem / 4);
1701
+ left: 50%;
1702
+ transform: rotate(45deg) translateX(-50%);
1703
+ }
1704
+
1705
+ &[data-placement='top-start']:before {
1706
+ bottom: calc(calc(1.25rem / 4 - 3px) * -1);
1707
+ left: 0.75rem;
1708
+ transform: rotate(45deg);
1709
+ }
1710
+
1711
+ &[data-placement='top-end']:before {
1712
+ bottom: calc(calc(1.25rem / 4 - 3px) * -1);
1713
+ right: 0.75rem;
1714
+ transform: rotate(45deg);
1715
+ }
1716
+
1717
+ &[data-placement='bottom']:before {
1718
+ top: calc(1.25rem / 4 - 3px);
1719
+ left: 50%;
1720
+ transform: rotate(45deg) translateX(-50%);
1721
+ }
1722
+
1723
+ &[data-placement='bottom-start']:before {
1724
+ top: calc(calc(1.25rem / 4 - 3px) * -1);
1725
+ left: 0.75rem;
1726
+ transform: rotate(45deg);
1727
+ }
1728
+
1729
+ &[data-placement='bottom-end']:before {
1730
+ top: calc(calc(1.25rem / 4 - 3px) * -1);
1731
+ right: 0.75rem;
1732
+ transform: rotate(45deg);
1733
+ }
1734
+
1735
+ &[data-placement='left']:before {
1736
+ right: 0.125rem;
1737
+ top: 50%;
1738
+ transform: rotate(45deg) translateY(-50%);
1739
+ }
1740
+
1741
+ &[data-placement='left-start']:before {
1742
+ right: calc(calc(1.25rem / 4 - 3px) * -1);
1743
+ top: 25%;
1744
+ transform: rotate(45deg);
1745
+ }
1746
+
1747
+ &[data-placement='left-end']:before {
1748
+ right: calc(calc(1.25rem / 4 - 3px) * -1);
1749
+ bottom: 25%;
1750
+ transform: rotate(45deg);
1751
+ }
1752
+
1753
+ &[data-placement='right']:before {
1754
+ left: calc(calc(1.25rem / 4 + 0.5px) * -1);
1755
+ top: 50%;
1756
+ transform: rotate(45deg) translateY(-50%);
1757
+ }
1758
+
1759
+ &[data-placement='right-start']:before {
1760
+ left: calc(calc(1.25rem / 4 - 3px) * -1);
1761
+ top: 25%;
1762
+ transform: rotate(45deg);
1763
+ }
1764
+
1765
+ &[data-placement='right-end']:before {
1766
+ left: calc(calc(1.25rem / 4 - 3px) * -1);
1767
+ bottom: 25%;
1768
+ transform: rotate(45deg);
1769
+ }
1770
+
1771
+ outline: none;
1772
+
1773
+ &[data-focus-visible='true'] {
1774
+ z-index: 10;
1775
+ outline-width: 2px;
1776
+ outline-offset: 2px;
1777
+ outline-color: ${({theme:e})=>e.colors.slate[500]};
1778
+ }
1779
+
1780
+ &.tooltip-content {
1781
+ z-index: 10;
1782
+ padding: 0.25rem 0.625rem;
1783
+ width: 100%;
1784
+ display: inline-flex;
1785
+ flex-direction: column;
1786
+ align-items: center;
1787
+ justify-content: center;
1788
+ -webkit-font-smoothing: auto;
1789
+ -moz-osx-font-smoothing: auto;
1790
+ outline: none;
1791
+ box-sizing: border-box;
1792
+ font-size: 0.875rem;
1793
+ line-height: 1.25rem;
1794
+ background-color: ${({theme:e})=>e.colors.slate[500]};
1795
+ color: ${({theme:e})=>e.colors.white};
1796
+ border-radius: 0.375rem;
1797
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
1798
+ }
1799
+ `;function JA({children:e,...t}){return O.jsx(XA,{classNames:{base:["tooltip"],content:["tooltip-content"]},...t,children:e})}function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_e.apply(this,arguments)}function p1(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...m}=f,b=(p==null?void 0:p[e][l])||s,v=u.useMemo(()=>m,Object.values(m));return u.createElement(b.Provider,{value:v},h)}function d(f,p){const h=(p==null?void 0:p[e][l])||s,m=u.useContext(h);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(a=>u.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,QA(o,...t)]}function QA(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function qe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ek(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Lc(...e){return t=>e.forEach(n=>ek(n,t))}function cn(...e){return u.useCallback(Lc(...e),e)}const ya=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(nk);if(i){const a=i.props.children,s=o.map(l=>l===i?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:l);return u.createElement(ru,_e({},r,{ref:t}),u.isValidElement(a)?u.cloneElement(a,void 0,s):null)}return u.createElement(ru,_e({},r,{ref:t}),n)});ya.displayName="Slot";const ru=u.forwardRef((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...rk(r,n.props),ref:t?Lc(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});ru.displayName="SlotClone";const tk=({children:e})=>u.createElement(u.Fragment,null,e);function nk(e){return u.isValidElement(e)&&e.type===tk}function rk(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const ok=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Mt=ok.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?ya:t;return u.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),u.createElement(s,_e({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ou(e,t){e&&dn.flushSync(()=>e.dispatchEvent(t))}function St(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function ik({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=ak({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=St(n),l=u.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[i,e,o,s]);return[a,l]}function ak({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=St(t);return u.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const sk=u.createContext(void 0);function lk(e){const t=u.useContext(sk);return e||t||"ltr"}const Tr=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};function uk(e,t){return u.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Go=e=>{const{present:t,children:n}=e,r=ck(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),i=cn(r.ref,o.ref);return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:i}):null};Go.displayName="Presence";function ck(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),i=u.useRef("none"),a=e?"mounted":"unmounted",[s,l]=uk(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=Pi(r.current);i.current=s==="mounted"?c:"none"},[s]),Tr(()=>{const c=r.current,d=o.current;if(d!==e){const p=i.current,h=Pi(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Tr(()=>{if(t){const c=f=>{const h=Pi(r.current).includes(f.animationName);f.target===t&&h&&dn.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=Pi(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Pi(e){return(e==null?void 0:e.animationName)||"none"}const dk=We["useId".toString()]||(()=>{});let fk=0;function h1(e){const[t,n]=We.useState(dk());return Tr(()=>{e||n(r=>r??String(fk++))},[e]),e||(t?`radix-${t}`:"")}function m1(e){const t=e+"CollectionProvider",[n,r]=p1(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:m,children:b}=h,v=u.useRef(null),$=u.useRef(new Map).current;return u.createElement(o,{scope:m,itemMap:$,collectionRef:v},b)},s=e+"CollectionSlot",l=u.forwardRef((h,m)=>{const{scope:b,children:v}=h,$=i(s,b),C=cn(m,$.collectionRef);return u.createElement(ya,{ref:C},v)}),c=e+"CollectionItemSlot",d="data-radix-collection-item",f=u.forwardRef((h,m)=>{const{scope:b,children:v,...$}=h,C=u.useRef(null),x=cn(m,C),E=i(c,b);return u.useEffect(()=>(E.itemMap.set(C,{ref:C,...$}),()=>void E.itemMap.delete(C))),u.createElement(ya,{[d]:"",ref:x},v)});function p(h){const m=i(e+"CollectionConsumer",h);return u.useCallback(()=>{const v=m.collectionRef.current;if(!v)return[];const $=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(m.itemMap.values()).sort((E,w)=>$.indexOf(E.ref.current)-$.indexOf(w.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},p,r]}function pk(e,t=globalThis==null?void 0:globalThis.document){const n=St(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const iu="dismissableLayer.update",hk="dismissableLayer.pointerDownOutside",mk="dismissableLayer.focusOutside";let lh;const bk=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vk=u.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,d=u.useContext(bk),[f,p]=u.useState(null),h=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=u.useState({}),b=cn(t,y=>p(y)),v=Array.from(d.layers),[$]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=v.indexOf($),x=f?v.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,w=x>=C,A=gk(y=>{const I=y.target,M=[...d.branches].some(k=>k.contains(I));!w||M||(i==null||i(y),s==null||s(y),y.defaultPrevented||l==null||l())},h),V=yk(y=>{const I=y.target;[...d.branches].some(k=>k.contains(I))||(a==null||a(y),s==null||s(y),y.defaultPrevented||l==null||l())},h);return pk(y=>{x===d.layers.size-1&&(o==null||o(y),!y.defaultPrevented&&l&&(y.preventDefault(),l()))},h),u.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(lh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),uh(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=lh)}},[f,h,r,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),uh())},[f,d]),u.useEffect(()=>{const y=()=>m({});return document.addEventListener(iu,y),()=>document.removeEventListener(iu,y)},[]),u.createElement(Mt.div,_e({},c,{ref:b,style:{pointerEvents:E?w?"auto":"none":void 0,...e.style},onFocusCapture:qe(e.onFocusCapture,V.onFocusCapture),onBlurCapture:qe(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:qe(e.onPointerDownCapture,A.onPointerDownCapture)}))});function gk(e,t=globalThis==null?void 0:globalThis.document){const n=St(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let c=function(){b1(hk,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function yk(e,t=globalThis==null?void 0:globalThis.document){const n=St(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&b1(mk,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function uh(){const e=new CustomEvent(iu);document.dispatchEvent(e)}function b1(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ou(o,i):o.dispatchEvent(i)}function $k(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const xk=u.forwardRef((e,t)=>u.createElement(Mt.span,_e({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),wk=xk,Wo="NavigationMenu",[Vc,v1,Ck]=m1(Wo),[au,Ek,Dk]=m1(Wo),[Nc,CM]=p1(Wo,[Ck,Dk]),[Pk,Lt]=Nc(Wo),[Sk,Tk]=Nc(Wo),Ak=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:c,...d}=e,[f,p]=u.useState(null),h=cn(t,I=>p(I)),m=lk(c),b=u.useRef(0),v=u.useRef(0),$=u.useRef(0),[C,x]=u.useState(!0),[E="",w]=ik({prop:r,onChange:I=>{const M=I!=="",k=s>0;M?(window.clearTimeout($.current),k&&x(!1)):(window.clearTimeout($.current),$.current=window.setTimeout(()=>x(!0),s)),o==null||o(I)},defaultProp:i}),A=u.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>w(""),150)},[w]),V=u.useCallback(I=>{window.clearTimeout(v.current),w(I)},[w]),y=u.useCallback(I=>{E===I?window.clearTimeout(v.current):b.current=window.setTimeout(()=>{window.clearTimeout(v.current),w(I)},a)},[E,w,a]);return u.useEffect(()=>()=>{window.clearTimeout(b.current),window.clearTimeout(v.current),window.clearTimeout($.current)},[]),u.createElement(kk,{scope:n,isRootMenu:!0,value:E,dir:m,orientation:l,rootNavigationMenu:f,onTriggerEnter:I=>{window.clearTimeout(b.current),C?y(I):V(I)},onTriggerLeave:()=>{window.clearTimeout(b.current),A()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:A,onItemSelect:I=>{w(M=>M===I?"":I)},onItemDismiss:()=>w("")},u.createElement(Mt.nav,_e({"aria-label":"Main","data-orientation":l,dir:m},d,{ref:h})))}),kk=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:s,onItemSelect:l,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:f,onContentEnter:p,onContentLeave:h}=e,[m,b]=u.useState(null),[v,$]=u.useState(new Map),[C,x]=u.useState(null);return u.createElement(Pk,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:$k(s),baseId:h1(),dir:o,orientation:i,viewport:m,onViewportChange:b,indicatorTrack:C,onIndicatorTrackChange:x,onTriggerEnter:St(d),onTriggerLeave:St(f),onContentEnter:St(p),onContentLeave:St(h),onItemSelect:St(l),onItemDismiss:St(c),onViewportContentChange:u.useCallback((E,w)=>{$(A=>(A.set(E,w),new Map(A)))},[]),onViewportContentRemove:u.useCallback(E=>{$(w=>w.has(E)?(w.delete(E),new Map(w)):w)},[])},u.createElement(Vc.Provider,{scope:t},u.createElement(Sk,{scope:t,items:v},a)))},Mk="NavigationMenuList",Rk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lt(Mk,n),i=u.createElement(Mt.ul,_e({"data-orientation":o.orientation},r,{ref:t}));return u.createElement(Mt.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},u.createElement(Vc.Slot,{scope:n},o.isRootMenu?u.createElement(w1,{asChild:!0},i):i))}),Fk="NavigationMenuItem",[Bk,g1]=Nc(Fk),Ik=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=h1(),a=r||i||"LEGACY_REACT_AUTO_VALUE",s=u.useRef(null),l=u.useRef(null),c=u.useRef(null),d=u.useRef(()=>{}),f=u.useRef(!1),p=u.useCallback((m="start")=>{if(s.current){d.current();const b=su(s.current);b.length&&_c(m==="start"?b:b.reverse())}},[]),h=u.useCallback(()=>{if(s.current){const m=su(s.current);m.length&&(d.current=Gk(m))}},[]);return u.createElement(Bk,{scope:n,value:a,triggerRef:l,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h},u.createElement(Mt.li,_e({},o,{ref:t})))}),ch="NavigationMenuTrigger",Ok=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Lt(ch,e.__scopeNavigationMenu),a=g1(ch,e.__scopeNavigationMenu),s=u.useRef(null),l=cn(s,a.triggerRef,t),c=E1(i.baseId,a.value),d=D1(i.baseId,a.value),f=u.useRef(!1),p=u.useRef(!1),h=a.value===i.value;return u.createElement(u.Fragment,null,u.createElement(Vc.ItemSlot,{scope:n,value:a.value},u.createElement(C1,{asChild:!0},u.createElement(Mt.button,_e({id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":Kc(h),"aria-expanded":h,"aria-controls":d},o,{ref:l,onPointerEnter:qe(e.onPointerEnter,()=>{p.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:qe(e.onPointerMove,$a(()=>{r||p.current||a.wasEscapeCloseRef.current||f.current||(i.onTriggerEnter(a.value),f.current=!0)})),onPointerLeave:qe(e.onPointerLeave,$a(()=>{r||(i.onTriggerLeave(),f.current=!1)})),onClick:qe(e.onClick,()=>{i.onItemSelect(a.value),p.current=h}),onKeyDown:qe(e.onKeyDown,m=>{const v={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&m.key===v&&(a.onEntryKeyDown(),m.preventDefault())})})))),h&&u.createElement(u.Fragment,null,u.createElement(wk,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:m=>{const b=a.contentRef.current,v=m.relatedTarget,$=v===s.current,C=b==null?void 0:b.contains(v);($||!C)&&a.onFocusProxyEnter($?"start":"end")}}),i.viewport&&u.createElement("span",{"aria-owns":d})))}),dh="navigationMenu.linkSelect",Lk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return u.createElement(C1,{asChild:!0},u.createElement(Mt.a,_e({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:qe(e.onClick,a=>{const s=a.target,l=new CustomEvent(dh,{bubbles:!0,cancelable:!0});if(s.addEventListener(dh,c=>o==null?void 0:o(c),{once:!0}),ou(s,l),!l.defaultPrevented&&!a.metaKey){const c=new CustomEvent(Vi,{bubbles:!0,cancelable:!0});ou(s,c)}},{checkForDefaultPrevented:!1})})))}),y1="NavigationMenuIndicator",Vk=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Lt(y1,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?dn.createPortal(u.createElement(Go,{present:n||i},u.createElement(Nk,_e({},r,{ref:t}))),o.indicatorTrack):null}),Nk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lt(y1,n),i=v1(n),[a,s]=u.useState(null),[l,c]=u.useState(null),d=o.orientation==="horizontal",f=!!o.value;u.useEffect(()=>{var h;const b=(h=i().find(v=>v.value===o.value))===null||h===void 0?void 0:h.ref.current;b&&s(b)},[i,o.value]);const p=()=>{a&&c({size:d?a.offsetWidth:a.offsetHeight,offset:d?a.offsetLeft:a.offsetTop})};return lu(a,p),lu(o.indicatorTrack,p),l?u.createElement(Mt.div,_e({"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation},r,{ref:t,style:{position:"absolute",...d?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null}),Ao="NavigationMenuContent",_k=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Lt(Ao,e.__scopeNavigationMenu),i=g1(Ao,e.__scopeNavigationMenu),a=cn(i.contentRef,t),s=i.value===o.value,l={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?u.createElement(Kk,_e({forceMount:n},l,{ref:a})):u.createElement(Go,{present:n||s},u.createElement($1,_e({"data-state":Kc(s)},l,{ref:a,onPointerEnter:qe(e.onPointerEnter,o.onContentEnter),onPointerLeave:qe(e.onPointerLeave,$a(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),Kk=u.forwardRef((e,t)=>{const n=Lt(Ao,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Tr(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Tr(()=>()=>o(e.value),[e.value,o]),null}),Vi="navigationMenu.rootContentDismiss",$1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...c}=e,d=Lt(Ao,n),f=u.useRef(null),p=cn(f,t),h=E1(d.baseId,r),m=D1(d.baseId,r),b=v1(n),v=u.useRef(null),{onItemDismiss:$}=d;u.useEffect(()=>{const x=f.current;if(d.isRootMenu&&x){const E=()=>{var w;$(),s(),x.contains(document.activeElement)&&((w=o.current)===null||w===void 0||w.focus())};return x.addEventListener(Vi,E),()=>x.removeEventListener(Vi,E)}},[d.isRootMenu,e.value,o,$,s]);const C=u.useMemo(()=>{const E=b().map(M=>M.value);d.dir==="rtl"&&E.reverse();const w=E.indexOf(d.value),A=E.indexOf(d.previousValue),V=r===d.value,y=A===E.indexOf(r);if(!V&&!y)return v.current;const I=(()=>{if(w!==A){if(V&&A!==-1)return w>A?"from-end":"from-start";if(y&&w!==-1)return w>A?"to-start":"to-end"}return null})();return v.current=I,I},[d.previousValue,d.value,d.dir,b,r]);return u.createElement(w1,{asChild:!0},u.createElement(vk,_e({id:m,"aria-labelledby":h,"data-motion":C,"data-orientation":d.orientation},c,{ref:p,onDismiss:()=>{var x;const E=new Event(Vi,{bubbles:!0,cancelable:!0});(x=f.current)===null||x===void 0||x.dispatchEvent(E)},onFocusOutside:qe(e.onFocusOutside,x=>{var E;l();const w=x.target;(E=d.rootNavigationMenu)!==null&&E!==void 0&&E.contains(w)&&x.preventDefault()}),onPointerDownOutside:qe(e.onPointerDownOutside,x=>{var E;const w=x.target,A=b().some(y=>{var I;return(I=y.ref.current)===null||I===void 0?void 0:I.contains(w)}),V=d.isRootMenu&&((E=d.viewport)===null||E===void 0?void 0:E.contains(w));(A||V||!d.isRootMenu)&&x.preventDefault()}),onKeyDown:qe(e.onKeyDown,x=>{const E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){const V=su(x.currentTarget),y=document.activeElement,I=V.findIndex(R=>R===y),k=x.shiftKey?V.slice(0,I).reverse():V.slice(I+1,V.length);if(_c(k))x.preventDefault();else{var A;(A=i.current)===null||A===void 0||A.focus()}}}),onEscapeKeyDown:qe(e.onEscapeKeyDown,x=>{a.current=!0})})))}),x1="NavigationMenuViewport",jk=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!Lt(x1,e.__scopeNavigationMenu).value;return u.createElement(Go,{present:n||i},u.createElement(zk,_e({},r,{ref:t})))}),zk=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=Lt(x1,n),a=cn(t,i.onViewportChange),s=Tk(Ao,e.__scopeNavigationMenu),[l,c]=u.useState(null),[d,f]=u.useState(null),p=l?(l==null?void 0:l.width)+"px":void 0,h=l?(l==null?void 0:l.height)+"px":void 0,m=!!i.value,b=m?i.value:i.previousValue;return lu(d,()=>{d&&c({width:d.offsetWidth,height:d.offsetHeight})}),u.createElement(Mt.div,_e({"data-state":Kc(m),"data-orientation":i.orientation},o,{ref:a,style:{pointerEvents:!m&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":h,...o.style},onPointerEnter:qe(e.onPointerEnter,i.onContentEnter),onPointerLeave:qe(e.onPointerLeave,$a(i.onContentLeave))}),Array.from(s.items).map(([$,{ref:C,forceMount:x,...E}])=>{const w=b===$;return u.createElement(Go,{key:$,present:x||w},u.createElement($1,_e({},E,{ref:Lc(C,A=>{w&&A&&f(A)})})))}))}),Uk="FocusGroup",w1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lt(Uk,n);return u.createElement(au.Provider,{scope:n},u.createElement(au.Slot,{scope:n},u.createElement(Mt.div,_e({dir:o.dir},r,{ref:t}))))}),fh=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Hk="FocusGroupItem",C1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Ek(n),i=Lt(Hk,n);return u.createElement(au.ItemSlot,{scope:n},u.createElement(Mt.button,_e({},r,{ref:t,onKeyDown:qe(e.onKeyDown,a=>{if(["Home","End",...fh].includes(a.key)){let l=o().map(f=>f.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&l.reverse(),fh.includes(a.key)){const f=l.indexOf(a.currentTarget);l=l.slice(f+1)}setTimeout(()=>_c(l)),a.preventDefault()}})})))});function su(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _c(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function Gk(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function lu(e,t){const n=St(t);Tr(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function Kc(e){return e?"open":"closed"}function E1(e,t){return`${e}-trigger-${t}`}function D1(e,t){return`${e}-content-${t}`}function $a(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Wk=Ak,Yk=Rk,Js=Ik,qk=Ok,Zk=Lk,Xk=Vk,Jk=_k,Qk=jk,eM=rt`
1800
+ from {
1801
+ opacity: 0;
1802
+ transform: translateX(200px);
1803
+ }
1804
+ to {
1805
+ opacity: 1;
1806
+ transform: translateX(0);
1807
+ }
1808
+ `,tM=rt`
1809
+ from {
1810
+ opacity: 0;
1811
+ transform: translateX(-200px);
1812
+ }
1813
+ to {
1814
+ opacity: 1;
1815
+ transform: translateX(0);
1816
+ }
1817
+ `,nM=rt`
1818
+ from {
1819
+ opacity: 1;
1820
+ transform: translateX(0);
1821
+ }
1822
+ to {
1823
+ opacity: 0;
1824
+ transform: translateX(200px);
1825
+ }
1826
+ `,rM=rt`
1827
+ from {
1828
+ opacity: 1;
1829
+ transform: translateX(0);
1830
+ }
1831
+ to {
1832
+ opacity: 0;
1833
+ transform: translateX(-200px);
1834
+ }
1835
+ `,oM=rt`
1836
+ from {
1837
+ opacity: 0;
1838
+ transform: rotateX(-30deg) scale(0.9);
1839
+ }
1840
+ to {
1841
+ opacity: 1;
1842
+ transform: rotateX(0deg) scale(1);
1843
+ }
1844
+ `,iM=rt`
1845
+ from {
1846
+ opacity: 1;
1847
+ transform: rotateX(0deg) scale(1);
1848
+ }
1849
+ to {
1850
+ opacity: 0;
1851
+ transform: rotateX(-10deg) scale(0.95);
1852
+ }
1853
+ `,aM=rt`
1854
+ from {
1855
+ opacity: 0;
1856
+ }
1857
+ to {
1858
+ opacity: 1;
1859
+ }
1860
+ `,sM=rt`
1861
+ from {
1862
+ opacity: 1;
1863
+ }
1864
+ to {
1865
+ opacity: 0;
1866
+ }
1867
+ `,P1=X.svg`
1868
+ position: relative;
1869
+ color: ${({theme:e})=>e.colors.slate[900]};
1870
+ top: 1px;
1871
+ transition: transform 200ms ease;
1872
+ `,lM=X(Wk)`
1873
+ position: relative;
1874
+ display: flex;
1875
+ width: 100%;
1876
+ justify-content: center;
1877
+ z-index: 1;
1878
+ `,uM=X(Yk)`
1879
+ display: flex;
1880
+ justify-content: center;
1881
+ list-style: none;
1882
+ margin: 0;
1883
+ padding: 0;
1884
+ // background-color: white;
1885
+ // padding: 4px;
1886
+ // border-radius: 6px;
1887
+ // box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
1888
+ `,ph=X(qk)`
1889
+ display: flex;
1890
+ align-items: center;
1891
+ justify-content: space-between;
1892
+ gap: 0.5rem;
1893
+ padding: 8px 12px;
1894
+ outline: none;
1895
+ user-select: none;
1896
+ font-weight: 500;
1897
+ line-height: 1;
1898
+ border-radius: 4px;
1899
+ border: none;
1900
+ cursor: pointer;
1901
+ background-color: transparent;
1902
+ font-size: 0.9rem;
1903
+ color: ${({theme:e})=>e.colors.slate[900]};
1904
+ transition: all 200ms ease;
1905
+
1906
+ &:focus {
1907
+ box-shadow: 0 0 0 2px ${({theme:e})=>e.colors.slate[200]};
1908
+ }
1909
+
1910
+ &:hover {
1911
+ background-color: ${({theme:e})=>e.colors.slate[100]};
1912
+ }
1913
+
1914
+ &[data-state='open'] > ${P1} {
1915
+ transform: rotate(-180deg);
1916
+ }
1917
+ `,uu=X(Zk)`
1918
+ display: block;
1919
+ text-decoration: none;
1920
+ font-size: 0.9rem;
1921
+ line-height: 1;
1922
+ padding: 8px 12px;
1923
+ outline: none;
1924
+ user-select: none;
1925
+ font-weight: 500;
1926
+ line-height: 1;
1927
+ border-radius: 4px;
1928
+ font-size: 0.9rem;
1929
+ border: none;
1930
+ background-color: transparent;
1931
+ color: ${({theme:e})=>e.colors.slate[900]};
1932
+ transition: all 200ms ease;
1933
+
1934
+ &:focus {
1935
+ box-shadow: 0 0 0 2px ${({theme:e})=>e.colors.slate[200]};
1936
+ }
1937
+
1938
+ &:hover {
1939
+ background-color: ${({theme:e})=>e.colors.slate[100]};
1940
+ }
1941
+ `,hh=X(Jk)`
1942
+ position: absolute;
1943
+ top: 0;
1944
+ left: 0;
1945
+ width: 100%;
1946
+ animation-duration: 250ms;
1947
+ animation-timing-function: ease;
1948
+
1949
+ &[data-motion='from-start'] {
1950
+ animation-name: ${tM};
1951
+ }
1952
+ &[data-motion='from-end'] {
1953
+ animation-name: ${eM};
1954
+ }
1955
+ &[data-motion='to-start'] {
1956
+ animation-name: ${rM};
1957
+ }
1958
+ &[data-motion='to-end'] {
1959
+ animation-name: ${nM};
1960
+ }
1961
+
1962
+ @media only screen and (min-width: 600px) {
1963
+ width: auto;
1964
+ }
1965
+ `,cM=X(Xk)`
1966
+ display: flex;
1967
+ align-items: flex-end;
1968
+ justify-content: center;
1969
+ height: 10px;
1970
+ top: 100%;
1971
+ overflow: hidden;
1972
+ z-index: 1;
1973
+ transition: width, transform 250ms ease;
1974
+
1975
+ &[data-state='visible'] {
1976
+ animation: ${aM} 200ms ease;
1977
+ }
1978
+
1979
+ &[data-state='hidden'] {
1980
+ animation: ${sM} 200ms ease;
1981
+ }
1982
+ `,dM=X(Qk)`
1983
+ position: relative;
1984
+ transform-origin: top center;
1985
+ margin-top: 10px;
1986
+ width: 100%;
1987
+ background-color: ${({theme:e})=>e.colors.white};
1988
+ border-radius: 6px;
1989
+ overflow: hidden;
1990
+ box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
1991
+ height: var(--radix-navigation-menu-viewport-height);
1992
+ transition: width, height, 300ms ease;
1993
+
1994
+ &[data-state='open'] {
1995
+ animation: ${oM} 200ms ease;
1996
+ }
1997
+
1998
+ &[data-state='closed'] {
1999
+ animation: ${iM} 200ms ease;
2000
+ }
2001
+
2002
+ @media only screen and (min-width: 600px) {
2003
+ width: var(--radix-navigation-menu-viewport-width);
2004
+ }
2005
+ }
2006
+ `,mh=X.ul`
2007
+ display: grid;
2008
+ padding: 22px;
2009
+ margin: 0;
2010
+ column-gap: 10px;
2011
+ list-style: none;
2012
+
2013
+ @media only screen and (min-width: 600px) {
2014
+ &.one {
2015
+ width: 500px;
2016
+ grid-template-columns: 0.75fr 1fr;
2017
+ }
2018
+ &.two {
2019
+ width: 600px;
2020
+ grid-auto-flow: column;
2021
+ grid-template-rows: repeat(3, 1fr);
2022
+ }
2023
+ }
2024
+ `,fM=X(Ha)`
2025
+ display: block;
2026
+ outline: none;
2027
+ text-decoration: none;
2028
+ user-select: none;
2029
+ padding: 12px;
2030
+ border-radius: 0.375rem;
2031
+ font-size: 0.9rem;
2032
+ line-height: 1;
2033
+ transition: background-color 200ms ease;
2034
+
2035
+ &:focus {
2036
+ box-shadow: 0 0 0 2px ${({theme:e})=>e.colors.slate[900]};
2037
+ }
2038
+
2039
+ &:hover {
2040
+ background-color: ${({theme:e})=>e.colors.slate[100]};
2041
+ }
2042
+ `,pM=X.div`
2043
+ font-weight: 500;
2044
+ line-height: 1.2;
2045
+ margin-bottom: 5px;
2046
+ color: ${({theme:e})=>e.colors.slate[900]};
2047
+ `,hM=X.p`
2048
+ color: ${({theme:e})=>e.colors.slate[900]};
2049
+ line-height: 1.4;
2050
+ font-weight: initial;
2051
+ `,mM=X(Ha)`
2052
+ display: flex;
2053
+ justify-content: flex-end;
2054
+ flex-direction: column;
2055
+ width: 100%;
2056
+ height: 100%;
2057
+ background: linear-gradient(
2058
+ 135deg,
2059
+ ${({theme:e})=>e.colors.violet[500]} 0%,
2060
+ ${({theme:e})=>e.colors.indigo[500]} 100%
2061
+ );
2062
+ border-radius: 0.375rem;
2063
+ padding: 25px;
2064
+ text-decoration: none;
2065
+ outline: none;
2066
+ user-select: none;
2067
+
2068
+ &:focus {
2069
+ box-shadow: 0 0 0 2px ${({theme:e})=>e.colors.slate[900]};
2070
+ }
2071
+ `,bM=X.div`
2072
+ color: white;
2073
+ font-size: 18px;
2074
+ font-weight: 500;
2075
+ line-height: 1.2;
2076
+ margin-top: 16px;
2077
+ margin-bottom: 7px;
2078
+ `,vM=X.p`
2079
+ color: white;
2080
+ font-size: 14px;
2081
+ line-height: 1.3;
2082
+ `,gM=X.div`
2083
+ position: absolute;
2084
+ display: flex;
2085
+ justify-content: center;
2086
+ width: 100%;
2087
+ top: 100%;
2088
+ left: 0;
2089
+ perspective: 2000px;
2090
+ `,yM=X.div`
2091
+ position: relative;
2092
+ top: 70%;
2093
+ background-color: white;
2094
+ width: 10px;
2095
+ height: 10px;
2096
+ transform: rotate(45deg);
2097
+ border-top-left-radius: 2px;
2098
+ `;function cu({className:e,...t}){return O.jsx(P1,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:O.jsx("path",{d:"M6 9L12 15L18 9",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}cu.defaultProps={className:void 0};const Nt=u.forwardRef(({className:e,children:t,title:n,...r},o)=>O.jsx("li",{children:O.jsx(uu,{asChild:!0,children:O.jsxs(fM,{className:`${e??""}`,...r,ref:o,children:[O.jsx(pM,{children:n}),O.jsx(hM,{children:t})]})})}));Nt.defaultProps={className:void 0,href:void 0,title:void 0};function $M(){return O.jsxs(lM,{children:[O.jsxs(uM,{children:[O.jsxs(Js,{children:[O.jsxs(ph,{children:["Learn ",O.jsx(cu,{"aria-hidden":!0})]}),O.jsx(hh,{children:O.jsxs(mh,{className:"one",children:[O.jsx("li",{style:{gridRow:"span 3"},children:O.jsx(uu,{asChild:!0,children:O.jsxs(mM,{href:"/",children:[O.jsxs("svg",{"aria-hidden":!0,width:"38",height:"38",viewBox:"0 0 25 25",fill:"white",children:[O.jsx("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z"}),O.jsx("path",{d:"M12 0H4V8H12V0Z"}),O.jsx("path",{d:"M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z"})]}),O.jsx(bM,{children:"Radix Primitives"}),O.jsx(vM,{children:"Unstyled, accessible components for React."})]})})}),O.jsx(Nt,{href:"https://stitches.dev/",title:"Stitches",children:"CSS-in-JS with best-in-class developer experience."}),O.jsx(Nt,{href:"/colors",title:"Colors",children:"Beautiful, thought-out palettes with auto dark mode."}),O.jsx(Nt,{href:"https://icons.radix-ui.com/",title:"Icons",children:"A crisp set of 15x15 icons, balanced and consistent."})]})})]}),O.jsxs(Js,{children:[O.jsxs(ph,{children:["Overview ",O.jsx(cu,{"aria-hidden":!0})]}),O.jsx(hh,{children:O.jsxs(mh,{className:"two",children:[O.jsx(Nt,{title:"Introduction",href:"/primitives/docs/overview/introduction",children:"Build high-quality, accessible design systems and web apps."}),O.jsx(Nt,{title:"Getting started",href:"/primitives/docs/overview/getting-started",children:"A quick tutorial to get you up and running with Radix Primitives."}),O.jsx(Nt,{title:"Styling",href:"/primitives/docs/guides/styling",children:"Unstyled and compatible with any styling solution."}),O.jsx(Nt,{title:"Animation",href:"/primitives/docs/guides/animation",children:"Use CSS keyframes or any animation library of your choice."}),O.jsx(Nt,{title:"Accessibility",href:"/primitives/docs/overview/accessibility",children:"Tested in a range of browsers and assistive technologies."}),O.jsx(Nt,{title:"Releases",href:"/primitives/docs/overview/releases",children:"Radix Primitives releases and their changelogs."})]})})]}),O.jsx(Js,{children:O.jsx(uu,{href:"https://github.com/radix-ui",children:"Github"})}),O.jsx(cM,{children:O.jsx(yM,{})})]}),O.jsx(gM,{children:O.jsx(dM,{})})]})}exports.Avatar=TC;exports.AvatarGroup=kC;exports.Badge=iP;exports.BreadcrumbEllipsis=aP;exports.BreadcrumbItem=WT;exports.BreadcrumbLink=YT;exports.BreadcrumbSeparator=qT;exports.Breadcrumbs=ZT;exports.Button=XT;exports.Checkbox=QT;exports.CircularEasing=wA;exports.CircularProgressbar=X9;exports.Collapsible=r9;exports.CollapsibleTrigger=n9;exports.CollapsibleTriggerStateContext=Oc;exports.ContextMenu=J4;exports.DateInput=Q4;exports.Dialog=T9;exports.Divider=f9;exports.Drawer=o1;exports.Input=r1;exports.LinearProgressbar=oA;exports.Link=m9;exports.Meter=w9;exports.Modal=E9;exports.ModalOverlay=P9;exports.NavigationMenu=$M;exports.NumberInput=i1;exports.Option=bA;exports.PinInput=a1;exports.Pulse=s1;exports.Select=l1;exports.Slider=u1;exports.Switch=AA;exports.Tab=IA;exports.TabList=OA;exports.TabPanel=LA;exports.Tabs=BA;exports.TabsOrientationContext=Za;exports.TimeInput=d1;exports.ToggleButton=HA;exports.Tooltip=JA;