@scmlatam/web-ui 0.1.86 → 0.1.87

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.
@@ -0,0 +1,431 @@
1
+ (function(Yn,he){typeof exports=="object"&&typeof module<"u"?he(exports,require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom"],he):(Yn=typeof globalThis<"u"?globalThis:Yn||self,he(Yn["web-ui"]={},Yn.React,Yn.jsxRuntime,Yn.ReactDOM))})(this,(function(Yn,he,v,bs){"use strict";function x1(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 f=x1(he),P1=x1(bs),xl={black:"#000",white:"#fff"},Xi={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Zi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Qi={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ji={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ea={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Pl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ok={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"};function Kr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const qo="$$material";function w(){return w=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},w.apply(null,arguments)}function kk(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 Dk(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 Fk=(function(){function e(n){var r=this;this._insertTag=function(s){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(s,i),r.tags.push(s)},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(Dk(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var i=kk(s);try{i.insertRule(r,i.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var s;return(s=r.parentNode)==null?void 0:s.removeChild(r)}),this.tags=[],this.ctr=0},e})(),to="-ms-",Mu="-moz-",At="-webkit-",E1="comm",lh="rule",ch="decl",Nk="@import",T1="@keyframes",Rk="@layer",Lk=Math.abs,Ou=String.fromCharCode,$k=Object.assign;function Ak(e,t){return Kn(e,0)^45?(((t<<2^Kn(e,0))<<2^Kn(e,1))<<2^Kn(e,2))<<2^Kn(e,3):0}function I1(e){return e.trim()}function Vk(e,t){return(e=t.exec(e))?e[0]:e}function Vt(e,t,n){return e.replace(t,n)}function uh(e,t){return e.indexOf(t)}function Kn(e,t){return e.charCodeAt(t)|0}function El(e,t,n){return e.slice(t,n)}function Or(e){return e.length}function dh(e){return e.length}function ku(e,t){return t.push(e),e}function _k(e,t){return e.map(t).join("")}var Du=1,ta=1,M1=0,wo=0,Ln=0,na="";function Fu(e,t,n,r,s,i,a){return{value:e,root:t,parent:n,type:r,props:s,children:i,line:Du,column:ta,length:a,return:""}}function Tl(e,t){return $k(Fu("",null,null,"",null,null,0),e,{length:-e.length},t)}function Bk(){return Ln}function Hk(){return Ln=wo>0?Kn(na,--wo):0,ta--,Ln===10&&(ta=1,Du--),Ln}function Fo(){return Ln=wo<M1?Kn(na,wo++):0,ta++,Ln===10&&(ta=1,Du++),Ln}function kr(){return Kn(na,wo)}function Nu(){return wo}function Il(e,t){return El(na,e,t)}function Ml(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 O1(e){return Du=ta=1,M1=Or(na=e),wo=0,[]}function k1(e){return na="",e}function Ru(e){return I1(Il(wo-1,ph(e===91?e+2:e===40?e+1:e)))}function zk(e){for(;(Ln=kr())&&Ln<33;)Fo();return Ml(e)>2||Ml(Ln)>3?"":" "}function jk(e,t){for(;--t&&Fo()&&!(Ln<48||Ln>102||Ln>57&&Ln<65||Ln>70&&Ln<97););return Il(e,Nu()+(t<6&&kr()==32&&Fo()==32))}function ph(e){for(;Fo();)switch(Ln){case e:return wo;case 34:case 39:e!==34&&e!==39&&ph(Ln);break;case 40:e===41&&ph(e);break;case 92:Fo();break}return wo}function Gk(e,t){for(;Fo()&&e+Ln!==57;)if(e+Ln===84&&kr()===47)break;return"/*"+Il(t,wo-1)+"*"+Ou(e===47?e:Fo())}function Wk(e){for(;!Ml(kr());)Fo();return Il(e,wo)}function Uk(e){return k1(Lu("",null,null,null,[""],e=O1(e),0,[0],e))}function Lu(e,t,n,r,s,i,a,l,c){for(var u=0,d=0,p=a,g=0,h=0,b=0,m=1,y=1,C=1,S=0,x="",E=s,P=i,M=r,D=x;y;)switch(b=S,S=Fo()){case 40:if(b!=108&&Kn(D,p-1)==58){uh(D+=Vt(Ru(S),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:D+=Ru(S);break;case 9:case 10:case 13:case 32:D+=zk(b);break;case 92:D+=jk(Nu()-1,7);continue;case 47:switch(kr()){case 42:case 47:ku(qk(Gk(Fo(),Nu()),t,n),c);break;default:D+="/"}break;case 123*m:l[u++]=Or(D)*C;case 125*m:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+d:C==-1&&(D=Vt(D,/\f/g,"")),h>0&&Or(D)-p&&ku(h>32?F1(D+";",r,n,p-1):F1(Vt(D," ","")+";",r,n,p-2),c);break;case 59:D+=";";default:if(ku(M=D1(D,t,n,u,d,s,l,x,E=[],P=[],p),i),S===123)if(d===0)Lu(D,t,M,M,E,i,p,l,P);else switch(g===99&&Kn(D,3)===110?100:g){case 100:case 108:case 109:case 115:Lu(e,M,M,r&&ku(D1(e,M,M,0,0,s,l,x,s,E=[],p),P),s,P,p,l,r?E:P);break;default:Lu(D,M,M,M,[""],P,0,l,P)}}u=d=h=0,m=C=1,x=D="",p=a;break;case 58:p=1+Or(D),h=b;default:if(m<1){if(S==123)--m;else if(S==125&&m++==0&&Hk()==125)continue}switch(D+=Ou(S),S*m){case 38:C=d>0?1:(D+="\f",-1);break;case 44:l[u++]=(Or(D)-1)*C,C=1;break;case 64:kr()===45&&(D+=Ru(Fo())),g=kr(),d=p=Or(x=D+=Wk(Nu())),S++;break;case 45:b===45&&Or(D)==2&&(m=0)}}return i}function D1(e,t,n,r,s,i,a,l,c,u,d){for(var p=s-1,g=s===0?i:[""],h=dh(g),b=0,m=0,y=0;b<r;++b)for(var C=0,S=El(e,p+1,p=Lk(m=a[b])),x=e;C<h;++C)(x=I1(m>0?g[C]+" "+S:Vt(S,/&\f/g,g[C])))&&(c[y++]=x);return Fu(e,t,n,s===0?lh:l,c,u,d)}function qk(e,t,n){return Fu(e,t,n,E1,Ou(Bk()),El(e,2,-2),0)}function F1(e,t,n,r){return Fu(e,t,n,ch,El(e,0,r),El(e,r+1,-1),r)}function oa(e,t){for(var n="",r=dh(e),s=0;s<r;s++)n+=t(e[s],s,e,t)||"";return n}function Yk(e,t,n,r){switch(e.type){case Rk:if(e.children.length)break;case Nk:case ch:return e.return=e.return||e.value;case E1:return"";case T1:return e.return=e.value+"{"+oa(e.children,r)+"}";case lh:e.value=e.props.join(",")}return Or(n=oa(e.children,r))?e.return=e.value+"{"+n+"}":""}function Kk(e){var t=dh(e);return function(n,r,s,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,s,i)||"";return a}}function Xk(e){return function(t){t.root||(t=t.return)&&e(t)}}function N1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Zk=function(t,n,r){for(var s=0,i=0;s=i,i=kr(),s===38&&i===12&&(n[r]=1),!Ml(i);)Fo();return Il(t,wo)},Qk=function(t,n){var r=-1,s=44;do switch(Ml(s)){case 0:s===38&&kr()===12&&(n[r]=1),t[r]+=Zk(wo-1,n,r);break;case 2:t[r]+=Ru(s);break;case 4:if(s===44){t[++r]=kr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ou(s)}while(s=Fo());return t},Jk=function(t,n){return k1(Qk(O1(t),n))},R1=new WeakMap,eD=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,s=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&&!R1.get(r))&&!s){R1.set(t,!0);for(var i=[],a=Jk(n,i),l=r.props,c=0,u=0;c<a.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=i[c]?a[c].replace(/&\f/g,l[d]):l[d]+" "+a[c]}}},tD=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function L1(e,t){switch(Ak(e,t)){case 5103:return At+"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 At+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return At+e+Mu+e+to+e+e;case 6828:case 4268:return At+e+to+e+e;case 6165:return At+e+to+"flex-"+e+e;case 5187:return At+e+Vt(e,/(\w+).+(:[^]+)/,At+"box-$1$2"+to+"flex-$1$2")+e;case 5443:return At+e+to+"flex-item-"+Vt(e,/flex-|-self/,"")+e;case 4675:return At+e+to+"flex-line-pack"+Vt(e,/align-content|flex-|-self/,"")+e;case 5548:return At+e+to+Vt(e,"shrink","negative")+e;case 5292:return At+e+to+Vt(e,"basis","preferred-size")+e;case 6060:return At+"box-"+Vt(e,"-grow","")+At+e+to+Vt(e,"grow","positive")+e;case 4554:return At+Vt(e,/([^-])(transform)/g,"$1"+At+"$2")+e;case 6187:return Vt(Vt(Vt(e,/(zoom-|grab)/,At+"$1"),/(image-set)/,At+"$1"),e,"")+e;case 5495:case 3959:return Vt(e,/(image-set\([^]*)/,At+"$1$`$1");case 4968:return Vt(Vt(e,/(.+:)(flex-)?(.*)/,At+"box-pack:$3"+to+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+At+e+e;case 4095:case 3583:case 4068:case 2532:return Vt(e,/(.+)-inline(.+)/,At+"$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(Or(e)-1-t>6)switch(Kn(e,t+1)){case 109:if(Kn(e,t+4)!==45)break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1"+At+"$2-$3$1"+Mu+(Kn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~uh(e,"stretch")?L1(Vt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Kn(e,t+1)!==115)break;case 6444:switch(Kn(e,Or(e)-3-(~uh(e,"!important")&&10))){case 107:return Vt(e,":",":"+At)+e;case 101:return Vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+At+(Kn(e,14)===45?"inline-":"")+"box$3$1"+At+"$2$3$1"+to+"$2box$3")+e}break;case 5936:switch(Kn(e,t+11)){case 114:return At+e+to+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return At+e+to+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return At+e+to+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return At+e+to+e+e}return e}var nD=function(t,n,r,s){if(t.length>-1&&!t.return)switch(t.type){case ch:t.return=L1(t.value,t.length);break;case T1:return oa([Tl(t,{value:Vt(t.value,"@","@"+At)})],s);case lh:if(t.length)return _k(t.props,function(i){switch(Vk(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oa([Tl(t,{props:[Vt(i,/:(read-\w+)/,":"+Mu+"$1")]})],s);case"::placeholder":return oa([Tl(t,{props:[Vt(i,/:(plac\w+)/,":"+At+"input-$1")]}),Tl(t,{props:[Vt(i,/:(plac\w+)/,":"+Mu+"$1")]}),Tl(t,{props:[Vt(i,/:(plac\w+)/,to+"input-$1")]})],s)}return""})}},oD=[nD],rD=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(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var s=t.stylisPlugins||oD,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var y=m.getAttribute("data-emotion").split(" "),C=1;C<y.length;C++)i[y[C]]=!0;l.push(m)});var c,u=[eD,tD];{var d,p=[Yk,Xk(function(m){d.insert(m)})],g=Kk(u.concat(s,p)),h=function(y){return oa(Uk(y),g)};c=function(y,C,S,x){d=S,h(y?y+"{"+C.styles+"}":C.styles),x&&(b.inserted[C.name]=!0)}}var b={key:n,sheet:new Fk({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return b.sheet.hydrate(l),b};function ys(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $u={exports:{}},jt={};var $1;function sD(){if($1)return jt;$1=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,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=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,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function x(P){if(typeof P=="object"&&P!==null){var M=P.$$typeof;switch(M){case t:switch(P=P.type,P){case c:case u:case r:case i:case s:case p:return P;default:switch(P=P&&P.$$typeof,P){case l:case d:case b:case h:case a:return P;default:return M}}case n:return M}}}function E(P){return x(P)===u}return jt.AsyncMode=c,jt.ConcurrentMode=u,jt.ContextConsumer=l,jt.ContextProvider=a,jt.Element=t,jt.ForwardRef=d,jt.Fragment=r,jt.Lazy=b,jt.Memo=h,jt.Portal=n,jt.Profiler=i,jt.StrictMode=s,jt.Suspense=p,jt.isAsyncMode=function(P){return E(P)||x(P)===c},jt.isConcurrentMode=E,jt.isContextConsumer=function(P){return x(P)===l},jt.isContextProvider=function(P){return x(P)===a},jt.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},jt.isForwardRef=function(P){return x(P)===d},jt.isFragment=function(P){return x(P)===r},jt.isLazy=function(P){return x(P)===b},jt.isMemo=function(P){return x(P)===h},jt.isPortal=function(P){return x(P)===n},jt.isProfiler=function(P){return x(P)===i},jt.isStrictMode=function(P){return x(P)===s},jt.isSuspense=function(P){return x(P)===p},jt.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===u||P===i||P===s||P===p||P===g||typeof P=="object"&&P!==null&&(P.$$typeof===b||P.$$typeof===h||P.$$typeof===a||P.$$typeof===l||P.$$typeof===d||P.$$typeof===y||P.$$typeof===C||P.$$typeof===S||P.$$typeof===m)},jt.typeOf=x,jt}var Gt={};var A1;function iD(){return A1||(A1=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,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=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,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function x(W){return typeof W=="string"||typeof W=="function"||W===r||W===u||W===i||W===s||W===p||W===g||typeof W=="object"&&W!==null&&(W.$$typeof===b||W.$$typeof===h||W.$$typeof===a||W.$$typeof===l||W.$$typeof===d||W.$$typeof===y||W.$$typeof===C||W.$$typeof===S||W.$$typeof===m)}function E(W){if(typeof W=="object"&&W!==null){var le=W.$$typeof;switch(le){case t:var oe=W.type;switch(oe){case c:case u:case r:case i:case s:case p:return oe;default:var re=oe&&oe.$$typeof;switch(re){case l:case d:case b:case h:case a:return re;default:return le}}case n:return le}}}var P=c,M=u,D=l,O=a,k=t,I=d,F=r,T=b,R=h,A=n,L=i,N=s,_=p,H=!1;function B(W){return H||(H=!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.")),$(W)||E(W)===c}function $(W){return E(W)===u}function V(W){return E(W)===l}function z(W){return E(W)===a}function j(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function G(W){return E(W)===d}function Q(W){return E(W)===r}function q(W){return E(W)===b}function Y(W){return E(W)===h}function K(W){return E(W)===n}function J(W){return E(W)===i}function X(W){return E(W)===s}function ee(W){return E(W)===p}Gt.AsyncMode=P,Gt.ConcurrentMode=M,Gt.ContextConsumer=D,Gt.ContextProvider=O,Gt.Element=k,Gt.ForwardRef=I,Gt.Fragment=F,Gt.Lazy=T,Gt.Memo=R,Gt.Portal=A,Gt.Profiler=L,Gt.StrictMode=N,Gt.Suspense=_,Gt.isAsyncMode=B,Gt.isConcurrentMode=$,Gt.isContextConsumer=V,Gt.isContextProvider=z,Gt.isElement=j,Gt.isForwardRef=G,Gt.isFragment=Q,Gt.isLazy=q,Gt.isMemo=Y,Gt.isPortal=K,Gt.isProfiler=J,Gt.isStrictMode=X,Gt.isSuspense=ee,Gt.isValidElementType=x,Gt.typeOf=E})()),Gt}var V1;function aD(){return V1||(V1=1,process.env.NODE_ENV==="production"?$u.exports=sD():$u.exports=iD()),$u.exports}var fh,_1;function lD(){if(_1)return fh;_1=1;var e=aD(),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},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=s;function a(b){return e.isMemo(b)?s:i[b.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;function h(b,m,y){if(typeof m!="string"){if(g){var C=p(m);C&&C!==g&&h(b,C,y)}var S=c(m);u&&(S=S.concat(u(m)));for(var x=a(b),E=a(m),P=0;P<S.length;++P){var M=S[P];if(!n[M]&&!(y&&y[M])&&!(E&&E[M])&&!(x&&x[M])){var D=d(m,M);try{l(b,M,D)}catch{}}}}return b}return fh=h,fh}lD();var cD=!0;function B1(e,t,n){var r="";return n.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(r+=s+" ")}),r}var hh=function(t,n,r){var s=t.key+"-"+n.name;(r===!1||cD===!1)&&t.registered[s]===void 0&&(t.registered[s]=n.styles)},gh=function(t,n,r){hh(t,n,r);var s=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+s:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function uD(e){for(var t=0,n,r=0,s=e.length;s>=4;++r,s-=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(s){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 dD={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},pD=/[A-Z]|^ms/g,fD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,H1=function(t){return t.charCodeAt(1)===45},z1=function(t){return t!=null&&typeof t!="boolean"},mh=N1(function(e){return H1(e)?e:e.replace(pD,"-$&").toLowerCase()}),j1=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(fD,function(r,s,i){return Dr={name:s,styles:i,next:Dr},s})}return dD[t]!==1&&!H1(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ol(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 s=n;if(s.anim===1)return Dr={name:s.name,styles:s.styles,next:Dr},s.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Dr={name:a.name,styles:a.styles,next:Dr},a=a.next;var l=i.styles+";";return l}return hD(e,t,n)}case"function":{if(e!==void 0){var c=Dr,u=n(e);return Dr=c,Ol(e,t,u)}break}}var d=n;if(t==null)return d;var p=t[d];return p!==void 0?p:d}function hD(e,t,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Ol(e,t,n[s])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=i+"{"+t[l]+"}":z1(l)&&(r+=mh(i)+":"+j1(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)z1(a[c])&&(r+=mh(i)+":"+j1(i,a[c])+";");else{var u=Ol(e,t,a);switch(i){case"animation":case"animationName":{r+=mh(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var G1=/label:\s*([^\s;{]+)\s*(;|$)/g,Dr;function kl(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,s="";Dr=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,s+=Ol(n,t,i);else{var a=i;s+=a[0]}for(var l=1;l<e.length;l++)if(s+=Ol(n,t,e[l]),r){var c=i;s+=c[l]}G1.lastIndex=0;for(var u="",d;(d=G1.exec(s))!==null;)u+="-"+d[1];var p=uD(s)+u;return{name:p,styles:s,next:Dr}}var gD=function(t){return t()},W1=f.useInsertionEffect?f.useInsertionEffect:!1,U1=W1||gD,q1=W1||f.useLayoutEffect,Y1=f.createContext(typeof HTMLElement<"u"?rD({key:"css"}):null);Y1.Provider;var bh=function(t){return he.forwardRef(function(n,r){var s=he.useContext(Y1);return t(n,s,r)})},Dl=f.createContext({}),yh={}.hasOwnProperty,vh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",mD=function(t,n){var r={};for(var s in n)yh.call(n,s)&&(r[s]=n[s]);return r[vh]=t,r},bD=function(t){var n=t.cache,r=t.serialized,s=t.isStringTag;return hh(n,r,s),U1(function(){return gh(n,r,s)}),null},yD=bh(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var s=e[vh],i=[r],a="";typeof e.className=="string"?a=B1(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=kl(i,void 0,f.useContext(Dl));a+=t.key+"-"+l.name;var c={};for(var u in e)yh.call(e,u)&&u!=="css"&&u!==vh&&(c[u]=e[u]);return c.className=a,n&&(c.ref=n),f.createElement(f.Fragment,null,f.createElement(bD,{cache:t,serialized:l,isStringTag:typeof s=="string"}),f.createElement(s,c))}),vD=yD,K1=function(t,n){var r=arguments;if(n==null||!yh.call(n,"css"))return f.createElement.apply(void 0,r);var s=r.length,i=new Array(s);i[0]=vD,i[1]=mD(t,n);for(var a=2;a<s;a++)i[a]=r[a];return f.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(K1||(K1={}));var CD=bh(function(e,t){var n=e.styles,r=kl([n],void 0,f.useContext(Dl)),s=f.useRef();return q1(function(){var i=t.key+"-global",a=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&&(a.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",i),a.hydrate([c])),s.current=[a,l],function(){a.flush()}},[t]),q1(function(){var i=s.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&gh(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function vs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return kl(t)}function Yo(){var e=vs.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 wD=/^((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)-.*))$/,SD=N1(function(e){return wD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),xD=SD,PD=function(t){return t!=="theme"},X1=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?xD:PD},Z1=function(t,n,r){var s;if(n){var i=n.shouldForwardProp;s=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof s!="function"&&r&&(s=t.__emotion_forwardProp),s},ED=function(t){var n=t.cache,r=t.serialized,s=t.isStringTag;return hh(n,r,s),U1(function(){return gh(n,r,s)}),null},TD=function e(t,n){var r=t.__emotion_real===t,s=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var l=Z1(t,n,r),c=l||X1(s),u=!c("as");return function(){var d=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{var g=d[0];p.push(g[0]);for(var h=d.length,b=1;b<h;b++)p.push(d[b],g[b])}var m=bh(function(y,C,S){var x=u&&y.as||s,E="",P=[],M=y;if(y.theme==null){M={};for(var D in y)M[D]=y[D];M.theme=f.useContext(Dl)}typeof y.className=="string"?E=B1(C.registered,P,y.className):y.className!=null&&(E=y.className+" ");var O=kl(p.concat(P),C.registered,M);E+=C.key+"-"+O.name,a!==void 0&&(E+=" "+a);var k=u&&l===void 0?X1(x):c,I={};for(var F in y)u&&F==="as"||k(F)&&(I[F]=y[F]);return I.className=E,S&&(I.ref=S),f.createElement(f.Fragment,null,f.createElement(ED,{cache:C,serialized:O,isStringTag:typeof x=="string"}),f.createElement(x,I))});return m.displayName=i!==void 0?i:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=p,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(y,C){var S=e(y,w({},n,C,{shouldForwardProp:Z1(m,C,!0)}));return S.apply(void 0,p)},m}},ID=["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"],Ch=TD.bind(null);ID.forEach(function(e){Ch[e]=Ch(e)});var Au={exports:{}},Vu={exports:{}},Wt={};var Q1;function MD(){if(Q1)return Wt;Q1=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,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=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,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function x(P){if(typeof P=="object"&&P!==null){var M=P.$$typeof;switch(M){case t:switch(P=P.type,P){case c:case u:case r:case i:case s:case p:return P;default:switch(P=P&&P.$$typeof,P){case l:case d:case b:case h:case a:return P;default:return M}}case n:return M}}}function E(P){return x(P)===u}return Wt.AsyncMode=c,Wt.ConcurrentMode=u,Wt.ContextConsumer=l,Wt.ContextProvider=a,Wt.Element=t,Wt.ForwardRef=d,Wt.Fragment=r,Wt.Lazy=b,Wt.Memo=h,Wt.Portal=n,Wt.Profiler=i,Wt.StrictMode=s,Wt.Suspense=p,Wt.isAsyncMode=function(P){return E(P)||x(P)===c},Wt.isConcurrentMode=E,Wt.isContextConsumer=function(P){return x(P)===l},Wt.isContextProvider=function(P){return x(P)===a},Wt.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},Wt.isForwardRef=function(P){return x(P)===d},Wt.isFragment=function(P){return x(P)===r},Wt.isLazy=function(P){return x(P)===b},Wt.isMemo=function(P){return x(P)===h},Wt.isPortal=function(P){return x(P)===n},Wt.isProfiler=function(P){return x(P)===i},Wt.isStrictMode=function(P){return x(P)===s},Wt.isSuspense=function(P){return x(P)===p},Wt.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===u||P===i||P===s||P===p||P===g||typeof P=="object"&&P!==null&&(P.$$typeof===b||P.$$typeof===h||P.$$typeof===a||P.$$typeof===l||P.$$typeof===d||P.$$typeof===y||P.$$typeof===C||P.$$typeof===S||P.$$typeof===m)},Wt.typeOf=x,Wt}var Ut={};var J1;function OD(){return J1||(J1=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,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=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,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function x(W){return typeof W=="string"||typeof W=="function"||W===r||W===u||W===i||W===s||W===p||W===g||typeof W=="object"&&W!==null&&(W.$$typeof===b||W.$$typeof===h||W.$$typeof===a||W.$$typeof===l||W.$$typeof===d||W.$$typeof===y||W.$$typeof===C||W.$$typeof===S||W.$$typeof===m)}function E(W){if(typeof W=="object"&&W!==null){var le=W.$$typeof;switch(le){case t:var oe=W.type;switch(oe){case c:case u:case r:case i:case s:case p:return oe;default:var re=oe&&oe.$$typeof;switch(re){case l:case d:case b:case h:case a:return re;default:return le}}case n:return le}}}var P=c,M=u,D=l,O=a,k=t,I=d,F=r,T=b,R=h,A=n,L=i,N=s,_=p,H=!1;function B(W){return H||(H=!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.")),$(W)||E(W)===c}function $(W){return E(W)===u}function V(W){return E(W)===l}function z(W){return E(W)===a}function j(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function G(W){return E(W)===d}function Q(W){return E(W)===r}function q(W){return E(W)===b}function Y(W){return E(W)===h}function K(W){return E(W)===n}function J(W){return E(W)===i}function X(W){return E(W)===s}function ee(W){return E(W)===p}Ut.AsyncMode=P,Ut.ConcurrentMode=M,Ut.ContextConsumer=D,Ut.ContextProvider=O,Ut.Element=k,Ut.ForwardRef=I,Ut.Fragment=F,Ut.Lazy=T,Ut.Memo=R,Ut.Portal=A,Ut.Profiler=L,Ut.StrictMode=N,Ut.Suspense=_,Ut.isAsyncMode=B,Ut.isConcurrentMode=$,Ut.isContextConsumer=V,Ut.isContextProvider=z,Ut.isElement=j,Ut.isForwardRef=G,Ut.isFragment=Q,Ut.isLazy=q,Ut.isMemo=Y,Ut.isPortal=K,Ut.isProfiler=J,Ut.isStrictMode=X,Ut.isSuspense=ee,Ut.isValidElementType=x,Ut.typeOf=E})()),Ut}var ev;function tv(){return ev||(ev=1,process.env.NODE_ENV==="production"?Vu.exports=MD():Vu.exports=OD()),Vu.exports}var wh,nv;function kD(){if(nv)return wh;nv=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 s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[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 wh=s()?Object.assign:function(i,a){for(var l,c=r(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var p in l)t.call(l,p)&&(c[p]=l[p]);if(e){u=e(l);for(var g=0;g<u.length;g++)n.call(l,u[g])&&(c[u[g]]=l[u[g]])}}return c},wh}var Sh,ov;function xh(){if(ov)return Sh;ov=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Sh=e,Sh}var Ph,rv;function sv(){return rv||(rv=1,Ph=Function.call.bind(Object.prototype.hasOwnProperty)),Ph}var Eh,iv;function DD(){if(iv)return Eh;iv=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=xh(),n={},r=sv();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var p;try{if(typeof i[d]!="function"){var g=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 g.name="Invariant Violation",g}p=i[d](a,d,c,l,null,t)}catch(b){p=b}if(p&&!(p 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 p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var h=u?u():"";e("Failed "+l+" type: "+p.message+(h??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Eh=s,Eh}var Th,av;function FD(){if(av)return Th;av=1;var e=tv(),t=kD(),n=xh(),r=sv(),s=DD(),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 a(){return null}return Th=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p($){var V=$&&(u&&$[u]||$[d]);if(typeof V=="function")return V}var g="<<anonymous>>",h={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:S(),arrayOf:x,element:E(),elementType:P(),instanceOf:M,node:I(),objectOf:O,oneOf:D,oneOfType:k,shape:T,exact:R};function b($,V){return $===V?$!==0||1/$===1/V:$!==$&&V!==V}function m($,V){this.message=$,this.data=V&&typeof V=="object"?V:{},this.stack=""}m.prototype=Error.prototype;function y($){if(process.env.NODE_ENV!=="production")var V={},z=0;function j(Q,q,Y,K,J,X,ee){if(K=K||g,X=X||Y,ee!==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 le=K+":"+Y;!V[le]&&z<3&&(i("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+K+"`. 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."),V[le]=!0,z++)}}return q[Y]==null?Q?q[Y]===null?new m("The "+J+" `"+X+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new m("The "+J+" `"+X+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:$(q,Y,K,J,X)}var G=j.bind(null,!1);return G.isRequired=j.bind(null,!0),G}function C($){function V(z,j,G,Q,q,Y){var K=z[j],J=N(K);if(J!==$){var X=_(K);return new m("Invalid "+Q+" `"+q+"` of type "+("`"+X+"` supplied to `"+G+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return y(V)}function S(){return y(a)}function x($){function V(z,j,G,Q,q){if(typeof $!="function")return new m("Property `"+q+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var Y=z[j];if(!Array.isArray(Y)){var K=N(Y);return new m("Invalid "+Q+" `"+q+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an array."))}for(var J=0;J<Y.length;J++){var X=$(Y,J,G,Q,q+"["+J+"]",n);if(X instanceof Error)return X}return null}return y(V)}function E(){function $(V,z,j,G,Q){var q=V[z];if(!l(q)){var Y=N(q);return new m("Invalid "+G+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+j+"`, expected a single ReactElement."))}return null}return y($)}function P(){function $(V,z,j,G,Q){var q=V[z];if(!e.isValidElementType(q)){var Y=N(q);return new m("Invalid "+G+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+j+"`, expected a single ReactElement type."))}return null}return y($)}function M($){function V(z,j,G,Q,q){if(!(z[j]instanceof $)){var Y=$.name||g,K=B(z[j]);return new m("Invalid "+Q+" `"+q+"` of type "+("`"+K+"` supplied to `"+G+"`, expected ")+("instance of `"+Y+"`."))}return null}return y(V)}function D($){if(!Array.isArray($))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.")),a;function V(z,j,G,Q,q){for(var Y=z[j],K=0;K<$.length;K++)if(b(Y,$[K]))return null;var J=JSON.stringify($,function(ee,W){var le=_(W);return le==="symbol"?String(W):W});return new m("Invalid "+Q+" `"+q+"` of value `"+String(Y)+"` "+("supplied to `"+G+"`, expected one of "+J+"."))}return y(V)}function O($){function V(z,j,G,Q,q){if(typeof $!="function")return new m("Property `"+q+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var Y=z[j],K=N(Y);if(K!=="object")return new m("Invalid "+Q+" `"+q+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an object."));for(var J in Y)if(r(Y,J)){var X=$(Y,J,G,Q,q+"."+J,n);if(X instanceof Error)return X}return null}return y(V)}function k($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var V=0;V<$.length;V++){var z=$[V];if(typeof z!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+H(z)+" at index "+V+"."),a}function j(G,Q,q,Y,K){for(var J=[],X=0;X<$.length;X++){var ee=$[X],W=ee(G,Q,q,Y,K,n);if(W==null)return null;W.data&&r(W.data,"expectedType")&&J.push(W.data.expectedType)}var le=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new m("Invalid "+Y+" `"+K+"` supplied to "+("`"+q+"`"+le+"."))}return y(j)}function I(){function $(V,z,j,G,Q){return A(V[z])?null:new m("Invalid "+G+" `"+Q+"` supplied to "+("`"+j+"`, expected a ReactNode."))}return y($)}function F($,V,z,j,G){return new m(($||"React class")+": "+V+" type `"+z+"."+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function T($){function V(z,j,G,Q,q){var Y=z[j],K=N(Y);if(K!=="object")return new m("Invalid "+Q+" `"+q+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));for(var J in $){var X=$[J];if(typeof X!="function")return F(G,Q,q,J,_(X));var ee=X(Y,J,G,Q,q+"."+J,n);if(ee)return ee}return null}return y(V)}function R($){function V(z,j,G,Q,q){var Y=z[j],K=N(Y);if(K!=="object")return new m("Invalid "+Q+" `"+q+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));var J=t({},z[j],$);for(var X in J){var ee=$[X];if(r($,X)&&typeof ee!="function")return F(G,Q,q,X,_(ee));if(!ee)return new m("Invalid "+Q+" `"+q+"` key `"+X+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(z[j],null," ")+`
2
+ Valid keys: `+JSON.stringify(Object.keys($),null," "));var W=ee(Y,X,G,Q,q+"."+X,n);if(W)return W}return null}return y(V)}function A($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(A);if($===null||l($))return!0;var V=p($);if(V){var z=V.call($),j;if(V!==$.entries){for(;!(j=z.next()).done;)if(!A(j.value))return!1}else for(;!(j=z.next()).done;){var G=j.value;if(G&&!A(G[1]))return!1}}else return!1;return!0;default:return!1}}function L($,V){return $==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function N($){var V=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":L(V,$)?"symbol":V}function _($){if(typeof $>"u"||$===null)return""+$;var V=N($);if(V==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return V}function H($){var V=_($);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function B($){return!$.constructor||!$.constructor.name?g:$.constructor.name}return h.checkPropTypes=s,h.resetWarningCache=s.resetWarningCache,h.PropTypes=h,h},Th}var Ih,lv;function ND(){if(lv)return Ih;lv=1;var e=xh();function t(){}function n(){}return n.resetWarningCache=t,Ih=function(){function r(a,l,c,u,d,p){if(p!==e){var g=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 g.name="Invariant Violation",g}}r.isRequired=r;function s(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ih}var cv;function Mh(){if(cv)return Au.exports;if(cv=1,process.env.NODE_ENV!=="production"){var e=tv(),t=!0;Au.exports=FD()(e.isElement,t)}else Au.exports=ND()();return Au.exports}var RD=Mh();const o=ys(RD);function LD(e){return e==null||Object.keys(e).length===0}function Oh(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?s=>t(LD(s)?n:s):t;return v.jsx(CD,{styles:r})}process.env.NODE_ENV!=="production"&&(Oh.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function uv(e,t){const n=Ch(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const s=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
3
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...r)}:n}function $D(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const dv=[];function Cs(e){return dv[0]=e,kl(dv)}var _u={exports:{}},tn={};var pv;function AD(){if(pv)return tn;pv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function b(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case e:switch(m=m.type,m){case n:case s:case r:case c:case u:case g:return m;default:switch(m=m&&m.$$typeof,m){case a:case l:case p:case d:return m;case i:return m;default:return y}}case t:return y}}}return tn.ContextConsumer=i,tn.ContextProvider=a,tn.Element=e,tn.ForwardRef=l,tn.Fragment=n,tn.Lazy=p,tn.Memo=d,tn.Portal=t,tn.Profiler=s,tn.StrictMode=r,tn.Suspense=c,tn.SuspenseList=u,tn.isContextConsumer=function(m){return b(m)===i},tn.isContextProvider=function(m){return b(m)===a},tn.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},tn.isForwardRef=function(m){return b(m)===l},tn.isFragment=function(m){return b(m)===n},tn.isLazy=function(m){return b(m)===p},tn.isMemo=function(m){return b(m)===d},tn.isPortal=function(m){return b(m)===t},tn.isProfiler=function(m){return b(m)===s},tn.isStrictMode=function(m){return b(m)===r},tn.isSuspense=function(m){return b(m)===c},tn.isSuspenseList=function(m){return b(m)===u},tn.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===s||m===r||m===c||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===d||m.$$typeof===a||m.$$typeof===i||m.$$typeof===l||m.$$typeof===h||m.getModuleId!==void 0)},tn.typeOf=b,tn}var nn={};var fv;function VD(){return fv||(fv=1,process.env.NODE_ENV!=="production"&&(function(){function e(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case t:switch(m=m.type,m){case r:case i:case s:case u:case d:case h:return m;default:switch(m=m&&m.$$typeof,m){case l:case c:case g:case p:return m;case a:return m;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");nn.ContextConsumer=a,nn.ContextProvider=l,nn.Element=t,nn.ForwardRef=c,nn.Fragment=r,nn.Lazy=g,nn.Memo=p,nn.Portal=n,nn.Profiler=i,nn.StrictMode=s,nn.Suspense=u,nn.SuspenseList=d,nn.isContextConsumer=function(m){return e(m)===a},nn.isContextProvider=function(m){return e(m)===l},nn.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},nn.isForwardRef=function(m){return e(m)===c},nn.isFragment=function(m){return e(m)===r},nn.isLazy=function(m){return e(m)===g},nn.isMemo=function(m){return e(m)===p},nn.isPortal=function(m){return e(m)===n},nn.isProfiler=function(m){return e(m)===i},nn.isStrictMode=function(m){return e(m)===s},nn.isSuspense=function(m){return e(m)===u},nn.isSuspenseList=function(m){return e(m)===d},nn.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===i||m===s||m===u||m===d||typeof m=="object"&&m!==null&&(m.$$typeof===g||m.$$typeof===p||m.$$typeof===l||m.$$typeof===a||m.$$typeof===c||m.$$typeof===b||m.getModuleId!==void 0)},nn.typeOf=e})()),nn}var hv;function _D(){return hv||(hv=1,process.env.NODE_ENV==="production"?_u.exports=AD():_u.exports=VD()),_u.exports}var ws=_D();function Fr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function gv(e){if(f.isValidElement(e)||ws.isValidElementType(e)||!Fr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=gv(e[n])}),t}function no(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Fr(e)&&Fr(t)&&Object.keys(t).forEach(s=>{f.isValidElement(t[s])||ws.isValidElementType(t[s])?r[s]=t[s]:Fr(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Fr(e[s])?r[s]=no(e[s],t[s],n):n.clone?r[s]=Fr(t[s])?gv(t[s]):t[s]:r[s]=t[s]}),r}const BD=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function HD(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...s}=e,i=BD(t),a=Object.keys(i);function l(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function c(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function u(g,h){const b=a.indexOf(h);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:h)-r/100}${n})`}function d(g){return a.indexOf(g)+1<a.length?u(g,a[a.indexOf(g)+1]):l(g)}function p(g){const h=a.indexOf(g);return h===0?l(a[1]):h===a.length-1?c(a[h]):u(g,a[a.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:c,between:u,only:d,not:p,unit:n,...s}}function mv(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,s)=>{const i=/min-width:\s*([0-9.]+)/;return+(r.match(i)?.[1]||0)-+(s.match(i)?.[1]||0)});return n.length?n.reduce((r,s)=>{const i=t[s];return delete r[s],r[s]=i,r},{...t}):t}function zD(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function jD(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
4
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,r,s]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(s).up(i)}function GD(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);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={},s=i=>(n(r,i),r);return n(s),{...e,containerQueries:s}}const WD={borderRadius:4},Ss=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function Fl(e,t){return t?no(e,t,{clone:!1}):e}const Bu={xs:0,sm:600,md:900,lg:1200,xl:1536},bv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Bu[e]}px)`},UD={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Bu[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Xr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||bv;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||bv;return Object.keys(t).reduce((a,l)=>{if(zD(i.keys,l)){const c=jD(r.containerQueries?r:UD,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||Bu).includes(l)){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function qD(e={}){return e.keys?.reduce((n,r)=>{const s=e.up(r);return n[s]={},n},{})||{}}function yv(e,t){return e.reduce((n,r)=>{const s=n[r];return(!s||Object.keys(s).length===0)&&delete n[r],n},t)}function de(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Kr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Hu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((s,i)=>s&&s[i]?s[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,s)=>r&&r[s]!=null?r[s]:null,e)}function zu(e,t,n,r=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||r:s=Hu(e,n)||r,t&&(s=t(s,r,e)),s}function Dn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:s}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=Hu(c,r)||{};return Xr(a,l,p=>{let g=zu(u,s,p);return p===g&&typeof p=="string"&&(g=zu(u,s,`${t}${p==="default"?"":de(p)}`,p)),n===!1?g:{[n]:g}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ss}:{},i.filterProps=[t],i}function YD(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const KD={m:"margin",p:"padding"},XD={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ZD=YD(e=>{if(e.length>2)if(vv[e])e=vv[e];else return[e];const[t,n]=e.split(""),r=KD[t],s=XD[n]||"";return Array.isArray(s)?s.map(i=>r+i):[r+s]}),ju=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],QD=[...ju,...Gu];function Nl(e,t,n,r){const s=Hu(e,t,!0)??n;return typeof s=="number"||typeof s=="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 s=="string"?s.startsWith("var(")&&i===0?0:s.startsWith("var(")&&i===1?s:`calc(${i} * ${s})`:s*i):Array.isArray(s)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>s.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${a} > ${s.length-1}, you need to add the missing values.`].join(`
5
+ `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
6
+ `)));const l=s[a];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
7
+ `)),()=>{})}function kh(e){return Nl(e,"spacing",8,"spacing")}function Rl(e,t){return typeof t=="string"||t==null?t:e(t)}function JD(e,t){return n=>e.reduce((r,s)=>(r[s]=Rl(t,n),r),{})}function e5(e,t,n,r){if(!t.includes(n))return null;const s=ZD(n),i=JD(s,r),a=e[n];return Xr(e,a,i)}function Cv(e,t){const n=kh(e.theme);return Object.keys(e).map(r=>e5(e,t,r,n)).reduce(Fl,{})}function Sn(e){return Cv(e,ju)}Sn.propTypes=process.env.NODE_ENV!=="production"?ju.reduce((e,t)=>(e[t]=Ss,e),{}):{},Sn.filterProps=ju;function xn(e){return Cv(e,Gu)}xn.propTypes=process.env.NODE_ENV!=="production"?Gu.reduce((e,t)=>(e[t]=Ss,e),{}):{},xn.filterProps=Gu,process.env.NODE_ENV!=="production"&&QD.reduce((e,t)=>(e[t]=Ss,e),{});function wv(e=8,t=kh({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 a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Wu(...e){const t=e.reduce((r,s)=>(s.filterProps.forEach(i=>{r[i]=s}),r),{}),n=r=>Object.keys(r).reduce((s,i)=>t[i]?Fl(s,t[i](r)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,s)=>Object.assign(r,s.propTypes),{}):{},n.filterProps=e.reduce((r,s)=>r.concat(s.filterProps),[]),n}function Ko(e){return typeof e!="number"?e:`${e}px solid`}function Xo(e,t){return Dn({prop:e,themeKey:"borders",transform:t})}const t5=Xo("border",Ko),n5=Xo("borderTop",Ko),o5=Xo("borderRight",Ko),r5=Xo("borderBottom",Ko),s5=Xo("borderLeft",Ko),i5=Xo("borderColor"),a5=Xo("borderTopColor"),l5=Xo("borderRightColor"),c5=Xo("borderBottomColor"),u5=Xo("borderLeftColor"),d5=Xo("outline",Ko),p5=Xo("outlineColor"),Uu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Nl(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Rl(t,r)});return Xr(e,e.borderRadius,n)}return null};Uu.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ss}:{},Uu.filterProps=["borderRadius"],Wu(t5,n5,o5,r5,s5,i5,a5,l5,c5,u5,Uu,d5,p5);const qu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Nl(e.theme,"spacing",8,"gap"),n=r=>({gap:Rl(t,r)});return Xr(e,e.gap,n)}return null};qu.propTypes=process.env.NODE_ENV!=="production"?{gap:Ss}:{},qu.filterProps=["gap"];const Yu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Nl(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Rl(t,r)});return Xr(e,e.columnGap,n)}return null};Yu.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ss}:{},Yu.filterProps=["columnGap"];const Ku=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Nl(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Rl(t,r)});return Xr(e,e.rowGap,n)}return null};Ku.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ss}:{},Ku.filterProps=["rowGap"];const f5=Dn({prop:"gridColumn"}),h5=Dn({prop:"gridRow"}),g5=Dn({prop:"gridAutoFlow"}),m5=Dn({prop:"gridAutoColumns"}),b5=Dn({prop:"gridAutoRows"}),y5=Dn({prop:"gridTemplateColumns"}),v5=Dn({prop:"gridTemplateRows"}),C5=Dn({prop:"gridTemplateAreas"}),w5=Dn({prop:"gridArea"});Wu(qu,Yu,Ku,f5,h5,g5,m5,b5,y5,v5,C5,w5);function ra(e,t){return t==="grey"?t:e}const S5=Dn({prop:"color",themeKey:"palette",transform:ra}),x5=Dn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ra}),P5=Dn({prop:"backgroundColor",themeKey:"palette",transform:ra});Wu(S5,x5,P5);function No(e){return e<=1&&e!==0?`${e*100}%`:e}const E5=Dn({prop:"width",transform:No}),Dh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Bu[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:No(n)}};return Xr(e,e.maxWidth,t)}return null};Dh.filterProps=["maxWidth"];const T5=Dn({prop:"minWidth",transform:No}),I5=Dn({prop:"height",transform:No}),M5=Dn({prop:"maxHeight",transform:No}),O5=Dn({prop:"minHeight",transform:No});Dn({prop:"size",cssProperty:"width",transform:No}),Dn({prop:"size",cssProperty:"height",transform:No});const k5=Dn({prop:"boxSizing"});Wu(E5,Dh,T5,I5,M5,O5,k5);const Ll={border:{themeKey:"borders",transform:Ko},borderTop:{themeKey:"borders",transform:Ko},borderRight:{themeKey:"borders",transform:Ko},borderBottom:{themeKey:"borders",transform:Ko},borderLeft:{themeKey:"borders",transform:Ko},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ko},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Uu},color:{themeKey:"palette",transform:ra},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ra},backgroundColor:{themeKey:"palette",transform:ra},p:{style:xn},pt:{style:xn},pr:{style:xn},pb:{style:xn},pl:{style:xn},px:{style:xn},py:{style:xn},padding:{style:xn},paddingTop:{style:xn},paddingRight:{style:xn},paddingBottom:{style:xn},paddingLeft:{style:xn},paddingX:{style:xn},paddingY:{style:xn},paddingInline:{style:xn},paddingInlineStart:{style:xn},paddingInlineEnd:{style:xn},paddingBlock:{style:xn},paddingBlockStart:{style:xn},paddingBlockEnd:{style:xn},m:{style:Sn},mt:{style:Sn},mr:{style:Sn},mb:{style:Sn},ml:{style:Sn},mx:{style:Sn},my:{style:Sn},margin:{style:Sn},marginTop:{style:Sn},marginRight:{style:Sn},marginBottom:{style:Sn},marginLeft:{style:Sn},marginX:{style:Sn},marginY:{style:Sn},marginInline:{style:Sn},marginInlineStart:{style:Sn},marginInlineEnd:{style:Sn},marginBlock:{style:Sn},marginBlockStart:{style:Sn},marginBlockEnd:{style:Sn},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:qu},rowGap:{style:Ku},columnGap:{style:Yu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:No},maxWidth:{style:Dh},minWidth:{transform:No},height:{transform:No},maxHeight:{transform:No},minHeight:{transform:No},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 D5(...e){const t=e.reduce((r,s)=>r.concat(Object.keys(s)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function F5(e,t){return typeof e=="function"?e(t):e}function N5(){function e(n,r,s,i){const a={[n]:r,theme:s},l=i[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:p}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const g=Hu(s,u)||{};return p?p(a):Xr(a,r,b=>{let m=zu(g,d,b);return b===m&&typeof b=="string"&&(m=zu(g,d,`${n}${b==="default"?"":de(b)}`,b)),c===!1?m:{[c]:m}})}function t(n){const{sx:r,theme:s={},nested:i}=n||{};if(!r)return null;const a=s.unstable_sxConfig??Ll;function l(c){let u=c;if(typeof c=="function")u=c(s);else if(typeof c!="object")return c;if(!u)return null;const d=qD(s.breakpoints),p=Object.keys(d);let g=d;return Object.keys(u).forEach(h=>{const b=F5(u[h],s);if(b!=null)if(typeof b=="object")if(a[h])g=Fl(g,e(h,b,s,a));else{const m=Xr({theme:s},b,y=>({[h]:y}));D5(m,b)?g[h]=t({sx:b,theme:s,nested:!0}):g=Fl(g,m)}else g=Fl(g,e(h,b,s,a))}),!i&&s.modularCssLayers?{"@layer sx":mv(s,yv(p,g))}:mv(s,yv(p,g))}return Array.isArray(r)?r.map(l):l(r)}return t}const xs=N5();xs.filterProps=["sx"];function R5(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Xu(e={},...t){const{breakpoints:n={},palette:r={},spacing:s,shape:i={},...a}=e,l=HD(n),c=wv(s);let u=no({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...WD,...i}},a);return u=GD(u),u.applyStyles=R5,u=t.reduce((d,p)=>no(d,p),u),u.unstable_sxConfig={...Ll,...a?.unstable_sxConfig},u.unstable_sx=function(p){return xs({sx:p,theme:this})},u}function L5(e){return Object.keys(e).length===0}function Zu(e=null){const t=f.useContext(Dl);return!t||L5(t)?e:t}const $5=Xu();function $l(e=$5){return Zu(e)}function Fh(e){const t=Cs(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Nh({styles:e,themeId:t,defaultTheme:n={}}){const r=$l(n),s=t&&r[t]||r;let i=typeof e=="function"?e(s):e;return s.modularCssLayers&&(Array.isArray(i)?i=i.map(a=>Fh(typeof a=="function"?a(s):a)):i=Fh(i)),v.jsx(Oh,{styles:i})}process.env.NODE_ENV!=="production"&&(Nh.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const A5=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ll;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Rh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:s}=A5(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Fr(l)?{...r,...l}:r}:i={...r,...t},{...s,sx:i}}const Sv=e=>e,xv=(()=>{let e=Sv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Sv}}})();function Pv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Pv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function se(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Pv(e))&&(r&&(r+=" "),r+=t);return r}function V5(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:s}=e,i=uv("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(xs);return f.forwardRef(function(c,u){const d=$l(n),{className:p,component:g="div",...h}=Rh(c);return v.jsx(i,{as:g,ref:u,className:se(p,s?s(r):r),theme:t&&d[t]||d,...h})})}const _5={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 ke(e,t,n="Mui"){const r=_5[t];return r?`${n}-${r}`:`${xv.generate(e)}-${t}`}function Me(e,t,n="Mui"){const r={};return t.forEach(s=>{r[s]=ke(e,s,n)}),r}function Ev(e,t=""){return e.displayName||e.name||t}function Tv(e,t,n){const r=Ev(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function B5(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ev(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ws.ForwardRef:return Tv(e,e.render,"ForwardRef");case ws.Memo:return Tv(e,e.type,"memo");default:return}}}function Iv(e){const{variants:t,...n}=e,r={variants:t,style:Cs(n),isProcessed:!0};return r.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=Cs(s.style))}),r}const H5=Xu();function So(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Xs(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function z5(e){return e?(t,n)=>n[e]:null}function j5(e,t,n){e.theme=U5(e.theme)?n:e.theme[t]||e.theme}function Qu(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(s=>Qu(e,s,n));if(Array.isArray(r?.variants)){let s;if(r.isProcessed)s=n?Xs(r.style,n):r.style;else{const{variants:i,...a}=r;s=n?Xs(Cs(a),n):a}return Mv(e,r.variants,[s],n)}return r?.isProcessed?n?Xs(Cs(r.style),n):r.style:n?Xs(Cs(r),n):r}function Mv(e,t,n=[],r=void 0){let s;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(s??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(s))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(s??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Xs(Cs(a.style(s)),r):a.style(s))):n.push(r?Xs(Cs(a.style),r):a.style)}return n}function Ov(e={}){const{themeId:t,defaultTheme:n=H5,rootShouldForwardProp:r=So,slotShouldForwardProp:s=So}=e;function i(l){j5(l,t,n)}return(l,c={})=>{$D(l,M=>M.filter(D=>D!==xs));const{name:u,slot:d,skipVariantsResolver:p,skipSx:g,overridesResolver:h=z5(kv(d)),...b}=c,m=u&&u.startsWith("Mui")||d?"components":"custom",y=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,C=g||!1;let S=So;d==="Root"||d==="root"?S=r:d?S=s:q5(l)&&(S=void 0);const x=uv(l,{shouldForwardProp:S,label:W5(u,d),...b}),E=M=>{if(M.__emotion_real===M)return M;if(typeof M=="function")return function(O){return Qu(O,M,O.theme.modularCssLayers?m:void 0)};if(Fr(M)){const D=Iv(M);return function(k){return D.variants?Qu(k,D,k.theme.modularCssLayers?m:void 0):k.theme.modularCssLayers?Xs(D.style,m):D.style}}return M},P=(...M)=>{const D=[],O=M.map(E),k=[];if(D.push(i),u&&h&&k.push(function(R){const L=R.theme.components?.[u]?.styleOverrides;if(!L)return null;const N={};for(const _ in L)N[_]=Qu(R,L[_],R.theme.modularCssLayers?"theme":void 0);return h(R,N)}),u&&!y&&k.push(function(R){const L=R.theme?.components?.[u]?.variants;return L?Mv(R,L,[],R.theme.modularCssLayers?"theme":void 0):null}),C||k.push(xs),Array.isArray(O[0])){const T=O.shift(),R=new Array(D.length).fill(""),A=new Array(k.length).fill("");let L;L=[...R,...T,...A],L.raw=[...R,...T.raw,...A],D.unshift(L)}const I=[...D,...O,...k],F=x(...I);return l.muiName&&(F.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(F.displayName=G5(u,d,l)),F};return x.withConfig&&(P.withConfig=x.withConfig),P}}function G5(e,t,n){return e?`${e}${de(t||"")}`:`Styled(${B5(n)})`}function W5(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${kv(t||"Root")}`),n}function U5(e){for(const t in e)return!1;return!0}function q5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function kv(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Nr=Ov();function Zs(e,t,n=!1){const r={...t};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const i=s;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)r[i]=a||{};else if(!a)r[i]=l;else{r[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;r[i][u]=Zs(a[u],l[u],n)}}}else i==="className"&&n&&t.className?r.className=se(e?.className,t?.className):i==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[i]===void 0&&(r[i]=e[i])}return r}function Lh(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Zs(t.components[n].defaultProps,r)}function Dv({props:e,name:t,defaultTheme:n,themeId:r}){let s=$l(n);return r&&(s=s[r]||s),Lh({theme:s,name:t,props:e})}const it=typeof window<"u"?f.useLayoutEffect:f.useEffect;function Y5(e,t,n,r,s){const[i,a]=f.useState(()=>s&&n?n(e).matches:r?r(e).matches:t);return it(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),i}const Fv={...f}.useSyncExternalStore;function K5(e,t,n,r,s){const i=f.useCallback(()=>t,[t]),a=f.useMemo(()=>{if(s&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return i},[i,e,r,s,n]),[l,c]=f.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,p=>(d.addEventListener("change",p),()=>{d.removeEventListener("change",p)})]},[i,n,e]);return Fv(c,l,a)}function Nv(e={}){const{themeId:t}=e;return function(r,s={}){let i=Zu();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=Lh({name:"MuiUseMediaQuery",props:s,theme:i});process.env.NODE_ENV!=="production"&&typeof r=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
8
+ `));let p=typeof r=="function"?r(i):r;p=p.replace(/^@media( ?)/m,""),p.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
9
+ `));const h=(Fv!==void 0?K5:Y5)(p,l,c,u,d);return process.env.NODE_ENV!=="production"&&f.useDebugValue({query:p,match:h}),h}}Nv();function X5(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function $h(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),X5(e,t,n)}function Z5(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);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,s)=>s<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ps(e){if(e.type)return e;if(e.charAt(0)==="#")return Ps(Z5(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
10
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Kr(9,e));let r=e.substring(t+1,e.length-1),s;if(n==="color"){if(r=r.split(" "),s=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(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
11
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Kr(10,s))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:s}}const Q5=e=>{const t=Ps(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Al=(e,t)=>{try{return Q5(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ju(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((s,i)=>i<3?parseInt(s,10):s):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Rv(e){e=Ps(e);const{values:t}=e,n=t[0],r=t[1]/100,s=t[2]/100,i=r*Math.min(s,1-s),a=(u,d=(u+n/30)%12)=>s-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Ju({type:l,values:c})}function Ah(e){e=Ps(e);let t=e.type==="hsl"||e.type==="hsla"?Ps(Rv(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 Lv(e,t){const n=Ah(e),r=Ah(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function $n(e,t){return e=Ps(e),t=$h(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ju(e)}function Qs(e,t,n){try{return $n(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Vl(e,t){if(e=Ps(e),t=$h(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 Ju(e)}function Xt(e,t,n){try{return Vl(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function _l(e,t){if(e=Ps(e),t=$h(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 Ju(e)}function Zt(e,t,n){try{return _l(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function J5(e,t=.15){return Ah(e)>.5?Vl(e,t):_l(e,t)}function ed(e,t,n){try{return J5(e,t)}catch{return e}}const e3="exact-prop: ​";function Bl(e){return process.env.NODE_ENV==="production"?e:{...e,[e3]: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 Vh=f.createContext(null);process.env.NODE_ENV!=="production"&&(Vh.displayName="ThemeContext");function _h(){const e=f.useContext(Vh);return process.env.NODE_ENV!=="production"&&f.useDebugValue(e),e}const t3=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function n3(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
12
+ `))),n}return{...e,...t}}function td(e){const{children:t,theme:n}=e,r=_h();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
13
+ `));const s=f.useMemo(()=>{const i=r===null?{...n}:n3(r,n);return i!=null&&(i[t3]=r!==null),i},[n,r]);return v.jsx(Vh.Provider,{value:s,children:t})}process.env.NODE_ENV!=="production"&&(td.propTypes={children:o.node,theme:o.oneOfType([o.object,o.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(td.propTypes=Bl(td.propTypes));const $v=f.createContext();function Av({value:e,...t}){return v.jsx($v.Provider,{value:e??!0,...t})}process.env.NODE_ENV!=="production"&&(Av.propTypes={children:o.node,value:o.bool});const _t=()=>f.useContext($v)??!1,Vv=f.createContext(void 0);function _v({value:e,children:t}){return v.jsx(Vv.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(_v.propTypes={children:o.node,value:o.object});function o3(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const s=t.components[n];return s.defaultProps?Zs(s.defaultProps,r,t.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?Zs(s,r,t.components.mergeClassNameAndStyle):r}function r3({props:e,name:t}){const n=f.useContext(Vv);return o3({props:e,name:t,theme:{components:n}})}let Bv=0;function s3(e){const[t,n]=f.useState(e),r=e||t;return f.useEffect(()=>{t==null&&(Bv+=1,n(`mui-${Bv}`))},[t]),r}const Hv={...f}.useId;function at(e){if(Hv!==void 0){const t=Hv();return e??t}return s3(e)}function i3(e){const t=Zu(),n=at()||"",{modularCssLayers:r}=e;let s="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?s="":typeof r=="string"?s=r.replace(/mui(?!\.)/g,s):s=`@layer ${s};`,it(()=>{const i=document.querySelector("head");if(!i)return;const a=i.firstChild;if(s){if(a&&a.hasAttribute?.("data-mui-layer-order")&&a.getAttribute("data-mui-layer-order")===n)return;const l=document.createElement("style");l.setAttribute("data-mui-layer-order",n),l.textContent=s,i.prepend(l)}else i.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[s,n]),s?v.jsx(Nh,{styles:s}):null}const zv={};function jv(e,t,n,r=!1){return f.useMemo(()=>{const s=e&&t[e]||t;if(typeof n=="function"){const i=n(s),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Hl(e){const{children:t,theme:n,themeId:r}=e,s=Zu(zv),i=_h()||zv;process.env.NODE_ENV!=="production"&&(s===null&&typeof n=="function"||r&&s&&!s[r]&&typeof n=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
14
+ `));const a=jv(r,s,n),l=jv(r,i,n,!0),c=(r?a[r]:a).direction==="rtl",u=i3(a);return v.jsx(td,{theme:l,children:v.jsx(Dl.Provider,{value:a,children:v.jsx(Av,{value:c,children:v.jsxs(_v,{value:r?a[r].components:a.components,children:[u,t]})})})})}process.env.NODE_ENV!=="production"&&(Hl.propTypes={children:o.node,theme:o.oneOfType([o.func,o.object]).isRequired,themeId:o.string}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Hl.propTypes=Bl(Hl.propTypes));const Gv={theme:void 0};function a3(e){let t,n;return function(s){let i=t;return(i===void 0||s.theme!==n)&&(Gv.theme=s.theme,i=Iv(e(Gv)),t=i,n=s.theme),i}}const Bh="mode",Hh="color-scheme",l3="data-color-scheme";function c3(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:s=Bh,colorSchemeStorageKey:i=Hh,attribute:a=l3,colorSchemeNode:l="document.documentElement",nonce:c}=e||{};let u="",d=a;if(a==="class"&&(d=".%s"),a==="data"&&(d="[data-%s]"),d.startsWith(".")){const g=d.substring(1);u+=`${l}.classList.remove('${g}'.replace('%s', light), '${g}'.replace('%s', dark));
15
+ ${l}.classList.add('${g}'.replace('%s', colorScheme));`}const p=d.match(/\[([^[\]]+)\]/);if(p){const[g,h]=p[1].split("=");h||(u+=`${l}.removeAttribute('${g}'.replace('%s', light));
16
+ ${l}.removeAttribute('${g}'.replace('%s', dark));`),u+=`
17
+ ${l}.setAttribute('${g}'.replace('%s', colorScheme), ${h?`${h}.replace('%s', colorScheme)`:'""'});`}else d!==".%s"&&(u+=`${l}.setAttribute('${d}', colorScheme);`);return v.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(function() {
18
+ try {
19
+ let colorScheme = '';
20
+ const mode = localStorage.getItem('${s}') || '${t}';
21
+ const dark = localStorage.getItem('${i}-dark') || '${r}';
22
+ const light = localStorage.getItem('${i}-light') || '${n}';
23
+ if (mode === 'system') {
24
+ // handle system mode
25
+ const mql = window.matchMedia('(prefers-color-scheme: dark)');
26
+ if (mql.matches) {
27
+ colorScheme = dark
28
+ } else {
29
+ colorScheme = light
30
+ }
31
+ }
32
+ if (mode === 'light') {
33
+ colorScheme = light;
34
+ }
35
+ if (mode === 'dark') {
36
+ colorScheme = dark;
37
+ }
38
+ if (colorScheme) {
39
+ ${u}
40
+ }
41
+ } catch(e){}})();`}},"mui-color-scheme-init")}function u3(){}const d3=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return u3;const r=s=>{const i=s.newValue;s.key===e&&n(i)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function zh(){}function Wv(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Uv(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function p3(e){return Uv(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function f3(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:s=[],modeStorageKey:i=Bh,colorSchemeStorageKey:a=Hh,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=d3,noSsr:u=!1}=e,d=s.join(","),p=s.length>1,g=f.useMemo(()=>c?.({key:i,storageWindow:l}),[c,i,l]),h=f.useMemo(()=>c?.({key:`${a}-light`,storageWindow:l}),[c,a,l]),b=f.useMemo(()=>c?.({key:`${a}-dark`,storageWindow:l}),[c,a,l]),[m,y]=f.useState(()=>{const O=g?.get(t)||t,k=h?.get(n)||n,I=b?.get(r)||r;return{mode:O,systemMode:Wv(O),lightColorScheme:k,darkColorScheme:I}}),[C,S]=f.useState(u||!p);f.useEffect(()=>{S(!0)},[]);const x=p3(m),E=f.useCallback(O=>{y(k=>{if(O===k.mode)return k;const I=O??t;return g?.set(I),{...k,mode:I,systemMode:Wv(I)}})},[g,t]),P=f.useCallback(O=>{O?typeof O=="string"?O&&!d.includes(O)?console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`):y(k=>{const I={...k};return Uv(k,F=>{F==="light"&&(h?.set(O),I.lightColorScheme=O),F==="dark"&&(b?.set(O),I.darkColorScheme=O)}),I}):y(k=>{const I={...k},F=O.light===null?n:O.light,T=O.dark===null?r:O.dark;return F&&(d.includes(F)?(I.lightColorScheme=F,h?.set(F)):console.error(`\`${F}\` does not exist in \`theme.colorSchemes\`.`)),T&&(d.includes(T)?(I.darkColorScheme=T,b?.set(T)):console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`)),I}):y(k=>(h?.set(n),b?.set(r),{...k,lightColorScheme:n,darkColorScheme:r}))},[d,h,b,n,r]),M=f.useCallback(O=>{m.mode==="system"&&y(k=>{const I=O?.matches?"dark":"light";return k.systemMode===I?k:{...k,systemMode:I}})},[m.mode]),D=f.useRef(M);return D.current=M,f.useEffect(()=>{if(typeof window.matchMedia!="function"||!p)return;const O=(...I)=>D.current(...I),k=window.matchMedia("(prefers-color-scheme: dark)");return k.addListener(O),O(k),()=>{k.removeListener(O)}},[p]),f.useEffect(()=>{if(p){const O=g?.subscribe(F=>{(!F||["light","dark","system"].includes(F))&&E(F||t)})||zh,k=h?.subscribe(F=>{(!F||d.match(F))&&P({light:F})})||zh,I=b?.subscribe(F=>{(!F||d.match(F))&&P({dark:F})})||zh;return()=>{O(),k(),I()}}},[P,E,d,t,l,p,g,h,b]),{...m,mode:C?m.mode:void 0,systemMode:C?m.systemMode:void 0,colorScheme:C?x:void 0,setMode:E,setColorScheme:P}}const h3="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function g3(e){const{themeId:t,theme:n={},modeStorageKey:r=Bh,colorSchemeStorageKey:s=Hh,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(u.displayName="ColorSchemeContext");const d=()=>f.useContext(u)||c,p={},g={};function h(C){const{children:S,theme:x,modeStorageKey:E=r,colorSchemeStorageKey:P=s,disableTransitionOnChange:M=i,storageManager:D,storageWindow:O=typeof window>"u"?void 0:window,documentNode:k=typeof document>"u"?void 0:document,colorSchemeNode:I=typeof document>"u"?void 0:document.documentElement,disableNestedContext:F=!1,disableStyleSheetGeneration:T=!1,defaultMode:R="system",forceThemeRerender:A=!1,noSsr:L}=C,N=f.useRef(!1),_=_h(),H=f.useContext(u),B=!!H&&!F,$=f.useMemo(()=>x||(typeof n=="function"?n():n),[x]),V=$[t],z=V||$,{colorSchemes:j=p,components:G=g,cssVarPrefix:Q}=z,q=Object.keys(j).filter(Ne=>!!j[Ne]).join(","),Y=f.useMemo(()=>q.split(","),[q]),K=typeof a=="string"?a:a.light,J=typeof a=="string"?a:a.dark,X=j[K]&&j[J]?R:j[z.defaultColorScheme]?.palette?.mode||z.palette?.mode,{mode:ee,setMode:W,systemMode:le,lightColorScheme:oe,darkColorScheme:re,colorScheme:ae,setColorScheme:ne}=f3({supportedColorSchemes:Y,defaultLightColorScheme:K,defaultDarkColorScheme:J,modeStorageKey:E,colorSchemeStorageKey:P,defaultMode:X,storageManager:D,storageWindow:O,noSsr:L});let te=ee,ye=ae;B&&(te=H.mode,ye=H.colorScheme),process.env.NODE_ENV!=="production"&&A&&!z.vars&&console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.","Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
42
+ `));let ce=ye||z.defaultColorScheme;z.vars&&!A&&(ce=z.defaultColorScheme);const Se=f.useMemo(()=>{const Ne=z.generateThemeVars?.()||z.vars,Ke={...z,components:G,colorSchemes:j,cssVarPrefix:Q,vars:Ne};if(typeof Ke.generateSpacing=="function"&&(Ke.spacing=Ke.generateSpacing()),ce){const He=j[ce];He&&typeof He=="object"&&Object.keys(He).forEach(me=>{He[me]&&typeof He[me]=="object"?Ke[me]={...Ke[me],...He[me]}:Ke[me]=He[me]})}return l?l(Ke):Ke},[z,ce,G,j,Q]),we=z.colorSchemeSelector;it(()=>{if(ye&&I&&we&&we!=="media"){const Ne=we;let Ke=we;if(Ne==="class"&&(Ke=".%s"),Ne==="data"&&(Ke="[data-%s]"),Ne?.startsWith("data-")&&!Ne.includes("%s")&&(Ke=`[${Ne}="%s"]`),Ke.startsWith("."))I.classList.remove(...Y.map(He=>Ke.substring(1).replace("%s",He))),I.classList.add(Ke.substring(1).replace("%s",ye));else{const He=Ke.replace("%s",ye).match(/\[([^\]]+)\]/);if(He){const[me,Pe]=He[1].split("=");Pe||Y.forEach(ge=>{I.removeAttribute(me.replace(ye,ge))}),I.setAttribute(me,Pe?Pe.replace(/"|'/g,""):"")}else I.setAttribute(Ke,ye)}}},[ye,we,I,Y]),f.useEffect(()=>{let Ne;if(M&&N.current&&k){const Ke=k.createElement("style");Ke.appendChild(k.createTextNode(h3)),k.head.appendChild(Ke),window.getComputedStyle(k.body),Ne=setTimeout(()=>{k.head.removeChild(Ke)},1)}return()=>{clearTimeout(Ne)}},[ye,M,k]),f.useEffect(()=>(N.current=!0,()=>{N.current=!1}),[]);const Be=f.useMemo(()=>({allColorSchemes:Y,colorScheme:ye,darkColorScheme:re,lightColorScheme:oe,mode:te,setColorScheme:ne,setMode:process.env.NODE_ENV==="production"?W:Ne=>{Se.colorSchemeSelector==="media"&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
43
+ `)),W(Ne)},systemMode:le}),[Y,ye,re,oe,te,ne,W,le,Se.colorSchemeSelector]);let Fe=!0;(T||z.cssVariables===!1||B&&_?.cssVarPrefix===Q)&&(Fe=!1);const Ye=v.jsxs(f.Fragment,{children:[v.jsx(Hl,{themeId:V?t:void 0,theme:Se,children:S}),Fe&&v.jsx(Oh,{styles:Se.generateStyleSheets?.()||[]})]});return B?Ye:v.jsx(u.Provider,{value:Be,children:Ye})}process.env.NODE_ENV!=="production"&&(h.propTypes={children:o.node,colorSchemeNode:o.any,colorSchemeStorageKey:o.string,defaultMode:o.string,disableNestedContext:o.bool,disableStyleSheetGeneration:o.bool,disableTransitionOnChange:o.bool,documentNode:o.any,forceThemeRerender:o.bool,modeStorageKey:o.string,noSsr:o.bool,storageManager:o.func,storageWindow:o.any,theme:o.object});const b=typeof a=="string"?a:a.light,m=typeof a=="string"?a:a.dark;return{CssVarsProvider:h,useColorScheme:d,getInitColorSchemeScript:C=>c3({colorSchemeStorageKey:s,defaultLightColorScheme:b,defaultDarkColorScheme:m,modeStorageKey:r,...C})}}function m3(e=""){function t(...r){if(!r.length)return"";const s=r[0];return typeof s=="string"&&!s.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}-`:""}${s}${t(...r.slice(1))})`:`, ${s}`}return(r,...s)=>`var(--${e?`${e}-`:""}${r}${t(...s)})`}const qv=(e,t,n,r=[])=>{let s=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(s)?s[Number(i)]=n:s&&typeof s=="object"&&(s[i]=n):s&&typeof s=="object"&&(s[i]||(s[i]=r.includes(i)?[]:{}),s=s[i])})},b3=(e,t,n)=>{function r(s,i=[],a=[]){Object.entries(s).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)?[...a,l]:a):t([...i,l],c,a))})}r(e)},y3=(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 jh(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},s={},i={},a={};return b3(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,p=y3(l,c);Object.assign(s,{[d]:p}),qv(i,l,`var(${d})`,u),qv(a,l,`var(${d}, ${p})`,u)}},l=>l[0]==="vars"),{css:s,vars:i,varsWithDefaults:a}}function v3(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:s,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:g}=jh(u,t);let h=g;const b={},{[c]:m,...y}=a;if(Object.entries(y||{}).forEach(([E,P])=>{const{vars:M,css:D,varsWithDefaults:O}=jh(P,t);h=no(h,O),b[E]={css:D,vars:M}}),m){const{css:E,vars:P,varsWithDefaults:M}=jh(m,t);h=no(h,M),b[c]={css:E,vars:P}}function C(E,P){let M=s;if(s==="class"&&(M=".%s"),s==="data"&&(M="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(M=`[${s}="%s"]`),E){if(M==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${a[E]?.palette?.mode||E})`]:{":root":P}};if(M)return e.defaultColorScheme===E?`:root, ${M.replace("%s",String(E))}`:M.replace("%s",String(E))}return":root"}return{vars:h,generateThemeVars:()=>{let E={...d};return Object.entries(b).forEach(([,{vars:P}])=>{E=no(E,P)}),E},generateStyleSheets:()=>{const E=[],P=e.defaultColorScheme||"light";function M(k,I){Object.keys(I).length&&E.push(typeof k=="string"?{[k]:{...I}}:k)}M(n(void 0,{...p}),p);const{[P]:D,...O}=b;if(D){const{css:k}=D,I=a[P]?.palette?.mode,F=!r&&I?{colorScheme:I,...k}:{...k};M(n(P,{...F}),F)}return Object.entries(O).forEach(([k,{css:I}])=>{const F=a[k]?.palette?.mode,T=!r&&F?{colorScheme:F,...I}:{...I};M(n(k,{...T}),T)}),i&&E.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)"}}),E}}}function C3(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 pe(e,t,n=void 0){const r={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}r[s]=a}return r}function sa(e,t){return f.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const w3=(e,t)=>e.filter(n=>t.includes(n)),ia=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((s,i)=>{n((a,l)=>{i<=e.keys.length-1&&(i===0?Object.assign(a,l):a[e.up(e.keys[i])]=l)},s)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:w3(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const a=t[i];a!==void 0&&n((l,c)=>{r===i?Object.assign(l,c):l[e.up(i)]=c},a)}}):(typeof t=="number"||typeof t=="string")&&n((s,i)=>{Object.assign(s,i)},t)};function nd(e){return`--Grid-${e}Spacing`}function od(e){return`--Grid-parent-${e}Spacing`}const Yv="--Grid-columns",aa="--Grid-parent-columns",S3=({theme:e,ownerState:t})=>{const n={};return ia(e.breakpoints,t.size,(r,s)=>{let i={};s==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),s==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof s=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${s} / var(${aa}) - (var(${aa}) - ${s}) * (var(${od("column")}) / var(${aa})))`}),r(n,i)}),n},x3=({theme:e,ownerState:t})=>{const n={};return ia(e.breakpoints,t.offset,(r,s)=>{let i={};s==="auto"&&(i={marginLeft:"auto"}),typeof s=="number"&&(i={marginLeft:s===0?"0px":`calc(100% * ${s} / var(${aa}) + var(${od("column")}) * ${s} / var(${aa}))`}),r(n,i)}),n},P3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Yv]:12};return ia(e.breakpoints,t.columns,(r,s)=>{const i=s??12;r(n,{[Yv]:i,"> *":{[aa]:i}})}),n},E3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ia(e.breakpoints,t.rowSpacing,(r,s)=>{const i=typeof s=="string"?s:e.spacing?.(s);r(n,{[nd("row")]:i,"> *":{[od("row")]:i}})}),n},T3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ia(e.breakpoints,t.columnSpacing,(r,s)=>{const i=typeof s=="string"?s:e.spacing?.(s);r(n,{[nd("column")]:i,"> *":{[od("column")]:i}})}),n},I3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ia(e.breakpoints,t.direction,(r,s)=>{r(n,{flexDirection:s})}),n},M3=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${nd("row")}) var(${nd("column")})`}}),O3=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},k3=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([s,i])=>{n(i)&&r.push(`spacing-${s}-${String(i)}`)}),r}return[]},D3=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],F3=e=>["item","zeroMinWidth"].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,Kv=[];function N3(e,t){const n=[];e.item!==void 0&&(delete e.item,n.push("item")),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach(r=>{e[r]!==void 0&&(n.push(r),delete e[r])}),process.env.NODE_ENV!=="production"&&n.forEach(r=>{Kv.includes(r)||(Kv.push(r),console.warn(`MUI Grid: ${F3(r)}
44
+ `))})}const R3=Xu(),L3=Nr("div",{name:"MuiGrid",slot:"Root"});function $3(e){return Dv({props:e,name:"MuiGrid",defaultTheme:R3})}function Xv(e={}){const{createStyledComponent:t=L3,useThemeProps:n=$3,useTheme:r=$l,componentName:s="MuiGrid"}=e,i=(u,d)=>{const{container:p,direction:g,spacing:h,wrap:b,size:m}=u,y={root:["root",p&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,...D3(g),...O3(m),...p?k3(h,d.breakpoints.keys[0]):[]]};return pe(y,C=>ke(s,C),{})};function a(u,d,p=()=>!0){const g={};return u===null||(Array.isArray(u)?u.forEach((h,b)=>{h!==null&&p(h)&&d.keys[b]&&(g[d.keys[b]]=h)}):typeof u=="object"?Object.keys(u).forEach(h=>{const b=u[h];b!=null&&p(b)&&(g[h]=b)}):g[d.keys[0]]=u),g}const l=t(P3,T3,E3,S3,I3,M3,x3),c=f.forwardRef(function(d,p){const g=r(),h=n(d),b=Rh(h);N3(b,g.breakpoints);const{className:m,children:y,columns:C=12,container:S=!1,component:x="div",direction:E="row",wrap:P="wrap",size:M={},offset:D={},spacing:O=0,rowSpacing:k=O,columnSpacing:I=O,unstable_level:F=0,...T}=b,R=a(M,g.breakpoints,V=>V!==!1),A=a(D,g.breakpoints),L=d.columns??(F?void 0:C),N=d.spacing??(F?void 0:O),_=d.rowSpacing??d.spacing??(F?void 0:k),H=d.columnSpacing??d.spacing??(F?void 0:I),B={...b,level:F,columns:L,container:S,direction:E,wrap:P,spacing:N,rowSpacing:_,columnSpacing:H,size:R,offset:A},$=i(B,g);return v.jsx(l,{ref:p,as:x,ownerState:B,className:se($.root,m),...T,children:f.Children.map(y,V=>f.isValidElement(V)&&sa(V,["Grid"])&&S&&V.props.container?f.cloneElement(V,{unstable_level:V.props?.unstable_level??F+1}):V)})});return process.env.NODE_ENV!=="production"&&(c.propTypes={children:o.node,className:o.string,columns:o.oneOfType([o.arrayOf(o.number),o.number,o.object]),columnSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),component:o.elementType,container:o.bool,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),offset:o.oneOfType([o.string,o.number,o.arrayOf(o.oneOfType([o.string,o.number])),o.object]),rowSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),size:o.oneOfType([o.string,o.bool,o.number,o.arrayOf(o.oneOfType([o.string,o.bool,o.number])),o.object]),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]),wrap:o.oneOf(["nowrap","wrap-reverse","wrap"])}),c.muiName="Grid",c}const Zo=Xv();process.env.NODE_ENV!=="production"&&(Zo.propTypes={children:o.node,columns:o.oneOfType([o.arrayOf(o.number),o.number,o.object]),columnSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),container:o.bool,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),offset:o.oneOfType([o.string,o.number,o.arrayOf(o.oneOfType([o.string,o.number])),o.object]),rowSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),size:o.oneOfType([o.string,o.bool,o.number,o.arrayOf(o.oneOfType([o.string,o.bool,o.number])),o.object]),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]),unstable_level:o.number,wrap:o.oneOf(["nowrap","wrap-reverse","wrap"])});function Zv(){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:xl.white,default:xl.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 Qv=Zv();function Jv(){return{text:{primary:xl.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:xl.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 Gh=Jv();function eC(e,t,n,r){const s=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=_l(e.main,s):t==="dark"&&(e.dark=Vl(e.main,i)))}function tC(e,t,n,r,s){const i=s.light||s,a=s.dark||s*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 ${(a*100).toFixed(0)}%)`))}function A3(e="light"){return e==="dark"?{main:Qi[200],light:Qi[50],dark:Qi[400]}:{main:Qi[700],light:Qi[400],dark:Qi[800]}}function V3(e="light"){return e==="dark"?{main:Zi[200],light:Zi[50],dark:Zi[400]}:{main:Zi[500],light:Zi[300],dark:Zi[700]}}function _3(e="light"){return e==="dark"?{main:Xi[500],light:Xi[300],dark:Xi[700]}:{main:Xi[700],light:Xi[400],dark:Xi[800]}}function B3(e="light"){return e==="dark"?{main:Ji[400],light:Ji[300],dark:Ji[700]}:{main:Ji[700],light:Ji[500],dark:Ji[900]}}function H3(e="light"){return e==="dark"?{main:ea[400],light:ea[300],dark:ea[700]}:{main:ea[800],light:ea[500],dark:ea[900]}}function z3(e="light"){return e==="dark"?{main:Pl[400],light:Pl[300],dark:Pl[700]}:{main:"#ed6c02",light:Pl[500],dark:Pl[900]}}function j3(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Wh(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:s,...i}=e,a=e.primary||A3(t),l=e.secondary||V3(t),c=e.error||_3(t),u=e.info||B3(t),d=e.success||H3(t),p=e.warning||z3(t);function g(y){if(s)return j3(y);const C=Lv(y,Gh.text.primary)>=n?Gh.text.primary:Qv.text.primary;if(process.env.NODE_ENV!=="production"){const S=Lv(y,C);S<3&&console.error([`MUI: The contrast ratio of ${S}: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(`
45
+ `))}return C}const h=({color:y,name:C,mainShade:S=500,lightShade:x=300,darkShade:E=700})=>{if(y={...y},!y.main&&y[S]&&(y.main=y[S]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
46
+ The color object needs to have a \`main\` property or a \`${S}\` property.`:Kr(11,C?` (${C})`:"",S));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
47
+ \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
48
+
49
+ Did you intend to use one of the following approaches?
50
+
51
+ import { green } from "@mui/material/colors";
52
+
53
+ const theme1 = createTheme({ palette: {
54
+ primary: green,
55
+ } });
56
+
57
+ const theme2 = createTheme({ palette: {
58
+ primary: { main: green[500] },
59
+ } });`:Kr(12,C?` (${C})`:"",JSON.stringify(y.main)));return s?(tC(s,y,"light",x,r),tC(s,y,"dark",E,r)):(eC(y,"light",x,r),eC(y,"dark",E,r)),y.contrastText||(y.contrastText=g(y.main)),y};let b;return t==="light"?b=Zv():t==="dark"&&(b=Jv()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),no({common:{...xl},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:c,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:u,name:"info"}),success:h({color:d,name:"success"}),grey:Ok,contrastThreshold:n,getContrastText:g,augmentColor:h,tonalOffset:r,...b},i)}function G3(e){const t={};return Object.entries(e).forEach(r=>{const[s,i]=r;typeof i=="object"&&(t[s]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function W3(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function U3(e){return Math.round(e*1e5)/1e5}const nC={textTransform:"uppercase"},oC='"Roboto", "Helvetica", "Arial", sans-serif';function rC(e,t){const{fontFamily:n=oC,fontSize:r=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...p}=typeof t=="function"?t(e):t;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 g=r/14,h=d||(y=>`${y/c*g}rem`),b=(y,C,S,x,E)=>({fontFamily:n,fontWeight:y,fontSize:h(C),lineHeight:S,...n===oC?{letterSpacing:`${U3(x/C)}em`}:{},...E,...u}),m={h1:b(s,96,1.167,-1.5),h2:b(s,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(a,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(a,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(a,14,1.75,.4,nC),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,nC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return no({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...m},p,{clone:!1})}const q3=.2,Y3=.14,K3=.12;function dn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${q3})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Y3})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${K3})`].join(",")}const X3=["none",dn(0,2,1,-1,0,1,1,0,0,1,3,0),dn(0,3,1,-2,0,2,2,0,0,1,5,0),dn(0,3,3,-2,0,3,4,0,0,1,8,0),dn(0,2,4,-1,0,4,5,0,0,1,10,0),dn(0,3,5,-1,0,5,8,0,0,1,14,0),dn(0,3,5,-1,0,6,10,0,0,1,18,0),dn(0,4,5,-2,0,7,10,1,0,2,16,1),dn(0,5,5,-3,0,8,10,1,0,3,14,2),dn(0,5,6,-3,0,9,12,1,0,3,16,2),dn(0,6,6,-3,0,10,14,1,0,4,18,3),dn(0,6,7,-4,0,11,15,1,0,4,20,3),dn(0,7,8,-4,0,12,17,2,0,5,22,4),dn(0,7,8,-4,0,13,19,2,0,5,24,4),dn(0,7,9,-4,0,14,21,2,0,5,26,4),dn(0,8,9,-5,0,15,22,2,0,6,28,5),dn(0,8,10,-5,0,16,24,2,0,6,30,5),dn(0,8,11,-5,0,17,26,2,0,6,32,5),dn(0,9,11,-5,0,18,28,2,0,7,34,6),dn(0,9,12,-6,0,19,29,2,0,7,36,6),dn(0,10,13,-6,0,20,31,3,0,8,38,7),dn(0,10,13,-6,0,21,33,3,0,8,40,7),dn(0,10,14,-6,0,22,35,3,0,8,42,7),dn(0,11,14,-7,0,23,36,3,0,9,44,8),dn(0,11,15,-7,0,24,38,3,0,9,46,8)],Z3={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)"},sC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function iC(e){return`${Math.round(e)}ms`}function Q3(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function J3(e){const t={...Z3,...e.easing},n={...sC,...e.duration};return{getAutoHeightDuration:Q3,create:(s=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=g=>typeof g=="string",p=g=>!Number.isNaN(parseFloat(g));!d(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!p(c)&&!d(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(`
60
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(d=>`${d} ${typeof a=="string"?a:iC(a)} ${l} ${typeof c=="string"?c:iC(c)}`).join(",")},...e,easing:t,duration:n}}const e4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function t4(e){return Fr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function aC(e={}){const t={...e};function n(r){const s=Object.entries(r);for(let i=0;i<s.length;i++){const[a,l]=s[i];!t4(l)||a.startsWith("unstable_")?delete r[a]:Fr(l)&&(r[a]={...l},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
61
+
62
+ const theme = ${JSON.stringify(t,null,2)};
63
+
64
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
65
+ theme.transitions = createTransitions(theme.transitions || {});
66
+
67
+ export default theme;`}function lC(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const n4=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function o4(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:$n(t,n4(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${lC(n)})`:_l(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${lC(n)})`:Vl(t,n)}})}function Uh(e={},...t){const{breakpoints:n,mixins:r={},spacing:s,palette:i={},transitions:a={},typography:l={},shape:c,colorSpace:u,...d}=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.":Kr(20));const p=Wh({...i,colorSpace:u}),g=Xu(e);let h=no(g,{mixins:W3(g.breakpoints,r),palette:p,shadows:X3.slice(),typography:rC(p,l),transitions:J3(a),zIndex:{...e4}});if(h=no(h,d),h=t.reduce((b,m)=>no(b,m),h),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(y,C)=>{let S;for(S in y){const x=y[S];if(b.includes(S)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const E=ke("",S);console.error([`MUI: The \`${C}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${E}' syntax:`,JSON.stringify({root:{[`&.${E}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
68
+ `))}y[S]={}}}};Object.keys(h.components).forEach(y=>{const C=h.components[y].styleOverrides;C&&y.startsWith("Mui")&&m(C,y)})}return h.unstable_sxConfig={...Ll,...d?.unstable_sxConfig},h.unstable_sx=function(m){return xs({sx:m,theme:this})},h.toRuntimeSource=aC,o4(h),h}function qh(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const r4=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=qh(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function cC(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function uC(e){return e==="dark"?r4:[]}function s4(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:s,...i}=e,a=Wh({...t,colorSpace:s});return{palette:a,opacity:{...cC(a.mode),...n},overlays:r||uC(a.mode),...i}}function i4(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 a4=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],l4=e=>(t,n)=>{const r=e.rootSelector||":root",s=e.colorSchemeSelector;let i=s;if(s==="class"&&(i=".%s"),s==="data"&&(i="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(i=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return a4(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function c4(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ve(e,t,n){!e[t]&&n&&(e[t]=n)}function zl(e){return typeof e!="string"||!e.startsWith("hsl")?e:Rv(e)}function Zr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Al(zl(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
69
+ 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 u4(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Rr=e=>{try{return e()}catch{}},d4=(e="mui")=>m3(e);function Yh(e,t,n,r,s){if(!n)return;n=n===!0?{}:n;const i=s==="dark"?"dark":"light";if(!r){t[s]=s4({...n,palette:{mode:i,...n?.palette},colorSpace:e});return}const{palette:a,...l}=Uh({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[s]={...n,palette:a,opacity:{...cC(i),...n?.opacity},overlays:n?.overlays||uC(i)},l}function p4(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:s=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=i4,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],g=r||(n.light&&p!=="light"?"light":p),h=d4(i),{[g]:b,light:m,dark:y,...C}=n,S={...C};let x=b;if((g==="dark"&&!("dark"in n)||g==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${g}\` option is either missing or invalid.`:Kr(21,g));let E;a&&(E="oklch");const P=Yh(E,S,x,d,g);m&&!S.light&&Yh(E,S,m,void 0,"light"),y&&!S.dark&&Yh(E,S,y,void 0,"dark");let M={defaultColorScheme:g,...P,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:S,font:{...G3(P.typography),...P.font},spacing:u4(d.spacing)};Object.keys(M.colorSchemes).forEach(F=>{const T=M.colorSchemes[F].palette,R=L=>{const N=L.split("-"),_=N[1],H=N[2];return h(L,T[_][H])};T.mode==="light"&&(ve(T.common,"background","#fff"),ve(T.common,"onBackground","#000")),T.mode==="dark"&&(ve(T.common,"background","#000"),ve(T.common,"onBackground","#fff"));function A(L,N,_){if(E){let H;return L===Qs&&(H=`transparent ${((1-_)*100).toFixed(0)}%`),L===Xt&&(H=`#000 ${(_*100).toFixed(0)}%`),L===Zt&&(H=`#fff ${(_*100).toFixed(0)}%`),`color-mix(in ${E}, ${N}, ${H})`}return L(N,_)}if(c4(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){ve(T.Alert,"errorColor",A(Xt,a?h("palette-error-light"):T.error.light,.6)),ve(T.Alert,"infoColor",A(Xt,a?h("palette-info-light"):T.info.light,.6)),ve(T.Alert,"successColor",A(Xt,a?h("palette-success-light"):T.success.light,.6)),ve(T.Alert,"warningColor",A(Xt,a?h("palette-warning-light"):T.warning.light,.6)),ve(T.Alert,"errorFilledBg",R("palette-error-main")),ve(T.Alert,"infoFilledBg",R("palette-info-main")),ve(T.Alert,"successFilledBg",R("palette-success-main")),ve(T.Alert,"warningFilledBg",R("palette-warning-main")),ve(T.Alert,"errorFilledColor",Rr(()=>T.getContrastText(T.error.main))),ve(T.Alert,"infoFilledColor",Rr(()=>T.getContrastText(T.info.main))),ve(T.Alert,"successFilledColor",Rr(()=>T.getContrastText(T.success.main))),ve(T.Alert,"warningFilledColor",Rr(()=>T.getContrastText(T.warning.main))),ve(T.Alert,"errorStandardBg",A(Zt,a?h("palette-error-light"):T.error.light,.9)),ve(T.Alert,"infoStandardBg",A(Zt,a?h("palette-info-light"):T.info.light,.9)),ve(T.Alert,"successStandardBg",A(Zt,a?h("palette-success-light"):T.success.light,.9)),ve(T.Alert,"warningStandardBg",A(Zt,a?h("palette-warning-light"):T.warning.light,.9)),ve(T.Alert,"errorIconColor",R("palette-error-main")),ve(T.Alert,"infoIconColor",R("palette-info-main")),ve(T.Alert,"successIconColor",R("palette-success-main")),ve(T.Alert,"warningIconColor",R("palette-warning-main")),ve(T.AppBar,"defaultBg",R("palette-grey-100")),ve(T.Avatar,"defaultBg",R("palette-grey-400")),ve(T.Button,"inheritContainedBg",R("palette-grey-300")),ve(T.Button,"inheritContainedHoverBg",R("palette-grey-A100")),ve(T.Chip,"defaultBorder",R("palette-grey-400")),ve(T.Chip,"defaultAvatarColor",R("palette-grey-700")),ve(T.Chip,"defaultIconColor",R("palette-grey-700")),ve(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ve(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ve(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ve(T.LinearProgress,"primaryBg",A(Zt,a?h("palette-primary-main"):T.primary.main,.62)),ve(T.LinearProgress,"secondaryBg",A(Zt,a?h("palette-secondary-main"):T.secondary.main,.62)),ve(T.LinearProgress,"errorBg",A(Zt,a?h("palette-error-main"):T.error.main,.62)),ve(T.LinearProgress,"infoBg",A(Zt,a?h("palette-info-main"):T.info.main,.62)),ve(T.LinearProgress,"successBg",A(Zt,a?h("palette-success-main"):T.success.main,.62)),ve(T.LinearProgress,"warningBg",A(Zt,a?h("palette-warning-light"):T.warning.main,.62)),ve(T.Skeleton,"bg",E?A(Qs,a?h("palette-text-primary"):T.text.primary,.11):`rgba(${R("palette-text-primaryChannel")} / 0.11)`),ve(T.Slider,"primaryTrack",A(Zt,a?h("palette-primary-main"):T.primary.main,.62)),ve(T.Slider,"secondaryTrack",A(Zt,a?h("palette-secondary-main"):T.secondary.main,.62)),ve(T.Slider,"errorTrack",A(Zt,a?h("palette-error-main"):T.error.main,.62)),ve(T.Slider,"infoTrack",A(Zt,a?h("palette-info-main"):T.info.main,.62)),ve(T.Slider,"successTrack",A(Zt,a?h("palette-success-main"):T.success.main,.62)),ve(T.Slider,"warningTrack",A(Zt,a?h("palette-warning-main"):T.warning.main,.62));const L=E?A(Xt,a?h("palette-background-default"):T.background.default,.6825):ed(T.background.default,.8);ve(T.SnackbarContent,"bg",L),ve(T.SnackbarContent,"color",Rr(()=>E?Gh.text.primary:T.getContrastText(L))),ve(T.SpeedDialAction,"fabHoverBg",ed(T.background.paper,.15)),ve(T.StepConnector,"border",R("palette-grey-400")),ve(T.StepContent,"border",R("palette-grey-400")),ve(T.Switch,"defaultColor",R("palette-common-white")),ve(T.Switch,"defaultDisabledColor",R("palette-grey-100")),ve(T.Switch,"primaryDisabledColor",A(Zt,a?h("palette-primary-main"):T.primary.main,.62)),ve(T.Switch,"secondaryDisabledColor",A(Zt,a?h("palette-secondary-main"):T.secondary.main,.62)),ve(T.Switch,"errorDisabledColor",A(Zt,a?h("palette-error-main"):T.error.main,.62)),ve(T.Switch,"infoDisabledColor",A(Zt,a?h("palette-info-main"):T.info.main,.62)),ve(T.Switch,"successDisabledColor",A(Zt,a?h("palette-success-main"):T.success.main,.62)),ve(T.Switch,"warningDisabledColor",A(Zt,a?h("palette-warning-main"):T.warning.main,.62)),ve(T.TableCell,"border",A(Zt,Qs(a?h("palette-divider"):T.divider,1),.88)),ve(T.Tooltip,"bg",A(Qs,a?h("palette-grey-700"):T.grey[700],.92))}if(T.mode==="dark"){ve(T.Alert,"errorColor",A(Zt,a?h("palette-error-light"):T.error.light,.6)),ve(T.Alert,"infoColor",A(Zt,a?h("palette-info-light"):T.info.light,.6)),ve(T.Alert,"successColor",A(Zt,a?h("palette-success-light"):T.success.light,.6)),ve(T.Alert,"warningColor",A(Zt,a?h("palette-warning-light"):T.warning.light,.6)),ve(T.Alert,"errorFilledBg",R("palette-error-dark")),ve(T.Alert,"infoFilledBg",R("palette-info-dark")),ve(T.Alert,"successFilledBg",R("palette-success-dark")),ve(T.Alert,"warningFilledBg",R("palette-warning-dark")),ve(T.Alert,"errorFilledColor",Rr(()=>T.getContrastText(T.error.dark))),ve(T.Alert,"infoFilledColor",Rr(()=>T.getContrastText(T.info.dark))),ve(T.Alert,"successFilledColor",Rr(()=>T.getContrastText(T.success.dark))),ve(T.Alert,"warningFilledColor",Rr(()=>T.getContrastText(T.warning.dark))),ve(T.Alert,"errorStandardBg",A(Xt,a?h("palette-error-light"):T.error.light,.9)),ve(T.Alert,"infoStandardBg",A(Xt,a?h("palette-info-light"):T.info.light,.9)),ve(T.Alert,"successStandardBg",A(Xt,a?h("palette-success-light"):T.success.light,.9)),ve(T.Alert,"warningStandardBg",A(Xt,a?h("palette-warning-light"):T.warning.light,.9)),ve(T.Alert,"errorIconColor",R("palette-error-main")),ve(T.Alert,"infoIconColor",R("palette-info-main")),ve(T.Alert,"successIconColor",R("palette-success-main")),ve(T.Alert,"warningIconColor",R("palette-warning-main")),ve(T.AppBar,"defaultBg",R("palette-grey-900")),ve(T.AppBar,"darkBg",R("palette-background-paper")),ve(T.AppBar,"darkColor",R("palette-text-primary")),ve(T.Avatar,"defaultBg",R("palette-grey-600")),ve(T.Button,"inheritContainedBg",R("palette-grey-800")),ve(T.Button,"inheritContainedHoverBg",R("palette-grey-700")),ve(T.Chip,"defaultBorder",R("palette-grey-700")),ve(T.Chip,"defaultAvatarColor",R("palette-grey-300")),ve(T.Chip,"defaultIconColor",R("palette-grey-300")),ve(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ve(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ve(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ve(T.LinearProgress,"primaryBg",A(Xt,a?h("palette-primary-main"):T.primary.main,.5)),ve(T.LinearProgress,"secondaryBg",A(Xt,a?h("palette-secondary-main"):T.secondary.main,.5)),ve(T.LinearProgress,"errorBg",A(Xt,a?h("palette-error-main"):T.error.main,.5)),ve(T.LinearProgress,"infoBg",A(Xt,a?h("palette-info-main"):T.info.main,.5)),ve(T.LinearProgress,"successBg",A(Xt,a?h("palette-success-main"):T.success.main,.5)),ve(T.LinearProgress,"warningBg",A(Xt,a?h("palette-warning-main"):T.warning.main,.5)),ve(T.Skeleton,"bg",E?A(Qs,a?h("palette-text-primary"):T.text.primary,.13):`rgba(${R("palette-text-primaryChannel")} / 0.13)`),ve(T.Slider,"primaryTrack",A(Xt,a?h("palette-primary-main"):T.primary.main,.5)),ve(T.Slider,"secondaryTrack",A(Xt,a?h("palette-secondary-main"):T.secondary.main,.5)),ve(T.Slider,"errorTrack",A(Xt,a?h("palette-error-main"):T.error.main,.5)),ve(T.Slider,"infoTrack",A(Xt,a?h("palette-info-main"):T.info.main,.5)),ve(T.Slider,"successTrack",A(Xt,a?h("palette-success-main"):T.success.main,.5)),ve(T.Slider,"warningTrack",A(Xt,a?h("palette-warning-light"):T.warning.main,.5));const L=E?A(Zt,a?h("palette-background-default"):T.background.default,.985):ed(T.background.default,.98);ve(T.SnackbarContent,"bg",L),ve(T.SnackbarContent,"color",Rr(()=>E?Qv.text.primary:T.getContrastText(L))),ve(T.SpeedDialAction,"fabHoverBg",ed(T.background.paper,.15)),ve(T.StepConnector,"border",R("palette-grey-600")),ve(T.StepContent,"border",R("palette-grey-600")),ve(T.Switch,"defaultColor",R("palette-grey-300")),ve(T.Switch,"defaultDisabledColor",R("palette-grey-600")),ve(T.Switch,"primaryDisabledColor",A(Xt,a?h("palette-primary-main"):T.primary.main,.55)),ve(T.Switch,"secondaryDisabledColor",A(Xt,a?h("palette-secondary-main"):T.secondary.main,.55)),ve(T.Switch,"errorDisabledColor",A(Xt,a?h("palette-error-main"):T.error.main,.55)),ve(T.Switch,"infoDisabledColor",A(Xt,a?h("palette-info-main"):T.info.main,.55)),ve(T.Switch,"successDisabledColor",A(Xt,a?h("palette-success-main"):T.success.main,.55)),ve(T.Switch,"warningDisabledColor",A(Xt,a?h("palette-warning-light"):T.warning.main,.55)),ve(T.TableCell,"border",A(Xt,Qs(a?h("palette-divider"):T.divider,1),.68)),ve(T.Tooltip,"bg",A(Qs,a?h("palette-grey-700"):T.grey[700],.92))}Zr(T.background,"default"),Zr(T.background,"paper"),Zr(T.common,"background"),Zr(T.common,"onBackground"),Zr(T,"divider"),Object.keys(T).forEach(L=>{const N=T[L];L!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&ve(T[L],"mainChannel",Al(zl(N.main))),N.light&&ve(T[L],"lightChannel",Al(zl(N.light))),N.dark&&ve(T[L],"darkChannel",Al(zl(N.dark))),N.contrastText&&ve(T[L],"contrastTextChannel",Al(zl(N.contrastText))),L==="text"&&(Zr(T[L],"primary"),Zr(T[L],"secondary")),L==="action"&&(N.active&&Zr(T[L],"active"),N.selected&&Zr(T[L],"selected")))})}),M=t.reduce((F,T)=>no(F,T),M);const D={prefix:i,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:l4(M),enableContrastVars:a},{vars:O,generateThemeVars:k,generateStyleSheets:I}=v3(M,D);return M.vars=O,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([F,T])=>{M[F]=T}),M.generateThemeVars=k,M.generateStyleSheets=I,M.generateSpacing=function(){return wv(d.spacing,kh(this))},M.getColorSchemeSelector=C3(c),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=l,M.unstable_sxConfig={...Ll,...d?.unstable_sxConfig},M.unstable_sx=function(T){return xs({sx:T,theme:this})},M.toRuntimeSource=aC,M}function dC(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Wh({...n===!0?{}:n.palette,mode:t})})}function Js(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",c=s?.[l],u={...s,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Uh(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const p=Uh({...e,palette:d},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},dC(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},dC(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),p4({...a,colorSchemes:u,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}function f4(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function h4(e){return parseFloat(e)}const rd=Js();function io(){const e=$l(rd);return process.env.NODE_ENV!=="production"&&f.useDebugValue(e),e[qo]||e}function Ot({props:e,name:t}){return Dv({props:e,name:t,defaultTheme:rd,themeId:qo})}function pC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xn=e=>pC(e)&&e!=="classes",U=Ov({themeId:qo,defaultTheme:rd,rootShouldForwardProp:Xn});function g4({theme:e,...t}){const n=qo in e?e[qo]:void 0;return v.jsx(Hl,{...t,themeId:n?qo:void 0,theme:n||e})}const sd={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};process.env.NODE_ENV!=="production"&&(o.string,o.string,o.string,o.string,o.string,o.oneOf(["dark","light","system"]),o.string,o.string);const{CssVarsProvider:m4}=g3({themeId:qo,theme:()=>Js({cssVariables:!0}),colorSchemeStorageKey:sd.colorSchemeStorageKey,modeStorageKey:sd.modeStorageKey,defaultColorScheme:{light:sd.defaultLightColorScheme,dark:sd.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:rC(e.palette,e.typography)};return t.unstable_sx=function(r){return xs({sx:r,theme:this})},t}}),b4=m4;function fC({theme:e,...t}){const n=f.useMemo(()=>{if(typeof e=="function")return e;const r=qo in e?e[qo]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?v.jsx(g4,{theme:n,...t}):v.jsx(b4,{theme:e,...t})}function Kh(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function hC(e){return v.jsx(Nh,{...e,defaultTheme:rd,themeId:qo})}process.env.NODE_ENV!=="production"&&(hC.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function Xh(e){return function(n){return v.jsx(hC,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function y4(){return Rh}const Ve=a3;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function qe(e){return r3(e)}function v4(e){return ke("MuiSvgIcon",e)}Me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const C4=e=>{const{color:t,fontSize:n,classes:r}=e,s={root:["root",t!=="inherit"&&`color${de(t)}`,`fontSize${de(n)}`]};return pe(s,v4,r)},w4=U("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${de(n.color)}`],t[`fontSize${de(n.fontSize)}`]]}})(Ve(({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}}]}))),id=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiSvgIcon"}),{children:s,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:g="0 0 24 24",...h}=r,b=f.isValidElement(s)&&s.type==="svg",m={...r,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:g,hasSvgAsChild:b},y={};d||(y.viewBox=g);const C=C4(m);return v.jsxs(w4,{as:l,className:se(C.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...y,...h,...b&&s.props,ownerState:m,children:[b?s.props.children:s,p?v.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(id.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}),id.muiName="SvgIcon";function gt(e,t){function n(r,s){return v.jsx(id,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:s,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=id.muiName,f.memo(f.forwardRef(n))}function ur(e,t=166){let n;function r(...s){const i=()=>{e.apply(this,s)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Bt(e){return e&&e.ownerDocument||document}function dr(e){return Bt(e).defaultView||window}function S4(e,t){if(process.env.NODE_ENV==="production")return()=>()=>null;const n=t?{...t.propTypes}:null;return s=>(i,a,l,c,u,...d)=>{const p=u||a,g=n?.[p];if(g){const h=g(i,a,l,c,u,...d);if(h)return h}return typeof i[a]<"u"&&!i[s]?new Error(`The prop \`${p}\` of \`${e}\` can only be used together with the \`${s}\` prop.`):null}}function Zh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Qh(e,t,n,r,s){if(process.env.NODE_ENV==="production")return null;const i=s||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function ao(e){const{controlled:t,default:n,name:r,state:s="value"}=e,{current:i}=f.useRef(t!==void 0),[a,l]=f.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){f.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} 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(`
70
+ `))},[s,r,t]);const{current:d}=f.useRef(n);f.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
71
+ `))},[JSON.stringify(n)])}const u=f.useCallback(d=>{i||l(d)},[]);return[c,u]}function fe(e){const t=f.useRef(e);return it(()=>{t.current=e}),f.useRef((...n)=>(0,t.current)(...n)).current}function tt(...e){const t=f.useRef(void 0),n=f.useCallback(r=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{s.forEach(i=>i?.())}},e);return f.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function x4(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function gC(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{x4(u,l[u])&&typeof a[u]=="function"&&(c[u]=(...d)=>{a[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,u=se(a?.className,l?.className,c?.className),d=n(c,l);return{...l,...c,...d,...!!u&&{className:u},...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=t,s=n(e,r),i=se(r?.className,e?.className);return{...t,...e,...s,...!!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]]}}}function Ro(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function ie(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 Jh(e,t){return Jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Jh(e,t)}function eg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jh(e,t)}function P4(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function E4(e,t){e.classList?e.classList.add(t):P4(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function mC(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function T4(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=mC(e.className,t):e.setAttribute("class",mC(e.className&&e.className.baseVal||"",t))}const bC={disabled:!1};var I4=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null,M4=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})]):null;const ad=he.createContext(null);var yC=function(t){return t.scrollTop},jl="unmounted",ei="exited",ti="entering",la="entered",tg="exiting",Lo=(function(e){eg(t,e);function t(r,s){var i;i=e.call(this,r,s)||this;var a=s,l=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?l?(c=ei,i.appearStatus=ti):c=la:r.unmountOnExit||r.mountOnEnter?c=jl:c=ei,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===jl?{status:ei}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var i=null;if(s!==this.props){var a=this.state.status;this.props.in?a!==ti&&a!==la&&(i=ti):(a===ti||a===la)&&(i=tg)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,i,a,l;return i=a=l=s,s!=null&&typeof s!="number"&&(i=s.exit,a=s.enter,l=s.appear!==void 0?s.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(s,i){if(s===void 0&&(s=!1),i!==null)if(this.cancelNextCallback(),i===ti){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:bs.findDOMNode(this);a&&yC(a)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ei&&this.setState({status:jl})},n.performEnter=function(s){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:s,c=this.props.nodeRef?[l]:[bs.findDOMNode(this),l],u=c[0],d=c[1],p=this.getTimeouts(),g=l?p.appear:p.enter;if(!s&&!a||bC.disabled){this.safeSetState({status:la},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:ti},function(){i.props.onEntering(u,d),i.onTransitionEnd(g,function(){i.safeSetState({status:la},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var s=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:bs.findDOMNode(this);if(!i||bC.disabled){this.safeSetState({status:ei},function(){s.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:tg},function(){s.props.onExiting(l),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:ei},function(){s.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},n.setNextCallback=function(s){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,s(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(s,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:bs.findDOMNode(this),l=s==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===jl)return null;var i=this.props,a=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=ie(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return he.createElement(ad.Provider,{value:null},typeof a=="function"?a(s,l):he.cloneElement(he.Children.only(a),l))},t})(he.Component);Lo.contextType=ad,Lo.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,s,i){var a=e[t];return o.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,s,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=I4;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;i<r;i++)s[i-1]=arguments[i];return n.apply(void 0,[t].concat(s))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function ca(){}Lo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ca,onEntering:ca,onEntered:ca,onExit:ca,onExiting:ca,onExited:ca},Lo.UNMOUNTED=jl,Lo.EXITED=ei,Lo.ENTERING=ti,Lo.ENTERED=la,Lo.EXITING=tg;var O4=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return E4(t,r)})},ng=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return T4(t,r)})},og=(function(e){eg(t,e);function t(){for(var r,s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,c){var u=r.resolveArguments(l,c),d=u[0],p=u[1];r.removeClasses(d,"exit"),r.addClass(d,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,c)},r.onEntering=function(l,c){var u=r.resolveArguments(l,c),d=u[0],p=u[1],g=p?"appear":"enter";r.addClass(d,g,"active"),r.props.onEntering&&r.props.onEntering(l,c)},r.onEntered=function(l,c){var u=r.resolveArguments(l,c),d=u[0],p=u[1],g=p?"appear":"enter";r.removeClasses(d,g),r.addClass(d,g,"done"),r.props.onEntered&&r.props.onEntered(l,c)},r.onExit=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var c=r.resolveArguments(l),u=c[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,c){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,c]},r.getClassNames=function(l){var c=r.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",p=u?""+d+l:c[l],g=u?p+"-active":c[l+"Active"],h=u?p+"-done":c[l+"Done"];return{baseClassName:p,activeClassName:g,doneClassName:h}},r}var n=t.prototype;return n.addClass=function(s,i,a){var l=this.getClassNames(i)[a+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;i==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&s&&yC(s),l&&(this.appliedClasses[i][a]=l,O4(s,l))},n.removeClasses=function(s,i){var a=this.appliedClasses[i],l=a.base,c=a.active,u=a.done;this.appliedClasses[i]={},l&&ng(s,l),c&&ng(s,c),u&&ng(s,u)},n.render=function(){var s=this.props;s.classNames;var i=ie(s,["classNames"]);return he.createElement(Lo,w({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(he.Component);og.defaultProps={classNames:""},og.propTypes=process.env.NODE_ENV!=="production"?w({},Lo.propTypes,{classNames:M4,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}):{};function k4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rg(e,t){var n=function(i){return t&&he.isValidElement(i)?t(i):i},r=Object.create(null);return e&&he.Children.map(e,function(s){return s}).forEach(function(s){r[s.key]=n(s)}),r}function D4(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),s=[];for(var i in e)i in t?s.length&&(r[i]=s,s=[]):s.push(i);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var u=r[c][a];l[r[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<s.length;a++)l[s[a]]=n(s[a]);return l}function ni(e,t,n){return n[t]!=null?n[t]:e.props[t]}function F4(e,t){return rg(e.children,function(n){return he.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ni(n,"appear",e),enter:ni(n,"enter",e),exit:ni(n,"exit",e)})})}function N4(e,t,n){var r=rg(e.children),s=D4(t,r);return Object.keys(s).forEach(function(i){var a=s[i];if(he.isValidElement(a)){var l=i in t,c=i in r,u=t[i],d=he.isValidElement(u)&&!u.props.in;c&&(!l||d)?s[i]=he.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:ni(a,"exit",e),enter:ni(a,"enter",e)}):!c&&l&&!d?s[i]=he.cloneElement(a,{in:!1}):c&&l&&he.isValidElement(u)&&(s[i]=he.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:ni(a,"exit",e),enter:ni(a,"enter",e)}))}}),s}var R4=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},L4={component:"div",childFactory:function(t){return t}},Gl=(function(e){eg(t,e);function t(r,s){var i;i=e.call(this,r,s)||this;var a=i.handleExited.bind(k4(i));return i.state={contextValue:{isMounting:!0},handleExited:a,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(s,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?F4(s,l):N4(s,a,l),firstRender:!1}},n.handleExited=function(s,i){var a=rg(this.props.children);s.key in a||(s.props.onExited&&s.props.onExited(i),this.mounted&&this.setState(function(l){var c=w({},l.children);return delete c[s.key],{children:c}}))},n.render=function(){var s=this.props,i=s.component,a=s.childFactory,l=ie(s,["component","childFactory"]),c=this.state.contextValue,u=R4(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?he.createElement(ad.Provider,{value:c},u):he.createElement(ad.Provider,{value:c},he.createElement(i,l,u))},t})(he.Component);Gl.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},Gl.defaultProps=L4;const vC={};function lo(e,t){const n=f.useRef(vC);return n.current===vC&&(n.current=e(t)),n}const $4=[];function ld(e){f.useEffect(e,$4)}class cd{static create(){return new cd}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 Pn(){const e=lo(cd.create).current;return ld(e.disposeEffect),e}function A4(e){const{prototype:t={}}=e;return!!t.isReactComponent}function V4(e,t,n,r,s){const i=e[t],a=s||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!A4(i)&&(l="Did you accidentally provide a plain function component instead?"),i===f.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` 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 Wl=Ro(o.elementType,V4),CC=e=>e.scrollTop;function ua(e,t){const{timeout:n,easing:r,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:s.transitionDelay}}function da(e){return typeof e=="string"}function wC(e,t,n){return e===void 0||da(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Wn(e,t,n){return typeof e=="function"?e(t,n):e}function $o(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 SC(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 xC(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:s,className:i}=e;if(!t){const h=se(n?.className,i,s?.className,r?.className),b={...n?.style,...s?.style,...r?.style},m={...n,...s,...r};return h.length>0&&(m.className=h),Object.keys(b).length>0&&(m.style=b),{props:m,internalRef:void 0}}const a=$o({...s,...r}),l=SC(r),c=SC(s),u=t(a),d=se(u?.className,n?.className,i,s?.className,r?.className),p={...u?.style,...n?.style,...s?.style,...r?.style},g={...u,...n,...c,...l};return d.length>0&&(g.className=d),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:u.ref}}function Ae(e,t){const{className:n,elementType:r,ownerState:s,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...g}=i,h=d[e]||r,b=Wn(p[e],s),{props:{component:m,...y},internalRef:C}=xC({className:n,...c,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:b}),S=tt(C,b?.ref,t.ref),x=e==="root"?m||u:m,E=wC(h,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...x&&!l&&{as:x},...x&&l&&{component:x},ref:S},s);return[h,E]}function _4(e){return ke("MuiCollapse",e)}Me("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const B4=e=>{const{orientation:t,classes:n}=e;return pe({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},_4,n)},H4=U("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]}})(Ve(({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"}}]}))),z4=U("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),j4=U("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ud=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCollapse"}),{addEndListener:s,children:i,className:a,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:p,onEntered:g,onEntering:h,onExit:b,onExited:m,onExiting:y,orientation:C="vertical",slots:S={},slotProps:x={},style:E,timeout:P=sC.standard,TransitionComponent:M=Lo,...D}=r,O={...r,orientation:C,collapsedSize:l},k=B4(O),I=io(),F=Pn(),T=f.useRef(null),R=f.useRef(),A=typeof l=="number"?`${l}px`:l,L=C==="horizontal",N=L?"width":"height",_=f.useRef(null),H=tt(n,_),B=re=>ae=>{if(re){const ne=_.current;ae===void 0?re(ne):re(ne,ae)}},$=()=>T.current?T.current[L?"clientWidth":"clientHeight"]:0,V=B((re,ae)=>{T.current&&L&&(T.current.style.position="absolute"),re.style[N]=A,p&&p(re,ae)}),z=B((re,ae)=>{const ne=$();T.current&&L&&(T.current.style.position="");const{duration:te,easing:ye}=ua({style:E,timeout:P,easing:u},{mode:"enter"});if(P==="auto"){const ce=I.transitions.getAutoHeightDuration(ne);re.style.transitionDuration=`${ce}ms`,R.current=ce}else re.style.transitionDuration=typeof te=="string"?te:`${te}ms`;re.style[N]=`${ne}px`,re.style.transitionTimingFunction=ye,h&&h(re,ae)}),j=B((re,ae)=>{re.style[N]="auto",g&&g(re,ae)}),G=B(re=>{re.style[N]=`${$()}px`,b&&b(re)}),Q=B(m),q=B(re=>{const ae=$(),{duration:ne,easing:te}=ua({style:E,timeout:P,easing:u},{mode:"exit"});if(P==="auto"){const ye=I.transitions.getAutoHeightDuration(ae);re.style.transitionDuration=`${ye}ms`,R.current=ye}else re.style.transitionDuration=typeof ne=="string"?ne:`${ne}ms`;re.style[N]=A,re.style.transitionTimingFunction=te,y&&y(re)}),Y=re=>{P==="auto"&&F.start(R.current||0,re),s&&s(_.current,re)},K={slots:S,slotProps:x,component:c},[J,X]=Ae("root",{ref:H,className:se(k.root,a),elementType:H4,externalForwardedProps:K,ownerState:O,additionalProps:{style:{[L?"minWidth":"minHeight"]:A,...E}}}),[ee,W]=Ae("wrapper",{ref:T,className:k.wrapper,elementType:z4,externalForwardedProps:K,ownerState:O}),[le,oe]=Ae("wrapperInner",{className:k.wrapperInner,elementType:j4,externalForwardedProps:K,ownerState:O});return v.jsx(M,{in:d,onEnter:V,onEntered:j,onEntering:z,onExit:G,onExited:Q,onExiting:q,addEndListener:Y,nodeRef:_,timeout:P==="auto"?null:P,...D,children:(re,{ownerState:ae,...ne})=>{const te={...O,state:re};return v.jsx(J,{...X,className:se(X.className,{entered:k.entered,exited:!d&&A==="0px"&&k.hidden}[re]),ownerState:te,...ne,children:v.jsx(ee,{...W,ownerState:te,children:v.jsx(le,{...oe,ownerState:te,children:i})})})}})});process.env.NODE_ENV!=="production"&&(ud.propTypes={addEndListener:o.func,children:o.node,classes:o.object,className:o.string,collapsedSize:o.oneOfType([o.number,o.string]),component:Wl,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})])}),ud&&(ud.muiSupportAuto=!0);function G4(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function PC(e,t,n,r){const s=e[t];if(s==null||!Number.isInteger(s)){const i=G4(s);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function EC(e,t,n,r){return e[t]===void 0?null:PC(e,t,n,r)}function sg(){return null}EC.isRequired=PC,sg.isRequired=sg;const pa=process.env.NODE_ENV==="production"?sg:EC;function W4(e){return ke("MuiPaper",e)}Me("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 U4=e=>{const{square:t,elevation:n,variant:r,classes:s}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return pe(i,W4,s)},q4=U("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ve(({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:t})=>!t.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)"}}]}))),pr=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiPaper"}),s=io(),{className:i,component:a="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=r,p={...r,component:a,elevation:l,square:c,variant:u},g=U4(p);return process.env.NODE_ENV!=="production"&&s.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(`
72
+ `)),v.jsx(q4,{as:a,ownerState:p,className:se(g.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[l],...s.vars&&{"--Paper-overlay":s.vars.overlays?.[l]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${$n("#fff",qh(l))}, ${$n("#fff",qh(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(pr.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:Ro(pa,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square: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(["elevation","outlined"]),o.string])});const Ft=o.oneOfType([o.func,o.object]);function dd(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(`
73
+ `))}return!1}class pd{static create(){return new pd}static use(){const t=lo(pd.create).current,[n,r]=f.useState(!1);return t.shouldMount=n,t.setShouldMount=r,f.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=K4(),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 Y4(){return pd.use()}function K4(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function TC(e){const{className:t,classes:n,pulsate:r=!1,rippleX:s,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,p]=f.useState(!1),g=se(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+i,left:-(a/2)+s},b=se(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&p(!0),f.useEffect(()=>{if(!l&&c!=null){const m=setTimeout(c,u);return()=>{clearTimeout(m)}}},[c,l,u]),v.jsx("span",{className:g,style:h,children:v.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(TC.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 Qo=Me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ig=550,X4=80,Z4=Yo`
74
+ 0% {
75
+ transform: scale(0);
76
+ opacity: 0.1;
77
+ }
78
+
79
+ 100% {
80
+ transform: scale(1);
81
+ opacity: 0.3;
82
+ }
83
+ `,Q4=Yo`
84
+ 0% {
85
+ opacity: 1;
86
+ }
87
+
88
+ 100% {
89
+ opacity: 0;
90
+ }
91
+ `,J4=Yo`
92
+ 0% {
93
+ transform: scale(1);
94
+ }
95
+
96
+ 50% {
97
+ transform: scale(0.92);
98
+ }
99
+
100
+ 100% {
101
+ transform: scale(1);
102
+ }
103
+ `,eF=U("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),tF=U(TC,{name:"MuiTouchRipple",slot:"Ripple"})`
104
+ opacity: 0;
105
+ position: absolute;
106
+
107
+ &.${Qo.rippleVisible} {
108
+ opacity: 0.3;
109
+ transform: scale(1);
110
+ animation-name: ${Z4};
111
+ animation-duration: ${ig}ms;
112
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
113
+ }
114
+
115
+ &.${Qo.ripplePulsate} {
116
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
117
+ }
118
+
119
+ & .${Qo.child} {
120
+ opacity: 1;
121
+ display: block;
122
+ width: 100%;
123
+ height: 100%;
124
+ border-radius: 50%;
125
+ background-color: currentColor;
126
+ }
127
+
128
+ & .${Qo.childLeaving} {
129
+ opacity: 0;
130
+ animation-name: ${Q4};
131
+ animation-duration: ${ig}ms;
132
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
133
+ }
134
+
135
+ & .${Qo.childPulsate} {
136
+ position: absolute;
137
+ /* @noflip */
138
+ left: 0px;
139
+ top: 0;
140
+ animation-name: ${J4};
141
+ animation-duration: 2500ms;
142
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
143
+ animation-iteration-count: infinite;
144
+ animation-delay: 200ms;
145
+ }
146
+ `,IC=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:i={},className:a,...l}=r,[c,u]=f.useState([]),d=f.useRef(0),p=f.useRef(null);f.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const g=f.useRef(!1),h=Pn(),b=f.useRef(null),m=f.useRef(null),y=f.useCallback(E=>{const{pulsate:P,rippleX:M,rippleY:D,rippleSize:O,cb:k}=E;u(I=>[...I,v.jsx(tF,{classes:{ripple:se(i.ripple,Qo.ripple),rippleVisible:se(i.rippleVisible,Qo.rippleVisible),ripplePulsate:se(i.ripplePulsate,Qo.ripplePulsate),child:se(i.child,Qo.child),childLeaving:se(i.childLeaving,Qo.childLeaving),childPulsate:se(i.childPulsate,Qo.childPulsate)},timeout:ig,pulsate:P,rippleX:M,rippleY:D,rippleSize:O},d.current)]),d.current+=1,p.current=k},[i]),C=f.useCallback((E={},P={},M=()=>{})=>{const{pulsate:D=!1,center:O=s||P.pulsate,fakeElement:k=!1}=P;if(E?.type==="mousedown"&&g.current){g.current=!1;return}E?.type==="touchstart"&&(g.current=!0);const I=k?null:m.current,F=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let T,R,A;if(O||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)T=Math.round(F.width/2),R=Math.round(F.height/2);else{const{clientX:L,clientY:N}=E.touches&&E.touches.length>0?E.touches[0]:E;T=Math.round(L-F.left),R=Math.round(N-F.top)}if(O)A=Math.sqrt((2*F.width**2+F.height**2)/3),A%2===0&&(A+=1);else{const L=Math.max(Math.abs((I?I.clientWidth:0)-T),T)*2+2,N=Math.max(Math.abs((I?I.clientHeight:0)-R),R)*2+2;A=Math.sqrt(L**2+N**2)}E?.touches?b.current===null&&(b.current=()=>{y({pulsate:D,rippleX:T,rippleY:R,rippleSize:A,cb:M})},h.start(X4,()=>{b.current&&(b.current(),b.current=null)})):y({pulsate:D,rippleX:T,rippleY:R,rippleSize:A,cb:M})},[s,y,h]),S=f.useCallback(()=>{C({},{pulsate:!0})},[C]),x=f.useCallback((E,P)=>{if(h.clear(),E?.type==="touchend"&&b.current){b.current(),b.current=null,h.start(0,()=>{x(E,P)});return}b.current=null,u(M=>M.length>0?M.slice(1):M),p.current=P},[h]);return f.useImperativeHandle(n,()=>({pulsate:S,start:C,stop:x}),[S,C,x]),v.jsx(eF,{className:se(Qo.root,i.root,a),ref:m,...l,children:v.jsx(Gl,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(IC.propTypes={center:o.bool,classes:o.object,className:o.string});function nF(e){return ke("MuiButtonBase",e)}const oF=Me("MuiButtonBase",["root","disabled","focusVisible"]),rF=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:s}=e,a=pe({root:["root",t&&"disabled",n&&"focusVisible"]},nF,s);return n&&r&&(a.root+=` ${r}`),a},sF=U("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"},[`&.${oF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Jo=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:i=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:g=!1,focusVisibleClassName:h,LinkComponent:b="a",onBlur:m,onClick:y,onContextMenu:C,onDragLeave:S,onFocus:x,onFocusVisible:E,onKeyDown:P,onKeyUp:M,onMouseDown:D,onMouseLeave:O,onMouseUp:k,onTouchEnd:I,onTouchMove:F,onTouchStart:T,tabIndex:R=0,TouchRippleProps:A,touchRippleRef:L,type:N,..._}=r,H=f.useRef(null),B=Y4(),$=tt(B.ref,L),[V,z]=f.useState(!1);u&&V&&z(!1),f.useImperativeHandle(s,()=>({focusVisible:()=>{z(!0),H.current.focus()}}),[]);const j=B.shouldMount&&!d&&!u;f.useEffect(()=>{V&&g&&!d&&B.pulsate()},[d,g,V,B]);const G=Qr(B,"start",D,p),Q=Qr(B,"stop",C,p),q=Qr(B,"stop",S,p),Y=Qr(B,"stop",k,p),K=Qr(B,"stop",we=>{V&&we.preventDefault(),O&&O(we)},p),J=Qr(B,"start",T,p),X=Qr(B,"stop",I,p),ee=Qr(B,"stop",F,p),W=Qr(B,"stop",we=>{dd(we.target)||z(!1),m&&m(we)},!1),le=fe(we=>{H.current||(H.current=we.currentTarget),dd(we.target)&&(z(!0),E&&E(we)),x&&x(we)}),oe=()=>{const we=H.current;return c&&c!=="button"&&!(we.tagName==="A"&&we.href)},re=fe(we=>{g&&!we.repeat&&V&&we.key===" "&&B.stop(we,()=>{B.start(we)}),we.target===we.currentTarget&&oe()&&we.key===" "&&we.preventDefault(),P&&P(we),we.target===we.currentTarget&&oe()&&we.key==="Enter"&&!u&&(we.preventDefault(),y&&y(we))}),ae=fe(we=>{g&&we.key===" "&&V&&!we.defaultPrevented&&B.stop(we,()=>{B.pulsate(we)}),M&&M(we),y&&we.target===we.currentTarget&&oe()&&we.key===" "&&!we.defaultPrevented&&y(we)});let ne=c;ne==="button"&&(_.href||_.to)&&(ne=b);const te={};if(ne==="button"){const we=!!_.formAction;te.type=N===void 0&&!we?"button":N,te.disabled=u}else!_.href&&!_.to&&(te.role="button"),u&&(te["aria-disabled"]=u);const ye=tt(n,H),ce={...r,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:g,tabIndex:R,focusVisible:V},Se=rF(ce);return v.jsxs(sF,{as:ne,className:se(Se.root,l),ownerState:ce,onBlur:W,onClick:y,onContextMenu:Q,onFocus:le,onKeyDown:re,onKeyUp:ae,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:q,onTouchEnd:X,onTouchMove:ee,onTouchStart:J,ref:ye,tabIndex:u?-1:R,type:N,...te,..._,children:[a,j?v.jsx(IC,{ref:$,center:i,...A}):null]})});function Qr(e,t,n,r=!1){return fe(s=>(n&&n(s),r||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(Jo.propTypes={action:Ft,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:Wl,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,formAction:o.oneOfType([o.func,o.string]),href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function iF(e){return typeof e.main=="string"}function aF(e,t=[]){if(!iF(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Qt(e=[]){return([,t])=>t&&aF(t,e)}function lF(e){return ke("MuiAlert",e)}const MC=Me("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 cF(e){return ke("MuiCircularProgress",e)}Me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const fr=44,ag=Yo`
147
+ 0% {
148
+ transform: rotate(0deg);
149
+ }
150
+
151
+ 100% {
152
+ transform: rotate(360deg);
153
+ }
154
+ `,lg=Yo`
155
+ 0% {
156
+ stroke-dasharray: 1px, 200px;
157
+ stroke-dashoffset: 0;
158
+ }
159
+
160
+ 50% {
161
+ stroke-dasharray: 100px, 200px;
162
+ stroke-dashoffset: -15px;
163
+ }
164
+
165
+ 100% {
166
+ stroke-dasharray: 1px, 200px;
167
+ stroke-dashoffset: -126px;
168
+ }
169
+ `,uF=typeof ag!="string"?vs`
170
+ animation: ${ag} 1.4s linear infinite;
171
+ `:null,dF=typeof lg!="string"?vs`
172
+ animation: ${lg} 1.4s ease-in-out infinite;
173
+ `:null,pF=e=>{const{classes:t,variant:n,color:r,disableShrink:s}=e,i={root:["root",n,`color${de(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${de(n)}`,s&&"circleDisableShrink"]};return pe(i,cF,t)},fF=U("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${de(n.color)}`]]}})(Ve(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:uF||{animation:`${ag} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Qt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),hF=U("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),gF=U("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${de(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ve(({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:dF||{animation:`${lg} 1.4s ease-in-out infinite`}}]}))),mF=U("circle",{name:"MuiCircularProgress",slot:"Track"})(Ve(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),oi=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCircularProgress"}),{className:s,color:i="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:g="indeterminate",...h}=r,b={...r,color:i,disableShrink:a,size:c,thickness:d,value:p,variant:g,enableTrackSlot:l},m=pF(b),y={},C={},S={};if(g==="determinate"){const x=2*Math.PI*((fr-d)/2);y.strokeDasharray=x.toFixed(3),S["aria-valuenow"]=Math.round(p),y.strokeDashoffset=`${((100-p)/100*x).toFixed(3)}px`,C.transform="rotate(-90deg)"}return v.jsx(fF,{className:se(m.root,s),style:{width:c,height:c,...C,...u},ownerState:b,ref:n,role:"progressbar",...S,...h,children:v.jsxs(hF,{className:m.svg,ownerState:b,viewBox:`${fr/2} ${fr/2} ${fr} ${fr}`,children:[l?v.jsx(mF,{className:m.track,ownerState:b,cx:fr,cy:fr,r:(fr-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,v.jsx(gF,{className:m.circle,style:y,ownerState:b,cx:fr,cy:fr,r:(fr-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(oi.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:Ro(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 bF(e){return ke("MuiIconButton",e)}const cg=Me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),yF=e=>{const{classes:t,disabled:n,color:r,edge:s,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${de(r)}`,s&&`edge${de(s)}`,`size${de(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return pe(l,bF,t)},vF=U(Jo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${de(n.color)}`],n.edge&&t[`edge${de(n.edge)}`],t[`size${de(n.size)}`]]}})(Ve(({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:t=>!t.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}}]})),Ve(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Qt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Qt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].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)}}],[`&.${cg.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${cg.loading}`]:{color:"transparent"}}))),CF=U("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"}}]})),En=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiIconButton"}),{edge:s=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:g=null,loadingIndicator:h,...b}=r,m=at(p),y=h??v.jsx(oi,{"aria-labelledby":m,color:"inherit",size:16}),C={...r,edge:s,color:l,disabled:c,disableFocusRipple:u,loading:g,loadingIndicator:y,size:d},S=yF(C);return v.jsxs(vF,{id:g?m:p,className:se(S.root,a),centerRipple:!0,focusRipple:!u,disabled:c||g,ref:n,...b,ownerState:C,children:[typeof g=="boolean"&&v.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:v.jsx(CF,{className:S.loadingIndicator,ownerState:C,children:g&&y})}),i]})});process.env.NODE_ENV!=="production"&&(En.propTypes={children:Ro(o.node,e=>f.Children.toArray(e.children).some(n=>f.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(`
174
+ `)):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 wF=gt(v.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"),SF=gt(v.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),xF=gt(v.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"),PF=gt(v.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"),OC=gt(v.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"),EF=e=>{const{variant:t,color:n,severity:r,classes:s}=e,i={root:["root",`color${de(n||r)}`,`${t}${de(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return pe(i,lF,s)},TF=U(pr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${de(n.color||n.severity)}`]]}})(Ve(({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(Qt(["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),[`& .${MC.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Qt(["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}`,[`& .${MC.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Qt(["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)}}}))]}})),IF=U("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),MF=U("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),OF=U("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),kC={success:v.jsx(wF,{fontSize:"inherit"}),warning:v.jsx(SF,{fontSize:"inherit"}),error:v.jsx(xF,{fontSize:"inherit"}),info:v.jsx(PF,{fontSize:"inherit"})},ug=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiAlert"}),{action:s,children:i,className:a,closeText:l="Close",color:c,components:u={},componentsProps:d={},icon:p,iconMapping:g=kC,onClose:h,role:b="alert",severity:m="success",slotProps:y={},slots:C={},variant:S="standard",...x}=r,E={...r,color:c,severity:m,variant:S,colorSeverity:c||m},P=EF(E),M={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...C},slotProps:{...d,...y}},[D,O]=Ae("root",{ref:n,shouldForwardComponentProp:!0,className:se(P.root,a),elementType:TF,externalForwardedProps:{...M,...x},ownerState:E,additionalProps:{role:b,elevation:0}}),[k,I]=Ae("icon",{className:P.icon,elementType:IF,externalForwardedProps:M,ownerState:E}),[F,T]=Ae("message",{className:P.message,elementType:MF,externalForwardedProps:M,ownerState:E}),[R,A]=Ae("action",{className:P.action,elementType:OF,externalForwardedProps:M,ownerState:E}),[L,N]=Ae("closeButton",{elementType:En,externalForwardedProps:M,ownerState:E}),[_,H]=Ae("closeIcon",{elementType:OC,externalForwardedProps:M,ownerState:E});return v.jsxs(D,{...O,children:[p!==!1?v.jsx(k,{...I,children:p||g[m]||kC[m]}):null,v.jsx(F,{...T,children:i}),s!=null?v.jsx(R,{...A,children:s}):null,s==null&&h?v.jsx(R,{...A,children:v.jsx(L,{size:"small","aria-label":l,title:l,color:"inherit",onClick:h,...N,children:v.jsx(_,{fontSize:"small",...H})})}):null]})});process.env.NODE_ENV!=="production"&&(ug.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 kF(e){return ke("MuiTypography",e)}const fd=Me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),DF={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},FF=y4(),NF=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:s,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${de(t)}`,n&&"gutterBottom",r&&"noWrap",s&&"paragraph"]};return pe(l,kF,a)},RF=U("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${de(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ve(({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(Qt()).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${de(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}}]}))),DC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},kt=f.forwardRef(function(t,n){const{color:r,...s}=qe({props:t,name:"MuiTypography"}),i=!DF[r],a=FF({...s,...i&&{color:r}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:g=!1,variant:h="body1",variantMapping:b=DC,...m}=a,y={...a,align:l,color:r,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:g,variant:h,variantMapping:b},C=u||(g?"p":b[h]||DC[h])||"span",S=NF(y);return v.jsx(RF,{as:C,ref:n,className:se(S.root,c),...m,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...m.style}})});process.env.NODE_ENV!=="production"&&(kt.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});function LF(e){return ke("MuiAlertTitle",e)}Me("MuiAlertTitle",["root"]);const $F=e=>{const{classes:t}=e;return pe({root:["root"]},LF,t)},AF=U(kt,{name:"MuiAlertTitle",slot:"Root"})(Ve(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),FC=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiAlertTitle"}),{className:s,...i}=r,a=r,l=$F(a);return v.jsx(AF,{gutterBottom:!0,component:"div",ownerState:a,ref:n,className:se(l.root,s),...i})});process.env.NODE_ENV!=="production"&&(FC.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 dg(e){const t=f.useRef({});return f.useEffect(()=>{t.current=e}),t.current}function NC({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,s)=>n(r)===n(t[s]))}function RC(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function VF(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:s="any",stringify:i,trim:a=!1}=e;return(l,{inputValue:c,getOptionLabel:u})=>{let d=a?c.trim():c;n&&(d=d.toLowerCase()),t&&(d=RC(d));const p=d?l.filter(g=>{let h=(i||u)(g);return n&&(h=h.toLowerCase()),t&&(h=RC(h)),s==="start"?h.startsWith(d):h.includes(d)}):l;return typeof r=="number"?p.slice(0,r):p}}const _F=VF(),LC=5,BF=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),HF=[];function $C(e,t,n,r){if(t||e==null||r)return"";const s=n(e);return typeof s=="string"?s:""}function zF(e){const{unstable_isActiveElementInListbox:t=BF,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?HF:null,disableClearable:p=!1,disableCloseOnSelect:g=!1,disabled:h,disabledItemsFocusable:b=!1,disableListWrap:m=!1,filterOptions:y=_F,filterSelectedOptions:C=!1,freeSolo:S=!1,getOptionDisabled:x,getOptionKey:E,getOptionLabel:P=Ce=>Ce.label??Ce,groupBy:M,handleHomeEndKeys:D=!e.freeSolo,id:O,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:F=(Ce,be)=>Ce===be,multiple:T=!1,onChange:R,onClose:A,onHighlightChange:L,onInputChange:N,onOpen:_,open:H,openOnFocus:B=!1,options:$,readOnly:V=!1,renderValue:z,selectOnFocus:j=!e.freeSolo,value:G}=e,Q=at(O);let q=P;q=Ce=>{const be=P(Ce);if(typeof be!="string"){if(process.env.NODE_ENV!=="production"){const Le=be===void 0?"undefined":`${typeof be} (${be})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${Le} instead of a string for ${JSON.stringify(Ce)}.`)}return String(be)}return be};const Y=f.useRef(!1),K=f.useRef(!0),J=f.useRef(null),X=f.useRef(null),[ee,W]=f.useState(null),[le,oe]=f.useState(-1),re=s?0:-1,ae=f.useRef(re),ne=f.useRef($C(d??G,T,q)).current,[te,ye]=ao({controlled:G,default:d,name:u}),[ce,Se]=ao({controlled:I,default:ne,name:u,state:"inputValue"}),[we,Be]=f.useState(!1),Fe=f.useCallback((Ce,be,Le)=>{if(!(T?te.length<be.length:be!==null)&&!l)return;const dt=$C(be,T,q,z);ce!==dt&&(Se(dt),N&&N(Ce,dt,Le))},[q,ce,T,N,Se,l,te,z]),[Ye,Ne]=ao({controlled:H,default:!1,name:u,state:"open"}),[Ke,He]=f.useState(!0),me=!T&&te!=null&&ce===q(te),Pe=Ye&&!V,ge=Pe?y($.filter(Ce=>!(C&&(T?te:[te]).some(be=>be!==null&&F(Ce,be)))),{inputValue:me&&Ke?"":ce,getOptionLabel:q}):[],Te=dg({filteredOptions:ge,value:te,inputValue:ce});f.useEffect(()=>{const Ce=te!==Te.value;we&&!Ce||S&&!Ce||Fe(null,te,"reset")},[te,Fe,we,Te.value,S]);const $e=Ye&&ge.length>0&&!V,Ge=fe(Ce=>{if(Ce===-1)J.current.focus();else{const be=z?"data-item-index":"data-tag-index";ee.querySelector(`[${be}="${Ce}"]`).focus()}});f.useEffect(()=>{T&&le>te.length-1&&(oe(-1),Ge(-1))},[te,T,le,Ge]);function ot(Ce,be){if(!X.current||Ce<0||Ce>=ge.length)return-1;let Le=Ce;for(;;){const st=X.current.querySelector(`[data-option-index="${Le}"]`),dt=b?!1:!st||st.disabled||st.getAttribute("aria-disabled")==="true";if(st&&st.hasAttribute("tabindex")&&!dt)return Le;if(be==="next"?Le=(Le+1)%ge.length:Le=(Le-1+ge.length)%ge.length,Le===Ce)return-1}}const Tt=fe(({event:Ce,index:be,reason:Le})=>{if(ae.current=be,be===-1?J.current.removeAttribute("aria-activedescendant"):J.current.setAttribute("aria-activedescendant",`${Q}-option-${be}`),L&&["mouse","keyboard","touch"].includes(Le)&&L(Ce,be===-1?null:ge[be],Le),!X.current)return;const st=X.current.querySelector(`[role="option"].${n}-focused`);st&&(st.classList.remove(`${n}-focused`),st.classList.remove(`${n}-focusVisible`));let dt=X.current;if(X.current.getAttribute("role")!=="listbox"&&(dt=X.current.parentElement.querySelector('[role="listbox"]')),!dt)return;if(be===-1){dt.scrollTop=0;return}const bn=X.current.querySelector(`[data-option-index="${be}"]`);if(bn&&(bn.classList.add(`${n}-focused`),Le==="keyboard"&&bn.classList.add(`${n}-focusVisible`),dt.scrollHeight>dt.clientHeight&&Le!=="mouse"&&Le!=="touch")){const Rn=bn,Do=dt.clientHeight+dt.scrollTop,Sl=Rn.offsetTop+Rn.offsetHeight;Sl>Do?dt.scrollTop=Sl-dt.clientHeight:Rn.offsetTop-Rn.offsetHeight*(M?1.3:0)<dt.scrollTop&&(dt.scrollTop=Rn.offsetTop-Rn.offsetHeight*(M?1.3:0))}}),We=fe(({event:Ce,diff:be,direction:Le="next",reason:st})=>{if(!Pe)return;const bn=ot((()=>{const Rn=ge.length-1;if(be==="reset")return re;if(be==="start")return 0;if(be==="end")return Rn;const Do=ae.current+be;return Do<0?Do===-1&&k?-1:m&&ae.current!==-1||Math.abs(be)>1?0:Rn:Do>Rn?Do===Rn+1&&k?-1:m||Math.abs(be)>1?Rn:0:Do})(),Le);if(Tt({index:bn,reason:st,event:Ce}),r&&be!=="reset")if(bn===-1)J.current.value=ce;else{const Rn=q(ge[bn]);J.current.value=Rn,Rn.toLowerCase().indexOf(ce.toLowerCase())===0&&ce.length>0&&J.current.setSelectionRange(ce.length,Rn.length)}}),Oe=!NC({array1:Te.filteredOptions,array2:ge,parser:q}),Ue=()=>{const Ce=(be,Le)=>{const st=be?q(be):"",dt=Le?q(Le):"";return st===dt};if(ae.current!==-1&&!NC({array1:Te.filteredOptions,array2:ge,parser:q})&&Te.inputValue===ce&&(T?te.length===Te.value.length&&Te.value.every((be,Le)=>q(te[Le])===q(be)):Ce(Te.value,te))){const be=Te.filteredOptions[ae.current];if(be)return ge.findIndex(Le=>q(Le)===q(be))}return-1},ut=f.useCallback(()=>{if(!Pe)return;const Ce=Ue();if(Ce!==-1){ae.current=Ce;return}const be=T?te[0]:te;if(ge.length===0||be==null){We({diff:"reset"});return}if(X.current){if(be!=null){const Le=ge[ae.current];if(T&&Le&&te.findIndex(dt=>F(Le,dt))!==-1)return;const st=ge.findIndex(dt=>F(dt,be));st===-1?We({diff:"reset"}):Tt({index:st});return}if(ae.current>=ge.length-1){Tt({index:ge.length-1});return}Tt({index:ae.current})}},[ge.length,T?!1:te,We,Tt,Pe,ce,T]),zt=fe(Ce=>{Zh(X,Ce),Ce&&ut()});process.env.NODE_ENV!=="production"&&f.useEffect(()=>{(!J.current||J.current.nodeName!=="INPUT")&&(J.current&&J.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(`
175
+ `)):console.error([`MUI: Unable to find the input element. It was resolved to ${J.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(`
176
+ `)))},[u]),f.useEffect(()=>{(Oe||Pe&&!g)&&ut()},[ut,Oe,Pe,g]);const Et=Ce=>{Ye||(Ne(!0),He(!0),_&&_(Ce))},zn=(Ce,be)=>{Ye&&(Ne(!1),A&&A(Ce,be))},wn=(Ce,be,Le,st)=>{if(T){if(te.length===be.length&&te.every((dt,bn)=>dt===be[bn]))return}else if(te===be)return;R&&R(Ce,be,Le,st),ye(be)},jn=f.useRef(!1),Gn=(Ce,be,Le="selectOption",st="options")=>{let dt=Le,bn=be;if(T){if(bn=Array.isArray(te)?te.slice():[],process.env.NODE_ENV!=="production"){const Do=bn.filter(Sl=>F(be,Sl));Do.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 ${Do.length} matches.`].join(`
177
+ `))}const Rn=bn.findIndex(Do=>F(be,Do));Rn===-1?bn.push(be):st!=="freeSolo"&&(bn.splice(Rn,1),dt="removeOption")}Fe(Ce,bn,dt),wn(Ce,bn,dt,{option:be}),!g&&(!Ce||!Ce.ctrlKey&&!Ce.metaKey)&&zn(Ce,dt),(a===!0||a==="touch"&&jn.current||a==="mouse"&&!jn.current)&&J.current.blur()};function _e(Ce,be){if(Ce===-1)return-1;let Le=Ce;for(;;){if(be==="next"&&Le===te.length||be==="previous"&&Le===-1)return-1;const st=z?"data-item-index":"data-tag-index",dt=ee.querySelector(`[${st}="${Le}"]`);if(!dt||!dt.hasAttribute("tabindex")||dt.disabled||dt.getAttribute("aria-disabled")==="true")Le+=be==="next"?1:-1;else return Le}}const Ct=(Ce,be)=>{if(!T)return;ce===""&&zn(Ce,"toggleInput");let Le=le;le===-1&&be==="previous"?(Le=te.length-1,S&&ce!==""&&(Se(""),N&&N(Ce,"","reset"))):(Le+=be==="next"?1:-1,Le<0&&(Le=0),Le===te.length&&(Le=-1)),Le=_e(Le,be),oe(Le),Ge(Le)},Re=Ce=>{Y.current=!0,Se(""),N&&N(Ce,"","clear"),wn(Ce,T?[]:null,"clear")},Ze=Ce=>be=>{if(Ce.onKeyDown&&Ce.onKeyDown(be),!be.defaultMuiPrevented&&(le!==-1&&!["ArrowLeft","ArrowRight"].includes(be.key)&&(oe(-1),Ge(-1)),be.which!==229))switch(be.key){case"Home":Pe&&D&&(be.preventDefault(),We({diff:"start",direction:"next",reason:"keyboard",event:be}));break;case"End":Pe&&D&&(be.preventDefault(),We({diff:"end",direction:"previous",reason:"keyboard",event:be}));break;case"PageUp":be.preventDefault(),We({diff:-LC,direction:"previous",reason:"keyboard",event:be}),Et(be);break;case"PageDown":be.preventDefault(),We({diff:LC,direction:"next",reason:"keyboard",event:be}),Et(be);break;case"ArrowDown":be.preventDefault(),We({diff:1,direction:"next",reason:"keyboard",event:be}),Et(be);break;case"ArrowUp":be.preventDefault(),We({diff:-1,direction:"previous",reason:"keyboard",event:be}),Et(be);break;case"ArrowLeft":{const Le=J.current;if(!(Le&&Le.selectionStart===0&&Le.selectionEnd===0))return;!T&&z&&te!=null?(S&&ce!==""&&(Se(""),N&&N(be,"","reset")),oe(0),Ge(0)):Ct(be,"previous");break}case"ArrowRight":!T&&z?(oe(-1),Ge(-1)):Ct(be,"next");break;case"Enter":if(ae.current!==-1&&Pe){const Le=ge[ae.current],st=x?x(Le):!1;if(be.preventDefault(),st)return;Gn(be,Le,"selectOption"),r&&J.current.setSelectionRange(J.current.value.length,J.current.value.length)}else S&&ce!==""&&me===!1&&(T&&be.preventDefault(),Gn(be,ce,"createOption","freeSolo"));break;case"Escape":Pe?(be.preventDefault(),be.stopPropagation(),zn(be,"escape")):c&&(ce!==""||T&&te.length>0||z)&&(be.preventDefault(),be.stopPropagation(),Re(be));break;case"Backspace":if(T&&!V&&ce===""&&te.length>0){const Le=le===-1?te.length-1:le,st=te.slice();st.splice(Le,1),wn(be,st,"removeOption",{option:te[Le]})}!T&&z&&!V&&ce===""&&wn(be,null,"removeOption",{option:te});break;case"Delete":if(T&&!V&&ce===""&&te.length>0&&le!==-1){const Le=le,st=te.slice();st.splice(Le,1),wn(be,st,"removeOption",{option:te[Le]})}!T&&z&&!V&&ce===""&&wn(be,null,"removeOption",{option:te});break}},bt=Ce=>{Be(!0),le!==-1&&(oe(-1),Ge(-1)),B&&!Y.current&&Et(Ce)},wt=Ce=>{if(t(X)){J.current.focus();return}Be(!1),K.current=!0,Y.current=!1,i&&ae.current!==-1&&Pe?Gn(Ce,ge[ae.current],"blur"):i&&S&&ce!==""?Gn(Ce,ce,"blur","freeSolo"):l&&Fe(Ce,te,"blur"),zn(Ce,"blur")},Jt=Ce=>{const be=Ce.target.value;ce!==be&&(Se(be),He(!1),N&&N(Ce,be,"input")),be===""?!p&&!T&&!z&&wn(Ce,null,"clear"):Et(Ce)},so=Ce=>{const be=Number(Ce.currentTarget.getAttribute("data-option-index"));ae.current!==be&&Tt({event:Ce,index:be,reason:"mouse"})},Co=Ce=>{Tt({event:Ce,index:Number(Ce.currentTarget.getAttribute("data-option-index")),reason:"touch"}),jn.current=!0},rt=Ce=>{const be=Number(Ce.currentTarget.getAttribute("data-option-index"));Gn(Ce,ge[be],"selectOption"),jn.current=!1},Lt=Ce=>be=>{const Le=te.slice();Le.splice(Ce,1),wn(be,Le,"removeOption",{option:te[Ce]})},Kt=Ce=>{wn(Ce,null,"removeOption",{option:te})},It=Ce=>{Ye?zn(Ce,"toggleInput"):Et(Ce)},en=Ce=>{Ce.currentTarget.contains(Ce.target)&&Ce.target.getAttribute("id")!==Q&&Ce.preventDefault()},ko=Ce=>{Ce.currentTarget.contains(Ce.target)&&(J.current.focus(),j&&K.current&&J.current.selectionEnd-J.current.selectionStart===0&&J.current.select(),K.current=!1)},Yi=Ce=>{!h&&(ce===""||!Ye)&&It(Ce)};let ms=S&&ce.length>0;ms=ms||(T?te.length>0:te!==null);let Ki=ge;if(M){const Ce=new Map;let be=!1;Ki=ge.reduce((Le,st,dt)=>{const bn=M(st);return Le.length>0&&Le[Le.length-1].group===bn?Le[Le.length-1].options.push(st):(process.env.NODE_ENV!=="production"&&(Ce.get(bn)&&!be&&(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`."),be=!0),Ce.set(bn,!0)),Le.push({key:dt,index:dt,group:bn,options:[st]})),Le},[])}return h&&we&&wt(),{getRootProps:(Ce={})=>({...Ce,onKeyDown:Ze(Ce),onMouseDown:en,onClick:ko}),getInputLabelProps:()=>({id:`${Q}-label`,htmlFor:Q}),getInputProps:()=>({id:Q,value:ce,onBlur:wt,onFocus:bt,onChange:Jt,onMouseDown:Yi,"aria-activedescendant":Pe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":$e?`${Q}-listbox`:void 0,"aria-expanded":$e,autoComplete:"off",ref:J,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Re}),getItemProps:({index:Ce=0}={})=>({...T&&{key:Ce},...z?{"data-item-index":Ce}:{"data-tag-index":Ce},tabIndex:-1,...!V&&{onDelete:T?Lt(Ce):Kt}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:It}),getTagProps:({index:Ce})=>({key:Ce,"data-tag-index":Ce,tabIndex:-1,...!V&&{onDelete:Lt(Ce)}}),getListboxProps:()=>({role:"listbox",id:`${Q}-listbox`,"aria-labelledby":`${Q}-label`,"aria-multiselectable":T||void 0,ref:zt,onMouseDown:Ce=>{Ce.preventDefault()}}),getOptionProps:({index:Ce,option:be})=>{const Le=(T?te:[te]).some(dt=>dt!=null&&F(be,dt)),st=x?x(be):!1;return{key:E?.(be)??q(be),tabIndex:-1,role:"option",id:`${Q}-option-${Ce}`,onMouseMove:so,onClick:rt,onTouchStart:Co,"data-option-index":Ce,"aria-disabled":st,"aria-selected":Le}},id:Q,inputValue:ce,value:te,dirty:ms,expanded:Pe&&ee,popupOpen:Pe,focused:we||le!==-1,anchorEl:ee,setAnchorEl:W,focusedItem:le,focusedTag:le,groupedOptions:Ki}}function er(e,t,n,r,s){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=s||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var xo="top",tr="bottom",nr="right",Po="left",pg="auto",Ul=[xo,tr,nr,Po],fa="start",ql="end",jF="clippingParents",AC="viewport",Yl="popper",GF="reference",VC=Ul.reduce(function(e,t){return e.concat([t+"-"+fa,t+"-"+ql])},[]),_C=[].concat(Ul,[pg]).reduce(function(e,t){return e.concat([t,t+"-"+fa,t+"-"+ql])},[]),WF="beforeRead",UF="read",qF="afterRead",YF="beforeMain",KF="main",XF="afterMain",ZF="beforeWrite",QF="write",JF="afterWrite",e6=[WF,UF,qF,YF,KF,XF,ZF,QF,JF];function Lr(e){return e?(e.nodeName||"").toLowerCase():null}function Ao(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ri(e){var t=Ao(e).Element;return e instanceof t||e instanceof Element}function or(e){var t=Ao(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function fg(e){if(typeof ShadowRoot>"u")return!1;var t=Ao(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function t6(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!or(i)||!Lr(i)||(Object.assign(i.style,r),Object.keys(s).forEach(function(a){var l=s[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function n6(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 s=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!or(s)||!Lr(s)||(Object.assign(s.style,l),Object.keys(i).forEach(function(c){s.removeAttribute(c)}))})}}const o6={name:"applyStyles",enabled:!0,phase:"write",fn:t6,effect:n6,requires:["computeStyles"]};function $r(e){return e.split("-")[0]}var si=Math.max,hd=Math.min,ha=Math.round;function hg(){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 BC(){return!/^((?!chrome|android).)*safari/i.test(hg())}function ga(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,i=1;t&&or(e)&&(s=e.offsetWidth>0&&ha(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ha(r.height)/e.offsetHeight||1);var a=ri(e)?Ao(e):window,l=a.visualViewport,c=!BC()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/s,d=(r.top+(c&&l?l.offsetTop:0))/i,p=r.width/s,g=r.height/i;return{width:p,height:g,top:d,right:u+p,bottom:d+g,left:u,x:u,y:d}}function gg(e){var t=ga(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 HC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&fg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Jr(e){return Ao(e).getComputedStyle(e)}function r6(e){return["table","td","th"].indexOf(Lr(e))>=0}function Es(e){return((ri(e)?e.ownerDocument:e.document)||window.document).documentElement}function gd(e){return Lr(e)==="html"?e:e.assignedSlot||e.parentNode||(fg(e)?e.host:null)||Es(e)}function zC(e){return!or(e)||Jr(e).position==="fixed"?null:e.offsetParent}function s6(e){var t=/firefox/i.test(hg()),n=/Trident/i.test(hg());if(n&&or(e)){var r=Jr(e);if(r.position==="fixed")return null}var s=gd(e);for(fg(s)&&(s=s.host);or(s)&&["html","body"].indexOf(Lr(s))<0;){var i=Jr(s);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 s;s=s.parentNode}return null}function Kl(e){for(var t=Ao(e),n=zC(e);n&&r6(n)&&Jr(n).position==="static";)n=zC(n);return n&&(Lr(n)==="html"||Lr(n)==="body"&&Jr(n).position==="static")?t:n||s6(e)||t}function mg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xl(e,t,n){return si(e,hd(t,n))}function i6(e,t,n){var r=Xl(e,t,n);return r>n?n:r}function jC(){return{top:0,right:0,bottom:0,left:0}}function GC(e){return Object.assign({},jC(),e)}function WC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var a6=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,GC(typeof t!="number"?t:WC(t,Ul))};function l6(e){var t,n=e.state,r=e.name,s=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=$r(n.placement),c=mg(l),u=[Po,nr].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var p=a6(s.padding,n),g=gg(i),h=c==="y"?xo:Po,b=c==="y"?tr:nr,m=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],C=Kl(i),S=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,x=m/2-y/2,E=p[h],P=S-g[d]-p[b],M=S/2-g[d]/2+x,D=Xl(E,M,P),O=c;n.modifiersData[r]=(t={},t[O]=D,t.centerOffset=D-M,t)}}function c6(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||HC(t.elements.popper,s)&&(t.elements.arrow=s))}const u6={name:"arrow",enabled:!0,phase:"main",fn:l6,effect:c6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ma(e){return e.split("-")[1]}var d6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p6(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:ha(n*s)/s||0,y:ha(r*s)/s||0}}function UC(e){var t,n=e.popper,r=e.popperRect,s=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,g=a.x,h=g===void 0?0:g,b=a.y,m=b===void 0?0:b,y=typeof d=="function"?d({x:h,y:m}):{x:h,y:m};h=y.x,m=y.y;var C=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),x=Po,E=xo,P=window;if(u){var M=Kl(n),D="clientHeight",O="clientWidth";if(M===Ao(n)&&(M=Es(n),Jr(M).position!=="static"&&l==="absolute"&&(D="scrollHeight",O="scrollWidth")),M=M,s===xo||(s===Po||s===nr)&&i===ql){E=tr;var k=p&&M===P&&P.visualViewport?P.visualViewport.height:M[D];m-=k-r.height,m*=c?1:-1}if(s===Po||(s===xo||s===tr)&&i===ql){x=nr;var I=p&&M===P&&P.visualViewport?P.visualViewport.width:M[O];h-=I-r.width,h*=c?1:-1}}var F=Object.assign({position:l},u&&d6),T=d===!0?p6({x:h,y:m},Ao(n)):{x:h,y:m};if(h=T.x,m=T.y,c){var R;return Object.assign({},F,(R={},R[E]=S?"0":"",R[x]=C?"0":"",R.transform=(P.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",R))}return Object.assign({},F,(t={},t[E]=S?m+"px":"",t[x]=C?h+"px":"",t.transform="",t))}function f6(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:$r(t.placement),variation:ma(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,UC(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,UC(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 h6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:f6,data:{}};var md={passive:!0};function g6(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,i=s===void 0?!0:s,a=r.resize,l=a===void 0?!0:a,c=Ao(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,md)}),l&&c.addEventListener("resize",n.update,md),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,md)}),l&&c.removeEventListener("resize",n.update,md)}}const m6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:g6,data:{}};var b6={left:"right",right:"left",bottom:"top",top:"bottom"};function bd(e){return e.replace(/left|right|bottom|top/g,function(t){return b6[t]})}var y6={start:"end",end:"start"};function qC(e){return e.replace(/start|end/g,function(t){return y6[t]})}function bg(e){var t=Ao(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function yg(e){return ga(Es(e)).left+bg(e).scrollLeft}function v6(e,t){var n=Ao(e),r=Es(e),s=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;var u=BC();(u||!u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l+yg(e),y:c}}function C6(e){var t,n=Es(e),r=bg(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=si(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=si(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-r.scrollLeft+yg(e),c=-r.scrollTop;return Jr(s||n).direction==="rtl"&&(l+=si(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function vg(e){var t=Jr(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function YC(e){return["html","body","#document"].indexOf(Lr(e))>=0?e.ownerDocument.body:or(e)&&vg(e)?e:YC(gd(e))}function Zl(e,t){var n;t===void 0&&(t=[]);var r=YC(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ao(r),a=s?[i].concat(i.visualViewport||[],vg(r)?r:[]):r,l=t.concat(a);return s?l:l.concat(Zl(gd(a)))}function Cg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function w6(e,t){var n=ga(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 KC(e,t,n){return t===AC?Cg(v6(e,n)):ri(t)?w6(t,n):Cg(C6(Es(e)))}function S6(e){var t=Zl(gd(e)),n=["absolute","fixed"].indexOf(Jr(e).position)>=0,r=n&&or(e)?Kl(e):e;return ri(r)?t.filter(function(s){return ri(s)&&HC(s,r)&&Lr(s)!=="body"}):[]}function x6(e,t,n,r){var s=t==="clippingParents"?S6(e):[].concat(t),i=[].concat(s,[n]),a=i[0],l=i.reduce(function(c,u){var d=KC(e,u,r);return c.top=si(d.top,c.top),c.right=hd(d.right,c.right),c.bottom=hd(d.bottom,c.bottom),c.left=si(d.left,c.left),c},KC(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function XC(e){var t=e.reference,n=e.element,r=e.placement,s=r?$r(r):null,i=r?ma(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(s){case xo:c={x:a,y:t.y-n.height};break;case tr:c={x:a,y:t.y+t.height};break;case nr:c={x:t.x+t.width,y:l};break;case Po:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=s?mg(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case fa:c[u]=c[u]-(t[d]/2-n[d]/2);break;case ql:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Ql(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?jF:l,u=n.rootBoundary,d=u===void 0?AC:u,p=n.elementContext,g=p===void 0?Yl:p,h=n.altBoundary,b=h===void 0?!1:h,m=n.padding,y=m===void 0?0:m,C=GC(typeof y!="number"?y:WC(y,Ul)),S=g===Yl?GF:Yl,x=e.rects.popper,E=e.elements[b?S:g],P=x6(ri(E)?E:E.contextElement||Es(e.elements.popper),c,d,a),M=ga(e.elements.reference),D=XC({reference:M,element:x,placement:s}),O=Cg(Object.assign({},x,D)),k=g===Yl?O:M,I={top:P.top-k.top+C.top,bottom:k.bottom-P.bottom+C.bottom,left:P.left-k.left+C.left,right:k.right-P.right+C.right},F=e.modifiersData.offset;if(g===Yl&&F){var T=F[s];Object.keys(I).forEach(function(R){var A=[nr,tr].indexOf(R)>=0?1:-1,L=[xo,tr].indexOf(R)>=0?"y":"x";I[R]+=T[L]*A})}return I}function P6(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?_C:c,d=ma(r),p=d?l?VC:VC.filter(function(b){return ma(b)===d}):Ul,g=p.filter(function(b){return u.indexOf(b)>=0});g.length===0&&(g=p);var h=g.reduce(function(b,m){return b[m]=Ql(e,{placement:m,boundary:s,rootBoundary:i,padding:a})[$r(m)],b},{});return Object.keys(h).sort(function(b,m){return h[b]-h[m]})}function E6(e){if($r(e)===pg)return[];var t=bd(e);return[qC(e),t,qC(t)]}function T6(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,g=n.altBoundary,h=n.flipVariations,b=h===void 0?!0:h,m=n.allowedAutoPlacements,y=t.options.placement,C=$r(y),S=C===y,x=c||(S||!b?[bd(y)]:E6(y)),E=[y].concat(x).reduce(function(G,Q){return G.concat($r(Q)===pg?P6(t,{placement:Q,boundary:d,rootBoundary:p,padding:u,flipVariations:b,allowedAutoPlacements:m}):Q)},[]),P=t.rects.reference,M=t.rects.popper,D=new Map,O=!0,k=E[0],I=0;I<E.length;I++){var F=E[I],T=$r(F),R=ma(F)===fa,A=[xo,tr].indexOf(T)>=0,L=A?"width":"height",N=Ql(t,{placement:F,boundary:d,rootBoundary:p,altBoundary:g,padding:u}),_=A?R?nr:Po:R?tr:xo;P[L]>M[L]&&(_=bd(_));var H=bd(_),B=[];if(i&&B.push(N[T]<=0),l&&B.push(N[_]<=0,N[H]<=0),B.every(function(G){return G})){k=F,O=!1;break}D.set(F,B)}if(O)for(var $=b?3:1,V=function(Q){var q=E.find(function(Y){var K=D.get(Y);if(K)return K.slice(0,Q).every(function(J){return J})});if(q)return k=q,"break"},z=$;z>0;z--){var j=V(z);if(j==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const I6={name:"flip",enabled:!0,phase:"main",fn:T6,requiresIfExists:["offset"],data:{_skip:!1}};function ZC(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 QC(e){return[xo,nr,tr,Po].some(function(t){return e[t]>=0})}function M6(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ql(t,{elementContext:"reference"}),l=Ql(t,{altBoundary:!0}),c=ZC(a,r),u=ZC(l,s,i),d=QC(c),p=QC(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const O6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:M6};function k6(e,t,n){var r=$r(e),s=[Po,xo].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*s,[Po,nr].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function D6(e){var t=e.state,n=e.options,r=e.name,s=n.offset,i=s===void 0?[0,0]:s,a=_C.reduce(function(d,p){return d[p]=k6(p,t.rects,i),d},{}),l=a[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]=a}const F6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:D6};function N6(e){var t=e.state,n=e.name;t.modifiersData[n]=XC({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const R6={name:"popperOffsets",enabled:!0,phase:"read",fn:N6,data:{}};function L6(e){return e==="x"?"y":"x"}function $6(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,g=n.tether,h=g===void 0?!0:g,b=n.tetherOffset,m=b===void 0?0:b,y=Ql(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),C=$r(t.placement),S=ma(t.placement),x=!S,E=mg(C),P=L6(E),M=t.modifiersData.popperOffsets,D=t.rects.reference,O=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,I=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(M){if(i){var R,A=E==="y"?xo:Po,L=E==="y"?tr:nr,N=E==="y"?"height":"width",_=M[E],H=_+y[A],B=_-y[L],$=h?-O[N]/2:0,V=S===fa?D[N]:O[N],z=S===fa?-O[N]:-D[N],j=t.elements.arrow,G=h&&j?gg(j):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jC(),q=Q[A],Y=Q[L],K=Xl(0,D[N],G[N]),J=x?D[N]/2-$-K-q-I.mainAxis:V-K-q-I.mainAxis,X=x?-D[N]/2+$+K+Y+I.mainAxis:z+K+Y+I.mainAxis,ee=t.elements.arrow&&Kl(t.elements.arrow),W=ee?E==="y"?ee.clientTop||0:ee.clientLeft||0:0,le=(R=F?.[E])!=null?R:0,oe=_+J-le-W,re=_+X-le,ae=Xl(h?hd(H,oe):H,_,h?si(B,re):B);M[E]=ae,T[E]=ae-_}if(l){var ne,te=E==="x"?xo:Po,ye=E==="x"?tr:nr,ce=M[P],Se=P==="y"?"height":"width",we=ce+y[te],Be=ce-y[ye],Fe=[xo,Po].indexOf(C)!==-1,Ye=(ne=F?.[P])!=null?ne:0,Ne=Fe?we:ce-D[Se]-O[Se]-Ye+I.altAxis,Ke=Fe?ce+D[Se]+O[Se]-Ye-I.altAxis:Be,He=h&&Fe?i6(Ne,ce,Ke):Xl(h?Ne:we,ce,h?Ke:Be);M[P]=He,T[P]=He-ce}t.modifiersData[r]=T}}const A6={name:"preventOverflow",enabled:!0,phase:"main",fn:$6,requiresIfExists:["offset"]};function V6(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _6(e){return e===Ao(e)||!or(e)?bg(e):V6(e)}function B6(e){var t=e.getBoundingClientRect(),n=ha(t.width)/e.offsetWidth||1,r=ha(t.height)/e.offsetHeight||1;return n!==1||r!==1}function H6(e,t,n){n===void 0&&(n=!1);var r=or(t),s=or(t)&&B6(t),i=Es(t),a=ga(e,s,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Lr(t)!=="body"||vg(i))&&(l=_6(t)),or(t)?(c=ga(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=yg(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function z6(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&s(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),r}function j6(e){var t=z6(e);return e6.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function G6(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function W6(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var JC={placement:"bottom",modifiers:[],strategy:"absolute"};function ew(){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 U6(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?JC:s;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},JC,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],g=!1,h={state:d,setOptions:function(C){var S=typeof C=="function"?C(d.options):C;m(),d.options=Object.assign({},i,d.options,S),d.scrollParents={reference:ri(l)?Zl(l):l.contextElement?Zl(l.contextElement):[],popper:Zl(c)};var x=j6(W6([].concat(r,d.options.modifiers)));return d.orderedModifiers=x.filter(function(E){return E.enabled}),b(),h.update()},forceUpdate:function(){if(!g){var C=d.elements,S=C.reference,x=C.popper;if(ew(S,x)){d.rects={reference:H6(S,Kl(x),d.options.strategy==="fixed"),popper:gg(x)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(I){return d.modifiersData[I.name]=Object.assign({},I.data)});for(var E=0;E<d.orderedModifiers.length;E++){if(d.reset===!0){d.reset=!1,E=-1;continue}var P=d.orderedModifiers[E],M=P.fn,D=P.options,O=D===void 0?{}:D,k=P.name;typeof M=="function"&&(d=M({state:d,options:O,name:k,instance:h})||d)}}}},update:G6(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){m(),g=!0}};if(!ew(l,c))return h;h.setOptions(u).then(function(y){!g&&u.onFirstUpdate&&u.onFirstUpdate(y)});function b(){d.orderedModifiers.forEach(function(y){var C=y.name,S=y.options,x=S===void 0?{}:S,E=y.effect;if(typeof E=="function"){var P=E({state:d,name:C,instance:h,options:x}),M=function(){};p.push(P||M)}})}function m(){p.forEach(function(y){return y()}),p=[]}return h}}var q6=[m6,R6,h6,o6,F6,I6,A6,u6,O6],Y6=U6({defaultModifiers:q6});function nt(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:Wn(n,r),{props:l,internalRef:c}=xC({...i,externalSlotProps:a}),u=tt(c,a?.ref,e.additionalProps?.ref);return wC(t,{...l,ref:u},r)}function Jl(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||process.env.NODE_ENV==="test")}function ii(e){return parseInt(f.version,10)>=19?e?.props?.ref||null:e?.ref||null}function K6(e){return typeof e=="function"?e():e}const ec=f.forwardRef(function(t,n){const{children:r,container:s,disablePortal:i=!1}=t,[a,l]=f.useState(null),c=tt(f.isValidElement(r)?ii(r):null,n);if(it(()=>{i||l(K6(s)||document.body)},[s,i]),it(()=>{if(a&&!i)return Zh(n,a),()=>{Zh(n,null)}},[n,a,i]),i){if(f.isValidElement(r)){const u={ref:c};return f.cloneElement(r,u)}return r}return a&&P1.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(ec.propTypes={children:o.node,container:o.oneOfType([er,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(ec.propTypes=Bl(ec.propTypes));function X6(e){return ke("MuiPopper",e)}Me("MuiPopper",["root"]);function Z6(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 yd(e){return typeof e=="function"?e():e}function vd(e){return e.nodeType!==void 0}function Q6(e){return!vd(e)}const J6=e=>{const{classes:t}=e;return pe({root:["root"]},X6,t)},eN={},tN=f.forwardRef(function(t,n){const{anchorEl:r,children:s,direction:i,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:g={},slots:h={},TransitionProps:b,ownerState:m,...y}=t,C=f.useRef(null),S=tt(C,n),x=f.useRef(null),E=tt(x,p),P=f.useRef(E);it(()=>{P.current=E},[E]),f.useImperativeHandle(p,()=>x.current,[]);const M=Z6(u,i),[D,O]=f.useState(M),[k,I]=f.useState(yd(r));f.useEffect(()=>{x.current&&x.current.forceUpdate()}),f.useEffect(()=>{r&&I(yd(r))},[r]),it(()=>{if(!k||!c)return;const L=H=>{O(H.placement)};if(process.env.NODE_ENV!=="production"&&k&&vd(k)&&k.nodeType===1){const H=k.getBoundingClientRect();Jl()&&H.top===0&&H.left===0&&H.right===0&&H.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(`
178
+ `))}let N=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{L(H)}}];l!=null&&(N=N.concat(l)),d&&d.modifiers!=null&&(N=N.concat(d.modifiers));const _=Y6(k,C.current,{placement:M,...d,modifiers:N});return P.current(_),()=>{_.destroy(),P.current(null)}},[k,a,l,c,d,M]);const F={placement:D};b!==null&&(F.TransitionProps=b);const T=J6(t),R=h.root??"div",A=nt({elementType:R,externalSlotProps:g.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:T.root});return v.jsx(R,{...A,children:typeof s=="function"?s(F):s})}),tw=f.forwardRef(function(t,n){const{anchorEl:r,children:s,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:g=eN,popperRef:h,style:b,transition:m=!1,slotProps:y={},slots:C={},...S}=t,[x,E]=f.useState(!0),P=()=>{E(!1)},M=()=>{E(!0)};if(!c&&!d&&(!m||x))return null;let D;if(i)D=i;else if(r){const I=yd(r);D=I&&vd(I)?Bt(I).body:Bt(null).body}const O=!d&&c&&(!m||x)?"none":void 0,k=m?{in:d,onEnter:P,onExited:M}:void 0;return v.jsx(ec,{disablePortal:l,container:D,children:v.jsx(tN,{anchorEl:r,direction:a,disablePortal:l,modifiers:u,ref:n,open:m?!x:d,placement:p,popperOptions:g,popperRef:h,slotProps:y,slots:C,...S,style:{position:"fixed",top:0,left:0,display:O,...b},TransitionProps:k,children:s})})});process.env.NODE_ENV!=="production"&&(tw.propTypes={anchorEl:Ro(o.oneOfType([er,o.object,o.func]),e=>{if(e.open){const t=yd(e.anchorEl);if(t&&vd(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&Jl()&&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(`
179
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||Q6(t)&&t.contextElement!=null&&t.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(`
180
+ `))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([er,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,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"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,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"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Ft,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const nN=U(tw,{name:"MuiPopper",slot:"Root"})({}),ai=f.forwardRef(function(t,n){const r=_t(),s=qe({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:g,open:h,placement:b,popperOptions:m,popperRef:y,transition:C,slots:S,slotProps:x,...E}=s,P=S?.root??l?.Root,M={anchorEl:i,container:u,disablePortal:d,keepMounted:p,modifiers:g,open:h,placement:b,popperOptions:m,popperRef:y,transition:C,...E};return v.jsx(nN,{as:a,direction:r?"rtl":"ltr",slots:{root:P},slotProps:x??c,...M,ref:n})});process.env.NODE_ENV!=="production"&&(ai.propTypes={anchorEl:o.oneOfType([er,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([er,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,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"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,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"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Ft,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function oN(e){return ke("MuiListSubheader",e)}Me("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const rN=e=>{const{classes:t,color:n,disableGutters:r,inset:s,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${de(n)}`,!r&&"gutters",s&&"inset",!i&&"sticky"]};return pe(a,oN,t)},sN=U("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${de(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Ve(({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}}]}))),tc=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListSubheader"}),{className:s,color:i="default",component:a="li",disableGutters:l=!1,disableSticky:c=!1,inset:u=!1,...d}=r,p={...r,color:i,component:a,disableGutters:l,disableSticky:c,inset:u},g=rN(p);return v.jsx(sN,{as:a,className:se(g.root,s),ref:n,ownerState:p,...d})});tc&&(tc.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(tc.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 iN=gt(v.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 aN(e){return ke("MuiChip",e)}const xt=Me("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"]),lN=e=>{const{classes:t,disabled:n,size:r,color:s,iconColor:i,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${de(r)}`,`color${de(s)}`,l&&"clickable",l&&`clickableColor${de(s)}`,a&&"deletable",a&&`deletableColor${de(s)}`,`${c}${de(s)}`],label:["label",`label${de(r)}`],avatar:["avatar",`avatar${de(r)}`,`avatarColor${de(s)}`],icon:["icon",`icon${de(r)}`,`iconColor${de(i)}`],deleteIcon:["deleteIcon",`deleteIcon${de(r)}`,`deleteIconColor${de(s)}`,`deleteIcon${de(c)}Color${de(s)}`]};return pe(u,aN,t)},cN=U("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:s,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${xt.avatar}`]:t.avatar},{[`& .${xt.avatar}`]:t[`avatar${de(l)}`]},{[`& .${xt.avatar}`]:t[`avatarColor${de(r)}`]},{[`& .${xt.icon}`]:t.icon},{[`& .${xt.icon}`]:t[`icon${de(l)}`]},{[`& .${xt.icon}`]:t[`iconColor${de(s)}`]},{[`& .${xt.deleteIcon}`]:t.deleteIcon},{[`& .${xt.deleteIcon}`]:t[`deleteIcon${de(l)}`]},{[`& .${xt.deleteIcon}`]:t[`deleteIconColor${de(r)}`]},{[`& .${xt.deleteIcon}`]:t[`deleteIcon${de(c)}Color${de(r)}`]},t.root,t[`size${de(l)}`],t[`color${de(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${de(r)}`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${de(r)}`],t[c],t[`${c}${de(r)}`]]}})(Ve(({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",[`&.${xt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${xt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${xt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${xt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${xt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${xt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${xt.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,[`& .${xt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${xt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Qt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${xt.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:{[`& .${xt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${xt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${xt.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(Qt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${xt.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}`)},[`&.${xt.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(Qt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${xt.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]}`,[`&.${xt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${xt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${xt.avatar}`]:{marginLeft:4},[`& .${xt.avatarSmall}`]:{marginLeft:2},[`& .${xt.icon}`]:{marginLeft:4},[`& .${xt.iconSmall}`]:{marginLeft:2},[`& .${xt.deleteIcon}`]:{marginRight:5},[`& .${xt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Qt()).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)}`,[`&.${xt.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${xt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${xt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),uN=U("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${de(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 nw(e){return e.key==="Backspace"||e.key==="Delete"}const ba=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiChip"}),{avatar:s,className:i,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:g,onClick:h,onDelete:b,onKeyDown:m,onKeyUp:y,size:C="medium",variant:S="filled",tabIndex:x,skipFocusWhenDisabled:E=!1,slots:P={},slotProps:M={},...D}=r,O=f.useRef(null),k=tt(O,n),I=q=>{q.stopPropagation(),b(q)},F=q=>{q.currentTarget===q.target&&nw(q)&&q.preventDefault(),m&&m(q)},T=q=>{q.currentTarget===q.target&&b&&nw(q)&&b(q),y&&y(q)},R=a!==!1&&h?!0:a,A=R||b?Jo:c||"div",L={...r,component:A,disabled:d,size:C,color:l,iconColor:f.isValidElement(p)&&p.props.color||l,onDelete:!!b,clickable:R,variant:S},N=lN(L),_=A===Jo?{component:c||"div",focusVisibleClassName:N.focusVisible,...b&&{disableRipple:!0}}:{};let H=null;b&&(H=u&&f.isValidElement(u)?f.cloneElement(u,{className:se(u.props.className,N.deleteIcon),onClick:I}):v.jsx(iN,{className:N.deleteIcon,onClick:I}));let B=null;s&&f.isValidElement(s)&&(B=f.cloneElement(s,{className:se(N.avatar,s.props.className)}));let $=null;p&&f.isValidElement(p)&&($=f.cloneElement(p,{className:se(N.icon,p.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 V={slots:P,slotProps:M},[z,j]=Ae("root",{elementType:cN,externalForwardedProps:{...V,...D},ownerState:L,shouldForwardComponentProp:!0,ref:k,className:se(N.root,i),additionalProps:{disabled:R&&d?!0:void 0,tabIndex:E&&d?-1:x,..._},getSlotProps:q=>({...q,onClick:Y=>{q.onClick?.(Y),h?.(Y)},onKeyDown:Y=>{q.onKeyDown?.(Y),F(Y)},onKeyUp:Y=>{q.onKeyUp?.(Y),T(Y)}})}),[G,Q]=Ae("label",{elementType:uN,externalForwardedProps:V,ownerState:L,className:N.label});return v.jsxs(z,{as:A,...j,children:[B||$,v.jsx(G,{...Q,children:g}),H]})});process.env.NODE_ENV!=="production"&&(ba.propTypes={avatar:o.element,children:Qh,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 Cd(e){return parseInt(e,10)||0}const dN={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function pN(e){for(const t in e)return!1;return!0}function ow(e){return pN(e)||e.outerHeightStyle===0&&!e.overflowing}const wg=f.forwardRef(function(t,n){const{onChange:r,maxRows:s,minRows:i=1,style:a,value:l,...c}=t,{current:u}=f.useRef(l!=null),d=f.useRef(null),p=tt(n,d),g=f.useRef(null),h=f.useRef(null),b=f.useCallback(()=>{const x=d.current,E=h.current;if(!x||!E)return;const M=dr(x).getComputedStyle(x);if(M.width==="0px")return{outerHeightStyle:0,overflowing:!1};E.style.width=M.width,E.value=x.value||t.placeholder||"x",E.value.slice(-1)===`
181
+ `&&(E.value+=" ");const D=M.boxSizing,O=Cd(M.paddingBottom)+Cd(M.paddingTop),k=Cd(M.borderBottomWidth)+Cd(M.borderTopWidth),I=E.scrollHeight;E.value="x";const F=E.scrollHeight;let T=I;i&&(T=Math.max(Number(i)*F,T)),s&&(T=Math.min(Number(s)*F,T)),T=Math.max(T,F);const R=T+(D==="border-box"?O+k:0),A=Math.abs(T-I)<=1;return{outerHeightStyle:R,overflowing:A}},[s,i,t.placeholder]),m=fe(()=>{const x=d.current,E=b();if(!x||!E||ow(E))return!1;const P=E.outerHeightStyle;return g.current!=null&&g.current!==P}),y=f.useCallback(()=>{const x=d.current,E=b();if(!x||!E||ow(E))return;const P=E.outerHeightStyle;g.current!==P&&(g.current=P,x.style.height=`${P}px`),x.style.overflow=E.overflowing?"hidden":""},[b]),C=f.useRef(-1);it(()=>{const x=ur(y),E=d?.current;if(!E)return;const P=dr(E);P.addEventListener("resize",x);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(()=>{m()&&(M.unobserve(E),cancelAnimationFrame(C.current),y(),C.current=requestAnimationFrame(()=>{M.observe(E)}))}),M.observe(E)),()=>{x.clear(),cancelAnimationFrame(C.current),P.removeEventListener("resize",x),M&&M.disconnect()}},[b,y,m]),it(()=>{y()});const S=x=>{u||y();const E=x.target,P=E.value.length,M=E.value.endsWith(`
182
+ `),D=E.selectionStart===P;M&&D&&E.setSelectionRange(P,P),r&&r(x)};return v.jsxs(f.Fragment,{children:[v.jsx("textarea",{value:l,onChange:S,ref:p,rows:i,style:a,...c}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...dN.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(wg.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 Ts({props:e,states:t,muiFormControl:n}){return t.reduce((r,s)=>(r[s]=e[s],n&&typeof e[s]>"u"&&(r[s]=n[s]),r),{})}const nc=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(nc.displayName="FormControlContext");function Vo(){return f.useContext(nc)}function rw(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function wd(e,t=!1){return e&&(rw(e.value)&&e.value!==""||t&&rw(e.defaultValue)&&e.defaultValue!=="")}function fN(e){return e.startAdornment}function hN(e){return ke("MuiInputBase",e)}const _n=Me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var sw;const Sd=(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${de(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},xd=(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]},gN=e=>{const{classes:t,color:n,disabled:r,error:s,endAdornment:i,focused:a,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:g,startAdornment:h,type:b}=e,m={root:["root",`color${de(n)}`,r&&"disabled",s&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",g&&g!=="medium"&&`size${de(g)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",d&&"inputMultiline",g==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return pe(m,hN,t)},Pd=U("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sd})(Ve(({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",[`&.${_n.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%"}}]}))),Ed=U("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xd})(Ve(({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"},s=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] + .${_n.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${_n.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"}}]}})),iw=Xh({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ya=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:i,autoFocus:a,className:l,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:g,disableInjectingGlobalStyles:h,endAdornment:b,error:m,fullWidth:y=!1,id:C,inputComponent:S="input",inputProps:x={},inputRef:E,margin:P,maxRows:M,minRows:D,multiline:O=!1,name:k,onBlur:I,onChange:F,onClick:T,onFocus:R,onKeyDown:A,onKeyUp:L,placeholder:N,readOnly:_,renderSuffix:H,rows:B,size:$,slotProps:V={},slots:z={},startAdornment:j,type:G="text",value:Q,...q}=r,Y=x.value!=null?x.value:Q,{current:K}=f.useRef(Y!=null),J=f.useRef(),X=f.useCallback(ge=>{process.env.NODE_ENV!=="production"&&ge&&ge.nodeName!=="INPUT"&&!ge.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(`
183
+ `))},[]),ee=tt(J,E,x.ref,X),[W,le]=f.useState(!1),oe=Vo();process.env.NODE_ENV!=="production"&&f.useEffect(()=>{if(oe)return oe.registerEffect()},[oe]);const re=Ts({props:r,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});re.focused=oe?oe.focused:W,f.useEffect(()=>{!oe&&g&&W&&(le(!1),I&&I())},[oe,g,W,I]);const ae=oe&&oe.onFilled,ne=oe&&oe.onEmpty,te=f.useCallback(ge=>{wd(ge)?ae&&ae():ne&&ne()},[ae,ne]);it(()=>{K&&te({value:Y})},[Y,te,K]);const ye=ge=>{R&&R(ge),x.onFocus&&x.onFocus(ge),oe&&oe.onFocus?oe.onFocus(ge):le(!0)},ce=ge=>{I&&I(ge),x.onBlur&&x.onBlur(ge),oe&&oe.onBlur?oe.onBlur(ge):le(!1)},Se=(ge,...Te)=>{if(!K){const $e=ge.target||J.current;if($e==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.":Kr(1));te({value:$e.value})}x.onChange&&x.onChange(ge,...Te),F&&F(ge,...Te)};f.useEffect(()=>{te(J.current)},[]);const we=ge=>{J.current&&ge.currentTarget===ge.target&&J.current.focus(),T&&T(ge)};let Be=S,Fe=x;O&&Be==="input"&&(B?(process.env.NODE_ENV!=="production"&&(D||M)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Fe={type:void 0,minRows:B,maxRows:B,...Fe}):Fe={type:void 0,maxRows:M,minRows:D,...Fe},Be=wg);const Ye=ge=>{te(ge.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};f.useEffect(()=>{oe&&oe.setAdornedStart(!!j)},[oe,j]);const Ne={...r,color:re.color||"primary",disabled:re.disabled,endAdornment:b,error:re.error,focused:re.focused,formControl:oe,fullWidth:y,hiddenLabel:re.hiddenLabel,multiline:O,size:re.size,startAdornment:j,type:G},Ke=gN(Ne),He=z.root||u.Root||Pd,me=V.root||d.root||{},Pe=z.input||u.Input||Ed;return Fe={...Fe,...V.input??d.input},v.jsxs(f.Fragment,{children:[!h&&typeof iw=="function"&&(sw||(sw=v.jsx(iw,{}))),v.jsxs(He,{...me,ref:n,onClick:we,...q,...!da(He)&&{ownerState:{...Ne,...me.ownerState}},className:se(Ke.root,me.className,l,_&&"MuiInputBase-readOnly"),children:[j,v.jsx(nc.Provider,{value:null,children:v.jsx(Pe,{"aria-invalid":re.error,"aria-describedby":s,autoComplete:i,autoFocus:a,defaultValue:p,disabled:re.disabled,id:C,onAnimationStart:Ye,name:k,placeholder:N,readOnly:_,required:re.required,rows:B,value:Y,onKeyDown:A,onKeyUp:L,type:G,...Fe,...!da(Pe)&&{as:Be,ownerState:{...Ne,...Fe.ownerState}},ref:ee,className:se(Ke.input,Fe.className,_&&"MuiInputBase-readOnly"),onBlur:ce,onChange:Se,onFocus:ye})}),b,H?H({...re,startAdornment:j}):null]})]})});process.env.NODE_ENV!=="production"&&(ya.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:Wl,inputProps:o.object,inputRef:Ft,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 mN(e){return ke("MuiInput",e)}const Is={..._n,...Me("MuiInput",["root","underline","input"])};function bN(e){return ke("MuiOutlinedInput",e)}const rr={..._n,...Me("MuiOutlinedInput",["root","notchedOutline","input"])};function yN(e){return ke("MuiFilledInput",e)}const _o={..._n,...Me("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},aw=gt(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function vN(e){return ke("MuiAutocomplete",e)}const yt=Me("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 lw,cw;const CN=e=>{const{classes:t,disablePortal:n,expanded:r,focused:s,fullWidth:i,hasClearIcon:a,hasPopupIcon:l,inputFocused:c,popupOpen:u,size:d}=e,p={root:["root",r&&"expanded",s&&"focused",i&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${de(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 pe(p,vN,t)},wN=U("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:i,inputFocused:a,size:l}=n;return[{[`& .${yt.tag}`]:t.tag},{[`& .${yt.tag}`]:t[`tagSize${de(l)}`]},{[`& .${yt.inputRoot}`]:t.inputRoot},{[`& .${yt.input}`]:t.input},{[`& .${yt.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,s&&t.hasClearIcon]}})({[`&.${yt.focused} .${yt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${yt.clearIndicator}`]:{visibility:"visible"}},[`& .${yt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${yt.inputRoot}`]:{[`.${yt.hasPopupIcon}&, .${yt.hasClearIcon}&`]:{paddingRight:30},[`.${yt.hasPopupIcon}.${yt.hasClearIcon}&`]:{paddingRight:56},[`& .${yt.input}`]:{width:0,minWidth:30}},[`& .${Is.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Is.root}.${_n.sizeSmall}`]:{[`& .${Is.input}`]:{padding:"2px 4px 3px 0"}},[`& .${rr.root}`]:{padding:9,[`.${yt.hasPopupIcon}&, .${yt.hasClearIcon}&`]:{paddingRight:39},[`.${yt.hasPopupIcon}.${yt.hasClearIcon}&`]:{paddingRight:65},[`& .${yt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${yt.endAdornment}`]:{right:9}},[`& .${rr.root}.${_n.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${yt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${_o.root}`]:{paddingTop:19,paddingLeft:8,[`.${yt.hasPopupIcon}&, .${yt.hasClearIcon}&`]:{paddingRight:39},[`.${yt.hasPopupIcon}.${yt.hasClearIcon}&`]:{paddingRight:65},[`& .${_o.input}`]:{padding:"7px 4px"},[`& .${yt.endAdornment}`]:{right:9}},[`& .${_o.root}.${_n.sizeSmall}`]:{paddingBottom:1,[`& .${_o.input}`]:{padding:"2.5px 4px"}},[`& .${_n.hiddenLabel}`]:{paddingTop:8},[`& .${_o.root}.${_n.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${yt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${_o.root}.${_n.hiddenLabel}.${_n.sizeSmall}`]:{[`& .${yt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${yt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${yt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${yt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${yt.inputRoot}`]:{flexWrap:"wrap"}}}]}),SN=U("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),xN=U(En,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),PN=U(En,{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)"}}]}),EN=U(ai,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${yt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Ve(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),TN=U(pr,{name:"MuiAutocomplete",slot:"Paper"})(Ve(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),IN=U("div",{name:"MuiAutocomplete",slot:"Loading"})(Ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),MN=U("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),ON=U("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Ve(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${yt.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"},[`&.${yt.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"},[`&.${yt.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),[`&.${yt.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}},[`&.${yt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),kN=U(tc,{name:"MuiAutocomplete",slot:"GroupLabel"})(Ve(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),DN=U("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${yt.option}`]:{paddingLeft:24}}),Sg=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:l=!1,ChipProps:c,className:u,clearIcon:d=lw||(lw=v.jsx(OC,{fontSize:"small"})),clearOnBlur:p=!r.freeSolo,clearOnEscape:g=!1,clearText:h="Clear",closeText:b="Close",componentsProps:m,defaultValue:y=r.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:S=!1,disabled:x=!1,disabledItemsFocusable:E=!1,disableListWrap:P=!1,disablePortal:M=!1,filterOptions:D,filterSelectedOptions:O=!1,forcePopupIcon:k="auto",freeSolo:I=!1,fullWidth:F=!1,getLimitTagsText:T=$t=>`+${$t}`,getOptionDisabled:R,getOptionKey:A,getOptionLabel:L,isOptionEqualToValue:N,groupBy:_,handleHomeEndKeys:H=!r.freeSolo,id:B,includeInputInList:$=!1,inputValue:V,limitTags:z=-1,ListboxComponent:j,ListboxProps:G,loading:Q=!1,loadingText:q="Loading…",multiple:Y=!1,noOptionsText:K="No options",onChange:J,onClose:X,onHighlightChange:ee,onInputChange:W,onOpen:le,open:oe,openOnFocus:re=!1,openText:ae="Open",options:ne,PaperComponent:te,PopperComponent:ye,popupIcon:ce=cw||(cw=v.jsx(aw,{})),readOnly:Se=!1,renderGroup:we,renderInput:Be,renderOption:Fe,renderTags:Ye,renderValue:Ne,selectOnFocus:Ke=!r.freeSolo,size:He="medium",slots:me={},slotProps:Pe={},value:ge,...Te}=r,{getRootProps:$e,getInputProps:Ge,getInputLabelProps:ot,getPopupIndicatorProps:Tt,getClearProps:We,getItemProps:Oe,getListboxProps:Ue,getOptionProps:ut,value:zt,dirty:Et,expanded:zn,id:wn,popupOpen:jn,focused:Gn,focusedItem:_e,anchorEl:Ct,setAnchorEl:Re,inputValue:Ze,groupedOptions:bt}=zF({...r,componentName:"Autocomplete"}),wt=!C&&!x&&Et&&!Se,Jt=(!I||k===!0)&&k!==!1,{onMouseDown:so}=Ge(),{ref:Co,...rt}=Ue(),Kt=L||($t=>$t.label??$t),It={...r,disablePortal:M,expanded:zn,focused:Gn,fullWidth:F,getOptionLabel:Kt,hasClearIcon:wt,hasPopupIcon:Jt,inputFocused:_e===-1,popupOpen:jn,size:He},en=CN(It),ko={slots:{paper:te,popper:ye,...me},slotProps:{chip:c,listbox:G,...m,...Pe}},[Yi,ms]=Ae("listbox",{elementType:ON,externalForwardedProps:ko,ownerState:It,className:en.listbox,additionalProps:rt,ref:Co}),[Ki,Ce]=Ae("paper",{elementType:pr,externalForwardedProps:ko,ownerState:It,className:en.paper}),[be,Le]=Ae("popper",{elementType:ai,externalForwardedProps:ko,ownerState:It,className:en.popper,additionalProps:{disablePortal:M,style:{width:Ct?Ct.clientWidth:null},role:"presentation",anchorEl:Ct,open:jn}});let st;const dt=$t=>({className:en.tag,disabled:x,...Oe($t)});if(Y?zt.length>0&&(Ye?st=Ye(zt,dt,It):Ne?st=Ne(zt,dt,It):st=zt.map(($t,Ys)=>{const{key:Ks,...Iu}=dt({index:Ys});return v.jsx(ba,{label:Kt($t),size:He,...Iu,...ko.slotProps.chip},Ks)})):Ne&&zt!=null&&(st=Ne(zt,dt,It)),z>-1&&Array.isArray(st)){const $t=st.length-z;!Gn&&$t>0&&(st=st.splice(0,z),st.push(v.jsx("span",{className:en.tag,children:T($t)},st.length)))}const Rn=we||($t=>v.jsxs("li",{children:[v.jsx(kN,{className:en.groupLabel,ownerState:It,component:"div",children:$t.group}),v.jsx(DN,{className:en.groupUl,ownerState:It,children:$t.children})]},$t.key)),Sl=Fe||(($t,Ys)=>{const{key:Ks,...Iu}=$t;return v.jsx("li",{...Iu,children:Kt(Ys)},Ks)}),Tk=($t,Ys)=>{const Ks=ut({option:$t,index:Ys});return Sl({...Ks,className:en.option},$t,{selected:Ks["aria-selected"],index:Ys,inputValue:Ze},It)},Ik=ko.slotProps.clearIndicator,Mk=ko.slotProps.popupIndicator;return v.jsxs(f.Fragment,{children:[v.jsx(wN,{ref:n,className:se(en.root,u),ownerState:It,...$e(Te),children:Be({id:wn,disabled:x,fullWidth:r.fullWidth??!0,size:He==="small"?"small":void 0,InputLabelProps:ot(),InputProps:{ref:Re,className:en.inputRoot,startAdornment:st,onMouseDown:$t=>{$t.target===$t.currentTarget&&so($t)},...(wt||Jt)&&{endAdornment:v.jsxs(SN,{className:en.endAdornment,ownerState:It,children:[wt?v.jsx(xN,{...We(),"aria-label":h,title:h,ownerState:It,...Ik,className:se(en.clearIndicator,Ik?.className),children:d}):null,Jt?v.jsx(PN,{...Tt(),disabled:x,"aria-label":jn?b:ae,title:jn?b:ae,ownerState:It,...Mk,className:se(en.popupIndicator,Mk?.className),children:ce}):null]})}},inputProps:{className:en.input,disabled:x,readOnly:Se,...Ge()}})}),Ct?v.jsx(EN,{as:be,...Le,children:v.jsxs(TN,{as:Ki,...Ce,children:[Q&&bt.length===0?v.jsx(IN,{className:en.loading,ownerState:It,children:q}):null,bt.length===0&&!I&&!Q?v.jsx(MN,{className:en.noOptions,ownerState:It,role:"presentation",onMouseDown:$t=>{$t.preventDefault()},children:K}):null,bt.length>0?v.jsx(Yi,{as:j,...ms,children:bt.map(($t,Ys)=>_?Rn({key:$t.key,group:$t.group,children:$t.options.map((Ks,Iu)=>Tk(Ks,$t.index+Iu))}):Tk($t,Ys))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(Sg.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:Ro(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(`
184
+ `)):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:pa,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:Ro(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(`
185
+ `)):null)});const FN=gt(v.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 NN(e){return ke("MuiAvatar",e)}Me("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const RN=e=>{const{classes:t,variant:n,colorDefault:r}=e;return pe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},NN,t)},LN=U("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ve(({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]})}}}]}))),$N=U("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),AN=U(FN,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function VN({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[s,i]=f.useState(!1);return f.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const l=new Image;return l.onload=()=>{a&&i("loaded")},l.onerror=()=>{a&&i("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{a=!1}},[e,t,n,r]),s}const Td=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiAvatar"}),{alt:s,children:i,className:a,component:l="div",slots:c={},slotProps:u={},imgProps:d,sizes:p,src:g,srcSet:h,variant:b="circular",...m}=r;let y=null;const C={...r,component:l,variant:b},S=VN({...d,...typeof u.img=="function"?u.img(C):u.img,src:g,srcSet:h}),x=g||h,E=x&&S!=="error";C.colorDefault=!E,delete C.ownerState;const P=RN(C),[M,D]=Ae("root",{ref:n,className:se(P.root,a),elementType:LN,externalForwardedProps:{slots:c,slotProps:u,component:l,...m},ownerState:C}),[O,k]=Ae("img",{className:P.img,elementType:$N,externalForwardedProps:{slots:c,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:s,src:g,srcSet:h,sizes:p},ownerState:C}),[I,F]=Ae("fallback",{className:P.fallback,elementType:AN,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:C});return E?y=v.jsx(O,{...k}):i||i===0?y=i:x&&s?y=s[0]:y=v.jsx(I,{...F}),v.jsx(M,{...D,children:y})});process.env.NODE_ENV!=="production"&&(Td.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 _N(e){const{prototype:t={}}=e;return!!t.isReactComponent}function uw(e,t,n,r,s){const i=e[t],a=s||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!_N(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` 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 li=Ro(o.element,uw);li.isRequired=Ro(o.element.isRequired,uw);const BN={entering:{opacity:1},entered:{opacity:1}},es=f.forwardRef(function(t,n){const r=io(),s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:g,onExit:h,onExited:b,onExiting:m,style:y,timeout:C=s,TransitionComponent:S=Lo,...x}=t,E=f.useRef(null),P=tt(E,ii(l),n),M=A=>L=>{if(A){const N=E.current;L===void 0?A(N):A(N,L)}},D=M(g),O=M((A,L)=>{CC(A);const N=ua({style:y,timeout:C,easing:c},{mode:"enter"});A.style.webkitTransition=r.transitions.create("opacity",N),A.style.transition=r.transitions.create("opacity",N),d&&d(A,L)}),k=M(p),I=M(m),F=M(A=>{const L=ua({style:y,timeout:C,easing:c},{mode:"exit"});A.style.webkitTransition=r.transitions.create("opacity",L),A.style.transition=r.transitions.create("opacity",L),h&&h(A)}),T=M(b),R=A=>{i&&i(E.current,A)};return v.jsx(S,{appear:a,in:u,nodeRef:E,onEnter:O,onEntered:k,onEntering:D,onExit:F,onExited:T,onExiting:I,addEndListener:R,timeout:C,...x,children:(A,{ownerState:L,...N})=>f.cloneElement(l,{style:{opacity:0,visibility:A==="exited"&&!u?"hidden":void 0,...BN[A],...y,...l.props.style},ref:P,...N})})});process.env.NODE_ENV!=="production"&&(es.propTypes={addEndListener:o.func,appear:o.bool,children:li.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 HN(e){return ke("MuiBackdrop",e)}Me("MuiBackdrop",["root","invisible"]);const zN=e=>{const{classes:t,invisible:n}=e;return pe({root:["root",n&&"invisible"]},HN,t)},jN=U("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"}}]}),xg=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiBackdrop"}),{children:s,className:i,component:a="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:p={},slots:g={},TransitionComponent:h,transitionDuration:b,...m}=r,y={...r,component:a,invisible:l},C=zN(y),S={transition:h,root:u.Root,...g},x={...d,...p},E={component:a,slots:S,slotProps:x},[P,M]=Ae("root",{elementType:jN,externalForwardedProps:E,className:se(C.root,i),ownerState:y}),[D,O]=Ae("transition",{elementType:es,externalForwardedProps:E,ownerState:y});return v.jsx(D,{in:c,timeout:b,...m,...O,children:v.jsx(P,{"aria-hidden":!0,...M,ref:n,children:s})})});process.env.NODE_ENV!=="production"&&(xg.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 GN(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:s=!1}=e,i=dg({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!s&&(a=!0);const{badgeContent:l,max:c=r}=a?i:e,u=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:a,max:c,displayValue:u}}function WN(e){return ke("MuiBadge",e)}const UN=Me("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"]),Pg=10,Eg=4,qN=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:s,variant:i,classes:a={}}=e,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${de(n.vertical)}${de(n.horizontal)}`,`anchorOrigin${de(n.vertical)}${de(n.horizontal)}${de(s)}`,`overlap${de(s)}`,t!=="default"&&`color${de(t)}`]};return pe(l,WN,a)},YN=U("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),KN=U("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${de(n.anchorOrigin.vertical)}${de(n.anchorOrigin.horizontal)}${de(n.overlap)}`],n.color!=="default"&&t[`color${de(n.color)}`],n.invisible&&t.invisible]}})(Ve(({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:Pg*2,lineHeight:1,padding:"0 6px",height:Pg*2,borderRadius:Pg,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Qt(["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:Eg,height:Eg*2,minWidth:Eg*2,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:t})=>{const{vertical:n,horizontal:r}=t.anchorOrigin,s=t.overlap==="circular"?"14%":0;return{"--Badge-translateX":r==="right"?"50%":"-50%","--Badge-translateY":n==="top"?"-50%":"50%",top:n==="top"?s:"initial",bottom:n==="bottom"?s:"initial",right:r==="right"?s:"initial",left:r==="left"?s:"initial",transform:"scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",transformOrigin:`${r==="right"?"100%":"0%"} ${n==="top"?"0%":"100%"}`,[`&.${UN.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function dw(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const pw=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiBadge"}),{anchorOrigin:s,className:i,classes:a,component:l,components:c={},componentsProps:u={},children:d,overlap:p="rectangular",color:g="default",invisible:h=!1,max:b=99,badgeContent:m,slots:y,slotProps:C,showZero:S=!1,variant:x="standard",...E}=r,{badgeContent:P,invisible:M,max:D,displayValue:O}=GN({max:b,invisible:h,badgeContent:m,showZero:S}),k=dg({anchorOrigin:dw(s),color:g,overlap:p,variant:x,badgeContent:m}),I=M||P==null&&x!=="dot",{color:F=g,overlap:T=p,anchorOrigin:R,variant:A=x}=I?k:r,L=dw(R),N=A!=="dot"?O:void 0,_={...r,badgeContent:P,invisible:I,max:D,displayValue:N,showZero:S,anchorOrigin:L,color:F,overlap:T,variant:A},H=qN(_),B={slots:{root:y?.root??c.Root,badge:y?.badge??c.Badge},slotProps:{root:C?.root??u.root,badge:C?.badge??u.badge}},[$,V]=Ae("root",{elementType:YN,externalForwardedProps:{...B,...E},ownerState:_,className:se(H.root,i),ref:n,additionalProps:{as:l}}),[z,j]=Ae("badge",{elementType:KN,externalForwardedProps:B,ownerState:_,className:H.badge});return v.jsxs($,{...V,children:[d,v.jsx(z,{...j,children:N})]})});process.env.NODE_ENV!=="production"&&(pw.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 XN=Me("MuiBox",["root"]),ZN=Js(),An=V5({themeId:qo,defaultTheme:ZN,defaultClassName:XN.root,generateClassName:xv.generate});process.env.NODE_ENV!=="production"&&(An.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 QN(e){return ke("MuiButton",e)}const ci=Me("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"]),fw=f.createContext({});process.env.NODE_ENV!=="production"&&(fw.displayName="ButtonGroupContext");const hw=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(hw.displayName="ButtonGroupButtonContext");const JN=e=>{const{color:t,disableElevation:n,fullWidth:r,size:s,variant:i,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",i,`${i}${de(t)}`,`size${de(s)}`,`${i}Size${de(s)}`,`color${de(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${de(l)}`],startIcon:["icon","startIcon",`iconSize${de(s)}`],endIcon:["icon","endIcon",`iconSize${de(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=pe(u,QN,c);return{...c,...d}},gw=[{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}}}],eR=U(Jo,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${de(n.color)}`],t[`size${de(n.size)}`],t[`${n.variant}Size${de(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ve(({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"},[`&.${ci.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]},[`&.${ci.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ci.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)",[`&.${ci.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(Qt()).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"},[`&.${ci.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ci.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}),[`&.${ci.loading}`]:{color:"transparent"}}}]}})),tR=U("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${de(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}},...gw]})),nR=U("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${de(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}},...gw]})),oR=U("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}}]})),mw=U("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Vn=f.forwardRef(function(t,n){const r=f.useContext(fw),s=f.useContext(hw),i=Zs(r,t),a=qe({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:g=!1,disableFocusRipple:h=!1,endIcon:b,focusVisibleClassName:m,fullWidth:y=!1,id:C,loading:S=null,loadingIndicator:x,loadingPosition:E="center",size:P="medium",startIcon:M,type:D,variant:O="text",...k}=a,I=at(C),F=x??v.jsx(oi,{"aria-labelledby":I,color:"inherit",size:16}),T={...a,color:c,component:u,disabled:p,disableElevation:g,disableFocusRipple:h,fullWidth:y,loading:S,loadingIndicator:F,loadingPosition:E,size:P,type:D,variant:O},R=JN(T),A=(M||S&&E==="start")&&v.jsx(tR,{className:R.startIcon,ownerState:T,children:M||v.jsx(mw,{className:R.loadingIconPlaceholder,ownerState:T})}),L=(b||S&&E==="end")&&v.jsx(nR,{className:R.endIcon,ownerState:T,children:b||v.jsx(mw,{className:R.loadingIconPlaceholder,ownerState:T})}),N=s||"",_=typeof S=="boolean"?v.jsx("span",{className:R.loadingWrapper,style:{display:"contents"},children:S&&v.jsx(oR,{className:R.loadingIndicator,ownerState:T,children:F})}):null;return v.jsxs(eR,{ownerState:T,className:se(r.className,R.root,d,N),component:u,disabled:p||S,focusRipple:!h,focusVisibleClassName:se(R.focusVisible,m),ref:n,type:D,id:S?I:C,...k,classes:R,children:[A,E!=="end"&&_,l,E==="end"&&_,L]})});process.env.NODE_ENV!=="production"&&(Vn.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 rR(e){return ke("MuiCard",e)}Me("MuiCard",["root"]);const sR=e=>{const{classes:t}=e;return pe({root:["root"]},rR,t)},iR=U(pr,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),bw=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCard"}),{className:s,raised:i=!1,...a}=r,l={...r,raised:i},c=sR(l);return v.jsx(iR,{className:se(c.root,s),elevation:i?8:void 0,ref:n,ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(bw.propTypes={children:o.node,classes:o.object,className:o.string,raised:Ro(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function aR(e){return ke("MuiCardContent",e)}Me("MuiCardContent",["root"]);const lR=e=>{const{classes:t}=e;return pe({root:["root"]},aR,t)},cR=U("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),yw=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCardContent"}),{className:s,component:i="div",...a}=r,l={...r,component:i},c=lR(l);return v.jsx(cR,{as:i,className:se(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(yw.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function uR(e){return ke("MuiCardHeader",e)}const Id=Me("MuiCardHeader",["root","avatar","action","content","title","subheader"]),dR=e=>{const{classes:t}=e;return pe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},uR,t)},pR=U("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Id.title}`]:t.title},{[`& .${Id.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),fR=U("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),hR=U("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),gR=U("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${fd.root}:where(& .${Id.title}), .${fd.root}:where(& .${Id.subheader})`]:{display:"block"}}),vw=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCardHeader"}),{action:s,avatar:i,component:a="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:p,slots:g={},slotProps:h={},...b}=r,m={...r,component:a,disableTypography:l},y=dR(m),C={slots:g,slotProps:{title:p,subheader:u,...h}};let S=d;const[x,E]=Ae("title",{className:y.title,elementType:kt,externalForwardedProps:C,ownerState:m,additionalProps:{variant:i?"body2":"h5",component:"span"}});S!=null&&S.type!==kt&&!l&&(S=v.jsx(x,{...E,children:S}));let P=c;const[M,D]=Ae("subheader",{className:y.subheader,elementType:kt,externalForwardedProps:C,ownerState:m,additionalProps:{variant:i?"body2":"body1",color:"textSecondary",component:"span"}});P!=null&&P.type!==kt&&!l&&(P=v.jsx(M,{...D,children:P}));const[O,k]=Ae("root",{ref:n,className:y.root,elementType:pR,externalForwardedProps:{...C,...b,component:a},ownerState:m}),[I,F]=Ae("avatar",{className:y.avatar,elementType:fR,externalForwardedProps:C,ownerState:m}),[T,R]=Ae("content",{className:y.content,elementType:gR,externalForwardedProps:C,ownerState:m}),[A,L]=Ae("action",{className:y.action,elementType:hR,externalForwardedProps:C,ownerState:m});return v.jsxs(O,{...k,children:[i&&v.jsx(I,{...F,children:i}),v.jsxs(T,{...R,children:[S,P]}),s&&v.jsx(A,{...L,children:s})]})});process.env.NODE_ENV!=="production"&&(vw.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 mR(e){return ke("PrivateSwitchBase",e)}Me("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bR=e=>{const{classes:t,checked:n,disabled:r,edge:s}=e,i={root:["root",n&&"checked",r&&"disabled",s&&`edge${de(s)}`],input:["input"]};return pe(i,mR,t)},yR=U(Jo,{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}}]}),vR=U("input",{name:"MuiSwitchBase",shouldForwardProp:Xn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Md=f.forwardRef(function(t,n){const{autoFocus:r,checked:s,checkedIcon:i,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:g,inputRef:h,name:b,onBlur:m,onChange:y,onFocus:C,readOnly:S,required:x=!1,tabIndex:E,type:P,value:M,slots:D={},slotProps:O={},...k}=t,[I,F]=ao({controlled:s,default:!!a,name:"SwitchBase",state:"checked"}),T=Vo(),R=Q=>{C&&C(Q),T&&T.onFocus&&T.onFocus(Q)},A=Q=>{m&&m(Q),T&&T.onBlur&&T.onBlur(Q)},L=Q=>{if(Q.nativeEvent.defaultPrevented||S)return;const q=Q.target.checked;F(q),y&&y(Q,q)};let N=l;T&&typeof N>"u"&&(N=T.disabled);const _=P==="checkbox"||P==="radio",H={...t,checked:I,disabled:N,disableFocusRipple:c,edge:u},B=bR(H),$={slots:D,slotProps:{input:g,...O}},[V,z]=Ae("root",{ref:n,elementType:yR,className:B.root,shouldForwardComponentProp:!0,externalForwardedProps:{...$,component:"span",...k},getSlotProps:Q=>({...Q,onFocus:q=>{Q.onFocus?.(q),R(q)},onBlur:q=>{Q.onBlur?.(q),A(q)}}),ownerState:H,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[j,G]=Ae("input",{ref:h,elementType:vR,className:B.input,externalForwardedProps:$,getSlotProps:Q=>({...Q,onChange:q=>{Q.onChange?.(q),L(q)}}),ownerState:H,additionalProps:{autoFocus:r,checked:s,defaultChecked:a,disabled:N,id:_?p:void 0,name:b,readOnly:S,required:x,tabIndex:E,type:P,...P==="checkbox"&&M===void 0?{}:{value:M}}});return v.jsxs(V,{...z,children:[v.jsx(j,{...G}),I?i:d]})});process.env.NODE_ENV!=="production"&&(Md.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:Ft,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 CR=gt(v.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"),wR=gt(v.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"),SR=gt(v.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 xR(e){return ke("MuiCheckbox",e)}const Tg=Me("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),PR=e=>{const{classes:t,indeterminate:n,color:r,size:s}=e,i={root:["root",n&&"indeterminate",`color${de(r)}`,`size${de(s)}`]},a=pe(i,xR,t);return{...t,...a}},ER=U(Md,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${de(n.size)}`],n.color!=="default"&&t[`color${de(n.color)}`]]}})(Ve(({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(Qt()).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(Qt()).map(([t])=>({props:{color:t},style:{[`&.${Tg.checked}, &.${Tg.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Tg.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),TR=v.jsx(wR,{}),IR=v.jsx(CR,{}),MR=v.jsx(SR,{}),va=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCheckbox"}),{checkedIcon:s=TR,color:i="primary",icon:a=IR,indeterminate:l=!1,indeterminateIcon:c=MR,inputProps:u,size:d="medium",disableRipple:p=!1,className:g,slots:h={},slotProps:b={},...m}=r,y=l?c:a,C=l?c:s,S={...r,disableRipple:p,color:i,indeterminate:l,size:d},x=PR(S),E=b.input??u,[P,M]=Ae("root",{ref:n,elementType:ER,className:se(x.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:b,...m},ownerState:S,additionalProps:{type:"checkbox",icon:f.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:f.cloneElement(C,{fontSize:C.props.fontSize??d}),disableRipple:p,slots:h,slotProps:{input:gC(typeof E=="function"?E(S):E,{"data-indeterminate":l})}}});return v.jsx(P,{...M,classes:x})});process.env.NODE_ENV!=="production"&&(va.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 Cw(e){return e.substring(2).toLowerCase()}function OR(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Od(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:s,touchEvent:i="onTouchEnd"}=e,a=f.useRef(!1),l=f.useRef(null),c=f.useRef(!1),u=f.useRef(!1);f.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=tt(ii(t),l),p=fe(b=>{const m=u.current;u.current=!1;const y=Bt(l.current);if(!c.current||!l.current||"clientX"in b&&OR(b,y))return;if(a.current){a.current=!1;return}let C;b.composedPath?C=b.composedPath().includes(l.current):C=!y.documentElement.contains(b.target)||l.current.contains(b.target),!C&&(n||!m)&&s(b)}),g=b=>m=>{u.current=!0;const y=t.props[b];y&&y(m)},h={ref:d};return i!==!1&&(h[i]=g(i)),f.useEffect(()=>{if(i!==!1){const b=Cw(i),m=Bt(l.current),y=()=>{a.current=!0};return m.addEventListener(b,p),m.addEventListener("touchmove",y),()=>{m.removeEventListener(b,p),m.removeEventListener("touchmove",y)}}},[p,i]),r!==!1&&(h[r]=g(r)),f.useEffect(()=>{if(r!==!1){const b=Cw(r),m=Bt(l.current);return m.addEventListener(b,p),()=>{m.removeEventListener(b,p)}}},[p,r]),f.cloneElement(t,h)}process.env.NODE_ENV!=="production"&&(Od.propTypes={children:li.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"&&(Od.propTypes=Bl(Od.propTypes));const Ig=typeof Xh({})=="function",kR=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),DR=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),ww=(e,t=!1)=>{const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([i,a])=>{const l=e.getColorSchemeSelector(i);l.startsWith("@")?n[l]={":root":{colorScheme:a.palette?.mode}}:n[l.replace(/\s*&/,"")]={colorScheme:a.palette?.mode}});let r={html:kR(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...DR(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const s=e.components?.MuiCssBaseline?.styleOverrides;return s&&(r=[r,s]),r},kd="mui-ecs",FR=e=>{const t=ww(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${kd})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,s])=>{const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${kd}))`]:{colorScheme:s.palette?.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${kd}))`]:{colorScheme:s.palette?.mode}}}),t},NR=Xh(Ig?({theme:e,enableColorScheme:t})=>ww(e,t):({theme:e})=>FR(e));function Sw(e){const t=qe({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return v.jsxs(f.Fragment,{children:[Ig&&v.jsx(NR,{enableColorScheme:r}),!Ig&&!r&&v.jsx("span",{className:kd,style:{display:"none"}}),n]})}process.env.NODE_ENV!=="production"&&(Sw.propTypes={children:o.node,enableColorScheme:o.bool});function xw(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function RR(e){const t=Bt(e);return t.body===e?dr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function oc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Pw(e){return parseFloat(dr(e).getComputedStyle(e).paddingRight)||0}function LR(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 Ew(e,t,n,r,s){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!LR(a);l&&c&&oc(a,s)})}function Mg(e,t){let n=-1;return e.some((r,s)=>t(r)?(n=s,!0):!1),n}function $R(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(RR(r)){const a=xw(dr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Pw(r)+a}px`;const l=Bt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Pw(c)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Bt(r).body;else{const a=r.parentElement,l=dr(r);i=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a: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:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function AR(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class VR{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&&oc(t.modalRef,!1);const s=AR(n);Ew(n,t.mount,t.modalRef,s,!0);const i=Mg(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),r)}mount(t,n){const r=Mg(this.containers,i=>i.modals.includes(t)),s=this.containers[r];s.restore||(s.restore=$R(s,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const s=Mg(this.containers,a=>a.modals.includes(t)),i=this.containers[s];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&oc(t.modalRef,n),Ew(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(s,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&oc(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ca(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const _R=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function BR(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 HR(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 zR(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||HR(e))}function jR(e){const t=[],n=[];return Array.from(e.querySelectorAll(_R)).forEach((r,s)=>{const i=BR(r);i===-1||!zR(r)||(i===0?t.push(r):n.push({documentOrder:s,tabIndex:i,node:r}))}),n.sort((r,s)=>r.tabIndex===s.tabIndex?r.documentOrder-s.documentOrder:r.tabIndex-s.tabIndex).map(r=>r.node).concat(t)}function GR(){return!0}function wa(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:s=!1,getTabbable:i=jR,isEnabled:a=GR,open:l}=e,c=f.useRef(!1),u=f.useRef(null),d=f.useRef(null),p=f.useRef(null),g=f.useRef(null),h=f.useRef(!1),b=f.useRef(null),m=tt(ii(t),b),y=f.useRef(null);f.useEffect(()=>{!l||!b.current||(h.current=!n)},[n,l]),f.useEffect(()=>{if(!l||!b.current)return;const x=Bt(b.current),E=Ca(x);return b.current.contains(E)||(b.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(`
186
+ `)),b.current.setAttribute("tabIndex","-1")),h.current&&b.current.focus()),()=>{s||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),f.useEffect(()=>{if(!l||!b.current)return;const x=Bt(b.current),E=D=>{if(y.current=D,r||!a()||D.key!=="Tab")return;Ca(x)===b.current&&D.shiftKey&&(c.current=!0,d.current&&d.current.focus())},P=()=>{const D=b.current;if(D===null)return;const O=Ca(x);if(!x.hasFocus()||!a()||c.current){c.current=!1;return}if(D.contains(O)||r&&O!==u.current&&O!==d.current)return;if(O!==g.current)g.current=null;else if(g.current!==null)return;if(!h.current)return;let k=[];if((O===u.current||O===d.current)&&(k=i(b.current)),k.length>0){const I=!!(y.current?.shiftKey&&y.current?.key==="Tab"),F=k[0],T=k[k.length-1];typeof F!="string"&&typeof T!="string"&&(I?T.focus():F.focus())}else D.focus()};x.addEventListener("focusin",P),x.addEventListener("keydown",E,!0);const M=setInterval(()=>{const D=Ca(x);D&&D.tagName==="BODY"&&P()},50);return()=>{clearInterval(M),x.removeEventListener("focusin",P),x.removeEventListener("keydown",E,!0)}},[n,r,s,a,l,i]);const C=x=>{p.current===null&&(p.current=x.relatedTarget),h.current=!0,g.current=x.target;const E=t.props.onFocus;E&&E(x)},S=x=>{p.current===null&&(p.current=x.relatedTarget),h.current=!0};return v.jsxs(f.Fragment,{children:[v.jsx("div",{tabIndex:l?0:-1,onFocus:S,ref:u,"data-testid":"sentinelStart"}),f.cloneElement(t,{ref:m,onFocus:C}),v.jsx("div",{tabIndex:l?0:-1,onFocus:S,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(wa.propTypes={children:li,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(wa.propTypes=Bl(wa.propTypes));function WR(e){return typeof e=="function"?e():e}function UR(e){return e?e.props.hasOwnProperty("in"):!1}const Tw=()=>{},Dd=new VR;function qR(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,p=f.useRef({}),g=f.useRef(null),h=f.useRef(null),b=tt(h,d),[m,y]=f.useState(!u),C=UR(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const x=()=>Bt(g.current),E=()=>(p.current.modalRef=h.current,p.current.mount=g.current,p.current),P=()=>{Dd.mount(E(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},M=fe(()=>{const L=WR(t)||x().body;Dd.add(E(),L),h.current&&P()}),D=()=>Dd.isTopModal(E()),O=fe(L=>{g.current=L,L&&(u&&D()?P():h.current&&oc(h.current,S))}),k=f.useCallback(()=>{Dd.remove(E(),S)},[S]);f.useEffect(()=>()=>{k()},[k]),f.useEffect(()=>{u?M():(!C||!s)&&k()},[u,k,C,s,M]);const I=L=>N=>{L.onKeyDown?.(N),!(N.key!=="Escape"||N.which===229||!D())&&(n||(N.stopPropagation(),c&&c(N,"escapeKeyDown")))},F=L=>N=>{L.onClick?.(N),N.target===N.currentTarget&&c&&c(N,"backdropClick")};return{getRootProps:(L={})=>{const N=$o(e);delete N.onTransitionEnter,delete N.onTransitionExited;const _={...N,...L};return{role:"presentation",..._,onKeyDown:I(_),ref:b}},getBackdropProps:(L={})=>{const N=L;return{"aria-hidden":!0,...N,onClick:F(N),open:u}},getTransitionProps:()=>{const L=()=>{y(!1),i&&i()},N=()=>{y(!0),a&&a(),s&&k()};return{onEnter:Kh(L,l?.props.onEnter??Tw),onExited:Kh(N,l?.props.onExited??Tw)}},rootRef:b,portalRef:O,isTopModal:D,exited:m,hasTransition:C}}function YR(e){return ke("MuiModal",e)}Me("MuiModal",["root","hidden","backdrop"]);const KR=e=>{const{open:t,exited:n,classes:r}=e;return pe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},YR,r)},XR=U("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ve(({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"}}]}))),ZR=U(xg,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Og=f.forwardRef(function(t,n){const r=qe({name:"MuiModal",props:t}),{BackdropComponent:s=ZR,BackdropProps:i,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:p,components:g={},componentsProps:h={},disableAutoFocus:b=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:y=!1,disablePortal:C=!1,disableRestoreFocus:S=!1,disableScrollLock:x=!1,hideBackdrop:E=!1,keepMounted:P=!1,onClose:M,onTransitionEnter:D,onTransitionExited:O,open:k,slotProps:I={},slots:F={},theme:T,...R}=r,A={...r,closeAfterTransition:c,disableAutoFocus:b,disableEnforceFocus:m,disableEscapeKeyDown:y,disablePortal:C,disableRestoreFocus:S,disableScrollLock:x,hideBackdrop:E,keepMounted:P},{getRootProps:L,getBackdropProps:N,getTransitionProps:_,portalRef:H,isTopModal:B,exited:$,hasTransition:V}=qR({...A,rootRef:n}),z={...A,exited:$},j=KR(z),G={};if(u.props.tabIndex===void 0&&(G.tabIndex="-1"),V){const{onEnter:X,onExited:ee}=_();G.onEnter=X,G.onExited=ee}const Q={slots:{root:g.Root,backdrop:g.Backdrop,...F},slotProps:{...h,...I}},[q,Y]=Ae("root",{ref:n,elementType:XR,externalForwardedProps:{...Q,...R,component:p},getSlotProps:L,ownerState:z,className:se(l,j?.root,!z.open&&z.exited&&j?.hidden)}),[K,J]=Ae("backdrop",{ref:i?.ref,elementType:s,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:X=>N({...X,onClick:ee=>{X?.onClick&&X.onClick(ee)}}),className:se(i?.className,j?.backdrop),ownerState:z});return!P&&!k&&(!V||$)?null:v.jsx(ec,{ref:H,container:d,disablePortal:C,children:v.jsxs(q,{...Y,children:[!E&&s?v.jsx(K,{...J}):null,v.jsx(wa,{disableEnforceFocus:m,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:B,open:k,children:f.cloneElement(u,G)})]})})});process.env.NODE_ENV!=="production"&&(Og.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:li.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([er,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 QR(e){return ke("MuiDialog",e)}const rc=Me("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),kg=f.createContext({});process.env.NODE_ENV!=="production"&&(kg.displayName="DialogContext");const JR=U(xg,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),e9=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:s,fullScreen:i}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${de(n)}`],paper:["paper",`paperScroll${de(n)}`,`paperWidth${de(String(r))}`,s&&"paperFullWidth",i&&"paperFullScreen"]};return pe(a,QR,t)},t9=U(Og,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),n9=U("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${de(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"}}}]}),o9=U(pr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${de(n.scroll)}`],t[`paperWidth${de(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ve(({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)`,[`&.${rc.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}`,[`&.${rc.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,[`&.${rc.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Dg=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDialog"}),s=io(),i={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:p,className:g,disableEscapeKeyDown:h=!1,fullScreen:b=!1,fullWidth:m=!1,maxWidth:y="sm",onClick:C,onClose:S,open:x,PaperComponent:E=pr,PaperProps:P={},scroll:M="paper",slots:D={},slotProps:O={},TransitionComponent:k=es,transitionDuration:I=i,TransitionProps:F,...T}=r,R={...r,disableEscapeKeyDown:h,fullScreen:b,fullWidth:m,maxWidth:y,scroll:M},A=e9(R),L=f.useRef(),N=le=>{L.current=le.target===le.currentTarget},_=le=>{C&&C(le),L.current&&(L.current=null,S&&S(le,"backdropClick"))},H=at(l),B=f.useMemo(()=>({titleId:H}),[H]),$={transition:k,...D},V={transition:F,paper:P,backdrop:d,...O},z={slots:$,slotProps:V},[j,G]=Ae("root",{elementType:t9,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:R,className:se(A.root,g),ref:n}),[Q,q]=Ae("backdrop",{elementType:JR,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:R,className:A.backdrop}),[Y,K]=Ae("paper",{elementType:o9,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:R,className:se(A.paper,P.className)}),[J,X]=Ae("container",{elementType:n9,externalForwardedProps:z,ownerState:R,className:A.container}),[ee,W]=Ae("transition",{elementType:es,externalForwardedProps:z,ownerState:R,additionalProps:{appear:!0,in:x,timeout:I,role:"presentation"}});return v.jsx(j,{closeAfterTransition:!0,slots:{backdrop:Q},slotProps:{backdrop:{transitionDuration:I,as:u,...q}},disableEscapeKeyDown:h,onClose:S,open:x,onClick:_,...G,...T,children:v.jsx(ee,{...W,children:v.jsx(J,{onMouseDown:N,...X,children:v.jsx(Y,{as:E,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":H,"aria-modal":c,...K,children:v.jsx(kg.Provider,{value:B,children:p})})})})})});process.env.NODE_ENV!=="production"&&(Dg.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 r9(e){return ke("MuiDialogActions",e)}Me("MuiDialogActions",["root","spacing"]);const s9=e=>{const{classes:t,disableSpacing:n}=e;return pe({root:["root",!n&&"spacing"]},r9,t)},i9=U("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}}}]}),Fg=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:i=!1,...a}=r,l={...r,disableSpacing:i},c=s9(l);return v.jsx(i9,{className:se(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Fg.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 a9(e){return ke("MuiDialogContent",e)}Me("MuiDialogContent",["root","dividers"]);function l9(e){return ke("MuiDialogTitle",e)}const c9=Me("MuiDialogTitle",["root"]),u9=e=>{const{classes:t,dividers:n}=e;return pe({root:["root",n&&"dividers"]},a9,t)},d9=U("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ve(({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:{[`.${c9.root} + &`]:{paddingTop:0}}}]}))),Fd=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDialogContent"}),{className:s,dividers:i=!1,...a}=r,l={...r,dividers:i},c=u9(l);return v.jsx(d9,{className:se(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Fd.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])});const p9=e=>{const{classes:t}=e;return pe({root:["root"]},l9,t)},f9=U(kt,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Iw=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDialogTitle"}),{className:s,id:i,...a}=r,l=r,c=p9(l),{titleId:u=i}=f.useContext(kg);return v.jsx(f9,{component:"h2",className:se(c.root,s),ownerState:l,ref:n,variant:"h6",id:i??u,...a})});process.env.NODE_ENV!=="production"&&(Iw.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 h9(e){return ke("MuiDivider",e)}const Mw=Me("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),g9=e=>{const{absolute:t,children:n,classes:r,flexItem:s,light:i,orientation:a,textAlign:l,variant:c}=e;return pe({root:["root",t&&"absolute",c,i&&"light",a==="vertical"&&"vertical",s&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},h9,r)},m9=U("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]}})(Ve(({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%"}}}]}))),b9=U("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ve(({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)`}}]}))),sc=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDivider"}),{absolute:s=!1,children:i,className:a,orientation:l="horizontal",component:c=i||l==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:p=c!=="hr"?"separator":void 0,textAlign:g="center",variant:h="fullWidth",...b}=r,m={...r,absolute:s,component:c,flexItem:u,light:d,orientation:l,role:p,textAlign:g,variant:h},y=g9(m);return v.jsx(m9,{as:c,className:se(y.root,a),role:p,ref:n,ownerState:m,"aria-orientation":p==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...b,children:i?v.jsx(b9,{className:y.wrapper,ownerState:m,children:i}):null})});sc&&(sc.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(sc.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])});const y9=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:s,size:i,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",s&&"adornedEnd",i==="small"&&`size${de(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},u=pe(c,yN,t);return{...t,...u}},v9=U(Pd,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Sd(e,t),!n.disableUnderline&&t.underline]}})(Ve(({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)",s=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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${_o.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${_o.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.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"},[`&.${_o.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_o.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(.${_o.disabled}, .${_o.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${_o.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Qt()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),C9=U(Ed,{name:"MuiFilledInput",slot:"Input",overridesResolver:xd})(Ve(({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}}]}))),Nd=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFilledInput"}),{disableUnderline:s=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:g={},type:h="text",...b}=r,m={...r,disableUnderline:s,fullWidth:l,inputComponent:u,multiline:d,type:h},y=y9(r),C={root:{ownerState:m},input:{ownerState:m}},S=p??a?no(C,p??a):C,x=g.root??i.Root??v9,E=g.input??i.Input??C9;return v.jsx(ya,{slots:{root:x,input:E},slotProps:S,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:h,...b,classes:y})});process.env.NODE_ENV!=="production"&&(Nd.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:Ft,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}),Nd.muiName="Input";function w9(e){return ke("MuiFormControl",e)}Me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const S9=e=>{const{classes:t,margin:n,fullWidth:r}=e,s={root:["root",n!=="none"&&`margin${de(n)}`,r&&"fullWidth"]};return pe(s,w9,t)},x9=U("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${de(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%"}}]}),Ms=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFormControl"}),{children:s,className:i,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:g=!1,margin:h="none",required:b=!1,size:m="medium",variant:y="outlined",...C}=r,S={...r,color:a,component:l,disabled:c,error:u,fullWidth:p,hiddenLabel:g,margin:h,required:b,size:m,variant:y},x=S9(S),[E,P]=f.useState(()=>{let N=!1;return s&&f.Children.forEach(s,_=>{if(!sa(_,["Input","Select"]))return;const H=sa(_,["Select"])?_.props.input:_;H&&fN(H.props)&&(N=!0)}),N}),[M,D]=f.useState(()=>{let N=!1;return s&&f.Children.forEach(s,_=>{sa(_,["Input","Select"])&&(wd(_.props,!0)||wd(_.props.inputProps,!0))&&(N=!0)}),N}),[O,k]=f.useState(!1);c&&O&&k(!1);const I=d!==void 0&&!c?d:O;let F;const T=f.useRef(!1);process.env.NODE_ENV!=="production"&&(F=()=>(T.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
187
+ `)),T.current=!0,()=>{T.current=!1}));const R=f.useCallback(()=>{D(!0)},[]),A=f.useCallback(()=>{D(!1)},[]),L=f.useMemo(()=>({adornedStart:E,setAdornedStart:P,color:a,disabled:c,error:u,filled:M,focused:I,fullWidth:p,hiddenLabel:g,size:m,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:A,onFilled:R,registerEffect:F,required:b,variant:y}),[E,a,c,u,M,I,p,g,F,A,R,b,m,y]);return v.jsx(nc.Provider,{value:L,children:v.jsx(x9,{as:l,ownerState:S,className:se(x.root,i),ref:n,...C,children:s})})});process.env.NODE_ENV!=="production"&&(Ms.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 P9(e){return ke("MuiFormControlLabel",e)}const Sa=Me("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),E9=e=>{const{classes:t,disabled:n,labelPlacement:r,error:s,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${de(r)}`,s&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",s&&"error"]};return pe(a,P9,t)},T9=U("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Sa.label}`]:t.label},t.root,t[`labelPlacement${de(n.labelPlacement)}`]]}})(Ve(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Sa.disabled}`]:{cursor:"default"},[`& .${Sa.label}`]:{[`&.${Sa.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}}]}))),I9=U("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Ve(({theme:e})=>({[`&.${Sa.error}`]:{color:(e.vars||e).palette.error.main}}))),ic=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFormControlLabel"}),{checked:s,className:i,componentsProps:a={},control:l,disabled:c,disableTypography:u,inputRef:d,label:p,labelPlacement:g="end",name:h,onChange:b,required:m,slots:y={},slotProps:C={},value:S,...x}=r,E=Vo(),P=c??l.props.disabled??E?.disabled,M=m??l.props.required,D={disabled:P,required:M};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof l.props[L]>"u"&&typeof r[L]<"u"&&(D[L]=r[L])});const O=Ts({props:r,muiFormControl:E,states:["error"]}),k={...r,disabled:P,labelPlacement:g,required:M,error:O.error},I=E9(k),F={slots:y,slotProps:{...a,...C}},[T,R]=Ae("typography",{elementType:kt,externalForwardedProps:F,ownerState:k});let A=p;return A!=null&&A.type!==kt&&!u&&(A=v.jsx(T,{component:"span",...R,className:se(I.label,R?.className),children:A})),v.jsxs(T9,{className:se(I.root,i),ownerState:k,ref:n,...x,children:[f.cloneElement(l,D),M?v.jsxs("div",{children:[A,v.jsxs(I9,{ownerState:k,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}):A]})});process.env.NODE_ENV!=="production"&&(ic.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:Ft,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 M9(e){return ke("MuiFormGroup",e)}Me("MuiFormGroup",["root","row","error"]);const O9=e=>{const{classes:t,row:n,error:r}=e;return pe({root:["root",n&&"row",r&&"error"]},M9,t)},k9=U("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"}}]}),Rd=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFormGroup"}),{className:s,row:i=!1,...a}=r,l=Vo(),c=Ts({props:r,muiFormControl:l,states:["error"]}),u={...r,row:i,error:c.error},d=O9(u);return v.jsx(k9,{className:se(d.root,s),ownerState:u,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Rd.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 D9(e){return ke("MuiFormHelperText",e)}const Ow=Me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var kw;const F9=e=>{const{classes:t,contained:n,size:r,disabled:s,error:i,filled:a,focused:l,required:c}=e,u={root:["root",s&&"disabled",i&&"error",r&&`size${de(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return pe(u,D9,t)},N9=U("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${de(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ow.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ow.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}}]}))),Ng=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFormHelperText"}),{children:s,className:i,component:a="p",disabled:l,error:c,filled:u,focused:d,margin:p,required:g,variant:h,...b}=r,m=Vo(),y=Ts({props:r,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),C={...r,component:a,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 S=F9(C);return v.jsx(N9,{as:a,className:se(S.root,i),ref:n,...b,ownerState:C,children:s===" "?kw||(kw=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});process.env.NODE_ENV!=="production"&&(Ng.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 R9(e){return ke("MuiFormLabel",e)}const ac=Me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),L9=e=>{const{classes:t,color:n,focused:r,disabled:s,error:i,filled:a,required:l}=e,c={root:["root",`color${de(n)}`,s&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return pe(c,R9,t)},$9=U("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ve(({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(Qt()).map(([t])=>({props:{color:t},style:{[`&.${ac.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ac.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ac.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),A9=U("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ve(({theme:e})=>({[`&.${ac.error}`]:{color:(e.vars||e).palette.error.main}}))),Rg=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFormLabel"}),{children:s,className:i,color:a,component:l="label",disabled:c,error:u,filled:d,focused:p,required:g,...h}=r,b=Vo(),m=Ts({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),y={...r,color:m.color||"primary",component:l,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},C=L9(y);return v.jsxs($9,{as:l,ownerState:y,className:se(C.root,i),ref:n,...h,children:[s,m.required&&v.jsxs(A9,{ownerState:y,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Rg.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 ft=Xv({createStyledComponent:U("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>qe({props:e,name:"MuiGrid"}),useTheme:io});if(process.env.NODE_ENV!=="production"&&(ft.propTypes={children:o.node,columns:o.oneOfType([o.arrayOf(o.number),o.number,o.object]),columnSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),container:o.bool,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),offset:o.oneOfType([o.string,o.number,o.arrayOf(o.oneOfType([o.string,o.number])),o.object]),rowSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),size:o.oneOfType([o.string,o.bool,o.number,o.arrayOf(o.oneOfType([o.string,o.bool,o.number])),o.object]),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]),unstable_level:o.number,wrap:o.oneOf(["nowrap","wrap-reverse","wrap"])}),process.env.NODE_ENV!=="production"){const e=ft,t=S4("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function Lg(e){return`scale(${e}, ${e**2})`}const V9={entering:{opacity:1,transform:Lg(1)},entered:{opacity:1,transform:"none"}},$g=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ui=f.forwardRef(function(t,n){const{addEndListener:r,appear:s=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:g,onExiting:h,style:b,timeout:m="auto",TransitionComponent:y=Lo,...C}=t,S=Pn(),x=f.useRef(),E=io(),P=f.useRef(null),M=tt(P,ii(i),n),D=L=>N=>{if(L){const _=P.current;N===void 0?L(_):L(_,N)}},O=D(d),k=D((L,N)=>{CC(L);const{duration:_,delay:H,easing:B}=ua({style:b,timeout:m,easing:a},{mode:"enter"});let $;m==="auto"?($=E.transitions.getAutoHeightDuration(L.clientHeight),x.current=$):$=_,L.style.transition=[E.transitions.create("opacity",{duration:$,delay:H}),E.transitions.create("transform",{duration:$g?$:$*.666,delay:H,easing:B})].join(","),c&&c(L,N)}),I=D(u),F=D(h),T=D(L=>{const{duration:N,delay:_,easing:H}=ua({style:b,timeout:m,easing:a},{mode:"exit"});let B;m==="auto"?(B=E.transitions.getAutoHeightDuration(L.clientHeight),x.current=B):B=N,L.style.transition=[E.transitions.create("opacity",{duration:B,delay:_}),E.transitions.create("transform",{duration:$g?B:B*.666,delay:$g?_:_||B*.333,easing:H})].join(","),L.style.opacity=0,L.style.transform=Lg(.75),p&&p(L)}),R=D(g),A=L=>{m==="auto"&&S.start(x.current||0,L),r&&r(P.current,L)};return v.jsx(y,{appear:s,in:l,nodeRef:P,onEnter:k,onEntered:I,onEntering:O,onExit:T,onExited:R,onExiting:F,addEndListener:A,timeout:m==="auto"?null:m,...C,children:(L,{ownerState:N,..._})=>f.cloneElement(i,{style:{opacity:0,transform:Lg(.75),visibility:L==="exited"&&!l?"hidden":void 0,...V9[L],...b,...i.props.style},ref:M,..._})})});process.env.NODE_ENV!=="production"&&(ui.propTypes={addEndListener:o.func,appear:o.bool,children:li.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})])}),ui&&(ui.muiSupportAuto=!0);function _9(e){return ke("MuiIcon",e)}Me("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const B9=e=>{const{color:t,fontSize:n,classes:r}=e,s={root:["root",t!=="inherit"&&`color${de(t)}`,`fontSize${de(n)}`]};return pe(s,_9,r)},H9=U("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${de(n.color)}`],t[`fontSize${de(n.fontSize)}`]]}})(Ve(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:e.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:e.typography.pxToRem(36)}},{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}},...Object.entries(e.palette).filter(Qt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Ar=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiIcon"}),{baseClassName:s="material-icons",className:i,color:a="inherit",component:l="span",fontSize:c="medium",...u}=r,d={...r,baseClassName:s,color:a,component:l,fontSize:c},p=B9(d);return v.jsx(H9,{as:l,className:se(s,"notranslate",p.root,i),ownerState:d,"aria-hidden":!0,ref:n,...u})});process.env.NODE_ENV!=="production"&&(Ar.propTypes={baseClassName:o.string,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]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])}),Ar.muiName="Icon";const z9=e=>{const{classes:t,disableUnderline:n}=e,s=pe({root:["root",!n&&"underline"],input:["input"]},mN,t);return{...t,...s}},j9=U(Pd,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Sd(e,t),!n.disableUnderline&&t.underline]}})(Ve(({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"},[`&.${Is.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Is.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(.${Is.disabled}, .${Is.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Is.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Qt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),G9=U(Ed,{name:"MuiInput",slot:"Input",overridesResolver:xd})({}),Ld=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiInput"}),{disableUnderline:s=!1,components:i={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:g="text",...h}=r,b=z9(r),y={root:{ownerState:{disableUnderline:s}}},C=d??a?no(d??a,y):y,S=p.root??i.Root??j9,x=p.input??i.Input??G9;return v.jsx(ya,{slots:{root:S,input:x},slotProps:C,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:g,...h,classes:b})});process.env.NODE_ENV!=="production"&&(Ld.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:Ft,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}),Ld.muiName="Input";function W9(e){return ke("MuiInputAdornment",e)}const Ag=Me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Dw;const U9=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${de(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},q9=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:s,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",s&&`position${de(s)}`,a,r&&"hiddenLabel",i&&`size${de(i)}`]};return pe(l,W9,t)},Y9=U("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:U9})(Ve(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Ag.positionStart}&:not(.${Ag.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),xa=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiInputAdornment"}),{children:s,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...p}=r,g=Vo()||{};let h=d;d&&g.variant&&process.env.NODE_ENV!=="production"&&d===g.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),g&&!h&&(h=g.variant);const b={...r,hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:l,position:u,variant:h},m=q9(b);return v.jsx(nc.Provider,{value:null,children:v.jsx(Y9,{as:a,ownerState:b,className:se(m.root,i),ref:n,...p,children:typeof s=="string"&&!c?v.jsx(kt,{color:"textSecondary",children:s}):v.jsxs(f.Fragment,{children:[u==="start"?Dw||(Dw=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,s]})})})});process.env.NODE_ENV!=="production"&&(xa.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 K9(e){return ke("MuiInputLabel",e)}Me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const X9=e=>{const{classes:t,formControl:n,size:r,shrink:s,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",s&&"shrink",r&&r!=="medium"&&`size${de(r)}`,a],asterisk:[l&&"asterisk"]},u=pe(c,K9,t);return{...t,...u}},Z9=U(Rg,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ac.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]]}})(Ve(({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)"}}]}))),di=f.forwardRef(function(t,n){const r=qe({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:i,shrink:a,variant:l,className:c,...u}=r,d=Vo();let p=a;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const g=Ts({props:r,muiFormControl:d,states:["size","variant","required","focused"]}),h={...r,disableAnimation:s,formControl:d,shrink:p,size:g.size,variant:g.variant,required:g.required,focused:g.focused},b=X9(h);return v.jsx(Z9,{"data-shrink":p,ref:n,className:se(b.root,c),...u,ownerState:h,classes:b})});process.env.NODE_ENV!=="production"&&(di.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 Q9(e){return ke("MuiLinearProgress",e)}Me("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Vg=4,_g=Yo`
188
+ 0% {
189
+ left: -35%;
190
+ right: 100%;
191
+ }
192
+
193
+ 60% {
194
+ left: 100%;
195
+ right: -90%;
196
+ }
197
+
198
+ 100% {
199
+ left: 100%;
200
+ right: -90%;
201
+ }
202
+ `,J9=typeof _g!="string"?vs`
203
+ animation: ${_g} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
204
+ `:null,Bg=Yo`
205
+ 0% {
206
+ left: -200%;
207
+ right: 100%;
208
+ }
209
+
210
+ 60% {
211
+ left: 107%;
212
+ right: -8%;
213
+ }
214
+
215
+ 100% {
216
+ left: 107%;
217
+ right: -8%;
218
+ }
219
+ `,e7=typeof Bg!="string"?vs`
220
+ animation: ${Bg} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
221
+ `:null,Hg=Yo`
222
+ 0% {
223
+ opacity: 1;
224
+ background-position: 0 -23px;
225
+ }
226
+
227
+ 60% {
228
+ opacity: 0;
229
+ background-position: 0 -23px;
230
+ }
231
+
232
+ 100% {
233
+ opacity: 1;
234
+ background-position: -200px -23px;
235
+ }
236
+ `,t7=typeof Hg!="string"?vs`
237
+ animation: ${Hg} 3s infinite linear;
238
+ `:null,n7=e=>{const{classes:t,variant:n,color:r}=e,s={root:["root",`color${de(r)}`,n],dashed:["dashed",`dashedColor${de(r)}`],bar1:["bar","bar1",`barColor${de(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${de(r)}`,n==="buffer"&&`color${de(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return pe(s,Q9,t)},zg=(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),o7=U("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${de(n.color)}`],t[n.variant]]}})(Ve(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Qt()).map(([t])=>({props:{color:t},style:{backgroundColor:zg(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)"}}]}))),r7=U("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${de(n.color)}`]]}})(Ve(({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(Qt()).map(([t])=>{const n=zg(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),t7||{animation:`${Hg} 3s infinite linear`}),s7=U("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${de(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Ve(({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(Qt()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Vg}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Vg}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:J9||{animation:`${_g} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),i7=U("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${de(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Ve(({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(Qt()).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(Qt()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:zg(e,t),transition:`transform .${Vg}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:e7||{animation:`${Bg} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Fw=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiLinearProgress"}),{className:s,color:i="primary",value:a,valueBuffer:l,variant:c="indeterminate",...u}=r,d={...r,color:i,variant:c},p=n7(d),g=_t(),h={},b={bar1:{},bar2:{}};if(c==="determinate"||c==="buffer")if(a!==void 0){h["aria-valuenow"]=Math.round(a),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let m=a-100;g&&(m=-m),b.bar1.transform=`translateX(${m}%)`}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 m=(l||0)-100;g&&(m=-m),b.bar2.transform=`translateX(${m}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return v.jsxs(o7,{className:se(p.root,s),ownerState:d,role:"progressbar",...h,ref:n,...u,children:[c==="buffer"?v.jsx(r7,{className:p.dashed,ownerState:d}):null,v.jsx(s7,{className:p.bar1,ownerState:d,style:b.bar1}),c==="determinate"?null:v.jsx(i7,{className:p.bar2,ownerState:d,style:b.bar2})]})});process.env.NODE_ENV!=="production"&&(Fw.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 Bo=f.createContext({});process.env.NODE_ENV!=="production"&&(Bo.displayName="ListContext");function a7(e){return ke("MuiList",e)}Me("MuiList",["root","padding","dense","subheader"]);const l7=e=>{const{classes:t,disablePadding:n,dense:r,subheader:s}=e;return pe({root:["root",!n&&"padding",r&&"dense",s&&"subheader"]},a7,t)},c7=U("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}}]}),ts=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiList"}),{children:s,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=r,p=f.useMemo(()=>({dense:l}),[l]),g={...r,component:a,dense:l,disablePadding:c},h=l7(g);return v.jsx(Bo.Provider,{value:p,children:v.jsxs(c7,{as:a,className:se(h.root,i),ref:n,ownerState:g,...d,children:[u,s]})})});process.env.NODE_ENV!=="production"&&(ts.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 u7(e){return ke("MuiListItem",e)}Me("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function d7(e){return ke("MuiListItemButton",e)}const Pa=Me("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),p7=(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]},f7=e=>{const{alignItems:t,classes:n,dense:r,disabled:s,disableGutters:i,divider:a,selected:l}=e,u=pe({root:["root",r&&"dense",!i&&"gutters",a&&"divider",s&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},d7,n);return{...n,...u}},h7=U(Jo,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:p7})(Ve(({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"}},[`&.${Pa.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Pa.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Pa.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)}},[`&.${Pa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Pa.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}}]}))),pi=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItemButton"}),{alignItems:s="center",autoFocus:i=!1,component:a="div",children:l,dense:c=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:p,selected:g=!1,className:h,...b}=r,m=f.useContext(Bo),y=f.useMemo(()=>({dense:c||m.dense||!1,alignItems:s,disableGutters:u}),[s,m.dense,c,u]),C=f.useRef(null);it(()=>{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 S={...r,alignItems:s,dense:y.dense,disableGutters:u,divider:d,selected:g},x=f7(S),E=tt(C,n);return v.jsx(Bo.Provider,{value:y,children:v.jsx(h7,{ref:E,href:b.href||b.to,component:(b.href||b.to)&&a==="div"?"button":a,focusVisibleClassName:se(x.focusVisible,p),ownerState:S,className:se(x.root,h),...b,classes:x,children:l})})});process.env.NODE_ENV!=="production"&&(pi.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 g7(e){return ke("MuiListItemSecondaryAction",e)}Me("MuiListItemSecondaryAction",["root","disableGutters"]);const m7=e=>{const{disableGutters:t,classes:n}=e;return pe({root:["root",t&&"disableGutters"]},g7,n)},b7=U("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}}]}),jg=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItemSecondaryAction"}),{className:s,...i}=r,a=f.useContext(Bo),l={...r,disableGutters:a.disableGutters},c=m7(l);return v.jsx(b7,{className:se(c.root,s),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(jg.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])}),jg.muiName="ListItemSecondaryAction";const y7=(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]},v7=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:s,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return pe({root:["root",r&&"dense",!s&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},u7,n)},C7=U("div",{name:"MuiListItem",slot:"Root",overridesResolver:y7})(Ve(({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:{[`& > .${Pa.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}}]}))),w7=U("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),lc=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItem"}),{alignItems:s="center",children:i,className:a,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p,...g}={},dense:h=!1,disableGutters:b=!1,disablePadding:m=!1,divider:y=!1,secondaryAction:C,slotProps:S={},slots:x={},...E}=r,P=f.useContext(Bo),M=f.useMemo(()=>({dense:h||P.dense||!1,alignItems:s,disableGutters:b}),[s,P.dense,h,b]),D=f.useRef(null),O=f.Children.toArray(i),k=O.length&&sa(O[O.length-1],["ListItemSecondaryAction"]),I={...r,alignItems:s,dense:M.dense,disableGutters:b,disablePadding:m,divider:y,hasSecondaryAction:k},F=v7(I),T=tt(D,n),R={slots:x,slotProps:S},[A,L]=Ae("secondaryAction",{elementType:jg,externalForwardedProps:R,ownerState:I,className:F.secondaryAction}),N=x.root||c.Root||C7,_=S.root||u.root||{},H={className:se(F.root,_.className,a),...E};let B=l||"li";return k?(B=!H.component&&!l?"div":B,d==="li"&&(B==="li"?B="div":H.component==="li"&&(H.component="div")),v.jsx(Bo.Provider,{value:M,children:v.jsxs(w7,{as:d,className:se(F.container,p),ref:T,ownerState:I,...g,children:[v.jsx(N,{..._,...!da(N)&&{as:B,ownerState:{...I,..._.ownerState}},...H,children:O}),O.pop()]})})):v.jsx(Bo.Provider,{value:M,children:v.jsxs(N,{..._,as:B,ref:T,...!da(N)&&{ownerState:{...I,..._.ownerState}},...H,children:[O,C&&v.jsx(A,{...L,children:C})]})})});process.env.NODE_ENV!=="production"&&(lc.propTypes={alignItems:o.oneOf(["center","flex-start"]),children:Ro(o.node,e=>{const t=f.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const s=t[r];if(sa(s,["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:Wl,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 S7(e){return ke("MuiListItemAvatar",e)}Me("MuiListItemAvatar",["root","alignItemsFlexStart"]);const x7=e=>{const{alignItems:t,classes:n}=e;return pe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},S7,n)},P7=U("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),Gg=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItemAvatar"}),{className:s,...i}=r,a=f.useContext(Bo),l={...r,alignItems:a.alignItems},c=x7(l);return v.jsx(P7,{className:se(c.root,s),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Gg.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 E7(e){return ke("MuiListItemIcon",e)}const Nw=Me("MuiListItemIcon",["root","alignItemsFlexStart"]),T7=e=>{const{alignItems:t,classes:n}=e;return pe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},E7,n)},I7=U("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ve(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),fi=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItemIcon"}),{className:s,...i}=r,a=f.useContext(Bo),l={...r,alignItems:a.alignItems},c=T7(l);return v.jsx(I7,{className:se(c.root,s),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(fi.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 M7(e){return ke("MuiListItemText",e)}const hi=Me("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),O7=e=>{const{classes:t,inset:n,primary:r,secondary:s,dense:i}=e;return pe({root:["root",n&&"inset",i&&"dense",r&&s&&"multiline"],primary:["primary"],secondary:["secondary"]},M7,t)},k7=U("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hi.primary}`]:t.primary},{[`& .${hi.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,[`.${fd.root}:where(& .${hi.primary}), .${fd.root}:where(& .${hi.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Vr=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItemText"}),{children:s,className:i,disableTypography:a=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:p,slots:g={},slotProps:h={},...b}=r,{dense:m}=f.useContext(Bo);let y=c??s,C=d;const S={...r,disableTypography:a,inset:l,primary:!!y,secondary:!!C,dense:m},x=O7(S),E={slots:g,slotProps:{primary:u,secondary:p,...h}},[P,M]=Ae("root",{className:se(x.root,i),elementType:k7,externalForwardedProps:{...E,...b},ownerState:S,ref:n}),[D,O]=Ae("primary",{className:x.primary,elementType:kt,externalForwardedProps:E,ownerState:S}),[k,I]=Ae("secondary",{className:x.secondary,elementType:kt,externalForwardedProps:E,ownerState:S});return y!=null&&y.type!==kt&&!a&&(y=v.jsx(D,{variant:m?"body2":"body1",component:O?.variant?void 0:"span",...O,children:y})),C!=null&&C.type!==kt&&!a&&(C=v.jsx(k,{variant:"body2",color:"textSecondary",...I,children:C})),v.jsxs(P,{...M,children:[y,C]})});process.env.NODE_ENV!=="production"&&(Vr.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 Wg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Rw(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Lw(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 cc(e,t,n,r,s,i){let a=!1,l=s(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Lw(l,i)||c)l=s(e,l,n);else return l.focus(),!0}return!1}const Ug=f.forwardRef(function(t,n){const{actions:r,autoFocus:s=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...g}=t,h=f.useRef(null),b=f.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});it(()=>{s&&h.current.focus()},[s]),f.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:E})=>{const P=!h.current.style.width;if(x.clientHeight<h.current.clientHeight&&P){const M=`${xw(dr(x))}px`;h.current.style[E==="rtl"?"paddingLeft":"paddingRight"]=M,h.current.style.width=`calc(100% + ${M})`}return h.current}}),[]);const m=x=>{const E=h.current,P=x.key;if(x.ctrlKey||x.metaKey||x.altKey){d&&d(x);return}const D=Ca(Bt(E));if(P==="ArrowDown")x.preventDefault(),cc(E,D,u,c,Wg);else if(P==="ArrowUp")x.preventDefault(),cc(E,D,u,c,Rw);else if(P==="Home")x.preventDefault(),cc(E,null,u,c,Wg);else if(P==="End")x.preventDefault(),cc(E,null,u,c,Rw);else if(P.length===1){const O=b.current,k=P.toLowerCase(),I=performance.now();O.keys.length>0&&(I-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&k!==O.keys[0]&&(O.repeating=!1)),O.lastTime=I,O.keys.push(k);const F=D&&!O.repeating&&Lw(D,O);O.previousKeyMatched&&(F||cc(E,D,!1,c,Wg,O))?x.preventDefault():O.previousKeyMatched=!1}d&&d(x)},y=tt(h,n);let C=-1;f.Children.forEach(a,(x,E)=>{if(!f.isValidElement(x)){C===E&&(C+=1,C>=a.length&&(C=-1));return}process.env.NODE_ENV!=="production"&&ws.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
239
+ `)),x.props.disabled||(p==="selectedMenu"&&x.props.selected||C===-1)&&(C=E),C===E&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(C+=1,C>=a.length&&(C=-1))});const S=f.Children.map(a,(x,E)=>{if(E===C){const P={};return i&&(P.autoFocus=!0),x.props.tabIndex===void 0&&p==="selectedMenu"&&(P.tabIndex=0),f.cloneElement(x,P)}return x});return v.jsx(ts,{role:"menu",ref:y,className:l,onKeyDown:m,tabIndex:s?0:-1,...g,children:S})});process.env.NODE_ENV!=="production"&&(Ug.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function D7(e){return ke("MuiPopover",e)}Me("MuiPopover",["root","paper"]);function $w(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Aw(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Vw(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function uc(e){return typeof e=="function"?e():e}const F7=e=>{const{classes:t}=e;return pe({root:["root"],paper:["paper"]},D7,t)},N7=U(Og,{name:"MuiPopover",slot:"Root"})({}),_w=U(pr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Bw=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiPopover"}),{action:s,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:g=8,marginThreshold:h=16,open:b,PaperProps:m={},slots:y={},slotProps:C={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:E="auto",TransitionProps:P={},disableScrollLock:M=!1,...D}=r,O=f.useRef(),k={...r,anchorOrigin:a,anchorReference:c,elevation:g,marginThreshold:h,transformOrigin:S,TransitionComponent:x,transitionDuration:E,TransitionProps:P},I=F7(k),F=f.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=uc(i),ee=X&&X.nodeType===1?X:Bt(O.current).body,W=ee.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const le=ee.getBoundingClientRect();Jl()&&le.top===0&&le.left===0&&le.right===0&&le.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(`
240
+ `))}return{top:W.top+$w(W,a.vertical),left:W.left+Aw(W,a.horizontal)}},[i,a.horizontal,a.vertical,l,c]),T=f.useCallback(X=>({vertical:$w(X,S.vertical),horizontal:Aw(X,S.horizontal)}),[S.horizontal,S.vertical]),R=f.useCallback(X=>{const ee={width:X.offsetWidth,height:X.offsetHeight},W=T(ee);if(c==="none")return{top:null,left:null,transformOrigin:Vw(W)};const le=F();let oe=le.top-W.vertical,re=le.left-W.horizontal;const ae=oe+ee.height,ne=re+ee.width,te=dr(uc(i)),ye=te.innerHeight-h,ce=te.innerWidth-h;if(h!==null&&oe<h){const Se=oe-h;oe-=Se,W.vertical+=Se}else if(h!==null&&ae>ye){const Se=ae-ye;oe-=Se,W.vertical+=Se}if(process.env.NODE_ENV!=="production"&&ee.height>ye&&ee.height&&ye&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ee.height-ye}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
241
+ `)),h!==null&&re<h){const Se=re-h;re-=Se,W.horizontal+=Se}else if(ne>ce){const Se=ne-ce;re-=Se,W.horizontal+=Se}return{top:`${Math.round(oe)}px`,left:`${Math.round(re)}px`,transformOrigin:Vw(W)}},[i,c,F,T,h]),[A,L]=f.useState(b),N=f.useCallback(()=>{const X=O.current;if(!X)return;const ee=R(X);ee.top!==null&&X.style.setProperty("top",ee.top),ee.left!==null&&(X.style.left=ee.left),X.style.transformOrigin=ee.transformOrigin,L(!0)},[R]);f.useEffect(()=>(M&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[i,M,N]);const _=()=>{N()},H=()=>{L(!1)};f.useEffect(()=>{b&&N()}),f.useImperativeHandle(s,()=>b?{updatePosition:()=>{N()}}:null,[b,N]),f.useEffect(()=>{if(!b)return;const X=ur(()=>{N()}),ee=dr(uc(i));return ee.addEventListener("resize",X),()=>{X.clear(),ee.removeEventListener("resize",X)}},[i,b,N]);let B=E;const $={slots:{transition:x,...y},slotProps:{transition:P,paper:m,...C}},[V,z]=Ae("transition",{elementType:ui,externalForwardedProps:$,ownerState:k,getSlotProps:X=>({...X,onEntering:(ee,W)=>{X.onEntering?.(ee,W),_()},onExited:ee=>{X.onExited?.(ee),H()}}),additionalProps:{appear:!0,in:b}});E==="auto"&&!V.muiSupportAuto&&(B=void 0);const j=p||(i?Bt(uc(i)).body:void 0),[G,{slots:Q,slotProps:q,...Y}]=Ae("root",{ref:n,elementType:N7,externalForwardedProps:{...$,...D},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:gC(typeof C.backdrop=="function"?C.backdrop(k):C.backdrop,{invisible:!0})},container:j,open:b},ownerState:k,className:se(I.root,d)}),[K,J]=Ae("paper",{ref:O,className:I.paper,elementType:_w,externalForwardedProps:$,shouldForwardComponentProp:!0,additionalProps:{elevation:g,style:A?void 0:{opacity:0}},ownerState:k});return v.jsx(G,{...Y,...!da(G)&&{slots:Q,slotProps:q,disableScrollLock:M},children:v.jsx(V,{...z,timeout:B,children:v.jsx(K,{...J,children:u})})})});process.env.NODE_ENV!=="production"&&(Bw.propTypes={action:Ft,anchorEl:Ro(o.oneOfType([er,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=uc(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&Jl()&&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(`
242
+ `))}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(`
243
+ `))}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([er,o.func]),disableScrollLock:o.bool,elevation:pa,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:Wl}),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 R7(e){return ke("MuiMenu",e)}Me("MuiMenu",["root","paper","list"]);const L7={vertical:"top",horizontal:"right"},$7={vertical:"top",horizontal:"left"},A7=e=>{const{classes:t}=e;return pe({root:["root"],paper:["paper"],list:["list"]},R7,t)},V7=U(Bw,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),_7=U(_w,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),B7=U(Ug,{name:"MuiMenu",slot:"List"})({outline:0}),$d=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:i,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:g,transitionDuration:h="auto",TransitionProps:{onEntering:b,...m}={},variant:y="selectedMenu",slots:C={},slotProps:S={},...x}=r,E=_t(),P={...r,autoFocus:s,disableAutoFocusItem:l,MenuListProps:c,onEntering:b,PaperProps:p,transitionDuration:h,TransitionProps:m,variant:y},M=A7(P),D=s&&!l&&d,O=f.useRef(null),k=(B,$)=>{O.current&&O.current.adjustStyleForScrollbar(B,{direction:E?"rtl":"ltr"}),b&&b(B,$)},I=B=>{B.key==="Tab"&&(B.preventDefault(),u&&u(B,"tabKeyDown"))};let F=-1;f.Children.map(i,(B,$)=>{f.isValidElement(B)&&(process.env.NODE_ENV!=="production"&&ws.isFragment(B)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
244
+ `)),B.props.disabled||(y==="selectedMenu"&&B.props.selected||F===-1)&&(F=$))});const T={slots:C,slotProps:{list:c,transition:m,paper:p,...S}},R=nt({elementType:C.root,externalSlotProps:S.root,ownerState:P,className:[M.root,a]}),[A,L]=Ae("paper",{className:M.paper,elementType:_7,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:P}),[N,_]=Ae("list",{className:se(M.list,c.className),elementType:B7,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:B=>({...B,onKeyDown:$=>{I($),B.onKeyDown?.($)}}),ownerState:P}),H=typeof T.slotProps.transition=="function"?T.slotProps.transition(P):T.slotProps.transition;return v.jsx(V7,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?L7:$7,slots:{root:C.root,paper:A,backdrop:C.backdrop,...C.transition&&{transition:C.transition}},slotProps:{root:R,paper:L,backdrop:typeof S.backdrop=="function"?S.backdrop(P):S.backdrop,transition:{...H,onEntering:(...B)=>{k(...B),H?.onEntering?.(...B)}}},open:d,ref:n,transitionDuration:h,ownerState:P,...x,classes:g,children:v.jsx(N,{actions:O,autoFocus:s&&(F===-1||l),autoFocusItem:D,variant:y,..._,children:i})})});process.env.NODE_ENV!=="production"&&($d.propTypes={anchorEl:o.oneOfType([er,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 H7(e){return ke("MuiMenuItem",e)}const dc=Me("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),z7=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},j7=e=>{const{disabled:t,dense:n,divider:r,disableGutters:s,selected:i,classes:a}=e,c=pe({root:["root",n&&"dense",t&&"disabled",!s&&"gutters",r&&"divider",i&&"selected"]},H7,a);return{...a,...c}},G7=U(Jo,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:z7})(Ve(({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"}},[`&.${dc.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${dc.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${dc.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)}},[`&.${dc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${dc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Mw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Mw.inset}`]:{marginLeft:52},[`& .${hi.root}`]:{marginTop:0,marginBottom:0},[`& .${hi.inset}`]:{paddingLeft:36},[`& .${Nw.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,[`& .${Nw.root} svg`]:{fontSize:"1.25rem"}}}]}))),sr=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:g,...h}=r,b=f.useContext(Bo),m=f.useMemo(()=>({dense:a||b.dense||!1,disableGutters:c}),[b.dense,a,c]),y=f.useRef(null);it(()=>{s&&(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."))},[s]);const C={...r,dense:m.dense,divider:l,disableGutters:c},S=j7(r),x=tt(y,n);let E;return r.disabled||(E=p!==void 0?p:-1),v.jsx(Bo.Provider,{value:m,children:v.jsx(G7,{ref:x,role:d,tabIndex:E,component:i,focusVisibleClassName:se(S.focusVisible,u),className:se(S.root,g),...h,ownerState:C,classes:S})})});process.env.NODE_ENV!=="production"&&(sr.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 W7(e){return ke("MuiNativeSelect",e)}const qg=Me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),U7=e=>{const{classes:t,variant:n,disabled:r,multiple:s,open:i,error:a}=e,l={select:["select",n,r&&"disabled",s&&"multiple",a&&"error"],icon:["icon",`icon${de(n)}`,i&&"iconOpen",r&&"disabled"]};return pe(l,W7,t)},Hw=U("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${qg.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}}}]})),q7=U(Hw,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${qg.multiple}`]:t.multiple}]}})({}),zw=U("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${qg.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}}]})),Y7=U(zw,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${de(n.variant)}`],n.open&&t.iconOpen]}})({}),jw=f.forwardRef(function(t,n){const{className:r,disabled:s,error:i,IconComponent:a,inputRef:l,variant:c="standard",...u}=t,d={...t,disabled:s,variant:c,error:i},p=U7(d);return v.jsxs(f.Fragment,{children:[v.jsx(q7,{ownerState:d,className:se(p.select,r),disabled:s,ref:l||n,...u}),t.multiple?null:v.jsx(Y7,{as:a,ownerState:d,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(jw.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Ft,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var Gw;const K7=U("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Xn})({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%"}),X7=U("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Xn})(Ve(({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 Ww(e){const{children:t,classes:n,className:r,label:s,notched:i,...a}=e,l=s!=null&&s!=="",c={...e,notched:i,withLabel:l};return v.jsx(K7,{"aria-hidden":!0,className:r,ownerState:c,...a,children:v.jsx(X7,{ownerState:c,children:l?v.jsx("span",{children:s}):Gw||(Gw=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Ww.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const Z7=e=>{const{classes:t}=e,r=pe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bN,t);return{...t,...r}},Q7=U(Pd,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Sd})(Ve(({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 .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rr.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${rr.focused} .${rr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Qt()).map(([n])=>({props:{color:n},style:{[`&.${rr.focused} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${rr.error} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${rr.disabled} .${rr.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"}}]}})),J7=U(Ww,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ve(({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}})),e8=U(Ed,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:xd})(Ve(({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}}]}))),Ad=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiOutlinedInput"}),{components:s={},fullWidth:i=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:u,slots:d={},slotProps:p={},type:g="text",...h}=r,b=Z7(r),m=Vo(),y=Ts({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...r,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:m,fullWidth:i,hiddenLabel:y.hiddenLabel,multiline:c,size:y.size,type:g},S=d.root??s.Root??Q7,x=d.input??s.Input??e8,[E,P]=Ae("notchedOutline",{elementType:J7,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:C,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:l!=null&&l!==""&&y.required?v.jsxs(f.Fragment,{children:[l," ","*"]}):l}});return v.jsx(ya,{slots:{root:S,input:x},slotProps:p,renderSuffix:M=>v.jsx(E,{...P,notched:typeof u<"u"?u:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:i,inputComponent:a,multiline:c,ref:n,type:g,...h,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Ad.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:Ft,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}),Ad.muiName="Input";const t8=gt(v.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),n8=gt(v.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),o8=gt(v.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"),r8=gt(v.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"),s8=U("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Xn})({position:"relative",display:"flex"}),i8=U(o8,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),a8=U(r8,{name:"MuiRadioButtonIcon"})(Ve(({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 Yg(e){const{checked:t=!1,classes:n={},fontSize:r}=e,s={...e,checked:t};return v.jsxs(s8,{className:n.root,ownerState:s,children:[v.jsx(i8,{fontSize:r,className:n.background,ownerState:s}),v.jsx(a8,{fontSize:r,className:n.dot,ownerState:s})]})}process.env.NODE_ENV!=="production"&&(Yg.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const Kg=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(Kg.displayName="RadioGroupContext");function l8(){return f.useContext(Kg)}function c8(e){return ke("MuiRadio",e)}const Uw=Me("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),u8=e=>{const{classes:t,color:n,size:r}=e,s={root:["root",`color${de(n)}`,r!=="medium"&&`size${de(r)}`]};return{...t,...pe(s,c8,t)}},d8=U(Md,{shouldForwardProp:e=>Xn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${de(n.size)}`],t[`color${de(n.color)}`]]}})(Ve(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Uw.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(Qt()).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(Qt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Uw.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function p8(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const f8=v.jsx(Yg,{checked:!0}),h8=v.jsx(Yg,{}),qw=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:i=f8,color:a="primary",icon:l=h8,name:c,onChange:u,size:d="medium",className:p,disabled:g,disableRipple:h=!1,slots:b={},slotProps:m={},inputProps:y,...C}=r,S=Vo();let x=g;S&&typeof x>"u"&&(x=S.disabled),x??=!1;const E={...r,disabled:x,disableRipple:h,color:a,size:d},P=u8(E),M=l8();let D=s;const O=Kh(u,M&&M.onChange);let k=c;M&&(typeof D>"u"&&(D=p8(M.value,r.value)),typeof k>"u"&&(k=M.name));const I=m.input??y,[F,T]=Ae("root",{ref:n,elementType:d8,className:se(P.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:m,...C},getSlotProps:R=>({...R,onChange:(A,...L)=>{R.onChange?.(A,...L),O(A,...L)}}),ownerState:E,additionalProps:{type:"radio",icon:f.cloneElement(l,{fontSize:l.props.fontSize??d}),checkedIcon:f.cloneElement(i,{fontSize:i.props.fontSize??d}),disabled:x,name:k,checked:D,slots:b,slotProps:{input:typeof I=="function"?I(E):I}}});return v.jsx(F,{...T,classes:P})});process.env.NODE_ENV!=="production"&&(qw.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:Ft,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 g8(e){return ke("MuiRadioGroup",e)}Me("MuiRadioGroup",["root","row","error"]);const m8=e=>{const{classes:t,row:n,error:r}=e;return pe({root:["root",n&&"row",r&&"error"]},g8,t)},Yw=f.forwardRef(function(t,n){const{actions:r,children:s,className:i,defaultValue:a,name:l,onChange:c,value:u,...d}=t,p=f.useRef(null),g=m8(t),[h,b]=ao({controlled:u,default:a,name:"RadioGroup"});f.useImperativeHandle(r,()=>({focus:()=>{let S=p.current.querySelector("input:not(:disabled):checked");S||(S=p.current.querySelector("input:not(:disabled)")),S&&S.focus()}}),[]);const m=tt(n,p),y=at(l),C=f.useMemo(()=>({name:y,onChange(S){b(S.target.value),c&&c(S,S.target.value)},value:h}),[y,c,b,h]);return v.jsx(Kg.Provider,{value:C,children:v.jsx(Rd,{role:"radiogroup",ref:m,className:se(g.root,i),...d,children:s})})});process.env.NODE_ENV!=="production"&&(Yw.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const b8={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Kw(e){return ke("MuiSelect",e)}const pc=Me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Xw;const y8=U(Hw,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${pc.select}`]:t.select},{[`&.${pc.select}`]:t[n.variant]},{[`&.${pc.error}`]:t.error},{[`&.${pc.multiple}`]:t.multiple}]}})({[`&.${pc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),v8=U(zw,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${de(n.variant)}`],n.open&&t.iconOpen]}})({}),C8=U("input",{shouldForwardProp:e=>pC(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Zw(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function w8(e){return e==null||typeof e=="string"&&!e.trim()}const S8=e=>{const{classes:t,variant:n,disabled:r,multiple:s,open:i,error:a}=e,l={select:["select",n,r&&"disabled",s&&"multiple",a&&"error"],icon:["icon",`icon${de(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return pe(l,Kw,t)},Qw=f.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":s,autoFocus:i,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:g,error:h=!1,IconComponent:b,inputRef:m,labelId:y,MenuProps:C={},multiple:S,name:x,onBlur:E,onChange:P,onClose:M,onFocus:D,onKeyDown:O,onMouseDown:k,onOpen:I,open:F,readOnly:T,renderValue:R,required:A,SelectDisplayProps:L={},tabIndex:N,type:_,value:H,variant:B="standard",...$}=t,[V,z]=ao({controlled:H,default:d,name:"Select"}),[j,G]=ao({controlled:F,default:u,name:"Select"}),Q=f.useRef(null),q=f.useRef(null),[Y,K]=f.useState(null),{current:J}=f.useRef(F!=null),[X,ee]=f.useState(),W=tt(n,m),le=f.useCallback(Oe=>{q.current=Oe,Oe&&K(Oe)},[]),oe=Y?.parentNode;f.useImperativeHandle(W,()=>({focus:()=>{q.current.focus()},node:Q.current,value:V}),[V]);const re=Y!==null&&j;f.useEffect(()=>{if(!re||!oe||a||typeof ResizeObserver>"u")return;const Oe=new ResizeObserver(()=>{ee(oe.clientWidth)});return Oe.observe(oe),()=>{Oe.disconnect()}},[re,oe,a]),f.useEffect(()=>{u&&j&&Y&&!J&&(ee(a?null:oe.clientWidth),q.current.focus())},[Y,a]),f.useEffect(()=>{i&&q.current.focus()},[i]),f.useEffect(()=>{if(!y)return;const Oe=Bt(q.current).getElementById(y);if(Oe){const Ue=()=>{getSelection().isCollapsed&&q.current.focus()};return Oe.addEventListener("click",Ue),()=>{Oe.removeEventListener("click",Ue)}}},[y]);const ae=(Oe,Ue)=>{Oe?I&&I(Ue):M&&M(Ue),J||(ee(a?null:oe.clientWidth),G(Oe))},ne=Oe=>{k?.(Oe),Oe.button===0&&(Oe.preventDefault(),q.current.focus(),ae(!0,Oe))},te=Oe=>{ae(!1,Oe)},ye=f.Children.toArray(l),ce=Oe=>{const Ue=ye.find(ut=>ut.props.value===Oe.target.value);Ue!==void 0&&(z(Ue.props.value),P&&P(Oe,Ue))},Se=Oe=>Ue=>{let ut;if(Ue.currentTarget.hasAttribute("tabindex")){if(S){ut=Array.isArray(V)?V.slice():[];const zt=V.indexOf(Oe.props.value);zt===-1?ut.push(Oe.props.value):ut.splice(zt,1)}else ut=Oe.props.value;if(Oe.props.onClick&&Oe.props.onClick(Ue),V!==ut&&(z(ut),P)){const zt=Ue.nativeEvent||Ue,Et=new zt.constructor(zt.type,zt);Object.defineProperty(Et,"target",{writable:!0,value:{value:ut,name:x}}),P(Et,Oe)}S||ae(!1,Ue)}},we=Oe=>{T||([" ","ArrowUp","ArrowDown","Enter"].includes(Oe.key)&&(Oe.preventDefault(),ae(!0,Oe)),O?.(Oe))},Be=Oe=>{!re&&E&&(Object.defineProperty(Oe,"target",{writable:!0,value:{value:V,name:x}}),E(Oe))};delete $["aria-invalid"];let Fe,Ye;const Ne=[];let Ke=!1,He=!1;(wd({value:V})||g)&&(R?Fe=R(V):Ke=!0);const me=ye.map(Oe=>{if(!f.isValidElement(Oe))return null;process.env.NODE_ENV!=="production"&&ws.isFragment(Oe)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
245
+ `));let Ue;if(S){if(!Array.isArray(V))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Kr(2));Ue=V.some(ut=>Zw(ut,Oe.props.value)),Ue&&Ke&&Ne.push(Oe.props.children)}else Ue=Zw(V,Oe.props.value),Ue&&Ke&&(Ye=Oe.props.children);return Ue&&(He=!0),f.cloneElement(Oe,{"aria-selected":Ue?"true":"false",onClick:Se(Oe),onKeyUp:ut=>{ut.key===" "&&ut.preventDefault(),Oe.props.onKeyUp&&Oe.props.onKeyUp(ut)},role:"option",selected:Ue,value:void 0,"data-value":Oe.props.value})});process.env.NODE_ENV!=="production"&&f.useEffect(()=>{if(!He&&!S&&V!==""){const Oe=ye.map(Ue=>Ue.props.value);console.warn([`MUI: You have provided an out-of-range value \`${V}\` for the select ${x?`(name="${x}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Oe.filter(Ue=>Ue!=null).map(Ue=>`\`${Ue}\``).join(", ")||'""'}.`].join(`
246
+ `))}},[He,ye,S,x,V]),Ke&&(S?Ne.length===0?Fe=null:Fe=Ne.reduce((Oe,Ue,ut)=>(Oe.push(Ue),ut<Ne.length-1&&Oe.push(", "),Oe),[]):Fe=Ye);let Pe=X;!a&&J&&Y&&(Pe=oe.clientWidth);let ge;typeof N<"u"?ge=N:ge=p?null:0;const Te=L.id||(x?`mui-component-select-${x}`:void 0),$e={...t,variant:B,value:V,open:re,error:h},Ge=S8($e),ot={...C.PaperProps,...typeof C.slotProps?.paper=="function"?C.slotProps.paper($e):C.slotProps?.paper},Tt={...C.MenuListProps,...typeof C.slotProps?.list=="function"?C.slotProps.list($e):C.slotProps?.list},We=at();return v.jsxs(f.Fragment,{children:[v.jsx(y8,{as:"div",ref:le,tabIndex:ge,role:"combobox","aria-controls":re?We:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":re?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[y,Te].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":A?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:we,onMouseDown:p||T?null:ne,onBlur:Be,onFocus:D,...L,ownerState:$e,className:se(L.className,Ge.select,c),id:Te,children:w8(Fe)?Xw||(Xw=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Fe}),v.jsx(C8,{"aria-invalid":h,value:Array.isArray(V)?V.join(","):V,name:x,ref:Q,"aria-hidden":!0,onChange:ce,tabIndex:-1,disabled:p,className:Ge.nativeInput,autoFocus:i,required:A,...$,ownerState:$e}),v.jsx(v8,{as:b,className:Ge.icon,ownerState:$e}),v.jsx($d,{id:`menu-${x||""}`,anchorEl:oe,open:re,onClose:te,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,slotProps:{...C.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:We,...Tt},paper:{...ot,style:{minWidth:Pe,...ot!=null?ot.style:null}}},children:me})]})});process.env.NODE_ENV!=="production"&&(Qw.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:Ft,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 x8=e=>{const{classes:t}=e,r=pe({root:["root"]},Kw,t);return{...t,...r}},Xg={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Xn(e)&&e!=="variant"},P8=U(Ld,Xg)(""),E8=U(Ad,Xg)(""),T8=U(Nd,Xg)(""),Os=f.forwardRef(function(t,n){const r=qe({name:"MuiSelect",props:t}),{autoWidth:s=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=aw,id:p,input:g,inputProps:h,label:b,labelId:m,MenuProps:y,multiple:C=!1,native:S=!1,onClose:x,onOpen:E,open:P,renderValue:M,SelectDisplayProps:D,variant:O="outlined",...k}=r,I=S?jw:Qw,F=Vo(),T=Ts({props:r,muiFormControl:F,states:["variant","error"]}),R=T.variant||O,A={...r,variant:R,classes:a},L=x8(A),{root:N,..._}=L,H=g||{standard:v.jsx(P8,{ownerState:A}),outlined:v.jsx(E8,{label:b,ownerState:A}),filled:v.jsx(T8,{ownerState:A})}[R],B=tt(n,ii(H));return v.jsx(f.Fragment,{children:f.cloneElement(H,{inputComponent:I,inputProps:{children:i,error:T.error,IconComponent:d,variant:R,type:void 0,multiple:C,...S?{id:p}:{autoWidth:s,defaultOpen:c,displayEmpty:u,labelId:m,MenuProps:y,onClose:x,onOpen:E,open:P,renderValue:M,SelectDisplayProps:{id:p,...D}},...h,classes:h?no(_,h.classes):_,...g?g.props.inputProps:{}},...(C&&S||u)&&R==="outlined"?{notched:!0}:{},ref:B,className:se(H.props.className,l,L.root),...!g&&{variant:R},...k})})});process.env.NODE_ENV!=="production"&&(Os.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"])}),Os.muiName="Select";function I8(e){return ke("MuiSkeleton",e)}Me("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const M8=e=>{const{classes:t,variant:n,animation:r,hasChildren:s,width:i,height:a}=e;return pe({root:["root",n,r,s&&"withChildren",s&&!i&&"fitContent",s&&!a&&"heightAuto"]},I8,t)},Zg=Yo`
247
+ 0% {
248
+ opacity: 1;
249
+ }
250
+
251
+ 50% {
252
+ opacity: 0.4;
253
+ }
254
+
255
+ 100% {
256
+ opacity: 1;
257
+ }
258
+ `,Qg=Yo`
259
+ 0% {
260
+ transform: translateX(-100%);
261
+ }
262
+
263
+ 50% {
264
+ /* +0.5s of delay between each loop */
265
+ transform: translateX(100%);
266
+ }
267
+
268
+ 100% {
269
+ transform: translateX(100%);
270
+ }
271
+ `,O8=typeof Zg!="string"?vs`
272
+ animation: ${Zg} 2s ease-in-out 0.5s infinite;
273
+ `:null,k8=typeof Qg!="string"?vs`
274
+ &::after {
275
+ animation: ${Qg} 2s linear 0.5s infinite;
276
+ }
277
+ `:null,D8=U("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(Ve(({theme:e})=>{const t=f4(e.shape.borderRadius)||"px",n=h4(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}${t}/${Math.round(n/.6*10)/10}${t}`,"&: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:O8||{animation:`${Zg} 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(
278
+ 90deg,
279
+ transparent,
280
+ ${(e.vars||e).palette.action.hover},
281
+ transparent
282
+ )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:k8||{"&::after":{animation:`${Qg} 2s linear 0.5s infinite`}}}]}})),Jw=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiSkeleton"}),{animation:s="pulse",className:i,component:a="span",height:l,style:c,variant:u="text",width:d,...p}=r,g={...r,animation:s,component:a,variant:u,hasChildren:!!p.children},h=M8(g);return v.jsx(D8,{as:a,ref:n,className:se(h.root,i),ownerState:g,...p,style:{width:d,height:l,...c}})});process.env.NODE_ENV!=="production"&&(Jw.propTypes={animation:o.oneOf(["pulse","wave",!1]),children:o.node,classes:o.object,className:o.string,component:o.elementType,height: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]),variant:o.oneOfType([o.oneOf(["circular","rectangular","rounded","text"]),o.string]),width:o.oneOfType([o.number,o.string])});function F8(e){return ke("MuiTooltip",e)}const Tn=Me("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function N8(e){return Math.round(e*1e5)/1e5}const R8=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:s,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",s&&"touch",`tooltipPlacement${de(i.split("-")[0])}`],arrow:["arrow"]};return pe(a,F8,t)},L8=U(ai,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Ve(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Tn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Tn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Tn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Tn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Tn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Tn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Tn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Tn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),$8=U("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${de(n.placement.split("-")[0])}`]]}})(Ve(({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,[`.${Tn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Tn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Tn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Tn.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${N8(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Tn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Tn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Tn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Tn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Tn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Tn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Tn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Tn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Tn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Tn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),A8=U("span",{name:"MuiTooltip",slot:"Arrow"})(Ve(({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 Vd=!1;const e2=new cd;let fc={x:0,y:0};function _d(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const hr=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTooltip"}),{arrow:s=!1,children:i,classes:a,components:l={},componentsProps:c={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:g=!1,disableTouchListener:h=!1,enterDelay:b=100,enterNextDelay:m=0,enterTouchDelay:y=700,followCursor:C=!1,id:S,leaveDelay:x=0,leaveTouchDelay:E=1500,onClose:P,onOpen:M,open:D,placement:O="bottom",PopperComponent:k,PopperProps:I={},slotProps:F={},slots:T={},title:R,TransitionComponent:A,TransitionProps:L,...N}=r,_=f.isValidElement(i)?i:v.jsx("span",{children:i}),H=io(),B=_t(),[$,V]=f.useState(),[z,j]=f.useState(null),G=f.useRef(!1),Q=g||C,q=Pn(),Y=Pn(),K=Pn(),J=Pn(),[X,ee]=ao({controlled:D,default:!1,name:"Tooltip",state:"open"});let W=X;if(process.env.NODE_ENV!=="production"){const{current:_e}=f.useRef(D!==void 0);f.useEffect(()=>{$&&$.disabled&&!_e&&R!==""&&$.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(`
283
+ `))},[R,$,_e])}const le=at(S),oe=f.useRef(),re=fe(()=>{oe.current!==void 0&&(document.body.style.WebkitUserSelect=oe.current,oe.current=void 0),J.clear()});f.useEffect(()=>re,[re]);const ae=_e=>{e2.clear(),Vd=!0,ee(!0),M&&!W&&M(_e)},ne=fe(_e=>{e2.start(800+x,()=>{Vd=!1}),ee(!1),P&&W&&P(_e),q.start(H.transitions.duration.shortest,()=>{G.current=!1})}),te=_e=>{G.current&&_e.type!=="touchstart"||($&&$.removeAttribute("title"),Y.clear(),K.clear(),b||Vd&&m?Y.start(Vd?m:b,()=>{ae(_e)}):ae(_e))},ye=_e=>{Y.clear(),K.start(x,()=>{ne(_e)})},[,ce]=f.useState(!1),Se=_e=>{const Ct=_e?.target??$;if(!Ct||!dd(Ct)){ce(!1);const Re=_e??new Event("blur");!_e&&Ct&&(Object.defineProperty(Re,"target",{value:Ct}),Object.defineProperty(Re,"currentTarget",{value:Ct})),ye(Re)}},we=_e=>{$||V(_e.currentTarget),dd(_e.target)&&(ce(!0),te(_e))},Be=_e=>{G.current=!0;const Ct=_.props;Ct.onTouchStart&&Ct.onTouchStart(_e)},Fe=_e=>{Be(_e),K.clear(),q.clear(),re(),oe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",J.start(y,()=>{document.body.style.WebkitUserSelect=oe.current,te(_e)})},Ye=_e=>{_.props.onTouchEnd&&_.props.onTouchEnd(_e),re(),K.start(E,()=>{ne(_e)})};f.useEffect(()=>{if(!W)return;function _e(Ct){Ct.key==="Escape"&&ne(Ct)}return document.addEventListener("keydown",_e),()=>{document.removeEventListener("keydown",_e)}},[ne,W]);const Ne=tt(ii(_),V,n);!R&&R!==0&&(W=!1);const Ke=f.useRef(),He=_e=>{const Ct=_.props;Ct.onMouseMove&&Ct.onMouseMove(_e),fc={x:_e.clientX,y:_e.clientY},Ke.current&&Ke.current.update()},me={},Pe=typeof R=="string";u?(me.title=!W&&Pe&&!p?R:null,me["aria-describedby"]=W?le:null):(me["aria-label"]=Pe?R:null,me["aria-labelledby"]=W&&!Pe?le:null);const ge={...me,...N,..._.props,className:se(N.className,_.props.className),onTouchStart:Be,ref:Ne,...C?{onMouseMove:He}:{}};process.env.NODE_ENV!=="production"&&(ge["data-mui-internal-clone-element"]=!0,f.useEffect(()=>{$&&!$.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(`
284
+ `))},[$]));const Te={};h||(ge.onTouchStart=Fe,ge.onTouchEnd=Ye),p||(ge.onMouseOver=_d(te,ge.onMouseOver),ge.onMouseLeave=_d(ye,ge.onMouseLeave),Q||(Te.onMouseOver=te,Te.onMouseLeave=ye)),d||(ge.onFocus=_d(we,ge.onFocus),ge.onBlur=_d(Se,ge.onBlur),Q||(Te.onFocus=we,Te.onBlur=Se)),process.env.NODE_ENV!=="production"&&_.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${_.props.title}\` or the Tooltip component.`].join(`
285
+ `));const $e={...r,isRtl:B,arrow:s,disableInteractive:Q,placement:O,PopperComponentProp:k,touch:G.current},Ge=typeof F.popper=="function"?F.popper($e):F.popper,ot=f.useMemo(()=>{let _e=[{name:"arrow",enabled:!!z,options:{element:z,padding:4}}];return I.popperOptions?.modifiers&&(_e=_e.concat(I.popperOptions.modifiers)),Ge?.popperOptions?.modifiers&&(_e=_e.concat(Ge.popperOptions.modifiers)),{...I.popperOptions,...Ge?.popperOptions,modifiers:_e}},[z,I.popperOptions,Ge?.popperOptions]),Tt=R8($e),We=typeof F.transition=="function"?F.transition($e):F.transition,Oe={slots:{popper:l.Popper,transition:l.Transition??A,tooltip:l.Tooltip,arrow:l.Arrow,...T},slotProps:{arrow:F.arrow??c.arrow,popper:{...I,...Ge??c.popper},tooltip:F.tooltip??c.tooltip,transition:{...L,...We??c.transition}}},[Ue,ut]=Ae("popper",{elementType:L8,externalForwardedProps:Oe,ownerState:$e,className:se(Tt.popper,I?.className)}),[zt,Et]=Ae("transition",{elementType:ui,externalForwardedProps:Oe,ownerState:$e}),[zn,wn]=Ae("tooltip",{elementType:$8,className:Tt.tooltip,externalForwardedProps:Oe,ownerState:$e}),[jn,Gn]=Ae("arrow",{elementType:A8,className:Tt.arrow,externalForwardedProps:Oe,ownerState:$e,ref:j});return v.jsxs(f.Fragment,{children:[f.cloneElement(_,ge),v.jsx(Ue,{as:k??ai,placement:O,anchorEl:C?{getBoundingClientRect:()=>({top:fc.y,left:fc.x,right:fc.x,bottom:fc.y,width:0,height:0})}:$,popperRef:Ke,open:$?W:!1,id:le,transition:!0,...Te,...ut,popperOptions:ot,children:({TransitionProps:_e})=>v.jsx(zt,{timeout:H.transitions.duration.shorter,..._e,...Et,children:v.jsxs(zn,{...wn,children:[R,s?v.jsx(jn,{...Gn}):null]})})})]})});process.env.NODE_ENV!=="production"&&(hr.propTypes={arrow:o.bool,children:li.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 V8(e){return ke("MuiSwitch",e)}const co=Me("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),_8=e=>{const{classes:t,edge:n,size:r,color:s,checked:i,disabled:a}=e,l={root:["root",n&&`edge${de(n)}`,`size${de(r)}`],switchBase:["switchBase",`color${de(s)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=pe(l,V8,t);return{...t,...c}},B8=U("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${de(n.edge)}`],t[`size${de(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,[`& .${co.thumb}`]:{width:16,height:16},[`& .${co.switchBase}`]:{padding:4,[`&.${co.checked}`]:{transform:"translateX(16px)"}}}}]}),H8=U(Md,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${co.input}`]:t.input},n.color!=="default"&&t[`color${de(n.color)}`]]}})(Ve(({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}),[`&.${co.checked}`]:{transform:"translateX(20px)"},[`&.${co.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${co.checked} + .${co.track}`]:{opacity:.5},[`&.${co.disabled} + .${co.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${co.input}`]:{left:"-100%",width:"300%"}})),Ve(({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(Qt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${co.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"}},[`&.${co.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)}`}},[`&.${co.checked} + .${co.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),z8=U("span",{name:"MuiSwitch",slot:"Track"})(Ve(({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}`}))),j8=U("span",{name:"MuiSwitch",slot:"Thumb"})(Ve(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Jg=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiSwitch"}),{className:s,color:i="primary",edge:a=!1,size:l="medium",sx:c,slots:u={},slotProps:d={},...p}=r,g={...r,color:i,edge:a,size:l},h=_8(g),b={slots:u,slotProps:d},[m,y]=Ae("root",{className:se(h.root,s),elementType:B8,externalForwardedProps:b,ownerState:g,additionalProps:{sx:c}}),[C,S]=Ae("thumb",{className:h.thumb,elementType:j8,externalForwardedProps:b,ownerState:g}),x=v.jsx(C,{...S}),[E,P]=Ae("track",{className:h.track,elementType:z8,externalForwardedProps:b,ownerState:g});return v.jsxs(m,{...y,children:[v.jsx(H8,{type:"checkbox",icon:x,checkedIcon:x,ref:n,ownerState:g,...p,classes:{...h,root:h.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...d.switchBase&&{root:typeof d.switchBase=="function"?d.switchBase(g):d.switchBase},input:{role:"switch"},...d.input&&{input:typeof d.input=="function"?d.input(g):d.input}}}),v.jsx(E,{...P})]})});process.env.NODE_ENV!=="production"&&(Jg.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:Ft,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 G8(e){return ke("MuiTab",e)}const ir=Me("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),W8=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:s,icon:i,label:a,selected:l,disabled:c}=e,u={root:["root",i&&a&&"labelIcon",`textColor${de(n)}`,r&&"fullWidth",s&&"wrapped",l&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return pe(u,G8,t)},U8=U(Jo,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${de(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${ir.iconWrapper}`]:t.iconWrapper},{[`& .${ir.icon}`]:t.icon}]}})(Ve(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${ir.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${ir.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${ir.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${ir.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${ir.selected}`]:{opacity:1},[`&.${ir.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ir.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ir.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ir.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ir.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),t2=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTab"}),{className:s,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:l,icon:c,iconPosition:u="top",indicator:d,label:p,onChange:g,onClick:h,onFocus:b,selected:m,selectionFollowsFocus:y,textColor:C="inherit",value:S,wrapped:x=!1,...E}=r,P={...r,disabled:i,disableFocusRipple:a,selected:m,icon:!!c,iconPosition:u,label:!!p,fullWidth:l,textColor:C,wrapped:x},M=W8(P),D=c&&p&&f.isValidElement(c)?f.cloneElement(c,{className:se(M.icon,c.props.className)}):c,O=I=>{!m&&g&&g(I,S),h&&h(I)},k=I=>{y&&!m&&g&&g(I,S),b&&b(I)};return v.jsxs(U8,{focusRipple:!a,className:se(M.root,s),ref:n,role:"tab","aria-selected":m,disabled:i,onClick:O,onFocus:k,ownerState:P,tabIndex:m?0:-1,...E,children:[u==="top"||u==="start"?v.jsxs(f.Fragment,{children:[D,p]}):v.jsxs(f.Fragment,{children:[p,D]}),d]})});process.env.NODE_ENV!=="production"&&(t2.propTypes={children:Qh,classes:o.object,className:o.string,disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,icon:o.oneOfType([o.element,o.string]),iconPosition:o.oneOf(["bottom","end","start","top"]),label:o.node,onChange:o.func,onClick:o.func,onFocus:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any,wrapped:o.bool});const n2=f.createContext();process.env.NODE_ENV!=="production"&&(n2.displayName="TableContext");const o2=f.createContext();process.env.NODE_ENV!=="production"&&(o2.displayName="Tablelvl2Context");function q8(e){return ke("MuiTableCell",e)}const Y8=Me("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),K8=e=>{const{classes:t,variant:n,align:r,padding:s,size:i,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${de(r)}`,s!=="normal"&&`padding${de(s)}`,`size${de(i)}`]};return pe(l,q8,t)},X8=U("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${de(n.size)}`],n.padding!=="normal"&&t[`padding${de(n.padding)}`],n.align!=="inherit"&&t[`align${de(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Ve(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
286
+ ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Y8.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Bd=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTableCell"}),{align:s="inherit",className:i,component:a,padding:l,scope:c,size:u,sortDirection:d,variant:p,...g}=r,h=f.useContext(n2),b=f.useContext(o2),m=b&&b.variant==="head";let y;a?y=a:y=m?"th":"td";let C=c;y==="td"?C=void 0:!C&&m&&(C="col");const S=p||b&&b.variant,x={...r,align:s,component:y,padding:l||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:d,stickyHeader:S==="head"&&h&&h.stickyHeader,variant:S},E=K8(x);let P=null;return d&&(P=d==="asc"?"ascending":"descending"),v.jsx(X8,{as:y,ref:n,className:se(E.root,i),"aria-sort":P,scope:C,ownerState:x,...g})});process.env.NODE_ENV!=="production"&&(Bd.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),scope:o.string,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sortDirection:o.oneOf(["asc","desc",!1]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body","footer","head"]),o.string])});function Z8(e){return ke("MuiToolbar",e)}Me("MuiToolbar",["root","gutters","regular","dense"]);const Q8=e=>{const{classes:t,disableGutters:n,variant:r}=e;return pe({root:["root",!n&&"gutters",r]},Z8,t)},J8=U("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Ve(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),r2=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiToolbar"}),{className:s,component:i="div",disableGutters:a=!1,variant:l="regular",...c}=r,u={...r,component:i,disableGutters:a,variant:l},d=Q8(u);return v.jsx(J8,{as:i,className:se(d.root,s),ref:n,ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(r2.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disableGutters:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["dense","regular"]),o.string])});const s2=gt(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),i2=gt(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function eL(e){return ke("MuiTablePaginationActions",e)}Me("MuiTablePaginationActions",["root"]);const tL=e=>{const{classes:t}=e;return pe({root:["root"]},eL,t)},nL=U("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),a2=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTablePaginationActions"}),{backIconButtonProps:s,className:i,count:a,disabled:l=!1,getItemAriaLabel:c,nextIconButtonProps:u,onPageChange:d,page:p,rowsPerPage:g,showFirstButton:h,showLastButton:b,slots:m={},slotProps:y={},...C}=r,S=_t(),E=tL(r),P=Q=>{d(Q,0)},M=Q=>{d(Q,p-1)},D=Q=>{d(Q,p+1)},O=Q=>{d(Q,Math.max(0,Math.ceil(a/g)-1))},k=m.firstButton??En,I=m.lastButton??En,F=m.nextButton??En,T=m.previousButton??En,R=m.firstButtonIcon??t8,A=m.lastButtonIcon??n8,L=m.nextButtonIcon??i2,N=m.previousButtonIcon??s2,_=S?I:k,H=S?F:T,B=S?T:F,$=S?k:I,V=S?y.lastButton:y.firstButton,z=S?y.nextButton:y.previousButton,j=S?y.previousButton:y.nextButton,G=S?y.firstButton:y.lastButton;return v.jsxs(nL,{ref:n,className:se(E.root,i),...C,children:[h&&v.jsx(_,{onClick:P,disabled:l||p===0,"aria-label":c("first",p),title:c("first",p),...V,children:S?v.jsx(A,{...y.lastButtonIcon}):v.jsx(R,{...y.firstButtonIcon})}),v.jsx(H,{onClick:M,disabled:l||p===0,color:"inherit","aria-label":c("previous",p),title:c("previous",p),...z??s,children:S?v.jsx(L,{...y.nextButtonIcon}):v.jsx(N,{...y.previousButtonIcon})}),v.jsx(B,{onClick:D,disabled:l||(a!==-1?p>=Math.ceil(a/g)-1:!1),color:"inherit","aria-label":c("next",p),title:c("next",p),...j??u,children:S?v.jsx(N,{...y.previousButtonIcon}):v.jsx(L,{...y.nextButtonIcon})}),b&&v.jsx($,{onClick:O,disabled:l||p>=Math.ceil(a/g)-1,"aria-label":c("last",p),title:c("last",p),...G,children:S?v.jsx(R,{...y.firstButtonIcon}):v.jsx(A,{...y.lastButtonIcon})})]})});process.env.NODE_ENV!=="production"&&(a2.propTypes={backIconButtonProps:o.object,children:o.node,classes:o.object,className:o.string,count:o.number.isRequired,disabled:o.bool,getItemAriaLabel:o.func.isRequired,nextIconButtonProps:o.object,onPageChange:o.func.isRequired,page:o.number.isRequired,rowsPerPage:o.number.isRequired,showFirstButton:o.bool.isRequired,showLastButton:o.bool.isRequired,slotProps:o.shape({firstButton:o.object,firstButtonIcon:o.object,lastButton:o.object,lastButtonIcon:o.object,nextButton:o.object,nextButtonIcon:o.object,previousButton:o.object,previousButtonIcon:o.object}),slots:o.shape({firstButton:o.elementType,firstButtonIcon:o.elementType,lastButton:o.elementType,lastButtonIcon:o.elementType,nextButton:o.elementType,nextButtonIcon:o.elementType,previousButton:o.elementType,previousButtonIcon:o.elementType})});function oL(e){return ke("MuiTablePagination",e)}const gi=Me("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var l2;const rL=U(Bd,{name:"MuiTablePagination",slot:"Root"})(Ve(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),sL=U(r2,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${gi.actions}`]:t.actions,...t.toolbar})})(Ve(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${gi.actions}`]:{flexShrink:0,marginLeft:20}}))),iL=U("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),aL=U("p",{name:"MuiTablePagination",slot:"SelectLabel"})(Ve(({theme:e})=>({...e.typography.body2,flexShrink:0}))),lL=U(Os,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${gi.selectIcon}`]:t.selectIcon,[`& .${gi.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${gi.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),cL=U(sr,{name:"MuiTablePagination",slot:"MenuItem"})({}),uL=U("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(Ve(({theme:e})=>({...e.typography.body2,flexShrink:0})));function dL({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function pL(e){return`Go to ${e} page`}const fL=e=>{const{classes:t}=e;return pe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},oL,t)},c2=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=a2,backIconButtonProps:i,colSpan:a,component:l=Bd,count:c,disabled:u=!1,getItemAriaLabel:d=pL,labelDisplayedRows:p=dL,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:h,onPageChange:b,onRowsPerPageChange:m,page:y,rowsPerPage:C,rowsPerPageOptions:S=[10,25,50,100],SelectProps:x={},showFirstButton:E=!1,showLastButton:P=!1,slotProps:M={},slots:D={},...O}=r,k=r,I=fL(k),F=M?.select??x,T=F.native?"option":cL;let R;(l===Bd||l==="td")&&(R=a||1e3);const A=at(F.id),L=at(F.labelId),N=()=>c===-1?(y+1)*C:C===-1?c:Math.min(c,(y+1)*C),_={slots:D,slotProps:M},[H,B]=Ae("root",{ref:n,className:I.root,elementType:rL,externalForwardedProps:{..._,component:l,...O},ownerState:k,additionalProps:{colSpan:R}}),[$,V]=Ae("toolbar",{className:I.toolbar,elementType:sL,externalForwardedProps:_,ownerState:k}),[z,j]=Ae("spacer",{className:I.spacer,elementType:iL,externalForwardedProps:_,ownerState:k}),[G,Q]=Ae("selectLabel",{className:I.selectLabel,elementType:aL,externalForwardedProps:_,ownerState:k,additionalProps:{id:L}}),[q,Y]=Ae("select",{className:I.select,elementType:lL,externalForwardedProps:_,ownerState:k}),[K,J]=Ae("menuItem",{className:I.menuItem,elementType:T,externalForwardedProps:_,ownerState:k}),[X,ee]=Ae("displayedRows",{className:I.displayedRows,elementType:uL,externalForwardedProps:_,ownerState:k});return v.jsx(H,{...B,children:v.jsxs($,{...V,children:[v.jsx(z,{...j}),S.length>1&&v.jsx(G,{...Q,children:g}),S.length>1&&v.jsx(q,{variant:"standard",...!F.variant&&{input:l2||(l2=v.jsx(ya,{}))},value:C,onChange:m,id:A,labelId:L,...F,classes:{...F.classes,root:se(I.input,I.selectRoot,(F.classes||{}).root),select:se(I.select,(F.classes||{}).select),icon:se(I.selectIcon,(F.classes||{}).icon)},disabled:u,...Y,children:S.map(W=>he.createElement(K,{...J,key:W.label?W.label:W,value:W.value?W.value:W},W.label?W.label:W))}),v.jsx(X,{...ee,children:p({from:c===0?0:y*C+1,to:N(),count:c===-1?-1:c,page:y})}),v.jsx(s,{className:I.actions,backIconButtonProps:i,count:c,nextIconButtonProps:h,onPageChange:b,page:y,rowsPerPage:C,showFirstButton:E,showLastButton:P,slotProps:M.actions,slots:D.actions,getItemAriaLabel:d,disabled:u})]})})});process.env.NODE_ENV!=="production"&&(c2.propTypes={ActionsComponent:o.elementType,backIconButtonProps:o.object,classes:o.object,colSpan:o.number,component:o.elementType,count:pa.isRequired,disabled:o.bool,getItemAriaLabel:o.func,labelDisplayedRows:o.func,labelRowsPerPage:o.node,nextIconButtonProps:o.object,onPageChange:o.func.isRequired,onRowsPerPageChange:o.func,page:Ro(pa.isRequired,e=>{const{count:t,page:n,rowsPerPage:r}=e;if(t===-1)return null;const s=Math.max(0,Math.ceil(t/r)-1);return n<0||n>s?new Error(`MUI: The page prop of a TablePagination is out of range (0 to ${s}, but page is ${n}).`):null}),rowsPerPage:pa.isRequired,rowsPerPageOptions:o.arrayOf(o.oneOfType([o.number,o.shape({label:o.string.isRequired,value:o.number.isRequired})]).isRequired),SelectProps:o.object,showFirstButton:o.bool,showLastButton:o.bool,slotProps:o.shape({actions:o.shape({firstButton:o.object,firstButtonIcon:o.object,lastButton:o.object,lastButtonIcon:o.object,nextButton:o.object,nextButtonIcon:o.object,previousButton:o.object,previousButtonIcon:o.object}),displayedRows:o.oneOfType([o.func,o.object]),menuItem:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),select:o.object,selectLabel:o.oneOfType([o.func,o.object]),spacer:o.oneOfType([o.func,o.object]),toolbar:o.oneOfType([o.func,o.object])}),slots:o.shape({actions:o.shape({firstButton:o.elementType,firstButtonIcon:o.elementType,lastButton:o.elementType,lastButtonIcon:o.elementType,nextButton:o.elementType,nextButtonIcon:o.elementType,previousButton:o.elementType,previousButtonIcon:o.elementType}),displayedRows:o.elementType,menuItem:o.elementType,root:o.elementType,select:o.elementType,selectLabel:o.elementType,spacer:o.elementType,toolbar:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function hL(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function gL(e,t,n,r={},s=()=>{}){const{ease:i=hL,duration:a=300}=r;let l=null;const c=t[e];let u=!1;const d=()=>{u=!0},p=g=>{if(u){s(new Error("Animation cancelled"));return}l===null&&(l=g);const h=Math.min(1,(g-l)/a);if(t[e]=i(h)*(n-c)+c,h>=1){requestAnimationFrame(()=>{s(null)});return}requestAnimationFrame(p)};return c===n?(s(new Error("Element already at target position")),d):(requestAnimationFrame(p),d)}const mL={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function u2(e){const{onChange:t,...n}=e,r=f.useRef(),s=f.useRef(null),i=()=>{r.current=s.current.offsetHeight-s.current.clientHeight};return it(()=>{const a=ur(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),l=dr(s.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),f.useEffect(()=>{i(),t(r.current)},[t]),v.jsx("div",{style:mL,...n,ref:s})}process.env.NODE_ENV!=="production"&&(u2.propTypes={onChange:o.func.isRequired});function bL(e){return ke("MuiTabScrollButton",e)}const yL=Me("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),vL=e=>{const{classes:t,orientation:n,disabled:r}=e;return pe({root:["root",n,r&&"disabled"]},bL,t)},CL=U(Jo,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${yL.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),d2=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTabScrollButton"}),{className:s,slots:i={},slotProps:a={},direction:l,orientation:c,disabled:u,...d}=r,p=_t(),g={isRtl:p,...r},h=vL(g),b=i.StartScrollButtonIcon??s2,m=i.EndScrollButtonIcon??i2,y=nt({elementType:b,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),C=nt({elementType:m,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return v.jsx(CL,{component:"div",className:se(h.root,s),ref:n,role:null,ownerState:g,tabIndex:null,...d,style:{...d.style,...c==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${p?-90:90}deg)`}},children:l==="left"?v.jsx(b,{...y}):v.jsx(m,{...C})})});process.env.NODE_ENV!=="production"&&(d2.propTypes={children:o.node,classes:o.object,className:o.string,direction:o.oneOf(["left","right"]).isRequired,disabled:o.bool,orientation:o.oneOf(["horizontal","vertical"]).isRequired,slotProps:o.shape({endScrollButtonIcon:o.oneOfType([o.func,o.object]),startScrollButtonIcon:o.oneOfType([o.func,o.object])}),slots:o.shape({EndScrollButtonIcon:o.elementType,StartScrollButtonIcon:o.elementType}),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function wL(e){return ke("MuiTabs",e)}const em=Me("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),p2=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,f2=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Hd=(e,t,n)=>{let r=!1,s=n(e,t);for(;s;){if(s===e.firstChild){if(r)return;r=!0}const i=s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||i)s=n(e,s);else{s.focus();return}}},SL=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:s,scrollableY:i,centered:a,scrollButtonsHideMobile:l,classes:c}=e;return pe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",s&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[s&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},wL,c)},xL=U("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${em.scrollButtons}`]:t.scrollButtons},{[`& .${em.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Ve(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${em.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),PL=U("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),EL=U("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),TL=U("span",{name:"MuiTabs",slot:"Indicator"})(Ve(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),IL=U(u2)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),h2={};let g2=!1;const m2=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTabs"}),s=io(),i=_t(),{"aria-label":a,"aria-labelledby":l,action:c,centered:u=!1,children:d,className:p,component:g="div",allowScrollButtonsMobile:h=!1,indicatorColor:b="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:C,scrollButtons:S="auto",selectionFollowsFocus:x,slots:E={},slotProps:P={},TabIndicatorProps:M={},TabScrollButtonProps:D={},textColor:O="primary",value:k,variant:I="standard",visibleScrollbar:F=!1,...T}=r,R=I==="scrollable",A=y==="vertical",L=A?"scrollTop":"scrollLeft",N=A?"top":"left",_=A?"bottom":"right",H=A?"clientHeight":"clientWidth",B=A?"height":"width",$={...r,component:g,allowScrollButtonsMobile:h,indicatorColor:b,orientation:y,vertical:A,scrollButtons:S,textColor:O,variant:I,visibleScrollbar:F,fixed:!R,hideScrollbar:R&&!F,scrollableX:R&&!A,scrollableY:R&&A,centered:u&&!R,scrollButtonsHideMobile:!h},V=SL($),z=nt({elementType:E.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:$}),j=nt({elementType:E.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:$});process.env.NODE_ENV!=="production"&&u&&R&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[G,Q]=f.useState(!1),[q,Y]=f.useState(h2),[K,J]=f.useState(!1),[X,ee]=f.useState(!1),[W,le]=f.useState(!1),[oe,re]=f.useState({overflow:"hidden",scrollbarWidth:0}),ae=new Map,ne=f.useRef(null),te=f.useRef(null),ye={slots:E,slotProps:{indicator:M,scrollButtons:D,...P}},ce=()=>{const Re=ne.current;let Ze;if(Re){const wt=Re.getBoundingClientRect();Ze={clientWidth:Re.clientWidth,scrollLeft:Re.scrollLeft,scrollTop:Re.scrollTop,scrollWidth:Re.scrollWidth,top:wt.top,bottom:wt.bottom,left:wt.left,right:wt.right}}let bt;if(Re&&k!==!1){const wt=te.current.children;if(wt.length>0){const Jt=wt[ae.get(k)];process.env.NODE_ENV!=="production"&&(Jt||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${k}".`,ae.keys?`You can provide one of the following values: ${Array.from(ae.keys()).join(", ")}.`:null].join(`
287
+ `))),bt=Jt?Jt.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&Jl()&&!g2&&bt&&bt.width===0&&bt.height===0&&Ze.clientWidth!==0&&(Ze=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${k}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
288
+ `)),g2=!0)}}return{tabsMeta:Ze,tabMeta:bt}},Se=fe(()=>{const{tabsMeta:Re,tabMeta:Ze}=ce();let bt=0,wt;A?(wt="top",Ze&&Re&&(bt=Ze.top-Re.top+Re.scrollTop)):(wt=i?"right":"left",Ze&&Re&&(bt=(i?-1:1)*(Ze[wt]-Re[wt]+Re.scrollLeft)));const Jt={[wt]:bt,[B]:Ze?Ze[B]:0};if(typeof q[wt]!="number"||typeof q[B]!="number")Y(Jt);else{const so=Math.abs(q[wt]-Jt[wt]),Co=Math.abs(q[B]-Jt[B]);(so>=1||Co>=1)&&Y(Jt)}}),we=(Re,{animation:Ze=!0}={})=>{Ze?gL(L,ne.current,Re,{duration:s.transitions.duration.standard}):ne.current[L]=Re},Be=Re=>{let Ze=ne.current[L];A?Ze+=Re:Ze+=Re*(i?-1:1),we(Ze)},Fe=()=>{const Re=ne.current[H];let Ze=0;const bt=Array.from(te.current.children);for(let wt=0;wt<bt.length;wt+=1){const Jt=bt[wt];if(Ze+Jt[H]>Re){wt===0&&(Ze=Re);break}Ze+=Jt[H]}return Ze},Ye=()=>{Be(-1*Fe())},Ne=()=>{Be(Fe())},[Ke,{onChange:He,...me}]=Ae("scrollbar",{className:se(V.scrollableX,V.hideScrollbar),elementType:IL,shouldForwardComponentProp:!0,externalForwardedProps:ye,ownerState:$}),Pe=f.useCallback(Re=>{He?.(Re),re({overflow:null,scrollbarWidth:Re})},[He]),[ge,Te]=Ae("scrollButtons",{className:se(V.scrollButtons,D.className),elementType:d2,externalForwardedProps:ye,ownerState:$,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:E.startScrollButtonIcon||E.StartScrollButtonIcon,EndScrollButtonIcon:E.endScrollButtonIcon||E.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:z,endScrollButtonIcon:j}}}),$e=()=>{const Re={};Re.scrollbarSizeListener=R?v.jsx(Ke,{...me,onChange:Pe}):null;const bt=R&&(S==="auto"&&(K||X)||S===!0);return Re.scrollButtonStart=bt?v.jsx(ge,{direction:i?"right":"left",onClick:Ye,disabled:!K,...Te}):null,Re.scrollButtonEnd=bt?v.jsx(ge,{direction:i?"left":"right",onClick:Ne,disabled:!X,...Te}):null,Re},Ge=fe(Re=>{const{tabsMeta:Ze,tabMeta:bt}=ce();if(!(!bt||!Ze)){if(bt[N]<Ze[N]){const wt=Ze[L]+(bt[N]-Ze[N]);we(wt,{animation:Re})}else if(bt[_]>Ze[_]){const wt=Ze[L]+(bt[_]-Ze[_]);we(wt,{animation:Re})}}}),ot=fe(()=>{R&&S!==!1&&le(!W)});f.useEffect(()=>{const Re=ur(()=>{ne.current&&Se()});let Ze;const bt=so=>{so.forEach(Co=>{Co.removedNodes.forEach(rt=>{Ze?.unobserve(rt)}),Co.addedNodes.forEach(rt=>{Ze?.observe(rt)})}),Re(),ot()},wt=dr(ne.current);wt.addEventListener("resize",Re);let Jt;return typeof ResizeObserver<"u"&&(Ze=new ResizeObserver(Re),Array.from(te.current.children).forEach(so=>{Ze.observe(so)})),typeof MutationObserver<"u"&&(Jt=new MutationObserver(bt),Jt.observe(te.current,{childList:!0})),()=>{Re.clear(),wt.removeEventListener("resize",Re),Jt?.disconnect(),Ze?.disconnect()}},[Se,ot]),f.useEffect(()=>{const Re=Array.from(te.current.children),Ze=Re.length;if(typeof IntersectionObserver<"u"&&Ze>0&&R&&S!==!1){const bt=Re[0],wt=Re[Ze-1],Jt={root:ne.current,threshold:.99},so=Kt=>{J(!Kt[0].isIntersecting)},Co=new IntersectionObserver(so,Jt);Co.observe(bt);const rt=Kt=>{ee(!Kt[0].isIntersecting)},Lt=new IntersectionObserver(rt,Jt);return Lt.observe(wt),()=>{Co.disconnect(),Lt.disconnect()}}},[R,S,W,d?.length]),f.useEffect(()=>{Q(!0)},[]),f.useEffect(()=>{Se()}),f.useEffect(()=>{Ge(h2!==q)},[Ge,q]),f.useImperativeHandle(c,()=>({updateIndicator:Se,updateScrollButtons:ot}),[Se,ot]);const[Tt,We]=Ae("indicator",{className:se(V.indicator,M.className),elementType:TL,externalForwardedProps:ye,ownerState:$,additionalProps:{style:q}}),Oe=v.jsx(Tt,{...We});let Ue=0;const ut=f.Children.map(d,Re=>{if(!f.isValidElement(Re))return null;process.env.NODE_ENV!=="production"&&ws.isFragment(Re)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
289
+ `));const Ze=Re.props.value===void 0?Ue:Re.props.value;ae.set(Ze,Ue);const bt=Ze===k;return Ue+=1,f.cloneElement(Re,{fullWidth:I==="fullWidth",indicator:bt&&!G&&Oe,selected:bt,selectionFollowsFocus:x,onChange:m,textColor:O,value:Ze,...Ue===1&&k===!1&&!Re.props.tabIndex?{tabIndex:0}:{}})}),zt=Re=>{if(Re.altKey||Re.shiftKey||Re.ctrlKey||Re.metaKey)return;const Ze=te.current,bt=Ca(Bt(Ze));if(bt?.getAttribute("role")!=="tab")return;let Jt=y==="horizontal"?"ArrowLeft":"ArrowUp",so=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&i&&(Jt="ArrowRight",so="ArrowLeft"),Re.key){case Jt:Re.preventDefault(),Hd(Ze,bt,f2);break;case so:Re.preventDefault(),Hd(Ze,bt,p2);break;case"Home":Re.preventDefault(),Hd(Ze,null,p2);break;case"End":Re.preventDefault(),Hd(Ze,null,f2);break}},Et=$e(),[zn,wn]=Ae("root",{ref:n,className:se(V.root,p),elementType:xL,externalForwardedProps:{...ye,...T,component:g},ownerState:$}),[jn,Gn]=Ae("scroller",{ref:ne,className:V.scroller,elementType:PL,externalForwardedProps:ye,ownerState:$,additionalProps:{style:{overflow:oe.overflow,[A?`margin${i?"Left":"Right"}`:"marginBottom"]:F?void 0:-oe.scrollbarWidth}}}),[_e,Ct]=Ae("list",{ref:te,className:se(V.list,V.flexContainer),elementType:EL,externalForwardedProps:ye,ownerState:$,getSlotProps:Re=>({...Re,onKeyDown:Ze=>{zt(Ze),Re.onKeyDown?.(Ze)}})});return v.jsxs(zn,{...wn,children:[Et.scrollButtonStart,Et.scrollbarSizeListener,v.jsxs(jn,{...Gn,children:[v.jsx(_e,{"aria-label":a,"aria-labelledby":l,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...Ct,children:ut}),G&&Oe]}),Et.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(m2.propTypes={action:Ft,allowScrollButtonsMobile:o.bool,"aria-label":o.string,"aria-labelledby":o.string,centered:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,indicatorColor:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),onChange:o.func,orientation:o.oneOf(["horizontal","vertical"]),ScrollButtonComponent:o.elementType,scrollButtons:o.oneOf(["auto",!1,!0]),selectionFollowsFocus:o.bool,slotProps:o.shape({endScrollButtonIcon:o.oneOfType([o.func,o.object]),indicator:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),scrollbar:o.oneOfType([o.func,o.object]),scrollButtons:o.oneOfType([o.func,o.object]),scroller:o.oneOfType([o.func,o.object]),startScrollButtonIcon:o.oneOfType([o.func,o.object])}),slots:o.shape({endScrollButtonIcon:o.elementType,EndScrollButtonIcon:o.elementType,indicator:o.elementType,list:o.elementType,root:o.elementType,scrollbar:o.elementType,scrollButtons:o.elementType,scroller:o.elementType,startScrollButtonIcon:o.elementType,StartScrollButtonIcon:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TabIndicatorProps:o.object,TabScrollButtonProps:o.object,textColor:o.oneOf(["inherit","primary","secondary"]),value:o.any,variant:o.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:o.bool});function ML(e){return ke("MuiTextField",e)}Me("MuiTextField",["root"]);const OL={standard:Ld,filled:Nd,outlined:Ad},kL=e=>{const{classes:t}=e;return pe({root:["root"]},ML,t)},DL=U(Ms,{name:"MuiTextField",slot:"Root"})({}),ks=f.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:i=!1,children:a,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:g,fullWidth:h=!1,helperText:b,id:m,InputLabelProps:y,inputProps:C,InputProps:S,inputRef:x,label:E,maxRows:P,minRows:M,multiline:D=!1,name:O,onBlur:k,onChange:I,onFocus:F,placeholder:T,required:R=!1,rows:A,select:L=!1,SelectProps:N,slots:_={},slotProps:H={},type:B,value:$,variant:V="outlined",...z}=r,j={...r,autoFocus:i,color:c,disabled:d,error:p,fullWidth:h,multiline:D,required:R,select:L,variant:V},G=kL(j);process.env.NODE_ENV!=="production"&&L&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Q=at(m),q=b&&Q?`${Q}-helper-text`:void 0,Y=E&&Q?`${Q}-label`:void 0,K=OL[V],J={slots:_,slotProps:{input:S,inputLabel:y,htmlInput:C,formHelperText:g,select:N,...H}},X={},ee=J.slotProps.inputLabel;V==="outlined"&&(ee&&typeof ee.shrink<"u"&&(X.notched=ee.shrink),X.label=E),L&&((!N||!N.native)&&(X.id=void 0),X["aria-describedby"]=void 0);const[W,le]=Ae("root",{elementType:DL,shouldForwardComponentProp:!0,externalForwardedProps:{...J,...z},ownerState:j,className:se(G.root,l),ref:n,additionalProps:{disabled:d,error:p,fullWidth:h,required:R,color:c,variant:V}}),[oe,re]=Ae("input",{elementType:K,externalForwardedProps:J,additionalProps:X,ownerState:j}),[ae,ne]=Ae("inputLabel",{elementType:di,externalForwardedProps:J,ownerState:j}),[te,ye]=Ae("htmlInput",{elementType:"input",externalForwardedProps:J,ownerState:j}),[ce,Se]=Ae("formHelperText",{elementType:Ng,externalForwardedProps:J,ownerState:j}),[we,Be]=Ae("select",{elementType:Os,externalForwardedProps:J,ownerState:j}),Fe=v.jsx(oe,{"aria-describedby":q,autoComplete:s,autoFocus:i,defaultValue:u,fullWidth:h,multiline:D,name:O,rows:A,maxRows:P,minRows:M,type:B,value:$,id:Q,inputRef:x,onBlur:k,onChange:I,onFocus:F,placeholder:T,inputProps:ye,slots:{input:_.htmlInput?te:void 0},...re});return v.jsxs(W,{...le,children:[E!=null&&E!==""&&v.jsx(ae,{htmlFor:Q,id:Y,...ne,children:E}),L?v.jsx(we,{"aria-describedby":q,id:Q,labelId:Y,value:$,input:Fe,...Be,children:a}):Fe,b&&v.jsx(ce,{id:q,...Se,children:b})]})});process.env.NODE_ENV!=="production"&&(ks.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:Ft,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"])});function FL(e){return ke("MuiToggleButton",e)}const tm=Me("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),b2=f.createContext({});process.env.NODE_ENV!=="production"&&(b2.displayName="ToggleButtonGroupContext");const y2=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(y2.displayName="ToggleButtonGroupButtonContext");function NL(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const RL=e=>{const{classes:t,fullWidth:n,selected:r,disabled:s,size:i,color:a}=e,l={root:["root",r&&"selected",s&&"disabled",n&&"fullWidth",`size${de(i)}`,a]};return pe(l,FL,t)},LL=U(Jo,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${de(n.size)}`]]}})(Ve(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${tm.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${tm.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(Qt()).map(([t])=>({props:{color:t},style:{[`&.${tm.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),v2=f.forwardRef(function(t,n){const{value:r,...s}=f.useContext(b2),i=f.useContext(y2),a=Zs({...s,selected:NL(t.value,r)},t),l=qe({props:a,name:"MuiToggleButton"}),{children:c,className:u,color:d="standard",disabled:p=!1,disableFocusRipple:g=!1,fullWidth:h=!1,onChange:b,onClick:m,selected:y,size:C="medium",value:S,...x}=l,E={...l,color:d,disabled:p,disableFocusRipple:g,fullWidth:h,size:C},P=RL(E),M=O=>{m&&(m(O,S),O.defaultPrevented)||b&&b(O,S)},D=i||"";return v.jsx(LL,{className:se(s.className,P.root,u,D),disabled:p,focusRipple:!g,ref:n,onClick:M,onChange:b,value:S,ownerState:E,"aria-pressed":y,...x,children:c})});process.env.NODE_ENV!=="production"&&(v2.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["standard","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,fullWidth:o.bool,onChange:o.func,onClick:o.func,selected:o.bool,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]),value:o.any.isRequired});const zd=Nv({themeId:qo}),Ds=7,mt={"gr-purple":{main:"#9D11F2",50:"#F5E7FE",100:"#EBCFFC",200:"#D79EFA",300:"#C26EF7",400:"#AE3EF4",500:"#9D11F2",600:"#7B0BC1",700:"#5C0891",800:"#3E0561",900:"#1F0330",950:"#0F0118"},"gr-lilac":{main:"#C85DF0",50:"#F7E8FD",100:"#EFD0FB",200:"#E0A2F6",300:"#D073F2",400:"#C144EE",500:"#C85DF0",600:"#8E11BB",700:"#6A0D8C",800:"#47095D",900:"#23042F",950:"#120217"},"gr-pink":{main:"#FE22F0",50:"#FFE6FD",100:"#FFCCFB",200:"#FF99F8",300:"#FE67F4",400:"#FE34F1",500:"#FE22F0",600:"#CB01BE",700:"#98018E",800:"#66005F",900:"#33002F",950:"#190018"},"gr-red":{main:"#FE0037",50:"#FFE5EB",100:"#FFCCD7",200:"#FF99AF",300:"#FF6687",400:"#FF335F",500:"#FE0037",600:"#CC002C",700:"#990021",800:"#660016",900:"#33000B",950:"#1A0006"},"gr-orange":{main:"#FB6000",50:"#FFEFE5",100:"#FFE0CC",200:"#FFC099",300:"#FFA166",400:"#FF8133",500:"#FB6000",600:"#CC4E00",700:"#993B00",800:"#662700",900:"#331400",950:"#1A0A00"},"gr-yellow":{main:"#F0C300",50:"#FFFAE5",100:"#FFF6CC",200:"#FFEC99",300:"#FFE366",400:"#FFDA33",500:"#F0C300",600:"#CCA700",700:"#997D00",800:"#665300",900:"#332A00",950:"#1A1500"},"gr-moss-green":{main:"#CAD900",50:"#FDFFE5",100:"#FCFFCC",200:"#F8FF99",300:"#F5FF66",400:"#F1FF33",500:"#CAD900",600:"#BECC00",700:"#8F9900",800:"#5F6600",900:"#303300",950:"#181A00"},"gr-green":{main:"#64E700",50:"#F1FFE5",100:"#E2FFCC",200:"#C5FF99",300:"#A8FF66",400:"#8BFF33",500:"#64E700",600:"#58CC00",700:"#429900",800:"#2C6600",900:"#163300",950:"#0B1A00"},"gr-neon-green":{main:"#00EA85",50:"#E5FFF4",100:"#CCFFE9",200:"#99FFD3",300:"#66FFBD",400:"#33FFA7",500:"#00EA85",600:"#00CC74",700:"#009957",800:"#00663A",900:"#00331D",950:"#001A0E"},"gr-sky-blue":{main:"#00DBE7",50:"#E5FEFF",100:"#CCFCFF",200:"#99FAFF",300:"#66F7FF",400:"#33F5FF",500:"#00DBE7",600:"#00C2CC",700:"#009199",800:"#006166",900:"#003033",950:"#00181A"},"gr-midium-blue":{main:"#008CF0",50:"#E5F4FF",100:"#CCEAFF",200:"#99D5FF",300:"#66BFFF",400:"#3AF",500:"#008CF0",600:"#07C",700:"#005999",800:"#003C66",900:"#001E33",950:"#000F1A"},"gr-blue":{main:"#2F43FF",50:"#E5E8FF",100:"#CCD1FF",200:"#99A3FF",300:"#6675FF",400:"#3347FF",500:"#2F43FF",600:"#0014CC",700:"#000F99",800:"#000A66",900:"#000533",950:"#00031A"},"gr-grey":{main:"#474541",dark:"#9D9A95",light:"#F3F2F2",50:"#F3F2F2",100:"#E7E6E4",200:"#CECDCA",300:"#B6B4AF",400:"#9D9A95",500:"#474541",600:"#6A6762",700:"#504E49",800:"#353431",900:"#1B1A18",950:"#0D0D0C"},"gr-base-dark":{main:"#190007"},"gr-base-light":{main:"#EBEAE0"}},$L={styleOverrides:{root:({ownerState:e})=>{const t=!e.color||e.color==="primary",{multiline:n,rows:r}=e;let s=44;return n&&(s=44+((typeof r=="number"?r:1)-1)*30),e.className?.includes("MuiDataGrid-columnHeaderFilterInput")&&e.color==="error"?{"& .MuiInputLabel-root":{color:mt["gr-grey"].light,"&.Mui-focused":{color:mt["gr-grey"][200]}},"& .MuiOutlinedInput-root":{borderRadius:"16px",height:`${s}px`,color:mt["gr-grey"].light,"& .MuiOutlinedInput-notchedOutline":{borderColor:mt["gr-grey"].light},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:mt["gr-grey"][100]},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:mt["gr-grey"][200]},"& input":{color:mt["gr-grey"].light},"& input::placeholder":{color:mt["gr-grey"][400],opacity:1}}}:t?{"& .MuiInputLabel-root":{color:mt["gr-grey"].main,"&.Mui-focused":{color:mt["gr-grey"][700]}},"& .MuiOutlinedInput-root":{borderRadius:"16px",height:`${s}px`,color:mt["gr-grey"].main,"& .MuiOutlinedInput-notchedOutline":{borderColor:mt["gr-grey"].main},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:mt["gr-grey"][600]},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:mt["gr-grey"][700]},"& input":{color:mt["gr-grey"].main},"& input::placeholder":{color:mt["gr-grey"][400],opacity:1}}}:{"& .MuiInputLabel-root":{color:mt["gr-grey"].main,"&.Mui-focused":{color:mt["gr-grey"][700]}},"& .MuiOutlinedInput-root":{borderRadius:"16px",height:`${s}px`,color:mt["gr-grey"].main,"& input":{color:mt["gr-grey"].main},"& input::placeholder":{color:mt["gr-grey"][400],opacity:1}}}}}},AL={styleOverrides:{root:({ownerState:e})=>{const t=!e.color||e.color==="primary",{multiline:n,rows:r}=e;let s=44;return n&&(s=44+((typeof r=="number"?r:1)-1)*40),t?{borderRadius:"16px",height:`${s}px`,color:mt["gr-grey"].main,"& .MuiOutlinedInput-notchedOutline":{borderColor:mt["gr-grey"].main},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:mt["gr-grey"][600]},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:mt["gr-grey"][700]},"& input":{color:mt["gr-grey"].main},"& input::placeholder":{color:mt["gr-grey"][400],opacity:1}}:{borderRadius:"16px",height:`${s}px`,color:mt["gr-grey"].main,"& input":{color:mt["gr-grey"].main},"& input::placeholder":{color:mt["gr-grey"][400],opacity:1}}}}},VL={styleOverrides:{root:()=>({color:mt["gr-grey"].main,"&.Mui-focused":{color:mt["gr-grey"][700]}})}},_L={fontFamily:["Articulat CF"].join(","),h1:{fontFamily:"Articulat CF",fontWeight:"bold",fontSize:"36px",color:mt["gr-base-dark"].main},h2:{fontFamily:"Articulat CF",fontWeight:"bold",fontSize:"32px",color:mt["gr-grey"].main},h3:{fontFamily:"Articulat CF",fontWeight:"bold",fontSize:"24px",color:mt["gr-grey"].main},h4:{fontFamily:"Articulat CF",fontWeight:"bold",fontSize:"22px",color:mt["gr-grey"].main},body1:{fontFamily:"Articulat CF",fontWeight:"medium",fontSize:"18px",color:mt["gr-base-dark"].main},body2:{fontFamily:"Articulat CF",fontWeight:"medium",fontSize:"16px",color:mt["gr-base-dark"].main},button:{fontFamily:"Articulat CF",fontWeight:"demi bold",fontSize:"18px",color:mt["gr-base-dark"].main}},C2={palette:{mode:"dark",background:{default:"#EBEAE0",paper:mt["gr-base-dark"].main},primary:{main:"#474541"},secondary:{main:"#C85DF0"},success:{main:"#00EA84"},warning:{main:"#F0C300"},error:{main:"#FE0037"},info:{main:"#2F43FF"},...mt},typography:_L,components:{MuiTextField:$L,MuiOutlinedInput:AL,MuiInputLabel:VL}},BL=Js(C2),HL=Js({palette:{mode:"light",background:{default:"#EBEAE0",paper:"#EBEAE0"},primary:{main:"#9D11F2"},secondary:{main:"#C85DF0"},success:{main:"#00EA84"},warning:{main:"#F0C300"},error:{main:"#FE0037"},info:{main:"#2F43FF"}},typography:{fontFamily:["Articulat CF","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),h1:{fontFamily:"Articulat CF, sans-serif",fontWeight:700},h2:{fontFamily:"Articulat CF, sans-serif",fontWeight:700},h3:{fontFamily:"Articulat CF, sans-serif",fontWeight:600},h4:{fontFamily:"Articulat CF, sans-serif",fontWeight:600},h5:{fontFamily:"Articulat CF, sans-serif",fontWeight:500},h6:{fontFamily:"Articulat CF, sans-serif",fontWeight:500},body1:{fontFamily:"Articulat CF, sans-serif",fontWeight:400},body2:{fontFamily:"Articulat CF, sans-serif",fontWeight:400},button:{fontFamily:"Articulat CF, sans-serif",fontWeight:500,textTransform:"none"},caption:{fontFamily:"Articulat CF, sans-serif",fontWeight:400},overline:{fontFamily:"Articulat CF, sans-serif",fontWeight:400}}});var jd={exports:{}},zL=jd.exports,w2;function nm(){return w2||(w2=1,(function(e,t){(function(n,r){e.exports=r()})(zL,(function(){var n=1e3,r=6e4,s=36e5,i="millisecond",a="second",l="minute",c="hour",u="day",d="week",p="month",g="quarter",h="year",b="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var L=["th","st","nd","rd"],N=A%100;return"["+A+(L[(N-20)%10]||L[N]||L[0])+"]"}},x=function(A,L,N){var _=String(A);return!_||_.length>=L?A:""+Array(L+1-_.length).join(N)+A},E={s:x,z:function(A){var L=-A.utcOffset(),N=Math.abs(L),_=Math.floor(N/60),H=N%60;return(L<=0?"+":"-")+x(_,2,"0")+":"+x(H,2,"0")},m:function A(L,N){if(L.date()<N.date())return-A(N,L);var _=12*(N.year()-L.year())+(N.month()-L.month()),H=L.clone().add(_,p),B=N-H<0,$=L.clone().add(_+(B?-1:1),p);return+(-(_+(N-H)/(B?H-$:$-H))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:p,y:h,w:d,d:u,D:b,h:c,m:l,s:a,ms:i,Q:g}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},P="en",M={};M[P]=S;var D="$isDayjsObject",O=function(A){return A instanceof T||!(!A||!A[D])},k=function A(L,N,_){var H;if(!L)return P;if(typeof L=="string"){var B=L.toLowerCase();M[B]&&(H=B),N&&(M[B]=N,H=B);var $=L.split("-");if(!H&&$.length>1)return A($[0])}else{var V=L.name;M[V]=L,H=V}return!_&&H&&(P=H),H||!_&&P},I=function(A,L){if(O(A))return A.clone();var N=typeof L=="object"?L:{};return N.date=A,N.args=arguments,new T(N)},F=E;F.l=k,F.i=O,F.w=function(A,L){return I(A,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var T=(function(){function A(N){this.$L=k(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[D]=!0}var L=A.prototype;return L.parse=function(N){this.$d=(function(_){var H=_.date,B=_.utc;if(H===null)return new Date(NaN);if(F.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var $=H.match(y);if($){var V=$[2]-1||0,z=($[7]||"0").substring(0,3);return B?new Date(Date.UTC($[1],V,$[3]||1,$[4]||0,$[5]||0,$[6]||0,z)):new Date($[1],V,$[3]||1,$[4]||0,$[5]||0,$[6]||0,z)}}return new Date(H)})(N),this.init()},L.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},L.$utils=function(){return F},L.isValid=function(){return this.$d.toString()!==m},L.isSame=function(N,_){var H=I(N);return this.startOf(_)<=H&&H<=this.endOf(_)},L.isAfter=function(N,_){return I(N)<this.startOf(_)},L.isBefore=function(N,_){return this.endOf(_)<I(N)},L.$g=function(N,_,H){return F.u(N)?this[_]:this.set(H,N)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(N,_){var H=this,B=!!F.u(_)||_,$=F.p(N),V=function(J,X){var ee=F.w(H.$u?Date.UTC(H.$y,X,J):new Date(H.$y,X,J),H);return B?ee:ee.endOf(u)},z=function(J,X){return F.w(H.toDate()[J].apply(H.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(X)),H)},j=this.$W,G=this.$M,Q=this.$D,q="set"+(this.$u?"UTC":"");switch($){case h:return B?V(1,0):V(31,11);case p:return B?V(1,G):V(0,G+1);case d:var Y=this.$locale().weekStart||0,K=(j<Y?j+7:j)-Y;return V(B?Q-K:Q+(6-K),G);case u:case b:return z(q+"Hours",0);case c:return z(q+"Minutes",1);case l:return z(q+"Seconds",2);case a:return z(q+"Milliseconds",3);default:return this.clone()}},L.endOf=function(N){return this.startOf(N,!1)},L.$set=function(N,_){var H,B=F.p(N),$="set"+(this.$u?"UTC":""),V=(H={},H[u]=$+"Date",H[b]=$+"Date",H[p]=$+"Month",H[h]=$+"FullYear",H[c]=$+"Hours",H[l]=$+"Minutes",H[a]=$+"Seconds",H[i]=$+"Milliseconds",H)[B],z=B===u?this.$D+(_-this.$W):_;if(B===p||B===h){var j=this.clone().set(b,1);j.$d[V](z),j.init(),this.$d=j.set(b,Math.min(this.$D,j.daysInMonth())).$d}else V&&this.$d[V](z);return this.init(),this},L.set=function(N,_){return this.clone().$set(N,_)},L.get=function(N){return this[F.p(N)]()},L.add=function(N,_){var H,B=this;N=Number(N);var $=F.p(_),V=function(G){var Q=I(B);return F.w(Q.date(Q.date()+Math.round(G*N)),B)};if($===p)return this.set(p,this.$M+N);if($===h)return this.set(h,this.$y+N);if($===u)return V(1);if($===d)return V(7);var z=(H={},H[l]=r,H[c]=s,H[a]=n,H)[$]||1,j=this.$d.getTime()+N*z;return F.w(j,this)},L.subtract=function(N,_){return this.add(-1*N,_)},L.format=function(N){var _=this,H=this.$locale();if(!this.isValid())return H.invalidDate||m;var B=N||"YYYY-MM-DDTHH:mm:ssZ",$=F.z(this),V=this.$H,z=this.$m,j=this.$M,G=H.weekdays,Q=H.months,q=H.meridiem,Y=function(X,ee,W,le){return X&&(X[ee]||X(_,B))||W[ee].slice(0,le)},K=function(X){return F.s(V%12||12,X,"0")},J=q||function(X,ee,W){var le=X<12?"AM":"PM";return W?le.toLowerCase():le};return B.replace(C,(function(X,ee){return ee||(function(W){switch(W){case"YY":return String(_.$y).slice(-2);case"YYYY":return F.s(_.$y,4,"0");case"M":return j+1;case"MM":return F.s(j+1,2,"0");case"MMM":return Y(H.monthsShort,j,Q,3);case"MMMM":return Y(Q,j);case"D":return _.$D;case"DD":return F.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Y(H.weekdaysMin,_.$W,G,2);case"ddd":return Y(H.weekdaysShort,_.$W,G,3);case"dddd":return G[_.$W];case"H":return String(V);case"HH":return F.s(V,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return J(V,z,!0);case"A":return J(V,z,!1);case"m":return String(z);case"mm":return F.s(z,2,"0");case"s":return String(_.$s);case"ss":return F.s(_.$s,2,"0");case"SSS":return F.s(_.$ms,3,"0");case"Z":return $}return null})(X)||$.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(N,_,H){var B,$=this,V=F.p(_),z=I(N),j=(z.utcOffset()-this.utcOffset())*r,G=this-z,Q=function(){return F.m($,z)};switch(V){case h:B=Q()/12;break;case p:B=Q();break;case g:B=Q()/3;break;case d:B=(G-j)/6048e5;break;case u:B=(G-j)/864e5;break;case c:B=G/s;break;case l:B=G/r;break;case a:B=G/n;break;default:B=G}return H?B:F.a(B)},L.daysInMonth=function(){return this.endOf(p).$D},L.$locale=function(){return M[this.$L]},L.locale=function(N,_){if(!N)return this.$L;var H=this.clone(),B=k(N,_,!0);return B&&(H.$L=B),H},L.clone=function(){return F.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},A})(),R=T.prototype;return I.prototype=R,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",p],["$y",h],["$D",b]].forEach((function(A){R[A[1]]=function(L){return this.$g(L,A[0],A[1])}})),I.extend=function(A,L){return A.$i||(A(L,T,I),A.$i=!0),I},I.locale=k,I.isDayjs=O,I.unix=function(A){return I(1e3*A)},I.en=M[P],I.Ls=M,I.p={},I}))})(jd)),jd.exports}var jL=nm();const In=ys(jL);var Gd={exports:{}},GL=Gd.exports,S2;function WL(){return S2||(S2=1,(function(e,t){(function(n,r){e.exports=r(nm())})(GL,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var s=r(n),i={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(a){return a+"º"}};return s.default.locale(i,null,!0),i}))})(Gd)),Gd.exports}WL();var Wd={exports:{}},UL=Wd.exports,x2;function qL(){return x2||(x2=1,(function(e,t){(function(n,r){e.exports=r()})(UL,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],s=n%100;return"["+n+(r[(s-20)%10]||r[s]||r[0])+"]"}}}))})(Wd)),Wd.exports}qL();var Ud={exports:{}},YL=Ud.exports,P2;function KL(){return P2||(P2=1,(function(e,t){(function(n,r){e.exports=r(nm())})(YL,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var s=r(n),i={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(a){return a+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return s.default.locale(i,null,!0),i}))})(Ud)),Ud.exports}KL();const gr=he.createContext({}),E2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%203000%20551.6'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23190007;}.cls-1,.cls-2,.cls-3{stroke-width:0px;}.cls-2{fill:%23f0c300;}.cls-3{fill:%23ebeae0;}%3c/style%3e%3c/defs%3e%3cpath%20class='cls-3'%20d='m871.49,259.5v9.04c-9.81,0-17.5.94-23.05,2.83-5.55,1.88-9.6,5.43-12.16,10.65-2.56,5.23-4.16,12.65-4.8,22.26-.64,9.61-.96,21.94-.96,36.97v119.73c-6.82,11.28-14.9,21.11-24.26,29.46-8.09,7.53-18.21,14.42-30.34,20.68-12.13,6.26-26.51,9.4-43.1,9.4-17.88,0-34.7-5.85-50.45-17.55-15.75-11.7-29.38-28.41-40.87-50.14s-20.54-47.75-27.14-78.04c-6.6-30.29-9.9-64.25-9.9-101.86,0-44.29,4.03-81.79,12.11-112.5,8.07-30.71,18.27-55.57,30.6-74.59,12.32-19.01,26.14-32.8,41.45-41.37,15.3-8.56,29.96-12.85,44-12.85,8.93,0,16.58,1.05,22.95,3.12,6.37,2.07,12,4.25,16.89,6.53,4.89,2.28,9.14,4.46,12.75,6.54,3.62,2.07,6.91,3.11,9.89,3.11,3.82,0,6.58-2.2,8.29-6.63.87-1.6,1.52-3.62,1.95-6.03h14.33v149.21h-12.06c-2.98-26.31-7.43-49.7-13.37-70.16-2.54-8.76-5.41-17.32-8.59-25.68-3.18-8.35-7-15.86-11.45-22.55-4.46-6.68-9.54-12-15.27-15.98-5.73-3.97-11.99-5.95-18.77-5.95-12.73,0-23.55,5.44-32.46,16.31-8.91,10.87-16.12,26.14-21.63,45.79-5.52,19.65-9.55,43.39-12.09,71.19-2.54,27.81-3.81,58.64-3.81,92.52,0,41.82,1.59,77.15,4.79,106.01,3.19,28.86,7.77,52.28,13.73,70.26,5.96,17.98,13.41,30.94,22.36,38.88,8.94,7.95,19.16,11.92,30.66,11.92,10.64,0,17.46-3.14,20.44-9.41s4.47-15.89,4.47-28.86v-128.6c0-13.38-.54-24.36-1.6-32.93-1.07-8.57-3.64-15.17-7.69-19.76-4.06-4.6-10.14-7.73-18.25-9.41-8.11-1.68-19.21-2.51-33.29-2.51v-9.04h165.7Z'/%3e%3cpath%20class='cls-3'%20d='m1103.45,333.04c0,31.29-3.32,58.31-9.95,81.04s-15.51,41.52-26.64,56.33c-11.13,14.81-23.86,25.76-38.2,32.85-14.34,7.08-29.2,10.63-44.6,10.63s-30.17-3.55-44.29-10.63c-14.12-7.09-26.74-18.05-37.87-32.85-11.13-14.81-20.01-33.59-26.64-56.33s-9.95-49.75-9.95-81.04,3.32-58.31,9.95-81.04,15.5-41.41,26.64-56.01c11.12-14.6,23.75-25.45,37.87-32.54,14.12-7.09,28.88-10.64,44.29-10.64s30.26,3.55,44.6,10.64c14.34,7.09,27.06,17.94,38.2,32.54,11.12,14.6,20.01,33.27,26.64,56.01s9.95,49.75,9.95,81.04Zm-59.68,0c0-22.94-1.07-44.41-3.21-64.44-2.15-20.02-5.68-37.54-10.6-52.55-4.92-15.01-11.12-26.89-18.61-35.65-7.49-8.76-16.58-13.14-27.28-13.14s-19.8,4.38-27.29,13.14c-7.49,8.76-13.58,20.64-18.29,35.65-4.71,15.01-8.13,32.53-10.27,52.55-2.15,20.03-3.21,41.5-3.21,64.44s1.06,44.53,3.21,64.75c2.14,20.23,5.56,37.85,10.27,52.86,4.71,15.01,10.8,26.8,18.29,35.35,7.49,8.55,16.59,12.82,27.29,12.82s19.79-4.27,27.28-12.82c7.49-8.55,13.7-20.34,18.61-35.35,4.92-15.01,8.45-32.63,10.6-52.86,2.14-20.22,3.21-41.8,3.21-64.75Z'/%3e%3cpath%20class='cls-3'%20d='m1360.25,333.04c0,31.29-3.32,58.31-9.95,81.04-6.63,22.74-15.51,41.52-26.64,56.33-11.13,14.81-23.86,25.76-38.2,32.85-14.34,7.08-29.2,10.63-44.6,10.63s-30.17-3.55-44.29-10.63c-14.12-7.09-26.74-18.05-37.87-32.85-11.13-14.81-20.01-33.59-26.64-56.33s-9.95-49.75-9.95-81.04,3.32-58.31,9.95-81.04,15.5-41.41,26.64-56.01c11.12-14.6,23.75-25.45,37.87-32.54,14.12-7.09,28.88-10.64,44.29-10.64s30.26,3.55,44.6,10.64c14.34,7.09,27.06,17.94,38.2,32.54,11.12,14.6,20.01,33.27,26.64,56.01,6.63,22.74,9.95,49.75,9.95,81.04Zm-59.68,0c0-22.94-1.07-44.41-3.21-64.44-2.15-20.02-5.68-37.54-10.6-52.55-4.92-15.01-11.12-26.89-18.61-35.65-7.49-8.76-16.58-13.14-27.28-13.14s-19.8,4.38-27.29,13.14c-7.49,8.76-13.58,20.64-18.29,35.65-4.71,15.01-8.13,32.53-10.27,52.55-2.15,20.03-3.21,41.5-3.21,64.44s1.06,44.53,3.21,64.75c2.14,20.23,5.56,37.85,10.27,52.86,4.71,15.01,10.8,26.8,18.29,35.35s16.59,12.82,27.29,12.82,19.79-4.27,27.28-12.82c7.49-8.55,13.7-20.34,18.61-35.35,4.92-15.01,8.45-32.63,10.6-52.86,2.14-20.22,3.21-41.8,3.21-64.75Z'/%3e%3cpath%20class='cls-3'%20d='m1617.66,426.25c0,16.28.42,29.21,1.28,38.8.85,9.6,2.67,16.9,5.43,21.9,2.77,5.01,6.83,8.24,12.17,9.7,5.33,1.46,12.48,2.19,21.45,2.19v9.04h-100.01v-44.67c-8.56,16.28-19.79,28.79-33.69,37.55-13.9,8.75-29.2,13.14-45.88,13.14-12.84,0-25.14-4.17-36.9-12.52-11.76-8.35-22.35-20.23-31.76-35.67-9.42-15.43-16.91-34.42-22.47-56.95-5.56-22.53-8.34-47.77-8.34-75.72s2.78-53.61,8.34-75.72c5.56-22.12,13.05-40.99,22.47-56.64,9.41-15.65,20-27.53,31.76-35.67,11.76-8.14,24.07-12.21,36.9-12.21,16.68,0,31.98,4.28,45.88,12.83,13.9,8.55,25.13,21.17,33.69,37.86v-58.12c0-12.5-.75-22.81-2.24-30.93-1.5-8.12-3.84-14.58-7.05-19.38-3.2-4.79-7.47-8.02-12.8-9.68-5.34-1.67-11.63-2.51-18.89-2.51v-9.04c20.48-.41,38.74-3.43,54.78-9.04,16.03-5.61,28.33-14.46,36.89-26.52h8.99v387.98Zm-59.68-141.35c0-33.76-5.36-59.39-16.06-76.9-10.71-17.5-23.98-26.26-39.82-26.26-7.71,0-15.21,2.3-22.48,6.88-7.28,4.59-13.81,12.61-19.59,24.08-5.78,11.46-10.5,26.88-14.14,46.27-3.64,19.38-5.45,44.07-5.45,74.08s1.82,54.71,5.45,74.09c3.64,19.38,8.35,34.91,14.14,46.58,5.78,11.67,12.31,19.8,19.59,24.38,7.27,4.59,14.77,6.88,22.48,6.88,15.84,0,29.12-8.85,39.82-26.57,10.7-17.71,16.06-43.24,16.06-76.59v-96.91Z'/%3e%3cpath%20class='cls-3'%20d='m1899.3,426.35c5.12,15,9.71,27.18,13.76,36.56,4.05,9.37,8.53,16.56,13.44,21.55,4.91,5,10.35,8.44,16.33,10.31,5.97,1.87,13.44,3.23,22.41,4.06v9.04h-56.98c-19.64,0-34.04-2.39-43.22-7.2-9.17-4.79-16.12-14.7-20.81-29.72l-47.56-145.78c-3.43-11.27-9-19.39-16.72-24.41-7.71-5-15.43-7.51-23.13-7.51h-3.62v133.09c0,15,.32,27.29.96,36.87.64,9.59,2.24,16.98,4.8,22.18,2.56,5.21,6.61,8.75,12.16,10.63s13.44,2.81,23.69,2.81v9.04h-146.49v-9.04c9.81,0,17.49-.93,23.04-2.82,5.55-1.87,9.61-5.42,12.17-10.63,2.56-5.21,4.16-12.61,4.8-22.2s.96-21.89.96-36.9V111.09c0-13.34-.32-24.17-.96-32.52-.64-8.34-2.35-14.8-5.12-19.38-2.78-4.59-6.94-7.71-12.49-9.38-5.55-1.67-13.02-2.51-22.4-2.51v-9.04h124.66c25.12,0,46.52,3.24,64.19,9.71,17.67,6.48,32.26,15.35,43.76,26.63,11.5,11.28,19.91,24.65,25.23,40.1,5.32,15.46,7.99,32.37,7.99,50.75,0,30.08-7.03,55.97-21.08,77.69-14.05,21.72-37.06,36.55-68.99,44.48,10.39,2.51,19.01,7.39,25.87,14.68,6.85,7.29,13.05,19.06,18.6,35.3l30.73,88.74Zm-126.27-148.76c12.78,0,23.97-1.87,33.56-5.63,9.59-3.76,17.47-10.02,23.65-18.8,6.18-8.77,10.76-20.36,13.74-34.77,2.98-14.41,4.47-32.05,4.47-52.94s-1.92-38.42-5.76-52.63c-3.84-14.19-8.84-25.68-15.02-34.46-6.18-8.77-13.32-15.03-21.42-18.79-8.1-3.76-16.62-5.64-25.56-5.64s-16.3,3.24-20.78,9.71c-4.47,6.48-6.71,15.35-6.71,26.63v187.31h19.82Z'/%3e%3cpath%20class='cls-3'%20d='m2149.7,426.25c0,16.28.42,29.21,1.28,38.8.85,9.6,2.67,16.9,5.44,21.9,2.77,5.01,6.93,8.24,12.48,9.7,5.55,1.46,12.8,2.19,21.77,2.19v9.04h-100.65l.03-49.67c-7.27,17.94-17.11,31.71-29.51,41.3-12.4,9.59-26.3,14.39-41.69,14.39-10.69,0-20.96-1.36-30.79-4.06-9.83-2.71-18.28-7.3-25.34-13.76-7.06-6.46-12.72-14.9-16.99-25.32-4.28-10.42-6.41-23.34-6.41-38.77,0-18.33,3.74-33.97,11.22-46.89,7.48-12.92,16.79-24.07,27.9-33.45,11.11-9.38,23.19-17.41,36.24-24.08,13.04-6.67,25.12-12.91,36.24-18.75s20.41-11.67,27.89-17.51c7.48-5.83,11.23-12.5,11.23-20.01v-6.25c0-28.34-5.56-50.02-16.67-65.02-11.11-15-25.65-22.51-43.6-22.51-13.25,0-24.58,3.92-33.98,11.76-9.4,7.84-16.24,20.42-20.52,37.74,3.41-1.24,7.05-1.87,10.89-1.87,9.4,0,17.41,3.23,24.03,9.69,6.61,6.46,9.93,14.49,9.93,24.08s-3.33,16.99-9.96,23.45c-6.64,6.46-14.67,9.69-24.09,9.69s-18.09-3.22-24.73-9.67c-6.64-6.45-9.96-14.26-9.96-23.43,0-15.4,2.46-29.56,7.38-42.46,4.92-12.9,11.88-24.04,20.86-33.4s19.68-16.76,32.09-22.17c12.41-5.41,26.1-8.12,41.08-8.12,13.7,0,26.53,2.51,38.52,7.51,11.98,5.01,22.25,12.83,30.81,23.46,8.55,10.64,15.3,24.2,20.21,40.67,4.92,16.48,7.38,36.4,7.38,59.76v142.04Zm-59.68-125.75c-6.84,7.09-15.49,13.66-25.97,19.71-10.47,6.05-20.52,13.23-30.12,21.57-9.62,8.35-17.84,18.66-24.68,30.96-6.84,12.3-10.26,28.25-10.26,47.84,0,24.19,2.99,40.86,8.98,50.04,5.98,9.17,14.32,13.75,25,13.75,13.24,0,25.22-6.25,35.9-18.76,10.68-12.51,17.74-30.85,21.16-55.04v-110.06Z'/%3e%3cpath%20class='cls-3'%20d='m2353.01,152.8c12.79,0,25.17,4.07,37.12,12.21,11.94,8.14,22.51,20.03,31.69,35.67,9.17,15.65,16.63,34.52,22.4,56.64,5.76,22.12,8.65,47.35,8.65,75.72s-2.88,53.19-8.64,75.72c-5.76,22.53-13.22,41.52-22.38,56.95-9.17,15.44-19.72,27.33-31.66,35.67-11.94,8.35-24.3,12.52-37.09,12.52-16.63,0-31.77-4.35-45.41-13.04-13.65-8.68-24.74-21.17-33.26-37.46v44.47h-100.01v-9.04c8.96,0,16.11-.73,21.44-2.19s9.39-4.69,12.17-9.7c2.77-5,4.59-12.3,5.44-21.89.85-9.59,1.28-22.51,1.28-38.78V145.43c0-12.51-.75-22.83-2.24-30.96-1.5-8.13-3.84-14.59-7.05-19.39-3.2-4.79-7.36-8.03-12.48-9.69-5.12-1.67-11.31-2.51-18.57-2.51v-9.04c20.48-.41,38.64-3.43,54.46-9.04,15.82-5.61,28.01-14.46,36.57-26.52h8.99l-.15,165.22c8.53-16.68,19.62-29.3,33.28-37.86s28.8-12.83,45.46-12.83Zm38.36,180.24c0-30.01-1.82-54.7-5.43-74.08-3.62-19.38-8.31-34.8-14.05-46.27-5.76-11.46-12.36-19.49-19.82-24.08-7.46-4.58-15.01-6.88-22.68-6.88-15.34,0-28.34,8.76-38.99,26.26-10.65,17.51-15.98,43.14-15.98,76.9v96.91c0,33.34,5.32,58.88,15.98,76.59,10.64,17.72,23.64,26.57,38.99,26.57,7.67,0,15.22-2.29,22.68-6.88,7.46-4.58,14.06-12.71,19.82-24.38,5.75-11.67,10.44-27.19,14.05-46.58,3.62-19.38,5.43-44.08,5.43-74.09Z'/%3e%3cpath%20class='cls-3'%20d='m2618.79,152.8c12.79,0,25.17,4.07,37.12,12.21,11.94,8.14,22.51,20.03,31.69,35.67,9.17,15.65,16.63,34.52,22.4,56.64,5.76,22.12,8.65,47.35,8.65,75.72s-2.88,53.19-8.64,75.72c-5.76,22.53-13.22,41.52-22.38,56.95-9.17,15.44-19.72,27.33-31.66,35.67-11.94,8.35-24.3,12.52-37.09,12.52-16.63,0-31.77-4.35-45.41-13.04-13.65-8.68-24.74-21.17-33.26-37.46v44.47h-100.01v-9.04c8.96,0,16.11-.73,21.44-2.19s9.39-4.69,12.17-9.7c2.77-5,4.59-12.3,5.44-21.89.85-9.59,1.28-22.51,1.28-38.78V145.43c0-12.51-.75-22.83-2.24-30.96-1.5-8.13-3.84-14.59-7.05-19.39-3.2-4.79-7.36-8.03-12.48-9.69-5.12-1.67-11.31-2.51-18.57-2.51v-9.04c20.48-.41,38.64-3.43,54.46-9.04,15.82-5.61,28.01-14.46,36.57-26.52h8.99l-.15,165.22c8.53-16.68,19.62-29.3,33.28-37.86s28.8-12.83,45.46-12.83Zm38.36,180.24c0-30.01-1.82-54.7-5.43-74.08-3.62-19.38-8.31-34.8-14.05-46.27-5.76-11.46-12.36-19.49-19.82-24.08-7.46-4.58-15.01-6.88-22.68-6.88-15.34,0-28.34,8.76-38.99,26.26-10.65,17.51-15.98,43.14-15.98,76.9v96.91c0,33.34,5.32,58.88,15.98,76.59,10.64,17.72,23.64,26.57,38.99,26.57,7.67,0,15.22-2.29,22.68-6.88,7.46-4.58,14.06-12.71,19.82-24.38,5.75-11.67,10.44-27.19,14.05-46.58,3.62-19.38,5.43-44.08,5.43-74.09Z'/%3e%3cpath%20class='cls-3'%20d='m2806.58,426.17c0,16.29.42,29.23,1.28,38.84.85,9.61,2.67,16.91,5.43,21.92,2.77,5.01,6.93,8.25,12.48,9.71,5.55,1.47,12.81,2.19,21.78,2.19v9.04h-140.99v-9.04c8.96,0,16.11-.73,21.44-2.19s9.39-4.69,12.17-9.7c2.77-5.01,4.59-12.31,5.44-21.91.85-9.59,1.28-22.52,1.28-38.8v-160.84c0-12.52-.75-22.84-2.24-30.98-1.5-8.14-3.84-14.5-7.05-19.08-3.2-4.59-7.36-7.71-12.48-9.39-5.12-1.67-11.31-2.51-18.57-2.51v-9.04c20.48-.83,38.74-4.07,54.78-9.7,16.03-5.63,28.33-14.3,36.89-26h8.35v267.47Zm-34.95-306.52c-11.92,0-22.14-4.06-30.65-12.19-8.52-8.12-12.77-18.02-12.77-29.7s4.26-22.19,12.77-30.32c8.52-8.12,18.73-12.19,30.65-12.19s22.02,4.07,30.33,12.19c8.3,8.13,12.45,18.24,12.45,30.32s-4.15,21.58-12.45,29.7c-8.31,8.13-18.41,12.19-30.33,12.19Z'/%3e%3cpath%20class='cls-3'%20d='m2927.66,158.83h72.34v15.67h-72.34v265.37c0,30.46,8.53,45.69,25.61,45.69,5.97,0,11.19-1.25,15.67-3.76,4.48-2.51,8.43-5.43,11.85-8.77,3.84-3.76,7.25-7.93,10.25-12.53l8.96,6.89c-4.27,8.78-9.81,16.51-16.64,23.21-5.56,5.88-12.59,11.24-21.13,16.06-8.53,4.81-18.78,7.23-30.73,7.23-8.99,0-17.32-1.36-25.03-4.07-7.71-2.71-14.44-7.4-20.21-14.09-5.77-6.68-10.27-15.65-13.47-26.92-3.21-11.27-4.81-25.25-4.81-41.96v-252.35h-40.33v-15.67c27.74-2.51,47.28-10.02,58.62-22.55,11.34-12.53,18.29-30.48,20.86-53.87h20.53v76.42Z'/%3e%3crect%20class='cls-2'%20x='0'%20y='0'%20width='514.22'%20height='551.6'%20rx='237.65'%20ry='237.65'/%3e%3cpath%20class='cls-1'%20d='m403.42,360.77c-4.51-3.91-34.29-24.06-34.29-24.06,0,0-9.02,12.63-10.23,11.43-.9-.9,6.62-9.93,8.42-17.44.6-2.5,2.41-9.02,3.01-13.23.6-4.21-1.2-15.34.3-15.34s4.51,7.82,4.51,7.82c0,0-.6-9.93-1.5-17.74-.9-7.82-4.51-16.24-7.52-19.25-3.01-3.01-15.34-1.49-15.34-3.91,0-1.5,12.93-1.2,25.26-.9,12.33.3,19.25-4.21,19.55-5.11.3-.9-.6-1.5,0-2.41.6-.9,1.8-1.5,2.71-3.01.9-1.5,1.8-4.51,3.61-3.91,1.8.6-1.2,4.51.6,5.41,1.8.9,3.61-2.41,5.41-5.71,1.8-3.31.9-9.62.9-9.62,0,0,0-.3-.3.3-.3.6-1.5,1.2-2.71,2.41-1.2,1.2-1.8,3.61-3.31,3.31s-.3-2.71-1.5-3.61c-1.2-.9-8.72-4.51-7.82-6.02.9-1.5,7.22,1.5,9.62,2.11,2.41.6,5.41-.3,5.41-.3,0,0,2.11-5.41,1.8-9.62-.3-4.21-6.32-11.13-10.23-16.84-3.91-5.71-4.21-14.14-14.74-27.07-10.53-12.93-30.68-14.14-33.68-16.54-3.01-2.41-5.41-11.43-7.52-24.06-2.11-12.63,1.5-12.63-3.01-33.08-4.51-20.45-25.26-45.41-31.88-43.91-6.62,1.5-6.62,36.09-6.02,46.92.6,10.83,21.96,47.52,24.06,50.83,2.11,3.31,6.62,4.81,4.81,7.52-1.8,2.71-15.64-18.35-22.26-31.28-6.62-12.93-18.65-30.68-28.27-39.7-9.62-9.02-47.22-30.98-53.53-25.56s2.71,36.99,6.62,46.62c3.91,9.62,11.28,23.31,20.9,32.63,9.62,9.32,37.9,23.46,40.9,25.26,3.01,1.8,5.41,4.81,5.41,4.81,0,0-1.2,5.71-1.2,9.32s1.2,12.63,1.5,17.44c.3,4.81-.3,7.22-.9,11.43-.6,4.21-3.01,6.92-3.31,9.62-.3,2.71.9,1.8.9,1.8,0,0-2.71,6.32-7.22,8.72-4.51,2.41-13.83-1.5-22.26-3.91-8.42-2.41-19.25-2.41-19.25-2.41l6.47,4.36s0,1.2-1.5.3-35.19,0-40.9.3c-5.71.3-12.8,1.81-12.8,1.81,0,0,4.68,1.49,4.68,2.7s-23.46,5.41-48.12,30.08c-24.66,24.66-28.27,64.66-28.87,64.66s-2.11-13.53-2.71-14.44c-.6-.9-3.01-2.41-9.93-2.11-6.92.3-9.62,3.61-9.62,3.91s1.2,1.5,1.2,2.11-6.02,3.61-6.02,4.21,2.41,1.8,2.41,2.41-.9,1.2-2.71,2.71c-1.8,1.5-3.91,4.51-3.61,5.11.3.6,2.11.9,2.41,2.11.3,1.2-.9,4.21-1.2,7.52-.3,3.31,1.8,5.41,2.11,5.41s1.2-3.31,1.8-3.31,1.2,5.11,1.5,6.32c.3,1.2.3,1.8.3,4.21s1.5,4.21,1.8,4.21-.3-3.61.6-1.5c.9,2.11,10.23,9.32,15.34,9.62,5.11.3,6.92-2.11,8.12-2.11s2.71,3.01,3.31,2.41c.6-.6,0-12.63,1.2-12.63s1.2,2.41,1.5,3.31c.3.9,4.81,8.72,7.82,12.93,3.01,4.21,9.92,9.93,12.03,15.34,2.11,5.41-11.73,22.26-13.23,26.77-1.5,4.51.3,13.23,18.95,33.68,18.65,20.45,44.51,18.05,46.62,16.54s0-6.32-6.62-16.54c-6.62-10.23-19.25-22.26-19.25-22.86s3.31-1.2,6.32-1.8c3.01-.6,21.35-6.32,21.65-5.71s-8.72,4.21-11.13,4.81-3.61,5.41-1.5,8.72c2.11,3.31,13.53,9.32,34.29,14.14,20.75,4.81,46.62.9,47.22-3.61.6-4.51-6.02-9.02-12.93-12.93-6.92-3.91-30.68-9.32-30.68-11.13s7.52-3.31,19.25-12.63c11.73-9.32,14.14-19.25,14.74-21.96.6-2.71.3-4.51,0-4.51s-.6.9-1.5,3.01c-.9,2.11-6.02,9.62-7.22,8.72-1.2-.9.9-5.41,2.11-7.52,1.2-2.11,5.41-15.64,5.71-17.14.3-1.5.6-5.71,2.41-5.71s.9,3.91,3.01,4.81c2.11.9,25.87-7.52,25.87-7.52,0,0-2.41-9.32-4.51-15.94-2.11-6.62-2.41-14.14-1.2-14.44.92-.23,1.2,3.31,3.61,11.73,2.4,8.39,6.62,17.14,16.24,25.56,9.62,8.42,27.37,16.54,36.99,31.58,9.62,15.04,23.76,19.55,27.37,17.14,3.61-2.41-8.12-25.26-9.62-29.47-1.5-4.21-13.53-24.66-15.94-30.38-2.41-5.71-2.11-6.32-3.91-12.33-1.8-6.02.9-11.73,2.71-11.73s1.5,10.53,2.41,15.94c.9,5.41,2.71,7.82,5.41,9.62,2.71,1.8,16.54,2.11,19.25,2.71,2.71.6,21.05,7.22,24.06,8.12,3.01.9,10.23,2.41,12.63-2.11,2.41-4.51-8.12-13.83-12.63-17.74Zm-57.19-134.7c-1.68-1.68-2.52-5.7-3.42-9.96-.48-2.29-1.17-5.59-1.83-6.81-.72.39-1.39.64-2.05.64-2.48,0-4.05-2.28-4.59-3.62l2.56-1.03c.2.49,1.01,1.9,2.03,1.9.46-.01,1.81-.98,2.8-1.68,2.39-1.71,5.36-3.83,8.78-3.83,5.65,0,10.41,4.83,12.77,8.96,1.64,2.87,5.39,11.18,4.52,13.8-.27.82-1.07,1.51-4.05,2.21-2.04.48-6.32,1.15-10.23,1.15-3.12,0-6-.43-7.29-1.72Z'/%3e%3cpath%20class='cls-1'%20d='m356.83,224.89c4.31-.34,7.44-1.13,8.37-1.58-.03-1.64-2.13-7.48-4.32-11.31-2.15-3.77-6.2-7.57-10.38-7.57-2.53,0-5.11,1.84-7.18,3.31-.02.02-.04.03-.06.04.88,1.5,1.46,4.05,2.24,7.76.7,3.33,1.57,7.48,2.67,8.58.47.46,2.87,1.22,8.65.77Z'/%3e%3c/svg%3e",XL="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20514.22%20551.6'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23190007;}.cls-1,.cls-2{stroke-width:0px;}.cls-2{fill:%23f0c300;}%3c/style%3e%3c/defs%3e%3crect%20class='cls-2'%20x='0'%20y='0'%20width='514.22'%20height='551.6'%20rx='237.65'%20ry='237.65'/%3e%3cpath%20class='cls-1'%20d='m403.42,360.77c-4.51-3.91-34.29-24.06-34.29-24.06,0,0-9.02,12.63-10.23,11.43-.9-.9,6.62-9.93,8.42-17.44.6-2.5,2.41-9.02,3.01-13.23.6-4.21-1.2-15.34.3-15.34s4.51,7.82,4.51,7.82c0,0-.6-9.93-1.5-17.74-.9-7.82-4.51-16.24-7.52-19.25-3.01-3.01-15.34-1.49-15.34-3.91,0-1.5,12.93-1.2,25.26-.9,12.33.3,19.25-4.21,19.55-5.11.3-.9-.6-1.5,0-2.41.6-.9,1.8-1.5,2.71-3.01.9-1.5,1.8-4.51,3.61-3.91,1.8.6-1.2,4.51.6,5.41,1.8.9,3.61-2.41,5.41-5.71,1.8-3.31.9-9.62.9-9.62,0,0,0-.3-.3.3-.3.6-1.5,1.2-2.71,2.41-1.2,1.2-1.8,3.61-3.31,3.31s-.3-2.71-1.5-3.61c-1.2-.9-8.72-4.51-7.82-6.02.9-1.5,7.22,1.5,9.62,2.11,2.41.6,5.41-.3,5.41-.3,0,0,2.11-5.41,1.8-9.62-.3-4.21-6.32-11.13-10.23-16.84-3.91-5.71-4.21-14.14-14.74-27.07-10.53-12.93-30.68-14.14-33.68-16.54-3.01-2.41-5.41-11.43-7.52-24.06-2.11-12.63,1.5-12.63-3.01-33.08-4.51-20.45-25.26-45.41-31.88-43.91-6.62,1.5-6.62,36.09-6.02,46.92.6,10.83,21.96,47.52,24.06,50.83,2.11,3.31,6.62,4.81,4.81,7.52-1.8,2.71-15.64-18.35-22.26-31.28-6.62-12.93-18.65-30.68-28.27-39.7-9.62-9.02-47.22-30.98-53.53-25.56-6.32,5.41,2.71,36.99,6.62,46.62,3.91,9.62,11.28,23.31,20.9,32.63,9.62,9.32,37.9,23.46,40.9,25.26,3.01,1.8,5.41,4.81,5.41,4.81,0,0-1.2,5.71-1.2,9.32s1.2,12.63,1.5,17.44c.3,4.81-.3,7.22-.9,11.43-.6,4.21-3.01,6.92-3.31,9.62-.3,2.71.9,1.8.9,1.8,0,0-2.71,6.32-7.22,8.72-4.51,2.41-13.83-1.5-22.26-3.91-8.42-2.41-19.25-2.41-19.25-2.41l6.47,4.36s0,1.2-1.5.3-35.19,0-40.9.3c-5.71.3-12.8,1.81-12.8,1.81,0,0,4.68,1.49,4.68,2.7s-23.46,5.41-48.12,30.08c-24.66,24.66-28.27,64.66-28.87,64.66s-2.11-13.53-2.71-14.44c-.6-.9-3.01-2.41-9.93-2.11-6.92.3-9.62,3.61-9.62,3.91s1.2,1.5,1.2,2.11-6.02,3.61-6.02,4.21,2.41,1.8,2.41,2.41-.9,1.2-2.71,2.71c-1.8,1.5-3.91,4.51-3.61,5.11.3.6,2.11.9,2.41,2.11.3,1.2-.9,4.21-1.2,7.52-.3,3.31,1.8,5.41,2.11,5.41s1.2-3.31,1.8-3.31,1.2,5.11,1.5,6.32c.3,1.2.3,1.8.3,4.21s1.5,4.21,1.8,4.21-.3-3.61.6-1.5c.9,2.11,10.23,9.32,15.34,9.62,5.11.3,6.92-2.11,8.12-2.11s2.71,3.01,3.31,2.41c.6-.6,0-12.63,1.2-12.63s1.2,2.41,1.5,3.31c.3.9,4.81,8.72,7.82,12.93,3.01,4.21,9.92,9.93,12.03,15.34,2.11,5.41-11.73,22.26-13.23,26.77-1.5,4.51.3,13.23,18.95,33.68,18.65,20.45,44.51,18.05,46.62,16.54s0-6.32-6.62-16.54c-6.62-10.23-19.25-22.26-19.25-22.86s3.31-1.2,6.32-1.8c3.01-.6,21.35-6.32,21.65-5.71s-8.72,4.21-11.13,4.81-3.61,5.41-1.5,8.72c2.11,3.31,13.53,9.32,34.29,14.14,20.75,4.81,46.62.9,47.22-3.61.6-4.51-6.02-9.02-12.93-12.93-6.92-3.91-30.68-9.32-30.68-11.13s7.52-3.31,19.25-12.63c11.73-9.32,14.14-19.25,14.74-21.96.6-2.71.3-4.51,0-4.51s-.6.9-1.5,3.01-6.02,9.62-7.22,8.72c-1.2-.9.9-5.41,2.11-7.52,1.2-2.11,5.41-15.64,5.71-17.14.3-1.5.6-5.71,2.41-5.71s.9,3.91,3.01,4.81c2.11.9,25.87-7.52,25.87-7.52,0,0-2.41-9.32-4.51-15.94-2.11-6.62-2.41-14.14-1.2-14.44.92-.23,1.2,3.31,3.61,11.73,2.4,8.39,6.62,17.14,16.24,25.56,9.62,8.42,27.37,16.54,36.99,31.58,9.62,15.04,23.76,19.55,27.37,17.14,3.61-2.41-8.12-25.26-9.62-29.47-1.5-4.21-13.53-24.66-15.94-30.38-2.41-5.71-2.11-6.32-3.91-12.33-1.8-6.02.9-11.73,2.71-11.73s1.5,10.53,2.41,15.94c.9,5.41,2.71,7.82,5.41,9.62,2.71,1.8,16.54,2.11,19.25,2.71,2.71.6,21.05,7.22,24.06,8.12,3.01.9,10.23,2.41,12.63-2.11,2.41-4.51-8.12-13.83-12.63-17.74Zm-57.19-134.7c-1.68-1.68-2.52-5.7-3.42-9.96-.48-2.29-1.17-5.59-1.83-6.81-.72.39-1.39.64-2.05.64-2.48,0-4.05-2.28-4.59-3.62l2.56-1.03c.2.49,1.01,1.9,2.03,1.9.46-.01,1.81-.98,2.8-1.68,2.39-1.71,5.36-3.83,8.78-3.83,5.65,0,10.41,4.83,12.77,8.96,1.64,2.87,5.39,11.18,4.52,13.8-.27.82-1.07,1.51-4.05,2.21-2.04.48-6.32,1.15-10.23,1.15-3.12,0-6-.43-7.29-1.72Z'/%3e%3cpath%20class='cls-1'%20d='m356.83,224.89c4.31-.34,7.44-1.13,8.37-1.58-.03-1.64-2.13-7.48-4.32-11.31-2.15-3.77-6.2-7.57-10.38-7.57-2.53,0-5.11,1.84-7.18,3.31-.02.02-.04.03-.06.04.88,1.5,1.46,4.05,2.24,7.76.7,3.33,1.57,7.48,2.67,8.58.47.46,2.87,1.22,8.65.77Z'/%3e%3c/svg%3e",ZL=({tooltips:e,state:t,setState:n})=>{switch(t){case"close":return v.jsxs(Zo,{container:!0,spacing:2,children:[v.jsx(Zo,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:6,children:v.jsx("img",{src:XL,alt:"Good Rabbit Logo",style:{height:"30px",width:"30px",objectFit:"contain"}})}),v.jsx(Zo,{sx:{display:"flex",justifyContent:"center"},size:6,children:v.jsx(En,{sx:{"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},onClick:()=>n("open"),children:v.jsx(hr,{title:e.expandMenu,placement:"right",children:v.jsx(Ar,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"24px",mr:"-3.5px"},children:"menu"})})})})]});case"open":return v.jsxs(Zo,{container:!0,spacing:2,children:[v.jsx(Zo,{size:10,sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:v.jsx("img",{src:E2,alt:"Good Rabbit Logo",style:{height:"40px",width:"100%",objectFit:"contain"}})}),v.jsx(Zo,{size:2,sx:{display:"flex",justifyContent:"center"},children:v.jsx(En,{sx:{"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},onClick:()=>n("close"),children:v.jsx(hr,{title:e.collapseMenu,placement:"right",children:v.jsx(Ar,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"24px",mr:"-3.5px"},children:"left_panel_close"})})})})]});case"expanded":return v.jsxs(Zo,{container:!0,spacing:2,children:[v.jsx(Zo,{size:5,sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:v.jsx("img",{src:E2,alt:"Good Rabbit Logo",style:{height:"40px",width:"100%",objectFit:"contain"}})}),v.jsx(Zo,{size:1,sx:{display:"flex",justifyContent:"center"},children:v.jsx(En,{sx:{"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},onClick:()=>n("close"),children:v.jsx(hr,{title:e.collapseMenu,placement:"right",children:v.jsx(Ar,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"24px",mr:"-3.5px"},children:"left_panel_close"})})})}),v.jsx(Zo,{size:5}),v.jsx(Zo,{size:1,sx:{display:"flex",justifyContent:"center"},children:v.jsx(En,{sx:{pl:1.75,"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},onClick:()=>n("open"),children:v.jsx(hr,{title:e.collapseModule,placement:"right",children:v.jsx(Ar,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"24px",mr:"-3.5px"},children:"chevron_backward"})})})})]})}};var T2="popstate";function I2(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function QL(e={}){function t(r,s){let i=s.state?.masked,{pathname:a,search:l,hash:c}=i||r.location;return om("",{pathname:a,search:l,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,s){return typeof s=="string"?s:hc(s)}return e$(t,n,null,e)}function pn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function mr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function JL(){return Math.random().toString(36).substring(2,10)}function M2(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function om(e,t,n=null,r,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ea(t):t,state:n,key:t&&t.key||r||JL(),unstable_mask:s}}function hc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ea(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function e$(e,t,n,r={}){let{window:s=document.defaultView,v5Compat:i=!1}=r,a=s.history,l="POP",c=null,u=d();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function d(){return(a.state||{idx:null}).idx}function p(){l="POP";let y=d(),C=y==null?null:y-u;u=y,c&&c({action:l,location:m.location,delta:C})}function g(y,C){l="PUSH";let S=I2(y)?y:om(m.location,y,C);u=d()+1;let x=M2(S,u),E=m.createHref(S.unstable_mask||S);try{a.pushState(x,"",E)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;s.location.assign(E)}i&&c&&c({action:l,location:m.location,delta:1})}function h(y,C){l="REPLACE";let S=I2(y)?y:om(m.location,y,C);u=d();let x=M2(S,u),E=m.createHref(S.unstable_mask||S);a.replaceState(x,"",E),i&&c&&c({action:l,location:m.location,delta:0})}function b(y){return t$(y)}let m={get action(){return l},get location(){return e(s,a)},listen(y){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(T2,p),c=y,()=>{s.removeEventListener(T2,p),c=null}},createHref(y){return t(s,y)},createURL:b,encodeLocation(y){let C=b(y);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:g,replace:h,go(y){return a.go(y)}};return m}function t$(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),pn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:hc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function O2(e,t,n="/"){return n$(e,t,n,!1)}function n$(e,t,n,r){let s=typeof t=="string"?Ea(t):t,i=ns(s.pathname||"/",n);if(i==null)return null;let a=k2(e);o$(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let u=h$(i);l=p$(a[c],u,r)}return l}function k2(e,t=[],n=[],r="",s=!1){let i=(a,l,c=s,u)=>{let d={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&c)return;pn(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let p=_r([r,d.relativePath]),g=n.concat(d);a.children&&a.children.length>0&&(pn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),k2(a.children,t,g,p,c)),!(a.path==null&&!a.index)&&t.push({path:p,score:u$(p,a.index),routesMeta:g})};return e.forEach((a,l)=>{if(a.path===""||!a.path?.includes("?"))i(a,l);else for(let c of D2(a.path))i(a,l,!0,c)}),t}function D2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let a=D2(r.join("/")),l=[];return l.push(...a.map(c=>c===""?i:[i,c].join("/"))),s&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function o$(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:d$(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var r$=/^:[\w-]+$/,s$=3,i$=2,a$=1,l$=10,c$=-2,F2=e=>e==="*";function u$(e,t){let n=e.split("/"),r=n.length;return n.some(F2)&&(r+=c$),t&&(r+=i$),n.filter(s=>!F2(s)).reduce((s,i)=>s+(r$.test(i)?s$:i===""?a$:l$),r)}function d$(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function p$(e,t,n=!1){let{routesMeta:r}=e,s={},i="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",p=qd({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),g=c.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=qd({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!p)return null;Object.assign(s,p.params),a.push({params:s,pathname:_r([i,p.pathname]),pathnameBase:y$(_r([i,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(i=_r([i,p.pathnameBase]))}return a}function qd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=f$(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],a=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:p},g)=>{if(d==="*"){let b=l[g]||"";a=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const h=l[g];return p&&!h?u[d]=void 0:u[d]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function f$(e,t=!1,n=!0){mr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c,u,d)=>{if(r.push({paramName:l,isOptional:c!=null}),c){let p=d.charAt(u+a.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function h$(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return mr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ns(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var g$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function m$(e,t="/"){let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Ea(e):e,i;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?i=N2(n.substring(1),"/"):i=N2(n,t)):i=t,{pathname:i,search:v$(r),hash:C$(s)}}function N2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function rm(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function b$(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function sm(e){let t=b$(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Yd(e,t,n,r=!1){let s;typeof e=="string"?s=Ea(e):(s={...e},pn(!s.pathname||!s.pathname.includes("?"),rm("?","pathname","search",s)),pn(!s.pathname||!s.pathname.includes("#"),rm("#","pathname","hash",s)),pn(!s.search||!s.search.includes("#"),rm("#","search","hash",s)));let i=e===""||s.pathname==="",a=i?"/":s.pathname,l;if(a==null)l=n;else{let p=t.length-1;if(!r&&a.startsWith("..")){let g=a.split("/");for(;g[0]==="..";)g.shift(),p-=1;s.pathname=g.join("/")}l=p>=0?t[p]:"/"}let c=m$(s,l),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}var _r=e=>e.join("/").replace(/\/\/+/g,"/"),y$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),v$=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,C$=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,w$=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function S$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function x$(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var R2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function L2(e,t){let n=e;if(typeof n!="string"||!g$.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,s=!1;if(R2)try{let i=new URL(window.location.href),a=n.startsWith("//")?new URL(i.protocol+n):new URL(n),l=ns(a.pathname,t);a.origin===i.origin&&l!=null?n=l+a.search+a.hash:s=!0}catch{mr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:s,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var $2=["POST","PUT","PATCH","DELETE"];new Set($2);var P$=["GET",...$2];new Set(P$);var Ta=f.createContext(null);Ta.displayName="DataRouter";var Kd=f.createContext(null);Kd.displayName="DataRouterState";var E$=f.createContext(!1),A2=f.createContext({isTransitioning:!1});A2.displayName="ViewTransition";var T$=f.createContext(new Map);T$.displayName="Fetchers";var I$=f.createContext(null);I$.displayName="Await";var Ho=f.createContext(null);Ho.displayName="Navigation";var gc=f.createContext(null);gc.displayName="Location";var Br=f.createContext({outlet:null,matches:[],isDataRoute:!1});Br.displayName="Route";var im=f.createContext(null);im.displayName="RouteError";var V2="REACT_ROUTER_ERROR",M$="REDIRECT",O$="ROUTE_ERROR_RESPONSE";function k$(e){if(e.startsWith(`${V2}:${M$}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function D$(e){if(e.startsWith(`${V2}:${O$}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new w$(t.status,t.statusText,t.data)}catch{}}function F$(e,{relative:t}={}){pn(Ia(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=f.useContext(Ho),{hash:s,pathname:i,search:a}=mc(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:_r([n,i])),r.createHref({pathname:l,search:a,hash:s})}function Ia(){return f.useContext(gc)!=null}function Eo(){return pn(Ia(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(gc).location}var _2="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function B2(e){f.useContext(Ho).static||f.useLayoutEffect(e)}function Fs(){let{isDataRoute:e}=f.useContext(Br);return e?W$():N$()}function N$(){pn(Ia(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(Ta),{basename:t,navigator:n}=f.useContext(Ho),{matches:r}=f.useContext(Br),{pathname:s}=Eo(),i=JSON.stringify(sm(r)),a=f.useRef(!1);return B2(()=>{a.current=!0}),f.useCallback((c,u={})=>{if(mr(a.current,_2),!a.current)return;if(typeof c=="number"){n.go(c);return}let d=Yd(c,JSON.parse(i),s,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:_r([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,s,e])}f.createContext(null);function mc(e,{relative:t}={}){let{matches:n}=f.useContext(Br),{pathname:r}=Eo(),s=JSON.stringify(sm(n));return f.useMemo(()=>Yd(e,JSON.parse(s),r,t==="path"),[e,s,r,t])}function R$(e,t){return H2(e,t)}function H2(e,t,n){pn(Ia(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=f.useContext(Ho),{matches:s}=f.useContext(Br),i=s[s.length-1],a=i?i.params:{},l=i?i.pathname:"/",c=i?i.pathnameBase:"/",u=i&&i.route;{let y=u&&u.path||"";G2(l,!u||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
290
+
291
+ Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let d=Eo(),p;if(t){let y=typeof t=="string"?Ea(t):t;pn(c==="/"||y.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${y.pathname}" was given in the \`location\` prop.`),p=y}else p=d;let g=p.pathname||"/",h=g;if(c!=="/"){let y=c.replace(/^\//,"").split("/");h="/"+g.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=O2(e,{pathname:h});mr(u||b!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),mr(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let m=_$(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:_r([c,r.encodeLocation?r.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:_r([c,r.encodeLocation?r.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),s,n);return t&&m?f.createElement(gc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},m):m}function L$(){let e=G$(),t=S$(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:i},"ErrorBoundary")," or"," ",f.createElement("code",{style:i},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:s},n):null,a)}var $$=f.createElement(L$,null),z2=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=D$(e.digest);n&&(e=n)}let t=e!==void 0?f.createElement(Br.Provider,{value:this.props.routeContext},f.createElement(im.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?f.createElement(A$,{error:e},t):t}};z2.contextType=E$;var am=new WeakMap;function A$({children:e,error:t}){let{basename:n}=f.useContext(Ho);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=k$(t.digest);if(r){let s=am.get(t);if(s)throw s;let i=L2(r.location,n);if(R2&&!am.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw am.set(t,a),a}return f.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function V$({routeContext:e,match:t,children:n}){let r=f.useContext(Ta);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(Br.Provider,{value:e},n)}function _$(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,i=r?.errors;if(i!=null){let d=s.findIndex(p=>p.route.id&&i?.[p.route.id]!==void 0);pn(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),s=s.slice(0,Math.min(s.length,d+1))}let a=!1,l=-1;if(n&&r){a=r.renderFallback;for(let d=0;d<s.length;d++){let p=s[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(l=d),p.route.id){let{loaderData:g,errors:h}=r,b=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!h||h[p.route.id]===void 0);if(p.route.lazy||b){n.isStatic&&(a=!0),l>=0?s=s.slice(0,l+1):s=[s[0]];break}}}}let c=n?.onError,u=r&&c?(d,p)=>{c(d,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:x$(r.matches),errorInfo:p})}:void 0;return s.reduceRight((d,p,g)=>{let h,b=!1,m=null,y=null;r&&(h=i&&p.route.id?i[p.route.id]:void 0,m=p.route.errorElement||$$,a&&(l<0&&g===0?(G2("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,y=null):l===g&&(b=!0,y=p.route.hydrateFallbackElement||null)));let C=t.concat(s.slice(0,g+1)),S=()=>{let x;return h?x=m:b?x=y:p.route.Component?x=f.createElement(p.route.Component,null):p.route.element?x=p.route.element:x=d,f.createElement(V$,{match:p,routeContext:{outlet:d,matches:C,isDataRoute:r!=null},children:x})};return r&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?f.createElement(z2,{location:r.location,revalidation:r.revalidation,component:m,error:h,children:S(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:u}):S()},null)}function lm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function B$(e){let t=f.useContext(Ta);return pn(t,lm(e)),t}function H$(e){let t=f.useContext(Kd);return pn(t,lm(e)),t}function z$(e){let t=f.useContext(Br);return pn(t,lm(e)),t}function cm(e){let t=z$(e),n=t.matches[t.matches.length-1];return pn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function j$(){return cm("useRouteId")}function G$(){let e=f.useContext(im),t=H$("useRouteError"),n=cm("useRouteError");return e!==void 0?e:t.errors?.[n]}function W$(){let{router:e}=B$("useNavigate"),t=cm("useNavigate"),n=f.useRef(!1);return B2(()=>{n.current=!0}),f.useCallback(async(s,i={})=>{mr(n.current,_2),n.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:t,...i}))},[e,t])}var j2={};function G2(e,t,n){!t&&!j2[e]&&(j2[e]=!0,mr(!1,n))}f.memo(U$);function U$({routes:e,future:t,state:n,isStatic:r,onError:s}){return H2(e,void 0,{state:n,isStatic:r,onError:s})}function q$({to:e,replace:t,state:n,relative:r}){pn(Ia(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=f.useContext(Ho);mr(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=f.useContext(Br),{pathname:a}=Eo(),l=Fs(),c=Yd(e,sm(i),a,r==="path"),u=JSON.stringify(c);return f.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function bc(e){pn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Y$({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:s,static:i=!1,unstable_useTransitions:a}){pn(!Ia(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=f.useMemo(()=>({basename:l,navigator:s,static:i,unstable_useTransitions:a,future:{}}),[l,s,i,a]);typeof n=="string"&&(n=Ea(n));let{pathname:u="/",search:d="",hash:p="",state:g=null,key:h="default",unstable_mask:b}=n,m=f.useMemo(()=>{let y=ns(u,l);return y==null?null:{location:{pathname:y,search:d,hash:p,state:g,key:h,unstable_mask:b},navigationType:r}},[l,u,d,p,g,h,r,b]);return mr(m!=null,`<Router basename="${l}"> is not able to match the URL "${u}${d}${p}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:f.createElement(Ho.Provider,{value:c},f.createElement(gc.Provider,{children:t,value:m}))}function W2({children:e,location:t}){return R$(um(e),t)}function um(e,t=[]){let n=[];return f.Children.forEach(e,(r,s)=>{if(!f.isValidElement(r))return;let i=[...t,s];if(r.type===f.Fragment){n.push.apply(n,um(r.props.children,i));return}pn(r.type===bc,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),pn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=um(r.props.children,i)),n.push(a)}),n}var Xd="get",Zd="application/x-www-form-urlencoded";function Qd(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function K$(e){return Qd(e)&&e.tagName.toLowerCase()==="button"}function X$(e){return Qd(e)&&e.tagName.toLowerCase()==="form"}function Z$(e){return Qd(e)&&e.tagName.toLowerCase()==="input"}function Q$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function J$(e,t){return e.button===0&&(!t||t==="_self")&&!Q$(e)}var Jd=null;function eA(){if(Jd===null)try{new FormData(document.createElement("form"),0),Jd=!1}catch{Jd=!0}return Jd}var tA=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function dm(e){return e!=null&&!tA.has(e)?(mr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zd}"`),null):e}function nA(e,t){let n,r,s,i,a;if(X$(e)){let l=e.getAttribute("action");r=l?ns(l,t):null,n=e.getAttribute("method")||Xd,s=dm(e.getAttribute("enctype"))||Zd,i=new FormData(e)}else if(K$(e)||Z$(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?ns(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Xd,s=dm(e.getAttribute("formenctype"))||dm(l.getAttribute("enctype"))||Zd,i=new FormData(l,e),!eA()){let{name:u,type:d,value:p}=e;if(d==="image"){let g=u?`${u}.`:"";i.append(`${g}x`,"0"),i.append(`${g}y`,"0")}else u&&i.append(u,p)}}else{if(Qd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xd,r=null,s=Zd,a=e}return i&&s==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:s,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function pm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function oA(e,t,n,r){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${r}`:s.pathname=`${s.pathname}.${r}`:s.pathname==="/"?s.pathname=`_root.${r}`:t&&ns(s.pathname,t)==="/"?s.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${r}`,s}async function rA(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sA(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function iA(e,t,n){let r=await Promise.all(e.map(async s=>{let i=t.routes[s.route.id];if(i){let a=await rA(i,n);return a.links?a.links():[]}return[]}));return uA(r.flat(1).filter(sA).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function U2(e,t,n,r,s,i){let a=(c,u)=>n[u]?c.route.id!==n[u].route.id:!0,l=(c,u)=>n[u].pathname!==c.pathname||n[u].route.path?.endsWith("*")&&n[u].params["*"]!==c.params["*"];return i==="assets"?t.filter((c,u)=>a(c,u)||l(c,u)):i==="data"?t.filter((c,u)=>{let d=r.routes[c.route.id];if(!d||!d.hasLoader)return!1;if(a(c,u)||l(c,u))return!0;if(c.route.shouldRevalidate){let p=c.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function aA(e,t,{includeHydrateFallback:n}={}){return lA(e.map(r=>{let s=t.routes[r.route.id];if(!s)return[];let i=[s.module];return s.clientActionModule&&(i=i.concat(s.clientActionModule)),s.clientLoaderModule&&(i=i.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(i=i.concat(s.hydrateFallbackModule)),s.imports&&(i=i.concat(s.imports)),i}).flat(1))}function lA(e){return[...new Set(e)]}function cA(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function uA(e,t){let n=new Set;return new Set(t),e.reduce((r,s)=>{let i=JSON.stringify(cA(s));return n.has(i)||(n.add(i),r.push({key:i,link:s})),r},[])}function q2(){let e=f.useContext(Ta);return pm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function dA(){let e=f.useContext(Kd);return pm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var fm=f.createContext(void 0);fm.displayName="FrameworkContext";function Y2(){let e=f.useContext(fm);return pm(e,"You must render this element inside a <HydratedRouter> element"),e}function pA(e,t){let n=f.useContext(fm),[r,s]=f.useState(!1),[i,a]=f.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,g=f.useRef(null);f.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let m=C=>{C.forEach(S=>{a(S.isIntersecting)})},y=new IntersectionObserver(m,{threshold:.5});return g.current&&y.observe(g.current),()=>{y.disconnect()}}},[e]),f.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let h=()=>{s(!0)},b=()=>{s(!1),a(!1)};return n?e!=="intent"?[i,g,{}]:[i,g,{onFocus:yc(l,h),onBlur:yc(c,b),onMouseEnter:yc(u,h),onMouseLeave:yc(d,b),onTouchStart:yc(p,h)}]:[!1,g,{}]}function yc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function fA({page:e,...t}){let{router:n}=q2(),r=f.useMemo(()=>O2(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?f.createElement(gA,{page:e,matches:r,...t}):null}function hA(e){let{manifest:t,routeModules:n}=Y2(),[r,s]=f.useState([]);return f.useEffect(()=>{let i=!1;return iA(e,t,n).then(a=>{i||s(a)}),()=>{i=!0}},[e,t,n]),r}function gA({page:e,matches:t,...n}){let r=Eo(),{future:s,manifest:i,routeModules:a}=Y2(),{basename:l}=q2(),{loaderData:c,matches:u}=dA(),d=f.useMemo(()=>U2(e,t,u,i,r,"data"),[e,t,u,i,r]),p=f.useMemo(()=>U2(e,t,u,i,r,"assets"),[e,t,u,i,r]),g=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,y=!1;if(t.forEach(S=>{let x=i.routes[S.route.id];!x||!x.hasLoader||(!d.some(E=>E.route.id===S.route.id)&&S.route.id in c&&a[S.route.id]?.shouldRevalidate||x.hasClientLoader?y=!0:m.add(S.route.id))}),m.size===0)return[];let C=oA(e,l,s.unstable_trailingSlashAwareDataRequests,"data");return y&&m.size>0&&C.searchParams.set("_routes",t.filter(S=>m.has(S.route.id)).map(S=>S.route.id).join(",")),[C.pathname+C.search]},[l,s.unstable_trailingSlashAwareDataRequests,c,r,i,d,t,e,a]),h=f.useMemo(()=>aA(p,i),[p,i]),b=hA(p);return f.createElement(f.Fragment,null,g.map(m=>f.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),h.map(m=>f.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),b.map(({key:m,link:y})=>f.createElement("link",{key:m,nonce:n.nonce,...y,crossOrigin:y.crossOrigin??n.crossOrigin})))}function mA(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var bA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{bA&&(window.__reactRouterVersion="7.13.2")}catch{}function yA({basename:e,children:t,unstable_useTransitions:n,window:r}){let s=f.useRef();s.current==null&&(s.current=QL({window:r,v5Compat:!0}));let i=s.current,[a,l]=f.useState({action:i.action,location:i.location}),c=f.useCallback(u=>{n===!1?l(u):f.startTransition(()=>l(u))},[n]);return f.useLayoutEffect(()=>i.listen(c),[i,c]),f.createElement(Y$,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i,unstable_useTransitions:n})}var K2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vc=f.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:s,reloadDocument:i,replace:a,unstable_mask:l,state:c,target:u,to:d,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:h,...b},m){let{basename:y,navigator:C,unstable_useTransitions:S}=f.useContext(Ho),x=typeof d=="string"&&K2.test(d),E=L2(d,y);d=E.to;let P=F$(d,{relative:s}),M=Eo(),D=null;if(l){let L=Yd(l,[],M.unstable_mask?M.unstable_mask.pathname:"/",!0);y!=="/"&&(L.pathname=L.pathname==="/"?y:_r([y,L.pathname])),D=C.createHref(L)}let[O,k,I]=pA(r,b),F=SA(d,{replace:a,unstable_mask:l,state:c,target:u,preventScrollReset:p,relative:s,viewTransition:g,unstable_defaultShouldRevalidate:h,unstable_useTransitions:S});function T(L){t&&t(L),L.defaultPrevented||F(L)}let R=!(E.isExternal||i),A=f.createElement("a",{...b,...I,href:(R?D:void 0)||E.absoluteURL||P,onClick:R?T:t,ref:mA(m,k),target:u,"data-discover":!x&&n==="render"?"true":void 0});return O&&!x?f.createElement(f.Fragment,null,A,f.createElement(fA,{page:P})):A});vc.displayName="Link";var vA=f.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:s=!1,style:i,to:a,viewTransition:l,children:c,...u},d){let p=mc(a,{relative:u.relative}),g=Eo(),h=f.useContext(Kd),{navigator:b,basename:m}=f.useContext(Ho),y=h!=null&&IA(p)&&l===!0,C=b.encodeLocation?b.encodeLocation(p).pathname:p.pathname,S=g.pathname,x=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(S=S.toLowerCase(),x=x?x.toLowerCase():null,C=C.toLowerCase()),x&&m&&(x=ns(x,m)||x);const E=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let P=S===C||!s&&S.startsWith(C)&&S.charAt(E)==="/",M=x!=null&&(x===C||!s&&x.startsWith(C)&&x.charAt(C.length)==="/"),D={isActive:P,isPending:M,isTransitioning:y},O=P?t:void 0,k;typeof r=="function"?k=r(D):k=[r,P?"active":null,M?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let I=typeof i=="function"?i(D):i;return f.createElement(vc,{...u,"aria-current":O,className:k,ref:d,style:I,to:a,viewTransition:l},typeof c=="function"?c(D):c)});vA.displayName="NavLink";var CA=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:s,state:i,method:a=Xd,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:g,...h},b)=>{let{unstable_useTransitions:m}=f.useContext(Ho),y=EA(),C=TA(l,{relative:u}),S=a.toLowerCase()==="get"?"get":"post",x=typeof l=="string"&&K2.test(l),E=P=>{if(c&&c(P),P.defaultPrevented)return;P.preventDefault();let M=P.nativeEvent.submitter,D=M?.getAttribute("formmethod")||a,O=()=>y(M||P.currentTarget,{fetcherKey:t,method:D,navigate:n,replace:s,state:i,relative:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:g});m&&n!==!1?f.startTransition(()=>O()):O()};return f.createElement("form",{ref:b,method:S,action:C,onSubmit:r?c:E,...h,"data-discover":!x&&e==="render"?"true":void 0})});CA.displayName="Form";function wA(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function X2(e){let t=f.useContext(Ta);return pn(t,wA(e)),t}function SA(e,{target:t,replace:n,unstable_mask:r,state:s,preventScrollReset:i,relative:a,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:u}={}){let d=Fs(),p=Eo(),g=mc(e,{relative:a});return f.useCallback(h=>{if(J$(h,t)){h.preventDefault();let b=n!==void 0?n:hc(p)===hc(g),m=()=>d(e,{replace:b,unstable_mask:r,state:s,preventScrollReset:i,relative:a,viewTransition:l,unstable_defaultShouldRevalidate:c});u?f.startTransition(()=>m()):m()}},[p,d,g,n,r,s,t,e,i,a,l,c,u])}var xA=0,PA=()=>`__${String(++xA)}__`;function EA(){let{router:e}=X2("useSubmit"),{basename:t}=f.useContext(Ho),n=j$(),r=e.fetch,s=e.navigate;return f.useCallback(async(i,a={})=>{let{action:l,method:c,encType:u,formData:d,body:p}=nA(i,t);if(a.navigate===!1){let g=a.fetcherKey||PA();await r(g,n,a.action||l,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:d,body:p,formMethod:a.method||c,formEncType:a.encType||u,flushSync:a.flushSync})}else await s(a.action||l,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:d,body:p,formMethod:a.method||c,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,s,t,n])}function TA(e,{relative:t}={}){let{basename:n}=f.useContext(Ho),r=f.useContext(Br);pn(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),i={...mc(e||".",{relative:t})},a=Eo();if(e==null){i.search=a.search;let l=new URLSearchParams(i.search),c=l.getAll("index");if(c.some(d=>d==="")){l.delete("index"),c.filter(p=>p).forEach(p=>l.append("index",p));let d=l.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&s.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:_r([n,i.pathname])),hc(i)}function IA(e,{relative:t}={}){let n=f.useContext(A2);pn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=X2("useViewTransitionState"),s=mc(e,{relative:t});if(!n.isTransitioning)return!1;let i=ns(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ns(n.nextLocation.pathname,r)||n.nextLocation.pathname;return qd(s.pathname,a)!=null||qd(s.pathname,i)!=null}const Z2=({tooltips:e,name:t,items:n,setState:r})=>{const s=Fs(),i=Eo(),a=new URLSearchParams(i.search);return v.jsx(ft,{size:12,children:v.jsx(ts,{dense:!0,sx:{width:"100%","& .Mui-selected":{bgcolor:"#5B5157 !important"},"& .hover":{bgcolor:"#513D42 !important"}},component:"nav",subheader:t&&v.jsx(tc,{sx:{bgcolor:"transparent"},component:"div",id:"nested-list-subheader",children:t.toUpperCase()}),children:n.map((l,c)=>v.jsx(lc,{secondaryAction:l.subgroups.length>0?v.jsx(hr,{title:e.expandModule,placement:"right",children:v.jsx(vc,{to:l.path,style:{textDecoration:"none"},onClick:()=>{r("expanded"),localStorage.setItem("sidebar_state","expanded")},children:v.jsx(Ar,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"24px",mr:"-3.5px"},children:"keyboard_arrow_right"})})}):v.jsx(hr,{title:e.openNewTab,placement:"right",children:v.jsx(vc,{to:`${l.path}&view=${l.view}`,target:"_blank",style:{textDecoration:"none"},onClick:()=>{r("open"),localStorage.setItem("sidebar_state","open")},children:v.jsx(Ar,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"16px"},children:"new_window"})})}),children:v.jsxs(pi,{sx:{borderRadius:"20px",minHeight:"56px",color:"#FFFFFF","& .MuiListItemText-primary":{color:"#FFFFFF"}},onClick:u=>{u.preventDefault(),u.stopPropagation(),l.subgroups.length>0?(r("expanded"),s(l.path),localStorage.setItem("sidebar_state","expanded"),localStorage.setItem("history_path",JSON.stringify([...JSON.parse(localStorage.getItem("history_path")||"[]"),l.path]))):(r("open"),s(`${l.path}&view=${l.view}`),localStorage.setItem("sidebar_state","open"),localStorage.setItem("history_path",JSON.stringify([...JSON.parse(localStorage.getItem("history_path")||"[]"),`${l.path}&view=${l.view}`])))},selected:`${i.pathname}?module=${a.get("module")}`===l.path,children:[v.jsx(fi,{children:l.icon}),v.jsx(Vr,{primary:l.title,slotProps:{primary:{sx:{color:"#FFFFFF"}}}})]})},c))})})},MA=({items:e,setState:t})=>{const n=Fs(),r=Eo(),s=new URLSearchParams(r.search);return v.jsx(ft,{size:12,children:v.jsx(ts,{dense:!0,sx:{width:"100%","& .Mui-selected":{bgcolor:"#5B5157 !important"},"& .hover":{bgcolor:"#513D42 !important"}},component:"nav",children:e.map((i,a)=>v.jsx(hr,{title:i.title,placement:"right",children:v.jsx(pi,{sx:{borderRadius:"20px",minHeight:"56px"},onClick:()=>{i.subgroups.length>0?(t("expanded"),n(i.path),localStorage.setItem("sidebar_state","expanded")):(n(`${i.path}&view=${i.view}`),localStorage.setItem("sidebar_state","close"),localStorage.setItem("history_path",JSON.stringify([...JSON.parse(localStorage.getItem("history_path")||"[]"),`${i.path}&view=${i.view}`])))},selected:`${r.pathname}?module=${s.get("module")}`===i.path,children:v.jsx(fi,{children:i.icon})})},a))})})},OA=({tooltips:e,items:t})=>{const n=Eo(),r=Fs(),s=new URLSearchParams(n.search);return v.jsx(ft,{size:12,children:v.jsx(ts,{dense:!0,sx:{width:"100%","& .Mui-selected":{bgcolor:"#5B5157 !important"},"& .hover":{bgcolor:"#513D42 !important"}},component:"nav",children:t.map((i,a)=>v.jsx(lc,{secondaryAction:v.jsx(hr,{title:e.openNewTab,placement:"right",children:v.jsx(vc,{to:`${n.pathname}?module=${s.get("module")}${i.path}`,style:{textDecoration:"none"},target:"_blank",children:v.jsx(Ar,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"18px"},children:"new_window"})})}),children:v.jsx(pi,{sx:{borderRadius:"20px"},onClick:l=>{l.preventDefault(),l.stopPropagation(),r(`${n.pathname}?module=${s.get("module")}${i.path}`),localStorage.setItem("history_path",JSON.stringify([...JSON.parse(localStorage.getItem("history_path")||"[]"),`${n.pathname}?module=${s.get("module")}${i.path}`]))},selected:`&view=${s.get("view")}`===i.path,children:v.jsx(Vr,{slotProps:{primary:{sx:{color:"#FFFFFF"},textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}},primary:i.title})})},a))})})},kA=({state:e,setState:t,groups:n,tooltips:r})=>{const s=n.map(l=>l.items.map(c=>({title:c.title,color:c.color,icon:c.icon,path:c.path,view:c.view,subgroups:c.subgroups}))).flat(),i=Eo(),a=new URLSearchParams(i.search);switch(he.useEffect(()=>{const l=localStorage.getItem("sidebar_state");t(l==="expanded"?"expanded":l==="close"?"close":"open")},[i]),e){case"close":return v.jsx(ft,{sx:{height:"calc(100vh - 160px)"},container:!0,spacing:2,children:v.jsx(MA,{items:s,setState:t})});case"open":return v.jsx(ft,{sx:{height:"calc(100vh - 160px)"},container:!0,spacing:2,children:v.jsx(ft,{size:12,children:n.map((l,c)=>v.jsx(Z2,{name:l.name,items:l.items,setState:t,tooltips:r},c))})});case"expanded":return v.jsxs(ft,{sx:{height:"calc(100vh - 160px)"},container:!0,spacing:2,children:[v.jsx(ft,{size:6,children:n.map((l,c)=>v.jsx(Z2,{name:l.name,items:l.items,setState:t,tooltips:r},c))}),v.jsx(ft,{size:6,children:v.jsx(OA,{items:s.find(l=>l.path===`${i.pathname}?module=${a.get("module")}`)?.subgroups||[],tooltips:r})})]})}},DA=({state:e,signOut:t})=>{const n=Fs();switch(e){case"close":return v.jsx(ft,{container:!0,spacing:2,children:v.jsx(ft,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:12,children:v.jsx(En,{sx:{height:"56px",borderRadius:"20px",bottom:"20px","&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},onClick:()=>t.onClick(n),children:t.icon})})});case"open":return v.jsx(ft,{container:!0,spacing:2,children:v.jsx(ft,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:12,children:v.jsx(Vn,{sx:{width:"100%",height:"56px",borderRadius:"20px",bottom:"20px",color:"#FFFFFF","&:focus":{outline:"none"},"&:focus-visible":{outline:"none"},"& .MuiButton-startIcon":{marginLeft:"16px"}},size:"small",startIcon:t.icon,onClick:()=>t.onClick(n),children:v.jsx("span",{style:{textTransform:"math-auto",width:"100%"},children:t.text})})})});case"expanded":return v.jsxs(ft,{container:!0,spacing:2,children:[v.jsx(ft,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:6,children:v.jsx(Vn,{sx:{width:"100%",height:"56px",borderRadius:"20px",bottom:"20px",color:"#FFFFFF","&:focus":{outline:"none"},"&:focus-visible":{outline:"none"},"& .MuiButton-startIcon":{marginLeft:"16px"}},color:"inherit",size:"small",startIcon:t.icon,onClick:()=>t.onClick(n),children:v.jsx("span",{style:{textTransform:"math-auto",width:"100%"},children:t.text})})}),v.jsx(ft,{size:6})]})}},FA=({items:e,signOut:t,tooltips:n,state:r,setState:s,getWidth:i})=>v.jsxs(An,{sx:{padding:"20px",height:"calc(100vh - 40px)",width:i(r),bgcolor:a=>a.palette.background.paper,borderRadius:5,border:a=>`1px solid ${a.palette.background.default}`,overflow:"hidden"},children:[v.jsx(ZL,{tooltips:n,state:r,setState:s}),v.jsx(kA,{tooltips:n,state:r,setState:s,groups:e}),v.jsx(DA,{state:r,signOut:t})]}),NA=()=>{const[e,t]=he.useState("open");return{state:e,setState:t,getWidth:r=>{switch(r){case"close":return"105px";case"open":return"250px";case"expanded":return"455px";default:return"250px"}}}},RA=gt(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),LA=gt(v.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),$A=gt(v.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),AA=gt(v.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),VA="data:image/svg+xml,%3csvg%20width='578'%20height='119'%20viewBox='0%200%20578%20119'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M64.4296%2055.0518V57.2357C62.0626%2057.2357%2060.2072%2057.4628%2058.868%2057.9194C57.5289%2058.3736%2056.5517%2059.2312%2055.9341%2060.4923C55.3164%2061.7557%2054.9303%2063.5483%2054.7759%2065.8699C54.6215%2068.1915%2054.5443%2071.1702%2054.5443%2074.8012V103.726C52.8987%20106.451%2050.9492%20108.826%2048.6908%20110.843C46.7388%20112.662%2044.297%20114.327%2041.3702%20115.839C38.4435%20117.351%2034.9739%20118.11%2030.971%20118.11C26.6569%20118.11%2022.5985%20116.696%2018.7983%20113.87C14.9981%20111.043%2011.7094%20107.007%208.93709%20101.757C6.16476%2096.5074%203.98115%2090.2214%202.38869%2082.9039C0.796223%2075.5863%200%2067.3822%200%2058.2963C0%2047.5966%200.972364%2038.5372%202.92192%2031.1182C4.86907%2023.6992%207.33015%2017.6935%2010.3052%2013.0986C13.2778%208.50612%2016.6123%205.1747%2020.3063%203.10434C23.9979%201.03639%2027.5351%200%2030.9227%200C33.0774%200%2034.9232%200.253662%2036.4602%200.753738C37.9971%201.25381%2039.3556%201.78046%2040.5354%202.33127C41.7153%202.88208%2042.7407%203.40873%2043.6118%203.91122C44.4852%204.4113%2045.279%204.66254%2045.998%204.66254C46.9197%204.66254%2047.5857%204.13106%2047.9983%203.06085C48.2082%202.67432%2048.365%202.18632%2048.4688%201.60411H51.9263V37.6506H49.0165C48.2975%2031.2946%2047.2238%2025.644%2045.7905%2020.7012C45.1777%2018.5849%2044.4852%2016.517%2043.7179%2014.4974C42.9507%2012.4802%2042.029%2010.6659%2040.9553%209.04968C39.8791%207.43591%2038.6534%206.15069%2037.2709%205.18919C35.8883%204.23011%2034.3779%203.75178%2032.742%203.75178C29.6705%203.75178%2027.0598%205.06598%2024.91%207.69199C22.7602%2010.318%2021.0205%2014.007%2019.691%2018.754C18.3592%2023.5011%2017.3868%2029.2363%2016.7739%2035.9523C16.1611%2042.6707%2015.8546%2050.1187%2015.8546%2058.3035C15.8546%2068.4065%2016.2383%2076.9416%2017.0104%2083.9137C17.7801%2090.8858%2018.8852%2096.5436%2020.3232%20100.887C21.7612%20105.231%2023.5588%20108.362%2025.7183%20110.28C27.8753%20112.201%2030.3412%20113.16%2033.116%20113.16C35.6832%20113.16%2037.3288%20112.401%2038.0478%20110.886C38.7668%20109.372%2039.1263%20107.048%2039.1263%20103.914V72.8468C39.1263%2069.6144%2038.996%2066.9618%2038.7403%2064.8915C38.4821%2062.8211%2037.862%2061.2267%2036.8848%2060.1178C35.9052%2059.0065%2034.4382%2058.2504%2032.4814%2057.8445C30.5246%2057.4387%2027.8464%2057.2381%2024.4491%2057.2381V55.0542H64.4296V55.0518Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M120.402%2072.8195C120.402%2080.3786%20119.601%2086.9061%20118.002%2092.3973C116.402%2097.8885%20114.259%20102.428%20111.574%20106.006C108.888%20109.583%20105.817%20112.229%20102.357%20113.942C98.8968%20115.652%2095.3114%20116.51%2091.5956%20116.51C87.8799%20116.51%2084.3161%20115.652%2080.9092%20113.942C77.5023%20112.229%2074.4574%20109.581%2071.7719%20106.006C69.0864%20102.428%2066.9438%2097.8909%2065.3441%2092.3973C63.7444%2086.9037%2062.9434%2080.3786%2062.9434%2072.8195C62.9434%2065.2604%2063.7444%2058.7328%2065.3441%2053.2416C66.9438%2047.7505%2069.084%2043.2377%2071.7719%2039.7106C74.4549%2036.1835%2077.5023%2033.5623%2080.9092%2031.8495C84.3161%2030.1367%2087.8775%2029.2791%2091.5956%2029.2791C95.3138%2029.2791%2098.8968%2030.1367%20102.357%2031.8495C105.817%2033.5623%20108.886%2036.1835%20111.574%2039.7106C114.257%2043.2377%20116.402%2047.748%20118.002%2053.2416C119.601%2058.7352%20120.402%2065.2604%20120.402%2072.8195ZM106.003%2072.8195C106.003%2067.2776%20105.744%2062.0908%20105.228%2057.2519C104.709%2052.4154%20103.858%2048.1829%20102.67%2044.5567C101.483%2040.9306%2099.9874%2038.0606%2098.1802%2035.9443C96.373%2033.828%2094.1798%2032.7699%2091.598%2032.7699C89.0163%2032.7699%2086.8207%2033.828%2085.0135%2035.9443C83.2062%2038.0606%2081.7368%2040.9306%2080.6004%2044.5567C79.464%2048.1829%2078.6388%2052.4154%2078.1224%2057.2519C77.6037%2062.0908%2077.3479%2067.2776%2077.3479%2072.8195C77.3479%2078.3614%2077.6037%2083.5771%2078.1224%2088.4619C78.6388%2093.3491%2079.464%2097.6058%2080.6004%20101.232C81.7368%20104.858%2083.2062%20107.706%2085.0135%20109.772C86.8207%20111.837%2089.0163%20112.869%2091.598%20112.869C94.1798%20112.869%2096.373%20111.837%2098.1802%20109.772C99.9874%20107.706%20101.486%20104.858%20102.67%20101.232C103.858%2097.6058%20104.709%2093.3491%20105.228%2088.4619C105.744%2083.5771%20106.003%2078.3638%20106.003%2072.8195Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M182.355%2072.8195C182.355%2080.3786%20181.554%2086.9061%20179.955%2092.3973C178.355%2097.8909%20176.212%20102.428%20173.527%20106.006C170.841%20109.583%20167.77%20112.229%20164.31%20113.942C160.85%20115.652%20157.264%20116.51%20153.549%20116.51C149.833%20116.51%20146.269%20115.652%20142.862%20113.942C139.455%20112.229%20136.41%20109.581%20133.725%20106.006C131.04%20102.428%20128.897%2097.8909%20127.297%2092.3973C125.698%2086.9037%20124.896%2080.3786%20124.896%2072.8195C124.896%2065.2604%20125.698%2058.7328%20127.297%2053.2416C128.897%2047.7505%20131.037%2043.2377%20133.725%2039.7106C136.408%2036.1835%20139.455%2033.5623%20142.862%2031.8495C146.269%2030.1367%20149.831%2029.2791%20153.549%2029.2791C157.267%2029.2791%20160.85%2030.1367%20164.31%2031.8495C167.77%2033.5623%20170.839%2036.1835%20173.527%2039.7106C176.21%2043.2377%20178.355%2047.748%20179.955%2053.2416C181.554%2058.7352%20182.355%2065.2604%20182.355%2072.8195ZM167.956%2072.8195C167.956%2067.2776%20167.698%2062.0908%20167.181%2057.2519C166.662%2052.4154%20165.811%2048.1829%20164.624%2044.5567C163.436%2040.9306%20161.941%2038.0606%20160.133%2035.9443C158.326%2033.828%20156.133%2032.7699%20153.551%2032.7699C150.969%2032.7699%20148.774%2033.828%20146.967%2035.9443C145.159%2038.0606%20143.69%2040.9306%20142.554%2044.5567C141.417%2048.1829%20140.592%2052.4154%20140.076%2057.2519C139.557%2062.0908%20139.301%2067.2776%20139.301%2072.8195C139.301%2078.3614%20139.557%2083.5771%20140.076%2088.4619C140.592%2093.3491%20141.417%2097.6058%20142.554%20101.232C143.69%20104.858%20145.159%20107.706%20146.967%20109.772C148.774%20111.837%20150.969%20112.869%20153.551%20112.869C156.133%20112.869%20158.326%20111.837%20160.133%20109.772C161.941%20107.706%20163.439%20104.858%20164.624%20101.232C165.811%2097.6058%20166.662%2093.3491%20167.181%2088.4619C167.698%2083.5771%20167.956%2078.3638%20167.956%2072.8195Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M244.47%2095.3261C244.47%2099.2591%20244.571%20102.383%20244.779%20104.7C244.984%20107.019%20245.423%20108.782%20246.089%20109.99C246.757%20111.201%20247.737%20111.981%20249.025%20112.334C250.311%20112.686%20252.037%20112.863%20254.201%20112.863V115.047H230.07V104.255C228.005%20108.188%20225.295%20111.21%20221.941%20113.326C218.588%20115.44%20214.896%20116.501%20210.871%20116.501C207.773%20116.501%20204.806%20115.493%20201.968%20113.476C199.131%20111.459%20196.575%20108.589%20194.305%20104.859C192.032%20101.131%20190.225%2096.5437%20188.883%2091.1008C187.542%2085.658%20186.871%2079.5604%20186.871%2072.8082C186.871%2066.056%20187.542%2059.857%20188.883%2054.5156C190.225%2049.1718%20192.032%2044.6131%20194.305%2040.8323C196.575%2037.0516%20199.131%2034.1816%20201.968%2032.2151C204.806%2030.2486%20207.776%2029.2654%20210.871%2029.2654C214.896%2029.2654%20218.588%2030.2993%20221.941%2032.3649C225.295%2034.4304%20228.005%2037.4792%20230.07%2041.5112V27.4704C230.07%2024.4506%20229.889%2021.9599%20229.53%2019.9983C229.168%2018.0366%20228.603%2016.476%20227.829%2015.3164C227.057%2014.1592%20226.026%2013.3789%20224.74%2012.9779C223.452%2012.5744%20221.934%2012.3715%20220.183%2012.3715V10.1876C225.124%2010.0886%20229.53%209.35897%20233.4%208.00369C237.268%206.64841%20240.236%204.51041%20242.301%201.59692H244.47V95.3261ZM230.07%2061.1784C230.07%2053.0226%20228.777%2046.8308%20226.195%2042.6007C223.611%2038.373%20220.409%2036.2568%20216.587%2036.2568C214.727%2036.2568%20212.918%2036.8124%20211.163%2037.9189C209.407%2039.0277%20207.831%2040.9652%20206.437%2043.7362C205.042%2046.5047%20203.903%2050.2299%20203.025%2054.9142C202.147%2059.5961%20201.71%2065.5607%20201.71%2072.8106C201.71%2080.0605%20202.149%2086.0276%20203.025%2090.7095C203.903%2095.3914%20205.04%2099.1431%20206.437%20101.962C207.831%20104.782%20209.407%20106.746%20211.163%20107.852C212.918%20108.961%20214.727%20109.514%20216.587%20109.514C220.409%20109.514%20223.614%20107.376%20226.195%20103.095C228.777%2098.817%20230.07%2092.6494%20230.07%2084.5926V61.1808V61.1784Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M312.422%2095.3527C313.658%2098.9764%20314.765%20101.919%20315.742%20104.185C316.72%20106.449%20317.8%20108.186%20318.985%20109.391C320.17%20110.599%20321.482%20111.43%20322.925%20111.882C324.366%20112.334%20326.168%20112.662%20328.332%20112.863V115.046H314.584C309.845%20115.046%20306.371%20114.469%20304.156%20113.307C301.943%20112.15%20300.266%20109.756%20299.135%20106.127L287.659%2070.9094C286.832%2068.1867%20285.488%2066.2251%20283.625%2065.0123C281.765%2063.8044%20279.902%2063.1981%20278.044%2063.1981H277.171V95.3503C277.171%2098.974%20277.248%20101.943%20277.403%20104.257C277.557%20106.574%20277.943%20108.359%20278.561%20109.616C279.178%20110.874%20280.156%20111.73%20281.495%20112.184C282.834%20112.638%20284.738%20112.863%20287.211%20112.863V115.046H251.865V112.863C254.232%20112.863%20256.085%20112.638%20257.424%20112.181C258.764%20111.73%20259.743%20110.872%20260.361%20109.613C260.978%20108.355%20261.365%20106.567%20261.519%20104.25C261.673%20101.933%20261.751%2098.9619%20261.751%2095.3358V19.1914C261.751%2015.9687%20261.673%2013.3523%20261.519%2011.3351C261.365%209.32032%20260.952%207.75969%20260.284%206.65325C259.613%205.54438%20258.609%204.79065%20257.27%204.3872C255.931%203.98376%20254.128%203.78083%20251.865%203.78083V1.59692H281.943C288.004%201.59692%20293.168%202.37965%20297.431%203.94269C301.695%205.50815%20305.215%207.65098%20307.99%2010.376C310.765%2013.1011%20312.794%2016.331%20314.077%2020.0635C315.361%2023.7984%20316.005%2027.8835%20316.005%2032.3238C316.005%2039.5906%20314.309%2045.8452%20310.919%2051.0924C307.529%2056.3395%20301.977%2059.9222%20294.273%2061.8379C296.78%2062.4443%20298.86%2063.6232%20300.515%2065.3844C302.168%2067.1455%20303.664%2069.9889%20305.003%2073.9122L312.417%2095.3503L312.422%2095.3527ZM281.956%2059.4149C285.039%2059.4149%20287.739%2058.9631%20290.053%2058.0548C292.367%2057.1464%20294.268%2055.6341%20295.759%2053.513C297.25%2051.3943%20298.356%2048.5944%20299.075%2045.1132C299.794%2041.632%20300.153%2037.3705%20300.153%2032.3238C300.153%2027.2771%20299.69%2023.0422%20298.763%2019.6093C297.837%2016.1813%20296.63%2013.4055%20295.139%2011.2844C293.648%209.1657%20291.925%207.6534%20289.971%206.74505C288.017%205.8367%20285.961%205.38252%20283.804%205.38252C281.647%205.38252%20279.871%206.16525%20278.79%207.72829C277.711%209.29374%20277.171%2011.4366%20277.171%2014.1616V59.4124H281.953L281.956%2059.4149Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M372.837%2095.3374C372.837%2099.2703%20372.938%20102.394%20373.146%20104.711C373.351%20107.03%20373.79%20108.794%20374.459%20110.001C375.127%20111.212%20376.131%20111.992%20377.47%20112.345C378.809%20112.698%20380.558%20112.874%20382.722%20112.874V115.058H358.437L358.445%20103.058C356.691%20107.392%20354.316%20110.719%20351.324%20113.036C348.333%20115.352%20344.979%20116.512%20341.265%20116.512C338.686%20116.512%20336.208%20116.184%20333.836%20115.531C331.464%20114.877%20329.426%20113.768%20327.722%20112.207C326.019%20110.646%20324.653%20108.608%20323.623%20106.09C322.59%20103.573%20322.076%20100.452%20322.076%2096.7241C322.076%2092.2959%20322.979%2088.5175%20324.783%2085.3963C326.588%2082.275%20328.834%2079.5814%20331.515%2077.3153C334.196%2075.0493%20337.11%2073.1094%20340.259%2071.498C343.406%2069.8867%20346.32%2068.3792%20349.003%2066.9683C351.686%2065.5575%20353.928%2064.1491%20355.733%2062.7382C357.537%2061.3298%20358.442%2059.7185%20358.442%2057.9042V56.3943C358.442%2049.5478%20357.101%2044.3103%20354.42%2040.6866C351.739%2037.0628%20348.231%2035.2486%20343.9%2035.2486C340.703%2035.2486%20337.969%2036.1956%20335.701%2038.0896C333.433%2039.9836%20331.783%2043.0227%20330.75%2047.2069C331.573%2046.9073%20332.451%2046.7551%20333.378%2046.7551C335.646%2046.7551%20337.579%2047.5354%20339.176%2049.0961C340.771%2050.6567%20341.572%2052.5966%20341.572%2054.9134C341.572%2057.2302%20340.768%2059.0179%20339.169%2060.5785C337.567%2062.1391%20335.629%2062.9194%20333.356%2062.9194C331.083%2062.9194%20328.991%2062.1415%20327.389%2060.5833C325.787%2059.0251%20324.986%2057.1384%20324.986%2054.923C324.986%2051.2027%20325.58%2047.7819%20326.767%2044.6654C327.954%2041.549%20329.633%2038.8578%20331.8%2036.5966C333.967%2034.3354%20336.548%2032.5477%20339.543%2031.2407C342.537%2029.9337%20345.84%2029.2791%20349.454%2029.2791C352.76%2029.2791%20355.856%2029.8854%20358.749%2031.0933C361.639%2032.3037%20364.117%2034.1928%20366.183%2036.7609C368.246%2039.3313%20369.874%2042.6072%20371.059%2046.586C372.246%2050.5673%20372.84%2055.3796%20372.84%2061.023V95.3374H372.837ZM358.437%2064.9584C356.787%2066.6712%20354.7%2068.2584%20352.171%2069.72C349.645%2071.1815%20347.22%2072.9161%20344.904%2074.9309C342.583%2076.9481%20340.599%2079.4388%20338.949%2082.4103C337.299%2085.3818%20336.473%2089.235%20336.473%2093.9676C336.473%2099.8115%20337.195%20103.839%20338.64%20106.056C340.083%20108.272%20342.095%20109.378%20344.672%20109.378C347.867%20109.378%20350.757%20107.868%20353.334%20104.846C355.911%20101.824%20357.615%2097.3933%20358.44%2091.5494V64.9608L358.437%2064.9584Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M421.892%2029.2791C424.978%2029.2791%20427.965%2030.2623%20430.848%2032.2288C433.729%2034.1953%20436.28%2037.0677%20438.495%2040.846C440.707%2044.6268%20442.507%2049.1855%20443.899%2054.5293C445.289%2059.8731%20445.986%2065.9682%20445.986%2072.8219C445.986%2079.6756%20445.291%2085.6717%20443.902%2091.1145C442.512%2096.5574%20440.712%20101.145%20438.502%20104.873C436.289%20108.603%20433.744%20111.475%20430.863%20113.49C427.982%20115.507%20425%20116.515%20421.914%20116.515C417.901%20116.515%20414.248%20115.464%20410.957%20113.364C407.663%20111.267%20404.988%20108.25%20402.932%20104.315V115.058H378.801V112.874C380.963%20112.874%20382.688%20112.698%20383.974%20112.345C385.26%20111.992%20386.24%20111.212%20386.911%20110.001C387.579%20108.794%20388.018%20107.03%20388.223%20104.713C388.428%20102.396%20388.532%2099.2752%20388.532%2095.3446V27.4986C388.532%2024.4764%20388.351%2021.9833%20387.992%2020.0192C387.63%2018.0551%20387.065%2016.4945%20386.291%2015.3349C385.519%2014.1777%20384.515%2013.395%20383.279%2012.994C382.044%2012.5905%20380.551%2012.3876%20378.799%2012.3876V10.2037C383.74%2010.1047%20388.122%209.37508%20391.939%208.01981C395.756%206.66453%20398.697%204.52652%20400.763%201.61304H402.932L402.896%2041.5273C404.954%2037.4977%20407.63%2034.4489%20410.926%2032.381C414.222%2030.313%20417.875%2029.2815%20421.894%2029.2815L421.892%2029.2791ZM431.147%2072.8219C431.147%2065.572%20430.708%2059.6073%20429.837%2054.9255C428.964%2050.2436%20427.832%2046.5184%20426.447%2043.7474C425.057%2040.9789%20423.465%2039.039%20421.665%2037.9301C419.865%2036.8237%20418.043%2036.268%20416.193%2036.268C412.491%2036.268%20409.355%2038.3843%20406.785%2042.612C404.215%2046.8421%20402.929%2053.0339%20402.929%2061.1897V84.6015C402.929%2092.6558%20404.213%2098.8258%20406.785%20103.104C409.352%20107.385%20412.489%20109.523%20416.193%20109.523C418.043%20109.523%20419.865%20108.97%20421.665%20107.861C423.465%20106.755%20425.057%20104.791%20426.447%20101.971C427.835%2099.152%20428.966%2095.4026%20429.837%2090.7183C430.711%2086.0365%20431.147%2080.0694%20431.147%2072.8195V72.8219Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M486.017%2029.2791C489.103%2029.2791%20492.09%2030.2623%20494.973%2032.2288C497.854%2034.1953%20500.405%2037.0677%20502.62%2040.846C504.832%2044.6268%20506.632%2049.1855%20508.024%2054.5293C509.414%2059.8731%20510.111%2065.9682%20510.111%2072.8219C510.111%2079.6756%20509.416%2085.6717%20508.027%2091.1145C506.637%2096.5574%20504.837%20101.145%20502.627%20104.873C500.414%20108.603%20497.869%20111.475%20494.988%20113.49C492.107%20115.507%20489.125%20116.515%20486.039%20116.515C482.026%20116.515%20478.373%20115.464%20475.082%20113.364C471.788%20111.267%20469.113%20108.25%20467.057%20104.315V115.058H442.926V112.874C445.088%20112.874%20446.813%20112.698%20448.099%20112.345C449.385%20111.992%20450.365%20111.212%20451.036%20110.001C451.704%20108.794%20452.143%20107.03%20452.348%20104.713C452.553%20102.396%20452.657%2099.2752%20452.657%2095.3446V27.4986C452.657%2024.4764%20452.476%2021.9833%20452.117%2020.0192C451.755%2018.0551%20451.19%2016.4945%20450.416%2015.3349C449.644%2014.1777%20448.64%2013.395%20447.404%2012.994C446.169%2012.5905%20444.676%2012.3876%20442.924%2012.3876V10.2037C447.865%2010.1047%20452.247%209.37508%20456.064%208.01981C459.881%206.66453%20462.822%204.52652%20464.888%201.61304H467.057L467.021%2041.5273C469.079%2037.4977%20471.755%2034.4489%20475.051%2032.381C478.347%2030.313%20482%2029.2815%20486.019%2029.2815L486.017%2029.2791ZM495.272%2072.8219C495.272%2065.572%20494.833%2059.6073%20493.962%2054.9255C493.089%2050.2436%20491.957%2046.5184%20490.572%2043.7474C489.182%2040.9789%20487.59%2039.039%20485.79%2037.9301C483.99%2036.8237%20482.168%2036.268%20480.318%2036.268C476.616%2036.268%20473.48%2038.3843%20470.91%2042.612C468.341%2046.8421%20467.054%2053.0339%20467.054%2061.1897V84.6015C467.054%2092.6558%20468.338%2098.8258%20470.91%20103.104C473.477%20107.385%20476.614%20109.523%20480.318%20109.523C482.168%20109.523%20483.99%20108.97%20485.79%20107.861C487.59%20106.755%20489.182%20104.791%20490.572%20101.971C491.96%2099.152%20493.091%2095.4026%20493.962%2090.7183C494.836%2086.0365%20495.272%2080.0694%20495.272%2072.8195V72.8219Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M531.337%2095.3164C531.337%2099.2518%20531.438%20102.378%20531.645%20104.699C531.851%20107.021%20532.29%20108.785%20532.956%20109.995C533.624%20111.205%20534.628%20111.988%20535.967%20112.341C537.306%20112.696%20539.058%20112.87%20541.222%20112.87V115.054H507.204V112.87C509.365%20112.87%20511.091%20112.693%20512.377%20112.341C513.663%20111.988%20514.642%20111.208%20515.313%20109.997C515.981%20108.787%20516.421%20107.023%20516.626%20104.704C516.831%20102.388%20516.934%2099.2639%20516.934%2095.3309V56.4748C516.934%2053.4501%20516.754%2050.957%20516.394%2048.9905C516.032%2047.024%20515.468%2045.4876%20514.693%2044.3811C513.921%2043.2723%20512.917%2042.5185%20511.682%2042.1127C510.446%2041.7092%20508.953%2041.5063%20507.201%2041.5063V39.3224C512.143%2039.1219%20516.548%2038.3392%20520.419%2036.979C524.286%2035.6189%20527.254%2033.5244%20529.319%2030.6979H531.334V95.314L531.337%2095.3164ZM522.904%2021.2665C520.028%2021.2665%20517.562%2020.2857%20515.509%2018.3216C513.453%2016.36%20512.427%2013.9683%20512.427%2011.1466C512.427%208.32494%20513.455%205.78591%20515.509%203.82184C517.564%201.86019%20520.028%200.876953%20522.904%200.876953C525.78%200.876953%20528.217%201.86019%20530.222%203.82184C532.225%205.78591%20533.226%208.22831%20533.226%2011.1466C533.226%2014.0649%20532.225%2016.36%20530.222%2018.3216C528.217%2020.2857%20525.78%2021.2665%20522.904%2021.2665Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M560.545%2030.7318H577.999V34.5173H560.545V98.6261C560.545%20105.985%20562.603%20109.664%20566.724%20109.664C568.164%20109.664%20569.424%20109.362%20570.505%20108.756C571.586%20108.149%20572.539%20107.444%20573.364%20106.637C574.291%20105.729%20575.113%20104.721%20575.837%20103.61L577.999%20105.274C576.969%20107.396%20575.632%20109.263%20573.984%20110.882C572.643%20112.302%20570.946%20113.597%20568.886%20114.761C566.828%20115.923%20564.355%20116.508%20561.471%20116.508C559.302%20116.508%20557.292%20116.179%20555.432%20115.525C553.572%20114.87%20551.948%20113.737%20550.556%20112.121C549.163%20110.507%20548.078%20108.34%20547.306%20105.617C546.531%20102.895%20546.145%2099.5175%20546.145%2095.4807V34.5173H536.414V30.7318C543.107%2030.1254%20547.822%2028.3111%20550.558%2025.2841C553.294%2022.257%20554.971%2017.9206%20555.591%2012.27H560.545V30.7318Z'%20fill='%23EBEAE0'/%3e%3c/svg%3e",_A="data:image/svg+xml,%3csvg%20width='586'%20height='175'%20viewBox='0%200%20586%20175'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M712.209%20677.514C701.694%20668.379%20632.305%20621.302%20632.305%20621.302C632.305%20621.302%20611.279%20650.812%20608.474%20648.004C606.37%20645.895%20623.894%20624.817%20628.101%20607.25C629.5%20601.412%20633.707%20586.173%20635.11%20576.335C636.512%20566.497%20632.305%20540.498%20635.811%20540.498C639.318%20540.498%20646.326%20558.768%20646.326%20558.768C646.326%20558.768%20644.924%20535.581%20642.82%20517.311C640.716%20499.041%20632.305%20479.369%20625.296%20472.339C618.288%20465.314%20589.548%20468.868%20589.548%20463.205C589.548%20459.69%20619.686%20460.393%20648.426%20461.096C677.166%20461.799%20693.287%20451.258%20693.988%20449.149C694.69%20447.04%20692.586%20445.634%20693.988%20443.529C695.391%20441.42%20698.192%20440.014%20700.296%20436.503C702.399%20432.988%20704.499%20425.962%20708.707%20427.368C712.914%20428.774%20705.902%20437.909%20710.109%20440.014C714.313%20442.123%20718.521%20434.394%20722.724%20426.665C726.928%20418.936%20724.828%20404.181%20724.828%20404.181C724.828%20404.181%20724.828%20403.478%20724.127%20404.884C723.425%20406.29%20720.62%20407.696%20717.819%20410.504C715.014%20413.316%20713.616%20418.936%20710.109%20418.233C706.603%20417.53%20709.408%20411.91%20706.603%20409.801C703.798%20407.692%20686.278%20399.26%20688.378%20395.749C690.482%20392.234%20705.2%20399.264%20710.807%20400.666C716.413%20402.072%20723.425%20399.963%20723.425%20399.963C723.425%20399.963%20728.33%20387.317%20727.629%20377.479C726.928%20367.641%20712.91%20351.48%20703.798%20338.131C694.686%20324.783%20693.984%20305.107%20669.452%20274.894C644.92%20244.681%20597.959%20241.869%20590.946%20236.249C583.938%20230.629%20578.331%20209.547%20573.423%20180.038C568.518%20150.528%20576.929%20150.528%20566.414%20102.744C555.903%2054.9566%20507.54%20-3.36%20492.12%200.150988C476.7%203.66198%20476.7%2084.4704%20478.102%20109.766C479.505%20135.062%20529.271%20220.787%20534.176%20228.516C539.081%20236.245%20549.596%20239.76%20545.388%20246.083C541.184%20252.406%20508.938%20203.22%20493.518%20173.008C478.098%20142.795%20450.06%20101.338%20427.631%2080.2564C405.203%2059.1746%20317.585%207.8839%20302.866%2020.5298C288.148%2033.1757%20309.174%20106.958%20318.286%20129.442C327.398%20151.926%20344.569%20183.898%20367.002%20205.679C389.43%20227.46%20455.317%20260.485%20462.326%20264.703C469.335%20268.92%20474.945%20275.946%20474.945%20275.946C474.945%20275.946%20472.14%20289.295%20472.14%20297.727C472.14%20306.159%20474.945%20327.237%20475.646%20338.481C476.347%20349.725%20474.945%20355.345%20473.542%20365.183C472.14%20375.021%20466.534%20381.344%20465.832%20387.667C465.131%20393.99%20467.936%20391.881%20467.936%20391.881C467.936%20391.881%20461.629%20406.635%20451.114%20412.255C440.599%20417.875%20418.872%20408.744%20399.244%20403.121C379.617%20397.501%20354.383%20397.501%20354.383%20397.501L369.454%20407.688C369.454%20407.688%20369.454%20410.5%20365.948%20408.391C362.442%20406.282%20283.94%20408.391%20270.624%20409.094C257.308%20409.797%20240.802%20413.332%20240.802%20413.332C240.802%20413.332%20251.698%20416.823%20251.698%20419.631C251.698%20422.439%20197.023%20432.281%20139.547%20489.898C82.0715%20547.516%2073.6603%20640.97%2072.2578%20640.97C70.8553%20640.97%2067.3529%20609.352%2065.9504%20607.243C64.5479%20605.134%2058.9417%20601.623%2042.8206%20602.326C26.6995%20603.029%2020.3921%20610.758%2020.3921%20611.461C20.3921%20612.163%2023.1971%20614.975%2023.1971%20616.377C23.1971%20617.779%209.17982%20624.809%209.17982%20626.215C9.17982%20627.621%2014.786%20630.433%2014.786%20631.835C14.786%20633.237%2012.6822%20634.647%208.47856%20638.158C4.27495%20641.673%20-0.63389%20648.699%200.0673728%20650.105C0.768635%20651.511%204.97225%20652.214%205.67351%20655.022C6.37477%20657.834%203.56972%20664.86%202.86846%20672.589C2.1672%20680.318%207.07207%20685.235%207.77333%20685.235C8.4746%20685.235%2010.5784%20677.506%2011.9769%20677.506C13.3755%20677.506%2014.782%20689.453%2015.4833%20692.261C16.1845%20695.073%2016.1845%20696.475%2016.1845%20702.099C16.1845%20707.723%2019.6908%20711.937%2020.3921%20711.937C21.0934%20711.937%2019.6908%20703.505%2021.7946%20708.422C23.8984%20713.339%2045.6257%20730.203%2057.5432%20730.906C69.4606%20731.609%2073.6643%20725.989%2076.4693%20725.989C79.2744%20725.989%2082.7767%20733.015%2084.1792%20731.609C85.5818%20730.203%2084.1792%20702.099%2086.9843%20702.099C89.7893%20702.099%2089.7893%20707.719%2090.4866%20709.828C91.1879%20711.937%20101.703%20730.203%20108.712%20740.041C115.72%20749.879%20131.841%20763.227%20136.75%20775.877C141.655%20788.523%20109.413%20827.875%20105.91%20838.416C102.408%20848.957%20106.612%20869.332%20150.07%20917.115C193.529%20964.895%20253.809%20959.275%20258.714%20955.76C263.619%20952.245%20258.714%20941.005%20243.294%20917.115C227.875%20893.225%20198.433%20865.118%20198.433%20863.712C198.433%20862.306%20206.143%20860.9%20213.152%20859.498C220.161%20858.092%20262.918%20844.743%20263.619%20846.149C264.32%20847.555%20243.291%20855.987%20237.684%20857.393C232.078%20858.799%20229.273%20870.039%20234.178%20877.772C239.083%20885.5%20265.719%20899.552%20314.082%20910.796C362.446%20922.036%20422.726%20912.905%20424.129%20902.364C425.532%20891.823%20410.112%20881.286%20393.991%20872.152C377.869%20863.017%20322.497%20850.371%20322.497%20846.153C322.497%20841.935%20340.021%20838.424%20367.358%20816.643C394.696%20794.862%20400.302%20771.671%20401.704%20765.348C403.107%20759.025%20402.406%20754.807%20401.704%20754.807C401.003%20754.807%20400.302%20756.916%20398.198%20761.833C396.094%20766.75%20384.181%20784.317%20381.376%20782.208C378.571%20780.099%20383.48%20769.562%20386.281%20764.641C389.086%20759.724%20398.899%20728.102%20399.597%20724.591C400.298%20721.076%20400.999%20711.242%20405.203%20711.242C409.406%20711.242%20407.307%20720.377%20412.212%20722.486C417.12%20724.595%20472.492%20704.919%20472.492%20704.919C472.492%20704.919%20466.886%20683.138%20461.977%20667.676C457.073%20652.218%20456.371%20634.651%20459.172%20633.948C461.324%20633.408%20461.977%20641.677%20467.583%20661.353C473.17%20680.946%20483.003%20701.404%20505.432%20721.08C527.86%20740.756%20569.215%20759.724%20591.647%20794.858C614.076%20829.992%20647.019%20840.533%20655.431%20834.909C663.842%20829.289%20636.505%20775.885%20633.002%20766.047C629.496%20756.209%20601.461%20708.43%20595.855%20695.081C590.249%20681.732%20590.946%20680.326%20586.743%20666.274C582.539%20652.222%20588.846%20638.869%20593.05%20638.869C597.254%20638.869%20596.556%20663.462%20598.656%20676.112C600.76%20688.758%20604.964%20694.382%20611.271%20698.596C617.578%20702.81%20649.821%20703.513%20656.132%20704.919C662.439%20706.325%20705.197%20721.783%20712.205%20723.892C719.214%20726.001%20736.036%20729.512%20741.642%20718.975C747.249%20708.434%20722.716%20686.653%20712.205%20677.518L712.209%20677.514ZM578.922%20362.82C575.007%20358.896%20573.038%20349.502%20570.958%20339.557C569.837%20334.211%20568.221%20326.494%20566.695%20323.651C565.023%20324.572%20563.462%20325.136%20561.925%20325.136C556.153%20325.136%20552.492%20319.818%20551.236%20316.676L557.195%20314.269C557.666%20315.417%20559.548%20318.698%20561.925%20318.698C562.987%20318.67%20566.141%20316.414%20568.442%20314.766C574.005%20310.782%20580.93%20305.822%20588.898%20305.822C602.056%20305.822%20613.157%20317.101%20618.66%20326.76C622.479%20333.461%20631.223%20352.89%20629.195%20358.991C628.561%20360.901%20626.711%20362.51%20619.761%20364.154C615.019%20365.278%20605.023%20366.835%20595.918%20366.835C588.636%20366.835%20581.929%20365.838%20578.918%20362.824L578.922%20362.82Z'%20fill='%23F0C300'/%3e%3c/svg%3e",BA=({product:e,languages:t,form:n})=>{const r=Fs(),{user:s,setUser:i,pass:a,setPass:l,loadingAuth:c,isAuthenticated:u}=he.useContext(gr),[d,p]=he.useState(!1),[g,h]=he.useState(null),[b,m]=he.useState(t.find(x=>x.active)?.code||"en"),[y,C]=he.useState(!1),S=()=>C(x=>!x);return u?(console.log("Usuario ya autenticado"),null):v.jsx(v.Fragment,{children:v.jsxs(ft,{container:!0,children:[v.jsx(ft,{size:{xs:0,sm:5.5,lg:6,xl:6},sx:{bgcolor:x=>x.palette.background.paper},children:v.jsxs(An,{sx:{height:"100vh",width:"50vw",display:"flex",justifyContent:"center",alignItems:"flex-start",padding:"15%",gap:"16px",flexDirection:"column"},children:[v.jsx("img",{src:VA,alt:"Good Rabbit Logo",style:{height:"auto",width:"100%",objectFit:"contain"}}),v.jsx(kt,{variant:"h4",sx:{color:x=>x.palette["gr-base-light"].main,fontSize:"44px",fontStyle:"normal",fontWeight:"300",lineHeight:"100%",letterSpacing:"-3%"},children:e.name}),v.jsx("img",{src:_A,alt:"Good Rabbit Logo",style:{position:"absolute",bottom:0,right:"50vw",height:"15vh",objectFit:"contain"}})]})}),v.jsx(ft,{size:{xs:12,sm:6.5,lg:6,xl:6},sx:{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",height:"100vh",py:"15vh",px:"12vw",display:"flex",justifyContent:"center",alignContent:"center"},children:v.jsxs(An,{sx:{bgcolor:x=>`${x.palette["gr-base-light"].main}BF`,height:"auto",width:{xs:"100%",sm:"50vw"},display:"flex",justifyContent:"center",alignItems:"flex-start",flexDirection:"column",borderRadius:"20px",px:"20px",py:"40px"},children:[v.jsx(An,{children:v.jsx(kt,{variant:"h4",sx:{color:x=>x.palette["gr-grey"].main,textAlign:"start",fontSize:"22px",fontStyle:"normal",fontWeight:"700",lineHeight:"normal",mb:"44px"},children:n.title})}),v.jsxs(An,{sx:{width:"100%"},children:[v.jsx(ks,{fullWidth:!0,variant:"outlined",autoComplete:"off",label:n.labels.username,type:"text",placeholder:n.placeholder.username,focused:!0,sx:{marginBottom:"44px"},value:s,onChange:x=>i(x.target.value)}),v.jsx(ks,{fullWidth:!0,variant:"outlined",autoComplete:"off",label:n.labels.password,type:y?"text":"password",placeholder:n.placeholder.password,focused:!0,size:"medium",value:a,onChange:x=>l(x.target.value),InputProps:{endAdornment:v.jsx(xa,{position:"end",children:v.jsx(En,{"aria-label":y?"Ocultar contraseña":"Mostrar contraseña",onClick:S,edge:"end",sx:{color:x=>x.palette["gr-grey"].main},children:y?v.jsx(AA,{}):v.jsx($A,{})})})}})]}),v.jsxs(An,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",pt:"44px"},children:[v.jsx(Vn,{variant:"contained",disableElevation:!0,sx:{height:"52px",width:"10vw",minWidth:"140px",borderRadius:"20px",padding:"10px 16px",fontWeight:"600",color:"#ffffff","&:focus":{outline:"none"},"&:focus-visible":{outline:"none"},"&.Mui-disabled, &[data-loading='true']":{backgroundColor:"#CECDCA",color:"#9D9A95",boxShadow:"none"},"& .MuiLoadingButton-loadingIndicator":{color:x=>x.palette["gr-grey"].main},"& .MuiCircularProgress-root":{color:x=>x.palette["gr-grey"].main}},color:"gr-base-dark",loading:c,onClick:()=>n.buttons.signIn.onClick(r),children:v.jsx("span",{style:{textTransform:"none"},children:c?"":n.buttons.signIn.text})}),v.jsx(kt,{variant:"body2",sx:{color:x=>x.palette["gr-grey"].main,textAlign:"center",fontWeight:"bold",marginTop:"32px",marginBottom:"32px"},children:n.divider}),v.jsxs(An,{sx:{display:"flex",flexDirection:"row",gap:3.5},children:[v.jsx(Vn,{variant:"outlined",disableElevation:!0,sx:{borderRadius:"20px",padding:"10px 16px",fontWeight:"600",color:x=>x.palette["gr-grey"].main,"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"},"&.Mui-disabled, &[data-loading='true']":{border:"1px solid #9D9A95",color:"#9D9A95",boxShadow:"none"}},color:"gr-base-dark",disabled:n.buttons.google.disabled,onClick:()=>n.buttons.google.onClick(r),children:n.buttons.google.icon}),v.jsx(Vn,{variant:"outlined",disableElevation:!0,sx:{borderRadius:"20px",padding:"10px 16px",fontWeight:"600",color:x=>x.palette["gr-grey"].main,"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"},"&.Mui-disabled, &[data-loading='true']":{border:"1px solid #9D9A95",color:"#9D9A95",boxShadow:"none"}},color:"gr-base-dark",disabled:n.buttons.microsoft.disabled,onClick:()=>n.buttons.microsoft.onClick(r),children:n.buttons.microsoft.icon})]}),v.jsxs(An,{sx:{display:"flex",flexDirection:"row",gap:8,mt:"50px"},children:[v.jsxs(kt,{variant:"body1",sx:{paddingTop:"17px",color:x=>x.palette["gr-grey"].main,textAlign:"center",fontWeight:"400",width:"150px"},children:[n.version,": ",e.version]}),v.jsxs(pi,{sx:{borderRadius:"20px",cursor:"default",width:"200px"},onClick:x=>{h(x.currentTarget)},disableRipple:!0,children:[v.jsx(Gg,{children:v.jsx(Td,{sx:{width:30,height:20},variant:"rounded",src:t.find(x=>x.code===b)?.flagUrl,alt:"Selected Language"})}),v.jsx(Vr,{primary:v.jsx(kt,{variant:"body1",sx:{color:x=>x.palette["gr-grey"].main,fontWeight:"400"},children:t.find(x=>x.code===b)?.name})}),v.jsx(En,{onClick:()=>{p(!d)},sx:{color:x=>x.palette["gr-grey"].main},children:d?v.jsx(LA,{}):v.jsx(RA,{})})]}),v.jsx($d,{anchorEl:g,open:d,onClose:()=>p(!1),anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{"& .MuiPaper-root":{bgcolor:"white",borderRadius:"20px"}},children:v.jsx(sr,{onClick:()=>h(null),children:v.jsx(ts,{sx:{padding:0},children:t.map(x=>v.jsxs(pi,{onClick:()=>{x.onClick(),p(!1),m(x.code)},children:[v.jsx(Gg,{children:v.jsx(Td,{sx:{width:30,height:20},variant:"rounded",src:x.flagUrl,alt:x.name})}),v.jsx(Vr,{primary:v.jsx(kt,{variant:"body1",sx:{color:E=>E.palette["gr-grey"].main,fontWeight:"400"},children:x.name})})]},x.code))})})})]})]})]})})]})})},HA=({product:e,languages:t,form:n})=>v.jsx(v.Fragment,{children:v.jsxs(W2,{children:[v.jsx(bc,{path:"/signin",element:v.jsx(BA,{product:e,languages:t,form:n})}),v.jsx(bc,{path:"*",element:v.jsx(q$,{to:"/signin"})})]})}),zA=({routes:e})=>{const t=Eo(),n=Fs();return v.jsx(v.Fragment,{children:v.jsxs(W2,{children:[e.map((r,s)=>v.jsx(bc,{path:r.path,element:he.cloneElement(r.element,{location:t,navigate:n})},s)),v.jsx(bc,{path:"*",element:v.jsx(v.Fragment,{children:"404"})})]})})};var Q2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},J2=he.createContext&&he.createContext(Q2),jA=["attr","size","title"];function GA(e,t){if(e==null)return{};var n,r,s=WA(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function WA(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 ep(){return ep=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},ep.apply(null,arguments)}function eS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function tp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eS(Object(n),!0).forEach(function(r){UA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UA(e,t,n){return(t=qA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qA(e){var t=YA(e,"string");return typeof t=="symbol"?t:t+""}function YA(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tS(e){return e&&e.map((t,n)=>he.createElement(t.tag,tp({key:n},t.attr),tS(t.child)))}function nS(e){return t=>he.createElement(KA,ep({attr:tp({},e.attr)},t),tS(e.child))}function KA(e){var t=n=>{var{attr:r,size:s,title:i}=e,a=GA(e,jA),l=s||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),he.createElement("svg",ep({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:c,style:tp(tp({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&he.createElement("title",null,i),e.children)};return J2!==void 0?he.createElement(J2.Consumer,null,n=>t(n)):t(Q2)}function XA(e){return nS({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6 1.41 1.41z"},child:[]}]})(e)}function ZA(e){return nS({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"},child:[]}]})(e)}const QA=({username:e,options:t})=>{const[n,r]=he.useState(!1);return v.jsxs(bw,{sx:{width:"260px",height:n?"auto":"56px",position:"absolute",top:20,right:20,zIndex:1e3,bgcolor:"white",padding:0,boxShadow:"none",borderRadius:"20px"},children:[v.jsx(vw,{sx:{padding:"8px 20px"},avatar:v.jsx(Td,{sx:{width:40,height:40,bgcolor:"#9D11F2"},children:e.charAt(0)}),title:e,slotProps:{title:{fontSize:"18px",fontStyle:"normal",fontWeight:"500",lineHeight:"22px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",maxWidth:"150px"}},action:t.length>0&&v.jsx(v.Fragment,{children:v.jsx(En,{sx:{color:"black"},children:n?v.jsx(XA,{color:"black",size:30,onClick:()=>r(!1)}):v.jsx(ZA,{color:"black",size:30,onClick:()=>r(!0)})})})}),n&&v.jsx(yw,{sx:{paddingY:"0px"},children:v.jsx(ts,{children:t.map((s,i)=>v.jsxs(pi,{sx:{borderRadius:"20px"},onClick:s.onClick,children:[v.jsx(fi,{children:s.icon}),v.jsx(Vr,{primary:s.label,slotProps:{primary:{fontSize:"18px",fontStyle:"normal",fontWeight:"400",lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"170px"}}})]},i))})})]})},JA=({getWidth:e,state:t,routes:n,account:r})=>v.jsxs(An,{sx:{width:`calc(100vw - ${e(t)} - 60px)`,height:"calc(100vh - 40px)"},children:[v.jsx(An,{sx:{height:"10%"},children:v.jsx(QA,{username:r.username,avatarUrl:r.avatarUrl,options:r.options})}),v.jsx(An,{sx:{height:"90%"},children:v.jsx(zA,{routes:n})})]}),eV=({sidebar:e,routes:t,account:n})=>{const{state:r,setState:s,getWidth:i}=NA();return v.jsxs(An,{sx:{p:"20px",display:"grid",gridTemplateColumns:"auto 1fr",gap:"20px"},children:[v.jsx(FA,{items:e.items,signOut:e.signOut,tooltips:e.tooltips,state:r,setState:s,getWidth:i}),v.jsx(JA,{state:r,getWidth:i,routes:t,account:n})]})};function oS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=oS(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function mi(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=oS(e))&&(r&&(r+=" "),r+=t);return r}let tV={data:""},nV=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||tV},oV=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,rV=/\/\*[^]*?\*\/| +/g,rS=/\n+/g,bi=(e,t)=>{let n="",r="",s="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?bi(a,i):i+"{"+bi(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=bi(a,t?t.replace(/([^,])+/g,l=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,l):l?l+" "+c:c)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=bi.p?bi.p(i,a):i+":"+a+";")}return n+(t&&s?t+"{"+s+"}":s)+r},os={},sS=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+sS(e[n]);return t}return e},sV=(e,t,n,r,s)=>{let i=sS(e),a=os[i]||(os[i]=(c=>{let u=0,d=11;for(;u<c.length;)d=101*d+c.charCodeAt(u++)>>>0;return"go"+d})(i));if(!os[a]){let c=i!==e?e:(u=>{let d,p,g=[{}];for(;d=oV.exec(u.replace(rV,""));)d[4]?g.shift():d[3]?(p=d[3].replace(rS," ").trim(),g.unshift(g[0][p]=g[0][p]||{})):g[0][d[1]]=d[2].replace(rS," ").trim();return g[0]})(e);os[a]=bi(s?{["@keyframes "+a]:c}:c,n?"":"."+a)}let l=n&&os.g?os.g:null;return n&&(os.g=os[a]),((c,u,d,p)=>{p?u.data=u.data.replace(p,c):u.data.indexOf(c)===-1&&(u.data=d?c+u.data:u.data+c)})(os[a],t,r,l),a},iV=(e,t,n)=>e.reduce((r,s,i)=>{let a=t[i];if(a&&a.call){let l=a(n),c=l&&l.props&&l.props.className||/^go/.test(l)&&l;a=c?"."+c:l&&typeof l=="object"?l.props?"":bi(l,""):l===!1?"":l}return r+s+(a??"")},"");function hm(e){let t=this||{},n=e.call?e(t.p):e;return sV(n.unshift?n.raw?iV(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,nV(t.target),t.g,t.o,t.k)}hm.bind({g:1}),hm.bind({k:1});function aV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function iS(e,t,n){return t&&aV(e.prototype,t),e}function on(){return on=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},on.apply(this,arguments)}function aS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Cc(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function lS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var cS=function(){return""},uS=he.createContext({enqueueSnackbar:cS,closeSnackbar:cS}),yi={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},dS=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},gm=function(t){return""+dS(t.vertical)+dS(t.horizontal)},np=function(t){return!!t||t===0},op="unmounted",Ma="exited",Oa="entering",wc="entered",pS="exiting",mm=(function(e){aS(t,e);function t(r){var s;s=e.call(this,r)||this;var i=r.appear,a;return s.appearStatus=null,r.in?i?(a=Ma,s.appearStatus=Oa):a=wc:r.unmountOnExit||r.mountOnEnter?a=op:a=Ma,s.state={status:a},s.nextCallback=null,s}t.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===op?{status:Ma}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var i=null;if(s!==this.props){var a=this.state.status;this.props.in?a!==Oa&&a!==wc&&(i=Oa):(a===Oa||a===wc)&&(i=pS)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,i=s,a=s;return s!=null&&typeof s!="number"&&typeof s!="string"&&(a=s.exit,i=s.enter),{exit:a,enter:i}},n.updateStatus=function(s,i){s===void 0&&(s=!1),i!==null?(this.cancelNextCallback(),i===Oa?this.performEnter(s):this.performExit()):this.props.unmountOnExit&&this.state.status===Ma&&this.setState({status:op})},n.performEnter=function(s){var i=this,a=this.props.enter,l=s,c=this.getTimeouts();if(!s&&!a){this.safeSetState({status:wc},function(){i.props.onEntered&&i.props.onEntered(i.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:Oa},function(){i.props.onEntering&&i.props.onEntering(i.node,l),i.onTransitionEnd(c.enter,function(){i.safeSetState({status:wc},function(){i.props.onEntered&&i.props.onEntered(i.node,l)})})})},n.performExit=function(){var s=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:Ma},function(){s.props.onExited&&s.props.onExited(s.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:pS},function(){s.props.onExiting&&s.props.onExiting(s.node),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:Ma},function(){s.props.onExited&&s.props.onExited(s.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},n.setNextCallback=function(s){var i=this,a=!0;return this.nextCallback=function(){a&&(a=!1,i.nextCallback=null,s())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(s,i){this.setNextCallback(i);var a=s==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===op)return null;var i=this.props,a=i.children,l=Cc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(s,l)},iS(t,[{key:"node",get:function(){var s,i=(s=this.props.nodeRef)===null||s===void 0?void 0:s.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t})(he.Component);function ka(){}mm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ka,onEntering:ka,onEntered:ka,onExit:ka,onExiting:ka,onExited:ka};function fS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function bm(e,t){return he.useMemo(function(){return e==null&&t==null?null:function(n){fS(e,n),fS(t,n)}},[e,t])}function rp(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,s=e.mode;return{duration:typeof t=="object"?t[s]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var ym={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},hS=function(t){t.scrollTop=t.scrollTop},gS=function(t){return Math.round(t)+"ms"};function Da(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,s=r===void 0?300:r,i=n.easing,a=i===void 0?ym.easeInOut:i,l=n.delay,c=l===void 0?0:l,u=Array.isArray(e)?e:[e];return u.map(function(d){var p=typeof s=="string"?s:gS(s),g=typeof c=="string"?c:gS(c);return d+" "+p+" "+a+" "+g}).join(",")}function lV(e){return e&&e.ownerDocument||document}function mS(e){var t=lV(e);return t.defaultView||window}function cV(e,t){t===void 0&&(t=166);var n;function r(){for(var s=this,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var c=function(){e.apply(s,a)};clearTimeout(n),n=setTimeout(c,t)}return r.clear=function(){clearTimeout(n)},r}function uV(e,t){var n=t.getBoundingClientRect(),r=mS(t),s;if(t.fakeTransform)s=t.fakeTransform;else{var i=r.getComputedStyle(t);s=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){var c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+l-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-l)+"px)"}}function sp(e,t){if(t){var n=uV(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var bS=he.forwardRef(function(e,t){var n=e.children,r=e.direction,s=r===void 0?"down":r,i=e.in,a=e.style,l=e.timeout,c=l===void 0?0:l,u=e.onEnter,d=e.onEntered,p=e.onExit,g=e.onExited,h=Cc(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),b=he.useRef(null),m=bm(n.ref,b),y=bm(m,t),C=function(D,O){sp(s,D),hS(D),u&&u(D,O)},S=function(D){var O=a?.transitionTimingFunction||ym.easeOut,k=rp({timeout:c,mode:"enter",style:on({},a,{transitionTimingFunction:O})});D.style.webkitTransition=Da("-webkit-transform",k),D.style.transition=Da("transform",k),D.style.webkitTransform="none",D.style.transform="none"},x=function(D){var O=a?.transitionTimingFunction||ym.sharp,k=rp({timeout:c,mode:"exit",style:on({},a,{transitionTimingFunction:O})});D.style.webkitTransition=Da("-webkit-transform",k),D.style.transition=Da("transform",k),sp(s,D),p&&p(D)},E=function(D){D.style.webkitTransition="",D.style.transition="",g&&g(D)},P=he.useCallback(function(){b.current&&sp(s,b.current)},[s]);return he.useEffect(function(){if(!(i||s==="down"||s==="right")){var M=cV(function(){b.current&&sp(s,b.current)}),D=mS(b.current);return D.addEventListener("resize",M),function(){M.clear(),D.removeEventListener("resize",M)}}},[s,i]),he.useEffect(function(){i||P()},[i,P]),he.createElement(mm,Object.assign({appear:!0,nodeRef:b,onEnter:C,onEntered:d,onEntering:S,onExit:x,onExited:E,in:i,timeout:c},h),function(M,D){return he.cloneElement(n,on({ref:y,style:on({visibility:M==="exited"&&!i?"hidden":void 0},a,{},n.props.style)},D))})});bS.displayName="Slide";var ip=function(t){return he.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},dV=function(){return he.createElement(ip,null,he.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
292
+ 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},pV=function(){return he.createElement(ip,null,he.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},fV=function(){return he.createElement(ip,null,he.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
293
+ 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
294
+ 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},hV=function(){return he.createElement(ip,null,he.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
295
+ 0 22,12A10,10 0 0,0 12,2Z`}))},gV={default:void 0,success:he.createElement(dV,null),warning:he.createElement(pV,null),error:he.createElement(fV,null),info:he.createElement(hV,null)},vi={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:gV,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:bS,transitionDuration:{enter:225,exit:195}},mV=function(t,n){var r=function(i){return typeof i=="number"||i===null};return r(t)?t:r(n)?n:vi.autoHideDuration},bV=function(t,n){var r=function(i,a){return a.some(function(l){return typeof i===l})};return r(t,["string","number"])?t:r(t,["object"])?on({},vi.transitionDuration,{},r(n,["object"])&&n,{},t):r(n,["string","number"])?n:r(n,["object"])?on({},vi.transitionDuration,{},n):vi.transitionDuration},yV=function(t,n){return function(r,s){return s===void 0&&(s=!1),s?on({},vi[r],{},n[r],{},t[r]):r==="autoHideDuration"?mV(t.autoHideDuration,n.autoHideDuration):r==="transitionDuration"?bV(t.transitionDuration,n.transitionDuration):t[r]||n[r]||vi[r]}};function Sc(e){return Object.entries(e).reduce(function(t,n){var r,s=n[0],i=n[1];return on({},t,(r={},r[s]=hm(i),r))},{})}var Fa={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},yS=Sc({root:{height:0},entered:{height:"auto"}}),vm="0px",Cm=175,vS=he.forwardRef(function(e,t){var n=e.children,r=e.in,s=e.onExited,i=he.useRef(null),a=he.useRef(null),l=bm(t,a),c=function(){return i.current?i.current.clientHeight:0},u=function(m){m.style.height=vm},d=function(m){var y=c(),C=rp({timeout:Cm,mode:"enter"}),S=C.duration,x=C.easing;m.style.transitionDuration=typeof S=="string"?S:S+"ms",m.style.height=y+"px",m.style.transitionTimingFunction=x||""},p=function(m){m.style.height="auto"},g=function(m){m.style.height=c()+"px"},h=function(m){hS(m);var y=rp({timeout:Cm,mode:"exit"}),C=y.duration,S=y.easing;m.style.transitionDuration=typeof C=="string"?C:C+"ms",m.style.height=vm,m.style.transitionTimingFunction=S||""};return he.createElement(mm,{in:r,unmountOnExit:!0,onEnter:u,onEntered:p,onEntering:d,onExit:g,onExited:s,onExiting:h,nodeRef:a,timeout:Cm},function(b,m){return he.createElement("div",Object.assign({ref:l,className:mi(yS.root,b==="entered"&&yS.entered),style:on({pointerEvents:"all",overflow:"hidden",minHeight:vm,transition:Da("height")},b==="entered"&&{overflow:"visible"},{},b==="exited"&&!r&&{visibility:"hidden"})},m),he.createElement("div",{ref:i,className:Fa.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});vS.displayName="Collapse";var CS={right:"left",left:"right",bottom:"up",top:"down"},vV=function(t){return t.horizontal!=="center"?CS[t.horizontal]:CS[t.vertical]},CV=function(t){return"anchorOrigin"+gm(t)},wV=function(t){t===void 0&&(t={});var n={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(r){return!n[r]}).reduce(function(r,s){var i;return on({},r,(i={},i[s]=t[s],i))},{})},SV=function(){};function xc(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var c=[].concat(a);t&&c.indexOf(t)===-1&&c.push(t),n.apply(this,c),r.apply(this,c)}},SV)}var xV=typeof window<"u"?he.useLayoutEffect:he.useEffect;function wS(e){var t=he.useRef(e);return xV(function(){t.current=e}),he.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var SS=he.forwardRef(function(e,t){var n=e.children,r=e.className,s=e.autoHideDuration,i=e.disableWindowBlurListener,a=i===void 0?!1:i,l=e.onClose,c=e.id,u=e.open,d=e.SnackbarProps,p=d===void 0?{}:d,g=he.useRef(),h=wS(function(){l&&l.apply(void 0,arguments)}),b=wS(function(x){!l||x==null||(g.current&&clearTimeout(g.current),g.current=setTimeout(function(){h(null,"timeout",c)},x))});he.useEffect(function(){return u&&b(s),function(){g.current&&clearTimeout(g.current)}},[u,s,b]);var m=function(){g.current&&clearTimeout(g.current)},y=he.useCallback(function(){s!=null&&b(s*.5)},[s,b]),C=function(E){p.onMouseEnter&&p.onMouseEnter(E),m()},S=function(E){p.onMouseLeave&&p.onMouseLeave(E),y()};return he.useEffect(function(){if(!a&&u)return window.addEventListener("focus",y),window.addEventListener("blur",m),function(){window.removeEventListener("focus",y),window.removeEventListener("blur",m)}},[a,y,u]),he.createElement("div",Object.assign({ref:t},p,{className:mi(Fa.Snackbar,r),onMouseEnter:C,onMouseLeave:S}),n)});SS.displayName="Snackbar";var wm,PV=Sc({root:(wm={display:"flex",flexWrap:"wrap",flexGrow:1},wm[yi.upSm]={flexGrow:"initial",minWidth:"288px"},wm)}),xS=he.forwardRef(function(e,t){var n=e.className,r=Cc(e,["className"]);return he.createElement("div",Object.assign({ref:t,className:mi(PV.root,n)},r))});xS.displayName="SnackbarContent";var Pc=Sc({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),PS="notistack-snackbar",ES=he.forwardRef(function(e,t){var n=e.id,r=e.message,s=e.action,i=e.iconVariant,a=e.variant,l=e.hideIconVariant,c=e.style,u=e.className,d=i[a],p=s;return typeof p=="function"&&(p=p(n)),he.createElement(xS,{ref:t,role:"alert","aria-describedby":PS,style:c,className:mi(Fa.MuiContent,Fa.MuiContentVariant(a),Pc.root,Pc[a],u,!l&&d&&Pc.lessPadding)},he.createElement("div",{id:PS,className:Pc.message},l?null:d,r),p&&he.createElement("div",{className:Pc.action},p))});ES.displayName="MaterialDesignContent";var EV=he.memo(ES),TV=Sc({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),IV=function(t){var n=he.useRef(),r=he.useState(!0),s=r[0],i=r[1],a=xc([t.snack.onClose,t.onClose]),l=function(){t.snack.requestClose&&a(null,"instructed",t.snack.id)},c=he.useCallback(function(){n.current=setTimeout(function(){i(function(k){return!k})},125)},[]);he.useEffect(function(){return function(){n.current&&clearTimeout(n.current)}},[]);var u=t.snack,d=t.classes,p=t.Component,g=p===void 0?EV:p,h=he.useMemo(function(){return wV(d)},[d]),b=u.open,m=u.SnackbarProps,y=u.TransitionComponent,C=u.TransitionProps,S=u.transitionDuration,x=u.disableWindowBlurListener,E=u.content,P=Cc(u,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),M=on({direction:vV(P.anchorOrigin),timeout:S},C),D=E;typeof D=="function"&&(D=D(P.id,P.message));var O=["onEnter","onEntered","onExit","onExited"].reduce(function(k,I){var F;return on({},k,(F={},F[I]=xc([t.snack[I],t[I]],P.id),F))},{});return he.createElement(vS,{in:s,onExited:O.onExited},he.createElement(SS,{open:b,id:P.id,disableWindowBlurListener:x,autoHideDuration:P.autoHideDuration,className:mi(TV.wrappedRoot,h.root,h[CV(P.anchorOrigin)]),SnackbarProps:m,onClose:a},he.createElement(y,Object.assign({},M,{appear:!0,in:b,onExit:O.onExit,onExited:c,onEnter:O.onEnter,onEntered:xc([O.onEntered,l],P.id)}),D||he.createElement(g,Object.assign({},P)))))},Ec,Sm,ap,lp,xm,rs={view:{default:20},snackbar:{default:6,dense:2}},TS="."+Fa.CollapseWrapper,Pm=16,cp=Sc({root:(Ec={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:Da(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Ec[TS]={padding:rs.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},Ec.maxWidth="calc(100% - "+rs.view.default*2+"px)",Ec[yi.downXs]={width:"100%",maxWidth:"calc(100% - "+Pm*2+"px)"},Ec),rootDense:(Sm={},Sm[TS]={padding:rs.snackbar.dense+"px 0px"},Sm),top:{top:rs.view.default-rs.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:rs.view.default-rs.snackbar.default+"px",flexDirection:"column-reverse"},left:(ap={left:rs.view.default+"px"},ap[yi.upSm]={alignItems:"flex-start"},ap[yi.downXs]={left:Pm+"px"},ap),right:(lp={right:rs.view.default+"px"},lp[yi.upSm]={alignItems:"flex-end"},lp[yi.downXs]={right:Pm+"px"},lp),center:(xm={left:"50%",transform:"translateX(-50%)"},xm[yi.upSm]={alignItems:"center"},xm)}),MV=function(t){var n=t.classes,r=n===void 0?{}:n,s=t.anchorOrigin,i=t.dense,a=t.children,l=mi(Fa.SnackbarContainer,cp[s.vertical],cp[s.horizontal],cp.root,r.containerRoot,r["containerAnchorOrigin"+gm(s)],i&&cp.rootDense);return he.createElement("div",{className:l},a)},OV=he.memo(MV),kV=process.env.NODE_ENV!=="production",DV={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},FV=(function(e){if(kV){var t=DV[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}}),IS=function(t){var n=typeof t=="string"||he.isValidElement(t);return!n},MS,NV=(function(e){aS(t,e);function t(r){var s;return s=e.call(this,r)||this,s.enqueueSnackbar=function(i,a){if(a===void 0&&(a={}),i==null)throw new Error("enqueueSnackbar called with invalid argument");var l=IS(i)?i:a,c=IS(i)?i.message:i,u=l.key,d=l.preventDuplicate,p=Cc(l,["key","preventDuplicate"]),g=np(u),h=g?u:new Date().getTime()+Math.random(),b=yV(p,s.props),m=on({id:h},p,{message:c,open:!0,entered:!1,requestClose:!1,persist:b("persist"),action:b("action"),content:b("content"),variant:b("variant"),anchorOrigin:b("anchorOrigin"),disableWindowBlurListener:b("disableWindowBlurListener"),autoHideDuration:b("autoHideDuration"),hideIconVariant:b("hideIconVariant"),TransitionComponent:b("TransitionComponent"),transitionDuration:b("transitionDuration"),TransitionProps:b("TransitionProps",!0),iconVariant:b("iconVariant",!0),style:b("style",!0),SnackbarProps:b("SnackbarProps",!0),className:mi(s.props.className,p.className)});return m.persist&&(m.autoHideDuration=void 0),s.setState(function(y){if(d===void 0&&s.props.preventDuplicate||d){var C=function(P){return g?P.id===h:P.message===c},S=y.queue.findIndex(C)>-1,x=y.snacks.findIndex(C)>-1;if(S||x)return y}return s.handleDisplaySnack(on({},y,{queue:[].concat(y.queue,[m])}))}),h},s.handleDisplaySnack=function(i){var a=i.snacks;return a.length>=s.maxSnack?s.handleDismissOldest(i):s.processQueue(i)},s.processQueue=function(i){var a=i.queue,l=i.snacks;return a.length>0?on({},i,{snacks:[].concat(l,[a[0]]),queue:a.slice(1,a.length)}):i},s.handleDismissOldest=function(i){if(i.snacks.some(function(d){return!d.open||d.requestClose}))return i;var a=!1,l=!1,c=i.snacks.reduce(function(d,p){return d+(p.open&&p.persist?1:0)},0);c===s.maxSnack&&(process.env.NODE_ENV!=="production"&&FV("NO_PERSIST_ALL"),l=!0);var u=i.snacks.map(function(d){return!a&&(!d.persist||l)?(a=!0,d.entered?(d.onClose&&d.onClose(null,"maxsnack",d.id),s.props.onClose&&s.props.onClose(null,"maxsnack",d.id),on({},d,{open:!1})):on({},d,{requestClose:!0})):on({},d)});return on({},i,{snacks:u})},s.handleEnteredSnack=function(i,a,l){if(!np(l))throw new Error("handleEnteredSnack Cannot be called with undefined key");s.setState(function(c){var u=c.snacks;return{snacks:u.map(function(d){return d.id===l?on({},d,{entered:!0}):on({},d)})}})},s.handleCloseSnack=function(i,a,l){s.props.onClose&&s.props.onClose(i,a,l);var c=l===void 0;s.setState(function(u){var d=u.snacks,p=u.queue;return{snacks:d.map(function(g){return!c&&g.id!==l?on({},g):g.entered?on({},g,{open:!1}):on({},g,{requestClose:!0})}),queue:p.filter(function(g){return g.id!==l})}})},s.closeSnackbar=function(i){var a=s.state.snacks.find(function(l){return l.id===i});np(i)&&a&&a.onClose&&a.onClose(null,"instructed",i),s.handleCloseSnack(null,"instructed",i)},s.handleExitedSnack=function(i,a){if(!np(a))throw new Error("handleExitedSnack Cannot be called with undefined key");s.setState(function(l){var c=s.processQueue(on({},l,{snacks:l.snacks.filter(function(u){return u.id!==a})}));return c.queue.length===0?c:s.handleDismissOldest(c)})},s.enqueueSnackbar,MS=s.closeSnackbar,s.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:s.enqueueSnackbar.bind(lS(s)),closeSnackbar:s.closeSnackbar.bind(lS(s))}},s}var n=t.prototype;return n.render=function(){var s=this,i=this.state.contextValue,a=this.props,l=a.domRoot,c=a.children,u=a.dense,d=u===void 0?!1:u,p=a.Components,g=p===void 0?{}:p,h=a.classes,b=this.state.snacks.reduce(function(y,C){var S,x=gm(C.anchorOrigin),E=y[x]||[];return on({},y,(S={},S[x]=[].concat(E,[C]),S))},{}),m=Object.keys(b).map(function(y){var C=b[y],S=C[0];return he.createElement(OV,{key:y,dense:d,anchorOrigin:S.anchorOrigin,classes:h},C.map(function(x){return he.createElement(IV,{key:x.id,snack:x,classes:h,Component:g[x.variant],onClose:s.handleCloseSnack,onEnter:s.props.onEnter,onExit:s.props.onExit,onExited:xc([s.handleExitedSnack,s.props.onExited],x.id),onEntered:xc([s.handleEnteredSnack,s.props.onEntered],x.id)})}))});return he.createElement(uS.Provider,{value:i},c,l?bs.createPortal(m,l):m)},iS(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||vi.maxSnack}}]),t})(he.Component),RV=(function(){return he.useContext(uS)});const LV=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:w({},e)}}}}),OS={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},$V=OS;LV(OS);const AV=["localeText"],up=f.createContext(null);process.env.NODE_ENV!=="production"&&(up.displayName="PickerAdapterContext");const Tc=function(t){const{localeText:n}=t,r=ie(t,AV),{adapter:s,localeText:i}=f.useContext(up)??{adapter:void 0,localeText:void 0},a=Ot({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:p,localeText:g}=a,h=f.useMemo(()=>w({},g,i,n),[g,i,n]),b=f.useMemo(()=>{if(!c)return s||null;const C=new c({locale:p,formats:u,instance:d});if(!C.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
296
+ `));return C},[c,p,u,d,s]),m=f.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),y=f.useMemo(()=>({utils:b,adapter:b,defaultDates:m,localeText:h}),[m,b,h]);return v.jsx(up.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(Tc.displayName="LocalizationProvider"),process.env.NODE_ENV!=="production"&&(Tc.propTypes={adapterLocale:o.any,children:o.node,dateAdapter:o.func,dateFormats:o.shape({dayOfMonth:o.string,dayOfMonthFull:o.string,fullDate:o.string,fullTime12h:o.string,fullTime24h:o.string,hours12h:o.string,hours24h:o.string,keyboardDate:o.string,keyboardDateTime12h:o.string,keyboardDateTime24h:o.string,meridiem:o.string,minutes:o.string,month:o.string,monthShort:o.string,normalDate:o.string,normalDateWithWeekday:o.string,seconds:o.string,shortDate:o.string,weekday:o.string,weekdayShort:o.string,year:o.string}),dateLibInstance:o.any,localeText:o.object});const Em=()=>{const e=f.useContext(up);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
297
+ `));if(e.adapter===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
298
+ `));const t=f.useMemo(()=>w({},$V,e.localeText),[e.localeText]);return f.useMemo(()=>w({},e,{localeText:t}),[e,t])},vt=()=>Em().adapter,To=()=>Em().localeText,Tm=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Im=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],kS=["minDateTime","maxDateTime"],VV=[...Tm,...Im,...kS],dp=e=>VV.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),_V=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],DS=(e,t)=>f.useMemo(()=>{const n=w({},e),r={},s=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return _V.forEach(s),t==="date"?Tm.forEach(s):t==="time"?Im.forEach(s):t==="date-time"&&(Tm.forEach(s),Im.forEach(s),kS.forEach(s)),{forwardedProps:n,internalProps:r}},[e,t]),Ic=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),BV=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const s=n??r;let i;if(e!=null)i=e;else if(s.includes(t))i=t;else if(s.length>0)i=s[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:s,openTo:i}},Ci=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},Mc=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:s,isDateDisabled:i,adapter:a,timezone:l})=>{const c=Ci(a,a.date(void 0,l),e);n&&a.isBefore(s,c)&&(s=c),t&&a.isAfter(r,c)&&(r=c);let u=e,d=e;for(a.isBefore(e,s)&&(u=s,d=null),a.isAfter(e,r)&&(d&&(d=r),u=null);u||d;){if(u&&a.isAfter(u,r)&&(u=null),d&&a.isBefore(d,s)&&(d=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(d){if(!i(d))return d;d=a.addDays(d,-1)}}return null},FS=(e,t)=>e.isValid(t)?t:null,pp=(e,t,n)=>t==null||!e.isValid(t)?n:t,fp=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Mm=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const s=r[r.length-1];r.push(e.addMonths(s,1))}return r},hp=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),HV=["year","month","day"],Om=e=>HV.includes(e),km=(e,{format:t,views:n},r)=>{if(t!=null)return t;const s=e.formats;return Ic(n,["year"])?s.year:Ic(n,["month"])?s.month:Ic(n,["day"])?s.dayOfMonth:Ic(n,["month","year"])?`${s.month} ${s.year}`:Ic(n,["day","month"])?`${s.month} ${s.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?s.normalDateWithWeekday:s.normalDate:s.keyboardDate},zV=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Dm=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
299
+ `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},gp=(e,t)=>{const n=[],r=e.date(void 0,"default"),s=e.startOfWeek(r),i=e.endOfWeek(r);let a=s;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},NS=(e,t,n,r)=>{switch(n){case"month":return Mm(e,e.date(void 0,t)).map(s=>e.formatByString(s,r));case"weekDay":return gp(e,r);case"meridiem":{const s=e.date(void 0,t);return[e.startOfDay(s),e.endOfDay(s)].map(i=>e.formatByString(i,r))}default:return[]}},RS="s",jV=["0","1","2","3","4","5","6","7","8","9"],GV=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),RS)==="0"?jV:Array.from({length:10}).map((r,s)=>e.formatByString(e.setSeconds(t,s),RS))},wi=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let s=0;s<e.length;s+=1){r+=e[s];const i=t.indexOf(r);i>-1&&(n.push(i.toString()),r="")}return n.join("")},Fm=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),LS=(e,t)=>{const n=wi(e,t);return n!==" "&&!Number.isNaN(Number(n))},Nm=(e,t)=>Number(e).toString().padStart(t,"0"),$S=(e,t,n,r,s)=>{if(process.env.NODE_ENV!=="production"&&s.type!=="day"&&s.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${s.format}" is a digit format with letter in it.'
300
+ This type of format is only supported for 'day' sections`].join(`
301
+ `));if(s.type==="day"&&s.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,s.format)}let i=t.toString();return s.hasLeadingZerosInInput&&(i=Nm(i,s.maxLength)),Fm(i,r)},Rm=(e,t,n)=>{let r=e.value||e.placeholder;const s=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(wi(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!s&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},AS=(e,t,n,r)=>{if(process.env.NODE_ENV!=="production"&&Dm(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),r)},WV=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,VS=(e,t,n,r)=>{if(t!=="digit")return!1;const s=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(s,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(s),r).length>1;case"day":return e.formatByString(e.startOfMonth(s),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),r).length>1;case"hours":return e.formatByString(e.setHours(s,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(s,1),r).length>1;default:throw new Error("Invalid section type")}},UV=(e,t,n)=>{const r=t.some(c=>c.type==="day"),s=[],i=[];for(let c=0;c<t.length;c+=1){const u=t[c];r&&u.type==="weekDay"||(s.push(u.format),i.push(Rm(u,"non-input",n)))}const a=s.join(" "),l=i.join(" ");return e.parse(l,a)},_S=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),BS=(e,t,n)=>{const s=e.map(i=>{const a=Rm(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${s}⁩`:s},qV=(e,t,n)=>{const r=e.date(void 0,n),s=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:l}=Mm(e,r).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:WV(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(s)+1}),day:({currentDate:c})=>({minimum:1,maximum:e.isValid(c)?e.getDaysInMonth(c):a,longestMonth:l}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=gp(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(i);return wi(e.formatByString(e.endOfDay(r),c),t)!==u.toString()?{minimum:1,maximum:Number(wi(e.formatByString(e.startOfDay(r),c),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let HS=!1;const zS=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!HS){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const r=e.find(s=>!n.includes(s.type));r&&(console.warn(`MUI X: The field component you are using is not compatible with the "${r.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),HS=!0)}},YV=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{let s=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(s=Nm(s,t.maxLength));const i=gp(e,t.format),a=i.indexOf(s),c=i.indexOf(t.value)-a;return e.addDays(n,c)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const s=e.getHours(n)<12,i=e.getHours(r);return s&&i>=12?e.addHours(r,-12):!s&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},jS={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},GS=(e,t,n,r,s)=>[...n].sort((i,a)=>jS[i.type]-jS[a.type]).reduce((i,a)=>!s||a.modified?YV(e,a,t,i):i,r),KV=()=>navigator.userAgent.toLowerCase().includes("android"),XV=(e,t)=>{const n={};if(!t)return e.forEach((c,u)=>{const d=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:d,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},s={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((c,u)=>u>=i&&c.endSeparator?.includes(" ")&&c.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let c=a;c>=i;c-=1)s[c]=l,r[l]=c,l-=1;i=a+1}return e.forEach((c,u)=>{const d=s[u],p=d===0?null:r[d-1],g=d===e.length-1?null:r[d+1];n[u]={leftIndex:p,rightIndex:g}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Lm=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},ZV=({adapter:e,format:t})=>{let n=10,r=t,s=e.expandFormat(t);for(;s!==r;)if(r=s,s=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.");return s},QV=({adapter:e,expandedFormat:t})=>{const n=[],{start:r,end:s}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${s}]*\\${s})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},JV=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},e_=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:s,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const c=Dm(e,a),u=VS(e,c.contentType,c.type,a),d=n?u:c.contentType==="digit",p=e.isValid(t);let g=p?e.formatByString(t,a):"",h=null;if(d)if(u)h=g===""?e.formatByString(i,a).length:g.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`);h=c.maxLength,p&&(g=Fm(Nm(wi(g,s),h),s))}return w({},c,{format:a,maxLength:h,value:g,placeholder:JV(e,r,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},t_=e=>{const{adapter:t,expandedFormat:n,escapedParts:r}=e,s=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((h,b)=>b.length-h.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),p=h=>r.find(b=>b.start<=h&&b.end>=h);let g=0;for(;g<n.length;){const h=p(g),b=h!=null,m=c.exec(n.slice(g))?.[1];if(!b&&m!=null&&u.test(m)){let y=m;for(;y.length>0;){const C=d.exec(y)[1];y=y.slice(C.length),i.push(e_(w({},e,{now:s,token:C,startSeparator:a}))),a=""}g+=m.length}else{const y=n[g];b&&h?.start===g||h?.end===g||(i.length===0?a+=y:(i[i.length-1].endSeparator+=y,i[i.length-1].isEndFormatSeparator=!0)),g+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},n_=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const s=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=s(r.startSeparator),r.endSeparator=s(r.endSeparator),r}),WS=e=>{let t=ZV(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=QV(w({},e,{expandedFormat:t})),r=t_(w({},e,{expandedFormat:t,escapedParts:n}));return n_(w({},e,{sections:r}))},mp=f.createContext(null);process.env.NODE_ENV!=="production"&&(mp.displayName="PickerContext");const Si=()=>{const e=f.useContext(mp);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},$m=()=>f.useContext(mp),Am=f.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(Am.displayName="IsValidValueContext");function o_(){return f.useContext(Am)}const Vm=f.createContext(null);process.env.NODE_ENV!=="production"&&(Vm.displayName="PickerFieldPrivateContext");function US(){return f.useContext(Vm)}const _m=f.createContext(null);process.env.NODE_ENV!=="production"&&(_m.displayName="PickerActionsContext");const Bm=f.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(Bm.displayName="PickerPrivateContext");function Oc(e){const{contextValue:t,actionsContextValue:n,privateContextValue:r,fieldPrivateContextValue:s,isValidContextValue:i,localeText:a,children:l}=e;return v.jsx(mp.Provider,{value:t,children:v.jsx(_m.Provider,{value:n,children:v.jsx(Bm.Provider,{value:r,children:v.jsx(Vm.Provider,{value:s,children:v.jsx(Am.Provider,{value:i,children:v.jsx(Tc,{localeText:a,children:l})})})})})})}const r_=()=>{const e=f.useContext(_m);if(e==null)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join(`
302
+ `));return e},qS=()=>Em().defaultDates,bp=e=>{const t=vt(),n=f.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},s_=gt(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),i_=gt(v.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),a_=gt(v.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),YS=gt(v.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),l_=gt(v.jsxs(f.Fragment,{children:[v.jsx("path",{d:"M11.99 2C6.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"}),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),c_=gt(v.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");gt(v.jsxs(f.Fragment,{children:[v.jsx("path",{d:"M11.99 2C6.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"}),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const u_=gt(v.jsx("path",{d:"M19 6.41 17.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"}),"Clear");function d_(e){return ke("MuiPickersArrowSwitcher",e)}Me("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Un=()=>f.useContext(Bm),p_=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],f_=["ownerState"],h_=["ownerState"],g_=U("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),m_=U("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),KS=U(En,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),b_=e=>pe({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},d_,e),Hm=f.forwardRef(function(t,n){const r=_t(),s=Ot({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:p,nextLabel:g,isPreviousDisabled:h,isPreviousHidden:b,onGoToPrevious:m,previousLabel:y,labelId:C,classes:S}=s,x=ie(s,p_),{ownerState:E}=Un(),P=b_(S),M={isDisabled:u,isHidden:d,goTo:p,label:g},D={isDisabled:h,isHidden:b,goTo:m,label:y},O=l?.previousIconButton??KS,k=nt({elementType:O,externalSlotProps:c?.previousIconButton,additionalProps:{size:"medium",title:D.label,"aria-label":D.label,disabled:D.isDisabled,edge:"end",onClick:D.goTo},ownerState:w({},E,{isButtonHidden:D.isHidden??!1}),className:se(P.button,P.previousIconButton)}),I=l?.nextIconButton??KS,F=nt({elementType:I,externalSlotProps:c?.nextIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"start",onClick:M.goTo},ownerState:w({},E,{isButtonHidden:M.isHidden??!1}),className:se(P.button,P.nextIconButton)}),T=l?.leftArrowIcon??i_,R=nt({elementType:T,externalSlotProps:c?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:E,className:P.leftArrowIcon}),A=ie(R,f_),L=l?.rightArrowIcon??a_,N=nt({elementType:L,externalSlotProps:c?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:E,className:P.rightArrowIcon}),_=ie(N,h_);return v.jsxs(g_,w({ref:n,className:se(P.root,a),ownerState:E},x,{children:[v.jsx(O,w({},k,{children:r?v.jsx(L,w({},_)):v.jsx(T,w({},A))})),i?v.jsx(kt,{variant:"subtitle1",component:"span",id:C,children:i}):v.jsx(m_,{className:P.spacer,ownerState:E}),v.jsx(I,w({},F,{children:r?v.jsx(T,w({},A)):v.jsx(L,w({},_))}))]}))});process.env.NODE_ENV!=="production"&&(Hm.displayName="PickersArrowSwitcher");const y_=["hours","minutes","seconds"],v_=e=>y_.includes(e),XS=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),ZS=(e,t)=>(n,r)=>e?t.isAfter(n,r):XS(n,t)>XS(r,t),QS={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function JS(e){const{steps:t,isViewMatchingStep:n,onStepChange:r}=e;return s=>{if(t==null)return QS;const i=t.findIndex(l=>n(s.view,l)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&r(w({},s,{step:a}))},areViewsInSameStep:(l,c)=>{const u=t.find(p=>n(l,p)),d=t.find(p=>n(c,p));return u===d}}}}let zm=!1;function jm({onChange:e,onViewChange:t,openTo:n,view:r,views:s,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(zm||(r!=null&&!s.includes(r)&&(console.warn(`MUI X: \`view="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),zm=!0),r==null&&n!=null&&!s.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),zm=!0)));const u=f.useRef(n),d=f.useRef(s),p=f.useRef(s.includes(n)?n:s[0]),[g,h]=ao({name:"useViews",state:"view",controlled:r,default:p.current}),b=f.useRef(i?g:null),[m,y]=ao({name:"useViews",state:"focusedView",controlled:a,default:b.current}),C=c?c({setView:h,view:g,defaultView:p.current,views:s}):QS;f.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(k=>!s.includes(k)))&&(h(s.includes(n)?n:s[0]),d.current=s,u.current=n)},[n,h,g,s]);const S=s.indexOf(g),x=s[S-1]??null,E=s[S+1]??null,P=fe((k,I)=>{y(I?k:F=>k===F?null:F),l?.(k,I)}),M=fe(k=>{P(k,!0),k!==g&&(h(k),t&&t(k))}),D=fe(()=>{E&&M(E)}),O=fe((k,I,F)=>{const T=I==="finish",R=F?s.indexOf(F)<s.length-1:!!E;e(k,T&&R?"partial":I,F);let L=null;if(F!=null&&F!==g?L=F:T&&(L=g),L==null)return;const N=s[s.indexOf(L)+1];N==null||!C.areViewsInSameStep(L,N)||M(N)});return w({},C,{view:g,setView:M,focusedView:m,setFocusedView:P,nextView:E,previousView:x,defaultView:s.includes(n)?n:s[0],goToNextView:D,setValueAndGoToNextView:O})}function ex(e,{disableFuture:t,maxDate:n,timezone:r}){const s=vt();return f.useMemo(()=>{const i=s.date(void 0,r),a=s.startOfMonth(t&&s.isBefore(i,n)?i:n);return!s.isAfter(a,e)},[t,n,e,s,r])}function tx(e,{disablePast:t,minDate:n,timezone:r}){const s=vt();return f.useMemo(()=>{const i=s.date(void 0,r),a=s.startOfMonth(t&&s.isAfter(i,n)?i:n);return!s.isBefore(a,e)},[t,n,e,s,r])}const kc=36,Dc=2,Fc=320,C_=280,Gm=336,w_=U("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:Fc,maxHeight:Gm,display:"flex",flexDirection:"column",margin:"0 auto"}),Na=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:s,onChange:i,valueManager:a})=>{const l=vt(),[c,u]=ao({name:e,state:"value",controlled:n,default:r??a.emptyValue}),d=f.useMemo(()=>a.getTimezone(l,c),[l,a,c]),p=fe(m=>d==null?m:a.setTimezone(l,d,m)),g=f.useMemo(()=>t||d||(s?l.getTimezone(Array.isArray(s)?s[0]:s):"default"),[t,d,s,l]),h=f.useMemo(()=>a.setTimezone(l,g,c),[a,l,g,c]),b=fe((m,...y)=>{const C=p(m);u(C),i?.(C,...y)});return{value:h,handleValueChange:b,timezone:g}},Hr={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},S_=e=>Math.max(...e.map(t=>Hr[t.type]??1)),Nc=(e,t,n)=>{if(t===Hr.year)return e.startOfYear(n);if(t===Hr.month)return e.startOfMonth(n);if(t===Hr.day)return e.startOfDay(n);let r=n;return t<Hr.minutes&&(r=e.setMinutes(r,0)),t<Hr.seconds&&(r=e.setSeconds(r,0)),t<Hr.milliseconds&&(r=e.setMilliseconds(r,0)),r},nx=({props:e,adapter:t,granularity:n,timezone:r,getTodayDate:s})=>{let i=s?s():Nc(t,n,hp(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Nc(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Nc(t,n,e.maxDate));const a=ZS(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=Nc(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ci(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=Nc(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ci(t,i,e.maxTime))),i},x_=["value","referenceDate"],Io={emptyValue:null,getTodayValue:hp,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ie(e,x_);return r.adapter.isValid(t)?t:n??nx(r)},cleanValue:FS,areValuesEqual:fp,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Wm={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:_S,getV6InputValueFromSections:BS,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>w({},t,{value:""}))};function P_(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const E_=e=>{setTimeout(e,0)},ox=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?ox(t.shadowRoot):t:null},uo=e=>ox(Bt(e)),Um="@media (pointer: fine)";function T_(...e){return e.reduce((t,n)=>(Array.isArray(n)?t.push(...n):n!=null&&t.push(n),t),[])}function I_(e){return ke("MuiPickersDay",e)}const xi=Me("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function qm(e){const{disabled:t,selected:n,today:r,outsideCurrentMonth:s,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=vt(),{ownerState:d}=Un();return f.useMemo(()=>w({},d,{day:i,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:r??!1,isDayOutsideMonth:s??!1,isDayStartOfWeek:u.isSameDay(i,u.startOfWeek(i)),isDayEndOfWeek:u.isSameDay(i,u.endOfWeek(i)),disableMargin:a??!1,disableHighlightToday:l??!1,showDaysOutsideCurrentMonth:c??!1}),[u,d,i,n,t,r,s,a,l,c])}const M_=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],O_=(e,t)=>{const{isDaySelected:n,isDayDisabled:r,isDayCurrent:s,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=t,u=i&&!c;return pe({root:["root",n&&!u&&"selected",r&&"disabled",!a&&"dayWithMargin",!l&&s&&"today",i&&c&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},I_,e)},rx=({theme:e})=>w({},e.typography.caption,{width:kc,height:kc,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:$n(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:$n(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${xi.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${xi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${xi.disabled}:not(.${xi.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${xi.disabled}&.${xi.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Dc}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${xi.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),sx=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.isDayCurrent&&t.today,n.isDayOutsideMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.isDayOutsideMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},k_=U(Jo,{name:"MuiPickersDay",slot:"Root",overridesResolver:sx})(rx),D_=U("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:sx})(({theme:e})=>w({},rx({theme:e}),{opacity:0,pointerEvents:"none"})),Rc=()=>{},Ym=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiPickersDay"}),{autoFocus:s=!1,className:i,classes:a,isAnimating:l,onClick:c,onDaySelect:u,onFocus:d=Rc,onBlur:p=Rc,onKeyDown:g=Rc,onMouseDown:h=Rc,onMouseEnter:b=Rc,children:m,day:y,selected:C,disabled:S,today:x,outsideCurrentMonth:E,disableMargin:P,disableHighlightToday:M,showDaysOutsideCurrentMonth:D}=r,O=ie(r,M_),k=qm({day:y,selected:C,disabled:S,today:x,outsideCurrentMonth:E,disableMargin:P,disableHighlightToday:M,showDaysOutsideCurrentMonth:D}),I=O_(a,k),F=vt(),T=f.useRef(null),R=tt(T,n);it(()=>{s&&!S&&!l&&!E&&T.current.focus()},[s,S,l,E]);const A=N=>{h(N),E&&N.preventDefault()},L=N=>{N.defaultMuiPrevented=!0,S||u(y),E&&N.currentTarget.focus(),c&&c(N)};return E&&!D?v.jsx(D_,{className:se(I.root,I.hiddenDaySpacingFiller,i),ownerState:k,role:O.role}):v.jsx(k_,w({className:se(I.root,i),ref:R,centerRipple:!0,disabled:S,tabIndex:C?0:-1,onKeyDown:N=>g(N,y),onFocus:N=>d(N,y),onBlur:N=>p(N,y),onMouseEnter:N=>b(N,y),onClick:L,onMouseDown:A},O,{ownerState:k,children:m??F.format(y,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(Ym.displayName="PickersDayRaw"),process.env.NODE_ENV!=="production"&&(Ym.propTypes={action:o.oneOfType([o.func,o.shape({current:o.shape({focusVisible:o.func.isRequired})})]),centerRipple:o.bool,classes:o.object,className:o.string,component:o.elementType,day:o.object.isRequired,disabled:o.bool,disableHighlightToday:o.bool,disableMargin:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,isAnimating:o.bool,isFirstVisibleCell:o.bool.isRequired,isLastVisibleCell:o.bool.isRequired,onBlur:o.func,onDaySelect:o.func.isRequired,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onMouseEnter:o.func,outsideCurrentMonth:o.bool.isRequired,selected:o.bool,showDaysOutsideCurrentMonth:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,today:o.bool,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})])});const Km=f.memo(Ym);process.env.NODE_ENV!=="production"&&(Km.displayName="PickersDay");const Ra=e=>e.saveQuery!=null,ix=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:r,setCharacterQuery:s,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=vt(),c=({keyPressed:p,sectionIndex:g},h,b)=>{const m=p.toLowerCase(),y=n.sections[g];if(n.characterQuery!=null&&(!b||b(n.characterQuery.value))&&n.characterQuery.sectionIndex===g){const S=`${n.characterQuery.value}${m}`,x=h(S,y);if(!Ra(x))return s({sectionIndex:g,value:S,sectionType:y.type}),x}const C=h(m,y);return Ra(C)&&!C.saveQuery?(s(null),null):(s({sectionIndex:g,value:m,sectionType:y.type}),Ra(C)?null:C)},u=p=>{const g=(m,y,C)=>{const S=y.filter(x=>x.toLowerCase().startsWith(C));return S.length===0?{saveQuery:!1}:{sectionValue:S[0],shouldGoToNextSection:S.length===1}},h=(m,y,C,S)=>{const x=E=>NS(l,r,y.type,E);if(y.contentType==="letter")return g(y.format,x(y.format),m);if(C&&S!=null&&Dm(l,C).contentType==="letter"){const E=x(C),P=g(C,E,m);return Ra(P)?{saveQuery:!1}:w({},P,{sectionValue:S(P.sectionValue,E)})}return{saveQuery:!1}};return c(p,(m,y)=>{switch(y.type){case"month":{const C=S=>AS(l,S,l.formats.month,y.format);return h(m,y,l.formats.month,C)}case"weekDay":{const C=(S,x)=>x.indexOf(S).toString();return h(m,y,l.formats.weekday,C)}case"meridiem":return h(m,y);default:return{saveQuery:!1}}})},d=p=>{const g=({queryValue:b,skipIfBelowMinimum:m,section:y})=>{const C=wi(b,e),S=Number(C),x=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(S>x.maximum)return{saveQuery:!1};if(m&&S<x.minimum)return{saveQuery:!0};const E=S*10>x.maximum||C.length===x.maximum.toString().length;return{sectionValue:$S(l,S,x,e,y),shouldGoToNextSection:E}};return c(p,(b,m)=>{if(m.contentType==="digit"||m.contentType==="digit-with-letter")return g({queryValue:b,skipIfBelowMinimum:!1,section:m});if(m.type==="month"){VS(l,"digit","month","MM");const y=g({queryValue:b,skipIfBelowMinimum:!0,section:{type:m.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Ra(y))return y;const C=AS(l,y.sectionValue,"MM",m.format);return w({},y,{sectionValue:C})}if(m.type==="weekDay"){const y=g({queryValue:b,skipIfBelowMinimum:!0,section:m});if(Ra(y))return y;const C=gp(l,m.format)[Number(y.sectionValue)-1];return w({},y,{sectionValue:C})}return{saveQuery:!1}},b=>LS(b,e))};return fe(p=>{const g=n.sections[p.sectionIndex],b=LS(p.keyPressed,e)?d(w({},p,{keyPressed:Fm(p.keyPressed,e)})):u(p);if(b==null){i(null);return}a({section:g,newSectionValue:b.sectionValue,shouldGoToNextSection:b.shouldGoToNextSection})})},Ns=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:s,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:c,minDate:u,maxDate:d}=e,p=r.date(void 0,n);switch(!0){case!r.isValid(t):return"invalidDate";case!!(s&&s(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(c&&r.isAfterDay(t,p)):return"disableFuture";case!!(l&&r.isBeforeDay(t,p)):return"disablePast";case!!(u&&r.isBeforeDay(t,u)):return"minDate";case!!(d&&r.isAfterDay(t,d)):return"maxDate";default:return null}};Ns.valueManager=Io;const Xm=({adapter:e,value:t,timezone:n,props:r})=>{if(t===null)return null;const{minTime:s,maxTime:i,minutesStep:a,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:d}=r,p=e.date(void 0,n),g=ZS(c,e);switch(!0){case!e.isValid(t):return"invalidDate";case!!(s&&g(s,t)):return"minTime";case!!(i&&g(t,i)):return"maxTime";case!!(d&&e.isAfter(t,p)):return"disableFuture";case!!(u&&e.isBefore(t,p)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.getMinutes(t)%a!==0):return"minutesStep";default:return null}};Xm.valueManager=Io;const ax=({adapter:e,value:t,timezone:n,props:r})=>{const s=Ns({adapter:e,value:t,timezone:n,props:r});return s!==null?s:Xm({adapter:e,value:t,timezone:n,props:r})};ax.valueManager=Io;function lx(e){const{props:t,validator:n,value:r,timezone:s,onError:i}=e,a=vt(),l=f.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:r,timezone:s,props:t}),u=n.valueManager.hasError(c);f.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,r),l.current=c},[n,i,c,r]);const d=fe(p=>n({adapter:a,value:p,timezone:s,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const F_=5e3,cx=e=>{const t=vt(),n=To(),r=_t(),{manager:{validator:s,valueType:i,internal_valueManager:a,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:p,onChange:g,format:h,formatDensity:b="dense",selectedSections:m,onSelectedSectionsChange:y,shouldRespectLeadingZeros:C=!1,timezone:S,enableAccessibleFieldDOMStructure:x=!0},forwardedProps:{error:E}}=e,{value:P,handleValueChange:M,timezone:D}=Na({name:"a field component",timezone:S,value:u,defaultValue:d,referenceDate:p,onChange:g,valueManager:a}),O=f.useRef(P);f.useEffect(()=>{O.current=P},[P]);const{hasValidationError:k}=lx({props:c,validator:s,timezone:D,value:P,onError:c.onError}),I=f.useMemo(()=>GV(t),[t]),F=f.useMemo(()=>qV(t,I,D),[t,I,D]),T=f.useCallback(ne=>l.getSectionsFromValue(ne,te=>WS({adapter:t,localeText:n,localizedDigits:I,format:h,date:te,formatDensity:b,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:x,isRtl:r})),[l,h,n,I,r,C,t,b,x]),[R,A]=f.useState(()=>{const ne=T(P);zS(ne,i);const te={sections:ne,lastExternalValue:P,lastSectionsDependencies:{format:h,isRtl:r,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},ye=S_(ne),ce=a.getInitialReferenceValue({referenceDate:p,value:P,adapter:t,props:c,granularity:ye,timezone:D});return w({},te,{referenceValue:ce})}),[L,N]=ao({controlled:m,default:null,name:"useField",state:"selectedSections"}),_=ne=>{N(ne),y?.(ne)},H=f.useMemo(()=>Lm(L,R.sections),[L,R.sections]),B=H==="all"?0:H,$=f.useMemo(()=>XV(R.sections,r&&!x),[R.sections,r,x]),V=f.useMemo(()=>R.sections.every(ne=>ne.value===""),[R.sections]),z=f.useMemo(()=>{if(B!=null)return!1;const ne=R.sections.filter(te=>te.value!=="");return ne.length>0&&R.sections.length-ne.length>0},[R.sections,B]),j=f.useMemo(()=>E!==void 0?E:k||z,[k,z,E]),G=ne=>{const te={validationError:s({adapter:t,value:ne,timezone:D,props:c})};M(ne,te)},Q=(ne,te)=>{const ye=[...R.sections];return ye[ne]=w({},ye[ne],{value:te,modified:!0}),ye},q=f.useRef(null),Y=Pn(),K=ne=>{B!=null&&(q.current={sectionIndex:B,value:ne},Y.start(0,()=>{q.current=null}))},J=()=>{a.areValuesEqual(t,P,a.emptyValue)?A(ne=>w({},ne,{sections:ne.sections.map(te=>w({},te,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(A(ne=>w({},ne,{characterQuery:null})),G(a.emptyValue))},X=()=>{if(B==null)return;const ne=R.sections[B];ne.value!==""&&(K(""),l.getDateFromSection(P,ne)===null?A(te=>w({},te,{sections:Q(B,""),tempValueStrAndroid:null,characterQuery:null})):(A(te=>w({},te,{characterQuery:null})),G(l.updateDateInValue(P,ne,null))))},ee=ne=>{const te=(ce,Se)=>{const we=t.parse(ce,h);if(!t.isValid(we))return null;const Be=WS({adapter:t,localeText:n,localizedDigits:I,format:h,date:we,formatDensity:b,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:x,isRtl:r});return GS(t,we,Be,Se,!1)},ye=l.parseValueStr(ne,R.referenceValue,te);G(ye)},W=Pn(),le=({section:ne,newSectionValue:te,shouldGoToNextSection:ye})=>{Y.clear(),W.clear();const ce=l.getDateFromSection(P,ne);ye&&B<R.sections.length-1&&_(B+1);const Se=Q(B,te),we=l.getDateSectionsFromValue(Se,ne),Be=UV(t,we,I);if(t.isValid(Be)){const Fe=GS(t,Be,we,l.getDateFromSection(R.referenceValue,ne),!0);return ce==null&&W.start(0,()=>{O.current===P&&A(Ye=>w({},Ye,{sections:l.clearDateSections(R.sections,ne),tempValueStrAndroid:null}))}),G(l.updateDateInValue(P,ne,Fe))}return we.every(Fe=>Fe.value!=="")&&(ce==null||t.isValid(ce))?(K(te),G(l.updateDateInValue(P,ne,Be))):(ce!=null&&(K(te),G(l.updateDateInValue(P,ne,Be))),A(Fe=>w({},Fe,{sections:Se,tempValueStrAndroid:null})))},oe=ne=>A(te=>w({},te,{tempValueStrAndroid:ne})),re=fe(ne=>{A(te=>w({},te,{characterQuery:ne}))});if(P!==R.lastExternalValue){const ne=q.current!=null&&!t.isValid(l.getDateFromSection(P,R.sections[q.current.sectionIndex]));let te;ne?te=Q(q.current.sectionIndex,q.current.value):te=T(P),A(ye=>w({},ye,{lastExternalValue:P,sections:te,sectionsDependencies:{format:h,isRtl:r,locale:t.locale},referenceValue:ne?ye.referenceValue:l.updateReferenceValue(t,P,ye.referenceValue),tempValueStrAndroid:null}))}if(r!==R.lastSectionsDependencies.isRtl||h!==R.lastSectionsDependencies.format||t.locale!==R.lastSectionsDependencies.locale){const ne=T(P);zS(ne,i),A(te=>w({},te,{lastSectionsDependencies:{format:h,isRtl:r,locale:t.locale},sections:ne,tempValueStrAndroid:null,characterQuery:null}))}R.characterQuery!=null&&!j&&B==null&&re(null),R.characterQuery!=null&&R.sections[R.characterQuery.sectionIndex]?.type!==R.characterQuery.sectionType&&re(null),f.useEffect(()=>{q.current!=null&&(q.current=null)});const ae=Pn();return f.useEffect(()=>(R.characterQuery!=null&&ae.start(F_,()=>re(null)),()=>{}),[R.characterQuery,re,ae]),f.useEffect(()=>{R.tempValueStrAndroid!=null&&B!=null&&X()},[R.sections]),{activeSectionIndex:B,areAllSectionsEmpty:V,error:j,localizedDigits:I,parsedSelectedSections:H,sectionOrder:$,sectionsValueBoundaries:F,state:R,timezone:D,value:P,clearValue:J,clearActiveSection:X,setCharacterQuery:re,setSelectedSections:_,setTempAndroidValueStr:oe,updateSectionValue:le,updateValueFromValueStr:ee,getSectionsFromValue:T}};function ux(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:r}=e,s=$m(),i=US(),a=tt(n.unstableFieldRef,r?null:i?.fieldRef),l=s?.setValue,c=f.useCallback((d,p)=>l?.(d,{validationError:p.validationError,shouldClose:!1}),[l]),u=f.useMemo(()=>i!=null&&s!=null?w({value:s.value,onChange:c,timezone:s.timezone,disabled:s.disabled,readOnly:s.readOnly,autoFocus:s.autoFocus&&!s.open,focused:s.open?!0:void 0,format:s.fieldFormat,formatDensity:i.formatDensity,enableAccessibleFieldDOMStructure:i.enableAccessibleFieldDOMStructure,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,unstableFieldRef:a},n):n,[s,i,n,c,a]);return t(u)}function Zm(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:r,state:s}}=e;if(!n.isReady())return;const i=Bt(n.getRoot()).getSelection();if(!i)return;if(r==null){i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(uo(n.getRoot())))return;const a=new window.Range;let l;r==="all"?l=n.getRoot():s.sections[r].type==="empty"?l=n.getSectionContainer(r):l=n.getSectionContent(r),a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function dx(e){const t=vt(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:r,disabled:s,readOnly:i},stateResponse:{state:a,value:l,activeSectionIndex:c,parsedSelectedSections:u,sectionsValueBoundaries:d,localizedDigits:p,timezone:g,sectionOrder:h,clearValue:b,clearActiveSection:m,setSelectedSections:y,updateSectionValue:C}}=e;return fe(S=>{if(!s)switch(!0){case((S.ctrlKey||S.metaKey)&&String.fromCharCode(S.keyCode)==="A"&&!S.shiftKey&&!S.altKey):{S.preventDefault(),y("all");break}case S.key==="ArrowRight":{if(S.preventDefault(),u==null)y(h.startIndex);else if(u==="all")y(h.endIndex);else{const x=h.neighbors[u].rightIndex;x!==null&&y(x)}break}case S.key==="ArrowLeft":{if(S.preventDefault(),u==null)y(h.endIndex);else if(u==="all")y(h.startIndex);else{const x=h.neighbors[u].leftIndex;x!==null&&y(x)}break}case S.key==="Delete":{if(S.preventDefault(),i)break;u==null||u==="all"?b():m();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(S.key):{if(S.preventDefault(),i||c==null)break;u==="all"&&y(c);const x=a.sections[c],E=R_(t,g,x,S.key,d,p,n.getDateFromSection(l,x),{minutesStep:r});C({section:x,newSectionValue:E,shouldGoToNextSection:!1});break}}})}function N_(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function R_(e,t,n,r,s,i,a,l){const c=N_(r),u=r==="Home",d=r==="End",p=n.value===""||u||d,g=()=>{const b=s[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),m=S=>$S(e,S,b,i,n),y=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let C;if(p){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?C=b.minimum:C=b.maximum}else C=parseInt(wi(n.value,i),10)+c*y;return C%y!==0&&((c<0||u)&&(C+=y-(y+C)%y),(c>0||d)&&(C-=C%y)),C>b.maximum?m(b.minimum+(C-b.maximum-1)%(b.maximum-b.minimum+1)):C<b.minimum?m(b.maximum-(b.minimum-C-1)%(b.maximum-b.minimum+1)):m(C)},h=()=>{const b=NS(e,t,n.type,n.format);if(b.length===0)return n.value;if(p)return c>0||u?b[0]:b[b.length-1];const C=((b.indexOf(n.value)+c)%b.length+b.length)%b.length;return b[C]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?g():h()}function L_(e){const{manager:t,focused:n,setFocused:r,domGetters:s,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:c,sectionOrder:u,state:d,clearValue:p,setCharacterQuery:g,setSelectedSections:h,updateValueFromValueStr:b},internalPropsWithDefaults:{disabled:m=!1,readOnly:y=!1}}=e,C=dx({manager:t,internalPropsWithDefaults:l,stateResponse:i}),S=Pn(),x=fe(O=>{m||!s.isReady()||(r(!0),c==="all"?S.start(0,()=>{const k=document.getSelection().getRangeAt(0).startOffset;if(k===0){h(u.startIndex);return}let I=0,F=0;for(;F<k&&I<d.sections.length;){const T=d.sections[I];I+=1,F+=`${T.startSeparator}${T.value||T.placeholder}${T.endSeparator}`.length}h(I-1)}):n?s.getRoot().contains(O.target)||h(u.startIndex):(r(!0),h(u.startIndex)))}),E=fe(O=>{if(!s.isReady()||c!=="all")return;const I=O.target.textContent??"";s.getRoot().innerHTML=d.sections.map(F=>`${F.startSeparator}${F.value||F.placeholder}${F.endSeparator}`).join(""),Zm({focused:n,domGetters:s,stateResponse:i}),I.length===0||I.charCodeAt(0)===10?(p(),h("all")):I.length>1?b(I):(c==="all"&&h(0),a({keyPressed:I,sectionIndex:0}))}),P=fe(O=>{if(y||c!=="all"){O.preventDefault();return}const k=O.clipboardData.getData("text");O.preventDefault(),g(null),b(k)}),M=fe(()=>{if(n||m||!s.isReady())return;const O=uo(s.getRoot());r(!0),s.getSectionIndexFromDOMElement(O)!=null||h(u.startIndex)}),D=fe(()=>{setTimeout(()=>{if(!s.isReady())return;const O=uo(s.getRoot());!s.getRoot().contains(O)&&(r(!1),h(null))})});return{onKeyDown:C,onBlur:D,onFocus:M,onClick:x,onPaste:P,onInput:E,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function $_(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:r,updateValueFromValueStr:s}}=e,i=fe(l=>{s(l.target.value)});return{value:f.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(r.sections),[n,r.sections,t]),onChange:i}}function A_(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,r=f.useCallback(s=>i=>{n||i.isDefaultPrevented()||t(s)},[n,t]);return f.useCallback(s=>({"data-sectionindex":s,onClick:r(s)}),[r])}function V_(e){const t=vt(),n=To(),{focused:r,domGetters:s,stateResponse:i,applyCharacterEditing:a,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:p,clearActiveSection:g,setCharacterQuery:h,setSelectedSections:b,updateSectionValue:m,updateValueFromValueStr:y},internalPropsWithDefaults:{disabled:C=!1,readOnly:S=!1}}=e,x=c==="all",E=!x&&!C&&!S,P=fe(F=>{if(!s.isReady())return;const T=d.sections[F];s.getSectionContent(F).innerHTML=T.value||T.placeholder,Zm({focused:r,domGetters:s,stateResponse:i})}),M=fe(F=>{if(!s.isReady())return;const T=F.target,R=T.textContent??"",A=s.getSectionIndexFromDOMElement(T),L=d.sections[A];if(S){P(A);return}if(R.length===0){if(L.value===""){P(A);return}const N=F.nativeEvent.inputType;if(N==="insertParagraph"||N==="insertLineBreak"){P(A);return}P(A),g();return}a({keyPressed:R,sectionIndex:A}),P(A)}),D=fe(F=>{F.preventDefault()}),O=fe(F=>{if(F.preventDefault(),S||C||typeof c!="number")return;const T=d.sections[c],R=F.clipboardData.getData("text"),A=/^[a-zA-Z]+$/.test(R),L=/^[0-9]+$/.test(R),N=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(R);T.contentType==="letter"&&A||T.contentType==="digit"&&L||T.contentType==="digit-with-letter"&&N?(h(null),m({section:T,newSectionValue:R,shouldGoToNextSection:!0})):!A&&!L&&(h(null),y(R))}),k=fe(F=>{F.preventDefault(),F.dataTransfer.dropEffect="none"}),I=f.useCallback(F=>()=>{C||b(F)},[C,b]);return f.useCallback((F,T)=>{const R=u[F.type]({currentDate:l.getDateFromSection(p,F),contentType:F.contentType,format:F.format});return{onInput:M,onPaste:O,onMouseUp:D,onDragOver:k,onFocus:I(T),"aria-readonly":S,"aria-valuenow":B_(F,t),"aria-valuemin":R.minimum,"aria-valuemax":R.maximum,"aria-valuetext":F.value?__(F,t):n.empty,"aria-label":n[F.type],"aria-disabled":C,tabIndex:!E||x||T>0?-1:0,contentEditable:!x&&!C&&!S,role:"spinbutton","data-range-position":F.dateName||void 0,spellCheck:E?!1:void 0,autoCapitalize:E?"none":void 0,autoCorrect:E?"off":void 0,children:F.value||F.placeholder,inputMode:F.contentType==="letter"?"text":"numeric"}},[u,x,C,S,E,n,t,M,O,D,k,I,l,p])}function __(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit"){const r=t.setMonth(t.date(),Number(e.value)-1);return t.isValid(r)?t.format(r,"month"):""}const n=t.parse(e.value,e.format);return n&&t.isValid(n)?t.format(n,"month"):void 0}case"day":if(e.contentType==="digit"){const n=t.setDate(t.startOfYear(t.date()),Number(e.value));return t.isValid(n)?t.format(n,"dayOfMonthFull"):""}return e.value;case"weekDay":return;default:return}}function B_(e,t){if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}}const H_=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:r,manager:{valueType:s,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=DS(t,s),c=ux({manager:n,internalProps:a,skipContextFieldRefAssignment:r}),{sectionListRef:u,onBlur:d,onClick:p,onFocus:g,onInput:h,onPaste:b,onKeyDown:m,onClear:y,clearable:C}=l,{disabled:S=!1,readOnly:x=!1,autoFocus:E=!1,focused:P,unstableFieldRef:M}=c,D=f.useRef(null),O=tt(u,D),k=f.useMemo(()=>({isReady:()=>D.current!=null,getRoot:()=>D.current.getRoot(),getSectionContainer:ae=>D.current.getSectionContainer(ae),getSectionContent:ae=>D.current.getSectionContent(ae),getSectionIndexFromDOMElement:ae=>D.current.getSectionIndexFromDOMElement(ae)}),[D]),I=cx({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:F,error:T,parsedSelectedSections:R,sectionOrder:A,state:L,value:N,clearValue:_,setSelectedSections:H}=I,B=ix({stateResponse:I}),$=i(N),[V,z]=f.useState(!1);function j(ae=0){if(S||!D.current||px(D)!=null)return;const ne=Lm(ae,L.sections);z(!0),D.current.getSectionContent(ne).focus()}const G=L_({manager:n,internalPropsWithDefaults:c,stateResponse:I,applyCharacterEditing:B,focused:V,setFocused:z,domGetters:k}),Q=$_({manager:n,stateResponse:I}),q=A_({stateResponse:I,internalPropsWithDefaults:c}),Y=V_({manager:n,stateResponse:I,applyCharacterEditing:B,internalPropsWithDefaults:c,domGetters:k,focused:V}),K=fe(ae=>{m?.(ae),G.onKeyDown(ae)}),J=fe(ae=>{d?.(ae),G.onBlur(ae)}),X=fe(ae=>{g?.(ae),G.onFocus(ae)}),ee=fe(ae=>{ae.isDefaultPrevented()||(p?.(ae),G.onClick(ae))}),W=fe(ae=>{b?.(ae),G.onPaste(ae)}),le=fe(ae=>{h?.(ae),G.onInput(ae)}),oe=fe((ae,...ne)=>{ae.preventDefault(),y?.(ae,...ne),_(),fx(D)?H(A.startIndex):j(0)}),re=f.useMemo(()=>L.sections.map((ae,ne)=>{const te=Y(ae,ne);return{container:q(ne),content:Y(ae,ne),before:{children:ae.startSeparator},after:{children:ae.endSeparator,"data-range-position":ae.isEndFormatSeparator?te["data-range-position"]:void 0}}}),[L.sections,q,Y]);return f.useEffect(()=>{if(D.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
303
+ `));E&&!S&&D.current&&D.current.getSectionContent(A.startIndex).focus()},[]),it(()=>{if(!(!V||!D.current)){if(R==="all")D.current.getRoot().focus();else if(typeof R=="number"){const ae=D.current.getSectionContent(R);ae&&ae.focus()}}},[R,V]),it(()=>{Zm({focused:V,domGetters:k,stateResponse:I})}),f.useImperativeHandle(M,()=>({getSections:()=>L.sections,getActiveSectionIndex:()=>px(D),setSelectedSections:ae=>{if(S||!D.current)return;const ne=Lm(ae,L.sections);z((ne==="all"?0:ne)!==null),H(ae)},focusField:j,isFieldFocused:()=>fx(D)})),w({},l,G,{onBlur:J,onClick:ee,onFocus:X,onInput:le,onPaste:W,onKeyDown:K,onClear:oe},Q,{error:T,clearable:!!(C&&!F&&!x&&!S),focused:P??V,sectionListRef:O,enableAccessibleFieldDOMStructure:!0,elements:re,areAllSectionsEmpty:F,disabled:S,readOnly:x,autoFocus:E,openPickerAriaLabel:$})};function px(e){const t=uo(e.current?.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function fx(e){const t=uo(e.current?.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const La=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),z_=(e,t,n)=>{let r=0,s=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],c=Rm(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${c}${l.endSeparator}`,d=La(u).length,p=u.length,g=La(c),h=s+(g===""?0:c.indexOf(g[0]))+l.startSeparator.length,b=h+g.length;i.push(w({},l,{start:r,end:r+d,startInInput:h,endInInput:b})),r+=d,s+=p}return i},j_=e=>{const t=_t(),n=Pn(),r=Pn(),{props:s,manager:i,skipContextFieldRefAssignment:a,manager:{valueType:l,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:d}}=e,{internalProps:p,forwardedProps:g}=DS(s,l),h=ux({manager:i,internalProps:p,skipContextFieldRefAssignment:a}),{onFocus:b,onClick:m,onPaste:y,onBlur:C,onKeyDown:S,onClear:x,clearable:E,inputRef:P,placeholder:M}=g,{readOnly:D=!1,disabled:O=!1,autoFocus:k=!1,focused:I,unstableFieldRef:F}=h,T=f.useRef(null),R=tt(P,T),A=cx({manager:i,internalPropsWithDefaults:h,forwardedProps:g}),{activeSectionIndex:L,areAllSectionsEmpty:N,error:_,localizedDigits:H,parsedSelectedSections:B,sectionOrder:$,state:V,value:z,clearValue:j,clearActiveSection:G,setCharacterQuery:Q,setSelectedSections:q,setTempAndroidValueStr:Y,updateSectionValue:K,updateValueFromValueStr:J,getSectionsFromValue:X}=A,ee=ix({stateResponse:A}),W=d(z),le=f.useMemo(()=>z_(V.sections,H,t),[V.sections,H,t]);function oe(){const me=T.current.selectionStart??0;let Pe;me<=le[0].startInInput||me>=le[le.length-1].endInInput?Pe=1:Pe=le.findIndex(Te=>Te.startInInput-Te.startSeparator.length>me);const ge=Pe===-1?le.length-1:Pe-1;q(ge)}function re(me=0){uo(T.current)!==T.current&&(T.current?.focus(),q(me))}const ae=fe(me=>{b?.(me);const Pe=T.current;n.start(0,()=>{!Pe||Pe!==T.current||L==null&&(Pe.value.length&&Number(Pe.selectionEnd)-Number(Pe.selectionStart)===Pe.value.length?q("all"):oe())})}),ne=fe((me,...Pe)=>{me.isDefaultPrevented()||(m?.(me,...Pe),oe())}),te=fe(me=>{if(y?.(me),me.preventDefault(),D||O)return;const Pe=me.clipboardData.getData("text");if(typeof B=="number"){const ge=V.sections[B],Te=/^[a-zA-Z]+$/.test(Pe),$e=/^[0-9]+$/.test(Pe),Ge=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Pe);if(ge.contentType==="letter"&&Te||ge.contentType==="digit"&&$e||ge.contentType==="digit-with-letter"&&Ge){Q(null),K({section:ge,newSectionValue:Pe,shouldGoToNextSection:!0});return}if(Te||$e)return}Q(null),J(Pe)}),ye=fe(me=>{C?.(me),q(null)}),ce=fe(me=>{if(D)return;const Pe=me.target.value;if(Pe===""){j();return}const ge=me.nativeEvent.data,Te=ge&&ge.length>1,$e=Te?ge:Pe,Ge=La($e);if(B==="all"&&q(L),L==null||Te){J(Te?ge:Ge);return}let ot;if(B==="all"&&Ge.length===1)ot=Ge;else{const Tt=La(u.getV6InputValueFromSections(le,H,t));let We=-1,Oe=-1;for(let Et=0;Et<Tt.length;Et+=1)We===-1&&Tt[Et]!==Ge[Et]&&(We=Et),Oe===-1&&Tt[Tt.length-Et-1]!==Ge[Ge.length-Et-1]&&(Oe=Et);const Ue=le[L];if(We<Ue.start||Tt.length-Oe-1>Ue.end)return;const zt=Ge.length-Tt.length+Ue.end-La(Ue.endSeparator||"").length;ot=Ge.slice(Ue.start+La(Ue.startSeparator||"").length,zt)}if(ot.length===0){KV()&&Y($e),G();return}ee({keyPressed:ot,sectionIndex:L})}),Se=fe((me,...Pe)=>{me.preventDefault(),x?.(me,...Pe),j(),hx(T)?q($.startIndex):re(0)}),we=dx({manager:i,internalPropsWithDefaults:h,stateResponse:A}),Be=fe(me=>{S?.(me),we(me)}),Fe=f.useMemo(()=>M!==void 0?M:u.getV6InputValueFromSections(X(c.emptyValue),H,t),[M,u,X,c.emptyValue,H,t]),Ye=f.useMemo(()=>V.tempValueStrAndroid??u.getV6InputValueFromSections(V.sections,H,t),[V.sections,u,V.tempValueStrAndroid,H,t]);f.useEffect(()=>{T.current&&T.current===uo(T.current)&&q("all")},[]),it(()=>{function me(){if(!T.current)return;if(B==null){T.current.scrollLeft&&(T.current.scrollLeft=0);return}if(T.current!==uo(T.current))return;const Pe=T.current.scrollTop;if(B==="all")T.current.select();else{const ge=le[B],Te=ge.type==="empty"?ge.startInInput-ge.startSeparator.length:ge.startInInput,$e=ge.type==="empty"?ge.endInInput+ge.endSeparator.length:ge.endInInput;(Te!==T.current.selectionStart||$e!==T.current.selectionEnd)&&T.current===uo(T.current)&&T.current.setSelectionRange(Te,$e),r.start(0,()=>{T.current&&T.current===uo(T.current)&&T.current.selectionStart===T.current.selectionEnd&&(T.current.selectionStart!==Te||T.current.selectionEnd!==$e)&&me()})}T.current.scrollTop=Pe}me()});const Ne=f.useMemo(()=>L==null||V.sections[L].contentType==="letter"?"text":"numeric",[L,V.sections]),He=!(T.current&&T.current===uo(T.current))&&N;return f.useImperativeHandle(F,()=>({getSections:()=>V.sections,getActiveSectionIndex:()=>{const me=T.current.selectionStart??0,Pe=T.current.selectionEnd??0;if(me===0&&Pe===0)return null;const ge=me<=le[0].startInInput?1:le.findIndex(Te=>Te.startInInput-Te.startSeparator.length>me);return ge===-1?le.length-1:ge-1},setSelectedSections:me=>q(me),focusField:re,isFieldFocused:()=>hx(T)})),w({},g,{error:_,"aria-invalid":_,clearable:!!(E&&!N&&!D&&!O),onBlur:ye,onClick:ne,onFocus:ae,onPaste:te,onKeyDown:Be,onClear:Se,inputRef:R,enableAccessibleFieldDOMStructure:!1,placeholder:Fe,inputMode:Ne,autoComplete:"off",value:He?"":Ye,onChange:ce,focused:I,disabled:O,readOnly:D,autoFocus:k,openPickerAriaLabel:W})};function hx(e){return e.current===uo(e.current)}const yp=e=>{const t=US();return(e.props.enableAccessibleFieldDOMStructure??t?.enableAccessibleFieldDOMStructure??!0?H_:j_)(e)};function G_(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return f.useMemo(()=>({valueType:"date",validator:Ns,internal_valueManager:Io,internal_fieldValueManager:Wm,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:U_,internal_useOpenPickerButtonAriaLabel:W_}),[t])}function W_(e){const t=vt(),n=To();return f.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function U_(e){const t=vt(),n=Rs(e);return f.useMemo(()=>w({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function Rs(e){const t=vt(),n=qS();return f.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:pp(t,e.minDate,n.minDate),maxDate:pp(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function q_(e={}){const{enableAccessibleFieldDOMStructure:t=!0,ampm:n}=e;return f.useMemo(()=>({valueType:"time",validator:Xm,internal_valueManager:Io,internal_fieldValueManager:Wm,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:K_,internal_useOpenPickerButtonAriaLabel:Y_(n)}),[n,t])}function Y_(e){return function(n){const r=vt(),s=To();return f.useMemo(()=>{const i=e??r.is12HourCycleInCurrentLocale()?"fullTime12h":"fullTime24h",a=r.isValid(n)?r.format(n,i):null;return s.openTimePickerDialogue(a)},[n,s,r])}}function K_(e){const t=vt(),n=X_(e),r=f.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return f.useMemo(()=>w({},e,n,{format:e.format??(r?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,r,t])}function X_(e){return f.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}function Z_(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return f.useMemo(()=>({valueType:"date-time",validator:ax,internal_valueManager:Io,internal_fieldValueManager:Wm,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:J_,internal_useOpenPickerButtonAriaLabel:Q_}),[t])}function Q_(e){const t=vt(),n=To();return f.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function J_(e){const t=vt(),n=eB(e),r=f.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return f.useMemo(()=>w({},e,n,{format:e.format??(r?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h)}),[e,n,r,t])}function eB(e){const t=vt(),n=qS();return f.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,disableIgnoringDatePartForTimeValidation:!!e.minDateTime||!!e.maxDateTime||!!e.disableFuture||!!e.disablePast,minDate:pp(t,e.minDateTime??e.minDate,n.minDate),maxDate:pp(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime}),[e.minDateTime,e.maxDateTime,e.minTime,e.maxTime,e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}const tB=e=>{const t=G_(e);return yp({manager:t,props:e})};function Qm(e){const{ownerState:t}=Un(),n=_t();return f.useMemo(()=>w({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}function nB(e){return ke("MuiPickersTextField",e)}Me("MuiPickersTextField",["root","focused","disabled","error","required"]);function oB(e){return ke("MuiPickersInputBase",e)}const $a=Me("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function rB(e){return ke("MuiPickersSectionList",e)}const Aa=Me("MuiPickersSectionList",["root","section","sectionContent"]),sB=["slots","slotProps","elements","sectionListRef","classes"],gx=U("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),mx=U("span",{name:"MuiPickersSectionList",slot:"Section"})({}),bx=U("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),yx=U("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),iB=e=>pe({root:["root"],section:["section"],sectionContent:["sectionContent"]},rB,e);function vx(e){const{slots:t,slotProps:n,element:r,classes:s}=e,{ownerState:i}=Un(),a=t?.section??mx,l=nt({elementType:a,externalSlotProps:n?.section,externalForwardedProps:r.container,className:s.section,ownerState:i}),c=t?.sectionContent??yx,u=nt({elementType:c,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:s.sectionContent,ownerState:i}),d=t?.sectionSeparator??bx,p=nt({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:w({},i,{separatorPosition:"before"})}),g=nt({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:w({},i,{separatorPosition:"after"})}),h=f.useRef(null),b=tt(u.ref,h),m=y=>{const C=y.relatedTarget,S=y.currentTarget.closest(`.${Aa.root}`);if(S&&C instanceof Node&&S.contains(C)){y.stopPropagation();return}};return v.jsxs(a,w({},l,{children:[v.jsx(d,w({},p)),v.jsx(c,w({},u,{ref:b,onBlur:m})),v.jsx(d,w({},g))]}))}process.env.NODE_ENV!=="production"&&(vx.propTypes={classes:o.object.isRequired,element:o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired}).isRequired,slotProps:o.object,slots:o.object});const Jm=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiPickersSectionList"}),{slots:s,slotProps:i,elements:a,sectionListRef:l,classes:c}=r,u=ie(r,sB),d=iB(c),{ownerState:p}=Un(),g=f.useRef(null),h=tt(n,g),b=C=>{if(!g.current)throw new Error(`MUI X: Cannot call sectionListRef.${C} before the mount of the component.`);return g.current};f.useImperativeHandle(l,()=>({getRoot(){return b("getRoot")},getSectionContainer(C){return b("getSectionContainer").querySelector(`.${Aa.section}[data-sectionindex="${C}"]`)},getSectionContent(C){return b("getSectionContent").querySelector(`.${Aa.section}[data-sectionindex="${C}"] .${Aa.sectionContent}`)},getSectionIndexFromDOMElement(C){const S=b("getSectionIndexFromDOMElement");if(C==null||!S.contains(C))return null;let x=null;return C.classList.contains(Aa.section)?x=C:C.classList.contains(Aa.sectionContent)&&(x=C.parentElement),x==null?null:Number(x.dataset.sectionindex)}}));const m=s?.root??gx,y=nt({elementType:m,externalSlotProps:i?.root,externalForwardedProps:u,additionalProps:{ref:h,suppressContentEditableWarning:!0},className:d.root,ownerState:p});return v.jsx(m,w({},y,{children:y.contentEditable?a.map(({content:C,before:S,after:x})=>`${S.children}${C.children}${x.children}`).join(""):v.jsx(f.Fragment,{children:a.map((C,S)=>v.jsx(vx,{slots:s,slotProps:i,element:C,classes:d},S))})}))});process.env.NODE_ENV!=="production"&&(Jm.displayName="PickersSectionList"),process.env.NODE_ENV!=="production"&&(Jm.propTypes={classes:o.object,contentEditable:o.bool.isRequired,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object});const eb=f.createContext(null);process.env.NODE_ENV!=="production"&&(eb.displayName="PickerTextFieldOwnerStateContext");const vp=()=>{const e=f.useContext(eb);if(e==null)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join(`
304
+ `));return e},aB=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],lB=e=>Math.round(e*1e5)/1e5,Cp=U("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>w({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${lB(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),tb=U(gx,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!0,isLabelShrunk:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),cB=U(mx,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),uB=U(yx,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),dB=U(bx,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),pB=U("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(w({},b8)),fB=U("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),hB=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldReadOnly:s,hasFieldError:i,inputSize:a,isInputInFullWidth:l,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,p={root:["root",n&&!r&&"focused",r&&"disabled",s&&"readOnly",i&&"error",l&&"fullWidth",`color${de(c)}`,a==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return pe(p,oB,e)};function Cx(e,t,n,r){if(e.content.id){const s=t.current?.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${r}"]`);if(s)return Array.from(s).reduce((i,a)=>i+a.offsetWidth,0)}return 0}function gB(e,t){let n=0;if(t.current?.getAttribute("data-active-range-position")==="end")for(let s=e.length-1;s>=e.length/2;s-=1)n+=Cx(e[s],t,s,"end");else for(let s=0;s<e.length/2;s+=1)n+=Cx(e[s],t,s,"start");return{activeBarWidth:n,sectionOffsets:[t.current?.querySelector('[data-sectionindex="0"]')?.offsetLeft||0,t.current?.querySelector(`[data-sectionindex="${e.length/2}"]`)?.offsetLeft||0]}}const Lc=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiPickersInputBase"}),{elements:s,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:p,slots:g,slotProps:h,contentEditable:b,tabIndex:m,onInput:y,onPaste:C,onKeyDown:S,name:x,readOnly:E,inputProps:P,inputRef:M,sectionListRef:D,onFocus:O,onBlur:k,classes:I,ownerState:F}=r,T=ie(r,aB),R=vp(),A=f.useRef(null),L=f.useRef(null),N=f.useRef([]),_=tt(n,A),H=tt(P?.ref,M),B=Vo();if(!B)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const $=F??R,V=X=>{B.onFocus?.(X),O?.(X)},z=X=>{V(X)},j=X=>{if(S?.(X),X.key==="Enter"&&!X.defaultMuiPrevented){if(A.current?.dataset.multiInput)return;const ee=A.current?.closest("form"),W=ee?.querySelector('[type="submit"]');if(!ee||!W)return;X.preventDefault(),ee.requestSubmit(W)}},G=X=>{B.onBlur?.(X),k?.(X)};f.useEffect(()=>{B&&B.setAdornedStart(!!d)},[B,d]),f.useEffect(()=>{B&&(i?B.onEmpty():B.onFilled())},[B,i]);const Q=hB(I,$),q=g?.root||Cp,Y=nt({elementType:q,externalSlotProps:h?.root,externalForwardedProps:T,additionalProps:{"aria-invalid":B.error,ref:_},className:Q.root,ownerState:$}),K=g?.input||tb,J=s.some(X=>X.content["data-range-position"]!==void 0);return f.useEffect(()=>{if(!J||!$.isPickerOpen)return;const{activeBarWidth:X,sectionOffsets:ee}=gB(s,A);N.current=[ee[0],ee[1]],L.current&&(L.current.style.width=`${X}px`)},[s,J,$.isPickerOpen]),v.jsxs(q,w({},Y,{children:[d,v.jsx(Jm,{sectionListRef:D,elements:s,contentEditable:b,tabIndex:m,className:Q.sectionsContainer,onFocus:V,onBlur:G,onInput:y,onPaste:C,onKeyDown:j,slots:{root:K,section:cB,sectionContent:uB,sectionSeparator:dB},slotProps:{root:w({},h?.input,{ownerState:$}),sectionContent:{className:$a.sectionContent},sectionSeparator:({separatorPosition:X})=>({className:X==="before"?$a.sectionBefore:$a.sectionAfter})}}),u,p?p(w({},B)):null,v.jsx(pB,w({name:x,className:Q.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:E,required:B.required,disabled:B.disabled,onFocus:z},P,{ref:H})),J&&v.jsx(fB,{className:Q.activeBar,ref:L,ownerState:{sectionOffsets:N.current}})]}))});process.env.NODE_ENV!=="production"&&(Lc.displayName="PickersInputBase"),process.env.NODE_ENV!=="production"&&(Lc.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,id:o.string,inputProps:o.object,inputRef:Ft,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired});function mB(e){return ke("MuiPickersOutlinedInput",e)}const br=w({},$a,Me("MuiPickersOutlinedInput",["root","notchedOutline","input"])),bB=["children","className","label","notched","shrink"],yB=U("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{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%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),wx=U("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),vB=U("legend",{slot:"internal",shouldForwardProp:e=>So(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},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:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function CB(e){const{className:t,label:n,notched:r}=e,s=ie(e,bB),i=vp();return v.jsx(yB,w({"aria-hidden":!0,className:t},s,{ownerState:i,children:v.jsx(vB,{ownerState:i,notched:r,children:n?v.jsx(wx,{children:n}):v.jsx(wx,{className:"notranslate",children:"​"})})}))}const wB=["label","autoFocus","ownerState","classes","notched"],SB=U(Cp,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${br.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${br.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${br.focused} .${br.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${br.disabled}`]:{[`& .${br.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${br.error} .${br.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{inputColor:n},style:{[`&.${br.focused}:not(.${br.error}) .${br.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),xB=U(tb,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),PB=e=>{const n=pe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},mB,e);return w({},e,n)},wp=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiPickersOutlinedInput"}),{label:s,classes:i,notched:a}=r,l=ie(r,wB),c=Vo(),u=PB(i);return v.jsx(Lc,w({slots:{root:SB,input:xB},renderSuffix:d=>v.jsx(CB,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:s!=null&&s!==""&&c?.required?v.jsxs(f.Fragment,{children:[s," ","*"]}):s})},l,{label:s,classes:u,ref:n}))});process.env.NODE_ENV!=="production"&&(wp.displayName="PickersOutlinedInput"),process.env.NODE_ENV!=="production"&&(wp.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,id:o.string,inputProps:o.object,inputRef:Ft,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,notched:o.bool,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired}),wp.muiName="Input";function EB(e){return ke("MuiPickersFilledInput",e)}const Pi=w({},$a,Me("MuiPickersFilledInput",["root","underline","input"])),TB=["label","autoFocus","disableUnderline","hiddenLabel","classes"],IB=U(Cp,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>So(e)&&e!=="disableUnderline"})(({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)",s=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{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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Pi.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Pi.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>({props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:{disableUnderline:!1},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"},[`&.${Pi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pi.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${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(.${Pi.disabled}, .${Pi.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Pi.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),MB=U(tb,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>So(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),OB=(e,t)=>{const{inputHasUnderline:n}=t,s=pe({root:["root",n&&"underline"],input:["input"]},EB,e);return w({},e,s)},Sp=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiPickersFilledInput"}),{label:s,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l}=r,c=ie(r,TB),u=vp(),d=w({},u,{inputHasUnderline:!i}),p=OB(l,d);return v.jsx(Lc,w({slots:{root:IB,input:MB},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},c,{label:s,classes:p,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(Sp.displayName="PickersFilledInput"),process.env.NODE_ENV!=="production"&&(Sp.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,disableUnderline:o.bool,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputProps:o.object,inputRef:Ft,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired}),Sp.muiName="Input";function kB(e){return ke("MuiPickersFilledInput",e)}const $c=w({},$a,Me("MuiPickersInput",["root","underline","input"])),DB=["label","autoFocus","disableUnderline","ownerState","classes"],FB=U(Cp,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>So(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{inputColor:r,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",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"},[`&.${$c.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$c.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(.${$c.disabled}, .${$c.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$c.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),NB=(e,t)=>{const{inputHasUnderline:n}=t,s=pe({root:["root",!n&&"underline"],input:["input"]},kB,e);return w({},e,s)},xp=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiPickersInput"}),{label:s,disableUnderline:i=!1,classes:a}=r,l=ie(r,DB),c=vp(),u=w({},c,{inputHasUnderline:!i}),d=NB(a,u);return v.jsx(Lc,w({slots:{root:FB},slotProps:{root:{disableUnderline:i}}},l,{ownerState:u,label:s,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(xp.displayName="PickersInput"),process.env.NODE_ENV!=="production"&&(xp.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,disableUnderline:o.bool,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,id:o.string,inputProps:o.object,inputRef:Ft,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired}),xp.muiName="Input";const RB=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],LB={standard:xp,filled:Sp,outlined:wp},$B=U(Ms,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),AB=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldRequired:s}=t;return pe({root:["root",n&&!r&&"focused",r&&"disabled",s&&"required"]},nB,e)},Pp=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiPickersTextField"}),{onFocus:s,onBlur:i,className:a,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:p="outlined",required:g=!1,hiddenLabel:h=!1,InputProps:b,inputProps:m,inputRef:y,sectionListRef:C,elements:S,areAllSectionsEmpty:x,onClick:E,onKeyDown:P,onKeyUp:M,onPaste:D,onInput:O,endAdornment:k,startAdornment:I,tabIndex:F,contentEditable:T,focused:R,value:A,onChange:L,fullWidth:N,id:_,name:H,helperText:B,FormHelperTextProps:$,label:V,InputLabelProps:z,"data-active-range-position":j}=r,G=ie(r,RB),Q=f.useRef(null),q=tt(n,Q),Y=at(_),K=B&&Y?`${Y}-helper-text`:void 0,J=V&&Y?`${Y}-label`:void 0,X=Qm({disabled:r.disabled,required:r.required,readOnly:b?.readOnly}),ee=f.useMemo(()=>w({},X,{isFieldValueEmpty:x,isFieldFocused:R??!1,hasFieldError:d??!1,inputSize:r.size??"medium",inputColor:c??"primary",isInputInFullWidth:N??!1,hasStartAdornment:!!(I??b?.startAdornment),hasEndAdornment:!!(k??b?.endAdornment),inputHasLabel:!!V,isLabelShrunk:!!z?.shrink}),[X,x,R,d,r.size,c,N,I,k,b?.startAdornment,b?.endAdornment,V,z?.shrink]),W=AB(l,ee),le=LB[p],oe={};return p==="outlined"?(z&&typeof z.shrink<"u"&&(oe.notched=z.shrink),oe.label=V):p==="filled"&&(oe.hiddenLabel=h),v.jsx(eb.Provider,{value:ee,children:v.jsxs($B,w({className:se(W.root,a),ref:q,focused:R,disabled:u,variant:p,error:d,color:c,fullWidth:N,required:g,ownerState:ee},G,{children:[V!=null&&V!==""&&v.jsx(di,w({htmlFor:Y,id:J},z,{children:V})),v.jsx(le,w({elements:S,areAllSectionsEmpty:x,onClick:E,onKeyDown:P,onKeyUp:M,onInput:O,onPaste:D,onFocus:s,onBlur:i,endAdornment:k,startAdornment:I,tabIndex:F,contentEditable:T,value:A,onChange:L,id:Y,fullWidth:N,inputProps:m,inputRef:y,sectionListRef:C,label:V,name:H,role:"group","aria-labelledby":J,"aria-describedby":K,"aria-live":K?"polite":void 0,"data-active-range-position":j},oe,b)),B&&v.jsx(Ng,w({id:K},$,{children:B}))]}))})});process.env.NODE_ENV!=="production"&&(Pp.displayName="PickersTextField"),process.env.NODE_ENV!=="production"&&(Pp.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,contentEditable:o.bool.isRequired,disabled:o.bool.isRequired,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,error:o.bool.isRequired,focused:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Ft,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onBlur:o.func.isRequired,onChange:o.func.isRequired,onClick:o.func.isRequired,onFocus:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,readOnly:o.bool,required:o.bool,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),size:o.oneOf(["medium","small"]),startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired,variant:o.oneOf(["filled","outlined","standard"])});const VB=["enableAccessibleFieldDOMStructure"],_B=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],BB=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],HB=["ownerState"],zB=["ownerState"],jB=["ownerState"],GB=["ownerState"],WB=["InputProps","inputProps"],nb=()=>{},UB=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ie(e,VB);if(t){const{InputProps:S,readOnly:x,onClear:E,clearable:P,clearButtonPosition:M,openPickerButtonPosition:D,openPickerAriaLabel:O}=n,k=ie(n,_B),I=Ds>=6&&k?.slotProps?.input?Ac(k?.slotProps?.input,S):nb;return{clearable:P,onClear:E,clearButtonPosition:M,openPickerButtonPosition:D,openPickerAriaLabel:O,textFieldProps:w({},k,Ds>=6&&k?.slotProps?.input?{slotProps:w({},k?.slotProps,{input:F=>w({},Wn(I,F),{readOnly:x})})}:{InputProps:w({},S??{},{readOnly:x})})}}const{onPaste:r,onKeyDown:s,inputMode:i,readOnly:a,InputProps:l,inputProps:c,inputRef:u,onClear:d,clearable:p,clearButtonPosition:g,openPickerButtonPosition:h,openPickerAriaLabel:b}=n,m=ie(n,BB),y=Ds>=6&&m?.slotProps?.input?Ac(m?.slotProps?.input,l):nb,C=Ds>=6&&m?.slotProps?.htmlInput?Ac(m?.slotProps?.htmlInput,c):nb;return{clearable:p,onClear:d,clearButtonPosition:g,openPickerButtonPosition:h,openPickerAriaLabel:b,textFieldProps:w({},m,Ds>=6&&(m?.slotProps?.input||m?.slotProps?.htmlInput)?{slotProps:w({},m?.slotProps,{input:S=>w({},Wn(y,S),{readOnly:a}),htmlInput:S=>w({},Wn(C,S),{inputMode:i,onPaste:r,onKeyDown:s,ref:u})})}:{InputProps:w({},l??{},{readOnly:a}),inputProps:w({},c??{},{inputMode:i,onPaste:r,onKeyDown:s,ref:u})})}},Ep=f.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(Ep.displayName="PickerFieldUIContext");function Tp(e){const{fieldResponse:t,defaultOpenPickerIcon:n}=e,r=To(),s=$m(),i=f.useContext(Ep),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:p="end"}=UB(t),g=Qm(a),h=fe($=>{$.preventDefault(),s?.setOpen(V=>!V)}),b=s?s.triggerStatus:"hidden",m=c?d:null,y=b!=="hidden"?p:null,C=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?ks:Pp),S=i.slots.inputAdornment??xa,x=nt({elementType:S,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:w({},g,{position:"start"})}),E=ie(x,HB),P=nt({elementType:S,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:w({},g,{position:"end"})}),M=ie(P,zB),D=i.slots.openPickerButton??En,O=nt({elementType:D,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:b==="disabled",onClick:h,"aria-label":u,edge:a.variant!=="standard"?y:!1},ownerState:g}),k=ie(O,jB),I=i.slots.openPickerIcon??n,F=nt({elementType:I,externalSlotProps:i.slotProps.openPickerIcon,ownerState:g}),T=i.slots.clearButton??En,R=nt({elementType:T,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:r.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:a.variant!=="standard"&&m!==y?m:!1},ownerState:g}),A=ie(R,GB),L=i.slots.clearIcon??u_,N=nt({elementType:L,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:g});a.ref=tt(a.ref,s?.rootRef);const _={},H=Wn((Ds>=6&&a?.slotProps?.input)??a.InputProps,g);s&&(_.ref=s.triggerRef),!H?.startAdornment&&(m==="start"||y==="start")&&(_.startAdornment=v.jsxs(S,w({},E,{children:[y==="start"&&v.jsx(D,w({},k,{children:v.jsx(I,w({},F))})),m==="start"&&v.jsx(T,w({},A,{children:v.jsx(L,w({},N))}))]}))),!H?.endAdornment&&(m==="end"||y==="end")&&(_.endAdornment=v.jsxs(S,w({},M,{children:[m==="end"&&v.jsx(T,w({},A,{children:v.jsx(L,w({},N))})),y==="end"&&v.jsx(D,w({},k,{children:v.jsx(I,w({},F))}))]}))),!_?.endAdornment&&!_?.startAdornment&&i.slots.inputAdornment&&(_.endAdornment=v.jsx(S,w({},M))),m!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]);const B=Ds>=6&&a?.slotProps?.input?Wn(Ac(H,_),g):w({},H,_);return a.inputProps=Ds>=6&&a?.slotProps?.htmlInput?Wn(a.slotProps.htmlInput,g):a.inputProps,delete a?.slotProps?.input,t.enableAccessibleFieldDOMStructure&&delete a?.slotProps,v.jsx(C,w({},a,{InputProps:B}))}function Ac(e,t){return e?t?n=>w({},Wn(t,n),Wn(e,n)):e:t}function Ip(e){const{ref:t,externalForwardedProps:n,slotProps:r}=e,s=f.useContext(Ep),i=$m(),a=Qm(n),{InputProps:l,inputProps:c}=n,u=ie(n,WB),d=nt({elementType:Pp,externalSlotProps:Ac(s.slotProps.textField,r?.textField),externalForwardedProps:u,additionalProps:{ref:t,sx:i?.rootSx,label:i?.label,name:i?.name,className:i?.rootClassName,inputRef:s.inputRef},ownerState:a});return d.inputProps=w({},c,d.inputProps),d.InputProps=w({},l,d.InputProps),d}function Mp(e){const{slots:t={},slotProps:n={},inputRef:r,children:s}=e,i=f.useMemo(()=>({inputRef:r,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[r,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return v.jsx(Ep.Provider,{value:i,children:s})}const qB=["slots","slotProps"],Op=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiDateField"}),{slots:s,slotProps:i}=r,a=ie(r,qB),l=Ip({slotProps:i,ref:n,externalForwardedProps:a}),c=tB(l);return v.jsx(Mp,{slots:s,slotProps:i,inputRef:a.inputRef,children:v.jsx(Tp,{fieldResponse:c,defaultOpenPickerIcon:YS})})});process.env.NODE_ENV!=="production"&&(Op.displayName="DateField"),process.env.NODE_ENV!=="production"&&(Op.propTypes={autoFocus:o.bool,className:o.string,clearable:o.bool,clearButtonPosition:o.oneOf(["end","start"]),color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.bool,focused:o.bool,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Ft,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxDate:o.object,minDate:o.object,name:o.string,onBlur:o.func,onChange:o.func,onClear:o.func,onError:o.func,onFocus:o.func,onSelectedSectionsChange:o.func,openPickerButtonPosition:o.oneOf(["end","start"]),readOnly:o.bool,referenceDate:o.object,required:o.bool,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,shouldRespectLeadingZeros:o.bool,size:o.oneOf(["medium","small"]),slotProps:o.object,slots:o.object,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,unstableFieldRef:o.oneOfType([o.func,o.object]),value:o.object,variant:o.oneOf(["filled","outlined","standard"])});const YB=e=>{const t=q_(e);return yp({manager:t,props:e})},KB=["slots","slotProps","InputProps","inputProps"],ob=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiTimeField"}),{slots:s,slotProps:i}=r,a=ie(r,KB),l=Ip({slotProps:i,ref:n,externalForwardedProps:a}),c=YB(l);return v.jsx(Mp,{slots:s,slotProps:i,inputRef:a.inputRef,children:v.jsx(Tp,{fieldResponse:c,defaultOpenPickerIcon:l_})})});process.env.NODE_ENV!=="production"&&(ob.displayName="TimeField"),process.env.NODE_ENV!=="production"&&(ob.propTypes={ampm:o.bool,autoFocus:o.bool,className:o.string,clearable:o.bool,clearButtonPosition:o.oneOf(["end","start"]),color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.bool,focused:o.bool,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Ft,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxTime:o.object,minTime:o.object,minutesStep:o.number,name:o.string,onBlur:o.func,onChange:o.func,onClear:o.func,onError:o.func,onFocus:o.func,onSelectedSectionsChange:o.func,openPickerButtonPosition:o.oneOf(["end","start"]),readOnly:o.bool,referenceDate:o.object,required:o.bool,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableTime:o.func,shouldRespectLeadingZeros:o.bool,size:o.oneOf(["medium","small"]),slotProps:o.object,slots:o.object,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,unstableFieldRef:o.oneOfType([o.func,o.object]),value:o.object,variant:o.oneOf(["filled","outlined","standard"])});const XB=e=>{const t=Z_(e);return yp({manager:t,props:e})},ZB=["slots","slotProps"],rb=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiDateTimeField"}),{slots:s,slotProps:i}=r,a=ie(r,ZB),l=Ip({slotProps:i,ref:n,externalForwardedProps:a}),c=XB(l);return v.jsx(Mp,{slots:s,slotProps:i,inputRef:a.inputRef,children:v.jsx(Tp,{fieldResponse:c,defaultOpenPickerIcon:YS})})});process.env.NODE_ENV!=="production"&&(rb.displayName="DateTimeField"),process.env.NODE_ENV!=="production"&&(rb.propTypes={ampm:o.bool,autoFocus:o.bool,className:o.string,clearable:o.bool,clearButtonPosition:o.oneOf(["end","start"]),color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.bool,focused:o.bool,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Ft,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxDate:o.object,maxDateTime:o.object,maxTime:o.object,minDate:o.object,minDateTime:o.object,minTime:o.object,minutesStep:o.number,name:o.string,onBlur:o.func,onChange:o.func,onClear:o.func,onError:o.func,onFocus:o.func,onSelectedSectionsChange:o.func,openPickerButtonPosition:o.oneOf(["end","start"]),readOnly:o.bool,referenceDate:o.object,required:o.bool,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableTime:o.func,shouldDisableYear:o.func,shouldRespectLeadingZeros:o.bool,size:o.oneOf(["medium","small"]),slotProps:o.object,slots:o.object,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,unstableFieldRef:o.oneOfType([o.func,o.object]),value:o.object,variant:o.oneOf(["filled","outlined","standard"])});const Sx=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:s,disableFuture:i,disablePast:a,timezone:l})=>{const c=vt();return f.useCallback(u=>Ns({adapter:c,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:s,disableFuture:i,disablePast:a}})!==null,[c,e,t,n,r,s,i,a,l])},QB=(e,t)=>(n,r)=>{switch(r.type){case"setVisibleDate":return w({},n,{slideDirection:r.direction,currentMonth:r.month,isMonthSwitchingAnimating:!t.isSameMonth(r.month,n.currentMonth)&&!e&&!r.skipAnimation,focusedDay:r.focusedDay});case"changeMonthTimezone":{const s=r.newTimezone;if(t.getTimezone(n.currentMonth)===s)return n;let i=t.setTimezone(n.currentMonth,s);return t.getMonth(i)!==t.getMonth(n.currentMonth)&&(i=t.setMonth(i,t.getMonth(n.currentMonth))),w({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return w({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},xx=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:s,maxDate:i,minDate:a,onMonthChange:l,onYearChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:p,getCurrentMonthFromVisibleDate:g}=e,h=vt(),b=f.useRef(QB(!!u,h)).current,m=f.useMemo(()=>Io.getInitialReferenceValue({value:t,adapter:h,timezone:p,props:e,referenceDate:n,granularity:Hr.day}),[n,p]),[y,C]=f.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:m,currentMonth:h.setDate(m,1),slideDirection:"left"}),S=Sx({shouldDisableDate:d,minDate:a,maxDate:i,disableFuture:r,disablePast:s,timezone:p});f.useEffect(()=>{C({type:"changeMonthTimezone",newTimezone:h.getTimezone(m)})},[m,h]);const x=fe(({target:P,reason:M})=>{if(M==="cell-interaction"&&y.focusedDay!=null&&h.isSameDay(P,y.focusedDay))return;const D=M==="cell-interaction";let O,k;if(M==="cell-interaction")O=g(P,y.currentMonth),k=P;else if(O=h.isSameMonth(P,y.currentMonth)?y.currentMonth:h.startOfMonth(P),k=P,S(k)){const T=h.startOfMonth(P),R=h.endOfMonth(P);k=Mc({adapter:h,date:k,minDate:h.isBefore(a,T)?T:a,maxDate:h.isAfter(i,R)?R:i,disablePast:s,disableFuture:r,isDateDisabled:S,timezone:p})}const I=!h.isSameMonth(y.currentMonth,O),F=!h.isSameYear(y.currentMonth,O);I&&l?.(O),F&&c?.(h.startOfYear(O)),C({type:"setVisibleDate",month:O,direction:h.isAfterDay(O,y.currentMonth)?"left":"right",focusedDay:y.focusedDay!=null&&k!=null&&h.isSameDay(k,y.focusedDay)?y.focusedDay:k,skipAnimation:D})}),E=f.useCallback(()=>{C({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:m,calendarState:y,setVisibleDate:x,isDateDisabled:S,onMonthSwitchingAnimationEnd:E}},JB=e=>ke("MuiPickersFadeTransitionGroup",e);Me("MuiPickersFadeTransitionGroup",["root"]);const eH=["children"],tH=e=>pe({root:["root"]},JB,e),nH=U(Gl,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function Px(e){const t=Ot({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:r,transKey:s,classes:i}=t,{children:a}=t,l=ie(t,eH),c=tH(i),u=io();return r?a:v.jsx(nH,{className:se(c.root,n),ownerState:l,children:v.jsx(es,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:a},s)})}const oH=e=>ke("MuiPickersSlideTransition",e),ar=Me("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),rH=["children","className","reduceAnimations","slideDirection","transKey","classes"],sH=(e,t)=>{const{slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return pe(r,oH,e)},iH=U(Gl,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ar["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ar["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ar.slideEnterActive}`]:t.slideEnterActive},{[`.${ar.slideExit}`]:t.slideExit},{[`.${ar["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ar["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ar["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ar["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ar.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ar.slideExit}`]:{transform:"translate(0%)"},[`& .${ar["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ar["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function aH(e){const t=Ot({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:s,slideDirection:i,transKey:a,classes:l}=t,c=ie(t,rH),{ownerState:u}=Un(),d=w({},u,{slideDirection:i}),p=sH(l,d),g=io();if(s)return v.jsx("div",{className:se(p.root,r),children:n});const h={exit:p.exit,enterActive:p.enterActive,enter:p.enter,exitActive:p.exitActive};return v.jsx(iH,{className:se(p.root,r),childFactory:b=>f.cloneElement(b,{classNames:h}),role:"presentation",ownerState:d,children:v.jsx(og,w({mountOnEnter:!0,unmountOnExit:!0,timeout:g.transitions.duration.complex,classNames:h},c,{children:n}),a)})}const lH=e=>ke("MuiDayCalendar",e);Me("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const cH=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],uH=["ownerState"],dH=e=>pe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},lH,e),Ex=(kc+Dc*2)*6,pH=U("div",{name:"MuiDayCalendar",slot:"Root"})({}),fH=U("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),hH=U(kt,{name:"MuiDayCalendar",slot:"WeekDayLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),gH=U(kt,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),mH=U(kt,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>w({},e.typography.caption,{width:kc,height:kc,padding:0,margin:`0 ${Dc}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),bH=U("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Ex}),yH=U(aH,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:Ex}),vH=U("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),CH=U("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${Dc}px 0`,display:"flex",justifyContent:"center"});function wH(e){let{parentProps:t,day:n,focusedDay:r,selectedDays:s,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=ie(e,cH);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:g,slots:h,slotProps:b,timezone:m}=t,y=vt(),C=bp(m),S=r!=null&&y.isSameDay(n,r),x=l&&S,E=s.some(A=>y.isSameDay(A,n)),P=y.isSameDay(n,C),M=f.useMemo(()=>u||i(n),[u,i,n]),D=f.useMemo(()=>y.getMonth(n)!==a,[y,n,a]),O=qm({day:n,selected:E,disabled:M,today:P,outsideCurrentMonth:D,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:g}),k=h?.day??Km,I=nt({elementType:k,externalSlotProps:b?.day,additionalProps:w({disableHighlightToday:d,showDaysOutsideCurrentMonth:g,role:"gridcell",isAnimating:p,"data-timestamp":y.toJsDate(n).valueOf()},c),ownerState:w({},O,{day:n,isDayDisabled:M,isDaySelected:E})}),F=ie(I,uH),T=f.useMemo(()=>{const A=y.startOfMonth(y.setMonth(n,a));return g?y.isSameDay(n,y.startOfWeek(A)):y.isSameDay(n,A)},[a,n,g,y]),R=f.useMemo(()=>{const A=y.endOfMonth(y.setMonth(n,a));return g?y.isSameDay(n,y.endOfWeek(A)):y.isSameDay(n,A)},[a,n,g,y]);return v.jsx(k,w({},F,{day:n,disabled:M,autoFocus:!D&&x,today:P,outsideCurrentMonth:D,isFirstVisibleCell:T,isLastVisibleCell:R,selected:E,tabIndex:S?0:-1,"aria-selected":E,"aria-current":P?"date":void 0}))}function Tx(e){const t=Ot({props:e,name:"MuiDayCalendar"}),n=vt(),{onFocusedDayChange:r,className:s,classes:i,currentMonth:a,selectedDays:l,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:p,readOnly:g,reduceAnimations:h,renderLoading:b=()=>v.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:y,disablePast:C,disableFuture:S,minDate:x,maxDate:E,shouldDisableDate:P,shouldDisableMonth:M,shouldDisableYear:D,dayOfWeekFormatter:O=ee=>n.format(ee,"weekdayShort").charAt(0).toUpperCase(),hasFocus:k,onFocusedViewChange:I,gridLabelId:F,displayWeekNumber:T,fixedWeekNumber:R,timezone:A}=t,L=bp(A),N=dH(i),_=_t(),H=Sx({shouldDisableDate:P,shouldDisableMonth:M,shouldDisableYear:D,minDate:x,maxDate:E,disablePast:C,disableFuture:S,timezone:A}),B=To(),$=fe(ee=>{g||d(ee)}),V=ee=>{H(ee)||(r(ee),I?.(!0))},z=fe((ee,W)=>{switch(ee.key){case"ArrowUp":V(n.addDays(W,-7)),ee.preventDefault();break;case"ArrowDown":V(n.addDays(W,7)),ee.preventDefault();break;case"ArrowLeft":{const le=n.addDays(W,_?1:-1),oe=n.addMonths(W,_?1:-1),re=Mc({adapter:n,date:le,minDate:_?le:n.startOfMonth(oe),maxDate:_?n.endOfMonth(oe):le,isDateDisabled:H,timezone:A});V(re||le),ee.preventDefault();break}case"ArrowRight":{const le=n.addDays(W,_?-1:1),oe=n.addMonths(W,_?-1:1),re=Mc({adapter:n,date:le,minDate:_?n.startOfMonth(oe):le,maxDate:_?le:n.endOfMonth(oe),isDateDisabled:H,timezone:A});V(re||le),ee.preventDefault();break}case"Home":V(n.startOfWeek(W)),ee.preventDefault();break;case"End":V(n.endOfWeek(W)),ee.preventDefault();break;case"PageUp":V(n.addMonths(W,1)),ee.preventDefault();break;case"PageDown":V(n.addMonths(W,-1)),ee.preventDefault();break;case"Enter":case" ":$(W),ee.preventDefault();break}}),j=fe((ee,W)=>V(W)),G=fe((ee,W)=>{c!=null&&n.isSameDay(c,W)&&I?.(!1)}),Q=n.getMonth(a),q=n.getYear(a),Y=f.useMemo(()=>l.filter(ee=>!!ee).map(ee=>n.startOfDay(ee)),[n,l]),K=`${q}-${Q}`,J=f.useMemo(()=>f.createRef(),[K]),X=f.useMemo(()=>{const ee=n.getWeekArray(a);let W=n.addMonths(a,1);for(;R&&ee.length<R;){const le=n.getWeekArray(W),oe=n.isSameDay(ee[ee.length-1][0],le[0][0]);le.slice(oe?1:0).forEach(re=>{ee.length<R&&ee.push(re)}),W=n.addMonths(W,1)}return ee},[a,R,n]);return v.jsxs(pH,{role:"grid","aria-labelledby":F,className:N.root,children:[v.jsxs(fH,{role:"row",className:N.header,children:[T&&v.jsx(gH,{variant:"caption",role:"columnheader","aria-label":B.calendarWeekNumberHeaderLabel,className:N.weekNumberLabel,children:B.calendarWeekNumberHeaderText}),zV(n,L).map((ee,W)=>v.jsx(hH,{variant:"caption",role:"columnheader","aria-label":n.format(ee,"weekday"),className:N.weekDayLabel,children:O(ee)},W.toString()))]}),u?v.jsx(bH,{className:N.loadingContainer,children:b()}):v.jsx(yH,w({transKey:K,onExited:p,reduceAnimations:h,slideDirection:m,className:se(s,N.slideTransition)},y,{nodeRef:J,children:v.jsx(vH,{ref:J,role:"rowgroup",className:N.monthContainer,children:X.map((ee,W)=>v.jsxs(CH,{role:"row",className:N.weekContainer,"aria-rowindex":W+1,children:[T&&v.jsx(mH,{className:N.weekNumber,role:"rowheader","aria-label":B.calendarWeekNumberAriaLabelText(n.getWeekNumber(ee[0])),children:B.calendarWeekNumberText(n.getWeekNumber(ee[0]))}),ee.map((le,oe)=>v.jsx(wH,{parentProps:t,day:le,selectedDays:Y,isViewFocused:k,focusedDay:c,onKeyDown:z,onFocus:j,onBlur:G,onDaySelect:$,isDateDisabled:H,currentMonthNumber:Q,"aria-colindex":oe+1},le.toString()))]},`week-${ee[0]}`))})}))]})}function Ix(e){return ke("MuiMonthCalendar",e)}const kp=Me("MuiMonthCalendar",["root","button","disabled","selected"]),SH=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],xH=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return pe(n,Ix,e)},PH=U("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${kp.disabled}`]:t.disabled},{[`&.${kp.selected}`]:t.selected}]})(({theme:e})=>w({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:$n(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:$n(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${kp.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${kp.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Mx=f.memo(function(t){const{autoFocus:n,classes:r,disabled:s,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:p,slotProps:g}=t,h=ie(t,SH),b=f.useRef(null),{ownerState:m}=Un(),y=w({},m,{isMonthDisabled:s,isMonthSelected:i}),C=xH(r,y);it(()=>{n&&b.current?.focus()},[n]);const S=p?.monthButton??PH,x=nt({elementType:S,externalSlotProps:g?.monthButton,externalForwardedProps:h,additionalProps:{disabled:s,ref:b,type:"button",role:"radio","aria-checked":i,onClick:E=>l(E,a),onKeyDown:E=>c(E,a),onFocus:E=>u(E,a),onBlur:E=>d(E,a)},ownerState:y,className:C.button});return v.jsx(S,w({},x))});process.env.NODE_ENV!=="production"&&(Mx.displayName="MonthCalendarButton");const EH=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],TH=e=>pe({root:["root"]},Ix,e);function IH(e,t){const n=Ot({props:e,name:t}),r=Rs(n);return w({},n,r,{monthsPerRow:n.monthsPerRow??3})}const Ox=(e,t,n,r,s)=>!!(e===t&&r&&s.isSameYear(n,r)),MH=U("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>So(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:Fc,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),sb=f.forwardRef(function(t,n){const r=IH(t,"MuiMonthCalendar"),{autoFocus:s,className:i,currentMonth:a,classes:l,value:c,defaultValue:u,referenceDate:d,disabled:p,disableFuture:g,disablePast:h,maxDate:b,minDate:m,onChange:y,shouldDisableMonth:C,readOnly:S,onMonthFocus:x,hasFocus:E,onFocusedViewChange:P,monthsPerRow:M,timezone:D,gridLabelId:O,slots:k,slotProps:I}=r,F=ie(r,EH),{value:T,handleValueChange:R,timezone:A}=Na({name:"MonthCalendar",timezone:D,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:Io}),L=bp(A),N=_t(),_=vt(),{ownerState:H}=Un(),B=f.useMemo(()=>Io.getInitialReferenceValue({value:T,adapter:_,props:r,timezone:A,referenceDate:d,granularity:Hr.month}),[]),$=TH(l),V=f.useMemo(()=>_.getMonth(L),[_,L]),z=f.useMemo(()=>T!=null?_.getMonth(T):null,[T,_]),[j,G]=f.useState(()=>z||_.getMonth(B)),[Q,q]=ao({name:"MonthCalendar",state:"hasFocus",controlled:E,default:s??!1}),Y=fe(oe=>{q(oe),P&&P(oe)}),K=f.useCallback(oe=>{const re=_.startOfMonth(h&&_.isAfter(L,m)?L:m),ae=_.startOfMonth(g&&_.isBefore(L,b)?L:b),ne=_.startOfMonth(oe);return _.isBefore(ne,re)||_.isAfter(ne,ae)?!0:C?C(ne):!1},[g,h,b,m,L,C,_]),J=fe((oe,re)=>{if(S)return;const ne=(T&&a&&!_.isSameYear(T,a)?_.setYear(T,_.getYear(a)):T)??a??B,te=_.setMonth(ne,re);R(te)}),X=fe(oe=>{K(_.setMonth(T??a??B,oe))||(G(oe),Y(!0),x&&x(oe))});f.useEffect(()=>{G(oe=>z!==null&&oe!==z?z:oe)},[z]);const ee=fe((oe,re)=>{switch(oe.key){case"ArrowUp":X((12+re-3)%12),oe.preventDefault();break;case"ArrowDown":X((12+re+3)%12),oe.preventDefault();break;case"ArrowLeft":X((12+re+(N?1:-1))%12),oe.preventDefault();break;case"ArrowRight":X((12+re+(N?-1:1))%12),oe.preventDefault();break;case"Enter":case" ":J(oe,re),oe.preventDefault();break}}),W=fe((oe,re)=>{X(re)}),le=fe((oe,re)=>{j===re&&Y(!1)});return v.jsx(MH,w({ref:n,className:se($.root,i),ownerState:H,role:"radiogroup","aria-labelledby":O,monthsPerRow:M},F,{children:Mm(_,a??T??B).map(oe=>{const re=_.getMonth(oe),ae=_.format(oe,"monthShort"),ne=_.format(oe,"month"),te=Ox(re,z,oe,T,_),ye=p||K(oe);return v.jsx(Mx,{selected:te,value:re,onClick:J,onKeyDown:ee,autoFocus:Q&&re===j,disabled:ye,tabIndex:re===j&&!ye?0:-1,onFocus:W,onBlur:le,"aria-current":Ox(re,V,oe,L,_)?"date":void 0,"aria-label":ne,slots:k,slotProps:I,classes:l,children:ae},ae)})}))});process.env.NODE_ENV!=="production"&&(sb.displayName="MonthCalendar"),process.env.NODE_ENV!=="production"&&(sb.propTypes={autoFocus:o.bool,classes:o.object,className:o.string,currentMonth:o.object,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,gridLabelId:o.string,hasFocus:o.bool,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),onChange:o.func,onFocusedViewChange:o.func,onMonthFocus:o.func,readOnly:o.bool,referenceDate:o.object,shouldDisableMonth:o.func,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object});function kx(e){return ke("MuiYearCalendar",e)}const Dp=Me("MuiYearCalendar",["root","button","disabled","selected"]),OH=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],kH=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return pe(n,kx,e)},DH=U("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Dp.disabled}`]:t.disabled},{[`&.${Dp.selected}`]:t.selected}]})(({theme:e})=>w({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:$n(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:$n(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Dp.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Dp.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Dx=f.memo(function(t){const{autoFocus:n,classes:r,disabled:s,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:p,slotProps:g}=t,h=ie(t,OH),b=f.useRef(null),{ownerState:m}=Un(),y=w({},m,{isYearDisabled:s,isYearSelected:i}),C=kH(r,y);it(()=>{n&&b.current?.focus()},[n]);const S=p?.yearButton??DH,x=nt({elementType:S,externalSlotProps:g?.yearButton,externalForwardedProps:h,additionalProps:{disabled:s,ref:b,type:"button",role:"radio","aria-checked":i,onClick:E=>l(E,a),onKeyDown:E=>c(E,a),onFocus:E=>u(E,a),onBlur:E=>d(E,a)},ownerState:y,className:C.button});return v.jsx(S,w({},x))});process.env.NODE_ENV!=="production"&&(Dx.displayName="YearCalendarButton");const FH=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],NH=e=>pe({root:["root"]},kx,e);function RH(e,t){const n=Ot({props:e,name:t}),r=Rs(n);return w({},n,r,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const LH=U("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>So(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:Fc,maxHeight:C_,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),$H=U("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),ib=f.forwardRef(function(t,n){const r=RH(t,"MuiYearCalendar"),{autoFocus:s,className:i,classes:a,value:l,defaultValue:c,referenceDate:u,disabled:d,disableFuture:p,disablePast:g,maxDate:h,minDate:b,onChange:m,readOnly:y,shouldDisableYear:C,onYearFocus:S,hasFocus:x,onFocusedViewChange:E,yearsOrder:P,yearsPerRow:M,timezone:D,gridLabelId:O,slots:k,slotProps:I}=r,F=ie(r,FH),{value:T,handleValueChange:R,timezone:A}=Na({name:"YearCalendar",timezone:D,value:l,defaultValue:c,referenceDate:u,onChange:m,valueManager:Io}),L=bp(A),N=_t(),_=vt(),{ownerState:H}=Un(),B=f.useMemo(()=>Io.getInitialReferenceValue({value:T,adapter:_,props:r,timezone:A,referenceDate:u,granularity:Hr.year}),[]),$=NH(a),V=f.useMemo(()=>_.getYear(L),[_,L]),z=f.useMemo(()=>T!=null?_.getYear(T):null,[T,_]),[j,G]=f.useState(()=>z||_.getYear(B)),[Q,q]=ao({name:"YearCalendar",state:"hasFocus",controlled:x,default:s??!1}),Y=fe(ce=>{q(ce),E&&E(ce)}),K=f.useCallback(ce=>{if(g&&_.isBeforeYear(ce,L)||p&&_.isAfterYear(ce,L)||b&&_.isBeforeYear(ce,b)||h&&_.isAfterYear(ce,h))return!0;if(!C)return!1;const Se=_.startOfYear(ce);return C(Se)},[p,g,h,b,L,C,_]),J=fe((ce,Se)=>{if(y)return;const we=_.setYear(T??B,Se);R(we)}),X=fe(ce=>{K(_.setYear(T??B,ce))||(G(ce),Y(!0),S?.(ce))});f.useEffect(()=>{G(ce=>z!==null&&ce!==z?z:ce)},[z]);const ee=P!=="desc"?M*1:M*-1,W=N&&P==="asc"||!N&&P==="desc"?-1:1,le=fe((ce,Se)=>{switch(ce.key){case"ArrowUp":X(Se-ee),ce.preventDefault();break;case"ArrowDown":X(Se+ee),ce.preventDefault();break;case"ArrowLeft":X(Se-W),ce.preventDefault();break;case"ArrowRight":X(Se+W),ce.preventDefault();break;case"Enter":case" ":J(ce,Se),ce.preventDefault();break}}),oe=fe((ce,Se)=>{X(Se)}),re=fe((ce,Se)=>{j===Se&&Y(!1)}),ae=f.useRef(null),ne=tt(n,ae);f.useEffect(()=>{if(s||ae.current===null)return;const ce=ae.current.querySelector('[tabindex="0"]');if(!ce)return;const Se=ce.offsetHeight,we=ce.offsetTop,Be=ae.current.clientHeight,Fe=ae.current.scrollTop,Ye=we+Se;Se>Be||we<Fe||(ae.current.scrollTop=Ye-Be/2-Se/2)},[s]);const te=_.getYearRange([b,h]);P==="desc"&&te.reverse();let ye=M-te.length%M;return ye===M&&(ye=0),v.jsxs(LH,w({ref:ne,className:se($.root,i),ownerState:H,role:"radiogroup","aria-labelledby":O,yearsPerRow:M},F,{children:[te.map(ce=>{const Se=_.getYear(ce),we=Se===z,Be=d||K(ce);return v.jsx(Dx,{selected:we,value:Se,onClick:J,onKeyDown:le,autoFocus:Q&&Se===j,disabled:Be,tabIndex:Se===j&&!Be?0:-1,onFocus:oe,onBlur:re,"aria-current":V===Se?"date":void 0,slots:k,slotProps:I,classes:a,children:_.format(ce,"year")},_.format(ce,"year"))}),Array.from({length:ye},(ce,Se)=>v.jsx($H,{},Se))]}))});process.env.NODE_ENV!=="production"&&(ib.displayName="YearCalendar"),process.env.NODE_ENV!=="production"&&(ib.propTypes={autoFocus:o.bool,classes:o.object,className:o.string,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,gridLabelId:o.string,hasFocus:o.bool,maxDate:o.object,minDate:o.object,onChange:o.func,onFocusedViewChange:o.func,onYearFocus:o.func,readOnly:o.bool,referenceDate:o.object,shouldDisableYear:o.func,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});const AH=e=>ke("MuiPickersCalendarHeader",e),VH=Me("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),_H=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],BH=["ownerState"],HH=e=>pe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},AH,e),zH=U("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),jH=U("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>w({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),GH=U("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),WH=U(En,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${VH.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),UH=U(s_,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Fp=f.forwardRef(function(t,n){const r=To(),s=vt(),i=Ot({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:p,maxDate:g,minDate:h,onMonthChange:b,onViewChange:m,view:y,reduceAnimations:C,views:S,labelId:x,className:E,classes:P,timezone:M,format:D=`${s.formats.month} ${s.formats.year}`}=i,O=ie(i,_H),{ownerState:k}=Un(),I=HH(P),F=a?.switchViewButton??WH,T=nt({elementType:F,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(y)},ownerState:w({},k,{view:y}),className:I.switchViewButton}),R=a?.switchViewIcon??UH,A=nt({elementType:R,externalSlotProps:l?.switchViewIcon,ownerState:k,className:I.switchViewIcon}),L=ie(A,BH),N=()=>b(s.addMonths(c,1)),_=()=>b(s.addMonths(c,-1)),H=ex(c,{disableFuture:d,maxDate:g,timezone:M}),B=tx(c,{disablePast:p,minDate:h,timezone:M}),$=()=>{if(!(S.length===1||!m||u))if(S.length===2)m(S.find(z=>z!==y)||S[0]);else{const z=S.indexOf(y)!==0?0:1;m(S[z])}};if(S.length===1&&S[0]==="year")return null;const V=s.formatByString(c,D);return v.jsxs(zH,w({},O,{ownerState:k,className:se(I.root,E),ref:n,children:[v.jsxs(jH,{role:"presentation",onClick:$,ownerState:k,"aria-live":"polite",className:I.labelContainer,children:[v.jsx(Px,{reduceAnimations:C,transKey:V,children:v.jsx(GH,{id:x,ownerState:k,className:I.label,children:V})}),S.length>1&&!u&&v.jsx(F,w({},T,{children:v.jsx(R,w({},L))}))]}),v.jsx(es,{in:y==="day",appear:!C,enter:!C,children:v.jsx(Hm,{slots:a,slotProps:l,onGoToPrevious:_,isPreviousDisabled:B,previousLabel:r.previousMonth,onGoToNext:N,isNextDisabled:H,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(Fp.displayName="PickersCalendarHeader"),process.env.NODE_ENV!=="production"&&(Fp.propTypes={classes:o.object,className:o.string,currentMonth:o.object.isRequired,disabled:o.bool,disableFuture:o.bool,disablePast:o.bool,format:o.string,labelId:o.string,maxDate:o.object.isRequired,minDate:o.object.isRequired,onMonthChange:o.func.isRequired,onViewChange:o.func,reduceAnimations:o.bool.isRequired,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string.isRequired,view:o.oneOf(["day","month","year"]).isRequired,views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired).isRequired});const qH="@media (prefers-reduced-motion: reduce)",Va=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Fx=Va&&Va[1]?parseInt(Va[1],10):null,Nx=Va&&Va[2]?parseInt(Va[2],10):null,YH=Fx&&Fx<10||Nx&&Nx<13||!1;function ab(e){const t=zd(qH,{defaultMatches:!1});return e??(t||YH)}const KH=e=>ke("MuiDateCalendar",e);Me("MuiDateCalendar",["root","viewTransitionContainer"]);const XH=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],ZH=e=>pe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},KH,e);function QH(e,t){const n=Ot({props:e,name:t}),r=ab(n.reduceAnimations),s=Rs(n);return w({},n,s,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:r,renderLoading:n.renderLoading??(()=>v.jsx("span",{children:"..."}))})}const JH=U(w_,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Gm}),ez=U(Px,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),lb=f.forwardRef(function(t,n){const r=vt(),{ownerState:s}=Un(),i=at(),a=QH(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:c,value:u,defaultValue:d,referenceDate:p,disableFuture:g,disablePast:h,onChange:b,onMonthChange:m,reduceAnimations:y,shouldDisableDate:C,shouldDisableMonth:S,shouldDisableYear:x,view:E,views:P,openTo:M,className:D,classes:O,disabled:k,readOnly:I,minDate:F,maxDate:T,disableHighlightToday:R,focusedView:A,onFocusedViewChange:L,showDaysOutsideCurrentMonth:N,fixedWeekNumber:_,dayOfWeekFormatter:H,slots:B,slotProps:$,loading:V,renderLoading:z,displayWeekNumber:j,yearsOrder:G,yearsPerRow:Q,monthsPerRow:q,timezone:Y}=a,K=ie(a,XH),{value:J,handleValueChange:X,timezone:ee}=Na({name:"DateCalendar",timezone:Y,value:u,defaultValue:d,referenceDate:p,onChange:b,valueManager:Io}),{view:W,setView:le,focusedView:oe,setFocusedView:re,goToNextView:ae,setValueAndGoToNextView:ne}=jm({view:E,views:P,openTo:M,onChange:X,onViewChange:c,autoFocus:l,focusedView:A,onFocusedViewChange:L}),{referenceDate:te,calendarState:ye,setVisibleDate:ce,isDateDisabled:Se,onMonthSwitchingAnimationEnd:we}=xx({value:J,referenceDate:p,reduceAnimations:y,onMonthChange:m,minDate:F,maxDate:T,shouldDisableDate:C,disablePast:h,disableFuture:g,timezone:ee,getCurrentMonthFromVisibleDate:(We,Oe)=>r.isSameMonth(We,Oe)?Oe:r.startOfMonth(We)}),Be=k&&J||F,Fe=k&&J||T,Ye=`${i}-grid-label`,Ne=oe!==null,Ke=B?.calendarHeader??Fp,He=nt({elementType:Ke,externalSlotProps:$?.calendarHeader,additionalProps:{views:P,view:W,currentMonth:ye.currentMonth,onViewChange:le,onMonthChange:We=>ce({target:We,reason:"header-navigation"}),minDate:Be,maxDate:Fe,disabled:k,disablePast:h,disableFuture:g,reduceAnimations:y,timezone:ee,labelId:Ye},ownerState:s}),me=fe(We=>{const Oe=r.startOfMonth(We),Ue=r.endOfMonth(We),ut=Se(We)?Mc({adapter:r,date:We,minDate:r.isBefore(F,Oe)?Oe:F,maxDate:r.isAfter(T,Ue)?Ue:T,disablePast:h,disableFuture:g,isDateDisabled:Se,timezone:ee}):We;ut?(ne(ut,"finish"),ce({target:ut,reason:"cell-interaction"})):(ae(),ce({target:Oe,reason:"cell-interaction"}))}),Pe=fe(We=>{const Oe=r.startOfYear(We),Ue=r.endOfYear(We),ut=Se(We)?Mc({adapter:r,date:We,minDate:r.isBefore(F,Oe)?Oe:F,maxDate:r.isAfter(T,Ue)?Ue:T,disablePast:h,disableFuture:g,isDateDisabled:Se,timezone:ee}):We;ut?(ne(ut,"finish"),ce({target:ut,reason:"cell-interaction"})):(ae(),ce({target:Oe,reason:"cell-interaction"}))}),ge=fe(We=>X(We&&Ci(r,We,J??te),"finish",W));f.useEffect(()=>{r.isValid(J)&&ce({target:J,reason:"controlled-value-change"})},[J]);const Te=ZH(O),$e={disablePast:h,disableFuture:g,maxDate:T,minDate:F},Ge={disableHighlightToday:R,readOnly:I,disabled:k,timezone:ee,gridLabelId:Ye,slots:B,slotProps:$},ot=f.useRef(W);f.useEffect(()=>{ot.current!==W&&(oe===ot.current&&re(W,!0),ot.current=W)},[oe,re,W]);const Tt=f.useMemo(()=>[J],[J]);return v.jsxs(JH,w({ref:n,className:se(Te.root,D),ownerState:s},K,{children:[v.jsx(Ke,w({},He,{slots:B,slotProps:$})),v.jsx(ez,{reduceAnimations:y,className:Te.viewTransitionContainer,transKey:W,ownerState:s,children:v.jsxs("div",{children:[W==="year"&&v.jsx(ib,w({},$e,Ge,{value:J,onChange:Pe,shouldDisableYear:x,hasFocus:Ne,onFocusedViewChange:We=>re("year",We),yearsOrder:G,yearsPerRow:Q,referenceDate:te})),W==="month"&&v.jsx(sb,w({},$e,Ge,{currentMonth:ye.currentMonth,hasFocus:Ne,className:D,value:J,onChange:me,shouldDisableMonth:S,onFocusedViewChange:We=>re("month",We),monthsPerRow:q,referenceDate:te})),W==="day"&&v.jsx(Tx,w({},ye,$e,Ge,{onMonthSwitchingAnimationEnd:we,hasFocus:Ne,onFocusedDayChange:We=>ce({target:We,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:Tt,onSelectedDaysChange:ge,shouldDisableDate:C,shouldDisableMonth:S,shouldDisableYear:x,onFocusedViewChange:We=>re("day",We),showDaysOutsideCurrentMonth:N,fixedWeekNumber:_,dayOfWeekFormatter:H,displayWeekNumber:j,loading:V,renderLoading:z}))]})})]}))});process.env.NODE_ENV!=="production"&&(lb.displayName="DateCalendar"),process.env.NODE_ENV!=="production"&&(lb.propTypes={autoFocus:o.bool,classes:o.object,className:o.string,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,fixedWeekNumber:o.number,focusedView:o.oneOf(["day","month","year"]),loading:o.bool,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),onChange:o.func,onFocusedViewChange:o.func,onMonthChange:o.func,onViewChange:o.func,onYearChange:o.func,openTo:o.oneOf(["day","month","year"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});function Rx(e){return ke("MuiPickersToolbar",e)}Me("MuiPickersToolbar",["root","title","content"]);function cb(){const{ownerState:e}=Un(),t=_t();return f.useMemo(()=>w({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const tz=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],nz=e=>pe({root:["root"],title:["title"],content:["content"]},Rx,e),oz=U("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),rz=U("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>So(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),ub=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiPickersToolbar"}),{children:s,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=r,p=ie(r,tz),g=cb(),h=nz(a);return c?null:v.jsxs(oz,w({ref:n,className:se(h.root,i),ownerState:g},p,{children:[v.jsx(kt,{color:"text.secondary",variant:"overline",id:u,className:h.title,children:l}),v.jsx(rz,{className:h.content,ownerState:g,landscapeDirection:d,children:s})]}))});process.env.NODE_ENV!=="production"&&(ub.displayName="PickersToolbar");function sz(e){return ke("MuiDatePickerToolbar",e)}Me("MuiDatePickerToolbar",["root","title"]);const iz=["toolbarFormat","toolbarPlaceholder","className","classes"],az=e=>pe({root:["root"],title:["title"]},sz,e),lz=U(ub,{name:"MuiDatePickerToolbar",slot:"Root"})({}),cz=U(kt,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),db=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:s,toolbarPlaceholder:i="––",className:a,classes:l}=r,c=ie(r,iz),u=vt(),{value:d,views:p,orientation:g}=Si(),h=To(),b=cb(),m=az(l),y=f.useMemo(()=>{if(!u.isValid(d))return i;const C=km(u,{format:s,views:p},!0);return u.formatByString(d,C)},[d,s,i,u,p]);return v.jsx(lz,w({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:se(m.root,a)},c,{children:v.jsx(cz,{variant:"h4",align:g==="landscape"?"left":"center",ownerState:b,className:m.title,children:y})}))});process.env.NODE_ENV!=="production"&&(db.displayName="DatePickerToolbar"),process.env.NODE_ENV!=="production"&&(db.propTypes={classes:o.object,className:o.string,hidden:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleId:o.string,toolbarFormat:o.string,toolbarPlaceholder:o.node});function Lx(e,t){const n=Ot({props:e,name:t}),r=Rs(n),s=f.useMemo(()=>n.localeText?.toolbarTitle==null?n.localeText:w({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle}),[n.localeText]);return w({},n,r,{localeText:s},BV({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:w({toolbar:db},n.slots)})}function uz(e){return ke("MuiPickerPopper",e)}Me("MuiPickerPopper",["root","paper"]);const dz=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],pz=e=>pe({root:["root"],paper:["paper"]},uz,e),fz=U(ai,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),hz=U(pr,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});function gz(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function mz(e,t){const n=f.useRef(!1),r=f.useRef(!1),s=f.useRef(null),i=f.useRef(!1);f.useEffect(()=>{if(!e)return;function c(){i.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),i.current=!1}},[e]);const a=fe(c=>{if(!i.current)return;const u=r.current;r.current=!1;const d=Bt(s.current);if(!s.current||"clientX"in c&&gz(c,d))return;if(n.current){n.current=!1;return}let p;c.composedPath?p=c.composedPath().indexOf(s.current)>-1:p=!d.documentElement.contains(c.target)||s.current.contains(c.target),!p&&!u&&t(c)}),l=c=>{c.defaultMuiPrevented||(r.current=!0)};return f.useEffect(()=>{if(e){const c=Bt(s.current),u=()=>{n.current=!0};return c.addEventListener("touchstart",a),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",a),c.removeEventListener("touchmove",u)}}},[e,a]),f.useEffect(()=>{if(e){const c=Bt(s.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),r.current=!1}}},[e,a]),[s,l,l]}const $x=f.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:r,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=ie(e,dz),d=nt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:r});return v.jsx(n,w({},u,d,{onClick:p=>{l(p),d.onClick?.(p)},onTouchStart:p=>{c(p),d.onTouchStart?.(p)},ownerState:r,children:s}))});process.env.NODE_ENV!=="production"&&($x.displayName="PickerPopperPaperWrapper");function Ax(e){const t=Ot({props:e,name:"MuiPickerPopper"}),{children:n,placement:r="bottom-start",slots:s,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u}=Si(),{ownerState:d,rootRefObject:p}=Un(),{dismissViews:g,getCurrentViewMode:h,onPopperExited:b,triggerElement:m,viewContainerRole:y}=Un();f.useEffect(()=>{function _(H){l&&H.key==="Escape"&&g()}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[g,l]);const C=f.useRef(null);f.useEffect(()=>{y==="tooltip"||h()==="field"||(l?C.current=uo(p.current):C.current&&C.current instanceof HTMLElement&&setTimeout(()=>{C.current instanceof HTMLElement&&C.current.focus()}))},[l,y,h,p]);const S=pz(a),x=fe(()=>{y==="tooltip"?E_(()=>{p.current?.contains(uo(p.current))||c.current?.contains(uo(c.current))||g()}):g()}),[E,P,M]=mz(l,x),D=f.useRef(null),O=tt(D,c),k=tt(O,E),I=_=>{_.key==="Escape"&&(_.stopPropagation(),g())},F=s?.desktopTransition??u?es:ui,T=s?.desktopTrapFocus??wa,R=s?.desktopPaper??hz,A=s?.popper??fz,L=nt({elementType:A,externalSlotProps:i?.popper,additionalProps:{transition:!0,role:y??void 0,open:l,placement:r,anchorEl:m,onKeyDown:I},className:S.root,ownerState:d}),N=f.useMemo(()=>w({},d,{popperPlacement:L.placement}),[d,L.placement]);return v.jsx(A,w({},L,{children:({TransitionProps:_})=>v.jsx(T,w({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:y==="tooltip",isEnabled:()=>!0},i?.desktopTrapFocus,{children:v.jsx(F,w({},_,i?.desktopTransition,{onExited:H=>{b?.(),i?.desktopTransition?.onExited?.(H),_?.onExited?.()},children:v.jsx($x,{PaperComponent:R,ownerState:N,ref:k,onPaperClick:P,onPaperTouchStart:M,paperClasses:S.paper,paperSlotProps:i?.desktopPaper,children:n})}))}))}))}function Vx(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}function bz(e,t){const[n,r]=f.useState(Vx);return it(()=>{const s=()=>{r(Vx())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),P_(e,["hours","minutes","seconds"])?"portrait":t??n}const _x=new Set;function yn(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
305
+ `):e;_x.has(n)||(_x.add(n),t==="error"?console.error(n):console.warn(n))}function yz(e){const{props:t,valueManager:n,validator:r}=e,{value:s,defaultValue:i,onChange:a,referenceDate:l,timezone:c,onAccept:u,closeOnSelect:d,open:p,onOpen:g,onClose:h}=t,{current:b}=f.useRef(i),{current:m}=f.useRef(s!==void 0),{current:y}=f.useRef(p!==void 0),C=vt();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&yn(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]),process.env.NODE_ENV!=="production"&&(f.useEffect(()=>{m!==(s!==void 0)&&console.error([`MUI X: A component is changing the ${m?"":"un"}controlled value of a Picker to be ${m?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor 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(`
306
+ `))},[s]),f.useEffect(()=>{!m&&b!==i&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled Picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
307
+ `))},[JSON.stringify(b)]));const{timezone:S,value:x,handleValueChange:E}=Na({name:"a picker component",timezone:c,value:s,defaultValue:b,referenceDate:l,onChange:a,valueManager:n}),[P,M]=f.useState(()=>({open:!1,lastExternalValue:x,clockShallowValue:void 0,lastCommittedValue:x,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:D}=lx({props:t,validator:r,timezone:S,value:x,onError:t.onError}),O=fe(T=>{const R=typeof T=="function"?T(P.open):T;y||M(A=>w({},A,{open:R})),R&&g&&g(),R||h?.()}),k=fe((T,R)=>{const{changeImportance:A="accept",skipPublicationIfPristine:L=!1,validationError:N,shortcut:_,source:H,shouldClose:B=A==="accept"}=R??{};let $,V;!L&&!m&&!P.hasBeenModifiedSinceMount?($=!0,V=A==="accept"):($=!n.areValuesEqual(C,T,x),V=A==="accept"&&!n.areValuesEqual(C,T,P.lastCommittedValue)),M(G=>w({},G,{clockShallowValue:$?void 0:G.clockShallowValue,lastCommittedValue:V?T:G.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let z=null;const j=()=>{if(!z){let G;H?G=H:_?G="view":G="unknown",z={validationError:N??D(T),source:G},_&&(z.shortcut=_)}return z};$&&E(T,j()),V&&u&&u(T,j()),B&&O(!1)});x!==P.lastExternalValue&&M(T=>w({},T,{lastExternalValue:x,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const I=fe((T,R="partial")=>{if(R==="shallow"){M(A=>w({},A,{clockShallowValue:T,hasBeenModifiedSinceMount:!0}));return}k(T,{changeImportance:R==="finish"&&d?"accept":"set",source:"view"})});f.useEffect(()=>{if(y){if(p===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");M(T=>w({},T,{open:p}))}},[y,p]);const F=f.useMemo(()=>n.cleanValue(C,P.clockShallowValue===void 0?x:P.clockShallowValue),[C,n,P.clockShallowValue,x]);return{timezone:S,state:P,setValue:k,setValueFromView:I,setOpen:O,value:x,viewValue:F}}const vz=["className","sx"],Vc=({ref:e,props:t,valueManager:n,valueType:r,variant:s,validator:i,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:p})=>{const{views:g,view:h,openTo:b,onViewChange:m,viewRenderers:y,reduceAnimations:C,orientation:S,disableOpenPicker:x,closeOnSelect:E,disabled:P,readOnly:M,formatDensity:D,enableAccessibleFieldDOMStructure:O,selectedSections:k,onSelectedSectionsChange:I,format:F,label:T,autoFocus:R,name:A}=t,{className:L,sx:N}=t,_=ie(t,vz),H=at(),B=vt(),$=ab(C),V=bz(g,S),{current:z}=f.useRef(b??null),[j,G]=f.useState(null),Q=f.useRef(null),q=f.useRef(null),Y=f.useRef(null),K=tt(e,Y),{timezone:J,state:X,setOpen:ee,setValue:W,setValueFromView:le,value:oe,viewValue:re}=yz({props:t,valueManager:n,validator:i}),{view:ae,setView:ne,defaultView:te,focusedView:ye,setFocusedView:ce,setValueAndGoToNextView:Se,goToNextStep:we,hasNextStep:Be,hasSeveralSteps:Fe}=jm({view:h,views:g,openTo:b,onChange:le,onViewChange:m,autoFocus:l,getStepNavigation:p}),Ye=fe(()=>W(n.emptyValue,{source:"view"})),Ne=fe(()=>W(n.getTodayValue(B,J,r),{source:"view"})),Ke=fe(()=>W(oe,{source:"view"})),He=fe(()=>W(X.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),me=fe(()=>{W(oe,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Pe,viewModeLookup:ge,timeViewsCount:Te}=f.useMemo(()=>g.reduce((_e,Ct)=>{const Re=y[Ct]==null?"field":"UI";return _e.viewModeLookup[Ct]=Re,Re==="UI"&&(_e.hasUIView=!0,v_(Ct)&&(_e.timeViewsCount+=1)),_e},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,g]),$e=ge[ae],Ge=fe(()=>$e),[ot,Tt]=f.useState($e==="UI"?ae:null);ot!==ae&&ge[ae]==="UI"&&Tt(ae),it(()=>{$e==="field"&&X.open&&(ee(!1),setTimeout(()=>{q?.current?.setSelectedSections(ae),q?.current?.focusField(ae)}))},[ae]),it(()=>{if(!X.open)return;let _e=ae;$e==="field"&&ot!=null&&(_e=ot),_e!==te&&ge[_e]==="UI"&&ge[te]==="UI"&&(_e=te),_e!==ae&&ne(_e),ce(_e,!0)},[X.open]);const We=f.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(B,oe,n.emptyValue),isPickerOpen:X.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:V,pickerVariant:s}),[B,n,oe,X.open,V,s,t.disabled,t.readOnly]),Oe=f.useMemo(()=>x||!Pe?"hidden":P||M?"disabled":"enabled",[x,Pe,P,M]),Ue=fe(we),ut=f.useMemo(()=>E&&!Fe?[]:["cancel","nextOrAccept"],[E,Fe]),zt=f.useMemo(()=>({setValue:W,setOpen:ee,clearValue:Ye,setValueToToday:Ne,acceptValueChanges:Ke,cancelValueChanges:He,setView:ne,goToNextStep:Ue}),[W,ee,Ye,Ne,Ke,He,ne,Ue]),Et=f.useMemo(()=>w({},zt,{value:oe,timezone:J,open:X.open,views:g,view:ot,initialView:z,disabled:P??!1,readOnly:M??!1,autoFocus:R??!1,variant:s,orientation:V,popupRef:Q,reduceAnimations:$,triggerRef:G,triggerStatus:Oe,hasNextStep:Be,fieldFormat:F??"",name:A,label:T,rootSx:N,rootRef:K,rootClassName:L}),[zt,oe,K,s,V,$,P,M,F,L,A,T,N,Oe,Be,J,X.open,ot,g,z,R]),zn=f.useMemo(()=>({dismissViews:me,ownerState:We,hasUIView:Pe,getCurrentViewMode:Ge,rootRefObject:Y,labelId:H,triggerElement:j,viewContainerRole:d,defaultActionBarActions:ut,onPopperExited:a}),[me,We,Pe,Ge,H,j,d,ut,a]),wn=f.useMemo(()=>({formatDensity:D,enableAccessibleFieldDOMStructure:O,selectedSections:k,onSelectedSectionsChange:I,fieldRef:q}),[D,O,k,I,q]);return{providerProps:{localeText:u,contextValue:Et,privateContextValue:zn,actionsContextValue:zt,fieldPrivateContextValue:wn,isValidContextValue:_e=>{const Ct=i({adapter:B,value:_e,timezone:J,props:t});return!n.hasError(Ct)}},renderCurrentView:()=>{if(ot==null)return null;const _e=y[ot];if(_e==null)return null;const Ct=w({},_,{views:g,timezone:J,value:re,onChange:Se,view:ot,onViewChange:ne,showViewSwitcher:Te>1,timeViewsCount:Te},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:ye,onFocusedViewChange:ce});return c?v.jsx(c,{viewRenderers:y,popperView:ot,rendererProps:Ct}):_e(Ct)},ownerState:We}};function Bx(e){return ke("MuiPickersLayout",e)}const Ei=Me("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),Cz=["actions"],wz=U(Fg,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Hx(e){const{actions:t}=e,n=ie(e,Cz),r=To(),{clearValue:s,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=Si();if(t==null||t.length===0)return null;const d=t?.map(p=>{switch(p){case"clear":return v.jsx(Vn,{onClick:s,children:r.clearButtonLabel},p);case"cancel":return v.jsx(Vn,{onClick:l,children:r.cancelButtonLabel},p);case"accept":return v.jsx(Vn,{onClick:a,children:r.okButtonLabel},p);case"today":return v.jsx(Vn,{onClick:i,children:r.todayButtonLabel},p);case"next":return v.jsx(Vn,{onClick:c,children:r.nextStepButtonLabel},p);case"nextOrAccept":return u?v.jsx(Vn,{onClick:c,children:r.nextStepButtonLabel},p):v.jsx(Vn,{onClick:a,children:r.okButtonLabel},p);default:return null}});return v.jsx(wz,w({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(Hx.propTypes={actions:o.arrayOf(o.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const zx=f.memo(Hx);process.env.NODE_ENV!=="production"&&(zx.displayName="PickersActionBar");const Sz=["items","changeImportance"],xz=["getValue"],Pz=U(ts,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function jx(e){const{items:t,changeImportance:n="accept"}=e,r=ie(e,Sz),{setValue:s}=r_(),i=o_();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=ie(l,xz);const d=c({isValid:i});return w({},u,{label:u.label,onClick:()=>{s(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return v.jsx(Pz,w({dense:!0,sx:[{maxHeight:Gm,maxWidth:200,overflow:"auto"},...Array.isArray(r.sx)?r.sx:[r.sx]]},r,{children:a.map(l=>v.jsx(lc,{children:v.jsx(ba,w({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(jx.propTypes={changeImportance:o.oneOf(["accept","set"]),className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,items:o.arrayOf(o.shape({getValue:o.func.isRequired,id:o.string,label:o.string.isRequired})),style:o.object,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Ez=["ownerState"];function Tz(e){return e.view!==null}const Iz=(e,t)=>{const{pickerOrientation:n}=t;return pe({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Bx,e)},Mz=e=>{const{ownerState:t,defaultActionBarActions:n}=Un(),{view:r}=Si(),s=_t(),{children:i,slots:a,slotProps:l,classes:c}=e,u=f.useMemo(()=>w({},t,{layoutDirection:s?"rtl":"ltr",hasShortcuts:!1}),[t,s]),d=Iz(c,u),p=a?.actionBar??zx,g=nt({elementType:p,externalSlotProps:l?.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),h=ie(g,Ez),b=v.jsx(p,w({},h)),m=a?.toolbar,y=nt({elementType:m,externalSlotProps:l?.toolbar,className:d.toolbar,ownerState:u}),C=Tz(y)&&m?v.jsx(m,w({},y)):null,S=i,x=a?.tabs,E=r&&x?v.jsx(x,w({className:d.tabs},l?.tabs)):null,P=a?.shortcuts??jx,M=nt({elementType:P,externalSlotProps:l?.shortcuts,className:d.shortcuts,ownerState:u}),D=Array.isArray(M?.items)&&M.items.length>0,O=r&&P?v.jsx(P,w({},M)):null;return{toolbar:C,content:S,tabs:E,actionBar:b,shortcuts:O,ownerState:w({},u,{hasShortcuts:D})}},Oz=(e,t)=>{const{pickerOrientation:n}=t;return pe({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},Bx,e)},kz=U("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Ei.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${Ei.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${Ei.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${Ei.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Ei.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Ei.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${Ei.shortcuts}`]:{gridColumn:4}}}]}),Dz=U("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Ti=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiPickersLayout"}),{toolbar:s,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=Mz(r),{orientation:d,variant:p}=Si(),{sx:g,className:h,classes:b}=r,m=Oz(b,u);return v.jsxs(kz,{ref:n,sx:g,className:se(m.root,h),ownerState:u,children:[d==="landscape"?c:s,d==="landscape"?s:c,v.jsx(Dz,{className:m.contentWrapper,ownerState:u,children:p==="desktop"?v.jsxs(f.Fragment,{children:[i,a]}):v.jsxs(f.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(Ti.displayName="PickersLayout"),process.env.NODE_ENV!=="production"&&(Ti.propTypes={children:o.node,classes:o.object,className:o.string,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Gx(e){const{steps:t}=e;return JS({steps:t,isViewMatchingStep:(n,r)=>r.views==null||r.views.includes(n),onStepChange:({step:n,defaultView:r,setView:s,view:i,views:a})=>{const l=n.views==null?r:n.views.find(c=>a.includes(c));l!==i&&s(l)}})}const Fz=["props","steps"],Nz=["ownerState"],Rz=e=>{let{props:t,steps:n}=e,r=ie(e,Fz);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Gx({steps:n}),{providerProps:d,renderCurrentView:p,ownerState:g}=Vc(w({},r,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),h=d.privateContextValue.labelId,b=i?.toolbar?.hidden??!1,m=s.field,y=nt({elementType:m,externalSlotProps:i?.field,additionalProps:w({},b&&{id:h}),ownerState:g}),C=ie(y,Nz),S=s.layout??Ti;let x=h;b&&(a?x=`${h}-label`:x=void 0);const E=w({},i,{toolbar:w({},i?.toolbar,{titleId:h}),popper:w({"aria-labelledby":x},i?.popper)}),P=()=>v.jsxs(Oc,w({},d,{children:[v.jsx(m,w({},C,{slots:w({},s,C.slots),slotProps:w({},E,C.slotProps),inputRef:l})),v.jsx(Ax,{slots:s,slotProps:E,children:v.jsx(S,w({},E?.layout,{slots:s,slotProps:E,children:p()}))})]}));return process.env.NODE_ENV!=="production"&&(P.displayName="renderPicker"),{renderPicker:P}},Ii=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:g,minDate:h,maxDate:b,shouldDisableDate:m,shouldDisableMonth:y,shouldDisableYear:C,reduceAnimations:S,onMonthChange:x,monthsPerRow:E,onYearChange:P,yearsOrder:M,yearsPerRow:D,slots:O,slotProps:k,loading:I,renderLoading:F,disableHighlightToday:T,readOnly:R,disabled:A,showDaysOutsideCurrentMonth:L,dayOfWeekFormatter:N,sx:_,autoFocus:H,fixedWeekNumber:B,displayWeekNumber:$,timezone:V})=>v.jsx(lb,{view:e,onViewChange:t,views:n.filter(Om),focusedView:r&&Om(r)?r:null,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:g,minDate:h,maxDate:b,shouldDisableDate:m,shouldDisableMonth:y,shouldDisableYear:C,reduceAnimations:S,onMonthChange:x,monthsPerRow:E,onYearChange:P,yearsOrder:M,yearsPerRow:D,slots:O,slotProps:k,loading:I,renderLoading:F,disableHighlightToday:T,readOnly:R,disabled:A,showDaysOutsideCurrentMonth:L,dayOfWeekFormatter:N,sx:_,autoFocus:H,fixedWeekNumber:B,displayWeekNumber:$,timezone:V});process.env.NODE_ENV!=="production"&&(Ii.displayName="renderDateViewCalendar");const pb=f.forwardRef(function(t,n){const r=vt(),s=Lx(t,"MuiDesktopDatePicker"),i=w({day:Ii,month:Ii,year:Ii},s.viewRenderers),a=w({},s,{closeOnSelect:s.closeOnSelect??!0,viewRenderers:i,format:km(r,s,!1),yearsPerRow:s.yearsPerRow??4,slots:w({field:Op},s.slots),slotProps:w({},s.slotProps,{field:c=>w({},Wn(s.slotProps?.field,c),dp(s)),toolbar:w({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=Rz({ref:n,props:a,valueManager:Io,valueType:"date",validator:Ns,steps:null});return l()});process.env.NODE_ENV!=="production"&&(pb.displayName="DesktopDatePicker"),pb.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ft,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","month","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),viewRenderers:o.shape({day:o.func,month:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])};const Lz=U(Dg,{slot:"internal"})({[`& .${rc.container}`]:{outline:0},[`& .${rc.paper}`]:{outline:0,minWidth:Fc}}),$z=U(Fd,{slot:"internal"})({"&:first-of-type":{padding:0}});function Wx(e){const{children:t,slots:n,slotProps:r}=e,{open:s}=Si(),{dismissViews:i,onPopperExited:a}=Un(),l=n?.dialog??Lz,c=n?.mobileTransition??es;return v.jsx(l,w({open:s,onClose:()=>{i(),a?.()}},r?.dialog,{TransitionComponent:c,TransitionProps:r?.mobileTransition,PaperComponent:n?.mobilePaper,PaperProps:r?.mobilePaper,children:v.jsx($z,{children:t})}))}const Az=["props","steps"],Vz=["ownerState"],_z=e=>{let{props:t,steps:n}=e,r=ie(e,Az);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Gx({steps:n}),{providerProps:d,renderCurrentView:p,ownerState:g}=Vc(w({},r,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),h=d.privateContextValue.labelId,b=i?.toolbar?.hidden??!1,m=s.field,y=nt({elementType:m,externalSlotProps:i?.field,additionalProps:w({},b&&{id:h}),ownerState:g}),C=ie(y,Vz),S=s.layout??Ti;let x=h;b&&(a?x=`${h}-label`:x=void 0);const E=w({},i,{toolbar:w({},i?.toolbar,{titleId:h}),mobilePaper:w({"aria-labelledby":x},i?.mobilePaper)}),P=()=>v.jsxs(Oc,w({},d,{children:[v.jsx(m,w({},C,{slots:w({},s,C.slots),slotProps:w({},E,C.slotProps),inputRef:l})),v.jsx(Wx,{slots:s,slotProps:E,children:v.jsx(S,w({},E?.layout,{slots:s,slotProps:E,children:p()}))})]}));return process.env.NODE_ENV!=="production"&&(P.displayName="renderPicker"),{renderPicker:P}},fb=f.forwardRef(function(t,n){const r=vt(),s=Lx(t,"MuiMobileDatePicker"),i=w({day:Ii,month:Ii,year:Ii},s.viewRenderers),a=w({},s,{viewRenderers:i,format:km(r,s,!1),slots:w({field:Op},s.slots),slotProps:w({},s.slotProps,{field:c=>w({},Wn(s.slotProps?.field,c),dp(s)),toolbar:w({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=_z({ref:n,props:a,valueManager:Io,valueType:"date",validator:Ns,steps:null});return l()});process.env.NODE_ENV!=="production"&&(fb.displayName="MobileDatePicker"),fb.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ft,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","month","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),viewRenderers:o.shape({day:o.func,month:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])};const Bz=["desktopModeMediaQuery"],Np=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:s=Um}=r,i=ie(r,Bz);return zd(s,{defaultMatches:!0})?v.jsx(pb,w({ref:n},i)):v.jsx(fb,w({ref:n},i))});process.env.NODE_ENV!=="production"&&(Np.displayName="DatePicker"),process.env.NODE_ENV!=="production"&&(Np.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,desktopModeMediaQuery:o.string,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ft,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","month","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),viewRenderers:o.shape({day:o.func,month:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});function Hz(e){return ke("MuiPickersToolbarText",e)}Me("MuiPickersToolbarText",["root"]);const zz=["className","classes","selected","value"],jz=e=>pe({root:["root"]},Hz,e),Gz=U(kt,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),Ux=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiPickersToolbarText"}),{className:s,classes:i,selected:a,value:l}=r,c=ie(r,zz),u=jz(i);return v.jsx(Gz,w({ref:n,className:se(u.root,s),component:"span",ownerState:r},a&&{"data-selected":!0},c,{children:l}))});process.env.NODE_ENV!=="production"&&(Ux.displayName="PickersToolbarText");const Wz=["align","className","classes","selected","typographyClassName","value","variant","width"],Uz=e=>pe({root:["root"]},Rx,e),qz=U(Vn,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),hb=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiPickersToolbarButton"}),{align:s,className:i,classes:a,selected:l,typographyClassName:c,value:u,variant:d,width:p}=r,g=ie(r,Wz),h=Uz(a);return v.jsx(qz,w({variant:"text",ref:n,className:se(h.root,i),ownerState:r},p?{sx:{width:p}}:{},g,{children:v.jsx(Ux,{align:s,className:c,variant:d,value:u,selected:l})}))});process.env.NODE_ENV!=="production"&&(hb.displayName="PickersToolbarButton");var Rp={exports:{}},Yz=Rp.exports,qx;function Kz(){return qx||(qx=1,(function(e,t){(function(n,r){e.exports=r()})(Yz,(function(){var n="week",r="year";return function(s,i,a){var l=i.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(r).add(1,r).date(u),p=a(this).endOf(n);if(d.isBefore(p))return 1}var g=a(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(g,n,!0);return h<0?a(this).startOf("week").week():Math.ceil(h)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(Rp)),Rp.exports}var Xz=Kz();const Zz=ys(Xz);var Lp={exports:{}},Qz=Lp.exports,Yx;function Jz(){return Yx||(Yx=1,(function(e,t){(function(n,r){e.exports=r()})(Qz,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,i=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(C){this[y]=+C}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(C){if(!C||C==="Z")return 0;var S=C.match(/([+-]|\d\d)/g),x=60*S[1]+(+S[2]||0);return x===0?0:S[0]==="+"?-x:x})(y)}],g=function(y){var C=c[y];return C&&(C.indexOf?C:C.s.concat(C.f))},h=function(y,C){var S,x=c.meridiem;if(x){for(var E=1;E<=24;E+=1)if(y.indexOf(x(E,0,C))>-1){S=E>12;break}}else S=y===(C?"pm":"PM");return S},b={A:[l,function(y){this.afternoon=h(y,!1)}],a:[l,function(y){this.afternoon=h(y,!0)}],Q:[s,function(y){this.month=3*(y-1)+1}],S:[s,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[l,function(y){var C=c.ordinal,S=y.match(/\d+/);if(this.day=S[0],C)for(var x=1;x<=31;x+=1)C(x).replace(/\[|\]/g,"")===y&&(this.day=x)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var C=g("months"),S=(g("monthsShort")||C.map((function(x){return x.slice(0,3)}))).indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[l,function(y){var C=g("months").indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:p,ZZ:p};function m(y){var C,S;C=y,S=c&&c.formats;for(var x=(y=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(I,F,T){var R=T&&T.toUpperCase();return F||S[T]||n[T]||S[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(A,L,N){return L||N.slice(1)}))}))).match(r),E=x.length,P=0;P<E;P+=1){var M=x[P],D=b[M],O=D&&D[0],k=D&&D[1];x[P]=k?{regex:O,parser:k}:M.replace(/^\[|\]$/g,"")}return function(I){for(var F={},T=0,R=0;T<E;T+=1){var A=x[T];if(typeof A=="string")R+=A.length;else{var L=A.regex,N=A.parser,_=I.slice(R),H=L.exec(_)[0];N.call(F,H),I=I.replace(H,"")}}return(function(B){var $=B.afternoon;if($!==void 0){var V=B.hours;$?V<12&&(B.hours+=12):V===12&&(B.hours=0),delete B.afternoon}})(F),F}}return function(y,C,S){S.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var x=C.prototype,E=x.parse;x.parse=function(P){var M=P.date,D=P.utc,O=P.args;this.$u=D;var k=O[1];if(typeof k=="string"){var I=O[2]===!0,F=O[3]===!0,T=I||F,R=O[2];F&&(R=O[2]),c=this.$locale(),!I&&R&&(c=S.Ls[R]),this.$d=(function(_,H,B,$){try{if(["x","X"].indexOf(H)>-1)return new Date((H==="X"?1e3:1)*_);var V=m(H)(_),z=V.year,j=V.month,G=V.day,Q=V.hours,q=V.minutes,Y=V.seconds,K=V.milliseconds,J=V.zone,X=V.week,ee=new Date,W=G||(z||j?1:ee.getDate()),le=z||ee.getFullYear(),oe=0;z&&!j||(oe=j>0?j-1:ee.getMonth());var re,ae=Q||0,ne=q||0,te=Y||0,ye=K||0;return J?new Date(Date.UTC(le,oe,W,ae,ne,te,ye+60*J.offset*1e3)):B?new Date(Date.UTC(le,oe,W,ae,ne,te,ye)):(re=new Date(le,oe,W,ae,ne,te,ye),X&&(re=$(re).week(X).toDate()),re)}catch{return new Date("")}})(M,k,D,S),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),T&&M!=this.format(k)&&(this.$d=new Date("")),c={}}else if(k instanceof Array)for(var A=k.length,L=1;L<=A;L+=1){O[1]=k[L-1];var N=S.apply(this,O);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}L===A&&(this.$d=new Date(""))}else E.call(this,P)}}}))})(Lp)),Lp.exports}var ej=Jz();const tj=ys(ej);var $p={exports:{}},nj=$p.exports,Kx;function oj(){return Kx||(Kx=1,(function(e,t){(function(n,r){e.exports=r()})(nj,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,s,i){var a=s.prototype,l=a.format;i.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(p,g){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(h,b,m){var y=m&&m.toUpperCase();return b||g[m]||n[m]||g[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,S,x){return S||x.slice(1)}))}))})(c,u===void 0?{}:u);return l.call(this,d)}}}))})($p)),$p.exports}var rj=oj();const sj=ys(rj);var Ap={exports:{}},ij=Ap.exports,Xx;function aj(){return Xx||(Xx=1,(function(e,t){(function(n,r){e.exports=r()})(ij,(function(){return function(n,r,s){r.prototype.isBetween=function(i,a,l,c){var u=s(i),d=s(a),p=(c=c||"()")[0]==="(",g=c[1]===")";return(p?this.isAfter(u,l):!this.isBefore(u,l))&&(g?this.isBefore(d,l):!this.isAfter(d,l))||(p?this.isBefore(u,l):!this.isAfter(u,l))&&(g?this.isAfter(d,l):!this.isBefore(d,l))}}}))})(Ap)),Ap.exports}var lj=aj();const cj=ys(lj);var Vp={exports:{}},uj=Vp.exports,Zx;function dj(){return Zx||(Zx=1,(function(e,t){(function(n,r){e.exports=r()})(uj,(function(){return function(n,r){var s=r.prototype,i=s.format;s.format=function(a){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(p){switch(p){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),p==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return p}}));return i.bind(this)(d)}}}))})(Vp)),Vp.exports}var pj=dj();const fj=ys(pj);In.extend(sj),In.extend(Zz),In.extend(cj),In.extend(fj);const hj={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},gj={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},gb=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
308
+ `),Qx=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
309
+ `);class Jx{isMUIAdapter=!0;isTimezoneCompatible=!0;lib="dayjs";escapedCharacters={start:"[",end:"]"};formatTokenMap=hj;constructor({locale:t,formats:n}={}){this.locale=t,this.formats=w({},gj,n),In.extend(tj)}setLocaleToValue=t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)};hasUTCPlugin=()=>typeof In.utc<"u";hasTimezonePlugin=()=>typeof In.tz<"u";isSame=(t,n,r)=>{const s=this.setTimezone(n,this.getTimezone(t));return t.format(r)===s.format(r)};cleanTimezone=t=>{switch(t){case"default":return;case"system":return In.tz.guess();default:return t}};createSystemDate=t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const r=In.tz.guess();r==="UTC"?n=In(t):n=In.tz(t,r)}else n=In(t);return this.setLocaleToValue(n)};createUTCDate=t=>{if(!this.hasUTCPlugin())throw new Error(gb);return this.setLocaleToValue(In.utc(t))};createTZDate=(t,n)=>{if(!this.hasUTCPlugin())throw new Error(gb);if(!this.hasTimezonePlugin())throw new Error(Qx);const r=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(In(t).tz(this.cleanTimezone(n),r))};getLocaleFormats=()=>{const t=In.Ls,n=this.locale||"en";let r=t[n];return r===void 0&&(process.env.NODE_ENV!=="production"&&yn(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),r=t.en),r.formats};adjustOffset=t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const r=t.tz(this.cleanTimezone(n),!0);if(r.$offset===(t.$offset??0))return t;t.$offset=r.$offset}return t};date=(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n);getInvalidDate=()=>In(new Date("Invalid date"));getTimezone=t=>{if(this.hasTimezonePlugin()){const n=t.$x?.$timezone;if(n)return n}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"};setTimezone=(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(gb);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(Qx)}return this.setLocaleToValue(In.tz(t,this.cleanTimezone(n)))};toJsDate=t=>t.toDate();parse=(t,n)=>t===""?null:In(t,n,this.locale,!0);getCurrentLocaleCode=()=>this.locale||"en";is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||"");expandFormat=t=>{const n=this.getLocaleFormats(),r=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,a,l)=>a||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,i,a)=>{const l=a&&a.toUpperCase();return i||n[a]||r(n[l])})};isValid=t=>t==null?!1:t.isValid();format=(t,n)=>this.formatByString(t,this.formats[n]);formatByString=(t,n)=>this.setLocaleToValue(t).format(n);formatNumber=t=>t;isEqual=(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime();isSameYear=(t,n)=>this.isSame(t,n,"YYYY");isSameMonth=(t,n)=>this.isSame(t,n,"YYYY-MM");isSameDay=(t,n)=>this.isSame(t,n,"YYYY-MM-DD");isSameHour=(t,n)=>t.isSame(n,"hour");isAfter=(t,n)=>t>n;isAfterYear=(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year");isAfterDay=(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day");isBefore=(t,n)=>t<n;isBeforeYear=(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year");isBeforeDay=(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day");isWithinRange=(t,[n,r])=>t>=n&&t<=r;startOfYear=t=>this.adjustOffset(t.startOf("year"));startOfMonth=t=>this.adjustOffset(t.startOf("month"));startOfWeek=t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week"));startOfDay=t=>this.adjustOffset(t.startOf("day"));endOfYear=t=>this.adjustOffset(t.endOf("year"));endOfMonth=t=>this.adjustOffset(t.endOf("month"));endOfWeek=t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week"));endOfDay=t=>this.adjustOffset(t.endOf("day"));addYears=(t,n)=>this.adjustOffset(t.add(n,"year"));addMonths=(t,n)=>this.adjustOffset(t.add(n,"month"));addWeeks=(t,n)=>this.adjustOffset(t.add(n,"week"));addDays=(t,n)=>this.adjustOffset(t.add(n,"day"));addHours=(t,n)=>this.adjustOffset(t.add(n,"hour"));addMinutes=(t,n)=>this.adjustOffset(t.add(n,"minute"));addSeconds=(t,n)=>this.adjustOffset(t.add(n,"second"));getYear=t=>t.year();getMonth=t=>t.month();getDate=t=>t.date();getHours=t=>t.hour();getMinutes=t=>t.minute();getSeconds=t=>t.second();getMilliseconds=t=>t.millisecond();setYear=(t,n)=>this.adjustOffset(t.set("year",n));setMonth=(t,n)=>this.adjustOffset(t.set("month",n));setDate=(t,n)=>this.adjustOffset(t.set("date",n));setHours=(t,n)=>this.adjustOffset(t.set("hour",n));setMinutes=(t,n)=>this.adjustOffset(t.set("minute",n));setSeconds=(t,n)=>this.adjustOffset(t.set("second",n));setMilliseconds=(t,n)=>this.adjustOffset(t.set("millisecond",n));getDaysInMonth=t=>t.daysInMonth();getWeekArray=t=>{const n=this.startOfWeek(this.startOfMonth(t)),r=this.endOfWeek(this.endOfMonth(t));let s=0,i=n;const a=[];for(;i<r;){const l=Math.floor(s/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),s+=1}return a};getWeekNumber=t=>t.week();getDayOfWeek(t){return t.day()+1}getYearRange=([t,n])=>{const r=this.startOfYear(t),s=this.endOfYear(n),i=[];let a=r;for(;this.isBefore(a,s);)i.push(a),a=this.addYears(a,1);return i}}const mj=({sidebar:e,routes:t,product:n,account:r,languages:s,loginForm:i})=>{const{isAuthenticated:a}=he.useContext(gr);return a?v.jsx(eV,{routes:t,sidebar:e,account:r}):v.jsx(HA,{product:n,languages:s,form:i})},bj=({sidebar:e,routes:t,product:n,account:r,languages:s,loginForm:i})=>{const a=s.find(c=>c.active)||s[0];he.useEffect(()=>{switch(a.code){case"es":In.locale("es");break;case"en":In.locale("en");break;case"pt":In.locale("pt");break;default:In.locale("en")}},[a]);const l={rabbitDark:Js(C2,a.theme.dg,a.theme.core,a.theme.pickers)};return v.jsx(v.Fragment,{children:v.jsx(An,{sx:{overflow:"hidden",height:"100vh"},children:v.jsx(yA,{children:v.jsx(fC,{theme:l.rabbitDark,children:v.jsx(Tc,{dateAdapter:Jx,adapterLocale:a.code,children:v.jsxs(NV,{maxSnack:15,autoHideDuration:1e4,anchorOrigin:{vertical:"top",horizontal:"center"},children:[v.jsx(Sw,{}),v.jsx(mj,{sidebar:e,routes:t,product:n,account:r,languages:s,loginForm:i})]})})})})})})},yj=({children:e})=>{const[t,n]=he.useState(localStorage.getItem("authenticated")==="true"),[r,s]=he.useState(""),[i,a]=he.useState(""),[l,c]=he.useState(""),[u,d]=he.useState("DD/MM/YYYY"),[p,g]=he.useState([]),[h,b]=he.useState([]),[m,y]=he.useState(!1),C=(x,E,P)=>{x==="session"?sessionStorage.setItem(E,P):x==="local"&&localStorage.setItem(E,P)},S=(x,E)=>x==="session"?sessionStorage.getItem(E)||"":x==="local"&&localStorage.getItem(E)||"";return v.jsx(gr.Provider,{value:{isAuthenticated:t,setIsAuthenticated:n,user:r,setUser:s,pass:i,setPass:a,avatar:l,setAvatar:c,loadingAuth:m,setLoadingAuth:y,format:u,setFormat:d,singleShortcut:p,setSingleShortcut:g,rangeShortcut:h,setRangeShortcut:b,encrypter:C,decrypter:S},children:e})};var vj=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const s={};e(s)===s&&(r=!0)}catch{}if(r){let s;try{throw new Error}catch(i){({stack:s}=i)}console.warn(`The result function returned its own inputs without modification. e.g
310
+ \`createSelector([state => state.todos], todos => todos)\`
311
+ This could lead to inefficient memoization and unnecessary re-renders.
312
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:s})}}},Cj=(e,t,n)=>{const{memoize:r,memoizeOptions:s}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,l=r(()=>({}),...s);if(!(l.apply(null,i)===l.apply(null,a))){let u;try{throw new Error}catch(d){({stack:u}=d)}console.warn(`An input selector returned a different result when passed same arguments.
313
+ This means your output selector will likely run more frequently than intended.
314
+ Avoid returning a new reference inside your input selector, e.g.
315
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:a,stack:u})}},wj={inputStabilityCheck:"once",identityFunctionCheck:"once"},_p=Symbol("NOT_FOUND");function Sj(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function xj(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Pj(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var eP=e=>Array.isArray(e)?e:[e];function Ej(e){const t=Array.isArray(e[0])?e[0]:e;return Pj(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function tP(e,t){const n=[],{length:r}=e;for(let s=0;s<r;s++)n.push(e[s].apply(null,t));return n}var Tj=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...wj,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:vj},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:Cj}}};function Ij(e){let t;return{get(n){return t&&e(t.key,n)?t.value:_p},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Mj(e,t){let n=[];function r(l){const c=n.findIndex(u=>t(l,u.key));if(c>-1){const u=n[c];return c>0&&(n.splice(c,1),n.unshift(u)),u.value}return _p}function s(l,c){r(l)===_p&&(n.unshift({key:l,value:c}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:s,getEntries:i,clear:a}}var Oj=(e,t)=>e===t;function kj(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:s}=n;for(let i=0;i<s;i++)if(!e(n[i],r[i]))return!1;return!0}}function mb(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=Oj,maxSize:s=1,resultEqualityCheck:i}=n,a=kj(r);let l=0;const c=s<=1?Ij(a):Mj(s,a);function u(){let d=c.get(arguments);if(d===_p){if(d=e.apply(null,arguments),l++,i){const g=c.getEntries().find(h=>i(h.value,d));g&&(d=g.value,l!==0&&l--)}c.put(arguments,d)}return d}return u.clearCache=()=>{c.clear(),u.resetResultsCount()},u.resultsCount=()=>l,u.resetResultsCount=()=>{l=0},u}var Dj=class{constructor(e){this.value=e}deref(){return this.value}},Fj=typeof WeakRef<"u"?WeakRef:Dj,Nj=0,nP=1;function Bp(){return{s:Nj,v:void 0,o:null,p:null}}function oP(e,t={}){let n=Bp();const{resultEqualityCheck:r}=t;let s,i=0;function a(){let l=n;const{length:c}=arguments;for(let p=0,g=c;p<g;p++){const h=arguments[p];if(typeof h=="function"||typeof h=="object"&&h!==null){let b=l.o;b===null&&(l.o=b=new WeakMap);const m=b.get(h);m===void 0?(l=Bp(),b.set(h,l)):l=m}else{let b=l.p;b===null&&(l.p=b=new Map);const m=b.get(h);m===void 0?(l=Bp(),b.set(h,l)):l=m}}const u=l;let d;if(l.s===nP)d=l.v;else if(d=e.apply(null,arguments),i++,r){const p=s?.deref?.()??s;p!=null&&r(p,d)&&(d=p,i!==0&&i--),s=typeof d=="object"&&d!==null||typeof d=="function"?new Fj(d):d}return u.s=nP,u.v=d,d}return a.clearCache=()=>{n=Bp(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function rP(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...s)=>{let i=0,a=0,l,c={},u=s.pop();typeof u=="object"&&(c=u,u=s.pop()),Sj(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...c},{memoize:p,memoizeOptions:g=[],argsMemoize:h=oP,argsMemoizeOptions:b=[],devModeChecks:m={}}=d,y=eP(g),C=eP(b),S=Ej(s),x=p(function(){return i++,u.apply(null,arguments)},...y);let E=!0;const P=h(function(){a++;const D=tP(S,arguments);if(l=x.apply(null,D),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:O,inputStabilityCheck:k}=Tj(E,m);if(O.shouldRun&&O.run(u,D,l),k.shouldRun){const I=tP(S,arguments);k.run({inputSelectorResults:D,inputSelectorResultsCopy:I},{memoize:p,memoizeOptions:y},arguments)}E&&(E=!1)}return l},...C);return Object.assign(P,{resultFunc:u,memoizedResultFunc:x,dependencies:S,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:p,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var Rj=rP(oP),Lj=Object.assign((e,t=Rj)=>{xj(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,l,c)=>(a[n[c]]=l,a),{}))},{withTypes:()=>Lj});const $j=rP({memoize:mb,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),lt=(e,t,n,r,s,i,a,l,...c)=>{if(c.length>0)throw new Error("Unsupported number of selectors");let u;if(e&&t&&n&&r&&s&&i&&a&&l)u=(d,p,g,h)=>{const b=e(d,p,g,h),m=t(d,p,g,h),y=n(d,p,g,h),C=r(d,p,g,h),S=s(d,p,g,h),x=i(d,p,g,h),E=a(d,p,g,h);return l(b,m,y,C,S,x,E,p,g,h)};else if(e&&t&&n&&r&&s&&i&&a)u=(d,p,g,h)=>{const b=e(d,p,g,h),m=t(d,p,g,h),y=n(d,p,g,h),C=r(d,p,g,h),S=s(d,p,g,h),x=i(d,p,g,h);return a(b,m,y,C,S,x,p,g,h)};else if(e&&t&&n&&r&&s&&i)u=(d,p,g,h)=>{const b=e(d,p,g,h),m=t(d,p,g,h),y=n(d,p,g,h),C=r(d,p,g,h),S=s(d,p,g,h);return i(b,m,y,C,S,p,g,h)};else if(e&&t&&n&&r&&s)u=(d,p,g,h)=>{const b=e(d,p,g,h),m=t(d,p,g,h),y=n(d,p,g,h),C=r(d,p,g,h);return s(b,m,y,C,p,g,h)};else if(e&&t&&n&&r)u=(d,p,g,h)=>{const b=e(d,p,g,h),m=t(d,p,g,h),y=n(d,p,g,h);return r(b,m,y,p,g,h)};else if(e&&t&&n)u=(d,p,g,h)=>{const b=e(d,p,g,h),m=t(d,p,g,h);return n(b,m,p,g,h)};else if(e&&t)u=(d,p,g,h)=>{const b=e(d,p,g,h);return t(b,p,g,h)};else if(e)u=e;else throw new Error("Missing arguments");return u},Zn=(e=>(...t)=>{const n=new WeakMap;let r=1;const s=t[t.length-1],i=t.length-1||1,a=Math.max(s.length-i,0);if(a>3)throw new Error("Unsupported number of arguments");return(c,u,d,p)=>{let g=c.__cacheKey__;g||(g={id:r},c.__cacheKey__=g,r+=1);let h=n.get(g);if(!h){const b=t.length===1?[C=>C,s]:t;let m=t;const y=[void 0,void 0,void 0];switch(a){case 0:break;case 1:{m=[...b.slice(0,-1),()=>y[0],s];break}case 2:{m=[...b.slice(0,-1),()=>y[0],()=>y[1],s];break}case 3:{m=[...b.slice(0,-1),()=>y[0],()=>y[1],()=>y[2],s];break}default:throw new Error("Unsupported number of arguments")}h=$j(...m),h.selectorArgs=y,n.set(g,h)}switch(a){case 3:h.selectorArgs[2]=p;case 2:h.selectorArgs[1]=d;case 1:h.selectorArgs[0]=u}switch(a){case 0:return h(c);case 1:return h(c,u);case 2:return h(c,u,d);case 3:return h(c,u,d,p);default:throw new Error("unreachable")}}})();var Hp={exports:{}},bb={};var sP;function Aj(){if(sP)return bb;sP=1;var e=he;function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,s=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(p,g){var h=g(),b=r({inst:{value:h,getSnapshot:g}}),m=b[0].inst,y=b[1];return i(function(){m.value=h,m.getSnapshot=g,c(m)&&y({inst:m})},[p,h,g]),s(function(){return c(m)&&y({inst:m}),p(function(){c(m)&&y({inst:m})})},[p]),a(h),h}function c(p){var g=p.getSnapshot;p=p.value;try{var h=g();return!n(p,h)}catch{return!0}}function u(p,g){return g()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return bb.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,bb}var yb={};var iP;function Vj(){return iP||(iP=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}function t(h,b){d||s.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=b();if(!p){var y=b();i(m,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}y=a({inst:{value:m,getSnapshot:b}});var C=y[0].inst,S=y[1];return c(function(){C.value=m,C.getSnapshot=b,n(C)&&S({inst:C})},[h,m,b]),l(function(){return n(C)&&S({inst:C}),h(function(){n(C)&&S({inst:C})})},[h]),u(m),m}function n(h){var b=h.getSnapshot;h=h.value;try{var m=b();return!i(h,m)}catch{return!0}}function r(h,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=he,i=typeof Object.is=="function"?Object.is:e,a=s.useState,l=s.useEffect,c=s.useLayoutEffect,u=s.useDebugValue,d=!1,p=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;yb.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),yb}var aP;function vb(){return aP||(aP=1,process.env.NODE_ENV==="production"?Hp.exports=Aj():Hp.exports=Vj()),Hp.exports}var Cb=vb(),zp={exports:{}},wb={};var lP;function _j(){if(lP)return wb;lP=1;var e=he,t=vb();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var r=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,l=e.useMemo,c=e.useDebugValue;return wb.useSyncExternalStoreWithSelector=function(u,d,p,g,h){var b=i(null);if(b.current===null){var m={hasValue:!1,value:null};b.current=m}else m=b.current;b=l(function(){function C(M){if(!S){if(S=!0,x=M,M=g(M),h!==void 0&&m.hasValue){var D=m.value;if(h(D,M))return E=D}return E=M}if(D=E,r(x,M))return D;var O=g(M);return h!==void 0&&h(D,O)?(x=M,D):(x=M,E=O)}var S=!1,x,E,P=p===void 0?null:p;return[function(){return C(d())},P===null?void 0:function(){return C(P())}]},[d,p,g,h]);var y=s(u,b[0],b[1]);return a(function(){m.hasValue=!0,m.value=y},[y]),c(y),y},wb}var Sb={};var cP;function Bj(){return cP||(cP=1,process.env.NODE_ENV!=="production"&&(function(){function e(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=he,n=vb(),r=typeof Object.is=="function"?Object.is:e,s=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,l=t.useMemo,c=t.useDebugValue;Sb.useSyncExternalStoreWithSelector=function(u,d,p,g,h){var b=i(null);if(b.current===null){var m={hasValue:!1,value:null};b.current=m}else m=b.current;b=l(function(){function C(M){if(!S){if(S=!0,x=M,M=g(M),h!==void 0&&m.hasValue){var D=m.value;if(h(D,M))return E=D}return E=M}if(D=E,r(x,M))return D;var O=g(M);return h!==void 0&&h(D,O)?(x=M,D):(x=M,E=O)}var S=!1,x,E,P=p===void 0?null:p;return[function(){return C(d())},P===null?void 0:function(){return C(P())}]},[d,p,g,h]);var y=s(u,b[0],b[1]);return a(function(){m.hasValue=!0,m.value=y},[y]),c(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Sb}var uP;function Hj(){return uP||(uP=1,process.env.NODE_ENV==="production"?zp.exports=_j():zp.exports=Bj()),zp.exports}var zj=Hj();const xb=parseInt(f.version,10),jj=xb>=19?Gj:Wj;function qt(e,t,n,r,s){return jj(e,t,n,r,s)}function Gj(e,t,n,r,s){const i=f.useCallback(()=>t(e.getSnapshot(),n,r,s),[e,t,n,r,s]);return Cb.useSyncExternalStore(e.subscribe,i,i)}function Wj(e,t,n,r,s){return zj.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,r,s))}const Uj=()=>{};function Mi(e,t,n){const r=lo(qj,{store:e,selector:t}).current;r.effect=n,ld(r.onMount)}function qj(e){const{store:t,selector:n}=e;let r=n(t.state);const s={effect:Uj,dispose:null,subscribe:()=>{s.dispose??=t.subscribe(i=>{const a=n(i);if(!Object.is(r,a)){const l=r;r=a,s.effect(l,a)}})},onMount:()=>(s.subscribe(),()=>{s.dispose?.(),s.dispose=null})};return s.subscribe(),s}class _c{static create(t){return new _c(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){this.state=t,this.updateTick+=1;const n=this.updateTick,r=this.listeners.values();let s;for(;s=r.next(),!s.done;){if(n!==this.updateTick)return;const i=s.value;i(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState(w({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState(w({},this.state,{[t]:n}))}use=(t,n,r,s)=>qt(this,t,n,r,s)}const De=(...e)=>{const t=lt(...e);return(r,s,i,a)=>t(Pb(r),s,i,a)},Pt=(...e)=>{const t=Zn(...e);return(r,s,i,a)=>t(Pb(r),s,i,a)},Ht=e=>(t,n)=>e(Pb(t),n);function Pb(e){return"current"in e?e.current.state:e}const an=Ht(e=>e.dimensions),Bc=De(an,e=>e.columnsTotalWidth),Eb=De(an,e=>e.rowHeight);De(an,e=>e.contentSize.height);const dP=De(an,e=>e.hasScrollX),pP=De(an,e=>e.hasScrollY),Tb=De(an,e=>e.columnsTotalWidth<e.viewportOuterSize.width),Yj=De(an,e=>e.headerHeight),Kj=De(an,e=>e.groupHeaderHeight),Xj=De(an,e=>e.headerFilterHeight),fP=De(an,e=>e.hasScrollX?e.scrollbarSize:0),Ib=De(an,e=>e.hasScrollY?e.scrollbarSize:0),Zj=De(an,fP,(e,t)=>{const n=e.viewportOuterSize.height-e.minimumSize.height>0;return!(t===0&&!n)}),hP=Ht(e=>e.rowsMeta),yr=Ht(e=>e.rows),_a=De(yr,e=>e.totalRowCount),Qj=De(yr,e=>e.loading),Jj=De(yr,e=>e.totalTopLevelRowCount),qn=De(yr,e=>e.dataRowIdToModelLookup),eG=De(qn,(e,t)=>e[t]),ct=De(yr,e=>e.tree),St=De(ct,(e,t)=>e[t]),gP=De(yr,e=>e.groupsToFetch),tG=De(yr,e=>e.groupingName),mP=De(yr,e=>e.treeDepths),Ls=Pt(yr,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:(t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]??0)+1}),Oi=De(yr,e=>e.dataRowIds),nG=Pt(Oi,qn,(e,t)=>e.reduce((n,r)=>(t[r]&&n.push(t[r]),n),[])),oG=De(yr,e=>e?.additionalRowGroups),ki=Pt(oG,e=>{const t=e?.pinnedRows;return{bottom:t?.bottom?.map(n=>({id:n.id,model:n.model??{}}))??[],top:t?.top?.map(n=>({id:n.id,model:n.model??{}}))??[]}}),bP=De(ki,e=>(e?.top?.length||0)+(e?.bottom?.length||0)),Qe="auto-generated-group-node-root",Di=Symbol("mui.id_autogenerated"),yP=()=>({type:"group",id:Qe,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function rG(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
316
+ `))}const Ba=(e,t,n)=>{const r=t?t(e):e.id;return rG(r,e,n),r},vP=(e,t,n)=>{const r=t.field;if(!t||!t.valueGetter)return e[r];const s=e[t.field];return t.valueGetter(s,e,t,n)},jp=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const s={type:"full",rows:[]},i={};for(let a=0;a<e.length;a+=1){const l=e[a],c=Ba(l,t);i[c]=l,s.rows.push(c)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:s,dataRowIdToModelLookup:i}},CP=({tree:e,rowCountProp:t=0})=>{const n=e[Qe];return Math.max(t,n.children.length+(n.footerId==null?0:1))},wP=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:s,previousGroupsToFetch:i})=>{const a=e.current.caches.rows,{tree:l,treeDepths:c,dataRowIds:u,groupingName:d,groupsToFetch:p=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:s,updates:a.updates,dataRowIdToModelLookup:a.dataRowIdToModelLookup,previousGroupsToFetch:i}),g=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:l,treeDepths:c,dataRowIds:u,dataRowIdToModelLookup:a.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},w({},g,{totalRowCount:Math.max(t,g.dataRowIds.length),totalTopLevelRowCount:CP({tree:g.tree,rowCountProp:t}),groupingName:d,loading:n,groupsToFetch:p})},SP=e=>Di in e,Ha=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,ss=(e,t,n,r)=>{const s=e[t];if(s.type!=="group")return[];const i=[];for(let a=0;a<s.children.length;a+=1){const l=s.children[a];if((!n||!Ha(e[l]))&&i.push(l),r)continue;const c=ss(e,l,n,r);for(let u=0;u<c.length;u+=1)i.push(c[u])}return!n&&s.footerId!=null&&i.push(s.footerId),i},xP=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const s=new Map;n.forEach(u=>{const d=Ba(u,t,"A row was provided without id when calling updateRows():");s.has(d)?s.set(d,w({},s.get(d),u)):s.set(d,u)});const i={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:w({},e.updates.idToActionLookup),groupKeys:r},a=w({},e.dataRowIdToModelLookup),l={insert:{},modify:{},remove:{}};s.forEach((u,d)=>{const p=i.idToActionLookup[d];if(u._action==="delete"){if(p==="remove"||!a[d])return;p!=null&&(l[p][d]=!0),i.actions.remove.push(d),delete a[d];return}const g=a[d];if(g){p==="remove"?(l.remove[d]=!0,i.actions.modify.push(d)):p==null&&i.actions.modify.push(d),a[d]=w({},g,u);return}p==="remove"?(l.remove[d]=!0,i.actions.insert.push(d)):p==null&&i.actions.insert.push(d),a[d]=u});const c=Object.keys(l);for(let u=0;u<c.length;u+=1){const d=c[u],p=l[d];Object.keys(p).length>0&&(i.actions[d]=i.actions[d].filter(g=>!p[g]))}return{dataRowIdToModelLookup:a,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},PP="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function EP(e,t,n){const r=[];return t.forEach(s=>{const i=Ba(s,n,"A row was provided without id when calling updateRows():");if(St(e,i)?.type==="pinnedRow"){const l=e.current.caches.pinnedRows,c=l.idLookup[i];c&&(l.idLookup[i]=w({},c,s))}else r.push(s)}),r}let TP=!1;const IP=(e,t,n)=>typeof e=="number"&&e>0?e:(process.env.NODE_ENV!=="production"&&!TP&&typeof e<"u"&&e!==null&&(console.warn(n),TP=!0),t),MP=["MUI X: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join(`
317
+ `),sG=Object.is;function OP(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const s in e)if(n+=1,!sG(e[s],t[s])||!(s in t))return!1;for(const s in t)r+=1;return n===r}function vr(e){return f.memo(e,OP)}const ze=e=>{if(xb>=19){const t=n=>e(n,n.ref??null);return t.displayName=e.displayName??e.name,t}return f.forwardRef(e)};process.env.NODE_ENV!=="production"&&(ze.displayName="forwardRef");const Mb=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(Mb.displayName="GridRootPropsContext");const Ie=()=>{const e=f.useContext(Mb);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},iG={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",noColumnsOverlayLabel:"No columns",noColumnsOverlayManageColumns:"Manage columns",emptyPivotOverlayLabel:"Add fields to rows, columns, and values to create a pivot table",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarUndo:"Undo",toolbarRedo:"Redo",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",toolbarPivot:"Pivot",toolbarCharts:"Charts",toolbarAssistant:"AI Assistant",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",headerFilterClear:"Clear filter",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnMenuManagePivot:"Manage pivot",columnMenuManageCharts:"Manage charts",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",longTextCellExpandLabel:"Expand",longTextCellCollapseLabel:"Collapse",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",paginationRowsPerPage:"Rows per page:",paginationDisplayedRows:({from:e,to:t,count:n,estimated:r})=>{if(!r)return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`;const s=r&&r>t?`around ${r}`:`more than ${t}`;return`${e}–${t} of ${n!==-1?n:s}`},paginationItemAriaLabel:e=>e==="first"?"Go to first page":e==="last"?"Go to last page":e==="next"?"Go to next page":"Go to previous page",rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelNone:"none",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size",pivotToggleLabel:"Pivot",pivotRows:"Rows",pivotColumns:"Columns",pivotValues:"Values",pivotCloseButton:"Close pivot settings",pivotSearchButton:"Search fields",pivotSearchControlPlaceholder:"Search fields",pivotSearchControlLabel:"Search fields",pivotSearchControlClear:"Clear search",pivotNoFields:"No fields",pivotMenuMoveUp:"Move up",pivotMenuMoveDown:"Move down",pivotMenuMoveToTop:"Move to top",pivotMenuMoveToBottom:"Move to bottom",pivotMenuRows:"Rows",pivotMenuColumns:"Columns",pivotMenuValues:"Values",pivotMenuOptions:"Field options",pivotMenuAddToRows:"Add to Rows",pivotMenuAddToColumns:"Add to Columns",pivotMenuAddToValues:"Add to Values",pivotMenuRemove:"Remove",pivotDragToRows:"Drag here to create rows",pivotDragToColumns:"Drag here to create columns",pivotDragToValues:"Drag here to create values",pivotYearColumnHeaderName:"(Year)",pivotQuarterColumnHeaderName:"(Quarter)",chartsNoCharts:"There are no charts available",chartsChartNotSelected:"Select a chart type to configure its options",chartsTabChart:"Chart",chartsTabFields:"Fields",chartsTabCustomize:"Customize",chartsCloseButton:"Close charts configuration",chartsSyncButtonLabel:"Sync chart",chartsSearchPlaceholder:"Search fields",chartsSearchLabel:"Search fields",chartsSearchClear:"Clear search",chartsNoFields:"No fields",chartsFieldBlocked:"This field cannot be added to any section",chartsCategories:"Categories",chartsSeries:"Series",chartsMenuAddToDimensions:e=>`Add to ${e}`,chartsMenuAddToValues:e=>`Add to ${e}`,chartsMenuMoveUp:"Move up",chartsMenuMoveDown:"Move down",chartsMenuMoveToTop:"Move to top",chartsMenuMoveToBottom:"Move to bottom",chartsMenuOptions:"Field options",chartsMenuRemove:"Remove",chartsDragToDimensions:e=>`Drag here to use column as ${e}`,chartsDragToValues:e=>`Drag here to use column as ${e}`,aiAssistantPanelTitle:"AI Assistant",aiAssistantPanelClose:"Close AI Assistant",aiAssistantPanelNewConversation:"New conversation",aiAssistantPanelConversationHistory:"Conversation history",aiAssistantPanelEmptyConversation:"No prompt history",aiAssistantSuggestions:"Suggestions",promptFieldLabel:"Prompt",promptFieldPlaceholder:"Type a prompt…",promptFieldPlaceholderWithRecording:"Type or record a prompt…",promptFieldPlaceholderListening:"Listening for prompt…",promptFieldSpeechRecognitionNotSupported:"Speech recognition is not supported in this browser",promptFieldSend:"Send",promptFieldRecord:"Record",promptFieldStopRecording:"Stop recording",promptRerun:"Run again",promptProcessing:"Processing…",promptAppliedChanges:"Applied changes",promptChangeGroupDescription:e=>`Group by ${e}`,promptChangeAggregationLabel:(e,t)=>`${e} (${t})`,promptChangeAggregationDescription:(e,t)=>`Aggregate ${e} (${t})`,promptChangeFilterLabel:(e,t,n)=>t==="is any of"?`${e} is any of: ${n}`:`${e} ${t} ${n}`,promptChangeFilterDescription:(e,t,n)=>t==="is any of"?`Filter where ${e} is any of: ${n}`:`Filter where ${e} ${t} ${n}`,promptChangeSortDescription:(e,t)=>`Sort by ${e} (${t})`,promptChangePivotEnableLabel:"Pivot",promptChangePivotEnableDescription:"Enable pivot",promptChangePivotColumnsLabel:e=>`Columns (${e})`,promptChangePivotColumnsDescription:(e,t)=>`${e}${t?` (${t})`:""}`,promptChangePivotRowsLabel:e=>`Rows (${e})`,promptChangePivotValuesLabel:e=>`Values (${e})`,promptChangePivotValuesDescription:(e,t)=>`${e} (${t})`,promptChangeChartsLabel:(e,t)=>`Dimensions (${e}), Values (${t})`};function Je(e){return ke("MuiDataGrid",e)}const Gp={root:["autoHeight","autosizing","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","withVerticalBorder"],children:["actionsCell","booleanCell","cell","cell--editable","cell--editing","cell--flex","cell--pinnedLeft","cell--pinnedRight","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--rangeTop","cell--selectionMode","cell--textCenter","cell--textLeft","cell--textRight","cell--withLeftBorder","cell--withRightBorder","cellCheckbox","cellEmpty","cellOffsetLeft","cellSkeleton","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--emptyGroup","columnHeader--filledGroup","columnHeader--filtered","columnHeader--last","columnHeader--moving","columnHeader--numeric","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--siblingFocused","columnHeader--sortable","columnHeader--sorted","columnHeader--withLeftBorder","columnHeader--withRightBorder","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnSeparator","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","container--bottom","container--top","detailPanelToggleCell","detailPanelToggleCell--expanded","editBooleanCell","filterIcon","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","groupingCriteriaCell","groupingCriteriaCellLoadingContainer","groupingCriteriaCellToggle","headerFilterRow","iconSeparator","menuIcon","menuIconButton","menuList","menuOpen","overlayWrapperInner","pinnedRows","pinnedRows--bottom","pinnedRows--top","row","row--borderBottom","row--detailPanelExpanded","row--dragging","row--dynamicHeight","row--editable","row--editing","row--firstVisible","row--lastVisible","rowReorderCell","rowReorderCell--draggable","rowReorderCellContainer","rowReorderCellPlaceholder","rowSkeleton","scrollbar","scrollbar--horizontal","scrollbar--vertical","scrollbarFiller","scrollbarFiller--pinnedRight","sortIcon","treeDataGroupingCell","treeDataGroupingCellLoadingContainer","treeDataGroupingCellToggle","withBorderColor","row--beingDragged"]},Z=Me("MuiDataGrid",[...Gp.root,...Gp.children,"aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","mainContent","withSidePanel","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderTitle","columnHeaders","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","detailPanel","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editInputCell","longTextCell","longTextCellContent","longTextCellExpandButton","longTextCellCollapseButton","longTextCellPopup","longTextCellPopperContent","editLongTextCell","editLongTextCellValue","editLongTextCellPopup","editLongTextCellPopperContent","editLongTextCellTextarea","filler","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","footerContainer","iconButtonContainer","main","main--hasPinnedRight","main--hiddenContent","menu","overlay","overlayWrapper","root","rowCount","rowReorderIcon","scrollArea--left","scrollArea--right","scrollArea--up","scrollArea--down","scrollArea","scrollShadow","scrollShadow--vertical","scrollShadow--horizontal","selectedRowCount","sortButton","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pivotPanelAvailableFields","pivotPanelField","pivotPanelField--sorted","pivotPanelFieldActionContainer","pivotPanelFieldCheckbox","pivotPanelFieldDragIcon","pivotPanelFieldList","pivotPanelFieldName","pivotPanelHeader","pivotPanelPlaceholder","pivotPanelScrollArea","pivotPanelSearchContainer","pivotPanelSection","pivotPanelSectionTitle","pivotPanelSections","pivotPanelSwitch","pivotPanelSwitchLabel","prompt","promptContent","promptText","promptFeedback","promptChangeList","promptChangesToggle","promptChangesToggleIcon","promptIcon","promptIconContainer","promptError","promptAction","resizablePanelHandle","resizablePanelHandle--horizontal","resizablePanelHandle--vertical"]);let Mo=(function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e})({});const Ob=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ob.displayName="GridApiContext");function Xe(){const e=f.useContext(Ob);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
318
+ `));return e}const kP=1e3;class aG{timeouts=new Map;cleanupTimeout=kP;constructor(t=kP){this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const s=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,s)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class lG{registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()});register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class kb{static create(){return new kb}}const Wp={current:uG()};let DP=0;function xe(e,t,n,r){const s=f.useState(kb.create)[0],i=f.useRef(null),a=f.useRef(null);a.current=n;const l=f.useRef(null);if(!i.current&&a.current){const c=(u,d,p)=>{d&&!d.defaultMuiPrevented&&a.current?.(u,d,p)};i.current=e.current.subscribeEvent(t,c,r),DP+=1,l.current={cleanupToken:DP},Wp.current.register(s,()=>{i.current?.(),i.current=null,l.current=null},l.current)}else!a.current&&i.current&&(i.current(),i.current=null,l.current&&(Wp.current.unregister(l.current),l.current=null));f.useEffect(()=>{if(!i.current&&a.current){const c=(u,d,p)=>{d&&!d.defaultMuiPrevented&&a.current?.(u,d,p)};i.current=e.current.subscribeEvent(t,c,r)}return l.current&&Wp.current&&(Wp.current.unregister(l.current),l.current=null),()=>{i.current?.(),i.current=null}},[e,t,r])}const cG={isFirst:!0};function Mt(e,t,n){xe(e,t,n,cG)}function uG(){return typeof FinalizationRegistry<"u"?new lG:new aG}const dG=Object.is,Db=OP,pG=(e,t)=>e===t?!0:e.length===t.length&&e.every((n,r)=>n===t[r]),fG=(e,t)=>{let n=Object.is;return t instanceof Array?n=pG:t instanceof Object&&(n=Db),n(e,t)},hG=()=>({state:null,equals:null,selector:null,args:void 0}),FP=[],gG=()=>null;function ue(e,t,n=void 0,r=dG){e.current.state||yn(["MUI X: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);const s=lo(hG),i=s.current.selector!==null,[a,l]=f.useState(i?null:t(e,n));s.current.state=a,s.current.equals=r,s.current.selector=t;const c=s.current.args;if(s.current.args=n,i&&!fG(c,n)){const p=s.current.selector(e,s.current.args);s.current.equals(s.current.state,p)||(s.current.state=p,l(p))}const u=f.useCallback(()=>(s.current.subscription||(s.current.subscription=e.current.store.subscribe(()=>{const p=s.current.selector(e,s.current.args);s.current.equals(s.current.state,p)||(s.current.state=p,l(p))})),null),FP),d=f.useCallback(()=>(s.current.subscription||u(),()=>{s.current.subscription&&(s.current.subscription(),s.current.subscription=void 0)}),FP);return Cb.useSyncExternalStore(d,u,gG),a}const mG={compact:.7,comfortable:1.3,standard:1},za=Ht(e=>e.density),Hc=De(za,e=>mG[e]);function zo(e){throw new Error("Failed assertion: should not be rendered")}const NP={values:{xs:0,sm:600,md:900,lg:1200,xl:1536},up:e=>{const t=NP.values;return`@media (min-width:${typeof t[e]=="number"?t[e]:e}px)`}},RP={spacingUnit:"--DataGrid-t-spacing-unit",colors:{border:{base:"--DataGrid-t-color-border-base"},foreground:{base:"--DataGrid-t-color-foreground-base",muted:"--DataGrid-t-color-foreground-muted",accent:"--DataGrid-t-color-foreground-accent",disabled:"--DataGrid-t-color-foreground-disabled",error:"--DataGrid-t-color-foreground-error"},background:{base:"--DataGrid-t-color-background-base",overlay:"--DataGrid-t-color-background-overlay",backdrop:"--DataGrid-t-color-background-backdrop"},interactive:{hover:"--DataGrid-t-color-interactive-hover",hoverOpacity:"--DataGrid-t-color-interactive-hover-opacity",focus:"--DataGrid-t-color-interactive-focus",focusOpacity:"--DataGrid-t-color-interactive-focus-opacity",disabled:"--DataGrid-t-color-interactive-disabled",disabledOpacity:"--DataGrid-t-color-interactive-disabled-opacity",selected:"--DataGrid-t-color-interactive-selected",selectedOpacity:"--DataGrid-t-color-interactive-selected-opacity"}},header:{background:{base:"--DataGrid-t-header-background-base"}},cell:{background:{pinned:"--DataGrid-t-cell-background-pinned"}},radius:{base:"--DataGrid-t-radius-base"},typography:{font:{body:"--DataGrid-t-typography-font-body",small:"--DataGrid-t-typography-font-small",large:"--DataGrid-t-typography-font-large"},fontFamily:{base:"--DataGrid-t-typography-font-family-base"},fontWeight:{light:"--DataGrid-t-typography-font-weight-light",regular:"--DataGrid-t-typography-font-weight-regular",medium:"--DataGrid-t-typography-font-weight-medium",bold:"--DataGrid-t-typography-font-weight-bold"}},transitions:{easing:{easeIn:"--DataGrid-t-transition-easing-ease-in",easeOut:"--DataGrid-t-transition-easing-ease-out",easeInOut:"--DataGrid-t-transition-easing-ease-in-out"},duration:{short:"--DataGrid-t-transition-duration-short",base:"--DataGrid-t-transition-duration-base",long:"--DataGrid-t-transition-duration-long"}},shadows:{base:"--DataGrid-t-shadow-base",overlay:"--DataGrid-t-shadow-overlay"},zIndex:{panel:"--DataGrid-t-z-index-panel",menu:"--DataGrid-t-z-index-menu"}},bG=LP(RP),Ee=w({breakpoints:NP,spacing:yG,transition:vG,keys:RP},bG);function yG(e,t,n,r){return e===void 0?Cr(1):t===void 0?Cr(e):n===void 0?Cr(e)+" "+Cr(t):r===void 0?Cr(e)+" "+Cr(t)+" "+Cr(n):Cr(e)+" "+Cr(t)+" "+Cr(n)+" "+Cr(r)}function Cr(e){return e===0?"0":`calc(var(--DataGrid-t-spacing-unit) * ${e})`}function vG(e,t){const{duration:n=Ee.transitions.duration.base,easing:r=Ee.transitions.easing.easeInOut,delay:s=0}=t??{};return e.map(i=>`${i} ${n} ${r} ${s}ms`).join(", ")}function LP(e){if(typeof e=="string")return`var(${e})`;const t={};for(const n in e)Object.hasOwn(e,n)&&(t[n]=LP(e[n]));return t}const CG=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange","slotProps"],wG=e=>{const{classes:t}=e;return pe({root:["editInputCell"]},Je,t)},SG=U(zo,{name:"MuiDataGrid",slot:"EditInputCell"})({font:Ee.typography.font.body,padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),$P=ze((e,t)=>{const n=Ie(),{id:r,value:s,field:i,colDef:a,hasFocus:l,debounceMs:c=200,isProcessingProps:u,onValueChange:d,slotProps:p}=e,g=ie(e,CG),h=Xe(),b=f.useRef(null),[m,y]=f.useState(s),C=wG(n),S=f.useCallback(async E=>{const P=E.target.value,M=h.current.getColumn(i);let D=P;M.valueParser&&(D=M.valueParser(P,h.current.getRow(r),M,h)),y(D),h.current.setEditCellValue({id:r,field:i,value:D,debounceMs:c,unstable_skipValueParser:!0},E),d&&await d(E,P)},[h,c,i,r,d]),x=h.current.unstable_getEditCellMeta(r,i);return f.useEffect(()=>{x?.changeReason!=="debouncedSetEditCellValue"&&y(s)},[x,s]),it(()=>{l&&b.current.focus()},[l]),v.jsx(SG,w({as:n.slots.baseInput,inputRef:b,className:C.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:m??"",onChange:S,endAdornment:u?v.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},g,p?.root,{ref:t}))});process.env.NODE_ENV!=="production"&&($P.displayName="GridEditInputCell");const AP=e=>v.jsx($P,w({},e));process.env.NODE_ENV!=="production"&&(AP.displayName="renderEditInputCell");const VP=(e,t)=>t&&e.length>1?(yn(["MUI X: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the Data Grid, this prop is always `true`."],"error"),[e[0]]):e,_P=(e,t)=>n=>w({},n,{sorting:w({},n.sorting,{sortModel:VP(e,t)})}),xG=e=>e==="desc",PG=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=xG(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator,r?{getSortCellParams:i=>({id:i,field:n.field,rowNode:St(t,i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}:null},EG=(e,t,n)=>e.reduce((r,s,i)=>{if(r!==0)return r;const a=t.params[i],l=n.params[i];return r=s.comparator(a.value,l.value,a,l),r},0),TG=(e,t)=>{const n=e.map(r=>PG(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(s=>({node:s,params:n.map(i=>i.getSortCellParams(s.id))})).sort((s,i)=>EG(n,s,i)).map(s=>s.node.id)},BP=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Fb=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,IG=new Intl.Collator,MG=(e,t)=>{const n=Fb(e,t);return n!==null?n:typeof e=="string"?IG.compare(e.toString(),t.toString()):e-t},HP=(e,t)=>{const n=Fb(e,t);return n!==null?n:Number(e)-Number(t)},zP=(e,t)=>{const n=Fb(e,t);return n!==null?n:e>t?1:e<t?-1:0},OG=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","slotProps","clearButton","headerFilterMenu"];function Qn(e){const{item:t,applyValue:n,type:r,apiRef:s,focusElementRef:i,tabIndex:a,disabled:l,slotProps:c,clearButton:u,headerFilterMenu:d}=e,p=ie(e,OG),g=c?.root,h=Pn(),[b,m]=f.useState(Nb(t.value)),[y,C]=f.useState(!1),S=at(),x=Ie(),E=f.useCallback(P=>{const M=Nb(P.target.value);m(M),C(!0),h.start(x.filterDebounceMs,()=>{const D=w({},t,{value:r==="number"&&!Number.isNaN(Number(M))?Number(M):M,fromInput:S});n(D),C(!1)})},[h,x.filterDebounceMs,t,r,S,n]);return f.useEffect(()=>{(t.fromInput!==S||t.value==null)&&m(Nb(t.value))},[S,t]),v.jsxs(f.Fragment,{children:[v.jsx(x.slots.baseTextField,w({id:S,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:b??"",onChange:E,type:r||"text",disabled:l,slotProps:w({},g?.slotProps,{input:w({endAdornment:y?v.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):null},g?.slotProps?.input),htmlInput:w({tabIndex:a},g?.slotProps?.htmlInput)}),inputRef:i},x.slotProps?.baseTextField,p,g)),d,u]})}function Nb(e){if(!(e==null||e===""))return String(e)}process.env.NODE_ENV!=="production"&&(Qn.propTypes={apiRef:o.shape({current:o.object.isRequired}).isRequired,applyValue:o.func.isRequired,className:o.string,clearButton:o.node,disabled:o.bool,focusElementRef:o.oneOfType([o.func,o.object]),headerFilterMenu:o.node,inputRef:o.oneOfType([o.func,o.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:o.bool,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}).isRequired,onBlur:o.func,onFocus:o.func,slotProps:o.object,tabIndex:o.number,type:o.oneOf(["date","datetime-local","number","text"])});function Rb(e){return typeof e=="number"&&!Number.isNaN(e)}function kG(e){return typeof e=="function"}function Lb(e){return typeof e=="object"&&e!==null}function DG(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function Up(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Fi=(e,t,n)=>Math.max(t,Math.min(n,e));function FG(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function NG(e){const t=FG(e);return(n,r)=>n+(r-n)*t()}function jP(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const vn=(e,t)=>(...n)=>{e&&t(...n)},RG=["item","applyValue","type","apiRef","focusElementRef","slotProps"];function $b(e){const{item:t,applyValue:n,type:r,apiRef:s,focusElementRef:i,slotProps:a}=e,l=ie(e,RG),c=at(),[u,d]=f.useState([]),[p,g]=f.useState(t.value||[]),h=Ie();f.useEffect(()=>{const C=t.value??[];g(C.map(String))},[t.value]);const b=f.useCallback((C,S)=>{g(S.map(String)),n(w({},t,{value:[...S.map(x=>r==="number"?Number(x):x)]}))},[n,t,r]),m=f.useCallback((C,S)=>{d(S===""?[]:[S])},[d]),y=h.slots.baseAutocomplete;return v.jsx(y,w({multiple:!0,freeSolo:!0,options:u,id:c,value:p,onChange:b,onInputChange:m,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:i}}},l,a?.root))}process.env.NODE_ENV!=="production"&&($b.propTypes={apiRef:o.shape({current:o.object.isRequired}).isRequired,applyValue:o.func.isRequired,className:o.string,clearButton:o.node,disabled:o.bool,focusElementRef:o.oneOfType([o.func,o.object]),headerFilterMenu:o.node,inputRef:o.oneOfType([o.func,o.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:o.bool,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}).isRequired,onBlur:o.func,onFocus:o.func,slotProps:o.object,tabIndex:o.number,type:o.oneOf(["date","datetime-local","number","text"])});var zr=(function(e){return e.Cell="cell",e.Row="row",e})(zr||{}),Nt=(function(e){return e.Edit="edit",e.View="view",e})(Nt||{}),rn=(function(e){return e.Edit="edit",e.View="view",e})(rn||{}),po=(function(e){return e.And="and",e.Or="or",e})(po||{});class LG{constructor(t){this.data=t.ids}has(t){return this.data.has(t)}select(t){this.data.add(t)}unselect(t){this.data.delete(t)}}class $G{constructor(t){this.data=t.ids}has(t){return!this.data.has(t)}select(t){this.data.delete(t)}unselect(t){this.data.add(t)}}const $s=e=>e.type==="include"?new LG(e):new $G(e);var is=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e})(is||{}),wr=(function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(wr||{}),as=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e})(as||{}),jr=(function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(jr||{});function GP(e){return e.field!==void 0}const qp={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},zc=()=>({items:[],logicOperator:po.And,quickFilterValues:[],quickFilterLogicOperator:po.And});function WP(e){return{current:e.current.getPublicApi()}}let Mn=(function(e){return e.LEFT="left",e.RIGHT="right",e})({});const Yp={left:[],right:[]},UP=Ht(e=>e.props.listView??!1),qP=Ht(e=>e.listViewColumn),Sr=Ht(e=>e.columns),lr=De(Sr,e=>e.orderedFields),Gr=De(Sr,e=>e.lookup),jo=Pt(lr,Gr,(e,t)=>e.map(n=>t[n])),Go=De(Sr,e=>e.columnVisibilityModel),AG=De(Sr,e=>e.initialColumnVisibilityModel),ln=Pt(jo,Go,UP,qP,(e,t,n,r)=>n&&r?[r]:e.filter(s=>t[s.field]!==!1)),ja=Pt(ln,e=>e.map(t=>t.field)),Ni=Ht(e=>e.pinnedColumns),VG=Pt(Ni,lr,(e,t)=>YP(e,t)),Ga=Pt(Sr,Ni,ja,UP,(e,t,n,r)=>{if(r)return Yp;const s=YP(t,n);return{left:s.left.map(a=>e.lookup[a]),right:s.right.map(a=>e.lookup[a])}});function YP(e,t){if(!Array.isArray(e.left)&&!Array.isArray(e.right)||e.left?.length===0&&e.right?.length===0)return Yp;const n=(a,l)=>Array.isArray(a)?a.filter(c=>l.includes(c)):[],r=n(e.left,t),s=t.filter(a=>!r.includes(a)),i=n(e.right,s);return{left:r,right:i}}const As=Pt(ln,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),KP=Pt(jo,e=>e.filter(t=>t.filterable)),XP=Pt(jo,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),_G=Pt(jo,e=>e.some(t=>t.colSpan!==void 0));let jc;function BG(){if(jc!==void 0)return jc;try{jc=new Function("return true")()}catch{jc=!1}return jc}const Ab=(e,t)=>{const n=w({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Gr(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},Vb=(e,t,n)=>{const r=e.items.length>1;let s;r&&t?(yn(["MUI X: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the Data Grid, this prop is always `true`."],"error"),s=[e.items[0]]):s=e.items;const i=r&&s.some(l=>l.id==null),a=s.some(l=>l.operator==null);return i&&yn("MUI X: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),a&&yn("MUI X: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),a||i?w({},e,{items:s.map(l=>Ab(l,n))}):e.items!==s?w({},e,{items:s}):e},ZP=(e,t,n)=>r=>w({},r,{filterModel:Vb(e,t,n)}),Gc=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,QP=(e,t,n)=>{if(!e.field||!e.operator)return null;const r=n.current.getColumn(e.field);if(!r)return null;let s;if(r.valueParser){const p=r.valueParser;s=Array.isArray(e.value)?e.value?.map(g=>p(g,void 0,r,n)):p(e.value,void 0,r,n)}else s=e.value;const{ignoreDiacritics:i}=n.current.rootProps;i&&(s=Gc(s));const a=w({},e,{value:s}),l=r.filterOperators;if(!l?.length)throw new Error(`MUI X: No filter operators found for column '${r.field}'.`);const c=l.find(p=>p.value===a.operator);if(!c)throw new Error(`MUI X: No filter operator found for column '${r.field}' and operator value '${a.operator}'.`);const u=WP(n),d=c.getApplyFilterFn(a,r);return typeof d!="function"?null:{item:a,fn:p=>{let g=t(p,r);return i&&(g=Gc(g)),d(g,p,r,u)}}};let JP=1;const HG=(e,t,n,r)=>{const{items:s}=e,i=s.map(c=>QP(c,t,n)).filter(c=>!!c);if(i.length===0)return null;if(r||!BG())return(c,u)=>{const d={};for(let p=0;p<i.length;p+=1){const g=i[p];(!u||u(g.item.field))&&(d[g.item.id]=g.fn(c))}return d};const a=new Function("appliers","row","shouldApplyFilter",`"use strict";
319
+ ${i.map((c,u)=>`const shouldApply${u} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(c.item.field)});`).join(`
320
+ `)}
321
+
322
+ const result$$ = {
323
+ ${i.map((c,u)=>` ${JSON.stringify(String(c.item.id))}: !shouldApply${u} ? false : appliers[${u}].fn(row),`).join(`
324
+ `)}
325
+ };
326
+
327
+ return result$$;`.replaceAll("$$",String(JP)));return JP+=1,(c,u)=>a(i,c,u)},eE=e=>e.quickFilterExcludeHiddenColumns??!0,zG=(e,t,n)=>{const r=e.quickFilterValues?.filter(Boolean)??[];if(r.length===0)return null;const s=lr(n),i=Go(n);let a;eE(e)?a=s.filter(d=>i[d]!==!1):a=s;const l=[],{ignoreDiacritics:c}=n.current.rootProps,u=WP(n);return a.forEach(d=>{const p=n.current.getColumn(d),g=p?.getApplyQuickFilterFn;g&&l.push({column:p,appliers:r.map(h=>{const b=c?Gc(h):h;return{fn:g(b,p,u)}})})}),function(p,g){const h={};e:for(let b=0;b<r.length;b+=1){const m=r[b];for(let y=0;y<l.length;y+=1){const{column:C,appliers:S}=l[y],{field:x}=C;if(g&&!g(x))continue;const E=S[b];let P=t(p,C);if(E.fn===null)continue;if(c&&(P=Gc(P)),E.fn(P,p,C,u)){h[m]=!0;continue e}}h[m]=!1}return h}},jG=(e,t,n,r)=>{const s=HG(e,t,n,r),i=zG(e,t,n);return function(l,c,u){u.passingFilterItems=s?.(l,c)??null,u.passingQuickFilterValues=i?.(l,c)??null}},tE=e=>e!=null,GG=(e,t,n,r)=>(e.cleanedFilterItems||(e.cleanedFilterItems=r.filter(s=>QP(s,t,n)!==null)),e.cleanedFilterItems),nE=(e,t,n,r,s,i)=>{const a=GG(i,r,s,n.items),l=e.filter(tE),c=t.filter(tE);if(l.length>0){const u=p=>l.some(g=>g[p.id]);if((n.logicOperator??zc().logicOperator)===po.And){if(!a.every(u))return!1}else if(!a.some(u))return!1}if(c.length>0&&n.quickFilterValues!=null){const u=p=>c.some(g=>g[p]);if((n.quickFilterLogicOperator??zc().quickFilterLogicOperator)===po.And){if(!n.quickFilterValues.every(u))return!1}else if(!n.quickFilterValues.some(u))return!1}return!0},WG=e=>{if(!e)return null;const t=new RegExp(Up(e),"i");return(n,r,s,i)=>{let a=i.current.getRowFormattedValue(r,s);return i.current.ignoreDiacritics&&(a=Gc(a)),a!=null?t.test(a.toString()):!1}},oE=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),s=new RegExp(Up(r),"i");return i=>{if(i==null)return t;const a=s.test(String(i));return t?!a:a}},rE=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),s=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return i=>{if(i==null)return t;const a=s.compare(r,i.toString())===0;return t?!a:a}},sE=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},fo={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,chartable:!0,editable:!1,sortComparator:MG,type:"string",align:"left",filterOperators:((e=!1)=>[{value:"contains",getApplyFilterFn:oE(e,!1),InputComponent:Qn},{value:"doesNotContain",getApplyFilterFn:oE(e,!0),InputComponent:Qn},{value:"equals",getApplyFilterFn:rE(e,!1),InputComponent:Qn},{value:"doesNotEqual",getApplyFilterFn:rE(e,!0),InputComponent:Qn},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Up(n)}.*$`,"i");return s=>s!=null?r.test(s.toString()):!1},InputComponent:Qn},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Up(n)}$`,"i");return s=>s!=null?r.test(s.toString()):!1},InputComponent:Qn},{value:"isEmpty",getApplyFilterFn:sE(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:sE(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(s=>s.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return s=>s!=null?n.some(i=>r.compare(i,s.toString()||"")===0):!1},InputComponent:$b}])(),renderEditCell:AP,getApplyQuickFilterFn:WG};function _b(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const Ri=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",UG=e=>!!e.key,iE=e=>e==="Tab"||e==="Escape";function Bb(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function qG(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const Hb=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(Hb.displayName="GridConfigurationContext");const Kp=()=>{const e=f.useContext(Hb);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
328
+ `));return e},YG="MuiDataGridVariables",Xp=f.createContext({className:"unset",tag:v.jsx("style",{href:"/unset"})});process.env.NODE_ENV!=="production"&&(Xp.displayName="CSSVariablesContext");function aE(){return f.useContext(Xp).className}function KG(){return f.useContext(Xp)}function XG(e){const t=Kp(),n=Ie(),r=t.hooks.useCSSVariables(),s=f.useMemo(()=>{const i=`${YG}-${r.id}`,a=`.${i}{${ZG(r.variables)}}`,l=v.jsx("style",{href:`/${i}`,nonce:n.nonce,children:a});return{className:i,tag:l}},[n.nonce,r]);return v.jsx(Xp.Provider,{value:s,children:e.children})}function ZG(e){let t="";for(const n in e)Object.hasOwn(e,n)&&e[n]!==void 0&&(t+=`${n}:${e[n]};`);return t}const QG=["open","target","onClose","children","position","className","onExited"],JG=e=>{const{classes:t}=e;return pe({root:["menu"]},Je,t)},eW=U(zo,{name:"MuiDataGrid",slot:"Menu"})({zIndex:Ee.zIndex.menu,[`& .${Z.menuList}`]:{outline:0}});function Wa(e){const{open:t,target:n,onClose:r,children:s,position:i,className:a,onExited:l}=e,c=ie(e,QG),u=Xe(),d=Ie(),p=JG(d),g=aE(),h=f.useRef(null);it(()=>{t?h.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(h.current?.focus?.(),h.current=null)},[t]),f.useEffect(()=>{const y=t?"menuOpen":"menuClose";u.current.publishEvent(y,{target:n})},[u,t,n]);const b=y=>{y.target&&(n===y.target||n?.contains(y.target))||r(y)},m=y=>{iE(y.key)&&r(y)};return v.jsx(eW,w({as:d.slots.basePopper,className:se(p.root,a,g),ownerState:d,open:t,target:n,transition:!0,placement:i,onClickAway:b,onExited:l,clickAwayMouseEvent:"onMouseDown",onKeyDown:m},c,d.slotProps?.basePopper,{children:s}))}process.env.NODE_ENV!=="production"&&(Wa.propTypes={children:o.node,className:o.string,onClose:o.func.isRequired,onExited:o.func,open:o.bool.isRequired,position:o.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),target:er});const tW=["label","icon","showInMenu","onClick"],nW=["label","icon","showInMenu","onClick","closeMenuOnClick","closeMenu"],lE=ze((e,t)=>{const n=Ie();if(!e.showInMenu){const{label:d,icon:p,onClick:g}=e,h=ie(e,tW),b=m=>{g?.(m)};return v.jsx(n.slots.baseIconButton,w({size:"small",role:"menuitem","aria-label":d},h,{onClick:b},n.slotProps?.baseIconButton,{ref:t,children:f.cloneElement(p,{fontSize:"small"})}))}const{label:r,icon:s,onClick:i,closeMenuOnClick:a=!0,closeMenu:l}=e,c=ie(e,nW),u=d=>{i?.(d),a&&l?.()};return v.jsx(n.slots.baseMenuItem,w({ref:t},c,{onClick:u,iconStart:s,children:r}))});process.env.NODE_ENV!=="production"&&(lE.displayName="GridActionsCellItem");const oW=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","onMenuOpen","onMenuClose","children","suppressChildrenValidation"],rW=e=>typeof e.getActions=="function";function cE(e){const{id:t,hasFocus:n,tabIndex:r,position:s="bottom-end",onMenuOpen:i,onMenuClose:a,children:l,suppressChildrenValidation:c}=e,u=ie(e,oW),[d,p]=f.useState(-1),[g,h]=f.useState(!1),b=Xe(),m=f.useRef(null),y=f.useRef(null),C=f.useRef(!1),S=f.useRef({}),x=_t(),E=at(),P=at(),M=Ie(),D=b.current.getRowParams(t),O=[];f.Children.forEach(l,$=>{if(f.isValidElement($))if($.type===f.Fragment)f.Children.forEach($.props.children,V=>{f.isValidElement(V)&&O.push(V)});else if($.type===lE||c)O.push($);else{const V=typeof $.type=="function"?$.type.name:$.type;yn(`MUI X: Invalid child type in \`GridActionsCell\`. Expected \`GridActionsCellItem\` or \`React.Fragment\`, got \`${V}\`.
329
+ If this is intentional, you can suppress this warning by passing the \`suppressChildrenValidation\` prop to \`GridActionsCell\`.`,"error")}});const k=O.filter($=>!$.props.showInMenu),I=O.filter($=>$.props.showInMenu),F=k.length+(I.length?1:0);f.useLayoutEffect(()=>{n||Object.entries(S.current).forEach(([$,V])=>{V?.stop({},()=>{delete S.current[$]})})},[n]),f.useEffect(()=>{if(d<0||!m.current||d>=m.current.children.length)return;m.current.children[d].focus({preventScroll:!0})},[d]);const T=O.findIndex($=>!$.props.disabled);f.useEffect(()=>{n&&d===-1&&p(T),n||(p(-1),C.current=!1)},[n,d,T]),f.useEffect(()=>{d>=F&&p(F-1)},[d,F]);const R=$=>{i&&!i(D,$)||(h(!0),p(F-1),C.current=!0)},A=$=>{a&&!a(D,$)||h(!1)},L=$=>{$.stopPropagation(),$.preventDefault(),g?A($):R($)},N=$=>V=>{S.current[$]=V},_=($,V)=>z=>{p($),C.current=!0,V&&V(z)},H=$=>{if(F<=1)return;const V=(j,G)=>{if(j<0||j>O.length)return j;const q=(G==="left"?-1:1)*(x?-1:1);return O[j+q]?.props.disabled?V(j+q,G):j+q};let z=d;$.key==="ArrowRight"?z=V(d,"right"):$.key==="ArrowLeft"&&(z=V(d,"left")),!(z<0||z>=F)&&z!==d&&($.preventDefault(),$.stopPropagation(),p(z))},B=F>0?{role:"menu",onKeyDown:H}:void 0;return v.jsxs("div",w({ref:m,tabIndex:-1,className:Z.actionsCell},B,u,{children:[k.map(($,V)=>f.cloneElement($,{key:V,touchRippleRef:N(V),onClick:_(V,$.props.onClick),tabIndex:d===V?r:-1})),I.length>0&&P&&v.jsx(M.slots.baseIconButton,w({ref:y,id:P,"aria-label":b.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?E:void 0,role:"menuitem",size:"small",onClick:L,touchRippleRef:N(P),tabIndex:d===k.length?r:-1},M.slotProps?.baseIconButton,{children:v.jsx(M.slots.moreActionsIcon,{fontSize:"small"})})),I.length>0&&v.jsx(Wa,{open:g,target:y.current,position:s,onClose:A,children:v.jsx(M.slots.baseMenuList,{id:E,className:Z.menuList,"aria-labelledby":P,autoFocusItem:!0,children:I.map(($,V)=>f.cloneElement($,{key:V,closeMenu:A}))})})]}))}process.env.NODE_ENV!=="production"&&(cE.propTypes={api:o.object,cellMode:o.oneOf(["edit","view"]).isRequired,children:o.node.isRequired,colDef:o.object.isRequired,field:o.string.isRequired,formattedValue:o.any,hasFocus:o.bool.isRequired,id:o.oneOfType([o.number,o.string]).isRequired,isEditable:o.bool,position:o.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),row:o.any.isRequired,rowNode:o.object.isRequired,tabIndex:o.oneOf([-1,0]).isRequired,value:o.any});function sW(e){const{colDef:t,id:n}=e,r=Xe();if(!rW(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const s=t.getActions(r.current.getRowParams(n));return v.jsx(cE,w({suppressChildrenValidation:!0},e,{children:s}))}const uE=e=>v.jsx(sW,w({},e));process.env.NODE_ENV!=="production"&&(uE.displayName="renderActionsCell");const Zp="actions",iW=w({},fo,{sortable:!1,filterable:!1,aggregable:!1,chartable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:uE,getApplyQuickFilterFn:()=>null}),zb="__tree_data_group__",dE="__row_group_by_columns_group__",oo="__detail_panel_toggle__";let pt=(function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e})({});const aW=["formattedValue","colDef","cellMode","row","api","id","value","rowNode","field","hasFocus","tabIndex","isEditable"],lW=U("div",{name:"MuiDataGrid",slot:"FooterCell"})({fontWeight:Ee.typography.fontWeight.medium,color:Ee.colors.foreground.accent}),cW=e=>{const{classes:t}=e;return pe({root:["footerCell"]},Je,t)};function uW(e){const{formattedValue:t}=e,n=ie(e,aW),s={classes:Ie().classes},i=cW(s);return v.jsx(lW,w({ownerState:s,className:i.root},n,{children:t}))}const pE=f.memo(uW);process.env.NODE_ENV!=="production"&&(pE.displayName="GridFooterCell");const dW=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],pW=e=>{const{classes:t}=e;return pe({root:["booleanCell"]},Je,t)};function fE(e){const{value:t,rowNode:n}=e,r=ie(e,dW),s=Xe(),i=Ie(),a={classes:i.classes},l=pW(a),u=ue(s,Ls)>0&&n.type==="group"&&i.treeData===!1,d=f.useMemo(()=>t?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon,[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,t]);return u&&t===void 0?null:v.jsx(d,w({fontSize:"small",className:l.root,titleAccess:s.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}process.env.NODE_ENV!=="production"&&(fE.propTypes={api:o.object.isRequired,cellMode:o.oneOf(["edit","view"]).isRequired,colDef:o.object.isRequired,field:o.string.isRequired,formattedValue:o.any,hasFocus:o.bool.isRequired,hideDescendantCount:o.bool,id:o.oneOfType([o.number,o.string]).isRequired,isEditable:o.bool,row:o.any.isRequired,rowNode:o.object.isRequired,tabIndex:o.oneOf([-1,0]).isRequired,value:o.any});const hE=f.memo(fE);process.env.NODE_ENV!=="production"&&(hE.displayName="GridBooleanCell");const gE=e=>{if(e.field!==dE&&Ha(e.rowNode)){const t=e.aggregation;return t?t.position==="footer"?v.jsx(pE,w({},e)):e.formattedValue:""}return v.jsx(hE,w({},e))};process.env.NODE_ENV!=="production"&&(gE.displayName="renderBooleanCell");const fW=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],hW=e=>{const{classes:t}=e;return pe({root:["editBooleanCell"]},Je,t)};function mE(e){const{id:t,value:n,field:r,className:s,hasFocus:i,onValueChange:a}=e,l=ie(e,fW),c=Xe(),u=f.useRef(null),d=at(),[p,g]=f.useState(n),h=Ie(),b={classes:h.classes},m=hW(b),y=f.useCallback(async C=>{const S=C.target.checked;a&&await a(C,S),g(S),await c.current.setEditCellValue({id:t,field:r,value:S},C)},[c,r,t,a]);return f.useEffect(()=>{g(n)},[n]),it(()=>{i&&u.current.focus()},[i]),v.jsx("label",w({htmlFor:d,className:se(m.root,s)},l,{children:v.jsx(h.slots.baseCheckbox,w({id:d,inputRef:u,checked:!!p,onChange:y,size:"small"},h.slotProps?.baseCheckbox))}))}process.env.NODE_ENV!=="production"&&(mE.propTypes={api:o.object.isRequired,cellMode:o.oneOf(["edit","view"]).isRequired,changeReason:o.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:o.object.isRequired,field:o.string.isRequired,formattedValue:o.any,hasFocus:o.bool.isRequired,id:o.oneOfType([o.number,o.string]).isRequired,isEditable:o.bool,isProcessingProps:o.bool,isValidating:o.bool,onValueChange:o.func,row:o.any.isRequired,rowNode:o.object.isRequired,tabIndex:o.oneOf([-1,0]).isRequired,value:o.any});const bE=e=>v.jsx(mE,w({},e));process.env.NODE_ENV!=="production"&&(bE.displayName="renderEditBooleanCell");const gW=["item","applyValue","apiRef","focusElementRef","isFilterActive","headerFilterMenu","clearButton","tabIndex","slotProps"];function jb(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:s,headerFilterMenu:i,clearButton:a,tabIndex:l,slotProps:c}=e,u=ie(e,gW),[d,p]=f.useState(Qp(t.value)),g=Ie(),h=at(),b=at(),m=g.slotProps?.baseSelect||{},y=m.native??!1,C=g.slotProps?.baseSelectOption||{},S=f.useCallback(P=>{const M=Qp(P.target.value);p(M),n(w({},t,{value:M}))},[n,t]);f.useEffect(()=>{p(Qp(t.value))},[t.value]);const x=c?.root.label??r.current.getLocaleText("filterPanelInputLabel"),E=c?.root.slotProps;return v.jsxs(f.Fragment,{children:[v.jsxs(g.slots.baseSelect,w({fullWidth:!0,labelId:h,id:b,label:x,value:d===void 0?"":String(d),onChange:S,native:y,slotProps:{htmlInput:w({ref:s,tabIndex:l},E?.htmlInput)}},m,u,c?.root,{children:[v.jsx(g.slots.baseSelectOption,w({},C,{native:y,value:"",children:r.current.getLocaleText("filterValueAny")})),v.jsx(g.slots.baseSelectOption,w({},C,{native:y,value:"true",children:r.current.getLocaleText("filterValueTrue")})),v.jsx(g.slots.baseSelectOption,w({},C,{native:y,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]})),i,a]})}function Qp(e){if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1}process.env.NODE_ENV!=="production"&&(jb.propTypes={apiRef:o.shape({current:o.object.isRequired}).isRequired,applyValue:o.func.isRequired,className:o.string,clearButton:o.node,disabled:o.bool,focusElementRef:Ft,headerFilterMenu:o.node,inputRef:o.oneOfType([o.func,o.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:o.bool,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}).isRequired,onBlur:o.func,onFocus:o.func,slotProps:o.object,tabIndex:o.number});const mW=()=>[{value:"is",getApplyFilterFn:e=>{const t=Qp(e.value);return t===void 0?null:n=>!!n===t},InputComponent:jb}],bW=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),yW=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},yE=w({},fo,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:gE,renderEditCell:bE,sortComparator:HP,valueFormatter:bW,filterOperators:mW(),getApplyQuickFilterFn:()=>null,chartable:!1,pastedValueParser:e=>yW(e)});function Jp(e){for(const t in e)return!1;return!0}const vE=Ht(e=>e.sorting),Wc=De(vE,e=>e.sortedRows),Gb=Pt(Wc,qn,ct,(e,t,n)=>e.reduce((r,s)=>{const i=t[s];if(i)r.push({id:s,model:i});else{const a=n[s];a&&Ha(a)&&r.push({id:s,model:{[Di]:s}})}return r},[])),Bn=De(vE,e=>e.sortModel),vW=Pt(Bn,e=>e.reduce((n,r,s)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?s+1:void 0},n),{}));Pt(Wc,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const ef=Ht(e=>e.filter),cn=De(ef,e=>e.filterModel),CE=De(cn,e=>e.quickFilterValues),CW=Ht(e=>e.visibleRowsLookup),Ua=De(ef,e=>e.filteredRowsLookup),wW=De(ef,e=>e.filteredChildrenCountLookup),SW=De(ef,e=>e.filteredDescendantCountLookup),Li=Pt(CW,Gb,(e,t)=>Jp(e)?t:t.filter(n=>e[n.id]!==!1)),Wr=Pt(Li,e=>e.map(t=>t.id)),Wb=Pt(Ua,Gb,(e,t)=>Jp(e)?t:t.filter(n=>e[n.id]!==!1)),Ub=Pt(Wb,e=>e.map(t=>t.id)),xW=Pt(Wr,ct,(e,t)=>{const n={};let r=0;return e.reduce((s,i)=>{const a=t[i];return n[a.depth]||(n[a.depth]=0),a.depth>r&&(n[a.depth]=0),r=a.depth,n[a.depth]+=1,s[i]=n[a.depth],s},{})}),PW=Pt(Wb,ct,Ls,(e,t,n)=>n<2?[e]:e.reduce((r,s)=>{const i=t[s.id]?.depth;return i===void 0||(r[i]||(r[i]=[]),r[i].push(s)),r},[[]])),wE=De(PW,e=>e[0]??[]),qb=De(Li,e=>e.length),qa=De(wE,e=>e.length),SE=De(Wb,e=>e.length);De(SE,qa,(e,t)=>e-t);const Yb=Pt(cn,Gr,(e,t)=>e.items?.filter(n=>{if(!n.field)return!1;const r=t[n.field];if(!r?.filterOperators||r?.filterOperators?.length===0)return!1;const s=r.filterOperators.find(i=>i.value===n.operator);return s?!s.InputComponent||n.value!=null&&n.value?.toString()!=="":!1})),EW=Pt(Yb,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),$i=Pt(Wr,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null))),xr=Ht(e=>e.rowSelection),Uc=Pt(xr,$s),tf=De(xr,SE,(e,t)=>e.type==="include"?e.ids.size:t-e.ids.size),xE=Pt(xr,qn,Oi,(e,t,n)=>{const r=new Map;if(e.type==="include")for(const s of e.ids)r.set(s,t[s]);else for(let s=0;s<n.length;s+=1){const i=n[s];e.ids.has(i)||r.set(i,t[i])}return r}),ho=Ht((e,t)=>Di in t?t[Di]:e.props.getRowId?e.props.getRowId(t):t.id),TW=Ht(e=>e.props.isRowSelectable),IW={parents:!0,descendants:!0};function PE(e,t){const n=ct(e),r=Wc(e),s=Ua(e),i=n[t];if(!i||i.type!=="group")return[];const a=[],l=r.findIndex(c=>c===t)+1;for(let c=l;c<r.length&&n[r[c]]?.depth>i.depth;c+=1){const u=r[c];s[u]!==!1&&e.current.isRowSelectable(u)&&a.push(u)}return a}const MW=De(jo,ct,Ua,Uc,qn,TW,(e,t,n,r,s,i,{groupId:a,autoSelectParents:l})=>{const c=t[a],u={id:a,row:s[a],columns:e};let d=!0;if(typeof i=="function"&&s[a]&&(d=i(u)),!c||c.type!=="group"||r.has(a))return{isIndeterminate:!1,isChecked:r.has(a),isSelectable:d};let p=!1,g=!1;const h=b=>{if(n[b]===!1||p&&g)return;const m=t[b];m?.type==="group"&&m.children.forEach(h);const y={id:b,row:s[b],columns:e};(!(typeof i=="function"&&s[b])||i(y))&&(r.has(b)?p=!0:g=!0)};return h(a),{isIndeterminate:p&&g,isChecked:l?p&&!g:!1,isSelectable:d}});function Kb(e){return e.signature===Mo.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const OW=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==Qe;){const s=e[r];if(!s)return n;n.push(r),r=s.parent}return n},kW=(e,t,n)=>{const r=e[n];if(!r)return[];const s=r.parent;return s==null?[]:e[s].children.filter(a=>a!==n&&t[a]!==!1)},qc=(e,t,n,r,s,i,a=Uc(e))=>{const l=Ua(e),c=new Set([]);if(!(!r&&!s||l[n]===!1)&&(r&&t[n]?.type==="group"&&PE(e,n).forEach(p=>{i(p),c.add(p)}),s)){const u=g=>{const h=t[g];return h?h.type!=="group"?e.current.isRowSelectable(g)?a.has(g)||c.has(g):!0:a.has(g)||c.has(g)?!0:h.children.every(u):!1},d=g=>{const h=kW(t,l,g),b=h.every(m=>e.current.isRowSelectable(m)?u(m):!0);if(h.length===0||b){const y=t[g]?.parent;y!=null&&y!==Qe&&e.current.isRowSelectable(y)&&(i(y),c.add(y),d(y))}},p=t[n];if(!p||p.parent===Qe)return;d(n)}},EE=(e,t,n,r,s,i)=>{const a=Uc(e);!s&&!r||(s&&OW(t,n).forEach(c=>{a.has(c)&&i(c)}),r&&t[n]?.type==="group"&&PE(e,n).forEach(u=>{i(u)}))},DW=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],FW=e=>{const{classes:t}=e;return pe({root:["checkboxInput"]},Je,t)},Xb=ze(function(t,n){const{field:r,id:s,rowNode:i,tabIndex:a}=t,l=ie(t,DW),c=Xe(),u=Ie(),d={classes:u.classes},p=FW(d),{isIndeterminate:g,isChecked:h,isSelectable:b}=ue(c,MW,{groupId:s,autoSelectParents:u.rowSelectionPropagation?.parents??!1},Db),m=!b,y=P=>{if(m)return;const M={value:P.target.checked,id:s};c.current.publishEvent("rowSelectionCheckboxChange",M,P)};f.useLayoutEffect(()=>{if(a===0&&!m){const P=c.current.getCellElement(s,r);P&&(P.tabIndex=-1)}},[c,a,s,r,m]);const C=fe(P=>{P.key===" "&&P.stopPropagation()}),S=fe(P=>{if(m){P.preventDefault();return}}),x=fe(()=>{});if(i.type==="footer"||i.type==="pinnedRow")return null;const E=c.current.getLocaleText(h&&!g?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return v.jsx(u.slots.baseCheckbox,w({tabIndex:m?-1:a,checked:h&&!g,onChange:y,onClick:S,onMouseDown:x,className:se(p.root,m&&"Mui-disabled"),disabled:m,material:{disableRipple:m},slotProps:{htmlInput:{"aria-disabled":m||void 0,"aria-label":E,name:"select_row"}},onKeyDown:C,indeterminate:g},u.slotProps?.baseCheckbox,l,{ref:n}))});process.env.NODE_ENV!=="production"&&(Xb.displayName="GridCellCheckboxForwardRef"),process.env.NODE_ENV!=="production"&&(Xb.propTypes={api:o.object.isRequired,cellMode:o.oneOf(["edit","view"]).isRequired,colDef:o.object.isRequired,field:o.string.isRequired,formattedValue:o.any,hasFocus:o.bool.isRequired,id:o.oneOfType([o.number,o.string]).isRequired,isEditable:o.bool,row:o.any.isRequired,rowNode:o.object.isRequired,tabIndex:o.oneOf([-1,0]).isRequired,value:o.any});const NW=Xb,nf=Ht(e=>e.focus),go=De(nf,e=>e.cell),RW=De(nf,e=>e.columnHeader),LW=De(nf,e=>e.columnHeaderFilter),of=De(nf,e=>e.columnGroupHeader),rf=Ht(e=>e.tabIndex),Zb=De(rf,e=>e.cell),TE=De(rf,e=>e.columnHeader),$W=De(rf,e=>e.columnHeaderFilter),AW=De(rf,e=>e.columnGroupHeader),VW=100,_W=e=>e?0:100,IE=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,ME=e=>({page:0,pageSize:e?0:100}),BW=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),OE=(e,t)=>{if(t===Mo.DataGrid&&e>VW)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
330
+ `))},HW=-1,Ya=Ht(e=>e.pagination),kE=De(Ya,e=>e.enabled&&e.paginationMode==="client"),fn=De(Ya,e=>e.paginationModel),Vs=De(Ya,e=>e.rowCount),Yc=De(Ya,e=>e.meta),zW=De(fn,e=>e.page),jW=De(fn,e=>e.pageSize),DE=De(fn,Vs,(e,t)=>IE(t,e.pageSize,e.page)),Qb=Pt(kE,fn,ct,Ls,Li,wE,(e,t,n,r,s,i)=>{if(!e||!s||s.length===0)return null;const a=i.length,l=Math.min(t.pageSize*t.page,a-1),c=t.pageSize===HW?a-1:Math.min(l+t.pageSize-1,a-1);if(l===-1||c===-1)return null;if(r<2)return{firstRowIndex:l,lastRowIndex:c};const u=i[l],d=c-l+1,p=s.findIndex(b=>b.id===u.id);let g=p,h=0;for(;g<s.length&&h<=d;){const b=s[g],m=n[b.id]?.depth;m===void 0?g+=1:((h<d||m>0)&&(g+=1),m===0&&(h+=1))}return{firstRowIndex:p,lastRowIndex:g-1}}),GW=Pt(Li,Qb,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),FE=Pt(Wr,Qb,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Ka=Pt(kE,Qb,GW,Li,(e,t,n,r)=>e?{rows:n,range:t,rowIdToIndexMap:n.reduce((s,i,a)=>(s.set(i.id,a),s),new Map)}:{rows:r,range:r.length===0?null:{firstRowIndex:0,lastRowIndex:r.length-1},rowIdToIndexMap:r.reduce((s,i,a)=>(s.set(i.id,a),s),new Map)}),WW=["field","colDef"],UW=e=>{const{classes:t}=e;return pe({root:["checkboxInput"]},Je,t)},Jb=ze(function(t,n){const r=ie(t,WW),[,s]=f.useState(!1),i=Xe(),a=Ie(),l={classes:a.classes},c=UW(l),u=ue(i,TE),d=ue(i,xr),p=ue(i,Wr),g=ue(i,FE),h=f.useMemo(()=>{const O=a.isRowSelectable;if(typeof O!="function"||d.type==="exclude")return d;const k={type:"include",ids:new Set};for(const I of d.ids)a.keepNonExistentRowsSelected&&k.ids.add(I),i.current.getRow(I)&&O(i.current.getRowParams(I))&&k.ids.add(I);return k},[i,a.isRowSelectable,a.keepNonExistentRowsSelected,d]),b=f.useMemo(()=>{const O=!a.pagination||!a.checkboxSelectionVisibleOnly||a.paginationMode==="server"?p:g,k=new Set;for(let I=0;I<O.length;I+=1){const F=O[I];i.current.getRow(F)&&i.current.isRowSelectable(F)&&k.add(F)}return k},[i,a.pagination,a.paginationMode,a.checkboxSelectionVisibleOnly,g,p]),m=f.useMemo(()=>{const O=$s(h);let k=0;for(const I of b)O.has(I)&&(k+=1);return k},[h,b]),y=f.useMemo(()=>{if(m===0)return!1;const O=$s(h);for(const k of b)if(!O.has(k))return!0;return!1},[m,h,b]),C=m>0,S=O=>{const k={value:O.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",k)},x=Kb(a),E=u!==null&&u.field===t.field&&x?0:-1;it(()=>{const O=i.current.getColumnHeaderElement(t.field);E===0&&O&&x&&(O.tabIndex=-1)},[E,i,t.field,x]);const P=f.useCallback(O=>{O.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!C})},[i,C]),M=f.useCallback(()=>{s(O=>!O)},[]);f.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",M),[i,M]);const D=i.current.getLocaleText(C&&!y?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return v.jsx(a.slots.baseCheckbox,w({indeterminate:y,checked:C&&!y,onChange:S,className:c.root,slotProps:{htmlInput:{"aria-label":D,name:"select_all_rows"}},tabIndex:E,onKeyDown:P,disabled:!x},a.slotProps?.baseCheckbox,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(Jb.displayName="GridHeaderCheckbox"),process.env.NODE_ENV!=="production"&&(Jb.propTypes={colDef:o.object.isRequired,field:o.string.isRequired});const Pr="__check__",Xa=w({},yE,{type:"custom",field:Pr,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,chartable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:()=>null,display:"flex",valueGetter:(e,t,n,r)=>{const s=ho(r,t);return r.current.isRowSelected(s)},rowSpanValueGetter:(e,t,n,r)=>ho(r,t),renderHeader:e=>v.jsx(Jb,w({},e)),renderCell:e=>v.jsx(NW,w({},e))}),qW=["item","applyValue","type","apiRef","focusElementRef","slotProps","isFilterActive","headerFilterMenu","clearButton","tabIndex","disabled"];function NE(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function ls(e){const{item:t,applyValue:n,type:r,apiRef:s,focusElementRef:i,slotProps:a,headerFilterMenu:l,clearButton:c,tabIndex:u,disabled:d}=e,p=ie(e,qW),g=a?.root.slotProps,h=Pn(),[b,m]=f.useState(()=>NE(t.value,r)),[y,C]=f.useState(!1),S=at(),x=Ie(),E=f.useCallback(P=>{h.clear();const M=P.target.value;m(M),C(!0),h.start(x.filterDebounceMs,()=>{const D=new Date(M);n(w({},t,{value:Number.isNaN(D.getTime())?void 0:D})),C(!1)})},[n,t,x.filterDebounceMs,h]);return f.useEffect(()=>{const P=NE(t.value,r);m(P)},[t.value,r]),v.jsxs(f.Fragment,{children:[v.jsx(x.slots.baseTextField,w({fullWidth:!0,id:S,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:b,onChange:E,type:r||"text",disabled:d,inputRef:i,slotProps:w({},g,{input:w({endAdornment:y?v.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):null},g?.input),htmlInput:w({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:u},g?.htmlInput)})},x.slotProps?.baseTextField,p,a?.root)),l,c]})}process.env.NODE_ENV!=="production"&&(ls.propTypes={apiRef:o.shape({current:o.object.isRequired}).isRequired,applyValue:o.func.isRequired,className:o.string,clearButton:o.node,disabled:o.bool,focusElementRef:o.oneOfType([o.func,o.object]),headerFilterMenu:o.node,inputRef:o.oneOfType([o.func,o.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:o.bool,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}).isRequired,onBlur:o.func,onFocus:o.func,slotProps:o.object,tabIndex:o.number,type:o.oneOf(["date","datetime-local"])});function Za(e,t,n,r){if(!e.value)return null;const s=new Date(e.value);n?s.setSeconds(0,0):(s.setMinutes(s.getMinutes()+s.getTimezoneOffset()),s.setHours(0,0,0,0));const i=s.getTime();return a=>{if(!a)return!1;if(r)return t(a.getTime(),i);const l=new Date(a);return n?l.setSeconds(0,0):l.setHours(0,0,0,0),t(l.getTime(),i)}}const RE=e=>[{value:"is",getApplyFilterFn:t=>Za(t,(n,r)=>n===r,e),InputComponent:ls,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>Za(t,(n,r)=>n!==r,e),InputComponent:ls,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>Za(t,(n,r)=>n>r,e,e),InputComponent:ls,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>Za(t,(n,r)=>n>=r,e,e),InputComponent:ls,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>Za(t,(n,r)=>n<r,e,!0),InputComponent:ls,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>Za(t,(n,r)=>n<=r,e,e),InputComponent:ls,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],YW=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange","slotProps"],KW=U(zo,{slot:"internal"})({fontSize:"inherit"}),XW=e=>{const{classes:t}=e;return pe({root:["editInputCell"]},Je,t)};function LE(e){const{id:t,value:n,field:r,colDef:s,hasFocus:i,onValueChange:a,slotProps:l}=e,c=ie(e,YW),u=s.type==="dateTime",d=Xe(),p=f.useRef(null),g=f.useMemo(()=>{let E;n==null?E=null:n instanceof Date?E=n:E=new Date((n??"").toString());let P;return E==null||Number.isNaN(E.getTime())?P="":P=new Date(E.getTime()-E.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:E,formatted:P}},[n,u]),[h,b]=f.useState(g),m=Ie(),y={classes:m.classes},C=XW(y),S=f.useCallback(E=>{if(E==="")return null;const[P,M]=E.split("T"),[D,O,k]=P.split("-"),I=new Date;if(I.setFullYear(Number(D),Number(O)-1,Number(k)),I.setHours(0,0,0,0),M){const[F,T]=M.split(":");I.setHours(Number(F),Number(T),0,0)}return I},[]),x=f.useCallback(async E=>{const P=E.target.value,M=S(P);a&&await a(E,M),b({parsed:M,formatted:P}),d.current.setEditCellValue({id:t,field:r,value:M},E)},[d,r,t,a,S]);return f.useEffect(()=>{b(E=>g.parsed!==E.parsed&&g.parsed?.getTime()!==E.parsed?.getTime()?g:E)},[g]),it(()=>{i&&p.current.focus()},[i]),v.jsx(KW,w({as:m.slots.baseInput,inputRef:p,fullWidth:!0,className:C.root,type:u?"datetime-local":"date",value:h.formatted,onChange:x},c,l?.root,{slotProps:{htmlInput:w({max:u?"9999-12-31T23:59":"9999-12-31"},l?.root?.slotProps?.htmlInput)}}))}process.env.NODE_ENV!=="production"&&(LE.propTypes={api:o.object.isRequired,cellMode:o.oneOf(["edit","view"]).isRequired,changeReason:o.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:o.object.isRequired,field:o.string.isRequired,formattedValue:o.any,hasFocus:o.bool.isRequired,id:o.oneOfType([o.number,o.string]).isRequired,isEditable:o.bool,isProcessingProps:o.bool,isValidating:o.bool,onValueChange:o.func,row:o.any.isRequired,rowNode:o.object.isRequired,slotProps:o.object,tabIndex:o.oneOf([-1,0]).isRequired,value:o.any});const ey=e=>v.jsx(LE,w({},e));process.env.NODE_ENV!=="production"&&(ey.displayName="renderEditDateCell");function $E({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
331
+ `))}const ZW=(e,t,n,r)=>{if(!e)return"";const s=ho(r,t);return SP(t)&&!(e instanceof Date)?e:($E({value:e,columnType:"date",rowId:s,field:n.field}),e.toLocaleDateString())},QW=(e,t,n,r)=>{if(!e)return"";const s=ho(r,t);return SP(t)&&!(e instanceof Date)?e:($E({value:e,columnType:"dateTime",rowId:s,field:n.field}),e.toLocaleString())},JW=w({},fo,{type:"date",sortComparator:zP,valueFormatter:ZW,filterOperators:RE(),renderEditCell:ey,pastedValueParser:e=>new Date(e)}),eU=w({},fo,{type:"dateTime",sortComparator:zP,valueFormatter:QW,filterOperators:RE(!0),renderEditCell:ey,pastedValueParser:e=>new Date(e)}),_s=e=>e==null?null:Number(e),tU=w({},fo,{type:"number",align:"right",headerAlign:"right",sortComparator:HP,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>Rb(e)?e.toLocaleString():e||"",filterOperators:[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>_s(t)===e.value,InputComponent:Qn,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>_s(t)!==e.value,InputComponent:Qn,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:_s(t)>e.value,InputComponent:Qn,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:_s(t)>=e.value,InputComponent:Qn,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:_s(t)<e.value,InputComponent:Qn,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:_s(t)<=e.value,InputComponent:Qn,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:$b,InputComponentProps:{type:"number"}}],getApplyQuickFilterFn:e=>e==null||Number.isNaN(e)||e===""?null:t=>_s(t)===_s(e)});function Kc(e){return e?.type==="singleSelect"}function Ai(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(w({field:e.field},t)):e.valueOptions}function sf(e,t,n){if(t===void 0)return;const r=t.find(s=>{const i=n(s);return String(i)===String(e)});return n(r)}const nU=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","slotProps"];function oU(e){return"key"in e&&!!e.key}function AE(e){const t=Ie(),{id:n,value:r,field:s,row:i,colDef:a,hasFocus:l,error:c,onValueChange:u,initialOpen:d=t.editMode===zr.Cell,slotProps:p}=e,g=ie(e,nU),h=Xe(),b=f.useRef(null),m=f.useRef(null),[y,C]=f.useState(d),x=(t.slotProps?.baseSelect||{}).native??!1;if(it(()=>{l&&m.current?.focus()},[l]),!Kc(a))return null;const E=Ai(a,{id:n,row:i});if(!E)return null;const P=a.getOptionValue,M=a.getOptionLabel,D=async I=>{if(!Kc(a)||!E)return;C(!1);const F=I.target,T=sf(F.value,E,P);u&&await u(I,T),await h.current.setEditCellValue({id:n,field:s,value:T},I)},O=(I,F)=>{if(t.editMode===zr.Row){C(!1);return}if(F==="backdropClick"||I.key==="Escape"){const T=h.current.getCellParams(n,s);h.current.publishEvent("cellEditStop",w({},T,{reason:I.key==="Escape"?wr.escapeKeyDown:wr.cellFocusOut}))}},k=I=>{oU(I)&&I.key==="Enter"||C(!0)};return!E||!a?null:v.jsx(t.slots.baseSelect,w({ref:b,value:r,onChange:D,open:y,onOpen:k,onClose:O,error:c,native:x,fullWidth:!0,slotProps:{htmlInput:{ref:m}}},g,p?.root,t.slotProps?.baseSelect,{children:E.map(I=>{const F=P(I);return he.createElement(t.slots.baseSelectOption,w({},t.slotProps?.baseSelectOption||{},{native:x,key:F,value:F}),M(I))})}))}process.env.NODE_ENV!=="production"&&(AE.propTypes={api:o.object.isRequired,cellMode:o.oneOf(["edit","view"]).isRequired,changeReason:o.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:o.object.isRequired,field:o.string.isRequired,formattedValue:o.any,hasFocus:o.bool.isRequired,id:o.oneOfType([o.number,o.string]).isRequired,initialOpen:o.bool,isEditable:o.bool,isProcessingProps:o.bool,isValidating:o.bool,onValueChange:o.func,row:o.any.isRequired,rowNode:o.object.isRequired,tabIndex:o.oneOf([-1,0]).isRequired,value:o.any});const VE=e=>v.jsx(AE,w({},e));process.env.NODE_ENV!=="production"&&(VE.displayName="renderEditSingleSelectCell");const rU=["item","applyValue","type","apiRef","focusElementRef","tabIndex","isFilterActive","clearButton","headerFilterMenu","slotProps"],sU=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:s,baseSelectOptionProps:i})=>["",...Ai(e)||[]].map(l=>{const c=r(l);let u=n(l);return u===""&&(u=" "),he.createElement(t,w({},i,{native:s,key:c,value:c}),u)});function af(e){const{item:t,applyValue:n,type:r,apiRef:s,focusElementRef:i,tabIndex:a,clearButton:l,headerFilterMenu:c,slotProps:u}=e,d=ie(e,rU),p=t.value??"",g=at(),h=at(),b=Ie(),m=b.slotProps?.baseSelect?.native??!1,y=s.current.getColumn(t.field),C=y.getOptionValue,S=y.getOptionLabel,x=f.useMemo(()=>Ai(y),[y]),E=f.useCallback(M=>{let D=M.target.value;D=sf(D,x,C),n(w({},t,{value:D}))},[x,C,n,t]);if(!y||!Kc(y))return null;const P=u?.root.label??s.current.getLocaleText("filterPanelInputLabel");return v.jsxs(f.Fragment,{children:[v.jsx(b.slots.baseSelect,w({fullWidth:!0,id:g,label:P,labelId:h,value:p,onChange:E,slotProps:{htmlInput:w({tabIndex:a,ref:i,type:r||"text",placeholder:u?.root.placeholder??s.current.getLocaleText("filterPanelInputPlaceholder")},u?.root.slotProps?.htmlInput)},native:m},b.slotProps?.baseSelect,d,u?.root,{children:sU({column:y,OptionComponent:b.slots.baseSelectOption,getOptionLabel:S,getOptionValue:C,isSelectNative:m,baseSelectOptionProps:b.slotProps?.baseSelectOption})})),c,l]})}process.env.NODE_ENV!=="production"&&(af.propTypes={apiRef:o.shape({current:o.object.isRequired}).isRequired,applyValue:o.func.isRequired,className:o.string,clearButton:o.node,disabled:o.bool,focusElementRef:o.oneOfType([o.func,o.object]),headerFilterMenu:o.node,inputRef:o.oneOfType([o.func,o.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:o.bool,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}).isRequired,onBlur:o.func,onFocus:o.func,slotProps:o.object,tabIndex:o.number,type:o.oneOf(["singleSelect"])});const iU=["item","applyValue","type","apiRef","focusElementRef","slotProps"];function _E(e){const{item:t,applyValue:n,type:r,apiRef:s,focusElementRef:i,slotProps:a}=e,l=ie(e,iU),c=at(),u=Ie(),d=s.current.getColumn(t.field),p=d.getOptionValue,g=d.getOptionLabel,h=f.useCallback((S,x)=>p(S)===p(x),[p]),b=f.useMemo(()=>Ai(d)||[],[d]),m=f.useMemo(()=>Array.isArray(t.value)?t.value.reduce((S,x)=>{const E=b.find(P=>p(P)===x);return E!=null&&S.push(E),S},[]):[],[p,t.value,b]),y=f.useCallback((S,x)=>{n(w({},t,{value:x.map(p)}))},[n,t,p]);if(!d||!Kc(d))return null;const C=u.slots.baseAutocomplete;return v.jsx(C,w({multiple:!0,options:b,isOptionEqualToValue:h,id:c,value:m,onChange:y,getOptionLabel:g,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:i}}},l,a?.root))}process.env.NODE_ENV!=="production"&&(_E.propTypes={apiRef:o.shape({current:o.object.isRequired}).isRequired,applyValue:o.func.isRequired,className:o.string,clearButton:o.node,disabled:o.bool,focusElementRef:o.oneOfType([o.func,o.object]),headerFilterMenu:o.node,inputRef:o.oneOfType([o.func,o.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:o.bool,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}).isRequired,onBlur:o.func,onFocus:o.func,slotProps:o.object,tabIndex:o.number,type:o.oneOf(["singleSelect"])});const Qa=e=>e==null||!Lb(e)?e:e.value,aU=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Qa(t)===Qa(e.value),InputComponent:af},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Qa(t)!==Qa(e.value),InputComponent:af},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Qa);return n=>t.includes(Qa(n))},InputComponent:_E}],lU=e=>typeof e[0]=="object",cU=w({},fo,{type:"singleSelect",getOptionLabel:e=>Lb(e)?e.label:String(e),getOptionValue:e=>Lb(e)?e.value:e,valueFormatter(e,t,n,r){const s=ho(r,t);if(!Kc(n))return"";const i=Ai(n,{id:s,row:t});if(e==null)return"";if(!i)return e;if(!lU(i))return n.getOptionLabel(e);const a=i.find(l=>n.getOptionValue(l)===e);return a?n.getOptionLabel(a):""},renderEditCell:VE,filterOperators:aU(),pastedValueParser:(e,t,n)=>{const r=n,s=Ai(r)||[],i=r.getOptionValue;if(s.find(l=>i(l)===e))return e}}),uU=e=>{const{classes:t}=e;return pe({root:["longTextCell"],content:["longTextCellContent"],expandButton:["longTextCellExpandButton"],collapseButton:["longTextCellCollapseButton"],popup:["longTextCellPopup"],popperContent:["longTextCellPopperContent"]},Je,t)},dU=U("div",{name:"MuiDataGrid",slot:"LongTextCell"})({display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"}),pU=U("div",{name:"MuiDataGrid",slot:"LongTextCellContent"})({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1}),fU=U("div",{name:"MuiDataGrid",slot:"LongTextCellPopperContent"})(({theme:e})=>w({},e.typography.body2,{letterSpacing:"normal",paddingBlock:15.5,paddingInline:9,maxHeight:156,overflow:"auto",whiteSpace:"pre-wrap",wordBreak:"break-word",width:"var(--_width)",border:`1px solid ${(e.vars||e).palette.divider}`,boxSizing:"border-box"})),BE=U("button",{name:"MuiDataGrid",slot:"LongTextCellCornerButton"})(({theme:e})=>({lineHeight:0,position:"absolute",bottom:1,right:0,border:"1px solid",color:(e.vars||e).palette.text.secondary,borderColor:(e.vars||e).palette.divider,backgroundColor:(e.vars||e).palette.background.paper,borderRadius:0,fontSize:"0.875rem",padding:2,"&:focus-visible":{outline:"none"},"&:hover":{backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary},[`&.${Z.longTextCellExpandButton}`]:{right:-9,opacity:0,[`.${Z.longTextCell}:hover &, .${Z.longTextCell}.Mui-focused &`]:{opacity:1}},[`&.${Z.longTextCellCollapseButton}`]:{bottom:2,right:2,border:"none"}})),hU=U(zo,{name:"MuiDataGrid",slot:"LongTextCellPopper"})(({theme:e})=>({zIndex:Ee.zIndex.menu,background:(e.vars||e).palette.background.paper,"&[data-popper-reference-hidden]":{visibility:"hidden",pointerEvents:"none"}}));function gU(e){const{id:t,value:n="",colDef:r,hasFocus:s,slotProps:i,renderContent:a}=e,l=`${t}-${r.field}-longtext-popup`,c=Ie(),u=Xe(),d=uU(c),p=ue(u,Eb),[g,h]=f.useState(!1),b=f.useRef(null),m=f.useRef(null);f.useEffect(()=>{s&&!g&&m.current&&m.current!==document.activeElement&&m.current.focus(),s||h(!1)},[s,g]);const y=E=>{E.detail!==0&&(E.stopPropagation(),h(!0))},C=E=>{E.key===" "&&!E.shiftKey&&(E.preventDefault(),E.stopPropagation(),h(P=>!P)),E.key==="Escape"&&g&&(E.stopPropagation(),h(!1))},S=()=>{h(!1)},x=E=>{E.stopPropagation(),h(!1),u.current.getCellElement(t,r.field)?.focus()};return v.jsxs(dU,w({ref:b},i?.root,{className:se(d.root,i?.root?.className,s&&"Mui-focused"),children:[v.jsx(pU,w({},i?.content,{className:se(d.content,i?.content?.className),children:n})),v.jsx(BE,w({ref:m,"aria-label":`${n}, ${u.current.getLocaleText("longTextCellExpandLabel")}`,"aria-haspopup":"dialog","aria-controls":g?l:void 0,"aria-expanded":g,"aria-keyshortcuts":"Space",tabIndex:0},i?.expandButton,{className:se(d.expandButton,i?.expandButton?.className),onClick:y,onKeyDown:C,children:v.jsx(c.slots.longTextCellExpandIcon,{fontSize:"inherit"})})),v.jsx(hU,w({id:l,role:"dialog","aria-label":r.headerName||r.field,as:c.slots.basePopper,ownerState:c,open:g,target:b.current,placement:"bottom-start",onClickAway:S,clickAwayMouseEvent:"onMouseDown",flip:!0,material:{container:b.current?.closest('[role="row"]'),modifiers:[{name:"offset",options:{offset:[-10,-p]}}]}},i?.popper,{className:se(d.popup,i?.popper?.className),children:v.jsxs(fU,w({tabIndex:-1,onKeyDown:E=>{E.key==="Escape"&&(E.stopPropagation(),h(!1),u.current.getCellElement(t,r.field)?.focus())}},i?.popperContent,{className:se(d.popperContent,i?.popperContent?.className),style:w({"--_width":`${r.computedWidth}px`},i?.popperContent?.style),children:[a?a(n):n,v.jsx(BE,w({"aria-label":u.current.getLocaleText("longTextCellCollapseLabel"),"aria-keyshortcuts":"Escape"},i?.collapseButton,{className:se(d.collapseButton,i?.collapseButton?.className),onClick:x,children:v.jsx(c.slots.longTextCellCollapseIcon,{fontSize:"inherit"})}))]}))}))]}))}const HE=e=>v.jsx(gU,w({},e));process.env.NODE_ENV!=="production"&&(HE.displayName="renderLongTextCell");const zE=e=>{const{classes:t}=e;return pe({root:["editLongTextCell"],value:["editLongTextCellValue"],popup:["editLongTextCellPopup"],popperContent:["editLongTextCellPopperContent"],textarea:["editLongTextCellTextarea"]},Je,t)},mU=U(zo,{name:"MuiDataGrid",slot:"EditLongTextCellTextarea"})(({theme:e})=>w({width:"100%",padding:0},e.typography.body2,{letterSpacing:"normal",outline:"none",background:"transparent",border:"none",resize:"vertical"})),bU=U("div",{name:"MuiDataGrid",slot:"EditLongTextCell"})({display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"}),yU=U("div",{name:"MuiDataGrid",slot:"EditLongTextCellValue"})({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",paddingInline:10}),vU=U(zo,{name:"MuiDataGrid",slot:"EditLongTextCellPopper"})(({theme:e})=>({zIndex:Ee.zIndex.menu,background:(e.vars||e).palette.background.paper,"&[data-popper-reference-hidden]":{opacity:0}})),CU=U("div",{name:"MuiDataGrid",slot:"EditLongTextCellPopperContent"})(({theme:e})=>w({},e.typography.body2,{letterSpacing:"normal",paddingBlock:15.5,paddingInline:9,height:"max-content",overflow:"auto",whiteSpace:"pre-wrap",wordBreak:"break-word",width:"var(--_width)",border:`1px solid ${(e.vars||e).palette.divider}`,boxShadow:(e.vars||e).shadows[4],boxSizing:"border-box"}));function wU(e){const{id:t,value:n,field:r,colDef:s,hasFocus:i,cellMode:a,slotProps:l}=e,c=Ie(),u=Xe(),d=zE(c),p=ue(u,Eb),[g,h]=f.useState(n),[b,m]=f.useState(null),y=u.current.unstable_getEditCellMeta(t,r),C=`${t}-${r}-longtext-edit-popup`,S=i&&!!b;return f.useEffect(()=>{y?.changeReason!=="debouncedSetEditCellValue"&&h(n)},[y,n]),v.jsxs(bU,w({tabIndex:a==="edit"&&c.editMode==="row"?0:void 0,ref:m,"aria-controls":S?C:void 0,"aria-expanded":S},l?.root,{className:se(d.root,l?.root?.className),children:[v.jsx(yU,w({},l?.value,{className:se(d.value,l?.value?.className),children:g})),v.jsx(vU,w({as:c.slots.basePopper,ownerState:c,id:C,role:"dialog","aria-label":s.headerName||r,open:S,target:b,placement:"bottom-start",flip:!0,material:{container:b?.closest('[role="row"]'),modifiers:[{name:"offset",options:{offset:[-1,-p]}}]}},l?.popper,{className:se(d.popup,l?.popper?.className),children:v.jsx(CU,w({},l?.popperContent,{className:se(d.popperContent,l?.popperContent?.className),style:{"--_width":`${s.computedWidth}px`},children:v.jsx(SU,w({},e,{valueState:g,setValueState:h}))}))}))]}))}function SU(e){const{id:t,field:n,colDef:r,debounceMs:s=200,onValueChange:i,valueState:a,setValueState:l,hasFocus:c,slotProps:u}=e,d=f.useRef(null),p=Xe(),g=Ie(),h=zE(g);it(()=>{if(c&&d.current){d.current.focus({preventScroll:!0});const y=d.current.value.length;d.current.setSelectionRange(y,y)}},[c]);const b=f.useCallback(async y=>{const C=y.target.value,S=p.current.getColumn(n);let x=C;S.valueParser&&(x=S.valueParser(C,p.current.getRow(t),S,p)),l(x),p.current.setEditCellValue({id:t,field:n,value:x,debounceMs:s,unstable_skipValueParser:!0},y),i&&await i(y,C)},[p,s,n,t,i,l]),m=f.useCallback(y=>{y.key==="Enter"&&y.shiftKey&&y.stopPropagation(),g.editMode==="cell"&&y.key==="Escape"&&p.current.stopCellEditMode({id:t,field:n,ignoreModifications:!0})},[p,n,t,g.editMode]);return v.jsx(mU,w({ref:d,as:g.slots.baseTextarea,ownerState:g,"aria-label":r.headerName||n,value:a??"",onChange:b,onKeyDown:m},u?.textarea,{className:se(h.textarea,u?.textarea?.className)}))}const jE=e=>v.jsx(wU,w({},e));process.env.NODE_ENV!=="production"&&(jE.displayName="renderEditLongTextCell");const xU=w({},fo,{type:"longText",display:"flex",renderCell:HE,renderEditCell:jE}),PU="string",EU=()=>({string:fo,number:tU,date:JW,dateTime:eU,boolean:yE,singleSelect:cU,[Zp]:iW,custom:fo,longText:xU}),ty=Ht(e=>e.headerFiltering),GE=De(ty,e=>e?.enabled??!1),WE=De(ty,e=>e.editing),ny=De(ty,e=>e.menuOpen),lf=Ht(e=>e.columnGrouping),UE=Pt(lf,e=>e?.unwrappedGroupingModel??{}),qE=Pt(lf,e=>e?.lookup??{}),TU=Pt(lf,e=>e?.headerStructure??[]),Xc=De(lf,e=>e?.maxDepth??0),YE=["maxWidth","minWidth","width","flex"],oy=EU();function IU({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),s={all:{},frozenFields:[],freeze:a=>{const l=s.all[a];l&&l.frozen!==!0&&(s.all[a].frozen=!0,s.frozenFields.push(a))}};function i(){if(s.frozenFields.length===r.size)return;const a={min:{},max:{}};let l=e,c=t,u=0;s.frozenFields.forEach(d=>{l-=s.all[d].computedWidth,c-=s.all[d].flex});for(let d=0;d<n.length;d+=1){const p=n[d];if(s.all[p.field]&&s.all[p.field].frozen===!0)continue;let h=l/c*p.flex;h<p.minWidth?(u+=p.minWidth-h,h=p.minWidth,a.min[p.field]=!0):h>p.maxWidth&&(u+=p.maxWidth-h,h=p.maxWidth,a.max[p.field]=!0),s.all[p.field]={frozen:!1,computedWidth:h,flex:p.flex}}u<0?Object.keys(a.max).forEach(d=>{s.freeze(d)}):u>0?Object.keys(a.min).forEach(d=>{s.freeze(d)}):n.forEach(({field:d})=>{s.freeze(d)}),i()}return i(),s.all}const ry=(e,t)=>{const n={};let r=0,s=0;const i=[];e.orderedFields.forEach(c=>{let u=e.lookup[c],d=0,p=!1;e.columnVisibilityModel[c]!==!1&&(u.flex&&u.flex>0?(r+=u.flex,p=!0):d=Fi(u.width||fo.width,u.minWidth||fo.minWidth,u.maxWidth||fo.maxWidth),s+=d),u.computedWidth!==d&&(u=w({},u,{computedWidth:d})),p&&i.push(u),n[c]=u});const a=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),l=Math.max(a-s,0);if(r>0&&a>0){const c=IU({initialFreeSpace:l,totalFlexUnits:r,flexColumns:i});Object.keys(c).forEach(u=>{n[u]=w({},n[u],{computedWidth:c[u].computedWidth})})}return w({},e,{lookup:n})},MU=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,s=Object.keys(r);if(s.length===0&&n.length===0)return e;const i={},a=[];for(let d=0;d<n.length;d+=1){const p=n[d];e.lookup[p]&&(i[p]=!0,a.push(p))}const l=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(d=>!i[d])],c=w({},e.lookup);for(let d=0;d<s.length;d+=1){const p=s[d],g=w({},c[p],{hasBeenResized:!0});Object.entries(r[p]).forEach(([h,b])=>{g[h]=b===-1?1/0:b}),c[p]=g}return w({},e,{orderedFields:l,lookup:c})};function sy(e){let t=oy[PU];return e&&oy[e]&&(t=oy[e]),t}const Ja=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=Go(e),keepOnlyColumnsToUpsert:s=!1,updateInitialVisibilityModel:i=!1})=>{const a=!e.current.state.columns;let l;if(a)l={orderedFields:[],lookup:{},columnVisibilityModel:r,initialColumnVisibilityModel:r};else{const p=Sr(e);l={orderedFields:s?[]:[...p.orderedFields],lookup:s?{}:w({},p.lookup),columnVisibilityModel:r,initialColumnVisibilityModel:i?r:p.initialColumnVisibilityModel}}const c={};if(s&&!a)for(const p in l.lookup)Object.prototype.hasOwnProperty.call(l.lookup,p)&&(c[p]=!1);t.forEach(p=>{const{field:g}=p;c[g]=!0;let h=l.lookup[g];h==null?(h=w({},sy(p.type),{field:g,hasBeenResized:!1}),l.orderedFields.push(g)):s&&l.orderedFields.push(g),h&&h.type!==p.type&&(h=w({},sy(p.type),{field:g}));let b=h.hasBeenResized;YE.forEach(C=>{p[C]!==void 0&&(b=!0,p[C]===-1&&(p[C]=1/0))});const m=w({},sy(p.type),{hasBeenResized:b,field:g});let y;for(y in p)p[y]!==void 0&&y!=="field"&&(m[y]=p[y]);l.lookup[g]=Zs(h,m)}),s&&!a&&Object.keys(l.lookup).forEach(p=>{c[p]||delete l.lookup[p]});const u=e.current.unstable_applyPipeProcessors("hydrateColumns",l),d=MU(u,n);return ry(d,e.current.getRootDimensions?.()??void 0)};function cf(e,t){if(t.listView)return 0;const n=Hc(e),r=Xc(e),s=GE(e),i=Math.floor(t.columnHeaderHeight*n),a=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*n),l=s?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*n):0;return i+a*r+l}const uf=1,KE=1.5,OU=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return pe(r,Je,n)},kU=U("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scrollArea,t[`scrollArea--${n.scrollDirection}`]]}})(()=>({position:"absolute",zIndex:101,[`&.${Z["scrollArea--left"]}`]:{top:0,left:0,width:20,bottom:0},[`&.${Z["scrollArea--right"]}`]:{top:0,right:0,width:20,bottom:0},[`&.${Z["scrollArea--up"]}`]:{top:0,left:0,right:0,height:20},[`&.${Z["scrollArea--down"]}`]:{bottom:0,left:0,right:0,height:20}})),DU=De(an,(e,t)=>t==="left"?e.leftPinnedWidth:t==="right"?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function FU(e){const t=Xe(),[n,r]=f.useState("none");return xe(t,"columnHeaderDragStart",()=>r("horizontal")),xe(t,"columnHeaderDragEnd",()=>r("none")),xe(t,"rowDragStart",()=>r("vertical")),xe(t,"rowDragEnd",()=>r("none")),n==="none"?null:n==="horizontal"?v.jsx(NU,w({},e)):v.jsx(RU,w({},e))}function NU(e){const{scrollDirection:t,scrollPosition:n}=e,r=f.useRef(null),s=Xe(),i=Pn(),a=ue(s,Hc),l=ue(s,Bc),c=ue(s,DU,t),u=()=>{const m=an(s);if(t==="left")return n.current.left>0;if(t==="right"){const y=l-m.viewportInnerSize.width;return n.current.left<y}return!1},d=Ie(),p=cf(s,d),g=Math.floor(d.columnHeaderHeight*a),h=w({height:g,top:p-g},t==="left"?{left:c}:{},t==="right"?{right:c}:{}),b=fe(m=>{let y;if(m.preventDefault(),t==="left")y=m.clientX-r.current.getBoundingClientRect().right;else if(t==="right")y=Math.max(1,m.clientX-r.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");y=(y-uf)*KE+uf,i.start(0,()=>{s.current.scroll({left:n.current.left+y,top:n.current.top})})});return v.jsx(iy,w({},e,{ref:r,getCanScrollMore:u,style:h,handleDragOver:b}))}function RU(e){const{scrollDirection:t,scrollPosition:n}=e,r=f.useRef(null),s=Xe(),i=Pn(),a=ue(s,hP),l=()=>{const g=an(s);if(t==="up")return n.current.top>0;if(t==="down"){const b=(a.currentPageTotalHeight||0)-g.viewportInnerSize.height-(g.hasScrollX?g.scrollbarSize:0);return n.current.top<b}return!1},c=Ie(),u=cf(s,c),d={top:t==="up"?u:void 0,bottom:t==="down"?0:void 0},p=fe(g=>{let h;if(g.preventDefault(),t==="up")h=g.clientY-r.current.getBoundingClientRect().bottom;else if(t==="down")h=Math.max(1,g.clientY-r.current.getBoundingClientRect().top);else throw new Error("MUI X: Wrong drag direction");h=(h-uf)*KE+uf,i.start(0,()=>{s.current.scroll({left:n.current.left,top:n.current.top+h})})});return v.jsx(iy,w({},e,{ref:r,getCanScrollMore:l,style:d,handleDragOver:p}))}const iy=ze(function(t,n){const{scrollDirection:r,getCanScrollMore:s,style:i,handleDragOver:a}=t,l=Xe(),[c,u]=f.useState(s),d=Ie(),p=w({},d,{scrollDirection:r}),g=OU(p);return xe(l,"scrollPositionChange",()=>{u(s)}),c?v.jsx(kU,{ref:n,className:g.root,ownerState:p,onDragOver:a,style:i}):null});process.env.NODE_ENV!=="production"&&(iy.displayName="GridScrollAreaContent");const df=vr(FU),ay=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(ay.displayName="GridPrivateApiContext");function Hn(){const e=f.useContext(ay);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
332
+ `));return e}const LU=()=>{},$U=(e,t)=>{const n=f.useRef(!1);it(()=>n.current||!e?LU:(n.current=!0,t()),[n.current||e])};function et(e,t,n){const r=f.useRef(!0);it(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function On(e,t){const n=f.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const XE=(e,t,n,r,s)=>{const i=On(e,"useNativeEventListener");Mt(e,"rootMount",()=>{const a=t();if(!(!a||!n))return i.debug(`Binding native ${n} event`),a.addEventListener(n,r,s),()=>{i.debug(`Clearing native ${n} event`),a.removeEventListener(n,r,s)}})};function cs(e){const t=f.useRef(!0);t.current&&(t.current=!1,e())}function AU(e){const t=f.useRef(null),n=f.useCallback((...r)=>{t.current||queueMicrotask(()=>{t.current&&t.current()}),t.current=()=>{t.current=null,e(...r)}},[e]);return f.useLayoutEffect(()=>{t.current&&t.current()}),{schedule:n,cancel:()=>t.current?(t.current=null,!0):!1}}const ZE=Ht(e=>e.pivoting),Vi=De(ZE,e=>e?.active),VU=new Map,ly=De(ZE,e=>e?.initialColumns||VU),QE=(e,t)=>{const n=ue(e,_a),r=ue(e,qb),s=ue(e,bP),i=ue(e,ln),a=n===0&&s===0,l=ue(e,Qj),c=ue(e,Vi),u=!l&&a,d=!l&&n>0&&r===0,p=!l&&i.length===0,g=u&&c;let h=null,b=null;return u&&(h="noRowsOverlay"),p&&(h="noColumnsOverlay"),g&&(h="emptyPivotOverlay"),d&&(h="noResultsOverlay"),l&&(h="loadingOverlay",b=t.slotProps?.loadingOverlay?.[a?"noRowsVariant":"variant"]??(a?"skeleton":"linear-progress")),{overlayType:h,loadingOverlayVariant:b}},pf=Ht(e=>e.columnMenu);function _U(){const e=Hn(),t=Ie(),n=ue(e,ln),r=ue(e,EW),s=ue(e,vW),i=ue(e,TE),a=ue(e,()=>Zb(e)===null),l=ue(e,AW),c=ue(e,RW),u=ue(e,of),d=ue(e,Xc),p=ue(e,pf),g=ue(e,Go),h=ue(e,TU),b=!(l===null&&i===null&&a),m=e.current.columnHeadersContainerRef;return v.jsx(t.slots.columnHeaders,w({ref:m,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:s,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:l,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:g,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:b},t.slotProps?.columnHeaders))}const BU=vr(_U),HU=U("div",{slot:"internal",shouldForwardProp:void 0})({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),zU=U("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n,loadingOverlayVariant:r,overlayType:s}=e,i=r==="skeleton"||s==="noColumnsOverlay";return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],i&&t["main--hiddenContent"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),JE=ze((e,t)=>{const{ownerState:n}=e,r=Ie(),i=Kp().hooks.useGridAriaAttributes();return v.jsxs(zU,w({ownerState:n,className:e.className,tabIndex:-1},i,r.slotProps?.main,{ref:t,children:[v.jsx(HU,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))});process.env.NODE_ENV!=="production"&&(JE.displayName="GridMainContainer");const jU=()=>pe({root:["topContainer"]},Je,{}),GU=U("div",{slot:"internal",shouldForwardProp:void 0})({position:"sticky",zIndex:40,top:0});function WU(e){const t=jU();return v.jsx(GU,w({},e,{className:se(t.root,Z["container--top"]),role:"presentation"}))}const UU=(e,t)=>{const{classes:n}=e;return pe({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Je,n)},qU=Nr("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),eT=ze(function(t,n){const r=Ie(),s=!r.autoHeight&&t.style?.minHeight==="auto",i=UU(r,s),a={classes:r.classes,overflowedContent:s};return v.jsx(qU,w({},t,{ownerState:a,className:se(i.root,t.className),ref:n}))});process.env.NODE_ENV!=="production"&&(eT.displayName="GridVirtualScrollerContent");const YU=U("div",{slot:"internal",shouldForwardProp:void 0})({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),tT=U("div",{slot:"internal",shouldForwardProp:void 0})({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:Ee.cell.background.pinned}),KU=U(tT,{slot:"internal"})({left:0}),XU=U(tT,{slot:"internal"})({right:0}),ZU=U("div",{slot:"internal",shouldForwardProp:void 0})({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function QU({rowsLength:e}){const t=Xe(),{viewportOuterSize:n,minimumSize:r,hasScrollX:s,hasScrollY:i,scrollbarSize:a,leftPinnedWidth:l,rightPinnedWidth:c}=ue(t,an),u=s?a:0,d=n.height-r.height>0;return u===0&&!d?null:v.jsxs(YU,{className:Z.filler,role:"presentation",style:{height:u,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[l>0&&v.jsx(KU,{className:Z["filler--pinnedLeft"],style:{width:l}}),v.jsx(ZU,{}),c>0&&v.jsx(XU,{className:Z["filler--pinnedRight"],style:{width:c+(i?a:0)}})]})}const JU=vr(QU),eq=e=>{const{classes:t}=e;return pe({root:["virtualScrollerRenderZone"]},Je,t)},tq=Nr("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone"})({position:"absolute",display:"flex",flexDirection:"column"}),nT=ze(function(t,n){const r=Ie(),s=eq(r);return v.jsx(tq,w({ownerState:r},t,{className:se(s.root,t.className),ref:n}))});process.env.NODE_ENV!=="production"&&(nT.displayName="GridVirtualScrollerRenderZone");const nq=Ht(e=>e.columnResize),oq=De(nq,e=>e.resizingColumnField),rq={includeHeaders:!0,includeHeaderFilters:!1,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},kn=Ht(e=>e.editRows),oT=De(kn,(e,{rowId:t,editMode:n})=>n===zr.Row&&!!e[t]),sq=De(kn,(e,{rowId:t,field:n})=>e[t]?.[n]??null),_i=Ht(e=>e.preferencePanel),iq=De(_i,(e,t)=>!!(e.open&&e.labelId===t));var mo=(function(e){return e.filters="filters",e.columns="columns",e.aiAssistant="aiAssistant",e})(mo||{});const aq={initialize:lq,use:cq,selectors:{}};function lq(e){return{colspanMap:new Map}}function cq(e,t,n){const r=t.colspan?.getColspan,s=()=>{e.state.colspanMap=new Map},i=(l,c)=>e.state.colspanMap.get(l)?.[c],a=fe(r?(l,c,u,d)=>{for(let p=c;p<u;p+=1){const g=uq(e.state.colspanMap,p,l,c,u,d,r);g.colSpan>1&&(p+=g.colSpan-1)}}:()=>{});return n.calculateColSpan=a,{resetColSpan:s,getCellColSpanInfo:i,calculateColSpan:a}}function uq(e,t,n,r,s,i,a){const l=i.length,c=i[t],u=a(n,c,t);if(!u||u===1)return cy(e,n,t,{spannedByColSpan:!1,cellProps:{colSpan:1,width:c.computedWidth}}),{colSpan:1};let d=c.computedWidth;for(let p=1;p<u;p+=1){const g=t+p;if(g>=r&&g<s){const h=i[g];d+=h.computedWidth,cy(e,n,t+p,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(t+u,l-1),leftVisibleCellIndex:t})}cy(e,n,t,{spannedByColSpan:!1,cellProps:{colSpan:u,width:d}})}return{colSpan:u}}function cy(e,t,n,r){let s=e.get(t);s||(s={},e.set(t,s)),s[n]=r}function rT(e,t=166){let n,r;const s=()=>{n=void 0,e(...r)};function i(...a){r=a,n===void 0&&(n=setTimeout(s,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}function ro(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const s=e.length;if(s!==t.length)return!1;for(let i=0;i<s;i+=1)if(!ro(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const s=Array.from(e.entries());for(let i=0;i<s.length;i+=1)if(!t.has(s[i][0]))return!1;for(let i=0;i<s.length;i+=1){const a=s[i];if(!ro(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const s=Array.from(e.entries());for(let i=0;i<s.length;i+=1)if(!t.has(s[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const s=e.length;if(s!==t.length)return!1;for(let i=0;i<s;i+=1)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let s=0;s<r;s+=1)if(!Object.prototype.hasOwnProperty.call(t,n[s]))return!1;for(let s=0;s<r;s+=1){const i=n[s];if(!ro(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Bi(e,t){return Math.round(e*10**t)/10**t}const us={EMPTY:{width:0,height:0},equals:(e,t)=>e.width===t.width&&e.height===t.height},dq={EMPTY:{top:[],bottom:[]}},pq={EMPTY:{left:[],right:[]}},fq={EMPTY:{top:0,left:0}};let Cn=(function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e})({});(function(e){function t(n,r){return n===0&&r===0?Cn.NONE:Math.abs(r)>=Math.abs(n)?r>0?Cn.DOWN:Cn.UP:n>0?Cn.RIGHT:Cn.LEFT}e.forDelta=t})(Cn||(Cn={}));const hq={isReady:!1,root:us.EMPTY,viewportOuterSize:us.EMPTY,viewportInnerSize:us.EMPTY,contentSize:us.EMPTY,minimumSize:us.EMPTY,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,topContainerHeight:0,bottomContainerHeight:0,autoHeight:!1,minimalContentHeight:void 0},el={rootSize:e=>e.rootSize,dimensions:e=>e.dimensions,rowHeight:e=>e.dimensions.rowHeight,columnsTotalWidth:e=>e.dimensions.columnsTotalWidth,contentHeight:e=>e.dimensions.contentSize.height,autoHeight:e=>e.dimensions.autoHeight,minimalContentHeight:e=>e.dimensions.minimalContentHeight,rowsMeta:e=>e.rowsMeta,rowPositions:e=>e.rowsMeta.positions,columnPositions:Zn((e,t)=>{const n=[];let r=0;for(let s=0;s<t.length;s+=1)n.push(r),r+=t[s].computedWidth;return n}),needsHorizontalScrollbar:e=>e.dimensions.viewportOuterSize.width>0&&e.dimensions.columnsTotalWidth>e.dimensions.viewportOuterSize.width},hn={initialize:gq,use:mq,selectors:el};function gq(e){const t=w({},hq,e.dimensions,{autoHeight:e.dimensions.autoHeight,minimalContentHeight:e.dimensions.minimalContentHeight}),{rowCount:n}=e,{rowHeight:r}=t,s={currentPageTotalHeight:n*r,positions:Array.from({length:n},(a,l)=>l*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0},i=new Map;return{rootSize:us.EMPTY,dimensions:t,rowsMeta:s,rowHeights:i}}function mq(e,t,n){const r=f.useRef(!0),s=f.useRef({counter:0,heights:{content:0,pinnedTop:0,pinnedBottom:0}}),{layout:i,dimensions:{rowHeight:a,columnsTotalWidth:l,leftPinnedWidth:c,rightPinnedWidth:u,topPinnedHeight:d,bottomPinnedHeight:p},onResize:g}=t,h=f.useCallback(S=>{if(S&&(r.current=!1),r.current)return;const x=i.refs.container.current,E=el.rootSize(e.state),P=el.rowsMeta(e.state),M=vq(x,t.dimensions.scrollbarSize),D=d+P.pinnedTopRowsTotalHeight,O=p+P.pinnedBottomRowsTotalHeight,k={width:l,height:Bi(P.currentPageTotalHeight,1)},I=e.state.dimensions;let F,T,R=!1,A=!1;if(t.dimensions.autoHeight)A=!1,R=Math.round(l)>Math.round(E.width),F={width:E.width,height:D+O+k.height},T={width:Math.max(0,F.width-(A?M:0)),height:Math.max(0,F.height-(R?M:0))};else{F={width:E.width,height:E.height},T={width:Math.max(0,F.width),height:Math.max(0,F.height-D-O)};const H=k,B=T,$=H.width>B.width,V=H.height>B.height;($||V)&&(A=V,R=H.width+(A?M:0)>B.width,R&&(A=H.height+M>B.height));{const z=s.current,j=P.currentPageTotalHeight!==z.heights.content||P.pinnedTopRowsTotalHeight!==z.heights.pinnedTop||P.pinnedBottomRowsTotalHeight!==z.heights.pinnedBottom;j&&(z.counter=0,z.heights={content:P.currentPageTotalHeight,pinnedTop:P.pinnedTopRowsTotalHeight,pinnedBottom:P.pinnedBottomRowsTotalHeight}),I.isReady&&A!==I.hasScrollY&&(j||(z.counter+=1),z.counter>=2&&(A=!1,R=$))}A&&(T.width-=M),R&&(T.height-=M)}t.disableHorizontalScroll&&(R=!1),t.disableVerticalScroll&&(A=!1);const L=Math.max(F.width,l+(A?M:0)),N={width:l,height:D+k.height+O},_={isReady:!0,root:E,viewportOuterSize:F,viewportInnerSize:T,contentSize:k,minimumSize:N,hasScrollX:R,hasScrollY:A,scrollbarSize:M,rowWidth:L,rowHeight:a,columnsTotalWidth:l,leftPinnedWidth:c,rightPinnedWidth:u,topContainerHeight:D,bottomContainerHeight:O,autoHeight:t.dimensions.autoHeight,minimalContentHeight:t.dimensions.minimalContentHeight};ro(I,_)||(e.update({dimensions:_}),g?.(_.root))},[e,i.refs.container,t.dimensions.scrollbarSize,t.dimensions.autoHeight,t.dimensions.minimalContentHeight,t.disableHorizontalScroll,t.disableVerticalScroll,g,a,l,c,u,d,p]),{resizeThrottleMs:b}=t,m=fe(h),y=f.useMemo(()=>b>0?rT(m,b):void 0,[b,m]);f.useEffect(()=>y?.clear,[y]),it(h,[h]),it(()=>{e.update({dimensions:w({},e.state.dimensions,{autoHeight:t.dimensions.autoHeight,minimalContentHeight:t.dimensions.minimalContentHeight})})},[e,t.dimensions.autoHeight,t.dimensions.minimalContentHeight]);const C=bq(e,t,h);return{updateDimensions:h,debouncedUpdateDimensions:y,rowsMeta:C}}function bq(e,t,n){const r=e.state.rowHeights,{rows:s,getRowHeight:i,getRowSpacing:a,getEstimatedRowHeight:l}=t,c=f.useRef(-1),u=f.useRef(!1),d=f.useRef(!1),p=t.pinnedRows,g=qt(e,el.rowHeight),h=fe(I=>{let F=r.get(I);return F===void 0&&(F={content:e.state.dimensions.rowHeight,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},r.set(I,F)),F}),{applyRowHeight:b}=t,m=f.useCallback(I=>{const F=el.dimensions(e.state),T=F.rowHeight,R=h(I.id);if(!i)R.content=T,R.needsFirstMeasurement=!1;else{const A=i(I);if(A==="auto"){if(R.needsFirstMeasurement){const L=l?l(I):T;R.content=L??T}u.current=!0,R.autoHeight=!0}else R.content=A??F.rowHeight,R.needsFirstMeasurement=!1,R.autoHeight=!1}if(a){const A=a(I);R.spacingTop=A.top??0,R.spacingBottom=A.bottom??0}else R.spacingTop=0,R.spacingBottom=0;return b?.(R,I),R},[e,i,h,l,g,a,b]),y=f.useCallback(()=>{u.current=!1;const I=p?.top.reduce((N,_)=>{const H=m(_);return N+H.content+H.spacingTop+H.spacingBottom+H.detail},0)??0,F=p?.bottom.reduce((N,_)=>{const H=m(_);return N+H.content+H.spacingTop+H.spacingBottom+H.detail},0)??0,T=[],R=s.reduce((N,_)=>{T.push(N);const H=m(_),B=H.content+H.spacingTop+H.spacingBottom+H.detail;return N+B},0);u.current||(c.current=1/0);const A=I!==e.state.rowsMeta.pinnedTopRowsTotalHeight||F!==e.state.rowsMeta.pinnedBottomRowsTotalHeight||R!==e.state.rowsMeta.currentPageTotalHeight,L={currentPageTotalHeight:R,positions:T,pinnedTopRowsTotalHeight:I,pinnedBottomRowsTotalHeight:F};e.set("rowsMeta",L),A&&n(),d.current=!0},[e,p,s,m,n]),C=fe(y),S=I=>r.get(I)?.content??el.rowHeight(e.state),x=(I,F)=>{const T=h(I),R=T.content!==F;T.needsFirstMeasurement=!1,T.content=F,d.current&&=!R},E=I=>r.get(I)?.autoHeight??!1,P=()=>c.current,M=I=>{u.current&&I>c.current&&(c.current=I)},D=()=>{r.clear(),y()},O=lo(()=>typeof ResizeObserver>"u"?void 0:new ResizeObserver(I=>{for(let F=0;F<I.length;F+=1){const T=I[F],R=T.borderBoxSize&&T.borderBoxSize.length>0?T.borderBoxSize[0].blockSize:T.contentRect.height,A=T.target.__mui_id;if(t.focusedVirtualCell?.()?.id===A&&R===0)return;x(A,R)}d.current||requestAnimationFrame(()=>{C()})})).current,k=(I,F)=>(I.__mui_id=F,O?.observe(I),()=>O?.unobserve(I));return it(()=>{y()},[y]),{getRowHeight:S,setLastMeasuredRowIndex:M,storeRowHeightMeasurement:x,hydrateRowsMeta:y,observeRowHeight:k,rowHasAutoHeight:E,getRowHeightEntry:h,getLastMeasuredRowIndex:P,resetRowHeights:D}}function yq(e,t,n){if(!e)return;const r=e.getBoundingClientRect(),s={width:Bi(r.width,1),height:Bi(r.height,1)};if((t.state.rootSize===us.EMPTY||!us.equals(s,t.state.rootSize))&&n(s),typeof ResizeObserver>"u")return;const i=new ResizeObserver(([a])=>{if(!a)return;const l={width:Bi(a.contentRect.width,1),height:Bi(a.contentRect.height,1)};us.equals(l,t.state.rootSize)||n(l)});return i.observe(e),()=>{i.disconnect()}}const sT=new WeakMap;function vq(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=sT.get(e);if(n!==void 0)return n;const s=Bt(e).createElement("div");s.style.width="99px",s.style.height="99px",s.style.position="absolute",s.style.overflow="scroll",s.className="scrollDiv",e.appendChild(s);const i=s.offsetWidth-s.clientWidth;return e.removeChild(s),sT.set(e,i),i}const iT=(typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty").includes("firefox"),uy=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),tl=(e,t,n)=>Math.max(t,Math.min(n,e)),dy=50,aT={top:0,left:0},Cq=Object.freeze(new Map),Zc={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},ff=(()=>{const e=lt(t=>t.virtualization.renderContext.firstRowIndex);return{store:lt(t=>t.virtualization),renderContext:lt(t=>t.virtualization.renderContext),enabledForRows:lt(t=>t.virtualization.enabledForRows),enabledForColumns:lt(t=>t.virtualization.enabledForColumns),offsetTop:lt(hn.selectors.rowPositions,e,(t,n)=>t[n]??0),context:lt(t=>t.virtualization.context),scrollPosition:lt(t=>t.virtualization.scrollPosition)}})(),Wo={initialize:wq,use:Sq,selectors:ff};function wq(e){return{virtualization:w({enabled:!uy,enabledForRows:!uy,enabledForColumns:!uy,renderContext:Zc,props:e.layout.constructor.elements.reduce((n,r)=>(n[r],n),{}),context:{},scrollPosition:{current:fq.EMPTY}},e.initialState?.virtualization),getters:null}}function Sq(e,t,n){const{layout:r,dimensions:{rowHeight:s,columnsTotalWidth:i=0},virtualization:{isRtl:a=!1,rowBufferPx:l=150,columnBufferPx:c=150},colspan:u,initialState:d,rows:p,range:g,columns:h,pinnedRows:b=dq.EMPTY,pinnedColumns:m=pq.EMPTY,onWheel:y,onTouchMove:C,onRenderContextChange:S,onScrollChange:x,scrollReset:E,renderRow:P,renderInfiniteLoadingTrigger:M}=t,D=b.bottom.length>0,[O,k]=f.useState(Cq),I=f.useRef(!1),F=f.useRef(!1),T=qt(e,ff.renderContext),R=qt(e,ff.enabledForRows),A=qt(e,ff.enabledForColumns),L=qt(e,hn.selectors.contentHeight),N=f.useRef(d?.scroll??aT),_=f.useRef(!1),H=f.useRef(aT),B=f.useRef(Zc),$=Pn(),V=f.useRef(void 0),z=lo(()=>Eq(a,l,c,s*15,dy*6)).current,j=f.useCallback(ne=>{pT(ne,e.state.virtualization.renderContext)||e.set("virtualization",w({},e.state.virtualization,{renderContext:ne,scrollPosition:{current:w({},N.current)}}));const te=hn.selectors.dimensions(e.state).isReady,ye=ne.firstRowIndex!==B.current.firstRowIndex||ne.lastRowIndex!==B.current.lastRowIndex;te&&ye&&(B.current=ne,S?.(ne)),H.current=N.current},[e,S]),G=fe(()=>{const ne=r.refs.scroller.current;if(!ne)return;const te=hn.selectors.dimensions(e.state),ye=Math.ceil(te.contentSize.height-te.viewportInnerSize.height),ce=Math.ceil(te.contentSize.width-te.viewportInnerSize.width),Se={top:tl(ne.scrollTop,0,ye),left:a?tl(ne.scrollLeft,-Math.abs(ce),0):tl(ne.scrollLeft,0,ce)},we=Se.left-N.current.left,Be=Se.top-N.current.top,Fe=we!==0||Be!==0;N.current=Se;const Ye=Fe?Cn.forDelta(we,Be):Cn.NONE,Ne=Math.abs(N.current.top-H.current.top),Ke=Math.abs(N.current.left-H.current.left),He=Ne>=s||Ke>=dy,me=z.direction!==Ye;if(!(He||me))return e.set("virtualization",w({},e.state.virtualization,{scrollPosition:{current:w({},N.current)}})),T;if(me)switch(Ye){case Cn.NONE:case Cn.LEFT:case Cn.RIGHT:V.current=void 0;break;default:V.current=T;break}z.direction=Ye,z.buffer=hT(a,Ye,l,c,s*15,dy*6);const ge=cT(e,t,n,R,A),Te=uT(ge,N.current,z);return pT(Te,T)?e.set("virtualization",w({},e.state.virtualization,{scrollPosition:{current:w({},N.current)}})):(P1.flushSync(()=>{j(Te)}),$.start(1e3,G)),Te}),Q=()=>{if(!hn.selectors.dimensions(e.state).isReady&&(R||A))return;const ne=cT(e,t,n,R,A),te=uT(ne,N.current,z);V.current=void 0,j(te)},q=fe(Q);Mi(e,hn.selectors.dimensions,(ne,te)=>{te.isReady&&Q()}),it(()=>{I.current&&(Q(),I.current=!1)});const Y=()=>{I.current=!0},K=fe(()=>{if(_.current){_.current=!1;return}const ne=G();ne&&x?.(N.current,ne)}),J=(ne={},te)=>{if(!ne.rows&&!g)return[];let ye=T;ne.renderContext&&(ye=ne.renderContext,ye.firstColumnIndex=T.firstColumnIndex,ye.lastColumnIndex=T.lastColumnIndex);const ce=!D&&ne.position===void 0||D&&ne.position==="bottom",Se=ne.position!==void 0;let we;switch(ne.position){case"top":we=0;break;case"bottom":we=b.top.length+p.length;break;default:we=b.top.length;break}const Be=ne.rows??p,Fe=ye.firstRowIndex,Ye=Math.min(ye.lastRowIndex,Be.length),Ne=ne.rows?gT(0,ne.rows.length):gT(Fe,Ye);let Ke=-1;const He=t.focusedVirtualCell?.();!Se&&He&&(He.rowIndex<Fe&&He.rowIndex>=0&&He.rowIndex<Be.length&&(Ne.unshift(He.rowIndex),Ke=He.rowIndex),He.rowIndex>Ye&&He.rowIndex<Be.length&&(Ne.push(He.rowIndex),Ke=He.rowIndex));const me=[],Pe=hn.selectors.columnPositions(e.state,h);return Ne.forEach(ge=>{const{id:Te,model:$e}=Be[ge];if(te&&!te[Te])return;const Ge=(g?.firstRowIndex||0)+we+ge;if(u?.enabled){const _e=m.left.length,Ct=h.length-m.right.length;n.calculateColSpan(Te,_e,Ct,h),m.left.length>0&&n.calculateColSpan(Te,0,m.left.length,h),m.right.length>0&&n.calculateColSpan(Te,h.length-m.right.length,h.length,h)}const ot=n.rowsMeta.rowHasAutoHeight(Te)?"auto":n.rowsMeta.getRowHeight(Te);let Tt=!1;ne.position===void 0&&(Tt=ge===0);let We=!1;const Oe=ge===Be.length-1;if(ce)if(Se)We=Oe;else{const _e=p.length-1;ge===_e&&(We=!0)}let Ue=ye;V.current&&ge>=V.current.firstRowIndex&&ge<V.current.lastRowIndex&&(Ue=V.current);const ut=ge===Ke,zt=He?.rowIndex===Ge,Et=fT(Pe,Ue,m.left.length),zn=Oe&&ne.position==="top",wn=Ue.firstColumnIndex,jn=Ue.lastColumnIndex;if(me.push(P({id:Te,model:$e,rowIndex:Ge,offsetLeft:Et,columnsTotalWidth:i,baseRowHeight:ot,firstColumnIndex:wn,lastColumnIndex:jn,focusedColumnIndex:zt?He.columnIndex:void 0,isFirstVisible:Tt,isLastVisible:We,isVirtualFocusRow:ut,showBottomBorder:zn})),ut)return;const Gn=O.get(Te);Gn&&me.push(Gn),ne.position===void 0&&Oe&&M&&me.push(M(Te))}),me},X=f.useRef(null);it(()=>{F.current&&q()},[A,R,q]),it(()=>{r.refs.scroller.current&&(r.refs.scroller.current.scrollLeft=0)},[r.refs.scroller,E]),$U(T!==Zc,()=>{if(x?.(N.current,T),F.current=!0,d?.scroll&&r.refs.scroller.current){const ne=r.refs.scroller.current,{top:te,left:ye}=d.scroll,ce={top:!(te>0),left:!(ye>0)};!ce.left&&i&&(ne.scrollLeft=ye,ce.left=!0,_.current=!0),!ce.top&&L&&(ne.scrollTop=te,_.current=!0),(!ce.top||!ce.left)&&(X.current=(Se,we)=>{!ce.left&&Se&&(ne.scrollLeft=ye,ce.left=!0,_.current=!0),!ce.top&&we&&(ne.scrollTop=te,ce.top=!0,_.current=!0),ce.left&&ce.top&&(X.current=null)})}}),Mi(e,hn.selectors.dimensions,Q),it(()=>{r.refs.scroller&&X.current?.(i,L)},[r.refs.scroller,i,L]);const ee=f.useRef(!0),W=lT(ne=>{r.refs.container.current=ne;const te=yq(ne,e,ye=>{ye.width===0&&ye.height===0&&e.state.rootSize.height!==0&&e.state.rootSize.width!==0||(e.state.rootSize=ye,ee.current||!n.debouncedUpdateDimensions?(n.updateDimensions(ee.current),ee.current=!1):n.debouncedUpdateDimensions())});return()=>{te?.(),r.refs.container.current=null}}),le=lT(ne=>{r.refs.scroller.current=ne;const te={passive:!0};return ne.addEventListener("scroll",K,te),ne.addEventListener("wheel",y,te),ne.addEventListener("touchmove",C,te),()=>{ne.removeEventListener("scroll",K,te),ne.removeEventListener("wheel",y,te),ne.removeEventListener("touchmove",C,te),r.refs.scroller.current=null}}),oe={containerRef:W,scrollerRef:le},re=r.use(e,t,n,oe),ae=w({setPanels:k,getRows:J,rows:t.rows},re);return w({getters:ae,setPanels:k,forceUpdateRenderContext:Q,scheduleUpdateRenderContext:Y},Iq())}function lT(e){const t=f.useRef(void 0);return fe(r=>{if(!r){t.current?.();return}if(t.current=e(r),xb>=19)return t.current})}function cT(e,t,n,r,s){const i=hn.selectors.dimensions(e.state),a=t.rows,l=t.range,c=t.columns,u=n.getHiddenCellsOrigin(),d=t.rows.at(-1)?.id,p=c.at(-1);return{api:n,enabledForRows:r,enabledForColumns:s,autoHeight:i.autoHeight,rowBufferPx:t.virtualization.rowBufferPx,columnBufferPx:t.virtualization.columnBufferPx,leftPinnedWidth:i.leftPinnedWidth,columnsTotalWidth:i.columnsTotalWidth,viewportInnerWidth:i.viewportInnerSize.width,viewportInnerHeight:i.viewportInnerSize.height,lastRowHeight:d!==void 0?n.rowsMeta.getRowHeight(d):0,lastColumnWidth:p?.computedWidth??0,rowsMeta:hn.selectors.rowsMeta(e.state),columnPositions:hn.selectors.columnPositions(e.state,t.columns),rows:a,range:l,pinnedColumns:t.pinnedColumns,columns:c,hiddenCellsOriginMap:u,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function uT(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.columns.length},{top:s,left:i}=t,a=Math.abs(i)+e.leftPinnedWidth;if(e.enabledForRows){let c=Math.min(dT(e,s,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const u=e.hiddenCellsOriginMap[c];if(u){const p=Math.min(...Object.values(u));c=Math.min(c,p)}const d=e.autoHeight?c+e.rows.length:dT(e,s+e.viewportInnerHeight);r.firstRowIndex=c,r.lastRowIndex=d}if(e.enabledForColumns){let c=0,u=e.columnPositions.length,d=!1;const[p,g]=py({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let h=p;h<g&&!d;h+=1){const b=e.rows[h];d=e.api.rowsMeta.rowHasAutoHeight(b.id)}(!d||e.virtualizeColumnsWithAutoRowHeight)&&(c=Bs(a,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),u=Bs(a+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=c,r.lastColumnIndex=u}return xq(e,r,n)}function dT(e,t,n){const r=e.api.rowsMeta.getLastMeasuredRowIndex();let s=r===1/0;e.range?.lastRowIndex&&!s&&(s=r>=e.range.lastRowIndex);const i=tl(r-(e.range?.firstRowIndex||0),0,e.rowsMeta.positions.length);return s||e.rowsMeta.positions[i]>=t?Bs(t,e.rowsMeta.positions,n):Pq(t,e.rowsMeta.positions,i,n)}function xq(e,t,n){const[r,s]=py({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[i,a]=py({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns?.left.length??0,maxLastIndex:e.columns.length-(e.pinnedColumns?.right.length??0),bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),l=Tq({api:e.api,firstColumnToRender:i,firstRowToRender:r,lastRowToRender:s,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:s,firstColumnIndex:l,lastColumnIndex:a}}function Bs(e,t,n=void 0,r=0,s=t.length){if(t.length<=0)return-1;if(r>=s)return r;const i=r+Math.floor((s-r)/2),a=t[i];let l;if(n?.atStart){const c=(i===t.length-1?n.lastPosition:t[i+1])-a;l=e-c<a}else l=e<=a;return l?Bs(e,t,n,r,i):Bs(e,t,n,i+1,s)}function Pq(e,t,n,r=void 0){let s=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=s,s*=2;return Bs(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function py({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:s,maxLastIndex:i,positions:a,lastSize:l}){const c=a[e]-n,u=a[t]+r,d=Bs(c,a,{atStart:!0,lastPosition:a[a.length-1]+l}),p=Bs(u,a);return[tl(d,s,i),tl(p,s,i)]}function pT(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function fT(e,t,n){const r=(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(r)}function hT(e,t,n,r,s,i){if(e)switch(t){case Cn.LEFT:t=Cn.RIGHT;break;case Cn.RIGHT:t=Cn.LEFT;break}switch(t){case Cn.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case Cn.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case Cn.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case Cn.UP:return{rowAfter:0,rowBefore:s,columnAfter:0,columnBefore:0};case Cn.DOWN:return{rowAfter:s,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}function Eq(e,t,n,r,s){return{direction:Cn.NONE,buffer:hT(e,Cn.NONE,t,n,r,s)}}function gT(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function Tq({api:e,firstColumnToRender:t,firstRowToRender:n,lastRowToRender:r,visibleRows:s}){let i=t,a=!1;for(;!a&&i>=0;){a=!0;for(let l=n;l<r;l+=1)if(s[l]){const u=s[l].id,d=e.getCellColSpanInfo(u,i);if(d&&d.spannedByColSpan&&d.leftVisibleCellIndex<i){i=d.leftVisibleCellIndex,a=!1;break}}}return i}function Iq(){return{getCellColSpanInfo:()=>{throw new Error("Unimplemented: colspan feature is required")},calculateColSpan:()=>{throw new Error("Unimplemented: colspan feature is required")},getHiddenCellsOrigin:()=>{throw new Error("Unimplemented: rowspan feature is required")}}}class mT{static elements=["scroller","container"];constructor(t){this.refs=t}refSetter(t){return n=>{n&&this.refs[t].current!==n&&(this.refs[t].current=n)}}}class Hs extends mT{static elements=["scroller","container","content","positioner","scrollbarVertical","scrollbarHorizontal"];use(t,n,r,s){const{scrollerRef:i,containerRef:a}=s,l=fe(this.refSetter("scrollbarVertical")),c=fe(this.refSetter("scrollbarHorizontal"));t.state.virtualization.context={scrollerRef:i,containerRef:a,scrollbarVerticalRef:l,scrollbarHorizontalRef:c}}static selectors={containerProps:Zn(Wo.selectors.context,t=>({ref:t.containerRef})),scrollerProps:Zn(Wo.selectors.context,hn.selectors.autoHeight,hn.selectors.needsHorizontalScrollbar,(t,n,r)=>({ref:t.scrollerRef,style:{overflowX:r?void 0:"hidden",overflowY:n?"hidden":void 0},role:"presentation",tabIndex:iT?-1:void 0})),contentProps:Zn(hn.selectors.contentHeight,hn.selectors.minimalContentHeight,hn.selectors.columnsTotalWidth,hn.selectors.needsHorizontalScrollbar,(t,n,r,s)=>({style:{width:s?r:"auto",flexBasis:t===0?n:t,flexShrink:0},role:"presentation"})),positionerProps:Zn(Wo.selectors.offsetTop,t=>({style:{transform:`translate3d(0, ${t}px, 0)`}})),scrollbarHorizontalProps:Zn(Wo.selectors.context,Wo.selectors.scrollPosition,(t,n)=>({ref:t.scrollbarHorizontalRef,scrollPosition:n})),scrollbarVerticalProps:Zn(Wo.selectors.context,Wo.selectors.scrollPosition,(t,n)=>({ref:t.scrollbarVerticalRef,scrollPosition:n})),scrollAreaProps:Zn(Wo.selectors.scrollPosition,t=>({scrollPosition:t}))}}class Mq extends Hs{use(t,n,r,s){super.use(t,n,r,s);const i=t.use(Hs.selectors.containerProps),a=t.use(Hs.selectors.scrollerProps),l=t.use(Hs.selectors.contentProps),c=t.use(Hs.selectors.positionerProps),u=t.use(Hs.selectors.scrollbarVerticalProps),d=t.use(Hs.selectors.scrollbarHorizontalProps),p=t.use(Hs.selectors.scrollAreaProps);return{getContainerProps:()=>i,getScrollerProps:()=>a,getContentProps:()=>l,getPositionerProps:()=>c,getScrollbarVerticalProps:()=>u,getScrollbarHorizontalProps:()=>d,getScrollAreaProps:()=>p}}}class vle extends mT{static elements=["scroller","container","content","positioner"];use(t,n,r,s){const{scrollerRef:i,containerRef:a}=s,l=tt(i,a);t.state.virtualization.context={mergedRef:l}}static selectors={containerProps:Zn(Wo.selectors.context,hn.selectors.autoHeight,hn.selectors.needsHorizontalScrollbar,(t,n,r)=>({ref:t.mergedRef,style:{overflowX:r?void 0:"hidden",overflowY:n?"hidden":void 0,position:"relative"},role:"presentation",tabIndex:iT?-1:void 0})),contentProps:Zn(hn.selectors.contentHeight,t=>({style:{position:"absolute",display:"inline-block",width:"100%",height:t,top:0,left:0,zIndex:-1},role:"presentation"})),positionerProps:Zn(Wo.selectors.offsetTop,t=>({style:{height:t}}))}}const Oq={initialize:kq,use:Dq,selectors:{}};function kq(e){return{}}function Dq(e,t,n){return{getViewportPageSize:()=>{const s=hn.selectors.dimensions(e.state);if(!s.isReady)return 0;if(t.getRowHeight){const a=Wo.selectors.renderContext(e.state),l=a.lastRowIndex-a.firstRowIndex;return Math.min(l-1,t.rows.length)}const i=Math.floor(s.viewportInnerSize.height/s.rowHeight);return Math.min(i,t.rows.length)}}}const Fq={firstRowIndex:0,lastRowIndex:0},Nq={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},bT={state:e=>e.rowSpanning,hiddenCells:e=>e.rowSpanning.caches.hiddenCells,spannedCells:e=>e.rowSpanning.caches.spannedCells,hiddenCellsOriginMap:e=>e.rowSpanning.caches.hiddenCellOriginMap},nl={initialize:Rq,use:Lq,selectors:bT};function Rq(e){return{rowSpanning:e.initialState?.rowSpanning??{caches:Nq,processedRange:Fq}}}function Lq(e,t,n){return{getHiddenCellsOrigin:()=>bT.hiddenCellsOriginMap(e.state)}}const $q={resizeThrottleMs:100,columns:[{field:"DEFAULT_COLUMN"}],dimensions:{autoHeight:!1,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,topPinnedHeight:0,bottomPinnedHeight:0},virtualization:{isRtl:!1,rowBufferPx:150,columnBufferPx:150}},yT=[hn,Wo,aq,nl,Oq],Aq=e=>{const t=vT(e,$q),n=lo(()=>new _c(yT.map(s=>s.initialize(t)).reduce((s,i)=>Object.assign(s,i),{}))).current,r={};for(const s of yT)Object.assign(r,s.use(n,t,r));return{store:n,api:r}};function vT(e,t){const n=w({},e);for(const r in t)if(Object.hasOwn(t,r)){const s=t[r];s!==null&&typeof s=="object"&&!Array.isArray(s)?n[r]=vT(e[r]??{},s):n[r]=e[r]??s}return n}const fy=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),Qc=!fy,Vq=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return w({},e,{virtualization:{enabled:!n&&Qc,enabledForColumns:!n&&Qc,enabledForRows:!n&&!r&&Qc,renderContext:Zc}})};function _q(e,t){const{autoHeight:n,disableVirtualization:r}=t,s=c=>{const{virtualizer:u}=e.current;c&&=Qc;const d=u.store.getSnapshot();d.virtualization.enabled===c&&d.virtualization.enabledForRows===c&&d.virtualization.enabledForColumns===c||u.store.set("virtualization",w({},u.store.state.virtualization,{enabled:c,enabledForColumns:c,enabledForRows:c&&!n}))};et(e,{unstable_setVirtualization:s,unstable_setColumnVirtualization:c=>{const{virtualizer:u}=e.current;c&&=Qc,u.store.getSnapshot().virtualization.enabledForColumns!==c&&u.store.set("virtualization",w({},u.store.state.virtualization,{enabledForColumns:c}))}},"public");const l=()=>{const{virtualizer:c}=e.current;c?.api.scheduleUpdateRenderContext()};e.current.register("private",{updateRenderContext:l}),Mt(e,"sortedRowsSet",l),Mt(e,"paginationModelChange",l),Mt(e,"columnsChange",l),f.useEffect(()=>{e.current.virtualizer&&s(!t.disableVirtualization)},[e,r,n])}const hf=Ht(e=>e.virtualization);De(hf,e=>e.enabled);const Bq=De(hf,e=>e.enabledForColumns);De(hf,e=>e.enabledForRows);const Hi=De(hf,e=>e.renderContext),Hq=Ht(e=>e.virtualization.renderContext.firstColumnIndex),zq=Ht(e=>e.virtualization.renderContext.lastColumnIndex),jq=Pt(Hq,zq,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t}));function Gq(e){return JSON.stringify([e.filterModel,e.sortModel,e.start,e.end])}class Wq{constructor({ttl:t=3e5,getKey:n=Gq}){this.cache={},this.ttl=t,this.getKey=n}set(t,n){const r=this.getKey(t),s=Date.now()+this.ttl;this.cache[r]={value:n,expiry:s}}get(t){const n=this.getKey(t),r=this.cache[n];if(r){if(Date.now()>r.expiry){delete this.cache[n];return}return r.value}}clear(){this.cache={}}}class CT extends Error{constructor(t){super(t.message),this.name="GridGetRowsError",this.params=t.params,this.cause=t.cause}}class Uq extends Error{constructor(t){super(t.message),this.name="GridUpdateRowError",this.params=t.params,this.cause=t.cause}}const qq=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return pe(r,Je,n)},wT="calc(max(var(--DataGrid-scrollbarSize), 14px))",hy=U("div",{slot:"internal",shouldForwardProp:void 0})({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":wT}),Yq=U(hy,{slot:"internal"})({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-headersTotalHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-headersTotalHeight)",right:0}),Kq=U(hy,{slot:"internal"})({width:"calc(var(--DataGrid-hasScrollX) * (100% - var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:0}),Xq=U(hy,{slot:"internal"})({width:"var(--size)",height:"var(--size)",right:0,bottom:0,overflow:"scroll","@media print":{display:"none"}}),gy=ze(function(t,n){const r=Hn(),s=Ie(),i=f.useRef(!1),a=f.useRef(0),l=f.useRef(null),c=qq(s,t.position),u=ue(r,an),d=t.position==="vertical"?"height":"width",p=t.position==="vertical"?"scrollTop":"scrollLeft",g=t.position==="vertical"?"top":"left",h=t.position==="horizontal"?u.minimumSize.width:u.minimumSize.height-u.headersTotalHeight,b=fe(()=>{const S=l.current,x=t.scrollPosition.current;if(S&&x[g]!==a.current){if(a.current=x[g],i.current){i.current=!1;return}i.current=!0,S[p]=t.scrollPosition.current[g]}}),m=fe(()=>{const S=r.current.virtualScrollerRef.current,x=l.current;if(x){if(i.current){i.current=!1;return}i.current=!0,S[p]=x[p]}});ld(()=>{const S=r.current.virtualScrollerRef.current,x=l.current,E={passive:!0};return S.addEventListener("scroll",b,E),x.addEventListener("scroll",m,E),()=>{S.removeEventListener("scroll",b,E),x.removeEventListener("scroll",m,E)}});const y=t.position==="vertical"?Yq:Kq,C=f.useMemo(()=>({[d]:`${h}px`}),[d,h]);return v.jsx(y,{ref:tt(n,l),className:c.root,tabIndex:-1,"aria-hidden":"true",onFocus:S=>{S.target.blur()},children:v.jsx("div",{className:c.content,style:C})})});process.env.NODE_ENV!=="production"&&(gy.displayName="GridVirtualScrollbar");const Zq=e=>{const{classes:t,position:n}=e,r={root:["scrollShadow",`scrollShadow--${n}`]};return pe(r,Je,t)},Qq=U("div",{name:"MuiDataGrid",slot:"ScrollShadow",overridesResolver:(e,t)=>[t.root,t[e.position]]})(({theme:e})=>({position:"absolute",inset:0,pointerEvents:"none",transition:Ee.transition(["box-shadow"],{duration:Ee.transitions.duration.short}),"--length":e.palette.mode==="dark"?"8px":"6px","--length-inverse":"calc(var(--length) * -1)","--opacity":e.palette.mode==="dark"?"0.7":"0.18","--blur":"var(--length)","--spread":"calc(var(--length) * -1)","--color":"0, 0, 0","--color-start":"rgba(var(--color), calc(var(--hasScrollStart) * var(--opacity)))","--color-end":"rgba(var(--color), calc(var(--hasScrollEnd) * var(--opacity)))",variants:[{props:{position:"vertical"},style:{top:"var(--DataGrid-topContainerHeight)",bottom:"calc(var(--DataGrid-bottomContainerHeight) + var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))",boxShadow:"inset 0 var(--length) var(--blur) var(--spread) var(--color-start), inset 0 var(--length-inverse) var(--blur) var(--spread) var(--color-end)"}},{props:{position:"horizontal"},style:{left:"var(--DataGrid-leftPinnedWidth)",right:"calc(var(--DataGrid-rightPinnedWidth) + var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",boxShadow:"inset var(--length) 0 var(--blur) var(--spread) var(--color-start), inset var(--length-inverse) 0 var(--blur) var(--spread) var(--color-end)"}}]}));function ST(e){const{position:t}=e,r={classes:Ie().classes,position:t},s=Zq(r),i=f.useRef(null),a=Hn(),l=ue(a,dP),c=ue(a,pP),u=ue(a,ki),d=ue(a,Ni),p=t==="vertical"?c&&u?.bottom?.length>0:l&&d?.right?.length!==void 0&&d?.right?.length>0,g=_t(),h=f.useCallback(y=>{if(!i.current)return;const C=Math.abs(Math.round(y)),S=an(a),x=Math.round(S.contentSize[t==="vertical"?"height":"width"]-S.viewportInnerSize[t==="vertical"?"height":"width"]),E=t==="vertical"?u?.top?.length>0:d?.left?.length!==void 0&&d?.left?.length>0,P=t==="vertical"?u?.bottom?.length>0:d?.right?.length!==void 0&&d?.right?.length>0,M=g?C<x:C>0,D=g?C>0:C<x;i.current.style.setProperty("--hasScrollStart",E&&M?"1":"0"),i.current.style.setProperty("--hasScrollEnd",P&&D?"1":"0")},[u,d,g,t,a]),b=y=>{h(y[t==="vertical"?"top":"left"])},m=()=>{t==="horizontal"&&h(a.current.virtualScrollerRef?.current?.scrollLeft||0)};return xe(a,"scrollPositionChange",b),xe(a,"columnResizeStop",m),f.useEffect(()=>{h((t==="horizontal"?a.current.virtualScrollerRef?.current?.scrollLeft:a.current.virtualScrollerRef?.current?.scrollTop)??0)},[h,a,t]),v.jsx(Qq,{className:s.root,ownerState:r,ref:i,style:{"--hasScrollStart":0,"--hasScrollEnd":p?"1":"0"}})}const Jq=U("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"&&e!=="right"})(({overlayType:e,loadingOverlayVariant:t,right:n})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,right:`${n}px`,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),eY=U("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"})({}),tY=e=>{const{classes:t}=e;return pe({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Je,t)};function xT(e){const t=Xe(),n=Ie(),r=ue(t,an);let s=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);s===0&&(s=PP);const i=tY(w({},e,{classes:n.classes}));return v.jsx(Jq,w({className:i.root},e,{right:r.columnsTotalWidth-r.viewportOuterSize.width,children:v.jsx(eY,w({className:i.inner,style:{height:s,width:r.viewportOuterSize.width}},e))}))}process.env.NODE_ENV!=="production"&&(xT.propTypes={loadingOverlayVariant:o.oneOf(["circular-progress","linear-progress","skeleton"]),overlayType:o.oneOf(["loadingOverlay","noResultsOverlay","noRowsOverlay","noColumnsOverlay","emptyPivotOverlay"])});const ds=(e,t)=>Ka(e),PT=(e,t)=>ue(e,Ka),nY=De(go,Hi,Ka,ln,(e,t,n,r)=>{if(!e)return!1;const s=n.rowIdToIndexMap.get(e.id),i=r.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(l=>l.field===e.field);return!(s!==void 0&&i!==-1&&s>=t.firstRowIndex&&s<=t.lastRowIndex)}),ET=Pt(nY,ln,Ka,go,(e,t,n,r)=>{if(!e)return null;const s=n.rowIdToIndexMap.get(r.id);if(s===void 0)return null;const i=t.findIndex(a=>a.field===r.field);return i===-1?null:w({},r,{rowIndex:s,columnIndex:i})}),my={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnFilterDebounceMs:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,dataSourceRevalidateMs:0,disableRowSelectionOnClick:!1,disableRowSelectionExcludeModel:!1,disableVirtualization:!1,editMode:zr.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:process.env.NODE_ENV==="production"?"error":"warn",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rows:[],rowSelection:!0,rowSpacingType:"margin",rowSpanning:!1,showCellVerticalBorder:!1,showColumnVerticalBorder:!1,showToolbar:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,virtualizeColumnsWithAutoRowHeight:!1,tabNavigation:"none"};function Jc(e){"@babel/helpers - typeof";return Jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jc(e)}function oY(e,t){if(Jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function eu(e){var t=oY(e,"string");return Jc(t)=="symbol"?t:t+""}const rY=e=>{const t=f.useRef({}),n=f.useRef(!1),r=f.useCallback(p=>{n.current||!p||(n.current=!0,Object.values(p.appliers).forEach(g=>{g()}),n.current=!1)},[]),s=f.useCallback((p,g,h)=>{t.current[p]||(t.current[p]={processors:new Map,processorsAsArray:[],appliers:{},processorsUpdated:!1});const b=t.current[p];return b.processors.get(g)!==h&&(b.processors.set(g,h),b.processorsAsArray=Array.from(t.current[p].processors.values()).filter(y=>y!==null),b.processorsUpdated=!0),()=>{t.current[p].processors.set(g,null),t.current[p].processorsAsArray=Array.from(t.current[p].processors.values()).filter(y=>y!==null)}},[]),i=f.useCallback((p,g,h)=>(t.current[p]||(t.current[p]={processors:new Map,processorsAsArray:[],appliers:{},processorsUpdated:!1}),t.current[p].appliers[g]=h,()=>{const b=t.current[p].appliers,m=ie(b,[g].map(eu));t.current[p].appliers=m}),[]),a=f.useCallback(p=>{r(t.current[p])},[r]),l=f.useCallback(()=>{for(const p in t.current){if(!Object.prototype.hasOwnProperty.call(t.current,p))continue;const g=t.current[p];g.processorsUpdated&&(g.processorsUpdated=!1,r(g))}},[r]),c=f.useCallback((...p)=>{const[g,h,b]=p;if(!t.current[g])return h;const m=t.current[g].processorsAsArray;let y=h;for(let C=0;C<m.length;C+=1)y=m[C](y,b);return y},[]),u={registerPipeProcessor:s,registerPipeApplier:i,requestPipeProcessorsApplication:a,runAppliersForPendingProcessors:l},d={unstable_applyPipeProcessors:c};et(e,u,"private"),et(e,d,"public")},ht=(e,t,n,r=!0)=>{const s=f.useRef(null),i=f.useRef(`mui-${Math.round(Math.random()*1e9)}`),a=f.useCallback(()=>{s.current=e.current.registerPipeProcessor(t,i.current,n)},[e,n,t]);cs(()=>{r&&a()});const l=f.useRef(!0);f.useEffect(()=>(l.current?l.current=!1:r&&a(),()=>{s.current&&(s.current(),s.current=null)}),[a,r])},by=(e,t,n)=>{const r=f.useRef(null),s=f.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=f.useCallback(()=>{r.current=e.current.registerPipeApplier(t,s.current,n)},[e,n,t]);cs(()=>{i()});const a=f.useRef(!0);f.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},sY=(e,t,n)=>{const r=Eb(n),s=_a(n),i=Ya(n),a=Math.min(i.enabled?i.paginationModel.pageSize:s,s);return w({},e,{rowsMeta:{currentPageTotalHeight:a*r,positions:Array.from({length:a},(l,c)=>c*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},iY=(e,t)=>{const n=e.current.virtualizer,{getRowHeight:r,setLastMeasuredRowIndex:s,storeRowHeightMeasurement:i,resetRowHeights:a,hydrateRowsMeta:l,observeRowHeight:c,rowHasAutoHeight:u,getRowHeightEntry:d,getLastMeasuredRowIndex:p}=n.api.rowsMeta;by(e,"rowHeight",l);const g={unstable_getRowHeight:r,unstable_setLastMeasuredRowIndex:s,unstable_storeRowHeightMeasurement:i,resetRowHeights:a},h={hydrateRowsMeta:l,observeRowHeight:c,rowHasAutoHeight:u,getRowHeightEntry:d,getLastMeasuredRowIndex:p};et(e,g,"public"),et(e,h,"private")},aY=De(ln,As,(e,t)=>{const n=e.length;return n===0?0:Bi(t[n-1]+e[n-1].computedWidth,1)}),lY=()=>mb((e,t,n,r,s)=>w({},e,{headerHeight:t,groupHeaderHeight:n,headerFilterHeight:r,headersTotalHeight:s}),{maxSize:1});function cY(){const e=_t(),t=Ie(),n=Hn(),{listView:r}=t,s=ue(n,ln),i=ue(n,ki),a=Ga(n),l=ue(n,Uc),c=f.useCallback(z=>l.has(z)&&n.current.isRowSelectable(z),[l,n]),u=PT(n),d=ue(n,_G),p=ue(n,Ib),g=ue(n,Tb),{autoHeight:h}=t,b=r,m=ue(n,Hc),y=IP(t.rowHeight,my.rowHeight,MP),C=Math.floor(y*m),S=Math.floor(t.columnHeaderHeight*m),x=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*m),E=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*m),P=ue(n,aY),M=cf(n,t),D=a.left.reduce((z,j)=>z+j.computedWidth,0),O=a.right.reduce((z,j)=>z+j.computedWidth,0),k=QE(n,t),I={rowHeight:C,headerHeight:S,columnsTotalWidth:P,leftPinnedWidth:D,rightPinnedWidth:O,topPinnedHeight:M,bottomPinnedHeight:0,autoHeight:h,minimalContentHeight:PP,scrollbarSize:t.scrollbarSize},F=lo(lY).current,T=ue(n,_a),R=ue(n,Ya),A=Math.min(R.enabled?R.paginationModel.pageSize:T,T),{getRowHeight:L,getEstimatedRowHeight:N,getRowSpacing:_}=t,H=t.slots.row,B=t.slotProps?.row;ue(n,ET);const $=lo(()=>new Mq({container:n.current.mainElementRef,scroller:n.current.virtualScrollerRef,scrollbarVertical:n.current.virtualScrollbarVerticalRef,scrollbarHorizontal:n.current.virtualScrollbarHorizontalRef})).current,V=Aq({layout:$,dimensions:I,virtualization:{isRtl:e,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx},colspan:{enabled:d,getColspan:f.useCallback((z,j)=>{if(typeof j.colSpan=="function"){const G=n.current.getRow(z),Q=n.current.getRowValue(G,j);return j.colSpan(Q,G,j,n)??0}return j.colSpan??1},[n])},initialState:{scroll:t.initialState?.scroll,rowSpanning:n.current.state.rowSpanning,virtualization:n.current.state.virtualization},rows:u.rows,range:u.range,rowCount:A,columns:s,pinnedRows:i,pinnedColumns:a,disableHorizontalScroll:r,disableVerticalScroll:k.overlayType==="noColumnsOverlay"||k.loadingOverlayVariant==="skeleton",getRowHeight:f.useMemo(()=>{if(L)return z=>L(w({},z,{densityFactor:m}))},[L,m]),getEstimatedRowHeight:f.useMemo(()=>N?z=>N(w({},z,{densityFactor:m})):void 0,[N,m]),getRowSpacing:f.useMemo(()=>_?z=>{const j=u.rowIdToIndexMap.get(z.id)??-1,G={isFirstVisible:j===0,isLastVisible:j===u.rows.length-1,indexRelativeToCurrentPage:j};return _(w({},z,G,{indexRelativeToCurrentPage:n.current.getRowIndexRelativeToVisibleRows(z.id)}))}:void 0,[n,_,u.rows,u.rowIdToIndexMap]),applyRowHeight:fe((z,j)=>n.current.unstable_applyPipeProcessors("rowHeight",z,j)),virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight,focusedVirtualCell:fe(()=>ET(n)),resizeThrottleMs:t.resizeThrottleMs,onResize:fe(z=>n.current.publishEvent("resize",z)),onWheel:fe(z=>{n.current.publishEvent("virtualScrollerWheel",{},z)}),onTouchMove:fe(z=>{n.current.publishEvent("virtualScrollerTouchMove",{},z)}),onRenderContextChange:fe(z=>{n.current.publishEvent("renderedRowsIntervalChange",z)}),onScrollChange:f.useCallback((z,j)=>{n.current.publishEvent("scrollPositionChange",{top:z.top,left:z.left,renderContext:j})},[n]),scrollReset:b,renderRow:f.useCallback(z=>v.jsx(H,w({row:z.model,rowId:z.id,index:z.rowIndex,selected:c(z.id),offsetLeft:z.offsetLeft,columnsTotalWidth:P,rowHeight:z.baseRowHeight,pinnedColumns:a,visibleColumns:s,firstColumnIndex:z.firstColumnIndex,lastColumnIndex:z.lastColumnIndex,focusedColumnIndex:z.focusedColumnIndex,isFirstVisible:z.isFirstVisible,isLastVisible:z.isLastVisible,isNotVisible:z.isVirtualFocusRow,showBottomBorder:z.showBottomBorder,scrollbarWidth:p,gridHasFiller:g},B),z.id),[P,g,c,a,H,B,p,s]),renderInfiniteLoadingTrigger:f.useCallback(z=>n.current.getInfiniteLoadingTriggerElement?.({lastRowId:z}),[n])});return cs(()=>{n.current.store.state.dimensions=F(V.store.state.dimensions,S,x,E,M),n.current.store.state.rowsMeta=V.store.state.rowsMeta,n.current.store.state.virtualization=V.store.state.virtualization}),Mi(V.store,hn.selectors.dimensions,(z,j)=>{j.isReady&&n.current.setState(G=>w({},G,{dimensions:F(j,S,x,E,M)}))}),Mi(V.store,hn.selectors.rowsMeta,(z,j)=>{j!==n.current.state.rowsMeta&&n.current.setState(G=>w({},G,{rowsMeta:j}))}),Mi(V.store,Wo.selectors.store,(z,j)=>{j.renderContext!==Zc&&j!==n.current.state.virtualization&&n.current.setState(G=>w({},G,{virtualization:j}))}),n.current.register("private",{virtualizer:V}),iY(n),V}const uY=e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:s,overlayType:i}=e;return pe({root:["main",r&&"main--hasPinnedRight",(s==="skeleton"||i==="noColumnsOverlay")&&"main--hiddenContent"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]},Je,t)},dY=U("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScroller,n.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),pY=e=>e.current.state.dimensions.rightPinnedWidth>0;function fY(e){const t=Hn(),n=Ie(),r=ue(t,pP),s=ue(t,dP),i=ue(t,pY),a=ue(t,Zj),{overlayType:l,loadingOverlayVariant:c}=QE(t,n),u=n.slots?.[l],d={classes:n.classes,hasScrollX:s,hasPinnedRight:i,overlayType:l,loadingOverlayVariant:c},p=uY(d),g=cY().api.getters,{getContainerProps:h,getScrollerProps:b,getContentProps:m,getPositionerProps:y,getScrollbarVerticalProps:C,getScrollbarHorizontalProps:S,getRows:x,getScrollAreaProps:E}=g,P=x(void 0,ct(t));return v.jsxs(JE,w({className:p.root},h(),{ownerState:d,children:[v.jsx(df,w({scrollDirection:"left"},E())),v.jsx(df,w({scrollDirection:"right"},E())),v.jsx(df,w({scrollDirection:"up"},E())),v.jsx(df,w({scrollDirection:"down"},E())),v.jsxs(dY,w({className:p.scroller},b(),{ownerState:d,children:[v.jsxs(WU,{children:[!n.listView&&v.jsx(BU,{}),v.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:g})]}),l&&v.jsx(xT,{overlayType:l,loadingOverlayVariant:c,children:v.jsx(u,w({},n.slotProps?.[l]))}),v.jsx(eT,w({},m(),{children:v.jsxs(nT,w({role:"rowgroup"},y(),{children:[P,v.jsx(n.slots.detailPanels,{virtualScroller:g})]}))})),a&&v.jsx(JU,{rowsLength:P.length}),v.jsx(n.slots.bottomContainer,{children:v.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:g})})]})),s&&v.jsxs(f.Fragment,{children:[n.pinnedColumnsSectionSeparator?.endsWith("shadow")&&v.jsx(ST,{position:"horizontal"}),v.jsx(gy,w({position:"horizontal"},S()))]}),r&&v.jsxs(f.Fragment,{children:[n.pinnedRowsSectionSeparator?.endsWith("shadow")&&v.jsx(ST,{position:"vertical"}),v.jsx(gy,w({position:"vertical"},C()))]}),s&&r&&v.jsx(Xq,{"aria-hidden":"true"}),e.children]}))}function hY(){const e=Ie();return e.hideFooter?null:v.jsx(e.slots.footer,w({},e.slotProps?.footer))}let yy;function gf(){return yy===void 0&&document.createElement("div").focus({get preventScroll(){return yy=!0,!1}}),yy}function gY({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=w({},e);return Object.keys(n).forEach(s=>{const i=s;n[i]!==void 0&&(r[i]=n[i])}),r}const mY=[e=>e.autoPageSize&&e.autoHeight&&["MUI X: `<DataGrid autoPageSize={true} autoHeight={true} />` are not valid props.","You cannot use both the `autoPageSize` and `autoHeight` props at the same time because `autoHeight` scales the height of the Data Grid according to the `pageSize`.","","Please remove one of these two props."].join(`
333
+ `)||void 0,e=>e.paginationMode==="client"&&e.paginationMeta!=null&&['MUI X: Usage of the `paginationMeta` prop with client-side pagination (`paginationMode="client"`) has no effect.','`paginationMeta` is only meant to be used with `paginationMode="server"`.'].join(`
334
+ `)||void 0,e=>e.signature===Mo.DataGrid&&e.paginationMode==="client"&&Rb(e.rowCount)&&['MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect.','`rowCount` is only meant to be used with `paginationMode="server"`.'].join(`
335
+ `)||void 0,e=>e.paginationMode==="server"&&e.rowCount==null&&!e.dataSource&&["MUI X: The `rowCount` prop must be passed using `paginationMode='server'`","For more detail, see http://mui.com/components/data-grid/pagination/#index-based-pagination"].join(`
336
+ `)||void 0];function bY(e,t){t.forEach(n=>{const r=n(e);r&&yn(r,"error")})}const yY=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},vY=e=>e===dE||yY(e)!==null,TT=(e,t)=>{if(e)if(t){if(e===pt.LEFT)return"right";if(e===pt.RIGHT)return"left"}else{if(e===pt.LEFT)return"left";if(e===pt.RIGHT)return"right"}};function tu(e,t,n,r){const s=TT(n,t);return!s||r===void 0||(e[s]=r),e}const CY=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],wY=["changeReason","unstable_updateValueOnRender"];pt.LEFT+"",Mn.LEFT,pt.RIGHT+"",Mn.RIGHT,pt.NONE+"",pt.VIRTUAL+"";const SY=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:s,isEditable:i,isSelected:a,isSelectionMode:l,classes:c}=e,u={root:["cell",`cell--text${de(t)}`,a&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",s===pt.LEFT&&"cell--pinnedLeft",s===pt.RIGHT&&"cell--pinnedRight",l&&!i&&"cell--selectionMode"]};return pe(u,Je,c)};let IT=!1;const vy=ze(function(t,n){const{column:r,row:s,rowId:i,rowNode:a,align:l,colIndex:c,width:u,className:d,style:p,colSpan:g,disableDragEvents:h,isNotVisible:b,pinnedOffset:m,pinnedPosition:y,showRightBorder:C,showLeftBorder:S,onClick:x,onDoubleClick:E,onMouseDown:P,onMouseUp:M,onMouseOver:D,onKeyDown:O,onKeyUp:k,onDragEnter:I,onDragOver:F}=t,T=ie(t,CY),R=Hn(),A=Ie(),L=_t(),N=r.field,_=ue(R,sq,{rowId:i,field:N}),B=Kp().hooks.useCellAggregationResult(i,N),$=_?Nt.Edit:Nt.View,{value:V,formattedValue:z}=B||{},j=R.current.getCellParamsForRow(i,N,s,{colDef:r,cellMode:$,rowNode:a,tabIndex:ue(R,()=>{const Te=Zb(R);return Te&&Te.field===N&&Te.id===i?0:-1}),hasFocus:ue(R,()=>{const Te=go(R);return Te?.id===i&&Te.field===N}),value:V,formattedValue:z});j.api=R.current,ue(R,()=>R.current.isCellEditable(j));const G=ue(R,()=>R.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:i,field:N})),Q=R.current.virtualizer.store,q=qt(Q,nl.selectors.hiddenCells),Y=qt(Q,nl.selectors.spannedCells),{hasFocus:K,isEditable:J=!1,value:X}=j,ee=($==="view"||!J)&&r.type!=="actions"?j.tabIndex:-1,{classes:W,getCellClassName:le}=A,re=[ue(R,()=>R.current.unstable_applyPipeProcessors("cellClassName",[],{id:i,field:N}).filter(Boolean).join(" "))];r.cellClassName&&re.push(typeof r.cellClassName=="function"?r.cellClassName(j):r.cellClassName),r.display==="flex"&&re.push(Z["cell--flex"]),le&&re.push(le(j));const ae=j.formattedValue??X,ne=f.useRef(null),te=tt(n,ne),ye=A.cellSelection??!1,ce={align:l,showLeftBorder:S,showRightBorder:C,isEditable:J,classes:A.classes,pinnedPosition:y,isSelected:G,isSelectionMode:ye},Se=SY(ce),we=f.useCallback(Te=>$e=>{const Ge=R.current.getCellParams(i,N||"");R.current.publishEvent(Te,Ge,$e),M&&M($e)},[R,N,M,i]),Be=f.useCallback(Te=>$e=>{const Ge=R.current.getCellParams(i,N||"");R.current.publishEvent(Te,Ge,$e),P&&P($e)},[R,N,P,i]),Fe=f.useCallback((Te,$e)=>Ge=>{if(!R.current.getRow(i))return;const ot=R.current.getCellParams(i,N||"");R.current.publishEvent(Te,ot,Ge),$e&&$e(Ge)},[R,N,i]),Ye=q[i]?.[c]??!1,Ne=Y[i]?.[c]??1,Ke=f.useMemo(()=>{if(b)return{padding:0,opacity:0,width:0,height:0,border:0};const Te=tu(w({"--width":`${u}px`},p),L,y,m),$e=y===pt.LEFT,Ge=y===pt.RIGHT;return Ne>1&&(Te.height=`calc(var(--height) * ${Ne})`,Te.zIndex=10,($e||Ge)&&(Te.zIndex=40)),Te},[u,b,p,m,y,L,Ne]);if(it(()=>{if(!K||$===Nt.Edit)return;const Te=Bt(R.current.rootElementRef.current);if(ne.current&&!ne.current.contains(Te.activeElement)){const Ge=ne.current.querySelector('[tabindex="0"]')||ne.current;if(gf())Ge.focus({preventScroll:!0});else{const ot=R.current.getScrollPosition();Ge.focus(),R.current.scroll(ot)}}},[K,$,R]),Ye)return v.jsx("div",{"data-colindex":c,role:"presentation",style:w({width:"var(--width)"},Ke)});let He=T.onFocus;process.env.NODE_ENV==="test"&&A.experimentalFeatures?.warnIfFocusStateIsNotSynced&&(He=Te=>{const $e=go(R);if($e?.id===i&&$e.field===N){typeof T.onFocus=="function"&&T.onFocus(Te);return}IT||(console.warn([`MUI X: The cell with id=${i} and field=${N} received focus.`,`According to the state, the focus should be at id=${$e?.id}, field=${$e?.field}.`,"Not syncing the state may cause unwanted behaviors since the `cellFocusIn` event won't be fired.","Call `fireEvent.mouseUp` before the `fireEvent.click` to sync the focus with the state."].join(`
337
+ `)),IT=!0)});let me,Pe;if(_===null&&r.renderCell&&(me=r.renderCell(j)),_!==null&&r.renderEditCell){const Te=R.current.getRowWithUpdatedValues(i,r.field),$e=ie(_,wY),Ge=r.valueFormatter?r.valueFormatter(_.value,Te,r,R):j.formattedValue,ot=w({},j,{row:Te,formattedValue:Ge},$e);me=r.renderEditCell(ot),re.push(Z["cell--editing"]),re.push(W?.["cell--editing"])}if(me===void 0){const Te=ae?.toString();me=Te,Pe=Te}const ge=h?null:{onDragEnter:Fe("cellDragEnter",I),onDragOver:Fe("cellDragOver",F)};return v.jsx("div",w({className:se(Se.root,re,d),role:"gridcell","data-field":N,"data-colindex":c,"aria-colindex":c+1,"aria-colspan":g,"aria-rowspan":Ne,style:Ke,title:Pe,tabIndex:ee,onClick:Fe("cellClick",x),onDoubleClick:Fe("cellDoubleClick",E),onMouseOver:Fe("cellMouseOver",D),onMouseDown:Be("cellMouseDown"),onMouseUp:we("cellMouseUp"),onKeyDown:Fe("cellKeyDown",O),onKeyUp:Fe("cellKeyUp",k)},ge,T,{onFocus:He,ref:te,children:me}))});process.env.NODE_ENV!=="production"&&(vy.displayName="GridCell"),process.env.NODE_ENV!=="production"&&(vy.propTypes={align:o.oneOf(["center","left","right"]).isRequired,colIndex:o.number.isRequired,colSpan:o.number,column:o.object.isRequired,disableDragEvents:o.bool,isNotVisible:o.bool.isRequired,pinnedOffset:o.number,pinnedPosition:o.oneOf([0,1,2,3]).isRequired,row:o.object.isRequired,rowId:o.oneOfType([o.number,o.string]).isRequired,rowNode:o.object.isRequired,showLeftBorder:o.bool.isRequired,showRightBorder:o.bool.isRequired,width:o.number.isRequired});const xY=vr(vy),PY=["field","type","align","width","height","empty","style","className"],MT="1.3em",EY="1.2em",OT=[40,80],TY={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},IY=e=>{const{align:t,classes:n,empty:r}=e,s={root:["cell","cellSkeleton",`cell--text${t?de(t):"Left"}`,r&&"cellEmpty"]};return pe(s,Je,n)},MY=NG(12345);function kT(e){const{field:t,type:n,align:r,width:s,height:i,empty:a=!1,style:l,className:c}=e,u=ie(e,PY),d=Ie(),p={classes:d.classes,align:r,empty:a},g=IY(p),h=f.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:MT,height:MT};const[m,y]=n?TY[n]??OT:OT;return{variant:"text",width:`${Math.round(MY(m,y))}%`,height:EY}},[n]);return v.jsx("div",w({"data-field":t,className:se(g.root,c),style:w({height:i,maxWidth:s,minWidth:s},l)},u,{children:!a&&v.jsx(d.slots.baseSkeleton,w({},h))}))}process.env.NODE_ENV!=="production"&&(kT.propTypes={align:o.string,empty:o.bool,field:o.string,height:o.oneOfType([o.oneOf(["auto"]),o.number]),type:o.oneOf(["actions","boolean","custom","date","dateTime","number","singleSelect","string"]),width:o.oneOfType([o.number,o.string])});const OY=vr(kT),kY=10,mf=-5,ol=1,DT={width:3,rx:1.5,x:10.5},DY="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",FY=e=>e.current.state.dimensions.isReady?e.current.state.dimensions.hasScrollX&&(!e.current.state.dimensions.hasScrollY||e.current.state.dimensions.scrollbarSize===0):e.current.state.dimensions.scrollbarSize===0,NY=U("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>{const n=[t.root];return Gp.root.forEach(r=>{n.push({[`&.${Z[r]}`]:t[r]})}),Gp.children.forEach(r=>{n.push({[`& .${Z[r]}`]:t[r]})}),n}})(()=>{const e=Hn(),t=ue(e,FY),n=Ee.colors.background.base,r=Ee.header.background.base,s=Ee.cell.background.pinned,i=RY(Ee.colors.interactive.hover),a=Ee.colors.interactive.hoverOpacity,l=Ee.colors.interactive.selected,c=Ee.colors.interactive.selectedOpacity,u=l,d=`calc(${c} + ${a})`,p={hover:Ee.colors.interactive.hover,selected:l,selectedHover:l},g=zs(n,i,a,p.hover),h=zs(n,l,c,p.selected),b=zs(n,u,d,p.selectedHover),m=zs(s,i,a,p.hover),y=zs(s,l,c,p.selected),C=zs(s,u,d,p.selectedHover),S=O=>({[`& .${Z["cell--pinnedLeft"]}, & .${Z["cell--pinnedRight"]}`]:{backgroundColor:O,"&.Mui-selected":{backgroundColor:zs(O,h,c,p.selected),"&:hover":{backgroundColor:zs(O,b,d,p.selectedHover)}}}}),x=S(m),E=S(y),P=S(C),M={backgroundColor:h,"&:hover":{backgroundColor:b,"@media (hover: none)":{backgroundColor:h}}};return{"--unstable_DataGrid-radius":Ee.radius.base,"--unstable_DataGrid-headWeight":Ee.typography.fontWeight.medium,"--DataGrid-rowBorderColor":Ee.colors.border.base,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:Ee.colors.border.base,borderRadius:"var(--unstable_DataGrid-radius)",backgroundColor:Ee.colors.background.base,color:Ee.colors.foreground.base,font:Ee.typography.font.body,outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${Z.main} > *:first-child${DY}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${Z.autoHeight}`]:{height:"auto"},[`&.${Z.autosizing}`]:{[`& .${Z.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${Z.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${Z.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${Z.groupingCriteriaCell}`]:{width:"unset"},[`& .${Z.treeDataGroupingCell}`]:{width:"unset"},[`& .${Z["columnHeader--filter"]}`]:{flex:"none !important",width:"unset !important"}},[`&.${Z.withSidePanel}`]:{flexDirection:"row"},[`& .${Z.mainContent}`]:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1},[`& .${Z.columnHeader}, & .${Z.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${Z.columnHeader}:focus-within, & .${Z.cell}:focus-within`]:{outline:`solid ${FT(Ee.colors.interactive.focus,.5)} ${ol}px`,outlineOffset:ol*-1},[`& .${Z.columnHeader}:focus, & .${Z.cell}:focus`]:{outline:`solid ${Ee.colors.interactive.focus} ${ol}px`,outlineOffset:ol*-1},[`& .${Z.columnHeader}:focus,
338
+ & .${Z["columnHeader--withLeftBorder"]},
339
+ & .${Z["columnHeader--withRightBorder"]},
340
+ & .${Z["columnHeader--siblingFocused"]}
341
+ `]:{[`& .${Z.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${Z["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${Z["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${Z["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${Z["root--noToolbar"]} [aria-rowindex="1"] .${Z["columnHeader--last"]}`]:{borderTopRightRadius:t?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${Z.columnHeaderCheckbox}, & .${Z.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${Z.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",backgroundColor:r},[`& .${Z.columnHeader} .${Z.sortButton}`]:{backgroundColor:Ee.header.background.base},[`& .${Z["columnHeader--filter"]}`]:{paddingTop:8,paddingBottom:8,paddingRight:5,minHeight:"min-content",overflow:"hidden"},[`&.${Z["root--densityCompact"]} .${Z["columnHeader--filter"]}`]:{paddingTop:4,paddingBottom:4},[`& .${Z["virtualScroller--hasScrollX"]} .${Z["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${Z["pivotPanelField--sorted"]} .${Z.iconButtonContainer},
342
+ & .${Z["columnHeader--sorted"]} .${Z.iconButtonContainer},
343
+ & .${Z["columnHeader--filtered"]} .${Z.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Z.pivotPanelField}:not(.${Z["pivotPanelField--sorted"]}) .${Z.sortButton},
344
+ & .${Z.columnHeader}:not(.${Z["columnHeader--sorted"]}) .${Z.sortButton}`]:{opacity:0,transition:Ee.transition(["opacity"],{duration:Ee.transitions.duration.short})},[`& .${Z.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:Ee.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${Z.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${Z["columnHeader--filledGroup"]} .${Z.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${Z.sortIcon}, & .${Z.filterIcon}`]:{fontSize:"inherit"},[`& .${Z["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${Z["columnHeader--alignCenter"]} .${Z.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${Z["columnHeader--alignRight"]} .${Z.columnHeaderDraggableContainer}, & .${Z["columnHeader--alignRight"]} .${Z.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${Z["columnHeader--alignCenter"]} .${Z.menuIcon}`]:{marginLeft:"auto"},[`& .${Z["columnHeader--alignRight"]} .${Z.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${Z["columnHeader--moving"]}`]:{backgroundColor:g},[`& .${Z["columnHeader--pinnedLeft"]}, & .${Z["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:Ee.header.background.base},[`& .${Z.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:kY,color:Ee.colors.border.base},[`& .${Z.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)",backgroundColor:r},"@media (hover: hover)":{[`& .${Z.columnHeader}:hover`]:{[`& .${Z.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${Z.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${Z.columnHeader}:not(.${Z["columnHeader--sorted"]}):hover .${Z.sortButton},
345
+ & .${Z.pivotPanelField}:not(.${Z["pivotPanelField--sorted"]}):hover .${Z.sortButton},
346
+ & .${Z.pivotPanelField}:not(.${Z["pivotPanelField--sorted"]}) .${Z.sortButton}:focus-visible`]:{opacity:1},[`& .${Z.columnHeader}:not(.${Z["columnHeader--sorted"]}):hover .${Z.sortButton} > *,
347
+ & .${Z.pivotPanelField}:not(.${Z["pivotPanelField--sorted"]}):hover .${Z.sortButton} > *,
348
+ & .${Z.pivotPanelField}:not(.${Z["pivotPanelField--sorted"]}) .${Z.sortButton}:focus-visible > *`]:{opacity:.78},[`& .${Z.pivotPanelFieldActionContainer} button:hover`]:{backgroundColor:Ee.colors.background.base}},"@media (hover: none)":{[`& .${Z.columnHeader} .${Z.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${Z.columnHeader}:focus,
349
+ & .${Z["columnHeader--siblingFocused"]}`]:{[`.${Z["columnSeparator--resizable"]}`]:{color:Ee.colors.foreground.accent}},[`& .${Z.pivotPanelField}:not(.${Z["pivotPanelField--sorted"]}) .${Z.sortButton}`]:{opacity:.78}},[`& .${Z["columnHeader--withLeftBorder"]} .${Z["columnSeparator--sideLeft"]}:not(.${Z["columnSeparator--resizable"]}), & .${Z["columnHeader--withRightBorder"]} .${Z["columnSeparator--sideRight"]}:not(.${Z["columnSeparator--resizable"]})`]:{display:"none"},[`& .${Z["columnSeparator--sideLeft"]}`]:{left:mf},[`& .${Z["columnSeparator--sideRight"]}`]:{right:mf},[`& .${Z["columnHeader--withRightBorder"]} .${Z["columnSeparator--sideLeft"]}`]:{left:mf-.5},[`& .${Z["columnHeader--withRightBorder"]} .${Z["columnSeparator--sideRight"]}`]:{right:mf-.5},[`& .${Z["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${Z["columnSeparator--resizing"]}`]:{color:Ee.colors.foreground.accent},"@media (hover: none)":{[`& .${Z.iconSeparator} rect`]:DT},"@media (hover: hover)":{"&:hover":{color:Ee.colors.foreground.accent,[`& .${Z.iconSeparator} rect`]:DT}},"& svg":{pointerEvents:"none"}},[`& .${Z.iconSeparator}`]:{color:"inherit",transition:Ee.transition(["color","width"],{duration:Ee.transitions.duration.short})},[`& .${Z.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${Z.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${Z.headerFilterRow}`]:{[`& .${Z.columnHeader}, & .${Z.scrollbarFiller}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${Z["row--borderBottom"]} .${Z.columnHeader},
350
+ & .${Z["row--borderBottom"]} .${Z.filler},
351
+ & .${Z["row--borderBottom"]} .${Z.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${Z["row--borderBottom"]} .${Z.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${Z.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${Z["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:g,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Z.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":M,position:"relative"},[`& .${Z.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":M},[`& .${Z["virtualScrollerContent--overflowed"]} .${Z["row--lastVisible"]} .${Z.cell}`]:{borderTopColor:"transparent"},[`& .${Z.pinnedRows} .${Z.row}, .${Z.aggregationRowOverlayWrapper} .${Z.row}`]:{backgroundColor:s,"&:hover":{backgroundColor:m}},[`& .${Z["pinnedRows--top"]} :first-of-type`]:{[`& .${Z.cell}, .${Z.scrollbarFiller}`]:{borderTop:"none"}},[`&.${Z["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${Z["row--dynamicHeight"]} > .${Z.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${Z.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${Z.cell}.${Z["cell--selectionMode"]}`]:{cursor:"default"},[`& .${Z.cell}.${Z["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:Ee.shadows.base,backgroundColor:Ee.colors.background.overlay,"&:focus-within":{outline:`${ol}px solid ${Ee.colors.interactive.focus}`,outlineOffset:ol*-1}},[`& .${Z["cell--editing"]}`]:{"& .MuiInputBase-root":{height:"100%"}},[`& .${Z["row--editing"]}`]:{boxShadow:Ee.shadows.base},[`& .${Z["row--editing"]} .${Z.cell}`]:{boxShadow:"none",backgroundColor:Ee.colors.background.overlay},[`& .${Z.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${Z.booleanCell}[data-value="true"]`]:{color:Ee.colors.foreground.muted},[`& .${Z.booleanCell}[data-value="false"]`]:{color:Ee.colors.foreground.disabled},[`& .${Z.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:Ee.spacing(1)},[`& .${Z.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:Ee.colors.interactive.disabledOpacity},[`& .${Z["rowReorderCell--draggable"]}`]:{cursor:"grab",opacity:1},[`& .${Z.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${Z.withBorderColor}`]:{borderColor:Ee.colors.border.base},[`& .${Z["cell--withLeftBorder"]}, & .${Z["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${Z["cell--withRightBorder"]}, & .${Z["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${Z["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${Z["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${Z["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${Z["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${Z["cell--pinnedLeft"]}, & .${Z["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:Ee.cell.background.pinned,"&.Mui-selected":{backgroundColor:y}},[`& .${Z.row}`]:{"&:hover":x,"&.Mui-selected":E,"&.Mui-selected:hover":P},[`& .${Z.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${Z.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${Z.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${Z.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${Z["columnHeader--dragging"]}`]:{background:Ee.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:Ee.colors.interactive.disabledOpacity},[`& .${Z["row--dragging"]}`]:{background:Ee.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",border:"1px solid var(--DataGrid-rowBorderColor)",color:Ee.colors.foreground.base,transform:"translateZ(0)",[`& .${Z.rowReorderCellPlaceholder}`]:{padding:"0 6px",display:"flex"}},[`& .${Z.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Z.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:Ee.spacing(2)},[`& .${Z.treeDataGroupingCellLoadingContainer}, .${Z.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${Z.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Z.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:Ee.spacing(2)},[`& .${Z.columnHeaders} .${Z.scrollbarFiller}`]:{backgroundColor:r},[`.${Z.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",backgroundColor:r,[`&.${Z["scrollbarFiller--pinnedRight"]}`]:{position:"sticky",zIndex:40,right:0}},[`& .${Z.filler}`]:{flex:"1 0 auto"},[`& .${Z["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${Z.columnHeaders} .${Z.filler}`]:{backgroundColor:r},[`& .${Z["main--hiddenContent"]}`]:{[`& .${Z.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${Z.pinnedRows}`]:{display:"none"}},[`& .${Z["row--beingDragged"]}`]:{color:Ee.colors.foreground.disabled,"&:hover":{backgroundColor:"transparent"}}}});function FT(e,t){return`rgba(from ${e} r g b / ${t})`}function RY(e){return FT(e,1)}const Cy=typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("color","color-mix(in srgb, red 50%, blue 50%)"),wy=(e,t)=>Cy?e:t;function zs(e,t,n,r){return wy(`color-mix(in srgb,${e}, ${t} calc(${n} * 100%))`,r)}const LY=()=>()=>{},$Y=()=>!1,AY=()=>!0,VY=()=>Cb.useSyncExternalStore(LY,$Y,AY),Sy=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(Sy.displayName="GridPanelContext");function xy(){const e=f.useContext(Sy);if(e===void 0)throw new Error("MUI X: Missing context.");return e}function _Y({children:e}){const t=f.useRef(null),n=f.useRef(null),r=f.useRef(null),s=f.useMemo(()=>({columnsPanelTriggerRef:t,filterPanelTriggerRef:n,aiAssistantPanelTriggerRef:r}),[]);return v.jsx(Sy.Provider,{value:s,children:e})}function BY(){const e=Xe(),t=ue(e,jo),n=Ie(),r=ue(e,_i),{columnsPanelTriggerRef:s,filterPanelTriggerRef:i,aiAssistantPanelTriggerRef:a}=xy(),l=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??mo.filters);let c=null;switch(r.openedPanelValue){case mo.filters:c=i.current;break;case mo.columns:c=s.current;break;case mo.aiAssistant:c=a.current;break}return v.jsx(n.slots.panel,w({id:r.panelId,open:t.length>0&&r.open,"aria-labelledby":r.labelId,target:c,onClose:()=>e.current.hidePreferences()},n.slotProps?.panel,{children:l}))}function HY(){const e=Ie();return v.jsxs(f.Fragment,{children:[v.jsx(BY,{}),e.showToolbar&&v.jsx(e.slots.toolbar,w({},e.slotProps?.toolbar))]})}const zY=["className","children","sidePanel"],jY=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:s}=e,i={root:["root",n&&"autoHeight",`root--density${de(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",s&&"withVerticalBorder"]};return pe(i,Je,r)},Py=ze(function(t,n){const r=Ie(),{className:s,children:i,sidePanel:a}=t,l=ie(t,zY),c=Hn(),u=ue(c,za),d=c.current.rootElementRef,p=f.useCallback(C=>{C!==null&&c.current.publishEvent("rootMount",C)},[c]),g=tt(d,n,p),h=r,b=jY(h,u),m=KG();return VY()?null:v.jsxs(NY,w({className:se(b.root,s,m.className,a&&Z.withSidePanel),ownerState:h},l,{ref:g,children:[v.jsxs("div",{className:Z.mainContent,role:"presentation",children:[v.jsx(HY,{}),v.jsx(fY,{children:i}),v.jsx(hY,{})]}),a,m.tag]}))});process.env.NODE_ENV!=="production"&&(Py.displayName="GridRoot"),process.env.NODE_ENV!=="production"&&(Py.propTypes={sidePanel:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const GY=vr(Py),WY=["className"],UY=e=>{const{classes:t}=e;return pe({root:["footerContainer","withBorderColor"]},Je,t)},qY=Nr("div",{name:"MuiDataGrid",slot:"FooterContainer"})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),Ey=ze(function(t,n){const{className:r}=t,s=ie(t,WY),i=Ie(),a=UY(i);return v.jsx(qY,w({className:se(a.root,r),ownerState:i},s,{ref:n}))});process.env.NODE_ENV!=="production"&&(Ey.displayName="GridFooterContainer"),process.env.NODE_ENV!=="production"&&(Ey.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const YY=["className"],KY=e=>{const{classes:t}=e;return pe({root:["overlay"]},Je,t)},XY=Nr("div",{name:"MuiDataGrid",slot:"Overlay"})({width:"100%",height:"100%",display:"flex",gap:Ee.spacing(1),flexDirection:"column",alignSelf:"center",alignItems:"center",justifyContent:"center",textAlign:"center",textWrap:"balance",backgroundColor:Ee.colors.background.backdrop}),rl=ze(function(t,n){const{className:r}=t,s=ie(t,YY),i=Ie(),a=KY(i);return v.jsx(XY,w({className:se(a.root,r),ownerState:i},s,{ref:n}))});process.env.NODE_ENV!=="production"&&(rl.displayName="GridOverlay"),process.env.NODE_ENV!=="production"&&(rl.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Ur(e,t,n,r={}){return typeof t=="function"?t(n,r):t?(t.props.className&&(n.className=ZY(t.props.className,n.className)),(t.props.style||n.style)&&(n.style=w({},n.style,t.props.style)),f.cloneElement(t,n)):f.createElement(e,n)}function ZY(e,t){return!e||!t?e||t:`${e} ${t}`}const Ty=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ty.displayName="ToolbarContext");function QY(){const e=f.useContext(Ty);if(e===void 0)throw new Error("MUI X: Missing context. Toolbar subcomponents must be placed within a <Toolbar /> component.");return e}function JY(e,t){if(!e.ref.current||!t.ref.current)return 0;const n=e.ref.current.compareDocumentPosition(t.ref.current);return n?n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0:0}const eK=["render","className"],tK=e=>{const{classes:t}=e;return pe({root:["toolbar"]},Je,t)},nK=U("div",{name:"MuiDataGrid",slot:"Toolbar"})({flex:"0 1 1px",display:"flex",alignItems:"center",justifyContent:"end",gap:Ee.spacing(.25),padding:Ee.spacing(.75),minHeight:52,boxSizing:"border-box",borderBottom:`1px solid ${Ee.colors.border.base}`}),Iy=ze(function(t,n){const{render:r,className:s}=t,i=ie(t,eK),a=Ie(),l=tK(a),[c,u]=f.useState(null),[d,p]=f.useState([]),g=f.useCallback(()=>d.sort(JY),[d]),h=f.useCallback((P,M,D=!0)=>{let O=P;const k=g(),I=k.length;for(let F=0;F<I;F+=1){if(O+=M,O>=I){if(!D)return-1;O=0}else if(O<0){if(!D)return-1;O=I-1}if(!k[O].ref.current?.disabled&&k[O].ref.current?.ariaDisabled!=="true")return O}return-1},[g]),b=f.useCallback((P,M)=>{p(D=>[...D,{id:P,ref:M}])},[]),m=f.useCallback(P=>{p(M=>M.filter(D=>D.id!==P))},[]),y=f.useCallback(P=>{if(!c)return;const M=g(),D=M.findIndex(k=>k.id===c);let O=-1;if(P.key==="ArrowRight"?(P.preventDefault(),O=h(D,1)):P.key==="ArrowLeft"?(P.preventDefault(),O=h(D,-1)):P.key==="Home"?(P.preventDefault(),O=h(-1,1,!1)):P.key==="End"&&(P.preventDefault(),O=h(M.length,-1,!1)),O>=0&&O<M.length){const k=M[O];u(k.id),k.ref.current?.focus()}},[g,c,h]),C=f.useCallback(P=>{c!==P&&u(P)},[c,u]),S=f.useCallback(P=>{const M=g(),D=M.findIndex(k=>k.id===P),O=h(D,1);if(O>=0&&O<M.length){const k=M[O];u(k.id),k.ref.current?.focus()}},[g,h]);f.useEffect(()=>{const P=g();if(P.length>0){if(!c){u(P[0].id);return}const M=P.findIndex(D=>D.id===c);if(P[M]){if(M===-1){const D=P[M];D&&(u(D.id),D.ref.current?.focus())}}else{const D=P[P.length-1];D&&(u(D.id),D.ref.current?.focus())}}},[g,h]);const x=f.useMemo(()=>({focusableItemId:c,registerItem:b,unregisterItem:m,onItemKeyDown:y,onItemFocus:C,onItemDisabled:S}),[c,b,m,y,C,S]),E=Ur(nK,r,w({role:"toolbar","aria-orientation":"horizontal","aria-label":a.label||void 0,className:se(l.root,s)},i,{ref:n}));return v.jsx(Ty.Provider,{value:x,children:E})});process.env.NODE_ENV!=="production"&&(Iy.displayName="Toolbar"),process.env.NODE_ENV!=="production"&&(Iy.propTypes={render:o.oneOfType([o.element,o.func])});const oK=["render","onKeyDown","onFocus","disabled","aria-disabled"],sl=ze(function(t,n){const{render:r,onKeyDown:s,onFocus:i,disabled:a,"aria-disabled":l}=t,c=ie(t,oK),u=at(),d=Ie(),p=f.useRef(null),g=tt(p,n),{focusableItemId:h,registerItem:b,unregisterItem:m,onItemKeyDown:y,onItemFocus:C,onItemDisabled:S}=QY(),x=O=>{y(O),s?.(O)},E=O=>{C(u),i?.(O)};f.useEffect(()=>(b(u,p),()=>m(u)),[]);const P=f.useRef(a);f.useEffect(()=>{P.current!==a&&a===!0&&S(u,a),P.current=a},[a,u,S]);const M=f.useRef(l);f.useEffect(()=>{M.current!==l&&l===!0&&S(u,!0),M.current=l},[l,u,S]);const D=Ur(d.slots.baseIconButton,r,w({},d.slotProps?.baseIconButton,{tabIndex:h===u?0:-1},c,{disabled:a,"aria-disabled":l,onKeyDown:x,onFocus:E,ref:g}));return v.jsx(f.Fragment,{children:D})});process.env.NODE_ENV!=="production"&&(sl.displayName="ToolbarButton"),process.env.NODE_ENV!=="production"&&(sl.propTypes={className:o.string,color:o.oneOf(["default","inherit","primary"]),disabled:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,label:o.string,render:o.oneOfType([o.element,o.func]),role:o.string,size:o.oneOf(["large","medium","small"]),style:o.object,tabIndex:o.number,title:o.string,touchRippleRef:o.any});function NT(e){const{apiRef:t,colDef:n,defaultSlots:r,defaultSlotProps:s,slots:i={},slotProps:a={}}=e,l=w({},r,i);let c=s;if(a&&Object.keys(a).length>0){const b=w({},a);Object.entries(s).forEach(([m,y])=>{b[m]=w({},y,a[m]||{})}),c=b}const u=t.current.unstable_applyPipeProcessors("columnMenu",[],n),d=Object.keys(r),p=Object.keys(i).filter(b=>!d.includes(b));return Array.from(new Set([...u,...p])).filter(b=>l[b]!=null).sort((b,m)=>{const y=c[b],C=c[m],S=Number.isFinite(y?.displayOrder)?y.displayOrder:100,x=Number.isFinite(C?.displayOrder)?C.displayOrder:100;return S-x})}const rK=e=>{const{classes:t,open:n}=e;return pe({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Je,t)},RT=f.memo(e=>{const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:s,iconButtonRef:i}=e,a=Xe(),l=Ie(),c=w({},e,{classes:l.classes}),u=rK(c),d=f.useCallback(g=>{g.preventDefault(),g.stopPropagation(),a.current.toggleColumnMenu(t.field)},[a,t.field]),p=t.headerName??t.field;return v.jsx("div",{className:u.root,children:v.jsx(l.slots.baseTooltip,w({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},l.slotProps?.baseTooltip,{children:v.jsx(l.slots.baseIconButton,w({ref:i,tabIndex:-1,className:u.button,"aria-label":a.current.getLocaleText("columnMenuAriaLabel")(p),size:"small",onClick:d,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:s},l.slotProps?.baseIconButton,{children:v.jsx(l.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});process.env.NODE_ENV!=="production"&&(RT.displayName="ColumnHeaderMenuIcon");function LT({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:s,open:i,target:a,onExited:l}){const c=Xe(),u=c.current.getColumn(s),d=fe(p=>{p&&(p.stopPropagation(),a?.contains(p.target))||c.current.hideColumnMenu()});return!a||!u?null:v.jsx(Wa,{position:`bottom-${u.align==="right"?"start":"end"}`,open:i,target:a,onClose:d,onExited:l,children:v.jsx(n,w({colDef:u,hideMenu:d,open:i,id:e,labelledby:t},r))})}process.env.NODE_ENV!=="production"&&(LT.propTypes={columnMenuButtonId:o.string,columnMenuId:o.string,ContentComponent:o.elementType.isRequired,contentComponentProps:o.any,field:o.string.isRequired,onExited:o.func,open:o.bool.isRequired,target:er});function sK(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function bf(e,t){return e.closest(`.${t}`)}function qr(e){return e.replace(/["\\]/g,"\\$&")}function iK(e,t){return e.querySelector(`[role="columnheader"][data-field="${qr(t)}"]`)}function $T(e){return`.${Z.row}[data-id="${qr(String(e))}"]`}function aK(e,t){return e.querySelector($T(t))}function lK(e,{id:t,field:n}){const r=$T(t),s=`.${Z.cell}[data-field="${qr(n)}"]`,i=`${r} ${s}`;return e.querySelector(i)}function il(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function cK(e){return e.getAttribute("data-field")}function uK(e,t){return e.querySelector(`[data-field="${qr(t)}"]`)}function dK(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function pK(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${qr(t)}-|"]`)??[])}function fK(e,t){if(!bf(e,Z.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const s=Number(r)-1,i=[];return t.virtualScrollerRef?.current?(BT(t).forEach(a=>{const l=a.getAttribute("data-id");if(!l)return;let c=s;const u=t.unstable_getCellColSpanInfo(l,s);u&&u.spannedByColSpan&&(c=u.leftVisibleCellIndex);const d=a.querySelector(`[data-colindex="${c}"]`);d&&i.push(d)}),i):[]}function AT(e,t){return e.rootElementRef.current.querySelector(`.${Z[t]}`)}const VT=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const s=[];return BT(e).forEach(i=>{i.getAttribute("data-id")&&i.querySelectorAll(`.${Z[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(l=>{const c=al(l);c!==null&&r(c)&&s.push(l)})}),s};function hK(e,t,n){const r=al(t);return VT({api:e,colIndex:r,position:n?"right":"left",filterFn:s=>n?s<r:s>r})}function gK(e,t,n){const r=al(t);return VT({api:e,colIndex:r,position:n?"left":"right",filterFn:s=>n?s>r:s<r})}const _T=({api:e,colIndex:t,position:n,filterFn:r})=>{if(!e.columnHeadersContainerRef?.current)return[];if(t===null)return[];const s=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${Z[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(i=>{const a=al(i);a!==null&&r(a,i)&&s.push(i)}),s};function mK(e,t,n){const r=al(t);return _T({api:e,position:n?"right":"left",colIndex:r,filterFn:s=>n?s<r:s>r})}function bK(e,t,n){const r=al(t);return _T({api:e,position:n?"left":"right",colIndex:r,filterFn:(s,i)=>i.classList.contains(Z["columnHeader--last"])?!1:n?s>r:s<r})}function yK(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${qr(t)}"][role="columnheader"]`)}function vK(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > .${Z.headerFilterRow} > [data-field="${qr(t)}"]`)}function CK(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${qr(t)}"][role="gridcell"]`))}function BT(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${Z.row}`)}function al(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const wK=["className","aria-label"],SK=e=>{const{classes:t}=e;return pe({root:["columnHeaderTitle"]},Je,t)},xK=U("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle"})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),HT=ze(function(t,n){const{className:r}=t,s=ie(t,wK),i=Ie(),a=SK(i);return v.jsx(xK,w({className:se(a.root,r),ownerState:i},s,{ref:n}))});process.env.NODE_ENV!=="production"&&(HT.displayName="ColumnHeaderInnerTitle");function zT(e){const{label:t,description:n}=e,r=Ie(),s=f.useRef(null),[i,a]=f.useState(""),l=f.useCallback(()=>{if(!n&&s?.current){const c=sK(s.current);a(c?t:"")}},[n,t]);return v.jsx(r.slots.baseTooltip,w({title:n||i},r.slotProps?.baseTooltip,{children:v.jsx(HT,{onMouseOver:l,ref:s,children:t})}))}process.env.NODE_ENV!=="production"&&(zT.propTypes={columnWidth:o.number.isRequired,description:o.node,label:o.string.isRequired});const PK=["resizable","resizing","height","side"];var My=(function(e){return e.Left="left",e.Right="right",e})(My||{});const EK=e=>{const{resizable:t,resizing:n,classes:r,side:s}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",s&&`columnSeparator--side${de(s)}`],icon:["iconSeparator"]};return pe(i,Je,r)};function jT(e){const{height:t,side:n=My.Right}=e,r=ie(e,PK),s=Ie(),i=w({},e,{side:n,classes:s.classes}),a=EK(i),l=f.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return v.jsx("div",w({className:a.root,style:{minHeight:t}},r,{onClick:l,children:v.jsx(s.slots.columnResizeIcon,{className:a.icon})}))}const GT=f.memo(jT);process.env.NODE_ENV!=="production"&&(GT.displayName="GridColumnHeaderSeparator"),process.env.NODE_ENV!=="production"&&(jT.propTypes={height:o.number.isRequired,resizable:o.bool.isRequired,resizing:o.bool.isRequired,side:o.oneOf(["left","right"])});const TK=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],Oy=ze(function(t,n){const{classes:r,colIndex:s,height:i,isResizing:a,sortDirection:l,tabIndex:c,separatorSide:u,isDraggable:d,headerComponent:p,description:g,width:h,columnMenuIconButton:b=null,columnMenu:m=null,columnTitleIconButtons:y=null,headerClassName:C,label:S,resizable:x,draggableContainerProps:E,columnHeaderSeparatorProps:P,style:M}=t,D=ie(t,TK),O=Ie(),k=f.useRef(null),I=tt(k,n);let F="none";return l!=null&&(F=l==="asc"?"ascending":"descending"),v.jsxs("div",w({className:se(r.root,C),style:w({},M,{width:h}),role:"columnheader",tabIndex:c,"aria-colindex":s+1,"aria-sort":F},D,{ref:I,children:[v.jsxs("div",w({className:r.draggableContainer,draggable:d,role:"presentation"},E,{children:[v.jsxs("div",{className:r.titleContainer,role:"presentation",children:[v.jsx("div",{className:r.titleContainerContent,children:p!==void 0?p:v.jsx(zT,{label:S,description:g,columnWidth:h})}),y]}),b]})),v.jsx(GT,w({resizable:!O.disableColumnResize&&!!x,resizing:a,height:i,side:u},P)),m]}))});process.env.NODE_ENV!=="production"&&(Oy.displayName="GridGenericColumnHeaderItem");const IK=e=>{const{disableColumnSorting:t}=Ie(),{colDef:n,classes:r,isDragging:s,sortDirection:i,showRightBorder:a,showLeftBorder:l,filterItemsCounter:c,pinnedPosition:u,isSiblingFocused:d}=e,p=n.sortable&&!t,g=i!=null,h=c!=null&&c>0,b=n.type==="number",m={root:["columnHeader",n.headerAlign&&`columnHeader--align${de(n.headerAlign)}`,p&&"columnHeader--sortable",s&&"columnHeader--moving",g&&"columnHeader--sorted",h&&"columnHeader--filtered",b&&"columnHeader--numeric","withBorderColor",a&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder",u===pt.LEFT&&"columnHeader--pinnedLeft",u===pt.RIGHT&&"columnHeader--pinnedRight",d&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return pe(m,Je,r)};function WT(e){const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:s,isResizing:i,isLast:a,sortDirection:l,sortIndex:c,filterItemsCounter:u,hasFocus:d,tabIndex:p,disableReorder:g,separatorSide:h,showLeftBorder:b,showRightBorder:m,pinnedPosition:y,pinnedOffset:C}=e,S=Hn(),x=Ie(),E=_t(),P=f.useRef(null),M=at(),D=at(),O=f.useRef(null),[k,I]=f.useState(n),F=x.slotProps?.columnMenu,T=x.slots.columnMenu,R=T?.defaultSlots,A=T?.defaultSlotProps,L=R!=null&&A!=null,N=f.useMemo(()=>L?NT({apiRef:S,colDef:t,defaultSlots:R,defaultSlotProps:A,slots:F?.slots,slotProps:F?.slotProps}):[],[S,t,A,R,L,F?.slotProps,F?.slots]),_=!L||N.length>0,H=!x.disableColumnReorder&&!g&&!t.disableReorder;let B;t.renderHeader&&(B=t.renderHeader(S.current.getColumnHeaderParams(t.field)));const $=w({},e,{classes:x.classes,showRightBorder:m,showLeftBorder:b}),V=IK($),z=f.useCallback(re=>ae=>{il(ae)||S.current.publishEvent(re,S.current.getColumnHeaderParams(t.field),ae)},[S,t.field]),j=f.useMemo(()=>({onClick:z("columnHeaderClick"),onContextMenu:z("columnHeaderContextMenu"),onDoubleClick:z("columnHeaderDoubleClick"),onMouseOver:z("columnHeaderOver"),onMouseOut:z("columnHeaderOut"),onMouseEnter:z("columnHeaderEnter"),onMouseLeave:z("columnHeaderLeave"),onKeyDown:z("columnHeaderKeyDown"),onFocus:z("columnHeaderFocus"),onBlur:z("columnHeaderBlur")}),[z]),G=f.useMemo(()=>H?{onDragStart:z("columnHeaderDragStart"),onDragEnter:z("columnHeaderDragEnter"),onDragOver:z("columnHeaderDragOver"),onDragEndCapture:z("columnHeaderDragEnd")}:{},[H,z]),Q=f.useMemo(()=>({onMouseDown:z("columnSeparatorMouseDown"),onDoubleClick:z("columnSeparatorDoubleClick")}),[z]);f.useEffect(()=>{!k&&n&&I(n)},[k,n]),f.useEffect(()=>{L&&n&&!_&&S.current.hideColumnMenu()},[S,n,_,L]);const q=f.useCallback(()=>{I(!1)},[]),Y=!x.disableColumnMenu&&!t.disableColumnMenu&&_&&v.jsx(RT,{colDef:t,columnMenuId:M,columnMenuButtonId:D,open:k,iconButtonRef:O}),K=v.jsx(LT,{columnMenuId:M,columnMenuButtonId:D,field:t.field,open:n,target:O.current,ContentComponent:x.slots.columnMenu,contentComponentProps:x.slotProps?.columnMenu,onExited:q}),J=t.sortingOrder??x.sortingOrder,X=(t.sortable||l!=null)&&!t.hideSortIcons&&!x.disableColumnSorting,ee=v.jsxs(f.Fragment,{children:[!x.disableColumnFilter&&v.jsx(x.slots.columnHeaderFilterIconButton,w({field:t.field,counter:u},x.slotProps?.columnHeaderFilterIconButton)),X&&v.jsx(x.slots.columnHeaderSortIcon,w({field:t.field,direction:l,index:c,sortingOrder:J,disabled:!t.sortable},x.slotProps?.columnHeaderSortIcon))]});f.useLayoutEffect(()=>{const re=S.current.state.columnMenu;if(d&&!re.open){const ne=P.current.querySelector('[tabindex="0"]')||P.current;if(!ne)return;if(gf())ne.focus({preventScroll:!0});else{const te=S.current.getScrollPosition();ne.focus(),S.current.scroll(te)}}},[S,d]);const W=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,le=t.headerName??t.field,oe=f.useMemo(()=>tu(w({},e.style),E,y,C),[y,C,e.style,E]);return v.jsx(Oy,w({ref:P,classes:V,columnMenuOpen:n,colIndex:r,height:s,isResizing:i,sortDirection:l,hasFocus:d,tabIndex:p,separatorSide:h,isDraggable:H,headerComponent:B,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:Y,columnTitleIconButtons:ee,headerClassName:se(W,a&&Z["columnHeader--last"]),label:le,resizable:!x.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:K,draggableContainerProps:G,columnHeaderSeparatorProps:Q,style:oe},j))}process.env.NODE_ENV!=="production"&&(WT.propTypes={colDef:o.object.isRequired,colIndex:o.number.isRequired,columnMenuOpen:o.bool.isRequired,disableReorder:o.bool,filterItemsCounter:o.number,hasFocus:o.bool,headerHeight:o.number.isRequired,isDragging:o.bool.isRequired,isLast:o.bool.isRequired,isResizing:o.bool.isRequired,isSiblingFocused:o.bool.isRequired,pinnedOffset:o.number,pinnedPosition:o.oneOf([0,1,2,3]),separatorSide:o.oneOf(["left","right"]),showLeftBorder:o.bool.isRequired,showRightBorder:o.bool.isRequired,sortDirection:o.oneOf(["asc","desc"]),sortIndex:o.number,style:o.object,tabIndex:o.oneOf([-1,0]).isRequired});const MK=vr(WT),OK=["className"],kK=e=>{const{classes:t}=e;return pe({root:["iconButtonContainer"]},Je,t)},DK=U("div",{name:"MuiDataGrid",slot:"IconButtonContainer"})(()=>({display:"flex",visibility:"hidden",width:0})),ky=ze(function(t,n){const{className:r}=t,s=ie(t,OK),i=Ie(),a=kK(i);return v.jsx(DK,w({className:se(a.root,r),ownerState:i},s,{ref:n}))});process.env.NODE_ENV!=="production"&&(ky.displayName="GridIconButtonContainer");const FK=["direction","index","sortingOrder","disabled","className"],NK=e=>{const{classes:t}=e;return pe({root:["sortButton"],icon:["sortIcon"]},Je,t)},RK=U(zo,{name:"MuiDataGrid",slot:"SortButton"})({transition:Ee.transition(["opacity"],{duration:Ee.transitions.duration.short,easing:Ee.transitions.easing.easeInOut})});function LK(e,t,n,r){let s;const i={};return t==="asc"?s=e.columnSortedAscendingIcon:t==="desc"?s=e.columnSortedDescendingIcon:(s=e.columnUnsortedIcon,i.sortingOrder=r),s?v.jsx(s,w({fontSize:"small",className:n},i)):null}function UT(e){const{direction:t,index:n,sortingOrder:r,disabled:s,className:i}=e,a=ie(e,FK),l=Xe(),c=Ie(),u=w({},e,{classes:c.classes}),d=NK(u),p=LK(c.slots,t,d.icon,r);if(!p)return null;const g=v.jsx(RK,w({as:c.slots.baseIconButton,ownerState:u,"aria-label":l.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:s,className:se(d.root,i)},c.slotProps?.baseIconButton,a,{children:p}));return v.jsx(c.slots.baseTooltip,w({title:l.current.getLocaleText("columnHeaderSortIconLabel"),enterDelay:1e3},c.slotProps?.baseTooltip,{children:v.jsxs("span",{children:[n!=null&&v.jsx(c.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:g}),n==null&&g]})}))}process.env.NODE_ENV!=="production"&&(UT.propTypes={direction:o.oneOf(["asc","desc"]),disabled:o.bool,field:o.string.isRequired,index:o.number,onClick:o.func,sortingOrder:o.arrayOf(o.oneOf(["asc","desc"])).isRequired});function qT(e){return v.jsx(ky,{children:v.jsx(UT,w({},e,{tabIndex:-1}))})}const YT=f.memo(qT);process.env.NODE_ENV!=="production"&&(YT.displayName="GridColumnHeaderSortIcon"),process.env.NODE_ENV!=="production"&&(qT.propTypes={className:o.string,color:o.oneOf(["default","inherit","primary"]),direction:o.oneOf(["asc","desc"]),disabled:o.bool,edge:o.oneOf(["end","start",!1]),field:o.string.isRequired,id:o.string,index:o.number,label:o.string,role:o.string,size:o.oneOf(["large","medium","small"]),sortingOrder:o.arrayOf(o.oneOf(["asc","desc"])).isRequired,style:o.object,tabIndex:o.number,title:o.string,touchRippleRef:o.any});const $K=e=>{const{classes:t}=e;return pe({icon:["filterIcon"]},Je,t)};function KT(e){return e.counter?v.jsx(XT,w({},e)):null}process.env.NODE_ENV!=="production"&&(KT.propTypes={counter:o.number,field:o.string.isRequired,onClick:o.func});function XT(e){const{counter:t,field:n,onClick:r}=e,s=Xe(),i=Ie(),a=w({},e,{classes:i.classes}),l=$K(a),c=at(),u=ue(s,iq,c),d=at(),p=f.useCallback(h=>{h.preventDefault(),h.stopPropagation();const{open:b,openedPanelValue:m}=_i(s);b&&m===mo.filters?s.current.hideFilterPanel():s.current.showFilterPanel(void 0,d,c),r&&r(s.current.getColumnHeaderParams(n),h)},[s,n,r,d,c]);if(!t)return null;const g=v.jsx(i.slots.baseIconButton,w({id:c,onClick:p,"aria-label":s.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?d:void 0},i.slotProps?.baseIconButton,{children:v.jsx(i.slots.columnFilteredIcon,{className:l.icon,fontSize:"small"})}));return v.jsx(i.slots.baseTooltip,w({title:s.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},i.slotProps?.baseTooltip,{children:v.jsxs(ky,{children:[t>1&&v.jsx(i.slots.baseBadge,{badgeContent:t,color:"default",children:g}),t===1&&g]})}))}process.env.NODE_ENV!=="production"&&(XT.propTypes={counter:o.number,field:o.string.isRequired,onClick:o.func});const Dt=gt,ZT=Dt(v.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),QT=Dt(v.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),JT=Dt(v.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),eI=Dt(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),AK=Dt(v.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),tI=Dt(v.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),VK=Dt(v.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 19l-4.99-5zm-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 14z"}),"Search");Dt(v.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),Dt(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const _K=Dt(v.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo"),BK=Dt(v.jsx("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"}),"Redo"),HK=Dt(v.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ColumnIcon"),zK=Dt(v.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),jK=Dt(v.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),GK=Dt(v.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),WK=Dt(v.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),UK=Dt(v.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),nI=Dt(v.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"),oI=Dt(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),qK=Dt(v.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),YK=Dt(v.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),rI=Dt(v.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),sI=Dt(v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),KK=Dt(v.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),XK=Dt(v.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),ZK=Dt(v.jsx("g",{children:v.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),iI=Dt(v.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 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 12z"}),"Clear");Dt(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const QK=Dt(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),JK=Dt(v.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),eX=Dt(v.jsx("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull"),tX=Dt(v.jsx("path",{d:"M5 15h2V8.41L18.59 20 20 18.59 8.41 7H15V5H5z"}),"NorthWest"),nX=["hideMenu","colDef","id","labelledby","className","children","open"],oX=U(zo,{slot:"internal"})(()=>({minWidth:248}));function aI(e){e.currentTarget.contains(e.target)&&e.stopPropagation()}const Dy=ze(function(t,n){const{hideMenu:r,id:s,labelledby:i,className:a,children:l,open:c}=t,u=ie(t,nX),d=Ie(),p=f.useCallback(g=>{g.key==="Tab"&&g.preventDefault(),iE(g.key)&&r(g)},[r]);return v.jsx(oX,w({as:d.slots.baseMenuList,id:s,className:se(Z.menuList,a),"aria-labelledby":i,onKeyDown:p,onWheel:aI,onTouchMove:aI,autoFocus:c},u,{ref:n,children:l}))});process.env.NODE_ENV!=="production"&&(Dy.displayName="GridColumnMenuContainer"),process.env.NODE_ENV!=="production"&&(Dy.propTypes={colDef:o.object.isRequired,hideMenu:o.func.isRequired,id:o.string,labelledby:o.string,open:o.bool.isRequired});const rX=["displayOrder"],sX=e=>{const t=Hn(),n=Ie(),{defaultSlots:r,defaultSlotProps:s,slots:i={},slotProps:a={},hideMenu:l,colDef:c,addDividers:u=!0}=e,d=f.useMemo(()=>w({},r,i),[r,i]),p=f.useMemo(()=>{if(!a||Object.keys(a).length===0)return s;const g=w({},a);return Object.entries(s).forEach(([h,b])=>{g[h]=w({},b,a[h]||{})}),g},[s,a]);return f.useMemo(()=>{const g=NT({apiRef:t,colDef:c,defaultSlots:r,defaultSlotProps:s,slots:i,slotProps:a});return g.reduce((h,b,m)=>{let y={colDef:c,onClick:l};const C=p[b];if(C){const S=ie(C,rX);y=w({},y,S)}return u&&m!==g.length-1?[...h,[d[b],y],[n.slots.baseDivider,{}]]:[...h,[d[b],y]]},[])},[u,t,c,s,r,l,d,p,a,i,n.slots.baseDivider])};function lI(e){const{colDef:t,onClick:n}=e,r=Xe(),s=Ie(),l=ln(r).filter(u=>u.disableColumnMenu!==!0).length===1,c=f.useCallback(u=>{l||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,l]);return s.disableColumnSelector||t.hideable===!1?null:v.jsx(s.slots.baseMenuItem,{onClick:c,disabled:l,iconStart:v.jsx(s.slots.columnMenuHideIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuHideColumn")})}process.env.NODE_ENV!=="production"&&(lI.propTypes={colDef:o.object.isRequired,onClick:o.func.isRequired});function cI(e){const{onClick:t}=e,n=Xe(),r=Ie(),s=f.useCallback(i=>{t(i),n.current.showPreferences(mo.columns)},[n,t]);return r.disableColumnSelector?null:v.jsx(r.slots.baseMenuItem,{onClick:s,iconStart:v.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"}),children:n.current.getLocaleText("columnMenuManageColumns")})}process.env.NODE_ENV!=="production"&&(cI.propTypes={colDef:o.object.isRequired,onClick:o.func.isRequired});function uI(e){return v.jsxs(f.Fragment,{children:[v.jsx(lI,w({},e)),v.jsx(cI,w({},e))]})}process.env.NODE_ENV!=="production"&&(uI.propTypes={colDef:o.object.isRequired,onClick:o.func.isRequired});function dI(e){const{colDef:t,onClick:n}=e,r=Xe(),s=Ie(),i=f.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return s.disableColumnFilter||!t.filterable?null:v.jsx(s.slots.baseMenuItem,{onClick:i,iconStart:v.jsx(s.slots.columnMenuFilterIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuFilter")})}process.env.NODE_ENV!=="production"&&(dI.propTypes={colDef:o.object.isRequired,onClick:o.func.isRequired});function pI(e){const{colDef:t,onClick:n}=e,r=Xe(),s=ue(r,Bn),i=Ie(),a=f.useMemo(()=>t?s.find(p=>p.field===t.field)?.sort:null,[t,s]),l=t.sortingOrder??i.sortingOrder,c=f.useCallback(d=>{n(d);const p=d.currentTarget.getAttribute("data-value")||null,g=i.multipleColumnsSortingMode==="always";r.current.sortColumn(t.field,p===a?null:p,g)},[r,t,n,a,i.multipleColumnsSortingMode]);if(i.disableColumnSorting||!t||!t.sortable||!l.some(d=>!!d))return null;const u=d=>{const p=r.current.getLocaleText(d);return typeof p=="function"?p(t):p};return v.jsxs(f.Fragment,{children:[l.includes("asc")&&a!=="asc"?v.jsx(i.slots.baseMenuItem,{onClick:c,"data-value":"asc",iconStart:v.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"}),children:u("columnMenuSortAsc")}):null,l.includes("desc")&&a!=="desc"?v.jsx(i.slots.baseMenuItem,{onClick:c,"data-value":"desc",iconStart:v.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"}),children:u("columnMenuSortDesc")}):null,l.includes(null)&&a!=null?v.jsx(i.slots.baseMenuItem,{onClick:c,iconStart:i.slots.columnMenuUnsortIcon?v.jsx(i.slots.columnMenuUnsortIcon,{fontSize:"small"}):v.jsx("span",{}),children:r.current.getLocaleText("columnMenuUnsort")}):null]})}process.env.NODE_ENV!=="production"&&(pI.propTypes={colDef:o.object.isRequired,onClick:o.func.isRequired});const iX=["defaultSlots","defaultSlotProps","slots","slotProps"],Fy={columnMenuSortItem:pI,columnMenuFilterItem:dI,columnMenuColumnsItem:uI},Ny={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},yf=ze(function(t,n){const{defaultSlots:r,defaultSlotProps:s,slots:i,slotProps:a}=t,l=ie(t,iX),c=sX(w({},l,{defaultSlots:r,defaultSlotProps:s,slots:i,slotProps:a}));return v.jsx(Dy,w({},l,{ref:n,children:c.map(([u,d],p)=>v.jsx(u,w({},d),p))}))});process.env.NODE_ENV!=="production"&&(yf.displayName="GridGenericColumnMenu"),process.env.NODE_ENV!=="production"&&(yf.propTypes={colDef:o.object.isRequired,defaultSlotProps:o.object.isRequired,defaultSlots:o.object.isRequired,hideMenu:o.func.isRequired,id:o.string,labelledby:o.string,open:o.bool.isRequired,slotProps:o.object,slots:o.object});const nu=ze(function(t,n){return v.jsx(yf,w({},t,{ref:n,defaultSlots:Fy,defaultSlotProps:Ny}))});process.env.NODE_ENV!=="production"&&(nu.displayName="GridColumnMenu"),nu.defaultSlots=Fy,nu.defaultSlotProps=Ny,process.env.NODE_ENV!=="production"&&(nu.propTypes={colDef:o.object.isRequired,hideMenu:o.func.isRequired,id:o.string,labelledby:o.string,open:o.bool.isRequired,slotProps:o.object,slots:o.object});const aX=["className"],lX=e=>{const{classes:t}=e;return pe({root:["panelWrapper"]},Je,t)},cX=U("div",{name:"MuiDataGrid",slot:"PanelWrapper"})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Ry=ze(function(t,n){const{className:r}=t,s=ie(t,aX),i=Ie(),a=lX(i);return v.jsx(cX,w({tabIndex:-1,className:se(a.root,r),ownerState:i},s,{ref:n}))});process.env.NODE_ENV!=="production"&&(Ry.displayName="GridPanelWrapper");function uX(e){const t=Ie();return v.jsx(Ry,w({},e,{children:v.jsx(t.slots.columnsManagement,w({},t.slotProps?.columnsManagement))}))}const dX=["children","className","classes","onClose"],pX=Me("MuiDataGrid",["panel","paper"]),fX=U(zo,{name:"MuiDataGrid",slot:"panel"})({zIndex:Ee.zIndex.panel}),hX=U("div",{name:"MuiDataGrid",slot:"panelContent"})({backgroundColor:Ee.colors.background.overlay,borderRadius:Ee.radius.base,boxShadow:Ee.shadows.overlay,display:"flex",maxWidth:`calc(100vw - ${Ee.spacing(2)})`,overflow:"auto"}),Ly=ze((e,t)=>{const{children:n,className:r,onClose:s}=e,i=ie(e,dX),a=Xe(),l=Ie(),c=pX,[u,d]=f.useState(!1),p=aE(),g=fe(()=>d(!0)),h=fe(()=>d(!1)),b=fe(()=>{s?.()}),m=fe(S=>{S.key==="Escape"&&s?.()}),[y,C]=f.useState(null);return f.useEffect(()=>{const S=a.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');S&&C(S)},[a]),y?v.jsx(fX,w({as:l.slots.basePopper,ownerState:l,placement:"bottom-end",className:se(c.panel,r,p),flip:!0,onDidShow:g,onDidHide:h,onClickAway:b,clickAwayMouseEvent:"onPointerUp",clickAwayTouchEvent:!1,focusTrap:!0},i,l.slotProps?.basePopper,{target:e.target??y,ref:t,children:v.jsx(hX,{className:c.paper,ownerState:l,onKeyDown:m,children:u&&n})})):null});process.env.NODE_ENV!=="production"&&(Ly.displayName="GridPanel"),process.env.NODE_ENV!=="production"&&(Ly.propTypes={children:o.node,classes:o.object,className:o.string,flip:o.bool,id:o.string,onClose:o.func,open:o.bool.isRequired,target:o.any});const gX=["className"],mX=e=>{const{classes:t}=e;return pe({root:["panelContent"]},Je,t)},bX=Nr("div",{name:"MuiDataGrid",slot:"PanelContent"})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,padding:Ee.spacing(2.5,1.5,2,1),gap:Ee.spacing(2.5)});function fI(e){const{className:t}=e,n=ie(e,gX),r=Ie(),s=mX(r);return v.jsx(bX,w({className:se(s.root,t),ownerState:r},n))}process.env.NODE_ENV!=="production"&&(fI.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const yX=["className"],vX=e=>{const{classes:t}=e;return pe({root:["panelFooter"]},Je,t)},CX=U("div",{name:"MuiDataGrid",slot:"PanelFooter"})({padding:Ee.spacing(1),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${Ee.colors.border.base}`});function hI(e){const{className:t}=e,n=ie(e,yX),r=Ie(),s=vX(r);return v.jsx(CX,w({className:se(s.root,t),ownerState:r},n))}process.env.NODE_ENV!=="production"&&(hI.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const wX=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],SX=["InputComponentProps"],xX=e=>{const{classes:t}=e;return pe({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Je,t)},PX=U("div",{name:"MuiDataGrid",slot:"FilterForm"})({display:"flex",gap:Ee.spacing(1.5)}),EX=U("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon"})({flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"}),TX=U("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput"})({minWidth:75,justifyContent:"end"}),IX=U("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput"})({width:150}),MX=U("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput"})({width:150}),OX=U("div",{name:"MuiDataGrid",slot:"FilterFormValueInput"})({width:190}),kX=e=>{switch(e){case po.And:return"filterPanelOperatorAnd";case po.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},ou=e=>e.headerName||e.field,gI=new Intl.Collator,vf=ze(function(t,n){const{item:r,hasMultipleFilters:s,deleteFilter:i,applyFilterChanges:a,showMultiFilterOperators:l,disableMultiFilterOperator:c,applyMultiFilterOperatorChanges:u,focusElementRef:d,logicOperators:p=[po.And,po.Or],columnsSort:g,filterColumns:h,deleteIconProps:b={},logicOperatorInputProps:m={},operatorInputProps:y={},columnInputProps:C={},valueInputProps:S={},readOnly:x}=t,E=ie(t,wX),P=Xe(),M=ue(P,Gr),D=ue(P,KP),O=ue(P,cn),k=at(),I=at(),F=at(),T=at(),R=Ie(),A=xX(R),L=f.useRef(null),N=f.useRef(null),_=O.logicOperator??po.And,H=s&&p.length>0,$=(R.slotProps?.baseSelect||{}).native??!1,V=R.slotProps?.baseSelectOption||{},{InputComponentProps:z}=S,j=ie(S,SX),G=ue(P,Vi),Q=ue(P,ly),{filteredColumns:q,selectedField:Y}=f.useMemo(()=>{let re=r.field;const ae=M[r.field].filterable===!1?M[r.field]:null;if(ae)return{filteredColumns:[ae],selectedField:re};if(G)return{filteredColumns:D.filter(te=>Q.get(te.field)!==void 0),selectedField:re};if(h===void 0||typeof h!="function")return{filteredColumns:D,selectedField:re};const ne=h({field:r.field,columns:D,currentFilters:O?.items||[]});return{filteredColumns:D.filter(te=>{const ye=ne.includes(te.field);return te.field===r.field&&!ye&&(re=void 0),ye}),selectedField:re}},[r.field,M,G,h,D,O?.items,Q]),K=f.useMemo(()=>{switch(g){case"asc":return q.sort((re,ae)=>gI.compare(ou(re),ou(ae)));case"desc":return q.sort((re,ae)=>-gI.compare(ou(re),ou(ae)));default:return q}},[q,g]),J=r.field?P.current.getColumn(r.field):null,X=f.useMemo(()=>!r.operator||!J?null:J.filterOperators?.find(re=>re.value===r.operator),[r,J]),ee=f.useCallback(re=>{const ae=re.target.value,ne=P.current.getColumn(ae);if(ne.field===J.field)return;const te=ne.filterOperators.find(Se=>Se.value===r.operator)||ne.filterOperators[0];let ce=!te.InputComponent||te.InputComponent!==X?.InputComponent||ne.type!==J.type?void 0:r.value;if(ne.type==="singleSelect"&&ce!==void 0){const Se=ne,we=Ai(Se);Array.isArray(ce)?ce=ce.filter(Be=>sf(Be,we,Se?.getOptionValue)!==void 0):sf(r.value,we,Se?.getOptionValue)===void 0&&(ce=void 0)}a(w({},r,{field:ae,operator:te.value,value:ce}))},[P,a,r,J,X]),W=f.useCallback(re=>{const ae=re.target.value,ne=J?.filterOperators.find(ye=>ye.value===ae),te=!ne?.InputComponent||ne?.InputComponent!==X?.InputComponent;a(w({},r,{operator:ae,value:te?void 0:r.value}))},[a,r,J,X]),le=f.useCallback(re=>{const ae=re.target.value===po.And.toString()?po.And:po.Or;u(ae)},[u]),oe=()=>{i(r)};return f.useImperativeHandle(d,()=>({focus:()=>{X?.InputComponent?L?.current?.focus():N.current.focus()}}),[X]),v.jsxs(PX,w({className:A.root,"data-id":r.id,ownerState:R},E,{ref:n,children:[v.jsx(EX,w({},b,{className:se(A.deleteIcon,b.className),ownerState:R,children:v.jsx(R.slots.baseIconButton,w({"aria-label":P.current.getLocaleText("filterPanelDeleteIconLabel"),title:P.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:oe,size:"small",disabled:x},R.slotProps?.baseIconButton,{children:v.jsx(R.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),v.jsx(TX,w({as:R.slots.baseSelect,sx:[H?{display:"flex"}:{display:"none"},l?{visibility:"visible"}:{visibility:"hidden"},m.sx],className:se(A.logicOperatorInput,m.className),ownerState:R},m,{size:"small",slotProps:{htmlInput:{"aria-label":P.current.getLocaleText("filterPanelLogicOperator")}},value:_??"",onChange:le,disabled:!!c||p.length===1,native:$},R.slotProps?.baseSelect,{children:p.map(re=>he.createElement(R.slots.baseSelectOption,w({},V,{native:$,key:re.toString(),value:re.toString()}),P.current.getLocaleText(kX(re))))})),v.jsx(IX,w({as:R.slots.baseSelect},C,{className:se(A.columnInput,C.className),ownerState:R,size:"small",labelId:I,id:k,label:P.current.getLocaleText("filterPanelColumns"),value:Y??"",onChange:ee,native:$,disabled:x},R.slotProps?.baseSelect,{children:K.map(re=>he.createElement(R.slots.baseSelectOption,w({},V,{native:$,key:re.field,value:re.field}),ou(re)))})),v.jsx(MX,w({as:R.slots.baseSelect,size:"small"},y,{className:se(A.operatorInput,y.className),ownerState:R,labelId:T,label:P.current.getLocaleText("filterPanelOperator"),id:F,value:r.operator,onChange:W,native:$,inputRef:N,disabled:x},R.slotProps?.baseSelect,{children:J?.filterOperators?.map(re=>he.createElement(R.slots.baseSelectOption,w({},V,{native:$,key:re.value,value:re.value}),re.label||P.current.getLocaleText(`filterOperator${de(re.value)}`)))})),v.jsx(OX,w({},j,{className:se(A.valueInput,j.className),ownerState:R,children:X?.InputComponent?v.jsx(X.InputComponent,w({apiRef:P,item:r,applyValue:a,focusElementRef:L,disabled:x,slotProps:{root:{size:"small"}}},X.InputComponentProps,z),r.field):null}))]}))});process.env.NODE_ENV!=="production"&&(vf.displayName="GridFilterForm"),process.env.NODE_ENV!=="production"&&(vf.propTypes={applyFilterChanges:o.func.isRequired,applyMultiFilterOperatorChanges:o.func.isRequired,children:o.node,columnInputProps:o.any,columnsSort:o.oneOf(["asc","desc"]),deleteFilter:o.func.isRequired,deleteIconProps:o.any,disableMultiFilterOperator:o.bool,filterColumns:o.func,focusElementRef:o.oneOfType([o.func,o.object]),hasMultipleFilters:o.bool.isRequired,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}).isRequired,logicOperatorInputProps:o.any,logicOperators:o.arrayOf(o.oneOf(["and","or"]).isRequired),operatorInputProps:o.any,readOnly:o.bool,showMultiFilterOperators:o.bool,valueInputProps:o.any});const DX=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],$y=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Ay=ze(function(t,n){const r=Xe(),s=Ie(),i=ue(r,cn),a=ue(r,KP),l=ue(r,XP),c=f.useRef(null),u=f.useRef(null),{logicOperators:d=[po.And,po.Or],columnsSort:p,filterFormProps:g,getColumnForNewFilter:h,disableAddFilterButton:b=!1,disableRemoveAllButton:m=!1}=t,y=ie(t,DX),C=r.current.upsertFilterItem,S=f.useCallback(T=>{r.current.setFilterLogicOperator(T)},[r]),x=f.useCallback(()=>{let T;if(h&&typeof h=="function"){const R=h({currentFilters:i?.items||[],columns:a});if(R===null)return null;T=a.find(({field:A})=>A===R)}else T=a.find(R=>R.filterOperators?.length);return T?$y(T):null},[i?.items,a,h]),E=f.useCallback(()=>{if(h===void 0||typeof h!="function")return x();const T=i.items.length?i.items:[x()].filter(Boolean),R=h({currentFilters:T,columns:a});if(R===null)return null;const A=a.find(({field:L})=>L===R);return A?$y(A):null},[i.items,a,h,x]),P=f.useMemo(()=>i.items.length?i.items:(u.current||(u.current=x()),u.current?[u.current]:[]),[i.items,x]),M=P.length>1,{readOnlyFilters:D,validFilters:O}=f.useMemo(()=>P.reduce((T,R)=>(l[R.field]?T.validFilters.push(R):T.readOnlyFilters.push(R),T),{readOnlyFilters:[],validFilters:[]}),[P,l]),k=f.useCallback(()=>{const T=E();T&&r.current.upsertFilterItems([...P,T])},[r,E,P]),I=f.useCallback(T=>{const R=O.length===1;r.current.deleteFilterItem(T),R&&r.current.hideFilterPanel()},[r,O.length]),F=f.useCallback(()=>O.length===1&&O[0].value===void 0?(r.current.deleteFilterItem(O[0]),r.current.hideFilterPanel()):r.current.setFilterModel(w({},i,{items:D}),"removeAllFilterItems"),[r,D,i,O]);return f.useEffect(()=>{d.length>0&&i.logicOperator&&!d.includes(i.logicOperator)&&S(d[0])},[d,S,i.logicOperator]),f.useEffect(()=>{O.length>0&&c.current.focus()},[O.length]),v.jsxs(Ry,w({},y,{ref:n,children:[v.jsxs(fI,{children:[D.map((T,R)=>v.jsx(vf,w({item:T,applyFilterChanges:C,deleteFilter:I,hasMultipleFilters:M,showMultiFilterOperators:R>0,disableMultiFilterOperator:R!==1,applyMultiFilterOperatorChanges:S,focusElementRef:null,readOnly:!0,logicOperators:d,columnsSort:p},g),T.id==null?R:T.id)),O.map((T,R)=>v.jsx(vf,w({item:T,applyFilterChanges:C,deleteFilter:I,hasMultipleFilters:M,showMultiFilterOperators:D.length+R>0,disableMultiFilterOperator:D.length+R!==1,applyMultiFilterOperatorChanges:S,focusElementRef:R===O.length-1?c:null,logicOperators:d,columnsSort:p},g),T.id==null?R+D.length:T.id))]}),!s.disableMultipleColumnsFiltering&&!(b&&m)?v.jsxs(hI,{children:[b?v.jsx("span",{}):v.jsx(s.slots.baseButton,w({onClick:k,startIcon:v.jsx(s.slots.filterPanelAddIcon,{})},s.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!m&&O.length>0?v.jsx(s.slots.baseButton,w({onClick:F,startIcon:v.jsx(s.slots.filterPanelRemoveAllIcon,{})},s.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))});process.env.NODE_ENV!=="production"&&(Ay.displayName="GridFilterPanel"),process.env.NODE_ENV!=="production"&&(Ay.propTypes={children:o.node,columnsSort:o.oneOf(["asc","desc"]),disableAddFilterButton:o.bool,disableRemoveAllButton:o.bool,filterFormProps:o.shape({columnInputProps:o.any,columnsSort:o.oneOf(["asc","desc"]),deleteIconProps:o.any,filterColumns:o.func,logicOperatorInputProps:o.any,operatorInputProps:o.any,valueInputProps:o.any}),getColumnForNewFilter:o.func,logicOperators:o.arrayOf(o.oneOf(["and","or"]).isRequired),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const FX=(e,t)=>{const n=new Set(Object.keys(e).filter(i=>e[i]===!1)),r=new Set(Object.keys(t).filter(i=>t[i]===!1));if(n.size!==r.size)return!1;let s=!0;return n.forEach(i=>{r.has(i)||(s=!1)}),s},NX=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,RX=["children"],LX=Yo({from:{opacity:0},to:{opacity:1}}),$X=Yo({"from, to":{"--scrollable":'" "'}}),AX=Nr("div",{name:"MuiDataGrid",slot:"ShadowScrollArea"})`
352
+ flex: 1;
353
+ display: flex;
354
+ flex-direction: column;
355
+ animation: ${$X};
356
+ animation-timeline: --scroll-timeline;
357
+ animation-fill-mode: none;
358
+ box-sizing: border-box;
359
+ overflow: auto;
360
+ scrollbar-width: thin;
361
+ scroll-timeline: --scroll-timeline block;
362
+
363
+ &::before,
364
+ &::after {
365
+ content: '';
366
+ flex-shrink: 0;
367
+ display: block;
368
+ position: sticky;
369
+ left: 0;
370
+ width: 100%;
371
+ height: 4px;
372
+ animation: ${LX} linear both;
373
+ animation-timeline: --scroll-timeline;
374
+
375
+ // Custom property toggle trick:
376
+ // - Detects if the element is scrollable
377
+ // - https://css-tricks.com/the-css-custom-property-toggle-trick/
378
+ --visibility-scrollable: var(--scrollable) visible;
379
+ --visibility-not-scrollable: hidden;
380
+ visibility: var(--visibility-scrollable, var(--visibility-not-scrollable));
381
+ }
382
+
383
+ &::before {
384
+ top: 0;
385
+ background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%);
386
+ animation-range: 0 4px;
387
+ }
388
+
389
+ &::after {
390
+ bottom: 0;
391
+ background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%);
392
+ animation-direction: reverse;
393
+ animation-range: calc(100% - 4px) 100%;
394
+ }
395
+ `,Vy=ze(function(t,n){const{children:r}=t,s=ie(t,RX);return v.jsx(AX,w({},s,{ref:n,children:r}))});process.env.NODE_ENV!=="production"&&(Vy.displayName="GridShadowScrollArea"),process.env.NODE_ENV!=="production"&&(Vy.propTypes={children:o.node});const VX=e=>{const{classes:t}=e;return pe({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},Je,t)},mI=new Intl.Collator;function bI(e){const t=Xe(),n=f.useRef(null),r=ue(t,AG),s=ue(t,Go),i=Ie(),[a,l]=f.useState(""),c=VX(i),u=ue(t,jo),d=ue(t,Vi),p=ue(t,ly),g=f.useMemo(()=>d?Array.from(p.values()):u,[d,p,u]),{sort:h,searchPredicate:b=NX,autoFocusSearchField:m=!0,disableShowHideToggle:y=!1,disableResetButton:C=!1,toggleAllMode:S="all",getTogglableColumns:x,searchInputProps:E,searchDebounceMs:P=i.columnFilterDebounceMs}=e,M=f.useMemo(()=>ur($=>{l($)},P??150),[P]),D=f.useMemo(()=>FX(s,r),[s,r]),O=f.useMemo(()=>{switch(h){case"asc":return[...g].sort(($,V)=>mI.compare($.headerName||$.field,V.headerName||V.field));case"desc":return[...g].sort(($,V)=>-mI.compare($.headerName||$.field,V.headerName||V.field));default:return g}},[g,h]),k=$=>{const{name:V}=$.target;t.current.setColumnVisibility(V,s[V]===!1)},I=f.useMemo(()=>{const $=x?x(O):null,V=$?O.filter(({field:z})=>$.includes(z)):O;return a?V.filter(z=>b(z,a.toLowerCase())):V},[O,a,b,x]),F=f.useCallback($=>{const V=Go(t),z=w({},V),j=x?x(g):null;return(S==="filteredOnly"?I:g).forEach(G=>{G.hideable&&(j==null||j.includes(G.field))&&($?delete z[G.field]:z[G.field]=!1)}),t.current.setColumnVisibilityModel(z)},[t,g,x,S,I]),T=f.useCallback($=>{M($.target.value)},[M]),R=f.useMemo(()=>I.filter($=>$.hideable),[I]),A=f.useMemo(()=>R.every($=>s[$.field]==null||s[$.field]!==!1),[s,R]),L=f.useMemo(()=>R.every($=>s[$.field]===!1),[s,R]),N=f.useRef(null);f.useEffect(()=>{m?n.current?.focus():N.current&&typeof N.current.focus=="function"&&N.current.focus()},[m]);let _=!1;const H=$=>_===!1&&$.hideable!==!1?(_=!0,!0):!1,B=f.useCallback(()=>{l(""),n.current&&(n.current.value="",n.current.focus())},[]);return v.jsxs(f.Fragment,{children:[v.jsx(HX,{className:c.header,ownerState:i,children:v.jsx(zX,w({as:i.slots.baseTextField,ownerState:i,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:c.searchInput,onChange:T,size:"small",type:"search",slotProps:{input:{startAdornment:v.jsx(i.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:v.jsx(i.slots.baseIconButton,w({size:"small","aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),style:a?{visibility:"visible"}:{visibility:"hidden"},tabIndex:-1,onClick:B,edge:"end"},i.slotProps?.baseIconButton,{children:v.jsx(i.slots.quickFilterClearIcon,{fontSize:"small"})}))},htmlInput:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")}},autoComplete:"off",fullWidth:!0},i.slotProps?.baseTextField,E))}),v.jsx(BX,{ownerState:i,children:v.jsxs(_X,{className:c.root,ownerState:i,children:[I.map($=>v.jsx(WX,w({as:i.slots.baseCheckbox,className:c.row,disabled:$.hideable===!1||d,checked:s[$.field]!==!1,onChange:k,name:$.field,inputRef:H($)?N:void 0,label:$.headerName||$.field,density:"compact",fullWidth:!0},i.slotProps?.baseCheckbox),$.field)),I.length===0&&v.jsx(GX,{ownerState:i,children:t.current.getLocaleText("columnsManagementNoColumns")})]})}),!y||!C?v.jsxs(jX,{ownerState:i,className:c.footer,children:[y?v.jsx("span",{}):v.jsx(i.slots.baseCheckbox,w({disabled:R.length===0||d,checked:A,indeterminate:!A&&!L,onChange:()=>F(!A),name:t.current.getLocaleText("columnsManagementShowHideAllText"),label:t.current.getLocaleText("columnsManagementShowHideAllText"),density:"compact"},i.slotProps?.baseCheckbox)),C?null:v.jsx(i.slots.baseButton,w({onClick:()=>t.current.setColumnVisibilityModel(r),disabled:D||d},i.slotProps?.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}process.env.NODE_ENV!=="production"&&(bI.propTypes={autoFocusSearchField:o.bool,disableResetButton:o.bool,disableShowHideToggle:o.bool,getTogglableColumns:o.func,searchDebounceMs:o.number,searchInputProps:o.object,searchPredicate:o.func,sort:o.oneOf(["asc","desc"]),toggleAllMode:o.oneOf(["all","filteredOnly"])});const _X=U("div",{name:"MuiDataGrid",slot:"ColumnsManagement"})({display:"flex",flexDirection:"column",padding:Ee.spacing(.5,1.5)}),BX=U(Vy,{name:"MuiDataGrid",slot:"ColumnsManagementScrollArea"})({maxHeight:300}),HX=U("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader"})({padding:Ee.spacing(1.5,2),borderBottom:`1px solid ${Ee.colors.border.base}`}),zX=U(zo,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput"})({[`& .${_n.input}::-webkit-search-decoration,
396
+ & .${_n.input}::-webkit-search-cancel-button,
397
+ & .${_n.input}::-webkit-search-results-button,
398
+ & .${_n.input}::-webkit-search-results-decoration`]:{display:"none"}}),jX=U("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter"})({padding:Ee.spacing(1,1,1,1.5),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${Ee.colors.border.base}`}),GX=U("div",{name:"MuiDataGrid",slot:"ColumnsManagementEmptyText"})({padding:Ee.spacing(1,0),alignSelf:"center",font:Ee.typography.font.body}),WX=U(zo,{name:"MuiDataGrid",slot:"ColumnsManagementRow"})({}),_y=ze(function(t,n){const{children:r,slotProps:s={}}=t,i=s.button||{},a=s.tooltip||{},l=Xe(),c=Ie(),u=at(),d=at(),[p,g]=f.useState(!1),h=f.useRef(null),b=tt(n,h),m=C=>{g(S=>!S),i.onClick?.(C)},y=()=>g(!1);return r==null?null:v.jsxs(f.Fragment,{children:[v.jsx(c.slots.baseTooltip,w({title:l.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},c.slotProps?.baseTooltip,a,{children:v.jsx(c.slots.baseButton,w({size:"small",startIcon:v.jsx(c.slots.exportIcon,{}),"aria-expanded":p,"aria-label":l.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":p?d:void 0,id:u},c.slotProps?.baseButton,i,{onClick:m,ref:b,children:l.current.getLocaleText("toolbarExport")}))})),v.jsx(Wa,{open:p,target:h.current,onClose:y,position:"bottom-end",children:v.jsx(c.slots.baseMenuList,{id:d,className:Z.menuList,"aria-labelledby":u,autoFocusItem:p,children:f.Children.map(r,C=>f.isValidElement(C)?f.cloneElement(C,{hideMenu:y}):C)})})]})});process.env.NODE_ENV!=="production"&&(_y.displayName="GridToolbarExportContainer"),process.env.NODE_ENV!=="production"&&(_y.propTypes={slotProps:o.object});const UX=["hideMenu","options"],qX=["hideMenu","options"],YX=["csvOptions","printOptions","excelOptions"];function yI(e){const t=Xe(),n=Ie(),{hideMenu:r,options:s}=e,i=ie(e,UX);return v.jsx(n.slots.baseMenuItem,w({onClick:()=>{t.current.exportDataAsCsv(s),r?.()}},i,{children:t.current.getLocaleText("toolbarExportCSV")}))}process.env.NODE_ENV!=="production"&&(yI.propTypes={hideMenu:o.func,options:o.shape({allColumns:o.bool,delimiter:o.string,disableToolbarButton:o.bool,escapeFormulas:o.bool,fields:o.arrayOf(o.string),fileName:o.string,getRowsToExport:o.func,includeColumnGroupsHeaders:o.bool,includeHeaders:o.bool,shouldAppendQuotes:o.bool,utf8WithBom:o.bool})});function vI(e){const t=Xe(),n=Ie(),{hideMenu:r,options:s}=e,i=ie(e,qX);return v.jsx(n.slots.baseMenuItem,w({onClick:()=>{t.current.exportDataAsPrint(s),r?.()}},i,{children:t.current.getLocaleText("toolbarExportPrint")}))}process.env.NODE_ENV!=="production"&&(vI.propTypes={hideMenu:o.func,options:o.shape({allColumns:o.bool,bodyClassName:o.string,copyStyles:o.bool,disableToolbarButton:o.bool,fields:o.arrayOf(o.string),fileName:o.string,getRowsToExport:o.func,hideFooter:o.bool,hideToolbar:o.bool,includeCheckboxes:o.bool,pageStyle:o.oneOfType([o.func,o.string])})});const CI=ze(function(t,n){const r=t,{csvOptions:s={},printOptions:i={},excelOptions:a}=r,l=ie(r,YX),u=Xe().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:a,csvOptions:s,printOptions:i}).sort((d,p)=>d.componentName>p.componentName?1:-1);return u.length===0?null:v.jsx(_y,w({},l,{ref:n,children:u.map((d,p)=>f.cloneElement(d.component,{key:p}))}))});process.env.NODE_ENV!=="production"&&(CI.displayName="GridToolbarExport"),process.env.NODE_ENV!=="production"&&(CI.propTypes={csvOptions:o.object,printOptions:o.object,slotProps:o.object});const By=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(By.displayName="QuickFilterContext");function Hy(){const e=f.useContext(By);if(e===void 0)throw new Error("MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.");return e}const KX=["render","className","parser","formatter","debounceMs","defaultExpanded","expanded","onExpandedChange"],XX=e=>e.split(" ").filter(t=>t!==""),ZX=e=>e.join(" ");function wI(e){const t=Ie(),{render:n,className:r,parser:s=XX,formatter:i=ZX,debounceMs:a=t.filterDebounceMs,defaultExpanded:l,expanded:c,onExpandedChange:u}=e,d=ie(e,KX),p=Xe(),g=f.useRef(null),h=f.useRef(null),b=ue(p,CE),[m,y]=f.useState(i(b??[])),[C,S]=f.useState(l??m.length>0),x=c??C,E=f.useMemo(()=>({value:m,expanded:x}),[m,x]),P=typeof r=="function"?r(E):r,M=f.useRef(null),D=at(),O=f.useCallback(_=>{u&&u(_),c===void 0&&S(_)},[u,c]),k=f.useRef(b);f.useEffect(()=>{ro(k.current,b)||(k.current=b,y(_=>ro(s(_),b)?_:i(b??[])))},[b,i,s]);const I=f.useRef(!0),F=f.useRef(x);f.useEffect(()=>{if(I.current){I.current=!1;return}F.current!==x&&(x?requestAnimationFrame(()=>{g.current?.focus({preventScroll:!0})}):h.current?.focus({preventScroll:!0}),F.current=x)},[x]);const T=f.useMemo(()=>ur(_=>{const H=s(_);k.current=H,p.current.setQuickFilterValues(H)},a),[p,a,s]);f.useEffect(()=>T.clear,[T]);const R=f.useCallback(_=>{const H=_.target.value;y(H),T(H)},[T]),A=f.useCallback(()=>{y(""),p.current.setQuickFilterValues([]),g.current?.focus()},[p,g]),L=f.useMemo(()=>({controlRef:g,triggerRef:h,state:E,controlId:D,clearValue:A,onValueChange:R,onExpandedChange:O}),[D,E,R,A,O]);it(()=>{M.current&&h.current&&M.current.style.setProperty("--trigger-width",`${h.current?.offsetWidth}px`)},[]);const N=Ur("div",n,w({className:P},d,{ref:M}),E);return v.jsx(By.Provider,{value:L,children:N})}process.env.NODE_ENV!=="production"&&(wI.propTypes={className:o.oneOfType([o.func,o.string]),debounceMs:o.number,defaultExpanded:o.bool,expanded:o.bool,formatter:o.func,onExpandedChange:o.func,parser:o.func,render:o.oneOfType([o.element,o.func])});const QX=["render","className","slotProps","onKeyDown","onChange"],zy=ze(function(t,n){const{render:r,className:s,slotProps:i,onKeyDown:a,onChange:l}=t,c=ie(t,QX),u=Ie(),{state:d,controlId:p,controlRef:g,onValueChange:h,onExpandedChange:b,clearValue:m}=Hy(),y=typeof s=="function"?s(d):s,C=tt(g,n),S=M=>{M.key==="Escape"&&(d.value===""?b(!1):m()),a?.(M)},x=M=>{d.value===""&&b(!1),i?.htmlInput?.onBlur?.(M)},E=M=>{d.expanded||b(!0),h(M),l?.(M)},P=Ur(u.slots.baseTextField,r,w({},u.slotProps?.baseTextField,{slotProps:w({htmlInput:w({role:"searchbox",id:p,tabIndex:d.expanded?void 0:-1},i?.htmlInput,{onBlur:x})},i),value:d.value,className:y},c,{onChange:E,onKeyDown:S,ref:C}),d);return v.jsx(f.Fragment,{children:P})});process.env.NODE_ENV!=="production"&&(zy.displayName="QuickFilterControl"),process.env.NODE_ENV!=="production"&&(zy.propTypes={autoComplete:o.string,autoFocus:o.bool,className:o.oneOfType([o.func,o.string]),color:o.oneOf(["error","primary"]),disabled:o.bool,error:o.bool,fullWidth:o.bool,helperText:o.string,id:o.string,inputRef:o.oneOfType([o.func,o.shape({current:o.object})]),label:o.node,multiline:o.bool,placeholder:o.string,render:o.oneOfType([o.element,o.func]),role:o.string,size:o.oneOf(["medium","small"]),slotProps:o.object,style:o.object,tabIndex:o.number,type:o.string,value:o.string});const JX=["render","className","onClick"],jy=ze(function(t,n){const{render:r,className:s,onClick:i}=t,a=ie(t,JX),l=Ie(),{state:c,clearValue:u}=Hy(),d=typeof s=="function"?s(c):s,p=h=>{u(),i?.(h)},g=Ur(l.slots.baseIconButton,r,w({},l.slotProps?.baseIconButton,{className:d,tabIndex:-1},a,{onClick:p,ref:n}),c);return v.jsx(f.Fragment,{children:g})});process.env.NODE_ENV!=="production"&&(jy.displayName="QuickFilterClear"),process.env.NODE_ENV!=="production"&&(jy.propTypes={className:o.oneOfType([o.func,o.string]),color:o.oneOf(["default","inherit","primary"]),disabled:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,label:o.string,render:o.oneOfType([o.element,o.func]),role:o.string,size:o.oneOf(["large","medium","small"]),style:o.object,tabIndex:o.number,title:o.string,touchRippleRef:o.any});const eZ=["render","className","onClick"],Gy=ze(function(t,n){const{render:r,className:s,onClick:i}=t,a=ie(t,eZ),l=Ie(),{state:c,controlId:u,onExpandedChange:d,triggerRef:p}=Hy(),g=typeof s=="function"?s(c):s,h=tt(p,n),b=y=>{d(!c.expanded),i?.(y)},m=Ur(l.slots.baseButton,r,w({},l.slotProps?.baseButton,{className:g,"aria-controls":u,"aria-expanded":c.expanded},a,{onClick:b,ref:h}),c);return v.jsx(f.Fragment,{children:m})});process.env.NODE_ENV!=="production"&&(Gy.displayName="QuickFilterTrigger"),process.env.NODE_ENV!=="production"&&(Gy.propTypes={className:o.oneOfType([o.func,o.string]),disabled:o.bool,id:o.string,render:o.oneOfType([o.element,o.func]),role:o.string,size:o.oneOf(["large","medium","small"]),startIcon:o.node,style:o.object,tabIndex:o.number,title:o.string,touchRippleRef:o.any});const tZ=["quickFilterParser","quickFilterFormatter","debounceMs","className","slotProps"],nZ=["ref","slotProps"],oZ=e=>{const{classes:t}=e;return pe({root:["toolbarQuickFilter"],trigger:["toolbarQuickFilterTrigger"],control:["toolbarQuickFilterControl"]},Je,t)},rZ=U("div",{name:"MuiDataGrid",slot:"ToolbarQuickFilter"})({display:"grid",alignItems:"center"}),sZ=U(sl,{name:"MuiDataGrid",slot:"ToolbarQuickFilterTrigger"})(({ownerState:e})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:e.expanded?0:1,pointerEvents:e.expanded?"none":"auto",transition:Ee.transition(["opacity"])})),iZ=U(e=>{throw new Error("Failed assertion: should not be rendered")},{name:"MuiDataGrid",slot:"ToolbarQuickFilterControl"})(({ownerState:e})=>({gridArea:"1 / 1",overflowX:"clip",width:e.expanded?260:"var(--trigger-width)",opacity:e.expanded?1:0,transition:Ee.transition(["width","opacity"])}));function SI(e){const t=Xe(),n=Ie(),r={classes:n.classes,expanded:!1},s=oZ(r),{quickFilterParser:i,quickFilterFormatter:a,debounceMs:l,className:c,slotProps:u}=e,d=ie(e,tZ);return v.jsx(wI,{parser:i,formatter:a,debounceMs:l,render:(p,g)=>{const h=w({},r,{expanded:g.expanded});return v.jsxs(rZ,w({},p,{className:se(s.root,c),children:[v.jsx(Gy,{render:b=>v.jsx(n.slots.baseTooltip,{title:t.current.getLocaleText("toolbarQuickFilterLabel"),enterDelay:0,children:v.jsx(sZ,w({className:s.trigger},b,{ownerState:h,color:"default","aria-disabled":g.expanded,children:v.jsx(n.slots.quickFilterIcon,{fontSize:"small"})}))})}),v.jsx(zy,{render:b=>{let{ref:m,slotProps:y}=b,C=ie(b,nZ);return v.jsx(iZ,w({as:n.slots.baseTextField,className:s.control,ownerState:h,inputRef:m,"aria-label":t.current.getLocaleText("toolbarQuickFilterLabel"),placeholder:t.current.getLocaleText("toolbarQuickFilterPlaceholder"),size:"small",slotProps:w({input:w({startAdornment:v.jsx(n.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:C.value?v.jsx(jy,{render:v.jsx(n.slots.baseIconButton,{size:"small",edge:"end","aria-label":t.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),children:v.jsx(n.slots.quickFilterClearIcon,{fontSize:"small"})})}):null},y?.input)},y)},n.slotProps?.baseTextField,C,u?.root,d))}})]}))}})}process.env.NODE_ENV!=="production"&&(SI.propTypes={className:o.string,debounceMs:o.number,quickFilterFormatter:o.func,quickFilterParser:o.func,slotProps:o.object});const aZ=["render","className","onClick","onPointerUp"],Wy=ze(function(t,n){const{render:r,className:s,onClick:i,onPointerUp:a}=t,l=ie(t,aZ),c=Ie(),u=at(),d=at(),p=Xe(),g=ue(p,_i),h=g.open&&g.openedPanelValue===mo.filters,m=ue(p,Yb).length,y={open:h,filterCount:m},C=typeof s=="function"?s(y):s,{filterPanelTriggerRef:S}=xy(),x=tt(n,S),E=D=>{h?p.current.hidePreferences():p.current.showPreferences(mo.filters,d,u),i?.(D)},P=D=>{h&&D.stopPropagation(),a?.(D)},M=Ur(c.slots.baseButton,r,w({},c.slotProps?.baseButton,{id:u,"aria-haspopup":"true","aria-expanded":h?"true":void 0,"aria-controls":h?d:void 0,onClick:E,onPointerUp:P,className:C},l,{ref:x}),y);return v.jsx(f.Fragment,{children:M})});process.env.NODE_ENV!=="production"&&(Wy.displayName="FilterPanelTrigger"),process.env.NODE_ENV!=="production"&&(Wy.propTypes={className:o.oneOfType([o.func,o.string]),disabled:o.bool,id:o.string,render:o.oneOfType([o.element,o.func]),role:o.string,size:o.oneOf(["large","medium","small"]),startIcon:o.node,style:o.object,tabIndex:o.number,title:o.string,touchRippleRef:o.any});const lZ=["render","className","onClick","onPointerUp"],Uy=ze(function(t,n){const{render:r,className:s,onClick:i,onPointerUp:a}=t,l=ie(t,lZ),c=Ie(),u=at(),d=at(),p=Xe(),g=ue(p,_i),h=g.open&&g.openedPanelValue===mo.columns,b={open:h},m=typeof s=="function"?s(b):s,{columnsPanelTriggerRef:y}=xy(),C=tt(n,y),S=P=>{h?p.current.hidePreferences():p.current.showPreferences(mo.columns,d,u),i?.(P)},x=P=>{h&&P.stopPropagation(),a?.(P)},E=Ur(c.slots.baseButton,r,w({},c.slotProps?.baseButton,{id:u,"aria-haspopup":"true","aria-expanded":h?"true":void 0,"aria-controls":h?d:void 0,className:m},l,{onPointerUp:x,onClick:S,ref:C}),b);return v.jsx(f.Fragment,{children:E})});process.env.NODE_ENV!=="production"&&(Uy.displayName="ColumnsPanelTrigger"),process.env.NODE_ENV!=="production"&&(Uy.propTypes={className:o.oneOfType([o.func,o.string]),disabled:o.bool,id:o.string,render:o.oneOfType([o.element,o.func]),role:o.string,size:o.oneOf(["large","medium","small"]),startIcon:o.node,style:o.object,tabIndex:o.number,title:o.string,touchRippleRef:o.any});const cZ=["render","options","onClick"],qy=ze(function(t,n){const{render:r,options:s,onClick:i}=t,a=ie(t,cZ),l=Ie(),c=Xe(),u=p=>{c.current.exportDataAsCsv(s),i?.(p)},d=Ur(l.slots.baseButton,r,w({},l.slotProps?.baseButton,{onClick:u},a,{ref:n}));return v.jsx(f.Fragment,{children:d})});process.env.NODE_ENV!=="production"&&(qy.displayName="ExportCsv"),process.env.NODE_ENV!=="production"&&(qy.propTypes={className:o.string,disabled:o.bool,id:o.string,options:o.shape({allColumns:o.bool,delimiter:o.string,escapeFormulas:o.bool,fields:o.arrayOf(o.string),fileName:o.string,getRowsToExport:o.func,includeColumnGroupsHeaders:o.bool,includeHeaders:o.bool,shouldAppendQuotes:o.bool,utf8WithBom:o.bool}),render:o.oneOfType([o.element,o.func]),role:o.string,size:o.oneOf(["large","medium","small"]),startIcon:o.node,style:o.object,tabIndex:o.number,title:o.string,touchRippleRef:o.any});const uZ=["render","options","onClick"],Yy=ze(function(t,n){const{render:r,options:s,onClick:i}=t,a=ie(t,uZ),l=Ie(),c=Xe(),u=p=>{c.current.exportDataAsPrint(s),i?.(p)},d=Ur(l.slots.baseButton,r,w({},l.slotProps?.baseButton,{onClick:u},a,{ref:n}));return v.jsx(f.Fragment,{children:d})});process.env.NODE_ENV!=="production"&&(Yy.displayName="ExportPrint"),process.env.NODE_ENV!=="production"&&(Yy.propTypes={className:o.string,disabled:o.bool,id:o.string,options:o.shape({allColumns:o.bool,bodyClassName:o.string,copyStyles:o.bool,fields:o.arrayOf(o.string),fileName:o.string,getRowsToExport:o.func,hideFooter:o.bool,hideToolbar:o.bool,includeCheckboxes:o.bool,pageStyle:o.oneOfType([o.func,o.string])}),render:o.oneOfType([o.element,o.func]),role:o.string,size:o.oneOf(["large","medium","small"]),startIcon:o.node,style:o.object,tabIndex:o.number,title:o.string,touchRippleRef:o.any});const dZ=["className"],pZ=["className"],fZ=["showQuickFilter","quickFilterProps","csvOptions","printOptions","mainControls","additionalExportMenuItems"],xI=e=>{const{classes:t}=e;return pe({divider:["toolbarDivider"],label:["toolbarLabel"]},Je,t)},hZ=U(zo,{name:"MuiDataGrid",slot:"ToolbarDivider"})({height:"50%",margin:Ee.spacing(0,.5)}),gZ=U("span",{name:"MuiDataGrid",slot:"ToolbarLabel"})({flex:1,font:Ee.typography.font.large,fontWeight:Ee.typography.fontWeight.medium,margin:Ee.spacing(0,.5),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"});function Ky(e){const t=ie(e,dZ),n=Ie(),r=xI(n);return v.jsx(hZ,w({as:n.slots.baseDivider,orientation:"vertical",className:r.divider},t))}process.env.NODE_ENV!=="production"&&(Ky.propTypes={className:o.string,orientation:o.oneOf(["horizontal","vertical"])});function mZ(e){const t=ie(e,pZ),n=Ie(),r=xI(n);return v.jsx(gZ,w({className:r.label},t))}function PI(e){const{showQuickFilter:t=!0,quickFilterProps:n,csvOptions:r,printOptions:s,mainControls:i,additionalExportMenuItems:a}=e,l=ie(e,fZ),c=Xe(),u=Ie(),[d,p]=f.useState(!1),g=f.useRef(null),h=at(),b=at(),m=!r?.disableToolbarButton||!s?.disableToolbarButton||a,y=()=>p(!1);return v.jsxs(Iy,w({},l,{children:[u.label&&v.jsx(mZ,{children:u.label}),i||v.jsxs(f.Fragment,{children:[!u.disableColumnSelector&&v.jsx(u.slots.baseTooltip,{title:c.current.getLocaleText("toolbarColumns"),children:v.jsx(Uy,{render:v.jsx(sl,{}),children:v.jsx(u.slots.columnSelectorIcon,{fontSize:"small"})})}),!u.disableColumnFilter&&v.jsx(u.slots.baseTooltip,{title:c.current.getLocaleText("toolbarFilters"),children:v.jsx(Wy,{render:(C,S)=>v.jsx(sl,w({},C,{color:S.filterCount>0?"primary":"default",children:v.jsx(u.slots.baseBadge,{badgeContent:S.filterCount,color:"primary",variant:"dot",children:v.jsx(u.slots.openFilterButtonIcon,{fontSize:"small"})})}))})})]}),m&&(!u.disableColumnFilter||!u.disableColumnSelector)&&v.jsx(Ky,{}),m&&v.jsxs(f.Fragment,{children:[v.jsx(u.slots.baseTooltip,{title:c.current.getLocaleText("toolbarExport"),disableInteractive:d,children:v.jsx(sl,{ref:g,id:b,"aria-controls":h,"aria-haspopup":"true","aria-expanded":d?"true":void 0,onClick:()=>p(!d),children:v.jsx(u.slots.exportIcon,{fontSize:"small"})})}),v.jsx(Wa,{target:g.current,open:d,onClose:y,position:"bottom-end",children:v.jsxs(u.slots.baseMenuList,w({id:h,"aria-labelledby":b,autoFocusItem:!0},u.slotProps?.baseMenuList,{children:[!s?.disableToolbarButton&&v.jsx(Yy,{render:v.jsx(u.slots.baseMenuItem,w({},u.slotProps?.baseMenuItem)),options:s,onClick:y,children:c.current.getLocaleText("toolbarExportPrint")}),!r?.disableToolbarButton&&v.jsx(qy,{render:v.jsx(u.slots.baseMenuItem,w({},u.slotProps?.baseMenuItem)),options:r,onClick:y,children:c.current.getLocaleText("toolbarExportCSV")}),a?.(y)]}))})]}),t&&v.jsxs(f.Fragment,{children:[v.jsx(Ky,{}),v.jsx(SI,w({},n))]})]}))}process.env.NODE_ENV!=="production"&&(PI.propTypes={additionalExportMenuItems:o.func,additionalItems:o.node,csvOptions:o.object,printOptions:o.object,quickFilterProps:o.shape({className:o.string,debounceMs:o.number,quickFilterFormatter:o.func,quickFilterParser:o.func,slotProps:o.object}),showQuickFilter:o.bool,slotProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const bZ=["className","selectedRowCount"],yZ=e=>{const{classes:t}=e;return pe({root:["selectedRowCount"]},Je,t)},vZ=Nr("div",{name:"MuiDataGrid",slot:"SelectedRowCount"})({alignItems:"center",display:"flex",margin:Ee.spacing(0,2),visibility:"hidden",width:0,height:0,[Ee.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}),Xy=ze(function(t,n){const{className:r,selectedRowCount:s}=t,i=ie(t,bZ),a=Xe(),l=Ie(),c=yZ(l),u=a.current.getLocaleText("footerRowSelected")(s);return v.jsx(vZ,w({className:se(c.root,r),ownerState:l},i,{ref:n,children:u}))});process.env.NODE_ENV!=="production"&&(Xy.displayName="GridSelectedRowCount"),process.env.NODE_ENV!=="production"&&(Xy.propTypes={selectedRowCount:o.number.isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Zy=ze(function(t,n){const r=Xe(),s=Ie(),i=ue(r,Jj),a=ue(r,tf),l=ue(r,qa),c=!s.hideFooterSelectedRowCount&&a>0?v.jsx(Xy,{selectedRowCount:a}):v.jsx("div",{}),u=!s.hideFooterRowCount&&!s.pagination?v.jsx(s.slots.footerRowCount,w({},s.slotProps?.footerRowCount,{rowCount:i,visibleRowCount:l})):null,d=s.pagination&&!s.hideFooterPagination&&s.slots.pagination&&v.jsx(s.slots.pagination,w({},s.slotProps?.pagination));return v.jsxs(Ey,w({},t,{ref:n,children:[c,u,d]}))});process.env.NODE_ENV!=="production"&&(Zy.displayName="GridFooter"),process.env.NODE_ENV!=="production"&&(Zy.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const ru=(e,t,n,r,s,i)=>{let a;switch(e){case pt.LEFT:a=r[n];break;case pt.RIGHT:a=s-r[n]-t+i;break;default:a=void 0;break}return Number.isNaN(a)&&(a=void 0),a},su=(e,t,n,r,s,i)=>{const a=t===n-1;return i?.startsWith("border")&&e===pt.LEFT&&a?!0:r?e===pt.LEFT?!0:e===pt.RIGHT?!a:!a||s:!1},iu=(e,t,n,r)=>r?.startsWith("border")?e===pt.RIGHT&&t===0:n&&e===pt.RIGHT&&t===0,CZ=["skeletonRowsCount","visibleColumns","showFirstRowBorder"],wZ=U("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay"})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),SZ=e=>{const{classes:t}=e;return pe({root:["skeletonLoadingOverlay"]},Je,t)},EI=e=>parseInt(e.getAttribute("data-colindex"),10),TI=ze(function(t,n){const r=Ie(),{slots:s}=r,i=_t(),a=SZ({classes:r.classes}),l=f.useRef(null),c=tt(l,n),u=Xe(),d=ue(u,an),p=ue(u,Bc),g=ue(u,As),h=f.useMemo(()=>g.filter(O=>O<=p).length,[p,g]),{skeletonRowsCount:b,visibleColumns:m,showFirstRowBorder:y}=t,C=ie(t,CZ),S=ue(u,ln),x=f.useMemo(()=>S.slice(0,h),[S,h]),E=ue(u,Ga),P=f.useCallback(O=>{if(E.left.findIndex(k=>k.field===O)!==-1)return pt.LEFT;if(E.right.findIndex(k=>k.field===O)!==-1)return pt.RIGHT},[E.left,E.right]),M=f.useMemo(()=>{const O=[];for(let k=0;k<b;k+=1){const I=[];for(let F=0;F<x.length;F+=1){const T=x[F],R=P(T.field),A=R===pt.LEFT,L=R===pt.RIGHT,N=TT(R,i),_=N?E[N].length:x.length-E.left.length-E.right.length,H=N?E[N].findIndex(ee=>ee.field===T.field):F-E.left.length,B=d.hasScrollY?d.scrollbarSize:0,$=tu({},i,R,ru(R,T.computedWidth,F,g,d.columnsTotalWidth,B)),V=d.columnsTotalWidth<d.viewportOuterSize.width,z=su(R,H,_,r.showCellVerticalBorder,V,r.pinnedColumnsSectionSeparator),j=iu(R,H,r.showCellVerticalBorder,r.pinnedColumnsSectionSeparator),G=F===x.length-1,Q=L&&H===0,q=Q&&V,Y=G&&!Q&&V,K=d.viewportOuterSize.width-d.columnsTotalWidth,J=Math.max(0,K),X=v.jsx(s.skeletonCell,{width:J,empty:!0},`skeleton-filler-column-${k}`);q&&I.push(X),I.push(v.jsx(s.skeletonCell,{field:T.field,type:T.type,align:T.align,width:"var(--width)",height:d.rowHeight,"data-colindex":F,empty:m&&!m.has(T.field),className:se(A&&Z["cell--pinnedLeft"],L&&Z["cell--pinnedRight"],z&&Z["cell--withRightBorder"],j&&Z["cell--withLeftBorder"]),style:w({"--width":`${T.computedWidth}px`},$)},`skeleton-column-${k}-${T.field}`)),Y&&I.push(X)}O.push(v.jsx("div",{className:se(Z.row,Z.rowSkeleton,k===0&&!y&&Z["row--firstVisible"]),children:I},`skeleton-row-${k}`))}return O},[b,x,P,i,E,d.hasScrollY,d.scrollbarSize,d.columnsTotalWidth,d.viewportOuterSize.width,d.rowHeight,g,r.showCellVerticalBorder,r.pinnedColumnsSectionSeparator,s,m,y]);return xe(u,"columnResize",O=>{const{colDef:k,width:I}=O,F=l.current?.querySelectorAll(`[data-field="${qr(k.field)}"]`);if(!F)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const T=x.findIndex(H=>H.field===k.field),R=P(k.field),A=R===pt.LEFT,L=R===pt.RIGHT,N=getComputedStyle(F[0]).getPropertyValue("--width"),_=parseInt(N,10)-I;F&&F.forEach(H=>{H.style.setProperty("--width",`${I}px`)}),A&&l.current?.querySelectorAll(`.${Z["cell--pinnedLeft"]}`)?.forEach(B=>{EI(B)>T&&(B.style.left=`${parseInt(getComputedStyle(B).left,10)-_}px`)}),L&&l.current?.querySelectorAll(`.${Z["cell--pinnedRight"]}`)?.forEach(B=>{EI(B)<T&&(B.style.right=`${parseInt(getComputedStyle(B).right,10)+_}px`)})}),v.jsx(wZ,w({className:a.root},C,{ref:c,children:M}))});process.env.NODE_ENV!=="production"&&(TI.displayName="GridSkeletonLoadingOverlayInner");const II=ze(function(t,n){const r=Xe(),s=ue(r,an),i=s?.viewportInnerSize.height??0,a=Math.ceil(i/s.rowHeight);return v.jsx(TI,w({},t,{skeletonRowsCount:a,ref:n}))});process.env.NODE_ENV!=="production"&&(II.displayName="GridSkeletonLoadingOverlay");const xZ=["variant","noRowsVariant","style"],PZ={"circular-progress":{component:e=>e.slots.baseCircularProgress,style:{}},"linear-progress":{component:e=>e.slots.baseLinearProgress,style:{display:"block"}},skeleton:{component:()=>II,style:{display:"block"}}},Qy=ze(function(t,n){const{variant:r="linear-progress",noRowsVariant:s="skeleton",style:i}=t,a=ie(t,xZ),l=Xe(),c=Ie(),u=ue(l,_a),d=PZ[u===0?s:r],p=d.component(c);return v.jsx(rl,w({style:w({},d.style,i)},a,{ref:n,children:v.jsx(p,{})}))});process.env.NODE_ENV!=="production"&&(Qy.displayName="GridLoadingOverlay"),process.env.NODE_ENV!=="production"&&(Qy.propTypes={noRowsVariant:o.oneOf(["circular-progress","linear-progress","skeleton"]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["circular-progress","linear-progress","skeleton"])});const Jy=ze(function(t,n){const s=Xe().current.getLocaleText("noRowsLabel");return v.jsx(rl,w({},t,{ref:n,children:s}))});process.env.NODE_ENV!=="production"&&(Jy.displayName="GridNoRowsOverlay"),process.env.NODE_ENV!=="production"&&(Jy.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const e0=ze(function(t,n){const r=Ie(),s=Xe(),i=ue(s,lr),a=()=>{s.current.showPreferences(mo.columns)},l=!r.disableColumnSelector&&i.length>0;return v.jsxs(rl,w({},t,{ref:n,children:[s.current.getLocaleText("noColumnsOverlayLabel"),l&&v.jsx(r.slots.baseButton,w({size:"small"},r.slotProps?.baseButton,{onClick:a,children:s.current.getLocaleText("noColumnsOverlayManageColumns")}))]}))});process.env.NODE_ENV!=="production"&&(e0.displayName="GridNoColumnsOverlay"),process.env.NODE_ENV!=="production"&&(e0.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const EZ=U(zo,{slot:"internal"})({maxHeight:"calc(100% + 1px)",flexGrow:1});function MI(){const e=Xe(),t=Ie(),n=ue(e,fn),r=ue(e,Vs),s=ue(e,DE),{paginationMode:i,loading:a}=t,l=r===-1&&i==="server"&&a,c=f.useMemo(()=>Math.max(0,s-1),[s]),u=f.useMemo(()=>r===-1||n.page<=c?n.page:c,[c,n.page,r]),d=f.useCallback(b=>{e.current.setPageSize(b)},[e]),p=f.useCallback((b,m)=>{e.current.setPage(m)},[e]),g=b=>{for(let m=0;m<t.pageSizeOptions.length;m+=1){const y=t.pageSizeOptions[m];if(typeof y=="number"){if(y===b)return!0}else if(y.value===b)return!0}return!1};if(process.env.NODE_ENV!=="production"){const b=f.useRef(!1),m=t.paginationModel?.pageSize??n.pageSize;!b.current&&!t.autoPageSize&&!g(m)&&(console.warn([`MUI X: The page size \`${n.pageSize}\` is not present in the \`pageSizeOptions\`.`,"Add it to show the pagination select."].join(`
399
+ `)),b.current=!0)}const h=g(n.pageSize)?t.pageSizeOptions:[];return v.jsx(EZ,w({as:t.slots.basePagination,count:r,page:u,rowsPerPageOptions:h,rowsPerPage:n.pageSize,onPageChange:p,onRowsPerPageChange:d,disabled:l},t.slotProps?.basePagination))}process.env.NODE_ENV!=="production"&&(MI.propTypes={component:o.elementType});const TZ=["className","rowCount","visibleRowCount"],IZ=e=>{const{classes:t}=e;return pe({root:["rowCount"]},Je,t)},MZ=Nr("div",{name:"MuiDataGrid",slot:"RowCount"})({alignItems:"center",display:"flex",margin:Ee.spacing(0,2)}),t0=ze(function(t,n){const{className:r,rowCount:s,visibleRowCount:i}=t,a=ie(t,TZ),l=Xe(),c=Ie(),u=IZ(c);if(s===0)return null;const d=i<s?l.current.getLocaleText("footerTotalVisibleRows")(i,s):s.toLocaleString();return v.jsxs(MZ,w({className:se(u.root,r),ownerState:c},a,{ref:n,children:[l.current.getLocaleText("footerTotalRows")," ",d]}))});process.env.NODE_ENV!=="production"&&(t0.displayName="GridRowCount"),process.env.NODE_ENV!=="production"&&(t0.propTypes={rowCount:o.number.isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),visibleRowCount:o.number.isRequired});function OZ(e,t){return pe(t,Je,e)}const n0=Ht(e=>e.rowReorder),kZ=De(n0,e=>e?.isActive??!1),OI=De(n0,e=>e?.dropTarget??{rowId:null,position:null});De(OI,e=>e.rowId??null);const DZ=De(OI,(e,t)=>e.rowId===t?e.position:null);De(n0,e=>e?.draggedRowId??null);const FZ=U("div",{name:"MuiDataGrid",slot:"RowDragOverlay",shouldForwardProp:e=>So(e)&&e!=="action"})(({theme:e,action:t})=>w({position:"absolute",left:0,right:0,top:0,bottom:0,pointerEvents:"none",zIndex:1},t==="above"&&{"&::before":{pointerEvents:"none",content:'""',position:"absolute",top:0,left:0,right:0,height:"2px",backgroundColor:(e.vars||e).palette.primary.main}},t==="below"&&{"&::after":{pointerEvents:"none",content:'""',position:"absolute",bottom:"-2px",left:0,right:0,height:"2px",backgroundColor:(e.vars||e).palette.primary.main}},t==="inside"&&{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.1)`:$n(e.palette.primary.main,.1)})),kI=f.memo(function(t){const{rowId:n,className:r}=t,s=Hn(),i=ue(s,DZ,n);return i?v.jsx(FZ,{action:i,className:r}):null});process.env.NODE_ENV!=="production"&&(kI.displayName="GridRowDragAndDropOverlay");const NZ=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],RZ=De(kn,(e,{rowReordering:t,treeData:n})=>!t||n?!1:!!Jp(e)),o0=ze(function(t,n){const{selected:r,rowId:s,row:i,index:a,style:l,rowHeight:c,className:u,visibleColumns:d,pinnedColumns:p,offsetLeft:g,columnsTotalWidth:h,firstColumnIndex:b,lastColumnIndex:m,focusedColumnIndex:y,isFirstVisible:C,isLastVisible:S,isNotVisible:x,showBottomBorder:E,scrollbarWidth:P,gridHasFiller:M,onClick:D,onDoubleClick:O,onMouseEnter:k,onMouseLeave:I,onMouseOut:F,onMouseOver:T}=t,R=ie(t,NZ),A=Hn(),L=Kp(),N=f.useRef(null),_=Ie(),H=PT(A),B=ue(A,Bn),$=ue(A,As),V=_.rowReordering,z=_.treeData,j=ue(A,RZ,{rowReordering:V,treeData:z}),G=ue(A,kZ),Q=tt(N,n),q=St(A,s),Y=ue(A,oT,{rowId:s,editMode:_.editMode}),K=_.editMode===zr.Row,J=y!==void 0,X=J&&y>=p.left.length&&y<b,ee=J&&y<d.length-p.right.length&&y>=m,W=OZ(_.classes,{root:["row",r&&"selected",K&&"row--editable",Y&&"row--editing",C&&"row--firstVisible",S&&"row--lastVisible",E&&"row--borderBottom",c==="auto"&&"row--dynamicHeight"]}),le=L.hooks.useGridRowAriaAttributes();f.useLayoutEffect(()=>{if(H.range){const me=A.current.getRowIndexRelativeToVisibleRows(s);me!==void 0&&A.current.unstable_setLastMeasuredRowIndex(me)}if(N.current&&c==="auto")return A.current.observeRowHeight(N.current,s)},[A,H.range,c,s]);const oe=f.useCallback((me,Pe)=>ge=>{il(ge)||A.current.getRow(s)&&(A.current.publishEvent(me,A.current.getRowParams(s),ge),Pe&&Pe(ge))},[A,s]),re=f.useCallback(me=>{const ge=bf(me.target,Z.cell)?.getAttribute("data-field");ge&&(ge===Xa.field||ge===oo||ge==="__reorder__"||A.current.getCellMode(s,ge)===Nt.Edit||A.current.getColumn(ge)?.type===Zp)||oe("rowClick",D)(me)},[A,D,oe,s]),{slots:ae,slotProps:ne,disableColumnReorder:te}=_,ye=ue(A,()=>w({},A.current.getRowHeightEntry(s)),void 0,Db),ce=f.useMemo(()=>{if(x)return{opacity:0,width:0,height:0};const me=w({},l,{maxHeight:c==="auto"?"none":c,minHeight:c,"--height":typeof c=="number"?`${c}px`:c});if(ye.spacingTop){const Pe=_.rowSpacingType==="border"?"borderTopWidth":"marginTop";me[Pe]=ye.spacingTop}if(ye.spacingBottom){const Pe=_.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let ge=me[Pe];typeof ge!="number"&&(ge=parseInt(ge||"0",10)),ge+=ye.spacingBottom,me[Pe]=ge}return me},[x,c,l,ye.spacingTop,ye.spacingBottom,_.rowSpacingType]);if(!q)return null;const Se=A.current.unstable_applyPipeProcessors("rowClassName",[],s),we=le(q,a);if(typeof _.getRowClassName=="function"){const me=a-(H.range?.firstRowIndex||0),Pe=w({},A.current.getRowParams(s),{isFirstVisible:me===0,isLastVisible:me===H.rows.length-1,indexRelativeToCurrentPage:me});Se.push(_.getRowClassName(Pe))}const Be=(me,Pe,ge,Te,$e=pt.NONE)=>{const Ge=A.current.unstable_getCellColSpanInfo(s,ge);if(Ge?.spannedByColSpan)return null;const ot=Ge?.cellProps.width??me.computedWidth,Tt=Ge?.cellProps.colSpan??1,We=ru($e,me.computedWidth,ge,$,h,P);if(q.type==="skeletonRow")return v.jsx(ae.skeletonCell,{type:me.type,width:ot,height:c,field:me.field,align:me.align},me.field);const Oe=me.field==="__reorder__",Ue=!(te||me.disableReorder),ut=j&&!B.length,zt=!(Ue||Oe&&ut||G),Et=$e===pt.VIRTUAL,zn=iu($e,Pe,_.showCellVerticalBorder,_.pinnedColumnsSectionSeparator),wn=su($e,Pe,Te,_.showCellVerticalBorder,M,_.pinnedColumnsSectionSeparator);return v.jsx(ae.cell,w({column:me,width:ot,rowId:s,align:me.align||"left",colIndex:ge,colSpan:Tt,disableDragEvents:zt,isNotVisible:Et,pinnedOffset:We,pinnedPosition:$e,showLeftBorder:zn,showRightBorder:wn,row:i,rowNode:q},ne?.cell),me.field)};process.env.NODE_ENV!=="production"&&(Be.displayName="getCell");const Fe=p.left.map((me,Pe)=>Be(me,Pe,Pe,p.left.length,pt.LEFT)),Ye=p.right.map((me,Pe)=>{const ge=d.length-p.right.length+Pe;return Be(me,Pe,ge,p.right.length,pt.RIGHT)}),Ne=d.length-p.left.length-p.right.length,Ke=[];X&&Ke.push(Be(d[y],y-p.left.length,y,Ne,pt.VIRTUAL));for(let me=b;me<m;me+=1){const Pe=d[me],ge=me-p.left.length;Pe&&Ke.push(Be(Pe,ge,me,Ne))}ee&&Ke.push(Be(d[y],y-p.left.length,y,Ne,pt.VIRTUAL));const He=i?{onClick:re,onDoubleClick:oe("rowDoubleClick",O),onMouseEnter:oe("rowMouseEnter",k),onMouseLeave:oe("rowMouseLeave",I),onMouseOut:oe("rowMouseOut",F),onMouseOver:oe("rowMouseOver",T)}:null;return v.jsxs("div",w({"data-id":s,"data-rowindex":a,role:"row",className:se(...Se,W.root,u),style:ce},we,He,R,{ref:Q,children:[Fe,v.jsx("div",{role:"presentation",className:Z.cellOffsetLeft,style:{width:g}}),Ke,v.jsx("div",{role:"presentation",className:se(Z.cell,Z.cellEmpty)}),Ye,v.jsx(kI,{rowId:s})]}))});process.env.NODE_ENV!=="production"&&(o0.displayName="GridRow"),process.env.NODE_ENV!=="production"&&(o0.propTypes={columnsTotalWidth:o.number.isRequired,firstColumnIndex:o.number.isRequired,focusedColumnIndex:o.number,gridHasFiller:o.bool.isRequired,index:o.number.isRequired,isFirstVisible:o.bool.isRequired,isLastVisible:o.bool.isRequired,isNotVisible:o.bool.isRequired,lastColumnIndex:o.number.isRequired,offsetLeft:o.number.isRequired,onClick:o.func,onDoubleClick:o.func,onMouseEnter:o.func,onMouseLeave:o.func,pinnedColumns:o.object.isRequired,row:o.object.isRequired,rowHeight:o.oneOfType([o.oneOf(["auto"]),o.number]).isRequired,rowId:o.oneOfType([o.number,o.string]).isRequired,scrollbarWidth:o.number.isRequired,selected:o.bool.isRequired,showBottomBorder:o.bool.isRequired,visibleColumns:o.arrayOf(o.object).isRequired});const LZ=vr(o0);function $Z({privateApiRef:e,configuration:t,props:n,children:r}){const s=f.useRef(e.current.getPublicApi());return v.jsx(Hb.Provider,{value:t,children:v.jsx(Mb.Provider,{value:n,children:v.jsx(ay.Provider,{value:e,children:v.jsx(Ob.Provider,{value:s,children:v.jsx(_Y,{children:v.jsx(XG,{children:r})})})})})})}const DI=[];let zi=0;for(;zi<64;)DI[zi]=0|Math.sin(++zi%Math.PI)*4294967296;function AZ(e){const t=[];let n,r,s,i=unescape(encodeURI(e))+"€",a=i.length;const l=[n=1732584193,r=4023233417,~n,~r];for(e=--a/4+2|15,t[--e]=a*8;~a;)t[a>>2]|=i.charCodeAt(a)<<8*a--;for(zi=i=0;zi<e;zi+=16){for(a=l;i<64;a=[s=a[3],n+((s=a[0]+[n&r|~n&s,s&n|~s&r,n^r^s,r^(n|~s)][a=i>>4]+DI[i]+~~t[zi|[i,5*i+1,3*i+5,7*i][a]&15])<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+i++%4])|s>>>-a),n,r])n=a[1]|0,r=a[2];for(i=4;i;)l[--i]+=a[i]}for(e="";i<32;)e+=(l[i>>3]>>(1^i++)*4&15).toString(16);return e}const Cf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",FI=e=>{let t="",n,r,s,i,a,l,c,u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)i=Cf.indexOf(e.charAt(u++)),a=Cf.indexOf(e.charAt(u++)),l=Cf.indexOf(e.charAt(u++)),c=Cf.indexOf(e.charAt(u++)),n=i<<2|a>>4,r=(a&15)<<4|l>>2,s=(l&3)<<6|c,t=t+String.fromCharCode(n),l!=64&&(t=t+String.fromCharCode(r)),c!=64&&(t=t+String.fromCharCode(s));return t},VZ=["pro","premium"],_Z=["perpetual","annual","subscription"],BZ=typeof window<"u"&&window.location.hostname.endsWith(".csb.app");function ll(e){(BZ?console.log:console.error)(["*************************************************************","",...e,"","*************************************************************"].join(`
400
+ `))}function HZ(){ll(["MUI X: Invalid license key.","","Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.","","To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument","Please check the license key installation https://mui.com/r/x-license-key-installation."])}function zZ({packageName:e}){const t=e.replace(/-(premium|pro)$/,"");ll(["MUI X: License key plan mismatch.","","Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use Data Grid Premium with a license key for the Pro plan.","","To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.",`Or if you didn't intend to use Premium features, you can replace the import of \`${t}-premium\` with \`${t}-pro\`.`])}function jZ(){ll(["MUI X: Component not included in your license.","","The component you are trying to use is not included in the Pro Plan you purchased.","","Your license is from an old version of the Pro Plan that is only compatible with the `@mui/x-data-grid-pro` and `@mui/x-date-pickers-pro` commercial packages.","","To start using another Pro package, please consider reaching to our sales team to upgrade your license or visit https://mui.com/r/x-get-license to get a new license key."])}function GZ({plan:e,packageName:t}){ll(["MUI X: Missing license key.","",`The license key is missing. You might not be allowed to use \`${t}\` which is part of MUI X ${e}.`,"","To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.","If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately."])}function WZ({packageName:e}){ll(["MUI X: Expired package version.","",`You have installed a version of \`${e}\` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase.`,"","To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key."])}function UZ({plan:e,licenseKey:t,expiryTimestamp:n}){ll(["MUI X: Expired license key.","",`Your annual license key to use MUI X ${e} in non-production environments has expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${e} component (more details in https://mui.com/r/x-license-annual).`,"","To solve the problem you can either:","","- Renew your license https://mui.com/r/x-get-license and use the new key",`- Stop making changes to code depending directly or indirectly on MUI X ${e}'s APIs`,"","Note that your license is perpetual in production environments with any version released before your license term ends.","",`- License key expiry timestamp: ${new Date(n)}`,`- Installed license key: ${t}`,""])}function qZ({plan:e,licenseKey:t,expiryTimestamp:n}){throw new Error(["MUI X: Expired license key.","",`Your annual license key to use MUI X ${e} in non-production environments has expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${e} component (more details in https://mui.com/r/x-license-annual).`,"","To solve the problem you can either:","","- Renew your license https://mui.com/r/x-get-license and use the new key",`- Stop making changes to code depending directly or indirectly on MUI X ${e}'s APIs`,"","Note that your license is perpetual in production environments with any version released before your license term ends.","",`- License key expiry timestamp: ${new Date(n)}`,`- Installed license key: ${t}`,""].join(`
401
+ `))}globalThis.__MUI_LICENSE_INFO__=globalThis.__MUI_LICENSE_INFO__||{key:void 0};class wf{static getLicenseInfo(){return globalThis.__MUI_LICENSE_INFO__}static getLicenseKey(){return wf.getLicenseInfo().key}static setLicenseKey(t){const n=wf.getLicenseInfo();n.key=t}}let sn=(function(e){return e.NotFound="NotFound",e.Invalid="Invalid",e.ExpiredAnnual="ExpiredAnnual",e.ExpiredAnnualGrace="ExpiredAnnualGrace",e.ExpiredVersion="ExpiredVersion",e.Valid="Valid",e.OutOfScope="OutOfScope",e.NotAvailableInInitialProPlan="NotAvailableInInitialProPlan",e})({});function YZ(e,t){let n;return e.includes("-pro")?n=["pro","premium"]:e.includes("-premium")?n=["premium"]:n=[],n.includes(t)}const KZ=/^.*EXPIRY=([0-9]+),.*$/,XZ=/^.*ORDER:([0-9]+),.*$/,ZZ=["x-data-grid-pro","x-date-pickers-pro"];function QZ(e){let t,n;try{t=parseInt(e.match(KZ)[1],10),(!t||Number.isNaN(t))&&(t=null),n=parseInt(e.match(XZ)[1],10),(!n||Number.isNaN(n))&&(n=null)}catch{t=null,n=null}return{version:1,licenseModel:"perpetual",planScope:"pro",planVersion:"initial",expiryTimestamp:t,expiryDate:t?new Date(t):null,orderId:n}}function JZ(e){const t={version:2,licenseModel:null,planScope:null,planVersion:"initial",expiryTimestamp:null,expiryDate:null,orderId:null};return e.split(",").map(n=>n.split("=")).filter(n=>n.length===2).forEach(([n,r])=>{if(n==="S"&&(t.planScope=r),n==="LM"&&(t.licenseModel=r),n==="E"){const s=parseInt(r,10);s&&!Number.isNaN(s)&&(t.expiryTimestamp=s,t.expiryDate=new Date(s))}if(n==="PV"&&(t.planVersion=r),n==="O"){const s=parseInt(r,10);s&&!Number.isNaN(s)&&(t.orderId=s)}}),t}function eQ(e){const t=FI(e);return t.includes("KEYVERSION=1")?QZ(t):t.includes("KV=2")?JZ(t):null}function tQ({releaseInfo:e,licenseKey:t,packageName:n}){if(!e)throw new Error("MUI X: The release information is missing. Not able to validate license.");if(!t)return{status:sn.NotFound};const r=t.substr(0,32),s=t.substr(32);if(r!==AZ(s))return{status:sn.Invalid};const i=eQ(s);if(i==null)return console.error("MUI X: Error checking license. Key version not found!"),{status:sn.Invalid};if(i.licenseModel==null||!_Z.includes(i.licenseModel))return console.error("MUI X: Error checking license. License model not found or invalid!"),{status:sn.Invalid};if(i.expiryTimestamp==null)return console.error("MUI X: Error checking license. Expiry timestamp not found or invalid!"),{status:sn.Invalid};if(i.licenseModel==="perpetual"||process.env.NODE_ENV==="production"){const a=parseInt(FI(e),10);if(Number.isNaN(a))throw new Error("MUI X: The release information is invalid. Not able to validate license.");if(i.expiryTimestamp<a)return{status:sn.ExpiredVersion}}else if((i.licenseModel==="subscription"||i.licenseModel==="annual")&&new Date().getTime()>i.expiryTimestamp)return new Date().getTime()<i.expiryTimestamp+1e3*3600*24*30||process.env.NODE_ENV!=="development"?{status:sn.ExpiredAnnualGrace,meta:{expiryTimestamp:i.expiryTimestamp,licenseKey:t}}:{status:sn.ExpiredAnnual,meta:{expiryTimestamp:i.expiryTimestamp,licenseKey:t}};return i.planScope==null||!VZ.includes(i.planScope)?(console.error("MUI X: Error checking license. planScope not found or invalid!"),{status:sn.Invalid}):YZ(n,i.planScope)?i.planVersion==="initial"&&i.planScope==="pro"&&!ZZ.includes(n)?{status:sn.NotAvailableInInitialProPlan}:{status:sn.Valid}:{status:sn.OutOfScope}}const nQ=()=>null,oQ={licenseVerification:process.env.NODE_ENV==="production"?nQ:(e,t)=>({eventName:"licenseVerification",payload:t,context:e})},rQ=["1","true","yes","y"],sQ=["0","false","no","n"];function Sf(e){if(e){if(rQ.includes(e))return!0;if(sQ.includes(e))return!1}}function NI(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const s=n[r];if(!s.endsWith(e))continue;const i=Sf(t[s]?.toLowerCase());if(typeof i=="boolean")return i}}function iQ(){const e=globalThis.__MUI_X_TELEMETRY_DISABLED__;if(typeof e=="boolean")return!e;try{if(typeof process<"u"&&process.env&&typeof process.env=="object"){const t=NI("MUI_X_TELEMETRY_DISABLED",process.env);if(typeof t=="boolean")return!t}}catch{}try{const t=process.env.MUI_X_TELEMETRY_DISABLED||process.env.NEXT_PUBLIC_MUI_X_TELEMETRY_DISABLED||process.env.GATSBY_MUI_X_TELEMETRY_DISABLED||process.env.REACT_APP_MUI_X_TELEMETRY_DISABLED||process.env.PUBLIC_MUI_X_TELEMETRY_DISABLED,n=Sf(t);if(typeof n=="boolean")return!n}catch{}}function aQ(){try{const e=globalThis.__MUI_X_TELEMETRY_DEBUG__;if(typeof e=="boolean")return e;if(typeof process<"u"&&process.env&&typeof process.env=="object"){const t=NI("MUI_X_TELEMETRY_DEBUG",process.env);if(typeof t=="boolean")return t}if(process.env.MUI_X_TELEMETRY_DEBUG){const t=Sf(process.env.MUI_X_TELEMETRY_DEBUG);if(typeof t=="boolean")return t}}catch{}try{const e=process.env.MUI_X_TELEMETRY_DEBUG||process.env.NEXT_PUBLIC_MUI_X_TELEMETRY_DEBUG||process.env.GATSBY_MUI_X_TELEMETRY_DEBUG||process.env.REACT_APP_MUI_X_TELEMETRY_DEBUG||process.env.PUBLIC_MUI_X_TELEMETRY_DEBUG,t=Sf(e);if(typeof t=="boolean")return t}catch{}return!1}function lQ(){try{return process.env.NODE_ENV??"<unknown>"}catch{return"<unknown>"}}let r0=null;function cQ(e=!1){return(e||!r0)&&(r0={NODE_ENV:lQ(),IS_COLLECTING:iQ(),DEBUG:aQ()}),r0}function RI(e){return cQ()[e]}async function LI(e,t,n=3){try{const r=await fetch(e,t);if(r.ok)return r;throw new Error(`Request failed with status ${r.status}`)}catch(r){if(n===0)throw r;return new Promise(s=>{setTimeout(()=>{s(LI(e,t,n-1))},Math.random()*3e3)})}}const uQ=3;function dQ(e){if(typeof window>"u")return!1;const t=RI("IS_COLLECTING");return typeof t=="boolean"?t:(e.traits.isCI,!1)}async function pQ(e){try{if(process.env.NODE_ENV==="production")return;const{default:t}=await Promise.resolve().then(()=>kie),n=await t();if(!e||!dQ(n))return;const r=w({},e,{context:w({},n.traits,e.context)});if(RI("DEBUG")){console.log("[mui-x-telemetry] event",JSON.stringify(r,null,2));return}await LI("https://x-telemetry.mui.com/v2/telemetry/record",{method:"POST",headers:{"Content-Type":"application/json","X-Telemetry-Client-Version":"8.20.0","X-Telemetry-Node-Env":process.env.NODE_ENV??"<unknown>"},body:JSON.stringify([r])},uQ)}catch(t){console.log("[mui-x-telemetry] error",t)}}const fQ={};const hQ=()=>{},gQ=process.env.NODE_ENV==="production"?hQ:pQ;process.env.NODE_ENV;const $I=f.createContext({key:void 0});process.env.NODE_ENV!=="production"&&($I.displayName="MuiLicenseInfoContext");const xf={};function au(e,t){const{key:n}=f.useContext($I);return f.useMemo(()=>{const r=n??wf.getLicenseKey();if(xf[e]&&xf[e].key===r)return xf[e].licenseVerifier;const s=e.includes("premium")?"Premium":"Pro",i=tQ({releaseInfo:t,licenseKey:r,packageName:e}),a=`@mui/${e}`;if(gQ(oQ.licenseVerification({licenseKey:r},{packageName:e,packageReleaseInfo:t,licenseStatus:i?.status})),i.status!==sn.Valid){if(i.status===sn.Invalid)HZ();else if(i.status===sn.NotAvailableInInitialProPlan)jZ();else if(i.status===sn.OutOfScope)zZ({packageName:a});else if(i.status===sn.NotFound)GZ({plan:s,packageName:a});else if(i.status===sn.ExpiredAnnualGrace)UZ(w({plan:s},i.meta));else if(i.status===sn.ExpiredAnnual)qZ(w({plan:s},i.meta));else if(i.status===sn.ExpiredVersion)WZ({packageName:a});else if(process.env.NODE_ENV!=="production")throw new Error("missing status handler")}return xf[e]={key:r,licenseVerifier:i},i},[e,t,n])}function mQ(e){switch(e){case sn.ExpiredAnnualGrace:case sn.ExpiredAnnual:return"MUI X Expired license key";case sn.ExpiredVersion:return"MUI X Expired package version";case sn.Invalid:return"MUI X Invalid license key";case sn.OutOfScope:return"MUI X License key plan mismatch";case sn.NotAvailableInInitialProPlan:return"MUI X Product not covered by plan";case sn.NotFound:return"MUI X Missing license key";default:throw new Error("Unhandled MUI X license status.")}}function bQ(e){const{packageName:t,releaseInfo:n}=e,r=au(t,n);return r.status===sn.Valid?null:v.jsx("div",{style:{position:"absolute",pointerEvents:"none",color:"#8282829e",zIndex:1e5,width:"100%",textAlign:"center",bottom:"50%",right:0,letterSpacing:5,fontSize:24},children:mQ(r.status)})}const AI=vr(bQ),yQ=["sortingOrder"],VI=f.memo(function(t){const{sortingOrder:n}=t,r=ie(t,yQ),s=Ie(),[i]=n,a=i==="asc"?s.slots.columnSortedAscendingIcon:s.slots.columnSortedDescendingIcon;return a?v.jsx(a,w({},r)):null});process.env.NODE_ENV!=="production"&&(VI.displayName="GridColumnUnsortedIcon");const vQ=new TextEncoder;let Pf=2*1024,lu=new ArrayBuffer(Pf),s0=new Uint8Array(lu),ji=new Int32Array(lu);const CQ=wQ;function wQ(e){const t=e.length*2;t>Pf&&(Pf=t+(4-t%4),lu=new ArrayBuffer(Pf),s0=new Uint8Array(lu),ji=new Int32Array(lu));const n=vQ.encodeInto(e,s0).written,r=0,s=n|0;let i=0,a=(r+s|0)+374761393|0;if(s<16)for(;(i+3|0)<s;i=i+4|0)a=Math.imul(Er(a+Math.imul(ji[i]|0,3266489917)|0,17)|0,668265263);else{let l=r+606290984|0,c=r+2246822519|0,u=r,d=r-2654435761|0;for(;(i+15|0)<s;i=i+16|0)l=Math.imul(Er(l+Math.imul(ji[i+0|0]|0,2246822519)|0,13)|0,2654435761),c=Math.imul(Er(c+Math.imul(ji[i+4|0]|0,2246822519)|0,13)|0,2654435761),u=Math.imul(Er(u+Math.imul(ji[i+8|0]|0,2246822519)|0,13)|0,2654435761),d=Math.imul(Er(d+Math.imul(ji[i+12|0]|0,2246822519)|0,13)|0,2654435761);for(a=(((Er(l,1)|0+Er(c,7)|0)+Er(u,12)|0)+Er(d,18)|0)+s|0;(i+3|0)<s;i=i+4|0)a=Math.imul(Er(a+Math.imul(ji[i]|0,3266489917)|0,17)|0,668265263)}for(;i<s;i=i+1|0)a=Math.imul(Er(a+Math.imul(s0[i]|0,374761393)|0,11)|0,2654435761);return a=Math.imul(a^a>>>15,2246822519),a=Math.imul(a^a>>>13,3266489917),((a^a>>>16)>>>0).toString()}function Er(e,t){return e<<t|e>>>32-t}function SQ(){const e=io();return f.useMemo(()=>{const t=CQ(IQ(e)),n=xQ(e);return{id:t,variables:n}},[e])}function xQ(e){const t=EQ(e),n=(e.vars||e).palette.DataGrid,r=(e.vars||e).palette.background.paper,s=n?.bg??(e.palette.mode==="dark"?wy(`color-mix(in srgb, ${r} 95%, #fff)`,r):r),i=n?.headerBg??s,a=n?.pinnedBg??s,l=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:$n(e.palette.background.default,e.palette.action.disabledOpacity),c=e.palette.mode==="dark"?wy(`color-mix(in srgb, ${r} 90%, #fff)`,r):r,u=e.vars?`rgb(${e.vars.palette.primary.mainChannel})`:e.palette.primary.main,d=PQ(e),p=e.vars?.font?.body2??i0(e.typography.body2),g=e.vars?.font?.caption??i0(e.typography.caption),h=e.vars?.font?.body1??i0(e.typography.body1),b=Ee.keys;return{[b.spacingUnit]:e.vars?e.vars.spacing??e.spacing(1):e.spacing(1),[b.colors.border.base]:t,[b.colors.background.base]:s,[b.colors.background.overlay]:c,[b.colors.background.backdrop]:l,[b.colors.foreground.base]:(e.vars||e).palette.text.primary,[b.colors.foreground.muted]:(e.vars||e).palette.text.secondary,[b.colors.foreground.accent]:(e.vars||e).palette.primary.dark,[b.colors.foreground.disabled]:(e.vars||e).palette.text.disabled,[b.colors.foreground.error]:(e.vars||e).palette.error.dark,[b.colors.interactive.hover]:Cy?(e.vars||e).palette.action.hover:(e.vars||e).palette.grey[e.palette.mode==="dark"?800:100],[b.colors.interactive.hoverOpacity]:(e.vars||e).palette.action.hoverOpacity,[b.colors.interactive.focus]:_I((e.vars||e).palette.primary.main),[b.colors.interactive.focusOpacity]:(e.vars||e).palette.action.focusOpacity,[b.colors.interactive.disabled]:_I((e.vars||e).palette.action.disabled),[b.colors.interactive.disabledOpacity]:(e.vars||e).palette.action.disabledOpacity,[b.colors.interactive.selected]:Cy?u:(e.vars||e).palette.grey[e.palette.mode==="dark"?700:200],[b.colors.interactive.selectedOpacity]:(e.vars||e).palette.action.selectedOpacity,[b.header.background.base]:i,[b.cell.background.pinned]:a,[b.radius.base]:d,[b.typography.fontFamily.base]:e.typography.fontFamily,[b.typography.fontWeight.light]:e.typography.fontWeightLight,[b.typography.fontWeight.regular]:e.typography.fontWeightRegular,[b.typography.fontWeight.medium]:e.typography.fontWeightMedium,[b.typography.fontWeight.bold]:e.typography.fontWeightBold,[b.typography.font.body]:p,[b.typography.font.small]:g,[b.typography.font.large]:h,[b.transitions.easing.easeIn]:e.transitions.easing.easeIn,[b.transitions.easing.easeOut]:e.transitions.easing.easeOut,[b.transitions.easing.easeInOut]:e.transitions.easing.easeInOut,[b.transitions.duration.short]:`${e.transitions.duration.shorter}ms`,[b.transitions.duration.base]:`${e.transitions.duration.short}ms`,[b.transitions.duration.long]:`${e.transitions.duration.standard}ms`,[b.shadows.base]:(e.vars||e).shadows[2],[b.shadows.overlay]:(e.vars||e).shadows[8],[b.zIndex.panel]:(e.vars||e).zIndex.modal,[b.zIndex.menu]:(e.vars||e).zIndex.modal}}function PQ(e){return e.vars?e.vars.shape.borderRadius:typeof e.shape.borderRadius=="number"?`${e.shape.borderRadius}px`:e.shape.borderRadius}function EQ(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?_l($n(e.palette.divider,1),.88):Vl($n(e.palette.divider,1),.68)}function TQ(e,t){return`rgba(from ${e} r g b / ${t})`}function _I(e){return TQ(e,1)}function i0(e){if(!e)return;const t=typeof e.fontSize=="number"?`${e.fontSize}px`:e.fontSize;return`${e.fontWeight} ${t} / ${e.lineHeight} ${e.fontFamily}`}function IQ(e){const t=new WeakSet;return JSON.stringify(e,(n,r)=>{if(typeof window<"u"&&r===window||typeof document<"u"&&r===document)return r.toString();if(r!==null&&typeof r=="object"){if(f.isValidElement(r)||t.has(r))return null;t.add(r)}return r})}const MQ=["id","label","labelId","material","disabled","slotProps","onChange","onKeyDown","onOpen","onClose","size","style","fullWidth"],OQ=["onRowsPerPageChange","material","disabled"],kQ=["material"],DQ=["autoFocus","label","fullWidth","slotProps","className","material"],FQ=["material"],NQ=["material"],RQ=["material"],LQ=["material"],$Q=["material"],AQ=["material"],VQ=["material"],_Q=["material"],BQ=["material"],HQ=["material","label","className"],zQ=["material"],jQ=["inert","iconStart","iconEnd","children","material"],GQ=["slotProps","material"],WQ=["id","multiple","freeSolo","options","getOptionLabel","isOptionEqualToValue","value","onChange","label","placeholder","slotProps","material"],UQ=["key"],qQ=["inputProps","InputProps","InputLabelProps"],YQ=["slotProps","material"],KQ=["material"],XQ=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement","material"],ZQ=["native"],QQ=["children","value","active"],JQ=["items","value","material"],BI=U(xa,{slot:"internal"})(({theme:e})=>({[`&.${Ag.positionEnd} .${cg.sizeSmall}`]:{marginRight:e.spacing(-.75)}})),HI=U(ic,{slot:"internal",shouldForwardProp:e=>e!=="fullWidth"})(({theme:e})=>({gap:e.spacing(.5),margin:0,overflow:"hidden",[`& .${Sa.label}`]:{fontSize:e.typography.pxToRem(14),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),zI=U(va,{slot:"internal",shouldForwardProp:e=>e!=="density"})(({theme:e})=>({variants:[{props:{density:"compact"},style:{padding:e.spacing(.5)}}]})),eJ=U(Vr,{slot:"internal"})({[`& .${hi.primary}`]:{overflowX:"clip",textOverflow:"ellipsis",maxWidth:"300px"}}),jI=ze(function(t,n){const{id:r,label:s,labelId:i,material:a,disabled:l,slotProps:c,onChange:u,onKeyDown:d,onOpen:p,onClose:g,size:h,style:b,fullWidth:m}=t,y=ie(t,MQ),S=io().components?.MuiTextField?.defaultProps??{},x=h??S.size,E=S.variant??"outlined",P={PaperProps:{onKeyDown:d}};return g&&(P.onClose=g),v.jsxs(Ms,{size:x,fullWidth:m,style:b,disabled:l,ref:n,children:[v.jsx(di,{id:i,htmlFor:r,shrink:!0,variant:E,children:s}),v.jsx(Os,w({id:r,labelId:i,label:s,displayEmpty:!0,onChange:u,variant:E},y,{inputProps:c?.htmlInput,onOpen:p,MenuProps:P,size:x},a))]})});process.env.NODE_ENV!=="production"&&(jI.displayName="BaseSelect");const tJ=U(c2,{slot:"internal"})(({theme:e})=>({[`& .${gi.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${gi.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),GI=ze(function(t,n){const{onRowsPerPageChange:r,material:s,disabled:i}=t,a=ie(t,OQ),l=f.useMemo(()=>{if(i)return{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}},[i]),c=Xe(),u=Ie(),{estimatedRowCount:d}=u;return v.jsx(tJ,w({component:"div",onRowsPerPageChange:fe(p=>{r?.(Number(p.target.value))}),labelRowsPerPage:c.current.getLocaleText("paginationRowsPerPage"),labelDisplayedRows:p=>c.current.getLocaleText("paginationDisplayedRows")(w({},p,{estimated:d})),getItemAriaLabel:c.current.getLocaleText("paginationItemAriaLabel")},l,a,s,{ref:n}))});process.env.NODE_ENV!=="production"&&(GI.displayName="BasePagination");const WI=ze(function(t,n){const{material:r}=t,s=ie(t,kQ);return v.jsx(pw,w({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(WI.displayName="BaseBadge");const UI=ze(function(t,n){const{autoFocus:r,label:s,fullWidth:i,slotProps:a,className:l,material:c}=t,u=ie(t,DQ),d=f.useRef(null),p=tt(d,n),g=f.useRef(null);return f.useEffect(()=>{r?d.current?.querySelector("input")?.focus({preventScroll:!0}):r===!1&&g.current&&g.current.stop({})},[r]),s?v.jsx(HI,{className:l,control:v.jsx(zI,w({},u,c,{inputProps:a?.htmlInput,ref:p,touchRippleRef:g})),label:s,fullWidth:i}):v.jsx(zI,w({},u,c,{className:se(l,c?.className),inputProps:a?.htmlInput,ref:p,touchRippleRef:g}))});process.env.NODE_ENV!=="production"&&(UI.displayName="BaseCheckbox");const qI=ze(function(t,n){const{material:r}=t,s=ie(t,FQ);return v.jsx(oi,w({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(qI.displayName="BaseCircularProgress");const YI=ze(function(t,n){const{material:r}=t,s=ie(t,NQ);return v.jsx(sc,w({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(YI.displayName="BaseDivider");const KI=ze(function(t,n){const{material:r}=t,s=ie(t,RQ);return v.jsx(Fw,w({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(KI.displayName="BaseLinearProgress");const XI=ze(function(t,n){const{material:r}=t,s=ie(t,LQ);return v.jsx(Vn,w({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(XI.displayName="BaseButton");const nJ=U(v2,{slot:"internal"})(({theme:e})=>({gap:e.spacing(1),border:0})),ZI=ze(function(t,n){const{material:r}=t,s=ie(t,$Q);return v.jsx(nJ,w({size:"small",color:"primary"},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(ZI.displayName="BaseToggleButton");const QI=ze(function(t,n){const{material:r}=t,s=ie(t,AQ);return v.jsx(ba,w({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(QI.displayName="BaseChip");const JI=ze(function(t,n){const{material:r}=t,s=ie(t,VQ);return v.jsx(En,w({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(JI.displayName="BaseIconButton");const eM=ze(function(t,n){const{material:r}=t,s=ie(t,_Q);return v.jsx(hr,w({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(eM.displayName="BaseTooltip");const tM=ze(function(t,n){const{material:r}=t,s=ie(t,BQ);return v.jsx(Jw,w({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(tM.displayName="BaseSkeleton");const nM=ze(function(t,n){const{material:r,label:s,className:i}=t,a=ie(t,HQ);return s?v.jsx(HI,{className:i,control:v.jsx(Jg,w({},a,r,{ref:n})),label:s}):v.jsx(Jg,w({},a,r,{className:i,ref:n}))});process.env.NODE_ENV!=="production"&&(nM.displayName="BaseSwitch");const oM=ze(function(t,n){const{material:r}=t,s=ie(t,zQ);return v.jsx(Ug,w({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(oM.displayName="BaseMenuList");function oJ(e){const{inert:t,iconStart:n,iconEnd:r,children:s,material:i}=e,a=ie(e,jQ);return t&&(a.disableRipple=!0),f.createElement(sr,w({},a,i),[n&&v.jsx(fi,{children:n},"1"),v.jsx(eJ,{children:s},"2"),r&&v.jsx(fi,{children:r},"3")])}function rJ(e){const{slotProps:t,material:n}=e,r=ie(e,GQ),i=io().components?.MuiTextField?.defaultProps??{},a=r.variant??i.variant??"outlined",l=r.size??i.size;return v.jsx(ks,w({variant:a,size:l},r,n,{inputProps:t?.htmlInput,InputProps:a0(t?.input),InputLabelProps:w({shrink:!0},t?.inputLabel)}))}function sJ(e){const t=Ie(),{id:n,multiple:r,freeSolo:s,options:i,getOptionLabel:a,isOptionEqualToValue:l,value:c,onChange:u,label:d,placeholder:p,slotProps:g,material:h}=e,b=ie(e,WQ);return v.jsx(Sg,w({id:n,multiple:r,freeSolo:s,options:i,getOptionLabel:a,isOptionEqualToValue:l,value:c,onChange:u,renderTags:(m,y)=>m.map((C,S)=>{const x=y({index:S}),{key:E}=x,P=ie(x,UQ);return v.jsx(ba,w({variant:"outlined",size:"small",label:typeof C=="string"?C:a?.(C)},P),E)}),renderInput:m=>{const{inputProps:y,InputProps:C,InputLabelProps:S}=m,x=ie(m,qQ);return v.jsx(ks,w({},x,{label:d,placeholder:p,inputProps:y,InputProps:a0(C,!1),InputLabelProps:w({shrink:!0},S)},g?.textField,t.slotProps?.baseTextField))}},b,h))}function iJ(e){return v.jsx(ya,w({},a0(e)))}function a0(e,t=!0){if(!e)return;const{slotProps:n,material:r}=e,i=ie(e,YQ);t&&(i.startAdornment&&(i.startAdornment=v.jsx(BI,{position:"start",children:i.startAdornment})),i.endAdornment&&(i.endAdornment=v.jsx(BI,{position:"end",children:i.endAdornment})));for(const a in r)Object.hasOwn(r,a)&&(i[a]=r[a]);return n?.htmlInput&&(i.inputProps?i.inputProps=w({},i.inputProps,n?.htmlInput):i.inputProps=n?.htmlInput),i}const rM=ze(function(t,n){const{material:r}=t,s=ie(t,KQ);return v.jsx(wg,w({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(rM.displayName="BaseTextarea");const aJ={"bottom-start":"top left","bottom-end":"top right"};function lJ(e){const{open:t,children:n,className:r,flip:s,onExited:i,onDidShow:a,onDidHide:l,id:c,target:u,transition:d,placement:p,material:g}=e,h=ie(e,XQ),b=f.useMemo(()=>{const y=[{name:"preventOverflow",options:{padding:8}}];return s&&y.push({name:"flip",enabled:!0}),(a||l)&&y.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{a?.()},effect:()=>()=>{l?.()}}),y},[s,a,l]);let m;if(!d)m=sM(e,n);else{const y=C=>S=>{C&&C(),i&&i(S)};m=C=>sM(e,v.jsx(ui,w({},C.TransitionProps,{style:{transformOrigin:aJ[C.placement]},onExited:y(C.TransitionProps?.onExited),children:v.jsx(pr,{children:n})})))}return v.jsx(ai,w({id:c,className:r,open:t,anchorEl:u,transition:d,placement:p,modifiers:b},h,g,{children:m}))}function sM(e,t){return uJ(e,cJ(e,t))}function cJ(e,t){return e.onClickAway===void 0?t:v.jsx(Od,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}function uJ(e,t){return e.focusTrap===void 0?t:v.jsx(wa,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:v.jsx("div",{tabIndex:-1,children:t})})}function dJ(e){let{native:t}=e,n=ie(e,ZQ);return t?v.jsx("option",w({},n)):v.jsx(sr,w({},n))}const pJ=U(m2,{name:"MuiDataGrid",slot:"Tabs"})(({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`})),fJ=U(t2,{name:"MuiDataGrid",slot:"Tab"})({flex:1,minWidth:"fit-content"}),hJ=U("div",{name:"MuiDataGrid",slot:"TabPanel"})({flex:1,display:"flex",flexDirection:"column",overflow:"hidden"});function gJ(e){const{children:t,active:n}=e,r=ie(e,QQ);return v.jsx(hJ,w({role:"tabpanel",style:{display:n?"flex":"none"}},r,{children:t}))}function mJ(e){let{items:t,value:n,material:r}=e,s=ie(e,JQ);const i=at(),a=`${i}-tab-${n}`,l=`${i}-tabpanel-${n}`;return v.jsxs(f.Fragment,{children:[v.jsx(pJ,w({},s,{value:n,variant:"scrollable",scrollButtons:"auto"},r,{children:t.map(c=>v.jsx(fJ,{value:c.value,label:c.label,id:a,"aria-controls":l},c.value))})),t.map(c=>v.jsx(gJ,{value:c.value,active:n===c.value,id:l,"aria-labelledby":a,children:c.children},c.value))]})}const bJ=w({},{baseAutocomplete:sJ,baseBadge:WI,baseCheckbox:UI,baseChip:QI,baseCircularProgress:qI,baseDivider:YI,baseInput:iJ,baseTextarea:rM,baseLinearProgress:KI,baseMenuList:oM,baseMenuItem:oJ,baseTextField:rJ,baseButton:XI,baseIconButton:JI,baseToggleButton:ZI,baseTooltip:eM,baseTabs:mJ,basePagination:GI,basePopper:lJ,baseSelect:jI,baseSelectOption:dJ,baseSkeleton:tM,baseSwitch:nM},{booleanCellTrueIcon:sI,booleanCellFalseIcon:nI,columnMenuIcon:UK,openFilterButtonIcon:AK,filterPanelDeleteIcon:nI,undoIcon:_K,redoIcon:BK,columnFilteredIcon:tI,columnSelectorIcon:HK,columnUnsortedIcon:VI,columnSortedAscendingIcon:ZT,columnSortedDescendingIcon:QT,columnResizeIcon:zK,densityCompactIcon:jK,densityStandardIcon:GK,densityComfortableIcon:WK,exportIcon:JK,moreActionsIcon:KK,treeDataCollapseIcon:eI,treeDataExpandIcon:JT,groupingCriteriaCollapseIcon:eI,groupingCriteriaExpandIcon:JT,detailPanelExpandIcon:oI,detailPanelCollapseIcon:qK,rowReorderIcon:rI,quickFilterIcon:VK,quickFilterClearIcon:iI,columnMenuHideIcon:XK,columnMenuSortAscendingIcon:ZT,columnMenuSortDescendingIcon:QT,columnMenuUnsortIcon:null,columnMenuFilterIcon:tI,columnMenuManageColumnsIcon:ZK,columnMenuClearIcon:iI,loadIcon:YK,filterPanelAddIcon:oI,filterPanelRemoveAllIcon:QK,columnReorderIcon:rI,menuItemCheckIcon:sI,longTextCellExpandIcon:eX,longTextCellCollapseIcon:tX}),yJ=()=>f.useRef(null),vJ=()=>{const e=Hn(),t=Ie(),n=ue(e,ln),r=ue(e,qb),s=ue(e,Xc),i=ue(e,bP),a=t["aria-label"],l=t["aria-labelledby"];return{role:"grid","aria-label":!a&&!l&&t.label?t.label:a,"aria-labelledby":l,"aria-colcount":n.length,"aria-rowcount":s+1+i+r,"aria-multiselectable":Kb(t)}},CJ=()=>{const e=Hn(),t=ue(e,Xc);return f.useCallback((n,r)=>{const s={},i=r+t+2;return s["aria-rowindex"]=i,n&&e.current.isRowSelectable(n.id)&&(s["aria-selected"]=e.current.isRowSelected(n.id)),s},[e,t])},wJ=e=>{const t=f.useCallback((r,s,i)=>{const a=St(e,r),l=St(e,s);if(!a)throw new Error(`MUI X: No row with id #${r} found.`);if(!l)throw new Error(`MUI X: No row with id #${s} found.`);if(a.type!=="leaf")throw new Error("MUI X: The row reordering does not support reordering of footer or grouping rows.");if(i==="inside")throw new Error("MUI X: The 'inside' position is only supported for tree data. Use 'above' or 'below' for flat data.");const c=$i(e),u=c[s];if(u===void 0)throw new Error(`MUI X: Target row with id #${s} not found in current view.`);const d=c[r];if(d===void 0)throw new Error(`MUI X: Source row with id #${r} not found in current view.`);const p=u<d?"up":"down";let g;p==="up"?g=i==="above"?u:u+1:g=i==="above"?u-1:u,g!==d&&(e.current.setState(h=>{const b=ct(e)[Qe],y=[...b.children];return y.splice(g,0,y.splice(d,1)[0]),w({},h,{rows:w({},h.rows,{tree:w({},h.rows.tree,{[Qe]:w({},b,{children:y})})})})}),e.current.publishEvent("rowsSet"))},[e]);return{setRowIndex:f.useCallback((r,s)=>{const i=St(e,r);if(!i)throw new Error(`MUI X: No row with id #${r} found.`);if(i.type!=="leaf")throw new Error("MUI X: The row reordering does not support reordering of footer or grouping rows.");e.current.setState(a=>{const l=ct(e)[Qe],c=l.children,u=c.findIndex(p=>p===r);if(u===-1||u===s)return a;const d=[...c];return d.splice(s,0,d.splice(u,1)[0]),w({},a,{rows:w({},a.rows,{tree:w({},a.rows.tree,{[Qe]:w({},l,{children:d})})})})}),e.current.publishEvent("rowsSet")},[e]),setRowPosition:t}},SJ=e=>{const t=f.useCallback((s,i)=>{const a=e.current.getColumn(i),l=e.current.getRow(s);if(!l)throw new Error(`No row with id #${s} found`);return!a||!a.valueGetter?l[i]:a.valueGetter(l[a.field],l,a,e)},[e]),n=f.useCallback((s,i)=>vP(s,i,e),[e]),r=f.useCallback((s,i)=>{const a=n(s,i);return!i||!i.valueFormatter?a:i.valueFormatter(a,s,i,e)},[e,n]);return{getCellValue:t,getRowValue:n,getRowFormattedValue:r}},xJ=()=>f.useCallback(e=>!Ha(e.rowNode),[]),PJ=e=>{const t=f.useRef(null),n=f.useRef(null),r=f.useRef(null),s=f.useRef(null),i=f.useRef(null),a=f.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:s,virtualScrollbarHorizontalRef:i,columnHeadersContainerRef:a})},EJ=e=>{const t=_t();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=f.useRef(!0);f.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>w({},r,{isRtl:t}))},[e,t])},TJ=DG()&&window.localStorage.getItem("DEBUG")!=null,cu=()=>{},IJ={debug:cu,info:cu,warn:cu,error:cu},iM=["debug","info","warn","error"];function aM(e,t,n=console){const r=iM.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return iM.reduce((i,a,l)=>(l>=r?i[a]=(...c)=>{const[u,...d]=c;n[a](`MUI X: ${e} - ${u}`,...d)}:i[a]=cu,i),{})}const MJ=(e,t)=>{const n=f.useCallback(r=>TJ?aM(r,"debug",t.logger):t.logLevel?aM(r,t.logLevel.toString(),t.logger):IJ,[t.logLevel,t.logger]);et(e,{getLogger:n},"private")},OJ=(e,t)=>{const n=f.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};let bo=(function(e){return e.DataSource="dataSource",e.RowTree="rowTree",e})({});const yo=(e,t,n,r)=>{const s=f.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);cs(()=>{s()});const i=f.useRef(!0);f.useEffect(()=>{i.current?i.current=!1:s()},[s])},Gi="none",lM={dataSourceRowsUpdate:bo.DataSource,rowTreeCreation:bo.RowTree,filtering:bo.RowTree,sorting:bo.RowTree,visibleRowsLookupCreation:bo.RowTree},kJ=e=>{const t=f.useRef(new Map),n=f.useRef({}),r=f.useCallback((c,u,d)=>{const p=()=>{const b=n.current[u],m=ie(b,[c].map(eu));n.current[u]=m};n.current[u]||(n.current[u]={});const g=n.current[u],h=g[c];return g[c]=d,!h||h===d||c===e.current.getActiveStrategy(lM[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),p},[e]),s=f.useCallback((c,u)=>{const d=e.current.getActiveStrategy(lM[c]);if(d==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const p=n.current[c];if(!p||!p[d])throw new Error(`No processor found for processor "${c}" on strategy "${d}"`);const g=p[d];return g(u)},[e]),i=f.useCallback(c=>Array.from(t.current.entries()).find(([,p])=>p.group!==c?!1:p.isAvailable())?.[0]??Gi,[]),a=f.useCallback((c,u,d)=>{t.current.set(u,{group:c,isAvailable:d}),e.current.publishEvent("strategyAvailabilityChange")},[e]);et(e,{registerStrategyProcessor:r,applyStrategyProcessor:s,getActiveStrategy:i,setStrategyAvailability:a},"private")},DJ=e=>{const t=f.useRef({}),n=f.useCallback(l=>{t.current[l.stateId]=l},[]),r=f.useCallback((l,c)=>{let u;if(kG(l)?u=l(e.current.state):u=l,e.current.state===u)return!1;const d={current:{state:u}};let p=!1;const g=[];if(Object.keys(t.current).forEach(h=>{const b=t.current[h],m=b.stateSelector(e),y=b.stateSelector(d);y!==m&&(g.push({stateId:b.stateId,hasPropChanged:y!==b.propModel}),b.propModel!==void 0&&y!==b.propModel&&(p=!0))}),g.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${g[0].stateId}, therefore, you're not allowed to update ${g.map(h=>h.stateId).join(", ")} in the same transaction.`);if(p||(e.current.state=u,e.current.publishEvent("stateChange",u),e.current.store.update(u)),g.length===1){const{stateId:h,hasPropChanged:b}=g[0],m=t.current[h],y=m.stateSelector(d);m.propOnChange&&b&&m.propOnChange(y,{reason:c,api:e.current}),p||e.current.publishEvent(m.changeEvent,y,{reason:c})}return!p},[e]),s=f.useCallback((l,c,u)=>e.current.setState(d=>w({},d,{[l]:c(d[l])}),u),[e]),i={setState:r},a={updateControlState:s,registerControlState:n};et(e,i,"public"),et(e,a,"private")},FJ=(e,t)=>w({},e,{props:{listView:t.listView,getRowId:t.getRowId,isCellEditable:t.isCellEditable,isRowSelectable:t.isRowSelectable,dataSource:t.dataSource}}),NJ=(e,t)=>{const n=f.useRef(!0);f.useEffect(()=>{if(n.current){n.current=!1;return}e.current.setState(r=>w({},r,{props:{listView:t.listView,getRowId:t.getRowId,isCellEditable:t.isCellEditable,isRowSelectable:t.isRowSelectable,dataSource:t.dataSource}}))},[e,t.listView,t.getRowId,t.isCellEditable,t.isRowSelectable,t.dataSource])},RJ=(e,t)=>{PJ(e),NJ(e,t),EJ(e),MJ(e,t),DJ(e),rY(e),kJ(e),OJ(e,t),e.current.register("private",{rootProps:t})},un=(e,t,n,r)=>{const s=f.useRef(r),i=f.useRef(!1);r!==s.current&&(i.current=!1,s.current=r),i.current||(t.current.state=e(t.current.state,n,t),i.current=!0)};function l0(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,`
402
+ `,"\r",'"'].some(s=>n.includes(s))?`"${r}"`:r}return n}const cM=(e,t)=>{const{csvOptions:n,ignoreValueFormatter:r}=t;let s;if(r){const i=e.colDef.type;i==="number"?s=String(e.value):i==="date"||i==="dateTime"?s=e.value?.toISOString():typeof e.value?.toString=="function"?s=e.value.toString():s=e.value}else s=e.formattedValue;return l0(s,n)};class c0{rowString="";isEmpty=!0;constructor(t){this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const LJ=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:s})=>{const i=new c0({csvOptions:r});return t.forEach(a=>{const l=n(e,a.field);String(l.formattedValue)==="[object Object]"&&yn(["MUI X: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]),i.addValue(cM(l,{ignoreValueFormatter:s,csvOptions:r}))}),i.getRowString()};function $J(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:s,apiRef:i}=e,a=n.reduce((p,g)=>`${p}${LJ({id:g,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:s,csvOptions:r})}\r
403
+ `,"").trim();if(!r.includeHeaders)return a;const l=t.filter(p=>p.field!==Xa.field),c=[];if(r.includeColumnGroupsHeaders){const p=i.current.getAllGroupDetails();let g=0;const h=l.reduce((b,m)=>{const y=i.current.getColumnGroupPath(m.field);return b[m.field]=y,g=Math.max(g,y.length),b},{});for(let b=0;b<g;b+=1){const m=new c0({csvOptions:r,sanitizeCellValue:l0});c.push(m),l.forEach(y=>{const C=(h[y.field]||[])[b],S=p[C];m.addValue(S?S.headerName||S.groupId:"")})}}const u=new c0({csvOptions:r,sanitizeCellValue:l0});return l.forEach(p=>{u.addValue(p.headerName||p.field)}),c.push(u),`${`${c.map(p=>p.getRowString()).join(`\r
404
+ `)}\r
405
+ `}${a}`.trim()}function uM(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function AJ(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{uM(e)}):uM(e)}function VJ(e){return!!(window.getSelection()?.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const _J=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n?.clipboardExport:n)||!1,s=t.clipboardCopyCellDelimiter,i=f.useCallback(a=>{if(!qG(a)||VJ(a.target))return;let l="";if(tf(e)>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:s,shouldAppendQuotes:!1,escapeFormulas:!1});else{const u=go(e);if(u){const d=e.current.getCellParams(u.id,u.field);l=cM(d,{csvOptions:{delimiter:s,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(AJ(l),e.current.publishEvent("clipboardCopy",l))},[e,r,s]);XE(e,()=>e.current.rootElementRef.current,"keydown",i),Mt(e,"clipboardCopy",t.onClipboardCopy)},BJ=e=>w({},e,{columnMenu:{open:!1}}),HJ=e=>{const t=On(e,"useGridColumnMenu"),n=f.useRef({}),r=f.useCallback(()=>{n.current.wheel?.(),n.current.touchMove?.()},[]),s=f.useCallback(()=>{r(),n.current.wheel=e.current.subscribeEvent("virtualScrollerWheel",e.current.hideColumnMenu),n.current.touchMove=e.current.subscribeEvent("virtualScrollerTouchMove",e.current.hideColumnMenu)},[e,r]),i=f.useCallback(u=>{const d=pf(e),p={open:!0,field:u};(p.open!==d.open||p.field!==d.field)&&(e.current.setState(h=>h.columnMenu.open&&h.columnMenu.field===u?h:(t.debug("Opening Column Menu"),s(),w({},h,{columnMenu:{open:!0,field:u}}))),e.current.hidePreferences())},[e,t,s]),a=f.useCallback(()=>{const u=pf(e);if(u.field){const g=Gr(e),h=Go(e),b=lr(e);let m=u.field;if(g[m]||(m=b[0]),h[m]===!1){const y=b.filter(S=>S===m?!0:h[S]!==!1),C=y.indexOf(m);m=y[C+1]||y[C-1]}e.current.setColumnHeaderFocus(m)}const d={open:!1,field:void 0};(d.open!==u.open||d.field!==u.field)&&e.current.setState(g=>(t.debug("Hiding Column Menu"),r(),w({},g,{columnMenu:d})))},[e,t,r]),l=f.useCallback(u=>{t.debug("Toggle Column Menu");const d=pf(e);!d.open||d.field!==u?i(u):a()},[e,t,i,a]);et(e,{showColumnMenu:i,hideColumnMenu:a,toggleColumnMenu:l},"public"),xe(e,"columnResizeStart",a)},zJ=(e,t,n)=>{n.current.caches.columns={lastColumnsProp:t.columns};const r=Ja({apiRef:n,columnsToUpsert:t.columns,initialState:t.initialState?.columns,columnVisibilityModel:t.columnVisibilityModel??t.initialState?.columns?.columnVisibilityModel??{},keepOnlyColumnsToUpsert:!0});return w({},e,{columns:r,pinnedColumns:e.pinnedColumns??Yp})};function jJ(e,t){const n=On(e,"useGridColumns");e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Go,changeEvent:"columnVisibilityModelChange"});const r=f.useCallback(O=>{n.debug("Updating columns state."),e.current.setState(GJ(O)),e.current.publishEvent("columnsChange",O.orderedFields)},[n,e]),s=f.useCallback(O=>Gr(e)[O],[e]),i=f.useCallback(()=>jo(e),[e]),a=f.useCallback(()=>ln(e),[e]),l=f.useCallback((O,k=!0)=>(k?ln(e):jo(e)).findIndex(F=>F.field===O),[e]),c=f.useCallback(O=>{const k=l(O);return As(e)[k]},[e,l]),u=f.useCallback(O=>{Go(e)!==O&&(e.current.setState(I=>w({},I,{columns:Ja({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:O,keepOnlyColumnsToUpsert:!1})})),e.current.updateRenderContext?.())},[e]),d=f.useCallback(O=>{let k=O;if(Vi(e)){const F=[],T=[],R=ly(e);if(O.forEach(A=>{R.has(A.field)?F.push(A):T.push(A)}),F.length>0&&e.current.updateNonPivotColumns(F),T.length===0)return;k=T}const I=Ja({apiRef:e,columnsToUpsert:k,initialState:void 0,keepOnlyColumnsToUpsert:!1,updateInitialVisibilityModel:!0});r(I)},[e,r]),p=f.useCallback((O,k)=>{const I=Go(e),F=I[O]??!0;if(k!==F){const T=w({},I,{[O]:k});e.current.setColumnVisibilityModel(T)}},[e]),g=f.useCallback(O=>lr(e).findIndex(I=>I===O),[e]),h=f.useCallback((O,k)=>{const I=lr(e),F=g(O);if(F===k)return;n.debug(`Moving column ${O} to index ${k}`);const T=[...I],R=T.splice(F,1)[0];T.splice(k,0,R),r(w({},Sr(e),{orderedFields:T}));const A={column:e.current.getColumn(O),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(O),oldIndex:F};e.current.publishEvent("columnIndexChange",A)},[e,n,r,g]),b=f.useCallback((O,k)=>{n.debug(`Updating column ${O} width to ${k}`);const I=Sr(e),F=I.lookup[O],T=w({},F,{width:k,hasBeenResized:!0});r(ry(w({},I,{lookup:w({},I.lookup,{[O]:T})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(O),colDef:T,width:k})},[e,n,r]),m={getColumn:s,getAllColumns:i,getColumnIndex:l,getColumnPosition:c,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:g,updateColumns:d,setColumnVisibilityModel:u,setColumnVisibility:p,setColumnWidth:b},y={setColumnIndex:h};et(e,m,"public"),et(e,y,t.signature===Mo.DataGrid?"private":"public");const C=f.useCallback((O,k)=>{const I={},F=Go(e);(!k.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(t.initialState?.columns?.columnVisibilityModel??{}).length>0||Object.keys(F).length>0)&&(I.columnVisibilityModel=F),I.orderedFields=lr(e);const R=jo(e),A={};return R.forEach(L=>{if(L.hasBeenResized){const N={};YE.forEach(_=>{let H=L[_];H===1/0&&(H=-1),N[_]=H}),A[L.field]=N}}),Object.keys(A).length>0&&(I.dimensions=A),w({},O,{columns:I})},[e,t.columnVisibilityModel,t.initialState?.columns]),S=f.useCallback((O,k)=>{const I=k.stateToRestore.columns,F=I?.columnVisibilityModel;if(I==null)return O;const T=Ja({apiRef:e,columnsToUpsert:[],initialState:I,columnVisibilityModel:F,keepOnlyColumnsToUpsert:!1});return I!=null&&e.current.setState(R=>w({},R,{columns:w({},R.columns,{lookup:T.lookup,orderedFields:T.orderedFields,initialColumnVisibilityModel:T.initialColumnVisibilityModel})})),F!=null&&e.current.setState(R=>w({},R,{columns:w({},R.columns,{columnVisibilityModel:F})})),I!=null&&e.current.publishEvent("columnsChange",T.orderedFields),O},[e]),x=f.useCallback((O,k)=>{if(k===mo.columns){const I=t.slots.columnsPanel;return v.jsx(I,w({},t.slotProps?.columnsPanel))}return O},[t.slots.columnsPanel,t.slotProps?.columnsPanel]),E=f.useCallback(O=>{const k=Vi(e);return t.disableColumnSelector||k?O:[...O,"columnMenuColumnsItem"]},[t.disableColumnSelector,e]);ht(e,"columnMenu",E),ht(e,"exportState",C),ht(e,"restoreState",S),ht(e,"preferencePanel",x);const P=f.useRef(null);xe(e,"viewportInnerSizeChange",O=>{if(P.current!==O.width){if(P.current=O.width,!ln(e).some(I=>I.flex&&I.flex>0))return;r(ry(Sr(e),e.current.getRootDimensions()))}});const D=f.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const O=Ja({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});r(O)},[e,n,r]);by(e,"hydrateColumns",D),f.useEffect(()=>{if(e.current.caches.columns.lastColumnsProp===t.columns)return;e.current.caches.columns.lastColumnsProp=t.columns,n.info(`GridColumns have changed, new length ${t.columns.length}`);const O=Ja({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0,updateInitialVisibilityModel:!0,columnVisibilityModel:t.columnVisibilityModel});r(O)},[n,e,r,t.columns,t.columnVisibilityModel]),f.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function GJ(e){return t=>w({},t,{columns:e})}const WJ=(e,t)=>w({},e,{density:t.initialState?.density??t.density??"standard"}),UJ=(e,t)=>{const n=On(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:za,changeEvent:"densityChange"});const s={setDensity:fe(l=>{za(e)!==l&&(n.debug(`Set grid density to ${l}`),e.current.setState(u=>w({},u,{density:l})))})};et(e,s,"public");const i=f.useCallback((l,c)=>{const u=za(e);return!c.exportOnlyDirtyModels||t.density!=null||t.initialState?.density!=null?w({},l,{density:u}):l},[e,t.density,t.initialState?.density]),a=f.useCallback((l,c)=>{const u=c.stateToRestore?.density?c.stateToRestore.density:za(e);return e.current.setState(d=>w({},d,{density:u})),l},[e]);ht(e,"exportState",i),ht(e,"restoreState",a),f.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function qJ(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const s=URL.createObjectURL(e),i=document.createElement("a");i.href=s,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(s)});return}throw new Error("MUI X: exportAs not supported.")}const dM=({apiRef:e,options:t})=>{const n=jo(e);return t.fields?t.fields.reduce((s,i)=>{const a=n.find(l=>l.field===i);return a&&s.push(a),s},[]):(t.allColumns?n:ln(e)).filter(s=>s.disableExport!==!0)},pM=({apiRef:e})=>{const t=Ub(e),n=ct(e),r=tf(e),s=t.filter(c=>n[c].type!=="footer"),i=ki(e),a=i?.top?.map(c=>c.id)||[],l=i?.bottom?.map(c=>c.id)||[];if(s.unshift(...a),s.push(...l),r>0){const c=xE(e);return s.filter(u=>c.has(u))}return s},YJ=(e,t)=>{const n=On(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,s=(typeof r=="object"?r?.csvExport:r)||!1,i=f.useCallback((u={})=>{n.debug("Get data as CSV");const d=dM({apiRef:e,options:u}),g=(u.getRowsToExport??pM)({apiRef:e});return $J({columns:d,rowIds:g,csvOptions:{delimiter:u.delimiter||",",shouldAppendQuotes:u.shouldAppendQuotes??!0,includeHeaders:u.includeHeaders??!0,includeColumnGroupsHeaders:u.includeColumnGroupsHeaders??!0,escapeFormulas:u.escapeFormulas??!0},ignoreValueFormatter:s,apiRef:e})},[n,e,s]),a=f.useCallback(u=>{n.debug("Export data as CSV");const d=i(u),p=new Blob([u?.utf8WithBom?new Uint8Array([239,187,191]):"",d],{type:"text/csv"});qJ(p,"csv",u?.fileName)},[n,i]);et(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const c=f.useCallback((u,d)=>d.csvOptions?.disableToolbarButton?u:[...u,{component:v.jsx(yI,{options:d.csvOptions}),componentName:"csvExport"}],[]);ht(e,"exportMenu",c)};function KJ(e,t,n){const r=[],s=t.querySelectorAll("style, link[rel='stylesheet']");for(let i=0;i<s.length;i+=1){const a=s[i],l=e.createElement(a.tagName);if(a.tagName==="STYLE"){const c=a.sheet;if(c){let u="";for(let d=0;d<c.cssRules.length;d+=1)typeof c.cssRules[d].cssText=="string"&&(u+=`${c.cssRules[d].cssText}\r
406
+ `);l.appendChild(e.createTextNode(u))}}else if(a.getAttribute("href")){for(let c=0;c<a.attributes.length;c+=1){const u=a.attributes[c];u&&l.setAttribute(u.nodeName,u.nodeValue||"")}r.push(new Promise(c=>{l.addEventListener("load",()=>c())}))}e.head.appendChild(l)}return r}const Ef=(e,t,n)=>{let r=e.paginationModel;const s=e.rowCount,i=n?.pageSize??r.pageSize,a=n?.page??r.page,l=IE(s,i,a);n&&(n?.page!==r.page||n?.pageSize!==r.pageSize)&&(r=n);const c=i===-1?0:BW(r.page,l);return c!==r.page&&(r=w({},r,{page:c})),OE(r.pageSize,t),r},XJ=(e,t)=>{const n=On(e,"useGridPaginationModel"),r=ue(e,Hc),s=f.useRef(cn(e)),i=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:fn,changeEvent:"paginationModelChange"});const a=f.useCallback(E=>{const P=fn(e);E!==P.page&&(n.debug(`Setting page to ${E}`),e.current.setPaginationModel({page:E,pageSize:P.pageSize}))},[e,n]),l=f.useMemo(()=>ur(a,0),[a]),c=f.useCallback(E=>{const P=fn(e);E!==P.pageSize&&(n.debug(`Setting page size to ${E}`),e.current.setPaginationModel({pageSize:E,page:P.page}))},[e,n]),u=f.useCallback(E=>{const P=fn(e);E!==P&&(n.debug("Setting 'paginationModel' to",E),e.current.setState(M=>w({},M,{pagination:w({},M.pagination,{paginationModel:Ef(M.pagination,t.signature,E)})}),"setPaginationModel"))},[e,n,t.signature]);et(e,{setPage:a,setPageSize:c,setPaginationModel:u},"public");const p=f.useCallback((E,P)=>{const M=fn(e);return!P.exportOnlyDirtyModels||t.paginationModel!=null||t.initialState?.pagination?.paginationModel!=null||M.page!==0&&M.pageSize!==_W(t.autoPageSize)?w({},E,{pagination:w({},E.pagination,{paginationModel:M})}):E},[e,t.paginationModel,t.initialState?.pagination?.paginationModel,t.autoPageSize]),g=f.useCallback((E,P)=>{const M=P.stateToRestore.pagination?.paginationModel?w({},ME(t.autoPageSize),P.stateToRestore.pagination?.paginationModel):fn(e);return e.current.setState(D=>w({},D,{pagination:w({},D.pagination,{paginationModel:Ef(D.pagination,t.signature,M)})}),"stateRestorePreProcessing"),E},[e,t.autoPageSize,t.signature]);ht(e,"exportState",p),ht(e,"restoreState",g);const h=()=>{const E=fn(e);e.current.virtualScrollerRef?.current&&e.current.scrollToIndexes({rowIndex:E.page*E.pageSize})},b=f.useCallback(()=>{if(!t.autoPageSize)return;const E=e.current.getRootDimensions(),P=Math.max(1,Math.floor(E.viewportInnerSize.height/i));e.current.setPageSize(P)},[e,t.autoPageSize,i]),m=f.useCallback(E=>{if(E==null)return;const P=fn(e);if(P.page===0)return;const M=DE(e);P.page>M-1&&queueMicrotask(()=>{l(Math.max(0,M-1))})},[e,l]),y=f.useCallback(()=>{fn(e).page!==0&&l(0),e.current.getScrollPosition().top!==0&&e.current.scroll({top:0})},[e,l]),C=f.useMemo(()=>ur(y,0),[y]),S=f.useCallback(E=>{const P=w({},E,{items:Yb(e)});ro(P,s.current)||(s.current=P,C())},[e,C]);xe(e,"viewportInnerSizeChange",b),xe(e,"paginationModelChange",h),xe(e,"rowCountChange",m),xe(e,"sortModelChange",C),xe(e,"filterModelChange",S);const x=f.useRef(!0);f.useEffect(()=>{if(x.current){x.current=!1;return}t.pagination&&e.current.setState(E=>w({},E,{pagination:w({},E.pagination,{paginationModel:Ef(E.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),f.useEffect(()=>{e.current.setState(E=>{const P=t.pagination===!0;return E.pagination.paginationMode===t.paginationMode&&E.pagination.enabled===P?E:w({},E,{pagination:w({},E.pagination,{paginationMode:t.paginationMode,enabled:P})})})},[e,t.paginationMode,t.pagination]),f.useEffect(b,[b])};function ZJ(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function QJ(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const JJ=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=On(e,"useGridPrintExport"),s=f.useRef(null),i=f.useRef(null),a=f.useRef({}),l=f.useRef([]),c=f.useRef(null);f.useEffect(()=>{s.current=Bt(e.current.rootElementRef.current)},[e,n]);const u=f.useCallback((y,C,S)=>new Promise(x=>{const E=dM({apiRef:e,options:{fields:y,allColumns:C}}).map(D=>D.field),P=jo(e),M={};P.forEach(D=>{M[D.field]=E.includes(D.field)}),S&&(M[Xa.field]=!0),e.current.setColumnVisibilityModel(M),x()}),[e]),d=f.useCallback(y=>{const S=y({apiRef:e}).reduce((x,E)=>{const P=e.current.getRow(E);return P[Di]||x.push(P),x},[]);e.current.setRows(S)},[e]),p=f.useCallback((y,C)=>{const S=w({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},C),x=y.contentDocument;if(!x)return;const E=e.current.rootElementRef.current,P=E.cloneNode(!0),M=P.querySelector(`.${Z.virtualScrollerContent}`),D=P.querySelector(`.${Z.main}`);if(D.style.overflow="visible",P.querySelector(`.${Z.virtualScrollerRenderZone}`).style.position="static",M.style.flexBasis="auto",P.querySelector(`.${Z["scrollbar--vertical"]}`)?.remove(),!(M.nextSibling instanceof HTMLElement&&M.nextSibling.classList.contains(Z.filler))){const T=document.createElement("div");T.style.height=wT,M.insertAdjacentElement("afterend",T)}const O=P.querySelector(`.${Z.footerContainer}`);S.hideToolbar&&P.querySelector(`.${Z.toolbar}`)?.remove(),S.hideFooter&&O&&O.remove(),P.style.height="auto",P.style.boxSizing="content-box",!S.hideFooter&&O&&(O.style.width="100%");const k=document.createElement("div");k.appendChild(P),x.body.style.marginTop="0px",x.body.innerHTML=k.innerHTML;const I=typeof S.pageStyle=="function"?S.pageStyle():S.pageStyle;if(typeof I=="string"){const T=x.createElement("style");T.appendChild(x.createTextNode(I)),x.head.appendChild(T)}S.bodyClassName&&x.body.classList.add(...S.bodyClassName.split(" "));let F=[];if(S.copyStyles){const T=E.getRootNode(),R=T.constructor.name==="ShadowRoot"?T:s.current;F=KJ(x,R)}process.env.NODE_ENV!=="test"&&Promise.all(F).then(()=>{y.contentWindow.print()})},[e,s]),g=f.useCallback(y=>{s.current.body.removeChild(y),e.current.restoreState(i.current||{}),i.current?.columns?.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.setState(C=>w({},C,{virtualization:c.current})),e.current.setRows(l.current),i.current=null,a.current={},l.current=[]},[e]),b={exportDataAsPrint:f.useCallback(async y=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(i.current=e.current.exportState(),a.current=Go(e),l.current=e.current.getSortedRows().filter(S=>!S[Di]),t.pagination){const x={page:0,pageSize:qb(e)};e.current.setState(E=>w({},E,{pagination:w({},E.pagination,{paginationModel:Ef(E.pagination,"DataGridPro",x)})}))}c.current=e.current.state.virtualization,e.current.unstable_setVirtualization(!1),await u(y?.fields,y?.allColumns,y?.includeCheckboxes),d(y?.getRowsToExport??pM),await ZJ();const C=QJ(y?.fileName);process.env.NODE_ENV==="test"?(s.current.body.appendChild(C),p(C,y),g(C)):(C.onload=()=>{p(C,y),C.contentWindow.matchMedia("print").addEventListener("change",x=>{x.matches===!1&&g(C)})},s.current.body.appendChild(C))},[t,r,e,p,g,u,d])};et(e,b,"public");const m=f.useCallback((y,C)=>C.printOptions?.disableToolbarButton?y:[...y,{component:v.jsx(vI,{options:C.printOptions}),componentName:"printExport"}],[]);ht(e,"exportMenu",m)},eee=(e,t,n)=>{const r=t.filterModel??t.initialState?.filter?.filterModel??zc();return w({},e,{filter:w({filterModel:Vb(r,t.disableMultipleColumnsFiltering,n)},qp),visibleRowsLookup:{}})},tee=e=>e.filteredRowsLookup;function fM(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function nee(){return mb(Object.values)}const oee=(e,t,n)=>{const r=On(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:cn,changeEvent:"filterModelChange"});const s=f.useCallback(()=>{e.current.setState(k=>{const I=cn(e),F=e.current.getFilterState(I),T=w({},k,{filter:w({},k.filter,F)}),R=fM(e,T);return w({},T,{visibleRowsLookup:R})}),e.current.publishEvent("filteredRowsSet")},[e]),i=f.useCallback((k,I)=>I==null||I.filterable===!1||t.disableColumnFilter?k:[...k,"columnMenuFilterItem"],[t.disableColumnFilter]),a=f.useCallback(k=>{const I=cn(e),F=[...I.items],T=F.findIndex(R=>R.id===k.id);T===-1?F.push(k):F[T]=k,e.current.setFilterModel(w({},I,{items:F}),"upsertFilterItem")},[e]),l=f.useCallback(k=>{const I=cn(e),F=[...I.items];k.forEach(T=>{const R=F.findIndex(A=>A.id===T.id);R===-1?F.push(T):F[R]=T}),e.current.setFilterModel(w({},I,{items:F}),"upsertFilterItems")},[e]),c=f.useCallback(k=>{const I=cn(e),F=I.items.filter(T=>T.id!==k.id);F.length!==I.items.length&&e.current.setFilterModel(w({},I,{items:F}),"deleteFilterItem")},[e]),u=f.useCallback((k,I,F)=>{if(r.debug("Displaying filter panel"),k){const T=cn(e),R=T.items.filter(_=>{if(_.value!==void 0)return!(Array.isArray(_.value)&&_.value.length===0);const B=e.current.getColumn(_.field).filterOperators?.find(V=>V.value===_.operator);return!(typeof B?.requiresFilterValue>"u"?!0:B?.requiresFilterValue)});let A;const L=R.find(_=>_.field===k),N=e.current.getColumn(k);L?A=R:t.disableMultipleColumnsFiltering?A=[Ab({field:k,operator:N.filterOperators[0].value},e)]:A=[...R,Ab({field:k,operator:N.filterOperators[0].value},e)],e.current.setFilterModel(w({},T,{items:A}))}e.current.showPreferences(mo.filters,I,F)},[e,r,t.disableMultipleColumnsFiltering]),d=f.useCallback(()=>{r.debug("Hiding filter panel"),e.current.hidePreferences()},[e,r]),p=f.useCallback(k=>{const I=cn(e);I.logicOperator!==k&&e.current.setFilterModel(w({},I,{logicOperator:k}),"changeLogicOperator")},[e]),g=f.useCallback(k=>{const I=cn(e);ro(I.quickFilterValues,k)||e.current.setFilterModel(w({},I,{quickFilterValues:[...k]}))},[e]),h=f.useCallback((k,I)=>{cn(e)!==k&&(r.debug("Setting filter model"),e.current.updateControlState("filter",ZP(k,t.disableMultipleColumnsFiltering,e),I),e.current.unstable_applyFilters())},[e,r,t.disableMultipleColumnsFiltering]),b=f.useCallback(k=>{const I=Vb(k,t.disableMultipleColumnsFiltering,e),F=n.hooks.useFilterValueGetter(e,t),T=t.filterMode==="client"?jG(I,F,e,t.disableEval):null,R=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:T,filterModel:I??zc(),filterValueGetter:F});return w({},R,{filterModel:I})},[e,n.hooks,t]),m={setFilterLogicOperator:p,unstable_applyFilters:s,deleteFilterItem:c,upsertFilterItem:a,upsertFilterItems:l,setFilterModel:h,showFilterPanel:u,hideFilterPanel:d,setQuickFilterValues:g,ignoreDiacritics:t.ignoreDiacritics,getFilterState:b};et(e,m,"public");const y=f.useCallback((k,I)=>{const F=cn(e);return F.items.forEach(R=>{delete R.fromInput}),!I.exportOnlyDirtyModels||t.filterModel!=null||t.initialState?.filter?.filterModel!=null||!ro(F,zc())?w({},k,{filter:{filterModel:F}}):k},[e,t.filterModel,t.initialState?.filter?.filterModel]),C=f.useCallback((k,I)=>{const F=I.stateToRestore.filter?.filterModel;return F==null?k:(e.current.updateControlState("filter",ZP(F,t.disableMultipleColumnsFiltering,e),"restoreState"),w({},k,{callbacks:[...k.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),S=f.useCallback((k,I)=>{if(I===mo.filters){const F=t.slots.filterPanel;return v.jsx(F,w({},t.slotProps?.filterPanel))}return k},[t.slots.filterPanel,t.slotProps?.filterPanel]),{getRowId:x}=t,E=lo(nee),P=f.useCallback(k=>{if(t.filterMode!=="client"||!k.isRowMatchingFilters||!k.filterModel.items.length&&!k.filterModel.quickFilterValues?.length)return qp;const I=qn(e),F={},{isRowMatchingFilters:T}=k,R={},A={passingFilterItems:null,passingQuickFilterValues:null},L=E.current(e.current.state.rows.dataRowIdToModelLookup);for(let H=0;H<L.length;H+=1){const B=L[H],$=x?x(B):B.id;T(B,void 0,A);const V=nE([A.passingFilterItems],[A.passingQuickFilterValues],k.filterModel,k.filterValueGetter,e,R);V||(F[$]=V)}const N="auto-generated-group-footer-root";return I[N]&&(F[N]=!0),{filteredRowsLookup:F,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,x,E]);ht(e,"columnMenu",i),ht(e,"exportState",y),ht(e,"restoreState",C),ht(e,"preferencePanel",S),yo(e,Gi,"filtering",P),yo(e,Gi,"visibleRowsLookupCreation",tee);const M=f.useCallback(()=>{r.debug("onColUpdated - GridColumns changed, applying filters");const k=cn(e),I=Gr(e),F=k.items.filter(T=>T.field&&I[T.field]);F.length<k.items.length&&e.current.setFilterModel(w({},k,{items:F}))},[e,r]),D=f.useCallback(k=>{k==="filtering"&&e.current.unstable_applyFilters()},[e]),O=f.useCallback(()=>{e.current.setState(k=>w({},k,{visibleRowsLookup:fM(e,k)}))},[e]);xe(e,"rowsSet",s),xe(e,"columnsChange",M),xe(e,"activeStrategyProcessorChange",D),xe(e,"rowExpansionChange",O),xe(e,"columnVisibilityModelChange",()=>{const k=cn(e);k.quickFilterValues?.length&&eE(k)&&s()}),cs(()=>{t.signature==="DataGrid"&&s()}),it(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,r,t.filterModel])},ree=e=>w({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),see=(e,t)=>{const n=On(e,"useGridFocus"),r=f.useRef(null),s=e.current.rootElementRef.current!==null,i=f.useCallback((k,I)=>{k&&e.current.getRow(k.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(k.id,k.field),I)},[e]),a=f.useCallback((k,I)=>{const F=go(e);if(F?.id===k&&F?.field===I){if(e.current.getCellMode(k,I)!=="view")return;const T=e.current.getCellElement(k,I);if(!T)return;const R=e.current.rootElementRef.current,A=Bt(R),L=A.activeElement;if(!(!L||L===A.body||L===A.documentElement||R?.contains(L))||T.contains(A.activeElement))return;if(gf())T.focus({preventScroll:!0});else{const _=e.current.getScrollPosition();T.focus(),e.current.scroll(_)}return}e.current.setState(T=>(n.debug(`Focusing on cell with id=${k} and field=${I}`),w({},T,{tabIndex:{cell:{id:k,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:k,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.getRow(k)&&(F&&i(F,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(k,I)))},[e,n,i]),l=f.useCallback((k,I={})=>{const F=go(e);i(F,I),e.current.setState(T=>(n.debug(`Focusing on column header with colIndex=${k}`),w({},T,{tabIndex:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))},[e,n,i]),c=f.useCallback((k,I={})=>{const F=go(e);i(F,I),e.current.setState(T=>(n.debug(`Focusing on column header filter with colIndex=${k}`),w({},T,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null}})))},[e,n,i]),u=f.useCallback((k,I,F={})=>{const T=go(e);T&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(T.id,T.field),F),e.current.setState(R=>w({},R,{tabIndex:{columnGroupHeader:{field:k,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:k,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null}}))},[e]),d=f.useCallback(()=>of(e),[e]),p=f.useCallback((k,I,F)=>{let T=e.current.getColumnIndex(I);const R=ln(e),A=ds(e,{pagination:t.pagination,paginationMode:t.paginationMode}),L=ki(e),N=[].concat(L.top||[],A.rows,L.bottom||[]);let _=N.findIndex(V=>V.id===k);F==="right"?T+=1:F==="left"?T-=1:_+=1,T>=R.length?(_+=1,_<N.length&&(T=0)):T<0&&(_-=1,_>=0&&(T=R.length-1)),_=Fi(_,0,N.length-1);const H=N[_];if(!H)return;const B=e.current.unstable_getCellColSpanInfo(H.id,T);B&&B.spannedByColSpan&&(F==="left"||F==="below"?T=B.leftVisibleCellIndex:F==="right"&&(T=B.rightVisibleCellIndex)),T=Fi(T,0,R.length-1);const $=R[T];e.current.setCellFocus(H.id,$.field)},[e,t.pagination,t.paginationMode]),g=f.useCallback(({id:k,field:I})=>{e.current.setCellFocus(k,I)},[e]),h=f.useCallback((k,I)=>{Bb(I)||I.key==="Enter"||I.key==="Tab"||I.key==="Shift"||Ri(I.key)||e.current.setCellFocus(k.id,k.field)},[e]),b=f.useCallback(({field:k},I)=>{I.target===I.currentTarget&&e.current.setColumnHeaderFocus(k,I)},[e]),m=f.useCallback(({fields:k,depth:I},F)=>{if(F.target!==F.currentTarget)return;const T=of(e);T!==null&&T.depth===I&&k.includes(T.field)||e.current.setColumnGroupHeaderFocus(k[0],I,F)},[e]),y=f.useCallback((k,I)=>{I.relatedTarget?.getAttribute("class")?.includes(Z.columnHeader)||(n.debug("Clearing focus"),e.current.setState(F=>w({},F,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=f.useCallback(k=>{r.current=k},[]),S=f.useCallback(k=>{const I=r.current;r.current=null;const F=go(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:k,cell:I}))return;if(!F){I&&e.current.setCellFocus(I.id,I.field);return}I?.id===F.id&&I?.field===F.field||e.current.getCellElement(F.id,F.field)?.contains(k.target)||(I?e.current.setCellFocus(I.id,I.field):(e.current.setState(A=>w({},A,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),i(F,k)))},[e,i]),x=f.useCallback(k=>{if(k.cellMode==="view")return;const I=go(e);(I?.id!==k.id||I?.field!==k.field)&&e.current.setCellFocus(k.id,k.field)},[e]),E=f.useCallback(()=>{const k=go(e);if(k&&!e.current.getRow(k.id)){const I=k.id;let F=null;if(typeof I<"u"){const T=e.current.getRowElement(I),R=T?.dataset.rowindex?Number(T?.dataset.rowindex):0,A=ds(e,{pagination:t.pagination,paginationMode:t.paginationMode});F=A.rows[Fi(R,0,A.rows.length-1)]?.id??null}e.current.setState(T=>w({},T,{focus:{cell:F===null?null:{id:F,field:k.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),P=f.useMemo(()=>ur(E,0),[E]),M=fe(()=>{const k=go(e);if(!k)return;const I=ds(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(I.rows.find(R=>R.id===k.id)||I.rows.length===0)return;const T=ln(e);e.current.setState(R=>w({},R,{tabIndex:{cell:{id:I.rows[0].id,field:T[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),D={setCellFocus:a,setColumnHeaderFocus:l,setColumnHeaderFilterFocus:c},O={moveFocusToRelativeCell:p,setColumnGroupHeaderFocus:u,getColumnGroupHeaderFocus:d};et(e,D,"public"),et(e,O,"private"),f.useEffect(()=>{const k=Bt(e.current.rootElementRef.current);return k.addEventListener("mouseup",S),()=>{k.removeEventListener("mouseup",S)}},[e,s,S]),xe(e,"columnHeaderBlur",y),xe(e,"cellDoubleClick",g),xe(e,"cellMouseDown",C),xe(e,"cellKeyDown",h),xe(e,"cellModeChange",x),xe(e,"columnHeaderFocus",b),xe(e,"columnGroupHeaderFocus",m),xe(e,"rowsSet",P),xe(e,"paginationModelChange",M)},u0=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},d0=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};function iee(e,t,n,r){const s=nl.selectors.hiddenCells(e.current.virtualizer.store.state);if(!s[t]?.[n])return t;const i=Ub(e);let a=i.indexOf(t)+(r==="down"?1:-1);for(;a>=0&&a<i.length;){const l=i[a];if(!s[l]?.[n])return l;a+=r==="down"?1:-1}return t}const aee=Pt(Ka,ki,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),lee=(e,t)=>{const n=On(e,"useGridKeyboardNavigation"),r=_t(),s=f.useCallback(()=>aee(e),[e]),i=t.signature!=="DataGrid"&&t.headerFilters,a=f.useCallback((y,C,S="left",x="up")=>{const E=Li(e),P=e.current.unstable_getCellColSpanInfo(C,y);P&&P.spannedByColSpan&&(S==="left"?y=P.leftVisibleCellIndex:S==="right"&&(y=P.rightVisibleCellIndex));const M=ja(e)[y],D=iee(e,C,y,x),O=E.findIndex(k=>k.id===D);n.debug(`Navigating to cell row ${O}, col ${y}`),e.current.scrollToIndexes({colIndex:y,rowIndex:O}),e.current.setCellFocus(D,M)},[e,n]),l=f.useCallback((y,C)=>{n.debug(`Navigating to header col ${y}`),e.current.scrollToIndexes({colIndex:y});const S=e.current.getVisibleColumns()[y].field;e.current.setColumnHeaderFocus(S,C)},[e,n]),c=f.useCallback((y,C)=>{n.debug(`Navigating to header filter col ${y}`),e.current.scrollToIndexes({colIndex:y});const S=e.current.getVisibleColumns()[y].field;e.current.setColumnHeaderFilterFocus(S,C)},[e,n]),u=f.useCallback((y,C,S)=>{n.debug(`Navigating to header col ${y}`),e.current.scrollToIndexes({colIndex:y});const{field:x}=e.current.getVisibleColumns()[y];e.current.setColumnGroupHeaderFocus(x,C,S)},[e,n]),d=f.useCallback(y=>s()[y]?.id,[s]),p=f.useCallback((y,C)=>{const S=C.currentTarget.querySelector(`.${Z.columnHeaderTitleContainerContent}`);if(!!S&&S.contains(C.target)&&y.field!==Xa.field||!Ri(C.key)&&C.key!=="Tab"&&C.key!=="Enter"||C.key==="Tab"&&(t.tabNavigation==="none"||t.tabNavigation==="content"&&C.shiftKey))return;const E=s(),P=e.current.getViewportPageSize(),M=y.field?e.current.getColumnIndex(y.field):0,D=E.length>0?0:null,O=E.length>0?E.length-1:null,k=0,I=Math.max(0,ln(e).length-1),F=Xc(e);let T=!0;if(C.key==="Tab"&&t.tabNavigation==="content"&&!C.shiftKey){D!==null&&(a(k,d(D)),C.preventDefault());return}switch(C.key){case"ArrowDown":{i?c(M,C):D!==null&&a(M,d(D));break}case"ArrowRight":{const R=d0({currentColIndex:M,firstColIndex:k,lastColIndex:I,isRtl:r});R!==null&&l(R,C);break}case"ArrowLeft":{const R=u0({currentColIndex:M,firstColIndex:k,lastColIndex:I,isRtl:r});R!==null&&l(R,C);break}case"ArrowUp":{F>0&&u(M,F-1,C);break}case"PageDown":{D!==null&&O!==null&&a(M,d(Math.min(D+P,O)));break}case"Home":{l(k,C);break}case"End":{l(I,C);break}case"Enter":{(C.ctrlKey||C.metaKey)&&e.current.toggleColumnMenu(y.field);break}case"Tab":{C.shiftKey?M===k?F>0?u(I,F-1,C):T=!1:l(M-1,C):M===I?i?c(k,C):t.tabNavigation==="all"&&D!==null?a(k,d(D)):T=!1:l(M+1,C);break}case" ":break;default:T=!1}T&&C.preventDefault()},[e,t.tabNavigation,s,i,c,a,d,r,l,u]),g=f.useCallback((y,C)=>{const S=WE(e)===y.field;if(ny(e)===y.field||S&&C.key!=="Tab"||!Ri(C.key)&&C.key!=="Tab"||C.key==="Tab"&&(t.tabNavigation==="none"||t.tabNavigation==="content"&&C.shiftKey))return;const E=s(),P=e.current.getViewportPageSize(),M=y.field?e.current.getColumnIndex(y.field):0,D=E.length>0?0:null,O=E.length>0?E.length-1:null,k=0,I=Math.max(0,ln(e).length-1);let F=!0;if(C.key==="Tab"&&t.tabNavigation==="content"&&!C.shiftKey){D!==null&&(a(k,d(D)),C.preventDefault());return}switch(C.key){case"ArrowDown":{D!==null&&a(M,d(D));break}case"ArrowRight":{const T=d0({currentColIndex:M,firstColIndex:k,lastColIndex:I,isRtl:r});T!==null&&c(T,C);break}case"ArrowLeft":{const T=u0({currentColIndex:M,firstColIndex:k,lastColIndex:I,isRtl:r});T!==null?c(T,C):e.current.setColumnHeaderFilterFocus(y.field,C);break}case"ArrowUp":{l(M,C);break}case"PageDown":{D!==null&&O!==null&&a(M,d(Math.min(D+P,O)));break}case"Home":{c(k,C);break}case"End":{c(I,C);break}case"Tab":{C.shiftKey?M===k?l(I,C):c(M-1,C):M===I?t.tabNavigation==="all"&&D!==null?a(k,d(D)):F=!1:c(M+1,C);break}case" ":break;default:F=!1}F&&C.preventDefault()},[e,t.tabNavigation,s,c,r,l,a,d]),h=f.useCallback((y,C)=>{const S=of(e);if(S===null)return;const{field:x,depth:E}=S,{fields:P,depth:M,maxDepth:D}=y;if(!Ri(C.key)&&C.key!=="Tab"||C.key==="Tab"&&(t.tabNavigation==="none"||t.tabNavigation==="content"&&C.shiftKey))return;const O=s(),k=e.current.getViewportPageSize(),I=e.current.getColumnIndex(x),F=x?e.current.getColumnIndex(x):0,T=O.length>0?0:null,R=O.length>0?O.length-1:null,A=0,L=Math.max(0,ln(e).length-1);let N=!0;if(C.key==="Tab"&&t.tabNavigation==="content"&&!C.shiftKey){T!==null&&(a(A,d(T)),C.preventDefault());return}switch(C.key){case"ArrowDown":{M===D-1?l(I,C):u(I,E+1,C);break}case"ArrowUp":{M>0&&u(I,E-1,C);break}case"ArrowRight":{const _=P.length-P.indexOf(x)-1;I+_+1<=L&&u(I+_+1,E,C);break}case"ArrowLeft":{const _=P.indexOf(x);I-_-1>=A&&u(I-_-1,E,C);break}case"PageDown":{T!==null&&R!==null&&a(F,d(Math.min(T+k,R)));break}case"Home":{u(A,E,C);break}case"End":{u(L,E,C);break}case"Tab":{if(C.shiftKey){const _=P.indexOf(x),H=I-_-1;H<A?M===0?N=!1:u(L,E-1,C):u(H,E,C)}else{const _=P.length-P.indexOf(x)-1,H=I+_+1;H>L&&M===D-1?l(A,C):H>L?u(A,E+1,C):u(H,E,C)}break}case" ":break;default:N=!1}N&&C.preventDefault()},[e,t.tabNavigation,s,l,u,a,d]),b=f.useCallback((y,C)=>{if(il(C))return;const S=e.current.getCellParams(y.id,y.field);if(S.cellMode===Nt.Edit||!Ri(C.key)&&C.key!=="Tab"||C.key==="Tab"&&(t.tabNavigation==="none"||t.tabNavigation==="header"&&!C.shiftKey)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:C,cell:S}))return;const E=s();if(E.length===0)return;const P=i?c:l,M=e.current.getViewportPageSize(),D=y.field?e.current.getColumnIndex(y.field):0,O=E.findIndex(A=>A.id===y.id),k=0,I=E.length-1,F=0,T=Math.max(0,ln(e).length-1);let R=!0;if(C.key==="Tab"&&t.tabNavigation==="header"&&C.shiftKey){P(T,C),C.preventDefault();return}switch(C.key){case"ArrowDown":{O<I&&a(D,d(O+1),r?"right":"left","down");break}case"ArrowUp":{O>k?a(D,d(O-1)):P(D,C);break}case"ArrowRight":{const A=d0({currentColIndex:D,firstColIndex:F,lastColIndex:T,isRtl:r});A!==null&&a(A,d(O),r?"left":"right");break}case"ArrowLeft":{const A=u0({currentColIndex:D,firstColIndex:F,lastColIndex:T,isRtl:r});A!==null&&a(A,d(O),r?"right":"left");break}case"Tab":{C.shiftKey?D===F&&O===k?t.tabNavigation==="all"?P(T,C):R=!1:D===F?a(T,d(O-1)):a(D-1,d(O),"left"):D===T?O!==I?a(F,d(O+1)):R=!1:a(D+1,d(O),"right");break}case" ":{if(y.field===oo)break;const L=y.colDef;if(L&&(L.field===zb||vY(L.field))||L&&L.type==="longText")break;!C.shiftKey&&O<I&&a(D,d(Math.min(O+M,I)));break}case"PageDown":{O<I&&a(D,d(Math.min(O+M,I)));break}case"PageUp":{const A=Math.max(O-M,k);A!==O&&A>=k?a(D,d(A)):l(D,C);break}case"Home":{C.ctrlKey||C.metaKey||C.shiftKey?a(F,d(k)):a(F,d(O));break}case"End":{C.ctrlKey||C.metaKey||C.shiftKey?a(T,d(I)):a(T,d(O));break}default:R=!1}R&&C.preventDefault()},[e,t.tabNavigation,s,r,a,d,i,c,l]),m=f.useCallback((y,{event:C})=>C.key===" "?!1:y,[]);ht(e,"canStartEditing",m),xe(e,"columnHeaderKeyDown",p),xe(e,"headerFilterKeyDown",g),xe(e,"columnGroupHeaderKeyDown",h),xe(e,"cellKeyDown",b)},cee=(e,t)=>{const n=On(e,"useGridRowCount"),r=lo(()=>fn(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Vs,changeEvent:"rowCountChange"});const i={setRowCount:f.useCallback(u=>{Vs(e)!==u&&(n.debug("Setting 'rowCount' to",u),e.current.setState(p=>w({},p,{pagination:w({},p.pagination,{rowCount:u})})))},[e,n])};et(e,i,"public");const a=f.useCallback((u,d)=>{const p=Vs(e);return!d.exportOnlyDirtyModels||t.rowCount!=null||t.initialState?.pagination?.rowCount!=null?w({},u,{pagination:w({},u.pagination,{rowCount:p})}):u},[e,t.rowCount,t.initialState?.pagination?.rowCount]),l=f.useCallback((u,d)=>{const p=d.stateToRestore.pagination?.rowCount?d.stateToRestore.pagination.rowCount:Vs(e);return e.current.setState(g=>w({},g,{pagination:w({},g.pagination,{rowCount:p})})),u},[e]);ht(e,"exportState",a),ht(e,"restoreState",l);const c=f.useCallback(u=>{t.paginationMode==="client"||!r.current||u.pageSize!==r.current&&(r.current=u.pageSize,Vs(e)===-1&&e.current.setPage(0))},[t.paginationMode,r,e]);xe(e,"paginationModelChange",c),f.useEffect(()=>{t.paginationMode==="server"&&t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,t.rowCount]),Mi(e.current.store,()=>{if(Yc(e).hasNextPage===!1)return!0;if(t.paginationMode==="client")return qa(e)},(u,d)=>{if(d===!0&&Vs(e)!==-1){const p=qa(e),g=fn(e);e.current.setRowCount(g.pageSize*g.page+p)}else typeof d=="number"&&e.current.setRowCount(d)}),f.useEffect(()=>{t.paginationMode==="client"&&e.current.setRowCount(qa(e))},[e,t.paginationMode])},uee=(e,t)=>{const n=On(e,"useGridPaginationMeta");e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:Yc,changeEvent:"paginationMetaChange"});const s={setPaginationMeta:f.useCallback(l=>{Yc(e)!==l&&(n.debug("Setting 'paginationMeta' to",l),e.current.setState(u=>w({},u,{pagination:w({},u.pagination,{meta:l})})))},[e,n])};et(e,s,"public");const i=f.useCallback((l,c)=>{const u=Yc(e);return!c.exportOnlyDirtyModels||t.paginationMeta!=null||t.initialState?.pagination?.meta!=null?w({},l,{pagination:w({},l.pagination,{meta:u})}):l},[e,t.paginationMeta,t.initialState?.pagination?.meta]),a=f.useCallback((l,c)=>{const u=c.stateToRestore.pagination?.meta?c.stateToRestore.pagination.meta:Yc(e);return e.current.setState(d=>w({},d,{pagination:w({},d.pagination,{meta:u})})),l},[e]);ht(e,"exportState",i),ht(e,"restoreState",a),f.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},dee=(e,t)=>{const n=w({},ME(t.autoPageSize),t.paginationModel??t.initialState?.pagination?.paginationModel);OE(n.pageSize,t.signature);const r=t.rowCount??t.initialState?.pagination?.rowCount??(t.paginationMode==="client"?e.rows?.totalRowCount:void 0),s=t.paginationMeta??t.initialState?.pagination?.meta??{};return w({},e,{pagination:w({},e.pagination,{paginationModel:n,rowCount:r,meta:s,enabled:t.pagination===!0,paginationMode:t.paginationMode})})},pee=(e,t)=>{uee(e,t),XJ(e,t),cee(e,t)},fee=(e,t)=>w({},e,{preferencePanel:t.initialState?.preferencePanel??{open:!1}}),hee=(e,t)=>{const n=On(e,"useGridPreferencesPanel"),r=f.useCallback(()=>{e.current.setState(l=>{if(!l.preferencePanel.open)return l;n.debug("Hiding Preferences Panel");const c=_i(e);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:c.openedPanelValue}),w({},l,{preferencePanel:{open:!1}})})},[e,n]),s=f.useCallback((l,c,u)=>{n.debug("Opening Preferences Panel"),e.current.setState(d=>w({},d,{preferencePanel:w({},d.preferencePanel,{open:!0,openedPanelValue:l,panelId:c,labelId:u})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:l})},[n,e]);et(e,{showPreferences:s,hidePreferences:r},"public");const i=f.useCallback((l,c)=>{const u=_i(e);return!c.exportOnlyDirtyModels||t.initialState?.preferencePanel!=null||u.open?w({},l,{preferencePanel:u}):l},[e,t.initialState?.preferencePanel]),a=f.useCallback((l,c)=>{const u=c.stateToRestore.preferencePanel;return u!=null&&e.current.setState(d=>w({},d,{preferencePanel:u})),l},[e]);ht(e,"exportState",i),ht(e,"restoreState",a)},p0=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;default:return""}},gee=["id","field"],mee=["id","field"],bee=(e,t)=>{const[n,r]=f.useState({}),s=f.useRef(n),i=f.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:l,cellModesModel:c,onCellModesModelChange:u}=t,d=L=>(...N)=>{t.editMode===zr.Cell&&L(...N)},p=f.useCallback((L,N)=>{const _=e.current.getCellParams(L,N);if(!e.current.isCellEditable(_))throw new Error(`MUI X: The cell with id=${L} and field=${N} is not editable.`)},[e]),g=f.useCallback((L,N,_)=>{if(e.current.getCellMode(L,N)!==_)throw new Error(`MUI X: The cell with id=${L} and field=${N} is not in ${_} mode.`)},[e]),h=f.useCallback((L,N)=>{if(!L.isEditable||L.cellMode===Nt.Edit)return;const _=w({},L,{reason:is.cellDoubleClick});e.current.publishEvent("cellEditStart",_,N)},[e]),b=f.useCallback((L,N)=>{if(L.cellMode===Nt.View||e.current.getCellMode(L.id,L.field)===Nt.View)return;const _=w({},L,{reason:wr.cellFocusOut});e.current.publishEvent("cellEditStop",_,N)},[e]),m=f.useCallback((L,N)=>{if(L.cellMode===Nt.Edit){if(N.which===229)return;let _;if(N.key==="Escape"?_=wr.escapeKeyDown:N.key==="Enter"?_=wr.enterKeyDown:N.key==="Tab"&&(_=N.shiftKey?wr.shiftTabKeyDown:wr.tabKeyDown,N.preventDefault()),_){const H=w({},L,{reason:_});e.current.publishEvent("cellEditStop",H,N)}}else if(L.isEditable){let _;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:N,cellParams:L,editMode:"cell"}))return;if(_b(N)?_=is.printableKeyDown:Bb(N)?_=is.pasteKeyDown:N.key==="Enter"?(_=is.enterKeyDown,N.preventDefault()):(N.key==="Backspace"||N.key==="Delete")&&(_=is.deleteKeyDown),_){const B=w({},L,{reason:_,key:N.key});e.current.publishEvent("cellEditStart",B,N)}}},[e]),y=f.useCallback(L=>{const{id:N,field:_,reason:H}=L,B={id:N,field:_};(H===is.printableKeyDown||H===is.deleteKeyDown||H===is.pasteKeyDown)&&(B.deleteValue=!0),e.current.startCellEditMode(B)},[e]),C=f.useCallback(L=>{const{id:N,field:_,reason:H}=L;e.current.runPendingEditCellValueMutation(N,_);let B;H===wr.enterKeyDown?B="below":H===wr.tabKeyDown?B="right":H===wr.shiftTabKeyDown&&(B="left");const $=H==="escapeKeyDown";e.current.stopCellEditMode({id:N,field:_,ignoreModifications:$,cellToFocusAfter:B})},[e]),S=L=>async(...N)=>{if(L){const{id:_,field:H}=N[0];e.current.state.editRows[_][H]?.error||L(...N)}};xe(e,"cellDoubleClick",d(h)),xe(e,"cellFocusOut",d(b)),xe(e,"cellKeyDown",d(m)),xe(e,"cellEditStart",d(y)),xe(e,"cellEditStop",d(C)),Mt(e,"cellEditStart",t.onCellEditStart),Mt(e,"cellEditStop",S(t.onCellEditStop));const x=f.useCallback((L,N)=>{const _=kn(e);return _[L]&&_[L][N]?Nt.Edit:Nt.View},[e]),E=fe(L=>{const N=L!==t.cellModesModel;u&&N&&u(L,{api:e.current}),!(t.cellModesModel&&N)&&(r(L),s.current=L,e.current.publishEvent("cellModesModelChange",L))}),P=f.useCallback((L,N,_)=>{const H=w({},s.current);if(_!==null)H[L]=w({},H[L],{[N]:w({},_)});else{const B=H[L],$=ie(B,[N].map(eu));H[L]=$,Object.keys(H[L]).length===0&&delete H[L]}E(H)},[E]),M=f.useCallback((L,N,_)=>{e.current.setState(H=>{const B=w({},H.editRows);return _!==null?B[L]=w({},B[L],{[N]:w({},_)}):(delete B[L][N],Object.keys(B[L]).length===0&&delete B[L]),w({},H,{editRows:B})})},[e]),D=f.useCallback(L=>{const{id:N,field:_}=L,H=ie(L,gee);p(N,_),g(N,_,Nt.View),P(N,_,w({mode:Nt.Edit},H))},[p,g,P]),O=fe(async L=>{const{id:N,field:_,deleteValue:H,initialValue:B}=L,$=e.current.getCellValue(N,_);let V=$;H?V=p0(e.current.getColumn(_)):B&&(V=B);const z=e.current.getColumn(_),j=!!z.preProcessEditCellProps&&H;let G={value:V,error:!1,isProcessingProps:j};if(M(N,_,G),e.current.setCellFocus(N,_),j&&(G=await Promise.resolve(z.preProcessEditCellProps({id:N,row:e.current.getRow(N),props:G,hasChanged:V!==$})),e.current.getCellMode(N,_)===Nt.Edit)){const Q=kn(e);M(N,_,w({},G,{value:Q[N][_].value,isProcessingProps:!1}))}}),k=f.useCallback(L=>{const{id:N,field:_}=L,H=ie(L,mee);g(N,_,Nt.Edit),P(N,_,w({mode:Nt.View},H))},[g,P]),I=fe(async L=>{const{id:N,field:_,ignoreModifications:H,cellToFocusAfter:B="none"}=L;g(N,_,Nt.Edit),e.current.runPendingEditCellValueMutation(N,_);const $=()=>{M(N,_,null),P(N,_,null),B!=="none"&&e.current.moveFocusToRelativeCell(N,_,B)};if(H){$();return}const V=kn(e),{error:z,isProcessingProps:j}=V[N][_],G=e.current.getRow(N);if(z||j){i.current[N][_].mode=Nt.Edit,P(N,_,{mode:Nt.Edit});return}const Q=e.current.getRowWithUpdatedValuesFromCellEditing(N,_);if(t.dataSource?.updateRow){if(ro(G,Q)){$();return}const q=()=>{i.current[N][_].mode=Nt.Edit,P(N,_,{mode:Nt.Edit})},Y={rowId:N,updatedRow:Q,previousRow:G};try{await e.current.dataSource.editRow(Y),$()}catch{q()}}else if(a){const q=Y=>{i.current[N][_].mode=Nt.Edit,P(N,_,{mode:Nt.Edit}),l?l(Y):yn(["MUI X: A call to `processRowUpdate()` threw an error which was not handled because `onProcessRowUpdateError()` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError()` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/persistence/."],"error")};try{Promise.resolve(a(Q,G,{rowId:N})).then(Y=>{e.current.updateRows([Y]),$()}).catch(q)}catch(Y){q(Y)}}else e.current.updateRows([Q]),$()}),F=f.useCallback(async L=>{const{id:N,field:_,value:H,debounceMs:B,unstable_skipValueParser:$}=L;p(N,_),g(N,_,Nt.Edit);const V=e.current.getColumn(_),z=e.current.getRow(N);let j=H;V.valueParser&&!$&&(j=V.valueParser(H,z,V,e));let G=kn(e),Q=w({},G[N][_],{value:j,changeReason:B?"debouncedSetEditCellValue":"setEditCellValue"});if(V.preProcessEditCellProps){const q=H!==G[N][_].value;Q=w({},Q,{isProcessingProps:!0}),M(N,_,Q),Q=await Promise.resolve(V.preProcessEditCellProps({id:N,row:z,props:Q,hasChanged:q}))}return e.current.getCellMode(N,_)===Nt.View?!1:(G=kn(e),Q=w({},Q,{isProcessingProps:!1}),Q.value=V.preProcessEditCellProps?G[N][_].value:j,M(N,_,Q),G=kn(e),!G[N]?.[_]?.error)},[e,p,g,M]),T=f.useCallback((L,N)=>{const _=e.current.getColumn(N),H=kn(e),B=e.current.getRow(L);if(!H[L]||!H[L][N])return e.current.getRow(L);const{value:$}=H[L][N];return _.valueSetter?_.valueSetter($,B,_,e):w({},B,{[N]:$})},[e]),R={getCellMode:x,startCellEditMode:D,stopCellEditMode:k},A={setCellEditingEditCellValue:F,getRowWithUpdatedValuesFromCellEditing:T};et(e,R,"public"),et(e,A,"private"),f.useEffect(()=>{c&&E(c)},[c,E]),it(()=>{const L=qn(e),N=i.current;i.current=jP(n),Object.entries(n).forEach(([_,H])=>{Object.entries(H).forEach(([B,$])=>{const V=N[_]?.[B]?.mode||Nt.View,z=L[_]?e.current.getRowId(L[_]):_;$.mode===Nt.Edit&&V===Nt.View?O(w({id:z,field:B},$)):$.mode===Nt.View&&V===Nt.Edit&&I(w({id:z,field:B},$))})})},[e,n,O,I])},yee=["id"],vee=["id"],Cee=(e,t)=>{const[n,r]=f.useState({}),s=f.useRef(n),i=f.useRef({}),a=f.useRef({}),l=f.useRef(void 0),c=f.useRef(null),{processRowUpdate:u,onProcessRowUpdateError:d,rowModesModel:p,onRowModesModelChange:g}=t,h=$=>(...V)=>{t.editMode===zr.Row&&$(...V)},b=f.useCallback(($,V)=>{const z=e.current.getCellParams($,V);if(!e.current.isCellEditable(z))throw new Error(`MUI X: The cell with id=${$} and field=${V} is not editable.`)},[e]),m=f.useCallback(($,V)=>{if(e.current.getRowMode($)!==V)throw new Error(`MUI X: The row with id=${$} is not in ${V} mode.`)},[e]),y=f.useCallback($=>{const V=kn(e);return Object.values(V[$]).some(z=>z.error)},[e]),C=f.useCallback(($,V)=>{if(!$.isEditable||e.current.getRowMode($.id)===rn.Edit)return;const z=e.current.getRowParams($.id),j=w({},z,{field:$.field,reason:as.cellDoubleClick});e.current.publishEvent("rowEditStart",j,V)},[e]),S=f.useCallback($=>{c.current=$},[]),x=f.useCallback(($,V)=>{$.isEditable&&e.current.getRowMode($.id)!==rn.View&&(c.current=null,l.current=setTimeout(()=>{if(c.current?.id!==$.id){if(!e.current.getRow($.id)||e.current.getRowMode($.id)===rn.View||y($.id))return;const z=e.current.getRowParams($.id),j=w({},z,{field:$.field,reason:jr.rowFocusOut});e.current.publishEvent("rowEditStop",j,V)}}))},[e,y]);f.useEffect(()=>()=>{clearTimeout(l.current)},[]);const E=f.useCallback(($,V)=>{if($.cellMode===rn.Edit){if(V.which===229)return;let z;if(V.key==="Escape")z=jr.escapeKeyDown;else if(V.key==="Enter")z=jr.enterKeyDown;else if(V.key==="Tab"){const j=ja(e).filter(G=>e.current.getColumn(G).type===Zp?!0:e.current.isCellEditable(e.current.getCellParams($.id,G)));if(V.shiftKey?$.field===j[0]&&(z=jr.shiftTabKeyDown):$.field===j[j.length-1]&&(z=jr.tabKeyDown),V.preventDefault(),!z){const G=j.findIndex(q=>q===$.field),Q=j[V.shiftKey?G-1:G+1];e.current.setCellFocus($.id,Q)}}if(z){if(z!==jr.escapeKeyDown&&y($.id))return;const j=w({},e.current.getRowParams($.id),{reason:z,field:$.field});e.current.publishEvent("rowEditStop",j,V)}}else if($.isEditable){let z;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:V,cellParams:$,editMode:"row"}))return;if(_b(V)||Bb(V)?z=as.printableKeyDown:V.key==="Enter"?z=as.enterKeyDown:(V.key==="Backspace"||V.key==="Delete")&&(z=as.deleteKeyDown),z){const G=e.current.getRowParams($.id),Q=w({},G,{field:$.field,reason:z,key:p&&_b(V)?V.key:void 0});e.current.publishEvent("rowEditStart",Q,V)}}},[e,y,p]),P=f.useCallback($=>{const{id:V,field:z,reason:j}=$,G={id:V,fieldToFocus:z};(j===as.printableKeyDown||j===as.deleteKeyDown)&&(p&&j===as.printableKeyDown&&$.key&&z?G.initialValue=$.key:G.deleteValue=!!z),e.current.startRowEditMode(G)},[e,p]),M=f.useCallback($=>{const{id:V,reason:z,field:j}=$;e.current.runPendingEditCellValueMutation(V);let G;z===jr.enterKeyDown?G="below":z===jr.tabKeyDown?G="right":z===jr.shiftTabKeyDown&&(G="left");const Q=z==="escapeKeyDown";e.current.stopRowEditMode({id:V,ignoreModifications:Q,field:j,cellToFocusAfter:G})},[e]);xe(e,"cellDoubleClick",h(C)),xe(e,"cellFocusIn",h(S)),xe(e,"cellFocusOut",h(x)),xe(e,"cellKeyDown",h(E)),xe(e,"rowEditStart",h(P)),xe(e,"rowEditStop",h(M)),Mt(e,"rowEditStart",t.onRowEditStart),Mt(e,"rowEditStop",t.onRowEditStop);const D=f.useCallback($=>oT(e,{rowId:$,editMode:t.editMode})?rn.Edit:rn.View,[e,t.editMode]),O=fe($=>{const V=$!==t.rowModesModel;g&&V&&g($,{api:e.current}),!(t.rowModesModel&&V)&&(r($),s.current=$,e.current.publishEvent("rowModesModelChange",$))}),k=f.useCallback(($,V)=>{const z=w({},s.current);V!==null?z[$]=w({},V):delete z[$],O(z)},[O]),I=f.useCallback(($,V)=>{e.current.setState(z=>{const j=w({},z.editRows);return V!==null?j[$]=V:delete j[$],w({},z,{editRows:j})})},[e]),F=f.useCallback(($,V,z)=>{e.current.setState(j=>{const G=w({},j.editRows);return z!==null?G[$]=w({},G[$],{[V]:w({},z)}):(delete G[$][V],Object.keys(G[$]).length===0&&delete G[$]),w({},j,{editRows:G})})},[e]),T=f.useCallback($=>{const{id:V}=$,z=ie($,yee);m(V,rn.View),k(V,w({mode:rn.Edit},z))},[m,k]),R=fe($=>{const{id:V,fieldToFocus:z,deleteValue:j,initialValue:G}=$,Q=e.current.getRow(V),q=jo(e),Y=q.reduce((K,J)=>{const X=J.field;if(!e.current.getCellParams(V,X).isEditable)return K;const W=e.current.getColumn(X);let le=e.current.getCellValue(V,X);return z===X&&(j||G)&&(j?le=p0(W):G&&(le=G)),K[X]={value:le,error:!1,isProcessingProps:W.editable&&!!W.preProcessEditCellProps&&j},K},{});a.current[V]=Q,I(V,Y),z&&e.current.setCellFocus(V,z),q.filter(K=>e.current.getCellParams(V,K.field).isEditable&&K.editable&&!!K.preProcessEditCellProps&&j).forEach(K=>{const J=K.field,X=e.current.getCellValue(V,J),ee=j?p0(K):G??X;Promise.resolve(K.preProcessEditCellProps({id:V,row:Q,props:Y[J],hasChanged:ee!==X})).then(W=>{if(e.current.getRowMode(V)===rn.Edit){const le=kn(e);F(V,J,w({},W,{value:le[V][J].value,isProcessingProps:!1}))}})})}),A=f.useCallback($=>{const{id:V}=$,z=ie($,vee);m(V,rn.Edit),k(V,w({mode:rn.View},z))},[m,k]),L=fe(async $=>{const{id:V,ignoreModifications:z,field:j,cellToFocusAfter:G="none"}=$;e.current.runPendingEditCellValueMutation(V);const Q=()=>{G!=="none"&&j&&e.current.moveFocusToRelativeCell(V,j,G),I(V,null),k(V,null),delete a.current[V]};if(z&&e.current.getRow(V)){Q();return}const q=kn(e);if(!q[V]){Q();return}const Y=a.current[V];if(Object.values(q[V]).some(X=>X.isProcessingProps)){i.current[V].mode=rn.Edit;return}if(y(V)){i.current[V].mode=rn.Edit,k(V,{mode:rn.Edit});return}const J=e.current.getRowWithUpdatedValuesFromRowEditing(V);if(t.dataSource?.updateRow){if(ro(Y,J)){Q();return}const X=()=>{i.current[V].mode=rn.Edit,k(V,{mode:rn.Edit})},ee={rowId:V,updatedRow:J,previousRow:Y};try{await e.current.dataSource.editRow(ee),Q()}catch{X()}}else if(u){const X=ee=>{i.current[V]&&(i.current[V].mode=rn.Edit,k(V,{mode:rn.Edit})),d?d(ee):yn(["MUI X: A call to `processRowUpdate()` threw an error which was not handled because `onProcessRowUpdateError()` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError()` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/persistence/."],"error")};try{Promise.resolve(u(J,Y,{rowId:V})).then(ee=>{e.current.getRow(V)&&e.current.updateRows([ee]),Q()}).catch(X)}catch(ee){X(ee)}}else e.current.getRow(V)&&e.current.updateRows([J]),Q()}),N=f.useCallback($=>{const{id:V,field:z,value:j,debounceMs:G,unstable_skipValueParser:Q}=$;b(V,z);const q=e.current.getColumn(z),Y=e.current.getRow(V);let K=j;q.valueParser&&!Q&&(K=q.valueParser(j,Y,q,e));let J=kn(e),X=w({},J[V][z],{value:K,changeReason:G?"debouncedSetEditCellValue":"setEditCellValue"});return q.preProcessEditCellProps||F(V,z,X),new Promise(ee=>{const W=[];if(q.preProcessEditCellProps){const le=X.value!==J[V][z].value;X=w({},X,{isProcessingProps:!0}),F(V,z,X);const oe=J[V],re=ie(oe,[z].map(eu)),ae=Promise.resolve(q.preProcessEditCellProps({id:V,row:Y,props:X,hasChanged:le,otherFieldsProps:re})).then(ne=>{if(e.current.getRowMode(V)===rn.View){ee(!1);return}J=kn(e),ne=w({},ne,{isProcessingProps:!1}),ne.value=q.preProcessEditCellProps?J[V][z].value:K,F(V,z,ne)});W.push(ae)}Object.entries(J[V]).forEach(([le,oe])=>{if(le===z)return;const re=e.current.getColumn(le);if(!re.preProcessEditCellProps)return;oe=w({},oe,{isProcessingProps:!0}),F(V,le,oe),J=kn(e);const ae=J[V],ne=ie(ae,[le].map(eu)),te=Promise.resolve(re.preProcessEditCellProps({id:V,row:Y,props:oe,hasChanged:!1,otherFieldsProps:ne})).then(ye=>{if(e.current.getRowMode(V)===rn.View){ee(!1);return}ye=w({},ye,{isProcessingProps:!1}),F(V,le,ye)});W.push(te)}),Promise.all(W).then(()=>{e.current.getRowMode(V)===rn.Edit?(J=kn(e),ee(!J[V][z].error)):ee(!1)})})},[e,b,F]),_=f.useCallback($=>{const V=kn(e),z=e.current.getRow($);if(!V[$])return e.current.getRow($);let j=w({},a.current[$],z);return Object.entries(V[$]).forEach(([G,Q])=>{const q=e.current.getColumn(G);q?.valueSetter?j=q.valueSetter(Q.value,j,q,e):j[G]=Q.value}),j},[e]),H={getRowMode:D,startRowEditMode:T,stopRowEditMode:A},B={setRowEditingEditCellValue:N,getRowWithUpdatedValuesFromRowEditing:_};et(e,H,"public"),et(e,B,"private"),f.useEffect(()=>{p&&O(p)},[p,O]),it(()=>{const $=qn(e),V=i.current;i.current=jP(n);const z=new Set([...Object.keys(n),...Object.keys(V)]);Array.from(z).forEach(j=>{const G=n[j]??{mode:rn.View},Q=V[j]?.mode||rn.View,q=$[j]?e.current.getRowId($[j]):j;G.mode===rn.Edit&&Q===rn.View?R(w({id:q},G)):G.mode===rn.View&&Q===rn.Edit&&L(w({id:q},G))})},[e,n,I,R,L,k])},wee=e=>w({},e,{editRows:{}}),See=(e,t,n)=>{bee(e,t),Cee(e,t);const r=f.useRef({}),{isCellEditable:s}=t,i=n.hooks.useIsCellEditable(e,t),a=f.useCallback(b=>!i(b)||!b.colDef.editable||!b.colDef.renderEditCell?!1:s?s(b):!0,[s,i]),l=(b,m,y,C)=>{if(!y){C();return}if(r.current[b]||(r.current[b]={}),r.current[b][m]){const[E]=r.current[b][m];clearTimeout(E)}const S=()=>{const[E]=r.current[b][m];clearTimeout(E),C(),delete r.current[b][m]},x=setTimeout(()=>{C(),delete r.current[b][m]},y);r.current[b][m]=[x,S]};f.useEffect(()=>{const b=r.current;return()=>{Object.entries(b).forEach(([m,y])=>{Object.keys(y).forEach(C=>{const[S]=b[m][C];clearTimeout(S),delete b[m][C]})})}},[]);const c=f.useCallback((b,m)=>{if(r.current[b]){if(!m)Object.keys(r.current[b]).forEach(y=>{const[,C]=r.current[b][y];C()});else if(r.current[b][m]){const[,y]=r.current[b][m];y()}}},[]),u=f.useCallback(b=>{const{id:m,field:y,debounceMs:C}=b;return new Promise(S=>{l(m,y,C,async()=>{const x=t.editMode===zr.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(m,y)===Nt.Edit){const E=await x(b);S(E)}})})},[e,t.editMode]),d=f.useCallback((b,m)=>t.editMode===zr.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(b,m):e.current.getRowWithUpdatedValuesFromRowEditing(b),[e,t.editMode]),p=f.useCallback((b,m)=>kn(e)[b]?.[m]??null,[e]),g={isCellEditable:a,setEditCellValue:u,getRowWithUpdatedValues:d,unstable_getEditCellMeta:p},h={runPendingEditCellValueMutation:c};et(e,g,"public"),et(e,h,"private")},xee=(e,t,n)=>{const r=!!t.dataSource;return n.current.caches.rows=jp({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),w({},e,{rows:wP({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},Pee=(e,t,n)=>{if(process.env.NODE_ENV!=="production")try{Object.freeze(t.rows)}catch{}const r=On(e,"useGridRows"),s=f.useRef(Date.now()),i=f.useRef(t.rowCount),a=Pn(),{setRowIndex:l,setRowPosition:c}=n.hooks.useGridRowsOverridableMethods(e,t),u=f.useCallback(B=>{const $=qn(e)[B];if($)return $;const V=St(e,B);return V&&Ha(V)?{[Di]:B}:null},[e]),d=f.useCallback(B=>ho(e,B),[e]),p=f.useCallback(({cache:B,throttle:$})=>{const V=()=>{s.current=Date.now(),e.current.setState(j=>w({},j,{rows:wP({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:ct(e),previousTreeDepths:mP(e),previousGroupsToFetch:gP(e)})})),e.current.publishEvent("rowsSet")};if(a.clear(),e.current.caches.rows=B,!$){V();return}const z=t.throttleRowsMs-(Date.now()-s.current);if(z>0){a.start(z,V);return}V()},[t.throttleRowsMs,t.rowCount,t.loading,e,a]),g=f.useCallback(B=>{if(r.debug(`Updating all rows, new length ${B.length}`),!t.dataSource&&Vi(e)){e.current.updateNonPivotRows(B,!1);return}const $=jp({rows:B,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),V=e.current.caches.rows;$.rowsBeforePartialUpdates=V.rowsBeforePartialUpdates,p({cache:$,throttle:!0})},[r,t.getRowId,t.dataSource,t.loading,t.rowCount,p,e]),h=f.useCallback(B=>{if(t.signature===Mo.DataGrid&&B.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
407
+ `));if(!t.dataSource&&Vi(e)){e.current.updateNonPivotRows(B);return}const $=EP(e,B,t.getRowId),V=xP({updates:$,getRowId:t.getRowId,previousCache:e.current.caches.rows});p({cache:V,throttle:!0})},[t.signature,t.dataSource,t.getRowId,p,e]),b=f.useCallback((B,$)=>{const V=EP(e,B,t.getRowId),z=xP({updates:V,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:$??[]});p({cache:z,throttle:!1})},[t.getRowId,p,e]),m=f.useCallback(B=>{r.debug(`Setting loading to ${B}`),e.current.setState($=>w({},$,{rows:w({},$.rows,{loading:B})})),e.current.caches.rows.loadingPropBeforePartialUpdates=B},[e,r]),y=f.useCallback(()=>{const B=Oi(e),$=qn(e);return new Map(B.map(V=>[V,$[V]??{}]))},[e]),C=f.useCallback(()=>_a(e),[e]),S=f.useCallback(()=>Oi(e),[e]),x=f.useCallback(B=>{const{rowIdToIndexMap:$}=ds(e);return $.get(B)},[e]),E=f.useCallback((B,$)=>{const V=St(e,B);if(!V)throw new Error(`MUI X: No row with id #${B} found.`);if(V.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const z=w({},V,{childrenExpanded:$});e.current.setState(j=>w({},j,{rows:w({},j.rows,{tree:w({},j.rows.tree,{[B]:z})})})),e.current.publishEvent("rowExpansionChange",z)},[e]),P=f.useCallback(()=>{const B=w({},ct(e)),$=V=>{const z=B[V];z?.type==="group"&&(B[V]=w({},z,{childrenExpanded:!0}),z.children.forEach($))};$(Qe),e.current.setState(V=>w({},V,{rows:w({},V.rows,{tree:B})})),e.current.publishEvent("rowExpansionChange",B[Qe])},[e]),M=f.useCallback(()=>{const B=w({},ct(e)),$=V=>{const z=B[V];z?.type==="group"&&(B[V]=w({},z,{childrenExpanded:!1}),z.children.forEach($))};$(Qe),e.current.setState(V=>w({},V,{rows:w({},V.rows,{tree:B})})),e.current.publishEvent("rowExpansionChange",B[Qe])},[e]),D=f.useCallback(B=>St(e,B)??null,[e]),O=f.useCallback(({skipAutoGeneratedRows:B=!0,groupId:$,applySorting:V,applyFiltering:z,directChildrenOnly:j=!1})=>{const G=ct(e);let Q;if(V){const q=G[$];if(!q)return[];const Y=Wc(e);Q=[];const K=Y.findIndex(J=>J===$)+1;for(let J=K;J<Y.length&&(j?G[Y[J]].depth===q.depth+1:G[Y[J]].depth>q.depth);J+=1){const X=Y[J];(!B||!Ha(G[X]))&&Q.push(X)}}else Q=ss(G,$,B,j);if(z){const q=Ua(e);Q=Jp(q)?Q:Q.filter(Y=>q[Y]!==!1)}return Q},[e]),k=f.useCallback((B,$)=>{if(t.signature===Mo.DataGrid&&$.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
408
+ `));if($.length===0)return;if(Ls(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const z=w({},ct(e)),j=w({},qn(e)),G=z[Qe],Q=[...G.children],q=new Set;for(let K=0;K<$.length;K+=1){const J=$[K],X=Ba(J,t.getRowId,"A row was provided without id when calling replaceRows()."),[ee]=Q.splice(B+K,1,X);q.has(ee)||(delete j[ee],delete z[ee]);const W={id:X,depth:0,parent:Qe,type:"leaf",groupingKey:null};j[X]=J,z[X]=W,q.add(X)}z[Qe]=w({},G,{children:Q});const Y=Q.filter(K=>z[K]?.type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=j,e.current.setState(K=>w({},K,{rows:w({},K.rows,{loading:t.loading,totalRowCount:Math.max(t.rowCount||0,Q.length),dataRowIdToModelLookup:j,dataRowIds:Y,tree:z})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId,t.loading,t.rowCount]),I={getRow:u,setLoading:m,getRowId:d,getRowModels:y,getRowsCount:C,getAllRowIds:S,setRows:g,updateRows:h,getRowNode:D,getRowIndexRelativeToVisibleRows:x,unstable_replaceRows:k},F={setRowIndex:l,setRowPosition:c,setRowChildrenExpansion:E,getRowGroupChildren:O,expandAllRows:P,collapseAllRows:M},T={updateNestedRows:b},R=f.useCallback(()=>{r.info("Row grouping pre-processing have changed, regenerating the row tree");let B;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?B=w({},e.current.caches.rows,{updates:{type:"full",rows:Oi(e)}}):B=jp({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),p({cache:B,throttle:!1})},[r,e,t.rows,t.getRowId,t.loading,t.rowCount,p]),A=lo(()=>t.dataSource),L=f.useCallback(B=>{if(t.dataSource&&t.dataSource!==A.current){A.current=t.dataSource;return}B==="rowTreeCreation"&&R()},[R,A,t.dataSource]),N=f.useCallback(()=>{e.current.getActiveStrategy(bo.RowTree)!==tG(e)&&R()},[e,R]);xe(e,"activeStrategyProcessorChange",L),xe(e,"strategyAvailabilityChange",N);const _=f.useCallback(()=>{e.current.setState(B=>{const $=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:ct(e),treeDepths:mP(e),dataRowIds:Oi(e),dataRowIdToModelLookup:qn(e)});return w({},B,{rows:w({},B.rows,$,{totalTopLevelRowCount:CP({tree:$.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet")},[e,t.rowCount]);by(e,"hydrateRows",_),et(e,I,"public"),et(e,F,t.signature===Mo.DataGrid?"private":"public"),et(e,T,"private");const H=f.useRef(!0);f.useEffect(()=>{if(H.current){H.current=!1;return}let B=!1;t.rowCount!==i.current&&(B=!0,i.current=t.rowCount);const $=t.dataSource?nG(e):t.rows,V=e.current.caches.rows.rowsBeforePartialUpdates===$,z=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,j=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;V&&(z||(e.current.setState(G=>w({},G,{rows:w({},G.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading),j||(e.current.setState(G=>w({},G,{rows:w({},G.rows,{totalRowCount:Math.max(t.rowCount||0,G.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,G.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount),!B)||(r.debug(`Updating all rows, new length ${$?.length}`),p({cache:jp({rows:$,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,t.dataSource,r,p,e])},Eee=e=>{const t={[Qe]:w({},yP(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Qe,type:"leaf",groupingKey:null}}return{groupingName:Gi,tree:t,treeDepths:{0:e.length},dataRowIds:e}},Tee=({previousTree:e,actions:t})=>{const n=w({},e),r={};for(let a=0;a<t.remove.length;a+=1){const l=t.remove[a];r[l]=!0,delete n[l]}for(let a=0;a<t.insert.length;a+=1){const l=t.insert[a];n[l]={id:l,depth:0,parent:Qe,type:"leaf",groupingKey:null}}const s=n[Qe];let i=[...s.children,...t.insert];return Object.values(r).length&&(i=i.filter(a=>!r[a])),n[Qe]=w({},s,{children:i}),{groupingName:Gi,tree:n,treeDepths:{0:i.length},dataRowIds:i}},Iee=e=>e.updates.type==="full"?Eee(e.updates.rows):Tee({previousTree:e.previousTree,actions:e.updates.actions}),Mee=e=>{yo(e,Gi,"rowTreeCreation",Iee)};class hM extends Error{}function Oee(e,t,n){const r=f.useCallback(h=>({field:h,colDef:e.current.getColumn(h)}),[e]),s=f.useCallback(h=>{const b=e.current.getRow(h);if(!b)throw new hM(`No row with id #${h} found`);return{id:h,columns:e.current.getAllColumns(),row:b}},[e]),i=f.useCallback((h,b,m,{cellMode:y,colDef:C,hasFocus:S,rowNode:x,tabIndex:E,value:P,formattedValue:M})=>{const D=P!==void 0?P:e.current.getRowValue(m,C),O=M!==void 0?M:e.current.getRowFormattedValue(m,C),k={id:h,field:b,row:m,rowNode:x,colDef:C,cellMode:y,hasFocus:S,tabIndex:E,value:D,formattedValue:O,isEditable:!1,api:e.current};return k.isEditable=C&&e.current.isCellEditable(k),k},[e]),a=f.useCallback((h,b)=>{const m=e.current.getRow(h),y=St(e,h);if(!m||!y)throw new hM(`No row with id #${h} found`);const C=go(e),S=Zb(e),x=e.current.getCellMode(h,b);return e.current.getCellParamsForRow(h,b,m,{colDef:t.listView&&t.listViewColumn?.field===b?qP(e):e.current.getColumn(b),rowNode:y,hasFocus:C!==null&&C.field===b&&C.id===h,tabIndex:S&&S.field===b&&S.id===h?0:-1,cellMode:x})},[e,t.listView,t.listViewColumn?.field]),l=f.useCallback(h=>e.current.rootElementRef.current?iK(e.current.rootElementRef.current,h):null,[e]),c=f.useCallback(h=>e.current.rootElementRef.current?aK(e.current.rootElementRef.current,h):null,[e]),u=f.useCallback((h,b)=>e.current.rootElementRef.current?lK(e.current.rootElementRef.current,{id:h,field:b}):null,[e]),d=n.hooks.useGridParamsOverridableMethods(e),p={getCellValue:d.getCellValue,getCellParams:a,getCellElement:u,getRowValue:d.getRowValue,getRowFormattedValue:d.getRowFormattedValue,getRowParams:s,getRowElement:c,getColumnHeaderParams:r,getColumnHeaderElement:l},g={getCellParamsForRow:i};et(e,p,"public"),et(e,g,"private")}const uu={type:"include",ids:new Set},kee=(e,t)=>w({},e,{rowSelection:t.rowSelection?t.rowSelectionModel??uu:uu}),Dee=(e,t)=>{const n=On(e,"useGridSelection"),r=ue(e,Ls)>1,s=t.signature!==Mo.DataGrid&&(t.rowSelectionPropagation?.parents||t.rowSelectionPropagation?.descendants)&&r,i=f.useMemo(()=>t.rowSelectionModel,[t.rowSelectionModel]),a=f.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:t.onRowSelectionModelChange,stateSelector:xr,changeEvent:"rowSelectionChange"});const{checkboxSelection:l,disableRowSelectionOnClick:c,isRowSelectable:u}=t,d=Kb(t),p=f.useCallback(H=>{let B=H;const $=a.current??H,V=e.current.isRowSelected(H);if(V){const z=Wr(e),j=z.findIndex(Q=>Q===$),G=z.findIndex(Q=>Q===B);if(j===G)return;j>G?B=z[G+1]:B=z[G-1]}a.current=H,e.current.selectRowRange({startId:$,endId:B},!V)},[e]),g=fe(()=>t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?FE(e):Wr(e)),h=f.useCallback((H,B)=>{if(t.signature===Mo.DataGrid&&!d&&(H.type!=="include"||H.ids.size>1))throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
409
+ `));if(xr(e)!==H){if(n.debug("Setting selection model"),a.current!==null){const V=H.ids.has(a.current);(H.type==="include"&&!V||H.type==="exclude"&&V)&&(a.current=null)}e.current.setState(V=>w({},V,{rowSelection:t.rowSelection?H:uu}),B)}},[e,n,t.rowSelection,t.signature,d]),b=f.useCallback(H=>Uc(e).has(H),[e]),m=f.useCallback(H=>{if(t.rowSelection===!1)return!1;if(t.keepNonExistentRowsSelected&&!e.current.getRow(H))return!0;if(u&&!u(e.current.getRowParams(H)))return!1;const B=St(e,H);return!(B?.type==="footer"||B?.type==="pinnedRow")},[e,t.rowSelection,t.keepNonExistentRowsSelected,u]),y=f.useCallback(()=>xE(e),[e]),C=f.useCallback((H,B=!0,$=!1)=>{if(!e.current.isRowSelectable(H))return;const V=ct(e);if(a.current=B?H:null,$){n.debug(`Setting selection for row ${H}`);const z={type:"include",ids:new Set},j=G=>{z.ids.add(G)};B&&(j(H),s&&qc(e,V,H,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,j)),e.current.setRowSelectionModel(z,"singleRowSelection")}else{n.debug(`Toggling selection for row ${H}`);const z=xr(e),j={type:z.type,ids:new Set(z.ids)},G=$s(j);G.unselect(H);const Q=K=>{G.select(K)},q=K=>{G.unselect(K)};B?(Q(H),s&&qc(e,V,H,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,Q)):s&&EE(e,V,H,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,q),(j.type==="include"&&j.ids.size<2||d)&&e.current.setRowSelectionModel(j,"singleRowSelection")}},[e,n,s,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,d]),S=f.useCallback((H,B=!0,$=!1)=>{if(n.debug("Setting selection for several rows"),t.rowSelection===!1)return;const V=ct(e),z=new Set;for(let q=0;q<H.length;q+=1){const Y=H[q];e.current.isRowSelectable(Y)&&z.add(Y)}const j=xr(e);let G;if($){if(G={type:"include",ids:z},B){const q=$s(G);if(s){const Y=K=>{q.select(K)};for(const K of z)qc(e,V,K,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,Y)}}else G.ids=new Set;if(j.type===G.type&&G.ids.size===j.ids.size&&Array.from(G.ids).every(q=>j.ids.has(q)))return}else{G={type:j.type,ids:new Set(j.ids)};const q=$s(G),Y=J=>{q.select(J)},K=J=>{q.unselect(J)};for(const J of z)B?(q.select(J),s&&qc(e,V,J,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,Y)):(K(J),s&&EE(e,V,J,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,K))}(G.type==="include"&&G.ids.size<2||d)&&e.current.setRowSelectionModel(G,"multipleRowsSelection")},[n,s,d,e,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,t.rowSelection]),x=f.useCallback(H=>{if(!r||!s||H.type==="exclude"||H.ids.size===0&&H.type==="include")return H;const B={type:H.type,ids:new Set(H.ids)},$=ct(e),V=$s(B),z=j=>{V.select(j)};for(const j of H.ids)qc(e,$,j,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,z,V);return B},[e,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,r,s]),E=f.useCallback(({startId:H,endId:B},$=!0,V=!1)=>{if(!e.current.getRow(H)||!e.current.getRow(B))return;n.debug(`Expanding selection from row ${H} to row ${B}`);const z=Wr(e),j=z.indexOf(H),G=z.indexOf(B),[Q,q]=j>G?[G,j]:[j,G],Y=z.slice(Q,q+1);e.current.selectRows(Y,$,V)},[e,n]),P={selectRow:C,setRowSelectionModel:h,getSelectedRows:y,isRowSelected:b,isRowSelectable:m},M={selectRows:S,selectRowRange:E,getPropagatedRowSelectionModel:x};et(e,P,"public"),et(e,M,t.signature===Mo.DataGrid?"private":"public");const D=f.useRef(!0),O=f.useCallback(()=>{if(D.current)return;const H=xr(e),B=qn(e),$=ct(e),V=Ua(e),z=Y=>t.filterMode==="server"?!B[Y]:!$[Y]||V[Y]===!1,j={type:H.type,ids:new Set(H.ids)},G=$s(j);let Q=!1;for(const Y of H.ids){if(z(Y)){if(t.keepNonExistentRowsSelected)continue;G.unselect(Y),Q=!0;continue}if(!t.rowSelectionPropagation?.parents)continue;const K=$[Y];if(K?.type==="group"){if(K.isAutoGenerated){G.unselect(Y),Q=!0;continue}K.children.every(X=>V[X]===!1)||(G.unselect(Y),Q=!0)}}const q=r&&t.rowSelectionPropagation?.parents&&(j.ids.size>0||j.type==="exclude");if(Q||q)if(q)if(j.type==="exclude"){const Y=g(),K=[];for(let J=0;J<Y.length;J+=1){const X=Y[J];(t.keepNonExistentRowsSelected||!z(X))&&G.has(X)&&K.push(X)}e.current.selectRows(K,!0,!0)}else e.current.selectRows(Array.from(j.ids),!0,!0);else e.current.setRowSelectionModel(j,"multipleRowsSelection")},[e,r,t.rowSelectionPropagation?.parents,t.keepNonExistentRowsSelected,t.filterMode,g]),k=f.useCallback((H,B)=>{const $=B.metaKey||B.ctrlKey,V=!l&&!$&&!UG(B),z=!d||V,j=e.current.isRowSelected(H),q=tf(e)>1&&z||!j;e.current.selectRow(H,q,z)},[e,d,l]),I=f.useCallback((H,B)=>{if(c)return;const $=B.target.closest(`.${Z.cell}`)?.getAttribute("data-field");$===Xa.field||$===oo||$&&e.current.getColumn($)?.type===Zp||St(e,H.id).type==="pinnedRow"||(B.shiftKey&&d?p(H.id):k(H.id,B))},[c,d,e,p,k]),F=f.useCallback((H,B)=>{d&&B.shiftKey&&window.getSelection()?.removeAllRanges()},[d]),T=f.useCallback((H,B)=>{d&&B.nativeEvent.shiftKey?p(H.id):e.current.selectRow(H.id,H.value,!d)},[e,p,d]),R=f.useCallback(H=>{const B=cn(e),$=CE(e),V=B.items.length>0||$?.some(z=>z.length);!t.isRowSelectable&&!t.checkboxSelectionVisibleOnly&&(!r||t.rowSelectionPropagation?.descendants)&&!V&&!t.disableRowSelectionExcludeModel?e.current.setRowSelectionModel({type:H?"exclude":"include",ids:new Set},"multipleRowsSelection"):e.current.selectRows(g(),H)},[e,g,t.checkboxSelectionVisibleOnly,t.isRowSelectable,t.rowSelectionPropagation?.descendants,t.disableRowSelectionExcludeModel,r]),A=f.useCallback(H=>{R(H.value)},[R]),L=f.useCallback((H,B)=>{if(e.current.getCellMode(H.id,H.field)!==Nt.Edit&&!il(B)){if(Ri(B.key)&&B.shiftKey){const $=go(e);if($&&$.id!==H.id){B.preventDefault();const V=e.current.isRowSelected($.id);if(!d){e.current.selectRow($.id,!V,!0);return}const z=e.current.getRowIndexRelativeToVisibleRows($.id),j=e.current.getRowIndexRelativeToVisibleRows(H.id);let G,Q;z>j?V?(G=j,Q=z-1):(G=j,Q=z):V?(G=z+1,Q=j):(G=z,Q=j);const q=ds(e),Y=[];for(let K=G;K<=Q;K+=1)Y.push(q.rows[K].id);e.current.selectRows(Y,!V);return}}if(B.key===" "&&B.shiftKey){B.preventDefault(),k(H.id,B);return}String.fromCharCode(B.keyCode)==="A"&&(B.ctrlKey||B.metaKey)&&(B.preventDefault(),d&&R(!0))}},[e,d,k,R]),N=fe(()=>{if(!t.rowSelection){e.current.setRowSelectionModel(uu);return}if(i===void 0)return;if(!s||!r||i.type==="include"&&i.ids.size===0){e.current.setRowSelectionModel(i);return}const H=e.current.getPropagatedRowSelectionModel(i);if(H.type!==i.type||H.ids.size!==i.ids.size||!Array.from(i.ids).every(B=>H.ids.has(B))){e.current.setRowSelectionModel(H);return}e.current.setRowSelectionModel(i)});xe(e,"filteredRowsSet",vn(t.rowSelection,O)),xe(e,"rowClick",vn(t.rowSelection,I)),xe(e,"rowSelectionCheckboxChange",vn(t.rowSelection,T)),xe(e,"headerSelectionCheckboxChange",A),xe(e,"cellMouseDown",vn(t.rowSelection,F)),xe(e,"cellKeyDown",vn(t.rowSelection,L)),f.useEffect(()=>{N()},[e,i,t.rowSelection,N]);const _=i!=null;f.useEffect(()=>{if(_||!t.rowSelection||typeof m!="function")return;const H=xr(e);if(H.type!=="include")return;const B=new Set;for(const $ of H.ids)m($)&&B.add($);B.size<H.ids.size&&e.current.setRowSelectionModel({type:H.type,ids:B})},[e,m,_,t.rowSelection]),f.useEffect(()=>{if(!t.rowSelection||_)return;const H=xr(e);!d&&(H.type==="include"&&H.ids.size>1||H.type==="exclude")&&e.current.setRowSelectionModel(uu)},[e,d,l,_,t.rowSelection]),f.useEffect(()=>{vn(t.rowSelection,O)},[t.rowSelection,O]),f.useEffect(()=>{D.current&&(D.current=!1)},[])},Fee=e=>{const{classes:t}=e;return f.useMemo(()=>pe({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Je,t),[t])},Nee=(e,t)=>{const n={classes:t.classes},r=Fee(n),s=f.useCallback(i=>{const a=w({},Xa,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,c=i.lookup[Pr]!=null;return l&&!c?(i.lookup[Pr]=a,i.orderedFields=[Pr,...i.orderedFields]):!l&&c?(delete i.lookup[Pr],i.orderedFields=i.orderedFields.filter(u=>u!==Pr)):l&&c&&(i.lookup[Pr]=w({},a,i.lookup[Pr]),t.columns.some(u=>u.field===Pr)||(i.orderedFields=[Pr,...i.orderedFields.filter(u=>u!==Pr)])),i},[e,r,t.columns,t.checkboxSelection]);ht(e,"hydrateColumns",s)},Ree=(e,t)=>{const n=t.sortModel??t.initialState?.sorting?.sortModel??[];return w({},e,{sorting:{sortModel:VP(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},Lee=(e,t)=>{const n=On(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Bn,changeEvent:"sortModelChange"});const r=f.useCallback((P,M)=>{const D=Bn(e),O=D.findIndex(I=>I.field===P);let k=[...D];return O>-1?M?.sort==null?k.splice(O,1):k.splice(O,1,M):k=[...D,M],k},[e]),s=f.useCallback((P,M)=>{const O=Bn(e).find(k=>k.field===P.field);if(O){const k=M===void 0?BP(P.sortingOrder??t.sortingOrder,O.sort):M;return k===void 0?void 0:w({},O,{sort:k})}return{field:P.field,sort:M===void 0?BP(P.sortingOrder??t.sortingOrder):M}},[e,t.sortingOrder]),i=f.useCallback((P,M)=>M==null||M.sortable===!1||t.disableColumnSorting?P:(M.sortingOrder||t.sortingOrder).some(O=>!!O)?[...P,"columnMenuSortItem"]:P,[t.sortingOrder,t.disableColumnSorting]),a=f.useCallback(()=>{e.current.setState(P=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),w({},P,{sorting:w({},P.sorting,{sortedRows:ss(ct(e),Qe,!1)})});const M=Bn(e),D=TG(M,e),O=e.current.applyStrategyProcessor("sorting",{sortRowList:D});return w({},P,{sorting:w({},P.sorting,{sortedRows:O})})}),e.current.publishEvent("sortedRowsSet")},[e,n,t.sortingMode]),l=f.useCallback(P=>{Bn(e)!==P&&(n.debug("Setting sort model"),e.current.setState(_P(P,t.disableMultipleColumnsSorting)),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),c=f.useCallback((P,M,D)=>{const O=e.current.getColumn(P),k=s(O,M);let I;!D||t.disableMultipleColumnsSorting?I=k?.sort==null?[]:[k]:I=r(O.field,k),e.current.setSortModel(I)},[e,r,s,t.disableMultipleColumnsSorting]),u=f.useCallback(()=>Bn(e),[e]),d=f.useCallback(()=>Gb(e).map(M=>M.model),[e]),p=f.useCallback(()=>Wc(e),[e]),g=f.useCallback(P=>e.current.getSortedRowIds()[P],[e]);et(e,{getSortModel:u,getSortedRows:d,getSortedRowIds:p,getRowIdFromRowIndex:g,setSortModel:l,sortColumn:c,applySorting:a},"public");const b=f.useCallback((P,M)=>{const D=Bn(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||t.initialState?.sorting?.sortModel!=null||D.length>0?w({},P,{sorting:{sortModel:D}}):P},[e,t.sortModel,t.initialState?.sorting?.sortModel]),m=f.useCallback((P,M)=>{const D=M.stateToRestore.sorting?.sortModel;return D==null?P:(e.current.setState(_P(D,t.disableMultipleColumnsSorting)),w({},P,{callbacks:[...P.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),y=f.useCallback(P=>{const M=ct(e),D=M[Qe],O=P.sortRowList?P.sortRowList(D.children.map(k=>M[k])):[...D.children];return D.footerId!=null&&O.push(D.footerId),O},[e]);ht(e,"exportState",b),ht(e,"restoreState",m),yo(e,Gi,"sorting",y);const C=f.useCallback(({field:P,colDef:M},D)=>{if(!M.sortable||t.disableColumnSorting)return;const O=t.multipleColumnsSortingMode==="always"||D.shiftKey||D.metaKey||D.ctrlKey;c(P,void 0,O)},[c,t.disableColumnSorting,t.multipleColumnsSortingMode]),S=f.useCallback(({field:P,colDef:M},D)=>{!M.sortable||t.disableColumnSorting||D.key==="Enter"&&!D.ctrlKey&&!D.metaKey&&c(P,void 0,t.multipleColumnsSortingMode==="always"||D.shiftKey)},[c,t.disableColumnSorting,t.multipleColumnsSortingMode]),x=f.useCallback(()=>{const P=Bn(e),M=Gr(e);if(P.length>0){const D=P.filter(O=>M[O.field]);D.length<P.length&&e.current.setSortModel(D)}},[e]),E=f.useCallback(P=>{P==="sorting"&&e.current.applySorting()},[e]);ht(e,"columnMenu",i),xe(e,"columnHeaderClick",C),xe(e,"columnHeaderKeyDown",S),xe(e,"rowsSet",e.current.applySorting),xe(e,"columnsChange",x),xe(e,"activeStrategyProcessorChange",E),cs(()=>{t.signature==="DataGrid"&&e.current.applySorting()}),it(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function gM(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:s}=e,i=s+r;if(r>t)return s;if(i-t>n)return i-t;if(s<n)return s}const $ee=(e,t)=>{const n=_t(),r=On(e,"useGridScroll"),s=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,a=f.useCallback(d=>{const p=an(e),g=_a(e),h=ln(e);if(!(d.rowIndex==null)&&g===0||h.length===0)return!1;r.debug(`Scrolling to cell at row ${d.rowIndex}, col: ${d.colIndex} `);let m={};if(d.colIndex!==void 0&&h[d.colIndex]){const y=As(e);let C;if(typeof d.rowIndex<"u"){const x=Li(e)[d.rowIndex]?.id,E=e.current.unstable_getCellColSpanInfo(x,d.colIndex);E&&!E.spannedByColSpan&&(C=E.cellProps.width)}typeof C>"u"&&(C=h[d.colIndex].computedWidth),m.left=gM({containerSize:p.viewportOuterSize.width,scrollPosition:Math.abs(i.current?.scrollLeft??0),elementSize:C,elementOffset:y[d.colIndex]})}if(d.rowIndex!==void 0){const y=hP(e),C=zW(e),S=jW(e),x=t.pagination?d.rowIndex-C*S:d.rowIndex,E=y.positions[x+1]?y.positions[x+1]-y.positions[x]:y.currentPageTotalHeight-y.positions[x];m.top=gM({containerSize:p.viewportInnerSize.height,scrollPosition:i.current?.scrollTop??0,elementSize:E,elementOffset:y.positions[x]})}return m=e.current.unstable_applyPipeProcessors("scrollToIndexes",m,d),typeof m.left<"u"||typeof m.top<"u"?(e.current.scroll(m),!0):!1},[r,e,i,t.pagination]),l=f.useCallback(d=>{if(i.current&&d.left!==void 0&&s.current){const p=n?-1:1;s.current.scrollLeft=d.left,i.current.scrollLeft=p*d.left,r.debug(`Scrolling left: ${d.left}`)}i.current&&d.top!==void 0&&(i.current.scrollTop=d.top,r.debug(`Scrolling top: ${d.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n,s,r]),c=f.useCallback(()=>i?.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);et(e,{scroll:l,scrollToIndexes:a,getScrollPosition:c},"public")};function Aee(e,t){Mt(e,"columnHeaderClick",t.onColumnHeaderClick),Mt(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),Mt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Mt(e,"columnHeaderOver",t.onColumnHeaderOver),Mt(e,"columnHeaderOut",t.onColumnHeaderOut),Mt(e,"columnHeaderEnter",t.onColumnHeaderEnter),Mt(e,"columnHeaderLeave",t.onColumnHeaderLeave),Mt(e,"cellClick",t.onCellClick),Mt(e,"cellDoubleClick",t.onCellDoubleClick),Mt(e,"cellKeyDown",t.onCellKeyDown),Mt(e,"preferencePanelClose",t.onPreferencePanelClose),Mt(e,"preferencePanelOpen",t.onPreferencePanelOpen),Mt(e,"menuOpen",t.onMenuOpen),Mt(e,"menuClose",t.onMenuClose),Mt(e,"rowDoubleClick",t.onRowDoubleClick),Mt(e,"rowClick",t.onRowClick),Mt(e,"stateChange",t.onStateChange)}const du={width:0,height:0},Vee={isReady:!1,root:du,viewportOuterSize:du,viewportInnerSize:du,contentSize:du,minimumSize:du,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0,autoHeight:!1,minimalContentHeight:void 0},_ee=(e,t,n)=>{const r=Vee,s=Hc(n),i=w({},r,zee(t,n,s,Ga(n)));return n.current.store.state.dimensions=i,w({},e,{dimensions:i})},Bee=De(ln,As,(e,t)=>{const n=e.length;return n===0?0:Bi(t[n-1]+e[n-1].computedWidth,1)});function Hee(e,t){const n=f.useCallback(()=>an(e),[e]),r={getRootDimensions:n},s={updateDimensions:()=>e.current.virtualizer.api.updateDimensions(),getViewportPageSize:()=>e.current.virtualizer.api.getViewportPageSize()};if(et(e,r,"public"),et(e,s,"private"),Mt(e,"rootMount",a=>{mM(a,an(e))}),Mt(e,"debouncedResize",t.onResize),process.env.NODE_ENV!=="production"){const a=On(e,"useResizeContainer"),l=f.useRef(!1);Mt(e,"resize",c=>{n().isReady&&(c.height===0&&!l.current&&!t.autoHeight&&!fy&&(a.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
410
+ `)),l.current=!0),c.width===0&&!l.current&&!fy&&(a.error(["The parent DOM element of the Data Grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
411
+ `)),l.current=!0))})}Mi(e.current.store,a=>a.dimensions,(a,l)=>{l.isReady&&(e.current.rootElementRef.current&&mM(e.current.rootElementRef.current,l),jee(l.viewportInnerSize,a.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",l.viewportInnerSize),e.current.publishEvent("debouncedResize",l.root))})}function mM(e,t){const n=(r,s)=>e.style.setProperty(r,s);n("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),n("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),n("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),n("--DataGrid-rowWidth",`${t.rowWidth}px`),n("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),n("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),n("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),n("--DataGrid-headerHeight",`${t.headerHeight}px`),n("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),n("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),n("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),n("--height",`${t.rowHeight}px`)}function zee(e,t,n,r){const s=IP(e.rowHeight,my.rowHeight,MP);return{rowHeight:Math.floor(s*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor((e.columnGroupHeaderHeight??e.columnHeaderHeight)*n),headerFilterHeight:Math.floor((e.headerFilterHeight??e.columnHeaderHeight)*n),columnsTotalWidth:Bee(t),headersTotalHeight:cf(t,e),leftPinnedWidth:r.left.reduce((i,a)=>i+a.computedWidth,0),rightPinnedWidth:r.right.reduce((i,a)=>i+a.computedWidth,0)}}function jee(e,t){return e.width===t.width&&e.height===t.height}const Gee=e=>{const t=f.useCallback((s={})=>e.current.unstable_applyPipeProcessors("exportState",{},s),[e]),n=f.useCallback(s=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:s}).callbacks.forEach(a=>{a()})},[e]);et(e,{exportState:t,restoreState:n},"public")},Wee=e=>{const t=()=>e.current.virtualizer.api.resetColSpan(),n=(...a)=>e.current.virtualizer.api.getCellColSpanInfo(...a),r=(...a)=>{e.current.virtualizer.api.calculateColSpan(...a)},s={unstable_getCellColSpanInfo:n},i={resetColSpan:t,calculateColSpan:r};et(e,s,"public"),et(e,i,"private"),xe(e,"columnOrderChange",t)},Uee=["groupId","children"],f0=e=>{const t={};for(let n=0;n<e.length;n+=1){const r=e[n];if(GP(r))continue;const{groupId:s,children:i}=r,a=ie(r,Uee);if(!s)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");process.env.NODE_ENV!=="production"&&!i&&console.warn(`MUI X: group groupId=${s} has no children.`);const l=w({},a,{groupId:s}),c=f0(i);if(c[s]!==void 0||t[s]!==void 0)throw new Error(`MUI X: The groupId ${s} is used multiple times in the columnGroupingModel.`);Object.assign(t,c),t[s]=l}return t},bM=(e,t,n)=>{if(GP(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
412
+ `));n[e.field]=t;return}const{groupId:r,children:s}=e;s.forEach(i=>{bM(i,[...t,r],n)})},h0=e=>{if(!e)return{};const t={};return e.forEach(n=>{bM(n,[],t)}),t},g0=(e,t,n)=>{const r=c=>t[c]??[],s=[],i=Math.max(0,...e.map(c=>r(c).length)),a=(c,u,d)=>{const p=r(c),g=r(u);for(let h=0;h<=d;h+=1)if(p[h]!==g[h])return!1;return!0},l=(c,u)=>{const d=n?.left,p=n?.right,g=!!d?.includes(c),h=!!d?.includes(u),b=!!p?.includes(c),m=!!p?.includes(u);return g!==h||b!==m};for(let c=0;c<i;c+=1){const u=[];for(let d=0;d<e.length;d+=1){const p=e[d],g=r(p)[c]??null;if(u.length===0){u.push({columnFields:[p],groupId:g});continue}const h=u[u.length-1],b=h.columnFields[h.columnFields.length-1];h.groupId!==g||!a(b,p,c)||l(b,p)?u.push({columnFields:[p],groupId:g}):h.columnFields.push(p)}s.push(u)}return s},qee=(e,t,n)=>{if(n.current.caches.columnGrouping={lastColumnGroupingModel:t.columnGroupingModel},!t.columnGroupingModel)return w({},e,{columnGrouping:void 0});const r=lr(n),s=ja(n),i=f0(t.columnGroupingModel??[]),a=h0(t.columnGroupingModel??[]),l=g0(r,a,n.current.state.pinnedColumns??{}),c=s.length===0?0:Math.max(...s.map(u=>a[u]?.length??0));return w({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:l,maxDepth:c}})},Yee=(e,t)=>{const n=f.useCallback(l=>UE(e)[l]??[],[e]),r=f.useCallback(()=>qE(e),[e]);et(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const i=f.useCallback(()=>{const l=h0(t.columnGroupingModel??[]);e.current.setState(c=>{const u=c.columns?.orderedFields??[],d=c.pinnedColumns??{},p=g0(u,l,d);return w({},c,{columnGrouping:w({},c.columnGrouping,{headerStructure:p})})})},[e,t.columnGroupingModel]),a=f.useCallback(l=>{if(!l&&!e.current.caches.columnGrouping.lastColumnGroupingModel)return;e.current.caches.columnGrouping.lastColumnGroupingModel=l;const c=e.current.getPinnedColumns?.()??{},u=lr(e),d=ja(e),p=f0(l??[]),g=h0(l??[]),h=g0(u,g,c),b=d.length===0?0:Math.max(...d.map(m=>g[m]?.length??0));e.current.setState(m=>w({},m,{columnGrouping:{lookup:p,unwrappedGroupingModel:g,headerStructure:h,maxDepth:b}}))},[e]);xe(e,"columnIndexChange",i),xe(e,"columnsChange",()=>{a(t.columnGroupingModel)}),xe(e,"columnVisibilityModelChange",()=>{a(t.columnGroupingModel)}),f.useEffect(()=>{t.columnGroupingModel!==e.current.caches.columnGrouping.lastColumnGroupingModel&&a(t.columnGroupingModel)},[e,a,t.columnGroupingModel])};function Kee(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function yM(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function vM(e,t,n,r){let s=e;return r==="Right"?s+=t-n.left:s+=n.right-t,Math.round(s)}function Xee(e,t,n){return n==="Left"?e-t.left:t.right-e}function Zee(e){return e==="Right"?"Left":"Right"}function Qee(e,t){const n=e.classList.contains(Z["columnSeparator--sideRight"])?"Right":"Left";return t?Zee(n):n}function CM(e,t){return t===Mn.LEFT?e?"--DataGrid-rightPinnedWidth":"--DataGrid-leftPinnedWidth":e?"--DataGrid-leftPinnedWidth":"--DataGrid-rightPinnedWidth"}function wM(e,t,n){return n===Mn.LEFT?t?e.rightPinnedWidth:e.leftPinnedWidth:t?e.leftPinnedWidth:e.rightPinnedWidth}function SM(e){e.preventDefault(),e.stopImmediatePropagation()}function Jee(e){const t=f.useRef(void 0),n=()=>Bq(e),r=ue(e,n);return f.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=Kee()}return t.current}}function ete(e,t){if(e.length<4)return e;const n=e.slice();n.sort((l,c)=>l-c);const r=n[Math.floor(n.length*.25)],s=n[Math.floor(n.length*.75)-1],i=s-r,a=i<5?5:i*t;return n.filter(l=>l>r-a&&l<s+a)}function tte(e,t,n){const r={},s=e.current.rootElementRef.current;s.classList.add(Z.autosizing);const i=t.includeHeaderFilters&&GE(e);return n.forEach(a=>{const c=CK(e.current,a.field).map(m=>m.getBoundingClientRect().width??0),u=t.includeOutliers?c:ete(c,t.outliersFactor);if(t.includeHeaders){const m=yK(e.current,a.field);if(m){const y=m.querySelector(`.${Z.columnHeaderTitleContainer}`),C=Array.from(y.children),S=m.querySelector(`.${Z.menuIcon}`),x=window.getComputedStyle(y,null),E=parseInt(x.gap,10)||0,P=window.getComputedStyle(m,null),M=parseInt(P.paddingLeft,10)+parseInt(P.paddingRight,10);let D=0,O=0;for(let I=0;I<C.length;I+=1){const F=C[I];F.clientWidth>0&&(D+=1,O+=F.scrollWidth)}O+=1;const k=O+E*(D-1)+M+(S?.clientWidth??0);u.push(k)}}if(i){const m=vK(e.current,a.field);if(m){const y=window.getComputedStyle(m,null),C=parseInt(y.paddingLeft,10)+parseInt(y.paddingRight,10),x=m.scrollWidth+C;u.push(x)}}const d=a.minWidth!==-1/0&&a.minWidth!==void 0,p=a.maxWidth!==1/0&&a.maxWidth!==void 0,g=d?a.minWidth:0,h=p?a.maxWidth:1/0,b=u.length===0?0:Math.max(...u);r[a.field]=Fi(b,g,h)}),s.classList.remove(Z.autosizing),r}const nte=e=>w({},e,{columnResize:{resizingColumnField:""}});function ote(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const rte=(e,t)=>{const n=_t(),r=On(e,"useGridColumnResize"),s=lo(ote).current,i=f.useRef(null),a=f.useRef(null),l=Pn(),c=f.useRef(void 0),u=I=>{r.debug(`Updating width to ${I} for col ${s.colDef.field}`);const F=s.columnHeaderElement.offsetWidth,T=I-F,R=I-s.initialColWidth;if(R>0){const _=s.initialTotalWidth+R;e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${_}px`)}s.colDef.computedWidth=I,s.colDef.width=I,s.colDef.flex=0,s.columnHeaderElement.style.width=`${I}px`;const A=s.headerFilterElement;A&&(A.style.width=`${I}px`),s.groupHeaderElements.forEach(_=>{const H=_;let B;H.getAttribute("aria-colspan")==="1"?B=`${I}px`:B=`${H.offsetWidth+T}px`,H.style.width=B}),s.cellElements.forEach(_=>{const H=_;let B;H.getAttribute("aria-colspan")==="1"?B=`${I}px`:B=`${H.offsetWidth+T}px`,H.style.setProperty("--width",B)});const L=an(e),N=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,s.colDef.field);N===Mn.LEFT&&(cl(s.fillerLeft,"width",T),s.leftPinnedCellsAfter.forEach(_=>{cl(_,"left",T)}),s.leftPinnedHeadersAfter.forEach(_=>{cl(_,"left",T)}),e.current.rootElementRef?.current?.style.setProperty(CM(n,N),`${wM(L,n,N)+R}px`)),N===Mn.RIGHT&&(cl(s.fillerRight,"width",T),s.rightPinnedCellsBefore.forEach(_=>{cl(_,"right",T)}),s.rightPinnedHeadersBefore.forEach(_=>{cl(_,"right",T)}),e.current.rootElementRef?.current?.style.setProperty(CM(n,N),`${wM(L,n,N)+R}px`))},d=I=>{if(S(),s.previousMouseClickEvent){const F=s.previousMouseClickEvent,T=F.timeStamp,R=F.clientX,A=F.clientY;if(I.timeStamp-T<300&&I.clientX===R&&I.clientY===A){s.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,I);return}}if(s.colDef){e.current.setColumnWidth(s.colDef.field,s.colDef.width),r.debug(`Updating col ${s.colDef.field} with new width: ${s.colDef.width}`);const F=Sr(e);s.groupHeaderElements.forEach(T=>{const R=dK(T),A=T,N=`${R.reduce((_,H)=>F.columnVisibilityModel[H]!==!1?_+F.lookup[H].computedWidth:_,0)}px`;A.style.width=N})}l.start(0,()=>{e.current.publishEvent("columnResizeStop",null,I)})},p=()=>{s.columnHeaderElement&&(s.cellElements=fK(s.columnHeaderElement,e.current))},g=(I,F,T)=>{const R=e.current.rootElementRef.current;s.initialColWidth=I.computedWidth,s.initialTotalWidth=e.current.getRootDimensions().rowWidth,s.colDef=I,s.columnHeaderElement=uK(e.current.columnHeadersContainerRef.current,I.field);const A=R.querySelector(`.${Z.headerFilterRow} [data-field="${qr(I.field)}"]`);A&&(s.headerFilterElement=A),s.groupHeaderElements=pK(e.current.columnHeadersContainerRef?.current,I.field),p(),s.fillerLeft=AT(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),s.fillerRight=AT(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const L=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,s.colDef.field);s.leftPinnedCellsAfter=L!==Mn.LEFT?[]:hK(e.current,s.columnHeaderElement,n),s.rightPinnedCellsBefore=L!==Mn.RIGHT?[]:gK(e.current,s.columnHeaderElement,n),s.leftPinnedHeadersAfter=L!==Mn.LEFT?[]:mK(e.current,s.columnHeaderElement,n),s.rightPinnedHeadersBefore=L!==Mn.RIGHT?[]:bK(e.current,s.columnHeaderElement,n),a.current=Qee(F,n),i.current=Xee(T,s.columnHeaderElement.getBoundingClientRect(),a.current)},h=fe(d),b=fe(I=>{if(I.buttons===0){h(I);return}let F=vM(i.current,I.clientX,s.columnHeaderElement.getBoundingClientRect(),a.current);F=Fi(F,s.colDef.minWidth,s.colDef.maxWidth),u(F);const T={element:s.columnHeaderElement,colDef:s.colDef,width:F};e.current.publishEvent("columnResize",T,I)}),m=fe(I=>{yM(I,c.current)&&d(I)}),y=fe(I=>{const F=yM(I,c.current);if(!F)return;if(I.type==="mousemove"&&I.buttons===0){m(I);return}let T=vM(i.current,F.x,s.columnHeaderElement.getBoundingClientRect(),a.current);T=Fi(T,s.colDef.minWidth,s.colDef.maxWidth),u(T);const R={element:s.columnHeaderElement,colDef:s.colDef,width:T};e.current.publishEvent("columnResize",R,I)}),C=fe(I=>{const F=bf(I.target,Z["columnSeparator--resizable"]);if(!F)return;const T=I.changedTouches[0];T!=null&&(c.current=T.identifier);const R=bf(I.target,Z.columnHeader),A=cK(R),L=e.current.getColumn(A);r.debug(`Start Resize on col ${L.field}`),e.current.publishEvent("columnResizeStart",{field:A},I),g(L,F,T.clientX);const N=Bt(I.currentTarget);N.addEventListener("touchmove",y),N.addEventListener("touchend",m)}),S=f.useCallback(()=>{const I=Bt(e.current.rootElementRef.current);I.body.style.removeProperty("cursor"),I.removeEventListener("mousemove",b),I.removeEventListener("mouseup",h),I.removeEventListener("touchmove",y),I.removeEventListener("touchend",m),setTimeout(()=>{I.removeEventListener("click",SM,!0)},100),s.columnHeaderElement&&(s.columnHeaderElement.style.pointerEvents="unset")},[e,s,b,h,y,m]),x=f.useCallback(({field:I})=>{e.current.setState(F=>w({},F,{columnResize:w({},F.columnResize,{resizingColumnField:I})}))},[e]),E=f.useCallback(()=>{e.current.setState(I=>w({},I,{columnResize:w({},I.columnResize,{resizingColumnField:""})}))},[e]),P=fe(({colDef:I},F)=>{if(F.button!==0||!F.currentTarget.classList.contains(Z["columnSeparator--resizable"]))return;F.preventDefault(),r.debug(`Start Resize on col ${I.field}`),e.current.publishEvent("columnResizeStart",{field:I.field},F),g(I,F.currentTarget,F.clientX);const T=Bt(e.current.rootElementRef.current);T.body.style.cursor="col-resize",s.previousMouseClickEvent=F.nativeEvent,T.addEventListener("mousemove",b),T.addEventListener("mouseup",h),T.addEventListener("click",SM,!0)}),M=fe((I,F)=>{if(t.disableAutosize||F.button!==0)return;const T=e.current.state.columns.lookup[I.field];T.resizable!==!1&&e.current.autosizeColumns(w({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[T.field]}))}),D=Jee(e),O=f.useRef(!1),k=f.useCallback(async I=>{if(!e.current.rootElementRef?.current||O.current)return;O.current=!0;const T=Sr(e),R=w({},rq,I,{columns:I?.columns??T.orderedFields});R.columns=R.columns.filter(L=>T.columnVisibilityModel[L]!==!1);const A=R.columns.map(L=>e.current.state.columns.lookup[L]);try{!t.disableVirtualization&&R.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await D());const L=tte(e,R,A),N=A.map(_=>w({},_,{width:L[_.field],computedWidth:L[_.field],flex:0}));if(R.expand){const H=T.orderedFields.map(z=>T.lookup[z]).filter(z=>T.columnVisibilityModel[z.field]!==!1).reduce((z,j)=>z+(L[j.field]??j.computedWidth??j.width),0),V=e.current.getRootDimensions().viewportInnerSize.width-H;if(V>0){const z=V/(N.length||1);N.forEach(j=>{j.width+=z,j.computedWidth+=z})}}e.current.updateColumns(N),N.forEach((_,H)=>{if(_.width!==A[H].width){const B=_.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(_.field),colDef:_,width:B})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),O.current=!1}},[e,D,t.disableVirtualization]);f.useEffect(()=>S,[S]),ld(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),XE(e,()=>e.current.columnHeadersContainerRef?.current,"touchstart",C,{passive:!0}),et(e,{autosizeColumns:k},"public"),xe(e,"columnResizeStop",E),xe(e,"columnResizeStart",x),xe(e,"columnSeparatorMouseDown",P),xe(e,"columnSeparatorDoubleClick",M),xe(e,"rowsSet",()=>{oq(e)!==""&&requestAnimationFrame(()=>{p()})}),Mt(e,"columnResize",t.onColumnResize),Mt(e,"columnWidthChange",t.onColumnWidthChange)};function cl(e,t,n){e&&(e.style[t]=`${Math.round(parseFloat(e.style[t]))+n}px`)}function ste(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}function xM(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const m0=(e,t,n)=>{if(!e)return null;const r=e[t.field];return t.rowSpanValueGetter?t.rowSpanValueGetter(r,e,t,n):vP(e,t,n)},Wi={caches:{spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},processedRange:{firstRowIndex:0,lastRowIndex:0}},ite=(e,t,n,r,s,i)=>{const a=e.current.virtualizer,l=i?Wi:nl.selectors.state(a.store.state),c=w({},l.caches.spannedCells),u=w({},l.caches.hiddenCells),d=w({},l.caches.hiddenCellOriginMap),p={firstRowIndex:Math.min(l.processedRange.firstRowIndex,s.firstRowIndex),lastRowIndex:Math.max(l.processedRange.lastRowIndex,s.lastRowIndex)};return t.forEach((g,h)=>{for(let b=s.firstRowIndex;b<s.lastRowIndex;b+=1){const m=n[b];if(u[m.id]?.[h])continue;const y=m0(m.model,g,e);if(y==null)continue;let C=m.id,S=b,x=0;const E=[];if(b===s.firstRowIndex){let M=b-1,D=n[M];for(;M>=r.firstRowIndex&&D&&m0(D.model,g,e)===y;){const O=n[M+1];u[O.id]?u[O.id][h]=!0:u[O.id]={[h]:!0},E.push(b),x+=1,C=D.id,S=M,M-=1,D=n[M]}}E.forEach(M=>{d[M]?d[M][h]=S:d[M]={[h]:S}});let P=b+1;for(;P<=r.lastRowIndex&&n[P]&&m0(n[P].model,g,e)===y;){const M=n[P];u[M.id]?u[M.id][h]=!0:u[M.id]={[h]:!0},d[P]?d[P][h]=S:d[P]={[h]:S},P+=1,x+=1}x>0&&(c[C]?c[C][h]=x+1:c[C]={[h]:x+1})}}),{caches:{spannedCells:c,hiddenCells:u,hiddenCellOriginMap:d},processedRange:p}},ate=e=>w({},e,{rowSpanning:Wi}),lte=(e,t)=>{const n=f.useCallback((a,l=!1)=>{const c=e.current.virtualizer.store,{range:u,rows:d}=ds(e);if(l&&c.set("rowSpanning",Wi),u===null||!xM(a))return;const p=l?Wi:nl.selectors.state(c.state),g=ste({firstRowIndex:a.firstRowIndex,lastRowIndex:Math.min(a.lastRowIndex,u.lastRowIndex-u.firstRowIndex+1)},p.processedRange);if(g===null)return;const h=ln(e),b=ite(e,h,d,u,g,l),m=Object.keys(b.caches.spannedCells).length,y=Object.keys(b.caches.hiddenCells).length,C=Object.keys(p.caches.spannedCells).length,S=Object.keys(p.caches.hiddenCells).length;!(l||m!==C||y!==S)||m===0&&C===0||c.set("rowSpanning",b)},[e]),{schedule:r,cancel:s}=AU(n),i=f.useCallback(()=>{const a=Hi(e);xM(a)&&r(a,!0)},[e,r]);xe(e,"renderedRowsIntervalChange",vn(t.rowSpanning,a=>{const l=s();n(a,l)})),xe(e,"sortedRowsSet",vn(t.rowSpanning,i)),xe(e,"paginationModelChange",vn(t.rowSpanning,i)),xe(e,"filteredRowsSet",vn(t.rowSpanning,i)),xe(e,"columnsChange",vn(t.rowSpanning,i)),xe(e,"rowExpansionChange",vn(t.rowSpanning,i)),f.useEffect(()=>{const a=e.current.virtualizer?.store;a&&(t.rowSpanning?a.state.rowSpanning===Wi&&n(Hi(e)):a.state.rowSpanning!==Wi&&a.set("rowSpanning",Wi))},[e,t.rowSpanning,n])},cte=(e,t,n)=>w({},e,{listViewColumn:t.listViewColumn?w({},t.listViewColumn,{computedWidth:b0(n)}):void 0});function ute(e,t){const n=()=>{e.current.setState(i=>i.listViewColumn?w({},i,{listViewColumn:w({},i.listViewColumn,{computedWidth:b0(e)})}):i)},r=f.useRef(null);xe(e,"viewportInnerSizeChange",i=>{r.current!==i.width&&(r.current=i.width,n())}),xe(e,"columnVisibilityModelChange",n),it(()=>{const i=t.listViewColumn;i&&e.current.setState(a=>w({},a,{listViewColumn:w({},i,{computedWidth:b0(e)})}))},[e,t.listViewColumn]),f.useEffect(()=>{t.listView&&!t.listViewColumn&&yn(["MUI X: The `listViewColumn` prop must be set if `listView` is enabled.",'To fix, pass a column definition to the `listViewColumn` prop, e.g. `{ field: "example", renderCell: (params) => <div>{params.row.id}</div> }`.',"For more details, see https://mui.com/x/react-data-grid/list-view/"])},[t.listView,t.listViewColumn])}function b0(e){return an(e).viewportInnerSize.width}const Tf=De(cn,Bn,fn,(e,t,n)=>({groupKeys:[],paginationModel:n,sortModel:t,filterModel:e,start:n.page*n.pageSize,end:n.page*n.pageSize+n.pageSize-1}));let Jn=(function(e){return e.Default="set-flat-rows",e.LazyLoading="replace-row-range",e.GroupedData="set-grouped-rows",e})({});class If{constructor(t){this.chunkSize=t}getCacheKeys=t=>{if(this.chunkSize<1||typeof t.start!="number")return[t];const n=[];for(let r=t.start;r<=t.end;r+=this.chunkSize){const s=Math.min(r+this.chunkSize-1,t.end);n.push(w({},t,{start:r,end:s}))}return n};splitResponse=(t,n)=>{const r=this.getCacheKeys(t);if(r.length===1)return new Map([[t,n]]);const s=new Map;return r.forEach(i=>{const a=i.end===t.end,l=w({},n,{pageInfo:w({},n.pageInfo,{hasNextPage:n.pageInfo?.hasNextPage!==void 0&&!a?!0:n.pageInfo?.hasNextPage,nextCursor:n.pageInfo?.nextCursor!==void 0&&!a?n.rows[i.end+1].id:n.pageInfo?.nextCursor}),rows:typeof i.start!="number"||typeof t.start!="number"?n.rows:n.rows.slice(i.start-t.start,i.end-t.start+1)});s.set(i,l)}),s};static mergeResponses=t=>t.length===1?t[0]:t.reduce((n,r)=>w({},r,{rows:[...n.rows,...r.rows]}),{rows:[],rowCount:0,pageInfo:{}})}const dte=["skipCache","keepChildrenExpanded"],pte={clear:()=>{},get:()=>{},set:()=>{}};function PM(e,t={}){return e===null?pte:e??new Wq(t)}const fte=(e,t,n={})=>{const r=f.useCallback(()=>{e.current.setStrategyAvailability(bo.DataSource,Jn.Default,t.dataSource?()=>!0:()=>!1)},[e,t.dataSource]),[s,i]=f.useState(e.current.getActiveStrategy(bo.DataSource)),a=f.useMemo(()=>s===Jn.Default||s===Jn.GroupedData,[s]),l=ue(e,fn),c=f.useRef(0),u=f.useRef(null),d=t.onDataSourceError,p=t.dataSourceRevalidateMs,g=lo(()=>{if(!t.pagination)return new If(l.pageSize);const R=t.pageSizeOptions.map(L=>typeof L=="number"?L:L.value).sort((L,N)=>L-N),A=Math.min(l.pageSize,R[0]);return new If(A)}).current,[h,b]=f.useState(()=>PM(t.dataSourceCache,n.cacheOptions)),m=f.useCallback(async(R,A)=>{const L=t.dataSource?.getRows;if(!L)return;if(R&&R!==Qe&&t.signature!=="DataGrid"){n.fetchRowChildren?.([R]);return}n.clearDataSourceState?.();const N=A||{},{skipCache:_,keepChildrenExpanded:H}=N,B=ie(N,dte),$=w({},Tf(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),B),z=g.getCacheKeys($).map(G=>h.get(G));if(!_&&z.every(G=>G!==void 0)){e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:If.mergeResponses(z),fetchParams:$,options:{skipCache:_,keepChildrenExpanded:H}});return}(a||e.current.getRowsCount()===0)&&e.current.setLoading(!0);const j=c.current+1;c.current=j;try{const G=await L($);g.splitResponse($,G).forEach((q,Y)=>h.set(Y,q)),c.current===j&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:G,fetchParams:$,options:{skipCache:_,keepChildrenExpanded:H}})}catch(G){c.current===j&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:G,fetchParams:$,options:{skipCache:_,keepChildrenExpanded:H}}),typeof d=="function"?d(new CT({message:G?.message,params:$,cause:G})):yn(["MUI X: A call to `dataSource.getRows()` threw an error which was not handled because `onDataSourceError()` is missing.","To handle the error pass a callback to the `onDataSourceError` prop, for example `<DataGrid onDataSourceError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/server-side-data/#error-handling."],"error"))}finally{a&&c.current===j&&e.current.setLoading(!1)}},[g,h,e,a,t.dataSource?.getRows,d,n,t.signature]),y=f.useCallback(()=>{i(e.current.getActiveStrategy(bo.DataSource))},[e]),C=n.fetchRowChildren,S=fe(async()=>{const R=t.dataSource?.getRows;if(!R||!a)return;const A=()=>{if(s!==Jn.GroupedData||!C)return;const H=ct(e),$=Ka(e).rows.reduce((V,z)=>{const j=H[z.id];return j.type==="group"&&j.id!==Qe&&j.childrenExpanded===!0&&V.push(z.id),V},[]);$.length>0&&C($,{showChildrenLoading:!1})},L=w({},Tf(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}));if(g.getCacheKeys(L).map(H=>h.get(H)).every(H=>H!==void 0)){A();return}try{const H=await R(L),B=w({},Tf(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}));if(!ro(L,B))return;g.splitResponse(L,H).forEach((V,z)=>h.set(z,V)),e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:H,fetchParams:L,options:{}}),A()}catch{}}),x=f.useCallback(()=>{u.current!==null&&(clearInterval(u.current),u.current=null)},[]),E=fe(()=>{x(),!(p<=0||!a)&&(u.current=setInterval(S,p))}),P=f.useCallback(R=>{if("error"in R){e.current.setRows([]);return}const{response:A}=R;A.rowCount!==void 0&&e.current.setRowCount(A.rowCount),e.current.setRows(A.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:R.fetchParams,response:A},!0),E()},[e,E]),M=t.dataSource?.updateRow,D=n.handleEditRow,O=f.useCallback(async R=>{if(M)try{const A=await M(R);return typeof D=="function"?(D(R,A),A):(A&&!ro(A,R.previousRow)&&e.current.dataSource.cache.clear(),e.current.updateNestedRows([A],[]),A)}catch(A){throw typeof d=="function"?d(new Uq({message:A?.message,params:R,cause:A})):yn(["MUI X: A call to `dataSource.updateRow()` threw an error which was not handled because `onDataSourceError()` is missing.","To handle the error pass a callback to the `onDataSourceError` prop, for example `<DataGrid onDataSourceError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/server-side-data/#error-handling."],"error"),A}},[e,M,d,D]),k={dataSource:{fetchRows:m,cache:h,editRow:O}},I=f.useMemo(()=>ur(m,0),[m]),F=f.useCallback(()=>{e.current.setRows([]),x(),I()},[x,I,e]),T=f.useRef(!0);return f.useEffect(()=>{if(T.current){T.current=!1;return}if(t.dataSourceCache===void 0)return;const R=PM(t.dataSourceCache,n.cacheOptions);b(A=>A!==R?R:A)},[t.dataSourceCache,n.cacheOptions]),f.useEffect(()=>{a||x()},[a,x]),f.useEffect(()=>{p<=0&&x()},[p,x]),f.useEffect(()=>x,[x]),f.useEffect(()=>{if(!(s!==Jn.Default&&s!==Jn.LazyLoading&&s!==Jn.GroupedData))return t.dataSource&&(x(),e.current.setRows([]),e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows()),()=>{c.current+=1}},[e,t.dataSource,s,x]),{api:{public:k},debouncedFetchRows:I,strategyProcessor:{strategyName:Jn.Default,group:"dataSourceRowsUpdate",processor:P},setStrategyAvailability:r,startPolling:E,stopPolling:x,cacheChunkManager:g,cache:h,events:{strategyAvailabilityChange:y,sortModelChange:vn(a,F),filterModelChange:vn(a,F),paginationModelChange:vn(a,F)}}},hte=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:s,showLeftBorder:i,showRightBorder:a,groupId:l,pinnedPosition:c}=e,u={root:["columnHeader",n&&`columnHeader--align${de(n)}`,r&&"columnHeader--moving",a&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","withBorderColor",l===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",c===pt.LEFT&&"columnHeader--pinnedLeft",c===pt.RIGHT&&"columnHeader--pinnedRight",s&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return pe(u,Je,t)};function gte(e){const{groupId:t,width:n,depth:r,maxDepth:s,fields:i,height:a,colIndex:l,hasFocus:c,tabIndex:u,isLastColumn:d,pinnedPosition:p,pinnedOffset:g}=e,h=Ie(),b=_t(),m=f.useRef(null),y=Xe(),C=ue(y,qE),S=t?C[t]:{},{headerName:x=t??"",description:E="",headerAlign:P=void 0}=S;let M;const D=t&&C[t]?.renderHeaderGroup,O=f.useMemo(()=>({groupId:t,headerName:x,description:E,depth:r,maxDepth:s,fields:i,colIndex:l,isLastColumn:d}),[t,x,E,r,s,i,l,d]);t&&D&&(M=D(O));const k=w({},e,{classes:h.classes,headerAlign:P,depth:r,isDragging:!1}),I=x??t,F=at(),T=t===null?`empty-group-cell-${F}`:t,R=hte(k);f.useLayoutEffect(()=>{if(c){const B=m.current.querySelector('[tabindex="0"]')||m.current;if(!B)return;if(gf())B.focus({preventScroll:!0});else{const $=y.current.getScrollPosition();B.focus(),y.current.scroll($)}}},[y,c]);const A=f.useCallback(H=>B=>{il(B)||y.current.publishEvent(H,O,B)},[y,O]),L=f.useMemo(()=>({onKeyDown:A("columnGroupHeaderKeyDown"),onFocus:A("columnGroupHeaderFocus"),onBlur:A("columnGroupHeaderBlur")}),[A]),N=typeof S.headerClassName=="function"?S.headerClassName(O):S.headerClassName,_=f.useMemo(()=>tu(w({},e.style),b,p,g),[p,g,e.style,b]);return v.jsx(Oy,w({ref:m,classes:R,columnMenuOpen:!1,colIndex:l,height:a,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:M,headerClassName:N,description:E,elementId:T,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:I,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:_},L))}const EM={root:Z.scrollbarFiller,pinnedRight:Z["scrollbarFiller--pinnedRight"]};function mte({pinnedRight:e}){return v.jsx("div",{role:"presentation",className:se(EM.root,e&&EM.pinnedRight)})}const y0=U("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}),TM=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:i,columnHeaderFocus:a,columnGroupHeaderFocus:l,headerGroupingMaxDepth:c,columnMenuState:u,columnVisibility:d,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:g}=e,[h,b]=f.useState(""),[m,y]=f.useState(""),C=Hn(),S=Ie(),x=ue(C,UE),E=ue(C,As),P=ue(C,jq),M=ue(C,Ga),D=ue(C,Gr),O=fT(E,P,M.left.length),k=ue(C,Bc),I=ue(C,Tb),F=ue(C,Yj),T=ue(C,Kj),R=ue(C,Ib),A=f.useCallback(q=>y(q.field),[]),L=f.useCallback(()=>y(""),[]),N=f.useCallback(q=>b(q.field),[]),_=f.useCallback(()=>b(""),[]),H=f.useMemo(()=>M.left.length?{firstColumnIndex:0,lastColumnIndex:M.left.length}:null,[M.left.length]),B=f.useMemo(()=>M.right.length?{firstColumnIndex:t.length-M.right.length,lastColumnIndex:t.length}:null,[M.right.length,t.length]);xe(C,"columnResizeStart",A),xe(C,"columnResizeStop",L),xe(C,"columnHeaderDragStart",N),xe(C,"columnHeaderDragEndNative",_);const $=q=>{const{renderContext:Y=P}=q||{},K=Y.firstColumnIndex,J=Math.min(Y.lastColumnIndex,t.length);return{renderedColumns:t.slice(K,J),firstColumnToRender:K,lastColumnToRender:J}},V=(q,Y,K,J=!1)=>{const X=q?.position===pt.RIGHT,ee=q?.position===void 0,W=M.right.length>0&&X||M.right.length===0&&ee,le=O-K;return v.jsxs(f.Fragment,{children:[ee&&v.jsx("div",{role:"presentation",style:{width:le}}),Y,ee&&v.jsx("div",{role:"presentation",className:se(Z.filler,J&&Z["filler--borderBottom"])}),W&&v.jsx(mte,{pinnedRight:X})]})};process.env.NODE_ENV!=="production"&&(V.displayName="getFillers");const z=(q,Y={})=>{const{renderedColumns:K,firstColumnToRender:J}=$(q),X=[];for(let ee=0;ee<K.length;ee+=1){const W=K[ee],le=J+ee,oe=le===0,re=s!==null&&s.field===W.field||oe&&!g?0:-1,ae=a!==null&&a.field===W.field,ne=u.open&&u.field===W.field,te=q?.position,ye=ru(te,W.computedWidth,le,E,k,R),ce=te===pt.RIGHT?K[ee-1]:K[ee+1],Se=ce?a!==null&&a.field===ce.field:!1,we=ee,Be=K.length,Fe=iu(te,we,S.showColumnVerticalBorder,S.pinnedColumnsSectionSeparator),Ye=su(te,we,Be,S.showColumnVerticalBorder,I,S.pinnedColumnsSectionSeparator);X.push(v.jsx(MK,w({},n[W.field],{columnMenuOpen:ne,filterItemsCounter:r[W.field]&&r[W.field].length,headerHeight:F,isDragging:W.field===h,colDef:W,colIndex:le,isResizing:m===W.field,isLast:le===E.length-1,hasFocus:ae,tabIndex:re,pinnedPosition:te,pinnedOffset:ye,isSiblingFocused:Se,showLeftBorder:Fe,showRightBorder:Ye},Y),W.field))}return V(q,X,0)},j=()=>v.jsxs(y0,{role:"row","aria-rowindex":c+1,ownerState:S,className:Z["row--borderBottom"],style:{height:F},children:[H&&z({position:pt.LEFT,renderContext:H},{disableReorder:!0}),z({renderContext:P}),B&&z({position:pt.RIGHT,renderContext:B},{disableReorder:!0,separatorSide:My.Left})]});process.env.NODE_ENV!=="production"&&(j.displayName="getColumnHeadersRow");const G=({depth:q,params:Y})=>{const K=$(Y);if(K.renderedColumns.length===0)return null;const{firstColumnToRender:J,lastColumnToRender:X}=K,ee=p[q],W=t[J].field,le=x[W]?.[q]??null,oe=ee.findIndex(({groupId:Fe,columnFields:Ye})=>Fe===le&&Ye.includes(W)),re=t[X-1].field,ae=x[re]?.[q]??null,ne=ee.findIndex(({groupId:Fe,columnFields:Ye})=>Fe===ae&&Ye.includes(re)),te=ee.slice(oe,ne+1).map(Fe=>w({},Fe,{columnFields:Fe.columnFields.filter(Ye=>d[Ye]!==!1)})).filter(Fe=>Fe.columnFields.length>0),ye=te[0].columnFields.indexOf(W),Se=te[0].columnFields.slice(0,ye).reduce((Fe,Ye)=>{const Ne=D[Ye];return Fe+(Ne.computedWidth??0)},0);let we=J;const Be=te.map(({groupId:Fe,columnFields:Ye},Ne)=>{const Ke=l!==null&&l.depth===q&&Ye.includes(l.field),He=i!==null&&i.depth===q&&Ye.includes(i.field)?0:-1,me={width:Ye.reduce(($e,Ge)=>$e+D[Ge].computedWidth,0),fields:Ye,colIndex:we},Pe=Y.position,ge=ru(Pe,me.width,we,E,k,R);we+=Ye.length;let Te=Ne;return Pe===pt.LEFT&&(Te=we-1),v.jsx(gte,{groupId:Fe,width:me.width,fields:me.fields,colIndex:me.colIndex,depth:q,isLastColumn:Ne===te.length-1,maxDepth:c,height:T,hasFocus:Ke,tabIndex:He,pinnedPosition:Pe,pinnedOffset:ge,showLeftBorder:iu(Pe,Te,S.showColumnVerticalBorder,S.pinnedColumnsSectionSeparator),showRightBorder:su(Pe,Te,te.length,S.showColumnVerticalBorder,I,S.pinnedColumnsSectionSeparator)},Ne)});return V(Y,Be,Se)};return{renderContext:P,leftRenderContext:H,rightRenderContext:B,pinnedColumns:M,visibleColumns:t,columnPositions:E,getFillers:V,getColumnHeadersRow:j,getColumnsToRender:$,getColumnGroupHeadersRows:()=>{if(c===0)return null;const q=[];for(let Y=0;Y<c;Y+=1)q.push(v.jsxs(y0,{role:"row","aria-rowindex":Y+1,ownerState:S,style:{height:T},children:[H&&G({depth:Y,params:{position:pt.LEFT,renderContext:H,maxLastColumn:H.lastColumnIndex}}),G({depth:Y,params:{renderContext:P}}),B&&G({depth:Y,params:{position:pt.RIGHT,renderContext:B,maxLastColumn:B.lastColumnIndex}})]},Y));return q},getPinnedCellOffset:ru,isDragging:!!h,getInnerProps:()=>({role:"rowgroup"})}},bte=["className"],yte=e=>{const{classes:t}=e;return pe({root:["columnHeaders"]},Je,t)},vte=Nr("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),v0=ze(function(t,n){const{className:r}=t,s=ie(t,bte),i=Ie(),a=yte(i);return v.jsx(vte,w({className:se(a.root,r),ownerState:i},s,{role:"presentation",ref:n}))});process.env.NODE_ENV!=="production"&&(v0.displayName="GridBaseColumnHeaders");const Cte=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],C0=ze(function(t,n){const{visibleColumns:r,sortColumnLookup:s,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:l,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:g,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:b}=t,m=ie(t,Cte),{getInnerProps:y,getColumnHeadersRow:C,getColumnGroupHeadersRows:S}=TM({visibleColumns:r,sortColumnLookup:s,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:l,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:g,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:b});return v.jsxs(v0,w({},m,y(),{ref:n,children:[S(),C()]}))});process.env.NODE_ENV!=="production"&&(C0.displayName="GridColumnHeaders"),process.env.NODE_ENV!=="production"&&(C0.propTypes={columnGroupHeaderFocus:o.shape({depth:o.number.isRequired,field:o.string.isRequired}),columnGroupHeaderTabIndexState:o.shape({depth:o.number.isRequired,field:o.string.isRequired}),columnGroupsHeaderStructure:o.arrayOf(o.arrayOf(o.shape({columnFields:o.arrayOf(o.string).isRequired,groupId:o.string}))).isRequired,columnHeaderFocus:o.shape({field:o.string.isRequired}),columnHeaderTabIndexState:o.shape({field:o.string.isRequired}),columnMenuState:o.shape({field:o.string,open:o.bool.isRequired}).isRequired,columnVisibility:o.object.isRequired,filterColumnLookup:o.object.isRequired,hasOtherElementInTabSequence:o.bool.isRequired,headerGroupingMaxDepth:o.number.isRequired,sortColumnLookup:o.object.isRequired,visibleColumns:o.arrayOf(o.object).isRequired});const wte=vr(C0);function Ste(e){return null}function xte(e){return null}const IM=ze(function(t,n){const s=Xe().current.getLocaleText("noResultsOverlayLabel");return v.jsx(rl,w({},t,{ref:n,children:s}))});process.env.NODE_ENV!=="production"&&(IM.displayName="GridNoResultsOverlay");const Pte=()=>pe({root:["bottomContainer"]},Je,{}),Ete=U("div",{slot:"internal",shouldForwardProp:void 0})({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function Tte(e){const t=Pte();return v.jsx(Ete,w({},e,{className:se(t.root,Z["container--bottom"]),role:"presentation"}))}const Ite=w({},bJ,{cell:xY,skeletonCell:OY,columnHeaderFilterIconButton:KT,columnHeaderSortIcon:YT,columnMenu:nu,columnHeaders:wte,detailPanels:Ste,bottomContainer:Tte,footer:Zy,footerRowCount:t0,toolbar:PI,pinnedRows:xte,loadingOverlay:Qy,noResultsOverlay:IM,noRowsOverlay:Jy,noColumnsOverlay:e0,pagination:MI,filterPanel:Ay,columnsPanel:uX,columnsManagement:bI,panel:Ly,row:LZ});class MM{maxListeners=20;warnOnce=!1;events={};on(t,n,r={}){let s=this.events[t];if(s||(s={highPriority:new Map,regular:new Map},this.events[t]=s),r.isFirst?s.highPriority.set(n,!0):s.regular.set(n,!0),process.env.NODE_ENV!=="production"){const i=s.highPriority.size+s.regular.size;i>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${i} ${t} listeners added.`].join(`
413
+ `)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const s=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let a=s.length-1;a>=0;a-=1){const l=s[a];r.highPriority.has(l)&&l.apply(this,n)}for(let a=0;a<i.length;a+=1){const l=i[a];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function s(...i){r.removeListener(t,s),n.apply(r,i)})}}const OM=Symbol("mui.api_private"),Mte=e=>e.isPropagationStopped!==void 0;let kM=0;function Ote(e){const t=e.current?.[OM];if(t)return t;const n={},r={state:n,store:_c.create(n),instanceId:{id:kM}};return kM+=1,r.getPublicApi=()=>e.current,r.register=(s,i)=>{Object.keys(i).forEach(a=>{const l=i[a],c=r[a];if(c?.spying===!0?c.target=l:r[a]=l,s==="public"){const u=e.current,d=u[a];d?.spying===!0?d.target=l:u[a]=l}})},r.register("private",{caches:{},eventManager:new MM}),r}function kte(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[OM]:e.current}}function Dte(e,t){const n=f.useRef(null),r=f.useRef(null);r.current||(r.current=Ote(n)),n.current||(n.current=kte(r));const s=f.useCallback((...a)=>{const[l,c,u={}]=a;if(u.defaultMuiPrevented=!1,Mte(u)&&u.isPropagationStopped())return;const d=t.signature===Mo.DataGridPro||t.signature===Mo.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(l,c,u,d)},[r,t.signature]),i=f.useCallback((a,l,c)=>{r.current.eventManager.on(a,l,c);const u=r.current;return()=>{u.eventManager.removeListener(a,l)}},[r]);return et(r,{subscribeEvent:i,publishEvent:s},"public"),e&&!e.current?.state&&(e.current=n.current),f.useImperativeHandle(e,()=>n.current,[n]),f.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const Fte=(e,t)=>w({},e,{headerFiltering:{enabled:t.headerFilters??!1,editing:null,menuOpen:null}}),Nte=(e,t)=>{const n=On(e,"useGridHeaderFiltering"),r=f.useCallback(p=>{e.current.setState(g=>t.signature==="DataGrid"?g:w({},g,{headerFiltering:{enabled:t.headerFilters??!1,editing:p.editing??null,menuOpen:p.menuOpen??null}}))},[e,t.signature,t.headerFilters]),s=f.useCallback(p=>{n.debug(`Starting edit mode on header filter for field: ${p}`),e.current.setHeaderFilterState({editing:p})},[e,n]),i=f.useCallback(()=>{n.debug("Stopping edit mode on header filter"),e.current.setHeaderFilterState({editing:null})},[e,n]),a=f.useCallback(p=>{n.debug(`Opening header filter menu for field: ${p}`),e.current.setHeaderFilterState({menuOpen:p})},[e,n]),l=f.useCallback(()=>{n.debug("Hiding header filter menu for active field");let p=e.current.state.headerFiltering.menuOpen;if(p){const g=Gr(e),h=Go(e),b=lr(e);if(g[p]||(p=b[0]),h[p]===!1){const m=b.filter(C=>C===p?!0:h[C]!==!1),y=m.indexOf(p);p=m[y+1]||m[y-1]}e.current.setHeaderFilterState({menuOpen:null}),e.current.setColumnHeaderFilterFocus(p)}},[e,n]),c={setHeaderFilterState:r};et(e,{startHeaderFilterEditMode:s,stopHeaderFilterEditMode:i,showHeaderFilterMenu:a,hideHeaderFilterMenu:l},"public"),et(e,c,"private");const d=f.useRef(!0);f.useEffect(()=>{d.current?d.current=!1:e.current.setHeaderFilterState({enabled:t.headerFilters??!1})},[e,t.headerFilters])};class pu{}class Rte{constructor(t){this.operations=t}async execute(t){for(const n of this.operations){const r=n.detectOperation(t);if(r){await n.executeOperation(r,t);return}}yn(["MUI X: The parameters provided to the API method resulted in a no-op.","Consider looking at the documentation at https://mui.com/x/react-data-grid/row-ordering/"],"warning")}}const DM=e=>`auto-generated-row-${e.map(n=>`${n.field}/${n.key}`).join("-")}`,FM=({id:e,tree:t})=>{const n=[];let r=t[e];for(;r.id!==Qe;)n.push({field:r.type==="leaf"?null:r.groupingField,key:r.groupingKey}),r=t[r.parent];return n.reverse(),n},NM=(e,t,n,r,s)=>{if(n!==void 0&&e.depth>=n)return!1;if(s!==void 0)return s;let i;return e.id===Qe?i=!0:r?i=r(e):i=t===-1||t>e.depth,i},RM=(e,t,n,r,s)=>{const i=NM(e,t,n,r,s);return e.childrenExpanded=i,e},Mf=(e,t,n,r)=>{t[e.id]=e,n[e.depth]=(n[e.depth]??0)+1;const s=t[e.parent];if(e.type==="group"||e.type==="leaf"){const i=e.groupingField??"__no_field__",a=e.groupingKey??"__no_key__",l=s.childrenFromPath?.[i];r!==null&&r[s.id]===t[s.id]?s.children=[...s.children,e.id]:s.children.push(e.id),l==null?s.childrenFromPath[i]={[a.toString()]:e.id}:l[a.toString()]=e.id}else e.type==="footer"&&(s.footerId=e.id)},w0=({node:e,tree:t,treeDepths:n})=>{delete t[e.id];const r=e.depth,s=n[r];s===1?delete n[r]:n[r]=s-1;const i=t[e.parent];if(e.type==="footer")t[i.id]=w({},i,{footerId:null});else{const a=e.groupingField??"__no_field__",l=e.groupingKey??"__no_key__",c=i.children.filter(d=>d!==e.id),u=i.childrenFromPath;delete u[a][l.toString()],t[i.id]=w({},i,{children:c,childrenFromPath:u})}},LM=({node:e,updatedNode:t,previousTree:n,tree:r,treeDepths:s})=>{e.children.forEach(a=>{r[a]=w({},r[a],{parent:t.id})}),w0({node:e,tree:r,treeDepths:s});const i=w({},e,t);Mf(i,r,s,n)},$M=({tree:e,filteredRowsLookup:t})=>{if(!t)return{};const n={},r=(i,a)=>{const l=t[i.id]!==!1;i.type==="group"&&i.children.forEach(u=>{const d=e[u];r(d,a&&!!i.childrenExpanded)});const c=l&&a;if(c||(n[i.id]=c),i.type==="group"&&i.footerId!=null){const u=l&&a&&!!i.childrenExpanded;u||(n[i.footerId]=u)}},s=Object.values(e);for(let i=0;i<s.length;i+=1){const a=s[i];a.depth===0&&r(a,!0)}return n};function Lte(e){const t=e;return!t||t instanceof Element&&t.classList.contains(Z.cell)?t:t.closest(`[class*="${Z.cell}"]`)||t}function S0(e,t,n,r){if(e.parent===t.parent&&!n)return r[e.parent].children.findIndex(l=>l===t.id);if(n)return r[t.parent].children.length;const i=r[t.parent].children.findIndex(a=>a===t.id);return i>=0?i:0}const $te=(e,t)=>{const n=[],r=s=>{const i=t[s];i&&(n.push(i),i.type==="group"&&i.children.forEach(r))};return e.children.forEach(r),n},AM=(e,t,n)=>{let r=e;for(;r&&r.id!==Qe;){if(r.id===t.id)return!0;r=n[r.parent]}return!1},Ate=(e,t,n)=>{const r=s=>{const i=t[s];i&&(t[s]=w({},i,{depth:i.depth+n}),i.type==="group"&&i.children.forEach(r))};e.children.forEach(r)};function Vte(e,t){t?t(e):yn(["MUI X: A call to `processRowUpdate()` threw an error which was not handled because `onProcessRowUpdateError()` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError()` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/persistence/."],"error")}class VM{rowsToUpdate=new Map;originalRows=new Map;successfulRowIds=new Set;failedRowIds=new Set;pendingRowUpdates=[];constructor(t,n,r){this.apiRef=t,this.processRowUpdate=n,this.onProcessRowUpdateError=r}queueUpdate(t,n,r){this.originalRows.set(t,n),this.rowsToUpdate.set(t,r)}async executeAll(){const t=Array.from(this.rowsToUpdate.keys());if(t.length===0)return{successful:[],failed:[],updates:[]};const n=async s=>{const i=this.rowsToUpdate.get(s),a=this.originalRows.get(s);try{if(typeof this.processRowUpdate=="function"){const l={rowId:s,previousRow:a,updatedRow:i},c=await this.processRowUpdate(i,a,l);this.pendingRowUpdates.push(c||i),this.successfulRowIds.add(s)}else this.pendingRowUpdates.push(i),this.successfulRowIds.add(s)}catch(l){this.failedRowIds.add(s),Vte(l,this.onProcessRowUpdateError)}},r=t.map(s=>new Promise(i=>{n(s).then(i).catch(i)}));return this.apiRef.current.setLoading(!0),await Promise.all(r),this.apiRef.current.setLoading(!1),{successful:Array.from(this.successfulRowIds),failed:Array.from(this.failedRowIds),updates:this.pendingRowUpdates}}}const js=(e,t)=>{const n=[];let r=e;for(;r&&r.id!==Qe;)(r.type==="leaf"||r.type==="group")&&r.groupingKey!==null&&n.unshift(String(r.groupingKey)),r=t[r.parent];return n};function Of(e){yn(`MUI X: ${e} requires \`setTreeDataPath()\` prop to update row data paths. Please provide a \`setTreeDataPath()\` function to enable this feature.`,"warning")}function kf(e,t){const n=e[t.parent],r=n.children.filter(s=>s!==t.id);r.length===0?e[t.parent]=w({},n,{type:"leaf",children:void 0}):e[t.parent]=w({},n,{children:r})}async function x0(e,t,n){const{apiRef:r,setTreeDataPath:s,processRowUpdate:i,onProcessRowUpdateError:a}=n,l=qn(r),c=e.type==="leaf"?e.groupingKey:null,u=c!==null?[...t,String(c)]:t,d=l[e.id],p=s(u,d),g=new VM(r,i,a);g.queueUpdate(e.id,d,p);const{successful:h,updates:b}=await g.executeAll();return h.length===0?null:b[0]}async function P0(e,t,n,r){const{apiRef:s,setTreeDataPath:i,processRowUpdate:a,onProcessRowUpdateError:l}=r,c=ct(s),u=qn(s),d=$te(e,c);d.unshift(e);const p=t.length,g=new VM(s,a,l);for(const m of d){const y=u[m.id],S=js(m,c).slice(p),x=[...n,...S],E=i(x,y);g.queueUpdate(m.id,y,E)}const{successful:h,updates:b}=await g.executeAll();return h.length===0?[]:b}function Df(e,t,n,r){if(e[t.id]=w({},t,{parent:n,depth:r}),t.type==="group"){const s=r-t.depth;Ate(t,e,s)}}class _te extends pu{operationType="same-parent-swap";detectOperation(t){if(t.dropPosition==="inside")return null;const{sourceRowId:n,placeholderIndex:r,sortedFilteredRowIds:s,sortedFilteredRowIndexLookup:i,rowTree:a,apiRef:l}=t,c=St(l,n);if(!c||c.type==="footer")return null;let u=r;const d=i[n];u===s.length&&s.length>0&&(u-=1);let p=St(l,s[u]);if(r>d&&c.parent===p.parent){if(u=r-1,p=St(l,s[u]),p&&p.depth!==c.depth)for(;p.depth>c.depth&&u>=0;)u-=1,p=St(l,s[u]);if(u===-1)return null}let g=!1;if(!p)if(r>=s.length&&s.length>0)p=St(l,s[s.length-1]),g=!0;else return null;let h=p;if(p.type==="group"&&c.parent!==p.parent&&c.depth>p.depth){let y=u-1;for(;y>=0;){const C=St(l,s[y]);if(C&&C.depth<c.depth)return null;if(C&&C.depth===c.depth){u=y,h=C;break}y-=1}}if(t.dropPosition==="below"&&c.parent!==h.parent){const y=r-1,C=St(l,s[y]);C&&C.parent===c.parent&&(h=C,g=!0)}if(c.parent!==h.parent)return null;const m=S0(c,h,g,a);return p=h,{sourceNode:c,targetNode:p,actualTargetIndex:m,isLastChild:g,operationType:this.operationType}}executeOperation(t,n){const{sourceNode:r,actualTargetIndex:s}=t,{apiRef:i,sourceRowId:a}=n;i.current.setState(l=>{const c=ct(i)[r.parent],u=[...c.children],d=u.findIndex(p=>p===a);return d===-1||s===-1||d===s?l:(u.splice(s,0,u.splice(d,1)[0]),w({},l,{rows:w({},l.rows,{tree:w({},l.rows.tree,{[r.parent]:w({},c,{children:u})})})}))}),i.current.publishEvent("rowsSet")}}class Bte extends pu{operationType="cross-parent-leaf";detectOperation(t){if(t.dropPosition==="inside")return null;const{sourceRowId:n,placeholderIndex:r,sortedFilteredRowIds:s,rowTree:i,apiRef:a,setTreeDataPath:l}=t,c=St(a,n);if(!c||c.type!=="leaf")return null;l||Of("Cross-parent reordering");let u=r;if(u===s.length&&s.length>0&&(u=s.length-1),u<0)return null;const d=St(a,s[u]);if(!d||c.parent===d.parent)return null;const p=S0(c,d,r>=s.length,i);return{sourceNode:c,targetNode:d,actualTargetIndex:p,isLastChild:r>=s.length,operationType:this.operationType}}async executeOperation(t,n){const{sourceNode:r,targetNode:s,actualTargetIndex:i}=t,{apiRef:a}=n,l=ct(a),c=l[s.parent],u=js(c,l),d=await x0(r,u,n);d&&(a.current.setState(p=>{const g=w({},p.rows.tree);kf(g,r);const h=g[s.parent],b=[...h.children];b.splice(i,0,r.id),g[s.parent]=w({},h,{children:b});const m=g[s.parent];return Df(g,r,s.parent,m.depth+1),w({},p,{rows:w({},p.rows,{tree:g})})}),a.current.updateRows([d]),a.current.publishEvent("rowsSet"))}}class Hte extends pu{operationType="drop-on-leaf";detectOperation(t){const{sourceRowId:n,dropPosition:r,placeholderIndex:s,sortedFilteredRowIds:i,apiRef:a,setTreeDataPath:l}=t;if(r!=="inside")return null;const c=St(a,n);if(!c||c.type==="footer")return null;l||Of("Drop on leaf reordering");let u=s;if(u===i.length&&i.length>0&&(u=i.length-1),u<0)return null;const d=St(a,i[u]);return!d||d.type!=="leaf"?null:{sourceNode:c,targetNode:d,actualTargetIndex:0,isLastChild:!1,operationType:this.operationType}}async executeOperation(t,n){const{sourceNode:r,targetNode:s}=t,{apiRef:i}=n,a=ct(i),l=js(s,a);let c=[];if(r.type==="leaf"){const u=await x0(r,l,n);if(!u)return;c.push(u)}else{const u=a[r.parent],d=js(u,a);if(c=await P0(r,d,l,n),c.length===0)return}i.current.setState(u=>{const d=w({},u.rows.tree);return kf(d,r),d[s.id]=w({},s,{type:"group",children:[r.id],childrenFromPath:{},groupingField:null,isAutoGenerated:!1,childrenExpanded:!0}),Df(d,r,s.id,s.depth+1),w({},u,{rows:w({},u.rows,{tree:d})})}),i.current.updateRows(c),i.current.publishEvent("rowsSet")}}class zte extends pu{operationType="drop-on-group";detectOperation(t){const{sourceRowId:n,dropPosition:r,placeholderIndex:s,sortedFilteredRowIds:i,apiRef:a,setTreeDataPath:l,rowTree:c}=t;if(r!=="inside")return null;const u=St(a,n);if(!u||u.type==="footer")return null;l||Of("Drop on group reordering");let d=s;if(d===i.length&&i.length>0&&(d=i.length-1),d<0)return null;const p=St(a,i[d]);return!p||p.type!=="group"||AM(p,u,c)?null:{sourceNode:u,targetNode:p,actualTargetIndex:0,isLastChild:!1,operationType:this.operationType}}async executeOperation(t,n){const{sourceNode:r,targetNode:s}=t,{apiRef:i}=n,a=ct(i),l=js(s,a);let c=[];if(r.type==="leaf"){const u=await x0(r,l,n);if(!u)return;c.push(u)}else{const u=a[r.parent],d=js(u,a);if(c=await P0(r,d,l,n),c.length===0)return}i.current.setState(u=>{const d=w({},u.rows.tree);kf(d,r);const p=d[s.id],g=[r.id,...p.children];return d[s.id]=w({},p,{children:g}),Df(d,r,s.id,s.depth+1),w({},u,{rows:w({},u.rows,{tree:d})})}),i.current.updateRows(c),i.current.publishEvent("rowsSet")}}class jte extends pu{operationType="cross-parent-group";detectOperation(t){if(t.dropPosition==="inside")return null;const{sourceRowId:n,placeholderIndex:r,sortedFilteredRowIds:s,rowTree:i,apiRef:a,setTreeDataPath:l}=t,c=St(a,n);if(!c||c.type!=="group")return null;l||Of("Cross-parent reordering");let u=r;if(u===s.length&&s.length>0&&(u=s.length-1),u<0)return null;const d=St(a,s[u]);if(!d||c.parent===d.parent||AM(d,c,i))return null;const p=S0(c,d,r>=s.length,i);return{sourceNode:c,targetNode:d,actualTargetIndex:p,isLastChild:r>=s.length,operationType:this.operationType}}async executeOperation(t,n){const{sourceNode:r,targetNode:s,actualTargetIndex:i}=t,{apiRef:a}=n,l=ct(a),c=l[s.parent],u=js(c,l),d=l[r.parent],p=js(d,l),g=await P0(r,p,u,n);g.length>0&&(a.current.setState(h=>{const b=w({},h.rows.tree);kf(b,r);const m=b[s.parent],y=[...m.children];y.splice(i,0,r.id),b[s.parent]=w({},m,{children:y});const S=b[s.parent].depth+1;return Df(b,r,s.parent,S),w({},h,{rows:w({},h.rows,{tree:b})})}),a.current.updateRows(g),a.current.publishEvent("rowsSet"))}}const Gte=new Rte([new _te,new Bte,new Hte,new zte,new jte]),Wte=(e,t)=>{const{processRowUpdate:n,onProcessRowUpdateError:r,setTreeDataPath:s}=t,{setRowIndex:i,setRowPosition:a}=wJ(e),l=ue(e,Ls)===1,c=f.useCallback(async(d,p,g)=>{const h=Wr(e),b=$i(e),m=ct(e),y=St(e,d),C=St(e,p);if(!y)throw new Error(`MUI X: No row with id #${d} found.`);if(!C)throw new Error(`MUI X: No row with id #${p} found.`);if(y.type==="footer")throw new Error("MUI X: The row reordering do not support reordering of footer rows.");const S=b[p];if(S===void 0)throw new Error(`MUI X: Target row with id #${p} not found in current view.`);const x=g==="below"?S+1:S,E={sourceRowId:d,dropPosition:g,placeholderIndex:x,sortedFilteredRowIds:h,sortedFilteredRowIndexLookup:b,rowTree:m,apiRef:e,processRowUpdate:n,onProcessRowUpdateError:r,setTreeDataPath:s};return Gte.execute(E)},[e,n,r,s]),u=f.useCallback(async()=>{throw new Error("MUI X: `setRowIndex()` is not supported for tree data. Use `setRowPosition()` instead.")},[]);return{setRowIndex:l?i:u,setRowPosition:l?a:c}},Ute=(e,t)=>{const n=t.rowsLoadingMode==="client"&&!!t.onRowsScrollEnd,r=fe(()=>{const s=ln(e),i=ds(e),a=e.current.getViewportPageSize(),l={visibleColumns:s,viewportPageSize:a,visibleRowsCount:i.rows.length};e.current.publishEvent("rowsScrollEnd",l)});Mt(e,"rowsScrollEnd",t.onRowsScrollEnd),xe(e,"rowsScrollEndIntersection",vn(n,r))},qte=Ht(e=>e.columnReorder),_M=De(qte,e=>e.dragCol),BM="left",HM="right",Yte=(e,t)=>e.x<=t.x?HM:BM,Kte=(e,t)=>e.x!==t.x||e.y!==t.y,Xte=e=>{const{classes:t}=e;return pe({columnHeaderDragging:["columnHeader--dragging"]},Je,t)},Zte=e=>w({},e,{columnReorder:{dragCol:""}}),Qte=(e,t)=>{const n=On(e,"useGridColumnReorder"),r=f.useRef(null),s=f.useRef({x:0,y:0}),i=f.useRef(null),a=f.useRef({}),l=f.useRef(void 0),c={classes:t.classes},u=Xte(c),d=_t();f.useEffect(()=>()=>{clearTimeout(l.current)},[]);const p=f.useCallback((m,y)=>{const C=_M(e);if(!(t.disableColumnReorder||!C)){if(n.debug("End dragging col"),y.preventDefault(),y.stopPropagation(),clearTimeout(l.current),r.current.classList.contains(u.columnHeaderDragging)&&r.current.classList.remove(u.columnHeaderDragging),r.current=null,y.dataTransfer.dropEffect==="none"&&!t.keepColumnPositionIfDraggedOutside)e.current.setColumnIndex(C,i.current),i.current=null;else{const S={column:e.current.getColumn(C),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(C),oldIndex:i.current};e.current.publishEvent("columnOrderChange",S)}e.current.setState(S=>w({},S,{columnReorder:w({},S.columnReorder,{dragCol:""})}))}},[e,t.disableColumnReorder,t.keepColumnPositionIfDraggedOutside,n,u.columnHeaderDragging]),g=f.useCallback((m,y)=>{if(t.disableColumnReorder||m.colDef.disableReorder)return;n.debug(`Start dragging col ${m.field}`),y.stopPropagation(),r.current=y.currentTarget,r.current.classList.add(u.columnHeaderDragging);const C=O=>{r.current.removeEventListener("dragend",C),e.current.publishEvent("columnHeaderDragEndNative",m,O)};r.current.addEventListener("dragend",C),y.dataTransfer&&(y.dataTransfer.effectAllowed="move"),e.current.setState(O=>w({},O,{columnReorder:w({},O.columnReorder,{dragCol:m.field})})),l.current=setTimeout(()=>{r.current.classList.remove(u.columnHeaderDragging)}),i.current=e.current.getColumnIndex(m.field,!1);const S=e.current.getColumnGroupPath(m.field),x=i.current,E=e.current.getAllColumns(),P=e.current.getAllGroupDetails(),M=O=>{const k=E[O].field;return e.current.getColumnGroupPath(k)};let D=null;S.forEach(O=>{P[O]?.freeReordering||(x>0&&M(x-1).includes(O)||x+1<E.length&&M(x+1).includes(O))&&(D=O)}),a.current={};for(let O=0;O<E.length;O+=1){const k=O<=x?O-1:O,I=O<x?O:O+1;if(D!==null){let F=!1;(k>=0&&M(k).includes(D)||I<E.length&&M(I).includes(D))&&(F=!0),F||(a.current[O]=!0)}k>=0&&I<E.length&&M(I).forEach(F=>{M(k).includes(F)&&(S.includes(F)||P[F]?.freeReordering||(a.current[O]=!0))})}},[t.disableColumnReorder,u.columnHeaderDragging,n,e]),h=f.useCallback((m,y)=>{y.preventDefault(),y.stopPropagation()},[]),b=f.useCallback((m,y)=>{const C=_M(e);if(!C)return;n.debug(`Dragging over col ${m.field}`),y.preventDefault(),y.stopPropagation();const S={x:y.clientX,y:y.clientY};if(m.field!==C&&Kte(s.current,S)){const x=e.current.getColumnIndex(m.field,!1),E=e.current.getColumnIndex(m.field,!0),P=e.current.getColumn(m.field),M=e.current.getColumnIndex(C,!1),D=e.current.getVisibleColumns(),O=e.current.getAllColumns(),k=Yte(s.current,S),I=k===BM&&(d?M<x:x<M),F=k===HM&&(d?x<M:M<x);if(I||F){let T,R=0;if(P.disableReorder?I?T=E>0&&!D[E-1].disableReorder:T=E<D.length-1&&!D[E+1].disableReorder:T=!0,a.current[x]){let L,N=x+R;if(I)for(L=E>0?D[E-1].field:null;N>0&&O[N].field!==L&&a.current[N];)R-=1,N=x+R;else for(L=E+1<D.length?D[E+1].field:null;N<O.length-1&&O[N].field!==L&&a.current[N];)R+=1,N=x+R;(a.current[N]||O[N].field===L)&&(T=!1)}e.current.unstable_applyPipeProcessors("canBeReordered",T,{targetIndex:E})&&e.current.setColumnIndex(C,x+R)}s.current=S}},[e,n,d]);f.useEffect(()=>{if(!t.keepColumnPositionIfDraggedOutside)return()=>{};const m=Bt(e.current.rootElementRef.current),y=C=>{C.dataTransfer&&(C.preventDefault(),C.dataTransfer.dropEffect="move")};return m.addEventListener("dragover",y),()=>{m.removeEventListener("dragover",y)}},[e,t.keepColumnPositionIfDraggedOutside]),xe(e,"columnHeaderDragStart",g),xe(e,"columnHeaderDragEnter",h),xe(e,"columnHeaderDragOver",b),xe(e,"columnHeaderDragEndNative",p),xe(e,"cellDragEnter",h),xe(e,"cellDragOver",b),Mt(e,"columnOrderChange",t.onColumnOrderChange)},zM=w({},fo,{type:"custom",sortable:!1,filterable:!1,disableColumnMenu:!0,disableReorder:!0,align:"left",width:200,valueGetter:(e,t,n,r)=>{const s=ho(r,t),i=St(r,s);return i?.type==="group"||i?.type==="leaf"?i.groupingKey:void 0}}),Ff={field:zb,editable:!1,groupable:!1};class Jte{constructor(t){this.rules=t}validate(t){for(const n of this.rules)if(n.applies(t)&&n.isInvalid(t))return!1;return!0}}const Ui={isGroupToGroup:e=>e.sourceNode.type==="group"&&e.targetNode.type==="group",isLeafToLeaf:e=>e.sourceNode.type==="leaf"&&e.targetNode.type==="leaf",isLeafToGroup:e=>e.sourceNode.type==="leaf"&&e.targetNode.type==="group",isGroupToLeaf:e=>e.sourceNode.type==="group"&&e.targetNode.type==="leaf",isDropAbove:e=>e.dropPosition==="above",isDropBelow:e=>e.dropPosition==="below",sameDepth:e=>e.sourceNode.depth===e.targetNode.depth,sourceDepthGreater:e=>e.sourceNode.depth>e.targetNode.depth,targetDepthIsSourceMinusOne:e=>e.targetNode.depth===e.sourceNode.depth-1,sameParent:e=>e.sourceNode.parent===e.targetNode.parent,targetGroupExpanded:e=>(e.targetNode.type==="group"&&e.targetNode.childrenExpanded)??!1,targetGroupCollapsed:e=>e.targetNode.type==="group"&&!e.targetNode.childrenExpanded,hasPrevNode:e=>e.prevNode!==null,hasNextNode:e=>e.nextNode!==null,prevIsLeaf:e=>e.prevNode?.type==="leaf",prevIsGroup:e=>e.prevNode?.type==="group",nextIsLeaf:e=>e.nextNode?.type==="leaf",nextIsGroup:e=>e.nextNode?.type==="group",prevDepthEquals:(e,t)=>e.prevNode?.depth===t,prevDepthEqualsSource:e=>e.prevNode?.depth===e.sourceNode.depth,prevBelongsToSource:e=>{if(!e.prevNode)return!1;let t=e.prevNode.parent;for(;t;){if(t===e.sourceNode.id)return!0;const n=ct(e.apiRef)[t];if(!n)break;t=n.parent}return!1},isAdjacentPosition:e=>{const t=$i(e.apiRef),n=t[e.sourceNode.id],r=t[e.targetNode.id],s=e.dropPosition;return s==="above"&&r===n+1||s==="below"&&r===n-1},targetFirstChildIsGroupWithSourceDepth:e=>{if(e.targetNode.type!=="group")return!1;const t=ct(e.apiRef),n=e.targetNode,r=n.children?.[0]?t[n.children[0]]:null;return r?.type==="group"&&r.depth===e.sourceNode.depth},targetFirstChildDepthEqualsSource:e=>{if(e.targetNode.type!=="group")return!1;const t=ct(e.apiRef),n=e.targetNode,r=n.children?.[0]?t[n.children[0]]:null;return r?r.depth===e.sourceNode.depth:!1}},ene=[{name:"same-position",applies:e=>e.sourceNode.id===e.targetNode.id,isInvalid:()=>!0,message:"Source and target are the same"},{name:"adjacent-position",applies:e=>Ui.isAdjacentPosition(e),isInvalid:()=>!0,message:"Source and target are adjacent"},{name:"to-descendent",applies:e=>Ui.isGroupToLeaf(e)||Ui.isGroupToGroup(e),isInvalid:e=>{let t=e.targetNode;const n=ct(e.apiRef);for(;t.parent;)if(t=n[t.parent],t.id===e.sourceNode.id)return!0;return!1},message:"Cannot drop group on one of its descendents"},{name:"group-to-group-above-leaf-belongs-to-source",applies:e=>Ui.isGroupToGroup(e)&&Ui.isDropAbove(e)&&Ui.prevIsLeaf(e),isInvalid:Ui.prevBelongsToSource,message:"Previous leaf belongs to source group or its descendants"}],tne=new Jte(ene),nne=(e,t)=>{const n=f.useCallback((i,a)=>{if(e.current.getCellParams(i.id,i.field).colDef.field===zb&&(a.key===" "||a.key==="Enter")&&!a.shiftKey){if(i.rowNode.type!=="group")return;if(t.dataSource&&!i.rowNode.childrenExpanded){e.current.dataSource.fetchRows(i.id);return}e.current.setRowChildrenExpansion(i.id,!i.rowNode.childrenExpanded)}},[e,t.dataSource]),r=t.isValidRowReorder,s=f.useCallback((i,{sourceRowId:a,targetRowId:l,dropPosition:c,dragDirection:u})=>{if(Ls(e)===1||!t.treeData)return i;const d=$i(e),p=Wr(e),g=ct(e),h=d[l],b=g[a],m=g[l],y=h>0?g[p[h-1]]:null,C=h<p.length-1?g[p[h+1]]:null;if(!b||!m)return!1;const S={apiRef:e,sourceNode:b,targetNode:m,prevNode:y,nextNode:C,dropPosition:c,dragDirection:u};let x=tne.validate(S);return x&&r&&(x=r(S)),x},[e,t.treeData,r]);ht(e,"isRowReorderValid",s),xe(e,"cellKeyDown",n)};let eo=(function(e){return e.Default="tree-data",e.DataSource="tree-data-source",e})({});const one=e=>{const{apiRef:t,rowTree:n,disableChildrenFiltering:r,isRowMatchingFilters:s}=e,i={},a={},l={},c={},u={passingFilterItems:null,passingQuickFilterValues:null},d=(g,h,b)=>{const m=r&&g.depth>0;let y;if(m)y=null;else if(!s||g.type==="footer")y=!0;else{const E=t.current.getRow(g.id);s(E,void 0,u),y=nE([u.passingFilterItems],[u.passingQuickFilterValues],e.filterModel,e.filterValueGetter,e.apiRef,c)}let C=0,S=0;g.type==="group"&&g.children.forEach(E=>{const P=n[E],M=d(P,y??h,b&&!!g.childrenExpanded);S+=M,M>0&&(C+=1)});let x;switch(y){case!0:{x=!0;break}case!1:{x=S>0;break}default:{x=h;break}}return x||(i[g.id]=!1),x?(a[g.id]=C,l[g.id]=S,g.type==="footer"?S:S+1):0},p=Object.values(n);for(let g=0;g<p.length;g+=1){const h=p[g];h.depth===0&&d(h,!0,!0)}return{filteredRowsLookup:i,filteredChildrenCountLookup:a,filteredDescendantCountLookup:l}},Oo=Ie,E0=Xe,rne=e=>{const{classes:t}=e;return pe({root:["treeDataGroupingCell"],toggle:["treeDataGroupingCellToggle"]},Je,t)};function jM(e){const{id:t,field:n,formattedValue:r,rowNode:s,hideDescendantCount:i,offsetMultiplier:a=2}=e,l=Oo(),c=E0(),u=rne(l),p=ue(c,SW)[s.id]??0,g=s.childrenExpanded?l.slots.treeDataCollapseIcon:l.slots.treeDataExpandIcon,h=b=>{c.current.setRowChildrenExpansion(t,!s.childrenExpanded),c.current.setCellFocus(t,n),b.stopPropagation()};return v.jsxs("div",{className:u.root,style:{marginLeft:Ee.spacing(s.depth*a)},children:[v.jsx("div",{className:u.toggle,children:p>0&&v.jsx(l.slots.baseIconButton,w({size:"small",onClick:h,tabIndex:-1,"aria-label":s.childrenExpanded?c.current.getLocaleText("treeDataCollapse"):c.current.getLocaleText("treeDataExpand")},l?.slotProps?.baseIconButton,{children:v.jsx(g,{fontSize:"inherit"})}))}),v.jsxs("span",{children:[r===void 0?s.groupingKey:r,!i&&p>0?` (${p})`:""]})]})}process.env.NODE_ENV!=="production"&&(jM.propTypes={api:o.object.isRequired,cellMode:o.oneOf(["edit","view"]).isRequired,colDef:o.object.isRequired,field:o.string.isRequired,formattedValue:o.any,hasFocus:o.bool.isRequired,hideDescendantCount:o.bool,id:o.oneOfType([o.number,o.string]).isRequired,isEditable:o.bool,offsetMultiplier:o.number,row:o.any.isRequired,rowNode:o.object.isRequired,tabIndex:o.oneOf([-1,0]).isRequired,value:o.any});function GM(e){const{colDef:t,onClick:n}=e,r=E0(),s=Oo(),i=_t(),a=f.useCallback(p=>g=>{r.current.pinColumn(t.field,p),n(g)},[r,t.field,n]),l=p=>{r.current.unpinColumn(t.field),n(p)},c=v.jsx(s.slots.baseMenuItem,{onClick:a(Mn.LEFT),iconStart:v.jsx(s.slots.columnMenuPinLeftIcon,{fontSize:"small"}),children:r.current.getLocaleText("pinToLeft")}),u=v.jsx(s.slots.baseMenuItem,{onClick:a(Mn.RIGHT),iconStart:v.jsx(s.slots.columnMenuPinRightIcon,{fontSize:"small"}),children:r.current.getLocaleText("pinToRight")});if(!t)return null;const d=r.current.isColumnPinned(t.field);if(d){const p=d===Mn.RIGHT?Mn.LEFT:Mn.RIGHT,g=p===Mn.RIGHT?"pinToRight":"pinToLeft",h=d===Mn.RIGHT?s.slots.columnMenuPinLeftIcon:s.slots.columnMenuPinRightIcon;return v.jsxs(f.Fragment,{children:[v.jsx(s.slots.baseMenuItem,{onClick:a(p),iconStart:v.jsx(h,{fontSize:"small"}),children:r.current.getLocaleText(g)}),v.jsx(s.slots.baseMenuItem,{onClick:l,iconStart:v.jsx("span",{}),children:r.current.getLocaleText("unpin")})]})}return i?v.jsxs(f.Fragment,{children:[u,c]}):v.jsxs(f.Fragment,{children:[c,u]})}process.env.NODE_ENV!=="production"&&(GM.propTypes={colDef:o.object.isRequired,onClick:o.func.isRequired});const T0=Ht(e=>e.detailPanel),Gs=De(T0,e=>e.expandedRowIds),Nf=De(T0,e=>e.contentCache),I0=Pt(T0,e=>e.heightCache),sne=e=>{const{classes:t,isExpanded:n}=e;return pe({root:["detailPanelToggleCell",n&&"detailPanelToggleCell--expanded"]},Je,t)},ine=De(Gs,(e,t)=>e.has(t));function WM(e){const{id:t,row:n,api:r}=e,s=r.getRowId(n),i=ue({current:r},ine,s),a=Oo(),l=E0(),c={classes:a.classes,isExpanded:i},u=sne(c),d=ue(l,Nf),p=f.isValidElement(d[t]),g=i?a.slots.detailPanelCollapseIcon:a.slots.detailPanelExpandIcon;return v.jsx(a.slots.baseIconButton,w({size:"small",tabIndex:-1,disabled:!p,className:u.root,"aria-expanded":i,"aria-label":i?l.current.getLocaleText("collapseDetailPanel"):l.current.getLocaleText("expandDetailPanel")},a.slotProps?.baseIconButton,{children:v.jsx(g,{fontSize:"inherit"})}))}process.env.NODE_ENV!=="production"&&(WM.propTypes={api:o.object.isRequired,cellMode:o.oneOf(["edit","view"]).isRequired,colDef:o.object.isRequired,field:o.string.isRequired,formattedValue:o.any,hasFocus:o.bool.isRequired,id:o.oneOfType([o.number,o.string]).isRequired,isEditable:o.bool,row:o.any.isRequired,rowNode:o.object.isRequired,tabIndex:o.oneOf([-1,0]).isRequired,value:o.any});const ane=e=>{const{isDraggable:t,classes:n}=e;return pe({root:["rowReorderCell",t&&"rowReorderCell--draggable"],placeholder:["rowReorderCellPlaceholder"],icon:["rowReorderIcon"]},Je,n)},lne=U("svg",{name:"MuiDataGrid",slot:"RowReorderIcon"})({color:Ee.colors.foreground.muted});function UM(e){const t=Xe(),n=Oo(),r=ue(t,Bn),s=ue(t,kn),i=e.row.__reorder__||(e.rowNode.type==="group"?e.rowNode.groupingKey??e.id:e.id),a=f.useRef(null),l=f.useRef(null),c=n.isRowReorderable,u=f.useMemo(()=>!!n.rowReordering&&!r.length&&Object.keys(s).length===0?c?c({row:e.row,rowNode:e.rowNode}):!0:!1,[n.rowReordering,c,r,s,e.row,e.rowNode]),d={isDraggable:u,classes:n.classes},p=ane(d),g=f.useCallback((S,x)=>E=>{il(E)||t.current.getRow(e.id)&&(t.current.publishEvent(S,t.current.getRowParams(e.id),E),x&&x(E))},[t,e.id]),h=f.useCallback(()=>{t.current.rootElementRef?.current?.classList.add(Z["root--disableUserSelection"])},[t]),b=f.useCallback(()=>{t.current.rootElementRef?.current?.classList.remove(Z["root--disableUserSelection"])},[t]),m=f.useCallback(S=>{b(),t.current.getRow(e.id)&&t.current.publishEvent("rowDragEnd",t.current.getRowParams(e.id),S),l.current.removeEventListener("dragend",m),l.current=null},[t,e.id,b]),y=f.useCallback(S=>{a.current&&(g("rowDragStart")(S),a.current.addEventListener("dragend",m),l.current=a.current)},[g,m]),C=u?{onDragStart:y,onDragOver:g("rowDragOver"),onMouseDown:h,onMouseUp:b}:null;return e.rowNode.type==="footer"?null:v.jsxs("div",w({ref:a,className:p.root,draggable:u},C,{children:[v.jsx(lne,{as:n.slots.rowReorderIcon,ownerState:d,className:p.icon,fontSize:"small"}),v.jsx("div",{className:p.placeholder,children:i})]}))}process.env.NODE_ENV!=="production"&&(UM.propTypes={api:o.object.isRequired,cellMode:o.oneOf(["edit","view"]).isRequired,colDef:o.object.isRequired,field:o.string.isRequired,formattedValue:o.any,hasFocus:o.bool.isRequired,id:o.oneOfType([o.number,o.string]).isRequired,isEditable:o.bool,row:o.any.isRequired,rowNode:o.object.isRequired,tabIndex:o.oneOf([-1,0]).isRequired,value:o.any});const qM=e=>e.rowNode.type==="footer"||e.rowNode.type==="pinnedRow"?null:v.jsx(UM,w({},e));process.env.NODE_ENV!=="production"&&(qM.displayName="renderRowReorderCell");const cne=Dt(v.jsx("g",{transform:"rotate(-30 15 10)",children:v.jsx("path",{d:"M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",fillRule:"evenodd"})}),"PushPinRight"),une=Dt(v.jsx("g",{transform:"rotate(30 8 12)",children:v.jsx("path",{d:"M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",fillRule:"evenodd"})}),"PushPinLeft"),dne=["operators","item","field","buttonRef","headerFilterMenuRef","disabled","showClearItem","clearFilterItem"];function YM(e){const{operators:t,item:n,field:r,buttonRef:s,headerFilterMenuRef:i,disabled:a=!1,showClearItem:l,clearFilterItem:c}=e,u=ie(e,dne),d=at(),p=at(),g=Oo(),h=Xe(),m=!!(ue(h,ny)===r&&i.current),y=x=>{i.current=x.currentTarget,h.current.showHeaderFilterMenu(r)};if(!g.slots.headerFilterMenu)return null;const C=h.current.getLocaleText("filterPanelOperator"),S=C?String(C):void 0;return v.jsxs(f.Fragment,{children:[v.jsx(g.slots.baseIconButton,w({id:d,ref:s,"aria-label":S,title:S,"aria-controls":p,"aria-expanded":m?"true":void 0,"aria-haspopup":"true",tabIndex:-1,size:"small",onClick:y,disabled:a},g.slotProps?.baseIconButton,{children:v.jsx(g.slots.baseBadge,{color:"primary",variant:"dot",badgeContent:l?1:0,children:v.jsx(g.slots.openFilterButtonIcon,{fontSize:"inherit"})})})),v.jsx(g.slots.headerFilterMenu,w({field:r,open:m,item:n,target:i.current,operators:t,labelledBy:d,id:p,clearFilterItem:c,showClearItem:l},u))]})}process.env.NODE_ENV!=="production"&&(YM.propTypes={applyFilterChanges:o.func.isRequired,buttonRef:Ft,clearFilterItem:o.func,disabled:o.bool,field:o.string.isRequired,headerFilterMenuRef:o.shape({current:o.object}).isRequired,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}).isRequired,operators:o.arrayOf(o.shape({getApplyFilterFn:o.func.isRequired,getValueAsString:o.func,headerLabel:o.string,InputComponent:o.elementType,InputComponentProps:o.shape({apiRef:o.shape({current:o.object.isRequired}),applyValue:o.func,className:o.string,clearButton:o.node,disabled:o.bool,focusElementRef:o.oneOfType([o.func,o.shape({current:o.any.isRequired})]),headerFilterMenu:o.node,inputRef:o.oneOfType([o.func,o.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:o.bool,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}),onBlur:o.func,onFocus:o.func,slotProps:o.object,tabIndex:o.number}),label:o.string,requiresFilterValue:o.bool,value:o.string.isRequired})).isRequired,showClearItem:o.bool});function pne(e){const t=Oo();return v.jsx(t.slots.baseIconButton,w({tabIndex:-1,"aria-label":"Clear filter",size:"small"},t.slotProps?.baseIconButton,e,{children:v.jsx(t.slots.columnMenuClearIcon,{fontSize:"inherit"})}))}const fne=["colIndex","height","hasFocus","width","headerClassName","colDef","item","headerFilterMenuRef","InputComponentProps","showClearIcon","pinnedPosition","pinnedOffset","style","showLeftBorder","showRightBorder"],hne=U(Qn,{name:"MuiDataGrid",slot:"ColumnHeaderFilterInput"})({flex:1,marginRight:Ee.spacing(.5),marginBottom:Ee.spacing(-.25),'& input[type="date"], & input[type="datetime-local"]':{'&[value=""]:not(:focus)':{color:"transparent"}},[`& .${_n.input}`]:{fontSize:"14px"},[`.${Z["root--densityCompact"]} & .${_n.input}`]:{paddingTop:Ee.spacing(.25),paddingBottom:Ee.spacing(.25),height:20}}),gne=U("span",{name:"MuiDataGrid",slot:"ColumnHeaderFilterOperatorLabel"})({flex:1,marginRight:Ee.spacing(.5),color:Ee.colors.foreground.muted,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}),mne=e=>{const{colDef:t,classes:n,showRightBorder:r,showLeftBorder:s,pinnedPosition:i}=e,a={root:["columnHeader","columnHeader--filter",t.headerAlign&&`columnHeader--align${de(t.headerAlign)}`,"withBorderColor",r&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder",i===pt.LEFT&&"columnHeader--pinnedLeft",i===pt.RIGHT&&"columnHeader--pinnedRight"],input:["columnHeaderFilterInput"],operatorLabel:["columnHeaderFilterOperatorLabel"]};return pe(a,Je,n)},bne={string:Qn,number:Qn,date:ls,dateTime:ls,boolean:jb,singleSelect:af,actions:null,custom:null,longText:Qn},M0=ze((e,t)=>{const{colIndex:n,height:r,hasFocus:s,width:i,headerClassName:a,colDef:l,item:c,headerFilterMenuRef:u,InputComponentProps:d,showClearIcon:p=!1,pinnedPosition:g,pinnedOffset:h,style:b,showLeftBorder:m,showRightBorder:y}=e,C=ie(e,fne),S=Hn(),x=_t(),E=ue(S,ja),P=Oo(),M=f.useRef(null),D=tt(t,M),O=f.useRef(null),k=f.useRef(null),F=ue(S,WE)===l.field,R=ue(S,ny)===l.field,A=f.useMemo(()=>l.filterOperators?l.filterOperators.filter(oe=>oe.value!=="isAnyOf"):[],[l.filterOperators]),L=ue(S,cn),N=ue(S,XP),_=f.useMemo(()=>{if(!L?.items.length)return!1;const oe=L.items.find(re=>re.field===l.field);return oe?!N[oe.field]:!1},[l.field,L,N]),H=f.useMemo(()=>A.find(oe=>oe.value===c.operator)??A[0],[c.operator,A]),B=l.filterable||_?H.InputComponent??bne[l.type]:null,$=f.useCallback(()=>{S.current.deleteFilterItem(c)},[S,c]);let V;l.renderHeaderFilter&&(V=l.renderHeaderFilter(w({},e,{inputRef:O}))),f.useLayoutEffect(()=>{if(s&&!R){let oe=M.current.querySelector('[tabindex="0"]');F&&B&&(oe=O.current);const re=oe||M.current,ae=S.current.getScrollPosition();re?.focus(),S.current.scroll(ae)}},[B,S,s,F,R]);const z=f.useCallback(oe=>{if(!(R||Ri(oe.key)||_))switch(oe.key){case"Escape":F&&S.current.stopHeaderFilterEditMode();break;case"Enter":if(F&&!oe.defaultPrevented){S.current.stopHeaderFilterEditMode();break}if(oe.metaKey||oe.ctrlKey){u.current=k.current,S.current.showHeaderFilterMenu(l.field);break}S.current.startHeaderFilterEditMode(l.field);break;case"Tab":{if(F){const re=E[n+(oe.shiftKey?-1:1)]??null;re&&(S.current.startHeaderFilterEditMode(re),S.current.setColumnHeaderFilterFocus(re,oe))}break}default:if(F||oe.metaKey||oe.ctrlKey||oe.altKey||oe.shiftKey)break;S.current.startHeaderFilterEditMode(l.field);break}},[S,l.field,n,E,u,F,_,R]),j=f.useCallback((oe,re)=>ae=>{S.current.publishEvent(oe,S.current.getColumnHeaderParams(l.field),ae),re&&re(ae)},[S,l.field]),G=f.useCallback(oe=>{s||(O.current?.contains?.(oe.target)&&O.current.focus(),S.current.setColumnHeaderFilterFocus(l.field,oe))},[S,l.field,s]),Q=f.useMemo(()=>({onKeyDown:j("headerFilterKeyDown",z),onClick:j("headerFilterClick"),onMouseDown:j("headerFilterMouseDown",G),onBlur:j("headerFilterBlur")}),[G,z,j]),q=w({},P,{pinnedPosition:g,colDef:l,showLeftBorder:m,showRightBorder:y}),Y=mne(q),K=H.headerLabel??S.current.getLocaleText(`headerFilterOperator${de(c.operator)}`),J=H.requiresFilterValue===!1,X=c?.value!==void 0||J,ee=X||s,W=v.jsx(YM,{operators:A,item:c,field:l.field,disabled:_,applyFilterChanges:S.current.upsertFilterItem,headerFilterMenuRef:u,buttonRef:k,showClearItem:!p&&X,clearFilterItem:$}),le=p&&X?v.jsx(pne,{onClick:$,disabled:_}):null;return v.jsxs("div",w({className:se(Y.root,a),style:tu(w({height:r,width:i},b),x,g,h),role:"columnheader","aria-colindex":n+1,"aria-label":V==null?l.headerName??l.field:void 0},C,Q,{ref:D,children:[V,V===void 0?v.jsxs(f.Fragment,{children:[J?v.jsxs(f.Fragment,{children:[v.jsx(gne,{className:Y.operatorLabel,children:K}),le,W]}):null,B&&!J?v.jsx(hne,w({as:B,className:Y.input,apiRef:S,item:c,inputRef:O,applyValue:S.current.upsertFilterItem,onFocus:()=>S.current.startHeaderFilterEditMode(l.field),onBlur:oe=>{S.current.stopHeaderFilterEditMode(),oe.relatedTarget?.className.includes("columnHeader")||S.current.setState(re=>w({},re,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},isFilterActive:ee,headerFilterMenu:W,clearButton:le,disabled:_||J,tabIndex:-1,slotProps:{root:{size:"small",label:de(K),placeholder:""}}},J?{value:""}:{},H?.InputComponentProps,d)):null]}):null]}))});process.env.NODE_ENV!=="production"&&(M0.displayName="GridHeaderFilterCell"),process.env.NODE_ENV!=="production"&&(M0.propTypes={colDef:o.object.isRequired,colIndex:o.number.isRequired,hasFocus:o.bool,headerClassName:o.oneOfType([o.func,o.string]),headerFilterMenuRef:o.shape({current:o.object}).isRequired,height:o.number.isRequired,InputComponentProps:o.shape({apiRef:o.shape({current:o.object.isRequired}),applyValue:o.func,className:o.string,clearButton:o.node,disabled:o.bool,focusElementRef:o.oneOfType([o.func,o.shape({current:o.any.isRequired})]),headerFilterMenu:o.node,inputRef:o.oneOfType([o.func,o.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:o.bool,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}),onBlur:o.func,onFocus:o.func,slotProps:o.object,tabIndex:o.number}),item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}).isRequired,pinnedOffset:o.number,pinnedPosition:o.oneOf([0,1,2,3]),showClearIcon:o.bool,showLeftBorder:o.bool.isRequired,showRightBorder:o.bool.isRequired,sortIndex:o.number,style:o.object,tabIndex:o.oneOf([-1,0]).isRequired,width:o.number.isRequired});const yne=vr(M0);function KM({open:e,field:t,target:n,applyFilterChanges:r,operators:s,item:i,id:a,labelledBy:l,showClearItem:c,clearFilterItem:u}){const d=Xe(),p=Ie(),g=f.useCallback(()=>{d.current.hideHeaderFilterMenu()},[d]);return n?v.jsx(Wa,{position:"bottom-end",open:e,target:n,onClose:g,children:v.jsxs(p.slots.baseMenuList,{"aria-labelledby":l,id:a,children:[c&&[v.jsx(p.slots.baseMenuItem,{iconStart:v.jsx(p.slots.columnMenuClearIcon,{fontSize:"small"}),onClick:()=>{u(),g()},children:d.current.getLocaleText("headerFilterClear")},"filter-menu-clear-filter"),v.jsx(p.slots.baseDivider,{},"filter-menu-divider")],s.map(h=>{const b=h.value===i.operator,m=h?.headerLabel??d.current.getLocaleText(`headerFilterOperator${de(h.value)}`);return v.jsx(p.slots.baseMenuItem,{iconStart:b?v.jsx(p.slots.menuItemCheckIcon,{fontSize:"small"}):v.jsx("span",{}),onClick:()=>{r(w({},i,{operator:h.value})),g()},autoFocus:b?e:!1,children:m},`${t}-${h.value}`)})]})}):null}process.env.NODE_ENV!=="production"&&(KM.propTypes={applyFilterChanges:o.func.isRequired,clearFilterItem:o.func.isRequired,field:o.string.isRequired,id:o.string,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}).isRequired,labelledBy:o.string,open:o.bool.isRequired,operators:o.arrayOf(o.shape({getApplyFilterFn:o.func.isRequired,getValueAsString:o.func,headerLabel:o.string,InputComponent:o.elementType,InputComponentProps:o.shape({apiRef:o.shape({current:o.object.isRequired}),applyValue:o.func,className:o.string,clearButton:o.node,disabled:o.bool,focusElementRef:o.oneOfType([o.func,o.shape({current:o.any.isRequired})]),headerFilterMenu:o.node,inputRef:o.oneOfType([o.func,o.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:o.bool,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}),onBlur:o.func,onFocus:o.func,slotProps:o.object,tabIndex:o.number}),label:o.string,requiresFilterValue:o.bool,value:o.string.isRequired})).isRequired,showClearItem:o.bool.isRequired,target:er});const O0=({id:e,path:t,previousTree:n,tree:r,treeDepths:s,onDuplicatePath:i,isGroupExpandedByDefault:a,defaultGroupingExpansionDepth:l,serverChildrenCount:c,groupsToFetch:u,maxDepth:d})=>{let p=Qe;for(let g=0;g<t.length;g+=1){const{key:h,field:b}=t[g],m=b??"__no_field__",y=h??"__no_key__",C=r[p].childrenFromPath?.[m]?.[y.toString()];if(g===t.length-1)if(C==null){let S;c!==void 0&&c!==0?(S={type:"group",id:e,parent:p,path:t.map(E=>E.key),depth:g,isAutoGenerated:!1,groupingKey:h,groupingField:b,children:[],childrenFromPath:{},childrenExpanded:!1,serverChildrenCount:c},NM(S,l,d,a)&&u?.add(e)):S={type:"leaf",id:e,depth:g,parent:p,groupingKey:h},Mf(S,r,s,n)}else{const S=r[C];S.type==="group"&&S.isAutoGenerated?LM({tree:r,previousTree:n,treeDepths:s,node:S,updatedNode:{id:e,isAutoGenerated:!1}}):i?.(C,e,t)}else if(C==null){const S=DM(t.slice(0,g+1));Mf(RM({type:"group",id:S,parent:p,depth:g,isAutoGenerated:!0,groupingKey:h,groupingField:b,children:[],childrenFromPath:{},childrenExpanded:!1},l,d,a,n?.[S]?.childrenExpanded),r,s,n),p=S}else{const S=r[C];if(S.type!=="group"){const x={type:"group",id:S.id,parent:S.parent,depth:S.depth,isAutoGenerated:!1,groupingKey:h,groupingField:b,children:[],childrenFromPath:{},childrenExpanded:!1};r[C]=RM(x,l,d,a,n?.[S.id]?.childrenExpanded)}p=S.id}}},XM=e=>{const t=[],n={[Qe]:yP()},r={},s=new Set;for(let i=0;i<e.nodes.length;i+=1){const a=e.nodes[i];t.push(a.id),O0({tree:n,previousTree:e.previousTree,id:a.id,path:a.path,serverChildrenCount:a.serverChildrenCount,onDuplicatePath:e.onDuplicatePath,treeDepths:r,isGroupExpandedByDefault:e.isGroupExpandedByDefault,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth,groupsToFetch:s,maxDepth:e.maxDepth})}return{tree:n,treeDepths:r,groupingName:e.groupingName,dataRowIds:t,groupsToFetch:Array.from(s)}};let ZM=class{constructor(t,n){this.next=n,this.data=t}insertAfter(t){if(!t.first||!t.last)return;const n=this.next;this.next=t.first,t.last.next=n}};class fu{constructor(t,n){this.first=t,this.last=n}data(){const t=[];return this.forEach(n=>{t.push(n.data)}),t}forEach(t){let n=this.first;for(;n!==null;)t(n),n=n.next}static from(t){if(t.length===0)return new fu(null,null);let n=0;const r=new ZM(t[n],null);let s=r;for(;n+1<t.length;){n+=1;const i=new ZM(t[n],null);s.next=i,s=i}return new fu(r,s)}}const vne=e=>{const{rowTree:t,disableChildrenSorting:n,sortRowList:r}=e,s=new Map,i=l=>{const c=!!r&&(!n||l.depth===-1);let u;if(c){for(let d=0;d<l.children.length;d+=1){const p=t[l.children[d]];p.type==="group"&&i(p)}u=r(l.children.map(d=>t[d]))}else{for(let d=0;d<l.children.length;d+=1){const p=t[l.children[d]];p.type==="group"&&i(p)}u=[...l.children]}l.footerId!=null&&u.push(l.footerId),s.set(l.id,u)};i(t[Qe]);const a=fu.from(s.get(Qe));return a.forEach(l=>{const c=s.get(l.data);c?.length&&l.insertAfter(fu.from(c))}),a.data()},Cne=["getColumnsToRender","getPinnedCellOffset","renderContext","leftRenderContext","rightRenderContext","pinnedColumns","visibleColumns","columnPositions"],wne=e=>{const{classes:t}=e;return f.useMemo(()=>pe({headerFilterRow:["headerFilterRow"]},Je,t),[t])},Sne=e=>{const t=Hn(),{headerGroupingMaxDepth:n,hasOtherElementInTabSequence:r}=e,s=ue(t,$W),i=TM(w({},e,{hasOtherElementInTabSequence:r||s!==null})),{getColumnsToRender:a,getPinnedCellOffset:l,renderContext:c,leftRenderContext:u,rightRenderContext:d,pinnedColumns:p,visibleColumns:g,columnPositions:h}=i,b=ie(i,Cne),m=f.useRef(null);t.current.register("private",{headerFiltersElementRef:m});const y=f.useRef(null),C=Oo(),S=wne(C),x=!C.headerFilters,E=ue(t,cn),P=ue(t,Bc),M=ue(t,Tb),D=ue(t,Xj),O=ue(t,Ib),k=ue(t,LW),I=f.useRef(Object.create(null)).current,F=f.useCallback(A=>{const L=E?.items.find(H=>H.field===A.field&&H.operator!=="isAnyOf");if(L!=null)return L;const N=I[A.field];if(N!=null)return N;const _=$y(A);return I[A.field]=_,_},[E]),T=A=>{const{renderedColumns:L,firstColumnToRender:N}=a(A),_=[];for(let H=0;H<L.length;H+=1){const B=L[H],$=N+H,V=k?.field===B.field,z=$===0,G=s?.field===B.field||z&&!e.hasOtherElementInTabSequence?0:-1,Q=typeof B.headerClassName=="function"?B.headerClassName({field:B.field,colDef:B}):B.headerClassName,q=F(B),Y=A?.position,K=l(Y,B.computedWidth,$,h,P,O),J=H,X=L.length,ee=iu(Y,J,C.showColumnVerticalBorder,C.pinnedColumnsSectionSeparator),W=su(Y,J,X,C.showColumnVerticalBorder,M,C.pinnedColumnsSectionSeparator);_.push(v.jsx(C.slots.headerFilterCell,w({colIndex:$,height:D,width:B.computedWidth,colDef:B,hasFocus:V,tabIndex:G,headerFilterMenuRef:y,headerClassName:Q,"data-field":B.field,item:q,pinnedPosition:Y,pinnedOffset:K,showLeftBorder:ee,showRightBorder:W},C.slotProps?.headerFilterCell),`${B.field}-filter`))}return b.getFillers(A,_,0,!0)},R=()=>x?null:v.jsxs(y0,{ref:m,className:S.headerFilterRow,role:"row","aria-rowindex":n+2,ownerState:C,children:[u&&T({position:pt.LEFT,renderContext:u,maxLastColumn:u.lastColumnIndex}),T({renderContext:c,maxLastColumn:g.length-p.right.length}),d&&T({position:pt.RIGHT,renderContext:d,maxLastColumn:d.lastColumnIndex})]});return process.env.NODE_ENV!=="production"&&(R.displayName="getColumnFiltersRow"),w({},b,{getColumnFiltersRow:R})},xne=["style","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],Pne=U("div",{slot:"internal",shouldForwardProp:void 0})({flex:1,backgroundColor:Ee.header.background.base}),k0=ze(function(t,n){const{className:r,visibleColumns:s,sortColumnLookup:i,filterColumnLookup:a,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:c,columnHeaderFocus:u,columnGroupHeaderFocus:d,headerGroupingMaxDepth:p,columnMenuState:g,columnVisibility:h,columnGroupsHeaderStructure:b,hasOtherElementInTabSequence:m}=t,y=ie(t,xne),{getInnerProps:C,getColumnHeadersRow:S,getColumnFiltersRow:x,getColumnGroupHeadersRows:E}=Sne({visibleColumns:s,sortColumnLookup:i,filterColumnLookup:a,columnHeaderTabIndexState:l,hasOtherElementInTabSequence:m,columnGroupHeaderTabIndexState:c,columnHeaderFocus:u,columnGroupHeaderFocus:d,headerGroupingMaxDepth:p,columnMenuState:g,columnVisibility:h,columnGroupsHeaderStructure:b});return v.jsxs(v0,w({className:r},y,C(),{ref:n,children:[E(),S(),x(),v.jsx(Pne,{})]}))});process.env.NODE_ENV!=="production"&&(k0.displayName="GridColumnHeaders"),process.env.NODE_ENV!=="production"&&(k0.propTypes={columnGroupHeaderFocus:o.shape({depth:o.number.isRequired,field:o.string.isRequired}),columnGroupHeaderTabIndexState:o.shape({depth:o.number.isRequired,field:o.string.isRequired}),columnGroupsHeaderStructure:o.arrayOf(o.arrayOf(o.shape({columnFields:o.arrayOf(o.string).isRequired,groupId:o.string}))).isRequired,columnHeaderFocus:o.shape({field:o.string.isRequired}),columnHeaderTabIndexState:o.shape({field:o.string.isRequired}),columnMenuState:o.shape({field:o.string,open:o.bool.isRequired}).isRequired,columnVisibility:o.object.isRequired,filterColumnLookup:o.object.isRequired,hasOtherElementInTabSequence:o.bool.isRequired,headerGroupingMaxDepth:o.number.isRequired,sortColumnLookup:o.object.isRequired,visibleColumns:o.arrayOf(o.object).isRequired});const QM=w({},Fy,{columnMenuPinningItem:GM}),JM=w({},Ny,{columnMenuPinningItem:{displayOrder:15}}),Rf=ze(function(t,n){return v.jsx(yf,w({},t,{defaultSlots:QM,defaultSlotProps:JM,ref:n}))});process.env.NODE_ENV!=="production"&&(Rf.displayName="GridProColumnMenu"),Rf.defaultSlots=QM,Rf.defaultSlotProps=JM;const hu=Hn,Ene=w({},fo,{type:"custom",field:oo,editable:!1,sortable:!1,filterable:!1,resizable:!1,aggregable:!1,chartable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,align:"left",width:40,valueGetter:(e,t,n,r)=>{const s=ho(r,t);return Gs(r).has(s)},rowSpanValueGetter:(e,t,n,r)=>ho(r,t),renderCell:e=>v.jsx(WM,w({},e)),renderHeader:({colDef:e})=>v.jsx("div",{"aria-label":e.headerName,role:"presentation"})}),Tne=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test",Ine=()=>{};function Mne(e,t,n){const r=f.useRef(null);r.current=t,it(()=>{if(n===!1||typeof ResizeObserver>"u")return Ine;let s=0;const i=e.current,a=new ResizeObserver(l=>{Tne?s=requestAnimationFrame(()=>{r.current(l)}):r.current(l)});return i&&a.observe(i),()=>{s&&cancelAnimationFrame(s),a.disconnect()}},[e,n])}const One=U("div",{name:"MuiDataGrid",slot:"DetailPanel"})({width:"calc(var(--DataGrid-rowWidth) - var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",backgroundColor:Ee.colors.background.base,overflow:"auto"});function kne(e){const{rowId:t,height:n,className:r,children:s}=e,i=hu(),a=f.useRef(null),c=Oo(),u=n==="auto",d=St(i,t);return f.useLayoutEffect(()=>{u&&typeof ResizeObserver>"u"&&i.current.storeDetailPanelHeight(t,a.current.clientHeight)},[i,u,t]),Mne(a,p=>{const[g]=p,h=g.borderBoxSize&&g.borderBoxSize.length>0?g.borderBoxSize[0].blockSize:g.contentRect.height;i.current.storeDetailPanelHeight(t,h)},u),d?.type==="skeletonRow"?null:v.jsx(One,{ref:a,ownerState:c,role:"presentation",style:{height:n},className:r,children:s})}const Dne=()=>pe({detailPanel:["detailPanel"]},Je,{});function Fne(e){return Oo().getDetailPanelContent?f.createElement(Nne,e):null}function Nne({virtualScroller:e}){const t=hu(),n=Dne(),{setPanels:r}=e,s=ue(t,Gs),i=ue(t,Nf),a=ue(t,I0),l=f.useCallback(c=>{const u=i[c],p=t.current.getRowIndexRelativeToVisibleRows(c)!==void 0;if(!f.isValidElement(u)||!p)return null;const g=a[c],h=g.autoHeight?"auto":g.height;return v.jsx(kne,{rowId:c,height:h,className:n.detailPanel,children:u},`panel-${c}`)},[t,n.detailPanel,a,i]);return f.useEffect(()=>{const c=new Map;for(const u of s)c.set(u,l(u));r(c)},[s,r,l]),null}const Rne=()=>pe({root:["pinnedRows"]},Je,{});function Lne({position:e,virtualScroller:t}){const n=Rne(),r=Hn(),i=ue(r,ki)[e],{getRows:a}=t,l=f.useMemo(()=>({firstRowIndex:0,lastRowIndex:i.length,firstColumnIndex:-1,lastColumnIndex:-1}),[i]);if(i.length===0)return null;const c=a({position:e,rows:i,renderContext:l},ct(r));return v.jsx("div",{className:se(n.root,Z[`pinnedRows--${e}`]),role:"presentation",children:c})}const $ne=w({},{columnMenuPinRightIcon:cne,columnMenuPinLeftIcon:une}),Ane=w({},Ite,$ne,{columnMenu:Rf,columnHeaders:k0,detailPanels:Fne,headerFilterCell:yne,headerFilterMenu:KM,pinnedRows:Lne}),Vne=()=>{const e=vJ(),n=Oo().treeData?{role:"treegrid"}:{};return w({},e,n)},_ne=e=>{const t=hu(),n=Oo(),r=CJ(),s=ue(t,qa),i=ue(t,wW),a=ue(t,xW);return f.useCallback((l,c)=>{const u=r(l,c);if(!l||!(n.treeData||e)||l.type==="footer"||l.type==="pinnedRow")return u;u["aria-level"]=l.depth+1;const d=i[l.id]??0;return l.type==="group"&&d>0&&(u["aria-expanded"]=!!l.childrenExpanded),l.parent!==null&&(u["aria-setsize"]=l.parent===Qe?s:i[l.parent],u["aria-posinset"]=a[l.id]),u},[n.treeData,e,s,i,a,r])},Bne=(e,t,n)=>{n.current.caches.columnPinning={orderedFieldsBeforePinningColumns:null};let r;return t.pinnedColumns?r=t.pinnedColumns:t.initialState?.pinnedColumns?r=t.initialState.pinnedColumns:r={},w({},e,{pinnedColumns:r})},Hne=(e,t)=>{const n=ue(e,Ni),r=f.useCallback((m,y)=>{const C=Ga(e);if(!y.colIndex||C.left.length===0&&C.right.length===0)return m;const S=ln(e),x=Bc(e),E=As(e),P=e.current.virtualScrollerRef.current.clientWidth,M=Math.abs(e.current.virtualScrollerRef.current.scrollLeft),D=S[y.colIndex].computedWidth,O=E[y.colIndex],k=E[C.left.length],I=x-E[E.length-C.right.length],F=O+D;if(F-(P-I)>M){const T=F-(P-I);return w({},m,{left:T})}if(O<M+k){const T=O-k;return w({},m,{left:T})}return m},[e]),s=f.useCallback((m,y)=>t.disableColumnPinning||y.pinnable===!1?m:[...m,"columnMenuPinningItem"],[t.disableColumnPinning]),i=f.useCallback((m,{targetIndex:y})=>{const C=Ga(e);if(C.left.length===0&&C.right.length===0)return m;if(C.left.length>0&&y<C.left.length)return!1;if(C.right.length>0){const x=ln(e).length-C.right.length;return y>=x?!1:m}return m},[e]),a=f.useCallback((m,y)=>{const C=Ni(e);return!y.exportOnlyDirtyModels||t.pinnedColumns!=null||t.initialState?.pinnedColumns!=null||(C.left??[]).length>0||(C.right??[]).length>0?w({},m,{pinnedColumns:C}):m},[e,t.pinnedColumns,t.initialState?.pinnedColumns]),l=f.useCallback((m,y)=>{const C=y.stateToRestore.pinnedColumns;return C!=null?(e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=null,eO(e,C),w({},m,{callbacks:[...m.callbacks,()=>e.current.requestPipeProcessorsApplication("hydrateColumns")]})):m},[e]);ht(e,"scrollToIndexes",r),ht(e,"columnMenu",s),ht(e,"canBeReordered",i),ht(e,"exportState",a),ht(e,"restoreState",l),e.current.registerControlState({stateId:"pinnedColumns",propModel:t.pinnedColumns,propOnChange:t.onPinnedColumnsChange,stateSelector:Ni,changeEvent:"pinnedColumnsChange"});const c=f.useCallback((m,y)=>{if(e.current.isColumnPinned(m)===y)return;const C=y===Mn.RIGHT?Mn.LEFT:Mn.RIGHT,S={[y]:[...n[y]||[],m],[C]:(n[C]||[]).filter(x=>x!==m)};e.current.setPinnedColumns(S)},[e,n]),u=f.useCallback(m=>{e.current.setPinnedColumns({left:(n.left||[]).filter(y=>y!==m),right:(n.right||[]).filter(y=>y!==m)})},[e,n.left,n.right]),d=f.useCallback(()=>Ni(e),[e]),p=f.useCallback(m=>{eO(e,m),e.current.requestPipeProcessorsApplication("hydrateColumns")},[e]),g=f.useCallback(m=>(n.left||[]).includes(m)?Mn.LEFT:(n.right||[]).includes(m)?Mn.RIGHT:!1,[n.left,n.right]);et(e,{pinColumn:c,unpinColumn:u,getPinnedColumns:d,setPinnedColumns:p,isColumnPinned:g},"public"),xe(e,"columnOrderChange",m=>{if(!e.current.caches.columnPinning.orderedFieldsBeforePinningColumns)return;const{column:y,targetIndex:C,oldIndex:S}=m,x=C>S?1:-1,P=lr(e)[C-x],M=[...e.current.caches.columnPinning.orderedFieldsBeforePinningColumns];let D=M.findIndex(I=>I===y.field),O=D+x;const k=M.findIndex(I=>I===P);for(;x>0?D<k:D>k;){for(;e.current.isColumnPinned(M[O]);)O+=x;const I=M[D];M[D]=M[O],M[O]=I,D=O,O=D+x}e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=M}),f.useEffect(()=>{t.pinnedColumns&&e.current.setPinnedColumns(t.pinnedColumns)},[e,t.pinnedColumns])};function eO(e,t){e.current.setState(n=>w({},n,{pinnedColumns:t}))}const zne=(e,t)=>{const{disableColumnPinning:n}=t,r=f.useRef([]),s=f.useCallback(a=>{if(a.orderedFields.length===0||n)return a;const l=e.current.state;e.current.state=w({},l,{columns:a});const c=VG(e);e.current.state=l;const u=c.left,d=c.right;let p;const g=[...u,...d],{orderedFieldsBeforePinningColumns:h}=e.current.caches.columnPinning;if(h){p=new Array(a.orderedFields.length).fill(null);const m=[...p],y=[...a.orderedFields];r.current.forEach(S=>{if(!g.includes(S)&&a.lookup[S]){const x=h.indexOf(S);p[x]=S,m[x]=S,y.splice(y.indexOf(S),1)}}),g.forEach(S=>{let x=h.indexOf(S);if((x===-1||x>=m.length)&&(x=a.orderedFields.indexOf(S)),m[x]!==null)for(x=0;m[x]!==null;)x+=1;p[x]=S,m[x]=S,y.splice(y.indexOf(S),1)});let C=0;y.forEach(S=>{for(;m[C]!==null;)C+=1;m[C]=S,p[C]=S}),e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=m}else{if(g.length===0)return r.current=g,a;p=[...a.orderedFields],e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=[...a.orderedFields]}r.current=g;const b=p.filter(m=>!u.includes(m)&&!d.includes(m));return w({},a,{orderedFields:[...u,...b,...d]})},[e,n]);ht(e,"hydrateColumns",s);const i=f.useCallback((a,l)=>e.current.isColumnPinned(l),[e]);ht(e,"isColumnPinned",i)};function jne(e){const t={},n=Object.values(e);for(let r=0;r<n.length;r+=1){const s=n[r];t[s.id]=s.serverChildrenCount??0}return{filteredRowsLookup:qp.filteredRowsLookup,filteredChildrenCountLookup:t,filteredDescendantCountLookup:qp.filteredDescendantCountLookup}}function Gne(e){return ss(e,Qe,!1)}function Wne(e,t){if(t.updates.type!=="full"||!t.previousTree?.[e]||t.previousTree[e].depth<1)return[];const r=t.previousTree[e].parent;if(r==null)return[];const s=t.previousTree[r];return s&&"path"in s?s.path||[]:[]}const Lf=Ht(e=>e.dataSource);De(Lf,e=>e.loading);const Une=De(Lf,(e,t)=>e.loading[t]??!1),qne=De(Lf,e=>e.errors),Yne=De(Lf,(e,t)=>e.errors[t]),tO=e=>{const{classes:t}=e;return pe({root:["treeDataGroupingCell"],toggle:["treeDataGroupingCellToggle"],loadingContainer:["treeDataGroupingCellLoadingContainer"]},Je,t)};function Kne(e){const t=hu(),n=Oo(),r=tO(n),{rowNode:s,id:i,field:a,descendantCount:l}=e,c=ue(t,Une,i),u=ue(t,Yne,i),d=g=>{s.childrenExpanded?(t.current.setRowChildrenExpansion(i,!1),t.current.removeChildrenRows(i)):t.current.dataSource.fetchRows(i),t.current.setCellFocus(i,a),g.stopPropagation()},p=s.childrenExpanded?n.slots.treeDataCollapseIcon:n.slots.treeDataExpandIcon;return c?v.jsx("div",{className:r.loadingContainer,children:v.jsx(n.slots.baseCircularProgress,{size:"1rem",color:"inherit"})}):l===-1||l>0?v.jsx(n.slots.baseIconButton,w({size:"small",onClick:d,tabIndex:-1,"aria-label":s.childrenExpanded?t.current.getLocaleText("treeDataCollapse"):t.current.getLocaleText("treeDataExpand")},n?.slotProps?.baseIconButton,{children:v.jsx(n.slots.baseTooltip,{title:u?.message??null,children:v.jsx(n.slots.baseBadge,{variant:"dot",color:"error",invisible:!u,children:v.jsx(p,{fontSize:"inherit"})})})})):null}function Xne(e){const{id:t,field:n,formattedValue:r,rowNode:s,hideDescendantCount:i,offsetMultiplier:a=2}=e,l=Oo(),c=hu(),u=ue(c,eG,t),d=tO(l);let p=0;return u&&(p=l.dataSource?.getChildrenCount?.(u)??0),v.jsxs("div",{className:d.root,style:{marginLeft:Ee.spacing(s.depth*a)},children:[v.jsx("div",{className:d.toggle,children:v.jsx(Kne,{id:t,field:n,rowNode:s,row:u,descendantCount:p})}),v.jsxs("span",{children:[r===void 0?s.groupingKey:r,!i&&p>0?` (${p})`:""]})]})}const Zne=["hideDescendantCount"],Qne=(e,t)=>{const n=f.useCallback(()=>{e.current.setStrategyAvailability(bo.RowTree,eo.DataSource,t.treeData&&t.dataSource?()=>!0:()=>!1)},[e,t.treeData,t.dataSource]),r=f.useCallback(()=>{const u=t.groupingColDef;let d;if(typeof u=="function"){const m={groupingName:eo.DataSource,fields:[]};d=u(m)}else d=u;const p=d??{},{hideDescendantCount:g}=p,h=ie(p,Zne),b=w({},zM,{renderCell:m=>v.jsx(Xne,w({},m,{hideDescendantCount:g})),headerName:e.current.getLocaleText("treeDataGroupingHeaderName")});return w({},b,h,Ff)},[e,t.groupingColDef]),s=f.useCallback(u=>{if(!t.dataSource)return u;const d=Ff.field,p=t.treeData,g=u.lookup[d];if(p){const h=r();g&&(h.width=g.width,h.flex=g.flex),u.lookup[d]=h,g==null&&(u.orderedFields=[d,...u.orderedFields])}else!p&&g&&(delete u.lookup[d],u.orderedFields=u.orderedFields.filter(h=>h!==d));return u},[t.treeData,t.dataSource,r]),i=f.useCallback(u=>{const d=t.dataSource?.getGroupKey;if(!d)throw new Error("MUI X: No `getGroupKey` method provided with the dataSource.");const p=t.dataSource?.getChildrenCount;if(!p)throw new Error("MUI X: No `getChildrenCount` method provided with the dataSource.");const g=b=>{const m=u.updates.groupKeys??Wne(b,u),y=p(u.dataRowIdToModelLookup[b]);return{id:b,path:[...m,d(u.dataRowIdToModelLookup[b])].map(C=>({key:C,field:null})),serverChildrenCount:y}},h=(b,m,y)=>{throw new Error(["MUI X: The values returned by `getGroupKey` for all the sibling rows should be unique.",`The rows with id #${b} and #${m} have the same.`,`Path: ${JSON.stringify(y.map(C=>C.key))}.`].join(`
414
+ `))};return u.updates.type==="full"?XM({previousTree:u.previousTree,nodes:u.updates.rows.map(g),defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:eo.DataSource,onDuplicatePath:h}):dO({nodes:{inserted:u.updates.actions.insert.map(g),modified:u.updates.actions.modify.map(g),removed:u.updates.actions.remove},previousTree:u.previousTree,previousGroupsToFetch:u.previousGroupsToFetch,previousTreeDepth:u.previousTreeDepths,defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:eo.DataSource})},[t.dataSource,t.defaultGroupingExpansionDepth,t.isGroupExpandedByDefault]),a=f.useCallback(()=>{const u=ct(e);return jne(u)},[e]),l=f.useCallback(()=>{const u=ct(e);return Gne(u)},[e]);ht(e,"hydrateColumns",s),yo(e,eo.DataSource,"rowTreeCreation",i),yo(e,eo.DataSource,"filtering",a),yo(e,eo.DataSource,"sorting",l),yo(e,eo.DataSource,"visibleRowsLookupCreation",$M),cs(()=>{n()});const c=f.useRef(!0);f.useEffect(()=>{c.current?c.current=!1:n()},[n])},Jne=new Set,eoe=(e,t)=>w({},e,{detailPanel:{heightCache:{},expandedRowIds:t.detailPanelExpandedRowIds??t.initialState?.detailPanel?.expandedRowIds??Jne}});function nO(e,t,n,r){if(typeof t!="function")return{};const s=Oi(e),i={},a={};for(let l=0;l<s.length;l+=1){const c=s[l],u=e.current.getRowParams(c),d=t(u);if(i[c]=d,d==null)continue;const p=n(u),g=p==="auto";a[c]={autoHeight:g,height:g?r[c]?.height:p}}return{contentCache:i,heightCache:a}}const toe=(e,t)=>{const n=f.useCallback((C,S)=>{if(C.field!==oo||t.getDetailPanelContent==null)return;const E=Nf(e)[C.id];f.isValidElement(E)&&S.target!==S.currentTarget&&e.current.toggleDetailPanel(C.id)},[e,t.getDetailPanelContent]),r=f.useCallback((C,S)=>{t.getDetailPanelContent!=null&&C.field===oo&&S.key===" "&&e.current.toggleDetailPanel(C.id)},[e,t.getDetailPanelContent]);xe(e,"cellClick",n),xe(e,"cellKeyDown",r),e.current.registerControlState({stateId:"detailPanels",propModel:t.detailPanelExpandedRowIds,propOnChange:t.onDetailPanelExpandedRowIdsChange,stateSelector:Gs,changeEvent:"detailPanelsExpandedRowIdsChange"});const s=f.useCallback(C=>{if(t.getDetailPanelContent==null)return;const x=Nf(e)[C];if(!f.isValidElement(x))return;const E=e.current.getExpandedDetailPanels(),P=new Set(E);E.has(C)?P.delete(C):P.add(C),e.current.setExpandedDetailPanels(P)},[e,t.getDetailPanelContent]),i=f.useCallback(()=>Gs(e),[e]),a=f.useCallback(C=>{e.current.setState(S=>w({},S,{detailPanel:w({},S.detailPanel,{expandedRowIds:C})})),e.current.requestPipeProcessorsApplication("rowHeight")},[e]),l=f.useCallback((C,S)=>{const x=I0(e);!x[C]||x[C].height===S||(e.current.setState(E=>w({},E,{detailPanel:w({},E.detailPanel,{heightCache:w({},x,{[C]:w({},x[C],{height:S})})})})),e.current.requestPipeProcessorsApplication("rowHeight"))},[e]),c={toggleDetailPanel:s,getExpandedDetailPanels:i,setExpandedDetailPanels:a},u={storeDetailPanelHeight:l};et(e,c,"public"),et(e,u,"private"),f.useEffect(()=>{t.detailPanelExpandedRowIds&&Gs(e)!==t.detailPanelExpandedRowIds&&e.current.setExpandedDetailPanels(t.detailPanelExpandedRowIds)},[e,t.detailPanelExpandedRowIds]);const d=f.useCallback(()=>{t.getDetailPanelContent&&e.current.setState(C=>w({},C,{detailPanel:w({},C.detailPanel,nO(e,t.getDetailPanelContent,t.getDetailPanelHeight,C.detailPanel.heightCache))}))},[e,t.getDetailPanelContent,t.getDetailPanelHeight]);xe(e,"sortedRowsSet",d);const p=f.useRef(void 0),g=f.useRef(void 0),h=f.useCallback(()=>{t.getDetailPanelContent===p.current&&t.getDetailPanelHeight===g.current||!t.getDetailPanelContent||(e.current.setState(C=>w({},C,{detailPanel:w({},C.detailPanel,nO(e,t.getDetailPanelContent,t.getDetailPanelHeight,C.detailPanel.heightCache))})),p.current=t.getDetailPanelContent,g.current=t.getDetailPanelHeight)},[e,t.getDetailPanelContent,t.getDetailPanelHeight]),b=f.useCallback((C,S)=>{const x=Gs(e);if(!x||!x.has(S.id))return C.detail=0,C;h();const E=I0(e);return C.detail=E[S.id]?.height??0,C},[e,h]),m=t.getDetailPanelContent!==void 0;ht(e,"rowHeight",b,m);const y=f.useRef(!0);y.current&&h(),f.useEffect(()=>{y.current||h(),y.current=!1},[e,h])},noe=(e,t)=>{const n=f.useCallback(s=>{const i=w({},Ene,{headerName:e.current.getLocaleText("detailPanelToggle")}),a=!!t.getDetailPanelContent,l=s.lookup[oo]!=null;return a&&!l?(s.lookup[oo]=i,s.orderedFields=[oo,...s.orderedFields]):!a&&l?(delete s.lookup[oo],s.orderedFields=s.orderedFields.filter(c=>c!==oo)):a&&l&&(s.lookup[oo]=w({},i,s.lookup[oo]),t.columns.some(c=>c.field===oo)||(s.orderedFields=[oo,...s.orderedFields.filter(c=>c!==oo)])),s},[e,t.columns,t.getDetailPanelContent]),r=f.useCallback((s,i)=>t.getDetailPanelContent==null||!Gs(e).has(i)?s:[...s,Z["row--detailPanelExpanded"]],[e,t.getDetailPanelContent]);ht(e,"hydrateColumns",n),ht(e,"rowClassName",r)},D0=w({},fo,{type:"custom",field:"__reorder__",sortable:!1,filterable:!1,width:50,align:"center",headerAlign:"center",disableColumnMenu:!0,disableExport:!0,disableReorder:!0,resizable:!1,aggregable:!1,chartable:!1,renderHeader:()=>" ",renderCell:qM,rowSpanValueGetter:(e,t,n,r)=>ho(r,t)}),oO={previousTargetId:null,dragDirection:null,previousDropPosition:null},$f=5,Af={rowId:null},ooe=e=>{const{classes:t}=e;return pe({rowDragging:["row--dragging"],rowBeingDragged:["row--beingDragged"]},Je,t)},roe=e=>w({},e,{rowReorder:{isActive:!1}}),soe=(e,t)=>{const n=On(e,"useGridRowReorder"),r=ue(e,Bn),s=f.useRef(null),i=f.useRef(null),a=f.useRef(void 0),l={classes:t.classes},c=ooe(l),[u,d]=f.useState(""),p=f.useRef(Af),g=Pn(),h=f.useRef(oO),b=f.useRef({targetRowId:null,targetRowIndex:null,dropPosition:null});f.useEffect(()=>()=>{clearTimeout(a.current)},[]);const m=f.useMemo(()=>!t.rowReordering||!!r.length,[t.rowReordering,r]),y=f.useCallback(k=>{const F=(t.treeData?Lte(k.target):k.target).getBoundingClientRect(),T=Math.floor(k.clientY-F.top);if(t.treeData){const A=F.height*.2,L=F.height*.8;return T<A?"above":T>L?"below":"inside"}const R=F.height/2;return T<R?"above":"below"},[t.treeData]),C=f.useCallback((k,I)=>{if(k){const F=e.current.rootElementRef?.current?.querySelector(`[data-id="${k}"]`);F&&(I?F.classList.add(c.rowBeingDragged):F.classList.remove(c.rowBeingDragged))}},[e,c.rowBeingDragged]),S=f.useCallback(async k=>{const I=e.current.rootElementRef?.current;if(!I)return;const F=I.querySelectorAll("[data-id]");if(!F.length)return;const T=Array.from(F),R=new Map;T.forEach(A=>{const L=A.getAttribute("data-id");L&&R.set(L,A.getBoundingClientRect())}),await k(),requestAnimationFrame(()=>{const A=I.querySelectorAll("[data-id]"),L=[];A.forEach(N=>{const _=N.getAttribute("data-id");if(!_)return;const H=R.get(_);if(!H)return;const B=N.getBoundingClientRect(),$=H.top-B.top;if(Math.abs($)>1){const V=N.animate([{transform:`translateY(${$}px)`},{transform:"translateY(0)"}],{duration:200,easing:"ease-in-out",fill:"forwards"});L.push(V)}}),L.length>0&&Promise.allSettled(L.map(N=>N.finished)).then(()=>{})})},[e]),x=f.useCallback((k,I)=>{const F=kn(e);if(I.dataTransfer.effectAllowed="copy",m||Object.keys(F).length!==0)return;p.current&&(g.clear(),p.current=Af),n.debug(`Start dragging row ${k.id}`),I.stopPropagation(),e.current.setState(R=>w({},R,{rowReorder:w({},R.rowReorder,{isActive:!0,draggedRowId:k.id})})),s.current=I.currentTarget,s.current.classList.add(c.rowDragging),d(k.id),C(k.id,!0),a.current=setTimeout(()=>{s.current.classList.remove(c.rowDragging)});const T=$i(e);i.current=T[k.id],e.current.setCellFocus(k.id,D0.field)},[e,m,n,c.rowDragging,C,g]),E=f.useCallback((k,I)=>{if(u==="")return;const F=St(e,k.id),T=St(e,u);if(!T||!F||F.type==="footer"||F.type==="pinnedRow"||!I.target)return;n.debug(`Dragging over row ${k.id}`),I.preventDefault(),I.stopPropagation(),p.current&&(p.current.rowId!==k.id||I.clientY>p.current.clientY+$f||I.clientY<p.current.clientY-$f||I.clientX>p.current.clientX+$f||I.clientX<p.current.clientX-$f)&&(g.clear(),p.current=Af);const R=y(I);if(F.type==="group"&&!F.childrenExpanded&&!p.current.rowId&&F.id!==T.id&&(R==="inside"||F.depth<T.depth)){g.start(500,()=>{const H=St(e,k.id);e.current.setRowChildrenExpansion(k.id,!H.childrenExpanded)}),p.current={rowId:k.id,clientY:I.clientY,clientX:I.clientX};return}const A=$i(e),L=A[k.id],N=A[u],_={dragDirection:L<N?"up":"down",previousTargetId:k.id,previousDropPosition:R};if(h.current.previousTargetId!==k.id||h.current.previousDropPosition!==R){const H=L===N,B=R==="above"&&L===N+1||R==="below"&&L===N-1;e.current.unstable_applyPipeProcessors("isRowReorderValid",!1,{sourceRowId:u,targetRowId:k.id,dropPosition:R,dragDirection:_.dragDirection})||B||H?(b.current={targetRowId:k.id,targetRowIndex:L,dropPosition:R},e.current.setState(V=>w({},V,{rowReorder:w({},V.rowReorder,{dropTarget:{rowId:k.id,position:R}})}))):(b.current={targetRowId:null,targetRowIndex:null,dropPosition:null},e.current.setState(V=>w({},V,{rowReorder:w({},V.rowReorder,{dropTarget:void 0})}))),h.current=_}b.current.targetRowId===null?I.dataTransfer.dropEffect="none":I.dataTransfer.dropEffect="copy"},[u,e,n,g,y]),P=f.useCallback(async(k,I)=>{const F=kn(e);if(u===""||m||Object.keys(F).length!==0)return;p.current&&(g.clear(),p.current=Af),n.debug("End dragging row"),I.preventDefault(),I.stopPropagation(),clearTimeout(a.current),s.current=null;const T=h.current.dragDirection;if(h.current=oO,!I.dataTransfer||I.dataTransfer.dropEffect==="none"){b.current={targetRowId:null,targetRowIndex:null,dropPosition:null},i.current=null,d(""),C(u,!1),e.current.setState(R=>w({},R,{rowReorder:{isActive:!1,draggedRowId:null}}));return}if(b.current.targetRowIndex!==null&&b.current.targetRowId!==null)if(e.current.unstable_applyPipeProcessors("isRowReorderValid",!1,{sourceRowId:u,targetRowId:b.current.targetRowId,dropPosition:b.current.dropPosition,dragDirection:T}))try{const A=ct(e),L=St(e,u);if(!L)throw new Error(`MUI X: No row node found for id #${u}`);const N=L.parent,H=A[N].children.indexOf(u)??i.current;await S(async()=>{await e.current.setRowPosition(u,b.current.targetRowId,b.current.dropPosition);const B=ct(e),$=B[u];if(!$)throw new Error(`MUI X: Row node for id #${u} not found after move`);const V=$.parent,j=B[V].children.indexOf(u),G={row:e.current.getRow(u),oldIndex:H,targetIndex:j,oldParent:N===Qe?null:N,newParent:V===Qe?null:V};C(u,!1),e.current.setState(Q=>w({},Q,{rowReorder:{isActive:!1,draggedRowId:null}})),e.current.publishEvent("rowOrderChange",G)})}catch{C(u,!1),e.current.setState(L=>w({},L,{rowReorder:{isActive:!1,draggedRowId:null}}))}else C(u,!1),e.current.setState(A=>w({},A,{rowReorder:w({},A.rowReorder,{dropTarget:void 0})}));b.current={targetRowId:null,targetRowIndex:null,dropPosition:null},d("")},[e,u,m,n,C,g,S]),M=t.isValidRowReorder,D=f.useCallback((k,{sourceRowId:I,targetRowId:F,dropPosition:T,dragDirection:R})=>{if(Ls(e)>1)return k;const A=$i(e),L=A[F],N=A[I];if(T==="above"&&L===N+1||T==="below"&&L===N-1||N===L)return!1;if(M){const H=Wr(e),B=ct(e),$=B[I],V=B[F],z=L>0?B[H[L-1]]:null,j=L<H.length-1?B[H[L+1]]:null;if(!M({apiRef:e,sourceNode:$,targetNode:V,prevNode:z,nextNode:j,dropPosition:T,dragDirection:R}))return!1}return!0},[e,M]);ht(e,"isRowReorderValid",D),xe(e,"rowDragStart",x),xe(e,"rowDragOver",E),xe(e,"rowDragEnd",P),xe(e,"cellDragOver",E),Mt(e,"rowOrderChange",t.onRowOrderChange);const O=f.useCallback(k=>{e.current.setState(I=>w({},I,{rowReorder:w({},I.rowReorder,{isActive:k})}))},[e]);et(e,{setRowDragActive:O},"private")},ioe=e=>{const{classes:t}=e;return f.useMemo(()=>pe({rowReorderCellContainer:["rowReorderCellContainer"],columnHeaderReorder:["columnHeaderReorder"]},Je,t),[t])},aoe=(e,t)=>{const n={classes:t.classes},r=ioe(n),s=f.useCallback(i=>{const a=w({},D0,{cellClassName:r.rowReorderCellContainer,headerClassName:r.columnHeaderReorder,headerName:e.current.getLocaleText("rowReorderingHeaderName")}),l=t.rowReordering,c=i.lookup[a.field]!=null;return l&&!c?(i.lookup[a.field]=a,i.orderedFields=[a.field,...i.orderedFields]):!l&&c?(delete i.lookup[a.field],i.orderedFields=i.orderedFields.filter(u=>u!==a.field)):l&&c&&(i.lookup[a.field]=w({},a,i.lookup[a.field]),t.columns.some(u=>u.field===D0.field)||(i.orderedFields=[a.field,...i.orderedFields.filter(u=>u!==a.field)])),i},[e,r,t.columns,t.rowReordering]);ht(e,"hydrateColumns",s)};function rO(e,t){const n={topIds:[],bottomIds:[],idLookup:{}};return e?.top?.forEach(r=>{const s=Ba(r,t);n.topIds.push(s),n.idLookup[s]=r}),e?.bottom?.forEach(r=>{const s=Ba(r,t);n.bottomIds.push(s),n.idLookup[s]=r}),n}const loe=(e,t,n)=>(n.current.caches.pinnedRows=rO(t.pinnedRows,t.getRowId),w({},e,{rows:w({},e.rows,{additionalRowGroups:w({},e.rows?.additionalRowGroups,{pinnedRows:{top:[],bottom:[]}})})})),coe=(e,t)=>{const n=f.useCallback(s=>{e.current.caches.pinnedRows=rO(s,t.getRowId),e.current.requestPipeProcessorsApplication("hydrateRows")},[e,t.getRowId]);et(e,{unstable_setPinnedRows:n},"public");const r=f.useRef(!0);f.useEffect(()=>{if(r.current){r.current=!1;return}e.current.unstable_setPinnedRows(t.pinnedRows)},[e,t.pinnedRows])};function sO({groupingParams:e,rowModel:t,rowId:n,position:r,apiRef:s,isAutoGenerated:i}){const a=w({},e.dataRowIdToModelLookup),l=w({},e.tree),c=w({},e.treeDepths);Mf({type:"pinnedRow",id:n,depth:0,parent:Qe,isAutoGenerated:i},l,c,null),a[n]=t,s.current.caches.rows.dataRowIdToModelLookup[n]=w({},t);const d=e.additionalRowGroups?.pinnedRows||{},p={id:n,model:t};return e.additionalRowGroups?.pinnedRows?.[r]?.includes(p)?w({},e,{dataRowIdToModelLookup:a,tree:l,treeDepths:c}):w({},e,{dataRowIdToModelLookup:a,tree:l,treeDepths:c,additionalRowGroups:w({},e.additionalRowGroups,{pinnedRows:w({},d,{[r]:[...d[r]||[],p]})})})}const uoe=e=>{const t=f.useRef(null),n=f.useCallback(r=>{const s=e.current.caches.pinnedRows||{},i=t.current;t.current=s;let a=w({},r,{additionalRowGroups:w({},r.additionalRowGroups,{pinnedRows:{}})});if(i){const l=c=>{a.tree[c]?.type==="pinnedRow"&&(delete a.tree[c],delete a.dataRowIdToModelLookup[c],delete e.current.caches.rows.dataRowIdToModelLookup[c])};i.topIds?.forEach(l),i.bottomIds?.forEach(l)}if(s.topIds?.forEach(l=>{a=sO({groupingParams:a,rowModel:s.idLookup[l],rowId:l,position:"top",apiRef:e,isAutoGenerated:!1})}),s.bottomIds?.forEach(l=>{a=sO({groupingParams:a,rowModel:s.idLookup[l],rowId:l,position:"bottom",apiRef:e,isAutoGenerated:!1})}),s.bottomIds?.length||s.topIds?.length){const l=u=>!(a.tree[u]&&a.tree[u].type==="pinnedRow"),c=a.tree[Qe];a.tree[Qe]=w({},c,{children:c.children.filter(l)}),a.dataRowIds=a.dataRowIds.filter(l)}return a},[e]);ht(e,"hydrateRows",n)},Vf=(e,t)=>{if(typeof e.start!="number")return e;const{pageSize:n,rowCount:r}=t,s=e.start-e.start%n,i=e.end+n-e.end%n-1,a=r!==void 0&&r!==-1?Math.max(0,r-1):1/0;return w({},e,{start:s,end:Math.min(a,i)})},iO=({apiRef:e,visibleRows:t,range:n})=>{let{firstRowIndex:r,lastRowIndex:s}=n;const i=t.slice(n.firstRowIndex,n.lastRowIndex);let a=0,l=i.length-1,c=!1;for(;!c&&r<s;){const u=St(e,i[a].id)?.type==="skeletonRow",d=St(e,i[l].id)?.type==="skeletonRow";u&&d&&(c=!0),u||(a+=1,r+=1),d||(l-=1,s-=1)}return c?{firstRowIndex:r,lastRowIndex:s}:void 0},doe=(e,t)=>{const n=ue(e,Bn),r=ue(e,cn),s=f.useRef({firstRowToRender:0,lastRowToRender:0}),i=t.rowsLoadingMode!=="server",a=f.useCallback(u=>{if(i)return;const d={firstRowToRender:u.firstRowIndex,lastRowToRender:u.lastRowIndex,sortModel:n,filterModel:r};if(!(s.current.firstRowToRender===u.firstRowIndex&&s.current.lastRowToRender===u.lastRowIndex)){if(s.current={firstRowToRender:u.firstRowIndex,lastRowToRender:u.lastRowIndex},n.length===0&&r.items.length===0){const p=ds(e,{pagination:t.pagination,paginationMode:t.paginationMode}),g=iO({apiRef:e,visibleRows:p.rows,range:{firstRowIndex:u.firstRowIndex,lastRowIndex:u.lastRowIndex}});if(!g)return;d.firstRowToRender=g.firstRowIndex,d.lastRowToRender=g.lastRowIndex}e.current.publishEvent("fetchRows",d)}},[e,i,t.pagination,t.paginationMode,n,r]),l=f.useCallback(u=>{if(i)return;e.current.requestPipeProcessorsApplication("hydrateRows");const d=Hi(e),p={firstRowToRender:d.firstRowIndex,lastRowToRender:d.lastRowIndex,sortModel:u,filterModel:r};e.current.publishEvent("fetchRows",p)},[e,i,r]),c=f.useCallback(u=>{if(i)return;e.current.requestPipeProcessorsApplication("hydrateRows");const d=Hi(e),p={firstRowToRender:d.firstRowIndex,lastRowToRender:d.lastRowIndex,sortModel:n,filterModel:u};e.current.publishEvent("fetchRows",p)},[e,i,n]);xe(e,"renderedRowsIntervalChange",a),xe(e,"sortModelChange",l),xe(e,"filterModelChange",c),Mt(e,"fetchRows",t.onFetchRows)},aO="auto-generated-skeleton-row-root",poe=e=>`${aO}-${e}`,foe=(e,t)=>{const n=f.useCallback(r=>{const s=r.tree[Qe];if(t.rowsLoadingMode!=="server"||!t.rowCount||s.children.length>=t.rowCount)return r;const i=w({},r.tree),a=[...s.children];for(let l=0;l<t.rowCount-s.children.length;l+=1){const c=poe(l);a.push(c);const u={type:"skeletonRow",id:c,parent:Qe,depth:0};i[c]=u}return i[Qe]=w({},s,{children:a}),w({},r,{tree:i})},[t.rowCount,t.rowsLoadingMode]);ht(e,"hydrateRows",n)};var ps=(function(e){return e[e.VIEWPORT=0]="VIEWPORT",e[e.SCROLL_END=1]="SCROLL_END",e})(ps||{});const hoe={firstRowToRender:0,lastRowToRender:0},_f=e=>`${aO}-${e}`,goe=(e,t)=>{const n=f.useCallback(()=>{e.current.setStrategyAvailability(bo.DataSource,Jn.LazyLoading,t.dataSource&&t.lazyLoading?()=>!0:()=>!1)},[e,t.lazyLoading,t.dataSource]),[r,s]=f.useState(!1),i=f.useRef(hoe),a=f.useRef(0),l=f.useRef(null),c=f.useRef(!1),u=f.useRef(null),d=f.useRef(null),p=f.useCallback(L=>{e.current.dataSource.fetchRows(Qe,L)},[e]),g=f.useMemo(()=>ur(p,0),[p]),h=fe(L=>{c.current||e.current.dataSource.cache.get(L)!==void 0||g(L)}),b=f.useCallback(()=>{d.current!==null&&(clearInterval(d.current),d.current=null)},[]),m=fe(L=>{b(),!(t.dataSourceRevalidateMs<=0)&&(d.current=setInterval(()=>{h(L)},t.dataSourceRevalidateMs))}),y=f.useCallback(()=>{e.current.setLoading(!0),e.current.dataSource.cache.clear(),c.current=!0,a.current=0;const L=fn(e),N=Bn(e),_=cn(e),H={start:0,end:L.pageSize-1,sortModel:N,filterModel:_};p(H)},[e,p]),C=f.useCallback((L,N)=>{if(L===ps.VIEWPORT&&N===ps.SCROLL_END){y();return}const B=[...e.current.state.rows.tree[Qe].children],$=e.current.state.pagination.rowCount;B.length>$&&y()},[e,y]),S=f.useCallback(()=>{const L=e.current.state.rows.tree,N=L[Qe],_=[...N.children],H=e.current.state.pagination.rowCount,B=_.length;if(B===0)return;let $=!1;if(l.current===ps.VIEWPORT)for(let V=0;V<H-B;V+=1){const z=_f(V+B);_.push(z);const j={type:"skeletonRow",id:z,parent:Qe,depth:0};L[z]=j,$=!0}$&&(L[Qe]=w({},N,{children:_}),e.current.setState(V=>w({},V,{rows:w({},V.rows,{tree:L})}),"addSkeletonRows"))},[e]),x=f.useCallback(L=>{const N=L===-1?ps.SCROLL_END:ps.VIEWPORT;l.current!==null&&C(l.current,N),l.current!==N&&(l.current=N)},[C]),E=f.useCallback(L=>{if("error"in L)return;const{response:N,fetchParams:_}=L,H=e.current.state.pagination.rowCount,B=e.current.state.rows.tree,$=e.current.state.rows.dataRowIdToModelLookup;if((N.rowCount!==void 0||H===void 0)&&e.current.setRowCount(N.rowCount===void 0?-1:N.rowCount),c.current&&L.fetchParams.start===0)e.current.scroll({top:0}),e.current.setRows(N.rows);else{const V=B[Qe],z=[...V.children],j=Ub(e),G=typeof _.start=="string"?Math.max(j.indexOf(_.start),0):_.start,Q=z[G];if(Q&&B[Q]?.type!=="skeletonRow"){const Y=N.rows.map(X=>ho(e,X)),K=z.slice(G,G+N.rows.length);if(K.length===Y.length&&K.every((X,ee)=>X===Y[ee])){const X=N.rows.filter((ee,W)=>{const le=$[K[W]];return!ro(ee,le)});if(X.length===0){e.current.setLoading(!1);return}e.current.updateRows(X)}else{for(let ee=G;ee<G+N.rows.length&&ee<z.length;ee+=1){const W=z[ee];if(W&&B[W]?.type!=="skeletonRow"){delete B[W],delete $[W];const le=_f(ee);z[ee]=le,B[le]={type:"skeletonRow",id:le,parent:Qe,depth:0}}}let X=0;N.rows.forEach(ee=>{const W=ho(e,ee);if(B[W]||$[W]){const le=z.indexOf(W);if(le!==-1){const oe=_f(le);z[le]=oe,B[oe]={type:"skeletonRow",id:oe,parent:Qe,depth:0}}delete B[W],delete $[W],X+=1}}),X>0&&(B[Qe]=w({},V,{children:z}),e.current.setState(ee=>w({},ee,{rows:w({},ee.rows,{tree:B,dataRowIdToModelLookup:$})}))),e.current.unstable_replaceRows(G,N.rows)}}else{let Y=0;N.rows.forEach(K=>{const J=ho(e,K);if(B[J]||$[J]){const X=z.indexOf(J);if(X!==-1){const ee=_f(X);z[X]=ee,B[ee]={type:"skeletonRow",id:ee,parent:Qe,depth:0}}delete B[J],delete $[J],Y+=1}}),Y>0&&(B[Qe]=w({},V,{children:z}),e.current.setState(K=>w({},K,{rows:w({},K.rows,{tree:B,dataRowIdToModelLookup:$})}))),e.current.unstable_replaceRows(G,N.rows)}}c.current=!1,l.current===null&&x(e.current.state.pagination.rowCount),S(),e.current.setLoading(!1),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:L.fetchParams,response:N},!1),l.current===ps.VIEWPORT&&m(L.fetchParams),e.current.requestPipeProcessorsApplication("hydrateRows")},[e,x,S,m]),P=f.useCallback(()=>{c.current||l.current===null||(x(e.current.state.pagination.rowCount),S(),e.current.requestPipeProcessorsApplication("hydrateRows"))},[e,x,S]),M=fe(()=>{if(c.current||l.current!==ps.SCROLL_END)return;const L=Hi(e);if(a.current>=L.lastRowIndex)return;a.current=L.lastRowIndex;const N=fn(e),_=Bn(e),H=cn(e),B={start:L.lastRowIndex,end:L.lastRowIndex+N.pageSize-1,sortModel:_,filterModel:H};e.current.setLoading(!0),p(Vf(B,{pageSize:N.pageSize,rowCount:e.current.state.pagination.rowCount}))}),D=f.useCallback(L=>{if(c.current)return;const N=Bn(e),_=cn(e),H={start:L.firstRowIndex,end:L.lastRowIndex-1,sortModel:N,filterModel:_};if(i.current.firstRowToRender===L.firstRowIndex&&i.current.lastRowToRender===L.lastRowIndex)return;i.current={firstRowToRender:L.firstRowIndex,lastRowToRender:L.lastRowIndex};const B=ds(e),$=iO({apiRef:e,visibleRows:B.rows,range:L}),V=fn(e);if(!$){if(l.current===ps.VIEWPORT){const z=Vf(H,{pageSize:V.pageSize,rowCount:e.current.state.pagination.rowCount});h(z),m(z)}return}H.start=$.firstRowIndex,H.end=$.lastRowIndex,p(Vf(H,{pageSize:V.pageSize,rowCount:e.current.state.pagination.rowCount}))},[e,p,h,m]),O=f.useMemo(()=>rT(D,t.lazyLoadingRequestThrottleMs),[t.lazyLoadingRequestThrottleMs,D]);f.useEffect(()=>()=>{O.clear(),b()},[O,b]),f.useEffect(()=>{t.dataSourceRevalidateMs<=0&&b()},[t.dataSourceRevalidateMs,b]),f.useEffect(()=>b,[b]);const k=f.useCallback(L=>{c.current=!0,O.clear(),b(),a.current=0;const N=fn(e),_=cn(e),H={start:0,end:N.pageSize-1,sortModel:L,filterModel:_};e.current.setLoading(!0),g(H)},[e,g,O,b]),I=f.useCallback(L=>{c.current=!0,O.clear(),b(),a.current=0;const N=fn(e),_=Bn(e),H={start:0,end:N.pageSize-1,sortModel:_,filterModel:L};e.current.setLoading(!0),g(H)},[e,g,O,b]),F=f.useCallback(L=>{u.current=L.id},[]),T=f.useCallback(()=>{u.current=null},[]),R=f.useCallback(()=>{s(e.current.getActiveStrategy(bo.DataSource)===Jn.LazyLoading)},[e]),A=f.useCallback(L=>{if(!r)return L;const N=Hi(e);if(N.lastRowIndex===0)return L;const _=fn(e),H=Vf({start:N.firstRowIndex,end:N.lastRowIndex-1},{pageSize:_.pageSize,rowCount:e.current.state.pagination.rowCount});return w({},L,{start:H.start,end:H.end})},[e,r]);ht(e,"getRowsParams",A),yo(e,Jn.LazyLoading,"dataSourceRowsUpdate",E),xe(e,"strategyAvailabilityChange",R),xe(e,"rowCountChange",vn(r,P)),xe(e,"rowsScrollEndIntersection",vn(r,M)),xe(e,"renderedRowsIntervalChange",vn(r,O)),xe(e,"sortModelChange",vn(r,k)),xe(e,"filterModelChange",vn(r,I)),xe(e,"rowDragStart",vn(r,F)),xe(e,"rowDragEnd",vn(r,T)),f.useEffect(()=>{n()},[n])},moe=U("div",{slot:"internal",shouldForwardProp:void 0})({position:"sticky",left:0,width:0,height:0}),boe=(e,t)=>{const n=f.useRef(null),r=Pn(),s=f.useRef(null),i=t.rowsLoadingMode==="client"&&!!t.onRowsScrollEnd,a=t.dataSource&&t.lazyLoading,l=i||a,c=ue(e,()=>l&&an(e).isReady),u=fe(([b])=>{const m=b.intersectionRatio;b.isIntersecting&&m===1&&(n.current?.disconnect(),s.current=null,e.current.publishEvent("rowsScrollEndIntersection"))});f.useEffect(()=>{const b=e.current.virtualScrollerRef.current;if(!c||!b)return;n.current?.disconnect();const m=fP(e),y=t.scrollEndThreshold-m;n.current=new IntersectionObserver(u,{threshold:1,root:b,rootMargin:`0px 0px ${y}px 0px`}),s.current&&n.current.observe(s.current)},[e,u,c,t.scrollEndThreshold]);const d=b=>{s.current!==b&&(n.current?.disconnect(),s.current=b,s.current&&n.current?.observe(s.current))},p=f.useCallback(b=>{l&&r.start(0,()=>d(b))},[l,r]),h={getInfiniteLoadingTriggerElement:f.useCallback(({lastRowId:b})=>l?v.jsx(moe,{ref:p,role:"presentation"},`trigger-${b}`):null,[l,p])};et(e,h,"private")},yoe=1/0;let gu=(function(e){return e[e.QUEUED=0]="QUEUED",e[e.PENDING=1]="PENDING",e[e.SETTLED=2]="SETTLED",e[e.UNKNOWN=3]="UNKNOWN",e})({});class voe{pendingRequests=new Set;queuedRequests=new Set;settledRequests=new Set;constructor(t,n=yoe){this.api=t.current,this.maxConcurrentRequests=n}processQueue=async()=>{if(this.queuedRequests.size===0||this.pendingRequests.size>=this.maxConcurrentRequests)return;const t=Math.min(this.maxConcurrentRequests-this.pendingRequests.size,this.queuedRequests.size);if(t===0)return;const n=Array.from(this.queuedRequests);for(let r=0;r<t;r+=1){const s=n[r];this.queuedRequests.delete(s),this.pendingRequests.add(s),this.api.fetchRowChildren(s)}};queue=async(t,n={})=>{const{showChildrenLoading:r=!0}=n,s={};t.forEach(i=>{this.queuedRequests.add(i),r&&(s[i]=!0)}),r&&this.api.setState(i=>w({},i,{dataSource:w({},i.dataSource,{loading:w({},i.dataSource.loading,s)})})),this.processQueue()};setRequestSettled=t=>{this.pendingRequests.delete(t),this.settledRequests.add(t),this.processQueue()};clear=()=>{this.queuedRequests.clear(),Array.from(this.pendingRequests).forEach(t=>this.clearPendingRequest(t))};clearPendingRequest=t=>{this.api.dataSource.setChildrenLoading(t,!1),this.pendingRequests.delete(t),this.processQueue()};getRequestStatus=t=>this.pendingRequests.has(t)?gu.PENDING:this.queuedRequests.has(t)?gu.QUEUED:this.settledRequests.has(t)?gu.SETTLED:gu.UNKNOWN;getActiveRequestsCount=()=>this.pendingRequests.size+this.queuedRequests.size}const Coe=(e,t)=>{let r=e[t].parent;const s=[];for(;r&&r!==Qe;){const i=e[r];s.push(i.groupingKey??""),r=i.parent}return s.reverse()},F0={loading:{},errors:{}},woe=(e,t,n={})=>{const r=ue(e,gP),s=lo(()=>new voe(e)).current,i=f.useRef(0),a=f.useCallback(()=>(s.clear(),i.current=0,e.current.state.dataSource!==F0&&e.current.resetDataSourceState(),null),[e,s]),l=f.useCallback((I,F)=>{F&&!ro(F,I.previousRow)&&e.current.dataSource.cache.clear();const T=Coe(ct(e),I.rowId);e.current.updateNestedRows([F],T)},[e]),{api:c,debouncedFetchRows:u,strategyProcessor:d,events:p,startPolling:g,cacheChunkManager:h,cache:b}=fte(e,t,w({fetchRowChildren:s.queue,clearDataSourceState:a,handleEditRow:l},n)),m=f.useCallback(()=>{const I=t.treeData?Jn.GroupedData:Jn.Default,F=I===Jn.GroupedData?Jn.Default:Jn.GroupedData;e.current.setStrategyAvailability(bo.DataSource,F,()=>!1),e.current.setStrategyAvailability(bo.DataSource,I,t.dataSource&&!t.lazyLoading?()=>!0:()=>!1)},[e,t.dataSource,t.lazyLoading,t.treeData]),y=t.onDataSourceError,C=f.useCallback((I,F,T)=>{const R=ct(e),A=qn(e),L=new Set(T.map(H=>ho(e,H))),N=ss(R,I,!1,!0),_=[];N.forEach(H=>{if(L.has(H))return;const B=ss(R,H,!1,!1);for(let $=B.length-1;$>=0;$-=1){const V=B[$];L.has(V)||_.push(w({},A[V],{_action:"delete"}))}_.push(w({},A[H],{_action:"delete"}))}),_.length>0&&e.current.updateNestedRows(_,F),e.current.updateNestedRows(T,F)},[e]),S=f.useCallback(async I=>{const F=e.current.unstable_applyPipeProcessors("getRowsParams",{});if(!t.treeData&&(F.groupFields?.length??0)===0){s.clearPendingRequest(I);return}const T=t.dataSource?.getRows;if(!T){s.clearPendingRequest(I);return}const R=e.current.getRowNode(I);if(!R){s.clearPendingRequest(I);return}const A=w({},Tf(e),F,{groupKeys:R.path}),N=h.getCacheKeys(A).map(B=>b.get(B)),_=N.some(B=>B===void 0)?void 0:If.mergeResponses(N);if(_!==void 0){const B=_.rows;s.setRequestSettled(I),C(I,R.path,B),_.rowCount!==void 0&&e.current.setRowCount(_.rowCount),e.current.setRowChildrenExpansion(I,!0),e.current.dataSource.setChildrenLoading(I,!1);return}(qne(e)[I]??null)&&e.current.dataSource.setChildrenFetchError(I,null);try{const B=await T(A);if(!e.current.getRowNode(I)){s.clearPendingRequest(I);return}if(s.getRequestStatus(I)===gu.UNKNOWN){e.current.dataSource.setChildrenLoading(I,!1);return}s.setRequestSettled(I),h.splitResponse(A,B).forEach((V,z)=>{b.set(z,V)}),B.rowCount!==void 0&&e.current.setRowCount(B.rowCount),C(I,R.path,B.rows),e.current.setRowChildrenExpansion(I,!0)}catch(B){const $=B;e.current.dataSource.setChildrenFetchError(I,$),typeof y=="function"?y(new CT({message:$.message,params:A,cause:$})):yn(["MUI X: A call to `dataSource.getRows()` threw an error which was not handled because `onDataSourceError()` is missing.","To handle the error pass a callback to the `onDataSourceError` prop, for example `<DataGrid onDataSourceError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/server-side-data/#error-handling."],"error")}finally{e.current.dataSource.setChildrenLoading(I,!1),s.setRequestSettled(I)}},[s,h,b,y,C,e,t.treeData,t.dataSource?.getRows]),x=f.useCallback((I,F)=>{e.current.setState(T=>{if(!T.dataSource.loading[I]&&F===!1)return T;const R=w({},T.dataSource.loading);return F===!1?delete R[I]:R[I]=F,w({},T,{dataSource:w({},T.dataSource,{loading:R})})})},[e]),E=f.useCallback((I,F)=>{e.current.setState(T=>{const R=w({},T.dataSource.errors);return F===null&&R[I]!==void 0?delete R[I]:R[I]=F,w({},T,{dataSource:w({},T.dataSource,{errors:R})})})},[e]),P=f.useCallback(()=>{e.current.setState(I=>w({},I,{dataSource:F0}))},[e]),M=f.useCallback(I=>{const F=qn(e),T=St(e,I);if(!T||T.type!=="group"||T.children.length===0)return;const R=[],A=L=>{const N=St(e,L);N&&(N.type==="group"&&N.children.length>0&&N.children.forEach(A),R.push(w({},F[L],{_action:"delete"})))};T.children.forEach(A),R.length>0&&e.current.updateNestedRows(R,T.path)},[e]),D=f.useCallback(I=>{if("error"in I){e.current.setRows([]);return}const{response:F,options:{keepChildrenExpanded:T}}=I;if(F.rowCount!==void 0&&e.current.setRowCount(F.rowCount),T===!1)e.current.setRows(F.rows);else{const R=ct(e),A=qn(e),L=new Set(ss(R,Qe,!1,!0));F.rows.forEach(_=>{L.delete(ho(e,_))});const N=[];L.size>0&&L.forEach(_=>{const H=ss(R,_,!1,!1);for(let B=H.length-1;B>=0;B-=1)N.push(w({},A[H[B]],{_action:"delete"}));N.push(w({},A[_],{_action:"delete"}))}),e.current.updateRows(F.rows.concat(N))}e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:I.fetchParams,response:F},!0),g()},[e,g]),O={dataSource:w({},c.public.dataSource,{setChildrenLoading:x,setChildrenFetchError:E})},k={fetchRowChildren:S,resetDataSourceState:P,removeChildrenRows:M};return f.useEffect(()=>{if(r&&r.length&&i.current<r.length){const I=r.slice(i.current);s.queue(I),i.current=r.length}},[e,s,r]),{api:{public:O,private:k},debouncedFetchRows:u,flatTreeStrategyProcessor:d,groupedDataStrategyProcessor:{strategyName:Jn.GroupedData,group:"dataSourceRowsUpdate",processor:D},events:p,setStrategyAvailability:m,cacheChunkManager:h,cache:b}};function Soe(e){return JSON.stringify([e.filterModel,e.sortModel,e.groupKeys,e.start,e.end])}const xoe=e=>w({},e,{dataSource:F0}),Poe={cacheOptions:{getKey:Soe}},Eoe=(e,t)=>{const{api:n,flatTreeStrategyProcessor:r,groupedDataStrategyProcessor:s,events:i,setStrategyAvailability:a}=woe(e,t,Poe);et(e,n.public,"public"),et(e,n.private,"private"),yo(e,r.strategyName,r.group,r.processor),yo(e,s.strategyName,s.group,s.processor),Object.entries(i).forEach(([l,c])=>{xe(e,l,c)}),f.useEffect(()=>{a()},[a])},Toe=[...mY,e=>e.pagination&&e.hideFooterRowCount&&"MUI X: The `hideFooterRowCount` prop has no effect when the pagination is enabled."||void 0,e=>e.treeData&&e.filterMode==="server"&&!e.dataSource&&'MUI X: The `filterMode="server"` prop is not available when the `treeData` is enabled.'||void 0,e=>!e.pagination&&e.checkboxSelectionVisibleOnly&&"MUI X: The `checkboxSelectionVisibleOnly` prop has no effect when the pagination is not enabled."||void 0,e=>e.signature!==Mo.DataGrid&&e.paginationMode==="client"&&e.rowsLoadingMode!=="server"&&Rb(e.rowCount)&&'MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect. `rowCount` is only meant to be used with `paginationMode="server"`.'||void 0,e=>e.signature!==Mo.DataGrid&&(e.rowsLoadingMode==="server"||e.onRowsScrollEnd)&&e.lazyLoading&&'MUI X: Usage of the client side lazy loading (`rowsLoadingMode="server"` or `onRowsScrollEnd=...`) cannot be used together with server side lazy loading `lazyLoading="true"`.'||void 0];let Ioe=(function(e){return e.Default="grouping-columns",e.DataSource="grouping-columns-data-source",e})({});const lO=({node:e,tree:t,treeDepths:n})=>{w0({node:e,tree:t,treeDepths:n}),e.type==="group"&&e.footerId!=null&&w0({node:t[e.footerId],tree:t,treeDepths:n})},cO=({node:e,tree:t,treeDepths:n})=>{lO({node:e,tree:t,treeDepths:n});const r=t[e.parent];r.id!==Qe&&r.children.length===0&&(r.isAutoGenerated?cO({node:r,tree:t,treeDepths:n}):t[r.id]={type:"leaf",id:r.id,depth:r.depth,parent:r.parent,groupingKey:r.groupingKey})},Moe=({node:e,tree:t,treeDepths:n})=>{LM({previousTree:null,tree:t,treeDepths:n,node:e,updatedNode:{id:DM(FM({id:e.id,tree:t})),isAutoGenerated:!0}})},uO=({id:e,tree:t,treeDepths:n,groupingName:r})=>{const s=t[e];s.type==="group"&&s.children.length>0?Moe({node:s,tree:t,treeDepths:n}):r===eo.Default||r===Ioe.Default?cO({node:s,tree:t,treeDepths:n}):lO({node:s,tree:t,treeDepths:n})},dO=e=>{const t=w({},e.previousTree),n=w({},e.previousTreeDepth),r=e.previousGroupsToFetch?new Set([...e.previousGroupsToFetch]):new Set([]);for(let i=0;i<e.nodes.inserted.length;i+=1){const{id:a,path:l,serverChildrenCount:c}=e.nodes.inserted[i];O0({previousTree:e.previousTree,tree:t,treeDepths:n,id:a,path:l,serverChildrenCount:c,onDuplicatePath:e.onDuplicatePath,isGroupExpandedByDefault:e.isGroupExpandedByDefault,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth,groupsToFetch:r,maxDepth:e.maxDepth})}for(let i=0;i<e.nodes.removed.length;i+=1){const a=e.nodes.removed[i];uO({tree:t,treeDepths:n,id:a,groupingName:e.groupingName})}for(let i=0;i<e.nodes.modified.length;i+=1){const{id:a,path:l,serverChildrenCount:c}=e.nodes.modified[i],u=FM({tree:t,id:a});ro(u,l)||(uO({tree:t,treeDepths:n,id:a,groupingName:e.groupingName}),O0({previousTree:e.previousTree,tree:t,treeDepths:n,id:a,path:l,serverChildrenCount:c,onDuplicatePath:e.onDuplicatePath,isGroupExpandedByDefault:e.isGroupExpandedByDefault,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth,groupsToFetch:r,maxDepth:e.maxDepth}))}const s=ss(t,Qe,!0);return{tree:t,treeDepths:n,groupingName:e.groupingName,dataRowIds:s,groupsToFetch:Array.from(r)}},Ooe=["hideDescendantCount"],koe=(e,t)=>{const n=f.useCallback(()=>{e.current.setStrategyAvailability(bo.RowTree,eo.Default,t.treeData&&!t.dataSource?()=>!0:()=>!1)},[e,t.treeData,t.dataSource]),r=f.useCallback(()=>{const u=t.groupingColDef;let d;if(typeof u=="function"){const m={groupingName:eo.Default,fields:[]};d=u(m)}else d=u;const p=d??{},{hideDescendantCount:g}=p,h=ie(p,Ooe),b=w({},zM,{renderCell:m=>v.jsx(jM,w({},m,{hideDescendantCount:g})),headerName:e.current.getLocaleText("treeDataGroupingHeaderName")});return w({},b,h,Ff)},[e,t.groupingColDef]),s=f.useCallback(u=>{if(t.dataSource)return u;const d=Ff.field,p=t.treeData,g=u.lookup[d];if(p){const h=r();g&&(h.width=g.width,h.flex=g.flex),u.lookup[d]=h,g==null&&(u.orderedFields=[d,...u.orderedFields])}else!p&&g&&(delete u.lookup[d],u.orderedFields=u.orderedFields.filter(h=>h!==d));return u},[t.treeData,t.dataSource,r]),i=f.useCallback(u=>{if(!t.getTreeDataPath)throw new Error("MUI X: No getTreeDataPath given.");const d=g=>({id:g,path:t.getTreeDataPath(u.dataRowIdToModelLookup[g]).map(h=>({key:h,field:null}))}),p=(g,h,b)=>{throw new Error(["MUI X: The path returned by `getTreeDataPath` should be unique.",`The rows with id #${g} and #${h} have the same.`,`Path: ${JSON.stringify(b.map(m=>m.key))}.`].join(`
415
+ `))};return u.updates.type==="full"?XM({previousTree:u.previousTree,nodes:u.updates.rows.map(d),defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:eo.Default,onDuplicatePath:p}):dO({nodes:{inserted:u.updates.actions.insert.map(d),modified:u.updates.actions.modify.map(d),removed:u.updates.actions.remove},previousTree:u.previousTree,previousTreeDepth:u.previousTreeDepths,defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:eo.Default})},[t.getTreeDataPath,t.defaultGroupingExpansionDepth,t.isGroupExpandedByDefault]),a=f.useCallback(u=>{const d=ct(e);return one({rowTree:d,isRowMatchingFilters:u.isRowMatchingFilters,disableChildrenFiltering:t.disableChildrenFiltering,filterModel:u.filterModel,filterValueGetter:u.filterValueGetter,apiRef:e})},[e,t.disableChildrenFiltering]),l=f.useCallback(u=>{const d=ct(e);return vne({rowTree:d,sortRowList:u.sortRowList,disableChildrenSorting:t.disableChildrenSorting})},[e,t.disableChildrenSorting]);ht(e,"hydrateColumns",s),yo(e,eo.Default,"rowTreeCreation",i),yo(e,eo.Default,"filtering",a),yo(e,eo.Default,"sorting",l),yo(e,eo.Default,"visibleRowsLookupCreation",$M),cs(()=>{n()});const c=f.useRef(!0);f.useEffect(()=>{c.current?c.current=!1:n()},[n])},Doe=(e,t,n)=>{RJ(e,t),noe(e,t),koe(e,t),Qne(e,t),Nee(e,t),foe(e,t),uoe(e),aoe(e,t),zne(e,t),Mee(e),un(FJ,e,t),un(Fte,e,t),un(kee,e,t),un(roe,e,t),un(eoe,e,t),un(Bne,e,t),un(zJ,e,t),un(loe,e,t),un(xee,e,t),un(dee,e,t),un(wee,e,t),un(ree,e,t),un(Ree,e,t),un(fee,e,t),un(eee,e,t),un(ate,e,t),un(WJ,e,t),un(Zte,e,t),un(nte,e,t),un(BJ,e,t),un(qee,e,t),un(Vq,e,t),un(xoe,e,t),un(_ee,e,t),un(sY,e,t),un(cte,e,t),Nte(e,t),nne(e,t),lee(e,t),Dee(e,t),Hne(e,t),coe(e,t),jJ(e,t),Pee(e,t,n),lte(e,t),Oee(e,t,n),toe(e,t),Wee(e),Yee(e,t),See(e,t,n),see(e,t),hee(e,t),oee(e,t,n),Lee(e,t),UJ(e,t),Qte(e,t),rte(e,t),pee(e,t),soe(e,t),$ee(e,t),Ute(e,t),doe(e,t),goe(e,t),boe(e,t),HJ(e),YJ(e,t),JJ(e,t),_J(e,t),Hee(e,t),Aee(e,t),Gee(e),_q(e,t),Eoe(e,t),ute(e,t),cs(()=>{e.current.runAppliersForPendingProcessors()}),f.useEffect(()=>{e.current.runAppliersForPendingProcessors()})},Foe=e=>w({signature:"DataGridPro"},e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}),Noe=w({},my,{autosizeOnMount:!1,defaultGroupingExpansionDepth:0,disableAutosize:!1,disableChildrenFiltering:!1,disableChildrenSorting:!1,disableColumnPinning:!1,getDetailPanelHeight:()=>500,headerFilters:!1,keepColumnPositionIfDraggedOutside:!1,rowSelectionPropagation:IW,rowReordering:!1,rowsLoadingMode:"client",scrollEndThreshold:80,treeData:!1,lazyLoading:!1,lazyLoadingRequestThrottleMs:500,dataSourceRevalidateMs:0,listView:!1,multipleColumnsSortingMode:"withModifierKey",pinnedColumnsSectionSeparator:"border-and-shadow",pinnedRowsSectionSeparator:"border-and-shadow"}),Roe=Ane,Loe=e=>{const t=io(),n=f.useMemo(()=>Lh({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),r=f.useMemo(()=>w({},iG,n.localeText),[n.localeText]),s=f.useMemo(()=>gY({defaultSlots:Roe,slots:n.slots}),[n.slots]);return f.useMemo(()=>w({},Noe,n,{localeText:r,slots:s},Foe(n)),[n,r,s])},pO={hooks:{useCSSVariables:SQ,useGridAriaAttributes:Vne,useGridRowAriaAttributes:_ne,useGridRowsOverridableMethods:Wte,useGridParamsOverridableMethods:SJ,useIsCellEditable:xJ,useCellAggregationResult:()=>null,useFilterValueGetter:e=>e.current.getRowValue}},fO="MTc3NDQ4MzIwMDAwMA==",$oe=v.jsx(AI,{packageName:"x-data-grid-pro",releaseInfo:fO}),N0=ze(function(t,n){const r=Loe(t),s=Dte(r.apiRef,r);return Doe(s,r,pO),au("x-data-grid-pro",fO),process.env.NODE_ENV!=="production"&&bY(r,Toe),v.jsx($Z,{privateApiRef:s,configuration:pO,props:r,children:v.jsx(GY,w({className:r.className,style:r.style,sx:r.sx},r.slotProps?.root,{ref:n,children:$oe}))})});process.env.NODE_ENV!=="production"&&(N0.displayName="DataGridProRaw");const hO=f.memo(N0);process.env.NODE_ENV!=="production"&&(hO.displayName="DataGridPro"),N0.propTypes={apiRef:o.shape({current:o.object}),"aria-label":o.string,"aria-labelledby":o.string,autoHeight:o.bool,autoPageSize:o.bool,autosizeOnMount:o.bool,autosizeOptions:o.shape({columns:o.arrayOf(o.string),disableColumnVirtualization:o.bool,expand:o.bool,includeHeaderFilters:o.bool,includeHeaders:o.bool,includeOutliers:o.bool,outliersFactor:o.number}),cellModesModel:o.object,checkboxSelection:o.bool,checkboxSelectionVisibleOnly:o.bool,classes:o.object,className:o.string,clipboardCopyCellDelimiter:o.string,columnBufferPx:o.number,columnFilterDebounceMs:o.number,columnGroupHeaderHeight:o.number,columnGroupingModel:o.arrayOf(o.object),columnHeaderHeight:o.number,columns:o.arrayOf(o.object).isRequired,columnVisibilityModel:o.object,dataSource:o.shape({getChildrenCount:o.func,getGroupKey:o.func,getRows:o.func.isRequired,updateRow:o.func}),dataSourceCache:o.shape({clear:o.func.isRequired,get:o.func.isRequired,set:o.func.isRequired}),dataSourceRevalidateMs:o.number,defaultGroupingExpansionDepth:o.number,density:o.oneOf(["comfortable","compact","standard"]),detailPanelExpandedRowIds:o.instanceOf(Set),disableAutosize:o.bool,disableChildrenFiltering:o.bool,disableChildrenSorting:o.bool,disableColumnFilter:o.bool,disableColumnMenu:o.bool,disableColumnPinning:o.bool,disableColumnReorder:o.bool,disableColumnResize:o.bool,disableColumnSelector:o.bool,disableColumnSorting:o.bool,disableDensitySelector:o.bool,disableEval:o.bool,disableMultipleColumnsFiltering:o.bool,disableMultipleColumnsSorting:o.bool,disableMultipleRowSelection:o.bool,disableRowSelectionExcludeModel:o.bool,disableRowSelectionOnClick:o.bool,disableVirtualization:o.bool,editMode:o.oneOf(["cell","row"]),estimatedRowCount:o.number,experimentalFeatures:o.shape({warnIfFocusStateIsNotSynced:o.bool}),filterDebounceMs:o.number,filterMode:o.oneOf(["client","server"]),filterModel:o.shape({items:o.arrayOf(o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any})).isRequired,logicOperator:o.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:o.bool,quickFilterLogicOperator:o.oneOf(["and","or"]),quickFilterValues:o.array}),getCellClassName:o.func,getDetailPanelContent:o.func,getDetailPanelHeight:o.func,getEstimatedRowHeight:o.func,getRowClassName:o.func,getRowHeight:o.func,getRowId:o.func,getRowSpacing:o.func,getTreeDataPath:o.func,groupingColDef:o.oneOfType([o.func,o.object]),headerFilterHeight:o.number,headerFilters:o.bool,hideFooter:o.bool,hideFooterPagination:o.bool,hideFooterRowCount:o.bool,hideFooterSelectedRowCount:o.bool,ignoreDiacritics:o.bool,ignoreValueFormatterDuringExport:o.oneOfType([o.shape({clipboardExport:o.bool,csvExport:o.bool}),o.bool]),initialState:o.object,isCellEditable:o.func,isGroupExpandedByDefault:o.func,isRowReorderable:o.func,isRowSelectable:o.func,isValidRowReorder:o.func,keepColumnPositionIfDraggedOutside:o.bool,keepNonExistentRowsSelected:o.bool,label:o.string,lazyLoading:o.bool,lazyLoadingRequestThrottleMs:o.number,listView:o.bool,listViewColumn:o.shape({align:o.oneOf(["center","left","right"]),cellClassName:o.oneOfType([o.func,o.string]),display:o.oneOf(["flex","text"]),field:o.string.isRequired,renderCell:o.func}),loading:o.bool,localeText:o.object,logger:o.shape({debug:o.func.isRequired,error:o.func.isRequired,info:o.func.isRequired,warn:o.func.isRequired}),logLevel:o.oneOf(["debug","error","info","warn",!1]),multipleColumnsSortingMode:o.oneOf(["always","withModifierKey"]),nonce:o.string,onCellClick:o.func,onCellDoubleClick:o.func,onCellEditStart:o.func,onCellEditStop:o.func,onCellKeyDown:o.func,onCellModesModelChange:o.func,onClipboardCopy:o.func,onColumnHeaderClick:o.func,onColumnHeaderContextMenu:o.func,onColumnHeaderDoubleClick:o.func,onColumnHeaderEnter:o.func,onColumnHeaderLeave:o.func,onColumnHeaderOut:o.func,onColumnHeaderOver:o.func,onColumnOrderChange:o.func,onColumnResize:o.func,onColumnVisibilityModelChange:o.func,onColumnWidthChange:o.func,onDataSourceError:o.func,onDensityChange:o.func,onDetailPanelExpandedRowIdsChange:o.func,onFetchRows:o.func,onFilterModelChange:o.func,onMenuClose:o.func,onMenuOpen:o.func,onPaginationMetaChange:o.func,onPaginationModelChange:o.func,onPinnedColumnsChange:o.func,onPreferencePanelClose:o.func,onPreferencePanelOpen:o.func,onProcessRowUpdateError:o.func,onResize:o.func,onRowClick:o.func,onRowCountChange:o.func,onRowDoubleClick:o.func,onRowEditStart:o.func,onRowEditStop:o.func,onRowModesModelChange:o.func,onRowOrderChange:o.func,onRowSelectionModelChange:o.func,onRowsScrollEnd:o.func,onSortModelChange:o.func,onStateChange:o.func,pageSizeOptions:o.arrayOf(o.oneOfType([o.number,o.shape({label:o.string.isRequired,value:o.number.isRequired})]).isRequired),pagination:o.bool,paginationMeta:o.shape({hasNextPage:o.bool}),paginationMode:o.oneOf(["client","server"]),paginationModel:o.shape({page:o.number.isRequired,pageSize:o.number.isRequired}),pinnedColumns:o.object,pinnedColumnsSectionSeparator:o.oneOf(["border-and-shadow","border","shadow"]),pinnedRows:o.shape({bottom:o.arrayOf(o.object),top:o.arrayOf(o.object)}),pinnedRowsSectionSeparator:o.oneOf(["border-and-shadow","border"]),processRowUpdate:o.func,resizeThrottleMs:o.number,rowBufferPx:o.number,rowCount:o.number,rowHeight:o.number,rowModesModel:o.object,rowReordering:o.bool,rows:o.arrayOf(o.object),rowSelection:o.bool,rowSelectionModel:o.shape({ids:o.instanceOf(Set).isRequired,type:o.oneOf(["exclude","include"]).isRequired}),rowSelectionPropagation:o.shape({descendants:o.bool,parents:o.bool}),rowsLoadingMode:o.oneOf(["client","server"]),rowSpacingType:o.oneOf(["border","margin"]),rowSpanning:o.bool,scrollbarSize:o.number,scrollEndThreshold:o.number,setTreeDataPath:o.func,showCellVerticalBorder:o.bool,showColumnVerticalBorder:o.bool,showToolbar:o.bool,slotProps:o.object,slots:o.object,sortingMode:o.oneOf(["client","server"]),sortingOrder:o.arrayOf(o.oneOf(["asc","desc"])),sortModel:o.arrayOf(o.shape({field:o.string.isRequired,sort:o.oneOf(["asc","desc"])})),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabNavigation:o.oneOf(["all","content","header","none"]),throttleRowsMs:o.number,treeData:o.bool,virtualizeColumnsWithAutoRowHeight:o.bool};const Aoe=yJ,Voe=({contextMenu:e,setContextMenu:t,options:n,checked:r,optionGroup:s})=>v.jsxs(v.Fragment,{children:[v.jsx($d,{open:e!==null,onClose:()=>t(null),anchorReference:"anchorPosition",anchorPosition:e!==null?{top:e.mouseY,left:e.mouseX}:void 0,slots:{transition:es},slotProps:{paper:{sx:{bgcolor:i=>s==="toolbar"?i.palette["gr-base-dark"].main:i.palette["gr-base-light"].main,borderRadius:"12px"},elevation:1}},sx:{cursor:"pointer"},children:n.filter(i=>!i.hide).map((i,a)=>v.jsxs(An,{children:[a!==0&&n[a-1].group!==i.group?v.jsx(sc,{}):null,v.jsxs(sr,{onClick:i.click,disabled:i.disabled,children:[v.jsx(fi,{sx:{color:l=>s==="toolbar"?l.palette["gr-base-light"].main:l.palette["gr-base-dark"].main},children:i.icon}),v.jsx(Vr,{children:v.jsx(kt,{sx:{color:l=>s==="toolbar"?l.palette["gr-base-light"].main:l.palette["gr-base-dark"].main},children:i.name})}),i.selected?v.jsxs(kt,{sx:{pl:3,color:l=>s==="toolbar"?l.palette["gr-base-light"].main:l.palette["gr-base-dark"].main},variant:"body2",children:["selecionados",":",r.length]}):null,i.onlyOne?v.jsx(kt,{sx:{pl:3,color:l=>s==="toolbar"?l.palette["gr-base-light"].main:l.palette["gr-base-dark"].main},variant:"body2",children:"solo uno"}):null]},a)]},a))}),n.filter(i=>!i.hide).map((i,a)=>v.jsx(An,{children:i.dialog},a))]}),R0=gt(v.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),_oe=({label:e,value:t,setValue:n,values:r,placeholder:s,disabled:i,fullWidth:a,white:l})=>{const c=u=>v.jsx(R0,{...u,sx:{color:l?"black !important":"white !important",...u.sx}});return v.jsx(v.Fragment,{children:v.jsxs(Ms,{fullWidth:a,focused:!0,children:[v.jsx(di,{id:`filter-table-label-${e}`,sx:{color:l?"black":"white",position:"absolute","&.Mui-focused":{color:l?"black":"white"},'&[data-shrink="false"]':{transform:"translateY(12px) translateX(12px)"}},children:e}),v.jsxs(Os,{labelId:`filter-table-label-${e}`,id:`filter-${e}`,value:t,label:e,onChange:u=>n(u.target.value),color:"gr-yellow",sx:{color:l?"black":"white"},IconComponent:c,MenuProps:{PaperProps:{style:{maxHeight:"500px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main,color:l?"black":"white","&:hover":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main}}}}},displayEmpty:!0,disabled:i,children:[v.jsx(sr,{sx:{mt:2},disabled:!0,value:"",children:v.jsx("em",{children:s})}),r.map(u=>v.jsx(sr,{value:u.value,children:u.label},u.value))]})]})})},Boe=({label:e,value:t,setValue:n,values:r,placeholder:s,disabled:i,fullWidth:a,white:l})=>{const c=u=>v.jsx(R0,{...u,sx:{color:l?"black !important":"white !important",...u.sx}});return v.jsx(v.Fragment,{children:v.jsxs(Ms,{fullWidth:a,focused:!0,children:[v.jsx(di,{id:`filter-table-label-${e}`,sx:{color:l?"black":"white",position:"absolute","&.Mui-focused":{color:l?"black":"white"},'&[data-shrink="false"]':{transform:"translateY(12px) translateX(12px)"}},children:e}),v.jsxs(Os,{labelId:`filter-table-label-${e}`,id:`filter-${e}`,value:t,label:e,onChange:u=>{const{target:{value:d}}=u;n(typeof d=="string"?d.split(","):d)},color:"gr-yellow",sx:{color:l?"black":"white"},IconComponent:c,MenuProps:{PaperProps:{style:{maxHeight:"500px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main,color:l?"black":"white","&:hover":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main}}}}},renderValue:u=>r.filter(d=>u.includes(d.value)).map(d=>d.label).join(", "),displayEmpty:!0,disabled:i,multiple:!0,children:[v.jsx(sr,{disabled:!0,value:"",children:v.jsx("em",{children:s})}),r.map(u=>v.jsxs(sr,{value:u.value,children:[v.jsx(va,{checked:t.includes(u.value)}),v.jsx(Vr,{slotProps:{primary:{sx:{color:"#FFFFFF"}}},primary:u.label})]},u.value))]})]})})},Bf=e=>{const t=[],n=[];return e.forEach(r=>{r.dateName==="start"?t.push(r):n.push(r)}),{startDate:t,endDate:n}},Hoe=e=>e.map((t,n)=>n===e.length-1?w({},t,{separator:null}):t);function gO(e){return e.fieldType??"multi-input"}const zoe=["value","referenceDate"],ul={emptyValue:[null,null],getTodayValue:(e,t,n)=>[hp(e,t,n),hp(e,t,n)],getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ie(e,zoe);const s=r.adapter.isValid(t[0]),i=r.adapter.isValid(t[1]);if(s&&i)return t;const a=n??nx(r),l=Array.isArray(a)?a[0]:a,c=Array.isArray(a)?a[1]:a;return[s?t[0]:l,i?t[1]:c]},cleanValue:(e,t)=>t.map(n=>FS(e,n)),areValuesEqual:(e,t,n)=>fp(e,t[0],n[0])&&fp(e,t[1],n[1]),isSameError:(e,t)=>t!==null&&e[1]===t[1]&&e[0]===t[0],hasError:e=>e[0]!=null||e[1]!=null,defaultErrorState:[null,null],getTimezone:(e,t)=>{const n=e.isValid(t[0])?e.getTimezone(t[0]):null,r=e.isValid(t[1])?e.getTimezone(t[1]):null;if(n!=null&&r!=null&&n!==r)throw new Error("MUI X: The timezone of the start and the end date should be the same.");return n??r},setTimezone:(e,t,n)=>[n[0]==null?null:e.setTimezone(n[0],t),n[1]==null?null:e.setTimezone(n[1],t)]},joe=({dateSeparator:e="–"})=>({updateReferenceValue:(t,n,r)=>{const s=t.isValid(n[0]),i=t.isValid(n[1]);return!s&&!i?r:s&&i?n:s?[n[0],r[0]]:[r[1],n[1]]},getSectionsFromValue:([t,n],r)=>{const s=(i,a)=>{const l=r(i);return l.map((c,u)=>u===l.length-1&&a==="start"?w({},c,{dateName:a,endSeparator:`${c.endSeparator} ${e} `}):w({},c,{dateName:a}))};return[...s(t,"start"),...s(n,"end")]},getV7HiddenInputValueFromSections:t=>{const n=Bf(t);return _S([...n.startDate,...n.endDate])},getV6InputValueFromSections:(t,n,r)=>{const s=Bf(t);return BS([...s.startDate,...s.endDate],n,r)},parseValueStr:(t,n,r)=>{const[s,i]=t.split(e);return[s,i].map((a,l)=>a==null?null:r(a.trim(),n[l]))},getDateFromSection:(t,n)=>t[Hf(n)],getDateSectionsFromValue:(t,n)=>{const r=Bf(t);return Hf(n)===0?Hoe(r.startDate):r.endDate},updateDateInValue:(t,n,r)=>Hf(n)===0?[r,t[1]]:[t[0],r],clearDateSections:(t,n)=>{const r=Bf(t);return Hf(n)===0?[...r.startDate.map(s=>w({},s,{value:""})),...r.endDate]:[...r.startDate,...r.endDate.map(s=>w({},s,{value:""}))]}});function Hf(e){return e==null||e.dateName==="start"?0:1}const dl=(e,t)=>e.isValid(t[0])&&e.isValid(t[1])&&!e.isBefore(t[1],t[0]),L0=(e,t,n)=>dl(e,n)&&e.isWithinRange(t,n),zf=(e,t,n)=>dl(e,n)&&e.isSameDay(t,n[0]),mu=(e,t,n)=>dl(e,n)&&e.isSameDay(t,n[1]),Goe=(e,t,n)=>dl(e,t)?`${e.format(t[0],n)} - ${e.format(t[1],n)}`:null,Woe=["shouldDisableDate"],bu=({adapter:e,value:t,timezone:n,props:r})=>{const[s,i]=t,{shouldDisableDate:a}=r,l=ie(r,Woe),c=[Ns({adapter:e,value:s,timezone:n,props:w({},l,{shouldDisableDate:u=>!!a?.(u,"start")})}),Ns({adapter:e,value:i,timezone:n,props:w({},l,{shouldDisableDate:u=>!!a?.(u,"end")})})];return c[0]||c[1]?c:s===null||i===null?[null,null]:dl(e,t)?[null,null]:["invalidRange","invalidRange"]};bu.valueManager=ul;function Uoe(e={}){const{enableAccessibleFieldDOMStructure:t=!0,dateSeparator:n}=e;return f.useMemo(()=>({valueType:"date",validator:bu,internal_valueManager:ul,internal_fieldValueManager:joe({dateSeparator:n}),internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:Yoe,internal_useOpenPickerButtonAriaLabel:qoe}),[t,n])}function qoe(e){const t=vt(),n=To();return f.useMemo(()=>n.openRangePickerDialogue(Goe(t,e,"fullDate")),[e,n,t])}function Yoe(e){const t=vt(),n=Rs(e);return f.useMemo(()=>w({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}const Koe=e=>{const t=Uoe(e);return yp({manager:t,props:e})},Xoe=["slots","slotProps"],pl=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiSingleInputDateRangeField"}),{slots:s,slotProps:i}=r,a=ie(r,Xoe),l=Ip({slotProps:i,ref:n,externalForwardedProps:a}),c=Koe(l);return v.jsx(Mp,{slots:s,slotProps:i,inputRef:a.inputRef,children:v.jsx(Tp,{fieldResponse:c,defaultOpenPickerIcon:c_})})});process.env.NODE_ENV!=="production"&&(pl.displayName="SingleInputDateRangeField"),pl.fieldType="single-input",process.env.NODE_ENV!=="production"&&(pl.propTypes={autoFocus:o.bool,className:o.string,clearable:o.bool,clearButtonPosition:o.oneOf(["end","start"]),color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,dateSeparator:o.string,defaultValue:o.arrayOf(o.object),disabled:o.bool,disableFuture:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.bool,focused:o.bool,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Ft,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxDate:o.object,minDate:o.object,name:o.string,onBlur:o.func,onChange:o.func,onClear:o.func,onError:o.func,onFocus:o.func,onSelectedSectionsChange:o.func,readOnly:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),required:o.bool,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldRespectLeadingZeros:o.bool,size:o.oneOf(["medium","small"]),slotProps:o.object,slots:o.object,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,unstableFieldRef:o.oneOfType([o.func,o.object]),value:o.arrayOf(o.object),variant:o.oneOf(["filled","outlined","standard"])});const Zoe=({label:e,value:t,setValue:n,disabled:r,fullWidth:s})=>{const{format:i}=he.useContext(gr);return v.jsx(v.Fragment,{children:v.jsx(Tc,{dateAdapter:Jx,children:v.jsx(pl,{label:e,value:t,onChange:a=>{n(a)},InputProps:{sx:{borderRadius:"16px"}},size:"small",color:"gr-yellow",slotProps:{textField:{InputLabelProps:{sx:{color:"white !important"}}}},focused:!0,format:i,disabled:r,fullWidth:s})})})};function Qoe(e){return ke("MuiDateRangePickerToolbar",e)}Me("MuiDateRangePickerToolbar",["root","container"]);const fl=f.createContext(null);process.env.NODE_ENV!=="production"&&(fl.displayName="PickerRangePositionContext");function Joe(){const e=f.useContext(fl);if(e==null)throw new Error(["MUI X: The `usePickerRangePositionContext` can only be called in components that are used inside a picker component"].join(`
416
+ `));return e}function ere(){return f.useContext(fl)}const tre=["toolbarFormat","className","classes"],nre=e=>pe({root:["root"],container:["container"]},Qoe,e),ore=U(ub,{name:"MuiDateRangePickerToolbar",slot:"Root"})({}),rre=U("div",{name:"MuiDateRangePickerToolbar",slot:"Container"})({display:"flex"}),$0=f.forwardRef(function(t,n){const r=vt(),s=Ot({props:t,name:"MuiDateRangePickerToolbar"}),{toolbarFormat:i,className:a,classes:l}=s,c=ie(s,tre),{value:u}=Si(),d=To(),p=cb(),{rangePosition:g,setRangePosition:h}=Joe(),b=nre(l),m=i??r.formats.shortDate,y=(C,S)=>r.isValid(C)?r.formatByString(C,m):S;return v.jsx(ore,w({},c,{toolbarTitle:d.dateRangePickerToolbarTitle,className:se(b.root,a),ownerState:p,ref:n,children:v.jsxs(rre,{className:b.container,children:[v.jsx(hb,{variant:u[0]==null?"h6":"h5",value:y(u[0],d.start),selected:g==="start",onClick:()=>h("start")}),v.jsxs(kt,{variant:"h5",children:[" ","–"," "]}),v.jsx(hb,{variant:u[1]==null?"h6":"h5",value:y(u[1],d.end),selected:g==="end",onClick:()=>h("end")})]})}))});process.env.NODE_ENV!=="production"&&($0.displayName="DateRangePickerToolbar"),process.env.NODE_ENV!=="production"&&($0.propTypes={classes:o.object,className:o.string,hidden:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleId:o.string,toolbarFormat:o.string,toolbarPlaceholder:o.node});function A0(e,t){const n=Ot({props:e,name:t}),r=Rs(n),s=f.useMemo(()=>n.localeText?.toolbarTitle==null?n.localeText:w({},n.localeText,{dateRangePickerToolbarTitle:n.localeText.toolbarTitle}),[n.localeText]);return w({},n,r,{localeText:s,slots:w({toolbar:$0},n.slots)})}const sre=e=>ke("MuiDateRangeCalendar",e),mO=Me("MuiDateRangeCalendar",["root","monthContainer","dayDragging"]);function bO(e,t){return Array.isArray(e)?t==="start"?e[0]:e[1]:e}function V0({adapter:e,range:t,newDate:n,rangePosition:r,allowRangeFlip:s=!1,shouldMergeDateAndTime:i=!1,referenceDate:a}){const l=e.isValid(t[0])?t[0]:null,c=e.isValid(t[1])?t[1]:null;i&&n&&(l&&r==="start"&&(n=Ci(e,n,l)),c&&r==="end"&&(n=Ci(e,n,c)));const u=a&&n&&i?Ci(e,n,bO(a,r)):n;if(r==="start"){const g=s?{nextSelection:"start",newRange:[c,u]}:{nextSelection:"end",newRange:[u,null]};return c&&e.isAfter(u,c)?g:{nextSelection:"end",newRange:[u,c]}}const d=s?{nextSelection:"end",newRange:[u,l]}:{nextSelection:"end",newRange:[u,null]};if(l&&e.isBeforeDay(u,l))return d;let p=u;return l&&u&&e.isSameDay(l,u)&&e.isBefore(u,l)&&(p=e.endOfDay(u)),{nextSelection:"start",newRange:[l,p]}}function ire(e){if(e.newDate==null)return[null,null];const[t,n]=e.range,{newRange:r}=V0(e);if(!t||!n)return r;const[s,i]=r;return e.rangePosition==="end"?[n,i]:[s,t]}function are(e){return ke("MuiDateRangePickerDay",e)}const gn=Me("MuiDateRangePickerDay",["root","rangeIntervalDayHighlight","rangeIntervalDayHighlightStart","rangeIntervalDayHighlightEnd","rangeIntervalPreview","rangeIntervalDayPreview","rangeIntervalDayPreviewStart","rangeIntervalDayPreviewEnd","outsideCurrentMonth","startOfMonth","endOfMonth","firstVisibleCell","lastVisibleCell","hiddenDayFiller","day","dayOutsideRangeInterval","dayInsideRangeInterval","notSelectedDate"]),lre=["className","classes","isEndOfHighlighting","isEndOfPreviewing","isHighlighting","isPreviewing","isStartOfHighlighting","isStartOfPreviewing","isVisuallySelected","sx","draggable","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],cre=(e,t)=>{const{isDaySelected:n,isDayOutsideMonth:r,isDaySelectionStart:s,isDaySelectionEnd:i,isDayInsideSelection:a,isDayPreviewStart:l,isDayPreviewEnd:c,isDayPreviewed:u,isDayStartOfMonth:d,isDayEndOfMonth:p,isDayFirstVisibleCell:g,isDayLastVisibleCell:h,isDayFillerCell:b}=t;return pe({root:["root",n&&"rangeIntervalDayHighlight",s&&"rangeIntervalDayHighlightStart",i&&"rangeIntervalDayHighlightEnd",r&&"outsideCurrentMonth",d&&"startOfMonth",p&&"endOfMonth",g&&"firstVisibleCell",h&&"lastVisibleCell",b&&"hiddenDayFiller"],rangeIntervalPreview:["rangeIntervalPreview",u&&"rangeIntervalDayPreview",(l||d)&&"rangeIntervalDayPreviewStart",(c||p)&&"rangeIntervalDayPreviewEnd"],day:["day",!n&&"notSelectedDate",!n&&"dayOutsideRangeInterval",!a&&"dayInsideRangeInterval"]},are,e)},jf={borderTopRightRadius:"50%",borderBottomRightRadius:"50%"},Gf={borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%"},ure=U("div",{name:"MuiDateRangePickerDay",slot:"Root",overridesResolver:(e,t)=>[{[`&.${gn.rangeIntervalDayHighlight}`]:t.rangeIntervalDayHighlight},{[`&.${gn.rangeIntervalDayHighlightStart}`]:t.rangeIntervalDayHighlightStart},{[`&.${gn.rangeIntervalDayHighlightEnd}`]:t.rangeIntervalDayHighlightEnd},{[`&.${gn.firstVisibleCell}`]:t.firstVisibleCell},{[`&.${gn.lastVisibleCell}`]:t.lastVisibleCell},{[`&.${gn.startOfMonth}`]:t.startOfMonth},{[`&.${gn.endOfMonth}`]:t.endOfMonth},{[`&.${gn.outsideCurrentMonth}`]:t.outsideCurrentMonth},{[`&.${gn.hiddenDayFiller}`]:t.hiddenDayFiller},t.root]})(({theme:e})=>({variants:[{props:{isDayFillerCell:!1},style:{[`&:first-of-type .${gn.rangeIntervalDayPreview}`]:w({},Gf,{borderLeftColor:(e.vars||e).palette.divider}),[`&:last-of-type .${gn.rangeIntervalDayPreview}`]:w({},jf,{borderRightColor:(e.vars||e).palette.divider})}},{props:{isDayFillerCell:!1,isDaySelected:!0},style:{borderRadius:0,color:(e.vars||e).palette.primary.contrastText,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:$n(e.palette.primary.main,e.palette.action.focusOpacity),"&:first-of-type":Gf,"&:last-of-type":jf}},{props:({ownerState:{isDayFillerCell:t,isDaySelectionStart:n,isDayFirstVisibleCell:r}})=>!t&&(n||r),style:w({},Gf,{paddingLeft:0})},{props:({ownerState:{isDayFillerCell:t,isDaySelectionEnd:n,isDayLastVisibleCell:r}})=>!t&&(n||r),style:w({},jf,{paddingRight:0})}]})),dre=U("div",{name:"MuiDateRangePickerDay",slot:"RangeIntervalPreview",overridesResolver:(e,t)=>[{[`&.${gn.rangeIntervalDayPreview}`]:t.rangeIntervalDayPreview},{[`&.${gn.rangeIntervalDayPreviewStart}`]:t.rangeIntervalDayPreviewStart},{[`&.${gn.rangeIntervalDayPreviewEnd}`]:t.rangeIntervalDayPreviewEnd},t.rangeIntervalPreview]})(({theme:e})=>({border:"2px solid transparent",variants:[{props:{isDayPreviewed:!0,isDayFillerCell:!1},style:{borderRadius:0,border:`2px dashed ${(e.vars||e).palette.divider}`,borderLeftColor:"transparent",borderRightColor:"transparent"}},{props:({ownerState:{isDayPreviewed:t,isDayFillerCell:n,isDayPreviewStart:r,isDayFirstVisibleCell:s}})=>t&&!n&&(r||s),style:w({borderLeftColor:(e.vars||e).palette.divider},Gf)},{props:({ownerState:{isDayPreviewed:t,isDayFillerCell:n,isDayPreviewEnd:r,isDayLastVisibleCell:s}})=>t&&!n&&(r||s),style:w({borderRightColor:(e.vars||e).palette.divider},jf)}]})),pre=U(Km,{name:"MuiDateRangePickerDay",slot:"Day",overridesResolver:(e,t)=>[{[`&.${gn.dayInsideRangeInterval}`]:t.dayInsideRangeInterval},{[`&.${gn.dayOutsideRangeInterval}`]:t.dayOutsideRangeInterval},{[`&.${gn.notSelectedDate}`]:t.notSelectedDate},t.day]})({transform:"scale(1.1)","& > *":{transform:"scale(0.9)"},variants:[{props:{draggable:!0},style:{cursor:"grab",touchAction:"none"}}]}),_0=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiDateRangePickerDay"}),{className:s,classes:i,isEndOfHighlighting:a,isEndOfPreviewing:l,isHighlighting:c,isPreviewing:u,isStartOfHighlighting:d,isStartOfPreviewing:p,isVisuallySelected:g,sx:h,draggable:b,isFirstVisibleCell:m,isLastVisibleCell:y,day:C,selected:S,disabled:x,today:E,outsideCurrentMonth:P,disableMargin:M,disableHighlightToday:D,showDaysOutsideCurrentMonth:O}=r,k=ie(r,lre);au("x-date-pickers-pro","MTc3MTU0NTYwMDAwMA==");const I=vt(),F=qm({day:C,selected:S,disabled:x,today:E,outsideCurrentMonth:P,disableMargin:M,disableHighlightToday:D,showDaysOutsideCurrentMonth:O}),T=w({},F,{isDaySelectionStart:d,isDaySelectionEnd:a,isDayInsideSelection:c&&!d&&!a,isDaySelected:c,isDayPreviewed:u,isDayPreviewStart:p,isDayPreviewEnd:l,isDayInsidePreview:u&&!p&&!l,isDayStartOfMonth:I.isSameDay(C,I.startOfMonth(C)),isDayEndOfMonth:I.isSameDay(C,I.endOfMonth(C)),isDayFirstVisibleCell:m,isDayLastVisibleCell:y,isDayFillerCell:P&&!O}),R=cre(i,T);return v.jsx(ure,{className:se(R.root,s),ownerState:T,sx:h,children:v.jsx(dre,{className:R.rangeIntervalPreview,ownerState:T,children:v.jsx(pre,w({},k,{ref:n,day:C,selected:g,disabled:x,today:E,outsideCurrentMonth:P,disableMargin:!0,disableHighlightToday:D,showDaysOutsideCurrentMonth:O,className:R.day,ownerState:T,draggable:b,isFirstVisibleCell:m,isLastVisibleCell:y}))})})});process.env.NODE_ENV!=="production"&&(_0.displayName="DateRangePickerDayRaw"),process.env.NODE_ENV!=="production"&&(_0.propTypes={action:o.oneOfType([o.func,o.shape({current:o.shape({focusVisible:o.func.isRequired})})]),centerRipple:o.bool,classes:o.object,className:o.string,component:o.elementType,day:o.object.isRequired,disabled:o.bool,disableHighlightToday:o.bool,disableMargin:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,draggable:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,isAnimating:o.bool,isEndOfHighlighting:o.bool.isRequired,isEndOfPreviewing:o.bool.isRequired,isFirstVisibleCell:o.bool.isRequired,isHighlighting:o.bool.isRequired,isLastVisibleCell:o.bool.isRequired,isPreviewing:o.bool.isRequired,isStartOfHighlighting:o.bool.isRequired,isStartOfPreviewing:o.bool.isRequired,isVisuallySelected:o.bool,onDaySelect:o.func.isRequired,onFocusVisible:o.func,onMouseEnter:o.func,outsideCurrentMonth:o.bool.isRequired,selected:o.bool,showDaysOutsideCurrentMonth:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,today:o.bool,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})])});const yO=f.memo(_0);process.env.NODE_ENV!=="production"&&(yO.displayName="DateRangePickerDay");const hl=(e,t,n)=>{const r=e.dataset.timestamp;if(!r)return null;const s=+r;return t.date(new Date(s).toISOString(),n)},fre=e=>e.target.dataset.timestamp===e.dataTransfer.getData("draggingDate"),vO=e=>e&&(e instanceof HTMLButtonElement&&!e.disabled?e:e.children.length?vO(e.children[0]):null),B0=(e,t)=>{if(e.changedTouches?.length===1&&e.touches.length<=1){const n=document.elementFromPoint(e.changedTouches[0].clientX,e.changedTouches[0].clientY),r=vO(n);return t&&r===e.changedTouches[0].target?null:r}return null},hre=({adapter:e,setRangeDragDay:t,setIsDragging:n,isDragging:r,onDatePositionChange:s,onDrop:i,disableDragEditing:a,dateRange:l,timezone:c})=>{const u=f.useRef(null);f.useEffect(()=>{u.current=document.createElement("img"),u.current.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},[]);const d=E=>{if(E==null)return!1;const P=!a&&!!l[0]&&!!l[1],M=zf(e,E,l),D=mu(e,E,l);return P&&(M||D)},p=fe(E=>{const P=hl(E.target,e,c);if(!d(P))return;E.stopPropagation(),u.current&&E.dataTransfer.setDragImage(u.current,0,0),t(P),E.dataTransfer.effectAllowed="move",n(!0);const M=E.target.dataset;M.timestamp&&E.dataTransfer.setData("draggingDate",M.timestamp),M.position&&s(M.position)}),g=fe(E=>{const P=B0(E);if(!P)return;const M=hl(P,e,c);d(M)&&t(M)}),h=fe(E=>{r&&(E.preventDefault(),E.stopPropagation(),E.dataTransfer.dropEffect="move",t(hl(E.target,e,c)))}),b=fe(E=>{const P=B0(E);if(!P)return;const M=hl(P,e,c);if(M&&t(M),!(P===E.changedTouches[0].target)||!d(M))return;n(!0);const k=E.target.dataset;k.position&&s(k.position)}),m=fe(E=>{r&&(E.preventDefault(),E.stopPropagation())}),y=fe(E=>{r&&(E.preventDefault(),E.stopPropagation(),E.dataTransfer.dropEffect="move")}),C=fe(E=>{if(!r)return;t(null),n(!1);const P=B0(E,!0);if(!P)return;P.focus();const M=hl(P,e,c);M&&i(M)}),S=fe(E=>{r&&(E.preventDefault(),E.stopPropagation(),n(!1),t(null))}),x=fe(E=>{if(!r||(E.preventDefault(),E.stopPropagation(),n(!1),t(null),E.currentTarget.focus(),fre(E)))return;const P=hl(E.target,e,c);P&&i(P)});return{onDragStart:p,onDragEnter:h,onDragLeave:m,onDragOver:y,onDragEnd:S,onDrop:x,onTouchStart:g,onTouchMove:b,onTouchEnd:C}},gre=({disableDragEditing:e,adapter:t,onDatePositionChange:n,onDrop:r,dateRange:s,timezone:i})=>{const[a,l]=f.useState(!1),[c,u]=f.useState(null),d=fe(h=>{t.isEqual(h,c)||u(h)}),p=f.useMemo(()=>{const[h,b]=s;if(c){if(h&&t.isBefore(c,h))return"start";if(b&&t.isAfter(c,b))return"end"}return null},[s,c,t]),g=hre({adapter:t,onDatePositionChange:n,onDrop:r,setIsDragging:l,isDragging:a,setRangeDragDay:d,disableDragEditing:e,dateRange:s,timezone:i});return f.useMemo(()=>w({isDragging:a,rangeDragDay:c,draggingDatePosition:p},e?{}:g),[a,c,p,e,g])},Wf=e=>{const[t,n]=ao({name:"useRangePosition",state:"rangePosition",controlled:e.rangePosition,default:e.defaultRangePosition??"start"}),r=fe(s=>{n(s),e.onRangePositionChange?.(s)});return{rangePosition:t,setRangePosition:r}},mre=40,bre=["calendars","month","monthIndex","labelId"],yre=["format","slots","slotProps","currentMonth","onMonthChange","disableFuture","disablePast","minDate","maxDate","timezone","reduceAnimations","views","view"],vre=U(Hm,{slot:"internal"})({padding:"12px 16px 4px 16px",display:"flex",alignItems:"center",justifyContent:"space-between"}),H0=f.forwardRef(function(t,n){const r=vt(),s=To(),{calendars:i,month:a,monthIndex:l,labelId:c}=t,u=ie(t,bre),{format:d,slots:p,slotProps:g,currentMonth:h,onMonthChange:b,disableFuture:m,disablePast:y,minDate:C,maxDate:S,timezone:x}=u,E=ie(u,yre),P=ex(h,{disableFuture:m,maxDate:S,timezone:x}),M=tx(h,{disablePast:y,minDate:C,timezone:x});if(i===1)return v.jsx(Fp,w({},u,{labelId:c,ref:n}));const D=()=>b(r.addMonths(h,1)),O=()=>b(r.addMonths(h,-1));return v.jsx(vre,w({},E,{ref:n,onGoToPrevious:O,onGoToNext:D,isPreviousHidden:l!==0,isPreviousDisabled:M,previousLabel:s.previousMonth,isNextHidden:l!==i-1,isNextDisabled:P,nextLabel:s.nextMonth,slots:p,slotProps:g,labelId:c,children:r.formatByString(a,d??`${r.formats.month} ${r.formats.year}`)}))});process.env.NODE_ENV!=="production"&&(H0.displayName="PickersRangeCalendarHeader"),process.env.NODE_ENV!=="production"&&(H0.propTypes={calendars:o.oneOf([1,2,3]).isRequired,classes:o.object,className:o.string,currentMonth:o.object.isRequired,disabled:o.bool,disableFuture:o.bool,disablePast:o.bool,format:o.string,labelId:o.string,maxDate:o.object.isRequired,minDate:o.object.isRequired,month:o.object.isRequired,monthIndex:o.number.isRequired,onMonthChange:o.func.isRequired,onViewChange:o.func,reduceAnimations:o.bool.isRequired,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string.isRequired,view:o.oneOf(["day","month","year"]).isRequired,views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired).isRequired});const Cre=Me("MuiDateRangePickerDay2",["root","dayOutsideMonth","today","disabled","fillerCell","previewStart","previewEnd","insidePreviewing","selectionStart","selectionEnd","insideSelection","startOfWeek","endOfWeek","startOfMonth","endOfMonth","previewed","selected","draggable"]),wre=["value","defaultValue","referenceDate","onChange","className","classes","disableFuture","disablePast","minDate","maxDate","shouldDisableDate","reduceAnimations","onMonthChange","rangePosition","defaultRangePosition","onRangePositionChange","calendars","currentMonthCalendarPosition","slots","slotProps","loading","renderLoading","disableHighlightToday","focusedView","onFocusedViewChange","readOnly","disabled","showDaysOutsideCurrentMonth","dayOfWeekFormatter","disableAutoMonthSwitching","autoFocus","fixedWeekNumber","disableDragEditing","displayWeekNumber","timezone","availableRangePositions","views","view","openTo","onViewChange"],Sre=["isDragging","rangeDragDay","draggingDatePosition"],xre="MTc3MTU0NTYwMDAwMA==",Pre=U("div",{name:"MuiDateRangeCalendar",slot:"Root"})({display:"flex",flexDirection:"row"}),Ere=U("div",{name:"MuiDateRangeCalendar",slot:"Container",overridesResolver:(e,t)=>t.monthContainer})(({theme:e})=>({"&:not(:last-of-type)":{borderRight:`1px solid ${(e.vars||e).palette.divider}`}})),Tre=(mre+Dc*2)*6,Ire=U(Tx,{slot:"internal"})(({theme:e})=>({minWidth:312,minHeight:Tre,[`&.${mO.dayDragging}`]:{[`& .${Cre.root}, & .${gn.day}`]:{cursor:"grabbing"},[`& .${gn.root}:not(.${gn.rangeIntervalDayHighlightStart}):not(.${gn.rangeIntervalDayHighlightEnd}) .${gn.day}:not(.${gn.notSelectedDate})`]:{opacity:.6}},[`&:not(.${mO.dayDragging}) .${gn.dayOutsideRangeInterval}`]:{"@media (pointer: fine)":{"&:hover":{border:`1px solid ${(e.vars||e).palette.grey[500]}`}}}}));function Mre(e,t){const n=Ot({props:e,name:t}),r=ab(n.reduceAnimations),s=Rs(n);return w({},n,s,{renderLoading:n.renderLoading??(()=>v.jsx("span",{children:"..."})),reduceAnimations:r,loading:e.loading??!1,openTo:n.openTo??"day",views:n.views??["day"],calendars:n.calendars??2,disableDragEditing:n.disableDragEditing??!1,availableRangePositions:n.availableRangePositions??["start","end"]})}const Ore=(e,t)=>{const n={root:["root"],monthContainer:["monthContainer"],dayCalendar:[t.isDraggingDay&&"dayDragging"]};return pe(n,sre,e)},z0=f.forwardRef(function(t,n){const r=Mre(t,"MuiDateRangeCalendar"),s=zd(Um,{defaultMatches:!1}),{value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:g,minDate:h,maxDate:b,shouldDisableDate:m,reduceAnimations:y,onMonthChange:C,rangePosition:S,defaultRangePosition:x,onRangePositionChange:E,calendars:P,currentMonthCalendarPosition:M=1,slots:D,slotProps:O,loading:k,renderLoading:I,disableHighlightToday:F,focusedView:T,onFocusedViewChange:R,readOnly:A,disabled:L,showDaysOutsideCurrentMonth:N,dayOfWeekFormatter:_,disableAutoMonthSwitching:H,autoFocus:B,fixedWeekNumber:$,disableDragEditing:V,displayWeekNumber:z,timezone:j,availableRangePositions:G,views:Q,view:q,openTo:Y,onViewChange:K}=r,J=ie(r,wre),X=ere(),{value:ee,handleValueChange:W,timezone:le}=Na({name:"DateRangeCalendar",timezone:j,value:i,referenceDate:l,defaultValue:a,onChange:c,valueManager:ul}),{view:oe,setFocusedView:re,focusedView:ae,setValueAndGoToNextView:ne}=jm({view:q,views:Q,openTo:Y,onChange:W,onViewChange:K,autoFocus:B,focusedView:T,onFocusedViewChange:R}),te=vt(),ye=at(),{rangePosition:ce,setRangePosition:Se}=Wf({rangePosition:S??X?.rangePosition,defaultRangePosition:x,onRangePositionChange:E??X?.setRangePosition}),we=fe(rt=>{ce!==rt&&Se(rt)}),Be=fe((rt,Lt,Kt=!1)=>{const{nextSelection:It,newRange:en}=V0({newDate:rt,adapter:te,range:ee,rangePosition:ce,allowRangeFlip:Kt,shouldMergeDateAndTime:!0,referenceDate:l}),ko=G.includes(It);ko&&Se(It);const Yi=ce==="end"&&dl(te,en);ne(en,Yi||!ko?"finish":"partial",oe)}),Fe=fe(rt=>{Be(rt,void 0,!0)}),Ye=V||L||A,Ne=f.useMemo(()=>[te.isValid(ee[0])?te.startOfDay(ee[0]):ee[0],te.isValid(ee[1])?te.endOfDay(ee[1]):ee[1]],[ee,te]),Ke=gre({disableDragEditing:Ye,onDrop:Fe,onDatePositionChange:we,adapter:te,dateRange:Ne,timezone:le}),{isDragging:He,rangeDragDay:me,draggingDatePosition:Pe}=Ke,ge=ie(Ke,Sre),{ownerState:Te}=Un(),$e=w({},Te,{isDraggingDay:He}),Ge=Ore(d,$e),ot=f.useMemo(()=>{if(!Ne[0]||!Ne[1]||!me)return[null,null];const rt=V0({adapter:te,range:Ne,newDate:me,rangePosition:ce,allowRangeFlip:!0}).newRange;return rt[0]!==null&&rt[1]!==null?[te.startOfDay(rt[0]),te.endOfDay(rt[1])]:rt},[ce,me,te,Ne]),Tt=f.useMemo(()=>{if(m)return rt=>m(rt,Pe||ce)},[m,ce,Pe]),{calendarState:We,setVisibleDate:Oe,onMonthSwitchingAnimationEnd:Ue}=xx({value:ee[0]||ee[1],referenceDate:bO(l,ce),disableFuture:p,disablePast:g,maxDate:b,minDate:h,onMonthChange:C,reduceAnimations:y,shouldDisableDate:Tt,timezone:le,getCurrentMonthFromVisibleDate:(rt,Lt)=>{const Kt=te.addMonths(Lt,1-M),It=te.endOfMonth(te.addMonths(Kt,P-1));return te.isWithinRange(rt,[Kt,It])?Lt:te.isAfter(rt,It)?te.startOfMonth(te.addMonths(rt,M-1)):te.startOfMonth(te.addMonths(rt,M-P))}}),ut=D?.calendarHeader??H0,zt=nt({elementType:ut,externalSlotProps:O?.calendarHeader,additionalProps:{calendars:P,views:["day"],view:"day",currentMonth:We.currentMonth,onMonthChange:rt=>Oe({target:rt,reason:"header-navigation"}),minDate:h,maxDate:b,disabled:L,disablePast:g,disableFuture:p,reduceAnimations:y,timezone:le,slots:D,slotProps:O},ownerState:$e}),Et=f.useRef(null);f.useEffect(()=>{const rt=ce==="start"?ee[0]:ee[1];if(!te.isValid(rt))return;const Lt=ce==="start"?Et.current?.[0]:Et.current?.[1];if(Et.current=ee,H&&Lt&&te.isEqual(Lt,rt))return;const Kt=P-M,It=te.getMonth(We.currentMonth),en=te.getMonth(rt);if(!te.isSameYear(We.currentMonth,rt)||en<It||en>It+Kt){const ko=ce==="start"?rt:te.addMonths(rt,-Kt);Oe({target:ko,reason:"controlled-value-change"})}},[ce,ee]);const zn={disablePast:g,disableFuture:p,maxDate:b,minDate:h},wn={disableHighlightToday:F,readOnly:A,disabled:L},[jn,Gn]=f.useState(null),_e=f.useMemo(()=>({onMouseLeave:()=>Gn(null)}),[]),Ct=ire({adapter:te,range:Ne,newDate:jn,rangePosition:ce}),Re=fe((rt,Lt)=>{let Kt;Ne[0]==null&&Ne[1]==null||L0(te,Lt,Ne)?Kt=null:Kt=Lt,fp(te,Kt,jn)||Gn(Kt)}),Ze=w({day:yO},D),bt=w({},O,{day:rt=>{const{day:Lt,isDaySelected:Kt}=rt,It=zf(te,Lt,Ne),en=mu(te,Lt,Ne),Yi=!Ye&&Ne[0]&&Ne[1]&&(It||en);let ms;It?ms="start":en&&(ms="end");const Ki=He?zf(te,Lt,ot):It,Ce=He?mu(te,Lt,ot):en;return w({isPreviewing:s?L0(te,Lt,Ct):!1,isStartOfPreviewing:s?zf(te,Lt,Ct):!1,isEndOfPreviewing:s?mu(te,Lt,Ct):!1,isHighlighting:L0(te,Lt,He?ot:Ne),isStartOfHighlighting:Ki,isEndOfHighlighting:He?mu(te,Lt,ot):en,onMouseEnter:s?Re:void 0,isVisuallySelected:Kt||He&&(Ki||Ce),"data-position":ms},ge,{draggable:Yi?!0:void 0},Wn(O?.day,rt)??{})}}),wt=f.useMemo(()=>Array.from({length:P}).map((rt,Lt)=>Lt),[P]),Jt=f.useMemo(()=>{process.env.NODE_ENV!=="production"&&(M>P||M<1)&&yn(["MUI X: The `currentMonthCalendarPosition` prop must be an integer between `1` and the amount of calendars rendered.","For example if you have 2 calendars rendered, it should be equal to either 1 or 2."]);const rt=te.addMonths(We.currentMonth,1-M);return Array.from({length:P}).map((Lt,Kt)=>te.addMonths(rt,Kt))},[te,We.currentMonth,P,M]),so=ae!==null,Co=f.useRef(oe);return f.useEffect(()=>{Co.current!==oe&&(ae===Co.current&&re(oe,!0),Co.current=oe)},[ae,re,oe]),v.jsxs(Pre,w({ref:n,className:se(Ge.root,u),ownerState:$e},J,{children:[v.jsx(AI,{packageName:"x-date-pickers-pro",releaseInfo:xre}),wt.map(rt=>{const Lt=Jt[rt],Kt=`${ye}-grid-${rt}-label`;return v.jsxs(Ere,{className:Ge.monthContainer,children:[v.jsx(ut,w({},zt,{month:Lt,monthIndex:rt,labelId:Kt})),v.jsx(Ire,w({className:Ge.dayCalendar},We,zn,wn,{onMonthSwitchingAnimationEnd:Ue,onFocusedDayChange:It=>Oe({target:It,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:ee,onSelectedDaysChange:Be,currentMonth:Lt,TransitionProps:_e,shouldDisableDate:Tt,hasFocus:so,onFocusedViewChange:It=>re("day",It),showDaysOutsideCurrentMonth:P===1&&N,dayOfWeekFormatter:_,loading:k,renderLoading:I,slots:Ze,slotProps:bt,fixedWeekNumber:$,displayWeekNumber:z,timezone:le,gridLabelId:Kt}))]},rt)})]}))});process.env.NODE_ENV!=="production"&&(z0.displayName="DateRangeCalendar"),process.env.NODE_ENV!=="production"&&(z0.propTypes={autoFocus:o.bool,availableRangePositions:o.arrayOf(o.oneOf(["end","start"]).isRequired),calendars:o.oneOf([1,2,3]),classes:o.object,className:o.string,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,fixedWeekNumber:o.number,focusedView:o.oneOf(["day"]),loading:o.bool,maxDate:o.object,minDate:o.object,onChange:o.func,onFocusedViewChange:o.func,onMonthChange:o.func,onRangePositionChange:o.func,onViewChange:o.func,openTo:o.oneOf(["day"]),rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object.isRequired),o.object]),renderLoading:o.func,shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),view:o.oneOf(["day"]),views:o.arrayOf(o.oneOf(["day"]))});const Uf=({views:e,view:t,onViewChange:n,focusedView:r,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:g,minDate:h,maxDate:b,shouldDisableDate:m,reduceAnimations:y,onMonthChange:C,calendars:S,currentMonthCalendarPosition:x,slots:E,slotProps:P,loading:M,renderLoading:D,disableHighlightToday:O,readOnly:k,disabled:I,showDaysOutsideCurrentMonth:F,dayOfWeekFormatter:T,disableAutoMonthSwitching:R,sx:A,autoFocus:L,fixedWeekNumber:N,disableDragEditing:_,displayWeekNumber:H,timezone:B,availableRangePositions:$})=>v.jsx(z0,{view:t,views:e,onViewChange:n,focusedView:r&&Om(r)?r:null,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:g,minDate:h,maxDate:b,shouldDisableDate:m,reduceAnimations:y,onMonthChange:C,calendars:S,currentMonthCalendarPosition:x,slots:E,slotProps:P,loading:M,renderLoading:D,disableHighlightToday:O,readOnly:k,disabled:I,showDaysOutsideCurrentMonth:F,dayOfWeekFormatter:T,disableAutoMonthSwitching:R,sx:A,autoFocus:L,fixedWeekNumber:N,disableDragEditing:_,displayWeekNumber:H,timezone:B,availableRangePositions:$});process.env.NODE_ENV!=="production"&&(Uf.displayName="renderDateRangeViewCalendar");function j0(e){const{steps:t,rangePositionResponse:n}=e;return JS({steps:t,isViewMatchingStep:(r,s)=>s.rangePosition!==n.rangePosition?!1:s.views==null||s.views.includes(r),onStepChange:({step:r,defaultView:s,setView:i,view:a,views:l})=>{r.rangePosition!==n.rangePosition&&n.setRangePosition(r.rangePosition);const c=r.views==null?s:r.views.find(u=>l.includes(u));c!==a&&i(c)}})}const kre=["props","steps"],Dre=["ownerState"],Fre=e=>{let{props:t,steps:n}=e,r=ie(e,kre);au("x-date-pickers-pro","MTc3MTU0NTYwMDAwMA==");const{slots:s,slotProps:i,inputRef:a,localeText:l}=t,u=gO(s.field)==="single-input",d=u?"dialog":"tooltip",p=Wf(t),g=j0({steps:n,rangePositionResponse:p}),{providerProps:h,renderCurrentView:b,ownerState:m}=Vc(w({},r,{props:t,variant:"desktop",autoFocusView:d==="dialog",viewContainerRole:d,localeText:l,getStepNavigation:g,onPopperExited:fe(()=>p.setRangePosition(t.defaultRangePosition??"start"))})),y=s.field,C=nt({elementType:y,externalSlotProps:i?.field,ownerState:m,additionalProps:{"data-active-range-position":h.contextValue.open?p.rangePosition:void 0}}),S=ie(C,Dre),x=s?.layout??Ti,E=()=>v.jsx(Oc,w({},h,{children:v.jsxs(fl.Provider,{value:p,children:[v.jsx(y,w({},S,{slots:w({},s,S.slots),slotProps:w({},i,S.slotProps)},u&&{inputRef:a})),v.jsx(Ax,{slots:s,slotProps:i,children:v.jsx(x,w({},i?.layout,{slots:s,slotProps:i,children:b()}))})]})}));return process.env.NODE_ENV!=="production"&&(E.displayName="renderPicker"),{renderPicker:E}},G0=f.forwardRef(function(t,n){const r=vt(),s=A0(t,"MuiDesktopDateRangePicker"),i=w({day:Uf},s.viewRenderers),a=w({},s,{closeOnSelect:s.closeOnSelect??!0,viewRenderers:i,format:s.format??r.formats.keyboardDate,calendars:s.calendars??2,views:["day"],openTo:"day",slots:w({field:pl},s.slots),slotProps:w({},s.slotProps,{field:c=>w({},Wn(s.slotProps?.field,c),dp(s)),toolbar:w({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=Fre({ref:n,props:a,valueManager:ul,valueType:"date",validator:bu,steps:null});return l()});process.env.NODE_ENV!=="production"&&(G0.displayName="DesktopDateRangePicker"),G0.propTypes={autoFocus:o.bool,calendars:o.oneOf([1,2,3]),className:o.string,closeOnSelect:o.bool,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ft,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onRangePositionChange:o.func,onSelectedSectionsChange:o.func,open:o.bool,rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),viewRenderers:o.shape({day:o.func})};const Nre=["props","steps"],Rre=["ownerState"],Lre=e=>{let{props:t,steps:n}=e,r=ie(e,Nre);au("x-date-pickers-pro","MTc3MTU0NTYwMDAwMA==");const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=gO(s.field),d=u==="single-input",p=Wf(t),g=To(),h=j0({steps:n,rangePositionResponse:p}),{providerProps:b,renderCurrentView:m,ownerState:y}=Vc(w({},r,{props:t,variant:"mobile",autoFocusView:!0,viewContainerRole:"dialog",localeText:c,getStepNavigation:h,onPopperExited:fe(()=>p.setRangePosition(t.defaultRangePosition??"start"))})),C=b.privateContextValue.labelId,S=i?.toolbar?.hidden??!1,x=s.field,E=nt({elementType:x,externalSlotProps:i?.field,additionalProps:w({},d&&S&&{id:C}),ownerState:y}),P=ie(E,Rre),M=s?.layout??Ti,D=w({},g,c);let O=r.valueType==="date-time"?`${C}-start-toolbar ${C}-end-toolbar`:C;if(S){const F=[];u==="multi-input"?(D.start&&F.push(`${C}-start-label`),D.end&&F.push(`${C}-end-label`)):a!=null&&F.push(`${C}-label`),O=F.length>0?F.join(" "):void 0}const k=w({},i,{toolbar:w({},i?.toolbar,{titleId:C}),mobilePaper:w({"aria-labelledby":O},i?.mobilePaper)},u==="multi-input"&&{textField:F=>w({},Wn(i?.textField,F),{id:`${C}-${F.position}`})}),I=()=>v.jsx(Oc,w({},b,{children:v.jsxs(fl.Provider,{value:p,children:[v.jsx(x,w({},P,{slots:w({},s,P.slots),slotProps:w({},k,P.slotProps)},d&&{inputRef:l})),v.jsx(Wx,{slots:s,slotProps:k,children:v.jsx(M,w({},k?.layout,{slots:s,slotProps:k,children:m()}))})]})}));return process.env.NODE_ENV!=="production"&&(I.displayName="renderPicker"),{renderPicker:I}},W0=f.forwardRef(function(t,n){const r=vt(),s=A0(t,"MuiMobileDateRangePicker"),i=w({day:Uf},s.viewRenderers),a=w({},s,{viewRenderers:i,format:s.format??r.formats.keyboardDate,calendars:1,currentMonthCalendarPosition:1,views:["day"],openTo:"day",slots:w({field:pl},s.slots),slotProps:w({},s.slotProps,{field:c=>w({},Wn(s.slotProps?.field,c),dp(s)),toolbar:w({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=Lre({ref:n,props:a,valueManager:ul,valueType:"date",validator:bu,steps:null});return l()});process.env.NODE_ENV!=="production"&&(W0.displayName="MobileDateRangePicker"),W0.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ft,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onRangePositionChange:o.func,onSelectedSectionsChange:o.func,open:o.bool,rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),viewRenderers:o.shape({day:o.func})};const $re=["desktopModeMediaQuery"],qf=f.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiDateRangePicker"}),{desktopModeMediaQuery:s=Um}=r,i=ie(r,$re);return zd(s,{defaultMatches:!0})?v.jsx(G0,w({ref:n},i)):v.jsx(W0,w({ref:n},i))});process.env.NODE_ENV!=="production"&&(qf.displayName="DateRangePicker"),process.env.NODE_ENV!=="production"&&(qf.propTypes={autoFocus:o.bool,calendars:o.oneOf([1,2,3]),className:o.string,closeOnSelect:o.bool,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),desktopModeMediaQuery:o.string,disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ft,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onRangePositionChange:o.func,onSelectedSectionsChange:o.func,open:o.bool,rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),viewRenderers:o.shape({day:o.func})});const Are=({label:e,initialValue:t,value:n,setValue:r,calendars:s,disabled:i,white:a,fullWidth:l,maxDate:c,minDate:u})=>{const{format:d,rangeShortcut:p}=he.useContext(gr),g=io(),h=Js({...g,palette:{...g.palette,primary:{main:"#9D9A95"}}});return v.jsx(fC,{theme:h,children:v.jsx(qf,{label:e,defaultValue:t,value:n,onChange:b=>r(b),disabled:i,format:d,calendars:s,slotProps:{shortcuts:{items:p},textField:{variant:"outlined",size:"small",fullWidth:l,color:"gr-yellow",focused:!0,sx:{"& .MuiInputLabel-root":{color:a?"black !important":"white !important"},"& .MuiInputLabel-root.Mui-focused":{color:a?"black !important":"white !important"},"& .MuiGrid-root":{marginBottom:"0px !important"}},slotProps:{input:{sx:{borderRadius:"16px",color:a?"black !important":"white !important","& .MuiIconButton-root .MuiSvgIcon-root":{color:a?"black !important":"white !important"}}}}},popper:{sx:{"& .MuiChip-root":{bgcolor:b=>a?b.palette["gr-grey"].light:b.palette["gr-grey"].main},"& .MuiChip-label":{color:a?"black !important":"white !important"},"& .MuiChip-root:hover":{bgcolor:b=>b.palette["gr-grey"].dark},"& .MuiDayCalendar-weekDayLabel":{color:b=>a?b.palette["gr-base-dark"].main:"white !important"},"& .MuiPickersCalendarHeader-label":{color:a?"black !important":"white !important"},"& .MuiYearCalendar-button":{color:b=>b.palette["gr-base-dark"].main},"& .MuiButtonBase-root":{color:b=>a?b.palette["gr-base-dark"].main:"white !important"},"& .Mui-disabled":{color:b=>`${b.palette["gr-grey"].main} !important`},"& .MuiPickersArrowSwitcher-root":{color:'(theme) => theme.palette["gr-base-dark"].main'},"& .Mui-selected, & .MuiPickersDay-root.Mui-selected":{bgcolor:b=>`${b.palette["gr-yellow"].main} !important`,color:a?"black !important":"white !important"},"& .MuiYearCalendar-yearButton.Mui-selected":{bgcolor:b=>`${b.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiPaper-root":{bgcolor:b=>a?b.palette["gr-grey"].light:"black !important",borderRadius:"20px"},"& .MuiPickersDay-root":{color:b=>b.palette["gr-base-dark"].main}}}},maxDate:c,minDate:u})})},Vre=({label:e,initialValue:t,value:n,setValue:r,disabled:s,white:i,fullWidth:a})=>{const{format:l,singleShortcut:c}=he.useContext(gr);return v.jsx(v.Fragment,{children:v.jsx(Np,{label:e,defaultValue:t,value:n,onChange:u=>r(u),disabled:s,format:l,slotProps:{shortcuts:{items:c},textField:{variant:"outlined",size:"small",fullWidth:a,color:"gr-yellow",focused:!0,slotProps:{input:{sx:{borderRadius:"16px",color:i?"black !important":"white !important","& .MuiIconButton-root .MuiSvgIcon-root":{color:i?"black !important":"white !important"}}}}},popper:{sx:{"& .MuiChip-root":{bgcolor:u=>u.palette["gr-grey"].light},"& .MuiChip-root:hover":{bgcolor:u=>u.palette["gr-grey"].dark},"& .MuiDayCalendar-weekDayLabel":{color:u=>u.palette["gr-base-dark"].main},"& .MuiYearCalendar-button":{color:u=>u.palette["gr-base-dark"].main},"& .MuiButtonBase-root":{color:u=>u.palette["gr-base-dark"].main},"& .Mui-selected, & .MuiPickersDay-root.Mui-selected":{bgcolor:u=>`${u.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiYearCalendar-yearButton.Mui-selected":{bgcolor:u=>`${u.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiPaper-root":{bgcolor:i?"white":"black",borderRadius:"20px"},"& .MuiPickersDay-root":{color:u=>u.palette["gr-base-dark"].main}}}}})})},_re=e=>{const{name:t={title:"",ncolumn:0},fields:n=[],actions:r={ncolumn:1,buttons:[]}}=e,s=(i,a)=>{switch(i.element){case"SelectField":return v.jsx(ft,{size:i.ncolumn,children:v.jsx(_oe,{label:i.label,placeholder:i.placeholder,value:i.value,setValue:i.setValue,values:i.values,disabled:i.disable,fullWidth:!0,white:!1})},a);case"MultiSelectField":return v.jsx(ft,{size:i.ncolumn,children:v.jsx(Boe,{label:i.label,placeholder:i.placeholder,value:i.value,setValue:i.setValue,values:i.values,disabled:i.disable,fullWidth:!0,white:!1})},a);case"DateRangeField":return v.jsx(ft,{size:i.ncolumn,children:v.jsx(Zoe,{label:i.label,value:i.value,setValue:i.setValue,disabled:i.disable,fullWidth:!0})},a);case"DatePickerField":return v.jsx(v.Fragment,{children:v.jsx(ft,{size:i.ncolumn,children:v.jsx(Vre,{label:i.label,initialValue:i.initialValue,value:i.value,setValue:i.setValue,disabled:i.disable,fullWidth:!0,white:!1})},a)});case"DateRangePickerField":return v.jsx(v.Fragment,{children:v.jsx(ft,{size:i.ncolumn,children:v.jsx(Are,{label:i.label,initialValue:i.initialValue,value:i.value,setValue:i.setValue,calendars:i.calendars,disabled:i.disable,fullWidth:!0,white:!1,maxDate:i.maxDate,minDate:i.minDate})},a)});default:return v.jsx(v.Fragment,{})}};return v.jsx(v.Fragment,{children:v.jsx(An,{sx:{bgcolor:i=>i.palette.background.paper,height:"70px",borderTopLeftRadius:"20px",borderTopRightRadius:"20px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",padding:"20px",gap:"20px"},children:v.jsxs(ft,{container:!0,spacing:2,sx:{flexGrow:1},children:[t.title&&v.jsx(ft,{size:t.ncolumn,sx:{display:"flex",alignItems:"center"},children:t.title}),n.map((i,a)=>s(i,a)),r&&r.buttons.length>0&&v.jsx(ft,{size:r.ncolumn,children:v.jsx(An,{sx:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"10px"},children:r.buttons.map((i,a)=>v.jsx(Vn,{variant:i.variant,color:"gr-yellow",sx:{...i.sx},onClick:i.onClick,disableElevation:!0,children:i.icon?i.icon:v.jsx("span",{style:{marginTop:"2px",textTransform:"none",padding:"0px 5px"},children:i.text})},a))})})]})})})},Bre=gt(v.jsx("path",{d:"M4.25 5.61C6.57 8.59 10 13 10 13v5c0 1.1.9 2 2 2s2-.9 2-2v-5s3.43-4.41 5.75-7.39c.51-.66.04-1.61-.8-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAltRounded"),Hre=e=>v.jsxs(v.Fragment,{children:[v.jsx(hO,{...e,apiRef:e.apiRef,showToolbar:e.toolbar!==void 0,headerFilters:e.headerFilters,slots:{toolbar:_re,headerFilterMenu:null},slotProps:{...e.slotProps,toolbar:{...e.toolbar},baseTextField:{color:e.toolbar!==void 0?"primary":"error",slotProps:{input:{endAdornment:v.jsx(xa,{sx:{color:t=>e.toolbar!==void 0?t.palette["gr-grey"].main:t.palette["gr-grey"].light},position:"end",children:v.jsx(Bre,{})})}}},loadingOverlay:{variant:"circular-progress",noRowsVariant:"circular-progress"}},sx:{border:"none",color:"black",borderTopLeftRadius:e.toolbar?"0px":"20px !important",borderTopRightRadius:e.toolbar?"0px":"20px !important","--DataGrid-t-color-background-base":"transparent !important","& .MuiDataGrid-columnHeaderCheckbox":{backgroundColor:"white"},"& .MuiDataGrid-filterForm .MuiInputBase-root":{backgroundColor:"#F3F2F2"},"& .MuiDataGrid-columnHeader":{backgroundColor:e.toolbar?"white":"transparent",color:e.toolbar?"black":"white",borderBottom:e.headerFilters?"none !important":t=>`${t.palette.primary.main} 1px solid !important`},"& .MuiDataGrid-headerFilterRow":{bgcolor:e.toolbar?"white !important":"transparent !important",borderBottom:t=>`${t.palette.primary.main} 1px solid !important`},"& .MuiDataGrid-virtualScroller":{bgcolor:"white",borderBottomLeftRadius:"20px",borderBottomRightRadius:"20px"},"& .MuiDataGrid-columnHeaderTitleContainer":{"& .MuiCheckbox-root":{color:t=>e.toolbar!==void 0?t.palette.background.paper:t.palette["gr-grey"].light}},"& .MuiDataGrid-iconButtonContainer":{"& .MuiIconButton-root":{color:t=>e.toolbar!==void 0?t.palette["gr-grey"].main:t.palette["gr-grey"].light}},"& .MuiDataGrid-footerContainer":{borderTop:"none",fontWeight:"500",display:"flex",justifyContent:"center",alignItems:"center"},"& .MuiIconButton-root":{color:t=>t.palette.background.paper,"&.Mui-disabled":{color:"#888",backgroundColor:"#eee",opacity:.7}},"& .MuiDataGrid-row":{minHeight:45,maxHeight:"none"},"& .MuiDataGrid-cell":{minHeight:45,height:"auto",maxHeight:"none",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",gap:1.5,p:1},"& .MuiDataGrid-cell--editing":{minHeight:45,height:"auto",maxHeight:"none",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",gap:1.5,p:1},"& .MuiDataGrid-cell--editing input":{color:"black !important",backgroundColor:"white !important"},"& .MuiDataGrid-row:hover, & .MuiDataGrid-row.Mui-selected":{bgcolor:"#B6B4AF"},"& .MuiDataGrid-cell.enable-cell":{backgroundColor:"white !important","& .MuiCheckbox-root":{color:t=>t.palette.background.paper}},"& .MuiDataGrid-cell.parcial-cell":{backgroundColor:"#E7E6E4 !important","& .MuiCheckbox-root":{color:t=>t.palette.background.paper}},"& .MuiDataGrid-cell.disable-cell":{backgroundColor:"#E7E6E4 !important","& .MuiCheckbox-root":{color:"#CECDCA"}},"& .MuiDataGrid-row:hover .MuiDataGrid-cell.enable-cell":{backgroundColor:"#B6B4AF !important"},"& .MuiDataGrid-row:hover .MuiDataGrid-cell.parcial-cell":{backgroundColor:"#B6B4AF !important"},"& .MuiDataGrid-row:hover .MuiDataGrid-cell.disable-cell":{backgroundColor:"#B6B4AF !important"}},loading:e.loading,checkboxSelection:e.checkboxSelection,paginationModel:e.paginationModel,onPaginationModelChange:e.setPaginationModel,onRowSelectionModelChange:e.setRowSelectionModel,rowSelectionModel:e.rowSelectionModel,disableRowSelectionOnClick:e.disableRowSelectionOnClick,getRowHeight:()=>"auto",onCellEditStop:e.onCellEditStop,disableVirtualization:!0}),v.jsx(Voe,{contextMenu:e.contextMenu,setContextMenu:e.setContextMenu,options:e.options,checked:e.rowSelectionModel,optionGroup:e.optionGroup})]}),zre=()=>{const e=Aoe(),[t,n]=he.useState(!1),[r,s]=he.useState([]),[i,a]=he.useState({pageSize:25,page:0}),[l,c]=he.useState({type:"include",ids:new Set}),[u,d]=he.useState(null),[p,g]=he.useState("table");return{apiRef:e,rows:r,setRows:s,loading:t,setLoading:n,paginationModel:i,setPaginationModel:a,rowSelectionModel:l,setRowSelectionModel:c,contextMenu:u,setContextMenu:d,optionGroup:p,setOptionGroup:g}},CO=gt(v.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 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 12z"}),"Cancel"),jre=gt(v.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"),Gre=gt(v.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"),Wre=gt(v.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-6h2zm0-8h-2V7h2z"}),"Info"),Ure=()=>{const{enqueueSnackbar:e}=RV(),t=r=>{MS(r)};return{showAlert:(r,s)=>e(s,{variant:r,content:(a,l)=>v.jsx(ug,{sx:{borderRadius:"24px",bgcolor:"#fff",boxShadow:3,color:c=>c.palette["gr-base-dark"].main},severity:r,iconMapping:{error:v.jsx(CO,{}),info:v.jsx(Wre,{}),success:v.jsx(jre,{}),warning:v.jsx(Gre,{}),default:v.jsx(oi,{color:"gr-blue",size:20})},onClose:()=>t(a),children:l},a)}),closeAlert:t}};var yu={exports:{}},U0={},Yf={exports:{}},wO;function qre(){if(wO)return Yf.exports;wO=1;function e(n){var r,s,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(r=0;r<a;r++)n[r]&&(s=e(n[r]))&&(i&&(i+=" "),i+=s)}else for(s in n)n[s]&&(i&&(i+=" "),i+=s);return i}function t(){for(var n,r,s=0,i="",a=arguments.length;s<a;s++)(n=arguments[s])&&(r=e(n))&&(i&&(i+=" "),i+=r);return i}return Yf.exports=t,Yf.exports.clsx=t,Yf.exports}var Fn={},Ws={},SO;function Kf(){if(SO)return Ws;SO=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.dontSetMe=s,Ws.findInArray=e,Ws.int=r,Ws.isFunction=t,Ws.isNum=n;function e(i,a){for(let l=0,c=i.length;l<c;l++)if(a.apply(a,[i[l],l,i]))return i[l]}function t(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Function]"}function n(i){return typeof i=="number"&&!isNaN(i)}function r(i){return parseInt(i,10)}function s(i,a,l){if(i[a])return new Error(`Invalid prop ${a} passed to ${l} - do not set this, set it on the child.`)}return Ws}var Us={},xO;function Yre(){if(xO)return Us;xO=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.browserPrefixToKey=n,Us.browserPrefixToStyle=r,Us.default=void 0,Us.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const a=window.document?.documentElement?.style;if(!a||i in a)return"";for(let l=0;l<e.length;l++)if(n(i,e[l])in a)return e[l];return""}function n(i,a){return a?`${a}${s(i)}`:i}function r(i,a){return a?`-${a.toLowerCase()}-${i}`:i}function s(i){let a="",l=!0;for(let c=0;c<i.length;c++)l?(a+=i[c].toUpperCase(),l=!1):i[c]==="-"?l=!0:a+=i[c];return a}return Us.default=t(),Us}var PO;function q0(){if(PO)return Fn;PO=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.addClassName=P,Fn.addEvent=a,Fn.addUserSelectStyles=S,Fn.createCSSTransform=h,Fn.createSVGTransform=b,Fn.getTouch=y,Fn.getTouchIdentifier=C,Fn.getTranslation=m,Fn.innerHeight=d,Fn.innerWidth=p,Fn.matchesSelector=s,Fn.matchesSelectorAndParentsTo=i,Fn.offsetXYFromParent=g,Fn.outerHeight=c,Fn.outerWidth=u,Fn.removeClassName=M,Fn.removeEvent=l,Fn.scheduleRemoveUserSelectStyles=x;var e=Kf(),t=n(Yre());function n(D,O){if(typeof WeakMap=="function")var k=new WeakMap,I=new WeakMap;return(n=function(F,T){if(!T&&F&&F.__esModule)return F;var R,A,L={__proto__:null,default:F};if(F===null||typeof F!="object"&&typeof F!="function")return L;if(R=T?I:k){if(R.has(F))return R.get(F);R.set(F,L)}for(const N in F)N!=="default"&&{}.hasOwnProperty.call(F,N)&&((A=(R=Object.defineProperty)&&Object.getOwnPropertyDescriptor(F,N))&&(A.get||A.set)?R(L,N,A):L[N]=F[N]);return L})(D,O)}let r="";function s(D,O){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(k){return(0,e.isFunction)(D[k])})),(0,e.isFunction)(D[r])?D[r](O):!1}function i(D,O,k){let I=D;do{if(s(I,O))return!0;if(I===k)return!1;I=I.parentNode}while(I);return!1}function a(D,O,k,I){if(!D)return;const F={capture:!0,...I};D.addEventListener?D.addEventListener(O,k,F):D.attachEvent?D.attachEvent("on"+O,k):D["on"+O]=k}function l(D,O,k,I){if(!D)return;const F={capture:!0,...I};D.removeEventListener?D.removeEventListener(O,k,F):D.detachEvent?D.detachEvent("on"+O,k):D["on"+O]=null}function c(D){let O=D.clientHeight;const k=D.ownerDocument.defaultView.getComputedStyle(D);return O+=(0,e.int)(k.borderTopWidth),O+=(0,e.int)(k.borderBottomWidth),O}function u(D){let O=D.clientWidth;const k=D.ownerDocument.defaultView.getComputedStyle(D);return O+=(0,e.int)(k.borderLeftWidth),O+=(0,e.int)(k.borderRightWidth),O}function d(D){let O=D.clientHeight;const k=D.ownerDocument.defaultView.getComputedStyle(D);return O-=(0,e.int)(k.paddingTop),O-=(0,e.int)(k.paddingBottom),O}function p(D){let O=D.clientWidth;const k=D.ownerDocument.defaultView.getComputedStyle(D);return O-=(0,e.int)(k.paddingLeft),O-=(0,e.int)(k.paddingRight),O}function g(D,O,k){const F=O===O.ownerDocument.body?{left:0,top:0}:O.getBoundingClientRect(),T=(D.clientX+O.scrollLeft-F.left)/k,R=(D.clientY+O.scrollTop-F.top)/k;return{x:T,y:R}}function h(D,O){const k=m(D,O,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:k}}function b(D,O){return m(D,O,"")}function m(D,O,k){let{x:I,y:F}=D,T=`translate(${I}${k},${F}${k})`;if(O){const R=`${typeof O.x=="string"?O.x:O.x+k}`,A=`${typeof O.y=="string"?O.y:O.y+k}`;T=`translate(${R}, ${A})`+T}return T}function y(D,O){return D.targetTouches&&(0,e.findInArray)(D.targetTouches,k=>O===k.identifier)||D.changedTouches&&(0,e.findInArray)(D.changedTouches,k=>O===k.identifier)}function C(D){if(D.targetTouches&&D.targetTouches[0])return D.targetTouches[0].identifier;if(D.changedTouches&&D.changedTouches[0])return D.changedTouches[0].identifier}function S(D){if(!D)return;let O=D.getElementById("react-draggable-style-el");O||(O=D.createElement("style"),O.type="text/css",O.id="react-draggable-style-el",O.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
417
+ `,O.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
418
+ `,D.getElementsByTagName("head")[0].appendChild(O)),D.body&&P(D.body,"react-draggable-transparent-selection")}function x(D){window.requestAnimationFrame?window.requestAnimationFrame(()=>{E(D)}):E(D)}function E(D){if(D)try{if(D.body&&M(D.body,"react-draggable-transparent-selection"),D.selection)D.selection.empty();else{const O=(D.defaultView||window).getSelection();O&&O.type!=="Caret"&&O.removeAllRanges()}}catch{}}function P(D,O){D.classList?D.classList.add(O):D.className.match(new RegExp(`(?:^|\\s)${O}(?!\\S)`))||(D.className+=` ${O}`)}function M(D,O){D.classList?D.classList.remove(O):D.className=D.className.replace(new RegExp(`(?:^|\\s)${O}(?!\\S)`,"g"),"")}return Fn}var Yr={},EO;function TO(){if(EO)return Yr;EO=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.canDragX=s,Yr.canDragY=i,Yr.createCoreData=l,Yr.createDraggableData=c,Yr.getBoundPosition=n,Yr.getControlPosition=a,Yr.snapToGrid=r;var e=Kf(),t=q0();function n(p,g,h){if(!p.props.bounds)return[g,h];let{bounds:b}=p.props;b=typeof b=="string"?b:u(b);const m=d(p);if(typeof b=="string"){const{ownerDocument:y}=m,C=y.defaultView;let S;if(b==="parent"?S=m.parentNode:S=m.getRootNode().querySelector(b),!(S instanceof C.HTMLElement))throw new Error('Bounds selector "'+b+'" could not find an element.');const x=S,E=C.getComputedStyle(m),P=C.getComputedStyle(x);b={left:-m.offsetLeft+(0,e.int)(P.paddingLeft)+(0,e.int)(E.marginLeft),top:-m.offsetTop+(0,e.int)(P.paddingTop)+(0,e.int)(E.marginTop),right:(0,t.innerWidth)(x)-(0,t.outerWidth)(m)-m.offsetLeft+(0,e.int)(P.paddingRight)-(0,e.int)(E.marginRight),bottom:(0,t.innerHeight)(x)-(0,t.outerHeight)(m)-m.offsetTop+(0,e.int)(P.paddingBottom)-(0,e.int)(E.marginBottom)}}return(0,e.isNum)(b.right)&&(g=Math.min(g,b.right)),(0,e.isNum)(b.bottom)&&(h=Math.min(h,b.bottom)),(0,e.isNum)(b.left)&&(g=Math.max(g,b.left)),(0,e.isNum)(b.top)&&(h=Math.max(h,b.top)),[g,h]}function r(p,g,h){const b=Math.round(g/p[0])*p[0],m=Math.round(h/p[1])*p[1];return[b,m]}function s(p){return p.props.axis==="both"||p.props.axis==="x"}function i(p){return p.props.axis==="both"||p.props.axis==="y"}function a(p,g,h){const b=typeof g=="number"?(0,t.getTouch)(p,g):null;if(typeof g=="number"&&!b)return null;const m=d(h),y=h.props.offsetParent||m.offsetParent||m.ownerDocument.body;return(0,t.offsetXYFromParent)(b||p,y,h.props.scale)}function l(p,g,h){const b=!(0,e.isNum)(p.lastX),m=d(p);return b?{node:m,deltaX:0,deltaY:0,lastX:g,lastY:h,x:g,y:h}:{node:m,deltaX:g-p.lastX,deltaY:h-p.lastY,lastX:p.lastX,lastY:p.lastY,x:g,y:h}}function c(p,g){const h=p.props.scale;return{node:g.node,x:p.state.x+g.deltaX/h,y:p.state.y+g.deltaY/h,deltaX:g.deltaX/h,deltaY:g.deltaY/h,lastX:p.state.x,lastY:p.state.y}}function u(p){return{left:p.left,top:p.top,right:p.right,bottom:p.bottom}}function d(p){const g=p.findDOMNode();if(!g)throw new Error("<DraggableCore>: Unmounted during event!");return g}return Yr}var vu={},Xf={},IO;function MO(){if(IO)return Xf;IO=1,Object.defineProperty(Xf,"__esModule",{value:!0}),Xf.default=e;function e(){}return Xf}var OO;function Kre(){if(OO)return vu;OO=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.default=void 0;var e=c(he),t=l(Mh()),n=l(bs),r=q0(),s=TO(),i=Kf(),a=l(MO());function l(m){return m&&m.__esModule?m:{default:m}}function c(m,y){if(typeof WeakMap=="function")var C=new WeakMap,S=new WeakMap;return(c=function(x,E){if(!E&&x&&x.__esModule)return x;var P,M,D={__proto__:null,default:x};if(x===null||typeof x!="object"&&typeof x!="function")return D;if(P=E?S:C){if(P.has(x))return P.get(x);P.set(x,D)}for(const O in x)O!=="default"&&{}.hasOwnProperty.call(x,O)&&((M=(P=Object.defineProperty)&&Object.getOwnPropertyDescriptor(x,O))&&(M.get||M.set)?P(D,O,M):D[O]=x[O]);return D})(m,y)}function u(m,y,C){return(y=d(y))in m?Object.defineProperty(m,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):m[y]=C,m}function d(m){var y=p(m,"string");return typeof y=="symbol"?y:y+""}function p(m,y){if(typeof m!="object"||!m)return m;var C=m[Symbol.toPrimitive];if(C!==void 0){var S=C.call(m,y);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(m)}const g={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let h=g.mouse,b=class extends e.Component{constructor(){super(...arguments),u(this,"dragging",!1),u(this,"lastX",NaN),u(this,"lastY",NaN),u(this,"touchIdentifier",null),u(this,"mounted",!1),u(this,"handleDragStart",y=>{if(this.props.onMouseDown(y),!this.props.allowAnyClick&&typeof y.button=="number"&&y.button!==0)return!1;const C=this.findDOMNode();if(!C||!C.ownerDocument||!C.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:S}=C;if(this.props.disabled||!(y.target instanceof S.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(y.target,this.props.handle,C)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(y.target,this.props.cancel,C))return;y.type==="touchstart"&&!this.props.allowMobileScroll&&y.preventDefault();const x=(0,r.getTouchIdentifier)(y);this.touchIdentifier=x;const E=(0,s.getControlPosition)(y,x,this);if(E==null)return;const{x:P,y:M}=E,D=(0,s.createCoreData)(this,P,M);(0,a.default)("DraggableCore: handleDragStart: %j",D),(0,a.default)("calling",this.props.onStart),!(this.props.onStart(y,D)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(S),this.dragging=!0,this.lastX=P,this.lastY=M,(0,r.addEvent)(S,h.move,this.handleDrag),(0,r.addEvent)(S,h.stop,this.handleDragStop))}),u(this,"handleDrag",y=>{const C=(0,s.getControlPosition)(y,this.touchIdentifier,this);if(C==null)return;let{x:S,y:x}=C;if(Array.isArray(this.props.grid)){let M=S-this.lastX,D=x-this.lastY;if([M,D]=(0,s.snapToGrid)(this.props.grid,M,D),!M&&!D)return;S=this.lastX+M,x=this.lastY+D}const E=(0,s.createCoreData)(this,S,x);if((0,a.default)("DraggableCore: handleDrag: %j",E),this.props.onDrag(y,E)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const D=document.createEvent("MouseEvents");D.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(D)}return}this.lastX=S,this.lastY=x}),u(this,"handleDragStop",y=>{if(!this.dragging)return;const C=(0,s.getControlPosition)(y,this.touchIdentifier,this);if(C==null)return;let{x:S,y:x}=C;if(Array.isArray(this.props.grid)){let D=S-this.lastX||0,O=x-this.lastY||0;[D,O]=(0,s.snapToGrid)(this.props.grid,D,O),S=this.lastX+D,x=this.lastY+O}const E=(0,s.createCoreData)(this,S,x);if(this.props.onStop(y,E)===!1||this.mounted===!1)return!1;const M=this.findDOMNode();M&&this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(M.ownerDocument),(0,a.default)("DraggableCore: handleDragStop: %j",E),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,M&&((0,a.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(M.ownerDocument,h.move,this.handleDrag),(0,r.removeEvent)(M.ownerDocument,h.stop,this.handleDragStop))}),u(this,"onMouseDown",y=>(h=g.mouse,this.handleDragStart(y))),u(this,"onMouseUp",y=>(h=g.mouse,this.handleDragStop(y))),u(this,"onTouchStart",y=>(h=g.touch,this.handleDragStart(y))),u(this,"onTouchEnd",y=>(h=g.touch,this.handleDragStop(y)))}componentDidMount(){this.mounted=!0;const y=this.findDOMNode();y&&(0,r.addEvent)(y,g.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const y=this.findDOMNode();if(y){const{ownerDocument:C}=y;(0,r.removeEvent)(C,g.mouse.move,this.handleDrag),(0,r.removeEvent)(C,g.touch.move,this.handleDrag),(0,r.removeEvent)(C,g.mouse.stop,this.handleDragStop),(0,r.removeEvent)(C,g.touch.stop,this.handleDragStop),(0,r.removeEvent)(y,g.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(C)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return vu.default=b,u(b,"displayName","DraggableCore"),u(b,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(m,y){if(m[y]&&m[y].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),u(b,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),vu}var kO;function Xre(){return kO||(kO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var t=p(he),n=d(Mh()),r=d(bs),s=qre(),i=q0(),a=TO(),l=Kf(),c=d(Kre()),u=d(MO());function d(C){return C&&C.__esModule?C:{default:C}}function p(C,S){if(typeof WeakMap=="function")var x=new WeakMap,E=new WeakMap;return(p=function(P,M){if(!M&&P&&P.__esModule)return P;var D,O,k={__proto__:null,default:P};if(P===null||typeof P!="object"&&typeof P!="function")return k;if(D=M?E:x){if(D.has(P))return D.get(P);D.set(P,k)}for(const I in P)I!=="default"&&{}.hasOwnProperty.call(P,I)&&((O=(D=Object.defineProperty)&&Object.getOwnPropertyDescriptor(P,I))&&(O.get||O.set)?D(k,I,O):k[I]=P[I]);return k})(C,S)}function g(){return g=Object.assign?Object.assign.bind():function(C){for(var S=1;S<arguments.length;S++){var x=arguments[S];for(var E in x)({}).hasOwnProperty.call(x,E)&&(C[E]=x[E])}return C},g.apply(null,arguments)}function h(C,S,x){return(S=b(S))in C?Object.defineProperty(C,S,{value:x,enumerable:!0,configurable:!0,writable:!0}):C[S]=x,C}function b(C){var S=m(C,"string");return typeof S=="symbol"?S:S+""}function m(C,S){if(typeof C!="object"||!C)return C;var x=C[Symbol.toPrimitive];if(x!==void 0){var E=x.call(C,S);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(C)}class y extends t.Component{static getDerivedStateFromProps(S,x){let{position:E}=S,{prevPropsPosition:P}=x;return E&&(!P||E.x!==P.x||E.y!==P.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:E,prevPropsPosition:P}),{x:E.x,y:E.y,prevPropsPosition:{...E}}):null}constructor(S){super(S),h(this,"onDragStart",(x,E)=>{if((0,u.default)("Draggable: onDragStart: %j",E),this.props.onStart(x,(0,a.createDraggableData)(this,E))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),h(this,"onDrag",(x,E)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",E);const P=(0,a.createDraggableData)(this,E),M={x:P.x,y:P.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:k}=M;M.x+=this.state.slackX,M.y+=this.state.slackY;const[I,F]=(0,a.getBoundPosition)(this,M.x,M.y);M.x=I,M.y=F,M.slackX=this.state.slackX+(O-M.x),M.slackY=this.state.slackY+(k-M.y),P.x=M.x,P.y=M.y,P.deltaX=M.x-this.state.x,P.deltaY=M.y-this.state.y}if(this.props.onDrag(x,P)===!1)return!1;this.setState(M)}),h(this,"onDragStop",(x,E)=>{if(!this.state.dragging||this.props.onStop(x,(0,a.createDraggableData)(this,E))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",E);const M={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:k}=this.props.position;M.x=O,M.y=k}this.setState(M)}),this.state={dragging:!1,dragged:!1,x:S.position?S.position.x:S.defaultPosition.x,y:S.position?S.position.y:S.defaultPosition.y,prevPropsPosition:{...S.position},slackX:0,slackY:0,isElementSVG:!1},S.position&&!(S.onDrag||S.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??r.default.findDOMNode(this)}render(){const{axis:S,bounds:x,children:E,defaultPosition:P,defaultClassName:M,defaultClassNameDragging:D,defaultClassNameDragged:O,position:k,positionOffset:I,scale:F,...T}=this.props;let R={},A=null;const N=!!!k||this.state.dragging,_=k||P,H={x:(0,a.canDragX)(this)&&N?this.state.x:_.x,y:(0,a.canDragY)(this)&&N?this.state.y:_.y};this.state.isElementSVG?A=(0,i.createSVGTransform)(H,I):R=(0,i.createCSSTransform)(H,I);const B=(0,s.clsx)(E.props.className||"",M,{[D]:this.state.dragging,[O]:this.state.dragged});return t.createElement(c.default,g({},T,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(E),{className:B,style:{...E.props.style,...R},transform:A}))}}e.default=y,h(y,"displayName","Draggable"),h(y,"propTypes",{...c.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),h(y,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(U0)),U0}var DO;function Zre(){if(DO)return yu.exports;DO=1;const{default:e,DraggableCore:t}=Xre();return yu.exports=e,yu.exports.default=e,yu.exports.DraggableCore=t,yu.exports}var Qre=Zre();const Jre=ys(Qre),ese=gt(v.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),tse=gt(v.jsx("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event"),nse=({label:e,initialValue:t,value:n,setValue:r,disabled:s,fullWidth:i,white:a})=>{const{format:l}=he.useContext(gr);return v.jsx(v.Fragment,{children:v.jsx(rb,{label:e,defaultValue:t,value:n,onChange:c=>{r(c)},InputProps:{sx:{borderRadius:"16px",color:a?"black !important":"white !important"}},size:"small",color:"gr-yellow",slotProps:{textField:{InputLabelProps:{sx:{color:a?"black !important":"white !important"}}}},focused:!0,format:l,disabled:s,fullWidth:i,endAdornment:v.jsx(xa,{position:"end",sx:{color:a?"black":"white"},children:v.jsx(tse,{})})})})},ose=gt(v.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),rse=({label:e,placeholder:t,values:n,value:r,setValue:s,white:i})=>{const[a,l]=he.useState(!1);return v.jsx(v.Fragment,{children:v.jsx(Sg,{multiple:!0,options:n,getOptionLabel:c=>c.label,value:n.filter(c=>r.includes(c.value)),onChange:(c,u)=>{s(u.map(d=>d.value))},onOpen:()=>l(!0),onClose:()=>l(!1),renderInput:c=>v.jsx(ks,{...c,variant:"outlined",label:e,placeholder:t,sx:{backgroundColor:u=>i?"white":u.palette["gr-base-dark"].main,borderTopLeftRadius:"18px",borderTopRightRadius:"18px",borderBottomLeftRadius:a?"0px":"18px",borderBottomRightRadius:a?"0px":"18px",color:i?"black !important":"white !important","& .MuiChip-root":{maxWidth:"100px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .MuiAutocomplete-tag":{maxHeight:"32px",overflow:"hidden",display:"inline-flex",flexWrap:"nowrap"},"& .MuiAutocomplete-inputRoot":{flexWrap:"nowrap"}},slotProps:{inputLabel:{sx:{color:i?"black !important":"white !important"}}},color:"gr-yellow",focused:!0}),renderValue:(c,u)=>c.map((d,p)=>{const{key:g,...h}=u({index:p});return v.jsx(hr,{title:d.highlight?.tooltip,sx:{borderRadius:"24px"},children:v.jsx(ba,{variant:"filled",label:d.label,size:"small",...h,sx:{bgcolor:b=>d.highlight?.active?`${b.palette["gr-orange"].main}20`:`${b.palette["gr-grey"].main}20`,color:b=>b.palette["gr-base-dark"].main,"& .MuiChip-deleteIcon":{color:b=>b.palette["gr-base-dark"].main,"&:hover":{color:b=>b.palette["gr-base-dark"].main}},border:d.highlight?.active?"1px solid":"none",borderColor:b=>d.highlight?.active?b.palette["gr-orange"].main:"none"}},g)})}),popupIcon:v.jsx(ose,{sx:{color:i?"black":"white"}}),slotProps:{paper:{sx:{maxHeight:"500px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",backgroundColor:c=>i?"white":c.palette["gr-base-dark"].main,color:i?"black":"white"}},chip:{sx:{bgcolor:c=>i?`${c.palette["gr-grey"].light} !important`:`${c.palette["gr-grey"].main} !important`,color:i?"black":"white"},size:"small",deleteIcon:v.jsx(CO,{sx:{color:i?"black !important":"white !important"}})}},limitTags:2,size:"small"})})},sse=({label:e,value:t,setValue:n,values:r,placeholder:s,disabled:i,fullWidth:a,white:l})=>{const c=u=>v.jsx(R0,{...u,sx:{color:l?"black !important":"white !important",...u.sx}});return v.jsx(v.Fragment,{children:v.jsxs(Ms,{fullWidth:a,focused:!0,children:[v.jsx(di,{id:`filter-table-label-${e}`,sx:{color:l?"black":"white",position:"absolute","&.Mui-focused":{color:l?"black":"white"},'&[data-shrink="false"]':{transform:"translateY(12px) translateX(12px)"}},children:e}),v.jsxs(Os,{labelId:`filter-table-label-${e}`,id:`filter-${e}`,value:t,label:e,onChange:u=>n(u.target.value),color:"gr-yellow",sx:{color:l?"black":"white"},IconComponent:c,MenuProps:{PaperProps:{style:{maxHeight:"500px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main,color:l?"black":"white","&:hover":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main}}}}},displayEmpty:!0,disabled:i,children:[v.jsx(sr,{sx:{mt:2},disabled:!0,value:"",children:v.jsx("em",{children:s})}),r.map(u=>v.jsx(sr,{value:u.value,children:u.label},u.value))]})]})})},FO={};function Zf(e,t){const n=f.useRef(FO);return n.current===FO&&(n.current=e(t)),n}function Qf(e,t,n,r){const s=Zf(ise).current;return ase(s,e,t,n,r)&&lse(s,[e,t,n,r]),s.callback}function ise(){return{callback:null,cleanup:null,refs:[]}}function ase(e,t,n,r,s){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==s}function lse(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=i(n);typeof a=="function"&&(r[s]=a);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=r[s];typeof a=="function"?a():i(null);break}case"object":{i.current=null;break}}}}}}}function NO(e){return Ot}function cse(e){return ke("MuiSimpleTreeView",e)}Me("MuiSimpleTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox"]);const Y0=Object.freeze([]),Cu=Object.freeze({}),K0=f.createContext(null);process.env.NODE_ENV!=="production"&&(K0.displayName="TreeViewContext");const gl=()=>{const e=f.useContext(K0);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
419
+ `));return e},X0=f.createContext({classes:{},slots:{},slotProps:{}});process.env.NODE_ENV!=="production"&&(X0.displayName="TreeViewStyleContext");const RO=()=>f.useContext(X0),use=e=>{const{store:t,apiRef:n,rootRef:r}=e,s=Zf(()=>t.buildPublicAPI()).current;dse(s,n);const i=f.useCallback(l=>{let c=null,u=null;const d=[],p={};t.itemPluginManager.listPlugins().forEach(b=>{const m=b({props:l,rootRef:c,contentRef:u});m?.rootRef&&(c=m.rootRef),m?.contentRef&&(u=m.contentRef),m?.propsEnhancers&&(d.push(m.propsEnhancers),Object.keys(m.propsEnhancers).forEach(y=>{p[y]=!0}))});const g=b=>m=>{const y={};return d.forEach(C=>{const S=C[b];S!=null&&Object.assign(y,S(m))}),y},h=Object.fromEntries(Object.keys(p).map(b=>[b,g(b)]));return{contentRef:u,rootRef:c,propsEnhancers:h}},[t]),a=f.useCallback(({itemId:l,children:c,idAttribute:u})=>{let d=c;const p=t.itemPluginManager.listWrappers();for(let g=p.length-1;g>=0;g-=1){const h=p[g];d=h({store:t,itemId:l,children:d,idAttribute:u})}return d},[t]);return f.useMemo(()=>({runItemPlugins:i,wrapItem:a,publicAPI:s,store:t,rootRef:r}),[i,a,s,t,r])};function dse(e,t){t!=null&&t.current==null&&(t.current=e)}function pse(e){const{store:t,apiRef:n,rootRef:r,classes:s=Cu,slots:i=Cu,slotProps:a=Cu,children:l}=e,c=use({store:t,apiRef:n,rootRef:r}),u=f.useMemo(()=>({classes:s,slots:{collapseIcon:i.collapseIcon,expandIcon:i.expandIcon,endIcon:i.endIcon},slotProps:{collapseIcon:a.collapseIcon,expandIcon:a.expandIcon,endIcon:a.endIcon}}),[s,i.collapseIcon,i.expandIcon,i.endIcon,a.collapseIcon,a.expandIcon,a.endIcon]);return v.jsx(K0.Provider,{value:c,children:v.jsx(X0.Provider,{value:u,children:l})})}const fse=["apiRef","slots","slotProps","disabledItemsFocusable","onItemClick","itemChildrenIndentation","id","expandedItems","defaultExpandedItems","onExpandedItemsChange","onItemExpansionToggle","expansionTrigger","disableSelection","selectedItems","defaultSelectedItems","multiSelect","checkboxSelection","selectionPropagation","onSelectedItemsChange","onItemSelectionToggle","onItemFocus"];function hse(e){const{apiRef:t,slots:n,slotProps:r,disabledItemsFocusable:s,onItemClick:i,itemChildrenIndentation:a,id:l,expandedItems:c,defaultExpandedItems:u,onExpandedItemsChange:d,onItemExpansionToggle:p,expansionTrigger:g,disableSelection:h,selectedItems:b,defaultSelectedItems:m,multiSelect:y,checkboxSelection:C,selectionPropagation:S,onSelectedItemsChange:x,onItemSelectionToggle:E,onItemFocus:P}=e,M=ie(e,fse),D=f.useMemo(()=>({disabledItemsFocusable:s,onItemClick:i,itemChildrenIndentation:a,id:l,expandedItems:c,defaultExpandedItems:u,onExpandedItemsChange:d,onItemExpansionToggle:p,expansionTrigger:g,disableSelection:h,selectedItems:b,defaultSelectedItems:m,multiSelect:y,checkboxSelection:C,selectionPropagation:S,onSelectedItemsChange:x,onItemSelectionToggle:E,onItemFocus:P}),[s,i,a,l,c,u,d,p,g,h,b,m,y,C,S,x,E,P]);return{apiRef:t,slots:n,slotProps:r,parameters:D,forwardedProps:M}}const LO=lt(e=>e.providedTreeId??e.treeId),wu={treeId:LO,treeItemIdAttribute:lt(LO,(e,t,n)=>n??`${e??""}-${t}`)},Tr="__TREE_VIEW_ROOT_PARENT_ID__",$O=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},Jf=(e,t)=>{if(t==null)return!1;let n=e[t];if(!n)return!1;if(n.disabled)return!0;for(;n.parentId!=null;){if(n=e[n.parentId],!n)return!1;if(n.disabled)return!0}return!1};function AO(e){const{storeParameters:t,items:n,parentId:r,depth:s,isItemExpandable:i,otherItemsMetaLookup:a}=e,l={},c={},u=[],d=[],p=g=>{const h=t.getItemId?t.getItemId(g):g.id;gse({id:h,parentId:r,item:g,itemMetaLookup:a,siblingsMetaLookup:l});const b=t.getItemLabel?t.getItemLabel(g):g.label;if(b==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(g)].join(`
420
+ `));const m=(t.getItemChildren?t.getItemChildren(g):g.children)||[];d.push({id:h,children:m}),c[h]=g,l[h]={id:h,label:b,parentId:r,idAttribute:void 0,expandable:i(g,m),disabled:t.isItemDisabled?t.isItemDisabled(g):!1,selectable:t.isItemSelectionDisabled?!t.isItemSelectionDisabled(g):!0,depth:s},u.push(h)};for(const g of n)p(g);return{metaLookup:l,modelLookup:c,orderedChildrenIds:u,childrenIndexes:$O(u),itemsChildren:d}}function gse({id:e,parentId:t,item:n,itemMetaLookup:r,siblingsMetaLookup:s}){if(e==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(n)].join(`
421
+ `));if(s[e]!=null||r[e]!=null&&r[e].parentId!==t)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${e}"`].join(`
422
+ `))}const mse=[],je={domStructure:lt(e=>e.domStructure),disabledItemFocusable:lt(e=>e.disabledItemsFocusable),itemMetaLookup:lt(e=>e.itemMetaLookup),itemOrderedChildrenIdsLookup:lt(e=>e.itemOrderedChildrenIdsLookup),itemMeta:lt((e,t)=>e.itemMetaLookup[t??Tr]??null),itemOrderedChildrenIds:lt((e,t)=>e.itemOrderedChildrenIdsLookup[t??Tr]??mse),itemModel:lt((e,t)=>e.itemModelLookup[t]),isItemDisabled:lt((e,t)=>Jf(e.itemMetaLookup,t)),itemIndex:lt((e,t)=>{const n=e.itemMetaLookup[t];return n==null?-1:e.itemChildrenIndexesLookup[n.parentId??Tr][n.id]}),itemParentId:lt((e,t)=>e.itemMetaLookup[t]?.parentId??null),itemDepth:lt((e,t)=>e.itemMetaLookup[t]?.depth??0),canItemBeFocused:lt((e,t)=>e.disabledItemsFocusable||e.itemModelLookup[t]!=null&&!Jf(e.itemMetaLookup,t)),itemChildrenIndentation:lt(e=>e.itemChildrenIndentation)};class eh{constructor(t){this.store=t}static shouldRebuildItemsState=(t,n)=>["items","isItemDisabled","isItemSelectionDisabled","getItemId","getItemLabel","getItemChildren"].some(r=>{const s=r;return t[s]!==n[s]});static buildItemsStateIfNeeded=t=>{const n={},r={},s={},i={};function a(l,c,u){const d=c??Tr,{metaLookup:p,modelLookup:g,orderedChildrenIds:h,childrenIndexes:b,itemsChildren:m}=AO({storeParameters:t,items:l,parentId:c,depth:u,isItemExpandable:(y,C)=>!!C&&C.length>0,otherItemsMetaLookup:n});Object.assign(n,p),Object.assign(r,g),s[d]=h,i[d]=b;for(const y of m)a(y.children||[],y.id,u+1)}return a(t.items,null,0),{itemMetaLookup:n,itemModelLookup:r,itemOrderedChildrenIdsLookup:s,itemChildrenIndexesLookup:i}};getItem=t=>je.itemModel(this.store.state,t);getItemTree=()=>{const t=n=>{const r=je.itemModel(this.store.state,n),s=w({},r),i=je.itemOrderedChildrenIds(this.store.state,n);return i.length>0?s.children=i.map(t):delete s.children,s};return je.itemOrderedChildrenIds(this.store.state,null).map(t)};getItemOrderedChildrenIds=t=>je.itemOrderedChildrenIds(this.store.state,t);getParentId=t=>je.itemMeta(this.store.state,t)?.parentId||null;setIsItemDisabled=({itemId:t,shouldBeDisabled:n})=>{if(!this.store.state.itemMetaLookup[t])return;const r=w({},this.store.state.itemMetaLookup);r[t]=w({},r[t],{disabled:n??!r[t].disabled}),this.store.set("itemMetaLookup",r)};buildPublicAPI=()=>({getItem:this.getItem,getItemDOMElement:this.getItemDOMElement,getItemOrderedChildrenIds:this.getItemOrderedChildrenIds,getItemTree:this.getItemTree,getParentId:this.getParentId,setIsItemDisabled:this.setIsItemDisabled});getItemDOMElement=t=>{const n=je.itemMeta(this.store.state,t);if(n==null)return null;const r=wu.treeItemIdAttribute(this.store.state,t,n.idAttribute);return document.getElementById(r)};setItemChildren=({items:t,parentId:n,getChildrenCount:r})=>{const s=n??Tr,i=n==null?-1:je.itemDepth(this.store.state,n),{metaLookup:a,modelLookup:l,orderedChildrenIds:c,childrenIndexes:u}=AO({storeParameters:this.store.parameters,items:t,parentId:n,depth:i+1,isItemExpandable:r?d=>r(d)!==0:()=>!1,otherItemsMetaLookup:je.itemMetaLookup(this.store.state)});this.store.update({itemModelLookup:w({},this.store.state.itemModelLookup,l),itemMetaLookup:w({},this.store.state.itemMetaLookup,a),itemOrderedChildrenIdsLookup:w({},this.store.state.itemOrderedChildrenIdsLookup,{[s]:c}),itemChildrenIndexesLookup:w({},this.store.state.itemChildrenIndexesLookup,{[s]:u})})};removeChildren=t=>{const n=this.store.state.itemMetaLookup,r=Object.keys(n).reduce((l,c)=>{const u=n[c];return u.parentId===t?l:w({},l,{[u.id]:u})},{}),s=w({},this.store.state.itemOrderedChildrenIdsLookup),i=w({},this.store.state.itemChildrenIndexesLookup),a=t??Tr;delete i[a],delete s[a],this.store.update({itemMetaLookup:r,itemOrderedChildrenIdsLookup:s,itemChildrenIndexesLookup:i})};handleItemClick=(t,n)=>{this.store.parameters.onItemClick?.(t,n)}}const VO=Zn(e=>e.selectedItems,e=>Array.isArray(e)?e:e!=null?[e]:[]),_O=Zn(VO,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),Z0=lt((e,t)=>e.itemMetaLookup[t]?.selectable??!0),Rt={selectedItemsRaw:lt(e=>e.selectedItems),selectedItems:VO,selectedItemsMap:_O,enabled:lt(e=>!e.disableSelection),isMultiSelectEnabled:lt(e=>e.multiSelect),isCheckboxSelectionEnabled:lt(e=>e.checkboxSelection),propagationRules:lt(e=>e.selectionPropagation),isItemSelected:lt(_O,(e,t)=>e.has(t)),isFeatureEnabledForItem:lt(Z0,e=>!e.disableSelection,(e,t,n)=>t&&e),canItemBeSelected:lt(je.isItemDisabled,Z0,e=>!e.disableSelection,(e,t,n,r)=>n&&!e&&t),isItemSelectable:Z0},bse=lt((e,t)=>{if(Rt.isItemSelected(e,t))return"checked";let n=!1,r=!1;const s=a=>{a!==t&&(Rt.isItemSelected(e,a)?n=!0:r=!0),je.itemOrderedChildrenIds(e,a).forEach(s)};return s(t),Rt.propagationRules(e).parents?n&&r?"indeterminate":n&&!r?"checked":"empty":n?"indeterminate":"empty"}),yse=({props:e})=>{const{itemId:t}=e,{store:n}=gl(),r=qt(n,Rt.isCheckboxSelectionEnabled),s=qt(n,Rt.isFeatureEnabledForItem,t),i=qt(n,Rt.canItemBeSelected,t),a=qt(n,bse,t);return{propsEnhancers:{root:()=>{let l;return a==="checked"?l=!0:a==="indeterminate"?l="mixed":i?l=!1:l=void 0,{"aria-checked":l}},checkbox:({externalEventHandlers:l,interactions:c})=>({tabIndex:-1,onChange:d=>{l.onChange?.(d),!d.defaultMuiPrevented&&Rt.canItemBeSelected(n.state,t)&&c.handleCheckboxSelection(d)},visible:r&&s,disabled:!i,checked:a==="checked",indeterminate:a==="indeterminate"})}}},Q0=Zn(e=>e.expandedItems,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),Nn={expandedItemsRaw:lt(e=>e.expandedItems),expandedItemsMap:Q0,flatList:Zn(je.itemOrderedChildrenIdsLookup,Q0,(e,t)=>{function n(r){if(!t.has(r))return[r];const s=[r],i=e[r]||[];for(const a of i)s.push(...n(a));return s}return(e[Tr]??[]).flatMap(n)}),triggerSlot:lt(e=>e.expansionTrigger),isItemExpanded:lt(Q0,(e,t)=>e.has(t)),isItemExpandable:lt(je.itemMeta,(e,t)=>e?.expandable??!1)},J0=(e,t)=>{let n=t.length-1;for(;n>=0&&!je.canItemBeFocused(e,t[n]);)n-=1;if(n!==-1)return t[n]},e1=(e,t)=>{const n=je.itemMeta(e,t);if(!n)return null;const r=je.itemOrderedChildrenIds(e,n.parentId),s=je.itemIndex(e,t);if(s===0)return n.parentId;let i=s-1;for(;!je.canItemBeFocused(e,r[i])&&i>=0;)i-=1;if(i===-1)return n.parentId==null?null:e1(e,n.parentId);let a=r[i],l=J0(e,je.itemOrderedChildrenIds(e,a));for(;Nn.isItemExpanded(e,a)&&l!=null;)a=l,l=J0(e,je.itemOrderedChildrenIds(e,a));return a},Su=(e,t)=>{if(Nn.isItemExpanded(e,t)){const r=je.itemOrderedChildrenIds(e,t).find(s=>je.canItemBeFocused(e,s));if(r!=null)return r}let n=je.itemMeta(e,t);for(;n!=null;){const r=je.itemOrderedChildrenIds(e,n.parentId),s=je.itemIndex(e,n.id);if(s<r.length-1){let i=s+1;for(;!je.canItemBeFocused(e,r[i])&&i<r.length-1;)i+=1;if(je.canItemBeFocused(e,r[i]))return r[i]}n=je.itemMeta(e,n.parentId)}return null},BO=e=>{let t=null;for(;t==null||Nn.isItemExpanded(e,t);){const n=je.itemOrderedChildrenIds(e,t),r=J0(e,n);if(r==null)return t;t=r}return t},xu=e=>je.itemOrderedChildrenIds(e,null).find(t=>je.canItemBeFocused(e,t)),HO=(e,t,n)=>{if(t===n)return[t,n];const r=je.itemMeta(e,t),s=je.itemMeta(e,n);if(!r||!s)return[t,n];if(r.parentId===s.id||s.parentId===r.id)return s.parentId===r.id?[r.id,s.id]:[s.id,r.id];const i=[r.id],a=[s.id];let l=r.parentId,c=s.parentId,u=a.indexOf(l)!==-1,d=i.indexOf(c)!==-1,p=!0,g=!0;for(;!d&&!u;)p&&(i.push(l),u=a.indexOf(l)!==-1,p=l!==null,!u&&p&&(l=je.itemParentId(e,l))),g&&!u&&(a.push(c),d=i.indexOf(c)!==-1,g=c!==null,!d&&g&&(c=je.itemParentId(e,c)));const h=u?l:c,b=je.itemOrderedChildrenIds(e,h),m=i[i.indexOf(h)-1],y=a[a.indexOf(h)-1];return b.indexOf(m)<b.indexOf(y)?[t,n]:[n,t]},vse=(e,t,n)=>{const r=c=>{if(Nn.isItemExpandable(e,c)&&Nn.isItemExpanded(e,c))return je.itemOrderedChildrenIds(e,c)[0];let u=je.itemMeta(e,c);for(;u!=null;){const d=je.itemOrderedChildrenIds(e,u.parentId),p=je.itemIndex(e,u.id);if(p<d.length-1)return d[p+1];u=u.parentId?je.itemMeta(e,u.parentId):null}throw new Error("Invalid range")},[s,i]=HO(e,t,n),a=[s];let l=s;for(;l!==i;)l=r(l),je.isItemDisabled(e,l)||a.push(l);return a},Cse=e=>{let t=xu(e);const n=[];for(;t!=null;)n.push(t),t=Su(e,t);return n},t1=(e,t)=>t!==e.closest('*[role="treeitem"]');class wse{lastSelectedItem=null;lastSelectedRange={};constructor(t){this.store=t,t.itemPluginManager.register(yse,null)}setSelectedItems=(t,n,r)=>{const{selectionPropagation:s=Cu,selectedItems:i,onItemSelectionToggle:a,onSelectedItemsChange:l}=this.store.parameters,c=Rt.selectedItemsRaw(this.store.state);let u;const d=Rt.isMultiSelectEnabled(this.store.state);if(d&&(s.descendants||s.parents)?u=Sse({store:this.store,selectionPropagation:s,newModel:n,oldModel:c,additionalItemsToPropagate:r}):u=n,a)if(d){const p=zO({store:this.store,newModel:u,oldModel:c});a&&(p.added.forEach(g=>{a(t,g,!0)}),p.removed.forEach(g=>{a(t,g,!1)}))}else u!==c&&(c!=null&&a(t,c,!1),u!=null&&a(t,u,!0));i===void 0&&this.store.set("selectedItems",u),l?.(t,u)};selectRange=(t,[n,r])=>{if(!Rt.isMultiSelectEnabled(this.store.state))return;let i=Rt.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length>0&&(i=i.filter(u=>!this.lastSelectedRange[u]));const a=th(i),l=vse(this.store.state,n,r).filter(u=>Rt.isItemSelectable(this.store.state,u)),c=l.filter(u=>!a[u]);i=i.concat(c),this.setSelectedItems(t,i),this.lastSelectedRange=th(l)};buildPublicAPI=()=>({setItemSelection:this.setItemSelection});setItemSelection=({itemId:t,event:n=null,keepExistingSelection:r=!1,shouldBeSelected:s})=>{if(!Rt.enabled(this.store.state))return;let i;const a=Rt.isMultiSelectEnabled(this.store.state);if(r){const l=Rt.selectedItems(this.store.state),c=Rt.isItemSelected(this.store.state,t);c&&(s===!1||s==null)?i=l.filter(u=>u!==t):!c&&(s===!0||s==null)?i=[t].concat(l):i=l}else s===!1||s==null&&Rt.isItemSelected(this.store.state,t)?i=a?[]:null:i=a?[t]:t;this.setSelectedItems(n,i,[t]),this.lastSelectedItem=t,this.lastSelectedRange={}};selectAllNavigableItems=t=>{if(!Rt.isMultiSelectEnabled(this.store.state))return;const r=Cse(this.store.state);this.setSelectedItems(t,r),this.lastSelectedRange=th(r)};expandSelectionRange=(t,n)=>{if(this.lastSelectedItem!=null){const[r,s]=HO(this.store.state,n,this.lastSelectedItem);this.selectRange(t,[r,s])}};selectRangeFromStartToItem=(t,n)=>{this.selectRange(t,[xu(this.store.state),n])};selectRangeFromItemToEnd=(t,n)=>{this.selectRange(t,[n,BO(this.store.state)])};selectItemFromArrowNavigation=(t,n,r)=>{if(!Rt.isMultiSelectEnabled(this.store.state))return;let i=Rt.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length===0?(i.push(r),this.lastSelectedRange={[n]:!0,[r]:!0}):(this.lastSelectedRange[n]||(this.lastSelectedRange={}),this.lastSelectedRange[r]?(i=i.filter(a=>a!==n),delete this.lastSelectedRange[n]):(i.push(r),this.lastSelectedRange[r]=!0)),this.setSelectedItems(t,i)}}function Sse({store:e,selectionPropagation:t,newModel:n,oldModel:r,additionalItemsToPropagate:s}){if(!t.descendants&&!t.parents)return n;let i=!1;const a=th(n),l=zO({store:e,newModel:n,oldModel:r});return s?.forEach(c=>{a[c]?l.added.includes(c)||l.added.push(c):l.removed.includes(c)||l.removed.push(c)}),l.added.forEach(c=>{if(t.descendants){const u=d=>{d!==c&&(i=!0,a[d]=!0),je.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}if(t.parents){const u=p=>a[p]?je.itemOrderedChildrenIds(e.state,p).every(u):!1,d=p=>{const g=je.itemParentId(e.state,p);if(g==null)return;je.itemOrderedChildrenIds(e.state,g).every(u)&&(i=!0,a[g]=!0,d(g))};d(c)}}),l.removed.forEach(c=>{if(t.parents){let u=je.itemParentId(e.state,c);for(;u!=null;)a[u]&&(i=!0,delete a[u]),u=je.itemParentId(e.state,u)}if(t.descendants){const u=d=>{d!==c&&(i=!0,delete a[d]),je.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}}),i?Object.keys(a):n}function zO({store:e,oldModel:t,newModel:n}){const r=new Map;return n.forEach(s=>{r.set(s,!0)}),{added:n.filter(s=>!Rt.isItemSelected(e.state,s)),removed:t.filter(s=>!r.has(s))}}function th(e){const t={};return e.forEach(n=>{t[n]=!0}),t}function xse(e,t,n){const r=qt(e,wu.treeId),s=qt(e,je.itemChildrenIndentation),i=qt(e,Rt.isMultiSelectEnabled);return a=>w({ref:n,role:"tree",id:r,"aria-multiselectable":i},t,a,{style:w({},t.style,{"--TreeView-itemChildrenIndentation":typeof s=="number"?`${s}px`:s}),onFocus:l=>{a.onFocus?.(l),e.focus.handleRootFocus(l)},onBlur:l=>{a.onBlur?.(l),e.focus.handleRootBlur(l)}})}function Pse(e){return e.replace(/["\\]/g,"\\$&")}const n1=f.createContext(null);process.env.NODE_ENV!=="production"&&(n1.displayName="TreeViewChildrenItemContext");function o1(e){const{children:t,itemId:n=null,idAttribute:r}=e,{store:s,rootRef:i}=gl(),a=f.useRef(new Map);f.useEffect(()=>{if(!i.current)return;const c=je.itemOrderedChildrenIds(s.state,n??null)??[],u=Pse(r??i.current.id);if(n!=null){const h=i.current.querySelector(`*[id="${u}"][role="treeitem"]`);if(h&&h.getAttribute("aria-expanded")==="false")return}const d=i.current.querySelectorAll(`${n==null?"":`*[id="${u}"] `}[role="treeitem"]:not(*[id="${u}"] [role="treeitem"] [role="treeitem"])`),p=Array.from(d).map(h=>a.current.get(h.id));(p.length!==c.length||p.some((h,b)=>h!==c[b]))&&s.jsxItems.setJSXItemsOrderedChildrenIds(n??null,p)});const l=f.useMemo(()=>({registerChild:(c,u)=>a.current.set(c,u),unregisterChild:c=>a.current.delete(c),parentId:n}),[n]);return v.jsx(n1.Provider,{value:l,children:t})}process.env.NODE_ENV!=="production"&&(o1.propTypes={children:o.node,id:o.string});const Pu=f.createContext(()=>-1);process.env.NODE_ENV!=="production"&&(Pu.displayName="TreeViewItemDepthContext");const nh=typeof document<"u"?f.useLayoutEffect:()=>{},Ese=[];function Tse(e){f.useEffect(e,Ese)}function Ise(e,t){const n=_t(),r=Zf(()=>new e(w({},t,{isRtl:n}))).current;return nh(()=>r.updateStateFromParameters(w({},t,{isRtl:n})),[r,n,t]),Tse(r.disposeEffect),r}const Mse=({isItemEditable:e,expansionTrigger:t})=>t||(e?"iconContainer":"content");function jO(e){return{disabledItemsFocusable:e.disabledItemsFocusable??!1,domStructure:"nested",itemChildrenIndentation:e.itemChildrenIndentation??"12px",providedTreeId:e.id,expansionTrigger:Mse({isItemEditable:e.isItemEditable,expansionTrigger:e.expansionTrigger}),disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,selectionPropagation:e.selectionPropagation??Cu}}function GO(e,t,n){return e!==void 0?e:t!==void 0?t:n}function Ose(e){return w({treeId:void 0,focusedItemId:null},jO(e),eh.buildItemsStateIfNeeded(e),{expandedItems:GO(e.expandedItems,e.defaultExpandedItems,[]),selectedItems:GO(e.selectedItems,e.defaultSelectedItems,e.multiSelect?Y0:null)})}let WO=0;const kse=()=>(WO+=1,`mui-tree-view-${WO}`);class Dse{timeoutIds=new Map;intervalIds=new Map;startTimeout=(t,n,r)=>{this.clearTimeout(t);const s=setTimeout(()=>{this.timeoutIds.delete(t),r()},n);this.timeoutIds.set(t,s)};startInterval=(t,n,r)=>{this.clearTimeout(t);const s=setInterval(r,n);this.intervalIds.set(t,s)};clearTimeout=t=>{const n=this.timeoutIds.get(t);n!=null&&(clearTimeout(n),this.timeoutIds.delete(t))};clearInterval=t=>{const n=this.intervalIds.get(t);n!=null&&(clearInterval(n),this.intervalIds.delete(t))};clearAll=()=>{this.timeoutIds.forEach(clearTimeout),this.timeoutIds.clear(),this.intervalIds.forEach(clearInterval),this.intervalIds.clear()}}class Fse{constructor(t){this.store=t}setExpandedItems=(t,n)=>{this.store.parameters.expandedItems===void 0&&this.store.set("expandedItems",n),this.store.parameters.onExpandedItemsChange?.(t,n)};isItemExpanded=t=>Nn.isItemExpanded(this.store.state,t);buildPublicAPI=()=>({isItemExpanded:this.isItemExpanded,setItemExpansion:this.setItemExpansion});setItemExpansion=({itemId:t,event:n=null,shouldBeExpanded:r})=>{const s=Nn.isItemExpanded(this.store.state,t),i=r??!s;if(s===i)return;const a={isExpansionPrevented:!1,shouldBeExpanded:i,itemId:t};this.store.publishEvent("beforeItemToggleExpansion",a,n),!a.isExpansionPrevented&&this.applyItemExpansion({itemId:t,event:n,shouldBeExpanded:i})};applyItemExpansion=({itemId:t,event:n,shouldBeExpanded:r})=>{const s=Nn.expandedItemsRaw(this.store.state);let i;r?i=[t].concat(s):i=s.filter(a=>a!==t),this.store.parameters.onItemExpansionToggle?.(n,t,r),this.setExpandedItems(n,i)};expandAllSiblings=(t,n)=>{const r=je.itemMeta(this.store.state,n);if(r==null)return;const i=je.itemOrderedChildrenIds(this.store.state,r.parentId).filter(l=>Nn.isItemExpandable(this.store.state,l)&&!Nn.isItemExpanded(this.store.state,l)),a=Nn.expandedItemsRaw(this.store.state).concat(i);i.length>0&&(this.store.parameters.onItemExpansionToggle&&i.forEach(l=>{this.store.parameters.onItemExpansionToggle(t,l,!0)}),this.setExpandedItems(t,a))};addExpandableItems=t=>{const n=w({},this.store.state.itemMetaLookup);for(const r of t)n[r]=w({},n[r],{expandable:!0});this.store.set("itemMetaLookup",n)}}const ml={isItemEditable:lt(e=>e.isItemEditable,je.itemModel,(e,t,n)=>!t||e==null?!1:typeof e=="boolean"?e:e(t)),isItemBeingEdited:lt((e,t)=>t==null?!1:e.editedItemId===t),isAnyItemBeingEdited:lt(e=>!!e.editedItemId)},Nse=500;class Rse{typeaheadQuery="";constructor(t){this.store=t,this.labelMap=UO(je.itemMetaLookup(this.store.state)),this.store.registerStoreEffect(je.itemMetaLookup,(n,r)=>{this.store.shouldIgnoreItemsStateUpdate()||(this.labelMap=UO(r))})}canToggleItemSelection=t=>Rt.canItemBeSelected(this.store.state,t);canToggleItemExpansion=t=>!je.isItemDisabled(this.store.state,t)&&Nn.isItemExpandable(this.store.state,t);getFirstItemMatchingTypeaheadQuery=(t,n)=>{const r=u=>{const d=Su(this.store.state,u);return d===null?xu(this.store.state):d},s=u=>{let d=null;const p={};let g=u.length>1?t:r(t);for(;d==null&&!p[g];)this.labelMap[g]?.startsWith(u)?d=g:(p[g]=!0,g=r(g));return d},i=n.toLowerCase(),a=`${this.typeaheadQuery}${i}`,l=s(a);if(l!=null)return this.typeaheadQuery=a,l;const c=s(i);return c!=null?(this.typeaheadQuery=i,c):(this.typeaheadQuery="",null)};updateLabelMap=t=>{this.labelMap=t(this.labelMap)};handleItemKeyDown=async(t,n)=>{if(t.defaultMuiPrevented||t.altKey||t1(t.target,t.currentTarget))return;const r=t.ctrlKey||t.metaKey,s=t.key,i=Rt.isMultiSelectEnabled(this.store.state);switch(!0){case(s===" "&&this.canToggleItemSelection(n)):{t.preventDefault(),i&&t.shiftKey?this.store.selection.expandSelectionRange(t,n):this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:i,shouldBeSelected:void 0});break}case s==="Enter":{this.store.labelEditing?.setEditedItem&&ml.isItemEditable(this.store.state,n)&&!ml.isItemBeingEdited(this.store.state,n)?this.store.labelEditing.setEditedItem(n):this.canToggleItemExpansion(n)?(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault()):this.canToggleItemSelection(n)&&(i?(t.preventDefault(),this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:!0})):Rt.isItemSelected(this.store.state,n)||(this.store.selection.setItemSelection({event:t,itemId:n}),t.preventDefault()));break}case s==="ArrowDown":{const a=Su(this.store.state,n);a&&(t.preventDefault(),this.store.focus.focusItem(t,a),i&&t.shiftKey&&this.canToggleItemSelection(a)&&this.store.selection.selectItemFromArrowNavigation(t,n,a));break}case s==="ArrowUp":{const a=e1(this.store.state,n);a&&(t.preventDefault(),this.store.focus.focusItem(t,a),i&&t.shiftKey&&this.canToggleItemSelection(a)&&this.store.selection.selectItemFromArrowNavigation(t,n,a));break}case(s==="ArrowRight"&&!this.store.parameters.isRtl||s==="ArrowLeft"&&this.store.parameters.isRtl):{if(r)return;if(Nn.isItemExpanded(this.store.state,n)){const a=Su(this.store.state,n);a&&(this.store.focus.focusItem(t,a),t.preventDefault())}else this.canToggleItemExpansion(n)&&(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault());break}case(s==="ArrowLeft"&&!this.store.parameters.isRtl||s==="ArrowRight"&&this.store.parameters.isRtl):{if(r)return;if(this.canToggleItemExpansion(n)&&Nn.isItemExpanded(this.store.state,n))this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault();else{const a=je.itemParentId(this.store.state,n);a&&(this.store.focus.focusItem(t,a),t.preventDefault())}break}case s==="Home":{this.canToggleItemSelection(n)&&i&&r&&t.shiftKey?this.store.selection.selectRangeFromStartToItem(t,n):this.store.focus.focusItem(t,xu(this.store.state)),t.preventDefault();break}case s==="End":{this.canToggleItemSelection(n)&&i&&r&&t.shiftKey?this.store.selection.selectRangeFromItemToEnd(t,n):this.store.focus.focusItem(t,BO(this.store.state)),t.preventDefault();break}case s==="*":{this.store.expansion.expandAllSiblings(t,n),t.preventDefault();break}case(String.fromCharCode(t.keyCode)==="A"&&r&&i&&Rt.enabled(this.store.state)):{this.store.selection.selectAllNavigableItems(t),t.preventDefault();break}case(!r&&!t.shiftKey&&Lse(s)):{this.store.timeoutManager.clearTimeout("typeahead");const a=this.getFirstItemMatchingTypeaheadQuery(n,s);a!=null?(this.store.focus.focusItem(t,a),t.preventDefault()):this.typeaheadQuery="",this.store.timeoutManager.startTimeout("typeahead",Nse,()=>{this.typeaheadQuery=""});break}}}}function Lse(e){return!!e&&e.length===1&&!!e.match(/\S/)}function UO(e){const t={},n=r=>{t[r.id]=r.label.toLowerCase()};return Object.values(e).forEach(n),t}const qO=Zn(Rt.selectedItems,Nn.expandedItemsMap,je.itemMetaLookup,je.disabledItemFocusable,e=>je.itemOrderedChildrenIds(e,null),(e,t,n,r,s)=>{const i=e.find(l=>{if(!r&&Jf(n,l))return!1;const c=n[l];return c&&(c.parentId==null||t.has(c.parentId))});if(i!=null)return i;const a=s.find(l=>r||!Jf(n,l));return a??null}),bl={defaultFocusableItemId:qO,isItemTheDefaultFocusableItem:lt(qO,(e,t)=>e===t),focusedItemId:lt(e=>e.focusedItemId),isItemFocused:lt((e,t)=>e.focusedItemId===t)};class $se{constructor(t){this.store=t;let n=t.state;this.store.subscribe(r=>{if(r.itemMetaLookup===n.itemMetaLookup){n=r;return}const s=bl.focusedItemId(r);if(s==null||je.itemMeta(r,s)){n=r;return}const i=l=>l==null||!je.itemMeta(r,l)?null:l,a=i(Su(n,s))??i(e1(n,s))??xu(r);a==null?this.setFocusedItemId(null):this.applyItemFocus(null,a),n=r})}setFocusedItemId=t=>{bl.focusedItemId(this.store.state)!==t&&this.store.set("focusedItemId",t)};applyItemFocus=(t,n)=>{this.store.items.getItemDOMElement(n)?.focus(),this.setFocusedItemId(n),this.store.parameters.onItemFocus?.(t,n)};buildPublicAPI=()=>({focusItem:this.focusItem});focusItem=(t,n)=>{const r=je.itemMeta(this.store.state,n);r&&(r.parentId==null||Nn.isItemExpanded(this.store.state,r.parentId))&&this.applyItemFocus(t,n)};removeFocusedItem=()=>{const t=bl.focusedItemId(this.store.state);if(t==null)return;if(je.itemMeta(this.store.state,t)){const r=this.store.items.getItemDOMElement(t);r&&r.blur()}this.setFocusedItemId(null)};handleRootFocus=t=>{if(t.defaultMuiPrevented)return;const n=bl.defaultFocusableItemId(this.store.state);t.target===t.currentTarget&&n!=null&&this.applyItemFocus(t,n)};handleRootBlur=t=>{t.defaultMuiPrevented||this.setFocusedItemId(null)}}class Ase{itemPlugins=[];itemWrappers=[];register=(t,n)=>{this.itemPlugins.push(t),n&&this.itemWrappers.push(n)};listPlugins=()=>this.itemPlugins;listWrappers=()=>this.itemWrappers}class Vse extends _c{initialParameters=null;eventManager=new MM;timeoutManager=new Dse;itemPluginManager=new Ase;constructor(t,n,r){const s=Ose(t),i=r.getInitialState(s,t);super(i),this.parameters=t,this.instanceName=n,this.mapper=r,this.items=new eh(this),this.focus=new $se(this),this.expansion=new Fse(this),this.selection=new wse(this),this.keyboardNavigation=new Rse(this),process.env.NODE_ENV!=="production"&&(this.initialParameters=t)}buildPublicAPI(){return w({},this.items.buildPublicAPI(),this.focus.buildPublicAPI(),this.expansion.buildPublicAPI(),this.selection.buildPublicAPI())}updateStateFromParameters(t){const n=(i,a,l)=>{if(t[a]!==void 0&&(i[a]=t[a]),process.env.NODE_ENV!=="production"){const c=t[l],u=t[a]!==void 0,d=this.initialParameters?.[l],p=this.initialParameters?.[a]!==void 0;p!==u?yn([`MUI X Tree View: A component is changing the ${p?"":"un"}controlled ${a} state of ${this.instanceName} to be ${p?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${a} 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"],"error"):JSON.stringify(d)!==JSON.stringify(c)&&yn([`MUI X Tree View: A component is changing the default ${a} state of an uncontrolled ${this.instanceName} after being initialized. `,`To suppress this warning opt to use a controlled ${this.instanceName}.`],"error")}},r=jO(t);n(r,"expandedItems","defaultExpandedItems"),n(r,"selectedItems","defaultSelectedItems"),(this.state.providedTreeId!==t.id||this.state.treeId===void 0)&&(r.treeId=kse()),!this.mapper.shouldIgnoreItemsStateUpdate(t)&&eh.shouldRebuildItemsState(t,this.parameters)&&Object.assign(r,eh.buildItemsStateIfNeeded(t));const s=this.mapper.updateStateFromParameters(r,t,n);this.update(s),this.parameters=t}disposeEffect=()=>this.timeoutManager.clearAll;shouldIgnoreItemsStateUpdate=()=>this.mapper.shouldIgnoreItemsStateUpdate(this.parameters);registerStoreEffect=(t,n)=>{let r=t(this.state);this.subscribe(s=>{const i=t(s);i!==r&&(n(r,i),r=i)})};publishEvent=(t,n,r)=>{_se(r)&&r.isPropagationStopped()||this.eventManager.emit(t,n,r)};subscribeEvent=(t,n)=>{this.eventManager.on(t,n)}}function _se(e){return e?.isPropagationStopped!==void 0}const YO={isEmpty:lt(e=>e.lazyLoadedItems==null?!0:Object.keys(e.lazyLoadedItems.loading).length===0&&Object.keys(e.lazyLoadedItems.errors).length===0),isItemLoading:lt((e,t)=>e.lazyLoadedItems?.loading[t??Tr]??!1),itemHasError:lt((e,t)=>!!e.lazyLoadedItems?.errors[t??Tr]),itemError:lt((e,t)=>e.lazyLoadedItems?.errors[t??Tr])},r1=e=>Array.isArray(e)?e.length>0&&e.some(r1):!!e,Bse=({itemId:e,children:t})=>{const{store:n,publicAPI:r}=gl(),s=qt(n,Nn.isItemExpandable,e),i=qt(n,YO.isItemLoading,e),a=qt(n,YO.itemHasError,e),l=r1(t)||s,c=qt(n,Nn.isItemExpanded,e),u=qt(n,bl.isItemFocused,e),d=qt(n,Rt.isItemSelected,e),p=qt(n,je.isItemDisabled,e),g=qt(n,ml.isItemBeingEdited,e),h=qt(n,ml.isItemEditable,e),b={expandable:l,expanded:c,focused:u,selected:d,disabled:p,editing:g,editable:h,loading:i,error:a},m=M=>{if(b.disabled)return;b.focused||n.focus.focusItem(M,e);const D=Rt.isMultiSelectEnabled(n.state)&&(M.shiftKey||M.ctrlKey||M.metaKey);b.expandable&&!(D&&Nn.isItemExpanded(n.state,e))&&n.expansion.setItemExpansion({event:M,itemId:e})},y=M=>{if(!Rt.canItemBeSelected(n.state,e))return;!b.focused&&!b.editing&&n.focus.focusItem(M,e),Rt.isMultiSelectEnabled(n.state)&&(M.shiftKey||M.ctrlKey||M.metaKey)?M.shiftKey?n.selection.expandSelectionRange(M,e):n.selection.setItemSelection({event:M,itemId:e,keepExistingSelection:!0}):n.selection.setItemSelection({event:M,itemId:e,shouldBeSelected:!0})},C=M=>{const D=M.nativeEvent.shiftKey,O=Rt.isMultiSelectEnabled(n.state);O&&D?n.selection.expandSelectionRange(M,e):n.selection.setItemSelection({event:M,itemId:e,keepExistingSelection:O,shouldBeSelected:M.target.checked})},S=()=>{n.labelEditing&&(g?n.labelEditing.setEditedItem(null):n.labelEditing.setEditedItem(e))};return{interactions:{handleExpansion:m,handleSelection:y,handleCheckboxSelection:C,toggleItemEditing:S,handleSaveItemLabel:(M,D)=>{n.labelEditing&&ml.isItemBeingEdited(n.state,e)&&(n.labelEditing.updateItemLabel(e,D),S(),n.focus.focusItem(M,e))},handleCancelItemLabelEditing:M=>{n.labelEditing&&ml.isItemBeingEdited(n.state,e)&&(S(),n.focus.focusItem(M,e))}},status:b,publicAPI:r}},Hse=({props:e,rootRef:t,contentRef:n})=>{const{store:r}=gl(),{children:s,disabled:i=!1,disableSelection:a=!1,label:l,itemId:c,id:u}=e,d=f.useContext(n1);if(d==null)throw new Error(["MUI X: Could not find the Tree View Children Item context.","It looks like you rendered your component outside of a SimpleTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
423
+ `));const{registerChild:p,unregisterChild:g,parentId:h}=d,b=r1(s),m=f.useRef(null),y=Qf(m,n),C=qt(r,wu.treeItemIdAttribute,c,u),S=f.useRef(!0),x=Zf(Symbol);return nh(()=>(p(C,c),()=>{g(C),g(C)}),[r,p,g,C,c]),nh(()=>(S.current=!0,()=>{S.current=!1}),[]),nh(()=>{const E=r.jsxItems.upsertJSXItem({id:c,idAttribute:u,parentId:h,expandable:b,disabled:i,selectable:!a},x.current);return()=>{S.current||E()}},[r,h,c,b,i,a,u,x]),f.useEffect(()=>{if(l)return r.jsxItems.mapLabelFromJSX(c,(m.current?.textContent??"").toLowerCase())},[r,c,l]),{contentRef:y,rootRef:t}},KO=({children:e,itemId:t,idAttribute:n})=>{const r=f.useContext(Pu);return v.jsx(o1,{itemId:t,idAttribute:n,children:v.jsx(Pu.Provider,{value:r+1,children:e})})};process.env.NODE_ENV!=="production"&&(KO.displayName="jsxItemsitemWrapper");class zse{itemOwners=new Map;constructor(t){this.store=t,t.itemPluginManager.register(Hse,KO)}upsertJSXItem=(t,n)=>{const r=this.itemOwners.get(t.id);if(r!=null&&r!==n)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${t.id}"`].join(`
424
+ `));this.itemOwners.set(t.id,n);const s=je.itemMeta(this.store.state,t.id);if(s!=null){let i=!1;for(const a of Object.keys(t))if(s[a]!==t[a]){i=!0;break}i&&this.store.update({itemMetaLookup:w({},this.store.state.itemMetaLookup,{[t.id]:w({},s,t)})})}else this.store.update({itemMetaLookup:w({},this.store.state.itemMetaLookup,{[t.id]:t}),itemModelLookup:w({},this.store.state.itemModelLookup,{[t.id]:{id:t.id,label:t.label??""}})});return()=>{this.itemOwners.delete(t.id);const i=w({},this.store.state.itemMetaLookup),a=w({},this.store.state.itemModelLookup);delete i[t.id],delete a[t.id],this.store.update({itemMetaLookup:i,itemModelLookup:a})}};mapLabelFromJSX=(t,n)=>(this.store.keyboardNavigation.updateLabelMap(r=>(r[t]=n,r)),()=>{this.store.keyboardNavigation.updateLabelMap(r=>{const s=w({},r);return delete s[t],s})});setJSXItemsOrderedChildrenIds=(t,n)=>{const r=t??Tr;this.store.update({itemOrderedChildrenIdsLookup:w({},this.store.state.itemOrderedChildrenIdsLookup,{[r]:n}),itemChildrenIndexesLookup:w({},this.store.state.itemChildrenIndexesLookup,{[r]:$O(n)})})}}const jse={getInitialState:e=>e,updateStateFromParameters:e=>e,shouldIgnoreItemsStateUpdate:()=>!0};class Gse extends Vse{jsxItems=new zse(this);constructor(t){super(w({},t,{items:Y0}),"SimpleTreeView",jse)}updateStateFromParameters(t){super.updateStateFromParameters(w({},t,{items:Y0}))}}const Wse=NO(),Use=e=>{const{classes:t}=e;return f.useMemo(()=>pe({root:["root"],item:["item"],itemContent:["itemContent"],itemGroupTransition:["itemGroupTransition"],itemIconContainer:["itemIconContainer"],itemLabel:["itemLabel"],itemCheckbox:["itemCheckbox"]},cse,t),[t])},qse=U("ul",{name:"MuiSimpleTreeView",slot:"Root"})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),s1=f.forwardRef(function(t,n){const r=Wse({props:t,name:"MuiSimpleTreeView"});process.env.NODE_ENV!=="production"&&r.items!=null&&yn(["MUI X: The Simple Tree View component does not support the `items` prop.","If you want to add items, you need to pass them as JSX children.","Check the documentation for more details: https://mui.com/x/react-tree-view/simple-tree-view/items/."]);const{slots:s,slotProps:i,apiRef:a,parameters:l,forwardedProps:c}=hse(r),u=Ise(Gse,l),d=f.useRef(null),p=Qf(n,d),g=xse(u,c,p),h=Use(r),b=s?.root??qse,m=nt({elementType:b,externalSlotProps:i?.root,className:h.root,getSlotProps:g,ownerState:r});return v.jsx(pse,{store:u,classes:h,slots:s,slotProps:i,apiRef:a,rootRef:d,children:v.jsx(o1,{itemId:null,idAttribute:null,children:v.jsx(Pu.Provider,{value:0,children:v.jsx(b,w({},m))})})})});process.env.NODE_ENV!=="production"&&(s1.displayName="SimpleTreeView"),process.env.NODE_ENV!=="production"&&(s1.propTypes={apiRef:o.shape({current:o.shape({focusItem:o.func,getItem:o.func,getItemDOMElement:o.func,getItemOrderedChildrenIds:o.func,getItemTree:o.func,getParentId:o.func,isItemExpanded:o.func,setIsItemDisabled:o.func,setItemExpansion:o.func,setItemSelection:o.func})}),checkboxSelection:o.bool,children:o.node,classes:o.object,className:o.string,defaultExpandedItems:o.arrayOf(o.string),defaultSelectedItems:o.any,disabledItemsFocusable:o.bool,disableSelection:o.bool,expandedItems:o.arrayOf(o.string),expansionTrigger:o.oneOf(["content","iconContainer"]),id:o.string,itemChildrenIndentation:o.oneOfType([o.number,o.string]),multiSelect:o.bool,onExpandedItemsChange:o.func,onItemClick:o.func,onItemExpansionToggle:o.func,onItemFocus:o.func,onItemSelectionToggle:o.func,onSelectedItemsChange:o.func,selectedItems:o.any,selectionPropagation:o.shape({descendants:o.bool,parents:o.bool}),slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Yse=(e,t,n)=>typeof n=="function"?n(e,t):n,Kse=e=>{const{runItemPlugins:t,publicAPI:n,store:r}=gl(),s=f.useContext(Pu),i=qt(r,Yse,e.itemId,s),{id:a,itemId:l,label:c,children:u,rootRef:d}=e,{rootRef:p,contentRef:g,propsEnhancers:h}=t(e),{interactions:b,status:m}=Bse({itemId:l,children:u}),y=f.useRef(null),C=f.useRef(null),S=Qf(d,p,y),x=Qf(g,C),E=f.useRef(null),P=qt(r,Rt.isCheckboxSelectionEnabled),M=qt(r,wu.treeItemIdAttribute,l,a),D=qt(r,bl.isItemTheDefaultFocusableItem,l),O={rootRefObject:y,contentRefObject:C,interactions:b},k=Y=>K=>{Y.onFocus?.(K),!K.defaultMuiPrevented&&!m.focused&&je.canItemBeFocused(r.state,l)&&K.currentTarget===K.target&&r.focus.focusItem(K,l)},I=Y=>K=>{if(Y.onBlur?.(K),K.defaultMuiPrevented)return;const J=r.items.getItemDOMElement(l);m.editing||K.relatedTarget&&t1(K.relatedTarget,J)&&(K.target&&K.target?.dataset?.element==="labelInput"&&t1(K.target,J)||K.relatedTarget?.dataset?.element==="labelInput")||r.focus.removeFocusedItem()},F=Y=>K=>{Y.onKeyDown?.(K),!(K.defaultMuiPrevented||K.target?.dataset?.element==="labelInput")&&r.keyboardNavigation.handleItemKeyDown(K,l)},T=Y=>K=>{Y.onDoubleClick?.(K),!K.defaultMuiPrevented&&b.toggleItemEditing()},R=Y=>K=>{Y.onClick?.(K),r.items.handleItemClick(K,l),!(K.defaultMuiPrevented||E.current?.contains(K.target))&&(Nn.triggerSlot(r.state)==="content"&&b.handleExpansion(K),P||b.handleSelection(K))},A=Y=>K=>{Y.onMouseDown?.(K),!K.defaultMuiPrevented&&(K.shiftKey||K.ctrlKey||K.metaKey||m.disabled)&&K.preventDefault()},L=Y=>K=>{Y.onClick?.(K),!K.defaultMuiPrevented&&Nn.triggerSlot(r.state)==="iconContainer"&&b.handleExpansion(K)};return{getContextProviderProps:()=>({itemId:l,id:a}),getRootProps:(Y={})=>{const K=w({},$o(e),$o(Y)),J=w({},K,{ref:S,role:"treeitem",tabIndex:D?0:-1,id:M,"aria-expanded":m.expandable?m.expanded:void 0,"aria-disabled":m.disabled||void 0},Y,{style:w({},Y.style??{},{"--TreeView-itemDepth":i}),onFocus:k(K),onBlur:I(K),onKeyDown:F(K)}),X=h.root?.(w({},O,{externalEventHandlers:K}))??{};return w({},J,X)},getContentProps:(Y={})=>{const K=$o(Y),J=w({},K,Y,{ref:x,onClick:R(K),onMouseDown:A(K),status:m});["expanded","selected","focused","disabled","editing","editable"].forEach(ee=>{m[ee]&&(J[`data-${ee}`]="")});const X=h.content?.(w({},O,{externalEventHandlers:K}))??{};return w({},J,X)},getGroupTransitionProps:(Y={})=>{const K=$o(Y);return w({},K,{unmountOnExit:!0,component:"ul",role:"group",in:m.expanded,children:u},Y)},getIconContainerProps:(Y={})=>{const K=$o(Y);return w({},K,Y,{onClick:L(K)})},getCheckboxProps:(Y={})=>{const K=$o(Y),J=w({},K,{ref:E,"aria-hidden":!0},Y),X=h.checkbox?.(w({},O,{externalEventHandlers:K}))??{};return w({},J,X)},getLabelProps:(Y={})=>{const K=w({},$o(Y)),J=w({},K,{children:c},Y,{onDoubleClick:T(K)}),X=h.label?.(w({},O,{externalEventHandlers:K}))??{};return w({},X,J)},getLabelInputProps:(Y={})=>{const K=$o(Y),J=h.labelInput?.(w({},O,{externalEventHandlers:K}))??{};return w({},Y,J)},getDragAndDropOverlayProps:(Y={})=>{const K=$o(Y),J=h.dragAndDropOverlay?.(w({},O,{externalEventHandlers:K}))??{};return w({},Y,J)},getErrorContainerProps:(Y={})=>{const K=$o(Y);return w({},K,Y)},getLoadingContainerProps:(Y={})=>{const K=$o(Y);return w({size:"12px",thickness:6},K,Y)},rootRef:S,status:m,publicAPI:n}};function Xse(e){return ke("MuiTreeItem",e)}Me("MuiTreeItem",["root","content","groupTransition","iconContainer","label","checkbox","labelInput","dragAndDropOverlay","errorIcon","loadingIcon","expanded","selected","focused","disabled","editable","editing"]);const Zse=gt(v.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),Qse=gt(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon"),Jse=["ownerState"];function i1(e,t,n){return e!==void 0?e:t!==void 0?t:n}function XO(e){const{slots:t,slotProps:n,status:r}=e,{slots:s,slotProps:i}=RO(),a={collapseIcon:i1(t?.collapseIcon,s.collapseIcon,Qse),expandIcon:i1(t?.expandIcon,s.expandIcon,Zse),endIcon:i1(t?.endIcon,s.endIcon),icon:t?.icon};let l;a?.icon?l="icon":r.expandable?r.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const c=a[l],u=nt({elementType:c,externalSlotProps:p=>w({},Wn(i[l],p),Wn(n?.[l],p)),ownerState:{}}),d=ie(u,Jse);return c?v.jsx(c,w({},d)):null}process.env.NODE_ENV!=="production"&&(XO.propTypes={slotProps:o.object,slots:o.object,status:o.shape({disabled:o.bool.isRequired,editable:o.bool.isRequired,editing:o.bool.isRequired,error:o.bool.isRequired,expandable:o.bool.isRequired,expanded:o.bool.isRequired,focused:o.bool.isRequired,loading:o.bool.isRequired,selected:o.bool.isRequired}).isRequired});const eie=U("div",{name:"MuiTreeItemDragAndDropOverlay",slot:"Root",shouldForwardProp:e=>So(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:$n(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function ZO(e){return e.action==null?null:v.jsx(eie,w({},e))}process.env.NODE_ENV!=="production"&&(ZO.propTypes={action:o.oneOf(["make-child","move-to-parent","reorder-above","reorder-below"]),style:o.object});function QO(e){const{children:t,itemId:n,id:r}=e,{wrapItem:s,store:i}=gl(),a=qt(i,wu.treeItemIdAttribute,n,r);return v.jsx(f.Fragment,{children:s({children:t,itemId:n,store:i,idAttribute:a})})}process.env.NODE_ENV!=="production"&&(QO.propTypes={children:o.node,id:o.string,itemId:o.string.isRequired});const tie=U("input",{name:"MuiTreeItem",slot:"LabelInput"})(({theme:e})=>w({},e.typography.body1,{width:"100%",backgroundColor:(e.vars||e).palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${(e.vars||e).palette.primary.main}`}})),nie=["visible"],oie=["id","itemId","label","disabled","disableSelection","children","slots","slotProps","classes"],rie=NO(),sie=U("li",{name:"MuiTreeItem",slot:"Root"})({listStyle:"none",margin:0,padding:0,outline:0}),iie=U("div",{name:"MuiTreeItem",slot:"Content",shouldForwardProp:e=>So(e)&&e!=="status"})(({theme:e})=>({padding:e.spacing(.5,1),paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`,borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&[data-disabled]":{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent",cursor:"auto"},"&[data-focused]":{backgroundColor:(e.vars||e).palette.action.focus},"&[data-selected]":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$n(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$n(e.palette.primary.main,e.palette.action.selectedOpacity)}}},"&[data-selected][data-focused]":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}})),aie=U("div",{name:"MuiTreeItem",slot:"Label",shouldForwardProp:e=>So(e)&&e!=="editable"})(({theme:e})=>w({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),lie=U("div",{name:"MuiTreeItem",slot:"IconContainer"})({width:16,display:"flex",flexShrink:0,justifyContent:"center",position:"relative",cursor:"inherit","& svg":{fontSize:18}}),cie=U(ud,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0}),uie=U("div",{name:"MuiTreeItem",slot:"ErrorIcon"})({position:"absolute",right:-3,width:7,height:7,borderRadius:"50%",backgroundColor:"red"}),die=U(oi,{name:"MuiTreeItem",slot:"LoadingIcon"})({color:"text.primary"}),JO=U(f.forwardRef((e,t)=>{const{visible:n}=e,r=ie(e,nie);return n?v.jsx(va,w({},r,{ref:t})):null}),{name:"MuiTreeItem",slot:"Checkbox"})({padding:0});process.env.NODE_ENV!=="production"&&(JO.displayName="TreeItemCheckbox");const pie=e=>{const{classes:t}=RO(),n=w({},e,{root:se(e?.root,t.root),content:se(e?.content,t.itemContent),iconContainer:se(e?.iconContainer,t.itemIconContainer),checkbox:se(e?.checkbox,t.itemCheckbox),label:se(e?.label,t.itemLabel),groupTransition:se(e?.groupTransition,t.itemGroupTransition),labelInput:se(e?.labelInput,t.itemLabelInput),dragAndDropOverlay:se(e?.dragAndDropOverlay,t.itemDragAndDropOverlay),errorIcon:se(e?.errorIcon,t.itemErrorIcon),loadingIcon:se(e?.loadingIcon,t.itemLoadingIcon)});return pe({root:["root"],content:["content"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"],labelInput:["labelInput"],dragAndDropOverlay:["dragAndDropOverlay"],errorIcon:["errorIcon"],loadingIcon:["loadingIcon"],expanded:["expanded"],editing:["editing"],editable:["editable"],selected:["selected"],focused:["focused"],disabled:["disabled"]},Xse,n)},oh=f.forwardRef(function(t,n){const r=rie({props:t,name:"MuiTreeItem"}),{id:s,itemId:i,label:a,disabled:l,disableSelection:c,children:u,slots:d={},slotProps:p={},classes:g}=r,h=ie(r,oie),{getContextProviderProps:b,getRootProps:m,getContentProps:y,getIconContainerProps:C,getCheckboxProps:S,getLabelProps:x,getGroupTransitionProps:E,getLabelInputProps:P,getDragAndDropOverlayProps:M,getErrorContainerProps:D,getLoadingContainerProps:O,status:k}=Kse({id:s,itemId:i,children:u,label:a,disabled:l,disableSelection:c}),I=pie(g),F=d.root??sie,T=nt({elementType:F,getSlotProps:m,externalForwardedProps:h,externalSlotProps:p.root,additionalProps:{ref:n},ownerState:{},className:I.root}),R=d.content??iie,A=nt({elementType:R,getSlotProps:y,externalSlotProps:p.content,ownerState:{},className:se(I.content,k.expanded&&I.expanded,k.selected&&I.selected,k.focused&&I.focused,k.disabled&&I.disabled,k.editing&&I.editing,k.editable&&I.editable)}),L=d.iconContainer??lie,N=nt({elementType:L,getSlotProps:C,externalSlotProps:p.iconContainer,ownerState:{},className:I.iconContainer}),_=d.label??aie,H=nt({elementType:_,getSlotProps:x,externalSlotProps:p.label,ownerState:{},className:I.label}),B=d.checkbox??JO,$=nt({elementType:B,getSlotProps:S,externalSlotProps:p.checkbox,ownerState:{},className:I.checkbox}),V=d.groupTransition??void 0,z=nt({elementType:V,getSlotProps:E,externalSlotProps:p.groupTransition,ownerState:{},className:I.groupTransition}),j=d.labelInput??tie,G=nt({elementType:j,getSlotProps:P,externalSlotProps:p.labelInput,ownerState:{},className:I.labelInput}),Q=d.dragAndDropOverlay??ZO,q=nt({elementType:Q,getSlotProps:M,externalSlotProps:p.dragAndDropOverlay,ownerState:{},className:I.dragAndDropOverlay}),Y=d.errorIcon??uie,K=nt({elementType:Y,getSlotProps:D,externalSlotProps:p.errorIcon,ownerState:{},className:I.errorIcon}),J=d.loadingIcon??die,X=nt({elementType:J,getSlotProps:O,externalSlotProps:p.loadingIcon,ownerState:{},className:I.loadingIcon});return v.jsx(QO,w({},b(),{children:v.jsxs(F,w({},T,{children:[v.jsxs(R,w({},A,{children:[v.jsxs(L,w({},N,{children:[k.error&&v.jsx(Y,w({},K)),k.loading?v.jsx(J,w({},X)):v.jsx(XO,{status:k,slots:d,slotProps:p})]})),v.jsx(B,w({},$)),k.editing?v.jsx(j,w({},G)):v.jsx(_,w({},H)),v.jsx(Q,w({},q))]})),u&&v.jsx(cie,w({as:V},z))]}))}))});process.env.NODE_ENV!=="production"&&(oh.displayName="TreeItem"),process.env.NODE_ENV!=="production"&&(oh.propTypes={children:o.any,classes:o.object,className:o.string,disabled:o.bool,disableSelection:o.bool,id:o.string,itemId:o.string.isRequired,label:o.node,onBlur:o.func,onFocus:Qh,onKeyDown:o.func,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const ek=({item:e,path:t})=>e.children.length===0?v.jsx(oh,{itemId:`${t}/${e.id}`,label:e.name,disabled:e.disabled,onClick:()=>{e.onClick&&e.onClick(`${t}/${e.id}`)}}):v.jsx(v.Fragment,{children:v.jsx(oh,{itemId:`${t}/${e.id}`,label:e.name,disabled:e.disabled,children:e.children.map(n=>v.jsx(ek,{item:n,path:`${t}/${e.id}`},n.id))})}),fie=({items:e})=>v.jsx(v.Fragment,{children:v.jsx(s1,{sx:{borderRadius:"16px",border:t=>`1px solid ${t.palette["gr-base-dark"].main}`,p:1.5},children:e.map(t=>v.jsx(ek,{item:t,path:"origin"},t.id))})}),hie=gt([v.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule"),gie=({label:e,initialValue:t,value:n,setValue:r,disabled:s,fullWidth:i,white:a})=>v.jsx(v.Fragment,{children:v.jsx(ob,{label:e,disabled:s,format:"HH:mm",ampm:!1,defaultValue:t,value:n,autoFocus:!0,onChange:l=>{r(l)},slotProps:{textField:{variant:"outlined",size:"small",fullWidth:i,color:"gr-yellow",focused:!0,sx:{borderRadius:"16px"},slotProps:{input:{sx:{borderRadius:"16px",color:a?"black !important":"white !important"},endAdornment:v.jsx(hie,{style:{color:a?"black":"white"}})}}}}})}),mie=({label:e,initialValue:t,value:n,setValue:r,disabled:s,white:i,fullWidth:a})=>{const{format:l,singleShortcut:c}=he.useContext(gr);return v.jsx(v.Fragment,{children:v.jsx(Np,{label:e,defaultValue:t,value:n,onChange:u=>r(u),disabled:s,format:l,slotProps:{shortcuts:{items:c},textField:{variant:"outlined",size:"small",fullWidth:a,color:"gr-yellow",focused:!0,slotProps:{input:{sx:{borderRadius:"16px",color:i?"black !important":"white !important","& .MuiIconButton-root .MuiSvgIcon-root":{color:i?"black !important":"white !important"}}}}},popper:{sx:{"& .MuiChip-root":{bgcolor:u=>u.palette["gr-grey"].light},"& .MuiChip-root:hover":{bgcolor:u=>u.palette["gr-grey"].dark},"& .MuiDayCalendar-weekDayLabel":{color:u=>u.palette["gr-base-dark"].main},"& .MuiYearCalendar-button":{color:u=>u.palette["gr-base-dark"].main},"& .MuiButtonBase-root":{color:u=>u.palette["gr-base-dark"].main},"& .Mui-selected, & .MuiPickersDay-root.Mui-selected":{bgcolor:u=>`${u.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiYearCalendar-yearButton.Mui-selected":{bgcolor:u=>`${u.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiPaper-root":{bgcolor:i?"white":"black",borderRadius:"20px"},"& .MuiPickersDay-root":{color:u=>u.palette["gr-base-dark"].main}}}}})})},bie=({label:e,initialValue:t,value:n,setValue:r,calendars:s,disabled:i,white:a,fullWidth:l})=>{const{format:c,rangeShortcut:u}=he.useContext(gr);return v.jsx(v.Fragment,{children:v.jsx(qf,{label:e,defaultValue:t,value:n,onChange:d=>r(d),disabled:i,format:c,calendars:s,slotProps:{shortcuts:{items:u},textField:{variant:"outlined",size:"small",fullWidth:l,color:"gr-yellow",focused:!0,slotProps:{input:{sx:{borderRadius:"16px",color:a?"black !important":"white !important","& .MuiIconButton-root .MuiSvgIcon-root":{color:a?"black !important":"white !important"}}}}},popper:{sx:{"& .MuiChip-root":{bgcolor:d=>d.palette["gr-grey"].light},"& .MuiChip-root:hover":{bgcolor:d=>d.palette["gr-grey"].dark},"& .MuiDayCalendar-weekDayLabel":{color:d=>d.palette["gr-base-dark"].main},"& .MuiYearCalendar-button":{color:d=>d.palette["gr-base-dark"].main},"& .MuiButtonBase-root":{color:d=>d.palette["gr-base-dark"].main},"& .MuiPickersArrowSwitcher-root":{color:d=>d.palette["gr-base-dark"].main},"& .Mui-selected, & .MuiPickersDay-root.Mui-selected":{bgcolor:d=>`${d.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiYearCalendar-yearButton.Mui-selected":{bgcolor:d=>`${d.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiPaper-root":{bgcolor:a?"white":"black",borderRadius:"20px"},"& .MuiPickersDay-root":{color:d=>d.palette["gr-base-dark"].main}}}}})})},yie=["props","steps"],vie=U(Ti,{slot:"internal"})(({theme:e})=>({overflow:"hidden",minWidth:Fc,backgroundColor:(e.vars||e).palette.background.paper})),Cie=e=>{let{props:t,steps:n}=e,r=ie(e,yie);const{localeText:s,slots:i,slotProps:a,displayStaticWrapperAs:l,autoFocus:c}=t,u=Wf(t),d=j0({steps:n,rangePositionResponse:u}),{providerProps:p,renderCurrentView:g}=Vc(w({},r,{props:t,variant:l,autoFocusView:c??!1,viewContainerRole:null,localeText:s,getStepNavigation:d})),h=i?.layout??vie,b=()=>v.jsx(fl.Provider,{value:u,children:v.jsx(Oc,w({},p,{children:v.jsx(h,w({},a?.layout,{slots:i,slotProps:a,sx:T_(p.contextValue.rootSx,a?.layout?.sx),className:se(p.contextValue.rootClassName,a?.layout?.className),ref:p.contextValue.rootRef,children:g()}))}))});return process.env.NODE_ENV!=="production"&&(b.displayName="renderPicker"),{renderPicker:b}},a1=f.forwardRef(function(t,n){const r=A0(t,"MuiStaticDateRangePicker"),s=r.displayStaticWrapperAs??"mobile",i=w({day:Uf},r.viewRenderers),a=w({},r,{viewRenderers:i,displayStaticWrapperAs:s,views:["day"],openTo:"day",calendars:r.calendars??(s==="mobile"?1:2),slotProps:w({},r.slotProps,{toolbar:w({hidden:s==="desktop"},r.slotProps?.toolbar)})}),{renderPicker:l}=Cie({ref:n,props:a,valueManager:ul,valueType:"date",validator:bu,steps:null});return l()});process.env.NODE_ENV!=="production"&&(a1.displayName="StaticDateRangePicker"),a1.propTypes={autoFocus:o.bool,calendars:o.oneOf([1,2,3]),className:o.string,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,displayStaticWrapperAs:o.oneOf(["desktop","mobile"]),displayWeekNumber:o.bool,fixedWeekNumber:o.number,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onRangePositionChange:o.func,rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),renderLoading:o.func,shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),viewRenderers:o.shape({day:o.func})};const wie=({initialValue:e,value:t,setValue:n,calendars:r,disabled:s,white:i})=>{const{rangeShortcut:a}=he.useContext(gr);return v.jsx(a1,{defaultValue:e,value:t,onChange:l=>{n(l),console.log("Selected Range:",l)},calendars:r,disabled:s,sx:{width:"560px",overflowX:"auto",border:l=>i?`2px groove ${l.palette["gr-base-dark"].main}`:`1px solid ${l.palette["gr-base-light"].main}`,borderRadius:"20px","& .MuiChip-root":{bgcolor:l=>l.palette["gr-grey"].light},"& .MuiChip-root:hover":{bgcolor:l=>l.palette["gr-grey"].dark},"& .MuiDayCalendar-weekDayLabel":{color:l=>i?l.palette["gr-base-dark"].main:l.palette["gr-base-light"].main},"& .MuiYearCalendar-button":{color:l=>i?l.palette["gr-base-dark"].main:l.palette["gr-base-light"].main},"& .MuiButtonBase-root":{color:l=>i?l.palette["gr-base-dark"].main:l.palette["gr-base-light"].main},"& .MuiPickersArrowSwitcher-root":{color:l=>i?l.palette["gr-base-dark"].main:l.palette["gr-base-light"].main},"& .Mui-selected, & .MuiPickersDay-root.Mui-selected":{bgcolor:l=>`${l.palette["gr-yellow"].main} !important`,color:i?"black !important":"white !important"},"& .MuiYearCalendar-yearButton.Mui-selected":{bgcolor:l=>`${l.palette["gr-yellow"].main} !important`,color:i?"black !important":"white !important"},"& .MuiPickersDay-root":{color:l=>i?l.palette["gr-base-dark"].main:l.palette["gr-base-light"].main},"& .MuiChip-label":{color:l=>`${l.palette["gr-base-dark"].main} !important`},"& .MuiTypography-root":{color:l=>i?l.palette["gr-base-dark"].main:l.palette["gr-base-light"].main},"& .MuiPickersCalendarHeader-label":{color:l=>i?l.palette["gr-base-dark"].main:l.palette["gr-base-light"].main}},slotProps:{shortcuts:{items:a},actionBar:{actions:[]},layout:{sx:{borderRadius:"20px !important",bgcolor:i?"white !important":"black !important"}}}})},Sie=e=>{const t=he.useRef(null);return v.jsx(v.Fragment,{children:v.jsx(Jre,{nodeRef:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',children:v.jsx(pr,{...e,ref:t,sx:{bgcolor:"white",color:n=>n.palette.background.paper,padding:"20px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"50px",borderRadius:"20px"}})})})},xie=({title:e,alert:t,action:n,fields:r,open:s,setOpen:i,loading:a,onClickSave:l})=>{const[c,u]=he.useState(!1),d=(h,b)=>{switch(h.element){case"TextField":return v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(ks,{fullWidth:!0,variant:"outlined",label:h.label,type:h.type,placeholder:h.placeholder,focused:!0,value:h.value,multiline:h.multiline,rows:h.rows,onChange:m=>{h.setValue(m.target.value)},disabled:h.disable||n.actionButton.loading,size:"small"})},b);case"SelectField":return v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(sse,{label:h.label,placeholder:h.placeholder,value:h.value,setValue:h.setValue,values:h.values,disabled:h.disable||n.actionButton.loading,fullWidth:!0,white:!0})},b);case"DateField":return v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(nse,{label:h.label,initialValue:h.initialValue,value:h.value,setValue:h.setValue,disabled:h.disable||n.actionButton.loading,fullWidth:!0,white:!0})},b);case"CheckboxField":return v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(Rd,{children:v.jsx(ic,{control:v.jsx(va,{sx:{ml:1.5,color:m=>m.palette["gr-base-dark"].main,"&.Mui-checked":{color:m=>m.palette["gr-base-dark"].main}},checked:h.value,onChange:m=>h.setValue(m.target.checked)}),label:h.label})})},b);case"CheckboxGroup":return v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(Rd,{children:h.checkboxs.map((m,y)=>v.jsx(ic,{control:v.jsx(va,{sx:{ml:1.5,color:C=>C.palette["gr-base-dark"].main,"&.Mui-checked":{color:C=>C.palette["gr-base-dark"].main}},checked:m.value,onChange:C=>m.setValue(C.target.checked)}),label:m.label},y))})},b);case"RadioGroupField":return v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsxs(Ms,{sx:{mt:h.label.text?"none":"-7px"},children:[v.jsx(Rg,{children:h.label.text}),v.jsx(Yw,{value:h.value,onChange:m=>h.setValue(m.target.value),row:h.row,children:h.radios.map((m,y)=>v.jsx(ic,{value:m.value,control:v.jsx(qw,{sx:{color:C=>C.palette["gr-base-dark"].main,"&.Mui-checked":{color:C=>C.palette["gr-base-dark"].main}}}),label:m.label.text,labelPlacement:m.label.position,disabled:m.disable},y))})]})},b);case"AutoCompleteField":return v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(rse,{label:h.label,placeholder:"Seleccionar",values:h.values,value:h.value,setValue:h.setValue,white:!0})},b);case"ListField":return v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(ts,{dense:!0,sx:{borderRadius:"16px",border:m=>h.border?`1px solid ${m.palette["gr-grey"].dark}`:"none"},children:h.items.map((m,y)=>v.jsx(lc,{secondaryAction:h.action,children:v.jsx(Vr,{primary:m.primaryText,secondary:m.secondaryText})},y))})},b);case"TreeviewField":return v.jsxs(ft,{size:h.ncolumn,sx:{mb:"20px"},children:[v.jsx(kt,{variant:"body1",children:h.label}),v.jsx(fie,{items:h.items})]},b);case"TimeField":return v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(gie,{label:h.label,initialValue:h.initialValue,value:h.value,setValue:h.setValue,disabled:h.disable||n.actionButton.loading,fullWidth:!0,white:!0})},b);case"TypographyField":return v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(kt,{variant:"body1",children:h.text})},b);case"DatePickerField":return v.jsx(v.Fragment,{children:v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(mie,{label:h.label,initialValue:h.initialValue,value:h.value,setValue:h.setValue,disabled:h.disable||n.actionButton.loading,fullWidth:!0,white:!0})},b)});case"DateRangePickerField":return v.jsx(v.Fragment,{children:v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(bie,{label:h.label,initialValue:h.initialValue,value:h.value,setValue:h.setValue,calendars:h.calendars,disabled:h.disable||n.actionButton.loading,fullWidth:!0,white:!0})},b)});case"DateRangeCalendarField":return v.jsx(v.Fragment,{children:v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(wie,{initialValue:h.initialValue,value:h.value,setValue:h.setValue,calendars:h.calendars,disabled:h.disable||n.actionButton.loading,white:h.white})},b)});case"SheetField":return v.jsx(v.Fragment,{children:v.jsx(ft,{size:h.ncolumn,sx:{mb:"20px"}},b)});default:return v.jsx(v.Fragment,{})}},p=()=>{r.forEach(h=>{switch(h.element){case"TextField":h.setValue(h.initialValue);break;case"SelectField":h.setValue(h.initialValue);break;case"DateField":h.setValue(h.initialValue);break;case"CheckboxField":h.setValue(h.initialValue);break;case"CheckboxGroup":h.checkboxs.forEach(b=>{b.setValue(b.initialValue)});break;case"AutoCompleteField":h.setValue(h.initialValue);break;case"ListField":break;case"TreeviewField":break;case"TimeField":h.setValue(h.initialValue);break;case"DatePickerField":h.setValue(h.initialValue);break;case"DateRangePickerField":h.setValue(h.initialValue);break;case"TypographyField":break;case"DateRangeCalendarField":h.setValue(h.initialValue);break;case"RadioGroup":h.setValue(h.initialValue);break}}),u(!1)},g=h=>{h.some(m=>{if(m.element==="CheckboxGroup")return m.checkboxs.some(y=>y.value!==y.initialValue);if(m.element==="CheckboxField"||m.element==="TextField"||m.element==="SelectField"||m.element==="DateField")return m.value!==m.initialValue;if(m.element==="AutoCompleteField")return JSON.stringify(m.value.sort())!==JSON.stringify(m.initialValue.sort());if(m.element==="TimeField"||m.element==="DatePickerField")return m.value!==m.initialValue;if(m.element==="DateRangePickerField"||m.element==="DateRangeCalendarField")return JSON.stringify(m.value)!==JSON.stringify(m.initialValue);if(m.element==="RadioGroup")return m.value!==m.initialValue})?u(!0):i(!1)};return he.useEffect(()=>{s||p()},[s]),v.jsx(v.Fragment,{children:v.jsxs(Dg,{open:s,onClose:()=>g(r),PaperComponent:Sie,"aria-labelledby":"draggable-dialog-title",children:[v.jsxs(Iw,{style:{cursor:"move",textAlign:"left",margin:0,padding:0,width:"100%"},id:"draggable-dialog-title",children:[e,v.jsx(En,{sx:{position:"absolute",right:10,top:10},onClick:()=>g(r),children:v.jsx(Ar,{baseClassName:"material-symbols-rounded",sx:{color:h=>h.palette["gr-base-dark"].main,fontSize:"24px"},children:"close"})})]}),c&&v.jsx(Fd,{sx:{padding:0,margin:0,width:"100%",overflow:"hidden",minHeight:"85px"},children:v.jsxs(ug,{icon:v.jsx(ese,{}),sx:{borderRadius:"24px",bgcolor:"#FFEFE5",border:h=>`1px solid ${h.palette["gr-orange"].main}`,"& .MuiAlert-icon":{color:h=>h.palette["gr-orange"].main}},action:v.jsxs(An,{sx:{mt:3.75},children:[v.jsx(Vn,{color:"gr-grey",size:"small",onClick:()=>u(!1),children:v.jsx("b",{children:t.actionButton.buttonText})}),v.jsx(Vn,{color:"gr-grey",size:"small",onClick:()=>{p(),i(!1)},children:v.jsx("b",{children:t.cancelButton.buttonText})})]}),children:[v.jsx(FC,{children:t.title}),v.jsx(kt,{variant:"body2",children:t.message})]})}),v.jsxs(Fd,{sx:{padding:0,margin:0,position:"relative",overflow:a?"hidden":"auto"},children:[v.jsx(ft,{container:!0,spacing:2,sx:{mt:1,visibility:a?"hidden":"visible"},children:r.map((h,b)=>d(h,b))}),a&&v.jsx(An,{sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:v.jsx(oi,{size:60})})]}),v.jsxs(Fg,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",width:"100%"},children:[v.jsx(Vn,{variant:"outlined",autoFocus:!0,onClick:()=>g(r),sx:{minWidth:"130px",borderRadius:"44px",fontWeight:"500",textTransform:"none"},color:"gr-base-dark",children:n.cancelButton.buttonText}),v.jsx(Vn,{variant:"contained",onClick:()=>{l()},sx:{minWidth:"130px",borderRadius:"44px",color:"white",fontWeight:"500",textTransform:"none"},color:"gr-base-dark",disableElevation:!0,disabled:n.actionButton.disabled,loading:n.actionButton.loading,children:n.actionButton.buttonText})]})]})})},qi={config:{isInitialized:!1},traits:{}},Pie="__mui_x_telemetry_";function tk(e){return Pie+btoa(e)}function l1(e,t,n){try{if(typeof window<"u"&&window[e])return window[e].setItem(tk(t),n),!0}catch{}return!1}function c1(e,t){try{if(typeof window<"u"&&window[e])return window[e].getItem(tk(t))}catch{}return null}function u1(e){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length;let s=0;for(;s<e;)t+=n.charAt(Math.floor(Math.random()*r)),s+=1;return t}function Eie(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}const Tie=typeof window>"u"||process.env.NODE_ENV==="test"?()=>{}:async()=>{const e="fingerprint";try{const t=c1("localStorage",e);if(t)return JSON.parse(t);const n=await Promise.resolve().then(()=>ole),s=await(await n.load({monitoring:!1})).get(),i=w({},s.components);delete i.cookiesEnabled;const a=n.hashComponents(i),l=n.hashComponents(w({},Eie(i,["fonts","audio","languages","deviceMemory","timezone","sessionStorage","localStorage","indexedDB","openDatabase","platform","canvas","vendor","vendorFlavors","colorGamut","forcedColors","monochrome","contrast","reducedMotion","math","videoCard","architecture"]))),c={fullHash:a,coreHash:l};return l1("localStorage",e,JSON.stringify(c)),c}catch{return null}};function Iie(){const e="anonymous_id",t=c1("localStorage",e);if(t)return t;const n=`anid_${u1(32)}`;return l1("localStorage",e,n)?n:""}function Mie(){const e="session_id",t=c1("sessionStorage",e);if(t)return t;const n=`sesid_${u1(32)}`;return l1("sessionStorage",e,n)?n:`sestp_${u1(32)}`}async function Oie(){return qi.traits.sessionId=Mie(),qi.config.isInitialized||(qi.traits.anonymousId=Iie(),qi.config.isInitialized=!0),qi.traits.fingerprint||(qi.traits.fingerprint=await Tie()),qi}const kie=Object.freeze(Object.defineProperty({__proto__:null,default:Oie},Symbol.toStringTag,{value:"Module"}));var d1=function(){return d1=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},d1.apply(this,arguments)};function fs(e,t,n,r){function s(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{u(r.next(d))}catch(p){a(p)}}function c(d){try{u(r.throw(d))}catch(p){a(p)}}function u(d){d.done?i(d.value):s(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})}function hs(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,s,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,s&&(i=u[0]&2?s.return:u[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,u[1])).done)return i;switch(s=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,s=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(d){u=[6,d],s=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function nk(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ok="3.4.2";function Eu(e,t){return new Promise(function(n){return setTimeout(n,e,t)})}function Die(e,t){t===void 0&&(t=1/0);var n=window.requestIdleCallback;return n?new Promise(function(r){return n.call(window,function(){return r()},{timeout:t})}):Eu(Math.min(e,t))}function rh(e){return!!e&&typeof e.then=="function"}function rk(e,t){try{var n=e();rh(n)?n.then(function(r){return t(!0,r)},function(r){return t(!1,r)}):t(!0,n)}catch(r){t(!1,r)}}function sk(e,t,n){return n===void 0&&(n=16),fs(this,void 0,void 0,function(){var r,s,i,a;return hs(this,function(l){switch(l.label){case 0:r=Array(e.length),s=Date.now(),i=0,l.label=1;case 1:return i<e.length?(r[i]=t(e[i],i),a=Date.now(),a>=s+n?(s=a,[4,Eu(0)]):[3,3]):[3,4];case 2:l.sent(),l.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Tu(e){e.then(void 0,function(){})}function qs(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function cr(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function yl(e,t){return t%=64,t===32?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function Uo(e,t){return t%=64,t===0?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function mn(e,t){return[e[0]^t[0],e[1]^t[1]]}function ik(e){return e=mn(e,[0,e[0]>>>1]),e=cr(e,[4283543511,3981806797]),e=mn(e,[0,e[0]>>>1]),e=cr(e,[3301882366,444984403]),e=mn(e,[0,e[0]>>>1]),e}function ak(e,t){e=e||"",t=t||0;var n=e.length%16,r=e.length-n,s=[0,t],i=[0,t],a=[0,0],l=[0,0],c=[2277735313,289559509],u=[1291169091,658871167],d;for(d=0;d<r;d=d+16)a=[e.charCodeAt(d+4)&255|(e.charCodeAt(d+5)&255)<<8|(e.charCodeAt(d+6)&255)<<16|(e.charCodeAt(d+7)&255)<<24,e.charCodeAt(d)&255|(e.charCodeAt(d+1)&255)<<8|(e.charCodeAt(d+2)&255)<<16|(e.charCodeAt(d+3)&255)<<24],l=[e.charCodeAt(d+12)&255|(e.charCodeAt(d+13)&255)<<8|(e.charCodeAt(d+14)&255)<<16|(e.charCodeAt(d+15)&255)<<24,e.charCodeAt(d+8)&255|(e.charCodeAt(d+9)&255)<<8|(e.charCodeAt(d+10)&255)<<16|(e.charCodeAt(d+11)&255)<<24],a=cr(a,c),a=yl(a,31),a=cr(a,u),s=mn(s,a),s=yl(s,27),s=qs(s,i),s=qs(cr(s,[0,5]),[0,1390208809]),l=cr(l,u),l=yl(l,33),l=cr(l,c),i=mn(i,l),i=yl(i,31),i=qs(i,s),i=qs(cr(i,[0,5]),[0,944331445]);switch(a=[0,0],l=[0,0],n){case 15:l=mn(l,Uo([0,e.charCodeAt(d+14)],48));case 14:l=mn(l,Uo([0,e.charCodeAt(d+13)],40));case 13:l=mn(l,Uo([0,e.charCodeAt(d+12)],32));case 12:l=mn(l,Uo([0,e.charCodeAt(d+11)],24));case 11:l=mn(l,Uo([0,e.charCodeAt(d+10)],16));case 10:l=mn(l,Uo([0,e.charCodeAt(d+9)],8));case 9:l=mn(l,[0,e.charCodeAt(d+8)]),l=cr(l,u),l=yl(l,33),l=cr(l,c),i=mn(i,l);case 8:a=mn(a,Uo([0,e.charCodeAt(d+7)],56));case 7:a=mn(a,Uo([0,e.charCodeAt(d+6)],48));case 6:a=mn(a,Uo([0,e.charCodeAt(d+5)],40));case 5:a=mn(a,Uo([0,e.charCodeAt(d+4)],32));case 4:a=mn(a,Uo([0,e.charCodeAt(d+3)],24));case 3:a=mn(a,Uo([0,e.charCodeAt(d+2)],16));case 2:a=mn(a,Uo([0,e.charCodeAt(d+1)],8));case 1:a=mn(a,[0,e.charCodeAt(d)]),a=cr(a,c),a=yl(a,31),a=cr(a,u),s=mn(s,a)}return s=mn(s,[0,e.length]),i=mn(i,[0,e.length]),s=qs(s,i),i=qs(i,s),s=ik(s),i=ik(i),s=qs(s,i),i=qs(i,s),("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)}function Fie(e){var t;return d1({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
425
+ `)},e)}function Nie(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}function Rie(e,t){return!Nie(e,t)}function p1(e){return parseInt(e)}function Ir(e){return parseFloat(e)}function gs(e,t){return typeof e=="number"&&isNaN(e)?t:e}function Mr(e){return e.reduce(function(t,n){return t+(n?1:0)},0)}function lk(e,t){if(t===void 0&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function Lie(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),s=/^\s*([a-z-]*)(.*)$/i.exec(e),i=s[1]||void 0,a={},l=/([.:#][\w-]+|\[.+?\])/gi,c=function(g,h){a[g]=a[g]||[],a[g].push(h)};;){var u=l.exec(s[2]);if(!u)break;var d=u[0];switch(d[0]){case".":c("class",d.slice(1));break;case"#":c("id",d.slice(1));break;case"[":{var p=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(d);if(p)c(p[1],(n=(t=p[4])!==null&&t!==void 0?t:p[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,a]}function ck(e){return e&&typeof e=="object"&&"message"in e?e:{message:e}}function uk(e){return typeof e!="function"}function $ie(e,t){var n=new Promise(function(r){var s=Date.now();rk(e.bind(null,t),function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var l=Date.now()-s;if(!i[0])return r(function(){return{error:ck(i[1]),duration:l}});var c=i[1];if(uk(c))return r(function(){return{value:c,duration:l}});r(function(){return new Promise(function(u){var d=Date.now();rk(c,function(){for(var p=[],g=0;g<arguments.length;g++)p[g]=arguments[g];var h=l+Date.now()-d;if(!p[0])return u({error:ck(p[1]),duration:h});u({value:p[1],duration:h})})})})})});return Tu(n),function(){return n.then(function(s){return s()})}}function dk(e,t,n){var r=Object.keys(e).filter(function(i){return Rie(n,i)}),s=sk(r,function(i){return $ie(e[i],t)});return Tu(s),function(){return fs(this,void 0,void 0,function(){var a,l,c,u,d;return hs(this,function(p){switch(p.label){case 0:return[4,s];case 1:return a=p.sent(),[4,sk(a,function(g){var h=g();return Tu(h),h})];case 2:return l=p.sent(),[4,Promise.all(l)];case 3:for(c=p.sent(),u={},d=0;d<r.length;++d)u[r[d]]=c[d];return[2,u]}})})}}function Aie(e,t){var n=function(r){return uk(r)?t(r):function(){var s=r();return rh(s)?s.then(t):t(s)}};return function(r){var s=e(r);return rh(s)?s.then(n):n(s)}}function f1(){var e=window,t=navigator;return Mr(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function pk(){var e=window,t=navigator;return Mr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!f1()}function sh(){var e=window,t=navigator;return Mr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function vl(){var e=window,t=navigator;return Mr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function ih(){var e=window;return Mr(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function fk(){var e,t,n=window;return Mr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function Vie(){var e=window;return Mr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function _ie(){var e=window;return Mr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Bie(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return Mr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function hk(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Hie(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function h1(){var e=sh(),t=fk();if(!e&&!t)return!1;var n=window;return Mr(["onorientationchange"in n,"orientation"in n,e&&!("SharedWorker"in n),t&&/android/i.test(navigator.appVersion)])>=2}function zie(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(jie())return-1;var n=4500,r=5e3,s=new t(1,r,44100),i=s.createOscillator();i.type="triangle",i.frequency.value=1e4;var a=s.createDynamicsCompressor();a.threshold.value=-50,a.knee.value=40,a.ratio.value=12,a.attack.value=0,a.release.value=.25,i.connect(a),a.connect(s.destination),i.start(0);var l=Gie(s),c=l[0],u=l[1],d=c.then(function(p){return Wie(p.getChannelData(0).subarray(n))},function(p){if(p.name==="timeout"||p.name==="suspended")return-3;throw p});return Tu(d),function(){return u(),d}}function jie(){return vl()&&!ih()&&!_ie()}function Gie(e){var t=3,n=500,r=500,s=5e3,i=function(){},a=new Promise(function(l,c){var u=!1,d=0,p=0;e.oncomplete=function(b){return l(b.renderedBuffer)};var g=function(){setTimeout(function(){return c(gk("timeout"))},Math.min(r,p+s-Date.now()))},h=function(){try{var b=e.startRendering();switch(rh(b)&&Tu(b),e.state){case"running":p=Date.now(),u&&g();break;case"suspended":document.hidden||d++,u&&d>=t?c(gk("suspended")):setTimeout(h,n);break}}catch(m){c(m)}};h(),i=function(){u||(u=!0,p>0&&g())}});return[a,i]}function Wie(e){for(var t=0,n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function gk(e){var t=new Error(e);return t.name=e,t}function g1(e,t,n){var r,s,i;return n===void 0&&(n=50),fs(this,void 0,void 0,function(){var a,l;return hs(this,function(c){switch(c.label){case 0:a=document,c.label=1;case 1:return a.body?[3,3]:[4,Eu(n)];case 2:return c.sent(),[3,1];case 3:l=a.createElement("iframe"),c.label=4;case 4:return c.trys.push([4,,10,11]),[4,new Promise(function(u,d){var p=!1,g=function(){p=!0,u()},h=function(y){p=!0,d(y)};l.onload=g,l.onerror=h;var b=l.style;b.setProperty("display","block","important"),b.position="absolute",b.top="0",b.left="0",b.visibility="hidden",t&&"srcdoc"in l?l.srcdoc=t:l.src="about:blank",a.body.appendChild(l);var m=function(){var y,C;p||(((C=(y=l.contentWindow)===null||y===void 0?void 0:y.document)===null||C===void 0?void 0:C.readyState)==="complete"?g():setTimeout(m,10))};m()})];case 5:c.sent(),c.label=6;case 6:return!((s=(r=l.contentWindow)===null||r===void 0?void 0:r.document)===null||s===void 0)&&s.body?[3,8]:[4,Eu(n)];case 7:return c.sent(),[3,6];case 8:return[4,e(l,l.contentWindow)];case 9:return[2,c.sent()];case 10:return(i=l.parentNode)===null||i===void 0||i.removeChild(l),[7];case 11:return[2]}})})}function Uie(e){for(var t=Lie(e),n=t[0],r=t[1],s=document.createElement(n??"div"),i=0,a=Object.keys(r);i<a.length;i++){var l=a[i],c=r[l].join(" ");l==="style"?qie(s.style,c):s.setAttribute(l,c)}return s}function qie(e,t){for(var n=0,r=t.split(";");n<r.length;n++){var s=r[n],i=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(s);if(i){var a=i[1],l=i[2],c=i[4];e.setProperty(a,l,c||"")}}}var Yie="mmMwWLliI0O&1",Kie="48px",Cl=["monospace","sans-serif","serif"],mk=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Xie(){return g1(function(e,t){var n=t.document,r=n.body;r.style.fontSize=Kie;var s=n.createElement("div"),i={},a={},l=function(m){var y=n.createElement("span"),C=y.style;return C.position="absolute",C.top="0",C.left="0",C.fontFamily=m,y.textContent=Yie,s.appendChild(y),y},c=function(m,y){return l("'".concat(m,"',").concat(y))},u=function(){return Cl.map(l)},d=function(){for(var m={},y=function(E){m[E]=Cl.map(function(P){return c(E,P)})},C=0,S=mk;C<S.length;C++){var x=S[C];y(x)}return m},p=function(m){return Cl.some(function(y,C){return m[C].offsetWidth!==i[y]||m[C].offsetHeight!==a[y]})},g=u(),h=d();r.appendChild(s);for(var b=0;b<Cl.length;b++)i[Cl[b]]=g[b].offsetWidth,a[Cl[b]]=g[b].offsetHeight;return mk.filter(function(m){return p(h[m])})})}function Zie(){var e=navigator.plugins;if(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];if(r){for(var s=[],i=0;i<r.length;++i){var a=r[i];s.push({type:a.type,suffixes:a.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:s})}}return t}}function Qie(){var e=!1,t,n,r=Jie(),s=r[0],i=r[1];if(!eae(s,i))t=n="";else{e=tae(i),nae(s,i);var a=m1(s),l=m1(s);a!==l?t=n="unstable":(n=a,oae(s,i),t=m1(s))}return{winding:e,geometry:t,text:n}}function Jie(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function eae(e,t){return!!(t&&e.toDataURL)}function tae(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function nae(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var n="Cwm fjordbank gly ".concat("😃");t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}function oae(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var s=r[n],i=s[0],a=s[1],l=s[2];t.fillStyle=i,t.beginPath(),t.arc(a,l,40,0,Math.PI*2,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function m1(e){return e.toDataURL()}function rae(){var e=navigator,t=0,n;e.maxTouchPoints!==void 0?t=p1(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch{n=!1}var r="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:n,touchStart:r}}function sae(){return navigator.oscpu}function iae(){var e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))sh()&&Vie()||t.push(e.languages);else if(typeof e.languages=="string"){var r=e.languages;r&&t.push(r.split(","))}return t}function aae(){return window.screen.colorDepth}function lae(){return gs(Ir(navigator.deviceMemory),void 0)}function cae(){var e=screen,t=function(r){return gs(p1(r),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n}var uae=2500,dae=10,ah,b1;function pae(){if(b1===void 0){var e=function(){var t=y1();v1(t)?b1=setTimeout(e,uae):(ah=t,b1=void 0)};e()}}function bk(){var e=this;return pae(),function(){return fs(e,void 0,void 0,function(){var t;return hs(this,function(n){switch(n.label){case 0:return t=y1(),v1(t)?ah?[2,nk([],ah,!0)]:hk()?[4,Hie()]:[3,2]:[3,2];case 1:n.sent(),t=y1(),n.label=2;case 2:return v1(t)||(ah=t),[2,t]}})})}}function fae(){var e=this,t=bk();return function(){return fs(e,void 0,void 0,function(){var n,r;return hs(this,function(s){switch(s.label){case 0:return[4,t()];case 1:return n=s.sent(),r=function(i){return i===null?null:lk(i,dae)},[2,[r(n[0]),r(n[1]),r(n[2]),r(n[3])]]}})})}}function y1(){var e=screen;return[gs(Ir(e.availTop),null),gs(Ir(e.width)-Ir(e.availWidth)-gs(Ir(e.availLeft),0),null),gs(Ir(e.height)-Ir(e.availHeight)-gs(Ir(e.availTop),0),null),gs(Ir(e.availLeft),null)]}function v1(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function hae(){return gs(p1(navigator.hardwareConcurrency),void 0)}function gae(){var e,t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){var n=new t().resolvedOptions().timeZone;if(n)return n}var r=-mae();return"UTC".concat(r>=0?"+":"").concat(Math.abs(r))}function mae(){var e=new Date().getFullYear();return Math.max(Ir(new Date(e,0,1).getTimezoneOffset()),Ir(new Date(e,6,1).getTimezoneOffset()))}function bae(){try{return!!window.sessionStorage}catch{return!0}}function yae(){try{return!!window.localStorage}catch{return!0}}function vae(){if(!(f1()||pk()))try{return!!window.indexedDB}catch{return!0}}function Cae(){return!!window.openDatabase}function wae(){return navigator.cpuClass}function Sae(){var e=navigator.platform;return e==="MacIntel"&&vl()&&!ih()?Bie()?"iPad":"iPhone":e}function xae(){return navigator.vendor||""}function Pae(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<n.length;t++){var r=n[t],s=window[r];s&&typeof s=="object"&&e.push(r)}return e.sort()}function Eae(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch{return!1}}function Tae(){var e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function Iae(e){var t=e===void 0?{}:e,n=t.debug;return fs(this,void 0,void 0,function(){var r,s,i,a,l,c;return hs(this,function(u){switch(u.label){case 0:return Mae()?(r=Tae(),s=Object.keys(r),i=(c=[]).concat.apply(c,s.map(function(d){return r[d]})),[4,Oae(i)]):[2,void 0];case 1:return a=u.sent(),n&&kae(r,a),l=s.filter(function(d){var p=r[d],g=Mr(p.map(function(h){return a[h]}));return g>p.length*.6}),l.sort(),[2,l]}})})}function Mae(){return vl()||h1()}function Oae(e){var t;return fs(this,void 0,void 0,function(){var n,r,s,i,c,a,l,c;return hs(this,function(u){switch(u.label){case 0:for(n=document,r=n.createElement("div"),s=new Array(e.length),i={},yk(r),c=0;c<e.length;++c)a=Uie(e[c]),a.tagName==="DIALOG"&&a.show(),l=n.createElement("div"),yk(l),l.appendChild(a),r.appendChild(l),s[c]=a;u.label=1;case 1:return n.body?[3,3]:[4,Eu(50)];case 2:return u.sent(),[3,1];case 3:n.body.appendChild(r);try{for(c=0;c<e.length;++c)s[c].offsetParent||(i[e[c]]=!0)}finally{(t=r.parentNode)===null||t===void 0||t.removeChild(r)}return[2,i]}})})}function yk(e){e.style.setProperty("display","block","important")}function kae(e,t){for(var n="DOM blockers debug:\n```",r=0,s=Object.keys(e);r<s.length;r++){var i=s[r];n+=`
426
+ `.concat(i,":");for(var a=0,l=e[i];a<l.length;a++){var c=l[a];n+=`
427
+ `.concat(t[c]?"🚫":"➡️"," ").concat(c)}}console.log("".concat(n,"\n```"))}function Dae(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var n=t[e];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}}function Fae(){if(vk("inverted"))return!0;if(vk("none"))return!1}function vk(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function Nae(){if(Ck("active"))return!0;if(Ck("none"))return!1}function Ck(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}var Rae=100;function Lae(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=Rae;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}}function $ae(){if(wl("no-preference"))return 0;if(wl("high")||wl("more"))return 1;if(wl("low")||wl("less"))return-1;if(wl("forced"))return 10}function wl(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function Aae(){if(wk("reduce"))return!0;if(wk("no-preference"))return!1}function wk(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function Vae(){if(Sk("high"))return!0;if(Sk("standard"))return!1}function Sk(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var Yt=Math,vo=function(){return 0};function _ae(){var e=Yt.acos||vo,t=Yt.acosh||vo,n=Yt.asin||vo,r=Yt.asinh||vo,s=Yt.atanh||vo,i=Yt.atan||vo,a=Yt.sin||vo,l=Yt.sinh||vo,c=Yt.cos||vo,u=Yt.cosh||vo,d=Yt.tan||vo,p=Yt.tanh||vo,g=Yt.exp||vo,h=Yt.expm1||vo,b=Yt.log1p||vo,m=function(O){return Yt.pow(Yt.PI,O)},y=function(O){return Yt.log(O+Yt.sqrt(O*O-1))},C=function(O){return Yt.log(O+Yt.sqrt(O*O+1))},S=function(O){return Yt.log((1+O)/(1-O))/2},x=function(O){return Yt.exp(O)-1/Yt.exp(O)/2},E=function(O){return(Yt.exp(O)+1/Yt.exp(O))/2},P=function(O){return Yt.exp(O)-1},M=function(O){return(Yt.exp(2*O)-1)/(Yt.exp(2*O)+1)},D=function(O){return Yt.log(1+O)};return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:y(1e154),asin:n(.12312423423423424),asinh:r(1),asinhPf:C(1),atanh:s(.5),atanhPf:S(.5),atan:i(.5),sin:a(-1e300),sinh:l(1),sinhPf:x(1),cos:c(10.000000000123),cosh:u(1),coshPf:E(1),tan:d(-1e300),tanh:p(1),tanhPf:M(1),exp:g(1),expm1:h(1),expm1Pf:P(1),log1p:b(10),log1pPf:D(10),powPI:m(-100)}}var Bae="mmMwWLliI0fiflO&1",C1={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function Hae(){return zae(function(e,t){for(var n={},r={},s=0,i=Object.keys(C1);s<i.length;s++){var a=i[s],l=C1[a],c=l[0],u=c===void 0?{}:c,d=l[1],p=d===void 0?Bae:d,g=e.createElement("span");g.textContent=p,g.style.whiteSpace="nowrap";for(var h=0,b=Object.keys(u);h<b.length;h++){var m=b[h],y=u[m];y!==void 0&&(g.style[m]=y)}n[a]=g,t.appendChild(e.createElement("br")),t.appendChild(g)}for(var C=0,S=Object.keys(C1);C<S.length;C++){var a=S[C];r[a]=n[a].getBoundingClientRect().width}return r})}function zae(e,t){return t===void 0&&(t=4e3),g1(function(n,r){var s=r.document,i=s.body,a=i.style;a.width="".concat(t,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",sh()?i.style.zoom="".concat(1/r.devicePixelRatio):vl()&&(i.style.zoom="reset");var l=s.createElement("div");return l.textContent=nk([],Array(t/20<<0),!0).map(function(){return"word"}).join(" "),i.appendChild(l),e(s,i)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function jae(){var e,t=document.createElement("canvas"),n=(e=t.getContext("webgl"))!==null&&e!==void 0?e:t.getContext("experimental-webgl");if(n&&"getExtension"in n){var r=n.getExtension("WEBGL_debug_renderer_info");if(r)return{vendor:(n.getParameter(r.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(n.getParameter(r.UNMASKED_RENDERER_WEBGL)||"").toString()}}}function Gae(){return navigator.pdfViewerEnabled}function Wae(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}var xk={fonts:Xie,domBlockers:Iae,fontPreferences:Hae,audio:zie,screenFrame:fae,osCpu:sae,languages:iae,colorDepth:aae,deviceMemory:lae,screenResolution:cae,hardwareConcurrency:hae,timezone:gae,sessionStorage:bae,localStorage:yae,indexedDB:vae,openDatabase:Cae,cpuClass:wae,platform:Sae,plugins:Zie,canvas:Qie,touchSupport:rae,vendor:xae,vendorFlavors:Pae,cookiesEnabled:Eae,colorGamut:Dae,invertedColors:Fae,forcedColors:Nae,monochrome:Lae,contrast:$ae,reducedMotion:Aae,hdr:Vae,math:_ae,videoCard:jae,pdfViewerEnabled:Gae,architecture:Wae};function Uae(e){return dk(xk,e,[])}var qae="$ if upgrade to Pro: https://fpjs.dev/pro";function Yae(e){var t=Kae(e),n=Xae(t);return{score:t,comment:qae.replace(/\$/g,"".concat(n))}}function Kae(e){if(h1())return .4;if(vl())return ih()?.5:.3;var t=e.platform.value||"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function Xae(e){return lk(.99+.01*e,1e-4)}function Zae(e){for(var t="",n=0,r=Object.keys(e).sort();n<r.length;n++){var s=r[n],i=e[s],a=i.error?"error":JSON.stringify(i.value);t+="".concat(t?"|":"").concat(s.replace(/([:|\\])/g,"\\$1"),":").concat(a)}return t}function w1(e){return JSON.stringify(e,function(t,n){return n instanceof Error?Fie(n):n},2)}function S1(e){return ak(Zae(e))}function Qae(e){var t,n=Yae(e);return{get visitorId(){return t===void 0&&(t=S1(this.components)),t},set visitorId(r){t=r},confidence:n,components:e,version:ok}}function Pk(e){return e===void 0&&(e=50),Die(e,e*2)}function Jae(e,t){var n=Date.now();return{get:function(r){return fs(this,void 0,void 0,function(){var s,i,a;return hs(this,function(l){switch(l.label){case 0:return s=Date.now(),[4,e()];case 1:return i=l.sent(),a=Qae(i),(t||r?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(a.version,`
428
+ userAgent: `).concat(navigator.userAgent,`
429
+ timeBetweenLoadAndGet: `).concat(s-n,`
430
+ visitorId: `).concat(a.visitorId,`
431
+ components: `).concat(w1(i),"\n```")),[2,a]}})})}}}function ele(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(ok,"/npm-monitoring"),!0),e.send()}catch(t){console.error(t)}}function Ek(e){var t=e===void 0?{}:e,n=t.delayFallback,r=t.debug,s=t.monitoring,i=s===void 0?!0:s;return fs(this,void 0,void 0,function(){var a;return hs(this,function(l){switch(l.label){case 0:return i&&ele(),[4,Pk(n)];case 1:return l.sent(),a=Uae({debug:r}),[2,Jae(a,r)]}})})}var tle={load:Ek,hashComponents:S1,componentsToDebugString:w1},nle=ak;const ole=Object.freeze(Object.defineProperty({__proto__:null,componentsToDebugString:w1,default:tle,getFullscreenElement:hk,getScreenFrame:bk,hashComponents:S1,isAndroid:h1,isChromium:sh,isDesktopSafari:ih,isEdgeHTML:pk,isGecko:fk,isTrident:f1,isWebKit:vl,load:Ek,loadSources:dk,murmurX64Hash128:nle,prepareForSources:Pk,sources:xk,transformSource:Aie,withIframe:g1},Symbol.toStringTag,{value:"Module"}));Yn.Core=bj,Yn.CoreContext=gr,Yn.CoreProvider=yj,Yn.Form=xie,Yn.GoodRabbitDarkTheme=BL,Yn.GoodRabbitLightTheme=HL,Yn.Table=Hre,Yn.useSystemAlert=Ure,Yn.useTable=zre,Object.defineProperty(Yn,Symbol.toStringTag,{value:"Module"})}));