asma-core-ui 3.1.80 → 3.2.0

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.
@@ -1,4 +1,4 @@
1
- var e=Object.defineProperty,t=(t,n,r)=>(((t,n,r)=>{n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r})(t,"symbol"!=typeof n?n+"":n,r),r);import*as n from"react";import r,{forwardRef as o,createElement as i,useState as a,useEffect as s,useLayoutEffect as l,useRef as c,useCallback as d,useMemo as u,createContext as p,useContext as f}from"react";import{Badge as h,Chip as m,Checkbox as g,Radio as y,Tooltip as v,Typography as b,Dialog as x,DialogActions as w,DialogContent as C,DialogTitle as k,TextField as j,Select as N,MenuItem as _,Autocomplete as E,Paper as I,Slider as O,FormControl as S,FormControlLabel as M,FormHelperText as T,InputLabel as R,FormGroup as P,Drawer as D,Menu as z,MenuList as A,Tab as V,Tabs as L,Popover as F}from"@mui/material";import{Avatar as $,ClickAwayListener as B,Container as q,Fade as H,FormLabel as U,Paper as W,Popper as K,Skeleton as G,Stack as Y}from"@mui/material";import J from"prop-types";import{ThemeContext as X}from"@emotion/react";import*as Z from"react-dom";import Q from"react-dom";import{twMerge as ee}from"tailwind-merge";const te=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))));function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function oe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function ie(e){oe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ne(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function ae(e,t){oe(2,arguments);var n=ie(e),r=re(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){oe(1,arguments);var t=ie(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}function se(e,t){if(oe(2,arguments),"object"!==ne(t)||null===t)throw new RangeError("values parameter must be an object");var n=ie(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=ae(n,t.month)),null!=t.date&&n.setDate(re(t.date)),null!=t.hours&&n.setHours(re(t.hours)),null!=t.minutes&&n.setMinutes(re(t.minutes)),null!=t.seconds&&n.setSeconds(re(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(re(t.milliseconds)),n)}const le=e=>se(e,{hours:23,minutes:59,seconds:59,milliseconds:59}),ce=e=>se(e,{hours:0,minutes:0,seconds:0,milliseconds:0});function de(e){return o((function(t,n){const{ownerState:r,...o}=t;return i(e,{...o,ref:n})}))}var ue,pe={exports:{}},fe={};
1
+ var e=Object.defineProperty,t=(t,n,r)=>(((t,n,r)=>{n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r})(t,"symbol"!=typeof n?n+"":n,r),r);import*as n from"react";import r,{forwardRef as o,createElement as i,useState as a,useEffect as s,useLayoutEffect as l,useRef as c,useCallback as d,useMemo as u,createContext as p,useContext as f}from"react";import{Badge as h,Chip as m,Checkbox as g,Radio as y,Tooltip as v,Typography as b,Dialog as x,DialogActions as w,DialogContent as C,DialogTitle as k,TextField as j,Select as N,MenuItem as _,Autocomplete as E,Paper as I,Slider as S,FormControl as O,FormControlLabel as T,FormHelperText as M,InputLabel as R,FormGroup as P,Drawer as D,Menu as z,MenuList as A,Tab as V,Tabs as L,Popover as F}from"@mui/material";import{Avatar as $,ClickAwayListener as q,Container as B,Fade as H,FormLabel as U,Paper as W,Popper as K,Skeleton as G,Stack as Y}from"@mui/material";import J from"prop-types";import{ThemeContext as X}from"@emotion/react";import*as Z from"react-dom";import Q from"react-dom";import{twMerge as ee}from"tailwind-merge";const te=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))));function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function oe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function ie(e){oe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ne(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function ae(e,t){oe(2,arguments);var n=ie(e),r=re(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){oe(1,arguments);var t=ie(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}function se(e,t){if(oe(2,arguments),"object"!==ne(t)||null===t)throw new RangeError("values parameter must be an object");var n=ie(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=ae(n,t.month)),null!=t.date&&n.setDate(re(t.date)),null!=t.hours&&n.setHours(re(t.hours)),null!=t.minutes&&n.setMinutes(re(t.minutes)),null!=t.seconds&&n.setSeconds(re(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(re(t.milliseconds)),n)}const le=e=>se(e,{hours:23,minutes:59,seconds:59,milliseconds:59}),ce=e=>se(e,{hours:0,minutes:0,seconds:0,milliseconds:0});function de(e){return o((function(t,n){const{ownerState:r,...o}=t;return i(e,{...o,ref:n})}))}var ue,pe={exports:{}},fe={};
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
@@ -16,7 +16,7 @@ var e=Object.defineProperty,t=(t,n,r)=>(((t,n,r)=>{n in t?e(t,n,{enumerable:!0,c
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */"production"===process.env.NODE_ENV?pe.exports=function(){if(ue)return fe;ue=1;var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var s,l={},c=null,d=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:i.current}}return fe.Fragment=n,fe.jsx=s,fe.jsxs=s,fe}():pe.exports=(he||(he=1,"production"!==process.env.NODE_ENV&&function(){var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator",y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=y.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(t+="%s",n=n.concat([o]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,n)}var b,x=!1,w=!1,C=!1,k=!1,j=!1;function N(e){return e.displayName||"Context"}function _(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return N(e)+".Consumer";case s:return N(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:_(e.type)||"Memo";case f:var r=e,h=r._payload,m=r._init;try{return _(m(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var E,I,O,S,M,T,R,P=Object.assign,D=0;function z(){}z.__reactDisabledLog=!0;var A,V=y.ReactCurrentDispatcher;function L(e,t,n){if(void 0===A)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);A=r&&r[1]||""}return"\n"+A+e}var F,$=!1,B="function"==typeof WeakMap?WeakMap:Map;function q(e,t){if(!e||$)return"";var n,r=F.get(e);if(void 0!==r)return r;$=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=V.current,V.current=null,function(){if(0===D){E=console.log,I=console.info,O=console.warn,S=console.error,M=console.group,T=console.groupCollapsed,R=console.groupEnd;var e={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,d=l.length-1;c>=1&&d>=0&&s[c]!==l[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==l[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==l[d]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&F.set(e,u),u}}while(c>=1&&d>=0);break}}}finally{$=!1,V.current=o,function(){if(0==--D){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:E}),info:P({},e,{value:I}),warn:P({},e,{value:O}),error:P({},e,{value:S}),group:P({},e,{value:M}),groupCollapsed:P({},e,{value:T}),groupEnd:P({},e,{value:R})})}D<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?L(p):"";return"function"==typeof e&&F.set(e,f),f}function H(e,t,n){if(null==e)return"";if("function"==typeof e)return q(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return L(e);switch(e){case d:return L("Suspense");case u:return L("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return q(e,!1)}(e.render);case p:return H(e.type,t,n);case f:var r=e,o=r._payload,i=r._init;try{return H(i(o),t,n)}catch{}}return""}F=new B;var U=Object.prototype.hasOwnProperty,W={},K=y.ReactDebugCurrentFrame;function G(e){if(e){var t=e._owner,n=H(e.type,e._source,t?t.type:null);K.setExtraStackFrame(n)}else K.setExtraStackFrame(null)}var Y=Array.isArray;function J(e){return Y(e)}function X(e){return""+e}function Z(e){if(function(e){try{return X(e),!1}catch{return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),X(e)}var Q,ee,te,ne=y.ReactCurrentOwner,re={key:!0,ref:!0,__self:!0,__source:!0};te={};var oe=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ie(e,t,n,r,o){var i,a={},s=null,l=null;for(i in void 0!==n&&(Z(n),s=""+n),function(e){if(U.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Z(t.key),s=""+t.key),function(e){if(U.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&ne.current&&t&&ne.current.stateNode!==t){var n=_(ne.current.type);te[n]||(v('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',_(ne.current.type),e.ref),te[n]=!0)}}(t,o)),t)U.call(t,i)&&!re.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var c=e.defaultProps;for(i in c)void 0===a[i]&&(a[i]=c[i])}if(s||l){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){Q||(Q=!0,v("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,d),l&&function(e,t){var n=function(){ee||(ee=!0,v("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,d)}return oe(e,s,l,o,r,ne.current,a)}var ae,se=y.ReactCurrentOwner,le=y.ReactDebugCurrentFrame;function ce(e){if(e){var t=e._owner,n=H(e.type,e._source,t?t.type:null);le.setExtraStackFrame(n)}else le.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function ue(){if(se.current){var e=_(se.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ae=!1;var pe={};function fe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ue();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!pe[n]){pe[n]=!0;var r="";e&&e._owner&&e._owner!==se.current&&(r=" It was passed a child from "+_(e._owner.type)+"."),ce(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ce(null)}}}function he(e,t){if("object"==typeof e)if(J(e))for(var n=0;n<e.length;n++){var r=e[n];de(r)&&fe(r,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)de(i.value)&&fe(i.value,t)}}function ge(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=_(n);!function(e,t,n,r,o){var i=Function.call.bind(U);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(G(o),v("%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).",r||"React class",n,a,typeof s),G(null)),s instanceof Error&&!(s.message in W)&&(W[s.message]=!0,G(o),v("Failed %s type: %s",n,s.message),G(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ae||(ae=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ye(e,n,r,m,g,y){var N=function(e){return!!("string"==typeof e||"function"==typeof e||e===o||e===a||j||e===i||e===d||e===u||k||e===h||x||w||C||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===b||void 0!==e.getModuleId))}(e);if(!N){var E="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(E+=" 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 I,O=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);E+=O||ue(),null===e?I="null":J(e)?I="array":void 0!==e&&e.$$typeof===t?(I="<"+(_(e.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):I=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",I,E)}var S=ie(e,n,r,g,y);if(null==S)return S;if(N){var M=n.children;if(void 0!==M)if(m)if(J(M)){for(var T=0;T<M.length;T++)he(M[T],e);Object.freeze&&Object.freeze(M)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(M,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ce(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ce(null);break}}null!==e.ref&&(ce(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),ce(null))}(S):ge(S),S}var ve=function(e,t,n){return ye(e,t,n,!1)},be=function(e,t,n){return ye(e,t,n,!0)};me.Fragment=o,me.jsx=ve,me.jsxs=be}()),me);var ge=pe.exports;const ye=({color:e="primary",dataTest:t,...n})=>ge.jsx(h,{color:e,"data-test":t,...n,sx:{"& .MuiBadge-colorPrimary":{backgroundColor:"var(--colors-lime-500)",color:"var(--colors-gama-900)"},...n.sx}}),ve=/^[a-z0-9]+(-[a-z0-9]+)*$/,be=(e,t,n,r="")=>{const o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const e=o.pop(),n=o.pop(),i={provider:o.length>0?o[0]:r,prefix:n,name:e};return t&&!xe(i)?null:i}const i=o[0],a=i.split("-");if(a.length>1){const e={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!xe(e)?null:e}if(n&&""===r){const e={provider:r,prefix:"",name:i};return t&&!xe(e,n)?null:e}return null},xe=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(ve)||!(t&&""===e.prefix||e.prefix.match(ve))||!e.name.match(ve)),we=Object.freeze({left:0,top:0,width:16,height:16}),Ce=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ke=Object.freeze({...we,...Ce}),je=Object.freeze({...ke,body:"",hidden:!1});function Ne(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(const r in je)r in Ce?r in e&&!(r in n)&&(n[r]=Ce[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function _e(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(e){i=Ne(r[e]||o[e],i)}return a(t),n.forEach(a),Ne(e,i)}function Ee(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const r=function(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);return(t||Object.keys(n).concat(Object.keys(r))).forEach((function e(t){if(n[t])return o[t]=[];if(!(t in o)){o[t]=null;const n=r[t]&&r[t].parent,i=n&&e(n);i&&(o[t]=[n].concat(i))}return o[t]})),o}(e);for(const o in r){const i=r[o];i&&(t(o,_e(e,o,i)),n.push(o))}return n}const Ie={provider:"",aliases:{},not_found:{},...we};function Oe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Se(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!Oe(e,Ie))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(ve)||"string"!=typeof t.body||!Oe(t,je))return null}const r=t.aliases||Object.create(null);for(const e in r){const t=r[e],o=t.parent;if(!e.match(ve)||"string"!=typeof o||!n[o]&&!r[o]||!Oe(t,je))return null}return t}const Me=Object.create(null);function Te(e,t){const n=Me[e]||(Me[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function Re(e,t){return Se(t)?Ee(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let Pe=!1;function De(e){return"boolean"==typeof e&&(Pe=e),Pe}function ze(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),Pe&&!t&&!e.prefix){let t=!1;return Se(e)&&(e.prefix="",Ee(e,((e,n)=>{n&&function(e,t){const n=be(e,!0,Pe);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(Te(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!xe({provider:t,prefix:n,name:"a"}))return!1;return!!Re(Te(t,n),e)}const Ae=Object.freeze({width:null,height:null}),Ve=Object.freeze({...Ae,...Ce}),Le=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Fe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function $e(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const r=e.split(Le);if(null===r||!r.length)return e;const o=[];let i=r.shift(),a=Fe.test(i);for(;;){if(a){const e=parseFloat(i);isNaN(e)?o.push(i):o.push(Math.ceil(e*t*n)/n)}else o.push(i);if(i=r.shift(),void 0===i)return o.join("");a=!a}}const Be=/\sid="(\S+)"/g,qe="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let He=0;function Ue(e,t=qe){const n=[];let r;for(;r=Be.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const r="function"==typeof t?t(n):t+(He++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")})),e=e.replace(new RegExp(o,"g"),"")}const We=Object.create(null);function Ke(e){return We[e]||We[""]}function Ge(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Ye=Object.create(null),Je=["https://api.simplesvg.com","https://api.unisvg.com"],Xe=[];for(;Je.length>0;)1===Je.length||Math.random()>.5?Xe.push(Je.shift()):Xe.push(Je.pop());function Ze(e,t){const n=Ge(t);return null!==n&&(Ye[e]=n,!0)}function Qe(e){return Ye[e]}Ye[""]=Ge({resources:["https://api.iconify.design"].concat(Xe)});let et=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const tt={prepare:(e,t,n)=>{const r=[],o=function(e,t){const n=Qe(e);if(!n)return 0;let r;if(n.maxURL){let e=0;n.resources.forEach((t=>{e=Math.max(e,t.length)}));const o=t+".json?icons=";r=n.maxURL-e-n.path.length-o.length}else r=0;return r}(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach(((n,l)=>{s+=n.length+1,s>=o&&l>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=n.length),a.icons.push(n)})),r.push(a),r},send:(e,t,n)=>{if(!et)return void n("abort",424);let r=function(e){if("string"==typeof e){const t=Qe(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");r+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;r+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let o=503;et(e+r).then((e=>{const t=e.status;if(200===t)return o=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",o)}))})).catch((()=>{n("next",o)}))}};function nt(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let rt=0;var ot={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function it(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let t=e.resources.slice(0);for(a=[];t.length>1;){const e=Math.floor(Math.random()*t.length);a.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}a=a.concat(t)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let l,c="pending",d=0,u=null,p=[],f=[];function h(){u&&(clearTimeout(u),u=null)}function m(){"pending"===c&&(c="aborted"),h(),p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function g(e,t){t&&(f=[]),"function"==typeof e&&f.push(e)}function y(){c="failed",f.forEach((e=>{e(void 0,l)}))}function v(){p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function b(){if("pending"!==c)return;h();const r=a.shift();if(void 0===r)return p.length?void(u=setTimeout((()=>{h(),"pending"===c&&(v(),y())}),e.timeout)):void y();const o={status:"pending",resource:r,callback:(t,n)=>{!function(t,n,r){const o="success"!==n;switch(p=p.filter((e=>e!==t)),c){case"pending":break;case"failed":if(o||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return l=r,void y();if(o)return l=r,void(p.length||(a.length?b():y()));if(h(),v(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}c="completed",f.forEach((e=>{e(r)}))}(o,t,n)}};p.push(o),d++,u=setTimeout(b,e.rotate),n(r,t,o.callback)}return"function"==typeof r&&f.push(r),setTimeout(b),function(){return{startTime:s,payload:t,status:c,queriesSent:d,queriesPending:p.length,subscribe:g,abort:m}}}function at(e){const t={...ot,...e};let n=[];function r(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,o,i){const a=it(t,e,o,((e,t)=>{r(),i&&i(e,t)}));return n.push(a),a},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function st(){}const lt=Object.create(null);function ct(e,t,n){let r,o;if("string"==typeof e){const t=Ke(e);if(!t)return n(void 0,424),st;o=t.send;const i=function(e){if(!lt[e]){const t=Qe(e);if(!t)return;const n={config:t,redundancy:at(t)};lt[e]=n}return lt[e]}(e);i&&(r=i.redundancy)}else{const t=Ge(e);if(t){r=at(t);const n=Ke(e.resources?e.resources[0]:"");n&&(o=n.send)}}return r&&o?r.query(t,o,n)().abort:(n(void 0,424),st)}const dt="iconify2",ut="iconify",pt=ut+"-count",ft=ut+"-version",ht=36e5,mt=168;function gt(e,t){try{return e.getItem(t)}catch{}}function yt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function vt(e,t){try{e.removeItem(t)}catch{}}function bt(e,t){return yt(e,pt,t.toString())}function xt(e){return parseInt(gt(e,pt))||0}const wt={local:!0,session:!0},Ct={local:new Set,session:new Set};let kt=!1;let jt=typeof window>"u"?{}:window;function Nt(e){const t=e+"Storage";try{if(jt&&jt[t]&&"number"==typeof jt[t].length)return jt[t]}catch{}wt[e]=!1}function _t(e,t){const n=Nt(e);if(!n)return;const r=gt(n,ft);if(r!==dt){if(r){const e=xt(n);for(let t=0;t<e;t++)vt(n,ut+t.toString())}return yt(n,ft,dt),void bt(n,0)}const o=Math.floor(Date.now()/ht)-mt,i=e=>{const r=ut+e.toString(),i=gt(n,r);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>o&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch{}vt(n,r)}};let a=xt(n);for(let t=a-1;t>=0;t--)i(t)||(t===a-1?(a--,bt(n,a)):Ct[e].add(t))}function Et(){if(!kt){kt=!0;for(const e in wt)_t(e,(e=>{const t=e.data,n=Te(e.provider,t.prefix);if(!Re(n,t).length)return!1;const r=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,r):r,!0}))}}function It(e,t){function n(n){let r;if(!wt[n]||!(r=Nt(n)))return;const o=Ct[n];let i;if(o.size)o.delete(i=Array.from(o).shift());else if(i=xt(r),!bt(r,i+1))return;const a={cached:Math.floor(Date.now()/ht),provider:e.provider,data:t};return yt(r,ut+i.toString(),JSON.stringify(a))}kt||Et(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const n in wt)_t(n,(n=>{const r=n.data;return n.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function Ot(){}function St(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach((t=>{const i=t.icons,a=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==o)return!0;const a=t.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else{if(!e.missing.has(a))return n=!0,!0;i.missing.push({provider:r,prefix:o,name:a})}return!1})),i.pending.length!==a&&(n||nt([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const Mt=(e,t)=>{const n=function(e,t=!0,n=!1){const r=[];return e.forEach((e=>{const o="string"==typeof e?be(e,t,n):e;o&&r.push(o)})),r}(e,!0,De()),r=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let r={provider:"",prefix:"",name:""};return e.forEach((e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;const o=e.provider,i=e.prefix,a=e.name,s=n[o]||(n[o]=Object.create(null)),l=s[i]||(s[i]=Te(o,i));let c;c=a in l.icons?t.loaded:""===i||l.missing.has(a)?t.missing:t.pending;const d={provider:o,prefix:i,name:a};c.push(d)})),t}(n);if(!r.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(r.loaded,r.missing,r.pending,Ot)})),()=>{e=!1}}const o=Object.create(null),i=[];let a,s;return r.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===s&&t===a)return;a=t,s=n,i.push(Te(t,n));const r=o[t]||(o[t]=Object.create(null));r[n]||(r[n]=[])})),r.pending.forEach((e=>{const{provider:t,prefix:n,name:r}=e,i=Te(t,n),a=i.pendingIcons||(i.pendingIcons=new Set);a.has(r)||(a.add(r),o[t][n].push(r))})),i.forEach((e=>{const{provider:t,prefix:n}=e;o[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,r=e.iconsToLoad;let o;delete e.iconsToLoad,r&&(o=Ke(t))&&o.prepare(t,n,r).forEach((n=>{ct(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=Re(e,t);if(!n.length)return;const r=e.pendingIcons;r&&n.forEach((e=>{r.delete(e)})),It(e,t)}catch(e){console.error(e)}St(e)}))}))})))}(e,o[t][n])})),t?function(e,t,n){const r=rt++,o=nt.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),o}(t,r,i):Ot};const Tt=/[\s,]+/;function Rt(e,t){t.split(Tt).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Pt(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=t,o%1==0?r(o):0)}}return t}function Dt(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let zt;function At(e){return void 0===zt&&function(){try{zt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{zt=null}}(),zt?zt.createHTML(e):e}const Vt={...Ve,inline:!1},Lt={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ft={display:"inline-block"},$t={backgroundColor:"currentColor"},Bt={backgroundColor:"transparent"},qt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ht={WebkitMask:$t,mask:$t,background:Bt};for(const e in Ht){const t=Ht[e];for(const n in qt)t[e+n]=qt[n]}const Ut={...Vt,inline:!0};function Wt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Kt=(e,t,n,o)=>{const i=n?Ut:Vt,a=function(e,t){const n={...e};for(const e in t){const r=t[e],o=typeof r;e in Ae?(null===r||r&&("string"===o||"number"===o))&&(n[e]=r):o===typeof n[e]&&(n[e]="rotate"===e?r%4:r)}return n}(i,t),s=t.mode||"svg",l={},c=t.style||{},d={..."svg"===s?Lt:{},ref:o};for(let e in t){const n=t[e];if(void 0!==n)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[e]=!0===n||"true"===n||1===n;break;case"flip":"string"==typeof n&&Rt(a,n);break;case"color":l.color=n;break;case"rotate":"string"==typeof n?a[e]=Pt(n):"number"==typeof n&&(a[e]=n);break;case"ariaHidden":case"aria-hidden":!0!==n&&"true"!==n&&delete d["aria-hidden"];break;default:void 0===i[e]&&(d[e]=n)}}const u=function(e,t){const n={...ke,...e},r={...Ve,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach((e=>{const t=[],n=e.hFlip,r=e.vFlip;let a,s=e.rotate;switch(n?r?s+=2:(t.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),t.push("scale(-1 1)"),o.top=o.left=0):r&&(t.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),t.push("scale(1 -1)"),o.top=o.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:a=o.height/2+o.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:a=o.width/2+o.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}s%2==1&&(o.left!==o.top&&(a=o.left,o.left=o.top,o.top=a),o.width!==o.height&&(a=o.width,o.width=o.height,o.height=a)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const a=r.width,s=r.height,l=o.width,c=o.height;let d,u;null===a?(u=null===s?"1em":"auto"===s?c:s,d=$e(u,l/c)):(d="auto"===a?l:a,u=null===s?$e(d,c/l):"auto"===s?c:s);const p={},f=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(p[e]=t.toString())};return f("width",d),f("height",u),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:p,body:i}}(e,a),p=u.attributes;if(a.inline&&(l.verticalAlign="-0.125em"),"svg"===s){d.style={...l,...c},Object.assign(d,p);let e=0,n=t.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),d.dangerouslySetInnerHTML={__html:At(Ue(u.body,n?()=>n+"ID"+e++:"iconifyReact"))},r.createElement("svg",d)}const{body:f,width:h,height:m}=e,g="mask"===s||"bg"!==s&&-1!==f.indexOf("currentColor"),y=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(f,{...p,width:h+"",height:m+""});return d.style={...l,"--svg":Dt(y),width:Wt(p.width),height:Wt(p.height),...Ft,...g?$t:Bt,...c},r.createElement("span",d)};var Gt;if(De(!0),Gt=tt,We[""]=Gt,typeof document<"u"&&typeof window<"u"){Et();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!ze(e))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const r=t[e];if("object"!=typeof r||!r||void 0===r.resources)continue;Ze(e,r)||console.error(n)}catch{console.error(n)}}}}class Yt extends r.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let r;if("string"!=typeof n||null===(r=be(n,!1,!0)))return this._abortLoading(),void this._setData(null);const o=function(e){const t="string"==typeof e?be(e,!0,Pe):e;if(t){const e=Te(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(r);if(o){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==r.prefix&&e.push("iconify--"+r.prefix),""!==r.provider&&e.push("iconify--"+r.provider),this._setData({data:o,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),null!==o&&(this._loading={name:n,abort:Mt([r],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,t=this.state.icon;if(null===t)return e.children?e.children:r.createElement("span",{});let n=e;return t.classes&&(n={...e,className:("string"==typeof e.className?e.className+" ":"")+t.classes.join(" ")}),Kt({...ke,...t.data},n,e._inline,e._ref)}}const Jt=r.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!1};return r.createElement(Yt,n)}));r.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!0};return r.createElement(Yt,n)}));const Xt="_icon_1czju_5",Zt=({width:e=20,height:t=20,className:n="",icon:r,onClick:o,color:i,vFlip:a=!1})=>ge.jsx(Jt,{onClick:o,icon:r,width:e,height:t,className:`${Xt} ${n}`,color:i,vFlip:a}),Qt=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:r,color:o}),en=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:bell",width:e,height:t,className:n,onClick:r,color:o}),tn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:r,color:o}),nn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:r,color:o}),rn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:chevron-left",width:e,height:t,className:n,onClick:r,color:o}),on=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:r,color:o}),an=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:r,color:o}),sn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"fluent:document-bullet-list-24-filled",width:e,height:t,className:n,onClick:r,color:o}),ln=({width:e=20,height:t=20,className:n="",onClick:r,color:o=""})=>ge.jsx(Zt,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:r,color:o}),cn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:r,color:o}),dn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:r,color:o}),un=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:r,color:o}),pn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:r,color:o});function fn(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4zM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20m0-8"})})}function hn(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M4 21q-.825 0-1.412-.587T2 19V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v14q0 .825-.587 1.413T20 21zm0-2h16V5H4zm5-2q.425 0 .713-.288T10 16q0-.425-.288-.712T9 15H6q-.425 0-.712.288T5 16q0 .425.288.713T6 17zm5.55-4.825l-.725-.725q-.3-.3-.7-.287t-.7.312q-.275.3-.288.7t.288.7L13.85 14.3q.3.3.7.3t.7-.3l3.55-3.55q.3-.3.3-.7t-.3-.7q-.3-.3-.712-.3t-.713.3zM9 13q.425 0 .713-.288T10 12q0-.425-.288-.712T9 11H6q-.425 0-.712.288T5 12q0 .425.288.713T6 13zm0-4q.425 0 .713-.288T10 8q0-.425-.288-.712T9 7H6q-.425 0-.712.288T5 8q0 .425.288.713T6 9zM4 19V5z"})})}function mn(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M4 21q-.825 0-1.412-.587T2 19V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v14q0 .825-.587 1.413T20 21zm5-4q.425 0 .713-.288T10 16q0-.425-.288-.712T9 15H6q-.425 0-.712.288T5 16q0 .425.288.713T6 17zm5.55-4.825l-.725-.725q-.3-.3-.7-.287t-.7.312q-.275.3-.288.7t.288.7L13.85 14.3q.3.3.7.3t.7-.3l3.55-3.55q.3-.3.3-.7t-.3-.7q-.3-.3-.712-.3t-.713.3zM9 13q.425 0 .713-.288T10 12q0-.425-.288-.712T9 11H6q-.425 0-.712.288T5 12q0 .425.288.713T6 13zm0-4q.425 0 .713-.288T10 8q0-.425-.288-.712T9 7H6q-.425 0-.712.288T5 8q0 .425.288.713T6 9z"})})}const gn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:r,color:o}),yn=e=>ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M6 4V1.5h2V4h8V1.5h2V4h4v18H2V4zM4 6v3h16V6zm16 5H4v9h16z"})}),vn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:r,color:o}),bn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:r,color:o}),xn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:r,color:o}),wn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:r,color:o}),Cn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:r,color:o}),kn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:r,color:o}),jn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:r,color:o}),Nn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:report-box-outline",width:e,height:t,className:n,onClick:r,color:o}),_n=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:settings",width:e,height:t,className:n,onClick:r,color:o}),En=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:r,color:o}),In=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:r,color:o,vFlip:!0}),On=({color:e="black",size:t="20",className:n=""})=>ge.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,viewBox:`0 0 ${t} ${t}`,fill:"none",children:[ge.jsx("path",{d:"M14.9875 14.1667C16.1366 14.1667 17.0691 13.2334 17.0691 12.0834C17.0691 10.9334 16.1366 10.0001 14.9875 10.0001C13.8385 10.0001 12.9059 10.9334 12.9059 12.0834C12.9059 13.2334 13.8385 14.1667 14.9875 14.1667ZM14.9875 15.2084C13.597 15.2084 10.8243 15.9084 10.8243 17.2917V17.8167C10.8243 18.1001 11.0575 18.3417 11.3489 18.3417H18.6345C18.9176 18.3417 19.159 18.1084 19.159 17.8167V17.2917C19.159 15.9084 16.3863 15.2084 14.9958 15.2084H14.9875Z",fill:e}),ge.jsx("path",{d:"M4.99584 5.83342C6.14488 5.83342 7.07744 4.90008 7.07744 3.75008C7.07744 2.60008 6.14488 1.66675 4.99584 1.66675C3.8468 1.66675 2.91424 2.60008 2.91424 3.75008C2.91424 4.90008 3.8468 5.83342 4.99584 5.83342ZM4.99584 6.87508C3.60533 6.87508 0.832642 7.57508 0.832642 8.95842V9.48342C0.832642 9.76675 1.06578 10.0084 1.3572 10.0084H8.6428C8.9259 10.0084 9.16736 9.77508 9.16736 9.48342V8.95842C9.16736 7.57508 6.39467 6.87508 5.00417 6.87508H4.99584Z",fill:e}),ge.jsx("path",{d:"M9.15156 16.4036V16.2574H6.61874C6.14757 16.2574 5.75868 15.8773 5.75868 15.4167V12.8729L7.04503 14.101L7.77047 13.3773L5.10802 10.8334L2.49792 13.4431L3.23832 14.1521L4.4798 12.9094H4.49476V15.4167C4.49476 16.5644 5.45204 17.5001 6.62622 17.5001H9.15904V16.4036H9.15156Z",fill:e}),ge.jsx("path",{d:"M9.99915 3.59657V3.74277H13.3646C13.8358 3.74277 14.2247 4.12289 14.2247 4.58341V7.12727L12.9383 5.8992L12.2129 6.62289L14.8753 9.16675L17.4854 6.5571L16.745 5.84803L15.5035 7.09072H15.4886V4.58341C15.4886 3.43575 14.5313 2.50008 13.3571 2.50008H9.99168V3.59657H9.99915Z",fill:e})]}),Sn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:round-person",width:e,height:t,className:n,onClick:r,color:o}),Mn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:r,color:o}),Tn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:r,color:o}),Rn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:r,color:o}),Pn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:r,color:o}),Dn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:r,color:o}),zn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:r,color:o}),An=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:r,color:o}),Vn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:r,color:o}),Ln=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:r,color:o}),Fn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:r,color:o}),$n=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:r,color:o}),Bn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:r,color:o}),qn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-check",width:e,height:t,className:n,onClick:r,color:o}),Hn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:r,color:o}),Un=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:r,color:o}),Wn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:r,color:o}),Kn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:r,color:o}),Gn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:r,color:o}),Yn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:r,color:o}),Jn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:r,color:o}),Xn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:r,color:o}),Zn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:r,color:o}),Qn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:r,color:o}),er=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-dvr",width:e,height:t,className:n,onClick:r,color:o}),tr=({width:e=20,height:t=20,className:n="",onClick:r,color:o="var(--colors-error-500)"})=>ge.jsx(Zt,{icon:"mdi:error-outline",width:e,height:t,className:n,onClick:r,color:o}),nr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:replay",width:e,height:t,className:n,onClick:r,color:o}),rr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:calendar-blank-outline",width:e,height:t,className:n,onClick:r,color:o}),or=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:outline-link",width:e,height:t,className:n,onClick:r,color:o}),ir=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:fact-check-outline",width:e,height:t,className:n,onClick:r,color:o}),ar=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:unknown-document-outline-rounded",width:e,height:t,className:n,onClick:r,color:o}),sr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:list-status",width:e,height:t,className:n,onClick:r,color:o}),lr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:text-box-check-outline",width:e,height:t,className:n,onClick:r,color:o}),cr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ri:list-settings-line",width:e,height:t,className:n,onClick:r,color:o}),dr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"pajamas:earth",width:e,height:t,className:n,onClick:r,color:o}),ur=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"streamline:interface-setting-menu-1-button-parallel-horizontal-lines-menu-navigation-three-hamburger",width:e,height:t,className:n,onClick:r,color:o}),pr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:pencil-outline",width:e,height:t,className:n,onClick:r,color:o});function fr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M12 5.99L19.53 19H4.47zM12 2L1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"})})}const hr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:outline-calendar-month",width:e,height:t,className:n,onClick:r,color:o});function mr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m5.86 10.31C16.23 21.22 14.28 22.45 12 23c-2.56-.61-4.7-2.07-6.42-4.37C3.86 16.34 3 13.8 3 11V5l9-4l9 4v6c0 2.39-.64 4.61-1.92 6.67l-2.91-2.91c.52-.79.83-1.76.83-2.76a5 5 0 0 0-5-5a5 5 0 0 0-5 5a5 5 0 0 0 5 5c1 0 1.97-.31 2.76-.83z"})})}const gr=e=>ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M6 21v-2h12v2z"})}),yr=e=>ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M6 18v-2h12v2zm6-12.4l6 6l-1.4 1.4L12 8.4L7.4 13L6 11.6z"})});function vr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M18 8H6V6h12zm0 3H6V9h12zm0 3H6v-2h12zm4-10a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14l4 4z"})})}function br(e){return ge.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:[ge.jsx("path",{fill:"currentColor",d:"M14 12h4v1.5h-4zm0 3h4v1.5h-4z"}),ge.jsx("path",{fill:"currentColor",d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z"}),ge.jsx("circle",{cx:9,cy:13.5,r:1.5,fill:"currentColor"}),ge.jsx("path",{fill:"currentColor",d:"M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39"})]})}function xr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h8.925l-2 2H5v14h14v-6.95l2-2V19q0 .825-.587 1.413T19 21zm4-6v-4.25l9.175-9.175q.3-.3.675-.45t.75-.15q.4 0 .763.15t.662.45L22.425 3q.275.3.425.663T23 4.4q0 .375-.137.738t-.438.662L13.25 15zM21.025 4.4l-1.4-1.4zM11 13h1.4l5.8-5.8l-.7-.7l-.725-.7L11 11.575zm6.5-6.5l-.725-.7zl.7.7z"})})}function wr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M18 12.998h-5v5a1 1 0 0 1-2 0v-5H6a1 1 0 0 1 0-2h5v-5a1 1 0 0 1 2 0v5h5a1 1 0 0 1 0 2"})})}function Cr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M11 17h2v-4h4v-2h-4V7h-2v4H7v2h4zm1 5q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"})})}function kr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M18.85 21.975q-.2 0-.375-.062t-.325-.213l-5.1-5.1q-.15-.15-.213-.325t-.062-.375t.063-.375t.212-.325l2.125-2.125q.15-.15.325-.212t.375-.063t.375.063t.325.212l5.1 5.1q.15.15.213.325t.062.375t-.062.375t-.213.325L19.55 21.7q-.15.15-.325.213t-.375.062m0-2.375l.725-.725L15.9 15.2l-.725.725zM5.125 22q-.2 0-.387-.075T4.4 21.7l-2.1-2.1q-.15-.15-.225-.338T2 18.876t.075-.375t.225-.325l5.3-5.3h2.125l.85-.85L6.45 7.9H5.025L2 4.875L4.825 2.05L7.85 5.075V6.5l4.125 4.125l2.9-2.9L13.8 6.65l1.4-1.4h-2.825l-.7-.7L15.225 1l.7.7v2.825l1.4-1.4l3.55 3.55q.425.425.65.963t.225 1.137t-.225 1.15t-.65.975L18.75 8.775l-1.4 1.4l-1.05-1.05l-5.175 5.175v2.1l-5.3 5.3q-.15.15-.325.225T5.125 22m0-2.4l4.25-4.25v-.725H8.65l-4.25 4.25zm0 0l-.725-.725l.375.35zm13.725 0l.725-.725z"})})}function jr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M18.85 21.975q-.2 0-.375-.062t-.325-.213l-5.1-5.1q-.15-.15-.213-.325t-.062-.375t.063-.375t.212-.325l2.125-2.125q.15-.15.325-.212t.375-.063t.375.063t.325.212l5.1 5.1q.15.15.213.325t.062.375t-.062.375t-.213.325L19.55 21.7q-.15.15-.325.213t-.375.062M5.125 22q-.2 0-.387-.075T4.4 21.7l-2.1-2.1q-.15-.15-.225-.338T2 18.876t.075-.375t.225-.325l5.3-5.3h2.125l.85-.85L6.45 7.9H5.025L2 4.875L4.825 2.05L7.85 5.075V6.5l4.125 4.125l2.9-2.9L13.8 6.65l1.4-1.4h-2.825l-.7-.7L15.225 1l.7.7v2.825l1.4-1.4l3.55 3.55q.425.425.65.963t.225 1.137t-.225 1.15t-.65.975L18.75 8.775l-1.4 1.4l-1.05-1.05l-5.175 5.175v2.1l-5.3 5.3q-.15.15-.325.225T5.125 22"})})}function Nr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 9V4h2V2H6v2h2v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1l1-1v-7H19v-2c-1.66 0-3-1.34-3-3"})})}function _r(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M20 6c.58 0 1.05.2 1.42.59c.38.41.58.86.58 1.41v11c0 .55-.2 1-.58 1.41c-.37.39-.84.59-1.42.59H4c-.58 0-1.05-.2-1.42-.59C2.2 20 2 19.55 2 19V8c0-.55.2-1 .58-1.41C2.95 6.2 3.42 6 4 6h4V4c0-.58.2-1.05.58-1.42C8.95 2.2 9.42 2 10 2h4c.58 0 1.05.2 1.42.58c.38.37.58.84.58 1.42v2zM4 8v11h16V8zm10-2V4h-4v2z"})})}const Er=({dataTest:e,readOnly:t,...n})=>ge.jsx(m,{...n,"data-test":e,deleteIcon:ge.jsx(Bn,{height:18,width:18}),sx:{border:"1px solid",backgroundColor:"white",borderColor:"var(--colors-delta-200)",color:"var(--colors-delta-800)",...t?{pointerEvents:"none","&:hover":{borderColor:"var(--colors-delta-200)",backgroundColor:"white"}}:{"&:hover":{borderColor:"var(--colors-gama-200)",backgroundColor:"var(--colors-gama-50)"},"&:focus":{outline:"none",borderColor:"var(--colors-gama-400)",backgroundColor:"var(--colors-gama-50)",boxShadow:"0 0 0 1px inset var(--colors-gama-400)"},"&:active":{borderColor:"var(--colors-gama-400)",backgroundColor:"var(--colors-gama-50)",boxShadow:"0 0 0 2px inset var(--colors-gama-400)"},"& .MuiChip-deleteIcon":{border:"1px solid",borderColor:"var(--colors-delta-100)",color:"var(--colors-delta-700)",backgroundColor:"var(--colors-delta-50)",borderRadius:"50%","&:hover":{borderColor:"var(--colors-delta-100)",backgroundColor:"var(--colors-delta-50)",color:"var(--colors-delta-700)"}}},...n.sx}}),Ir=({dataTest:e,...t})=>ge.jsx(g,{...t,"data-test":e,sx:{...t.sx,"&.MuiCheckbox-root":{color:"var(--colors-delta-500) !important"},"&.MuiCheckbox-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.MuiCheckbox-indeterminate":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.Mui-disabled":{color:"var(--colors-delta-200) !important"},"&.MuiCheckbox-root .PrivateSwitchBase-input":{height:"100% !important",width:"100% !important"}}}),Or=({dataTest:e,...t})=>ge.jsx(y,{...t,"data-test":e,sx:{"&":{color:"var(--colors-delta-500)"},"& input":{height:"100% !important",width:"100% !important"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),Sr=({type:e="checkbox",checked:t,...n})=>{const r="checkbox"===e,o=r?Ir:Or,i=!n.readOnly&&!r&&t,a={borderColor:"var(--colors-gama-300)",backgroundColor:"var(--colors-gama-25)",boxShadow:"0 0 0 1px inset var(--colors-gama-300)"};return ge.jsx(Er,{avatar:ge.jsx(o,{dataTest:n.dataTest,disableRipple:!0,checked:t,size:"small",sx:{pointerEvents:"none"}}),clickable:!0,...n,sx:{...i&&{outline:"none",borderColor:"var(--colors-gama-400)",boxShadow:"0 0 0 1px inset var(--colors-gama-400)",backgroundColor:"var(--colors-gama-50)","&:hover":a},...n.readOnly&&{"& .MuiChip-avatar":{"& .MuiSvgIcon-root":{color:"var(--colors-delta-300)"},"& .MuiCheckbox-root, & .MuiRadio-root":{color:"var(--colors-delta-300)"},"& .Mui-checked":{color:"var(--colors-delta-300)"}}},...t&&{"& .MuiChip-avatar":{"& .MuiSvgIcon-root":{color:"var(--colors-gama-500)"}}},"&:focus:hover":a,...n.sx}})};function Mr(){return Mr=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},Mr.apply(this,arguments)}function Tr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rr.apply(null,arguments)}function Pr(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Dr(e,t){return(Dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}const zr=!1;var Ar="production"!==process.env.NODE_ENV?J.oneOfType([J.number,J.shape({enter:J.number,exit:J.number,appear:J.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&J.oneOfType([J.string,J.shape({enter:J.string,exit:J.string,active:J.string}),J.shape({enter:J.string,enterDone:J.string,enterActive:J.string,exit:J.string,exitDone:J.string,exitActive:J.string})]);const Vr=r.createContext(null);var Lr="unmounted",Fr="exited",$r="entering",Br="entered",qr="exiting",Hr=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Fr,r.appearStatus=$r):o=Br:o=t.unmountOnExit||t.mountOnEnter?Lr:Fr,r.state={status:o},r.nextCallback=null,r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dr(e,t)}(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Lr?{status:Fr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==$r&&n!==Br&&(t=$r):(n===$r||n===Br)&&(t=qr)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===$r){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Q.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fr&&this.setState({status:Lr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Q.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||zr?this.safeSetState({status:Br},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:$r},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Br},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Q.findDOMNode(this);t&&!zr?(this.props.onExit(r),this.safeSetState({status:qr},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Fr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Fr},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Q.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Lr)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=Pr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(Vr.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function Ur(){}Hr.contextType=Vr,Hr.propTypes="production"!==process.env.NODE_ENV?{nodeRef:J.shape({current:typeof Element>"u"?J.any:function(e,t,n,r,o,i){var a=e[t];return J.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:J.oneOfType([J.func.isRequired,J.element.isRequired]).isRequired,in:J.bool,mountOnEnter:J.bool,unmountOnExit:J.bool,appear:J.bool,enter:J.bool,exit:J.bool,timeout:function(e){var t=Ar;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:J.func,onEnter:J.func,onEntering:J.func,onEntered:J.func,onExit:J.func,onExiting:J.func,onExited:J.func}:{},Hr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ur,onEntering:Ur,onEntered:Ur,onExit:Ur,onExiting:Ur,onExited:Ur},Hr.UNMOUNTED=Lr,Hr.EXITED=Fr,Hr.ENTERING=$r,Hr.ENTERED=Br,Hr.EXITING=qr;const Wr=Hr;function Kr(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function Gr(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Yr(e){if(!Gr(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Yr(e[n])})),t}function Jr(e,t,n={clone:!0}){const r=n.clone?Rr({},e):e;return Gr(e)&&Gr(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Gr(t[o])&&o in e&&Gr(e[o])?r[o]=Jr(e[o],t[o],n):n.clone?r[o]=Gr(t[o])?Yr(t[o]):t[o]:r[o]=t[o])})),r}function Xr(e,t,n,r,o){const i=e[t],a=o||t;if(null==i||typeof window>"u")return null;let s;const l=i.type;return"function"==typeof l&&!function(e){const{prototype:t={}}=e;return!!t.isReactComponent}(l)&&(s="Did you accidentally use a plain function component for an element instead?"),void 0!==s?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Zr=Kr(J.element,Xr);Zr.isRequired=Kr(J.element.isRequired,Xr);const Qr=Zr;function eo(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function to(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":eo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const no=e=>e,ro=(()=>{let e=no;return{configure(t){e=t},generate:t=>e(t),reset(){e=no}}})(),oo=ro,io={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function ao(e,t,n="Mui"){const r=io[t];return r?`${n}-${r}`:`${oo.generate(e)}-${t}`}const so=["values","unit","step"],lo=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Rr({},e,{[t.key]:t.val})),{})};const co={borderRadius:4},uo="production"!==process.env.NODE_ENV?J.oneOfType([J.number,J.string,J.object,J.array]):{};function po(e,t){return t?Jr(e,t,{clone:!1}):e}const fo={xs:0,sm:600,md:900,lg:1200,xl:1536},ho={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fo[e]}px)`};function mo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||ho;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||ho;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||fo).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function go(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function yo(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:go(e,n)||r,t&&(o=t(o,r,e)),o}function vo(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=go(e.theme,r)||{};return mo(e,i,(e=>{let r=yo(a,o,e);return e===r&&"string"==typeof e&&(r=yo(a,o,`${t}${"default"===e?"":to(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:uo}:{},i.filterProps=[t],i}const bo={m:"margin",p:"padding"},xo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Co=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!wo[e])return[e];e=wo[e]}const[t,n]=e.split(""),r=bo[t],o=xo[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),ko=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],No=[...ko,...jo];function _o(e,t,n,r){var o;const i=null!=(o=go(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Eo(e){return _o(e,"spacing",8,"spacing")}function Io(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Oo(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Io(t,n),e)),{})}(Co(n),r);return mo(e,e[n],o)}function So(e,t){const n=Eo(e.theme);return Object.keys(e).map((r=>Oo(e,t,r,n))).reduce(po,{})}function Mo(e){return So(e,ko)}function To(e){return So(e,jo)}function Ro(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?po(n,t[r](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Po(e){return"number"!=typeof e?e:`${e}px solid`}Mo.propTypes="production"!==process.env.NODE_ENV?ko.reduce(((e,t)=>(e[t]=uo,e)),{}):{},Mo.filterProps=ko,To.propTypes="production"!==process.env.NODE_ENV?jo.reduce(((e,t)=>(e[t]=uo,e)),{}):{},To.filterProps=jo,"production"!==process.env.NODE_ENV&&No.reduce(((e,t)=>(e[t]=uo,e)),{});const Do=vo({prop:"border",themeKey:"borders",transform:Po}),zo=vo({prop:"borderTop",themeKey:"borders",transform:Po}),Ao=vo({prop:"borderRight",themeKey:"borders",transform:Po}),Vo=vo({prop:"borderBottom",themeKey:"borders",transform:Po}),Lo=vo({prop:"borderLeft",themeKey:"borders",transform:Po}),Fo=vo({prop:"borderColor",themeKey:"palette"}),$o=vo({prop:"borderTopColor",themeKey:"palette"}),Bo=vo({prop:"borderRightColor",themeKey:"palette"}),qo=vo({prop:"borderBottomColor",themeKey:"palette"}),Ho=vo({prop:"borderLeftColor",themeKey:"palette"}),Uo=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=_o(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Io(t,e)});return mo(e,e.borderRadius,n)}return null};Uo.propTypes="production"!==process.env.NODE_ENV?{borderRadius:uo}:{},Uo.filterProps=["borderRadius"],Ro(Do,zo,Ao,Vo,Lo,Fo,$o,Bo,qo,Ho,Uo);const Wo=e=>{if(void 0!==e.gap&&null!==e.gap){const t=_o(e.theme,"spacing",8,"gap"),n=e=>({gap:Io(t,e)});return mo(e,e.gap,n)}return null};Wo.propTypes="production"!==process.env.NODE_ENV?{gap:uo}:{},Wo.filterProps=["gap"];const Ko=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=_o(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Io(t,e)});return mo(e,e.columnGap,n)}return null};Ko.propTypes="production"!==process.env.NODE_ENV?{columnGap:uo}:{},Ko.filterProps=["columnGap"];const Go=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=_o(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Io(t,e)});return mo(e,e.rowGap,n)}return null};Go.propTypes="production"!==process.env.NODE_ENV?{rowGap:uo}:{},Go.filterProps=["rowGap"];function Yo(e,t){return"grey"===t?t:e}Ro(Wo,Ko,Go,vo({prop:"gridColumn"}),vo({prop:"gridRow"}),vo({prop:"gridAutoFlow"}),vo({prop:"gridAutoColumns"}),vo({prop:"gridAutoRows"}),vo({prop:"gridTemplateColumns"}),vo({prop:"gridTemplateRows"}),vo({prop:"gridTemplateAreas"}),vo({prop:"gridArea"}));function Jo(e){return e<=1&&0!==e?100*e+"%":e}Ro(vo({prop:"color",themeKey:"palette",transform:Yo}),vo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yo}),vo({prop:"backgroundColor",themeKey:"palette",transform:Yo}));const Xo=vo({prop:"width",transform:Jo}),Zo=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||fo[t]||Jo(t)}};return mo(e,e.maxWidth,t)}return null};Zo.filterProps=["maxWidth"];const Qo=vo({prop:"minWidth",transform:Jo}),ei=vo({prop:"height",transform:Jo}),ti=vo({prop:"maxHeight",transform:Jo}),ni=vo({prop:"minHeight",transform:Jo});vo({prop:"size",cssProperty:"width",transform:Jo}),vo({prop:"size",cssProperty:"height",transform:Jo});Ro(Xo,Zo,Qo,ei,ti,ni,vo({prop:"boxSizing"}));const ri={border:{themeKey:"borders",transform:Po},borderTop:{themeKey:"borders",transform:Po},borderRight:{themeKey:"borders",transform:Po},borderBottom:{themeKey:"borders",transform:Po},borderLeft:{themeKey:"borders",transform:Po},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Uo},color:{themeKey:"palette",transform:Yo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yo},backgroundColor:{themeKey:"palette",transform:Yo},p:{style:To},pt:{style:To},pr:{style:To},pb:{style:To},pl:{style:To},px:{style:To},py:{style:To},padding:{style:To},paddingTop:{style:To},paddingRight:{style:To},paddingBottom:{style:To},paddingLeft:{style:To},paddingX:{style:To},paddingY:{style:To},paddingInline:{style:To},paddingInlineStart:{style:To},paddingInlineEnd:{style:To},paddingBlock:{style:To},paddingBlockStart:{style:To},paddingBlockEnd:{style:To},m:{style:Mo},mt:{style:Mo},mr:{style:Mo},mb:{style:Mo},ml:{style:Mo},mx:{style:Mo},my:{style:Mo},margin:{style:Mo},marginTop:{style:Mo},marginRight:{style:Mo},marginBottom:{style:Mo},marginLeft:{style:Mo},marginX:{style:Mo},marginY:{style:Mo},marginInline:{style:Mo},marginInlineStart:{style:Mo},marginInlineEnd:{style:Mo},marginBlock:{style:Mo},marginBlockStart:{style:Mo},marginBlockEnd:{style:Mo},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Wo},rowGap:{style:Go},columnGap:{style:Ko},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jo},maxWidth:{style:Zo},minWidth:{transform:Jo},height:{transform:Jo},maxHeight:{transform:Jo},minHeight:{transform:Jo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},oi=ri;const ii=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const d=go(n,s)||{};return c?c(o):mo(o,t,(t=>{let n=yo(d,l,t);return t===n&&"string"==typeof t&&(n=yo(d,l,`${e}${"default"===t?"":to(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:oi;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=function(e,t){return"function"==typeof e?e(t):e}(r[n],i);if(null!=o)if("object"==typeof o)if(a[n])l=po(l,e(n,o,i,a));else{const e=mo({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?l=po(l,e):l[n]=t({sx:o,theme:i})}else l=po(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();ii.filterProps=["sx"];const ai=ii,si=["breakpoints","palette","spacing","shape"];function li(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Pr(e,si),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Pr(e,so),i=lo(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Rr({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),l=function(e=8){if(e.mui)return e;const t=Eo({spacing:e}),n=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" "));return n.mui=!0,n}(o);let c=Jr({breakpoints:s,direction:"ltr",components:{},palette:Rr({mode:"light"},r),spacing:l,shape:Rr({},co,i)},a);return c=t.reduce(((e,t)=>Jr(e,t)),c),c.unstable_sxConfig=Rr({},oi,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ai({sx:e,theme:this})},c}function ci(e=null){const t=n.useContext(X);return!t||function(e){return 0===Object.keys(e).length}(t)?e:t}const di=li();function ui(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ui(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function pi(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ui(e))&&(r&&(r+=" "),r+=t);return r}function fi(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function hi(e){if(e.type)return e;if("#"===e.charAt(0))return hi(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:eo(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:eo(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function mi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function gi(e){let t="hsl"===(e=hi(e)).type||"hsla"===e.type?hi(function(e){e=hi(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),mi({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function yi(e,t){const n=gi(e),r=gi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function vi(e,t){return Mr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const bi={black:"#000",white:"#fff"},xi={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},wi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ci={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ki={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ji={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ni={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},_i={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ei=["mode","contrastThreshold","tonalOffset"],Ii={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:bi.white,default:bi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Oi={text:{primary:bi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:bi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Si(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=hi(e),t=fi(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mi(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=hi(e),t=fi(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return mi(e)}(e.main,i)))}function Mi(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Tr(e,Ei),i=e.primary||function(e="light"){return"dark"===e?{main:ji[200],light:ji[50],dark:ji[400]}:{main:ji[700],light:ji[400],dark:ji[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:wi[200],light:wi[50],dark:wi[400]}:{main:wi[500],light:wi[300],dark:wi[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ci[500],light:Ci[300],dark:Ci[700]}:{main:Ci[700],light:Ci[400],dark:Ci[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Ni[400],light:Ni[300],dark:Ni[700]}:{main:Ni[700],light:Ni[500],dark:Ni[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:_i[400],light:_i[300],dark:_i[700]}:{main:_i[800],light:_i[500],dark:_i[900]}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:ki[400],light:ki[300],dark:ki[700]}:{main:"#ed6c02",light:ki[500],dark:ki[900]}}(t);function u(e){const t=yi(e,Oi.text.primary)>=n?Oi.text.primary:Ii.text.primary;if("production"!==process.env.NODE_ENV){const n=yi(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Mr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:eo(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:eo(12,t?` (${t})`:"",JSON.stringify(e.main)));return Si(e,"light",o,r),Si(e,"dark",i,r),e.contrastText||(e.contrastText=u(e.main)),e},f={dark:Oi,light:Ii};return"production"!==process.env.NODE_ENV&&(f[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Jr(Mr({common:Mr({},bi),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:xi,contrastThreshold:n,getContrastText:u,augmentColor:p,tonalOffset:r},f[t]),o)}const Ti=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Ri(e){return Math.round(1e5*e)/1e5}const Pi={textTransform:"uppercase"},Di='"Roboto", "Helvetica", "Arial", sans-serif';function zi(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Di,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,p=Tr(n,Ti);"production"!==process.env.NODE_ENV&&("number"!=typeof o&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof c&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=o/14,h=u||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>Mr({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Di?{letterSpacing:`${Ri(o/t)}em`}:{},i,d),g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Pi),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Pi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jr(Mr({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Ai(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Vi=["none",Ai(0,2,1,-1,0,1,1,0,0,1,3,0),Ai(0,3,1,-2,0,2,2,0,0,1,5,0),Ai(0,3,3,-2,0,3,4,0,0,1,8,0),Ai(0,2,4,-1,0,4,5,0,0,1,10,0),Ai(0,3,5,-1,0,5,8,0,0,1,14,0),Ai(0,3,5,-1,0,6,10,0,0,1,18,0),Ai(0,4,5,-2,0,7,10,1,0,2,16,1),Ai(0,5,5,-3,0,8,10,1,0,3,14,2),Ai(0,5,6,-3,0,9,12,1,0,3,16,2),Ai(0,6,6,-3,0,10,14,1,0,4,18,3),Ai(0,6,7,-4,0,11,15,1,0,4,20,3),Ai(0,7,8,-4,0,12,17,2,0,5,22,4),Ai(0,7,8,-4,0,13,19,2,0,5,24,4),Ai(0,7,9,-4,0,14,21,2,0,5,26,4),Ai(0,8,9,-5,0,15,22,2,0,6,28,5),Ai(0,8,10,-5,0,16,24,2,0,6,30,5),Ai(0,8,11,-5,0,17,26,2,0,6,32,5),Ai(0,9,11,-5,0,18,28,2,0,7,34,6),Ai(0,9,12,-6,0,19,29,2,0,7,36,6),Ai(0,10,13,-6,0,20,31,3,0,8,38,7),Ai(0,10,13,-6,0,21,33,3,0,8,40,7),Ai(0,10,14,-6,0,22,35,3,0,8,42,7),Ai(0,11,14,-7,0,23,36,3,0,9,44,8),Ai(0,11,15,-7,0,24,38,3,0,9,46,8)],Li=["duration","easing","delay"],Fi={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},$i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bi(e){return`${Math.round(e)}ms`}function qi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Hi(e){const t=Mr({},Fi,e.easing),n=Mr({},$i,e.duration);return Mr({getAutoHeightDuration:qi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r,s=Tr(r,Li);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error('MUI: Argument "props" must be a string or Array.'),!n(o)&&!t(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),!n(a)&&!t(a)&&console.error('MUI: Argument "delay" must be a number or a string.'),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Bi(o)} ${i} ${"string"==typeof a?a:Bi(a)}`)).join(",")}},e,{easing:t,duration:n})}const Ui={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Wi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Ki=function(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Tr(e,Wi);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":eo(18));const s=Mi(r),l=li(e);let c=Jr(l,{mixins:vi(l.breakpoints,n),palette:s,shadows:Vi.slice(),typography:zi(s,i),transitions:Hi(o),zIndex:Mr({},Ui)});if(c=Jr(c,a),c=t.reduce(((e,t)=>Jr(e,t)),c),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let r;for(r in t){const o=t[r];if(-1!==e.indexOf(r)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=ao("",r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[r]={}}}};Object.keys(c.components).forEach((e=>{const n=c.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)}))}return c.unstable_sxConfig=Mr({},oi,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ai({sx:e,theme:this})},c}(),Gi=Ki;function Yi(){const e=function(e=di){return ci(e)}(Gi);return"production"!==process.env.NODE_ENV&&n.useDebugValue(e),e.$$material||e}function Ji(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const Xi=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Zi={entering:{opacity:1},entered:{opacity:1}},Qi=n.forwardRef((function(e,t){const r=Yi(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:d,onEntered:u,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:y=o,TransitionComponent:v=Wr}=e,b=Tr(e,Xi),x=n.useRef(null),w=function(...e){return n.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}(x,s.ref,t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},k=C(p),j=C(((e,t)=>{(e=>{e.scrollTop})(e);const n=Ji({style:g,timeout:y,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),d&&d(e,t)})),N=C(u),_=C(m),E=C((e=>{const t=Ji({style:g,timeout:y,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),I=C(h);return ge.jsx(v,Mr({appear:a,in:c,nodeRef:x,onEnter:j,onEntered:N,onEntering:k,onExit:E,onExited:I,onExiting:_,addEndListener:e=>{i&&i(x.current,e)},timeout:y},b,{children:(e,t)=>n.cloneElement(s,Mr({style:Mr({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},Zi[e],g,s.props.style),ref:w},t))}))}));"production"!==process.env.NODE_ENV&&(Qi.propTypes={addEndListener:J.func,appear:J.bool,children:Qr.isRequired,easing:J.oneOfType([J.shape({enter:J.string,exit:J.string}),J.string]),in:J.bool,onEnter:J.func,onEntered:J.func,onEntering:J.func,onExit:J.func,onExited:J.func,onExiting:J.func,style:J.object,timeout:J.oneOfType([J.number,J.shape({appear:J.number,enter:J.number,exit:J.number})])});const ea=Qi,ta=e=>{const{componentsProps:t,...n}=e,r=null==t?void 0:t.tooltip;return ge.jsx(v,{TransitionComponent:ea,TransitionProps:{timeout:300},placement:"top",componentsProps:{...t,tooltip:{...r??{},style:{...(null==r?void 0:r.style)||{}},sx:{borderRadius:"3px","& .MuiTooltip-arrow":{color:"#363E4A"},color:"white",boxShadow:"0px 1px 4px 0px rgba(0, 0, 0, 0.25)",display:"flex",padding:"4px 8px",alignItems:"center",fontSize:"12px",lineHeight:"16px",letterSpacing:"0.24px",bgcolor:"#363E4A",wordBreak:"break-word",...null==r?void 0:r.sx}}},...n})},na=e=>ge.jsx(b,{...e}),ra="_styled-label-md_jbn3o_1",oa="_styled-label-base_jbn3o_10",ia="_styled-label-lg_jbn3o_19",aa="_styled-label-xl_jbn3o_27",sa=({title:e,onClick:t,className:n,dataTest:r,size:o="base"})=>{const i=(({size:e})=>{switch(e){case"md":return ra;case"lg":return ia;case"xl":return aa;default:return oa}})({size:o});return ge.jsx("div",{className:pi(i,n),onClick:t,"data-test":r,children:e})},la="_asma-core-ui-button_1fy4m_1",ca={contained:"_contained_1fy4m_27",outlined:"_outlined_1fy4m_139",text:"_text_1fy4m_251",textGray:"_textGray_1fy4m_363",textWhite:"_textWhite_1fy4m_419",large:"_large_1fy4m_78",small:"_small_1fy4m_73",medium:"_medium_1fy4m_68",error:"_error_1fy4m_83",common:"_common_1fy4m_27"},da=({variant:e="contained",className:t="",size:n="medium",children:r,refLink:o,startIcon:i,endIcon:a,dataTest:s,error:l,...c})=>{const d="large"===n||"medium"===n,u=l?"error":"common";return ge.jsxs("button",{...c,className:pi(la,ca[e],ca[u],ca[n],t),ref:o,"data-test":s,children:[i,r&&ge.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",justifyContent:"center",gap:d?"8px":"4px",paddingLeft:d?"8px":"4px",paddingRight:d?"8px":"4px"},children:r}),a]})},ua="_styled-dialog-root_1st3i_1",pa="_styled-top-header_1st3i_6",fa="_styled-dialog-close_1st3i_13",ha="_styled-dialog-info_1st3i_20",ma="_styled-dialog-label_1st3i_27",ga="_styled-dialog-title_1st3i_37";function ya(){const e=function(){const[e,t]=a(window.innerWidth),n=()=>{t(window.innerWidth)};return s((()=>(n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n))),[]),e}();return(e=>e?e<=768:window.innerWidth<768)(e)}const va=({onCloseText:e,children:t,dataTest:n,showCloseIcon:r=!0,dialogLabel:o,dialogTitle:i,dialogHeaderNode:a,...s})=>{const l=ya();return ge.jsxs(x,{"data-test":n,style:{zIndex:999,...s.style},fullScreen:!!l||s.fullScreen,...s,children:[ge.jsx("div",{className:ua,children:o||i||r?ge.jsxs("div",{className:pa,children:[ge.jsxs("div",{className:ha,children:[o&&ge.jsx("div",{className:ma,children:o}),i&&ge.jsx("div",{className:ga,children:i})]}),r&&ge.jsxs("div",{className:fa,children:[a,ge.jsx(da,{dataTest:`close-button-${n}`,variant:"textGray",size:"small",endIcon:ge.jsx(Bn,{width:24,height:24}),onClick:e=>{s.onClose&&s.onClose(e,"escapeKeyDown")},style:{color:"var(--colors-grey-800)"},children:e})]})]}):null}),t]})},ba="_styled-dialog-actions-root_1yp8r_1",xa="_styled-dialog-actions_1yp8r_1",wa="_action-button-wrapper_1yp8r_17";function Ca(...e){return ee(pi(e))}const ka=e=>ge.jsx(w,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:ba},children:ge.jsx("div",{className:Ca(xa,e.className),children:r.Children.map(e.children,(e=>ge.jsx("div",{className:wa,children:e})))})}),ja="_styled-dialog-content_d2vki_1",Na=({children:e,classes:t,className:n,...r})=>ge.jsx(C,{...r,"data-test":"styled-dialog-content",classes:{...t,root:ja},className:n,children:e}),_a="_styled-dialog-title-root_mcspk_1",Ea=({children:e,...t})=>e?ge.jsx(k,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:_a},children:e}):null;function Ia(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7 9H2V7h5zm0 3H2v2h5zm13.59 7l-3.83-3.83c-.8.52-1.74.83-2.76.83c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3s1.35 3 3 3s3-1.35 3-3M2 19h10v-2H2z"})})}const Oa=({emptyText:e,isEmpty:t=!0,className:n=""})=>t?ge.jsxs("div",{"data-test":"empty-page-container",className:`flex animate-opacity-in items-center w-full h-full justify-center gap-2 duration-300 text-gray-600 text-sm ${n}`,children:[ge.jsx(Ia,{"data-test":"empty-page-icon",width:24,height:24,className:"text-gray-600 cursor-default"}),ge.jsx("span",{className:"font-normal",children:e})]}):null,Sa={small:16,medium:24,large:32},Ma=({isLoading:e,className:t="",size:n="medium"})=>{if(!e)return null;const r=Sa[n];return ge.jsx("div",{className:pi("flex items-center justify-center h-[50px] w-full text-gama-500 animate-opacity-appear-3",t),children:ge.jsx(Pn,{width:r,height:r})})};function Ta({controlled:e,default:t,name:r,state:o="value"}){const{current:i}=n.useRef(void 0!==e),[a,s]=n.useState(t),l=i?e:a;if("production"!==process.env.NODE_ENV){n.useEffect((()=>{i!==(void 0!==e)&&console.error([`Base UI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[o,r,e]);const{current:a}=n.useRef(t);n.useEffect((()=>{!i&&JSON.stringify(a)!==JSON.stringify(t)&&console.error([`Base UI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"))}),[JSON.stringify(t)])}return[l,n.useCallback((e=>{i||s(e)}),[])]}const Ra={};function Pa(e,t){const r=n.useRef(Ra);return r.current===Ra&&(r.current=e(t)),r}const Da=n[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],za=Da&&Da!==n.useLayoutEffect?Da:e=>e();function Aa(e){const t=Pa(Va).current;return t.next=e,za(t.effect),t.trampoline}function Va(){const e={next:void 0,callback:La,trampoline:(...t)=>{var n;return null==(n=e.callback)?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function La(){if("production"!==process.env.NODE_ENV)throw new Error("Base UI: Cannot call an event handler while rendering.")}function Fa(e,t,n,r){const o=Pa($a).current;return function(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}(o,e,t,n,r)&&Ba(o,[e,t,n,r]),o.callback}function $a(){return{callback:null,cleanup:null,refs:[]}}function Ba(e,t){e.refs=t,t.every((e=>null==e))?e.callback=null:e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){const r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const o=t[e];if(null!=o)switch(typeof o){case"function":{const t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(null!=n)switch(typeof n){case"function":{const t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}const qa=typeof document<"u"?n.useLayoutEffect:()=>{},Ha={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1};let Ua=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({}),Wa=function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const Ka={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Ga={valid:e=>null===e?null:e?{[Wa.valid]:""}:{[Wa.invalid]:""}};function Ya(e){return n.useMemo((()=>({checked:t=>e.indeterminate?{}:t?{[Ua.checked]:""}:{[Ua.unchecked]:""},...Ga})),[e.indeterminate])}const Ja=parseInt(n.version,10);function Xa(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}const Za={};function Qa(e,t,n,r,o){let i={...rs(e,Za)};return t&&(i=es(i,t)),n&&(i=es(i,n)),r&&(i=es(i,r)),o&&(i=es(i,o)),i}function es(e,t){return ns(t)?t(e):function(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":e[n]=Xa(e.style,r);break;case"className":e[n]=as(e.className,r);break;default:ts(n,r)?e[n]=os(e[n],r):e[n]=r}}return e}(e,t)}function ts(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||typeof t>"u")}function ns(e){return"function"==typeof e}function rs(e,t){return ns(e)?e(t):e??Za}function os(e,t){return t?e?n=>{if(function(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}(n)){const r=n;is(r);const o=t(r);return r.baseUIHandlerPrevented||null==e||e(r),o}const r=t(n);return null==e||e(n),r}:t:e}function is(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function as(e,t){return t?e?t+" "+e:t:e}function ss(){}const ls=Object.freeze([]),cs=Object.freeze({});function ds(e,t,r={}){const o=t.render,i=function(e,t={}){const{className:n,render:r}=e,{state:o=cs,ref:i,props:a,stateAttributesMapping:s,enabled:l=!0}=t,c=l?function(e,t){return"function"==typeof e?e(t):e}(n,o):void 0,d=l?function(e,t){const n={};for(const r in e){const o=e[r];if(null!=t&&t.hasOwnProperty(r)){const e=t[r](o);null!=e&&Object.assign(n,e)}else!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}(o,s):cs,u=l?Xa(d,Array.isArray(a)?function(e){if(0===e.length)return Za;if(1===e.length)return rs(e[0],Za);let t={...rs(e[0],Za)};for(let n=1;n<e.length;n+=1)t=es(t,e[n]);return t}(a):a)??cs:cs;return typeof document<"u"&&(l?Array.isArray(i)?u.ref=function(e){const t=Pa($a).current;return function(e,t){return e.refs.length!==t.length||e.refs.some(((e,n)=>e!==t[n]))}(t,e)&&Ba(t,e),t.callback}([u.ref,us(r),...i]):u.ref=Fa(u.ref,us(r),i):Fa(null,null)),l?(void 0!==c&&(u.className=as(u.className,c)),u):cs}(t,r);if(!1===r.enabled)return null;return function(e,t,r,o){if(t){if("function"==typeof t)return t(r,o);const e=Qa(r,t.props);return e.ref=r.ref,n.cloneElement(t,e)}if(e&&"string"==typeof e)return function(e,t){return"button"===e?ge.jsx("button",{type:"button",...t}):"img"===e?ge.jsx("img",{alt:"",...t}):n.createElement(e,t)}(e,r);throw new Error("Base UI: Render element or function are not defined.")}(e,o,i,r.state??cs)}function us(e){return e&&"function"!=typeof e?function(e){return Ja>=e}(19)?e.props.ref:e.ref:null}const ps={...n};let fs=0;const hs=ps.useId;function ms(e,t){if(void 0!==hs){const n=hs();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){const[r,o]=n.useState(e),i=e||r;return n.useEffect((()=>{null==r&&(fs+=1,o(`${t}-${fs}`))}),[r,t]),i}(e,t)}function gs(e){return ms(e,"base-ui")}function ys(){return typeof window<"u"}function vs(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function bs(e){return!!ys()&&(e instanceof HTMLElement||e instanceof vs(e).HTMLElement)}let xs;function ws(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");xs.has(t)||(xs.add(t),console.error(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(xs=new Set);const Cs=n.createContext(void 0);function ks(e=!1){const t=n.useContext(Cs);if(void 0===t&&!e)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return t}function js(e={}){const{disabled:t=!1,focusableWhenDisabled:r,tabIndex:o=0,native:i=!0}=e,a=n.useRef(null),s=void 0!==ks(!0),l=Aa((()=>{const e=a.current;return!("A"!==(null==e?void 0:e.tagName)||null==e||!e.href)})),{props:c}=function(e){const{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:i=0,isNativeButton:a}=e,s=o&&!1!==t,l=o&&!1===t;return{props:n.useMemo((()=>{const e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return o||(e.tabIndex=i,!a&&r&&(e.tabIndex=t?i:-1)),(a&&(t||s)||!a&&r)&&(e["aria-disabled"]=r),a&&(!t||l)&&(e.disabled=r),e}),[o,r,t,s,l,a,i])}}({focusableWhenDisabled:r,disabled:t,composite:s,tabIndex:o,isNativeButton:i});"production"!==process.env.NODE_ENV&&n.useEffect((()=>{if(!a.current)return;const e="BUTTON"===a.current.tagName;i?e||ws("A component that acts as a button was not rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is a real <button>, or set the `nativeButton` prop on the component to `false`."):e&&ws("A component that acts as a button was rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is not a real <button>, or set the `nativeButton` prop on the component to `true`.")}),[i]);const d=n.useCallback((()=>{const e=a.current;(function(e){return bs(e)&&"BUTTON"===e.tagName})(e)&&s&&t&&void 0===c.disabled&&e.disabled&&(e.disabled=!1)}),[t,c.disabled,s]);qa(d,[d]);return{getButtonProps:n.useCallback(((e={})=>{const{onClick:n,onMouseDown:r,onKeyUp:o,onKeyDown:a,onPointerDown:s,...d}=e;return Qa({type:i?"button":void 0,onClick(e){t?e.preventDefault():null==n||n(e)},onMouseDown(e){t||null==r||r(e)},onKeyDown(e){if(t||(is(e),null==a||a(e)),e.baseUIHandlerPrevented)return;const r=e.target===e.currentTarget&&!i&&!l()&&!t,o="Enter"===e.key,s=" "===e.key;r&&((s||o)&&e.preventDefault(),o&&(null==n||n(e)))},onKeyUp(e){t||(is(e),null==o||o(e)),!e.baseUIHandlerPrevented&&e.target===e.currentTarget&&!i&&!t&&" "===e.key&&(null==n||n(e))},onPointerDown(e){t?e.preventDefault():null==s||s(e)}},i?void 0:{role:"button"},c,d)}),[t,c,i,l]),buttonRef:Aa((e=>{a.current=e,d()}))}}"production"!==process.env.NODE_ENV&&(Cs.displayName="CompositeRootContext");const Ns=n.createContext({invalid:void 0,controlId:void 0,setControlId:ss,labelId:void 0,setLabelId:ss,messageIds:[],setMessageIds:ss,name:void 0,validityData:{state:Ka,errors:[],error:"",value:"",initialValue:null},setValidityData:ss,disabled:void 0,touched:!1,setTouched:ss,dirty:!1,setDirty:ss,filled:!1,setFilled:ss,focused:!1,setFocused:ss,validate:()=>null,validationMode:"onBlur",validationDebounceTime:0,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1}});function _s(e=!0){const t=n.useContext(Ns);if(t.setControlId===ss&&!e)throw new Error("Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");return t}"production"!==process.env.NODE_ENV&&(Ns.displayName="FieldRootContext");const Es=[];function Is(e){n.useEffect(e,Es)}class Os{constructor(){t(this,"currentId",0),t(this,"clear",(()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)})),t(this,"disposeEffect",(()=>this.clear))}static create(){return new Os}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}isStarted(){return 0!==this.currentId}}const Ss=n.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:ss});function Ms(){return n.useContext(Ss)}function Ts(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}"production"!==process.env.NODE_ENV&&(Ss.displayName="FormContext");const Rs=Object.keys(Ka);function Ps(){const{setValidityData:e,validate:t,messageIds:r,validityData:o,validationMode:i,validationDebounceTime:a,invalid:s,markedDirtyRef:l,controlId:c,state:d,name:u}=_s(),{formRef:p,clearErrors:f}=Ms(),h=function(){const e=Pa(Os.create).current;return Is(e.disposeEffect),e}(),m=n.useRef(null),g=Aa((async(n,r=!1)=>{const i=m.current;if(!i)return;if(r){if(!1!==d.valid)return;const t=i.validity;if(!t.valueMissing){const t={value:n,state:{...Ka,valid:!0},error:"",errors:[],initialValue:o.initialValue};if(i.setCustomValidity(""),c){const e=p.current.fields.get(c);e&&p.current.fields.set(c,{...e,...Ts(t,!1)})}return void e(t)}const r=Rs.reduce(((e,n)=>(e[n]=t[n],e)),{});if(!r.valid&&!function(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(const n of Rs)"valid"!==n&&("valueMissing"===n&&(t=e[n]),e[n]&&(t=!1));return t}(r))return}h.clear();let a=null,u=[];const f=function(e){const t=Rs.reduce(((t,n)=>(t[n]=e.validity[n],t)),{});let n=!1;for(const e of Rs)if("valid"!==e)if("valueMissing"===e&&t[e])n=!0;else if(t[e])return t;return n&&!l.current&&(t.valid=!0,t.valueMissing=!1),t}(i);let g;if(i.validationMessage)g=i.validationMessage,u=[i.validationMessage];else{const e=Array.from(p.current.fields.values()).reduce(((e,t)=>{var n,r;return t.name&&t.getValueRef&&(e[t.name]=null==(r=(n=t.getValueRef).current)?void 0:r.call(n)),e}),{}),r=t(n,e);a="object"==typeof r&&null!==r&&"then"in r?await r:r,null!==a&&(f.valid=!1,f.customError=!0,Array.isArray(a)?(u=a,i.setCustomValidity(a.join("\n"))):a&&(u=[a],i.setCustomValidity(a)))}const y={value:n,state:f,error:g??(Array.isArray(a)?a[0]:a??""),errors:u,initialValue:o.initialValue};if(c){const e=p.current.fields.get(c);e&&p.current.fields.set(c,{...e,...Ts(y,s)})}e(y)})),y=n.useCallback(((e={})=>Qa({...r.length&&{"aria-describedby":r.join(" ")},...!1===d.valid&&{"aria-invalid":!0}},e)),[r,d.valid]),v=n.useCallback(((e={})=>Qa({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(f(u),"onChange"!==i)return void g(e.currentTarget.value,!0);if(s)return;const t=e.currentTarget;""!==t.value?(h.clear(),a?h.start(a,(()=>{g(t.value)})):g(t.value)):g(t.value)}},y(e))),[y,f,u,h,g,s,i,a]);return n.useMemo((()=>({getValidationProps:y,getInputValidationProps:v,inputRef:m,commitValidation:g})),[y,v,g])}function Ds(e){const t=Pa(zs,e).current;return t.next=e,qa(t.effect),t}function zs(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function As(e){const{formRef:t}=Ms(),{invalid:n,markedDirtyRef:r,validityData:o,setValidityData:i}=_s(),{enabled:a=!0,value:s,id:l,name:c,controlRef:d,commitValidation:u}=e,p=Ds(e.getValue);qa((()=>{var e;if(!a)return;let t=s;void 0===t&&(t=null==(e=p.current)?void 0:e.call(p)),null===o.initialValue&&t!==o.initialValue&&i((e=>({...e,initialValue:t})))}),[a,i,s,o.initialValue,p]),qa((()=>{a&&l&&t.current.fields.set(l,{controlRef:d,validityData:Ts(o,n),validate(){var e;let t=s;void 0===t&&(t=null==(e=p.current)?void 0:e.call(p)),r.current=!0,Z.flushSync((()=>u(t)))},getValueRef:p,name:c})}),[u,d,a,t,p,l,n,r,c,o,s]),qa((()=>{const e=t.current.fields;return()=>{l&&e.delete(l)}}),[t,l])}const Vs=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Vs.displayName="CheckboxGroupContext");const Ls=n.createContext(void 0);function Fs(e,t,n){let r=!1,o=!1;const i=n??cs;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){o=!0},get isCanceled(){return r},get isPropagationAllowed(){return o},...i}}"production"!==process.env.NODE_ENV&&(Ls.displayName="CheckboxRootContext");const $s={},Bs=n.forwardRef((function(e,t){const{checked:r,className:o,defaultChecked:i=!1,disabled:a=!1,id:s,indeterminate:l=!1,inputRef:c,name:d,onCheckedChange:u,parent:p=!1,readOnly:f=!1,render:h,required:m=!1,value:g,nativeButton:y=!0,...v}=e,{clearErrors:b}=Ms(),{disabled:x,labelId:w,name:C,setControlId:k,setDirty:j,setFilled:N,setFocused:_,setTouched:E,state:I,validationMode:O,validityData:S}=_s(),M=function(e=!0){const t=n.useContext(Vs);if(void 0===t&&!e)throw new Error("Base UI: CheckboxGroupContext is missing. CheckboxGroup parts must be placed within <CheckboxGroup>.");return t}(),T=null==M?void 0:M.parent,R=T&&M.allValues,P=x||(null==M?void 0:M.disabled)||a,D=C??d,z=g??D;let A={};R&&(p?A=M.parent.getParentProps():z&&(A=M.parent.getChildProps(z)));const V=Aa(u),{checked:L=r,indeterminate:F=l,onCheckedChange:$,...B}=A,q=null==M?void 0:M.value,H=null==M?void 0:M.setValue,U=null==M?void 0:M.defaultValue,W=n.useRef(null),{getButtonProps:K,buttonRef:G}=js({disabled:P,native:y}),Y=Ps(),J=(null==M?void 0:M.fieldControlValidation)??Y,[X,Z]=Ta({controlled:z&&q&&!p?q.includes(z):L,default:z&&U&&!p?U.includes(z):i,name:"Checkbox",state:"checked"}),Q=gs(s);qa((()=>{const e=null==W?void 0:W.current;if(e)return M?k(s??null):null==e.closest("label")&&k(Q),()=>{k(void 0)}}),[M,Q,s,k]),As({enabled:!M,id:Q,commitValidation:J.commitValidation,value:X,controlRef:W,name:D,getValue:()=>X});const ee=n.useRef(null),te=Fa(c,ee,J.inputRef);qa((()=>{ee.current&&(ee.current.indeterminate=F,X&&N(!0))}),[X,F,N]);const ne=Aa((()=>_(!0))),re=Aa((()=>{const e=ee.current;e&&(E(!0),_(!1),"onBlur"===O&&J.commitValidation(M?q:e.checked))})),oe=Aa((e=>{var t;e.defaultPrevented||f||(e.preventDefault(),null==(t=ee.current)||t.click())})),ie=Qa({checked:X,disabled:P,name:p?void 0:D,id:`${Q}-input`,required:m,ref:te,style:Ha,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=Fs("none",e.nativeEvent);if(null==$||$(t,n),V(t,n),!n.isCanceled&&(b(D),j(t!==S.initialValue),Z(t),M||(N(t),"onChange"===O?J.commitValidation(t):J.commitValidation(t,!0)),z&&q&&H&&!p)){const e=t?[...q,z]:q.filter((e=>e!==z));H(e,n),N(e.length>0),"onChange"===O?J.commitValidation(e):J.commitValidation(e,!0)}},onFocus(){var e;null==(e=W.current)||e.focus()}},void 0!==g?{value:(M?X&&g:g)||""}:$s,M?J.getValidationProps:J.getInputValidationProps),ae=R?!!L:X,se=R&&F||l;n.useEffect((()=>{T&&z&&T.disabledStatesRef.current.set(z,P)}),[T,P,z]);const le=n.useMemo((()=>({...I,checked:ae,disabled:P,readOnly:f,required:m,indeterminate:se})),[I,ae,P,f,m,se]),ce=Ya(le),de=ds("button",e,{state:le,ref:[G,W,t,null==M?void 0:M.registerControlRef],props:[{id:Q,role:"checkbox",disabled:P,"aria-checked":F?"mixed":X,"aria-readonly":f||void 0,"aria-required":m||void 0,"aria-labelledby":w,"data-parent":p?"":void 0,onFocus:ne,onBlur:re,onClick:oe},J.getValidationProps,v,B,K],stateAttributesMapping:ce});return ge.jsxs(Ls.Provider,{value:le,children:[de,!X&&!M&&e.name&&!p&&ge.jsx("input",{type:"hidden",name:e.name,value:"off"}),ge.jsx("input",{...ie})]})}));"production"!==process.env.NODE_ENV&&(Bs.displayName="CheckboxRoot");const qs=null;let Hs=globalThis.requestAnimationFrame;const Us=new class{constructor(){t(this,"callbacks",[]),t(this,"callbacksCount",0),t(this,"nextId",1),t(this,"startId",1),t(this,"isScheduled",!1),t(this,"tick",(e=>{var t;this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<n.length;r+=1)null==(t=n[r])||t.call(n,e)}))}request(e){const t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;const n="test"===process.env.NODE_ENV&&Hs!==requestAnimationFrame&&(Hs=requestAnimationFrame,!0);return(!this.isScheduled||n)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){const t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class Ws{constructor(){t(this,"currentId",qs),t(this,"cancel",(()=>{this.currentId!==qs&&(Us.cancel(this.currentId),this.currentId=qs)})),t(this,"disposeEffect",(()=>this.cancel))}static create(){return new Ws}static request(e){return Us.request(e)}static cancel(e){return Us.cancel(e)}request(e){this.cancel(),this.currentId=Us.request((()=>{this.currentId=qs,e()}))}}function Ks(e,t=!1){const n=function(){const e=Pa(Ws.create).current;return Is(e.disposeEffect),e}();return Aa(((r,o=null)=>{if(n.cancel(),null==e)return;let i;if("current"in e){if(null==e.current)return;i=e.current}else i=e;"function"!=typeof i.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED?r():n.request((()=>{function e(){i&&Promise.allSettled(i.getAnimations().map((e=>e.finished))).then((()=>{null!=o&&o.aborted||Z.flushSync(r)}))}t?n.request(e):e()}))}))}function Gs(e){const{enabled:t=!0,open:r,ref:o,onComplete:i}=e,a=Ds(r),s=Aa(i),l=Ks(o,r);n.useEffect((()=>{t&&l((()=>{r===a.current&&s()}))}),[t,r,s,l,a])}function Ys(e,t=!1,r=!1){const[o,i]=n.useState(e&&t?"idle":void 0),[a,s]=n.useState(e);return e&&!a&&(s(!0),i("starting")),!e&&a&&"ending"!==o&&!r&&i("ending"),!e&&!a&&"ending"===o&&i(void 0),qa((()=>{if(!e&&a&&"ending"!==o&&r){const e=Ws.request((()=>{i("ending")}));return()=>{Ws.cancel(e)}}}),[e,a,o,r]),qa((()=>{if(!e||t)return;const n=Ws.request((()=>{Z.flushSync((()=>{i(void 0)}))}));return()=>{Ws.cancel(n)}}),[t,e]),qa((()=>{if(!e||!t)return;e&&a&&"idle"!==o&&i("starting");const n=Ws.request((()=>{i("idle")}));return()=>{Ws.cancel(n)}}),[t,e,a,i,o]),n.useMemo((()=>({mounted:a,setMounted:s,transitionStatus:o})),[a,o])}let Js=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const Xs={[Js.startingStyle]:""},Zs={[Js.endingStyle]:""},Qs={transitionStatus:e=>"starting"===e?Xs:"ending"===e?Zs:null},el=n.forwardRef((function(e,t){const{render:r,className:o,keepMounted:i=!1,...a}=e,s=function(){const e=n.useContext(Ls);if(void 0===e)throw new Error("Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.");return e}(),l=s.checked||s.indeterminate,{transitionStatus:c,setMounted:d}=Ys(l),u=n.useRef(null),p=n.useMemo((()=>({...s,transitionStatus:c})),[s,c]);Gs({open:l,ref:u,onComplete(){l||d(!1)}});const f=Ya(s),h=n.useMemo((()=>({...f,...Qs,...Ga})),[f]),m=i||l,g=ds("span",e,{enabled:m,ref:[t,u],state:p,stateAttributesMapping:h,props:a});return m?g:null}));"production"!==process.env.NODE_ENV&&(el.displayName="CheckboxIndicator");const tl={CheckboxWrapper:"_CheckboxWrapper_rzjd1_1","size-small":"_size-small_rzjd1_13",Checkbox:"_Checkbox_rzjd1_1",ReadOnly:"_ReadOnly_rzjd1_43",Indicator:"_Indicator_rzjd1_55",HideWrapper:"_HideWrapper_rzjd1_59",CheckboxHover:"_CheckboxHover_rzjd1_66",CheckboxRippleContainer:"_CheckboxRippleContainer_rzjd1_66",CheckboxRipple:"_CheckboxRipple_rzjd1_66",ripple:"_ripple_rzjd1_1"},nl=({className:e})=>ge.jsx("svg",{viewBox:"0 0 24 24",className:e,fill:"none",children:ge.jsx("rect",{x:"5.5",y:"10.5",width:"13",height:"2.75",fill:"currentColor"})}),rl=({dataTest:e,size:t="medium",disabled:n,readOnly:o,indeterminate:i=!1,checked:a,disableRipple:l,hideWrapper:c,className:d,onChange:u,...p})=>{const f=!!c,h=!(l||f||n||o),m=Ca(tl.CheckboxWrapper,!f&&tl[`size-${t}`],f&&tl.HideWrapper,o&&tl.ReadOnly,h&&tl.CheckboxHover,d),g=Ca("styled-checkbox-inner",tl.Checkbox,tl[`size-${t}`]),y=i?nl:qn,v=r.useRef(null),b=r.useCallback((e=>{var t;if(e.stopPropagation(),!h)return;const n=document.createElement("span");n.className=tl.CheckboxRipple||"",n.addEventListener("animationend",(()=>n.remove()),{once:!0}),null==(t=v.current)||t.appendChild(n)}),[h]);s((()=>()=>{var e;null==(e=v.current)||e.replaceChildren()}),[]);const x=r.useCallback((e=>{if(o)return;const t={target:{name:p.name,value:p.value,checked:e}};null==u||u(t,e)}),[u,p.name,p.value,o]);return ge.jsxs(Bs,{className:m,"data-test":e,checked:a,disabled:n,readOnly:o,indeterminate:i,onPointerDown:b,onCheckedChange:x,...p,children:[!f&&h&&ge.jsx("span",{ref:v,className:tl.CheckboxRippleContainer}),ge.jsx("span",{className:g,children:ge.jsx(el,{className:tl.Indicator,children:ge.jsx(y,{})})})]})},ol=({allowClear:e,onClear:t,readOnly:n,disabled:r,dataTest:o,...i})=>ge.jsx(j,{...i,"data-test":o,disabled:r||n,type:i.type||"mui-input",InputProps:e&&i.value?{endAdornment:ge.jsx("div",{className:"z-40 hover:bg-gama-100 duration-300 absolute right-4 p-[2px] rounded-full flex items-center justify-center",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==t||t()},children:ge.jsx(Bn,{width:18,height:18})})}:i.InputProps,sx:{"& input:-webkit-autofill, & .MuiInputBase-root:has(> input:-webkit-autofill)":{backgroundColor:"#e8f0fe !important"},"& input":{backgroundColor:"transparent"},"& .MuiInputBase-root":{backgroundColor:"transparent"},"& .MuiInputBase-colorPrimary fieldset":{borderColor:"var(--colors-delta-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused fieldset":{borderColor:"var(--colors-gama-400) !important"},"& .MuiInputBase-colorPrimary.Mui-focused::after":{borderColor:"var(--colors-gama-400) !important"},"& .MuiInputBase-colorPrimary.Mui-focused:hover fieldset":{borderColor:"var(--colors-gama-400) !important"},"& .MuiInputBase-colorPrimary:hover fieldset":{borderColor:"var(--colors-gama-300) !important",borderWidth:"2px !important"},"& .MuiInputBase-colorPrimary.Mui-disabled:hover fieldset":{borderWidth:"1px !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error:hover fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused.Mui-error fieldset":{borderColor:"#d3302f !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label":{color:"var(--colors-delta-500) !important"},"& label.Mui-focused.Mui-error":{color:"#d3302f !important"},"& label.Mui-disabled":{color:"var(--colors-gray-300) !important"},"& .MuiOutlinedInput-input::placeholder":{color:"var(--colors-delta-500) !important",opacity:"1 !important"},"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-300) !important"},...n&&{"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-800) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled":{backgroundColor:"var(--colors-delta-10) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-200) !important"},"& label.Mui-disabled":{color:"var(--colors-gray-800) !important"}},...i.sx}}),il=({value:e,onClear:t,...n})=>{const[r,o]=a(!1),i=r||e;return ge.jsxs("div",{className:"relative w-full",children:[ge.jsx(ol,{size:"small",variant:"outlined",value:e,onFocus:()=>o(!0),onBlur:()=>o(!1),InputProps:{className:Ca("transition-[padding] duration-300",i?"pl-0":"pl-5"),sx:{"& input":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},endAdornment:e?ge.jsx("div",{className:Ca("cursor-pointer bg-delta-50 rounded-full","flex items-center justify-center","transform-gpu transition-all duration-300 ease-in-out",e?"opacity-100 scale-100":"opacity-0 scale-75 pointer-events-none"),style:{width:24,height:24,flexShrink:0},onClick:e=>{e.preventDefault(),e.stopPropagation(),null==t||t()},children:ge.jsx(Bn,{width:20,height:20,color:"var(--colors-delta-700)",className:"pointer-events-none"})}):null},InputLabelProps:{sx:{transform:"translate(34px, 9px) scale(1)",width:i?void 0:"calc(100% - 42px)","&.MuiInputLabel-shrink":{transform:"translate(16px, -9px) scale(0.75)"}}},...n,sx:{...n.fullWidth?{width:"100%"}:{width:160},...n.sx}}),ge.jsx(Rn,{width:24,height:24,className:Ca("absolute left-2 top-1/2 -translate-y-1/2","transform-gpu transition-all duration-300 ease-in-out",i?"opacity-0 scale-75 pointer-events-none":"opacity-100 scale-100"),color:"var(--colors-delta-700)"})]})},al={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},sl=({id:e,variant:t="active",label:n="",labelClassName:r="",description:o="",value:i="",minRows:d=3,maxRows:u=1/0,disabled:p,error:f,errorMessage:h,containerClassName:m="",className:g="",maxLength:y=1/0,counter:v,refLink:b,dataTest:x,counterLimit:w,...C})=>{const k=c(null),j=b||k,N=!(!v||!w),[_,E]=a(!1);s((()=>{E(!0)}),[]),((e,t,n,r,o,i)=>{l((()=>{if(e){const t=i?32:0;e.style.height="auto";const n=20,o=e.scrollHeight-24;Math.ceil(o/n)>r?e.style.height=`${n*r+24+t}px`:e.style.height=`${e.scrollHeight+t}px`}}),[e,t,n,r,o,i])})(j.current,i,d,u,_,N),u<d&&(d=u);const[I,O]=a(i.length);s((()=>{O(i.length)}),[i]);const S=f?"error":"active",M=f?"error":p?"disabled":"active";return ge.jsxs("div",{className:`flex flex-col gap-1 relative ${m}`,"data-test":x,children:[ge.jsx("label",{htmlFor:e,className:`${al.label} ${al[M]} ${r}`,children:n}),ge.jsx("span",{className:`${al.description} ${al[M]}`,children:f?h:o}),"view_only"===t?ge.jsx("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:i}):"not_editable"===t?ge.jsx("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:i}):ge.jsx("textarea",{...C,id:e,ref:j,className:`${al.textarea} ${al[S]} ${g} ${N?"pb-[32px]":""}`,wrap:"soft",value:i,disabled:p,maxLength:y}),N&&ge.jsxs("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[I,"/",w]})]})},ll=({dataTest:e,allowClear:t,...n})=>ge.jsx(N,{...n,"data-test":e,value:n.value,IconComponent:e=>ge.jsx(Jt,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:pi(e.className,"select-custom-icon")}),endAdornment:t&&n.value?ge.jsx("div",{className:"hover:bg-gama-100 duration-300 absolute right-8 p-[2px] rounded-full flex items-center justify-center",onClick:()=>{var e;null==(e=n.onChange)||e.call(n,{target:{value:""}},null)},children:ge.jsx(Bn,{width:18,height:18})}):null,sx:{".MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-delta-500) !important"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"&.Mui-focused::after":{borderColor:"var(--colors-gama-400) !important"},"&:hover .MuiOutlinedInput-notchedOutline":{border:"2px solid var(--colors-gama-300) !important"},"& .select-custom-icon":{marginTop:"-3.5px !important"},...n.sx}}),cl=e=>ge.jsxs(_,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important",gap:"4px",px:1},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:[ge.jsx("span",{style:{width:"24px",justifyContent:"center",display:"flex"},children:e.selected&&ge.jsx(Jt,{icon:"mdi:tick",width:22,height:22,style:{color:"var(--colors-gama-500)"}})}),ge.jsx("span",{children:e.children})]}),dl="_styledSelectAutocompleteWrapper_lfbvb_1",ul="_select-custom-icon_lfbvb_5";function pl({dataTest:e,autoHeight:t,getOptionLabel:n,wrapperClassName:r,...o}){const[i,l]=a("auto"),d=c(null);s((()=>{var e,n;const r=(null==(e=d.current)?void 0:e.getBoundingClientRect().height)??0,o=(null==(n=d.current)?void 0:n.getBoundingClientRect().top)??0,i=window.innerHeight-o-r-40;t&&l(i>0?i:"auto")}),[t]);const u=t?{style:{maxHeight:"auto"===i?"auto":`${i}px`}}:{},p=e=>"object"==typeof e&&null!==e&&"label"in e?e.label:String(e);return ge.jsx("div",{className:Ca(dl,r),ref:d,children:ge.jsx(E,{...o,getOptionLabel:n,ListboxProps:{...u,sx:{"& .MuiAutocomplete-option":{paddingLeft:"6px !important"}}},className:pi("!text-sm",o.className),popupIcon:o.popupIcon||ge.jsx(Jt,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:pi(ul)}),"data-test":e,PaperComponent:({children:t})=>ge.jsx(I,{"data-test":`paper-${e}`,sx:{padding:"0 !important",marginTop:"0px !important","& .MuiAutocomplete-option.Mui-focused":{background:"var(--colors-delta-50) !important"},"& li[aria-selected=true]":{background:"var(--colors-gama-50) !important"},"& li[aria-selected=true].MuiAutocomplete-option.Mui-focused":{background:"var(--colors-gama-50) !important"}},children:t}),renderOption:(null==o?void 0:o.renderOption)||((e,t,{selected:r})=>ge.jsxs("li",{...e,children:[ge.jsx("span",{style:{width:"24px",height:"22px",paddingRight:"4px",justifyContent:"center",alignContent:"center",display:"flex"},children:r&&ge.jsx(Jt,{icon:"mdi:tick",width:20,height:20,style:{color:"var(--colors-gama-500)"}})}),ge.jsx("span",{className:"flex-1 text-sm truncate",children:(null==n?void 0:n(t))||p(t)})]})),sx:{...o.sx,"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-0.5px !important"},"& .MuiInputBase-inputSizeSmall":{minHeight:"23px !important"}}})})}const fl=({dataTest:e,...t})=>{var n,r,o;return ge.jsx(O,{...t,"data-test":e,classes:{...t.classes},slotProps:{...t.slotProps,thumb:{className:pi("w-4 h-4","before:shadow-none",'after:content-[""] after:h-8 after:w-8',"vertical"===t.orientation?"ml-0 mb-1":"ml-1",t.disabled?"bg-delta-200":"bg-gama-500"),...null==(n=t.slotProps)?void 0:n.thumb},rail:{className:"bg-delta-200",...null==(r=t.slotProps)?void 0:r.rail},markLabel:{className:pi("text-delta-600 text-sm font-semibold ml-1","vertical"===t.orientation&&"mb-1"),...null==(o=t.slotProps)?void 0:o.markLabel}},sx:{...t.sx,"& .MuiSlider-track":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)"},"& .MuiSlider-mark":{backgroundColor:"white",border:"1px solid var(--colors-delta-300)",borderRadius:"50%",height:"8px",width:"8px","&.MuiSlider-markActive":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",border:"1px solid",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",opacity:1}}}})},hl=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(hl.displayName="SwitchRootContext");let ml=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const gl={...Ga,checked:e=>e?{[ml.checked]:""}:{[ml.unchecked]:""}},yl=n.forwardRef((function(e,t){const{checked:r,className:o,defaultChecked:i,id:a,inputRef:s,name:l,nativeButton:c=!0,onCheckedChange:d,readOnly:u=!1,required:p=!1,disabled:f=!1,render:h,...m}=e,{clearErrors:g}=Ms(),{state:y,labelId:v,setControlId:b,setTouched:x,setDirty:w,validityData:C,setFilled:k,setFocused:j,validationMode:N,disabled:_,name:E}=_s(),I=_||f,O=E??l,{getValidationProps:S,getInputValidationProps:M,inputRef:T,commitValidation:R}=Ps(),P=Aa(d),D=n.useRef(null),z=Fa(D,s,T),A=n.useRef(null),V=gs(a);qa((()=>{const e=A.current;if(e)return null!=e.closest("label")?b(a??null):b(V),()=>{b(void 0)}}),[V,a,b]);const[L,F]=Ta({controlled:r,default:!!i,name:"Switch",state:"checked"});As({id:V,commitValidation:R,value:L,controlRef:A,name:O,getValue:()=>L}),qa((()=>{D.current&&k(D.current.checked)}),[D,k]);const{getButtonProps:$,buttonRef:B}=js({disabled:I,native:c}),q=n.useMemo((()=>({id:V,role:"switch",disabled:I,"aria-checked":L,"aria-readonly":u||void 0,"aria-labelledby":v,onFocus(){j(!0)},onBlur(){const e=D.current;e&&(x(!0),j(!1),"onBlur"===N&&R(e.checked))},onClick(e){var t;e.defaultPrevented||u||null==(t=null==D?void 0:D.current)||t.click()}})),[V,I,L,u,v,j,x,R,N,D]),H=n.useMemo((()=>Qa({checked:L,disabled:I,id:O?void 0:`${V}-input`,name:O,required:p,style:Ha,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:z,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=Fs("none",e.nativeEvent);null==P||P(t,n),!n.isCanceled&&(g(O),w(t!==C.initialValue),k(t),F(t),"onChange"===N?R(t):R(t,!0))}},M)),[L,g,R,I,M,z,V,O,P,p,F,w,k,N,C.initialValue]),U=n.useMemo((()=>({...y,checked:L,disabled:I,readOnly:u,required:p})),[y,L,I,u,p]),W=ds("button",e,{state:U,ref:[t,A,B],props:[q,S,m,$],stateAttributesMapping:gl});return ge.jsxs(hl.Provider,{value:U,children:[W,!L&&l&&ge.jsx("input",{type:"hidden",name:l,value:"off"}),ge.jsx("input",{...H})]})}));"production"!==process.env.NODE_ENV&&(yl.displayName="SwitchRoot");const vl=n.forwardRef((function(e,t){const{render:r,className:o,...i}=e,{state:a}=_s(),s=function(){const e=n.useContext(hl);if(void 0===e)throw new Error("Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.");return e}();return ds("span",e,{state:{...a,...s},ref:t,stateAttributesMapping:gl,props:i})}));"production"!==process.env.NODE_ENV&&(vl.displayName="SwitchThumb");const bl={switch:"_switch_1myey_1",iconContent:"_iconContent_1myey_30",thumb:"_thumb_1myey_50",icon:"_icon_1myey_30"},xl=({className:e})=>ge.jsx("svg",{viewBox:"0 0 24 24",className:e,fill:"none",children:ge.jsx("rect",{x:"6",y:"10.5",width:"11",height:"3",fill:"currentColor",rx:"0.75"})}),wl=({width:e=11,height:t=11,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"fa-solid:check",width:e,height:t,className:n,onClick:r,color:o}),Cl=o((({checked:e,defaultChecked:t=!1,onChange:n,disabled:r,readOnly:o,required:i,value:s,id:l,dataTest:c,...d},u)=>{const[p,f]=a(t),h=void 0!==e,m=h?e:p,g=h?{checked:m}:{defaultChecked:t},y=Ca(bl.iconContent,m?bl.checked:bl.unchecked);return ge.jsx(yl,{...d,...g,ref:u,className:bl.switch,onCheckedChange:e=>{h||f(e),null==n||n({target:{checked:e,name:l,value:s}},e)},disabled:r,readOnly:o,required:i,value:s,id:l,name:l,"data-testid":c,children:ge.jsx(vl,{className:bl.thumb,children:ge.jsx("span",{className:bl.icon,children:m?ge.jsx(wl,{className:y}):ge.jsx(xl,{className:y})})})})})),kl="data-composite-item-active",jl=n.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});"production"!==process.env.NODE_ENV&&(jl.displayName="CompositeListContext");let Nl=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function _l(e={}){const{label:t,metadata:r,textRef:o,indexGuessBehavior:i,index:a}=e,{register:s,unregister:l,subscribeMapChange:c,elementsRef:d,labelsRef:u,nextIndexRef:p}=n.useContext(jl),f=n.useRef(-1),[h,m]=n.useState(a??(i===Nl.GuessFromOrder?()=>{if(-1===f.current){const e=p.current;p.current+=1,f.current=e}return f.current}:-1)),g=n.useRef(null),y=n.useCallback((e=>{var n;if(g.current=e,-1!==h&&null!==e&&(d.current[h]=e,u)){const r=void 0!==t;u.current[h]=r?t:(null==(n=null==o?void 0:o.current)?void 0:n.textContent)??e.textContent}}),[h,d,u,t,o]);return qa((()=>{if(null!=a)return;const e=g.current;return e?(s(e,r),()=>{l(e)}):void 0}),[a,s,l,r]),qa((()=>{if(null==a)return c((e=>{var t;const n=g.current?null==(t=e.get(g.current))?void 0:t.index:null;null!=n&&m(n)}))}),[a,c,m]),n.useMemo((()=>({ref:y,index:h})),[h,y])}function El(e){const{render:t,className:r,state:o=cs,props:i=ls,refs:a=ls,metadata:s,stateAttributesMapping:l,tag:c="div",...d}=e,{compositeProps:u,compositeRef:p}=function(e={}){const{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:o}=ks(),{ref:i,index:a}=_l(e),s=r===a,l=n.useRef(null),c=Fa(i,l);return{compositeProps:n.useMemo((()=>({tabIndex:s?0:-1,onFocus(){o(a)},onMouseMove(){const e=l.current;if(!t||!e)return;const n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;!s&&!n&&e.focus()}})),[s,o,a,t]),compositeRef:c,index:a}}({metadata:s});return ds(c,e,{state:o,ref:[...a,p],props:[u,...i,d],stateAttributesMapping:l})}let Il=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const Ol={checked:e=>e?{[Il.checked]:""}:{[Il.unchecked]:""},...Qs,...Ga},Sl=n.createContext({disabled:void 0,readOnly:void 0,required:void 0,name:void 0,checkedValue:"",setCheckedValue:ss,onValueChange:ss,touched:!1,setTouched:ss,registerControlRef:ss});"production"!==process.env.NODE_ENV&&(Sl.displayName="RadioGroupContext");const Ml=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Ml.displayName="RadioRootContext");const Tl=n.forwardRef((function(e,t){const{render:r,className:o,disabled:i=!1,readOnly:a=!1,required:s=!1,value:l,inputRef:c,nativeButton:d=!0,...u}=e,{disabled:p,readOnly:f,required:h,checkedValue:m,setCheckedValue:g,touched:y,setTouched:v,fieldControlValidation:b,registerControlRef:x}=n.useContext(Sl),{state:w,disabled:C}=_s(),k=C||p||i,j=f||a,N=h||s,{setDirty:_,validityData:E,setTouched:I,setFilled:O}=_s(),S=m===l,M=n.useRef(null),T=Fa(c,M);qa((()=>{var e;null!=(e=M.current)&&e.checked&&O(!0)}),[O]);const R=n.useMemo((()=>({role:"radio","aria-checked":S,"aria-required":N||void 0,"aria-disabled":k||void 0,"aria-readonly":j||void 0,[kl]:S?"":void 0,disabled:k,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){var t;e.defaultPrevented||k||j||(e.preventDefault(),null==(t=M.current)||t.click())},onFocus(e){var t;e.defaultPrevented||k||j||!y||(null==(t=M.current)||t.click(),v(!1))}})),[S,N,k,j,y,v]),{getButtonProps:P,buttonRef:D}=js({disabled:k,native:d}),z=gs(),A=n.useMemo((()=>({type:"radio",ref:T,id:z,tabIndex:-1,style:Ha,"aria-hidden":!0,disabled:k,checked:S,required:N,readOnly:j,onChange(e){if(e.nativeEvent.defaultPrevented||k||j||void 0===l)return;const t=Fs("none",e.nativeEvent);t.isCanceled||(I(!0),_(l!==E.initialValue),O(!0),g(l,t))}})),[S,k,z,j,T,N,g,_,I,O,E.initialValue,l]),V=n.useMemo((()=>({...w,required:N,disabled:k,readOnly:j,checked:S})),[w,k,j,S,N]),L=n.useMemo((()=>V),[V]),F=g!==ss,$=[t,x,D],B=[R,(null==b?void 0:b.getValidationProps)??cs,u,P],q=ds("button",e,{enabled:!F,state:V,ref:$,props:B,stateAttributesMapping:Ol});return ge.jsxs(Ml.Provider,{value:L,children:[F?ge.jsx(El,{tag:"button",render:r,className:o,state:V,refs:$,props:B,stateAttributesMapping:Ol}):q,ge.jsx("input",{...A})]})}));"production"!==process.env.NODE_ENV&&(Tl.displayName="RadioRoot");const Rl=n.forwardRef((function(e,t){const{render:r,className:o,keepMounted:i=!1,...a}=e,s=function(){const e=n.useContext(Ml);if(void 0===e)throw new Error("Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>.");return e}(),l=s.checked,{transitionStatus:c,setMounted:d}=Ys(l),u=n.useMemo((()=>({...s,transitionStatus:c})),[s,c]),p=n.useRef(null),f=i||l,h=ds("span",e,{enabled:f,ref:[t,p],state:u,props:a,stateAttributesMapping:Ol});return Gs({open:l,ref:p,onComplete(){l||d(!1)}}),f?h:null}));"production"!==process.env.NODE_ENV&&(Rl.displayName="RadioIndicator");const Pl="_RadioWrapper_9uzf3_1",Dl="_size-small_9uzf3_14",zl="_RadioRippleContainer_9uzf3_26",Al="_RadioRipple_9uzf3_26",Vl="_RadioHover_9uzf3_60",Ll="_Radio_9uzf3_1",Fl="_Indicator_9uzf3_119",$l="_Error_9uzf3_140",Bl=o((({value:e,dataTest:t,className:n,size:r="medium",error:o,disabled:i,...a},s)=>{const l=Ca(Pl,Vl,"small"===r&&Dl,n,o&&$l),u=Ca(Ll,"small"===r&&Dl),p=c(null),f=d((e=>{if(e.stopPropagation(),!p.current)return;const t=document.createElement("span");t.className=Al||"",t.addEventListener("animationend",(()=>t.remove()),{once:!0}),p.current.appendChild(t)}),[]);return ge.jsxs(Tl,{...a,ref:s,value:e,"data-test":t,className:l,disabled:i,onPointerDown:f,children:[ge.jsx("span",{className:zl,ref:p}),ge.jsx("span",{className:u,children:ge.jsx(Rl,{className:Fl})})]})})),ql="ArrowLeft",Hl="ArrowRight",Ul="ArrowUp",Wl="ArrowDown";function Kl(e,t){var n;if(!e||!t)return!1;const r=null==(n=t.getRootNode)?void 0:n.call(t);if(e.contains(t))return!0;if(r&&function(e){return!(!ys()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof vs(e).ShadowRoot)}(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Gl(e){e.preventDefault(),e.stopPropagation()}const Yl=Math.floor;function Jl(e,t,n){return Math.floor(e/t)!==n}function Xl(e,t){return t<0||t>=e.current.length}function Zl(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:o=1}={}){let i=t;do{i+=n?-o:o}while(i>=0&&i<=e.current.length-1&&tc(e,i,r));return i}function Ql(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*r:i;case"br":return n.lastIndexOf(e);default:return-1}}function ec(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function tc(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);const r=e.current[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}const nc="ArrowUp",rc="ArrowDown",oc="ArrowLeft",ic="ArrowRight",ac="Home",sc="End",lc=new Set([oc,ic]),cc=new Set([oc,ic,ac,sc]),dc=new Set([nc,rc]),uc=new Set([nc,rc,ac,sc]),pc=new Set([...lc,...dc]),fc=new Set([...pc,ac,sc]),hc="Shift",mc=new Set([hc,"Control","Alt","Meta"]);function gc(e){return!!(function(e){return bs(e)&&"INPUT"===e.tagName}(e)&&null!=e.selectionStart||bs(e)&&"TEXTAREA"===e.tagName)}function yc(e,t,n,r){if(!e||!t||!t.scrollTo)return;let o=e.scrollLeft,i=e.scrollTop;const a=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(a&&"vertical"!==r){const r=vc(e,t,"left"),i=bc(e),a=bc(t);"ltr"===n&&(r+t.offsetWidth+a.scrollMarginRight>e.scrollLeft+e.clientWidth-i.scrollPaddingRight?o=r+t.offsetWidth+a.scrollMarginRight-e.clientWidth+i.scrollPaddingRight:r-a.scrollMarginLeft<e.scrollLeft+i.scrollPaddingLeft&&(o=r-a.scrollMarginLeft-i.scrollPaddingLeft)),"rtl"===n&&(r-a.scrollMarginRight<e.scrollLeft+i.scrollPaddingLeft?o=r-a.scrollMarginLeft-i.scrollPaddingLeft:r+t.offsetWidth+a.scrollMarginRight>e.scrollLeft+e.clientWidth-i.scrollPaddingRight&&(o=r+t.offsetWidth+a.scrollMarginRight-e.clientWidth+i.scrollPaddingRight))}if(s&&"horizontal"!==r){const n=vc(e,t,"top"),r=bc(e),o=bc(t);n-o.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?i=n-o.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+o.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(i=n+t.offsetHeight+o.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:o,top:i,behavior:"auto"})}function vc(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);)t=t.offsetParent;return o}function bc(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function xc(e){const{children:t,elementsRef:r,labelsRef:o,onMapChange:i}=e,a=n.useRef(0),s=Pa(Cc).current,l=Pa(wc).current,[c,d]=n.useState(cs),u=n.useRef(c),p=Aa(((e,t)=>{l.set(e,t??null),u.current={},d(u.current)})),f=Aa((e=>{l.delete(e),u.current={},d(u.current)})),h=n.useMemo((()=>{const e=new Map;return Array.from(l.keys()).sort(kc).forEach(((t,n)=>{const r=l.get(t)??{};e.set(t,{...r,index:n})})),e}),[l,c]);qa((()=>{if("function"!=typeof MutationObserver||0===h.size)return;const e=new MutationObserver((e=>{const t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach((e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)})),0===t.size&&(u.current={},d(u.current))}));return h.forEach(((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})})),()=>{e.disconnect()}}),[h]),qa((()=>{u.current===c&&(r.current.length!==h.size&&(r.current.length=h.size),o&&o.current.length!==h.size&&(o.current.length=h.size),a.current=h.size),null==i||i(h)}),[i,h,r,o,c]);const m=Aa((e=>(s.add(e),()=>{s.delete(e)})));qa((()=>{s.forEach((e=>e(h)))}),[s,h]);const g=n.useMemo((()=>({register:p,unregister:f,subscribeMapChange:m,elementsRef:r,labelsRef:o,nextIndexRef:a})),[p,f,m,r,o,a]);return ge.jsx(jl.Provider,{value:g,children:t})}function wc(){return new Map}function Cc(){return new Set}function kc(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function jc(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}const Nc=[];function _c(e){const{itemSizes:t,cols:r=1,loop:o=!0,dense:i=!1,orientation:a="both",direction:s,highlightedIndex:l,onHighlightedIndexChange:c,rootRef:d,enableHomeAndEndKeys:u=!1,stopEventPropagation:p=!1,disabledIndices:f,modifierKeys:h=Nc}=e,[m,g]=n.useState(0),y=r>1,v=n.useRef(null),b=Fa(v,d),x=n.useRef([]),w=n.useRef(!1),C=l??m,k=Aa(((e,t=!1)=>{if((c??g)(e),t){const t=x.current[e];yc(v.current,t,s,a)}})),j=Aa((e=>{if(0===e.size||w.current)return;w.current=!0;const t=Array.from(e.keys()),n=t.find((e=>null==e?void 0:e.hasAttribute(kl)))??null,r=n?t.indexOf(n):-1;-1!==r&&k(r),yc(v.current,n,s,a)})),N=n.useMemo((()=>({"aria-orientation":"both"===a?void 0:a,ref:b,onFocus(e){!v.current||!gc(e.target)||e.target.setSelectionRange(0,e.target.value.length??0)},onKeyDown(e){const n=u?fc:pc;if(!n.has(e.key)||function(e,t){for(const n of mc.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,h)||!v.current)return;const l="rtl"===s,c=l?oc:ic,d={horizontal:c,vertical:rc,both:c}[a],m=l?ic:oc,g={horizontal:m,vertical:nc,both:m}[a];if(gc(e.target)&&!jc(e.target)){const t=e.target.selectionStart,n=e.target.selectionEnd,r=e.target.value??"";if(null==t||e.shiftKey||t!==n||e.key!==g&&t<r.length||e.key!==d&&t>0)return}let b=C;const w=function(e,t){return Zl(e,{disabledIndices:t})}(x,f),j=function(e,t){return Zl(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}(x,f);if(y){const n=t||Array.from({length:x.current.length},(()=>({width:1,height:1}))),s=function(e,t,n){const r=[];let o=0;return e.forEach((({width:e,height:i},a)=>{if(e>t&&"production"!==process.env.NODE_ENV)throw new Error(`[Floating UI]: Invalid grid - item width at index ${a} is greater than grid columns`);let s=!1;for(n&&(o=0);!s;){const n=[];for(let r=0;r<e;r+=1)for(let e=0;e<i;e+=1)n.push(o+r+e*t);o%t+e<=t&&n.every((e=>null==r[e]))?(n.forEach((e=>{r[e]=a})),s=!0):o+=1}})),[...r]}(n,r,i),c=s.findIndex((e=>null!=e&&!tc(x,e,f))),d=s.reduce(((e,t,n)=>null==t||tc(x,t,f)?e:n),-1);b=s[function(e,{event:t,orientation:n,loop:r,rtl:o,cols:i,disabledIndices:a,minIndex:s,maxIndex:l,prevIndex:c,stopEvent:d=!1}){let u=c;const p=[],f={};let h=!1;{let t=null,n=-1;e.current.forEach(((e,r)=>{if(null==e)return;const o=e.closest('[role="row"]');o&&(h=!0),(o!==t||-1===n)&&(t=o,n+=1,p[n]=[]),p[n].push(r),f[r]=n}))}const m=h&&p.length>0&&p.some((e=>e.length!==i));function g(t){if(!m||-1===c)return;const n=f[c];if(null==n)return;const o=p[n].indexOf(c);let i="up"===t?n-1:n+1;r&&(i<0?i=p.length-1:i>=p.length&&(i=0));const s=new Set;for(;i>=0&&i<p.length&&!s.has(i);){s.add(i);const n=p[i];if(0!==n.length){for(let t=Math.min(o,n.length-1);t>=0;t-=1){const r=n[t];if(!tc(e,r,a))return r}i="up"===t?i-1:i+1,r&&(i<0?i=p.length-1:i>=p.length&&(i=0))}else i="up"===t?i-1:i+1}}if(t.key===Ul){const n=g("up");if(void 0!==n)d&&Gl(t),u=n;else{if(d&&Gl(t),-1===c)u=l;else if(u=Zl(e,{startingIndex:u,amount:i,decrement:!0,disabledIndices:a}),r&&(c-i<s||u<0)){const e=c%i,t=l%i,n=l-(t-e);u=t===e?l:t>e?n:n-i}Xl(e,u)&&(u=c)}}if(t.key===Wl){const n=g("down");void 0!==n?(d&&Gl(t),u=n):(d&&Gl(t),-1===c?u=s:(u=Zl(e,{startingIndex:c,amount:i,disabledIndices:a}),r&&c+i>l&&(u=Zl(e,{startingIndex:c%i-i,amount:i,disabledIndices:a}))),Xl(e,u)&&(u=c))}if("both"===n){const n=Yl(c/i);t.key===(o?ql:Hl)&&(d&&Gl(t),c%i!=i-1?(u=Zl(e,{startingIndex:c,disabledIndices:a}),r&&Jl(u,i,n)&&(u=Zl(e,{startingIndex:c-c%i-1,disabledIndices:a}))):r&&(u=Zl(e,{startingIndex:c-c%i-1,disabledIndices:a})),Jl(u,i,n)&&(u=c)),t.key===(o?Hl:ql)&&(d&&Gl(t),c%i!=0?(u=Zl(e,{startingIndex:c,decrement:!0,disabledIndices:a}),r&&Jl(u,i,n)&&(u=Zl(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:a}))):r&&(u=Zl(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:a})),Jl(u,i,n)&&(u=c));const s=Yl(l/i)===n;Xl(e,u)&&(u=r&&s?t.key===(o?Hl:ql)?l:Zl(e,{startingIndex:c-c%i-1,disabledIndices:a}):c)}return u}({current:s.map((e=>e?x.current[e]:null))},{event:e,orientation:a,loop:o,cols:r,disabledIndices:ec([...f||x.current.map(((e,t)=>tc(x,t)?t:void 0)),void 0],s),minIndex:c,maxIndex:d,prevIndex:Ql(C>j?w:C,n,s,r,e.key===rc?"bl":e.key===ic?"tr":"tl"),rtl:l})]}const N={horizontal:[c],vertical:[rc],both:[c,rc]}[a],_={horizontal:[m],vertical:[nc],both:[m,nc]}[a],E=y?n:{horizontal:u?cc:lc,vertical:u?uc:dc,both:n}[a];u&&(e.key===ac?b=w:e.key===sc&&(b=j)),b===C&&(N.includes(e.key)||_.includes(e.key))&&(b=o&&b===j&&N.includes(e.key)?w:o&&b===w&&_.includes(e.key)?j:Zl(x,{startingIndex:b,decrement:_.includes(e.key),disabledIndices:f})),b!==C&&!Xl(x,b)&&(p&&e.stopPropagation(),E.has(e.key)&&e.preventDefault(),k(b,!0),queueMicrotask((()=>{var e;null==(e=x.current[b])||e.focus()})))}})),[r,i,s,f,x,u,C,y,t,o,b,h,k,a,p]);return n.useMemo((()=>({props:N,highlightedIndex:C,onHighlightedIndexChange:k,elementsRef:x,disabledIndices:f,onMapChange:j})),[N,C,k,x,f,j])}const Ec=n.createContext(void 0);function Ic(e=!0){const t=n.useContext(Ec);if(void 0===t&&!e)throw new Error("Base UI: DirectionContext is missing.");return(null==t?void 0:t.direction)??"ltr"}function Oc(e){const{render:t,className:r,refs:o=ls,props:i=ls,state:a=cs,stateAttributesMapping:s,highlightedIndex:l,onHighlightedIndexChange:c,orientation:d,dense:u,itemSizes:p,loop:f,cols:h,enableHomeAndEndKeys:m,onMapChange:g,stopEventPropagation:y=!0,rootRef:v,disabledIndices:b,modifierKeys:x,highlightItemOnHover:w=!1,tag:C="div",...k}=e,j=Ic(),{props:N,highlightedIndex:_,onHighlightedIndexChange:E,elementsRef:I,onMapChange:O}=_c({itemSizes:p,cols:h,loop:f,dense:u,orientation:d,highlightedIndex:l,onHighlightedIndexChange:c,rootRef:v,stopEventPropagation:y,enableHomeAndEndKeys:m,direction:j,disabledIndices:b,modifierKeys:x}),S=Aa((e=>{null==g||g(e),O(e)})),M=ds(C,e,{state:a,ref:o,props:[N,...i,k],stateAttributesMapping:s}),T=n.useMemo((()=>({highlightedIndex:_,onHighlightedIndexChange:E,highlightItemOnHover:w})),[_,E,w]);return ge.jsx(Cs.Provider,{value:T,children:ge.jsx(xc,{elementsRef:I,onMapChange:S,children:M})})}"production"!==process.env.NODE_ENV&&(Ec.displayName="DirectionContext");const Sc=[hc],Mc=n.forwardRef((function(e,t){const{render:r,className:o,disabled:i,readOnly:a,required:s,onValueChange:l,value:c,defaultValue:d,name:u,inputRef:p,id:f,...h}=e,{labelId:m,setTouched:g,setFocused:y,validationMode:v,name:b,disabled:x,state:w}=_s(),C=Ps(),{clearErrors:k}=Ms(),j=x||i,N=b??u,_=gs(f),[E,I]=Ta({controlled:c,default:d,name:"RadioGroup",state:"value"}),O=Aa(l),S=Aa(((e,t)=>{O(e,t),!t.isCanceled&&I(e)})),M=n.useRef(null),T=Aa((e=>{null==M.current&&null!=e&&(M.current=e)}));As({id:_,commitValidation:C.commitValidation,value:E,controlRef:M,name:N,getValue:()=>E??null});const R=n.useRef(E);qa((()=>{R.current!==E&&(k(N),"onChange"===v?C.commitValidation(E):C.commitValidation(E,!0))}),[N,k,v,E,C]),qa((()=>{R.current=E}),[E]);const[P,D]=n.useState(!1),z=Aa((e=>{Kl(e.currentTarget,e.relatedTarget)||(g(!0),y(!1),"onBlur"===v&&C.commitValidation(E))})),A=Aa((e=>{e.key.startsWith("Arrow")&&(g(!0),D(!0),y(!0))})),V=n.useMemo((()=>null==E?"":"string"==typeof E?E:JSON.stringify(E)),[E]),L=Qa({value:V,ref:Fa(C.inputRef,p),id:_,name:V?N:void 0,disabled:j,readOnly:a,required:s,"aria-hidden":!0,tabIndex:-1,style:Ha,onFocus(){var e;null==(e=M.current)||e.focus()}},C.getInputValidationProps),F=n.useMemo((()=>({...w,disabled:j??!1,required:s??!1,readOnly:a??!1})),[w,j,a,s]),$=n.useMemo((()=>({...w,checkedValue:E,disabled:j,name:N,onValueChange:O,readOnly:a,registerControlRef:T,required:s,setCheckedValue:S,setTouched:D,touched:P})),[E,j,w,N,O,a,T,s,S,D,P]),B={role:"radiogroup","aria-required":s||void 0,"aria-disabled":j||void 0,"aria-readonly":a||void 0,"aria-labelledby":m,onFocus(){y(!0)},onBlur:z,onKeyDownCapture:A};return ge.jsxs(Sl.Provider,{value:$,children:[ge.jsx(Oc,{render:r,className:o,state:F,props:[B,C.getValidationProps,h],refs:[t],stateAttributesMapping:Ga,enableHomeAndEndKeys:!1,modifierKeys:Sc}),ge.jsx("input",{...L})]})}));"production"!==process.env.NODE_ENV&&(Mc.displayName="RadioGroup");const Tc=o((({value:e,defaultValue:t,onValueChange:n,name:r,id:o,dataTest:i,children:a,...s},l)=>ge.jsx(Mc,{...s,ref:l,value:e,defaultValue:t,"data-test":i,onValueChange:n,children:a}))),Rc=({children:e,onClick:t,className:n,dataTest:r,style:o})=>ge.jsx("div",{className:pi("_styled-label_1fp95_1",n),style:o,onClick:t,"data-test":r,children:e}),Pc=e=>ge.jsx(S,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-800) !important"},"& label.MuiInputLabel-shrink.Mui-focused":{background:"white !important",color:"var(--colors-gama-500) !important"},"& label.MuiInputLabel-shrink.Mui-error.Mui-focused":{background:"white !important",color:"var(--colors-red-500) !important"}}}),Dc=({sx:e,...t})=>ge.jsx(M,{...t,sx:{color:"var(--colors-delta-800)",margin:0,"& .MuiFormControlLabel-label":{fontSize:"14px",lineHeight:"20px"},"&.Mui-disabled .MuiFormControlLabel-label":{color:"var(--colors-delta-300)"},...e}}),zc=e=>ge.jsx(T,{...e}),Ac=e=>ge.jsx(R,{...e}),Vc=e=>ge.jsx(P,{...e}),Lc=e=>ge.jsx(D,{...e}),Fc=e=>{var t,n;return ge.jsx(z,{...e,classes:{paper:pi("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(t=e.classes)?void 0:t.paper),list:pi("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},$c=e=>{var t;return ge.jsx(_,{...e,classes:{selected:"bg-gama-50",root:pi("px-3 py-2.5 hover:bg-delta-50",null==(t=e.classes)?void 0:t.root),...e.classes}})},Bc=e=>ge.jsx(A,{...e}),qc="_styled-link_hyb3l_1",Hc="_styled-link-disabled_hyb3l_16",Uc="_styled-link-xs_hyb3l_32",Wc="_styled-link-small_hyb3l_37",Kc="_styled-link-large_hyb3l_42",Gc=({href:e,disabled:t,size:n="large",dataTest:r,reflink:o,className:i,content:a,contentNode:s,...l})=>{let c=Kc;switch(n){case"small":c=Wc;break;case"xs":c=Uc;break;default:c=Kc}return t?ge.jsxs("span",{className:pi(qc,Hc,c,i),children:[a,s]}):ge.jsxs("a",{...l,"data-test":r,ref:o,href:e,className:pi(qc,c,i),children:[a,s]})},Yc=e=>ge.jsx(V,{...e,sx:{letterSpacing:"normal","&.MuiTab-textColorPrimary.Mui-selected":{color:"var(--colors-gama-500)"},"&.MuiTab-textColorPrimary":{color:"var(--colors-gray-500)"},"&.MuiTab-textColorPrimary.Mui-disabled":{color:"var(--colors-gray-300)"}}}),Jc=e=>ge.jsx(L,{...e,TabIndicatorProps:{style:{background:"var(--colors-gama-500)",color:"var(--colors-gama-500)"}},sx:{"& .MuiTabs-scrollButtons":{border:"1px solid var(--colors-delta-500)",width:40,height:40,borderRadius:"10%",display:"none",justifyContent:"center",alignItems:"center",position:"relative",top:2,"& svg":{fontSize:24,color:"var(--colors-delta-700)"},"&:hover":{backgroundColor:"var(--colors-gama-50)"},"&:first-of-type":{marginRight:"8px"},"&:last-of-type":{marginLeft:"8px"},transition:"opacity 0.3s ease, transform 0.3s ease",opacity:0,transform:"scale(0)"},"& .MuiTabs-scrollButtons.Mui-disabled":{display:"none"},"& .MuiTabs-scrollButtons:not(.Mui-disabled)":{display:"flex",opacity:1,transform:"scale(1)"}}});let Xc;function Zc(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");Xc.has(t)||(Xc.add(t),console.warn(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(Xc=new Set);const Qc=n.createContext(void 0);function ed(){const e=n.useContext(Qc);if(void 0===e)throw new Error("Base UI: AccordionRootContext is missing. Accordion parts must be placed within <Accordion.Root>.");return e}"production"!==process.env.NODE_ENV&&(Qc.displayName="AccordionRootContext");const td={value:()=>null},nd=n.forwardRef((function(e,t){const{render:r,className:o,disabled:i=!1,hiddenUntilFound:a,keepMounted:s,loop:l=!0,onValueChange:c,multiple:d=!0,orientation:u="vertical",value:p,defaultValue:f,...h}=e,m=Ic();"production"!==process.env.NODE_ENV&&qa((()=>{a&&!1===s&&Zc("The `keepMounted={false}` prop on a Accordion.Root will be ignored when using `hiddenUntilFound` since it requires Panels to remain mounted when closed.")}),[a,s]);const g=n.useMemo((()=>{if(void 0===p)return f??[]}),[p,f]),y=Aa(c),v=n.useRef([]),[b,x]=Ta({controlled:p,default:g,name:"Accordion",state:"value"}),w=n.useCallback(((e,t)=>{const n=Fs("none");if(d)if(t){const t=b.slice();if(t.push(e),y(t,n),n.isCanceled)return;x(t)}else{const t=b.filter((t=>t!==e));if(y(t,n),n.isCanceled)return;x(t)}else{const t=b[0]===e?[]:[e];if(y(t,n),n.isCanceled)return;x(t)}}),[y,d,x,b]),C=n.useMemo((()=>({value:b,disabled:i,orientation:u})),[b,i,u]),k=n.useMemo((()=>({accordionItemRefs:v,direction:m,disabled:i,handleValueChange:w,hiddenUntilFound:a??!1,keepMounted:s??!1,loop:l,orientation:u,state:C,value:b})),[m,i,w,a,s,l,u,C,b]),j=ds("div",e,{state:C,ref:t,props:[{dir:m,role:"region"},h],stateAttributesMapping:td});return ge.jsx(Qc.Provider,{value:k,children:ge.jsx(xc,{elementsRef:v,children:j})})}));"production"!==process.env.NODE_ENV&&(nd.displayName="AccordionRoot");const rd=n.createContext(void 0);function od(){const e=n.useContext(rd);if(void 0===e)throw new Error("Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>.");return e}"production"!==process.env.NODE_ENV&&(rd.displayName="CollapsibleRootContext");const id=n.createContext(void 0);function ad(){const e=n.useContext(id);if(void 0===e)throw new Error("Base UI: AccordionItemContext is missing. Accordion parts must be placed within <Accordion.Item>.");return e}"production"!==process.env.NODE_ENV&&(id.displayName="AccordionItemContext");let sd=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Js.startingStyle]="startingStyle",e[e.endingStyle=Js.endingStyle]="endingStyle",e}({}),ld=function(e){return e.panelOpen="data-panel-open",e}({});const cd={[sd.open]:""},dd={[sd.closed]:""},ud={open:e=>e?{[ld.panelOpen]:""}:null},pd={open:e=>e?cd:dd};let fd=function(e){return e.index="data-index",e.disabled="data-disabled",e.open="data-open",e}({});const hd={...pd,index:e=>Number.isInteger(e)?{[fd.index]:String(e)}:null,...Qs,value:()=>null},md=n.forwardRef((function(e,t){const{className:r,disabled:o=!1,onOpenChange:i,render:a,value:s,...l}=e,{ref:c,index:d}=_l(),u=Fa(t,c),{disabled:p,handleValueChange:f,state:h,value:m}=ed(),g=gs(),y=s??g,v=o||p,b=n.useMemo((()=>{if(!m)return!1;for(let e=0;e<m.length;e+=1)if(m[e]===y)return!0;return!1}),[m,y]),x=Aa(((e,t)=>{null==i||i(e,t),!t.isCanceled&&f(y,e)})),w=function(e){const{open:t,defaultOpen:r,onOpenChange:o,disabled:i}=e,a=void 0!==t,[s,l]=Ta({controlled:t,default:r,name:"Collapsible",state:"open"}),{mounted:c,setMounted:d,transitionStatus:u}=Ys(s,!0,!0),[p,f]=n.useState(s),[{height:h,width:m},g]=n.useState({height:void 0,width:void 0}),y=gs(),[v,b]=n.useState(),x=v??y,[w,C]=n.useState(!1),[k,j]=n.useState(!1),N=n.useRef(null),_=n.useRef(null),E=n.useRef(null),I=n.useRef(null),O=Ks(I,!1),S=Aa((e=>{const t=!s,n=Fs("trigger-press",e.nativeEvent);if(o(t,n),n.isCanceled)return;const r=I.current;"css-animation"===_.current&&null!=r&&r.style.removeProperty("animation-name"),!w&&!k&&(null!=_.current&&"css-animation"!==_.current&&!c&&t&&d(!0),"css-animation"===_.current&&(!p&&t&&f(!0),!c&&t&&d(!0))),l(t),"none"===_.current&&c&&!t&&d(!1)}));return qa((()=>{a&&"none"===_.current&&!k&&!s&&d(!1)}),[a,k,s,t,d]),n.useMemo((()=>({abortControllerRef:N,animationTypeRef:_,disabled:i,handleTrigger:S,height:h,mounted:c,open:s,panelId:x,panelRef:I,runOnceAnimationsFinish:O,setDimensions:g,setHiddenUntilFound:C,setKeepMounted:j,setMounted:d,setOpen:l,setPanelIdState:b,setVisible:f,transitionDimensionRef:E,transitionStatus:u,visible:p,width:m})),[N,_,i,S,h,c,s,x,I,O,g,C,j,d,l,f,E,u,p,m])}({open:b,onOpenChange:x,disabled:v}),C=n.useMemo((()=>({open:w.open,disabled:w.disabled,hidden:!w.mounted})),[w.open,w.disabled,w.mounted]),k=n.useMemo((()=>({...w,onOpenChange:x,state:C,transitionStatus:w.transitionStatus})),[w,C,x]),j=n.useMemo((()=>({...h,index:d,disabled:v,open:b})),[v,d,b,h]),[N,_]=n.useState(gs()),E=n.useMemo((()=>({open:b,state:j,setTriggerId:_,triggerId:N})),[b,j,_,N]),I=ds("div",e,{state:j,ref:u,props:l,stateAttributesMapping:hd});return ge.jsx(rd.Provider,{value:k,children:ge.jsx(id.Provider,{value:E,children:I})})}));"production"!==process.env.NODE_ENV&&(md.displayName="AccordionItem");const gd=n.forwardRef((function(e,t){const{render:n,className:r,...o}=e,{state:i}=ad();return ds("h3",e,{state:i,ref:t,props:o,stateAttributesMapping:hd})}));"production"!==process.env.NODE_ENV&&(gd.displayName="AccordionHeader");const yd=new Set([rc,nc,ic,oc,ac,sc]);const vd=n.forwardRef((function(e,t){const{disabled:r,className:o,id:i,render:a,nativeButton:s=!0,...l}=e,{panelId:c,open:d,handleTrigger:u,disabled:p}=od(),f=r??p,{getButtonProps:h,buttonRef:m}=js({disabled:f,focusableWhenDisabled:!0,native:s}),{accordionItemRefs:g,direction:y,loop:v,orientation:b}=ed(),x="rtl"===y,w="horizontal"===b,{state:C,setTriggerId:k,triggerId:j}=ad();qa((()=>(i&&k(i),()=>{k(void 0)})),[i,k]);const N=n.useMemo((()=>({"aria-controls":d?c:void 0,"aria-expanded":d,disabled:f,id:j,onClick:u,onKeyDown(e){if(!yd.has(e.key))return;Gl(e);const t=function(e){const{current:t}=e,n=[];for(let e=0;e<t.length;e+=1){const r=t[e];if(!jc(r)){const e=null==r?void 0:r.querySelector('[type="button"]');jc(e)||n.push(e)}}return n}(g),n=t.length-1;let r=-1;const o=t.indexOf(e.target);function i(){r=v?o+1>n?0:o+1:Math.min(o+1,n)}function a(){r=v&&0===o?n:o-1}switch(e.key){case rc:w||i();break;case nc:w||a();break;case ic:w&&(x?a():i());break;case oc:w&&(x?i():a());break;case"Home":r=0;break;case"End":r=n}r>-1&&t[r].focus()}})),[g,f,u,j,w,x,v,d,c]);return ds("button",e,{state:C,ref:[t,m],props:[N,l,h],stateAttributesMapping:ud})}));"production"!==process.env.NODE_ENV&&(vd.displayName="AccordionTrigger");let bd=function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e}({});let xd=function(e){return e.accordionPanelHeight="--accordion-panel-height",e.accordionPanelWidth="--accordion-panel-width",e}({});const wd=n.forwardRef((function(e,t){const{className:r,hiddenUntilFound:o,keepMounted:i,id:a,render:s,...l}=e,{hiddenUntilFound:c,keepMounted:d}=ed(),{abortControllerRef:u,animationTypeRef:p,height:f,mounted:h,onOpenChange:m,open:g,panelId:y,panelRef:v,runOnceAnimationsFinish:b,setDimensions:x,setHiddenUntilFound:w,setKeepMounted:C,setMounted:k,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:E,width:I,setPanelIdState:O,transitionStatus:S}=od(),M=o??c,T=i??d;"production"!==process.env.NODE_ENV&&qa((()=>{!1===i&&M&&Zc("The `keepMounted={false}` prop on a Accordion.Panel will be ignored when using `contextHiddenUntilFound` on the Panel or the Root since it requires the panel to remain mounted when closed.")}),[M,i]),qa((()=>{if(a)return O(a),()=>{O(void 0)}}),[a,O]),qa((()=>{w(M)}),[w,M]),qa((()=>{C(T)}),[C,T]),Gs({open:g&&"idle"===S,ref:v,onComplete(){g&&x({width:void 0,height:void 0})}});const{props:R}=function(e){const{abortControllerRef:t,animationTypeRef:r,externalRef:o,height:i,hiddenUntilFound:a,keepMounted:s,id:l,mounted:c,onOpenChange:d,open:u,panelRef:p,runOnceAnimationsFinish:f,setDimensions:h,setMounted:m,setOpen:g,setVisible:y,transitionDimensionRef:v,visible:b,width:x}=e,w=n.useRef(!1),C=n.useRef(null),k=n.useRef(u),j=n.useRef(u),N=n.useMemo((()=>"css-animation"===r.current?!b:!u&&!c),[u,c,b,r]),_=Aa((e=>{if(!e)return;if(null==r.current||null==v.current){const t=getComputedStyle(e),n="none"!==t.animationName&&""!==t.animationName,o="0s"!==t.transitionDuration&&""!==t.transitionDuration;n&&o?"production"!==process.env.NODE_ENV&&Zc("CSS transitions and CSS animations both detected on Collapsible or Accordion panel.","Only one of either animation type should be used."):"none"===t.animationName&&"0s"!==t.transitionDuration?r.current="css-transition":"none"!==t.animationName&&"0s"===t.transitionDuration?r.current="css-animation":r.current="none","horizontal"===e.getAttribute(bd.orientation)||t.transitionProperty.indexOf("width")>-1?v.current="width":v.current="height"}if("css-transition"!==r.current)return;e.style.setProperty("display",getComputedStyle(e).display||"block","important"),(void 0===i||void 0===x)&&(h({height:e.scrollHeight,width:e.scrollWidth}),e.style.removeProperty("display"),j.current&&e.style.setProperty("transition-duration","0s"));let t=-1,n=-1;return t=Ws.request((()=>{j.current=!1,n=Ws.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))})),()=>{Ws.cancel(t),Ws.cancel(n)}})),E=Fa(o,p,_);return qa((()=>{if("css-transition"!==r.current)return;const e=p.current;if(!e)return;let n=-1;if(null!=t.current&&(t.current.abort(),t.current=null),!u){h({height:e.scrollHeight,width:e.scrollWidth}),t.current=new AbortController;const n=t.current.signal;let r=-1;const o=Ws.request((()=>{r=Ws.request((()=>{f((()=>{h({height:0,width:0}),e.style.removeProperty("content-visibility"),e.style.removeProperty("display"),m(!1),t.current=null}),n)}))}));return()=>{Ws.cancel(o),Ws.cancel(r)}}{const t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};e.style.setProperty("display",getComputedStyle(e).display||"block","important"),Object.keys(t).forEach((t=>{e.style.setProperty(t,"initial","important")})),!j.current&&!s&&e.setAttribute(sd.startingStyle,""),h({height:e.scrollHeight,width:e.scrollWidth}),n=Ws.request((()=>{e.style.removeProperty("display"),Object.entries(t).forEach((([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)}))}))}return()=>{Ws.cancel(n)}}),[t,r,a,s,c,u,p,f,h,m,v]),qa((()=>{if("css-animation"!==r.current)return;const e=p.current;e&&(C.current=e.style.animationName||C.current,e.style.setProperty("animation-name","none"),h({height:e.scrollHeight,width:e.scrollWidth}),!k.current&&!w.current&&e.style.removeProperty("animation-name"),u?(null!=t.current&&(t.current.abort(),t.current=null),m(!0),y(!0)):(t.current=new AbortController,f((()=>{m(!1),y(!1),t.current=null}),t.current.signal)))}),[t,r,u,p,f,h,m,y,b]),Is((()=>{const e=Ws.request((()=>{k.current=!1}));return()=>Ws.cancel(e)})),qa((()=>{if(!a)return;const e=p.current;if(!e)return;let t=-1,n=-1;return u&&w.current&&(e.style.transitionDuration="0s",h({height:e.scrollHeight,width:e.scrollWidth}),t=Ws.request((()=>{w.current=!1,n=Ws.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))}))),()=>{Ws.cancel(t),Ws.cancel(n)}}),[a,u,p,h]),qa((()=>{const e=p.current;e&&a&&N&&(e.setAttribute("hidden","until-found"),"css-transition"===r.current&&e.setAttribute(sd.startingStyle,""))}),[a,N,r,p]),n.useEffect((function(){const e=p.current;if(e)return e.addEventListener("beforematch",t),()=>{e.removeEventListener("beforematch",t)};function t(e){w.current=!0,g(!0),d(!0,Fs("none",e))}}),[d,p,g]),n.useMemo((()=>({props:{hidden:N,id:l,ref:E}})),[N,l,E])}({abortControllerRef:u,animationTypeRef:p,externalRef:t,height:f,hiddenUntilFound:M,id:a??y,keepMounted:T,mounted:h,onOpenChange:m,open:g,panelRef:v,runOnceAnimationsFinish:b,setDimensions:x,setMounted:k,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:E,width:I}),{state:P,triggerId:D}=ad(),z=ds("div",e,{state:n.useMemo((()=>({...P,transitionStatus:S})),[P,S]),ref:[t,v],props:[R,{"aria-labelledby":D,role:"region",style:{[xd.accordionPanelHeight]:void 0===f?"auto":`${f}px`,[xd.accordionPanelWidth]:void 0===I?"auto":`${I}px`}},l],stateAttributesMapping:hd});return T||M||!T&&h?z:null}));"production"!==process.env.NODE_ENV&&(wd.displayName="AccordionPanel");const Cd={AccordionRoot:"_AccordionRoot_csye9_1",Trigger:"_Trigger_csye9_9",Header:"_Header_csye9_18",TriggerIcon:"_TriggerIcon_csye9_40",Panel:"_Panel_csye9_51",Content:"_Content_csye9_62"},kd=({className:e,children:t,expanded:n,defaultExpanded:r,onChange:o,...i})=>{const a="item",s={...i,type:"single",className:Ca(Cd.AccordionRoot,e),onValueChange:e=>{null==o||o(e.includes(a))},...void 0!==n?{value:n?[a]:[]}:{defaultValue:r?[a]:[]}};return ge.jsx(nd,{...s,children:ge.jsx(md,{value:a,className:Cd.Item,children:t})})},jd=({size:e="large",className:t,sx:n,children:r,...o})=>{const i="small"===e,a={"--trigger-height":i?"48px":"72px","--trigger-padding-x":i?"8px":"16px","--trigger-font-size":i?"14px":"18px","--chevron-size":i?"20px":"24px",...n};return ge.jsx(gd,{className:Cd.Header,children:ge.jsxs(vd,{...o,className:pi(Cd.Trigger,t),style:a,children:[ge.jsx(Fn,{className:Cd.TriggerIcon,"data-state-icon":!0}),r]})})},Nd=({children:e,...t})=>ge.jsx(wd,{...t,className:Cd.Panel,children:ge.jsx("div",{className:Cd.Content,children:e})}),_d=e=>ge.jsx(F,{...e}),Ed=({filterIsActive:e,label:t,hideLabel:n=!1,size:r="large",variant:o="outlined",...i})=>ge.jsx(ge.Fragment,{children:ge.jsxs("div",{className:"w-fit h-fit relative",children:[ge.jsx(da,{...i,type:"button",startIcon:ge.jsx(Zn,{width:"large"===r?24:20,height:"large"===r?24:20}),variant:o,size:r,children:!n&&(t||"Filter")}),e&&ge.jsx("div",{className:pi("h-2 w-2 bg-gama-400 rounded-full absolute","large"===r?"top-2 right-2":"top-1 right-1")})]})}),Id=()=>{const[e,t]=a(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:r=>{e?n():(e=>{t((()=>e.currentTarget))})(r)}}},Od=e=>r.isValidElement(e)||"string"==typeof e||"number"==typeof e||null===e||Array.isArray(e),Sd=({filterIsActive:e,popoverContent:t,dataTest:n,disabled:o,size:i="large",variant:a="outlined",popoverProps:s,anchorNode:l,label:c,hideLabel:d})=>{const{onAnchorClick:u,onClose:p,anchorEl:f}=Id();return ge.jsxs(ge.Fragment,{children:[ge.jsxs("div",{className:"w-fit h-fit relative",children:[l?r.cloneElement(l({isOpen:!!f,onClose:p}),{onClick:u}):ge.jsx(da,{type:"button",disabled:o,variant:a,startIcon:ge.jsx(Zn,{width:"large"===i?24:20,height:"large"===i?24:20}),onClick:u,size:i,dataTest:n,children:!d&&(c||"Filter")}),e&&ge.jsx("div",{className:pi("h-2 w-2 bg-gama-400 rounded-full absolute","large"===i?"top-2 right-2":"top-1 right-1")})]}),ge.jsx(_d,{...s,open:!!f,anchorEl:f,onClose:p,anchorOrigin:(null==s?void 0:s.anchorOrigin)||{vertical:"bottom",horizontal:"right"},transformOrigin:(null==s?void 0:s.transformOrigin)||{vertical:"top",horizontal:"right"},className:(null==s?void 0:s.className)||"my-1",children:Od(t)?t:t({isOpen:!!f,onClose:p})})]})};var Md,Td,Rd={exports:{}},Pd={},Dd={};
19
+ */"production"===process.env.NODE_ENV?pe.exports=function(){if(ue)return fe;ue=1;var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var s,l={},c=null,d=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:i.current}}return fe.Fragment=n,fe.jsx=s,fe.jsxs=s,fe}():pe.exports=(he||(he=1,"production"!==process.env.NODE_ENV&&function(){var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator",y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=y.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(t+="%s",n=n.concat([o]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,n)}var b,x=!1,w=!1,C=!1,k=!1,j=!1;function N(e){return e.displayName||"Context"}function _(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return N(e)+".Consumer";case s:return N(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:_(e.type)||"Memo";case f:var r=e,h=r._payload,m=r._init;try{return _(m(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var E,I,S,O,T,M,R,P=Object.assign,D=0;function z(){}z.__reactDisabledLog=!0;var A,V=y.ReactCurrentDispatcher;function L(e,t,n){if(void 0===A)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);A=r&&r[1]||""}return"\n"+A+e}var F,$=!1,q="function"==typeof WeakMap?WeakMap:Map;function B(e,t){if(!e||$)return"";var n,r=F.get(e);if(void 0!==r)return r;$=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=V.current,V.current=null,function(){if(0===D){E=console.log,I=console.info,S=console.warn,O=console.error,T=console.group,M=console.groupCollapsed,R=console.groupEnd;var e={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,d=l.length-1;c>=1&&d>=0&&s[c]!==l[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==l[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==l[d]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&F.set(e,u),u}}while(c>=1&&d>=0);break}}}finally{$=!1,V.current=o,function(){if(0==--D){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:E}),info:P({},e,{value:I}),warn:P({},e,{value:S}),error:P({},e,{value:O}),group:P({},e,{value:T}),groupCollapsed:P({},e,{value:M}),groupEnd:P({},e,{value:R})})}D<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?L(p):"";return"function"==typeof e&&F.set(e,f),f}function H(e,t,n){if(null==e)return"";if("function"==typeof e)return B(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return L(e);switch(e){case d:return L("Suspense");case u:return L("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return B(e,!1)}(e.render);case p:return H(e.type,t,n);case f:var r=e,o=r._payload,i=r._init;try{return H(i(o),t,n)}catch{}}return""}F=new q;var U=Object.prototype.hasOwnProperty,W={},K=y.ReactDebugCurrentFrame;function G(e){if(e){var t=e._owner,n=H(e.type,e._source,t?t.type:null);K.setExtraStackFrame(n)}else K.setExtraStackFrame(null)}var Y=Array.isArray;function J(e){return Y(e)}function X(e){return""+e}function Z(e){if(function(e){try{return X(e),!1}catch{return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),X(e)}var Q,ee,te,ne=y.ReactCurrentOwner,re={key:!0,ref:!0,__self:!0,__source:!0};te={};var oe=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ie(e,t,n,r,o){var i,a={},s=null,l=null;for(i in void 0!==n&&(Z(n),s=""+n),function(e){if(U.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Z(t.key),s=""+t.key),function(e){if(U.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&ne.current&&t&&ne.current.stateNode!==t){var n=_(ne.current.type);te[n]||(v('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',_(ne.current.type),e.ref),te[n]=!0)}}(t,o)),t)U.call(t,i)&&!re.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var c=e.defaultProps;for(i in c)void 0===a[i]&&(a[i]=c[i])}if(s||l){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){Q||(Q=!0,v("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,d),l&&function(e,t){var n=function(){ee||(ee=!0,v("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,d)}return oe(e,s,l,o,r,ne.current,a)}var ae,se=y.ReactCurrentOwner,le=y.ReactDebugCurrentFrame;function ce(e){if(e){var t=e._owner,n=H(e.type,e._source,t?t.type:null);le.setExtraStackFrame(n)}else le.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function ue(){if(se.current){var e=_(se.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ae=!1;var pe={};function fe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ue();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!pe[n]){pe[n]=!0;var r="";e&&e._owner&&e._owner!==se.current&&(r=" It was passed a child from "+_(e._owner.type)+"."),ce(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ce(null)}}}function he(e,t){if("object"==typeof e)if(J(e))for(var n=0;n<e.length;n++){var r=e[n];de(r)&&fe(r,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)de(i.value)&&fe(i.value,t)}}function ge(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=_(n);!function(e,t,n,r,o){var i=Function.call.bind(U);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(G(o),v("%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).",r||"React class",n,a,typeof s),G(null)),s instanceof Error&&!(s.message in W)&&(W[s.message]=!0,G(o),v("Failed %s type: %s",n,s.message),G(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ae||(ae=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ye(e,n,r,m,g,y){var N=function(e){return!!("string"==typeof e||"function"==typeof e||e===o||e===a||j||e===i||e===d||e===u||k||e===h||x||w||C||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===b||void 0!==e.getModuleId))}(e);if(!N){var E="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(E+=" 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 I,S=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);E+=S||ue(),null===e?I="null":J(e)?I="array":void 0!==e&&e.$$typeof===t?(I="<"+(_(e.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):I=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",I,E)}var O=ie(e,n,r,g,y);if(null==O)return O;if(N){var T=n.children;if(void 0!==T)if(m)if(J(T)){for(var M=0;M<T.length;M++)he(T[M],e);Object.freeze&&Object.freeze(T)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(T,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ce(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ce(null);break}}null!==e.ref&&(ce(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),ce(null))}(O):ge(O),O}var ve=function(e,t,n){return ye(e,t,n,!1)},be=function(e,t,n){return ye(e,t,n,!0)};me.Fragment=o,me.jsx=ve,me.jsxs=be}()),me);var ge=pe.exports;const ye=({color:e="primary",dataTest:t,...n})=>ge.jsx(h,{color:e,"data-test":t,...n,sx:{"& .MuiBadge-colorPrimary":{backgroundColor:"var(--colors-lime-500)",color:"var(--colors-gama-900)"},...n.sx}}),ve=/^[a-z0-9]+(-[a-z0-9]+)*$/,be=(e,t,n,r="")=>{const o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const e=o.pop(),n=o.pop(),i={provider:o.length>0?o[0]:r,prefix:n,name:e};return t&&!xe(i)?null:i}const i=o[0],a=i.split("-");if(a.length>1){const e={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!xe(e)?null:e}if(n&&""===r){const e={provider:r,prefix:"",name:i};return t&&!xe(e,n)?null:e}return null},xe=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(ve)||!(t&&""===e.prefix||e.prefix.match(ve))||!e.name.match(ve)),we=Object.freeze({left:0,top:0,width:16,height:16}),Ce=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ke=Object.freeze({...we,...Ce}),je=Object.freeze({...ke,body:"",hidden:!1});function Ne(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(const r in je)r in Ce?r in e&&!(r in n)&&(n[r]=Ce[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function _e(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(e){i=Ne(r[e]||o[e],i)}return a(t),n.forEach(a),Ne(e,i)}function Ee(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const r=function(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);return(t||Object.keys(n).concat(Object.keys(r))).forEach((function e(t){if(n[t])return o[t]=[];if(!(t in o)){o[t]=null;const n=r[t]&&r[t].parent,i=n&&e(n);i&&(o[t]=[n].concat(i))}return o[t]})),o}(e);for(const o in r){const i=r[o];i&&(t(o,_e(e,o,i)),n.push(o))}return n}const Ie={provider:"",aliases:{},not_found:{},...we};function Se(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Oe(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!Se(e,Ie))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(ve)||"string"!=typeof t.body||!Se(t,je))return null}const r=t.aliases||Object.create(null);for(const e in r){const t=r[e],o=t.parent;if(!e.match(ve)||"string"!=typeof o||!n[o]&&!r[o]||!Se(t,je))return null}return t}const Te=Object.create(null);function Me(e,t){const n=Te[e]||(Te[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function Re(e,t){return Oe(t)?Ee(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let Pe=!1;function De(e){return"boolean"==typeof e&&(Pe=e),Pe}function ze(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),Pe&&!t&&!e.prefix){let t=!1;return Oe(e)&&(e.prefix="",Ee(e,((e,n)=>{n&&function(e,t){const n=be(e,!0,Pe);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(Me(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!xe({provider:t,prefix:n,name:"a"}))return!1;return!!Re(Me(t,n),e)}const Ae=Object.freeze({width:null,height:null}),Ve=Object.freeze({...Ae,...Ce}),Le=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Fe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function $e(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const r=e.split(Le);if(null===r||!r.length)return e;const o=[];let i=r.shift(),a=Fe.test(i);for(;;){if(a){const e=parseFloat(i);isNaN(e)?o.push(i):o.push(Math.ceil(e*t*n)/n)}else o.push(i);if(i=r.shift(),void 0===i)return o.join("");a=!a}}const qe=/\sid="(\S+)"/g,Be="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let He=0;function Ue(e,t=Be){const n=[];let r;for(;r=qe.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const r="function"==typeof t?t(n):t+(He++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")})),e=e.replace(new RegExp(o,"g"),"")}const We=Object.create(null);function Ke(e){return We[e]||We[""]}function Ge(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Ye=Object.create(null),Je=["https://api.simplesvg.com","https://api.unisvg.com"],Xe=[];for(;Je.length>0;)1===Je.length||Math.random()>.5?Xe.push(Je.shift()):Xe.push(Je.pop());function Ze(e,t){const n=Ge(t);return null!==n&&(Ye[e]=n,!0)}function Qe(e){return Ye[e]}Ye[""]=Ge({resources:["https://api.iconify.design"].concat(Xe)});let et=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const tt={prepare:(e,t,n)=>{const r=[],o=function(e,t){const n=Qe(e);if(!n)return 0;let r;if(n.maxURL){let e=0;n.resources.forEach((t=>{e=Math.max(e,t.length)}));const o=t+".json?icons=";r=n.maxURL-e-n.path.length-o.length}else r=0;return r}(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach(((n,l)=>{s+=n.length+1,s>=o&&l>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=n.length),a.icons.push(n)})),r.push(a),r},send:(e,t,n)=>{if(!et)return void n("abort",424);let r=function(e){if("string"==typeof e){const t=Qe(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");r+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;r+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let o=503;et(e+r).then((e=>{const t=e.status;if(200===t)return o=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",o)}))})).catch((()=>{n("next",o)}))}};function nt(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let rt=0;var ot={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function it(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let t=e.resources.slice(0);for(a=[];t.length>1;){const e=Math.floor(Math.random()*t.length);a.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}a=a.concat(t)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let l,c="pending",d=0,u=null,p=[],f=[];function h(){u&&(clearTimeout(u),u=null)}function m(){"pending"===c&&(c="aborted"),h(),p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function g(e,t){t&&(f=[]),"function"==typeof e&&f.push(e)}function y(){c="failed",f.forEach((e=>{e(void 0,l)}))}function v(){p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function b(){if("pending"!==c)return;h();const r=a.shift();if(void 0===r)return p.length?void(u=setTimeout((()=>{h(),"pending"===c&&(v(),y())}),e.timeout)):void y();const o={status:"pending",resource:r,callback:(t,n)=>{!function(t,n,r){const o="success"!==n;switch(p=p.filter((e=>e!==t)),c){case"pending":break;case"failed":if(o||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return l=r,void y();if(o)return l=r,void(p.length||(a.length?b():y()));if(h(),v(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}c="completed",f.forEach((e=>{e(r)}))}(o,t,n)}};p.push(o),d++,u=setTimeout(b,e.rotate),n(r,t,o.callback)}return"function"==typeof r&&f.push(r),setTimeout(b),function(){return{startTime:s,payload:t,status:c,queriesSent:d,queriesPending:p.length,subscribe:g,abort:m}}}function at(e){const t={...ot,...e};let n=[];function r(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,o,i){const a=it(t,e,o,((e,t)=>{r(),i&&i(e,t)}));return n.push(a),a},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function st(){}const lt=Object.create(null);function ct(e,t,n){let r,o;if("string"==typeof e){const t=Ke(e);if(!t)return n(void 0,424),st;o=t.send;const i=function(e){if(!lt[e]){const t=Qe(e);if(!t)return;const n={config:t,redundancy:at(t)};lt[e]=n}return lt[e]}(e);i&&(r=i.redundancy)}else{const t=Ge(e);if(t){r=at(t);const n=Ke(e.resources?e.resources[0]:"");n&&(o=n.send)}}return r&&o?r.query(t,o,n)().abort:(n(void 0,424),st)}const dt="iconify2",ut="iconify",pt=ut+"-count",ft=ut+"-version",ht=36e5,mt=168;function gt(e,t){try{return e.getItem(t)}catch{}}function yt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function vt(e,t){try{e.removeItem(t)}catch{}}function bt(e,t){return yt(e,pt,t.toString())}function xt(e){return parseInt(gt(e,pt))||0}const wt={local:!0,session:!0},Ct={local:new Set,session:new Set};let kt=!1;let jt=typeof window>"u"?{}:window;function Nt(e){const t=e+"Storage";try{if(jt&&jt[t]&&"number"==typeof jt[t].length)return jt[t]}catch{}wt[e]=!1}function _t(e,t){const n=Nt(e);if(!n)return;const r=gt(n,ft);if(r!==dt){if(r){const e=xt(n);for(let t=0;t<e;t++)vt(n,ut+t.toString())}return yt(n,ft,dt),void bt(n,0)}const o=Math.floor(Date.now()/ht)-mt,i=e=>{const r=ut+e.toString(),i=gt(n,r);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>o&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch{}vt(n,r)}};let a=xt(n);for(let t=a-1;t>=0;t--)i(t)||(t===a-1?(a--,bt(n,a)):Ct[e].add(t))}function Et(){if(!kt){kt=!0;for(const e in wt)_t(e,(e=>{const t=e.data,n=Me(e.provider,t.prefix);if(!Re(n,t).length)return!1;const r=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,r):r,!0}))}}function It(e,t){function n(n){let r;if(!wt[n]||!(r=Nt(n)))return;const o=Ct[n];let i;if(o.size)o.delete(i=Array.from(o).shift());else if(i=xt(r),!bt(r,i+1))return;const a={cached:Math.floor(Date.now()/ht),provider:e.provider,data:t};return yt(r,ut+i.toString(),JSON.stringify(a))}kt||Et(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const n in wt)_t(n,(n=>{const r=n.data;return n.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function St(){}function Ot(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach((t=>{const i=t.icons,a=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==o)return!0;const a=t.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else{if(!e.missing.has(a))return n=!0,!0;i.missing.push({provider:r,prefix:o,name:a})}return!1})),i.pending.length!==a&&(n||nt([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const Tt=(e,t)=>{const n=function(e,t=!0,n=!1){const r=[];return e.forEach((e=>{const o="string"==typeof e?be(e,t,n):e;o&&r.push(o)})),r}(e,!0,De()),r=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let r={provider:"",prefix:"",name:""};return e.forEach((e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;const o=e.provider,i=e.prefix,a=e.name,s=n[o]||(n[o]=Object.create(null)),l=s[i]||(s[i]=Me(o,i));let c;c=a in l.icons?t.loaded:""===i||l.missing.has(a)?t.missing:t.pending;const d={provider:o,prefix:i,name:a};c.push(d)})),t}(n);if(!r.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(r.loaded,r.missing,r.pending,St)})),()=>{e=!1}}const o=Object.create(null),i=[];let a,s;return r.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===s&&t===a)return;a=t,s=n,i.push(Me(t,n));const r=o[t]||(o[t]=Object.create(null));r[n]||(r[n]=[])})),r.pending.forEach((e=>{const{provider:t,prefix:n,name:r}=e,i=Me(t,n),a=i.pendingIcons||(i.pendingIcons=new Set);a.has(r)||(a.add(r),o[t][n].push(r))})),i.forEach((e=>{const{provider:t,prefix:n}=e;o[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,r=e.iconsToLoad;let o;delete e.iconsToLoad,r&&(o=Ke(t))&&o.prepare(t,n,r).forEach((n=>{ct(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=Re(e,t);if(!n.length)return;const r=e.pendingIcons;r&&n.forEach((e=>{r.delete(e)})),It(e,t)}catch(e){console.error(e)}Ot(e)}))}))})))}(e,o[t][n])})),t?function(e,t,n){const r=rt++,o=nt.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),o}(t,r,i):St};const Mt=/[\s,]+/;function Rt(e,t){t.split(Mt).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Pt(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=t,o%1==0?r(o):0)}}return t}function Dt(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let zt;function At(e){return void 0===zt&&function(){try{zt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{zt=null}}(),zt?zt.createHTML(e):e}const Vt={...Ve,inline:!1},Lt={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ft={display:"inline-block"},$t={backgroundColor:"currentColor"},qt={backgroundColor:"transparent"},Bt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ht={WebkitMask:$t,mask:$t,background:qt};for(const e in Ht){const t=Ht[e];for(const n in Bt)t[e+n]=Bt[n]}const Ut={...Vt,inline:!0};function Wt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Kt=(e,t,n,o)=>{const i=n?Ut:Vt,a=function(e,t){const n={...e};for(const e in t){const r=t[e],o=typeof r;e in Ae?(null===r||r&&("string"===o||"number"===o))&&(n[e]=r):o===typeof n[e]&&(n[e]="rotate"===e?r%4:r)}return n}(i,t),s=t.mode||"svg",l={},c=t.style||{},d={..."svg"===s?Lt:{},ref:o};for(let e in t){const n=t[e];if(void 0!==n)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[e]=!0===n||"true"===n||1===n;break;case"flip":"string"==typeof n&&Rt(a,n);break;case"color":l.color=n;break;case"rotate":"string"==typeof n?a[e]=Pt(n):"number"==typeof n&&(a[e]=n);break;case"ariaHidden":case"aria-hidden":!0!==n&&"true"!==n&&delete d["aria-hidden"];break;default:void 0===i[e]&&(d[e]=n)}}const u=function(e,t){const n={...ke,...e},r={...Ve,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach((e=>{const t=[],n=e.hFlip,r=e.vFlip;let a,s=e.rotate;switch(n?r?s+=2:(t.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),t.push("scale(-1 1)"),o.top=o.left=0):r&&(t.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),t.push("scale(1 -1)"),o.top=o.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:a=o.height/2+o.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:a=o.width/2+o.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}s%2==1&&(o.left!==o.top&&(a=o.left,o.left=o.top,o.top=a),o.width!==o.height&&(a=o.width,o.width=o.height,o.height=a)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const a=r.width,s=r.height,l=o.width,c=o.height;let d,u;null===a?(u=null===s?"1em":"auto"===s?c:s,d=$e(u,l/c)):(d="auto"===a?l:a,u=null===s?$e(d,c/l):"auto"===s?c:s);const p={},f=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(p[e]=t.toString())};return f("width",d),f("height",u),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:p,body:i}}(e,a),p=u.attributes;if(a.inline&&(l.verticalAlign="-0.125em"),"svg"===s){d.style={...l,...c},Object.assign(d,p);let e=0,n=t.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),d.dangerouslySetInnerHTML={__html:At(Ue(u.body,n?()=>n+"ID"+e++:"iconifyReact"))},r.createElement("svg",d)}const{body:f,width:h,height:m}=e,g="mask"===s||"bg"!==s&&-1!==f.indexOf("currentColor"),y=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(f,{...p,width:h+"",height:m+""});return d.style={...l,"--svg":Dt(y),width:Wt(p.width),height:Wt(p.height),...Ft,...g?$t:qt,...c},r.createElement("span",d)};var Gt;if(De(!0),Gt=tt,We[""]=Gt,typeof document<"u"&&typeof window<"u"){Et();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!ze(e))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const r=t[e];if("object"!=typeof r||!r||void 0===r.resources)continue;Ze(e,r)||console.error(n)}catch{console.error(n)}}}}class Yt extends r.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let r;if("string"!=typeof n||null===(r=be(n,!1,!0)))return this._abortLoading(),void this._setData(null);const o=function(e){const t="string"==typeof e?be(e,!0,Pe):e;if(t){const e=Me(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(r);if(o){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==r.prefix&&e.push("iconify--"+r.prefix),""!==r.provider&&e.push("iconify--"+r.provider),this._setData({data:o,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),null!==o&&(this._loading={name:n,abort:Tt([r],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,t=this.state.icon;if(null===t)return e.children?e.children:r.createElement("span",{});let n=e;return t.classes&&(n={...e,className:("string"==typeof e.className?e.className+" ":"")+t.classes.join(" ")}),Kt({...ke,...t.data},n,e._inline,e._ref)}}const Jt=r.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!1};return r.createElement(Yt,n)}));r.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!0};return r.createElement(Yt,n)}));const Xt="_icon_1czju_5",Zt=({width:e=20,height:t=20,className:n="",icon:r,onClick:o,color:i,vFlip:a=!1})=>ge.jsx(Jt,{onClick:o,icon:r,width:e,height:t,className:`${Xt} ${n}`,color:i,vFlip:a}),Qt=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:r,color:o}),en=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:bell",width:e,height:t,className:n,onClick:r,color:o}),tn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:r,color:o}),nn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:r,color:o}),rn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:chevron-left",width:e,height:t,className:n,onClick:r,color:o}),on=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:r,color:o}),an=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:r,color:o}),sn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"fluent:document-bullet-list-24-filled",width:e,height:t,className:n,onClick:r,color:o}),ln=({width:e=20,height:t=20,className:n="",onClick:r,color:o=""})=>ge.jsx(Zt,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:r,color:o}),cn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:r,color:o}),dn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:r,color:o}),un=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:r,color:o}),pn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:r,color:o});function fn(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4zM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20m0-8"})})}function hn(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M4 21q-.825 0-1.412-.587T2 19V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v14q0 .825-.587 1.413T20 21zm0-2h16V5H4zm5-2q.425 0 .713-.288T10 16q0-.425-.288-.712T9 15H6q-.425 0-.712.288T5 16q0 .425.288.713T6 17zm5.55-4.825l-.725-.725q-.3-.3-.7-.287t-.7.312q-.275.3-.288.7t.288.7L13.85 14.3q.3.3.7.3t.7-.3l3.55-3.55q.3-.3.3-.7t-.3-.7q-.3-.3-.712-.3t-.713.3zM9 13q.425 0 .713-.288T10 12q0-.425-.288-.712T9 11H6q-.425 0-.712.288T5 12q0 .425.288.713T6 13zm0-4q.425 0 .713-.288T10 8q0-.425-.288-.712T9 7H6q-.425 0-.712.288T5 8q0 .425.288.713T6 9zM4 19V5z"})})}function mn(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M4 21q-.825 0-1.412-.587T2 19V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v14q0 .825-.587 1.413T20 21zm5-4q.425 0 .713-.288T10 16q0-.425-.288-.712T9 15H6q-.425 0-.712.288T5 16q0 .425.288.713T6 17zm5.55-4.825l-.725-.725q-.3-.3-.7-.287t-.7.312q-.275.3-.288.7t.288.7L13.85 14.3q.3.3.7.3t.7-.3l3.55-3.55q.3-.3.3-.7t-.3-.7q-.3-.3-.712-.3t-.713.3zM9 13q.425 0 .713-.288T10 12q0-.425-.288-.712T9 11H6q-.425 0-.712.288T5 12q0 .425.288.713T6 13zm0-4q.425 0 .713-.288T10 8q0-.425-.288-.712T9 7H6q-.425 0-.712.288T5 8q0 .425.288.713T6 9z"})})}const gn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:r,color:o}),yn=e=>ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M6 4V1.5h2V4h8V1.5h2V4h4v18H2V4zM4 6v3h16V6zm16 5H4v9h16z"})}),vn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:r,color:o}),bn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:r,color:o}),xn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:r,color:o}),wn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:r,color:o}),Cn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:r,color:o}),kn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:r,color:o}),jn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:r,color:o}),Nn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:report-box-outline",width:e,height:t,className:n,onClick:r,color:o}),_n=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:settings",width:e,height:t,className:n,onClick:r,color:o}),En=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:r,color:o}),In=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:r,color:o,vFlip:!0}),Sn=({color:e="black",size:t="20",className:n=""})=>ge.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,viewBox:`0 0 ${t} ${t}`,fill:"none",children:[ge.jsx("path",{d:"M14.9875 14.1667C16.1366 14.1667 17.0691 13.2334 17.0691 12.0834C17.0691 10.9334 16.1366 10.0001 14.9875 10.0001C13.8385 10.0001 12.9059 10.9334 12.9059 12.0834C12.9059 13.2334 13.8385 14.1667 14.9875 14.1667ZM14.9875 15.2084C13.597 15.2084 10.8243 15.9084 10.8243 17.2917V17.8167C10.8243 18.1001 11.0575 18.3417 11.3489 18.3417H18.6345C18.9176 18.3417 19.159 18.1084 19.159 17.8167V17.2917C19.159 15.9084 16.3863 15.2084 14.9958 15.2084H14.9875Z",fill:e}),ge.jsx("path",{d:"M4.99584 5.83342C6.14488 5.83342 7.07744 4.90008 7.07744 3.75008C7.07744 2.60008 6.14488 1.66675 4.99584 1.66675C3.8468 1.66675 2.91424 2.60008 2.91424 3.75008C2.91424 4.90008 3.8468 5.83342 4.99584 5.83342ZM4.99584 6.87508C3.60533 6.87508 0.832642 7.57508 0.832642 8.95842V9.48342C0.832642 9.76675 1.06578 10.0084 1.3572 10.0084H8.6428C8.9259 10.0084 9.16736 9.77508 9.16736 9.48342V8.95842C9.16736 7.57508 6.39467 6.87508 5.00417 6.87508H4.99584Z",fill:e}),ge.jsx("path",{d:"M9.15156 16.4036V16.2574H6.61874C6.14757 16.2574 5.75868 15.8773 5.75868 15.4167V12.8729L7.04503 14.101L7.77047 13.3773L5.10802 10.8334L2.49792 13.4431L3.23832 14.1521L4.4798 12.9094H4.49476V15.4167C4.49476 16.5644 5.45204 17.5001 6.62622 17.5001H9.15904V16.4036H9.15156Z",fill:e}),ge.jsx("path",{d:"M9.99915 3.59657V3.74277H13.3646C13.8358 3.74277 14.2247 4.12289 14.2247 4.58341V7.12727L12.9383 5.8992L12.2129 6.62289L14.8753 9.16675L17.4854 6.5571L16.745 5.84803L15.5035 7.09072H15.4886V4.58341C15.4886 3.43575 14.5313 2.50008 13.3571 2.50008H9.99168V3.59657H9.99915Z",fill:e})]}),On=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:round-person",width:e,height:t,className:n,onClick:r,color:o}),Tn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:r,color:o}),Mn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:r,color:o}),Rn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:r,color:o}),Pn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:r,color:o}),Dn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:r,color:o}),zn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:r,color:o}),An=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:r,color:o}),Vn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:r,color:o}),Ln=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:r,color:o}),Fn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:r,color:o}),$n=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:r,color:o}),qn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:r,color:o}),Bn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-check",width:e,height:t,className:n,onClick:r,color:o}),Hn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:r,color:o}),Un=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:r,color:o}),Wn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:r,color:o}),Kn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:r,color:o}),Gn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:r,color:o}),Yn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:r,color:o}),Jn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:r,color:o}),Xn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:r,color:o}),Zn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:r,color:o}),Qn=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:r,color:o}),er=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:baseline-dvr",width:e,height:t,className:n,onClick:r,color:o}),tr=({width:e=20,height:t=20,className:n="",onClick:r,color:o="var(--colors-error-500)"})=>ge.jsx(Zt,{icon:"mdi:error-outline",width:e,height:t,className:n,onClick:r,color:o}),nr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:replay",width:e,height:t,className:n,onClick:r,color:o}),rr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:calendar-blank-outline",width:e,height:t,className:n,onClick:r,color:o}),or=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:outline-link",width:e,height:t,className:n,onClick:r,color:o}),ir=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:fact-check-outline",width:e,height:t,className:n,onClick:r,color:o}),ar=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"material-symbols:unknown-document-outline-rounded",width:e,height:t,className:n,onClick:r,color:o}),sr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:list-status",width:e,height:t,className:n,onClick:r,color:o}),lr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:text-box-check-outline",width:e,height:t,className:n,onClick:r,color:o}),cr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ri:list-settings-line",width:e,height:t,className:n,onClick:r,color:o}),dr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"pajamas:earth",width:e,height:t,className:n,onClick:r,color:o}),ur=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"streamline:interface-setting-menu-1-button-parallel-horizontal-lines-menu-navigation-three-hamburger",width:e,height:t,className:n,onClick:r,color:o}),pr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"mdi:pencil-outline",width:e,height:t,className:n,onClick:r,color:o});function fr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M12 5.99L19.53 19H4.47zM12 2L1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"})})}const hr=({width:e=20,height:t=20,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"ic:outline-calendar-month",width:e,height:t,className:n,onClick:r,color:o});function mr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m5.86 10.31C16.23 21.22 14.28 22.45 12 23c-2.56-.61-4.7-2.07-6.42-4.37C3.86 16.34 3 13.8 3 11V5l9-4l9 4v6c0 2.39-.64 4.61-1.92 6.67l-2.91-2.91c.52-.79.83-1.76.83-2.76a5 5 0 0 0-5-5a5 5 0 0 0-5 5a5 5 0 0 0 5 5c1 0 1.97-.31 2.76-.83z"})})}const gr=e=>ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M6 21v-2h12v2z"})}),yr=e=>ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M6 18v-2h12v2zm6-12.4l6 6l-1.4 1.4L12 8.4L7.4 13L6 11.6z"})});function vr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M18 8H6V6h12zm0 3H6V9h12zm0 3H6v-2h12zm4-10a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14l4 4z"})})}function br(e){return ge.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:[ge.jsx("path",{fill:"currentColor",d:"M14 12h4v1.5h-4zm0 3h4v1.5h-4z"}),ge.jsx("path",{fill:"currentColor",d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z"}),ge.jsx("circle",{cx:9,cy:13.5,r:1.5,fill:"currentColor"}),ge.jsx("path",{fill:"currentColor",d:"M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39"})]})}function xr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h8.925l-2 2H5v14h14v-6.95l2-2V19q0 .825-.587 1.413T19 21zm4-6v-4.25l9.175-9.175q.3-.3.675-.45t.75-.15q.4 0 .763.15t.662.45L22.425 3q.275.3.425.663T23 4.4q0 .375-.137.738t-.438.662L13.25 15zM21.025 4.4l-1.4-1.4zM11 13h1.4l5.8-5.8l-.7-.7l-.725-.7L11 11.575zm6.5-6.5l-.725-.7zl.7.7z"})})}function wr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M18 12.998h-5v5a1 1 0 0 1-2 0v-5H6a1 1 0 0 1 0-2h5v-5a1 1 0 0 1 2 0v5h5a1 1 0 0 1 0 2"})})}function Cr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M11 17h2v-4h4v-2h-4V7h-2v4H7v2h4zm1 5q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"})})}function kr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M18.85 21.975q-.2 0-.375-.062t-.325-.213l-5.1-5.1q-.15-.15-.213-.325t-.062-.375t.063-.375t.212-.325l2.125-2.125q.15-.15.325-.212t.375-.063t.375.063t.325.212l5.1 5.1q.15.15.213.325t.062.375t-.062.375t-.213.325L19.55 21.7q-.15.15-.325.213t-.375.062m0-2.375l.725-.725L15.9 15.2l-.725.725zM5.125 22q-.2 0-.387-.075T4.4 21.7l-2.1-2.1q-.15-.15-.225-.338T2 18.876t.075-.375t.225-.325l5.3-5.3h2.125l.85-.85L6.45 7.9H5.025L2 4.875L4.825 2.05L7.85 5.075V6.5l4.125 4.125l2.9-2.9L13.8 6.65l1.4-1.4h-2.825l-.7-.7L15.225 1l.7.7v2.825l1.4-1.4l3.55 3.55q.425.425.65.963t.225 1.137t-.225 1.15t-.65.975L18.75 8.775l-1.4 1.4l-1.05-1.05l-5.175 5.175v2.1l-5.3 5.3q-.15.15-.325.225T5.125 22m0-2.4l4.25-4.25v-.725H8.65l-4.25 4.25zm0 0l-.725-.725l.375.35zm13.725 0l.725-.725z"})})}function jr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M18.85 21.975q-.2 0-.375-.062t-.325-.213l-5.1-5.1q-.15-.15-.213-.325t-.062-.375t.063-.375t.212-.325l2.125-2.125q.15-.15.325-.212t.375-.063t.375.063t.325.212l5.1 5.1q.15.15.213.325t.062.375t-.062.375t-.213.325L19.55 21.7q-.15.15-.325.213t-.375.062M5.125 22q-.2 0-.387-.075T4.4 21.7l-2.1-2.1q-.15-.15-.225-.338T2 18.876t.075-.375t.225-.325l5.3-5.3h2.125l.85-.85L6.45 7.9H5.025L2 4.875L4.825 2.05L7.85 5.075V6.5l4.125 4.125l2.9-2.9L13.8 6.65l1.4-1.4h-2.825l-.7-.7L15.225 1l.7.7v2.825l1.4-1.4l3.55 3.55q.425.425.65.963t.225 1.137t-.225 1.15t-.65.975L18.75 8.775l-1.4 1.4l-1.05-1.05l-5.175 5.175v2.1l-5.3 5.3q-.15.15-.325.225T5.125 22"})})}function Nr(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 9V4h2V2H6v2h2v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1l1-1v-7H19v-2c-1.66 0-3-1.34-3-3"})})}function _r(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M20 6c.58 0 1.05.2 1.42.59c.38.41.58.86.58 1.41v11c0 .55-.2 1-.58 1.41c-.37.39-.84.59-1.42.59H4c-.58 0-1.05-.2-1.42-.59C2.2 20 2 19.55 2 19V8c0-.55.2-1 .58-1.41C2.95 6.2 3.42 6 4 6h4V4c0-.58.2-1.05.58-1.42C8.95 2.2 9.42 2 10 2h4c.58 0 1.05.2 1.42.58c.38.37.58.84.58 1.42v2zM4 8v11h16V8zm10-2V4h-4v2z"})})}const Er=({dataTest:e,readOnly:t,...n})=>ge.jsx(m,{...n,"data-test":e,deleteIcon:ge.jsx(qn,{height:18,width:18}),sx:{border:"1px solid",backgroundColor:"white",borderColor:"var(--colors-delta-200)",color:"var(--colors-delta-800)",...t?{pointerEvents:"none","&:hover":{borderColor:"var(--colors-delta-200)",backgroundColor:"white"}}:{"&:hover":{borderColor:"var(--colors-gama-200)",backgroundColor:"var(--colors-gama-50)"},"&:focus":{outline:"none",borderColor:"var(--colors-gama-400)",backgroundColor:"var(--colors-gama-50)",boxShadow:"0 0 0 1px inset var(--colors-gama-400)"},"&:active":{borderColor:"var(--colors-gama-400)",backgroundColor:"var(--colors-gama-50)",boxShadow:"0 0 0 2px inset var(--colors-gama-400)"},"& .MuiChip-deleteIcon":{border:"1px solid",borderColor:"var(--colors-delta-100)",color:"var(--colors-delta-700)",backgroundColor:"var(--colors-delta-50)",borderRadius:"50%","&:hover":{borderColor:"var(--colors-delta-100)",backgroundColor:"var(--colors-delta-50)",color:"var(--colors-delta-700)"}}},...n.sx}}),Ir=({dataTest:e,...t})=>ge.jsx(g,{...t,"data-test":e,sx:{...t.sx,"&.MuiCheckbox-root":{color:"var(--colors-delta-500) !important"},"&.MuiCheckbox-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.MuiCheckbox-indeterminate":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.Mui-disabled":{color:"var(--colors-delta-200) !important"},"&.MuiCheckbox-root .PrivateSwitchBase-input":{height:"100% !important",width:"100% !important"}}}),Sr=({dataTest:e,...t})=>ge.jsx(y,{...t,"data-test":e,sx:{"&":{color:"var(--colors-delta-500)"},"& input":{height:"100% !important",width:"100% !important"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),Or=({type:e="checkbox",checked:t,...n})=>{const r="checkbox"===e,o=r?Ir:Sr,i=!n.readOnly&&!r&&t,a={borderColor:"var(--colors-gama-300)",backgroundColor:"var(--colors-gama-25)",boxShadow:"0 0 0 1px inset var(--colors-gama-300)"};return ge.jsx(Er,{avatar:ge.jsx(o,{dataTest:n.dataTest,disableRipple:!0,checked:t,size:"small",sx:{pointerEvents:"none"}}),clickable:!0,...n,sx:{...i&&{outline:"none",borderColor:"var(--colors-gama-400)",boxShadow:"0 0 0 1px inset var(--colors-gama-400)",backgroundColor:"var(--colors-gama-50)","&:hover":a},...n.readOnly&&{"& .MuiChip-avatar":{"& .MuiSvgIcon-root":{color:"var(--colors-delta-300)"},"& .MuiCheckbox-root, & .MuiRadio-root":{color:"var(--colors-delta-300)"},"& .Mui-checked":{color:"var(--colors-delta-300)"}}},...t&&{"& .MuiChip-avatar":{"& .MuiSvgIcon-root":{color:"var(--colors-gama-500)"}}},"&:focus:hover":a,...n.sx}})};function Tr(){return Tr=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},Tr.apply(this,arguments)}function Mr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rr.apply(null,arguments)}function Pr(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Dr(e,t){return(Dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}const zr=!1;var Ar="production"!==process.env.NODE_ENV?J.oneOfType([J.number,J.shape({enter:J.number,exit:J.number,appear:J.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&J.oneOfType([J.string,J.shape({enter:J.string,exit:J.string,active:J.string}),J.shape({enter:J.string,enterDone:J.string,enterActive:J.string,exit:J.string,exitDone:J.string,exitActive:J.string})]);const Vr=r.createContext(null);var Lr="unmounted",Fr="exited",$r="entering",qr="entered",Br="exiting",Hr=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Fr,r.appearStatus=$r):o=qr:o=t.unmountOnExit||t.mountOnEnter?Lr:Fr,r.state={status:o},r.nextCallback=null,r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dr(e,t)}(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Lr?{status:Fr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==$r&&n!==qr&&(t=$r):(n===$r||n===qr)&&(t=Br)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===$r){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Q.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fr&&this.setState({status:Lr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Q.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||zr?this.safeSetState({status:qr},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:$r},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:qr},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Q.findDOMNode(this);t&&!zr?(this.props.onExit(r),this.safeSetState({status:Br},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Fr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Fr},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Q.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Lr)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=Pr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(Vr.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function Ur(){}Hr.contextType=Vr,Hr.propTypes="production"!==process.env.NODE_ENV?{nodeRef:J.shape({current:typeof Element>"u"?J.any:function(e,t,n,r,o,i){var a=e[t];return J.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:J.oneOfType([J.func.isRequired,J.element.isRequired]).isRequired,in:J.bool,mountOnEnter:J.bool,unmountOnExit:J.bool,appear:J.bool,enter:J.bool,exit:J.bool,timeout:function(e){var t=Ar;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:J.func,onEnter:J.func,onEntering:J.func,onEntered:J.func,onExit:J.func,onExiting:J.func,onExited:J.func}:{},Hr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ur,onEntering:Ur,onEntered:Ur,onExit:Ur,onExiting:Ur,onExited:Ur},Hr.UNMOUNTED=Lr,Hr.EXITED=Fr,Hr.ENTERING=$r,Hr.ENTERED=qr,Hr.EXITING=Br;const Wr=Hr;function Kr(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function Gr(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Yr(e){if(!Gr(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Yr(e[n])})),t}function Jr(e,t,n={clone:!0}){const r=n.clone?Rr({},e):e;return Gr(e)&&Gr(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Gr(t[o])&&o in e&&Gr(e[o])?r[o]=Jr(e[o],t[o],n):n.clone?r[o]=Gr(t[o])?Yr(t[o]):t[o]:r[o]=t[o])})),r}function Xr(e,t,n,r,o){const i=e[t],a=o||t;if(null==i||typeof window>"u")return null;let s;const l=i.type;return"function"==typeof l&&!function(e){const{prototype:t={}}=e;return!!t.isReactComponent}(l)&&(s="Did you accidentally use a plain function component for an element instead?"),void 0!==s?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Zr=Kr(J.element,Xr);Zr.isRequired=Kr(J.element.isRequired,Xr);const Qr=Zr;function eo(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function to(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":eo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const no=e=>e,ro=(()=>{let e=no;return{configure(t){e=t},generate:t=>e(t),reset(){e=no}}})(),oo=ro,io={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function ao(e,t,n="Mui"){const r=io[t];return r?`${n}-${r}`:`${oo.generate(e)}-${t}`}const so=["values","unit","step"],lo=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Rr({},e,{[t.key]:t.val})),{})};const co={borderRadius:4},uo="production"!==process.env.NODE_ENV?J.oneOfType([J.number,J.string,J.object,J.array]):{};function po(e,t){return t?Jr(e,t,{clone:!1}):e}const fo={xs:0,sm:600,md:900,lg:1200,xl:1536},ho={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fo[e]}px)`};function mo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||ho;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||ho;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||fo).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function go(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function yo(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:go(e,n)||r,t&&(o=t(o,r,e)),o}function vo(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=go(e.theme,r)||{};return mo(e,i,(e=>{let r=yo(a,o,e);return e===r&&"string"==typeof e&&(r=yo(a,o,`${t}${"default"===e?"":to(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:uo}:{},i.filterProps=[t],i}const bo={m:"margin",p:"padding"},xo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Co=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!wo[e])return[e];e=wo[e]}const[t,n]=e.split(""),r=bo[t],o=xo[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),ko=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],No=[...ko,...jo];function _o(e,t,n,r){var o;const i=null!=(o=go(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Eo(e){return _o(e,"spacing",8,"spacing")}function Io(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function So(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Io(t,n),e)),{})}(Co(n),r);return mo(e,e[n],o)}function Oo(e,t){const n=Eo(e.theme);return Object.keys(e).map((r=>So(e,t,r,n))).reduce(po,{})}function To(e){return Oo(e,ko)}function Mo(e){return Oo(e,jo)}function Ro(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?po(n,t[r](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Po(e){return"number"!=typeof e?e:`${e}px solid`}To.propTypes="production"!==process.env.NODE_ENV?ko.reduce(((e,t)=>(e[t]=uo,e)),{}):{},To.filterProps=ko,Mo.propTypes="production"!==process.env.NODE_ENV?jo.reduce(((e,t)=>(e[t]=uo,e)),{}):{},Mo.filterProps=jo,"production"!==process.env.NODE_ENV&&No.reduce(((e,t)=>(e[t]=uo,e)),{});const Do=vo({prop:"border",themeKey:"borders",transform:Po}),zo=vo({prop:"borderTop",themeKey:"borders",transform:Po}),Ao=vo({prop:"borderRight",themeKey:"borders",transform:Po}),Vo=vo({prop:"borderBottom",themeKey:"borders",transform:Po}),Lo=vo({prop:"borderLeft",themeKey:"borders",transform:Po}),Fo=vo({prop:"borderColor",themeKey:"palette"}),$o=vo({prop:"borderTopColor",themeKey:"palette"}),qo=vo({prop:"borderRightColor",themeKey:"palette"}),Bo=vo({prop:"borderBottomColor",themeKey:"palette"}),Ho=vo({prop:"borderLeftColor",themeKey:"palette"}),Uo=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=_o(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Io(t,e)});return mo(e,e.borderRadius,n)}return null};Uo.propTypes="production"!==process.env.NODE_ENV?{borderRadius:uo}:{},Uo.filterProps=["borderRadius"],Ro(Do,zo,Ao,Vo,Lo,Fo,$o,qo,Bo,Ho,Uo);const Wo=e=>{if(void 0!==e.gap&&null!==e.gap){const t=_o(e.theme,"spacing",8,"gap"),n=e=>({gap:Io(t,e)});return mo(e,e.gap,n)}return null};Wo.propTypes="production"!==process.env.NODE_ENV?{gap:uo}:{},Wo.filterProps=["gap"];const Ko=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=_o(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Io(t,e)});return mo(e,e.columnGap,n)}return null};Ko.propTypes="production"!==process.env.NODE_ENV?{columnGap:uo}:{},Ko.filterProps=["columnGap"];const Go=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=_o(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Io(t,e)});return mo(e,e.rowGap,n)}return null};Go.propTypes="production"!==process.env.NODE_ENV?{rowGap:uo}:{},Go.filterProps=["rowGap"];function Yo(e,t){return"grey"===t?t:e}Ro(Wo,Ko,Go,vo({prop:"gridColumn"}),vo({prop:"gridRow"}),vo({prop:"gridAutoFlow"}),vo({prop:"gridAutoColumns"}),vo({prop:"gridAutoRows"}),vo({prop:"gridTemplateColumns"}),vo({prop:"gridTemplateRows"}),vo({prop:"gridTemplateAreas"}),vo({prop:"gridArea"}));function Jo(e){return e<=1&&0!==e?100*e+"%":e}Ro(vo({prop:"color",themeKey:"palette",transform:Yo}),vo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yo}),vo({prop:"backgroundColor",themeKey:"palette",transform:Yo}));const Xo=vo({prop:"width",transform:Jo}),Zo=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||fo[t]||Jo(t)}};return mo(e,e.maxWidth,t)}return null};Zo.filterProps=["maxWidth"];const Qo=vo({prop:"minWidth",transform:Jo}),ei=vo({prop:"height",transform:Jo}),ti=vo({prop:"maxHeight",transform:Jo}),ni=vo({prop:"minHeight",transform:Jo});vo({prop:"size",cssProperty:"width",transform:Jo}),vo({prop:"size",cssProperty:"height",transform:Jo});Ro(Xo,Zo,Qo,ei,ti,ni,vo({prop:"boxSizing"}));const ri={border:{themeKey:"borders",transform:Po},borderTop:{themeKey:"borders",transform:Po},borderRight:{themeKey:"borders",transform:Po},borderBottom:{themeKey:"borders",transform:Po},borderLeft:{themeKey:"borders",transform:Po},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Uo},color:{themeKey:"palette",transform:Yo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yo},backgroundColor:{themeKey:"palette",transform:Yo},p:{style:Mo},pt:{style:Mo},pr:{style:Mo},pb:{style:Mo},pl:{style:Mo},px:{style:Mo},py:{style:Mo},padding:{style:Mo},paddingTop:{style:Mo},paddingRight:{style:Mo},paddingBottom:{style:Mo},paddingLeft:{style:Mo},paddingX:{style:Mo},paddingY:{style:Mo},paddingInline:{style:Mo},paddingInlineStart:{style:Mo},paddingInlineEnd:{style:Mo},paddingBlock:{style:Mo},paddingBlockStart:{style:Mo},paddingBlockEnd:{style:Mo},m:{style:To},mt:{style:To},mr:{style:To},mb:{style:To},ml:{style:To},mx:{style:To},my:{style:To},margin:{style:To},marginTop:{style:To},marginRight:{style:To},marginBottom:{style:To},marginLeft:{style:To},marginX:{style:To},marginY:{style:To},marginInline:{style:To},marginInlineStart:{style:To},marginInlineEnd:{style:To},marginBlock:{style:To},marginBlockStart:{style:To},marginBlockEnd:{style:To},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Wo},rowGap:{style:Go},columnGap:{style:Ko},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jo},maxWidth:{style:Zo},minWidth:{transform:Jo},height:{transform:Jo},maxHeight:{transform:Jo},minHeight:{transform:Jo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},oi=ri;const ii=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const d=go(n,s)||{};return c?c(o):mo(o,t,(t=>{let n=yo(d,l,t);return t===n&&"string"==typeof t&&(n=yo(d,l,`${e}${"default"===t?"":to(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:oi;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=function(e,t){return"function"==typeof e?e(t):e}(r[n],i);if(null!=o)if("object"==typeof o)if(a[n])l=po(l,e(n,o,i,a));else{const e=mo({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?l=po(l,e):l[n]=t({sx:o,theme:i})}else l=po(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();ii.filterProps=["sx"];const ai=ii,si=["breakpoints","palette","spacing","shape"];function li(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Pr(e,si),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Pr(e,so),i=lo(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Rr({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),l=function(e=8){if(e.mui)return e;const t=Eo({spacing:e}),n=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" "));return n.mui=!0,n}(o);let c=Jr({breakpoints:s,direction:"ltr",components:{},palette:Rr({mode:"light"},r),spacing:l,shape:Rr({},co,i)},a);return c=t.reduce(((e,t)=>Jr(e,t)),c),c.unstable_sxConfig=Rr({},oi,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ai({sx:e,theme:this})},c}function ci(e=null){const t=n.useContext(X);return!t||function(e){return 0===Object.keys(e).length}(t)?e:t}const di=li();function ui(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ui(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function pi(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ui(e))&&(r&&(r+=" "),r+=t);return r}function fi(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function hi(e){if(e.type)return e;if("#"===e.charAt(0))return hi(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:eo(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:eo(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function mi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function gi(e){let t="hsl"===(e=hi(e)).type||"hsla"===e.type?hi(function(e){e=hi(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),mi({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function yi(e,t){const n=gi(e),r=gi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function vi(e,t){return Tr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const bi={black:"#000",white:"#fff"},xi={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},wi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ci={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ki={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ji={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ni={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},_i={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ei=["mode","contrastThreshold","tonalOffset"],Ii={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:bi.white,default:bi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Si={text:{primary:bi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:bi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Oi(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=hi(e),t=fi(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mi(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=hi(e),t=fi(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return mi(e)}(e.main,i)))}function Ti(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Mr(e,Ei),i=e.primary||function(e="light"){return"dark"===e?{main:ji[200],light:ji[50],dark:ji[400]}:{main:ji[700],light:ji[400],dark:ji[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:wi[200],light:wi[50],dark:wi[400]}:{main:wi[500],light:wi[300],dark:wi[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ci[500],light:Ci[300],dark:Ci[700]}:{main:Ci[700],light:Ci[400],dark:Ci[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Ni[400],light:Ni[300],dark:Ni[700]}:{main:Ni[700],light:Ni[500],dark:Ni[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:_i[400],light:_i[300],dark:_i[700]}:{main:_i[800],light:_i[500],dark:_i[900]}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:ki[400],light:ki[300],dark:ki[700]}:{main:"#ed6c02",light:ki[500],dark:ki[900]}}(t);function u(e){const t=yi(e,Si.text.primary)>=n?Si.text.primary:Ii.text.primary;if("production"!==process.env.NODE_ENV){const n=yi(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Tr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:eo(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:eo(12,t?` (${t})`:"",JSON.stringify(e.main)));return Oi(e,"light",o,r),Oi(e,"dark",i,r),e.contrastText||(e.contrastText=u(e.main)),e},f={dark:Si,light:Ii};return"production"!==process.env.NODE_ENV&&(f[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Jr(Tr({common:Tr({},bi),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:xi,contrastThreshold:n,getContrastText:u,augmentColor:p,tonalOffset:r},f[t]),o)}const Mi=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Ri(e){return Math.round(1e5*e)/1e5}const Pi={textTransform:"uppercase"},Di='"Roboto", "Helvetica", "Arial", sans-serif';function zi(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Di,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,p=Mr(n,Mi);"production"!==process.env.NODE_ENV&&("number"!=typeof o&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof c&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=o/14,h=u||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>Tr({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Di?{letterSpacing:`${Ri(o/t)}em`}:{},i,d),g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Pi),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Pi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jr(Tr({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Ai(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Vi=["none",Ai(0,2,1,-1,0,1,1,0,0,1,3,0),Ai(0,3,1,-2,0,2,2,0,0,1,5,0),Ai(0,3,3,-2,0,3,4,0,0,1,8,0),Ai(0,2,4,-1,0,4,5,0,0,1,10,0),Ai(0,3,5,-1,0,5,8,0,0,1,14,0),Ai(0,3,5,-1,0,6,10,0,0,1,18,0),Ai(0,4,5,-2,0,7,10,1,0,2,16,1),Ai(0,5,5,-3,0,8,10,1,0,3,14,2),Ai(0,5,6,-3,0,9,12,1,0,3,16,2),Ai(0,6,6,-3,0,10,14,1,0,4,18,3),Ai(0,6,7,-4,0,11,15,1,0,4,20,3),Ai(0,7,8,-4,0,12,17,2,0,5,22,4),Ai(0,7,8,-4,0,13,19,2,0,5,24,4),Ai(0,7,9,-4,0,14,21,2,0,5,26,4),Ai(0,8,9,-5,0,15,22,2,0,6,28,5),Ai(0,8,10,-5,0,16,24,2,0,6,30,5),Ai(0,8,11,-5,0,17,26,2,0,6,32,5),Ai(0,9,11,-5,0,18,28,2,0,7,34,6),Ai(0,9,12,-6,0,19,29,2,0,7,36,6),Ai(0,10,13,-6,0,20,31,3,0,8,38,7),Ai(0,10,13,-6,0,21,33,3,0,8,40,7),Ai(0,10,14,-6,0,22,35,3,0,8,42,7),Ai(0,11,14,-7,0,23,36,3,0,9,44,8),Ai(0,11,15,-7,0,24,38,3,0,9,46,8)],Li=["duration","easing","delay"],Fi={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},$i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qi(e){return`${Math.round(e)}ms`}function Bi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Hi(e){const t=Tr({},Fi,e.easing),n=Tr({},$i,e.duration);return Tr({getAutoHeightDuration:Bi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r,s=Mr(r,Li);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error('MUI: Argument "props" must be a string or Array.'),!n(o)&&!t(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),!n(a)&&!t(a)&&console.error('MUI: Argument "delay" must be a number or a string.'),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:qi(o)} ${i} ${"string"==typeof a?a:qi(a)}`)).join(",")}},e,{easing:t,duration:n})}const Ui={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Wi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Ki=function(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Mr(e,Wi);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":eo(18));const s=Ti(r),l=li(e);let c=Jr(l,{mixins:vi(l.breakpoints,n),palette:s,shadows:Vi.slice(),typography:zi(s,i),transitions:Hi(o),zIndex:Tr({},Ui)});if(c=Jr(c,a),c=t.reduce(((e,t)=>Jr(e,t)),c),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let r;for(r in t){const o=t[r];if(-1!==e.indexOf(r)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=ao("",r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[r]={}}}};Object.keys(c.components).forEach((e=>{const n=c.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)}))}return c.unstable_sxConfig=Tr({},oi,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ai({sx:e,theme:this})},c}(),Gi=Ki;function Yi(){const e=function(e=di){return ci(e)}(Gi);return"production"!==process.env.NODE_ENV&&n.useDebugValue(e),e.$$material||e}function Ji(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const Xi=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Zi={entering:{opacity:1},entered:{opacity:1}},Qi=n.forwardRef((function(e,t){const r=Yi(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:d,onEntered:u,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:y=o,TransitionComponent:v=Wr}=e,b=Mr(e,Xi),x=n.useRef(null),w=function(...e){return n.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}(x,s.ref,t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},k=C(p),j=C(((e,t)=>{(e=>{e.scrollTop})(e);const n=Ji({style:g,timeout:y,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),d&&d(e,t)})),N=C(u),_=C(m),E=C((e=>{const t=Ji({style:g,timeout:y,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),I=C(h);return ge.jsx(v,Tr({appear:a,in:c,nodeRef:x,onEnter:j,onEntered:N,onEntering:k,onExit:E,onExited:I,onExiting:_,addEndListener:e=>{i&&i(x.current,e)},timeout:y},b,{children:(e,t)=>n.cloneElement(s,Tr({style:Tr({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},Zi[e],g,s.props.style),ref:w},t))}))}));"production"!==process.env.NODE_ENV&&(Qi.propTypes={addEndListener:J.func,appear:J.bool,children:Qr.isRequired,easing:J.oneOfType([J.shape({enter:J.string,exit:J.string}),J.string]),in:J.bool,onEnter:J.func,onEntered:J.func,onEntering:J.func,onExit:J.func,onExited:J.func,onExiting:J.func,style:J.object,timeout:J.oneOfType([J.number,J.shape({appear:J.number,enter:J.number,exit:J.number})])});const ea=Qi,ta=e=>{const{componentsProps:t,...n}=e,r=null==t?void 0:t.tooltip;return ge.jsx(v,{TransitionComponent:ea,TransitionProps:{timeout:300},placement:"top",componentsProps:{...t,tooltip:{...r??{},style:{...(null==r?void 0:r.style)||{}},sx:{borderRadius:"3px","& .MuiTooltip-arrow":{color:"#363E4A"},color:"white",boxShadow:"0px 1px 4px 0px rgba(0, 0, 0, 0.25)",display:"flex",padding:"4px 8px",alignItems:"center",fontSize:"12px",lineHeight:"16px",letterSpacing:"0.24px",bgcolor:"#363E4A",wordBreak:"break-word",...null==r?void 0:r.sx}}},...n})},na=e=>ge.jsx(b,{...e}),ra="_styled-label-md_jbn3o_1",oa="_styled-label-base_jbn3o_10",ia="_styled-label-lg_jbn3o_19",aa="_styled-label-xl_jbn3o_27",sa=({title:e,onClick:t,className:n,dataTest:r,size:o="base"})=>{const i=(({size:e})=>{switch(e){case"md":return ra;case"lg":return ia;case"xl":return aa;default:return oa}})({size:o});return ge.jsx("div",{className:pi(i,n),onClick:t,"data-test":r,children:e})},la="_asma-core-ui-button_1fy4m_1",ca={contained:"_contained_1fy4m_27",outlined:"_outlined_1fy4m_139",text:"_text_1fy4m_251",textGray:"_textGray_1fy4m_363",textWhite:"_textWhite_1fy4m_419",large:"_large_1fy4m_78",small:"_small_1fy4m_73",medium:"_medium_1fy4m_68",error:"_error_1fy4m_83",common:"_common_1fy4m_27"},da=({variant:e="contained",className:t="",size:n="medium",children:r,refLink:o,startIcon:i,endIcon:a,dataTest:s,error:l,...c})=>{const d="large"===n||"medium"===n,u=l?"error":"common";return ge.jsxs("button",{...c,className:pi(la,ca[e],ca[u],ca[n],t),ref:o,"data-test":s,children:[i,r&&ge.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",justifyContent:"center",gap:d?"8px":"4px",paddingLeft:d?"8px":"4px",paddingRight:d?"8px":"4px"},children:r}),a]})},ua="_styled-dialog-root_1st3i_1",pa="_styled-top-header_1st3i_6",fa="_styled-dialog-close_1st3i_13",ha="_styled-dialog-info_1st3i_20",ma="_styled-dialog-label_1st3i_27",ga="_styled-dialog-title_1st3i_37";function ya(){const e=function(){const[e,t]=a(window.innerWidth),n=()=>{t(window.innerWidth)};return s((()=>(n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n))),[]),e}();return(e=>e?e<=768:window.innerWidth<768)(e)}const va=({onCloseText:e,children:t,dataTest:n,showCloseIcon:r=!0,dialogLabel:o,dialogTitle:i,dialogHeaderNode:a,...s})=>{const l=ya();return ge.jsxs(x,{"data-test":n,style:{zIndex:999,...s.style},fullScreen:!!l||s.fullScreen,...s,children:[ge.jsx("div",{className:ua,children:o||i||r?ge.jsxs("div",{className:pa,children:[ge.jsxs("div",{className:ha,children:[o&&ge.jsx("div",{className:ma,children:o}),i&&ge.jsx("div",{className:ga,children:i})]}),r&&ge.jsxs("div",{className:fa,children:[a,ge.jsx(da,{dataTest:`close-button-${n}`,variant:"textGray",size:"small",endIcon:ge.jsx(qn,{width:24,height:24}),onClick:e=>{s.onClose&&s.onClose(e,"escapeKeyDown")},style:{color:"var(--colors-grey-800)"},children:e})]})]}):null}),t]})},ba="_styled-dialog-actions-root_1yp8r_1",xa="_styled-dialog-actions_1yp8r_1",wa="_action-button-wrapper_1yp8r_17";function Ca(...e){return ee(pi(e))}const ka=e=>ge.jsx(w,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:ba},children:ge.jsx("div",{className:Ca(xa,e.className),children:r.Children.map(e.children,(e=>ge.jsx("div",{className:wa,children:e})))})}),ja="_styled-dialog-content_d2vki_1",Na=({children:e,classes:t,className:n,...r})=>ge.jsx(C,{...r,"data-test":"styled-dialog-content",classes:{...t,root:ja},className:n,children:e}),_a="_styled-dialog-title-root_mcspk_1",Ea=({children:e,...t})=>e?ge.jsx(k,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:_a},children:e}):null;function Ia(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7 9H2V7h5zm0 3H2v2h5zm13.59 7l-3.83-3.83c-.8.52-1.74.83-2.76.83c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3s1.35 3 3 3s3-1.35 3-3M2 19h10v-2H2z"})})}const Sa=({emptyText:e,isEmpty:t=!0,className:n=""})=>t?ge.jsxs("div",{"data-test":"empty-page-container",className:`flex animate-opacity-in items-center w-full h-full justify-center gap-2 duration-300 text-gray-600 text-sm ${n}`,children:[ge.jsx(Ia,{"data-test":"empty-page-icon",width:24,height:24,className:"text-gray-600 cursor-default"}),ge.jsx("span",{className:"font-normal",children:e})]}):null,Oa={small:16,medium:24,large:32},Ta=({isLoading:e,className:t="",size:n="medium"})=>{if(!e)return null;const r=Oa[n];return ge.jsx("div",{className:pi("flex items-center justify-center h-[50px] w-full text-gama-500 animate-opacity-appear-3",t),children:ge.jsx(Pn,{width:r,height:r})})};function Ma({controlled:e,default:t,name:r,state:o="value"}){const{current:i}=n.useRef(void 0!==e),[a,s]=n.useState(t),l=i?e:a;if("production"!==process.env.NODE_ENV){n.useEffect((()=>{i!==(void 0!==e)&&console.error([`Base UI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[o,r,e]);const{current:a}=n.useRef(t);n.useEffect((()=>{!i&&JSON.stringify(a)!==JSON.stringify(t)&&console.error([`Base UI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"))}),[JSON.stringify(t)])}return[l,n.useCallback((e=>{i||s(e)}),[])]}const Ra={};function Pa(e,t){const r=n.useRef(Ra);return r.current===Ra&&(r.current=e(t)),r}const Da=n[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],za=Da&&Da!==n.useLayoutEffect?Da:e=>e();function Aa(e){const t=Pa(Va).current;return t.next=e,za(t.effect),t.trampoline}function Va(){const e={next:void 0,callback:La,trampoline:(...t)=>{var n;return null==(n=e.callback)?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function La(){if("production"!==process.env.NODE_ENV)throw new Error("Base UI: Cannot call an event handler while rendering.")}function Fa(e,t,n,r){const o=Pa($a).current;return function(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}(o,e,t,n,r)&&qa(o,[e,t,n,r]),o.callback}function $a(){return{callback:null,cleanup:null,refs:[]}}function qa(e,t){e.refs=t,t.every((e=>null==e))?e.callback=null:e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){const r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const o=t[e];if(null!=o)switch(typeof o){case"function":{const t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(null!=n)switch(typeof n){case"function":{const t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}const Ba=typeof document<"u"?n.useLayoutEffect:()=>{},Ha={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1};let Ua=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({}),Wa=function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const Ka={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Ga={valid:e=>null===e?null:e?{[Wa.valid]:""}:{[Wa.invalid]:""}};function Ya(e){return n.useMemo((()=>({checked:t=>e.indeterminate?{}:t?{[Ua.checked]:""}:{[Ua.unchecked]:""},...Ga})),[e.indeterminate])}const Ja=parseInt(n.version,10);function Xa(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}const Za={};function Qa(e,t,n,r,o){let i={...rs(e,Za)};return t&&(i=es(i,t)),n&&(i=es(i,n)),r&&(i=es(i,r)),o&&(i=es(i,o)),i}function es(e,t){return ns(t)?t(e):function(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":e[n]=Xa(e.style,r);break;case"className":e[n]=as(e.className,r);break;default:ts(n,r)?e[n]=os(e[n],r):e[n]=r}}return e}(e,t)}function ts(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||typeof t>"u")}function ns(e){return"function"==typeof e}function rs(e,t){return ns(e)?e(t):e??Za}function os(e,t){return t?e?n=>{if(function(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}(n)){const r=n;is(r);const o=t(r);return r.baseUIHandlerPrevented||null==e||e(r),o}const r=t(n);return null==e||e(n),r}:t:e}function is(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function as(e,t){return t?e?t+" "+e:t:e}function ss(){}const ls=Object.freeze([]),cs=Object.freeze({});function ds(e,t,r={}){const o=t.render,i=function(e,t={}){const{className:n,render:r}=e,{state:o=cs,ref:i,props:a,stateAttributesMapping:s,enabled:l=!0}=t,c=l?function(e,t){return"function"==typeof e?e(t):e}(n,o):void 0,d=l?function(e,t){const n={};for(const r in e){const o=e[r];if(null!=t&&t.hasOwnProperty(r)){const e=t[r](o);null!=e&&Object.assign(n,e)}else!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}(o,s):cs,u=l?Xa(d,Array.isArray(a)?function(e){if(0===e.length)return Za;if(1===e.length)return rs(e[0],Za);let t={...rs(e[0],Za)};for(let n=1;n<e.length;n+=1)t=es(t,e[n]);return t}(a):a)??cs:cs;return typeof document<"u"&&(l?Array.isArray(i)?u.ref=function(e){const t=Pa($a).current;return function(e,t){return e.refs.length!==t.length||e.refs.some(((e,n)=>e!==t[n]))}(t,e)&&qa(t,e),t.callback}([u.ref,us(r),...i]):u.ref=Fa(u.ref,us(r),i):Fa(null,null)),l?(void 0!==c&&(u.className=as(u.className,c)),u):cs}(t,r);if(!1===r.enabled)return null;return function(e,t,r,o){if(t){if("function"==typeof t)return t(r,o);const e=Qa(r,t.props);return e.ref=r.ref,n.cloneElement(t,e)}if(e&&"string"==typeof e)return function(e,t){return"button"===e?ge.jsx("button",{type:"button",...t}):"img"===e?ge.jsx("img",{alt:"",...t}):n.createElement(e,t)}(e,r);throw new Error("Base UI: Render element or function are not defined.")}(e,o,i,r.state??cs)}function us(e){return e&&"function"!=typeof e?function(e){return Ja>=e}(19)?e.props.ref:e.ref:null}const ps={...n};let fs=0;const hs=ps.useId;function ms(e,t){if(void 0!==hs){const n=hs();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){const[r,o]=n.useState(e),i=e||r;return n.useEffect((()=>{null==r&&(fs+=1,o(`${t}-${fs}`))}),[r,t]),i}(e,t)}function gs(e){return ms(e,"base-ui")}function ys(){return typeof window<"u"}function vs(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function bs(e){return!!ys()&&(e instanceof HTMLElement||e instanceof vs(e).HTMLElement)}let xs;function ws(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");xs.has(t)||(xs.add(t),console.error(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(xs=new Set);const Cs=n.createContext(void 0);function ks(e=!1){const t=n.useContext(Cs);if(void 0===t&&!e)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return t}function js(e={}){const{disabled:t=!1,focusableWhenDisabled:r,tabIndex:o=0,native:i=!0}=e,a=n.useRef(null),s=void 0!==ks(!0),l=Aa((()=>{const e=a.current;return!("A"!==(null==e?void 0:e.tagName)||null==e||!e.href)})),{props:c}=function(e){const{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:i=0,isNativeButton:a}=e,s=o&&!1!==t,l=o&&!1===t;return{props:n.useMemo((()=>{const e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return o||(e.tabIndex=i,!a&&r&&(e.tabIndex=t?i:-1)),(a&&(t||s)||!a&&r)&&(e["aria-disabled"]=r),a&&(!t||l)&&(e.disabled=r),e}),[o,r,t,s,l,a,i])}}({focusableWhenDisabled:r,disabled:t,composite:s,tabIndex:o,isNativeButton:i});"production"!==process.env.NODE_ENV&&n.useEffect((()=>{if(!a.current)return;const e="BUTTON"===a.current.tagName;i?e||ws("A component that acts as a button was not rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is a real <button>, or set the `nativeButton` prop on the component to `false`."):e&&ws("A component that acts as a button was rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is not a real <button>, or set the `nativeButton` prop on the component to `true`.")}),[i]);const d=n.useCallback((()=>{const e=a.current;(function(e){return bs(e)&&"BUTTON"===e.tagName})(e)&&s&&t&&void 0===c.disabled&&e.disabled&&(e.disabled=!1)}),[t,c.disabled,s]);Ba(d,[d]);return{getButtonProps:n.useCallback(((e={})=>{const{onClick:n,onMouseDown:r,onKeyUp:o,onKeyDown:a,onPointerDown:s,...d}=e;return Qa({type:i?"button":void 0,onClick(e){t?e.preventDefault():null==n||n(e)},onMouseDown(e){t||null==r||r(e)},onKeyDown(e){if(t||(is(e),null==a||a(e)),e.baseUIHandlerPrevented)return;const r=e.target===e.currentTarget&&!i&&!l()&&!t,o="Enter"===e.key,s=" "===e.key;r&&((s||o)&&e.preventDefault(),o&&(null==n||n(e)))},onKeyUp(e){t||(is(e),null==o||o(e)),!e.baseUIHandlerPrevented&&e.target===e.currentTarget&&!i&&!t&&" "===e.key&&(null==n||n(e))},onPointerDown(e){t?e.preventDefault():null==s||s(e)}},i?void 0:{role:"button"},c,d)}),[t,c,i,l]),buttonRef:Aa((e=>{a.current=e,d()}))}}"production"!==process.env.NODE_ENV&&(Cs.displayName="CompositeRootContext");const Ns=n.createContext({invalid:void 0,controlId:void 0,setControlId:ss,labelId:void 0,setLabelId:ss,messageIds:[],setMessageIds:ss,name:void 0,validityData:{state:Ka,errors:[],error:"",value:"",initialValue:null},setValidityData:ss,disabled:void 0,touched:!1,setTouched:ss,dirty:!1,setDirty:ss,filled:!1,setFilled:ss,focused:!1,setFocused:ss,validate:()=>null,validationMode:"onBlur",validationDebounceTime:0,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1}});function _s(e=!0){const t=n.useContext(Ns);if(t.setControlId===ss&&!e)throw new Error("Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");return t}"production"!==process.env.NODE_ENV&&(Ns.displayName="FieldRootContext");const Es=[];function Is(e){n.useEffect(e,Es)}class Ss{constructor(){t(this,"currentId",0),t(this,"clear",(()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)})),t(this,"disposeEffect",(()=>this.clear))}static create(){return new Ss}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}isStarted(){return 0!==this.currentId}}const Os=n.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:ss});function Ts(){return n.useContext(Os)}function Ms(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}"production"!==process.env.NODE_ENV&&(Os.displayName="FormContext");const Rs=Object.keys(Ka);function Ps(){const{setValidityData:e,validate:t,messageIds:r,validityData:o,validationMode:i,validationDebounceTime:a,invalid:s,markedDirtyRef:l,controlId:c,state:d,name:u}=_s(),{formRef:p,clearErrors:f}=Ts(),h=function(){const e=Pa(Ss.create).current;return Is(e.disposeEffect),e}(),m=n.useRef(null),g=Aa((async(n,r=!1)=>{const i=m.current;if(!i)return;if(r){if(!1!==d.valid)return;const t=i.validity;if(!t.valueMissing){const t={value:n,state:{...Ka,valid:!0},error:"",errors:[],initialValue:o.initialValue};if(i.setCustomValidity(""),c){const e=p.current.fields.get(c);e&&p.current.fields.set(c,{...e,...Ms(t,!1)})}return void e(t)}const r=Rs.reduce(((e,n)=>(e[n]=t[n],e)),{});if(!r.valid&&!function(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(const n of Rs)"valid"!==n&&("valueMissing"===n&&(t=e[n]),e[n]&&(t=!1));return t}(r))return}h.clear();let a=null,u=[];const f=function(e){const t=Rs.reduce(((t,n)=>(t[n]=e.validity[n],t)),{});let n=!1;for(const e of Rs)if("valid"!==e)if("valueMissing"===e&&t[e])n=!0;else if(t[e])return t;return n&&!l.current&&(t.valid=!0,t.valueMissing=!1),t}(i);let g;if(i.validationMessage)g=i.validationMessage,u=[i.validationMessage];else{const e=Array.from(p.current.fields.values()).reduce(((e,t)=>{var n,r;return t.name&&t.getValueRef&&(e[t.name]=null==(r=(n=t.getValueRef).current)?void 0:r.call(n)),e}),{}),r=t(n,e);a="object"==typeof r&&null!==r&&"then"in r?await r:r,null!==a&&(f.valid=!1,f.customError=!0,Array.isArray(a)?(u=a,i.setCustomValidity(a.join("\n"))):a&&(u=[a],i.setCustomValidity(a)))}const y={value:n,state:f,error:g??(Array.isArray(a)?a[0]:a??""),errors:u,initialValue:o.initialValue};if(c){const e=p.current.fields.get(c);e&&p.current.fields.set(c,{...e,...Ms(y,s)})}e(y)})),y=n.useCallback(((e={})=>Qa({...r.length&&{"aria-describedby":r.join(" ")},...!1===d.valid&&{"aria-invalid":!0}},e)),[r,d.valid]),v=n.useCallback(((e={})=>Qa({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(f(u),"onChange"!==i)return void g(e.currentTarget.value,!0);if(s)return;const t=e.currentTarget;""!==t.value?(h.clear(),a?h.start(a,(()=>{g(t.value)})):g(t.value)):g(t.value)}},y(e))),[y,f,u,h,g,s,i,a]);return n.useMemo((()=>({getValidationProps:y,getInputValidationProps:v,inputRef:m,commitValidation:g})),[y,v,g])}function Ds(e){const t=Pa(zs,e).current;return t.next=e,Ba(t.effect),t}function zs(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function As(e){const{formRef:t}=Ts(),{invalid:n,markedDirtyRef:r,validityData:o,setValidityData:i}=_s(),{enabled:a=!0,value:s,id:l,name:c,controlRef:d,commitValidation:u}=e,p=Ds(e.getValue);Ba((()=>{var e;if(!a)return;let t=s;void 0===t&&(t=null==(e=p.current)?void 0:e.call(p)),null===o.initialValue&&t!==o.initialValue&&i((e=>({...e,initialValue:t})))}),[a,i,s,o.initialValue,p]),Ba((()=>{a&&l&&t.current.fields.set(l,{controlRef:d,validityData:Ms(o,n),validate(){var e;let t=s;void 0===t&&(t=null==(e=p.current)?void 0:e.call(p)),r.current=!0,Z.flushSync((()=>u(t)))},getValueRef:p,name:c})}),[u,d,a,t,p,l,n,r,c,o,s]),Ba((()=>{const e=t.current.fields;return()=>{l&&e.delete(l)}}),[t,l])}const Vs=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Vs.displayName="CheckboxGroupContext");const Ls=n.createContext(void 0);function Fs(e,t,n){let r=!1,o=!1;const i=n??cs;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){o=!0},get isCanceled(){return r},get isPropagationAllowed(){return o},...i}}"production"!==process.env.NODE_ENV&&(Ls.displayName="CheckboxRootContext");const $s={},qs=n.forwardRef((function(e,t){const{checked:r,className:o,defaultChecked:i=!1,disabled:a=!1,id:s,indeterminate:l=!1,inputRef:c,name:d,onCheckedChange:u,parent:p=!1,readOnly:f=!1,render:h,required:m=!1,value:g,nativeButton:y=!0,...v}=e,{clearErrors:b}=Ts(),{disabled:x,labelId:w,name:C,setControlId:k,setDirty:j,setFilled:N,setFocused:_,setTouched:E,state:I,validationMode:S,validityData:O}=_s(),T=function(e=!0){const t=n.useContext(Vs);if(void 0===t&&!e)throw new Error("Base UI: CheckboxGroupContext is missing. CheckboxGroup parts must be placed within <CheckboxGroup>.");return t}(),M=null==T?void 0:T.parent,R=M&&T.allValues,P=x||(null==T?void 0:T.disabled)||a,D=C??d,z=g??D;let A={};R&&(p?A=T.parent.getParentProps():z&&(A=T.parent.getChildProps(z)));const V=Aa(u),{checked:L=r,indeterminate:F=l,onCheckedChange:$,...q}=A,B=null==T?void 0:T.value,H=null==T?void 0:T.setValue,U=null==T?void 0:T.defaultValue,W=n.useRef(null),{getButtonProps:K,buttonRef:G}=js({disabled:P,native:y}),Y=Ps(),J=(null==T?void 0:T.fieldControlValidation)??Y,[X,Z]=Ma({controlled:z&&B&&!p?B.includes(z):L,default:z&&U&&!p?U.includes(z):i,name:"Checkbox",state:"checked"}),Q=gs(s);Ba((()=>{const e=null==W?void 0:W.current;if(e)return T?k(s??null):null==e.closest("label")&&k(Q),()=>{k(void 0)}}),[T,Q,s,k]),As({enabled:!T,id:Q,commitValidation:J.commitValidation,value:X,controlRef:W,name:D,getValue:()=>X});const ee=n.useRef(null),te=Fa(c,ee,J.inputRef);Ba((()=>{ee.current&&(ee.current.indeterminate=F,X&&N(!0))}),[X,F,N]);const ne=Aa((()=>_(!0))),re=Aa((()=>{const e=ee.current;e&&(E(!0),_(!1),"onBlur"===S&&J.commitValidation(T?B:e.checked))})),oe=Aa((e=>{var t;e.defaultPrevented||f||(e.preventDefault(),null==(t=ee.current)||t.click())})),ie=Qa({checked:X,disabled:P,name:p?void 0:D,id:`${Q}-input`,required:m,ref:te,style:Ha,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=Fs("none",e.nativeEvent);if(null==$||$(t,n),V(t,n),!n.isCanceled&&(b(D),j(t!==O.initialValue),Z(t),T||(N(t),"onChange"===S?J.commitValidation(t):J.commitValidation(t,!0)),z&&B&&H&&!p)){const e=t?[...B,z]:B.filter((e=>e!==z));H(e,n),N(e.length>0),"onChange"===S?J.commitValidation(e):J.commitValidation(e,!0)}},onFocus(){var e;null==(e=W.current)||e.focus()}},void 0!==g?{value:(T?X&&g:g)||""}:$s,T?J.getValidationProps:J.getInputValidationProps),ae=R?!!L:X,se=R&&F||l;n.useEffect((()=>{M&&z&&M.disabledStatesRef.current.set(z,P)}),[M,P,z]);const le=n.useMemo((()=>({...I,checked:ae,disabled:P,readOnly:f,required:m,indeterminate:se})),[I,ae,P,f,m,se]),ce=Ya(le),de=ds("button",e,{state:le,ref:[G,W,t,null==T?void 0:T.registerControlRef],props:[{id:Q,role:"checkbox",disabled:P,"aria-checked":F?"mixed":X,"aria-readonly":f||void 0,"aria-required":m||void 0,"aria-labelledby":w,"data-parent":p?"":void 0,onFocus:ne,onBlur:re,onClick:oe},J.getValidationProps,v,q,K],stateAttributesMapping:ce});return ge.jsxs(Ls.Provider,{value:le,children:[de,!X&&!T&&e.name&&!p&&ge.jsx("input",{type:"hidden",name:e.name,value:"off"}),ge.jsx("input",{...ie})]})}));"production"!==process.env.NODE_ENV&&(qs.displayName="CheckboxRoot");const Bs=null;let Hs=globalThis.requestAnimationFrame;const Us=new class{constructor(){t(this,"callbacks",[]),t(this,"callbacksCount",0),t(this,"nextId",1),t(this,"startId",1),t(this,"isScheduled",!1),t(this,"tick",(e=>{var t;this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<n.length;r+=1)null==(t=n[r])||t.call(n,e)}))}request(e){const t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;const n="test"===process.env.NODE_ENV&&Hs!==requestAnimationFrame&&(Hs=requestAnimationFrame,!0);return(!this.isScheduled||n)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){const t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class Ws{constructor(){t(this,"currentId",Bs),t(this,"cancel",(()=>{this.currentId!==Bs&&(Us.cancel(this.currentId),this.currentId=Bs)})),t(this,"disposeEffect",(()=>this.cancel))}static create(){return new Ws}static request(e){return Us.request(e)}static cancel(e){return Us.cancel(e)}request(e){this.cancel(),this.currentId=Us.request((()=>{this.currentId=Bs,e()}))}}function Ks(e,t=!1){const n=function(){const e=Pa(Ws.create).current;return Is(e.disposeEffect),e}();return Aa(((r,o=null)=>{if(n.cancel(),null==e)return;let i;if("current"in e){if(null==e.current)return;i=e.current}else i=e;"function"!=typeof i.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED?r():n.request((()=>{function e(){i&&Promise.allSettled(i.getAnimations().map((e=>e.finished))).then((()=>{null!=o&&o.aborted||Z.flushSync(r)}))}t?n.request(e):e()}))}))}function Gs(e){const{enabled:t=!0,open:r,ref:o,onComplete:i}=e,a=Ds(r),s=Aa(i),l=Ks(o,r);n.useEffect((()=>{t&&l((()=>{r===a.current&&s()}))}),[t,r,s,l,a])}function Ys(e,t=!1,r=!1){const[o,i]=n.useState(e&&t?"idle":void 0),[a,s]=n.useState(e);return e&&!a&&(s(!0),i("starting")),!e&&a&&"ending"!==o&&!r&&i("ending"),!e&&!a&&"ending"===o&&i(void 0),Ba((()=>{if(!e&&a&&"ending"!==o&&r){const e=Ws.request((()=>{i("ending")}));return()=>{Ws.cancel(e)}}}),[e,a,o,r]),Ba((()=>{if(!e||t)return;const n=Ws.request((()=>{Z.flushSync((()=>{i(void 0)}))}));return()=>{Ws.cancel(n)}}),[t,e]),Ba((()=>{if(!e||!t)return;e&&a&&"idle"!==o&&i("starting");const n=Ws.request((()=>{i("idle")}));return()=>{Ws.cancel(n)}}),[t,e,a,i,o]),n.useMemo((()=>({mounted:a,setMounted:s,transitionStatus:o})),[a,o])}let Js=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const Xs={[Js.startingStyle]:""},Zs={[Js.endingStyle]:""},Qs={transitionStatus:e=>"starting"===e?Xs:"ending"===e?Zs:null},el=n.forwardRef((function(e,t){const{render:r,className:o,keepMounted:i=!1,...a}=e,s=function(){const e=n.useContext(Ls);if(void 0===e)throw new Error("Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.");return e}(),l=s.checked||s.indeterminate,{transitionStatus:c,setMounted:d}=Ys(l),u=n.useRef(null),p=n.useMemo((()=>({...s,transitionStatus:c})),[s,c]);Gs({open:l,ref:u,onComplete(){l||d(!1)}});const f=Ya(s),h=n.useMemo((()=>({...f,...Qs,...Ga})),[f]),m=i||l,g=ds("span",e,{enabled:m,ref:[t,u],state:p,stateAttributesMapping:h,props:a});return m?g:null}));"production"!==process.env.NODE_ENV&&(el.displayName="CheckboxIndicator");const tl={CheckboxWrapper:"_CheckboxWrapper_rzjd1_1","size-small":"_size-small_rzjd1_13",Checkbox:"_Checkbox_rzjd1_1",ReadOnly:"_ReadOnly_rzjd1_43",Indicator:"_Indicator_rzjd1_55",HideWrapper:"_HideWrapper_rzjd1_59",CheckboxHover:"_CheckboxHover_rzjd1_66",CheckboxRippleContainer:"_CheckboxRippleContainer_rzjd1_66",CheckboxRipple:"_CheckboxRipple_rzjd1_66",ripple:"_ripple_rzjd1_1"},nl=({className:e})=>ge.jsx("svg",{viewBox:"0 0 24 24",className:e,fill:"none",children:ge.jsx("rect",{x:"5.5",y:"10.5",width:"13",height:"2.75",fill:"currentColor"})}),rl=({dataTest:e,size:t="medium",disabled:n,readOnly:o,indeterminate:i=!1,checked:a,disableRipple:l,hideWrapper:c,className:d,onChange:u,...p})=>{const f=!!c,h=!(l||f||n||o),m=Ca(tl.CheckboxWrapper,!f&&tl[`size-${t}`],f&&tl.HideWrapper,o&&tl.ReadOnly,h&&tl.CheckboxHover,d),g=Ca("styled-checkbox-inner",tl.Checkbox,tl[`size-${t}`]),y=i?nl:Bn,v=r.useRef(null),b=r.useCallback((e=>{var t;if(e.stopPropagation(),!h)return;const n=document.createElement("span");n.className=tl.CheckboxRipple||"",n.addEventListener("animationend",(()=>n.remove()),{once:!0}),null==(t=v.current)||t.appendChild(n)}),[h]);s((()=>()=>{var e;null==(e=v.current)||e.replaceChildren()}),[]);const x=r.useCallback((e=>{if(o)return;const t={target:{name:p.name,value:p.value,checked:e}};null==u||u(t,e)}),[u,p.name,p.value,o]);return ge.jsxs(qs,{className:m,"data-test":e,checked:a,disabled:n,readOnly:o,indeterminate:i,onPointerDown:b,onCheckedChange:x,...p,children:[!f&&h&&ge.jsx("span",{ref:v,className:tl.CheckboxRippleContainer}),ge.jsx("span",{className:g,children:ge.jsx(el,{className:tl.Indicator,children:ge.jsx(y,{})})})]})};var ol,il,al={exports:{}},sl={},ll={};
20
20
  /**
21
21
  * @license React
22
22
  * react-jsx-runtime.production.min.js
@@ -35,4 +35,4 @@ var e=Object.defineProperty,t=(t,n,r)=>(((t,n,r)=>{n in t?e(t,n,{enumerable:!0,c
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
37
  */
38
- "production"===process.env.NODE_ENV?Rd.exports=function(){if(Md)return Pd;Md=1;var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var s,l={},c=null,d=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:i.current}}return Pd.Fragment=n,Pd.jsx=s,Pd.jsxs=s,Pd}():Rd.exports=(Td||(Td=1,"production"!==process.env.NODE_ENV&&function(){var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator",y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,o)}(0,e,n)}var b;function x(e){return e.displayName||"Context"}function w(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return x(e)+".Consumer";case s:return x(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:w(e.type)||"Memo";case f:var r=e,h=r._payload,m=r._init;try{return w(m(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var C,k,j,N,_,E,I,O=Object.assign,S=0;function M(){}M.__reactDisabledLog=!0;var T,R=y.ReactCurrentDispatcher;function P(e,t,n){if(void 0===T)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);T=r&&r[1]||""}return"\n"+T+e}var D,z=!1,A="function"==typeof WeakMap?WeakMap:Map;function V(e,t){if(!e||z)return"";var n,r=D.get(e);if(void 0!==r)return r;z=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=R.current,R.current=null,function(){if(0===S){C=console.log,k=console.info,j=console.warn,N=console.error,_=console.group,E=console.groupCollapsed,I=console.groupEnd;var e={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}S++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,d=l.length-1;c>=1&&d>=0&&s[c]!==l[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==l[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==l[d]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&D.set(e,u),u}}while(c>=1&&d>=0);break}}}finally{z=!1,R.current=o,function(){if(0==--S){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:C}),info:O({},e,{value:k}),warn:O({},e,{value:j}),error:O({},e,{value:N}),group:O({},e,{value:_}),groupCollapsed:O({},e,{value:E}),groupEnd:O({},e,{value:I})})}S<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?P(p):"";return"function"==typeof e&&D.set(e,f),f}function L(e,t,n){if(null==e)return"";if("function"==typeof e)return V(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return P(e);switch(e){case d:return P("Suspense");case u:return P("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return V(e,!1)}(e.render);case p:return L(e.type,t,n);case f:var o=e,i=o._payload,a=o._init;try{return L(a(i),t,n)}catch{}}return""}D=new A;var F=Object.prototype.hasOwnProperty,$={},B=y.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);B.setExtraStackFrame(n)}else B.setExtraStackFrame(null)}var H=Array.isArray;function U(e){return H(e)}function W(e){return""+e}function K(e){if(function(e){try{return W(e),!1}catch{return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",(t=e,"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object")),W(e);var t}var G,Y,J,X=y.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};J={};var Q=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};var ee,te=y.ReactCurrentOwner,ne=y.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);ne.setExtraStackFrame(n)}else ne.setExtraStackFrame(null)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function ie(){if(te.current){var e=w(te.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ee=!1;var ae={};function se(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ie();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!ae[n]){ae[n]=!0;var r="";e&&e._owner&&e._owner!==te.current&&(r=" It was passed a child from "+w(e._owner.type)+"."),re(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),re(null)}}}function le(e,t){if("object"==typeof e)if(U(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&se(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)oe(i.value)&&se(i.value,t)}}function ce(e,n,r,m,g,y){var x,C=!("string"!=typeof(x=e)&&"function"!=typeof x&&x!==o&&x!==a&&x!==i&&x!==d&&x!==u&&x!==h&&("object"!=typeof x||null===x||x.$$typeof!==f&&x.$$typeof!==p&&x.$$typeof!==s&&x.$$typeof!==l&&x.$$typeof!==c&&x.$$typeof!==b&&void 0===x.getModuleId));if(!C){var k="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j,N=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);k+=N||ie(),null===e?j="null":U(e)?j="array":void 0!==e&&e.$$typeof===t?(j="<"+(w(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,k)}var _=function(e,t,n,r,o){var i,a,s,l,c={},d=null,u=null;for(i in void 0!==n&&(K(n),d=""+n),function(e){if(F.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(K(t.key),d=""+t.key),function(e){if(F.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&X.current&&t&&X.current.stateNode!==t){var n=w(X.current.type);J[n]||(v('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',w(X.current.type),e.ref),J[n]=!0)}}(t,o)),t)F.call(t,i)&&!Z.hasOwnProperty(i)&&(c[i]=t[i]);if(e&&e.defaultProps){var p=e.defaultProps;for(i in p)void 0===c[i]&&(c[i]=p[i])}if(d||u){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;d&&(a=c,s=f,(l=function(){G||(G=!0,v("%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)",s))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:l,configurable:!0})),u&&function(e,t){var n=function(){Y||(Y=!0,v("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(c,f)}return Q(e,d,u,o,r,X.current,c)}(e,n,r,g,y);if(null==_)return _;if(C){var E=n.children;if(void 0!==E)if(m)if(U(E)){for(var I=0;I<E.length;I++)le(E[I],e);Object.freeze&&Object.freeze(E)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(E,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){re(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),re(null);break}}null!==e.ref&&(re(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}(_):function(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=w(n);!function(e,t,n,r,o){var i=Function.call.bind(F);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(q(o),v("%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).",r||"React class",n,a,typeof s),q(null)),s instanceof Error&&!(s.message in $)&&($[s.message]=!0,q(o),v("Failed %s type: %s",n,s.message),q(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ee||(ee=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}Dd.Fragment=o,Dd.jsx=function(e,t,n){return ce(e,t,n,!1)},Dd.jsxs=function(e,t,n){return ce(e,t,n,!0)}}()),Dd);var zd=Rd.exports;function Ad(e){return zd.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zd.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,children:[zd.jsx("path",{strokeDasharray:60,strokeDashoffset:60,strokeOpacity:.3,d:"M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z",children:zd.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),zd.jsxs("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3C16.9706 3 21 7.02944 21 12",children:[zd.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),zd.jsx("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})})}function Vd(e){return zd.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zd.jsx("path",{fill:"currentColor",d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})})}const Ld=({className:e,contentToCopy:t,locale:n,messageInfo:r,text:o})=>{const i="en"===n?"Copy":"Kopier",a=ya();return ge.jsx(ta,{title:i,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"copy-button",className:e,size:"small",variant:"text",startIcon:ge.jsx(Vd,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},children:!a&&(o||i)})})})},Fd="_copy-wrapper_1gjzc_1",$d="_hidden-copy_1gjzc_1",Bd=({className:e,contentToCopy:t,locale:n,messageInfo:r,children:o})=>ge.jsxs("div",{className:Ca("flex items-center hover:text-gama-500",Fd,e),children:[o,ge.jsx(ta,{title:"no"===n?"Kopier":"Copy",className:$d,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"copy-button",size:"small",variant:"text",className:"cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},startIcon:ge.jsx(Vd,{width:20,height:20})})})})]}),qd="_styled-widget-title_1mja5_1",Hd=function(e){return ge.jsx("div",{className:qd,children:e.children})},Ud="_styled-widget-header_yk04z_1",Wd=({actions:e,title:t,containerClassname:n,actionsClassname:r})=>ge.jsxs("div",{className:Ca(Ud,n),children:[ge.jsx(Hd,{children:t}),ge.jsx("div",{className:r,children:e})]}),Kd="_asma-core-ui-styled-widget_fvr2z_1",Gd="_widget-header-left_fvr2z_19",Yd="_widget-header-right_fvr2z_25",Jd="_widget-content_fvr2z_31",Xd="_widget-footer_fvr2z_41",Zd="_widget-link_fvr2z_46";function Qd(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})})}function eu(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})})}const tu=({children:e,title:t,icon:n,link:r,viewMore:o,persistKey:i,isLoading:l,isEmpty:c,emptyText:d,headerRight:u,headerRightClassName:p})=>{const[f,h]=a(!1);s((()=>{if(i){const e=localStorage.getItem(i);h("true"===e)}}),[i]),s((()=>{i&&localStorage.setItem(i,String(f))}),[f,i]);const m=!!r&&!r.hide,g=!(!o||null!=o&&o.hide);return ge.jsxs("div",{className:Kd,children:[ge.jsxs("div",{className:Gd,children:[n,ge.jsx(Hd,{children:t}),ge.jsx("div",{className:`${Yd} ${p??""}`,children:u})]}),ge.jsx("div",{className:Jd,children:ge.jsxs(ge.Fragment,{children:[e,ge.jsx(Ma,{isLoading:l}),ge.jsx(Oa,{isEmpty:c,emptyText:d})]})}),g&&ge.jsxs("div",{className:Xd,children:[!o||null!=o&&o.hide?ge.jsx("div",{}):ge.jsx(da,{disabled:o.disabled,dataTest:"view-more",variant:"text",endIcon:f?ge.jsx(Qd,{width:20,height:20}):ge.jsx(eu,{width:20,height:20}),onClick:()=>{var e;h(!f),null==(e=null==o?void 0:o.onClick)||e.call(o)},children:f?o.viewLessText:o.viewMoreText}),m?ge.jsx(Gc,{dataTest:"go-to-button",className:Zd,size:"small",href:r.href,onClick:r.onClick,content:r.content}):ge.jsx("div",{})]})]})},nu="_styled-module-title_174mo_1",ru=function(e){return ge.jsx("h1",{"data-test":e.dataTest,className:nu,children:e.children})},ou="_dialog_erjok_1",iu="_hidden_erjok_9";function au(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M10 21v-2H6.41l4.5-4.5l-1.41-1.41l-4.5 4.5V14H3v7zm4.5-10.09l4.5-4.5V10h2V3h-7v2h3.59l-4.5 4.5z"})})}function su(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M19.5 3.09L15 7.59V4h-2v7h7V9h-3.59l4.5-4.5zM4 13v2h3.59l-4.5 4.5l1.41 1.41l4.5-4.5V20h2v-7z"})})}const lu="object"==typeof global&&global&&global.Object===Object&&global;var cu="object"==typeof self&&self&&self.Object===Object&&self;const du=(lu||cu||Function("return this")()).Symbol;var uu=Object.prototype,pu=uu.hasOwnProperty,fu=uu.toString,hu=du?du.toStringTag:void 0;var mu=Object.prototype.toString;var gu="[object Null]",yu="[object Undefined]",vu=du?du.toStringTag:void 0;function bu(e){return null==e?void 0===e?yu:gu:vu&&vu in Object(e)?function(e){var t=pu.call(e,hu),n=e[hu];try{e[hu]=void 0;var r=!0}catch{}var o=fu.call(e);return r&&(t?e[hu]=n:delete e[hu]),o}(e):function(e){return mu.call(e)}(e)}const xu=Array.isArray;function wu(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=bu(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const Cu=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:r="",showCloseIcon:o=!0,showMinimizeIcon:i=!0,showExpandIcon:s=!0,showFullScreenIcon:l=!0,title:c,label:u,children:p,open:f,onClose:h,className:m="",primaryButtonText:g,primaryButtonLoading:y=!1,secondaryButtonText:v,onPrimaryButtonClick:b,onSecondaryButtonClick:x,dataTest:w,actionNode:C,extraActions:k,extraActionsText:j,btnContainerClassName:N,footerClassName:_,footerInfo:E,locale:I="en",enableFullscreen:O=!0,fullScreenState:S,handleFullScreenState:M})=>{const[T,R]=a(!1),[P,D]=a(!1),{open:z,anchorEl:A,handleOpen:V,handleClose:L}=(()=>{const[e,t]=a(null),n=!!e,r=d((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:d((()=>{t(null)}),[]),handleOpen:r,anchorEl:e}})();if(!f)return null;const F=void 0!==S?S:P,$=g||y,B=$||v,q=()=>{R(!T)};return ge.jsxs(ge.Fragment,{children:[F&&!T&&ge.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ge.jsx("div",{style:{zIndex:51},className:Ca(ou,!T&&iu),children:ge.jsxs("div",{className:pi("flex items-center justify-between",!T&&"hidden"),"data-test":w,children:[ge.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[s&&ge.jsx(ta,{title:"en"===I?"Expand":"Utvid",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"minimize-button",variant:"text",size:"small",onClick:q,endIcon:s&&ge.jsx(yr,{height:20,width:20,color:"text-gama-500"}),children:n})})}),o&&ge.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:o&&ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]})}),ge.jsxs("div",{className:Ca("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",m&&!T?m:"",T&&"!h-0 !w-0 opacity-0 duration-0",F&&!T&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0"),"data-test":w,children:[ge.jsxs("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[u?ge.jsx("div",{className:"text-sm text-delta-700",children:u}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[C,i&&ge.jsx(ta,{title:"en"===I?"Minimize":"Minimer",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:q,endIcon:i&&ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:t})})}),O&&l&&ge.jsx(ta,{title:F?"en"===I?"Exit full screen":"Avslutt fullskjerm":"en"===I?"Full screen":"Fullskjerm",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==S&&M?M():D(!P)},endIcon:F?ge.jsx(su,{width:20,height:20,color:"text-delta-700"}):ge.jsx(au,{width:20,height:20,color:"text-delta-700"}),children:r})})}),o&&ge.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),u&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:c})]}),ge.jsxs("div",{className:pi("flex flex-col",F&&!T&&"h-[87dvh]"),children:[ge.jsx("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof p?p({fullScreen:F}):p}),(xu(k)&&null!=k&&k.length||wu(k))&&j||E?ge.jsxs("div",{className:Ca("flex items-center justify-between p-4 border-0 border-t-[1px] border-solid border-delta-200 bg-white",_),children:[xu(k)&&null!=k&&k.length&&j?ge.jsxs(ge.Fragment,{children:[ge.jsx(da,{dataTest:"extra-actions-button",variant:"textGray",startIcon:ge.jsx(Tn,{width:24,height:24}),onClick:V,children:j}),ge.jsx(Fc,{open:z,anchorEl:A,onClose:L,children:k.map((e=>ge.jsx($c,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):j&&wu(k)&&ge.jsx(da,{dataTest:"extra-action-button",variant:"text",onClick:k,children:j})," ",E,B?ge.jsxs("div",{className:Ca("flex justify-end gap-x-4",N),children:[v&&x&&ge.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:v}),$&&b&&ge.jsx(da,{dataTest:"save-button",startIcon:y&&ge.jsx(Ad,{width:24,height:24}),onClick:b,children:g})]}):null]}):ge.jsx(ge.Fragment,{children:B?ge.jsxs("div",{className:Ca("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",N),children:[v&&x&&ge.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:v}),$&&b&&ge.jsx(da,{dataTest:"save-button",startIcon:y&&ge.jsx(Ad,{width:24,height:24}),onClick:b,children:g})]}):null})]})]})]})},ku=({showCloseIcon:e,tooltipTitle:t,onClick:n})=>e?ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:n,endIcon:ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"})})})}):null,ju=({visibility:e,tooltipTitle:t,onClick:n,type:r})=>{if(!e)return null;const o="minimize"===r;return"expand"===r?ge.jsx("div",{children:ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"toggle-minimize-btn",variant:"text",size:"small",onClick:n,endIcon:ge.jsx(yr,{height:20,width:20,color:"text-gama-500"})})})})}):o?ge.jsx("div",{children:ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"toggle-minimize-btn",variant:"textGray",size:"small",onClick:n,endIcon:ge.jsx(gr,{height:20,width:20,color:"text-delta-700"})})})})}):null},Nu=({fullScreen:e,showFullScreenIcon:t,tooltipTitle:n,onClick:r})=>t?ge.jsx(ta,{title:n,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:r,endIcon:e?ge.jsx(su,{width:20,height:20,color:"text-delta-700"}):ge.jsx(au,{width:20,height:20,color:"text-delta-700"})})})}):null,_u="_minimized-dialog_16tvw_5",Eu="_dialog_16tvw_1",Iu="_hidden_16tvw_27",Ou={en:{close:"Close",expand:"Expand",minimize:"Minimize",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen"},no:{close:"Lukk",expand:"Utvid",minimize:"Minimer",fullscreen:"Fullskjerm",exitFullscreen:"Avslutt fullskjerm"}};const Su=e=>{const{showCloseIcon:t=!0,showMinimizeIcon:n=!0,showExpandIcon:r=!0,enableFullscreen:o=!0,title:i,label:s,children:l,open:d,onClose:p,classNameOverrides:f={maximized:"",minimized:"",fullscreen:""},dataTest:h,actionNode:m,locale:g="en",style:y}=e,v=ya(),b=function(e="en"){return u((()=>Ou[e]??Ou.en),[e])}(g),x=c(null),{minimized:w,setMinimized:C,fullScreen:k,setFullScreen:j}=(({fullScreenState:e,handleFullScreenState:t,minimizedState:n,handleMinimizedState:r})=>{const[o,i]=a(!1),[s,l]=a(!1);return{fullScreen:void 0!==e?e:s,setFullScreen:e=>t?t():l(e),minimized:void 0!==n?n:o,setMinimized:e=>r?r(e):i(e)}})(e);return d?ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{style:{zIndex:51,...y},className:Ca(_u,!w&&Iu,f.minimized),children:ge.jsxs("div",{className:pi("flex items-center justify-between",!w&&"hidden"),"data-test":h,children:[ge.jsx("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:ge.jsx(ta,{title:i,placement:"top",children:ge.jsx("div",{className:"truncate",children:i})})}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[ge.jsx(ju,{type:"expand",visibility:r,onClick:()=>C(!w),tooltipTitle:b.expand}),ge.jsx(ku,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]})}),k&&!w&&ge.jsx("div",{className:"z-[52] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70",onClick:()=>j(!1)}),ge.jsxs("div",{style:{zIndex:51,...y},ref:x,className:Ca(Eu,w&&Iu,f.maximized,k&&!w&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0 z-[53]"),children:[ge.jsxs("div",{className:Ca("flex flex-col px-4 border-b-[1px] border-delta-200",v?"py-3 gap-y-1":"py-4 gap-y-2"),children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[s?ge.jsx("div",{className:"text-sm text-delta-700",children:s}):ge.jsx("div",{className:Ca("font-semibold text-delta-800",v?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[m,ge.jsx(ju,{visibility:n&&!v,type:"minimize",onClick:()=>C(!w),tooltipTitle:b.minimize}),ge.jsx(Nu,{showFullScreenIcon:o&&!v,fullScreen:k,onClick:()=>j(!k),tooltipTitle:k?b.exitFullscreen:b.fullscreen}),ge.jsx(ku,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]}),s&&ge.jsx("div",{className:Ca("font-semibold text-delta-800",v?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i})]}),ge.jsx("div",{className:Ca(w&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:l})]})]}):null};function Mu({config:e,MAX_DIALOG_WIDTH:t=600}){const n=p(void 0);return{DialogStackProvider:({children:r})=>{const[o,i]=a([]),l=function(){const[e,t]=a((()=>window.innerWidth));return s((()=>{const e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}(),c=d((e=>{const n=[...e].sort(((e,t)=>e.order-t.order)),r=n.length||1,o=Math.min(t,(l-16*(r+1))/r);return n.map(((e,t)=>({...e,width:o,position:{right:16+t*(o+16)}})))}),[l]),u=d(((t,n)=>{var r,o;const a=null==(r=e[t])?void 0:r.dependencies,s=(null==(o=e[t])?void 0:o.order)??1/0,l=n??s;i((e=>{const n=e.find((e=>e.id===t)),r={id:t,open:!0,width:0,position:{right:0},dependencies:a,order:l},o=n?e.map((e=>e.id===t?{...e,open:!0,dependencies:a}:e)):[...e,r];return c(o.filter((e=>e.open)))}))}),[c]),p=d((e=>{i((t=>{var n;const r=new Set([e]);let o;do{o=!1;for(const e of t)null!=(n=e.dependencies)&&n.some((e=>r.has(e)))&&!r.has(e.id)&&(r.add(e.id),o=!0)}while(o);return c(t.filter((e=>!r.has(e.id))))}))}),[c]),f=d((e=>o.find((t=>t.id===e))),[o]);return ge.jsx(n.Provider,{value:{dialogs:o,openDialog:u,closeDialog:p,getDialogState:f},children:r})},useDialogStack:function(){const e=f(n);if(!e)throw new Error("useDialogStack must be used within DialogStackProvider");return e}}}export{An as ArchiveIcon,bn as AssignmentIcon,xn as AssignmentOutlineIcon,$ as Avatar,br as BadgeIcon,en as BellIcon,Qt as BellOutlineIcon,rr as CalendarBlankOutlineIcon,gn as CalendarIcon,vn as CalendarRangeIcon,Ln as CheckBoxCheckedIcon,mn as CheckFactIcon,hn as CheckFactOutlineIcon,qn as CheckIcon,fn as CheckOutlineIcon,on as ChevronDoubleLeftIcon,an as ChevronDoubleRightIcon,Fn as ChevronDownIcon,rn as ChevronLeftIcon,nn as ChevronRightIcon,$n as ChevronUpIcon,B as ClickAwayListener,Bn as CloseIcon,mr as ConsentsIcon,q as Container,Ld as CopyButton,Bd as CopyWrapper,cn as DashboardViewIcon,dn as DashboardViewOutlineIcon,Xn as DeleteOutlineIcon,Tn as DotsVerticalIcon,Vn as DownloadIcon,Yn as DragHorizontalIcon,zn as DropDownIcon,Dn as DropUpIcon,er as DvrIcon,dr as EarthIcon,xr as EditSquareIcon,tr as ErrorOutlineIcon,H as Fade,ir as FastCheckOutlineIcon,Jn as FilePdfIcon,Zn as FilterIcon,In as FindReplaceIcon,On as FindReplacePeopleIcon,U as FormLabel,tn as HamburgerIcon,jr as HandymanIcon,kr as HandymanOutlineIcon,Wn as InboxOutboxIcon,Kn as InboxOutboxOutlineIcon,nl as IndeterminateIcon,yr as KeyboardCapslockIcon,or as LinkOutlineIcon,wn as ListNumberedIcon,cr as ListSettingsLineIcon,sr as ListStatusIcon,Pn as LoadingIcon,Qn as LockIcon,Cn as MessageProcessingIcon,kn as MessageProcessingOutlineIcon,vr as MessageReplyIcon,Cu as MinimizableDialog,Su as MinimizableDialogV2,gr as MinimizeIcon,yn as NewCalendarIcon,hr as OutlineCalendarMonth,W as Paper,ln as PdfIcon,pr as PencilOutlineIcon,pn as PeopleIcon,un as PeopleOutlineIcon,Hn as PermMediaIcon,Un as PermMediaOutline,Sn as PersonIcon,Mn as PersonOutlineIcon,Nr as PinIcon,wr as PlusIcon,Cr as PlusIconCircle,K as Popper,sn as QnrIcon,nr as ReplayIcon,jn as ReportBoxIcon,Nn as ReportBoxOutlineIcon,Rn as SearchIcon,_n as SettingsIcon,ur as SettingsMenuHorizontalIcon,En as SettingsOutlineIcon,G as Skeleton,Y as Stack,kd as StyledAccordion,Nd as StyledAccordionDetails,jd as StyledAccordionSummary,ye as StyledBadge,da as StyledButton,rl as StyledCheckbox,Er as StyledChip,va as StyledDialog,ka as StyledDialogActions,Na as StyledDialogContent,Ea as StyledDialogTitle,Lc as StyledDrawer,Oa as StyledEmptyPage,Ed as StyledFilterButton,Sd as StyledFilterMenu,Pc as StyledFormControl,Dc as StyledFormControlLabel,Vc as StyledFormGroup,zc as StyledFormHelperText,sa as StyledFormLabel,ol as StyledInputField,Ac as StyledInputLabel,Sr as StyledInteractiveChip,Rc as StyledLabel,Gc as StyledLink,Ma as StyledLoading,Fc as StyledMenu,$c as StyledMenuItem,Bc as StyledMenuList,ru as StyledModuleTitle,_d as StyledPopover,Bl as StyledRadio,Tc as StyledRadioGroup,il as StyledSearchField,ll as StyledSelect,pl as StyledSelectAutocomplete,cl as StyledSelectItem,fl as StyledSlider,Cl as StyledSwitch,Yc as StyledTab,Jc as StyledTabs,sl as StyledTextarea,ta as StyledTooltip,na as StyledTypography,tu as StyledWidget,Wd as StyledWidgetHeader,Hd as StyledWidgetTitle,lr as TextBoxCheckOutlineIcon,Gn as TopicIcon,ar as UnknownDocumentOutlineRoundedIcon,fr as WarningAmberOutlineIcon,_r as WorkIcon,Mu as createDialogStack,te as omit,de as prepareForSlot,le as setMidnightTime,ce as setZeroTime};
38
+ "production"===process.env.NODE_ENV?al.exports=function(){if(ol)return sl;ol=1;var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var s,l={},c=null,d=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:i.current}}return sl.Fragment=n,sl.jsx=s,sl.jsxs=s,sl}():al.exports=(il||(il=1,"production"!==process.env.NODE_ENV&&function(){var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator",y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,o)}(0,e,n)}var b;function x(e){return e.displayName||"Context"}function w(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return x(e)+".Consumer";case s:return x(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:w(e.type)||"Memo";case f:var r=e,h=r._payload,m=r._init;try{return w(m(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var C,k,j,N,_,E,I,S=Object.assign,O=0;function T(){}T.__reactDisabledLog=!0;var M,R=y.ReactCurrentDispatcher;function P(e,t,n){if(void 0===M)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);M=r&&r[1]||""}return"\n"+M+e}var D,z=!1,A="function"==typeof WeakMap?WeakMap:Map;function V(e,t){if(!e||z)return"";var n,r=D.get(e);if(void 0!==r)return r;z=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=R.current,R.current=null,function(){if(0===O){C=console.log,k=console.info,j=console.warn,N=console.error,_=console.group,E=console.groupCollapsed,I=console.groupEnd;var e={configurable:!0,enumerable:!0,value:T,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}O++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,d=l.length-1;c>=1&&d>=0&&s[c]!==l[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==l[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==l[d]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&D.set(e,u),u}}while(c>=1&&d>=0);break}}}finally{z=!1,R.current=o,function(){if(0==--O){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:C}),info:S({},e,{value:k}),warn:S({},e,{value:j}),error:S({},e,{value:N}),group:S({},e,{value:_}),groupCollapsed:S({},e,{value:E}),groupEnd:S({},e,{value:I})})}O<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?P(p):"";return"function"==typeof e&&D.set(e,f),f}function L(e,t,n){if(null==e)return"";if("function"==typeof e)return V(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return P(e);switch(e){case d:return P("Suspense");case u:return P("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return V(e,!1)}(e.render);case p:return L(e.type,t,n);case f:var o=e,i=o._payload,a=o._init;try{return L(a(i),t,n)}catch{}}return""}D=new A;var F=Object.prototype.hasOwnProperty,$={},q=y.ReactDebugCurrentFrame;function B(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);q.setExtraStackFrame(n)}else q.setExtraStackFrame(null)}var H=Array.isArray;function U(e){return H(e)}function W(e){return""+e}function K(e){if(function(e){try{return W(e),!1}catch{return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",(t=e,"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object")),W(e);var t}var G,Y,J,X=y.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};J={};var Q=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};var ee,te=y.ReactCurrentOwner,ne=y.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);ne.setExtraStackFrame(n)}else ne.setExtraStackFrame(null)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function ie(){if(te.current){var e=w(te.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ee=!1;var ae={};function se(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ie();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!ae[n]){ae[n]=!0;var r="";e&&e._owner&&e._owner!==te.current&&(r=" It was passed a child from "+w(e._owner.type)+"."),re(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),re(null)}}}function le(e,t){if("object"==typeof e)if(U(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&se(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)oe(i.value)&&se(i.value,t)}}function ce(e,n,r,m,g,y){var x,C=!("string"!=typeof(x=e)&&"function"!=typeof x&&x!==o&&x!==a&&x!==i&&x!==d&&x!==u&&x!==h&&("object"!=typeof x||null===x||x.$$typeof!==f&&x.$$typeof!==p&&x.$$typeof!==s&&x.$$typeof!==l&&x.$$typeof!==c&&x.$$typeof!==b&&void 0===x.getModuleId));if(!C){var k="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j,N=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);k+=N||ie(),null===e?j="null":U(e)?j="array":void 0!==e&&e.$$typeof===t?(j="<"+(w(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,k)}var _=function(e,t,n,r,o){var i,a,s,l,c={},d=null,u=null;for(i in void 0!==n&&(K(n),d=""+n),function(e){if(F.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(K(t.key),d=""+t.key),function(e){if(F.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&X.current&&t&&X.current.stateNode!==t){var n=w(X.current.type);J[n]||(v('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',w(X.current.type),e.ref),J[n]=!0)}}(t,o)),t)F.call(t,i)&&!Z.hasOwnProperty(i)&&(c[i]=t[i]);if(e&&e.defaultProps){var p=e.defaultProps;for(i in p)void 0===c[i]&&(c[i]=p[i])}if(d||u){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;d&&(a=c,s=f,(l=function(){G||(G=!0,v("%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)",s))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:l,configurable:!0})),u&&function(e,t){var n=function(){Y||(Y=!0,v("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(c,f)}return Q(e,d,u,o,r,X.current,c)}(e,n,r,g,y);if(null==_)return _;if(C){var E=n.children;if(void 0!==E)if(m)if(U(E)){for(var I=0;I<E.length;I++)le(E[I],e);Object.freeze&&Object.freeze(E)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(E,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){re(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),re(null);break}}null!==e.ref&&(re(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}(_):function(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=w(n);!function(e,t,n,r,o){var i=Function.call.bind(F);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(B(o),v("%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).",r||"React class",n,a,typeof s),B(null)),s instanceof Error&&!(s.message in $)&&($[s.message]=!0,B(o),v("Failed %s type: %s",n,s.message),B(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ee||(ee=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}ll.Fragment=o,ll.jsx=function(e,t,n){return ce(e,t,n,!1)},ll.jsxs=function(e,t,n){return ce(e,t,n,!0)}}()),ll);var cl=al.exports;function dl(e){return cl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:cl.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,children:[cl.jsx("path",{strokeDasharray:60,strokeDashoffset:60,strokeOpacity:.3,d:"M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z",children:cl.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),cl.jsxs("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3C16.9706 3 21 7.02944 21 12",children:[cl.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),cl.jsx("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})})}function ul(e){return cl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:cl.jsx("path",{fill:"currentColor",d:"M11 15h2v2h-2zm0-8h2v6h-2zm1-5C6.47 2 2 6.5 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 18a8 8 0 0 1-8-8a8 8 0 0 1 8-8a8 8 0 0 1 8 8a8 8 0 0 1-8 8"})})}function pl(e){return cl.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:cl.jsx("path",{fill:"currentColor",d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})})}const fl=({allowClear:e,onClear:t,readOnly:n,disabled:r,error:o,helperText:i,dataTest:a,...s})=>ge.jsx(j,{...s,"data-test":a,disabled:r||n,error:o,helperText:o?ge.jsxs("div",{className:"flex items-center gap-1",children:[ge.jsx(ul,{width:20,height:20}),i??"Required"]}):i,type:s.type||"mui-input",InputProps:e&&s.value?{...s.InputProps,endAdornment:ge.jsx("div",{className:"z-40 hover:bg-gama-100 duration-300 absolute right-4 p-[2px] rounded-full flex items-center justify-center",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==t||t()},children:ge.jsx(qn,{width:18,height:18})})}:s.InputProps,sx:{"& input:-webkit-autofill, & .MuiInputBase-root:has(> input:-webkit-autofill)":{backgroundColor:"#e8f0fe !important"},"& input":{backgroundColor:"transparent"},"& .MuiInputBase-root":{backgroundColor:"transparent"},"& .MuiInputBase-colorPrimary fieldset":{borderColor:"var(--colors-delta-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused fieldset":{borderColor:"var(--colors-gama-400) !important"},"& .MuiInputBase-colorPrimary.Mui-focused::after":{borderColor:"var(--colors-gama-400) !important"},"& .MuiInputBase-colorPrimary.Mui-focused:hover fieldset":{borderColor:"var(--colors-gama-400) !important"},"& .MuiInputBase-colorPrimary:hover fieldset":{borderColor:"var(--colors-gama-300) !important",borderWidth:"2px !important"},"& .MuiInputBase-colorPrimary.Mui-disabled:hover fieldset":{borderWidth:"1px !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error:hover fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiFormHelperText-root":{fontSize:"14px"},"& .MuiFormHelperText-root.Mui-error":{color:"var(--colors-error-500) !important",marginLeft:0},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label":{color:"var(--colors-delta-500) !important"},"& label.Mui-disabled":{color:"var(--colors-gray-300) !important"},"& .MuiOutlinedInput-input::placeholder":{color:"var(--colors-delta-500) !important",opacity:"1 !important"},"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-300) !important"},...n&&{"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-800) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled":{backgroundColor:"var(--colors-delta-10) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-200) !important"},"& label.Mui-disabled":{color:"var(--colors-gray-800) !important"}},...s.sx}}),hl=({value:e,onClear:t,...n})=>{const[r,o]=a(!1),i=r||e;return ge.jsxs("div",{className:"relative w-full",children:[ge.jsx(fl,{size:"small",variant:"outlined",value:e,onFocus:()=>o(!0),onBlur:()=>o(!1),InputProps:{className:Ca("transition-[padding] duration-300",i?"pl-0":"pl-5"),sx:{"& input":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},endAdornment:e?ge.jsx("div",{className:Ca("cursor-pointer bg-delta-50 rounded-full","flex items-center justify-center","transform-gpu transition-all duration-300 ease-in-out",e?"opacity-100 scale-100":"opacity-0 scale-75 pointer-events-none"),style:{width:24,height:24,flexShrink:0},onClick:e=>{e.preventDefault(),e.stopPropagation(),null==t||t()},children:ge.jsx(qn,{width:20,height:20,color:"var(--colors-delta-700)",className:"pointer-events-none"})}):null},InputLabelProps:{sx:{transform:"translate(34px, 9px) scale(1)",width:i?void 0:"calc(100% - 42px)","&.MuiInputLabel-shrink":{transform:"translate(16px, -9px) scale(0.75)"}}},...n,sx:{...n.fullWidth?{width:"100%"}:{width:160},...n.sx}}),ge.jsx(Rn,{width:24,height:24,className:Ca("absolute left-2 top-1/2 -translate-y-1/2","transform-gpu transition-all duration-300 ease-in-out",i?"opacity-0 scale-75 pointer-events-none":"opacity-100 scale-100"),color:"var(--colors-delta-700)"})]})},ml={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},gl=({id:e,variant:t="active",label:n="",labelClassName:r="",description:o="",value:i="",minRows:d=3,maxRows:u=1/0,disabled:p,error:f,errorMessage:h,containerClassName:m="",className:g="",maxLength:y=1/0,counter:v,refLink:b,dataTest:x,counterLimit:w,...C})=>{const k=c(null),j=b||k,N=!(!v||!w),[_,E]=a(!1);s((()=>{E(!0)}),[]),((e,t,n,r,o,i)=>{l((()=>{if(e){const t=i?32:0;e.style.height="auto";const n=20,o=e.scrollHeight-24;Math.ceil(o/n)>r?e.style.height=`${n*r+24+t}px`:e.style.height=`${e.scrollHeight+t}px`}}),[e,t,n,r,o,i])})(j.current,i,d,u,_,N),u<d&&(d=u);const[I,S]=a(i.length);s((()=>{S(i.length)}),[i]);const O=f?"error":"active",T=f?"error":p?"disabled":"active";return ge.jsxs("div",{className:`flex flex-col gap-1 relative ${m}`,"data-test":x,children:[ge.jsx("label",{htmlFor:e,className:`${ml.label} ${ml[T]} ${r}`,children:n}),ge.jsx("span",{className:`${ml.description} ${ml[T]}`,children:f?h:o}),"view_only"===t?ge.jsx("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:i}):"not_editable"===t?ge.jsx("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:i}):ge.jsx("textarea",{...C,id:e,ref:j,className:`${ml.textarea} ${ml[O]} ${g} ${N?"pb-[32px]":""}`,wrap:"soft",value:i,disabled:p,maxLength:y}),N&&ge.jsxs("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[I,"/",w]})]})},yl=({dataTest:e,allowClear:t,error:n,errorText:r,...o})=>ge.jsxs(ge.Fragment,{children:[ge.jsx(N,{...o,"data-test":e,error:n,value:o.value,IconComponent:e=>ge.jsx(Jt,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:pi(e.className,"select-custom-icon")}),endAdornment:t&&o.value?ge.jsx("div",{className:"hover:bg-gama-100 duration-300 absolute right-8 p-[2px] rounded-full flex items-center justify-center",onClick:()=>{var e;null==(e=o.onChange)||e.call(o,{target:{value:""}},null)},children:ge.jsx(qn,{width:18,height:18})}):null,sx:{".MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-delta-500) !important"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"&.MuiFormLabel-root-MuiInputLabel-root .Mui-error":{color:"var(--colors-error-500) !important"},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"&.Mui-focused::after":{borderColor:"var(--colors-gama-400) !important"},"&:hover .MuiOutlinedInput-notchedOutline":{border:"2px solid var(--colors-gama-300) !important"},"& .select-custom-icon":{marginTop:"-3.5px !important"},...o.sx}}),n&&ge.jsxs(Uc,{className:"flex items-center gap-1 m-0 pt-1 text-sm text-error-500",children:[ge.jsx(ul,{width:20,height:20}),r??"Required"]})]}),vl=e=>ge.jsxs(_,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important",gap:"4px",px:1},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:[ge.jsx("span",{style:{width:"24px",justifyContent:"center",display:"flex"},children:e.selected&&ge.jsx(Jt,{icon:"mdi:tick",width:22,height:22,style:{color:"var(--colors-gama-500)"}})}),ge.jsx("span",{children:e.children})]}),bl="_styledSelectAutocompleteWrapper_lfbvb_1",xl="_select-custom-icon_lfbvb_5";function wl({dataTest:e,autoHeight:t,getOptionLabel:n,wrapperClassName:r,...o}){const[i,l]=a("auto"),d=c(null);s((()=>{var e,n;const r=(null==(e=d.current)?void 0:e.getBoundingClientRect().height)??0,o=(null==(n=d.current)?void 0:n.getBoundingClientRect().top)??0,i=window.innerHeight-o-r-40;t&&l(i>0?i:"auto")}),[t]);const u=t?{style:{maxHeight:"auto"===i?"auto":`${i}px`}}:{},p=e=>"object"==typeof e&&null!==e&&"label"in e?e.label:String(e);return ge.jsx("div",{className:Ca(bl,r),ref:d,children:ge.jsx(E,{...o,getOptionLabel:n,ListboxProps:{...u,sx:{"& .MuiAutocomplete-option":{paddingLeft:"6px !important"}}},className:pi("!text-sm",o.className),popupIcon:o.popupIcon||ge.jsx(Jt,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:pi(xl)}),"data-test":e,PaperComponent:({children:t})=>ge.jsx(I,{"data-test":`paper-${e}`,sx:{padding:"0 !important",marginTop:"0px !important","& .MuiAutocomplete-option.Mui-focused":{background:"var(--colors-delta-50) !important"},"& li[aria-selected=true]":{background:"var(--colors-gama-50) !important"},"& li[aria-selected=true].MuiAutocomplete-option.Mui-focused":{background:"var(--colors-gama-50) !important"}},children:t}),renderOption:(null==o?void 0:o.renderOption)||((e,t,{selected:r})=>ge.jsxs("li",{...e,children:[ge.jsx("span",{style:{width:"24px",height:"22px",paddingRight:"4px",justifyContent:"center",alignContent:"center",display:"flex"},children:r&&ge.jsx(Jt,{icon:"mdi:tick",width:20,height:20,style:{color:"var(--colors-gama-500)"}})}),ge.jsx("span",{className:"flex-1 text-sm truncate",children:(null==n?void 0:n(t))||p(t)})]})),sx:{...o.sx,"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-0.5px !important"},"& .MuiInputBase-inputSizeSmall":{minHeight:"23px !important"}}})})}const Cl=({dataTest:e,error:t,errorText:n,helperText:r,...o})=>{var i,a,s;const l=(t??!1)||(r??!1),c=t?n??"Required":r;return ge.jsxs(ge.Fragment,{children:[ge.jsx(S,{...o,"data-test":e,classes:{...o.classes},slotProps:{...o.slotProps,thumb:{className:pi("w-4 h-4","before:shadow-none",'after:content-[""] after:h-8 after:w-8',"vertical"===o.orientation?"ml-0 mb-1":"ml-1",o.disabled?"bg-delta-200":"bg-gama-500"),...null==(i=o.slotProps)?void 0:i.thumb},rail:{className:"bg-delta-200",...null==(a=o.slotProps)?void 0:a.rail},markLabel:{className:pi("text-delta-600 text-sm font-semibold ml-1","vertical"===o.orientation&&"mb-1"),...null==(s=o.slotProps)?void 0:s.markLabel}},sx:{...o.sx,"& .MuiSlider-track":{backgroundColor:o.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",borderColor:o.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)"},"& .MuiSlider-mark":{backgroundColor:"white",border:"1px solid var(--colors-delta-300)",borderRadius:"50%",height:"8px",width:"8px","&.MuiSlider-markActive":{backgroundColor:o.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",border:"1px solid",borderColor:o.disabled?"var(--colors-gray-200)":"var(--colors-gama-500)",opacity:1}}}}),l&&ge.jsxs(Uc,{className:pi("flex items-center gap-1 m-0 pt-1 text-sm",t?"text-error-500":"text-delta-600"),children:[t&&ge.jsx(ul,{width:20,height:20}),c]})]})},kl=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(kl.displayName="SwitchRootContext");let jl=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const Nl={...Ga,checked:e=>e?{[jl.checked]:""}:{[jl.unchecked]:""}},_l=n.forwardRef((function(e,t){const{checked:r,className:o,defaultChecked:i,id:a,inputRef:s,name:l,nativeButton:c=!0,onCheckedChange:d,readOnly:u=!1,required:p=!1,disabled:f=!1,render:h,...m}=e,{clearErrors:g}=Ts(),{state:y,labelId:v,setControlId:b,setTouched:x,setDirty:w,validityData:C,setFilled:k,setFocused:j,validationMode:N,disabled:_,name:E}=_s(),I=_||f,S=E??l,{getValidationProps:O,getInputValidationProps:T,inputRef:M,commitValidation:R}=Ps(),P=Aa(d),D=n.useRef(null),z=Fa(D,s,M),A=n.useRef(null),V=gs(a);Ba((()=>{const e=A.current;if(e)return null!=e.closest("label")?b(a??null):b(V),()=>{b(void 0)}}),[V,a,b]);const[L,F]=Ma({controlled:r,default:!!i,name:"Switch",state:"checked"});As({id:V,commitValidation:R,value:L,controlRef:A,name:S,getValue:()=>L}),Ba((()=>{D.current&&k(D.current.checked)}),[D,k]);const{getButtonProps:$,buttonRef:q}=js({disabled:I,native:c}),B=n.useMemo((()=>({id:V,role:"switch",disabled:I,"aria-checked":L,"aria-readonly":u||void 0,"aria-labelledby":v,onFocus(){j(!0)},onBlur(){const e=D.current;e&&(x(!0),j(!1),"onBlur"===N&&R(e.checked))},onClick(e){var t;e.defaultPrevented||u||null==(t=null==D?void 0:D.current)||t.click()}})),[V,I,L,u,v,j,x,R,N,D]),H=n.useMemo((()=>Qa({checked:L,disabled:I,id:S?void 0:`${V}-input`,name:S,required:p,style:Ha,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:z,onChange(e){if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked,n=Fs("none",e.nativeEvent);null==P||P(t,n),!n.isCanceled&&(g(S),w(t!==C.initialValue),k(t),F(t),"onChange"===N?R(t):R(t,!0))}},T)),[L,g,R,I,T,z,V,S,P,p,F,w,k,N,C.initialValue]),U=n.useMemo((()=>({...y,checked:L,disabled:I,readOnly:u,required:p})),[y,L,I,u,p]),W=ds("button",e,{state:U,ref:[t,A,q],props:[B,O,m,$],stateAttributesMapping:Nl});return ge.jsxs(kl.Provider,{value:U,children:[W,!L&&l&&ge.jsx("input",{type:"hidden",name:l,value:"off"}),ge.jsx("input",{...H})]})}));"production"!==process.env.NODE_ENV&&(_l.displayName="SwitchRoot");const El=n.forwardRef((function(e,t){const{render:r,className:o,...i}=e,{state:a}=_s(),s=function(){const e=n.useContext(kl);if(void 0===e)throw new Error("Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.");return e}();return ds("span",e,{state:{...a,...s},ref:t,stateAttributesMapping:Nl,props:i})}));"production"!==process.env.NODE_ENV&&(El.displayName="SwitchThumb");const Il={switch:"_switch_1myey_1",iconContent:"_iconContent_1myey_30",thumb:"_thumb_1myey_50",icon:"_icon_1myey_30"},Sl=({className:e})=>ge.jsx("svg",{viewBox:"0 0 24 24",className:e,fill:"none",children:ge.jsx("rect",{x:"6",y:"10.5",width:"11",height:"3",fill:"currentColor",rx:"0.75"})}),Ol=({width:e=11,height:t=11,className:n="",onClick:r,color:o})=>ge.jsx(Zt,{icon:"fa-solid:check",width:e,height:t,className:n,onClick:r,color:o}),Tl=o((({checked:e,defaultChecked:t=!1,onChange:n,disabled:r,readOnly:o,required:i,value:s,id:l,dataTest:c,...d},u)=>{const[p,f]=a(t),h=void 0!==e,m=h?e:p,g=h?{checked:m}:{defaultChecked:t},y=Ca(Il.iconContent,m?Il.checked:Il.unchecked);return ge.jsx(_l,{...d,...g,ref:u,className:Il.switch,onCheckedChange:e=>{h||f(e),null==n||n({target:{checked:e,name:l,value:s}},e)},disabled:r,readOnly:o,required:i,value:s,id:l,name:l,"data-testid":c,children:ge.jsx(El,{className:Il.thumb,children:ge.jsx("span",{className:Il.icon,children:m?ge.jsx(Ol,{className:y}):ge.jsx(Sl,{className:y})})})})})),Ml="data-composite-item-active",Rl=n.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});"production"!==process.env.NODE_ENV&&(Rl.displayName="CompositeListContext");let Pl=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function Dl(e={}){const{label:t,metadata:r,textRef:o,indexGuessBehavior:i,index:a}=e,{register:s,unregister:l,subscribeMapChange:c,elementsRef:d,labelsRef:u,nextIndexRef:p}=n.useContext(Rl),f=n.useRef(-1),[h,m]=n.useState(a??(i===Pl.GuessFromOrder?()=>{if(-1===f.current){const e=p.current;p.current+=1,f.current=e}return f.current}:-1)),g=n.useRef(null),y=n.useCallback((e=>{var n;if(g.current=e,-1!==h&&null!==e&&(d.current[h]=e,u)){const r=void 0!==t;u.current[h]=r?t:(null==(n=null==o?void 0:o.current)?void 0:n.textContent)??e.textContent}}),[h,d,u,t,o]);return Ba((()=>{if(null!=a)return;const e=g.current;return e?(s(e,r),()=>{l(e)}):void 0}),[a,s,l,r]),Ba((()=>{if(null==a)return c((e=>{var t;const n=g.current?null==(t=e.get(g.current))?void 0:t.index:null;null!=n&&m(n)}))}),[a,c,m]),n.useMemo((()=>({ref:y,index:h})),[h,y])}function zl(e){const{render:t,className:r,state:o=cs,props:i=ls,refs:a=ls,metadata:s,stateAttributesMapping:l,tag:c="div",...d}=e,{compositeProps:u,compositeRef:p}=function(e={}){const{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:o}=ks(),{ref:i,index:a}=Dl(e),s=r===a,l=n.useRef(null),c=Fa(i,l);return{compositeProps:n.useMemo((()=>({tabIndex:s?0:-1,onFocus(){o(a)},onMouseMove(){const e=l.current;if(!t||!e)return;const n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;!s&&!n&&e.focus()}})),[s,o,a,t]),compositeRef:c,index:a}}({metadata:s});return ds(c,e,{state:o,ref:[...a,p],props:[u,...i,d],stateAttributesMapping:l})}let Al=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const Vl={checked:e=>e?{[Al.checked]:""}:{[Al.unchecked]:""},...Qs,...Ga},Ll=n.createContext({disabled:void 0,readOnly:void 0,required:void 0,name:void 0,checkedValue:"",setCheckedValue:ss,onValueChange:ss,touched:!1,setTouched:ss,registerControlRef:ss});"production"!==process.env.NODE_ENV&&(Ll.displayName="RadioGroupContext");const Fl=n.createContext(void 0);"production"!==process.env.NODE_ENV&&(Fl.displayName="RadioRootContext");const $l=n.forwardRef((function(e,t){const{render:r,className:o,disabled:i=!1,readOnly:a=!1,required:s=!1,value:l,inputRef:c,nativeButton:d=!0,...u}=e,{disabled:p,readOnly:f,required:h,checkedValue:m,setCheckedValue:g,touched:y,setTouched:v,fieldControlValidation:b,registerControlRef:x}=n.useContext(Ll),{state:w,disabled:C}=_s(),k=C||p||i,j=f||a,N=h||s,{setDirty:_,validityData:E,setTouched:I,setFilled:S}=_s(),O=m===l,T=n.useRef(null),M=Fa(c,T);Ba((()=>{var e;null!=(e=T.current)&&e.checked&&S(!0)}),[S]);const R=n.useMemo((()=>({role:"radio","aria-checked":O,"aria-required":N||void 0,"aria-disabled":k||void 0,"aria-readonly":j||void 0,[Ml]:O?"":void 0,disabled:k,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){var t;e.defaultPrevented||k||j||(e.preventDefault(),null==(t=T.current)||t.click())},onFocus(e){var t;e.defaultPrevented||k||j||!y||(null==(t=T.current)||t.click(),v(!1))}})),[O,N,k,j,y,v]),{getButtonProps:P,buttonRef:D}=js({disabled:k,native:d}),z=gs(),A=n.useMemo((()=>({type:"radio",ref:M,id:z,tabIndex:-1,style:Ha,"aria-hidden":!0,disabled:k,checked:O,required:N,readOnly:j,onChange(e){if(e.nativeEvent.defaultPrevented||k||j||void 0===l)return;const t=Fs("none",e.nativeEvent);t.isCanceled||(I(!0),_(l!==E.initialValue),S(!0),g(l,t))}})),[O,k,z,j,M,N,g,_,I,S,E.initialValue,l]),V=n.useMemo((()=>({...w,required:N,disabled:k,readOnly:j,checked:O})),[w,k,j,O,N]),L=n.useMemo((()=>V),[V]),F=g!==ss,$=[t,x,D],q=[R,(null==b?void 0:b.getValidationProps)??cs,u,P],B=ds("button",e,{enabled:!F,state:V,ref:$,props:q,stateAttributesMapping:Vl});return ge.jsxs(Fl.Provider,{value:L,children:[F?ge.jsx(zl,{tag:"button",render:r,className:o,state:V,refs:$,props:q,stateAttributesMapping:Vl}):B,ge.jsx("input",{...A})]})}));"production"!==process.env.NODE_ENV&&($l.displayName="RadioRoot");const ql=n.forwardRef((function(e,t){const{render:r,className:o,keepMounted:i=!1,...a}=e,s=function(){const e=n.useContext(Fl);if(void 0===e)throw new Error("Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>.");return e}(),l=s.checked,{transitionStatus:c,setMounted:d}=Ys(l),u=n.useMemo((()=>({...s,transitionStatus:c})),[s,c]),p=n.useRef(null),f=i||l,h=ds("span",e,{enabled:f,ref:[t,p],state:u,props:a,stateAttributesMapping:Vl});return Gs({open:l,ref:p,onComplete(){l||d(!1)}}),f?h:null}));"production"!==process.env.NODE_ENV&&(ql.displayName="RadioIndicator");const Bl="_RadioWrapper_9uzf3_1",Hl="_size-small_9uzf3_14",Ul="_RadioRippleContainer_9uzf3_26",Wl="_RadioRipple_9uzf3_26",Kl="_RadioHover_9uzf3_60",Gl="_Radio_9uzf3_1",Yl="_Indicator_9uzf3_119",Jl="_Error_9uzf3_140",Xl=o((({value:e,dataTest:t,className:n,size:r="medium",error:o,disabled:i,...a},s)=>{const l=Ca(Bl,Kl,"small"===r&&Hl,n,o&&Jl),u=Ca(Gl,"small"===r&&Hl),p=c(null),f=d((e=>{if(e.stopPropagation(),!p.current)return;const t=document.createElement("span");t.className=Wl||"",t.addEventListener("animationend",(()=>t.remove()),{once:!0}),p.current.appendChild(t)}),[]);return ge.jsxs($l,{...a,ref:s,value:e,"data-test":t,className:l,disabled:i,onPointerDown:f,children:[ge.jsx("span",{className:Ul,ref:p}),ge.jsx("span",{className:u,children:ge.jsx(ql,{className:Yl})})]})})),Zl="ArrowLeft",Ql="ArrowRight",ec="ArrowUp",tc="ArrowDown";function nc(e,t){var n;if(!e||!t)return!1;const r=null==(n=t.getRootNode)?void 0:n.call(t);if(e.contains(t))return!0;if(r&&function(e){return!(!ys()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof vs(e).ShadowRoot)}(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function rc(e){e.preventDefault(),e.stopPropagation()}const oc=Math.floor;function ic(e,t,n){return Math.floor(e/t)!==n}function ac(e,t){return t<0||t>=e.current.length}function sc(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:o=1}={}){let i=t;do{i+=n?-o:o}while(i>=0&&i<=e.current.length-1&&dc(e,i,r));return i}function lc(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*r:i;case"br":return n.lastIndexOf(e);default:return-1}}function cc(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function dc(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);const r=e.current[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}const uc="ArrowUp",pc="ArrowDown",fc="ArrowLeft",hc="ArrowRight",mc="Home",gc="End",yc=new Set([fc,hc]),vc=new Set([fc,hc,mc,gc]),bc=new Set([uc,pc]),xc=new Set([uc,pc,mc,gc]),wc=new Set([...yc,...bc]),Cc=new Set([...wc,mc,gc]),kc="Shift",jc=new Set([kc,"Control","Alt","Meta"]);function Nc(e){return!!(function(e){return bs(e)&&"INPUT"===e.tagName}(e)&&null!=e.selectionStart||bs(e)&&"TEXTAREA"===e.tagName)}function _c(e,t,n,r){if(!e||!t||!t.scrollTo)return;let o=e.scrollLeft,i=e.scrollTop;const a=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(a&&"vertical"!==r){const r=Ec(e,t,"left"),i=Ic(e),a=Ic(t);"ltr"===n&&(r+t.offsetWidth+a.scrollMarginRight>e.scrollLeft+e.clientWidth-i.scrollPaddingRight?o=r+t.offsetWidth+a.scrollMarginRight-e.clientWidth+i.scrollPaddingRight:r-a.scrollMarginLeft<e.scrollLeft+i.scrollPaddingLeft&&(o=r-a.scrollMarginLeft-i.scrollPaddingLeft)),"rtl"===n&&(r-a.scrollMarginRight<e.scrollLeft+i.scrollPaddingLeft?o=r-a.scrollMarginLeft-i.scrollPaddingLeft:r+t.offsetWidth+a.scrollMarginRight>e.scrollLeft+e.clientWidth-i.scrollPaddingRight&&(o=r+t.offsetWidth+a.scrollMarginRight-e.clientWidth+i.scrollPaddingRight))}if(s&&"horizontal"!==r){const n=Ec(e,t,"top"),r=Ic(e),o=Ic(t);n-o.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?i=n-o.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+o.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(i=n+t.offsetHeight+o.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:o,top:i,behavior:"auto"})}function Ec(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);)t=t.offsetParent;return o}function Ic(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function Sc(e){const{children:t,elementsRef:r,labelsRef:o,onMapChange:i}=e,a=n.useRef(0),s=Pa(Tc).current,l=Pa(Oc).current,[c,d]=n.useState(cs),u=n.useRef(c),p=Aa(((e,t)=>{l.set(e,t??null),u.current={},d(u.current)})),f=Aa((e=>{l.delete(e),u.current={},d(u.current)})),h=n.useMemo((()=>{const e=new Map;return Array.from(l.keys()).sort(Mc).forEach(((t,n)=>{const r=l.get(t)??{};e.set(t,{...r,index:n})})),e}),[l,c]);Ba((()=>{if("function"!=typeof MutationObserver||0===h.size)return;const e=new MutationObserver((e=>{const t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach((e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)})),0===t.size&&(u.current={},d(u.current))}));return h.forEach(((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})})),()=>{e.disconnect()}}),[h]),Ba((()=>{u.current===c&&(r.current.length!==h.size&&(r.current.length=h.size),o&&o.current.length!==h.size&&(o.current.length=h.size),a.current=h.size),null==i||i(h)}),[i,h,r,o,c]);const m=Aa((e=>(s.add(e),()=>{s.delete(e)})));Ba((()=>{s.forEach((e=>e(h)))}),[s,h]);const g=n.useMemo((()=>({register:p,unregister:f,subscribeMapChange:m,elementsRef:r,labelsRef:o,nextIndexRef:a})),[p,f,m,r,o,a]);return ge.jsx(Rl.Provider,{value:g,children:t})}function Oc(){return new Map}function Tc(){return new Set}function Mc(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Rc(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}const Pc=[];function Dc(e){const{itemSizes:t,cols:r=1,loop:o=!0,dense:i=!1,orientation:a="both",direction:s,highlightedIndex:l,onHighlightedIndexChange:c,rootRef:d,enableHomeAndEndKeys:u=!1,stopEventPropagation:p=!1,disabledIndices:f,modifierKeys:h=Pc}=e,[m,g]=n.useState(0),y=r>1,v=n.useRef(null),b=Fa(v,d),x=n.useRef([]),w=n.useRef(!1),C=l??m,k=Aa(((e,t=!1)=>{if((c??g)(e),t){const t=x.current[e];_c(v.current,t,s,a)}})),j=Aa((e=>{if(0===e.size||w.current)return;w.current=!0;const t=Array.from(e.keys()),n=t.find((e=>null==e?void 0:e.hasAttribute(Ml)))??null,r=n?t.indexOf(n):-1;-1!==r&&k(r),_c(v.current,n,s,a)})),N=n.useMemo((()=>({"aria-orientation":"both"===a?void 0:a,ref:b,onFocus(e){!v.current||!Nc(e.target)||e.target.setSelectionRange(0,e.target.value.length??0)},onKeyDown(e){const n=u?Cc:wc;if(!n.has(e.key)||function(e,t){for(const n of jc.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,h)||!v.current)return;const l="rtl"===s,c=l?fc:hc,d={horizontal:c,vertical:pc,both:c}[a],m=l?hc:fc,g={horizontal:m,vertical:uc,both:m}[a];if(Nc(e.target)&&!Rc(e.target)){const t=e.target.selectionStart,n=e.target.selectionEnd,r=e.target.value??"";if(null==t||e.shiftKey||t!==n||e.key!==g&&t<r.length||e.key!==d&&t>0)return}let b=C;const w=function(e,t){return sc(e,{disabledIndices:t})}(x,f),j=function(e,t){return sc(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}(x,f);if(y){const n=t||Array.from({length:x.current.length},(()=>({width:1,height:1}))),s=function(e,t,n){const r=[];let o=0;return e.forEach((({width:e,height:i},a)=>{if(e>t&&"production"!==process.env.NODE_ENV)throw new Error(`[Floating UI]: Invalid grid - item width at index ${a} is greater than grid columns`);let s=!1;for(n&&(o=0);!s;){const n=[];for(let r=0;r<e;r+=1)for(let e=0;e<i;e+=1)n.push(o+r+e*t);o%t+e<=t&&n.every((e=>null==r[e]))?(n.forEach((e=>{r[e]=a})),s=!0):o+=1}})),[...r]}(n,r,i),c=s.findIndex((e=>null!=e&&!dc(x,e,f))),d=s.reduce(((e,t,n)=>null==t||dc(x,t,f)?e:n),-1);b=s[function(e,{event:t,orientation:n,loop:r,rtl:o,cols:i,disabledIndices:a,minIndex:s,maxIndex:l,prevIndex:c,stopEvent:d=!1}){let u=c;const p=[],f={};let h=!1;{let t=null,n=-1;e.current.forEach(((e,r)=>{if(null==e)return;const o=e.closest('[role="row"]');o&&(h=!0),(o!==t||-1===n)&&(t=o,n+=1,p[n]=[]),p[n].push(r),f[r]=n}))}const m=h&&p.length>0&&p.some((e=>e.length!==i));function g(t){if(!m||-1===c)return;const n=f[c];if(null==n)return;const o=p[n].indexOf(c);let i="up"===t?n-1:n+1;r&&(i<0?i=p.length-1:i>=p.length&&(i=0));const s=new Set;for(;i>=0&&i<p.length&&!s.has(i);){s.add(i);const n=p[i];if(0!==n.length){for(let t=Math.min(o,n.length-1);t>=0;t-=1){const r=n[t];if(!dc(e,r,a))return r}i="up"===t?i-1:i+1,r&&(i<0?i=p.length-1:i>=p.length&&(i=0))}else i="up"===t?i-1:i+1}}if(t.key===ec){const n=g("up");if(void 0!==n)d&&rc(t),u=n;else{if(d&&rc(t),-1===c)u=l;else if(u=sc(e,{startingIndex:u,amount:i,decrement:!0,disabledIndices:a}),r&&(c-i<s||u<0)){const e=c%i,t=l%i,n=l-(t-e);u=t===e?l:t>e?n:n-i}ac(e,u)&&(u=c)}}if(t.key===tc){const n=g("down");void 0!==n?(d&&rc(t),u=n):(d&&rc(t),-1===c?u=s:(u=sc(e,{startingIndex:c,amount:i,disabledIndices:a}),r&&c+i>l&&(u=sc(e,{startingIndex:c%i-i,amount:i,disabledIndices:a}))),ac(e,u)&&(u=c))}if("both"===n){const n=oc(c/i);t.key===(o?Zl:Ql)&&(d&&rc(t),c%i!=i-1?(u=sc(e,{startingIndex:c,disabledIndices:a}),r&&ic(u,i,n)&&(u=sc(e,{startingIndex:c-c%i-1,disabledIndices:a}))):r&&(u=sc(e,{startingIndex:c-c%i-1,disabledIndices:a})),ic(u,i,n)&&(u=c)),t.key===(o?Ql:Zl)&&(d&&rc(t),c%i!=0?(u=sc(e,{startingIndex:c,decrement:!0,disabledIndices:a}),r&&ic(u,i,n)&&(u=sc(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:a}))):r&&(u=sc(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:a})),ic(u,i,n)&&(u=c));const s=oc(l/i)===n;ac(e,u)&&(u=r&&s?t.key===(o?Ql:Zl)?l:sc(e,{startingIndex:c-c%i-1,disabledIndices:a}):c)}return u}({current:s.map((e=>e?x.current[e]:null))},{event:e,orientation:a,loop:o,cols:r,disabledIndices:cc([...f||x.current.map(((e,t)=>dc(x,t)?t:void 0)),void 0],s),minIndex:c,maxIndex:d,prevIndex:lc(C>j?w:C,n,s,r,e.key===pc?"bl":e.key===hc?"tr":"tl"),rtl:l})]}const N={horizontal:[c],vertical:[pc],both:[c,pc]}[a],_={horizontal:[m],vertical:[uc],both:[m,uc]}[a],E=y?n:{horizontal:u?vc:yc,vertical:u?xc:bc,both:n}[a];u&&(e.key===mc?b=w:e.key===gc&&(b=j)),b===C&&(N.includes(e.key)||_.includes(e.key))&&(b=o&&b===j&&N.includes(e.key)?w:o&&b===w&&_.includes(e.key)?j:sc(x,{startingIndex:b,decrement:_.includes(e.key),disabledIndices:f})),b!==C&&!ac(x,b)&&(p&&e.stopPropagation(),E.has(e.key)&&e.preventDefault(),k(b,!0),queueMicrotask((()=>{var e;null==(e=x.current[b])||e.focus()})))}})),[r,i,s,f,x,u,C,y,t,o,b,h,k,a,p]);return n.useMemo((()=>({props:N,highlightedIndex:C,onHighlightedIndexChange:k,elementsRef:x,disabledIndices:f,onMapChange:j})),[N,C,k,x,f,j])}const zc=n.createContext(void 0);function Ac(e=!0){const t=n.useContext(zc);if(void 0===t&&!e)throw new Error("Base UI: DirectionContext is missing.");return(null==t?void 0:t.direction)??"ltr"}function Vc(e){const{render:t,className:r,refs:o=ls,props:i=ls,state:a=cs,stateAttributesMapping:s,highlightedIndex:l,onHighlightedIndexChange:c,orientation:d,dense:u,itemSizes:p,loop:f,cols:h,enableHomeAndEndKeys:m,onMapChange:g,stopEventPropagation:y=!0,rootRef:v,disabledIndices:b,modifierKeys:x,highlightItemOnHover:w=!1,tag:C="div",...k}=e,j=Ac(),{props:N,highlightedIndex:_,onHighlightedIndexChange:E,elementsRef:I,onMapChange:S}=Dc({itemSizes:p,cols:h,loop:f,dense:u,orientation:d,highlightedIndex:l,onHighlightedIndexChange:c,rootRef:v,stopEventPropagation:y,enableHomeAndEndKeys:m,direction:j,disabledIndices:b,modifierKeys:x}),O=Aa((e=>{null==g||g(e),S(e)})),T=ds(C,e,{state:a,ref:o,props:[N,...i,k],stateAttributesMapping:s}),M=n.useMemo((()=>({highlightedIndex:_,onHighlightedIndexChange:E,highlightItemOnHover:w})),[_,E,w]);return ge.jsx(Cs.Provider,{value:M,children:ge.jsx(Sc,{elementsRef:I,onMapChange:O,children:T})})}"production"!==process.env.NODE_ENV&&(zc.displayName="DirectionContext");const Lc=[kc],Fc=n.forwardRef((function(e,t){const{render:r,className:o,disabled:i,readOnly:a,required:s,onValueChange:l,value:c,defaultValue:d,name:u,inputRef:p,id:f,...h}=e,{labelId:m,setTouched:g,setFocused:y,validationMode:v,name:b,disabled:x,state:w}=_s(),C=Ps(),{clearErrors:k}=Ts(),j=x||i,N=b??u,_=gs(f),[E,I]=Ma({controlled:c,default:d,name:"RadioGroup",state:"value"}),S=Aa(l),O=Aa(((e,t)=>{S(e,t),!t.isCanceled&&I(e)})),T=n.useRef(null),M=Aa((e=>{null==T.current&&null!=e&&(T.current=e)}));As({id:_,commitValidation:C.commitValidation,value:E,controlRef:T,name:N,getValue:()=>E??null});const R=n.useRef(E);Ba((()=>{R.current!==E&&(k(N),"onChange"===v?C.commitValidation(E):C.commitValidation(E,!0))}),[N,k,v,E,C]),Ba((()=>{R.current=E}),[E]);const[P,D]=n.useState(!1),z=Aa((e=>{nc(e.currentTarget,e.relatedTarget)||(g(!0),y(!1),"onBlur"===v&&C.commitValidation(E))})),A=Aa((e=>{e.key.startsWith("Arrow")&&(g(!0),D(!0),y(!0))})),V=n.useMemo((()=>null==E?"":"string"==typeof E?E:JSON.stringify(E)),[E]),L=Qa({value:V,ref:Fa(C.inputRef,p),id:_,name:V?N:void 0,disabled:j,readOnly:a,required:s,"aria-hidden":!0,tabIndex:-1,style:Ha,onFocus(){var e;null==(e=T.current)||e.focus()}},C.getInputValidationProps),F=n.useMemo((()=>({...w,disabled:j??!1,required:s??!1,readOnly:a??!1})),[w,j,a,s]),$=n.useMemo((()=>({...w,checkedValue:E,disabled:j,name:N,onValueChange:S,readOnly:a,registerControlRef:M,required:s,setCheckedValue:O,setTouched:D,touched:P})),[E,j,w,N,S,a,M,s,O,D,P]),q={role:"radiogroup","aria-required":s||void 0,"aria-disabled":j||void 0,"aria-readonly":a||void 0,"aria-labelledby":m,onFocus(){y(!0)},onBlur:z,onKeyDownCapture:A};return ge.jsxs(Ll.Provider,{value:$,children:[ge.jsx(Vc,{render:r,className:o,state:F,props:[q,C.getValidationProps,h],refs:[t],stateAttributesMapping:Ga,enableHomeAndEndKeys:!1,modifierKeys:Lc}),ge.jsx("input",{...L})]})}));"production"!==process.env.NODE_ENV&&(Fc.displayName="RadioGroup");const $c=o((({value:e,defaultValue:t,onValueChange:n,name:r,id:o,dataTest:i,error:a,errorText:s,helperText:l,children:c,...d},u)=>{const p=(a??!1)||(l??!1),f=a?s??"Required":l;return ge.jsxs(Fc,{...d,ref:u,value:e,defaultValue:t,"data-test":i,onValueChange:n,children:[c,p&&ge.jsxs(Uc,{className:pi("flex items-center gap-1 m-0 pt-1 text-sm",a?"text-error-500":"text-delta-600"),children:[a&&ge.jsx(ul,{width:20,height:20}),f]})]})})),qc=({children:e,onClick:t,className:n,dataTest:r,style:o})=>ge.jsx("div",{className:pi("_styled-label_1fp95_1",n),style:o,onClick:t,"data-test":r,children:e}),Bc=e=>ge.jsx(O,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-800) !important"},"& label.MuiInputLabel-shrink.Mui-focused":{background:"white !important",color:"var(--colors-gama-500) !important"},"& label.MuiInputLabel-shrink.Mui-error.Mui-focused":{background:"white !important",color:"var(--colors-red-500) !important"}}}),Hc=({sx:e,...t})=>ge.jsx(T,{...t,sx:{color:"var(--colors-delta-800)",margin:0,"& .MuiFormControlLabel-label":{fontSize:"14px",lineHeight:"20px"},"&.Mui-disabled .MuiFormControlLabel-label":{color:"var(--colors-delta-300)"},...e}}),Uc=e=>ge.jsx(M,{...e}),Wc=e=>ge.jsx(R,{...e}),Kc=e=>ge.jsx(P,{...e}),Gc=e=>ge.jsx(D,{...e}),Yc=e=>{var t,n;return ge.jsx(z,{...e,classes:{paper:pi("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(t=e.classes)?void 0:t.paper),list:pi("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},Jc=e=>{var t;return ge.jsx(_,{...e,classes:{selected:"bg-gama-50",root:pi("px-3 py-2.5 hover:bg-delta-50",null==(t=e.classes)?void 0:t.root),...e.classes}})},Xc=e=>ge.jsx(A,{...e}),Zc="_styled-link_hyb3l_1",Qc="_styled-link-disabled_hyb3l_16",ed="_styled-link-xs_hyb3l_32",td="_styled-link-small_hyb3l_37",nd="_styled-link-large_hyb3l_42",rd=({href:e,disabled:t,size:n="large",dataTest:r,reflink:o,className:i,content:a,contentNode:s,...l})=>{let c=nd;switch(n){case"small":c=td;break;case"xs":c=ed;break;default:c=nd}return t?ge.jsxs("span",{className:pi(Zc,Qc,c,i),children:[a,s]}):ge.jsxs("a",{...l,"data-test":r,ref:o,href:e,className:pi(Zc,c,i),children:[a,s]})},od=e=>ge.jsx(V,{...e,sx:{letterSpacing:"normal","&.MuiTab-textColorPrimary.Mui-selected":{color:"var(--colors-gama-500)"},"&.MuiTab-textColorPrimary":{color:"var(--colors-gray-500)"},"&.MuiTab-textColorPrimary.Mui-disabled":{color:"var(--colors-gray-300)"}}}),id=e=>ge.jsx(L,{...e,TabIndicatorProps:{style:{background:"var(--colors-gama-500)",color:"var(--colors-gama-500)"}},sx:{"& .MuiTabs-scrollButtons":{border:"1px solid var(--colors-delta-500)",width:40,height:40,borderRadius:"10%",display:"none",justifyContent:"center",alignItems:"center",position:"relative",top:2,"& svg":{fontSize:24,color:"var(--colors-delta-700)"},"&:hover":{backgroundColor:"var(--colors-gama-50)"},"&:first-of-type":{marginRight:"8px"},"&:last-of-type":{marginLeft:"8px"},transition:"opacity 0.3s ease, transform 0.3s ease",opacity:0,transform:"scale(0)"},"& .MuiTabs-scrollButtons.Mui-disabled":{display:"none"},"& .MuiTabs-scrollButtons:not(.Mui-disabled)":{display:"flex",opacity:1,transform:"scale(1)"}}});let ad;function sd(...e){if("production"!==process.env.NODE_ENV){const t=e.join(" ");ad.has(t)||(ad.add(t),console.warn(`Base UI: ${t}`))}}"production"!==process.env.NODE_ENV&&(ad=new Set);const ld=n.createContext(void 0);function cd(){const e=n.useContext(ld);if(void 0===e)throw new Error("Base UI: AccordionRootContext is missing. Accordion parts must be placed within <Accordion.Root>.");return e}"production"!==process.env.NODE_ENV&&(ld.displayName="AccordionRootContext");const dd={value:()=>null},ud=n.forwardRef((function(e,t){const{render:r,className:o,disabled:i=!1,hiddenUntilFound:a,keepMounted:s,loop:l=!0,onValueChange:c,multiple:d=!0,orientation:u="vertical",value:p,defaultValue:f,...h}=e,m=Ac();"production"!==process.env.NODE_ENV&&Ba((()=>{a&&!1===s&&sd("The `keepMounted={false}` prop on a Accordion.Root will be ignored when using `hiddenUntilFound` since it requires Panels to remain mounted when closed.")}),[a,s]);const g=n.useMemo((()=>{if(void 0===p)return f??[]}),[p,f]),y=Aa(c),v=n.useRef([]),[b,x]=Ma({controlled:p,default:g,name:"Accordion",state:"value"}),w=n.useCallback(((e,t)=>{const n=Fs("none");if(d)if(t){const t=b.slice();if(t.push(e),y(t,n),n.isCanceled)return;x(t)}else{const t=b.filter((t=>t!==e));if(y(t,n),n.isCanceled)return;x(t)}else{const t=b[0]===e?[]:[e];if(y(t,n),n.isCanceled)return;x(t)}}),[y,d,x,b]),C=n.useMemo((()=>({value:b,disabled:i,orientation:u})),[b,i,u]),k=n.useMemo((()=>({accordionItemRefs:v,direction:m,disabled:i,handleValueChange:w,hiddenUntilFound:a??!1,keepMounted:s??!1,loop:l,orientation:u,state:C,value:b})),[m,i,w,a,s,l,u,C,b]),j=ds("div",e,{state:C,ref:t,props:[{dir:m,role:"region"},h],stateAttributesMapping:dd});return ge.jsx(ld.Provider,{value:k,children:ge.jsx(Sc,{elementsRef:v,children:j})})}));"production"!==process.env.NODE_ENV&&(ud.displayName="AccordionRoot");const pd=n.createContext(void 0);function fd(){const e=n.useContext(pd);if(void 0===e)throw new Error("Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>.");return e}"production"!==process.env.NODE_ENV&&(pd.displayName="CollapsibleRootContext");const hd=n.createContext(void 0);function md(){const e=n.useContext(hd);if(void 0===e)throw new Error("Base UI: AccordionItemContext is missing. Accordion parts must be placed within <Accordion.Item>.");return e}"production"!==process.env.NODE_ENV&&(hd.displayName="AccordionItemContext");let gd=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Js.startingStyle]="startingStyle",e[e.endingStyle=Js.endingStyle]="endingStyle",e}({}),yd=function(e){return e.panelOpen="data-panel-open",e}({});const vd={[gd.open]:""},bd={[gd.closed]:""},xd={open:e=>e?{[yd.panelOpen]:""}:null},wd={open:e=>e?vd:bd};let Cd=function(e){return e.index="data-index",e.disabled="data-disabled",e.open="data-open",e}({});const kd={...wd,index:e=>Number.isInteger(e)?{[Cd.index]:String(e)}:null,...Qs,value:()=>null},jd=n.forwardRef((function(e,t){const{className:r,disabled:o=!1,onOpenChange:i,render:a,value:s,...l}=e,{ref:c,index:d}=Dl(),u=Fa(t,c),{disabled:p,handleValueChange:f,state:h,value:m}=cd(),g=gs(),y=s??g,v=o||p,b=n.useMemo((()=>{if(!m)return!1;for(let e=0;e<m.length;e+=1)if(m[e]===y)return!0;return!1}),[m,y]),x=Aa(((e,t)=>{null==i||i(e,t),!t.isCanceled&&f(y,e)})),w=function(e){const{open:t,defaultOpen:r,onOpenChange:o,disabled:i}=e,a=void 0!==t,[s,l]=Ma({controlled:t,default:r,name:"Collapsible",state:"open"}),{mounted:c,setMounted:d,transitionStatus:u}=Ys(s,!0,!0),[p,f]=n.useState(s),[{height:h,width:m},g]=n.useState({height:void 0,width:void 0}),y=gs(),[v,b]=n.useState(),x=v??y,[w,C]=n.useState(!1),[k,j]=n.useState(!1),N=n.useRef(null),_=n.useRef(null),E=n.useRef(null),I=n.useRef(null),S=Ks(I,!1),O=Aa((e=>{const t=!s,n=Fs("trigger-press",e.nativeEvent);if(o(t,n),n.isCanceled)return;const r=I.current;"css-animation"===_.current&&null!=r&&r.style.removeProperty("animation-name"),!w&&!k&&(null!=_.current&&"css-animation"!==_.current&&!c&&t&&d(!0),"css-animation"===_.current&&(!p&&t&&f(!0),!c&&t&&d(!0))),l(t),"none"===_.current&&c&&!t&&d(!1)}));return Ba((()=>{a&&"none"===_.current&&!k&&!s&&d(!1)}),[a,k,s,t,d]),n.useMemo((()=>({abortControllerRef:N,animationTypeRef:_,disabled:i,handleTrigger:O,height:h,mounted:c,open:s,panelId:x,panelRef:I,runOnceAnimationsFinish:S,setDimensions:g,setHiddenUntilFound:C,setKeepMounted:j,setMounted:d,setOpen:l,setPanelIdState:b,setVisible:f,transitionDimensionRef:E,transitionStatus:u,visible:p,width:m})),[N,_,i,O,h,c,s,x,I,S,g,C,j,d,l,f,E,u,p,m])}({open:b,onOpenChange:x,disabled:v}),C=n.useMemo((()=>({open:w.open,disabled:w.disabled,hidden:!w.mounted})),[w.open,w.disabled,w.mounted]),k=n.useMemo((()=>({...w,onOpenChange:x,state:C,transitionStatus:w.transitionStatus})),[w,C,x]),j=n.useMemo((()=>({...h,index:d,disabled:v,open:b})),[v,d,b,h]),[N,_]=n.useState(gs()),E=n.useMemo((()=>({open:b,state:j,setTriggerId:_,triggerId:N})),[b,j,_,N]),I=ds("div",e,{state:j,ref:u,props:l,stateAttributesMapping:kd});return ge.jsx(pd.Provider,{value:k,children:ge.jsx(hd.Provider,{value:E,children:I})})}));"production"!==process.env.NODE_ENV&&(jd.displayName="AccordionItem");const Nd=n.forwardRef((function(e,t){const{render:n,className:r,...o}=e,{state:i}=md();return ds("h3",e,{state:i,ref:t,props:o,stateAttributesMapping:kd})}));"production"!==process.env.NODE_ENV&&(Nd.displayName="AccordionHeader");const _d=new Set([pc,uc,hc,fc,mc,gc]);const Ed=n.forwardRef((function(e,t){const{disabled:r,className:o,id:i,render:a,nativeButton:s=!0,...l}=e,{panelId:c,open:d,handleTrigger:u,disabled:p}=fd(),f=r??p,{getButtonProps:h,buttonRef:m}=js({disabled:f,focusableWhenDisabled:!0,native:s}),{accordionItemRefs:g,direction:y,loop:v,orientation:b}=cd(),x="rtl"===y,w="horizontal"===b,{state:C,setTriggerId:k,triggerId:j}=md();Ba((()=>(i&&k(i),()=>{k(void 0)})),[i,k]);const N=n.useMemo((()=>({"aria-controls":d?c:void 0,"aria-expanded":d,disabled:f,id:j,onClick:u,onKeyDown(e){if(!_d.has(e.key))return;rc(e);const t=function(e){const{current:t}=e,n=[];for(let e=0;e<t.length;e+=1){const r=t[e];if(!Rc(r)){const e=null==r?void 0:r.querySelector('[type="button"]');Rc(e)||n.push(e)}}return n}(g),n=t.length-1;let r=-1;const o=t.indexOf(e.target);function i(){r=v?o+1>n?0:o+1:Math.min(o+1,n)}function a(){r=v&&0===o?n:o-1}switch(e.key){case pc:w||i();break;case uc:w||a();break;case hc:w&&(x?a():i());break;case fc:w&&(x?i():a());break;case"Home":r=0;break;case"End":r=n}r>-1&&t[r].focus()}})),[g,f,u,j,w,x,v,d,c]);return ds("button",e,{state:C,ref:[t,m],props:[N,l,h],stateAttributesMapping:xd})}));"production"!==process.env.NODE_ENV&&(Ed.displayName="AccordionTrigger");let Id=function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e}({});let Sd=function(e){return e.accordionPanelHeight="--accordion-panel-height",e.accordionPanelWidth="--accordion-panel-width",e}({});const Od=n.forwardRef((function(e,t){const{className:r,hiddenUntilFound:o,keepMounted:i,id:a,render:s,...l}=e,{hiddenUntilFound:c,keepMounted:d}=cd(),{abortControllerRef:u,animationTypeRef:p,height:f,mounted:h,onOpenChange:m,open:g,panelId:y,panelRef:v,runOnceAnimationsFinish:b,setDimensions:x,setHiddenUntilFound:w,setKeepMounted:C,setMounted:k,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:E,width:I,setPanelIdState:S,transitionStatus:O}=fd(),T=o??c,M=i??d;"production"!==process.env.NODE_ENV&&Ba((()=>{!1===i&&T&&sd("The `keepMounted={false}` prop on a Accordion.Panel will be ignored when using `contextHiddenUntilFound` on the Panel or the Root since it requires the panel to remain mounted when closed.")}),[T,i]),Ba((()=>{if(a)return S(a),()=>{S(void 0)}}),[a,S]),Ba((()=>{w(T)}),[w,T]),Ba((()=>{C(M)}),[C,M]),Gs({open:g&&"idle"===O,ref:v,onComplete(){g&&x({width:void 0,height:void 0})}});const{props:R}=function(e){const{abortControllerRef:t,animationTypeRef:r,externalRef:o,height:i,hiddenUntilFound:a,keepMounted:s,id:l,mounted:c,onOpenChange:d,open:u,panelRef:p,runOnceAnimationsFinish:f,setDimensions:h,setMounted:m,setOpen:g,setVisible:y,transitionDimensionRef:v,visible:b,width:x}=e,w=n.useRef(!1),C=n.useRef(null),k=n.useRef(u),j=n.useRef(u),N=n.useMemo((()=>"css-animation"===r.current?!b:!u&&!c),[u,c,b,r]),_=Aa((e=>{if(!e)return;if(null==r.current||null==v.current){const t=getComputedStyle(e),n="none"!==t.animationName&&""!==t.animationName,o="0s"!==t.transitionDuration&&""!==t.transitionDuration;n&&o?"production"!==process.env.NODE_ENV&&sd("CSS transitions and CSS animations both detected on Collapsible or Accordion panel.","Only one of either animation type should be used."):"none"===t.animationName&&"0s"!==t.transitionDuration?r.current="css-transition":"none"!==t.animationName&&"0s"===t.transitionDuration?r.current="css-animation":r.current="none","horizontal"===e.getAttribute(Id.orientation)||t.transitionProperty.indexOf("width")>-1?v.current="width":v.current="height"}if("css-transition"!==r.current)return;e.style.setProperty("display",getComputedStyle(e).display||"block","important"),(void 0===i||void 0===x)&&(h({height:e.scrollHeight,width:e.scrollWidth}),e.style.removeProperty("display"),j.current&&e.style.setProperty("transition-duration","0s"));let t=-1,n=-1;return t=Ws.request((()=>{j.current=!1,n=Ws.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))})),()=>{Ws.cancel(t),Ws.cancel(n)}})),E=Fa(o,p,_);return Ba((()=>{if("css-transition"!==r.current)return;const e=p.current;if(!e)return;let n=-1;if(null!=t.current&&(t.current.abort(),t.current=null),!u){h({height:e.scrollHeight,width:e.scrollWidth}),t.current=new AbortController;const n=t.current.signal;let r=-1;const o=Ws.request((()=>{r=Ws.request((()=>{f((()=>{h({height:0,width:0}),e.style.removeProperty("content-visibility"),e.style.removeProperty("display"),m(!1),t.current=null}),n)}))}));return()=>{Ws.cancel(o),Ws.cancel(r)}}{const t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};e.style.setProperty("display",getComputedStyle(e).display||"block","important"),Object.keys(t).forEach((t=>{e.style.setProperty(t,"initial","important")})),!j.current&&!s&&e.setAttribute(gd.startingStyle,""),h({height:e.scrollHeight,width:e.scrollWidth}),n=Ws.request((()=>{e.style.removeProperty("display"),Object.entries(t).forEach((([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)}))}))}return()=>{Ws.cancel(n)}}),[t,r,a,s,c,u,p,f,h,m,v]),Ba((()=>{if("css-animation"!==r.current)return;const e=p.current;e&&(C.current=e.style.animationName||C.current,e.style.setProperty("animation-name","none"),h({height:e.scrollHeight,width:e.scrollWidth}),!k.current&&!w.current&&e.style.removeProperty("animation-name"),u?(null!=t.current&&(t.current.abort(),t.current=null),m(!0),y(!0)):(t.current=new AbortController,f((()=>{m(!1),y(!1),t.current=null}),t.current.signal)))}),[t,r,u,p,f,h,m,y,b]),Is((()=>{const e=Ws.request((()=>{k.current=!1}));return()=>Ws.cancel(e)})),Ba((()=>{if(!a)return;const e=p.current;if(!e)return;let t=-1,n=-1;return u&&w.current&&(e.style.transitionDuration="0s",h({height:e.scrollHeight,width:e.scrollWidth}),t=Ws.request((()=>{w.current=!1,n=Ws.request((()=>{setTimeout((()=>{e.style.removeProperty("transition-duration")}))}))}))),()=>{Ws.cancel(t),Ws.cancel(n)}}),[a,u,p,h]),Ba((()=>{const e=p.current;e&&a&&N&&(e.setAttribute("hidden","until-found"),"css-transition"===r.current&&e.setAttribute(gd.startingStyle,""))}),[a,N,r,p]),n.useEffect((function(){const e=p.current;if(e)return e.addEventListener("beforematch",t),()=>{e.removeEventListener("beforematch",t)};function t(e){w.current=!0,g(!0),d(!0,Fs("none",e))}}),[d,p,g]),n.useMemo((()=>({props:{hidden:N,id:l,ref:E}})),[N,l,E])}({abortControllerRef:u,animationTypeRef:p,externalRef:t,height:f,hiddenUntilFound:T,id:a??y,keepMounted:M,mounted:h,onOpenChange:m,open:g,panelRef:v,runOnceAnimationsFinish:b,setDimensions:x,setMounted:k,setOpen:j,setVisible:N,transitionDimensionRef:_,visible:E,width:I}),{state:P,triggerId:D}=md(),z=ds("div",e,{state:n.useMemo((()=>({...P,transitionStatus:O})),[P,O]),ref:[t,v],props:[R,{"aria-labelledby":D,role:"region",style:{[Sd.accordionPanelHeight]:void 0===f?"auto":`${f}px`,[Sd.accordionPanelWidth]:void 0===I?"auto":`${I}px`}},l],stateAttributesMapping:kd});return M||T||!M&&h?z:null}));"production"!==process.env.NODE_ENV&&(Od.displayName="AccordionPanel");const Td={AccordionRoot:"_AccordionRoot_csye9_1",Trigger:"_Trigger_csye9_9",Header:"_Header_csye9_18",TriggerIcon:"_TriggerIcon_csye9_40",Panel:"_Panel_csye9_51",Content:"_Content_csye9_62"},Md=({className:e,children:t,expanded:n,defaultExpanded:r,onChange:o,...i})=>{const a="item",s={...i,type:"single",className:Ca(Td.AccordionRoot,e),onValueChange:e=>{null==o||o(e.includes(a))},...void 0!==n?{value:n?[a]:[]}:{defaultValue:r?[a]:[]}};return ge.jsx(ud,{...s,children:ge.jsx(jd,{value:a,className:Td.Item,children:t})})},Rd=({size:e="large",className:t,sx:n,children:r,...o})=>{const i="small"===e,a={"--trigger-height":i?"48px":"72px","--trigger-padding-x":i?"8px":"16px","--trigger-font-size":i?"14px":"18px","--chevron-size":i?"20px":"24px",...n};return ge.jsx(Nd,{className:Td.Header,children:ge.jsxs(Ed,{...o,className:pi(Td.Trigger,t),style:a,children:[ge.jsx(Fn,{className:Td.TriggerIcon,"data-state-icon":!0}),r]})})},Pd=({children:e,...t})=>ge.jsx(Od,{...t,className:Td.Panel,children:ge.jsx("div",{className:Td.Content,children:e})}),Dd=e=>ge.jsx(F,{...e}),zd=({filterIsActive:e,label:t,hideLabel:n=!1,size:r="large",variant:o="outlined",...i})=>ge.jsx(ge.Fragment,{children:ge.jsxs("div",{className:"w-fit h-fit relative",children:[ge.jsx(da,{...i,type:"button",startIcon:ge.jsx(Zn,{width:"large"===r?24:20,height:"large"===r?24:20}),variant:o,size:r,children:!n&&(t||"Filter")}),e&&ge.jsx("div",{className:pi("h-2 w-2 bg-gama-400 rounded-full absolute","large"===r?"top-2 right-2":"top-1 right-1")})]})}),Ad=()=>{const[e,t]=a(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:r=>{e?n():(e=>{t((()=>e.currentTarget))})(r)}}},Vd=e=>r.isValidElement(e)||"string"==typeof e||"number"==typeof e||null===e||Array.isArray(e),Ld=({filterIsActive:e,popoverContent:t,dataTest:n,disabled:o,size:i="large",variant:a="outlined",popoverProps:s,anchorNode:l,label:c,hideLabel:d})=>{const{onAnchorClick:u,onClose:p,anchorEl:f}=Ad();return ge.jsxs(ge.Fragment,{children:[ge.jsxs("div",{className:"w-fit h-fit relative",children:[l?r.cloneElement(l({isOpen:!!f,onClose:p}),{onClick:u}):ge.jsx(da,{type:"button",disabled:o,variant:a,startIcon:ge.jsx(Zn,{width:"large"===i?24:20,height:"large"===i?24:20}),onClick:u,size:i,dataTest:n,children:!d&&(c||"Filter")}),e&&ge.jsx("div",{className:pi("h-2 w-2 bg-gama-400 rounded-full absolute","large"===i?"top-2 right-2":"top-1 right-1")})]}),ge.jsx(Dd,{...s,open:!!f,anchorEl:f,onClose:p,anchorOrigin:(null==s?void 0:s.anchorOrigin)||{vertical:"bottom",horizontal:"right"},transformOrigin:(null==s?void 0:s.transformOrigin)||{vertical:"top",horizontal:"right"},className:(null==s?void 0:s.className)||"my-1",children:Vd(t)?t:t({isOpen:!!f,onClose:p})})]})},Fd=({className:e,contentToCopy:t,locale:n,messageInfo:r,text:o})=>{const i="en"===n?"Copy":"Kopier",a=ya();return ge.jsx(ta,{title:i,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"copy-button",className:e,size:"small",variant:"text",startIcon:ge.jsx(pl,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},children:!a&&(o||i)})})})},$d="_copy-wrapper_1gjzc_1",qd="_hidden-copy_1gjzc_1",Bd=({className:e,contentToCopy:t,locale:n,messageInfo:r,children:o})=>ge.jsxs("div",{className:Ca("flex items-center hover:text-gama-500",$d,e),children:[o,ge.jsx(ta,{title:"no"===n?"Kopier":"Copy",className:qd,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"copy-button",size:"small",variant:"text",className:"cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},startIcon:ge.jsx(pl,{width:20,height:20})})})})]}),Hd="_styled-widget-title_1mja5_1",Ud=function(e){return ge.jsx("div",{className:Hd,children:e.children})},Wd="_styled-widget-header_yk04z_1",Kd=({actions:e,title:t,containerClassname:n,actionsClassname:r})=>ge.jsxs("div",{className:Ca(Wd,n),children:[ge.jsx(Ud,{children:t}),ge.jsx("div",{className:r,children:e})]}),Gd="_asma-core-ui-styled-widget_fvr2z_1",Yd="_widget-header-left_fvr2z_19",Jd="_widget-header-right_fvr2z_25",Xd="_widget-content_fvr2z_31",Zd="_widget-footer_fvr2z_41",Qd="_widget-link_fvr2z_46";function eu(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})})}function tu(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})})}const nu=({children:e,title:t,icon:n,link:r,viewMore:o,persistKey:i,isLoading:l,isEmpty:c,emptyText:d,headerRight:u,headerRightClassName:p})=>{const[f,h]=a(!1);s((()=>{if(i){const e=localStorage.getItem(i);h("true"===e)}}),[i]),s((()=>{i&&localStorage.setItem(i,String(f))}),[f,i]);const m=!!r&&!r.hide,g=!(!o||null!=o&&o.hide);return ge.jsxs("div",{className:Gd,children:[ge.jsxs("div",{className:Yd,children:[n,ge.jsx(Ud,{children:t}),ge.jsx("div",{className:`${Jd} ${p??""}`,children:u})]}),ge.jsx("div",{className:Xd,children:ge.jsxs(ge.Fragment,{children:[e,ge.jsx(Ta,{isLoading:l}),ge.jsx(Sa,{isEmpty:c,emptyText:d})]})}),g&&ge.jsxs("div",{className:Zd,children:[!o||null!=o&&o.hide?ge.jsx("div",{}):ge.jsx(da,{disabled:o.disabled,dataTest:"view-more",variant:"text",endIcon:f?ge.jsx(eu,{width:20,height:20}):ge.jsx(tu,{width:20,height:20}),onClick:()=>{var e;h(!f),null==(e=null==o?void 0:o.onClick)||e.call(o)},children:f?o.viewLessText:o.viewMoreText}),m?ge.jsx(rd,{dataTest:"go-to-button",className:Qd,size:"small",href:r.href,onClick:r.onClick,content:r.content}):ge.jsx("div",{})]})]})},ru="_styled-module-title_174mo_1",ou=function(e){return ge.jsx("h1",{"data-test":e.dataTest,className:ru,children:e.children})},iu="_dialog_erjok_1",au="_hidden_erjok_9";function su(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M10 21v-2H6.41l4.5-4.5l-1.41-1.41l-4.5 4.5V14H3v7zm4.5-10.09l4.5-4.5V10h2V3h-7v2h3.59l-4.5 4.5z"})})}function lu(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M19.5 3.09L15 7.59V4h-2v7h7V9h-3.59l4.5-4.5zM4 13v2h3.59l-4.5 4.5l1.41 1.41l4.5-4.5V20h2v-7z"})})}const cu="object"==typeof global&&global&&global.Object===Object&&global;var du="object"==typeof self&&self&&self.Object===Object&&self;const uu=(cu||du||Function("return this")()).Symbol;var pu=Object.prototype,fu=pu.hasOwnProperty,hu=pu.toString,mu=uu?uu.toStringTag:void 0;var gu=Object.prototype.toString;var yu="[object Null]",vu="[object Undefined]",bu=uu?uu.toStringTag:void 0;function xu(e){return null==e?void 0===e?vu:yu:bu&&bu in Object(e)?function(e){var t=fu.call(e,mu),n=e[mu];try{e[mu]=void 0;var r=!0}catch{}var o=hu.call(e);return r&&(t?e[mu]=n:delete e[mu]),o}(e):function(e){return gu.call(e)}(e)}const wu=Array.isArray;function Cu(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=xu(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const ku=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:r="",showCloseIcon:o=!0,showMinimizeIcon:i=!0,showExpandIcon:s=!0,showFullScreenIcon:l=!0,title:c,label:u,children:p,open:f,onClose:h,className:m="",primaryButtonText:g,primaryButtonLoading:y=!1,secondaryButtonText:v,onPrimaryButtonClick:b,onSecondaryButtonClick:x,dataTest:w,actionNode:C,extraActions:k,extraActionsText:j,btnContainerClassName:N,footerClassName:_,footerInfo:E,locale:I="en",enableFullscreen:S=!0,fullScreenState:O,handleFullScreenState:T})=>{const[M,R]=a(!1),[P,D]=a(!1),{open:z,anchorEl:A,handleOpen:V,handleClose:L}=(()=>{const[e,t]=a(null),n=!!e,r=d((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:d((()=>{t(null)}),[]),handleOpen:r,anchorEl:e}})();if(!f)return null;const F=void 0!==O?O:P,$=g||y,q=$||v,B=()=>{R(!M)};return ge.jsxs(ge.Fragment,{children:[F&&!M&&ge.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ge.jsx("div",{style:{zIndex:51},className:Ca(iu,!M&&au),children:ge.jsxs("div",{className:pi("flex items-center justify-between",!M&&"hidden"),"data-test":w,children:[ge.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[s&&ge.jsx(ta,{title:"en"===I?"Expand":"Utvid",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"minimize-button",variant:"text",size:"small",onClick:B,endIcon:s&&ge.jsx(yr,{height:20,width:20,color:"text-gama-500"}),children:n})})}),o&&ge.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:o&&ge.jsx(qn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]})}),ge.jsxs("div",{className:Ca("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",m&&!M?m:"",M&&"!h-0 !w-0 opacity-0 duration-0",F&&!M&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0"),"data-test":w,children:[ge.jsxs("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[u?ge.jsx("div",{className:"text-sm text-delta-700",children:u}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[C,i&&ge.jsx(ta,{title:"en"===I?"Minimize":"Minimer",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:B,endIcon:i&&ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:t})})}),S&&l&&ge.jsx(ta,{title:F?"en"===I?"Exit full screen":"Avslutt fullskjerm":"en"===I?"Full screen":"Fullskjerm",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==O&&T?T():D(!P)},endIcon:F?ge.jsx(lu,{width:20,height:20,color:"text-delta-700"}):ge.jsx(su,{width:20,height:20,color:"text-delta-700"}),children:r})})}),o&&ge.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:ge.jsx(qn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),u&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:c})]}),ge.jsxs("div",{className:pi("flex flex-col",F&&!M&&"h-[87dvh]"),children:[ge.jsx("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof p?p({fullScreen:F}):p}),(wu(k)&&null!=k&&k.length||Cu(k))&&j||E?ge.jsxs("div",{className:Ca("flex items-center justify-between p-4 border-0 border-t-[1px] border-solid border-delta-200 bg-white",_),children:[wu(k)&&null!=k&&k.length&&j?ge.jsxs(ge.Fragment,{children:[ge.jsx(da,{dataTest:"extra-actions-button",variant:"textGray",startIcon:ge.jsx(Mn,{width:24,height:24}),onClick:V,children:j}),ge.jsx(Yc,{open:z,anchorEl:A,onClose:L,children:k.map((e=>ge.jsx(Jc,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):j&&Cu(k)&&ge.jsx(da,{dataTest:"extra-action-button",variant:"text",onClick:k,children:j})," ",E,q?ge.jsxs("div",{className:Ca("flex justify-end gap-x-4",N),children:[v&&x&&ge.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:v}),$&&b&&ge.jsx(da,{dataTest:"save-button",startIcon:y&&ge.jsx(dl,{width:24,height:24}),onClick:b,children:g})]}):null]}):ge.jsx(ge.Fragment,{children:q?ge.jsxs("div",{className:Ca("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",N),children:[v&&x&&ge.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:v}),$&&b&&ge.jsx(da,{dataTest:"save-button",startIcon:y&&ge.jsx(dl,{width:24,height:24}),onClick:b,children:g})]}):null})]})]})]})},ju=({showCloseIcon:e,tooltipTitle:t,onClick:n})=>e?ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:n,endIcon:ge.jsx(qn,{height:20,width:20,color:"text-delta-700"})})})}):null,Nu=({visibility:e,tooltipTitle:t,onClick:n,type:r})=>{if(!e)return null;const o="minimize"===r;return"expand"===r?ge.jsx("div",{children:ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"toggle-minimize-btn",variant:"text",size:"small",onClick:n,endIcon:ge.jsx(yr,{height:20,width:20,color:"text-gama-500"})})})})}):o?ge.jsx("div",{children:ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"toggle-minimize-btn",variant:"textGray",size:"small",onClick:n,endIcon:ge.jsx(gr,{height:20,width:20,color:"text-delta-700"})})})})}):null},_u=({fullScreen:e,showFullScreenIcon:t,tooltipTitle:n,onClick:r})=>t?ge.jsx(ta,{title:n,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:r,endIcon:e?ge.jsx(lu,{width:20,height:20,color:"text-delta-700"}):ge.jsx(su,{width:20,height:20,color:"text-delta-700"})})})}):null,Eu="_minimized-dialog_16tvw_5",Iu="_dialog_16tvw_1",Su="_hidden_16tvw_27",Ou={en:{close:"Close",expand:"Expand",minimize:"Minimize",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen"},no:{close:"Lukk",expand:"Utvid",minimize:"Minimer",fullscreen:"Fullskjerm",exitFullscreen:"Avslutt fullskjerm"}};const Tu=e=>{const{showCloseIcon:t=!0,showMinimizeIcon:n=!0,showExpandIcon:r=!0,enableFullscreen:o=!0,title:i,label:s,children:l,open:d,onClose:p,classNameOverrides:f={maximized:"",minimized:"",fullscreen:""},dataTest:h,actionNode:m,locale:g="en",style:y}=e,v=ya(),b=function(e="en"){return u((()=>Ou[e]??Ou.en),[e])}(g),x=c(null),{minimized:w,setMinimized:C,fullScreen:k,setFullScreen:j}=(({fullScreenState:e,handleFullScreenState:t,minimizedState:n,handleMinimizedState:r})=>{const[o,i]=a(!1),[s,l]=a(!1);return{fullScreen:void 0!==e?e:s,setFullScreen:e=>t?t():l(e),minimized:void 0!==n?n:o,setMinimized:e=>r?r(e):i(e)}})(e);return d?ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{style:{zIndex:51,...y},className:Ca(Eu,!w&&Su,f.minimized),children:ge.jsxs("div",{className:pi("flex items-center justify-between",!w&&"hidden"),"data-test":h,children:[ge.jsx("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:ge.jsx(ta,{title:i,placement:"top",children:ge.jsx("div",{className:"truncate",children:i})})}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[ge.jsx(Nu,{type:"expand",visibility:r,onClick:()=>C(!w),tooltipTitle:b.expand}),ge.jsx(ju,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]})}),k&&!w&&ge.jsx("div",{className:"z-[52] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70",onClick:()=>j(!1)}),ge.jsxs("div",{style:{zIndex:51,...y},ref:x,className:Ca(Iu,w&&Su,f.maximized,k&&!w&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0 z-[53]"),children:[ge.jsxs("div",{className:Ca("flex flex-col px-4 border-b-[1px] border-delta-200",v?"py-3 gap-y-1":"py-4 gap-y-2"),children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[s?ge.jsx("div",{className:"text-sm text-delta-700",children:s}):ge.jsx("div",{className:Ca("font-semibold text-delta-800",v?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[m,ge.jsx(Nu,{visibility:n&&!v,type:"minimize",onClick:()=>C(!w),tooltipTitle:b.minimize}),ge.jsx(_u,{showFullScreenIcon:o&&!v,fullScreen:k,onClick:()=>j(!k),tooltipTitle:k?b.exitFullscreen:b.fullscreen}),ge.jsx(ju,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]}),s&&ge.jsx("div",{className:Ca("font-semibold text-delta-800",v?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i})]}),ge.jsx("div",{className:Ca(w&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:l})]})]}):null};function Mu({config:e,MAX_DIALOG_WIDTH:t=600}){const n=p(void 0);return{DialogStackProvider:({children:r})=>{const[o,i]=a([]),l=function(){const[e,t]=a((()=>window.innerWidth));return s((()=>{const e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}(),c=d((e=>{const n=[...e].sort(((e,t)=>e.order-t.order)),r=n.length||1,o=Math.min(t,(l-16*(r+1))/r);return n.map(((e,t)=>({...e,width:o,position:{right:16+t*(o+16)}})))}),[l]),u=d(((t,n)=>{var r,o;const a=null==(r=e[t])?void 0:r.dependencies,s=(null==(o=e[t])?void 0:o.order)??1/0,l=n??s;i((e=>{const n=e.find((e=>e.id===t)),r={id:t,open:!0,width:0,position:{right:0},dependencies:a,order:l},o=n?e.map((e=>e.id===t?{...e,open:!0,dependencies:a}:e)):[...e,r];return c(o.filter((e=>e.open)))}))}),[c]),p=d((e=>{i((t=>{var n;const r=new Set([e]);let o;do{o=!1;for(const e of t)null!=(n=e.dependencies)&&n.some((e=>r.has(e)))&&!r.has(e.id)&&(r.add(e.id),o=!0)}while(o);return c(t.filter((e=>!r.has(e.id))))}))}),[c]),f=d((e=>o.find((t=>t.id===e))),[o]);return ge.jsx(n.Provider,{value:{dialogs:o,openDialog:u,closeDialog:p,getDialogState:f},children:r})},useDialogStack:function(){const e=f(n);if(!e)throw new Error("useDialogStack must be used within DialogStackProvider");return e}}}export{An as ArchiveIcon,bn as AssignmentIcon,xn as AssignmentOutlineIcon,$ as Avatar,br as BadgeIcon,en as BellIcon,Qt as BellOutlineIcon,rr as CalendarBlankOutlineIcon,gn as CalendarIcon,vn as CalendarRangeIcon,Ln as CheckBoxCheckedIcon,mn as CheckFactIcon,hn as CheckFactOutlineIcon,Bn as CheckIcon,fn as CheckOutlineIcon,on as ChevronDoubleLeftIcon,an as ChevronDoubleRightIcon,Fn as ChevronDownIcon,rn as ChevronLeftIcon,nn as ChevronRightIcon,$n as ChevronUpIcon,q as ClickAwayListener,qn as CloseIcon,mr as ConsentsIcon,B as Container,Fd as CopyButton,Bd as CopyWrapper,cn as DashboardViewIcon,dn as DashboardViewOutlineIcon,Xn as DeleteOutlineIcon,Mn as DotsVerticalIcon,Vn as DownloadIcon,Yn as DragHorizontalIcon,zn as DropDownIcon,Dn as DropUpIcon,er as DvrIcon,dr as EarthIcon,xr as EditSquareIcon,tr as ErrorOutlineIcon,H as Fade,ir as FastCheckOutlineIcon,Jn as FilePdfIcon,Zn as FilterIcon,In as FindReplaceIcon,Sn as FindReplacePeopleIcon,U as FormLabel,tn as HamburgerIcon,jr as HandymanIcon,kr as HandymanOutlineIcon,Wn as InboxOutboxIcon,Kn as InboxOutboxOutlineIcon,nl as IndeterminateIcon,yr as KeyboardCapslockIcon,or as LinkOutlineIcon,wn as ListNumberedIcon,cr as ListSettingsLineIcon,sr as ListStatusIcon,Pn as LoadingIcon,Qn as LockIcon,Cn as MessageProcessingIcon,kn as MessageProcessingOutlineIcon,vr as MessageReplyIcon,ku as MinimizableDialog,Tu as MinimizableDialogV2,gr as MinimizeIcon,yn as NewCalendarIcon,hr as OutlineCalendarMonth,W as Paper,ln as PdfIcon,pr as PencilOutlineIcon,pn as PeopleIcon,un as PeopleOutlineIcon,Hn as PermMediaIcon,Un as PermMediaOutline,On as PersonIcon,Tn as PersonOutlineIcon,Nr as PinIcon,wr as PlusIcon,Cr as PlusIconCircle,K as Popper,sn as QnrIcon,nr as ReplayIcon,jn as ReportBoxIcon,Nn as ReportBoxOutlineIcon,Rn as SearchIcon,_n as SettingsIcon,ur as SettingsMenuHorizontalIcon,En as SettingsOutlineIcon,G as Skeleton,Y as Stack,Md as StyledAccordion,Pd as StyledAccordionDetails,Rd as StyledAccordionSummary,ye as StyledBadge,da as StyledButton,rl as StyledCheckbox,Er as StyledChip,va as StyledDialog,ka as StyledDialogActions,Na as StyledDialogContent,Ea as StyledDialogTitle,Gc as StyledDrawer,Sa as StyledEmptyPage,zd as StyledFilterButton,Ld as StyledFilterMenu,Bc as StyledFormControl,Hc as StyledFormControlLabel,Kc as StyledFormGroup,Uc as StyledFormHelperText,sa as StyledFormLabel,fl as StyledInputField,Wc as StyledInputLabel,Or as StyledInteractiveChip,qc as StyledLabel,rd as StyledLink,Ta as StyledLoading,Yc as StyledMenu,Jc as StyledMenuItem,Xc as StyledMenuList,ou as StyledModuleTitle,Dd as StyledPopover,Xl as StyledRadio,$c as StyledRadioGroup,hl as StyledSearchField,yl as StyledSelect,wl as StyledSelectAutocomplete,vl as StyledSelectItem,Cl as StyledSlider,Tl as StyledSwitch,od as StyledTab,id as StyledTabs,gl as StyledTextarea,ta as StyledTooltip,na as StyledTypography,nu as StyledWidget,Kd as StyledWidgetHeader,Ud as StyledWidgetTitle,lr as TextBoxCheckOutlineIcon,Gn as TopicIcon,ar as UnknownDocumentOutlineRoundedIcon,fr as WarningAmberOutlineIcon,_r as WorkIcon,Mu as createDialogStack,te as omit,de as prepareForSlot,le as setMidnightTime,ce as setZeroTime};