tm-reuseable-components
Version:
This is a reuseable components lib made for TextMercato
32 lines • 216 kB
JavaScript
import*as e from"react";import t,{forwardRef as n,useContext as o,Children as r,isValidElement as i,cloneElement as a}from"react";import{jsxs as s,jsx as l}from"react/jsx-runtime";import*as c from"react-dom";import u from"react-dom";function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m,h={exports:{}},y={exports:{}},b={};var v,g,E,x,w,O,S,T,N,k,C,R,$,P,M={};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function I(){return g||(g=1,"production"===process.env.NODE_ENV?y.exports=function(){if(m)return b;m=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case l:case c:case o:case i:case r:case p:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return d}}case n:return d}}}function w(e){return x(e)===c}return b.AsyncMode=l,b.ConcurrentMode=c,b.ContextConsumer=s,b.ContextProvider=a,b.Element=t,b.ForwardRef=u,b.Fragment=o,b.Lazy=h,b.Memo=f,b.Portal=n,b.Profiler=i,b.StrictMode=r,b.Suspense=p,b.isAsyncMode=function(e){return w(e)||x(e)===l},b.isConcurrentMode=w,b.isContextConsumer=function(e){return x(e)===s},b.isContextProvider=function(e){return x(e)===a},b.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},b.isForwardRef=function(e){return x(e)===u},b.isFragment=function(e){return x(e)===o},b.isLazy=function(e){return x(e)===h},b.isMemo=function(e){return x(e)===f},b.isPortal=function(e){return x(e)===n},b.isProfiler=function(e){return x(e)===i},b.isStrictMode=function(e){return x(e)===r},b.isSuspense=function(e){return x(e)===p},b.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===i||e===r||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===v||e.$$typeof===g||e.$$typeof===E||e.$$typeof===y)},b.typeOf=x,b}():y.exports=(v||(v=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var h=e.type;switch(h){case l:case c:case o:case i:case r:case p:return h;default:var y=h&&h.$$typeof;switch(y){case s:case u:case m:case f:case a:return y;default:return d}}case n:return d}}}var E=l,x=c,w=s,O=a,S=t,T=u,N=o,k=m,C=f,R=n,$=i,P=r,I=p,_=!1;function A(e){return g(e)===c}M.AsyncMode=E,M.ConcurrentMode=x,M.ContextConsumer=w,M.ContextProvider=O,M.Element=S,M.ForwardRef=T,M.Fragment=N,M.Lazy=k,M.Memo=C,M.Portal=R,M.Profiler=$,M.StrictMode=P,M.Suspense=I,M.isAsyncMode=function(e){return _||(_=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(e)||g(e)===l},M.isConcurrentMode=A,M.isContextConsumer=function(e){return g(e)===s},M.isContextProvider=function(e){return g(e)===a},M.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},M.isForwardRef=function(e){return g(e)===u},M.isFragment=function(e){return g(e)===o},M.isLazy=function(e){return g(e)===m},M.isMemo=function(e){return g(e)===f},M.isPortal=function(e){return g(e)===n},M.isProfiler=function(e){return g(e)===i},M.isStrictMode=function(e){return g(e)===r},M.isSuspense=function(e){return g(e)===p},M.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===i||e===r||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===y||e.$$typeof===b||e.$$typeof===v||e.$$typeof===h)},M.typeOf=g}()),M)),y.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function _(){if(x)return E;x=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return E=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,r){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},E}function A(){if(O)return w;O=1;return w="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function j(){return T?S:(T=1,S=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var D=I();h.exports=function(){if(R)return C;R=1;var e=I(),t=_(),n=A(),o=j(),r=function(){if(k)return N;k=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=A(),n={},o=j();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function r(r,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in r)if(o(r,c)){var u;try{if("function"!=typeof r[c]){var p=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=r[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var d=l?l():"";e("Failed "+a+" type: "+u.message+(null!=d?d:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},N=r}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),C=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",p="<<anonymous>>",d={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:h(a),arrayOf:function(e){return h((function(t,o,r,i,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[o];if(!Array.isArray(s))return new m("Invalid "+i+" `"+a+"` of type `"+g(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,r,i,a+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:h((function(e,t,n,o,r){var i=e[t];return s(i)?null:new m("Invalid "+o+" `"+r+"` of type `"+g(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,o,r,i){var a=t[n];return e.isValidElementType(a)?null:new m("Invalid "+r+" `"+i+"` of type `"+g(a)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,o,r,i){if(!(t[n]instanceof e)){var a=e.name||p;return new m("Invalid "+r+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:p)+"` supplied to `"+o+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,n,o,r){return v(e[t])?null:new m("Invalid "+o+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,r,i,a,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[r],c=g(l);if("object"!==c)return new m("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(o(l,u)){var p=e(l,u,i,a,s+"."+u,n);if(p instanceof Error)return p}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,n,o,r,i){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===E(t)?String(t):t}));return new m("Invalid "+r+" `"+i+"` of value `"+String(a)+"` supplied to `"+o+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(r)+" at index "+t+"."),a}return h((function(t,r,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,r,i,a,s,n);if(null==u)return null;u.data&&o(u.data,"expectedType")&&l.push(u.data.expectedType)}return new m("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,o,r,i,a){var s=t[o],l=g(s);if("object"!==l)return new m("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return b(r,i,a,c,E(u));var p=u(s,c,r,i,a+"."+c,n);if(p)return p}return null}))},exact:function(e){return h((function(r,i,a,s,l){var c=r[i],u=g(c);if("object"!==u)return new m("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var p=t({},r[i],e);for(var d in p){var f=e[d];if(o(e,d)&&"function"!=typeof f)return b(a,s,l,d,E(f));if(!f)return new m("Invalid "+s+" `"+l+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(r[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(c,d,a,s,l+"."+d,n);if(h)return h}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function r(r,a,s,c,u,d,f){if(c=c||p,d=d||s,f!==n){if(l){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=c+":"+s;!t[y]&&o<3&&(i("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[y]=!0,o++)}}return null==a[s]?r?null===a[s]?new m("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,u,d)}var a=r.bind(null,!1);return a.isRequired=r.bind(null,!0),a}function y(e){return h((function(t,n,o,r,i,a){var s=t[n];return g(s)!==e?new m("Invalid "+r+" `"+i+"` of type `"+E(s)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,n,o,r){return new m((e||"React class")+": "+t+" type `"+n+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,o=t.call(e);if(t!==e.entries){for(;!(n=o.next()).done;)if(!v(n.value))return!1}else for(;!(n=o.next()).done;){var r=n.value;if(r&&!v(r[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function E(e){if(null==e)return""+e;var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=E(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,d.checkPropTypes=r,d.resetWarningCache=r.resetWarningCache,d.PropTypes=d,d},C}()(D.isElement,!0)}else h.exports=function(){if(P)return $;P=1;var e=A();function t(){}function n(){}return n.resetWarningCache=t,$=function(){function o(t,n,o,r,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function r(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var F=f(h.exports);function V(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=V(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function L(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=V(e))&&(o&&(o+=" "),o+=t);return o}function z(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function B(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function W(e){if(!B(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=W(e[n])})),t}function U(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return B(e)&&B(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(B(t[r])&&r in e&&B(e[r])?o[r]=U(e[r],t[r],n):n.clone?o[r]=B(t[r])?W(t[r]):t[r]:o[r]=t[r])})),o}function q(e,t,n,o,r){const i=e[t],a=r||t;if(null==i||"undefined"==typeof window)return null;let s;const l=i.type;return"function"!=typeof l||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(l)||(s="Did you accidentally use a plain function component for an element instead?"),void 0!==s?new Error(`Invalid ${o} \`${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 K=z(F.element,q);K.isRequired=z(F.element.isRequired,q);var H=K;var Y=z(F.elementType,(function(e,t,n,o,r){const i=e[t],a=r||t;if(null==i||"undefined"==typeof window)return null;let s;return"function"!=typeof i||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(i)||(s="Did you accidentally provide a plain function component instead?"),void 0!==s?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}));function G(e){return"production"===process.env.NODE_ENV?e:{...e,"exact-prop: ":t=>{const n=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return n.length>0?new Error(`The following props are not supported: ${n.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}}}function X(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."}var J,Z={exports:{}},Q={};var ee,te={};
/**
* @license React
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/"production"===process.env.NODE_ENV?Z.exports=function(){if(J)return Q;J=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case o:case i:case r:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case d:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),Q.ContextConsumer=s,Q.ContextProvider=a,Q.Element=t,Q.ForwardRef=c,Q.Fragment=o,Q.Lazy=f,Q.Memo=d,Q.Portal=n,Q.Profiler=i,Q.StrictMode=r,Q.Suspense=u,Q.SuspenseList=p,Q.isAsyncMode=function(){return!1},Q.isConcurrentMode=function(){return!1},Q.isContextConsumer=function(e){return h(e)===s},Q.isContextProvider=function(e){return h(e)===a},Q.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Q.isForwardRef=function(e){return h(e)===c},Q.isFragment=function(e){return h(e)===o},Q.isLazy=function(e){return h(e)===f},Q.isMemo=function(e){return h(e)===d},Q.isPortal=function(e){return h(e)===n},Q.isProfiler=function(e){return h(e)===i},Q.isStrictMode=function(e){return h(e)===r},Q.isSuspense=function(e){return h(e)===u},Q.isSuspenseList=function(e){return h(e)===p},Q.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===p||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Q.typeOf=h,Q}():Z.exports=(ee||(ee=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case o:case i:case r:case u:case p:return h;default:var y=h&&h.$$typeof;switch(y){case l:case s:case c:case f:case d:case a:return y;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var y=s,b=a,v=t,g=c,E=o,x=f,w=d,O=n,S=i,T=r,N=u,k=p,C=!1,R=!1;te.ContextConsumer=y,te.ContextProvider=b,te.Element=v,te.ForwardRef=g,te.Fragment=E,te.Lazy=x,te.Memo=w,te.Portal=O,te.Profiler=S,te.StrictMode=T,te.Suspense=N,te.SuspenseList=k,te.isAsyncMode=function(e){return C||(C=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},te.isConcurrentMode=function(e){return R||(R=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},te.isContextConsumer=function(e){return h(e)===s},te.isContextProvider=function(e){return h(e)===a},te.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},te.isForwardRef=function(e){return h(e)===c},te.isFragment=function(e){return h(e)===o},te.isLazy=function(e){return h(e)===f},te.isMemo=function(e){return h(e)===d},te.isPortal=function(e){return h(e)===n},te.isProfiler=function(e){return h(e)===i},te.isStrictMode=function(e){return h(e)===r},te.isSuspense=function(e){return h(e)===u},te.isSuspenseList=function(e){return h(e)===p},te.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===p||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},te.typeOf=h}()),te);var ne=Z.exports;const oe=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function re(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(oe);return t&&t[1]||""}(e)||t}function ie(e,t,n){const o=re(t);return e.displayName||(""!==o?`${n}(${o})`:n)}function ae(e,t,n,o,r){if("production"===process.env.NODE_ENV)return null;const i=e[t],a=r||t;return null==i?null:i&&1!==i.nodeType?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var se=F.oneOfType([F.func,F.object]);function le(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":X(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ce(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function ue(e,t=166){let n;function o(...o){clearTimeout(n),n=setTimeout((()=>{e.apply(this,o)}),t)}return o.clear=()=>{clearTimeout(n)},o}function pe(t,n){return e.isValidElement(t)&&-1!==n.indexOf(t.type.muiName)}function de(e){return e&&e.ownerDocument||document}function fe(e){return de(e).defaultView||window}function me(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var he="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function ye({controlled:t,default:n,name:o,state:r="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(n),l=i?t:a;if("production"!==process.env.NODE_ENV){e.useEffect((()=>{i!==(void 0!==t)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} 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"))}),[r,o,t]);const{current:a}=e.useRef(n);e.useEffect((()=>{i||a===n||console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join("\n"))}),[JSON.stringify(n)])}return[l,e.useCallback((e=>{i||s(e)}),[])]}function be(t){const n=e.useRef(t);return he((()=>{n.current=t})),e.useCallback(((...e)=>(0,n.current)(...e)),[])}function ve(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{me(t,e)}))}),t)}let ge,Ee=!0,xe=!1;const we={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Oe(e){e.metaKey||e.altKey||e.ctrlKey||(Ee=!0)}function Se(){Ee=!1}function Te(){"hidden"===this.visibilityState&&xe&&(Ee=!0)}function Ne(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ee||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!we[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function ke(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Oe,!0),t.addEventListener("mousedown",Se,!0),t.addEventListener("pointerdown",Se,!0),t.addEventListener("touchstart",Se,!0),t.addEventListener("visibilitychange",Te,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!Ne(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(xe=!0,window.clearTimeout(ge),ge=window.setTimeout((()=>{xe=!1}),100),n.current=!1,!0)},ref:t}}function Ce(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Re=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function $e(e,t,n,o){const r=e[t];if(null==r||!Re(r)){const e=function(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return null===e?"null":e.constructor.name;default:return t}}(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${e}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Pe(e,t,...n){return void 0===e[t]?null:$e(e,t,...n)}function Me(){return null}Pe.isRequired=$e,Me.isRequired=Me;var Ie="production"===process.env.NODE_ENV?Me:Pe;function _e(e,t){const n={...t};return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]={...e[o],...n[o]};else if(o.toString().match(/^(componentsProps|slotProps)$/)){const r=e[o]||{},i=t[o];n[o]={},i&&Object.keys(i)?r&&Object.keys(r)?(n[o]={...i},Object.keys(r).forEach((e=>{n[o][e]=_e(r[e],i[e])}))):n[o]=i:n[o]=r}else void 0===n[o]&&(n[o]=e[o])})),n}function Ae(e,t,n=void 0){const o={};return Object.keys(e).forEach((r=>{o[r]=e[r].reduce(((e,o)=>{if(o){const r=t(o);""!==r&&e.push(r),n&&n[o]&&e.push(n[o])}return e}),[]).join(" ")})),o}const je=e=>e;var De=(()=>{let e=je;return{configure(t){e=t},generate:t=>e(t),reset(){e=je}}})();const Fe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Ve(e,t,n="Mui"){const o=Fe[t];return o?`${n}-${o}`:`${De.generate(e)}-${t}`}function Le(e,t,n="Mui"){const o={};return t.forEach((t=>{o[t]=Ve(e,t,n)})),o}var ze,Be={exports:{}},We={};var Ue,qe={};
/**
* @license React
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/"production"===process.env.NODE_ENV?Be.exports=function(){if(ze)return We;ze=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case o:case i:case r:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case d:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),We.ContextConsumer=s,We.ContextProvider=a,We.Element=t,We.ForwardRef=c,We.Fragment=o,We.Lazy=f,We.Memo=d,We.Portal=n,We.Profiler=i,We.StrictMode=r,We.Suspense=u,We.SuspenseList=p,We.isAsyncMode=function(){return!1},We.isConcurrentMode=function(){return!1},We.isContextConsumer=function(e){return h(e)===s},We.isContextProvider=function(e){return h(e)===a},We.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},We.isForwardRef=function(e){return h(e)===c},We.isFragment=function(e){return h(e)===o},We.isLazy=function(e){return h(e)===f},We.isMemo=function(e){return h(e)===d},We.isPortal=function(e){return h(e)===n},We.isProfiler=function(e){return h(e)===i},We.isStrictMode=function(e){return h(e)===r},We.isSuspense=function(e){return h(e)===u},We.isSuspenseList=function(e){return h(e)===p},We.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===p||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},We.typeOf=h,We}():Be.exports=(Ue||(Ue=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case o:case i:case r:case u:case p:return h;default:var y=h&&h.$$typeof;switch(y){case l:case s:case c:case f:case d:case a:return y;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var y=s,b=a,v=t,g=c,E=o,x=f,w=d,O=n,S=i,T=r,N=u,k=p,C=!1,R=!1;qe.ContextConsumer=y,qe.ContextProvider=b,qe.Element=v,qe.ForwardRef=g,qe.Fragment=E,qe.Lazy=x,qe.Memo=w,qe.Portal=O,qe.Profiler=S,qe.StrictMode=T,qe.Suspense=N,qe.SuspenseList=k,qe.isAsyncMode=function(e){return C||(C=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},qe.isConcurrentMode=function(e){return R||(R=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},qe.isContextConsumer=function(e){return h(e)===s},qe.isContextProvider=function(e){return h(e)===a},qe.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},qe.isForwardRef=function(e){return h(e)===c},qe.isFragment=function(e){return h(e)===o},qe.isLazy=function(e){return h(e)===f},qe.isMemo=function(e){return h(e)===d},qe.isPortal=function(e){return h(e)===n},qe.isProfiler=function(e){return h(e)===i},qe.isStrictMode=function(e){return h(e)===r},qe.isSuspense=function(e){return h(e)===u},qe.isSuspenseList=function(e){return h(e)===p},qe.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===p||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},qe.typeOf=h}()),qe);var Ke=Be.exports;function He(e){return"string"==typeof e}const Ye={disableDefaultClasses:!1},Ge=e.createContext(Ye);function Xe(e,t){return"function"==typeof e?e(t):e}function Je(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Ze(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const e=L(null==r?void 0:r.className,null==o?void 0:o.className,i,null==n?void 0:n.className),t=p({},null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),a=p({},n,r,o);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(p({},r,o)),s=Je(o),l=Je(r),c=t(a),u=L(null==c?void 0:c.className,null==n?void 0:n.className,i,null==r?void 0:r.className,null==o?void 0:o.className),d=p({},null==c?void 0:c.style,null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),f=p({},c,n,l,s);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const Qe=["elementType","externalSlotProps","ownerState"];function et(e){var t;const{elementType:n,externalSlotProps:o,ownerState:r}=e,i=d(e,Qe),a=Xe(o,r),{props:s,internalRef:l}=Ze(p({},i,{externalSlotProps:a})),c=function(e,t,n){return void 0===e||He(e)?t:p({},t,{ownerState:p({},t.ownerState,n)})}(n,p({},s,{ref:ve(l,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),r);return c}const tt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function nt(e){const t=[],n=[];return Array.from(e.querySelectorAll(tt)).forEach(((e,o)=>{const r=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==r&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===r?t.push(e):n.push({documentOrder:o,tabIndex:r,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function ot(){return!0}function rt(t){const{children:n,disableAutoFocus:o=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=nt,isEnabled:c=ot,open:u}=t,p=e.useRef(!1),d=e.useRef(null),f=e.useRef(null),m=e.useRef(null),h=e.useRef(null),y=e.useRef(!1),b=e.useRef(null),v=ve(n.ref,b),g=e.useRef(null);e.useEffect((()=>{u&&b.current&&(y.current=!o)}),[o,u]),e.useEffect((()=>{if(!u||!b.current)return;const e=de(b.current);return b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||("production"!==process.env.NODE_ENV&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join("\n")),b.current.setAttribute("tabIndex","-1")),y.current&&b.current.focus()),()=>{i||(m.current&&m.current.focus&&(p.current=!0,m.current.focus()),m.current=null)}}),[u]),e.useEffect((()=>{if(!u||!b.current)return;const e=de(b.current),t=t=>{const{current:n}=b;if(null!==n)if(e.hasFocus()&&!r&&c()&&!p.current){if(!n.contains(e.activeElement)){if(t&&h.current!==t.target||e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!y.current)return;let r=[];if(e.activeElement!==d.current&&e.activeElement!==f.current||(r=a(b.current)),r.length>0){var o,i;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=g.current)?void 0:i.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else p.current=!1},n=t=>{g.current=t,!r&&c()&&"Tab"===t.key&&e.activeElement===b.current&&t.shiftKey&&(p.current=!0,f.current&&f.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[o,r,i,c,u,a]);const E=e=>{null===m.current&&(m.current=e.relatedTarget),y.current=!0};return s(e.Fragment,{children:[l("div",{tabIndex:u?0:-1,onFocus:E,ref:d,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:v,onFocus:e=>{null===m.current&&(m.current=e.relatedTarget),y.current=!0,h.current=e.target;const t=n.props.onFocus;t&&t(e)}}),l("div",{tabIndex:u?0:-1,onFocus:E,ref:f,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(rt.propTypes={children:H,disableAutoFocus:F.bool,disableEnforceFocus:F.bool,disableRestoreFocus:F.bool,getTabbable:F.func,isEnabled:F.func,open:F.bool.isRequired}),"production"!==process.env.NODE_ENV&&(rt.propTypes=G(rt.propTypes));const it=e.forwardRef((function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,s]=e.useState(null),u=ve(e.isValidElement(o)?o.ref:null,n);if(he((()=>{i||s(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),he((()=>{if(a&&!i)return me(n,a),()=>{me(n,null)}}),[n,a,i]),i){if(e.isValidElement(o)){const t={ref:u};return e.cloneElement(o,t)}return l(e.Fragment,{children:o})}return l(e.Fragment,{children:a?c.createPortal(o,a):a})}));"production"!==process.env.NODE_ENV&&(it.propTypes={children:F.node,container:F.oneOfType([ae,F.func]),disablePortal:F.bool}),"production"!==process.env.NODE_ENV&&(it.propTypes=G(it.propTypes));var at=it;function st(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lt(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function ct(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&st(e,r)}))}function ut(e,t){let n=-1;return e.some(((e,o)=>!!t(e)&&(n=o,!0))),n}function pt(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function(e){const t=de(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){const e=Ce(de(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${lt(o)+e}px`;const t=de(o).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${lt(t)+e}px`}))}let e;if(o.parentNode instanceof DocumentFragment)e=de(o).body;else{const t=o.parentElement,n=fe(o);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:o}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}function dt(e){return Ve("MuiModal",e)}Le("MuiModal",["root","hidden","backdrop"]);const ft=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],mt=t=>{const{open:n,exited:o}=t;return Ae({root:["root",!n&&o&&"hidden"],backdrop:["backdrop"]},function(t){const{disableDefaultClasses:n}=e.useContext(Ge);return e=>n?"":t(e)}(dt))};const ht=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&st(e.modalRef,!1);const o=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ct(t,e.mount,e.modalRef,o,!0);const r=ut(this.containers,(e=>e.container===t));return-1!==r?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),n)}mount(e,t){const n=ut(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];o.restore||(o.restore=pt(o,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const o=ut(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[o];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(n,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&st(e.modalRef,t),ct(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&st(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},yt=e.forwardRef((function(t,n){var o,r;const{children:i,closeAfterTransition:a=!1,container:c,disableAutoFocus:u=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:h=!1,disableRestoreFocus:y=!1,disableScrollLock:b=!1,hideBackdrop:v=!1,keepMounted:g=!1,manager:E=ht,onBackdropClick:x,onClose:w,onKeyDown:O,open:S,onTransitionEnter:T,onTransitionExited:N,slotProps:k={},slots:C={}}=t,R=d(t,ft),$=E,[P,M]=e.useState(!S),I=e.useRef({}),_=e.useRef(null),A=e.useRef(null),j=ve(A,n),D=function(e){return!!e&&e.props.hasOwnProperty("in")}(i),F=null==(o=t["aria-hidden"])||o,V=()=>(I.current.modalRef=A.current,I.current.mountNode=_.current,I.current),L=()=>{$.mount(V(),{disableScrollLock:b}),A.current&&(A.current.scrollTop=0)},z=be((()=>{const e=function(e){return"function"==typeof e?e():e}(c)||de(_.current).body;$.add(V(),e),A.current&&L()})),B=e.useCallback((()=>$.isTopModal(V())),[$]),W=be((e=>{_.current=e,e&&A.current&&(S&&B()?L():st(A.current,F))})),U=e.useCallback((()=>{$.remove(V(),F)}),[$,F]);e.useEffect((()=>()=>{U()}),[U]),e.useEffect((()=>{S?z():D&&a||U()}),[S,U,D,a,z]);const q=p({},t,{closeAfterTransition:a,disableAutoFocus:u,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:h,disableRestoreFocus:y,disableScrollLock:b,exited:P,hideBackdrop:v,keepMounted:g}),K=mt(q),H=()=>{M(!1),T&&T()},Y=()=>{M(!0),N&&N(),a&&U()},G={};void 0===i.props.tabIndex&&(G.tabIndex="-1"),D&&(G.onEnter=ce(H,i.props.onEnter),G.onExited=ce(Y,i.props.onExited));const X=null!=(r=C.root)?r:"div",J=et({elementType:X,externalSlotProps:k.root,externalForwardedProps:R,additionalProps:{ref:j,role:"presentation",onKeyDown:e=>{O&&O(e),"Escape"===e.key&&B()&&(m||(e.stopPropagation(),w&&w(e,"escapeKeyDown")))}},className:K.root,ownerState:q}),Z=C.backdrop,Q=et({elementType:Z,externalSlotProps:k.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(x&&x(e),w&&w(e,"backdropClick"))},open:S},className:K.backdrop,ownerState:q});return g||S||D&&!P?l(at,{ref:W,container:c,disablePortal:h,children:s(X,p({},J,{children:[!v&&Z?l(Z,p({},Q)):null,l(rt,{disableEnforceFocus:f,disableAutoFocus:u,disableRestoreFocus:y,isEnabled:B,open:S,children:e.cloneElement(i,G)})]}))}):null}));"production"!==process.env.NODE_ENV&&(yt.propTypes={children:H.isRequired,closeAfterTransition:F.bool,container:F.oneOfType([ae,F.func]),disableAutoFocus:F.bool,disableEnforceFocus:F.bool,disableEscapeKeyDown:F.bool,disablePortal:F.bool,disableRestoreFocus:F.bool,disableScrollLock:F.bool,hideBackdrop:F.bool,keepMounted:F.bool,onBackdropClick:F.func,onClose:F.func,open:F.bool.isRequired,slotProps:F.shape({backdrop:F.oneOfType([F.func,F.object]),root:F.oneOfType([F.func,F.object])}),slots:F.shape({backdrop:F.elementType,root:F.elementType})});var bt=yt;const vt=["onChange","maxRows","minRows","style","value"];function gt(e){return parseInt(e,10)||0}const Et={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function xt(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const wt=e.forwardRef((function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:u}=t,f=d(t,vt),{current:m}=e.useRef(null!=u),h=e.useRef(null),y=ve(n,h),b=e.useRef(null),v=e.useRef(0),[g,E]=e.useState({outerHeightStyle:0}),x=e.useCallback((()=>{const e=h.current,n=fe(e).getComputedStyle(e);if("0px"===n.width)return{outerHeightStyle:0};const o=b.current;o.style.width=n.width,o.value=e.value||t.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const a=n.boxSizing,s=gt(n.paddingBottom)+gt(n.paddingTop),l=gt(n.borderBottomWidth)+gt(n.borderTopWidth),c=o.scrollHeight;o.value="x";const u=o.scrollHeight;let p=c;i&&(p=Math.max(Number(i)*u,p)),r&&(p=Math.min(Number(r)*u,p)),p=Math.max(p,u);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflow:Math.abs(p-c)<=1}}),[r,i,t.placeholder]),w=(e,t)=>{const{outerHeightStyle:n,overflow:o}=t;return v.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==o)?(v.current+=1,{overflow:o,outerHeightStyle:n}):("production"!==process.env.NODE_ENV&&20===v.current&&console.error(["MUI: Too many re-renders. The layout is unstable.","TextareaAutosize limits the number of renders to prevent an infinite loop."].join("\n")),e)},O=e.useCallback((()=>{const e=x();xt(e)||E((t=>w(t,e)))}),[x]);e.useEffect((()=>{const e=ue((()=>{v.current=0,h.current&&(()=>{const e=x();xt(e)||c.flushSync((()=>{E((t=>w(t,e)))}))})()}));let t;const n=h.current,o=fe(n);return o.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),o.removeEventListener("resize",e),t&&t.disconnect()}})),he((()=>{O()})),e.useEffect((()=>{v.current=0}),[u]);return s(e.Fragment,{children:[l("textarea",p({value:u,onChange:e=>{v.current=0,m||O(),o&&o(e)},ref:y,rows:i,style:p({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},a)},f)),l("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:p({},Et,a,{padding:0})})]})}));"production"!==process.env.NODE_ENV&&(wt.propTypes={className:F.string,maxRows:F.oneOfType([F.number,F.string]),minRows:F.oneOfType([F.number,F.string]),onChange:F.func,placeholder:F.string,style:F.object,value:F.oneOfType([F.arrayOf(F.string),F.number,F.string])});var Ot=wt;function St(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Tt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY