form-input-mask-field
Version:
A customizable form mask field component built with TypeScript
49 lines • 192 kB
JavaScript
"use strict";var Yi=Object.defineProperty;var Ki=(e,t,r)=>t in e?Yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Kt=(e,t,r)=>Ki(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react/jsx-runtime"),We=require("react"),Ir=require("formik"),Gi=require("@emotion/styled"),Fo=require("@emotion/react"),At=require("react-dom");function jo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const T=jo(We),Xi=jo(At);function Zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={exports:{}},Xt={exports:{}},oe={};/** @license React v16.13.1
* react-is.production.min.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.
*/var Nr;function Qi(){if(Nr)return oe;Nr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,c=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function g(E){if(typeof E=="object"&&E!==null){var P=E.$$typeof;switch(P){case t:switch(E=E.type,E){case u:case f:case o:case s:case i:case m:return E;default:switch(E=E&&E.$$typeof,E){case l:case p:case y:case b:case a:return E;default:return P}}case r:return P}}}function v(E){return g(E)===f}return oe.AsyncMode=u,oe.ConcurrentMode=f,oe.ContextConsumer=l,oe.ContextProvider=a,oe.Element=t,oe.ForwardRef=p,oe.Fragment=o,oe.Lazy=y,oe.Memo=b,oe.Portal=r,oe.Profiler=s,oe.StrictMode=i,oe.Suspense=m,oe.isAsyncMode=function(E){return v(E)||g(E)===u},oe.isConcurrentMode=v,oe.isContextConsumer=function(E){return g(E)===l},oe.isContextProvider=function(E){return g(E)===a},oe.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},oe.isForwardRef=function(E){return g(E)===p},oe.isFragment=function(E){return g(E)===o},oe.isLazy=function(E){return g(E)===y},oe.isMemo=function(E){return g(E)===b},oe.isPortal=function(E){return g(E)===r},oe.isProfiler=function(E){return g(E)===s},oe.isStrictMode=function(E){return g(E)===i},oe.isSuspense=function(E){return g(E)===m},oe.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===o||E===f||E===s||E===i||E===m||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===b||E.$$typeof===a||E.$$typeof===l||E.$$typeof===p||E.$$typeof===S||E.$$typeof===x||E.$$typeof===I||E.$$typeof===c)},oe.typeOf=g,oe}var ie={};/** @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.
*/var $r;function Ji(){return $r||($r=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,c=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function g(R){return typeof R=="string"||typeof R=="function"||R===o||R===f||R===s||R===i||R===m||R===h||typeof R=="object"&&R!==null&&(R.$$typeof===y||R.$$typeof===b||R.$$typeof===a||R.$$typeof===l||R.$$typeof===p||R.$$typeof===S||R.$$typeof===x||R.$$typeof===I||R.$$typeof===c)}function v(R){if(typeof R=="object"&&R!==null){var ne=R.$$typeof;switch(ne){case t:var ee=R.type;switch(ee){case u:case f:case o:case s:case i:case m:return ee;default:var pe=ee&&ee.$$typeof;switch(pe){case l:case p:case y:case b:case a:return pe;default:return ne}}case r:return ne}}}var E=u,P=f,M=l,j=a,B=t,d=p,w=o,k=y,D=b,z=r,N=s,A=i,U=m,J=!1;function L(R){return J||(J=!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.")),O(R)||v(R)===u}function O(R){return v(R)===f}function $(R){return v(R)===l}function G(R){return v(R)===a}function V(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function W(R){return v(R)===p}function q(R){return v(R)===o}function X(R){return v(R)===y}function H(R){return v(R)===b}function Q(R){return v(R)===r}function Y(R){return v(R)===s}function _(R){return v(R)===i}function Z(R){return v(R)===m}ie.AsyncMode=E,ie.ConcurrentMode=P,ie.ContextConsumer=M,ie.ContextProvider=j,ie.Element=B,ie.ForwardRef=d,ie.Fragment=w,ie.Lazy=k,ie.Memo=D,ie.Portal=z,ie.Profiler=N,ie.StrictMode=A,ie.Suspense=U,ie.isAsyncMode=L,ie.isConcurrentMode=O,ie.isContextConsumer=$,ie.isContextProvider=G,ie.isElement=V,ie.isForwardRef=W,ie.isFragment=q,ie.isLazy=X,ie.isMemo=H,ie.isPortal=Q,ie.isProfiler=Y,ie.isStrictMode=_,ie.isSuspense=Z,ie.isValidElementType=g,ie.typeOf=v}()),ie}var Ar;function Do(){return Ar||(Ar=1,process.env.NODE_ENV==="production"?Xt.exports=Qi():Xt.exports=Ji()),Xt.exports}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var Mn,kr;function es(){if(kr)return Mn;kr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(a).map(function(p){return a[p]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(p){f[p]=p}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Mn=i()?Object.assign:function(s,a){for(var l,u=o(s),f,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var m in l)t.call(l,m)&&(u[m]=l[m]);if(e){f=e(l);for(var h=0;h<f.length;h++)r.call(l,f[h])&&(u[f[h]]=l[f[h]])}}return u},Mn}var Fn,_r;function lr(){if(_r)return Fn;_r=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fn=e,Fn}var jn,Mr;function Lo(){return Mr||(Mr=1,jn=Function.call.bind(Object.prototype.hasOwnProperty)),jn}var Dn,Fr;function ts(){if(Fr)return Dn;Fr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=lr(),r={},o=Lo();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,l,u,f){if(process.env.NODE_ENV!=="production"){for(var p in s)if(o(s,p)){var m;try{if(typeof s[p]!="function"){var h=Error((u||"React class")+": "+l+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}m=s[p](a,p,u,l,null,t)}catch(y){m=y}if(m&&!(m instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var b=f?f():"";e("Failed "+l+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Dn=i,Dn}var Ln,jr;function ns(){if(jr)return Ln;jr=1;var e=Do(),t=es(),r=lr(),o=Lo(),i=ts(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Ln=function(l,u){var f=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function m(O){var $=O&&(f&&O[f]||O[p]);if(typeof $=="function")return $}var h="<<anonymous>>",b={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:I(),arrayOf:g,element:v(),elementType:E(),instanceOf:P,node:d(),objectOf:j,oneOf:M,oneOfType:B,shape:k,exact:D};function y(O,$){return O===$?O!==0||1/O===1/$:O!==O&&$!==$}function c(O,$){this.message=O,this.data=$&&typeof $=="object"?$:{},this.stack=""}c.prototype=Error.prototype;function S(O){if(process.env.NODE_ENV!=="production")var $={},G=0;function V(q,X,H,Q,Y,_,Z){if(Q=Q||h,_=_||H,Z!==r){if(u){var R=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 R.name="Invariant Violation",R}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ne=Q+":"+H;!$[ne]&&G<3&&(s("You are manually calling a React.PropTypes validation function for the `"+_+"` prop on `"+Q+"`. 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."),$[ne]=!0,G++)}}return X[H]==null?q?X[H]===null?new c("The "+Y+" `"+_+"` is marked as required "+("in `"+Q+"`, but its value is `null`.")):new c("The "+Y+" `"+_+"` is marked as required in "+("`"+Q+"`, but its value is `undefined`.")):null:O(X,H,Q,Y,_)}var W=V.bind(null,!1);return W.isRequired=V.bind(null,!0),W}function x(O){function $(G,V,W,q,X,H){var Q=G[V],Y=A(Q);if(Y!==O){var _=U(Q);return new c("Invalid "+q+" `"+X+"` of type "+("`"+_+"` supplied to `"+W+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return S($)}function I(){return S(a)}function g(O){function $(G,V,W,q,X){if(typeof O!="function")return new c("Property `"+X+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var H=G[V];if(!Array.isArray(H)){var Q=A(H);return new c("Invalid "+q+" `"+X+"` of type "+("`"+Q+"` supplied to `"+W+"`, expected an array."))}for(var Y=0;Y<H.length;Y++){var _=O(H,Y,W,q,X+"["+Y+"]",r);if(_ instanceof Error)return _}return null}return S($)}function v(){function O($,G,V,W,q){var X=$[G];if(!l(X)){var H=A(X);return new c("Invalid "+W+" `"+q+"` of type "+("`"+H+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return S(O)}function E(){function O($,G,V,W,q){var X=$[G];if(!e.isValidElementType(X)){var H=A(X);return new c("Invalid "+W+" `"+q+"` of type "+("`"+H+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return S(O)}function P(O){function $(G,V,W,q,X){if(!(G[V]instanceof O)){var H=O.name||h,Q=L(G[V]);return new c("Invalid "+q+" `"+X+"` of type "+("`"+Q+"` supplied to `"+W+"`, expected ")+("instance of `"+H+"`."))}return null}return S($)}function M(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function $(G,V,W,q,X){for(var H=G[V],Q=0;Q<O.length;Q++)if(y(H,O[Q]))return null;var Y=JSON.stringify(O,function(Z,R){var ne=U(R);return ne==="symbol"?String(R):R});return new c("Invalid "+q+" `"+X+"` of value `"+String(H)+"` "+("supplied to `"+W+"`, expected one of "+Y+"."))}return S($)}function j(O){function $(G,V,W,q,X){if(typeof O!="function")return new c("Property `"+X+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var H=G[V],Q=A(H);if(Q!=="object")return new c("Invalid "+q+" `"+X+"` of type "+("`"+Q+"` supplied to `"+W+"`, expected an object."));for(var Y in H)if(o(H,Y)){var _=O(H,Y,W,q,X+"."+Y,r);if(_ instanceof Error)return _}return null}return S($)}function B(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var $=0;$<O.length;$++){var G=O[$];if(typeof G!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(G)+" at index "+$+"."),a}function V(W,q,X,H,Q){for(var Y=[],_=0;_<O.length;_++){var Z=O[_],R=Z(W,q,X,H,Q,r);if(R==null)return null;R.data&&o(R.data,"expectedType")&&Y.push(R.data.expectedType)}var ne=Y.length>0?", expected one of type ["+Y.join(", ")+"]":"";return new c("Invalid "+H+" `"+Q+"` supplied to "+("`"+X+"`"+ne+"."))}return S(V)}function d(){function O($,G,V,W,q){return z($[G])?null:new c("Invalid "+W+" `"+q+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return S(O)}function w(O,$,G,V,W){return new c((O||"React class")+": "+$+" type `"+G+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function k(O){function $(G,V,W,q,X){var H=G[V],Q=A(H);if(Q!=="object")return new c("Invalid "+q+" `"+X+"` of type `"+Q+"` "+("supplied to `"+W+"`, expected `object`."));for(var Y in O){var _=O[Y];if(typeof _!="function")return w(W,q,X,Y,U(_));var Z=_(H,Y,W,q,X+"."+Y,r);if(Z)return Z}return null}return S($)}function D(O){function $(G,V,W,q,X){var H=G[V],Q=A(H);if(Q!=="object")return new c("Invalid "+q+" `"+X+"` of type `"+Q+"` "+("supplied to `"+W+"`, expected `object`."));var Y=t({},G[V],O);for(var _ in Y){var Z=O[_];if(o(O,_)&&typeof Z!="function")return w(W,q,X,_,U(Z));if(!Z)return new c("Invalid "+q+" `"+X+"` key `"+_+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(G[V],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(O),null," "));var R=Z(H,_,W,q,X+"."+_,r);if(R)return R}return null}return S($)}function z(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(z);if(O===null||l(O))return!0;var $=m(O);if($){var G=$.call(O),V;if($!==O.entries){for(;!(V=G.next()).done;)if(!z(V.value))return!1}else for(;!(V=G.next()).done;){var W=V.value;if(W&&!z(W[1]))return!1}}else return!1;return!0;default:return!1}}function N(O,$){return O==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function A(O){var $=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":N($,O)?"symbol":$}function U(O){if(typeof O>"u"||O===null)return""+O;var $=A(O);if($==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return $}function J(O){var $=U(O);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function L(O){return!O.constructor||!O.constructor.name?h:O.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Ln}var Bn,Dr;function rs(){if(Dr)return Bn;Dr=1;var e=lr();function t(){}function r(){}return r.resetWarningCache=t,Bn=function(){function o(a,l,u,f,p,m){if(m!==e){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}}o.isRequired=o;function i(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Bn}var Lr;function os(){if(Lr)return Gt.exports;if(Lr=1,process.env.NODE_ENV!=="production"){var e=Do(),t=!0;Gt.exports=ns()(e.isElement,t)}else Gt.exports=rs()();return Gt.exports}var is=os();const n=Zi(is);function Bo(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Bo(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function he(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Bo(e))&&(o&&(o+=" "),o+=t);return o}function Te(e,t,r=void 0){const o={};for(const i in e){const s=e[i];let a="",l=!0;for(let u=0;u<s.length;u+=1){const f=s[u];f&&(a+=(l===!0?"":" ")+t(f),l=!1,r&&r[f]&&(a+=" "+r[f]))}o[i]=a}return o}let Br=0;function ss(e){const[t,r]=T.useState(e),o=e||t;return T.useEffect(()=>{t==null&&(Br+=1,r(`mui-${Br}`))},[t]),o}const as={...T},Vr=as.useId;function Vo(e){if(Vr!==void 0){const t=Vr();return e??t}return ss(e)}const tt=n.oneOfType([n.func,n.object]);function Ue(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>r.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${r} for the full message.`}function be(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ue(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Zt={exports:{}},ae={};/**
* @license React
* react-is.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var zr;function ls(){if(zr)return ae;zr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function y(c){if(typeof c=="object"&&c!==null){var S=c.$$typeof;switch(S){case e:switch(c=c.type,c){case r:case i:case o:case u:case f:case h:return c;default:switch(c=c&&c.$$typeof,c){case a:case l:case m:case p:return c;case s:return c;default:return S}}case t:return S}}}return ae.ContextConsumer=s,ae.ContextProvider=a,ae.Element=e,ae.ForwardRef=l,ae.Fragment=r,ae.Lazy=m,ae.Memo=p,ae.Portal=t,ae.Profiler=i,ae.StrictMode=o,ae.Suspense=u,ae.SuspenseList=f,ae.isContextConsumer=function(c){return y(c)===s},ae.isContextProvider=function(c){return y(c)===a},ae.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===e},ae.isForwardRef=function(c){return y(c)===l},ae.isFragment=function(c){return y(c)===r},ae.isLazy=function(c){return y(c)===m},ae.isMemo=function(c){return y(c)===p},ae.isPortal=function(c){return y(c)===t},ae.isProfiler=function(c){return y(c)===i},ae.isStrictMode=function(c){return y(c)===o},ae.isSuspense=function(c){return y(c)===u},ae.isSuspenseList=function(c){return y(c)===f},ae.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===r||c===i||c===o||c===u||c===f||typeof c=="object"&&c!==null&&(c.$$typeof===m||c.$$typeof===p||c.$$typeof===a||c.$$typeof===s||c.$$typeof===l||c.$$typeof===b||c.getModuleId!==void 0)},ae.typeOf=y,ae}var le={};/**
* @license React
* react-is.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Wr;function cs(){return Wr||(Wr=1,process.env.NODE_ENV!=="production"&&function(){function e(c){if(typeof c=="object"&&c!==null){var S=c.$$typeof;switch(S){case t:switch(c=c.type,c){case o:case s:case i:case f:case p:case b:return c;default:switch(c=c&&c.$$typeof,c){case l:case u:case h:case m:return c;case a:return c;default:return S}}case r:return S}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");le.ContextConsumer=a,le.ContextProvider=l,le.Element=t,le.ForwardRef=u,le.Fragment=o,le.Lazy=h,le.Memo=m,le.Portal=r,le.Profiler=s,le.StrictMode=i,le.Suspense=f,le.SuspenseList=p,le.isContextConsumer=function(c){return e(c)===a},le.isContextProvider=function(c){return e(c)===l},le.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===t},le.isForwardRef=function(c){return e(c)===u},le.isFragment=function(c){return e(c)===o},le.isLazy=function(c){return e(c)===h},le.isMemo=function(c){return e(c)===m},le.isPortal=function(c){return e(c)===r},le.isProfiler=function(c){return e(c)===s},le.isStrictMode=function(c){return e(c)===i},le.isSuspense=function(c){return e(c)===f},le.isSuspenseList=function(c){return e(c)===p},le.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===o||c===s||c===i||c===f||c===p||typeof c=="object"&&c!==null&&(c.$$typeof===h||c.$$typeof===m||c.$$typeof===l||c.$$typeof===a||c.$$typeof===u||c.$$typeof===y||c.getModuleId!==void 0)},le.typeOf=e}()),le}var Ur;function us(){return Ur||(Ur=1,process.env.NODE_ENV==="production"?Zt.exports=ls():Zt.exports=cs()),Zt.exports}var on=us();function Ke(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function zo(e){if(T.isValidElement(e)||on.isValidElementType(e)||!Ke(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=zo(e[r])}),t}function Pe(e,t,r={clone:!0}){const o=r.clone?{...e}:e;return Ke(e)&&Ke(t)&&Object.keys(t).forEach(i=>{T.isValidElement(t[i])||on.isValidElementType(t[i])?o[i]=t[i]:Ke(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Ke(e[i])?o[i]=Pe(e[i],t[i],r):r.clone?o[i]=Ke(t[i])?zo(t[i]):t[i]:o[i]=t[i]}),o}function jt(e,t){return t?Pe(e,t,{clone:!1}):e}const nt=process.env.NODE_ENV!=="production"?n.oneOfType([n.number,n.string,n.object,n.array]):{};function qr(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,i)=>{var a,l;const s=/min-width:\s*([0-9.]+)/;return+(((a=o.match(s))==null?void 0:a[1])||0)-+(((l=i.match(s))==null?void 0:l[1])||0)});return r.length?r.reduce((o,i)=>{const s=t[i];return delete o[i],o[i]=s,o},{...t}):t}function ds(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function fs(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ue(18,`(${t})`));return null}const[,o,i]=r,s=Number.isNaN(+o)?o||0:+o;return e.containerQueries(i).up(s)}function ps(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function r(s,a){s.up=(...l)=>t(e.breakpoints.up(...l),a),s.down=(...l)=>t(e.breakpoints.down(...l),a),s.between=(...l)=>t(e.breakpoints.between(...l),a),s.only=(...l)=>t(e.breakpoints.only(...l),a),s.not=(...l)=>{const u=t(e.breakpoints.not(...l),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const o={},i=s=>(r(o,s),o);return r(i),{...e,containerQueries:i}}const mn={xs:0,sm:600,md:900,lg:1200,xl:1536},Hr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mn[e]}px)`},ms={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:mn[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Ge(e,t,r){const o=e.theme||{};if(Array.isArray(t)){const s=o.breakpoints||Hr;return t.reduce((a,l,u)=>(a[s.up(s.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const s=o.breakpoints||Hr;return Object.keys(t).reduce((a,l)=>{if(ds(s.keys,l)){const u=fs(o.containerQueries?o:ms,l);u&&(a[u]=r(t[l],l))}else if(Object.keys(s.values||mn).includes(l)){const u=s.up(l);a[u]=r(t[l],l)}else{const u=l;a[u]=t[u]}return a},{})}return r(t)}function hs(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((o,i)=>{const s=e.up(i);return o[s]={},o},{}))||{}}function Yr(e,t){return e.reduce((r,o)=>{const i=r[o];return(!i||Object.keys(i).length===0)&&delete r[o],r},t)}function hn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const o=`vars.${t}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,e);if(o!=null)return o}return t.split(".").reduce((o,i)=>o&&o[i]!=null?o[i]:null,e)}function sn(e,t,r,o=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||o:i=hn(e,r)||o,t&&(i=t(i,o,e)),i}function ve(e){const{prop:t,cssProperty:r=e.prop,themeKey:o,transform:i}=e,s=a=>{if(a[t]==null)return null;const l=a[t],u=a.theme,f=hn(u,o)||{};return Ge(a,l,m=>{let h=sn(f,i,m);return m===h&&typeof m=="string"&&(h=sn(f,i,`${t}${m==="default"?"":be(m)}`,m)),r===!1?h:{[r]:h}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:nt}:{},s.filterProps=[t],s}function ys(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const gs={m:"margin",p:"padding"},bs={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Kr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vs=ys(e=>{if(e.length>2)if(Kr[e])e=Kr[e];else return[e];const[t,r]=e.split(""),o=gs[t],i=bs[r]||"";return Array.isArray(i)?i.map(s=>o+s):[o+i]}),yn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Es=[...yn,...gn];function zt(e,t,r,o){const i=hn(e,t,!0)??r;return typeof i=="number"||typeof i=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${s}.`),typeof i=="string"?i.startsWith("var(")&&s===0?0:i.startsWith("var(")&&s===1?i:`calc(${s} * ${i})`:i*s):Array.isArray(i)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
`)));const l=i[a];return s>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
`)),()=>{})}function cr(e){return zt(e,"spacing",8,"spacing")}function Wt(e,t){return typeof t=="string"||t==null?t:e(t)}function Ts(e,t){return r=>e.reduce((o,i)=>(o[i]=Wt(t,r),o),{})}function Ss(e,t,r,o){if(!t.includes(r))return null;const i=vs(r),s=Ts(i,o),a=e[r];return Ge(e,a,s)}function Wo(e,t){const r=cr(e.theme);return Object.keys(e).map(o=>Ss(e,t,o,r)).reduce(jt,{})}function ye(e){return Wo(e,yn)}ye.propTypes=process.env.NODE_ENV!=="production"?yn.reduce((e,t)=>(e[t]=nt,e),{}):{};ye.filterProps=yn;function ge(e){return Wo(e,gn)}ge.propTypes=process.env.NODE_ENV!=="production"?gn.reduce((e,t)=>(e[t]=nt,e),{}):{};ge.filterProps=gn;process.env.NODE_ENV!=="production"&&Es.reduce((e,t)=>(e[t]=nt,e),{});function bn(...e){const t=e.reduce((o,i)=>(i.filterProps.forEach(s=>{o[s]=i}),o),{}),r=o=>Object.keys(o).reduce((i,s)=>t[s]?jt(i,t[s](o)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,i)=>Object.assign(o,i.propTypes),{}):{},r.filterProps=e.reduce((o,i)=>o.concat(i.filterProps),[]),r}function _e(e){return typeof e!="number"?e:`${e}px solid`}function Me(e,t){return ve({prop:e,themeKey:"borders",transform:t})}const xs=Me("border",_e),Cs=Me("borderTop",_e),Os=Me("borderRight",_e),ws=Me("borderBottom",_e),Rs=Me("borderLeft",_e),Ps=Me("borderColor"),Is=Me("borderTopColor"),Ns=Me("borderRightColor"),$s=Me("borderBottomColor"),As=Me("borderLeftColor"),ks=Me("outline",_e),_s=Me("outlineColor"),vn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=zt(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Wt(t,o)});return Ge(e,e.borderRadius,r)}return null};vn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:nt}:{};vn.filterProps=["borderRadius"];bn(xs,Cs,Os,ws,Rs,Ps,Is,Ns,$s,As,vn,ks,_s);const En=e=>{if(e.gap!==void 0&&e.gap!==null){const t=zt(e.theme,"spacing",8,"gap"),r=o=>({gap:Wt(t,o)});return Ge(e,e.gap,r)}return null};En.propTypes=process.env.NODE_ENV!=="production"?{gap:nt}:{};En.filterProps=["gap"];const Tn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=zt(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Wt(t,o)});return Ge(e,e.columnGap,r)}return null};Tn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:nt}:{};Tn.filterProps=["columnGap"];const Sn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=zt(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Wt(t,o)});return Ge(e,e.rowGap,r)}return null};Sn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:nt}:{};Sn.filterProps=["rowGap"];const Ms=ve({prop:"gridColumn"}),Fs=ve({prop:"gridRow"}),js=ve({prop:"gridAutoFlow"}),Ds=ve({prop:"gridAutoColumns"}),Ls=ve({prop:"gridAutoRows"}),Bs=ve({prop:"gridTemplateColumns"}),Vs=ve({prop:"gridTemplateRows"}),zs=ve({prop:"gridTemplateAreas"}),Ws=ve({prop:"gridArea"});bn(En,Tn,Sn,Ms,Fs,js,Ds,Ls,Bs,Vs,zs,Ws);function Tt(e,t){return t==="grey"?t:e}const Us=ve({prop:"color",themeKey:"palette",transform:Tt}),qs=ve({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Tt}),Hs=ve({prop:"backgroundColor",themeKey:"palette",transform:Tt});bn(Us,qs,Hs);function $e(e){return e<=1&&e!==0?`${e*100}%`:e}const Ys=ve({prop:"width",transform:$e}),ur=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,s,a,l,u;const o=((a=(s=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:s.values)==null?void 0:a[r])||mn[r];return o?((u=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:$e(r)}};return Ge(e,e.maxWidth,t)}return null};ur.filterProps=["maxWidth"];const Ks=ve({prop:"minWidth",transform:$e}),Gs=ve({prop:"height",transform:$e}),Xs=ve({prop:"maxHeight",transform:$e}),Zs=ve({prop:"minHeight",transform:$e});ve({prop:"size",cssProperty:"width",transform:$e});ve({prop:"size",cssProperty:"height",transform:$e});const Qs=ve({prop:"boxSizing"});bn(Ys,ur,Ks,Gs,Xs,Zs,Qs);const xn={border:{themeKey:"borders",transform:_e},borderTop:{themeKey:"borders",transform:_e},borderRight:{themeKey:"borders",transform:_e},borderBottom:{themeKey:"borders",transform:_e},borderLeft:{themeKey:"borders",transform:_e},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_e},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:vn},color:{themeKey:"palette",transform:Tt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Tt},backgroundColor:{themeKey:"palette",transform:Tt},p:{style:ge},pt:{style:ge},pr:{style:ge},pb:{style:ge},pl:{style:ge},px:{style:ge},py:{style:ge},padding:{style:ge},paddingTop:{style:ge},paddingRight:{style:ge},paddingBottom:{style:ge},paddingLeft:{style:ge},paddingX:{style:ge},paddingY:{style:ge},paddingInline:{style:ge},paddingInlineStart:{style:ge},paddingInlineEnd:{style:ge},paddingBlock:{style:ge},paddingBlockStart:{style:ge},paddingBlockEnd:{style:ge},m:{style:ye},mt:{style:ye},mr:{style:ye},mb:{style:ye},ml:{style:ye},mx:{style:ye},my:{style:ye},margin:{style:ye},marginTop:{style:ye},marginRight:{style:ye},marginBottom:{style:ye},marginLeft:{style:ye},marginX:{style:ye},marginY:{style:ye},marginInline:{style:ye},marginInlineStart:{style:ye},marginInlineEnd:{style:ye},marginBlock:{style:ye},marginBlockStart:{style:ye},marginBlockEnd:{style:ye},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:En},rowGap:{style:Sn},columnGap:{style:Tn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$e},maxWidth:{style:ur},minWidth:{transform:$e},height:{transform:$e},maxHeight:{transform:$e},minHeight:{transform:$e},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Js(...e){const t=e.reduce((o,i)=>o.concat(Object.keys(i)),[]),r=new Set(t);return e.every(o=>r.size===Object.keys(o).length)}function ea(e,t){return typeof e=="function"?e(t):e}function ta(){function e(r,o,i,s){const a={[r]:o,theme:i},l=s[r];if(!l)return{[r]:o};const{cssProperty:u=r,themeKey:f,transform:p,style:m}=l;if(o==null)return null;if(f==="typography"&&o==="inherit")return{[r]:o};const h=hn(i,f)||{};return m?m(a):Ge(a,o,y=>{let c=sn(h,p,y);return y===c&&typeof y=="string"&&(c=sn(h,p,`${r}${y==="default"?"":be(y)}`,y)),u===!1?c:{[u]:c}})}function t(r){const{sx:o,theme:i={},nested:s}=r||{};if(!o)return null;const a=i.unstable_sxConfig??xn;function l(u){let f=u;if(typeof u=="function")f=u(i);else if(typeof u!="object")return u;if(!f)return null;const p=hs(i.breakpoints),m=Object.keys(p);let h=p;return Object.keys(f).forEach(b=>{const y=ea(f[b],i);if(y!=null)if(typeof y=="object")if(a[b])h=jt(h,e(b,y,i,a));else{const c=Ge({theme:i},y,S=>({[b]:S}));Js(c,y)?h[b]=t({sx:y,theme:i,nested:!0}):h=jt(h,c)}else h=jt(h,e(b,y,i,a))}),!s&&i.modularCssLayers?{"@layer sx":qr(i,Yr(m,h))}:qr(i,Yr(m,h))}return Array.isArray(o)?o.map(l):l(o)}return t}const St=ta();St.filterProps=["sx"];function na(e){for(var t=0,r,o=0,i=e.length;i>=4;++o,i-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ra={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function oa(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var ia=/[A-Z]|^ms/g,sa=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Uo=function(t){return t.charCodeAt(1)===45},Gr=function(t){return t!=null&&typeof t!="boolean"},Vn=oa(function(e){return Uo(e)?e:e.replace(ia,"-$&").toLowerCase()}),Xr=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(sa,function(o,i,s){return Qe={name:i,styles:s,next:Qe},i})}return ra[t]!==1&&!Uo(t)&&typeof r=="number"&&r!==0?r+"px":r};function an(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Qe={name:i.name,styles:i.styles,next:Qe},i.name;var s=r;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)Qe={name:a.name,styles:a.styles,next:Qe},a=a.next;var l=s.styles+";";return l}return aa(e,t,r)}}var u=r;return u}function aa(e,t,r){var o="";if(Array.isArray(r))for(var i=0;i<r.length;i++)o+=an(e,t,r[i])+";";else for(var s in r){var a=r[s];if(typeof a!="object"){var l=a;Gr(l)&&(o+=Vn(s)+":"+Xr(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var u=0;u<a.length;u++)Gr(a[u])&&(o+=Vn(s)+":"+Xr(s,a[u])+";");else{var f=an(e,t,a);switch(s){case"animation":case"animationName":{o+=Vn(s)+":"+f+";";break}default:o+=s+"{"+f+"}"}}}return o}var Zr=/label:\s*([^\s;{]+)\s*(;|$)/g,Qe;function la(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";Qe=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,i+=an(r,t,s);else{var a=s;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=an(r,t,e[l]),o){var u=s;i+=u[l]}Zr.lastIndex=0;for(var f="",p;(p=Zr.exec(i))!==null;)f+="-"+p[1];var m=na(i)+f;return{name:m,styles:i,next:Qe}}function ca(e){return e==null||Object.keys(e).length===0}function qo(e){const{styles:t,defaultTheme:r={}}=e,o=typeof t=="function"?i=>t(ca(i)?r:i):t;return F.jsx(Fo.Global,{styles:o})}process.env.NODE_ENV!=="production"&&(qo.propTypes={defaultTheme:n.object,styles:n.oneOfType([n.array,n.string,n.object,n.func])});/**
* @mui/styled-engine v7.2.0
*
* @license MIT
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function ua(e,t){const r=Gi(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const i=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
`)):o.some(s=>s===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...o)}:r}function da(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Qr=[];function Je(e){return Qr[0]=e,la(Qr)}const fa=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>({...r,[o.key]:o.val}),{})};function pa(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5,...i}=e,s=fa(t),a=Object.keys(s);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function u(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-o/100}${r})`}function f(h,b){const y=a.indexOf(b);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:b)-o/100}${r})`}function p(h){return a.indexOf(h)+1<a.length?f(h,a[a.indexOf(h)+1]):l(h)}function m(h){const b=a.indexOf(h);return b===0?l(a[1]):b===a.length-1?u(a[b]):f(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:l,down:u,between:f,only:p,not:m,unit:r,...i}}const ma={borderRadius:4};function Ho(e=8,t=cr({spacing:e})){if(e.mui)return e;const r=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function ha(e,t){var o;const r=this;if(r.vars){if(!((o=r.colorSchemes)!=null&&o[e])||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function dr(e={},...t){const{breakpoints:r={},palette:o={},spacing:i,shape:s={},...a}=e,l=pa(r),u=Ho(i);let f=Pe({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:u,shape:{...ma,...s}},a);return f=ps(f),f.applyStyles=ha,f=t.reduce((p,m)=>Pe(p,m),f),f.unstable_sxConfig={...xn,...a==null?void 0:a.unstable_sxConfig},f.unstable_sx=function(m){return St({sx:m,theme:this})},f}function ya(e){return Object.keys(e).length===0}function ga(e=null){const t=T.useContext(Fo.ThemeContext);return!t||ya(t)?e:t}const ba=dr();function Yo(e=ba){return ga(e)}function zn(e){const t=Je(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Ko({styles:e,themeId:t,defaultTheme:r={}}){const o=Yo(r),i=t&&o[t]||o;let s=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>zn(typeof a=="function"?a(i):a)):s=zn(s)),F.jsx(qo,{styles:s})}process.env.NODE_ENV!=="production"&&(Ko.propTypes={defaultTheme:n.object,styles:n.oneOfType([n.array,n.func,n.number,n.object,n.string,n.bool]),themeId:n.string});const Jr=e=>e,va=()=>{let e=Jr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Jr}}},Ea=va(),Ta={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ee(e,t,r="Mui"){const o=Ta[t];return o?`${r}-${o}`:`${Ea.generate(e)}-${t}`}function Se(e,t,r="Mui"){const o={};return t.forEach(i=>{o[i]=Ee(e,i,r)}),o}function Go(e,t=""){return e.displayName||e.name||t}function eo(e,t,r){const o=Go(t);return e.displayName||(o!==""?`${r}(${o})`:r)}function Sa(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Go(e,"Component");if(typeof e=="object")switch(e.$$typeof){case on.ForwardRef:return eo(e,e.render,"ForwardRef");case on.Memo:return eo(e,e.type,"memo");default:return}}}function Xo(e){const{variants:t,...r}=e,o={variants:t,style:Je(r),isProcessed:!0};return o.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Je(i.style))}),o}const xa=dr();function Wn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function lt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Ca(e){return e?(t,r)=>r[e]:null}function Oa(e,t,r){e.theme=Ia(e.theme)?r:e.theme[t]||e.theme}function rn(e,t,r){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(i=>rn(e,i,r));if(Array.isArray(o==null?void 0:o.variants)){let i;if(o.isProcessed)i=r?lt(o.style,r):o.style;else{const{variants:s,...a}=o;i=r?lt(Je(a),r):a}return Zo(e,o.variants,[i],r)}return o!=null&&o.isProcessed?r?lt(Je(o.style),r):o.style:r?lt(Je(o),r):o}function Zo(e,t,r=[],o=void 0){var s;let i;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(i))continue}else for(const u in l.props)if(e[u]!==l.props[u]&&((s=e.ownerState)==null?void 0:s[u])!==l.props[u])continue e;typeof l.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),r.push(o?lt(Je(l.style(i)),o):l.style(i))):r.push(o?lt(Je(l.style),o):l.style)}return r}function wa(e={}){const{themeId:t,defaultTheme:r=xa,rootShouldForwardProp:o=Wn,slotShouldForwardProp:i=Wn}=e;function s(l){Oa(l,t,r)}return(l,u={})=>{da(l,P=>P.filter(M=>M!==St));const{name:f,slot:p,skipVariantsResolver:m,skipSx:h,overridesResolver:b=Ca(Qo(p)),...y}=u,c=f&&f.startsWith("Mui")||p?"components":"custom",S=m!==void 0?m:p&&p!=="Root"&&p!=="root"||!1,x=h||!1;let I=Wn;p==="Root"||p==="root"?I=o:p?I=i:Na(l)&&(I=void 0);const g=ua(l,{shouldForwardProp:I,label:Pa(f,p),...y}),v=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(j){return rn(j,P,j.theme.modularCssLayers?c:void 0)};if(Ke(P)){const M=Xo(P);return function(B){return M.variants?rn(B,M,B.theme.modularCssLayers?c:void 0):B.theme.modularCssLayers?lt(M.style,c):M.style}}return P},E=(...P)=>{const M=[],j=P.map(v),B=[];if(M.push(s),f&&b&&B.push(function(D){var U,J;const N=(J=(U=D.theme.components)==null?void 0:U[f])==null?void 0:J.styleOverrides;if(!N)return null;const A={};for(const L in N)A[L]=rn(D,N[L],D.theme.modularCssLayers?"theme":void 0);return b(D,A)}),f&&!S&&B.push(function(D){var A,U;const z=D.theme,N=(U=(A=z==null?void 0:z.components)==null?void 0:A[f])==null?void 0:U.variants;return N?Zo(D,N,[],D.theme.modularCssLayers?"theme":void 0):null}),x||B.push(St),Array.isArray(j[0])){const k=j.shift(),D=new Array(M.length).fill(""),z=new Array(B.length).fill("");let N;N=[...D,...k,...z],N.raw=[...D,...k.raw,...z],M.unshift(N)}const d=[...M,...j,...B],w=g(...d);return l.muiName&&(w.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(w.displayName=Ra(f,p,l)),w};return g.withConfig&&(E.withConfig=g.withConfig),E}}function Ra(e,t,r){return e?`${e}${be(t||"")}`:`Styled(${Sa(r)})`}function Pa(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Qo(t||"Root")}`),r}function Ia(e){for(const t in e)return!1;return!0}function Na(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Qo(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Xn(e,t,r=!1){const o={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=i;if(s==="components"||s==="slots")o[s]={...e[s],...o[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)o[s]=a||{};else if(!a)o[s]=l;else{o[s]={...l};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const f=u;o[s][f]=Xn(a[f],l[f],r)}}}else s==="className"&&r&&t.className?o.className=he(e==null?void 0:e.className,t==null?void 0:t.className):s==="style"&&r&&t.style?o.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:o[s]===void 0&&(o[s]=e[s])}return o}const ct=typeof window<"u"?T.useLayoutEffect:T.useEffect;function $a(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function fr(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),$a(e,t,r)}function Aa(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((o,i)=>i<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function et(e){if(e.type)return e;if(e.charAt(0)==="#")return et(Aa(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ue(9,e));let o=e.substring(t+1,e.length-1),i;if(r==="color"){if(o=o.split(" "),i=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ue(10,i))}else o=o.split(",");return o=o.map(s=>parseFloat(s)),{type:r,values:o,colorSpace:i}}const ka=e=>{const t=et(e);return t.values.slice(0,3).map((r,o)=>t.type.includes("hsl")&&o!==0?`${r}%`:r).join(" ")},kt=(e,t)=>{try{return ka(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Cn(e){const{type:t,colorSpace:r}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((i,s)=>s<3?parseInt(i,10):i):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${r} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Jo(e){e=et(e);const{values:t}=e,r=t[0],o=t[1]/100,i=t[2]/100,s=o*Math.min(i,1-i),a=(f,p=(f+r/30)%12)=>i-s*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),Cn({type:l,values:u})}function Zn(e){e=et(e);let t=e.type==="hsl"||e.type==="hsla"?et(Jo(e)).values:e.v