@codeplex-sac/ui 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +107 -109
- package/index.js +19286 -21692
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),Re=require("react"),_n=require("react-dom");function Uc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const w=Uc(Re),xp=Uc(_n),Cp={};function wp(){return m.jsx("div",{className:Cp.container,children:m.jsx("h1",{children:"Welcome to Ui!"})})}function Tp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sr={exports:{}},Or={exports:{}},Ye={};var ol;function Sp(){if(ol)return Ye;ol=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function T(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case t:switch(S=S.type,S){case c:case u:case r:case i:case a:case f:return S;default:switch(S=S&&S.$$typeof,S){case l:case d:case h:case x:case s:return S;default:return E}}case n:return E}}}function C(S){return T(S)===u}return Ye.AsyncMode=c,Ye.ConcurrentMode=u,Ye.ContextConsumer=l,Ye.ContextProvider=s,Ye.Element=t,Ye.ForwardRef=d,Ye.Fragment=r,Ye.Lazy=h,Ye.Memo=x,Ye.Portal=n,Ye.Profiler=i,Ye.StrictMode=a,Ye.Suspense=f,Ye.isAsyncMode=function(S){return C(S)||T(S)===c},Ye.isConcurrentMode=C,Ye.isContextConsumer=function(S){return T(S)===l},Ye.isContextProvider=function(S){return T(S)===s},Ye.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Ye.isForwardRef=function(S){return T(S)===d},Ye.isFragment=function(S){return T(S)===r},Ye.isLazy=function(S){return T(S)===h},Ye.isMemo=function(S){return T(S)===x},Ye.isPortal=function(S){return T(S)===n},Ye.isProfiler=function(S){return T(S)===i},Ye.isStrictMode=function(S){return T(S)===a},Ye.isSuspense=function(S){return T(S)===f},Ye.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===i||S===a||S===f||S===y||typeof S=="object"&&S!==null&&(S.$$typeof===h||S.$$typeof===x||S.$$typeof===s||S.$$typeof===l||S.$$typeof===d||S.$$typeof===b||S.$$typeof===v||S.$$typeof===O||S.$$typeof===p)},Ye.typeOf=T,Ye}var Xe={};var nl;function Op(){return nl||(nl=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function T(W){return typeof W=="string"||typeof W=="function"||W===r||W===u||W===i||W===a||W===f||W===y||typeof W=="object"&&W!==null&&(W.$$typeof===h||W.$$typeof===x||W.$$typeof===s||W.$$typeof===l||W.$$typeof===d||W.$$typeof===b||W.$$typeof===v||W.$$typeof===O||W.$$typeof===p)}function C(W){if(typeof W=="object"&&W!==null){var ae=W.$$typeof;switch(ae){case t:var se=W.type;switch(se){case c:case u:case r:case i:case a:case f:return se;default:var ue=se&&se.$$typeof;switch(ue){case l:case d:case h:case x:case s:return ue;default:return ae}}case n:return ae}}}var S=c,E=u,P=l,$=s,I=t,N=d,A=r,g=h,j=x,R=n,M=i,k=a,z=f,F=!1;function _(W){return F||(F=!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.")),B(W)||C(W)===c}function B(W){return C(W)===u}function L(W){return C(W)===l}function G(W){return C(W)===s}function J(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function te(W){return C(W)===d}function K(W){return C(W)===r}function U(W){return C(W)===h}function ne(W){return C(W)===x}function le(W){return C(W)===n}function Z(W){return C(W)===i}function X(W){return C(W)===a}function ce(W){return C(W)===f}Xe.AsyncMode=S,Xe.ConcurrentMode=E,Xe.ContextConsumer=P,Xe.ContextProvider=$,Xe.Element=I,Xe.ForwardRef=N,Xe.Fragment=A,Xe.Lazy=g,Xe.Memo=j,Xe.Portal=R,Xe.Profiler=M,Xe.StrictMode=k,Xe.Suspense=z,Xe.isAsyncMode=_,Xe.isConcurrentMode=B,Xe.isContextConsumer=L,Xe.isContextProvider=G,Xe.isElement=J,Xe.isForwardRef=te,Xe.isFragment=K,Xe.isLazy=U,Xe.isMemo=ne,Xe.isPortal=le,Xe.isProfiler=Z,Xe.isStrictMode=X,Xe.isSuspense=ce,Xe.isValidElementType=T,Xe.typeOf=C})()),Xe}var rl;function Ji(){return rl||(rl=1,process.env.NODE_ENV==="production"?Or.exports=Sp():Or.exports=Op()),Or.exports}var Ja,al;function Ep(){if(al)return Ja;al=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(d){return s[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ja=a()?Object.assign:function(i,s){for(var l,c=r(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){u=e(l);for(var y=0;y<u.length;y++)n.call(l,u[y])&&(c[u[y]]=l[u[y]])}}return c},Ja}var Za,il;function Zi(){if(il)return Za;il=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Za=e,Za}var Qa,sl;function Hc(){return sl||(sl=1,Qa=Function.call.bind(Object.prototype.hasOwnProperty)),Qa}var ei,ll;function kp(){if(ll)return ei;ll=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Zi(),n={},r=Hc();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(i,s,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var f;try{if(typeof i[d]!="function"){var y=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}f=i[d](s,d,c,l,null,t)}catch(h){f=h}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var x=u?u():"";e("Failed "+l+" type: "+f.message+(x??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ei=a,ei}var ti,cl;function Pp(){if(cl)return ti;cl=1;var e=Ji(),t=Ep(),n=Zi(),r=Hc(),a=kp(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return ti=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(B){var L=B&&(u&&B[u]||B[d]);if(typeof L=="function")return L}var y="<<anonymous>>",x={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:O(),arrayOf:T,element:C(),elementType:S(),instanceOf:E,node:N(),objectOf:$,oneOf:P,oneOfType:I,shape:g,exact:j};function h(B,L){return B===L?B!==0||1/B===1/L:B!==B&&L!==L}function p(B,L){this.message=B,this.data=L&&typeof L=="object"?L:{},this.stack=""}p.prototype=Error.prototype;function b(B){if(process.env.NODE_ENV!=="production")var L={},G=0;function J(K,U,ne,le,Z,X,ce){if(le=le||y,X=X||ne,ce!==n){if(c){var W=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 W.name="Invariant Violation",W}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ae=le+":"+ne;!L[ae]&&G<3&&(i("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+le+"`. 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."),L[ae]=!0,G++)}}return U[ne]==null?K?U[ne]===null?new p("The "+Z+" `"+X+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new p("The "+Z+" `"+X+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:B(U,ne,le,Z,X)}var te=J.bind(null,!1);return te.isRequired=J.bind(null,!0),te}function v(B){function L(G,J,te,K,U,ne){var le=G[J],Z=k(le);if(Z!==B){var X=z(le);return new p("Invalid "+K+" `"+U+"` of type "+("`"+X+"` supplied to `"+te+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return b(L)}function O(){return b(s)}function T(B){function L(G,J,te,K,U){if(typeof B!="function")return new p("Property `"+U+"` of component `"+te+"` has invalid PropType notation inside arrayOf.");var ne=G[J];if(!Array.isArray(ne)){var le=k(ne);return new p("Invalid "+K+" `"+U+"` of type "+("`"+le+"` supplied to `"+te+"`, expected an array."))}for(var Z=0;Z<ne.length;Z++){var X=B(ne,Z,te,K,U+"["+Z+"]",n);if(X instanceof Error)return X}return null}return b(L)}function C(){function B(L,G,J,te,K){var U=L[G];if(!l(U)){var ne=k(U);return new p("Invalid "+te+" `"+K+"` of type "+("`"+ne+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return b(B)}function S(){function B(L,G,J,te,K){var U=L[G];if(!e.isValidElementType(U)){var ne=k(U);return new p("Invalid "+te+" `"+K+"` of type "+("`"+ne+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return b(B)}function E(B){function L(G,J,te,K,U){if(!(G[J]instanceof B)){var ne=B.name||y,le=_(G[J]);return new p("Invalid "+K+" `"+U+"` of type "+("`"+le+"` supplied to `"+te+"`, expected ")+("instance of `"+ne+"`."))}return null}return b(L)}function P(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function L(G,J,te,K,U){for(var ne=G[J],le=0;le<B.length;le++)if(h(ne,B[le]))return null;var Z=JSON.stringify(B,function(ce,W){var ae=z(W);return ae==="symbol"?String(W):W});return new p("Invalid "+K+" `"+U+"` of value `"+String(ne)+"` "+("supplied to `"+te+"`, expected one of "+Z+"."))}return b(L)}function $(B){function L(G,J,te,K,U){if(typeof B!="function")return new p("Property `"+U+"` of component `"+te+"` has invalid PropType notation inside objectOf.");var ne=G[J],le=k(ne);if(le!=="object")return new p("Invalid "+K+" `"+U+"` of type "+("`"+le+"` supplied to `"+te+"`, expected an object."));for(var Z in ne)if(r(ne,Z)){var X=B(ne,Z,te,K,U+"."+Z,n);if(X instanceof Error)return X}return null}return b(L)}function I(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var L=0;L<B.length;L++){var G=B[L];if(typeof G!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(G)+" at index "+L+"."),s}function J(te,K,U,ne,le){for(var Z=[],X=0;X<B.length;X++){var ce=B[X],W=ce(te,K,U,ne,le,n);if(W==null)return null;W.data&&r(W.data,"expectedType")&&Z.push(W.data.expectedType)}var ae=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new p("Invalid "+ne+" `"+le+"` supplied to "+("`"+U+"`"+ae+"."))}return b(J)}function N(){function B(L,G,J,te,K){return R(L[G])?null:new p("Invalid "+te+" `"+K+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return b(B)}function A(B,L,G,J,te){return new p((B||"React class")+": "+L+" type `"+G+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+te+"`.")}function g(B){function L(G,J,te,K,U){var ne=G[J],le=k(ne);if(le!=="object")return new p("Invalid "+K+" `"+U+"` of type `"+le+"` "+("supplied to `"+te+"`, expected `object`."));for(var Z in B){var X=B[Z];if(typeof X!="function")return A(te,K,U,Z,z(X));var ce=X(ne,Z,te,K,U+"."+Z,n);if(ce)return ce}return null}return b(L)}function j(B){function L(G,J,te,K,U){var ne=G[J],le=k(ne);if(le!=="object")return new p("Invalid "+K+" `"+U+"` of type `"+le+"` "+("supplied to `"+te+"`, expected `object`."));var Z=t({},G[J],B);for(var X in Z){var ce=B[X];if(r(B,X)&&typeof ce!="function")return A(te,K,U,X,z(ce));if(!ce)return new p("Invalid "+K+" `"+U+"` key `"+X+"` supplied to `"+te+"`.\nBad object: "+JSON.stringify(G[J],null," ")+`
|
|
2
|
-
Valid keys: `+JSON.stringify(Object.keys(B),null," "));var
|
|
3
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
4
|
-
`)):console.error([`MUI: The \`theme.${
|
|
5
|
-
`)));const l=a[s];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${
|
|
6
|
-
`)),()=>{})}function da(e){return dr(e,"spacing",8,"spacing")}function Jo(e,t){return typeof t=="string"||t==null?t:e(t)}function Gp(e,t){return n=>e.reduce((r,a)=>(r[a]=Jo(t,n),r),{})}function Kp(e,t,n,r){if(!t.includes(n))return null;const a=Hp(n),i=Gp(a,r),s=e[n];return oo(e,s,i)}function Xc(e,t){const n=da(e.theme);return Object.keys(e).map(r=>Kp(e,t,r,n)).reduce(Yn,{})}function ct(e){return Xc(e,ca)}ct.propTypes=process.env.NODE_ENV!=="production"?ca.reduce((e,t)=>(e[t]=Bo,e),{}):{};ct.filterProps=ca;function ut(e){return Xc(e,ua)}ut.propTypes=process.env.NODE_ENV!=="production"?ua.reduce((e,t)=>(e[t]=Bo,e),{}):{};ut.filterProps=ua;process.env.NODE_ENV!=="production"&&qp.reduce((e,t)=>(e[t]=Bo,e),{});function pa(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(i=>{r[i]=a}),r),{}),n=r=>Object.keys(r).reduce((a,i)=>t[i]?Yn(a,t[i](r)):a,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,a)=>Object.assign(r,a.propTypes),{}):{},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Gt(e){return typeof e!="number"?e:`${e}px solid`}function eo(e,t){return pt({prop:e,themeKey:"borders",transform:t})}const Yp=eo("border",Gt),Xp=eo("borderTop",Gt),Jp=eo("borderRight",Gt),Zp=eo("borderBottom",Gt),Qp=eo("borderLeft",Gt),ef=eo("borderColor"),tf=eo("borderTopColor"),of=eo("borderRightColor"),nf=eo("borderBottomColor"),rf=eo("borderLeftColor"),af=eo("outline",Gt),sf=eo("outlineColor"),fa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=dr(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Jo(t,r)});return oo(e,e.borderRadius,n)}return null};fa.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Bo}:{};fa.filterProps=["borderRadius"];pa(Yp,Xp,Jp,Zp,Qp,ef,tf,of,nf,rf,fa,af,sf);const ma=e=>{if(e.gap!==void 0&&e.gap!==null){const t=dr(e.theme,"spacing",8,"gap"),n=r=>({gap:Jo(t,r)});return oo(e,e.gap,n)}return null};ma.propTypes=process.env.NODE_ENV!=="production"?{gap:Bo}:{};ma.filterProps=["gap"];const ga=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=dr(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Jo(t,r)});return oo(e,e.columnGap,n)}return null};ga.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Bo}:{};ga.filterProps=["columnGap"];const ha=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=dr(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Jo(t,r)});return oo(e,e.rowGap,n)}return null};ha.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Bo}:{};ha.filterProps=["rowGap"];const lf=pt({prop:"gridColumn"}),cf=pt({prop:"gridRow"}),uf=pt({prop:"gridAutoFlow"}),df=pt({prop:"gridAutoColumns"}),pf=pt({prop:"gridAutoRows"}),ff=pt({prop:"gridTemplateColumns"}),mf=pt({prop:"gridTemplateRows"}),gf=pt({prop:"gridTemplateAreas"}),hf=pt({prop:"gridArea"});pa(ma,ga,ha,lf,cf,uf,df,pf,ff,mf,gf,hf);function bn(e,t){return t==="grey"?t:e}const bf=pt({prop:"color",themeKey:"palette",transform:bn}),yf=pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bn}),vf=pt({prop:"backgroundColor",themeKey:"palette",transform:bn});pa(bf,yf,vf);function Vt(e){return e<=1&&e!==0?`${e*100}%`:e}const xf=pt({prop:"width",transform:Vt}),Qi=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||sa[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Vt(n)}};return oo(e,e.maxWidth,t)}return null};Qi.filterProps=["maxWidth"];const Cf=pt({prop:"minWidth",transform:Vt}),wf=pt({prop:"height",transform:Vt}),Tf=pt({prop:"maxHeight",transform:Vt}),Sf=pt({prop:"minHeight",transform:Vt});pt({prop:"size",cssProperty:"width",transform:Vt});pt({prop:"size",cssProperty:"height",transform:Vt});const Of=pt({prop:"boxSizing"});pa(xf,Qi,Cf,wf,Tf,Sf,Of);const pr={border:{themeKey:"borders",transform:Gt},borderTop:{themeKey:"borders",transform:Gt},borderRight:{themeKey:"borders",transform:Gt},borderBottom:{themeKey:"borders",transform:Gt},borderLeft:{themeKey:"borders",transform:Gt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:fa},color:{themeKey:"palette",transform:bn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bn},backgroundColor:{themeKey:"palette",transform:bn},p:{style:ut},pt:{style:ut},pr:{style:ut},pb:{style:ut},pl:{style:ut},px:{style:ut},py:{style:ut},padding:{style:ut},paddingTop:{style:ut},paddingRight:{style:ut},paddingBottom:{style:ut},paddingLeft:{style:ut},paddingX:{style:ut},paddingY:{style:ut},paddingInline:{style:ut},paddingInlineStart:{style:ut},paddingInlineEnd:{style:ut},paddingBlock:{style:ut},paddingBlockStart:{style:ut},paddingBlockEnd:{style:ut},m:{style:ct},mt:{style:ct},mr:{style:ct},mb:{style:ct},ml:{style:ct},mx:{style:ct},my:{style:ct},margin:{style:ct},marginTop:{style:ct},marginRight:{style:ct},marginBottom:{style:ct},marginLeft:{style:ct},marginX:{style:ct},marginY:{style:ct},marginInline:{style:ct},marginInlineStart:{style:ct},marginInlineEnd:{style:ct},marginBlock:{style:ct},marginBlockStart:{style:ct},marginBlockEnd:{style:ct},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:ma},rowGap:{style:ha},columnGap:{style:ga},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vt},maxWidth:{style:Qi},minWidth:{transform:Vt},height:{transform:Vt},maxHeight:{transform:Vt},minHeight:{transform:Vt},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 Ef(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function kf(e,t){return typeof e=="function"?e(t):e}function Pf(){function e(n,r,a,i){const s={[n]:r,theme:a},l=i[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const y=la(a,u)||{};return f?f(s):oo(s,r,h=>{let p=Ur(y,d,h);return h===p&&typeof h=="string"&&(p=Ur(y,d,`${n}${h==="default"?"":V(h)}`,h)),c===!1?p:{[c]:p}})}function t(n){const{sx:r,theme:a={},nested:i}=n||{};if(!r)return null;const s=a.unstable_sxConfig??pr;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=Yc(a.breakpoints),f=Object.keys(d);let y=d;return Object.keys(u).forEach(x=>{const h=kf(u[x],a);if(h!=null)if(typeof h=="object")if(s[x])y=Yn(y,e(x,h,a,s));else{const p=oo({theme:a},h,b=>({[x]:b}));Ef(p,h)?y[x]=t({sx:h,theme:a,nested:!0}):y=Yn(y,p)}else y=Yn(y,e(x,h,a,s))}),!i&&a.modularCssLayers?{"@layer sx":hl(a,wi(f,y))}:hl(a,wi(f,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const Zo=Pf();Zo.filterProps=["sx"];const Rf=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??pr;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function es(e){const{sx:t,...n}=e,{systemProps:r,otherProps:a}=Rf(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const l=t(...s);return co(l)?{...r,...l}:r}:i={...r,...t},{...a,sx:i}}function Hr(){return Hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hr.apply(null,arguments)}function $f(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]}function If(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var jf=(function(){function e(n){var r=this;this._insertTag=function(a){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,i),r.tags.push(a)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(If(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=$f(a);try{i.insertRule(r,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var a;return(a=r.parentNode)==null?void 0:a.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Rt="-ms-",qr="-moz-",Ge="-webkit-",Jc="comm",ts="rule",os="decl",Mf="@import",Zc="@keyframes",Nf="@layer",Af=Math.abs,ba=String.fromCharCode,Lf=Object.assign;function Df(e,t){return Et(e,0)^45?(((t<<2^Et(e,0))<<2^Et(e,1))<<2^Et(e,2))<<2^Et(e,3):0}function Qc(e){return e.trim()}function Bf(e,t){return(e=t.exec(e))?e[0]:e}function Ke(e,t,n){return e.replace(t,n)}function Ti(e,t){return e.indexOf(t)}function Et(e,t){return e.charCodeAt(t)|0}function or(e,t,n){return e.slice(t,n)}function so(e){return e.length}function ns(e){return e.length}function kr(e,t){return t.push(e),e}function Ff(e,t){return e.map(t).join("")}var ya=1,xn=1,eu=0,Dt=0,gt=0,kn="";function va(e,t,n,r,a,i,s){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:ya,column:xn,length:s,return:""}}function Nn(e,t){return Lf(va("",null,null,"",null,null,0),e,{length:-e.length},t)}function zf(){return gt}function Vf(){return gt=Dt>0?Et(kn,--Dt):0,xn--,gt===10&&(xn=1,ya--),gt}function _t(){return gt=Dt<eu?Et(kn,Dt++):0,xn++,gt===10&&(xn=1,ya++),gt}function uo(){return Et(kn,Dt)}function Fr(){return Dt}function fr(e,t){return or(kn,e,t)}function nr(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 tu(e){return ya=xn=1,eu=so(kn=e),Dt=0,[]}function ou(e){return kn="",e}function zr(e){return Qc(fr(Dt-1,Si(e===91?e+2:e===40?e+1:e)))}function _f(e){for(;(gt=uo())&><33;)_t();return nr(e)>2||nr(gt)>3?"":" "}function Wf(e,t){for(;--t&&_t()&&!(gt<48||gt>102||gt>57&><65||gt>70&><97););return fr(e,Fr()+(t<6&&uo()==32&&_t()==32))}function Si(e){for(;_t();)switch(gt){case e:return Dt;case 34:case 39:e!==34&&e!==39&&Si(gt);break;case 40:e===41&&Si(e);break;case 92:_t();break}return Dt}function Uf(e,t){for(;_t()&&e+gt!==57;)if(e+gt===84&&uo()===47)break;return"/*"+fr(t,Dt-1)+"*"+ba(e===47?e:_t())}function Hf(e){for(;!nr(uo());)_t();return fr(e,Dt)}function qf(e){return ou(Vr("",null,null,null,[""],e=tu(e),0,[0],e))}function Vr(e,t,n,r,a,i,s,l,c){for(var u=0,d=0,f=s,y=0,x=0,h=0,p=1,b=1,v=1,O=0,T="",C=a,S=i,E=r,P=T;b;)switch(h=O,O=_t()){case 40:if(h!=108&&Et(P,f-1)==58){Ti(P+=Ke(zr(O),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:P+=zr(O);break;case 9:case 10:case 13:case 32:P+=_f(h);break;case 92:P+=Wf(Fr()-1,7);continue;case 47:switch(uo()){case 42:case 47:kr(Gf(Uf(_t(),Fr()),t,n),c);break;default:P+="/"}break;case 123*p:l[u++]=so(P)*v;case 125*p:case 59:case 0:switch(O){case 0:case 125:b=0;case 59+d:v==-1&&(P=Ke(P,/\f/g,"")),x>0&&so(P)-f&&kr(x>32?xl(P+";",r,n,f-1):xl(Ke(P," ","")+";",r,n,f-2),c);break;case 59:P+=";";default:if(kr(E=vl(P,t,n,u,d,a,l,T,C=[],S=[],f),i),O===123)if(d===0)Vr(P,t,E,E,C,i,f,l,S);else switch(y===99&&Et(P,3)===110?100:y){case 100:case 108:case 109:case 115:Vr(e,E,E,r&&kr(vl(e,E,E,0,0,a,l,T,a,C=[],f),S),a,S,f,l,r?C:S);break;default:Vr(P,E,E,E,[""],S,0,l,S)}}u=d=x=0,p=v=1,T=P="",f=s;break;case 58:f=1+so(P),x=h;default:if(p<1){if(O==123)--p;else if(O==125&&p++==0&&Vf()==125)continue}switch(P+=ba(O),O*p){case 38:v=d>0?1:(P+="\f",-1);break;case 44:l[u++]=(so(P)-1)*v,v=1;break;case 64:uo()===45&&(P+=zr(_t())),y=uo(),d=f=so(T=P+=Hf(Fr())),O++;break;case 45:h===45&&so(P)==2&&(p=0)}}return i}function vl(e,t,n,r,a,i,s,l,c,u,d){for(var f=a-1,y=a===0?i:[""],x=ns(y),h=0,p=0,b=0;h<r;++h)for(var v=0,O=or(e,f+1,f=Af(p=s[h])),T=e;v<x;++v)(T=Qc(p>0?y[v]+" "+O:Ke(O,/&\f/g,y[v])))&&(c[b++]=T);return va(e,t,n,a===0?ts:l,c,u,d)}function Gf(e,t,n){return va(e,t,n,Jc,ba(zf()),or(e,2,-2),0)}function xl(e,t,n,r){return va(e,t,n,os,or(e,0,r),or(e,r+1,-1),r)}function yn(e,t){for(var n="",r=ns(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function Kf(e,t,n,r){switch(e.type){case Nf:if(e.children.length)break;case Mf:case os:return e.return=e.return||e.value;case Jc:return"";case Zc:return e.return=e.value+"{"+yn(e.children,r)+"}";case ts:e.value=e.props.join(",")}return so(n=yn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Yf(e){var t=ns(e);return function(n,r,a,i){for(var s="",l=0;l<t;l++)s+=e[l](n,r,a,i)||"";return s}}function Xf(e){return function(t){t.root||(t=t.return)&&e(t)}}function nu(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Jf=function(t,n,r){for(var a=0,i=0;a=i,i=uo(),a===38&&i===12&&(n[r]=1),!nr(i);)_t();return fr(t,Dt)},Zf=function(t,n){var r=-1,a=44;do switch(nr(a)){case 0:a===38&&uo()===12&&(n[r]=1),t[r]+=Jf(Dt-1,n,r);break;case 2:t[r]+=zr(a);break;case 4:if(a===44){t[++r]=uo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ba(a)}while(a=_t());return t},Qf=function(t,n){return ou(Zf(tu(t),n))},Cl=new WeakMap,em=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,a=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Cl.get(r))&&!a){Cl.set(t,!0);for(var i=[],s=Qf(n,i),l=r.props,c=0,u=0;c<s.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=i[c]?s[c].replace(/&\f/g,l[d]):l[d]+" "+s[c]}}},tm=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ru(e,t){switch(Df(e,t)){case 5103:return Ge+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ge+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ge+e+qr+e+Rt+e+e;case 6828:case 4268:return Ge+e+Rt+e+e;case 6165:return Ge+e+Rt+"flex-"+e+e;case 5187:return Ge+e+Ke(e,/(\w+).+(:[^]+)/,Ge+"box-$1$2"+Rt+"flex-$1$2")+e;case 5443:return Ge+e+Rt+"flex-item-"+Ke(e,/flex-|-self/,"")+e;case 4675:return Ge+e+Rt+"flex-line-pack"+Ke(e,/align-content|flex-|-self/,"")+e;case 5548:return Ge+e+Rt+Ke(e,"shrink","negative")+e;case 5292:return Ge+e+Rt+Ke(e,"basis","preferred-size")+e;case 6060:return Ge+"box-"+Ke(e,"-grow","")+Ge+e+Rt+Ke(e,"grow","positive")+e;case 4554:return Ge+Ke(e,/([^-])(transform)/g,"$1"+Ge+"$2")+e;case 6187:return Ke(Ke(Ke(e,/(zoom-|grab)/,Ge+"$1"),/(image-set)/,Ge+"$1"),e,"")+e;case 5495:case 3959:return Ke(e,/(image-set\([^]*)/,Ge+"$1$`$1");case 4968:return Ke(Ke(e,/(.+:)(flex-)?(.*)/,Ge+"box-pack:$3"+Rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ge+e+e;case 4095:case 3583:case 4068:case 2532:return Ke(e,/(.+)-inline(.+)/,Ge+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(so(e)-1-t>6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return Ke(e,/(.+:)(.+)-([^]+)/,"$1"+Ge+"$2-$3$1"+qr+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ti(e,"stretch")?ru(Ke(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,so(e)-3-(~Ti(e,"!important")&&10))){case 107:return Ke(e,":",":"+Ge)+e;case 101:return Ke(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ge+(Et(e,14)===45?"inline-":"")+"box$3$1"+Ge+"$2$3$1"+Rt+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return Ge+e+Rt+Ke(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ge+e+Rt+Ke(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ge+e+Rt+Ke(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ge+e+Rt+e+e}return e}var om=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case os:t.return=ru(t.value,t.length);break;case Zc:return yn([Nn(t,{value:Ke(t.value,"@","@"+Ge)})],a);case ts:if(t.length)return Ff(t.props,function(i){switch(Bf(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yn([Nn(t,{props:[Ke(i,/:(read-\w+)/,":"+qr+"$1")]})],a);case"::placeholder":return yn([Nn(t,{props:[Ke(i,/:(plac\w+)/,":"+Ge+"input-$1")]}),Nn(t,{props:[Ke(i,/:(plac\w+)/,":"+qr+"$1")]}),Nn(t,{props:[Ke(i,/:(plac\w+)/,Rt+"input-$1")]})],a)}return""})}},nm=[om],rm=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var b=p.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var a=t.stylisPlugins||nm,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var b=p.getAttribute("data-emotion").split(" "),v=1;v<b.length;v++)i[b[v]]=!0;l.push(p)});var c,u=[em,tm];{var d,f=[Kf,Xf(function(p){d.insert(p)})],y=Yf(u.concat(a,f)),x=function(b){return yn(qf(b),y)};c=function(b,v,O,T){d=O,x(b?b+"{"+v.styles+"}":v.styles),T&&(h.inserted[v.name]=!0)}}var h={key:n,sheet:new jf({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return h.sheet.hydrate(l),h},ri,wl;function am(){if(wl)return ri;wl=1;var e=Ji(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function s(h){return e.isMemo(h)?a:i[h.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,y=Object.prototype;function x(h,p,b){if(typeof p!="string"){if(y){var v=f(p);v&&v!==y&&x(h,v,b)}var O=c(p);u&&(O=O.concat(u(p)));for(var T=s(h),C=s(p),S=0;S<O.length;++S){var E=O[S];if(!n[E]&&!(b&&b[E])&&!(C&&C[E])&&!(T&&T[E])){var P=d(p,E);try{l(h,E,P)}catch{}}}}return h}return ri=x,ri}am();var im=!0;function au(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(r+=a+" ")}),r}var rs=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||im===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},as=function(t,n,r){rs(t,n,r);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function sm(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 lm={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},cm=/[A-Z]|^ms/g,um=/_EMO_([^_]+?)_([^]*?)_EMO_/g,iu=function(t){return t.charCodeAt(1)===45},Tl=function(t){return t!=null&&typeof t!="boolean"},ai=nu(function(e){return iu(e)?e:e.replace(cm,"-$&").toLowerCase()}),Sl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(um,function(r,a,i){return lo={name:a,styles:i,next:lo},a})}return lm[t]!==1&&!iu(t)&&typeof n=="number"&&n!==0?n+"px":n};function rr(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return lo={name:a.name,styles:a.styles,next:lo},a.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)lo={name:s.name,styles:s.styles,next:lo},s=s.next;var l=i.styles+";";return l}return dm(e,t,n)}case"function":{if(e!==void 0){var c=lo,u=n(e);return lo=c,rr(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function dm(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=rr(e,t,n[a])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var l=s;t!=null&&t[l]!==void 0?r+=i+"{"+t[l]+"}":Tl(l)&&(r+=ai(i)+":"+Sl(i,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)Tl(s[c])&&(r+=ai(i)+":"+Sl(i,s[c])+";");else{var u=rr(e,t,s);switch(i){case"animation":case"animationName":{r+=ai(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var Ol=/label:\s*([^\s;{]+)\s*(;|$)/g,lo;function mr(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";lo=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,a+=rr(n,t,i);else{var s=i;a+=s[0]}for(var l=1;l<e.length;l++)if(a+=rr(n,t,e[l]),r){var c=i;a+=c[l]}Ol.lastIndex=0;for(var u="",d;(d=Ol.exec(a))!==null;)u+="-"+d[1];var f=sm(a)+u;return{name:f,styles:a,next:lo}}var pm=function(t){return t()},su=w.useInsertionEffect?w.useInsertionEffect:!1,lu=su||pm,El=su||w.useLayoutEffect,cu=w.createContext(typeof HTMLElement<"u"?rm({key:"css"}):null);cu.Provider;var is=function(t){return Re.forwardRef(function(n,r){var a=Re.useContext(cu);return t(n,a,r)})},xa=w.createContext({}),ss={}.hasOwnProperty,Oi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",fm=function(t,n){var r={};for(var a in n)ss.call(n,a)&&(r[a]=n[a]);return r[Oi]=t,r},mm=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return rs(n,r,a),lu(function(){return as(n,r,a)}),null},gm=is(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var a=e[Oi],i=[r],s="";typeof e.className=="string"?s=au(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var l=mr(i,void 0,w.useContext(xa));s+=t.key+"-"+l.name;var c={};for(var u in e)ss.call(e,u)&&u!=="css"&&u!==Oi&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),w.createElement(w.Fragment,null,w.createElement(mm,{cache:t,serialized:l,isStringTag:typeof a=="string"}),w.createElement(a,c))}),hm=gm,kl=function(t,n){var r=arguments;if(n==null||!ss.call(n,"css"))return w.createElement.apply(void 0,r);var a=r.length,i=new Array(a);i[0]=hm,i[1]=fm(t,n);for(var s=2;s<a;s++)i[s]=r[s];return w.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(kl||(kl={}));var bm=is(function(e,t){var n=e.styles,r=mr([n],void 0,w.useContext(xa)),a=w.useRef();return El(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),a.current=[s,l],function(){s.flush()}},[t]),El(function(){var i=a.current,s=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&as(t,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Fo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mr(t)}function Bt(){var e=Fo.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var ym=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,vm=nu(function(e){return ym.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),xm=vm,Cm=function(t){return t!=="theme"},Pl=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?xm:Cm},Rl=function(t,n,r){var a;if(n){var i=n.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof a!="function"&&r&&(a=t.__emotion_forwardProp),a},wm=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return rs(n,r,a),lu(function(){return as(n,r,a)}),null},Tm=function e(t,n){var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var l=Rl(t,n,r),c=l||Pl(a),u=!c("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var y=d[0];f.push(y[0]);for(var x=d.length,h=1;h<x;h++)f.push(d[h],y[h])}var p=is(function(b,v,O){var T=u&&b.as||a,C="",S=[],E=b;if(b.theme==null){E={};for(var P in b)E[P]=b[P];E.theme=w.useContext(xa)}typeof b.className=="string"?C=au(v.registered,S,b.className):b.className!=null&&(C=b.className+" ");var $=mr(f.concat(S),v.registered,E);C+=v.key+"-"+$.name,s!==void 0&&(C+=" "+s);var I=u&&l===void 0?Pl(T):c,N={};for(var A in b)u&&A==="as"||I(A)&&(N[A]=b[A]);return N.className=C,O&&(N.ref=O),w.createElement(w.Fragment,null,w.createElement(wm,{cache:v,serialized:$,isStringTag:typeof T=="string"}),w.createElement(T,N))});return p.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=a,p.__emotion_styles=f,p.__emotion_forwardProp=l,Object.defineProperty(p,"toString",{value:function(){return"."+s}}),p.withComponent=function(b,v){var O=e(b,Hr({},n,v,{shouldForwardProp:Rl(p,v,!0)}));return O.apply(void 0,f)},p}},Sm=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ei=Tm.bind(null);Sm.forEach(function(e){Ei[e]=Ei(e)});function Om(e){return e==null||Object.keys(e).length===0}function uu(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?a=>t(Om(a)?n:a):t;return m.jsx(bm,{styles:r})}process.env.NODE_ENV!=="production"&&(uu.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function du(e,t){const n=Ei(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const a=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${a})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
7
|
-
|
|
8
|
-
The following
|
|
9
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:go(10,a))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:a}}const Km=e=>{const t=Lo(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Wn=(e,t)=>{try{return Km(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ta(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((a,i)=>i<3?parseInt(a,10):a):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function vu(e){e=Lo(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,i=r*Math.min(a,1-a),s=(u,d=(u+n/30)%12)=>a-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Ta({type:l,values:c})}function ki(e){e=Lo(e);let t=e.type==="hsl"||e.type==="hsla"?Lo(vu(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function jl(e,t){const n=ki(e),r=ki(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ve(e,t){return e=Lo(e),t=ls(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ta(e)}function _o(e,t,n){try{return ve(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Sa(e,t){if(e=Lo(e),t=ls(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ta(e)}function Qe(e,t,n){try{return Sa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Oa(e,t){if(e=Lo(e),t=ls(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ta(e)}function et(e,t,n){try{return Oa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Pi(e,t=.15){return ki(e)>.5?Sa(e,t):Oa(e,t)}function Pr(e,t,n){try{return Pi(e,t)}catch{return e}}const Ym="exact-prop: ";function cs(e){return process.env.NODE_ENV==="production"?e:{...e,[Ym]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const Xm=w.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const Pn=()=>w.useContext(Xm)??!1,Jm=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function Zm(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?tr(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?tr(a,r,t.components.mergeClassNameAndStyle):r}function Qm({props:e,name:t}){const n=w.useContext(Jm);return Zm({props:e,name:t,theme:{components:n}})}let Ml=0;function eg(e){const[t,n]=w.useState(e),r=e||t;return w.useEffect(()=>{t==null&&(Ml+=1,n(`mui-${Ml}`))},[t]),r}const tg={...w},Nl=tg.useId;function vo(e){if(Nl!==void 0){const t=Nl();return e??t}return eg(e)}const Al={theme:void 0};function og(e){let t,n;return function(a){let i=t;return(i===void 0||a.theme!==n)&&(Al.theme=a.theme,i=gu(e(Al)),t=i,n=a.theme),i}}function ng(e=""){function t(...r){if(!r.length)return"";const a=r[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${a}${t(...r.slice(1))})`:`, ${a}`}return(r,...a)=>`var(--${e?`${e}-`:""}${r}${t(...a)})`}const Ll=(e,t,n,r=[])=>{let a=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(a)?a[Number(i)]=n:a&&typeof a=="object"&&(a[i]=n):a&&typeof a=="object"&&(a[i]||(a[i]=r.includes(i)?[]:{}),a=a[i])})},rg=(e,t,n)=>{function r(a,i=[],s=[]){Object.entries(a).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...i,l],Array.isArray(c)?[...s,l]:s):t([...i,l],c,s))})}r(e)},ag=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function li(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},i={},s={};return rg(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=ag(l,c);Object.assign(a,{[d]:f}),Ll(i,l,`var(${d})`,u),Ll(s,l,`var(${d}, ${f})`,u)}},l=>l[0]==="vars"),{css:a,vars:i,varsWithDefaults:s}}function ig(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:a,enableContrastVars:i}=t,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:f,varsWithDefaults:y}=li(u,t);let x=y;const h={},{[c]:p,...b}=s;if(Object.entries(b||{}).forEach(([C,S])=>{const{vars:E,css:P,varsWithDefaults:$}=li(S,t);x=wt(x,$),h[C]={css:P,vars:E}}),p){const{css:C,vars:S,varsWithDefaults:E}=li(p,t);x=wt(x,E),h[c]={css:C,vars:S}}function v(C,S){let E=a;if(a==="class"&&(E=".%s"),a==="data"&&(E="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(E=`[${a}="%s"]`),C){if(E==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${s[C]?.palette?.mode||C})`]:{":root":S}};if(E)return e.defaultColorScheme===C?`:root, ${E.replace("%s",String(C))}`:E.replace("%s",String(C))}return":root"}return{vars:x,generateThemeVars:()=>{let C={...d};return Object.entries(h).forEach(([,{vars:S}])=>{C=wt(C,S)}),C},generateStyleSheets:()=>{const C=[],S=e.defaultColorScheme||"light";function E(I,N){Object.keys(N).length&&C.push(typeof I=="string"?{[I]:{...N}}:I)}E(n(void 0,{...f}),f);const{[S]:P,...$}=h;if(P){const{css:I}=P,N=s[S]?.palette?.mode,A=!r&&N?{colorScheme:N,...I}:{...I};E(n(S,{...A}),A)}return Object.entries($).forEach(([I,{css:N}])=>{const A=s[I]?.palette?.mode,g=!r&&A?{colorScheme:A,...N}:{...N};E(n(I,{...g}),g)}),i&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function sg(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Xn(e,t){return w.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const lg=Ca(),cg=Um("div",{name:"MuiStack",slot:"Root"});function ug(e){return qm({props:e,name:"MuiStack",defaultTheme:lg})}function dg(e,t){const n=w.Children.toArray(e).filter(Boolean);return n.reduce((r,a,i)=>(r.push(a),i<n.length-1&&r.push(w.cloneElement(t,{key:`separator-${i}`})),r),[])}const pg=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],fg=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...oo({theme:t},ni({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=da(t),a=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),i=ni({values:e.direction,base:a}),s=ni({values:e.spacing,base:a});typeof i=="object"&&Object.keys(i).forEach((c,u,d)=>{if(!i[c]){const y=u>0?i[d[u-1]]:"column";i[c]=y}}),n=wt(n,oo({theme:t},s,(c,u)=>e.useFlexGap?{gap:Jo(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${pg(u?i[u]:e.direction)}`]:Jo(r,c)}}))}return n=zp(t.breakpoints,n),n};function mg(e={}){const{createStyledComponent:t=cg,useThemeProps:n=ug,componentName:r="MuiStack"}=e,a=()=>he({root:["root"]},c=>ge(r,c),{}),i=t(fg),s=w.forwardRef(function(c,u){const d=n(c),f=es(d),{component:y="div",direction:x="column",spacing:h=0,divider:p,children:b,className:v,useFlexGap:O=!1,...T}=f,C={direction:x,spacing:h,useFlexGap:O},S=a();return m.jsx(i,{as:y,ownerState:C,ref:u,className:Q(S.root,v),...T,children:p?dg(b,p):b})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:o.node,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),divider:o.node,spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])}),s}const ar={black:"#000",white:"#fff"},gg={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},an={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},sn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},An={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ln={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},cn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},un={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function xu(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ar.white,default:ar.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Cu=xu();function wu(){return{text:{primary:ar.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ar.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ri=wu();function Dl(e,t,n,r){const a=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Oa(e.main,a):t==="dark"&&(e.dark=Sa(e.main,i)))}function Bl(e,t,n,r,a){const i=a.light||a,s=a.dark||a*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function hg(e="light"){return e==="dark"?{main:ln[200],light:ln[50],dark:ln[400]}:{main:ln[700],light:ln[400],dark:ln[800]}}function bg(e="light"){return e==="dark"?{main:an[200],light:an[50],dark:an[400]}:{main:an[500],light:an[300],dark:an[700]}}function yg(e="light"){return e==="dark"?{main:sn[500],light:sn[300],dark:sn[700]}:{main:sn[700],light:sn[400],dark:sn[800]}}function vg(e="light"){return e==="dark"?{main:cn[400],light:cn[300],dark:cn[700]}:{main:cn[700],light:cn[500],dark:cn[900]}}function xg(e="light"){return e==="dark"?{main:un[400],light:un[300],dark:un[700]}:{main:un[800],light:un[500],dark:un[900]}}function Cg(e="light"){return e==="dark"?{main:An[400],light:An[300],dark:An[700]}:{main:"#ed6c02",light:An[500],dark:An[900]}}function wg(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function us(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:a,...i}=e,s=e.primary||hg(t),l=e.secondary||bg(t),c=e.error||yg(t),u=e.info||vg(t),d=e.success||xg(t),f=e.warning||Cg(t);function y(b){if(a)return wg(b);const v=jl(b,Ri.text.primary)>=n?Ri.text.primary:Cu.text.primary;if(process.env.NODE_ENV!=="production"){const O=jl(b,v);O<3&&console.error([`MUI: The contrast ratio of ${O}:1 for ${v} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
\`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),Re=require("react"),le=require("@mui/system"),Gd=require("@emotion/styled");require("@emotion/react");const kn=require("react-dom"),it=require("@mui/material");function Ll(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const w=Ll(Re),Kd=Ll(kn),Yd={};function Xd(){return u.jsx("div",{className:Yd.container,children:u.jsx("h1",{children:"Welcome to Ui!"})})}function Zd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nr={exports:{}},rr={exports:{}},Ge={};var os;function Jd(){if(os)return Ge;os=1;var e=typeof Symbol=="function"&&Symbol.for,o=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function S(T){if(typeof T=="object"&&T!==null){var E=T.$$typeof;switch(E){case o:switch(T=T.type,T){case c:case d:case r:case i:case a:case g:return T;default:switch(T=T&&T.$$typeof,T){case l:case p:case h:case v:case s:return T;default:return E}}case n:return E}}}function x(T){return S(T)===d}return Ge.AsyncMode=c,Ge.ConcurrentMode=d,Ge.ContextConsumer=l,Ge.ContextProvider=s,Ge.Element=o,Ge.ForwardRef=p,Ge.Fragment=r,Ge.Lazy=h,Ge.Memo=v,Ge.Portal=n,Ge.Profiler=i,Ge.StrictMode=a,Ge.Suspense=g,Ge.isAsyncMode=function(T){return x(T)||S(T)===c},Ge.isConcurrentMode=x,Ge.isContextConsumer=function(T){return S(T)===l},Ge.isContextProvider=function(T){return S(T)===s},Ge.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===o},Ge.isForwardRef=function(T){return S(T)===p},Ge.isFragment=function(T){return S(T)===r},Ge.isLazy=function(T){return S(T)===h},Ge.isMemo=function(T){return S(T)===v},Ge.isPortal=function(T){return S(T)===n},Ge.isProfiler=function(T){return S(T)===i},Ge.isStrictMode=function(T){return S(T)===a},Ge.isSuspense=function(T){return S(T)===g},Ge.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===r||T===d||T===i||T===a||T===g||T===b||typeof T=="object"&&T!==null&&(T.$$typeof===h||T.$$typeof===v||T.$$typeof===s||T.$$typeof===l||T.$$typeof===p||T.$$typeof===y||T.$$typeof===C||T.$$typeof===O||T.$$typeof===f)},Ge.typeOf=S,Ge}var Ke={};var ns;function Qd(){return ns||(ns=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,o=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function S(_){return typeof _=="string"||typeof _=="function"||_===r||_===d||_===i||_===a||_===g||_===b||typeof _=="object"&&_!==null&&(_.$$typeof===h||_.$$typeof===v||_.$$typeof===s||_.$$typeof===l||_.$$typeof===p||_.$$typeof===y||_.$$typeof===C||_.$$typeof===O||_.$$typeof===f)}function x(_){if(typeof _=="object"&&_!==null){var se=_.$$typeof;switch(se){case o:var ie=_.type;switch(ie){case c:case d:case r:case i:case a:case g:return ie;default:var pe=ie&&ie.$$typeof;switch(pe){case l:case p:case h:case v:case s:return pe;default:return se}}case n:return se}}}var T=c,E=d,j=l,R=s,I=o,N=p,A=r,m=h,$=v,P=n,M=i,k=a,z=g,V=!1;function W(_){return V||(V=!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.")),B(_)||x(_)===c}function B(_){return x(_)===d}function L(_){return x(_)===l}function Y(_){return x(_)===s}function Z(_){return typeof _=="object"&&_!==null&&_.$$typeof===o}function oe(_){return x(_)===p}function K(_){return x(_)===r}function U(_){return x(_)===h}function ae(_){return x(_)===v}function ce(_){return x(_)===n}function J(_){return x(_)===i}function X(_){return x(_)===a}function de(_){return x(_)===g}Ke.AsyncMode=T,Ke.ConcurrentMode=E,Ke.ContextConsumer=j,Ke.ContextProvider=R,Ke.Element=I,Ke.ForwardRef=N,Ke.Fragment=A,Ke.Lazy=m,Ke.Memo=$,Ke.Portal=P,Ke.Profiler=M,Ke.StrictMode=k,Ke.Suspense=z,Ke.isAsyncMode=W,Ke.isConcurrentMode=B,Ke.isContextConsumer=L,Ke.isContextProvider=Y,Ke.isElement=Z,Ke.isForwardRef=oe,Ke.isFragment=K,Ke.isLazy=U,Ke.isMemo=ae,Ke.isPortal=ce,Ke.isProfiler=J,Ke.isStrictMode=X,Ke.isSuspense=de,Ke.isValidElementType=S,Ke.typeOf=x})()),Ke}var rs;function Bl(){return rs||(rs=1,process.env.NODE_ENV==="production"?rr.exports=Jd():rr.exports=Qd()),rr.exports}var ya,as;function ep(){if(as)return ya;as=1;var e=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(p){return s[p]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ya=a()?Object.assign:function(i,s){for(var l,c=r(i),d,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var g in l)o.call(l,g)&&(c[g]=l[g]);if(e){d=e(l);for(var b=0;b<d.length;b++)n.call(l,d[b])&&(c[d[b]]=l[d[b]])}}return c},ya}var va,is;function di(){if(is)return va;is=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return va=e,va}var xa,ss;function Dl(){return ss||(ss=1,xa=Function.call.bind(Object.prototype.hasOwnProperty)),xa}var Ca,ls;function tp(){if(ls)return Ca;ls=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var o=di(),n={},r=Dl();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(i,s,l,c,d){if(process.env.NODE_ENV!=="production"){for(var p in i)if(r(i,p)){var g;try{if(typeof i[p]!="function"){var b=Error((c||"React class")+": "+l+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}g=i[p](s,p,c,l,null,o)}catch(h){g=h}if(g&&!(g instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var v=d?d():"";e("Failed "+l+" type: "+g.message+(v??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ca=a,Ca}var wa,cs;function op(){if(cs)return wa;cs=1;var e=Bl(),o=ep(),n=di(),r=Dl(),a=tp(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return wa=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function g(B){var L=B&&(d&&B[d]||B[p]);if(typeof L=="function")return L}var b="<<anonymous>>",v={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:O(),arrayOf:S,element:x(),elementType:T(),instanceOf:E,node:N(),objectOf:R,oneOf:j,oneOfType:I,shape:m,exact:$};function h(B,L){return B===L?B!==0||1/B===1/L:B!==B&&L!==L}function f(B,L){this.message=B,this.data=L&&typeof L=="object"?L:{},this.stack=""}f.prototype=Error.prototype;function y(B){if(process.env.NODE_ENV!=="production")var L={},Y=0;function Z(K,U,ae,ce,J,X,de){if(ce=ce||b,X=X||ae,de!==n){if(c){var _=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 _.name="Invariant Violation",_}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var se=ce+":"+ae;!L[se]&&Y<3&&(i("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+ce+"`. 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."),L[se]=!0,Y++)}}return U[ae]==null?K?U[ae]===null?new f("The "+J+" `"+X+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new f("The "+J+" `"+X+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:B(U,ae,ce,J,X)}var oe=Z.bind(null,!1);return oe.isRequired=Z.bind(null,!0),oe}function C(B){function L(Y,Z,oe,K,U,ae){var ce=Y[Z],J=k(ce);if(J!==B){var X=z(ce);return new f("Invalid "+K+" `"+U+"` of type "+("`"+X+"` supplied to `"+oe+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return y(L)}function O(){return y(s)}function S(B){function L(Y,Z,oe,K,U){if(typeof B!="function")return new f("Property `"+U+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var ae=Y[Z];if(!Array.isArray(ae)){var ce=k(ae);return new f("Invalid "+K+" `"+U+"` of type "+("`"+ce+"` supplied to `"+oe+"`, expected an array."))}for(var J=0;J<ae.length;J++){var X=B(ae,J,oe,K,U+"["+J+"]",n);if(X instanceof Error)return X}return null}return y(L)}function x(){function B(L,Y,Z,oe,K){var U=L[Y];if(!l(U)){var ae=k(U);return new f("Invalid "+oe+" `"+K+"` of type "+("`"+ae+"` supplied to `"+Z+"`, expected a single ReactElement."))}return null}return y(B)}function T(){function B(L,Y,Z,oe,K){var U=L[Y];if(!e.isValidElementType(U)){var ae=k(U);return new f("Invalid "+oe+" `"+K+"` of type "+("`"+ae+"` supplied to `"+Z+"`, expected a single ReactElement type."))}return null}return y(B)}function E(B){function L(Y,Z,oe,K,U){if(!(Y[Z]instanceof B)){var ae=B.name||b,ce=W(Y[Z]);return new f("Invalid "+K+" `"+U+"` of type "+("`"+ce+"` supplied to `"+oe+"`, expected ")+("instance of `"+ae+"`."))}return null}return y(L)}function j(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function L(Y,Z,oe,K,U){for(var ae=Y[Z],ce=0;ce<B.length;ce++)if(h(ae,B[ce]))return null;var J=JSON.stringify(B,function(de,_){var se=z(_);return se==="symbol"?String(_):_});return new f("Invalid "+K+" `"+U+"` of value `"+String(ae)+"` "+("supplied to `"+oe+"`, expected one of "+J+"."))}return y(L)}function R(B){function L(Y,Z,oe,K,U){if(typeof B!="function")return new f("Property `"+U+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var ae=Y[Z],ce=k(ae);if(ce!=="object")return new f("Invalid "+K+" `"+U+"` of type "+("`"+ce+"` supplied to `"+oe+"`, expected an object."));for(var J in ae)if(r(ae,J)){var X=B(ae,J,oe,K,U+"."+J,n);if(X instanceof Error)return X}return null}return y(L)}function I(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var L=0;L<B.length;L++){var Y=B[L];if(typeof Y!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(Y)+" at index "+L+"."),s}function Z(oe,K,U,ae,ce){for(var J=[],X=0;X<B.length;X++){var de=B[X],_=de(oe,K,U,ae,ce,n);if(_==null)return null;_.data&&r(_.data,"expectedType")&&J.push(_.data.expectedType)}var se=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new f("Invalid "+ae+" `"+ce+"` supplied to "+("`"+U+"`"+se+"."))}return y(Z)}function N(){function B(L,Y,Z,oe,K){return P(L[Y])?null:new f("Invalid "+oe+" `"+K+"` supplied to "+("`"+Z+"`, expected a ReactNode."))}return y(B)}function A(B,L,Y,Z,oe){return new f((B||"React class")+": "+L+" type `"+Y+"."+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function m(B){function L(Y,Z,oe,K,U){var ae=Y[Z],ce=k(ae);if(ce!=="object")return new f("Invalid "+K+" `"+U+"` of type `"+ce+"` "+("supplied to `"+oe+"`, expected `object`."));for(var J in B){var X=B[J];if(typeof X!="function")return A(oe,K,U,J,z(X));var de=X(ae,J,oe,K,U+"."+J,n);if(de)return de}return null}return y(L)}function $(B){function L(Y,Z,oe,K,U){var ae=Y[Z],ce=k(ae);if(ce!=="object")return new f("Invalid "+K+" `"+U+"` of type `"+ce+"` "+("supplied to `"+oe+"`, expected `object`."));var J=o({},Y[Z],B);for(var X in J){var de=B[X];if(r(B,X)&&typeof de!="function")return A(oe,K,U,X,z(de));if(!de)return new f("Invalid "+K+" `"+U+"` key `"+X+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(Y[Z],null," ")+`
|
|
2
|
+
Valid keys: `+JSON.stringify(Object.keys(B),null," "));var _=de(ae,X,oe,K,U+"."+X,n);if(_)return _}return null}return y(L)}function P(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(P);if(B===null||l(B))return!0;var L=g(B);if(L){var Y=L.call(B),Z;if(L!==B.entries){for(;!(Z=Y.next()).done;)if(!P(Z.value))return!1}else for(;!(Z=Y.next()).done;){var oe=Z.value;if(oe&&!P(oe[1]))return!1}}else return!1;return!0;default:return!1}}function M(B,L){return B==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function k(B){var L=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":M(L,B)?"symbol":L}function z(B){if(typeof B>"u"||B===null)return""+B;var L=k(B);if(L==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return L}function V(B){var L=z(B);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function W(B){return!B.constructor||!B.constructor.name?b:B.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},wa}var Sa,ds;function np(){if(ds)return Sa;ds=1;var e=di();function o(){}function n(){}return n.resetWarningCache=o,Sa=function(){function r(s,l,c,d,p,g){if(g!==e){var b=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 b.name="Invariant Violation",b}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:o};return i.PropTypes=i,i},Sa}var ps;function rp(){if(ps)return nr.exports;if(ps=1,process.env.NODE_ENV!=="production"){var e=Bl(),o=!0;nr.exports=op()(e.isElement,o)}else nr.exports=np()();return nr.exports}var ap=rp();const t=Zd(ap);function zl(e){var o,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(o=0;o<a;o++)e[o]&&(n=zl(e[o]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function re(){for(var e,o,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(o=zl(e))&&(r&&(r+=" "),r+=o);return r}function yr(e,o,n=!1){const r={...o};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const i=a;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const s=e[i],l=o[i];if(!l)r[i]=s||{};else if(!s)r[i]=l;else{r[i]={...l};for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)){const d=c;r[i][d]=yr(s[d],l[d],n)}}}else i==="className"&&n&&o.className?r.className=re(e?.className,o?.className):i==="style"&&n&&o.style?r.style={...e?.style,...o?.style}:r[i]===void 0&&(r[i]=e[i])}return r}function we(e,o,n=void 0){const r={};for(const a in e){const i=e[a];let s="",l=!0;for(let c=0;c<i.length;c+=1){const d=i[c];d&&(s+=(l===!0?"":" ")+o(d),l=!1,n&&n[d]&&(s+=" "+n[d]))}r[a]=s}return r}const us=e=>e,ip=()=>{let e=us;return{configure(o){e=o},generate(o){return e(o)},reset(){e=us}}},Fl=ip();function oo(e,...o){const n=new URL(`https://mui.com/production-error/?code=${e}`);return o.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function F(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":oo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Da(...e){return e.reduce((o,n)=>n==null?o:function(...a){o.apply(this,a),n.apply(this,a)},()=>{})}var ar={exports:{}},Qe={};var fs;function sp(){if(fs)return Qe;fs=1;var e=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function h(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case e:switch(f=f.type,f){case n:case a:case r:case c:case d:case b:return f;default:switch(f=f&&f.$$typeof,f){case s:case l:case g:case p:return f;case i:return f;default:return y}}case o:return y}}}return Qe.ContextConsumer=i,Qe.ContextProvider=s,Qe.Element=e,Qe.ForwardRef=l,Qe.Fragment=n,Qe.Lazy=g,Qe.Memo=p,Qe.Portal=o,Qe.Profiler=a,Qe.StrictMode=r,Qe.Suspense=c,Qe.SuspenseList=d,Qe.isContextConsumer=function(f){return h(f)===i},Qe.isContextProvider=function(f){return h(f)===s},Qe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Qe.isForwardRef=function(f){return h(f)===l},Qe.isFragment=function(f){return h(f)===n},Qe.isLazy=function(f){return h(f)===g},Qe.isMemo=function(f){return h(f)===p},Qe.isPortal=function(f){return h(f)===o},Qe.isProfiler=function(f){return h(f)===a},Qe.isStrictMode=function(f){return h(f)===r},Qe.isSuspense=function(f){return h(f)===c},Qe.isSuspenseList=function(f){return h(f)===d},Qe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===a||f===r||f===c||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===g||f.$$typeof===p||f.$$typeof===s||f.$$typeof===i||f.$$typeof===l||f.$$typeof===v||f.getModuleId!==void 0)},Qe.typeOf=h,Qe}var et={};var ms;function lp(){return ms||(ms=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case o:switch(f=f.type,f){case r:case i:case a:case d:case p:case v:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case b:case g:return f;case s:return f;default:return y}}case n:return y}}}var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");et.ContextConsumer=s,et.ContextProvider=l,et.Element=o,et.ForwardRef=c,et.Fragment=r,et.Lazy=b,et.Memo=g,et.Portal=n,et.Profiler=i,et.StrictMode=a,et.Suspense=d,et.SuspenseList=p,et.isContextConsumer=function(f){return e(f)===s},et.isContextProvider=function(f){return e(f)===l},et.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===o},et.isForwardRef=function(f){return e(f)===c},et.isFragment=function(f){return e(f)===r},et.isLazy=function(f){return e(f)===b},et.isMemo=function(f){return e(f)===g},et.isPortal=function(f){return e(f)===n},et.isProfiler=function(f){return e(f)===i},et.isStrictMode=function(f){return e(f)===a},et.isSuspense=function(f){return e(f)===d},et.isSuspenseList=function(f){return e(f)===p},et.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===a||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===b||f.$$typeof===g||f.$$typeof===l||f.$$typeof===s||f.$$typeof===c||f.$$typeof===h||f.getModuleId!==void 0)},et.typeOf=e})()),et}var gs;function cp(){return gs||(gs=1,process.env.NODE_ENV==="production"?ar.exports=sp():ar.exports=lp()),ar.exports}var Co=cp();function Jt(e){if(typeof e!="object"||e===null)return!1;const o=Object.getPrototypeOf(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Vl(e){if(w.isValidElement(e)||Co.isValidElementType(e)||!Jt(e))return e;const o={};return Object.keys(e).forEach(n=>{o[n]=Vl(e[n])}),o}function Tt(e,o,n={clone:!0}){const r=n.clone?{...e}:e;return Jt(e)&&Jt(o)&&Object.keys(o).forEach(a=>{w.isValidElement(o[a])||Co.isValidElementType(o[a])?r[a]=o[a]:Jt(o[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Jt(e[a])?r[a]=Tt(e[a],o[a],n):n.clone?r[a]=Jt(o[a])?Vl(o[a]):o[a]:r[a]=o[a]}),r}function Nn(e,o){return o?Tt(e,o,{clone:!1}):e}const To=process.env.NODE_ENV!=="production"?t.oneOfType([t.number,t.string,t.object,t.array]):{};function hs(e,o){if(!e.containerQueries)return o;const n=Object.keys(o).filter(r=>r.startsWith("@container")).sort((r,a)=>{const i=/min-width:\s*([0-9.]+)/;return+(r.match(i)?.[1]||0)-+(a.match(i)?.[1]||0)});return n.length?n.reduce((r,a)=>{const i=o[a];return delete r[a],r[a]=i,r},{...o}):o}function dp(e,o){return o==="@"||o.startsWith("@")&&(e.some(n=>o.startsWith(`@${n}`))||!!o.match(/^@\d/))}function pp(e,o){const n=o.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${o})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
3
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:oo(18,`(${o})`));return null}const[,r,a]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(i)}function up(e){const o=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function n(i,s){i.up=(...l)=>o(e.breakpoints.up(...l),s),i.down=(...l)=>o(e.breakpoints.down(...l),s),i.between=(...l)=>o(e.breakpoints.between(...l),s),i.only=(...l)=>o(e.breakpoints.only(...l),s),i.not=(...l)=>{const c=o(e.breakpoints.not(...l),s);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},a=i=>(n(r,i),r);return n(a),{...e,containerQueries:a}}const Lr={xs:0,sm:600,md:900,lg:1200,xl:1536},bs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Lr[e]}px)`},fp={containerQueries:e=>({up:o=>{let n=typeof o=="number"?o:Lr[o]||o;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function io(e,o,n){const r=e.theme||{};if(Array.isArray(o)){const i=r.breakpoints||bs;return o.reduce((s,l,c)=>(s[i.up(i.keys[c])]=n(o[c]),s),{})}if(typeof o=="object"){const i=r.breakpoints||bs;return Object.keys(o).reduce((s,l)=>{if(dp(i.keys,l)){const c=pp(r.containerQueries?r:fp,l);c&&(s[c]=n(o[l],l))}else if(Object.keys(i.values||Lr).includes(l)){const c=i.up(l);s[c]=n(o[l],l)}else{const c=l;s[c]=o[c]}return s},{})}return n(o)}function mp(e={}){return e.keys?.reduce((n,r)=>{const a=e.up(r);return n[a]={},n},{})||{}}function ys(e,o){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},o)}function Br(e,o,n=!0){if(!o||typeof o!="string")return null;if(e&&e.vars&&n){const r=`vars.${o}`.split(".").reduce((a,i)=>a&&a[i]?a[i]:null,e);if(r!=null)return r}return o.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function vr(e,o,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=Br(e,n)||r,o&&(a=o(a,r,e)),a}function pt(e){const{prop:o,cssProperty:n=e.prop,themeKey:r,transform:a}=e,i=s=>{if(s[o]==null)return null;const l=s[o],c=s.theme,d=Br(c,r)||{};return io(s,l,g=>{let b=vr(d,a,g);return g===b&&typeof g=="string"&&(b=vr(d,a,`${o}${g==="default"?"":F(g)}`,g)),n===!1?b:{[n]:b}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[o]:To}:{},i.filterProps=[o],i}function gp(e){const o={};return n=>(o[n]===void 0&&(o[n]=e(n)),o[n])}const hp={m:"margin",p:"padding"},bp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yp=gp(e=>{if(e.length>2)if(vs[e])e=vs[e];else return[e];const[o,n]=e.split(""),r=hp[o],a=bp[n]||"";return Array.isArray(a)?a.map(i=>r+i):[r+a]}),Dr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],vp=[...Dr,...zr];function Hn(e,o,n,r){const a=Br(e,o,!0)??n;return typeof a=="number"||typeof a=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof a=="string"?a.startsWith("var(")&&i===0?0:a.startsWith("var(")&&i===1?a:`calc(${i} * ${a})`:a*i):Array.isArray(a)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>a.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${s} > ${a.length-1}, you need to add the missing values.`].join(`
|
|
4
|
+
`)):console.error([`MUI: The \`theme.${o}\` 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.${o}\` as a number.`].join(`
|
|
5
|
+
`)));const l=a[s];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${o}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
6
|
+
`)),()=>{})}function pi(e){return Hn(e,"spacing",8,"spacing")}function qn(e,o){return typeof o=="string"||o==null?o:e(o)}function xp(e,o){return n=>e.reduce((r,a)=>(r[a]=qn(o,n),r),{})}function Cp(e,o,n,r){if(!o.includes(n))return null;const a=yp(n),i=xp(a,r),s=e[n];return io(e,s,i)}function _l(e,o){const n=pi(e.theme);return Object.keys(e).map(r=>Cp(e,o,r,n)).reduce(Nn,{})}function lt(e){return _l(e,Dr)}lt.propTypes=process.env.NODE_ENV!=="production"?Dr.reduce((e,o)=>(e[o]=To,e),{}):{};lt.filterProps=Dr;function ct(e){return _l(e,zr)}ct.propTypes=process.env.NODE_ENV!=="production"?zr.reduce((e,o)=>(e[o]=To,e),{}):{};ct.filterProps=zr;process.env.NODE_ENV!=="production"&&vp.reduce((e,o)=>(e[o]=To,e),{});function Fr(...e){const o=e.reduce((r,a)=>(a.filterProps.forEach(i=>{r[i]=a}),r),{}),n=r=>Object.keys(r).reduce((a,i)=>o[i]?Nn(a,o[i](r)):a,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,a)=>Object.assign(r,a.propTypes),{}):{},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function zt(e){return typeof e!="number"?e:`${e}px solid`}function qt(e,o){return pt({prop:e,themeKey:"borders",transform:o})}const wp=qt("border",zt),Sp=qt("borderTop",zt),Tp=qt("borderRight",zt),Op=qt("borderBottom",zt),Ep=qt("borderLeft",zt),kp=qt("borderColor"),Pp=qt("borderTopColor"),Rp=qt("borderRightColor"),Ip=qt("borderBottomColor"),$p=qt("borderLeftColor"),jp=qt("outline",zt),Mp=qt("outlineColor"),Vr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const o=Hn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:qn(o,r)});return io(e,e.borderRadius,n)}return null};Vr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:To}:{};Vr.filterProps=["borderRadius"];Fr(wp,Sp,Tp,Op,Ep,kp,Pp,Rp,Ip,$p,Vr,jp,Mp);const _r=e=>{if(e.gap!==void 0&&e.gap!==null){const o=Hn(e.theme,"spacing",8,"gap"),n=r=>({gap:qn(o,r)});return io(e,e.gap,n)}return null};_r.propTypes=process.env.NODE_ENV!=="production"?{gap:To}:{};_r.filterProps=["gap"];const Wr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const o=Hn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:qn(o,r)});return io(e,e.columnGap,n)}return null};Wr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:To}:{};Wr.filterProps=["columnGap"];const Ur=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const o=Hn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:qn(o,r)});return io(e,e.rowGap,n)}return null};Ur.propTypes=process.env.NODE_ENV!=="production"?{rowGap:To}:{};Ur.filterProps=["rowGap"];const Np=pt({prop:"gridColumn"}),Ap=pt({prop:"gridRow"}),Lp=pt({prop:"gridAutoFlow"}),Bp=pt({prop:"gridAutoColumns"}),Dp=pt({prop:"gridAutoRows"}),zp=pt({prop:"gridTemplateColumns"}),Fp=pt({prop:"gridTemplateRows"}),Vp=pt({prop:"gridTemplateAreas"}),_p=pt({prop:"gridArea"});Fr(_r,Wr,Ur,Np,Ap,Lp,Bp,Dp,zp,Fp,Vp,_p);function on(e,o){return o==="grey"?o:e}const Wp=pt({prop:"color",themeKey:"palette",transform:on}),Up=pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:on}),Hp=pt({prop:"backgroundColor",themeKey:"palette",transform:on});Fr(Wp,Up,Hp);function At(e){return e<=1&&e!==0?`${e*100}%`:e}const qp=pt({prop:"width",transform:At}),ui=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const o=n=>{const r=e.theme?.breakpoints?.values?.[n]||Lr[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:At(n)}};return io(e,e.maxWidth,o)}return null};ui.filterProps=["maxWidth"];const Gp=pt({prop:"minWidth",transform:At}),Kp=pt({prop:"height",transform:At}),Yp=pt({prop:"maxHeight",transform:At}),Xp=pt({prop:"minHeight",transform:At});pt({prop:"size",cssProperty:"width",transform:At});pt({prop:"size",cssProperty:"height",transform:At});const Zp=pt({prop:"boxSizing"});Fr(qp,ui,Gp,Kp,Yp,Xp,Zp);const Gn={border:{themeKey:"borders",transform:zt},borderTop:{themeKey:"borders",transform:zt},borderRight:{themeKey:"borders",transform:zt},borderBottom:{themeKey:"borders",transform:zt},borderLeft:{themeKey:"borders",transform:zt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vr},color:{themeKey:"palette",transform:on},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:on},backgroundColor:{themeKey:"palette",transform:on},p:{style:ct},pt:{style:ct},pr:{style:ct},pb:{style:ct},pl:{style:ct},px:{style:ct},py:{style:ct},padding:{style:ct},paddingTop:{style:ct},paddingRight:{style:ct},paddingBottom:{style:ct},paddingLeft:{style:ct},paddingX:{style:ct},paddingY:{style:ct},paddingInline:{style:ct},paddingInlineStart:{style:ct},paddingInlineEnd:{style:ct},paddingBlock:{style:ct},paddingBlockStart:{style:ct},paddingBlockEnd:{style:ct},m:{style:lt},mt:{style:lt},mr:{style:lt},mb:{style:lt},ml:{style:lt},mx:{style:lt},my:{style:lt},margin:{style:lt},marginTop:{style:lt},marginRight:{style:lt},marginBottom:{style:lt},marginLeft:{style:lt},marginX:{style:lt},marginY:{style:lt},marginInline:{style:lt},marginInlineStart:{style:lt},marginInlineEnd:{style:lt},marginBlock:{style:lt},marginBlockStart:{style:lt},marginBlockEnd:{style:lt},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:_r},rowGap:{style:Ur},columnGap:{style:Wr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:At},maxWidth:{style:ui},minWidth:{transform:At},height:{transform:At},maxHeight:{transform:At},minHeight:{transform:At},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 Jp(...e){const o=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(o);return e.every(r=>n.size===Object.keys(r).length)}function Qp(e,o){return typeof e=="function"?e(o):e}function eu(){function e(n,r,a,i){const s={[n]:r,theme:a},l=i[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:p,style:g}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const b=Br(a,d)||{};return g?g(s):io(s,r,h=>{let f=vr(b,p,h);return h===f&&typeof h=="string"&&(f=vr(b,p,`${n}${h==="default"?"":F(h)}`,h)),c===!1?f:{[c]:f}})}function o(n){const{sx:r,theme:a={},nested:i}=n||{};if(!r)return null;const s=a.unstable_sxConfig??Gn;function l(c){let d=c;if(typeof c=="function")d=c(a);else if(typeof c!="object")return c;if(!d)return null;const p=mp(a.breakpoints),g=Object.keys(p);let b=p;return Object.keys(d).forEach(v=>{const h=Qp(d[v],a);if(h!=null)if(typeof h=="object")if(s[v])b=Nn(b,e(v,h,a,s));else{const f=io({theme:a},h,y=>({[v]:y}));Jp(f,h)?b[v]=o({sx:h,theme:a,nested:!0}):b=Nn(b,f)}else b=Nn(b,e(v,h,a,s))}),!i&&a.modularCssLayers?{"@layer sx":hs(a,ys(g,b))}:hs(a,ys(g,b))}return Array.isArray(r)?r.map(l):l(r)}return o}const rn=eu();rn.filterProps=["sx"];const tu=e=>{const o={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Gn;return Object.keys(e).forEach(r=>{n[r]?o.systemProps[r]=e[r]:o.otherProps[r]=e[r]}),o};function ou(e){const{sx:o,...n}=e,{systemProps:r,otherProps:a}=tu(n);let i;return Array.isArray(o)?i=[r,...o]:typeof o=="function"?i=(...s)=>{const l=o(...s);return Jt(l)?{...r,...l}:r}:i={...r,...o},{...a,sx:i}}function jo(e,o=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(o,Math.min(e,n))}function fi(e,o=0,n=1){return process.env.NODE_ENV!=="production"&&(e<o||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${o}, ${n}].`),jo(e,o,n)}function nu(e){e=e.slice(1);const o=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(o);return n&&n[0].length===1&&(n=n.map(r=>r+r)),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.`),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function wo(e){if(e.type)return e;if(e.charAt(0)==="#")return wo(nu(e));const o=e.indexOf("("),n=e.substring(0,o);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
7
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:oo(9,e));let r=e.substring(o+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${a}\` color space.
|
|
8
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:oo(10,a))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:a}}const ru=e=>{const o=wo(e);return o.values.slice(0,3).map((n,r)=>o.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Pn=(e,o)=>{try{return ru(e)}catch{return o&&process.env.NODE_ENV!=="production"&&console.warn(o),e}};function Hr(e){const{type:o,colorSpace:n}=e;let{values:r}=e;return o.includes("rgb")?r=r.map((a,i)=>i<3?parseInt(a,10):a):o.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),o.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${o}(${r})`}function Wl(e){e=wo(e);const{values:o}=e,n=o[0],r=o[1]/100,a=o[2]/100,i=r*Math.min(a,1-a),s=(d,p=(d+n/30)%12)=>a-i*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(o[3])),Hr({type:l,values:c})}function za(e){e=wo(e);let o=e.type==="hsl"||e.type==="hsla"?wo(Wl(e)).values:e.values;return o=o.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*o[0]+.7152*o[1]+.0722*o[2]).toFixed(3))}function xs(e,o){const n=za(e),r=za(o);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function xr(e,o){return e=wo(e),o=fi(o),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${o}`:e.values[3]=o,Hr(e)}function Po(e,o,n){try{return xr(e,o)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function qr(e,o){if(e=wo(e),o=fi(o),e.type.includes("hsl"))e.values[2]*=1-o;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-o;return Hr(e)}function Ze(e,o,n){try{return qr(e,o)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Gr(e,o){if(e=wo(e),o=fi(o),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*o;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*o;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*o;return Hr(e)}function Je(e,o,n){try{return Gr(e,o)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Fa(e,o=.15){return za(e)>.5?qr(e,o):Gr(e,o)}function ir(e,o,n){try{return Fa(e,o)}catch{return e}}const Fn={black:"#000",white:"#fff"},au={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ho={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},qo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},xn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Go={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ko={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Yo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ul(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Fn.white,default:Fn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Hl=Ul();function ql(){return{text:{primary:Fn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Fn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Va=ql();function Cs(e,o,n,r){const a=r.light||r,i=r.dark||r*1.5;e[o]||(e.hasOwnProperty(n)?e[o]=e[n]:o==="light"?e.light=Gr(e.main,a):o==="dark"&&(e.dark=qr(e.main,i)))}function ws(e,o,n,r,a){const i=a.light||a,s=a.dark||a*1.5;o[n]||(o.hasOwnProperty(r)?o[n]=o[r]:n==="light"?o.light=`color-mix(in ${e}, ${o.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(o.dark=`color-mix(in ${e}, ${o.main}, #000 ${(s*100).toFixed(0)}%)`))}function iu(e="light"){return e==="dark"?{main:Go[200],light:Go[50],dark:Go[400]}:{main:Go[700],light:Go[400],dark:Go[800]}}function su(e="light"){return e==="dark"?{main:Ho[200],light:Ho[50],dark:Ho[400]}:{main:Ho[500],light:Ho[300],dark:Ho[700]}}function lu(e="light"){return e==="dark"?{main:qo[500],light:qo[300],dark:qo[700]}:{main:qo[700],light:qo[400],dark:qo[800]}}function cu(e="light"){return e==="dark"?{main:Ko[400],light:Ko[300],dark:Ko[700]}:{main:Ko[700],light:Ko[500],dark:Ko[900]}}function du(e="light"){return e==="dark"?{main:Yo[400],light:Yo[300],dark:Yo[700]}:{main:Yo[800],light:Yo[500],dark:Yo[900]}}function pu(e="light"){return e==="dark"?{main:xn[400],light:xn[300],dark:xn[700]}:{main:"#ed6c02",light:xn[500],dark:xn[900]}}function uu(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function mi(e){const{mode:o="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:a,...i}=e,s=e.primary||iu(o),l=e.secondary||su(o),c=e.error||lu(o),d=e.info||cu(o),p=e.success||du(o),g=e.warning||pu(o);function b(y){if(a)return uu(y);const C=xs(y,Va.text.primary)>=n?Va.text.primary:Hl.text.primary;if(process.env.NODE_ENV!=="production"){const O=xs(y,C);O<3&&console.error([`MUI: The contrast ratio of ${O}:1 for ${C} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
9
|
+
`))}return C}const v=({color:y,name:C,mainShade:O=500,lightShade:S=300,darkShade:x=700})=>{if(y={...y},!y.main&&y[O]&&(y.main=y[O]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
|
|
10
|
+
The color object needs to have a \`main\` property or a \`${O}\` property.`:oo(11,C?` (${C})`:"",O));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
|
|
11
|
+
\`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
|
|
13
12
|
|
|
14
13
|
Did you intend to use one of the following approaches?
|
|
15
14
|
|
|
@@ -21,20 +20,21 @@ const theme1 = createTheme({ palette: {
|
|
|
21
20
|
|
|
22
21
|
const theme2 = createTheme({ palette: {
|
|
23
22
|
primary: { main: green[500] },
|
|
24
|
-
} });`:
|
|
25
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(d=>`${d} ${typeof s=="string"?s:Vl(s)} ${l} ${typeof c=="string"?c:Vl(c)}`).join(",")},...e,easing:t,duration:n}}const Ng={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ag(e){return co(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Su(e={}){const t={...e};function n(r){const a=Object.entries(r);for(let i=0;i<a.length;i++){const[s,l]=a[i];!Ag(l)||s.startsWith("unstable_")?delete r[s]:co(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
23
|
+
} });`:oo(12,C?` (${C})`:"",JSON.stringify(y.main)));return a?(ws(a,y,"light",S,r),ws(a,y,"dark",x,r)):(Cs(y,"light",S,r),Cs(y,"dark",x,r)),y.contrastText||(y.contrastText=b(y.main)),y};let h;return o==="light"?h=Ul():o==="dark"&&(h=ql()),process.env.NODE_ENV!=="production"&&(h||console.error(`MUI: The palette mode \`${o}\` is not supported.`)),Tt({common:{...Fn},mode:o,primary:v({color:s,name:"primary"}),secondary:v({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:c,name:"error"}),warning:v({color:g,name:"warning"}),info:v({color:d,name:"info"}),success:v({color:p,name:"success"}),grey:au,contrastThreshold:n,getContrastText:b,augmentColor:v,tonalOffset:r,...h},i)}function fu(e){for(var o=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,o=(n&65535)*1540483477+((n>>>16)*59797<<16)^(o&65535)*1540483477+((o>>>16)*59797<<16);switch(a){case 3:o^=(e.charCodeAt(r+2)&255)<<16;case 2:o^=(e.charCodeAt(r+1)&255)<<8;case 1:o^=e.charCodeAt(r)&255,o=(o&65535)*1540483477+((o>>>16)*59797<<16)}return o^=o>>>13,o=(o&65535)*1540483477+((o>>>16)*59797<<16),((o^o>>>15)>>>0).toString(36)}var mu={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 gu(e){var o=Object.create(null);return function(n){return o[n]===void 0&&(o[n]=e(n)),o[n]}}var hu=/[A-Z]|^ms/g,bu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Gl=function(o){return o.charCodeAt(1)===45},Ss=function(o){return o!=null&&typeof o!="boolean"},Ta=gu(function(e){return Gl(e)?e:e.replace(hu,"-$&").toLowerCase()}),Ts=function(o,n){switch(o){case"animation":case"animationName":if(typeof n=="string")return n.replace(bu,function(r,a,i){return yo={name:a,styles:i,next:yo},a})}return mu[o]!==1&&!Gl(o)&&typeof n=="number"&&n!==0?n+"px":n};function Cr(e,o,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return yo={name:a.name,styles:a.styles,next:yo},a.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)yo={name:s.name,styles:s.styles,next:yo},s=s.next;var l=i.styles+";";return l}return yu(e,o,n)}}var c=n;return c}function yu(e,o,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Cr(e,o,n[a])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var l=s;Ss(l)&&(r+=Ta(i)+":"+Ts(i,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&o==null)for(var c=0;c<s.length;c++)Ss(s[c])&&(r+=Ta(i)+":"+Ts(i,s[c])+";");else{var d=Cr(e,o,s);switch(i){case"animation":case"animationName":{r+=Ta(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var Os=/label:\s*([^\s;{]+)\s*(;|$)/g,yo;function vu(e,o,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";yo=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,a+=Cr(n,o,i);else{var s=i;a+=s[0]}for(var l=1;l<e.length;l++)if(a+=Cr(n,o,e[l]),r){var c=i;a+=c[l]}Os.lastIndex=0;for(var d="",p;(p=Os.exec(a))!==null;)d+="-"+p[1];var g=fu(a)+d;return{name:g,styles:a,next:yo}}function xu(e,o){const n=Gd(e,o);return process.env.NODE_ENV!=="production"?(...r)=>{const a=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${a})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
24
|
+
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),n(...r)}:n}function Cu(e,o){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=o(e.__emotion_styles))}const Es=[];function Ao(e){return Es[0]=e,vu(Es)}const wu="exact-prop: ";function gi(e){return process.env.NODE_ENV==="production"?e:{...e,[wu]:o=>{const n=Object.keys(o).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const Wt=typeof window<"u"?w.useLayoutEffect:w.useEffect,Su=w.createContext();process.env.NODE_ENV!=="production"&&(t.node,t.bool);const mn=()=>w.useContext(Su)??!1,Tu=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(t.node,t.object);function Ou(e){const{theme:o,name:n,props:r}=e;if(!o||!o.components||!o.components[n])return r;const a=o.components[n];return a.defaultProps?yr(a.defaultProps,r,o.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?yr(a,r,o.components.mergeClassNameAndStyle):r}function Eu({props:e,name:o}){const n=w.useContext(Tu);return Ou({props:e,name:o,theme:{components:n}})}let ks=0;function ku(e){const[o,n]=w.useState(e),r=e||o;return w.useEffect(()=>{o==null&&(ks+=1,n(`mui-${ks}`))},[o]),r}const Pu={...w},Ps=Pu.useId;function uo(e){if(Ps!==void 0){const o=Ps();return e??o}return ku(e)}const Ru=e=>{const o=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return o.sort((n,r)=>n.val-r.val),o.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Iu(e){const{values:o={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,i=Ru(o),s=Object.keys(i);function l(b){return`@media (min-width:${typeof o[b]=="number"?o[b]:b}${n})`}function c(b){return`@media (max-width:${(typeof o[b]=="number"?o[b]:b)-r/100}${n})`}function d(b,v){const h=s.indexOf(v);return`@media (min-width:${typeof o[b]=="number"?o[b]:b}${n}) and (max-width:${(h!==-1&&typeof o[s[h]]=="number"?o[s[h]]:v)-r/100}${n})`}function p(b){return s.indexOf(b)+1<s.length?d(b,s[s.indexOf(b)+1]):l(b)}function g(b){const v=s.indexOf(b);return v===0?l(s[1]):v===s.length-1?c(s[v]):d(b,s[s.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:l,down:c,between:d,only:p,not:g,unit:n,...a}}const $u={borderRadius:4};function ju(e=8,o=pi({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const s=o(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function Mu(e,o){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?o:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:o})}return n.palette.mode===e?o:{}}function Kl(e={},...o){const{breakpoints:n={},palette:r={},spacing:a,shape:i={},...s}=e,l=Iu(n),c=ju(a);let d=Tt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...$u,...i}},s);return d=up(d),d.applyStyles=Mu,d=o.reduce((p,g)=>Tt(p,g),d),d.unstable_sxConfig={...Gn,...s?.unstable_sxConfig},d.unstable_sx=function(g){return rn({sx:g,theme:this})},d}const Rs=(e,o,n,r=[])=>{let a=e;o.forEach((i,s)=>{s===o.length-1?Array.isArray(a)?a[Number(i)]=n:a&&typeof a=="object"&&(a[i]=n):a&&typeof a=="object"&&(a[i]||(a[i]=r.includes(i)?[]:{}),a=a[i])})},Nu=(e,o,n)=>{function r(a,i=[],s=[]){Object.entries(a).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...i,l],Array.isArray(c)?[...s,l]:s):o([...i,l],c,s))})}r(e)},Au=(e,o)=>typeof o=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?o:`${o}px`:o;function Oa(e,o){const{prefix:n,shouldSkipGeneratingVar:r}=o||{},a={},i={},s={};return Nu(e,(l,c,d)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const p=`--${n?`${n}-`:""}${l.join("-")}`,g=Au(l,c);Object.assign(a,{[p]:g}),Rs(i,l,`var(${p})`,d),Rs(s,l,`var(${p}, ${g})`,d)}},l=>l[0]==="vars"),{css:a,vars:i,varsWithDefaults:s}}function Lu(e,o={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:a,enableContrastVars:i}=o,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...d}=e,{vars:p,css:g,varsWithDefaults:b}=Oa(d,o);let v=b;const h={},{[c]:f,...y}=s;if(Object.entries(y||{}).forEach(([x,T])=>{const{vars:E,css:j,varsWithDefaults:R}=Oa(T,o);v=Tt(v,R),h[x]={css:j,vars:E}}),f){const{css:x,vars:T,varsWithDefaults:E}=Oa(f,o);v=Tt(v,E),h[c]={css:x,vars:T}}function C(x,T){let E=a;if(a==="class"&&(E=".%s"),a==="data"&&(E="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(E=`[${a}="%s"]`),x){if(E==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${s[x]?.palette?.mode||x})`]:{":root":T}};if(E)return e.defaultColorScheme===x?`:root, ${E.replace("%s",String(x))}`:E.replace("%s",String(x))}return":root"}return{vars:v,generateThemeVars:()=>{let x={...p};return Object.entries(h).forEach(([,{vars:T}])=>{x=Tt(x,T)}),x},generateStyleSheets:()=>{const x=[],T=e.defaultColorScheme||"light";function E(I,N){Object.keys(N).length&&x.push(typeof I=="string"?{[I]:{...N}}:I)}E(n(void 0,{...g}),g);const{[T]:j,...R}=h;if(j){const{css:I}=j,N=s[T]?.palette?.mode,A=!r&&N?{colorScheme:N,...I}:{...I};E(n(T,{...A}),A)}return Object.entries(R).forEach(([I,{css:N}])=>{const A=s[I]?.palette?.mode,m=!r&&A?{colorScheme:A,...N}:{...N};E(n(I,{...m}),m)}),i&&x.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),x}}}function Bu(e){const o={};return Object.entries(e).forEach(r=>{const[a,i]=r;typeof i=="object"&&(o[a]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),o}function Du(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const zu={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 xe(e,o,n="Mui"){const r=zu[o];return r?`${n}-${r}`:`${Fl.generate(e)}-${o}`}function Fu(e,o){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...o}}function Vu(e){return Math.round(e*1e5)/1e5}const Is={textTransform:"uppercase"},$s='"Roboto", "Helvetica", "Arial", sans-serif';function _u(e,o){const{fontFamily:n=$s,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:p,...g}=typeof o=="function"?o(e):o;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=r/14,v=p||(y=>`${y/c*b}rem`),h=(y,C,O,S,x)=>({fontFamily:n,fontWeight:y,fontSize:v(C),lineHeight:O,...n===$s?{letterSpacing:`${Vu(S/C)}em`}:{},...x,...d}),f={h1:h(a,96,1.167,-1.5),h2:h(a,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(s,14,1.75,.4,Is),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,Is),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Tt({htmlFontSize:c,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l,...f},g,{clone:!1})}const Wu=.2,Uu=.14,Hu=.12;function at(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Wu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Uu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Hu})`].join(",")}const qu=["none",at(0,2,1,-1,0,1,1,0,0,1,3,0),at(0,3,1,-2,0,2,2,0,0,1,5,0),at(0,3,3,-2,0,3,4,0,0,1,8,0),at(0,2,4,-1,0,4,5,0,0,1,10,0),at(0,3,5,-1,0,5,8,0,0,1,14,0),at(0,3,5,-1,0,6,10,0,0,1,18,0),at(0,4,5,-2,0,7,10,1,0,2,16,1),at(0,5,5,-3,0,8,10,1,0,3,14,2),at(0,5,6,-3,0,9,12,1,0,3,16,2),at(0,6,6,-3,0,10,14,1,0,4,18,3),at(0,6,7,-4,0,11,15,1,0,4,20,3),at(0,7,8,-4,0,12,17,2,0,5,22,4),at(0,7,8,-4,0,13,19,2,0,5,24,4),at(0,7,9,-4,0,14,21,2,0,5,26,4),at(0,8,9,-5,0,15,22,2,0,6,28,5),at(0,8,10,-5,0,16,24,2,0,6,30,5),at(0,8,11,-5,0,17,26,2,0,6,32,5),at(0,9,11,-5,0,18,28,2,0,7,34,6),at(0,9,12,-6,0,19,29,2,0,7,36,6),at(0,10,13,-6,0,20,31,3,0,8,38,7),at(0,10,13,-6,0,21,33,3,0,8,40,7),at(0,10,14,-6,0,22,35,3,0,8,42,7),at(0,11,14,-7,0,23,36,3,0,9,44,8),at(0,11,15,-7,0,24,38,3,0,9,46,8)],Gu={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Yl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function js(e){return`${Math.round(e)}ms`}function Ku(e){if(!e)return 0;const o=e/36;return Math.min(Math.round((4+15*o**.25+o/5)*10),3e3)}function Yu(e){const o={...Gu,...e.easing},n={...Yl,...e.duration};return{getAutoHeightDuration:Ku,create:(a=["all"],i={})=>{const{duration:s=n.standard,easing:l=o.easeInOut,delay:c=0,...d}=i;if(process.env.NODE_ENV!=="production"){const p=b=>typeof b=="string",g=b=>!Number.isNaN(parseFloat(b));!p(a)&&!Array.isArray(a)&&console.error('MUI: Argument "props" must be a string or Array.'),!g(s)&&!p(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),p(l)||console.error('MUI: Argument "easing" must be a string.'),!g(c)&&!p(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
25
|
+
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(p=>`${p} ${typeof s=="string"?s:js(s)} ${l} ${typeof c=="string"?c:js(c)}`).join(",")},...e,easing:o,duration:n}}const Xu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Zu(e){return Jt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Xl(e={}){const o={...e};function n(r){const a=Object.entries(r);for(let i=0;i<a.length;i++){const[s,l]=a[i];!Zu(l)||s.startsWith("unstable_")?delete r[s]:Jt(l)&&(r[s]={...l},n(r[s]))}}return n(o),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
26
26
|
|
|
27
|
-
const theme = ${JSON.stringify(
|
|
27
|
+
const theme = ${JSON.stringify(o,null,2)};
|
|
28
28
|
|
|
29
29
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
30
30
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
31
31
|
|
|
32
|
-
export default theme;`}function
|
|
33
|
-
`))}
|
|
34
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Ug(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ao=e=>{try{return e()}catch{}},Hg=(e="mui")=>ng(e);function ci(e,t,n,r,a){if(!n)return;n=n===!0?{}:n;const i=a==="dark"?"dark":"light";if(!r){t[a]=Fg({...n,palette:{mode:i,...n?.palette},colorSpace:e});return}const{palette:s,...l}=$i({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[a]={...n,palette:s,opacity:{...Ou(i),...n?.opacity},overlays:n?.overlays||Eu(i)},l}function qg(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:i="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=zg,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,f=Object.keys(n)[0],y=r||(n.light&&f!=="light"?"light":f),x=Hg(i),{[y]:h,light:p,dark:b,...v}=n,O={...v};let T=h;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(T=!0),!T)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:go(21,y));let C;s&&(C="oklch");const S=ci(C,O,T,d,y);p&&!O.light&&ci(C,O,p,void 0,"light"),b&&!O.dark&&ci(C,O,b,void 0,"dark");let E={defaultColorScheme:y,...S,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:x,colorSchemes:O,font:{...Tg(S.typography),...S.font},spacing:Ug(d.spacing)};Object.keys(E.colorSchemes).forEach(A=>{const g=E.colorSchemes[A].palette,j=M=>{const k=M.split("-"),z=k[1],F=k[2];return x(M,g[z][F])};g.mode==="light"&&(q(g.common,"background","#fff"),q(g.common,"onBackground","#000")),g.mode==="dark"&&(q(g.common,"background","#000"),q(g.common,"onBackground","#fff"));function R(M,k,z){if(C){let F;return M===_o&&(F=`transparent ${((1-z)*100).toFixed(0)}%`),M===Qe&&(F=`#000 ${(z*100).toFixed(0)}%`),M===et&&(F=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${C}, ${k}, ${F})`}return M(k,z)}if(Wg(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){q(g.Alert,"errorColor",R(Qe,g.error.light,.6)),q(g.Alert,"infoColor",R(Qe,g.info.light,.6)),q(g.Alert,"successColor",R(Qe,g.success.light,.6)),q(g.Alert,"warningColor",R(Qe,g.warning.light,.6)),q(g.Alert,"errorFilledBg",j("palette-error-main")),q(g.Alert,"infoFilledBg",j("palette-info-main")),q(g.Alert,"successFilledBg",j("palette-success-main")),q(g.Alert,"warningFilledBg",j("palette-warning-main")),q(g.Alert,"errorFilledColor",ao(()=>g.getContrastText(g.error.main))),q(g.Alert,"infoFilledColor",ao(()=>g.getContrastText(g.info.main))),q(g.Alert,"successFilledColor",ao(()=>g.getContrastText(g.success.main))),q(g.Alert,"warningFilledColor",ao(()=>g.getContrastText(g.warning.main))),q(g.Alert,"errorStandardBg",R(et,g.error.light,.9)),q(g.Alert,"infoStandardBg",R(et,g.info.light,.9)),q(g.Alert,"successStandardBg",R(et,g.success.light,.9)),q(g.Alert,"warningStandardBg",R(et,g.warning.light,.9)),q(g.Alert,"errorIconColor",j("palette-error-main")),q(g.Alert,"infoIconColor",j("palette-info-main")),q(g.Alert,"successIconColor",j("palette-success-main")),q(g.Alert,"warningIconColor",j("palette-warning-main")),q(g.AppBar,"defaultBg",j("palette-grey-100")),q(g.Avatar,"defaultBg",j("palette-grey-400")),q(g.Button,"inheritContainedBg",j("palette-grey-300")),q(g.Button,"inheritContainedHoverBg",j("palette-grey-A100")),q(g.Chip,"defaultBorder",j("palette-grey-400")),q(g.Chip,"defaultAvatarColor",j("palette-grey-700")),q(g.Chip,"defaultIconColor",j("palette-grey-700")),q(g.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(g.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(g.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(g.LinearProgress,"primaryBg",R(et,g.primary.main,.62)),q(g.LinearProgress,"secondaryBg",R(et,g.secondary.main,.62)),q(g.LinearProgress,"errorBg",R(et,g.error.main,.62)),q(g.LinearProgress,"infoBg",R(et,g.info.main,.62)),q(g.LinearProgress,"successBg",R(et,g.success.main,.62)),q(g.LinearProgress,"warningBg",R(et,g.warning.main,.62)),q(g.Skeleton,"bg",C?R(_o,g.text.primary,.11):`rgba(${j("palette-text-primaryChannel")} / 0.11)`),q(g.Slider,"primaryTrack",R(et,g.primary.main,.62)),q(g.Slider,"secondaryTrack",R(et,g.secondary.main,.62)),q(g.Slider,"errorTrack",R(et,g.error.main,.62)),q(g.Slider,"infoTrack",R(et,g.info.main,.62)),q(g.Slider,"successTrack",R(et,g.success.main,.62)),q(g.Slider,"warningTrack",R(et,g.warning.main,.62));const M=C?R(Qe,g.background.default,.6825):Pr(g.background.default,.8);q(g.SnackbarContent,"bg",M),q(g.SnackbarContent,"color",ao(()=>C?Ri.text.primary:g.getContrastText(M))),q(g.SpeedDialAction,"fabHoverBg",Pr(g.background.paper,.15)),q(g.StepConnector,"border",j("palette-grey-400")),q(g.StepContent,"border",j("palette-grey-400")),q(g.Switch,"defaultColor",j("palette-common-white")),q(g.Switch,"defaultDisabledColor",j("palette-grey-100")),q(g.Switch,"primaryDisabledColor",R(et,g.primary.main,.62)),q(g.Switch,"secondaryDisabledColor",R(et,g.secondary.main,.62)),q(g.Switch,"errorDisabledColor",R(et,g.error.main,.62)),q(g.Switch,"infoDisabledColor",R(et,g.info.main,.62)),q(g.Switch,"successDisabledColor",R(et,g.success.main,.62)),q(g.Switch,"warningDisabledColor",R(et,g.warning.main,.62)),q(g.TableCell,"border",R(et,R(_o,g.divider,1),.88)),q(g.Tooltip,"bg",R(_o,g.grey[700],.92))}if(g.mode==="dark"){q(g.Alert,"errorColor",R(et,g.error.light,.6)),q(g.Alert,"infoColor",R(et,g.info.light,.6)),q(g.Alert,"successColor",R(et,g.success.light,.6)),q(g.Alert,"warningColor",R(et,g.warning.light,.6)),q(g.Alert,"errorFilledBg",j("palette-error-dark")),q(g.Alert,"infoFilledBg",j("palette-info-dark")),q(g.Alert,"successFilledBg",j("palette-success-dark")),q(g.Alert,"warningFilledBg",j("palette-warning-dark")),q(g.Alert,"errorFilledColor",ao(()=>g.getContrastText(g.error.dark))),q(g.Alert,"infoFilledColor",ao(()=>g.getContrastText(g.info.dark))),q(g.Alert,"successFilledColor",ao(()=>g.getContrastText(g.success.dark))),q(g.Alert,"warningFilledColor",ao(()=>g.getContrastText(g.warning.dark))),q(g.Alert,"errorStandardBg",R(Qe,g.error.light,.9)),q(g.Alert,"infoStandardBg",R(Qe,g.info.light,.9)),q(g.Alert,"successStandardBg",R(Qe,g.success.light,.9)),q(g.Alert,"warningStandardBg",R(Qe,g.warning.light,.9)),q(g.Alert,"errorIconColor",j("palette-error-main")),q(g.Alert,"infoIconColor",j("palette-info-main")),q(g.Alert,"successIconColor",j("palette-success-main")),q(g.Alert,"warningIconColor",j("palette-warning-main")),q(g.AppBar,"defaultBg",j("palette-grey-900")),q(g.AppBar,"darkBg",j("palette-background-paper")),q(g.AppBar,"darkColor",j("palette-text-primary")),q(g.Avatar,"defaultBg",j("palette-grey-600")),q(g.Button,"inheritContainedBg",j("palette-grey-800")),q(g.Button,"inheritContainedHoverBg",j("palette-grey-700")),q(g.Chip,"defaultBorder",j("palette-grey-700")),q(g.Chip,"defaultAvatarColor",j("palette-grey-300")),q(g.Chip,"defaultIconColor",j("palette-grey-300")),q(g.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(g.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(g.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(g.LinearProgress,"primaryBg",R(Qe,g.primary.main,.5)),q(g.LinearProgress,"secondaryBg",R(Qe,g.secondary.main,.5)),q(g.LinearProgress,"errorBg",R(Qe,g.error.main,.5)),q(g.LinearProgress,"infoBg",R(Qe,g.info.main,.5)),q(g.LinearProgress,"successBg",R(Qe,g.success.main,.5)),q(g.LinearProgress,"warningBg",R(Qe,g.warning.main,.5)),q(g.Skeleton,"bg",C?R(_o,g.text.primary,.13):`rgba(${j("palette-text-primaryChannel")} / 0.13)`),q(g.Slider,"primaryTrack",R(Qe,g.primary.main,.5)),q(g.Slider,"secondaryTrack",R(Qe,g.secondary.main,.5)),q(g.Slider,"errorTrack",R(Qe,g.error.main,.5)),q(g.Slider,"infoTrack",R(Qe,g.info.main,.5)),q(g.Slider,"successTrack",R(Qe,g.success.main,.5)),q(g.Slider,"warningTrack",R(Qe,g.warning.main,.5));const M=C?R(et,g.background.default,.985):Pr(g.background.default,.98);q(g.SnackbarContent,"bg",M),q(g.SnackbarContent,"color",ao(()=>C?Cu.text.primary:g.getContrastText(M))),q(g.SpeedDialAction,"fabHoverBg",Pr(g.background.paper,.15)),q(g.StepConnector,"border",j("palette-grey-600")),q(g.StepContent,"border",j("palette-grey-600")),q(g.Switch,"defaultColor",j("palette-grey-300")),q(g.Switch,"defaultDisabledColor",j("palette-grey-600")),q(g.Switch,"primaryDisabledColor",R(Qe,g.primary.main,.55)),q(g.Switch,"secondaryDisabledColor",R(Qe,g.secondary.main,.55)),q(g.Switch,"errorDisabledColor",R(Qe,g.error.main,.55)),q(g.Switch,"infoDisabledColor",R(Qe,g.info.main,.55)),q(g.Switch,"successDisabledColor",R(Qe,g.success.main,.55)),q(g.Switch,"warningDisabledColor",R(Qe,g.warning.main,.55)),q(g.TableCell,"border",R(Qe,R(_o,g.divider,1),.68)),q(g.Tooltip,"bg",R(_o,g.grey[700],.92))}Co(g.background,"default"),Co(g.background,"paper"),Co(g.common,"background"),Co(g.common,"onBackground"),Co(g,"divider"),Object.keys(g).forEach(M=>{const k=g[M];M!=="tonalOffset"&&k&&typeof k=="object"&&(k.main&&q(g[M],"mainChannel",Wn(Un(k.main))),k.light&&q(g[M],"lightChannel",Wn(Un(k.light))),k.dark&&q(g[M],"darkChannel",Wn(Un(k.dark))),k.contrastText&&q(g[M],"contrastTextChannel",Wn(Un(k.contrastText))),M==="text"&&(Co(g[M],"primary"),Co(g[M],"secondary")),M==="action"&&(k.active&&Co(g[M],"active"),k.selected&&Co(g[M],"selected")))})}),E=t.reduce((A,g)=>wt(A,g),E);const P={prefix:i,disableCssColorScheme:a,shouldSkipGeneratingVar:l,getSelector:_g(E),enableContrastVars:s},{vars:$,generateThemeVars:I,generateStyleSheets:N}=ig(E,P);return E.vars=$,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([A,g])=>{E[A]=g}),E.generateThemeVars=I,E.generateStyleSheets=N,E.generateSpacing=function(){return pu(d.spacing,da(this))},E.getColorSchemeSelector=sg(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...pr,...d?.unstable_sxConfig},E.unstable_sx=function(g){return Zo({sx:g,theme:this})},E.toRuntimeSource=Su,E}function Wl(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:us({...n===!0?{}:n.palette,mode:t})})}function ku(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...s}=e,l=i||"light",c=a?.[l],u={...a,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return $i(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const f=$i({...e,palette:d},...t);return f.defaultColorScheme=l,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},Wl(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},Wl(f,"light",u.light)),f}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),qg({...s,colorSchemes:u,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const ds=ku(),Ea="$$material";function xt(){const e=wa(ds);return process.env.NODE_ENV!=="production"&&w.useDebugValue(e),e[Ea]||e}function Pu(e){return m.jsx(fu,{...e,defaultTheme:ds,themeId:Ea})}process.env.NODE_ENV!=="production"&&(Pu.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function gr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const St=e=>gr(e)&&e!=="classes",D=bu({themeId:Ea,defaultTheme:ds,rootShouldForwardProp:St});function Gg(e){return function(n){return m.jsx(Pu,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Kg(){return es}const pe=og;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function we(e){return Qm(e)}function Yg(e){return ge("MuiSvgIcon",e)}be("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Xg=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${V(t)}`,`fontSize${V(n)}`]};return he(a,Yg,r)},Jg=D("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${V(n.color)}`],t[`fontSize${V(n.fontSize)}`]]}})(pe(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Gr=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiSvgIcon"}),{children:a,className:i,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:y="0 0 24 24",...x}=r,h=w.isValidElement(a)&&a.type==="svg",p={...r,color:s,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:y,hasSvgAsChild:h},b={};d||(b.viewBox=y);const v=Xg(p);return m.jsxs(Jg,{as:l,className:Q(v.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...b,...x,...h&&a.props,ownerState:p,children:[h?a.props.children:a,f?m.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Gr.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string});Gr.muiName="SvgIcon";function lt(e,t){function n(r,a){return m.jsx(Gr,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:a,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Gr.muiName,w.memo(w.forwardRef(n))}function ps(e,t=166){let n;function r(...a){const i=()=>{e.apply(this,a)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function ht(e){return e&&e.ownerDocument||document}function no(e){return ht(e).defaultView||window}function ji(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Zg(e,t,n,r,a){if(process.env.NODE_ENV==="production")return null;const i=a||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function po(e){const{controlled:t,default:n,name:r,state:a="value"}=e,{current:i}=w.useRef(t!==void 0),[s,l]=w.useState(n),c=i?t:s;if(process.env.NODE_ENV!=="production"){w.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${a} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
35
|
-
`))},[a,r,
|
|
36
|
-
`))},[JSON.stringify(n)])}const
|
|
37
|
-
`))}return!1}const Ul={};function $u(e,t){const n=w.useRef(Ul);return n.current===Ul&&(n.current=e(t)),n}class Kr{static create(){return new Kr}static use(){const t=$u(Kr.create).current,[n,r]=w.useState(!1);return t.shouldMount=n,t.setShouldMount=r,w.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=nh(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function oh(){return Kr.use()}function nh(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}function Iu(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Mi(e,t){return Mi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Mi(e,t)}function ju(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mi(e,t)}const Hl={disabled:!1};var rh=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const Yr=Re.createContext(null);var ah=function(t){return t.scrollTop},Hn="unmounted",Uo="exited",Ho="entering",fn="entered",Ni="exiting",Ut=(function(e){ju(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var s=a,l=s&&!s.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?l?(c=Uo,i.appearStatus=Ho):c=fn:r.unmountOnExit||r.mountOnEnter?c=Hn:c=Uo,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var s=a.in;return s&&i.status===Hn?{status:Uo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==Ho&&s!==fn&&(i=Ho):(s===Ho||s===fn)&&(i=Ni)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,s,l;return i=s=l=a,a!=null&&typeof a!="number"&&(i=a.exit,s=a.enter,l=a.appear!==void 0?a.appear:s),{exit:i,enter:s,appear:l}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Ho){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:_n.findDOMNode(this);s&&ah(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Uo&&this.setState({status:Hn})},n.performEnter=function(a){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:a,c=this.props.nodeRef?[l]:[_n.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),y=l?f.appear:f.enter;if(!a&&!s||Hl.disabled){this.safeSetState({status:fn},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Ho},function(){i.props.onEntering(u,d),i.onTransitionEnd(y,function(){i.safeSetState({status:fn},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var a=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:_n.findDOMNode(this);if(!i||Hl.disabled){this.safeSetState({status:Uo},function(){a.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ni},function(){a.props.onExiting(l),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:Uo},function(){a.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,a(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:_n.findDOMNode(this),l=a==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===Hn)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Iu(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Re.createElement(Yr.Provider,{value:null},typeof s=="function"?s(a,l):Re.cloneElement(Re.Children.only(s),l))},t})(Re.Component);Ut.contextType=Yr;Ut.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,a,i){var s=e[t];return o.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var n=rh;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[t].concat(a))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function dn(){}Ut.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:dn,onEntering:dn,onEntered:dn,onExit:dn,onExiting:dn,onExited:dn};Ut.UNMOUNTED=Hn;Ut.EXITED=Uo;Ut.ENTERING=Ho;Ut.ENTERED=fn;Ut.EXITING=Ni;function ih(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fs(e,t){var n=function(i){return t&&Re.isValidElement(i)?t(i):i},r=Object.create(null);return e&&Re.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function sh(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),a=[];for(var i in e)i in t?a.length&&(r[i]=a,a=[]):a.push(i);var s,l={};for(var c in t){if(r[c])for(s=0;s<r[c].length;s++){var u=r[c][s];l[r[c][s]]=n(u)}l[c]=n(c)}for(s=0;s<a.length;s++)l[a[s]]=n(a[s]);return l}function Ko(e,t,n){return n[t]!=null?n[t]:e.props[t]}function lh(e,t){return fs(e.children,function(n){return Re.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ko(n,"appear",e),enter:Ko(n,"enter",e),exit:Ko(n,"exit",e)})})}function ch(e,t,n){var r=fs(e.children),a=sh(t,r);return Object.keys(a).forEach(function(i){var s=a[i];if(Re.isValidElement(s)){var l=i in t,c=i in r,u=t[i],d=Re.isValidElement(u)&&!u.props.in;c&&(!l||d)?a[i]=Re.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Ko(s,"exit",e),enter:Ko(s,"enter",e)}):!c&&l&&!d?a[i]=Re.cloneElement(s,{in:!1}):c&&l&&Re.isValidElement(u)&&(a[i]=Re.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:Ko(s,"exit",e),enter:Ko(s,"enter",e)}))}}),a}var uh=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},dh={component:"div",childFactory:function(t){return t}},ms=(function(e){ju(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var s=i.handleExited.bind(ih(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,i){var s=i.children,l=i.handleExited,c=i.firstRender;return{children:c?lh(a,l):ch(a,s,l),firstRender:!1}},n.handleExited=function(a,i){var s=fs(this.props.children);a.key in s||(a.props.onExited&&a.props.onExited(i),this.mounted&&this.setState(function(l){var c=Hr({},l.children);return delete c[a.key],{children:c}}))},n.render=function(){var a=this.props,i=a.component,s=a.childFactory,l=Iu(a,["component","childFactory"]),c=this.state.contextValue,u=uh(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,i===null?Re.createElement(Yr.Provider,{value:c},u):Re.createElement(Yr.Provider,{value:c},Re.createElement(i,l,u))},t})(Re.Component);ms.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{};ms.defaultProps=dh;const ph=[];function fh(e){w.useEffect(e,ph)}class ka{static create(){return new ka}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function jo(){const e=$u(ka.create).current;return fh(e.disposeEffect),e}function Mu(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:i,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,f]=w.useState(!1),y=Q(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),x={width:s,height:s,top:-(s/2)+i,left:-(s/2)+a},h=Q(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&f(!0),w.useEffect(()=>{if(!l&&c!=null){const p=setTimeout(c,u);return()=>{clearTimeout(p)}}},[c,l,u]),m.jsx("span",{className:y,style:x,children:m.jsx("span",{className:h})})}process.env.NODE_ENV!=="production"&&(Mu.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const qt=be("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ai=550,mh=80,gh=Bt`
|
|
32
|
+
export default theme;`}function Ms(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Ju=e=>{if(!Number.isNaN(+e))return+e;const o=e.match(/\d*\.?\d+/g);if(!o)return 0;let n=0;for(let r=0;r<o.length;r+=1)n+=+o[r];return n};function Qu(e){Object.assign(e,{alpha(o,n){const r=this||e;return r.colorSpace?`oklch(from ${o} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${o.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:xr(o,Ju(n))},lighten(o,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${o}, #fff ${Ms(n)})`:Gr(o,n)},darken(o,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${o}, #000 ${Ms(n)})`:qr(o,n)}})}function _a(e={},...o){const{breakpoints:n,mixins:r={},spacing:a,palette:i={},transitions:s={},typography:l={},shape:c,colorSpace:d,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":oo(20));const g=mi({...i,colorSpace:d}),b=Kl(e);let v=Tt(b,{mixins:Fu(b.breakpoints,r),palette:g,shadows:qu.slice(),typography:_u(g,l),transitions:Yu(s),zIndex:{...Xu}});if(v=Tt(v,p),v=o.reduce((h,f)=>Tt(h,f),v),process.env.NODE_ENV!=="production"){const h=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(y,C)=>{let O;for(O in y){const S=y[O];if(h.includes(O)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const x=xe("",O);console.error([`MUI: The \`${C}\` component increases the CSS specificity of the \`${O}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
33
|
+
`))}y[O]={}}}};Object.keys(v.components).forEach(y=>{const C=v.components[y].styleOverrides;C&&y.startsWith("Mui")&&f(C,y)})}return v.unstable_sxConfig={...Gn,...p?.unstable_sxConfig},v.unstable_sx=function(f){return rn({sx:f,theme:this})},v.toRuntimeSource=Xl,Qu(v),v}function Wa(e){let o;return e<1?o=5.11916*e**2:o=4.5*Math.log(e+1)+2,Math.round(o*10)/1e3}const ef=[...Array(25)].map((e,o)=>{if(o===0)return"none";const n=Wa(o);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Zl(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Jl(e){return e==="dark"?ef:[]}function tf(e){const{palette:o={mode:"light"},opacity:n,overlays:r,colorSpace:a,...i}=e,s=mi({...o,colorSpace:a});return{palette:s,opacity:{...Zl(s.mode),...n},overlays:r||Jl(s.mode),...i}}function of(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const nf=e=>[...[...Array(25)].map((o,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],rf=e=>(o,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let i=a;if(a==="class"&&(i=".%s"),a==="data"&&(i="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(i=`[${a}="%s"]`),e.defaultColorScheme===o){if(o==="dark"){const s={};return nf(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",o)]:s,[`${r}, ${i.replace("%s",o)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(o))}`}else if(o){if(i==="media")return{[`@media (prefers-color-scheme: ${String(o)})`]:{[r]:n}};if(i)return i.replace("%s",String(o))}return r};function af(e,o){o.forEach(n=>{e[n]||(e[n]={})})}function q(e,o,n){!e[o]&&n&&(e[o]=n)}function Rn(e){return typeof e!="string"||!e.startsWith("hsl")?e:Wl(e)}function ro(e,o){`${o}Channel`in e||(e[`${o}Channel`]=Pn(Rn(e[o]),`MUI: Can't create \`palette.${o}Channel\` because \`palette.${o}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
34
|
+
To suppress this warning, you need to explicitly provide the \`palette.${o}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function sf(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Xt=e=>{try{return e()}catch{}},lf=(e="mui")=>le.unstable_createGetCssVar(e);function Ea(e,o,n,r,a){if(!n)return;n=n===!0?{}:n;const i=a==="dark"?"dark":"light";if(!r){o[a]=tf({...n,palette:{mode:i,...n?.palette},colorSpace:e});return}const{palette:s,...l}=_a({...r,palette:{mode:i,...n?.palette},colorSpace:e});return o[a]={...n,palette:s,opacity:{...Zl(i),...n?.opacity},overlays:n?.overlays||Jl(i)},l}function cf(e={},...o){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:i="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=of,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...p}=e,g=Object.keys(n)[0],b=r||(n.light&&g!=="light"?"light":g),v=lf(i),{[b]:h,light:f,dark:y,...C}=n,O={...C};let S=h;if((b==="dark"&&!("dark"in n)||b==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${b}\` option is either missing or invalid.`:oo(21,b));let x;s&&(x="oklch");const T=Ea(x,O,S,p,b);f&&!O.light&&Ea(x,O,f,void 0,"light"),y&&!O.dark&&Ea(x,O,y,void 0,"dark");let E={defaultColorScheme:b,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:d,getCssVar:v,colorSchemes:O,font:{...Bu(T.typography),...T.font},spacing:sf(p.spacing)};Object.keys(E.colorSchemes).forEach(A=>{const m=E.colorSchemes[A].palette,$=M=>{const k=M.split("-"),z=k[1],V=k[2];return v(M,m[z][V])};m.mode==="light"&&(q(m.common,"background","#fff"),q(m.common,"onBackground","#000")),m.mode==="dark"&&(q(m.common,"background","#000"),q(m.common,"onBackground","#fff"));function P(M,k,z){if(x){let V;return M===Po&&(V=`transparent ${((1-z)*100).toFixed(0)}%`),M===Ze&&(V=`#000 ${(z*100).toFixed(0)}%`),M===Je&&(V=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${x}, ${k}, ${V})`}return M(k,z)}if(af(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){q(m.Alert,"errorColor",P(Ze,m.error.light,.6)),q(m.Alert,"infoColor",P(Ze,m.info.light,.6)),q(m.Alert,"successColor",P(Ze,m.success.light,.6)),q(m.Alert,"warningColor",P(Ze,m.warning.light,.6)),q(m.Alert,"errorFilledBg",$("palette-error-main")),q(m.Alert,"infoFilledBg",$("palette-info-main")),q(m.Alert,"successFilledBg",$("palette-success-main")),q(m.Alert,"warningFilledBg",$("palette-warning-main")),q(m.Alert,"errorFilledColor",Xt(()=>m.getContrastText(m.error.main))),q(m.Alert,"infoFilledColor",Xt(()=>m.getContrastText(m.info.main))),q(m.Alert,"successFilledColor",Xt(()=>m.getContrastText(m.success.main))),q(m.Alert,"warningFilledColor",Xt(()=>m.getContrastText(m.warning.main))),q(m.Alert,"errorStandardBg",P(Je,m.error.light,.9)),q(m.Alert,"infoStandardBg",P(Je,m.info.light,.9)),q(m.Alert,"successStandardBg",P(Je,m.success.light,.9)),q(m.Alert,"warningStandardBg",P(Je,m.warning.light,.9)),q(m.Alert,"errorIconColor",$("palette-error-main")),q(m.Alert,"infoIconColor",$("palette-info-main")),q(m.Alert,"successIconColor",$("palette-success-main")),q(m.Alert,"warningIconColor",$("palette-warning-main")),q(m.AppBar,"defaultBg",$("palette-grey-100")),q(m.Avatar,"defaultBg",$("palette-grey-400")),q(m.Button,"inheritContainedBg",$("palette-grey-300")),q(m.Button,"inheritContainedHoverBg",$("palette-grey-A100")),q(m.Chip,"defaultBorder",$("palette-grey-400")),q(m.Chip,"defaultAvatarColor",$("palette-grey-700")),q(m.Chip,"defaultIconColor",$("palette-grey-700")),q(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(m.LinearProgress,"primaryBg",P(Je,m.primary.main,.62)),q(m.LinearProgress,"secondaryBg",P(Je,m.secondary.main,.62)),q(m.LinearProgress,"errorBg",P(Je,m.error.main,.62)),q(m.LinearProgress,"infoBg",P(Je,m.info.main,.62)),q(m.LinearProgress,"successBg",P(Je,m.success.main,.62)),q(m.LinearProgress,"warningBg",P(Je,m.warning.main,.62)),q(m.Skeleton,"bg",x?P(Po,m.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),q(m.Slider,"primaryTrack",P(Je,m.primary.main,.62)),q(m.Slider,"secondaryTrack",P(Je,m.secondary.main,.62)),q(m.Slider,"errorTrack",P(Je,m.error.main,.62)),q(m.Slider,"infoTrack",P(Je,m.info.main,.62)),q(m.Slider,"successTrack",P(Je,m.success.main,.62)),q(m.Slider,"warningTrack",P(Je,m.warning.main,.62));const M=x?P(Ze,m.background.default,.6825):ir(m.background.default,.8);q(m.SnackbarContent,"bg",M),q(m.SnackbarContent,"color",Xt(()=>x?Va.text.primary:m.getContrastText(M))),q(m.SpeedDialAction,"fabHoverBg",ir(m.background.paper,.15)),q(m.StepConnector,"border",$("palette-grey-400")),q(m.StepContent,"border",$("palette-grey-400")),q(m.Switch,"defaultColor",$("palette-common-white")),q(m.Switch,"defaultDisabledColor",$("palette-grey-100")),q(m.Switch,"primaryDisabledColor",P(Je,m.primary.main,.62)),q(m.Switch,"secondaryDisabledColor",P(Je,m.secondary.main,.62)),q(m.Switch,"errorDisabledColor",P(Je,m.error.main,.62)),q(m.Switch,"infoDisabledColor",P(Je,m.info.main,.62)),q(m.Switch,"successDisabledColor",P(Je,m.success.main,.62)),q(m.Switch,"warningDisabledColor",P(Je,m.warning.main,.62)),q(m.TableCell,"border",P(Je,P(Po,m.divider,1),.88)),q(m.Tooltip,"bg",P(Po,m.grey[700],.92))}if(m.mode==="dark"){q(m.Alert,"errorColor",P(Je,m.error.light,.6)),q(m.Alert,"infoColor",P(Je,m.info.light,.6)),q(m.Alert,"successColor",P(Je,m.success.light,.6)),q(m.Alert,"warningColor",P(Je,m.warning.light,.6)),q(m.Alert,"errorFilledBg",$("palette-error-dark")),q(m.Alert,"infoFilledBg",$("palette-info-dark")),q(m.Alert,"successFilledBg",$("palette-success-dark")),q(m.Alert,"warningFilledBg",$("palette-warning-dark")),q(m.Alert,"errorFilledColor",Xt(()=>m.getContrastText(m.error.dark))),q(m.Alert,"infoFilledColor",Xt(()=>m.getContrastText(m.info.dark))),q(m.Alert,"successFilledColor",Xt(()=>m.getContrastText(m.success.dark))),q(m.Alert,"warningFilledColor",Xt(()=>m.getContrastText(m.warning.dark))),q(m.Alert,"errorStandardBg",P(Ze,m.error.light,.9)),q(m.Alert,"infoStandardBg",P(Ze,m.info.light,.9)),q(m.Alert,"successStandardBg",P(Ze,m.success.light,.9)),q(m.Alert,"warningStandardBg",P(Ze,m.warning.light,.9)),q(m.Alert,"errorIconColor",$("palette-error-main")),q(m.Alert,"infoIconColor",$("palette-info-main")),q(m.Alert,"successIconColor",$("palette-success-main")),q(m.Alert,"warningIconColor",$("palette-warning-main")),q(m.AppBar,"defaultBg",$("palette-grey-900")),q(m.AppBar,"darkBg",$("palette-background-paper")),q(m.AppBar,"darkColor",$("palette-text-primary")),q(m.Avatar,"defaultBg",$("palette-grey-600")),q(m.Button,"inheritContainedBg",$("palette-grey-800")),q(m.Button,"inheritContainedHoverBg",$("palette-grey-700")),q(m.Chip,"defaultBorder",$("palette-grey-700")),q(m.Chip,"defaultAvatarColor",$("palette-grey-300")),q(m.Chip,"defaultIconColor",$("palette-grey-300")),q(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(m.LinearProgress,"primaryBg",P(Ze,m.primary.main,.5)),q(m.LinearProgress,"secondaryBg",P(Ze,m.secondary.main,.5)),q(m.LinearProgress,"errorBg",P(Ze,m.error.main,.5)),q(m.LinearProgress,"infoBg",P(Ze,m.info.main,.5)),q(m.LinearProgress,"successBg",P(Ze,m.success.main,.5)),q(m.LinearProgress,"warningBg",P(Ze,m.warning.main,.5)),q(m.Skeleton,"bg",x?P(Po,m.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),q(m.Slider,"primaryTrack",P(Ze,m.primary.main,.5)),q(m.Slider,"secondaryTrack",P(Ze,m.secondary.main,.5)),q(m.Slider,"errorTrack",P(Ze,m.error.main,.5)),q(m.Slider,"infoTrack",P(Ze,m.info.main,.5)),q(m.Slider,"successTrack",P(Ze,m.success.main,.5)),q(m.Slider,"warningTrack",P(Ze,m.warning.main,.5));const M=x?P(Je,m.background.default,.985):ir(m.background.default,.98);q(m.SnackbarContent,"bg",M),q(m.SnackbarContent,"color",Xt(()=>x?Hl.text.primary:m.getContrastText(M))),q(m.SpeedDialAction,"fabHoverBg",ir(m.background.paper,.15)),q(m.StepConnector,"border",$("palette-grey-600")),q(m.StepContent,"border",$("palette-grey-600")),q(m.Switch,"defaultColor",$("palette-grey-300")),q(m.Switch,"defaultDisabledColor",$("palette-grey-600")),q(m.Switch,"primaryDisabledColor",P(Ze,m.primary.main,.55)),q(m.Switch,"secondaryDisabledColor",P(Ze,m.secondary.main,.55)),q(m.Switch,"errorDisabledColor",P(Ze,m.error.main,.55)),q(m.Switch,"infoDisabledColor",P(Ze,m.info.main,.55)),q(m.Switch,"successDisabledColor",P(Ze,m.success.main,.55)),q(m.Switch,"warningDisabledColor",P(Ze,m.warning.main,.55)),q(m.TableCell,"border",P(Ze,P(Po,m.divider,1),.68)),q(m.Tooltip,"bg",P(Po,m.grey[700],.92))}ro(m.background,"default"),ro(m.background,"paper"),ro(m.common,"background"),ro(m.common,"onBackground"),ro(m,"divider"),Object.keys(m).forEach(M=>{const k=m[M];M!=="tonalOffset"&&k&&typeof k=="object"&&(k.main&&q(m[M],"mainChannel",Pn(Rn(k.main))),k.light&&q(m[M],"lightChannel",Pn(Rn(k.light))),k.dark&&q(m[M],"darkChannel",Pn(Rn(k.dark))),k.contrastText&&q(m[M],"contrastTextChannel",Pn(Rn(k.contrastText))),M==="text"&&(ro(m[M],"primary"),ro(m[M],"secondary")),M==="action"&&(k.active&&ro(m[M],"active"),k.selected&&ro(m[M],"selected")))})}),E=o.reduce((A,m)=>Tt(A,m),E);const j={prefix:i,disableCssColorScheme:a,shouldSkipGeneratingVar:l,getSelector:rf(E),enableContrastVars:s},{vars:R,generateThemeVars:I,generateStyleSheets:N}=Lu(E,j);return E.vars=R,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([A,m])=>{E[A]=m}),E.generateThemeVars=I,E.generateStyleSheets=N,E.generateSpacing=function(){return le.createSpacing(p.spacing,pi(this))},E.getColorSchemeSelector=Du(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...Gn,...p?.unstable_sxConfig},E.unstable_sx=function(m){return rn({sx:m,theme:this})},E.toRuntimeSource=Xl,E}function Ns(e,o,n){e.colorSchemes&&n&&(e.colorSchemes[o]={...n!==!0&&n,palette:mi({...n===!0?{}:n.palette,mode:o})})}function Ql(e={},...o){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...s}=e,l=i||"light",c=a?.[l],d={...a,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return _a(e,...o);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const g=_a({...e,palette:p},...o);return g.defaultColorScheme=l,g.colorSchemes=d,g.palette.mode==="light"&&(g.colorSchemes.light={...d.light!==!0&&d.light,palette:g.palette},Ns(g,"dark",d.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:g.palette},Ns(g,"light",d.light)),g}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),cf({...s,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...o)}const hi=Ql(),Kr="$$material";function jt(){const e=le.useTheme(hi);return process.env.NODE_ENV!=="production"&&w.useDebugValue(e),e[Kr]||e}function ec(e){return u.jsx(le.GlobalStyles,{...e,defaultTheme:hi,themeId:Kr})}process.env.NODE_ENV!=="production"&&(ec.propTypes={styles:t.oneOfType([t.array,t.func,t.number,t.object,t.string,t.bool])});function tc(e,o=""){return e.displayName||e.name||o}function As(e,o,n){const r=tc(o);return e.displayName||(r!==""?`${n}(${r})`:n)}function df(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return tc(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Co.ForwardRef:return As(e,e.render,"ForwardRef");case Co.Memo:return As(e,e.type,"memo");default:return}}}function pf(e){const{variants:o,...n}=e,r={variants:o,style:Ao(n),isProcessed:!0};return r.style===n||o&&o.forEach(a=>{typeof a.style!="function"&&(a.style=Ao(a.style))}),r}const uf=Kl();function ka(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Mo(e,o){return o&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${o}{${String(e.styles)}}`),e}function ff(e){return e?(o,n)=>n[e]:null}function mf(e,o,n){e.theme=yf(e.theme)?n:e.theme[o]||e.theme}function hr(e,o,n){const r=typeof o=="function"?o(e):o;if(Array.isArray(r))return r.flatMap(a=>hr(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?Mo(r.style,n):r.style;else{const{variants:i,...s}=r;a=n?Mo(Ao(s),n):s}return oc(e,r.variants,[a],n)}return r?.isProcessed?n?Mo(Ao(r.style),n):r.style:n?Mo(Ao(r),n):r}function oc(e,o,n=[],r=void 0){let a;e:for(let i=0;i<o.length;i+=1){const s=o[i];if(typeof s.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(a))continue}else for(const l in s.props)if(e[l]!==s.props[l]&&e.ownerState?.[l]!==s.props[l])continue e;typeof s.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Mo(Ao(s.style(a)),r):s.style(a))):n.push(r?Mo(Ao(s.style),r):s.style)}return n}function gf(e={}){const{themeId:o,defaultTheme:n=uf,rootShouldForwardProp:r=ka,slotShouldForwardProp:a=ka}=e;function i(l){mf(l,o,n)}return(l,c={})=>{Cu(l,E=>E.filter(j=>j!==rn));const{name:d,slot:p,skipVariantsResolver:g,skipSx:b,overridesResolver:v=ff(nc(p)),...h}=c,f=d&&d.startsWith("Mui")||p?"components":"custom",y=g!==void 0?g:p&&p!=="Root"&&p!=="root"||!1,C=b||!1;let O=ka;p==="Root"||p==="root"?O=r:p?O=a:vf(l)&&(O=void 0);const S=xu(l,{shouldForwardProp:O,label:bf(d,p),...h}),x=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(R){return hr(R,E,R.theme.modularCssLayers?f:void 0)};if(Jt(E)){const j=pf(E);return function(I){return j.variants?hr(I,j,I.theme.modularCssLayers?f:void 0):I.theme.modularCssLayers?Mo(j.style,f):j.style}}return E},T=(...E)=>{const j=[],R=E.map(x),I=[];if(j.push(i),d&&v&&I.push(function($){const M=$.theme.components?.[d]?.styleOverrides;if(!M)return null;const k={};for(const z in M)k[z]=hr($,M[z],$.theme.modularCssLayers?"theme":void 0);return v($,k)}),d&&!y&&I.push(function($){const M=$.theme?.components?.[d]?.variants;return M?oc($,M,[],$.theme.modularCssLayers?"theme":void 0):null}),C||I.push(rn),Array.isArray(R[0])){const m=R.shift(),$=new Array(j.length).fill(""),P=new Array(I.length).fill("");let M;M=[...$,...m,...P],M.raw=[...$,...m.raw,...P],j.unshift(M)}const N=[...j,...R,...I],A=S(...N);return l.muiName&&(A.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(A.displayName=hf(d,p,l)),A};return S.withConfig&&(T.withConfig=S.withConfig),T}}function hf(e,o,n){return e?`${e}${F(o||"")}`:`Styled(${df(n)})`}function bf(e,o){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${nc(o||"Root")}`),n}function yf(e){for(const o in e)return!1;return!0}function vf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function nc(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Kn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ct=e=>Kn(e)&&e!=="classes",D=gf({themeId:Kr,defaultTheme:hi,rootShouldForwardProp:Ct});function xf(e){return function(n){return u.jsx(ec,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Cf(){return ou}const me=le.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(t.node,t.object.isRequired);function Te(e){return Eu(e)}function Ce(e,o,n="Mui"){const r={};return o.forEach(a=>{r[a]=xe(e,a,n)}),r}function wf(e){return xe("MuiSvgIcon",e)}Ce("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Sf=e=>{const{color:o,fontSize:n,classes:r}=e,a={root:["root",o!=="inherit"&&`color${F(o)}`,`fontSize${F(n)}`]};return we(a,wf,r)},Tf=D("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.color!=="inherit"&&o[`color${F(n.color)}`],o[`fontSize${F(n.fontSize)}`]]}})(me(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:o=>!o.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,o])=>o&&o.main).map(([o])=>({props:{color:o},style:{color:(e.vars??e).palette?.[o]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),wr=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiSvgIcon"}),{children:a,className:i,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:g,viewBox:b="0 0 24 24",...v}=r,h=w.isValidElement(a)&&a.type==="svg",f={...r,color:s,component:l,fontSize:c,instanceFontSize:o.fontSize,inheritViewBox:p,viewBox:b,hasSvgAsChild:h},y={};p||(y.viewBox=b);const C=Sf(f);return u.jsxs(Tf,{as:l,className:re(C.root,i),focusable:"false",color:d,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n,...y,...v,...h&&a.props,ownerState:f,children:[h?a.props.children:a,g?u.jsx("title",{children:g}):null]})});process.env.NODE_ENV!=="production"&&(wr.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),t.string]),component:t.elementType,fontSize:t.oneOfType([t.oneOf(["inherit","large","medium","small"]),t.string]),htmlColor:t.string,inheritViewBox:t.bool,shapeRendering:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),titleAccess:t.string,viewBox:t.string});wr.muiName="SvgIcon";function st(e,o){function n(r,a){return u.jsx(wr,{"data-testid":process.env.NODE_ENV!=="production"?`${o}Icon`:void 0,ref:a,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${o}Icon`),n.muiName=wr.muiName,w.memo(w.forwardRef(n))}function rc(e,o=166){let n;function r(...a){const i=()=>{e.apply(this,a)};clearTimeout(n),n=setTimeout(i,o)}return r.clear=()=>{clearTimeout(n)},r}function An(e,o){return w.isValidElement(e)&&o.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function mt(e){return e&&e.ownerDocument||document}function so(e){return mt(e).defaultView||window}function Ua(e,o){typeof e=="function"?e(o):e&&(e.current=o)}function Of(e,o,n,r,a){if(process.env.NODE_ENV==="production")return null;const i=a||o;return typeof e[o]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Qt(e){const{controlled:o,default:n,name:r,state:a="value"}=e,{current:i}=w.useRef(o!==void 0),[s,l]=w.useState(n),c=i?o:s;if(process.env.NODE_ENV!=="production"){w.useEffect(()=>{i!==(o!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${a} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
35
|
+
`))},[a,r,o]);const{current:p}=w.useRef(n);w.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(p)&&console.error([`MUI: A component is changing the default ${a} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
36
|
+
`))},[JSON.stringify(n)])}const d=w.useCallback(p=>{i||l(p)},[]);return[c,d]}function bt(e){const o=w.useRef(e);return Wt(()=>{o.current=e}),w.useRef((...n)=>(0,o.current)(...n)).current}function ot(...e){const o=w.useRef(void 0),n=w.useCallback(r=>{const a=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return i.current=r,()=>{i.current=null}});return()=>{a.forEach(i=>i?.())}},e);return w.useMemo(()=>e.every(r=>r==null)?null:r=>{o.current&&(o.current(),o.current=void 0),r!=null&&(o.current=n(r))},e)}function Ef(e,o){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof o=="function"}function ac(e,o){if(!e)return o;function n(s,l){const c={};return Object.keys(l).forEach(d=>{Ef(d,l[d])&&typeof s[d]=="function"&&(c[d]=(...p)=>{s[d](...p),l[d](...p)})}),c}if(typeof e=="function"||typeof o=="function")return s=>{const l=typeof o=="function"?o(s):o,c=typeof e=="function"?e({...s,...l}):e,d=re(s?.className,l?.className,c?.className),p=n(c,l);return{...l,...c,...p,...!!d&&{className:d},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=o,a=n(e,r),i=re(r?.className,e?.className);return{...o,...e,...a,...!!i&&{className:i},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Pt=t.oneOfType([t.func,t.object]);function xt(e,o){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||o(...r)}}function kf(e){const{prototype:o={}}=e;return!!o.isReactComponent}function Pf(e,o,n,r,a){const i=e[o],s=a||o;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!kf(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Yn=xt(t.elementType,Pf);function So(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
37
|
+
`))}return!1}const Ls={};function ic(e,o){const n=w.useRef(Ls);return n.current===Ls&&(n.current=e(o)),n}class Sr{static create(){return new Sr}static use(){const o=ic(Sr.create).current,[n,r]=w.useState(!1);return o.shouldMount=n,o.setShouldMount=r,w.useEffect(o.mountEffect,[n]),o}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=If(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...o){this.mount().then(()=>this.ref.current?.start(...o))}stop(...o){this.mount().then(()=>this.ref.current?.stop(...o))}pulsate(...o){this.mount().then(()=>this.ref.current?.pulsate(...o))}}function Rf(){return Sr.use()}function If(){let e,o;const n=new Promise((r,a)=>{e=r,o=a});return n.resolve=e,n.reject=o,n}function Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ha.apply(null,arguments)}function sc(e,o){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(o.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function qa(e,o){return qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qa(e,o)}function lc(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,qa(e,o)}const Bs={disabled:!1};var $f=process.env.NODE_ENV!=="production"?t.oneOfType([t.number,t.shape({enter:t.number,exit:t.number,appear:t.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&t.oneOfType([t.string,t.shape({enter:t.string,exit:t.string,active:t.string}),t.shape({enter:t.string,enterDone:t.string,enterActive:t.string,exit:t.string,exitDone:t.string,exitActive:t.string})]);const Tr=Re.createContext(null);var jf=function(o){return o.scrollTop},In="unmounted",Io="exited",$o="entering",Jo="entered",Ga="exiting",Kt=(function(e){lc(o,e);function o(r,a){var i;i=e.call(this,r,a)||this;var s=a,l=s&&!s.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?l?(c=Io,i.appearStatus=$o):c=Jo:r.unmountOnExit||r.mountOnEnter?c=In:c=Io,i.state={status:c},i.nextCallback=null,i}o.getDerivedStateFromProps=function(a,i){var s=a.in;return s&&i.status===In?{status:Io}:null};var n=o.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==$o&&s!==Jo&&(i=$o):(s===$o||s===Jo)&&(i=Ga)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,s,l;return i=s=l=a,a!=null&&typeof a!="number"&&(i=a.exit,s=a.enter,l=a.appear!==void 0?a.appear:s),{exit:i,enter:s,appear:l}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===$o){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:kn.findDOMNode(this);s&&jf(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Io&&this.setState({status:In})},n.performEnter=function(a){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:a,c=this.props.nodeRef?[l]:[kn.findDOMNode(this),l],d=c[0],p=c[1],g=this.getTimeouts(),b=l?g.appear:g.enter;if(!a&&!s||Bs.disabled){this.safeSetState({status:Jo},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:$o},function(){i.props.onEntering(d,p),i.onTransitionEnd(b,function(){i.safeSetState({status:Jo},function(){i.props.onEntered(d,p)})})})},n.performExit=function(){var a=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:kn.findDOMNode(this);if(!i||Bs.disabled){this.safeSetState({status:Io},function(){a.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ga},function(){a.props.onExiting(l),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:Io},function(){a.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,a(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:kn.findDOMNode(this),l=a==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],p=c[1];this.props.addEndListener(d,p)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===In)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=sc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Re.createElement(Tr.Provider,{value:null},typeof s=="function"?s(a,l):Re.cloneElement(Re.Children.only(s),l))},o})(Re.Component);Kt.contextType=Tr;Kt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:t.shape({current:typeof Element>"u"?t.any:function(e,o,n,r,a,i){var s=e[o];return t.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,o,n,r,a,i)}}),children:t.oneOfType([t.func.isRequired,t.element.isRequired]).isRequired,in:t.bool,mountOnEnter:t.bool,unmountOnExit:t.bool,appear:t.bool,enter:t.bool,exit:t.bool,timeout:function(o){var n=$f;o.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[o].concat(a))},addEndListener:t.func,onEnter:t.func,onEntering:t.func,onEntered:t.func,onExit:t.func,onExiting:t.func,onExited:t.func}:{};function Xo(){}Kt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xo,onEntering:Xo,onEntered:Xo,onExit:Xo,onExiting:Xo,onExited:Xo};Kt.UNMOUNTED=In;Kt.EXITED=Io;Kt.ENTERING=$o;Kt.ENTERED=Jo;Kt.EXITING=Ga;function Mf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bi(e,o){var n=function(i){return o&&Re.isValidElement(i)?o(i):i},r=Object.create(null);return e&&Re.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function Nf(e,o){e=e||{},o=o||{};function n(p){return p in o?o[p]:e[p]}var r=Object.create(null),a=[];for(var i in e)i in o?a.length&&(r[i]=a,a=[]):a.push(i);var s,l={};for(var c in o){if(r[c])for(s=0;s<r[c].length;s++){var d=r[c][s];l[r[c][s]]=n(d)}l[c]=n(c)}for(s=0;s<a.length;s++)l[a[s]]=n(a[s]);return l}function No(e,o,n){return n[o]!=null?n[o]:e.props[o]}function Af(e,o){return bi(e.children,function(n){return Re.cloneElement(n,{onExited:o.bind(null,n),in:!0,appear:No(n,"appear",e),enter:No(n,"enter",e),exit:No(n,"exit",e)})})}function Lf(e,o,n){var r=bi(e.children),a=Nf(o,r);return Object.keys(a).forEach(function(i){var s=a[i];if(Re.isValidElement(s)){var l=i in o,c=i in r,d=o[i],p=Re.isValidElement(d)&&!d.props.in;c&&(!l||p)?a[i]=Re.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:No(s,"exit",e),enter:No(s,"enter",e)}):!c&&l&&!p?a[i]=Re.cloneElement(s,{in:!1}):c&&l&&Re.isValidElement(d)&&(a[i]=Re.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:No(s,"exit",e),enter:No(s,"enter",e)}))}}),a}var Bf=Object.values||function(e){return Object.keys(e).map(function(o){return e[o]})},Df={component:"div",childFactory:function(o){return o}},yi=(function(e){lc(o,e);function o(r,a){var i;i=e.call(this,r,a)||this;var s=i.handleExited.bind(Mf(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=o.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(a,i){var s=i.children,l=i.handleExited,c=i.firstRender;return{children:c?Af(a,l):Lf(a,s,l),firstRender:!1}},n.handleExited=function(a,i){var s=bi(this.props.children);a.key in s||(a.props.onExited&&a.props.onExited(i),this.mounted&&this.setState(function(l){var c=Ha({},l.children);return delete c[a.key],{children:c}}))},n.render=function(){var a=this.props,i=a.component,s=a.childFactory,l=sc(a,["component","childFactory"]),c=this.state.contextValue,d=Bf(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,i===null?Re.createElement(Tr.Provider,{value:c},d):Re.createElement(Tr.Provider,{value:c},Re.createElement(i,l,d))},o})(Re.Component);yi.propTypes=process.env.NODE_ENV!=="production"?{component:t.any,children:t.node,appear:t.bool,enter:t.bool,exit:t.bool,childFactory:t.func}:{};yi.defaultProps=Df;const zf=[];function Ff(e){w.useEffect(e,zf)}class Yr{static create(){return new Yr}currentId=null;start(o,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},o)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function vo(){const e=ic(Yr.create).current;return Ff(e.disposeEffect),e}function cc(e){const{className:o,classes:n,pulsate:r=!1,rippleX:a,rippleY:i,rippleSize:s,in:l,onExited:c,timeout:d}=e,[p,g]=w.useState(!1),b=re(o,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+i,left:-(s/2)+a},h=re(n.child,p&&n.childLeaving,r&&n.childPulsate);return!l&&!p&&g(!0),w.useEffect(()=>{if(!l&&c!=null){const f=setTimeout(c,d);return()=>{clearTimeout(f)}}},[c,l,d]),u.jsx("span",{className:b,style:v,children:u.jsx("span",{className:h})})}process.env.NODE_ENV!=="production"&&(cc.propTypes={classes:t.object.isRequired,className:t.string,in:t.bool,onExited:t.func,pulsate:t.bool,rippleSize:t.number,rippleX:t.number,rippleY:t.number,timeout:t.number.isRequired});const Dt=Ce("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ka=550,Vf=80,_f=le.keyframes`
|
|
38
38
|
0% {
|
|
39
39
|
transform: scale(0);
|
|
40
40
|
opacity: 0.1;
|
|
@@ -44,7 +44,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
44
44
|
transform: scale(1);
|
|
45
45
|
opacity: 0.3;
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
47
|
+
`,Wf=le.keyframes`
|
|
48
48
|
0% {
|
|
49
49
|
opacity: 1;
|
|
50
50
|
}
|
|
@@ -52,7 +52,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
52
52
|
100% {
|
|
53
53
|
opacity: 0;
|
|
54
54
|
}
|
|
55
|
-
`,
|
|
55
|
+
`,Uf=le.keyframes`
|
|
56
56
|
0% {
|
|
57
57
|
transform: scale(1);
|
|
58
58
|
}
|
|
@@ -64,23 +64,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
64
64
|
100% {
|
|
65
65
|
transform: scale(1);
|
|
66
66
|
}
|
|
67
|
-
`,
|
|
67
|
+
`,Hf=D("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),qf=D(cc,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
68
68
|
opacity: 0;
|
|
69
69
|
position: absolute;
|
|
70
70
|
|
|
71
|
-
&.${
|
|
71
|
+
&.${Dt.rippleVisible} {
|
|
72
72
|
opacity: 0.3;
|
|
73
73
|
transform: scale(1);
|
|
74
|
-
animation-name: ${
|
|
75
|
-
animation-duration: ${
|
|
74
|
+
animation-name: ${_f};
|
|
75
|
+
animation-duration: ${Ka}ms;
|
|
76
76
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
&.${
|
|
79
|
+
&.${Dt.ripplePulsate} {
|
|
80
80
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
& .${
|
|
83
|
+
& .${Dt.child} {
|
|
84
84
|
opacity: 1;
|
|
85
85
|
display: block;
|
|
86
86
|
width: 100%;
|
|
@@ -89,25 +89,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
89
89
|
background-color: currentColor;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
& .${
|
|
92
|
+
& .${Dt.childLeaving} {
|
|
93
93
|
opacity: 0;
|
|
94
|
-
animation-name: ${
|
|
95
|
-
animation-duration: ${
|
|
94
|
+
animation-name: ${Wf};
|
|
95
|
+
animation-duration: ${Ka}ms;
|
|
96
96
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
& .${
|
|
99
|
+
& .${Dt.childPulsate} {
|
|
100
100
|
position: absolute;
|
|
101
101
|
/* @noflip */
|
|
102
102
|
left: 0px;
|
|
103
103
|
top: 0;
|
|
104
|
-
animation-name: ${
|
|
104
|
+
animation-name: ${Uf};
|
|
105
105
|
animation-duration: 2500ms;
|
|
106
106
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
107
107
|
animation-iteration-count: infinite;
|
|
108
108
|
animation-delay: 200ms;
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
110
|
+
`,dc=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiTouchRipple"}),{center:a=!1,classes:i={},className:s,...l}=r,[c,d]=w.useState([]),p=w.useRef(0),g=w.useRef(null);w.useEffect(()=>{g.current&&(g.current(),g.current=null)},[c]);const b=w.useRef(!1),v=vo(),h=w.useRef(null),f=w.useRef(null),y=w.useCallback(x=>{const{pulsate:T,rippleX:E,rippleY:j,rippleSize:R,cb:I}=x;d(N=>[...N,u.jsx(qf,{classes:{ripple:re(i.ripple,Dt.ripple),rippleVisible:re(i.rippleVisible,Dt.rippleVisible),ripplePulsate:re(i.ripplePulsate,Dt.ripplePulsate),child:re(i.child,Dt.child),childLeaving:re(i.childLeaving,Dt.childLeaving),childPulsate:re(i.childPulsate,Dt.childPulsate)},timeout:Ka,pulsate:T,rippleX:E,rippleY:j,rippleSize:R},p.current)]),p.current+=1,g.current=I},[i]),C=w.useCallback((x={},T={},E=()=>{})=>{const{pulsate:j=!1,center:R=a||T.pulsate,fakeElement:I=!1}=T;if(x?.type==="mousedown"&&b.current){b.current=!1;return}x?.type==="touchstart"&&(b.current=!0);const N=I?null:f.current,A=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0};let m,$,P;if(R||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)m=Math.round(A.width/2),$=Math.round(A.height/2);else{const{clientX:M,clientY:k}=x.touches&&x.touches.length>0?x.touches[0]:x;m=Math.round(M-A.left),$=Math.round(k-A.top)}if(R)P=Math.sqrt((2*A.width**2+A.height**2)/3),P%2===0&&(P+=1);else{const M=Math.max(Math.abs((N?N.clientWidth:0)-m),m)*2+2,k=Math.max(Math.abs((N?N.clientHeight:0)-$),$)*2+2;P=Math.sqrt(M**2+k**2)}x?.touches?h.current===null&&(h.current=()=>{y({pulsate:j,rippleX:m,rippleY:$,rippleSize:P,cb:E})},v.start(Vf,()=>{h.current&&(h.current(),h.current=null)})):y({pulsate:j,rippleX:m,rippleY:$,rippleSize:P,cb:E})},[a,y,v]),O=w.useCallback(()=>{C({},{pulsate:!0})},[C]),S=w.useCallback((x,T)=>{if(v.clear(),x?.type==="touchend"&&h.current){h.current(),h.current=null,v.start(0,()=>{S(x,T)});return}h.current=null,d(E=>E.length>0?E.slice(1):E),g.current=T},[v]);return w.useImperativeHandle(n,()=>({pulsate:O,start:C,stop:S}),[O,C,S]),u.jsx(Hf,{className:re(Dt.root,i.root,s),ref:f,...l,children:u.jsx(yi,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(dc.propTypes={center:t.bool,classes:t.object,className:t.string});function Gf(e){return xe("MuiButtonBase",e)}const Kf=Ce("MuiButtonBase",["root","disabled","focusVisible"]),Yf=e=>{const{disabled:o,focusVisible:n,focusVisibleClassName:r,classes:a}=e,s=we({root:["root",o&&"disabled",n&&"focusVisible"]},Gf,a);return n&&r&&(s.root+=` ${r}`),s},Xf=D("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Kf.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lo=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiButtonBase"}),{action:a,centerRipple:i=!1,children:s,className:l,component:c="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:g=!1,focusRipple:b=!1,focusVisibleClassName:v,LinkComponent:h="a",onBlur:f,onClick:y,onContextMenu:C,onDragLeave:O,onFocus:S,onFocusVisible:x,onKeyDown:T,onKeyUp:E,onMouseDown:j,onMouseLeave:R,onMouseUp:I,onTouchEnd:N,onTouchMove:A,onTouchStart:m,tabIndex:$=0,TouchRippleProps:P,touchRippleRef:M,type:k,...z}=r,V=w.useRef(null),W=Rf(),B=ot(W.ref,M),[L,Y]=w.useState(!1);d&&L&&Y(!1),w.useImperativeHandle(a,()=>({focusVisible:()=>{Y(!0),V.current.focus()}}),[]);const Z=W.shouldMount&&!p&&!d;w.useEffect(()=>{L&&b&&!p&&W.pulsate()},[p,b,L,W]);const oe=ao(W,"start",j,g),K=ao(W,"stop",C,g),U=ao(W,"stop",O,g),ae=ao(W,"stop",I,g),ce=ao(W,"stop",ne=>{L&&ne.preventDefault(),R&&R(ne)},g),J=ao(W,"start",m,g),X=ao(W,"stop",N,g),de=ao(W,"stop",A,g),_=ao(W,"stop",ne=>{So(ne.target)||Y(!1),f&&f(ne)},!1),se=bt(ne=>{V.current||(V.current=ne.currentTarget),So(ne.target)&&(Y(!0),x&&x(ne)),S&&S(ne)}),ie=()=>{const ne=V.current;return c&&c!=="button"&&!(ne.tagName==="A"&&ne.href)},pe=bt(ne=>{b&&!ne.repeat&&L&&ne.key===" "&&W.stop(ne,()=>{W.start(ne)}),ne.target===ne.currentTarget&&ie()&&ne.key===" "&&ne.preventDefault(),T&&T(ne),ne.target===ne.currentTarget&&ie()&&ne.key==="Enter"&&!d&&(ne.preventDefault(),y&&y(ne))}),ke=bt(ne=>{b&&ne.key===" "&&L&&!ne.defaultPrevented&&W.stop(ne,()=>{W.pulsate(ne)}),E&&E(ne),y&&ne.target===ne.currentTarget&&ie()&&ne.key===" "&&!ne.defaultPrevented&&y(ne)});let Ee=c;Ee==="button"&&(z.href||z.to)&&(Ee=h);const ee={};if(Ee==="button"){const ne=!!z.formAction;ee.type=k===void 0&&!ne?"button":k,ee.disabled=d}else!z.href&&!z.to&&(ee.role="button"),d&&(ee["aria-disabled"]=d);const De=ot(n,V),Se={...r,centerRipple:i,component:c,disabled:d,disableRipple:p,disableTouchRipple:g,focusRipple:b,tabIndex:$,focusVisible:L},he=Yf(Se);return u.jsxs(Xf,{as:Ee,className:re(he.root,l),ownerState:Se,onBlur:_,onClick:y,onContextMenu:K,onFocus:se,onKeyDown:pe,onKeyUp:ke,onMouseDown:oe,onMouseLeave:ce,onMouseUp:ae,onDragLeave:U,onTouchEnd:X,onTouchMove:de,onTouchStart:J,ref:De,tabIndex:d?-1:$,type:k,...ee,...z,children:[s,Z?u.jsx(dc,{ref:B,center:i,...P}):null]})});function ao(e,o,n,r=!1){return bt(a=>(n&&n(a),r||e[o](a),!0))}process.env.NODE_ENV!=="production"&&(lo.propTypes={action:Pt,centerRipple:t.bool,children:t.node,classes:t.object,className:t.string,component:Yn,disabled:t.bool,disableRipple:t.bool,disableTouchRipple:t.bool,focusRipple:t.bool,focusVisibleClassName:t.string,formAction:t.oneOfType([t.func,t.string]),href:t.any,LinkComponent:t.elementType,onBlur:t.func,onClick:t.func,onContextMenu:t.func,onDragLeave:t.func,onFocus:t.func,onFocusVisible:t.func,onKeyDown:t.func,onKeyUp:t.func,onMouseDown:t.func,onMouseLeave:t.func,onMouseUp:t.func,onTouchEnd:t.func,onTouchMove:t.func,onTouchStart:t.func,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),tabIndex:t.number,TouchRippleProps:t.object,touchRippleRef:t.oneOfType([t.func,t.shape({current:t.shape({pulsate:t.func.isRequired,start:t.func.isRequired,stop:t.func.isRequired})})]),type:t.oneOfType([t.oneOf(["button","reset","submit"]),t.string])});function Zf(e){return typeof e.main=="string"}function Jf(e,o=[]){if(!Zf(e))return!1;for(const n of o)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function qe(e=[]){return([,o])=>o&&Jf(o,e)}function Qf(e){return xe("MuiCircularProgress",e)}Ce("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Gt=44,Ya=le.keyframes`
|
|
111
111
|
0% {
|
|
112
112
|
transform: rotate(0deg);
|
|
113
113
|
}
|
|
@@ -115,7 +115,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
115
115
|
100% {
|
|
116
116
|
transform: rotate(360deg);
|
|
117
117
|
}
|
|
118
|
-
`,
|
|
118
|
+
`,Xa=le.keyframes`
|
|
119
119
|
0% {
|
|
120
120
|
stroke-dasharray: 1px, 200px;
|
|
121
121
|
stroke-dashoffset: 0;
|
|
@@ -130,14 +130,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
130
130
|
stroke-dasharray: 1px, 200px;
|
|
131
131
|
stroke-dashoffset: -126px;
|
|
132
132
|
}
|
|
133
|
-
`,
|
|
134
|
-
animation: ${
|
|
135
|
-
`:null,
|
|
136
|
-
animation: ${
|
|
137
|
-
`:null,Rh=e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,i={root:["root",n,`color${V(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${V(n)}`,a&&"circleDisableShrink"]};return he(i,Eh,t)},$h=D("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${V(n.color)}`]]}})(pe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:kh||{animation:`${Li} 1.4s linear infinite`}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Ih=D("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),jh=D("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${V(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(pe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Ph||{animation:`${Di} 1.4s ease-in-out infinite`}}]}))),Mh=D("circle",{name:"MuiCircularProgress",slot:"Track"})(pe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),No=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:s=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:f=0,variant:y="indeterminate",...x}=r,h={...r,color:i,disableShrink:s,size:c,thickness:d,value:f,variant:y,enableTrackSlot:l},p=Rh(h),b={},v={},O={};if(y==="determinate"){const T=2*Math.PI*((to-d)/2);b.strokeDasharray=T.toFixed(3),O["aria-valuenow"]=Math.round(f),b.strokeDashoffset=`${((100-f)/100*T).toFixed(3)}px`,v.transform="rotate(-90deg)"}return m.jsx($h,{className:Q(p.root,a),style:{width:c,height:c,...v,...u},ownerState:h,ref:n,role:"progressbar",...O,...x,children:m.jsxs(Ih,{className:p.svg,ownerState:h,viewBox:`${to/2} ${to/2} ${to} ${to}`,children:[l?m.jsx(Mh,{className:p.track,ownerState:h,cx:to,cy:to,r:(to-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,m.jsx(jh,{className:p.circle,style:b,ownerState:h,cx:to,cy:to,r:(to-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(No.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:Tt(o.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function Nh(e){return ge("MuiButton",e)}const Wo=be("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),gs=w.createContext({});process.env.NODE_ENV!=="production"&&(gs.displayName="ButtonGroupContext");const hs=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(hs.displayName="ButtonGroupButtonContext");const Ah=e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:i,loading:s,loadingPosition:l,classes:c}=e,u={root:["root",s&&"loading",i,`${i}${V(t)}`,`size${V(a)}`,`${i}Size${V(a)}`,`color${V(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${V(l)}`],startIcon:["icon","startIcon",`iconSize${V(a)}`],endIcon:["icon","endIcon",`iconSize${V(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=he(u,Nh,c);return{...c,...d}},Au=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Lh=D(To,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${V(n.color)}`],t[`size${V(n.size)}`],t[`${n.variant}Size${V(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(pe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Wo.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Wo.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Wo.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Wo.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(qe()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Wo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Wo.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Wo.loading}`]:{color:"transparent"}}}]}})),Dh=D("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${V(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Au]})),Bh=D("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${V(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Au]})),Fh=D("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ql=D("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),bs=w.forwardRef(function(t,n){const r=w.useContext(gs),a=w.useContext(hs),i=tr(r,t),s=we({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:f=!1,disableElevation:y=!1,disableFocusRipple:x=!1,endIcon:h,focusVisibleClassName:p,fullWidth:b=!1,id:v,loading:O=null,loadingIndicator:T,loadingPosition:C="center",size:S="medium",startIcon:E,type:P,variant:$="text",...I}=s,N=vo(v),A=T??m.jsx(No,{"aria-labelledby":N,color:"inherit",size:16}),g={...s,color:c,component:u,disabled:f,disableElevation:y,disableFocusRipple:x,fullWidth:b,loading:O,loadingIndicator:A,loadingPosition:C,size:S,type:P,variant:$},j=Ah(g),R=(E||O&&C==="start")&&m.jsx(Dh,{className:j.startIcon,ownerState:g,children:E||m.jsx(ql,{className:j.loadingIconPlaceholder,ownerState:g})}),M=(h||O&&C==="end")&&m.jsx(Bh,{className:j.endIcon,ownerState:g,children:h||m.jsx(ql,{className:j.loadingIconPlaceholder,ownerState:g})}),k=a||"",z=typeof O=="boolean"?m.jsx("span",{className:j.loadingWrapper,style:{display:"contents"},children:O&&m.jsx(Fh,{className:j.loadingIndicator,ownerState:g,children:A})}):null;return m.jsxs(Lh,{ownerState:g,className:Q(r.className,j.root,d,k),component:u,disabled:f||O,focusRipple:!x,focusVisibleClassName:Q(j.focusVisible,p),ref:n,type:P,id:O?N:v,...I,classes:j,children:[R,C!=="end"&&z,l,C==="end"&&z,M]})});process.env.NODE_ENV!=="production"&&(bs.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function zh(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Vh(e){return parseFloat(e)}const _h=lt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),Wh=lt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),Gl=Bt`
|
|
133
|
+
`,em=typeof Ya!="string"?le.css`
|
|
134
|
+
animation: ${Ya} 1.4s linear infinite;
|
|
135
|
+
`:null,tm=typeof Xa!="string"?le.css`
|
|
136
|
+
animation: ${Xa} 1.4s ease-in-out infinite;
|
|
137
|
+
`:null,om=e=>{const{classes:o,variant:n,color:r,disableShrink:a}=e,i={root:["root",n,`color${F(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${F(n)}`,a&&"circleDisableShrink"]};return we(i,Qf,o)},nm=D("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[n.variant],o[`color${F(n.color)}`]]}})(me(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:em||{animation:`${Ya} 1.4s linear infinite`}},...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{color:(e.vars||e).palette[o].main}}))]}))),rm=D("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),am=D("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.circle,o[`circle${F(n.variant)}`],n.disableShrink&&o.circleDisableShrink]}})(me(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:o})=>o.variant==="indeterminate"&&!o.disableShrink,style:tm||{animation:`${Xa} 1.4s ease-in-out infinite`}}]}))),im=D("circle",{name:"MuiCircularProgress",slot:"Track"})(me(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),xo=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:s=!1,enableTrackSlot:l=!1,size:c=40,style:d,thickness:p=3.6,value:g=0,variant:b="indeterminate",...v}=r,h={...r,color:i,disableShrink:s,size:c,thickness:p,value:g,variant:b,enableTrackSlot:l},f=om(h),y={},C={},O={};if(b==="determinate"){const S=2*Math.PI*((Gt-p)/2);y.strokeDasharray=S.toFixed(3),O["aria-valuenow"]=Math.round(g),y.strokeDashoffset=`${((100-g)/100*S).toFixed(3)}px`,C.transform="rotate(-90deg)"}return u.jsx(nm,{className:re(f.root,a),style:{width:c,height:c,...C,...d},ownerState:h,ref:n,role:"progressbar",...O,...v,children:u.jsxs(rm,{className:f.svg,ownerState:h,viewBox:`${Gt/2} ${Gt/2} ${Gt} ${Gt}`,children:[l?u.jsx(im,{className:f.track,ownerState:h,cx:Gt,cy:Gt,r:(Gt-p)/2,fill:"none",strokeWidth:p,"aria-hidden":"true"}):null,u.jsx(am,{className:f.circle,style:y,ownerState:h,cx:Gt,cy:Gt,r:(Gt-p)/2,fill:"none",strokeWidth:p})]})})});process.env.NODE_ENV!=="production"&&(xo.propTypes={classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","primary","secondary","error","info","success","warning"]),t.string]),disableShrink:xt(t.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:t.bool,size:t.oneOfType([t.number,t.string]),style:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),thickness:t.number,value:t.number,variant:t.oneOf(["determinate","indeterminate"])});function sm(e){return xe("MuiButton",e)}const Ro=Ce("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),vi=w.createContext({});process.env.NODE_ENV!=="production"&&(vi.displayName="ButtonGroupContext");const xi=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(xi.displayName="ButtonGroupButtonContext");const lm=e=>{const{color:o,disableElevation:n,fullWidth:r,size:a,variant:i,loading:s,loadingPosition:l,classes:c}=e,d={root:["root",s&&"loading",i,`${i}${F(o)}`,`size${F(a)}`,`${i}Size${F(a)}`,`color${F(o)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${F(l)}`],startIcon:["icon","startIcon",`iconSize${F(a)}`],endIcon:["icon","endIcon",`iconSize${F(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=we(d,sm,c);return{...c,...p}},pc=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],cm=D(lo,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[n.variant],o[`${n.variant}${F(n.color)}`],o[`size${F(n.size)}`],o[`${n.variant}Size${F(n.size)}`],n.color==="inherit"&&o.colorInherit,n.disableElevation&&o.disableElevation,n.fullWidth&&o.fullWidth,n.loading&&o.loading]}})(me(({theme:e})=>{const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ro.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Ro.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ro.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ro.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(qe()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:o,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ro.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ro.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Ro.loading}`]:{color:"transparent"}}}]}})),dm=D("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.startIcon,n.loading&&o.startIconLoadingStart,o[`iconSize${F(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...pc]})),pm=D("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.endIcon,n.loading&&o.endIconLoadingEnd,o[`iconSize${F(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...pc]})),um=D("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Ds=D("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Ci=w.forwardRef(function(o,n){const r=w.useContext(vi),a=w.useContext(xi),i=yr(r,o),s=Te({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:d="button",className:p,disabled:g=!1,disableElevation:b=!1,disableFocusRipple:v=!1,endIcon:h,focusVisibleClassName:f,fullWidth:y=!1,id:C,loading:O=null,loadingIndicator:S,loadingPosition:x="center",size:T="medium",startIcon:E,type:j,variant:R="text",...I}=s,N=uo(C),A=S??u.jsx(xo,{"aria-labelledby":N,color:"inherit",size:16}),m={...s,color:c,component:d,disabled:g,disableElevation:b,disableFocusRipple:v,fullWidth:y,loading:O,loadingIndicator:A,loadingPosition:x,size:T,type:j,variant:R},$=lm(m),P=(E||O&&x==="start")&&u.jsx(dm,{className:$.startIcon,ownerState:m,children:E||u.jsx(Ds,{className:$.loadingIconPlaceholder,ownerState:m})}),M=(h||O&&x==="end")&&u.jsx(pm,{className:$.endIcon,ownerState:m,children:h||u.jsx(Ds,{className:$.loadingIconPlaceholder,ownerState:m})}),k=a||"",z=typeof O=="boolean"?u.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:O&&u.jsx(um,{className:$.loadingIndicator,ownerState:m,children:A})}):null;return u.jsxs(cm,{ownerState:m,className:re(r.className,$.root,p,k),component:d,disabled:g||O,focusRipple:!v,focusVisibleClassName:re($.focusVisible,f),ref:n,type:j,id:O?N:C,...I,classes:$,children:[P,x!=="end"&&z,l,x==="end"&&z,M]})});process.env.NODE_ENV!=="production"&&(Ci.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","primary","secondary","success","error","info","warning"]),t.string]),component:t.elementType,disabled:t.bool,disableElevation:t.bool,disableFocusRipple:t.bool,disableRipple:t.bool,endIcon:t.node,focusVisibleClassName:t.string,fullWidth:t.bool,href:t.string,id:t.string,loading:t.bool,loadingIndicator:t.node,loadingPosition:t.oneOf(["center","end","start"]),size:t.oneOfType([t.oneOf(["small","medium","large"]),t.string]),startIcon:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.oneOfType([t.oneOf(["button","reset","submit"]),t.string]),variant:t.oneOfType([t.oneOf(["contained","outlined","text"]),t.string])});function fm(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function mm(e){return parseFloat(e)}const gm=st(u.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),hm=st(u.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),zs=le.keyframes`
|
|
138
138
|
from { transform: scale(0); opacity: 0; }
|
|
139
139
|
to { transform: scale(1); opacity: 1; }
|
|
140
|
-
`,Uh=D("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),ys=Re.forwardRef(({variante:e="primario",tamano:t="md",forma:n="cuadrado",estado:r="inactivo",cargando:a=!1,disabled:i=!1,iconoIzquierda:s,iconoDerecha:l,soloIcono:c=!1,texto:u,textoCargando:d,textoExito:f,textoError:y,children:x,startIcon:h,endIcon:p,sx:b,color:v,alHacerClick:O,...T},C)=>{const S=xt(),E=a?"cargando":r,P=E==="cargando",$=E==="exito",I=E==="error",N=E==="inactivo"&&!i,A=k=>["contorno","secundario"].includes(k)?"outlined":["fantasma","enlace"].includes(k)?"text":"contained",g=k=>k==="xs"?"small":k==="xl"?"large":k==="md"?"medium":k==="sm"?"small":k==="lg"?"large":"medium",j=(k,z)=>{if(z)switch(z){case"primario":return"primary";case"secundario":return"secondary";case"exito":return"success";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"oscuro":return"inherit";default:return z}switch(k){case"primario":return"primary";case"secundario":return"secondary";case"peligro":return"error";case"exito":return"success";case"advertencia":return"warning";case"info":return"info";case"oscuro":return"inherit";case"contorno":return"primary";case"fantasma":return"inherit";default:return"primary"}},R=()=>{const k={textTransform:"none",fontWeight:600,letterSpacing:"0.01em",boxShadow:"none",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:n==="pildora"?"9999px":n==="circulo"?"50%":"10px",...c&&{minWidth:"auto",width:g(t)==="small"?32:g(t)==="large"?48:40,height:g(t)==="small"?32:g(t)==="large"?48:40,padding:0,borderRadius:n==="cuadrado"?"10px":"50%"},"&:hover":{transform:N?"translateY(-1px)":"none",boxShadow:N&&e!=="fantasma"&&e!=="enlace"?"0 4px 12px rgba(0,0,0,0.1)":"none"},"&:active":{transform:N?"scale(0.98)":"none"}};if(t==="xs"?(k.padding=c?0:"2px 8px",k.fontSize="0.75rem",k.minWidth=c?24:"auto",c&&(k.height=24,k.width=24)):t==="xl"&&(k.padding=c?0:"12px 28px",k.fontSize="1.125rem",c&&(k.height=56,k.width=56)),$&&(k.backgroundColor=S.palette.success.main,k.color=S.palette.success.contrastText,k["&:hover"]={backgroundColor:S.palette.success.dark}),I&&(k.backgroundColor=S.palette.error.main,k.color=S.palette.error.contrastText,k["&:hover"]={backgroundColor:S.palette.error.dark}),e==="suave"&&!$&&!I){const z=j("primario",v)||"primary";let F=S.palette.primary.main;z==="error"?F=S.palette.error.main:z==="success"?F=S.palette.success.main:z==="warning"?F=S.palette.warning.main:z==="info"?F=S.palette.info.main:z==="secondary"&&(F=S.palette.secondary.main),k.backgroundColor=ve(F,.1),k.color=F,k.boxShadow="none",k["&:hover"]={...k["&:hover"],backgroundColor:ve(F,.2),boxShadow:"none"}}return e==="fantasma"&&(k.backgroundColor="transparent",k["&:hover"].backgroundColor=ve(S.palette.action.active,.08)),e==="enlace"&&(k.padding=0,k.minWidth="auto",k.borderRadius=0,k.verticalAlign="baseline",k["&:hover"]={textDecoration:"underline",backgroundColor:"transparent",transform:"none",boxShadow:"none"},k["&:active"]={transform:"none"}),e==="oscuro"&&!$&&!I&&(k.backgroundColor="#1f2937",k.color="#ffffff",k["&:hover"]={...k["&:hover"],backgroundColor:"#111827"}),e==="claro"&&!$&&!I&&(k.backgroundColor="#f3f4f6",k.color="#1f2937",k["&:hover"]={...k["&:hover"],backgroundColor:"#e5e7eb"}),k},M=()=>{const k=x||u;return P?m.jsxs(Re.Fragment,{children:[m.jsx(No,{size:20,color:"inherit",sx:{mr:d?1:0}}),d||k]}):$?m.jsxs(Re.Fragment,{children:[m.jsx(_h,{sx:{mr:f?1:0,animation:`${Gl} 0.3s ease-out`}}),f||"¡Éxito!"]}):I?m.jsxs(Re.Fragment,{children:[m.jsx(Wh,{sx:{mr:y?1:0,animation:`${Gl} 0.3s ease-out`}}),y||"Error"]}):m.jsxs(Re.Fragment,{children:[s&&m.jsx("span",{style:{marginRight:k?8:0,display:"flex"},children:s}),k,l&&m.jsx("span",{style:{marginLeft:k?8:0,display:"flex"},children:l})]})};return m.jsx(bs,{ref:C,variant:A(e),color:j(e,v),size:g(t),disabled:i||P,onClick:O,disableElevation:!0,startIcon:void 0,endIcon:void 0,sx:{...R(),...b},...T,children:M()})});ys.displayName="CodeplexBoton";const Hh=ys;function vs(e){const t=w.useRef({});return w.useEffect(()=>{t.current=e}),t.current}function qh(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:a=!1}=e,i=vs({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!a&&(s=!0);const{badgeContent:l,max:c=r}=s?i:e,u=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:s,max:c,displayValue:u}}function Gh(e){return ge("MuiBadge",e)}const $o=be("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);function fo(e){return typeof e=="string"}function Lu(e,t,n){return e===void 0||fo(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Du(e,t,n){return typeof e=="function"?e(t,n):e}function Yo(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Kl(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Bu(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:i}=e;if(!t){const x=Q(n?.className,i,a?.className,r?.className),h={...n?.style,...a?.style,...r?.style},p={...n,...a,...r};return x.length>0&&(p.className=x),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:void 0}}const s=Yo({...a,...r}),l=Kl(r),c=Kl(a),u=t(s),d=Q(u?.className,n?.className,i,a?.className,r?.className),f={...u?.style,...n?.style,...a?.style,...r?.style},y={...u,...n,...c,...l};return d.length>0&&(y.className=d),Object.keys(f).length>0&&(y.style=f),{props:y,internalRef:u.ref}}function me(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0},...y}=i,x=d[e]||r,h=Du(f[e],a),{props:{component:p,...b},internalRef:v}=Bu({className:n,...c,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:h}),O=nt(v,h?.ref,t.ref),T=e==="root"?p||u:p,C=Lu(x,{...e==="root"&&!u&&!d[e]&&s,...e!=="root"&&!d[e]&&s,...b,...T&&!l&&{as:T},...T&&l&&{component:T},ref:O},a);return[x,C]}const ui=10,di=4,Kh=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:a,variant:i,classes:s={}}=e,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${V(n.vertical)}${V(n.horizontal)}`,`anchorOrigin${V(n.vertical)}${V(n.horizontal)}${V(a)}`,`overlap${V(a)}`,t!=="default"&&`color${V(t)}`]};return he(l,Gh,s)},Yh=D("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Xh=D("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${V(n.anchorOrigin.vertical)}${V(n.anchorOrigin.horizontal)}${V(n.overlap)}`],n.color!=="default"&&t[`color${V(n.color)}`],n.invisible&&t.invisible]}})(pe(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:ui*2,lineHeight:1,padding:"0 6px",height:ui*2,borderRadius:ui,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(qe(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:di,height:di*2,minWidth:di*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function Yl(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const Pa=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiBadge"}),{anchorOrigin:a,className:i,classes:s,component:l,components:c={},componentsProps:u={},children:d,overlap:f="rectangular",color:y="default",invisible:x=!1,max:h=99,badgeContent:p,slots:b,slotProps:v,showZero:O=!1,variant:T="standard",...C}=r,{badgeContent:S,invisible:E,max:P,displayValue:$}=qh({max:h,invisible:x,badgeContent:p,showZero:O}),I=vs({anchorOrigin:Yl(a),color:y,overlap:f,variant:T,badgeContent:p}),N=E||S==null&&T!=="dot",{color:A=y,overlap:g=f,anchorOrigin:j,variant:R=T}=N?I:r,M=Yl(j),k=R!=="dot"?$:void 0,z={...r,badgeContent:S,invisible:N,max:P,displayValue:k,showZero:O,anchorOrigin:M,color:A,overlap:g,variant:R},F=Kh(z),_={slots:{root:b?.root??c.Root,badge:b?.badge??c.Badge},slotProps:{root:v?.root??u.root,badge:v?.badge??u.badge}},[B,L]=me("root",{elementType:Yh,externalForwardedProps:{..._,...C},ownerState:z,className:Q(F.root,i),ref:n,additionalProps:{as:l}}),[G,J]=me("badge",{elementType:Xh,externalForwardedProps:_,ownerState:z,className:F.badge});return m.jsxs(B,{...L,children:[d,m.jsx(G,{...J,children:k})]})});process.env.NODE_ENV!=="production"&&(Pa.propTypes={anchorOrigin:o.shape({horizontal:o.oneOf(["left","right"]),vertical:o.oneOf(["bottom","top"])}),badgeContent:o.node,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,components:o.shape({Badge:o.elementType,Root:o.elementType}),componentsProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),invisible:o.bool,max:o.number,overlap:o.oneOf(["circular","rectangular"]),showZero:o.bool,slotProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({badge:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["dot","standard"]),o.string])});const Jh=Bt`
|
|
140
|
+
`,bm=D("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),wi=Re.forwardRef(({variante:e="primario",tamano:o="md",forma:n="cuadrado",estado:r="inactivo",cargando:a=!1,disabled:i=!1,iconoIzquierda:s,iconoDerecha:l,soloIcono:c=!1,texto:d,textoCargando:p,textoExito:g,textoError:b,children:v,startIcon:h,endIcon:f,sx:y,color:C,alHacerClick:O,...S},x)=>{const T=jt(),E=a?"cargando":r,j=E==="cargando",R=E==="exito",I=E==="error",N=E==="inactivo"&&!i,A=k=>["contorno","secundario"].includes(k)?"outlined":["fantasma","enlace"].includes(k)?"text":"contained",m=k=>k==="xs"?"small":k==="xl"?"large":k==="md"?"medium":k==="sm"?"small":k==="lg"?"large":"medium",$=(k,z)=>{if(z)switch(z){case"primario":return"primary";case"secundario":return"secondary";case"exito":return"success";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"oscuro":return"inherit";default:return z}switch(k){case"primario":return"primary";case"secundario":return"secondary";case"peligro":return"error";case"exito":return"success";case"advertencia":return"warning";case"info":return"info";case"oscuro":return"inherit";case"contorno":return"primary";case"fantasma":return"inherit";default:return"primary"}},P=()=>{const k={textTransform:"none",fontWeight:600,letterSpacing:"0.01em",boxShadow:"none",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:n==="pildora"?"9999px":n==="circulo"?"50%":"10px",...c&&{minWidth:"auto",width:m(o)==="small"?32:m(o)==="large"?48:40,height:m(o)==="small"?32:m(o)==="large"?48:40,padding:0,borderRadius:n==="cuadrado"?"10px":"50%"},"&:hover":{transform:N?"translateY(-1px)":"none",boxShadow:N&&e!=="fantasma"&&e!=="enlace"?"0 4px 12px rgba(0,0,0,0.1)":"none"},"&:active":{transform:N?"scale(0.98)":"none"}};if(o==="xs"?(k.padding=c?0:"2px 8px",k.fontSize="0.75rem",k.minWidth=c?24:"auto",c&&(k.height=24,k.width=24)):o==="xl"&&(k.padding=c?0:"12px 28px",k.fontSize="1.125rem",c&&(k.height=56,k.width=56)),R&&(k.backgroundColor=T.palette.success.main,k.color=T.palette.success.contrastText,k["&:hover"]={backgroundColor:T.palette.success.dark}),I&&(k.backgroundColor=T.palette.error.main,k.color=T.palette.error.contrastText,k["&:hover"]={backgroundColor:T.palette.error.dark}),e==="suave"&&!R&&!I){const z=$("primario",C)||"primary";let V=T.palette.primary.main;z==="error"?V=T.palette.error.main:z==="success"?V=T.palette.success.main:z==="warning"?V=T.palette.warning.main:z==="info"?V=T.palette.info.main:z==="secondary"&&(V=T.palette.secondary.main),k.backgroundColor=le.alpha(V,.1),k.color=V,k.boxShadow="none",k["&:hover"]={...k["&:hover"],backgroundColor:le.alpha(V,.2),boxShadow:"none"}}return e==="fantasma"&&(k.backgroundColor="transparent",k["&:hover"].backgroundColor=le.alpha(T.palette.action.active,.08)),e==="enlace"&&(k.padding=0,k.minWidth="auto",k.borderRadius=0,k.verticalAlign="baseline",k["&:hover"]={textDecoration:"underline",backgroundColor:"transparent",transform:"none",boxShadow:"none"},k["&:active"]={transform:"none"}),e==="oscuro"&&!R&&!I&&(k.backgroundColor="#1f2937",k.color="#ffffff",k["&:hover"]={...k["&:hover"],backgroundColor:"#111827"}),e==="claro"&&!R&&!I&&(k.backgroundColor="#f3f4f6",k.color="#1f2937",k["&:hover"]={...k["&:hover"],backgroundColor:"#e5e7eb"}),k},M=()=>{const k=v||d;return j?u.jsxs(Re.Fragment,{children:[u.jsx(xo,{size:20,color:"inherit",sx:{mr:p?1:0}}),p||k]}):R?u.jsxs(Re.Fragment,{children:[u.jsx(gm,{sx:{mr:g?1:0,animation:`${zs} 0.3s ease-out`}}),g||"¡Éxito!"]}):I?u.jsxs(Re.Fragment,{children:[u.jsx(hm,{sx:{mr:b?1:0,animation:`${zs} 0.3s ease-out`}}),b||"Error"]}):u.jsxs(Re.Fragment,{children:[s&&u.jsx("span",{style:{marginRight:k?8:0,display:"flex"},children:s}),k,l&&u.jsx("span",{style:{marginLeft:k?8:0,display:"flex"},children:l})]})};return u.jsx(Ci,{ref:x,variant:A(e),color:$(e,C),size:m(o),disabled:i||j,onClick:O,disableElevation:!0,startIcon:void 0,endIcon:void 0,sx:{...P(),...y},...S,children:M()})});wi.displayName="CodeplexBoton";const ym=wi;function Si(e){const o=w.useRef({});return w.useEffect(()=>{o.current=e}),o.current}function vm(e){const{badgeContent:o,invisible:n=!1,max:r=99,showZero:a=!1}=e,i=Si({badgeContent:o,max:r});let s=n;n===!1&&o===0&&!a&&(s=!0);const{badgeContent:l,max:c=r}=s?i:e,d=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:s,max:c,displayValue:d}}function xm(e){return xe("MuiBadge",e)}const ho=Ce("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);function eo(e){return typeof e=="string"}function uc(e,o,n){return e===void 0||eo(e)?o:{...o,ownerState:{...o.ownerState,...n}}}function fc(e,o,n){return typeof e=="function"?e(o,n):e}function Lo(e,o=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!o.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Fs(e){if(e===void 0)return{};const o={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{o[n]=e[n]}),o}function mc(e){const{getSlotProps:o,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:i}=e;if(!o){const v=re(n?.className,i,a?.className,r?.className),h={...n?.style,...a?.style,...r?.style},f={...n,...a,...r};return v.length>0&&(f.className=v),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:void 0}}const s=Lo({...a,...r}),l=Fs(r),c=Fs(a),d=o(s),p=re(d?.className,n?.className,i,a?.className,r?.className),g={...d?.style,...n?.style,...a?.style,...r?.style},b={...d,...n,...c,...l};return p.length>0&&(b.className=p),Object.keys(g).length>0&&(b.style=g),{props:b,internalRef:d.ref}}function ge(e,o){const{className:n,elementType:r,ownerState:a,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...c}=o,{component:d,slots:p={[e]:void 0},slotProps:g={[e]:void 0},...b}=i,v=p[e]||r,h=fc(g[e],a),{props:{component:f,...y},internalRef:C}=mc({className:n,...c,externalForwardedProps:e==="root"?b:void 0,externalSlotProps:h}),O=ot(C,h?.ref,o.ref),S=e==="root"?f||d:f,x=uc(v,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,...y,...S&&!l&&{as:S},...S&&l&&{component:S},ref:O},a);return[v,x]}const Pa=10,Ra=4,Cm=e=>{const{color:o,anchorOrigin:n,invisible:r,overlap:a,variant:i,classes:s={}}=e,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${F(n.vertical)}${F(n.horizontal)}`,`anchorOrigin${F(n.vertical)}${F(n.horizontal)}${F(a)}`,`overlap${F(a)}`,o!=="default"&&`color${F(o)}`]};return we(l,xm,s)},wm=D("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Sm=D("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.badge,o[n.variant],o[`anchorOrigin${F(n.anchorOrigin.vertical)}${F(n.anchorOrigin.horizontal)}${F(n.overlap)}`],n.color!=="default"&&o[`color${F(n.color)}`],n.invisible&&o.invisible]}})(me(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Pa*2,lineHeight:1,padding:"0 6px",height:Pa*2,borderRadius:Pa,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(qe(["contrastText"])).map(([o])=>({props:{color:o},style:{backgroundColor:(e.vars||e).palette[o].main,color:(e.vars||e).palette[o].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Ra,height:Ra*2,minWidth:Ra*2,padding:0}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="top"&&o.anchorOrigin.horizontal==="right"&&o.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="bottom"&&o.anchorOrigin.horizontal==="right"&&o.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="top"&&o.anchorOrigin.horizontal==="left"&&o.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="bottom"&&o.anchorOrigin.horizontal==="left"&&o.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="top"&&o.anchorOrigin.horizontal==="right"&&o.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="bottom"&&o.anchorOrigin.horizontal==="right"&&o.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="top"&&o.anchorOrigin.horizontal==="left"&&o.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="bottom"&&o.anchorOrigin.horizontal==="left"&&o.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function Vs(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const Xr=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiBadge"}),{anchorOrigin:a,className:i,classes:s,component:l,components:c={},componentsProps:d={},children:p,overlap:g="rectangular",color:b="default",invisible:v=!1,max:h=99,badgeContent:f,slots:y,slotProps:C,showZero:O=!1,variant:S="standard",...x}=r,{badgeContent:T,invisible:E,max:j,displayValue:R}=vm({max:h,invisible:v,badgeContent:f,showZero:O}),I=Si({anchorOrigin:Vs(a),color:b,overlap:g,variant:S,badgeContent:f}),N=E||T==null&&S!=="dot",{color:A=b,overlap:m=g,anchorOrigin:$,variant:P=S}=N?I:r,M=Vs($),k=P!=="dot"?R:void 0,z={...r,badgeContent:T,invisible:N,max:j,displayValue:k,showZero:O,anchorOrigin:M,color:A,overlap:m,variant:P},V=Cm(z),W={slots:{root:y?.root??c.Root,badge:y?.badge??c.Badge},slotProps:{root:C?.root??d.root,badge:C?.badge??d.badge}},[B,L]=ge("root",{elementType:wm,externalForwardedProps:{...W,...x},ownerState:z,className:re(V.root,i),ref:n,additionalProps:{as:l}}),[Y,Z]=ge("badge",{elementType:Sm,externalForwardedProps:W,ownerState:z,className:V.badge});return u.jsxs(B,{...L,children:[p,u.jsx(Y,{...Z,children:k})]})});process.env.NODE_ENV!=="production"&&(Xr.propTypes={anchorOrigin:t.shape({horizontal:t.oneOf(["left","right"]),vertical:t.oneOf(["bottom","top"])}),badgeContent:t.node,children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["default","primary","secondary","error","info","success","warning"]),t.string]),component:t.elementType,components:t.shape({Badge:t.elementType,Root:t.elementType}),componentsProps:t.shape({badge:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),invisible:t.bool,max:t.number,overlap:t.oneOf(["circular","rectangular"]),showZero:t.bool,slotProps:t.shape({badge:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({badge:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOfType([t.oneOf(["dot","standard"]),t.string])});const Tm=le.keyframes`
|
|
141
141
|
0% {
|
|
142
142
|
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
|
|
143
143
|
transform: scale(1);
|
|
@@ -151,9 +151,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
151
151
|
100% {
|
|
152
152
|
transform: scale(1);
|
|
153
153
|
}
|
|
154
|
-
`,Zh=D(Pa,{shouldForwardProp:e=>e!=="animado"&&e!=="borde"})(({theme:e,animado:t,borde:n})=>({"& .MuiBadge-badge":{...n&&{boxShadow:`0 0 0 2px ${e.palette.background.paper}`},...t&&{animation:`${Jh} 1.5s infinite ease-in-out`}}})),Fu=({children:e,color:t="primario",contenido:n,variante:r="estandar",maximo:a=99,mostrarCero:i=!1,superposicion:s="rectangular",invisible:l=!1,posicionVertical:c="arriba",posicionHorizontal:u="derecha",animado:d=!1,borde:f=!1,...y})=>{const x=b=>{switch(b){case"primario":return"primary";case"secundario":return"secondary";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"exito":return"success";default:return"primary"}},h=b=>b==="punto"?"dot":"standard",p=()=>({vertical:c==="arriba"?"top":"bottom",horizontal:u==="derecha"?"right":"left"});return m.jsx(Zh,{color:x(t),badgeContent:n,variant:h(r),max:a,showZero:i,overlap:s,invisible:l,anchorOrigin:p(),animado:d,borde:f,...y,children:e})},Qh=Fu,eb=be("MuiBox",["root"]),tb=ku(),Ue=Nm({themeId:Ea,defaultTheme:tb,defaultClassName:eb.root,generateClassName:Gc.generate});process.env.NODE_ENV!=="production"&&(Ue.propTypes={children:o.node,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function ob(e){return ge("MuiTypography",e)}const Xr=be("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),nb={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},rb=Kg(),ab=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:i,classes:s}=e,l={root:["root",i,e.align!=="inherit"&&`align${V(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return he(l,ob,s)},ib=D("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${V(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(pe(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${V(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Xl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},at=w.forwardRef(function(t,n){const{color:r,...a}=we({props:t,name:"MuiTypography"}),i=!nb[r],s=rb({...a,...i&&{color:r}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:f=!1,paragraph:y=!1,variant:x="body1",variantMapping:h=Xl,...p}=s,b={...s,align:l,color:r,className:c,component:u,gutterBottom:d,noWrap:f,paragraph:y,variant:x,variantMapping:h},v=u||(y?"p":h[x]||Xl[x])||"span",O=ab(b);return m.jsx(ib,{as:v,ref:n,className:Q(O.root,c),...p,ownerState:b,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...p.style}})});process.env.NODE_ENV!=="production"&&(at.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});const zu=({tamano:e="md",color:t="primario",tipo:n="borde",etiqueta:r,posicionEtiqueta:a="derecha",pantallaCompleta:i=!1,className:s="",sx:l,...c})=>{const u=xt(),f=typeof e=="number"?e:{xs:16,sm:24,md:40,lg:56,xl:80}[e],x={primario:"primary",secundario:"secondary",error:"error",info:"info",exito:"success",advertencia:"warning",blanco:"inherit",gris:"inherit"}[t]||"primary",p=t==="blanco"?"#ffffff":t==="gris"?u.palette.grey[500]:u.palette[x]?.main||u.palette.primary.main,b=()=>m.jsx(No,{size:f,color:x,className:s,sx:{color:x==="inherit"?p:void 0,...l},...c}),v=()=>m.jsxs(Ue,{position:"relative",display:"inline-flex",width:f,height:f,className:s,sx:l,children:[m.jsx(No,{variant:"determinate",value:100,size:f,sx:{color:u.palette.mode==="dark"?ve(p,.2):ve(p,.1),position:"absolute"}}),m.jsx(No,{variant:"indeterminate",disableShrink:!0,size:f,sx:{color:p,animationDuration:"1.2s",position:"absolute",left:0,"& .MuiCircularProgress-circle":{strokeLinecap:"round"}},...c})]}),O=()=>m.jsx(Ue,{display:"flex",gap:.5,className:s,sx:{height:f,alignItems:"center",...l},children:[0,1,2].map(A=>m.jsx(Ue,{sx:{width:f/3,height:f/3,borderRadius:"50%",bgcolor:p,animation:"rebote 1.4s infinite ease-in-out both",animationDelay:`${A*.16}s`,"@keyframes rebote":{"0%, 80%, 100%":{transform:"scale(0)"},"40%":{transform:"scale(1)"}}}},A))}),T=()=>m.jsxs(Ue,{position:"relative",display:"inline-flex",width:f,height:f,className:s,sx:l,children:[m.jsx(Ue,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:p,opacity:.75,animation:"pulso 1s cubic-bezier(0, 0, 0.2, 1) infinite","@keyframes pulso":{"75%, 100%":{transform:"scale(2)",opacity:0}}}}),m.jsx(Ue,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:p}})]}),C=()=>{const A=f/2-f*.1;return m.jsx(Ue,{width:f,height:f,position:"relative",className:s,sx:l,children:[0,1,2,3].map(g=>m.jsx(Ue,{sx:{position:"absolute",width:A,height:A,borderRadius:"50%",bgcolor:p,top:g<2?0:"auto",bottom:g>=2?0:"auto",left:g%2===0?0:"auto",right:g%2!==0?0:"auto",animation:"cuadricula-fade 1.5s infinite linear",animationDelay:g===1?"-0.4s":g===2?"-0.8s":g===3?"-1.2s":"0s","@keyframes cuadricula-fade":{"0%, 100%":{opacity:1},"50%":{opacity:.3}}}},g))})},S=(A,g,j,R)=>m.jsx(Ue,{width:f,height:f,position:"relative",className:s,sx:l,children:Array.from({length:A}).map((M,k)=>m.jsx(Ue,{sx:{transformOrigin:"50% 50%",animation:"spinner-fade 1s linear infinite",animationDelay:`${-1+k/A}s`,transform:`rotate(${k*(360/A)}deg) translate(0, -130%)`,position:"absolute",top:"50%",left:"50%",width:f*g,height:f*j,borderRadius:R,bgcolor:p,"@keyframes spinner-fade":{"0%":{opacity:1},"100%":{opacity:0}}}},k))}),E=()=>S(12,.08,.24,"4px"),P=()=>S(8,.2,.2,"4px"),$=()=>S(12,.15,.15,"50%"),I=()=>{switch(n){case"anillo":return v();case"puntos":return O();case"pulso":return T();case"segmentos":return P();case"lineas":return E();case"puntos-circulo":return $();case"cuadricula":return C();default:return b()}},N=m.jsxs(Ue,{display:"inline-flex",flexDirection:a==="abajo"?"column":"row",alignItems:"center",justifyContent:"center",gap:1.5,children:[I(),r&&m.jsx(at,{variant:"body2",color:"text.secondary",fontWeight:500,whiteSpace:"nowrap",children:r})]});return i?m.jsx(Ue,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9999,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:u.palette.mode==="dark"?"rgba(0,0,0,0.85)":"rgba(255, 255, 255, 0.9)",sx:{backdropFilter:"blur(5px)"},children:N}):N},sb=zu,Vu=({teclas:e,tamano:t="md",className:n="",children:r,...a})=>{const i=t==="sm"?"text-[10px] px-1.5 py-0.5":t==="lg"?"text-xs px-2.5 py-1.5":"text-[11px] px-2 py-1",s="inline-flex items-center justify-center rounded border border-gray-300 bg-gray-50 text-gray-800 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100 font-mono shadow-sm";return e&&e.length>0?m.jsx("span",{className:`inline-flex items-center gap-1 ${n}`,...a,children:e.map((l,c)=>m.jsx("kbd",{className:`${s} ${i}`,children:l},l+c))}):m.jsx("kbd",{className:`${s} ${i} ${n}`,...a,children:r})},lb=Vu,cb=lt(m.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function ub(e){return ge("MuiAvatar",e)}const db=be("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),pb=e=>{const{classes:t,variant:n,colorDefault:r}=e;return he({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},ub,t)},fb=D("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(pe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),mb=D("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),gb=D(cb,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function hb({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[a,i]=w.useState(!1);return w.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&i("loaded")},l.onerror=()=>{s&&i("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{s=!1}},[e,t,n,r]),a}const xs=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiAvatar"}),{alt:a,children:i,className:s,component:l="div",slots:c={},slotProps:u={},imgProps:d,sizes:f,src:y,srcSet:x,variant:h="circular",...p}=r;let b=null;const v={...r,component:l,variant:h},O=hb({...d,...typeof u.img=="function"?u.img(v):u.img,src:y,srcSet:x}),T=y||x,C=T&&O!=="error";v.colorDefault=!C,delete v.ownerState;const S=pb(v),[E,P]=me("root",{ref:n,className:Q(S.root,s),elementType:fb,externalForwardedProps:{slots:c,slotProps:u,component:l,...p},ownerState:v}),[$,I]=me("img",{className:S.img,elementType:mb,externalForwardedProps:{slots:c,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:a,src:y,srcSet:x,sizes:f},ownerState:v}),[N,A]=me("fallback",{className:S.fallback,elementType:gb,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:v});return C?b=m.jsx($,{...I}):i||i===0?b=i:T&&a?b=a[0]:b=m.jsx(N,{...A}),m.jsx(E,{...P,children:b})});process.env.NODE_ENV!=="production"&&(xs.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function bb(e){return ge("MuiAvatarGroup",e)}const yb=be("MuiAvatarGroup",["root","avatar"]),pi={small:-16,medium:-8},vb=e=>{const{classes:t}=e;return he({root:["root"],avatar:["avatar"]},bb,t)},xb=D("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>[{[`& .${yb.avatar}`]:t.avatar},t.root]})(pe(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${db.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),_u=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiAvatarGroup"}),{children:a,className:i,component:s="div",componentsProps:l,max:c=5,renderSurplus:u,slotProps:d={},slots:f={},spacing:y="medium",total:x,variant:h="circular",...p}=r;let b=c<2?2:c;const v={...r,max:c,spacing:y,component:s,variant:h},O=vb(v),T=w.Children.toArray(a).filter(g=>(process.env.NODE_ENV!=="production"&&Ao.isFragment(g)&&console.error(["MUI: The AvatarGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
155
|
-
`)),w.isValidElement(
|
|
156
|
-
`)):null),renderSurplus:
|
|
154
|
+
`,Om=D(Xr,{shouldForwardProp:e=>e!=="animado"&&e!=="borde"})(({theme:e,animado:o,borde:n})=>({"& .MuiBadge-badge":{...n&&{boxShadow:`0 0 0 2px ${e.palette.background.paper}`},...o&&{animation:`${Tm} 1.5s infinite ease-in-out`}}})),gc=({children:e,color:o="primario",contenido:n,variante:r="estandar",maximo:a=99,mostrarCero:i=!1,superposicion:s="rectangular",invisible:l=!1,posicionVertical:c="arriba",posicionHorizontal:d="derecha",animado:p=!1,borde:g=!1,...b})=>{const v=y=>{switch(y){case"primario":return"primary";case"secundario":return"secondary";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"exito":return"success";default:return"primary"}},h=y=>y==="punto"?"dot":"standard",f=()=>({vertical:c==="arriba"?"top":"bottom",horizontal:d==="derecha"?"right":"left"});return u.jsx(Om,{color:v(o),badgeContent:n,variant:h(r),max:a,showZero:i,overlap:s,invisible:l,anchorOrigin:f(),animado:p,borde:g,...b,children:e})},Em=gc,km=Ce("MuiBox",["root"]),Pm=Ql(),Ue=le.createBox({themeId:Kr,defaultTheme:Pm,defaultClassName:km.root,generateClassName:Fl.generate});process.env.NODE_ENV!=="production"&&(Ue.propTypes={children:t.node,component:t.elementType,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function Rm(e){return xe("MuiTypography",e)}const Or=Ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Im={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},$m=Cf(),jm=e=>{const{align:o,gutterBottom:n,noWrap:r,paragraph:a,variant:i,classes:s}=e,l={root:["root",i,e.align!=="inherit"&&`align${F(o)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return we(l,Rm,s)},Mm=D("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.variant&&o[n.variant],n.align!=="inherit"&&o[`align${F(n.align)}`],n.noWrap&&o.noWrap,n.gutterBottom&&o.gutterBottom,n.paragraph&&o.paragraph]}})(me(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([o,n])=>o!=="inherit"&&n&&typeof n=="object").map(([o,n])=>({props:{variant:o},style:n})),...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{color:(e.vars||e).palette[o].main}})),...Object.entries(e.palette?.text||{}).filter(([,o])=>typeof o=="string").map(([o])=>({props:{color:`text${F(o)}`},style:{color:(e.vars||e).palette.text[o]}})),{props:({ownerState:o})=>o.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:o})=>o.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:o})=>o.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:o})=>o.paragraph,style:{marginBottom:16}}]}))),_s={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},nt=w.forwardRef(function(o,n){const{color:r,...a}=Te({props:o,name:"MuiTypography"}),i=!Im[r],s=$m({...a,...i&&{color:r}}),{align:l="inherit",className:c,component:d,gutterBottom:p=!1,noWrap:g=!1,paragraph:b=!1,variant:v="body1",variantMapping:h=_s,...f}=s,y={...s,align:l,color:r,className:c,component:d,gutterBottom:p,noWrap:g,paragraph:b,variant:v,variantMapping:h},C=d||(b?"p":h[v]||_s[v])||"span",O=jm(y);return u.jsx(Mm,{as:C,ref:n,className:re(O.root,c),...f,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(nt.propTypes={align:t.oneOf(["center","inherit","justify","left","right"]),children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),t.string]),component:t.elementType,gutterBottom:t.bool,noWrap:t.bool,paragraph:t.bool,style:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOfType([t.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),t.string]),variantMapping:t.object});const hc=({tamano:e="md",color:o="primario",tipo:n="borde",etiqueta:r,posicionEtiqueta:a="derecha",pantallaCompleta:i=!1,className:s="",sx:l,...c})=>{const d=jt(),g=typeof e=="number"?e:{xs:16,sm:24,md:40,lg:56,xl:80}[e],v={primario:"primary",secundario:"secondary",error:"error",info:"info",exito:"success",advertencia:"warning",blanco:"inherit",gris:"inherit"}[o]||"primary",f=o==="blanco"?"#ffffff":o==="gris"?d.palette.grey[500]:d.palette[v]?.main||d.palette.primary.main,y=()=>u.jsx(xo,{size:g,color:v,className:s,sx:{color:v==="inherit"?f:void 0,...l},...c}),C=()=>u.jsxs(Ue,{position:"relative",display:"inline-flex",width:g,height:g,className:s,sx:l,children:[u.jsx(xo,{variant:"determinate",value:100,size:g,sx:{color:d.palette.mode==="dark"?le.alpha(f,.2):le.alpha(f,.1),position:"absolute"}}),u.jsx(xo,{variant:"indeterminate",disableShrink:!0,size:g,sx:{color:f,animationDuration:"1.2s",position:"absolute",left:0,"& .MuiCircularProgress-circle":{strokeLinecap:"round"}},...c})]}),O=()=>u.jsx(Ue,{display:"flex",gap:.5,className:s,sx:{height:g,alignItems:"center",...l},children:[0,1,2].map(A=>u.jsx(Ue,{sx:{width:g/3,height:g/3,borderRadius:"50%",bgcolor:f,animation:"rebote 1.4s infinite ease-in-out both",animationDelay:`${A*.16}s`,"@keyframes rebote":{"0%, 80%, 100%":{transform:"scale(0)"},"40%":{transform:"scale(1)"}}}},A))}),S=()=>u.jsxs(Ue,{position:"relative",display:"inline-flex",width:g,height:g,className:s,sx:l,children:[u.jsx(Ue,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:f,opacity:.75,animation:"pulso 1s cubic-bezier(0, 0, 0.2, 1) infinite","@keyframes pulso":{"75%, 100%":{transform:"scale(2)",opacity:0}}}}),u.jsx(Ue,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:f}})]}),x=()=>{const A=g/2-g*.1;return u.jsx(Ue,{width:g,height:g,position:"relative",className:s,sx:l,children:[0,1,2,3].map(m=>u.jsx(Ue,{sx:{position:"absolute",width:A,height:A,borderRadius:"50%",bgcolor:f,top:m<2?0:"auto",bottom:m>=2?0:"auto",left:m%2===0?0:"auto",right:m%2!==0?0:"auto",animation:"cuadricula-fade 1.5s infinite linear",animationDelay:m===1?"-0.4s":m===2?"-0.8s":m===3?"-1.2s":"0s","@keyframes cuadricula-fade":{"0%, 100%":{opacity:1},"50%":{opacity:.3}}}},m))})},T=(A,m,$,P)=>u.jsx(Ue,{width:g,height:g,position:"relative",className:s,sx:l,children:Array.from({length:A}).map((M,k)=>u.jsx(Ue,{sx:{transformOrigin:"50% 50%",animation:"spinner-fade 1s linear infinite",animationDelay:`${-1+k/A}s`,transform:`rotate(${k*(360/A)}deg) translate(0, -130%)`,position:"absolute",top:"50%",left:"50%",width:g*m,height:g*$,borderRadius:P,bgcolor:f,"@keyframes spinner-fade":{"0%":{opacity:1},"100%":{opacity:0}}}},k))}),E=()=>T(12,.08,.24,"4px"),j=()=>T(8,.2,.2,"4px"),R=()=>T(12,.15,.15,"50%"),I=()=>{switch(n){case"anillo":return C();case"puntos":return O();case"pulso":return S();case"segmentos":return j();case"lineas":return E();case"puntos-circulo":return R();case"cuadricula":return x();default:return y()}},N=u.jsxs(Ue,{display:"inline-flex",flexDirection:a==="abajo"?"column":"row",alignItems:"center",justifyContent:"center",gap:1.5,children:[I(),r&&u.jsx(nt,{variant:"body2",color:"text.secondary",fontWeight:500,whiteSpace:"nowrap",children:r})]});return i?u.jsx(Ue,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9999,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:d.palette.mode==="dark"?"rgba(0,0,0,0.85)":"rgba(255, 255, 255, 0.9)",sx:{backdropFilter:"blur(5px)"},children:N}):N},Nm=hc,bc=({teclas:e,tamano:o="md",className:n="",children:r,...a})=>{const i=o==="sm"?"text-[10px] px-1.5 py-0.5":o==="lg"?"text-xs px-2.5 py-1.5":"text-[11px] px-2 py-1",s="inline-flex items-center justify-center rounded border border-gray-300 bg-gray-50 text-gray-800 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100 font-mono shadow-sm";return e&&e.length>0?u.jsx("span",{className:`inline-flex items-center gap-1 ${n}`,...a,children:e.map((l,c)=>u.jsx("kbd",{className:`${s} ${i}`,children:l},l+c))}):u.jsx("kbd",{className:`${s} ${i} ${n}`,...a,children:r})},Am=bc,Lm=st(u.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Bm(e){return xe("MuiAvatar",e)}const Dm=Ce("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),zm=e=>{const{classes:o,variant:n,colorDefault:r}=e;return we({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Bm,o)},Fm=D("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[n.variant],n.colorDefault&&o.colorDefault]}})(me(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),Vm=D("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),_m=D(Lm,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function Wm({crossOrigin:e,referrerPolicy:o,src:n,srcSet:r}){const[a,i]=w.useState(!1);return w.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&i("loaded")},l.onerror=()=>{s&&i("error")},l.crossOrigin=e,l.referrerPolicy=o,l.src=n,r&&(l.srcset=r),()=>{s=!1}},[e,o,n,r]),a}const Ti=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiAvatar"}),{alt:a,children:i,className:s,component:l="div",slots:c={},slotProps:d={},imgProps:p,sizes:g,src:b,srcSet:v,variant:h="circular",...f}=r;let y=null;const C={...r,component:l,variant:h},O=Wm({...p,...typeof d.img=="function"?d.img(C):d.img,src:b,srcSet:v}),S=b||v,x=S&&O!=="error";C.colorDefault=!x,delete C.ownerState;const T=zm(C),[E,j]=ge("root",{ref:n,className:re(T.root,s),elementType:Fm,externalForwardedProps:{slots:c,slotProps:d,component:l,...f},ownerState:C}),[R,I]=ge("img",{className:T.img,elementType:Vm,externalForwardedProps:{slots:c,slotProps:{img:{...p,...d.img}}},additionalProps:{alt:a,src:b,srcSet:v,sizes:g},ownerState:C}),[N,A]=ge("fallback",{className:T.fallback,elementType:_m,externalForwardedProps:{slots:c,slotProps:d},shouldForwardComponentProp:!0,ownerState:C});return x?y=u.jsx(R,{...I}):i||i===0?y=i:S&&a?y=a[0]:y=u.jsx(N,{...A}),u.jsx(E,{...j,children:y})});process.env.NODE_ENV!=="production"&&(Ti.propTypes={alt:t.string,children:t.node,classes:t.object,className:t.string,component:t.elementType,imgProps:t.object,sizes:t.string,slotProps:t.shape({fallback:t.oneOfType([t.func,t.object]),img:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({fallback:t.elementType,img:t.elementType,root:t.elementType}),src:t.string,srcSet:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOfType([t.oneOf(["circular","rounded","square"]),t.string])});function Um(e){return xe("MuiAvatarGroup",e)}const Hm=Ce("MuiAvatarGroup",["root","avatar"]),Ia={small:-16,medium:-8},qm=e=>{const{classes:o}=e;return we({root:["root"],avatar:["avatar"]},Um,o)},Gm=D("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,o)=>[{[`& .${Hm.avatar}`]:o.avatar},o.root]})(me(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${Dm.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),yc=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiAvatarGroup"}),{children:a,className:i,component:s="div",componentsProps:l,max:c=5,renderSurplus:d,slotProps:p={},slots:g={},spacing:b="medium",total:v,variant:h="circular",...f}=r;let y=c<2?2:c;const C={...r,max:c,spacing:b,component:s,variant:h},O=qm(C),S=w.Children.toArray(a).filter(m=>(process.env.NODE_ENV!=="production"&&Co.isFragment(m)&&console.error(["MUI: The AvatarGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
155
|
+
`)),w.isValidElement(m))),x=v||S.length;x===y&&(y+=1),y=Math.min(x+1,y);const T=Math.min(S.length,y-1),E=Math.max(x-y,x-T,0),j=d?d(E):`+${E}`;let R;C.spacing&&Ia[C.spacing]!==void 0?R=Ia[C.spacing]:C.spacing===0?R=0:R=-C.spacing||Ia.medium;const I={slots:g,slotProps:{surplus:p.additionalAvatar??l?.additionalAvatar,...l,...p}},[N,A]=ge("surplus",{elementType:Ti,externalForwardedProps:I,className:O.avatar,ownerState:C,additionalProps:{variant:h}});return u.jsxs(Gm,{as:s,ownerState:C,className:re(O.root,i),ref:n,...f,style:{"--AvatarGroup-spacing":`${R}px`,...f.style},children:[E?u.jsx(N,{...A,children:j}):null,S.slice(0,T).reverse().map(m=>w.cloneElement(m,{className:re(m.props.className,O.avatar),variant:m.props.variant||h}))]})});process.env.NODE_ENV!=="production"&&(yc.propTypes={children:t.node,classes:t.object,className:t.string,component:t.elementType,componentsProps:t.shape({additionalAvatar:t.object}),max:xt(t.number,e=>e.max<2?new Error(["MUI: The prop `max` should be equal to 2 or above.","A value below is clamped to 2."].join(`
|
|
156
|
+
`)):null),renderSurplus:t.func,slotProps:t.shape({additionalAvatar:t.object,surplus:t.oneOfType([t.func,t.object])}),slots:t.shape({surplus:t.elementType}),spacing:t.oneOfType([t.oneOf(["medium","small"]),t.number]),style:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),total:t.number,variant:t.oneOfType([t.oneOf(["circular","rounded","square"]),t.string])});function Km(e){return xe("MuiSkeleton",e)}Ce("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Ym=e=>{const{classes:o,variant:n,animation:r,hasChildren:a,width:i,height:s}=e;return we({root:["root",n,r,a&&"withChildren",a&&!i&&"fitContent",a&&!s&&"heightAuto"]},Km,o)},Za=le.keyframes`
|
|
157
157
|
0% {
|
|
158
158
|
opacity: 1;
|
|
159
159
|
}
|
|
@@ -165,7 +165,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
165
165
|
100% {
|
|
166
166
|
opacity: 1;
|
|
167
167
|
}
|
|
168
|
-
`,
|
|
168
|
+
`,Ja=le.keyframes`
|
|
169
169
|
0% {
|
|
170
170
|
transform: translateX(-100%);
|
|
171
171
|
}
|
|
@@ -178,18 +178,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
178
178
|
100% {
|
|
179
179
|
transform: translateX(100%);
|
|
180
180
|
}
|
|
181
|
-
`,
|
|
182
|
-
animation: ${
|
|
183
|
-
`:null,
|
|
181
|
+
`,Xm=typeof Za!="string"?le.css`
|
|
182
|
+
animation: ${Za} 2s ease-in-out 0.5s infinite;
|
|
183
|
+
`:null,Zm=typeof Ja!="string"?le.css`
|
|
184
184
|
&::after {
|
|
185
|
-
animation: ${
|
|
185
|
+
animation: ${Ja} 2s linear 0.5s infinite;
|
|
186
186
|
}
|
|
187
|
-
`:null,
|
|
187
|
+
`:null,Jm=D("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[n.variant],n.animation!==!1&&o[n.animation],n.hasChildren&&o.withChildren,n.hasChildren&&!n.width&&o.fitContent,n.hasChildren&&!n.height&&o.heightAuto]}})(me(({theme:e})=>{const o=fm(e.shape.borderRadius)||"px",n=mm(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${o}/${Math.round(n/.6*10)/10}${o}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Xm||{animation:`${Za} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
|
|
188
188
|
90deg,
|
|
189
189
|
transparent,
|
|
190
190
|
${(e.vars||e).palette.action.hover},
|
|
191
191
|
transparent
|
|
192
|
-
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:
|
|
192
|
+
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Zm||{"&::after":{animation:`${Ja} 2s linear 0.5s infinite`}}}]}})),Oi=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiSkeleton"}),{animation:a="pulse",className:i,component:s="span",height:l,style:c,variant:d="text",width:p,...g}=r,b={...r,animation:a,component:s,variant:d,hasChildren:!!g.children},v=Ym(b);return u.jsx(Jm,{as:s,ref:n,className:re(v.root,i),ownerState:b,...g,style:{width:p,height:l,...c}})});process.env.NODE_ENV!=="production"&&(Oi.propTypes={animation:t.oneOf(["pulse","wave",!1]),children:t.node,classes:t.object,className:t.string,component:t.elementType,height:t.oneOfType([t.number,t.string]),style:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOfType([t.oneOf(["circular","rectangular","rounded","text"]),t.string]),width:t.oneOfType([t.number,t.string])});const Qa=e=>typeof e=="number"?e:e&&{xs:24,sm:32,md:40,lg:48,xl:64,xxl:80}[e]||40,Qm=e=>{const o=Qa(e);return{width:o,height:o,fontSize:o/2}},eg=D(Xr)(({theme:e})=>({"& .MuiBadge-badge":{backgroundColor:"#44b700",color:"#44b700",boxShadow:`0 0 0 2px ${e.palette.background.paper}`,"&::after":{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",animation:"ripple 1.2s infinite ease-in-out",border:"1px solid currentColor",content:'""'}},"@keyframes ripple":{"0%":{transform:"scale(.8)",opacity:1},"100%":{transform:"scale(2.4)",opacity:0}}})),vc=({tamano:e="md",variante:o="circular",estado:n,imagen:r,texto:a,cargando:i=!1,insignia:s,colorInsignia:l="error",sx:c,children:d,...p})=>{const g=C=>{switch(C){case"cuadrado":return"square";case"redondeado":return"rounded";default:return"circular"}},b=C=>{switch(C){case"primario":return"primary";case"secundario":return"secondary";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"exito":return"success";default:return"error"}},v=()=>{if(s)return s},h=()=>n&&!s?"dot":"standard",f=()=>{if(l&&s)return b(l)||"error";switch(n){case"conectado":return"#44b700";case"desconectado":return"#bdbdbd";case"ocupado":return"#f44336";case"ausente":return"#ff9800";default:return"transparent"}};if(i)return u.jsx(Oi,{variant:o==="circular"?"circular":"rectangular",width:Qa(e),height:Qa(e),animation:"wave"});const y=u.jsx(Ti,{variant:g(o),src:r,alt:a,sx:[Qm(e),...Array.isArray(c)?c:[c]],...p,children:d||(a?a.charAt(0).toUpperCase():null)});return!n&&!s?y:n==="conectado"&&!s?u.jsx(eg,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:"dot",children:y}):u.jsx(Xr,{overlap:o==="circular"?"circular":"rectangular",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:v(),variant:h(),sx:{"& .MuiBadge-badge":{backgroundColor:s?void 0:f(),color:s?void 0:f()}},color:s?b(l):void 0,children:y})},xc=({children:e,spacing:o="medium",maximo:n=5,...r})=>u.jsx(yc,{max:n,spacing:o,...r,children:e}),Cc=e=>{let o=0;for(let r=0;r<e.length;r+=1)o=e.charCodeAt(r)+((o<<5)-o);let n="#";for(let r=0;r<3;r+=1){const a=o>>r*8&255;n+=`00${a.toString(16)}`.slice(-2)}return{sx:{bgcolor:n},children:`${e.split(" ")[0][0]}${e.split(" ")[1]?.[0]||""}`}},tg=Cc,og=xc,ng=vc,Ei=({requisitos:e=[],className:o=""})=>{const[n,r]=Re.useState(!1),a=Re.useRef(null),i=Re.useId(),s=d=>{d.stopPropagation(),d.preventDefault(),r(!n)},l=()=>r(!0),c=()=>r(!1);return Re.useEffect(()=>{const d=p=>{n&&a.current&&!a.current.contains(p.target)&&r(!1)};return document.addEventListener("click",d),()=>{document.removeEventListener("click",d)}},[n]),u.jsxs("div",{ref:a,className:`relative inline-flex items-center ml-0.5 align-top ${o}`,onMouseEnter:l,onMouseLeave:c,children:[u.jsx("button",{type:"button",onClick:s,"aria-expanded":n,"aria-controls":i,"aria-label":"Ver requisitos",className:`
|
|
193
193
|
group flex items-center justify-center
|
|
194
194
|
text-red-500 dark:text-red-400
|
|
195
195
|
font-bold text-lg leading-none
|
|
@@ -197,7 +197,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
197
197
|
transition-transform duration-200
|
|
198
198
|
focus:outline-none focus:text-red-600 dark:focus:text-red-300
|
|
199
199
|
${n?"scale-110":"hover:scale-110"}
|
|
200
|
-
`,children:"*"}),n&&
|
|
200
|
+
`,children:"*"}),n&&u.jsxs("div",{id:i,className:`
|
|
201
201
|
absolute bottom-full left-0 mb-1.5 z-[100]
|
|
202
202
|
/* Responsive Width: Fijo en desktop, limitado al viewport en móvil */
|
|
203
203
|
w-64 max-w-[85vw] sm:max-w-xs
|
|
@@ -206,12 +206,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
206
206
|
rounded-lg shadow-xl
|
|
207
207
|
animate-in fade-in zoom-in-95 slide-in-from-bottom-1 duration-150
|
|
208
208
|
origin-bottom-left
|
|
209
|
-
`,onClick:
|
|
209
|
+
`,onClick:d=>d.stopPropagation(),children:[u.jsx("div",{className:"px-3 py-2 border-b border-gray-100 dark:border-gray-700/50 bg-gray-50/80 dark:bg-gray-800/80 rounded-t-lg backdrop-blur-sm",children:u.jsxs("h4",{className:"text-[10px] font-bold text-gray-500 dark:text-gray-400 uppercase tracking-wider flex items-center gap-1.5",children:[u.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Requisitos"]})}),u.jsx("ul",{className:"p-1.5 space-y-0.5",children:e.map((d,p)=>u.jsxs("li",{className:`
|
|
210
210
|
flex items-start gap-2 px-2 py-1.5 rounded
|
|
211
211
|
text-xs text-gray-600 dark:text-gray-300
|
|
212
212
|
hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors
|
|
213
|
-
`,children:[
|
|
214
|
-
`)),
|
|
213
|
+
`,children:[u.jsx("span",{className:"text-blue-500 dark:text-blue-400 mt-[2px]",children:"•"}),u.jsx("span",{className:"leading-snug",children:d})]},p))}),u.jsx("div",{className:"absolute -bottom-1 left-1.5 w-2 h-2 bg-white dark:bg-gray-800 border-b border-r border-gray-200 dark:border-gray-700 rotate-45"})]})]})},rg=Ei,wc=({para:e,texto:o,obligatorio:n,requisitos:r,className:a="",children:i,...s})=>u.jsxs("div",{className:`flex items-center gap-2 mb-1.5 ${a}`,...s,children:[u.jsx("label",{htmlFor:e,className:"text-sm font-medium text-gray-800 dark:text-gray-100 cursor-pointer select-none",children:o}),n&&(r&&r.length>0?u.jsx(Ei,{requisitos:r}):u.jsx("span",{className:"text-xs text-red-500 font-bold select-none",title:"Campo obligatorio",children:"*"})),i]}),ag=wc;function ig(e){const o=typeof e;switch(o){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return o}}function Sc(e,o,n,r){const a=e[o];if(a==null||!Number.isInteger(a)){const i=ig(a);return new RangeError(`Invalid ${r} \`${o}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Tc(e,o,n,r){return e[o]===void 0?null:Sc(e,o,n,r)}function ei(){return null}Tc.isRequired=Sc;ei.isRequired=ei;const ki=process.env.NODE_ENV==="production"?ei:Tc;function sg(e){return xe("MuiPaper",e)}Ce("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lg=e=>{const{square:o,elevation:n,variant:r,classes:a}=e,i={root:["root",r,!o&&"rounded",r==="elevation"&&`elevation${n}`]};return we(i,sg,a)},cg=D("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[n.variant],!n.square&&o.rounded,n.variant==="elevation"&&o[`elevation${n.elevation}`]]}})(me(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Oo=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiPaper"}),a=jt(),{className:i,component:s="div",elevation:l=1,square:c=!1,variant:d="elevation",...p}=r,g={...r,component:s,elevation:l,square:c,variant:d},b=lg(g);return process.env.NODE_ENV!=="production"&&a.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
214
|
+
`)),u.jsx(cg,{as:s,ownerState:g,className:re(b.root,i),ref:n,...p,style:{...d==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[l],...a.vars&&{"--Paper-overlay":a.vars.overlays?.[l]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${xr("#fff",Wa(l))}, ${xr("#fff",Wa(l))})`}},...p.style}})});process.env.NODE_ENV!=="production"&&(Oo.propTypes={children:t.node,classes:t.object,className:t.string,component:t.elementType,elevation:xt(ki,e=>{const{elevation:o,variant:n}=e;return o>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${o}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:t.bool,style:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOfType([t.oneOf(["elevation","outlined"]),t.string])});function dg(e){return xe("MuiCard",e)}Ce("MuiCard",["root"]);const pg=e=>{const{classes:o}=e;return we({root:["root"]},dg,o)},ug=D(Oo,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Pi=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiCard"}),{className:a,raised:i=!1,...s}=r,l={...r,raised:i},c=pg(l);return u.jsx(ug,{className:re(c.root,a),elevation:i?8:void 0,ref:n,ownerState:l,...s})});process.env.NODE_ENV!=="production"&&(Pi.propTypes={children:t.node,classes:t.object,className:t.string,raised:xt(t.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function fg(e){return xe("MuiCardActionArea",e)}const $a=Ce("MuiCardActionArea",["root","focusVisible","focusHighlight"]),mg=e=>{const{classes:o}=e;return we({root:["root"],focusHighlight:["focusHighlight"]},fg,o)},gg=D(lo,{name:"MuiCardActionArea",slot:"Root"})(me(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${$a.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${$a.focusVisible} .${$a.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),hg=D("span",{name:"MuiCardActionArea",slot:"FocusHighlight"})(me(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),Oc=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiCardActionArea"}),{children:a,className:i,focusVisibleClassName:s,slots:l={},slotProps:c={},...d}=r,p=r,g=mg(p),b={slots:l,slotProps:c},[v,h]=ge("root",{elementType:gg,externalForwardedProps:{...b,...d},shouldForwardComponentProp:!0,ownerState:p,ref:n,className:re(g.root,i),additionalProps:{focusVisibleClassName:re(s,g.focusVisible)}}),[f,y]=ge("focusHighlight",{elementType:hg,externalForwardedProps:b,ownerState:p,ref:n,className:g.focusHighlight});return u.jsxs(v,{...h,children:[a,u.jsx(f,{...y})]})});process.env.NODE_ENV!=="production"&&(Oc.propTypes={children:t.node,classes:t.object,className:t.string,focusVisibleClassName:t.string,slotProps:t.shape({focusHighlight:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({focusHighlight:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function bg(e){return xe("MuiCardContent",e)}Ce("MuiCardContent",["root"]);const yg=e=>{const{classes:o}=e;return we({root:["root"]},bg,o)},vg=D("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Ec=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiCardContent"}),{className:a,component:i="div",...s}=r,l={...r,component:i},c=yg(l);return u.jsx(vg,{as:i,className:re(c.root,a),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(Ec.propTypes={children:t.node,classes:t.object,className:t.string,component:t.elementType,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function xg(e){return xe("MuiCardMedia",e)}Ce("MuiCardMedia",["root","media","img"]);const Cg=e=>{const{classes:o,isMediaComponent:n,isImageComponent:r}=e;return we({root:["root",n&&"media",r&&"img"]},xg,o)},wg=D("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:a}=n;return[o.root,r&&o.media,a&&o.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),Sg=["video","audio","picture","iframe","img"],Tg=["picture","img"],kc=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiCardMedia"}),{children:a,className:i,component:s="div",image:l,src:c,style:d,...p}=r,g=Sg.includes(s),b=!g&&l?{backgroundImage:`url("${l}")`,...d}:d,v={...r,component:s,isMediaComponent:g,isImageComponent:Tg.includes(s)},h=Cg(v);return u.jsx(wg,{className:re(h.root,i),as:s,role:!g&&l?"img":void 0,ref:n,style:b,ownerState:v,src:g?l||c:void 0,...p,children:a})});process.env.NODE_ENV!=="production"&&(kc.propTypes={children:xt(t.node,e=>!e.children&&!e.image&&!e.src&&!e.component?new Error("MUI: Either `children`, `image`, `src` or `component` prop must be specified."):null),classes:t.object,className:t.string,component:t.elementType,image:t.string,src:t.string,style:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});const Pc=({variante:e="estandar",relleno:o="m",efectoHover:n,clicable:r,titulo:a,subtitulo:i,accionCabecera:s,multimedia:l,cabecera:c,pie:d,alHacerClick:p,className:g="",children:b,sx:v,...h})=>{const f=jt(),y=j=>j==="contorno"||j==="suave"?"outlined":"elevation",C=j=>{switch(j){case"ninguno":return 0;case"p":return 1.5;case"g":return 3;default:return 2}},O=r||!!p,S=O?Oc:Re.Fragment,x=O?{component:"div",onClick:p}:{},T=()=>e==="suave"?{backgroundColor:f.palette.mode==="dark"?le.alpha(f.palette.primary.main,.05):le.alpha(f.palette.primary.main,.03),borderColor:f.palette.mode==="dark"?le.alpha(f.palette.primary.main,.1):le.alpha(f.palette.primary.main,.08)}:e==="estandar"?{backgroundColor:f.palette.background.paper}:{},E=()=>c?u.jsx(Ue,{sx:{p:C(o),pb:0},children:c}):a?u.jsxs(Ue,{sx:{p:C(o),pb:0,display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:1},children:[u.jsxs(Ue,{sx:{display:"flex",flexDirection:"column"},children:[u.jsx(nt,{variant:"h6",component:"div",sx:{fontWeight:600,lineHeight:1.2,fontSize:"1rem",color:f.palette.text.primary},children:a}),i&&u.jsx(nt,{variant:"body2",color:"text.secondary",sx:{mt:.5,fontSize:"0.875rem"},children:i})]}),s&&u.jsx(Ue,{sx:{mt:-.5,mr:-.5},children:s})]}):null;return u.jsx(Pi,{variant:y(e)==="outlined"?"outlined":void 0,elevation:e==="estandar"?2:0,className:g,sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:"12px",...T(),...n&&{transition:"transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{transform:"translateY(-4px)",boxShadow:f.shadows[8],...e!=="estandar"&&{borderColor:f.palette.primary.main}}},...v},...h,children:u.jsxs(S,{...x,children:[typeof l=="string"?u.jsx(kc,{component:"img",image:l,alt:"Multimedia",height:"180",sx:{objectFit:"cover"}}):l,E(),u.jsx(Ec,{sx:{p:C(o),flexGrow:1,"&:last-child":{pb:C(o)}},children:b}),d&&u.jsx(Ue,{sx:{p:C(o),pt:0,mt:"auto",borderTop:e==="contorno"?`1px solid ${f.palette.divider}`:"none",...e==="contorno"&&{pt:C(o)}},children:d})]})})},Og=Pc,Rc=({antetitulo:e,titulo:o,subtitulo:n,alineacion:r="left",etiquetaPrimaria:a,etiquetaSecundaria:i,alClickPrimario:s,alClickSecundario:l,alturaCompleta:c=!1,urlImagenFondo:d,capaOscura:p=!0,className:g="",children:b,...v})=>{const h=r==="center"?"text-center items-center":"text-left items-start",f=!!d;return u.jsxs("section",{className:`
|
|
215
215
|
relative overflow-hidden
|
|
216
216
|
border border-gray-200/80 dark:border-gray-700/80
|
|
217
217
|
rounded-2xl
|
|
@@ -219,51 +219,39 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
219
219
|
shadow-sm
|
|
220
220
|
flex
|
|
221
221
|
${c?"min-h-[60vh]":""}
|
|
222
|
-
${
|
|
223
|
-
${
|
|
224
|
-
`,style:
|
|
222
|
+
${f?"bg-cover bg-center":"bg-gradient-to-b from-white to-gray-50 dark:from-gray-900 dark:to-gray-950"}
|
|
223
|
+
${g}
|
|
224
|
+
`,style:f?{backgroundImage:`url(${d})`}:void 0,...v,children:[f&&p&&u.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-[1px]"}),u.jsxs("div",{className:`
|
|
225
225
|
relative z-10
|
|
226
226
|
max-w-3xl mx-auto flex flex-col gap-6
|
|
227
227
|
${h}
|
|
228
|
-
`,children:[e&&
|
|
228
|
+
`,children:[e&&u.jsx("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-blue-50 text-blue-700 dark:bg-blue-900/60 dark:text-blue-100",children:e}),u.jsxs("div",{className:"space-y-3 md:space-y-4",children:[u.jsx("h1",{className:`
|
|
229
229
|
text-3xl md:text-4xl lg:text-5xl font-extrabold tracking-tight
|
|
230
|
-
${
|
|
231
|
-
`,children:
|
|
230
|
+
${f?"text-white":"text-gray-900 dark:text-white"}
|
|
231
|
+
`,children:o}),n&&u.jsx("p",{className:`
|
|
232
232
|
text-base md:text-lg max-w-2xl
|
|
233
|
-
${
|
|
234
|
-
`,children:n})]}),(a||i)&&
|
|
233
|
+
${f?"text-gray-100/90":"text-gray-600 dark:text-gray-300"}
|
|
234
|
+
`,children:n})]}),(a||i)&&u.jsxs("div",{className:`
|
|
235
235
|
flex flex-wrap gap-3 mt-2
|
|
236
236
|
${r==="center"?"justify-center":"justify-start"}
|
|
237
|
-
`,children:[a&&s&&
|
|
237
|
+
`,children:[a&&s&&u.jsx("button",{type:"button",className:"inline-flex items-center justify-center px-4 py-2.5 text-sm font-semibold rounded-lg bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",onClick:s,children:a}),i&&l&&u.jsx("button",{type:"button",className:`
|
|
238
238
|
inline-flex items-center justify-center px-4 py-2.5 text-sm font-semibold rounded-lg border
|
|
239
|
-
${
|
|
239
|
+
${f?"border-white/60 text-white bg-white/5 hover:bg-white/10":"border-gray-300 text-gray-700 bg-white hover:bg-gray-50 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100 dark:hover:bg-gray-700"}
|
|
240
240
|
focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500
|
|
241
|
-
`,onClick:l,children:i})]}),
|
|
241
|
+
`,onClick:l,children:i})]}),b]})]})},Eg=Rc,kg={info:"bg-blue-50 text-blue-800 border-blue-200 dark:bg-blue-900/30 dark:text-blue-100 dark:border-blue-800/60",success:"bg-emerald-50 text-emerald-800 border-emerald-200 dark:bg-emerald-900/30 dark:text-emerald-100 dark:border-emerald-800/60",warning:"bg-amber-50 text-amber-800 border-amber-200 dark:bg-amber-900/30 dark:text-amber-100 dark:border-amber-800/60",error:"bg-red-50 text-red-800 border-red-200 dark:bg-red-900/30 dark:text-red-100 dark:border-red-800/60",neutral:"bg-gray-50 text-gray-800 border-gray-200 dark:bg-gray-900/40 dark:text-gray-100 dark:border-gray-700"},Ic=({titulo:e,descripcion:o,variante:n="info",icono:r,cerrable:a=!1,abierto:i,alCerrar:s,anchoCompleto:l=!0,className:c="",children:d,...p})=>{const[g,b]=Re.useState(!0);if(!(i!==void 0?i:g))return null;const h=kg[n],f=r??(n==="success"?"✅":n==="warning"?"⚠️":n==="error"?"⛔":n==="neutral"?"💡":"ℹ️"),y=n==="error"||n==="warning"?"alert":"status",C=()=>{i===void 0&&b(!1),s&&s()};return u.jsx("div",{className:l?"w-full":"inline-flex",...p,children:u.jsxs("div",{className:`
|
|
242
242
|
flex w-full items-start gap-3 border rounded-lg px-4 py-3
|
|
243
243
|
shadow-sm ${h} ${c}
|
|
244
|
-
`,role:
|
|
244
|
+
`,role:y,children:[f&&u.jsx("div",{className:"mt-0.5 text-xl shrink-0","aria-hidden":"true",children:f}),u.jsxs("div",{className:"flex-1 min-w-0",children:[e&&u.jsx("p",{className:"text-sm font-semibold leading-5 truncate",children:e}),o&&u.jsx("p",{className:"mt-0.5 text-xs sm:text-sm leading-5",children:o}),d]}),a&&u.jsx("button",{type:"button",className:"shrink-0 p-1.5 rounded-md hover:bg-black/5 dark:hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-blue-500",onClick:C,"aria-label":"Cerrar aviso",children:u.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:u.jsx("path",{fillRule:"evenodd",d:`M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414
|
|
245
245
|
1.414L11.414 10l4.293 4.293a1 1 0 01-1.414
|
|
246
246
|
1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586
|
|
247
|
-
10 4.293 5.707a1 1 0 010-1.414z`,clipRule:"evenodd"})})})]})})},
|
|
248
|
-
`)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const sy=lt(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ly=lt(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),cy=lt(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),uy=lt(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),td=lt(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),dy=e=>{const{variant:t,color:n,severity:r,classes:a}=e,i={root:["root",`color${V(n||r)}`,`${t}${V(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return he(i,oy,a)},py=D(xo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${V(n.color||n.severity)}`]]}})(pe(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(qe(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${Jl.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(qe(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${Jl.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(qe(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),fy=D("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),my=D("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),gy=D("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Ql={success:m.jsx(sy,{fontSize:"inherit"}),warning:m.jsx(ly,{fontSize:"inherit"}),error:m.jsx(cy,{fontSize:"inherit"}),info:m.jsx(uy,{fontSize:"inherit"})},Os=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiAlert"}),{action:a,children:i,className:s,closeText:l="Close",color:c,components:u={},componentsProps:d={},icon:f,iconMapping:y=Ql,onClose:x,role:h="alert",severity:p="success",slotProps:b={},slots:v={},variant:O="standard",...T}=r,C={...r,color:c,severity:p,variant:O,colorSeverity:c||p},S=dy(C),E={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...v},slotProps:{...d,...b}},[P,$]=me("root",{ref:n,shouldForwardComponentProp:!0,className:Q(S.root,s),elementType:py,externalForwardedProps:{...E,...T},ownerState:C,additionalProps:{role:h,elevation:0}}),[I,N]=me("icon",{className:S.icon,elementType:fy,externalForwardedProps:E,ownerState:C}),[A,g]=me("message",{className:S.message,elementType:my,externalForwardedProps:E,ownerState:C}),[j,R]=me("action",{className:S.action,elementType:gy,externalForwardedProps:E,ownerState:C}),[M,k]=me("closeButton",{elementType:Cn,externalForwardedProps:E,ownerState:C}),[z,F]=me("closeIcon",{elementType:td,externalForwardedProps:E,ownerState:C});return m.jsxs(P,{...$,children:[f!==!1?m.jsx(I,{...N,children:f||y[p]||Ql[p]}):null,m.jsx(A,{...g,children:i}),a!=null?m.jsx(j,{...R,children:a}):null,a==null&&x?m.jsx(j,{...R,children:m.jsx(M,{size:"small","aria-label":l,title:l,color:"inherit",onClick:x,...k,children:m.jsx(z,{fontSize:"small",...F})})}):null]})});process.env.NODE_ENV!=="production"&&(Os.propTypes={action:o.node,children:o.node,classes:o.object,className:o.string,closeText:o.string,color:o.oneOfType([o.oneOf(["error","info","success","warning"]),o.string]),components:o.shape({CloseButton:o.elementType,CloseIcon:o.elementType}),componentsProps:o.shape({closeButton:o.object,closeIcon:o.object}),icon:o.node,iconMapping:o.shape({error:o.node,info:o.node,success:o.node,warning:o.node}),onClose:o.func,role:o.string,severity:o.oneOfType([o.oneOf(["error","info","success","warning"]),o.string]),slotProps:o.shape({action:o.oneOfType([o.func,o.object]),closeButton:o.oneOfType([o.func,o.object]),closeIcon:o.oneOfType([o.func,o.object]),icon:o.oneOfType([o.func,o.object]),message:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({action:o.elementType,closeButton:o.elementType,closeIcon:o.elementType,icon:o.elementType,message:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function hy(e){return ge("MuiAlertTitle",e)}be("MuiAlertTitle",["root"]);const by=e=>{const{classes:t}=e;return he({root:["root"]},hy,t)},yy=D(at,{name:"MuiAlertTitle",slot:"Root"})(pe(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Es=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiAlertTitle"}),{className:a,...i}=r,s=r,l=by(s);return m.jsx(yy,{gutterBottom:!0,component:"div",ownerState:s,ref:n,className:Q(l.root,a),...i})});process.env.NODE_ENV!=="production"&&(Es.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Ra=e=>e.scrollTop;function ho(e,t){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:a.transitionDelay}}function vy(e){return ge("MuiCollapse",e)}be("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const xy=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return he(r,vy,n)},Cy=D("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(pe(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),wy=D("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Ty=D("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Jr=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiCollapse"}),{addEndListener:a,children:i,className:s,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:f,onEntered:y,onEntering:x,onExit:h,onExited:p,onExiting:b,orientation:v="vertical",slots:O={},slotProps:T={},style:C,timeout:S=Tu.standard,TransitionComponent:E=Ut,...P}=r,$={...r,orientation:v,collapsedSize:l},I=xy($),N=xt(),A=jo(),g=w.useRef(null),j=w.useRef(),R=typeof l=="number"?`${l}px`:l,M=v==="horizontal",k=M?"width":"height",z=w.useRef(null),F=nt(n,z),_=ue=>ke=>{if(ue){const Ee=z.current;ke===void 0?ue(Ee):ue(Ee,ke)}},B=()=>g.current?g.current[M?"clientWidth":"clientHeight"]:0,L=_((ue,ke)=>{g.current&&M&&(g.current.style.position="absolute"),ue.style[k]=R,f&&f(ue,ke)}),G=_((ue,ke)=>{const Ee=B();g.current&&M&&(g.current.style.position="");const{duration:oe,easing:Be}=ho({style:C,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const Se=N.transitions.getAutoHeightDuration(Ee);ue.style.transitionDuration=`${Se}ms`,j.current=Se}else ue.style.transitionDuration=typeof oe=="string"?oe:`${oe}ms`;ue.style[k]=`${Ee}px`,ue.style.transitionTimingFunction=Be,x&&x(ue,ke)}),J=_((ue,ke)=>{ue.style[k]="auto",y&&y(ue,ke)}),te=_(ue=>{ue.style[k]=`${B()}px`,h&&h(ue)}),K=_(p),U=_(ue=>{const ke=B(),{duration:Ee,easing:oe}=ho({style:C,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const Be=N.transitions.getAutoHeightDuration(ke);ue.style.transitionDuration=`${Be}ms`,j.current=Be}else ue.style.transitionDuration=typeof Ee=="string"?Ee:`${Ee}ms`;ue.style[k]=R,ue.style.transitionTimingFunction=oe,b&&b(ue)}),ne=ue=>{S==="auto"&&A.start(j.current||0,ue),a&&a(z.current,ue)},le={slots:O,slotProps:T,component:c},[Z,X]=me("root",{ref:F,className:Q(I.root,s),elementType:Cy,externalForwardedProps:le,ownerState:$,additionalProps:{style:{[M?"minWidth":"minHeight"]:R,...C}}}),[ce,W]=me("wrapper",{ref:g,className:I.wrapper,elementType:wy,externalForwardedProps:le,ownerState:$}),[ae,se]=me("wrapperInner",{className:I.wrapperInner,elementType:Ty,externalForwardedProps:le,ownerState:$});return m.jsx(E,{in:d,onEnter:L,onEntered:J,onEntering:G,onExit:te,onExited:K,onExiting:U,addEndListener:ne,nodeRef:z,timeout:S==="auto"?null:S,...P,children:(ue,{ownerState:ke,...Ee})=>{const oe={...$,state:ue};return m.jsx(Z,{...X,className:Q(X.className,{entered:I.entered,exited:!d&&R==="0px"&&I.hidden}[ue]),ownerState:oe,...Ee,children:m.jsx(ce,{...W,ownerState:oe,children:m.jsx(ae,{...se,ownerState:oe,children:i})})})}})});process.env.NODE_ENV!=="production"&&(Jr.propTypes={addEndListener:o.func,children:o.node,classes:o.object,className:o.string,collapsedSize:o.oneOfType([o.number,o.string]),component:hr,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,orientation:o.oneOf(["horizontal","vertical"]),slotProps:o.shape({root:o.oneOfType([o.func,o.object]),wrapper:o.oneOfType([o.func,o.object]),wrapperInner:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,wrapper:o.elementType,wrapperInner:o.elementType}),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});Jr&&(Jr.muiSupportAuto=!0);const od=({variante:e="info",diseno:t="estandar",titulo:n,descripcion:r,cerrable:a=!1,abierto:i=!0,alCerrar:s,tiempoAutoCierre:l,accion:c,icono:u,className:d="",children:f,sx:y,...x})=>{const h=xt(),[p,b]=Re.useState(i);Re.useEffect(()=>{b(i)},[i]),Re.useEffect(()=>{if(l&&l>0&&p){const E=setTimeout(()=>{s&&s(),b(!1)},l);return()=>clearTimeout(E)}},[l,p,s]);const v=E=>{switch(E){case"peligro":return"error";case"exito":return"success";case"advertencia":return"warning";default:return"info"}},O=E=>{switch(E){case"lleno":return"filled";case"contorno":return"outlined";default:return"standard"}},T=()=>{if(t!=="suave")return{};const E=v(e),P=h.palette[E];if(!P)return{};const $=P.main;return{backgroundColor:ve($,.12),color:$,"& .MuiAlert-icon":{color:$},"& .MuiAlertTitle-root":{color:$}}},C=()=>{s&&s(),b(!1)},S=i!==void 0?i:p;return m.jsx(Jr,{in:S,children:m.jsxs(Os,{severity:v(e),variant:O(t),onClose:a||s?C:void 0,className:d,icon:u,action:c,sx:{borderRadius:"12px",mb:2,border:t==="contorno"?"1px solid":void 0,boxShadow:t==="lleno"?"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)":"0 1px 2px 0 rgba(0,0,0,0.05)",alignItems:"center",...T(),"& .MuiAlertTitle-root":{fontWeight:700,mb:r||f?.5:0,fontSize:"0.95rem",lineHeight:1.4},"& .MuiAlert-message":{width:"100%",padding:0,display:"flex",flexDirection:"column",justifyContent:"center"},"& .MuiAlert-icon":{padding:0,mr:1.5,opacity:t==="suave"?1:.9},...y},...x,children:[n&&m.jsx(Es,{children:n}),r&&m.jsx(Ue,{component:"div",sx:{opacity:.9},children:r}),f]})})},Sy=od;function Oy(e){const{prototype:t={}}=e;return!!t.isReactComponent}function nd(e,t,n,r,a){const i=e[t],s=a||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!Oy(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Oo=Tt(o.element,nd);Oo.isRequired=Tt(o.element.isRequired,nd);function Eo(e){return parseInt(w.version,10)>=19?e?.props?.ref||null:e?.ref||null}function _i(e){return`scale(${e}, ${e**2})`}const Ey={entering:{opacity:1,transform:_i(1)},entered:{opacity:1,transform:"none"}},mi=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qo=w.forwardRef(function(t,n){const{addEndListener:r,appear:a=!0,children:i,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:y,onExiting:x,style:h,timeout:p="auto",TransitionComponent:b=Ut,...v}=t,O=jo(),T=w.useRef(),C=xt(),S=w.useRef(null),E=nt(S,Eo(i),n),P=M=>k=>{if(M){const z=S.current;k===void 0?M(z):M(z,k)}},$=P(d),I=P((M,k)=>{Ra(M);const{duration:z,delay:F,easing:_}=ho({style:h,timeout:p,easing:s},{mode:"enter"});let B;p==="auto"?(B=C.transitions.getAutoHeightDuration(M.clientHeight),T.current=B):B=z,M.style.transition=[C.transitions.create("opacity",{duration:B,delay:F}),C.transitions.create("transform",{duration:mi?B:B*.666,delay:F,easing:_})].join(","),c&&c(M,k)}),N=P(u),A=P(x),g=P(M=>{const{duration:k,delay:z,easing:F}=ho({style:h,timeout:p,easing:s},{mode:"exit"});let _;p==="auto"?(_=C.transitions.getAutoHeightDuration(M.clientHeight),T.current=_):_=k,M.style.transition=[C.transitions.create("opacity",{duration:_,delay:z}),C.transitions.create("transform",{duration:mi?_:_*.666,delay:mi?z:z||_*.333,easing:F})].join(","),M.style.opacity=0,M.style.transform=_i(.75),f&&f(M)}),j=P(y),R=M=>{p==="auto"&&O.start(T.current||0,M),r&&r(S.current,M)};return m.jsx(b,{appear:a,in:l,nodeRef:S,onEnter:I,onEntered:N,onEntering:$,onExit:g,onExited:j,onExiting:A,addEndListener:R,timeout:p==="auto"?null:p,...v,children:(M,{ownerState:k,...z})=>w.cloneElement(i,{style:{opacity:0,transform:_i(.75),visibility:M==="exited"&&!l?"hidden":void 0,...Ey[M],...h,...i.props.style},ref:E,...z})})});process.env.NODE_ENV!=="production"&&(Qo.propTypes={addEndListener:o.func,appear:o.bool,children:Oo.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});Qo&&(Qo.muiSupportAuto=!0);function bo(e,t,n,r,a){if(process.env.NODE_ENV==="production")return null;const i=e[t],s=a||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var At="top",Zt="bottom",Qt="right",Lt="left",ks="auto",br=[At,Zt,Qt,Lt],wn="start",ir="end",ky="clippingParents",rd="viewport",Ln="popper",Py="reference",ec=br.reduce(function(e,t){return e.concat([t+"-"+wn,t+"-"+ir])},[]),ad=[].concat(br,[ks]).reduce(function(e,t){return e.concat([t,t+"-"+wn,t+"-"+ir])},[]),Ry="beforeRead",$y="read",Iy="afterRead",jy="beforeMain",My="main",Ny="afterMain",Ay="beforeWrite",Ly="write",Dy="afterWrite",By=[Ry,$y,Iy,jy,My,Ny,Ay,Ly,Dy];function yo(e){return e?(e.nodeName||"").toLowerCase():null}function Wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function en(e){var t=Wt(e).Element;return e instanceof t||e instanceof Element}function Yt(e){var t=Wt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ps(e){if(typeof ShadowRoot>"u")return!1;var t=Wt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Fy(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!Yt(i)||!yo(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(s){var l=a[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function zy(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,u){return c[u]="",c},{});!Yt(a)||!yo(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(c){a.removeAttribute(c)}))})}}const Vy={name:"applyStyles",enabled:!0,phase:"write",fn:Fy,effect:zy,requires:["computeStyles"]};function mo(e){return e.split("-")[0]}var Xo=Math.max,Zr=Math.min,Tn=Math.round;function Wi(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function id(){return!/^((?!chrome|android).)*safari/i.test(Wi())}function Sn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&Yt(e)&&(a=e.offsetWidth>0&&Tn(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Tn(r.height)/e.offsetHeight||1);var s=en(e)?Wt(e):window,l=s.visualViewport,c=!id()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/a,d=(r.top+(c&&l?l.offsetTop:0))/i,f=r.width/a,y=r.height/i;return{width:f,height:y,top:d,right:u+f,bottom:d+y,left:u,x:u,y:d}}function Rs(e){var t=Sn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function sd(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ps(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function So(e){return Wt(e).getComputedStyle(e)}function _y(e){return["table","td","th"].indexOf(yo(e))>=0}function zo(e){return((en(e)?e.ownerDocument:e.document)||window.document).documentElement}function $a(e){return yo(e)==="html"?e:e.assignedSlot||e.parentNode||(Ps(e)?e.host:null)||zo(e)}function tc(e){return!Yt(e)||So(e).position==="fixed"?null:e.offsetParent}function Wy(e){var t=/firefox/i.test(Wi()),n=/Trident/i.test(Wi());if(n&&Yt(e)){var r=So(e);if(r.position==="fixed")return null}var a=$a(e);for(Ps(a)&&(a=a.host);Yt(a)&&["html","body"].indexOf(yo(a))<0;){var i=So(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function yr(e){for(var t=Wt(e),n=tc(e);n&&_y(n)&&So(n).position==="static";)n=tc(n);return n&&(yo(n)==="html"||yo(n)==="body"&&So(n).position==="static")?t:n||Wy(e)||t}function $s(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jn(e,t,n){return Xo(e,Zr(t,n))}function Uy(e,t,n){var r=Jn(e,t,n);return r>n?n:r}function ld(){return{top:0,right:0,bottom:0,left:0}}function cd(e){return Object.assign({},ld(),e)}function ud(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Hy=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,cd(typeof t!="number"?t:ud(t,br))};function qy(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=mo(n.placement),c=$s(l),u=[Lt,Qt].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!s)){var f=Hy(a.padding,n),y=Rs(i),x=c==="y"?At:Lt,h=c==="y"?Zt:Qt,p=n.rects.reference[d]+n.rects.reference[c]-s[c]-n.rects.popper[d],b=s[c]-n.rects.reference[c],v=yr(i),O=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,T=p/2-b/2,C=f[x],S=O-y[d]-f[h],E=O/2-y[d]/2+T,P=Jn(C,E,S),$=c;n.modifiersData[r]=(t={},t[$]=P,t.centerOffset=P-E,t)}}function Gy(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||sd(t.elements.popper,a)&&(t.elements.arrow=a))}const Ky={name:"arrow",enabled:!0,phase:"main",fn:qy,effect:Gy,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function On(e){return e.split("-")[1]}var Yy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xy(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Tn(n*a)/a||0,y:Tn(r*a)/a||0}}function oc(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,y=s.x,x=y===void 0?0:y,h=s.y,p=h===void 0?0:h,b=typeof d=="function"?d({x,y:p}):{x,y:p};x=b.x,p=b.y;var v=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),T=Lt,C=At,S=window;if(u){var E=yr(n),P="clientHeight",$="clientWidth";if(E===Wt(n)&&(E=zo(n),So(E).position!=="static"&&l==="absolute"&&(P="scrollHeight",$="scrollWidth")),E=E,a===At||(a===Lt||a===Qt)&&i===ir){C=Zt;var I=f&&E===S&&S.visualViewport?S.visualViewport.height:E[P];p-=I-r.height,p*=c?1:-1}if(a===Lt||(a===At||a===Zt)&&i===ir){T=Qt;var N=f&&E===S&&S.visualViewport?S.visualViewport.width:E[$];x-=N-r.width,x*=c?1:-1}}var A=Object.assign({position:l},u&&Yy),g=d===!0?Xy({x,y:p},Wt(n)):{x,y:p};if(x=g.x,p=g.y,c){var j;return Object.assign({},A,(j={},j[C]=O?"0":"",j[T]=v?"0":"",j.transform=(S.devicePixelRatio||1)<=1?"translate("+x+"px, "+p+"px)":"translate3d("+x+"px, "+p+"px, 0)",j))}return Object.assign({},A,(t={},t[C]=O?p+"px":"",t[T]=v?x+"px":"",t.transform="",t))}function Jy(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:mo(t.placement),variation:On(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,oc(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,oc(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Zy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jy,data:{}};var Rr={passive:!0};function Qy(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,l=s===void 0?!0:s,c=Wt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Rr)}),l&&c.addEventListener("resize",n.update,Rr),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Rr)}),l&&c.removeEventListener("resize",n.update,Rr)}}const ev={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Qy,data:{}};var tv={left:"right",right:"left",bottom:"top",top:"bottom"};function Wr(e){return e.replace(/left|right|bottom|top/g,function(t){return tv[t]})}var ov={start:"end",end:"start"};function nc(e){return e.replace(/start|end/g,function(t){return ov[t]})}function Is(e){var t=Wt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function js(e){return Sn(zo(e)).left+Is(e).scrollLeft}function nv(e,t){var n=Wt(e),r=zo(e),a=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;var u=id();(u||!u&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:s,x:l+js(e),y:c}}function rv(e){var t,n=zo(e),r=Is(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Xo(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=Xo(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+js(e),c=-r.scrollTop;return So(a||n).direction==="rtl"&&(l+=Xo(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function Ms(e){var t=So(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function dd(e){return["html","body","#document"].indexOf(yo(e))>=0?e.ownerDocument.body:Yt(e)&&Ms(e)?e:dd($a(e))}function Zn(e,t){var n;t===void 0&&(t=[]);var r=dd(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Wt(r),s=a?[i].concat(i.visualViewport||[],Ms(r)?r:[]):r,l=t.concat(s);return a?l:l.concat(Zn($a(s)))}function Ui(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function av(e,t){var n=Sn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function rc(e,t,n){return t===rd?Ui(nv(e,n)):en(t)?av(t,n):Ui(rv(zo(e)))}function iv(e){var t=Zn($a(e)),n=["absolute","fixed"].indexOf(So(e).position)>=0,r=n&&Yt(e)?yr(e):e;return en(r)?t.filter(function(a){return en(a)&&sd(a,r)&&yo(a)!=="body"}):[]}function sv(e,t,n,r){var a=t==="clippingParents"?iv(e):[].concat(t),i=[].concat(a,[n]),s=i[0],l=i.reduce(function(c,u){var d=rc(e,u,r);return c.top=Xo(d.top,c.top),c.right=Zr(d.right,c.right),c.bottom=Zr(d.bottom,c.bottom),c.left=Xo(d.left,c.left),c},rc(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function pd(e){var t=e.reference,n=e.element,r=e.placement,a=r?mo(r):null,i=r?On(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(a){case At:c={x:s,y:t.y-n.height};break;case Zt:c={x:s,y:t.y+t.height};break;case Qt:c={x:t.x+t.width,y:l};break;case Lt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=a?$s(a):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case wn:c[u]=c[u]-(t[d]/2-n[d]/2);break;case ir:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function sr(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?ky:l,u=n.rootBoundary,d=u===void 0?rd:u,f=n.elementContext,y=f===void 0?Ln:f,x=n.altBoundary,h=x===void 0?!1:x,p=n.padding,b=p===void 0?0:p,v=cd(typeof b!="number"?b:ud(b,br)),O=y===Ln?Py:Ln,T=e.rects.popper,C=e.elements[h?O:y],S=sv(en(C)?C:C.contextElement||zo(e.elements.popper),c,d,s),E=Sn(e.elements.reference),P=pd({reference:E,element:T,placement:a}),$=Ui(Object.assign({},T,P)),I=y===Ln?$:E,N={top:S.top-I.top+v.top,bottom:I.bottom-S.bottom+v.bottom,left:S.left-I.left+v.left,right:I.right-S.right+v.right},A=e.modifiersData.offset;if(y===Ln&&A){var g=A[a];Object.keys(N).forEach(function(j){var R=[Qt,Zt].indexOf(j)>=0?1:-1,M=[At,Zt].indexOf(j)>=0?"y":"x";N[j]+=g[M]*R})}return N}function lv(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?ad:c,d=On(r),f=d?l?ec:ec.filter(function(h){return On(h)===d}):br,y=f.filter(function(h){return u.indexOf(h)>=0});y.length===0&&(y=f);var x=y.reduce(function(h,p){return h[p]=sr(e,{placement:p,boundary:a,rootBoundary:i,padding:s})[mo(p)],h},{});return Object.keys(x).sort(function(h,p){return x[h]-x[p]})}function cv(e){if(mo(e)===ks)return[];var t=Wr(e);return[nc(e),t,nc(t)]}function uv(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,y=n.altBoundary,x=n.flipVariations,h=x===void 0?!0:x,p=n.allowedAutoPlacements,b=t.options.placement,v=mo(b),O=v===b,T=c||(O||!h?[Wr(b)]:cv(b)),C=[b].concat(T).reduce(function(te,K){return te.concat(mo(K)===ks?lv(t,{placement:K,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:p}):K)},[]),S=t.rects.reference,E=t.rects.popper,P=new Map,$=!0,I=C[0],N=0;N<C.length;N++){var A=C[N],g=mo(A),j=On(A)===wn,R=[At,Zt].indexOf(g)>=0,M=R?"width":"height",k=sr(t,{placement:A,boundary:d,rootBoundary:f,altBoundary:y,padding:u}),z=R?j?Qt:Lt:j?Zt:At;S[M]>E[M]&&(z=Wr(z));var F=Wr(z),_=[];if(i&&_.push(k[g]<=0),l&&_.push(k[z]<=0,k[F]<=0),_.every(function(te){return te})){I=A,$=!1;break}P.set(A,_)}if($)for(var B=h?3:1,L=function(K){var U=C.find(function(ne){var le=P.get(ne);if(le)return le.slice(0,K).every(function(Z){return Z})});if(U)return I=U,"break"},G=B;G>0;G--){var J=L(G);if(J==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const dv={name:"flip",enabled:!0,phase:"main",fn:uv,requiresIfExists:["offset"],data:{_skip:!1}};function ac(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ic(e){return[At,Qt,Zt,Lt].some(function(t){return e[t]>=0})}function pv(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=sr(t,{elementContext:"reference"}),l=sr(t,{altBoundary:!0}),c=ac(s,r),u=ac(l,a,i),d=ic(c),f=ic(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const fv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pv};function mv(e,t,n){var r=mo(e),a=[Lt,At].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*a,[Lt,Qt].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function gv(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=ad.reduce(function(d,f){return d[f]=mv(f,t.rects,i),d},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const hv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gv};function bv(e){var t=e.state,n=e.name;t.modifiersData[n]=pd({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const yv={name:"popperOffsets",enabled:!0,phase:"read",fn:bv,data:{}};function vv(e){return e==="x"?"y":"x"}function xv(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,y=n.tether,x=y===void 0?!0:y,h=n.tetherOffset,p=h===void 0?0:h,b=sr(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),v=mo(t.placement),O=On(t.placement),T=!O,C=$s(v),S=vv(C),E=t.modifiersData.popperOffsets,P=t.rects.reference,$=t.rects.popper,I=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,N=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,g={x:0,y:0};if(E){if(i){var j,R=C==="y"?At:Lt,M=C==="y"?Zt:Qt,k=C==="y"?"height":"width",z=E[C],F=z+b[R],_=z-b[M],B=x?-$[k]/2:0,L=O===wn?P[k]:$[k],G=O===wn?-$[k]:-P[k],J=t.elements.arrow,te=x&&J?Rs(J):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ld(),U=K[R],ne=K[M],le=Jn(0,P[k],te[k]),Z=T?P[k]/2-B-le-U-N.mainAxis:L-le-U-N.mainAxis,X=T?-P[k]/2+B+le+ne+N.mainAxis:G+le+ne+N.mainAxis,ce=t.elements.arrow&&yr(t.elements.arrow),W=ce?C==="y"?ce.clientTop||0:ce.clientLeft||0:0,ae=(j=A?.[C])!=null?j:0,se=z+Z-ae-W,ue=z+X-ae,ke=Jn(x?Zr(F,se):F,z,x?Xo(_,ue):_);E[C]=ke,g[C]=ke-z}if(l){var Ee,oe=C==="x"?At:Lt,Be=C==="x"?Zt:Qt,Se=E[S],ye=S==="y"?"height":"width",ie=Se+b[oe],Fe=Se-b[Be],Me=[At,Lt].indexOf(v)!==-1,re=(Ee=A?.[S])!=null?Ee:0,ee=Me?ie:Se-P[ye]-$[ye]-re+N.altAxis,xe=Me?Se+P[ye]+$[ye]-re-N.altAxis:Fe,Oe=x&&Me?Uy(ee,Se,xe):Jn(x?ee:ie,Se,x?xe:Fe);E[S]=Oe,g[S]=Oe-Se}t.modifiersData[r]=g}}const Cv={name:"preventOverflow",enabled:!0,phase:"main",fn:xv,requiresIfExists:["offset"]};function wv(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Tv(e){return e===Wt(e)||!Yt(e)?Is(e):wv(e)}function Sv(e){var t=e.getBoundingClientRect(),n=Tn(t.width)/e.offsetWidth||1,r=Tn(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ov(e,t,n){n===void 0&&(n=!1);var r=Yt(t),a=Yt(t)&&Sv(t),i=zo(t),s=Sn(e,a,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((yo(t)!=="body"||Ms(i))&&(l=Tv(t)),Yt(t)?(c=Sn(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=js(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Ev(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&a(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function kv(e){var t=Ev(e);return By.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function Pv(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Rv(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var sc={placement:"bottom",modifiers:[],strategy:"absolute"};function lc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function $v(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?sc:a;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},sc,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],y=!1,x={state:d,setOptions:function(v){var O=typeof v=="function"?v(d.options):v;p(),d.options=Object.assign({},i,d.options,O),d.scrollParents={reference:en(l)?Zn(l):l.contextElement?Zn(l.contextElement):[],popper:Zn(c)};var T=kv(Rv([].concat(r,d.options.modifiers)));return d.orderedModifiers=T.filter(function(C){return C.enabled}),h(),x.update()},forceUpdate:function(){if(!y){var v=d.elements,O=v.reference,T=v.popper;if(lc(O,T)){d.rects={reference:Ov(O,yr(T),d.options.strategy==="fixed"),popper:Rs(T)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var S=d.orderedModifiers[C],E=S.fn,P=S.options,$=P===void 0?{}:P,I=S.name;typeof E=="function"&&(d=E({state:d,options:$,name:I,instance:x})||d)}}}},update:Pv(function(){return new Promise(function(b){x.forceUpdate(),b(d)})}),destroy:function(){p(),y=!0}};if(!lc(l,c))return x;x.setOptions(u).then(function(b){!y&&u.onFirstUpdate&&u.onFirstUpdate(b)});function h(){d.orderedModifiers.forEach(function(b){var v=b.name,O=b.options,T=O===void 0?{}:O,C=b.effect;if(typeof C=="function"){var S=C({state:d,name:v,instance:x,options:T}),E=function(){};f.push(S||E)}})}function p(){f.forEach(function(b){return b()}),f=[]}return x}}var Iv=[ev,yv,Zy,Vy,hv,dv,Cv,Ky,fv],jv=$v({defaultModifiers:Iv});function io(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...i}=e,s=a?{}:Du(n,r),{props:l,internalRef:c}=Bu({...i,externalSlotProps:s}),u=nt(c,s?.ref,e.additionalProps?.ref);return Lu(t,{...l,ref:u},r)}function Mv(e){return typeof e=="function"?e():e}const lr=w.forwardRef(function(t,n){const{children:r,container:a,disablePortal:i=!1}=t,[s,l]=w.useState(null),c=nt(w.isValidElement(r)?Eo(r):null,n);if(Jt(()=>{i||l(Mv(a)||document.body)},[a,i]),Jt(()=>{if(s&&!i)return ji(n,s),()=>{ji(n,null)}},[n,s,i]),i){if(w.isValidElement(r)){const u={ref:c};return w.cloneElement(r,u)}return r}return s&&xp.createPortal(r,s)});process.env.NODE_ENV!=="production"&&(lr.propTypes={children:o.node,container:o.oneOfType([bo,o.func]),disablePortal:o.bool});process.env.NODE_ENV!=="production"&&(lr.propTypes=cs(lr.propTypes));function Nv(e){return ge("MuiPopper",e)}be("MuiPopper",["root"]);function Av(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Qr(e){return typeof e=="function"?e():e}function Ia(e){return e.nodeType!==void 0}function Lv(e){return!Ia(e)}const Dv=e=>{const{classes:t}=e;return he({root:["root"]},Nv,t)},Bv={},Fv=w.forwardRef(function(t,n){const{anchorEl:r,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:y={},slots:x={},TransitionProps:h,ownerState:p,...b}=t,v=w.useRef(null),O=nt(v,n),T=w.useRef(null),C=nt(T,f),S=w.useRef(C);Jt(()=>{S.current=C},[C]),w.useImperativeHandle(f,()=>T.current,[]);const E=Av(u,i),[P,$]=w.useState(E),[I,N]=w.useState(Qr(r));w.useEffect(()=>{T.current&&T.current.forceUpdate()}),w.useEffect(()=>{r&&N(Qr(r))},[r]),Jt(()=>{if(!I||!c)return;const M=F=>{$(F.placement)};if(process.env.NODE_ENV!=="production"&&I&&Ia(I)&&I.nodeType===1){const F=I.getBoundingClientRect();process.env.NODE_ENV!=="test"&&F.top===0&&F.left===0&&F.right===0&&F.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
249
|
-
`))}let k=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:
|
|
250
|
-
`))}else if(!
|
|
251
|
-
`))}return null}),children:
|
|
252
|
-
`))},[
|
|
253
|
-
`))},[B]));const Ve={};
|
|
254
|
-
`));const Ne={...r,isRtl:_,arrow:a,disableInteractive:K,placement:$,PopperComponentProp:I,touch:te.current},We=typeof A.popper=="function"?A.popper(Ne):A.popper,$t=w.useMemo(()=>{let je=[{name:"arrow",enabled:!!G,options:{element:G,padding:4}}];return N.popperOptions?.modifiers&&(je=je.concat(N.popperOptions.modifiers)),We?.popperOptions?.modifiers&&(je=je.concat(We.popperOptions.modifiers)),{...N.popperOptions,...We?.popperOptions,modifiers:je}},[G,N.popperOptions,We?.popperOptions]),Ot=Wv(Ne),ft=typeof A.transition=="function"?A.transition(Ne):A.transition,Ce={slots:{popper:l.Popper,transition:l.Transition??R,tooltip:l.Tooltip,arrow:l.Arrow,...g},slotProps:{arrow:A.arrow??c.arrow,popper:{...N,...We??c.popper},tooltip:A.tooltip??c.tooltip,transition:{...M,...ft??c.transition}}},[Ae,Ze]=me("popper",{elementType:Uv,externalForwardedProps:Ce,ownerState:Ne,className:Q(Ot.popper,N?.className)}),[bt,_e]=me("transition",{elementType:Qo,externalForwardedProps:Ce,ownerState:Ne}),[rt,It]=me("tooltip",{elementType:Hv,className:Ot.tooltip,externalForwardedProps:Ce,ownerState:Ne}),[kt,mt]=me("arrow",{elementType:qv,className:Ot.arrow,externalForwardedProps:Ce,ownerState:Ne,ref:J});return m.jsxs(w.Fragment,{children:[w.cloneElement(z,de),m.jsx(Ae,{as:I??vr,placement:$,anchorEl:v?{getBoundingClientRect:()=>({top:Dn.y,left:Dn.x,right:Dn.x,bottom:Dn.y,width:0,height:0})}:B,popperRef:xe,open:B?W:!1,id:ae,transition:!0,...Ve,...Ze,popperOptions:$t,children:({TransitionProps:je})=>m.jsx(bt,{timeout:F.transitions.duration.shorter,...je,..._e,children:m.jsxs(rt,{...It,children:[j,a?m.jsx(kt,{...mt}):null]})})})]})});process.env.NODE_ENV!=="production"&&(xr.propTypes={arrow:o.bool,children:Oo.isRequired,classes:o.object,className:o.string,components:o.shape({Arrow:o.elementType,Popper:o.elementType,Tooltip:o.elementType,Transition:o.elementType}),componentsProps:o.shape({arrow:o.object,popper:o.object,tooltip:o.object,transition:o.object}),describeChild:o.bool,disableFocusListener:o.bool,disableHoverListener:o.bool,disableInteractive:o.bool,disableTouchListener:o.bool,enterDelay:o.number,enterNextDelay:o.number,enterTouchDelay:o.number,followCursor:o.bool,id:o.string,leaveDelay:o.number,leaveTouchDelay:o.number,onClose:o.func,onOpen:o.func,open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:o.elementType,PopperProps:o.object,slotProps:o.shape({arrow:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),tooltip:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({arrow:o.elementType,popper:o.elementType,tooltip:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,TransitionComponent:o.elementType,TransitionProps:o.object});function uc({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,a)=>n(r)===n(t[a]))}function dc(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Gv(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:a="any",stringify:i,trim:s=!1}=e;return(l,{inputValue:c,getOptionLabel:u})=>{let d=s?c.trim():c;n&&(d=d.toLowerCase()),t&&(d=dc(d));const f=d?l.filter(y=>{let x=(i||u)(y);return n&&(x=x.toLowerCase()),t&&(x=dc(x)),a==="start"?x.startsWith(d):x.includes(d)}):l;return typeof r=="number"?f.slice(0,r):f}}const Kv=Gv(),pc=5,Yv=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),Xv=[];function fc(e,t,n,r){if(t||e==null||r)return"";const a=n(e);return typeof a=="string"?a:""}function Jv(e){const{unstable_isActiveElementInListbox:t=Yv,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:a=!1,autoSelect:i=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?Xv:null,disableClearable:f=!1,disableCloseOnSelect:y=!1,disabled:x,disabledItemsFocusable:h=!1,disableListWrap:p=!1,filterOptions:b=Kv,filterSelectedOptions:v=!1,freeSolo:O=!1,getOptionDisabled:T,getOptionKey:C,getOptionLabel:S=Y=>Y.label??Y,groupBy:E,handleHomeEndKeys:P=!e.freeSolo,id:$,includeInputInList:I=!1,inputValue:N,isOptionEqualToValue:A=(Y,H)=>Y===H,multiple:g=!1,onChange:j,onClose:R,onHighlightChange:M,onInputChange:k,onOpen:z,open:F,openOnFocus:_=!1,options:B,readOnly:L=!1,renderValue:G,selectOnFocus:J=!e.freeSolo,value:te}=e,K=vo($);let U=S;U=Y=>{const H=S(Y);if(typeof H!="string"){if(process.env.NODE_ENV!=="production"){const fe=H===void 0?"undefined":`${typeof H} (${H})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${fe} instead of a string for ${JSON.stringify(Y)}.`)}return String(H)}return H};const ne=w.useRef(!1),le=w.useRef(!0),Z=w.useRef(null),X=w.useRef(null),[ce,W]=w.useState(null),[ae,se]=w.useState(-1),ue=a?0:-1,ke=w.useRef(ue),Ee=w.useRef(fc(d??te,g,U)).current,[oe,Be]=po({controlled:te,default:d,name:u}),[Se,ye]=po({controlled:N,default:Ee,name:u,state:"inputValue"}),[ie,Fe]=w.useState(!1),Me=w.useCallback((Y,H,fe)=>{if(!(g?oe.length<H.length:H!==null)&&!l)return;const Ie=fc(H,g,U,G);Se!==Ie&&(ye(Ie),k&&k(Y,Ie,fe))},[U,Se,g,k,ye,l,oe,G]),[re,ee]=po({controlled:F,default:!1,name:u,state:"open"}),[xe,Oe]=w.useState(!0),Pe=!g&&oe!=null&&Se===U(oe),Te=re&&!L,de=Te?b(B.filter(Y=>!(v&&(g?oe:[oe]).some(H=>H!==null&&A(Y,H)))),{inputValue:Pe&&xe?"":Se,getOptionLabel:U}):[],Ve=vs({filteredOptions:de,value:oe,inputValue:Se});w.useEffect(()=>{const Y=oe!==Ve.value;ie&&!Y||O&&!Y||Me(null,oe,"reset")},[oe,Me,ie,Ve.value,O]);const Ne=re&&de.length>0&&!L,We=vt(Y=>{if(Y===-1)Z.current.focus();else{const H=G?"data-item-index":"data-tag-index";ce.querySelector(`[${H}="${Y}"]`).focus()}});w.useEffect(()=>{g&&ae>oe.length-1&&(se(-1),We(-1))},[oe,g,ae,We]);function $t(Y,H){if(!X.current||Y<0||Y>=de.length)return-1;let fe=Y;for(;;){const $e=X.current.querySelector(`[data-option-index="${fe}"]`),Ie=h?!1:!$e||$e.disabled||$e.getAttribute("aria-disabled")==="true";if($e&&$e.hasAttribute("tabindex")&&!Ie)return fe;if(H==="next"?fe=(fe+1)%de.length:fe=(fe-1+de.length)%de.length,fe===Y)return-1}}const Ot=vt(({event:Y,index:H,reason:fe})=>{if(ke.current=H,H===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${K}-option-${H}`),M&&["mouse","keyboard","touch"].includes(fe)&&M(Y,H===-1?null:de[H],fe),!X.current)return;const $e=X.current.querySelector(`[role="option"].${n}-focused`);$e&&($e.classList.remove(`${n}-focused`),$e.classList.remove(`${n}-focusVisible`));let Ie=X.current;if(X.current.getAttribute("role")!=="listbox"&&(Ie=X.current.parentElement.querySelector('[role="listbox"]')),!Ie)return;if(H===-1){Ie.scrollTop=0;return}const it=X.current.querySelector(`[data-option-index="${H}"]`);if(it&&(it.classList.add(`${n}-focused`),fe==="keyboard"&&it.classList.add(`${n}-focusVisible`),Ie.scrollHeight>Ie.clientHeight&&fe!=="mouse"&&fe!=="touch")){const dt=it,Nt=Ie.clientHeight+Ie.scrollTop,rn=dt.offsetTop+dt.offsetHeight;rn>Nt?Ie.scrollTop=rn-Ie.clientHeight:dt.offsetTop-dt.offsetHeight*(E?1.3:0)<Ie.scrollTop&&(Ie.scrollTop=dt.offsetTop-dt.offsetHeight*(E?1.3:0))}}),ft=vt(({event:Y,diff:H,direction:fe="next",reason:$e})=>{if(!Te)return;const it=$t((()=>{const dt=de.length-1;if(H==="reset")return ue;if(H==="start")return 0;if(H==="end")return dt;const Nt=ke.current+H;return Nt<0?Nt===-1&&I?-1:p&&ke.current!==-1||Math.abs(H)>1?0:dt:Nt>dt?Nt===dt+1&&I?-1:p||Math.abs(H)>1?dt:0:Nt})(),fe);if(Ot({index:it,reason:$e,event:Y}),r&&H!=="reset")if(it===-1)Z.current.value=Se;else{const dt=U(de[it]);Z.current.value=dt,dt.toLowerCase().indexOf(Se.toLowerCase())===0&&Se.length>0&&Z.current.setSelectionRange(Se.length,dt.length)}}),Ce=!uc({array1:Ve.filteredOptions,array2:de,parser:U}),Ae=()=>{const Y=(H,fe)=>{const $e=H?U(H):"",Ie=fe?U(fe):"";return $e===Ie};if(ke.current!==-1&&!uc({array1:Ve.filteredOptions,array2:de,parser:U})&&Ve.inputValue===Se&&(g?oe.length===Ve.value.length&&Ve.value.every((H,fe)=>U(oe[fe])===U(H)):Y(Ve.value,oe))){const H=Ve.filteredOptions[ke.current];if(H)return de.findIndex(fe=>U(fe)===U(H))}return-1},Ze=w.useCallback(()=>{if(!Te)return;const Y=Ae();if(Y!==-1){ke.current=Y;return}const H=g?oe[0]:oe;if(de.length===0||H==null){ft({diff:"reset"});return}if(X.current){if(H!=null){const fe=de[ke.current];if(g&&fe&&oe.findIndex(Ie=>A(fe,Ie))!==-1)return;const $e=de.findIndex(Ie=>A(Ie,H));$e===-1?ft({diff:"reset"}):Ot({index:$e});return}if(ke.current>=de.length-1){Ot({index:de.length-1});return}Ot({index:ke.current})}},[de.length,g?!1:oe,ft,Ot,Te,Se,g]),bt=vt(Y=>{ji(X,Y),Y&&Ze()});process.env.NODE_ENV!=="production"&&w.useEffect(()=>{(!Z.current||Z.current.nodeName!=="INPUT")&&(Z.current&&Z.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
255
|
-
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${Z.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"",u==="useAutocomplete"?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join(`
|
|
256
|
-
`)))},[u]),w.useEffect(()=>{(Ce||Te)&&Ze()},[Ze,Ce,Te]);const _e=Y=>{re||(ee(!0),Oe(!0),z&&z(Y))},rt=(Y,H)=>{re&&(ee(!1),R&&R(Y,H))},It=(Y,H,fe,$e)=>{if(g){if(oe.length===H.length&&oe.every((Ie,it)=>Ie===H[it]))return}else if(oe===H)return;j&&j(Y,H,fe,$e),Be(H)},kt=w.useRef(!1),mt=(Y,H,fe="selectOption",$e="options")=>{let Ie=fe,it=H;if(g){if(it=Array.isArray(oe)?oe.slice():[],process.env.NODE_ENV!=="production"){const Nt=it.filter(rn=>A(H,rn));Nt.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${Nt.length} matches.`].join(`
|
|
257
|
-
`))}const dt=it.findIndex(Nt=>A(H,Nt));dt===-1?it.push(H):$e!=="freeSolo"&&(it.splice(dt,1),Ie="removeOption")}Me(Y,it,Ie),It(Y,it,Ie,{option:H}),!y&&(!Y||!Y.ctrlKey&&!Y.metaKey)&&rt(Y,Ie),(s===!0||s==="touch"&&kt.current||s==="mouse"&&!kt.current)&&Z.current.blur()};function je(Y,H){if(Y===-1)return-1;let fe=Y;for(;;){if(H==="next"&&fe===oe.length||H==="previous"&&fe===-1)return-1;const $e=G?"data-item-index":"data-tag-index",Ie=ce.querySelector(`[${$e}="${fe}"]`);if(!Ie||!Ie.hasAttribute("tabindex")||Ie.disabled||Ie.getAttribute("aria-disabled")==="true")fe+=H==="next"?1:-1;else return fe}}const Pt=(Y,H)=>{if(!g)return;Se===""&&rt(Y,"toggleInput");let fe=ae;ae===-1?Se===""&&H==="previous"&&(fe=oe.length-1):(fe+=H==="next"?1:-1,fe<0&&(fe=0),fe===oe.length&&(fe=-1)),fe=je(fe,H),se(fe),We(fe)},wr=Y=>{ne.current=!0,ye(""),k&&k(Y,"","clear"),It(Y,g?[]:null,"clear")},Ha=Y=>H=>{if(Y.onKeyDown&&Y.onKeyDown(H),!H.defaultMuiPrevented&&(ae!==-1&&!["ArrowLeft","ArrowRight"].includes(H.key)&&(se(-1),We(-1)),H.which!==229))switch(H.key){case"Home":Te&&P&&(H.preventDefault(),ft({diff:"start",direction:"next",reason:"keyboard",event:H}));break;case"End":Te&&P&&(H.preventDefault(),ft({diff:"end",direction:"previous",reason:"keyboard",event:H}));break;case"PageUp":H.preventDefault(),ft({diff:-pc,direction:"previous",reason:"keyboard",event:H}),_e(H);break;case"PageDown":H.preventDefault(),ft({diff:pc,direction:"next",reason:"keyboard",event:H}),_e(H);break;case"ArrowDown":H.preventDefault(),ft({diff:1,direction:"next",reason:"keyboard",event:H}),_e(H);break;case"ArrowUp":H.preventDefault(),ft({diff:-1,direction:"previous",reason:"keyboard",event:H}),_e(H);break;case"ArrowLeft":!g&&G&&oe!=null?(se(0),We(0)):Pt(H,"previous");break;case"ArrowRight":!g&&G?(se(-1),We(-1)):Pt(H,"next");break;case"Enter":if(ke.current!==-1&&Te){const fe=de[ke.current],$e=T?T(fe):!1;if(H.preventDefault(),$e)return;mt(H,fe,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else O&&Se!==""&&Pe===!1&&(g&&H.preventDefault(),mt(H,Se,"createOption","freeSolo"));break;case"Escape":Te?(H.preventDefault(),H.stopPropagation(),rt(H,"escape")):c&&(Se!==""||g&&oe.length>0||G)&&(H.preventDefault(),H.stopPropagation(),wr(H));break;case"Backspace":if(g&&!L&&Se===""&&oe.length>0){const fe=ae===-1?oe.length-1:ae,$e=oe.slice();$e.splice(fe,1),It(H,$e,"removeOption",{option:oe[fe]})}!g&&G&&!L&&(Be(null),se(-1),We(-1));break;case"Delete":if(g&&!L&&Se===""&&oe.length>0&&ae!==-1){const fe=ae,$e=oe.slice();$e.splice(fe,1),It(H,$e,"removeOption",{option:oe[fe]})}!g&&G&&!L&&(Be(null),se(-1),We(-1));break}},on=Y=>{Fe(!0),ae!==-1&&(se(-1),We(-1)),_&&!ne.current&&_e(Y)},nn=Y=>{if(t(X)){Z.current.focus();return}Fe(!1),le.current=!0,ne.current=!1,i&&ke.current!==-1&&Te?mt(Y,de[ke.current],"blur"):i&&O&&Se!==""?mt(Y,Se,"blur","freeSolo"):l&&Me(Y,oe,"blur"),rt(Y,"blur")},$n=Y=>{const H=Y.target.value;Se!==H&&(ye(H),Oe(!1),k&&k(Y,H,"input")),H===""?!f&&!g&&It(Y,null,"clear"):_e(Y)},qa=Y=>{const H=Number(Y.currentTarget.getAttribute("data-option-index"));ke.current!==H&&Ot({event:Y,index:H,reason:"mouse"})},Ga=Y=>{Ot({event:Y,index:Number(Y.currentTarget.getAttribute("data-option-index")),reason:"touch"}),kt.current=!0},Ka=Y=>{const H=Number(Y.currentTarget.getAttribute("data-option-index"));mt(Y,de[H],"selectOption"),kt.current=!1},Ya=Y=>H=>{const fe=oe.slice();fe.splice(Y,1),It(H,fe,"removeOption",{option:oe[Y]})},In=Y=>{It(Y,null,"removeOption",{option:oe})},yt=Y=>{re?rt(Y,"toggleInput"):_e(Y)},Ct=Y=>{Y.currentTarget.contains(Y.target)&&Y.target.getAttribute("id")!==K&&Y.preventDefault()},ko=Y=>{Y.currentTarget.contains(Y.target)&&(Z.current.focus(),J&&le.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),le.current=!1)},Xa=Y=>{!x&&(Se===""||!re)&&yt(Y)};let jn=O&&Se.length>0;jn=jn||(g?oe.length>0:oe!==null);let Tr=de;if(E){const Y=new Map;let H=!1;Tr=de.reduce((fe,$e,Ie)=>{const it=E($e);return fe.length>0&&fe[fe.length-1].group===it?fe[fe.length-1].options.push($e):(process.env.NODE_ENV!=="production"&&(Y.get(it)&&!H&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),H=!0),Y.set(it,!0)),fe.push({key:Ie,index:Ie,group:it,options:[$e]})),fe},[])}return x&&ie&&nn(),{getRootProps:(Y={})=>({...Y,onKeyDown:Ha(Y),onMouseDown:Ct,onClick:ko}),getInputLabelProps:()=>({id:`${K}-label`,htmlFor:K}),getInputProps:()=>({id:K,value:Se,onBlur:nn,onFocus:on,onChange:$n,onMouseDown:Xa,"aria-activedescendant":Te?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ne?`${K}-listbox`:void 0,"aria-expanded":Ne,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:x}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:wr}),getItemProps:({index:Y=0}={})=>({...g&&{key:Y},...G?{"data-item-index":Y}:{"data-tag-index":Y},tabIndex:-1,...!L&&{onDelete:g?Ya(Y):In}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:yt}),getTagProps:({index:Y})=>({key:Y,"data-tag-index":Y,tabIndex:-1,...!L&&{onDelete:Ya(Y)}}),getListboxProps:()=>({role:"listbox",id:`${K}-listbox`,"aria-labelledby":`${K}-label`,ref:bt,onMouseDown:Y=>{Y.preventDefault()}}),getOptionProps:({index:Y,option:H})=>{const fe=(g?oe:[oe]).some(Ie=>Ie!=null&&A(H,Ie)),$e=T?T(H):!1;return{key:C?.(H)??U(H),tabIndex:-1,role:"option",id:`${K}-option-${Y}`,onMouseMove:qa,onClick:Ka,onTouchStart:Ga,"data-option-index":Y,"aria-disabled":$e,"aria-selected":fe}},id:K,inputValue:Se,value:oe,dirty:jn,expanded:Te&&ce,popupOpen:Te,focused:ie||ae!==-1,anchorEl:ce,setAnchorEl:W,focusedItem:ae,focusedTag:ae,groupedOptions:Tr}}function Zv(e){return ge("MuiListSubheader",e)}be("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Qv=e=>{const{classes:t,color:n,disableGutters:r,inset:a,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${V(n)}`,!r&&"gutters",a&&"inset",!i&&"sticky"]};return he(s,Zv,t)},e0=D("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${V(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(pe(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),En=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiListSubheader"}),{className:a,color:i="default",component:s="li",disableGutters:l=!1,disableSticky:c=!1,inset:u=!1,...d}=r,f={...r,color:i,component:s,disableGutters:l,disableSticky:c,inset:u},y=Qv(f);return m.jsx(e0,{as:s,className:Q(y.root,a),ref:n,ownerState:f,...d})});En&&(En.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(En.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOf(["default","inherit","primary"]),component:o.elementType,disableGutters:o.bool,disableSticky:o.bool,inset:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const t0=lt(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function o0(e){return ge("MuiChip",e)}const ze=be("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),n0=e=>{const{classes:t,disabled:n,size:r,color:a,iconColor:i,onDelete:s,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${V(r)}`,`color${V(a)}`,l&&"clickable",l&&`clickableColor${V(a)}`,s&&"deletable",s&&`deletableColor${V(a)}`,`${c}${V(a)}`],label:["label",`label${V(r)}`],avatar:["avatar",`avatar${V(r)}`,`avatarColor${V(a)}`],icon:["icon",`icon${V(r)}`,`iconColor${V(i)}`],deleteIcon:["deleteIcon",`deleteIcon${V(r)}`,`deleteIconColor${V(a)}`,`deleteIcon${V(c)}Color${V(a)}`]};return he(u,o0,t)},r0=D("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:a,clickable:i,onDelete:s,size:l,variant:c}=n;return[{[`& .${ze.avatar}`]:t.avatar},{[`& .${ze.avatar}`]:t[`avatar${V(l)}`]},{[`& .${ze.avatar}`]:t[`avatarColor${V(r)}`]},{[`& .${ze.icon}`]:t.icon},{[`& .${ze.icon}`]:t[`icon${V(l)}`]},{[`& .${ze.icon}`]:t[`iconColor${V(a)}`]},{[`& .${ze.deleteIcon}`]:t.deleteIcon},{[`& .${ze.deleteIcon}`]:t[`deleteIcon${V(l)}`]},{[`& .${ze.deleteIcon}`]:t[`deleteIconColor${V(r)}`]},{[`& .${ze.deleteIcon}`]:t[`deleteIcon${V(c)}Color${V(r)}`]},t.root,t[`size${V(l)}`],t[`color${V(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${V(r)}`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${V(r)}`],t[c],t[`${c}${V(r)}`]]}})(pe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${ze.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ze.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ze.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ze.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ze.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ze.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ze.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ze.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ze.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(qe(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${ze.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${ze.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${ze.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ze.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(qe(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${ze.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${ze.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(qe(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${ze.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ze.avatar}`]:{marginLeft:4},[`& .${ze.avatarSmall}`]:{marginLeft:2},[`& .${ze.icon}`]:{marginLeft:4},[`& .${ze.iconSmall}`]:{marginLeft:2},[`& .${ze.deleteIcon}`]:{marginRight:5},[`& .${ze.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(qe()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${ze.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${ze.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${ze.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),a0=D("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${V(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function mc(e){return e.key==="Backspace"||e.key==="Delete"}const ja=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiChip"}),{avatar:a,className:i,clickable:s,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:f,label:y,onClick:x,onDelete:h,onKeyDown:p,onKeyUp:b,size:v="medium",variant:O="filled",tabIndex:T,skipFocusWhenDisabled:C=!1,slots:S={},slotProps:E={},...P}=r,$=w.useRef(null),I=nt($,n),N=U=>{U.stopPropagation(),h&&h(U)},A=U=>{U.currentTarget===U.target&&mc(U)&&U.preventDefault(),p&&p(U)},g=U=>{U.currentTarget===U.target&&h&&mc(U)&&h(U),b&&b(U)},j=s!==!1&&x?!0:s,R=j||h?To:c||"div",M={...r,component:R,disabled:d,size:v,color:l,iconColor:w.isValidElement(f)&&f.props.color||l,onDelete:!!h,clickable:j,variant:O},k=n0(M),z=R===To?{component:c||"div",focusVisibleClassName:k.focusVisible,...h&&{disableRipple:!0}}:{};let F=null;h&&(F=u&&w.isValidElement(u)?w.cloneElement(u,{className:Q(u.props.className,k.deleteIcon),onClick:N}):m.jsx(t0,{className:k.deleteIcon,onClick:N}));let _=null;a&&w.isValidElement(a)&&(_=w.cloneElement(a,{className:Q(k.avatar,a.props.className)}));let B=null;f&&w.isValidElement(f)&&(B=w.cloneElement(f,{className:Q(k.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&_&&B&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const L={slots:S,slotProps:E},[G,J]=me("root",{elementType:r0,externalForwardedProps:{...L,...P},ownerState:M,shouldForwardComponentProp:!0,ref:I,className:Q(k.root,i),additionalProps:{disabled:j&&d?!0:void 0,tabIndex:C&&d?-1:T,...z},getSlotProps:U=>({...U,onClick:ne=>{U.onClick?.(ne),x?.(ne)},onKeyDown:ne=>{U.onKeyDown?.(ne),A(ne)},onKeyUp:ne=>{U.onKeyUp?.(ne),g(ne)}})}),[te,K]=me("label",{elementType:a0,externalForwardedProps:L,ownerState:M,className:k.label});return m.jsxs(G,{as:R,...J,children:[_||B,m.jsx(te,{...K,children:y}),F]})});process.env.NODE_ENV!=="production"&&(ja.propTypes={avatar:o.element,children:Zg,classes:o.object,className:o.string,clickable:o.bool,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,deleteIcon:o.element,disabled:o.bool,icon:o.element,label:o.node,onClick:o.func,onDelete:o.func,onKeyDown:o.func,onKeyUp:o.func,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),skipFocusWhenDisabled:o.bool,slotProps:o.shape({label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({label:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,variant:o.oneOfType([o.oneOf(["filled","outlined"]),o.string])});function jr(e){return parseInt(e,10)||0}const i0={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function s0(e){for(const t in e)return!1;return!0}function gc(e){return s0(e)||e.outerHeightStyle===0&&!e.overflowing}const md=w.forwardRef(function(t,n){const{onChange:r,maxRows:a,minRows:i=1,style:s,value:l,...c}=t,{current:u}=w.useRef(l!=null),d=w.useRef(null),f=nt(n,d),y=w.useRef(null),x=w.useRef(null),h=w.useCallback(()=>{const T=d.current,C=x.current;if(!T||!C)return;const E=no(T).getComputedStyle(T);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=E.width,C.value=T.value||t.placeholder||"x",C.value.slice(-1)===`
|
|
258
|
-
`&&(C.value+=" ");const P=E.boxSizing,$=jr(E.paddingBottom)+jr(E.paddingTop),I=jr(E.borderBottomWidth)+jr(E.borderTopWidth),N=C.scrollHeight;C.value="x";const A=C.scrollHeight;let g=N;i&&(g=Math.max(Number(i)*A,g)),a&&(g=Math.min(Number(a)*A,g)),g=Math.max(g,A);const j=g+(P==="border-box"?$+I:0),R=Math.abs(g-N)<=1;return{outerHeightStyle:j,overflowing:R}},[a,i,t.placeholder]),p=vt(()=>{const T=d.current,C=h();if(!T||!C||gc(C))return!1;const S=C.outerHeightStyle;return y.current!=null&&y.current!==S}),b=w.useCallback(()=>{const T=d.current,C=h();if(!T||!C||gc(C))return;const S=C.outerHeightStyle;y.current!==S&&(y.current=S,T.style.height=`${S}px`),T.style.overflow=C.overflowing?"hidden":""},[h]),v=w.useRef(-1);Jt(()=>{const T=ps(b),C=d?.current;if(!C)return;const S=no(C);S.addEventListener("resize",T);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{p()&&(E.unobserve(C),cancelAnimationFrame(v.current),b(),v.current=requestAnimationFrame(()=>{E.observe(C)}))}),E.observe(C)),()=>{T.clear(),cancelAnimationFrame(v.current),S.removeEventListener("resize",T),E&&E.disconnect()}},[h,b,p]),Jt(()=>{b()});const O=T=>{u||b();const C=T.target,S=C.value.length,E=C.value.endsWith(`
|
|
259
|
-
`),P=C.selectionStart===S;E&&P&&C.setSelectionRange(S,S),r&&r(T)};return m.jsxs(w.Fragment,{children:[m.jsx("textarea",{value:l,onChange:O,ref:f,rows:i,style:s,...c}),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:{...i0.shadow,...s,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(md.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function Vo({props:e,states:t,muiFormControl:n}){return t.reduce((r,a)=>(r[a]=e[a],n&&typeof e[a]>"u"&&(r[a]=n[a]),r),{})}const Cr=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(Cr.displayName="FormControlContext");function ro(){return w.useContext(Cr)}function hc(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ea(e,t=!1){return e&&(hc(e.value)&&e.value!==""||t&&hc(e.defaultValue)&&e.defaultValue!=="")}function l0(e){return e.startAdornment}function c0(e){return ge("MuiInputBase",e)}const Ft=be("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var bc;const Ma=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${V(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Na=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},u0=e=>{const{classes:t,color:n,disabled:r,error:a,endAdornment:i,focused:s,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:f,size:y,startAdornment:x,type:h}=e,p={root:["root",`color${V(n)}`,r&&"disabled",a&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",y&&y!=="medium"&&`size${V(y)}`,d&&"multiline",x&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",h==="search"&&"inputTypeSearch",d&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",x&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return he(p,c0,t)},Aa=D("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ma})(pe(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ft.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),La=D("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Na})(pe(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ft.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Ft.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),yc=Gg({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Da=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,color:c,components:u={},componentsProps:d={},defaultValue:f,disabled:y,disableInjectingGlobalStyles:x,endAdornment:h,error:p,fullWidth:b=!1,id:v,inputComponent:O="input",inputProps:T={},inputRef:C,margin:S,maxRows:E,minRows:P,multiline:$=!1,name:I,onBlur:N,onChange:A,onClick:g,onFocus:j,onKeyDown:R,onKeyUp:M,placeholder:k,readOnly:z,renderSuffix:F,rows:_,size:B,slotProps:L={},slots:G={},startAdornment:J,type:te="text",value:K,...U}=r,ne=T.value!=null?T.value:K,{current:le}=w.useRef(ne!=null),Z=w.useRef(),X=w.useCallback(de=>{process.env.NODE_ENV!=="production"&&de&&de.nodeName!=="INPUT"&&!de.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
260
|
-
`))},[]),ce=nt(Z,C,T.ref,X),[W,ae]=w.useState(!1),se=ro();process.env.NODE_ENV!=="production"&&w.useEffect(()=>{if(se)return se.registerEffect()},[se]);const ue=Vo({props:r,muiFormControl:se,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ue.focused=se?se.focused:W,w.useEffect(()=>{!se&&y&&W&&(ae(!1),N&&N())},[se,y,W,N]);const ke=se&&se.onFilled,Ee=se&&se.onEmpty,oe=w.useCallback(de=>{ea(de)?ke&&ke():Ee&&Ee()},[ke,Ee]);Jt(()=>{le&&oe({value:ne})},[ne,oe,le]);const Be=de=>{j&&j(de),T.onFocus&&T.onFocus(de),se&&se.onFocus?se.onFocus(de):ae(!0)},Se=de=>{N&&N(de),T.onBlur&&T.onBlur(de),se&&se.onBlur?se.onBlur(de):ae(!1)},ye=(de,...Ve)=>{if(!le){const Ne=de.target||Z.current;if(Ne==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":go(1));oe({value:Ne.value})}T.onChange&&T.onChange(de,...Ve),A&&A(de,...Ve)};w.useEffect(()=>{oe(Z.current)},[]);const ie=de=>{Z.current&&de.currentTarget===de.target&&Z.current.focus(),g&&g(de)};let Fe=O,Me=T;$&&Fe==="input"&&(_?(process.env.NODE_ENV!=="production"&&(P||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Me={type:void 0,minRows:_,maxRows:_,...Me}):Me={type:void 0,maxRows:E,minRows:P,...Me},Fe=md);const re=de=>{oe(de.animationName==="mui-auto-fill-cancel"?Z.current:{value:"x"})};w.useEffect(()=>{se&&se.setAdornedStart(!!J)},[se,J]);const ee={...r,color:ue.color||"primary",disabled:ue.disabled,endAdornment:h,error:ue.error,focused:ue.focused,formControl:se,fullWidth:b,hiddenLabel:ue.hiddenLabel,multiline:$,size:ue.size,startAdornment:J,type:te},xe=u0(ee),Oe=G.root||u.Root||Aa,Pe=L.root||d.root||{},Te=G.input||u.Input||La;return Me={...Me,...L.input??d.input},m.jsxs(w.Fragment,{children:[!x&&typeof yc=="function"&&(bc||(bc=m.jsx(yc,{}))),m.jsxs(Oe,{...Pe,ref:n,onClick:ie,...U,...!fo(Oe)&&{ownerState:{...ee,...Pe.ownerState}},className:Q(xe.root,Pe.className,l,z&&"MuiInputBase-readOnly"),children:[J,m.jsx(Cr.Provider,{value:null,children:m.jsx(Te,{"aria-invalid":ue.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ue.disabled,id:v,onAnimationStart:re,name:I,placeholder:k,readOnly:z,required:ue.required,rows:_,value:ne,onKeyDown:R,onKeyUp:M,type:te,...Me,...!fo(Te)&&{as:Fe,ownerState:{...ee,...Me.ownerState}},ref:ce,className:Q(xe.input,Me.className,z&&"MuiInputBase-readOnly"),onBlur:Se,onChange:ye,onFocus:Be})}),h,F?F({...ue,startAdornment:J}):null]})]})});process.env.NODE_ENV!=="production"&&(Da.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:hr,inputProps:o.object,inputRef:Mt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function d0(e){return ge("MuiInput",e)}const Io={...Ft,...be("MuiInput",["root","underline","input"])};function p0(e){return ge("MuiOutlinedInput",e)}const Ht={...Ft,...be("MuiOutlinedInput",["root","notchedOutline","input"])};function f0(e){return ge("MuiFilledInput",e)}const zt={...Ft,...be("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},gd=lt(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function m0(e){return ge("MuiAutocomplete",e)}const De=be("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var vc,xc;const g0=e=>{const{classes:t,disablePortal:n,expanded:r,focused:a,fullWidth:i,hasClearIcon:s,hasPopupIcon:l,inputFocused:c,popupOpen:u,size:d}=e,f={root:["root",r&&"expanded",a&&"focused",i&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${V(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return he(f,m0,t)},h0=D("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:a,hasPopupIcon:i,inputFocused:s,size:l}=n;return[{[`& .${De.tag}`]:t.tag},{[`& .${De.tag}`]:t[`tagSize${V(l)}`]},{[`& .${De.inputRoot}`]:t.inputRoot},{[`& .${De.input}`]:t.input},{[`& .${De.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,a&&t.hasClearIcon]}})({[`&.${De.focused} .${De.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${De.clearIndicator}`]:{visibility:"visible"}},[`& .${De.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${De.inputRoot}`]:{[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:30},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:56},[`& .${De.input}`]:{width:0,minWidth:30}},[`& .${Io.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Io.root}.${Ft.sizeSmall}`]:{[`& .${Io.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ht.root}`]:{padding:9,[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:39},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:65},[`& .${De.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${De.endAdornment}`]:{right:9}},[`& .${Ht.root}.${Ft.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${De.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${zt.root}`]:{paddingTop:19,paddingLeft:8,[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:39},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:65},[`& .${zt.input}`]:{padding:"7px 4px"},[`& .${De.endAdornment}`]:{right:9}},[`& .${zt.root}.${Ft.sizeSmall}`]:{paddingBottom:1,[`& .${zt.input}`]:{padding:"2.5px 4px"}},[`& .${Ft.hiddenLabel}`]:{paddingTop:8},[`& .${zt.root}.${Ft.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${De.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${zt.root}.${Ft.hiddenLabel}.${Ft.sizeSmall}`]:{[`& .${De.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${De.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${De.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${De.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${De.inputRoot}`]:{flexWrap:"wrap"}}}]}),b0=D("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),y0=D(Cn,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),v0=D(Cn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),x0=D(vr,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${De.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(pe(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),C0=D(xo,{name:"MuiAutocomplete",slot:"Paper"})(pe(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),w0=D("div",{name:"MuiAutocomplete",slot:"Loading"})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),T0=D("div",{name:"MuiAutocomplete",slot:"NoOptions"})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),S0=D("ul",{name:"MuiAutocomplete",slot:"Listbox"})(pe(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${De.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${De.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${De.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),O0=D(En,{name:"MuiAutocomplete",slot:"GroupLabel"})(pe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),E0=D("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${De.option}`]:{paddingLeft:24}}),hd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:i=!1,autoSelect:s=!1,blurOnSelect:l=!1,ChipProps:c,className:u,clearIcon:d=vc||(vc=m.jsx(td,{fontSize:"small"})),clearOnBlur:f=!r.freeSolo,clearOnEscape:y=!1,clearText:x="Clear",closeText:h="Close",componentsProps:p,defaultValue:b=r.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:O=!1,disabled:T=!1,disabledItemsFocusable:C=!1,disableListWrap:S=!1,disablePortal:E=!1,filterOptions:P,filterSelectedOptions:$=!1,forcePopupIcon:I="auto",freeSolo:N=!1,fullWidth:A=!1,getLimitTagsText:g=He=>`+${He}`,getOptionDisabled:j,getOptionKey:R,getOptionLabel:M,isOptionEqualToValue:k,groupBy:z,handleHomeEndKeys:F=!r.freeSolo,id:_,includeInputInList:B=!1,inputValue:L,limitTags:G=-1,ListboxComponent:J,ListboxProps:te,loading:K=!1,loadingText:U="Loading…",multiple:ne=!1,noOptionsText:le="No options",onChange:Z,onClose:X,onHighlightChange:ce,onInputChange:W,onOpen:ae,open:se,openOnFocus:ue=!1,openText:ke="Open",options:Ee,PaperComponent:oe,PopperComponent:Be,popupIcon:Se=xc||(xc=m.jsx(gd,{})),readOnly:ye=!1,renderGroup:ie,renderInput:Fe,renderOption:Me,renderTags:re,renderValue:ee,selectOnFocus:xe=!r.freeSolo,size:Oe="medium",slots:Pe={},slotProps:Te={},value:de,...Ve}=r,{getRootProps:Ne,getInputProps:We,getInputLabelProps:$t,getPopupIndicatorProps:Ot,getClearProps:ft,getItemProps:Ce,getListboxProps:Ae,getOptionProps:Ze,value:bt,dirty:_e,expanded:rt,id:It,popupOpen:kt,focused:mt,focusedItem:je,anchorEl:Pt,setAnchorEl:wr,inputValue:Ha,groupedOptions:on}=Jv({...r,componentName:"Autocomplete"}),nn=!v&&!T&&_e&&!ye,$n=(!N||I===!0)&&I!==!1,{onMouseDown:qa}=We(),{ref:Ga,...Ka}=Ae(),In=M||(He=>He.label??He),yt={...r,disablePortal:E,expanded:rt,focused:mt,fullWidth:A,getOptionLabel:In,hasClearIcon:nn,hasPopupIcon:$n,inputFocused:je===-1,popupOpen:kt,size:Oe},Ct=g0(yt),ko={slots:{paper:oe,popper:Be,...Pe},slotProps:{chip:c,listbox:te,...p,...Te}},[Xa,jn]=me("listbox",{elementType:S0,externalForwardedProps:ko,ownerState:yt,className:Ct.listbox,additionalProps:Ka,ref:Ga}),[Tr,Y]=me("paper",{elementType:xo,externalForwardedProps:ko,ownerState:yt,className:Ct.paper}),[H,fe]=me("popper",{elementType:vr,externalForwardedProps:ko,ownerState:yt,className:Ct.popper,additionalProps:{disablePortal:E,style:{width:Pt?Pt.clientWidth:null},role:"presentation",anchorEl:Pt,open:kt}});let $e;const Ie=He=>({className:Ct.tag,disabled:T,...Ce(He)});if(ne?bt.length>0&&(re?$e=re(bt,Ie,yt):ee?$e=ee(bt,Ie,yt):$e=bt.map((He,Po)=>{const{key:Ro,...Mn}=Ie({index:Po});return m.jsx(ja,{label:In(He),size:Oe,...Mn,...ko.slotProps.chip},Ro)})):ee&&bt!=null&&($e=ee(bt,Ie,yt)),G>-1&&Array.isArray($e)){const He=$e.length-G;!mt&&He>0&&($e=$e.splice(0,G),$e.push(m.jsx("span",{className:Ct.tag,children:g(He)},$e.length)))}const dt=ie||(He=>m.jsxs("li",{children:[m.jsx(O0,{className:Ct.groupLabel,ownerState:yt,component:"div",children:He.group}),m.jsx(E0,{className:Ct.groupUl,ownerState:yt,children:He.children})]},He.key)),rn=Me||((He,Po)=>{const{key:Ro,...Mn}=He;return m.jsx("li",{...Mn,children:In(Po)},Ro)}),Qs=(He,Po)=>{const Ro=Ze({option:He,index:Po});return rn({...Ro,className:Ct.option},He,{selected:Ro["aria-selected"],index:Po,inputValue:Ha},yt)},el=ko.slotProps.clearIndicator,tl=ko.slotProps.popupIndicator;return m.jsxs(w.Fragment,{children:[m.jsx(h0,{ref:n,className:Q(Ct.root,u),ownerState:yt,...Ne(Ve),children:Fe({id:It,disabled:T,fullWidth:!0,size:Oe==="small"?"small":void 0,InputLabelProps:$t(),InputProps:{ref:wr,className:Ct.inputRoot,startAdornment:$e,onMouseDown:He=>{He.target===He.currentTarget&&qa(He)},...(nn||$n)&&{endAdornment:m.jsxs(b0,{className:Ct.endAdornment,ownerState:yt,children:[nn?m.jsx(y0,{...ft(),"aria-label":x,title:x,ownerState:yt,...el,className:Q(Ct.clearIndicator,el?.className),children:d}):null,$n?m.jsx(v0,{...Ot(),disabled:T,"aria-label":kt?h:ke,title:kt?h:ke,ownerState:yt,...tl,className:Q(Ct.popupIndicator,tl?.className),children:Se}):null]})}},inputProps:{className:Ct.input,disabled:T,readOnly:ye,...We()}})}),Pt?m.jsx(x0,{as:H,...fe,children:m.jsxs(C0,{as:Tr,...Y,children:[K&&on.length===0?m.jsx(w0,{className:Ct.loading,ownerState:yt,children:U}):null,on.length===0&&!N&&!K?m.jsx(T0,{className:Ct.noOptions,ownerState:yt,role:"presentation",onMouseDown:He=>{He.preventDefault()},children:le}):null,on.length>0?m.jsx(Xa,{as:J,...jn,children:on.map((He,Po)=>z?dt({key:He.key,group:He.group,children:He.options.map((Ro,Mn)=>Qs(Ro,He.index+Mn))}):Qs(He,Po))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(hd.propTypes={autoComplete:o.bool,autoHighlight:o.bool,autoSelect:o.bool,blurOnSelect:o.oneOfType([o.oneOf(["mouse","touch"]),o.bool]),ChipProps:o.object,classes:o.object,className:o.string,clearIcon:o.node,clearOnBlur:o.bool,clearOnEscape:o.bool,clearText:o.string,closeText:o.string,componentsProps:o.shape({clearIndicator:o.object,paper:o.object,popper:o.object,popupIndicator:o.object}),defaultValue:Tt(o.any,e=>e.multiple&&e.defaultValue!==void 0&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join(`
|
|
261
|
-
`)):null),disableClearable:o.bool,disableCloseOnSelect:o.bool,disabled:o.bool,disabledItemsFocusable:o.bool,disableListWrap:o.bool,disablePortal:o.bool,filterOptions:o.func,filterSelectedOptions:o.bool,forcePopupIcon:o.oneOfType([o.oneOf(["auto"]),o.bool]),freeSolo:o.bool,fullWidth:o.bool,getLimitTagsText:o.func,getOptionDisabled:o.func,getOptionKey:o.func,getOptionLabel:o.func,groupBy:o.func,handleHomeEndKeys:o.bool,id:o.string,includeInputInList:o.bool,inputValue:o.string,isOptionEqualToValue:o.func,limitTags:Ts,ListboxComponent:o.elementType,ListboxProps:o.object,loading:o.bool,loadingText:o.node,multiple:o.bool,noOptionsText:o.node,onChange:o.func,onClose:o.func,onHighlightChange:o.func,onInputChange:o.func,onKeyDown:o.func,onOpen:o.func,open:o.bool,openOnFocus:o.bool,openText:o.string,options:o.array.isRequired,PaperComponent:o.elementType,PopperComponent:o.elementType,popupIcon:o.node,readOnly:o.bool,renderGroup:o.func,renderInput:o.func.isRequired,renderOption:o.func,renderTags:o.func,renderValue:o.func,selectOnFocus:o.bool,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({chip:o.oneOfType([o.func,o.object]),clearIndicator:o.oneOfType([o.func,o.object]),listbox:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),popupIndicator:o.oneOfType([o.func,o.object])}),slots:o.shape({listbox:o.elementType,paper:o.elementType,popper:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:Tt(o.any,e=>e.multiple&&e.value!==void 0&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join(`
|
|
262
|
-
`)):null)});const k0={entering:{opacity:1},entered:{opacity:1}},cr=w.forwardRef(function(t,n){const r=xt(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:y,onExit:x,onExited:h,onExiting:p,style:b,timeout:v=a,TransitionComponent:O=Ut,...T}=t,C=w.useRef(null),S=nt(C,Eo(l),n),E=R=>M=>{if(R){const k=C.current;M===void 0?R(k):R(k,M)}},P=E(y),$=E((R,M)=>{Ra(R);const k=ho({style:b,timeout:v,easing:c},{mode:"enter"});R.style.webkitTransition=r.transitions.create("opacity",k),R.style.transition=r.transitions.create("opacity",k),d&&d(R,M)}),I=E(f),N=E(p),A=E(R=>{const M=ho({style:b,timeout:v,easing:c},{mode:"exit"});R.style.webkitTransition=r.transitions.create("opacity",M),R.style.transition=r.transitions.create("opacity",M),x&&x(R)}),g=E(h),j=R=>{i&&i(C.current,R)};return m.jsx(O,{appear:s,in:u,nodeRef:C,onEnter:$,onEntered:I,onEntering:P,onExit:A,onExited:g,onExiting:N,addEndListener:j,timeout:v,...T,children:(R,{ownerState:M,...k})=>w.cloneElement(l,{style:{opacity:0,visibility:R==="exited"&&!u?"hidden":void 0,...k0[R],...b,...l.props.style},ref:S,...k})})});process.env.NODE_ENV!=="production"&&(cr.propTypes={addEndListener:o.func,appear:o.bool,children:Oo.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function P0(e){return ge("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const R0=e=>{const{classes:t,invisible:n}=e;return he({root:["root",n&&"invisible"]},P0,t)},$0=D("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ns=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiBackdrop"}),{children:a,className:i,component:s="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:f={},slots:y={},TransitionComponent:x,transitionDuration:h,...p}=r,b={...r,component:s,invisible:l},v=R0(b),O={transition:x,root:u.Root,...y},T={...d,...f},C={component:s,slots:O,slotProps:T},[S,E]=me("root",{elementType:$0,externalForwardedProps:C,className:Q(v.root,i),ownerState:b}),[P,$]=me("transition",{elementType:cr,externalForwardedProps:C,ownerState:b});return m.jsx(P,{in:c,timeout:h,...p,...$,children:m.jsx(S,{"aria-hidden":!0,...E,classes:v,ref:n,children:a})})});process.env.NODE_ENV!=="production"&&(Ns.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function I0(e){return w.Children.toArray(e).filter(t=>w.isValidElement(t))}function j0(e){return ge("MuiButtonGroup",e)}const Le=be("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),M0=(e,t)=>{const{ownerState:n}=e;return[{[`& .${Le.grouped}`]:t.grouped},{[`& .${Le.grouped}`]:t[`grouped${V(n.orientation)}`]},{[`& .${Le.grouped}`]:t[`grouped${V(n.variant)}`]},{[`& .${Le.grouped}`]:t[`grouped${V(n.variant)}${V(n.orientation)}`]},{[`& .${Le.grouped}`]:t[`grouped${V(n.variant)}${V(n.color)}`]},{[`& .${Le.firstButton}`]:t.firstButton},{[`& .${Le.lastButton}`]:t.lastButton},{[`& .${Le.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},N0=e=>{const{classes:t,color:n,disabled:r,disableElevation:a,fullWidth:i,orientation:s,variant:l}=e,c={root:["root",l,s,i&&"fullWidth",a&&"disableElevation",`color${V(n)}`],grouped:["grouped",`grouped${V(s)}`,`grouped${V(l)}`,`grouped${V(l)}${V(s)}`,`grouped${V(l)}${V(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return he(c,j0,t)},A0=D("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:M0})(pe(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Le.lastButton},& .${Le.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Le.lastButton},& .${Le.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderRight:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Le.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottom:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Le.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(qe()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderColor:e.alpha((e.vars||e).palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Le.lastButton},& .${Le.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Le.lastButton},& .${Le.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Le.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Le.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(qe(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${Le.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),bd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiButtonGroup"}),{children:a,className:i,color:s="primary",component:l="div",disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,disableRipple:f=!1,fullWidth:y=!1,orientation:x="horizontal",size:h="medium",variant:p="outlined",...b}=r,v={...r,color:s,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,disableRipple:f,fullWidth:y,orientation:x,size:h,variant:p},O=N0(v),T=w.useMemo(()=>({className:O.grouped,color:s,disabled:c,disableElevation:u,disableFocusRipple:d,disableRipple:f,fullWidth:y,size:h,variant:p}),[s,c,u,d,f,y,h,p,O.grouped]),C=I0(a),S=C.length,E=P=>{const $=P===0,I=P===S-1;return $&&I?"":$?O.firstButton:I?O.lastButton:O.middleButton};return m.jsx(A0,{as:l,role:"group",className:Q(O.root,i),ref:n,ownerState:v,...b,children:m.jsx(gs.Provider,{value:T,children:C.map((P,$)=>m.jsx(hs.Provider,{value:E($),children:P},$))})})});process.env.NODE_ENV!=="production"&&(bd.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,fullWidth:o.bool,orientation:o.oneOf(["horizontal","vertical"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function L0(e){return ge("MuiCardHeader",e)}const ta=be("MuiCardHeader",["root","avatar","action","content","title","subheader"]),D0=e=>{const{classes:t}=e;return he({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},L0,t)},B0=D("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${ta.title}`]:t.title},{[`& .${ta.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),F0=D("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),z0=D("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),V0=D("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${Xr.root}:where(& .${ta.title})`]:{display:"block"},[`.${Xr.root}:where(& .${ta.subheader})`]:{display:"block"}}),yd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiCardHeader"}),{action:a,avatar:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:f,slots:y={},slotProps:x={},...h}=r,p={...r,component:s,disableTypography:l},b=D0(p),v={slots:y,slotProps:{title:f,subheader:u,...x}};let O=d;const[T,C]=me("title",{className:b.title,elementType:at,externalForwardedProps:v,ownerState:p,additionalProps:{variant:i?"body2":"h5",component:"span"}});O!=null&&O.type!==at&&!l&&(O=m.jsx(T,{...C,children:O}));let S=c;const[E,P]=me("subheader",{className:b.subheader,elementType:at,externalForwardedProps:v,ownerState:p,additionalProps:{variant:i?"body2":"body1",color:"textSecondary",component:"span"}});S!=null&&S.type!==at&&!l&&(S=m.jsx(E,{...P,children:S}));const[$,I]=me("root",{ref:n,className:b.root,elementType:B0,externalForwardedProps:{...v,...h,component:s},ownerState:p}),[N,A]=me("avatar",{className:b.avatar,elementType:F0,externalForwardedProps:v,ownerState:p}),[g,j]=me("content",{className:b.content,elementType:V0,externalForwardedProps:v,ownerState:p}),[R,M]=me("action",{className:b.action,elementType:z0,externalForwardedProps:v,ownerState:p});return m.jsxs($,{...I,children:[i&&m.jsx(N,{...A,children:i}),m.jsxs(g,{...j,children:[O,S]}),a&&m.jsx(R,{...M,children:a})]})});process.env.NODE_ENV!=="production"&&(yd.propTypes={action:o.node,avatar:o.node,children:o.node,classes:o.object,component:o.elementType,disableTypography:o.bool,slotProps:o.shape({action:o.oneOfType([o.func,o.object]),avatar:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),subheader:o.oneOfType([o.func,o.object]),title:o.oneOfType([o.func,o.object])}),slots:o.shape({action:o.elementType,avatar:o.elementType,content:o.elementType,root:o.elementType,subheader:o.elementType,title:o.elementType}),subheader:o.node,subheaderTypographyProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,titleTypographyProps:o.object});function _0(e){return ge("PrivateSwitchBase",e)}be("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const W0=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,i={root:["root",n&&"checked",r&&"disabled",a&&`edge${V(a)}`],input:["input"]};return he(i,_0,t)},U0=D(To,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),H0=D("input",{name:"MuiSwitchBase",shouldForwardProp:St})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ba=w.forwardRef(function(t,n){const{autoFocus:r,checked:a,checkedIcon:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:y,inputRef:x,name:h,onBlur:p,onChange:b,onFocus:v,readOnly:O,required:T=!1,tabIndex:C,type:S,value:E,slots:P={},slotProps:$={},...I}=t,[N,A]=po({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),g=ro(),j=K=>{v&&v(K),g&&g.onFocus&&g.onFocus(K)},R=K=>{p&&p(K),g&&g.onBlur&&g.onBlur(K)},M=K=>{if(K.nativeEvent.defaultPrevented)return;const U=K.target.checked;A(U),b&&b(K,U)};let k=l;g&&typeof k>"u"&&(k=g.disabled);const z=S==="checkbox"||S==="radio",F={...t,checked:N,disabled:k,disableFocusRipple:c,edge:u},_=W0(F),B={slots:P,slotProps:{input:y,...$}},[L,G]=me("root",{ref:n,elementType:U0,className:_.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",...I},getSlotProps:K=>({...K,onFocus:U=>{K.onFocus?.(U),j(U)},onBlur:U=>{K.onBlur?.(U),R(U)}}),ownerState:F,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:k,role:void 0,tabIndex:null}}),[J,te]=me("input",{ref:x,elementType:H0,className:_.input,externalForwardedProps:B,getSlotProps:K=>({...K,onChange:U=>{K.onChange?.(U),M(U)}}),ownerState:F,additionalProps:{autoFocus:r,checked:a,defaultChecked:s,disabled:k,id:z?f:void 0,name:h,readOnly:O,required:T,tabIndex:C,type:S,...S==="checkbox"&&E===void 0?{}:{value:E}}});return m.jsxs(L,{...G,children:[m.jsx(J,{...te}),N?i:d]})});process.env.NODE_ENV!=="production"&&(Ba.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:Mt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const q0=lt(m.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),G0=lt(m.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),K0=lt(m.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Y0(e){return ge("MuiCheckbox",e)}const gi=be("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),X0=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${V(r)}`,`size${V(a)}`]},s=he(i,Y0,t);return{...t,...s}},J0=D(Ba,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${V(n.size)}`],n.color!=="default"&&t[`color${V(n.color)}`]]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{[`&.${gi.checked}, &.${gi.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${gi.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Z0=m.jsx(G0,{}),Q0=m.jsx(q0,{}),ex=m.jsx(K0,{}),oa=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiCheckbox"}),{checkedIcon:a=Z0,color:i="primary",icon:s=Q0,indeterminate:l=!1,indeterminateIcon:c=ex,inputProps:u,size:d="medium",disableRipple:f=!1,className:y,slots:x={},slotProps:h={},...p}=r,b=l?c:s,v=l?c:a,O={...r,disableRipple:f,color:i,indeterminate:l,size:d},T=X0(O),C=h.input??u,[S,E]=me("root",{ref:n,elementType:J0,className:Q(T.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:h,...p},ownerState:O,additionalProps:{type:"checkbox",icon:w.cloneElement(b,{fontSize:b.props.fontSize??d}),checkedIcon:w.cloneElement(v,{fontSize:v.props.fontSize??d}),disableRipple:f,slots:x,slotProps:{input:Ru(typeof C=="function"?C(O):C,{"data-indeterminate":l})}}});return m.jsx(S,{...E,classes:T})});process.env.NODE_ENV!=="production"&&(oa.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function Cc(e){return e.substring(2).toLowerCase()}function tx(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function na(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:a,touchEvent:i="onTouchEnd"}=e,s=w.useRef(!1),l=w.useRef(null),c=w.useRef(!1),u=w.useRef(!1);w.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=nt(Eo(t),l),f=vt(h=>{const p=u.current;u.current=!1;const b=ht(l.current);if(!c.current||!l.current||"clientX"in h&&tx(h,b))return;if(s.current){s.current=!1;return}let v;h.composedPath?v=h.composedPath().includes(l.current):v=!b.documentElement.contains(h.target)||l.current.contains(h.target),!v&&(n||!p)&&a(h)}),y=h=>p=>{u.current=!0;const b=t.props[h];b&&b(p)},x={ref:d};return i!==!1&&(x[i]=y(i)),w.useEffect(()=>{if(i!==!1){const h=Cc(i),p=ht(l.current),b=()=>{s.current=!0};return p.addEventListener(h,f),p.addEventListener("touchmove",b),()=>{p.removeEventListener(h,f),p.removeEventListener("touchmove",b)}}},[f,i]),r!==!1&&(x[r]=y(r)),w.useEffect(()=>{if(r!==!1){const h=Cc(r),p=ht(l.current);return p.addEventListener(h,f),()=>{p.removeEventListener(h,f)}}},[f,r]),w.cloneElement(t,x)}process.env.NODE_ENV!=="production"&&(na.propTypes={children:Oo.isRequired,disableReactTree:o.bool,mouseEvent:o.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:o.func.isRequired,touchEvent:o.oneOf(["onTouchEnd","onTouchStart",!1])});process.env.NODE_ENV!=="production"&&(na.propTypes=cs(na.propTypes));function vd(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function ox(e){const t=ht(e);return t.body===e?no(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Qn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wc(e){return parseInt(no(e).getComputedStyle(e).paddingRight,10)||0}function nx(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Tc(e,t,n,r,a){const i=[t,n,...r];[].forEach.call(e.children,s=>{const l=!i.includes(s),c=!nx(s);l&&c&&Qn(s,a)})}function hi(e,t){let n=-1;return e.some((r,a)=>t(r)?(n=a,!0):!1),n}function rx(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(ox(r)){const s=vd(no(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${wc(r)+s}px`;const l=ht(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${wc(c)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=ht(r).body;else{const s=r.parentElement,l=no(r);i=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:l})=>{i?s.style.setProperty(l,i):s.style.removeProperty(l)})}}function ax(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class ix{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Qn(t.modalRef,!1);const a=ax(n);Tc(n,t.mount,t.modalRef,a,!0);const i=hi(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),r)}mount(t,n){const r=hi(this.containers,i=>i.modals.includes(t)),a=this.containers[r];a.restore||(a.restore=rx(a,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const a=hi(this.containers,s=>s.modals.includes(t)),i=this.containers[a];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Qn(t.modalRef,n),Tc(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Qn(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function qn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const sx=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function lx(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function cx(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function ux(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||cx(e))}function dx(e){const t=[],n=[];return Array.from(e.querySelectorAll(sx)).forEach((r,a)=>{const i=lx(r);i===-1||!ux(r)||(i===0?t.push(r):n.push({documentOrder:a,tabIndex:i,node:r}))}),n.sort((r,a)=>r.tabIndex===a.tabIndex?r.documentOrder-a.documentOrder:r.tabIndex-a.tabIndex).map(r=>r.node).concat(t)}function px(){return!0}function ra(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:a=!1,getTabbable:i=dx,isEnabled:s=px,open:l}=e,c=w.useRef(!1),u=w.useRef(null),d=w.useRef(null),f=w.useRef(null),y=w.useRef(null),x=w.useRef(!1),h=w.useRef(null),p=nt(Eo(t),h),b=w.useRef(null);w.useEffect(()=>{!l||!h.current||(x.current=!n)},[n,l]),w.useEffect(()=>{if(!l||!h.current)return;const T=ht(h.current),C=qn(T);return h.current.contains(C)||(h.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&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(`
|
|
263
|
-
`)),h.current.setAttribute("tabIndex","-1")),x.current&&h.current.focus()),()=>{a||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),w.useEffect(()=>{if(!l||!h.current)return;const T=ht(h.current),C=qn(T),S=$=>{b.current=$,!(r||!s()||$.key!=="Tab")&&C===h.current&&$.shiftKey&&(c.current=!0,d.current&&d.current.focus())},E=()=>{const $=h.current;if($===null)return;const I=qn(T);if(!T.hasFocus()||!s()||c.current){c.current=!1;return}if($.contains(I)||r&&I!==u.current&&I!==d.current)return;if(I!==y.current)y.current=null;else if(y.current!==null)return;if(!x.current)return;let N=[];if((I===u.current||I===d.current)&&(N=i(h.current)),N.length>0){const A=!!(b.current?.shiftKey&&b.current?.key==="Tab"),g=N[0],j=N[N.length-1];typeof g!="string"&&typeof j!="string"&&(A?j.focus():g.focus())}else $.focus()};T.addEventListener("focusin",E),T.addEventListener("keydown",S,!0);const P=setInterval(()=>{const $=qn(T);$&&$.tagName==="BODY"&&E()},50);return()=>{clearInterval(P),T.removeEventListener("focusin",E),T.removeEventListener("keydown",S,!0)}},[n,r,a,s,l,i]);const v=T=>{f.current===null&&(f.current=T.relatedTarget),x.current=!0,y.current=T.target;const C=t.props.onFocus;C&&C(T)},O=T=>{f.current===null&&(f.current=T.relatedTarget),x.current=!0};return m.jsxs(w.Fragment,{children:[m.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:u,"data-testid":"sentinelStart"}),w.cloneElement(t,{ref:p,onFocus:v}),m.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ra.propTypes={children:Oo,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired});process.env.NODE_ENV!=="production"&&(ra.propTypes=cs(ra.propTypes));function fx(e){return typeof e=="function"?e():e}function mx(e){return e?e.props.hasOwnProperty("in"):!1}const Sc=()=>{},Mr=new ix;function gx(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,f=w.useRef({}),y=w.useRef(null),x=w.useRef(null),h=nt(x,d),[p,b]=w.useState(!u),v=mx(l);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const T=()=>ht(y.current),C=()=>(f.current.modalRef=x.current,f.current.mount=y.current,f.current),S=()=>{Mr.mount(C(),{disableScrollLock:r}),x.current&&(x.current.scrollTop=0)},E=vt(()=>{const M=fx(t)||T().body;Mr.add(C(),M),x.current&&S()}),P=()=>Mr.isTopModal(C()),$=vt(M=>{y.current=M,M&&(u&&P()?S():x.current&&Qn(x.current,O))}),I=w.useCallback(()=>{Mr.remove(C(),O)},[O]);w.useEffect(()=>()=>{I()},[I]),w.useEffect(()=>{u?E():(!v||!a)&&I()},[u,I,v,a,E]);const N=M=>k=>{M.onKeyDown?.(k),!(k.key!=="Escape"||k.which===229||!P())&&(n||(k.stopPropagation(),c&&c(k,"escapeKeyDown")))},A=M=>k=>{M.onClick?.(k),k.target===k.currentTarget&&c&&c(k,"backdropClick")};return{getRootProps:(M={})=>{const k=Yo(e);delete k.onTransitionEnter,delete k.onTransitionExited;const z={...k,...M};return{role:"presentation",...z,onKeyDown:N(z),ref:h}},getBackdropProps:(M={})=>{const k=M;return{"aria-hidden":!0,...k,onClick:A(k),open:u}},getTransitionProps:()=>{const M=()=>{b(!1),i&&i()},k=()=>{b(!0),s&&s(),a&&I()};return{onEnter:Ci(M,l?.props.onEnter??Sc),onExited:Ci(k,l?.props.onExited??Sc)}},rootRef:h,portalRef:$,isTopModal:P,exited:p,hasTransition:v}}function hx(e){return ge("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const bx=e=>{const{open:t,exited:n,classes:r}=e;return he({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},hx,r)},yx=D("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(pe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),vx=D(Ns,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),As=w.forwardRef(function(t,n){const r=we({name:"MuiModal",props:t}),{BackdropComponent:a=vx,BackdropProps:i,classes:s,className:l,closeAfterTransition:c=!1,children:u,container:d,component:f,components:y={},componentsProps:x={},disableAutoFocus:h=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:b=!1,disablePortal:v=!1,disableRestoreFocus:O=!1,disableScrollLock:T=!1,hideBackdrop:C=!1,keepMounted:S=!1,onClose:E,onTransitionEnter:P,onTransitionExited:$,open:I,slotProps:N={},slots:A={},theme:g,...j}=r,R={...r,closeAfterTransition:c,disableAutoFocus:h,disableEnforceFocus:p,disableEscapeKeyDown:b,disablePortal:v,disableRestoreFocus:O,disableScrollLock:T,hideBackdrop:C,keepMounted:S},{getRootProps:M,getBackdropProps:k,getTransitionProps:z,portalRef:F,isTopModal:_,exited:B,hasTransition:L}=gx({...R,rootRef:n}),G={...R,exited:B},J=bx(G),te={};if(u.props.tabIndex===void 0&&(te.tabIndex="-1"),L){const{onEnter:X,onExited:ce}=z();te.onEnter=X,te.onExited=ce}const K={slots:{root:y.Root,backdrop:y.Backdrop,...A},slotProps:{...x,...N}},[U,ne]=me("root",{ref:n,elementType:yx,externalForwardedProps:{...K,...j,component:f},getSlotProps:M,ownerState:G,className:Q(l,J?.root,!G.open&&G.exited&&J?.hidden)}),[le,Z]=me("backdrop",{ref:i?.ref,elementType:a,externalForwardedProps:K,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:X=>k({...X,onClick:ce=>{X?.onClick&&X.onClick(ce)}}),className:Q(i?.className,J?.backdrop),ownerState:G});return!S&&!I&&(!L||B)?null:m.jsx(lr,{ref:F,container:d,disablePortal:v,children:m.jsxs(U,{...ne,children:[!C&&a?m.jsx(le,{...Z}):null,m.jsx(ra,{disableEnforceFocus:p,disableAutoFocus:h,disableRestoreFocus:O,isEnabled:_,open:I,children:w.cloneElement(u,te)})]})})});process.env.NODE_ENV!=="production"&&(As.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Oo.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([bo,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function xx(e){return ge("MuiDialog",e)}const bi=be("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Ls=w.createContext({});process.env.NODE_ENV!=="production"&&(Ls.displayName="DialogContext");const Cx=D(Ns,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),wx=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:a,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${V(n)}`],paper:["paper",`paperScroll${V(n)}`,`paperWidth${V(String(r))}`,a&&"paperFullWidth",i&&"paperFullScreen"]};return he(s,xx,t)},Tx=D(As,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Sx=D("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${V(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Ox=D(xo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${V(n.scroll)}`],t[`paperWidth${V(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(pe(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${bi.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${bi.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${bi.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),xd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialog"}),a=xt(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:f,className:y,disableEscapeKeyDown:x=!1,fullScreen:h=!1,fullWidth:p=!1,maxWidth:b="sm",onClick:v,onClose:O,open:T,PaperComponent:C=xo,PaperProps:S={},scroll:E="paper",slots:P={},slotProps:$={},TransitionComponent:I=cr,transitionDuration:N=i,TransitionProps:A,...g}=r,j={...r,disableEscapeKeyDown:x,fullScreen:h,fullWidth:p,maxWidth:b,scroll:E},R=wx(j),M=w.useRef(),k=ae=>{M.current=ae.target===ae.currentTarget},z=ae=>{v&&v(ae),M.current&&(M.current=null,O&&O(ae,"backdropClick"))},F=vo(l),_=w.useMemo(()=>({titleId:F}),[F]),B={transition:I,...P},L={transition:A,paper:S,backdrop:d,...$},G={slots:B,slotProps:L},[J,te]=me("root",{elementType:Tx,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:j,className:Q(R.root,y),ref:n}),[K,U]=me("backdrop",{elementType:Cx,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:j}),[ne,le]=me("paper",{elementType:Ox,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:j,className:Q(R.paper,S.className)}),[Z,X]=me("container",{elementType:Sx,externalForwardedProps:G,ownerState:j,className:R.container}),[ce,W]=me("transition",{elementType:cr,externalForwardedProps:G,ownerState:j,additionalProps:{appear:!0,in:T,timeout:N,role:"presentation"}});return m.jsx(J,{closeAfterTransition:!0,slots:{backdrop:K},slotProps:{backdrop:{transitionDuration:N,as:u,...U}},disableEscapeKeyDown:x,onClose:O,open:T,onClick:z,...te,...g,children:m.jsx(ce,{...W,children:m.jsx(Z,{onMouseDown:k,...X,children:m.jsx(ne,{as:C,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":F,"aria-modal":c,...le,children:m.jsx(Ls.Provider,{value:_,children:f})})})})})});process.env.NODE_ENV!=="production"&&(xd.propTypes={"aria-describedby":o.string,"aria-labelledby":o.string,"aria-modal":o.oneOfType([o.oneOf(["false","true"]),o.bool]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,disableEscapeKeyDown:o.bool,fullScreen:o.bool,fullWidth:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),onClick:o.func,onClose:o.func,open:o.bool.isRequired,PaperComponent:o.elementType,PaperProps:o.object,scroll:o.oneOf(["body","paper"]),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),container:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,container:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function Ex(e){return ge("MuiDialogActions",e)}be("MuiDialogActions",["root","spacing"]);const kx=e=>{const{classes:t,disableSpacing:n}=e;return he({root:["root",!n&&"spacing"]},Ex,t)},Px=D("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Cd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:i=!1,...s}=r,l={...r,disableSpacing:i},c=kx(l);return m.jsx(Px,{className:Q(c.root,a),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(Cd.propTypes={children:o.node,classes:o.object,className:o.string,disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Rx(e){return ge("MuiDialogContent",e)}be("MuiDialogContent",["root","dividers"]);function $x(e){return ge("MuiDialogTitle",e)}const Ix=be("MuiDialogTitle",["root"]),jx=e=>{const{classes:t,dividers:n}=e;return he({root:["root",n&&"dividers"]},Rx,t)},Mx=D("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(pe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${Ix.root} + &`]:{paddingTop:0}}}]}))),wd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogContent"}),{className:a,dividers:i=!1,...s}=r,l={...r,dividers:i},c=jx(l);return m.jsx(Mx,{className:Q(c.root,a),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(wd.propTypes={children:o.node,classes:o.object,className:o.string,dividers:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Nx(e){return ge("MuiDialogContentText",e)}be("MuiDialogContentText",["root"]);const Ax=e=>{const{classes:t}=e,r=he({root:["root"]},Nx,t);return{...t,...r}},Lx=D(at,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),Td=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogContentText"}),{children:a,className:i,...s}=r,l=Ax(s);return m.jsx(Lx,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Q(l.root,i),...r,classes:l})});process.env.NODE_ENV!=="production"&&(Td.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Dx=e=>{const{classes:t}=e;return he({root:["root"]},$x,t)},Bx=D(at,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Sd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogTitle"}),{className:a,id:i,...s}=r,l=r,c=Dx(l),{titleId:u=i}=w.useContext(Ls);return m.jsx(Bx,{component:"h2",className:Q(c.root,a),ownerState:l,ref:n,variant:"h6",id:i??u,...s})});process.env.NODE_ENV!=="production"&&(Sd.propTypes={children:o.node,classes:o.object,className:o.string,id:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Fx(e){return ge("MuiDivider",e)}const Oc=be("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),zx=e=>{const{absolute:t,children:n,classes:r,flexItem:a,light:i,orientation:s,textAlign:l,variant:c}=e;return he({root:["root",t&&"absolute",c,i&&"light",s==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},Fx,r)},Vx=D("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(pe(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),_x=D("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(pe(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),ur=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiDivider"}),{absolute:a=!1,children:i,className:s,orientation:l="horizontal",component:c=i||l==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:f=c!=="hr"?"separator":void 0,textAlign:y="center",variant:x="fullWidth",...h}=r,p={...r,absolute:a,component:c,flexItem:u,light:d,orientation:l,role:f,textAlign:y,variant:x},b=zx(p);return m.jsx(Vx,{as:c,className:Q(b.root,s),role:f,ref:n,ownerState:p,"aria-orientation":f==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...h,children:i?m.jsx(_x,{className:b.wrapper,ownerState:p,children:i}):null})});ur&&(ur.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(ur.propTypes={absolute:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,flexItem:o.bool,light:o.bool,orientation:o.oneOf(["horizontal","vertical"]),role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),textAlign:o.oneOf(["center","left","right"]),variant:o.oneOfType([o.oneOf(["fullWidth","inset","middle"]),o.string])});function Wx(e,t,n){const r=t.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),i=no(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=i.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let l=0,c=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),c=parseInt(u[5],10)}return e==="left"?a?`translateX(${a.right+l-r.left}px)`:`translateX(${i.innerWidth+l-r.left}px)`:e==="right"?a?`translateX(-${r.right-a.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:e==="up"?a?`translateY(${a.bottom+c-r.top}px)`:`translateY(${i.innerHeight+c-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function Od(e){return typeof e=="function"?e():e}function Nr(e,t,n){const r=Od(n),a=Wx(e,t,r);a&&(t.style.webkitTransform=a,t.style.transform=a)}const Ed=w.forwardRef(function(t,n){const r=xt(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,container:u,direction:d="down",easing:f=a,in:y,onEnter:x,onEntered:h,onEntering:p,onExit:b,onExited:v,onExiting:O,style:T,timeout:C=i,TransitionComponent:S=Ut,...E}=t,P=w.useRef(null),$=nt(Eo(c),P,n),I=F=>_=>{F&&(_===void 0?F(P.current):F(P.current,_))},N=I((F,_)=>{Nr(d,F,u),Ra(F),x&&x(F,_)}),A=I((F,_)=>{const B=ho({timeout:C,style:T,easing:f},{mode:"enter"});F.style.webkitTransition=r.transitions.create("-webkit-transform",{...B}),F.style.transition=r.transitions.create("transform",{...B}),F.style.webkitTransform="none",F.style.transform="none",p&&p(F,_)}),g=I(h),j=I(O),R=I(F=>{const _=ho({timeout:C,style:T,easing:f},{mode:"exit"});F.style.webkitTransition=r.transitions.create("-webkit-transform",_),F.style.transition=r.transitions.create("transform",_),Nr(d,F,u),b&&b(F)}),M=I(F=>{F.style.webkitTransition="",F.style.transition="",v&&v(F)}),k=F=>{s&&s(P.current,F)},z=w.useCallback(()=>{P.current&&Nr(d,P.current,u)},[d,u]);return w.useEffect(()=>{if(y||d==="down"||d==="right")return;const F=ps(()=>{P.current&&Nr(d,P.current,u)}),_=no(P.current);return _.addEventListener("resize",F),()=>{F.clear(),_.removeEventListener("resize",F)}},[d,y,u]),w.useEffect(()=>{y||z()},[y,z]),m.jsx(S,{nodeRef:P,onEnter:N,onEntered:g,onEntering:A,onExit:R,onExited:M,onExiting:j,addEndListener:k,appear:l,in:y,timeout:C,...E,children:(F,{ownerState:_,...B})=>w.cloneElement(c,{ref:$,style:{visibility:F==="exited"&&!y?"hidden":void 0,...T,...c.props.style},...B})})});process.env.NODE_ENV!=="production"&&(Ed.propTypes={addEndListener:o.func,appear:o.bool,children:Oo.isRequired,container:Tt(o.oneOfType([bo,o.func]),e=>{if(e.open){const t=Od(e.container);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `container` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
264
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"||t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `container` prop provided to the component is invalid.","It should be an HTML element instance."].join(`
|
|
265
|
-
`))}return null}),direction:o.oneOf(["down","left","right","up"]),easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});const Ux=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:a,size:i,hiddenLabel:s,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",a&&"adornedEnd",i==="small"&&`size${V(i)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},u=he(c,f0,t);return{...t,...u}},Hx=D(Aa,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ma(e,t),!n.disableUnderline&&t.underline]}})(pe(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${zt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${zt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zt.disabled}, .${zt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(qe()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),qx=D(La,{name:"MuiFilledInput",slot:"Input",overridesResolver:Na})(pe(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Fa=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:i={},componentsProps:s,fullWidth:l=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:y={},type:x="text",...h}=r,p={...r,disableUnderline:a,fullWidth:l,inputComponent:u,multiline:d,type:x},b=Ux(r),v={root:{ownerState:p},input:{ownerState:p}},O=f??s?wt(v,f??s):v,T=y.root??i.Root??Hx,C=y.input??i.Input??qx;return m.jsx(Da,{slots:{root:T,input:C},slotProps:O,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:x,...h,classes:b})});process.env.NODE_ENV!=="production"&&(Fa.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Mt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});Fa.muiName="Input";function Gx(e){return ge("MuiFormControl",e)}be("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Kx=e=>{const{classes:t,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${V(n)}`,r&&"fullWidth"]};return he(a,Gx,t)},Yx=D("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${V(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),za=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormControl"}),{children:a,className:i,color:s="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:y=!1,margin:x="none",required:h=!1,size:p="medium",variant:b="outlined",...v}=r,O={...r,color:s,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:y,margin:x,required:h,size:p,variant:b},T=Kx(O),[C,S]=w.useState(()=>{let k=!1;return a&&w.Children.forEach(a,z=>{if(!Xn(z,["Input","Select"]))return;const F=Xn(z,["Select"])?z.props.input:z;F&&l0(F.props)&&(k=!0)}),k}),[E,P]=w.useState(()=>{let k=!1;return a&&w.Children.forEach(a,z=>{Xn(z,["Input","Select"])&&(ea(z.props,!0)||ea(z.props.inputProps,!0))&&(k=!0)}),k}),[$,I]=w.useState(!1);c&&$&&I(!1);const N=d!==void 0&&!c?d:$;let A;const g=w.useRef(!1);process.env.NODE_ENV!=="production"&&(A=()=>(g.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
266
|
-
`)),g.current=!0,()=>{g.current=!1}));const j=w.useCallback(()=>{P(!0)},[]),R=w.useCallback(()=>{P(!1)},[]),M=w.useMemo(()=>({adornedStart:C,setAdornedStart:S,color:s,disabled:c,error:u,filled:E,focused:N,fullWidth:f,hiddenLabel:y,size:p,onBlur:()=>{I(!1)},onFocus:()=>{I(!0)},onEmpty:R,onFilled:j,registerEffect:A,required:h,variant:b}),[C,s,c,u,E,N,f,y,A,R,j,h,p,b]);return m.jsx(Cr.Provider,{value:M,children:m.jsx(Yx,{as:l,ownerState:O,className:Q(T.root,i),ref:n,...v,children:a})})});process.env.NODE_ENV!=="production"&&(za.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function Xx(e){return ge("MuiFormControlLabel",e)}const Gn=be("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Jx=e=>{const{classes:t,disabled:n,labelPlacement:r,error:a,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${V(r)}`,a&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",a&&"error"]};return he(s,Xx,t)},Zx=D("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gn.label}`]:t.label},t.root,t[`labelPlacement${V(n.labelPlacement)}`]]}})(pe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Gn.disabled}`]:{cursor:"default"},[`& .${Gn.label}`]:{[`&.${Gn.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),Qx=D("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(pe(({theme:e})=>({[`&.${Gn.error}`]:{color:(e.vars||e).palette.error.main}}))),Va=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormControlLabel"}),{checked:a,className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,inputRef:d,label:f,labelPlacement:y="end",name:x,onChange:h,required:p,slots:b={},slotProps:v={},value:O,...T}=r,C=ro(),S=c??l.props.disabled??C?.disabled,E=p??l.props.required,P={disabled:S,required:E};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof l.props[M]>"u"&&typeof r[M]<"u"&&(P[M]=r[M])});const $=Vo({props:r,muiFormControl:C,states:["error"]}),I={...r,disabled:S,labelPlacement:y,required:E,error:$.error},N=Jx(I),A={slots:b,slotProps:{...s,...v}},[g,j]=me("typography",{elementType:at,externalForwardedProps:A,ownerState:I});let R=f;return R!=null&&R.type!==at&&!u&&(R=m.jsx(g,{component:"span",...j,className:Q(N.label,j?.className),children:R})),m.jsxs(Zx,{className:Q(N.root,i),ownerState:I,ref:n,...T,children:[w.cloneElement(l,P),E?m.jsxs("div",{children:[R,m.jsxs(Qx,{ownerState:I,"aria-hidden":!0,className:N.asterisk,children:[" ","*"]})]}):R]})});process.env.NODE_ENV!=="production"&&(Va.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:Mt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function e1(e){return ge("MuiFormGroup",e)}be("MuiFormGroup",["root","row","error"]);const t1=e=>{const{classes:t,row:n,error:r}=e;return he({root:["root",n&&"row",r&&"error"]},e1,t)},o1=D("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Ds=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormGroup"}),{className:a,row:i=!1,...s}=r,l=ro(),c=Vo({props:r,muiFormControl:l,states:["error"]}),u={...r,row:i,error:c.error},d=t1(u);return m.jsx(o1,{className:Q(d.root,a),ownerState:u,ref:n,...s})});process.env.NODE_ENV!=="production"&&(Ds.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function n1(e){return ge("MuiFormHelperText",e)}const Ec=be("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var kc;const r1=e=>{const{classes:t,contained:n,size:r,disabled:a,error:i,filled:s,focused:l,required:c}=e,u={root:["root",a&&"disabled",i&&"error",r&&`size${V(r)}`,n&&"contained",l&&"focused",s&&"filled",c&&"required"]};return he(u,n1,t)},a1=D("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${V(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ec.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ec.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Bs=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormHelperText"}),{children:a,className:i,component:s="p",disabled:l,error:c,filled:u,focused:d,margin:f,required:y,variant:x,...h}=r,p=ro(),b=Vo({props:r,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),v={...r,component:s,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete v.ownerState;const O=r1(v);return m.jsx(a1,{as:s,className:Q(O.root,i),ref:n,...h,ownerState:v,children:a===" "?kc||(kc=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):a})});process.env.NODE_ENV!=="production"&&(Bs.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function i1(e){return ge("MuiFormLabel",e)}const er=be("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),s1=e=>{const{classes:t,color:n,focused:r,disabled:a,error:i,filled:s,required:l}=e,c={root:["root",`color${V(n)}`,a&&"disabled",i&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return he(c,i1,t)},l1=D("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{[`&.${er.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${er.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${er.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),c1=D("span",{name:"MuiFormLabel",slot:"Asterisk"})(pe(({theme:e})=>({[`&.${er.error}`]:{color:(e.vars||e).palette.error.main}}))),aa=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormLabel"}),{children:a,className:i,color:s,component:l="label",disabled:c,error:u,filled:d,focused:f,required:y,...x}=r,h=ro(),p=Vo({props:r,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),b={...r,color:p.color||"primary",component:l,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},v=s1(b);return m.jsxs(l1,{as:l,ownerState:b,className:Q(v.root,i),ref:n,...x,children:[a,p.required&&m.jsxs(c1,{ownerState:b,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(aa.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const u1=e=>{const{classes:t,disableUnderline:n}=e,a=he({root:["root",!n&&"underline"],input:["input"]},d0,t);return{...t,...a}},d1=D(Aa,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ma(e,t),!n.disableUnderline&&t.underline]}})(pe(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Io.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Io.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Io.disabled}, .${Io.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Io.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(qe()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),p1=D(La,{name:"MuiInput",slot:"Input",overridesResolver:Na})({}),_a=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:i={},componentsProps:s,fullWidth:l=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:y="text",...x}=r,h=u1(r),b={root:{ownerState:{disableUnderline:a}}},v=d??s?wt(d??s,b):b,O=f.root??i.Root??d1,T=f.input??i.Input??p1;return m.jsx(Da,{slots:{root:O,input:T},slotProps:v,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:y,...x,classes:h})});process.env.NODE_ENV!=="production"&&(_a.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Mt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});_a.muiName="Input";function f1(e){return ge("MuiInputAdornment",e)}const Pc=be("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Rc;const m1=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${V(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},g1=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:a,size:i,variant:s}=e,l={root:["root",n&&"disablePointerEvents",a&&`position${V(a)}`,s,r&&"hiddenLabel",i&&`size${V(i)}`]};return he(l,f1,t)},h1=D("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:m1})(pe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Pc.positionStart}&:not(.${Pc.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),tn=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiInputAdornment"}),{children:a,className:i,component:s="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...f}=r,y=ro()||{};let x=d;d&&y.variant&&process.env.NODE_ENV!=="production"&&d===y.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),y&&!x&&(x=y.variant);const h={...r,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:l,position:u,variant:x},p=g1(h);return m.jsx(Cr.Provider,{value:null,children:m.jsx(h1,{as:s,ownerState:h,className:Q(p.root,i),ref:n,...f,children:typeof a=="string"&&!c?m.jsx(at,{color:"textSecondary",children:a}):m.jsxs(w.Fragment,{children:[u==="start"?Rc||(Rc=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,a]})})})});process.env.NODE_ENV!=="production"&&(tn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disablePointerEvents:o.bool,disableTypography:o.bool,position:o.oneOf(["end","start"]).isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function b1(e){return ge("MuiInputLabel",e)}be("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const y1=e=>{const{classes:t,formControl:n,size:r,shrink:a,disableAnimation:i,variant:s,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",a&&"shrink",r&&r!=="medium"&&`size${V(r)}`,s],asterisk:[l&&"asterisk"]},u=he(c,b1,t);return{...t,...u}},v1=D(aa,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${er.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(pe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Fs=w.forwardRef(function(t,n){const r=we({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:i,shrink:s,variant:l,className:c,...u}=r,d=ro();let f=s;typeof f>"u"&&d&&(f=d.filled||d.focused||d.adornedStart);const y=Vo({props:r,muiFormControl:d,states:["size","variant","required","focused"]}),x={...r,disableAnimation:a,formControl:d,shrink:f,size:y.size,variant:y.variant,required:y.required,focused:y.focused},h=y1(x);return m.jsx(v1,{"data-shrink":f,ref:n,className:Q(h.root,c),...u,ownerState:x,classes:h})});process.env.NODE_ENV!=="production"&&(Fs.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function x1(e){return ge("MuiLinearProgress",e)}be("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Hi=4,qi=Bt`
|
|
247
|
+
10 4.293 5.707a1 1 0 010-1.414z`,clipRule:"evenodd"})})})]})})},Pg=Ic;function Rg(e){return xe("MuiAlert",e)}const Ws=Ce("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Ig(e){return xe("MuiIconButton",e)}const Us=Ce("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),$g=e=>{const{classes:o,disabled:n,color:r,edge:a,size:i,loading:s}=e,l={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${F(r)}`,a&&`edge${F(a)}`,`size${F(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return we(l,Ig,o)},jg=D(lo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.loading&&o.loading,n.color!=="default"&&o[`color${F(n.color)}`],n.edge&&o[`edge${F(n.edge)}`],o[`size${F(n.size)}`]]}})(me(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:o=>!o.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),me(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{color:(e.vars||e).palette[o].main}})),...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Us.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Us.loading}`]:{color:"transparent"}}))),Mg=D("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),an=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiIconButton"}),{edge:a=!1,children:i,className:s,color:l="default",disabled:c=!1,disableFocusRipple:d=!1,size:p="medium",id:g,loading:b=null,loadingIndicator:v,...h}=r,f=uo(g),y=v??u.jsx(xo,{"aria-labelledby":f,color:"inherit",size:16}),C={...r,edge:a,color:l,disabled:c,disableFocusRipple:d,loading:b,loadingIndicator:y,size:p},O=$g(C);return u.jsxs(jg,{id:b?f:g,className:re(O.root,s),centerRipple:!0,focusRipple:!d,disabled:c||b,ref:n,...h,ownerState:C,children:[typeof b=="boolean"&&u.jsx("span",{className:O.loadingWrapper,style:{display:"contents"},children:u.jsx(Mg,{className:O.loadingIndicator,ownerState:C,children:b&&y})}),i]})});process.env.NODE_ENV!=="production"&&(an.propTypes={children:xt(t.node,e=>w.Children.toArray(e.children).some(n=>w.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
248
|
+
`)):null),classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),t.string]),disabled:t.bool,disableFocusRipple:t.bool,disableRipple:t.bool,edge:t.oneOf(["end","start",!1]),id:t.string,loading:t.bool,loadingIndicator:t.node,size:t.oneOfType([t.oneOf(["small","medium","large"]),t.string]),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});const Ng=st(u.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Ag=st(u.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Lg=st(u.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Bg=st(u.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),$c=st(u.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Dg=e=>{const{variant:o,color:n,severity:r,classes:a}=e,i={root:["root",`color${F(n||r)}`,`${o}${F(n||r)}`,`${o}`],icon:["icon"],message:["message"],action:["action"]};return we(i,Rg,a)},zg=D(Oo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[n.variant],o[`${n.variant}${F(n.color||n.severity)}`]]}})(me(({theme:e})=>{const o=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(qe(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:o(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${Ws.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(qe(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:o(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${Ws.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(qe(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),Fg=D("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Vg=D("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),_g=D("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Hs={success:u.jsx(Ng,{fontSize:"inherit"}),warning:u.jsx(Ag,{fontSize:"inherit"}),error:u.jsx(Lg,{fontSize:"inherit"}),info:u.jsx(Bg,{fontSize:"inherit"})},Ri=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiAlert"}),{action:a,children:i,className:s,closeText:l="Close",color:c,components:d={},componentsProps:p={},icon:g,iconMapping:b=Hs,onClose:v,role:h="alert",severity:f="success",slotProps:y={},slots:C={},variant:O="standard",...S}=r,x={...r,color:c,severity:f,variant:O,colorSeverity:c||f},T=Dg(x),E={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...C},slotProps:{...p,...y}},[j,R]=ge("root",{ref:n,shouldForwardComponentProp:!0,className:re(T.root,s),elementType:zg,externalForwardedProps:{...E,...S},ownerState:x,additionalProps:{role:h,elevation:0}}),[I,N]=ge("icon",{className:T.icon,elementType:Fg,externalForwardedProps:E,ownerState:x}),[A,m]=ge("message",{className:T.message,elementType:Vg,externalForwardedProps:E,ownerState:x}),[$,P]=ge("action",{className:T.action,elementType:_g,externalForwardedProps:E,ownerState:x}),[M,k]=ge("closeButton",{elementType:an,externalForwardedProps:E,ownerState:x}),[z,V]=ge("closeIcon",{elementType:$c,externalForwardedProps:E,ownerState:x});return u.jsxs(j,{...R,children:[g!==!1?u.jsx(I,{...N,children:g||b[f]||Hs[f]}):null,u.jsx(A,{...m,children:i}),a!=null?u.jsx($,{...P,children:a}):null,a==null&&v?u.jsx($,{...P,children:u.jsx(M,{size:"small","aria-label":l,title:l,color:"inherit",onClick:v,...k,children:u.jsx(z,{fontSize:"small",...V})})}):null]})});process.env.NODE_ENV!=="production"&&(Ri.propTypes={action:t.node,children:t.node,classes:t.object,className:t.string,closeText:t.string,color:t.oneOfType([t.oneOf(["error","info","success","warning"]),t.string]),components:t.shape({CloseButton:t.elementType,CloseIcon:t.elementType}),componentsProps:t.shape({closeButton:t.object,closeIcon:t.object}),icon:t.node,iconMapping:t.shape({error:t.node,info:t.node,success:t.node,warning:t.node}),onClose:t.func,role:t.string,severity:t.oneOfType([t.oneOf(["error","info","success","warning"]),t.string]),slotProps:t.shape({action:t.oneOfType([t.func,t.object]),closeButton:t.oneOfType([t.func,t.object]),closeIcon:t.oneOfType([t.func,t.object]),icon:t.oneOfType([t.func,t.object]),message:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({action:t.elementType,closeButton:t.elementType,closeIcon:t.elementType,icon:t.elementType,message:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOfType([t.oneOf(["filled","outlined","standard"]),t.string])});function Wg(e){return xe("MuiAlertTitle",e)}Ce("MuiAlertTitle",["root"]);const Ug=e=>{const{classes:o}=e;return we({root:["root"]},Wg,o)},Hg=D(nt,{name:"MuiAlertTitle",slot:"Root"})(me(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Ii=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiAlertTitle"}),{className:a,...i}=r,s=r,l=Ug(s);return u.jsx(Hg,{gutterBottom:!0,component:"div",ownerState:s,ref:n,className:re(l.root,a),...i})});process.env.NODE_ENV!=="production"&&(Ii.propTypes={children:t.node,classes:t.object,className:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});const jc=e=>e.scrollTop;function sn(e,o){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[o.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[o.mode]:r),delay:a.transitionDelay}}function qg(e){return xe("MuiCollapse",e)}Ce("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Gg=e=>{const{orientation:o,classes:n}=e,r={root:["root",`${o}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${o}`],wrapperInner:["wrapperInner",`${o}`]};return we(r,qg,n)},Kg=D("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[n.orientation],n.state==="entered"&&o.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&o.hidden]}})(me(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:o})=>o.state==="exited"&&!o.in&&o.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Yg=D("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Xg=D("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Er=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiCollapse"}),{addEndListener:a,children:i,className:s,collapsedSize:l="0px",component:c,easing:d,in:p,onEnter:g,onEntered:b,onEntering:v,onExit:h,onExited:f,onExiting:y,orientation:C="vertical",slots:O={},slotProps:S={},style:x,timeout:T=Yl.standard,TransitionComponent:E=Kt,...j}=r,R={...r,orientation:C,collapsedSize:l},I=Gg(R),N=jt(),A=vo(),m=w.useRef(null),$=w.useRef(),P=typeof l=="number"?`${l}px`:l,M=C==="horizontal",k=M?"width":"height",z=w.useRef(null),V=ot(n,z),W=pe=>ke=>{if(pe){const Ee=z.current;ke===void 0?pe(Ee):pe(Ee,ke)}},B=()=>m.current?m.current[M?"clientWidth":"clientHeight"]:0,L=W((pe,ke)=>{m.current&&M&&(m.current.style.position="absolute"),pe.style[k]=P,g&&g(pe,ke)}),Y=W((pe,ke)=>{const Ee=B();m.current&&M&&(m.current.style.position="");const{duration:ee,easing:De}=sn({style:x,timeout:T,easing:d},{mode:"enter"});if(T==="auto"){const Se=N.transitions.getAutoHeightDuration(Ee);pe.style.transitionDuration=`${Se}ms`,$.current=Se}else pe.style.transitionDuration=typeof ee=="string"?ee:`${ee}ms`;pe.style[k]=`${Ee}px`,pe.style.transitionTimingFunction=De,v&&v(pe,ke)}),Z=W((pe,ke)=>{pe.style[k]="auto",b&&b(pe,ke)}),oe=W(pe=>{pe.style[k]=`${B()}px`,h&&h(pe)}),K=W(f),U=W(pe=>{const ke=B(),{duration:Ee,easing:ee}=sn({style:x,timeout:T,easing:d},{mode:"exit"});if(T==="auto"){const De=N.transitions.getAutoHeightDuration(ke);pe.style.transitionDuration=`${De}ms`,$.current=De}else pe.style.transitionDuration=typeof Ee=="string"?Ee:`${Ee}ms`;pe.style[k]=P,pe.style.transitionTimingFunction=ee,y&&y(pe)}),ae=pe=>{T==="auto"&&A.start($.current||0,pe),a&&a(z.current,pe)},ce={slots:O,slotProps:S,component:c},[J,X]=ge("root",{ref:V,className:re(I.root,s),elementType:Kg,externalForwardedProps:ce,ownerState:R,additionalProps:{style:{[M?"minWidth":"minHeight"]:P,...x}}}),[de,_]=ge("wrapper",{ref:m,className:I.wrapper,elementType:Yg,externalForwardedProps:ce,ownerState:R}),[se,ie]=ge("wrapperInner",{className:I.wrapperInner,elementType:Xg,externalForwardedProps:ce,ownerState:R});return u.jsx(E,{in:p,onEnter:L,onEntered:Z,onEntering:Y,onExit:oe,onExited:K,onExiting:U,addEndListener:ae,nodeRef:z,timeout:T==="auto"?null:T,...j,children:(pe,{ownerState:ke,...Ee})=>{const ee={...R,state:pe};return u.jsx(J,{...X,className:re(X.className,{entered:I.entered,exited:!p&&P==="0px"&&I.hidden}[pe]),ownerState:ee,...Ee,children:u.jsx(de,{..._,ownerState:ee,children:u.jsx(se,{...ie,ownerState:ee,children:i})})})}})});process.env.NODE_ENV!=="production"&&(Er.propTypes={addEndListener:t.func,children:t.node,classes:t.object,className:t.string,collapsedSize:t.oneOfType([t.number,t.string]),component:Yn,easing:t.oneOfType([t.shape({enter:t.string,exit:t.string}),t.string]),in:t.bool,onEnter:t.func,onEntered:t.func,onEntering:t.func,onExit:t.func,onExited:t.func,onExiting:t.func,orientation:t.oneOf(["horizontal","vertical"]),slotProps:t.shape({root:t.oneOfType([t.func,t.object]),wrapper:t.oneOfType([t.func,t.object]),wrapperInner:t.oneOfType([t.func,t.object])}),slots:t.shape({root:t.elementType,wrapper:t.elementType,wrapperInner:t.elementType}),style:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),timeout:t.oneOfType([t.oneOf(["auto"]),t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})])});Er&&(Er.muiSupportAuto=!0);const Mc=({variante:e="info",diseno:o="estandar",titulo:n,descripcion:r,cerrable:a=!1,abierto:i=!0,alCerrar:s,tiempoAutoCierre:l,accion:c,icono:d,className:p="",children:g,sx:b,...v})=>{const h=jt(),[f,y]=Re.useState(i);Re.useEffect(()=>{y(i)},[i]),Re.useEffect(()=>{if(l&&l>0&&f){const E=setTimeout(()=>{s&&s(),y(!1)},l);return()=>clearTimeout(E)}},[l,f,s]);const C=E=>{switch(E){case"peligro":return"error";case"exito":return"success";case"advertencia":return"warning";default:return"info"}},O=E=>{switch(E){case"lleno":return"filled";case"contorno":return"outlined";default:return"standard"}},S=()=>{if(o!=="suave")return{};const E=C(e),j=h.palette[E];if(!j)return{};const R=j.main;return{backgroundColor:le.alpha(R,.12),color:R,"& .MuiAlert-icon":{color:R},"& .MuiAlertTitle-root":{color:R}}},x=()=>{s&&s(),y(!1)},T=i!==void 0?i:f;return u.jsx(Er,{in:T,children:u.jsxs(Ri,{severity:C(e),variant:O(o),onClose:a||s?x:void 0,className:p,icon:d,action:c,sx:{borderRadius:"12px",mb:2,border:o==="contorno"?"1px solid":void 0,boxShadow:o==="lleno"?"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)":"0 1px 2px 0 rgba(0,0,0,0.05)",alignItems:"center",...S(),"& .MuiAlertTitle-root":{fontWeight:700,mb:r||g?.5:0,fontSize:"0.95rem",lineHeight:1.4},"& .MuiAlert-message":{width:"100%",padding:0,display:"flex",flexDirection:"column",justifyContent:"center"},"& .MuiAlert-icon":{padding:0,mr:1.5,opacity:o==="suave"?1:.9},...b},...v,children:[n&&u.jsx(Ii,{children:n}),r&&u.jsx(Ue,{component:"div",sx:{opacity:.9},children:r}),g]})})},Zg=Mc;function Jg(e){const{prototype:o={}}=e;return!!o.isReactComponent}function Nc(e,o,n,r,a){const i=e[o],s=a||o;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!Jg(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Fo=xt(t.element,Nc);Fo.isRequired=xt(t.element.isRequired,Nc);function Vo(e){return parseInt(w.version,10)>=19?e?.props?.ref||null:e?.ref||null}function ti(e){return`scale(${e}, ${e**2})`}const Qg={entering:{opacity:1,transform:ti(1)},entered:{opacity:1,transform:"none"}},ja=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ln=w.forwardRef(function(o,n){const{addEndListener:r,appear:a=!0,children:i,easing:s,in:l,onEnter:c,onEntered:d,onEntering:p,onExit:g,onExited:b,onExiting:v,style:h,timeout:f="auto",TransitionComponent:y=Kt,...C}=o,O=vo(),S=w.useRef(),x=jt(),T=w.useRef(null),E=ot(T,Vo(i),n),j=M=>k=>{if(M){const z=T.current;k===void 0?M(z):M(z,k)}},R=j(p),I=j((M,k)=>{jc(M);const{duration:z,delay:V,easing:W}=sn({style:h,timeout:f,easing:s},{mode:"enter"});let B;f==="auto"?(B=x.transitions.getAutoHeightDuration(M.clientHeight),S.current=B):B=z,M.style.transition=[x.transitions.create("opacity",{duration:B,delay:V}),x.transitions.create("transform",{duration:ja?B:B*.666,delay:V,easing:W})].join(","),c&&c(M,k)}),N=j(d),A=j(v),m=j(M=>{const{duration:k,delay:z,easing:V}=sn({style:h,timeout:f,easing:s},{mode:"exit"});let W;f==="auto"?(W=x.transitions.getAutoHeightDuration(M.clientHeight),S.current=W):W=k,M.style.transition=[x.transitions.create("opacity",{duration:W,delay:z}),x.transitions.create("transform",{duration:ja?W:W*.666,delay:ja?z:z||W*.333,easing:V})].join(","),M.style.opacity=0,M.style.transform=ti(.75),g&&g(M)}),$=j(b),P=M=>{f==="auto"&&O.start(S.current||0,M),r&&r(T.current,M)};return u.jsx(y,{appear:a,in:l,nodeRef:T,onEnter:I,onEntered:N,onEntering:R,onExit:m,onExited:$,onExiting:A,addEndListener:P,timeout:f==="auto"?null:f,...C,children:(M,{ownerState:k,...z})=>w.cloneElement(i,{style:{opacity:0,transform:ti(.75),visibility:M==="exited"&&!l?"hidden":void 0,...Qg[M],...h,...i.props.style},ref:E,...z})})});process.env.NODE_ENV!=="production"&&(ln.propTypes={addEndListener:t.func,appear:t.bool,children:Fo.isRequired,easing:t.oneOfType([t.shape({enter:t.string,exit:t.string}),t.string]),in:t.bool,onEnter:t.func,onEntered:t.func,onEntering:t.func,onExit:t.func,onExited:t.func,onExiting:t.func,style:t.object,timeout:t.oneOfType([t.oneOf(["auto"]),t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})])});ln&&(ln.muiSupportAuto=!0);function co(e,o,n,r,a){if(process.env.NODE_ENV==="production")return null;const i=e[o],s=a||o;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var It="top",Ut="bottom",Ht="right",$t="left",$i="auto",Xn=[It,Ut,Ht,$t],cn="start",Vn="end",eh="clippingParents",Ac="viewport",Cn="popper",th="reference",qs=Xn.reduce(function(e,o){return e.concat([o+"-"+cn,o+"-"+Vn])},[]),Lc=[].concat(Xn,[$i]).reduce(function(e,o){return e.concat([o,o+"-"+cn,o+"-"+Vn])},[]),oh="beforeRead",nh="read",rh="afterRead",ah="beforeMain",ih="main",sh="afterMain",lh="beforeWrite",ch="write",dh="afterWrite",ph=[oh,nh,rh,ah,ih,sh,lh,ch,dh];function no(e){return e?(e.nodeName||"").toLowerCase():null}function Lt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var o=e.ownerDocument;return o&&o.defaultView||window}return e}function Do(e){var o=Lt(e).Element;return e instanceof o||e instanceof Element}function Vt(e){var o=Lt(e).HTMLElement;return e instanceof o||e instanceof HTMLElement}function ji(e){if(typeof ShadowRoot>"u")return!1;var o=Lt(e).ShadowRoot;return e instanceof o||e instanceof ShadowRoot}function uh(e){var o=e.state;Object.keys(o.elements).forEach(function(n){var r=o.styles[n]||{},a=o.attributes[n]||{},i=o.elements[n];!Vt(i)||!no(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(s){var l=a[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function fh(e){var o=e.state,n={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,n.popper),o.styles=n,o.elements.arrow&&Object.assign(o.elements.arrow.style,n.arrow),function(){Object.keys(o.elements).forEach(function(r){var a=o.elements[r],i=o.attributes[r]||{},s=Object.keys(o.styles.hasOwnProperty(r)?o.styles[r]:n[r]),l=s.reduce(function(c,d){return c[d]="",c},{});!Vt(a)||!no(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(c){a.removeAttribute(c)}))})}}const mh={name:"applyStyles",enabled:!0,phase:"write",fn:uh,effect:fh,requires:["computeStyles"]};function to(e){return e.split("-")[0]}var Bo=Math.max,kr=Math.min,dn=Math.round;function oi(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(o){return o.brand+"/"+o.version}).join(" "):navigator.userAgent}function Bc(){return!/^((?!chrome|android).)*safari/i.test(oi())}function pn(e,o,n){o===void 0&&(o=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;o&&Vt(e)&&(a=e.offsetWidth>0&&dn(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&dn(r.height)/e.offsetHeight||1);var s=Do(e)?Lt(e):window,l=s.visualViewport,c=!Bc()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/a,p=(r.top+(c&&l?l.offsetTop:0))/i,g=r.width/a,b=r.height/i;return{width:g,height:b,top:p,right:d+g,bottom:p+b,left:d,x:d,y:p}}function Mi(e){var o=pn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(o.width-n)<=1&&(n=o.width),Math.abs(o.height-r)<=1&&(r=o.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Dc(e,o){var n=o.getRootNode&&o.getRootNode();if(e.contains(o))return!0;if(n&&ji(n)){var r=o;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function po(e){return Lt(e).getComputedStyle(e)}function gh(e){return["table","td","th"].indexOf(no(e))>=0}function Eo(e){return((Do(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zr(e){return no(e)==="html"?e:e.assignedSlot||e.parentNode||(ji(e)?e.host:null)||Eo(e)}function Gs(e){return!Vt(e)||po(e).position==="fixed"?null:e.offsetParent}function hh(e){var o=/firefox/i.test(oi()),n=/Trident/i.test(oi());if(n&&Vt(e)){var r=po(e);if(r.position==="fixed")return null}var a=Zr(e);for(ji(a)&&(a=a.host);Vt(a)&&["html","body"].indexOf(no(a))<0;){var i=po(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||o&&i.willChange==="filter"||o&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Zn(e){for(var o=Lt(e),n=Gs(e);n&&gh(n)&&po(n).position==="static";)n=Gs(n);return n&&(no(n)==="html"||no(n)==="body"&&po(n).position==="static")?o:n||hh(e)||o}function Ni(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ln(e,o,n){return Bo(e,kr(o,n))}function bh(e,o,n){var r=Ln(e,o,n);return r>n?n:r}function zc(){return{top:0,right:0,bottom:0,left:0}}function Fc(e){return Object.assign({},zc(),e)}function Vc(e,o){return o.reduce(function(n,r){return n[r]=e,n},{})}var yh=function(o,n){return o=typeof o=="function"?o(Object.assign({},n.rects,{placement:n.placement})):o,Fc(typeof o!="number"?o:Vc(o,Xn))};function vh(e){var o,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=to(n.placement),c=Ni(l),d=[$t,Ht].indexOf(l)>=0,p=d?"height":"width";if(!(!i||!s)){var g=yh(a.padding,n),b=Mi(i),v=c==="y"?It:$t,h=c==="y"?Ut:Ht,f=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],y=s[c]-n.rects.reference[c],C=Zn(i),O=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,S=f/2-y/2,x=g[v],T=O-b[p]-g[h],E=O/2-b[p]/2+S,j=Ln(x,E,T),R=c;n.modifiersData[r]=(o={},o[R]=j,o.centerOffset=j-E,o)}}function xh(e){var o=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=o.elements.popper.querySelector(a),!a)||Dc(o.elements.popper,a)&&(o.elements.arrow=a))}const Ch={name:"arrow",enabled:!0,phase:"main",fn:vh,effect:xh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function un(e){return e.split("-")[1]}var wh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Sh(e,o){var n=e.x,r=e.y,a=o.devicePixelRatio||1;return{x:dn(n*a)/a||0,y:dn(r*a)/a||0}}function Ks(e){var o,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,g=e.isFixed,b=s.x,v=b===void 0?0:b,h=s.y,f=h===void 0?0:h,y=typeof p=="function"?p({x:v,y:f}):{x:v,y:f};v=y.x,f=y.y;var C=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),S=$t,x=It,T=window;if(d){var E=Zn(n),j="clientHeight",R="clientWidth";if(E===Lt(n)&&(E=Eo(n),po(E).position!=="static"&&l==="absolute"&&(j="scrollHeight",R="scrollWidth")),E=E,a===It||(a===$t||a===Ht)&&i===Vn){x=Ut;var I=g&&E===T&&T.visualViewport?T.visualViewport.height:E[j];f-=I-r.height,f*=c?1:-1}if(a===$t||(a===It||a===Ut)&&i===Vn){S=Ht;var N=g&&E===T&&T.visualViewport?T.visualViewport.width:E[R];v-=N-r.width,v*=c?1:-1}}var A=Object.assign({position:l},d&&wh),m=p===!0?Sh({x:v,y:f},Lt(n)):{x:v,y:f};if(v=m.x,f=m.y,c){var $;return Object.assign({},A,($={},$[x]=O?"0":"",$[S]=C?"0":"",$.transform=(T.devicePixelRatio||1)<=1?"translate("+v+"px, "+f+"px)":"translate3d("+v+"px, "+f+"px, 0)",$))}return Object.assign({},A,(o={},o[x]=O?f+"px":"",o[S]=C?v+"px":"",o.transform="",o))}function Th(e){var o=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:to(o.placement),variation:un(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:a,isFixed:o.options.strategy==="fixed"};o.modifiersData.popperOffsets!=null&&(o.styles.popper=Object.assign({},o.styles.popper,Ks(Object.assign({},d,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:s,roundOffsets:c})))),o.modifiersData.arrow!=null&&(o.styles.arrow=Object.assign({},o.styles.arrow,Ks(Object.assign({},d,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})}const Oh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Th,data:{}};var sr={passive:!0};function Eh(e){var o=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,l=s===void 0?!0:s,c=Lt(o.elements.popper),d=[].concat(o.scrollParents.reference,o.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,sr)}),l&&c.addEventListener("resize",n.update,sr),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,sr)}),l&&c.removeEventListener("resize",n.update,sr)}}const kh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Eh,data:{}};var Ph={left:"right",right:"left",bottom:"top",top:"bottom"};function br(e){return e.replace(/left|right|bottom|top/g,function(o){return Ph[o]})}var Rh={start:"end",end:"start"};function Ys(e){return e.replace(/start|end/g,function(o){return Rh[o]})}function Ai(e){var o=Lt(e),n=o.pageXOffset,r=o.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Li(e){return pn(Eo(e)).left+Ai(e).scrollLeft}function Ih(e,o){var n=Lt(e),r=Eo(e),a=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;var d=Bc();(d||!d&&o==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:s,x:l+Li(e),y:c}}function $h(e){var o,n=Eo(e),r=Ai(e),a=(o=e.ownerDocument)==null?void 0:o.body,i=Bo(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=Bo(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+Li(e),c=-r.scrollTop;return po(a||n).direction==="rtl"&&(l+=Bo(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function Bi(e){var o=po(e),n=o.overflow,r=o.overflowX,a=o.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function _c(e){return["html","body","#document"].indexOf(no(e))>=0?e.ownerDocument.body:Vt(e)&&Bi(e)?e:_c(Zr(e))}function Bn(e,o){var n;o===void 0&&(o=[]);var r=_c(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Lt(r),s=a?[i].concat(i.visualViewport||[],Bi(r)?r:[]):r,l=o.concat(s);return a?l:l.concat(Bn(Zr(s)))}function ni(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jh(e,o){var n=pn(e,!1,o==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Xs(e,o,n){return o===Ac?ni(Ih(e,n)):Do(o)?jh(o,n):ni($h(Eo(e)))}function Mh(e){var o=Bn(Zr(e)),n=["absolute","fixed"].indexOf(po(e).position)>=0,r=n&&Vt(e)?Zn(e):e;return Do(r)?o.filter(function(a){return Do(a)&&Dc(a,r)&&no(a)!=="body"}):[]}function Nh(e,o,n,r){var a=o==="clippingParents"?Mh(e):[].concat(o),i=[].concat(a,[n]),s=i[0],l=i.reduce(function(c,d){var p=Xs(e,d,r);return c.top=Bo(p.top,c.top),c.right=kr(p.right,c.right),c.bottom=kr(p.bottom,c.bottom),c.left=Bo(p.left,c.left),c},Xs(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Wc(e){var o=e.reference,n=e.element,r=e.placement,a=r?to(r):null,i=r?un(r):null,s=o.x+o.width/2-n.width/2,l=o.y+o.height/2-n.height/2,c;switch(a){case It:c={x:s,y:o.y-n.height};break;case Ut:c={x:s,y:o.y+o.height};break;case Ht:c={x:o.x+o.width,y:l};break;case $t:c={x:o.x-n.width,y:l};break;default:c={x:o.x,y:o.y}}var d=a?Ni(a):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case cn:c[d]=c[d]-(o[p]/2-n[p]/2);break;case Vn:c[d]=c[d]+(o[p]/2-n[p]/2);break}}return c}function _n(e,o){o===void 0&&(o={});var n=o,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?eh:l,d=n.rootBoundary,p=d===void 0?Ac:d,g=n.elementContext,b=g===void 0?Cn:g,v=n.altBoundary,h=v===void 0?!1:v,f=n.padding,y=f===void 0?0:f,C=Fc(typeof y!="number"?y:Vc(y,Xn)),O=b===Cn?th:Cn,S=e.rects.popper,x=e.elements[h?O:b],T=Nh(Do(x)?x:x.contextElement||Eo(e.elements.popper),c,p,s),E=pn(e.elements.reference),j=Wc({reference:E,element:S,placement:a}),R=ni(Object.assign({},S,j)),I=b===Cn?R:E,N={top:T.top-I.top+C.top,bottom:I.bottom-T.bottom+C.bottom,left:T.left-I.left+C.left,right:I.right-T.right+C.right},A=e.modifiersData.offset;if(b===Cn&&A){var m=A[a];Object.keys(N).forEach(function($){var P=[Ht,Ut].indexOf($)>=0?1:-1,M=[It,Ut].indexOf($)>=0?"y":"x";N[$]+=m[M]*P})}return N}function Ah(e,o){o===void 0&&(o={});var n=o,r=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?Lc:c,p=un(r),g=p?l?qs:qs.filter(function(h){return un(h)===p}):Xn,b=g.filter(function(h){return d.indexOf(h)>=0});b.length===0&&(b=g);var v=b.reduce(function(h,f){return h[f]=_n(e,{placement:f,boundary:a,rootBoundary:i,padding:s})[to(f)],h},{});return Object.keys(v).sort(function(h,f){return v[h]-v[f]})}function Lh(e){if(to(e)===$i)return[];var o=br(e);return[Ys(e),o,Ys(o)]}function Bh(e){var o=e.state,n=e.options,r=e.name;if(!o.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,p=n.boundary,g=n.rootBoundary,b=n.altBoundary,v=n.flipVariations,h=v===void 0?!0:v,f=n.allowedAutoPlacements,y=o.options.placement,C=to(y),O=C===y,S=c||(O||!h?[br(y)]:Lh(y)),x=[y].concat(S).reduce(function(oe,K){return oe.concat(to(K)===$i?Ah(o,{placement:K,boundary:p,rootBoundary:g,padding:d,flipVariations:h,allowedAutoPlacements:f}):K)},[]),T=o.rects.reference,E=o.rects.popper,j=new Map,R=!0,I=x[0],N=0;N<x.length;N++){var A=x[N],m=to(A),$=un(A)===cn,P=[It,Ut].indexOf(m)>=0,M=P?"width":"height",k=_n(o,{placement:A,boundary:p,rootBoundary:g,altBoundary:b,padding:d}),z=P?$?Ht:$t:$?Ut:It;T[M]>E[M]&&(z=br(z));var V=br(z),W=[];if(i&&W.push(k[m]<=0),l&&W.push(k[z]<=0,k[V]<=0),W.every(function(oe){return oe})){I=A,R=!1;break}j.set(A,W)}if(R)for(var B=h?3:1,L=function(K){var U=x.find(function(ae){var ce=j.get(ae);if(ce)return ce.slice(0,K).every(function(J){return J})});if(U)return I=U,"break"},Y=B;Y>0;Y--){var Z=L(Y);if(Z==="break")break}o.placement!==I&&(o.modifiersData[r]._skip=!0,o.placement=I,o.reset=!0)}}const Dh={name:"flip",enabled:!0,phase:"main",fn:Bh,requiresIfExists:["offset"],data:{_skip:!1}};function Zs(e,o,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-o.height-n.y,right:e.right-o.width+n.x,bottom:e.bottom-o.height+n.y,left:e.left-o.width-n.x}}function Js(e){return[It,Ht,Ut,$t].some(function(o){return e[o]>=0})}function zh(e){var o=e.state,n=e.name,r=o.rects.reference,a=o.rects.popper,i=o.modifiersData.preventOverflow,s=_n(o,{elementContext:"reference"}),l=_n(o,{altBoundary:!0}),c=Zs(s,r),d=Zs(l,a,i),p=Js(c),g=Js(d);o.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:g},o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const Fh={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zh};function Vh(e,o,n){var r=to(e),a=[$t,It].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},o,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*a,[$t,Ht].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function _h(e){var o=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=Lc.reduce(function(p,g){return p[g]=Vh(g,o.rects,i),p},{}),l=s[o.placement],c=l.x,d=l.y;o.modifiersData.popperOffsets!=null&&(o.modifiersData.popperOffsets.x+=c,o.modifiersData.popperOffsets.y+=d),o.modifiersData[r]=s}const Wh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_h};function Uh(e){var o=e.state,n=e.name;o.modifiersData[n]=Wc({reference:o.rects.reference,element:o.rects.popper,placement:o.placement})}const Hh={name:"popperOffsets",enabled:!0,phase:"read",fn:Uh,data:{}};function qh(e){return e==="x"?"y":"x"}function Gh(e){var o=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.padding,b=n.tether,v=b===void 0?!0:b,h=n.tetherOffset,f=h===void 0?0:h,y=_n(o,{boundary:c,rootBoundary:d,padding:g,altBoundary:p}),C=to(o.placement),O=un(o.placement),S=!O,x=Ni(C),T=qh(x),E=o.modifiersData.popperOffsets,j=o.rects.reference,R=o.rects.popper,I=typeof f=="function"?f(Object.assign({},o.rects,{placement:o.placement})):f,N=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),A=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,m={x:0,y:0};if(E){if(i){var $,P=x==="y"?It:$t,M=x==="y"?Ut:Ht,k=x==="y"?"height":"width",z=E[x],V=z+y[P],W=z-y[M],B=v?-R[k]/2:0,L=O===cn?j[k]:R[k],Y=O===cn?-R[k]:-j[k],Z=o.elements.arrow,oe=v&&Z?Mi(Z):{width:0,height:0},K=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:zc(),U=K[P],ae=K[M],ce=Ln(0,j[k],oe[k]),J=S?j[k]/2-B-ce-U-N.mainAxis:L-ce-U-N.mainAxis,X=S?-j[k]/2+B+ce+ae+N.mainAxis:Y+ce+ae+N.mainAxis,de=o.elements.arrow&&Zn(o.elements.arrow),_=de?x==="y"?de.clientTop||0:de.clientLeft||0:0,se=($=A?.[x])!=null?$:0,ie=z+J-se-_,pe=z+X-se,ke=Ln(v?kr(V,ie):V,z,v?Bo(W,pe):W);E[x]=ke,m[x]=ke-z}if(l){var Ee,ee=x==="x"?It:$t,De=x==="x"?Ut:Ht,Se=E[T],he=T==="y"?"height":"width",ne=Se+y[ee],ze=Se-y[De],Me=[It,$t].indexOf(C)!==-1,te=(Ee=A?.[T])!=null?Ee:0,Q=Me?ne:Se-j[he]-R[he]-te+N.altAxis,be=Me?Se+j[he]+R[he]-te-N.altAxis:ze,Oe=v&&Me?bh(Q,Se,be):Ln(v?Q:ne,Se,v?be:ze);E[T]=Oe,m[T]=Oe-Se}o.modifiersData[r]=m}}const Kh={name:"preventOverflow",enabled:!0,phase:"main",fn:Gh,requiresIfExists:["offset"]};function Yh(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Xh(e){return e===Lt(e)||!Vt(e)?Ai(e):Yh(e)}function Zh(e){var o=e.getBoundingClientRect(),n=dn(o.width)/e.offsetWidth||1,r=dn(o.height)/e.offsetHeight||1;return n!==1||r!==1}function Jh(e,o,n){n===void 0&&(n=!1);var r=Vt(o),a=Vt(o)&&Zh(o),i=Eo(o),s=pn(e,a,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((no(o)!=="body"||Bi(i))&&(l=Xh(o)),Vt(o)?(c=pn(o,!0),c.x+=o.clientLeft,c.y+=o.clientTop):i&&(c.x=Li(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Qh(e){var o=new Map,n=new Set,r=[];e.forEach(function(i){o.set(i.name,i)});function a(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=o.get(l);c&&a(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function eb(e){var o=Qh(e);return ph.reduce(function(n,r){return n.concat(o.filter(function(a){return a.phase===r}))},[])}function tb(e){var o;return function(){return o||(o=new Promise(function(n){Promise.resolve().then(function(){o=void 0,n(e())})})),o}}function ob(e){var o=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(o).map(function(n){return o[n]})}var Qs={placement:"bottom",modifiers:[],strategy:"absolute"};function el(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return!o.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function nb(e){e===void 0&&(e={});var o=e,n=o.defaultModifiers,r=n===void 0?[]:n,a=o.defaultOptions,i=a===void 0?Qs:a;return function(l,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qs,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},g=[],b=!1,v={state:p,setOptions:function(C){var O=typeof C=="function"?C(p.options):C;f(),p.options=Object.assign({},i,p.options,O),p.scrollParents={reference:Do(l)?Bn(l):l.contextElement?Bn(l.contextElement):[],popper:Bn(c)};var S=eb(ob([].concat(r,p.options.modifiers)));return p.orderedModifiers=S.filter(function(x){return x.enabled}),h(),v.update()},forceUpdate:function(){if(!b){var C=p.elements,O=C.reference,S=C.popper;if(el(O,S)){p.rects={reference:Jh(O,Zn(S),p.options.strategy==="fixed"),popper:Mi(S)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(N){return p.modifiersData[N.name]=Object.assign({},N.data)});for(var x=0;x<p.orderedModifiers.length;x++){if(p.reset===!0){p.reset=!1,x=-1;continue}var T=p.orderedModifiers[x],E=T.fn,j=T.options,R=j===void 0?{}:j,I=T.name;typeof E=="function"&&(p=E({state:p,options:R,name:I,instance:v})||p)}}}},update:tb(function(){return new Promise(function(y){v.forceUpdate(),y(p)})}),destroy:function(){f(),b=!0}};if(!el(l,c))return v;v.setOptions(d).then(function(y){!b&&d.onFirstUpdate&&d.onFirstUpdate(y)});function h(){p.orderedModifiers.forEach(function(y){var C=y.name,O=y.options,S=O===void 0?{}:O,x=y.effect;if(typeof x=="function"){var T=x({state:p,name:C,instance:v,options:S}),E=function(){};g.push(T||E)}})}function f(){g.forEach(function(y){return y()}),g=[]}return v}}var rb=[kh,Hh,Oh,mh,Wh,Dh,Kh,Ch,Fh],ab=nb({defaultModifiers:rb});function Zt(e){const{elementType:o,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...i}=e,s=a?{}:fc(n,r),{props:l,internalRef:c}=mc({...i,externalSlotProps:s}),d=ot(c,s?.ref,e.additionalProps?.ref);return uc(o,{...l,ref:d},r)}function ib(e){return typeof e=="function"?e():e}const Wn=w.forwardRef(function(o,n){const{children:r,container:a,disablePortal:i=!1}=o,[s,l]=w.useState(null),c=ot(w.isValidElement(r)?Vo(r):null,n);if(Wt(()=>{i||l(ib(a)||document.body)},[a,i]),Wt(()=>{if(s&&!i)return Ua(n,s),()=>{Ua(n,null)}},[n,s,i]),i){if(w.isValidElement(r)){const d={ref:c};return w.cloneElement(r,d)}return r}return s&&Kd.createPortal(r,s)});process.env.NODE_ENV!=="production"&&(Wn.propTypes={children:t.node,container:t.oneOfType([co,t.func]),disablePortal:t.bool});process.env.NODE_ENV!=="production"&&(Wn.propTypes=gi(Wn.propTypes));function sb(e){return xe("MuiPopper",e)}Ce("MuiPopper",["root"]);function lb(e,o){if(o==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Pr(e){return typeof e=="function"?e():e}function Jr(e){return e.nodeType!==void 0}function cb(e){return!Jr(e)}const db=e=>{const{classes:o}=e;return we({root:["root"]},sb,o)},pb={},ub=w.forwardRef(function(o,n){const{anchorEl:r,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:d,popperOptions:p,popperRef:g,slotProps:b={},slots:v={},TransitionProps:h,ownerState:f,...y}=o,C=w.useRef(null),O=ot(C,n),S=w.useRef(null),x=ot(S,g),T=w.useRef(x);Wt(()=>{T.current=x},[x]),w.useImperativeHandle(g,()=>S.current,[]);const E=lb(d,i),[j,R]=w.useState(E),[I,N]=w.useState(Pr(r));w.useEffect(()=>{S.current&&S.current.forceUpdate()}),w.useEffect(()=>{r&&N(Pr(r))},[r]),Wt(()=>{if(!I||!c)return;const M=V=>{R(V.placement)};if(process.env.NODE_ENV!=="production"&&I&&Jr(I)&&I.nodeType===1){const V=I.getBoundingClientRect();process.env.NODE_ENV!=="test"&&V.top===0&&V.left===0&&V.right===0&&V.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
249
|
+
`))}let k=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{M(V)}}];l!=null&&(k=k.concat(l)),p&&p.modifiers!=null&&(k=k.concat(p.modifiers));const z=ab(I,C.current,{placement:E,...p,modifiers:k});return T.current(z),()=>{z.destroy(),T.current(null)}},[I,s,l,c,p,E]);const A={placement:j};h!==null&&(A.TransitionProps=h);const m=db(o),$=v.root??"div",P=Zt({elementType:$,externalSlotProps:b.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:O},ownerState:o,className:m.root});return u.jsx($,{...P,children:typeof a=="function"?a(A):a})}),Uc=w.forwardRef(function(o,n){const{anchorEl:r,children:a,container:i,direction:s="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:d,open:p,placement:g="bottom",popperOptions:b=pb,popperRef:v,style:h,transition:f=!1,slotProps:y={},slots:C={},...O}=o,[S,x]=w.useState(!0),T=()=>{x(!1)},E=()=>{x(!0)};if(!c&&!p&&(!f||S))return null;let j;if(i)j=i;else if(r){const N=Pr(r);j=N&&Jr(N)?mt(N).body:mt(null).body}const R=!p&&c&&(!f||S)?"none":void 0,I=f?{in:p,onEnter:T,onExited:E}:void 0;return u.jsx(Wn,{disablePortal:l,container:j,children:u.jsx(ub,{anchorEl:r,direction:s,disablePortal:l,modifiers:d,ref:n,open:f?!S:p,placement:g,popperOptions:b,popperRef:v,slotProps:y,slots:C,...O,style:{position:"fixed",top:0,left:0,display:R,...h},TransitionProps:I,children:a})})});process.env.NODE_ENV!=="production"&&(Uc.propTypes={anchorEl:xt(t.oneOfType([co,t.object,t.func]),e=>{if(e.open){const o=Pr(e.anchorEl);if(o&&Jr(o)&&o.nodeType===1){const n=o.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
250
|
+
`))}else if(!o||typeof o.getBoundingClientRect!="function"||cb(o)&&o.contextElement!=null&&o.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
251
|
+
`))}return null}),children:t.oneOfType([t.node,t.func]),container:t.oneOfType([co,t.func]),direction:t.oneOf(["ltr","rtl"]),disablePortal:t.bool,keepMounted:t.bool,modifiers:t.arrayOf(t.shape({data:t.object,effect:t.func,enabled:t.bool,fn:t.func,name:t.any,options:t.object,phase:t.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:t.arrayOf(t.string),requiresIfExists:t.arrayOf(t.string)})),open:t.bool.isRequired,placement:t.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:t.shape({modifiers:t.array,onFirstUpdate:t.func,placement:t.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:t.oneOf(["absolute","fixed"])}),popperRef:Pt,slotProps:t.shape({root:t.oneOfType([t.func,t.object])}),slots:t.shape({root:t.elementType}),transition:t.bool});const fb=D(Uc,{name:"MuiPopper",slot:"Root"})({}),Jn=w.forwardRef(function(o,n){const r=mn(),a=Te({props:o,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:d,disablePortal:p,keepMounted:g,modifiers:b,open:v,placement:h,popperOptions:f,popperRef:y,transition:C,slots:O,slotProps:S,...x}=a,T=O?.root??l?.Root,E={anchorEl:i,container:d,disablePortal:p,keepMounted:g,modifiers:b,open:v,placement:h,popperOptions:f,popperRef:y,transition:C,...x};return u.jsx(fb,{as:s,direction:r?"rtl":"ltr",slots:{root:T},slotProps:S??c,...E,ref:n})});process.env.NODE_ENV!=="production"&&(Jn.propTypes={anchorEl:t.oneOfType([co,t.object,t.func]),children:t.oneOfType([t.node,t.func]),component:t.elementType,components:t.shape({Root:t.elementType}),componentsProps:t.shape({root:t.oneOfType([t.func,t.object])}),container:t.oneOfType([co,t.func]),disablePortal:t.bool,keepMounted:t.bool,modifiers:t.arrayOf(t.shape({data:t.object,effect:t.func,enabled:t.bool,fn:t.func,name:t.any,options:t.object,phase:t.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:t.arrayOf(t.string),requiresIfExists:t.arrayOf(t.string)})),open:t.bool.isRequired,placement:t.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:t.shape({modifiers:t.array,onFirstUpdate:t.func,placement:t.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:t.oneOf(["absolute","fixed"])}),popperRef:Pt,slotProps:t.shape({root:t.oneOfType([t.func,t.object])}),slots:t.shape({root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),transition:t.bool});function mb(e){return xe("MuiTooltip",e)}const Ye=Ce("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function gb(e){return Math.round(e*1e5)/1e5}const hb=e=>{const{classes:o,disableInteractive:n,arrow:r,touch:a,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${F(i.split("-")[0])}`],arrow:["arrow"]};return we(s,mb,o)},bb=D(Jn,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.popper,!n.disableInteractive&&o.popperInteractive,n.arrow&&o.popperArrow,!n.open&&o.popperClose]}})(me(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:o})=>!o.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:o})=>!o,style:{pointerEvents:"none"}},{props:({ownerState:o})=>o.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ye.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ye.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ye.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ye.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:o})=>o.arrow&&!o.isRtl,style:{[`&[data-popper-placement*="right"] .${Ye.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:o})=>o.arrow&&!!o.isRtl,style:{[`&[data-popper-placement*="right"] .${Ye.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:o})=>o.arrow&&!o.isRtl,style:{[`&[data-popper-placement*="left"] .${Ye.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:o})=>o.arrow&&!!o.isRtl,style:{[`&[data-popper-placement*="left"] .${Ye.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),yb=D("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.tooltip,n.touch&&o.touch,n.arrow&&o.tooltipArrow,o[`tooltipPlacement${F(n.placement.split("-")[0])}`]]}})(me(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Ye.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ye.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ye.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ye.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:o})=>o.arrow,style:{position:"relative",margin:0}},{props:({ownerState:o})=>o.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${gb(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:o})=>!o.isRtl,style:{[`.${Ye.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ye.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:o})=>!o.isRtl&&o.touch,style:{[`.${Ye.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ye.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:o})=>!!o.isRtl,style:{[`.${Ye.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ye.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:o})=>!!o.isRtl&&o.touch,style:{[`.${Ye.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ye.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:o})=>o.touch,style:{[`.${Ye.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:o})=>o.touch,style:{[`.${Ye.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),vb=D("span",{name:"MuiTooltip",slot:"Arrow"})(me(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let lr=!1;const tl=new Yr;let wn={x:0,y:0};function cr(e,o){return(n,...r)=>{o&&o(n,...r),e(n,...r)}}const Qn=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiTooltip"}),{arrow:a=!1,children:i,classes:s,components:l={},componentsProps:c={},describeChild:d=!1,disableFocusListener:p=!1,disableHoverListener:g=!1,disableInteractive:b=!1,disableTouchListener:v=!1,enterDelay:h=100,enterNextDelay:f=0,enterTouchDelay:y=700,followCursor:C=!1,id:O,leaveDelay:S=0,leaveTouchDelay:x=1500,onClose:T,onOpen:E,open:j,placement:R="bottom",PopperComponent:I,PopperProps:N={},slotProps:A={},slots:m={},title:$,TransitionComponent:P,TransitionProps:M,...k}=r,z=w.isValidElement(i)?i:u.jsx("span",{children:i}),V=jt(),W=mn(),[B,L]=w.useState(),[Y,Z]=w.useState(null),oe=w.useRef(!1),K=b||C,U=vo(),ae=vo(),ce=vo(),J=vo(),[X,de]=Qt({controlled:j,default:!1,name:"Tooltip",state:"open"});let _=X;if(process.env.NODE_ENV!=="production"){const{current:je}=w.useRef(j!==void 0);w.useEffect(()=>{B&&B.disabled&&!je&&$!==""&&B.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
252
|
+
`))},[$,B,je])}const se=uo(O),ie=w.useRef(),pe=bt(()=>{ie.current!==void 0&&(document.body.style.WebkitUserSelect=ie.current,ie.current=void 0),J.clear()});w.useEffect(()=>pe,[pe]);const ke=je=>{tl.clear(),lr=!0,de(!0),E&&!_&&E(je)},Ee=bt(je=>{tl.start(800+S,()=>{lr=!1}),de(!1),T&&_&&T(je),U.start(V.transitions.duration.shortest,()=>{oe.current=!1})}),ee=je=>{oe.current&&je.type!=="touchstart"||(B&&B.removeAttribute("title"),ae.clear(),ce.clear(),h||lr&&f?ae.start(lr?f:h,()=>{ke(je)}):ke(je))},De=je=>{ae.clear(),ce.start(S,()=>{Ee(je)})},[,Se]=w.useState(!1),he=je=>{So(je.target)||(Se(!1),De(je))},ne=je=>{B||L(je.currentTarget),So(je.target)&&(Se(!0),ee(je))},ze=je=>{oe.current=!0;const St=z.props;St.onTouchStart&&St.onTouchStart(je)},Me=je=>{ze(je),ce.clear(),U.clear(),pe(),ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",J.start(y,()=>{document.body.style.WebkitUserSelect=ie.current,ee(je)})},te=je=>{z.props.onTouchEnd&&z.props.onTouchEnd(je),pe(),ce.start(x,()=>{Ee(je)})};w.useEffect(()=>{if(!_)return;function je(St){St.key==="Escape"&&Ee(St)}return document.addEventListener("keydown",je),()=>{document.removeEventListener("keydown",je)}},[Ee,_]);const Q=ot(Vo(z),L,n);!$&&$!==0&&(_=!1);const be=w.useRef(),Oe=je=>{const St=z.props;St.onMouseMove&&St.onMouseMove(je),wn={x:je.clientX,y:je.clientY},be.current&&be.current.update()},Pe={},ve=typeof $=="string";d?(Pe.title=!_&&ve&&!g?$:null,Pe["aria-describedby"]=_?se:null):(Pe["aria-label"]=ve?$:null,Pe["aria-labelledby"]=_&&!ve?se:null);const ue={...Pe,...k,...z.props,className:re(k.className,z.props.className),onTouchStart:ze,ref:Q,...C?{onMouseMove:Oe}:{}};process.env.NODE_ENV!=="production"&&(ue["data-mui-internal-clone-element"]=!0,w.useEffect(()=>{B&&!B.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
253
|
+
`))},[B]));const Ve={};v||(ue.onTouchStart=Me,ue.onTouchEnd=te),g||(ue.onMouseOver=cr(ee,ue.onMouseOver),ue.onMouseLeave=cr(De,ue.onMouseLeave),K||(Ve.onMouseOver=ee,Ve.onMouseLeave=De)),p||(ue.onFocus=cr(ne,ue.onFocus),ue.onBlur=cr(he,ue.onBlur),K||(Ve.onFocus=ne,Ve.onBlur=he)),process.env.NODE_ENV!=="production"&&z.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${z.props.title}\` or the Tooltip component.`].join(`
|
|
254
|
+
`));const Ne={...r,isRtl:W,arrow:a,disableInteractive:K,placement:R,PopperComponentProp:I,touch:oe.current},We=typeof A.popper=="function"?A.popper(Ne):A.popper,Ot=w.useMemo(()=>{let je=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return N.popperOptions?.modifiers&&(je=je.concat(N.popperOptions.modifiers)),We?.popperOptions?.modifiers&&(je=je.concat(We.popperOptions.modifiers)),{...N.popperOptions,...We?.popperOptions,modifiers:je}},[Y,N.popperOptions,We?.popperOptions]),vt=hb(Ne),ut=typeof A.transition=="function"?A.transition(Ne):A.transition,ye={slots:{popper:l.Popper,transition:l.Transition??P,tooltip:l.Tooltip,arrow:l.Arrow,...m},slotProps:{arrow:A.arrow??c.arrow,popper:{...N,...We??c.popper},tooltip:A.tooltip??c.tooltip,transition:{...M,...ut??c.transition}}},[Ae,Xe]=ge("popper",{elementType:bb,externalForwardedProps:ye,ownerState:Ne,className:re(vt.popper,N?.className)}),[gt,_e]=ge("transition",{elementType:ln,externalForwardedProps:ye,ownerState:Ne}),[tt,Et]=ge("tooltip",{elementType:yb,className:vt.tooltip,externalForwardedProps:ye,ownerState:Ne}),[wt,ft]=ge("arrow",{elementType:vb,className:vt.arrow,externalForwardedProps:ye,ownerState:Ne,ref:Z});return u.jsxs(w.Fragment,{children:[w.cloneElement(z,ue),u.jsx(Ae,{as:I??Jn,placement:R,anchorEl:C?{getBoundingClientRect:()=>({top:wn.y,left:wn.x,right:wn.x,bottom:wn.y,width:0,height:0})}:B,popperRef:be,open:B?_:!1,id:se,transition:!0,...Ve,...Xe,popperOptions:Ot,children:({TransitionProps:je})=>u.jsx(gt,{timeout:V.transitions.duration.shorter,...je,..._e,children:u.jsxs(tt,{...Et,children:[$,a?u.jsx(wt,{...ft}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Qn.propTypes={arrow:t.bool,children:Fo.isRequired,classes:t.object,className:t.string,components:t.shape({Arrow:t.elementType,Popper:t.elementType,Tooltip:t.elementType,Transition:t.elementType}),componentsProps:t.shape({arrow:t.object,popper:t.object,tooltip:t.object,transition:t.object}),describeChild:t.bool,disableFocusListener:t.bool,disableHoverListener:t.bool,disableInteractive:t.bool,disableTouchListener:t.bool,enterDelay:t.number,enterNextDelay:t.number,enterTouchDelay:t.number,followCursor:t.bool,id:t.string,leaveDelay:t.number,leaveTouchDelay:t.number,onClose:t.func,onOpen:t.func,open:t.bool,placement:t.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:t.elementType,PopperProps:t.object,slotProps:t.shape({arrow:t.oneOfType([t.func,t.object]),popper:t.oneOfType([t.func,t.object]),tooltip:t.oneOfType([t.func,t.object]),transition:t.oneOfType([t.func,t.object])}),slots:t.shape({arrow:t.elementType,popper:t.elementType,tooltip:t.elementType,transition:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),title:t.node,TransitionComponent:t.elementType,TransitionProps:t.object});const Di={fontSize:"0.8125rem",padding:"8px 12px",maxWidth:250,lineHeight:1.4},Hc={...Di,boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},xb=it.styled(({className:e,...o})=>u.jsx(Qn,{...o,classes:{popper:e}}))(({theme:e})=>({[`& .${Ye.arrow}`]:{color:e.palette.grey[900]},[`& .${Ye.tooltip}`]:{backgroundColor:e.palette.grey[900],...Hc}})),Cb=it.styled(({className:e,...o})=>u.jsx(Qn,{...o,classes:{popper:e}}))(({theme:e})=>({[`& .${Ye.arrow}`]:{color:e.palette.common.white},[`& .${Ye.tooltip}`]:{backgroundColor:e.palette.common.white,color:"rgba(0, 0, 0, 0.87)",boxShadow:e.shadows[4],border:"1px solid #e0e0e0",...Di}})),wb=it.styled(({className:e,...o})=>u.jsx(Qn,{...o,classes:{popper:e}}))(({theme:e})=>({[`& .${Ye.arrow}`]:{color:e.palette.primary.main},[`& .${Ye.tooltip}`]:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,...Di,boxShadow:`0 4px 12px ${it.alpha(e.palette.primary.main,.4)}`}})),Sb=it.styled(({className:e,...o})=>u.jsx(Qn,{...o,classes:{popper:e}}))(({theme:e})=>({[`& .${Ye.arrow}`]:{color:"#1e40af"},[`& .${Ye.tooltip}`]:{backgroundColor:"#1e40af",color:"#ffffff",...Hc}})),qc=({contenido:e,children:o,lado:n="arriba",flecha:r=!0,color:a="oscuro",animacion:i="zoom",retraso:s=200,className:l,sx:c,...d})=>{const p=b=>{switch(b){case"arriba":return"top";case"abajo":return"bottom";case"izquierda":return"left";case"derecha":return"right";default:return"top"}},g=a==="claro"?Cb:a==="primario"?wb:a==="azul"?Sb:xb;return u.jsx(g,{title:e,placement:p(n),arrow:r,enterDelay:s,TransitionComponent:i==="fade"?it.Fade:it.Zoom,className:l,sx:c,...d,children:o})},Tb=qc;function Ob(e={}){const{autoHideDuration:o=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:i}=e,s=vo();w.useEffect(()=>{if(!a)return;function C(O){O.defaultPrevented||O.key==="Escape"&&r?.(O,"escapeKeyDown")}return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[a,r]);const l=bt((C,O)=>{r?.(C,O)}),c=bt(C=>{!r||C==null||s.start(C,()=>{l(null,"timeout")})});w.useEffect(()=>(a&&c(o),s.clear),[a,o,c,s]);const d=C=>{r?.(C,"clickaway")},p=s.clear,g=w.useCallback(()=>{o!=null&&c(i??o*.5)},[o,i,c]),b=C=>O=>{const S=C.onBlur;S?.(O),g()},v=C=>O=>{const S=C.onFocus;S?.(O),p()},h=C=>O=>{const S=C.onMouseEnter;S?.(O),p()},f=C=>O=>{const S=C.onMouseLeave;S?.(O),g()};return w.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",g),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",p)}},[n,a,g,p]),{getRootProps:(C={})=>{const O={...Lo(e),...Lo(C)};return{role:"presentation",...C,...O,onBlur:b(O),onFocus:v(O),onMouseEnter:h(O),onMouseLeave:f(O)}},onClickAway:d}}function ol(e){return e.substring(2).toLowerCase()}function Eb(e,o){return o.documentElement.clientWidth<e.clientX||o.documentElement.clientHeight<e.clientY}function Rr(e){const{children:o,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:a,touchEvent:i="onTouchEnd"}=e,s=w.useRef(!1),l=w.useRef(null),c=w.useRef(!1),d=w.useRef(!1);w.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=ot(Vo(o),l),g=bt(h=>{const f=d.current;d.current=!1;const y=mt(l.current);if(!c.current||!l.current||"clientX"in h&&Eb(h,y))return;if(s.current){s.current=!1;return}let C;h.composedPath?C=h.composedPath().includes(l.current):C=!y.documentElement.contains(h.target)||l.current.contains(h.target),!C&&(n||!f)&&a(h)}),b=h=>f=>{d.current=!0;const y=o.props[h];y&&y(f)},v={ref:p};return i!==!1&&(v[i]=b(i)),w.useEffect(()=>{if(i!==!1){const h=ol(i),f=mt(l.current),y=()=>{s.current=!0};return f.addEventListener(h,g),f.addEventListener("touchmove",y),()=>{f.removeEventListener(h,g),f.removeEventListener("touchmove",y)}}},[g,i]),r!==!1&&(v[r]=b(r)),w.useEffect(()=>{if(r!==!1){const h=ol(r),f=mt(l.current);return f.addEventListener(h,g),()=>{f.removeEventListener(h,g)}}},[g,r]),w.cloneElement(o,v)}process.env.NODE_ENV!=="production"&&(Rr.propTypes={children:Fo.isRequired,disableReactTree:t.bool,mouseEvent:t.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:t.func.isRequired,touchEvent:t.oneOf(["onTouchEnd","onTouchStart",!1])});process.env.NODE_ENV!=="production"&&(Rr.propTypes=gi(Rr.propTypes));function kb(e){return xe("MuiSnackbarContent",e)}Ce("MuiSnackbarContent",["root","message","action"]);const Pb=e=>{const{classes:o}=e;return we({root:["root"],action:["action"],message:["message"]},kb,o)},Rb=D(Oo,{name:"MuiSnackbarContent",slot:"Root"})(me(({theme:e})=>{const o=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Fa(e.palette.background.default,o)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Fa(e.palette.background.default,o),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Ib=D("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),$b=D("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Gc=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiSnackbarContent"}),{action:a,className:i,message:s,role:l="alert",...c}=r,d=r,p=Pb(d);return u.jsxs(Rb,{role:l,elevation:6,className:re(p.root,i),ownerState:d,ref:n,...c,children:[u.jsx(Ib,{className:p.message,ownerState:d,children:s}),a?u.jsx($b,{className:p.action,ownerState:d,children:a}):null]})});process.env.NODE_ENV!=="production"&&(Gc.propTypes={action:t.node,classes:t.object,className:t.string,message:t.node,role:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function jb(e){return xe("MuiSnackbar",e)}Ce("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Mb=e=>{const{classes:o,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${F(n.vertical)}${F(n.horizontal)}`]};return we(r,jb,o)},Nb=D("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[`anchorOrigin${F(n.anchorOrigin.vertical)}${F(n.anchorOrigin.horizontal)}`]]}})(me(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:o})=>o.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:o})=>o.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:o})=>o.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:o})=>o.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:o})=>o.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Kc=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiSnackbar"}),a=jt(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:p,className:g,ClickAwayListenerProps:b,ContentProps:v,disableWindowBlurListener:h=!1,message:f,onBlur:y,onClose:C,onFocus:O,onMouseEnter:S,onMouseLeave:x,open:T,resumeHideDuration:E,slots:j={},slotProps:R={},TransitionComponent:I,transitionDuration:N=i,TransitionProps:{onEnter:A,onExited:m,...$}={},...P}=r,M={...r,anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:d,disableWindowBlurListener:h,TransitionComponent:I,transitionDuration:N},k=Mb(M),{getRootProps:z,onClickAway:V}=Ob(M),[W,B]=w.useState(!0),L=se=>{B(!0),m&&m(se)},Y=(se,ie)=>{B(!1),A&&A(se,ie)},Z={slots:{transition:I,...j},slotProps:{content:v,clickAwayListener:b,transition:$,...R}},[oe,K]=ge("root",{ref:n,className:[k.root,g],elementType:Nb,getSlotProps:z,externalForwardedProps:{...Z,...P},ownerState:M}),[U,{ownerState:ae,...ce}]=ge("clickAwayListener",{elementType:Rr,externalForwardedProps:Z,getSlotProps:se=>({onClickAway:(...ie)=>{const pe=ie[0];se.onClickAway?.(...ie),!pe?.defaultMuiPrevented&&V(...ie)}}),ownerState:M}),[J,X]=ge("content",{elementType:Gc,shouldForwardComponentProp:!0,externalForwardedProps:Z,additionalProps:{message:f,action:s},ownerState:M}),[de,_]=ge("transition",{elementType:ln,externalForwardedProps:Z,getSlotProps:se=>({onEnter:(...ie)=>{se.onEnter?.(...ie),Y(...ie)},onExited:(...ie)=>{se.onExited?.(...ie),L(...ie)}}),additionalProps:{appear:!0,in:T,timeout:N,direction:l==="top"?"down":"up"},ownerState:M});return!T&&W?null:u.jsx(U,{...ce,...j.clickAwayListener&&{ownerState:ae},children:u.jsx(oe,{...K,children:u.jsx(de,{..._,children:p||u.jsx(J,{...X})})})})});process.env.NODE_ENV!=="production"&&(Kc.propTypes={action:t.node,anchorOrigin:t.shape({horizontal:t.oneOf(["center","left","right"]).isRequired,vertical:t.oneOf(["bottom","top"]).isRequired}),autoHideDuration:t.number,children:t.element,classes:t.object,className:t.string,ClickAwayListenerProps:t.object,ContentProps:t.object,disableWindowBlurListener:t.bool,key:()=>null,message:t.node,onBlur:t.func,onClose:t.func,onFocus:t.func,onMouseEnter:t.func,onMouseLeave:t.func,open:t.bool,resumeHideDuration:t.number,slotProps:t.shape({clickAwayListener:t.oneOfType([t.func,t.object]),content:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),transition:t.oneOfType([t.func,t.object])}),slots:t.shape({clickAwayListener:t.elementType,content:t.elementType,root:t.elementType,transition:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),TransitionComponent:t.elementType,transitionDuration:t.oneOfType([t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})]),TransitionProps:t.object});function Ab(e){return xe("MuiLinearProgress",e)}Ce("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const ri=4,ai=le.keyframes`
|
|
267
255
|
0% {
|
|
268
256
|
left: -35%;
|
|
269
257
|
right: 100%;
|
|
@@ -278,9 +266,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
278
266
|
left: 100%;
|
|
279
267
|
right: -90%;
|
|
280
268
|
}
|
|
281
|
-
`,
|
|
282
|
-
animation: ${
|
|
283
|
-
`:null,
|
|
269
|
+
`,Lb=typeof ai!="string"?le.css`
|
|
270
|
+
animation: ${ai} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
271
|
+
`:null,ii=le.keyframes`
|
|
284
272
|
0% {
|
|
285
273
|
left: -200%;
|
|
286
274
|
right: 100%;
|
|
@@ -295,9 +283,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
295
283
|
left: 107%;
|
|
296
284
|
right: -8%;
|
|
297
285
|
}
|
|
298
|
-
`,
|
|
299
|
-
animation: ${
|
|
300
|
-
`:null,
|
|
286
|
+
`,Bb=typeof ii!="string"?le.css`
|
|
287
|
+
animation: ${ii} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
288
|
+
`:null,si=le.keyframes`
|
|
301
289
|
0% {
|
|
302
290
|
opacity: 1;
|
|
303
291
|
background-position: 0 -23px;
|
|
@@ -312,25 +300,35 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
312
300
|
opacity: 1;
|
|
313
301
|
background-position: -200px -23px;
|
|
314
302
|
}
|
|
315
|
-
`,
|
|
316
|
-
animation: ${
|
|
317
|
-
`:null,S1=e=>{const{classes:t,variant:n,color:r}=e,a={root:["root",`color${V(r)}`,n],dashed:["dashed",`dashedColor${V(r)}`],bar1:["bar","bar1",`barColor${V(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${V(r)}`,n==="buffer"&&`color${V(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return he(a,x1,t)},zs=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),O1=D("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${V(n.color)}`],t[n.variant]]}})(pe(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{backgroundColor:zs(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),E1=D("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${V(n.color)}`]]}})(pe(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(qe()).map(([t])=>{const n=zs(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),T1||{animation:`${Ki} 3s infinite linear`}),k1=D("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${V(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(pe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Hi}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Hi}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:C1||{animation:`${qi} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),P1=D("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${V(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(pe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:zs(e,t),transition:`transform .${Hi}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:w1||{animation:`${Gi} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Vs=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiLinearProgress"}),{className:a,color:i="primary",value:s,valueBuffer:l,variant:c="indeterminate",...u}=r,d={...r,color:i,variant:c},f=S1(d),y=Pn(),x={},h={bar1:{},bar2:{}};if(c==="determinate"||c==="buffer")if(s!==void 0){x["aria-valuenow"]=Math.round(s),x["aria-valuemin"]=0,x["aria-valuemax"]=100;let p=s-100;y&&(p=-p),h.bar1.transform=`translateX(${p}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(c==="buffer")if(l!==void 0){let p=(l||0)-100;y&&(p=-p),h.bar2.transform=`translateX(${p}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return m.jsxs(O1,{className:Q(f.root,a),ownerState:d,role:"progressbar",...x,ref:n,...u,children:[c==="buffer"?m.jsx(E1,{className:f.dashed,ownerState:d}):null,m.jsx(k1,{className:f.bar1,ownerState:d,style:h.bar1}),c==="determinate"?null:m.jsx(P1,{className:f.bar2,ownerState:d,style:h.bar2})]})});process.env.NODE_ENV!=="production"&&(Vs.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number,valueBuffer:o.number,variant:o.oneOf(["buffer","determinate","indeterminate","query"])});const Xt=w.createContext({});process.env.NODE_ENV!=="production"&&(Xt.displayName="ListContext");function R1(e){return ge("MuiList",e)}be("MuiList",["root","padding","dense","subheader"]);const $1=e=>{const{classes:t,disablePadding:n,dense:r,subheader:a}=e;return he({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},R1,t)},I1=D("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),_s=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiList"}),{children:a,className:i,component:s="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=r,f=w.useMemo(()=>({dense:l}),[l]),y={...r,component:s,dense:l,disablePadding:c},x=$1(y);return m.jsx(Xt.Provider,{value:f,children:m.jsxs(I1,{as:s,className:Q(x.root,i),ref:n,ownerState:y,...d,children:[u,a]})})});process.env.NODE_ENV!=="production"&&(_s.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function j1(e){return ge("MuiListItem",e)}be("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function M1(e){return ge("MuiListItemButton",e)}const mn=be("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),N1=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},A1=e=>{const{alignItems:t,classes:n,dense:r,disabled:a,disableGutters:i,divider:s,selected:l}=e,u=he({root:["root",r&&"dense",!i&&"gutters",s&&"divider",a&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},M1,n);return{...n,...u}},L1=D(To,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:N1})(pe(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mn.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${mn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${mn.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),kd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:i=!1,component:s="div",children:l,dense:c=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:y=!1,className:x,...h}=r,p=w.useContext(Xt),b=w.useMemo(()=>({dense:c||p.dense||!1,alignItems:a,disableGutters:u}),[a,p.dense,c,u]),v=w.useRef(null);Jt(()=>{i&&(v.current?v.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[i]);const O={...r,alignItems:a,dense:b.dense,disableGutters:u,divider:d,selected:y},T=A1(O),C=nt(v,n);return m.jsx(Xt.Provider,{value:b,children:m.jsx(L1,{ref:C,href:h.href||h.to,component:(h.href||h.to)&&s==="div"?"button":s,focusVisibleClassName:Q(T.focusVisible,f),ownerState:O,className:Q(T.root,x),...h,classes:T,children:l})})});process.env.NODE_ENV!=="production"&&(kd.propTypes={alignItems:o.oneOf(["center","flex-start"]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,href:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function D1(e){return ge("MuiListItemSecondaryAction",e)}be("MuiListItemSecondaryAction",["root","disableGutters"]);const B1=e=>{const{disableGutters:t,classes:n}=e;return he({root:["root",t&&"disableGutters"]},D1,n)},F1=D("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Ws=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemSecondaryAction"}),{className:a,...i}=r,s=w.useContext(Xt),l={...r,disableGutters:s.disableGutters},c=B1(l);return m.jsx(F1,{className:Q(c.root,a),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Ws.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});Ws.muiName="ListItemSecondaryAction";const z1=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},V1=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:a,disablePadding:i,divider:s,hasSecondaryAction:l}=e;return he({root:["root",r&&"dense",!a&&"gutters",!i&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},j1,n)},_1=D("div",{name:"MuiListItem",slot:"Root",overridesResolver:z1})(pe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${mn.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),W1=D("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Pd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItem"}),{alignItems:a="center",children:i,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f,...y}={},dense:x=!1,disableGutters:h=!1,disablePadding:p=!1,divider:b=!1,secondaryAction:v,slotProps:O={},slots:T={},...C}=r,S=w.useContext(Xt),E=w.useMemo(()=>({dense:x||S.dense||!1,alignItems:a,disableGutters:h}),[a,S.dense,x,h]),P=w.useRef(null),$=w.Children.toArray(i),I=$.length&&Xn($[$.length-1],["ListItemSecondaryAction"]),N={...r,alignItems:a,dense:E.dense,disableGutters:h,disablePadding:p,divider:b,hasSecondaryAction:I},A=V1(N),g=nt(P,n),j={slots:T,slotProps:O},[R,M]=me("secondaryAction",{elementType:Ws,externalForwardedProps:j,ownerState:N,className:A.secondaryAction}),k=T.root||c.Root||_1,z=O.root||u.root||{},F={className:Q(A.root,z.className,s),...C};let _=l||"li";return I?(_=!F.component&&!l?"div":_,d==="li"&&(_==="li"?_="div":F.component==="li"&&(F.component="div")),m.jsx(Xt.Provider,{value:E,children:m.jsxs(W1,{as:d,className:Q(A.container,f),ref:g,ownerState:N,...y,children:[m.jsx(k,{...z,...!fo(k)&&{as:_,ownerState:{...N,...z.ownerState}},...F,children:$}),$.pop()]})})):m.jsx(Xt.Provider,{value:E,children:m.jsxs(k,{...z,as:_,ref:g,...!fo(k)&&{ownerState:{...N,...z.ownerState}},...F,children:[$,v&&m.jsx(R,{...M,children:v})]})})});process.env.NODE_ENV!=="production"&&(Pd.propTypes={alignItems:o.oneOf(["center","flex-start"]),children:Tt(o.node,e=>{const t=w.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const a=t[r];if(Xn(a,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),ContainerComponent:hr,ContainerProps:o.object,dense:o.bool,disableGutters:o.bool,disablePadding:o.bool,divider:o.bool,secondaryAction:o.node,slotProps:o.shape({root:o.object,secondaryAction:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,secondaryAction:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function U1(e){return ge("MuiListItemIcon",e)}const $c=be("MuiListItemIcon",["root","alignItemsFlexStart"]),H1=e=>{const{alignItems:t,classes:n}=e;return he({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},U1,n)},q1=D("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(pe(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Rd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemIcon"}),{className:a,...i}=r,s=w.useContext(Xt),l={...r,alignItems:s.alignItems},c=H1(l);return m.jsx(q1,{className:Q(c.root,a),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Rd.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function G1(e){return ge("MuiListItemText",e)}const hn=be("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),K1=e=>{const{classes:t,inset:n,primary:r,secondary:a,dense:i}=e;return he({root:["root",n&&"inset",i&&"dense",r&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},G1,t)},Y1=D("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hn.primary}`]:t.primary},{[`& .${hn.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Xr.root}:where(& .${hn.primary})`]:{display:"block"},[`.${Xr.root}:where(& .${hn.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),$d=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemText"}),{children:a,className:i,disableTypography:s=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f,slots:y={},slotProps:x={},...h}=r,{dense:p}=w.useContext(Xt);let b=c??a,v=d;const O={...r,disableTypography:s,inset:l,primary:!!b,secondary:!!v,dense:p},T=K1(O),C={slots:y,slotProps:{primary:u,secondary:f,...x}},[S,E]=me("root",{className:Q(T.root,i),elementType:Y1,externalForwardedProps:{...C,...h},ownerState:O,ref:n}),[P,$]=me("primary",{className:T.primary,elementType:at,externalForwardedProps:C,ownerState:O}),[I,N]=me("secondary",{className:T.secondary,elementType:at,externalForwardedProps:C,ownerState:O});return b!=null&&b.type!==at&&!s&&(b=m.jsx(P,{variant:p?"body2":"body1",component:$?.variant?void 0:"span",...$,children:b})),v!=null&&v.type!==at&&!s&&(v=m.jsx(I,{variant:"body2",color:"textSecondary",...N,children:v})),m.jsxs(S,{...E,children:[b,v]})});process.env.NODE_ENV!=="production"&&($d.propTypes={children:o.node,classes:o.object,className:o.string,disableTypography:o.bool,inset:o.bool,primary:o.node,primaryTypographyProps:o.object,secondary:o.node,secondaryTypographyProps:o.object,slotProps:o.shape({primary:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),secondary:o.oneOfType([o.func,o.object])}),slots:o.shape({primary:o.elementType,root:o.elementType,secondary:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function yi(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ic(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Id(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Bn(e,t,n,r,a,i){let s=!1,l=a(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Id(l,i)||c)l=a(e,l,n);else return l.focus(),!0}return!1}const jd=w.forwardRef(function(t,n){const{actions:r,autoFocus:a=!1,autoFocusItem:i=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu",...y}=t,x=w.useRef(null),h=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jt(()=>{a&&x.current.focus()},[a]),w.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(T,{direction:C})=>{const S=!x.current.style.width;if(T.clientHeight<x.current.clientHeight&&S){const E=`${vd(no(T))}px`;x.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=E,x.current.style.width=`calc(100% + ${E})`}return x.current}}),[]);const p=T=>{const C=x.current,S=T.key;if(T.ctrlKey||T.metaKey||T.altKey){d&&d(T);return}const P=qn(ht(C));if(S==="ArrowDown")T.preventDefault(),Bn(C,P,u,c,yi);else if(S==="ArrowUp")T.preventDefault(),Bn(C,P,u,c,Ic);else if(S==="Home")T.preventDefault(),Bn(C,null,u,c,yi);else if(S==="End")T.preventDefault(),Bn(C,null,u,c,Ic);else if(S.length===1){const $=h.current,I=S.toLowerCase(),N=performance.now();$.keys.length>0&&(N-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&I!==$.keys[0]&&($.repeating=!1)),$.lastTime=N,$.keys.push(I);const A=P&&!$.repeating&&Id(P,$);$.previousKeyMatched&&(A||Bn(C,P,!1,c,yi,$))?T.preventDefault():$.previousKeyMatched=!1}d&&d(T)},b=nt(x,n);let v=-1;w.Children.forEach(s,(T,C)=>{if(!w.isValidElement(T)){v===C&&(v+=1,v>=s.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&Ao.isFragment(T)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
318
|
-
`))
|
|
319
|
-
`))}return{top:W.top+jc(W,s.vertical),left:W.left+Mc(W,s.horizontal)}},[i,s.horizontal,s.vertical,l,c]),g=w.useCallback(X=>({vertical:jc(X,O.vertical),horizontal:Mc(X,O.horizontal)}),[O.horizontal,O.vertical]),j=w.useCallback(X=>{const ce={width:X.offsetWidth,height:X.offsetHeight},W=g(ce);if(c==="none")return{top:null,left:null,transformOrigin:Nc(W)};const ae=A();let se=ae.top-W.vertical,ue=ae.left-W.horizontal;const ke=se+ce.height,Ee=ue+ce.width,oe=no(Kn(i)),Be=oe.innerHeight-x,Se=oe.innerWidth-x;if(x!==null&&se<x){const ye=se-x;se-=ye,W.vertical+=ye}else if(x!==null&&ke>Be){const ye=ke-Be;se-=ye,W.vertical+=ye}if(process.env.NODE_ENV!=="production"&&ce.height>Be&&ce.height&&Be&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ce.height-Be}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
320
|
-
`)),x!==null&&ue<x){const ye=ue-x;ue-=ye,W.horizontal+=ye}else if(Ee>Se){const ye=Ee-Se;ue-=ye,W.horizontal+=ye}return{top:`${Math.round(se)}px`,left:`${Math.round(ue)}px`,transformOrigin:Nc(W)}},[i,c,A,g,x]),[R,M]=w.useState(h),k=w.useCallback(()=>{const X=$.current;if(!X)return;const ce=j(X);ce.top!==null&&X.style.setProperty("top",ce.top),ce.left!==null&&(X.style.left=ce.left),X.style.transformOrigin=ce.transformOrigin,M(!0)},[j]);w.useEffect(()=>(E&&window.addEventListener("scroll",k),()=>window.removeEventListener("scroll",k)),[i,E,k]);const z=()=>{k()},F=()=>{M(!1)};w.useEffect(()=>{h&&k()}),w.useImperativeHandle(a,()=>h?{updatePosition:()=>{k()}}:null,[h,k]),w.useEffect(()=>{if(!h)return;const X=ps(()=>{k()}),ce=no(Kn(i));return ce.addEventListener("resize",X),()=>{X.clear(),ce.removeEventListener("resize",X)}},[i,h,k]);let _=C;const B={slots:{transition:T,...b},slotProps:{transition:S,paper:p,...v}},[L,G]=me("transition",{elementType:Qo,externalForwardedProps:B,ownerState:I,getSlotProps:X=>({...X,onEntering:(ce,W)=>{X.onEntering?.(ce,W),z()},onExited:ce=>{X.onExited?.(ce),F()}}),additionalProps:{appear:!0,in:h}});C==="auto"&&!L.muiSupportAuto&&(_=void 0);const J=f||(i?ht(Kn(i)).body:void 0),[te,{slots:K,slotProps:U,...ne}]=me("root",{ref:n,elementType:Z1,externalForwardedProps:{...B,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:Ru(typeof v.backdrop=="function"?v.backdrop(I):v.backdrop,{invisible:!0})},container:J,open:h},ownerState:I,className:Q(N.root,d)}),[le,Z]=me("paper",{ref:$,className:N.paper,elementType:Md,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:R?void 0:{opacity:0}},ownerState:I});return m.jsx(te,{...ne,...!fo(te)&&{slots:K,slotProps:U,disableScrollLock:E},children:m.jsx(L,{...G,timeout:_,children:m.jsx(le,{...Z,children:u})})})});process.env.NODE_ENV!=="production"&&(Nd.propTypes={action:Mt,anchorEl:Tt(o.oneOfType([bo,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Kn(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
321
|
-
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
322
|
-
`))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([bo,o.func]),disableScrollLock:o.bool,elevation:Ts,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:hr}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function Q1(e){return ge("MuiMenu",e)}be("MuiMenu",["root","paper","list"]);const eC={vertical:"top",horizontal:"right"},tC={vertical:"top",horizontal:"left"},oC=e=>{const{classes:t}=e;return he({root:["root"],paper:["paper"],list:["list"]},Q1,t)},nC=D(Nd,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),rC=D(Md,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),aC=D(jd,{name:"MuiMenu",slot:"List"})({outline:0}),Ad=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:i,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:f={},PopoverClasses:y,transitionDuration:x="auto",TransitionProps:{onEntering:h,...p}={},variant:b="selectedMenu",slots:v={},slotProps:O={},...T}=r,C=Pn(),S={...r,autoFocus:a,disableAutoFocusItem:l,MenuListProps:c,onEntering:h,PaperProps:f,transitionDuration:x,TransitionProps:p,variant:b},E=oC(S),P=a&&!l&&d,$=w.useRef(null),I=(_,B)=>{$.current&&$.current.adjustStyleForScrollbar(_,{direction:C?"rtl":"ltr"}),h&&h(_,B)},N=_=>{_.key==="Tab"&&(_.preventDefault(),u&&u(_,"tabKeyDown"))};let A=-1;w.Children.map(i,(_,B)=>{w.isValidElement(_)&&(process.env.NODE_ENV!=="production"&&Ao.isFragment(_)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
323
|
-
`)),_.props.disabled||(b==="selectedMenu"&&_.props.selected||A===-1)&&(A=B))});const g={slots:v,slotProps:{list:c,transition:p,paper:f,...O}},j=io({elementType:v.root,externalSlotProps:O.root,ownerState:S,className:[E.root,s]}),[R,M]=me("paper",{className:E.paper,elementType:rC,externalForwardedProps:g,shouldForwardComponentProp:!0,ownerState:S}),[k,z]=me("list",{className:Q(E.list,c.className),elementType:aC,shouldForwardComponentProp:!0,externalForwardedProps:g,getSlotProps:_=>({..._,onKeyDown:B=>{N(B),_.onKeyDown?.(B)}}),ownerState:S}),F=typeof g.slotProps.transition=="function"?g.slotProps.transition(S):g.slotProps.transition;return m.jsx(nC,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?eC:tC,slots:{root:v.root,paper:R,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:j,paper:M,backdrop:typeof O.backdrop=="function"?O.backdrop(S):O.backdrop,transition:{...F,onEntering:(..._)=>{I(..._),F?.onEntering?.(..._)}}},open:d,ref:n,transitionDuration:x,ownerState:S,...T,classes:y,children:m.jsx(k,{actions:$,autoFocus:a&&(A===-1||l),autoFocusItem:P,variant:b,...z,children:i})})});process.env.NODE_ENV!=="production"&&(Ad.propTypes={anchorEl:o.oneOfType([bo,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function iC(e){return ge("MuiMenuItem",e)}const Fn=be("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),sC=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},lC=e=>{const{disabled:t,dense:n,divider:r,disableGutters:a,selected:i,classes:s}=e,c=he({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",i&&"selected"]},iC,s);return{...s,...c}},cC=D(To,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:sC})(pe(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Fn.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Fn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Fn.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Oc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Oc.inset}`]:{marginLeft:52},[`& .${hn.root}`]:{marginTop:0,marginBottom:0},[`& .${hn.inset}`]:{paddingLeft:36},[`& .${$c.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${$c.root} svg`]:{fontSize:"1.25rem"}}}]}))),vn=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:i="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:f,className:y,...x}=r,h=w.useContext(Xt),p=w.useMemo(()=>({dense:s||h.dense||!1,disableGutters:c}),[h.dense,s,c]),b=w.useRef(null);Jt(()=>{a&&(b.current?b.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[a]);const v={...r,dense:p.dense,divider:l,disableGutters:c},O=lC(r),T=nt(b,n);let C;return r.disabled||(C=f!==void 0?f:-1),m.jsx(Xt.Provider,{value:p,children:m.jsx(cC,{ref:T,role:d,tabIndex:C,component:i,focusVisibleClassName:Q(O.focusVisible,u),className:Q(O.root,y),...x,ownerState:v,classes:O})})});process.env.NODE_ENV!=="production"&&(vn.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function uC(e){return ge("MuiNativeSelect",e)}const Us=be("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),dC=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:i,error:s}=e,l={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${V(n)}`,i&&"iconOpen",r&&"disabled"]};return he(l,uC,t)},Ld=D("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Us.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),pC=D(Ld,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:St,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Us.multiple}`]:t.multiple}]}})({}),Dd=D("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Us.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),fC=D(Dd,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${V(n.variant)}`],n.open&&t.iconOpen]}})({}),Bd=w.forwardRef(function(t,n){const{className:r,disabled:a,error:i,IconComponent:s,inputRef:l,variant:c="standard",...u}=t,d={...t,disabled:a,variant:c,error:i},f=dC(d);return m.jsxs(w.Fragment,{children:[m.jsx(pC,{ownerState:d,className:Q(f.select,r),disabled:a,ref:l||n,...u}),t.multiple?null:m.jsx(fC,{as:s,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(Bd.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Mt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var Ac;const mC=D("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:St})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),gC=D("legend",{name:"MuiNotchedOutlined",shouldForwardProp:St})(pe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Fd(e){const{children:t,classes:n,className:r,label:a,notched:i,...s}=e,l=a!=null&&a!=="",c={...e,notched:i,withLabel:l};return m.jsx(mC,{"aria-hidden":!0,className:r,ownerState:c,...s,children:m.jsx(gC,{ownerState:c,children:l?m.jsx("span",{children:a}):Ac||(Ac=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(Fd.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const hC=e=>{const{classes:t}=e,r=he({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},p0,t);return{...t,...r}},bC=D(Aa,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ma})(pe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ht.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ht.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ht.focused} .${Ht.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(qe()).map(([n])=>({props:{color:n},style:{[`&.${Ht.focused} .${Ht.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ht.error} .${Ht.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ht.disabled} .${Ht.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),yC=D(Fd,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(pe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),vC=D(La,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Na})(pe(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Wa=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:d={},slotProps:f={},type:y="text",...x}=r,h=hC(r),p=ro(),b=Vo({props:r,muiFormControl:p,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...r,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:p,fullWidth:i,hiddenLabel:b.hiddenLabel,multiline:c,size:b.size,type:y},O=d.root??a.Root??bC,T=d.input??a.Input??vC,[C,S]=me("notchedOutline",{elementType:yC,className:h.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:d,slotProps:f},additionalProps:{label:l!=null&&l!==""&&b.required?m.jsxs(w.Fragment,{children:[l," ","*"]}):l}});return m.jsx(Da,{slots:{root:O,input:T},slotProps:f,renderSuffix:E=>m.jsx(C,{...S,notched:typeof u<"u"?u:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:i,inputComponent:s,multiline:c,ref:n,type:y,...x,classes:{...h,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Wa.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Mt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});Wa.muiName="Input";const xC=lt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),CC=lt(m.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),wC=D("span",{name:"MuiRadioButtonIcon",shouldForwardProp:St})({position:"relative",display:"flex"}),TC=D(xC,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),SC=D(CC,{name:"MuiRadioButtonIcon"})(pe(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Hs(e){const{checked:t=!1,classes:n={},fontSize:r}=e,a={...e,checked:t};return m.jsxs(wC,{className:n.root,ownerState:a,children:[m.jsx(TC,{fontSize:r,className:n.background,ownerState:a}),m.jsx(SC,{fontSize:r,className:n.dot,ownerState:a})]})}process.env.NODE_ENV!=="production"&&(Hs.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const qs=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(qs.displayName="RadioGroupContext");function OC(){return w.useContext(qs)}function EC(e){return ge("MuiRadio",e)}const Lc=be("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),kC=e=>{const{classes:t,color:n,size:r}=e,a={root:["root",`color${V(n)}`,r!=="medium"&&`size${V(r)}`]};return{...t,...he(a,EC,t)}},PC=D(Ba,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${V(n.size)}`],t[`color${V(n.color)}`]]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Lc.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Lc.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function RC(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const $C=m.jsx(Hs,{checked:!0}),IC=m.jsx(Hs,{}),zd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:i=$C,color:s="primary",icon:l=IC,name:c,onChange:u,size:d="medium",className:f,disabled:y,disableRipple:x=!1,slots:h={},slotProps:p={},inputProps:b,...v}=r,O=ro();let T=y;O&&typeof T>"u"&&(T=O.disabled),T??=!1;const C={...r,disabled:T,disableRipple:x,color:s,size:d},S=kC(C),E=OC();let P=a;const $=Ci(u,E&&E.onChange);let I=c;E&&(typeof P>"u"&&(P=RC(E.value,r.value)),typeof I>"u"&&(I=E.name));const N=p.input??b,[A,g]=me("root",{ref:n,elementType:PC,className:Q(S.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:p,...v},getSlotProps:j=>({...j,onChange:(R,...M)=>{j.onChange?.(R,...M),$(R,...M)}}),ownerState:C,additionalProps:{type:"radio",icon:w.cloneElement(l,{fontSize:l.props.fontSize??d}),checkedIcon:w.cloneElement(i,{fontSize:i.props.fontSize??d}),disabled:T,name:I,checked:P,slots:h,slotProps:{input:typeof N=="function"?N(C):N}}});return m.jsx(A,{...g,classes:S})});process.env.NODE_ENV!=="production"&&(zd.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:Mt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function jC(e){return ge("MuiRadioGroup",e)}be("MuiRadioGroup",["root","row","error"]);const MC=e=>{const{classes:t,row:n,error:r}=e;return he({root:["root",n&&"row",r&&"error"]},jC,t)},Vd=w.forwardRef(function(t,n){const{actions:r,children:a,className:i,defaultValue:s,name:l,onChange:c,value:u,...d}=t,f=w.useRef(null),y=MC(t),[x,h]=po({controlled:u,default:s,name:"RadioGroup"});w.useImperativeHandle(r,()=>({focus:()=>{let O=f.current.querySelector("input:not(:disabled):checked");O||(O=f.current.querySelector("input:not(:disabled)")),O&&O.focus()}}),[]);const p=nt(n,f),b=vo(l),v=w.useMemo(()=>({name:b,onChange(O){h(O.target.value),c&&c(O,O.target.value)},value:x}),[b,c,h,x]);return m.jsx(qs.Provider,{value:v,children:m.jsx(Ds,{role:"radiogroup",ref:p,className:Q(y.root,i),...d,children:a})})});process.env.NODE_ENV!=="production"&&(Vd.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const _d={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},NC=lt(m.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),AC=lt(m.jsx("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function LC(e){return ge("MuiRating",e)}const zn=be("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);function DC(e){const t=e.toString().split(".")[1];return t?t.length:0}function vi(e,t){if(e==null)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(DC(t)))}const BC=e=>{const{classes:t,size:n,readOnly:r,disabled:a,emptyValueFocused:i,focusVisible:s}=e,l={root:["root",`size${V(n)}`,a&&"disabled",s&&"focusVisible",r&&"readOnly"],label:["label","pristine"],labelEmptyValue:[i&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return he(l,LC,t)},FC=D("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zn.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${V(n.size)}`],n.readOnly&&t.readOnly]}})(pe(({theme:e})=>({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${zn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${zn.focusVisible} .${zn.iconActive}`]:{outline:"1px solid #999"},[`& .${zn.visuallyHidden}`]:_d,variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(30)}},{props:({ownerState:t})=>t.readOnly,style:{pointerEvents:"none"}}]}))),Wd=D("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:e},t)=>[t.label,e.emptyValueFocused&&t.labelEmptyValueActive]})({cursor:"inherit",variants:[{props:({ownerState:e})=>e.emptyValueFocused,style:{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}}]}),zC=D("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.iconEmpty&&t.iconEmpty,n.iconFilled&&t.iconFilled,n.iconHover&&t.iconHover,n.iconFocus&&t.iconFocus,n.iconActive&&t.iconActive]}})(pe(({theme:e})=>({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none",variants:[{props:({ownerState:t})=>t.iconActive,style:{transform:"scale(1.2)"}},{props:({ownerState:t})=>t.iconEmpty,style:{color:(e.vars||e).palette.action.disabled}}]}))),VC=D("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>gr(e)&&e!=="iconActive",overridesResolver:(e,t)=>{const{iconActive:n}=e;return[t.decimal,n&&t.iconActive]}})({position:"relative",variants:[{props:({iconActive:e})=>e,style:{transform:"scale(1.2)"}}]});function Ud(e){const{value:t,...n}=e;return m.jsx("span",{...n})}process.env.NODE_ENV!=="production"&&(Ud.propTypes={value:o.number.isRequired});function Yi(e){const{classes:t,disabled:n,emptyIcon:r,focus:a,getLabelText:i,highlightSelectedOnly:s,hover:l,icon:c,IconContainerComponent:u,isActive:d,itemValue:f,labelProps:y,name:x,onBlur:h,onChange:p,onClick:b,onFocus:v,readOnly:O,ownerState:T,ratingValue:C,ratingValueRounded:S,slots:E={},slotProps:P={}}=e,$=s?f===C:f<=C,I=f<=l,N=f<=a,A=f===S,g=`${x}-${vo()}`,j={slots:E,slotProps:P},[R,M]=me("icon",{elementType:zC,className:Q(t.icon,$?t.iconFilled:t.iconEmpty,I&&t.iconHover,N&&t.iconFocus,d&&t.iconActive),externalForwardedProps:j,ownerState:{...T,iconEmpty:!$,iconFilled:$,iconHover:I,iconFocus:N,iconActive:d},additionalProps:{value:f},internalForwardedProps:{as:u}}),[k,z]=me("label",{elementType:Wd,externalForwardedProps:j,ownerState:{...T,emptyValueFocused:void 0},additionalProps:{style:y?.style,htmlFor:g}}),F=m.jsx(R,{...M,children:r&&!$?r:c});return O?m.jsx("span",{...y,children:F}):m.jsxs(w.Fragment,{children:[m.jsxs(k,{...z,children:[F,m.jsx("span",{className:t.visuallyHidden,children:i(f)})]}),m.jsx("input",{className:t.visuallyHidden,onFocus:v,onBlur:h,onChange:p,onClick:b,disabled:n,value:f,id:g,type:"radio",name:x,checked:A})]})}process.env.NODE_ENV!=="production"&&(Yi.propTypes={classes:o.object.isRequired,disabled:o.bool.isRequired,emptyIcon:o.node,focus:o.number.isRequired,getLabelText:o.func.isRequired,highlightSelectedOnly:o.bool.isRequired,hover:o.number.isRequired,icon:o.node,IconContainerComponent:o.elementType.isRequired,isActive:o.bool.isRequired,itemValue:o.number.isRequired,labelProps:o.object,name:o.string,onBlur:o.func.isRequired,onChange:o.func.isRequired,onClick:o.func.isRequired,onFocus:o.func.isRequired,ownerState:o.object.isRequired,ratingValue:o.number,ratingValueRounded:o.number,readOnly:o.bool.isRequired,slotProps:o.object,slots:o.object});const _C=m.jsx(NC,{fontSize:"inherit"}),WC=m.jsx(AC,{fontSize:"inherit"});function UC(e){return`${e||"0"} Star${e!==1?"s":""}`}const Hd=w.forwardRef(function(t,n){const r=we({name:"MuiRating",props:t}),{component:a="span",className:i,defaultValue:s=null,disabled:l=!1,emptyIcon:c=WC,emptyLabelText:u="Empty",getLabelText:d=UC,highlightSelectedOnly:f=!1,icon:y=_C,IconContainerComponent:x=Ud,max:h=5,name:p,onChange:b,onChangeActive:v,onMouseLeave:O,onMouseMove:T,precision:C=1,readOnly:S=!1,size:E="medium",value:P,slots:$={},slotProps:I={},...N}=r,A=vo(p),[g,j]=po({controlled:P,default:s,name:"Rating"}),R=vi(g,C),M=Pn(),[{hover:k,focus:z},F]=w.useState({hover:-1,focus:-1});let _=R;k!==-1&&(_=k),z!==-1&&(_=z);const[B,L]=w.useState(!1),G=w.useRef(),J=nt(G,n),te=ye=>{T&&T(ye);const ie=G.current,{right:Fe,left:Me,width:re}=ie.getBoundingClientRect();let ee;M?ee=(Fe-ye.clientX)/re:ee=(ye.clientX-Me)/re;let xe=vi(h*ee+C/2,C);xe=qo(xe,C,h),F(Oe=>Oe.hover===xe&&Oe.focus===xe?Oe:{hover:xe,focus:xe}),L(!1),v&&k!==xe&&v(ye,xe)},K=ye=>{O&&O(ye);const ie=-1;F({hover:ie,focus:ie}),v&&k!==ie&&v(ye,ie)},U=ye=>{let ie=ye.target.value===""?null:parseFloat(ye.target.value);k!==-1&&(ie=k),j(ie),b&&b(ye,ie)},ne=ye=>{ye.clientX===0&&ye.clientY===0||(F({hover:-1,focus:-1}),j(null),b&&parseFloat(ye.target.value)===R&&b(ye,null))},le=ye=>{Do(ye.target)&&L(!0);const ie=parseFloat(ye.target.value);F(Fe=>({hover:Fe.hover,focus:ie}))},Z=ye=>{if(k!==-1)return;Do(ye.target)||L(!1);const ie=-1;F(Fe=>({hover:Fe.hover,focus:ie}))},[X,ce]=w.useState(!1),W={...r,component:a,defaultValue:s,disabled:l,emptyIcon:c,emptyLabelText:u,emptyValueFocused:X,focusVisible:B,getLabelText:d,icon:y,IconContainerComponent:x,max:h,precision:C,readOnly:S,size:E},ae=BC(W),se={slots:$,slotProps:I},[ue,ke]=me("root",{ref:J,className:Q(ae.root,i),elementType:FC,externalForwardedProps:{...se,...N,component:a},getSlotProps:ye=>({...ye,onMouseMove:ie=>{te(ie),ye.onMouseMove?.(ie)},onMouseLeave:ie=>{K(ie),ye.onMouseLeave?.(ie)}}),ownerState:W,additionalProps:{role:S?"img":null,"aria-label":S?d(_):null}}),[Ee,oe]=me("label",{className:Q(ae.label,ae.labelEmptyValue),elementType:Wd,externalForwardedProps:se,ownerState:W}),[Be,Se]=me("decimal",{className:ae.decimal,elementType:VC,externalForwardedProps:se,ownerState:W});return m.jsxs(ue,{...ke,children:[Array.from(new Array(h)).map((ye,ie)=>{const Fe=ie+1,Me={classes:ae,disabled:l,emptyIcon:c,focus:z,getLabelText:d,highlightSelectedOnly:f,hover:k,icon:y,IconContainerComponent:x,name:A,onBlur:Z,onChange:U,onClick:ne,onFocus:le,ratingValue:_,ratingValueRounded:R,readOnly:S,ownerState:W,slots:$,slotProps:I},re=Fe===Math.ceil(_)&&(k!==-1||z!==-1);if(C<1){const ee=Array.from(new Array(1/C));return Re.createElement(Be,{...Se,key:Fe,className:Q(Se.className,re&&ae.iconActive),iconActive:re},ee.map((xe,Oe)=>{const Pe=vi(Fe-1+(Oe+1)*C,C);return m.jsx(Yi,{...Me,isActive:!1,itemValue:Pe,labelProps:{style:ee.length-1===Oe?{}:{width:Pe===_?`${(Oe+1)*C*100}%`:"0%",overflow:"hidden",position:"absolute"}}},Pe)}))}return m.jsx(Yi,{...Me,isActive:re,itemValue:Fe},Fe)}),!S&&!l&&m.jsxs(Ee,{...oe,children:[m.jsx("input",{className:ae.visuallyHidden,value:"",id:`${A}-empty`,type:"radio",name:A,checked:R==null,onFocus:()=>ce(!0),onBlur:()=>ce(!1),onChange:U}),m.jsx("span",{className:ae.visuallyHidden,children:u})]})]})});process.env.NODE_ENV!=="production"&&(Hd.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,defaultValue:o.number,disabled:o.bool,emptyIcon:o.node,emptyLabelText:o.node,getLabelText:o.func,highlightSelectedOnly:o.bool,icon:o.node,IconContainerComponent:o.elementType,max:o.number,name:o.string,onChange:o.func,onChangeActive:o.func,onMouseLeave:o.func,onMouseMove:o.func,precision:Tt(o.number,e=>e.precision<.1?new Error(["MUI: The prop `precision` should be above 0.1.","A value below this limit has an imperceptible impact."].join(`
|
|
324
|
-
`)):null),readOnly:o.bool,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),slotProps:o.shape({decimal:o.oneOfType([o.func,o.object]),icon:o.oneOfType([o.func,o.object]),label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({decimal:o.elementType,icon:o.elementType,label:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number});function qd(e){return ge("MuiSelect",e)}const Vn=be("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Dc;const HC=D(Ld,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Vn.select}`]:t.select},{[`&.${Vn.select}`]:t[n.variant]},{[`&.${Vn.error}`]:t.error},{[`&.${Vn.multiple}`]:t.multiple}]}})({[`&.${Vn.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),qC=D(Dd,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${V(n.variant)}`],n.open&&t.iconOpen]}})({}),GC=D("input",{shouldForwardProp:e=>gr(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Bc(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function KC(e){return e==null||typeof e=="string"&&!e.trim()}const YC=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:i,error:s}=e,l={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${V(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return he(l,qd,t)},Gd=w.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:f,displayEmpty:y,error:x=!1,IconComponent:h,inputRef:p,labelId:b,MenuProps:v={},multiple:O,name:T,onBlur:C,onChange:S,onClose:E,onFocus:P,onKeyDown:$,onMouseDown:I,onOpen:N,open:A,readOnly:g,renderValue:j,required:R,SelectDisplayProps:M={},tabIndex:k,type:z,value:F,variant:_="standard",...B}=t,[L,G]=po({controlled:F,default:d,name:"Select"}),[J,te]=po({controlled:A,default:u,name:"Select"}),K=w.useRef(null),U=w.useRef(null),[ne,le]=w.useState(null),{current:Z}=w.useRef(A!=null),[X,ce]=w.useState(),W=nt(n,p),ae=w.useCallback(Ce=>{U.current=Ce,Ce&&le(Ce)},[]),se=ne?.parentNode;w.useImperativeHandle(W,()=>({focus:()=>{U.current.focus()},node:K.current,value:L}),[L]),w.useEffect(()=>{u&&J&&ne&&!Z&&(ce(s?null:se.clientWidth),U.current.focus())},[ne,s]),w.useEffect(()=>{i&&U.current.focus()},[i]),w.useEffect(()=>{if(!b)return;const Ce=ht(U.current).getElementById(b);if(Ce){const Ae=()=>{getSelection().isCollapsed&&U.current.focus()};return Ce.addEventListener("click",Ae),()=>{Ce.removeEventListener("click",Ae)}}},[b]);const ue=(Ce,Ae)=>{Ce?N&&N(Ae):E&&E(Ae),Z||(ce(s?null:se.clientWidth),te(Ce))},ke=Ce=>{I?.(Ce),Ce.button===0&&(Ce.preventDefault(),U.current.focus(),ue(!0,Ce))},Ee=Ce=>{ue(!1,Ce)},oe=w.Children.toArray(l),Be=Ce=>{const Ae=oe.find(Ze=>Ze.props.value===Ce.target.value);Ae!==void 0&&(G(Ae.props.value),S&&S(Ce,Ae))},Se=Ce=>Ae=>{let Ze;if(Ae.currentTarget.hasAttribute("tabindex")){if(O){Ze=Array.isArray(L)?L.slice():[];const bt=L.indexOf(Ce.props.value);bt===-1?Ze.push(Ce.props.value):Ze.splice(bt,1)}else Ze=Ce.props.value;if(Ce.props.onClick&&Ce.props.onClick(Ae),L!==Ze&&(G(Ze),S)){const bt=Ae.nativeEvent||Ae,_e=new bt.constructor(bt.type,bt);Object.defineProperty(_e,"target",{writable:!0,value:{value:Ze,name:T}}),S(_e,Ce)}O||ue(!1,Ae)}},ye=Ce=>{g||([" ","ArrowUp","ArrowDown","Enter"].includes(Ce.key)&&(Ce.preventDefault(),ue(!0,Ce)),$?.(Ce))},ie=ne!==null&&J,Fe=Ce=>{!ie&&C&&(Object.defineProperty(Ce,"target",{writable:!0,value:{value:L,name:T}}),C(Ce))};delete B["aria-invalid"];let Me,re;const ee=[];let xe=!1,Oe=!1;(ea({value:L})||y)&&(j?Me=j(L):xe=!0);const Pe=oe.map(Ce=>{if(!w.isValidElement(Ce))return null;process.env.NODE_ENV!=="production"&&Ao.isFragment(Ce)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
325
|
-
`));let Ae;if(O){if(!Array.isArray(L))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":go(2));Ae=L.some(Ze=>Bc(Ze,Ce.props.value)),Ae&&xe&&ee.push(Ce.props.children)}else Ae=Bc(L,Ce.props.value),Ae&&xe&&(re=Ce.props.children);return Ae&&(Oe=!0),w.cloneElement(Ce,{"aria-selected":Ae?"true":"false",onClick:Se(Ce),onKeyUp:Ze=>{Ze.key===" "&&Ze.preventDefault(),Ce.props.onKeyUp&&Ce.props.onKeyUp(Ze)},role:"option",selected:Ae,value:void 0,"data-value":Ce.props.value})});process.env.NODE_ENV!=="production"&&w.useEffect(()=>{if(!Oe&&!O&&L!==""){const Ce=oe.map(Ae=>Ae.props.value);console.warn([`MUI: You have provided an out-of-range value \`${L}\` for the select ${T?`(name="${T}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Ce.filter(Ae=>Ae!=null).map(Ae=>`\`${Ae}\``).join(", ")||'""'}.`].join(`
|
|
326
|
-
`))}},[Oe,oe,O,T,L]),xe&&(O?ee.length===0?Me=null:Me=ee.reduce((Ce,Ae,Ze)=>(Ce.push(Ae),Ze<ee.length-1&&Ce.push(", "),Ce),[]):Me=re);let Te=X;!s&&Z&&ne&&(Te=se.clientWidth);let de;typeof k<"u"?de=k:de=f?null:0;const Ve=M.id||(T?`mui-component-select-${T}`:void 0),Ne={...t,variant:_,value:L,open:ie,error:x},We=YC(Ne),$t={...v.PaperProps,...typeof v.slotProps?.paper=="function"?v.slotProps.paper(Ne):v.slotProps?.paper},Ot={...v.MenuListProps,...typeof v.slotProps?.list=="function"?v.slotProps.list(Ne):v.slotProps?.list},ft=vo();return m.jsxs(w.Fragment,{children:[m.jsx(HC,{as:"div",ref:ae,tabIndex:de,role:"combobox","aria-controls":ie?ft:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":ie?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[b,Ve].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":R?"true":void 0,"aria-invalid":x?"true":void 0,onKeyDown:ye,onMouseDown:f||g?null:ke,onBlur:Fe,onFocus:P,...M,ownerState:Ne,className:Q(M.className,We.select,c),id:Ve,children:KC(Me)?Dc||(Dc=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Me}),m.jsx(GC,{"aria-invalid":x,value:Array.isArray(L)?L.join(","):L,name:T,ref:K,"aria-hidden":!0,onChange:Be,tabIndex:-1,disabled:f,className:We.nativeInput,autoFocus:i,required:R,...B,ownerState:Ne}),m.jsx(qC,{as:h,className:We.icon,ownerState:Ne}),m.jsx(Ad,{id:`menu-${T||""}`,anchorEl:se,open:ie,onClose:Ee,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:ft,...Ot},paper:{...$t,style:{minWidth:Te,...$t!=null?$t.style:null}}},children:Pe})]})});process.env.NODE_ENV!=="production"&&(Gd.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Mt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const XC=e=>{const{classes:t}=e,r=he({root:["root"]},qd,t);return{...t,...r}},Gs={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>St(e)&&e!=="variant"},JC=D(_a,Gs)(""),ZC=D(Wa,Gs)(""),QC=D(Fa,Gs)(""),Ua=w.forwardRef(function(t,n){const r=we({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:i,classes:s={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=gd,id:f,input:y,inputProps:x,label:h,labelId:p,MenuProps:b,multiple:v=!1,native:O=!1,onClose:T,onOpen:C,open:S,renderValue:E,SelectDisplayProps:P,variant:$="outlined",...I}=r,N=O?Bd:Gd,A=ro(),g=Vo({props:r,muiFormControl:A,states:["variant","error"]}),j=g.variant||$,R={...r,variant:j,classes:s},M=XC(R),{root:k,...z}=M,F=y||{standard:m.jsx(JC,{ownerState:R}),outlined:m.jsx(ZC,{label:h,ownerState:R}),filled:m.jsx(QC,{ownerState:R})}[j],_=nt(n,Eo(F));return m.jsx(w.Fragment,{children:w.cloneElement(F,{inputComponent:N,inputProps:{children:i,error:g.error,IconComponent:d,variant:j,type:void 0,multiple:v,...O?{id:f}:{autoWidth:a,defaultOpen:c,displayEmpty:u,labelId:p,MenuProps:b,onClose:T,onOpen:C,open:S,renderValue:E,SelectDisplayProps:{id:f,...P}},...x,classes:x?wt(z,x.classes):z,...y?y.props.inputProps:{}},...(v&&O||u)&&j==="outlined"?{notched:!0}:{},ref:_,className:Q(F.props.className,l,M.root),...!y&&{variant:j},...I})})});process.env.NODE_ENV!=="production"&&(Ua.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])});Ua.muiName="Select";function ew(e,t,n=(r,a)=>r===a){return e.length===t.length&&e.every((r,a)=>n(r,t[a]))}const tw=2;function pn(e,t,n,r,a){return n===1?Math.min(e+t,a):Math.max(e-t,r)}function Kd(e,t){return e-t}function Fc(e,t){const{index:n}=e.reduce((r,a,i)=>{const s=Math.abs(t-a);return r===null||s<r.distance||s===r.distance?{distance:s,index:i}:r},null)??{};return n}function Ar(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const a=n.changedTouches[r];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function ia(e,t,n){return(e-t)*100/(n-t)}function ow(e,t,n){return(n-t)*e+t}function nw(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function rw(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(nw(t)))}function zc({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Kd)}function Lr({sliderRef:e,activeIndex:t,setActive:n}){const r=ht(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function Dr(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?ew(e,t):!1}const aw={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},iw=e=>e;let Br;function Vc(){return Br===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Br=CSS.supports("touch-action","none"):Br=!0),Br}function sw(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:s=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:f,orientation:y="horizontal",rootRef:x,scale:h=iw,step:p=1,shiftStep:b=10,tabIndex:v,value:O}=e,T=w.useRef(void 0),[C,S]=w.useState(-1),[E,P]=w.useState(-1),[$,I]=w.useState(!1),N=w.useRef(0),A=w.useRef(null),[g,j]=po({controlled:O,default:n??c,name:"Slider"}),R=d&&((re,ee,xe)=>{const Oe=re.nativeEvent||re,Pe=new Oe.constructor(Oe.type,Oe);Object.defineProperty(Pe,"target",{writable:!0,value:{value:ee,name:u}}),A.current=ee,d(Pe,ee,xe)}),M=Array.isArray(g);let k=M?g.slice().sort(Kd):[g];k=k.map(re=>re==null?c:qo(re,c,l));const z=s===!0&&p!==null?[...Array(Math.floor((l-c)/p)+1)].map((re,ee)=>({value:c+p*ee})):s||[],F=z.map(re=>re.value),[_,B]=w.useState(-1),L=w.useRef(null),G=nt(x,L),J=re=>ee=>{const xe=Number(ee.currentTarget.getAttribute("data-index"));Do(ee.target)&&B(xe),P(xe),re?.onFocus?.(ee)},te=re=>ee=>{Do(ee.target)||B(-1),P(-1),re?.onBlur?.(ee)},K=(re,ee)=>{const xe=Number(re.currentTarget.getAttribute("data-index")),Oe=k[xe],Pe=F.indexOf(Oe);let Te=ee;if(z&&p==null){const de=F[F.length-1];Te>=de?Te=de:Te<=F[0]?Te=F[0]:Te=Te<Oe?F[Pe-1]:F[Pe+1]}if(Te=qo(Te,c,l),M){a&&(Te=qo(Te,k[xe-1]||-1/0,k[xe+1]||1/0));const de=Te;Te=zc({values:k,newValue:Te,index:xe});let Ve=xe;a||(Ve=Te.indexOf(de)),Lr({sliderRef:L,activeIndex:Ve})}j(Te),B(xe),R&&!Dr(Te,g)&&R(re,Te,xe),f&&f(re,A.current??Te)},U=re=>ee=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ee.key)){ee.preventDefault();const xe=Number(ee.currentTarget.getAttribute("data-index")),Oe=k[xe];let Pe=null;if(p!=null){const Te=ee.shiftKey?b:p;switch(ee.key){case"ArrowUp":Pe=pn(Oe,Te,1,c,l);break;case"ArrowRight":Pe=pn(Oe,Te,i?-1:1,c,l);break;case"ArrowDown":Pe=pn(Oe,Te,-1,c,l);break;case"ArrowLeft":Pe=pn(Oe,Te,i?1:-1,c,l);break;case"PageUp":Pe=pn(Oe,b,1,c,l);break;case"PageDown":Pe=pn(Oe,b,-1,c,l);break;case"Home":Pe=c;break;case"End":Pe=l;break}}else if(z){const Te=F[F.length-1],de=F.indexOf(Oe),Ve=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Ne=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ve.includes(ee.key)?de===0?Pe=F[0]:Pe=F[de-1]:Ne.includes(ee.key)&&(de===F.length-1?Pe=Te:Pe=F[de+1])}Pe!=null&&K(ee,Pe)}re?.onKeyDown?.(ee)};Jt(()=>{r&&L.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&C!==-1&&S(-1),r&&_!==-1&&B(-1);const ne=re=>ee=>{re.onChange?.(ee),K(ee,ee.target.valueAsNumber)},le=w.useRef(void 0);let Z=y;i&&y==="horizontal"&&(Z+="-reverse");const X=({finger:re,move:ee=!1})=>{const{current:xe}=L,{width:Oe,height:Pe,bottom:Te,left:de}=xe.getBoundingClientRect();let Ve;Z.startsWith("vertical")?Ve=(Te-re.y)/Pe:Ve=(re.x-de)/Oe,Z.includes("-reverse")&&(Ve=1-Ve);let Ne;if(Ne=ow(Ve,c,l),p)Ne=rw(Ne,p,c);else{const $t=Fc(F,Ne);Ne=F[$t]}Ne=qo(Ne,c,l);let We=0;if(M){ee?We=le.current:We=Fc(k,Ne),a&&(Ne=qo(Ne,k[We-1]||-1/0,k[We+1]||1/0));const $t=Ne;Ne=zc({values:k,newValue:Ne,index:We}),a&&ee||(We=Ne.indexOf($t),le.current=We)}return{newValue:Ne,activeIndex:We}},ce=vt(re=>{const ee=Ar(re,T);if(!ee)return;if(N.current+=1,re.type==="mousemove"&&re.buttons===0){W(re);return}const{newValue:xe,activeIndex:Oe}=X({finger:ee,move:!0});Lr({sliderRef:L,activeIndex:Oe,setActive:S}),j(xe),!$&&N.current>tw&&I(!0),R&&!Dr(xe,g)&&R(re,xe,Oe)}),W=vt(re=>{const ee=Ar(re,T);if(I(!1),!ee)return;const{newValue:xe}=X({finger:ee,move:!0});S(-1),re.type==="touchend"&&P(-1),f&&f(re,A.current??xe),T.current=void 0,se()}),ae=vt(re=>{if(r)return;Vc()||re.preventDefault();const ee=re.changedTouches[0];ee!=null&&(T.current=ee.identifier);const xe=Ar(re,T);if(xe!==!1){const{newValue:Pe,activeIndex:Te}=X({finger:xe});Lr({sliderRef:L,activeIndex:Te,setActive:S}),j(Pe),R&&!Dr(Pe,g)&&R(re,Pe,Te)}N.current=0;const Oe=ht(L.current);Oe.addEventListener("touchmove",ce,{passive:!0}),Oe.addEventListener("touchend",W,{passive:!0})}),se=w.useCallback(()=>{const re=ht(L.current);re.removeEventListener("mousemove",ce),re.removeEventListener("mouseup",W),re.removeEventListener("touchmove",ce),re.removeEventListener("touchend",W)},[W,ce]);w.useEffect(()=>{const{current:re}=L;return re.addEventListener("touchstart",ae,{passive:Vc()}),()=>{re.removeEventListener("touchstart",ae),se()}},[se,ae]),w.useEffect(()=>{r&&se()},[r,se]);const ue=re=>ee=>{if(re.onMouseDown?.(ee),r||ee.defaultPrevented||ee.button!==0)return;ee.preventDefault();const xe=Ar(ee,T);if(xe!==!1){const{newValue:Pe,activeIndex:Te}=X({finger:xe});Lr({sliderRef:L,activeIndex:Te,setActive:S}),j(Pe),R&&!Dr(Pe,g)&&R(ee,Pe,Te)}N.current=0;const Oe=ht(L.current);Oe.addEventListener("mousemove",ce,{passive:!0}),Oe.addEventListener("mouseup",W)},ke=ia(M?k[0]:c,c,l),Ee=ia(k[k.length-1],c,l)-ke,oe=(re={})=>{const ee=Yo(re),xe={onMouseDown:ue(ee||{})},Oe={...ee,...xe};return{...re,ref:G,...Oe}},Be=re=>ee=>{re.onMouseOver?.(ee);const xe=Number(ee.currentTarget.getAttribute("data-index"));P(xe)},Se=re=>ee=>{re.onMouseLeave?.(ee),P(-1)},ye=(re={})=>{const ee=Yo(re),xe={onMouseOver:Be(ee||{}),onMouseLeave:Se(ee||{})};return{...re,...ee,...xe}},ie=re=>({pointerEvents:C!==-1&&C!==re?"none":void 0});let Fe;return y==="vertical"&&(Fe=i?"vertical-rl":"vertical-lr"),{active:C,axis:Z,axisProps:aw,dragging:$,focusedThumbIndex:_,getHiddenInputProps:(re={})=>{const ee=Yo(re),xe={onChange:ne(ee||{}),onFocus:J(ee||{}),onBlur:te(ee||{}),onKeyDown:U(ee||{})},Oe={...ee,...xe};return{tabIndex:v,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":h(l),"aria-valuemin":h(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...re,...Oe,style:{..._d,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:Fe}}},getRootProps:oe,getThumbProps:ye,marks:z,open:E,range:M,rootRef:G,trackLeap:Ee,trackOffset:ke,values:k,getThumbStyle:ie}}const lw=e=>!e||!fo(e);function cw(e){return ge("MuiSlider",e)}const Kt=be("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),uw=e=>{const{open:t}=e;return{offset:Q(t&&Kt.valueLabelOpen),circle:Kt.valueLabelCircle,label:Kt.valueLabelLabel}};function Yd(e){const{children:t,className:n,value:r}=e,a=uw(e);return t?w.cloneElement(t,{className:t.props.className},m.jsxs(w.Fragment,{children:[t.props.children,m.jsx("span",{className:Q(a.offset,n),"aria-hidden":!0,children:m.jsx("span",{className:a.circle,children:m.jsx("span",{className:a.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Yd.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function _c(e){return e}const dw=D("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${V(n.color)}`],n.size!=="medium"&&t[`size${V(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(pe(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Kt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Kt.dragging}`]:{[`& .${Kt.thumb}, & .${Kt.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),pw=D("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),fw=D("span",{name:"MuiSlider",slot:"Track"})(pe(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),mw=D("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${V(n.color)}`],n.size!=="medium"&&t[`thumbSize${V(n.size)}`]]}})(pe(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Kt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Kt.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Kt.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Xd=D(Yd,{name:"MuiSlider",slot:"ValueLabel"})(pe(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Kt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Kt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Xd.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const gw=D("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>gr(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(pe(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),hw=D("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>gr(e)&&e!=="markLabelActive"})(pe(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),bw=e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:i,classes:s,color:l,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${V(l)}`,c&&`size${V(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${V(c)}`,l&&`thumbColor${V(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return he(u,cw,s)},yw=({children:e})=>e,Jd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiSlider"}),a=Pn(),{"aria-label":i,"aria-valuetext":s,"aria-labelledby":l,component:c="span",components:u={},componentsProps:d={},color:f="primary",classes:y,className:x,disableSwap:h=!1,disabled:p=!1,getAriaLabel:b,getAriaValueText:v,marks:O=!1,max:T=100,min:C=0,name:S,onChange:E,onChangeCommitted:P,orientation:$="horizontal",shiftStep:I=10,size:N="medium",step:A=1,scale:g=_c,slotProps:j,slots:R,tabIndex:M,track:k="normal",value:z,valueLabelDisplay:F="off",valueLabelFormat:_=_c,...B}=r,L={...r,isRtl:a,max:T,min:C,classes:y,disabled:p,disableSwap:h,orientation:$,marks:O,color:f,size:N,step:A,shiftStep:I,scale:g,track:k,valueLabelDisplay:F,valueLabelFormat:_},{axisProps:G,getRootProps:J,getHiddenInputProps:te,getThumbProps:K,open:U,active:ne,axis:le,focusedThumbIndex:Z,range:X,dragging:ce,marks:W,values:ae,trackOffset:se,trackLeap:ue,getThumbStyle:ke}=sw({...L,rootRef:n});L.marked=W.length>0&&W.some(_e=>_e.label),L.dragging=ce,L.focusedThumbIndex=Z;const Ee=bw(L),oe=R?.root??u.Root??dw,Be=R?.rail??u.Rail??pw,Se=R?.track??u.Track??fw,ye=R?.thumb??u.Thumb??mw,ie=R?.valueLabel??u.ValueLabel??Xd,Fe=R?.mark??u.Mark??gw,Me=R?.markLabel??u.MarkLabel??hw,re=R?.input??u.Input??"input",ee=j?.root??d.root,xe=j?.rail??d.rail,Oe=j?.track??d.track,Pe=j?.thumb??d.thumb,Te=j?.valueLabel??d.valueLabel,de=j?.mark??d.mark,Ve=j?.markLabel??d.markLabel,Ne=j?.input??d.input,We=io({elementType:oe,getSlotProps:J,externalSlotProps:ee,externalForwardedProps:B,additionalProps:{...lw(oe)&&{as:c}},ownerState:{...L,...ee?.ownerState},className:[Ee.root,x]}),$t=io({elementType:Be,externalSlotProps:xe,ownerState:L,className:Ee.rail}),Ot=io({elementType:Se,externalSlotProps:Oe,additionalProps:{style:{...G[le].offset(se),...G[le].leap(ue)}},ownerState:{...L,...Oe?.ownerState},className:Ee.track}),ft=io({elementType:ye,getSlotProps:K,externalSlotProps:Pe,ownerState:{...L,...Pe?.ownerState},className:Ee.thumb}),Ce=io({elementType:ie,externalSlotProps:Te,ownerState:{...L,...Te?.ownerState},className:Ee.valueLabel}),Ae=io({elementType:Fe,externalSlotProps:de,ownerState:L,className:Ee.mark}),Ze=io({elementType:Me,externalSlotProps:Ve,ownerState:L,className:Ee.markLabel}),bt=io({elementType:re,getSlotProps:te,externalSlotProps:Ne,ownerState:L});return m.jsxs(oe,{...We,children:[m.jsx(Be,{...$t}),m.jsx(Se,{...Ot}),W.filter(_e=>_e.value>=C&&_e.value<=T).map((_e,rt)=>{const It=ia(_e.value,C,T),kt=G[le].offset(It);let mt;return k===!1?mt=ae.includes(_e.value):mt=k==="normal"&&(X?_e.value>=ae[0]&&_e.value<=ae[ae.length-1]:_e.value<=ae[0])||k==="inverted"&&(X?_e.value<=ae[0]||_e.value>=ae[ae.length-1]:_e.value>=ae[0]),m.jsxs(w.Fragment,{children:[m.jsx(Fe,{"data-index":rt,...Ae,...!fo(Fe)&&{markActive:mt},style:{...kt,...Ae.style},className:Q(Ae.className,mt&&Ee.markActive)}),_e.label!=null?m.jsx(Me,{"aria-hidden":!0,"data-index":rt,...Ze,...!fo(Me)&&{markLabelActive:mt},style:{...kt,...Ze.style},className:Q(Ee.markLabel,Ze.className,mt&&Ee.markLabelActive),children:_e.label}):null]},rt)}),ae.map((_e,rt)=>{const It=ia(_e,C,T),kt=G[le].offset(It),mt=F==="off"?yw:ie;return m.jsx(mt,{...!fo(mt)&&{valueLabelFormat:_,valueLabelDisplay:F,value:typeof _=="function"?_(g(_e),rt):_,index:rt,open:U===rt||ne===rt||F==="on",disabled:p},...Ce,children:m.jsx(ye,{"data-index":rt,...ft,className:Q(Ee.thumb,ft.className,ne===rt&&Ee.active,Z===rt&&Ee.focusVisible),style:{...kt,...ke(rt),...ft.style},children:m.jsx(re,{"data-index":rt,"aria-label":b?b(rt):i,"aria-valuenow":g(_e),"aria-labelledby":l,"aria-valuetext":v?v(g(_e),rt):s,value:ae[rt],...bt})})},rt)})]})});process.env.NODE_ENV!=="production"&&(Jd.propTypes={"aria-label":Tt(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":o.string,"aria-valuetext":Tt(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Mark:o.elementType,MarkLabel:o.elementType,Rail:o.elementType,Root:o.elementType,Thumb:o.elementType,Track:o.elementType,ValueLabel:o.elementType}),componentsProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),defaultValue:o.oneOfType([o.arrayOf(o.number),o.number]),disabled:o.bool,disableSwap:o.bool,getAriaLabel:o.func,getAriaValueText:o.func,marks:o.oneOfType([o.arrayOf(o.shape({label:o.node,value:o.number.isRequired})),o.bool]),max:o.number,min:o.number,name:o.string,onChange:o.func,onChangeCommitted:o.func,orientation:o.oneOf(["horizontal","vertical"]),scale:o.func,shiftStep:o.number,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),slots:o.shape({input:o.elementType,mark:o.elementType,markLabel:o.elementType,rail:o.elementType,root:o.elementType,thumb:o.elementType,track:o.elementType,valueLabel:o.elementType}),step:o.number,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,track:o.oneOf(["inverted","normal",!1]),value:o.oneOfType([o.arrayOf(o.number),o.number]),valueLabelDisplay:o.oneOf(["auto","off","on"]),valueLabelFormat:o.oneOfType([o.func,o.string])});function vw(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:i}=e,s=jo();w.useEffect(()=>{if(!a)return;function v(O){O.defaultPrevented||O.key==="Escape"&&r?.(O,"escapeKeyDown")}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[a,r]);const l=vt((v,O)=>{r?.(v,O)}),c=vt(v=>{!r||v==null||s.start(v,()=>{l(null,"timeout")})});w.useEffect(()=>(a&&c(t),s.clear),[a,t,c,s]);const u=v=>{r?.(v,"clickaway")},d=s.clear,f=w.useCallback(()=>{t!=null&&c(i??t*.5)},[t,i,c]),y=v=>O=>{const T=v.onBlur;T?.(O),f()},x=v=>O=>{const T=v.onFocus;T?.(O),d()},h=v=>O=>{const T=v.onMouseEnter;T?.(O),d()},p=v=>O=>{const T=v.onMouseLeave;T?.(O),f()};return w.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",f),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",d)}},[n,a,f,d]),{getRootProps:(v={})=>{const O={...Yo(e),...Yo(v)};return{role:"presentation",...v,...O,onBlur:y(O),onFocus:x(O),onMouseEnter:h(O),onMouseLeave:p(O)}},onClickAway:u}}function xw(e){return ge("MuiSnackbarContent",e)}be("MuiSnackbarContent",["root","message","action"]);const Cw=e=>{const{classes:t}=e;return he({root:["root"],action:["action"],message:["message"]},xw,t)},ww=D(xo,{name:"MuiSnackbarContent",slot:"Root"})(pe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Pi(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Pi(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Tw=D("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Sw=D("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Zd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiSnackbarContent"}),{action:a,className:i,message:s,role:l="alert",...c}=r,u=r,d=Cw(u);return m.jsxs(ww,{role:l,elevation:6,className:Q(d.root,i),ownerState:u,ref:n,...c,children:[m.jsx(Tw,{className:d.message,ownerState:u,children:s}),a?m.jsx(Sw,{className:d.action,ownerState:u,children:a}):null]})});process.env.NODE_ENV!=="production"&&(Zd.propTypes={action:o.node,classes:o.object,className:o.string,message:o.node,role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Ow(e){return ge("MuiSnackbar",e)}be("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Ew=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${V(n.vertical)}${V(n.horizontal)}`]};return he(r,Ow,t)},kw=D("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${V(n.anchorOrigin.vertical)}${V(n.anchorOrigin.horizontal)}`]]}})(pe(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Qd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiSnackbar"}),a=xt(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:d,className:f,ClickAwayListenerProps:y,ContentProps:x,disableWindowBlurListener:h=!1,message:p,onBlur:b,onClose:v,onFocus:O,onMouseEnter:T,onMouseLeave:C,open:S,resumeHideDuration:E,slots:P={},slotProps:$={},TransitionComponent:I,transitionDuration:N=i,TransitionProps:{onEnter:A,onExited:g,...j}={},...R}=r,M={...r,anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:u,disableWindowBlurListener:h,TransitionComponent:I,transitionDuration:N},k=Ew(M),{getRootProps:z,onClickAway:F}=vw(M),[_,B]=w.useState(!0),L=ae=>{B(!0),g&&g(ae)},G=(ae,se)=>{B(!1),A&&A(ae,se)},J={slots:{transition:I,...P},slotProps:{content:x,clickAwayListener:y,transition:j,...$}},[te,K]=me("root",{ref:n,className:[k.root,f],elementType:kw,getSlotProps:z,externalForwardedProps:{...J,...R},ownerState:M}),[U,{ownerState:ne,...le}]=me("clickAwayListener",{elementType:na,externalForwardedProps:J,getSlotProps:ae=>({onClickAway:(...se)=>{const ue=se[0];ae.onClickAway?.(...se),!ue?.defaultMuiPrevented&&F(...se)}}),ownerState:M}),[Z,X]=me("content",{elementType:Zd,shouldForwardComponentProp:!0,externalForwardedProps:J,additionalProps:{message:p,action:s},ownerState:M}),[ce,W]=me("transition",{elementType:Qo,externalForwardedProps:J,getSlotProps:ae=>({onEnter:(...se)=>{ae.onEnter?.(...se),G(...se)},onExited:(...se)=>{ae.onExited?.(...se),L(...se)}}),additionalProps:{appear:!0,in:S,timeout:N,direction:l==="top"?"down":"up"},ownerState:M});return!S&&_?null:m.jsx(U,{...le,...P.clickAwayListener&&{ownerState:ne},children:m.jsx(te,{...K,children:m.jsx(ce,{...W,children:d||m.jsx(Z,{...X})})})})});process.env.NODE_ENV!=="production"&&(Qd.propTypes={action:o.node,anchorOrigin:o.shape({horizontal:o.oneOf(["center","left","right"]).isRequired,vertical:o.oneOf(["bottom","top"]).isRequired}),autoHideDuration:o.number,children:o.element,classes:o.object,className:o.string,ClickAwayListenerProps:o.object,ContentProps:o.object,disableWindowBlurListener:o.bool,key:()=>null,message:o.node,onBlur:o.func,onClose:o.func,onFocus:o.func,onMouseEnter:o.func,onMouseLeave:o.func,open:o.bool,resumeHideDuration:o.number,slotProps:o.shape({clickAwayListener:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({clickAwayListener:o.elementType,content:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});const Pw={entering:{transform:"none"},entered:{transform:"none"}},Ks=w.forwardRef(function(t,n){const r=xt(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:y,onExit:x,onExited:h,onExiting:p,style:b,timeout:v=a,TransitionComponent:O=Ut,...T}=t,C=w.useRef(null),S=nt(C,Eo(l),n),E=R=>M=>{if(R){const k=C.current;M===void 0?R(k):R(k,M)}},P=E(y),$=E((R,M)=>{Ra(R);const k=ho({style:b,timeout:v,easing:c},{mode:"enter"});R.style.webkitTransition=r.transitions.create("transform",k),R.style.transition=r.transitions.create("transform",k),d&&d(R,M)}),I=E(f),N=E(p),A=E(R=>{const M=ho({style:b,timeout:v,easing:c},{mode:"exit"});R.style.webkitTransition=r.transitions.create("transform",M),R.style.transition=r.transitions.create("transform",M),x&&x(R)}),g=E(h),j=R=>{i&&i(C.current,R)};return m.jsx(O,{appear:s,in:u,nodeRef:C,onEnter:$,onEntered:I,onEntering:P,onExit:A,onExited:g,onExiting:N,addEndListener:j,timeout:v,...T,children:(R,{ownerState:M,...k})=>w.cloneElement(l,{style:{transform:"scale(0)",visibility:R==="exited"&&!u?"hidden":void 0,...Pw[R],...b,...l.props.style},ref:S,...k})})});process.env.NODE_ENV!=="production"&&(Ks.propTypes={addEndListener:o.func,appear:o.bool,children:Oo.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});const Xi=mg({createStyledComponent:D("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>we({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(Xi.propTypes={children:o.node,component:o.elementType,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),divider:o.node,spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),useFlexGap:o.bool});function Rw(e){return ge("MuiSwitch",e)}const jt=be("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),$w=e=>{const{classes:t,edge:n,size:r,color:a,checked:i,disabled:s}=e,l={root:["root",n&&`edge${V(n)}`,`size${V(r)}`],switchBase:["switchBase",`color${V(a)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=he(l,Rw,t);return{...t,...c}},Iw=D("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${V(n.edge)}`],t[`size${V(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${jt.thumb}`]:{width:16,height:16},[`& .${jt.switchBase}`]:{padding:4,[`&.${jt.checked}`]:{transform:"translateX(16px)"}}}}]}),jw=D(Ba,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${jt.input}`]:t.input},n.color!=="default"&&t[`color${V(n.color)}`]]}})(pe(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${jt.checked}`]:{transform:"translateX(20px)"},[`&.${jt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${jt.checked} + .${jt.track}`]:{opacity:.5},[`&.${jt.disabled} + .${jt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${jt.input}`]:{left:"-100%",width:"300%"}})),pe(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(qe(["light"])).map(([t])=>({props:{color:t},style:{[`&.${jt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${jt.checked} + .${jt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Mw=D("span",{name:"MuiSwitch",slot:"Track"})(pe(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),Nw=D("span",{name:"MuiSwitch",slot:"Thumb"})(pe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),ep=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiSwitch"}),{className:a,color:i="primary",edge:s=!1,size:l="medium",sx:c,slots:u={},slotProps:d={},...f}=r,y={...r,color:i,edge:s,size:l},x=$w(y),h={slots:u,slotProps:d},[p,b]=me("root",{className:Q(x.root,a),elementType:Iw,externalForwardedProps:h,ownerState:y,additionalProps:{sx:c}}),[v,O]=me("thumb",{className:x.thumb,elementType:Nw,externalForwardedProps:h,ownerState:y}),T=m.jsx(v,{...O}),[C,S]=me("track",{className:x.track,elementType:Mw,externalForwardedProps:h,ownerState:y});return m.jsxs(p,{...b,children:[m.jsx(jw,{type:"checkbox",icon:T,checkedIcon:T,ref:n,ownerState:y,...f,classes:{...x,root:x.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...d.switchBase&&{root:typeof d.switchBase=="function"?d.switchBase(y):d.switchBase},input:{role:"switch"},...d.input&&{input:typeof d.input=="function"?d.input(y):d.input}}}),m.jsx(C,{...S})]})});process.env.NODE_ENV!=="production"&&(ep.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node,id:o.string,inputProps:o.object,inputRef:Mt,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),switchBase:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType,switchBase:o.elementType,thumb:o.elementType,track:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function Aw(e){return ge("MuiTextField",e)}be("MuiTextField",["root"]);const Lw={standard:_a,filled:Fa,outlined:Wa},Dw=e=>{const{classes:t}=e;return he({root:["root"]},Aw,t)},Bw=D(za,{name:"MuiTextField",slot:"Root"})({}),Rn=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:i=!1,children:s,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:y,fullWidth:x=!1,helperText:h,id:p,InputLabelProps:b,inputProps:v,InputProps:O,inputRef:T,label:C,maxRows:S,minRows:E,multiline:P=!1,name:$,onBlur:I,onChange:N,onFocus:A,placeholder:g,required:j=!1,rows:R,select:M=!1,SelectProps:k,slots:z={},slotProps:F={},type:_,value:B,variant:L="outlined",...G}=r,J={...r,autoFocus:i,color:c,disabled:d,error:f,fullWidth:x,multiline:P,required:j,select:M,variant:L},te=Dw(J);process.env.NODE_ENV!=="production"&&M&&!s&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const K=vo(p),U=h&&K?`${K}-helper-text`:void 0,ne=C&&K?`${K}-label`:void 0,le=Lw[L],Z={slots:z,slotProps:{input:O,inputLabel:b,htmlInput:v,formHelperText:y,select:k,...F}},X={},ce=Z.slotProps.inputLabel;L==="outlined"&&(ce&&typeof ce.shrink<"u"&&(X.notched=ce.shrink),X.label=C),M&&((!k||!k.native)&&(X.id=void 0),X["aria-describedby"]=void 0);const[W,ae]=me("root",{elementType:Bw,shouldForwardComponentProp:!0,externalForwardedProps:{...Z,...G},ownerState:J,className:Q(te.root,l),ref:n,additionalProps:{disabled:d,error:f,fullWidth:x,required:j,color:c,variant:L}}),[se,ue]=me("input",{elementType:le,externalForwardedProps:Z,additionalProps:X,ownerState:J}),[ke,Ee]=me("inputLabel",{elementType:Fs,externalForwardedProps:Z,ownerState:J}),[oe,Be]=me("htmlInput",{elementType:"input",externalForwardedProps:Z,ownerState:J}),[Se,ye]=me("formHelperText",{elementType:Bs,externalForwardedProps:Z,ownerState:J}),[ie,Fe]=me("select",{elementType:Ua,externalForwardedProps:Z,ownerState:J}),Me=m.jsx(se,{"aria-describedby":U,autoComplete:a,autoFocus:i,defaultValue:u,fullWidth:x,multiline:P,name:$,rows:R,maxRows:S,minRows:E,type:_,value:B,id:K,inputRef:T,onBlur:I,onChange:N,onFocus:A,placeholder:g,inputProps:Be,slots:{input:z.htmlInput?oe:void 0},...ue});return m.jsxs(W,{...ae,children:[C!=null&&C!==""&&m.jsx(ke,{htmlFor:K,id:ne,...Ee,children:C}),M?m.jsx(ie,{"aria-describedby":U,id:K,labelId:ne,value:B,input:Me,...Fe,children:s}):Me,h&&m.jsx(Se,{id:U,...ye,children:h})]})});process.env.NODE_ENV!=="production"&&(Rn.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Mt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const Ys={fontSize:"0.8125rem",padding:"8px 12px",maxWidth:250,lineHeight:1.4},tp={...Ys,boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},Fw=D(({className:e,...t})=>m.jsx(xr,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Je.arrow}`]:{color:e.palette.grey[900]},[`& .${Je.tooltip}`]:{backgroundColor:e.palette.grey[900],...tp}})),zw=D(({className:e,...t})=>m.jsx(xr,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Je.arrow}`]:{color:e.palette.common.white},[`& .${Je.tooltip}`]:{backgroundColor:e.palette.common.white,color:"rgba(0, 0, 0, 0.87)",boxShadow:e.shadows[4],border:"1px solid #e0e0e0",...Ys}})),Vw=D(({className:e,...t})=>m.jsx(xr,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Je.arrow}`]:{color:e.palette.primary.main},[`& .${Je.tooltip}`]:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,...Ys,boxShadow:`0 4px 12px ${ve(e.palette.primary.main,.4)}`}})),_w=D(({className:e,...t})=>m.jsx(xr,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Je.arrow}`]:{color:"#1e40af"},[`& .${Je.tooltip}`]:{backgroundColor:"#1e40af",color:"#ffffff",...tp}})),op=({contenido:e,children:t,lado:n="arriba",flecha:r=!0,color:a="oscuro",animacion:i="zoom",retraso:s=200,className:l,sx:c,...u})=>{const d=y=>{switch(y){case"arriba":return"top";case"abajo":return"bottom";case"izquierda":return"left";case"derecha":return"right";default:return"top"}},f=a==="claro"?zw:a==="primario"?Vw:a==="azul"?_w:Fw;return m.jsx(f,{title:e,placement:d(n),arrow:r,enterDelay:s,TransitionComponent:i==="fade"?cr:Ks,className:l,sx:c,...u,children:t})},Ww=op,Uw=D(Os,{shouldForwardProp:e=>e!=="estilo"&&e!=="varianteColor"})(({theme:e,estilo:t,varianteColor:n})=>{const r={width:"100%",boxShadow:e.shadows[6],alignItems:"center","& .MuiAlert-icon":{fontSize:"1.5rem"}};if(t==="cristal"){const a=e.palette.mode==="dark";return{...r,backgroundColor:a?ve(n,.2):ve(n,.15),backdropFilter:"blur(10px)",color:a?e.palette.getContrastText(e.palette.background.paper):e.palette.text.primary,border:`1px solid ${ve(n,.3)}`,"& .MuiAlert-icon":{color:n}}}return t==="suave"?{...r}:t==="contorno"?{...r,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,border:`2px solid ${n}`,"& .MuiAlert-icon":{color:n}}:{...r}}),Xs=({abierto:e,alCerrar:t,variante:n="info",estilo:r="solido",titulo:a,mensaje:i,posicion:s="abajo-derecha",animacion:l="slide",duracion:c=6e3,mostrarIcono:u=!0,mostrarProgreso:d=!1,cerrable:f=!0,accion:y,className:x,sx:h,...p})=>{const b=xt(),[v,O]=Re.useState(0);Re.useEffect(()=>{if(e&&c&&d){O(0);const $=100,N=100/(c/$),A=setInterval(()=>{O(g=>g>=100?(clearInterval(A),100):g+N)},$);return()=>clearInterval(A)}},[e,c,d]);const T=($,I)=>{I!=="clickaway"&&t&&t()},C=$=>{const[I,N]=$.split("-");return{vertical:I==="arriba"?"top":"bottom",horizontal:N==="izquierda"?"left":N==="derecha"?"right":"center"}},E={info:b.palette.info.main,exito:b.palette.success.main,advertencia:b.palette.warning.main,error:b.palette.error.main}[n],P=l==="grow"?Qo:l==="fade"?Ks:Ed;return m.jsx(Qd,{open:e,autoHideDuration:c,onClose:T,anchorOrigin:C(s),TransitionComponent:P,className:x,sx:h,...p,children:m.jsxs(Uw,{onClose:f?T:void 0,severity:n==="exito"?"success":n==="advertencia"?"warning":n,variant:r==="solido"?"filled":"standard",estilo:r,varianteColor:E,icon:u?void 0:!1,action:y,children:[a&&m.jsx(Es,{sx:{fontWeight:"bold"},children:a}),i,d&&c&&m.jsx(Vs,{variant:"determinate",value:v,sx:{position:"absolute",bottom:0,left:0,right:0,height:4,bgcolor:ve(b.palette.common.white,.3),"& .MuiLinearProgress-bar":{bgcolor:ve(b.palette.common.white,.8)}}})]})})},Hw=Xs,qw=Xs,np=({valor:e=0,maximo:t=100,etiqueta:n,mostrarPorcentaje:r=!1,etiquetaInterna:a=!1,indeterminado:i=!1,tamano:s="md",variante:l="primario",rayado:c=!1,animado:u=!1,colorPersonalizado:d,className:f="",sx:y,...x})=>{const h=xt(),b={xs:4,sm:8,md:12,lg:16,xl:24}[s]||12,O={primario:"primary",secundario:"secondary",error:"error",info:"info",exito:"success",advertencia:"warning"}[l]||"primary",T=Math.min(100,Math.max(0,e/t*100)),C=h.palette.mode==="dark"?"rgba(0,0,0,0.15)":"rgba(255,255,255,0.3)",S=c||u?{backgroundImage:`linear-gradient(45deg,${C} 25%,transparent 25%,transparent 50%,${C} 50%,${C} 75%,transparent 75%,transparent)`,backgroundSize:"1rem 1rem",...u&&{animation:"progreso-rayas 1s linear infinite","@keyframes progreso-rayas":{"0%":{backgroundPosition:"1rem 0"},"100%":{backgroundPosition:"0 0"}}}}:{},E={color:h.palette.getContrastText(d||h.palette[O==="inherit"?"primary":O].main),fontWeight:"bold",fontSize:"0.75rem",lineHeight:1,textShadow:"0 1px 2px rgba(0,0,0,0.2)"};return m.jsxs(Ue,{width:"100%",className:f,children:[!a&&(n||r)&&m.jsxs(Ue,{display:"flex",justifyContent:"space-between",mb:.5,alignItems:"center",children:[n&&m.jsx(at,{variant:"body2",color:"text.secondary",fontWeight:500,children:n}),r&&m.jsx(at,{variant:"body2",color:"text.secondary",fontWeight:600,children:i?"":`${Math.round(T)}%`})]}),m.jsxs(Ue,{position:"relative",width:"100%",children:[m.jsx(Vs,{variant:i?"indeterminate":"determinate",value:T,color:O,sx:{height:b,borderRadius:b/2,backgroundColor:h.palette.mode==="dark"?ve(h.palette.common.white,.08):ve(h.palette.common.black,.08),"& .MuiLinearProgress-bar":{borderRadius:b/2,...d&&{backgroundColor:d},...S},...y},...x}),a&&!i&&b>=12&&m.jsx(Ue,{position:"absolute",top:0,left:0,bottom:0,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1,sx:{pointerEvents:"none"},children:m.jsxs(at,{variant:"caption",sx:E,children:[n," ",r?`${Math.round(T)}%`:""]})})]})]})},Gw=np,Kw=Bt`
|
|
303
|
+
`,Db=typeof si!="string"?le.css`
|
|
304
|
+
animation: ${si} 3s infinite linear;
|
|
305
|
+
`:null,zb=e=>{const{classes:o,variant:n,color:r}=e,a={root:["root",`color${F(r)}`,n],dashed:["dashed",`dashedColor${F(r)}`],bar1:["bar","bar1",`barColor${F(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${F(r)}`,n==="buffer"&&`color${F(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return we(a,Ab,o)},zi=(e,o)=>e.vars?e.vars.palette.LinearProgress[`${o}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[o].main,.62):e.darken(e.palette[o].main,.5),Fb=D("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[`color${F(n.color)}`],o[n.variant]]}})(me(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{backgroundColor:zi(e,o)}})),{props:({ownerState:o})=>o.color==="inherit"&&o.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Vb=D("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.dashed,o[`dashedColor${F(n.color)}`]]}})(me(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(qe()).map(([o])=>{const n=zi(e,o);return{props:{color:o},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Db||{animation:`${si} 3s infinite linear`}),_b=D("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.bar,o.bar1,o[`barColor${F(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&o.bar1Indeterminate,n.variant==="determinate"&&o.bar1Determinate,n.variant==="buffer"&&o.bar1Buffer]}})(me(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{backgroundColor:(e.vars||e).palette[o].main}})),{props:{variant:"determinate"},style:{transition:`transform .${ri}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${ri}s linear`}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:Lb||{animation:`${ai} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Wb=D("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.bar,o.bar2,o[`barColor${F(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&o.bar2Indeterminate,n.variant==="buffer"&&o.bar2Buffer]}})(me(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[o].main}})),{props:({ownerState:o})=>o.variant!=="buffer"&&o.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:o})=>o.variant!=="buffer"&&o.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o,variant:"buffer"},style:{backgroundColor:zi(e,o),transition:`transform .${ri}s linear`}})),{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:Bb||{animation:`${ii} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Fi=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiLinearProgress"}),{className:a,color:i="primary",value:s,valueBuffer:l,variant:c="indeterminate",...d}=r,p={...r,color:i,variant:c},g=zb(p),b=mn(),v={},h={bar1:{},bar2:{}};if(c==="determinate"||c==="buffer")if(s!==void 0){v["aria-valuenow"]=Math.round(s),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let f=s-100;b&&(f=-f),h.bar1.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(c==="buffer")if(l!==void 0){let f=(l||0)-100;b&&(f=-f),h.bar2.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return u.jsxs(Fb,{className:re(g.root,a),ownerState:p,role:"progressbar",...v,ref:n,...d,children:[c==="buffer"?u.jsx(Vb,{className:g.dashed,ownerState:p}):null,u.jsx(_b,{className:g.bar1,ownerState:p,style:h.bar1}),c==="determinate"?null:u.jsx(Wb,{className:g.bar2,ownerState:p,style:h.bar2})]})});process.env.NODE_ENV!=="production"&&(Fi.propTypes={classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","primary","secondary"]),t.string]),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:t.number,valueBuffer:t.number,variant:t.oneOf(["buffer","determinate","indeterminate","query"])});const Ub=it.styled(Ri,{shouldForwardProp:e=>e!=="estilo"&&e!=="varianteColor"})(({theme:e,estilo:o,varianteColor:n})=>{const r={width:"100%",boxShadow:e.shadows[6],alignItems:"center","& .MuiAlert-icon":{fontSize:"1.5rem"}};if(o==="cristal"){const a=e.palette.mode==="dark";return{...r,backgroundColor:a?it.alpha(n,.2):it.alpha(n,.15),backdropFilter:"blur(10px)",color:a?e.palette.getContrastText(e.palette.background.paper):e.palette.text.primary,border:`1px solid ${it.alpha(n,.3)}`,"& .MuiAlert-icon":{color:n}}}return o==="suave"?{...r}:o==="contorno"?{...r,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,border:`2px solid ${n}`,"& .MuiAlert-icon":{color:n}}:{...r}}),Vi=({abierto:e,alCerrar:o,variante:n="info",estilo:r="solido",titulo:a,mensaje:i,posicion:s="abajo-derecha",animacion:l="slide",duracion:c=6e3,mostrarIcono:d=!0,mostrarProgreso:p=!1,cerrable:g=!0,accion:b,className:v,sx:h,...f})=>{const y=it.useTheme(),[C,O]=Re.useState(0);Re.useEffect(()=>{if(e&&c&&p){O(0);const R=100,N=100/(c/R),A=setInterval(()=>{O(m=>m>=100?(clearInterval(A),100):m+N)},R);return()=>clearInterval(A)}},[e,c,p]);const S=(R,I)=>{I!=="clickaway"&&o&&o()},x=R=>{const[I,N]=R.split("-");return{vertical:I==="arriba"?"top":"bottom",horizontal:N==="izquierda"?"left":N==="derecha"?"right":"center"}},E={info:y.palette.info.main,exito:y.palette.success.main,advertencia:y.palette.warning.main,error:y.palette.error.main}[n],j=l==="grow"?it.Grow:l==="fade"?it.Zoom:it.Slide;return u.jsx(Kc,{open:e,autoHideDuration:c,onClose:S,anchorOrigin:x(s),TransitionComponent:j,className:v,sx:h,...f,children:u.jsxs(Ub,{onClose:g?S:void 0,severity:n==="exito"?"success":n==="advertencia"?"warning":n,variant:r==="solido"?"filled":"standard",estilo:r,varianteColor:E,icon:d?void 0:!1,action:b,children:[a&&u.jsx(Ii,{sx:{fontWeight:"bold"},children:a}),i,p&&c&&u.jsx(Fi,{variant:"determinate",value:C,sx:{position:"absolute",bottom:0,left:0,right:0,height:4,bgcolor:it.alpha(y.palette.common.white,.3),"& .MuiLinearProgress-bar":{bgcolor:it.alpha(y.palette.common.white,.8)}}})]})})},Hb=Vi,qb=Vi,Yc=({valor:e=0,maximo:o=100,etiqueta:n,mostrarPorcentaje:r=!1,etiquetaInterna:a=!1,indeterminado:i=!1,tamano:s="md",variante:l="primario",rayado:c=!1,animado:d=!1,colorPersonalizado:p,className:g="",sx:b,...v})=>{const h=jt(),y={xs:4,sm:8,md:12,lg:16,xl:24}[s]||12,O={primario:"primary",secundario:"secondary",error:"error",info:"info",exito:"success",advertencia:"warning"}[l]||"primary",S=Math.min(100,Math.max(0,e/o*100)),x=h.palette.mode==="dark"?"rgba(0,0,0,0.15)":"rgba(255,255,255,0.3)",T=c||d?{backgroundImage:`linear-gradient(45deg,${x} 25%,transparent 25%,transparent 50%,${x} 50%,${x} 75%,transparent 75%,transparent)`,backgroundSize:"1rem 1rem",...d&&{animation:"progreso-rayas 1s linear infinite","@keyframes progreso-rayas":{"0%":{backgroundPosition:"1rem 0"},"100%":{backgroundPosition:"0 0"}}}}:{},E={color:h.palette.getContrastText(p||h.palette[O==="inherit"?"primary":O].main),fontWeight:"bold",fontSize:"0.75rem",lineHeight:1,textShadow:"0 1px 2px rgba(0,0,0,0.2)"};return u.jsxs(Ue,{width:"100%",className:g,children:[!a&&(n||r)&&u.jsxs(Ue,{display:"flex",justifyContent:"space-between",mb:.5,alignItems:"center",children:[n&&u.jsx(nt,{variant:"body2",color:"text.secondary",fontWeight:500,children:n}),r&&u.jsx(nt,{variant:"body2",color:"text.secondary",fontWeight:600,children:i?"":`${Math.round(S)}%`})]}),u.jsxs(Ue,{position:"relative",width:"100%",children:[u.jsx(Fi,{variant:i?"indeterminate":"determinate",value:S,color:O,sx:{height:y,borderRadius:y/2,backgroundColor:h.palette.mode==="dark"?le.alpha(h.palette.common.white,.08):le.alpha(h.palette.common.black,.08),"& .MuiLinearProgress-bar":{borderRadius:y/2,...p&&{backgroundColor:p},...T},...b},...v}),a&&!i&&y>=12&&u.jsx(Ue,{position:"absolute",top:0,left:0,bottom:0,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1,sx:{pointerEvents:"none"},children:u.jsxs(nt,{variant:"caption",sx:E,children:[n," ",r?`${Math.round(S)}%`:""]})})]})]})},Gb=Yc,Xc={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Kb=st(u.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),Yb=st(u.jsx("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function Xb(e){return xe("MuiRating",e)}const Sn=Ce("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);function Zb(e){const o=e.toString().split(".")[1];return o?o.length:0}function Ma(e,o){if(e==null)return e;const n=Math.round(e/o)*o;return Number(n.toFixed(Zb(o)))}const Jb=e=>{const{classes:o,size:n,readOnly:r,disabled:a,emptyValueFocused:i,focusVisible:s}=e,l={root:["root",`size${F(n)}`,a&&"disabled",s&&"focusVisible",r&&"readOnly"],label:["label","pristine"],labelEmptyValue:[i&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return we(l,Xb,o)},Qb=D("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${Sn.visuallyHidden}`]:o.visuallyHidden},o.root,o[`size${F(n.size)}`],n.readOnly&&o.readOnly]}})(me(({theme:e})=>({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${Sn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Sn.focusVisible} .${Sn.iconActive}`]:{outline:"1px solid #999"},[`& .${Sn.visuallyHidden}`]:Xc,variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(30)}},{props:({ownerState:o})=>o.readOnly,style:{pointerEvents:"none"}}]}))),Zc=D("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:e},o)=>[o.label,e.emptyValueFocused&&o.labelEmptyValueActive]})({cursor:"inherit",variants:[{props:({ownerState:e})=>e.emptyValueFocused,style:{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}}]}),ey=D("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.icon,n.iconEmpty&&o.iconEmpty,n.iconFilled&&o.iconFilled,n.iconHover&&o.iconHover,n.iconFocus&&o.iconFocus,n.iconActive&&o.iconActive]}})(me(({theme:e})=>({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none",variants:[{props:({ownerState:o})=>o.iconActive,style:{transform:"scale(1.2)"}},{props:({ownerState:o})=>o.iconEmpty,style:{color:(e.vars||e).palette.action.disabled}}]}))),ty=D("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>Kn(e)&&e!=="iconActive",overridesResolver:(e,o)=>{const{iconActive:n}=e;return[o.decimal,n&&o.iconActive]}})({position:"relative",variants:[{props:({iconActive:e})=>e,style:{transform:"scale(1.2)"}}]});function Jc(e){const{value:o,...n}=e;return u.jsx("span",{...n})}process.env.NODE_ENV!=="production"&&(Jc.propTypes={value:t.number.isRequired});function li(e){const{classes:o,disabled:n,emptyIcon:r,focus:a,getLabelText:i,highlightSelectedOnly:s,hover:l,icon:c,IconContainerComponent:d,isActive:p,itemValue:g,labelProps:b,name:v,onBlur:h,onChange:f,onClick:y,onFocus:C,readOnly:O,ownerState:S,ratingValue:x,ratingValueRounded:T,slots:E={},slotProps:j={}}=e,R=s?g===x:g<=x,I=g<=l,N=g<=a,A=g===T,m=`${v}-${uo()}`,$={slots:E,slotProps:j},[P,M]=ge("icon",{elementType:ey,className:re(o.icon,R?o.iconFilled:o.iconEmpty,I&&o.iconHover,N&&o.iconFocus,p&&o.iconActive),externalForwardedProps:$,ownerState:{...S,iconEmpty:!R,iconFilled:R,iconHover:I,iconFocus:N,iconActive:p},additionalProps:{value:g},internalForwardedProps:{as:d}}),[k,z]=ge("label",{elementType:Zc,externalForwardedProps:$,ownerState:{...S,emptyValueFocused:void 0},additionalProps:{style:b?.style,htmlFor:m}}),V=u.jsx(P,{...M,children:r&&!R?r:c});return O?u.jsx("span",{...b,children:V}):u.jsxs(w.Fragment,{children:[u.jsxs(k,{...z,children:[V,u.jsx("span",{className:o.visuallyHidden,children:i(g)})]}),u.jsx("input",{className:o.visuallyHidden,onFocus:C,onBlur:h,onChange:f,onClick:y,disabled:n,value:g,id:m,type:"radio",name:v,checked:A})]})}process.env.NODE_ENV!=="production"&&(li.propTypes={classes:t.object.isRequired,disabled:t.bool.isRequired,emptyIcon:t.node,focus:t.number.isRequired,getLabelText:t.func.isRequired,highlightSelectedOnly:t.bool.isRequired,hover:t.number.isRequired,icon:t.node,IconContainerComponent:t.elementType.isRequired,isActive:t.bool.isRequired,itemValue:t.number.isRequired,labelProps:t.object,name:t.string,onBlur:t.func.isRequired,onChange:t.func.isRequired,onClick:t.func.isRequired,onFocus:t.func.isRequired,ownerState:t.object.isRequired,ratingValue:t.number,ratingValueRounded:t.number,readOnly:t.bool.isRequired,slotProps:t.object,slots:t.object});const oy=u.jsx(Kb,{fontSize:"inherit"}),ny=u.jsx(Yb,{fontSize:"inherit"});function ry(e){return`${e||"0"} Star${e!==1?"s":""}`}const Qc=w.forwardRef(function(o,n){const r=Te({name:"MuiRating",props:o}),{component:a="span",className:i,defaultValue:s=null,disabled:l=!1,emptyIcon:c=ny,emptyLabelText:d="Empty",getLabelText:p=ry,highlightSelectedOnly:g=!1,icon:b=oy,IconContainerComponent:v=Jc,max:h=5,name:f,onChange:y,onChangeActive:C,onMouseLeave:O,onMouseMove:S,precision:x=1,readOnly:T=!1,size:E="medium",value:j,slots:R={},slotProps:I={},...N}=r,A=uo(f),[m,$]=Qt({controlled:j,default:s,name:"Rating"}),P=Ma(m,x),M=mn(),[{hover:k,focus:z},V]=w.useState({hover:-1,focus:-1});let W=P;k!==-1&&(W=k),z!==-1&&(W=z);const[B,L]=w.useState(!1),Y=w.useRef(),Z=ot(Y,n),oe=he=>{S&&S(he);const ne=Y.current,{right:ze,left:Me,width:te}=ne.getBoundingClientRect();let Q;M?Q=(ze-he.clientX)/te:Q=(he.clientX-Me)/te;let be=Ma(h*Q+x/2,x);be=jo(be,x,h),V(Oe=>Oe.hover===be&&Oe.focus===be?Oe:{hover:be,focus:be}),L(!1),C&&k!==be&&C(he,be)},K=he=>{O&&O(he);const ne=-1;V({hover:ne,focus:ne}),C&&k!==ne&&C(he,ne)},U=he=>{let ne=he.target.value===""?null:parseFloat(he.target.value);k!==-1&&(ne=k),$(ne),y&&y(he,ne)},ae=he=>{he.clientX===0&&he.clientY===0||(V({hover:-1,focus:-1}),$(null),y&&parseFloat(he.target.value)===P&&y(he,null))},ce=he=>{So(he.target)&&L(!0);const ne=parseFloat(he.target.value);V(ze=>({hover:ze.hover,focus:ne}))},J=he=>{if(k!==-1)return;So(he.target)||L(!1);const ne=-1;V(ze=>({hover:ze.hover,focus:ne}))},[X,de]=w.useState(!1),_={...r,component:a,defaultValue:s,disabled:l,emptyIcon:c,emptyLabelText:d,emptyValueFocused:X,focusVisible:B,getLabelText:p,icon:b,IconContainerComponent:v,max:h,precision:x,readOnly:T,size:E},se=Jb(_),ie={slots:R,slotProps:I},[pe,ke]=ge("root",{ref:Z,className:re(se.root,i),elementType:Qb,externalForwardedProps:{...ie,...N,component:a},getSlotProps:he=>({...he,onMouseMove:ne=>{oe(ne),he.onMouseMove?.(ne)},onMouseLeave:ne=>{K(ne),he.onMouseLeave?.(ne)}}),ownerState:_,additionalProps:{role:T?"img":null,"aria-label":T?p(W):null}}),[Ee,ee]=ge("label",{className:re(se.label,se.labelEmptyValue),elementType:Zc,externalForwardedProps:ie,ownerState:_}),[De,Se]=ge("decimal",{className:se.decimal,elementType:ty,externalForwardedProps:ie,ownerState:_});return u.jsxs(pe,{...ke,children:[Array.from(new Array(h)).map((he,ne)=>{const ze=ne+1,Me={classes:se,disabled:l,emptyIcon:c,focus:z,getLabelText:p,highlightSelectedOnly:g,hover:k,icon:b,IconContainerComponent:v,name:A,onBlur:J,onChange:U,onClick:ae,onFocus:ce,ratingValue:W,ratingValueRounded:P,readOnly:T,ownerState:_,slots:R,slotProps:I},te=ze===Math.ceil(W)&&(k!==-1||z!==-1);if(x<1){const Q=Array.from(new Array(1/x));return Re.createElement(De,{...Se,key:ze,className:re(Se.className,te&&se.iconActive),iconActive:te},Q.map((be,Oe)=>{const Pe=Ma(ze-1+(Oe+1)*x,x);return u.jsx(li,{...Me,isActive:!1,itemValue:Pe,labelProps:{style:Q.length-1===Oe?{}:{width:Pe===W?`${(Oe+1)*x*100}%`:"0%",overflow:"hidden",position:"absolute"}}},Pe)}))}return u.jsx(li,{...Me,isActive:te,itemValue:ze},ze)}),!T&&!l&&u.jsxs(Ee,{...ee,children:[u.jsx("input",{className:se.visuallyHidden,value:"",id:`${A}-empty`,type:"radio",name:A,checked:P==null,onFocus:()=>de(!0),onBlur:()=>de(!1),onChange:U}),u.jsx("span",{className:se.visuallyHidden,children:d})]})]})});process.env.NODE_ENV!=="production"&&(Qc.propTypes={children:t.node,classes:t.object,className:t.string,component:t.elementType,defaultValue:t.number,disabled:t.bool,emptyIcon:t.node,emptyLabelText:t.node,getLabelText:t.func,highlightSelectedOnly:t.bool,icon:t.node,IconContainerComponent:t.elementType,max:t.number,name:t.string,onChange:t.func,onChangeActive:t.func,onMouseLeave:t.func,onMouseMove:t.func,precision:xt(t.number,e=>e.precision<.1?new Error(["MUI: The prop `precision` should be above 0.1.","A value below this limit has an imperceptible impact."].join(`
|
|
306
|
+
`)):null),readOnly:t.bool,size:t.oneOfType([t.oneOf(["small","medium","large"]),t.string]),slotProps:t.shape({decimal:t.oneOfType([t.func,t.object]),icon:t.oneOfType([t.func,t.object]),label:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({decimal:t.elementType,icon:t.elementType,label:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:t.number});const ay=le.keyframes`
|
|
327
307
|
0% { transform: scale(1); }
|
|
328
308
|
50% { transform: scale(1.2); }
|
|
329
309
|
100% { transform: scale(1); }
|
|
330
|
-
`,
|
|
310
|
+
`,iy=D(Qc,{shouldForwardProp:e=>e!=="colorPersonalizado"&&e!=="animado"&&e!=="brillo"})(({theme:e,colorPersonalizado:o,animado:n,brillo:r})=>({"& .MuiRating-iconFilled":{color:o,filter:r?`drop-shadow(0 0 2px ${o})`:"none",transition:"transform 0.2s ease-in-out"},"& .MuiRating-iconHover":{color:o,filter:r?`drop-shadow(0 0 4px ${o})`:"none",transform:n?"scale(1.2)":"none"},"& .MuiRating-iconActive":{animation:n?`${ay} 0.4s ease-out`:"none"}})),ed=({valor:e,maximo:o=5,precision:n=1,soloLectura:r=!1,deshabilitado:a=!1,tamano:i="m",color:s="advertencia",etiquetas:l,mostrarEtiqueta:c=!1,alCambiar:d,iconoPersonalizado:p,iconoVacioPersonalizado:g,animado:b=!0,brillo:v=!1,className:h,sx:f,...y})=>{const C=jt(),[O,S]=Re.useState(-1),T={p:"small",m:"medium",g:"large",xg:"large"}[i],E=i==="xg"?1.5:1,R={primario:C.palette.primary.main,secundario:C.palette.secondary.main,exito:C.palette.success.main,advertencia:C.palette.warning.main,error:C.palette.error.main,info:C.palette.info.main}[s]||C.palette.warning.main,I=N=>l?l[N]||N:`${N} Estrellas`;return u.jsxs(Ue,{className:h,sx:{display:"flex",alignItems:"center",gap:1,opacity:a?.5:1,pointerEvents:a?"none":"auto",...f},children:[u.jsx(iy,{name:"codeplex-rating",value:e,max:o,precision:n,readOnly:r,disabled:a,size:T,colorPersonalizado:R,animado:b,brillo:v,onChange:(N,A)=>{d&&d(A)},onChangeActive:(N,A)=>{S(A)},icon:p,emptyIcon:g,sx:{transform:`scale(${E})`,transformOrigin:"left center"},...y}),c&&(e!==null||O!==-1)&&u.jsx(nt,{variant:"body2",color:"text.secondary",sx:{minWidth:20,ml:i==="xg"?2:0,fontWeight:500},children:l?I(O!==-1?O:e||0):O!==-1?O:e})]})},sy=ed,td=({textoAyuda:e,mensajeError:o,valor:n,longitudMaxima:r,mostrarContador:a})=>{const i=n?.toString().length||0,s=!!o,l=r?i>=r*.9:!1,c=r?i>=r:!1;return!e&&!o&&!a?null:u.jsxs("div",{className:"flex items-start justify-between mt-1.5 px-1 gap-4",children:[u.jsx("div",{className:"flex-1 min-w-0",children:s?u.jsxs("p",{className:"text-xs font-medium text-red-500 flex items-center gap-1 animate-in slide-in-from-left-1 duration-200",children:[u.jsx("svg",{className:"w-3 h-3 flex-shrink-0",viewBox:"0 0 20 20",fill:"currentColor",children:u.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),o]}):e?u.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 leading-tight",children:e}):null}),a&&r&&u.jsxs("div",{className:`
|
|
331
311
|
text-[10px] font-mono font-medium transition-colors duration-300
|
|
332
312
|
${s||c?"text-red-500":l?"text-amber-500":"text-gray-400 dark:text-gray-500"}
|
|
333
|
-
`,children:[i,"/",r]})]})},
|
|
313
|
+
`,children:[i,"/",r]})]})},ly=({helperText:e,error:o,value:n,maxLength:r,showCount:a,...i})=>u.jsx(td,{textoAyuda:e,mensajeError:o,valor:n,longitudMaxima:r,mostrarContador:a,...i});le.keyframes`
|
|
334
314
|
0% { transform: translateX(-100%); }
|
|
335
315
|
100% { transform: translateX(100%); }
|
|
336
|
-
`;const Zw=D(Cs)(({theme:e,colorBase:t})=>({backgroundColor:t||(e.palette.mode==="dark"?ve(e.palette.common.white,.08):ve(e.palette.common.black,.06)),borderRadius:8,"&.MuiSkeleton-text":{marginBottom:4,marginTop:0,borderRadius:4}})),ip=({variante:e="texto",ancho:t,alto:n,animacion:r="pulso",colorBase:a,className:i,...s})=>{const l=u=>u==="texto"?"text":u==="rectangular"?"rectangular":u==="redondeado"?"rounded":u==="circular"?"circular":"text",c=u=>u==="pulso"?"pulse":u==="ola"?"wave":u===!1?!1:"pulse";return m.jsx(Zw,{variant:l(e),width:t,height:n,animation:c(r),colorBase:a,className:i,...s})},Qw=ip,sp=lt(m.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),eT=D(Rn)(({theme:e,errorEstado:t})=>({"& .MuiOutlinedInput-root":{borderRadius:"12px",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:e.palette.mode==="dark"?ve(e.palette.common.white,.03):e.palette.common.white,paddingRight:"30px","& fieldset":{borderColor:t?e.palette.error.main:e.palette.mode==="dark"?ve(e.palette.common.white,.2):e.palette.grey[300],borderWidth:"1px",transition:"border-color 0.2s ease"},"&:hover fieldset":{borderColor:t?e.palette.error.dark:e.palette.mode==="dark"?ve(e.palette.common.white,.4):e.palette.grey[400]},"&.Mui-focused":{backgroundColor:e.palette.mode==="dark"?ve(e.palette.common.white,.05):e.palette.common.white,boxShadow:t?`0 0 0 4px ${ve(e.palette.error.main,.1)}`:e.palette.mode==="dark"?`0 4px 12px 0 ${ve(e.palette.common.black,.4)}`:`0 4px 12px 0 ${ve(e.palette.primary.main,.1)}`},"&.Mui-focused fieldset":{borderWidth:"2px",borderColor:t?e.palette.error.main:e.palette.primary.main}},"& .MuiInputLabel-root":{color:t?e.palette.error.main:e.palette.text.secondary,"&.Mui-focused":{color:t?e.palette.error.main:e.palette.primary.main,fontWeight:600}}}));function lp({opciones:e,valor:t,alCambiar:n,etiqueta:r,textoAyuda:a,marcador:i,error:s,mensajeError:l,requerido:c,cargando:u,deshabilitado:d,soloLectura:f,limpiable:y=!0,multiple:x,propsEntrada:h,renderizarEntrada:p,...b}){const v=s&&l?l:a,O=T=>m.jsx(eT,{...T,label:r,placeholder:e.length===0&&!u?"No hay opciones":i,helperText:v,error:s,required:c,errorEstado:s,InputProps:{...T.InputProps,...h?.InputProps,endAdornment:m.jsxs(Re.Fragment,{children:[u?m.jsx(No,{color:"inherit",size:20,sx:{marginRight:1}}):null,T.InputProps.endAdornment]})},...h});return m.jsx(hd,{options:e,value:t,onChange:n,loading:u,disabled:d,readOnly:f,disableClearable:!y,multiple:x,popupIcon:m.jsx(sp,{}),renderInput:p||O,PaperComponent:T=>m.jsx(xo,{...T,elevation:8,sx:{borderRadius:"16px",marginTop:"8px",border:C=>`1px solid ${C.palette.mode==="dark"?ve(C.palette.common.white,.1):ve(C.palette.common.black,.05)}`,boxShadow:C=>C.palette.mode==="dark"?"0 10px 40px -10px rgba(0,0,0,0.6)":"0 12px 30px -10px rgba(0,0,0,0.15)",overflow:"hidden","& .MuiAutocomplete-listbox":{padding:"8px","& .MuiAutocomplete-option":{borderRadius:"10px",margin:"2px 0",padding:"10px 14px",transition:"all 0.15s ease",fontSize:"0.9rem",'&[aria-selected="true"]':{backgroundColor:C=>ve(C.palette.primary.main,C.palette.mode==="dark"?.2:.1),color:"primary.main",fontWeight:600,"&.Mui-focused":{backgroundColor:C=>ve(C.palette.primary.main,C.palette.mode==="dark"?.3:.2)}},"&:hover":{backgroundColor:C=>C.palette.mode==="dark"?ve(C.palette.common.white,.05):ve(C.palette.common.black,.04),transform:"translateX(4px)"}},"& .MuiAutocomplete-noOptions":{color:"text.secondary",padding:"16px",textAlign:"center",fontSize:"0.9rem"}}}}),renderTags:(T,C)=>T.map((S,E)=>m.jsx(ja,{label:typeof S=="string"?S:S.label||JSON.stringify(S),...C({index:E}),size:"small",sx:{borderRadius:"8px",backgroundColor:P=>ve(P.palette.primary.main,.1),color:"primary.main",fontWeight:500,border:"1px solid",borderColor:P=>ve(P.palette.primary.main,.2),"& .MuiChip-deleteIcon":{color:"primary.main","&:hover":{color:"primary.dark"}}}})),...b})}const tT=lp,oT=D(bd,{shouldForwardProp:e=>e!=="separado"&&e!=="radio"&&e!=="varianteCustom"})(({theme:e,separado:t,radio:n,varianteCustom:r})=>({boxShadow:t?"none":e.shadows[2],borderRadius:n||(t?0:12),backgroundColor:r==="cristal"?e.palette.mode==="dark"?ve(e.palette.common.white,.05):ve(e.palette.common.white,.6):"transparent",backdropFilter:r==="cristal"?"blur(8px)":"none",border:r==="cristal"?`1px solid ${e.palette.mode==="dark"?ve(e.palette.common.white,.1):ve(e.palette.common.white,.4)}`:"none",...t&&{boxShadow:"none",backgroundColor:"transparent",border:"none",gap:e.spacing(1),"& .MuiButtonGroup-grouped":{borderRadius:n||8,border:"none !important",boxShadow:e.shadows[1],"&:not(:last-of-type)":{borderRight:"none !important"}}},"& .MuiButtonGroup-firstButton, & .MuiButtonGroup-lastButton":{borderRadius:t?n||8:void 0}})),nT=({children:e,tamano:t="m",variante:n="contenido",color:r="primario",orientacion:a="horizontal",separado:i=!1,radio:s,...l})=>{const c=f=>f==="contenido"?"contained":f==="texto"?"text":f==="contorno"?"outlined":f==="cristal"?"text":"contained",u=f=>f==="primario"?"primary":f==="secundario"?"secondary":f==="exito"?"success":f==="error"?"error":f==="info"?"info":f==="advertencia"?"warning":f==="oscuro"||f==="claro"?"inherit":"primary",d=f=>f==="p"?"small":f==="m"?"medium":f==="g"?"large":"medium";return m.jsx(oT,{size:d(t),variant:c(n),color:u(r),orientation:a,separado:i,radio:s,varianteCustom:n,...l,children:e})},cp=D("span")(({theme:e,tamanoPx:t,variante:n,error:r})=>({borderRadius:6,width:t,height:t,boxShadow:n==="borde"?`inset 0 0 0 2px ${e.palette.divider}`:e.palette.mode==="dark"?"0 0 0 1px rgb(16 22 26 / 40%)":"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:n==="borde"?"transparent":e.palette.mode==="dark"?"#394b59":"#f5f8fa",backgroundImage:n==="borde"?"none":e.palette.mode==="dark"?"linear-gradient(180deg,hsla(0,0%,100%,.05),hsla(0,0%,100%,0))":"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",".Mui-focusVisible &":{outline:"2px auto rgba(19,124,189,.6)",outlineOffset:2},"input:hover ~ &":{backgroundColor:e.palette.mode==="dark"?"#30404d":"#ebf1f5",borderColor:r?e.palette.error.main:e.palette.primary.main},"input:disabled ~ &":{boxShadow:"none",background:e.palette.mode==="dark"?"rgba(57,75,89,.5)":"rgba(206,217,224,.5)",cursor:"not-allowed"},...r&&{boxShadow:`inset 0 0 0 2px ${e.palette.error.main}`,backgroundColor:ve(e.palette.error.main,.1)}})),up=D(cp)(({theme:e,colorHex:t,variante:n})=>({backgroundColor:t,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))",boxShadow:`0 0 0 1px ${t}`,"&::before":{display:"block",width:"100%",height:"100%",backgroundImage:`url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E")`,content:'""',backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"80%"},"input:hover ~ &":{backgroundColor:t,filter:"brightness(95%)"}})),rT=D(up)({"&::before":{backgroundImage:`url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='2' rx='1' fill='%23fff'/%3E%3C/svg%3E")`}}),Js=Re.forwardRef(({etiqueta:e,posicionEtiqueta:t="derecha",seleccionado:n,indeterminado:r=!1,deshabilitado:a=!1,soloLectura:i=!1,requerido:s=!1,error:l=!1,tamano:c="m",color:u="primario",variante:d="estandar",alCambiar:f,sx:y,className:x,...h},p)=>{const b=xt(),O={p:16,m:20,g:24}[c],C={primario:b.palette.primary.main,secundario:b.palette.secondary.main,exito:b.palette.success.main,error:b.palette.error.main,info:b.palette.info.main,advertencia:b.palette.warning.main}[u]||b.palette.primary.main,S={derecha:"end",izquierda:"start",arriba:"top",abajo:"bottom"},E=m.jsx(oa,{ref:p,checked:n,indeterminate:r,disabled:a,readOnly:i,required:s,onChange:f,sx:{"&:hover":{bgcolor:"transparent"},p:1,...y},disableRipple:!0,icon:m.jsx(cp,{tamanoPx:O,variante:d,error:l}),checkedIcon:m.jsx(up,{tamanoPx:O,variante:d,colorHex:l?b.palette.error.main:C}),indeterminateIcon:m.jsx(rT,{tamanoPx:O,variante:d,colorHex:l?b.palette.error.main:C}),inputProps:{"aria-label":typeof e=="string"?e:"Casilla"},...h});return e?m.jsx(Va,{control:E,label:m.jsxs(at,{variant:"body2",sx:{fontSize:c==="g"?"1rem":c==="p"?"0.8125rem":"0.875rem",color:a?"text.disabled":l?"error.main":"text.primary",fontWeight:500},children:[e," ",s&&m.jsx("span",{style:{color:b.palette.error.main},children:"*"})]}),labelPlacement:S[t],disabled:a,className:x,sx:{mx:0,gap:1,"&.MuiFormControlLabel-labelPlacementStart":{marginLeft:0,marginRight:0}}}):m.jsx("span",{className:x,children:E})});Js.displayName="CodeplexCasilla";const aT=Js,iT=lt(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),sT=lt(m.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),lT=D(Rn)(({theme:e,errorEstado:t})=>({"& .MuiOutlinedInput-root":{borderRadius:12,backgroundColor:e.palette.mode==="dark"?ve(e.palette.common.white,.03):ve(e.palette.common.black,.01),transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","& fieldset":{borderColor:t?e.palette.error.main:e.palette.mode==="dark"?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.12)"},"&:hover":{backgroundColor:e.palette.mode==="dark"?ve(e.palette.common.white,.05):ve(e.palette.common.black,.02)},"&:hover fieldset":{borderColor:t?e.palette.error.dark:e.palette.primary.main},"&.Mui-focused fieldset":{borderColor:t?e.palette.error.main:e.palette.primary.main,borderWidth:2,boxShadow:t?`0 0 0 4px ${ve(e.palette.error.main,.1)}`:`0 0 0 4px ${ve(e.palette.primary.main,.1)}`},"& input[type=number]":{"-moz-appearance":"textfield","&::-webkit-outer-spin-button":{"-webkit-appearance":"none",margin:0},"&::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0}},"& .MuiInputAdornment-root .MuiIconButton-root":{opacity:.5,transition:"all 0.2s","&:hover":{opacity:1,backgroundColor:ve(e.palette.primary.main,.1)},"&.Mui-disabled":{opacity:.2}},"&:hover .MuiInputAdornment-root .MuiIconButton-root":{opacity:.7}},"& .MuiInputLabel-root":{color:t?e.palette.error.main:e.palette.text.secondary,"&.Mui-focused":{color:t?e.palette.error.main:e.palette.primary.main,fontWeight:600}}})),dp=({etiqueta:e,textoAyuda:t,minimo:n,maximo:r,paso:a=1,valor:i,valorPorDefecto:s,alineacion:l="centro",mostrarControles:c=!0,error:u,mensajeError:d,deshabilitado:f,soloLectura:y,anchoCompleto:x=!1,alCambiar:h,InputProps:p,...b})=>{const v=i!==void 0,[O,T]=Re.useState(v?i?.toString()??"":s?.toString()??"");Re.useEffect(()=>{v&&T(i?.toString()??"")},[i,v]);const C=O,S=A=>{if(A===""||A==="-"){T(A),A===""&&!v&&h?.(null);return}const g=parseFloat(A);isNaN(g)||(v||T(A),h?.(g))},E=()=>{let A=parseFloat(O);if(isNaN(A))return void 0;let g=A;typeof n=="number"&&A<n&&(g=n),typeof r=="number"&&A>r&&(g=r),g!==A&&(v||T(g.toString()),h?.(g))},P=()=>{let g=parseFloat(C||"0")+a;g=Math.round(g*1e4)/1e4,!(r!==void 0&&g>r)&&(v||T(g.toString()),h?.(g))},$=()=>{let g=parseFloat(C||"0")-a;g=Math.round(g*1e4)/1e4,!(n!==void 0&&g<n)&&(v||T(g.toString()),h?.(g))},I={izquierda:"left",centro:"center",derecha:"right"},N=u&&d?d:t;return m.jsx(lT,{type:"number",label:e,value:C,onChange:A=>S(A.target.value),onBlur:E,disabled:f,error:u,helperText:N,fullWidth:x,errorEstado:u,InputProps:{readOnly:y,startAdornment:c?m.jsx(tn,{position:"start",children:m.jsx(Cn,{onClick:$,disabled:f||y||n!==void 0&&parseFloat(C||"0")<=n,edge:"start",size:"small",children:m.jsx(sT,{fontSize:"small"})})}):null,endAdornment:c?m.jsx(tn,{position:"end",children:m.jsx(Cn,{onClick:P,disabled:f||y||r!==void 0&&parseFloat(C||"0")>=r,edge:"end",size:"small",children:m.jsx(iT,{fontSize:"small"})})}):null,sx:{"& input":{textAlign:I[l]||"center"},paddingRight:c?void 0:"14px"},...p},...b})},cT=dp,pp=D("span")(({theme:e})=>({borderRadius:"50%",width:20,height:20,boxShadow:e.palette.mode==="dark"?"0 0 0 1px rgb(16 22 26 / 40%)":"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:e.palette.mode==="dark"?"#394b59":"#f5f8fa",backgroundImage:e.palette.mode==="dark"?"linear-gradient(180deg,hsla(0,0%,100%,.05),hsla(0,0%,100%,0))":"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",".Mui-focusVisible &":{outline:"2px auto rgba(19,124,189,.6)",outlineOffset:2},"input:hover ~ &":{backgroundColor:e.palette.mode==="dark"?"#30404d":"#ebf1f5"},"input:disabled ~ &":{boxShadow:"none",background:e.palette.mode==="dark"?"rgba(57,75,89,.5)":"rgba(206,217,224,.5)"}})),uT=D(pp)({backgroundColor:"#137cbd",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&::before":{display:"block",width:20,height:20,backgroundImage:"radial-gradient(#fff,#fff 28%,transparent 32%)",content:'""'},"input:hover ~ &":{backgroundColor:"#106ba3"}}),Zs=Re.forwardRef(({etiqueta:e,posicionEtiqueta:t,sx:n,...r},a)=>{const i=m.jsx(zd,{ref:a,sx:{"&:hover":{bgcolor:"transparent"},...n},disableRipple:!0,color:"default",checkedIcon:m.jsx(uT,{}),icon:m.jsx(pp,{}),...r});return e?m.jsx(Va,{control:i,label:e,labelPlacement:t,sx:{"& .MuiFormControlLabel-label":{fontSize:"0.95rem",fontWeight:500,userSelect:"none"}}}):i});Zs.displayName="CodeplexRadio";const fp=({etiqueta:e,opciones:t,orientacion:n="vertical",valor:r,alCambiar:a,color:i,error:s,mensajeError:l,children:c,...u})=>{const d=t?t.map(y=>({value:y.valor,label:y.etiqueta,disabled:y.deshabilitado})):null,f=m.jsx(Vd,{row:n==="horizontal",value:r,onChange:a,...u,children:d?d.map(y=>m.jsx(Zs,{value:y.value,etiqueta:y.label,disabled:y.disabled},y.value)):c});return e||s?m.jsxs(za,{component:"fieldset",error:s,children:[e&&m.jsx(aa,{component:"legend",className:"mb-2 font-semibold",sx:{"&.Mui-focused":{color:s?"error.main":"primary.main"}},children:e}),f,s&&l&&m.jsx(aa,{error:!0,sx:{fontSize:"0.75rem",marginTop:.5},children:l})]}):f},dT=fp,mp=lt(m.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),pT=D(Ua)(({theme:e})=>({borderRadius:12,backgroundColor:e.palette.mode==="dark"?"rgba(255,255,255,0.05)":"#fff",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","& .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.mode==="dark"?"rgba(255,255,255,0.2)":"rgba(0,0,0,0.15)",transition:"all 0.2s"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary.main},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2,boxShadow:`0 0 0 4px ${e.palette.mode==="dark"?"rgba(96, 165, 250, 0.2)":"rgba(37, 99, 235, 0.1)"}`},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main},"&.Mui-error.Mui-focused .MuiOutlinedInput-notchedOutline":{boxShadow:`0 0 0 4px ${e.palette.mode==="dark"?"rgba(239, 68, 68, 0.2)":"rgba(220, 38, 38, 0.1)"}`}})),fT=D(vn)(({theme:e})=>({position:"sticky",bottom:0,backgroundColor:e.palette.background.paper,borderTop:`1px solid ${e.palette.divider}`,color:e.palette.primary.main,fontWeight:600,zIndex:1,"&:hover":{backgroundColor:e.palette.action.hover},display:"flex",justifyContent:"center",textAlign:"center"})),mT=D(En)(({theme:e})=>({position:"sticky",top:0,zIndex:2,backgroundColor:e.palette.background.paper,padding:"8px 16px",borderBottom:`1px solid ${e.palette.divider}`,lineHeight:"initial"})),gp=({value:e,onChange:t,size:n,multiple:r=!1,error:a,disabled:i,required:s,variant:l="outlined",displayEmpty:c,etiqueta:u,opciones:d,textoAyuda:f,marcador:y,renderizarValor:x,alCambiar:h,tamano:p,alCrearNuevo:b,textoCrearNuevo:v="Agregar opción...",mensajeError:O,buscable:T,children:C,sx:S,...E})=>{const P=xt(),$=h||t,I=p||n,[N,A]=Re.useState(""),g=Re.useMemo(()=>j(d),[d]);function j(L){return L?L.map(G=>({value:G.valor,label:G.etiqueta,disabled:G.deshabilitado})):[]}const R=Re.useMemo(()=>{if(!T||!N.trim())return g;const L=N.toLowerCase();return g.filter(G=>String(G.label).toLowerCase().includes(L))},[g,N,T]),M=L=>{if($){const J={target:{value:Array.isArray(e)?e.filter(te=>te!==L):[],name:E.name}};$(J,null)}},k=e===""||e===null||Array.isArray(e)&&e.length===0,z=L=>{if(x)return x(L);if(r){const G=Array.isArray(L)?L:[L];return g.length>0?m.jsx(Ue,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:G.map(J=>{const te=g.find(K=>K.value===J);return m.jsx(ja,{label:te?.label||J,size:"small",onDelete:()=>M(J),onMouseDown:K=>K.stopPropagation(),sx:{borderRadius:"8px",backgroundColor:K=>ve(K.palette.primary.main,.1),color:P.palette.primary.main,fontWeight:500,border:"1px solid",borderColor:K=>ve(K.palette.primary.main,.2),"& .MuiChip-deleteIcon":{color:P.palette.primary.main,"&:hover":{color:P.palette.primary.dark}}}},J)})}):G.join(", ")}return g.length>0?(L===""||L===null)&&y?m.jsx("span",{style:{color:P.palette.text.disabled},children:y}):g.find(J=>J.value===L)?.label||L:L},F=x||r||g.length>0,_=!k||!!y,B=a&&O?O:f;return m.jsxs(za,{fullWidth:!0,error:a,disabled:i,required:s,variant:l,sx:{minWidth:120,my:1,...S},children:[u&&m.jsx(Fs,{id:`select-label-${u}`,shrink:_,children:u}),m.jsxs(pT,{labelId:u?`select-label-${u}`:void 0,label:u,value:e,onChange:$,size:I,multiple:r,displayEmpty:!!y||c,renderValue:F?z:void 0,IconComponent:sp,onClose:()=>A(""),MenuProps:{autoFocus:!1,PaperProps:{elevation:0,sx:{mt:1.5,borderRadius:3,boxShadow:"0 8px 32px rgba(0,0,0,0.12)",border:"1px solid",borderColor:P.palette.mode==="dark"?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.05)",maxHeight:320,paddingBottom:b?0:1,"& .MuiMenuItem-root":{borderRadius:1.5,mx:1,my:.5,py:1,fontSize:"0.95rem",transition:"all 0.2s","&:hover":{backgroundColor:P.palette.action.hover,pl:2.5},"&.Mui-selected":{backgroundColor:P.palette.primary.light,color:P.palette.primary.contrastText,fontWeight:600,"&:hover":{backgroundColor:P.palette.primary.main}}}}}},...E,children:[T&&m.jsx(mT,{children:m.jsx(Rn,{size:"small",fullWidth:!0,placeholder:"Buscar...",value:N,onChange:L=>A(L.target.value),onKeyDown:L=>L.stopPropagation(),InputProps:{startAdornment:m.jsx(tn,{position:"start",children:m.jsx(mp,{fontSize:"small",color:"action"})})},sx:{"& .MuiOutlinedInput-root":{borderRadius:2,backgroundColor:P.palette.action.hover,"& fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"}}}})}),y&&m.jsx(vn,{value:"",disabled:!0,sx:{display:"none"},children:m.jsx("span",{style:{color:P.palette.text.disabled},children:y})}),R.length>0?R.map(L=>m.jsx(vn,{value:L.value,disabled:L.disabled,children:L.label},L.value)):T&&R.length===0&&N?m.jsx(vn,{disabled:!0,children:m.jsx("span",{style:{opacity:.7},children:"No hay resultados"})}):C,b&&m.jsxs(fT,{onClick:L=>{L.stopPropagation(),b()},value:"",disableRipple:!0,children:["+ ",v]})]}),B&&m.jsx(Bs,{children:B})]})},gT=gp,hT=D(Jd)(({theme:e})=>({height:6,"& .MuiSlider-track":{border:"none",borderRadius:3},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:"#fff",border:"2px solid currentColor","&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"inherit"},"&::before":{display:"none"},boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},"& .MuiSlider-valueLabel":{lineHeight:1.2,fontSize:12,background:"unset",padding:0,width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:e.palette.primary.main,transformOrigin:"bottom left",transform:"translate(50%, -100%) rotate(-45deg) scale(0)","&::before":{display:"none"},"&.MuiSlider-valueLabelOpen":{transform:"translate(50%, -100%) rotate(-45deg) scale(1)"},"& > *":{transform:"rotate(45deg)"}},"& .MuiSlider-mark":{backgroundColor:"#bfbfbf",height:8,width:1,"&.MuiSlider-markActive":{opacity:1,backgroundColor:"currentColor"}}})),hp=({etiqueta:e,textoAyuda:t,valor:n,minimo:r=0,maximo:a=100,paso:i=1,marcas:s,mostrarEtiquetaValor:l="auto",orientacion:c="horizontal",color:u="primario",alCambiar:d,tamano:f,className:y,sx:x,...h})=>{const p=O=>O==="primario"?"primary":O==="secundario"?"secondary":O==="exito"?"success":O==="error"?"error":O==="info"?"info":O==="advertencia"?"warning":"primary",b=O=>O==="siempre"?"on":O==="nunca"?"off":"auto",v=c==="vertical"?{height:300}:{};return m.jsxs(Ue,{sx:{width:"100%",...v,...x},className:y,children:[e&&m.jsx(at,{gutterBottom:!0,variant:"subtitle2",sx:{fontWeight:600,mb:1},children:e}),m.jsx(hT,{value:n,min:r,max:a,step:i,marks:s,valueLabelDisplay:b(l),orientation:c,color:p(u),onChange:d,size:f,...h}),t&&m.jsx(at,{variant:"caption",color:"text.secondary",sx:{mt:.5,display:"block"},children:t})]})},bT=hp,yT=D(ep)(({theme:e})=>({width:44,height:24,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:22}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(20px)",color:"#fff","& + .MuiSwitch-track":{opacity:1}}},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorPrimary + .MuiSwitch-track":{backgroundColor:e.palette.primary.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorSecondary + .MuiSwitch-track":{backgroundColor:e.palette.secondary.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorSuccess + .MuiSwitch-track":{backgroundColor:e.palette.success.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorError + .MuiSwitch-track":{backgroundColor:e.palette.error.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorWarning + .MuiSwitch-track":{backgroundColor:e.palette.warning.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorInfo + .MuiSwitch-track":{backgroundColor:e.palette.info.main},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgba(0,0,0,0.2)",width:20,height:20,borderRadius:10,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:24/2,opacity:1,backgroundColor:e.palette.mode==="dark"?"rgba(255,255,255,.35)":"rgba(0,0,0,.25)",boxSizing:"border-box"}})),bp=({etiqueta:e,posicionEtiqueta:t="fin",tamano:n="mediano",seleccionado:r,porDefectoSeleccionado:a,alCambiar:i,color:s="primario",deshabilitado:l,error:c,mensajeError:u,sx:d,className:f,...y})=>{const x=v=>v==="primario"?"primary":v==="secundario"?"secondary":v==="exito"?"success":v==="error"?"error":v==="advertencia"?"warning":v==="info"?"info":"primary",h=v=>v==="pequeno"?"small":"medium",p=v=>v==="inicio"?"start":v==="fin"?"end":v==="arriba"?"top":v==="abajo"?"bottom":"end",b=m.jsx(yT,{checked:r,defaultChecked:a,onChange:i,disabled:l,size:h(n),color:x(s),disableRipple:!0,sx:{...c&&{"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:v=>v.palette.error.main}},...d},className:f,...y});return e?m.jsxs(Ue,{sx:{display:"inline-flex",flexDirection:"column"},children:[m.jsx(Va,{control:b,label:e,labelPlacement:p(t),sx:{margin:0,gap:1,"& .MuiTypography-root":{fontSize:n==="pequeno"?"0.875rem":"1rem",fontWeight:500,color:l?"text.disabled":c?"error.main":"text.primary"}}}),c&&u&&m.jsx(Ue,{sx:{color:"error.main",fontSize:"0.75rem",mt:.5,ml:t==="inicio"?0:1},children:u})]}):b},vT=bp,xT=D(Rn)(({theme:e})=>({"& .MuiOutlinedInput-root":{borderRadius:12,transition:"background-color 0.2s, border-color 0.2s, box-shadow 0.2s",backgroundColor:e.palette.mode==="dark"?ve(e.palette.common.white,.03):ve(e.palette.common.black,.01),"& fieldset":{borderColor:e.palette.mode==="dark"?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.12)",transition:"border-color 0.2s, border-width 0.2s, box-shadow 0.2s"},"&:hover":{backgroundColor:e.palette.mode==="dark"?ve(e.palette.common.white,.05):ve(e.palette.common.black,.02)},"&:hover fieldset":{borderColor:e.palette.primary.main,borderWidth:1},"&.Mui-focused":{backgroundColor:e.palette.mode==="dark"?ve(e.palette.primary.main,.05):ve(e.palette.primary.main,.02)},"&.Mui-focused fieldset":{borderWidth:2,borderColor:e.palette.primary.main,boxShadow:`0 0 0 4px ${ve(e.palette.primary.main,.1)}`},"&.Mui-error fieldset":{borderColor:e.palette.error.main},"&.Mui-error.Mui-focused":{backgroundColor:e.palette.mode==="dark"?ve(e.palette.error.main,.05):ve(e.palette.error.main,.02)},"&.Mui-error.Mui-focused fieldset":{borderColor:e.palette.error.main,boxShadow:`0 0 0 4px ${ve(e.palette.error.main,.1)}`}},"& .MuiInputBase-input":{padding:"12px 14px",fontWeight:500,"&::placeholder":{opacity:.6}},"& .MuiInputLabel-root":{fontSize:"0.95rem",color:e.palette.text.secondary,"&.Mui-focused":{color:e.palette.primary.main,fontWeight:600},"&.Mui-error":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{marginLeft:14,fontSize:"0.75rem",marginTop:4}})),yp=({etiqueta:e,textoAyuda:t,valor:n,alCambiar:r,deshabilitado:a,soloLectura:i,error:s,mensajeError:l,multilinea:c,filas:u,filasMinimas:d,filasMaximas:f,marcador:y,anchoCompleto:x,tipo:h,iconoInicio:p,iconoFin:b,alEnfocar:v,alDesenfocar:O,InputProps:T,sx:C,...S})=>{const E=s&&l?l:t;return m.jsx(xT,{variant:"outlined",label:e,helperText:E,value:n,onChange:r,disabled:a,error:s,multiline:c,rows:u,minRows:d,maxRows:f,placeholder:y,fullWidth:x,type:h,onFocus:v,onBlur:O,sx:{my:1,...C},InputProps:{readOnly:i,startAdornment:p?m.jsx(tn,{position:"start",children:p}):void 0,endAdornment:b?m.jsx(tn,{position:"end",children:b}):void 0,...T},...S})},CT=yp,wT=lt(m.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"}),"ArrowForwardRounded"),TT=lt(m.jsx("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1"}),"ArrowBackRounded"),ST=D(Ss)(({theme:e})=>({borderRadius:16,border:`1px solid ${e.palette.divider}`,boxShadow:e.shadows[1],overflow:"hidden",height:"100%",display:"flex",flexDirection:"column",flex:1,transition:"box-shadow 0.3s ease, border-color 0.3s ease","&:hover":{boxShadow:e.shadows[4],borderColor:e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[700]}})),OT=D(yd)(({theme:e})=>({padding:e.spacing(2),backgroundColor:e.palette.mode==="light"?e.palette.grey[50]:ve(e.palette.common.white,.05),borderBottom:`1px solid ${e.palette.divider}`,"& .MuiCardHeader-title":{fontSize:"1rem",fontWeight:700,color:e.palette.text.primary},"& .MuiCardHeader-subheader":{fontSize:"0.875rem",marginTop:2}})),ET=D(Ue)(({theme:e})=>({width:"100%",height:"100%",backgroundColor:e.palette.background.paper,overflow:"auto","&::-webkit-scrollbar":{width:6},"&::-webkit-scrollbar-thumb":{backgroundColor:e.palette.action.hover,borderRadius:3},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"}})),Wc=D(bs)(({theme:e})=>({borderRadius:12,minWidth:44,height:44,border:`1px solid ${e.palette.divider}`,color:e.palette.text.secondary,backgroundColor:e.palette.background.paper,transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{backgroundColor:e.palette.primary.main,borderColor:"transparent",color:e.palette.common.white,boxShadow:e.shadows[4],transform:"translateY(-2px) scale(1.05)"},"&.Mui-disabled":{border:`1px solid ${e.palette.action.disabledBackground}`,backgroundColor:"transparent",transform:"none",boxShadow:"none"}})),kT=D(Rn)(({theme:e})=>({"& .MuiOutlinedInput-root":{borderRadius:0,border:"none",backgroundColor:"transparent","& fieldset":{border:"none"},"&.Mui-focused":{boxShadow:"none"}},"& .MuiInputBase-input":{padding:e.spacing(1.5,2),fontSize:"0.875rem"}}));function gn(e,t){return e.filter(n=>t.indexOf(n)===-1)}function xi(e,t){return e.filter(n=>t.indexOf(n)!==-1)}function PT(e,t){return[...e,...gn(t,e)]}const vp=({izquierda:e=[],derecha:t=[],alCambiar:n,tituloIzquierda:r="Opciones",tituloDerecha:a="Elegidos",alto:i=320,buscable:s=!1,deshabilitado:l=!1})=>{const[c,u]=Re.useState([]),[d,f]=Re.useState(""),[y,x]=Re.useState(""),h=xi(c,e),p=xi(c,t),b=Re.useMemo(()=>!s||!d?e:e.filter($=>$.etiqueta.toLowerCase().includes(d.toLowerCase())),[e,d,s]),v=Re.useMemo(()=>!s||!y?t:t.filter($=>$.etiqueta.toLowerCase().includes(y.toLowerCase())),[t,y,s]),O=$=>()=>{if(l||$.deshabilitado)return;const I=c.indexOf($),N=[...c];I===-1?N.push($):N.splice(I,1),u(N)},T=$=>xi(c,$).length,C=$=>()=>{if(l)return;const I=$.filter(N=>!N.deshabilitado);T(I)===I.length&&I.length!==0?u(gn(c,I)):u(PT(c,I))},S=()=>{n&&(n(gn(e,h),t.concat(h)),u(gn(c,h)))},E=()=>{n&&(n(e.concat(p),gn(t,p)),u(gn(c,p)))},P=($,I,N,A)=>{const g=I.filter(M=>!M.deshabilitado),j=T(g)===g.length&&g.length!==0,R=T(g)!==g.length&&T(g)!==0;return m.jsxs(ST,{children:[m.jsx(OT,{avatar:m.jsx(oa,{onClick:C(I),checked:j,indeterminate:R,disabled:g.length===0||l,inputProps:{"aria-label":"todos los elementos seleccionados"},size:"small",sx:{color:"text.secondary","&.Mui-checked":{color:"primary.main"}}}),title:$,subheader:m.jsxs(at,{variant:"caption",color:"text.secondary",sx:{fontWeight:500},children:[T(I)," seleccionados"]})}),s&&m.jsxs(m.Fragment,{children:[m.jsx(ur,{}),m.jsx(kT,{placeholder:"Buscar...",fullWidth:!0,disabled:l,value:N,onChange:M=>A(M.target.value),InputProps:{startAdornment:m.jsx(tn,{position:"start",children:m.jsx(mp,{color:"action",fontSize:"small"})})}}),m.jsx(ur,{})]}),m.jsx(ET,{sx:{height:i},children:m.jsxs(_s,{dense:!0,component:"div",role:"list",sx:{py:1},children:[I.length===0&&m.jsx(Ue,{sx:{p:4,textAlign:"center",opacity:.5},children:m.jsx(at,{variant:"caption",children:"No hay elementos"})}),I.map(M=>{const k=`transfer-list-all-item-${M.id}-label`,z=c.indexOf(M)!==-1,F=l||M.deshabilitado;return m.jsx(Pd,{disablePadding:!0,sx:{mb:.5,px:1},children:m.jsxs(kd,{role:"listitem",onClick:O(M),disabled:F,selected:z,sx:{borderRadius:2,transition:"all 0.2s","&:hover":{backgroundColor:_=>F?void 0:ve(_.palette.primary.main,.08)},"&.Mui-selected":{backgroundColor:_=>ve(_.palette.primary.main,.12),"&:hover":{backgroundColor:_=>ve(_.palette.primary.main,.16)}}},children:[m.jsx(Rd,{sx:{minWidth:40},children:m.jsx(oa,{checked:z,tabIndex:-1,disableRipple:!0,disabled:F,inputProps:{"aria-labelledby":k},size:"small",edge:"start"})}),m.jsx($d,{id:k,primary:M.etiqueta,primaryTypographyProps:{fontWeight:z?600:400,color:z&&!F?"primary.main":"text.primary"}})]})},M.id)})]})})]})};return m.jsxs(Xi,{direction:{xs:"column",md:"row"},spacing:3,justifyContent:"center",alignItems:"center",children:[m.jsx(Ue,{sx:{width:{xs:"100%",md:"42%"}},children:P(r,b,d,f)}),m.jsx(Ue,{children:m.jsxs(Xi,{direction:"column",spacing:2,children:[m.jsx(Wc,{onClick:S,disabled:h.length===0||l,"aria-label":"mover seleccionados a la derecha",children:m.jsx(wT,{fontSize:"small"})}),m.jsx(Wc,{onClick:E,disabled:p.length===0||l,"aria-label":"mover seleccionados a la izquierda",children:m.jsx(TT,{fontSize:"small"})})]})}),m.jsx(Ue,{sx:{width:{xs:"100%",md:"42%"}},children:P(a,v,y,x)})]})},RT=vp,$T=({children:e,PaperProps:t,...n})=>{const r=xt();return m.jsx(xd,{PaperProps:{elevation:24,sx:{borderRadius:3,backgroundImage:"none",backgroundColor:r.palette.background.paper,...t?.sx},...t},...n,children:e})},IT=({sx:e,children:t,...n})=>m.jsx(Sd,{sx:{fontWeight:700,fontSize:"1.25rem",pb:1,...e},...n,children:t}),jT=({sx:e,children:t,...n})=>m.jsx(wd,{sx:{py:2,...e},...n,children:t}),MT=({sx:e,children:t,...n})=>m.jsx(Td,{sx:{mb:2,color:"text.secondary",...e},...n,children:t}),NT=({sx:e,children:t,...n})=>m.jsx(Cd,{sx:{px:3,pb:3,gap:1,...e},...n,children:t});exports.CodeplexAlert=Sy;exports.CodeplexAlerta=od;exports.CodeplexAutocompletado=lp;exports.CodeplexAutocomplete=tT;exports.CodeplexAvatar=$b;exports.CodeplexAvatarGroup=Rb;exports.CodeplexAvatarUsuario=Wu;exports.CodeplexAviso=ed;exports.CodeplexAyudaEntrada=ap;exports.CodeplexBadge=Qh;exports.CodeplexBanner=ty;exports.CodeplexBoton=ys;exports.CodeplexButton=Hh;exports.CodeplexCampoNumero=dp;exports.CodeplexCampoTexto=yp;exports.CodeplexCard=Zb;exports.CodeplexCargando=zu;exports.CodeplexCasilla=Js;exports.CodeplexCheckbox=aT;exports.CodeplexDeslizador=hp;exports.CodeplexDialogo=$T;exports.CodeplexDialogoAcciones=NT;exports.CodeplexDialogoContenido=jT;exports.CodeplexDialogoTexto=MT;exports.CodeplexDialogoTitulo=IT;exports.CodeplexElementoMenu=vn;exports.CodeplexEncabezadoPrincipal=Qu;exports.CodeplexEsqueleto=ip;exports.CodeplexEtiquetaInteligente=qu;exports.CodeplexGrupoAvatares=Uu;exports.CodeplexGrupoBotones=nT;exports.CodeplexGrupoFormulario=Ds;exports.CodeplexGrupoRadio=fp;exports.CodeplexInputHelper=Jw;exports.CodeplexInsignia=Fu;exports.CodeplexInterruptor=bp;exports.CodeplexJumbotron=Qb;exports.CodeplexKbd=lb;exports.CodeplexListaTransferencia=vp;exports.CodeplexMensajeEmergente=op;exports.CodeplexNotificacion=Xs;exports.CodeplexNumberField=cT;exports.CodeplexPopupRequisitos=ws;exports.CodeplexProgreso=np;exports.CodeplexProgress=Gw;exports.CodeplexRadio=Zs;exports.CodeplexRadioGroup=dT;exports.CodeplexRating=Xw;exports.CodeplexRequirementsPopup=Ib;exports.CodeplexSelect=gT;exports.CodeplexSelector=gp;exports.CodeplexSkeleton=Qw;exports.CodeplexSlider=bT;exports.CodeplexSmartLabel=jb;exports.CodeplexSpinner=sb;exports.CodeplexSubcabeceraLista=En;exports.CodeplexSwitch=vT;exports.CodeplexTarjeta=Zu;exports.CodeplexTeclado=Vu;exports.CodeplexTextField=CT;exports.CodeplexToast=qw;exports.CodeplexTooltip=Ww;exports.CodeplexTostada=Hw;exports.CodeplexTransferList=RT;exports.CodeplexValoracion=rp;exports.EntradaOcultaVisualmente=Uh;exports.Ui=wp;exports.avatarCadena=Hu;exports.stringAvatar=Pb;
|
|
316
|
+
`;const cy=D(Oi)(({theme:e,colorBase:o})=>({backgroundColor:o||(e.palette.mode==="dark"?le.alpha(e.palette.common.white,.08):le.alpha(e.palette.common.black,.06)),borderRadius:8,"&.MuiSkeleton-text":{marginBottom:4,marginTop:0,borderRadius:4}})),od=({variante:e="texto",ancho:o,alto:n,animacion:r="pulso",colorBase:a,className:i,...s})=>{const l=d=>d==="texto"?"text":d==="rectangular"?"rectangular":d==="redondeado"?"rounded":d==="circular"?"circular":"text",c=d=>d==="pulso"?"pulse":d==="ola"?"wave":d===!1?!1:"pulse";return u.jsx(cy,{variant:l(e),width:o,height:n,animation:c(r),colorBase:a,className:i,...s})},dy=od;function nl({array1:e,array2:o,parser:n=r=>r}){return e&&o&&e.length===o.length&&e.every((r,a)=>n(r)===n(o[a]))}function rl(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function py(e={}){const{ignoreAccents:o=!0,ignoreCase:n=!0,limit:r,matchFrom:a="any",stringify:i,trim:s=!1}=e;return(l,{inputValue:c,getOptionLabel:d})=>{let p=s?c.trim():c;n&&(p=p.toLowerCase()),o&&(p=rl(p));const g=p?l.filter(b=>{let v=(i||d)(b);return n&&(v=v.toLowerCase()),o&&(v=rl(v)),a==="start"?v.startsWith(p):v.includes(p)}):l;return typeof r=="number"?g.slice(0,r):g}}const uy=py(),al=5,fy=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),my=[];function il(e,o,n,r){if(o||e==null||r)return"";const a=n(e);return typeof a=="string"?a:""}function gy(e){const{unstable_isActiveElementInListbox:o=fy,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:a=!1,autoSelect:i=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:p=e.multiple?my:null,disableClearable:g=!1,disableCloseOnSelect:b=!1,disabled:v,disabledItemsFocusable:h=!1,disableListWrap:f=!1,filterOptions:y=uy,filterSelectedOptions:C=!1,freeSolo:O=!1,getOptionDisabled:S,getOptionKey:x,getOptionLabel:T=G=>G.label??G,groupBy:E,handleHomeEndKeys:j=!e.freeSolo,id:R,includeInputInList:I=!1,inputValue:N,isOptionEqualToValue:A=(G,H)=>G===H,multiple:m=!1,onChange:$,onClose:P,onHighlightChange:M,onInputChange:k,onOpen:z,open:V,openOnFocus:W=!1,options:B,readOnly:L=!1,renderValue:Y,selectOnFocus:Z=!e.freeSolo,value:oe}=e,K=uo(R);let U=T;U=G=>{const H=T(G);if(typeof H!="string"){if(process.env.NODE_ENV!=="production"){const fe=H===void 0?"undefined":`${typeof H} (${H})`;console.error(`MUI: The \`getOptionLabel\` method of ${d} returned ${fe} instead of a string for ${JSON.stringify(G)}.`)}return String(H)}return H};const ae=w.useRef(!1),ce=w.useRef(!0),J=w.useRef(null),X=w.useRef(null),[de,_]=w.useState(null),[se,ie]=w.useState(-1),pe=a?0:-1,ke=w.useRef(pe),Ee=w.useRef(il(p??oe,m,U)).current,[ee,De]=Qt({controlled:oe,default:p,name:d}),[Se,he]=Qt({controlled:N,default:Ee,name:d,state:"inputValue"}),[ne,ze]=w.useState(!1),Me=w.useCallback((G,H,fe)=>{if(!(m?ee.length<H.length:H!==null)&&!l)return;const $e=il(H,m,U,Y);Se!==$e&&(he($e),k&&k(G,$e,fe))},[U,Se,m,k,he,l,ee,Y]),[te,Q]=Qt({controlled:V,default:!1,name:d,state:"open"}),[be,Oe]=w.useState(!0),Pe=!m&&ee!=null&&Se===U(ee),ve=te&&!L,ue=ve?y(B.filter(G=>!(C&&(m?ee:[ee]).some(H=>H!==null&&A(G,H)))),{inputValue:Pe&&be?"":Se,getOptionLabel:U}):[],Ve=Si({filteredOptions:ue,value:ee,inputValue:Se});w.useEffect(()=>{const G=ee!==Ve.value;ne&&!G||O&&!G||Me(null,ee,"reset")},[ee,Me,ne,Ve.value,O]);const Ne=te&&ue.length>0&&!L,We=bt(G=>{if(G===-1)J.current.focus();else{const H=Y?"data-item-index":"data-tag-index";de.querySelector(`[${H}="${G}"]`).focus()}});w.useEffect(()=>{m&&se>ee.length-1&&(ie(-1),We(-1))},[ee,m,se,We]);function Ot(G,H){if(!X.current||G<0||G>=ue.length)return-1;let fe=G;for(;;){const Ie=X.current.querySelector(`[data-option-index="${fe}"]`),$e=h?!1:!Ie||Ie.disabled||Ie.getAttribute("aria-disabled")==="true";if(Ie&&Ie.hasAttribute("tabindex")&&!$e)return fe;if(H==="next"?fe=(fe+1)%ue.length:fe=(fe-1+ue.length)%ue.length,fe===G)return-1}}const vt=bt(({event:G,index:H,reason:fe})=>{if(ke.current=H,H===-1?J.current.removeAttribute("aria-activedescendant"):J.current.setAttribute("aria-activedescendant",`${K}-option-${H}`),M&&["mouse","keyboard","touch"].includes(fe)&&M(G,H===-1?null:ue[H],fe),!X.current)return;const Ie=X.current.querySelector(`[role="option"].${n}-focused`);Ie&&(Ie.classList.remove(`${n}-focused`),Ie.classList.remove(`${n}-focusVisible`));let $e=X.current;if(X.current.getAttribute("role")!=="listbox"&&($e=X.current.parentElement.querySelector('[role="listbox"]')),!$e)return;if(H===-1){$e.scrollTop=0;return}const rt=X.current.querySelector(`[data-option-index="${H}"]`);if(rt&&(rt.classList.add(`${n}-focused`),fe==="keyboard"&&rt.classList.add(`${n}-focusVisible`),$e.scrollHeight>$e.clientHeight&&fe!=="mouse"&&fe!=="touch")){const dt=rt,Rt=$e.clientHeight+$e.scrollTop,Uo=dt.offsetTop+dt.offsetHeight;Uo>Rt?$e.scrollTop=Uo-$e.clientHeight:dt.offsetTop-dt.offsetHeight*(E?1.3:0)<$e.scrollTop&&($e.scrollTop=dt.offsetTop-dt.offsetHeight*(E?1.3:0))}}),ut=bt(({event:G,diff:H,direction:fe="next",reason:Ie})=>{if(!ve)return;const rt=Ot((()=>{const dt=ue.length-1;if(H==="reset")return pe;if(H==="start")return 0;if(H==="end")return dt;const Rt=ke.current+H;return Rt<0?Rt===-1&&I?-1:f&&ke.current!==-1||Math.abs(H)>1?0:dt:Rt>dt?Rt===dt+1&&I?-1:f||Math.abs(H)>1?dt:0:Rt})(),fe);if(vt({index:rt,reason:Ie,event:G}),r&&H!=="reset")if(rt===-1)J.current.value=Se;else{const dt=U(ue[rt]);J.current.value=dt,dt.toLowerCase().indexOf(Se.toLowerCase())===0&&Se.length>0&&J.current.setSelectionRange(Se.length,dt.length)}}),ye=!nl({array1:Ve.filteredOptions,array2:ue,parser:U}),Ae=()=>{const G=(H,fe)=>{const Ie=H?U(H):"",$e=fe?U(fe):"";return Ie===$e};if(ke.current!==-1&&!nl({array1:Ve.filteredOptions,array2:ue,parser:U})&&Ve.inputValue===Se&&(m?ee.length===Ve.value.length&&Ve.value.every((H,fe)=>U(ee[fe])===U(H)):G(Ve.value,ee))){const H=Ve.filteredOptions[ke.current];if(H)return ue.findIndex(fe=>U(fe)===U(H))}return-1},Xe=w.useCallback(()=>{if(!ve)return;const G=Ae();if(G!==-1){ke.current=G;return}const H=m?ee[0]:ee;if(ue.length===0||H==null){ut({diff:"reset"});return}if(X.current){if(H!=null){const fe=ue[ke.current];if(m&&fe&&ee.findIndex($e=>A(fe,$e))!==-1)return;const Ie=ue.findIndex($e=>A($e,H));Ie===-1?ut({diff:"reset"}):vt({index:Ie});return}if(ke.current>=ue.length-1){vt({index:ue.length-1});return}vt({index:ke.current})}},[ue.length,m?!1:ee,ut,vt,ve,Se,m]),gt=bt(G=>{Ua(X,G),G&&Xe()});process.env.NODE_ENV!=="production"&&w.useEffect(()=>{(!J.current||J.current.nodeName!=="INPUT")&&(J.current&&J.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${d} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
317
|
+
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${J.current} while an HTMLInputElement was expected.`,`Instead, ${d} expects an input element.`,"",d==="useAutocomplete"?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join(`
|
|
318
|
+
`)))},[d]),w.useEffect(()=>{(ye||ve)&&Xe()},[Xe,ye,ve]);const _e=G=>{te||(Q(!0),Oe(!0),z&&z(G))},tt=(G,H)=>{te&&(Q(!1),P&&P(G,H))},Et=(G,H,fe,Ie)=>{if(m){if(ee.length===H.length&&ee.every(($e,rt)=>$e===H[rt]))return}else if(ee===H)return;$&&$(G,H,fe,Ie),De(H)},wt=w.useRef(!1),ft=(G,H,fe="selectOption",Ie="options")=>{let $e=fe,rt=H;if(m){if(rt=Array.isArray(ee)?ee.slice():[],process.env.NODE_ENV!=="production"){const Rt=rt.filter(Uo=>A(H,Uo));Rt.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${d} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${Rt.length} matches.`].join(`
|
|
319
|
+
`))}const dt=rt.findIndex(Rt=>A(H,Rt));dt===-1?rt.push(H):Ie!=="freeSolo"&&(rt.splice(dt,1),$e="removeOption")}Me(G,rt,$e),Et(G,rt,$e,{option:H}),!b&&(!G||!G.ctrlKey&&!G.metaKey)&&tt(G,$e),(s===!0||s==="touch"&&wt.current||s==="mouse"&&!wt.current)&&J.current.blur()};function je(G,H){if(G===-1)return-1;let fe=G;for(;;){if(H==="next"&&fe===ee.length||H==="previous"&&fe===-1)return-1;const Ie=Y?"data-item-index":"data-tag-index",$e=de.querySelector(`[${Ie}="${fe}"]`);if(!$e||!$e.hasAttribute("tabindex")||$e.disabled||$e.getAttribute("aria-disabled")==="true")fe+=H==="next"?1:-1;else return fe}}const St=(G,H)=>{if(!m)return;Se===""&&tt(G,"toggleInput");let fe=se;se===-1?Se===""&&H==="previous"&&(fe=ee.length-1):(fe+=H==="next"?1:-1,fe<0&&(fe=0),fe===ee.length&&(fe=-1)),fe=je(fe,H),ie(fe),We(fe)},tr=G=>{ae.current=!0,he(""),k&&k(G,"","clear"),Et(G,m?[]:null,"clear")},ua=G=>H=>{if(G.onKeyDown&&G.onKeyDown(H),!H.defaultMuiPrevented&&(se!==-1&&!["ArrowLeft","ArrowRight"].includes(H.key)&&(ie(-1),We(-1)),H.which!==229))switch(H.key){case"Home":ve&&j&&(H.preventDefault(),ut({diff:"start",direction:"next",reason:"keyboard",event:H}));break;case"End":ve&&j&&(H.preventDefault(),ut({diff:"end",direction:"previous",reason:"keyboard",event:H}));break;case"PageUp":H.preventDefault(),ut({diff:-al,direction:"previous",reason:"keyboard",event:H}),_e(H);break;case"PageDown":H.preventDefault(),ut({diff:al,direction:"next",reason:"keyboard",event:H}),_e(H);break;case"ArrowDown":H.preventDefault(),ut({diff:1,direction:"next",reason:"keyboard",event:H}),_e(H);break;case"ArrowUp":H.preventDefault(),ut({diff:-1,direction:"previous",reason:"keyboard",event:H}),_e(H);break;case"ArrowLeft":!m&&Y&&ee!=null?(ie(0),We(0)):St(H,"previous");break;case"ArrowRight":!m&&Y?(ie(-1),We(-1)):St(H,"next");break;case"Enter":if(ke.current!==-1&&ve){const fe=ue[ke.current],Ie=S?S(fe):!1;if(H.preventDefault(),Ie)return;ft(H,fe,"selectOption"),r&&J.current.setSelectionRange(J.current.value.length,J.current.value.length)}else O&&Se!==""&&Pe===!1&&(m&&H.preventDefault(),ft(H,Se,"createOption","freeSolo"));break;case"Escape":ve?(H.preventDefault(),H.stopPropagation(),tt(H,"escape")):c&&(Se!==""||m&&ee.length>0||Y)&&(H.preventDefault(),H.stopPropagation(),tr(H));break;case"Backspace":if(m&&!L&&Se===""&&ee.length>0){const fe=se===-1?ee.length-1:se,Ie=ee.slice();Ie.splice(fe,1),Et(H,Ie,"removeOption",{option:ee[fe]})}!m&&Y&&!L&&(De(null),ie(-1),We(-1));break;case"Delete":if(m&&!L&&Se===""&&ee.length>0&&se!==-1){const fe=se,Ie=ee.slice();Ie.splice(fe,1),Et(H,Ie,"removeOption",{option:ee[fe]})}!m&&Y&&!L&&(De(null),ie(-1),We(-1));break}},_o=G=>{ze(!0),se!==-1&&(ie(-1),We(-1)),W&&!ae.current&&_e(G)},Wo=G=>{if(o(X)){J.current.focus();return}ze(!1),ce.current=!0,ae.current=!1,i&&ke.current!==-1&&ve?ft(G,ue[ke.current],"blur"):i&&O&&Se!==""?ft(G,Se,"blur","freeSolo"):l&&Me(G,ee,"blur"),tt(G,"blur")},hn=G=>{const H=G.target.value;Se!==H&&(he(H),Oe(!1),k&&k(G,H,"input")),H===""?!g&&!m&&Et(G,null,"clear"):_e(G)},fa=G=>{const H=Number(G.currentTarget.getAttribute("data-option-index"));ke.current!==H&&vt({event:G,index:H,reason:"mouse"})},ma=G=>{vt({event:G,index:Number(G.currentTarget.getAttribute("data-option-index")),reason:"touch"}),wt.current=!0},ga=G=>{const H=Number(G.currentTarget.getAttribute("data-option-index"));ft(G,ue[H],"selectOption"),wt.current=!1},ha=G=>H=>{const fe=ee.slice();fe.splice(G,1),Et(H,fe,"removeOption",{option:ee[G]})},bn=G=>{Et(G,null,"removeOption",{option:ee})},ht=G=>{te?tt(G,"toggleInput"):_e(G)},yt=G=>{G.currentTarget.contains(G.target)&&G.target.getAttribute("id")!==K&&G.preventDefault()},fo=G=>{G.currentTarget.contains(G.target)&&(J.current.focus(),Z&&ce.current&&J.current.selectionEnd-J.current.selectionStart===0&&J.current.select(),ce.current=!1)},ba=G=>{!v&&(Se===""||!te)&&ht(G)};let yn=O&&Se.length>0;yn=yn||(m?ee.length>0:ee!==null);let or=ue;if(E){const G=new Map;let H=!1;or=ue.reduce((fe,Ie,$e)=>{const rt=E(Ie);return fe.length>0&&fe[fe.length-1].group===rt?fe[fe.length-1].options.push(Ie):(process.env.NODE_ENV!=="production"&&(G.get(rt)&&!H&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${d} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),H=!0),G.set(rt,!0)),fe.push({key:$e,index:$e,group:rt,options:[Ie]})),fe},[])}return v&&ne&&Wo(),{getRootProps:(G={})=>({...G,onKeyDown:ua(G),onMouseDown:yt,onClick:fo}),getInputLabelProps:()=>({id:`${K}-label`,htmlFor:K}),getInputProps:()=>({id:K,value:Se,onBlur:Wo,onFocus:_o,onChange:hn,onMouseDown:ba,"aria-activedescendant":ve?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ne?`${K}-listbox`:void 0,"aria-expanded":Ne,autoComplete:"off",ref:J,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:tr}),getItemProps:({index:G=0}={})=>({...m&&{key:G},...Y?{"data-item-index":G}:{"data-tag-index":G},tabIndex:-1,...!L&&{onDelete:m?ha(G):bn}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ht}),getTagProps:({index:G})=>({key:G,"data-tag-index":G,tabIndex:-1,...!L&&{onDelete:ha(G)}}),getListboxProps:()=>({role:"listbox",id:`${K}-listbox`,"aria-labelledby":`${K}-label`,ref:gt,onMouseDown:G=>{G.preventDefault()}}),getOptionProps:({index:G,option:H})=>{const fe=(m?ee:[ee]).some($e=>$e!=null&&A(H,$e)),Ie=S?S(H):!1;return{key:x?.(H)??U(H),tabIndex:-1,role:"option",id:`${K}-option-${G}`,onMouseMove:fa,onClick:ga,onTouchStart:ma,"data-option-index":G,"aria-disabled":Ie,"aria-selected":fe}},id:K,inputValue:Se,value:ee,dirty:yn,expanded:ve&&de,popupOpen:ve,focused:ne||se!==-1,anchorEl:de,setAnchorEl:_,focusedItem:se,focusedTag:se,groupedOptions:or}}function hy(e){return xe("MuiListSubheader",e)}Ce("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const by=e=>{const{classes:o,color:n,disableGutters:r,inset:a,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${F(n)}`,!r&&"gutters",a&&"inset",!i&&"sticky"]};return we(s,hy,o)},yy=D("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.color!=="default"&&o[`color${F(n.color)}`],!n.disableGutters&&o.gutters,n.inset&&o.inset,!n.disableSticky&&o.sticky]}})(me(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:o})=>o.inset,style:{paddingLeft:72}},{props:({ownerState:o})=>!o.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),fn=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiListSubheader"}),{className:a,color:i="default",component:s="li",disableGutters:l=!1,disableSticky:c=!1,inset:d=!1,...p}=r,g={...r,color:i,component:s,disableGutters:l,disableSticky:c,inset:d},b=by(g);return u.jsx(yy,{as:s,className:re(b.root,a),ref:n,ownerState:g,...p})});fn&&(fn.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(fn.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOf(["default","inherit","primary"]),component:t.elementType,disableGutters:t.bool,disableSticky:t.bool,inset:t.bool,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});const vy=st(u.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function xy(e){return xe("MuiChip",e)}const Fe=Ce("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Cy=e=>{const{classes:o,disabled:n,size:r,color:a,iconColor:i,onDelete:s,clickable:l,variant:c}=e,d={root:["root",c,n&&"disabled",`size${F(r)}`,`color${F(a)}`,l&&"clickable",l&&`clickableColor${F(a)}`,s&&"deletable",s&&`deletableColor${F(a)}`,`${c}${F(a)}`],label:["label",`label${F(r)}`],avatar:["avatar",`avatar${F(r)}`,`avatarColor${F(a)}`],icon:["icon",`icon${F(r)}`,`iconColor${F(i)}`],deleteIcon:["deleteIcon",`deleteIcon${F(r)}`,`deleteIconColor${F(a)}`,`deleteIcon${F(c)}Color${F(a)}`]};return we(d,xy,o)},wy=D("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e,{color:r,iconColor:a,clickable:i,onDelete:s,size:l,variant:c}=n;return[{[`& .${Fe.avatar}`]:o.avatar},{[`& .${Fe.avatar}`]:o[`avatar${F(l)}`]},{[`& .${Fe.avatar}`]:o[`avatarColor${F(r)}`]},{[`& .${Fe.icon}`]:o.icon},{[`& .${Fe.icon}`]:o[`icon${F(l)}`]},{[`& .${Fe.icon}`]:o[`iconColor${F(a)}`]},{[`& .${Fe.deleteIcon}`]:o.deleteIcon},{[`& .${Fe.deleteIcon}`]:o[`deleteIcon${F(l)}`]},{[`& .${Fe.deleteIcon}`]:o[`deleteIconColor${F(r)}`]},{[`& .${Fe.deleteIcon}`]:o[`deleteIcon${F(c)}Color${F(r)}`]},o.root,o[`size${F(l)}`],o[`color${F(r)}`],i&&o.clickable,i&&r!=="default"&&o[`clickableColor${F(r)}`],s&&o.deletable,s&&r!=="default"&&o[`deletableColor${F(r)}`],o[c],o[`${c}${F(r)}`]]}})(me(({theme:e})=>{const o=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Fe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Fe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:o,fontSize:e.typography.pxToRem(12)},[`& .${Fe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Fe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Fe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Fe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Fe.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Fe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Fe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(qe(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Fe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Fe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:o}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Fe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Fe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(qe(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Fe.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Fe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(qe(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Fe.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Fe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Fe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Fe.avatar}`]:{marginLeft:4},[`& .${Fe.avatarSmall}`]:{marginLeft:2},[`& .${Fe.icon}`]:{marginLeft:4},[`& .${Fe.iconSmall}`]:{marginLeft:2},[`& .${Fe.deleteIcon}`]:{marginRight:5},[`& .${Fe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(qe()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${Fe.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Fe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Fe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Sy=D("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:n}=e,{size:r}=n;return[o.label,o[`label${F(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function sl(e){return e.key==="Backspace"||e.key==="Delete"}const Qr=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiChip"}),{avatar:a,className:i,clickable:s,color:l="default",component:c,deleteIcon:d,disabled:p=!1,icon:g,label:b,onClick:v,onDelete:h,onKeyDown:f,onKeyUp:y,size:C="medium",variant:O="filled",tabIndex:S,skipFocusWhenDisabled:x=!1,slots:T={},slotProps:E={},...j}=r,R=w.useRef(null),I=ot(R,n),N=U=>{U.stopPropagation(),h&&h(U)},A=U=>{U.currentTarget===U.target&&sl(U)&&U.preventDefault(),f&&f(U)},m=U=>{U.currentTarget===U.target&&h&&sl(U)&&h(U),y&&y(U)},$=s!==!1&&v?!0:s,P=$||h?lo:c||"div",M={...r,component:P,disabled:p,size:C,color:l,iconColor:w.isValidElement(g)&&g.props.color||l,onDelete:!!h,clickable:$,variant:O},k=Cy(M),z=P===lo?{component:c||"div",focusVisibleClassName:k.focusVisible,...h&&{disableRipple:!0}}:{};let V=null;h&&(V=d&&w.isValidElement(d)?w.cloneElement(d,{className:re(d.props.className,k.deleteIcon),onClick:N}):u.jsx(vy,{className:k.deleteIcon,onClick:N}));let W=null;a&&w.isValidElement(a)&&(W=w.cloneElement(a,{className:re(k.avatar,a.props.className)}));let B=null;g&&w.isValidElement(g)&&(B=w.cloneElement(g,{className:re(k.icon,g.props.className)})),process.env.NODE_ENV!=="production"&&W&&B&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const L={slots:T,slotProps:E},[Y,Z]=ge("root",{elementType:wy,externalForwardedProps:{...L,...j},ownerState:M,shouldForwardComponentProp:!0,ref:I,className:re(k.root,i),additionalProps:{disabled:$&&p?!0:void 0,tabIndex:x&&p?-1:S,...z},getSlotProps:U=>({...U,onClick:ae=>{U.onClick?.(ae),v?.(ae)},onKeyDown:ae=>{U.onKeyDown?.(ae),A(ae)},onKeyUp:ae=>{U.onKeyUp?.(ae),m(ae)}})}),[oe,K]=ge("label",{elementType:Sy,externalForwardedProps:L,ownerState:M,className:k.label});return u.jsxs(Y,{as:P,...Z,children:[W||B,u.jsx(oe,{...K,children:b}),V]})});process.env.NODE_ENV!=="production"&&(Qr.propTypes={avatar:t.element,children:Of,classes:t.object,className:t.string,clickable:t.bool,color:t.oneOfType([t.oneOf(["default","primary","secondary","error","info","success","warning"]),t.string]),component:t.elementType,deleteIcon:t.element,disabled:t.bool,icon:t.element,label:t.node,onClick:t.func,onDelete:t.func,onKeyDown:t.func,onKeyUp:t.func,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),skipFocusWhenDisabled:t.bool,slotProps:t.shape({label:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({label:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),tabIndex:t.number,variant:t.oneOfType([t.oneOf(["filled","outlined"]),t.string])});function dr(e){return parseInt(e,10)||0}const Ty={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Oy(e){for(const o in e)return!1;return!0}function ll(e){return Oy(e)||e.outerHeightStyle===0&&!e.overflowing}const nd=w.forwardRef(function(o,n){const{onChange:r,maxRows:a,minRows:i=1,style:s,value:l,...c}=o,{current:d}=w.useRef(l!=null),p=w.useRef(null),g=ot(n,p),b=w.useRef(null),v=w.useRef(null),h=w.useCallback(()=>{const S=p.current,x=v.current;if(!S||!x)return;const E=so(S).getComputedStyle(S);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=E.width,x.value=S.value||o.placeholder||"x",x.value.slice(-1)===`
|
|
320
|
+
`&&(x.value+=" ");const j=E.boxSizing,R=dr(E.paddingBottom)+dr(E.paddingTop),I=dr(E.borderBottomWidth)+dr(E.borderTopWidth),N=x.scrollHeight;x.value="x";const A=x.scrollHeight;let m=N;i&&(m=Math.max(Number(i)*A,m)),a&&(m=Math.min(Number(a)*A,m)),m=Math.max(m,A);const $=m+(j==="border-box"?R+I:0),P=Math.abs(m-N)<=1;return{outerHeightStyle:$,overflowing:P}},[a,i,o.placeholder]),f=bt(()=>{const S=p.current,x=h();if(!S||!x||ll(x))return!1;const T=x.outerHeightStyle;return b.current!=null&&b.current!==T}),y=w.useCallback(()=>{const S=p.current,x=h();if(!S||!x||ll(x))return;const T=x.outerHeightStyle;b.current!==T&&(b.current=T,S.style.height=`${T}px`),S.style.overflow=x.overflowing?"hidden":""},[h]),C=w.useRef(-1);Wt(()=>{const S=rc(y),x=p?.current;if(!x)return;const T=so(x);T.addEventListener("resize",S);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{f()&&(E.unobserve(x),cancelAnimationFrame(C.current),y(),C.current=requestAnimationFrame(()=>{E.observe(x)}))}),E.observe(x)),()=>{S.clear(),cancelAnimationFrame(C.current),T.removeEventListener("resize",S),E&&E.disconnect()}},[h,y,f]),Wt(()=>{y()});const O=S=>{d||y();const x=S.target,T=x.value.length,E=x.value.endsWith(`
|
|
321
|
+
`),j=x.selectionStart===T;E&&j&&x.setSelectionRange(T,T),r&&r(S)};return u.jsxs(w.Fragment,{children:[u.jsx("textarea",{value:l,onChange:O,ref:g,rows:i,style:s,...c}),u.jsx("textarea",{"aria-hidden":!0,className:o.className,readOnly:!0,ref:v,tabIndex:-1,style:{...Ty.shadow,...s,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(nd.propTypes={className:t.string,maxRows:t.oneOfType([t.number,t.string]),minRows:t.oneOfType([t.number,t.string]),onChange:t.func,placeholder:t.string,style:t.object,value:t.oneOfType([t.arrayOf(t.string),t.number,t.string])});function ko({props:e,states:o,muiFormControl:n}){return o.reduce((r,a)=>(r[a]=e[a],n&&typeof e[a]>"u"&&(r[a]=n[a]),r),{})}const er=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(er.displayName="FormControlContext");function Yt(){return w.useContext(er)}function cl(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ir(e,o=!1){return e&&(cl(e.value)&&e.value!==""||o&&cl(e.defaultValue)&&e.defaultValue!=="")}function Ey(e){return e.startAdornment}function ky(e){return xe("MuiInputBase",e)}const Mt=Ce("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var dl;const ea=(e,o)=>{const{ownerState:n}=e;return[o.root,n.formControl&&o.formControl,n.startAdornment&&o.adornedStart,n.endAdornment&&o.adornedEnd,n.error&&o.error,n.size==="small"&&o.sizeSmall,n.multiline&&o.multiline,n.color&&o[`color${F(n.color)}`],n.fullWidth&&o.fullWidth,n.hiddenLabel&&o.hiddenLabel]},ta=(e,o)=>{const{ownerState:n}=e;return[o.input,n.size==="small"&&o.inputSizeSmall,n.multiline&&o.inputMultiline,n.type==="search"&&o.inputTypeSearch,n.startAdornment&&o.inputAdornedStart,n.endAdornment&&o.inputAdornedEnd,n.hiddenLabel&&o.inputHiddenLabel]},Py=e=>{const{classes:o,color:n,disabled:r,error:a,endAdornment:i,focused:s,formControl:l,fullWidth:c,hiddenLabel:d,multiline:p,readOnly:g,size:b,startAdornment:v,type:h}=e,f={root:["root",`color${F(n)}`,r&&"disabled",a&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",b&&b!=="medium"&&`size${F(b)}`,p&&"multiline",v&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",g&&"readOnly"],input:["input",r&&"disabled",h==="search"&&"inputTypeSearch",p&&"inputMultiline",b==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",g&&"readOnly"]};return we(f,ky,o)},oa=D("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ea})(me(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Mt.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:o})=>o.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:o,size:n})=>o.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:o})=>o.fullWidth,style:{width:"100%"}}]}))),na=D("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ta})(me(({theme:e})=>{const o=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Mt.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Mt.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),pl=xf({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ra=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,color:c,components:d={},componentsProps:p={},defaultValue:g,disabled:b,disableInjectingGlobalStyles:v,endAdornment:h,error:f,fullWidth:y=!1,id:C,inputComponent:O="input",inputProps:S={},inputRef:x,margin:T,maxRows:E,minRows:j,multiline:R=!1,name:I,onBlur:N,onChange:A,onClick:m,onFocus:$,onKeyDown:P,onKeyUp:M,placeholder:k,readOnly:z,renderSuffix:V,rows:W,size:B,slotProps:L={},slots:Y={},startAdornment:Z,type:oe="text",value:K,...U}=r,ae=S.value!=null?S.value:K,{current:ce}=w.useRef(ae!=null),J=w.useRef(),X=w.useCallback(ue=>{process.env.NODE_ENV!=="production"&&ue&&ue.nodeName!=="INPUT"&&!ue.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
322
|
+
`))},[]),de=ot(J,x,S.ref,X),[_,se]=w.useState(!1),ie=Yt();process.env.NODE_ENV!=="production"&&w.useEffect(()=>{if(ie)return ie.registerEffect()},[ie]);const pe=ko({props:r,muiFormControl:ie,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=ie?ie.focused:_,w.useEffect(()=>{!ie&&b&&_&&(se(!1),N&&N())},[ie,b,_,N]);const ke=ie&&ie.onFilled,Ee=ie&&ie.onEmpty,ee=w.useCallback(ue=>{Ir(ue)?ke&&ke():Ee&&Ee()},[ke,Ee]);Wt(()=>{ce&&ee({value:ae})},[ae,ee,ce]);const De=ue=>{$&&$(ue),S.onFocus&&S.onFocus(ue),ie&&ie.onFocus?ie.onFocus(ue):se(!0)},Se=ue=>{N&&N(ue),S.onBlur&&S.onBlur(ue),ie&&ie.onBlur?ie.onBlur(ue):se(!1)},he=(ue,...Ve)=>{if(!ce){const Ne=ue.target||J.current;if(Ne==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":oo(1));ee({value:Ne.value})}S.onChange&&S.onChange(ue,...Ve),A&&A(ue,...Ve)};w.useEffect(()=>{ee(J.current)},[]);const ne=ue=>{J.current&&ue.currentTarget===ue.target&&J.current.focus(),m&&m(ue)};let ze=O,Me=S;R&&ze==="input"&&(W?(process.env.NODE_ENV!=="production"&&(j||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Me={type:void 0,minRows:W,maxRows:W,...Me}):Me={type:void 0,maxRows:E,minRows:j,...Me},ze=nd);const te=ue=>{ee(ue.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};w.useEffect(()=>{ie&&ie.setAdornedStart(!!Z)},[ie,Z]);const Q={...r,color:pe.color||"primary",disabled:pe.disabled,endAdornment:h,error:pe.error,focused:pe.focused,formControl:ie,fullWidth:y,hiddenLabel:pe.hiddenLabel,multiline:R,size:pe.size,startAdornment:Z,type:oe},be=Py(Q),Oe=Y.root||d.Root||oa,Pe=L.root||p.root||{},ve=Y.input||d.Input||na;return Me={...Me,...L.input??p.input},u.jsxs(w.Fragment,{children:[!v&&typeof pl=="function"&&(dl||(dl=u.jsx(pl,{}))),u.jsxs(Oe,{...Pe,ref:n,onClick:ne,...U,...!eo(Oe)&&{ownerState:{...Q,...Pe.ownerState}},className:re(be.root,Pe.className,l,z&&"MuiInputBase-readOnly"),children:[Z,u.jsx(er.Provider,{value:null,children:u.jsx(ve,{"aria-invalid":pe.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:g,disabled:pe.disabled,id:C,onAnimationStart:te,name:I,placeholder:k,readOnly:z,required:pe.required,rows:W,value:ae,onKeyDown:P,onKeyUp:M,type:oe,...Me,...!eo(ve)&&{as:ze,ownerState:{...Q,...Me.ownerState}},ref:de,className:re(be.input,Me.className,z&&"MuiInputBase-readOnly"),onBlur:Se,onChange:he,onFocus:De})}),h,V?V({...pe,startAdornment:Z}):null]})]})});process.env.NODE_ENV!=="production"&&(ra.propTypes={"aria-describedby":t.string,autoComplete:t.string,autoFocus:t.bool,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["primary","secondary","error","info","success","warning"]),t.string]),components:t.shape({Input:t.elementType,Root:t.elementType}),componentsProps:t.shape({input:t.object,root:t.object}),defaultValue:t.any,disabled:t.bool,disableInjectingGlobalStyles:t.bool,endAdornment:t.node,error:t.bool,fullWidth:t.bool,id:t.string,inputComponent:Yn,inputProps:t.object,inputRef:Pt,margin:t.oneOf(["dense","none"]),maxRows:t.oneOfType([t.number,t.string]),minRows:t.oneOfType([t.number,t.string]),multiline:t.bool,name:t.string,onBlur:t.func,onChange:t.func,onClick:t.func,onFocus:t.func,onInvalid:t.func,onKeyDown:t.func,onKeyUp:t.func,placeholder:t.string,readOnly:t.bool,renderSuffix:t.func,required:t.bool,rows:t.oneOfType([t.number,t.string]),size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),slotProps:t.shape({input:t.object,root:t.object}),slots:t.shape({input:t.elementType,root:t.elementType}),startAdornment:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.string,value:t.any});function Ry(e){return xe("MuiInput",e)}const bo={...Mt,...Ce("MuiInput",["root","underline","input"])};function Iy(e){return xe("MuiOutlinedInput",e)}const Bt={...Mt,...Ce("MuiOutlinedInput",["root","notchedOutline","input"])};function $y(e){return xe("MuiFilledInput",e)}const Nt={...Mt,...Ce("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},rd=st(u.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function jy(e){return xe("MuiAutocomplete",e)}const Be=Ce("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var ul,fl;const My=e=>{const{classes:o,disablePortal:n,expanded:r,focused:a,fullWidth:i,hasClearIcon:s,hasPopupIcon:l,inputFocused:c,popupOpen:d,size:p}=e,g={root:["root",r&&"expanded",a&&"focused",i&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${F(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return we(g,jy,o)},Ny=D("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:a,hasPopupIcon:i,inputFocused:s,size:l}=n;return[{[`& .${Be.tag}`]:o.tag},{[`& .${Be.tag}`]:o[`tagSize${F(l)}`]},{[`& .${Be.inputRoot}`]:o.inputRoot},{[`& .${Be.input}`]:o.input},{[`& .${Be.input}`]:s&&o.inputFocused},o.root,r&&o.fullWidth,i&&o.hasPopupIcon,a&&o.hasClearIcon]}})({[`&.${Be.focused} .${Be.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Be.clearIndicator}`]:{visibility:"visible"}},[`& .${Be.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Be.inputRoot}`]:{[`.${Be.hasPopupIcon}&, .${Be.hasClearIcon}&`]:{paddingRight:30},[`.${Be.hasPopupIcon}.${Be.hasClearIcon}&`]:{paddingRight:56},[`& .${Be.input}`]:{width:0,minWidth:30}},[`& .${bo.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${bo.root}.${Mt.sizeSmall}`]:{[`& .${bo.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Bt.root}`]:{padding:9,[`.${Be.hasPopupIcon}&, .${Be.hasClearIcon}&`]:{paddingRight:39},[`.${Be.hasPopupIcon}.${Be.hasClearIcon}&`]:{paddingRight:65},[`& .${Be.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Be.endAdornment}`]:{right:9}},[`& .${Bt.root}.${Mt.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Be.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Nt.root}`]:{paddingTop:19,paddingLeft:8,[`.${Be.hasPopupIcon}&, .${Be.hasClearIcon}&`]:{paddingRight:39},[`.${Be.hasPopupIcon}.${Be.hasClearIcon}&`]:{paddingRight:65},[`& .${Nt.input}`]:{padding:"7px 4px"},[`& .${Be.endAdornment}`]:{right:9}},[`& .${Nt.root}.${Mt.sizeSmall}`]:{paddingBottom:1,[`& .${Nt.input}`]:{padding:"2.5px 4px"}},[`& .${Mt.hiddenLabel}`]:{paddingTop:8},[`& .${Nt.root}.${Mt.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Be.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Nt.root}.${Mt.hiddenLabel}.${Mt.sizeSmall}`]:{[`& .${Be.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Be.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Be.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Be.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Be.inputRoot}`]:{flexWrap:"wrap"}}}]}),Ay=D("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Ly=D(an,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),By=D(an,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.popupIndicator,n.popupOpen&&o.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Dy=D(Jn,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${Be.option}`]:o.option},o.popper,n.disablePortal&&o.popperDisablePortal]}})(me(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),zy=D(Oo,{name:"MuiAutocomplete",slot:"Paper"})(me(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),Fy=D("div",{name:"MuiAutocomplete",slot:"Loading"})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Vy=D("div",{name:"MuiAutocomplete",slot:"NoOptions"})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),_y=D("ul",{name:"MuiAutocomplete",slot:"Listbox"})(me(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Be.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Be.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Be.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Be.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),Wy=D(fn,{name:"MuiAutocomplete",slot:"GroupLabel"})(me(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Uy=D("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Be.option}`]:{paddingLeft:24}}),ad=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:i=!1,autoSelect:s=!1,blurOnSelect:l=!1,ChipProps:c,className:d,clearIcon:p=ul||(ul=u.jsx($c,{fontSize:"small"})),clearOnBlur:g=!r.freeSolo,clearOnEscape:b=!1,clearText:v="Clear",closeText:h="Close",componentsProps:f,defaultValue:y=r.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:O=!1,disabled:S=!1,disabledItemsFocusable:x=!1,disableListWrap:T=!1,disablePortal:E=!1,filterOptions:j,filterSelectedOptions:R=!1,forcePopupIcon:I="auto",freeSolo:N=!1,fullWidth:A=!1,getLimitTagsText:m=He=>`+${He}`,getOptionDisabled:$,getOptionKey:P,getOptionLabel:M,isOptionEqualToValue:k,groupBy:z,handleHomeEndKeys:V=!r.freeSolo,id:W,includeInputInList:B=!1,inputValue:L,limitTags:Y=-1,ListboxComponent:Z,ListboxProps:oe,loading:K=!1,loadingText:U="Loading…",multiple:ae=!1,noOptionsText:ce="No options",onChange:J,onClose:X,onHighlightChange:de,onInputChange:_,onOpen:se,open:ie,openOnFocus:pe=!1,openText:ke="Open",options:Ee,PaperComponent:ee,PopperComponent:De,popupIcon:Se=fl||(fl=u.jsx(rd,{})),readOnly:he=!1,renderGroup:ne,renderInput:ze,renderOption:Me,renderTags:te,renderValue:Q,selectOnFocus:be=!r.freeSolo,size:Oe="medium",slots:Pe={},slotProps:ve={},value:ue,...Ve}=r,{getRootProps:Ne,getInputProps:We,getInputLabelProps:Ot,getPopupIndicatorProps:vt,getClearProps:ut,getItemProps:ye,getListboxProps:Ae,getOptionProps:Xe,value:gt,dirty:_e,expanded:tt,id:Et,popupOpen:wt,focused:ft,focusedItem:je,anchorEl:St,setAnchorEl:tr,inputValue:ua,groupedOptions:_o}=gy({...r,componentName:"Autocomplete"}),Wo=!C&&!S&&_e&&!he,hn=(!N||I===!0)&&I!==!1,{onMouseDown:fa}=We(),{ref:ma,...ga}=Ae(),bn=M||(He=>He.label??He),ht={...r,disablePortal:E,expanded:tt,focused:ft,fullWidth:A,getOptionLabel:bn,hasClearIcon:Wo,hasPopupIcon:hn,inputFocused:je===-1,popupOpen:wt,size:Oe},yt=My(ht),fo={slots:{paper:ee,popper:De,...Pe},slotProps:{chip:c,listbox:oe,...f,...ve}},[ba,yn]=ge("listbox",{elementType:_y,externalForwardedProps:fo,ownerState:ht,className:yt.listbox,additionalProps:ga,ref:ma}),[or,G]=ge("paper",{elementType:Oo,externalForwardedProps:fo,ownerState:ht,className:yt.paper}),[H,fe]=ge("popper",{elementType:Jn,externalForwardedProps:fo,ownerState:ht,className:yt.popper,additionalProps:{disablePortal:E,style:{width:St?St.clientWidth:null},role:"presentation",anchorEl:St,open:wt}});let Ie;const $e=He=>({className:yt.tag,disabled:S,...ye(He)});if(ae?gt.length>0&&(te?Ie=te(gt,$e,ht):Q?Ie=Q(gt,$e,ht):Ie=gt.map((He,mo)=>{const{key:go,...vn}=$e({index:mo});return u.jsx(Qr,{label:bn(He),size:Oe,...vn,...fo.slotProps.chip},go)})):Q&>!=null&&(Ie=Q(gt,$e,ht)),Y>-1&&Array.isArray(Ie)){const He=Ie.length-Y;!ft&&He>0&&(Ie=Ie.splice(0,Y),Ie.push(u.jsx("span",{className:yt.tag,children:m(He)},Ie.length)))}const dt=ne||(He=>u.jsxs("li",{children:[u.jsx(Wy,{className:yt.groupLabel,ownerState:ht,component:"div",children:He.group}),u.jsx(Uy,{className:yt.groupUl,ownerState:ht,children:He.children})]},He.key)),Uo=Me||((He,mo)=>{const{key:go,...vn}=He;return u.jsx("li",{...vn,children:bn(mo)},go)}),Qi=(He,mo)=>{const go=Xe({option:He,index:mo});return Uo({...go,className:yt.option},He,{selected:go["aria-selected"],index:mo,inputValue:ua},ht)},es=fo.slotProps.clearIndicator,ts=fo.slotProps.popupIndicator;return u.jsxs(w.Fragment,{children:[u.jsx(Ny,{ref:n,className:re(yt.root,d),ownerState:ht,...Ne(Ve),children:ze({id:Et,disabled:S,fullWidth:!0,size:Oe==="small"?"small":void 0,InputLabelProps:Ot(),InputProps:{ref:tr,className:yt.inputRoot,startAdornment:Ie,onMouseDown:He=>{He.target===He.currentTarget&&fa(He)},...(Wo||hn)&&{endAdornment:u.jsxs(Ay,{className:yt.endAdornment,ownerState:ht,children:[Wo?u.jsx(Ly,{...ut(),"aria-label":v,title:v,ownerState:ht,...es,className:re(yt.clearIndicator,es?.className),children:p}):null,hn?u.jsx(By,{...vt(),disabled:S,"aria-label":wt?h:ke,title:wt?h:ke,ownerState:ht,...ts,className:re(yt.popupIndicator,ts?.className),children:Se}):null]})}},inputProps:{className:yt.input,disabled:S,readOnly:he,...We()}})}),St?u.jsx(Dy,{as:H,...fe,children:u.jsxs(zy,{as:or,...G,children:[K&&_o.length===0?u.jsx(Fy,{className:yt.loading,ownerState:ht,children:U}):null,_o.length===0&&!N&&!K?u.jsx(Vy,{className:yt.noOptions,ownerState:ht,role:"presentation",onMouseDown:He=>{He.preventDefault()},children:ce}):null,_o.length>0?u.jsx(ba,{as:Z,...yn,children:_o.map((He,mo)=>z?dt({key:He.key,group:He.group,children:He.options.map((go,vn)=>Qi(go,He.index+vn))}):Qi(He,mo))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(ad.propTypes={autoComplete:t.bool,autoHighlight:t.bool,autoSelect:t.bool,blurOnSelect:t.oneOfType([t.oneOf(["mouse","touch"]),t.bool]),ChipProps:t.object,classes:t.object,className:t.string,clearIcon:t.node,clearOnBlur:t.bool,clearOnEscape:t.bool,clearText:t.string,closeText:t.string,componentsProps:t.shape({clearIndicator:t.object,paper:t.object,popper:t.object,popupIndicator:t.object}),defaultValue:xt(t.any,e=>e.multiple&&e.defaultValue!==void 0&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join(`
|
|
323
|
+
`)):null),disableClearable:t.bool,disableCloseOnSelect:t.bool,disabled:t.bool,disabledItemsFocusable:t.bool,disableListWrap:t.bool,disablePortal:t.bool,filterOptions:t.func,filterSelectedOptions:t.bool,forcePopupIcon:t.oneOfType([t.oneOf(["auto"]),t.bool]),freeSolo:t.bool,fullWidth:t.bool,getLimitTagsText:t.func,getOptionDisabled:t.func,getOptionKey:t.func,getOptionLabel:t.func,groupBy:t.func,handleHomeEndKeys:t.bool,id:t.string,includeInputInList:t.bool,inputValue:t.string,isOptionEqualToValue:t.func,limitTags:ki,ListboxComponent:t.elementType,ListboxProps:t.object,loading:t.bool,loadingText:t.node,multiple:t.bool,noOptionsText:t.node,onChange:t.func,onClose:t.func,onHighlightChange:t.func,onInputChange:t.func,onKeyDown:t.func,onOpen:t.func,open:t.bool,openOnFocus:t.bool,openText:t.string,options:t.array.isRequired,PaperComponent:t.elementType,PopperComponent:t.elementType,popupIcon:t.node,readOnly:t.bool,renderGroup:t.func,renderInput:t.func.isRequired,renderOption:t.func,renderTags:t.func,renderValue:t.func,selectOnFocus:t.bool,size:t.oneOfType([t.oneOf(["small","medium"]),t.string]),slotProps:t.shape({chip:t.oneOfType([t.func,t.object]),clearIndicator:t.oneOfType([t.func,t.object]),listbox:t.oneOfType([t.func,t.object]),paper:t.oneOfType([t.func,t.object]),popper:t.oneOfType([t.func,t.object]),popupIndicator:t.oneOfType([t.func,t.object])}),slots:t.shape({listbox:t.elementType,paper:t.elementType,popper:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:xt(t.any,e=>e.multiple&&e.value!==void 0&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join(`
|
|
324
|
+
`)):null)});const Hy=e=>{const{classes:o,disableUnderline:n}=e,a=we({root:["root",!n&&"underline"],input:["input"]},Ry,o);return{...o,...a}},qy=D(oa,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[...ea(e,o),!n.disableUnderline&&o.underline]}})(me(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bo.disabled}, .${bo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${bo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(qe()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Gy=D(na,{name:"MuiInput",slot:"Input",overridesResolver:ta})({}),aa=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiInput"}),{disableUnderline:a=!1,components:i={},componentsProps:s,fullWidth:l=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:g={},type:b="text",...v}=r,h=Hy(r),y={root:{ownerState:{disableUnderline:a}}},C=p??s?Tt(p??s,y):y,O=g.root??i.Root??qy,S=g.input??i.Input??Gy;return u.jsx(ra,{slots:{root:O,input:S},slotProps:C,fullWidth:l,inputComponent:c,multiline:d,ref:n,type:b,...v,classes:h})});process.env.NODE_ENV!=="production"&&(aa.propTypes={autoComplete:t.string,autoFocus:t.bool,classes:t.object,color:t.oneOfType([t.oneOf(["primary","secondary"]),t.string]),components:t.shape({Input:t.elementType,Root:t.elementType}),componentsProps:t.shape({input:t.object,root:t.object}),defaultValue:t.any,disabled:t.bool,disableUnderline:t.bool,endAdornment:t.node,error:t.bool,fullWidth:t.bool,id:t.string,inputComponent:t.elementType,inputProps:t.object,inputRef:Pt,margin:t.oneOf(["dense","none"]),maxRows:t.oneOfType([t.number,t.string]),minRows:t.oneOfType([t.number,t.string]),multiline:t.bool,name:t.string,onChange:t.func,placeholder:t.string,readOnly:t.bool,required:t.bool,rows:t.oneOfType([t.number,t.string]),slotProps:t.shape({input:t.object,root:t.object}),slots:t.shape({input:t.elementType,root:t.elementType}),startAdornment:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.string,value:t.any});aa.muiName="Input";const Ky=e=>{const{classes:o,disableUnderline:n,startAdornment:r,endAdornment:a,size:i,hiddenLabel:s,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",a&&"adornedEnd",i==="small"&&`size${F(i)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},d=we(c,$y,o);return{...o,...d}},Yy=D(oa,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[...ea(e,o),!n.disableUnderline&&o.underline]}})(me(({theme:e})=>{const o=e.palette.mode==="light",n=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Nt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Nt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Nt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Nt.disabled}, .${Nt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Nt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(qe()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Xy=D(na,{name:"MuiFilledInput",slot:"Input",overridesResolver:ta})(me(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:o})=>o.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:0}},{props:({ownerState:o})=>o.endAdornment,style:{paddingRight:0}},{props:({ownerState:o})=>o.hiddenLabel&&o.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:o})=>o.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ia=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:i={},componentsProps:s,fullWidth:l=!1,hiddenLabel:c,inputComponent:d="input",multiline:p=!1,slotProps:g,slots:b={},type:v="text",...h}=r,f={...r,disableUnderline:a,fullWidth:l,inputComponent:d,multiline:p,type:v},y=Ky(r),C={root:{ownerState:f},input:{ownerState:f}},O=g??s?Tt(C,g??s):C,S=b.root??i.Root??Yy,x=b.input??i.Input??Xy;return u.jsx(ra,{slots:{root:S,input:x},slotProps:O,fullWidth:l,inputComponent:d,multiline:p,ref:n,type:v,...h,classes:y})});process.env.NODE_ENV!=="production"&&(ia.propTypes={autoComplete:t.string,autoFocus:t.bool,classes:t.object,color:t.oneOfType([t.oneOf(["primary","secondary"]),t.string]),components:t.shape({Input:t.elementType,Root:t.elementType}),componentsProps:t.shape({input:t.object,root:t.object}),defaultValue:t.any,disabled:t.bool,disableUnderline:t.bool,endAdornment:t.node,error:t.bool,fullWidth:t.bool,hiddenLabel:t.bool,id:t.string,inputComponent:t.elementType,inputProps:t.object,inputRef:Pt,margin:t.oneOf(["dense","none"]),maxRows:t.oneOfType([t.number,t.string]),minRows:t.oneOfType([t.number,t.string]),multiline:t.bool,name:t.string,onChange:t.func,placeholder:t.string,readOnly:t.bool,required:t.bool,rows:t.oneOfType([t.number,t.string]),slotProps:t.shape({input:t.object,root:t.object}),slots:t.shape({input:t.elementType,root:t.elementType}),startAdornment:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.string,value:t.any});ia.muiName="Input";var ml;const Zy=D("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ct})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Jy=D("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ct})(me(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:o})=>!o.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:o})=>o.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:o})=>o.withLabel&&o.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function id(e){const{children:o,classes:n,className:r,label:a,notched:i,...s}=e,l=a!=null&&a!=="",c={...e,notched:i,withLabel:l};return u.jsx(Zy,{"aria-hidden":!0,className:r,ownerState:c,...s,children:u.jsx(Jy,{ownerState:c,children:l?u.jsx("span",{children:a}):ml||(ml=u.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(id.propTypes={children:t.node,classes:t.object,className:t.string,label:t.node,notched:t.bool.isRequired,style:t.object});const Qy=e=>{const{classes:o}=e,r=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Iy,o);return{...o,...r}},ev=D(oa,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ea})(me(({theme:e})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Bt.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):o}},[`&.${Bt.focused} .${Bt.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(qe()).map(([n])=>({props:{color:n},style:{[`&.${Bt.focused} .${Bt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Bt.error} .${Bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Bt.disabled} .${Bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),tv=D(id,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(me(({theme:e})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):o}})),ov=D(na,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ta})(me(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:o})=>o.multiline,style:{padding:0}},{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:0}},{props:({ownerState:o})=>o.endAdornment,style:{paddingRight:0}}]}))),sa=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:d,slots:p={},slotProps:g={},type:b="text",...v}=r,h=Qy(r),f=Yt(),y=ko({props:r,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...r,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:f,fullWidth:i,hiddenLabel:y.hiddenLabel,multiline:c,size:y.size,type:b},O=p.root??a.Root??ev,S=p.input??a.Input??ov,[x,T]=ge("notchedOutline",{elementType:tv,className:h.notchedOutline,shouldForwardComponentProp:!0,ownerState:C,externalForwardedProps:{slots:p,slotProps:g},additionalProps:{label:l!=null&&l!==""&&y.required?u.jsxs(w.Fragment,{children:[l," ","*"]}):l}});return u.jsx(ra,{slots:{root:O,input:S},slotProps:g,renderSuffix:E=>u.jsx(x,{...T,notched:typeof d<"u"?d:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:i,inputComponent:s,multiline:c,ref:n,type:b,...v,classes:{...h,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(sa.propTypes={autoComplete:t.string,autoFocus:t.bool,classes:t.object,color:t.oneOfType([t.oneOf(["primary","secondary"]),t.string]),components:t.shape({Input:t.elementType,Root:t.elementType}),defaultValue:t.any,disabled:t.bool,endAdornment:t.node,error:t.bool,fullWidth:t.bool,id:t.string,inputComponent:t.elementType,inputProps:t.object,inputRef:Pt,label:t.node,margin:t.oneOf(["dense","none"]),maxRows:t.oneOfType([t.number,t.string]),minRows:t.oneOfType([t.number,t.string]),multiline:t.bool,name:t.string,notched:t.bool,onChange:t.func,placeholder:t.string,readOnly:t.bool,required:t.bool,rows:t.oneOfType([t.number,t.string]),slotProps:t.shape({input:t.object,notchedOutline:t.oneOfType([t.func,t.object]),root:t.object}),slots:t.shape({input:t.elementType,notchedOutline:t.elementType,root:t.elementType}),startAdornment:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.string,value:t.any});sa.muiName="Input";function nv(e){return xe("MuiFormLabel",e)}const Dn=Ce("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),rv=e=>{const{classes:o,color:n,focused:r,disabled:a,error:i,filled:s,required:l}=e,c={root:["root",`color${F(n)}`,a&&"disabled",i&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return we(c,nv,o)},av=D("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.color==="secondary"&&o.colorSecondary,n.filled&&o.filled]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{[`&.${Dn.focused}`]:{color:(e.vars||e).palette[o].main}}})),{props:{},style:{[`&.${Dn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Dn.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),iv=D("span",{name:"MuiFormLabel",slot:"Asterisk"})(me(({theme:e})=>({[`&.${Dn.error}`]:{color:(e.vars||e).palette.error.main}}))),$r=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiFormLabel"}),{children:a,className:i,color:s,component:l="label",disabled:c,error:d,filled:p,focused:g,required:b,...v}=r,h=Yt(),f=ko({props:r,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),y={...r,color:f.color||"primary",component:l,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},C=rv(y);return u.jsxs(av,{as:l,ownerState:y,className:re(C.root,i),ref:n,...v,children:[a,f.required&&u.jsxs(iv,{ownerState:y,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&($r.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["error","info","primary","secondary","success","warning"]),t.string]),component:t.elementType,disabled:t.bool,error:t.bool,filled:t.bool,focused:t.bool,required:t.bool,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function sv(e){return xe("MuiInputLabel",e)}Ce("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const lv=e=>{const{classes:o,formControl:n,size:r,shrink:a,disableAnimation:i,variant:s,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",a&&"shrink",r&&r!=="medium"&&`size${F(r)}`,s],asterisk:[l&&"asterisk"]},d=we(c,sv,o);return{...o,...d}},cv=D($r,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${Dn.asterisk}`]:o.asterisk},o.root,n.formControl&&o.formControl,n.size==="small"&&o.sizeSmall,n.shrink&&o.shrink,!n.disableAnimation&&o.animated,n.focused&&o.focused,o[n.variant]]}})(me(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:o})=>o.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:o})=>o.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:o})=>!o.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:o,ownerState:n})=>o==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:o,ownerState:n,size:r})=>o==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:o,ownerState:n})=>o==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),_i=w.forwardRef(function(o,n){const r=Te({name:"MuiInputLabel",props:o}),{disableAnimation:a=!1,margin:i,shrink:s,variant:l,className:c,...d}=r,p=Yt();let g=s;typeof g>"u"&&p&&(g=p.filled||p.focused||p.adornedStart);const b=ko({props:r,muiFormControl:p,states:["size","variant","required","focused"]}),v={...r,disableAnimation:a,formControl:p,shrink:g,size:b.size,variant:b.variant,required:b.required,focused:b.focused},h=lv(v);return u.jsx(cv,{"data-shrink":g,ref:n,className:re(h.root,c),...d,ownerState:v,classes:h})});process.env.NODE_ENV!=="production"&&(_i.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["error","info","primary","secondary","success","warning"]),t.string]),disableAnimation:t.bool,disabled:t.bool,error:t.bool,focused:t.bool,margin:t.oneOf(["dense"]),required:t.bool,shrink:t.bool,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOf(["filled","outlined","standard"])});function dv(e){return xe("MuiFormControl",e)}Ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const pv=e=>{const{classes:o,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${F(n)}`,r&&"fullWidth"]};return we(a,dv,o)},uv=D("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[`margin${F(n.margin)}`],n.fullWidth&&o.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),la=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiFormControl"}),{children:a,className:i,color:s="primary",component:l="div",disabled:c=!1,error:d=!1,focused:p,fullWidth:g=!1,hiddenLabel:b=!1,margin:v="none",required:h=!1,size:f="medium",variant:y="outlined",...C}=r,O={...r,color:s,component:l,disabled:c,error:d,fullWidth:g,hiddenLabel:b,margin:v,required:h,size:f,variant:y},S=pv(O),[x,T]=w.useState(()=>{let k=!1;return a&&w.Children.forEach(a,z=>{if(!An(z,["Input","Select"]))return;const V=An(z,["Select"])?z.props.input:z;V&&Ey(V.props)&&(k=!0)}),k}),[E,j]=w.useState(()=>{let k=!1;return a&&w.Children.forEach(a,z=>{An(z,["Input","Select"])&&(Ir(z.props,!0)||Ir(z.props.inputProps,!0))&&(k=!0)}),k}),[R,I]=w.useState(!1);c&&R&&I(!1);const N=p!==void 0&&!c?p:R;let A;const m=w.useRef(!1);process.env.NODE_ENV!=="production"&&(A=()=>(m.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
325
|
+
`)),m.current=!0,()=>{m.current=!1}));const $=w.useCallback(()=>{j(!0)},[]),P=w.useCallback(()=>{j(!1)},[]),M=w.useMemo(()=>({adornedStart:x,setAdornedStart:T,color:s,disabled:c,error:d,filled:E,focused:N,fullWidth:g,hiddenLabel:b,size:f,onBlur:()=>{I(!1)},onFocus:()=>{I(!0)},onEmpty:P,onFilled:$,registerEffect:A,required:h,variant:y}),[x,s,c,d,E,N,g,b,A,P,$,h,f,y]);return u.jsx(er.Provider,{value:M,children:u.jsx(uv,{as:l,ownerState:O,className:re(S.root,i),ref:n,...C,children:a})})});process.env.NODE_ENV!=="production"&&(la.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["primary","secondary","error","info","success","warning"]),t.string]),component:t.elementType,disabled:t.bool,error:t.bool,focused:t.bool,fullWidth:t.bool,hiddenLabel:t.bool,margin:t.oneOf(["dense","none","normal"]),required:t.bool,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOf(["filled","outlined","standard"])});function fv(e){return xe("MuiFormHelperText",e)}const gl=Ce("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var hl;const mv=e=>{const{classes:o,contained:n,size:r,disabled:a,error:i,filled:s,focused:l,required:c}=e,d={root:["root",a&&"disabled",i&&"error",r&&`size${F(r)}`,n&&"contained",l&&"focused",s&&"filled",c&&"required"]};return we(d,fv,o)},gv=D("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.size&&o[`size${F(n.size)}`],n.contained&&o.contained,n.filled&&o.filled]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${gl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gl.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:o})=>o.contained,style:{marginLeft:14,marginRight:14}}]}))),Wi=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiFormHelperText"}),{children:a,className:i,component:s="p",disabled:l,error:c,filled:d,focused:p,margin:g,required:b,variant:v,...h}=r,f=Yt(),y=ko({props:r,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),C={...r,component:s,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete C.ownerState;const O=mv(C);return u.jsx(gv,{as:s,className:re(O.root,i),ref:n,...h,ownerState:C,children:a===" "?hl||(hl=u.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):a})});process.env.NODE_ENV!=="production"&&(Wi.propTypes={children:t.node,classes:t.object,className:t.string,component:t.elementType,disabled:t.bool,error:t.bool,filled:t.bool,focused:t.bool,margin:t.oneOf(["dense"]),required:t.bool,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOfType([t.oneOf(["filled","outlined","standard"]),t.string])});const _t=w.createContext({});process.env.NODE_ENV!=="production"&&(_t.displayName="ListContext");function hv(e){return xe("MuiList",e)}Ce("MuiList",["root","padding","dense","subheader"]);const bv=e=>{const{classes:o,disablePadding:n,dense:r,subheader:a}=e;return we({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},hv,o)},yv=D("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,!n.disablePadding&&o.padding,n.dense&&o.dense,n.subheader&&o.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Ui=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiList"}),{children:a,className:i,component:s="ul",dense:l=!1,disablePadding:c=!1,subheader:d,...p}=r,g=w.useMemo(()=>({dense:l}),[l]),b={...r,component:s,dense:l,disablePadding:c},v=bv(b);return u.jsx(_t.Provider,{value:g,children:u.jsxs(yv,{as:s,className:re(v.root,i),ref:n,ownerState:b,...p,children:[d,a]})})});process.env.NODE_ENV!=="production"&&(Ui.propTypes={children:t.node,classes:t.object,className:t.string,component:t.elementType,dense:t.bool,disablePadding:t.bool,subheader:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function $n(e){let o=e.activeElement;for(;o?.shadowRoot?.activeElement!=null;)o=o.shadowRoot.activeElement;return o}function sd(e=window){const o=e.document.documentElement.clientWidth;return e.innerWidth-o}function Na(e,o,n){return e===o?e.firstChild:o&&o.nextElementSibling?o.nextElementSibling:n?null:e.firstChild}function bl(e,o,n){return e===o?n?e.firstChild:e.lastChild:o&&o.previousElementSibling?o.previousElementSibling:n?null:e.lastChild}function ld(e,o){if(o===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:o.repeating?n[0]===o.keys[0]:n.startsWith(o.keys.join(""))}function Tn(e,o,n,r,a,i){let s=!1,l=a(e,o,o?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!ld(l,i)||c)l=a(e,l,n);else return l.focus(),!0}return!1}const cd=w.forwardRef(function(o,n){const{actions:r,autoFocus:a=!1,autoFocusItem:i=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:p,variant:g="selectedMenu",...b}=o,v=w.useRef(null),h=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Wt(()=>{a&&v.current.focus()},[a]),w.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:x})=>{const T=!v.current.style.width;if(S.clientHeight<v.current.clientHeight&&T){const E=`${sd(so(S))}px`;v.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=E,v.current.style.width=`calc(100% + ${E})`}return v.current}}),[]);const f=S=>{const x=v.current,T=S.key;if(S.ctrlKey||S.metaKey||S.altKey){p&&p(S);return}const j=$n(mt(x));if(T==="ArrowDown")S.preventDefault(),Tn(x,j,d,c,Na);else if(T==="ArrowUp")S.preventDefault(),Tn(x,j,d,c,bl);else if(T==="Home")S.preventDefault(),Tn(x,null,d,c,Na);else if(T==="End")S.preventDefault(),Tn(x,null,d,c,bl);else if(T.length===1){const R=h.current,I=T.toLowerCase(),N=performance.now();R.keys.length>0&&(N-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&I!==R.keys[0]&&(R.repeating=!1)),R.lastTime=N,R.keys.push(I);const A=j&&!R.repeating&&ld(j,R);R.previousKeyMatched&&(A||Tn(x,j,!1,c,Na,R))?S.preventDefault():R.previousKeyMatched=!1}p&&p(S)},y=ot(v,n);let C=-1;w.Children.forEach(s,(S,x)=>{if(!w.isValidElement(S)){C===x&&(C+=1,C>=s.length&&(C=-1));return}process.env.NODE_ENV!=="production"&&Co.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
326
|
+
`)),S.props.disabled||(g==="selectedMenu"&&S.props.selected||C===-1)&&(C=x),C===x&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(C+=1,C>=s.length&&(C=-1))});const O=w.Children.map(s,(S,x)=>{if(x===C){const T={};return i&&(T.autoFocus=!0),S.props.tabIndex===void 0&&g==="selectedMenu"&&(T.tabIndex=0),w.cloneElement(S,T)}return S});return u.jsx(Ui,{role:"menu",ref:y,className:l,onKeyDown:f,tabIndex:a?0:-1,...b,children:O})});process.env.NODE_ENV!=="production"&&(cd.propTypes={autoFocus:t.bool,autoFocusItem:t.bool,children:t.node,className:t.string,disabledItemsFocusable:t.bool,disableListWrap:t.bool,onKeyDown:t.func,variant:t.oneOf(["menu","selectedMenu"])});function vv(e){const o=mt(e);return o.body===e?so(e).innerWidth>o.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function zn(e,o){o?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yl(e){return parseInt(so(e).getComputedStyle(e).paddingRight,10)||0}function xv(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function vl(e,o,n,r,a){const i=[o,n,...r];[].forEach.call(e.children,s=>{const l=!i.includes(s),c=!xv(s);l&&c&&zn(s,a)})}function Aa(e,o){let n=-1;return e.some((r,a)=>o(r)?(n=a,!0):!1),n}function Cv(e,o){const n=[],r=e.container;if(!o.disableScrollLock){if(vv(r)){const s=sd(so(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${yl(r)+s}px`;const l=mt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${yl(c)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=mt(r).body;else{const s=r.parentElement,l=so(r);i=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:l})=>{i?s.style.setProperty(l,i):s.style.removeProperty(l)})}}function wv(e){const o=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&o.push(n)}),o}class Sv{constructor(){this.modals=[],this.containers=[]}add(o,n){let r=this.modals.indexOf(o);if(r!==-1)return r;r=this.modals.length,this.modals.push(o),o.modalRef&&zn(o.modalRef,!1);const a=wv(n);vl(n,o.mount,o.modalRef,a,!0);const i=Aa(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(o),r):(this.containers.push({modals:[o],container:n,restore:null,hiddenSiblings:a}),r)}mount(o,n){const r=Aa(this.containers,i=>i.modals.includes(o)),a=this.containers[r];a.restore||(a.restore=Cv(a,n))}remove(o,n=!0){const r=this.modals.indexOf(o);if(r===-1)return r;const a=Aa(this.containers,s=>s.modals.includes(o)),i=this.containers[a];if(i.modals.splice(i.modals.indexOf(o),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),o.modalRef&&zn(o.modalRef,n),vl(i.container,o.mount,o.modalRef,i.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&zn(s.modalRef,!1)}return r}isTopModal(o){return this.modals.length>0&&this.modals[this.modals.length-1]===o}}const Tv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ov(e){const o=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(o)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:o}function Ev(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const o=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=o(`[name="${e.name}"]:checked`);return n||(n=o(`[name="${e.name}"]`)),n!==e}function kv(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Ev(e))}function Pv(e){const o=[],n=[];return Array.from(e.querySelectorAll(Tv)).forEach((r,a)=>{const i=Ov(r);i===-1||!kv(r)||(i===0?o.push(r):n.push({documentOrder:a,tabIndex:i,node:r}))}),n.sort((r,a)=>r.tabIndex===a.tabIndex?r.documentOrder-a.documentOrder:r.tabIndex-a.tabIndex).map(r=>r.node).concat(o)}function Rv(){return!0}function jr(e){const{children:o,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:a=!1,getTabbable:i=Pv,isEnabled:s=Rv,open:l}=e,c=w.useRef(!1),d=w.useRef(null),p=w.useRef(null),g=w.useRef(null),b=w.useRef(null),v=w.useRef(!1),h=w.useRef(null),f=ot(Vo(o),h),y=w.useRef(null);w.useEffect(()=>{!l||!h.current||(v.current=!n)},[n,l]),w.useEffect(()=>{if(!l||!h.current)return;const S=mt(h.current),x=$n(S);return h.current.contains(x)||(h.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&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(`
|
|
327
|
+
`)),h.current.setAttribute("tabIndex","-1")),v.current&&h.current.focus()),()=>{a||(g.current&&g.current.focus&&(c.current=!0,g.current.focus()),g.current=null)}},[l]),w.useEffect(()=>{if(!l||!h.current)return;const S=mt(h.current),x=$n(S),T=R=>{y.current=R,!(r||!s()||R.key!=="Tab")&&x===h.current&&R.shiftKey&&(c.current=!0,p.current&&p.current.focus())},E=()=>{const R=h.current;if(R===null)return;const I=$n(S);if(!S.hasFocus()||!s()||c.current){c.current=!1;return}if(R.contains(I)||r&&I!==d.current&&I!==p.current)return;if(I!==b.current)b.current=null;else if(b.current!==null)return;if(!v.current)return;let N=[];if((I===d.current||I===p.current)&&(N=i(h.current)),N.length>0){const A=!!(y.current?.shiftKey&&y.current?.key==="Tab"),m=N[0],$=N[N.length-1];typeof m!="string"&&typeof $!="string"&&(A?$.focus():m.focus())}else R.focus()};S.addEventListener("focusin",E),S.addEventListener("keydown",T,!0);const j=setInterval(()=>{const R=$n(S);R&&R.tagName==="BODY"&&E()},50);return()=>{clearInterval(j),S.removeEventListener("focusin",E),S.removeEventListener("keydown",T,!0)}},[n,r,a,s,l,i]);const C=S=>{g.current===null&&(g.current=S.relatedTarget),v.current=!0,b.current=S.target;const x=o.props.onFocus;x&&x(S)},O=S=>{g.current===null&&(g.current=S.relatedTarget),v.current=!0};return u.jsxs(w.Fragment,{children:[u.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:d,"data-testid":"sentinelStart"}),w.cloneElement(o,{ref:f,onFocus:C}),u.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(jr.propTypes={children:Fo,disableAutoFocus:t.bool,disableEnforceFocus:t.bool,disableRestoreFocus:t.bool,getTabbable:t.func,isEnabled:t.func,open:t.bool.isRequired});process.env.NODE_ENV!=="production"&&(jr.propTypes=gi(jr.propTypes));const Iv={entering:{opacity:1},entered:{opacity:1}},dd=w.forwardRef(function(o,n){const r=jt(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:c,in:d,onEnter:p,onEntered:g,onEntering:b,onExit:v,onExited:h,onExiting:f,style:y,timeout:C=a,TransitionComponent:O=Kt,...S}=o,x=w.useRef(null),T=ot(x,Vo(l),n),E=P=>M=>{if(P){const k=x.current;M===void 0?P(k):P(k,M)}},j=E(b),R=E((P,M)=>{jc(P);const k=sn({style:y,timeout:C,easing:c},{mode:"enter"});P.style.webkitTransition=r.transitions.create("opacity",k),P.style.transition=r.transitions.create("opacity",k),p&&p(P,M)}),I=E(g),N=E(f),A=E(P=>{const M=sn({style:y,timeout:C,easing:c},{mode:"exit"});P.style.webkitTransition=r.transitions.create("opacity",M),P.style.transition=r.transitions.create("opacity",M),v&&v(P)}),m=E(h),$=P=>{i&&i(x.current,P)};return u.jsx(O,{appear:s,in:d,nodeRef:x,onEnter:R,onEntered:I,onEntering:j,onExit:A,onExited:m,onExiting:N,addEndListener:$,timeout:C,...S,children:(P,{ownerState:M,...k})=>w.cloneElement(l,{style:{opacity:0,visibility:P==="exited"&&!d?"hidden":void 0,...Iv[P],...y,...l.props.style},ref:T,...k})})});process.env.NODE_ENV!=="production"&&(dd.propTypes={addEndListener:t.func,appear:t.bool,children:Fo.isRequired,easing:t.oneOfType([t.shape({enter:t.string,exit:t.string}),t.string]),in:t.bool,onEnter:t.func,onEntered:t.func,onEntering:t.func,onExit:t.func,onExited:t.func,onExiting:t.func,style:t.object,timeout:t.oneOfType([t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})])});function $v(e){return xe("MuiBackdrop",e)}Ce("MuiBackdrop",["root","invisible"]);const jv=e=>{const{classes:o,invisible:n}=e;return we({root:["root",n&&"invisible"]},$v,o)},Mv=D("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.invisible&&o.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),pd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiBackdrop"}),{children:a,className:i,component:s="div",invisible:l=!1,open:c,components:d={},componentsProps:p={},slotProps:g={},slots:b={},TransitionComponent:v,transitionDuration:h,...f}=r,y={...r,component:s,invisible:l},C=jv(y),O={transition:v,root:d.Root,...b},S={...p,...g},x={component:s,slots:O,slotProps:S},[T,E]=ge("root",{elementType:Mv,externalForwardedProps:x,className:re(C.root,i),ownerState:y}),[j,R]=ge("transition",{elementType:dd,externalForwardedProps:x,ownerState:y});return u.jsx(j,{in:c,timeout:h,...f,...R,children:u.jsx(T,{"aria-hidden":!0,...E,classes:C,ref:n,children:a})})});process.env.NODE_ENV!=="production"&&(pd.propTypes={children:t.node,classes:t.object,className:t.string,component:t.elementType,components:t.shape({Root:t.elementType}),componentsProps:t.shape({root:t.object}),invisible:t.bool,open:t.bool.isRequired,slotProps:t.shape({root:t.oneOfType([t.func,t.object]),transition:t.oneOfType([t.func,t.object])}),slots:t.shape({root:t.elementType,transition:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),TransitionComponent:t.elementType,transitionDuration:t.oneOfType([t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})])});function Nv(e){return typeof e=="function"?e():e}function Av(e){return e?e.props.hasOwnProperty("in"):!1}const xl=()=>{},pr=new Sv;function Lv(e){const{container:o,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:d,rootRef:p}=e,g=w.useRef({}),b=w.useRef(null),v=w.useRef(null),h=ot(v,p),[f,y]=w.useState(!d),C=Av(l);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const S=()=>mt(b.current),x=()=>(g.current.modalRef=v.current,g.current.mount=b.current,g.current),T=()=>{pr.mount(x(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},E=bt(()=>{const M=Nv(o)||S().body;pr.add(x(),M),v.current&&T()}),j=()=>pr.isTopModal(x()),R=bt(M=>{b.current=M,M&&(d&&j()?T():v.current&&zn(v.current,O))}),I=w.useCallback(()=>{pr.remove(x(),O)},[O]);w.useEffect(()=>()=>{I()},[I]),w.useEffect(()=>{d?E():(!C||!a)&&I()},[d,I,C,a,E]);const N=M=>k=>{M.onKeyDown?.(k),!(k.key!=="Escape"||k.which===229||!j())&&(n||(k.stopPropagation(),c&&c(k,"escapeKeyDown")))},A=M=>k=>{M.onClick?.(k),k.target===k.currentTarget&&c&&c(k,"backdropClick")};return{getRootProps:(M={})=>{const k=Lo(e);delete k.onTransitionEnter,delete k.onTransitionExited;const z={...k,...M};return{role:"presentation",...z,onKeyDown:N(z),ref:h}},getBackdropProps:(M={})=>{const k=M;return{"aria-hidden":!0,...k,onClick:A(k),open:d}},getTransitionProps:()=>{const M=()=>{y(!1),i&&i()},k=()=>{y(!0),s&&s(),a&&I()};return{onEnter:Da(M,l?.props.onEnter??xl),onExited:Da(k,l?.props.onExited??xl)}},rootRef:h,portalRef:R,isTopModal:j,exited:f,hasTransition:C}}function Bv(e){return xe("MuiModal",e)}Ce("MuiModal",["root","hidden","backdrop"]);const Dv=e=>{const{open:o,exited:n,classes:r}=e;return we({root:["root",!o&&n&&"hidden"],backdrop:["backdrop"]},Bv,r)},zv=D("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,!n.open&&n.exited&&o.hidden]}})(me(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:o})=>!o.open&&o.exited,style:{visibility:"hidden"}}]}))),Fv=D(pd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),ud=w.forwardRef(function(o,n){const r=Te({name:"MuiModal",props:o}),{BackdropComponent:a=Fv,BackdropProps:i,classes:s,className:l,closeAfterTransition:c=!1,children:d,container:p,component:g,components:b={},componentsProps:v={},disableAutoFocus:h=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:y=!1,disablePortal:C=!1,disableRestoreFocus:O=!1,disableScrollLock:S=!1,hideBackdrop:x=!1,keepMounted:T=!1,onClose:E,onTransitionEnter:j,onTransitionExited:R,open:I,slotProps:N={},slots:A={},theme:m,...$}=r,P={...r,closeAfterTransition:c,disableAutoFocus:h,disableEnforceFocus:f,disableEscapeKeyDown:y,disablePortal:C,disableRestoreFocus:O,disableScrollLock:S,hideBackdrop:x,keepMounted:T},{getRootProps:M,getBackdropProps:k,getTransitionProps:z,portalRef:V,isTopModal:W,exited:B,hasTransition:L}=Lv({...P,rootRef:n}),Y={...P,exited:B},Z=Dv(Y),oe={};if(d.props.tabIndex===void 0&&(oe.tabIndex="-1"),L){const{onEnter:X,onExited:de}=z();oe.onEnter=X,oe.onExited=de}const K={slots:{root:b.Root,backdrop:b.Backdrop,...A},slotProps:{...v,...N}},[U,ae]=ge("root",{ref:n,elementType:zv,externalForwardedProps:{...K,...$,component:g},getSlotProps:M,ownerState:Y,className:re(l,Z?.root,!Y.open&&Y.exited&&Z?.hidden)}),[ce,J]=ge("backdrop",{ref:i?.ref,elementType:a,externalForwardedProps:K,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:X=>k({...X,onClick:de=>{X?.onClick&&X.onClick(de)}}),className:re(i?.className,Z?.backdrop),ownerState:Y});return!T&&!I&&(!L||B)?null:u.jsx(Wn,{ref:V,container:p,disablePortal:C,children:u.jsxs(U,{...ae,children:[!x&&a?u.jsx(ce,{...J}):null,u.jsx(jr,{disableEnforceFocus:f,disableAutoFocus:h,disableRestoreFocus:O,isEnabled:W,open:I,children:w.cloneElement(d,oe)})]})})});process.env.NODE_ENV!=="production"&&(ud.propTypes={BackdropComponent:t.elementType,BackdropProps:t.object,children:Fo.isRequired,classes:t.object,className:t.string,closeAfterTransition:t.bool,component:t.elementType,components:t.shape({Backdrop:t.elementType,Root:t.elementType}),componentsProps:t.shape({backdrop:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),container:t.oneOfType([co,t.func]),disableAutoFocus:t.bool,disableEnforceFocus:t.bool,disableEscapeKeyDown:t.bool,disablePortal:t.bool,disableRestoreFocus:t.bool,disableScrollLock:t.bool,hideBackdrop:t.bool,keepMounted:t.bool,onClose:t.func,onTransitionEnter:t.func,onTransitionExited:t.func,open:t.bool.isRequired,slotProps:t.shape({backdrop:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({backdrop:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function Vv(e){return xe("MuiPopover",e)}Ce("MuiPopover",["root","paper"]);function Cl(e,o){let n=0;return typeof o=="number"?n=o:o==="center"?n=e.height/2:o==="bottom"&&(n=e.height),n}function wl(e,o){let n=0;return typeof o=="number"?n=o:o==="center"?n=e.width/2:o==="right"&&(n=e.width),n}function Sl(e){return[e.horizontal,e.vertical].map(o=>typeof o=="number"?`${o}px`:o).join(" ")}function jn(e){return typeof e=="function"?e():e}const _v=e=>{const{classes:o}=e;return we({root:["root"],paper:["paper"]},Vv,o)},Wv=D(ud,{name:"MuiPopover",slot:"Root"})({}),fd=D(Oo,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),md=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiPopover"}),{action:a,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:d,className:p,container:g,elevation:b=8,marginThreshold:v=16,open:h,PaperProps:f={},slots:y={},slotProps:C={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:x="auto",TransitionProps:T={},disableScrollLock:E=!1,...j}=r,R=w.useRef(),I={...r,anchorOrigin:s,anchorReference:c,elevation:b,marginThreshold:v,transformOrigin:O,TransitionComponent:S,transitionDuration:x,TransitionProps:T},N=_v(I),A=w.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const X=jn(i),de=X&&X.nodeType===1?X:mt(R.current).body,_=de.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const se=de.getBoundingClientRect();process.env.NODE_ENV!=="test"&&se.top===0&&se.left===0&&se.right===0&&se.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
328
|
+
`))}return{top:_.top+Cl(_,s.vertical),left:_.left+wl(_,s.horizontal)}},[i,s.horizontal,s.vertical,l,c]),m=w.useCallback(X=>({vertical:Cl(X,O.vertical),horizontal:wl(X,O.horizontal)}),[O.horizontal,O.vertical]),$=w.useCallback(X=>{const de={width:X.offsetWidth,height:X.offsetHeight},_=m(de);if(c==="none")return{top:null,left:null,transformOrigin:Sl(_)};const se=A();let ie=se.top-_.vertical,pe=se.left-_.horizontal;const ke=ie+de.height,Ee=pe+de.width,ee=so(jn(i)),De=ee.innerHeight-v,Se=ee.innerWidth-v;if(v!==null&&ie<v){const he=ie-v;ie-=he,_.vertical+=he}else if(v!==null&&ke>De){const he=ke-De;ie-=he,_.vertical+=he}if(process.env.NODE_ENV!=="production"&&de.height>De&&de.height&&De&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${de.height-De}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
329
|
+
`)),v!==null&&pe<v){const he=pe-v;pe-=he,_.horizontal+=he}else if(Ee>Se){const he=Ee-Se;pe-=he,_.horizontal+=he}return{top:`${Math.round(ie)}px`,left:`${Math.round(pe)}px`,transformOrigin:Sl(_)}},[i,c,A,m,v]),[P,M]=w.useState(h),k=w.useCallback(()=>{const X=R.current;if(!X)return;const de=$(X);de.top!==null&&X.style.setProperty("top",de.top),de.left!==null&&(X.style.left=de.left),X.style.transformOrigin=de.transformOrigin,M(!0)},[$]);w.useEffect(()=>(E&&window.addEventListener("scroll",k),()=>window.removeEventListener("scroll",k)),[i,E,k]);const z=()=>{k()},V=()=>{M(!1)};w.useEffect(()=>{h&&k()}),w.useImperativeHandle(a,()=>h?{updatePosition:()=>{k()}}:null,[h,k]),w.useEffect(()=>{if(!h)return;const X=rc(()=>{k()}),de=so(jn(i));return de.addEventListener("resize",X),()=>{X.clear(),de.removeEventListener("resize",X)}},[i,h,k]);let W=x;const B={slots:{transition:S,...y},slotProps:{transition:T,paper:f,...C}},[L,Y]=ge("transition",{elementType:ln,externalForwardedProps:B,ownerState:I,getSlotProps:X=>({...X,onEntering:(de,_)=>{X.onEntering?.(de,_),z()},onExited:de=>{X.onExited?.(de),V()}}),additionalProps:{appear:!0,in:h}});x==="auto"&&!L.muiSupportAuto&&(W=void 0);const Z=g||(i?mt(jn(i)).body:void 0),[oe,{slots:K,slotProps:U,...ae}]=ge("root",{ref:n,elementType:Wv,externalForwardedProps:{...B,...j},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:ac(typeof C.backdrop=="function"?C.backdrop(I):C.backdrop,{invisible:!0})},container:Z,open:h},ownerState:I,className:re(N.root,p)}),[ce,J]=ge("paper",{ref:R,className:N.paper,elementType:fd,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:b,style:P?void 0:{opacity:0}},ownerState:I});return u.jsx(oe,{...ae,...!eo(oe)&&{slots:K,slotProps:U,disableScrollLock:E},children:u.jsx(L,{...Y,timeout:W,children:u.jsx(ce,{...J,children:d})})})});process.env.NODE_ENV!=="production"&&(md.propTypes={action:Pt,anchorEl:xt(t.oneOfType([co,t.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const o=jn(e.anchorEl);if(o&&o.nodeType===1){const n=o.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
330
|
+
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${o}\` instead.`].join(`
|
|
331
|
+
`))}return null}),anchorOrigin:t.shape({horizontal:t.oneOfType([t.oneOf(["center","left","right"]),t.number]).isRequired,vertical:t.oneOfType([t.oneOf(["bottom","center","top"]),t.number]).isRequired}),anchorPosition:t.shape({left:t.number.isRequired,top:t.number.isRequired}),anchorReference:t.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:t.elementType,BackdropProps:t.object,children:t.node,classes:t.object,className:t.string,container:t.oneOfType([co,t.func]),disableScrollLock:t.bool,elevation:ki,marginThreshold:t.number,onClose:t.func,open:t.bool.isRequired,PaperProps:t.shape({component:Yn}),slotProps:t.shape({backdrop:t.oneOfType([t.func,t.object]),paper:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),transition:t.oneOfType([t.func,t.object])}),slots:t.shape({backdrop:t.elementType,paper:t.elementType,root:t.elementType,transition:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),transformOrigin:t.shape({horizontal:t.oneOfType([t.oneOf(["center","left","right"]),t.number]).isRequired,vertical:t.oneOfType([t.oneOf(["bottom","center","top"]),t.number]).isRequired}),TransitionComponent:t.elementType,transitionDuration:t.oneOfType([t.oneOf(["auto"]),t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})]),TransitionProps:t.object});function Uv(e){return xe("MuiMenu",e)}Ce("MuiMenu",["root","paper","list"]);const Hv={vertical:"top",horizontal:"right"},qv={vertical:"top",horizontal:"left"},Gv=e=>{const{classes:o}=e;return we({root:["root"],paper:["paper"],list:["list"]},Uv,o)},Kv=D(md,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Yv=D(fd,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Xv=D(cd,{name:"MuiMenu",slot:"List"})({outline:0}),gd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiMenu"}),{autoFocus:a=!0,children:i,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:g={},PopoverClasses:b,transitionDuration:v="auto",TransitionProps:{onEntering:h,...f}={},variant:y="selectedMenu",slots:C={},slotProps:O={},...S}=r,x=mn(),T={...r,autoFocus:a,disableAutoFocusItem:l,MenuListProps:c,onEntering:h,PaperProps:g,transitionDuration:v,TransitionProps:f,variant:y},E=Gv(T),j=a&&!l&&p,R=w.useRef(null),I=(W,B)=>{R.current&&R.current.adjustStyleForScrollbar(W,{direction:x?"rtl":"ltr"}),h&&h(W,B)},N=W=>{W.key==="Tab"&&(W.preventDefault(),d&&d(W,"tabKeyDown"))};let A=-1;w.Children.map(i,(W,B)=>{w.isValidElement(W)&&(process.env.NODE_ENV!=="production"&&Co.isFragment(W)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
332
|
+
`)),W.props.disabled||(y==="selectedMenu"&&W.props.selected||A===-1)&&(A=B))});const m={slots:C,slotProps:{list:c,transition:f,paper:g,...O}},$=Zt({elementType:C.root,externalSlotProps:O.root,ownerState:T,className:[E.root,s]}),[P,M]=ge("paper",{className:E.paper,elementType:Yv,externalForwardedProps:m,shouldForwardComponentProp:!0,ownerState:T}),[k,z]=ge("list",{className:re(E.list,c.className),elementType:Xv,shouldForwardComponentProp:!0,externalForwardedProps:m,getSlotProps:W=>({...W,onKeyDown:B=>{N(B),W.onKeyDown?.(B)}}),ownerState:T}),V=typeof m.slotProps.transition=="function"?m.slotProps.transition(T):m.slotProps.transition;return u.jsx(Kv,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?Hv:qv,slots:{root:C.root,paper:P,backdrop:C.backdrop,...C.transition&&{transition:C.transition}},slotProps:{root:$,paper:M,backdrop:typeof O.backdrop=="function"?O.backdrop(T):O.backdrop,transition:{...V,onEntering:(...W)=>{I(...W),V?.onEntering?.(...W)}}},open:p,ref:n,transitionDuration:v,ownerState:T,...S,classes:b,children:u.jsx(k,{actions:R,autoFocus:a&&(A===-1||l),autoFocusItem:j,variant:y,...z,children:i})})});process.env.NODE_ENV!=="production"&&(gd.propTypes={anchorEl:t.oneOfType([co,t.func]),autoFocus:t.bool,children:t.node,classes:t.object,className:t.string,disableAutoFocusItem:t.bool,MenuListProps:t.object,onClose:t.func,open:t.bool.isRequired,PaperProps:t.object,PopoverClasses:t.object,slotProps:t.shape({backdrop:t.oneOfType([t.func,t.object]),list:t.oneOfType([t.func,t.object]),paper:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),transition:t.oneOfType([t.func,t.object])}),slots:t.shape({backdrop:t.elementType,list:t.elementType,paper:t.elementType,root:t.elementType,transition:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),transitionDuration:t.oneOfType([t.oneOf(["auto"]),t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})]),TransitionProps:t.object,variant:t.oneOf(["menu","selectedMenu"])});function Zv(e){return xe("MuiNativeSelect",e)}const Hi=Ce("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Jv=e=>{const{classes:o,variant:n,disabled:r,multiple:a,open:i,error:s}=e,l={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${F(n)}`,i&&"iconOpen",r&&"disabled"]};return we(l,Zv,o)},hd=D("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Hi.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:o})=>o.variant!=="filled"&&o.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Qv=D(hd,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ct,overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.select,o[n.variant],n.error&&o.error,{[`&.${Hi.multiple}`]:o.multiple}]}})({}),bd=D("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Hi.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:o})=>o.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),e0=D(bd,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.icon,n.variant&&o[`icon${F(n.variant)}`],n.open&&o.iconOpen]}})({}),yd=w.forwardRef(function(o,n){const{className:r,disabled:a,error:i,IconComponent:s,inputRef:l,variant:c="standard",...d}=o,p={...o,disabled:a,variant:c,error:i},g=Jv(p);return u.jsxs(w.Fragment,{children:[u.jsx(Qv,{ownerState:p,className:re(g.select,r),disabled:a,ref:l||n,...d}),o.multiple?null:u.jsx(e0,{as:s,ownerState:p,className:g.icon})]})});process.env.NODE_ENV!=="production"&&(yd.propTypes={children:t.node,classes:t.object,className:t.string,disabled:t.bool,error:t.bool,IconComponent:t.elementType.isRequired,inputRef:Pt,multiple:t.bool,name:t.string,onChange:t.func,value:t.any,variant:t.oneOf(["standard","outlined","filled"])});function vd(e){return xe("MuiSelect",e)}const On=Ce("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Tl;const t0=D(hd,{name:"MuiSelect",slot:"Select",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`&.${On.select}`]:o.select},{[`&.${On.select}`]:o[n.variant]},{[`&.${On.error}`]:o.error},{[`&.${On.multiple}`]:o.multiple}]}})({[`&.${On.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),o0=D(bd,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.icon,n.variant&&o[`icon${F(n.variant)}`],n.open&&o.iconOpen]}})({}),n0=D("input",{shouldForwardProp:e=>Kn(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Ol(e,o){return typeof o=="object"&&o!==null?e===o:String(e)===String(o)}function r0(e){return e==null||typeof e=="string"&&!e.trim()}const a0=e=>{const{classes:o,variant:n,disabled:r,multiple:a,open:i,error:s}=e,l={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${F(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return we(l,vd,o)},xd=w.forwardRef(function(o,n){const{"aria-describedby":r,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:d,defaultValue:p,disabled:g,displayEmpty:b,error:v=!1,IconComponent:h,inputRef:f,labelId:y,MenuProps:C={},multiple:O,name:S,onBlur:x,onChange:T,onClose:E,onFocus:j,onKeyDown:R,onMouseDown:I,onOpen:N,open:A,readOnly:m,renderValue:$,required:P,SelectDisplayProps:M={},tabIndex:k,type:z,value:V,variant:W="standard",...B}=o,[L,Y]=Qt({controlled:V,default:p,name:"Select"}),[Z,oe]=Qt({controlled:A,default:d,name:"Select"}),K=w.useRef(null),U=w.useRef(null),[ae,ce]=w.useState(null),{current:J}=w.useRef(A!=null),[X,de]=w.useState(),_=ot(n,f),se=w.useCallback(ye=>{U.current=ye,ye&&ce(ye)},[]),ie=ae?.parentNode;w.useImperativeHandle(_,()=>({focus:()=>{U.current.focus()},node:K.current,value:L}),[L]),w.useEffect(()=>{d&&Z&&ae&&!J&&(de(s?null:ie.clientWidth),U.current.focus())},[ae,s]),w.useEffect(()=>{i&&U.current.focus()},[i]),w.useEffect(()=>{if(!y)return;const ye=mt(U.current).getElementById(y);if(ye){const Ae=()=>{getSelection().isCollapsed&&U.current.focus()};return ye.addEventListener("click",Ae),()=>{ye.removeEventListener("click",Ae)}}},[y]);const pe=(ye,Ae)=>{ye?N&&N(Ae):E&&E(Ae),J||(de(s?null:ie.clientWidth),oe(ye))},ke=ye=>{I?.(ye),ye.button===0&&(ye.preventDefault(),U.current.focus(),pe(!0,ye))},Ee=ye=>{pe(!1,ye)},ee=w.Children.toArray(l),De=ye=>{const Ae=ee.find(Xe=>Xe.props.value===ye.target.value);Ae!==void 0&&(Y(Ae.props.value),T&&T(ye,Ae))},Se=ye=>Ae=>{let Xe;if(Ae.currentTarget.hasAttribute("tabindex")){if(O){Xe=Array.isArray(L)?L.slice():[];const gt=L.indexOf(ye.props.value);gt===-1?Xe.push(ye.props.value):Xe.splice(gt,1)}else Xe=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Ae),L!==Xe&&(Y(Xe),T)){const gt=Ae.nativeEvent||Ae,_e=new gt.constructor(gt.type,gt);Object.defineProperty(_e,"target",{writable:!0,value:{value:Xe,name:S}}),T(_e,ye)}O||pe(!1,Ae)}},he=ye=>{m||([" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),pe(!0,ye)),R?.(ye))},ne=ae!==null&&Z,ze=ye=>{!ne&&x&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:L,name:S}}),x(ye))};delete B["aria-invalid"];let Me,te;const Q=[];let be=!1,Oe=!1;(Ir({value:L})||b)&&($?Me=$(L):be=!0);const Pe=ee.map(ye=>{if(!w.isValidElement(ye))return null;process.env.NODE_ENV!=="production"&&Co.isFragment(ye)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
333
|
+
`));let Ae;if(O){if(!Array.isArray(L))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":oo(2));Ae=L.some(Xe=>Ol(Xe,ye.props.value)),Ae&&be&&Q.push(ye.props.children)}else Ae=Ol(L,ye.props.value),Ae&&be&&(te=ye.props.children);return Ae&&(Oe=!0),w.cloneElement(ye,{"aria-selected":Ae?"true":"false",onClick:Se(ye),onKeyUp:Xe=>{Xe.key===" "&&Xe.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(Xe)},role:"option",selected:Ae,value:void 0,"data-value":ye.props.value})});process.env.NODE_ENV!=="production"&&w.useEffect(()=>{if(!Oe&&!O&&L!==""){const ye=ee.map(Ae=>Ae.props.value);console.warn([`MUI: You have provided an out-of-range value \`${L}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ye.filter(Ae=>Ae!=null).map(Ae=>`\`${Ae}\``).join(", ")||'""'}.`].join(`
|
|
334
|
+
`))}},[Oe,ee,O,S,L]),be&&(O?Q.length===0?Me=null:Me=Q.reduce((ye,Ae,Xe)=>(ye.push(Ae),Xe<Q.length-1&&ye.push(", "),ye),[]):Me=te);let ve=X;!s&&J&&ae&&(ve=ie.clientWidth);let ue;typeof k<"u"?ue=k:ue=g?null:0;const Ve=M.id||(S?`mui-component-select-${S}`:void 0),Ne={...o,variant:W,value:L,open:ne,error:v},We=a0(Ne),Ot={...C.PaperProps,...typeof C.slotProps?.paper=="function"?C.slotProps.paper(Ne):C.slotProps?.paper},vt={...C.MenuListProps,...typeof C.slotProps?.list=="function"?C.slotProps.list(Ne):C.slotProps?.list},ut=uo();return u.jsxs(w.Fragment,{children:[u.jsx(t0,{as:"div",ref:se,tabIndex:ue,role:"combobox","aria-controls":ne?ut:void 0,"aria-disabled":g?"true":void 0,"aria-expanded":ne?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[y,Ve].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:he,onMouseDown:g||m?null:ke,onBlur:ze,onFocus:j,...M,ownerState:Ne,className:re(M.className,We.select,c),id:Ve,children:r0(Me)?Tl||(Tl=u.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Me}),u.jsx(n0,{"aria-invalid":v,value:Array.isArray(L)?L.join(","):L,name:S,ref:K,"aria-hidden":!0,onChange:De,tabIndex:-1,disabled:g,className:We.nativeInput,autoFocus:i,required:P,...B,ownerState:Ne}),u.jsx(o0,{as:h,className:We.icon,ownerState:Ne}),u.jsx(gd,{id:`menu-${S||""}`,anchorEl:ie,open:ne,onClose:Ee,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,slotProps:{...C.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:ut,...vt},paper:{...Ot,style:{minWidth:ve,...Ot!=null?Ot.style:null}}},children:Pe})]})});process.env.NODE_ENV!=="production"&&(xd.propTypes={"aria-describedby":t.string,"aria-label":t.string,autoFocus:t.bool,autoWidth:t.bool,children:t.node,classes:t.object,className:t.string,defaultOpen:t.bool,defaultValue:t.any,disabled:t.bool,displayEmpty:t.bool,error:t.bool,IconComponent:t.elementType.isRequired,inputRef:Pt,labelId:t.string,MenuProps:t.object,multiple:t.bool,name:t.string,onBlur:t.func,onChange:t.func,onClose:t.func,onFocus:t.func,onOpen:t.func,open:t.bool,readOnly:t.bool,renderValue:t.func,required:t.bool,SelectDisplayProps:t.object,tabIndex:t.oneOfType([t.number,t.string]),type:t.any,value:t.any,variant:t.oneOf(["standard","outlined","filled"])});const i0=e=>{const{classes:o}=e,r=we({root:["root"]},vd,o);return{...o,...r}},qi={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ct(e)&&e!=="variant"},s0=D(aa,qi)(""),l0=D(sa,qi)(""),c0=D(ia,qi)(""),ca=w.forwardRef(function(o,n){const r=Te({name:"MuiSelect",props:o}),{autoWidth:a=!1,children:i,classes:s={},className:l,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:p=rd,id:g,input:b,inputProps:v,label:h,labelId:f,MenuProps:y,multiple:C=!1,native:O=!1,onClose:S,onOpen:x,open:T,renderValue:E,SelectDisplayProps:j,variant:R="outlined",...I}=r,N=O?yd:xd,A=Yt(),m=ko({props:r,muiFormControl:A,states:["variant","error"]}),$=m.variant||R,P={...r,variant:$,classes:s},M=i0(P),{root:k,...z}=M,V=b||{standard:u.jsx(s0,{ownerState:P}),outlined:u.jsx(l0,{label:h,ownerState:P}),filled:u.jsx(c0,{ownerState:P})}[$],W=ot(n,Vo(V));return u.jsx(w.Fragment,{children:w.cloneElement(V,{inputComponent:N,inputProps:{children:i,error:m.error,IconComponent:p,variant:$,type:void 0,multiple:C,...O?{id:g}:{autoWidth:a,defaultOpen:c,displayEmpty:d,labelId:f,MenuProps:y,onClose:S,onOpen:x,open:T,renderValue:E,SelectDisplayProps:{id:g,...j}},...v,classes:v?Tt(z,v.classes):z,...b?b.props.inputProps:{}},...(C&&O||d)&&$==="outlined"?{notched:!0}:{},ref:W,className:re(V.props.className,l,M.root),...!b&&{variant:$},...I})})});process.env.NODE_ENV!=="production"&&(ca.propTypes={autoWidth:t.bool,children:t.node,classes:t.object,className:t.string,defaultOpen:t.bool,defaultValue:t.any,displayEmpty:t.bool,IconComponent:t.elementType,id:t.string,input:t.element,inputProps:t.object,label:t.node,labelId:t.string,MenuProps:t.object,multiple:t.bool,native:t.bool,onChange:t.func,onClose:t.func,onOpen:t.func,open:t.bool,renderValue:t.func,SelectDisplayProps:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:t.oneOfType([t.oneOf([""]),t.any]),variant:t.oneOf(["filled","outlined","standard"])});ca.muiName="Select";function d0(e){return xe("MuiTextField",e)}Ce("MuiTextField",["root"]);const p0={standard:aa,filled:ia,outlined:sa},u0=e=>{const{classes:o}=e;return we({root:["root"]},d0,o)},f0=D(la,{name:"MuiTextField",slot:"Root"})({}),gn=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiTextField"}),{autoComplete:a,autoFocus:i=!1,children:s,className:l,color:c="primary",defaultValue:d,disabled:p=!1,error:g=!1,FormHelperTextProps:b,fullWidth:v=!1,helperText:h,id:f,InputLabelProps:y,inputProps:C,InputProps:O,inputRef:S,label:x,maxRows:T,minRows:E,multiline:j=!1,name:R,onBlur:I,onChange:N,onFocus:A,placeholder:m,required:$=!1,rows:P,select:M=!1,SelectProps:k,slots:z={},slotProps:V={},type:W,value:B,variant:L="outlined",...Y}=r,Z={...r,autoFocus:i,color:c,disabled:p,error:g,fullWidth:v,multiline:j,required:$,select:M,variant:L},oe=u0(Z);process.env.NODE_ENV!=="production"&&M&&!s&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const K=uo(f),U=h&&K?`${K}-helper-text`:void 0,ae=x&&K?`${K}-label`:void 0,ce=p0[L],J={slots:z,slotProps:{input:O,inputLabel:y,htmlInput:C,formHelperText:b,select:k,...V}},X={},de=J.slotProps.inputLabel;L==="outlined"&&(de&&typeof de.shrink<"u"&&(X.notched=de.shrink),X.label=x),M&&((!k||!k.native)&&(X.id=void 0),X["aria-describedby"]=void 0);const[_,se]=ge("root",{elementType:f0,shouldForwardComponentProp:!0,externalForwardedProps:{...J,...Y},ownerState:Z,className:re(oe.root,l),ref:n,additionalProps:{disabled:p,error:g,fullWidth:v,required:$,color:c,variant:L}}),[ie,pe]=ge("input",{elementType:ce,externalForwardedProps:J,additionalProps:X,ownerState:Z}),[ke,Ee]=ge("inputLabel",{elementType:_i,externalForwardedProps:J,ownerState:Z}),[ee,De]=ge("htmlInput",{elementType:"input",externalForwardedProps:J,ownerState:Z}),[Se,he]=ge("formHelperText",{elementType:Wi,externalForwardedProps:J,ownerState:Z}),[ne,ze]=ge("select",{elementType:ca,externalForwardedProps:J,ownerState:Z}),Me=u.jsx(ie,{"aria-describedby":U,autoComplete:a,autoFocus:i,defaultValue:d,fullWidth:v,multiline:j,name:R,rows:P,maxRows:T,minRows:E,type:W,value:B,id:K,inputRef:S,onBlur:I,onChange:N,onFocus:A,placeholder:m,inputProps:De,slots:{input:z.htmlInput?ee:void 0},...pe});return u.jsxs(_,{...se,children:[x!=null&&x!==""&&u.jsx(ke,{htmlFor:K,id:ae,...Ee,children:x}),M?u.jsx(ne,{"aria-describedby":U,id:K,labelId:ae,value:B,input:Me,...ze,children:s}):Me,h&&u.jsx(Se,{id:U,...he,children:h})]})});process.env.NODE_ENV!=="production"&&(gn.propTypes={autoComplete:t.string,autoFocus:t.bool,children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["primary","secondary","error","info","success","warning"]),t.string]),defaultValue:t.any,disabled:t.bool,error:t.bool,FormHelperTextProps:t.object,fullWidth:t.bool,helperText:t.node,id:t.string,InputLabelProps:t.object,inputProps:t.object,InputProps:t.object,inputRef:Pt,label:t.node,margin:t.oneOf(["dense","none","normal"]),maxRows:t.oneOfType([t.number,t.string]),minRows:t.oneOfType([t.number,t.string]),multiline:t.bool,name:t.string,onBlur:t.func,onChange:t.func,onFocus:t.func,placeholder:t.string,required:t.bool,rows:t.oneOfType([t.number,t.string]),select:t.bool,SelectProps:t.object,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),slotProps:t.shape({formHelperText:t.oneOfType([t.func,t.object]),htmlInput:t.oneOfType([t.func,t.object]),input:t.oneOfType([t.func,t.object]),inputLabel:t.oneOfType([t.func,t.object]),select:t.oneOfType([t.func,t.object])}),slots:t.shape({formHelperText:t.elementType,htmlInput:t.elementType,input:t.elementType,inputLabel:t.elementType,root:t.elementType,select:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.string,value:t.any,variant:t.oneOf(["filled","outlined","standard"])});const Cd=st(u.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),m0=D(gn)(({theme:e,errorEstado:o})=>({"& .MuiOutlinedInput-root":{borderRadius:"12px",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.03):e.palette.common.white,paddingRight:"30px","& fieldset":{borderColor:o?e.palette.error.main:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.2):e.palette.grey[300],borderWidth:"1px",transition:"border-color 0.2s ease"},"&:hover fieldset":{borderColor:o?e.palette.error.dark:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.4):e.palette.grey[400]},"&.Mui-focused":{backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.05):e.palette.common.white,boxShadow:o?`0 0 0 4px ${le.alpha(e.palette.error.main,.1)}`:e.palette.mode==="dark"?`0 4px 12px 0 ${le.alpha(e.palette.common.black,.4)}`:`0 4px 12px 0 ${le.alpha(e.palette.primary.main,.1)}`},"&.Mui-focused fieldset":{borderWidth:"2px",borderColor:o?e.palette.error.main:e.palette.primary.main}},"& .MuiInputLabel-root":{color:o?e.palette.error.main:e.palette.text.secondary,"&.Mui-focused":{color:o?e.palette.error.main:e.palette.primary.main,fontWeight:600}}}));function wd({opciones:e,valor:o,alCambiar:n,etiqueta:r,textoAyuda:a,marcador:i,error:s,mensajeError:l,requerido:c,cargando:d,deshabilitado:p,soloLectura:g,limpiable:b=!0,multiple:v,propsEntrada:h,renderizarEntrada:f,...y}){const C=s&&l?l:a,O=S=>u.jsx(m0,{...S,label:r,placeholder:e.length===0&&!d?"No hay opciones":i,helperText:C,error:s,required:c,errorEstado:s,InputProps:{...S.InputProps,...h?.InputProps,endAdornment:u.jsxs(Re.Fragment,{children:[d?u.jsx(xo,{color:"inherit",size:20,sx:{marginRight:1}}):null,S.InputProps.endAdornment]})},...h});return u.jsx(ad,{options:e,value:o,onChange:n,loading:d,disabled:p,readOnly:g,disableClearable:!b,multiple:v,popupIcon:u.jsx(Cd,{}),renderInput:f||O,PaperComponent:S=>u.jsx(Oo,{...S,elevation:8,sx:{borderRadius:"16px",marginTop:"8px",border:x=>`1px solid ${x.palette.mode==="dark"?le.alpha(x.palette.common.white,.1):le.alpha(x.palette.common.black,.05)}`,boxShadow:x=>x.palette.mode==="dark"?"0 10px 40px -10px rgba(0,0,0,0.6)":"0 12px 30px -10px rgba(0,0,0,0.15)",overflow:"hidden","& .MuiAutocomplete-listbox":{padding:"8px","& .MuiAutocomplete-option":{borderRadius:"10px",margin:"2px 0",padding:"10px 14px",transition:"all 0.15s ease",fontSize:"0.9rem",'&[aria-selected="true"]':{backgroundColor:x=>le.alpha(x.palette.primary.main,x.palette.mode==="dark"?.2:.1),color:"primary.main",fontWeight:600,"&.Mui-focused":{backgroundColor:x=>le.alpha(x.palette.primary.main,x.palette.mode==="dark"?.3:.2)}},"&:hover":{backgroundColor:x=>x.palette.mode==="dark"?le.alpha(x.palette.common.white,.05):le.alpha(x.palette.common.black,.04),transform:"translateX(4px)"}},"& .MuiAutocomplete-noOptions":{color:"text.secondary",padding:"16px",textAlign:"center",fontSize:"0.9rem"}}}}),renderTags:(S,x)=>S.map((T,E)=>u.jsx(Qr,{label:typeof T=="string"?T:T.label||JSON.stringify(T),...x({index:E}),size:"small",sx:{borderRadius:"8px",backgroundColor:j=>le.alpha(j.palette.primary.main,.1),color:"primary.main",fontWeight:500,border:"1px solid",borderColor:j=>le.alpha(j.palette.primary.main,.2),"& .MuiChip-deleteIcon":{color:"primary.main","&:hover":{color:"primary.dark"}}}})),...y})}const g0=wd;function h0(e){return w.Children.toArray(e).filter(o=>w.isValidElement(o))}function b0(e){return xe("MuiButtonGroup",e)}const Le=Ce("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),y0=(e,o)=>{const{ownerState:n}=e;return[{[`& .${Le.grouped}`]:o.grouped},{[`& .${Le.grouped}`]:o[`grouped${F(n.orientation)}`]},{[`& .${Le.grouped}`]:o[`grouped${F(n.variant)}`]},{[`& .${Le.grouped}`]:o[`grouped${F(n.variant)}${F(n.orientation)}`]},{[`& .${Le.grouped}`]:o[`grouped${F(n.variant)}${F(n.color)}`]},{[`& .${Le.firstButton}`]:o.firstButton},{[`& .${Le.lastButton}`]:o.lastButton},{[`& .${Le.middleButton}`]:o.middleButton},o.root,o[n.variant],n.disableElevation===!0&&o.disableElevation,n.fullWidth&&o.fullWidth,n.orientation==="vertical"&&o.vertical]},v0=e=>{const{classes:o,color:n,disabled:r,disableElevation:a,fullWidth:i,orientation:s,variant:l}=e,c={root:["root",l,s,i&&"fullWidth",a&&"disableElevation",`color${F(n)}`],grouped:["grouped",`grouped${F(s)}`,`grouped${F(l)}`,`grouped${F(l)}${F(s)}`,`grouped${F(l)}${F(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return we(c,b0,o)},x0=D("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:y0})(me(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Le.lastButton},& .${Le.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Le.lastButton},& .${Le.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderRight:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Le.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottom:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Le.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(qe()).flatMap(([o])=>[{props:{variant:"text",color:o},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderColor:e.alpha((e.vars||e).palette[o].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Le.lastButton},& .${Le.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Le.lastButton},& .${Le.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Le.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Le.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(qe(["dark"])).map(([o])=>({props:{variant:"contained",color:o},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderColor:(e.vars||e).palette[o].dark}}}))],[`& .${Le.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),Sd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiButtonGroup"}),{children:a,className:i,color:s="primary",component:l="div",disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,disableRipple:g=!1,fullWidth:b=!1,orientation:v="horizontal",size:h="medium",variant:f="outlined",...y}=r,C={...r,color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:p,disableRipple:g,fullWidth:b,orientation:v,size:h,variant:f},O=v0(C),S=w.useMemo(()=>({className:O.grouped,color:s,disabled:c,disableElevation:d,disableFocusRipple:p,disableRipple:g,fullWidth:b,size:h,variant:f}),[s,c,d,p,g,b,h,f,O.grouped]),x=h0(a),T=x.length,E=j=>{const R=j===0,I=j===T-1;return R&&I?"":R?O.firstButton:I?O.lastButton:O.middleButton};return u.jsx(x0,{as:l,role:"group",className:re(O.root,i),ref:n,ownerState:C,...y,children:u.jsx(vi.Provider,{value:S,children:x.map((j,R)=>u.jsx(xi.Provider,{value:E(R),children:j},R))})})});process.env.NODE_ENV!=="production"&&(Sd.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","primary","secondary","error","info","success","warning"]),t.string]),component:t.elementType,disabled:t.bool,disableElevation:t.bool,disableFocusRipple:t.bool,disableRipple:t.bool,fullWidth:t.bool,orientation:t.oneOf(["horizontal","vertical"]),size:t.oneOfType([t.oneOf(["small","medium","large"]),t.string]),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOfType([t.oneOf(["contained","outlined","text"]),t.string])});const C0=D(Sd,{shouldForwardProp:e=>e!=="separado"&&e!=="radio"&&e!=="varianteCustom"})(({theme:e,separado:o,radio:n,varianteCustom:r})=>({boxShadow:o?"none":e.shadows[2],borderRadius:n||(o?0:12),backgroundColor:r==="cristal"?e.palette.mode==="dark"?le.alpha(e.palette.common.white,.05):le.alpha(e.palette.common.white,.6):"transparent",backdropFilter:r==="cristal"?"blur(8px)":"none",border:r==="cristal"?`1px solid ${e.palette.mode==="dark"?le.alpha(e.palette.common.white,.1):le.alpha(e.palette.common.white,.4)}`:"none",...o&&{boxShadow:"none",backgroundColor:"transparent",border:"none",gap:e.spacing(1),"& .MuiButtonGroup-grouped":{borderRadius:n||8,border:"none !important",boxShadow:e.shadows[1],"&:not(:last-of-type)":{borderRight:"none !important"}}},"& .MuiButtonGroup-firstButton, & .MuiButtonGroup-lastButton":{borderRadius:o?n||8:void 0}})),w0=({children:e,tamano:o="m",variante:n="contenido",color:r="primario",orientacion:a="horizontal",separado:i=!1,radio:s,...l})=>{const c=g=>g==="contenido"?"contained":g==="texto"?"text":g==="contorno"?"outlined":g==="cristal"?"text":"contained",d=g=>g==="primario"?"primary":g==="secundario"?"secondary":g==="exito"?"success":g==="error"?"error":g==="info"?"info":g==="advertencia"?"warning":g==="oscuro"||g==="claro"?"inherit":"primary",p=g=>g==="p"?"small":g==="m"?"medium":g==="g"?"large":"medium";return u.jsx(C0,{size:p(o),variant:c(n),color:d(r),orientation:a,separado:i,radio:s,varianteCustom:n,...l,children:e})};function S0(e){return xe("PrivateSwitchBase",e)}Ce("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const T0=e=>{const{classes:o,checked:n,disabled:r,edge:a}=e,i={root:["root",n&&"checked",r&&"disabled",a&&`edge${F(a)}`],input:["input"]};return we(i,S0,o)},O0=D(lo,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:o})=>e==="start"&&o.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:o})=>e==="end"&&o.size!=="small",style:{marginRight:-12}}]}),E0=D("input",{name:"MuiSwitchBase",shouldForwardProp:Ct})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),da=w.forwardRef(function(o,n){const{autoFocus:r,checked:a,checkedIcon:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:p,id:g,inputProps:b,inputRef:v,name:h,onBlur:f,onChange:y,onFocus:C,readOnly:O,required:S=!1,tabIndex:x,type:T,value:E,slots:j={},slotProps:R={},...I}=o,[N,A]=Qt({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),m=Yt(),$=K=>{C&&C(K),m&&m.onFocus&&m.onFocus(K)},P=K=>{f&&f(K),m&&m.onBlur&&m.onBlur(K)},M=K=>{if(K.nativeEvent.defaultPrevented)return;const U=K.target.checked;A(U),y&&y(K,U)};let k=l;m&&typeof k>"u"&&(k=m.disabled);const z=T==="checkbox"||T==="radio",V={...o,checked:N,disabled:k,disableFocusRipple:c,edge:d},W=T0(V),B={slots:j,slotProps:{input:b,...R}},[L,Y]=ge("root",{ref:n,elementType:O0,className:W.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",...I},getSlotProps:K=>({...K,onFocus:U=>{K.onFocus?.(U),$(U)},onBlur:U=>{K.onBlur?.(U),P(U)}}),ownerState:V,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:k,role:void 0,tabIndex:null}}),[Z,oe]=ge("input",{ref:v,elementType:E0,className:W.input,externalForwardedProps:B,getSlotProps:K=>({...K,onChange:U=>{K.onChange?.(U),M(U)}}),ownerState:V,additionalProps:{autoFocus:r,checked:a,defaultChecked:s,disabled:k,id:z?g:void 0,name:h,readOnly:O,required:S,tabIndex:x,type:T,...T==="checkbox"&&E===void 0?{}:{value:E}}});return u.jsxs(L,{...Y,children:[u.jsx(Z,{...oe}),N?i:p]})});process.env.NODE_ENV!=="production"&&(da.propTypes={autoFocus:t.bool,checked:t.bool,checkedIcon:t.node.isRequired,classes:t.object,className:t.string,defaultChecked:t.bool,disabled:t.bool,disableFocusRipple:t.bool,edge:t.oneOf(["end","start",!1]),icon:t.node.isRequired,id:t.string,inputProps:t.object,inputRef:Pt,name:t.string,onBlur:t.func,onChange:t.func,onFocus:t.func,readOnly:t.bool,required:t.bool,slotProps:t.shape({input:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({input:t.elementType,root:t.elementType}),sx:t.object,tabIndex:t.oneOfType([t.number,t.string]),type:t.string.isRequired,value:t.any});const k0=st(u.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),P0=st(u.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),R0=st(u.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function I0(e){return xe("MuiCheckbox",e)}const La=Ce("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),$0=e=>{const{classes:o,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${F(r)}`,`size${F(a)}`]},s=we(i,I0,o);return{...o,...s}},j0=D(da,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.indeterminate&&o.indeterminate,o[`size${F(n.size)}`],n.color!=="default"&&o[`color${F(n.color)}`]]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{[`&.${La.checked}, &.${La.indeterminate}`]:{color:(e.vars||e).palette[o].main},[`&.${La.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),M0=u.jsx(P0,{}),N0=u.jsx(k0,{}),A0=u.jsx(R0,{}),Mr=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiCheckbox"}),{checkedIcon:a=M0,color:i="primary",icon:s=N0,indeterminate:l=!1,indeterminateIcon:c=A0,inputProps:d,size:p="medium",disableRipple:g=!1,className:b,slots:v={},slotProps:h={},...f}=r,y=l?c:s,C=l?c:a,O={...r,disableRipple:g,color:i,indeterminate:l,size:p},S=$0(O),x=h.input??d,[T,E]=ge("root",{ref:n,elementType:j0,className:re(S.root,b),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:h,...f},ownerState:O,additionalProps:{type:"checkbox",icon:w.cloneElement(y,{fontSize:y.props.fontSize??p}),checkedIcon:w.cloneElement(C,{fontSize:C.props.fontSize??p}),disableRipple:g,slots:v,slotProps:{input:ac(typeof x=="function"?x(O):x,{"data-indeterminate":l})}}});return u.jsx(T,{...E,classes:S})});process.env.NODE_ENV!=="production"&&(Mr.propTypes={checked:t.bool,checkedIcon:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["default","primary","secondary","error","info","success","warning"]),t.string]),defaultChecked:t.bool,disabled:t.bool,disableRipple:t.bool,icon:t.node,id:t.string,indeterminate:t.bool,indeterminateIcon:t.node,inputProps:t.object,onChange:t.func,required:t.bool,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),slotProps:t.shape({input:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({input:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:t.any});function L0(e){return xe("MuiFormControlLabel",e)}const Mn=Ce("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),B0=e=>{const{classes:o,disabled:n,labelPlacement:r,error:a,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${F(r)}`,a&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",a&&"error"]};return we(s,L0,o)},D0=D("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${Mn.label}`]:o.label},o.root,o[`labelPlacement${F(n.labelPlacement)}`]]}})(me(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Mn.disabled}`]:{cursor:"default"},[`& .${Mn.label}`]:{[`&.${Mn.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:o})=>o==="start"||o==="top"||o==="bottom",style:{marginLeft:16}}]}))),z0=D("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(me(({theme:e})=>({[`&.${Mn.error}`]:{color:(e.vars||e).palette.error.main}}))),pa=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiFormControlLabel"}),{checked:a,className:i,componentsProps:s={},control:l,disabled:c,disableTypography:d,inputRef:p,label:g,labelPlacement:b="end",name:v,onChange:h,required:f,slots:y={},slotProps:C={},value:O,...S}=r,x=Yt(),T=c??l.props.disabled??x?.disabled,E=f??l.props.required,j={disabled:T,required:E};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof l.props[M]>"u"&&typeof r[M]<"u"&&(j[M]=r[M])});const R=ko({props:r,muiFormControl:x,states:["error"]}),I={...r,disabled:T,labelPlacement:b,required:E,error:R.error},N=B0(I),A={slots:y,slotProps:{...s,...C}},[m,$]=ge("typography",{elementType:nt,externalForwardedProps:A,ownerState:I});let P=g;return P!=null&&P.type!==nt&&!d&&(P=u.jsx(m,{component:"span",...$,className:re(N.label,$?.className),children:P})),u.jsxs(D0,{className:re(N.root,i),ownerState:I,ref:n,...S,children:[w.cloneElement(l,j),E?u.jsxs("div",{children:[P,u.jsxs(z0,{ownerState:I,"aria-hidden":!0,className:N.asterisk,children:[" ","*"]})]}):P]})});process.env.NODE_ENV!=="production"&&(pa.propTypes={checked:t.bool,classes:t.object,className:t.string,componentsProps:t.shape({typography:t.object}),control:t.element.isRequired,disabled:t.bool,disableTypography:t.bool,inputRef:Pt,label:t.node,labelPlacement:t.oneOf(["bottom","end","start","top"]),name:t.string,onChange:t.func,required:t.bool,slotProps:t.shape({typography:t.oneOfType([t.func,t.object])}),slots:t.shape({typography:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:t.any});function F0(e){return xe("MuiFormGroup",e)}Ce("MuiFormGroup",["root","row","error"]);const V0=e=>{const{classes:o,row:n,error:r}=e;return we({root:["root",n&&"row",r&&"error"]},F0,o)},_0=D("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.row&&o.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Gi=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiFormGroup"}),{className:a,row:i=!1,...s}=r,l=Yt(),c=ko({props:r,muiFormControl:l,states:["error"]}),d={...r,row:i,error:c.error},p=V0(d);return u.jsx(_0,{className:re(p.root,a),ownerState:d,ref:n,...s})});process.env.NODE_ENV!=="production"&&(Gi.propTypes={children:t.node,classes:t.object,className:t.string,row:t.bool,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});const Td=D("span")(({theme:e,tamanoPx:o,variante:n,error:r})=>({borderRadius:6,width:o,height:o,boxShadow:n==="borde"?`inset 0 0 0 2px ${e.palette.divider}`:e.palette.mode==="dark"?"0 0 0 1px rgb(16 22 26 / 40%)":"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:n==="borde"?"transparent":e.palette.mode==="dark"?"#394b59":"#f5f8fa",backgroundImage:n==="borde"?"none":e.palette.mode==="dark"?"linear-gradient(180deg,hsla(0,0%,100%,.05),hsla(0,0%,100%,0))":"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",".Mui-focusVisible &":{outline:"2px auto rgba(19,124,189,.6)",outlineOffset:2},"input:hover ~ &":{backgroundColor:e.palette.mode==="dark"?"#30404d":"#ebf1f5",borderColor:r?e.palette.error.main:e.palette.primary.main},"input:disabled ~ &":{boxShadow:"none",background:e.palette.mode==="dark"?"rgba(57,75,89,.5)":"rgba(206,217,224,.5)",cursor:"not-allowed"},...r&&{boxShadow:`inset 0 0 0 2px ${e.palette.error.main}`,backgroundColor:le.alpha(e.palette.error.main,.1)}})),Od=D(Td)(({theme:e,colorHex:o,variante:n})=>({backgroundColor:o,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))",boxShadow:`0 0 0 1px ${o}`,"&::before":{display:"block",width:"100%",height:"100%",backgroundImage:`url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E")`,content:'""',backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"80%"},"input:hover ~ &":{backgroundColor:o,filter:"brightness(95%)"}})),W0=D(Od)({"&::before":{backgroundImage:`url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='2' rx='1' fill='%23fff'/%3E%3C/svg%3E")`}}),Ki=Re.forwardRef(({etiqueta:e,posicionEtiqueta:o="derecha",seleccionado:n,indeterminado:r=!1,deshabilitado:a=!1,soloLectura:i=!1,requerido:s=!1,error:l=!1,tamano:c="m",color:d="primario",variante:p="estandar",alCambiar:g,sx:b,className:v,...h},f)=>{const y=jt(),O={p:16,m:20,g:24}[c],x={primario:y.palette.primary.main,secundario:y.palette.secondary.main,exito:y.palette.success.main,error:y.palette.error.main,info:y.palette.info.main,advertencia:y.palette.warning.main}[d]||y.palette.primary.main,T={derecha:"end",izquierda:"start",arriba:"top",abajo:"bottom"},E=u.jsx(Mr,{ref:f,checked:n,indeterminate:r,disabled:a,readOnly:i,required:s,onChange:g,sx:{"&:hover":{bgcolor:"transparent"},p:1,...b},disableRipple:!0,icon:u.jsx(Td,{tamanoPx:O,variante:p,error:l}),checkedIcon:u.jsx(Od,{tamanoPx:O,variante:p,colorHex:l?y.palette.error.main:x}),indeterminateIcon:u.jsx(W0,{tamanoPx:O,variante:p,colorHex:l?y.palette.error.main:x}),inputProps:{"aria-label":typeof e=="string"?e:"Casilla"},...h});return e?u.jsx(pa,{control:E,label:u.jsxs(nt,{variant:"body2",sx:{fontSize:c==="g"?"1rem":c==="p"?"0.8125rem":"0.875rem",color:a?"text.disabled":l?"error.main":"text.primary",fontWeight:500},children:[e," ",s&&u.jsx("span",{style:{color:y.palette.error.main},children:"*"})]}),labelPlacement:T[o],disabled:a,className:v,sx:{mx:0,gap:1,"&.MuiFormControlLabel-labelPlacementStart":{marginLeft:0,marginRight:0}}}):u.jsx("span",{className:v,children:E})});Ki.displayName="CodeplexCasilla";const U0=Ki;function H0(e){return xe("MuiInputAdornment",e)}const El=Ce("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var kl;const q0=(e,o)=>{const{ownerState:n}=e;return[o.root,o[`position${F(n.position)}`],n.disablePointerEvents===!0&&o.disablePointerEvents,o[n.variant]]},G0=e=>{const{classes:o,disablePointerEvents:n,hiddenLabel:r,position:a,size:i,variant:s}=e,l={root:["root",n&&"disablePointerEvents",a&&`position${F(a)}`,s,r&&"hiddenLabel",i&&`size${F(i)}`]};return we(l,H0,o)},K0=D("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:q0})(me(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${El.positionStart}&:not(.${El.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),zo=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiInputAdornment"}),{children:a,className:i,component:s="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:d,variant:p,...g}=r,b=Yt()||{};let v=p;p&&b.variant&&process.env.NODE_ENV!=="production"&&p===b.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),b&&!v&&(v=b.variant);const h={...r,hiddenLabel:b.hiddenLabel,size:b.size,disablePointerEvents:l,position:d,variant:v},f=G0(h);return u.jsx(er.Provider,{value:null,children:u.jsx(K0,{as:s,ownerState:h,className:re(f.root,i),ref:n,...g,children:typeof a=="string"&&!c?u.jsx(nt,{color:"textSecondary",children:a}):u.jsxs(w.Fragment,{children:[d==="start"?kl||(kl=u.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,a]})})})});process.env.NODE_ENV!=="production"&&(zo.propTypes={children:t.node,classes:t.object,className:t.string,component:t.elementType,disablePointerEvents:t.bool,disableTypography:t.bool,position:t.oneOf(["end","start"]).isRequired,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOf(["filled","outlined","standard"])});const Y0=st(u.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),X0=st(u.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),Z0=D(gn)(({theme:e,errorEstado:o})=>({"& .MuiOutlinedInput-root":{borderRadius:12,backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.03):le.alpha(e.palette.common.black,.01),transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","& fieldset":{borderColor:o?e.palette.error.main:e.palette.mode==="dark"?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.12)"},"&:hover":{backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.05):le.alpha(e.palette.common.black,.02)},"&:hover fieldset":{borderColor:o?e.palette.error.dark:e.palette.primary.main},"&.Mui-focused fieldset":{borderColor:o?e.palette.error.main:e.palette.primary.main,borderWidth:2,boxShadow:o?`0 0 0 4px ${le.alpha(e.palette.error.main,.1)}`:`0 0 0 4px ${le.alpha(e.palette.primary.main,.1)}`},"& input[type=number]":{"-moz-appearance":"textfield","&::-webkit-outer-spin-button":{"-webkit-appearance":"none",margin:0},"&::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0}},"& .MuiInputAdornment-root .MuiIconButton-root":{opacity:.5,transition:"all 0.2s","&:hover":{opacity:1,backgroundColor:le.alpha(e.palette.primary.main,.1)},"&.Mui-disabled":{opacity:.2}},"&:hover .MuiInputAdornment-root .MuiIconButton-root":{opacity:.7}},"& .MuiInputLabel-root":{color:o?e.palette.error.main:e.palette.text.secondary,"&.Mui-focused":{color:o?e.palette.error.main:e.palette.primary.main,fontWeight:600}}})),Ed=({etiqueta:e,textoAyuda:o,minimo:n,maximo:r,paso:a=1,valor:i,valorPorDefecto:s,alineacion:l="centro",mostrarControles:c=!0,error:d,mensajeError:p,deshabilitado:g,soloLectura:b,anchoCompleto:v=!1,alCambiar:h,InputProps:f,...y})=>{const C=i!==void 0,[O,S]=Re.useState(C?i?.toString()??"":s?.toString()??"");Re.useEffect(()=>{C&&S(i?.toString()??"")},[i,C]);const x=O,T=A=>{if(A===""||A==="-"){S(A),A===""&&!C&&h?.(null);return}const m=parseFloat(A);isNaN(m)||(C||S(A),h?.(m))},E=()=>{let A=parseFloat(O);if(isNaN(A))return void 0;let m=A;typeof n=="number"&&A<n&&(m=n),typeof r=="number"&&A>r&&(m=r),m!==A&&(C||S(m.toString()),h?.(m))},j=()=>{let m=parseFloat(x||"0")+a;m=Math.round(m*1e4)/1e4,!(r!==void 0&&m>r)&&(C||S(m.toString()),h?.(m))},R=()=>{let m=parseFloat(x||"0")-a;m=Math.round(m*1e4)/1e4,!(n!==void 0&&m<n)&&(C||S(m.toString()),h?.(m))},I={izquierda:"left",centro:"center",derecha:"right"},N=d&&p?p:o;return u.jsx(Z0,{type:"number",label:e,value:x,onChange:A=>T(A.target.value),onBlur:E,disabled:g,error:d,helperText:N,fullWidth:v,errorEstado:d,InputProps:{readOnly:b,startAdornment:c?u.jsx(zo,{position:"start",children:u.jsx(an,{onClick:R,disabled:g||b||n!==void 0&&parseFloat(x||"0")<=n,edge:"start",size:"small",children:u.jsx(X0,{fontSize:"small"})})}):null,endAdornment:c?u.jsx(zo,{position:"end",children:u.jsx(an,{onClick:j,disabled:g||b||r!==void 0&&parseFloat(x||"0")>=r,edge:"end",size:"small",children:u.jsx(Y0,{fontSize:"small"})})}):null,sx:{"& input":{textAlign:I[l]||"center"},paddingRight:c?void 0:"14px"},...f},...y})},J0=Ed,Q0=st(u.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),ex=st(u.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),tx=D("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Ct})({position:"relative",display:"flex"}),ox=D(Q0,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),nx=D(ex,{name:"MuiRadioButtonIcon"})(me(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Yi(e){const{checked:o=!1,classes:n={},fontSize:r}=e,a={...e,checked:o};return u.jsxs(tx,{className:n.root,ownerState:a,children:[u.jsx(ox,{fontSize:r,className:n.background,ownerState:a}),u.jsx(nx,{fontSize:r,className:n.dot,ownerState:a})]})}process.env.NODE_ENV!=="production"&&(Yi.propTypes={checked:t.bool,classes:t.object,fontSize:t.oneOf(["small","medium"])});const Xi=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(Xi.displayName="RadioGroupContext");function rx(){return w.useContext(Xi)}function ax(e){return xe("MuiRadio",e)}const Pl=Ce("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ix=e=>{const{classes:o,color:n,size:r}=e,a={root:["root",`color${F(n)}`,r!=="medium"&&`size${F(r)}`]};return{...o,...we(a,ax,o)}},sx=D(da,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.size!=="medium"&&o[`size${F(n.size)}`],o[`color${F(n.color)}`]]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Pl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o,disabled:!1},style:{[`&.${Pl.checked}`]:{color:(e.vars||e).palette[o].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function lx(e,o){return typeof o=="object"&&o!==null?e===o:String(e)===String(o)}const cx=u.jsx(Yi,{checked:!0}),dx=u.jsx(Yi,{}),kd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiRadio"}),{checked:a,checkedIcon:i=cx,color:s="primary",icon:l=dx,name:c,onChange:d,size:p="medium",className:g,disabled:b,disableRipple:v=!1,slots:h={},slotProps:f={},inputProps:y,...C}=r,O=Yt();let S=b;O&&typeof S>"u"&&(S=O.disabled),S??=!1;const x={...r,disabled:S,disableRipple:v,color:s,size:p},T=ix(x),E=rx();let j=a;const R=Da(d,E&&E.onChange);let I=c;E&&(typeof j>"u"&&(j=lx(E.value,r.value)),typeof I>"u"&&(I=E.name));const N=f.input??y,[A,m]=ge("root",{ref:n,elementType:sx,className:re(T.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:f,...C},getSlotProps:$=>({...$,onChange:(P,...M)=>{$.onChange?.(P,...M),R(P,...M)}}),ownerState:x,additionalProps:{type:"radio",icon:w.cloneElement(l,{fontSize:l.props.fontSize??p}),checkedIcon:w.cloneElement(i,{fontSize:i.props.fontSize??p}),disabled:S,name:I,checked:j,slots:h,slotProps:{input:typeof N=="function"?N(x):N}}});return u.jsx(A,{...m,classes:T})});process.env.NODE_ENV!=="production"&&(kd.propTypes={checked:t.bool,checkedIcon:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["default","primary","secondary","error","info","success","warning"]),t.string]),disabled:t.bool,disableRipple:t.bool,icon:t.node,id:t.string,inputProps:t.object,inputRef:Pt,name:t.string,onChange:t.func,required:t.bool,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),slotProps:t.shape({input:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({input:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:t.any});function px(e){return xe("MuiRadioGroup",e)}Ce("MuiRadioGroup",["root","row","error"]);const ux=e=>{const{classes:o,row:n,error:r}=e;return we({root:["root",n&&"row",r&&"error"]},px,o)},Pd=w.forwardRef(function(o,n){const{actions:r,children:a,className:i,defaultValue:s,name:l,onChange:c,value:d,...p}=o,g=w.useRef(null),b=ux(o),[v,h]=Qt({controlled:d,default:s,name:"RadioGroup"});w.useImperativeHandle(r,()=>({focus:()=>{let O=g.current.querySelector("input:not(:disabled):checked");O||(O=g.current.querySelector("input:not(:disabled)")),O&&O.focus()}}),[]);const f=ot(n,g),y=uo(l),C=w.useMemo(()=>({name:y,onChange(O){h(O.target.value),c&&c(O,O.target.value)},value:v}),[y,c,h,v]);return u.jsx(Xi.Provider,{value:C,children:u.jsx(Gi,{role:"radiogroup",ref:f,className:re(b.root,i),...p,children:a})})});process.env.NODE_ENV!=="production"&&(Pd.propTypes={children:t.node,className:t.string,defaultValue:t.any,name:t.string,onChange:t.func,value:t.any});const Rd=D("span")(({theme:e})=>({borderRadius:"50%",width:20,height:20,boxShadow:e.palette.mode==="dark"?"0 0 0 1px rgb(16 22 26 / 40%)":"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:e.palette.mode==="dark"?"#394b59":"#f5f8fa",backgroundImage:e.palette.mode==="dark"?"linear-gradient(180deg,hsla(0,0%,100%,.05),hsla(0,0%,100%,0))":"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",".Mui-focusVisible &":{outline:"2px auto rgba(19,124,189,.6)",outlineOffset:2},"input:hover ~ &":{backgroundColor:e.palette.mode==="dark"?"#30404d":"#ebf1f5"},"input:disabled ~ &":{boxShadow:"none",background:e.palette.mode==="dark"?"rgba(57,75,89,.5)":"rgba(206,217,224,.5)"}})),fx=D(Rd)({backgroundColor:"#137cbd",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&::before":{display:"block",width:20,height:20,backgroundImage:"radial-gradient(#fff,#fff 28%,transparent 32%)",content:'""'},"input:hover ~ &":{backgroundColor:"#106ba3"}}),Zi=Re.forwardRef(({etiqueta:e,posicionEtiqueta:o,sx:n,...r},a)=>{const i=u.jsx(kd,{ref:a,sx:{"&:hover":{bgcolor:"transparent"},...n},disableRipple:!0,color:"default",checkedIcon:u.jsx(fx,{}),icon:u.jsx(Rd,{}),...r});return e?u.jsx(pa,{control:i,label:e,labelPlacement:o,sx:{"& .MuiFormControlLabel-label":{fontSize:"0.95rem",fontWeight:500,userSelect:"none"}}}):i});Zi.displayName="CodeplexRadio";const Id=({etiqueta:e,opciones:o,orientacion:n="vertical",valor:r,alCambiar:a,color:i,error:s,mensajeError:l,children:c,...d})=>{const p=o?o.map(b=>({value:b.valor,label:b.etiqueta,disabled:b.deshabilitado})):null,g=u.jsx(Pd,{row:n==="horizontal",value:r,onChange:a,...d,children:p?p.map(b=>u.jsx(Zi,{value:b.value,etiqueta:b.label,disabled:b.disabled},b.value)):c});return e||s?u.jsxs(la,{component:"fieldset",error:s,children:[e&&u.jsx($r,{component:"legend",className:"mb-2 font-semibold",sx:{"&.Mui-focused":{color:s?"error.main":"primary.main"}},children:e}),g,s&&l&&u.jsx($r,{error:!0,sx:{fontSize:"0.75rem",marginTop:.5},children:l})]}):g},mx=Id;function gx(e){return xe("MuiDivider",e)}const Rl=Ce("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),hx=e=>{const{absolute:o,children:n,classes:r,flexItem:a,light:i,orientation:s,textAlign:l,variant:c}=e;return we({root:["root",o&&"absolute",c,i&&"light",s==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},gx,r)},bx=D("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.absolute&&o.absolute,o[n.variant],n.light&&o.light,n.orientation==="vertical"&&o.vertical,n.flexItem&&o.flexItem,n.children&&o.withChildren,n.children&&n.orientation==="vertical"&&o.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&o.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&o.textAlignLeft]}})(me(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:o})=>!!o.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:o})=>o.children&&o.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:o})=>o.orientation==="vertical"&&o.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:o})=>o.textAlign==="right"&&o.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:o})=>o.textAlign==="left"&&o.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),yx=D("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.wrapper,n.orientation==="vertical"&&o.wrapperVertical]}})(me(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Un=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiDivider"}),{absolute:a=!1,children:i,className:s,orientation:l="horizontal",component:c=i||l==="vertical"?"div":"hr",flexItem:d=!1,light:p=!1,role:g=c!=="hr"?"separator":void 0,textAlign:b="center",variant:v="fullWidth",...h}=r,f={...r,absolute:a,component:c,flexItem:d,light:p,orientation:l,role:g,textAlign:b,variant:v},y=hx(f);return u.jsx(bx,{as:c,className:re(y.root,s),role:g,ref:n,ownerState:f,"aria-orientation":g==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...h,children:i?u.jsx(yx,{className:y.wrapper,ownerState:f,children:i}):null})});Un&&(Un.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Un.propTypes={absolute:t.bool,children:t.node,classes:t.object,className:t.string,component:t.elementType,flexItem:t.bool,light:t.bool,orientation:t.oneOf(["horizontal","vertical"]),role:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),textAlign:t.oneOf(["center","left","right"]),variant:t.oneOfType([t.oneOf(["fullWidth","inset","middle"]),t.string])});function vx(e){return xe("MuiListItemIcon",e)}const Il=Ce("MuiListItemIcon",["root","alignItemsFlexStart"]),xx=e=>{const{alignItems:o,classes:n}=e;return we({root:["root",o==="flex-start"&&"alignItemsFlexStart"]},vx,n)},Cx=D("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.alignItems==="flex-start"&&o.alignItemsFlexStart]}})(me(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),$d=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiListItemIcon"}),{className:a,...i}=r,s=w.useContext(_t),l={...r,alignItems:s.alignItems},c=xx(l);return u.jsx(Cx,{className:re(c.root,a),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&($d.propTypes={children:t.node,classes:t.object,className:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function wx(e){return xe("MuiListItemText",e)}const tn=Ce("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Sx=e=>{const{classes:o,inset:n,primary:r,secondary:a,dense:i}=e;return we({root:["root",n&&"inset",i&&"dense",r&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},wx,o)},Tx=D("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${tn.primary}`]:o.primary},{[`& .${tn.secondary}`]:o.secondary},o.root,n.inset&&o.inset,n.primary&&n.secondary&&o.multiline,n.dense&&o.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Or.root}:where(& .${tn.primary})`]:{display:"block"},[`.${Or.root}:where(& .${tn.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),jd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiListItemText"}),{children:a,className:i,disableTypography:s=!1,inset:l=!1,primary:c,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:g,slots:b={},slotProps:v={},...h}=r,{dense:f}=w.useContext(_t);let y=c??a,C=p;const O={...r,disableTypography:s,inset:l,primary:!!y,secondary:!!C,dense:f},S=Sx(O),x={slots:b,slotProps:{primary:d,secondary:g,...v}},[T,E]=ge("root",{className:re(S.root,i),elementType:Tx,externalForwardedProps:{...x,...h},ownerState:O,ref:n}),[j,R]=ge("primary",{className:S.primary,elementType:nt,externalForwardedProps:x,ownerState:O}),[I,N]=ge("secondary",{className:S.secondary,elementType:nt,externalForwardedProps:x,ownerState:O});return y!=null&&y.type!==nt&&!s&&(y=u.jsx(j,{variant:f?"body2":"body1",component:R?.variant?void 0:"span",...R,children:y})),C!=null&&C.type!==nt&&!s&&(C=u.jsx(I,{variant:"body2",color:"textSecondary",...N,children:C})),u.jsxs(T,{...E,children:[y,C]})});process.env.NODE_ENV!=="production"&&(jd.propTypes={children:t.node,classes:t.object,className:t.string,disableTypography:t.bool,inset:t.bool,primary:t.node,primaryTypographyProps:t.object,secondary:t.node,secondaryTypographyProps:t.object,slotProps:t.shape({primary:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),secondary:t.oneOfType([t.func,t.object])}),slots:t.shape({primary:t.elementType,root:t.elementType,secondary:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function Ox(e){return xe("MuiMenuItem",e)}const En=Ce("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ex=(e,o)=>{const{ownerState:n}=e;return[o.root,n.dense&&o.dense,n.divider&&o.divider,!n.disableGutters&&o.gutters]},kx=e=>{const{disabled:o,dense:n,divider:r,disableGutters:a,selected:i,classes:s}=e,c=we({root:["root",n&&"dense",o&&"disabled",!a&&"gutters",r&&"divider",i&&"selected"]},Ox,s);return{...s,...c}},Px=D(lo,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Ex})(me(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${En.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${En.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${En.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${En.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Rl.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Rl.inset}`]:{marginLeft:52},[`& .${tn.root}`]:{marginTop:0,marginBottom:0},[`& .${tn.inset}`]:{paddingLeft:36},[`& .${Il.root}`]:{minWidth:36},variants:[{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:o})=>o.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:o})=>!o.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:o})=>o.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Il.root} svg`]:{fontSize:"1.25rem"}}}]}))),nn=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiMenuItem"}),{autoFocus:a=!1,component:i="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:g,className:b,...v}=r,h=w.useContext(_t),f=w.useMemo(()=>({dense:s||h.dense||!1,disableGutters:c}),[h.dense,s,c]),y=w.useRef(null);Wt(()=>{a&&(y.current?y.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[a]);const C={...r,dense:f.dense,divider:l,disableGutters:c},O=kx(r),S=ot(y,n);let x;return r.disabled||(x=g!==void 0?g:-1),u.jsx(_t.Provider,{value:f,children:u.jsx(Px,{ref:S,role:p,tabIndex:x,component:i,focusVisibleClassName:re(O.focusVisible,d),className:re(O.root,b),...v,ownerState:C,classes:O})})});process.env.NODE_ENV!=="production"&&(nn.propTypes={autoFocus:t.bool,children:t.node,classes:t.object,className:t.string,component:t.elementType,dense:t.bool,disabled:t.bool,disableGutters:t.bool,divider:t.bool,focusVisibleClassName:t.string,role:t.string,selected:t.bool,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),tabIndex:t.number});const Md=st(u.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),Rx=D(ca)(({theme:e})=>({borderRadius:12,backgroundColor:e.palette.mode==="dark"?"rgba(255,255,255,0.05)":"#fff",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","& .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.mode==="dark"?"rgba(255,255,255,0.2)":"rgba(0,0,0,0.15)",transition:"all 0.2s"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary.main},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2,boxShadow:`0 0 0 4px ${e.palette.mode==="dark"?"rgba(96, 165, 250, 0.2)":"rgba(37, 99, 235, 0.1)"}`},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main},"&.Mui-error.Mui-focused .MuiOutlinedInput-notchedOutline":{boxShadow:`0 0 0 4px ${e.palette.mode==="dark"?"rgba(239, 68, 68, 0.2)":"rgba(220, 38, 38, 0.1)"}`}})),Ix=D(nn)(({theme:e})=>({position:"sticky",bottom:0,backgroundColor:e.palette.background.paper,borderTop:`1px solid ${e.palette.divider}`,color:e.palette.primary.main,fontWeight:600,zIndex:1,"&:hover":{backgroundColor:e.palette.action.hover},display:"flex",justifyContent:"center",textAlign:"center"})),$x=D(fn)(({theme:e})=>({position:"sticky",top:0,zIndex:2,backgroundColor:e.palette.background.paper,padding:"8px 16px",borderBottom:`1px solid ${e.palette.divider}`,lineHeight:"initial"})),Nd=({value:e,onChange:o,size:n,multiple:r=!1,error:a,disabled:i,required:s,variant:l="outlined",displayEmpty:c,etiqueta:d,opciones:p,textoAyuda:g,marcador:b,renderizarValor:v,alCambiar:h,tamano:f,alCrearNuevo:y,textoCrearNuevo:C="Agregar opción...",mensajeError:O,buscable:S,children:x,sx:T,...E})=>{const j=jt(),R=h||o,I=f||n,[N,A]=Re.useState(""),m=Re.useMemo(()=>$(p),[p]);function $(L){return L?L.map(Y=>({value:Y.valor,label:Y.etiqueta,disabled:Y.deshabilitado})):[]}const P=Re.useMemo(()=>{if(!S||!N.trim())return m;const L=N.toLowerCase();return m.filter(Y=>String(Y.label).toLowerCase().includes(L))},[m,N,S]),M=L=>{if(R){const Z={target:{value:Array.isArray(e)?e.filter(oe=>oe!==L):[],name:E.name}};R(Z,null)}},k=e===""||e===null||Array.isArray(e)&&e.length===0,z=L=>{if(v)return v(L);if(r){const Y=Array.isArray(L)?L:[L];return m.length>0?u.jsx(Ue,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:Y.map(Z=>{const oe=m.find(K=>K.value===Z);return u.jsx(Qr,{label:oe?.label||Z,size:"small",onDelete:()=>M(Z),onMouseDown:K=>K.stopPropagation(),sx:{borderRadius:"8px",backgroundColor:K=>le.alpha(K.palette.primary.main,.1),color:j.palette.primary.main,fontWeight:500,border:"1px solid",borderColor:K=>le.alpha(K.palette.primary.main,.2),"& .MuiChip-deleteIcon":{color:j.palette.primary.main,"&:hover":{color:j.palette.primary.dark}}}},Z)})}):Y.join(", ")}return m.length>0?(L===""||L===null)&&b?u.jsx("span",{style:{color:j.palette.text.disabled},children:b}):m.find(Z=>Z.value===L)?.label||L:L},V=v||r||m.length>0,W=!k||!!b,B=a&&O?O:g;return u.jsxs(la,{fullWidth:!0,error:a,disabled:i,required:s,variant:l,sx:{minWidth:120,my:1,...T},children:[d&&u.jsx(_i,{id:`select-label-${d}`,shrink:W,children:d}),u.jsxs(Rx,{labelId:d?`select-label-${d}`:void 0,label:d,value:e,onChange:R,size:I,multiple:r,displayEmpty:!!b||c,renderValue:V?z:void 0,IconComponent:Cd,onClose:()=>A(""),MenuProps:{autoFocus:!1,PaperProps:{elevation:0,sx:{mt:1.5,borderRadius:3,boxShadow:"0 8px 32px rgba(0,0,0,0.12)",border:"1px solid",borderColor:j.palette.mode==="dark"?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.05)",maxHeight:320,paddingBottom:y?0:1,"& .MuiMenuItem-root":{borderRadius:1.5,mx:1,my:.5,py:1,fontSize:"0.95rem",transition:"all 0.2s","&:hover":{backgroundColor:j.palette.action.hover,pl:2.5},"&.Mui-selected":{backgroundColor:j.palette.primary.light,color:j.palette.primary.contrastText,fontWeight:600,"&:hover":{backgroundColor:j.palette.primary.main}}}}}},...E,children:[S&&u.jsx($x,{children:u.jsx(gn,{size:"small",fullWidth:!0,placeholder:"Buscar...",value:N,onChange:L=>A(L.target.value),onKeyDown:L=>L.stopPropagation(),InputProps:{startAdornment:u.jsx(zo,{position:"start",children:u.jsx(Md,{fontSize:"small",color:"action"})})},sx:{"& .MuiOutlinedInput-root":{borderRadius:2,backgroundColor:j.palette.action.hover,"& fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"}}}})}),b&&u.jsx(nn,{value:"",disabled:!0,sx:{display:"none"},children:u.jsx("span",{style:{color:j.palette.text.disabled},children:b})}),P.length>0?P.map(L=>u.jsx(nn,{value:L.value,disabled:L.disabled,children:L.label},L.value)):S&&P.length===0&&N?u.jsx(nn,{disabled:!0,children:u.jsx("span",{style:{opacity:.7},children:"No hay resultados"})}):x,y&&u.jsxs(Ix,{onClick:L=>{L.stopPropagation(),y()},value:"",disableRipple:!0,children:["+ ",C]})]}),B&&u.jsx(Wi,{children:B})]})},jx=Nd;function Mx(e,o,n=(r,a)=>r===a){return e.length===o.length&&e.every((r,a)=>n(r,o[a]))}const Nx=2;function Zo(e,o,n,r,a){return n===1?Math.min(e+o,a):Math.max(e-o,r)}function Ad(e,o){return e-o}function $l(e,o){const{index:n}=e.reduce((r,a,i)=>{const s=Math.abs(o-a);return r===null||s<r.distance||s===r.distance?{distance:s,index:i}:r},null)??{};return n}function ur(e,o){if(o.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const a=n.changedTouches[r];if(a.identifier===o.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Nr(e,o,n){return(e-o)*100/(n-o)}function Ax(e,o,n){return(n-o)*e+o}function Lx(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const o=e.toString().split(".")[1];return o?o.length:0}function Bx(e,o,n){const r=Math.round((e-n)/o)*o+n;return Number(r.toFixed(Lx(o)))}function jl({values:e,newValue:o,index:n}){const r=e.slice();return r[n]=o,r.sort(Ad)}function fr({sliderRef:e,activeIndex:o,setActive:n}){const r=mt(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==o)&&e.current?.querySelector(`[type="range"][data-index="${o}"]`).focus(),n&&n(o)}function mr(e,o){return typeof e=="number"&&typeof o=="number"?e===o:typeof e=="object"&&typeof o=="object"?Mx(e,o):!1}const Dx={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},zx=e=>e;let gr;function Ml(){return gr===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?gr=CSS.supports("touch-action","none"):gr=!0),gr}function Fx(e){const{"aria-labelledby":o,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:s=!1,max:l=100,min:c=0,name:d,onChange:p,onChangeCommitted:g,orientation:b="horizontal",rootRef:v,scale:h=zx,step:f=1,shiftStep:y=10,tabIndex:C,value:O}=e,S=w.useRef(void 0),[x,T]=w.useState(-1),[E,j]=w.useState(-1),[R,I]=w.useState(!1),N=w.useRef(0),A=w.useRef(null),[m,$]=Qt({controlled:O,default:n??c,name:"Slider"}),P=p&&((te,Q,be)=>{const Oe=te.nativeEvent||te,Pe=new Oe.constructor(Oe.type,Oe);Object.defineProperty(Pe,"target",{writable:!0,value:{value:Q,name:d}}),A.current=Q,p(Pe,Q,be)}),M=Array.isArray(m);let k=M?m.slice().sort(Ad):[m];k=k.map(te=>te==null?c:jo(te,c,l));const z=s===!0&&f!==null?[...Array(Math.floor((l-c)/f)+1)].map((te,Q)=>({value:c+f*Q})):s||[],V=z.map(te=>te.value),[W,B]=w.useState(-1),L=w.useRef(null),Y=ot(v,L),Z=te=>Q=>{const be=Number(Q.currentTarget.getAttribute("data-index"));So(Q.target)&&B(be),j(be),te?.onFocus?.(Q)},oe=te=>Q=>{So(Q.target)||B(-1),j(-1),te?.onBlur?.(Q)},K=(te,Q)=>{const be=Number(te.currentTarget.getAttribute("data-index")),Oe=k[be],Pe=V.indexOf(Oe);let ve=Q;if(z&&f==null){const ue=V[V.length-1];ve>=ue?ve=ue:ve<=V[0]?ve=V[0]:ve=ve<Oe?V[Pe-1]:V[Pe+1]}if(ve=jo(ve,c,l),M){a&&(ve=jo(ve,k[be-1]||-1/0,k[be+1]||1/0));const ue=ve;ve=jl({values:k,newValue:ve,index:be});let Ve=be;a||(Ve=ve.indexOf(ue)),fr({sliderRef:L,activeIndex:Ve})}$(ve),B(be),P&&!mr(ve,m)&&P(te,ve,be),g&&g(te,A.current??ve)},U=te=>Q=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Q.key)){Q.preventDefault();const be=Number(Q.currentTarget.getAttribute("data-index")),Oe=k[be];let Pe=null;if(f!=null){const ve=Q.shiftKey?y:f;switch(Q.key){case"ArrowUp":Pe=Zo(Oe,ve,1,c,l);break;case"ArrowRight":Pe=Zo(Oe,ve,i?-1:1,c,l);break;case"ArrowDown":Pe=Zo(Oe,ve,-1,c,l);break;case"ArrowLeft":Pe=Zo(Oe,ve,i?1:-1,c,l);break;case"PageUp":Pe=Zo(Oe,y,1,c,l);break;case"PageDown":Pe=Zo(Oe,y,-1,c,l);break;case"Home":Pe=c;break;case"End":Pe=l;break}}else if(z){const ve=V[V.length-1],ue=V.indexOf(Oe),Ve=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Ne=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ve.includes(Q.key)?ue===0?Pe=V[0]:Pe=V[ue-1]:Ne.includes(Q.key)&&(ue===V.length-1?Pe=ve:Pe=V[ue+1])}Pe!=null&&K(Q,Pe)}te?.onKeyDown?.(Q)};Wt(()=>{r&&L.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&x!==-1&&T(-1),r&&W!==-1&&B(-1);const ae=te=>Q=>{te.onChange?.(Q),K(Q,Q.target.valueAsNumber)},ce=w.useRef(void 0);let J=b;i&&b==="horizontal"&&(J+="-reverse");const X=({finger:te,move:Q=!1})=>{const{current:be}=L,{width:Oe,height:Pe,bottom:ve,left:ue}=be.getBoundingClientRect();let Ve;J.startsWith("vertical")?Ve=(ve-te.y)/Pe:Ve=(te.x-ue)/Oe,J.includes("-reverse")&&(Ve=1-Ve);let Ne;if(Ne=Ax(Ve,c,l),f)Ne=Bx(Ne,f,c);else{const Ot=$l(V,Ne);Ne=V[Ot]}Ne=jo(Ne,c,l);let We=0;if(M){Q?We=ce.current:We=$l(k,Ne),a&&(Ne=jo(Ne,k[We-1]||-1/0,k[We+1]||1/0));const Ot=Ne;Ne=jl({values:k,newValue:Ne,index:We}),a&&Q||(We=Ne.indexOf(Ot),ce.current=We)}return{newValue:Ne,activeIndex:We}},de=bt(te=>{const Q=ur(te,S);if(!Q)return;if(N.current+=1,te.type==="mousemove"&&te.buttons===0){_(te);return}const{newValue:be,activeIndex:Oe}=X({finger:Q,move:!0});fr({sliderRef:L,activeIndex:Oe,setActive:T}),$(be),!R&&N.current>Nx&&I(!0),P&&!mr(be,m)&&P(te,be,Oe)}),_=bt(te=>{const Q=ur(te,S);if(I(!1),!Q)return;const{newValue:be}=X({finger:Q,move:!0});T(-1),te.type==="touchend"&&j(-1),g&&g(te,A.current??be),S.current=void 0,ie()}),se=bt(te=>{if(r)return;Ml()||te.preventDefault();const Q=te.changedTouches[0];Q!=null&&(S.current=Q.identifier);const be=ur(te,S);if(be!==!1){const{newValue:Pe,activeIndex:ve}=X({finger:be});fr({sliderRef:L,activeIndex:ve,setActive:T}),$(Pe),P&&!mr(Pe,m)&&P(te,Pe,ve)}N.current=0;const Oe=mt(L.current);Oe.addEventListener("touchmove",de,{passive:!0}),Oe.addEventListener("touchend",_,{passive:!0})}),ie=w.useCallback(()=>{const te=mt(L.current);te.removeEventListener("mousemove",de),te.removeEventListener("mouseup",_),te.removeEventListener("touchmove",de),te.removeEventListener("touchend",_)},[_,de]);w.useEffect(()=>{const{current:te}=L;return te.addEventListener("touchstart",se,{passive:Ml()}),()=>{te.removeEventListener("touchstart",se),ie()}},[ie,se]),w.useEffect(()=>{r&&ie()},[r,ie]);const pe=te=>Q=>{if(te.onMouseDown?.(Q),r||Q.defaultPrevented||Q.button!==0)return;Q.preventDefault();const be=ur(Q,S);if(be!==!1){const{newValue:Pe,activeIndex:ve}=X({finger:be});fr({sliderRef:L,activeIndex:ve,setActive:T}),$(Pe),P&&!mr(Pe,m)&&P(Q,Pe,ve)}N.current=0;const Oe=mt(L.current);Oe.addEventListener("mousemove",de,{passive:!0}),Oe.addEventListener("mouseup",_)},ke=Nr(M?k[0]:c,c,l),Ee=Nr(k[k.length-1],c,l)-ke,ee=(te={})=>{const Q=Lo(te),be={onMouseDown:pe(Q||{})},Oe={...Q,...be};return{...te,ref:Y,...Oe}},De=te=>Q=>{te.onMouseOver?.(Q);const be=Number(Q.currentTarget.getAttribute("data-index"));j(be)},Se=te=>Q=>{te.onMouseLeave?.(Q),j(-1)},he=(te={})=>{const Q=Lo(te),be={onMouseOver:De(Q||{}),onMouseLeave:Se(Q||{})};return{...te,...Q,...be}},ne=te=>({pointerEvents:x!==-1&&x!==te?"none":void 0});let ze;return b==="vertical"&&(ze=i?"vertical-rl":"vertical-lr"),{active:x,axis:J,axisProps:Dx,dragging:R,focusedThumbIndex:W,getHiddenInputProps:(te={})=>{const Q=Lo(te),be={onChange:ae(Q||{}),onFocus:Z(Q||{}),onBlur:oe(Q||{}),onKeyDown:U(Q||{})},Oe={...Q,...be};return{tabIndex:C,"aria-labelledby":o,"aria-orientation":b,"aria-valuemax":h(l),"aria-valuemin":h(c),name:d,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...te,...Oe,style:{...Xc,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:ze}}},getRootProps:ee,getThumbProps:he,marks:z,open:E,range:M,rootRef:Y,trackLeap:Ee,trackOffset:ke,values:k,getThumbStyle:ne}}const Vx=e=>!e||!eo(e);function _x(e){return xe("MuiSlider",e)}const Ft=Ce("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Wx=e=>{const{open:o}=e;return{offset:re(o&&Ft.valueLabelOpen),circle:Ft.valueLabelCircle,label:Ft.valueLabelLabel}};function Ld(e){const{children:o,className:n,value:r}=e,a=Wx(e);return o?w.cloneElement(o,{className:o.props.className},u.jsxs(w.Fragment,{children:[o.props.children,u.jsx("span",{className:re(a.offset,n),"aria-hidden":!0,children:u.jsx("span",{className:a.circle,children:u.jsx("span",{className:a.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Ld.propTypes={children:t.element.isRequired,className:t.string,value:t.node});function Nl(e){return e}const Ux=D("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[`color${F(n.color)}`],n.size!=="medium"&&o[`size${F(n.size)}`],n.marked&&o.marked,n.orientation==="vertical"&&o.vertical,n.track==="inverted"&&o.trackInverted,n.track===!1&&o.trackFalse]}})(me(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Ft.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ft.dragging}`]:{[`& .${Ft.thumb}, & .${Ft.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{color:(e.vars||e).palette[o].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),Hx=D("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),qx=D("span",{name:"MuiSlider",slot:"Track"})(me(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${o}Track`],borderColor:e.vars.palette.Slider[`${o}Track`]}:{backgroundColor:e.lighten(e.palette[o].main,.62),borderColor:e.lighten(e.palette[o].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[o].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[o].main,.5)})}}}))]}))),Gx=D("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.thumb,o[`thumbColor${F(n.color)}`],n.size!=="medium"&&o[`thumbSize${F(n.size)}`]]}})(me(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Ft.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{[`&:hover, &.${Ft.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[o].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ft.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[o].main,.16)}`}}}))]}))),Bd=D(Ld,{name:"MuiSlider",slot:"ValueLabel"})(me(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Ft.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Ft.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Bd.propTypes={children:t.element.isRequired,index:t.number.isRequired,open:t.bool.isRequired,value:t.node});const Kx=D("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Kn(e)&&e!=="markActive",overridesResolver:(e,o)=>{const{markActive:n}=e;return[o.mark,n&&o.markActive]}})(me(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Yx=D("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Kn(e)&&e!=="markLabelActive"})(me(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),Xx=e=>{const{disabled:o,dragging:n,marked:r,orientation:a,track:i,classes:s,color:l,size:c}=e,d={root:["root",o&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${F(l)}`,c&&`size${F(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",o&&"disabled",c&&`thumbSize${F(c)}`,l&&`thumbColor${F(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return we(d,_x,s)},Zx=({children:e})=>e,Dd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiSlider"}),a=mn(),{"aria-label":i,"aria-valuetext":s,"aria-labelledby":l,component:c="span",components:d={},componentsProps:p={},color:g="primary",classes:b,className:v,disableSwap:h=!1,disabled:f=!1,getAriaLabel:y,getAriaValueText:C,marks:O=!1,max:S=100,min:x=0,name:T,onChange:E,onChangeCommitted:j,orientation:R="horizontal",shiftStep:I=10,size:N="medium",step:A=1,scale:m=Nl,slotProps:$,slots:P,tabIndex:M,track:k="normal",value:z,valueLabelDisplay:V="off",valueLabelFormat:W=Nl,...B}=r,L={...r,isRtl:a,max:S,min:x,classes:b,disabled:f,disableSwap:h,orientation:R,marks:O,color:g,size:N,step:A,shiftStep:I,scale:m,track:k,valueLabelDisplay:V,valueLabelFormat:W},{axisProps:Y,getRootProps:Z,getHiddenInputProps:oe,getThumbProps:K,open:U,active:ae,axis:ce,focusedThumbIndex:J,range:X,dragging:de,marks:_,values:se,trackOffset:ie,trackLeap:pe,getThumbStyle:ke}=Fx({...L,rootRef:n});L.marked=_.length>0&&_.some(_e=>_e.label),L.dragging=de,L.focusedThumbIndex=J;const Ee=Xx(L),ee=P?.root??d.Root??Ux,De=P?.rail??d.Rail??Hx,Se=P?.track??d.Track??qx,he=P?.thumb??d.Thumb??Gx,ne=P?.valueLabel??d.ValueLabel??Bd,ze=P?.mark??d.Mark??Kx,Me=P?.markLabel??d.MarkLabel??Yx,te=P?.input??d.Input??"input",Q=$?.root??p.root,be=$?.rail??p.rail,Oe=$?.track??p.track,Pe=$?.thumb??p.thumb,ve=$?.valueLabel??p.valueLabel,ue=$?.mark??p.mark,Ve=$?.markLabel??p.markLabel,Ne=$?.input??p.input,We=Zt({elementType:ee,getSlotProps:Z,externalSlotProps:Q,externalForwardedProps:B,additionalProps:{...Vx(ee)&&{as:c}},ownerState:{...L,...Q?.ownerState},className:[Ee.root,v]}),Ot=Zt({elementType:De,externalSlotProps:be,ownerState:L,className:Ee.rail}),vt=Zt({elementType:Se,externalSlotProps:Oe,additionalProps:{style:{...Y[ce].offset(ie),...Y[ce].leap(pe)}},ownerState:{...L,...Oe?.ownerState},className:Ee.track}),ut=Zt({elementType:he,getSlotProps:K,externalSlotProps:Pe,ownerState:{...L,...Pe?.ownerState},className:Ee.thumb}),ye=Zt({elementType:ne,externalSlotProps:ve,ownerState:{...L,...ve?.ownerState},className:Ee.valueLabel}),Ae=Zt({elementType:ze,externalSlotProps:ue,ownerState:L,className:Ee.mark}),Xe=Zt({elementType:Me,externalSlotProps:Ve,ownerState:L,className:Ee.markLabel}),gt=Zt({elementType:te,getSlotProps:oe,externalSlotProps:Ne,ownerState:L});return u.jsxs(ee,{...We,children:[u.jsx(De,{...Ot}),u.jsx(Se,{...vt}),_.filter(_e=>_e.value>=x&&_e.value<=S).map((_e,tt)=>{const Et=Nr(_e.value,x,S),wt=Y[ce].offset(Et);let ft;return k===!1?ft=se.includes(_e.value):ft=k==="normal"&&(X?_e.value>=se[0]&&_e.value<=se[se.length-1]:_e.value<=se[0])||k==="inverted"&&(X?_e.value<=se[0]||_e.value>=se[se.length-1]:_e.value>=se[0]),u.jsxs(w.Fragment,{children:[u.jsx(ze,{"data-index":tt,...Ae,...!eo(ze)&&{markActive:ft},style:{...wt,...Ae.style},className:re(Ae.className,ft&&Ee.markActive)}),_e.label!=null?u.jsx(Me,{"aria-hidden":!0,"data-index":tt,...Xe,...!eo(Me)&&{markLabelActive:ft},style:{...wt,...Xe.style},className:re(Ee.markLabel,Xe.className,ft&&Ee.markLabelActive),children:_e.label}):null]},tt)}),se.map((_e,tt)=>{const Et=Nr(_e,x,S),wt=Y[ce].offset(Et),ft=V==="off"?Zx:ne;return u.jsx(ft,{...!eo(ft)&&{valueLabelFormat:W,valueLabelDisplay:V,value:typeof W=="function"?W(m(_e),tt):W,index:tt,open:U===tt||ae===tt||V==="on",disabled:f},...ye,children:u.jsx(he,{"data-index":tt,...ut,className:re(Ee.thumb,ut.className,ae===tt&&Ee.active,J===tt&&Ee.focusVisible),style:{...wt,...ke(tt),...ut.style},children:u.jsx(te,{"data-index":tt,"aria-label":y?y(tt):i,"aria-valuenow":m(_e),"aria-labelledby":l,"aria-valuetext":C?C(m(_e),tt):s,value:se[tt],...gt})})},tt)})]})});process.env.NODE_ENV!=="production"&&(Dd.propTypes={"aria-label":xt(t.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":t.string,"aria-valuetext":xt(t.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["primary","secondary","error","info","success","warning"]),t.string]),components:t.shape({Input:t.elementType,Mark:t.elementType,MarkLabel:t.elementType,Rail:t.elementType,Root:t.elementType,Thumb:t.elementType,Track:t.elementType,ValueLabel:t.elementType}),componentsProps:t.shape({input:t.oneOfType([t.func,t.object]),mark:t.oneOfType([t.func,t.object]),markLabel:t.oneOfType([t.func,t.object]),rail:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),thumb:t.oneOfType([t.func,t.object]),track:t.oneOfType([t.func,t.object]),valueLabel:t.oneOfType([t.func,t.shape({children:t.element,className:t.string,open:t.bool,style:t.object,value:t.node,valueLabelDisplay:t.oneOf(["auto","off","on"])})])}),defaultValue:t.oneOfType([t.arrayOf(t.number),t.number]),disabled:t.bool,disableSwap:t.bool,getAriaLabel:t.func,getAriaValueText:t.func,marks:t.oneOfType([t.arrayOf(t.shape({label:t.node,value:t.number.isRequired})),t.bool]),max:t.number,min:t.number,name:t.string,onChange:t.func,onChangeCommitted:t.func,orientation:t.oneOf(["horizontal","vertical"]),scale:t.func,shiftStep:t.number,size:t.oneOfType([t.oneOf(["small","medium"]),t.string]),slotProps:t.shape({input:t.oneOfType([t.func,t.object]),mark:t.oneOfType([t.func,t.object]),markLabel:t.oneOfType([t.func,t.object]),rail:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),thumb:t.oneOfType([t.func,t.object]),track:t.oneOfType([t.func,t.object]),valueLabel:t.oneOfType([t.func,t.shape({children:t.element,className:t.string,open:t.bool,style:t.object,value:t.node,valueLabelDisplay:t.oneOf(["auto","off","on"])})])}),slots:t.shape({input:t.elementType,mark:t.elementType,markLabel:t.elementType,rail:t.elementType,root:t.elementType,thumb:t.elementType,track:t.elementType,valueLabel:t.elementType}),step:t.number,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),tabIndex:t.number,track:t.oneOf(["inverted","normal",!1]),value:t.oneOfType([t.arrayOf(t.number),t.number]),valueLabelDisplay:t.oneOf(["auto","off","on"]),valueLabelFormat:t.oneOfType([t.func,t.string])});const Jx=D(Dd)(({theme:e})=>({height:6,"& .MuiSlider-track":{border:"none",borderRadius:3},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:"#fff",border:"2px solid currentColor","&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"inherit"},"&::before":{display:"none"},boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},"& .MuiSlider-valueLabel":{lineHeight:1.2,fontSize:12,background:"unset",padding:0,width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:e.palette.primary.main,transformOrigin:"bottom left",transform:"translate(50%, -100%) rotate(-45deg) scale(0)","&::before":{display:"none"},"&.MuiSlider-valueLabelOpen":{transform:"translate(50%, -100%) rotate(-45deg) scale(1)"},"& > *":{transform:"rotate(45deg)"}},"& .MuiSlider-mark":{backgroundColor:"#bfbfbf",height:8,width:1,"&.MuiSlider-markActive":{opacity:1,backgroundColor:"currentColor"}}})),zd=({etiqueta:e,textoAyuda:o,valor:n,minimo:r=0,maximo:a=100,paso:i=1,marcas:s,mostrarEtiquetaValor:l="auto",orientacion:c="horizontal",color:d="primario",alCambiar:p,tamano:g,className:b,sx:v,...h})=>{const f=O=>O==="primario"?"primary":O==="secundario"?"secondary":O==="exito"?"success":O==="error"?"error":O==="info"?"info":O==="advertencia"?"warning":"primary",y=O=>O==="siempre"?"on":O==="nunca"?"off":"auto",C=c==="vertical"?{height:300}:{};return u.jsxs(Ue,{sx:{width:"100%",...C,...v},className:b,children:[e&&u.jsx(nt,{gutterBottom:!0,variant:"subtitle2",sx:{fontWeight:600,mb:1},children:e}),u.jsx(Jx,{value:n,min:r,max:a,step:i,marks:s,valueLabelDisplay:y(l),orientation:c,color:f(d),onChange:p,size:g,...h}),o&&u.jsx(nt,{variant:"caption",color:"text.secondary",sx:{mt:.5,display:"block"},children:o})]})},Qx=zd;function e1(e){return xe("MuiSwitch",e)}const kt=Ce("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),t1=e=>{const{classes:o,edge:n,size:r,color:a,checked:i,disabled:s}=e,l={root:["root",n&&`edge${F(n)}`,`size${F(r)}`],switchBase:["switchBase",`color${F(a)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=we(l,e1,o);return{...o,...c}},o1=D("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.edge&&o[`edge${F(n.edge)}`],o[`size${F(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${kt.thumb}`]:{width:16,height:16},[`& .${kt.switchBase}`]:{padding:4,[`&.${kt.checked}`]:{transform:"translateX(16px)"}}}}]}),n1=D(da,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.switchBase,{[`& .${kt.input}`]:o.input},n.color!=="default"&&o[`color${F(n.color)}`]]}})(me(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${kt.checked}`]:{transform:"translateX(20px)"},[`&.${kt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${kt.checked} + .${kt.track}`]:{opacity:.5},[`&.${kt.disabled} + .${kt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${kt.input}`]:{left:"-100%",width:"300%"}})),me(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(qe(["light"])).map(([o])=>({props:{color:o},style:{[`&.${kt.checked}`]:{color:(e.vars||e).palette[o].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${kt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${o}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[o].main,.62):e.darken(e.palette[o].main,.55)}`}},[`&.${kt.checked} + .${kt.track}`]:{backgroundColor:(e.vars||e).palette[o].main}}}))]}))),r1=D("span",{name:"MuiSwitch",slot:"Track"})(me(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),a1=D("span",{name:"MuiSwitch",slot:"Thumb"})(me(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Fd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiSwitch"}),{className:a,color:i="primary",edge:s=!1,size:l="medium",sx:c,slots:d={},slotProps:p={},...g}=r,b={...r,color:i,edge:s,size:l},v=t1(b),h={slots:d,slotProps:p},[f,y]=ge("root",{className:re(v.root,a),elementType:o1,externalForwardedProps:h,ownerState:b,additionalProps:{sx:c}}),[C,O]=ge("thumb",{className:v.thumb,elementType:a1,externalForwardedProps:h,ownerState:b}),S=u.jsx(C,{...O}),[x,T]=ge("track",{className:v.track,elementType:r1,externalForwardedProps:h,ownerState:b});return u.jsxs(f,{...y,children:[u.jsx(n1,{type:"checkbox",icon:S,checkedIcon:S,ref:n,ownerState:b,...g,classes:{...v,root:v.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...p.switchBase&&{root:typeof p.switchBase=="function"?p.switchBase(b):p.switchBase},input:{role:"switch"},...p.input&&{input:typeof p.input=="function"?p.input(b):p.input}}}),u.jsx(x,{...T})]})});process.env.NODE_ENV!=="production"&&(Fd.propTypes={checked:t.bool,checkedIcon:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["default","primary","secondary","error","info","success","warning"]),t.string]),defaultChecked:t.bool,disabled:t.bool,disableRipple:t.bool,edge:t.oneOf(["end","start",!1]),icon:t.node,id:t.string,inputProps:t.object,inputRef:Pt,onChange:t.func,required:t.bool,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),slotProps:t.shape({input:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),switchBase:t.oneOfType([t.func,t.object]),thumb:t.oneOfType([t.func,t.object]),track:t.oneOfType([t.func,t.object])}),slots:t.shape({input:t.elementType,root:t.elementType,switchBase:t.elementType,thumb:t.elementType,track:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:t.any});const i1=D(Fd)(({theme:e})=>({width:44,height:24,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:22}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(20px)",color:"#fff","& + .MuiSwitch-track":{opacity:1}}},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorPrimary + .MuiSwitch-track":{backgroundColor:e.palette.primary.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorSecondary + .MuiSwitch-track":{backgroundColor:e.palette.secondary.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorSuccess + .MuiSwitch-track":{backgroundColor:e.palette.success.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorError + .MuiSwitch-track":{backgroundColor:e.palette.error.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorWarning + .MuiSwitch-track":{backgroundColor:e.palette.warning.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorInfo + .MuiSwitch-track":{backgroundColor:e.palette.info.main},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgba(0,0,0,0.2)",width:20,height:20,borderRadius:10,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:24/2,opacity:1,backgroundColor:e.palette.mode==="dark"?"rgba(255,255,255,.35)":"rgba(0,0,0,.25)",boxSizing:"border-box"}})),Vd=({etiqueta:e,posicionEtiqueta:o="fin",tamano:n="mediano",seleccionado:r,porDefectoSeleccionado:a,alCambiar:i,color:s="primario",deshabilitado:l,error:c,mensajeError:d,sx:p,className:g,...b})=>{const v=C=>C==="primario"?"primary":C==="secundario"?"secondary":C==="exito"?"success":C==="error"?"error":C==="advertencia"?"warning":C==="info"?"info":"primary",h=C=>C==="pequeno"?"small":"medium",f=C=>C==="inicio"?"start":C==="fin"?"end":C==="arriba"?"top":C==="abajo"?"bottom":"end",y=u.jsx(i1,{checked:r,defaultChecked:a,onChange:i,disabled:l,size:h(n),color:v(s),disableRipple:!0,sx:{...c&&{"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:C=>C.palette.error.main}},...p},className:g,...b});return e?u.jsxs(Ue,{sx:{display:"inline-flex",flexDirection:"column"},children:[u.jsx(pa,{control:y,label:e,labelPlacement:f(o),sx:{margin:0,gap:1,"& .MuiTypography-root":{fontSize:n==="pequeno"?"0.875rem":"1rem",fontWeight:500,color:l?"text.disabled":c?"error.main":"text.primary"}}}),c&&d&&u.jsx(Ue,{sx:{color:"error.main",fontSize:"0.75rem",mt:.5,ml:o==="inicio"?0:1},children:d})]}):y},s1=Vd,l1=D(gn)(({theme:e})=>({"& .MuiOutlinedInput-root":{borderRadius:12,transition:"background-color 0.2s, border-color 0.2s, box-shadow 0.2s",backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.03):le.alpha(e.palette.common.black,.01),"& fieldset":{borderColor:e.palette.mode==="dark"?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.12)",transition:"border-color 0.2s, border-width 0.2s, box-shadow 0.2s"},"&:hover":{backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.05):le.alpha(e.palette.common.black,.02)},"&:hover fieldset":{borderColor:e.palette.primary.main,borderWidth:1},"&.Mui-focused":{backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.primary.main,.05):le.alpha(e.palette.primary.main,.02)},"&.Mui-focused fieldset":{borderWidth:2,borderColor:e.palette.primary.main,boxShadow:`0 0 0 4px ${le.alpha(e.palette.primary.main,.1)}`},"&.Mui-error fieldset":{borderColor:e.palette.error.main},"&.Mui-error.Mui-focused":{backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.error.main,.05):le.alpha(e.palette.error.main,.02)},"&.Mui-error.Mui-focused fieldset":{borderColor:e.palette.error.main,boxShadow:`0 0 0 4px ${le.alpha(e.palette.error.main,.1)}`}},"& .MuiInputBase-input":{padding:"12px 14px",fontWeight:500,"&::placeholder":{opacity:.6}},"& .MuiInputLabel-root":{fontSize:"0.95rem",color:e.palette.text.secondary,"&.Mui-focused":{color:e.palette.primary.main,fontWeight:600},"&.Mui-error":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{marginLeft:14,fontSize:"0.75rem",marginTop:4}})),_d=({etiqueta:e,textoAyuda:o,valor:n,alCambiar:r,deshabilitado:a,soloLectura:i,error:s,mensajeError:l,multilinea:c,filas:d,filasMinimas:p,filasMaximas:g,marcador:b,anchoCompleto:v,tipo:h,iconoInicio:f,iconoFin:y,alEnfocar:C,alDesenfocar:O,InputProps:S,sx:x,...T})=>{const E=s&&l?l:o;return u.jsx(l1,{variant:"outlined",label:e,helperText:E,value:n,onChange:r,disabled:a,error:s,multiline:c,rows:d,minRows:p,maxRows:g,placeholder:b,fullWidth:v,type:h,onFocus:C,onBlur:O,sx:{my:1,...x},InputProps:{readOnly:i,startAdornment:f?u.jsx(zo,{position:"start",children:f}):void 0,endAdornment:y?u.jsx(zo,{position:"end",children:y}):void 0,...S},...T})},c1=_d;function d1(e){return xe("MuiCardHeader",e)}const Ar=Ce("MuiCardHeader",["root","avatar","action","content","title","subheader"]),p1=e=>{const{classes:o}=e;return we({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},d1,o)},u1=D("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,o)=>[{[`& .${Ar.title}`]:o.title},{[`& .${Ar.subheader}`]:o.subheader},o.root]})({display:"flex",alignItems:"center",padding:16}),f1=D("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),m1=D("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),g1=D("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${Or.root}:where(& .${Ar.title})`]:{display:"block"},[`.${Or.root}:where(& .${Ar.subheader})`]:{display:"block"}}),Wd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiCardHeader"}),{action:a,avatar:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:d,title:p,titleTypographyProps:g,slots:b={},slotProps:v={},...h}=r,f={...r,component:s,disableTypography:l},y=p1(f),C={slots:b,slotProps:{title:g,subheader:d,...v}};let O=p;const[S,x]=ge("title",{className:y.title,elementType:nt,externalForwardedProps:C,ownerState:f,additionalProps:{variant:i?"body2":"h5",component:"span"}});O!=null&&O.type!==nt&&!l&&(O=u.jsx(S,{...x,children:O}));let T=c;const[E,j]=ge("subheader",{className:y.subheader,elementType:nt,externalForwardedProps:C,ownerState:f,additionalProps:{variant:i?"body2":"body1",color:"textSecondary",component:"span"}});T!=null&&T.type!==nt&&!l&&(T=u.jsx(E,{...j,children:T}));const[R,I]=ge("root",{ref:n,className:y.root,elementType:u1,externalForwardedProps:{...C,...h,component:s},ownerState:f}),[N,A]=ge("avatar",{className:y.avatar,elementType:f1,externalForwardedProps:C,ownerState:f}),[m,$]=ge("content",{className:y.content,elementType:g1,externalForwardedProps:C,ownerState:f}),[P,M]=ge("action",{className:y.action,elementType:m1,externalForwardedProps:C,ownerState:f});return u.jsxs(R,{...I,children:[i&&u.jsx(N,{...A,children:i}),u.jsxs(m,{...$,children:[O,T]}),a&&u.jsx(P,{...M,children:a})]})});process.env.NODE_ENV!=="production"&&(Wd.propTypes={action:t.node,avatar:t.node,children:t.node,classes:t.object,component:t.elementType,disableTypography:t.bool,slotProps:t.shape({action:t.oneOfType([t.func,t.object]),avatar:t.oneOfType([t.func,t.object]),content:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),subheader:t.oneOfType([t.func,t.object]),title:t.oneOfType([t.func,t.object])}),slots:t.shape({action:t.elementType,avatar:t.elementType,content:t.elementType,root:t.elementType,subheader:t.elementType,title:t.elementType}),subheader:t.node,subheaderTypographyProps:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),title:t.node,titleTypographyProps:t.object});function h1(e){return xe("MuiListItem",e)}Ce("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function b1(e){return xe("MuiListItemButton",e)}const Qo=Ce("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),y1=(e,o)=>{const{ownerState:n}=e;return[o.root,n.dense&&o.dense,n.alignItems==="flex-start"&&o.alignItemsFlexStart,n.divider&&o.divider,!n.disableGutters&&o.gutters]},v1=e=>{const{alignItems:o,classes:n,dense:r,disabled:a,disableGutters:i,divider:s,selected:l}=e,d=we({root:["root",r&&"dense",!i&&"gutters",s&&"divider",a&&"disabled",o==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},b1,n);return{...n,...d}},x1=D(lo,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:y1})(me(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qo.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Qo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Qo.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Qo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:o})=>o.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:o})=>o.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Ud=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:i=!1,component:s="div",children:l,dense:c=!1,disableGutters:d=!1,divider:p=!1,focusVisibleClassName:g,selected:b=!1,className:v,...h}=r,f=w.useContext(_t),y=w.useMemo(()=>({dense:c||f.dense||!1,alignItems:a,disableGutters:d}),[a,f.dense,c,d]),C=w.useRef(null);Wt(()=>{i&&(C.current?C.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[i]);const O={...r,alignItems:a,dense:y.dense,disableGutters:d,divider:p,selected:b},S=v1(O),x=ot(C,n);return u.jsx(_t.Provider,{value:y,children:u.jsx(x1,{ref:x,href:h.href||h.to,component:(h.href||h.to)&&s==="div"?"button":s,focusVisibleClassName:re(S.focusVisible,g),ownerState:O,className:re(S.root,v),...h,classes:S,children:l})})});process.env.NODE_ENV!=="production"&&(Ud.propTypes={alignItems:t.oneOf(["center","flex-start"]),autoFocus:t.bool,children:t.node,classes:t.object,className:t.string,component:t.elementType,dense:t.bool,disabled:t.bool,disableGutters:t.bool,divider:t.bool,focusVisibleClassName:t.string,href:t.string,selected:t.bool,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function C1(e){return xe("MuiListItemSecondaryAction",e)}Ce("MuiListItemSecondaryAction",["root","disableGutters"]);const w1=e=>{const{disableGutters:o,classes:n}=e;return we({root:["root",o&&"disableGutters"]},C1,n)},S1=D("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.disableGutters&&o.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Ji=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiListItemSecondaryAction"}),{className:a,...i}=r,s=w.useContext(_t),l={...r,disableGutters:s.disableGutters},c=w1(l);return u.jsx(S1,{className:re(c.root,a),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Ji.propTypes={children:t.node,classes:t.object,className:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});Ji.muiName="ListItemSecondaryAction";const T1=(e,o)=>{const{ownerState:n}=e;return[o.root,n.dense&&o.dense,n.alignItems==="flex-start"&&o.alignItemsFlexStart,n.divider&&o.divider,!n.disableGutters&&o.gutters,!n.disablePadding&&o.padding,n.hasSecondaryAction&&o.secondaryAction]},O1=e=>{const{alignItems:o,classes:n,dense:r,disableGutters:a,disablePadding:i,divider:s,hasSecondaryAction:l}=e;return we({root:["root",r&&"dense",!a&&"gutters",!i&&"padding",s&&"divider",o==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},h1,n)},E1=D("div",{name:"MuiListItem",slot:"Root",overridesResolver:T1})(me(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:o})=>!o.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:o})=>!o.disablePadding&&o.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:o})=>!o.disablePadding&&!o.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:o})=>!o.disablePadding&&!!o.secondaryAction,style:{paddingRight:48}},{props:({ownerState:o})=>!!o.secondaryAction,style:{[`& > .${Qo.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:o})=>o.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:o})=>o.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:o})=>o.hasSecondaryAction,style:{paddingRight:48}}]}))),k1=D("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Hd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiListItem"}),{alignItems:a="center",children:i,className:s,component:l,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:g,...b}={},dense:v=!1,disableGutters:h=!1,disablePadding:f=!1,divider:y=!1,secondaryAction:C,slotProps:O={},slots:S={},...x}=r,T=w.useContext(_t),E=w.useMemo(()=>({dense:v||T.dense||!1,alignItems:a,disableGutters:h}),[a,T.dense,v,h]),j=w.useRef(null),R=w.Children.toArray(i),I=R.length&&An(R[R.length-1],["ListItemSecondaryAction"]),N={...r,alignItems:a,dense:E.dense,disableGutters:h,disablePadding:f,divider:y,hasSecondaryAction:I},A=O1(N),m=ot(j,n),$={slots:S,slotProps:O},[P,M]=ge("secondaryAction",{elementType:Ji,externalForwardedProps:$,ownerState:N,className:A.secondaryAction}),k=S.root||c.Root||E1,z=O.root||d.root||{},V={className:re(A.root,z.className,s),...x};let W=l||"li";return I?(W=!V.component&&!l?"div":W,p==="li"&&(W==="li"?W="div":V.component==="li"&&(V.component="div")),u.jsx(_t.Provider,{value:E,children:u.jsxs(k1,{as:p,className:re(A.container,g),ref:m,ownerState:N,...b,children:[u.jsx(k,{...z,...!eo(k)&&{as:W,ownerState:{...N,...z.ownerState}},...V,children:R}),R.pop()]})})):u.jsx(_t.Provider,{value:E,children:u.jsxs(k,{...z,as:W,ref:m,...!eo(k)&&{ownerState:{...N,...z.ownerState}},...V,children:[R,C&&u.jsx(P,{...M,children:C})]})})});process.env.NODE_ENV!=="production"&&(Hd.propTypes={alignItems:t.oneOf(["center","flex-start"]),children:xt(t.node,e=>{const o=w.Children.toArray(e.children);let n=-1;for(let r=o.length-1;r>=0;r-=1){const a=o[r];if(An(a,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==o.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:t.object,className:t.string,component:t.elementType,components:t.shape({Root:t.elementType}),componentsProps:t.shape({root:t.object}),ContainerComponent:Yn,ContainerProps:t.object,dense:t.bool,disableGutters:t.bool,disablePadding:t.bool,divider:t.bool,secondaryAction:t.node,slotProps:t.shape({root:t.object,secondaryAction:t.oneOfType([t.func,t.object])}),slots:t.shape({root:t.elementType,secondaryAction:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});const ci=le.createStack({createStyledComponent:D("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Te({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(ci.propTypes={children:t.node,component:t.elementType,direction:t.oneOfType([t.oneOf(["column-reverse","column","row-reverse","row"]),t.arrayOf(t.oneOf(["column-reverse","column","row-reverse","row"])),t.object]),divider:t.node,spacing:t.oneOfType([t.arrayOf(t.oneOfType([t.number,t.string])),t.number,t.object,t.string]),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),useFlexGap:t.bool});const P1=st(u.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"}),"ArrowForwardRounded"),R1=st(u.jsx("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1"}),"ArrowBackRounded"),I1=D(Pi)(({theme:e})=>({borderRadius:16,border:`1px solid ${e.palette.divider}`,boxShadow:e.shadows[1],overflow:"hidden",height:"100%",display:"flex",flexDirection:"column",flex:1,transition:"box-shadow 0.3s ease, border-color 0.3s ease","&:hover":{boxShadow:e.shadows[4],borderColor:e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[700]}})),$1=D(Wd)(({theme:e})=>({padding:e.spacing(2),backgroundColor:e.palette.mode==="light"?e.palette.grey[50]:le.alpha(e.palette.common.white,.05),borderBottom:`1px solid ${e.palette.divider}`,"& .MuiCardHeader-title":{fontSize:"1rem",fontWeight:700,color:e.palette.text.primary},"& .MuiCardHeader-subheader":{fontSize:"0.875rem",marginTop:2}})),j1=D(Ue)(({theme:e})=>({width:"100%",height:"100%",backgroundColor:e.palette.background.paper,overflow:"auto","&::-webkit-scrollbar":{width:6},"&::-webkit-scrollbar-thumb":{backgroundColor:e.palette.action.hover,borderRadius:3},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"}})),Al=D(Ci)(({theme:e})=>({borderRadius:12,minWidth:44,height:44,border:`1px solid ${e.palette.divider}`,color:e.palette.text.secondary,backgroundColor:e.palette.background.paper,transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{backgroundColor:e.palette.primary.main,borderColor:"transparent",color:e.palette.common.white,boxShadow:e.shadows[4],transform:"translateY(-2px) scale(1.05)"},"&.Mui-disabled":{border:`1px solid ${e.palette.action.disabledBackground}`,backgroundColor:"transparent",transform:"none",boxShadow:"none"}})),M1=D(gn)(({theme:e})=>({"& .MuiOutlinedInput-root":{borderRadius:0,border:"none",backgroundColor:"transparent","& fieldset":{border:"none"},"&.Mui-focused":{boxShadow:"none"}},"& .MuiInputBase-input":{padding:e.spacing(1.5,2),fontSize:"0.875rem"}}));function en(e,o){return e.filter(n=>o.indexOf(n)===-1)}function Ba(e,o){return e.filter(n=>o.indexOf(n)!==-1)}function N1(e,o){return[...e,...en(o,e)]}const qd=({izquierda:e=[],derecha:o=[],alCambiar:n,tituloIzquierda:r="Opciones",tituloDerecha:a="Elegidos",alto:i=320,buscable:s=!1,deshabilitado:l=!1})=>{const[c,d]=Re.useState([]),[p,g]=Re.useState(""),[b,v]=Re.useState(""),h=Ba(c,e),f=Ba(c,o),y=Re.useMemo(()=>!s||!p?e:e.filter(R=>R.etiqueta.toLowerCase().includes(p.toLowerCase())),[e,p,s]),C=Re.useMemo(()=>!s||!b?o:o.filter(R=>R.etiqueta.toLowerCase().includes(b.toLowerCase())),[o,b,s]),O=R=>()=>{if(l||R.deshabilitado)return;const I=c.indexOf(R),N=[...c];I===-1?N.push(R):N.splice(I,1),d(N)},S=R=>Ba(c,R).length,x=R=>()=>{if(l)return;const I=R.filter(N=>!N.deshabilitado);S(I)===I.length&&I.length!==0?d(en(c,I)):d(N1(c,I))},T=()=>{n&&(n(en(e,h),o.concat(h)),d(en(c,h)))},E=()=>{n&&(n(e.concat(f),en(o,f)),d(en(c,f)))},j=(R,I,N,A)=>{const m=I.filter(M=>!M.deshabilitado),$=S(m)===m.length&&m.length!==0,P=S(m)!==m.length&&S(m)!==0;return u.jsxs(I1,{children:[u.jsx($1,{avatar:u.jsx(Mr,{onClick:x(I),checked:$,indeterminate:P,disabled:m.length===0||l,inputProps:{"aria-label":"todos los elementos seleccionados"},size:"small",sx:{color:"text.secondary","&.Mui-checked":{color:"primary.main"}}}),title:R,subheader:u.jsxs(nt,{variant:"caption",color:"text.secondary",sx:{fontWeight:500},children:[S(I)," seleccionados"]})}),s&&u.jsxs(u.Fragment,{children:[u.jsx(Un,{}),u.jsx(M1,{placeholder:"Buscar...",fullWidth:!0,disabled:l,value:N,onChange:M=>A(M.target.value),InputProps:{startAdornment:u.jsx(zo,{position:"start",children:u.jsx(Md,{color:"action",fontSize:"small"})})}}),u.jsx(Un,{})]}),u.jsx(j1,{sx:{height:i},children:u.jsxs(Ui,{dense:!0,component:"div",role:"list",sx:{py:1},children:[I.length===0&&u.jsx(Ue,{sx:{p:4,textAlign:"center",opacity:.5},children:u.jsx(nt,{variant:"caption",children:"No hay elementos"})}),I.map(M=>{const k=`transfer-list-all-item-${M.id}-label`,z=c.indexOf(M)!==-1,V=l||M.deshabilitado;return u.jsx(Hd,{disablePadding:!0,sx:{mb:.5,px:1},children:u.jsxs(Ud,{role:"listitem",onClick:O(M),disabled:V,selected:z,sx:{borderRadius:2,transition:"all 0.2s","&:hover":{backgroundColor:W=>V?void 0:le.alpha(W.palette.primary.main,.08)},"&.Mui-selected":{backgroundColor:W=>le.alpha(W.palette.primary.main,.12),"&:hover":{backgroundColor:W=>le.alpha(W.palette.primary.main,.16)}}},children:[u.jsx($d,{sx:{minWidth:40},children:u.jsx(Mr,{checked:z,tabIndex:-1,disableRipple:!0,disabled:V,inputProps:{"aria-labelledby":k},size:"small",edge:"start"})}),u.jsx(jd,{id:k,primary:M.etiqueta,primaryTypographyProps:{fontWeight:z?600:400,color:z&&!V?"primary.main":"text.primary"}})]})},M.id)})]})})]})};return u.jsxs(ci,{direction:{xs:"column",md:"row"},spacing:3,justifyContent:"center",alignItems:"center",children:[u.jsx(Ue,{sx:{width:{xs:"100%",md:"42%"}},children:j(r,y,p,g)}),u.jsx(Ue,{children:u.jsxs(ci,{direction:"column",spacing:2,children:[u.jsx(Al,{onClick:T,disabled:h.length===0||l,"aria-label":"mover seleccionados a la derecha",children:u.jsx(P1,{fontSize:"small"})}),u.jsx(Al,{onClick:E,disabled:f.length===0||l,"aria-label":"mover seleccionados a la izquierda",children:u.jsx(R1,{fontSize:"small"})})]})}),u.jsx(Ue,{sx:{width:{xs:"100%",md:"42%"}},children:j(a,C,b,v)})]})},A1=qd,L1=({children:e,PaperProps:o,...n})=>{const r=it.useTheme();return u.jsx(it.Dialog,{PaperProps:{elevation:24,sx:{borderRadius:3,backgroundImage:"none",backgroundColor:r.palette.background.paper,...o?.sx},...o},...n,children:e})},B1=({sx:e,children:o,...n})=>u.jsx(it.DialogTitle,{sx:{fontWeight:700,fontSize:"1.25rem",pb:1,...e},...n,children:o}),D1=({sx:e,children:o,...n})=>u.jsx(it.DialogContent,{sx:{py:2,...e},...n,children:o}),z1=({sx:e,children:o,...n})=>u.jsx(it.DialogContentText,{sx:{mb:2,color:"text.secondary",...e},...n,children:o}),F1=({sx:e,children:o,...n})=>u.jsx(it.DialogActions,{sx:{px:3,pb:3,gap:1,...e},...n,children:o});exports.CodeplexAlert=Zg;exports.CodeplexAlerta=Mc;exports.CodeplexAutocompletado=wd;exports.CodeplexAutocomplete=g0;exports.CodeplexAvatar=ng;exports.CodeplexAvatarGroup=og;exports.CodeplexAvatarUsuario=vc;exports.CodeplexAviso=Ic;exports.CodeplexAyudaEntrada=td;exports.CodeplexBadge=Em;exports.CodeplexBanner=Pg;exports.CodeplexBoton=wi;exports.CodeplexButton=ym;exports.CodeplexCampoNumero=Ed;exports.CodeplexCampoTexto=_d;exports.CodeplexCard=Og;exports.CodeplexCargando=hc;exports.CodeplexCasilla=Ki;exports.CodeplexCheckbox=U0;exports.CodeplexDeslizador=zd;exports.CodeplexDialogo=L1;exports.CodeplexDialogoAcciones=F1;exports.CodeplexDialogoContenido=D1;exports.CodeplexDialogoTexto=z1;exports.CodeplexDialogoTitulo=B1;exports.CodeplexElementoMenu=nn;exports.CodeplexEncabezadoPrincipal=Rc;exports.CodeplexEsqueleto=od;exports.CodeplexEtiquetaInteligente=wc;exports.CodeplexGrupoAvatares=xc;exports.CodeplexGrupoBotones=w0;exports.CodeplexGrupoFormulario=Gi;exports.CodeplexGrupoRadio=Id;exports.CodeplexInputHelper=ly;exports.CodeplexInsignia=gc;exports.CodeplexInterruptor=Vd;exports.CodeplexJumbotron=Eg;exports.CodeplexKbd=Am;exports.CodeplexListaTransferencia=qd;exports.CodeplexMensajeEmergente=qc;exports.CodeplexNotificacion=Vi;exports.CodeplexNumberField=J0;exports.CodeplexPopupRequisitos=Ei;exports.CodeplexProgreso=Yc;exports.CodeplexProgress=Gb;exports.CodeplexRadio=Zi;exports.CodeplexRadioGroup=mx;exports.CodeplexRating=sy;exports.CodeplexRequirementsPopup=rg;exports.CodeplexSelect=jx;exports.CodeplexSelector=Nd;exports.CodeplexSkeleton=dy;exports.CodeplexSlider=Qx;exports.CodeplexSmartLabel=ag;exports.CodeplexSpinner=Nm;exports.CodeplexSubcabeceraLista=fn;exports.CodeplexSwitch=s1;exports.CodeplexTarjeta=Pc;exports.CodeplexTeclado=bc;exports.CodeplexTextField=c1;exports.CodeplexToast=qb;exports.CodeplexTooltip=Tb;exports.CodeplexTostada=Hb;exports.CodeplexTransferList=A1;exports.CodeplexValoracion=ed;exports.EntradaOcultaVisualmente=bm;exports.Ui=Xd;exports.avatarCadena=Cc;exports.stringAvatar=tg;
|