UNPKG

tm-reuseable-components

Version:

This is a reuseable components lib made for TextMercato

32 lines 134 kB
import*as e from"react";import t,{forwardRef as n,useContext as r}from"react";import{jsxs as o,jsx as i}from"react/jsx-runtime";import*as a from"react-dom";import s from"react-dom";function c(){return c=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},c.apply(this,arguments)}function l(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 u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p,d={exports:{}},f={};var m,h={}; /** * @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?d.exports=function(){if(p)return f;p=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case c:case s:case l:case h:case m:case a:return e;default:return p}}case n:return p}}}return e=Symbol.for("react.module.reference"),f.ContextConsumer=s,f.ContextProvider=a,f.Element=t,f.ForwardRef=l,f.Fragment=r,f.Lazy=h,f.Memo=m,f.Portal=n,f.Profiler=i,f.StrictMode=o,f.Suspense=u,f.SuspenseList=d,f.isAsyncMode=function(){return!1},f.isConcurrentMode=function(){return!1},f.isContextConsumer=function(e){return b(e)===s},f.isContextProvider=function(e){return b(e)===a},f.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},f.isForwardRef=function(e){return b(e)===l},f.isFragment=function(e){return b(e)===r},f.isLazy=function(e){return b(e)===h},f.isMemo=function(e){return b(e)===m},f.isPortal=function(e){return b(e)===n},f.isProfiler=function(e){return b(e)===i},f.isStrictMode=function(e){return b(e)===o},f.isSuspense=function(e){return b(e)===u},f.isSuspenseList=function(e){return b(e)===d},f.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===y||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===m||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},f.typeOf=b,f}():d.exports=(m||(m=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=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 y(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case r:case i:case o:case u:case p:return h;default:var y=h&&h.$$typeof;switch(y){case c:case s:case l:case f:case d:case a:return y;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var b=s,v=a,g=t,E=l,x=r,O=f,w=d,S=n,k=i,N=o,T=u,$=p,P=!1,C=!1;h.ContextConsumer=b,h.ContextProvider=v,h.Element=g,h.ForwardRef=E,h.Fragment=x,h.Lazy=O,h.Memo=w,h.Portal=S,h.Profiler=k,h.StrictMode=N,h.Suspense=T,h.SuspenseList=$,h.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},h.isConcurrentMode=function(e){return C||(C=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},h.isContextConsumer=function(e){return y(e)===s},h.isContextProvider=function(e){return y(e)===a},h.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},h.isForwardRef=function(e){return y(e)===l},h.isFragment=function(e){return y(e)===r},h.isLazy=function(e){return y(e)===f},h.isMemo=function(e){return y(e)===d},h.isPortal=function(e){return y(e)===n},h.isProfiler=function(e){return y(e)===i},h.isStrictMode=function(e){return y(e)===o},h.isSuspense=function(e){return y(e)===u},h.isSuspenseList=function(e){return y(e)===p},h.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||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===l||t.$$typeof===e||void 0!==t.getModuleId)},h.typeOf=y}()),h);var y,b=d.exports,v={exports:{}},g={exports:{}},E={};var x,O,w,S,k,N,T,$,P,C,_,R,M,A,I={}; /** @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 j(){return O||(O=1,"production"===process.env.NODE_ENV?g.exports=function(){if(y)return E;y=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=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,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,g=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 c:case l:case r:case i:case o:case p:return e;default:switch(e=e&&e.$$typeof){case s:case u:case m:case f:case a:return e;default:return d}}case n:return d}}}function O(e){return x(e)===l}return E.AsyncMode=c,E.ConcurrentMode=l,E.ContextConsumer=s,E.ContextProvider=a,E.Element=t,E.ForwardRef=u,E.Fragment=r,E.Lazy=m,E.Memo=f,E.Portal=n,E.Profiler=i,E.StrictMode=o,E.Suspense=p,E.isAsyncMode=function(e){return O(e)||x(e)===c},E.isConcurrentMode=O,E.isContextConsumer=function(e){return x(e)===s},E.isContextProvider=function(e){return x(e)===a},E.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},E.isForwardRef=function(e){return x(e)===u},E.isFragment=function(e){return x(e)===r},E.isLazy=function(e){return x(e)===m},E.isMemo=function(e){return x(e)===f},E.isPortal=function(e){return x(e)===n},E.isProfiler=function(e){return x(e)===i},E.isStrictMode=function(e){return x(e)===o},E.isSuspense=function(e){return x(e)===p},E.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||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===b||e.$$typeof===v||e.$$typeof===g||e.$$typeof===h)},E.typeOf=x,E}():g.exports=(x||(x=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,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=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 c:case l:case r:case i:case o: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=c,x=l,O=s,w=a,S=t,k=u,N=r,T=m,$=f,P=n,C=i,_=o,R=p,M=!1;function A(e){return g(e)===l}I.AsyncMode=E,I.ConcurrentMode=x,I.ContextConsumer=O,I.ContextProvider=w,I.Element=S,I.ForwardRef=k,I.Fragment=N,I.Lazy=T,I.Memo=$,I.Portal=P,I.Profiler=C,I.StrictMode=_,I.Suspense=R,I.isAsyncMode=function(e){return M||(M=!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)===c},I.isConcurrentMode=A,I.isContextConsumer=function(e){return g(e)===s},I.isContextProvider=function(e){return g(e)===a},I.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},I.isForwardRef=function(e){return g(e)===u},I.isFragment=function(e){return g(e)===r},I.isLazy=function(e){return g(e)===m},I.isMemo=function(e){return g(e)===f},I.isPortal=function(e){return g(e)===n},I.isProfiler=function(e){return g(e)===i},I.isStrictMode=function(e){return g(e)===o},I.isSuspense=function(e){return g(e)===p},I.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||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)},I.typeOf=g}()),I)),g.exports} /* object-assign (c) Sindre Sorhus @license MIT */function D(){if(S)return w;S=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return w=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 r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){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)}(r),c=1;c<arguments.length;c++){for(var l in i=Object(arguments[c]))t.call(i,l)&&(s[l]=i[l]);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},w}function F(){if(N)return k;N=1;return k="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function V(){return $?T:($=1,T=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var L=j();v.exports=function(){if(R)return _;R=1;var e=j(),t=D(),n=F(),r=V(),o=function(){if(C)return P;C=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=F(),n={},r=V();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,c){if("production"!==process.env.NODE_ENV)for(var l in o)if(r(o,l)){var u;try{if("function"!=typeof o[l]){var p=Error((s||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=o[l](i,l,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+l+"` 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=c?c():"";e("Failed "+a+" type: "+u.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},P=o}(),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){}}),_=function(s,c){var l="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,r,o,i,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new m("Invalid "+i+" `"+a+"` of type `"+g(s)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<s.length;c++){var l=e(s,c,o,i,a+"["+c+"]",n);if(l instanceof Error)return l}return null}))},element:h((function(e,t,n,r,o){var i=e[t];return s(i)?null:new m("Invalid "+r+" `"+o+"` of type `"+g(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new m("Invalid "+o+" `"+i+"` of type `"+g(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||p;return new m("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:p)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,n,r,o){return v(e[t])?null:new m("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,o,i,a,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=t[o],l=g(c);if("object"!==l)return new m("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in c)if(r(c,u)){var p=e(c,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,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===E(t)?String(t):t}));return new m("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")})):("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 o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return h((function(t,o,i,a,s){for(var c=[],l=0;l<e.length;l++){var u=(0,e[l])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&c.push(u.data.expectedType)}return new m("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,r,o,i,a){var s=t[r],c=g(s);if("object"!==c)return new m("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in e){var u=e[l];if("function"!=typeof u)return b(o,i,a,l,E(u));var p=u(s,l,o,i,a+"."+l,n);if(p)return p}return null}))},exact:function(e){return h((function(o,i,a,s,c){var l=o[i],u=g(l);if("object"!==u)return new m("Invalid "+s+" `"+c+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var p=t({},o[i],e);for(var d in p){var f=e[d];if(r(e,d)&&"function"!=typeof f)return b(a,s,c,d,E(f));if(!f)return new m("Invalid "+s+" `"+c+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(l,d,a,s,c+"."+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={},r=0;function o(o,a,s,l,u,d,f){if(l=l||p,d=d||s,f!==n){if(c){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=l+":"+s;!t[y]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. 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,r++)}}return null==a[s]?o?null===a[s]?new m("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `null`."):new m("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(a,s,l,u,d)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function y(e){return h((function(t,n,r,o,i,a){var s=t[n];return g(s)!==e?new m("Invalid "+o+" `"+i+"` of type `"+E(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,n,r,o){return new m((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}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&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[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=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},_}()(L.isElement,!0)}else v.exports=function(){if(A)return M;A=1;var e=F();function t(){}function n(){}return n.resetWarningCache=t,M=function(){function r(t,n,r,o,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 o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var z=u(v.exports);function B(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=B(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function U(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=B(e))&&(r&&(r+=" "),r+=t);return r}function q(e){return"string"==typeof e}const K={disableDefaultClasses:!1},W=e.createContext(K);function H(e,t){return"function"==typeof e?e(t):e}function Y(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function G(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function X(e){if(!G(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=X(e[n])})),t}function J(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return G(e)&&G(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(G(t[o])&&o in e&&G(e[o])?r[o]=J(e[o],t[o],n):n.clone?r[o]=G(t[o])?X(t[o]):t[o]:r[o]=t[o])})),r}function Z(e,t,n,r,o){const i=e[t],a=o||t;if(null==i||"undefined"==typeof window)return null;let s;const c=i.type;return"function"!=typeof c||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(c)||(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 Q=Y(z.element,Z);Q.isRequired=Y(z.element.isRequired,Z);var ee=Q;var te=Y(z.elementType,(function(e,t,n,r,o){const i=e[t],a=o||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 ${r} \`${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 ne(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 re(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 oe,ie={exports:{}},ae={};var se,ce={}; /** * @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?ie.exports=function(){if(oe)return ae;oe=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=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 r:case i:case o:case u:case p:return e;default:switch(e=e&&e.$$typeof){case c:case s:case l:case f:case d:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),ae.ContextConsumer=s,ae.ContextProvider=a,ae.Element=t,ae.ForwardRef=l,ae.Fragment=r,ae.Lazy=f,ae.Memo=d,ae.Portal=n,ae.Profiler=i,ae.StrictMode=o,ae.Suspense=u,ae.SuspenseList=p,ae.isAsyncMode=function(){return!1},ae.isConcurrentMode=function(){return!1},ae.isContextConsumer=function(e){return h(e)===s},ae.isContextProvider=function(e){return h(e)===a},ae.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ae.isForwardRef=function(e){return h(e)===l},ae.isFragment=function(e){return h(e)===r},ae.isLazy=function(e){return h(e)===f},ae.isMemo=function(e){return h(e)===d},ae.isPortal=function(e){return h(e)===n},ae.isProfiler=function(e){return h(e)===i},ae.isStrictMode=function(e){return h(e)===o},ae.isSuspense=function(e){return h(e)===u},ae.isSuspenseList=function(e){return h(e)===p},ae.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||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===l||t.$$typeof===e||void 0!==t.getModuleId)},ae.typeOf=h,ae}():ie.exports=(se||(se=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=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 r:case i:case o:case u:case p:return h;default:var y=h&&h.$$typeof;switch(y){case c:case s:case l: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=l,E=r,x=f,O=d,w=n,S=i,k=o,N=u,T=p,$=!1,P=!1;ce.ContextConsumer=y,ce.ContextProvider=b,ce.Element=v,ce.ForwardRef=g,ce.Fragment=E,ce.Lazy=x,ce.Memo=O,ce.Portal=w,ce.Profiler=S,ce.StrictMode=k,ce.Suspense=N,ce.SuspenseList=T,ce.isAsyncMode=function(e){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},ce.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},ce.isContextConsumer=function(e){return h(e)===s},ce.isContextProvider=function(e){return h(e)===a},ce.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ce.isForwardRef=function(e){return h(e)===l},ce.isFragment=function(e){return h(e)===r},ce.isLazy=function(e){return h(e)===f},ce.isMemo=function(e){return h(e)===d},ce.isPortal=function(e){return h(e)===n},ce.isProfiler=function(e){return h(e)===i},ce.isStrictMode=function(e){return h(e)===o},ce.isSuspense=function(e){return h(e)===u},ce.isSuspenseList=function(e){return h(e)===p},ce.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||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===l||t.$$typeof===e||void 0!==t.getModuleId)},ce.typeOf=h}()),ce);var le=ie.exports;const ue=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function pe(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(ue);return t&&t[1]||""}(e)||t}function de(e,t,n){const r=pe(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function fe(e,t,n,r,o){if("production"===process.env.NODE_ENV)return null;const i=e[t],a=o||t;return null==i?null:i&&1!==i.nodeType?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var me=z.oneOfType([z.func,z.object]);function he(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":re(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ye(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function be(e){return e&&e.ownerDocument||document}function ve(e){return be(e).defaultView||window}function ge(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ee="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function xe(t){const n=e.useRef(t);return Ee((()=>{n.current=t})),e.useCallback(((...e)=>(0,n.current)(...e)),[])}function Oe(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{ge(t,e)}))}),t)}function we(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Se=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function ke(e,t,n,r){const o=e[t];if(null==o||!Se(o)){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}}(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${e}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Ne(e,t,...n){return void 0===e[t]?null:ke(e,t,...n)}function Te(){return null}Ne.isRequired=ke,Te.isRequired=Te;var $e="production"===process.env.NODE_ENV?Te:Ne;function Pe(e,t){const n={...t};return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]={...e[r],...n[r]};else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]={...i},Object.keys(o).forEach((e=>{n[r][e]=Pe(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Ce(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const _e=e=>e;var Re=(()=>{let e=_e;return{configure(t){e=t},generate:t=>e(t),reset(){e=_e}}})();const Me={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Ae(e,t,n="Mui"){const r=Me[t];return r?`${n}-${r}`:`${Re.generate(e)}-${t}`}function Ie(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Ae(e,t,n)})),r}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 De(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=U(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t=c({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=c({},n,o,r);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}(c({},o,r)),s=je(r),l=je(o),u=t(a),p=U(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=c({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),f=c({},u,n,l,s);return p.length>0&&(f.className=p),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const Fe=["elementType","externalSlotProps","ownerState"];function Ve(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=l(e,Fe),a=H(r,o),{props:s,internalRef:u}=De(c({},i,{externalSlotProps:a})),p=function(e,t,n){return void 0===e||q(e)?t:c({},t,{ownerState:c({},t.ownerState,n)})}(n,c({},s,{ref:Oe(u,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return p}const Le=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ze(e){const t=[],n=[];return Array.from(e.querySelectorAll(Le)).forEach(((e,r)=>{const o=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!==o&&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===o?t.push(e):n.push({documentOrder:r,tabIndex:o,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 Be(){return!0}function Ue(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:a=!1,disableRestoreFocus:s=!1,getTabbable:c=ze,isEnabled:l=Be,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=Oe(n.ref,b),g=e.useRef(null);e.useEffect((()=>{u&&b.current&&(y.current=!r)}),[r,u]),e.useEffect((()=>{if(!u||!b.current)return;const e=be(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()),()=>{s||(m.current&&m.current.focus&&(p.current=!0,m.current.focus()),m.current=null)}}),[u]),e.useEffect((()=>{if(!u||!b.current)return;const e=be(b.current),t=t=>{const{current:n}=b;if(null!==n)if(e.hasFocus()&&!a&&l()&&!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 i=[];if(e.activeElement!==d.current&&e.activeElement!==f.current||(i=c(b.current)),i.length>0){var r,o;const e=Boolean((null==(r=g.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=g.current)?void 0:o.key)),t=i[0],n=i[i.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,!a&&l()&&"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 r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[r,a,s,l,u,c]);const E=e=>{null===m.current&&(m.current=e.relatedTarget),y.current=!0};return o(e.Fragment,{children:[i("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)}}),i("div",{tabIndex:u?0:-1,onFocus:E,ref:f,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(Ue.propTypes={children:ee,disableAutoFocus:z.bool,disableEnforceFocus:z.bool,disableRestoreFocus:z.bool,getTabbable:z.func,isEnabled:z.func,open:z.bool.isRequired}),"production"!==process.env.NODE_ENV&&(Ue.propTypes=ne(Ue.propTypes));const qe=e.forwardRef((function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[c,l]=e.useState(null),u=Oe(e.isValidElement(r)?r.ref:null,n);if(Ee((()=>{s||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,s]),Ee((()=>{if(c&&!s)return ge(n,c),()=>{ge(n,null)}}),[n,c,s]),s){if(e.isValidElement(r)){const t={ref:u};return e.cloneElement(r,t)}return i(e.Fragment,{children:r})}return i(e.Fragment,{children:c?a.createPortal(r,c):c})}));"production"!==process.env.NODE_ENV&&(qe.propTypes={children:z.node,container:z.oneOfType([fe,z.func]),disablePortal:z.bool}),"production"!==process.env.NODE_ENV&&(qe.propTypes=ne(qe.propTypes));var Ke=qe;function We(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function He(e){return parseInt(ve(e).getComputedStyle(e).paddingRight,10)||0}function Ye(e,t,n,r,o){const i=[t,n,...r];[].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&&We(e,o)}))}function Ge(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Xe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=be(e);return t.body===e?ve(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=we(be(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${He(r)+e}px`;const t=be(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${He(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=be(r).body;else{const t=r.parentElement,n=ve(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}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 Je(e){return Ae("MuiModal",e)}Ie("MuiModal",["root","hidden","backdrop"]);const Ze=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],Qe=t=>{const{open:n,exited:r}=t;return Ce({root:["root",!n&&r&&"hidden"],backdrop:["backdrop"]},function(t){const{disableDefaultClasses:n}=e.useContext(W);return e=>n?"":t(e)}(Je))};const et=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&&We(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ye(t,e.mount,e.modalRef,r,!0);const o=Ge(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Ge(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Xe(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Ge(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&We(e.modalRef,t),Ye(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&We(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},tt=e.forwardRef((function(t,n){var r,a;const{children:s,closeAfterTransition:u=!1,container:p,disableAutoFocus:d=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:h=!1,disableRestoreFocus:y=!1,disableScrollLock:b=!1,hideBackdrop:v=!1,keepMounted:g=!1,manager:E=et,onBackdropClick:x,onClose:O,onKeyDown:w,open:S,onTransitionEnter:k,onTransitionExited:N,slotProps:T={},slots:$={}}=t,P=l(t,Ze),C=E,[_,R]=e.useState(!S),M=e.useRef({}),A=e.useRef(null),I=e.useRef(null),j=Oe(I,n),D=function(e){return!!e&&e.props.hasOwnProperty("in")}(s),F=null==(r=t["aria-hidden"])||r,V=()=>(M.current.modalRef=I.current,M.current.mountNode=A.current,M.current),L=()=>{C.mount(V(),{disableScrollLock:b}),I.current&&(I.current.scrollTop=0)},z=xe((()=>{const e=function(e){return"function"==typeof e?e():e}(p)||be(A.current).body;C.add(V(),e),I.current&&L()})),B=e.useCallback((()=>C.isTopModal(V())),[C]),U=xe((e=>{A.current=e,e&&I.current&&(S&&B()?L():We(I.current,F))})),q=e.useCallback((()=>{C.remove(V(),F)}),[C,F]);e.useEffect((()=>()=>{q()}),[q]),e.useEffect((()=>{S?z():D&&u||q()}),[S,q,D,u,z]);const K=c({},t,{closeAfterTransition:u,disableAutoFocus:d,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:h,disableRestoreFocus:y,disableScrollLock:b,exited:_,hideBackdrop:v,keepMounted:g}),W=Qe(K),H=()=>{R(!1),k&&k()},Y=()=>{R(!0),N&&N(),u&&q()},G={};void 0===s.props.tabIndex&&(G.tabIndex="-1"),D&&(G.onEnter=ye(H,s.props.onEnter),G.onExited=ye(Y,s.props.onExited));const X=null!=(a=$.root)?a:"div",J=Ve({elementType:X,externalSlotProps:T.root,externalForwardedProps:P,additionalProps:{ref:j,role:"presentation",onKeyDown:e=>{w&&w(e),"Escape"===e.key&&B()&&(m||(e.stopPropagation(),O&&O(e,"escapeKeyDown")))}},className:W.root,ownerState:K}),Z=$.backdrop,Q=Ve({elementType:Z,externalSlotProps:T.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(x&&x(e),O&&O(e,"backdropClick"))},open:S},className:W.backdrop,ownerState:K});return g||S||D&&!_?i(Ke,{ref:U,container:p,disablePortal:h,children:o(X,c({},J,{children:[!v&&Z?i(Z,c({},Q)):null,i(Ue,{disableEnforceFocus:f,disableAutoFocus:d,disableRestoreFocus:y,isEnabled:B,open:S,children:e.cloneElement(s,G)})]}))}):null}));"production"!==process.env.NODE_ENV&&(tt.propTypes={children:ee.isRequired,closeAfterTransition:z.bool,container:z.oneOfType([fe,z.func]),disableAutoFocus:z.bool,disableEnforceFocus:z.bool,disableEscapeKeyDown:z.bool,disablePortal:z.bool,disableRestoreFocus:z.bool,disableScrollLock:z.bool,hideBackdrop:z.bool,keepMounted:z.bool,onBackdropClick:z.func,onClose:z.func,open:z.bool.isRequired,slotProps:z.shape({backdrop:z.oneOfType([z.func,z.object]),root:z.oneOfType([z.func,z.object])}),slots:z.shape({backdrop:z.elementType,root:z.elementType})});var nt=tt;function rt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ot=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,it=rt((function(e){return ot.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var at=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),st="-ms-",ct="-moz-",lt="-webkit-",ut="comm",pt="rule",dt="decl",ft="@keyframes",mt=Math.abs,ht=String.fromCharCode,yt=Object.assign;function bt(e){return e.trim()}function vt(e,t,n){return e.replace(t,n)}function gt(e,t){return e.indexOf(t)}function Et(e,t){return 0|e.charCodeAt(t)}function xt(e,t,n){return e.slice(t,n)}function Ot(e){return e.length}function wt(e){return e.length}function St(e,t){return t.push(e),e}var kt=1,Nt=1,Tt=0,$t=0,Pt=0,Ct="";function _t(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:kt,column:Nt,length:a,return:""}}function Rt(e,t){return yt(_t("",null,null,"",null,null,0),e,{length:-e.length},t)}function Mt(){return Pt=$t>0?Et(Ct,--$t):0,Nt--,10===Pt&&(Nt=1,kt--),Pt}function At(){return Pt=$t<Tt?Et(Ct,$t++):0,Nt++,10===Pt&&(Nt=1,kt++),Pt}function It(){return Et(Ct,$t)}function jt(){return $t}function Dt(e,t){return xt(Ct,e,t)}function Ft(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Vt(e){return kt=Nt=1,Tt=Ot(Ct=e),$t=0,[]}function Lt(e){return Ct="",e}function zt(e){return bt(Dt($t-1,qt(91===e?e+2:40===e?e+1:e)))}function Bt(e){for(;(Pt=It())&&Pt<33;)At();return Ft(e)>2||Ft(Pt)>3?"":" "}function Ut(e,t){for(;--t&&At()&&!(Pt<48||Pt>102||Pt>57&&Pt<65||Pt>70&&Pt<97););return Dt(e,jt()+(t<6&&32==It()&&32==At(