@scmlatam/web-ui 0.1.84 → 0.1.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extends-B-BJt9xM.cjs +1 -0
- package/dist/extends-CgaxCptn.js +12 -0
- package/dist/fp.esm-DSN530BW.js +1526 -0
- package/dist/fp.esm-wm0PnbIR.cjs +13 -0
- package/dist/get-context-CtZoMNCY.cjs +1 -0
- package/dist/get-context-CuGr63G_.js +86 -0
- package/dist/web-ui.cjs +416 -0
- package/dist/web-ui.css +2 -1
- package/dist/web-ui.js +60709 -11
- package/package.json +23 -23
- package/dist/fp.esm-Dkdh137l.js +0 -1668
- package/dist/get-context-BLwgUzic.js +0 -77
- package/dist/main-D5LT4TpG.js +0 -79742
- package/dist/web-ui.umd.cjs +0 -432
package/dist/web-ui.umd.cjs
DELETED
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
(function(Jn,ge){typeof exports=="object"&&typeof module<"u"?ge(exports,require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom"],ge):(Jn=typeof globalThis<"u"?globalThis:Jn||self,ge(Jn["web-ui"]={},Jn.React,Jn.jsxRuntime,Jn.ReactDOM))})(this,(function(Jn,ge,v,xs){"use strict";function F1(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=F1(ge),N1=F1(xs),_l={black:"#000",white:"#fff"},ca={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ua={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},da={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},pa={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},fa={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Bl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Uk={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 Ar(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 er="$$material";function ha(){return ha=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},ha.apply(null,arguments)}function qk(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 Yk(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 Kk=(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(Yk(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var i=qk(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})(),ro="-ms-",zu="-moz-",zt="-webkit-",R1="comm",bh="rule",yh="decl",Xk="@import",$1="@keyframes",Zk="@layer",Qk=Math.abs,ju=String.fromCharCode,Jk=Object.assign;function eD(e,t){return eo(e,0)^45?(((t<<2^eo(e,0))<<2^eo(e,1))<<2^eo(e,2))<<2^eo(e,3):0}function L1(e){return e.trim()}function tD(e,t){return(e=t.exec(e))?e[0]:e}function jt(e,t,n){return e.replace(t,n)}function vh(e,t){return e.indexOf(t)}function eo(e,t){return e.charCodeAt(t)|0}function Hl(e,t,n){return e.slice(t,n)}function Vr(e){return e.length}function Ch(e){return e.length}function Gu(e,t){return t.push(e),e}function nD(e,t){return e.map(t).join("")}var Wu=1,ga=1,A1=0,Eo=0,Hn=0,ma="";function Uu(e,t,n,r,s,i,a){return{value:e,root:t,parent:n,type:r,props:s,children:i,line:Wu,column:ga,length:a,return:""}}function zl(e,t){return Jk(Uu("",null,null,"",null,null,0),e,{length:-e.length},t)}function oD(){return Hn}function rD(){return Hn=Eo>0?eo(ma,--Eo):0,ga--,Hn===10&&(ga=1,Wu--),Hn}function Vo(){return Hn=Eo<A1?eo(ma,Eo++):0,ga++,Hn===10&&(ga=1,Wu++),Hn}function _r(){return eo(ma,Eo)}function qu(){return Eo}function jl(e,t){return Hl(ma,e,t)}function Gl(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 V1(e){return Wu=ga=1,A1=Vr(ma=e),Eo=0,[]}function _1(e){return ma="",e}function Yu(e){return L1(jl(Eo-1,wh(e===91?e+2:e===40?e+1:e)))}function sD(e){for(;(Hn=_r())&&Hn<33;)Vo();return Gl(e)>2||Gl(Hn)>3?"":" "}function iD(e,t){for(;--t&&Vo()&&!(Hn<48||Hn>102||Hn>57&&Hn<65||Hn>70&&Hn<97););return jl(e,qu()+(t<6&&_r()==32&&Vo()==32))}function wh(e){for(;Vo();)switch(Hn){case e:return Eo;case 34:case 39:e!==34&&e!==39&&wh(Hn);break;case 40:e===41&&wh(e);break;case 92:Vo();break}return Eo}function aD(e,t){for(;Vo()&&e+Hn!==57;)if(e+Hn===84&&_r()===47)break;return"/*"+jl(t,Eo-1)+"*"+ju(e===47?e:Vo())}function lD(e){for(;!Gl(_r());)Vo();return jl(e,Eo)}function cD(e){return _1(Ku("",null,null,null,[""],e=V1(e),0,[0],e))}function Ku(e,t,n,r,s,i,a,l,c){for(var u=0,d=0,p=a,g=0,h=0,y=0,m=1,b=1,C=1,w=0,S="",P=s,x=i,M=r,k=S;b;)switch(y=w,w=Vo()){case 40:if(y!=108&&eo(k,p-1)==58){vh(k+=jt(Yu(w),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:k+=Yu(w);break;case 9:case 10:case 13:case 32:k+=sD(y);break;case 92:k+=iD(qu()-1,7);continue;case 47:switch(_r()){case 42:case 47:Gu(uD(aD(Vo(),qu()),t,n),c);break;default:k+="/"}break;case 123*m:l[u++]=Vr(k)*C;case 125*m:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:C==-1&&(k=jt(k,/\f/g,"")),h>0&&Vr(k)-p&&Gu(h>32?H1(k+";",r,n,p-1):H1(jt(k," ","")+";",r,n,p-2),c);break;case 59:k+=";";default:if(Gu(M=B1(k,t,n,u,d,s,l,S,P=[],x=[],p),i),w===123)if(d===0)Ku(k,t,M,M,P,i,p,l,x);else switch(g===99&&eo(k,3)===110?100:g){case 100:case 108:case 109:case 115:Ku(e,M,M,r&&Gu(B1(e,M,M,0,0,s,l,S,s,P=[],p),x),s,x,p,l,r?P:x);break;default:Ku(k,M,M,M,[""],x,0,l,x)}}u=d=h=0,m=C=1,S=k="",p=a;break;case 58:p=1+Vr(k),h=y;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&rD()==125)continue}switch(k+=ju(w),w*m){case 38:C=d>0?1:(k+="\f",-1);break;case 44:l[u++]=(Vr(k)-1)*C,C=1;break;case 64:_r()===45&&(k+=Yu(Vo())),g=_r(),d=p=Vr(S=k+=lD(qu())),w++;break;case 45:y===45&&Vr(k)==2&&(m=0)}}return i}function B1(e,t,n,r,s,i,a,l,c,u,d){for(var p=s-1,g=s===0?i:[""],h=Ch(g),y=0,m=0,b=0;y<r;++y)for(var C=0,w=Hl(e,p+1,p=Qk(m=a[y])),S=e;C<h;++C)(S=L1(m>0?g[C]+" "+w:jt(w,/&\f/g,g[C])))&&(c[b++]=S);return Uu(e,t,n,s===0?bh:l,c,u,d)}function uD(e,t,n){return Uu(e,t,n,R1,ju(oD()),Hl(e,2,-2),0)}function H1(e,t,n,r){return Uu(e,t,n,yh,Hl(e,0,r),Hl(e,r+1,-1),r)}function ba(e,t){for(var n="",r=Ch(e),s=0;s<r;s++)n+=t(e[s],s,e,t)||"";return n}function dD(e,t,n,r){switch(e.type){case Zk:if(e.children.length)break;case Xk:case yh:return e.return=e.return||e.value;case R1:return"";case $1:return e.return=e.value+"{"+ba(e.children,r)+"}";case bh:e.value=e.props.join(",")}return Vr(n=ba(e.children,r))?e.return=e.value+"{"+n+"}":""}function pD(e){var t=Ch(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 fD(e){return function(t){t.root||(t=t.return)&&e(t)}}function z1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var hD=function(t,n,r){for(var s=0,i=0;s=i,i=_r(),s===38&&i===12&&(n[r]=1),!Gl(i);)Vo();return jl(t,Eo)},gD=function(t,n){var r=-1,s=44;do switch(Gl(s)){case 0:s===38&&_r()===12&&(n[r]=1),t[r]+=hD(Eo-1,n,r);break;case 2:t[r]+=Yu(s);break;case 4:if(s===44){t[++r]=_r()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ju(s)}while(s=Vo());return t},mD=function(t,n){return _1(gD(V1(t),n))},j1=new WeakMap,bD=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&&!j1.get(r))&&!s){j1.set(t,!0);for(var i=[],a=mD(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]}}},yD=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function G1(e,t){switch(eD(e,t)){case 5103:return zt+"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 zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return zt+e+zu+e+ro+e+e;case 6828:case 4268:return zt+e+ro+e+e;case 6165:return zt+e+ro+"flex-"+e+e;case 5187:return zt+e+jt(e,/(\w+).+(:[^]+)/,zt+"box-$1$2"+ro+"flex-$1$2")+e;case 5443:return zt+e+ro+"flex-item-"+jt(e,/flex-|-self/,"")+e;case 4675:return zt+e+ro+"flex-line-pack"+jt(e,/align-content|flex-|-self/,"")+e;case 5548:return zt+e+ro+jt(e,"shrink","negative")+e;case 5292:return zt+e+ro+jt(e,"basis","preferred-size")+e;case 6060:return zt+"box-"+jt(e,"-grow","")+zt+e+ro+jt(e,"grow","positive")+e;case 4554:return zt+jt(e,/([^-])(transform)/g,"$1"+zt+"$2")+e;case 6187:return jt(jt(jt(e,/(zoom-|grab)/,zt+"$1"),/(image-set)/,zt+"$1"),e,"")+e;case 5495:case 3959:return jt(e,/(image-set\([^]*)/,zt+"$1$`$1");case 4968:return jt(jt(e,/(.+:)(flex-)?(.*)/,zt+"box-pack:$3"+ro+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zt+e+e;case 4095:case 3583:case 4068:case 2532:return jt(e,/(.+)-inline(.+)/,zt+"$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(Vr(e)-1-t>6)switch(eo(e,t+1)){case 109:if(eo(e,t+4)!==45)break;case 102:return jt(e,/(.+:)(.+)-([^]+)/,"$1"+zt+"$2-$3$1"+zu+(eo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~vh(e,"stretch")?G1(jt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(eo(e,t+1)!==115)break;case 6444:switch(eo(e,Vr(e)-3-(~vh(e,"!important")&&10))){case 107:return jt(e,":",":"+zt)+e;case 101:return jt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zt+(eo(e,14)===45?"inline-":"")+"box$3$1"+zt+"$2$3$1"+ro+"$2box$3")+e}break;case 5936:switch(eo(e,t+11)){case 114:return zt+e+ro+jt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zt+e+ro+jt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zt+e+ro+jt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return zt+e+ro+e+e}return e}var vD=function(t,n,r,s){if(t.length>-1&&!t.return)switch(t.type){case yh:t.return=G1(t.value,t.length);break;case $1:return ba([zl(t,{value:jt(t.value,"@","@"+zt)})],s);case bh:if(t.length)return nD(t.props,function(i){switch(tD(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ba([zl(t,{props:[jt(i,/:(read-\w+)/,":"+zu+"$1")]})],s);case"::placeholder":return ba([zl(t,{props:[jt(i,/:(plac\w+)/,":"+zt+"input-$1")]}),zl(t,{props:[jt(i,/:(plac\w+)/,":"+zu+"$1")]}),zl(t,{props:[jt(i,/:(plac\w+)/,ro+"input-$1")]})],s)}return""})}},CD=[vD],wD=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 b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var s=t.stylisPlugins||CD,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),C=1;C<b.length;C++)i[b[C]]=!0;l.push(m)});var c,u=[bD,yD];{var d,p=[dD,fD(function(m){d.insert(m)})],g=pD(u.concat(s,p)),h=function(b){return ba(cD(b),g)};c=function(b,C,w,S){d=w,h(b?b+"{"+C.styles+"}":C.styles),S&&(y.inserted[C.name]=!0)}}var y={key:n,sheet:new Kk({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 y.sheet.hydrate(l),y};function Ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xu={exports:{}},Yt={};var W1;function SD(){if(W1)return Yt;W1=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,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(x){if(typeof x=="object"&&x!==null){var M=x.$$typeof;switch(M){case t:switch(x=x.type,x){case c:case u:case r:case i:case s:case p:return x;default:switch(x=x&&x.$$typeof,x){case l:case d:case y:case h:case a:return x;default:return M}}case n:return M}}}function P(x){return S(x)===u}return Yt.AsyncMode=c,Yt.ConcurrentMode=u,Yt.ContextConsumer=l,Yt.ContextProvider=a,Yt.Element=t,Yt.ForwardRef=d,Yt.Fragment=r,Yt.Lazy=y,Yt.Memo=h,Yt.Portal=n,Yt.Profiler=i,Yt.StrictMode=s,Yt.Suspense=p,Yt.isAsyncMode=function(x){return P(x)||S(x)===c},Yt.isConcurrentMode=P,Yt.isContextConsumer=function(x){return S(x)===l},Yt.isContextProvider=function(x){return S(x)===a},Yt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Yt.isForwardRef=function(x){return S(x)===d},Yt.isFragment=function(x){return S(x)===r},Yt.isLazy=function(x){return S(x)===y},Yt.isMemo=function(x){return S(x)===h},Yt.isPortal=function(x){return S(x)===n},Yt.isProfiler=function(x){return S(x)===i},Yt.isStrictMode=function(x){return S(x)===s},Yt.isSuspense=function(x){return S(x)===p},Yt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===u||x===i||x===s||x===p||x===g||typeof x=="object"&&x!==null&&(x.$$typeof===y||x.$$typeof===h||x.$$typeof===a||x.$$typeof===l||x.$$typeof===d||x.$$typeof===b||x.$$typeof===C||x.$$typeof===w||x.$$typeof===m)},Yt.typeOf=S,Yt}var Kt={};var U1;function xD(){return U1||(U1=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,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(q){return typeof q=="string"||typeof q=="function"||q===r||q===u||q===i||q===s||q===p||q===g||typeof q=="object"&&q!==null&&(q.$$typeof===y||q.$$typeof===h||q.$$typeof===a||q.$$typeof===l||q.$$typeof===d||q.$$typeof===b||q.$$typeof===C||q.$$typeof===w||q.$$typeof===m)}function P(q){if(typeof q=="object"&&q!==null){var ce=q.$$typeof;switch(ce){case t:var re=q.type;switch(re){case c:case u:case r:case i:case s:case p:return re;default:var se=re&&re.$$typeof;switch(se){case l:case d:case y:case h:case a:return se;default:return ce}}case n:return ce}}}var x=c,M=u,k=l,T=a,O=t,I=d,D=r,E=y,N=h,L=n,$=i,F=s,R=p,B=!1;function _(q){return B||(B=!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.")),V(q)||P(q)===c}function V(q){return P(q)===u}function A(q){return P(q)===l}function z(q){return P(q)===a}function G(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function U(q){return P(q)===d}function X(q){return P(q)===r}function Y(q){return P(q)===y}function ee(q){return P(q)===h}function oe(q){return P(q)===n}function K(q){return P(q)===i}function W(q){return P(q)===s}function J(q){return P(q)===p}Kt.AsyncMode=x,Kt.ConcurrentMode=M,Kt.ContextConsumer=k,Kt.ContextProvider=T,Kt.Element=O,Kt.ForwardRef=I,Kt.Fragment=D,Kt.Lazy=E,Kt.Memo=N,Kt.Portal=L,Kt.Profiler=$,Kt.StrictMode=F,Kt.Suspense=R,Kt.isAsyncMode=_,Kt.isConcurrentMode=V,Kt.isContextConsumer=A,Kt.isContextProvider=z,Kt.isElement=G,Kt.isForwardRef=U,Kt.isFragment=X,Kt.isLazy=Y,Kt.isMemo=ee,Kt.isPortal=oe,Kt.isProfiler=K,Kt.isStrictMode=W,Kt.isSuspense=J,Kt.isValidElementType=S,Kt.typeOf=P})()),Kt}var q1;function PD(){return q1||(q1=1,process.env.NODE_ENV==="production"?Xu.exports=SD():Xu.exports=xD()),Xu.exports}var Sh,Y1;function ED(){if(Y1)return Sh;Y1=1;var e=PD(),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(y){return e.isMemo(y)?s:i[y.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;function h(y,m,b){if(typeof m!="string"){if(g){var C=p(m);C&&C!==g&&h(y,C,b)}var w=c(m);u&&(w=w.concat(u(m)));for(var S=a(y),P=a(m),x=0;x<w.length;++x){var M=w[x];if(!n[M]&&!(b&&b[M])&&!(P&&P[M])&&!(S&&S[M])){var k=d(m,M);try{l(y,M,k)}catch{}}}}return y}return Sh=h,Sh}ED();var ID=!0;function K1(e,t,n){var r="";return n.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(r+=s+" ")}),r}var xh=function(t,n,r){var s=t.key+"-"+n.name;(r===!1||ID===!1)&&t.registered[s]===void 0&&(t.registered[s]=n.styles)},Ph=function(t,n,r){xh(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 TD(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 MD={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},OD=/[A-Z]|^ms/g,kD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,X1=function(t){return t.charCodeAt(1)===45},Z1=function(t){return t!=null&&typeof t!="boolean"},Eh=z1(function(e){return X1(e)?e:e.replace(OD,"-$&").toLowerCase()}),Q1=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(kD,function(r,s,i){return Br={name:s,styles:i,next:Br},s})}return MD[t]!==1&&!X1(t)&&typeof n=="number"&&n!==0?n+"px":n};function Wl(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 Br={name:s.name,styles:s.styles,next:Br},s.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Br={name:a.name,styles:a.styles,next:Br},a=a.next;var l=i.styles+";";return l}return DD(e,t,n)}case"function":{if(e!==void 0){var c=Br,u=n(e);return Br=c,Wl(e,t,u)}break}}var d=n;if(t==null)return d;var p=t[d];return p!==void 0?p:d}function DD(e,t,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Wl(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+=Eh(i)+":"+Q1(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+=Eh(i)+":"+Q1(i,a[c])+";");else{var u=Wl(e,t,a);switch(i){case"animation":case"animationName":{r+=Eh(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var J1=/label:\s*([^\s;{]+)\s*(;|$)/g,Br;function Ul(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="";Br=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,s+=Wl(n,t,i);else{var a=i;s+=a[0]}for(var l=1;l<e.length;l++)if(s+=Wl(n,t,e[l]),r){var c=i;s+=c[l]}J1.lastIndex=0;for(var u="",d;(d=J1.exec(s))!==null;)u+="-"+d[1];var p=TD(s)+u;return{name:p,styles:s,next:Br}}var FD=function(t){return t()},ev=f.useInsertionEffect?f.useInsertionEffect:!1,tv=ev||FD,nv=ev||f.useLayoutEffect,ov=f.createContext(typeof HTMLElement<"u"?wD({key:"css"}):null);ov.Provider;var Ih=function(t){return ge.forwardRef(function(n,r){var s=ge.useContext(ov);return t(n,s,r)})},ql=f.createContext({}),Th={}.hasOwnProperty,Mh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ND=function(t,n){var r={};for(var s in n)Th.call(n,s)&&(r[s]=n[s]);return r[Mh]=t,r},RD=function(t){var n=t.cache,r=t.serialized,s=t.isStringTag;return xh(n,r,s),tv(function(){return Ph(n,r,s)}),null},$D=Ih(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var s=e[Mh],i=[r],a="";typeof e.className=="string"?a=K1(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=Ul(i,void 0,f.useContext(ql));a+=t.key+"-"+l.name;var c={};for(var u in e)Th.call(e,u)&&u!=="css"&&u!==Mh&&(c[u]=e[u]);return c.className=a,n&&(c.ref=n),f.createElement(f.Fragment,null,f.createElement(RD,{cache:t,serialized:l,isStringTag:typeof s=="string"}),f.createElement(s,c))}),LD=$D,rv=function(t,n){var r=arguments;if(n==null||!Th.call(n,"css"))return f.createElement.apply(void 0,r);var s=r.length,i=new Array(s);i[0]=LD,i[1]=ND(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={}))})(rv||(rv={}));var AD=Ih(function(e,t){var n=e.styles,r=Ul([n],void 0,f.useContext(ql)),s=f.useRef();return nv(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]),nv(function(){var i=s.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&Ph(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 Es(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ul(t)}function tr(){var e=Es.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 VD=/^((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|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)-.*))$/,_D=z1(function(e){return VD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),BD=_D,HD=function(t){return t!=="theme"},sv=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?BD:HD},iv=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},zD=function(t){var n=t.cache,r=t.serialized,s=t.isStringTag;return xh(n,r,s),tv(function(){return Ph(n,r,s)}),null},jD=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=iv(t,n,r),c=l||sv(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,y=1;y<h;y++)p.push(d[y],g[y])}var m=Ih(function(b,C,w){var S=u&&b.as||s,P="",x=[],M=b;if(b.theme==null){M={};for(var k in b)M[k]=b[k];M.theme=f.useContext(ql)}typeof b.className=="string"?P=K1(C.registered,x,b.className):b.className!=null&&(P=b.className+" ");var T=Ul(p.concat(x),C.registered,M);P+=C.key+"-"+T.name,a!==void 0&&(P+=" "+a);var O=u&&l===void 0?sv(S):c,I={};for(var D in b)u&&D==="as"||O(D)&&(I[D]=b[D]);return I.className=P,w&&(I.ref=w),f.createElement(f.Fragment,null,f.createElement(zD,{cache:C,serialized:T,isStringTag:typeof S=="string"}),f.createElement(S,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(b,C){var w=e(b,ha({},n,C,{shouldForwardProp:iv(m,C,!0)}));return w.apply(void 0,p)},m}},GD=["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"],Oh=jD.bind(null);GD.forEach(function(e){Oh[e]=Oh(e)});var Zu={exports:{}},Qu={exports:{}},Xt={};var av;function WD(){if(av)return Xt;av=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,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(x){if(typeof x=="object"&&x!==null){var M=x.$$typeof;switch(M){case t:switch(x=x.type,x){case c:case u:case r:case i:case s:case p:return x;default:switch(x=x&&x.$$typeof,x){case l:case d:case y:case h:case a:return x;default:return M}}case n:return M}}}function P(x){return S(x)===u}return Xt.AsyncMode=c,Xt.ConcurrentMode=u,Xt.ContextConsumer=l,Xt.ContextProvider=a,Xt.Element=t,Xt.ForwardRef=d,Xt.Fragment=r,Xt.Lazy=y,Xt.Memo=h,Xt.Portal=n,Xt.Profiler=i,Xt.StrictMode=s,Xt.Suspense=p,Xt.isAsyncMode=function(x){return P(x)||S(x)===c},Xt.isConcurrentMode=P,Xt.isContextConsumer=function(x){return S(x)===l},Xt.isContextProvider=function(x){return S(x)===a},Xt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Xt.isForwardRef=function(x){return S(x)===d},Xt.isFragment=function(x){return S(x)===r},Xt.isLazy=function(x){return S(x)===y},Xt.isMemo=function(x){return S(x)===h},Xt.isPortal=function(x){return S(x)===n},Xt.isProfiler=function(x){return S(x)===i},Xt.isStrictMode=function(x){return S(x)===s},Xt.isSuspense=function(x){return S(x)===p},Xt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===u||x===i||x===s||x===p||x===g||typeof x=="object"&&x!==null&&(x.$$typeof===y||x.$$typeof===h||x.$$typeof===a||x.$$typeof===l||x.$$typeof===d||x.$$typeof===b||x.$$typeof===C||x.$$typeof===w||x.$$typeof===m)},Xt.typeOf=S,Xt}var Zt={};var lv;function UD(){return lv||(lv=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,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(q){return typeof q=="string"||typeof q=="function"||q===r||q===u||q===i||q===s||q===p||q===g||typeof q=="object"&&q!==null&&(q.$$typeof===y||q.$$typeof===h||q.$$typeof===a||q.$$typeof===l||q.$$typeof===d||q.$$typeof===b||q.$$typeof===C||q.$$typeof===w||q.$$typeof===m)}function P(q){if(typeof q=="object"&&q!==null){var ce=q.$$typeof;switch(ce){case t:var re=q.type;switch(re){case c:case u:case r:case i:case s:case p:return re;default:var se=re&&re.$$typeof;switch(se){case l:case d:case y:case h:case a:return se;default:return ce}}case n:return ce}}}var x=c,M=u,k=l,T=a,O=t,I=d,D=r,E=y,N=h,L=n,$=i,F=s,R=p,B=!1;function _(q){return B||(B=!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.")),V(q)||P(q)===c}function V(q){return P(q)===u}function A(q){return P(q)===l}function z(q){return P(q)===a}function G(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function U(q){return P(q)===d}function X(q){return P(q)===r}function Y(q){return P(q)===y}function ee(q){return P(q)===h}function oe(q){return P(q)===n}function K(q){return P(q)===i}function W(q){return P(q)===s}function J(q){return P(q)===p}Zt.AsyncMode=x,Zt.ConcurrentMode=M,Zt.ContextConsumer=k,Zt.ContextProvider=T,Zt.Element=O,Zt.ForwardRef=I,Zt.Fragment=D,Zt.Lazy=E,Zt.Memo=N,Zt.Portal=L,Zt.Profiler=$,Zt.StrictMode=F,Zt.Suspense=R,Zt.isAsyncMode=_,Zt.isConcurrentMode=V,Zt.isContextConsumer=A,Zt.isContextProvider=z,Zt.isElement=G,Zt.isForwardRef=U,Zt.isFragment=X,Zt.isLazy=Y,Zt.isMemo=ee,Zt.isPortal=oe,Zt.isProfiler=K,Zt.isStrictMode=W,Zt.isSuspense=J,Zt.isValidElementType=S,Zt.typeOf=P})()),Zt}var cv;function uv(){return cv||(cv=1,process.env.NODE_ENV==="production"?Qu.exports=WD():Qu.exports=UD()),Qu.exports}var kh,dv;function qD(){if(dv)return kh;dv=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 kh=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},kh}var Dh,pv;function Fh(){if(pv)return Dh;pv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Dh=e,Dh}var Nh,fv;function hv(){return fv||(fv=1,Nh=Function.call.bind(Object.prototype.hasOwnProperty)),Nh}var Rh,gv;function YD(){if(gv)return Rh;gv=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Fh(),n={},r=hv();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(y){p=y}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={})},Rh=s,Rh}var $h,mv;function KD(){if(mv)return $h;mv=1;var e=uv(),t=qD(),n=Fh(),r=hv(),s=YD(),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 $h=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(V){var A=V&&(u&&V[u]||V[d]);if(typeof A=="function")return A}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:w(),arrayOf:S,element:P(),elementType:x(),instanceOf:M,node:I(),objectOf:T,oneOf:k,oneOfType:O,shape:E,exact:N};function y(V,A){return V===A?V!==0||1/V===1/A:V!==V&&A!==A}function m(V,A){this.message=V,this.data=A&&typeof A=="object"?A:{},this.stack=""}m.prototype=Error.prototype;function b(V){if(process.env.NODE_ENV!=="production")var A={},z=0;function G(X,Y,ee,oe,K,W,J){if(oe=oe||g,W=W||ee,J!==n){if(c){var q=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 q.name="Invariant Violation",q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=oe+":"+ee;!A[ce]&&z<3&&(i("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+oe+"`. 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."),A[ce]=!0,z++)}}return Y[ee]==null?X?Y[ee]===null?new m("The "+K+" `"+W+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new m("The "+K+" `"+W+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:V(Y,ee,oe,K,W)}var U=G.bind(null,!1);return U.isRequired=G.bind(null,!0),U}function C(V){function A(z,G,U,X,Y,ee){var oe=z[G],K=F(oe);if(K!==V){var W=R(oe);return new m("Invalid "+X+" `"+Y+"` of type "+("`"+W+"` supplied to `"+U+"`, expected ")+("`"+V+"`."),{expectedType:V})}return null}return b(A)}function w(){return b(a)}function S(V){function A(z,G,U,X,Y){if(typeof V!="function")return new m("Property `"+Y+"` of component `"+U+"` has invalid PropType notation inside arrayOf.");var ee=z[G];if(!Array.isArray(ee)){var oe=F(ee);return new m("Invalid "+X+" `"+Y+"` of type "+("`"+oe+"` supplied to `"+U+"`, expected an array."))}for(var K=0;K<ee.length;K++){var W=V(ee,K,U,X,Y+"["+K+"]",n);if(W instanceof Error)return W}return null}return b(A)}function P(){function V(A,z,G,U,X){var Y=A[z];if(!l(Y)){var ee=F(Y);return new m("Invalid "+U+" `"+X+"` of type "+("`"+ee+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return b(V)}function x(){function V(A,z,G,U,X){var Y=A[z];if(!e.isValidElementType(Y)){var ee=F(Y);return new m("Invalid "+U+" `"+X+"` of type "+("`"+ee+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return b(V)}function M(V){function A(z,G,U,X,Y){if(!(z[G]instanceof V)){var ee=V.name||g,oe=_(z[G]);return new m("Invalid "+X+" `"+Y+"` of type "+("`"+oe+"` supplied to `"+U+"`, expected ")+("instance of `"+ee+"`."))}return null}return b(A)}function k(V){if(!Array.isArray(V))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 A(z,G,U,X,Y){for(var ee=z[G],oe=0;oe<V.length;oe++)if(y(ee,V[oe]))return null;var K=JSON.stringify(V,function(J,q){var ce=R(q);return ce==="symbol"?String(q):q});return new m("Invalid "+X+" `"+Y+"` of value `"+String(ee)+"` "+("supplied to `"+U+"`, expected one of "+K+"."))}return b(A)}function T(V){function A(z,G,U,X,Y){if(typeof V!="function")return new m("Property `"+Y+"` of component `"+U+"` has invalid PropType notation inside objectOf.");var ee=z[G],oe=F(ee);if(oe!=="object")return new m("Invalid "+X+" `"+Y+"` of type "+("`"+oe+"` supplied to `"+U+"`, expected an object."));for(var K in ee)if(r(ee,K)){var W=V(ee,K,U,X,Y+"."+K,n);if(W instanceof Error)return W}return null}return b(A)}function O(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var A=0;A<V.length;A++){var z=V[A];if(typeof z!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(z)+" at index "+A+"."),a}function G(U,X,Y,ee,oe){for(var K=[],W=0;W<V.length;W++){var J=V[W],q=J(U,X,Y,ee,oe,n);if(q==null)return null;q.data&&r(q.data,"expectedType")&&K.push(q.data.expectedType)}var ce=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new m("Invalid "+ee+" `"+oe+"` supplied to "+("`"+Y+"`"+ce+"."))}return b(G)}function I(){function V(A,z,G,U,X){return L(A[z])?null:new m("Invalid "+U+" `"+X+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return b(V)}function D(V,A,z,G,U){return new m((V||"React class")+": "+A+" type `"+z+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+U+"`.")}function E(V){function A(z,G,U,X,Y){var ee=z[G],oe=F(ee);if(oe!=="object")return new m("Invalid "+X+" `"+Y+"` of type `"+oe+"` "+("supplied to `"+U+"`, expected `object`."));for(var K in V){var W=V[K];if(typeof W!="function")return D(U,X,Y,K,R(W));var J=W(ee,K,U,X,Y+"."+K,n);if(J)return J}return null}return b(A)}function N(V){function A(z,G,U,X,Y){var ee=z[G],oe=F(ee);if(oe!=="object")return new m("Invalid "+X+" `"+Y+"` of type `"+oe+"` "+("supplied to `"+U+"`, expected `object`."));var K=t({},z[G],V);for(var W in K){var J=V[W];if(r(V,W)&&typeof J!="function")return D(U,X,Y,W,R(J));if(!J)return new m("Invalid "+X+" `"+Y+"` key `"+W+"` supplied to `"+U+"`.\nBad object: "+JSON.stringify(z[G],null," ")+`
|
|
2
|
-
Valid keys: `+JSON.stringify(Object.keys(V),null," "));var q=J(ee,W,U,X,Y+"."+W,n);if(q)return q}return null}return b(A)}function L(V){switch(typeof V){case"number":case"string":case"undefined":return!0;case"boolean":return!V;case"object":if(Array.isArray(V))return V.every(L);if(V===null||l(V))return!0;var A=p(V);if(A){var z=A.call(V),G;if(A!==V.entries){for(;!(G=z.next()).done;)if(!L(G.value))return!1}else for(;!(G=z.next()).done;){var U=G.value;if(U&&!L(U[1]))return!1}}else return!1;return!0;default:return!1}}function $(V,A){return V==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function F(V){var A=typeof V;return Array.isArray(V)?"array":V instanceof RegExp?"object":$(A,V)?"symbol":A}function R(V){if(typeof V>"u"||V===null)return""+V;var A=F(V);if(A==="object"){if(V instanceof Date)return"date";if(V instanceof RegExp)return"regexp"}return A}function B(V){var A=R(V);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function _(V){return!V.constructor||!V.constructor.name?g:V.constructor.name}return h.checkPropTypes=s,h.resetWarningCache=s.resetWarningCache,h.PropTypes=h,h},$h}var Lh,bv;function XD(){if(bv)return Lh;bv=1;var e=Fh();function t(){}function n(){}return n.resetWarningCache=t,Lh=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},Lh}var yv;function Ah(){if(yv)return Zu.exports;if(yv=1,process.env.NODE_ENV!=="production"){var e=uv(),t=!0;Zu.exports=KD()(e.isElement,t)}else Zu.exports=XD()();return Zu.exports}var ZD=Ah();const o=Ps(ZD);function QD(e){return e==null||Object.keys(e).length===0}function Vh(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?s=>t(QD(s)?n:s):t;return v.jsx(AD,{styles:r})}process.env.NODE_ENV!=="production"&&(Vh.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function vv(e,t){const n=Oh(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 JD(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Cv=[];function Is(e){return Cv[0]=e,Ul(Cv)}var Ju={exports:{}},ln={};var wv;function e5(){if(wv)return ln;wv=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 y(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){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 b}}case t:return b}}}return ln.ContextConsumer=i,ln.ContextProvider=a,ln.Element=e,ln.ForwardRef=l,ln.Fragment=n,ln.Lazy=p,ln.Memo=d,ln.Portal=t,ln.Profiler=s,ln.StrictMode=r,ln.Suspense=c,ln.SuspenseList=u,ln.isContextConsumer=function(m){return y(m)===i},ln.isContextProvider=function(m){return y(m)===a},ln.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},ln.isForwardRef=function(m){return y(m)===l},ln.isFragment=function(m){return y(m)===n},ln.isLazy=function(m){return y(m)===p},ln.isMemo=function(m){return y(m)===d},ln.isPortal=function(m){return y(m)===t},ln.isProfiler=function(m){return y(m)===s},ln.isStrictMode=function(m){return y(m)===r},ln.isSuspense=function(m){return y(m)===c},ln.isSuspenseList=function(m){return y(m)===u},ln.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)},ln.typeOf=y,ln}var cn={};var Sv;function t5(){return Sv||(Sv=1,process.env.NODE_ENV!=="production"&&(function(){function e(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){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 b}}case n:return b}}}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"),y=Symbol.for("react.client.reference");cn.ContextConsumer=a,cn.ContextProvider=l,cn.Element=t,cn.ForwardRef=c,cn.Fragment=r,cn.Lazy=g,cn.Memo=p,cn.Portal=n,cn.Profiler=i,cn.StrictMode=s,cn.Suspense=u,cn.SuspenseList=d,cn.isContextConsumer=function(m){return e(m)===a},cn.isContextProvider=function(m){return e(m)===l},cn.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},cn.isForwardRef=function(m){return e(m)===c},cn.isFragment=function(m){return e(m)===r},cn.isLazy=function(m){return e(m)===g},cn.isMemo=function(m){return e(m)===p},cn.isPortal=function(m){return e(m)===n},cn.isProfiler=function(m){return e(m)===i},cn.isStrictMode=function(m){return e(m)===s},cn.isSuspense=function(m){return e(m)===u},cn.isSuspenseList=function(m){return e(m)===d},cn.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===y||m.getModuleId!==void 0)},cn.typeOf=e})()),cn}var xv;function n5(){return xv||(xv=1,process.env.NODE_ENV==="production"?Ju.exports=e5():Ju.exports=t5()),Ju.exports}var Ts=n5();function Hr(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 Pv(e){if(f.isValidElement(e)||Ts.isValidElementType(e)||!Hr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Pv(e[n])}),t}function so(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Hr(e)&&Hr(t)&&Object.keys(t).forEach(s=>{f.isValidElement(t[s])||Ts.isValidElementType(t[s])?r[s]=t[s]:Hr(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Hr(e[s])?r[s]=so(e[s],t[s],n):n.clone?r[s]=Hr(t[s])?Pv(t[s]):t[s]:r[s]=t[s]}),r}const o5=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 r5(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...s}=e,i=o5(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 y=a.indexOf(h);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]: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 Ev(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 s5(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function i5(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
4
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ar(18,`(${t})`));return null}const[,r,s]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(s).up(i)}function a5(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 l5={borderRadius:4},Ms=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function Yl(e,t){return t?so(e,t,{clone:!1}):e}const ed={xs:0,sm:600,md:900,lg:1200,xl:1536},Iv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ed[e]}px)`},c5={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ed[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function os(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Iv;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Iv;return Object.keys(t).reduce((a,l)=>{if(s5(i.keys,l)){const c=i5(r.containerQueries?r:c5,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||ed).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 u5(e={}){return e.keys?.reduce((n,r)=>{const s=e.up(r);return n[s]={},n},{})||{}}function Tv(e,t){return e.reduce((n,r)=>{const s=n[r];return(!s||Object.keys(s).length===0)&&delete n[r],n},t)}function pe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ar(7));return e.charAt(0).toUpperCase()+e.slice(1)}function td(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 nd(e,t,n,r=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||r:s=td(e,n)||r,t&&(s=t(s,r,e)),s}function Ln(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=td(c,r)||{};return os(a,l,p=>{let g=nd(u,s,p);return p===g&&typeof p=="string"&&(g=nd(u,s,`${t}${p==="default"?"":pe(p)}`,p)),n===!1?g:{[n]:g}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ms}:{},i.filterProps=[t],i}function d5(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const p5={m:"margin",p:"padding"},f5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Mv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},h5=d5(e=>{if(e.length>2)if(Mv[e])e=Mv[e];else return[e];const[t,n]=e.split(""),r=p5[t],s=f5[n]||"";return Array.isArray(s)?s.map(i=>r+i):[r+s]}),od=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],g5=[...od,...rd];function Kl(e,t,n,r){const s=td(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 _h(e){return Kl(e,"spacing",8,"spacing")}function Xl(e,t){return typeof t=="string"||t==null?t:e(t)}function m5(e,t){return n=>e.reduce((r,s)=>(r[s]=Xl(t,n),r),{})}function b5(e,t,n,r){if(!t.includes(n))return null;const s=h5(n),i=m5(s,r),a=e[n];return os(e,a,i)}function Ov(e,t){const n=_h(e.theme);return Object.keys(e).map(r=>b5(e,t,r,n)).reduce(Yl,{})}function Tn(e){return Ov(e,od)}Tn.propTypes=process.env.NODE_ENV!=="production"?od.reduce((e,t)=>(e[t]=Ms,e),{}):{},Tn.filterProps=od;function Mn(e){return Ov(e,rd)}Mn.propTypes=process.env.NODE_ENV!=="production"?rd.reduce((e,t)=>(e[t]=Ms,e),{}):{},Mn.filterProps=rd,process.env.NODE_ENV!=="production"&&g5.reduce((e,t)=>(e[t]=Ms,e),{});function kv(e=8,t=_h({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 sd(...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]?Yl(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 nr(e){return typeof e!="number"?e:`${e}px solid`}function or(e,t){return Ln({prop:e,themeKey:"borders",transform:t})}const y5=or("border",nr),v5=or("borderTop",nr),C5=or("borderRight",nr),w5=or("borderBottom",nr),S5=or("borderLeft",nr),x5=or("borderColor"),P5=or("borderTopColor"),E5=or("borderRightColor"),I5=or("borderBottomColor"),T5=or("borderLeftColor"),M5=or("outline",nr),O5=or("outlineColor"),id=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Kl(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Xl(t,r)});return os(e,e.borderRadius,n)}return null};id.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ms}:{},id.filterProps=["borderRadius"],sd(y5,v5,C5,w5,S5,x5,P5,E5,I5,T5,id,M5,O5);const ad=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Kl(e.theme,"spacing",8,"gap"),n=r=>({gap:Xl(t,r)});return os(e,e.gap,n)}return null};ad.propTypes=process.env.NODE_ENV!=="production"?{gap:Ms}:{},ad.filterProps=["gap"];const ld=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Kl(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Xl(t,r)});return os(e,e.columnGap,n)}return null};ld.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ms}:{},ld.filterProps=["columnGap"];const cd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Kl(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Xl(t,r)});return os(e,e.rowGap,n)}return null};cd.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ms}:{},cd.filterProps=["rowGap"];const k5=Ln({prop:"gridColumn"}),D5=Ln({prop:"gridRow"}),F5=Ln({prop:"gridAutoFlow"}),N5=Ln({prop:"gridAutoColumns"}),R5=Ln({prop:"gridAutoRows"}),$5=Ln({prop:"gridTemplateColumns"}),L5=Ln({prop:"gridTemplateRows"}),A5=Ln({prop:"gridTemplateAreas"}),V5=Ln({prop:"gridArea"});sd(ad,ld,cd,k5,D5,F5,N5,R5,$5,L5,A5,V5);function ya(e,t){return t==="grey"?t:e}const _5=Ln({prop:"color",themeKey:"palette",transform:ya}),B5=Ln({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ya}),H5=Ln({prop:"backgroundColor",themeKey:"palette",transform:ya});sd(_5,B5,H5);function _o(e){return e<=1&&e!==0?`${e*100}%`:e}const z5=Ln({prop:"width",transform:_o}),Bh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||ed[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:_o(n)}};return os(e,e.maxWidth,t)}return null};Bh.filterProps=["maxWidth"];const j5=Ln({prop:"minWidth",transform:_o}),G5=Ln({prop:"height",transform:_o}),W5=Ln({prop:"maxHeight",transform:_o}),U5=Ln({prop:"minHeight",transform:_o});Ln({prop:"size",cssProperty:"width",transform:_o}),Ln({prop:"size",cssProperty:"height",transform:_o});const q5=Ln({prop:"boxSizing"});sd(z5,Bh,j5,G5,W5,U5,q5);const Zl={border:{themeKey:"borders",transform:nr},borderTop:{themeKey:"borders",transform:nr},borderRight:{themeKey:"borders",transform:nr},borderBottom:{themeKey:"borders",transform:nr},borderLeft:{themeKey:"borders",transform:nr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:nr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:id},color:{themeKey:"palette",transform:ya},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ya},backgroundColor:{themeKey:"palette",transform:ya},p:{style:Mn},pt:{style:Mn},pr:{style:Mn},pb:{style:Mn},pl:{style:Mn},px:{style:Mn},py:{style:Mn},padding:{style:Mn},paddingTop:{style:Mn},paddingRight:{style:Mn},paddingBottom:{style:Mn},paddingLeft:{style:Mn},paddingX:{style:Mn},paddingY:{style:Mn},paddingInline:{style:Mn},paddingInlineStart:{style:Mn},paddingInlineEnd:{style:Mn},paddingBlock:{style:Mn},paddingBlockStart:{style:Mn},paddingBlockEnd:{style:Mn},m:{style:Tn},mt:{style:Tn},mr:{style:Tn},mb:{style:Tn},ml:{style:Tn},mx:{style:Tn},my:{style:Tn},margin:{style:Tn},marginTop:{style:Tn},marginRight:{style:Tn},marginBottom:{style:Tn},marginLeft:{style:Tn},marginX:{style:Tn},marginY:{style:Tn},marginInline:{style:Tn},marginInlineStart:{style:Tn},marginInlineEnd:{style:Tn},marginBlock:{style:Tn},marginBlockStart:{style:Tn},marginBlockEnd:{style:Tn},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:ad},rowGap:{style:cd},columnGap:{style:ld},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_o},maxWidth:{style:Bh},minWidth:{transform:_o},height:{transform:_o},maxHeight:{transform:_o},minHeight:{transform:_o},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 Y5(...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 K5(e,t){return typeof e=="function"?e(t):e}function X5(){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=td(s,u)||{};return p?p(a):os(a,r,y=>{let m=nd(g,d,y);return y===m&&typeof y=="string"&&(m=nd(g,d,`${n}${y==="default"?"":pe(y)}`,y)),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??Zl;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=u5(s.breakpoints),p=Object.keys(d);let g=d;return Object.keys(u).forEach(h=>{const y=K5(u[h],s);if(y!=null)if(typeof y=="object")if(a[h])g=Yl(g,e(h,y,s,a));else{const m=os({theme:s},y,b=>({[h]:b}));Y5(m,y)?g[h]=t({sx:y,theme:s,nested:!0}):g=Yl(g,m)}else g=Yl(g,e(h,y,s,a))}),!i&&s.modularCssLayers?{"@layer sx":Ev(s,Tv(p,g))}:Ev(s,Tv(p,g))}return Array.isArray(r)?r.map(l):l(r)}return t}const Os=X5();Os.filterProps=["sx"];function Z5(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 ud(e={},...t){const{breakpoints:n={},palette:r={},spacing:s,shape:i={},...a}=e,l=r5(n),c=kv(s);let u=so({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...l5,...i}},a);return u=a5(u),u.applyStyles=Z5,u=t.reduce((d,p)=>so(d,p),u),u.unstable_sxConfig={...Zl,...a?.unstable_sxConfig},u.unstable_sx=function(p){return Os({sx:p,theme:this})},u}function Q5(e){return Object.keys(e).length===0}function dd(e=null){const t=f.useContext(ql);return!t||Q5(t)?e:t}const J5=ud();function Ql(e=J5){return dd(e)}function Hh(e){const t=Is(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function zh({styles:e,themeId:t,defaultTheme:n={}}){const r=Ql(n),s=t&&r[t]||r;let i=typeof e=="function"?e(s):e;return s.modularCssLayers&&(Array.isArray(i)?i=i.map(a=>Hh(typeof a=="function"?a(s):a)):i=Hh(i)),v.jsx(Vh,{styles:i})}process.env.NODE_ENV!=="production"&&(zh.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const e3=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Zl;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function jh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:s}=e3(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Hr(l)?{...r,...l}:r}:i={...r,...t},{...s,sx:i}}const Dv=e=>e,Fv=(()=>{let e=Dv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Dv}}})();function Nv(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=Nv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ie(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Nv(e))&&(r&&(r+=" "),r+=t);return r}function t3(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:s}=e,i=vv("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Os);return f.forwardRef(function(c,u){const d=Ql(n),{className:p,component:g="div",...h}=jh(c);return v.jsx(i,{as:g,ref:u,className:ie(p,s?s(r):r),theme:t&&d[t]||d,...h})})}const n3={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=n3[t];return r?`${n}-${r}`:`${Fv.generate(e)}-${t}`}function Oe(e,t,n="Mui"){const r={};return t.forEach(s=>{r[s]=ke(e,s,n)}),r}function Rv(e,t=""){return e.displayName||e.name||t}function $v(e,t,n){const r=Rv(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function o3(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Rv(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ts.ForwardRef:return $v(e,e.render,"ForwardRef");case Ts.Memo:return $v(e,e.type,"memo");default:return}}}function Lv(e){const{variants:t,...n}=e,r={variants:t,style:Is(n),isProcessed:!0};return r.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=Is(s.style))}),r}const r3=ud();function Io(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ii(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function s3(e){return e?(t,n)=>n[e]:null}function i3(e,t,n){e.theme=c3(e.theme)?n:e.theme[t]||e.theme}function pd(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(s=>pd(e,s,n));if(Array.isArray(r?.variants)){let s;if(r.isProcessed)s=n?ii(r.style,n):r.style;else{const{variants:i,...a}=r;s=n?ii(Is(a),n):a}return Av(e,r.variants,[s],n)}return r?.isProcessed?n?ii(Is(r.style),n):r.style:n?ii(Is(r),n):r}function Av(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?ii(Is(a.style(s)),r):a.style(s))):n.push(r?ii(Is(a.style),r):a.style)}return n}function Vv(e={}){const{themeId:t,defaultTheme:n=r3,rootShouldForwardProp:r=Io,slotShouldForwardProp:s=Io}=e;function i(l){i3(l,t,n)}return(l,c={})=>{JD(l,M=>M.filter(k=>k!==Os));const{name:u,slot:d,skipVariantsResolver:p,skipSx:g,overridesResolver:h=s3(_v(d)),...y}=c,m=u&&u.startsWith("Mui")||d?"components":"custom",b=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,C=g||!1;let w=Io;d==="Root"||d==="root"?w=r:d?w=s:u3(l)&&(w=void 0);const S=vv(l,{shouldForwardProp:w,label:l3(u,d),...y}),P=M=>{if(M.__emotion_real===M)return M;if(typeof M=="function")return function(T){return pd(T,M,T.theme.modularCssLayers?m:void 0)};if(Hr(M)){const k=Lv(M);return function(O){return k.variants?pd(O,k,O.theme.modularCssLayers?m:void 0):O.theme.modularCssLayers?ii(k.style,m):k.style}}return M},x=(...M)=>{const k=[],T=M.map(P),O=[];if(k.push(i),u&&h&&O.push(function(N){const $=N.theme.components?.[u]?.styleOverrides;if(!$)return null;const F={};for(const R in $)F[R]=pd(N,$[R],N.theme.modularCssLayers?"theme":void 0);return h(N,F)}),u&&!b&&O.push(function(N){const $=N.theme?.components?.[u]?.variants;return $?Av(N,$,[],N.theme.modularCssLayers?"theme":void 0):null}),C||O.push(Os),Array.isArray(T[0])){const E=T.shift(),N=new Array(k.length).fill(""),L=new Array(O.length).fill("");let $;$=[...N,...E,...L],$.raw=[...N,...E.raw,...L],k.unshift($)}const I=[...k,...T,...O],D=S(...I);return l.muiName&&(D.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(D.displayName=a3(u,d,l)),D};return S.withConfig&&(x.withConfig=S.withConfig),x}}function a3(e,t,n){return e?`${e}${pe(t||"")}`:`Styled(${o3(n)})`}function l3(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${_v(t||"Root")}`),n}function c3(e){for(const t in e)return!1;return!0}function u3(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _v(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const xt=Vv();function ai(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]=ai(a[u],l[u],n)}}}else i==="className"&&n&&t.className?r.className=ie(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 Gh(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ai(t.components[n].defaultProps,r)}function Bv({props:e,name:t,defaultTheme:n,themeId:r}){let s=Ql(n);return r&&(s=s[r]||s),Gh({theme:s,name:t,props:e})}const ht=typeof window<"u"?f.useLayoutEffect:f.useEffect;function d3(e,t,n,r,s){const[i,a]=f.useState(()=>s&&n?n(e).matches:r?r(e).matches:t);return ht(()=>{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 Hv={...f}.useSyncExternalStore;function p3(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 Hv(c,l,a)}function zv(e={}){const{themeId:t}=e;return function(r,s={}){let i=dd();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}=Gh({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=(Hv!==void 0?p3:d3)(p,l,c,u,d);return process.env.NODE_ENV!=="production"&&f.useDebugValue({query:p,match:h}),h}}zv();function f3(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Wh(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}].`),f3(e,t,n)}function h3(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 ks(e){if(e.type)return e;if(e.charAt(0)==="#")return ks(h3(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().`:Ar(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.`:Ar(10,s))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:s}}const g3=e=>{const t=ks(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Jl=(e,t)=>{try{return g3(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function fd(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 jv(e){e=ks(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])),fd({type:l,values:c})}function Uh(e){e=ks(e);let t=e.type==="hsl"||e.type==="hsla"?ks(jv(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 Gv(e,t){const n=Uh(e),r=Uh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function zn(e,t){return e=ks(e),t=Wh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,fd(e)}function li(e,t,n){try{return zn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ec(e,t){if(e=ks(e),t=Wh(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 fd(e)}function nn(e,t,n){try{return ec(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function tc(e,t){if(e=ks(e),t=Wh(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 fd(e)}function on(e,t,n){try{return tc(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function m3(e,t=.15){return Uh(e)>.5?ec(e,t):tc(e,t)}function hd(e,t,n){try{return m3(e,t)}catch{return e}}const b3="exact-prop: ";function nc(e){return process.env.NODE_ENV==="production"?e:{...e,[b3]: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 qh=f.createContext(null);process.env.NODE_ENV!=="production"&&(qh.displayName="ThemeContext");function Yh(){const e=f.useContext(qh);return process.env.NODE_ENV!=="production"&&f.useDebugValue(e),e}const y3=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function v3(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 gd(e){const{children:t,theme:n}=e,r=Yh();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}:v3(r,n);return i!=null&&(i[y3]=r!==null),i},[n,r]);return v.jsx(qh.Provider,{value:s,children:t})}process.env.NODE_ENV!=="production"&&(gd.propTypes={children:o.node,theme:o.oneOfType([o.object,o.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(gd.propTypes=nc(gd.propTypes));const Wv=f.createContext();function Uv({value:e,...t}){return v.jsx(Wv.Provider,{value:e??!0,...t})}process.env.NODE_ENV!=="production"&&(Uv.propTypes={children:o.node,value:o.bool});const Gt=()=>f.useContext(Wv)??!1,qv=f.createContext(void 0);function Yv({value:e,children:t}){return v.jsx(qv.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(Yv.propTypes={children:o.node,value:o.object});function C3(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?ai(s.defaultProps,r,t.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?ai(s,r,t.components.mergeClassNameAndStyle):r}function w3({props:e,name:t}){const n=f.useContext(qv);return C3({props:e,name:t,theme:{components:n}})}let Kv=0;function S3(e){const[t,n]=f.useState(e),r=e||t;return f.useEffect(()=>{t==null&&(Kv+=1,n(`mui-${Kv}`))},[t]),r}const Xv={...f}.useId;function dt(e){if(Xv!==void 0){const t=Xv();return e??t}return S3(e)}function x3(e){const t=dd(),n=dt()||"",{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};`,ht(()=>{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(zh,{styles:s}):null}const Zv={};function Qv(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 oc(e){const{children:t,theme:n,themeId:r}=e,s=dd(Zv),i=Yh()||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=Qv(r,s,n),l=Qv(r,i,n,!0),c=(r?a[r]:a).direction==="rtl",u=x3(a);return v.jsx(gd,{theme:l,children:v.jsx(ql.Provider,{value:a,children:v.jsx(Uv,{value:c,children:v.jsxs(Yv,{value:r?a[r].components:a.components,children:[u,t]})})})})}process.env.NODE_ENV!=="production"&&(oc.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"&&(oc.propTypes=nc(oc.propTypes));const Jv={theme:void 0};function P3(e){let t,n;return function(s){let i=t;return(i===void 0||s.theme!==n)&&(Jv.theme=s.theme,i=Lv(e(Jv)),t=i,n=s.theme),i}}const Kh="mode",Xh="color-scheme",E3="data-color-scheme";function I3(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:s=Kh,colorSchemeStorageKey:i=Xh,attribute:a=E3,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 T3(){}const M3=({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 T3;const r=s=>{const i=s.newValue;s.key===e&&n(i)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function Zh(){}function eC(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function tC(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 O3(e){return tC(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function k3(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:s=[],modeStorageKey:i=Kh,colorSchemeStorageKey:a=Xh,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=M3,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]),y=f.useMemo(()=>c?.({key:`${a}-dark`,storageWindow:l}),[c,a,l]),[m,b]=f.useState(()=>{const T=g?.get(t)||t,O=h?.get(n)||n,I=y?.get(r)||r;return{mode:T,systemMode:eC(T),lightColorScheme:O,darkColorScheme:I}}),[C,w]=f.useState(u||!p);f.useEffect(()=>{w(!0)},[]);const S=O3(m),P=f.useCallback(T=>{b(O=>{if(T===O.mode)return O;const I=T??t;return g?.set(I),{...O,mode:I,systemMode:eC(I)}})},[g,t]),x=f.useCallback(T=>{T?typeof T=="string"?T&&!d.includes(T)?console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`):b(O=>{const I={...O};return tC(O,D=>{D==="light"&&(h?.set(T),I.lightColorScheme=T),D==="dark"&&(y?.set(T),I.darkColorScheme=T)}),I}):b(O=>{const I={...O},D=T.light===null?n:T.light,E=T.dark===null?r:T.dark;return D&&(d.includes(D)?(I.lightColorScheme=D,h?.set(D)):console.error(`\`${D}\` does not exist in \`theme.colorSchemes\`.`)),E&&(d.includes(E)?(I.darkColorScheme=E,y?.set(E)):console.error(`\`${E}\` does not exist in \`theme.colorSchemes\`.`)),I}):b(O=>(h?.set(n),y?.set(r),{...O,lightColorScheme:n,darkColorScheme:r}))},[d,h,y,n,r]),M=f.useCallback(T=>{m.mode==="system"&&b(O=>{const I=T?.matches?"dark":"light";return O.systemMode===I?O:{...O,systemMode:I}})},[m.mode]),k=f.useRef(M);return k.current=M,f.useEffect(()=>{if(typeof window.matchMedia!="function"||!p)return;const T=(...I)=>k.current(...I),O=window.matchMedia("(prefers-color-scheme: dark)");return O.addListener(T),T(O),()=>{O.removeListener(T)}},[p]),f.useEffect(()=>{if(p){const T=g?.subscribe(D=>{(!D||["light","dark","system"].includes(D))&&P(D||t)})||Zh,O=h?.subscribe(D=>{(!D||d.match(D))&&x({light:D})})||Zh,I=y?.subscribe(D=>{(!D||d.match(D))&&x({dark:D})})||Zh;return()=>{T(),O(),I()}}},[x,P,d,t,l,p,g,h,y]),{...m,mode:C?m.mode:void 0,systemMode:C?m.systemMode:void 0,colorScheme:C?S:void 0,setMode:P,setColorScheme:x}}const D3="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function F3(e){const{themeId:t,theme:n={},modeStorageKey:r=Kh,colorSchemeStorageKey:s=Xh,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:w,theme:S,modeStorageKey:P=r,colorSchemeStorageKey:x=s,disableTransitionOnChange:M=i,storageManager:k,storageWindow:T=typeof window>"u"?void 0:window,documentNode:O=typeof document>"u"?void 0:document,colorSchemeNode:I=typeof document>"u"?void 0:document.documentElement,disableNestedContext:D=!1,disableStyleSheetGeneration:E=!1,defaultMode:N="system",forceThemeRerender:L=!1,noSsr:$}=C,F=f.useRef(!1),R=Yh(),B=f.useContext(u),_=!!B&&!D,V=f.useMemo(()=>S||(typeof n=="function"?n():n),[S]),A=V[t],z=A||V,{colorSchemes:G=p,components:U=g,cssVarPrefix:X}=z,Y=Object.keys(G).filter(Le=>!!G[Le]).join(","),ee=f.useMemo(()=>Y.split(","),[Y]),oe=typeof a=="string"?a:a.light,K=typeof a=="string"?a:a.dark,W=G[oe]&&G[K]?N:G[z.defaultColorScheme]?.palette?.mode||z.palette?.mode,{mode:J,setMode:q,systemMode:ce,lightColorScheme:re,darkColorScheme:se,colorScheme:ae,setColorScheme:te}=k3({supportedColorSchemes:ee,defaultLightColorScheme:oe,defaultDarkColorScheme:K,modeStorageKey:P,colorSchemeStorageKey:x,defaultMode:W,storageManager:k,storageWindow:T,noSsr:$});let Q=J,Ce=ae;_&&(Q=B.mode,Ce=B.colorScheme),process.env.NODE_ENV!=="production"&&L&&!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 le=Ce||z.defaultColorScheme;z.vars&&!L&&(le=z.defaultColorScheme);const xe=f.useMemo(()=>{const Le=z.generateThemeVars?.()||z.vars,Qe={...z,components:U,colorSchemes:G,cssVarPrefix:X,vars:Le};if(typeof Qe.generateSpacing=="function"&&(Qe.spacing=Qe.generateSpacing()),le){const Je=G[le];Je&&typeof Je=="object"&&Object.keys(Je).forEach(be=>{Je[be]&&typeof Je[be]=="object"?Qe[be]={...Qe[be],...Je[be]}:Qe[be]=Je[be]})}return l?l(Qe):Qe},[z,le,U,G,X]),we=z.colorSchemeSelector;ht(()=>{if(Ce&&I&&we&&we!=="media"){const Le=we;let Qe=we;if(Le==="class"&&(Qe=".%s"),Le==="data"&&(Qe="[data-%s]"),Le?.startsWith("data-")&&!Le.includes("%s")&&(Qe=`[${Le}="%s"]`),Qe.startsWith("."))I.classList.remove(...ee.map(Je=>Qe.substring(1).replace("%s",Je))),I.classList.add(Qe.substring(1).replace("%s",Ce));else{const Je=Qe.replace("%s",Ce).match(/\[([^\]]+)\]/);if(Je){const[be,Ee]=Je[1].split("=");Ee||ee.forEach(me=>{I.removeAttribute(be.replace(Ce,me))}),I.setAttribute(be,Ee?Ee.replace(/"|'/g,""):"")}else I.setAttribute(Qe,Ce)}}},[Ce,we,I,ee]),f.useEffect(()=>{let Le;if(M&&F.current&&O){const Qe=O.createElement("style");Qe.appendChild(O.createTextNode(D3)),O.head.appendChild(Qe),window.getComputedStyle(O.body),Le=setTimeout(()=>{O.head.removeChild(Qe)},1)}return()=>{clearTimeout(Le)}},[Ce,M,O]),f.useEffect(()=>(F.current=!0,()=>{F.current=!1}),[]);const Ue=f.useMemo(()=>({allColorSchemes:ee,colorScheme:Ce,darkColorScheme:se,lightColorScheme:re,mode:Q,setColorScheme:te,setMode:process.env.NODE_ENV==="production"?q:Le=>{xe.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
|
-
`)),q(Le)},systemMode:ce}),[ee,Ce,se,re,Q,te,q,ce,xe.colorSchemeSelector]);let $e=!0;(E||z.cssVariables===!1||_&&R?.cssVarPrefix===X)&&($e=!1);const Ze=v.jsxs(f.Fragment,{children:[v.jsx(oc,{themeId:A?t:void 0,theme:xe,children:w}),$e&&v.jsx(Vh,{styles:xe.generateStyleSheets?.()||[]})]});return _?Ze:v.jsx(u.Provider,{value:Ue,children:Ze})}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 y=typeof a=="string"?a:a.light,m=typeof a=="string"?a:a.dark;return{CssVarsProvider:h,useColorScheme:d,getInitColorSchemeScript:C=>I3({colorSchemeStorageKey:s,defaultLightColorScheme:y,defaultDarkColorScheme:m,modeStorageKey:r,...C})}}function N3(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 nC=(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])})},R3=(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)},$3=(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 Qh(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},s={},i={},a={};return R3(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,p=$3(l,c);Object.assign(s,{[d]:p}),nC(i,l,`var(${d})`,u),nC(a,l,`var(${d}, ${p})`,u)}},l=>l[0]==="vars"),{css:s,vars:i,varsWithDefaults:a}}function L3(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}=Qh(u,t);let h=g;const y={},{[c]:m,...b}=a;if(Object.entries(b||{}).forEach(([P,x])=>{const{vars:M,css:k,varsWithDefaults:T}=Qh(x,t);h=so(h,T),y[P]={css:k,vars:M}}),m){const{css:P,vars:x,varsWithDefaults:M}=Qh(m,t);h=so(h,M),y[c]={css:P,vars:x}}function C(P,x){let M=s;if(s==="class"&&(M=".%s"),s==="data"&&(M="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(M=`[${s}="%s"]`),P){if(M==="media")return e.defaultColorScheme===P?":root":{[`@media (prefers-color-scheme: ${a[P]?.palette?.mode||P})`]:{":root":x}};if(M)return e.defaultColorScheme===P?`:root, ${M.replace("%s",String(P))}`:M.replace("%s",String(P))}return":root"}return{vars:h,generateThemeVars:()=>{let P={...d};return Object.entries(y).forEach(([,{vars:x}])=>{P=so(P,x)}),P},generateStyleSheets:()=>{const P=[],x=e.defaultColorScheme||"light";function M(O,I){Object.keys(I).length&&P.push(typeof O=="string"?{[O]:{...I}}:O)}M(n(void 0,{...p}),p);const{[x]:k,...T}=y;if(k){const{css:O}=k,I=a[x]?.palette?.mode,D=!r&&I?{colorScheme:I,...O}:{...O};M(n(x,{...D}),D)}return Object.entries(T).forEach(([O,{css:I}])=>{const D=a[O]?.palette?.mode,E=!r&&D?{colorScheme:D,...I}:{...I};M(n(O,{...E}),E)}),i&&P.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)"}}),P}}}function A3(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 de(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 va(e,t){return f.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const V3=(e,t)=>e.filter(n=>t.includes(n)),Ca=(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:V3(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 md(e){return`--Grid-${e}Spacing`}function bd(e){return`--Grid-parent-${e}Spacing`}const oC="--Grid-columns",wa="--Grid-parent-columns",_3=({theme:e,ownerState:t})=>{const n={};return Ca(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(${wa}) - (var(${wa}) - ${s}) * (var(${bd("column")}) / var(${wa})))`}),r(n,i)}),n},B3=({theme:e,ownerState:t})=>{const n={};return Ca(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(${wa}) + var(${bd("column")}) * ${s} / var(${wa}))`}),r(n,i)}),n},H3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[oC]:12};return Ca(e.breakpoints,t.columns,(r,s)=>{const i=s??12;r(n,{[oC]:i,"> *":{[wa]:i}})}),n},z3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ca(e.breakpoints,t.rowSpacing,(r,s)=>{const i=typeof s=="string"?s:e.spacing?.(s);r(n,{[md("row")]:i,"> *":{[bd("row")]:i}})}),n},j3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ca(e.breakpoints,t.columnSpacing,(r,s)=>{const i=typeof s=="string"?s:e.spacing?.(s);r(n,{[md("column")]:i,"> *":{[bd("column")]:i}})}),n},G3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ca(e.breakpoints,t.direction,(r,s)=>{r(n,{flexDirection:s})}),n},W3=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${md("row")}) var(${md("column")})`}}),U3=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},q3=(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[]},Y3=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],K3=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.`,rC=[];function X3(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=>{rC.includes(r)||(rC.push(r),console.warn(`MUI Grid: ${K3(r)}
|
|
44
|
-
`))})}const Z3=ud(),Q3=xt("div",{name:"MuiGrid",slot:"Root"});function J3(e){return Bv({props:e,name:"MuiGrid",defaultTheme:Z3})}function sC(e={}){const{createStyledComponent:t=Q3,useThemeProps:n=J3,useTheme:r=Ql,componentName:s="MuiGrid"}=e,i=(u,d)=>{const{container:p,direction:g,spacing:h,wrap:y,size:m}=u,b={root:["root",p&&"container",y!=="wrap"&&`wrap-xs-${String(y)}`,...Y3(g),...U3(m),...p?q3(h,d.breakpoints.keys[0]):[]]};return de(b,C=>ke(s,C),{})};function a(u,d,p=()=>!0){const g={};return u===null||(Array.isArray(u)?u.forEach((h,y)=>{h!==null&&p(h)&&d.keys[y]&&(g[d.keys[y]]=h)}):typeof u=="object"?Object.keys(u).forEach(h=>{const y=u[h];y!=null&&p(y)&&(g[h]=y)}):g[d.keys[0]]=u),g}const l=t(H3,j3,z3,_3,G3,W3,B3),c=f.forwardRef(function(d,p){const g=r(),h=n(d),y=jh(h);X3(y,g.breakpoints);const{className:m,children:b,columns:C=12,container:w=!1,component:S="div",direction:P="row",wrap:x="wrap",size:M={},offset:k={},spacing:T=0,rowSpacing:O=T,columnSpacing:I=T,unstable_level:D=0,...E}=y,N=a(M,g.breakpoints,A=>A!==!1),L=a(k,g.breakpoints),$=d.columns??(D?void 0:C),F=d.spacing??(D?void 0:T),R=d.rowSpacing??d.spacing??(D?void 0:O),B=d.columnSpacing??d.spacing??(D?void 0:I),_={...y,level:D,columns:$,container:w,direction:P,wrap:x,spacing:F,rowSpacing:R,columnSpacing:B,size:N,offset:L},V=i(_,g);return v.jsx(l,{ref:p,as:S,ownerState:_,className:ie(V.root,m),...E,children:f.Children.map(b,A=>f.isValidElement(A)&&va(A,["Grid"])&&w&&A.props.container?f.cloneElement(A,{unstable_level:A.props?.unstable_level??D+1}):A)})});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 rr=sC();process.env.NODE_ENV!=="production"&&(rr.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 iC(){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:_l.white,default:_l.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 aC=iC();function lC(){return{text:{primary:_l.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:_l.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 Jh=lC();function cC(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=tc(e.main,s):t==="dark"&&(e.dark=ec(e.main,i)))}function uC(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 e4(e="light"){return e==="dark"?{main:da[200],light:da[50],dark:da[400]}:{main:da[700],light:da[400],dark:da[800]}}function t4(e="light"){return e==="dark"?{main:ua[200],light:ua[50],dark:ua[400]}:{main:ua[500],light:ua[300],dark:ua[700]}}function n4(e="light"){return e==="dark"?{main:ca[500],light:ca[300],dark:ca[700]}:{main:ca[700],light:ca[400],dark:ca[800]}}function o4(e="light"){return e==="dark"?{main:pa[400],light:pa[300],dark:pa[700]}:{main:pa[700],light:pa[500],dark:pa[900]}}function r4(e="light"){return e==="dark"?{main:fa[400],light:fa[300],dark:fa[700]}:{main:fa[800],light:fa[500],dark:fa[900]}}function s4(e="light"){return e==="dark"?{main:Bl[400],light:Bl[300],dark:Bl[700]}:{main:"#ed6c02",light:Bl[500],dark:Bl[900]}}function i4(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function eg(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:s,...i}=e,a=e.primary||e4(t),l=e.secondary||t4(t),c=e.error||n4(t),u=e.info||o4(t),d=e.success||r4(t),p=e.warning||s4(t);function g(b){if(s)return i4(b);const C=Gv(b,Jh.text.primary)>=n?Jh.text.primary:aC.text.primary;if(process.env.NODE_ENV!=="production"){const w=Gv(b,C);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${C} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
45
|
-
`))}return C}const h=({color:b,name:C,mainShade:w=500,lightShade:S=300,darkShade:P=700})=>{if(b={...b},!b.main&&b[w]&&(b.main=b[w]),!b.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 \`${w}\` property.`:Ar(11,C?` (${C})`:"",w));if(typeof b.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(b.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
|
-
} });`:Ar(12,C?` (${C})`:"",JSON.stringify(b.main)));return s?(uC(s,b,"light",S,r),uC(s,b,"dark",P,r)):(cC(b,"light",S,r),cC(b,"dark",P,r)),b.contrastText||(b.contrastText=g(b.main)),b};let y;return t==="light"?y=iC():t==="dark"&&(y=lC()),process.env.NODE_ENV!=="production"&&(y||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),so({common:{..._l},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:Uk,contrastThreshold:n,getContrastText:g,augmentColor:h,tonalOffset:r,...y},i)}function a4(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 l4(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function c4(e){return Math.round(e*1e5)/1e5}const dC={textTransform:"uppercase"},pC='"Roboto", "Helvetica", "Arial", sans-serif';function fC(e,t){const{fontFamily:n=pC,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||(b=>`${b/c*g}rem`),y=(b,C,w,S,P)=>({fontFamily:n,fontWeight:b,fontSize:h(C),lineHeight:w,...n===pC?{letterSpacing:`${c4(S/C)}em`}:{},...P,...u}),m={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(a,14,1.75,.4,dC),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,dC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return so({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...m},p,{clone:!1})}const u4=.2,d4=.14,p4=.12;function bn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${u4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${d4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${p4})`].join(",")}const f4=["none",bn(0,2,1,-1,0,1,1,0,0,1,3,0),bn(0,3,1,-2,0,2,2,0,0,1,5,0),bn(0,3,3,-2,0,3,4,0,0,1,8,0),bn(0,2,4,-1,0,4,5,0,0,1,10,0),bn(0,3,5,-1,0,5,8,0,0,1,14,0),bn(0,3,5,-1,0,6,10,0,0,1,18,0),bn(0,4,5,-2,0,7,10,1,0,2,16,1),bn(0,5,5,-3,0,8,10,1,0,3,14,2),bn(0,5,6,-3,0,9,12,1,0,3,16,2),bn(0,6,6,-3,0,10,14,1,0,4,18,3),bn(0,6,7,-4,0,11,15,1,0,4,20,3),bn(0,7,8,-4,0,12,17,2,0,5,22,4),bn(0,7,8,-4,0,13,19,2,0,5,24,4),bn(0,7,9,-4,0,14,21,2,0,5,26,4),bn(0,8,9,-5,0,15,22,2,0,6,28,5),bn(0,8,10,-5,0,16,24,2,0,6,30,5),bn(0,8,11,-5,0,17,26,2,0,6,32,5),bn(0,9,11,-5,0,18,28,2,0,7,34,6),bn(0,9,12,-6,0,19,29,2,0,7,36,6),bn(0,10,13,-6,0,20,31,3,0,8,38,7),bn(0,10,13,-6,0,21,33,3,0,8,40,7),bn(0,10,14,-6,0,22,35,3,0,8,42,7),bn(0,11,14,-7,0,23,36,3,0,9,44,8),bn(0,11,15,-7,0,24,38,3,0,9,46,8)],h4={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)"},hC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gC(e){return`${Math.round(e)}ms`}function g4(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function m4(e){const t={...h4,...e.easing},n={...hC,...e.duration};return{getAutoHeightDuration:g4,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:gC(a)} ${l} ${typeof c=="string"?c:gC(c)}`).join(",")},...e,easing:t,duration:n}}const b4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function y4(e){return Hr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function mC(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];!y4(l)||a.startsWith("unstable_")?delete r[a]:Hr(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 bC(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const v4=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 C4(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})`:zn(t,v4(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${bC(n)})`:tc(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${bC(n)})`:ec(t,n)}})}function tg(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.":Ar(20));const p=eg({...i,colorSpace:u}),g=ud(e);let h=so(g,{mixins:l4(g.breakpoints,r),palette:p,shadows:f4.slice(),typography:fC(p,l),transitions:m4(a),zIndex:{...b4}});if(h=so(h,d),h=t.reduce((y,m)=>so(y,m),h),process.env.NODE_ENV!=="production"){const y=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(b,C)=>{let w;for(w in b){const S=b[w];if(y.includes(w)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const P=ke("",w);console.error([`MUI: The \`${C}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${P}' syntax:`,JSON.stringify({root:{[`&.${P}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
68
|
-
`))}b[w]={}}}};Object.keys(h.components).forEach(b=>{const C=h.components[b].styleOverrides;C&&b.startsWith("Mui")&&m(C,b)})}return h.unstable_sxConfig={...Zl,...d?.unstable_sxConfig},h.unstable_sx=function(m){return Os({sx:m,theme:this})},h.toRuntimeSource=mC,C4(h),h}function ng(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 w4=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=ng(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function yC(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function vC(e){return e==="dark"?w4:[]}function S4(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:s,...i}=e,a=eg({...t,colorSpace:s});return{palette:a,opacity:{...yC(a.mode),...n},overlays:r||vC(a.mode),...i}}function x4(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 P4=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],E4=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 P4(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 I4(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ve(e,t,n){!e[t]&&n&&(e[t]=n)}function rc(e){return typeof e!="string"||!e.startsWith("hsl")?e:jv(e)}function rs(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Jl(rc(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 T4(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const zr=e=>{try{return e()}catch{}},M4=(e="mui")=>N3(e);function og(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}=tg({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[s]={...n,palette:a,opacity:{...yC(i),...n?.opacity},overlays:n?.overlays||vC(i)},l}function O4(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:s=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=x4,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=M4(i),{[g]:y,light:m,dark:b,...C}=n,w={...C};let S=y;if((g==="dark"&&!("dark"in n)||g==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${g}\` option is either missing or invalid.`:Ar(21,g));let P;a&&(P="oklch");const x=og(P,w,S,d,g);m&&!w.light&&og(P,w,m,void 0,"light"),b&&!w.dark&&og(P,w,b,void 0,"dark");let M={defaultColorScheme:g,...x,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:w,font:{...a4(x.typography),...x.font},spacing:T4(d.spacing)};Object.keys(M.colorSchemes).forEach(D=>{const E=M.colorSchemes[D].palette,N=$=>{const F=$.split("-"),R=F[1],B=F[2];return h($,E[R][B])};E.mode==="light"&&(ve(E.common,"background","#fff"),ve(E.common,"onBackground","#000")),E.mode==="dark"&&(ve(E.common,"background","#000"),ve(E.common,"onBackground","#fff"));function L($,F,R){if(P){let B;return $===li&&(B=`transparent ${((1-R)*100).toFixed(0)}%`),$===nn&&(B=`#000 ${(R*100).toFixed(0)}%`),$===on&&(B=`#fff ${(R*100).toFixed(0)}%`),`color-mix(in ${P}, ${F}, ${B})`}return $(F,R)}if(I4(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){ve(E.Alert,"errorColor",L(nn,E.error.light,.6)),ve(E.Alert,"infoColor",L(nn,E.info.light,.6)),ve(E.Alert,"successColor",L(nn,E.success.light,.6)),ve(E.Alert,"warningColor",L(nn,E.warning.light,.6)),ve(E.Alert,"errorFilledBg",N("palette-error-main")),ve(E.Alert,"infoFilledBg",N("palette-info-main")),ve(E.Alert,"successFilledBg",N("palette-success-main")),ve(E.Alert,"warningFilledBg",N("palette-warning-main")),ve(E.Alert,"errorFilledColor",zr(()=>E.getContrastText(E.error.main))),ve(E.Alert,"infoFilledColor",zr(()=>E.getContrastText(E.info.main))),ve(E.Alert,"successFilledColor",zr(()=>E.getContrastText(E.success.main))),ve(E.Alert,"warningFilledColor",zr(()=>E.getContrastText(E.warning.main))),ve(E.Alert,"errorStandardBg",L(on,E.error.light,.9)),ve(E.Alert,"infoStandardBg",L(on,E.info.light,.9)),ve(E.Alert,"successStandardBg",L(on,E.success.light,.9)),ve(E.Alert,"warningStandardBg",L(on,E.warning.light,.9)),ve(E.Alert,"errorIconColor",N("palette-error-main")),ve(E.Alert,"infoIconColor",N("palette-info-main")),ve(E.Alert,"successIconColor",N("palette-success-main")),ve(E.Alert,"warningIconColor",N("palette-warning-main")),ve(E.AppBar,"defaultBg",N("palette-grey-100")),ve(E.Avatar,"defaultBg",N("palette-grey-400")),ve(E.Button,"inheritContainedBg",N("palette-grey-300")),ve(E.Button,"inheritContainedHoverBg",N("palette-grey-A100")),ve(E.Chip,"defaultBorder",N("palette-grey-400")),ve(E.Chip,"defaultAvatarColor",N("palette-grey-700")),ve(E.Chip,"defaultIconColor",N("palette-grey-700")),ve(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ve(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ve(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ve(E.LinearProgress,"primaryBg",L(on,E.primary.main,.62)),ve(E.LinearProgress,"secondaryBg",L(on,E.secondary.main,.62)),ve(E.LinearProgress,"errorBg",L(on,E.error.main,.62)),ve(E.LinearProgress,"infoBg",L(on,E.info.main,.62)),ve(E.LinearProgress,"successBg",L(on,E.success.main,.62)),ve(E.LinearProgress,"warningBg",L(on,E.warning.main,.62)),ve(E.Skeleton,"bg",P?L(li,E.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),ve(E.Slider,"primaryTrack",L(on,E.primary.main,.62)),ve(E.Slider,"secondaryTrack",L(on,E.secondary.main,.62)),ve(E.Slider,"errorTrack",L(on,E.error.main,.62)),ve(E.Slider,"infoTrack",L(on,E.info.main,.62)),ve(E.Slider,"successTrack",L(on,E.success.main,.62)),ve(E.Slider,"warningTrack",L(on,E.warning.main,.62));const $=P?L(nn,E.background.default,.6825):hd(E.background.default,.8);ve(E.SnackbarContent,"bg",$),ve(E.SnackbarContent,"color",zr(()=>P?Jh.text.primary:E.getContrastText($))),ve(E.SpeedDialAction,"fabHoverBg",hd(E.background.paper,.15)),ve(E.StepConnector,"border",N("palette-grey-400")),ve(E.StepContent,"border",N("palette-grey-400")),ve(E.Switch,"defaultColor",N("palette-common-white")),ve(E.Switch,"defaultDisabledColor",N("palette-grey-100")),ve(E.Switch,"primaryDisabledColor",L(on,E.primary.main,.62)),ve(E.Switch,"secondaryDisabledColor",L(on,E.secondary.main,.62)),ve(E.Switch,"errorDisabledColor",L(on,E.error.main,.62)),ve(E.Switch,"infoDisabledColor",L(on,E.info.main,.62)),ve(E.Switch,"successDisabledColor",L(on,E.success.main,.62)),ve(E.Switch,"warningDisabledColor",L(on,E.warning.main,.62)),ve(E.TableCell,"border",L(on,L(li,E.divider,1),.88)),ve(E.Tooltip,"bg",L(li,E.grey[700],.92))}if(E.mode==="dark"){ve(E.Alert,"errorColor",L(on,E.error.light,.6)),ve(E.Alert,"infoColor",L(on,E.info.light,.6)),ve(E.Alert,"successColor",L(on,E.success.light,.6)),ve(E.Alert,"warningColor",L(on,E.warning.light,.6)),ve(E.Alert,"errorFilledBg",N("palette-error-dark")),ve(E.Alert,"infoFilledBg",N("palette-info-dark")),ve(E.Alert,"successFilledBg",N("palette-success-dark")),ve(E.Alert,"warningFilledBg",N("palette-warning-dark")),ve(E.Alert,"errorFilledColor",zr(()=>E.getContrastText(E.error.dark))),ve(E.Alert,"infoFilledColor",zr(()=>E.getContrastText(E.info.dark))),ve(E.Alert,"successFilledColor",zr(()=>E.getContrastText(E.success.dark))),ve(E.Alert,"warningFilledColor",zr(()=>E.getContrastText(E.warning.dark))),ve(E.Alert,"errorStandardBg",L(nn,E.error.light,.9)),ve(E.Alert,"infoStandardBg",L(nn,E.info.light,.9)),ve(E.Alert,"successStandardBg",L(nn,E.success.light,.9)),ve(E.Alert,"warningStandardBg",L(nn,E.warning.light,.9)),ve(E.Alert,"errorIconColor",N("palette-error-main")),ve(E.Alert,"infoIconColor",N("palette-info-main")),ve(E.Alert,"successIconColor",N("palette-success-main")),ve(E.Alert,"warningIconColor",N("palette-warning-main")),ve(E.AppBar,"defaultBg",N("palette-grey-900")),ve(E.AppBar,"darkBg",N("palette-background-paper")),ve(E.AppBar,"darkColor",N("palette-text-primary")),ve(E.Avatar,"defaultBg",N("palette-grey-600")),ve(E.Button,"inheritContainedBg",N("palette-grey-800")),ve(E.Button,"inheritContainedHoverBg",N("palette-grey-700")),ve(E.Chip,"defaultBorder",N("palette-grey-700")),ve(E.Chip,"defaultAvatarColor",N("palette-grey-300")),ve(E.Chip,"defaultIconColor",N("palette-grey-300")),ve(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ve(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ve(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ve(E.LinearProgress,"primaryBg",L(nn,E.primary.main,.5)),ve(E.LinearProgress,"secondaryBg",L(nn,E.secondary.main,.5)),ve(E.LinearProgress,"errorBg",L(nn,E.error.main,.5)),ve(E.LinearProgress,"infoBg",L(nn,E.info.main,.5)),ve(E.LinearProgress,"successBg",L(nn,E.success.main,.5)),ve(E.LinearProgress,"warningBg",L(nn,E.warning.main,.5)),ve(E.Skeleton,"bg",P?L(li,E.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),ve(E.Slider,"primaryTrack",L(nn,E.primary.main,.5)),ve(E.Slider,"secondaryTrack",L(nn,E.secondary.main,.5)),ve(E.Slider,"errorTrack",L(nn,E.error.main,.5)),ve(E.Slider,"infoTrack",L(nn,E.info.main,.5)),ve(E.Slider,"successTrack",L(nn,E.success.main,.5)),ve(E.Slider,"warningTrack",L(nn,E.warning.main,.5));const $=P?L(on,E.background.default,.985):hd(E.background.default,.98);ve(E.SnackbarContent,"bg",$),ve(E.SnackbarContent,"color",zr(()=>P?aC.text.primary:E.getContrastText($))),ve(E.SpeedDialAction,"fabHoverBg",hd(E.background.paper,.15)),ve(E.StepConnector,"border",N("palette-grey-600")),ve(E.StepContent,"border",N("palette-grey-600")),ve(E.Switch,"defaultColor",N("palette-grey-300")),ve(E.Switch,"defaultDisabledColor",N("palette-grey-600")),ve(E.Switch,"primaryDisabledColor",L(nn,E.primary.main,.55)),ve(E.Switch,"secondaryDisabledColor",L(nn,E.secondary.main,.55)),ve(E.Switch,"errorDisabledColor",L(nn,E.error.main,.55)),ve(E.Switch,"infoDisabledColor",L(nn,E.info.main,.55)),ve(E.Switch,"successDisabledColor",L(nn,E.success.main,.55)),ve(E.Switch,"warningDisabledColor",L(nn,E.warning.main,.55)),ve(E.TableCell,"border",L(nn,L(li,E.divider,1),.68)),ve(E.Tooltip,"bg",L(li,E.grey[700],.92))}rs(E.background,"default"),rs(E.background,"paper"),rs(E.common,"background"),rs(E.common,"onBackground"),rs(E,"divider"),Object.keys(E).forEach($=>{const F=E[$];$!=="tonalOffset"&&F&&typeof F=="object"&&(F.main&&ve(E[$],"mainChannel",Jl(rc(F.main))),F.light&&ve(E[$],"lightChannel",Jl(rc(F.light))),F.dark&&ve(E[$],"darkChannel",Jl(rc(F.dark))),F.contrastText&&ve(E[$],"contrastTextChannel",Jl(rc(F.contrastText))),$==="text"&&(rs(E[$],"primary"),rs(E[$],"secondary")),$==="action"&&(F.active&&rs(E[$],"active"),F.selected&&rs(E[$],"selected")))})}),M=t.reduce((D,E)=>so(D,E),M);const k={prefix:i,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:E4(M),enableContrastVars:a},{vars:T,generateThemeVars:O,generateStyleSheets:I}=L3(M,k);return M.vars=T,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([D,E])=>{M[D]=E}),M.generateThemeVars=O,M.generateStyleSheets=I,M.generateSpacing=function(){return kv(d.spacing,_h(this))},M.getColorSchemeSelector=A3(c),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=l,M.unstable_sxConfig={...Zl,...d?.unstable_sxConfig},M.unstable_sx=function(E){return Os({sx:E,theme:this})},M.toRuntimeSource=mC,M}function CC(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:eg({...n===!0?{}:n.palette,mode:t})})}function ci(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 tg(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const p=tg({...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},CC(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},CC(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),O4({...a,colorSchemes:u,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}function k4(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function D4(e){return parseFloat(e)}const yd=ci();function uo(){const e=Ql(yd);return process.env.NODE_ENV!=="production"&&f.useDebugValue(e),e[er]||e}function Rt({props:e,name:t}){return Bv({props:e,name:t,defaultTheme:yd,themeId:er})}function wC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const to=e=>wC(e)&&e!=="classes",Z=Vv({themeId:er,defaultTheme:yd,rootShouldForwardProp:to});function F4({theme:e,...t}){const n=er in e?e[er]:void 0;return v.jsx(oc,{...t,themeId:n?er:void 0,theme:n||e})}const vd={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:N4}=F3({themeId:er,theme:()=>ci({cssVariables:!0}),colorSchemeStorageKey:vd.colorSchemeStorageKey,modeStorageKey:vd.modeStorageKey,defaultColorScheme:{light:vd.defaultLightColorScheme,dark:vd.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:fC(e.palette,e.typography)};return t.unstable_sx=function(r){return Os({sx:r,theme:this})},t}}),R4=N4;function SC({theme:e,...t}){const n=f.useMemo(()=>{if(typeof e=="function")return e;const r=er in e?e[er]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?v.jsx(F4,{theme:n,...t}):v.jsx(R4,{theme:e,...t})}function rg(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function xC(e){return v.jsx(zh,{...e,defaultTheme:yd,themeId:er})}process.env.NODE_ENV!=="production"&&(xC.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function sg(e){return function(n){return v.jsx(xC,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function $4(){return jh}const He=P3;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Ke(e){return w3(e)}function L4(e){return ke("MuiSvgIcon",e)}Oe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const A4=e=>{const{color:t,fontSize:n,classes:r}=e,s={root:["root",t!=="inherit"&&`color${pe(t)}`,`fontSize${pe(n)}`]};return de(s,L4,r)},V4=Z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${pe(n.color)}`],t[`fontSize${pe(n.fontSize)}`]]}})(He(({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}}]}))),Cd=f.forwardRef(function(t,n){const r=Ke({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,y=f.isValidElement(s)&&s.type==="svg",m={...r,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:g,hasSvgAsChild:y},b={};d||(b.viewBox=g);const C=A4(m);return v.jsxs(V4,{as:l,className:ie(C.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...b,...h,...y&&s.props,ownerState:m,children:[y?s.props.children:s,p?v.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Cd.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}),Cd.muiName="SvgIcon";function vt(e,t){function n(r,s){return v.jsx(Cd,{"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=Cd.muiName,f.memo(f.forwardRef(n))}function vr(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 Qt(e){return e&&e.ownerDocument||document}function Cr(e){return Qt(e).defaultView||window}function _4(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 ig(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function ag(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 po(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 ht(()=>{t.current=e}),f.useRef((...n)=>(0,t.current)(...n)).current}function st(...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 B4(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function PC(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{B4(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=ie(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=ie(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 Bo(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function lg(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 cg(e,t){return cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},cg(e,t)}function ug(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cg(e,t)}function H4(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function z4(e,t){e.classList?e.classList.add(t):H4(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function EC(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function j4(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=EC(e.className,t):e.setAttribute("class",EC(e.className&&e.className.baseVal||"",t))}const IC={disabled:!1};var G4=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null,W4=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 wd=ge.createContext(null);var TC=function(t){return t.scrollTop},sc="unmounted",ui="exited",di="entering",Sa="entered",dg="exiting",Ho=(function(e){ug(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=ui,i.appearStatus=di):c=Sa:r.unmountOnExit||r.mountOnEnter?c=sc:c=ui,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===sc?{status:ui}: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!==di&&a!==Sa&&(i=di):(a===di||a===Sa)&&(i=dg)}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===di){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:xs.findDOMNode(this);a&&TC(a)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ui&&this.setState({status:sc})},n.performEnter=function(s){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:s,c=this.props.nodeRef?[l]:[xs.findDOMNode(this),l],u=c[0],d=c[1],p=this.getTimeouts(),g=l?p.appear:p.enter;if(!s&&!a||IC.disabled){this.safeSetState({status:Sa},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:di},function(){i.props.onEntering(u,d),i.onTransitionEnd(g,function(){i.safeSetState({status:Sa},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:xs.findDOMNode(this);if(!i||IC.disabled){this.safeSetState({status:ui},function(){s.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:dg},function(){s.props.onExiting(l),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:ui},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:xs.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===sc)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=lg(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ge.createElement(wd.Provider,{value:null},typeof a=="function"?a(s,l):ge.cloneElement(ge.Children.only(a),l))},t})(ge.Component);Ho.contextType=wd,Ho.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=G4;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 xa(){}Ho.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xa,onEntering:xa,onEntered:xa,onExit:xa,onExiting:xa,onExited:xa},Ho.UNMOUNTED=sc,Ho.EXITED=ui,Ho.ENTERING=di,Ho.ENTERED=Sa,Ho.EXITING=dg;var U4=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return z4(t,r)})},pg=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return j4(t,r)})},fg=(function(e){ug(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&&TC(s),l&&(this.appliedClasses[i][a]=l,U4(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&&pg(s,l),c&&pg(s,c),u&&pg(s,u)},n.render=function(){var s=this.props;s.classNames;var i=lg(s,["classNames"]);return ge.createElement(Ho,ha({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(ge.Component);fg.defaultProps={classNames:""},fg.propTypes=process.env.NODE_ENV!=="production"?ha({},Ho.propTypes,{classNames:W4,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}):{};function q4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hg(e,t){var n=function(i){return t&&ge.isValidElement(i)?t(i):i},r=Object.create(null);return e&&ge.Children.map(e,function(s){return s}).forEach(function(s){r[s.key]=n(s)}),r}function Y4(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 pi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function K4(e,t){return hg(e.children,function(n){return ge.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:pi(n,"appear",e),enter:pi(n,"enter",e),exit:pi(n,"exit",e)})})}function X4(e,t,n){var r=hg(e.children),s=Y4(t,r);return Object.keys(s).forEach(function(i){var a=s[i];if(ge.isValidElement(a)){var l=i in t,c=i in r,u=t[i],d=ge.isValidElement(u)&&!u.props.in;c&&(!l||d)?s[i]=ge.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:pi(a,"exit",e),enter:pi(a,"enter",e)}):!c&&l&&!d?s[i]=ge.cloneElement(a,{in:!1}):c&&l&&ge.isValidElement(u)&&(s[i]=ge.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:pi(a,"exit",e),enter:pi(a,"enter",e)}))}}),s}var Z4=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Q4={component:"div",childFactory:function(t){return t}},ic=(function(e){ug(t,e);function t(r,s){var i;i=e.call(this,r,s)||this;var a=i.handleExited.bind(q4(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?K4(s,l):X4(s,a,l),firstRender:!1}},n.handleExited=function(s,i){var a=hg(this.props.children);s.key in a||(s.props.onExited&&s.props.onExited(i),this.mounted&&this.setState(function(l){var c=ha({},l.children);return delete c[s.key],{children:c}}))},n.render=function(){var s=this.props,i=s.component,a=s.childFactory,l=lg(s,["component","childFactory"]),c=this.state.contextValue,u=Z4(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?ge.createElement(wd.Provider,{value:c},u):ge.createElement(wd.Provider,{value:c},ge.createElement(i,l,u))},t})(ge.Component);ic.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},ic.defaultProps=Q4;const MC={};function fo(e,t){const n=f.useRef(MC);return n.current===MC&&(n.current=e(t)),n}const J4=[];function Sd(e){f.useEffect(e,J4)}let OC=class Wk{static create(){return new Wk}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 On(){const e=fo(OC.create).current;return Sd(e.disposeEffect),e}function eF(e){const{prototype:t={}}=e;return!!t.isReactComponent}function tF(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"&&!eF(i)&&(l="Did you accidentally provide a plain function component 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 ac=Bo(o.elementType,tF),kC=e=>e.scrollTop;function Pa(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 Ea(e){return typeof e=="string"}function DC(e,t,n){return e===void 0||Ea(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Zn(e,t,n){return typeof e=="function"?e(t,n):e}function zo(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 FC(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 NC(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:s,className:i}=e;if(!t){const h=ie(n?.className,i,s?.className,r?.className),y={...n?.style,...s?.style,...r?.style},m={...n,...s,...r};return h.length>0&&(m.className=h),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const a=zo({...s,...r}),l=FC(r),c=FC(s),u=t(a),d=ie(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 Ve(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,y=Zn(p[e],s),{props:{component:m,...b},internalRef:C}=NC({className:n,...c,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:y}),w=st(C,y?.ref,t.ref),S=e==="root"?m||u:m,P=DC(h,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...b,...S&&!l&&{as:S},...S&&l&&{component:S},ref:w},s);return[h,P]}function nF(e){return ke("MuiCollapse",e)}Oe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const oF=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return de(r,nF,n)},rF=Z("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]}})(He(({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"}}]}))),sF=Z("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),iF=Z("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),xd=f.forwardRef(function(t,n){const r=Ke({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:y,onExited:m,onExiting:b,orientation:C="vertical",slots:w={},slotProps:S={},style:P,timeout:x=hC.standard,TransitionComponent:M=Ho,...k}=r,T={...r,orientation:C,collapsedSize:l},O=oF(T),I=uo(),D=On(),E=f.useRef(null),N=f.useRef(),L=typeof l=="number"?`${l}px`:l,$=C==="horizontal",F=$?"width":"height",R=f.useRef(null),B=st(n,R),_=se=>ae=>{if(se){const te=R.current;ae===void 0?se(te):se(te,ae)}},V=()=>E.current?E.current[$?"clientWidth":"clientHeight"]:0,A=_((se,ae)=>{E.current&&$&&(E.current.style.position="absolute"),se.style[F]=L,p&&p(se,ae)}),z=_((se,ae)=>{const te=V();E.current&&$&&(E.current.style.position="");const{duration:Q,easing:Ce}=Pa({style:P,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const le=I.transitions.getAutoHeightDuration(te);se.style.transitionDuration=`${le}ms`,N.current=le}else se.style.transitionDuration=typeof Q=="string"?Q:`${Q}ms`;se.style[F]=`${te}px`,se.style.transitionTimingFunction=Ce,h&&h(se,ae)}),G=_((se,ae)=>{se.style[F]="auto",g&&g(se,ae)}),U=_(se=>{se.style[F]=`${V()}px`,y&&y(se)}),X=_(m),Y=_(se=>{const ae=V(),{duration:te,easing:Q}=Pa({style:P,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const Ce=I.transitions.getAutoHeightDuration(ae);se.style.transitionDuration=`${Ce}ms`,N.current=Ce}else se.style.transitionDuration=typeof te=="string"?te:`${te}ms`;se.style[F]=L,se.style.transitionTimingFunction=Q,b&&b(se)}),ee=se=>{x==="auto"&&D.start(N.current||0,se),s&&s(R.current,se)},oe={slots:w,slotProps:S,component:c},[K,W]=Ve("root",{ref:B,className:ie(O.root,a),elementType:rF,externalForwardedProps:oe,ownerState:T,additionalProps:{style:{[$?"minWidth":"minHeight"]:L,...P}}}),[J,q]=Ve("wrapper",{ref:E,className:O.wrapper,elementType:sF,externalForwardedProps:oe,ownerState:T}),[ce,re]=Ve("wrapperInner",{className:O.wrapperInner,elementType:iF,externalForwardedProps:oe,ownerState:T});return v.jsx(M,{in:d,onEnter:A,onEntered:G,onEntering:z,onExit:U,onExited:X,onExiting:Y,addEndListener:ee,nodeRef:R,timeout:x==="auto"?null:x,...k,children:(se,{ownerState:ae,...te})=>{const Q={...T,state:se};return v.jsx(K,{...W,className:ie(W.className,{entered:O.entered,exited:!d&&L==="0px"&&O.hidden}[se]),ownerState:Q,...te,children:v.jsx(J,{...q,ownerState:Q,children:v.jsx(ce,{...re,ownerState:Q,children:i})})})}})});process.env.NODE_ENV!=="production"&&(xd.propTypes={addEndListener:o.func,children:o.node,classes:o.object,className:o.string,collapsedSize:o.oneOfType([o.number,o.string]),component:ac,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})])}),xd&&(xd.muiSupportAuto=!0);function aF(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 RC(e,t,n,r){const s=e[t];if(s==null||!Number.isInteger(s)){const i=aF(s);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function $C(e,t,n,r){return e[t]===void 0?null:RC(e,t,n,r)}function gg(){return null}$C.isRequired=RC,gg.isRequired=gg;const Ia=process.env.NODE_ENV==="production"?gg:$C;function lF(e){return ke("MuiPaper",e)}Oe("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 cF=e=>{const{square:t,elevation:n,variant:r,classes:s}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return de(i,lF,s)},uF=Z("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}`]]}})(He(({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)"}}]}))),wr=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPaper"}),s=uo(),{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=cF(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(uF,{as:a,ownerState:p,className:ie(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(${zn("#fff",ng(l))}, ${zn("#fff",ng(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(wr.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:Bo(Ia,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 At=o.oneOfType([o.func,o.object]);function Pd(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 Ed{static create(){return new Ed}static use(){const t=fo(Ed.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=pF(),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 dF(){return Ed.use()}function pF(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function LC(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=ie(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+i,left:-(a/2)+s},y=ie(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:y})})}process.env.NODE_ENV!=="production"&&(LC.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 sr=Oe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),mg=550,fF=80,hF=tr`
|
|
74
|
-
0% {
|
|
75
|
-
transform: scale(0);
|
|
76
|
-
opacity: 0.1;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
100% {
|
|
80
|
-
transform: scale(1);
|
|
81
|
-
opacity: 0.3;
|
|
82
|
-
}
|
|
83
|
-
`,gF=tr`
|
|
84
|
-
0% {
|
|
85
|
-
opacity: 1;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
100% {
|
|
89
|
-
opacity: 0;
|
|
90
|
-
}
|
|
91
|
-
`,mF=tr`
|
|
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
|
-
`,bF=Z("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yF=Z(LC,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
104
|
-
opacity: 0;
|
|
105
|
-
position: absolute;
|
|
106
|
-
|
|
107
|
-
&.${sr.rippleVisible} {
|
|
108
|
-
opacity: 0.3;
|
|
109
|
-
transform: scale(1);
|
|
110
|
-
animation-name: ${hF};
|
|
111
|
-
animation-duration: ${mg}ms;
|
|
112
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&.${sr.ripplePulsate} {
|
|
116
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
& .${sr.child} {
|
|
120
|
-
opacity: 1;
|
|
121
|
-
display: block;
|
|
122
|
-
width: 100%;
|
|
123
|
-
height: 100%;
|
|
124
|
-
border-radius: 50%;
|
|
125
|
-
background-color: currentColor;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
& .${sr.childLeaving} {
|
|
129
|
-
opacity: 0;
|
|
130
|
-
animation-name: ${gF};
|
|
131
|
-
animation-duration: ${mg}ms;
|
|
132
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
& .${sr.childPulsate} {
|
|
136
|
-
position: absolute;
|
|
137
|
-
/* @noflip */
|
|
138
|
-
left: 0px;
|
|
139
|
-
top: 0;
|
|
140
|
-
animation-name: ${mF};
|
|
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
|
-
`,AC=f.forwardRef(function(t,n){const r=Ke({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=On(),y=f.useRef(null),m=f.useRef(null),b=f.useCallback(P=>{const{pulsate:x,rippleX:M,rippleY:k,rippleSize:T,cb:O}=P;u(I=>[...I,v.jsx(yF,{classes:{ripple:ie(i.ripple,sr.ripple),rippleVisible:ie(i.rippleVisible,sr.rippleVisible),ripplePulsate:ie(i.ripplePulsate,sr.ripplePulsate),child:ie(i.child,sr.child),childLeaving:ie(i.childLeaving,sr.childLeaving),childPulsate:ie(i.childPulsate,sr.childPulsate)},timeout:mg,pulsate:x,rippleX:M,rippleY:k,rippleSize:T},d.current)]),d.current+=1,p.current=O},[i]),C=f.useCallback((P={},x={},M=()=>{})=>{const{pulsate:k=!1,center:T=s||x.pulsate,fakeElement:O=!1}=x;if(P?.type==="mousedown"&&g.current){g.current=!1;return}P?.type==="touchstart"&&(g.current=!0);const I=O?null:m.current,D=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let E,N,L;if(T||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)E=Math.round(D.width/2),N=Math.round(D.height/2);else{const{clientX:$,clientY:F}=P.touches&&P.touches.length>0?P.touches[0]:P;E=Math.round($-D.left),N=Math.round(F-D.top)}if(T)L=Math.sqrt((2*D.width**2+D.height**2)/3),L%2===0&&(L+=1);else{const $=Math.max(Math.abs((I?I.clientWidth:0)-E),E)*2+2,F=Math.max(Math.abs((I?I.clientHeight:0)-N),N)*2+2;L=Math.sqrt($**2+F**2)}P?.touches?y.current===null&&(y.current=()=>{b({pulsate:k,rippleX:E,rippleY:N,rippleSize:L,cb:M})},h.start(fF,()=>{y.current&&(y.current(),y.current=null)})):b({pulsate:k,rippleX:E,rippleY:N,rippleSize:L,cb:M})},[s,b,h]),w=f.useCallback(()=>{C({},{pulsate:!0})},[C]),S=f.useCallback((P,x)=>{if(h.clear(),P?.type==="touchend"&&y.current){y.current(),y.current=null,h.start(0,()=>{S(P,x)});return}y.current=null,u(M=>M.length>0?M.slice(1):M),p.current=x},[h]);return f.useImperativeHandle(n,()=>({pulsate:w,start:C,stop:S}),[w,C,S]),v.jsx(bF,{className:ie(sr.root,i.root,a),ref:m,...l,children:v.jsx(ic,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(AC.propTypes={center:o.bool,classes:o.object,className:o.string});function vF(e){return ke("MuiButtonBase",e)}const CF=Oe("MuiButtonBase",["root","disabled","focusVisible"]),wF=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:s}=e,a=de({root:["root",t&&"disabled",n&&"focusVisible"]},vF,s);return n&&r&&(a.root+=` ${r}`),a},SF=Z("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"},[`&.${CF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ir=f.forwardRef(function(t,n){const r=Ke({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:y="a",onBlur:m,onClick:b,onContextMenu:C,onDragLeave:w,onFocus:S,onFocusVisible:P,onKeyDown:x,onKeyUp:M,onMouseDown:k,onMouseLeave:T,onMouseUp:O,onTouchEnd:I,onTouchMove:D,onTouchStart:E,tabIndex:N=0,TouchRippleProps:L,touchRippleRef:$,type:F,...R}=r,B=f.useRef(null),_=dF(),V=st(_.ref,$),[A,z]=f.useState(!1);u&&A&&z(!1),f.useImperativeHandle(s,()=>({focusVisible:()=>{z(!0),B.current.focus()}}),[]);const G=_.shouldMount&&!d&&!u;f.useEffect(()=>{A&&g&&!d&&_.pulsate()},[d,g,A,_]);const U=ss(_,"start",k,p),X=ss(_,"stop",C,p),Y=ss(_,"stop",w,p),ee=ss(_,"stop",O,p),oe=ss(_,"stop",we=>{A&&we.preventDefault(),T&&T(we)},p),K=ss(_,"start",E,p),W=ss(_,"stop",I,p),J=ss(_,"stop",D,p),q=ss(_,"stop",we=>{Pd(we.target)||z(!1),m&&m(we)},!1),ce=fe(we=>{B.current||(B.current=we.currentTarget),Pd(we.target)&&(z(!0),P&&P(we)),S&&S(we)}),re=()=>{const we=B.current;return c&&c!=="button"&&!(we.tagName==="A"&&we.href)},se=fe(we=>{g&&!we.repeat&&A&&we.key===" "&&_.stop(we,()=>{_.start(we)}),we.target===we.currentTarget&&re()&&we.key===" "&&we.preventDefault(),x&&x(we),we.target===we.currentTarget&&re()&&we.key==="Enter"&&!u&&(we.preventDefault(),b&&b(we))}),ae=fe(we=>{g&&we.key===" "&&A&&!we.defaultPrevented&&_.stop(we,()=>{_.pulsate(we)}),M&&M(we),b&&we.target===we.currentTarget&&re()&&we.key===" "&&!we.defaultPrevented&&b(we)});let te=c;te==="button"&&(R.href||R.to)&&(te=y);const Q={};if(te==="button"){const we=!!R.formAction;Q.type=F===void 0&&!we?"button":F,Q.disabled=u}else!R.href&&!R.to&&(Q.role="button"),u&&(Q["aria-disabled"]=u);const Ce=st(n,B),le={...r,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:g,tabIndex:N,focusVisible:A},xe=wF(le);return v.jsxs(SF,{as:te,className:ie(xe.root,l),ownerState:le,onBlur:q,onClick:b,onContextMenu:X,onFocus:ce,onKeyDown:se,onKeyUp:ae,onMouseDown:U,onMouseLeave:oe,onMouseUp:ee,onDragLeave:Y,onTouchEnd:W,onTouchMove:J,onTouchStart:K,ref:Ce,tabIndex:u?-1:N,type:F,...Q,...R,children:[a,G?v.jsx(AC,{ref:V,center:i,...L}):null]})});function ss(e,t,n,r=!1){return fe(s=>(n&&n(s),r||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(ir.propTypes={action:At,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:ac,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 xF(e){return typeof e.main=="string"}function PF(e,t=[]){if(!xF(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function rn(e=[]){return([,t])=>t&&PF(t,e)}function EF(e){return ke("MuiAlert",e)}const VC=Oe("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 IF(e){return ke("MuiCircularProgress",e)}Oe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Sr=44,bg=tr`
|
|
147
|
-
0% {
|
|
148
|
-
transform: rotate(0deg);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
100% {
|
|
152
|
-
transform: rotate(360deg);
|
|
153
|
-
}
|
|
154
|
-
`,yg=tr`
|
|
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
|
-
`,TF=typeof bg!="string"?Es`
|
|
170
|
-
animation: ${bg} 1.4s linear infinite;
|
|
171
|
-
`:null,MF=typeof yg!="string"?Es`
|
|
172
|
-
animation: ${yg} 1.4s ease-in-out infinite;
|
|
173
|
-
`:null,OF=e=>{const{classes:t,variant:n,color:r,disableShrink:s}=e,i={root:["root",n,`color${pe(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${pe(n)}`,s&&"circleDisableShrink"]};return de(i,IF,t)},kF=Z("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${pe(n.color)}`]]}})(He(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:TF||{animation:`${bg} 1.4s linear infinite`}},...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),DF=Z("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),FF=Z("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${pe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(He(({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:MF||{animation:`${yg} 1.4s ease-in-out infinite`}}]}))),NF=Z("circle",{name:"MuiCircularProgress",slot:"Track"})(He(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),fi=f.forwardRef(function(t,n){const r=Ke({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,y={...r,color:i,disableShrink:a,size:c,thickness:d,value:p,variant:g,enableTrackSlot:l},m=OF(y),b={},C={},w={};if(g==="determinate"){const S=2*Math.PI*((Sr-d)/2);b.strokeDasharray=S.toFixed(3),w["aria-valuenow"]=Math.round(p),b.strokeDashoffset=`${((100-p)/100*S).toFixed(3)}px`,C.transform="rotate(-90deg)"}return v.jsx(kF,{className:ie(m.root,s),style:{width:c,height:c,...C,...u},ownerState:y,ref:n,role:"progressbar",...w,...h,children:v.jsxs(DF,{className:m.svg,ownerState:y,viewBox:`${Sr/2} ${Sr/2} ${Sr} ${Sr}`,children:[l?v.jsx(NF,{className:m.track,ownerState:y,cx:Sr,cy:Sr,r:(Sr-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,v.jsx(FF,{className:m.circle,style:b,ownerState:y,cx:Sr,cy:Sr,r:(Sr-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(fi.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:Bo(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 RF(e){return ke("MuiIconButton",e)}const vg=Oe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),$F=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${pe(r)}`,s&&`edge${pe(s)}`,`size${pe(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return de(l,RF,t)},LF=Z(ir,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${pe(n.color)}`],n.edge&&t[`edge${pe(n.edge)}`],t[`size${pe(n.size)}`]]}})(He(({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}}]})),He(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(rn()).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)}}],[`&.${vg.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${vg.loading}`]:{color:"transparent"}}))),AF=Z("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"}}]})),kn=f.forwardRef(function(t,n){const r=Ke({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,...y}=r,m=dt(p),b=h??v.jsx(fi,{"aria-labelledby":m,color:"inherit",size:16}),C={...r,edge:s,color:l,disabled:c,disableFocusRipple:u,loading:g,loadingIndicator:b,size:d},w=$F(C);return v.jsxs(LF,{id:g?m:p,className:ie(w.root,a),centerRipple:!0,focusRipple:!u,disabled:c||g,ref:n,...y,ownerState:C,children:[typeof g=="boolean"&&v.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:v.jsx(AF,{className:w.loadingIndicator,ownerState:C,children:g&&b})}),i]})});process.env.NODE_ENV!=="production"&&(kn.propTypes={children:Bo(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 VF=vt(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"),_F=vt(v.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),BF=vt(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"),HF=vt(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"),_C=vt(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"),zF=e=>{const{variant:t,color:n,severity:r,classes:s}=e,i={root:["root",`color${pe(n||r)}`,`${t}${pe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return de(i,EF,s)},jF=Z(wr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${pe(n.color||n.severity)}`]]}})(He(({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(rn(["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),[`& .${VC.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(rn(["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}`,[`& .${VC.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(rn(["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)}}}))]}})),GF=Z("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),WF=Z("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),UF=Z("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),BC={success:v.jsx(VF,{fontSize:"inherit"}),warning:v.jsx(_F,{fontSize:"inherit"}),error:v.jsx(BF,{fontSize:"inherit"}),info:v.jsx(HF,{fontSize:"inherit"})},Cg=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAlert"}),{action:s,children:i,className:a,closeText:l="Close",color:c,components:u={},componentsProps:d={},icon:p,iconMapping:g=BC,onClose:h,role:y="alert",severity:m="success",slotProps:b={},slots:C={},variant:w="standard",...S}=r,P={...r,color:c,severity:m,variant:w,colorSeverity:c||m},x=zF(P),M={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...C},slotProps:{...d,...b}},[k,T]=Ve("root",{ref:n,shouldForwardComponentProp:!0,className:ie(x.root,a),elementType:jF,externalForwardedProps:{...M,...S},ownerState:P,additionalProps:{role:y,elevation:0}}),[O,I]=Ve("icon",{className:x.icon,elementType:GF,externalForwardedProps:M,ownerState:P}),[D,E]=Ve("message",{className:x.message,elementType:WF,externalForwardedProps:M,ownerState:P}),[N,L]=Ve("action",{className:x.action,elementType:UF,externalForwardedProps:M,ownerState:P}),[$,F]=Ve("closeButton",{elementType:kn,externalForwardedProps:M,ownerState:P}),[R,B]=Ve("closeIcon",{elementType:_C,externalForwardedProps:M,ownerState:P});return v.jsxs(k,{...T,children:[p!==!1?v.jsx(O,{...I,children:p||g[m]||BC[m]}):null,v.jsx(D,{...E,children:i}),s!=null?v.jsx(N,{...L,children:s}):null,s==null&&h?v.jsx(N,{...L,children:v.jsx($,{size:"small","aria-label":l,title:l,color:"inherit",onClick:h,...F,children:v.jsx(R,{fontSize:"small",...B})})}):null]})});process.env.NODE_ENV!=="production"&&(Cg.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 qF(e){return ke("MuiTypography",e)}const Id=Oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),YF={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},KF=$4(),XF=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:s,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${pe(t)}`,n&&"gutterBottom",r&&"noWrap",s&&"paragraph"]};return de(l,qF,a)},ZF=Z("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${pe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(He(({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(rn()).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${pe(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}}]}))),HC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},$t=f.forwardRef(function(t,n){const{color:r,...s}=Ke({props:t,name:"MuiTypography"}),i=!YF[r],a=KF({...s,...i&&{color:r}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:g=!1,variant:h="body1",variantMapping:y=HC,...m}=a,b={...a,align:l,color:r,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:g,variant:h,variantMapping:y},C=u||(g?"p":y[h]||HC[h])||"span",w=XF(b);return v.jsx(ZF,{as:C,ref:n,className:ie(w.root,c),...m,ownerState:b,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...m.style}})});process.env.NODE_ENV!=="production"&&($t.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 QF(e){return ke("MuiAlertTitle",e)}Oe("MuiAlertTitle",["root"]);const JF=e=>{const{classes:t}=e;return de({root:["root"]},QF,t)},e6=Z($t,{name:"MuiAlertTitle",slot:"Root"})(He(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),zC=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAlertTitle"}),{className:s,...i}=r,a=r,l=JF(a);return v.jsx(e6,{gutterBottom:!0,component:"div",ownerState:a,ref:n,className:ie(l.root,s),...i})});process.env.NODE_ENV!=="production"&&(zC.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 wg(e){const t=f.useRef({});return f.useEffect(()=>{t.current=e}),t.current}function jC({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 GC(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function t6(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=GC(d));const p=d?l.filter(g=>{let h=(i||u)(g);return n&&(h=h.toLowerCase()),t&&(h=GC(h)),s==="start"?h.startsWith(d):h.includes(d)}):l;return typeof r=="number"?p.slice(0,r):p}}const n6=t6(),WC=5,o6=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),r6=[];function UC(e,t,n,r){if(t||e==null||r)return"";const s=n(e);return typeof s=="string"?s:""}function s6(e){const{unstable_isActiveElementInListbox:t=o6,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?r6:null,disableClearable:p=!1,disableCloseOnSelect:g=!1,disabled:h,disabledItemsFocusable:y=!1,disableListWrap:m=!1,filterOptions:b=n6,filterSelectedOptions:C=!1,freeSolo:w=!1,getOptionDisabled:S,getOptionKey:P,getOptionLabel:x=Se=>Se.label??Se,groupBy:M,handleHomeEndKeys:k=!e.freeSolo,id:T,includeInputInList:O=!1,inputValue:I,isOptionEqualToValue:D=(Se,ye)=>Se===ye,multiple:E=!1,onChange:N,onClose:L,onHighlightChange:$,onInputChange:F,onOpen:R,open:B,openOnFocus:_=!1,options:V,readOnly:A=!1,renderValue:z,selectOnFocus:G=!e.freeSolo,value:U}=e,X=dt(T);let Y=x;Y=Se=>{const ye=x(Se);if(typeof ye!="string"){if(process.env.NODE_ENV!=="production"){const Be=ye===void 0?"undefined":`${typeof ye} (${ye})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${Be} instead of a string for ${JSON.stringify(Se)}.`)}return String(ye)}return ye};const ee=f.useRef(!1),oe=f.useRef(!0),K=f.useRef(null),W=f.useRef(null),[J,q]=f.useState(null),[ce,re]=f.useState(-1),se=s?0:-1,ae=f.useRef(se),te=f.useRef(UC(d??U,E,Y)).current,[Q,Ce]=po({controlled:U,default:d,name:u}),[le,xe]=po({controlled:I,default:te,name:u,state:"inputValue"}),[we,Ue]=f.useState(!1),$e=f.useCallback((Se,ye,Be)=>{if(!(E?Q.length<ye.length:ye!==null)&&!l)return;const ft=UC(ye,E,Y,z);le!==ft&&(xe(ft),F&&F(Se,ft,Be))},[Y,le,E,F,xe,l,Q,z]),[Ze,Le]=po({controlled:B,default:!1,name:u,state:"open"}),[Qe,Je]=f.useState(!0),be=!E&&Q!=null&&le===Y(Q),Ee=Ze&&!A,me=Ee?b(V.filter(Se=>!(C&&(E?Q:[Q]).some(ye=>ye!==null&&D(Se,ye)))),{inputValue:be&&Qe?"":le,getOptionLabel:Y}):[],Me=wg({filteredOptions:me,value:Q,inputValue:le});f.useEffect(()=>{const Se=Q!==Me.value;we&&!Se||w&&!Se||$e(null,Q,"reset")},[Q,$e,we,Me.value,w]);const Ae=Ze&&me.length>0&&!A,Ge=fe(Se=>{if(Se===-1)K.current.focus();else{const ye=z?"data-item-index":"data-tag-index";J.querySelector(`[${ye}="${Se}"]`).focus()}});f.useEffect(()=>{E&&ce>Q.length-1&&(re(-1),Ge(-1))},[Q,E,ce,Ge]);function lt(Se,ye){if(!W.current||Se<0||Se>=me.length)return-1;let Be=Se;for(;;){const ut=W.current.querySelector(`[data-option-index="${Be}"]`),ft=y?!1:!ut||ut.disabled||ut.getAttribute("aria-disabled")==="true";if(ut&&ut.hasAttribute("tabindex")&&!ft)return Be;if(ye==="next"?Be=(Be+1)%me.length:Be=(Be-1+me.length)%me.length,Be===Se)return-1}}const Dt=fe(({event:Se,index:ye,reason:Be})=>{if(ae.current=ye,ye===-1?K.current.removeAttribute("aria-activedescendant"):K.current.setAttribute("aria-activedescendant",`${X}-option-${ye}`),$&&["mouse","keyboard","touch"].includes(Be)&&$(Se,ye===-1?null:me[ye],Be),!W.current)return;const ut=W.current.querySelector(`[role="option"].${n}-focused`);ut&&(ut.classList.remove(`${n}-focused`),ut.classList.remove(`${n}-focusVisible`));let ft=W.current;if(W.current.getAttribute("role")!=="listbox"&&(ft=W.current.parentElement.querySelector('[role="listbox"]')),!ft)return;if(ye===-1){ft.scrollTop=0;return}const Sn=W.current.querySelector(`[data-option-index="${ye}"]`);if(Sn&&(Sn.classList.add(`${n}-focused`),Be==="keyboard"&&Sn.classList.add(`${n}-focusVisible`),ft.scrollHeight>ft.clientHeight&&Be!=="mouse"&&Be!=="touch")){const Bn=Sn,Ao=ft.clientHeight+ft.scrollTop,Vl=Bn.offsetTop+Bn.offsetHeight;Vl>Ao?ft.scrollTop=Vl-ft.clientHeight:Bn.offsetTop-Bn.offsetHeight*(M?1.3:0)<ft.scrollTop&&(ft.scrollTop=Bn.offsetTop-Bn.offsetHeight*(M?1.3:0))}}),qe=fe(({event:Se,diff:ye,direction:Be="next",reason:ut})=>{if(!Ee)return;const Sn=lt((()=>{const Bn=me.length-1;if(ye==="reset")return se;if(ye==="start")return 0;if(ye==="end")return Bn;const Ao=ae.current+ye;return Ao<0?Ao===-1&&O?-1:m&&ae.current!==-1||Math.abs(ye)>1?0:Bn:Ao>Bn?Ao===Bn+1&&O?-1:m||Math.abs(ye)>1?Bn:0:Ao})(),Be);if(Dt({index:Sn,reason:ut,event:Se}),r&&ye!=="reset")if(Sn===-1)K.current.value=le;else{const Bn=Y(me[Sn]);K.current.value=Bn,Bn.toLowerCase().indexOf(le.toLowerCase())===0&&le.length>0&&K.current.setSelectionRange(le.length,Bn.length)}}),Fe=!jC({array1:Me.filteredOptions,array2:me,parser:Y}),Ye=()=>{const Se=(ye,Be)=>{const ut=ye?Y(ye):"",ft=Be?Y(Be):"";return ut===ft};if(ae.current!==-1&&!jC({array1:Me.filteredOptions,array2:me,parser:Y})&&Me.inputValue===le&&(E?Q.length===Me.value.length&&Me.value.every((ye,Be)=>Y(Q[Be])===Y(ye)):Se(Me.value,Q))){const ye=Me.filteredOptions[ae.current];if(ye)return me.findIndex(Be=>Y(Be)===Y(ye))}return-1},pt=f.useCallback(()=>{if(!Ee)return;const Se=Ye();if(Se!==-1){ae.current=Se;return}const ye=E?Q[0]:Q;if(me.length===0||ye==null){qe({diff:"reset"});return}if(W.current){if(ye!=null){const Be=me[ae.current];if(E&&Be&&Q.findIndex(ft=>D(Be,ft))!==-1)return;const ut=me.findIndex(ft=>D(ft,ye));ut===-1?qe({diff:"reset"}):Dt({index:ut});return}if(ae.current>=me.length-1){Dt({index:me.length-1});return}Dt({index:ae.current})}},[me.length,E?!1:Q,qe,Dt,Ee,le,E]),qt=fe(Se=>{ig(W,Se),Se&&pt()});process.env.NODE_ENV!=="production"&&f.useEffect(()=>{(!K.current||K.current.nodeName!=="INPUT")&&(K.current&&K.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 ${K.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(()=>{(Fe||Ee)&&pt()},[pt,Fe,Ee]);const kt=Se=>{Ze||(Le(!0),Je(!0),R&&R(Se))},Yn=(Se,ye)=>{Ze&&(Le(!1),L&&L(Se,ye))},_n=(Se,ye,Be,ut)=>{if(E){if(Q.length===ye.length&&Q.every((ft,Sn)=>ft===ye[Sn]))return}else if(Q===ye)return;N&&N(Se,ye,Be,ut),Ce(ye)},Kn=f.useRef(!1),Xn=(Se,ye,Be="selectOption",ut="options")=>{let ft=Be,Sn=ye;if(E){if(Sn=Array.isArray(Q)?Q.slice():[],process.env.NODE_ENV!=="production"){const Ao=Sn.filter(Vl=>D(ye,Vl));Ao.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 ${Ao.length} matches.`].join(`
|
|
177
|
-
`))}const Bn=Sn.findIndex(Ao=>D(ye,Ao));Bn===-1?Sn.push(ye):ut!=="freeSolo"&&(Sn.splice(Bn,1),ft="removeOption")}$e(Se,Sn,ft),_n(Se,Sn,ft,{option:ye}),!g&&(!Se||!Se.ctrlKey&&!Se.metaKey)&&Yn(Se,ft),(a===!0||a==="touch"&&Kn.current||a==="mouse"&&!Kn.current)&&K.current.blur()};function je(Se,ye){if(Se===-1)return-1;let Be=Se;for(;;){if(ye==="next"&&Be===Q.length||ye==="previous"&&Be===-1)return-1;const ut=z?"data-item-index":"data-tag-index",ft=J.querySelector(`[${ut}="${Be}"]`);if(!ft||!ft.hasAttribute("tabindex")||ft.disabled||ft.getAttribute("aria-disabled")==="true")Be+=ye==="next"?1:-1;else return Be}}const Lt=(Se,ye)=>{if(!E)return;le===""&&Yn(Se,"toggleInput");let Be=ce;ce===-1?le===""&&ye==="previous"&&(Be=Q.length-1):(Be+=ye==="next"?1:-1,Be<0&&(Be=0),Be===Q.length&&(Be=-1)),Be=je(Be,ye),re(Be),Ge(Be)},_e=Se=>{ee.current=!0,xe(""),F&&F(Se,"","clear"),_n(Se,E?[]:null,"clear")},et=Se=>ye=>{if(Se.onKeyDown&&Se.onKeyDown(ye),!ye.defaultMuiPrevented&&(ce!==-1&&!["ArrowLeft","ArrowRight"].includes(ye.key)&&(re(-1),Ge(-1)),ye.which!==229))switch(ye.key){case"Home":Ee&&k&&(ye.preventDefault(),qe({diff:"start",direction:"next",reason:"keyboard",event:ye}));break;case"End":Ee&&k&&(ye.preventDefault(),qe({diff:"end",direction:"previous",reason:"keyboard",event:ye}));break;case"PageUp":ye.preventDefault(),qe({diff:-WC,direction:"previous",reason:"keyboard",event:ye}),kt(ye);break;case"PageDown":ye.preventDefault(),qe({diff:WC,direction:"next",reason:"keyboard",event:ye}),kt(ye);break;case"ArrowDown":ye.preventDefault(),qe({diff:1,direction:"next",reason:"keyboard",event:ye}),kt(ye);break;case"ArrowUp":ye.preventDefault(),qe({diff:-1,direction:"previous",reason:"keyboard",event:ye}),kt(ye);break;case"ArrowLeft":!E&&z&&Q!=null?(re(0),Ge(0)):Lt(ye,"previous");break;case"ArrowRight":!E&&z?(re(-1),Ge(-1)):Lt(ye,"next");break;case"Enter":if(ae.current!==-1&&Ee){const Be=me[ae.current],ut=S?S(Be):!1;if(ye.preventDefault(),ut)return;Xn(ye,Be,"selectOption"),r&&K.current.setSelectionRange(K.current.value.length,K.current.value.length)}else w&&le!==""&&be===!1&&(E&&ye.preventDefault(),Xn(ye,le,"createOption","freeSolo"));break;case"Escape":Ee?(ye.preventDefault(),ye.stopPropagation(),Yn(ye,"escape")):c&&(le!==""||E&&Q.length>0||z)&&(ye.preventDefault(),ye.stopPropagation(),_e(ye));break;case"Backspace":if(E&&!A&&le===""&&Q.length>0){const Be=ce===-1?Q.length-1:ce,ut=Q.slice();ut.splice(Be,1),_n(ye,ut,"removeOption",{option:Q[Be]})}!E&&z&&!A&&(Ce(null),re(-1),Ge(-1));break;case"Delete":if(E&&!A&&le===""&&Q.length>0&&ce!==-1){const Be=ce,ut=Q.slice();ut.splice(Be,1),_n(ye,ut,"removeOption",{option:Q[Be]})}!E&&z&&!A&&(Ce(null),re(-1),Ge(-1));break}},St=Se=>{Ue(!0),ce!==-1&&(re(-1),Ge(-1)),_&&!ee.current&&kt(Se)},Tt=Se=>{if(t(W)){K.current.focus();return}Ue(!1),oe.current=!0,ee.current=!1,i&&ae.current!==-1&&Ee?Xn(Se,me[ae.current],"blur"):i&&w&&le!==""?Xn(Se,le,"blur","freeSolo"):l&&$e(Se,Q,"blur"),Yn(Se,"blur")},sn=Se=>{const ye=Se.target.value;le!==ye&&(xe(ye),Je(!1),F&&F(Se,ye,"input")),ye===""?!p&&!E&&_n(Se,null,"clear"):kt(Se)},co=Se=>{const ye=Number(Se.currentTarget.getAttribute("data-option-index"));ae.current!==ye&&Dt({event:Se,index:ye,reason:"mouse"})},Po=Se=>{Dt({event:Se,index:Number(Se.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Kn.current=!0},ct=Se=>{const ye=Number(Se.currentTarget.getAttribute("data-option-index"));Xn(Se,me[ye],"selectOption"),Kn.current=!1},Bt=Se=>ye=>{const Be=Q.slice();Be.splice(Se,1),_n(ye,Be,"removeOption",{option:Q[Se]})},tn=Se=>{_n(Se,null,"removeOption",{option:Q})},Ft=Se=>{Ze?Yn(Se,"toggleInput"):kt(Se)},an=Se=>{Se.currentTarget.contains(Se.target)&&Se.target.getAttribute("id")!==X&&Se.preventDefault()},Lo=Se=>{Se.currentTarget.contains(Se.target)&&(K.current.focus(),G&&oe.current&&K.current.selectionEnd-K.current.selectionStart===0&&K.current.select(),oe.current=!1)},aa=Se=>{!h&&(le===""||!Ze)&&Ft(Se)};let Ss=w&&le.length>0;Ss=Ss||(E?Q.length>0:Q!==null);let la=me;if(M){const Se=new Map;let ye=!1;la=me.reduce((Be,ut,ft)=>{const Sn=M(ut);return Be.length>0&&Be[Be.length-1].group===Sn?Be[Be.length-1].options.push(ut):(process.env.NODE_ENV!=="production"&&(Se.get(Sn)&&!ye&&(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`."),ye=!0),Se.set(Sn,!0)),Be.push({key:ft,index:ft,group:Sn,options:[ut]})),Be},[])}return h&&we&&Tt(),{getRootProps:(Se={})=>({...Se,onKeyDown:et(Se),onMouseDown:an,onClick:Lo}),getInputLabelProps:()=>({id:`${X}-label`,htmlFor:X}),getInputProps:()=>({id:X,value:le,onBlur:Tt,onFocus:St,onChange:sn,onMouseDown:aa,"aria-activedescendant":Ee?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ae?`${X}-listbox`:void 0,"aria-expanded":Ae,autoComplete:"off",ref:K,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:_e}),getItemProps:({index:Se=0}={})=>({...E&&{key:Se},...z?{"data-item-index":Se}:{"data-tag-index":Se},tabIndex:-1,...!A&&{onDelete:E?Bt(Se):tn}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ft}),getTagProps:({index:Se})=>({key:Se,"data-tag-index":Se,tabIndex:-1,...!A&&{onDelete:Bt(Se)}}),getListboxProps:()=>({role:"listbox",id:`${X}-listbox`,"aria-labelledby":`${X}-label`,ref:qt,onMouseDown:Se=>{Se.preventDefault()}}),getOptionProps:({index:Se,option:ye})=>{const Be=(E?Q:[Q]).some(ft=>ft!=null&&D(ye,ft)),ut=S?S(ye):!1;return{key:P?.(ye)??Y(ye),tabIndex:-1,role:"option",id:`${X}-option-${Se}`,onMouseMove:co,onClick:ct,onTouchStart:Po,"data-option-index":Se,"aria-disabled":ut,"aria-selected":Be}},id:X,inputValue:le,value:Q,dirty:Ss,expanded:Ee&&J,popupOpen:Ee,focused:we||ce!==-1,anchorEl:J,setAnchorEl:q,focusedItem:ce,focusedTag:ce,groupedOptions:la}}function ar(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 To="top",lr="bottom",cr="right",Mo="left",Sg="auto",lc=[To,lr,cr,Mo],Ta="start",cc="end",i6="clippingParents",qC="viewport",uc="popper",a6="reference",YC=lc.reduce(function(e,t){return e.concat([t+"-"+Ta,t+"-"+cc])},[]),KC=[].concat(lc,[Sg]).reduce(function(e,t){return e.concat([t,t+"-"+Ta,t+"-"+cc])},[]),l6="beforeRead",c6="read",u6="afterRead",d6="beforeMain",p6="main",f6="afterMain",h6="beforeWrite",g6="write",m6="afterWrite",b6=[l6,c6,u6,d6,p6,f6,h6,g6,m6];function jr(e){return e?(e.nodeName||"").toLowerCase():null}function jo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function hi(e){var t=jo(e).Element;return e instanceof t||e instanceof Element}function ur(e){var t=jo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xg(e){if(typeof ShadowRoot>"u")return!1;var t=jo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function y6(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];!ur(i)||!jr(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 v6(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},{});!ur(s)||!jr(s)||(Object.assign(s.style,l),Object.keys(i).forEach(function(c){s.removeAttribute(c)}))})}}const C6={name:"applyStyles",enabled:!0,phase:"write",fn:y6,effect:v6,requires:["computeStyles"]};function Gr(e){return e.split("-")[0]}var gi=Math.max,Td=Math.min,Ma=Math.round;function Pg(){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 XC(){return!/^((?!chrome|android).)*safari/i.test(Pg())}function Oa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,i=1;t&&ur(e)&&(s=e.offsetWidth>0&&Ma(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ma(r.height)/e.offsetHeight||1);var a=hi(e)?jo(e):window,l=a.visualViewport,c=!XC()&&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 Eg(e){var t=Oa(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 ZC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function is(e){return jo(e).getComputedStyle(e)}function w6(e){return["table","td","th"].indexOf(jr(e))>=0}function Ds(e){return((hi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Md(e){return jr(e)==="html"?e:e.assignedSlot||e.parentNode||(xg(e)?e.host:null)||Ds(e)}function QC(e){return!ur(e)||is(e).position==="fixed"?null:e.offsetParent}function S6(e){var t=/firefox/i.test(Pg()),n=/Trident/i.test(Pg());if(n&&ur(e)){var r=is(e);if(r.position==="fixed")return null}var s=Md(e);for(xg(s)&&(s=s.host);ur(s)&&["html","body"].indexOf(jr(s))<0;){var i=is(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 dc(e){for(var t=jo(e),n=QC(e);n&&w6(n)&&is(n).position==="static";)n=QC(n);return n&&(jr(n)==="html"||jr(n)==="body"&&is(n).position==="static")?t:n||S6(e)||t}function Ig(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pc(e,t,n){return gi(e,Td(t,n))}function x6(e,t,n){var r=pc(e,t,n);return r>n?n:r}function JC(){return{top:0,right:0,bottom:0,left:0}}function ew(e){return Object.assign({},JC(),e)}function tw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var P6=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ew(typeof t!="number"?t:tw(t,lc))};function E6(e){var t,n=e.state,r=e.name,s=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Gr(n.placement),c=Ig(l),u=[Mo,cr].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var p=P6(s.padding,n),g=Eg(i),h=c==="y"?To:Mo,y=c==="y"?lr:cr,m=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],b=a[c]-n.rects.reference[c],C=dc(i),w=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,S=m/2-b/2,P=p[h],x=w-g[d]-p[y],M=w/2-g[d]/2+S,k=pc(P,M,x),T=c;n.modifiersData[r]=(t={},t[T]=k,t.centerOffset=k-M,t)}}function I6(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)||ZC(t.elements.popper,s)&&(t.elements.arrow=s))}const T6={name:"arrow",enabled:!0,phase:"main",fn:E6,effect:I6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ka(e){return e.split("-")[1]}var M6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function O6(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:Ma(n*s)/s||0,y:Ma(r*s)/s||0}}function nw(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,y=a.y,m=y===void 0?0:y,b=typeof d=="function"?d({x:h,y:m}):{x:h,y:m};h=b.x,m=b.y;var C=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Mo,P=To,x=window;if(u){var M=dc(n),k="clientHeight",T="clientWidth";if(M===jo(n)&&(M=Ds(n),is(M).position!=="static"&&l==="absolute"&&(k="scrollHeight",T="scrollWidth")),M=M,s===To||(s===Mo||s===cr)&&i===cc){P=lr;var O=p&&M===x&&x.visualViewport?x.visualViewport.height:M[k];m-=O-r.height,m*=c?1:-1}if(s===Mo||(s===To||s===lr)&&i===cc){S=cr;var I=p&&M===x&&x.visualViewport?x.visualViewport.width:M[T];h-=I-r.width,h*=c?1:-1}}var D=Object.assign({position:l},u&&M6),E=d===!0?O6({x:h,y:m},jo(n)):{x:h,y:m};if(h=E.x,m=E.y,c){var N;return Object.assign({},D,(N={},N[P]=w?"0":"",N[S]=C?"0":"",N.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",N))}return Object.assign({},D,(t={},t[P]=w?m+"px":"",t[S]=C?h+"px":"",t.transform="",t))}function k6(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:Gr(t.placement),variation:ka(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,nw(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,nw(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 D6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:k6,data:{}};var Od={passive:!0};function F6(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=jo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Od)}),l&&c.addEventListener("resize",n.update,Od),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Od)}),l&&c.removeEventListener("resize",n.update,Od)}}const N6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:F6,data:{}};var R6={left:"right",right:"left",bottom:"top",top:"bottom"};function kd(e){return e.replace(/left|right|bottom|top/g,function(t){return R6[t]})}var $6={start:"end",end:"start"};function ow(e){return e.replace(/start|end/g,function(t){return $6[t]})}function Tg(e){var t=jo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Mg(e){return Oa(Ds(e)).left+Tg(e).scrollLeft}function L6(e,t){var n=jo(e),r=Ds(e),s=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;var u=XC();(u||!u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l+Mg(e),y:c}}function A6(e){var t,n=Ds(e),r=Tg(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=gi(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=gi(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-r.scrollLeft+Mg(e),c=-r.scrollTop;return is(s||n).direction==="rtl"&&(l+=gi(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function Og(e){var t=is(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function rw(e){return["html","body","#document"].indexOf(jr(e))>=0?e.ownerDocument.body:ur(e)&&Og(e)?e:rw(Md(e))}function fc(e,t){var n;t===void 0&&(t=[]);var r=rw(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=jo(r),a=s?[i].concat(i.visualViewport||[],Og(r)?r:[]):r,l=t.concat(a);return s?l:l.concat(fc(Md(a)))}function kg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function V6(e,t){var n=Oa(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 sw(e,t,n){return t===qC?kg(L6(e,n)):hi(t)?V6(t,n):kg(A6(Ds(e)))}function _6(e){var t=fc(Md(e)),n=["absolute","fixed"].indexOf(is(e).position)>=0,r=n&&ur(e)?dc(e):e;return hi(r)?t.filter(function(s){return hi(s)&&ZC(s,r)&&jr(s)!=="body"}):[]}function B6(e,t,n,r){var s=t==="clippingParents"?_6(e):[].concat(t),i=[].concat(s,[n]),a=i[0],l=i.reduce(function(c,u){var d=sw(e,u,r);return c.top=gi(d.top,c.top),c.right=Td(d.right,c.right),c.bottom=Td(d.bottom,c.bottom),c.left=gi(d.left,c.left),c},sw(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 iw(e){var t=e.reference,n=e.element,r=e.placement,s=r?Gr(r):null,i=r?ka(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(s){case To:c={x:a,y:t.y-n.height};break;case lr:c={x:a,y:t.y+t.height};break;case cr:c={x:t.x+t.width,y:l};break;case Mo:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=s?Ig(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Ta:c[u]=c[u]-(t[d]/2-n[d]/2);break;case cc:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function hc(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?i6:l,u=n.rootBoundary,d=u===void 0?qC:u,p=n.elementContext,g=p===void 0?uc:p,h=n.altBoundary,y=h===void 0?!1:h,m=n.padding,b=m===void 0?0:m,C=ew(typeof b!="number"?b:tw(b,lc)),w=g===uc?a6:uc,S=e.rects.popper,P=e.elements[y?w:g],x=B6(hi(P)?P:P.contextElement||Ds(e.elements.popper),c,d,a),M=Oa(e.elements.reference),k=iw({reference:M,element:S,placement:s}),T=kg(Object.assign({},S,k)),O=g===uc?T:M,I={top:x.top-O.top+C.top,bottom:O.bottom-x.bottom+C.bottom,left:x.left-O.left+C.left,right:O.right-x.right+C.right},D=e.modifiersData.offset;if(g===uc&&D){var E=D[s];Object.keys(I).forEach(function(N){var L=[cr,lr].indexOf(N)>=0?1:-1,$=[To,lr].indexOf(N)>=0?"y":"x";I[N]+=E[$]*L})}return I}function H6(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?KC:c,d=ka(r),p=d?l?YC:YC.filter(function(y){return ka(y)===d}):lc,g=p.filter(function(y){return u.indexOf(y)>=0});g.length===0&&(g=p);var h=g.reduce(function(y,m){return y[m]=hc(e,{placement:m,boundary:s,rootBoundary:i,padding:a})[Gr(m)],y},{});return Object.keys(h).sort(function(y,m){return h[y]-h[m]})}function z6(e){if(Gr(e)===Sg)return[];var t=kd(e);return[ow(e),t,ow(t)]}function j6(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,y=h===void 0?!0:h,m=n.allowedAutoPlacements,b=t.options.placement,C=Gr(b),w=C===b,S=c||(w||!y?[kd(b)]:z6(b)),P=[b].concat(S).reduce(function(U,X){return U.concat(Gr(X)===Sg?H6(t,{placement:X,boundary:d,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:m}):X)},[]),x=t.rects.reference,M=t.rects.popper,k=new Map,T=!0,O=P[0],I=0;I<P.length;I++){var D=P[I],E=Gr(D),N=ka(D)===Ta,L=[To,lr].indexOf(E)>=0,$=L?"width":"height",F=hc(t,{placement:D,boundary:d,rootBoundary:p,altBoundary:g,padding:u}),R=L?N?cr:Mo:N?lr:To;x[$]>M[$]&&(R=kd(R));var B=kd(R),_=[];if(i&&_.push(F[E]<=0),l&&_.push(F[R]<=0,F[B]<=0),_.every(function(U){return U})){O=D,T=!1;break}k.set(D,_)}if(T)for(var V=y?3:1,A=function(X){var Y=P.find(function(ee){var oe=k.get(ee);if(oe)return oe.slice(0,X).every(function(K){return K})});if(Y)return O=Y,"break"},z=V;z>0;z--){var G=A(z);if(G==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const G6={name:"flip",enabled:!0,phase:"main",fn:j6,requiresIfExists:["offset"],data:{_skip:!1}};function aw(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 lw(e){return[To,cr,lr,Mo].some(function(t){return e[t]>=0})}function W6(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,a=hc(t,{elementContext:"reference"}),l=hc(t,{altBoundary:!0}),c=aw(a,r),u=aw(l,s,i),d=lw(c),p=lw(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 U6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:W6};function q6(e,t,n){var r=Gr(e),s=[Mo,To].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,[Mo,cr].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function Y6(e){var t=e.state,n=e.options,r=e.name,s=n.offset,i=s===void 0?[0,0]:s,a=KC.reduce(function(d,p){return d[p]=q6(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 K6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Y6};function X6(e){var t=e.state,n=e.name;t.modifiersData[n]=iw({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Z6={name:"popperOffsets",enabled:!0,phase:"read",fn:X6,data:{}};function Q6(e){return e==="x"?"y":"x"}function J6(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,y=n.tetherOffset,m=y===void 0?0:y,b=hc(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),C=Gr(t.placement),w=ka(t.placement),S=!w,P=Ig(C),x=Q6(P),M=t.modifiersData.popperOffsets,k=t.rects.reference,T=t.rects.popper,O=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,I=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(M){if(i){var N,L=P==="y"?To:Mo,$=P==="y"?lr:cr,F=P==="y"?"height":"width",R=M[P],B=R+b[L],_=R-b[$],V=h?-T[F]/2:0,A=w===Ta?k[F]:T[F],z=w===Ta?-T[F]:-k[F],G=t.elements.arrow,U=h&&G?Eg(G):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:JC(),Y=X[L],ee=X[$],oe=pc(0,k[F],U[F]),K=S?k[F]/2-V-oe-Y-I.mainAxis:A-oe-Y-I.mainAxis,W=S?-k[F]/2+V+oe+ee+I.mainAxis:z+oe+ee+I.mainAxis,J=t.elements.arrow&&dc(t.elements.arrow),q=J?P==="y"?J.clientTop||0:J.clientLeft||0:0,ce=(N=D?.[P])!=null?N:0,re=R+K-ce-q,se=R+W-ce,ae=pc(h?Td(B,re):B,R,h?gi(_,se):_);M[P]=ae,E[P]=ae-R}if(l){var te,Q=P==="x"?To:Mo,Ce=P==="x"?lr:cr,le=M[x],xe=x==="y"?"height":"width",we=le+b[Q],Ue=le-b[Ce],$e=[To,Mo].indexOf(C)!==-1,Ze=(te=D?.[x])!=null?te:0,Le=$e?we:le-k[xe]-T[xe]-Ze+I.altAxis,Qe=$e?le+k[xe]+T[xe]-Ze-I.altAxis:Ue,Je=h&&$e?x6(Le,le,Qe):pc(h?Le:we,le,h?Qe:Ue);M[x]=Je,E[x]=Je-le}t.modifiersData[r]=E}}const eN={name:"preventOverflow",enabled:!0,phase:"main",fn:J6,requiresIfExists:["offset"]};function tN(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nN(e){return e===jo(e)||!ur(e)?Tg(e):tN(e)}function oN(e){var t=e.getBoundingClientRect(),n=Ma(t.width)/e.offsetWidth||1,r=Ma(t.height)/e.offsetHeight||1;return n!==1||r!==1}function rN(e,t,n){n===void 0&&(n=!1);var r=ur(t),s=ur(t)&&oN(t),i=Ds(t),a=Oa(e,s,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((jr(t)!=="body"||Og(i))&&(l=nN(t)),ur(t)?(c=Oa(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Mg(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function sN(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 iN(e){var t=sN(e);return b6.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function aN(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function lN(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 cw={placement:"bottom",modifiers:[],strategy:"absolute"};function uw(){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 cN(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?cw:s;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},cw,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],g=!1,h={state:d,setOptions:function(C){var w=typeof C=="function"?C(d.options):C;m(),d.options=Object.assign({},i,d.options,w),d.scrollParents={reference:hi(l)?fc(l):l.contextElement?fc(l.contextElement):[],popper:fc(c)};var S=iN(lN([].concat(r,d.options.modifiers)));return d.orderedModifiers=S.filter(function(P){return P.enabled}),y(),h.update()},forceUpdate:function(){if(!g){var C=d.elements,w=C.reference,S=C.popper;if(uw(w,S)){d.rects={reference:rN(w,dc(S),d.options.strategy==="fixed"),popper:Eg(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(I){return d.modifiersData[I.name]=Object.assign({},I.data)});for(var P=0;P<d.orderedModifiers.length;P++){if(d.reset===!0){d.reset=!1,P=-1;continue}var x=d.orderedModifiers[P],M=x.fn,k=x.options,T=k===void 0?{}:k,O=x.name;typeof M=="function"&&(d=M({state:d,options:T,name:O,instance:h})||d)}}}},update:aN(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){m(),g=!0}};if(!uw(l,c))return h;h.setOptions(u).then(function(b){!g&&u.onFirstUpdate&&u.onFirstUpdate(b)});function y(){d.orderedModifiers.forEach(function(b){var C=b.name,w=b.options,S=w===void 0?{}:w,P=b.effect;if(typeof P=="function"){var x=P({state:d,name:C,instance:h,options:S}),M=function(){};p.push(x||M)}})}function m(){p.forEach(function(b){return b()}),p=[]}return h}}var uN=[N6,Z6,D6,C6,K6,G6,eN,T6,U6],dN=cN({defaultModifiers:uN});function it(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:Zn(n,r),{props:l,internalRef:c}=NC({...i,externalSlotProps:a}),u=st(c,a?.ref,e.additionalProps?.ref);return DC(t,{...l,ref:u},r)}function mi(e){return parseInt(f.version,10)>=19?e?.props?.ref||null:e?.ref||null}function pN(e){return typeof e=="function"?e():e}const gc=f.forwardRef(function(t,n){const{children:r,container:s,disablePortal:i=!1}=t,[a,l]=f.useState(null),c=st(f.isValidElement(r)?mi(r):null,n);if(ht(()=>{i||l(pN(s)||document.body)},[s,i]),ht(()=>{if(a&&!i)return ig(n,a),()=>{ig(n,null)}},[n,a,i]),i){if(f.isValidElement(r)){const u={ref:c};return f.cloneElement(r,u)}return r}return a&&N1.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(gc.propTypes={children:o.node,container:o.oneOfType([ar,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(gc.propTypes=nc(gc.propTypes));function fN(e){return ke("MuiPopper",e)}Oe("MuiPopper",["root"]);function hN(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 Dd(e){return typeof e=="function"?e():e}function Fd(e){return e.nodeType!==void 0}function gN(e){return!Fd(e)}const mN=e=>{const{classes:t}=e;return de({root:["root"]},fN,t)},bN={},yN=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:y,ownerState:m,...b}=t,C=f.useRef(null),w=st(C,n),S=f.useRef(null),P=st(S,p),x=f.useRef(P);ht(()=>{x.current=P},[P]),f.useImperativeHandle(p,()=>S.current,[]);const M=hN(u,i),[k,T]=f.useState(M),[O,I]=f.useState(Dd(r));f.useEffect(()=>{S.current&&S.current.forceUpdate()}),f.useEffect(()=>{r&&I(Dd(r))},[r]),ht(()=>{if(!O||!c)return;const $=B=>{T(B.placement)};if(process.env.NODE_ENV!=="production"&&O&&Fd(O)&&O.nodeType===1){const B=O.getBoundingClientRect();process.env.NODE_ENV!=="test"&&B.top===0&&B.left===0&&B.right===0&&B.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 F=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{$(B)}}];l!=null&&(F=F.concat(l)),d&&d.modifiers!=null&&(F=F.concat(d.modifiers));const R=dN(O,C.current,{placement:M,...d,modifiers:F});return x.current(R),()=>{R.destroy(),x.current(null)}},[O,a,l,c,d,M]);const D={placement:k};y!==null&&(D.TransitionProps=y);const E=mN(t),N=h.root??"div",L=it({elementType:N,externalSlotProps:g.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:E.root});return v.jsx(N,{...L,children:typeof s=="function"?s(D):s})}),dw=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=bN,popperRef:h,style:y,transition:m=!1,slotProps:b={},slots:C={},...w}=t,[S,P]=f.useState(!0),x=()=>{P(!1)},M=()=>{P(!0)};if(!c&&!d&&(!m||S))return null;let k;if(i)k=i;else if(r){const I=Dd(r);k=I&&Fd(I)?Qt(I).body:Qt(null).body}const T=!d&&c&&(!m||S)?"none":void 0,O=m?{in:d,onEnter:x,onExited:M}:void 0;return v.jsx(gc,{disablePortal:l,container:k,children:v.jsx(yN,{anchorEl:r,direction:a,disablePortal:l,modifiers:u,ref:n,open:m?!S:d,placement:p,popperOptions:g,popperRef:h,slotProps:b,slots:C,...w,style:{position:"fixed",top:0,left:0,display:T,...y},TransitionProps:O,children:s})})});process.env.NODE_ENV!=="production"&&(dw.propTypes={anchorEl:Bo(o.oneOfType([ar,o.object,o.func]),e=>{if(e.open){const t=Dd(e.anchorEl);if(t&&Fd(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
179
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"||gN(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([ar,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:At,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const vN=Z(dw,{name:"MuiPopper",slot:"Root"})({}),bi=f.forwardRef(function(t,n){const r=Gt(),s=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:g,open:h,placement:y,popperOptions:m,popperRef:b,transition:C,slots:w,slotProps:S,...P}=s,x=w?.root??l?.Root,M={anchorEl:i,container:u,disablePortal:d,keepMounted:p,modifiers:g,open:h,placement:y,popperOptions:m,popperRef:b,transition:C,...P};return v.jsx(vN,{as:a,direction:r?"rtl":"ltr",slots:{root:x},slotProps:S??c,...M,ref:n})});process.env.NODE_ENV!=="production"&&(bi.propTypes={anchorEl:o.oneOfType([ar,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([ar,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:At,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 CN(e){return ke("MuiListSubheader",e)}Oe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const wN=e=>{const{classes:t,color:n,disableGutters:r,inset:s,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${pe(n)}`,!r&&"gutters",s&&"inset",!i&&"sticky"]};return de(a,CN,t)},SN=Z("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${pe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(He(({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}}]}))),mc=f.forwardRef(function(t,n){const r=Ke({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=wN(p);return v.jsx(SN,{as:a,className:ie(g.root,s),ref:n,ownerState:p,...d})});mc&&(mc.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(mc.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 xN=vt(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 PN(e){return ke("MuiChip",e)}const Mt=Oe("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"]),EN=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${pe(r)}`,`color${pe(s)}`,l&&"clickable",l&&`clickableColor${pe(s)}`,a&&"deletable",a&&`deletableColor${pe(s)}`,`${c}${pe(s)}`],label:["label",`label${pe(r)}`],avatar:["avatar",`avatar${pe(r)}`,`avatarColor${pe(s)}`],icon:["icon",`icon${pe(r)}`,`iconColor${pe(i)}`],deleteIcon:["deleteIcon",`deleteIcon${pe(r)}`,`deleteIconColor${pe(s)}`,`deleteIcon${pe(c)}Color${pe(s)}`]};return de(u,PN,t)},IN=Z("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[{[`& .${Mt.avatar}`]:t.avatar},{[`& .${Mt.avatar}`]:t[`avatar${pe(l)}`]},{[`& .${Mt.avatar}`]:t[`avatarColor${pe(r)}`]},{[`& .${Mt.icon}`]:t.icon},{[`& .${Mt.icon}`]:t[`icon${pe(l)}`]},{[`& .${Mt.icon}`]:t[`iconColor${pe(s)}`]},{[`& .${Mt.deleteIcon}`]:t.deleteIcon},{[`& .${Mt.deleteIcon}`]:t[`deleteIcon${pe(l)}`]},{[`& .${Mt.deleteIcon}`]:t[`deleteIconColor${pe(r)}`]},{[`& .${Mt.deleteIcon}`]:t[`deleteIcon${pe(c)}Color${pe(r)}`]},t.root,t[`size${pe(l)}`],t[`color${pe(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${pe(r)}`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${pe(r)}`],t[c],t[`${c}${pe(r)}`]]}})(He(({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",[`&.${Mt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Mt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Mt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Mt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Mt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Mt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Mt.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,[`& .${Mt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Mt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(rn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Mt.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:{[`& .${Mt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Mt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Mt.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(rn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Mt.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}`)},[`&.${Mt.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(rn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Mt.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]}`,[`&.${Mt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Mt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Mt.avatar}`]:{marginLeft:4},[`& .${Mt.avatarSmall}`]:{marginLeft:2},[`& .${Mt.icon}`]:{marginLeft:4},[`& .${Mt.iconSmall}`]:{marginLeft:2},[`& .${Mt.deleteIcon}`]:{marginRight:5},[`& .${Mt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(rn()).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)}`,[`&.${Mt.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Mt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Mt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),TN=Z("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${pe(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 pw(e){return e.key==="Backspace"||e.key==="Delete"}const Da=f.forwardRef(function(t,n){const r=Ke({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:y,onKeyDown:m,onKeyUp:b,size:C="medium",variant:w="filled",tabIndex:S,skipFocusWhenDisabled:P=!1,slots:x={},slotProps:M={},...k}=r,T=f.useRef(null),O=st(T,n),I=Y=>{Y.stopPropagation(),y&&y(Y)},D=Y=>{Y.currentTarget===Y.target&&pw(Y)&&Y.preventDefault(),m&&m(Y)},E=Y=>{Y.currentTarget===Y.target&&y&&pw(Y)&&y(Y),b&&b(Y)},N=a!==!1&&h?!0:a,L=N||y?ir:c||"div",$={...r,component:L,disabled:d,size:C,color:l,iconColor:f.isValidElement(p)&&p.props.color||l,onDelete:!!y,clickable:N,variant:w},F=EN($),R=L===ir?{component:c||"div",focusVisibleClassName:F.focusVisible,...y&&{disableRipple:!0}}:{};let B=null;y&&(B=u&&f.isValidElement(u)?f.cloneElement(u,{className:ie(u.props.className,F.deleteIcon),onClick:I}):v.jsx(xN,{className:F.deleteIcon,onClick:I}));let _=null;s&&f.isValidElement(s)&&(_=f.cloneElement(s,{className:ie(F.avatar,s.props.className)}));let V=null;p&&f.isValidElement(p)&&(V=f.cloneElement(p,{className:ie(F.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&_&&V&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const A={slots:x,slotProps:M},[z,G]=Ve("root",{elementType:IN,externalForwardedProps:{...A,...k},ownerState:$,shouldForwardComponentProp:!0,ref:O,className:ie(F.root,i),additionalProps:{disabled:N&&d?!0:void 0,tabIndex:P&&d?-1:S,...R},getSlotProps:Y=>({...Y,onClick:ee=>{Y.onClick?.(ee),h?.(ee)},onKeyDown:ee=>{Y.onKeyDown?.(ee),D(ee)},onKeyUp:ee=>{Y.onKeyUp?.(ee),E(ee)}})}),[U,X]=Ve("label",{elementType:TN,externalForwardedProps:A,ownerState:$,className:F.label});return v.jsxs(z,{as:L,...G,children:[_||V,v.jsx(U,{...X,children:g}),B]})});process.env.NODE_ENV!=="production"&&(Da.propTypes={avatar:o.element,children:ag,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 Nd(e){return parseInt(e,10)||0}const MN={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ON(e){for(const t in e)return!1;return!0}function fw(e){return ON(e)||e.outerHeightStyle===0&&!e.overflowing}const hw=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=st(n,d),g=f.useRef(null),h=f.useRef(null),y=f.useCallback(()=>{const S=d.current,P=h.current;if(!S||!P)return;const M=Cr(S).getComputedStyle(S);if(M.width==="0px")return{outerHeightStyle:0,overflowing:!1};P.style.width=M.width,P.value=S.value||t.placeholder||"x",P.value.slice(-1)===`
|
|
181
|
-
`&&(P.value+=" ");const k=M.boxSizing,T=Nd(M.paddingBottom)+Nd(M.paddingTop),O=Nd(M.borderBottomWidth)+Nd(M.borderTopWidth),I=P.scrollHeight;P.value="x";const D=P.scrollHeight;let E=I;i&&(E=Math.max(Number(i)*D,E)),s&&(E=Math.min(Number(s)*D,E)),E=Math.max(E,D);const N=E+(k==="border-box"?T+O:0),L=Math.abs(E-I)<=1;return{outerHeightStyle:N,overflowing:L}},[s,i,t.placeholder]),m=fe(()=>{const S=d.current,P=y();if(!S||!P||fw(P))return!1;const x=P.outerHeightStyle;return g.current!=null&&g.current!==x}),b=f.useCallback(()=>{const S=d.current,P=y();if(!S||!P||fw(P))return;const x=P.outerHeightStyle;g.current!==x&&(g.current=x,S.style.height=`${x}px`),S.style.overflow=P.overflowing?"hidden":""},[y]),C=f.useRef(-1);ht(()=>{const S=vr(b),P=d?.current;if(!P)return;const x=Cr(P);x.addEventListener("resize",S);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(()=>{m()&&(M.unobserve(P),cancelAnimationFrame(C.current),b(),C.current=requestAnimationFrame(()=>{M.observe(P)}))}),M.observe(P)),()=>{S.clear(),cancelAnimationFrame(C.current),x.removeEventListener("resize",S),M&&M.disconnect()}},[y,b,m]),ht(()=>{b()});const w=S=>{u||b();const P=S.target,x=P.value.length,M=P.value.endsWith(`
|
|
182
|
-
`),k=P.selectionStart===x;M&&k&&P.setSelectionRange(x,x),r&&r(S)};return v.jsxs(f.Fragment,{children:[v.jsx("textarea",{value:l,onChange:w,ref:p,rows:i,style:a,...c}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...MN.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(hw.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 Fs({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 bc=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(bc.displayName="FormControlContext");function Go(){return f.useContext(bc)}function gw(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Rd(e,t=!1){return e&&(gw(e.value)&&e.value!==""||t&&gw(e.defaultValue)&&e.defaultValue!=="")}function kN(e){return e.startAdornment}function DN(e){return ke("MuiInputBase",e)}const Wn=Oe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var mw;const $d=(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${pe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ld=(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]},FN=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:y}=e,m={root:["root",`color${pe(n)}`,r&&"disabled",s&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",g&&g!=="medium"&&`size${pe(g)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",d&&"inputMultiline",g==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return de(m,DN,t)},Ad=Z("div",{name:"MuiInputBase",slot:"Root",overridesResolver:$d})(He(({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",[`&.${Wn.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%"}}]}))),Vd=Z("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ld})(He(({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] + .${Wn.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},[`&.${Wn.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"}}]}})),bw=sg({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Fa=f.forwardRef(function(t,n){const r=Ke({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:y,error:m,fullWidth:b=!1,id:C,inputComponent:w="input",inputProps:S={},inputRef:P,margin:x,maxRows:M,minRows:k,multiline:T=!1,name:O,onBlur:I,onChange:D,onClick:E,onFocus:N,onKeyDown:L,onKeyUp:$,placeholder:F,readOnly:R,renderSuffix:B,rows:_,size:V,slotProps:A={},slots:z={},startAdornment:G,type:U="text",value:X,...Y}=r,ee=S.value!=null?S.value:X,{current:oe}=f.useRef(ee!=null),K=f.useRef(),W=f.useCallback(me=>{process.env.NODE_ENV!=="production"&&me&&me.nodeName!=="INPUT"&&!me.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
|
-
`))},[]),J=st(K,P,S.ref,W),[q,ce]=f.useState(!1),re=Go();process.env.NODE_ENV!=="production"&&f.useEffect(()=>{if(re)return re.registerEffect()},[re]);const se=Fs({props:r,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});se.focused=re?re.focused:q,f.useEffect(()=>{!re&&g&&q&&(ce(!1),I&&I())},[re,g,q,I]);const ae=re&&re.onFilled,te=re&&re.onEmpty,Q=f.useCallback(me=>{Rd(me)?ae&&ae():te&&te()},[ae,te]);ht(()=>{oe&&Q({value:ee})},[ee,Q,oe]);const Ce=me=>{N&&N(me),S.onFocus&&S.onFocus(me),re&&re.onFocus?re.onFocus(me):ce(!0)},le=me=>{I&&I(me),S.onBlur&&S.onBlur(me),re&&re.onBlur?re.onBlur(me):ce(!1)},xe=(me,...Me)=>{if(!oe){const Ae=me.target||K.current;if(Ae==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.":Ar(1));Q({value:Ae.value})}S.onChange&&S.onChange(me,...Me),D&&D(me,...Me)};f.useEffect(()=>{Q(K.current)},[]);const we=me=>{K.current&&me.currentTarget===me.target&&K.current.focus(),E&&E(me)};let Ue=w,$e=S;T&&Ue==="input"&&(_?(process.env.NODE_ENV!=="production"&&(k||M)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),$e={type:void 0,minRows:_,maxRows:_,...$e}):$e={type:void 0,maxRows:M,minRows:k,...$e},Ue=hw);const Ze=me=>{Q(me.animationName==="mui-auto-fill-cancel"?K.current:{value:"x"})};f.useEffect(()=>{re&&re.setAdornedStart(!!G)},[re,G]);const Le={...r,color:se.color||"primary",disabled:se.disabled,endAdornment:y,error:se.error,focused:se.focused,formControl:re,fullWidth:b,hiddenLabel:se.hiddenLabel,multiline:T,size:se.size,startAdornment:G,type:U},Qe=FN(Le),Je=z.root||u.Root||Ad,be=A.root||d.root||{},Ee=z.input||u.Input||Vd;return $e={...$e,...A.input??d.input},v.jsxs(f.Fragment,{children:[!h&&typeof bw=="function"&&(mw||(mw=v.jsx(bw,{}))),v.jsxs(Je,{...be,ref:n,onClick:we,...Y,...!Ea(Je)&&{ownerState:{...Le,...be.ownerState}},className:ie(Qe.root,be.className,l,R&&"MuiInputBase-readOnly"),children:[G,v.jsx(bc.Provider,{value:null,children:v.jsx(Ee,{"aria-invalid":se.error,"aria-describedby":s,autoComplete:i,autoFocus:a,defaultValue:p,disabled:se.disabled,id:C,onAnimationStart:Ze,name:O,placeholder:F,readOnly:R,required:se.required,rows:_,value:ee,onKeyDown:L,onKeyUp:$,type:U,...$e,...!Ea(Ee)&&{as:Ue,ownerState:{...Le,...$e.ownerState}},ref:J,className:ie(Qe.input,$e.className,R&&"MuiInputBase-readOnly"),onBlur:le,onChange:xe,onFocus:Ce})}),y,B?B({...se,startAdornment:G}):null]})]})});process.env.NODE_ENV!=="production"&&(Fa.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:ac,inputProps:o.object,inputRef:At,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 NN(e){return ke("MuiInput",e)}const Ns={...Wn,...Oe("MuiInput",["root","underline","input"])};function RN(e){return ke("MuiOutlinedInput",e)}const dr={...Wn,...Oe("MuiOutlinedInput",["root","notchedOutline","input"])};function $N(e){return ke("MuiFilledInput",e)}const Wo={...Wn,...Oe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},yw=vt(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function LN(e){return ke("MuiAutocomplete",e)}const Pt=Oe("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 vw,Cw;const AN=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${pe(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 de(p,LN,t)},VN=Z("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:i,inputFocused:a,size:l}=n;return[{[`& .${Pt.tag}`]:t.tag},{[`& .${Pt.tag}`]:t[`tagSize${pe(l)}`]},{[`& .${Pt.inputRoot}`]:t.inputRoot},{[`& .${Pt.input}`]:t.input},{[`& .${Pt.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,s&&t.hasClearIcon]}})({[`&.${Pt.focused} .${Pt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Pt.clearIndicator}`]:{visibility:"visible"}},[`& .${Pt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Pt.inputRoot}`]:{[`.${Pt.hasPopupIcon}&, .${Pt.hasClearIcon}&`]:{paddingRight:30},[`.${Pt.hasPopupIcon}.${Pt.hasClearIcon}&`]:{paddingRight:56},[`& .${Pt.input}`]:{width:0,minWidth:30}},[`& .${Ns.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ns.root}.${Wn.sizeSmall}`]:{[`& .${Ns.input}`]:{padding:"2px 4px 3px 0"}},[`& .${dr.root}`]:{padding:9,[`.${Pt.hasPopupIcon}&, .${Pt.hasClearIcon}&`]:{paddingRight:39},[`.${Pt.hasPopupIcon}.${Pt.hasClearIcon}&`]:{paddingRight:65},[`& .${Pt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Pt.endAdornment}`]:{right:9}},[`& .${dr.root}.${Wn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Pt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Wo.root}`]:{paddingTop:19,paddingLeft:8,[`.${Pt.hasPopupIcon}&, .${Pt.hasClearIcon}&`]:{paddingRight:39},[`.${Pt.hasPopupIcon}.${Pt.hasClearIcon}&`]:{paddingRight:65},[`& .${Wo.input}`]:{padding:"7px 4px"},[`& .${Pt.endAdornment}`]:{right:9}},[`& .${Wo.root}.${Wn.sizeSmall}`]:{paddingBottom:1,[`& .${Wo.input}`]:{padding:"2.5px 4px"}},[`& .${Wn.hiddenLabel}`]:{paddingTop:8},[`& .${Wo.root}.${Wn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Pt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Wo.root}.${Wn.hiddenLabel}.${Wn.sizeSmall}`]:{[`& .${Pt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Pt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Pt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Pt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Pt.inputRoot}`]:{flexWrap:"wrap"}}}]}),_N=Z("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),BN=Z(kn,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),HN=Z(kn,{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)"}}]}),zN=Z(bi,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(He(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),jN=Z(wr,{name:"MuiAutocomplete",slot:"Paper"})(He(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),GN=Z("div",{name:"MuiAutocomplete",slot:"Loading"})(He(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),WN=Z("div",{name:"MuiAutocomplete",slot:"NoOptions"})(He(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),UN=Z("ul",{name:"MuiAutocomplete",slot:"Listbox"})(He(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Pt.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"},[`&.${Pt.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"},[`&.${Pt.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),[`&.${Pt.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}},[`&.${Pt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),qN=Z(mc,{name:"MuiAutocomplete",slot:"GroupLabel"})(He(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),YN=Z("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Pt.option}`]:{paddingLeft:24}}),Dg=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:l=!1,ChipProps:c,className:u,clearIcon:d=vw||(vw=v.jsx(_C,{fontSize:"small"})),clearOnBlur:p=!r.freeSolo,clearOnEscape:g=!1,clearText:h="Clear",closeText:y="Close",componentsProps:m,defaultValue:b=r.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:w=!1,disabled:S=!1,disabledItemsFocusable:P=!1,disableListWrap:x=!1,disablePortal:M=!1,filterOptions:k,filterSelectedOptions:T=!1,forcePopupIcon:O="auto",freeSolo:I=!1,fullWidth:D=!1,getLimitTagsText:E=Ht=>`+${Ht}`,getOptionDisabled:N,getOptionKey:L,getOptionLabel:$,isOptionEqualToValue:F,groupBy:R,handleHomeEndKeys:B=!r.freeSolo,id:_,includeInputInList:V=!1,inputValue:A,limitTags:z=-1,ListboxComponent:G,ListboxProps:U,loading:X=!1,loadingText:Y="Loading…",multiple:ee=!1,noOptionsText:oe="No options",onChange:K,onClose:W,onHighlightChange:J,onInputChange:q,onOpen:ce,open:re,openOnFocus:se=!1,openText:ae="Open",options:te,PaperComponent:Q,PopperComponent:Ce,popupIcon:le=Cw||(Cw=v.jsx(yw,{})),readOnly:xe=!1,renderGroup:we,renderInput:Ue,renderOption:$e,renderTags:Ze,renderValue:Le,selectOnFocus:Qe=!r.freeSolo,size:Je="medium",slots:be={},slotProps:Ee={},value:me,...Me}=r,{getRootProps:Ae,getInputProps:Ge,getInputLabelProps:lt,getPopupIndicatorProps:Dt,getClearProps:qe,getItemProps:Fe,getListboxProps:Ye,getOptionProps:pt,value:qt,dirty:kt,expanded:Yn,id:_n,popupOpen:Kn,focused:Xn,focusedItem:je,anchorEl:Lt,setAnchorEl:_e,inputValue:et,groupedOptions:St}=s6({...r,componentName:"Autocomplete"}),Tt=!C&&!S&&kt&&!xe,sn=(!I||O===!0)&&O!==!1,{onMouseDown:co}=Ge(),{ref:Po,...ct}=Ye(),tn=$||(Ht=>Ht.label??Ht),Ft={...r,disablePortal:M,expanded:Yn,focused:Xn,fullWidth:D,getOptionLabel:tn,hasClearIcon:Tt,hasPopupIcon:sn,inputFocused:je===-1,popupOpen:Kn,size:Je},an=AN(Ft),Lo={slots:{paper:Q,popper:Ce,...be},slotProps:{chip:c,listbox:U,...m,...Ee}},[aa,Ss]=Ve("listbox",{elementType:UN,externalForwardedProps:Lo,ownerState:Ft,className:an.listbox,additionalProps:ct,ref:Po}),[la,Se]=Ve("paper",{elementType:wr,externalForwardedProps:Lo,ownerState:Ft,className:an.paper}),[ye,Be]=Ve("popper",{elementType:bi,externalForwardedProps:Lo,ownerState:Ft,className:an.popper,additionalProps:{disablePortal:M,style:{width:Lt?Lt.clientWidth:null},role:"presentation",anchorEl:Lt,open:Kn}});let ut;const ft=Ht=>({className:an.tag,disabled:S,...Fe(Ht)});if(ee?qt.length>0&&(Ze?ut=Ze(qt,ft,Ft):Le?ut=Le(qt,ft,Ft):ut=qt.map((Ht,ri)=>{const{key:si,...Hu}=ft({index:ri});return v.jsx(Da,{label:tn(Ht),size:Je,...Hu,...Lo.slotProps.chip},si)})):Le&&qt!=null&&(ut=Le(qt,ft,Ft)),z>-1&&Array.isArray(ut)){const Ht=ut.length-z;!Xn&&Ht>0&&(ut=ut.splice(0,z),ut.push(v.jsx("span",{className:an.tag,children:E(Ht)},ut.length)))}const Bn=we||(Ht=>v.jsxs("li",{children:[v.jsx(qN,{className:an.groupLabel,ownerState:Ft,component:"div",children:Ht.group}),v.jsx(YN,{className:an.groupUl,ownerState:Ft,children:Ht.children})]},Ht.key)),Vl=$e||((Ht,ri)=>{const{key:si,...Hu}=Ht;return v.jsx("li",{...Hu,children:tn(ri)},si)}),zk=(Ht,ri)=>{const si=pt({option:Ht,index:ri});return Vl({...si,className:an.option},Ht,{selected:si["aria-selected"],index:ri,inputValue:et},Ft)},jk=Lo.slotProps.clearIndicator,Gk=Lo.slotProps.popupIndicator;return v.jsxs(f.Fragment,{children:[v.jsx(VN,{ref:n,className:ie(an.root,u),ownerState:Ft,...Ae(Me),children:Ue({id:_n,disabled:S,fullWidth:!0,size:Je==="small"?"small":void 0,InputLabelProps:lt(),InputProps:{ref:_e,className:an.inputRoot,startAdornment:ut,onMouseDown:Ht=>{Ht.target===Ht.currentTarget&&co(Ht)},...(Tt||sn)&&{endAdornment:v.jsxs(_N,{className:an.endAdornment,ownerState:Ft,children:[Tt?v.jsx(BN,{...qe(),"aria-label":h,title:h,ownerState:Ft,...jk,className:ie(an.clearIndicator,jk?.className),children:d}):null,sn?v.jsx(HN,{...Dt(),disabled:S,"aria-label":Kn?y:ae,title:Kn?y:ae,ownerState:Ft,...Gk,className:ie(an.popupIndicator,Gk?.className),children:le}):null]})}},inputProps:{className:an.input,disabled:S,readOnly:xe,...Ge()}})}),Lt?v.jsx(zN,{as:ye,...Be,children:v.jsxs(jN,{as:la,...Se,children:[X&&St.length===0?v.jsx(GN,{className:an.loading,ownerState:Ft,children:Y}):null,St.length===0&&!I&&!X?v.jsx(WN,{className:an.noOptions,ownerState:Ft,role:"presentation",onMouseDown:Ht=>{Ht.preventDefault()},children:oe}):null,St.length>0?v.jsx(aa,{as:G,...Ss,children:St.map((Ht,ri)=>R?Bn({key:Ht.key,group:Ht.group,children:Ht.options.map((si,Hu)=>zk(si,Ht.index+Hu))}):zk(Ht,ri))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(Dg.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:Bo(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:Ia,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:Bo(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 KN=vt(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 XN(e){return ke("MuiAvatar",e)}Oe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const ZN=e=>{const{classes:t,variant:n,colorDefault:r}=e;return de({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},XN,t)},QN=Z("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(He(({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]})}}}]}))),JN=Z("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),eR=Z(KN,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function tR({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 _d=f.forwardRef(function(t,n){const r=Ke({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:y="circular",...m}=r;let b=null;const C={...r,component:l,variant:y},w=tR({...d,...typeof u.img=="function"?u.img(C):u.img,src:g,srcSet:h}),S=g||h,P=S&&w!=="error";C.colorDefault=!P,delete C.ownerState;const x=ZN(C),[M,k]=Ve("root",{ref:n,className:ie(x.root,a),elementType:QN,externalForwardedProps:{slots:c,slotProps:u,component:l,...m},ownerState:C}),[T,O]=Ve("img",{className:x.img,elementType:JN,externalForwardedProps:{slots:c,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:s,src:g,srcSet:h,sizes:p},ownerState:C}),[I,D]=Ve("fallback",{className:x.fallback,elementType:eR,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:C});return P?b=v.jsx(T,{...O}):i||i===0?b=i:S&&s?b=s[0]:b=v.jsx(I,{...D}),v.jsx(M,{...k,children:b})});process.env.NODE_ENV!=="production"&&(_d.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 nR(e){const{prototype:t={}}=e;return!!t.isReactComponent}function ww(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"&&!nR(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 yi=Bo(o.element,ww);yi.isRequired=Bo(o.element.isRequired,ww);const oR={entering:{opacity:1},entered:{opacity:1}},as=f.forwardRef(function(t,n){const r=uo(),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:y,onExiting:m,style:b,timeout:C=s,TransitionComponent:w=Ho,...S}=t,P=f.useRef(null),x=st(P,mi(l),n),M=L=>$=>{if(L){const F=P.current;$===void 0?L(F):L(F,$)}},k=M(g),T=M((L,$)=>{kC(L);const F=Pa({style:b,timeout:C,easing:c},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",F),L.style.transition=r.transitions.create("opacity",F),d&&d(L,$)}),O=M(p),I=M(m),D=M(L=>{const $=Pa({style:b,timeout:C,easing:c},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",$),L.style.transition=r.transitions.create("opacity",$),h&&h(L)}),E=M(y),N=L=>{i&&i(P.current,L)};return v.jsx(w,{appear:a,in:u,nodeRef:P,onEnter:T,onEntered:O,onEntering:k,onExit:D,onExited:E,onExiting:I,addEndListener:N,timeout:C,...S,children:(L,{ownerState:$,...F})=>f.cloneElement(l,{style:{opacity:0,visibility:L==="exited"&&!u?"hidden":void 0,...oR[L],...b,...l.props.style},ref:x,...F})})});process.env.NODE_ENV!=="production"&&(as.propTypes={addEndListener:o.func,appear:o.bool,children:yi.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 rR(e){return ke("MuiBackdrop",e)}Oe("MuiBackdrop",["root","invisible"]);const sR=e=>{const{classes:t,invisible:n}=e;return de({root:["root",n&&"invisible"]},rR,t)},iR=Z("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"}}]}),Fg=f.forwardRef(function(t,n){const r=Ke({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:y,...m}=r,b={...r,component:a,invisible:l},C=sR(b),w={transition:h,root:u.Root,...g},S={...d,...p},P={component:a,slots:w,slotProps:S},[x,M]=Ve("root",{elementType:iR,externalForwardedProps:P,className:ie(C.root,i),ownerState:b}),[k,T]=Ve("transition",{elementType:as,externalForwardedProps:P,ownerState:b});return v.jsx(k,{in:c,timeout:y,...m,...T,children:v.jsx(x,{"aria-hidden":!0,...M,classes:C,ref:n,children:s})})});process.env.NODE_ENV!=="production"&&(Fg.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 aR(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:s=!1}=e,i=wg({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 lR(e){return ke("MuiBadge",e)}const Rs=Oe("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"]),Ng=10,Rg=4,cR=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:s,variant:i,classes:a={}}=e,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${pe(n.vertical)}${pe(n.horizontal)}`,`anchorOrigin${pe(n.vertical)}${pe(n.horizontal)}${pe(s)}`,`overlap${pe(s)}`,t!=="default"&&`color${pe(t)}`]};return de(l,lR,a)},uR=Z("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),dR=Z("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${pe(n.anchorOrigin.vertical)}${pe(n.anchorOrigin.horizontal)}${pe(n.overlap)}`],n.color!=="default"&&t[`color${pe(n.color)}`],n.invisible&&t.invisible]}})(He(({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:Ng*2,lineHeight:1,padding:"0 6px",height:Ng*2,borderRadius:Ng,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(rn(["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:Rg,height:Rg*2,minWidth:Rg*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Rs.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Rs.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Rs.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Rs.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Rs.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Rs.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Rs.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Rs.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function Sw(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const xw=f.forwardRef(function(t,n){const r=Ke({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:y=99,badgeContent:m,slots:b,slotProps:C,showZero:w=!1,variant:S="standard",...P}=r,{badgeContent:x,invisible:M,max:k,displayValue:T}=aR({max:y,invisible:h,badgeContent:m,showZero:w}),O=wg({anchorOrigin:Sw(s),color:g,overlap:p,variant:S,badgeContent:m}),I=M||x==null&&S!=="dot",{color:D=g,overlap:E=p,anchorOrigin:N,variant:L=S}=I?O:r,$=Sw(N),F=L!=="dot"?T:void 0,R={...r,badgeContent:x,invisible:I,max:k,displayValue:F,showZero:w,anchorOrigin:$,color:D,overlap:E,variant:L},B=cR(R),_={slots:{root:b?.root??c.Root,badge:b?.badge??c.Badge},slotProps:{root:C?.root??u.root,badge:C?.badge??u.badge}},[V,A]=Ve("root",{elementType:uR,externalForwardedProps:{..._,...P},ownerState:R,className:ie(B.root,i),ref:n,additionalProps:{as:l}}),[z,G]=Ve("badge",{elementType:dR,externalForwardedProps:_,ownerState:R,className:B.badge});return v.jsxs(V,{...A,children:[d,v.jsx(z,{...G,children:F})]})});process.env.NODE_ENV!=="production"&&(xw.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 pR=Oe("MuiBox",["root"]),fR=ci(),jn=t3({themeId:er,defaultTheme:fR,defaultClassName:pR.root,generateClassName:Fv.generate});process.env.NODE_ENV!=="production"&&(jn.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 hR(e){return ke("MuiButton",e)}const vi=Oe("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"]),Pw=f.createContext({});process.env.NODE_ENV!=="production"&&(Pw.displayName="ButtonGroupContext");const Ew=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ew.displayName="ButtonGroupButtonContext");const gR=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}${pe(t)}`,`size${pe(s)}`,`${i}Size${pe(s)}`,`color${pe(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${pe(l)}`],startIcon:["icon","startIcon",`iconSize${pe(s)}`],endIcon:["icon","endIcon",`iconSize${pe(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=de(u,hR,c);return{...c,...d}},Iw=[{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}}}],mR=Z(ir,{shouldForwardProp:e=>to(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${pe(n.color)}`],t[`size${pe(n.size)}`],t[`${n.variant}Size${pe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(He(({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"},[`&.${vi.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]},[`&.${vi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${vi.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)",[`&.${vi.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(rn()).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"},[`&.${vi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vi.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}),[`&.${vi.loading}`]:{color:"transparent"}}}]}})),bR=Z("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${pe(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}},...Iw]})),yR=Z("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${pe(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}},...Iw]})),vR=Z("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}}]})),Tw=Z("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Gn=f.forwardRef(function(t,n){const r=f.useContext(Pw),s=f.useContext(Ew),i=ai(r,t),a=Ke({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:g=!1,disableFocusRipple:h=!1,endIcon:y,focusVisibleClassName:m,fullWidth:b=!1,id:C,loading:w=null,loadingIndicator:S,loadingPosition:P="center",size:x="medium",startIcon:M,type:k,variant:T="text",...O}=a,I=dt(C),D=S??v.jsx(fi,{"aria-labelledby":I,color:"inherit",size:16}),E={...a,color:c,component:u,disabled:p,disableElevation:g,disableFocusRipple:h,fullWidth:b,loading:w,loadingIndicator:D,loadingPosition:P,size:x,type:k,variant:T},N=gR(E),L=(M||w&&P==="start")&&v.jsx(bR,{className:N.startIcon,ownerState:E,children:M||v.jsx(Tw,{className:N.loadingIconPlaceholder,ownerState:E})}),$=(y||w&&P==="end")&&v.jsx(yR,{className:N.endIcon,ownerState:E,children:y||v.jsx(Tw,{className:N.loadingIconPlaceholder,ownerState:E})}),F=s||"",R=typeof w=="boolean"?v.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:w&&v.jsx(vR,{className:N.loadingIndicator,ownerState:E,children:D})}):null;return v.jsxs(mR,{ownerState:E,className:ie(r.className,N.root,d,F),component:u,disabled:p||w,focusRipple:!h,focusVisibleClassName:ie(N.focusVisible,m),ref:n,type:k,id:w?I:C,...O,classes:N,children:[L,P!=="end"&&R,l,P==="end"&&R,$]})});process.env.NODE_ENV!=="production"&&(Gn.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 CR(e){return ke("MuiCard",e)}Oe("MuiCard",["root"]);const wR=e=>{const{classes:t}=e;return de({root:["root"]},CR,t)},SR=Z(wr,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Mw=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCard"}),{className:s,raised:i=!1,...a}=r,l={...r,raised:i},c=wR(l);return v.jsx(SR,{className:ie(c.root,s),elevation:i?8:void 0,ref:n,ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Mw.propTypes={children:o.node,classes:o.object,className:o.string,raised:Bo(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 xR(e){return ke("MuiCardContent",e)}Oe("MuiCardContent",["root"]);const PR=e=>{const{classes:t}=e;return de({root:["root"]},xR,t)},ER=Z("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Ow=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCardContent"}),{className:s,component:i="div",...a}=r,l={...r,component:i},c=PR(l);return v.jsx(ER,{as:i,className:ie(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ow.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 IR(e){return ke("MuiCardHeader",e)}const Bd=Oe("MuiCardHeader",["root","avatar","action","content","title","subheader"]),TR=e=>{const{classes:t}=e;return de({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},IR,t)},MR=Z("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Bd.title}`]:t.title},{[`& .${Bd.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),OR=Z("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),kR=Z("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),DR=Z("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${Id.root}:where(& .${Bd.title})`]:{display:"block"},[`.${Id.root}:where(& .${Bd.subheader})`]:{display:"block"}}),kw=f.forwardRef(function(t,n){const r=Ke({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={},...y}=r,m={...r,component:a,disableTypography:l},b=TR(m),C={slots:g,slotProps:{title:p,subheader:u,...h}};let w=d;const[S,P]=Ve("title",{className:b.title,elementType:$t,externalForwardedProps:C,ownerState:m,additionalProps:{variant:i?"body2":"h5",component:"span"}});w!=null&&w.type!==$t&&!l&&(w=v.jsx(S,{...P,children:w}));let x=c;const[M,k]=Ve("subheader",{className:b.subheader,elementType:$t,externalForwardedProps:C,ownerState:m,additionalProps:{variant:i?"body2":"body1",color:"textSecondary",component:"span"}});x!=null&&x.type!==$t&&!l&&(x=v.jsx(M,{...k,children:x}));const[T,O]=Ve("root",{ref:n,className:b.root,elementType:MR,externalForwardedProps:{...C,...y,component:a},ownerState:m}),[I,D]=Ve("avatar",{className:b.avatar,elementType:OR,externalForwardedProps:C,ownerState:m}),[E,N]=Ve("content",{className:b.content,elementType:DR,externalForwardedProps:C,ownerState:m}),[L,$]=Ve("action",{className:b.action,elementType:kR,externalForwardedProps:C,ownerState:m});return v.jsxs(T,{...O,children:[i&&v.jsx(I,{...D,children:i}),v.jsxs(E,{...N,children:[w,x]}),s&&v.jsx(L,{...$,children:s})]})});process.env.NODE_ENV!=="production"&&(kw.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 FR(e){return ke("PrivateSwitchBase",e)}Oe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const NR=e=>{const{classes:t,checked:n,disabled:r,edge:s}=e,i={root:["root",n&&"checked",r&&"disabled",s&&`edge${pe(s)}`],input:["input"]};return de(i,FR,t)},RR=Z(ir,{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}}]}),$R=Z("input",{name:"MuiSwitchBase",shouldForwardProp:to})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Hd=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:y,onBlur:m,onChange:b,onFocus:C,readOnly:w,required:S=!1,tabIndex:P,type:x,value:M,slots:k={},slotProps:T={},...O}=t,[I,D]=po({controlled:s,default:!!a,name:"SwitchBase",state:"checked"}),E=Go(),N=X=>{C&&C(X),E&&E.onFocus&&E.onFocus(X)},L=X=>{m&&m(X),E&&E.onBlur&&E.onBlur(X)},$=X=>{if(X.nativeEvent.defaultPrevented)return;const Y=X.target.checked;D(Y),b&&b(X,Y)};let F=l;E&&typeof F>"u"&&(F=E.disabled);const R=x==="checkbox"||x==="radio",B={...t,checked:I,disabled:F,disableFocusRipple:c,edge:u},_=NR(B),V={slots:k,slotProps:{input:g,...T}},[A,z]=Ve("root",{ref:n,elementType:RR,className:_.root,shouldForwardComponentProp:!0,externalForwardedProps:{...V,component:"span",...O},getSlotProps:X=>({...X,onFocus:Y=>{X.onFocus?.(Y),N(Y)},onBlur:Y=>{X.onBlur?.(Y),L(Y)}}),ownerState:B,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:F,role:void 0,tabIndex:null}}),[G,U]=Ve("input",{ref:h,elementType:$R,className:_.input,externalForwardedProps:V,getSlotProps:X=>({...X,onChange:Y=>{X.onChange?.(Y),$(Y)}}),ownerState:B,additionalProps:{autoFocus:r,checked:s,defaultChecked:a,disabled:F,id:R?p:void 0,name:y,readOnly:w,required:S,tabIndex:P,type:x,...x==="checkbox"&&M===void 0?{}:{value:M}}});return v.jsxs(A,{...z,children:[v.jsx(G,{...U}),I?i:d]})});process.env.NODE_ENV!=="production"&&(Hd.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:At,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 LR=vt(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"),AR=vt(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"),VR=vt(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 _R(e){return ke("MuiCheckbox",e)}const $g=Oe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),BR=e=>{const{classes:t,indeterminate:n,color:r,size:s}=e,i={root:["root",n&&"indeterminate",`color${pe(r)}`,`size${pe(s)}`]},a=de(i,_R,t);return{...t,...a}},HR=Z(Hd,{shouldForwardProp:e=>to(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${pe(n.size)}`],n.color!=="default"&&t[`color${pe(n.color)}`]]}})(He(({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(rn()).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(rn()).map(([t])=>({props:{color:t},style:{[`&.${$g.checked}, &.${$g.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${$g.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),zR=v.jsx(AR,{}),jR=v.jsx(LR,{}),GR=v.jsx(VR,{}),Na=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:s=zR,color:i="primary",icon:a=jR,indeterminate:l=!1,indeterminateIcon:c=GR,inputProps:u,size:d="medium",disableRipple:p=!1,className:g,slots:h={},slotProps:y={},...m}=r,b=l?c:a,C=l?c:s,w={...r,disableRipple:p,color:i,indeterminate:l,size:d},S=BR(w),P=y.input??u,[x,M]=Ve("root",{ref:n,elementType:HR,className:ie(S.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:y,...m},ownerState:w,additionalProps:{type:"checkbox",icon:f.cloneElement(b,{fontSize:b.props.fontSize??d}),checkedIcon:f.cloneElement(C,{fontSize:C.props.fontSize??d}),disableRipple:p,slots:h,slotProps:{input:PC(typeof P=="function"?P(w):P,{"data-indeterminate":l})}}});return v.jsx(x,{...M,classes:S})});process.env.NODE_ENV!=="production"&&(Na.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 Dw(e){return e.substring(2).toLowerCase()}function WR(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function zd(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=st(mi(t),l),p=fe(y=>{const m=u.current;u.current=!1;const b=Qt(l.current);if(!c.current||!l.current||"clientX"in y&&WR(y,b))return;if(a.current){a.current=!1;return}let C;y.composedPath?C=y.composedPath().includes(l.current):C=!b.documentElement.contains(y.target)||l.current.contains(y.target),!C&&(n||!m)&&s(y)}),g=y=>m=>{u.current=!0;const b=t.props[y];b&&b(m)},h={ref:d};return i!==!1&&(h[i]=g(i)),f.useEffect(()=>{if(i!==!1){const y=Dw(i),m=Qt(l.current),b=()=>{a.current=!0};return m.addEventListener(y,p),m.addEventListener("touchmove",b),()=>{m.removeEventListener(y,p),m.removeEventListener("touchmove",b)}}},[p,i]),r!==!1&&(h[r]=g(r)),f.useEffect(()=>{if(r!==!1){const y=Dw(r),m=Qt(l.current);return m.addEventListener(y,p),()=>{m.removeEventListener(y,p)}}},[p,r]),f.cloneElement(t,h)}process.env.NODE_ENV!=="production"&&(zd.propTypes={children:yi.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"&&(zd.propTypes=nc(zd.propTypes));const Lg=typeof sg({})=="function",UR=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),qR=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}}),Fw=(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:UR(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...qR(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const s=e.components?.MuiCssBaseline?.styleOverrides;return s&&(r=[r,s]),r},jd="mui-ecs",YR=e=>{const t=Fw(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${jd})`]={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(.${jd}))`]:{colorScheme:s.palette?.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${jd}))`]:{colorScheme:s.palette?.mode}}}),t},KR=sg(Lg?({theme:e,enableColorScheme:t})=>Fw(e,t):({theme:e})=>YR(e));function Nw(e){const t=Ke({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return v.jsxs(f.Fragment,{children:[Lg&&v.jsx(KR,{enableColorScheme:r}),!Lg&&!r&&v.jsx("span",{className:jd,style:{display:"none"}}),n]})}process.env.NODE_ENV!=="production"&&(Nw.propTypes={children:o.node,enableColorScheme:o.bool});function Rw(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function XR(e){const t=Qt(e);return t.body===e?Cr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function yc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $w(e){return parseInt(Cr(e).getComputedStyle(e).paddingRight,10)||0}function ZR(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 Lw(e,t,n,r,s){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!ZR(a);l&&c&&yc(a,s)})}function Ag(e,t){let n=-1;return e.some((r,s)=>t(r)?(n=s,!0):!1),n}function QR(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(XR(r)){const a=Rw(Cr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${$w(r)+a}px`;const l=Qt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${$w(c)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Qt(r).body;else{const a=r.parentElement,l=Cr(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 JR(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class e9{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&&yc(t.modalRef,!1);const s=JR(n);Lw(n,t.mount,t.modalRef,s,!0);const i=Ag(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=Ag(this.containers,i=>i.modals.includes(t)),s=this.containers[r];s.restore||(s.restore=QR(s,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const s=Ag(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&&yc(t.modalRef,n),Lw(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&&yc(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ra(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const t9=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function n9(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 o9(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 r9(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||o9(e))}function s9(e){const t=[],n=[];return Array.from(e.querySelectorAll(t9)).forEach((r,s)=>{const i=n9(r);i===-1||!r9(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 i9(){return!0}function $a(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:s=!1,getTabbable:i=s9,isEnabled:a=i9,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),y=f.useRef(null),m=st(mi(t),y),b=f.useRef(null);f.useEffect(()=>{!l||!y.current||(h.current=!n)},[n,l]),f.useEffect(()=>{if(!l||!y.current)return;const S=Qt(y.current),P=Ra(S);return y.current.contains(P)||(y.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
|
-
`)),y.current.setAttribute("tabIndex","-1")),h.current&&y.current.focus()),()=>{s||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),f.useEffect(()=>{if(!l||!y.current)return;const S=Qt(y.current),P=Ra(S),x=T=>{b.current=T,!(r||!a()||T.key!=="Tab")&&P===y.current&&T.shiftKey&&(c.current=!0,d.current&&d.current.focus())},M=()=>{const T=y.current;if(T===null)return;const O=Ra(S);if(!S.hasFocus()||!a()||c.current){c.current=!1;return}if(T.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 I=[];if((O===u.current||O===d.current)&&(I=i(y.current)),I.length>0){const D=!!(b.current?.shiftKey&&b.current?.key==="Tab"),E=I[0],N=I[I.length-1];typeof E!="string"&&typeof N!="string"&&(D?N.focus():E.focus())}else T.focus()};S.addEventListener("focusin",M),S.addEventListener("keydown",x,!0);const k=setInterval(()=>{const T=Ra(S);T&&T.tagName==="BODY"&&M()},50);return()=>{clearInterval(k),S.removeEventListener("focusin",M),S.removeEventListener("keydown",x,!0)}},[n,r,s,a,l,i]);const C=S=>{p.current===null&&(p.current=S.relatedTarget),h.current=!0,g.current=S.target;const P=t.props.onFocus;P&&P(S)},w=S=>{p.current===null&&(p.current=S.relatedTarget),h.current=!0};return v.jsxs(f.Fragment,{children:[v.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),f.cloneElement(t,{ref:m,onFocus:C}),v.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&($a.propTypes={children:yi,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&($a.propTypes=nc($a.propTypes));function a9(e){return typeof e=="function"?e():e}function l9(e){return e?e.props.hasOwnProperty("in"):!1}const Aw=()=>{},Gd=new e9;function c9(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),y=st(h,d),[m,b]=f.useState(!u),C=l9(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const S=()=>Qt(g.current),P=()=>(p.current.modalRef=h.current,p.current.mount=g.current,p.current),x=()=>{Gd.mount(P(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},M=fe(()=>{const $=a9(t)||S().body;Gd.add(P(),$),h.current&&x()}),k=()=>Gd.isTopModal(P()),T=fe($=>{g.current=$,$&&(u&&k()?x():h.current&&yc(h.current,w))}),O=f.useCallback(()=>{Gd.remove(P(),w)},[w]);f.useEffect(()=>()=>{O()},[O]),f.useEffect(()=>{u?M():(!C||!s)&&O()},[u,O,C,s,M]);const I=$=>F=>{$.onKeyDown?.(F),!(F.key!=="Escape"||F.which===229||!k())&&(n||(F.stopPropagation(),c&&c(F,"escapeKeyDown")))},D=$=>F=>{$.onClick?.(F),F.target===F.currentTarget&&c&&c(F,"backdropClick")};return{getRootProps:($={})=>{const F=zo(e);delete F.onTransitionEnter,delete F.onTransitionExited;const R={...F,...$};return{role:"presentation",...R,onKeyDown:I(R),ref:y}},getBackdropProps:($={})=>{const F=$;return{"aria-hidden":!0,...F,onClick:D(F),open:u}},getTransitionProps:()=>{const $=()=>{b(!1),i&&i()},F=()=>{b(!0),a&&a(),s&&O()};return{onEnter:rg($,l?.props.onEnter??Aw),onExited:rg(F,l?.props.onExited??Aw)}},rootRef:y,portalRef:T,isTopModal:k,exited:m,hasTransition:C}}function u9(e){return ke("MuiModal",e)}Oe("MuiModal",["root","hidden","backdrop"]);const d9=e=>{const{open:t,exited:n,classes:r}=e;return de({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},u9,r)},p9=Z("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(He(({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"}}]}))),f9=Z(Fg,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Vg=f.forwardRef(function(t,n){const r=Ke({name:"MuiModal",props:t}),{BackdropComponent:s=f9,BackdropProps:i,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:p,components:g={},componentsProps:h={},disableAutoFocus:y=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:b=!1,disablePortal:C=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:P=!1,keepMounted:x=!1,onClose:M,onTransitionEnter:k,onTransitionExited:T,open:O,slotProps:I={},slots:D={},theme:E,...N}=r,L={...r,closeAfterTransition:c,disableAutoFocus:y,disableEnforceFocus:m,disableEscapeKeyDown:b,disablePortal:C,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:P,keepMounted:x},{getRootProps:$,getBackdropProps:F,getTransitionProps:R,portalRef:B,isTopModal:_,exited:V,hasTransition:A}=c9({...L,rootRef:n}),z={...L,exited:V},G=d9(z),U={};if(u.props.tabIndex===void 0&&(U.tabIndex="-1"),A){const{onEnter:W,onExited:J}=R();U.onEnter=W,U.onExited=J}const X={slots:{root:g.Root,backdrop:g.Backdrop,...D},slotProps:{...h,...I}},[Y,ee]=Ve("root",{ref:n,elementType:p9,externalForwardedProps:{...X,...N,component:p},getSlotProps:$,ownerState:z,className:ie(l,G?.root,!z.open&&z.exited&&G?.hidden)}),[oe,K]=Ve("backdrop",{ref:i?.ref,elementType:s,externalForwardedProps:X,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:W=>F({...W,onClick:J=>{W?.onClick&&W.onClick(J)}}),className:ie(i?.className,G?.backdrop),ownerState:z});return!x&&!O&&(!A||V)?null:v.jsx(gc,{ref:B,container:d,disablePortal:C,children:v.jsxs(Y,{...ee,children:[!P&&s?v.jsx(oe,{...K}):null,v.jsx($a,{disableEnforceFocus:m,disableAutoFocus:y,disableRestoreFocus:w,isEnabled:_,open:O,children:f.cloneElement(u,U)})]})})});process.env.NODE_ENV!=="production"&&(Vg.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:yi.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([ar,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 h9(e){return ke("MuiDialog",e)}const vc=Oe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),_g=f.createContext({});process.env.NODE_ENV!=="production"&&(_g.displayName="DialogContext");const g9=Z(Fg,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),m9=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:s,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${pe(n)}`],paper:["paper",`paperScroll${pe(n)}`,`paperWidth${pe(String(r))}`,s&&"paperFullWidth",i&&"paperFullScreen"]};return de(a,h9,t)},b9=Z(Vg,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),y9=Z("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${pe(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"}}}]}),v9=Z(wr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${pe(n.scroll)}`],t[`paperWidth${pe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(He(({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)`,[`&.${vc.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}`,[`&.${vc.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,[`&.${vc.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Bg=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),s=uo(),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:y=!1,fullWidth:m=!1,maxWidth:b="sm",onClick:C,onClose:w,open:S,PaperComponent:P=wr,PaperProps:x={},scroll:M="paper",slots:k={},slotProps:T={},TransitionComponent:O=as,transitionDuration:I=i,TransitionProps:D,...E}=r,N={...r,disableEscapeKeyDown:h,fullScreen:y,fullWidth:m,maxWidth:b,scroll:M},L=m9(N),$=f.useRef(),F=ce=>{$.current=ce.target===ce.currentTarget},R=ce=>{C&&C(ce),$.current&&($.current=null,w&&w(ce,"backdropClick"))},B=dt(l),_=f.useMemo(()=>({titleId:B}),[B]),V={transition:O,...k},A={transition:D,paper:x,backdrop:d,...T},z={slots:V,slotProps:A},[G,U]=Ve("root",{elementType:b9,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:N,className:ie(L.root,g),ref:n}),[X,Y]=Ve("backdrop",{elementType:g9,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:N}),[ee,oe]=Ve("paper",{elementType:v9,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:N,className:ie(L.paper,x.className)}),[K,W]=Ve("container",{elementType:y9,externalForwardedProps:z,ownerState:N,className:L.container}),[J,q]=Ve("transition",{elementType:as,externalForwardedProps:z,ownerState:N,additionalProps:{appear:!0,in:S,timeout:I,role:"presentation"}});return v.jsx(G,{closeAfterTransition:!0,slots:{backdrop:X},slotProps:{backdrop:{transitionDuration:I,as:u,...Y}},disableEscapeKeyDown:h,onClose:w,open:S,onClick:R,...U,...E,children:v.jsx(J,{...q,children:v.jsx(K,{onMouseDown:F,...W,children:v.jsx(ee,{as:P,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":B,"aria-modal":c,...oe,children:v.jsx(_g.Provider,{value:_,children:p})})})})})});process.env.NODE_ENV!=="production"&&(Bg.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 C9(e){return ke("MuiDialogActions",e)}Oe("MuiDialogActions",["root","spacing"]);const w9=e=>{const{classes:t,disableSpacing:n}=e;return de({root:["root",!n&&"spacing"]},C9,t)},S9=Z("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}}}]}),Hg=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:i=!1,...a}=r,l={...r,disableSpacing:i},c=w9(l);return v.jsx(S9,{className:ie(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Hg.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 x9(e){return ke("MuiDialogContent",e)}Oe("MuiDialogContent",["root","dividers"]);function P9(e){return ke("MuiDialogTitle",e)}const E9=Oe("MuiDialogTitle",["root"]),I9=e=>{const{classes:t,dividers:n}=e;return de({root:["root",n&&"dividers"]},x9,t)},T9=Z("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(He(({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:{[`.${E9.root} + &`]:{paddingTop:0}}}]}))),Wd=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:s,dividers:i=!1,...a}=r,l={...r,dividers:i},c=I9(l);return v.jsx(T9,{className:ie(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Wd.propTypes={children:o.node,classes:o.object,className:o.string,dividers:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const M9=e=>{const{classes:t}=e;return de({root:["root"]},P9,t)},O9=Z($t,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Vw=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:s,id:i,...a}=r,l=r,c=M9(l),{titleId:u=i}=f.useContext(_g);return v.jsx(O9,{component:"h2",className:ie(c.root,s),ownerState:l,ref:n,variant:"h6",id:i??u,...a})});process.env.NODE_ENV!=="production"&&(Vw.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 k9(e){return ke("MuiDivider",e)}const _w=Oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),D9=e=>{const{absolute:t,children:n,classes:r,flexItem:s,light:i,orientation:a,textAlign:l,variant:c}=e;return de({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"]},k9,r)},F9=Z("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]}})(He(({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%"}}}]}))),N9=Z("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(He(({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)`}}]}))),Cc=f.forwardRef(function(t,n){const r=Ke({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",...y}=r,m={...r,absolute:s,component:c,flexItem:u,light:d,orientation:l,role:p,textAlign:g,variant:h},b=D9(m);return v.jsx(F9,{as:c,className:ie(b.root,a),role:p,ref:n,ownerState:m,"aria-orientation":p==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...y,children:i?v.jsx(N9,{className:b.wrapper,ownerState:m,children:i}):null})});Cc&&(Cc.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(Cc.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 R9=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${pe(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},u=de(c,$N,t);return{...t,...u}},$9=Z(Ad,{shouldForwardProp:e=>to(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...$d(e,t),!n.disableUnderline&&t.underline]}})(He(({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}},[`&.${Wo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Wo.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"},[`&.${Wo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wo.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(.${Wo.disabled}, .${Wo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Wo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(rn()).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}}]}})),L9=Z(Vd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ld})(He(({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}}]}))),Ud=f.forwardRef(function(t,n){const r=Ke({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",...y}=r,m={...r,disableUnderline:s,fullWidth:l,inputComponent:u,multiline:d,type:h},b=R9(r),C={root:{ownerState:m},input:{ownerState:m}},w=p??a?so(C,p??a):C,S=g.root??i.Root??$9,P=g.input??i.Input??L9;return v.jsx(Fa,{slots:{root:S,input:P},slotProps:w,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:h,...y,classes:b})});process.env.NODE_ENV!=="production"&&(Ud.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:At,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}),Ud.muiName="Input";function A9(e){return ke("MuiFormControl",e)}Oe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const V9=e=>{const{classes:t,margin:n,fullWidth:r}=e,s={root:["root",n!=="none"&&`margin${pe(n)}`,r&&"fullWidth"]};return de(s,A9,t)},_9=Z("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${pe(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%"}}]}),$s=f.forwardRef(function(t,n){const r=Ke({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:y=!1,size:m="medium",variant:b="outlined",...C}=r,w={...r,color:a,component:l,disabled:c,error:u,fullWidth:p,hiddenLabel:g,margin:h,required:y,size:m,variant:b},S=V9(w),[P,x]=f.useState(()=>{let F=!1;return s&&f.Children.forEach(s,R=>{if(!va(R,["Input","Select"]))return;const B=va(R,["Select"])?R.props.input:R;B&&kN(B.props)&&(F=!0)}),F}),[M,k]=f.useState(()=>{let F=!1;return s&&f.Children.forEach(s,R=>{va(R,["Input","Select"])&&(Rd(R.props,!0)||Rd(R.props.inputProps,!0))&&(F=!0)}),F}),[T,O]=f.useState(!1);c&&T&&O(!1);const I=d!==void 0&&!c?d:T;let D;const E=f.useRef(!1);process.env.NODE_ENV!=="production"&&(D=()=>(E.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
187
|
-
`)),E.current=!0,()=>{E.current=!1}));const N=f.useCallback(()=>{k(!0)},[]),L=f.useCallback(()=>{k(!1)},[]),$=f.useMemo(()=>({adornedStart:P,setAdornedStart:x,color:a,disabled:c,error:u,filled:M,focused:I,fullWidth:p,hiddenLabel:g,size:m,onBlur:()=>{O(!1)},onFocus:()=>{O(!0)},onEmpty:L,onFilled:N,registerEffect:D,required:y,variant:b}),[P,a,c,u,M,I,p,g,D,L,N,y,m,b]);return v.jsx(bc.Provider,{value:$,children:v.jsx(_9,{as:l,ownerState:w,className:ie(S.root,i),ref:n,...C,children:s})})});process.env.NODE_ENV!=="production"&&($s.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 B9(e){return ke("MuiFormControlLabel",e)}const La=Oe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),H9=e=>{const{classes:t,disabled:n,labelPlacement:r,error:s,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${pe(r)}`,s&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",s&&"error"]};return de(a,B9,t)},z9=Z("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${La.label}`]:t.label},t.root,t[`labelPlacement${pe(n.labelPlacement)}`]]}})(He(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${La.disabled}`]:{cursor:"default"},[`& .${La.label}`]:{[`&.${La.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}}]}))),j9=Z("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(He(({theme:e})=>({[`&.${La.error}`]:{color:(e.vars||e).palette.error.main}}))),wc=f.forwardRef(function(t,n){const r=Ke({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:y,required:m,slots:b={},slotProps:C={},value:w,...S}=r,P=Go(),x=c??l.props.disabled??P?.disabled,M=m??l.props.required,k={disabled:x,required:M};["checked","name","onChange","value","inputRef"].forEach($=>{typeof l.props[$]>"u"&&typeof r[$]<"u"&&(k[$]=r[$])});const T=Fs({props:r,muiFormControl:P,states:["error"]}),O={...r,disabled:x,labelPlacement:g,required:M,error:T.error},I=H9(O),D={slots:b,slotProps:{...a,...C}},[E,N]=Ve("typography",{elementType:$t,externalForwardedProps:D,ownerState:O});let L=p;return L!=null&&L.type!==$t&&!u&&(L=v.jsx(E,{component:"span",...N,className:ie(I.label,N?.className),children:L})),v.jsxs(z9,{className:ie(I.root,i),ownerState:O,ref:n,...S,children:[f.cloneElement(l,k),M?v.jsxs("div",{children:[L,v.jsxs(j9,{ownerState:O,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}):L]})});process.env.NODE_ENV!=="production"&&(wc.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:At,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 G9(e){return ke("MuiFormGroup",e)}Oe("MuiFormGroup",["root","row","error"]);const W9=e=>{const{classes:t,row:n,error:r}=e;return de({root:["root",n&&"row",r&&"error"]},G9,t)},U9=Z("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"}}]}),qd=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormGroup"}),{className:s,row:i=!1,...a}=r,l=Go(),c=Fs({props:r,muiFormControl:l,states:["error"]}),u={...r,row:i,error:c.error},d=W9(u);return v.jsx(U9,{className:ie(d.root,s),ownerState:u,ref:n,...a})});process.env.NODE_ENV!=="production"&&(qd.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 q9(e){return ke("MuiFormHelperText",e)}const Bw=Oe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Hw;const Y9=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${pe(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return de(u,q9,t)},K9=Z("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${pe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(He(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Bw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Bw.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}}]}))),zg=f.forwardRef(function(t,n){const r=Ke({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,...y}=r,m=Go(),b=Fs({props:r,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),C={...r,component:a,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete C.ownerState;const w=Y9(C);return v.jsx(K9,{as:a,className:ie(w.root,i),ref:n,...y,ownerState:C,children:s===" "?Hw||(Hw=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):s})});process.env.NODE_ENV!=="production"&&(zg.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 X9(e){return ke("MuiFormLabel",e)}const Sc=Oe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Z9=e=>{const{classes:t,color:n,focused:r,disabled:s,error:i,filled:a,required:l}=e,c={root:["root",`color${pe(n)}`,s&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return de(c,X9,t)},Q9=Z("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(He(({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(rn()).map(([t])=>({props:{color:t},style:{[`&.${Sc.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Sc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Sc.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),J9=Z("span",{name:"MuiFormLabel",slot:"Asterisk"})(He(({theme:e})=>({[`&.${Sc.error}`]:{color:(e.vars||e).palette.error.main}}))),jg=f.forwardRef(function(t,n){const r=Ke({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,y=Go(),m=Fs({props:r,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),b={...r,color:m.color||"primary",component:l,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},C=Z9(b);return v.jsxs(Q9,{as:l,ownerState:b,className:ie(C.root,i),ref:n,...h,children:[s,m.required&&v.jsxs(J9,{ownerState:b,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(jg.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 bt=sC({createStyledComponent:Z("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Ke({props:e,name:"MuiGrid"}),useTheme:uo});if(process.env.NODE_ENV!=="production"&&(bt.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=bt,t=_4("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function Gg(e){return`scale(${e}, ${e**2})`}const e$={entering:{opacity:1,transform:Gg(1)},entered:{opacity:1,transform:"none"}},Wg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ci=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:y,timeout:m="auto",TransitionComponent:b=Ho,...C}=t,w=On(),S=f.useRef(),P=uo(),x=f.useRef(null),M=st(x,mi(i),n),k=$=>F=>{if($){const R=x.current;F===void 0?$(R):$(R,F)}},T=k(d),O=k(($,F)=>{kC($);const{duration:R,delay:B,easing:_}=Pa({style:y,timeout:m,easing:a},{mode:"enter"});let V;m==="auto"?(V=P.transitions.getAutoHeightDuration($.clientHeight),S.current=V):V=R,$.style.transition=[P.transitions.create("opacity",{duration:V,delay:B}),P.transitions.create("transform",{duration:Wg?V:V*.666,delay:B,easing:_})].join(","),c&&c($,F)}),I=k(u),D=k(h),E=k($=>{const{duration:F,delay:R,easing:B}=Pa({style:y,timeout:m,easing:a},{mode:"exit"});let _;m==="auto"?(_=P.transitions.getAutoHeightDuration($.clientHeight),S.current=_):_=F,$.style.transition=[P.transitions.create("opacity",{duration:_,delay:R}),P.transitions.create("transform",{duration:Wg?_:_*.666,delay:Wg?R:R||_*.333,easing:B})].join(","),$.style.opacity=0,$.style.transform=Gg(.75),p&&p($)}),N=k(g),L=$=>{m==="auto"&&w.start(S.current||0,$),r&&r(x.current,$)};return v.jsx(b,{appear:s,in:l,nodeRef:x,onEnter:O,onEntered:I,onEntering:T,onExit:E,onExited:N,onExiting:D,addEndListener:L,timeout:m==="auto"?null:m,...C,children:($,{ownerState:F,...R})=>f.cloneElement(i,{style:{opacity:0,transform:Gg(.75),visibility:$==="exited"&&!l?"hidden":void 0,...e$[$],...y,...i.props.style},ref:M,...R})})});process.env.NODE_ENV!=="production"&&(Ci.propTypes={addEndListener:o.func,appear:o.bool,children:yi.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})])}),Ci&&(Ci.muiSupportAuto=!0);function t$(e){return ke("MuiIcon",e)}Oe("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const n$=e=>{const{color:t,fontSize:n,classes:r}=e,s={root:["root",t!=="inherit"&&`color${pe(t)}`,`fontSize${pe(n)}`]};return de(s,t$,r)},o$=Z("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${pe(n.color)}`],t[`fontSize${pe(n.fontSize)}`]]}})(He(({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(rn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Wr=f.forwardRef(function(t,n){const r=Ke({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=n$(d);return v.jsx(o$,{as:l,className:ie(s,"notranslate",p.root,i),ownerState:d,"aria-hidden":!0,ref:n,...u})});process.env.NODE_ENV!=="production"&&(Wr.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])}),Wr.muiName="Icon";const r$=e=>{const{classes:t,disableUnderline:n}=e,s=de({root:["root",!n&&"underline"],input:["input"]},NN,t);return{...t,...s}},s$=Z(Ad,{shouldForwardProp:e=>to(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...$d(e,t),!n.disableUnderline&&t.underline]}})(He(({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"},[`&.${Ns.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ns.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(.${Ns.disabled}, .${Ns.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ns.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(rn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),i$=Z(Vd,{name:"MuiInput",slot:"Input",overridesResolver:Ld})({}),Yd=f.forwardRef(function(t,n){const r=Ke({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,y=r$(r),b={root:{ownerState:{disableUnderline:s}}},C=d??a?so(d??a,b):b,w=p.root??i.Root??s$,S=p.input??i.Input??i$;return v.jsx(Fa,{slots:{root:w,input:S},slotProps:C,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:g,...h,classes:y})});process.env.NODE_ENV!=="production"&&(Yd.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:At,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}),Yd.muiName="Input";function a$(e){return ke("MuiInputAdornment",e)}const Ug=Oe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var zw;const l$=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${pe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},c$=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:s,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",s&&`position${pe(s)}`,a,r&&"hiddenLabel",i&&`size${pe(i)}`]};return de(l,a$,t)},u$=Z("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:l$})(He(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Ug.positionStart}&:not(.${Ug.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Aa=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputAdornment"}),{children:s,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...p}=r,g=Go()||{};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 y={...r,hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:l,position:u,variant:h},m=c$(y);return v.jsx(bc.Provider,{value:null,children:v.jsx(u$,{as:a,ownerState:y,className:ie(m.root,i),ref:n,...p,children:typeof s=="string"&&!c?v.jsx($t,{color:"textSecondary",children:s}):v.jsxs(f.Fragment,{children:[u==="start"?zw||(zw=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,s]})})})});process.env.NODE_ENV!=="production"&&(Aa.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 d$(e){return ke("MuiInputLabel",e)}Oe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const p$=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${pe(r)}`,a],asterisk:[l&&"asterisk"]},u=de(c,d$,t);return{...t,...u}},f$=Z(jg,{shouldForwardProp:e=>to(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Sc.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]]}})(He(({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)"}}]}))),wi=f.forwardRef(function(t,n){const r=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:i,shrink:a,variant:l,className:c,...u}=r,d=Go();let p=a;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const g=Fs({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},y=p$(h);return v.jsx(f$,{"data-shrink":p,ref:n,className:ie(y.root,c),...u,ownerState:h,classes:y})});process.env.NODE_ENV!=="production"&&(wi.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 h$(e){return ke("MuiLinearProgress",e)}Oe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const qg=4,Yg=tr`
|
|
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
|
-
`,g$=typeof Yg!="string"?Es`
|
|
203
|
-
animation: ${Yg} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
204
|
-
`:null,Kg=tr`
|
|
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
|
-
`,m$=typeof Kg!="string"?Es`
|
|
220
|
-
animation: ${Kg} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
221
|
-
`:null,Xg=tr`
|
|
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
|
-
`,b$=typeof Xg!="string"?Es`
|
|
237
|
-
animation: ${Xg} 3s infinite linear;
|
|
238
|
-
`:null,y$=e=>{const{classes:t,variant:n,color:r}=e,s={root:["root",`color${pe(r)}`,n],dashed:["dashed",`dashedColor${pe(r)}`],bar1:["bar","bar1",`barColor${pe(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${pe(r)}`,n==="buffer"&&`color${pe(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return de(s,h$,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),v$=Z("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${pe(n.color)}`],t[n.variant]]}})(He(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(rn()).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)"}}]}))),C$=Z("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${pe(n.color)}`]]}})(He(({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(rn()).map(([t])=>{const n=Zg(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),b$||{animation:`${Xg} 3s infinite linear`}),w$=Z("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${pe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(He(({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(rn()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${qg}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${qg}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:g$||{animation:`${Yg} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),S$=Z("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${pe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(He(({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(rn()).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(rn()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Zg(e,t),transition:`transform .${qg}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:m$||{animation:`${Kg} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),jw=f.forwardRef(function(t,n){const r=Ke({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=y$(d),g=Gt(),h={},y={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),y.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),y.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(v$,{className:ie(p.root,s),ownerState:d,role:"progressbar",...h,ref:n,...u,children:[c==="buffer"?v.jsx(C$,{className:p.dashed,ownerState:d}):null,v.jsx(w$,{className:p.bar1,ownerState:d,style:y.bar1}),c==="determinate"?null:v.jsx(S$,{className:p.bar2,ownerState:d,style:y.bar2})]})});process.env.NODE_ENV!=="production"&&(jw.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 Uo=f.createContext({});process.env.NODE_ENV!=="production"&&(Uo.displayName="ListContext");function x$(e){return ke("MuiList",e)}Oe("MuiList",["root","padding","dense","subheader"]);const P$=e=>{const{classes:t,disablePadding:n,dense:r,subheader:s}=e;return de({root:["root",!n&&"padding",r&&"dense",s&&"subheader"]},x$,t)},E$=Z("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}}]}),ls=f.forwardRef(function(t,n){const r=Ke({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=P$(g);return v.jsx(Uo.Provider,{value:p,children:v.jsxs(E$,{as:a,className:ie(h.root,i),ref:n,ownerState:g,...d,children:[u,s]})})});process.env.NODE_ENV!=="production"&&(ls.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 I$(e){return ke("MuiListItem",e)}Oe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function T$(e){return ke("MuiListItemButton",e)}const Va=Oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),M$=(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]},O$=e=>{const{alignItems:t,classes:n,dense:r,disabled:s,disableGutters:i,divider:a,selected:l}=e,u=de({root:["root",r&&"dense",!i&&"gutters",a&&"divider",s&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},T$,n);return{...n,...u}},k$=Z(ir,{shouldForwardProp:e=>to(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:M$})(He(({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"}},[`&.${Va.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Va.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Va.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)}},[`&.${Va.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Va.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}}]}))),Si=f.forwardRef(function(t,n){const r=Ke({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,...y}=r,m=f.useContext(Uo),b=f.useMemo(()=>({dense:c||m.dense||!1,alignItems:s,disableGutters:u}),[s,m.dense,c,u]),C=f.useRef(null);ht(()=>{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 w={...r,alignItems:s,dense:b.dense,disableGutters:u,divider:d,selected:g},S=O$(w),P=st(C,n);return v.jsx(Uo.Provider,{value:b,children:v.jsx(k$,{ref:P,href:y.href||y.to,component:(y.href||y.to)&&a==="div"?"button":a,focusVisibleClassName:ie(S.focusVisible,p),ownerState:w,className:ie(S.root,h),...y,classes:S,children:l})})});process.env.NODE_ENV!=="production"&&(Si.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 D$(e){return ke("MuiListItemSecondaryAction",e)}Oe("MuiListItemSecondaryAction",["root","disableGutters"]);const F$=e=>{const{disableGutters:t,classes:n}=e;return de({root:["root",t&&"disableGutters"]},D$,n)},N$=Z("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}}]}),Qg=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:s,...i}=r,a=f.useContext(Uo),l={...r,disableGutters:a.disableGutters},c=F$(l);return v.jsx(N$,{className:ie(c.root,s),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Qg.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])}),Qg.muiName="ListItemSecondaryAction";const R$=(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]},$$=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:s,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return de({root:["root",r&&"dense",!s&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},I$,n)},L$=Z("div",{name:"MuiListItem",slot:"Root",overridesResolver:R$})(He(({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:{[`& > .${Va.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}}]}))),A$=Z("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Jg=f.forwardRef(function(t,n){const r=Ke({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:y=!1,disablePadding:m=!1,divider:b=!1,secondaryAction:C,slotProps:w={},slots:S={},...P}=r,x=f.useContext(Uo),M=f.useMemo(()=>({dense:h||x.dense||!1,alignItems:s,disableGutters:y}),[s,x.dense,h,y]),k=f.useRef(null),T=f.Children.toArray(i),O=T.length&&va(T[T.length-1],["ListItemSecondaryAction"]),I={...r,alignItems:s,dense:M.dense,disableGutters:y,disablePadding:m,divider:b,hasSecondaryAction:O},D=$$(I),E=st(k,n),N={slots:S,slotProps:w},[L,$]=Ve("secondaryAction",{elementType:Qg,externalForwardedProps:N,ownerState:I,className:D.secondaryAction}),F=S.root||c.Root||L$,R=w.root||u.root||{},B={className:ie(D.root,R.className,a),...P};let _=l||"li";return O?(_=!B.component&&!l?"div":_,d==="li"&&(_==="li"?_="div":B.component==="li"&&(B.component="div")),v.jsx(Uo.Provider,{value:M,children:v.jsxs(A$,{as:d,className:ie(D.container,p),ref:E,ownerState:I,...g,children:[v.jsx(F,{...R,...!Ea(F)&&{as:_,ownerState:{...I,...R.ownerState}},...B,children:T}),T.pop()]})})):v.jsx(Uo.Provider,{value:M,children:v.jsxs(F,{...R,as:_,ref:E,...!Ea(F)&&{ownerState:{...I,...R.ownerState}},...B,children:[T,C&&v.jsx(L,{...$,children:C})]})})});process.env.NODE_ENV!=="production"&&(Jg.propTypes={alignItems:o.oneOf(["center","flex-start"]),children:Bo(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(va(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:ac,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 V$(e){return ke("MuiListItemAvatar",e)}Oe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const _$=e=>{const{alignItems:t,classes:n}=e;return de({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},V$,n)},B$=Z("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}}]}),em=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemAvatar"}),{className:s,...i}=r,a=f.useContext(Uo),l={...r,alignItems:a.alignItems},c=_$(l);return v.jsx(B$,{className:ie(c.root,s),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(em.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 H$(e){return ke("MuiListItemIcon",e)}const Gw=Oe("MuiListItemIcon",["root","alignItemsFlexStart"]),z$=e=>{const{alignItems:t,classes:n}=e;return de({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},H$,n)},j$=Z("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(He(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),xi=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemIcon"}),{className:s,...i}=r,a=f.useContext(Uo),l={...r,alignItems:a.alignItems},c=z$(l);return v.jsx(j$,{className:ie(c.root,s),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(xi.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 G$(e){return ke("MuiListItemText",e)}const Pi=Oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),W$=e=>{const{classes:t,inset:n,primary:r,secondary:s,dense:i}=e;return de({root:["root",n&&"inset",i&&"dense",r&&s&&"multiline"],primary:["primary"],secondary:["secondary"]},G$,t)},U$=Z("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pi.primary}`]:t.primary},{[`& .${Pi.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,[`.${Id.root}:where(& .${Pi.primary})`]:{display:"block"},[`.${Id.root}:where(& .${Pi.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Ur=f.forwardRef(function(t,n){const r=Ke({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={},...y}=r,{dense:m}=f.useContext(Uo);let b=c??s,C=d;const w={...r,disableTypography:a,inset:l,primary:!!b,secondary:!!C,dense:m},S=W$(w),P={slots:g,slotProps:{primary:u,secondary:p,...h}},[x,M]=Ve("root",{className:ie(S.root,i),elementType:U$,externalForwardedProps:{...P,...y},ownerState:w,ref:n}),[k,T]=Ve("primary",{className:S.primary,elementType:$t,externalForwardedProps:P,ownerState:w}),[O,I]=Ve("secondary",{className:S.secondary,elementType:$t,externalForwardedProps:P,ownerState:w});return b!=null&&b.type!==$t&&!a&&(b=v.jsx(k,{variant:m?"body2":"body1",component:T?.variant?void 0:"span",...T,children:b})),C!=null&&C.type!==$t&&!a&&(C=v.jsx(O,{variant:"body2",color:"textSecondary",...I,children:C})),v.jsxs(x,{...M,children:[b,C]})});process.env.NODE_ENV!=="production"&&(Ur.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 tm(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ww(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Uw(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 xc(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")||!Uw(l,i)||c)l=s(e,l,n);else return l.focus(),!0}return!1}const nm=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),y=f.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ht(()=>{s&&h.current.focus()},[s]),f.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:P})=>{const x=!h.current.style.width;if(S.clientHeight<h.current.clientHeight&&x){const M=`${Rw(Cr(S))}px`;h.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=M,h.current.style.width=`calc(100% + ${M})`}return h.current}}),[]);const m=S=>{const P=h.current,x=S.key;if(S.ctrlKey||S.metaKey||S.altKey){d&&d(S);return}const k=Ra(Qt(P));if(x==="ArrowDown")S.preventDefault(),xc(P,k,u,c,tm);else if(x==="ArrowUp")S.preventDefault(),xc(P,k,u,c,Ww);else if(x==="Home")S.preventDefault(),xc(P,null,u,c,tm);else if(x==="End")S.preventDefault(),xc(P,null,u,c,Ww);else if(x.length===1){const T=y.current,O=x.toLowerCase(),I=performance.now();T.keys.length>0&&(I-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&O!==T.keys[0]&&(T.repeating=!1)),T.lastTime=I,T.keys.push(O);const D=k&&!T.repeating&&Uw(k,T);T.previousKeyMatched&&(D||xc(P,k,!1,c,tm,T))?S.preventDefault():T.previousKeyMatched=!1}d&&d(S)},b=st(h,n);let C=-1;f.Children.forEach(a,(S,P)=>{if(!f.isValidElement(S)){C===P&&(C+=1,C>=a.length&&(C=-1));return}process.env.NODE_ENV!=="production"&&Ts.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
239
|
-
`)),S.props.disabled||(p==="selectedMenu"&&S.props.selected||C===-1)&&(C=P),C===P&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(C+=1,C>=a.length&&(C=-1))});const w=f.Children.map(a,(S,P)=>{if(P===C){const x={};return i&&(x.autoFocus=!0),S.props.tabIndex===void 0&&p==="selectedMenu"&&(x.tabIndex=0),f.cloneElement(S,x)}return S});return v.jsx(ls,{role:"menu",ref:b,className:l,onKeyDown:m,tabIndex:s?0:-1,...g,children:w})});process.env.NODE_ENV!=="production"&&(nm.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 q$(e){return ke("MuiPopover",e)}Oe("MuiPopover",["root","paper"]);function qw(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Yw(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Kw(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Pc(e){return typeof e=="function"?e():e}const Y$=e=>{const{classes:t}=e;return de({root:["root"],paper:["paper"]},q$,t)},K$=Z(Vg,{name:"MuiPopover",slot:"Root"})({}),Xw=Z(wr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Zw=f.forwardRef(function(t,n){const r=Ke({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:y,PaperProps:m={},slots:b={},slotProps:C={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:P="auto",TransitionProps:x={},disableScrollLock:M=!1,...k}=r,T=f.useRef(),O={...r,anchorOrigin:a,anchorReference:c,elevation:g,marginThreshold:h,transformOrigin:w,TransitionComponent:S,transitionDuration:P,TransitionProps:x},I=Y$(O),D=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 W=Pc(i),J=W&&W.nodeType===1?W:Qt(T.current).body,q=J.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ce=J.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ce.top===0&&ce.left===0&&ce.right===0&&ce.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:q.top+qw(q,a.vertical),left:q.left+Yw(q,a.horizontal)}},[i,a.horizontal,a.vertical,l,c]),E=f.useCallback(W=>({vertical:qw(W,w.vertical),horizontal:Yw(W,w.horizontal)}),[w.horizontal,w.vertical]),N=f.useCallback(W=>{const J={width:W.offsetWidth,height:W.offsetHeight},q=E(J);if(c==="none")return{top:null,left:null,transformOrigin:Kw(q)};const ce=D();let re=ce.top-q.vertical,se=ce.left-q.horizontal;const ae=re+J.height,te=se+J.width,Q=Cr(Pc(i)),Ce=Q.innerHeight-h,le=Q.innerWidth-h;if(h!==null&&re<h){const xe=re-h;re-=xe,q.vertical+=xe}else if(h!==null&&ae>Ce){const xe=ae-Ce;re-=xe,q.vertical+=xe}if(process.env.NODE_ENV!=="production"&&J.height>Ce&&J.height&&Ce&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${J.height-Ce}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
241
|
-
`)),h!==null&&se<h){const xe=se-h;se-=xe,q.horizontal+=xe}else if(te>le){const xe=te-le;se-=xe,q.horizontal+=xe}return{top:`${Math.round(re)}px`,left:`${Math.round(se)}px`,transformOrigin:Kw(q)}},[i,c,D,E,h]),[L,$]=f.useState(y),F=f.useCallback(()=>{const W=T.current;if(!W)return;const J=N(W);J.top!==null&&W.style.setProperty("top",J.top),J.left!==null&&(W.style.left=J.left),W.style.transformOrigin=J.transformOrigin,$(!0)},[N]);f.useEffect(()=>(M&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F)),[i,M,F]);const R=()=>{F()},B=()=>{$(!1)};f.useEffect(()=>{y&&F()}),f.useImperativeHandle(s,()=>y?{updatePosition:()=>{F()}}:null,[y,F]),f.useEffect(()=>{if(!y)return;const W=vr(()=>{F()}),J=Cr(Pc(i));return J.addEventListener("resize",W),()=>{W.clear(),J.removeEventListener("resize",W)}},[i,y,F]);let _=P;const V={slots:{transition:S,...b},slotProps:{transition:x,paper:m,...C}},[A,z]=Ve("transition",{elementType:Ci,externalForwardedProps:V,ownerState:O,getSlotProps:W=>({...W,onEntering:(J,q)=>{W.onEntering?.(J,q),R()},onExited:J=>{W.onExited?.(J),B()}}),additionalProps:{appear:!0,in:y}});P==="auto"&&!A.muiSupportAuto&&(_=void 0);const G=p||(i?Qt(Pc(i)).body:void 0),[U,{slots:X,slotProps:Y,...ee}]=Ve("root",{ref:n,elementType:K$,externalForwardedProps:{...V,...k},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:PC(typeof C.backdrop=="function"?C.backdrop(O):C.backdrop,{invisible:!0})},container:G,open:y},ownerState:O,className:ie(I.root,d)}),[oe,K]=Ve("paper",{ref:T,className:I.paper,elementType:Xw,externalForwardedProps:V,shouldForwardComponentProp:!0,additionalProps:{elevation:g,style:L?void 0:{opacity:0}},ownerState:O});return v.jsx(U,{...ee,...!Ea(U)&&{slots:X,slotProps:Y,disableScrollLock:M},children:v.jsx(A,{...z,timeout:_,children:v.jsx(oe,{...K,children:u})})})});process.env.NODE_ENV!=="production"&&(Zw.propTypes={action:At,anchorEl:Bo(o.oneOfType([ar,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Pc(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
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([ar,o.func]),disableScrollLock:o.bool,elevation:Ia,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:ac}),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 X$(e){return ke("MuiMenu",e)}Oe("MuiMenu",["root","paper","list"]);const Z$={vertical:"top",horizontal:"right"},Q$={vertical:"top",horizontal:"left"},J$=e=>{const{classes:t}=e;return de({root:["root"],paper:["paper"],list:["list"]},X$,t)},e7=Z(Zw,{shouldForwardProp:e=>to(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),t7=Z(Xw,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),n7=Z(nm,{name:"MuiMenu",slot:"List"})({outline:0}),Kd=f.forwardRef(function(t,n){const r=Ke({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:y,...m}={},variant:b="selectedMenu",slots:C={},slotProps:w={},...S}=r,P=Gt(),x={...r,autoFocus:s,disableAutoFocusItem:l,MenuListProps:c,onEntering:y,PaperProps:p,transitionDuration:h,TransitionProps:m,variant:b},M=J$(x),k=s&&!l&&d,T=f.useRef(null),O=(_,V)=>{T.current&&T.current.adjustStyleForScrollbar(_,{direction:P?"rtl":"ltr"}),y&&y(_,V)},I=_=>{_.key==="Tab"&&(_.preventDefault(),u&&u(_,"tabKeyDown"))};let D=-1;f.Children.map(i,(_,V)=>{f.isValidElement(_)&&(process.env.NODE_ENV!=="production"&&Ts.isFragment(_)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
244
|
-
`)),_.props.disabled||(b==="selectedMenu"&&_.props.selected||D===-1)&&(D=V))});const E={slots:C,slotProps:{list:c,transition:m,paper:p,...w}},N=it({elementType:C.root,externalSlotProps:w.root,ownerState:x,className:[M.root,a]}),[L,$]=Ve("paper",{className:M.paper,elementType:t7,externalForwardedProps:E,shouldForwardComponentProp:!0,ownerState:x}),[F,R]=Ve("list",{className:ie(M.list,c.className),elementType:n7,shouldForwardComponentProp:!0,externalForwardedProps:E,getSlotProps:_=>({..._,onKeyDown:V=>{I(V),_.onKeyDown?.(V)}}),ownerState:x}),B=typeof E.slotProps.transition=="function"?E.slotProps.transition(x):E.slotProps.transition;return v.jsx(e7,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?Z$:Q$,slots:{root:C.root,paper:L,backdrop:C.backdrop,...C.transition&&{transition:C.transition}},slotProps:{root:N,paper:$,backdrop:typeof w.backdrop=="function"?w.backdrop(x):w.backdrop,transition:{...B,onEntering:(..._)=>{O(..._),B?.onEntering?.(..._)}}},open:d,ref:n,transitionDuration:h,ownerState:x,...S,classes:g,children:v.jsx(F,{actions:T,autoFocus:s&&(D===-1||l),autoFocusItem:k,variant:b,...R,children:i})})});process.env.NODE_ENV!=="production"&&(Kd.propTypes={anchorEl:o.oneOfType([ar,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 o7(e){return ke("MuiMenuItem",e)}const Ec=Oe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),r7=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},s7=e=>{const{disabled:t,dense:n,divider:r,disableGutters:s,selected:i,classes:a}=e,c=de({root:["root",n&&"dense",t&&"disabled",!s&&"gutters",r&&"divider",i&&"selected"]},o7,a);return{...a,...c}},i7=Z(ir,{shouldForwardProp:e=>to(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:r7})(He(({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"}},[`&.${Ec.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ec.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ec.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)}},[`&.${Ec.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ec.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${_w.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${_w.inset}`]:{marginLeft:52},[`& .${Pi.root}`]:{marginTop:0,marginBottom:0},[`& .${Pi.inset}`]:{paddingLeft:36},[`& .${Gw.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,[`& .${Gw.root} svg`]:{fontSize:"1.25rem"}}}]}))),pr=f.forwardRef(function(t,n){const r=Ke({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,y=f.useContext(Uo),m=f.useMemo(()=>({dense:a||y.dense||!1,disableGutters:c}),[y.dense,a,c]),b=f.useRef(null);ht(()=>{s&&(b.current?b.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[s]);const C={...r,dense:m.dense,divider:l,disableGutters:c},w=s7(r),S=st(b,n);let P;return r.disabled||(P=p!==void 0?p:-1),v.jsx(Uo.Provider,{value:m,children:v.jsx(i7,{ref:S,role:d,tabIndex:P,component:i,focusVisibleClassName:ie(w.focusVisible,u),className:ie(w.root,g),...h,ownerState:C,classes:w})})});process.env.NODE_ENV!=="production"&&(pr.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 a7(e){return ke("MuiNativeSelect",e)}const om=Oe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),l7=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${pe(n)}`,i&&"iconOpen",r&&"disabled"]};return de(l,a7,t)},Qw=Z("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${om.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}}}]})),c7=Z(Qw,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:to,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${om.multiple}`]:t.multiple}]}})({}),Jw=Z("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${om.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}}]})),u7=Z(Jw,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${pe(n.variant)}`],n.open&&t.iconOpen]}})({}),e2=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=l7(d);return v.jsxs(f.Fragment,{children:[v.jsx(c7,{ownerState:d,className:ie(p.select,r),disabled:s,ref:l||n,...u}),t.multiple?null:v.jsx(u7,{as:a,ownerState:d,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(e2.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:At,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var t2;const d7=Z("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:to})({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%"}),p7=Z("legend",{name:"MuiNotchedOutlined",shouldForwardProp:to})(He(({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 n2(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(d7,{"aria-hidden":!0,className:r,ownerState:c,...a,children:v.jsx(p7,{ownerState:c,children:l?v.jsx("span",{children:s}):t2||(t2=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(n2.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const f7=e=>{const{classes:t}=e,r=de({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},RN,t);return{...t,...r}},h7=Z(Ad,{shouldForwardProp:e=>to(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:$d})(He(({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 .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${dr.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${dr.focused} .${dr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(rn()).map(([n])=>({props:{color:n},style:{[`&.${dr.focused} .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${dr.error} .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${dr.disabled} .${dr.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"}}]}})),g7=Z(n2,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(He(({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}})),m7=Z(Vd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ld})(He(({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}}]}))),Xd=f.forwardRef(function(t,n){const r=Ke({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,y=f7(r),m=Go(),b=Fs({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...r,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:m,fullWidth:i,hiddenLabel:b.hiddenLabel,multiline:c,size:b.size,type:g},w=d.root??s.Root??h7,S=d.input??s.Input??m7,[P,x]=Ve("notchedOutline",{elementType:g7,className:y.notchedOutline,shouldForwardComponentProp:!0,ownerState:C,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:l!=null&&l!==""&&b.required?v.jsxs(f.Fragment,{children:[l," ","*"]}):l}});return v.jsx(Fa,{slots:{root:w,input:S},slotProps:p,renderSuffix:M=>v.jsx(P,{...x,notched:typeof u<"u"?u:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:i,inputComponent:a,multiline:c,ref:n,type:g,...h,classes:{...y,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Xd.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:At,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}),Xd.muiName="Input";const b7=vt(v.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),y7=vt(v.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),v7=vt(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"),C7=vt(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"),w7=Z("span",{name:"MuiRadioButtonIcon",shouldForwardProp:to})({position:"relative",display:"flex"}),S7=Z(v7,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),x7=Z(C7,{name:"MuiRadioButtonIcon"})(He(({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 rm(e){const{checked:t=!1,classes:n={},fontSize:r}=e,s={...e,checked:t};return v.jsxs(w7,{className:n.root,ownerState:s,children:[v.jsx(S7,{fontSize:r,className:n.background,ownerState:s}),v.jsx(x7,{fontSize:r,className:n.dot,ownerState:s})]})}process.env.NODE_ENV!=="production"&&(rm.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const sm=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(sm.displayName="RadioGroupContext");function P7(){return f.useContext(sm)}function E7(e){return ke("MuiRadio",e)}const o2=Oe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),I7=e=>{const{classes:t,color:n,size:r}=e,s={root:["root",`color${pe(n)}`,r!=="medium"&&`size${pe(r)}`]};return{...t,...de(s,E7,t)}},T7=Z(Hd,{shouldForwardProp:e=>to(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${pe(n.size)}`],t[`color${pe(n.color)}`]]}})(He(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${o2.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(rn()).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(rn()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${o2.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function M7(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const O7=v.jsx(rm,{checked:!0}),k7=v.jsx(rm,{}),r2=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:i=O7,color:a="primary",icon:l=k7,name:c,onChange:u,size:d="medium",className:p,disabled:g,disableRipple:h=!1,slots:y={},slotProps:m={},inputProps:b,...C}=r,w=Go();let S=g;w&&typeof S>"u"&&(S=w.disabled),S??=!1;const P={...r,disabled:S,disableRipple:h,color:a,size:d},x=I7(P),M=P7();let k=s;const T=rg(u,M&&M.onChange);let O=c;M&&(typeof k>"u"&&(k=M7(M.value,r.value)),typeof O>"u"&&(O=M.name));const I=m.input??b,[D,E]=Ve("root",{ref:n,elementType:T7,className:ie(x.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:m,...C},getSlotProps:N=>({...N,onChange:(L,...$)=>{N.onChange?.(L,...$),T(L,...$)}}),ownerState:P,additionalProps:{type:"radio",icon:f.cloneElement(l,{fontSize:l.props.fontSize??d}),checkedIcon:f.cloneElement(i,{fontSize:i.props.fontSize??d}),disabled:S,name:O,checked:k,slots:y,slotProps:{input:typeof I=="function"?I(P):I}}});return v.jsx(D,{...E,classes:x})});process.env.NODE_ENV!=="production"&&(r2.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:At,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 D7(e){return ke("MuiRadioGroup",e)}Oe("MuiRadioGroup",["root","row","error"]);const F7=e=>{const{classes:t,row:n,error:r}=e;return de({root:["root",n&&"row",r&&"error"]},D7,t)},s2=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=F7(t),[h,y]=po({controlled:u,default:a,name:"RadioGroup"});f.useImperativeHandle(r,()=>({focus:()=>{let w=p.current.querySelector("input:not(:disabled):checked");w||(w=p.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const m=st(n,p),b=dt(l),C=f.useMemo(()=>({name:b,onChange(w){y(w.target.value),c&&c(w,w.target.value)},value:h}),[b,c,y,h]);return v.jsx(sm.Provider,{value:C,children:v.jsx(qd,{role:"radiogroup",ref:m,className:ie(g.root,i),...d,children:s})})});process.env.NODE_ENV!=="production"&&(s2.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const N7={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function i2(e){return ke("MuiSelect",e)}const Ic=Oe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var a2;const R7=Z(Qw,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ic.select}`]:t.select},{[`&.${Ic.select}`]:t[n.variant]},{[`&.${Ic.error}`]:t.error},{[`&.${Ic.multiple}`]:t.multiple}]}})({[`&.${Ic.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),$7=Z(Jw,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${pe(n.variant)}`],n.open&&t.iconOpen]}})({}),L7=Z("input",{shouldForwardProp:e=>wC(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function l2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function A7(e){return e==null||typeof e=="string"&&!e.trim()}const V7=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${pe(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return de(l,i2,t)},c2=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:y,inputRef:m,labelId:b,MenuProps:C={},multiple:w,name:S,onBlur:P,onChange:x,onClose:M,onFocus:k,onKeyDown:T,onMouseDown:O,onOpen:I,open:D,readOnly:E,renderValue:N,required:L,SelectDisplayProps:$={},tabIndex:F,type:R,value:B,variant:_="standard",...V}=t,[A,z]=po({controlled:B,default:d,name:"Select"}),[G,U]=po({controlled:D,default:u,name:"Select"}),X=f.useRef(null),Y=f.useRef(null),[ee,oe]=f.useState(null),{current:K}=f.useRef(D!=null),[W,J]=f.useState(),q=st(n,m),ce=f.useCallback(Fe=>{Y.current=Fe,Fe&&oe(Fe)},[]),re=ee?.parentNode;f.useImperativeHandle(q,()=>({focus:()=>{Y.current.focus()},node:X.current,value:A}),[A]),f.useEffect(()=>{u&&G&&ee&&!K&&(J(a?null:re.clientWidth),Y.current.focus())},[ee,a]),f.useEffect(()=>{i&&Y.current.focus()},[i]),f.useEffect(()=>{if(!b)return;const Fe=Qt(Y.current).getElementById(b);if(Fe){const Ye=()=>{getSelection().isCollapsed&&Y.current.focus()};return Fe.addEventListener("click",Ye),()=>{Fe.removeEventListener("click",Ye)}}},[b]);const se=(Fe,Ye)=>{Fe?I&&I(Ye):M&&M(Ye),K||(J(a?null:re.clientWidth),U(Fe))},ae=Fe=>{O?.(Fe),Fe.button===0&&(Fe.preventDefault(),Y.current.focus(),se(!0,Fe))},te=Fe=>{se(!1,Fe)},Q=f.Children.toArray(l),Ce=Fe=>{const Ye=Q.find(pt=>pt.props.value===Fe.target.value);Ye!==void 0&&(z(Ye.props.value),x&&x(Fe,Ye))},le=Fe=>Ye=>{let pt;if(Ye.currentTarget.hasAttribute("tabindex")){if(w){pt=Array.isArray(A)?A.slice():[];const qt=A.indexOf(Fe.props.value);qt===-1?pt.push(Fe.props.value):pt.splice(qt,1)}else pt=Fe.props.value;if(Fe.props.onClick&&Fe.props.onClick(Ye),A!==pt&&(z(pt),x)){const qt=Ye.nativeEvent||Ye,kt=new qt.constructor(qt.type,qt);Object.defineProperty(kt,"target",{writable:!0,value:{value:pt,name:S}}),x(kt,Fe)}w||se(!1,Ye)}},xe=Fe=>{E||([" ","ArrowUp","ArrowDown","Enter"].includes(Fe.key)&&(Fe.preventDefault(),se(!0,Fe)),T?.(Fe))},we=ee!==null&&G,Ue=Fe=>{!we&&P&&(Object.defineProperty(Fe,"target",{writable:!0,value:{value:A,name:S}}),P(Fe))};delete V["aria-invalid"];let $e,Ze;const Le=[];let Qe=!1,Je=!1;(Rd({value:A})||g)&&(N?$e=N(A):Qe=!0);const be=Q.map(Fe=>{if(!f.isValidElement(Fe))return null;process.env.NODE_ENV!=="production"&&Ts.isFragment(Fe)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
245
|
-
`));let Ye;if(w){if(!Array.isArray(A))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Ar(2));Ye=A.some(pt=>l2(pt,Fe.props.value)),Ye&&Qe&&Le.push(Fe.props.children)}else Ye=l2(A,Fe.props.value),Ye&&Qe&&(Ze=Fe.props.children);return Ye&&(Je=!0),f.cloneElement(Fe,{"aria-selected":Ye?"true":"false",onClick:le(Fe),onKeyUp:pt=>{pt.key===" "&&pt.preventDefault(),Fe.props.onKeyUp&&Fe.props.onKeyUp(pt)},role:"option",selected:Ye,value:void 0,"data-value":Fe.props.value})});process.env.NODE_ENV!=="production"&&f.useEffect(()=>{if(!Je&&!w&&A!==""){const Fe=Q.map(Ye=>Ye.props.value);console.warn([`MUI: You have provided an out-of-range value \`${A}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Fe.filter(Ye=>Ye!=null).map(Ye=>`\`${Ye}\``).join(", ")||'""'}.`].join(`
|
|
246
|
-
`))}},[Je,Q,w,S,A]),Qe&&(w?Le.length===0?$e=null:$e=Le.reduce((Fe,Ye,pt)=>(Fe.push(Ye),pt<Le.length-1&&Fe.push(", "),Fe),[]):$e=Ze);let Ee=W;!a&&K&&ee&&(Ee=re.clientWidth);let me;typeof F<"u"?me=F:me=p?null:0;const Me=$.id||(S?`mui-component-select-${S}`:void 0),Ae={...t,variant:_,value:A,open:we,error:h},Ge=V7(Ae),lt={...C.PaperProps,...typeof C.slotProps?.paper=="function"?C.slotProps.paper(Ae):C.slotProps?.paper},Dt={...C.MenuListProps,...typeof C.slotProps?.list=="function"?C.slotProps.list(Ae):C.slotProps?.list},qe=dt();return v.jsxs(f.Fragment,{children:[v.jsx(R7,{as:"div",ref:ce,tabIndex:me,role:"combobox","aria-controls":we?qe:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":we?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[b,Me].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":L?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:xe,onMouseDown:p||E?null:ae,onBlur:Ue,onFocus:k,...$,ownerState:Ae,className:ie($.className,Ge.select,c),id:Me,children:A7($e)?a2||(a2=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):$e}),v.jsx(L7,{"aria-invalid":h,value:Array.isArray(A)?A.join(","):A,name:S,ref:X,"aria-hidden":!0,onChange:Ce,tabIndex:-1,disabled:p,className:Ge.nativeInput,autoFocus:i,required:L,...V,ownerState:Ae}),v.jsx($7,{as:y,className:Ge.icon,ownerState:Ae}),v.jsx(Kd,{id:`menu-${S||""}`,anchorEl:re,open:we,onClose:te,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,slotProps:{...C.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:qe,...Dt},paper:{...lt,style:{minWidth:Ee,...lt!=null?lt.style:null}}},children:be})]})});process.env.NODE_ENV!=="production"&&(c2.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:At,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 _7=e=>{const{classes:t}=e,r=de({root:["root"]},i2,t);return{...t,...r}},im={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>to(e)&&e!=="variant"},B7=Z(Yd,im)(""),H7=Z(Xd,im)(""),z7=Z(Ud,im)(""),Ls=f.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:s=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=yw,id:p,input:g,inputProps:h,label:y,labelId:m,MenuProps:b,multiple:C=!1,native:w=!1,onClose:S,onOpen:P,open:x,renderValue:M,SelectDisplayProps:k,variant:T="outlined",...O}=r,I=w?e2:c2,D=Go(),E=Fs({props:r,muiFormControl:D,states:["variant","error"]}),N=E.variant||T,L={...r,variant:N,classes:a},$=_7(L),{root:F,...R}=$,B=g||{standard:v.jsx(B7,{ownerState:L}),outlined:v.jsx(H7,{label:y,ownerState:L}),filled:v.jsx(z7,{ownerState:L})}[N],_=st(n,mi(B));return v.jsx(f.Fragment,{children:f.cloneElement(B,{inputComponent:I,inputProps:{children:i,error:E.error,IconComponent:d,variant:N,type:void 0,multiple:C,...w?{id:p}:{autoWidth:s,defaultOpen:c,displayEmpty:u,labelId:m,MenuProps:b,onClose:S,onOpen:P,open:x,renderValue:M,SelectDisplayProps:{id:p,...k}},...h,classes:h?so(R,h.classes):R,...g?g.props.inputProps:{}},...(C&&w||u)&&N==="outlined"?{notched:!0}:{},ref:_,className:ie(B.props.className,l,$.root),...!g&&{variant:N},...O})})});process.env.NODE_ENV!=="production"&&(Ls.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"])}),Ls.muiName="Select";function j7(e){return ke("MuiSkeleton",e)}Oe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const G7=e=>{const{classes:t,variant:n,animation:r,hasChildren:s,width:i,height:a}=e;return de({root:["root",n,r,s&&"withChildren",s&&!i&&"fitContent",s&&!a&&"heightAuto"]},j7,t)},am=tr`
|
|
247
|
-
0% {
|
|
248
|
-
opacity: 1;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
50% {
|
|
252
|
-
opacity: 0.4;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
100% {
|
|
256
|
-
opacity: 1;
|
|
257
|
-
}
|
|
258
|
-
`,lm=tr`
|
|
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
|
-
`,W7=typeof am!="string"?Es`
|
|
272
|
-
animation: ${am} 2s ease-in-out 0.5s infinite;
|
|
273
|
-
`:null,U7=typeof lm!="string"?Es`
|
|
274
|
-
&::after {
|
|
275
|
-
animation: ${lm} 2s linear 0.5s infinite;
|
|
276
|
-
}
|
|
277
|
-
`:null,q7=Z("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]}})(He(({theme:e})=>{const t=k4(e.shape.borderRadius)||"px",n=D4(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:W7||{animation:`${am} 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:U7||{"&::after":{animation:`${lm} 2s linear 0.5s infinite`}}}]}})),u2=f.forwardRef(function(t,n){const r=Ke({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=G7(g);return v.jsx(q7,{as:a,ref:n,className:ie(h.root,i),ownerState:g,...p,style:{width:d,height:l,...c}})});process.env.NODE_ENV!=="production"&&(u2.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 Y7(e){return ke("MuiTooltip",e)}const Dn=Oe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function K7(e){return Math.round(e*1e5)/1e5}const X7=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${pe(i.split("-")[0])}`],arrow:["arrow"]};return de(a,Y7,t)},Z7=Z(bi,{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]}})(He(({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"] .${Dn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Dn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Dn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Dn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Dn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Dn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Dn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Dn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Q7=Z("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${pe(n.placement.split("-")[0])}`]]}})(He(({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,[`.${Dn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Dn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Dn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Dn.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:`${K7(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Dn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Dn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Dn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Dn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Dn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Dn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Dn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Dn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Dn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Dn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),J7=Z("span",{name:"MuiTooltip",slot:"Arrow"})(He(({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 Zd=!1;const d2=new OC;let Tc={x:0,y:0};function Qd(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const xr=f.forwardRef(function(t,n){const r=Ke({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:y=100,enterNextDelay:m=0,enterTouchDelay:b=700,followCursor:C=!1,id:w,leaveDelay:S=0,leaveTouchDelay:P=1500,onClose:x,onOpen:M,open:k,placement:T="bottom",PopperComponent:O,PopperProps:I={},slotProps:D={},slots:E={},title:N,TransitionComponent:L,TransitionProps:$,...F}=r,R=f.isValidElement(i)?i:v.jsx("span",{children:i}),B=uo(),_=Gt(),[V,A]=f.useState(),[z,G]=f.useState(null),U=f.useRef(!1),X=g||C,Y=On(),ee=On(),oe=On(),K=On(),[W,J]=po({controlled:k,default:!1,name:"Tooltip",state:"open"});let q=W;if(process.env.NODE_ENV!=="production"){const{current:je}=f.useRef(k!==void 0);f.useEffect(()=>{V&&V.disabled&&!je&&N!==""&&V.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
|
-
`))},[N,V,je])}const ce=dt(w),re=f.useRef(),se=fe(()=>{re.current!==void 0&&(document.body.style.WebkitUserSelect=re.current,re.current=void 0),K.clear()});f.useEffect(()=>se,[se]);const ae=je=>{d2.clear(),Zd=!0,J(!0),M&&!q&&M(je)},te=fe(je=>{d2.start(800+S,()=>{Zd=!1}),J(!1),x&&q&&x(je),Y.start(B.transitions.duration.shortest,()=>{U.current=!1})}),Q=je=>{U.current&&je.type!=="touchstart"||(V&&V.removeAttribute("title"),ee.clear(),oe.clear(),y||Zd&&m?ee.start(Zd?m:y,()=>{ae(je)}):ae(je))},Ce=je=>{ee.clear(),oe.start(S,()=>{te(je)})},[,le]=f.useState(!1),xe=je=>{Pd(je.target)||(le(!1),Ce(je))},we=je=>{V||A(je.currentTarget),Pd(je.target)&&(le(!0),Q(je))},Ue=je=>{U.current=!0;const Lt=R.props;Lt.onTouchStart&&Lt.onTouchStart(je)},$e=je=>{Ue(je),oe.clear(),Y.clear(),se(),re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",K.start(b,()=>{document.body.style.WebkitUserSelect=re.current,Q(je)})},Ze=je=>{R.props.onTouchEnd&&R.props.onTouchEnd(je),se(),oe.start(P,()=>{te(je)})};f.useEffect(()=>{if(!q)return;function je(Lt){Lt.key==="Escape"&&te(Lt)}return document.addEventListener("keydown",je),()=>{document.removeEventListener("keydown",je)}},[te,q]);const Le=st(mi(R),A,n);!N&&N!==0&&(q=!1);const Qe=f.useRef(),Je=je=>{const Lt=R.props;Lt.onMouseMove&&Lt.onMouseMove(je),Tc={x:je.clientX,y:je.clientY},Qe.current&&Qe.current.update()},be={},Ee=typeof N=="string";u?(be.title=!q&&Ee&&!p?N:null,be["aria-describedby"]=q?ce:null):(be["aria-label"]=Ee?N:null,be["aria-labelledby"]=q&&!Ee?ce:null);const me={...be,...F,...R.props,className:ie(F.className,R.props.className),onTouchStart:Ue,ref:Le,...C?{onMouseMove:Je}:{}};process.env.NODE_ENV!=="production"&&(me["data-mui-internal-clone-element"]=!0,f.useEffect(()=>{V&&!V.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
|
-
`))},[V]));const Me={};h||(me.onTouchStart=$e,me.onTouchEnd=Ze),p||(me.onMouseOver=Qd(Q,me.onMouseOver),me.onMouseLeave=Qd(Ce,me.onMouseLeave),X||(Me.onMouseOver=Q,Me.onMouseLeave=Ce)),d||(me.onFocus=Qd(we,me.onFocus),me.onBlur=Qd(xe,me.onBlur),X||(Me.onFocus=we,Me.onBlur=xe)),process.env.NODE_ENV!=="production"&&R.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${R.props.title}\` or the Tooltip component.`].join(`
|
|
285
|
-
`));const Ae={...r,isRtl:_,arrow:s,disableInteractive:X,placement:T,PopperComponentProp:O,touch:U.current},Ge=typeof D.popper=="function"?D.popper(Ae):D.popper,lt=f.useMemo(()=>{let je=[{name:"arrow",enabled:!!z,options:{element:z,padding:4}}];return I.popperOptions?.modifiers&&(je=je.concat(I.popperOptions.modifiers)),Ge?.popperOptions?.modifiers&&(je=je.concat(Ge.popperOptions.modifiers)),{...I.popperOptions,...Ge?.popperOptions,modifiers:je}},[z,I.popperOptions,Ge?.popperOptions]),Dt=X7(Ae),qe=typeof D.transition=="function"?D.transition(Ae):D.transition,Fe={slots:{popper:l.Popper,transition:l.Transition??L,tooltip:l.Tooltip,arrow:l.Arrow,...E},slotProps:{arrow:D.arrow??c.arrow,popper:{...I,...Ge??c.popper},tooltip:D.tooltip??c.tooltip,transition:{...$,...qe??c.transition}}},[Ye,pt]=Ve("popper",{elementType:Z7,externalForwardedProps:Fe,ownerState:Ae,className:ie(Dt.popper,I?.className)}),[qt,kt]=Ve("transition",{elementType:Ci,externalForwardedProps:Fe,ownerState:Ae}),[Yn,_n]=Ve("tooltip",{elementType:Q7,className:Dt.tooltip,externalForwardedProps:Fe,ownerState:Ae}),[Kn,Xn]=Ve("arrow",{elementType:J7,className:Dt.arrow,externalForwardedProps:Fe,ownerState:Ae,ref:G});return v.jsxs(f.Fragment,{children:[f.cloneElement(R,me),v.jsx(Ye,{as:O??bi,placement:T,anchorEl:C?{getBoundingClientRect:()=>({top:Tc.y,left:Tc.x,right:Tc.x,bottom:Tc.y,width:0,height:0})}:V,popperRef:Qe,open:V?q:!1,id:ce,transition:!0,...Me,...pt,popperOptions:lt,children:({TransitionProps:je})=>v.jsx(qt,{timeout:B.transitions.duration.shorter,...je,...kt,children:v.jsxs(Yn,{..._n,children:[N,s?v.jsx(Kn,{...Xn}):null]})})})]})});process.env.NODE_ENV!=="production"&&(xr.propTypes={arrow:o.bool,children:yi.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 e8(e){return ke("MuiSwitch",e)}const ho=Oe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),t8=e=>{const{classes:t,edge:n,size:r,color:s,checked:i,disabled:a}=e,l={root:["root",n&&`edge${pe(n)}`,`size${pe(r)}`],switchBase:["switchBase",`color${pe(s)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=de(l,e8,t);return{...t,...c}},n8=Z("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${pe(n.edge)}`],t[`size${pe(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,[`& .${ho.thumb}`]:{width:16,height:16},[`& .${ho.switchBase}`]:{padding:4,[`&.${ho.checked}`]:{transform:"translateX(16px)"}}}}]}),o8=Z(Hd,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ho.input}`]:t.input},n.color!=="default"&&t[`color${pe(n.color)}`]]}})(He(({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}),[`&.${ho.checked}`]:{transform:"translateX(20px)"},[`&.${ho.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ho.checked} + .${ho.track}`]:{opacity:.5},[`&.${ho.disabled} + .${ho.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ho.input}`]:{left:"-100%",width:"300%"}})),He(({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(rn(["light"])).map(([t])=>({props:{color:t},style:{[`&.${ho.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"}},[`&.${ho.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)}`}},[`&.${ho.checked} + .${ho.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),r8=Z("span",{name:"MuiSwitch",slot:"Track"})(He(({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}`}))),s8=Z("span",{name:"MuiSwitch",slot:"Thumb"})(He(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),cm=f.forwardRef(function(t,n){const r=Ke({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=t8(g),y={slots:u,slotProps:d},[m,b]=Ve("root",{className:ie(h.root,s),elementType:n8,externalForwardedProps:y,ownerState:g,additionalProps:{sx:c}}),[C,w]=Ve("thumb",{className:h.thumb,elementType:s8,externalForwardedProps:y,ownerState:g}),S=v.jsx(C,{...w}),[P,x]=Ve("track",{className:h.track,elementType:r8,externalForwardedProps:y,ownerState:g});return v.jsxs(m,{...b,children:[v.jsx(o8,{type:"checkbox",icon:S,checkedIcon:S,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(P,{...x})]})});process.env.NODE_ENV!=="production"&&(cm.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:At,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 i8(e){return ke("MuiTab",e)}const fr=Oe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),a8=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${pe(n)}`,r&&"fullWidth",s&&"wrapped",l&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return de(u,i8,t)},l8=Z(ir,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${pe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${fr.iconWrapper}`]:t.iconWrapper},{[`& .${fr.icon}`]:t.icon}]}})(He(({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:{[`& > .${fr.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${fr.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${fr.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${fr.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${fr.selected}`]:{opacity:1},[`&.${fr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${fr.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${fr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${fr.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${fr.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)}}]}))),p2=f.forwardRef(function(t,n){const r=Ke({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:y,selected:m,selectionFollowsFocus:b,textColor:C="inherit",value:w,wrapped:S=!1,...P}=r,x={...r,disabled:i,disableFocusRipple:a,selected:m,icon:!!c,iconPosition:u,label:!!p,fullWidth:l,textColor:C,wrapped:S},M=a8(x),k=c&&p&&f.isValidElement(c)?f.cloneElement(c,{className:ie(M.icon,c.props.className)}):c,T=I=>{!m&&g&&g(I,w),h&&h(I)},O=I=>{b&&!m&&g&&g(I,w),y&&y(I)};return v.jsxs(l8,{focusRipple:!a,className:ie(M.root,s),ref:n,role:"tab","aria-selected":m,disabled:i,onClick:T,onFocus:O,ownerState:x,tabIndex:m?0:-1,...P,children:[u==="top"||u==="start"?v.jsxs(f.Fragment,{children:[k,p]}):v.jsxs(f.Fragment,{children:[p,k]}),d]})});process.env.NODE_ENV!=="production"&&(p2.propTypes={children:ag,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 f2=f.createContext();process.env.NODE_ENV!=="production"&&(f2.displayName="TableContext");const h2=f.createContext();process.env.NODE_ENV!=="production"&&(h2.displayName="Tablelvl2Context");function c8(e){return ke("MuiTableCell",e)}const u8=Oe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),d8=e=>{const{classes:t,variant:n,align:r,padding:s,size:i,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${pe(r)}`,s!=="normal"&&`padding${pe(s)}`,`size${pe(i)}`]};return de(l,c8,t)},p8=Z("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${pe(n.size)}`],n.padding!=="normal"&&t[`padding${pe(n.padding)}`],n.align!=="inherit"&&t[`align${pe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(He(({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",[`&.${u8.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}}]}))),Jd=f.forwardRef(function(t,n){const r=Ke({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(f2),y=f.useContext(h2),m=y&&y.variant==="head";let b;a?b=a:b=m?"th":"td";let C=c;b==="td"?C=void 0:!C&&m&&(C="col");const w=p||y&&y.variant,S={...r,align:s,component:b,padding:l||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:d,stickyHeader:w==="head"&&h&&h.stickyHeader,variant:w},P=d8(S);let x=null;return d&&(x=d==="asc"?"ascending":"descending"),v.jsx(p8,{as:b,ref:n,className:ie(P.root,i),"aria-sort":x,scope:C,ownerState:S,...g})});process.env.NODE_ENV!=="production"&&(Jd.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 f8(e){return ke("MuiToolbar",e)}Oe("MuiToolbar",["root","gutters","regular","dense"]);const h8=e=>{const{classes:t,disableGutters:n,variant:r}=e;return de({root:["root",!n&&"gutters",r]},f8,t)},g8=Z("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(He(({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}]}))),g2=f.forwardRef(function(t,n){const r=Ke({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=h8(u);return v.jsx(g8,{as:i,className:ie(d.root,s),ref:n,ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(g2.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 m2=vt(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),b2=vt(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function m8(e){return ke("MuiTablePaginationActions",e)}Oe("MuiTablePaginationActions",["root"]);const b8=e=>{const{classes:t}=e;return de({root:["root"]},m8,t)},y8=Z("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),y2=f.forwardRef(function(t,n){const r=Ke({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:y,slots:m={},slotProps:b={},...C}=r,w=Gt(),P=b8(r),x=X=>{d(X,0)},M=X=>{d(X,p-1)},k=X=>{d(X,p+1)},T=X=>{d(X,Math.max(0,Math.ceil(a/g)-1))},O=m.firstButton??kn,I=m.lastButton??kn,D=m.nextButton??kn,E=m.previousButton??kn,N=m.firstButtonIcon??b7,L=m.lastButtonIcon??y7,$=m.nextButtonIcon??b2,F=m.previousButtonIcon??m2,R=w?I:O,B=w?D:E,_=w?E:D,V=w?O:I,A=w?b.lastButton:b.firstButton,z=w?b.nextButton:b.previousButton,G=w?b.previousButton:b.nextButton,U=w?b.firstButton:b.lastButton;return v.jsxs(y8,{ref:n,className:ie(P.root,i),...C,children:[h&&v.jsx(R,{onClick:x,disabled:l||p===0,"aria-label":c("first",p),title:c("first",p),...A,children:w?v.jsx(L,{...b.lastButtonIcon}):v.jsx(N,{...b.firstButtonIcon})}),v.jsx(B,{onClick:M,disabled:l||p===0,color:"inherit","aria-label":c("previous",p),title:c("previous",p),...z??s,children:w?v.jsx($,{...b.nextButtonIcon}):v.jsx(F,{...b.previousButtonIcon})}),v.jsx(_,{onClick:k,disabled:l||(a!==-1?p>=Math.ceil(a/g)-1:!1),color:"inherit","aria-label":c("next",p),title:c("next",p),...G??u,children:w?v.jsx(F,{...b.previousButtonIcon}):v.jsx($,{...b.nextButtonIcon})}),y&&v.jsx(V,{onClick:T,disabled:l||p>=Math.ceil(a/g)-1,"aria-label":c("last",p),title:c("last",p),...U,children:w?v.jsx(N,{...b.firstButtonIcon}):v.jsx(L,{...b.lastButtonIcon})})]})});process.env.NODE_ENV!=="production"&&(y2.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 v8(e){return ke("MuiTablePagination",e)}const Ei=Oe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var v2;const C8=Z(Jd,{name:"MuiTablePagination",slot:"Root"})(He(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),w8=Z(g2,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Ei.actions}`]:t.actions,...t.toolbar})})(He(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ei.actions}`]:{flexShrink:0,marginLeft:20}}))),S8=Z("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),x8=Z("p",{name:"MuiTablePagination",slot:"SelectLabel"})(He(({theme:e})=>({...e.typography.body2,flexShrink:0}))),P8=Z(Ls,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Ei.selectIcon}`]:t.selectIcon,[`& .${Ei.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ei.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),E8=Z(pr,{name:"MuiTablePagination",slot:"MenuItem"})({}),I8=Z("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(He(({theme:e})=>({...e.typography.body2,flexShrink:0})));function T8({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function M8(e){return`Go to ${e} page`}const O8=e=>{const{classes:t}=e;return de({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},v8,t)},C2=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=y2,backIconButtonProps:i,colSpan:a,component:l=Jd,count:c,disabled:u=!1,getItemAriaLabel:d=M8,labelDisplayedRows:p=T8,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:h,onPageChange:y,onRowsPerPageChange:m,page:b,rowsPerPage:C,rowsPerPageOptions:w=[10,25,50,100],SelectProps:S={},showFirstButton:P=!1,showLastButton:x=!1,slotProps:M={},slots:k={},...T}=r,O=r,I=O8(O),D=M?.select??S,E=D.native?"option":E8;let N;(l===Jd||l==="td")&&(N=a||1e3);const L=dt(D.id),$=dt(D.labelId),F=()=>c===-1?(b+1)*C:C===-1?c:Math.min(c,(b+1)*C),R={slots:k,slotProps:M},[B,_]=Ve("root",{ref:n,className:I.root,elementType:C8,externalForwardedProps:{...R,component:l,...T},ownerState:O,additionalProps:{colSpan:N}}),[V,A]=Ve("toolbar",{className:I.toolbar,elementType:w8,externalForwardedProps:R,ownerState:O}),[z,G]=Ve("spacer",{className:I.spacer,elementType:S8,externalForwardedProps:R,ownerState:O}),[U,X]=Ve("selectLabel",{className:I.selectLabel,elementType:x8,externalForwardedProps:R,ownerState:O,additionalProps:{id:$}}),[Y,ee]=Ve("select",{className:I.select,elementType:P8,externalForwardedProps:R,ownerState:O}),[oe,K]=Ve("menuItem",{className:I.menuItem,elementType:E,externalForwardedProps:R,ownerState:O}),[W,J]=Ve("displayedRows",{className:I.displayedRows,elementType:I8,externalForwardedProps:R,ownerState:O});return v.jsx(B,{..._,children:v.jsxs(V,{...A,children:[v.jsx(z,{...G}),w.length>1&&v.jsx(U,{...X,children:g}),w.length>1&&v.jsx(Y,{variant:"standard",...!D.variant&&{input:v2||(v2=v.jsx(Fa,{}))},value:C,onChange:m,id:L,labelId:$,...D,classes:{...D.classes,root:ie(I.input,I.selectRoot,(D.classes||{}).root),select:ie(I.select,(D.classes||{}).select),icon:ie(I.selectIcon,(D.classes||{}).icon)},disabled:u,...ee,children:w.map(q=>ge.createElement(oe,{...K,key:q.label?q.label:q,value:q.value?q.value:q},q.label?q.label:q))}),v.jsx(W,{...J,children:p({from:c===0?0:b*C+1,to:F(),count:c===-1?-1:c,page:b})}),v.jsx(s,{className:I.actions,backIconButtonProps:i,count:c,nextIconButtonProps:h,onPageChange:y,page:b,rowsPerPage:C,showFirstButton:P,showLastButton:x,slotProps:M.actions,slots:k.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:Ia.isRequired,disabled:o.bool,getItemAriaLabel:o.func,labelDisplayedRows:o.func,labelRowsPerPage:o.node,nextIconButtonProps:o.object,onPageChange:o.func.isRequired,onRowsPerPageChange:o.func,page:Bo(Ia.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:Ia.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 k8(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function D8(e,t,n,r={},s=()=>{}){const{ease:i=k8,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 F8={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function w2(e){const{onChange:t,...n}=e,r=f.useRef(),s=f.useRef(null),i=()=>{r.current=s.current.offsetHeight-s.current.clientHeight};return ht(()=>{const a=vr(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),l=Cr(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:F8,...n,ref:s})}process.env.NODE_ENV!=="production"&&(w2.propTypes={onChange:o.func.isRequired});function N8(e){return ke("MuiTabScrollButton",e)}const R8=Oe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),$8=e=>{const{classes:t,orientation:n,disabled:r}=e;return de({root:["root",n,r&&"disabled"]},N8,t)},L8=Z(ir,{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,[`&.${R8.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),S2=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTabScrollButton"}),{className:s,slots:i={},slotProps:a={},direction:l,orientation:c,disabled:u,...d}=r,p=Gt(),g={isRtl:p,...r},h=$8(g),y=i.StartScrollButtonIcon??m2,m=i.EndScrollButtonIcon??b2,b=it({elementType:y,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),C=it({elementType:m,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return v.jsx(L8,{component:"div",className:ie(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(y,{...b}):v.jsx(m,{...C})})});process.env.NODE_ENV!=="production"&&(S2.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 A8(e){return ke("MuiTabs",e)}const um=Oe("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),x2=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,P2=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ep=(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}}},V8=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:s,scrollableY:i,centered:a,scrollButtonsHideMobile:l,classes:c}=e;return de({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"]},A8,c)},_8=Z("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${um.scrollButtons}`]:t.scrollButtons},{[`& .${um.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(He(({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:{[`& .${um.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),B8=Z("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"}}]}),H8=Z("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"}}]}),z8=Z("span",{name:"MuiTabs",slot:"Indicator"})(He(({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}}]}))),j8=Z(w2)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),E2={};let I2=!1;const T2=f.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTabs"}),s=uo(),i=Gt(),{"aria-label":a,"aria-labelledby":l,action:c,centered:u=!1,children:d,className:p,component:g="div",allowScrollButtonsMobile:h=!1,indicatorColor:y="primary",onChange:m,orientation:b="horizontal",ScrollButtonComponent:C,scrollButtons:w="auto",selectionFollowsFocus:S,slots:P={},slotProps:x={},TabIndicatorProps:M={},TabScrollButtonProps:k={},textColor:T="primary",value:O,variant:I="standard",visibleScrollbar:D=!1,...E}=r,N=I==="scrollable",L=b==="vertical",$=L?"scrollTop":"scrollLeft",F=L?"top":"left",R=L?"bottom":"right",B=L?"clientHeight":"clientWidth",_=L?"height":"width",V={...r,component:g,allowScrollButtonsMobile:h,indicatorColor:y,orientation:b,vertical:L,scrollButtons:w,textColor:T,variant:I,visibleScrollbar:D,fixed:!N,hideScrollbar:N&&!D,scrollableX:N&&!L,scrollableY:N&&L,centered:u&&!N,scrollButtonsHideMobile:!h},A=V8(V),z=it({elementType:P.StartScrollButtonIcon,externalSlotProps:x.startScrollButtonIcon,ownerState:V}),G=it({elementType:P.EndScrollButtonIcon,externalSlotProps:x.endScrollButtonIcon,ownerState:V});process.env.NODE_ENV!=="production"&&u&&N&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[U,X]=f.useState(!1),[Y,ee]=f.useState(E2),[oe,K]=f.useState(!1),[W,J]=f.useState(!1),[q,ce]=f.useState(!1),[re,se]=f.useState({overflow:"hidden",scrollbarWidth:0}),ae=new Map,te=f.useRef(null),Q=f.useRef(null),Ce={slots:P,slotProps:{indicator:M,scrollButton:k,...x}},le=()=>{const _e=te.current;let et;if(_e){const Tt=_e.getBoundingClientRect();et={clientWidth:_e.clientWidth,scrollLeft:_e.scrollLeft,scrollTop:_e.scrollTop,scrollWidth:_e.scrollWidth,top:Tt.top,bottom:Tt.bottom,left:Tt.left,right:Tt.right}}let St;if(_e&&O!==!1){const Tt=Q.current.children;if(Tt.length>0){const sn=Tt[ae.get(O)];process.env.NODE_ENV!=="production"&&(sn||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${O}".`,ae.keys?`You can provide one of the following values: ${Array.from(ae.keys()).join(", ")}.`:null].join(`
|
|
287
|
-
`))),St=sn?sn.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!I2&&St&&St.width===0&&St.height===0&&et.clientWidth!==0&&(et=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${O}") 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
|
-
`)),I2=!0)}}return{tabsMeta:et,tabMeta:St}},xe=fe(()=>{const{tabsMeta:_e,tabMeta:et}=le();let St=0,Tt;L?(Tt="top",et&&_e&&(St=et.top-_e.top+_e.scrollTop)):(Tt=i?"right":"left",et&&_e&&(St=(i?-1:1)*(et[Tt]-_e[Tt]+_e.scrollLeft)));const sn={[Tt]:St,[_]:et?et[_]:0};if(typeof Y[Tt]!="number"||typeof Y[_]!="number")ee(sn);else{const co=Math.abs(Y[Tt]-sn[Tt]),Po=Math.abs(Y[_]-sn[_]);(co>=1||Po>=1)&&ee(sn)}}),we=(_e,{animation:et=!0}={})=>{et?D8($,te.current,_e,{duration:s.transitions.duration.standard}):te.current[$]=_e},Ue=_e=>{let et=te.current[$];L?et+=_e:et+=_e*(i?-1:1),we(et)},$e=()=>{const _e=te.current[B];let et=0;const St=Array.from(Q.current.children);for(let Tt=0;Tt<St.length;Tt+=1){const sn=St[Tt];if(et+sn[B]>_e){Tt===0&&(et=_e);break}et+=sn[B]}return et},Ze=()=>{Ue(-1*$e())},Le=()=>{Ue($e())},[Qe,{onChange:Je,...be}]=Ve("scrollbar",{className:ie(A.scrollableX,A.hideScrollbar),elementType:j8,shouldForwardComponentProp:!0,externalForwardedProps:Ce,ownerState:V}),Ee=f.useCallback(_e=>{Je?.(_e),se({overflow:null,scrollbarWidth:_e})},[Je]),[me,Me]=Ve("scrollButtons",{className:ie(A.scrollButtons,k.className),elementType:S2,externalForwardedProps:Ce,ownerState:V,additionalProps:{orientation:b,slots:{StartScrollButtonIcon:P.startScrollButtonIcon||P.StartScrollButtonIcon,EndScrollButtonIcon:P.endScrollButtonIcon||P.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:z,endScrollButtonIcon:G}}}),Ae=()=>{const _e={};_e.scrollbarSizeListener=N?v.jsx(Qe,{...be,onChange:Ee}):null;const St=N&&(w==="auto"&&(oe||W)||w===!0);return _e.scrollButtonStart=St?v.jsx(me,{direction:i?"right":"left",onClick:Ze,disabled:!oe,...Me}):null,_e.scrollButtonEnd=St?v.jsx(me,{direction:i?"left":"right",onClick:Le,disabled:!W,...Me}):null,_e},Ge=fe(_e=>{const{tabsMeta:et,tabMeta:St}=le();if(!(!St||!et)){if(St[F]<et[F]){const Tt=et[$]+(St[F]-et[F]);we(Tt,{animation:_e})}else if(St[R]>et[R]){const Tt=et[$]+(St[R]-et[R]);we(Tt,{animation:_e})}}}),lt=fe(()=>{N&&w!==!1&&ce(!q)});f.useEffect(()=>{const _e=vr(()=>{te.current&&xe()});let et;const St=co=>{co.forEach(Po=>{Po.removedNodes.forEach(ct=>{et?.unobserve(ct)}),Po.addedNodes.forEach(ct=>{et?.observe(ct)})}),_e(),lt()},Tt=Cr(te.current);Tt.addEventListener("resize",_e);let sn;return typeof ResizeObserver<"u"&&(et=new ResizeObserver(_e),Array.from(Q.current.children).forEach(co=>{et.observe(co)})),typeof MutationObserver<"u"&&(sn=new MutationObserver(St),sn.observe(Q.current,{childList:!0})),()=>{_e.clear(),Tt.removeEventListener("resize",_e),sn?.disconnect(),et?.disconnect()}},[xe,lt]),f.useEffect(()=>{const _e=Array.from(Q.current.children),et=_e.length;if(typeof IntersectionObserver<"u"&&et>0&&N&&w!==!1){const St=_e[0],Tt=_e[et-1],sn={root:te.current,threshold:.99},co=tn=>{K(!tn[0].isIntersecting)},Po=new IntersectionObserver(co,sn);Po.observe(St);const ct=tn=>{J(!tn[0].isIntersecting)},Bt=new IntersectionObserver(ct,sn);return Bt.observe(Tt),()=>{Po.disconnect(),Bt.disconnect()}}},[N,w,q,d?.length]),f.useEffect(()=>{X(!0)},[]),f.useEffect(()=>{xe()}),f.useEffect(()=>{Ge(E2!==Y)},[Ge,Y]),f.useImperativeHandle(c,()=>({updateIndicator:xe,updateScrollButtons:lt}),[xe,lt]);const[Dt,qe]=Ve("indicator",{className:ie(A.indicator,M.className),elementType:z8,externalForwardedProps:Ce,ownerState:V,additionalProps:{style:Y}}),Fe=v.jsx(Dt,{...qe});let Ye=0;const pt=f.Children.map(d,_e=>{if(!f.isValidElement(_e))return null;process.env.NODE_ENV!=="production"&&Ts.isFragment(_e)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
289
|
-
`));const et=_e.props.value===void 0?Ye:_e.props.value;ae.set(et,Ye);const St=et===O;return Ye+=1,f.cloneElement(_e,{fullWidth:I==="fullWidth",indicator:St&&!U&&Fe,selected:St,selectionFollowsFocus:S,onChange:m,textColor:T,value:et,...Ye===1&&O===!1&&!_e.props.tabIndex?{tabIndex:0}:{}})}),qt=_e=>{if(_e.altKey||_e.shiftKey||_e.ctrlKey||_e.metaKey)return;const et=Q.current,St=Ra(Qt(et));if(St?.getAttribute("role")!=="tab")return;let sn=b==="horizontal"?"ArrowLeft":"ArrowUp",co=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&i&&(sn="ArrowRight",co="ArrowLeft"),_e.key){case sn:_e.preventDefault(),ep(et,St,P2);break;case co:_e.preventDefault(),ep(et,St,x2);break;case"Home":_e.preventDefault(),ep(et,null,x2);break;case"End":_e.preventDefault(),ep(et,null,P2);break}},kt=Ae(),[Yn,_n]=Ve("root",{ref:n,className:ie(A.root,p),elementType:_8,externalForwardedProps:{...Ce,...E,component:g},ownerState:V}),[Kn,Xn]=Ve("scroller",{ref:te,className:A.scroller,elementType:B8,externalForwardedProps:Ce,ownerState:V,additionalProps:{style:{overflow:re.overflow,[L?`margin${i?"Left":"Right"}`:"marginBottom"]:D?void 0:-re.scrollbarWidth}}}),[je,Lt]=Ve("list",{ref:Q,className:ie(A.list,A.flexContainer),elementType:H8,externalForwardedProps:Ce,ownerState:V,getSlotProps:_e=>({..._e,onKeyDown:et=>{qt(et),_e.onKeyDown?.(et)}})});return v.jsxs(Yn,{..._n,children:[kt.scrollButtonStart,kt.scrollbarSizeListener,v.jsxs(Kn,{...Xn,children:[v.jsx(je,{"aria-label":a,"aria-labelledby":l,"aria-orientation":b==="vertical"?"vertical":null,role:"tablist",...Lt,children:pt}),U&&Fe]}),kt.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(T2.propTypes={action:At,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 G8(e){return ke("MuiTextField",e)}Oe("MuiTextField",["root"]);const W8={standard:Yd,filled:Ud,outlined:Xd},U8=e=>{const{classes:t}=e;return de({root:["root"]},G8,t)},q8=Z($s,{name:"MuiTextField",slot:"Root"})({}),As=f.forwardRef(function(t,n){const r=Ke({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:y,id:m,InputLabelProps:b,inputProps:C,InputProps:w,inputRef:S,label:P,maxRows:x,minRows:M,multiline:k=!1,name:T,onBlur:O,onChange:I,onFocus:D,placeholder:E,required:N=!1,rows:L,select:$=!1,SelectProps:F,slots:R={},slotProps:B={},type:_,value:V,variant:A="outlined",...z}=r,G={...r,autoFocus:i,color:c,disabled:d,error:p,fullWidth:h,multiline:k,required:N,select:$,variant:A},U=U8(G);process.env.NODE_ENV!=="production"&&$&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const X=dt(m),Y=y&&X?`${X}-helper-text`:void 0,ee=P&&X?`${X}-label`:void 0,oe=W8[A],K={slots:R,slotProps:{input:w,inputLabel:b,htmlInput:C,formHelperText:g,select:F,...B}},W={},J=K.slotProps.inputLabel;A==="outlined"&&(J&&typeof J.shrink<"u"&&(W.notched=J.shrink),W.label=P),$&&((!F||!F.native)&&(W.id=void 0),W["aria-describedby"]=void 0);const[q,ce]=Ve("root",{elementType:q8,shouldForwardComponentProp:!0,externalForwardedProps:{...K,...z},ownerState:G,className:ie(U.root,l),ref:n,additionalProps:{disabled:d,error:p,fullWidth:h,required:N,color:c,variant:A}}),[re,se]=Ve("input",{elementType:oe,externalForwardedProps:K,additionalProps:W,ownerState:G}),[ae,te]=Ve("inputLabel",{elementType:wi,externalForwardedProps:K,ownerState:G}),[Q,Ce]=Ve("htmlInput",{elementType:"input",externalForwardedProps:K,ownerState:G}),[le,xe]=Ve("formHelperText",{elementType:zg,externalForwardedProps:K,ownerState:G}),[we,Ue]=Ve("select",{elementType:Ls,externalForwardedProps:K,ownerState:G}),$e=v.jsx(re,{"aria-describedby":Y,autoComplete:s,autoFocus:i,defaultValue:u,fullWidth:h,multiline:k,name:T,rows:L,maxRows:x,minRows:M,type:_,value:V,id:X,inputRef:S,onBlur:O,onChange:I,onFocus:D,placeholder:E,inputProps:Ce,slots:{input:R.htmlInput?Q:void 0},...se});return v.jsxs(q,{...ce,children:[P!=null&&P!==""&&v.jsx(ae,{htmlFor:X,id:ee,...te,children:P}),$?v.jsx(we,{"aria-describedby":Y,id:X,labelId:ee,value:V,input:$e,...Ue,children:a}):$e,y&&v.jsx(le,{id:Y,...xe,children:y})]})});process.env.NODE_ENV!=="production"&&(As.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:At,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 Y8(e){return ke("MuiToggleButton",e)}const dm=Oe("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),M2=f.createContext({});process.env.NODE_ENV!=="production"&&(M2.displayName="ToggleButtonGroupContext");const O2=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(O2.displayName="ToggleButtonGroupButtonContext");function K8(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const X8=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${pe(i)}`,a]};return de(l,Y8,t)},Z8=Z(ir,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${pe(n.size)}`]]}})(He(({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,[`&.${dm.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:{[`&.${dm.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(rn()).map(([t])=>({props:{color:t},style:{[`&.${dm.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)}}]}))),k2=f.forwardRef(function(t,n){const{value:r,...s}=f.useContext(M2),i=f.useContext(O2),a=ai({...s,selected:K8(t.value,r)},t),l=Ke({props:a,name:"MuiToggleButton"}),{children:c,className:u,color:d="standard",disabled:p=!1,disableFocusRipple:g=!1,fullWidth:h=!1,onChange:y,onClick:m,selected:b,size:C="medium",value:w,...S}=l,P={...l,color:d,disabled:p,disableFocusRipple:g,fullWidth:h,size:C},x=X8(P),M=T=>{m&&(m(T,w),T.defaultPrevented)||y&&y(T,w)},k=i||"";return v.jsx(Z8,{className:ie(s.className,x.root,u,k),disabled:p,focusRipple:!g,ref:n,onClick:M,onChange:y,value:w,ownerState:P,"aria-pressed":b,...S,children:c})});process.env.NODE_ENV!=="production"&&(k2.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 tp=zv({themeId:er}),Vs=7,wt={"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"}},Q8={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:wt["gr-grey"].light,"&.Mui-focused":{color:wt["gr-grey"][200]}},"& .MuiOutlinedInput-root":{borderRadius:"16px",height:`${s}px`,color:wt["gr-grey"].light,"& .MuiOutlinedInput-notchedOutline":{borderColor:wt["gr-grey"].light},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:wt["gr-grey"][100]},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:wt["gr-grey"][200]},"& input":{color:wt["gr-grey"].light},"& input::placeholder":{color:wt["gr-grey"][400],opacity:1}}}:t?{"& .MuiInputLabel-root":{color:wt["gr-grey"].main,"&.Mui-focused":{color:wt["gr-grey"][700]}},"& .MuiOutlinedInput-root":{borderRadius:"16px",height:`${s}px`,color:wt["gr-grey"].main,"& .MuiOutlinedInput-notchedOutline":{borderColor:wt["gr-grey"].main},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:wt["gr-grey"][600]},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:wt["gr-grey"][700]},"& input":{color:wt["gr-grey"].main},"& input::placeholder":{color:wt["gr-grey"][400],opacity:1}}}:{"& .MuiInputLabel-root":{color:wt["gr-grey"].main,"&.Mui-focused":{color:wt["gr-grey"][700]}},"& .MuiOutlinedInput-root":{borderRadius:"16px",height:`${s}px`,color:wt["gr-grey"].main,"& input":{color:wt["gr-grey"].main},"& input::placeholder":{color:wt["gr-grey"][400],opacity:1}}}}}},J8={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:wt["gr-grey"].main,"& .MuiOutlinedInput-notchedOutline":{borderColor:wt["gr-grey"].main},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:wt["gr-grey"][600]},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:wt["gr-grey"][700]},"& input":{color:wt["gr-grey"].main},"& input::placeholder":{color:wt["gr-grey"][400],opacity:1}}:{borderRadius:"16px",height:`${s}px`,color:wt["gr-grey"].main,"& input":{color:wt["gr-grey"].main},"& input::placeholder":{color:wt["gr-grey"][400],opacity:1}}}}},eL={styleOverrides:{root:()=>({color:wt["gr-grey"].main,"&.Mui-focused":{color:wt["gr-grey"][700]}})}},tL={fontFamily:["Articulat CF"].join(","),h1:{fontFamily:"Articulat CF",fontWeight:"bold",fontSize:"36px",color:wt["gr-base-dark"].main},h2:{fontFamily:"Articulat CF",fontWeight:"bold",fontSize:"32px",color:wt["gr-grey"].main},h3:{fontFamily:"Articulat CF",fontWeight:"bold",fontSize:"24px",color:wt["gr-grey"].main},h4:{fontFamily:"Articulat CF",fontWeight:"bold",fontSize:"22px",color:wt["gr-grey"].main},body1:{fontFamily:"Articulat CF",fontWeight:"medium",fontSize:"18px",color:wt["gr-base-dark"].main},body2:{fontFamily:"Articulat CF",fontWeight:"medium",fontSize:"16px",color:wt["gr-base-dark"].main},button:{fontFamily:"Articulat CF",fontWeight:"demi bold",fontSize:"18px",color:wt["gr-base-dark"].main}},D2={palette:{mode:"dark",background:{default:"#EBEAE0",paper:wt["gr-base-dark"].main},primary:{main:"#474541"},secondary:{main:"#C85DF0"},success:{main:"#00EA84"},warning:{main:"#F0C300"},error:{main:"#FE0037"},info:{main:"#2F43FF"},...wt},typography:tL,components:{MuiTextField:Q8,MuiOutlinedInput:J8,MuiInputLabel:eL}},nL=ci(D2),oL=ci({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 np={exports:{}},rL=np.exports,F2;function pm(){return F2||(F2=1,(function(e,t){(function(n,r){e.exports=r()})(rL,(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",y="date",m="Invalid Date",b=/^(\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,w={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(L){var $=["th","st","nd","rd"],F=L%100;return"["+L+($[(F-20)%10]||$[F]||$[0])+"]"}},S=function(L,$,F){var R=String(L);return!R||R.length>=$?L:""+Array($+1-R.length).join(F)+L},P={s:S,z:function(L){var $=-L.utcOffset(),F=Math.abs($),R=Math.floor(F/60),B=F%60;return($<=0?"+":"-")+S(R,2,"0")+":"+S(B,2,"0")},m:function L($,F){if($.date()<F.date())return-L(F,$);var R=12*(F.year()-$.year())+(F.month()-$.month()),B=$.clone().add(R,p),_=F-B<0,V=$.clone().add(R+(_?-1:1),p);return+(-(R+(F-B)/(_?B-V:V-B))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:p,y:h,w:d,d:u,D:y,h:c,m:l,s:a,ms:i,Q:g}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},x="en",M={};M[x]=w;var k="$isDayjsObject",T=function(L){return L instanceof E||!(!L||!L[k])},O=function L($,F,R){var B;if(!$)return x;if(typeof $=="string"){var _=$.toLowerCase();M[_]&&(B=_),F&&(M[_]=F,B=_);var V=$.split("-");if(!B&&V.length>1)return L(V[0])}else{var A=$.name;M[A]=$,B=A}return!R&&B&&(x=B),B||!R&&x},I=function(L,$){if(T(L))return L.clone();var F=typeof $=="object"?$:{};return F.date=L,F.args=arguments,new E(F)},D=P;D.l=O,D.i=T,D.w=function(L,$){return I(L,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var E=(function(){function L(F){this.$L=O(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[k]=!0}var $=L.prototype;return $.parse=function(F){this.$d=(function(R){var B=R.date,_=R.utc;if(B===null)return new Date(NaN);if(D.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var V=B.match(b);if(V){var A=V[2]-1||0,z=(V[7]||"0").substring(0,3);return _?new Date(Date.UTC(V[1],A,V[3]||1,V[4]||0,V[5]||0,V[6]||0,z)):new Date(V[1],A,V[3]||1,V[4]||0,V[5]||0,V[6]||0,z)}}return new Date(B)})(F),this.init()},$.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},$.$utils=function(){return D},$.isValid=function(){return this.$d.toString()!==m},$.isSame=function(F,R){var B=I(F);return this.startOf(R)<=B&&B<=this.endOf(R)},$.isAfter=function(F,R){return I(F)<this.startOf(R)},$.isBefore=function(F,R){return this.endOf(R)<I(F)},$.$g=function(F,R,B){return D.u(F)?this[R]:this.set(B,F)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(F,R){var B=this,_=!!D.u(R)||R,V=D.p(F),A=function(K,W){var J=D.w(B.$u?Date.UTC(B.$y,W,K):new Date(B.$y,W,K),B);return _?J:J.endOf(u)},z=function(K,W){return D.w(B.toDate()[K].apply(B.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(W)),B)},G=this.$W,U=this.$M,X=this.$D,Y="set"+(this.$u?"UTC":"");switch(V){case h:return _?A(1,0):A(31,11);case p:return _?A(1,U):A(0,U+1);case d:var ee=this.$locale().weekStart||0,oe=(G<ee?G+7:G)-ee;return A(_?X-oe:X+(6-oe),U);case u:case y:return z(Y+"Hours",0);case c:return z(Y+"Minutes",1);case l:return z(Y+"Seconds",2);case a:return z(Y+"Milliseconds",3);default:return this.clone()}},$.endOf=function(F){return this.startOf(F,!1)},$.$set=function(F,R){var B,_=D.p(F),V="set"+(this.$u?"UTC":""),A=(B={},B[u]=V+"Date",B[y]=V+"Date",B[p]=V+"Month",B[h]=V+"FullYear",B[c]=V+"Hours",B[l]=V+"Minutes",B[a]=V+"Seconds",B[i]=V+"Milliseconds",B)[_],z=_===u?this.$D+(R-this.$W):R;if(_===p||_===h){var G=this.clone().set(y,1);G.$d[A](z),G.init(),this.$d=G.set(y,Math.min(this.$D,G.daysInMonth())).$d}else A&&this.$d[A](z);return this.init(),this},$.set=function(F,R){return this.clone().$set(F,R)},$.get=function(F){return this[D.p(F)]()},$.add=function(F,R){var B,_=this;F=Number(F);var V=D.p(R),A=function(U){var X=I(_);return D.w(X.date(X.date()+Math.round(U*F)),_)};if(V===p)return this.set(p,this.$M+F);if(V===h)return this.set(h,this.$y+F);if(V===u)return A(1);if(V===d)return A(7);var z=(B={},B[l]=r,B[c]=s,B[a]=n,B)[V]||1,G=this.$d.getTime()+F*z;return D.w(G,this)},$.subtract=function(F,R){return this.add(-1*F,R)},$.format=function(F){var R=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var _=F||"YYYY-MM-DDTHH:mm:ssZ",V=D.z(this),A=this.$H,z=this.$m,G=this.$M,U=B.weekdays,X=B.months,Y=B.meridiem,ee=function(W,J,q,ce){return W&&(W[J]||W(R,_))||q[J].slice(0,ce)},oe=function(W){return D.s(A%12||12,W,"0")},K=Y||function(W,J,q){var ce=W<12?"AM":"PM";return q?ce.toLowerCase():ce};return _.replace(C,(function(W,J){return J||(function(q){switch(q){case"YY":return String(R.$y).slice(-2);case"YYYY":return D.s(R.$y,4,"0");case"M":return G+1;case"MM":return D.s(G+1,2,"0");case"MMM":return ee(B.monthsShort,G,X,3);case"MMMM":return ee(X,G);case"D":return R.$D;case"DD":return D.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return ee(B.weekdaysMin,R.$W,U,2);case"ddd":return ee(B.weekdaysShort,R.$W,U,3);case"dddd":return U[R.$W];case"H":return String(A);case"HH":return D.s(A,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return K(A,z,!0);case"A":return K(A,z,!1);case"m":return String(z);case"mm":return D.s(z,2,"0");case"s":return String(R.$s);case"ss":return D.s(R.$s,2,"0");case"SSS":return D.s(R.$ms,3,"0");case"Z":return V}return null})(W)||V.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(F,R,B){var _,V=this,A=D.p(R),z=I(F),G=(z.utcOffset()-this.utcOffset())*r,U=this-z,X=function(){return D.m(V,z)};switch(A){case h:_=X()/12;break;case p:_=X();break;case g:_=X()/3;break;case d:_=(U-G)/6048e5;break;case u:_=(U-G)/864e5;break;case c:_=U/s;break;case l:_=U/r;break;case a:_=U/n;break;default:_=U}return B?_:D.a(_)},$.daysInMonth=function(){return this.endOf(p).$D},$.$locale=function(){return M[this.$L]},$.locale=function(F,R){if(!F)return this.$L;var B=this.clone(),_=O(F,R,!0);return _&&(B.$L=_),B},$.clone=function(){return D.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},L})(),N=E.prototype;return I.prototype=N,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",p],["$y",h],["$D",y]].forEach((function(L){N[L[1]]=function($){return this.$g($,L[0],L[1])}})),I.extend=function(L,$){return L.$i||(L($,E,I),L.$i=!0),I},I.locale=O,I.isDayjs=T,I.unix=function(L){return I(1e3*L)},I.en=M[x],I.Ls=M,I.p={},I}))})(np)),np.exports}var sL=pm();const Fn=Ps(sL);var op={exports:{}},iL=op.exports,N2;function aL(){return N2||(N2=1,(function(e,t){(function(n,r){e.exports=r(pm())})(iL,(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}))})(op)),op.exports}aL();var rp={exports:{}},lL=rp.exports,R2;function cL(){return R2||(R2=1,(function(e,t){(function(n,r){e.exports=r()})(lL,(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])+"]"}}}))})(rp)),rp.exports}cL();var sp={exports:{}},uL=sp.exports,$2;function dL(){return $2||($2=1,(function(e,t){(function(n,r){e.exports=r(pm())})(uL,(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}))})(sp)),sp.exports}dL();const Pr=ge.createContext({}),L2="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",pL="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",fL=({tooltips:e,state:t,setState:n})=>{switch(t){case"close":return v.jsxs(rr,{container:!0,spacing:2,children:[v.jsx(rr,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:6,children:v.jsx("img",{src:pL,alt:"Good Rabbit Logo",style:{height:"30px",width:"30px",objectFit:"contain"}})}),v.jsx(rr,{sx:{display:"flex",justifyContent:"center"},size:6,children:v.jsx(kn,{sx:{"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},onClick:()=>n("open"),children:v.jsx(xr,{title:e.expandMenu,placement:"right",children:v.jsx(Wr,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"24px",mr:"-3.5px"},children:"menu"})})})})]});case"open":return v.jsxs(rr,{container:!0,spacing:2,children:[v.jsx(rr,{size:10,sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:v.jsx("img",{src:L2,alt:"Good Rabbit Logo",style:{height:"40px",width:"100%",objectFit:"contain"}})}),v.jsx(rr,{size:2,sx:{display:"flex",justifyContent:"center"},children:v.jsx(kn,{sx:{"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},onClick:()=>n("close"),children:v.jsx(xr,{title:e.collapseMenu,placement:"right",children:v.jsx(Wr,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"24px",mr:"-3.5px"},children:"left_panel_close"})})})})]});case"expanded":return v.jsxs(rr,{container:!0,spacing:2,children:[v.jsx(rr,{size:5,sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:v.jsx("img",{src:L2,alt:"Good Rabbit Logo",style:{height:"40px",width:"100%",objectFit:"contain"}})}),v.jsx(rr,{size:1,sx:{display:"flex",justifyContent:"center"},children:v.jsx(kn,{sx:{"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},onClick:()=>n("close"),children:v.jsx(xr,{title:e.collapseMenu,placement:"right",children:v.jsx(Wr,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"24px",mr:"-3.5px"},children:"left_panel_close"})})})}),v.jsx(rr,{size:5}),v.jsx(rr,{size:1,sx:{display:"flex",justifyContent:"center"},children:v.jsx(kn,{sx:{pl:1.75,"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},onClick:()=>n("open"),children:v.jsx(xr,{title:e.collapseModule,placement:"right",children:v.jsx(Wr,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"24px",mr:"-3.5px"},children:"chevron_backward"})})})})]})}};var A2="popstate";function hL(e={}){function t(r,s){let{pathname:i,search:a,hash:l}=r.location;return fm("",{pathname:i,search:a,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Mc(s)}return mL(t,n,null,e)}function yn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function hr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gL(){return Math.random().toString(36).substring(2,10)}function V2(e,t){return{usr:e.state,key:e.key,idx:t}}function fm(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?_a(t):t,state:n,key:t&&t.key||r||gL()}}function Mc({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 _a(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 mL(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 b=d(),C=b==null?null:b-u;u=b,c&&c({action:l,location:m.location,delta:C})}function g(b,C){l="PUSH";let w=fm(m.location,b,C);u=d()+1;let S=V2(w,u),P=m.createHref(w);try{a.pushState(S,"",P)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;s.location.assign(P)}i&&c&&c({action:l,location:m.location,delta:1})}function h(b,C){l="REPLACE";let w=fm(m.location,b,C);u=d();let S=V2(w,u),P=m.createHref(w);a.replaceState(S,"",P),i&&c&&c({action:l,location:m.location,delta:0})}function y(b){return bL(b)}let m={get action(){return l},get location(){return e(s,a)},listen(b){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(A2,p),c=b,()=>{s.removeEventListener(A2,p),c=null}},createHref(b){return t(s,b)},createURL:y,encodeLocation(b){let C=y(b);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:g,replace:h,go(b){return a.go(b)}};return m}function bL(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),yn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Mc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function _2(e,t,n="/"){return yL(e,t,n,!1)}function yL(e,t,n,r){let s=typeof t=="string"?_a(t):t,i=cs(s.pathname||"/",n);if(i==null)return null;let a=B2(e);vL(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let u=kL(i);l=ML(a[c],u,r)}return l}function B2(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;yn(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=us([r,d.relativePath]),g=n.concat(d);a.children&&a.children.length>0&&(yn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),B2(a.children,t,g,p,c)),!(a.path==null&&!a.index)&&t.push({path:p,score:IL(p,a.index),routesMeta:g})};return e.forEach((a,l)=>{if(a.path===""||!a.path?.includes("?"))i(a,l);else for(let c of H2(a.path))i(a,l,!0,c)}),t}function H2(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=H2(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 vL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:TL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var CL=/^:[\w-]+$/,wL=3,SL=2,xL=1,PL=10,EL=-2,z2=e=>e==="*";function IL(e,t){let n=e.split("/"),r=n.length;return n.some(z2)&&(r+=EL),t&&(r+=SL),n.filter(s=>!z2(s)).reduce((s,i)=>s+(CL.test(i)?wL:i===""?xL:PL),r)}function TL(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 ML(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=ip({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),g=c.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=ip({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!p)return null;Object.assign(s,p.params),a.push({params:s,pathname:us([i,p.pathname]),pathnameBase:RL(us([i,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(i=us([i,p.pathnameBase]))}return a}function ip(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=OL(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 y=l[g]||"";a=i.slice(0,i.length-y.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 OL(e,t=!1,n=!0){hr(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)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).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 kL(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return hr(!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 cs(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 j2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,DL=e=>j2.test(e);function FL(e,t="/"){let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?_a(e):e,i;if(n)if(DL(n))i=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),hr(!1,`Pathnames cannot have embedded double slashes - normalizing ${a} -> ${n}`)}n.startsWith("/")?i=G2(n.substring(1),"/"):i=G2(n,t)}else i=t;return{pathname:i,search:$L(r),hash:LL(s)}}function G2(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 hm(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 NL(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function gm(e){let t=NL(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function mm(e,t,n,r=!1){let s;typeof e=="string"?s=_a(e):(s={...e},yn(!s.pathname||!s.pathname.includes("?"),hm("?","pathname","search",s)),yn(!s.pathname||!s.pathname.includes("#"),hm("#","pathname","hash",s)),yn(!s.search||!s.search.includes("#"),hm("#","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=FL(s,l),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}var us=e=>e.join("/").replace(/\/\/+/g,"/"),RL=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$L=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,LL=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,AL=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 VL(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function _L(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var W2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function U2(e,t){let n=e;if(typeof n!="string"||!j2.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,s=!1;if(W2)try{let i=new URL(window.location.href),a=n.startsWith("//")?new URL(i.protocol+n):new URL(n),l=cs(a.pathname,t);a.origin===i.origin&&l!=null?n=l+a.search+a.hash:s=!0}catch{hr(!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 q2=["POST","PUT","PATCH","DELETE"];new Set(q2);var BL=["GET",...q2];new Set(BL);var Ba=f.createContext(null);Ba.displayName="DataRouter";var ap=f.createContext(null);ap.displayName="DataRouterState";var HL=f.createContext(!1),Y2=f.createContext({isTransitioning:!1});Y2.displayName="ViewTransition";var zL=f.createContext(new Map);zL.displayName="Fetchers";var jL=f.createContext(null);jL.displayName="Await";var qo=f.createContext(null);qo.displayName="Navigation";var Oc=f.createContext(null);Oc.displayName="Location";var qr=f.createContext({outlet:null,matches:[],isDataRoute:!1});qr.displayName="Route";var bm=f.createContext(null);bm.displayName="RouteError";var K2="REACT_ROUTER_ERROR",GL="REDIRECT",WL="ROUTE_ERROR_RESPONSE";function UL(e){if(e.startsWith(`${K2}:${GL}:{`))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 qL(e){if(e.startsWith(`${K2}:${WL}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new AL(t.status,t.statusText,t.data)}catch{}}function YL(e,{relative:t}={}){yn(Ha(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=f.useContext(qo),{hash:s,pathname:i,search:a}=kc(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:us([n,i])),r.createHref({pathname:l,search:a,hash:s})}function Ha(){return f.useContext(Oc)!=null}function Yo(){return yn(Ha(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(Oc).location}var X2="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Z2(e){f.useContext(qo).static||f.useLayoutEffect(e)}function _s(){let{isDataRoute:e}=f.useContext(qr);return e?aA():KL()}function KL(){yn(Ha(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(Ba),{basename:t,navigator:n}=f.useContext(qo),{matches:r}=f.useContext(qr),{pathname:s}=Yo(),i=JSON.stringify(gm(r)),a=f.useRef(!1);return Z2(()=>{a.current=!0}),f.useCallback((c,u={})=>{if(hr(a.current,X2),!a.current)return;if(typeof c=="number"){n.go(c);return}let d=mm(c,JSON.parse(i),s,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:us([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,s,e])}f.createContext(null);function kc(e,{relative:t}={}){let{matches:n}=f.useContext(qr),{pathname:r}=Yo(),s=JSON.stringify(gm(n));return f.useMemo(()=>mm(e,JSON.parse(s),r,t==="path"),[e,s,r,t])}function XL(e,t){return Q2(e,t)}function Q2(e,t,n,r,s){yn(Ha(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=f.useContext(qo),{matches:a}=f.useContext(qr),l=a[a.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",p=l&&l.route;{let w=p&&p.path||"";tS(u,!p||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) 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="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let g=Yo(),h;if(t){let w=typeof t=="string"?_a(t):t;yn(d==="/"||w.pathname?.startsWith(d),`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 "${d}" but pathname "${w.pathname}" was given in the \`location\` prop.`),h=w}else h=g;let y=h.pathname||"/",m=y;if(d!=="/"){let w=d.replace(/^\//,"").split("/");m="/"+y.replace(/^\//,"").split("/").slice(w.length).join("/")}let b=_2(e,{pathname:m});hr(p||b!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),hr(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 "${h.pathname}${h.search}${h.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 C=tA(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},c,w.params),pathname:us([d,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?d:us([d,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,s);return t&&C?f.createElement(Oc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},C):C}function ZL(){let e=iA(),t=VL(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 QL=f.createElement(ZL,null),J2=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=qL(e.digest);n&&(e=n)}let t=e!==void 0?f.createElement(qr.Provider,{value:this.props.routeContext},f.createElement(bm.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?f.createElement(JL,{error:e},t):t}};J2.contextType=HL;var ym=new WeakMap;function JL({children:e,error:t}){let{basename:n}=f.useContext(qo);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=UL(t.digest);if(r){let s=ym.get(t);if(s)throw s;let i=U2(r.location,n);if(W2&&!ym.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 ym.set(t,a),a}return f.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function eA({routeContext:e,match:t,children:n}){let r=f.useContext(Ba);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(qr.Provider,{value:e},n)}function tA(e,t=[],n=null,r=null,s=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n?.errors;if(a!=null){let d=i.findIndex(p=>p.route.id&&a?.[p.route.id]!==void 0);yn(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(n)for(let d=0;d<i.length;d++){let p=i[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(c=d),p.route.id){let{loaderData:g,errors:h}=n,y=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!h||h[p.route.id]===void 0);if(p.route.lazy||y){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}let u=n&&r?(d,p)=>{r(d,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:_L(n.matches),errorInfo:p})}:void 0;return i.reduceRight((d,p,g)=>{let h,y=!1,m=null,b=null;n&&(h=a&&p.route.id?a[p.route.id]:void 0,m=p.route.errorElement||QL,l&&(c<0&&g===0?(tS("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,b=null):c===g&&(y=!0,b=p.route.hydrateFallbackElement||null)));let C=t.concat(i.slice(0,g+1)),w=()=>{let S;return h?S=m:y?S=b:p.route.Component?S=f.createElement(p.route.Component,null):p.route.element?S=p.route.element:S=d,f.createElement(eA,{match:p,routeContext:{outlet:d,matches:C,isDataRoute:n!=null},children:S})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?f.createElement(J2,{location:n.location,revalidation:n.revalidation,component:m,error:h,children:w(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:u}):w()},null)}function vm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nA(e){let t=f.useContext(Ba);return yn(t,vm(e)),t}function oA(e){let t=f.useContext(ap);return yn(t,vm(e)),t}function rA(e){let t=f.useContext(qr);return yn(t,vm(e)),t}function Cm(e){let t=rA(e),n=t.matches[t.matches.length-1];return yn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function sA(){return Cm("useRouteId")}function iA(){let e=f.useContext(bm),t=oA("useRouteError"),n=Cm("useRouteError");return e!==void 0?e:t.errors?.[n]}function aA(){let{router:e}=nA("useNavigate"),t=Cm("useNavigate"),n=f.useRef(!1);return Z2(()=>{n.current=!0}),f.useCallback(async(s,i={})=>{hr(n.current,X2),n.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:t,...i}))},[e,t])}var eS={};function tS(e,t,n){!t&&!eS[e]&&(eS[e]=!0,hr(!1,n))}f.memo(lA);function lA({routes:e,future:t,state:n,onError:r}){return Q2(e,void 0,n,r,t)}function nS({to:e,replace:t,state:n,relative:r}){yn(Ha(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=f.useContext(qo);hr(!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(qr),{pathname:a}=Yo(),l=_s(),c=mm(e,gm(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 Dc(e){yn(!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 cA({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:s,static:i=!1,unstable_useTransitions:a}){yn(!Ha(),"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=_a(n));let{pathname:u="/",search:d="",hash:p="",state:g=null,key:h="default"}=n,y=f.useMemo(()=>{let m=cs(u,l);return m==null?null:{location:{pathname:m,search:d,hash:p,state:g,key:h},navigationType:r}},[l,u,d,p,g,h,r]);return hr(y!=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.`),y==null?null:f.createElement(qo.Provider,{value:c},f.createElement(Oc.Provider,{children:t,value:y}))}function oS({children:e,location:t}){return XL(wm(e),t)}function wm(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,wm(r.props.children,i));return}yn(r.type===Dc,`[${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>`),yn(!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=wm(r.props.children,i)),n.push(a)}),n}var lp="get",cp="application/x-www-form-urlencoded";function up(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function uA(e){return up(e)&&e.tagName.toLowerCase()==="button"}function dA(e){return up(e)&&e.tagName.toLowerCase()==="form"}function pA(e){return up(e)&&e.tagName.toLowerCase()==="input"}function fA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hA(e,t){return e.button===0&&(!t||t==="_self")&&!fA(e)}var dp=null;function gA(){if(dp===null)try{new FormData(document.createElement("form"),0),dp=!1}catch{dp=!0}return dp}var mA=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Sm(e){return e!=null&&!mA.has(e)?(hr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${cp}"`),null):e}function bA(e,t){let n,r,s,i,a;if(dA(e)){let l=e.getAttribute("action");r=l?cs(l,t):null,n=e.getAttribute("method")||lp,s=Sm(e.getAttribute("enctype"))||cp,i=new FormData(e)}else if(uA(e)||pA(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?cs(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||lp,s=Sm(e.getAttribute("formenctype"))||Sm(l.getAttribute("enctype"))||cp,i=new FormData(l,e),!gA()){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(up(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=lp,r=null,s=cp,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 xm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function yA(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&cs(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function vA(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 CA(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 wA(e,t,n){let r=await Promise.all(e.map(async s=>{let i=t.routes[s.route.id];if(i){let a=await vA(i,n);return a.links?a.links():[]}return[]}));return EA(r.flat(1).filter(CA).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function rS(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 SA(e,t,{includeHydrateFallback:n}={}){return xA(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 xA(e){return[...new Set(e)]}function PA(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function EA(e,t){let n=new Set;return new Set(t),e.reduce((r,s)=>{let i=JSON.stringify(PA(s));return n.has(i)||(n.add(i),r.push({key:i,link:s})),r},[])}function sS(){let e=f.useContext(Ba);return xm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function IA(){let e=f.useContext(ap);return xm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Pm=f.createContext(void 0);Pm.displayName="FrameworkContext";function iS(){let e=f.useContext(Pm);return xm(e,"You must render this element inside a <HydratedRouter> element"),e}function TA(e,t){let n=f.useContext(Pm),[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(w=>{a(w.isIntersecting)})},b=new IntersectionObserver(m,{threshold:.5});return g.current&&b.observe(g.current),()=>{b.disconnect()}}},[e]),f.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let h=()=>{s(!0)},y=()=>{s(!1),a(!1)};return n?e!=="intent"?[i,g,{}]:[i,g,{onFocus:Fc(l,h),onBlur:Fc(c,y),onMouseEnter:Fc(u,h),onMouseLeave:Fc(d,y),onTouchStart:Fc(p,h)}]:[!1,g,{}]}function Fc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function MA({page:e,...t}){let{router:n}=sS(),r=f.useMemo(()=>_2(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?f.createElement(kA,{page:e,matches:r,...t}):null}function OA(e){let{manifest:t,routeModules:n}=iS(),[r,s]=f.useState([]);return f.useEffect(()=>{let i=!1;return wA(e,t,n).then(a=>{i||s(a)}),()=>{i=!0}},[e,t,n]),r}function kA({page:e,matches:t,...n}){let r=Yo(),{manifest:s,routeModules:i}=iS(),{basename:a}=sS(),{loaderData:l,matches:c}=IA(),u=f.useMemo(()=>rS(e,t,c,s,r,"data"),[e,t,c,s,r]),d=f.useMemo(()=>rS(e,t,c,s,r,"assets"),[e,t,c,s,r]),p=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,m=!1;if(t.forEach(C=>{let w=s.routes[C.route.id];!w||!w.hasLoader||(!u.some(S=>S.route.id===C.route.id)&&C.route.id in l&&i[C.route.id]?.shouldRevalidate||w.hasClientLoader?m=!0:y.add(C.route.id))}),y.size===0)return[];let b=yA(e,a,"data");return m&&y.size>0&&b.searchParams.set("_routes",t.filter(C=>y.has(C.route.id)).map(C=>C.route.id).join(",")),[b.pathname+b.search]},[a,l,r,s,u,t,e,i]),g=f.useMemo(()=>SA(d,s),[d,s]),h=OA(d);return f.createElement(f.Fragment,null,p.map(y=>f.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),g.map(y=>f.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),h.map(({key:y,link:m})=>f.createElement("link",{key:y,nonce:n.nonce,...m})))}function DA(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var FA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{FA&&(window.__reactRouterVersion="7.11.0")}catch{}function NA({basename:e,children:t,unstable_useTransitions:n,window:r}){let s=f.useRef();s.current==null&&(s.current=hL({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(cA,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i,unstable_useTransitions:n})}var aS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lS=f.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:s,reloadDocument:i,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:g,...h},y){let{basename:m,unstable_useTransitions:b}=f.useContext(qo),C=typeof u=="string"&&aS.test(u),w=U2(u,m);u=w.to;let S=YL(u,{relative:s}),[P,x,M]=TA(r,h),k=AA(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:s,viewTransition:p,unstable_defaultShouldRevalidate:g,unstable_useTransitions:b});function T(I){t&&t(I),I.defaultPrevented||k(I)}let O=f.createElement("a",{...h,...M,href:w.absoluteURL||S,onClick:w.isExternal||i?t:T,ref:DA(y,x),target:c,"data-discover":!C&&n==="render"?"true":void 0});return P&&!C?f.createElement(f.Fragment,null,O,f.createElement(MA,{page:S})):O});lS.displayName="Link";var RA=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=kc(a,{relative:u.relative}),g=Yo(),h=f.useContext(ap),{navigator:y,basename:m}=f.useContext(qo),b=h!=null&&zA(p)&&l===!0,C=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,w=g.pathname,S=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(w=w.toLowerCase(),S=S?S.toLowerCase():null,C=C.toLowerCase()),S&&m&&(S=cs(S,m)||S);const P=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let x=w===C||!s&&w.startsWith(C)&&w.charAt(P)==="/",M=S!=null&&(S===C||!s&&S.startsWith(C)&&S.charAt(C.length)==="/"),k={isActive:x,isPending:M,isTransitioning:b},T=x?t:void 0,O;typeof r=="function"?O=r(k):O=[r,x?"active":null,M?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let I=typeof i=="function"?i(k):i;return f.createElement(lS,{...u,"aria-current":T,className:O,ref:d,style:I,to:a,viewTransition:l},typeof c=="function"?c(k):c)});RA.displayName="NavLink";var $A=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:s,state:i,method:a=lp,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:g,...h},y)=>{let{unstable_useTransitions:m}=f.useContext(qo),b=BA(),C=HA(l,{relative:u}),w=a.toLowerCase()==="get"?"get":"post",S=typeof l=="string"&&aS.test(l),P=x=>{if(c&&c(x),x.defaultPrevented)return;x.preventDefault();let M=x.nativeEvent.submitter,k=M?.getAttribute("formmethod")||a,T=()=>b(M||x.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:s,state:i,relative:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:g});m&&n!==!1?f.startTransition(()=>T()):T()};return f.createElement("form",{ref:y,method:w,action:C,onSubmit:r?c:P,...h,"data-discover":!S&&e==="render"?"true":void 0})});$A.displayName="Form";function LA(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cS(e){let t=f.useContext(Ba);return yn(t,LA(e)),t}function AA(e,{target:t,replace:n,state:r,preventScrollReset:s,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=_s(),d=Yo(),p=kc(e,{relative:i});return f.useCallback(g=>{if(hA(g,t)){g.preventDefault();let h=n!==void 0?n:Mc(d)===Mc(p),y=()=>u(e,{replace:h,state:r,preventScrollReset:s,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:l});c?f.startTransition(()=>y()):y()}},[d,u,p,n,r,t,e,s,i,a,l,c])}var VA=0,_A=()=>`__${String(++VA)}__`;function BA(){let{router:e}=cS("useSubmit"),{basename:t}=f.useContext(qo),n=sA(),r=e.fetch,s=e.navigate;return f.useCallback(async(i,a={})=>{let{action:l,method:c,encType:u,formData:d,body:p}=bA(i,t);if(a.navigate===!1){let g=a.fetcherKey||_A();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 HA(e,{relative:t}={}){let{basename:n}=f.useContext(qo),r=f.useContext(qr);yn(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),i={...kc(e||".",{relative:t})},a=Yo();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:us([n,i.pathname])),Mc(i)}function zA(e,{relative:t}={}){let n=f.useContext(Y2);yn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=cS("useViewTransitionState"),s=kc(e,{relative:t});if(!n.isTransitioning)return!1;let i=cs(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=cs(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ip(s.pathname,a)!=null||ip(s.pathname,i)!=null}const uS=({tooltips:e,name:t,items:n,setState:r})=>{const s=_s(),i=Yo(),a=new URLSearchParams(i.search);return v.jsx(bt,{size:12,children:v.jsx(ls,{dense:!0,sx:{width:"100%","& .Mui-selected":{bgcolor:"#5B5157 !important"},"& .hover":{bgcolor:"#513D42 !important"}},component:"nav",subheader:t&&v.jsx(mc,{sx:{bgcolor:"transparent"},component:"div",id:"nested-list-subheader",children:t.toUpperCase()}),children:n.map((l,c)=>v.jsxs(Si,{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("history_path",JSON.stringify([...JSON.parse(localStorage.getItem("history_path")||"[]"),l.path]))):(r("open"),s(`${l.path}&view=${l.view}`),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,onAuxClick:u=>{u.preventDefault(),u.stopPropagation(),l.subgroups.length===0&&u.button===1&&window.open(`${l.path}&view=${l.view}`,"_blank")},children:[v.jsx(xi,{children:l.icon}),v.jsx(Ur,{primary:l.title,slotProps:{primary:{sx:{color:"#FFFFFF"}}}}),l.subgroups.length>0?v.jsx(xr,{title:e.expandModule,placement:"right",children:v.jsx(Wr,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"24px",mr:"-3.5px"},children:"keyboard_arrow_right"})}):v.jsx(xr,{title:e.openNewTab,placement:"right",children:v.jsx(Wr,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"16px"},onClick:u=>{u.preventDefault(),u.stopPropagation(),window.open(`${l.path}&view=${l.view}`,"_blank")},children:"new_window"})})]},c))})})},jA=({items:e,setState:t})=>{const n=_s(),r=Yo(),s=new URLSearchParams(r.search);return v.jsx(bt,{size:12,children:v.jsx(ls,{dense:!0,sx:{width:"100%","& .Mui-selected":{bgcolor:"#5B5157 !important"},"& .hover":{bgcolor:"#513D42 !important"}},component:"nav",children:e.map((i,a)=>v.jsx(xr,{title:i.title,placement:"right",children:v.jsx(Si,{sx:{borderRadius:"20px",minHeight:"56px"},onClick:()=>{i.subgroups.length>0?(t("expanded"),n(i.path)):(n(`${i.path}&view=${i.view}`),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,onAuxClick:l=>{l.preventDefault(),l.stopPropagation(),i.subgroups.length===0&&l.button===1&&window.open(`${i.path}&view=${i.view}`,"_blank")},children:v.jsx(xi,{children:i.icon})})},a))})})},GA=({tooltips:e,items:t})=>{const n=Yo(),r=_s(),s=new URLSearchParams(n.search);return v.jsx(bt,{size:12,children:v.jsx(ls,{dense:!0,sx:{width:"100%","& .Mui-selected":{bgcolor:"#5B5157 !important"},"& .hover":{bgcolor:"#513D42 !important"}},component:"nav",children:t.map((i,a)=>v.jsx(v.Fragment,{children:v.jsxs(Si,{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,onAuxClick:l=>{l.preventDefault(),l.stopPropagation(),l.button===1&&window.open(`${n.pathname}?module=${s.get("module")}${i.path}`,"_blank")},children:[v.jsx(Ur,{slotProps:{primary:{sx:{color:"#FFFFFF"}}},primary:i.title}),v.jsx(xr,{title:e.openNewTab,placement:"right",children:v.jsx(Wr,{baseClassName:"material-symbols-rounded",sx:{color:"#FFFFFF",fontSize:"18px"},onClick:l=>{l.preventDefault(),l.stopPropagation(),window.open(`${n.pathname}?module=${s.get("module")}${i.path}`,"_blank")},children:"new_window"})})]},a)}))})})},WA=({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=Yo(),a=new URLSearchParams(i.search);switch(e){case"close":return v.jsx(bt,{sx:{height:"calc(100vh - 160px)"},container:!0,spacing:2,children:v.jsx(jA,{items:s,setState:t})});case"open":return v.jsx(bt,{sx:{height:"calc(100vh - 160px)"},container:!0,spacing:2,children:v.jsx(bt,{size:12,children:n.map((l,c)=>v.jsx(uS,{name:l.name,items:l.items,setState:t,tooltips:r},c))})});case"expanded":return v.jsxs(bt,{sx:{height:"calc(100vh - 160px)"},container:!0,spacing:2,children:[v.jsx(bt,{size:6,children:n.map((l,c)=>v.jsx(uS,{name:l.name,items:l.items,setState:t,tooltips:r},c))}),v.jsx(bt,{size:6,children:v.jsx(GA,{items:s.find(l=>l.path===`${i.pathname}?module=${a.get("module")}`)?.subgroups||[],tooltips:r})})]})}},UA=({state:e,signOut:t})=>{const n=_s();switch(e){case"close":return v.jsx(bt,{container:!0,spacing:2,children:v.jsx(bt,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:12,children:v.jsx(kn,{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(bt,{container:!0,spacing:2,children:v.jsx(bt,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:12,children:v.jsx(Gn,{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(bt,{container:!0,spacing:2,children:[v.jsx(bt,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:6,children:v.jsx(Gn,{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(bt,{size:6})]})}},qA=({items:e,signOut:t,tooltips:n,state:r,setState:s,getWidth:i})=>v.jsxs(jn,{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(fL,{tooltips:n,state:r,setState:s}),v.jsx(WA,{tooltips:n,state:r,setState:s,groups:e}),v.jsx(UA,{state:r,signOut:t})]}),YA=()=>{const[e,t]=ge.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"}}}},KA=vt(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),XA=vt(v.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),ZA=vt(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"),QA=vt(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"),JA="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",eV="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",tV=({product:e,languages:t,form:n})=>{const r=_s(),{user:s,setUser:i,pass:a,setPass:l,loadingAuth:c,isAuthenticated:u}=ge.useContext(Pr),[d,p]=ge.useState(!1),[g,h]=ge.useState(null),[y,m]=ge.useState(t.find(S=>S.active)?.code||"en"),[b,C]=ge.useState(!1),w=()=>C(S=>!S);return u?(console.log("Usuario ya autenticado"),null):v.jsx(v.Fragment,{children:v.jsxs(bt,{container:!0,children:[v.jsx(bt,{size:{xs:0,sm:5.5,lg:6,xl:6},sx:{bgcolor:S=>S.palette.background.paper},children:v.jsxs(jn,{sx:{height:"100vh",width:"50vw",display:"flex",justifyContent:"center",alignItems:"flex-start",padding:"15%",gap:"16px",flexDirection:"column"},children:[v.jsx("img",{src:JA,alt:"Good Rabbit Logo",style:{height:"auto",width:"100%",objectFit:"contain"}}),v.jsx($t,{variant:"h4",sx:{color:S=>S.palette["gr-base-light"].main,fontSize:"44px",fontStyle:"normal",fontWeight:"300",lineHeight:"100%",letterSpacing:"-3%"},children:e.name}),v.jsx("img",{src:eV,alt:"Good Rabbit Logo",style:{position:"absolute",bottom:0,right:"50vw",height:"15vh",objectFit:"contain"}})]})}),v.jsx(bt,{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(jn,{sx:{bgcolor:S=>`${S.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(jn,{children:v.jsx($t,{variant:"h4",sx:{color:S=>S.palette["gr-grey"].main,textAlign:"start",fontSize:"22px",fontStyle:"normal",fontWeight:"700",lineHeight:"normal",mb:"44px"},children:n.title})}),v.jsxs(jn,{sx:{width:"100%"},children:[v.jsx(As,{fullWidth:!0,variant:"outlined",autoComplete:"off",label:n.labels.username,type:"text",placeholder:n.placeholder.username,focused:!0,sx:{marginBottom:"44px"},value:s,onChange:S=>i(S.target.value)}),v.jsx(As,{fullWidth:!0,variant:"outlined",autoComplete:"off",label:n.labels.password,type:b?"text":"password",placeholder:n.placeholder.password,focused:!0,size:"medium",value:a,onChange:S=>l(S.target.value),InputProps:{endAdornment:v.jsx(Aa,{position:"end",children:v.jsx(kn,{"aria-label":b?"Ocultar contraseña":"Mostrar contraseña",onClick:w,edge:"end",sx:{color:S=>S.palette["gr-grey"].main},children:b?v.jsx(QA,{}):v.jsx(ZA,{})})})}})]}),v.jsxs(jn,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",pt:"44px"},children:[v.jsx(Gn,{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:S=>S.palette["gr-grey"].main},"& .MuiCircularProgress-root":{color:S=>S.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($t,{variant:"body2",sx:{color:S=>S.palette["gr-grey"].main,textAlign:"center",fontWeight:"bold",marginTop:"32px",marginBottom:"32px"},children:n.divider}),v.jsxs(jn,{sx:{display:"flex",flexDirection:"row",gap:3.5},children:[v.jsx(Gn,{variant:"outlined",disableElevation:!0,sx:{borderRadius:"20px",padding:"10px 16px",fontWeight:"600",color:S=>S.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(Gn,{variant:"outlined",disableElevation:!0,sx:{borderRadius:"20px",padding:"10px 16px",fontWeight:"600",color:S=>S.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(jn,{sx:{display:"flex",flexDirection:"row",gap:8,mt:"50px"},children:[v.jsxs($t,{variant:"body1",sx:{paddingTop:"17px",color:S=>S.palette["gr-grey"].main,textAlign:"center",fontWeight:"400",width:"150px"},children:[n.version,": ",e.version]}),v.jsxs(Si,{sx:{borderRadius:"20px",cursor:"default",width:"200px"},onClick:S=>{h(S.currentTarget)},disableRipple:!0,children:[v.jsx(em,{children:v.jsx(_d,{sx:{width:30,height:20},variant:"rounded",src:t.find(S=>S.code===y)?.flagUrl,alt:"Selected Language"})}),v.jsx(Ur,{primary:v.jsx($t,{variant:"body1",sx:{color:S=>S.palette["gr-grey"].main,fontWeight:"400"},children:t.find(S=>S.code===y)?.name})}),v.jsx(kn,{onClick:()=>{p(!d)},sx:{color:S=>S.palette["gr-grey"].main},children:d?v.jsx(XA,{}):v.jsx(KA,{})})]}),v.jsx(Kd,{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(pr,{onClick:()=>h(null),children:v.jsx(ls,{sx:{padding:0},children:t.map(S=>v.jsxs(Si,{onClick:()=>{S.onClick(),p(!1),m(S.code)},children:[v.jsx(em,{children:v.jsx(_d,{sx:{width:30,height:20},variant:"rounded",src:S.flagUrl,alt:S.name})}),v.jsx(Ur,{primary:v.jsx($t,{variant:"body1",sx:{color:P=>P.palette["gr-grey"].main,fontWeight:"400"},children:S.name})})]},S.code))})})})]})]})]})})]})})},nV=({product:e,languages:t,form:n})=>v.jsx(v.Fragment,{children:v.jsxs(oS,{children:[v.jsx(Dc,{path:"/signin",element:v.jsx(tV,{product:e,languages:t,form:n})}),v.jsx(Dc,{path:"*",element:v.jsx(nS,{to:"/signin"})})]})}),oV=({routes:e})=>{const t=Yo(),n=_s(),r=JSON.parse(localStorage.getItem("history_path")||"[]");return v.jsx(v.Fragment,{children:v.jsxs(oS,{children:[e.map((s,i)=>v.jsx(Dc,{index:s.path==="/",path:s.path,element:ge.cloneElement(s.element,{location:t,navigate:n})},i)),v.jsx(Dc,{path:"*",element:v.jsx(nS,{to:r[r.length-1]})})]})})};var dS={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},pS=ge.createContext&&ge.createContext(dS),rV=["attr","size","title"];function sV(e,t){if(e==null)return{};var n=iV(e,t),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function pp(){return pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pp.apply(this,arguments)}function fS(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 fp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fS(Object(n),!0).forEach(function(r){aV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aV(e,t,n){return t=lV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lV(e){var t=cV(e,"string");return typeof t=="symbol"?t:t+""}function cV(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 hS(e){return e&&e.map((t,n)=>ge.createElement(t.tag,fp({key:n},t.attr),hS(t.child)))}function gS(e){return t=>ge.createElement(uV,pp({attr:fp({},e.attr)},t),hS(e.child))}function uV(e){var t=n=>{var{attr:r,size:s,title:i}=e,a=sV(e,rV),l=s||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),ge.createElement("svg",pp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:c,style:fp(fp({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&ge.createElement("title",null,i),e.children)};return pS!==void 0?ge.createElement(pS.Consumer,null,n=>t(n)):t(dS)}function dV(e){return gS({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)}function pV(e){return gS({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)}const fV=({username:e,options:t})=>{const[n,r]=ge.useState(!1);return v.jsxs(Mw,{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(kw,{sx:{padding:"8px 20px"},avatar:v.jsx(_d,{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(kn,{sx:{color:"black"},children:n?v.jsx(pV,{color:"black",size:30,onClick:()=>r(!1)}):v.jsx(dV,{color:"black",size:30,onClick:()=>r(!0)})})})}),n&&v.jsx(Ow,{sx:{paddingY:"0px"},children:v.jsx(ls,{children:t.map((s,i)=>v.jsxs(Si,{sx:{borderRadius:"20px"},onClick:s.onClick,children:[v.jsx(xi,{children:s.icon}),v.jsx(Ur,{primary:s.label,slotProps:{primary:{fontSize:"18px",fontStyle:"normal",fontWeight:"400",lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"170px"}}})]},i))})})]})},hV=({getWidth:e,state:t,routes:n,account:r})=>v.jsxs(jn,{sx:{width:`calc(100vw - ${e(t)} - 60px)`,height:"calc(100vh - 40px)"},children:[v.jsx(jn,{sx:{height:"10%"},children:v.jsx(fV,{username:r.username,avatarUrl:r.avatarUrl,options:r.options})}),v.jsx(jn,{sx:{height:"90%"},children:v.jsx(oV,{routes:n})})]}),gV=({sidebar:e,routes:t,account:n})=>{const{state:r,setState:s,getWidth:i}=YA();return v.jsxs(jn,{sx:{p:"20px",display:"grid",gridTemplateColumns:"auto 1fr",gap:"20px"},children:[v.jsx(qA,{items:e.items,signOut:e.signOut,tooltips:e.tooltips,state:r,setState:s,getWidth:i}),v.jsx(hV,{state:r,getWidth:i,routes:t,account:n})]})};function mS(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=mS(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ii(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=mS(e))&&(r&&(r+=" "),r+=t);return r}let mV={data:""},bV=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||mV,yV=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,vV=/\/\*[^]*?\*\/| +/g,bS=/\n+/g,Ti=(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"?Ti(a,i):i+"{"+Ti(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=Ti(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+=Ti.p?Ti.p(i,a):i+":"+a+";")}return n+(t&&s?t+"{"+s+"}":s)+r},ds={},yS=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+yS(e[n]);return t}return e},CV=(e,t,n,r,s)=>{let i=yS(e),a=ds[i]||(ds[i]=(c=>{let u=0,d=11;for(;u<c.length;)d=101*d+c.charCodeAt(u++)>>>0;return"go"+d})(i));if(!ds[a]){let c=i!==e?e:(u=>{let d,p,g=[{}];for(;d=yV.exec(u.replace(vV,""));)d[4]?g.shift():d[3]?(p=d[3].replace(bS," ").trim(),g.unshift(g[0][p]=g[0][p]||{})):g[0][d[1]]=d[2].replace(bS," ").trim();return g[0]})(e);ds[a]=Ti(s?{["@keyframes "+a]:c}:c,n?"":"."+a)}let l=n&&ds.g?ds.g:null;return n&&(ds.g=ds[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)})(ds[a],t,r,l),a},wV=(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?"":Ti(l,""):l===!1?"":l}return r+s+(a??"")},"");function Em(e){let t=this||{},n=e.call?e(t.p):e;return CV(n.unshift?n.raw?wV(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,bV(t.target),t.g,t.o,t.k)}Em.bind({g:1}),Em.bind({k:1});function SV(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 vS(e,t,n){return t&&SV(e.prototype,t),e}function un(){return un=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},un.apply(this,arguments)}function CS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Nc(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 wS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var SS=function(){return""},xS=ge.createContext({enqueueSnackbar:SS,closeSnackbar:SS}),Mi={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},PS=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Im=function(t){return""+PS(t.vertical)+PS(t.horizontal)},hp=function(t){return!!t||t===0},gp="unmounted",za="exited",ja="entering",Rc="entered",ES="exiting",Tm=(function(e){CS(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=za,s.appearStatus=ja):a=Rc:r.unmountOnExit||r.mountOnEnter?a=gp:a=za,s.state={status:a},s.nextCallback=null,s}t.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===gp?{status:za}: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!==ja&&a!==Rc&&(i=ja):(a===ja||a===Rc)&&(i=ES)}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===ja?this.performEnter(s):this.performExit()):this.props.unmountOnExit&&this.state.status===za&&this.setState({status:gp})},n.performEnter=function(s){var i=this,a=this.props.enter,l=s,c=this.getTimeouts();if(!s&&!a){this.safeSetState({status:Rc},function(){i.props.onEntered&&i.props.onEntered(i.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:ja},function(){i.props.onEntering&&i.props.onEntering(i.node,l),i.onTransitionEnd(c.enter,function(){i.safeSetState({status:Rc},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:za},function(){s.props.onExited&&s.props.onExited(s.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:ES},function(){s.props.onExiting&&s.props.onExiting(s.node),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:za},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===gp)return null;var i=this.props,a=i.children,l=Nc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(s,l)},vS(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})(ge.Component);function Ga(){}Tm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ga,onEntering:Ga,onEntered:Ga,onExit:Ga,onExiting:Ga,onExited:Ga};function IS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Mm(e,t){return ge.useMemo(function(){return e==null&&t==null?null:function(n){IS(e,n),IS(t,n)}},[e,t])}function mp(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 Om={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)"},TS=function(t){t.scrollTop=t.scrollTop},MS=function(t){return Math.round(t)+"ms"};function Wa(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?Om.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:MS(s),g=typeof c=="string"?c:MS(c);return d+" "+p+" "+a+" "+g}).join(",")}function xV(e){return e&&e.ownerDocument||document}function OS(e){var t=xV(e);return t.defaultView||window}function PV(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 EV(e,t){var n=t.getBoundingClientRect(),r=OS(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 bp(e,t){if(t){var n=EV(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var kS=ge.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=Nc(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),y=ge.useRef(null),m=Mm(n.ref,y),b=Mm(m,t),C=function(k,T){bp(s,k),TS(k),u&&u(k,T)},w=function(k){var T=a?.transitionTimingFunction||Om.easeOut,O=mp({timeout:c,mode:"enter",style:un({},a,{transitionTimingFunction:T})});k.style.webkitTransition=Wa("-webkit-transform",O),k.style.transition=Wa("transform",O),k.style.webkitTransform="none",k.style.transform="none"},S=function(k){var T=a?.transitionTimingFunction||Om.sharp,O=mp({timeout:c,mode:"exit",style:un({},a,{transitionTimingFunction:T})});k.style.webkitTransition=Wa("-webkit-transform",O),k.style.transition=Wa("transform",O),bp(s,k),p&&p(k)},P=function(k){k.style.webkitTransition="",k.style.transition="",g&&g(k)},x=ge.useCallback(function(){y.current&&bp(s,y.current)},[s]);return ge.useEffect(function(){if(!(i||s==="down"||s==="right")){var M=PV(function(){y.current&&bp(s,y.current)}),k=OS(y.current);return k.addEventListener("resize",M),function(){M.clear(),k.removeEventListener("resize",M)}}},[s,i]),ge.useEffect(function(){i||x()},[i,x]),ge.createElement(Tm,Object.assign({appear:!0,nodeRef:y,onEnter:C,onEntered:d,onEntering:w,onExit:S,onExited:P,in:i,timeout:c},h),function(M,k){return ge.cloneElement(n,un({ref:b,style:un({visibility:M==="exited"&&!i?"hidden":void 0},a,{},n.props.style)},k))})});kS.displayName="Slide";var yp=function(t){return ge.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))},IV=function(){return ge.createElement(yp,null,ge.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`}))},TV=function(){return ge.createElement(yp,null,ge.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},MV=function(){return ge.createElement(yp,null,ge.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`}))},OV=function(){return ge.createElement(yp,null,ge.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`}))},kV={default:void 0,success:ge.createElement(IV,null),warning:ge.createElement(TV,null),error:ge.createElement(MV,null),info:ge.createElement(OV,null)},Oi={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:kV,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:kS,transitionDuration:{enter:225,exit:195}},DV=function(t,n){var r=function(i){return typeof i=="number"||i===null};return r(t)?t:r(n)?n:Oi.autoHideDuration},FV=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"])?un({},Oi.transitionDuration,{},r(n,["object"])&&n,{},t):r(n,["string","number"])?n:r(n,["object"])?un({},Oi.transitionDuration,{},n):Oi.transitionDuration},NV=function(t,n){return function(r,s){return s===void 0&&(s=!1),s?un({},Oi[r],{},n[r],{},t[r]):r==="autoHideDuration"?DV(t.autoHideDuration,n.autoHideDuration):r==="transitionDuration"?FV(t.transitionDuration,n.transitionDuration):t[r]||n[r]||Oi[r]}};function $c(e){return Object.entries(e).reduce(function(t,n){var r,s=n[0],i=n[1];return un({},t,(r={},r[s]=Em(i),r))},{})}var Ua={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},DS=$c({root:{height:0},entered:{height:"auto"}}),km="0px",Dm=175,FS=ge.forwardRef(function(e,t){var n=e.children,r=e.in,s=e.onExited,i=ge.useRef(null),a=ge.useRef(null),l=Mm(t,a),c=function(){return i.current?i.current.clientHeight:0},u=function(m){m.style.height=km},d=function(m){var b=c(),C=mp({timeout:Dm,mode:"enter"}),w=C.duration,S=C.easing;m.style.transitionDuration=typeof w=="string"?w:w+"ms",m.style.height=b+"px",m.style.transitionTimingFunction=S||""},p=function(m){m.style.height="auto"},g=function(m){m.style.height=c()+"px"},h=function(m){TS(m);var b=mp({timeout:Dm,mode:"exit"}),C=b.duration,w=b.easing;m.style.transitionDuration=typeof C=="string"?C:C+"ms",m.style.height=km,m.style.transitionTimingFunction=w||""};return ge.createElement(Tm,{in:r,unmountOnExit:!0,onEnter:u,onEntered:p,onEntering:d,onExit:g,onExited:s,onExiting:h,nodeRef:a,timeout:Dm},function(y,m){return ge.createElement("div",Object.assign({ref:l,className:Ii(DS.root,y==="entered"&&DS.entered),style:un({pointerEvents:"all",overflow:"hidden",minHeight:km,transition:Wa("height")},y==="entered"&&{overflow:"visible"},{},y==="exited"&&!r&&{visibility:"hidden"})},m),ge.createElement("div",{ref:i,className:Ua.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});FS.displayName="Collapse";var NS={right:"left",left:"right",bottom:"up",top:"down"},RV=function(t){return t.horizontal!=="center"?NS[t.horizontal]:NS[t.vertical]},$V=function(t){return"anchorOrigin"+Im(t)},LV=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 un({},r,(i={},i[s]=t[s],i))},{})},AV=function(){};function Lc(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)}},AV)}var VV=typeof window<"u"?ge.useLayoutEffect:ge.useEffect;function RS(e){var t=ge.useRef(e);return VV(function(){t.current=e}),ge.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var $S=ge.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=ge.useRef(),h=RS(function(){l&&l.apply(void 0,arguments)}),y=RS(function(S){!l||S==null||(g.current&&clearTimeout(g.current),g.current=setTimeout(function(){h(null,"timeout",c)},S))});ge.useEffect(function(){return u&&y(s),function(){g.current&&clearTimeout(g.current)}},[u,s,y]);var m=function(){g.current&&clearTimeout(g.current)},b=ge.useCallback(function(){s!=null&&y(s*.5)},[s,y]),C=function(P){p.onMouseEnter&&p.onMouseEnter(P),m()},w=function(P){p.onMouseLeave&&p.onMouseLeave(P),b()};return ge.useEffect(function(){if(!a&&u)return window.addEventListener("focus",b),window.addEventListener("blur",m),function(){window.removeEventListener("focus",b),window.removeEventListener("blur",m)}},[a,b,u]),ge.createElement("div",Object.assign({ref:t},p,{className:Ii(Ua.Snackbar,r),onMouseEnter:C,onMouseLeave:w}),n)});$S.displayName="Snackbar";var Fm,_V=$c({root:(Fm={display:"flex",flexWrap:"wrap",flexGrow:1},Fm[Mi.upSm]={flexGrow:"initial",minWidth:"288px"},Fm)}),LS=ge.forwardRef(function(e,t){var n=e.className,r=Nc(e,["className"]);return ge.createElement("div",Object.assign({ref:t,className:Ii(_V.root,n)},r))});LS.displayName="SnackbarContent";var Ac=$c({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"}}),AS="notistack-snackbar",VS=ge.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)),ge.createElement(LS,{ref:t,role:"alert","aria-describedby":AS,style:c,className:Ii(Ua.MuiContent,Ua.MuiContentVariant(a),Ac.root,Ac[a],u,!l&&d&&Ac.lessPadding)},ge.createElement("div",{id:AS,className:Ac.message},l?null:d,r),p&&ge.createElement("div",{className:Ac.action},p))});VS.displayName="MaterialDesignContent";var BV=ge.memo(VS),HV=$c({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),zV=function(t){var n=ge.useRef(),r=ge.useState(!0),s=r[0],i=r[1],a=Lc([t.snack.onClose,t.onClose]),l=function(){t.snack.requestClose&&a(null,"instructed",t.snack.id)},c=ge.useCallback(function(){n.current=setTimeout(function(){i(function(O){return!O})},125)},[]);ge.useEffect(function(){return function(){n.current&&clearTimeout(n.current)}},[]);var u=t.snack,d=t.classes,p=t.Component,g=p===void 0?BV:p,h=ge.useMemo(function(){return LV(d)},[d]),y=u.open,m=u.SnackbarProps,b=u.TransitionComponent,C=u.TransitionProps,w=u.transitionDuration,S=u.disableWindowBlurListener,P=u.content,x=Nc(u,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),M=un({direction:RV(x.anchorOrigin),timeout:w},C),k=P;typeof k=="function"&&(k=k(x.id,x.message));var T=["onEnter","onEntered","onExit","onExited"].reduce(function(O,I){var D;return un({},O,(D={},D[I]=Lc([t.snack[I],t[I]],x.id),D))},{});return ge.createElement(FS,{in:s,onExited:T.onExited},ge.createElement($S,{open:y,id:x.id,disableWindowBlurListener:S,autoHideDuration:x.autoHideDuration,className:Ii(HV.wrappedRoot,h.root,h[$V(x.anchorOrigin)]),SnackbarProps:m,onClose:a},ge.createElement(b,Object.assign({},M,{appear:!0,in:y,onExit:T.onExit,onExited:c,onEnter:T.onEnter,onEntered:Lc([T.onEntered,l],x.id)}),k||ge.createElement(g,Object.assign({},x)))))},Vc,Nm,vp,Cp,Rm,ps={view:{default:20},snackbar:{default:6,dense:2}},_S="."+Ua.CollapseWrapper,$m=16,wp=$c({root:(Vc={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:Wa(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Vc[_S]={padding:ps.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},Vc.maxWidth="calc(100% - "+ps.view.default*2+"px)",Vc[Mi.downXs]={width:"100%",maxWidth:"calc(100% - "+$m*2+"px)"},Vc),rootDense:(Nm={},Nm[_S]={padding:ps.snackbar.dense+"px 0px"},Nm),top:{top:ps.view.default-ps.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:ps.view.default-ps.snackbar.default+"px",flexDirection:"column-reverse"},left:(vp={left:ps.view.default+"px"},vp[Mi.upSm]={alignItems:"flex-start"},vp[Mi.downXs]={left:$m+"px"},vp),right:(Cp={right:ps.view.default+"px"},Cp[Mi.upSm]={alignItems:"flex-end"},Cp[Mi.downXs]={right:$m+"px"},Cp),center:(Rm={left:"50%",transform:"translateX(-50%)"},Rm[Mi.upSm]={alignItems:"center"},Rm)}),jV=function(t){var n=t.classes,r=n===void 0?{}:n,s=t.anchorOrigin,i=t.dense,a=t.children,l=Ii(Ua.SnackbarContainer,wp[s.vertical],wp[s.horizontal],wp.root,r.containerRoot,r["containerAnchorOrigin"+Im(s)],i&&wp.rootDense);return ge.createElement("div",{className:l},a)},GV=ge.memo(jV),WV=process.env.NODE_ENV!=="production",UV={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."},qV=(function(e){if(WV){var t=UV[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}}),BS=function(t){var n=typeof t=="string"||ge.isValidElement(t);return!n},HS,YV=(function(e){CS(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=BS(i)?i:a,c=BS(i)?i.message:i,u=l.key,d=l.preventDuplicate,p=Nc(l,["key","preventDuplicate"]),g=hp(u),h=g?u:new Date().getTime()+Math.random(),y=NV(p,s.props),m=un({id:h},p,{message:c,open:!0,entered:!1,requestClose:!1,persist:y("persist"),action:y("action"),content:y("content"),variant:y("variant"),anchorOrigin:y("anchorOrigin"),disableWindowBlurListener:y("disableWindowBlurListener"),autoHideDuration:y("autoHideDuration"),hideIconVariant:y("hideIconVariant"),TransitionComponent:y("TransitionComponent"),transitionDuration:y("transitionDuration"),TransitionProps:y("TransitionProps",!0),iconVariant:y("iconVariant",!0),style:y("style",!0),SnackbarProps:y("SnackbarProps",!0),className:Ii(s.props.className,p.className)});return m.persist&&(m.autoHideDuration=void 0),s.setState(function(b){if(d===void 0&&s.props.preventDuplicate||d){var C=function(x){return g?x.id===h:x.message===c},w=b.queue.findIndex(C)>-1,S=b.snacks.findIndex(C)>-1;if(w||S)return b}return s.handleDisplaySnack(un({},b,{queue:[].concat(b.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?un({},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"&&qV("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),un({},d,{open:!1})):un({},d,{requestClose:!0})):un({},d)});return un({},i,{snacks:u})},s.handleEnteredSnack=function(i,a,l){if(!hp(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?un({},d,{entered:!0}):un({},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?un({},g):g.entered?un({},g,{open:!1}):un({},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});hp(i)&&a&&a.onClose&&a.onClose(null,"instructed",i),s.handleCloseSnack(null,"instructed",i)},s.handleExitedSnack=function(i,a){if(!hp(a))throw new Error("handleExitedSnack Cannot be called with undefined key");s.setState(function(l){var c=s.processQueue(un({},l,{snacks:l.snacks.filter(function(u){return u.id!==a})}));return c.queue.length===0?c:s.handleDismissOldest(c)})},s.enqueueSnackbar,HS=s.closeSnackbar,s.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:s.enqueueSnackbar.bind(wS(s)),closeSnackbar:s.closeSnackbar.bind(wS(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,y=this.state.snacks.reduce(function(b,C){var w,S=Im(C.anchorOrigin),P=b[S]||[];return un({},b,(w={},w[S]=[].concat(P,[C]),w))},{}),m=Object.keys(y).map(function(b){var C=y[b],w=C[0];return ge.createElement(GV,{key:b,dense:d,anchorOrigin:w.anchorOrigin,classes:h},C.map(function(S){return ge.createElement(zV,{key:S.id,snack:S,classes:h,Component:g[S.variant],onClose:s.handleCloseSnack,onEnter:s.props.onEnter,onExit:s.props.onExit,onExited:Lc([s.handleExitedSnack,s.props.onExited],S.id),onEntered:Lc([s.handleEnteredSnack,s.props.onEntered],S.id)})}))});return ge.createElement(xS.Provider,{value:i},c,l?xs.createPortal(m,l):m)},vS(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Oi.maxSnack}}]),t})(ge.Component),KV=(function(){return ge.useContext(xS)});function ne(){return ne=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},ne.apply(null,arguments)}function at(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}const XV=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:ne({},e)}}}}),zS={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"},ZV=zS;XV(zS);const QV=["localeText"],Sp=f.createContext(null);process.env.NODE_ENV!=="production"&&(Sp.displayName="PickerAdapterContext");const _c=function(t){const{localeText:n}=t,r=at(t,QV),{adapter:s,localeText:i}=f.useContext(Sp)??{adapter:void 0,localeText:void 0},a=Rt({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:p,localeText:g}=a,h=f.useMemo(()=>ne({},g,i,n),[g,i,n]),y=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(()=>y?{minDate:y.date("1900-01-01T00:00:00.000"),maxDate:y.date("2099-12-31T00:00:00.000")}:null,[y]),b=f.useMemo(()=>({utils:y,adapter:y,defaultDates:m,localeText:h}),[m,y,h]);return v.jsx(Sp.Provider,{value:b,children:l})};process.env.NODE_ENV!=="production"&&(_c.displayName="LocalizationProvider"),process.env.NODE_ENV!=="production"&&(_c.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 Lm=()=>{const e=f.useContext(Sp);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(()=>ne({},ZV,e.localeText),[e.localeText]);return f.useMemo(()=>ne({},e,{localeText:t}),[e,t])},Et=()=>Lm().adapter,Oo=()=>Lm().localeText,Am=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Vm=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],jS=["minDateTime","maxDateTime"],JV=[...Am,...Vm,...jS],xp=e=>JV.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),e_=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],GS=(e,t)=>f.useMemo(()=>{const n=ne({},e),r={},s=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return e_.forEach(s),t==="date"?Am.forEach(s):t==="time"?Vm.forEach(s):t==="date-time"&&(Am.forEach(s),Vm.forEach(s),jS.forEach(s)),{forwardedProps:n,internalProps:r}},[e,t]),Bc=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),t_=({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}},ki=(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},Hc=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:s,isDateDisabled:i,adapter:a,timezone:l})=>{const c=ki(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},WS=(e,t)=>e.isValid(t)?t:null,Pp=(e,t,n)=>t==null||!e.isValid(t)?n:t,Ep=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),_m=(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},Ip=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),n_=["year","month","day"],Bm=e=>n_.includes(e),Hm=(e,{format:t,views:n},r)=>{if(t!=null)return t;const s=e.formats;return Bc(n,["year"])?s.year:Bc(n,["month"])?s.month:Bc(n,["day"])?s.dayOfMonth:Bc(n,["month","year"])?`${s.month} ${s.year}`:Bc(n,["day","month"])?`${s.month} ${s.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?s.normalDateWithWeekday:s.normalDate:s.keyboardDate},o_=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},zm=(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}},Tp=(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))},US=(e,t,n,r)=>{switch(n){case"month":return _m(e,e.date(void 0,t)).map(s=>e.formatByString(s,r));case"weekDay":return Tp(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[]}},qS="s",r_=["0","1","2","3","4","5","6","7","8","9"],s_=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),qS)==="0"?r_:Array.from({length:10}).map((r,s)=>e.formatByString(e.setSeconds(t,s),qS))},Di=(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("")},jm=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),YS=(e,t)=>{const n=Di(e,t);return n!==" "&&!Number.isNaN(Number(n))},Gm=(e,t)=>Number(e).toString().padStart(t,"0"),KS=(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=Gm(i,s.maxLength)),jm(i,r)},Wm=(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(Di(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!s&&r.length===1&&(r=`${r}`),t==="input-rtl"&&(r=`${r}`),r},XS=(e,t,n,r)=>{if(process.env.NODE_ENV!=="production"&&zm(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),r)},i_=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,ZS=(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")}},a_=(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(Wm(u,"non-input",n)))}const a=s.join(" "),l=i.join(" ");return e.parse(l,a)},QS=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),JS=(e,t,n)=>{const s=e.map(i=>{const a=Wm(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${s}`:s},l_=(e,t,n)=>{const r=e.date(void 0,n),s=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:l}=_m(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:i_(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=Tp(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 Di(e.formatByString(e.endOfDay(r),c),t)!==u.toString()?{minimum:1,maximum:Number(Di(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 ex=!1;const tx=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!ex){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('", "')}"]\`.`),ex=!0)}},c_=(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=Gm(s,t.maxLength));const i=Tp(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}},nx={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},ox=(e,t,n,r,s)=>[...n].sort((i,a)=>nx[i.type]-nx[a.type]).reduce((i,a)=>!s||a.modified?c_(e,a,t,i):i,r),u_=()=>navigator.userAgent.toLowerCase().includes("android"),d_=(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]}},Um=(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},p_=({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},f_=({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},h_=(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}},g_=({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=zm(e,a),u=ZS(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=jm(Gm(Di(g,s),h),s))}return ne({},c,{format:a,maxLength:h,value:g,placeholder:h_(e,r,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},m_=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,y)=>y.length-h.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),p=h=>r.find(y=>y.start<=h&&y.end>=h);let g=0;for(;g<n.length;){const h=p(g),y=h!=null,m=c.exec(n.slice(g))?.[1];if(!y&&m!=null&&u.test(m)){let b=m;for(;b.length>0;){const C=d.exec(b)[1];b=b.slice(C.length),i.push(g_(ne({},e,{now:s,token:C,startSeparator:a}))),a=""}g+=m.length}else{const b=n[g];y&&h?.start===g||h?.end===g||(i.length===0?a+=b:(i[i.length-1].endSeparator+=b,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},b_=({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}),rx=e=>{let t=p_(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=f_(ne({},e,{expandedFormat:t})),r=m_(ne({},e,{expandedFormat:t,escapedParts:n}));return b_(ne({},e,{sections:r}))},Mp=f.createContext(null);process.env.NODE_ENV!=="production"&&(Mp.displayName="PickerContext");const Fi=()=>{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},qm=()=>f.useContext(Mp),Ym=f.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(Ym.displayName="IsValidValueContext");function y_(){return f.useContext(Ym)}const Km=f.createContext(null);process.env.NODE_ENV!=="production"&&(Km.displayName="PickerFieldPrivateContext");function sx(){return f.useContext(Km)}const Xm=f.createContext(null);process.env.NODE_ENV!=="production"&&(Xm.displayName="PickerActionsContext");const Zm=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"&&(Zm.displayName="PickerPrivateContext");function zc(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(Xm.Provider,{value:n,children:v.jsx(Zm.Provider,{value:r,children:v.jsx(Km.Provider,{value:s,children:v.jsx(Ym.Provider,{value:i,children:v.jsx(_c,{localeText:a,children:l})})})})})})}const v_=()=>{const e=f.useContext(Xm);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},ix=()=>Lm().defaultDates,Op=e=>{const t=Et(),n=f.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},C_=vt(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),w_=vt(v.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),S_=vt(v.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),ax=vt(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"),x_=vt(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"),P_=vt(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");vt(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 E_=vt(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 I_(e){return ke("MuiPickersArrowSwitcher",e)}Oe("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Qn=()=>f.useContext(Zm),T_=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],M_=["ownerState"],O_=["ownerState"],k_=Z("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),D_=Z("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),lx=Z(kn,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),F_=e=>de({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},I_,e),Qm=f.forwardRef(function(t,n){const r=Gt(),s=Rt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:p,nextLabel:g,isPreviousDisabled:h,isPreviousHidden:y,onGoToPrevious:m,previousLabel:b,labelId:C,classes:w}=s,S=at(s,T_),{ownerState:P}=Qn(),x=F_(w),M={isDisabled:u,isHidden:d,goTo:p,label:g},k={isDisabled:h,isHidden:y,goTo:m,label:b},T=l?.previousIconButton??lx,O=it({elementType:T,externalSlotProps:c?.previousIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"end",onClick:k.goTo},ownerState:ne({},P,{isButtonHidden:k.isHidden??!1}),className:ie(x.button,x.previousIconButton)}),I=l?.nextIconButton??lx,D=it({elementType:I,externalSlotProps:c?.nextIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"start",onClick:M.goTo},ownerState:ne({},P,{isButtonHidden:M.isHidden??!1}),className:ie(x.button,x.nextIconButton)}),E=l?.leftArrowIcon??w_,N=it({elementType:E,externalSlotProps:c?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:P,className:x.leftArrowIcon}),L=at(N,M_),$=l?.rightArrowIcon??S_,F=it({elementType:$,externalSlotProps:c?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:P,className:x.rightArrowIcon}),R=at(F,O_);return v.jsxs(k_,ne({ref:n,className:ie(x.root,a),ownerState:P},S,{children:[v.jsx(T,ne({},O,{children:r?v.jsx($,ne({},R)):v.jsx(E,ne({},L))})),i?v.jsx($t,{variant:"subtitle1",component:"span",id:C,children:i}):v.jsx(D_,{className:x.spacer,ownerState:P}),v.jsx(I,ne({},D,{children:r?v.jsx(E,ne({},L)):v.jsx($,ne({},R))}))]}))});process.env.NODE_ENV!=="production"&&(Qm.displayName="PickersArrowSwitcher");const N_=["hours","minutes","seconds"],R_=e=>N_.includes(e),cx=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),ux=(e,t)=>(n,r)=>e?t.isAfter(n,r):cx(n,t)>cx(r,t),dx={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function px(e){const{steps:t,isViewMatchingStep:n,onStepChange:r}=e;return s=>{if(t==null)return dx;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(ne({},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 Jm=!1;function eb({onChange:e,onViewChange:t,openTo:n,view:r,views:s,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(Jm||(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('", "')}"]\`.`),Jm=!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('", "')}"]\`.`),Jm=!0)));const u=f.useRef(n),d=f.useRef(s),p=f.useRef(s.includes(n)?n:s[0]),[g,h]=po({name:"useViews",state:"view",controlled:r,default:p.current}),y=f.useRef(i?g:null),[m,b]=po({name:"useViews",state:"focusedView",controlled:a,default:y.current}),C=c?c({setView:h,view:g,defaultView:p.current,views:s}):dx;f.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(O=>!s.includes(O)))&&(h(s.includes(n)?n:s[0]),d.current=s,u.current=n)},[n,h,g,s]);const w=s.indexOf(g),S=s[w-1]??null,P=s[w+1]??null,x=fe((O,I)=>{b(I?O:D=>O===D?null:D),l?.(O,I)}),M=fe(O=>{x(O,!0),O!==g&&(h(O),t&&t(O))}),k=fe(()=>{P&&M(P)}),T=fe((O,I,D)=>{const E=I==="finish",N=D?s.indexOf(D)<s.length-1:!!P;e(O,E&&N?"partial":I,D);let $=null;if(D!=null&&D!==g?$=D:E&&($=g),$==null)return;const F=s[s.indexOf($)+1];F==null||!C.areViewsInSameStep($,F)||M(F)});return ne({},C,{view:g,setView:M,focusedView:m,setFocusedView:x,nextView:P,previousView:S,defaultView:s.includes(n)?n:s[0],goToNextView:k,setValueAndGoToNextView:T})}function fx(e,{disableFuture:t,maxDate:n,timezone:r}){const s=Et();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 hx(e,{disablePast:t,minDate:n,timezone:r}){const s=Et();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 jc=36,Gc=2,Wc=320,$_=280,tb=336,L_=Z("div")({overflow:"hidden",width:Wc,maxHeight:tb,display:"flex",flexDirection:"column",margin:"0 auto"}),qa=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:s,onChange:i,valueManager:a})=>{const l=Et(),[c,u]=po({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]),y=fe((m,...b)=>{const C=p(m);u(C),i?.(C,...b)});return{value:h,handleValueChange:y,timezone:g}},Yr={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},A_=e=>Math.max(...e.map(t=>Yr[t.type]??1)),Uc=(e,t,n)=>{if(t===Yr.year)return e.startOfYear(n);if(t===Yr.month)return e.startOfMonth(n);if(t===Yr.day)return e.startOfDay(n);let r=n;return t<Yr.minutes&&(r=e.setMinutes(r,0)),t<Yr.seconds&&(r=e.setSeconds(r,0)),t<Yr.milliseconds&&(r=e.setMilliseconds(r,0)),r},gx=({props:e,adapter:t,granularity:n,timezone:r,getTodayDate:s})=>{let i=s?s():Uc(t,n,Ip(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Uc(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Uc(t,n,e.maxDate));const a=ux(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=Uc(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:ki(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=Uc(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:ki(t,i,e.maxTime))),i},V_=["value","referenceDate"],ko={emptyValue:null,getTodayValue:Ip,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=at(e,V_);return r.adapter.isValid(t)?t:n??gx(r)},cleanValue:WS,areValuesEqual:Ep,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)},nb={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:QS,getV6InputValueFromSections:JS,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>ne({},t,{value:""}))};function __(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const B_=e=>{setTimeout(e,0)},mx=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?mx(t.shadowRoot):t:null},go=e=>mx(Qt(e)),ob="@media (pointer: fine)";function H_(...e){return e.reduce((t,n)=>(Array.isArray(n)?t.push(...n):n!=null&&t.push(n),t),[])}function z_(e){return ke("MuiPickersDay",e)}const Ni=Oe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function rb(e){const{disabled:t,selected:n,today:r,outsideCurrentMonth:s,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=Et(),{ownerState:d}=Qn();return f.useMemo(()=>ne({},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 j_=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],G_=(e,t)=>{const{isDaySelected:n,isDayDisabled:r,isDayCurrent:s,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=t,u=i&&!c;return de({root:["root",n&&!u&&"selected",r&&"disabled",!a&&"dayWithMargin",!l&&s&&"today",i&&c&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},z_,e)},bx=({theme:e})=>ne({},e.typography.caption,{width:jc,height:jc,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})`:zn(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:zn(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Ni.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ni.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}},[`&.${Ni.disabled}:not(.${Ni.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ni.disabled}&.${Ni.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Gc}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${Ni.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),yx=(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]},W_=Z(ir,{name:"MuiPickersDay",slot:"Root",overridesResolver:yx})(bx),U_=Z("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:yx})(({theme:e})=>ne({},bx({theme:e}),{opacity:0,pointerEvents:"none"})),qc=()=>{},sb=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPickersDay"}),{autoFocus:s=!1,className:i,classes:a,isAnimating:l,onClick:c,onDaySelect:u,onFocus:d=qc,onBlur:p=qc,onKeyDown:g=qc,onMouseDown:h=qc,onMouseEnter:y=qc,children:m,day:b,selected:C,disabled:w,today:S,outsideCurrentMonth:P,disableMargin:x,disableHighlightToday:M,showDaysOutsideCurrentMonth:k}=r,T=at(r,j_),O=rb({day:b,selected:C,disabled:w,today:S,outsideCurrentMonth:P,disableMargin:x,disableHighlightToday:M,showDaysOutsideCurrentMonth:k}),I=G_(a,O),D=Et(),E=f.useRef(null),N=st(E,n);ht(()=>{s&&!w&&!l&&!P&&E.current.focus()},[s,w,l,P]);const L=F=>{h(F),P&&F.preventDefault()},$=F=>{F.defaultMuiPrevented=!0,w||u(b),P&&F.currentTarget.focus(),c&&c(F)};return P&&!k?v.jsx(U_,{className:ie(I.root,I.hiddenDaySpacingFiller,i),ownerState:O,role:T.role}):v.jsx(W_,ne({className:ie(I.root,i),ref:N,centerRipple:!0,disabled:w,tabIndex:C?0:-1,onKeyDown:F=>g(F,b),onFocus:F=>d(F,b),onBlur:F=>p(F,b),onMouseEnter:F=>y(F,b),onClick:$,onMouseDown:L},T,{ownerState:O,children:m??D.format(b,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(sb.displayName="PickersDayRaw"),process.env.NODE_ENV!=="production"&&(sb.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 ib=f.memo(sb);process.env.NODE_ENV!=="production"&&(ib.displayName="PickersDay");const Ya=e=>e.saveQuery!=null,vx=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:r,setCharacterQuery:s,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=Et(),c=({keyPressed:p,sectionIndex:g},h,y)=>{const m=p.toLowerCase(),b=n.sections[g];if(n.characterQuery!=null&&(!y||y(n.characterQuery.value))&&n.characterQuery.sectionIndex===g){const w=`${n.characterQuery.value}${m}`,S=h(w,b);if(!Ya(S))return s({sectionIndex:g,value:w,sectionType:b.type}),S}const C=h(m,b);return Ya(C)&&!C.saveQuery?(s(null),null):(s({sectionIndex:g,value:m,sectionType:b.type}),Ya(C)?null:C)},u=p=>{const g=(m,b,C)=>{const w=b.filter(S=>S.toLowerCase().startsWith(C));return w.length===0?{saveQuery:!1}:{sectionValue:w[0],shouldGoToNextSection:w.length===1}},h=(m,b,C,w)=>{const S=P=>US(l,r,b.type,P);if(b.contentType==="letter")return g(b.format,S(b.format),m);if(C&&w!=null&&zm(l,C).contentType==="letter"){const P=S(C),x=g(C,P,m);return Ya(x)?{saveQuery:!1}:ne({},x,{sectionValue:w(x.sectionValue,P)})}return{saveQuery:!1}};return c(p,(m,b)=>{switch(b.type){case"month":{const C=w=>XS(l,w,l.formats.month,b.format);return h(m,b,l.formats.month,C)}case"weekDay":{const C=(w,S)=>S.indexOf(w).toString();return h(m,b,l.formats.weekday,C)}case"meridiem":return h(m,b);default:return{saveQuery:!1}}})},d=p=>{const g=({queryValue:y,skipIfBelowMinimum:m,section:b})=>{const C=Di(y,e),w=Number(C),S=t[b.type]({currentDate:null,format:b.format,contentType:b.contentType});if(w>S.maximum)return{saveQuery:!1};if(m&&w<S.minimum)return{saveQuery:!0};const P=w*10>S.maximum||C.length===S.maximum.toString().length;return{sectionValue:KS(l,w,S,e,b),shouldGoToNextSection:P}};return c(p,(y,m)=>{if(m.contentType==="digit"||m.contentType==="digit-with-letter")return g({queryValue:y,skipIfBelowMinimum:!1,section:m});if(m.type==="month"){ZS(l,"digit","month","MM");const b=g({queryValue:y,skipIfBelowMinimum:!0,section:{type:m.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Ya(b))return b;const C=XS(l,b.sectionValue,"MM",m.format);return ne({},b,{sectionValue:C})}if(m.type==="weekDay"){const b=g({queryValue:y,skipIfBelowMinimum:!0,section:m});if(Ya(b))return b;const C=Tp(l,m.format)[Number(b.sectionValue)-1];return ne({},b,{sectionValue:C})}return{saveQuery:!1}},y=>YS(y,e))};return fe(p=>{const g=n.sections[p.sectionIndex],y=YS(p.keyPressed,e)?d(ne({},p,{keyPressed:jm(p.keyPressed,e)})):u(p);if(y==null){i(null);return}a({section:g,newSectionValue:y.sectionValue,shouldGoToNextSection:y.shouldGoToNextSection})})},Bs=({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}};Bs.valueManager=ko;const ab=({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=ux(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}};ab.valueManager=ko;const Cx=({adapter:e,value:t,timezone:n,props:r})=>{const s=Bs({adapter:e,value:t,timezone:n,props:r});return s!==null?s:ab({adapter:e,value:t,timezone:n,props:r})};Cx.valueManager=ko;function wx(e){const{props:t,validator:n,value:r,timezone:s,onError:i}=e,a=Et(),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 q_=5e3,Sx=e=>{const t=Et(),n=Oo(),r=Gt(),{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:y="dense",selectedSections:m,onSelectedSectionsChange:b,shouldRespectLeadingZeros:C=!1,timezone:w,enableAccessibleFieldDOMStructure:S=!0},forwardedProps:{error:P}}=e,{value:x,handleValueChange:M,timezone:k}=qa({name:"a field component",timezone:w,value:u,defaultValue:d,referenceDate:p,onChange:g,valueManager:a}),T=f.useRef(x);f.useEffect(()=>{T.current=x},[x]);const{hasValidationError:O}=wx({props:c,validator:s,timezone:k,value:x,onError:c.onError}),I=f.useMemo(()=>s_(t),[t]),D=f.useMemo(()=>l_(t,I,k),[t,I,k]),E=f.useCallback(te=>l.getSectionsFromValue(te,Q=>rx({adapter:t,localeText:n,localizedDigits:I,format:h,date:Q,formatDensity:y,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:S,isRtl:r})),[l,h,n,I,r,C,t,y,S]),[N,L]=f.useState(()=>{const te=E(x);tx(te,i);const Q={sections:te,lastExternalValue:x,lastSectionsDependencies:{format:h,isRtl:r,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},Ce=A_(te),le=a.getInitialReferenceValue({referenceDate:p,value:x,adapter:t,props:c,granularity:Ce,timezone:k});return ne({},Q,{referenceValue:le})}),[$,F]=po({controlled:m,default:null,name:"useField",state:"selectedSections"}),R=te=>{F(te),b?.(te)},B=f.useMemo(()=>Um($,N.sections),[$,N.sections]),_=B==="all"?0:B,V=f.useMemo(()=>d_(N.sections,r&&!S),[N.sections,r,S]),A=f.useMemo(()=>N.sections.every(te=>te.value===""),[N.sections]),z=f.useMemo(()=>{if(_!=null)return!1;const te=N.sections.filter(Q=>Q.value!=="");return te.length>0&&N.sections.length-te.length>0},[N.sections,_]),G=f.useMemo(()=>P!==void 0?P:O||z,[O,z,P]),U=te=>{const Q={validationError:s({adapter:t,value:te,timezone:k,props:c})};M(te,Q)},X=(te,Q)=>{const Ce=[...N.sections];return Ce[te]=ne({},Ce[te],{value:Q,modified:!0}),Ce},Y=f.useRef(null),ee=On(),oe=te=>{_!=null&&(Y.current={sectionIndex:_,value:te},ee.start(0,()=>{Y.current=null}))},K=()=>{a.areValuesEqual(t,x,a.emptyValue)?L(te=>ne({},te,{sections:te.sections.map(Q=>ne({},Q,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(L(te=>ne({},te,{characterQuery:null})),U(a.emptyValue))},W=()=>{if(_==null)return;const te=N.sections[_];te.value!==""&&(oe(""),l.getDateFromSection(x,te)===null?L(Q=>ne({},Q,{sections:X(_,""),tempValueStrAndroid:null,characterQuery:null})):(L(Q=>ne({},Q,{characterQuery:null})),U(l.updateDateInValue(x,te,null))))},J=te=>{const Q=(le,xe)=>{const we=t.parse(le,h);if(!t.isValid(we))return null;const Ue=rx({adapter:t,localeText:n,localizedDigits:I,format:h,date:we,formatDensity:y,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:S,isRtl:r});return ox(t,we,Ue,xe,!1)},Ce=l.parseValueStr(te,N.referenceValue,Q);U(Ce)},q=On(),ce=({section:te,newSectionValue:Q,shouldGoToNextSection:Ce})=>{ee.clear(),q.clear();const le=l.getDateFromSection(x,te);Ce&&_<N.sections.length-1&&R(_+1);const xe=X(_,Q),we=l.getDateSectionsFromValue(xe,te),Ue=a_(t,we,I);if(t.isValid(Ue)){const $e=ox(t,Ue,we,l.getDateFromSection(N.referenceValue,te),!0);return le==null&&q.start(0,()=>{T.current===x&&L(Ze=>ne({},Ze,{sections:l.clearDateSections(N.sections,te),tempValueStrAndroid:null}))}),U(l.updateDateInValue(x,te,$e))}return we.every($e=>$e.value!=="")&&(le==null||t.isValid(le))?(oe(Q),U(l.updateDateInValue(x,te,Ue))):(le!=null&&(oe(Q),U(l.updateDateInValue(x,te,Ue))),L($e=>ne({},$e,{sections:xe,tempValueStrAndroid:null})))},re=te=>L(Q=>ne({},Q,{tempValueStrAndroid:te})),se=fe(te=>{L(Q=>ne({},Q,{characterQuery:te}))});if(x!==N.lastExternalValue){const te=Y.current!=null&&!t.isValid(l.getDateFromSection(x,N.sections[Y.current.sectionIndex]));let Q;te?Q=X(Y.current.sectionIndex,Y.current.value):Q=E(x),L(Ce=>ne({},Ce,{lastExternalValue:x,sections:Q,sectionsDependencies:{format:h,isRtl:r,locale:t.locale},referenceValue:te?Ce.referenceValue:l.updateReferenceValue(t,x,Ce.referenceValue),tempValueStrAndroid:null}))}if(r!==N.lastSectionsDependencies.isRtl||h!==N.lastSectionsDependencies.format||t.locale!==N.lastSectionsDependencies.locale){const te=E(x);tx(te,i),L(Q=>ne({},Q,{lastSectionsDependencies:{format:h,isRtl:r,locale:t.locale},sections:te,tempValueStrAndroid:null,characterQuery:null}))}N.characterQuery!=null&&!G&&_==null&&se(null),N.characterQuery!=null&&N.sections[N.characterQuery.sectionIndex]?.type!==N.characterQuery.sectionType&&se(null),f.useEffect(()=>{Y.current!=null&&(Y.current=null)});const ae=On();return f.useEffect(()=>(N.characterQuery!=null&&ae.start(q_,()=>se(null)),()=>{}),[N.characterQuery,se,ae]),f.useEffect(()=>{N.tempValueStrAndroid!=null&&_!=null&&W()},[N.sections]),{activeSectionIndex:_,areAllSectionsEmpty:A,error:G,localizedDigits:I,parsedSelectedSections:B,sectionOrder:V,sectionsValueBoundaries:D,state:N,timezone:k,value:x,clearValue:K,clearActiveSection:W,setCharacterQuery:se,setSelectedSections:R,setTempAndroidValueStr:re,updateSectionValue:ce,updateValueFromValueStr:J,getSectionsFromValue:E}};function xx(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:r}=e,s=qm(),i=sx(),a=st(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?ne({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 lb(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:r,state:s}}=e;if(!n.isReady())return;const i=Qt(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(go(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 Px(e){const t=Et(),{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:y,clearActiveSection:m,setSelectedSections:b,updateSectionValue:C}}=e;return fe(w=>{if(!s)switch(!0){case((w.ctrlKey||w.metaKey)&&String.fromCharCode(w.keyCode)==="A"&&!w.shiftKey&&!w.altKey):{w.preventDefault(),b("all");break}case w.key==="ArrowRight":{if(w.preventDefault(),u==null)b(h.startIndex);else if(u==="all")b(h.endIndex);else{const S=h.neighbors[u].rightIndex;S!==null&&b(S)}break}case w.key==="ArrowLeft":{if(w.preventDefault(),u==null)b(h.endIndex);else if(u==="all")b(h.startIndex);else{const S=h.neighbors[u].leftIndex;S!==null&&b(S)}break}case w.key==="Delete":{if(w.preventDefault(),i)break;u==null||u==="all"?y():m();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(w.key):{if(w.preventDefault(),i||c==null)break;u==="all"&&b(c);const S=a.sections[c],P=K_(t,g,S,w.key,d,p,n.getDateFromSection(l,S),{minutesStep:r});C({section:S,newSectionValue:P,shouldGoToNextSection:!1});break}}})}function Y_(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function K_(e,t,n,r,s,i,a,l){const c=Y_(r),u=r==="Home",d=r==="End",p=n.value===""||u||d,g=()=>{const y=s[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),m=w=>KS(e,w,y,i,n),b=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=y.minimum:C=y.maximum}else C=parseInt(Di(n.value,i),10)+c*b;return C%b!==0&&((c<0||u)&&(C+=b-(b+C)%b),(c>0||d)&&(C-=C%b)),C>y.maximum?m(y.minimum+(C-y.maximum-1)%(y.maximum-y.minimum+1)):C<y.minimum?m(y.maximum-(y.minimum-C-1)%(y.maximum-y.minimum+1)):m(C)},h=()=>{const y=US(e,t,n.type,n.format);if(y.length===0)return n.value;if(p)return c>0||u?y[0]:y[y.length-1];const C=((y.indexOf(n.value)+c)%y.length+y.length)%y.length;return y[C]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?g():h()}function X_(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:y},internalPropsWithDefaults:{disabled:m=!1,readOnly:b=!1}}=e,C=Px({manager:t,internalPropsWithDefaults:l,stateResponse:i}),w=On(),S=fe(T=>{m||!s.isReady()||(r(!0),c==="all"?w.start(0,()=>{const O=document.getSelection().getRangeAt(0).startOffset;if(O===0){h(u.startIndex);return}let I=0,D=0;for(;D<O&&I<d.sections.length;){const E=d.sections[I];I+=1,D+=`${E.startSeparator}${E.value||E.placeholder}${E.endSeparator}`.length}h(I-1)}):n?s.getRoot().contains(T.target)||h(u.startIndex):(r(!0),h(u.startIndex)))}),P=fe(T=>{if(!s.isReady()||c!=="all")return;const I=T.target.textContent??"";s.getRoot().innerHTML=d.sections.map(D=>`${D.startSeparator}${D.value||D.placeholder}${D.endSeparator}`).join(""),lb({focused:n,domGetters:s,stateResponse:i}),I.length===0||I.charCodeAt(0)===10?(p(),h("all")):I.length>1?y(I):(c==="all"&&h(0),a({keyPressed:I,sectionIndex:0}))}),x=fe(T=>{if(b||c!=="all"){T.preventDefault();return}const O=T.clipboardData.getData("text");T.preventDefault(),g(null),y(O)}),M=fe(()=>{if(n||m||!s.isReady())return;const T=go(s.getRoot());r(!0),s.getSectionIndexFromDOMElement(T)!=null||h(u.startIndex)}),k=fe(()=>{setTimeout(()=>{if(!s.isReady())return;const T=go(s.getRoot());!s.getRoot().contains(T)&&(r(!1),h(null))})});return{onKeyDown:C,onBlur:k,onFocus:M,onClick:S,onPaste:x,onInput:P,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function Z_(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 Q_(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 J_(e){const t=Et(),n=Oo(),{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:y,updateSectionValue:m,updateValueFromValueStr:b},internalPropsWithDefaults:{disabled:C=!1,readOnly:w=!1}}=e,S=c==="all",P=!S&&!C&&!w,x=fe(D=>{if(!s.isReady())return;const E=d.sections[D];s.getSectionContent(D).innerHTML=E.value||E.placeholder,lb({focused:r,domGetters:s,stateResponse:i})}),M=fe(D=>{if(!s.isReady())return;const E=D.target,N=E.textContent??"",L=s.getSectionIndexFromDOMElement(E),$=d.sections[L];if(w){x(L);return}if(N.length===0){if($.value===""){x(L);return}const F=D.nativeEvent.inputType;if(F==="insertParagraph"||F==="insertLineBreak"){x(L);return}x(L),g();return}a({keyPressed:N,sectionIndex:L}),x(L)}),k=fe(D=>{D.preventDefault()}),T=fe(D=>{if(D.preventDefault(),w||C||typeof c!="number")return;const E=d.sections[c],N=D.clipboardData.getData("text"),L=/^[a-zA-Z]+$/.test(N),$=/^[0-9]+$/.test(N),F=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(N);E.contentType==="letter"&&L||E.contentType==="digit"&&$||E.contentType==="digit-with-letter"&&F?(h(null),m({section:E,newSectionValue:N,shouldGoToNextSection:!0})):!L&&!$&&(h(null),b(N))}),O=fe(D=>{D.preventDefault(),D.dataTransfer.dropEffect="none"}),I=f.useCallback(D=>()=>{C||y(D)},[C,y]);return f.useCallback((D,E)=>{const N=u[D.type]({currentDate:l.getDateFromSection(p,D),contentType:D.contentType,format:D.format});return{onInput:M,onPaste:T,onMouseUp:k,onDragOver:O,onFocus:I(E),"aria-readonly":w,"aria-valuenow":tB(D,t),"aria-valuemin":N.minimum,"aria-valuemax":N.maximum,"aria-valuetext":D.value?eB(D,t):n.empty,"aria-label":n[D.type],"aria-disabled":C,tabIndex:!P||S||E>0?-1:0,contentEditable:!S&&!C&&!w,role:"spinbutton","data-range-position":D.dateName||void 0,spellCheck:P?!1:void 0,autoCapitalize:P?"none":void 0,autoCorrect:P?"off":void 0,children:D.value||D.placeholder,inputMode:D.contentType==="letter"?"text":"numeric"}},[u,S,C,w,P,n,t,M,T,k,O,I,l,p])}function eB(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 tB(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 nB=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:r,manager:{valueType:s,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=GS(t,s),c=xx({manager:n,internalProps:a,skipContextFieldRefAssignment:r}),{sectionListRef:u,onBlur:d,onClick:p,onFocus:g,onInput:h,onPaste:y,onKeyDown:m,onClear:b,clearable:C}=l,{disabled:w=!1,readOnly:S=!1,autoFocus:P=!1,focused:x,unstableFieldRef:M}=c,k=f.useRef(null),T=st(u,k),O=f.useMemo(()=>({isReady:()=>k.current!=null,getRoot:()=>k.current.getRoot(),getSectionContainer:ae=>k.current.getSectionContainer(ae),getSectionContent:ae=>k.current.getSectionContent(ae),getSectionIndexFromDOMElement:ae=>k.current.getSectionIndexFromDOMElement(ae)}),[k]),I=Sx({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:D,error:E,parsedSelectedSections:N,sectionOrder:L,state:$,value:F,clearValue:R,setSelectedSections:B}=I,_=vx({stateResponse:I}),V=i(F),[A,z]=f.useState(!1);function G(ae=0){if(w||!k.current||Ex(k)!=null)return;const te=Um(ae,$.sections);z(!0),k.current.getSectionContent(te).focus()}const U=X_({manager:n,internalPropsWithDefaults:c,stateResponse:I,applyCharacterEditing:_,focused:A,setFocused:z,domGetters:O}),X=Z_({manager:n,stateResponse:I}),Y=Q_({stateResponse:I,internalPropsWithDefaults:c}),ee=J_({manager:n,stateResponse:I,applyCharacterEditing:_,internalPropsWithDefaults:c,domGetters:O,focused:A}),oe=fe(ae=>{m?.(ae),U.onKeyDown(ae)}),K=fe(ae=>{d?.(ae),U.onBlur(ae)}),W=fe(ae=>{g?.(ae),U.onFocus(ae)}),J=fe(ae=>{ae.isDefaultPrevented()||(p?.(ae),U.onClick(ae))}),q=fe(ae=>{y?.(ae),U.onPaste(ae)}),ce=fe(ae=>{h?.(ae),U.onInput(ae)}),re=fe((ae,...te)=>{ae.preventDefault(),b?.(ae,...te),R(),Ix(k)?B(L.startIndex):G(0)}),se=f.useMemo(()=>$.sections.map((ae,te)=>{const Q=ee(ae,te);return{container:Y(te),content:ee(ae,te),before:{children:ae.startSeparator},after:{children:ae.endSeparator,"data-range-position":ae.isEndFormatSeparator?Q["data-range-position"]:void 0}}}),[$.sections,Y,ee]);return f.useEffect(()=>{if(k.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
|
-
`));P&&!w&&k.current&&k.current.getSectionContent(L.startIndex).focus()},[]),ht(()=>{if(!(!A||!k.current)){if(N==="all")k.current.getRoot().focus();else if(typeof N=="number"){const ae=k.current.getSectionContent(N);ae&&ae.focus()}}},[N,A]),ht(()=>{lb({focused:A,domGetters:O,stateResponse:I})}),f.useImperativeHandle(M,()=>({getSections:()=>$.sections,getActiveSectionIndex:()=>Ex(k),setSelectedSections:ae=>{if(w||!k.current)return;const te=Um(ae,$.sections);z((te==="all"?0:te)!==null),B(ae)},focusField:G,isFieldFocused:()=>Ix(k)})),ne({},l,U,{onBlur:K,onClick:J,onFocus:W,onInput:ce,onPaste:q,onKeyDown:oe,onClear:re},X,{error:E,clearable:!!(C&&!D&&!S&&!w),focused:x??A,sectionListRef:T,enableAccessibleFieldDOMStructure:!0,elements:se,areAllSectionsEmpty:D,disabled:w,readOnly:S,autoFocus:P,openPickerAriaLabel:V})};function Ex(e){const t=go(e.current?.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function Ix(e){const t=go(e.current?.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const Ka=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),oB=(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=Wm(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${c}${l.endSeparator}`,d=Ka(u).length,p=u.length,g=Ka(c),h=s+(g===""?0:c.indexOf(g[0]))+l.startSeparator.length,y=h+g.length;i.push(ne({},l,{start:r,end:r+d,startInInput:h,endInInput:y})),r+=d,s+=p}return i},rB=e=>{const t=Gt(),n=On(),r=On(),{props:s,manager:i,skipContextFieldRefAssignment:a,manager:{valueType:l,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:d}}=e,{internalProps:p,forwardedProps:g}=GS(s,l),h=xx({manager:i,internalProps:p,skipContextFieldRefAssignment:a}),{onFocus:y,onClick:m,onPaste:b,onBlur:C,onKeyDown:w,onClear:S,clearable:P,inputRef:x,placeholder:M}=g,{readOnly:k=!1,disabled:T=!1,autoFocus:O=!1,focused:I,unstableFieldRef:D}=h,E=f.useRef(null),N=st(x,E),L=Sx({manager:i,internalPropsWithDefaults:h,forwardedProps:g}),{activeSectionIndex:$,areAllSectionsEmpty:F,error:R,localizedDigits:B,parsedSelectedSections:_,sectionOrder:V,state:A,value:z,clearValue:G,clearActiveSection:U,setCharacterQuery:X,setSelectedSections:Y,setTempAndroidValueStr:ee,updateSectionValue:oe,updateValueFromValueStr:K,getSectionsFromValue:W}=L,J=vx({stateResponse:L}),q=d(z),ce=f.useMemo(()=>oB(A.sections,B,t),[A.sections,B,t]);function re(){const be=E.current.selectionStart??0;let Ee;be<=ce[0].startInInput||be>=ce[ce.length-1].endInInput?Ee=1:Ee=ce.findIndex(Me=>Me.startInInput-Me.startSeparator.length>be);const me=Ee===-1?ce.length-1:Ee-1;Y(me)}function se(be=0){go(E.current)!==E.current&&(E.current?.focus(),Y(be))}const ae=fe(be=>{y?.(be);const Ee=E.current;n.start(0,()=>{!Ee||Ee!==E.current||$==null&&(Ee.value.length&&Number(Ee.selectionEnd)-Number(Ee.selectionStart)===Ee.value.length?Y("all"):re())})}),te=fe((be,...Ee)=>{be.isDefaultPrevented()||(m?.(be,...Ee),re())}),Q=fe(be=>{if(b?.(be),be.preventDefault(),k||T)return;const Ee=be.clipboardData.getData("text");if(typeof _=="number"){const me=A.sections[_],Me=/^[a-zA-Z]+$/.test(Ee),Ae=/^[0-9]+$/.test(Ee),Ge=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Ee);if(me.contentType==="letter"&&Me||me.contentType==="digit"&&Ae||me.contentType==="digit-with-letter"&&Ge){X(null),oe({section:me,newSectionValue:Ee,shouldGoToNextSection:!0});return}if(Me||Ae)return}X(null),K(Ee)}),Ce=fe(be=>{C?.(be),Y(null)}),le=fe(be=>{if(k)return;const Ee=be.target.value;if(Ee===""){G();return}const me=be.nativeEvent.data,Me=me&&me.length>1,Ae=Me?me:Ee,Ge=Ka(Ae);if(_==="all"&&Y($),$==null||Me){K(Me?me:Ge);return}let lt;if(_==="all"&&Ge.length===1)lt=Ge;else{const Dt=Ka(u.getV6InputValueFromSections(ce,B,t));let qe=-1,Fe=-1;for(let kt=0;kt<Dt.length;kt+=1)qe===-1&&Dt[kt]!==Ge[kt]&&(qe=kt),Fe===-1&&Dt[Dt.length-kt-1]!==Ge[Ge.length-kt-1]&&(Fe=kt);const Ye=ce[$];if(qe<Ye.start||Dt.length-Fe-1>Ye.end)return;const qt=Ge.length-Dt.length+Ye.end-Ka(Ye.endSeparator||"").length;lt=Ge.slice(Ye.start+Ka(Ye.startSeparator||"").length,qt)}if(lt.length===0){u_()&&ee(Ae),U();return}J({keyPressed:lt,sectionIndex:$})}),xe=fe((be,...Ee)=>{be.preventDefault(),S?.(be,...Ee),G(),Tx(E)?Y(V.startIndex):se(0)}),we=Px({manager:i,internalPropsWithDefaults:h,stateResponse:L}),Ue=fe(be=>{w?.(be),we(be)}),$e=f.useMemo(()=>M!==void 0?M:u.getV6InputValueFromSections(W(c.emptyValue),B,t),[M,u,W,c.emptyValue,B,t]),Ze=f.useMemo(()=>A.tempValueStrAndroid??u.getV6InputValueFromSections(A.sections,B,t),[A.sections,u,A.tempValueStrAndroid,B,t]);f.useEffect(()=>{E.current&&E.current===go(E.current)&&Y("all")},[]),ht(()=>{function be(){if(!E.current)return;if(_==null){E.current.scrollLeft&&(E.current.scrollLeft=0);return}if(E.current!==go(E.current))return;const Ee=E.current.scrollTop;if(_==="all")E.current.select();else{const me=ce[_],Me=me.type==="empty"?me.startInInput-me.startSeparator.length:me.startInInput,Ae=me.type==="empty"?me.endInInput+me.endSeparator.length:me.endInInput;(Me!==E.current.selectionStart||Ae!==E.current.selectionEnd)&&E.current===go(E.current)&&E.current.setSelectionRange(Me,Ae),r.start(0,()=>{E.current&&E.current===go(E.current)&&E.current.selectionStart===E.current.selectionEnd&&(E.current.selectionStart!==Me||E.current.selectionEnd!==Ae)&&be()})}E.current.scrollTop=Ee}be()});const Le=f.useMemo(()=>$==null||A.sections[$].contentType==="letter"?"text":"numeric",[$,A.sections]),Je=!(E.current&&E.current===go(E.current))&&F;return f.useImperativeHandle(D,()=>({getSections:()=>A.sections,getActiveSectionIndex:()=>{const be=E.current.selectionStart??0,Ee=E.current.selectionEnd??0;if(be===0&&Ee===0)return null;const me=be<=ce[0].startInInput?1:ce.findIndex(Me=>Me.startInInput-Me.startSeparator.length>be);return me===-1?ce.length-1:me-1},setSelectedSections:be=>Y(be),focusField:se,isFieldFocused:()=>Tx(E)})),ne({},g,{error:R,"aria-invalid":R,clearable:!!(P&&!F&&!k&&!T),onBlur:Ce,onClick:te,onFocus:ae,onPaste:Q,onKeyDown:Ue,onClear:xe,inputRef:N,enableAccessibleFieldDOMStructure:!1,placeholder:$e,inputMode:Le,autoComplete:"off",value:Je?"":Ze,onChange:le,focused:I,disabled:T,readOnly:k,autoFocus:O,openPickerAriaLabel:q})};function Tx(e){return e.current===go(e.current)}const kp=e=>{const t=sx();return(e.props.enableAccessibleFieldDOMStructure??t?.enableAccessibleFieldDOMStructure??!0?nB:rB)(e)};function sB(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return f.useMemo(()=>({valueType:"date",validator:Bs,internal_valueManager:ko,internal_fieldValueManager:nb,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:aB,internal_useOpenPickerButtonAriaLabel:iB}),[t])}function iB(e){const t=Et(),n=Oo();return f.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function aB(e){const t=Et(),n=Hs(e);return f.useMemo(()=>ne({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function Hs(e){const t=Et(),n=ix();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 lB(e={}){const{enableAccessibleFieldDOMStructure:t=!0,ampm:n}=e;return f.useMemo(()=>({valueType:"time",validator:ab,internal_valueManager:ko,internal_fieldValueManager:nb,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:uB,internal_useOpenPickerButtonAriaLabel:cB(n)}),[n,t])}function cB(e){return function(n){const r=Et(),s=Oo();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 uB(e){const t=Et(),n=dB(e),r=f.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return f.useMemo(()=>ne({},e,n,{format:e.format??(r?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,r,t])}function dB(e){return f.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}function pB(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return f.useMemo(()=>({valueType:"date-time",validator:Cx,internal_valueManager:ko,internal_fieldValueManager:nb,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:hB,internal_useOpenPickerButtonAriaLabel:fB}),[t])}function fB(e){const t=Et(),n=Oo();return f.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function hB(e){const t=Et(),n=gB(e),r=f.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return f.useMemo(()=>ne({},e,n,{format:e.format??(r?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h)}),[e,n,r,t])}function gB(e){const t=Et(),n=ix();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 mB=e=>{const t=sB(e);return kp({manager:t,props:e})};function cb(e){const{ownerState:t}=Qn(),n=Gt();return f.useMemo(()=>ne({},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 bB(e){return ke("MuiPickersTextField",e)}Oe("MuiPickersTextField",["root","focused","disabled","error","required"]);function yB(e){return ke("MuiPickersInputBase",e)}const Xa=Oe("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function vB(e){return ke("MuiPickersSectionList",e)}const Za=Oe("MuiPickersSectionList",["root","section","sectionContent"]),CB=["slots","slotProps","elements","sectionListRef","classes"],Mx=Z("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),Ox=Z("span",{name:"MuiPickersSectionList",slot:"Section"})({}),kx=Z("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),Dx=Z("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),wB=e=>de({root:["root"],section:["section"],sectionContent:["sectionContent"]},vB,e);function Fx(e){const{slots:t,slotProps:n,element:r,classes:s}=e,{ownerState:i}=Qn(),a=t?.section??Ox,l=it({elementType:a,externalSlotProps:n?.section,externalForwardedProps:r.container,className:s.section,ownerState:i}),c=t?.sectionContent??Dx,u=it({elementType:c,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:s.sectionContent,ownerState:i}),d=t?.sectionSeparator??kx,p=it({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:ne({},i,{separatorPosition:"before"})}),g=it({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:ne({},i,{separatorPosition:"after"})}),h=f.useRef(null),y=st(u.ref,h),m=b=>{const C=b.relatedTarget,w=b.currentTarget.closest(`.${Za.root}`);if(w&&C instanceof Node&&w.contains(C)){b.stopPropagation();return}};return v.jsxs(a,ne({},l,{children:[v.jsx(d,ne({},p)),v.jsx(c,ne({},u,{ref:y,onBlur:m})),v.jsx(d,ne({},g))]}))}process.env.NODE_ENV!=="production"&&(Fx.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 ub=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPickersSectionList"}),{slots:s,slotProps:i,elements:a,sectionListRef:l,classes:c}=r,u=at(r,CB),d=wB(c),{ownerState:p}=Qn(),g=f.useRef(null),h=st(n,g),y=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 y("getRoot")},getSectionContainer(C){return y("getSectionContainer").querySelector(`.${Za.section}[data-sectionindex="${C}"]`)},getSectionContent(C){return y("getSectionContent").querySelector(`.${Za.section}[data-sectionindex="${C}"] .${Za.sectionContent}`)},getSectionIndexFromDOMElement(C){const w=y("getSectionIndexFromDOMElement");if(C==null||!w.contains(C))return null;let S=null;return C.classList.contains(Za.section)?S=C:C.classList.contains(Za.sectionContent)&&(S=C.parentElement),S==null?null:Number(S.dataset.sectionindex)}}));const m=s?.root??Mx,b=it({elementType:m,externalSlotProps:i?.root,externalForwardedProps:u,additionalProps:{ref:h,suppressContentEditableWarning:!0},className:d.root,ownerState:p});return v.jsx(m,ne({},b,{children:b.contentEditable?a.map(({content:C,before:w,after:S})=>`${w.children}${C.children}${S.children}`).join(""):v.jsx(f.Fragment,{children:a.map((C,w)=>v.jsx(Fx,{slots:s,slotProps:i,element:C,classes:d},w))})}))});process.env.NODE_ENV!=="production"&&(ub.displayName="PickersSectionList"),process.env.NODE_ENV!=="production"&&(ub.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 db=f.createContext(null);process.env.NODE_ENV!=="production"&&(db.displayName="PickerTextFieldOwnerStateContext");const Dp=()=>{const e=f.useContext(db);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},SB=["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"],xB=e=>Math.round(e*1e5)/1e5,Fp=Z("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>ne({},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:`${xB(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),pb=Z(Mx,{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}}]})),PB=Z(Ox,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),EB=Z(Dx,{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"})),IB=Z(kx,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),TB=Z("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(ne({},N7)),MB=Z("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]}})),OB=(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${pe(c)}`,a==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return de(p,yB,e)};function Nx(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 kB(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+=Nx(e[s],t,s,"end");else for(let s=0;s<e.length/2;s+=1)n+=Nx(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 Yc=f.forwardRef(function(t,n){const r=Rt({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:y,tabIndex:m,onInput:b,onPaste:C,onKeyDown:w,name:S,readOnly:P,inputProps:x,inputRef:M,sectionListRef:k,onFocus:T,onBlur:O,classes:I,ownerState:D}=r,E=at(r,SB),N=Dp(),L=f.useRef(null),$=f.useRef(null),F=f.useRef([]),R=st(n,L),B=st(x?.ref,M),_=Go();if(!_)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const V=D??N,A=W=>{_.onFocus?.(W),T?.(W)},z=W=>{A(W)},G=W=>{if(w?.(W),W.key==="Enter"&&!W.defaultMuiPrevented){if(L.current?.dataset.multiInput)return;const J=L.current?.closest("form"),q=J?.querySelector('[type="submit"]');if(!J||!q)return;W.preventDefault(),J.requestSubmit(q)}},U=W=>{_.onBlur?.(W),O?.(W)};f.useEffect(()=>{_&&_.setAdornedStart(!!d)},[_,d]),f.useEffect(()=>{_&&(i?_.onEmpty():_.onFilled())},[_,i]);const X=OB(I,V),Y=g?.root||Fp,ee=it({elementType:Y,externalSlotProps:h?.root,externalForwardedProps:E,additionalProps:{"aria-invalid":_.error,ref:R},className:X.root,ownerState:V}),oe=g?.input||pb,K=s.some(W=>W.content["data-range-position"]!==void 0);return f.useEffect(()=>{if(!K||!V.isPickerOpen)return;const{activeBarWidth:W,sectionOffsets:J}=kB(s,L);F.current=[J[0],J[1]],$.current&&($.current.style.width=`${W}px`)},[s,K,V.isPickerOpen]),v.jsxs(Y,ne({},ee,{children:[d,v.jsx(ub,{sectionListRef:k,elements:s,contentEditable:y,tabIndex:m,className:X.sectionsContainer,onFocus:A,onBlur:U,onInput:b,onPaste:C,onKeyDown:G,slots:{root:oe,section:PB,sectionContent:EB,sectionSeparator:IB},slotProps:{root:ne({},h?.input,{ownerState:V}),sectionContent:{className:Xa.sectionContent},sectionSeparator:({separatorPosition:W})=>({className:W==="before"?Xa.sectionBefore:Xa.sectionAfter})}}),u,p?p(ne({},_)):null,v.jsx(TB,ne({name:S,className:X.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:P,required:_.required,disabled:_.disabled,onFocus:z},x,{ref:B})),K&&v.jsx(MB,{className:X.activeBar,ref:$,ownerState:{sectionOffsets:F.current}})]}))});process.env.NODE_ENV!=="production"&&(Yc.displayName="PickersInputBase"),process.env.NODE_ENV!=="production"&&(Yc.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:At,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 DB(e){return ke("MuiPickersOutlinedInput",e)}const Er=ne({},Xa,Oe("MuiPickersOutlinedInput",["root","notchedOutline","input"])),FB=["children","className","label","notched","shrink"],NB=Z("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}}),Rx=Z("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),RB=Z("legend",{shouldForwardProp:e=>Io(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 $B(e){const{className:t,label:n,notched:r}=e,s=at(e,FB),i=Dp();return v.jsx(NB,ne({"aria-hidden":!0,className:t},s,{ownerState:i,children:v.jsx(RB,{ownerState:i,notched:r,children:n?v.jsx(Rx,{children:n}):v.jsx(Rx,{className:"notranslate",children:""})})}))}const LB=["label","autoFocus","ownerState","classes","notched"],AB=Z(Fp,{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 .${Er.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Er.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Er.focused} .${Er.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Er.disabled}`]:{[`& .${Er.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${Er.error} .${Er.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:{[`&.${Er.focused}:not(.${Er.error}) .${Er.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),VB=Z(pb,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),_B=e=>{const n=de({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},DB,e);return ne({},e,n)},Np=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPickersOutlinedInput"}),{label:s,classes:i,notched:a}=r,l=at(r,LB),c=Go(),u=_B(i);return v.jsx(Yc,ne({slots:{root:AB,input:VB},renderSuffix:d=>v.jsx($B,{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"&&(Np.displayName="PickersOutlinedInput"),process.env.NODE_ENV!=="production"&&(Np.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:At,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}),Np.muiName="Input";function BB(e){return ke("MuiPickersFilledInput",e)}const Ri=ne({},Xa,Oe("MuiPickersFilledInput",["root","underline","input"])),HB=["label","autoFocus","disableUnderline","hiddenLabel","classes"],zB=Z(Fp,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Io(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}},[`&.${Ri.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ri.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"},[`&.${Ri.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ri.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(.${Ri.disabled}, .${Ri.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ri.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),jB=Z(pb,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Io(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}}]}),GB=(e,t)=>{const{inputHasUnderline:n}=t,s=de({root:["root",n&&"underline"],input:["input"]},BB,e);return ne({},e,s)},Rp=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPickersFilledInput"}),{label:s,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l}=r,c=at(r,HB),u=Dp(),d=ne({},u,{inputHasUnderline:!i}),p=GB(l,d);return v.jsx(Yc,ne({slots:{root:zB,input:jB},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},c,{label:s,classes:p,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(Rp.displayName="PickersFilledInput"),process.env.NODE_ENV!=="production"&&(Rp.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:At,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}),Rp.muiName="Input";function WB(e){return ke("MuiPickersFilledInput",e)}const Kc=ne({},Xa,Oe("MuiPickersInput",["root","underline","input"])),UB=["label","autoFocus","disableUnderline","ownerState","classes"],qB=Z(Fp,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Io(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"},[`&.${Kc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Kc.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(.${Kc.disabled}, .${Kc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Kc.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),YB=(e,t)=>{const{inputHasUnderline:n}=t,s=de({root:["root",!n&&"underline"],input:["input"]},WB,e);return ne({},e,s)},$p=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPickersInput"}),{label:s,disableUnderline:i=!1,classes:a}=r,l=at(r,UB),c=Dp(),u=ne({},c,{inputHasUnderline:!i}),d=YB(a,u);return v.jsx(Yc,ne({slots:{root:qB},slotProps:{root:{disableUnderline:i}}},l,{ownerState:u,label:s,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&($p.displayName="PickersInput"),process.env.NODE_ENV!=="production"&&($p.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:At,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}),$p.muiName="Input";const KB=["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"],XB={standard:$p,filled:Rp,outlined:Np},ZB=Z($s,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),QB=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldRequired:s}=t;return de({root:["root",n&&!r&&"focused",r&&"disabled",s&&"required"]},bB,e)},Lp=f.forwardRef(function(t,n){const r=Rt({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:y,inputProps:m,inputRef:b,sectionListRef:C,elements:w,areAllSectionsEmpty:S,onClick:P,onKeyDown:x,onKeyUp:M,onPaste:k,onInput:T,endAdornment:O,startAdornment:I,tabIndex:D,contentEditable:E,focused:N,value:L,onChange:$,fullWidth:F,id:R,name:B,helperText:_,FormHelperTextProps:V,label:A,InputLabelProps:z,"data-active-range-position":G}=r,U=at(r,KB),X=f.useRef(null),Y=st(n,X),ee=dt(R),oe=_&&ee?`${ee}-helper-text`:void 0,K=A&&ee?`${ee}-label`:void 0,W=cb({disabled:r.disabled,required:r.required,readOnly:y?.readOnly}),J=f.useMemo(()=>ne({},W,{isFieldValueEmpty:S,isFieldFocused:N??!1,hasFieldError:d??!1,inputSize:r.size??"medium",inputColor:c??"primary",isInputInFullWidth:F??!1,hasStartAdornment:!!(I??y?.startAdornment),hasEndAdornment:!!(O??y?.endAdornment),inputHasLabel:!!A,isLabelShrunk:!!z?.shrink}),[W,S,N,d,r.size,c,F,I,O,y?.startAdornment,y?.endAdornment,A,z?.shrink]),q=QB(l,J),ce=XB[p],re={};return p==="outlined"?(z&&typeof z.shrink<"u"&&(re.notched=z.shrink),re.label=A):p==="filled"&&(re.hiddenLabel=h),v.jsx(db.Provider,{value:J,children:v.jsxs(ZB,ne({className:ie(q.root,a),ref:Y,focused:N,disabled:u,variant:p,error:d,color:c,fullWidth:F,required:g,ownerState:J},U,{children:[A!=null&&A!==""&&v.jsx(wi,ne({htmlFor:ee,id:K},z,{children:A})),v.jsx(ce,ne({elements:w,areAllSectionsEmpty:S,onClick:P,onKeyDown:x,onKeyUp:M,onInput:T,onPaste:k,onFocus:s,onBlur:i,endAdornment:O,startAdornment:I,tabIndex:D,contentEditable:E,value:L,onChange:$,id:ee,fullWidth:F,inputProps:m,inputRef:b,sectionListRef:C,label:A,name:B,role:"group","aria-labelledby":K,"aria-describedby":oe,"aria-live":oe?"polite":void 0,"data-active-range-position":G},re,y)),_&&v.jsx(zg,ne({id:oe},V,{children:_}))]}))})});process.env.NODE_ENV!=="production"&&(Lp.displayName="PickersTextField"),process.env.NODE_ENV!=="production"&&(Lp.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:At,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 JB=["enableAccessibleFieldDOMStructure"],eH=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],tH=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],nH=["ownerState"],oH=["ownerState"],rH=["ownerState"],sH=["ownerState"],iH=["InputProps","inputProps"],fb=()=>{},aH=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=at(e,JB);if(t){const{InputProps:w,readOnly:S,onClear:P,clearable:x,clearButtonPosition:M,openPickerButtonPosition:k,openPickerAriaLabel:T}=n,O=at(n,eH),I=Vs>=6&&O?.slotProps?.input?Xc(O?.slotProps?.input,w):fb;return{clearable:x,onClear:P,clearButtonPosition:M,openPickerButtonPosition:k,openPickerAriaLabel:T,textFieldProps:ne({},O,Vs>=6&&O?.slotProps?.input?{slotProps:ne({},O?.slotProps,{input:D=>ne({},Zn(I,D),{readOnly:S})})}:{InputProps:ne({},w??{},{readOnly:S})})}}const{onPaste:r,onKeyDown:s,inputMode:i,readOnly:a,InputProps:l,inputProps:c,inputRef:u,onClear:d,clearable:p,clearButtonPosition:g,openPickerButtonPosition:h,openPickerAriaLabel:y}=n,m=at(n,tH),b=Vs>=6&&m?.slotProps?.input?Xc(m?.slotProps?.input,l):fb,C=Vs>=6&&m?.slotProps?.htmlInput?Xc(m?.slotProps?.htmlInput,c):fb;return{clearable:p,onClear:d,clearButtonPosition:g,openPickerButtonPosition:h,openPickerAriaLabel:y,textFieldProps:ne({},m,Vs>=6&&(m?.slotProps?.input||m?.slotProps?.htmlInput)?{slotProps:ne({},m?.slotProps,{input:w=>ne({},Zn(b,w),{readOnly:a}),htmlInput:w=>ne({},Zn(C,w),{inputMode:i,onPaste:r,onKeyDown:s,ref:u})})}:{InputProps:ne({},l??{},{readOnly:a}),inputProps:ne({},c??{},{inputMode:i,onPaste:r,onKeyDown:s,ref:u})})}},Ap=f.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(Ap.displayName="PickerFieldUIContext");function Vp(e){const{fieldResponse:t,defaultOpenPickerIcon:n}=e,r=Oo(),s=qm(),i=f.useContext(Ap),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:p="end"}=aH(t),g=cb(a),h=fe(V=>{V.preventDefault(),s?.setOpen(A=>!A)}),y=s?s.triggerStatus:"hidden",m=c?d:null,b=y!=="hidden"?p:null,C=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?As:Lp),w=i.slots.inputAdornment??Aa,S=it({elementType:w,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:ne({},g,{position:"start"})}),P=at(S,nH),x=it({elementType:w,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:ne({},g,{position:"end"})}),M=at(x,oH),k=i.slots.openPickerButton??kn,T=it({elementType:k,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:y==="disabled",onClick:h,"aria-label":u,edge:a.variant!=="standard"?b:!1},ownerState:g}),O=at(T,rH),I=i.slots.openPickerIcon??n,D=it({elementType:I,externalSlotProps:i.slotProps.openPickerIcon,ownerState:g}),E=i.slots.clearButton??kn,N=it({elementType:E,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:r.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:a.variant!=="standard"&&m!==b?m:!1},ownerState:g}),L=at(N,sH),$=i.slots.clearIcon??E_,F=it({elementType:$,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:g});a.ref=st(a.ref,s?.rootRef);const R={},B=Zn((Vs>=6&&a?.slotProps?.input)??a.InputProps,g);s&&(R.ref=s.triggerRef),!B?.startAdornment&&(m==="start"||b==="start")&&(R.startAdornment=v.jsxs(w,ne({},P,{children:[b==="start"&&v.jsx(k,ne({},O,{children:v.jsx(I,ne({},D))})),m==="start"&&v.jsx(E,ne({},L,{children:v.jsx($,ne({},F))}))]}))),!B?.endAdornment&&(m==="end"||b==="end")&&(R.endAdornment=v.jsxs(w,ne({},M,{children:[m==="end"&&v.jsx(E,ne({},L,{children:v.jsx($,ne({},F))})),b==="end"&&v.jsx(k,ne({},O,{children:v.jsx(I,ne({},D))}))]}))),!R?.endAdornment&&!R?.startAdornment&&i.slots.inputAdornment&&(R.endAdornment=v.jsx(w,ne({},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 _=Vs>=6&&a?.slotProps?.input?Zn(Xc(B,R),g):ne({},B,R);return a.inputProps=Vs>=6&&a?.slotProps?.htmlInput?Zn(a.slotProps.htmlInput,g):a.inputProps,delete a?.slotProps?.input,t.enableAccessibleFieldDOMStructure&&delete a?.slotProps,v.jsx(C,ne({},a,{InputProps:_}))}function Xc(e,t){return e?t?n=>ne({},Zn(t,n),Zn(e,n)):e:t}function _p(e){const{ref:t,externalForwardedProps:n,slotProps:r}=e,s=f.useContext(Ap),i=qm(),a=cb(n),{InputProps:l,inputProps:c}=n,u=at(n,iH),d=it({elementType:Lp,externalSlotProps:Xc(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=ne({},c,d.inputProps),d.InputProps=ne({},l,d.InputProps),d}function Bp(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(Ap.Provider,{value:i,children:s})}const lH=["slots","slotProps"],Hp=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDateField"}),{slots:s,slotProps:i}=r,a=at(r,lH),l=_p({slotProps:i,ref:n,externalForwardedProps:a}),c=mB(l);return v.jsx(Bp,{slots:s,slotProps:i,inputRef:a.inputRef,children:v.jsx(Vp,{fieldResponse:c,defaultOpenPickerIcon:ax})})});process.env.NODE_ENV!=="production"&&(Hp.displayName="DateField"),process.env.NODE_ENV!=="production"&&(Hp.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:At,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 cH=e=>{const t=lB(e);return kp({manager:t,props:e})},uH=["slots","slotProps","InputProps","inputProps"],hb=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTimeField"}),{slots:s,slotProps:i}=r,a=at(r,uH),l=_p({slotProps:i,ref:n,externalForwardedProps:a}),c=cH(l);return v.jsx(Bp,{slots:s,slotProps:i,inputRef:a.inputRef,children:v.jsx(Vp,{fieldResponse:c,defaultOpenPickerIcon:x_})})});process.env.NODE_ENV!=="production"&&(hb.displayName="TimeField"),process.env.NODE_ENV!=="production"&&(hb.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:At,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 dH=e=>{const t=pB(e);return kp({manager:t,props:e})},pH=["slots","slotProps"],gb=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDateTimeField"}),{slots:s,slotProps:i}=r,a=at(r,pH),l=_p({slotProps:i,ref:n,externalForwardedProps:a}),c=dH(l);return v.jsx(Bp,{slots:s,slotProps:i,inputRef:a.inputRef,children:v.jsx(Vp,{fieldResponse:c,defaultOpenPickerIcon:ax})})});process.env.NODE_ENV!=="production"&&(gb.displayName="DateTimeField"),process.env.NODE_ENV!=="production"&&(gb.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:At,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 $x=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:s,disableFuture:i,disablePast:a,timezone:l})=>{const c=Et();return f.useCallback(u=>Bs({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])},fH=(e,t)=>(n,r)=>{switch(r.type){case"setVisibleDate":return ne({},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))),ne({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return ne({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},Lx=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=Et(),y=f.useRef(fH(!!u,h)).current,m=f.useMemo(()=>ko.getInitialReferenceValue({value:t,adapter:h,timezone:p,props:e,referenceDate:n,granularity:Yr.day}),[n,p]),[b,C]=f.useReducer(y,{isMonthSwitchingAnimating:!1,focusedDay:m,currentMonth:h.setDate(m,1),slideDirection:"left"}),w=$x({shouldDisableDate:d,minDate:a,maxDate:i,disableFuture:r,disablePast:s,timezone:p});f.useEffect(()=>{C({type:"changeMonthTimezone",newTimezone:h.getTimezone(m)})},[m,h]);const S=fe(({target:x,reason:M})=>{if(M==="cell-interaction"&&b.focusedDay!=null&&h.isSameDay(x,b.focusedDay))return;const k=M==="cell-interaction";let T,O;if(M==="cell-interaction")T=g(x,b.currentMonth),O=x;else if(T=h.isSameMonth(x,b.currentMonth)?b.currentMonth:h.startOfMonth(x),O=x,w(O)){const E=h.startOfMonth(x),N=h.endOfMonth(x);O=Hc({adapter:h,date:O,minDate:h.isBefore(a,E)?E:a,maxDate:h.isAfter(i,N)?N:i,disablePast:s,disableFuture:r,isDateDisabled:w,timezone:p})}const I=!h.isSameMonth(b.currentMonth,T),D=!h.isSameYear(b.currentMonth,T);I&&l?.(T),D&&c?.(h.startOfYear(T)),C({type:"setVisibleDate",month:T,direction:h.isAfterDay(T,b.currentMonth)?"left":"right",focusedDay:b.focusedDay!=null&&O!=null&&h.isSameDay(O,b.focusedDay)?b.focusedDay:O,skipAnimation:k})}),P=f.useCallback(()=>{C({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:m,calendarState:b,setVisibleDate:S,isDateDisabled:w,onMonthSwitchingAnimationEnd:P}},hH=e=>ke("MuiPickersFadeTransitionGroup",e);Oe("MuiPickersFadeTransitionGroup",["root"]);const gH=["children"],mH=e=>de({root:["root"]},hH,e),bH=Z(ic,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function Ax(e){const t=Rt({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:r,transKey:s,classes:i}=t,{children:a}=t,l=at(t,gH),c=mH(i),u=uo();return r?a:v.jsx(bH,{className:ie(c.root,n),ownerState:l,children:v.jsx(as,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:a},s)})}const yH=e=>ke("MuiPickersSlideTransition",e),gr=Oe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),vH=["children","className","reduceAnimations","slideDirection","transKey","classes"],CH=(e,t)=>{const{slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return de(r,yH,e)},wH=Z(ic,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${gr["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${gr["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${gr.slideEnterActive}`]:t.slideEnterActive},{[`.${gr.slideExit}`]:t.slideExit},{[`.${gr["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${gr["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},[`& .${gr["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${gr["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${gr.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${gr.slideExit}`]:{transform:"translate(0%)"},[`& .${gr["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${gr["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function SH(e){const t=Rt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:s,slideDirection:i,transKey:a,classes:l}=t,c=at(t,vH),{ownerState:u}=Qn(),d=ne({},u,{slideDirection:i}),p=CH(l,d),g=uo();if(s)return v.jsx("div",{className:ie(p.root,r),children:n});const h={exit:p.exit,enterActive:p.enterActive,enter:p.enter,exitActive:p.exitActive};return v.jsx(wH,{className:ie(p.root,r),childFactory:y=>f.cloneElement(y,{classNames:h}),role:"presentation",ownerState:d,children:v.jsx(fg,ne({mountOnEnter:!0,unmountOnExit:!0,timeout:g.transitions.duration.complex,classNames:h},c,{children:n}),a)})}const xH=e=>ke("MuiDayCalendar",e);Oe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const PH=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],EH=["ownerState"],IH=e=>de({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},xH,e),Vx=(jc+Gc*2)*6,TH=Z("div",{name:"MuiDayCalendar",slot:"Root"})({}),MH=Z("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),OH=Z($t,{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})),kH=Z($t,{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})),DH=Z($t,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>ne({},e.typography.caption,{width:jc,height:jc,padding:0,margin:`0 ${Gc}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),FH=Z("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Vx}),NH=Z(SH,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:Vx}),RH=Z("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),$H=Z("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${Gc}px 0`,display:"flex",justifyContent:"center"});function LH(e){let{parentProps:t,day:n,focusedDay:r,selectedDays:s,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=at(e,PH);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:g,slots:h,slotProps:y,timezone:m}=t,b=Et(),C=Op(m),w=r!=null&&b.isSameDay(n,r),S=l&&w,P=s.some(L=>b.isSameDay(L,n)),x=b.isSameDay(n,C),M=f.useMemo(()=>u||i(n),[u,i,n]),k=f.useMemo(()=>b.getMonth(n)!==a,[b,n,a]),T=rb({day:n,selected:P,disabled:M,today:x,outsideCurrentMonth:k,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:g}),O=h?.day??ib,I=it({elementType:O,externalSlotProps:y?.day,additionalProps:ne({disableHighlightToday:d,showDaysOutsideCurrentMonth:g,role:"gridcell",isAnimating:p,"data-timestamp":b.toJsDate(n).valueOf()},c),ownerState:ne({},T,{day:n,isDayDisabled:M,isDaySelected:P})}),D=at(I,EH),E=f.useMemo(()=>{const L=b.startOfMonth(b.setMonth(n,a));return g?b.isSameDay(n,b.startOfWeek(L)):b.isSameDay(n,L)},[a,n,g,b]),N=f.useMemo(()=>{const L=b.endOfMonth(b.setMonth(n,a));return g?b.isSameDay(n,b.endOfWeek(L)):b.isSameDay(n,L)},[a,n,g,b]);return v.jsx(O,ne({},D,{day:n,disabled:M,autoFocus:!k&&S,today:x,outsideCurrentMonth:k,isFirstVisibleCell:E,isLastVisibleCell:N,selected:P,tabIndex:w?0:-1,"aria-selected":P,"aria-current":x?"date":void 0}))}function _x(e){const t=Rt({props:e,name:"MuiDayCalendar"}),n=Et(),{onFocusedDayChange:r,className:s,classes:i,currentMonth:a,selectedDays:l,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:p,readOnly:g,reduceAnimations:h,renderLoading:y=()=>v.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:b,disablePast:C,disableFuture:w,minDate:S,maxDate:P,shouldDisableDate:x,shouldDisableMonth:M,shouldDisableYear:k,dayOfWeekFormatter:T=J=>n.format(J,"weekdayShort").charAt(0).toUpperCase(),hasFocus:O,onFocusedViewChange:I,gridLabelId:D,displayWeekNumber:E,fixedWeekNumber:N,timezone:L}=t,$=Op(L),F=IH(i),R=Gt(),B=$x({shouldDisableDate:x,shouldDisableMonth:M,shouldDisableYear:k,minDate:S,maxDate:P,disablePast:C,disableFuture:w,timezone:L}),_=Oo(),V=fe(J=>{g||d(J)}),A=J=>{B(J)||(r(J),I?.(!0))},z=fe((J,q)=>{switch(J.key){case"ArrowUp":A(n.addDays(q,-7)),J.preventDefault();break;case"ArrowDown":A(n.addDays(q,7)),J.preventDefault();break;case"ArrowLeft":{const ce=n.addDays(q,R?1:-1),re=n.addMonths(q,R?1:-1),se=Hc({adapter:n,date:ce,minDate:R?ce:n.startOfMonth(re),maxDate:R?n.endOfMonth(re):ce,isDateDisabled:B,timezone:L});A(se||ce),J.preventDefault();break}case"ArrowRight":{const ce=n.addDays(q,R?-1:1),re=n.addMonths(q,R?-1:1),se=Hc({adapter:n,date:ce,minDate:R?n.startOfMonth(re):ce,maxDate:R?ce:n.endOfMonth(re),isDateDisabled:B,timezone:L});A(se||ce),J.preventDefault();break}case"Home":A(n.startOfWeek(q)),J.preventDefault();break;case"End":A(n.endOfWeek(q)),J.preventDefault();break;case"PageUp":A(n.addMonths(q,1)),J.preventDefault();break;case"PageDown":A(n.addMonths(q,-1)),J.preventDefault();break}}),G=fe((J,q)=>A(q)),U=fe((J,q)=>{c!=null&&n.isSameDay(c,q)&&I?.(!1)}),X=n.getMonth(a),Y=n.getYear(a),ee=f.useMemo(()=>l.filter(J=>!!J).map(J=>n.startOfDay(J)),[n,l]),oe=`${Y}-${X}`,K=f.useMemo(()=>f.createRef(),[oe]),W=f.useMemo(()=>{const J=n.getWeekArray(a);let q=n.addMonths(a,1);for(;N&&J.length<N;){const ce=n.getWeekArray(q),re=n.isSameDay(J[J.length-1][0],ce[0][0]);ce.slice(re?1:0).forEach(se=>{J.length<N&&J.push(se)}),q=n.addMonths(q,1)}return J},[a,N,n]);return v.jsxs(TH,{role:"grid","aria-labelledby":D,className:F.root,children:[v.jsxs(MH,{role:"row",className:F.header,children:[E&&v.jsx(kH,{variant:"caption",role:"columnheader","aria-label":_.calendarWeekNumberHeaderLabel,className:F.weekNumberLabel,children:_.calendarWeekNumberHeaderText}),o_(n,$).map((J,q)=>v.jsx(OH,{variant:"caption",role:"columnheader","aria-label":n.format(J,"weekday"),className:F.weekDayLabel,children:T(J)},q.toString()))]}),u?v.jsx(FH,{className:F.loadingContainer,children:y()}):v.jsx(NH,ne({transKey:oe,onExited:p,reduceAnimations:h,slideDirection:m,className:ie(s,F.slideTransition)},b,{nodeRef:K,children:v.jsx(RH,{ref:K,role:"rowgroup",className:F.monthContainer,children:W.map((J,q)=>v.jsxs($H,{role:"row",className:F.weekContainer,"aria-rowindex":q+1,children:[E&&v.jsx(DH,{className:F.weekNumber,role:"rowheader","aria-label":_.calendarWeekNumberAriaLabelText(n.getWeekNumber(J[0])),children:_.calendarWeekNumberText(n.getWeekNumber(J[0]))}),J.map((ce,re)=>v.jsx(LH,{parentProps:t,day:ce,selectedDays:ee,isViewFocused:O,focusedDay:c,onKeyDown:z,onFocus:G,onBlur:U,onDaySelect:V,isDateDisabled:B,currentMonthNumber:X,"aria-colindex":re+1},ce.toString()))]},`week-${J[0]}`))})}))]})}function Bx(e){return ke("MuiMonthCalendar",e)}const zp=Oe("MuiMonthCalendar",["root","button","disabled","selected"]),AH=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],VH=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return de(n,Bx,e)},_H=Z("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${zp.disabled}`]:t.disabled},{[`&.${zp.selected}`]:t.selected}]})(({theme:e})=>ne({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})`:zn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:zn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${zp.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${zp.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Hx=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=at(t,AH),y=f.useRef(null),{ownerState:m}=Qn(),b=ne({},m,{isMonthDisabled:s,isMonthSelected:i}),C=VH(r,b);ht(()=>{n&&y.current?.focus()},[n]);const w=p?.monthButton??_H,S=it({elementType:w,externalSlotProps:g?.monthButton,externalForwardedProps:h,additionalProps:{disabled:s,ref:y,type:"button",role:"radio","aria-checked":i,onClick:P=>l(P,a),onKeyDown:P=>c(P,a),onFocus:P=>u(P,a),onBlur:P=>d(P,a)},ownerState:b,className:C.button});return v.jsx(w,ne({},S))});process.env.NODE_ENV!=="production"&&(Hx.displayName="MonthCalendarButton");const BH=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],HH=e=>de({root:["root"]},Bx,e);function zH(e,t){const n=Rt({props:e,name:t}),r=Hs(n);return ne({},n,r,{monthsPerRow:n.monthsPerRow??3})}const zx=(e,t,n,r,s)=>!!(e===t&&r&&s.isSameYear(n,r)),jH=Z("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Io(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:Wc,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),mb=f.forwardRef(function(t,n){const r=zH(t,"MuiMonthCalendar"),{autoFocus:s,className:i,currentMonth:a,classes:l,value:c,defaultValue:u,referenceDate:d,disabled:p,disableFuture:g,disablePast:h,maxDate:y,minDate:m,onChange:b,shouldDisableMonth:C,readOnly:w,onMonthFocus:S,hasFocus:P,onFocusedViewChange:x,monthsPerRow:M,timezone:k,gridLabelId:T,slots:O,slotProps:I}=r,D=at(r,BH),{value:E,handleValueChange:N,timezone:L}=qa({name:"MonthCalendar",timezone:k,value:c,defaultValue:u,referenceDate:d,onChange:b,valueManager:ko}),$=Op(L),F=Gt(),R=Et(),{ownerState:B}=Qn(),_=f.useMemo(()=>ko.getInitialReferenceValue({value:E,adapter:R,props:r,timezone:L,referenceDate:d,granularity:Yr.month}),[]),V=HH(l),A=f.useMemo(()=>R.getMonth($),[R,$]),z=f.useMemo(()=>E!=null?R.getMonth(E):null,[E,R]),[G,U]=f.useState(()=>z||R.getMonth(_)),[X,Y]=po({name:"MonthCalendar",state:"hasFocus",controlled:P,default:s??!1}),ee=fe(re=>{Y(re),x&&x(re)}),oe=f.useCallback(re=>{const se=R.startOfMonth(h&&R.isAfter($,m)?$:m),ae=R.startOfMonth(g&&R.isBefore($,y)?$:y),te=R.startOfMonth(re);return R.isBefore(te,se)||R.isAfter(te,ae)?!0:C?C(te):!1},[g,h,y,m,$,C,R]),K=fe((re,se)=>{if(w)return;const te=(E&&a&&!R.isSameYear(E,a)?R.setYear(E,R.getYear(a)):E)??a??_,Q=R.setMonth(te,se);N(Q)}),W=fe(re=>{oe(R.setMonth(E??a??_,re))||(U(re),ee(!0),S&&S(re))});f.useEffect(()=>{U(re=>z!==null&&re!==z?z:re)},[z]);const J=fe((re,se)=>{switch(re.key){case"ArrowUp":W((12+se-3)%12),re.preventDefault();break;case"ArrowDown":W((12+se+3)%12),re.preventDefault();break;case"ArrowLeft":W((12+se+(F?1:-1))%12),re.preventDefault();break;case"ArrowRight":W((12+se+(F?-1:1))%12),re.preventDefault();break}}),q=fe((re,se)=>{W(se)}),ce=fe((re,se)=>{G===se&&ee(!1)});return v.jsx(jH,ne({ref:n,className:ie(V.root,i),ownerState:B,role:"radiogroup","aria-labelledby":T,monthsPerRow:M},D,{children:_m(R,a??E??_).map(re=>{const se=R.getMonth(re),ae=R.format(re,"monthShort"),te=R.format(re,"month"),Q=zx(se,z,re,E,R),Ce=p||oe(re);return v.jsx(Hx,{selected:Q,value:se,onClick:K,onKeyDown:J,autoFocus:X&&se===G,disabled:Ce,tabIndex:se===G&&!Ce?0:-1,onFocus:q,onBlur:ce,"aria-current":zx(se,A,re,$,R)?"date":void 0,"aria-label":te,slots:O,slotProps:I,classes:l,children:ae},ae)})}))});process.env.NODE_ENV!=="production"&&(mb.displayName="MonthCalendar"),process.env.NODE_ENV!=="production"&&(mb.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 jx(e){return ke("MuiYearCalendar",e)}const jp=Oe("MuiYearCalendar",["root","button","disabled","selected"]),GH=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],WH=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return de(n,jx,e)},UH=Z("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${jp.disabled}`]:t.disabled},{[`&.${jp.selected}`]:t.selected}]})(({theme:e})=>ne({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})`:zn(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:zn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${jp.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${jp.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Gx=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=at(t,GH),y=f.useRef(null),{ownerState:m}=Qn(),b=ne({},m,{isYearDisabled:s,isYearSelected:i}),C=WH(r,b);ht(()=>{n&&y.current?.focus()},[n]);const w=p?.yearButton??UH,S=it({elementType:w,externalSlotProps:g?.yearButton,externalForwardedProps:h,additionalProps:{disabled:s,ref:y,type:"button",role:"radio","aria-checked":i,onClick:P=>l(P,a),onKeyDown:P=>c(P,a),onFocus:P=>u(P,a),onBlur:P=>d(P,a)},ownerState:b,className:C.button});return v.jsx(w,ne({},S))});process.env.NODE_ENV!=="production"&&(Gx.displayName="YearCalendarButton");const qH=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],YH=e=>de({root:["root"]},jx,e);function KH(e,t){const n=Rt({props:e,name:t}),r=Hs(n);return ne({},n,r,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const XH=Z("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Io(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:Wc,maxHeight:$_,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),ZH=Z("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),bb=f.forwardRef(function(t,n){const r=KH(t,"MuiYearCalendar"),{autoFocus:s,className:i,classes:a,value:l,defaultValue:c,referenceDate:u,disabled:d,disableFuture:p,disablePast:g,maxDate:h,minDate:y,onChange:m,readOnly:b,shouldDisableYear:C,onYearFocus:w,hasFocus:S,onFocusedViewChange:P,yearsOrder:x,yearsPerRow:M,timezone:k,gridLabelId:T,slots:O,slotProps:I}=r,D=at(r,qH),{value:E,handleValueChange:N,timezone:L}=qa({name:"YearCalendar",timezone:k,value:l,defaultValue:c,referenceDate:u,onChange:m,valueManager:ko}),$=Op(L),F=Gt(),R=Et(),{ownerState:B}=Qn(),_=f.useMemo(()=>ko.getInitialReferenceValue({value:E,adapter:R,props:r,timezone:L,referenceDate:u,granularity:Yr.year}),[]),V=YH(a),A=f.useMemo(()=>R.getYear($),[R,$]),z=f.useMemo(()=>E!=null?R.getYear(E):null,[E,R]),[G,U]=f.useState(()=>z||R.getYear(_)),[X,Y]=po({name:"YearCalendar",state:"hasFocus",controlled:S,default:s??!1}),ee=fe(le=>{Y(le),P&&P(le)}),oe=f.useCallback(le=>{if(g&&R.isBeforeYear(le,$)||p&&R.isAfterYear(le,$)||y&&R.isBeforeYear(le,y)||h&&R.isAfterYear(le,h))return!0;if(!C)return!1;const xe=R.startOfYear(le);return C(xe)},[p,g,h,y,$,C,R]),K=fe((le,xe)=>{if(b)return;const we=R.setYear(E??_,xe);N(we)}),W=fe(le=>{oe(R.setYear(E??_,le))||(U(le),ee(!0),w?.(le))});f.useEffect(()=>{U(le=>z!==null&&le!==z?z:le)},[z]);const J=x!=="desc"?M*1:M*-1,q=F&&x==="asc"||!F&&x==="desc"?-1:1,ce=fe((le,xe)=>{switch(le.key){case"ArrowUp":W(xe-J),le.preventDefault();break;case"ArrowDown":W(xe+J),le.preventDefault();break;case"ArrowLeft":W(xe-q),le.preventDefault();break;case"ArrowRight":W(xe+q),le.preventDefault();break}}),re=fe((le,xe)=>{W(xe)}),se=fe((le,xe)=>{G===xe&&ee(!1)}),ae=f.useRef(null),te=st(n,ae);f.useEffect(()=>{if(s||ae.current===null)return;const le=ae.current.querySelector('[tabindex="0"]');if(!le)return;const xe=le.offsetHeight,we=le.offsetTop,Ue=ae.current.clientHeight,$e=ae.current.scrollTop,Ze=we+xe;xe>Ue||we<$e||(ae.current.scrollTop=Ze-Ue/2-xe/2)},[s]);const Q=R.getYearRange([y,h]);x==="desc"&&Q.reverse();let Ce=M-Q.length%M;return Ce===M&&(Ce=0),v.jsxs(XH,ne({ref:te,className:ie(V.root,i),ownerState:B,role:"radiogroup","aria-labelledby":T,yearsPerRow:M},D,{children:[Q.map(le=>{const xe=R.getYear(le),we=xe===z,Ue=d||oe(le);return v.jsx(Gx,{selected:we,value:xe,onClick:K,onKeyDown:ce,autoFocus:X&&xe===G,disabled:Ue,tabIndex:xe===G&&!Ue?0:-1,onFocus:re,onBlur:se,"aria-current":A===xe?"date":void 0,slots:O,slotProps:I,classes:a,children:R.format(le,"year")},R.format(le,"year"))}),Array.from({length:Ce},(le,xe)=>v.jsx(ZH,{},xe))]}))});process.env.NODE_ENV!=="production"&&(bb.displayName="YearCalendar"),process.env.NODE_ENV!=="production"&&(bb.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 QH=e=>ke("MuiPickersCalendarHeader",e),JH=Oe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),ez=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],tz=["ownerState"],nz=e=>de({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},QH,e),oz=Z("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),rz=Z("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>ne({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),sz=Z("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),iz=Z(kn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${JH.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),az=Z(C_,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Gp=f.forwardRef(function(t,n){const r=Oo(),s=Et(),i=Rt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:p,maxDate:g,minDate:h,onMonthChange:y,onViewChange:m,view:b,reduceAnimations:C,views:w,labelId:S,className:P,classes:x,timezone:M,format:k=`${s.formats.month} ${s.formats.year}`}=i,T=at(i,ez),{ownerState:O}=Qn(),I=nz(x),D=a?.switchViewButton??iz,E=it({elementType:D,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(b)},ownerState:ne({},O,{view:b}),className:I.switchViewButton}),N=a?.switchViewIcon??az,L=it({elementType:N,externalSlotProps:l?.switchViewIcon,ownerState:O,className:I.switchViewIcon}),$=at(L,tz),F=()=>y(s.addMonths(c,1)),R=()=>y(s.addMonths(c,-1)),B=fx(c,{disableFuture:d,maxDate:g,timezone:M}),_=hx(c,{disablePast:p,minDate:h,timezone:M}),V=()=>{if(!(w.length===1||!m||u))if(w.length===2)m(w.find(z=>z!==b)||w[0]);else{const z=w.indexOf(b)!==0?0:1;m(w[z])}};if(w.length===1&&w[0]==="year")return null;const A=s.formatByString(c,k);return v.jsxs(oz,ne({},T,{ownerState:O,className:ie(I.root,P),ref:n,children:[v.jsxs(rz,{role:"presentation",onClick:V,ownerState:O,"aria-live":"polite",className:I.labelContainer,children:[v.jsx(Ax,{reduceAnimations:C,transKey:A,children:v.jsx(sz,{id:S,ownerState:O,className:I.label,children:A})}),w.length>1&&!u&&v.jsx(D,ne({},E,{children:v.jsx(N,ne({},$))}))]}),v.jsx(as,{in:b==="day",appear:!C,enter:!C,children:v.jsx(Qm,{slots:a,slotProps:l,onGoToPrevious:R,isPreviousDisabled:_,previousLabel:r.previousMonth,onGoToNext:F,isNextDisabled:B,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(Gp.displayName="PickersCalendarHeader"),process.env.NODE_ENV!=="production"&&(Gp.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 lz="@media (prefers-reduced-motion: reduce)",Qa=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Wx=Qa&&Qa[1]?parseInt(Qa[1],10):null,Ux=Qa&&Qa[2]?parseInt(Qa[2],10):null,cz=Wx&&Wx<10||Ux&&Ux<13||!1;function yb(e){const t=tp(lz,{defaultMatches:!1});return e??(t||cz)}const uz=e=>ke("MuiDateCalendar",e);Oe("MuiDateCalendar",["root","viewTransitionContainer"]);const dz=["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"],pz=e=>de({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},uz,e);function fz(e,t){const n=Rt({props:e,name:t}),r=yb(n.reduceAnimations),s=Hs(n);return ne({},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 hz=Z(L_,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:tb}),gz=Z(Ax,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),vb=f.forwardRef(function(t,n){const r=Et(),{ownerState:s}=Qn(),i=dt(),a=fz(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:c,value:u,defaultValue:d,referenceDate:p,disableFuture:g,disablePast:h,onChange:y,onMonthChange:m,reduceAnimations:b,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:S,view:P,views:x,openTo:M,className:k,classes:T,disabled:O,readOnly:I,minDate:D,maxDate:E,disableHighlightToday:N,focusedView:L,onFocusedViewChange:$,showDaysOutsideCurrentMonth:F,fixedWeekNumber:R,dayOfWeekFormatter:B,slots:_,slotProps:V,loading:A,renderLoading:z,displayWeekNumber:G,yearsOrder:U,yearsPerRow:X,monthsPerRow:Y,timezone:ee}=a,oe=at(a,dz),{value:K,handleValueChange:W,timezone:J}=qa({name:"DateCalendar",timezone:ee,value:u,defaultValue:d,referenceDate:p,onChange:y,valueManager:ko}),{view:q,setView:ce,focusedView:re,setFocusedView:se,goToNextView:ae,setValueAndGoToNextView:te}=eb({view:P,views:x,openTo:M,onChange:W,onViewChange:c,autoFocus:l,focusedView:L,onFocusedViewChange:$}),{referenceDate:Q,calendarState:Ce,setVisibleDate:le,isDateDisabled:xe,onMonthSwitchingAnimationEnd:we}=Lx({value:K,referenceDate:p,reduceAnimations:b,onMonthChange:m,minDate:D,maxDate:E,shouldDisableDate:C,disablePast:h,disableFuture:g,timezone:J,getCurrentMonthFromVisibleDate:(qe,Fe)=>r.isSameMonth(qe,Fe)?Fe:r.startOfMonth(qe)}),Ue=O&&K||D,$e=O&&K||E,Ze=`${i}-grid-label`,Le=re!==null,Qe=_?.calendarHeader??Gp,Je=it({elementType:Qe,externalSlotProps:V?.calendarHeader,additionalProps:{views:x,view:q,currentMonth:Ce.currentMonth,onViewChange:ce,onMonthChange:qe=>le({target:qe,reason:"header-navigation"}),minDate:Ue,maxDate:$e,disabled:O,disablePast:h,disableFuture:g,reduceAnimations:b,timezone:J,labelId:Ze},ownerState:s}),be=fe(qe=>{const Fe=r.startOfMonth(qe),Ye=r.endOfMonth(qe),pt=xe(qe)?Hc({adapter:r,date:qe,minDate:r.isBefore(D,Fe)?Fe:D,maxDate:r.isAfter(E,Ye)?Ye:E,disablePast:h,disableFuture:g,isDateDisabled:xe,timezone:J}):qe;pt?(te(pt,"finish"),le({target:pt,reason:"cell-interaction"})):(ae(),le({target:Fe,reason:"cell-interaction"}))}),Ee=fe(qe=>{const Fe=r.startOfYear(qe),Ye=r.endOfYear(qe),pt=xe(qe)?Hc({adapter:r,date:qe,minDate:r.isBefore(D,Fe)?Fe:D,maxDate:r.isAfter(E,Ye)?Ye:E,disablePast:h,disableFuture:g,isDateDisabled:xe,timezone:J}):qe;pt?(te(pt,"finish"),le({target:pt,reason:"cell-interaction"})):(ae(),le({target:Fe,reason:"cell-interaction"}))}),me=fe(qe=>W(qe&&ki(r,qe,K??Q),"finish",q));f.useEffect(()=>{r.isValid(K)&&le({target:K,reason:"controlled-value-change"})},[K]);const Me=pz(T),Ae={disablePast:h,disableFuture:g,maxDate:E,minDate:D},Ge={disableHighlightToday:N,readOnly:I,disabled:O,timezone:J,gridLabelId:Ze,slots:_,slotProps:V},lt=f.useRef(q);f.useEffect(()=>{lt.current!==q&&(re===lt.current&&se(q,!0),lt.current=q)},[re,se,q]);const Dt=f.useMemo(()=>[K],[K]);return v.jsxs(hz,ne({ref:n,className:ie(Me.root,k),ownerState:s},oe,{children:[v.jsx(Qe,ne({},Je,{slots:_,slotProps:V})),v.jsx(gz,{reduceAnimations:b,className:Me.viewTransitionContainer,transKey:q,ownerState:s,children:v.jsxs("div",{children:[q==="year"&&v.jsx(bb,ne({},Ae,Ge,{value:K,onChange:Ee,shouldDisableYear:S,hasFocus:Le,onFocusedViewChange:qe=>se("year",qe),yearsOrder:U,yearsPerRow:X,referenceDate:Q})),q==="month"&&v.jsx(mb,ne({},Ae,Ge,{currentMonth:Ce.currentMonth,hasFocus:Le,className:k,value:K,onChange:be,shouldDisableMonth:w,onFocusedViewChange:qe=>se("month",qe),monthsPerRow:Y,referenceDate:Q})),q==="day"&&v.jsx(_x,ne({},Ce,Ae,Ge,{onMonthSwitchingAnimationEnd:we,hasFocus:Le,onFocusedDayChange:qe=>le({target:qe,reason:"cell-interaction"}),reduceAnimations:b,selectedDays:Dt,onSelectedDaysChange:me,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:S,onFocusedViewChange:qe=>se("day",qe),showDaysOutsideCurrentMonth:F,fixedWeekNumber:R,dayOfWeekFormatter:B,displayWeekNumber:G,loading:A,renderLoading:z}))]})})]}))});process.env.NODE_ENV!=="production"&&(vb.displayName="DateCalendar"),process.env.NODE_ENV!=="production"&&(vb.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 qx(e){return ke("MuiPickersToolbar",e)}Oe("MuiPickersToolbar",["root","title","content"]);function Cb(){const{ownerState:e}=Qn(),t=Gt();return f.useMemo(()=>ne({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const mz=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],bz=e=>de({root:["root"],title:["title"],content:["content"]},qx,e),yz=Z("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"}}]})),vz=Z("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Io(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"}}]}),wb=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPickersToolbar"}),{children:s,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=r,p=at(r,mz),g=Cb(),h=bz(a);return c?null:v.jsxs(yz,ne({ref:n,className:ie(h.root,i),ownerState:g},p,{children:[v.jsx($t,{color:"text.secondary",variant:"overline",id:u,className:h.title,children:l}),v.jsx(vz,{className:h.content,ownerState:g,landscapeDirection:d,children:s})]}))});process.env.NODE_ENV!=="production"&&(wb.displayName="PickersToolbar");function Cz(e){return ke("MuiDatePickerToolbar",e)}Oe("MuiDatePickerToolbar",["root","title"]);const wz=["toolbarFormat","toolbarPlaceholder","className","classes"],Sz=e=>de({root:["root"],title:["title"]},Cz,e),xz=Z(wb,{name:"MuiDatePickerToolbar",slot:"Root"})({}),Pz=Z($t,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Sb=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:s,toolbarPlaceholder:i="––",className:a,classes:l}=r,c=at(r,wz),u=Et(),{value:d,views:p,orientation:g}=Fi(),h=Oo(),y=Cb(),m=Sz(l),b=f.useMemo(()=>{if(!u.isValid(d))return i;const C=Hm(u,{format:s,views:p},!0);return u.formatByString(d,C)},[d,s,i,u,p]);return v.jsx(xz,ne({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:ie(m.root,a)},c,{children:v.jsx(Pz,{variant:"h4",align:g==="landscape"?"left":"center",ownerState:y,className:m.title,children:b})}))});process.env.NODE_ENV!=="production"&&(Sb.displayName="DatePickerToolbar"),process.env.NODE_ENV!=="production"&&(Sb.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 Yx(e,t){const n=Rt({props:e,name:t}),r=Hs(n),s=f.useMemo(()=>n.localeText?.toolbarTitle==null?n.localeText:ne({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle}),[n.localeText]);return ne({},n,r,{localeText:s},t_({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:ne({toolbar:Sb},n.slots)})}function Ez(e){return ke("MuiPickerPopper",e)}Oe("MuiPickerPopper",["root","paper"]);const Iz=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Tz=e=>de({root:["root"],paper:["paper"]},Ez,e),Mz=Z(bi,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),Oz=Z(wr,{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 kz(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Dz(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=Qt(s.current);if(!s.current||"clientX"in c&&kz(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=Qt(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=Qt(s.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),r.current=!1}}},[e,a]),[s,l,l]}const Kx=f.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:r,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=at(e,Iz),d=it({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:r});return v.jsx(n,ne({},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"&&(Kx.displayName="PickerPopperPaperWrapper");function Xx(e){const t=Rt({props:e,name:"MuiPickerPopper"}),{children:n,placement:r="bottom-start",slots:s,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u}=Fi(),{ownerState:d,rootRefObject:p}=Qn(),{dismissViews:g,getCurrentViewMode:h,onPopperExited:y,triggerElement:m,viewContainerRole:b}=Qn();f.useEffect(()=>{function R(B){l&&B.key==="Escape"&&g()}return document.addEventListener("keydown",R),()=>{document.removeEventListener("keydown",R)}},[g,l]);const C=f.useRef(null);f.useEffect(()=>{b==="tooltip"||h()==="field"||(l?C.current=go(p.current):C.current&&C.current instanceof HTMLElement&&setTimeout(()=>{C.current instanceof HTMLElement&&C.current.focus()}))},[l,b,h,p]);const w=Tz(a),S=fe(()=>{b==="tooltip"?B_(()=>{p.current?.contains(go(p.current))||c.current?.contains(go(c.current))||g()}):g()}),[P,x,M]=Dz(l,S),k=f.useRef(null),T=st(k,c),O=st(T,P),I=R=>{R.key==="Escape"&&(R.stopPropagation(),g())},D=s?.desktopTransition??u?as:Ci,E=s?.desktopTrapFocus??$a,N=s?.desktopPaper??Oz,L=s?.popper??Mz,$=it({elementType:L,externalSlotProps:i?.popper,additionalProps:{transition:!0,role:b??void 0,open:l,placement:r,anchorEl:m,onKeyDown:I},className:w.root,ownerState:d}),F=f.useMemo(()=>ne({},d,{popperPlacement:$.placement}),[d,$.placement]);return v.jsx(L,ne({},$,{children:({TransitionProps:R})=>v.jsx(E,ne({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:b==="tooltip",isEnabled:()=>!0},i?.desktopTrapFocus,{children:v.jsx(D,ne({},R,i?.desktopTransition,{onExited:B=>{y?.(),i?.desktopTransition?.onExited?.(B),R?.onExited?.()},children:v.jsx(Kx,{PaperComponent:N,ownerState:F,ref:O,onPaperClick:x,onPaperTouchStart:M,paperClasses:w.paper,paperSlotProps:i?.desktopPaper,children:n})}))}))}))}function Zx(){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 Fz(e,t){const[n,r]=f.useState(Zx);return ht(()=>{const s=()=>{r(Zx())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),__(e,["hours","minutes","seconds"])?"portrait":t??n}const Qx=new Set;function xn(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
305
|
-
`):e;Qx.has(n)||(Qx.add(n),t==="error"?console.error(n):console.warn(n))}function Nz(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:y}=f.useRef(i),{current:m}=f.useRef(s!==void 0),{current:b}=f.useRef(p!==void 0),C=Et();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&xn(["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&&y!==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(y)]));const{timezone:w,value:S,handleValueChange:P}=qa({name:"a picker component",timezone:c,value:s,defaultValue:y,referenceDate:l,onChange:a,valueManager:n}),[x,M]=f.useState(()=>({open:!1,lastExternalValue:S,clockShallowValue:void 0,lastCommittedValue:S,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:k}=wx({props:t,validator:r,timezone:w,value:S,onError:t.onError}),T=fe(E=>{const N=typeof E=="function"?E(x.open):E;b||M(L=>ne({},L,{open:N})),N&&g&&g(),N||h?.()}),O=fe((E,N)=>{const{changeImportance:L="accept",skipPublicationIfPristine:$=!1,validationError:F,shortcut:R,source:B,shouldClose:_=L==="accept"}=N??{};let V,A;!$&&!m&&!x.hasBeenModifiedSinceMount?(V=!0,A=L==="accept"):(V=!n.areValuesEqual(C,E,S),A=L==="accept"&&!n.areValuesEqual(C,E,x.lastCommittedValue)),M(U=>ne({},U,{clockShallowValue:V?void 0:U.clockShallowValue,lastCommittedValue:A?E:U.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let z=null;const G=()=>{if(!z){let U;B?U=B:R?U="view":U="unknown",z={validationError:F??k(E),source:U},R&&(z.shortcut=R)}return z};V&&P(E,G()),A&&u&&u(E,G()),_&&T(!1)});S!==x.lastExternalValue&&M(E=>ne({},E,{lastExternalValue:S,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const I=fe((E,N="partial")=>{if(N==="shallow"){M(L=>ne({},L,{clockShallowValue:E,hasBeenModifiedSinceMount:!0}));return}O(E,{changeImportance:N==="finish"&&d?"accept":"set",source:"view"})});f.useEffect(()=>{if(b){if(p===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");M(E=>ne({},E,{open:p}))}},[b,p]);const D=f.useMemo(()=>n.cleanValue(C,x.clockShallowValue===void 0?S:x.clockShallowValue),[C,n,x.clockShallowValue,S]);return{timezone:w,state:x,setValue:O,setValueFromView:I,setOpen:T,value:S,viewValue:D}}const Rz=["className","sx"],Zc=({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:y,onViewChange:m,viewRenderers:b,reduceAnimations:C,orientation:w,disableOpenPicker:S,closeOnSelect:P,disabled:x,readOnly:M,formatDensity:k,enableAccessibleFieldDOMStructure:T,selectedSections:O,onSelectedSectionsChange:I,format:D,label:E,autoFocus:N,name:L}=t,{className:$,sx:F}=t,R=at(t,Rz),B=dt(),_=Et(),V=yb(C),A=Fz(g,w),{current:z}=f.useRef(y??null),[G,U]=f.useState(null),X=f.useRef(null),Y=f.useRef(null),ee=f.useRef(null),oe=st(e,ee),{timezone:K,state:W,setOpen:J,setValue:q,setValueFromView:ce,value:re,viewValue:se}=Nz({props:t,valueManager:n,validator:i}),{view:ae,setView:te,defaultView:Q,focusedView:Ce,setFocusedView:le,setValueAndGoToNextView:xe,goToNextStep:we,hasNextStep:Ue,hasSeveralSteps:$e}=eb({view:h,views:g,openTo:y,onChange:ce,onViewChange:m,autoFocus:l,getStepNavigation:p}),Ze=fe(()=>q(n.emptyValue,{source:"view"})),Le=fe(()=>q(n.getTodayValue(_,K,r),{source:"view"})),Qe=fe(()=>q(re,{source:"view"})),Je=fe(()=>q(W.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),be=fe(()=>{q(re,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Ee,viewModeLookup:me,timeViewsCount:Me}=f.useMemo(()=>g.reduce((je,Lt)=>{const _e=b[Lt]==null?"field":"UI";return je.viewModeLookup[Lt]=_e,_e==="UI"&&(je.hasUIView=!0,R_(Lt)&&(je.timeViewsCount+=1)),je},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[b,g]),Ae=me[ae],Ge=fe(()=>Ae),[lt,Dt]=f.useState(Ae==="UI"?ae:null);lt!==ae&&me[ae]==="UI"&&Dt(ae),ht(()=>{Ae==="field"&&W.open&&(J(!1),setTimeout(()=>{Y?.current?.setSelectedSections(ae),Y?.current?.focusField(ae)}))},[ae]),ht(()=>{if(!W.open)return;let je=ae;Ae==="field"&<!=null&&(je=lt),je!==Q&&me[je]==="UI"&&me[Q]==="UI"&&(je=Q),je!==ae&&te(je),le(je,!0)},[W.open]);const qe=f.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(_,re,n.emptyValue),isPickerOpen:W.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:A,pickerVariant:s}),[_,n,re,W.open,A,s,t.disabled,t.readOnly]),Fe=f.useMemo(()=>S||!Ee?"hidden":x||M?"disabled":"enabled",[S,Ee,x,M]),Ye=fe(we),pt=f.useMemo(()=>P&&!$e?[]:["cancel","nextOrAccept"],[P,$e]),qt=f.useMemo(()=>({setValue:q,setOpen:J,clearValue:Ze,setValueToToday:Le,acceptValueChanges:Qe,cancelValueChanges:Je,setView:te,goToNextStep:Ye}),[q,J,Ze,Le,Qe,Je,te,Ye]),kt=f.useMemo(()=>ne({},qt,{value:re,timezone:K,open:W.open,views:g,view:lt,initialView:z,disabled:x??!1,readOnly:M??!1,autoFocus:N??!1,variant:s,orientation:A,popupRef:X,reduceAnimations:V,triggerRef:U,triggerStatus:Fe,hasNextStep:Ue,fieldFormat:D??"",name:L,label:E,rootSx:F,rootRef:oe,rootClassName:$}),[qt,re,oe,s,A,V,x,M,D,$,L,E,F,Fe,Ue,K,W.open,lt,g,z,N]),Yn=f.useMemo(()=>({dismissViews:be,ownerState:qe,hasUIView:Ee,getCurrentViewMode:Ge,rootRefObject:ee,labelId:B,triggerElement:G,viewContainerRole:d,defaultActionBarActions:pt,onPopperExited:a}),[be,qe,Ee,Ge,B,G,d,pt,a]),_n=f.useMemo(()=>({formatDensity:k,enableAccessibleFieldDOMStructure:T,selectedSections:O,onSelectedSectionsChange:I,fieldRef:Y}),[k,T,O,I,Y]);return{providerProps:{localeText:u,contextValue:kt,privateContextValue:Yn,actionsContextValue:qt,fieldPrivateContextValue:_n,isValidContextValue:je=>{const Lt=i({adapter:_,value:je,timezone:K,props:t});return!n.hasError(Lt)}},renderCurrentView:()=>{if(lt==null)return null;const je=b[lt];if(je==null)return null;const Lt=ne({},R,{views:g,timezone:K,value:se,onChange:xe,view:lt,onViewChange:te,showViewSwitcher:Me>1,timeViewsCount:Me},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:Ce,onFocusedViewChange:le});return c?v.jsx(c,{viewRenderers:b,popperView:lt,rendererProps:Lt}):je(Lt)},ownerState:qe}};function Jx(e){return ke("MuiPickersLayout",e)}const $i=Oe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),$z=["actions"],Lz=Z(Hg,{name:"MuiPickersLayout",slot:"ActionBar"})({});function eP(e){const{actions:t}=e,n=at(e,$z),r=Oo(),{clearValue:s,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=Fi();if(t==null||t.length===0)return null;const d=t?.map(p=>{switch(p){case"clear":return v.jsx(Gn,{onClick:s,children:r.clearButtonLabel},p);case"cancel":return v.jsx(Gn,{onClick:l,children:r.cancelButtonLabel},p);case"accept":return v.jsx(Gn,{onClick:a,children:r.okButtonLabel},p);case"today":return v.jsx(Gn,{onClick:i,children:r.todayButtonLabel},p);case"next":return v.jsx(Gn,{onClick:c,children:r.nextStepButtonLabel},p);case"nextOrAccept":return u?v.jsx(Gn,{onClick:c,children:r.nextStepButtonLabel},p):v.jsx(Gn,{onClick:a,children:r.okButtonLabel},p);default:return null}});return v.jsx(Lz,ne({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(eP.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 tP=f.memo(eP);process.env.NODE_ENV!=="production"&&(tP.displayName="PickersActionBar");const Az=["items","changeImportance"],Vz=["getValue"],_z=Z(ls,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function nP(e){const{items:t,changeImportance:n="accept"}=e,r=at(e,Az),{setValue:s}=v_(),i=y_();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=at(l,Vz);const d=c({isValid:i});return ne({},u,{label:u.label,onClick:()=>{s(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return v.jsx(_z,ne({dense:!0,sx:[{maxHeight:tb,maxWidth:200,overflow:"auto"},...Array.isArray(r.sx)?r.sx:[r.sx]]},r,{children:a.map(l=>v.jsx(Jg,{children:v.jsx(Da,ne({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(nP.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 Bz=["ownerState"];function Hz(e){return e.view!==null}const zz=(e,t)=>{const{pickerOrientation:n}=t;return de({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Jx,e)},jz=e=>{const{ownerState:t,defaultActionBarActions:n}=Qn(),{view:r}=Fi(),s=Gt(),{children:i,slots:a,slotProps:l,classes:c}=e,u=f.useMemo(()=>ne({},t,{layoutDirection:s?"rtl":"ltr",hasShortcuts:!1}),[t,s]),d=zz(c,u),p=a?.actionBar??tP,g=it({elementType:p,externalSlotProps:l?.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),h=at(g,Bz),y=v.jsx(p,ne({},h)),m=a?.toolbar,b=it({elementType:m,externalSlotProps:l?.toolbar,className:d.toolbar,ownerState:u}),C=Hz(b)&&m?v.jsx(m,ne({},b)):null,w=i,S=a?.tabs,P=r&&S?v.jsx(S,ne({className:d.tabs},l?.tabs)):null,x=a?.shortcuts??nP,M=it({elementType:x,externalSlotProps:l?.shortcuts,className:d.shortcuts,ownerState:u}),k=Array.isArray(M?.items)&&M.items.length>0,T=r&&x?v.jsx(x,ne({},M)):null;return{toolbar:C,content:w,tabs:P,actionBar:y,shortcuts:T,ownerState:ne({},u,{hasShortcuts:k})}},Gz=(e,t)=>{const{pickerOrientation:n}=t;return de({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},Jx,e)},Wz=Z("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${$i.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${$i.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${$i.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${$i.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${$i.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${$i.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${$i.shortcuts}`]:{gridColumn:4}}}]}),Uz=Z("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Li=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPickersLayout"}),{toolbar:s,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=jz(r),{orientation:d,variant:p}=Fi(),{sx:g,className:h,classes:y}=r,m=Gz(y,u);return v.jsxs(Wz,{ref:n,sx:g,className:ie(m.root,h),ownerState:u,children:[d==="landscape"?c:s,d==="landscape"?s:c,v.jsx(Uz,{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"&&(Li.displayName="PickersLayout"),process.env.NODE_ENV!=="production"&&(Li.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 oP(e){const{steps:t}=e;return px({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 qz=["props","steps"],Yz=["ownerState"],Kz=e=>{let{props:t,steps:n}=e,r=at(e,qz);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=oP({steps:n}),{providerProps:d,renderCurrentView:p,ownerState:g}=Zc(ne({},r,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),h=d.privateContextValue.labelId,y=i?.toolbar?.hidden??!1,m=s.field,b=it({elementType:m,externalSlotProps:i?.field,additionalProps:ne({},y&&{id:h}),ownerState:g}),C=at(b,Yz),w=s.layout??Li;let S=h;y&&(a?S=`${h}-label`:S=void 0);const P=ne({},i,{toolbar:ne({},i?.toolbar,{titleId:h}),popper:ne({"aria-labelledby":S},i?.popper)}),x=()=>v.jsxs(zc,ne({},d,{children:[v.jsx(m,ne({},C,{slots:ne({},s,C.slots),slotProps:ne({},P,C.slotProps),inputRef:l})),v.jsx(Xx,{slots:s,slotProps:P,children:v.jsx(w,ne({},P?.layout,{slots:s,slotProps:P,children:p()}))})]}));return process.env.NODE_ENV!=="production"&&(x.displayName="renderPicker"),{renderPicker:x}},Ai=({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:y,shouldDisableDate:m,shouldDisableMonth:b,shouldDisableYear:C,reduceAnimations:w,onMonthChange:S,monthsPerRow:P,onYearChange:x,yearsOrder:M,yearsPerRow:k,slots:T,slotProps:O,loading:I,renderLoading:D,disableHighlightToday:E,readOnly:N,disabled:L,showDaysOutsideCurrentMonth:$,dayOfWeekFormatter:F,sx:R,autoFocus:B,fixedWeekNumber:_,displayWeekNumber:V,timezone:A})=>v.jsx(vb,{view:e,onViewChange:t,views:n.filter(Bm),focusedView:r&&Bm(r)?r:null,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:g,minDate:h,maxDate:y,shouldDisableDate:m,shouldDisableMonth:b,shouldDisableYear:C,reduceAnimations:w,onMonthChange:S,monthsPerRow:P,onYearChange:x,yearsOrder:M,yearsPerRow:k,slots:T,slotProps:O,loading:I,renderLoading:D,disableHighlightToday:E,readOnly:N,disabled:L,showDaysOutsideCurrentMonth:$,dayOfWeekFormatter:F,sx:R,autoFocus:B,fixedWeekNumber:_,displayWeekNumber:V,timezone:A});process.env.NODE_ENV!=="production"&&(Ai.displayName="renderDateViewCalendar");const xb=f.forwardRef(function(t,n){const r=Et(),s=Yx(t,"MuiDesktopDatePicker"),i=ne({day:Ai,month:Ai,year:Ai},s.viewRenderers),a=ne({},s,{closeOnSelect:s.closeOnSelect??!0,viewRenderers:i,format:Hm(r,s,!1),yearsPerRow:s.yearsPerRow??4,slots:ne({field:Hp},s.slots),slotProps:ne({},s.slotProps,{field:c=>ne({},Zn(s.slotProps?.field,c),xp(s)),toolbar:ne({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=Kz({ref:n,props:a,valueManager:ko,valueType:"date",validator:Bs,steps:null});return l()});process.env.NODE_ENV!=="production"&&(xb.displayName="DesktopDatePicker"),xb.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:At,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 Xz=Z(Bg)({[`& .${vc.container}`]:{outline:0},[`& .${vc.paper}`]:{outline:0,minWidth:Wc}}),Zz=Z(Wd)({"&:first-of-type":{padding:0}});function rP(e){const{children:t,slots:n,slotProps:r}=e,{open:s}=Fi(),{dismissViews:i,onPopperExited:a}=Qn(),l=n?.dialog??Xz,c=n?.mobileTransition??as;return v.jsx(l,ne({open:s,onClose:()=>{i(),a?.()}},r?.dialog,{TransitionComponent:c,TransitionProps:r?.mobileTransition,PaperComponent:n?.mobilePaper,PaperProps:r?.mobilePaper,children:v.jsx(Zz,{children:t})}))}const Qz=["props","steps"],Jz=["ownerState"],ej=e=>{let{props:t,steps:n}=e,r=at(e,Qz);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=oP({steps:n}),{providerProps:d,renderCurrentView:p,ownerState:g}=Zc(ne({},r,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),h=d.privateContextValue.labelId,y=i?.toolbar?.hidden??!1,m=s.field,b=it({elementType:m,externalSlotProps:i?.field,additionalProps:ne({},y&&{id:h}),ownerState:g}),C=at(b,Jz),w=s.layout??Li;let S=h;y&&(a?S=`${h}-label`:S=void 0);const P=ne({},i,{toolbar:ne({},i?.toolbar,{titleId:h}),mobilePaper:ne({"aria-labelledby":S},i?.mobilePaper)}),x=()=>v.jsxs(zc,ne({},d,{children:[v.jsx(m,ne({},C,{slots:ne({},s,C.slots),slotProps:ne({},P,C.slotProps),inputRef:l})),v.jsx(rP,{slots:s,slotProps:P,children:v.jsx(w,ne({},P?.layout,{slots:s,slotProps:P,children:p()}))})]}));return process.env.NODE_ENV!=="production"&&(x.displayName="renderPicker"),{renderPicker:x}},Pb=f.forwardRef(function(t,n){const r=Et(),s=Yx(t,"MuiMobileDatePicker"),i=ne({day:Ai,month:Ai,year:Ai},s.viewRenderers),a=ne({},s,{viewRenderers:i,format:Hm(r,s,!1),slots:ne({field:Hp},s.slots),slotProps:ne({},s.slotProps,{field:c=>ne({},Zn(s.slotProps?.field,c),xp(s)),toolbar:ne({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=ej({ref:n,props:a,valueManager:ko,valueType:"date",validator:Bs,steps:null});return l()});process.env.NODE_ENV!=="production"&&(Pb.displayName="MobileDatePicker"),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:At,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 tj=["desktopModeMediaQuery"],Wp=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:s=ob}=r,i=at(r,tj);return tp(s,{defaultMatches:!0})?v.jsx(xb,ne({ref:n},i)):v.jsx(Pb,ne({ref:n},i))});process.env.NODE_ENV!=="production"&&(Wp.displayName="DatePicker"),process.env.NODE_ENV!=="production"&&(Wp.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:At,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 nj(e){return ke("MuiPickersToolbarText",e)}Oe("MuiPickersToolbarText",["root"]);const oj=["className","classes","selected","value"],rj=e=>de({root:["root"]},nj,e),sj=Z($t,{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}})),sP=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPickersToolbarText"}),{className:s,classes:i,selected:a,value:l}=r,c=at(r,oj),u=rj(i);return v.jsx(sj,ne({ref:n,className:ie(u.root,s),component:"span",ownerState:r},a&&{"data-selected":!0},c,{children:l}))});process.env.NODE_ENV!=="production"&&(sP.displayName="PickersToolbarText");const ij=["align","className","classes","selected","typographyClassName","value","variant","width"],aj=e=>de({root:["root"]},qx,e),lj=Z(Gn,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),Eb=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPickersToolbarButton"}),{align:s,className:i,classes:a,selected:l,typographyClassName:c,value:u,variant:d,width:p}=r,g=at(r,ij),h=aj(a);return v.jsx(lj,ne({variant:"text",ref:n,className:ie(h.root,i),ownerState:r},p?{sx:{width:p}}:{},g,{children:v.jsx(sP,{align:s,className:c,variant:d,value:u,selected:l})}))});process.env.NODE_ENV!=="production"&&(Eb.displayName="PickersToolbarButton");var Up={exports:{}},cj=Up.exports,iP;function uj(){return iP||(iP=1,(function(e,t){(function(n,r){e.exports=r()})(cj,(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)}}}))})(Up)),Up.exports}var dj=uj();const pj=Ps(dj);var qp={exports:{}},fj=qp.exports,aP;function hj(){return aP||(aP=1,(function(e,t){(function(n,r){e.exports=r()})(fj,(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(b){return(b=+b)+(b>68?1900:2e3)},d=function(b){return function(C){this[b]=+C}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=(function(C){if(!C||C==="Z")return 0;var w=C.match(/([+-]|\d\d)/g),S=60*w[1]+(+w[2]||0);return S===0?0:w[0]==="+"?-S:S})(b)}],g=function(b){var C=c[b];return C&&(C.indexOf?C:C.s.concat(C.f))},h=function(b,C){var w,S=c.meridiem;if(S){for(var P=1;P<=24;P+=1)if(b.indexOf(S(P,0,C))>-1){w=P>12;break}}else w=b===(C?"pm":"PM");return w},y={A:[l,function(b){this.afternoon=h(b,!1)}],a:[l,function(b){this.afternoon=h(b,!0)}],Q:[s,function(b){this.month=3*(b-1)+1}],S:[s,function(b){this.milliseconds=100*+b}],SS:[i,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],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(b){var C=c.ordinal,w=b.match(/\d+/);if(this.day=w[0],C)for(var S=1;S<=31;S+=1)C(S).replace(/\[|\]/g,"")===b&&(this.day=S)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(b){var C=g("months"),w=(g("monthsShort")||C.map((function(S){return S.slice(0,3)}))).indexOf(b)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[l,function(b){var C=g("months").indexOf(b)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(b){this.year=u(b)}],YYYY:[/\d{4}/,d("year")],Z:p,ZZ:p};function m(b){var C,w;C=b,w=c&&c.formats;for(var S=(b=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(I,D,E){var N=E&&E.toUpperCase();return D||w[E]||n[E]||w[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(L,$,F){return $||F.slice(1)}))}))).match(r),P=S.length,x=0;x<P;x+=1){var M=S[x],k=y[M],T=k&&k[0],O=k&&k[1];S[x]=O?{regex:T,parser:O}:M.replace(/^\[|\]$/g,"")}return function(I){for(var D={},E=0,N=0;E<P;E+=1){var L=S[E];if(typeof L=="string")N+=L.length;else{var $=L.regex,F=L.parser,R=I.slice(N),B=$.exec(R)[0];F.call(D,B),I=I.replace(B,"")}}return(function(_){var V=_.afternoon;if(V!==void 0){var A=_.hours;V?A<12&&(_.hours+=12):A===12&&(_.hours=0),delete _.afternoon}})(D),D}}return function(b,C,w){w.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(u=b.parseTwoDigitYear);var S=C.prototype,P=S.parse;S.parse=function(x){var M=x.date,k=x.utc,T=x.args;this.$u=k;var O=T[1];if(typeof O=="string"){var I=T[2]===!0,D=T[3]===!0,E=I||D,N=T[2];D&&(N=T[2]),c=this.$locale(),!I&&N&&(c=w.Ls[N]),this.$d=(function(R,B,_,V){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*R);var A=m(B)(R),z=A.year,G=A.month,U=A.day,X=A.hours,Y=A.minutes,ee=A.seconds,oe=A.milliseconds,K=A.zone,W=A.week,J=new Date,q=U||(z||G?1:J.getDate()),ce=z||J.getFullYear(),re=0;z&&!G||(re=G>0?G-1:J.getMonth());var se,ae=X||0,te=Y||0,Q=ee||0,Ce=oe||0;return K?new Date(Date.UTC(ce,re,q,ae,te,Q,Ce+60*K.offset*1e3)):_?new Date(Date.UTC(ce,re,q,ae,te,Q,Ce)):(se=new Date(ce,re,q,ae,te,Q,Ce),W&&(se=V(se).week(W).toDate()),se)}catch{return new Date("")}})(M,O,k,w),this.init(),N&&N!==!0&&(this.$L=this.locale(N).$L),E&&M!=this.format(O)&&(this.$d=new Date("")),c={}}else if(O instanceof Array)for(var L=O.length,$=1;$<=L;$+=1){T[1]=O[$-1];var F=w.apply(this,T);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}$===L&&(this.$d=new Date(""))}else P.call(this,x)}}}))})(qp)),qp.exports}var gj=hj();const mj=Ps(gj);var Yp={exports:{}},bj=Yp.exports,lP;function yj(){return lP||(lP=1,(function(e,t){(function(n,r){e.exports=r()})(bj,(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,y,m){var b=m&&m.toUpperCase();return y||g[m]||n[m]||g[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,w,S){return w||S.slice(1)}))}))})(c,u===void 0?{}:u);return l.call(this,d)}}}))})(Yp)),Yp.exports}var vj=yj();const Cj=Ps(vj);var Kp={exports:{}},wj=Kp.exports,cP;function Sj(){return cP||(cP=1,(function(e,t){(function(n,r){e.exports=r()})(wj,(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))}}}))})(Kp)),Kp.exports}var xj=Sj();const Pj=Ps(xj);var Xp={exports:{}},Ej=Xp.exports,uP;function Ij(){return uP||(uP=1,(function(e,t){(function(n,r){e.exports=r()})(Ej,(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)}}}))})(Xp)),Xp.exports}var Tj=Ij();const Mj=Ps(Tj);Fn.extend(Cj),Fn.extend(pj),Fn.extend(Pj),Fn.extend(Mj);const Oj={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"},kj={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"},Ib=["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
|
-
`),dP=["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 pP{isMUIAdapter=!0;isTimezoneCompatible=!0;lib="dayjs";escapedCharacters={start:"[",end:"]"};formatTokenMap=Oj;constructor({locale:t,formats:n}={}){this.locale=t,this.formats=ne({},kj,n),Fn.extend(mj)}setLocaleToValue=t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)};hasUTCPlugin=()=>typeof Fn.utc<"u";hasTimezonePlugin=()=>typeof Fn.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 Fn.tz.guess();default:return t}};createSystemDate=t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const r=Fn.tz.guess();r==="UTC"?n=Fn(t):n=Fn.tz(t,r)}else n=Fn(t);return this.setLocaleToValue(n)};createUTCDate=t=>{if(!this.hasUTCPlugin())throw new Error(Ib);return this.setLocaleToValue(Fn.utc(t))};createTZDate=(t,n)=>{if(!this.hasUTCPlugin())throw new Error(Ib);if(!this.hasTimezonePlugin())throw new Error(dP);const r=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(Fn(t).tz(this.cleanTimezone(n),r))};getLocaleFormats=()=>{const t=Fn.Ls,n=this.locale||"en";let r=t[n];return r===void 0&&(process.env.NODE_ENV!=="production"&&xn(["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=()=>Fn(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(Ib);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(dP)}return this.setLocaleToValue(Fn.tz(t,this.cleanTimezone(n)))};toJsDate=t=>t.toDate();parse=(t,n)=>t===""?null:Fn(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 Dj=({sidebar:e,routes:t,product:n,account:r,languages:s,loginForm:i})=>{const{isAuthenticated:a}=ge.useContext(Pr);return a?v.jsx(gV,{routes:t,sidebar:e,account:r}):v.jsx(nV,{product:n,languages:s,form:i})},Fj=({sidebar:e,routes:t,product:n,account:r,languages:s,loginForm:i})=>{const a=s.find(c=>c.active)||s[0];ge.useEffect(()=>{switch(a.code){case"es":Fn.locale("es");break;case"en":Fn.locale("en");break;case"pt":Fn.locale("pt");break;default:Fn.locale("en")}},[a]);const l={rabbitDark:ci(D2,a.theme.dg,a.theme.core,a.theme.pickers)};return v.jsx(v.Fragment,{children:v.jsx(jn,{sx:{overflow:"hidden",height:"100vh"},children:v.jsx(NA,{children:v.jsx(SC,{theme:l.rabbitDark,children:v.jsx(_c,{dateAdapter:pP,adapterLocale:a.code,children:v.jsxs(YV,{maxSnack:15,autoHideDuration:1e4,anchorOrigin:{vertical:"top",horizontal:"center"},children:[v.jsx(Nw,{}),v.jsx(Dj,{sidebar:e,routes:t,product:n,account:r,languages:s,loginForm:i})]})})})})})})},Nj=({children:e})=>{const[t,n]=ge.useState(!1),[r,s]=ge.useState(""),[i,a]=ge.useState(""),[l,c]=ge.useState(""),[u,d]=ge.useState("DD/MM/YYYY"),[p,g]=ge.useState([]),[h,y]=ge.useState([]),[m,b]=ge.useState(!1),C=(S,P,x)=>{S==="session"?sessionStorage.setItem(P,x):S==="local"&&localStorage.setItem(P,x)},w=(S,P)=>S==="session"?sessionStorage.getItem(P)||"":S==="local"&&localStorage.getItem(P)||"";return ge.useEffect(()=>{n(sessionStorage.getItem("authenticated")==="true")},[]),v.jsx(Pr.Provider,{value:{isAuthenticated:t,setIsAuthenticated:n,user:r,setUser:s,pass:i,setPass:a,avatar:l,setAvatar:c,loadingAuth:m,setLoadingAuth:b,format:u,setFormat:d,singleShortcut:p,setSingleShortcut:g,rangeShortcut:h,setRangeShortcut:y,encrypter:C,decrypter:w},children:e})};function H(){return H=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},H.apply(null,arguments)}var Rj=(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})}}},$j=(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})}},Lj={inputStabilityCheck:"once",identityFunctionCheck:"once"},Zp=Symbol("NOT_FOUND");function Aj(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Vj(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function _j(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 fP=e=>Array.isArray(e)?e:[e];function Bj(e){const t=Array.isArray(e[0])?e[0]:e;return _j(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function hP(e,t){const n=[],{length:r}=e;for(let s=0;s<r;s++)n.push(e[s].apply(null,t));return n}var Hj=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...Lj,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:Rj},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:$j}}};function zj(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Zp},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function jj(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 Zp}function s(l,c){r(l)===Zp&&(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 Gj=(e,t)=>e===t;function Wj(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 Tb(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=Gj,maxSize:s=1,resultEqualityCheck:i}=n,a=Wj(r);let l=0;const c=s<=1?zj(a):jj(s,a);function u(){let d=c.get(arguments);if(d===Zp){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 Uj=class{constructor(e){this.value=e}deref(){return this.value}},qj=typeof WeakRef<"u"?WeakRef:Uj,Yj=0,gP=1;function Qp(){return{s:Yj,v:void 0,o:null,p:null}}function mP(e,t={}){let n=Qp();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 y=l.o;y===null&&(l.o=y=new WeakMap);const m=y.get(h);m===void 0?(l=Qp(),y.set(h,l)):l=m}else{let y=l.p;y===null&&(l.p=y=new Map);const m=y.get(h);m===void 0?(l=Qp(),y.set(h,l)):l=m}}const u=l;let d;if(l.s===gP)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 qj(d):d}return u.s=gP,u.v=d,d}return a.clearCache=()=>{n=Qp(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function bP(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()),Aj(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...c},{memoize:p,memoizeOptions:g=[],argsMemoize:h=mP,argsMemoizeOptions:y=[],devModeChecks:m={}}=d,b=fP(g),C=fP(y),w=Bj(s),S=p(function(){return i++,u.apply(null,arguments)},...b);let P=!0;const x=h(function(){a++;const k=hP(w,arguments);if(l=S.apply(null,k),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:T,inputStabilityCheck:O}=Hj(P,m);if(T.shouldRun&&T.run(u,k,l),O.shouldRun){const I=hP(w,arguments);O.run({inputSelectorResults:k,inputSelectorResultsCopy:I},{memoize:p,memoizeOptions:b},arguments)}P&&(P=!1)}return l},...C);return Object.assign(x,{resultFunc:u,memoizedResultFunc:S,dependencies:w,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:p,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var Kj=bP(mP),Xj=Object.assign((e,t=Kj)=>{Vj(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:()=>Xj});const Zj=bP({memoize:Tb,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),gt=(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 y=e(d,p,g,h),m=t(d,p,g,h),b=n(d,p,g,h),C=r(d,p,g,h),w=s(d,p,g,h),S=i(d,p,g,h),P=a(d,p,g,h);return l(y,m,b,C,w,S,P,p,g,h)};else if(e&&t&&n&&r&&s&&i&&a)u=(d,p,g,h)=>{const y=e(d,p,g,h),m=t(d,p,g,h),b=n(d,p,g,h),C=r(d,p,g,h),w=s(d,p,g,h),S=i(d,p,g,h);return a(y,m,b,C,w,S,p,g,h)};else if(e&&t&&n&&r&&s&&i)u=(d,p,g,h)=>{const y=e(d,p,g,h),m=t(d,p,g,h),b=n(d,p,g,h),C=r(d,p,g,h),w=s(d,p,g,h);return i(y,m,b,C,w,p,g,h)};else if(e&&t&&n&&r&&s)u=(d,p,g,h)=>{const y=e(d,p,g,h),m=t(d,p,g,h),b=n(d,p,g,h),C=r(d,p,g,h);return s(y,m,b,C,p,g,h)};else if(e&&t&&n&&r)u=(d,p,g,h)=>{const y=e(d,p,g,h),m=t(d,p,g,h),b=n(d,p,g,h);return r(y,m,b,p,g,h)};else if(e&&t&&n)u=(d,p,g,h)=>{const y=e(d,p,g,h),m=t(d,p,g,h);return n(y,m,p,g,h)};else if(e&&t)u=(d,p,g,h)=>{const y=e(d,p,g,h);return t(y,p,g,h)};else if(e)u=e;else throw new Error("Missing arguments");return u},no=(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 y=t.length===1?[C=>C,s]:t;let m=t;const b=[void 0,void 0,void 0];switch(a){case 0:break;case 1:{m=[...y.slice(0,-1),()=>b[0],s];break}case 2:{m=[...y.slice(0,-1),()=>b[0],()=>b[1],s];break}case 3:{m=[...y.slice(0,-1),()=>b[0],()=>b[1],()=>b[2],s];break}default:throw new Error("Unsupported number of arguments")}h=Zj(...m),h.selectorArgs=b,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 Jp={exports:{}},Mb={};var yP;function Qj(){if(yP)return Mb;yP=1;var e=ge;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(),y=r({inst:{value:h,getSnapshot:g}}),m=y[0].inst,b=y[1];return i(function(){m.value=h,m.getSnapshot=g,c(m)&&b({inst:m})},[p,h,g]),s(function(){return c(m)&&b({inst:m}),p(function(){c(m)&&b({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 Mb.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Mb}var Ob={};var vP;function Jj(){return vP||(vP=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,y){return h===y&&(h!==0||1/h===1/y)||h!==h&&y!==y}function t(h,y){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=y();if(!p){var b=y();i(m,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}b=a({inst:{value:m,getSnapshot:y}});var C=b[0].inst,w=b[1];return c(function(){C.value=m,C.getSnapshot=y,n(C)&&w({inst:C})},[h,m,y]),l(function(){return n(C)&&w({inst:C}),h(function(){n(C)&&w({inst:C})})},[h]),u(m),m}function n(h){var y=h.getSnapshot;h=h.value;try{var m=y();return!i(h,m)}catch{return!0}}function r(h,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=ge,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;Ob.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())})()),Ob}var CP;function kb(){return CP||(CP=1,process.env.NODE_ENV==="production"?Jp.exports=Qj():Jp.exports=Jj()),Jp.exports}var Db=kb(),ef={exports:{}},Fb={};var wP;function eG(){if(wP)return Fb;wP=1;var e=ge,t=kb();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 Fb.useSyncExternalStoreWithSelector=function(u,d,p,g,h){var y=i(null);if(y.current===null){var m={hasValue:!1,value:null};y.current=m}else m=y.current;y=l(function(){function C(M){if(!w){if(w=!0,S=M,M=g(M),h!==void 0&&m.hasValue){var k=m.value;if(h(k,M))return P=k}return P=M}if(k=P,r(S,M))return k;var T=g(M);return h!==void 0&&h(k,T)?(S=M,k):(S=M,P=T)}var w=!1,S,P,x=p===void 0?null:p;return[function(){return C(d())},x===null?void 0:function(){return C(x())}]},[d,p,g,h]);var b=s(u,y[0],y[1]);return a(function(){m.hasValue=!0,m.value=b},[b]),c(b),b},Fb}var Nb={};var SP;function tG(){return SP||(SP=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=ge,n=kb(),r=typeof Object.is=="function"?Object.is:e,s=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,l=t.useMemo,c=t.useDebugValue;Nb.useSyncExternalStoreWithSelector=function(u,d,p,g,h){var y=i(null);if(y.current===null){var m={hasValue:!1,value:null};y.current=m}else m=y.current;y=l(function(){function C(M){if(!w){if(w=!0,S=M,M=g(M),h!==void 0&&m.hasValue){var k=m.value;if(h(k,M))return P=k}return P=M}if(k=P,r(S,M))return k;var T=g(M);return h!==void 0&&h(k,T)?(S=M,k):(S=M,P=T)}var w=!1,S,P,x=p===void 0?null:p;return[function(){return C(d())},x===null?void 0:function(){return C(x())}]},[d,p,g,h]);var b=s(u,y[0],y[1]);return a(function(){m.hasValue=!0,m.value=b},[b]),c(b),b},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Nb}var xP;function nG(){return xP||(xP=1,process.env.NODE_ENV==="production"?ef.exports=eG():ef.exports=tG()),ef.exports}var oG=nG();const Rb=parseInt(f.version,10),rG=Rb>=19?sG:iG;function Wt(e,t,n,r,s){return rG(e,t,n,r,s)}function sG(e,t,n,r,s){const i=f.useCallback(()=>t(e.getSnapshot(),n,r,s),[e,t,n,r,s]);return Db.useSyncExternalStore(e.subscribe,i,i)}function iG(e,t,n,r,s){return oG.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,r,s))}const aG=()=>{};function zs(e,t,n){const r=fo(lG,{store:e,selector:t}).current;r.effect=n,Sd(r.onMount)}function lG(e){const{store:t,selector:n}=e;let r=n(t.state);const s={effect:aG,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}function Qc(){return Qc=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},Qc.apply(null,arguments)}class Jc{static create(t){return new Jc(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(Qc({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState(Qc({},this.state,{[t]:n}))}use=(t,n,r,s)=>Wt(this,t,n,r,s)}const Ne=(...e)=>{const t=gt(...e);return(r,s,i,a)=>t($b(r),s,i,a)},Ot=(...e)=>{const t=no(...e);return(r,s,i,a)=>t($b(r),s,i,a)},_t=e=>(t,n)=>e($b(t),n);function $b(e){return"current"in e?e.current.state:e}const fn=_t(e=>e.dimensions),eu=Ne(fn,e=>e.columnsTotalWidth),cG=Ne(fn,e=>e.rowHeight);Ne(fn,e=>e.contentSize.height);const PP=Ne(fn,e=>e.hasScrollX),EP=Ne(fn,e=>e.hasScrollY),Lb=Ne(fn,e=>e.columnsTotalWidth<e.viewportOuterSize.width),uG=Ne(fn,e=>e.headerHeight),dG=Ne(fn,e=>e.groupHeaderHeight),pG=Ne(fn,e=>e.headerFilterHeight),IP=Ne(fn,e=>e.hasScrollX?e.scrollbarSize:0),Ab=Ne(fn,e=>e.hasScrollY?e.scrollbarSize:0),fG=Ne(fn,IP,(e,t)=>{const n=e.viewportOuterSize.height-e.minimumSize.height>0;return!(t===0&&!n)}),TP=_t(e=>e.rowsMeta),Ir=_t(e=>e.rows),Ja=Ne(Ir,e=>e.totalRowCount),hG=Ne(Ir,e=>e.loading),gG=Ne(Ir,e=>e.totalTopLevelRowCount),mo=Ne(Ir,e=>e.dataRowIdToModelLookup),mG=Ne(mo,(e,t)=>e[t]),yt=Ne(Ir,e=>e.tree),It=Ne(yt,(e,t)=>e[t]),MP=Ne(Ir,e=>e.groupsToFetch),bG=Ne(Ir,e=>e.groupingName),OP=Ne(Ir,e=>e.treeDepths),js=Ot(Ir,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}),Vi=Ne(Ir,e=>e.dataRowIds),yG=Ot(Vi,mo,(e,t)=>e.reduce((n,r)=>(t[r]&&n.push(t[r]),n),[])),vG=Ne(Ir,e=>e?.additionalRowGroups),_i=Ot(vG,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??{}}))??[]}}),kP=Ne(_i,e=>(e?.top?.length||0)+(e?.bottom?.length||0)),nt="auto-generated-group-node-root",Bi=Symbol("mui.id_autogenerated"),DP=()=>({type:"group",id:nt,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function CG(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 el=(e,t,n)=>{const r=t?t(e):e.id;return CG(r,e,n),r},FP=(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)},tf=({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=el(l,t);i[c]=l,s.rows.push(c)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:s,dataRowIdToModelLookup:i}},NP=({tree:e,rowCountProp:t=0})=>{const n=e[nt];return Math.max(t,n.children.length+(n.footerId==null?0:1))},RP=({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:{}},H({},g,{totalRowCount:Math.max(t,g.dataRowIds.length),totalTopLevelRowCount:NP({tree:g.tree,rowCountProp:t}),groupingName:d,loading:n,groupsToFetch:p})},$P=e=>Bi in e,tl=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,Hi=(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||!tl(e[l]))&&i.push(l),r)continue;const c=Hi(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},LP=({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=el(u,t,"A row was provided without id when calling updateRows():");s.has(d)?s.set(d,H({},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:H({},e.updates.idToActionLookup),groupKeys:r},a=H({},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]=H({},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}},AP="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function VP(e,t,n){const r=[];return t.forEach(s=>{const i=el(s,n,"A row was provided without id when calling updateRows():");if(It(e,i)?.type==="pinnedRow"){const l=e.current.caches.pinnedRows,c=l.idLookup[i];c&&(l.idLookup[i]=H({},c,s))}else r.push(s)}),r}let _P=!1;const BP=(e,t,n)=>typeof e=="number"&&e>0?e:(process.env.NODE_ENV!=="production"&&!_P&&typeof e<"u"&&e!==null&&(console.warn(n),_P=!0),t),HP=["MUI X: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join(`
|
|
317
|
-
`),wG=Object.is;function zP(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,!wG(e[s],t[s])||!(s in t))return!1;for(const s in t)r+=1;return n===r}function Tr(e){return f.memo(e,zP)}const Xe=e=>{if(Rb>=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"&&(Xe.displayName="forwardRef");const Vb=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(Vb.displayName="GridRootPropsContext");const De=()=>{const e=f.useContext(Vb);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},SG={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",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",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 ot(e){return ke("MuiDataGrid",e)}const j=Oe("MuiDataGrid",["aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","autoHeight","autosizing","mainContent","withSidePanel","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--siblingFocused","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","container--top","container--bottom","detailPanel","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hiddenContent","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--beingDragged","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowReorderIcon","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea--up","scrollArea--down","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--pinnedRight","scrollShadow","scrollShadow--vertical","scrollShadow--horizontal","selectedRowCount","sortButton","sortIcon","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","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"]);let Do=(function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e})({});const _b=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(_b.displayName="GridApiContext");function tt(){const e=f.useContext(_b);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 jP=1e3;class xG{timeouts=new Map;cleanupTimeout=jP;constructor(t=jP){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 PG{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 Bb{static create(){return new Bb}}const nf={current:IG()};let GP=0;function Pe(e,t,n,r){const s=f.useState(Bb.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),GP+=1,l.current={cleanupToken:GP},nf.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&&(nf.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&&nf.current&&(nf.current.unregister(l.current),l.current=null),()=>{i.current?.(),i.current=null}},[e,t,r])}const EG={isFirst:!0};function Nt(e,t,n){Pe(e,t,n,EG)}function IG(){return typeof FinalizationRegistry<"u"?new PG:new xG}const TG=Object.is,WP=zP,MG=(e,t)=>e===t?!0:e.length===t.length&&e.every((n,r)=>n===t[r]),OG=(e,t)=>{let n=Object.is;return t instanceof Array?n=MG:t instanceof Object&&(n=WP),n(e,t)},kG=()=>({state:null,equals:null,selector:null,args:void 0}),UP=[],DG=()=>null;function ue(e,t,n=void 0,r=TG){e.current.state||xn(["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=fo(kG),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&&!OG(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),UP),d=f.useCallback(()=>(s.current.subscription||u(),()=>{s.current.subscription&&(s.current.subscription(),s.current.subscription=void 0)}),UP);return Db.useSyncExternalStore(d,u,DG),a}const FG={compact:.7,comfortable:1.3,standard:1},nl=_t(e=>e.density),tu=Ne(nl,e=>FG[e]);function Te(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 Kr(e){throw new Error("Failed assertion: should not be rendered")}const qP={values:{xs:0,sm:600,md:900,lg:1200,xl:1536},up:e=>{const t=qP.values;return`@media (min-width:${typeof t[e]=="number"?t[e]:e}px)`}},YP={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"}},NG=KP(YP),Ie=H({breakpoints:qP,spacing:RG,transition:$G,keys:YP},NG);function RG(e,t,n,r){return e===void 0?Mr(1):t===void 0?Mr(e):n===void 0?Mr(e)+" "+Mr(t):r===void 0?Mr(e)+" "+Mr(t)+" "+Mr(n):Mr(e)+" "+Mr(t)+" "+Mr(n)+" "+Mr(r)}function Mr(e){return e===0?"0":`calc(var(--DataGrid-t-spacing-unit) * ${e})`}function $G(e,t){const{duration:n=Ie.transitions.duration.base,easing:r=Ie.transitions.easing.easeInOut,delay:s=0}=t??{};return e.map(i=>`${i} ${n} ${r} ${s}ms`).join(", ")}function KP(e){if(typeof e=="string")return`var(${e})`;const t={};for(const n in e)Object.hasOwn(e,n)&&(t[n]=KP(e[n]));return t}const LG=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange","slotProps"],AG=e=>{const{classes:t}=e;return de({root:["editInputCell"]},ot,t)},VG=Z(Kr,{name:"MuiDataGrid",slot:"EditInputCell"})({font:Ie.typography.font.body,padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),XP=Xe((e,t)=>{const n=De(),{id:r,value:s,field:i,colDef:a,hasFocus:l,debounceMs:c=200,isProcessingProps:u,onValueChange:d,slotProps:p}=e,g=Te(e,LG),h=tt(),y=f.useRef(null),[m,b]=f.useState(s),C=AG(n),w=f.useCallback(async P=>{const x=P.target.value,M=h.current.getColumn(i);let k=x;M.valueParser&&(k=M.valueParser(x,h.current.getRow(r),M,h)),b(k),h.current.setEditCellValue({id:r,field:i,value:k,debounceMs:c,unstable_skipValueParser:!0},P),d&&await d(P,x)},[h,c,i,r,d]),S=h.current.unstable_getEditCellMeta(r,i);return f.useEffect(()=>{S?.changeReason!=="debouncedSetEditCellValue"&&b(s)},[S,s]),ht(()=>{l&&y.current.focus()},[l]),v.jsx(VG,H({as:n.slots.baseInput,inputRef:y,className:C.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:m??"",onChange:w,endAdornment:u?v.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},g,p?.root,{ref:t}))});process.env.NODE_ENV!=="production"&&(XP.displayName="GridEditInputCell");const ZP=e=>v.jsx(XP,H({},e));process.env.NODE_ENV!=="production"&&(ZP.displayName="renderEditInputCell");const QP=(e,t)=>t&&e.length>1?(xn(["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,JP=(e,t)=>n=>H({},n,{sorting:H({},n.sorting,{sortModel:QP(e,t)})}),_G=e=>e==="desc",BG=(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=_G(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator,r?{getSortCellParams:i=>({id:i,field:n.field,rowNode:It(t,i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}:null},HG=(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),zG=(e,t)=>{const n=e.map(r=>BG(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)=>HG(n,s,i)).map(s=>s.node.id)},eE=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Hb=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,jG=new Intl.Collator,GG=(e,t)=>{const n=Hb(e,t);return n!==null?n:typeof e=="string"?jG.compare(e.toString(),t.toString()):e-t},tE=(e,t)=>{const n=Hb(e,t);return n!==null?n:Number(e)-Number(t)},nE=(e,t)=>{const n=Hb(e,t);return n!==null?n:e>t?1:e<t?-1:0},WG=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","slotProps","clearButton","headerFilterMenu"];function io(e){const{item:t,applyValue:n,type:r,apiRef:s,focusElementRef:i,tabIndex:a,disabled:l,slotProps:c,clearButton:u,headerFilterMenu:d}=e,p=Te(e,WG),g=c?.root,h=On(),[y,m]=f.useState(zb(t.value)),[b,C]=f.useState(!1),w=dt(),S=De(),P=f.useCallback(x=>{const M=zb(x.target.value);m(M),C(!0),h.start(S.filterDebounceMs,()=>{const k=H({},t,{value:r==="number"&&!Number.isNaN(Number(M))?Number(M):M,fromInput:w});n(k),C(!1)})},[h,S.filterDebounceMs,t,r,w,n]);return f.useEffect(()=>{(t.fromInput!==w||t.value==null)&&m(zb(t.value))},[w,t]),v.jsxs(f.Fragment,{children:[v.jsx(S.slots.baseTextField,H({id:w,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:y??"",onChange:P,type:r||"text",disabled:l,slotProps:H({},g?.slotProps,{input:H({endAdornment:b?v.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):null},g?.slotProps?.input),htmlInput:H({tabIndex:a},g?.slotProps?.htmlInput)}),inputRef:i},S.slotProps?.baseTextField,p,g)),d,u]})}function zb(e){if(!(e==null||e===""))return String(e)}process.env.NODE_ENV!=="production"&&(io.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 jb(e){return typeof e=="number"&&!Number.isNaN(e)}function UG(e){return typeof e=="function"}function Gb(e){return typeof e=="object"&&e!==null}function qG(){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 of(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const zi=(e,t,n)=>Math.max(t,Math.min(n,e));function YG(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 KG(e){const t=YG(e);return(n,r)=>n+(r-n)*t()}function oE(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const Pn=(e,t)=>(...n)=>{e&&t(...n)};function Wb(e){const{item:t,applyValue:n,type:r,apiRef:s,focusElementRef:i,slotProps:a}=e,l=dt(),[c,u]=f.useState([]),[d,p]=f.useState(t.value||[]),g=De();f.useEffect(()=>{const b=t.value??[];p(b.map(String))},[t.value]);const h=f.useCallback((b,C)=>{p(C.map(String)),n(H({},t,{value:[...C.map(w=>r==="number"?Number(w):w)]}))},[n,t,r]),y=f.useCallback((b,C)=>{u(C===""?[]:[C])},[u]),m=g.slots.baseAutocomplete;return v.jsx(m,H({multiple:!0,freeSolo:!0,options:c,id:l,value:d,onChange:h,onInputChange:y,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:i}}},a?.root))}process.env.NODE_ENV!=="production"&&(Wb.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 Xr=(function(e){return e.Cell="cell",e.Row="row",e})(Xr||{}),Vt=(function(e){return e.Edit="edit",e.View="view",e})(Vt||{}),dn=(function(e){return e.Edit="edit",e.View="view",e})(dn||{}),bo=(function(e){return e.And="and",e.Or="or",e})(bo||{});class XG{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 ZG{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 Gs=e=>e.type==="include"?new XG(e):new ZG(e);var fs=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e})(fs||{}),Or=(function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(Or||{}),Ws=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e})(Ws||{}),Zr=(function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(Zr||{});function rE(e){return e.field!==void 0}const rf={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},nu=()=>({items:[],logicOperator:bo.And,quickFilterValues:[],quickFilterLogicOperator:bo.And});function sE(e){return{current:e.current.getPublicApi()}}let Nn=(function(e){return e.LEFT="left",e.RIGHT="right",e})({});const sf={left:[],right:[]},iE=_t(e=>e.isRtl),aE=_t(e=>e.props.listView??!1),lE=_t(e=>e.listViewColumn),kr=_t(e=>e.columns),mr=Ne(kr,e=>e.orderedFields),Qr=Ne(kr,e=>e.lookup),Ko=Ot(mr,Qr,(e,t)=>e.map(n=>t[n])),Xo=Ne(kr,e=>e.columnVisibilityModel),QG=Ne(kr,e=>e.initialColumnVisibilityModel),hn=Ot(Ko,Xo,aE,lE,(e,t,n,r)=>n&&r?[r]:e.filter(s=>t[s.field]!==!1)),ol=Ot(hn,e=>e.map(t=>t.field)),ji=_t(e=>e.pinnedColumns),JG=Ot(ji,mr,iE,(e,t,n)=>cE(e,t,n)),rl=Ot(kr,ji,ol,iE,aE,(e,t,n,r,s)=>{if(s)return sf;const i=cE(t,n,r);return{left:i.left.map(l=>e.lookup[l]),right:i.right.map(l=>e.lookup[l])}});function cE(e,t,n){if(!Array.isArray(e.left)&&!Array.isArray(e.right)||e.left?.length===0&&e.right?.length===0)return sf;const r=(l,c)=>Array.isArray(l)?l.filter(u=>c.includes(u)):[],s=r(e.left,t),i=t.filter(l=>!s.includes(l)),a=r(e.right,i);return n?{left:a,right:s}:{left:s,right:a}}const Us=Ot(hn,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),uE=Ot(Ko,e=>e.filter(t=>t.filterable)),dE=Ot(Ko,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),eW=Ot(Ko,e=>e.some(t=>t.colSpan!==void 0));let ou;function tW(){if(ou!==void 0)return ou;try{ou=new Function("return true")()}catch{ou=!1}return ou}const Ub=(e,t)=>{const n=H({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Qr(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},qb=(e,t,n)=>{const r=e.items.length>1;let s;r&&t?(xn(["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&&xn("MUI X: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),a&&xn("MUI X: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),a||i?H({},e,{items:s.map(l=>Ub(l,n))}):e.items!==s?H({},e,{items:s}):e},pE=(e,t,n)=>r=>H({},r,{filterModel:qb(e,t,n)}),ru=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,fE=(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=ru(s));const a=H({},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=sE(n),d=c.getApplyFilterFn(a,r);return typeof d!="function"?null:{item:a,fn:p=>{let g=t(p,r);return i&&(g=ru(g)),d(g,p,r,u)}}};let hE=1;const nW=(e,t,n,r)=>{const{items:s}=e,i=s.map(c=>fE(c,t,n)).filter(c=>!!c);if(i.length===0)return null;if(r||!tW())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(hE)));return hE+=1,(c,u)=>a(i,c,u)},gE=e=>e.quickFilterExcludeHiddenColumns??!0,oW=(e,t,n)=>{const r=e.quickFilterValues?.filter(Boolean)??[];if(r.length===0)return null;const s=mr(n),i=Xo(n);let a;gE(e)?a=s.filter(d=>i[d]!==!1):a=s;const l=[],{ignoreDiacritics:c}=n.current.rootProps,u=sE(n);return a.forEach(d=>{const p=n.current.getColumn(d),g=p?.getApplyQuickFilterFn;g&&l.push({column:p,appliers:r.map(h=>{const y=c?ru(h):h;return{fn:g(y,p,u)}})})}),function(p,g){const h={};e:for(let y=0;y<r.length;y+=1){const m=r[y];for(let b=0;b<l.length;b+=1){const{column:C,appliers:w}=l[b],{field:S}=C;if(g&&!g(S))continue;const P=w[y];let x=t(p,C);if(P.fn===null)continue;if(c&&(x=ru(x)),P.fn(x,p,C,u)){h[m]=!0;continue e}}h[m]=!1}return h}},rW=(e,t,n,r)=>{const s=nW(e,t,n,r),i=oW(e,t,n);return function(l,c,u){u.passingFilterItems=s?.(l,c)??null,u.passingQuickFilterValues=i?.(l,c)??null}},mE=e=>e!=null,sW=(e,t,n,r)=>(e.cleanedFilterItems||(e.cleanedFilterItems=r.filter(s=>fE(s,t,n)!==null)),e.cleanedFilterItems),bE=(e,t,n,r,s,i)=>{const a=sW(i,r,s,n.items),l=e.filter(mE),c=t.filter(mE);if(l.length>0){const u=p=>l.some(g=>g[p.id]);if((n.logicOperator??nu().logicOperator)===bo.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??nu().quickFilterLogicOperator)===bo.And){if(!n.quickFilterValues.every(u))return!1}else if(!n.quickFilterValues.some(u))return!1}return!0},iW=e=>{if(!e)return null;const t=new RegExp(of(e),"i");return(n,r,s,i)=>{let a=i.current.getRowFormattedValue(r,s);return i.current.ignoreDiacritics&&(a=ru(a)),a!=null?t.test(a.toString()):!1}},yE=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),s=new RegExp(of(r),"i");return i=>{if(i==null)return t;const a=s.test(String(i));return t?!a:a}},vE=(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}},CE=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:GG,type:"string",align:"left",filterOperators:((e=!1)=>[{value:"contains",getApplyFilterFn:yE(e,!1),InputComponent:io},{value:"doesNotContain",getApplyFilterFn:yE(e,!0),InputComponent:io},{value:"equals",getApplyFilterFn:vE(e,!1),InputComponent:io},{value:"doesNotEqual",getApplyFilterFn:vE(e,!0),InputComponent:io},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${of(n)}.*$`,"i");return s=>s!=null?r.test(s.toString()):!1},InputComponent:io},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${of(n)}$`,"i");return s=>s!=null?r.test(s.toString()):!1},InputComponent:io},{value:"isEmpty",getApplyFilterFn:CE(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:CE(!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:Wb}])(),renderEditCell:ZP,getApplyQuickFilterFn:iW};function wE(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const Gi=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",aW=e=>!!e.key,SE=e=>e==="Tab"||e==="Escape";function xE(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function lW(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const Yb=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(Yb.displayName="GridConfigurationContext");const af=()=>{const e=f.useContext(Yb);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},cW="MuiDataGridVariables",lf=f.createContext({className:"unset",tag:v.jsx("style",{href:"/unset"})});process.env.NODE_ENV!=="production"&&(lf.displayName="CSSVariablesContext");function PE(){return f.useContext(lf).className}function uW(){return f.useContext(lf)}function dW(e){const t=af(),n=De(),r=t.hooks.useCSSVariables(),s=f.useMemo(()=>{const i=`${cW}-${r.id}`,a=`.${i}{${pW(r.variables)}}`,l=v.jsx("style",{href:`/${i}`,nonce:n.nonce,children:a});return{className:i,tag:l}},[n.nonce,r]);return v.jsx(lf.Provider,{value:s,children:e.children})}function pW(e){let t="";for(const n in e)Object.hasOwn(e,n)&&e[n]!==void 0&&(t+=`${n}:${e[n]};`);return t}const fW=["open","target","onClose","children","position","className","onExited"],hW=e=>{const{classes:t}=e;return de({root:["menu"]},ot,t)},gW=Z(Kr,{name:"MuiDataGrid",slot:"Menu"})({zIndex:Ie.zIndex.menu,[`& .${j.menuList}`]:{outline:0}});function sl(e){const{open:t,target:n,onClose:r,children:s,position:i,className:a,onExited:l}=e,c=Te(e,fW),u=tt(),d=De(),p=hW(d),g=PE(),h=f.useRef(null);ht(()=>{t?h.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(h.current?.focus?.(),h.current=null)},[t]),f.useEffect(()=>{const b=t?"menuOpen":"menuClose";u.current.publishEvent(b,{target:n})},[u,t,n]);const y=b=>{b.target&&(n===b.target||n?.contains(b.target))||r(b)},m=b=>{SE(b.key)&&r(b)};return v.jsx(gW,H({as:d.slots.basePopper,className:ie(p.root,a,g),ownerState:d,open:t,target:n,transition:!0,placement:i,onClickAway:y,onExited:l,clickAwayMouseEvent:"onMouseDown",onKeyDown:m},c,d.slotProps?.basePopper,{children:s}))}process.env.NODE_ENV!=="production"&&(sl.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:ar});const mW=["label","icon","showInMenu","onClick"],bW=["label","icon","showInMenu","onClick","closeMenuOnClick","closeMenu"],EE=Xe((e,t)=>{const n=De();if(!e.showInMenu){const{label:d,icon:p,onClick:g}=e,h=Te(e,mW),y=m=>{g?.(m)};return v.jsx(n.slots.baseIconButton,H({size:"small",role:"menuitem","aria-label":d},h,{onClick:y},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=Te(e,bW),u=d=>{i?.(d),a&&l?.()};return v.jsx(n.slots.baseMenuItem,H({ref:t},c,{onClick:u,iconStart:s,children:r}))});process.env.NODE_ENV!=="production"&&(EE.displayName="GridActionsCellItem");const yW=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","children","suppressChildrenValidation"],vW=e=>typeof e.getActions=="function";function IE(e){const{hasFocus:t,tabIndex:n,position:r="bottom-end",children:s,suppressChildrenValidation:i}=e,a=Te(e,yW),[l,c]=f.useState(-1),[u,d]=f.useState(!1),p=tt(),g=f.useRef(null),h=f.useRef(null),y=f.useRef(!1),m=f.useRef({}),b=Gt(),C=dt(),w=dt(),S=De(),P=[];f.Children.forEach(s,F=>{if(f.isValidElement(F))if(F.type===f.Fragment)f.Children.forEach(F.props.children,R=>{f.isValidElement(R)&&P.push(R)});else if(F.type===EE||i)P.push(F);else{const R=typeof F.type=="function"?F.type.name:F.type;xn(`MUI X: Invalid child type in \`GridActionsCell\`. Expected \`GridActionsCellItem\` or \`React.Fragment\`, got \`${R}\`.
|
|
329
|
-
If this is intentional, you can suppress this warning by passing the \`suppressChildrenValidation\` prop to \`GridActionsCell\`.`,"error")}});const x=P.filter(F=>!F.props.showInMenu),M=P.filter(F=>F.props.showInMenu),k=x.length+(M.length?1:0);f.useLayoutEffect(()=>{t||Object.entries(m.current).forEach(([F,R])=>{R?.stop({},()=>{delete m.current[F]})})},[t]),f.useEffect(()=>{if(l<0||!g.current||l>=g.current.children.length)return;g.current.children[l].focus({preventScroll:!0})},[l]);const T=P.findIndex(F=>!F.props.disabled);f.useEffect(()=>{t&&l===-1&&c(T),t||(c(-1),y.current=!1)},[t,l,T]),f.useEffect(()=>{l>=k&&c(k-1)},[l,k]);const O=()=>{d(!0),c(k-1),y.current=!0},I=()=>{d(!1)},D=F=>{F.stopPropagation(),F.preventDefault(),u?I():O()},E=F=>R=>{m.current[F]=R},N=(F,R)=>B=>{c(F),y.current=!0,R&&R(B)},L=F=>{if(k<=1)return;const R=(_,V)=>{if(_<0||_>P.length)return _;const z=(V==="left"?-1:1)*(b?-1:1);return P[_+z]?.props.disabled?R(_+z,V):_+z};let B=l;F.key==="ArrowRight"?B=R(l,"right"):F.key==="ArrowLeft"&&(B=R(l,"left")),!(B<0||B>=k)&&B!==l&&(F.preventDefault(),F.stopPropagation(),c(B))},$=k>0?{role:"menu",onKeyDown:L}:void 0;return v.jsxs("div",H({ref:g,tabIndex:-1,className:j.actionsCell},$,a,{children:[x.map((F,R)=>f.cloneElement(F,{key:R,touchRippleRef:E(R),onClick:N(R,F.props.onClick),tabIndex:l===R?n:-1})),M.length>0&&w&&v.jsx(S.slots.baseIconButton,H({ref:h,id:w,"aria-label":p.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?C:void 0,role:"menuitem",size:"small",onClick:D,touchRippleRef:E(w),tabIndex:l===x.length?n:-1},S.slotProps?.baseIconButton,{children:v.jsx(S.slots.moreActionsIcon,{fontSize:"small"})})),M.length>0&&v.jsx(sl,{open:u,target:h.current,position:r,onClose:I,children:v.jsx(S.slots.baseMenuList,{id:C,className:j.menuList,"aria-labelledby":w,autoFocusItem:!0,children:M.map((F,R)=>f.cloneElement(F,{key:R,closeMenu:I}))})})]}))}process.env.NODE_ENV!=="production"&&(IE.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 CW(e){const{colDef:t,id:n}=e,r=tt();if(!vW(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const s=t.getActions(r.current.getRowParams(n));return v.jsx(IE,H({suppressChildrenValidation:!0},e,{children:s}))}const TE=e=>v.jsx(CW,H({},e));process.env.NODE_ENV!=="production"&&(TE.displayName="renderActionsCell");const cf="actions",wW=H({},Fo,{sortable:!1,filterable:!1,aggregable:!1,chartable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:TE,getApplyQuickFilterFn:()=>null}),Kb="__tree_data_group__",ME="__row_group_by_columns_group__",ao="__detail_panel_toggle__";let mt=(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 SW=["formattedValue","colDef","cellMode","row","api","id","value","rowNode","field","hasFocus","tabIndex","isEditable"],xW=Z("div",{name:"MuiDataGrid",slot:"FooterCell"})({fontWeight:Ie.typography.fontWeight.medium,color:Ie.colors.foreground.accent}),PW=e=>{const{classes:t}=e;return de({root:["footerCell"]},ot,t)};function EW(e){const{formattedValue:t}=e,n=Te(e,SW),s={classes:De().classes},i=PW(s);return v.jsx(xW,H({ownerState:s,className:i.root},n,{children:t}))}const OE=f.memo(EW);process.env.NODE_ENV!=="production"&&(OE.displayName="GridFooterCell");const IW=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],TW=e=>{const{classes:t}=e;return de({root:["booleanCell"]},ot,t)};function kE(e){const{value:t,rowNode:n}=e,r=Te(e,IW),s=tt(),i=De(),a={classes:i.classes},l=TW(a),u=ue(s,js)>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,H({fontSize:"small",className:l.root,titleAccess:s.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}process.env.NODE_ENV!=="production"&&(kE.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 DE=f.memo(kE);process.env.NODE_ENV!=="production"&&(DE.displayName="GridBooleanCell");const FE=e=>{if(e.field!==ME&&tl(e.rowNode)){const t=e.aggregation;return t?t.position==="footer"?v.jsx(OE,H({},e)):e.formattedValue:""}return v.jsx(DE,H({},e))};process.env.NODE_ENV!=="production"&&(FE.displayName="renderBooleanCell");const MW=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],OW=e=>{const{classes:t}=e;return de({root:["editBooleanCell"]},ot,t)};function NE(e){const{id:t,value:n,field:r,className:s,hasFocus:i,onValueChange:a}=e,l=Te(e,MW),c=tt(),u=f.useRef(null),d=dt(),[p,g]=f.useState(n),h=De(),y={classes:h.classes},m=OW(y),b=f.useCallback(async C=>{const w=C.target.checked;a&&await a(C,w),g(w),await c.current.setEditCellValue({id:t,field:r,value:w},C)},[c,r,t,a]);return f.useEffect(()=>{g(n)},[n]),ht(()=>{i&&u.current.focus()},[i]),v.jsx("label",H({htmlFor:d,className:ie(m.root,s)},l,{children:v.jsx(h.slots.baseCheckbox,H({id:d,inputRef:u,checked:!!p,onChange:b,size:"small"},h.slotProps?.baseCheckbox))}))}process.env.NODE_ENV!=="production"&&(NE.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 RE=e=>v.jsx(NE,H({},e));process.env.NODE_ENV!=="production"&&(RE.displayName="renderEditBooleanCell");const kW=["item","applyValue","apiRef","focusElementRef","isFilterActive","headerFilterMenu","clearButton","tabIndex","slotProps"];function Xb(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:s,headerFilterMenu:i,clearButton:a,tabIndex:l,slotProps:c}=e,u=Te(e,kW),[d,p]=f.useState(uf(t.value)),g=De(),h=dt(),y=dt(),m=g.slotProps?.baseSelect||{},b=m.native??!1,C=g.slotProps?.baseSelectOption||{},w=f.useCallback(x=>{const M=uf(x.target.value);p(M),n(H({},t,{value:M}))},[n,t]);f.useEffect(()=>{p(uf(t.value))},[t.value]);const S=c?.root.label??r.current.getLocaleText("filterPanelInputLabel"),P=c?.root.slotProps;return v.jsxs(f.Fragment,{children:[v.jsxs(g.slots.baseSelect,H({fullWidth:!0,labelId:h,id:y,label:S,value:d===void 0?"":String(d),onChange:w,native:b,slotProps:{htmlInput:H({ref:s,tabIndex:l},P?.htmlInput)}},m,u,c?.root,{children:[v.jsx(g.slots.baseSelectOption,H({},C,{native:b,value:"",children:r.current.getLocaleText("filterValueAny")})),v.jsx(g.slots.baseSelectOption,H({},C,{native:b,value:"true",children:r.current.getLocaleText("filterValueTrue")})),v.jsx(g.slots.baseSelectOption,H({},C,{native:b,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]})),i,a]})}function uf(e){if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1}process.env.NODE_ENV!=="production"&&(Xb.propTypes={apiRef:o.shape({current:o.object.isRequired}).isRequired,applyValue:o.func.isRequired,className:o.string,clearButton:o.node,disabled:o.bool,focusElementRef:At,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 DW=()=>[{value:"is",getApplyFilterFn:e=>{const t=uf(e.value);return t===void 0?null:n=>!!n===t},InputComponent:Xb}],FW=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),NW=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}},$E=H({},Fo,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:FE,renderEditCell:RE,sortComparator:tE,valueFormatter:FW,filterOperators:DW(),getApplyQuickFilterFn:()=>null,chartable:!1,pastedValueParser:e=>NW(e)});function df(e){for(const t in e)return!1;return!0}const LE=_t(e=>e.sorting),su=Ne(LE,e=>e.sortedRows),Zb=Ot(su,mo,yt,(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&&tl(a)&&r.push({id:s,model:{[Bi]:s}})}return r},[])),Un=Ne(LE,e=>e.sortModel),RW=Ot(Un,e=>e.reduce((n,r,s)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?s+1:void 0},n),{}));Ot(su,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const pf=_t(e=>e.filter),gn=Ne(pf,e=>e.filterModel),AE=Ne(gn,e=>e.quickFilterValues),$W=_t(e=>e.visibleRowsLookup),il=Ne(pf,e=>e.filteredRowsLookup),LW=Ne(pf,e=>e.filteredChildrenCountLookup),AW=Ne(pf,e=>e.filteredDescendantCountLookup),Wi=Ot($W,Zb,(e,t)=>df(e)?t:t.filter(n=>e[n.id]!==!1)),Jr=Ot(Wi,e=>e.map(t=>t.id)),Qb=Ot(il,Zb,(e,t)=>df(e)?t:t.filter(n=>e[n.id]!==!1)),Jb=Ot(Qb,e=>e.map(t=>t.id)),VW=Ot(Jr,yt,(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},{})}),_W=Ot(Qb,yt,js,(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},[[]])),VE=Ne(_W,e=>e[0]??[]),ey=Ne(Wi,e=>e.length),al=Ne(VE,e=>e.length),_E=Ne(Qb,e=>e.length);Ne(_E,al,(e,t)=>e-t);const ty=Ot(gn,Qr,(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})),BW=Ot(ty,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),Ui=Ot(Jr,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null))),Dr=_t(e=>e.rowSelection),iu=Ot(Dr,Gs),ff=Ne(Dr,_E,(e,t)=>e.type==="include"?e.ids.size:t-e.ids.size),BE=Ot(Dr,mo,Vi,(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}),Zo=_t((e,t)=>Bi in t?t[Bi]:e.props.getRowId?e.props.getRowId(t):t.id),HW=_t(e=>e.props.isRowSelectable),zW={parents:!0,descendants:!0};function HE(e,t){const n=yt(e),r=su(e),s=il(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 jW=Ne(Ko,yt,il,iu,mo,HW,(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=y=>{if(n[y]===!1||p&&g)return;const m=t[y];m?.type==="group"&&m.children.forEach(h);const b={id:y,row:s[y],columns:e};(!(typeof i=="function"&&s[y])||i(b))&&(r.has(y)?p=!0:g=!0)};return h(a),{isIndeterminate:p&&g,isChecked:l?p&&!g:!1,isSelectable:d}});function ny(e){return e.signature===Do.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const GW=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==nt;){const s=e[r];if(!s)return n;n.push(r),r=s.parent}return n},WW=(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)},au=(e,t,n,r,s,i,a=iu(e))=>{const l=il(e),c=new Set([]);if(!(!r&&!s||l[n]===!1)&&(r&&t[n]?.type==="group"&&HE(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=WW(t,l,g),y=h.every(m=>e.current.isRowSelectable(m)?u(m):!0);if(h.length===0||y){const b=t[g]?.parent;b!=null&&b!==nt&&e.current.isRowSelectable(b)&&(i(b),c.add(b),d(b))}},p=t[n];if(!p||p.parent===nt)return;d(n)}},zE=(e,t,n,r,s,i)=>{const a=iu(e);!s&&!r||(s&&GW(t,n).forEach(c=>{a.has(c)&&i(c)}),r&&t[n]?.type==="group"&&HE(e,n).forEach(u=>{i(u)}))},UW=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],qW=e=>{const{classes:t}=e;return de({root:["checkboxInput"]},ot,t)},oy=Xe(function(t,n){const{field:r,id:s,rowNode:i,tabIndex:a}=t,l=Te(t,UW),c=tt(),u=De(),d={classes:u.classes},p=qW(d),{isIndeterminate:g,isChecked:h,isSelectable:y}=ue(c,jW,{groupId:s,autoSelectParents:u.rowSelectionPropagation?.parents??!1}),m=!y,b=x=>{if(m)return;const M={value:x.target.checked,id:s};c.current.publishEvent("rowSelectionCheckboxChange",M,x)};f.useLayoutEffect(()=>{if(a===0&&!m){const x=c.current.getCellElement(s,r);x&&(x.tabIndex=-1)}},[c,a,s,r,m]);const C=fe(x=>{x.key===" "&&x.stopPropagation()}),w=fe(x=>{if(m){x.preventDefault();return}}),S=fe(()=>{});if(i.type==="footer"||i.type==="pinnedRow")return null;const P=c.current.getLocaleText(h&&!g?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return v.jsx(u.slots.baseCheckbox,H({tabIndex:m?-1:a,checked:h&&!g,onChange:b,onClick:w,onMouseDown:S,className:ie(p.root,m&&"Mui-disabled"),disabled:m,material:{disableRipple:m},slotProps:{htmlInput:{"aria-disabled":m||void 0,"aria-label":P,name:"select_row"}},onKeyDown:C,indeterminate:g},u.slotProps?.baseCheckbox,l,{ref:n}))});process.env.NODE_ENV!=="production"&&(oy.displayName="GridCellCheckboxForwardRef"),process.env.NODE_ENV!=="production"&&(oy.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 YW=oy,hf=_t(e=>e.focus),yo=Ne(hf,e=>e.cell),KW=Ne(hf,e=>e.columnHeader),XW=Ne(hf,e=>e.columnHeaderFilter),gf=Ne(hf,e=>e.columnGroupHeader),mf=_t(e=>e.tabIndex),ry=Ne(mf,e=>e.cell),jE=Ne(mf,e=>e.columnHeader),ZW=Ne(mf,e=>e.columnHeaderFilter),QW=Ne(mf,e=>e.columnGroupHeader),JW=100,eU=e=>e?0:100,GE=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,WE=e=>({page:0,pageSize:e?0:100}),tU=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),UE=(e,t)=>{if(t===Do.DataGrid&&e>JW)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
|
-
`))},nU=-1,ll=_t(e=>e.pagination),qE=Ne(ll,e=>e.enabled&&e.paginationMode==="client"),En=Ne(ll,e=>e.paginationModel),qs=Ne(ll,e=>e.rowCount),lu=Ne(ll,e=>e.meta),oU=Ne(En,e=>e.page),rU=Ne(En,e=>e.pageSize),YE=Ne(En,qs,(e,t)=>GE(t,e.pageSize,e.page)),sy=Ot(qE,En,yt,js,Wi,VE,(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===nU?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(y=>y.id===u.id);let g=p,h=0;for(;g<s.length&&h<=d;){const y=s[g],m=n[y.id]?.depth;m===void 0?g+=1:((h<d||m>0)&&(g+=1),m===0&&(h+=1))}return{firstRowIndex:p,lastRowIndex:g-1}}),sU=Ot(Wi,sy,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),KE=Ot(Jr,sy,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),cu=Ot(qE,sy,sU,Wi,(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)}),iU=["field","colDef"],aU=e=>{const{classes:t}=e;return de({root:["checkboxInput"]},ot,t)},iy=Xe(function(t,n){const r=Te(t,iU),[,s]=f.useState(!1),i=tt(),a=De(),l={classes:a.classes},c=aU(l),u=ue(i,jE),d=ue(i,Dr),p=ue(i,Jr),g=ue(i,KE),h=f.useMemo(()=>{const k=a.isRowSelectable;if(typeof k!="function"||d.type==="exclude")return d;const T={type:"include",ids:new Set};for(const O of d.ids)a.keepNonExistentRowsSelected&&T.ids.add(O),i.current.getRow(O)&&k(i.current.getRowParams(O))&&T.ids.add(O);return T},[i,a.isRowSelectable,a.keepNonExistentRowsSelected,d]),y=f.useMemo(()=>{const k=!a.pagination||!a.checkboxSelectionVisibleOnly||a.paginationMode==="server"?p:g,T=new Set;for(let O=0;O<k.length;O+=1){const I=k[O];i.current.getRow(I)&&i.current.isRowSelectable(I)&&T.add(I)}return T},[i,a.pagination,a.paginationMode,a.checkboxSelectionVisibleOnly,g,p]),m=f.useMemo(()=>{const k=Gs(h);let T=0;for(const O of y)k.has(O)&&(T+=1);return T},[h,y]),b=f.useMemo(()=>{if(m===0)return!1;const k=Gs(h);for(const T of y)if(!k.has(T))return!0;return!1},[m,h,y]),C=m>0,w=k=>{const T={value:k.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",T)},S=u!==null&&u.field===t.field?0:-1;f.useLayoutEffect(()=>{const k=i.current.getColumnHeaderElement(t.field);S===0&&k&&(k.tabIndex=-1)},[S,i,t.field]);const P=f.useCallback(k=>{k.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!C})},[i,C]),x=f.useCallback(()=>{s(k=>!k)},[]);f.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",x),[i,x]);const M=i.current.getLocaleText(C&&!b?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return v.jsx(a.slots.baseCheckbox,H({indeterminate:b,checked:C&&!b,onChange:w,className:c.root,slotProps:{htmlInput:{"aria-label":M,name:"select_all_rows"}},tabIndex:S,onKeyDown:P,disabled:!ny(a)},a.slotProps?.baseCheckbox,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(iy.displayName="GridHeaderCheckbox"),process.env.NODE_ENV!=="production"&&(iy.propTypes={colDef:o.object.isRequired,field:o.string.isRequired});const Fr="__check__",cl=H({},$E,{type:"custom",field:Fr,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=Zo(r,t);return r.current.isRowSelected(s)},rowSpanValueGetter:(e,t,n,r)=>Zo(r,t),renderHeader:e=>v.jsx(iy,H({},e)),renderCell:e=>v.jsx(YW,H({},e))}),lU=["item","applyValue","type","apiRef","focusElementRef","slotProps","isFilterActive","headerFilterMenu","clearButton","tabIndex","disabled"];function XE(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 hs(e){const{item:t,applyValue:n,type:r,apiRef:s,focusElementRef:i,slotProps:a,headerFilterMenu:l,clearButton:c,tabIndex:u,disabled:d}=e,p=Te(e,lU),g=a?.root.slotProps,h=On(),[y,m]=f.useState(()=>XE(t.value,r)),[b,C]=f.useState(!1),w=dt(),S=De(),P=f.useCallback(x=>{h.clear();const M=x.target.value;m(M),C(!0),h.start(S.filterDebounceMs,()=>{const k=new Date(M);n(H({},t,{value:Number.isNaN(k.getTime())?void 0:k})),C(!1)})},[n,t,S.filterDebounceMs,h]);return f.useEffect(()=>{const x=XE(t.value,r);m(x)},[t.value,r]),v.jsxs(f.Fragment,{children:[v.jsx(S.slots.baseTextField,H({fullWidth:!0,id:w,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:P,type:r||"text",disabled:d,inputRef:i,slotProps:H({},g,{input:H({endAdornment:b?v.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):null},g?.input),htmlInput:H({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:u},g?.htmlInput)})},S.slotProps?.baseTextField,p,a?.root)),l,c]})}process.env.NODE_ENV!=="production"&&(hs.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 ul(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 ZE=e=>[{value:"is",getApplyFilterFn:t=>ul(t,(n,r)=>n===r,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>ul(t,(n,r)=>n!==r,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>ul(t,(n,r)=>n>r,e,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>ul(t,(n,r)=>n>=r,e,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>ul(t,(n,r)=>n<r,e,!0),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>ul(t,(n,r)=>n<=r,e,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],cU=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange","slotProps"],uU=Z(Kr)({fontSize:"inherit"}),dU=e=>{const{classes:t}=e;return de({root:["editInputCell"]},ot,t)};function QE(e){const{id:t,value:n,field:r,colDef:s,hasFocus:i,onValueChange:a,slotProps:l}=e,c=Te(e,cU),u=s.type==="dateTime",d=tt(),p=f.useRef(null),g=f.useMemo(()=>{let P;n==null?P=null:n instanceof Date?P=n:P=new Date((n??"").toString());let x;return P==null||Number.isNaN(P.getTime())?x="":x=new Date(P.getTime()-P.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:P,formatted:x}},[n,u]),[h,y]=f.useState(g),m=De(),b={classes:m.classes},C=dU(b),w=f.useCallback(P=>{if(P==="")return null;const[x,M]=P.split("T"),[k,T,O]=x.split("-"),I=new Date;if(I.setFullYear(Number(k),Number(T)-1,Number(O)),I.setHours(0,0,0,0),M){const[D,E]=M.split(":");I.setHours(Number(D),Number(E),0,0)}return I},[]),S=f.useCallback(async P=>{const x=P.target.value,M=w(x);a&&await a(P,M),y({parsed:M,formatted:x}),d.current.setEditCellValue({id:t,field:r,value:M},P)},[d,r,t,a,w]);return f.useEffect(()=>{y(P=>g.parsed!==P.parsed&&g.parsed?.getTime()!==P.parsed?.getTime()?g:P)},[g]),ht(()=>{i&&p.current.focus()},[i]),v.jsx(uU,H({as:m.slots.baseInput,inputRef:p,fullWidth:!0,className:C.root,type:u?"datetime-local":"date",value:h.formatted,onChange:S},c,l?.root,{slotProps:{htmlInput:H({max:u?"9999-12-31T23:59":"9999-12-31"},l?.root?.slotProps?.htmlInput)}}))}process.env.NODE_ENV!=="production"&&(QE.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 ay=e=>v.jsx(QE,H({},e));process.env.NODE_ENV!=="production"&&(ay.displayName="renderEditDateCell");function JE({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 pU=(e,t,n,r)=>{if(!e)return"";const s=Zo(r,t);return $P(t)&&!(e instanceof Date)?e:(JE({value:e,columnType:"date",rowId:s,field:n.field}),e.toLocaleDateString())},fU=(e,t,n,r)=>{if(!e)return"";const s=Zo(r,t);return $P(t)&&!(e instanceof Date)?e:(JE({value:e,columnType:"dateTime",rowId:s,field:n.field}),e.toLocaleString())},hU=H({},Fo,{type:"date",sortComparator:nE,valueFormatter:pU,filterOperators:ZE(),renderEditCell:ay,pastedValueParser:e=>new Date(e)}),gU=H({},Fo,{type:"dateTime",sortComparator:nE,valueFormatter:fU,filterOperators:ZE(!0),renderEditCell:ay,pastedValueParser:e=>new Date(e)}),Ys=e=>e==null?null:Number(e),mU=H({},Fo,{type:"number",align:"right",headerAlign:"right",sortComparator:tE,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>jb(e)?e.toLocaleString():e||"",filterOperators:[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ys(t)===e.value,InputComponent:io,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ys(t)!==e.value,InputComponent:io,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ys(t)>e.value,InputComponent:io,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ys(t)>=e.value,InputComponent:io,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ys(t)<e.value,InputComponent:io,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ys(t)<=e.value,InputComponent:io,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:Wb,InputComponentProps:{type:"number"}}],getApplyQuickFilterFn:e=>e==null||Number.isNaN(e)||e===""?null:t=>Ys(t)===Ys(e)});function uu(e){return e?.type==="singleSelect"}function qi(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(H({field:e.field},t)):e.valueOptions}function bf(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 bU=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","slotProps"];function yU(e){return"key"in e&&!!e.key}function eI(e){const t=De(),{id:n,value:r,field:s,row:i,colDef:a,hasFocus:l,error:c,onValueChange:u,initialOpen:d=t.editMode===Xr.Cell,slotProps:p}=e,g=Te(e,bU),h=tt(),y=f.useRef(null),m=f.useRef(null),[b,C]=f.useState(d),S=(t.slotProps?.baseSelect||{}).native??!1;if(ht(()=>{l&&m.current?.focus()},[l]),!uu(a))return null;const P=qi(a,{id:n,row:i});if(!P)return null;const x=a.getOptionValue,M=a.getOptionLabel,k=async I=>{if(!uu(a)||!P)return;C(!1);const D=I.target,E=bf(D.value,P,x);u&&await u(I,E),await h.current.setEditCellValue({id:n,field:s,value:E},I)},T=(I,D)=>{if(t.editMode===Xr.Row){C(!1);return}if(D==="backdropClick"||I.key==="Escape"){const E=h.current.getCellParams(n,s);h.current.publishEvent("cellEditStop",H({},E,{reason:I.key==="Escape"?Or.escapeKeyDown:Or.cellFocusOut}))}},O=I=>{yU(I)&&I.key==="Enter"||C(!0)};return!P||!a?null:v.jsx(t.slots.baseSelect,H({ref:y,value:r,onChange:k,open:b,onOpen:O,onClose:T,error:c,native:S,fullWidth:!0,slotProps:{htmlInput:{ref:m}}},g,p?.root,t.slotProps?.baseSelect,{children:P.map(I=>{const D=x(I);return ge.createElement(t.slots.baseSelectOption,H({},t.slotProps?.baseSelectOption||{},{native:S,key:D,value:D}),M(I))})}))}process.env.NODE_ENV!=="production"&&(eI.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 tI=e=>v.jsx(eI,H({},e));process.env.NODE_ENV!=="production"&&(tI.displayName="renderEditSingleSelectCell");const vU=["item","applyValue","type","apiRef","focusElementRef","tabIndex","isFilterActive","clearButton","headerFilterMenu","slotProps"],CU=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:s,baseSelectOptionProps:i})=>["",...qi(e)||[]].map(l=>{const c=r(l);let u=n(l);return u===""&&(u=" "),ge.createElement(t,H({},i,{native:s,key:c,value:c}),u)});function yf(e){const{item:t,applyValue:n,type:r,apiRef:s,focusElementRef:i,tabIndex:a,clearButton:l,headerFilterMenu:c,slotProps:u}=e,d=Te(e,vU),p=t.value??"",g=dt(),h=dt(),y=De(),m=y.slotProps?.baseSelect?.native??!1,b=s.current.getColumn(t.field),C=b.getOptionValue,w=b.getOptionLabel,S=f.useMemo(()=>qi(b),[b]),P=f.useCallback(M=>{let k=M.target.value;k=bf(k,S,C),n(H({},t,{value:k}))},[S,C,n,t]);if(!b||!uu(b))return null;const x=u?.root.label??s.current.getLocaleText("filterPanelInputLabel");return v.jsxs(f.Fragment,{children:[v.jsx(y.slots.baseSelect,H({fullWidth:!0,id:g,label:x,labelId:h,value:p,onChange:P,slotProps:{htmlInput:H({tabIndex:a,ref:i,type:r||"text",placeholder:u?.root.placeholder??s.current.getLocaleText("filterPanelInputPlaceholder")},u?.root.slotProps?.htmlInput)},native:m},y.slotProps?.baseSelect,d,u?.root,{children:CU({column:b,OptionComponent:y.slots.baseSelectOption,getOptionLabel:w,getOptionValue:C,isSelectNative:m,baseSelectOptionProps:y.slotProps?.baseSelectOption})})),c,l]})}process.env.NODE_ENV!=="production"&&(yf.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 wU=["item","applyValue","type","apiRef","focusElementRef","slotProps"];function nI(e){const{item:t,applyValue:n,type:r,apiRef:s,focusElementRef:i,slotProps:a}=e,l=Te(e,wU),c=dt(),u=De(),d=s.current.getColumn(t.field),p=d.getOptionValue,g=d.getOptionLabel,h=f.useCallback((w,S)=>p(w)===p(S),[p]),y=f.useMemo(()=>qi(d)||[],[d]),m=f.useMemo(()=>Array.isArray(t.value)?t.value.reduce((w,S)=>{const P=y.find(x=>p(x)===S);return P!=null&&w.push(P),w},[]):[],[p,t.value,y]),b=f.useCallback((w,S)=>{n(H({},t,{value:S.map(p)}))},[n,t,p]);if(!d||!uu(d))return null;const C=u.slots.baseAutocomplete;return v.jsx(C,H({multiple:!0,options:y,isOptionEqualToValue:h,id:c,value:m,onChange:b,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"&&(nI.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 dl=e=>e==null||!Gb(e)?e:e.value,SU=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>dl(t)===dl(e.value),InputComponent:yf},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>dl(t)!==dl(e.value),InputComponent:yf},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(dl);return n=>t.includes(dl(n))},InputComponent:nI}],xU=e=>typeof e[0]=="object",PU=H({},Fo,{type:"singleSelect",getOptionLabel:e=>Gb(e)?e.label:String(e),getOptionValue:e=>Gb(e)?e.value:e,valueFormatter(e,t,n,r){const s=Zo(r,t);if(!uu(n))return"";const i=qi(n,{id:s,row:t});if(e==null)return"";if(!i)return e;if(!xU(i))return n.getOptionLabel(e);const a=i.find(l=>n.getOptionValue(l)===e);return a?n.getOptionLabel(a):""},renderEditCell:tI,filterOperators:SU(),pastedValueParser:(e,t,n)=>{const r=n,s=qi(r)||[],i=r.getOptionValue;if(s.find(l=>i(l)===e))return e}}),EU="string",IU=()=>({string:Fo,number:mU,date:hU,dateTime:gU,boolean:$E,singleSelect:PU,[cf]:wW,custom:Fo}),ly=_t(e=>e.headerFiltering),oI=Ne(ly,e=>e?.enabled??!1),rI=Ne(ly,e=>e.editing),cy=Ne(ly,e=>e.menuOpen),vf=_t(e=>e.columnGrouping),sI=Ot(vf,e=>e?.unwrappedGroupingModel??{}),iI=Ot(vf,e=>e?.lookup??{}),TU=Ot(vf,e=>e?.headerStructure??[]),du=Ne(vf,e=>e?.maxDepth??0),aI=["maxWidth","minWidth","width","flex"],uy=IU();function MU({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 dy=(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=zi(u.width||Fo.width,u.minWidth||Fo.minWidth,u.maxWidth||Fo.maxWidth),s+=d),u.computedWidth!==d&&(u=H({},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=MU({initialFreeSpace:l,totalFlexUnits:r,flexColumns:i});Object.keys(c).forEach(u=>{n[u]=H({},n[u],{computedWidth:c[u].computedWidth})})}return H({},e,{lookup:n})},OU=(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=H({},e.lookup);for(let d=0;d<s.length;d+=1){const p=s[d],g=H({},c[p],{hasBeenResized:!0});Object.entries(r[p]).forEach(([h,y])=>{g[h]=y===-1?1/0:y}),c[p]=g}return H({},e,{orderedFields:l,lookup:c})};function py(e){let t=uy[EU];return e&&uy[e]&&(t=uy[e]),t}const pl=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=Xo(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=kr(e);l={orderedFields:s?[]:[...p.orderedFields],lookup:s?{}:H({},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=H({},py(p.type),{field:g,hasBeenResized:!1}),l.orderedFields.push(g)):s&&l.orderedFields.push(g),h&&h.type!==p.type&&(h=H({},py(p.type),{field:g}));let y=h.hasBeenResized;aI.forEach(C=>{p[C]!==void 0&&(y=!0,p[C]===-1&&(p[C]=1/0))});const m=H({},py(p.type),{hasBeenResized:y,field:g});let b;for(b in p)p[b]!==void 0&&b!=="field"&&(m[b]=p[b]);l.lookup[g]=ai(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=OU(u,n);return dy(d,e.current.getRootDimensions?.()??void 0)};function Cf(e,t){if(t.listView)return 0;const n=tu(e),r=du(e),s=oI(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 wf=1,lI=1.5,kU=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return de(r,ot,n)},DU=xt("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${j["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${j["scrollArea--right"]}`]:t["scrollArea--right"]},{[`&.${j["scrollArea--up"]}`]:t["scrollArea--up"]},{[`&.${j["scrollArea--down"]}`]:t["scrollArea--down"]},t.scrollArea]})(()=>({position:"absolute",zIndex:101,[`&.${j["scrollArea--left"]}`]:{top:0,left:0,width:20,bottom:0},[`&.${j["scrollArea--right"]}`]:{top:0,right:0,width:20,bottom:0},[`&.${j["scrollArea--up"]}`]:{top:0,left:0,right:0,height:20},[`&.${j["scrollArea--down"]}`]:{bottom:0,left:0,right:0,height:20}})),FU=Ne(fn,(e,t)=>t==="left"?e.leftPinnedWidth:t==="right"?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function NU(e){const t=tt(),[n,r]=f.useState("none");return Pe(t,"columnHeaderDragStart",()=>r("horizontal")),Pe(t,"columnHeaderDragEnd",()=>r("none")),Pe(t,"rowDragStart",()=>r("vertical")),Pe(t,"rowDragEnd",()=>r("none")),n==="none"?null:n==="horizontal"?v.jsx(RU,H({},e)):v.jsx($U,H({},e))}function RU(e){const{scrollDirection:t,scrollPosition:n}=e,r=f.useRef(null),s=tt(),i=On(),a=ue(s,tu),l=ue(s,eu),c=ue(s,FU,t),u=()=>{const m=fn(s);if(t==="left")return n.current.left>0;if(t==="right"){const b=l-m.viewportInnerSize.width;return n.current.left<b}return!1},d=De(),p=Cf(s,d),g=Math.floor(d.columnHeaderHeight*a),h=H({height:g,top:p-g},t==="left"?{left:c}:{},t==="right"?{right:c}:{}),y=fe(m=>{let b;if(m.preventDefault(),t==="left")b=m.clientX-r.current.getBoundingClientRect().right;else if(t==="right")b=Math.max(1,m.clientX-r.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");b=(b-wf)*lI+wf,i.start(0,()=>{s.current.scroll({left:n.current.left+b,top:n.current.top})})});return v.jsx(fy,H({},e,{ref:r,getCanScrollMore:u,style:h,handleDragOver:y}))}function $U(e){const{scrollDirection:t,scrollPosition:n}=e,r=f.useRef(null),s=tt(),i=On(),a=ue(s,TP),l=()=>{const g=fn(s);if(t==="up")return n.current.top>0;if(t==="down"){const y=(a.currentPageTotalHeight||0)-g.viewportInnerSize.height-(g.hasScrollX?g.scrollbarSize:0);return n.current.top<y}return!1},c=De(),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-wf)*lI+wf,i.start(0,()=>{s.current.scroll({left:n.current.left,top:n.current.top+h})})});return v.jsx(fy,H({},e,{ref:r,getCanScrollMore:l,style:d,handleDragOver:p}))}const fy=Xe(function(t,n){const{scrollDirection:r,getCanScrollMore:s,style:i,handleDragOver:a}=t,l=tt(),[c,u]=f.useState(s),d=De(),p=H({},d,{scrollDirection:r}),g=kU(p);return Pe(l,"scrollPositionChange",()=>{u(s)}),c?v.jsx(DU,{ref:n,className:g.root,ownerState:p,onDragOver:a,style:i}):null});process.env.NODE_ENV!=="production"&&(fy.displayName="GridScrollAreaContent");const Sf=Tr(NU),hy=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(hy.displayName="GridPrivateApiContext");function qn(){const e=f.useContext(hy);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=()=>{},AU=(e,t)=>{const n=f.useRef(!1);ht(()=>n.current||!e?LU:(n.current=!0,t()),[n.current||e])};function rt(e,t,n){const r=f.useRef(!0);ht(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function Rn(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 cI=(e,t,n,r,s)=>{const i=Rn(e,"useNativeEventListener");Nt(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 gs(e){const t=f.useRef(!0);t.current&&(t.current=!1,e())}function VU(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 uI=_t(e=>e.pivoting),Yi=Ne(uI,e=>e?.active),_U=new Map,gy=Ne(uI,e=>e?.initialColumns||_U),dI=(e,t)=>{const n=ue(e,Ja),r=ue(e,ey),s=ue(e,kP),i=ue(e,hn),a=n===0&&s===0,l=ue(e,hG),c=ue(e,Yi),u=!l&&a,d=!l&&n>0&&r===0,p=!l&&i.length===0,g=u&&c;let h=null,y=null;return u&&(h="noRowsOverlay"),p&&(h="noColumnsOverlay"),g&&(h="emptyPivotOverlay"),d&&(h="noResultsOverlay"),l&&(h="loadingOverlay",y=t.slotProps?.loadingOverlay?.[a?"noRowsVariant":"variant"]??(a?"skeleton":"linear-progress")),{overlayType:h,loadingOverlayVariant:y}},xf=_t(e=>e.columnMenu);function BU(){const e=qn(),t=De(),n=ue(e,hn),r=ue(e,BW),s=ue(e,RW),i=ue(e,jE),a=ue(e,()=>ry(e)===null),l=ue(e,QW),c=ue(e,KW),u=ue(e,gf),d=ue(e,du),p=ue(e,xf),g=ue(e,Xo),h=ue(e,TU),y=!(l===null&&i===null&&a),m=e.current.columnHeadersContainerRef;return v.jsx(t.slots.columnHeaders,H({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:y},t.slotProps?.columnHeaders))}const HU=Tr(BU),zU=xt("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),jU=xt("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"}),pI=Xe((e,t)=>{const{ownerState:n}=e,r=De(),i=af().hooks.useGridAriaAttributes();return v.jsxs(jU,H({ownerState:n,className:e.className,tabIndex:-1},i,r.slotProps?.main,{ref:t,children:[v.jsx(zU,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))});process.env.NODE_ENV!=="production"&&(pI.displayName="GridMainContainer");const GU=()=>de({root:["topContainer"]},ot,{}),WU=xt("div")({position:"sticky",zIndex:40,top:0});function UU(e){const t=GU();return v.jsx(WU,H({},e,{className:ie(t.root,j["container--top"]),role:"presentation"}))}const qU=(e,t)=>{const{classes:n}=e;return de({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},ot,n)},YU=xt("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),fI=Xe(function(t,n){const r=De(),s=!r.autoHeight&&t.style?.minHeight==="auto",i=qU(r,s),a={classes:r.classes,overflowedContent:s};return v.jsx(YU,H({},t,{ownerState:a,className:ie(i.root,t.className),ref:n}))});process.env.NODE_ENV!=="production"&&(fI.displayName="GridVirtualScrollerContent");const KU=xt("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),hI=xt("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:Ie.cell.background.pinned}),XU=xt(hI)({left:0}),ZU=xt(hI)({right:0}),QU=xt("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function JU({rowsLength:e}){const t=tt(),{viewportOuterSize:n,minimumSize:r,hasScrollX:s,hasScrollY:i,scrollbarSize:a,leftPinnedWidth:l,rightPinnedWidth:c}=ue(t,fn),u=s?a:0,d=n.height-r.height>0;return u===0&&!d?null:v.jsxs(KU,{className:j.filler,role:"presentation",style:{height:u,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[l>0&&v.jsx(XU,{className:j["filler--pinnedLeft"],style:{width:l}}),v.jsx(QU,{}),c>0&&v.jsx(ZU,{className:j["filler--pinnedRight"],style:{width:c+(i?a:0)}})]})}const eq=Tr(JU),tq=e=>{const{classes:t}=e;return de({root:["virtualScrollerRenderZone"]},ot,t)},nq=xt("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone"})({position:"absolute",display:"flex",flexDirection:"column"}),gI=Xe(function(t,n){const r=De(),s=tq(r);return v.jsx(nq,H({ownerState:r},t,{className:ie(s.root,t.className),ref:n}))});process.env.NODE_ENV!=="production"&&(gI.displayName="GridVirtualScrollerRenderZone");const oq=_t(e=>e.columnResize),rq=Ne(oq,e=>e.resizingColumnField),sq={includeHeaders:!0,includeHeaderFilters:!1,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},$n=_t(e=>e.editRows),mI=Ne($n,(e,{rowId:t,editMode:n})=>n===Xr.Row&&!!e[t]),iq=Ne($n,(e,{rowId:t,field:n})=>e[t]?.[n]??null),Ki=_t(e=>e.preferencePanel),aq=Ne(Ki,(e,t)=>!!(e.open&&e.labelId===t));var vo=(function(e){return e.filters="filters",e.columns="columns",e.aiAssistant="aiAssistant",e})(vo||{});function br(){return br=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},br.apply(null,arguments)}const lq={initialize:cq,use:uq,selectors:{}};function cq(e){return{colspanMap:new Map}}function uq(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=dq(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 dq(e,t,n,r,s,i,a){const l=i.length,c=i[t],u=a(n,c,t);if(!u||u===1)return my(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,my(e,n,t+p,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(t+u,l-1),leftVisibleCellIndex:t})}my(e,n,t,{spannedByColSpan:!1,cellProps:{colSpan:u,width:d}})}return{colSpan:u}}function my(e,t,n,r){let s=e.get(t);s||(s={},e.set(t,s)),s[n]=r}function bI(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 No(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(!No(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(!No(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(!No(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Xi(e,t){return Math.round(e*10**t)/10**t}const ms={EMPTY:{width:0,height:0},equals:(e,t)=>e.width===t.width&&e.height===t.height},pq={EMPTY:{top:[],bottom:[]}},fq={EMPTY:{left:[],right:[]}},hq={EMPTY:{top:0,left:0}};let In=(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?In.NONE:Math.abs(r)>=Math.abs(n)?r>0?In.DOWN:In.UP:n>0?In.RIGHT:In.LEFT}e.forDelta=t})(In||(In={}));const gq={isReady:!1,root:ms.EMPTY,viewportOuterSize:ms.EMPTY,viewportInnerSize:ms.EMPTY,contentSize:ms.EMPTY,minimumSize:ms.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},fl={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:no((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},vn={initialize:mq,use:bq,selectors:fl};function mq(e){const t=br({},gq,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:ms.EMPTY,dimensions:t,rowsMeta:s,rowHeights:i}}function bq(e,t,n){const r=f.useRef(!0),{layout:s,dimensions:{rowHeight:i,columnsTotalWidth:a,leftPinnedWidth:l,rightPinnedWidth:c,topPinnedHeight:u,bottomPinnedHeight:d},onResize:p}=t,g=f.useCallback(C=>{if(C&&(r.current=!1),r.current)return;const w=s.refs.container.current,S=fl.rootSize(e.state),P=fl.rowsMeta(e.state),x=Cq(w,t.dimensions.scrollbarSize),M=u+P.pinnedTopRowsTotalHeight,k=d+P.pinnedBottomRowsTotalHeight,T={width:a,height:Xi(P.currentPageTotalHeight,1)};let O,I,D=!1,E=!1;if(t.dimensions.autoHeight)E=!1,D=Math.round(a)>Math.round(S.width),O={width:S.width,height:M+k+T.height},I={width:Math.max(0,O.width-(E?x:0)),height:Math.max(0,O.height-(D?x:0))};else{O={width:S.width,height:S.height},I={width:Math.max(0,O.width),height:Math.max(0,O.height-M-k)};const R=T,B=I,_=R.width>B.width,V=R.height>B.height;(_||V)&&(E=V,D=R.width+(E?x:0)>B.width,D&&(E=R.height+x>B.height)),E&&(I.width-=x),D&&(I.height-=x)}t.disableHorizontalScroll&&(D=!1),t.disableVerticalScroll&&(E=!1);const N=Math.max(O.width,a+(E?x:0)),L={width:a,height:M+T.height+k},$={isReady:!0,root:S,viewportOuterSize:O,viewportInnerSize:I,contentSize:T,minimumSize:L,hasScrollX:D,hasScrollY:E,scrollbarSize:x,rowWidth:N,rowHeight:i,columnsTotalWidth:a,leftPinnedWidth:l,rightPinnedWidth:c,topContainerHeight:M,bottomContainerHeight:k,autoHeight:t.dimensions.autoHeight,minimalContentHeight:t.dimensions.minimalContentHeight},F=e.state.dimensions;No(F,$)||(e.update({dimensions:$}),p?.($.root))},[e,s.refs.container,t.dimensions.scrollbarSize,t.dimensions.autoHeight,t.dimensions.minimalContentHeight,t.disableHorizontalScroll,t.disableVerticalScroll,p,i,a,l,c,u,d]),{resizeThrottleMs:h}=t,y=fe(g),m=f.useMemo(()=>h>0?bI(y,h):void 0,[h,y]);f.useEffect(()=>m?.clear,[m]),ht(g,[g]),ht(()=>{e.update({dimensions:br({},e.state.dimensions,{autoHeight:t.dimensions.autoHeight,minimalContentHeight:t.dimensions.minimalContentHeight})})},[e,t.dimensions.autoHeight,t.dimensions.minimalContentHeight]);const b=yq(e,t,g);return{updateDimensions:g,debouncedUpdateDimensions:m,rowsMeta:b}}function yq(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=Wt(e,fl.rowHeight),h=fe(I=>{let D=r.get(I);return D===void 0&&(D={content:e.state.dimensions.rowHeight,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},r.set(I,D)),D}),{applyRowHeight:y}=t,m=f.useCallback(I=>{const D=fl.dimensions(e.state),E=D.rowHeight,N=h(I.id);if(!i)N.content=E,N.needsFirstMeasurement=!1;else{const L=i(I);if(L==="auto"){if(N.needsFirstMeasurement){const $=l?l(I):E;N.content=$??E}u.current=!0,N.autoHeight=!0}else N.content=L??D.rowHeight,N.needsFirstMeasurement=!1,N.autoHeight=!1}if(a){const L=a(I);N.spacingTop=L.top??0,N.spacingBottom=L.bottom??0}else N.spacingTop=0,N.spacingBottom=0;return y?.(N,I),N},[e,i,h,l,g,a,y]),b=f.useCallback(()=>{u.current=!1;const I=p?.top.reduce((F,R)=>{const B=m(R);return F+B.content+B.spacingTop+B.spacingBottom+B.detail},0)??0,D=p?.bottom.reduce((F,R)=>{const B=m(R);return F+B.content+B.spacingTop+B.spacingBottom+B.detail},0)??0,E=[],N=s.reduce((F,R)=>{E.push(F);const B=m(R),_=B.content+B.spacingTop+B.spacingBottom+B.detail;return F+_},0);u.current||(c.current=1/0);const L=I!==e.state.rowsMeta.pinnedTopRowsTotalHeight||D!==e.state.rowsMeta.pinnedBottomRowsTotalHeight||N!==e.state.rowsMeta.currentPageTotalHeight,$={currentPageTotalHeight:N,positions:E,pinnedTopRowsTotalHeight:I,pinnedBottomRowsTotalHeight:D};e.set("rowsMeta",$),L&&n(),d.current=!0},[e,p,s,m,n]),C=fe(b),w=I=>r.get(I)?.content??fl.rowHeight(e.state),S=(I,D)=>{const E=h(I),N=E.content!==D;E.needsFirstMeasurement=!1,E.content=D,d.current&&=!N},P=I=>r.get(I)?.autoHeight??!1,x=()=>c.current,M=I=>{u.current&&I>c.current&&(c.current=I)},k=()=>{r.clear(),b()},T=fo(()=>typeof ResizeObserver>"u"?void 0:new ResizeObserver(I=>{for(let D=0;D<I.length;D+=1){const E=I[D],N=E.borderBoxSize&&E.borderBoxSize.length>0?E.borderBoxSize[0].blockSize:E.contentRect.height,L=E.target.__mui_id;if(t.focusedVirtualCell?.()?.id===L&&N===0)return;S(L,N)}d.current||requestAnimationFrame(()=>{C()})})).current,O=(I,D)=>(I.__mui_id=D,T?.observe(I),()=>T?.unobserve(I));return ht(()=>{b()},[b]),{getRowHeight:w,setLastMeasuredRowIndex:M,storeRowHeightMeasurement:S,hydrateRowsMeta:b,observeRowHeight:O,rowHasAutoHeight:P,getRowHeightEntry:h,getLastMeasuredRowIndex:x,resetRowHeights:k}}function vq(e,t,n){if(!e)return;const r=e.getBoundingClientRect(),s={width:Xi(r.width,1),height:Xi(r.height,1)};if((t.state.rootSize===ms.EMPTY||!ms.equals(s,t.state.rootSize))&&n(s),typeof ResizeObserver>"u")return;const i=new ResizeObserver(([a])=>{if(!a)return;const l={width:Xi(a.contentRect.width,1),height:Xi(a.contentRect.height,1)};ms.equals(l,t.state.rootSize)||n(l)});return i.observe(e),()=>{i.disconnect()}}const yI=new WeakMap;function Cq(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=yI.get(e);if(n!==void 0)return n;const s=Qt(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),yI.set(e,i),i}const vI=(typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty").includes("firefox"),by=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),hl=(e,t,n)=>Math.max(t,Math.min(n,e)),yy=50,CI={top:0,left:0},wq=Object.freeze(new Map),pu={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},Pf=(()=>{const e=gt(t=>t.virtualization.renderContext.firstRowIndex);return{store:gt(t=>t.virtualization),renderContext:gt(t=>t.virtualization.renderContext),enabledForRows:gt(t=>t.virtualization.enabledForRows),enabledForColumns:gt(t=>t.virtualization.enabledForColumns),offsetTop:gt(vn.selectors.rowPositions,e,(t,n)=>t[n]??0),context:gt(t=>t.virtualization.context),scrollPosition:gt(t=>t.virtualization.scrollPosition)}})(),Qo={initialize:Sq,use:xq,selectors:Pf};function Sq(e){return{virtualization:br({enabled:!by,enabledForRows:!by,enabledForColumns:!by,renderContext:pu,props:e.layout.constructor.elements.reduce((n,r)=>(n[r],n),{}),context:{},scrollPosition:{current:hq.EMPTY}},e.initialState?.virtualization),getters:null}}function xq(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:y=pq.EMPTY,pinnedColumns:m=fq.EMPTY,onWheel:b,onTouchMove:C,onRenderContextChange:w,onScrollChange:S,scrollReset:P,renderRow:x,renderInfiniteLoadingTrigger:M}=t,k=y.bottom.length>0,[T,O]=f.useState(wq),I=f.useRef(!1),D=f.useRef(!1),E=Wt(e,Pf.renderContext),N=Wt(e,Pf.enabledForRows),L=Wt(e,Pf.enabledForColumns),$=Wt(e,vn.selectors.contentHeight),F=f.useRef(d?.scroll??CI),R=f.useRef(!1),B=f.useRef(CI),_=f.useRef(pu),V=On(),A=f.useRef(void 0),z=fo(()=>Iq(a,l,c,s*15,yy*6)).current,G=f.useCallback(te=>{EI(te,e.state.virtualization.renderContext)||e.set("virtualization",br({},e.state.virtualization,{renderContext:te,scrollPosition:{current:br({},F.current)}}));const Q=vn.selectors.dimensions(e.state).isReady,Ce=te.firstRowIndex!==_.current.firstRowIndex||te.lastRowIndex!==_.current.lastRowIndex;Q&&Ce&&(_.current=te,w?.(te)),B.current=F.current},[e,w]),U=fe(()=>{const te=r.refs.scroller.current;if(!te)return;const Q=vn.selectors.dimensions(e.state),Ce=Math.ceil(Q.contentSize.height-Q.viewportInnerSize.height),le=Math.ceil(Q.contentSize.width-Q.viewportInnerSize.width),xe={top:hl(te.scrollTop,0,Ce),left:a?hl(te.scrollLeft,-Math.abs(le),0):hl(te.scrollLeft,0,le)},we=xe.left-F.current.left,Ue=xe.top-F.current.top,$e=we!==0||Ue!==0;F.current=xe;const Ze=$e?In.forDelta(we,Ue):In.NONE,Le=Math.abs(F.current.top-B.current.top),Qe=Math.abs(F.current.left-B.current.left),Je=Le>=s||Qe>=yy,be=z.direction!==Ze;if(!(Je||be))return e.set("virtualization",br({},e.state.virtualization,{scrollPosition:{current:br({},F.current)}})),E;if(be)switch(Ze){case In.NONE:case In.LEFT:case In.RIGHT:A.current=void 0;break;default:A.current=E;break}z.direction=Ze,z.buffer=TI(a,Ze,l,c,s*15,yy*6);const me=SI(e,t,n,N,L),Me=xI(me,F.current,z);return EI(Me,E)||(N1.flushSync(()=>{G(Me)}),V.start(1e3,U)),Me}),X=()=>{if(!vn.selectors.dimensions(e.state).isReady&&(N||L))return;const te=SI(e,t,n,N,L),Q=xI(te,F.current,z);A.current=void 0,G(Q)},Y=fe(X);zs(e,vn.selectors.dimensions,(te,Q)=>{Q.isReady&&X()}),ht(()=>{I.current&&(X(),I.current=!1)});const ee=()=>{I.current=!0},oe=fe(()=>{if(R.current){R.current=!1;return}const te=U();te&&S?.(F.current,te)}),K=(te={},Q)=>{if(!te.rows&&!g)return[];let Ce=E;te.renderContext&&(Ce=te.renderContext,Ce.firstColumnIndex=E.firstColumnIndex,Ce.lastColumnIndex=E.lastColumnIndex);const le=!k&&te.position===void 0||k&&te.position==="bottom",xe=te.position!==void 0;let we;switch(te.position){case"top":we=0;break;case"bottom":we=y.top.length+p.length;break;case void 0:default:we=y.top.length;break}const Ue=te.rows??p,$e=Ce.firstRowIndex,Ze=Math.min(Ce.lastRowIndex,Ue.length),Le=te.rows?MI(0,te.rows.length):MI($e,Ze);let Qe=-1;const Je=t.focusedVirtualCell?.();!xe&&Je&&(Je.rowIndex<$e&&(Le.unshift(Je.rowIndex),Qe=Je.rowIndex),Je.rowIndex>Ze&&(Le.push(Je.rowIndex),Qe=Je.rowIndex));const be=[],Ee=vn.selectors.columnPositions(e.state,h);return Le.forEach(me=>{const{id:Me,model:Ae}=Ue[me];if(Q&&!Q[Me])return;const Ge=(g?.firstRowIndex||0)+we+me;if(u?.enabled){const je=m.left.length,Lt=h.length-m.right.length;n.calculateColSpan(Me,je,Lt,h),m.left.length>0&&n.calculateColSpan(Me,0,m.left.length,h),m.right.length>0&&n.calculateColSpan(Me,h.length-m.right.length,h.length,h)}const lt=n.rowsMeta.rowHasAutoHeight(Me)?"auto":n.rowsMeta.getRowHeight(Me);let Dt=!1;te.position===void 0&&(Dt=me===0);let qe=!1;const Fe=me===Ue.length-1;if(le)if(xe)qe=Fe;else{const je=p.length-1;me===je&&(qe=!0)}let Ye=Ce;A.current&&me>=A.current.firstRowIndex&&me<A.current.lastRowIndex&&(Ye=A.current);const pt=me===Qe,qt=Je?.rowIndex===Ge,kt=II(Ee,Ye,m.left.length),Yn=Fe&&te.position==="top",_n=Ye.firstColumnIndex,Kn=Ye.lastColumnIndex;if(be.push(x({id:Me,model:Ae,rowIndex:Ge,offsetLeft:kt,columnsTotalWidth:i,baseRowHeight:lt,firstColumnIndex:_n,lastColumnIndex:Kn,focusedColumnIndex:qt?Je.columnIndex:void 0,isFirstVisible:Dt,isLastVisible:qe,isVirtualFocusRow:pt,showBottomBorder:Yn})),pt)return;const Xn=T.get(Me);Xn&&be.push(Xn),te.position===void 0&&Fe&&M&&be.push(M(Me))}),be},W=f.useRef(null);ht(()=>{D.current&&Y()},[L,N,Y]),ht(()=>{r.refs.scroller.current&&(r.refs.scroller.current.scrollLeft=0)},[r.refs.scroller,P]),AU(E!==pu,()=>{if(S?.(F.current,E),D.current=!0,d?.scroll&&r.refs.scroller.current){const te=r.refs.scroller.current,{top:Q,left:Ce}=d.scroll,le={top:!(Q>0),left:!(Ce>0)};!le.left&&i&&(te.scrollLeft=Ce,le.left=!0,R.current=!0),!le.top&&$&&(te.scrollTop=Q,R.current=!0),(!le.top||!le.left)&&(W.current=(xe,we)=>{!le.left&&xe&&(te.scrollLeft=Ce,le.left=!0,R.current=!0),!le.top&&we&&(te.scrollTop=Q,le.top=!0,R.current=!0),le.left&&le.top&&(W.current=null)})}}),zs(e,vn.selectors.dimensions,X),ht(()=>{r.refs.scroller&&W.current?.(i,$)},[r.refs.scroller,i,$]);const J=f.useRef(!0),q=wI(te=>{r.refs.container.current=te;const Q=vq(te,e,Ce=>{Ce.width===0&&Ce.height===0&&e.state.rootSize.height!==0&&e.state.rootSize.width!==0||(e.state.rootSize=Ce,J.current||!n.debouncedUpdateDimensions?(n.updateDimensions(J.current),J.current=!1):n.debouncedUpdateDimensions())});return()=>{Q?.(),r.refs.container.current=null}}),ce=wI(te=>{r.refs.scroller.current=te;const Q={passive:!0};return te.addEventListener("scroll",oe,Q),te.addEventListener("wheel",b,Q),te.addEventListener("touchmove",C,Q),()=>{te.removeEventListener("scroll",oe,Q),te.removeEventListener("wheel",b,Q),te.removeEventListener("touchmove",C,Q),r.refs.scroller.current=null}}),re={containerRef:q,scrollerRef:ce},se=r.use(e,t,n,re),ae=br({setPanels:O,getRows:K,rows:t.rows},se);return br({getters:ae,setPanels:O,forceUpdateRenderContext:X,scheduleUpdateRenderContext:ee},Mq())}function wI(e){const t=f.useRef(void 0);return fe(r=>{if(!r){t.current?.();return}if(t.current=e(r),Rb>=19)return t.current})}function SI(e,t,n,r,s){const i=vn.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:vn.selectors.rowsMeta(e.state),columnPositions:vn.selectors.columnPositions(e.state,t.columns),rows:a,range:l,pinnedColumns:t.pinnedColumns,columns:c,hiddenCellsOriginMap:u,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function xI(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(PI(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:PI(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]=vy({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 y=e.rows[h];d=e.api.rowsMeta.rowHasAutoHeight(y.id)}(!d||e.virtualizeColumnsWithAutoRowHeight)&&(c=Ks(a,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),u=Ks(a+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=c,r.lastColumnIndex=u}return Pq(e,r,n)}function PI(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=hl(r-(e.range?.firstRowIndex||0),0,e.rowsMeta.positions.length);return s||e.rowsMeta.positions[i]>=t?Ks(t,e.rowsMeta.positions,n):Eq(t,e.rowsMeta.positions,i,n)}function Pq(e,t,n){const[r,s]=vy({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]=vy({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 Ks(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?Ks(e,t,n,r,i):Ks(e,t,n,i+1,s)}function Eq(e,t,n,r=void 0){let s=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=s,s*=2;return Ks(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function vy({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=Ks(c,a,{atStart:!0,lastPosition:a[a.length-1]+l}),p=Ks(u,a);return[hl(d,s,i),hl(p,s,i)]}function EI(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function II(e,t,n){const r=(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(r)}function TI(e,t,n,r,s,i){if(e)switch(t){case In.LEFT:t=In.RIGHT;break;case In.RIGHT:t=In.LEFT;break}switch(t){case In.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case In.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case In.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case In.UP:return{rowAfter:0,rowBefore:s,columnAfter:0,columnBefore:0};case In.DOWN:return{rowAfter:s,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}function Iq(e,t,n,r,s){return{direction:In.NONE,buffer:TI(e,In.NONE,t,n,r,s)}}function MI(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 Mq(){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 OI{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 Xs extends OI{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:no(Qo.selectors.context,t=>({ref:t.containerRef})),scrollerProps:no(Qo.selectors.context,vn.selectors.autoHeight,vn.selectors.needsHorizontalScrollbar,(t,n,r)=>({ref:t.scrollerRef,style:{overflowX:r?void 0:"hidden",overflowY:n?"hidden":void 0},role:"presentation",tabIndex:vI?-1:void 0})),contentProps:no(vn.selectors.contentHeight,vn.selectors.minimalContentHeight,vn.selectors.columnsTotalWidth,vn.selectors.needsHorizontalScrollbar,(t,n,r,s)=>({style:{width:s?r:"auto",flexBasis:t===0?n:t,flexShrink:0},role:"presentation"})),positionerProps:no(Qo.selectors.offsetTop,t=>({style:{transform:`translate3d(0, ${t}px, 0)`}})),scrollbarHorizontalProps:no(Qo.selectors.context,Qo.selectors.scrollPosition,(t,n)=>({ref:t.scrollbarHorizontalRef,scrollPosition:n})),scrollbarVerticalProps:no(Qo.selectors.context,Qo.selectors.scrollPosition,(t,n)=>({ref:t.scrollbarVerticalRef,scrollPosition:n})),scrollAreaProps:no(Qo.selectors.scrollPosition,t=>({scrollPosition:t}))}}class Oq extends Xs{use(t,n,r,s){super.use(t,n,r,s);const i=t.use(Xs.selectors.containerProps),a=t.use(Xs.selectors.scrollerProps),l=t.use(Xs.selectors.contentProps),c=t.use(Xs.selectors.positionerProps),u=t.use(Xs.selectors.scrollbarVerticalProps),d=t.use(Xs.selectors.scrollbarHorizontalProps),p=t.use(Xs.selectors.scrollAreaProps);return{getContainerProps:()=>i,getScrollerProps:()=>a,getContentProps:()=>l,getPositionerProps:()=>c,getScrollbarVerticalProps:()=>u,getScrollbarHorizontalProps:()=>d,getScrollAreaProps:()=>p}}}class Cle extends OI{static elements=["scroller","container","content","positioner"];use(t,n,r,s){const{scrollerRef:i,containerRef:a}=s,l=st(i,a);t.state.virtualization.context={mergedRef:l}}static selectors={containerProps:no(Qo.selectors.context,vn.selectors.autoHeight,vn.selectors.needsHorizontalScrollbar,(t,n,r)=>({ref:t.mergedRef,style:{overflowX:r?void 0:"hidden",overflowY:n?"hidden":void 0,position:"relative"},role:"presentation",tabIndex:vI?-1:void 0})),contentProps:no(vn.selectors.contentHeight,t=>({style:{position:"absolute",display:"inline-block",width:"100%",height:t,top:0,left:0,zIndex:-1},role:"presentation"})),positionerProps:no(Qo.selectors.offsetTop,t=>({style:{height:t}}))}}const kq={initialize:Dq,use:Fq,selectors:{}};function Dq(e){return{}}function Fq(e,t,n){return{getViewportPageSize:()=>{const s=vn.selectors.dimensions(e.state);if(!s.isReady)return 0;if(t.getRowHeight){const a=Qo.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 Nq={firstRowIndex:0,lastRowIndex:0},Rq={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},kI={state:e=>e.rowSpanning,hiddenCells:e=>e.rowSpanning.caches.hiddenCells,spannedCells:e=>e.rowSpanning.caches.spannedCells,hiddenCellsOriginMap:e=>e.rowSpanning.caches.hiddenCellOriginMap},gl={initialize:$q,use:Lq,selectors:kI};function $q(e){return{rowSpanning:e.initialState?.rowSpanning??{caches:Rq,processedRange:Nq}}}function Lq(e,t,n){return{getHiddenCellsOrigin:()=>kI.hiddenCellsOriginMap(e.state)}}const Aq={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}},DI=[vn,Qo,lq,gl,kq],Vq=e=>{const t=FI(e,Aq),n=fo(()=>new Jc(DI.map(s=>s.initialize(t)).reduce((s,i)=>Object.assign(s,i),{}))).current,r={};for(const s of DI)Object.assign(r,s.use(n,t,r));return{store:n,api:r}};function FI(e,t){const n=br({},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]=FI(e[r]??{},s):n[r]=e[r]??s}return n}const Cy=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),fu=!Cy,_q=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return H({},e,{virtualization:{enabled:!n&&fu,enabledForColumns:!n&&fu,enabledForRows:!n&&!r&&fu,renderContext:pu}})};function Bq(e,t){const{autoHeight:n,disableVirtualization:r}=t,s=c=>{const{virtualizer:u}=e.current;c&&=fu;const d=u.store.getSnapshot();d.virtualization.enabled===c&&d.virtualization.enabledForRows===c&&d.virtualization.enabledForColumns===c||u.store.set("virtualization",H({},u.store.state.virtualization,{enabled:c,enabledForColumns:c,enabledForRows:c&&!n}))};rt(e,{unstable_setVirtualization:s,unstable_setColumnVirtualization:c=>{const{virtualizer:u}=e.current;c&&=fu,u.store.getSnapshot().virtualization.enabledForColumns!==c&&u.store.set("virtualization",H({},u.store.state.virtualization,{enabledForColumns:c}))}},"public");const l=()=>{const{virtualizer:c}=e.current;c?.api.scheduleUpdateRenderContext()};e.current.register("private",{updateRenderContext:l}),Nt(e,"sortedRowsSet",l),Nt(e,"paginationModelChange",l),Nt(e,"columnsChange",l),f.useEffect(()=>{e.current.virtualizer&&s(!t.disableVirtualization)},[e,r,n])}const Ef=_t(e=>e.virtualization);Ne(Ef,e=>e.enabled);const Hq=Ne(Ef,e=>e.enabledForColumns);Ne(Ef,e=>e.enabledForRows);const ml=Ne(Ef,e=>e.renderContext),zq=_t(e=>e.virtualization.renderContext.firstColumnIndex),jq=_t(e=>e.virtualization.renderContext.lastColumnIndex),Gq=Ot(zq,jq,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t}));function Wq(e){return JSON.stringify([e.filterModel,e.sortModel,e.start,e.end])}class Uq{constructor({ttl:t=3e5,getKey:n=Wq}){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 NI extends Error{constructor(t){super(t.message),this.name="GridGetRowsError",this.params=t.params,this.cause=t.cause}}class qq extends Error{constructor(t){super(t.message),this.name="GridUpdateRowError",this.params=t.params,this.cause=t.cause}}const Yq=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return de(r,ot,n)},RI="calc(max(var(--DataGrid-scrollbarSize), 14px))",wy=xt("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":RI}),Kq=xt(wy)({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}),Xq=xt(wy)({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}),Zq=xt(wy)({width:"var(--size)",height:"var(--size)",right:0,bottom:0,overflow:"scroll","@media print":{display:"none"}}),Sy=Xe(function(t,n){const r=qn(),s=De(),i=f.useRef(!1),a=f.useRef(0),l=f.useRef(null),c=Yq(s,t.position),u=ue(r,fn),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,y=fe(()=>{const w=l.current,S=t.scrollPosition.current;if(w&&S[g]!==a.current){if(a.current=S[g],i.current){i.current=!1;return}i.current=!0,w[p]=t.scrollPosition.current[g]}}),m=fe(()=>{const w=r.current.virtualScrollerRef.current,S=l.current;if(S){if(i.current){i.current=!1;return}i.current=!0,w[p]=S[p]}});Sd(()=>{const w=r.current.virtualScrollerRef.current,S=l.current,P={passive:!0};return w.addEventListener("scroll",y,P),S.addEventListener("scroll",m,P),()=>{w.removeEventListener("scroll",y,P),S.removeEventListener("scroll",m,P)}});const b=t.position==="vertical"?Kq:Xq,C=f.useMemo(()=>({[d]:`${h}px`}),[d,h]);return v.jsx(b,{ref:st(n,l),className:c.root,tabIndex:-1,"aria-hidden":"true",onFocus:w=>{w.target.blur()},children:v.jsx("div",{className:c.content,style:C})})});process.env.NODE_ENV!=="production"&&(Sy.displayName="GridVirtualScrollbar");const Qq=e=>{const{classes:t,position:n}=e,r={root:["scrollShadow",`scrollShadow--${n}`]};return de(r,ot,t)},Jq=xt("div",{name:"MuiDataGrid",slot:"ScrollShadow",overridesResolver:(e,t)=>[t.root,t[e.position]]})(({theme:e})=>({position:"absolute",inset:0,pointerEvents:"none",transition:Ie.transition(["box-shadow"],{duration:Ie.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 $I(e){const{position:t}=e,r={classes:De().classes,position:t},s=Qq(r),i=f.useRef(null),a=qn(),l=ue(a,PP),c=ue(a,EP),u=ue(a,_i),d=ue(a,ji),p=t==="vertical"?c&&u?.bottom?.length>0:l&&d?.right?.length!==void 0&&d?.right?.length>0,g=Gt(),h=f.useCallback(b=>{if(!i.current)return;const C=Math.abs(Math.round(b)),w=fn(a),S=Math.round(w.contentSize[t==="vertical"?"height":"width"]-w.viewportInnerSize[t==="vertical"?"height":"width"]),P=t==="vertical"?u?.top?.length>0:d?.left?.length!==void 0&&d?.left?.length>0,x=t==="vertical"?u?.bottom?.length>0:d?.right?.length!==void 0&&d?.right?.length>0,M=g?C<S:C>0,k=g?C>0:C<S;i.current.style.setProperty("--hasScrollStart",P&&M?"1":"0"),i.current.style.setProperty("--hasScrollEnd",x&&k?"1":"0")},[u,d,g,t,a]),y=b=>{h(b[t==="vertical"?"top":"left"])},m=()=>{t==="horizontal"&&h(a.current.virtualScrollerRef?.current?.scrollLeft||0)};return Pe(a,"scrollPositionChange",y),Pe(a,"columnResizeStop",m),f.useEffect(()=>{h((t==="horizontal"?a.current.virtualScrollerRef?.current?.scrollLeft:a.current.virtualScrollerRef?.current?.scrollTop)??0)},[h,a,t]),v.jsx(Jq,{className:s.root,ownerState:r,ref:i,style:{"--hasScrollStart":0,"--hasScrollEnd":p?"1":"0"}})}const eY=xt("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}:{}),tY=xt("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"})({}),nY=e=>{const{classes:t}=e;return de({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ot,t)};function LI(e){const t=tt(),n=De(),r=ue(t,fn);let s=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);s===0&&(s=AP);const i=nY(H({},e,{classes:n.classes}));return v.jsx(eY,H({className:i.root},e,{right:r.columnsTotalWidth-r.viewportOuterSize.width,children:v.jsx(tY,H({className:i.inner,style:{height:s,width:r.viewportOuterSize.width}},e))}))}process.env.NODE_ENV!=="production"&&(LI.propTypes={loadingOverlayVariant:o.oneOf(["circular-progress","linear-progress","skeleton"]),overlayType:o.oneOf(["loadingOverlay","noResultsOverlay","noRowsOverlay","noColumnsOverlay","emptyPivotOverlay"])});const bs=(e,t)=>cu(e),AI=(e,t)=>ue(e,cu),oY=Ne(yo,ml,cu,hn,(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)}),VI=Ot(oY,hn,cu,yo,(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:H({},r,{rowIndex:s,columnIndex:i})}),xy={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,disableRowSelectionOnClick:!1,disableRowSelectionExcludeModel:!1,disableVirtualization:!1,editMode:Xr.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 hu(e){"@babel/helpers - typeof";return hu=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},hu(e)}function rY(e,t){if(hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function gu(e){var t=rY(e,"string");return hu(t)=="symbol"?t:t+""}const sY=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 y=t.current[p];return y.processors.get(g)!==h&&(y.processors.set(g,h),y.processorsAsArray=Array.from(t.current[p].processors.values()).filter(b=>b!==null),y.processorsUpdated=!0),()=>{t.current[p].processors.set(g,null),t.current[p].processorsAsArray=Array.from(t.current[p].processors.values()).filter(b=>b!==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 y=t.current[p].appliers,m=Te(y,[g].map(gu));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,y]=p;if(!t.current[g])return h;const m=t.current[g].processorsAsArray;let b=h;for(let C=0;C<m.length;C+=1)b=m[C](b,y);return b},[]),u={registerPipeProcessor:s,registerPipeApplier:i,requestPipeProcessorsApplication:a,runAppliersForPendingProcessors:l},d={unstable_applyPipeProcessors:c};rt(e,u,"private"),rt(e,d,"public")},Ct=(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]);gs(()=>{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])},Py=(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]);gs(()=>{i()});const a=f.useRef(!0);f.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},iY=(e,t,n)=>{const r=cG(n),s=Ja(n),i=ll(n),a=Math.min(i.enabled?i.paginationModel.pageSize:s,s);return H({},e,{rowsMeta:{currentPageTotalHeight:a*r,positions:Array.from({length:a},(l,c)=>c*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},aY=(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;Py(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};rt(e,g,"public"),rt(e,h,"private")},lY=Ne(hn,Us,(e,t)=>{const n=e.length;return n===0?0:Xi(t[n-1]+e[n-1].computedWidth,1)}),cY=()=>Tb((e,t,n,r,s)=>H({},e,{headerHeight:t,groupHeaderHeight:n,headerFilterHeight:r,headersTotalHeight:s}),{maxSize:1});function uY(){const e=Gt(),t=De(),n=qn(),{listView:r}=t,s=ue(n,hn),i=ue(n,_i),a=rl(n),l=ue(n,iu),c=f.useCallback(z=>l.has(z)&&n.current.isRowSelectable(z),[l,n]),u=AI(n),d=ue(n,eW),p=ue(n,Ab),g=ue(n,Lb),{autoHeight:h}=t,y=r,m=ue(n,tu),b=BP(t.rowHeight,xy.rowHeight,HP),C=Math.floor(b*m),w=Math.floor(t.columnHeaderHeight*m),S=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*m),P=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*m),x=ue(n,lY),M=Cf(n,t),k=a.left.reduce((z,G)=>z+G.computedWidth,0),T=a.right.reduce((z,G)=>z+G.computedWidth,0),O=dI(n,t),I={rowHeight:C,headerHeight:w,columnsTotalWidth:x,leftPinnedWidth:k,rightPinnedWidth:T,topPinnedHeight:M,bottomPinnedHeight:0,autoHeight:h,minimalContentHeight:AP,scrollbarSize:t.scrollbarSize},D=fo(cY).current,E=ue(n,Ja),N=ue(n,ll),L=Math.min(N.enabled?N.paginationModel.pageSize:E,E),{getRowHeight:$,getEstimatedRowHeight:F,getRowSpacing:R}=t,B=t.slots.row,_=t.slotProps?.row;ue(n,VI);const V=fo(()=>new Oq({container:n.current.mainElementRef,scroller:n.current.virtualScrollerRef,scrollbarVertical:n.current.virtualScrollbarVerticalRef,scrollbarHorizontal:n.current.virtualScrollbarHorizontalRef})).current,A=Vq({layout:V,dimensions:I,virtualization:{isRtl:e,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx},colspan:{enabled:d,getColspan:f.useCallback((z,G)=>{if(typeof G.colSpan=="function"){const U=n.current.getRow(z),X=n.current.getRowValue(U,G);return G.colSpan(X,U,G,n)??0}return G.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:L,columns:s,pinnedRows:i,pinnedColumns:a,disableHorizontalScroll:r,disableVerticalScroll:O.overlayType==="noColumnsOverlay"||O.loadingOverlayVariant==="skeleton",getRowHeight:f.useMemo(()=>{if($)return z=>$(H({},z,{densityFactor:m}))},[$,m]),getEstimatedRowHeight:f.useMemo(()=>F?z=>F(H({},z,{densityFactor:m})):void 0,[F,m]),getRowSpacing:f.useMemo(()=>R?z=>{const G=u.rowIdToIndexMap.get(z.id)??-1,U={isFirstVisible:G===0,isLastVisible:G===u.rows.length-1,indexRelativeToCurrentPage:G};return R(H({},z,U,{indexRelativeToCurrentPage:n.current.getRowIndexRelativeToVisibleRows(z.id)}))}:void 0,[n,R,u.rows,u.rowIdToIndexMap]),applyRowHeight:fe((z,G)=>n.current.unstable_applyPipeProcessors("rowHeight",z,G)),virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight,focusedVirtualCell:fe(()=>VI(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,G)=>{n.current.publishEvent("scrollPositionChange",{top:z.top,left:z.left,renderContext:G})},[n]),scrollReset:y,renderRow:f.useCallback(z=>v.jsx(B,H({row:z.model,rowId:z.id,index:z.rowIndex,selected:c(z.id),offsetLeft:z.offsetLeft,columnsTotalWidth:x,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},_),z.id),[x,g,c,a,B,_,p,s]),renderInfiniteLoadingTrigger:f.useCallback(z=>n.current.getInfiniteLoadingTriggerElement?.({lastRowId:z}),[n])});return gs(()=>{n.current.store.state.dimensions=D(A.store.state.dimensions,w,S,P,M),n.current.store.state.rowsMeta=A.store.state.rowsMeta,n.current.store.state.virtualization=A.store.state.virtualization}),zs(A.store,vn.selectors.dimensions,(z,G)=>{G.isReady&&n.current.setState(U=>H({},U,{dimensions:D(G,w,S,P,M)}))}),zs(A.store,vn.selectors.rowsMeta,(z,G)=>{G!==n.current.state.rowsMeta&&n.current.setState(U=>H({},U,{rowsMeta:G}))}),zs(A.store,Qo.selectors.store,(z,G)=>{G.renderContext!==pu&&G!==n.current.state.virtualization&&n.current.setState(U=>H({},U,{virtualization:G}))}),n.current.register("private",{virtualizer:A}),aY(n),A}const dY=e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:s,overlayType:i}=e;return de({root:["main",r&&"main--hasPinnedRight",(s==="skeleton"||i==="noColumnsOverlay")&&"main--hiddenContent"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]},ot,t)},pY=xt("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}),fY=e=>e.current.state.dimensions.rightPinnedWidth>0;function hY(e){const t=qn(),n=De(),r=ue(t,EP),s=ue(t,PP),i=ue(t,fY),a=ue(t,fG),{overlayType:l,loadingOverlayVariant:c}=dI(t,n),u=n.slots?.[l],d={classes:n.classes,hasScrollX:s,hasPinnedRight:i,overlayType:l,loadingOverlayVariant:c},p=dY(d),g=uY().api.getters,{getContainerProps:h,getScrollerProps:y,getContentProps:m,getPositionerProps:b,getScrollbarVerticalProps:C,getScrollbarHorizontalProps:w,getRows:S,getScrollAreaProps:P}=g,x=S(void 0,yt(t));return v.jsxs(pI,H({className:p.root},h(),{ownerState:d,children:[v.jsx(Sf,H({scrollDirection:"left"},P())),v.jsx(Sf,H({scrollDirection:"right"},P())),v.jsx(Sf,H({scrollDirection:"up"},P())),v.jsx(Sf,H({scrollDirection:"down"},P())),v.jsxs(pY,H({className:p.scroller},y(),{ownerState:d,children:[v.jsxs(UU,{children:[!n.listView&&v.jsx(HU,{}),v.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:g})]}),l&&v.jsx(LI,{overlayType:l,loadingOverlayVariant:c,children:v.jsx(u,H({},n.slotProps?.[l]))}),v.jsx(fI,H({},m(),{children:v.jsxs(gI,H({role:"rowgroup"},b(),{children:[x,v.jsx(n.slots.detailPanels,{virtualScroller:g})]}))})),a&&v.jsx(eq,{rowsLength:x.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($I,{position:"horizontal"}),v.jsx(Sy,H({position:"horizontal"},w()))]}),r&&v.jsxs(f.Fragment,{children:[n.pinnedRowsSectionSeparator?.endsWith("shadow")&&v.jsx($I,{position:"vertical"}),v.jsx(Sy,H({position:"vertical"},C()))]}),s&&r&&v.jsx(Zq,{"aria-hidden":"true"}),e.children]}))}function gY(){const e=De();return e.hideFooter?null:v.jsx(e.slots.footer,H({},e.slotProps?.footer))}let Ey;function Iy(){return Ey===void 0&&document.createElement("div").focus({get preventScroll(){return Ey=!0,!1}}),Ey}function mY({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=H({},e);return Object.keys(n).forEach(s=>{const i=s;n[i]!==void 0&&(r[i]=n[i])}),r}const bY=[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===Do.DataGrid&&e.paginationMode==="client"&&jb(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 yY(e,t){t.forEach(n=>{const r=n(e);r&&xn(r,"error")})}const vY=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},CY=e=>e===ME||vY(e)!==null,_I=(e,t)=>{if(e)if(t){if(e===mt.LEFT)return"right";if(e===mt.RIGHT)return"left"}else{if(e===mt.LEFT)return"left";if(e===mt.RIGHT)return"right"}};function mu(e,t,n,r){const s=_I(n,t);return!s||r===void 0||(e[s]=r),e}const wY=["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"],SY=["changeReason","unstable_updateValueOnRender"];mt.LEFT+"",Nn.LEFT,mt.RIGHT+"",Nn.RIGHT,mt.NONE+"",mt.VIRTUAL+"";const xY=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:s,isEditable:i,isSelected:a,isSelectionMode:l,classes:c}=e,u={root:["cell",`cell--text${pe(t)}`,a&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",s===mt.LEFT&&"cell--pinnedLeft",s===mt.RIGHT&&"cell--pinnedRight",l&&!i&&"cell--selectionMode"]};return de(u,ot,c)};let BI=!1;const Ty=Xe(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:y,pinnedOffset:m,pinnedPosition:b,showRightBorder:C,showLeftBorder:w,onClick:S,onDoubleClick:P,onMouseDown:x,onMouseUp:M,onMouseOver:k,onKeyDown:T,onKeyUp:O,onDragEnter:I,onDragOver:D}=t,E=Te(t,wY),N=qn(),L=De(),$=Gt(),F=r.field,R=ue(N,iq,{rowId:i,field:F}),_=af().hooks.useCellAggregationResult(i,F),V=R?Vt.Edit:Vt.View,{value:A,formattedValue:z}=_||{},G=N.current.getCellParamsForRow(i,F,s,{colDef:r,cellMode:V,rowNode:a,tabIndex:ue(N,()=>{const Me=ry(N);return Me&&Me.field===F&&Me.id===i?0:-1}),hasFocus:ue(N,()=>{const Me=yo(N);return Me?.id===i&&Me.field===F}),value:A,formattedValue:z});G.api=N.current,ue(N,()=>N.current.isCellEditable(G));const U=ue(N,()=>N.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:i,field:F})),X=N.current.virtualizer.store,Y=Wt(X,gl.selectors.hiddenCells),ee=Wt(X,gl.selectors.spannedCells),{hasFocus:oe,isEditable:K=!1,value:W}=G,J=(V==="view"||!K)&&r.type!=="actions"?G.tabIndex:-1,{classes:q,getCellClassName:ce}=L,se=[ue(N,()=>N.current.unstable_applyPipeProcessors("cellClassName",[],{id:i,field:F}).filter(Boolean).join(" "))];r.cellClassName&&se.push(typeof r.cellClassName=="function"?r.cellClassName(G):r.cellClassName),r.display==="flex"&&se.push(j["cell--flex"]),ce&&se.push(ce(G));const ae=G.formattedValue??W,te=f.useRef(null),Q=st(n,te),Ce=L.cellSelection??!1,le={align:l,showLeftBorder:w,showRightBorder:C,isEditable:K,classes:L.classes,pinnedPosition:b,isSelected:U,isSelectionMode:Ce},xe=xY(le),we=f.useCallback(Me=>Ae=>{const Ge=N.current.getCellParams(i,F||"");N.current.publishEvent(Me,Ge,Ae),M&&M(Ae)},[N,F,M,i]),Ue=f.useCallback(Me=>Ae=>{const Ge=N.current.getCellParams(i,F||"");N.current.publishEvent(Me,Ge,Ae),x&&x(Ae)},[N,F,x,i]),$e=f.useCallback((Me,Ae)=>Ge=>{if(!N.current.getRow(i))return;const lt=N.current.getCellParams(i,F||"");N.current.publishEvent(Me,lt,Ge),Ae&&Ae(Ge)},[N,F,i]),Ze=Y[i]?.[c]??!1,Le=ee[i]?.[c]??1,Qe=f.useMemo(()=>{if(y)return{padding:0,opacity:0,width:0,height:0,border:0};const Me=mu(H({"--width":`${u}px`},p),$,b,m),Ae=b===mt.LEFT,Ge=b===mt.RIGHT;return Le>1&&(Me.height=`calc(var(--height) * ${Le})`,Me.zIndex=10,(Ae||Ge)&&(Me.zIndex=40)),Me},[u,y,p,m,b,$,Le]);if(ht(()=>{if(!oe||V===Vt.Edit)return;const Me=Qt(N.current.rootElementRef.current);if(te.current&&!te.current.contains(Me.activeElement)){const Ge=te.current.querySelector('[tabindex="0"]')||te.current;if(Iy())Ge.focus({preventScroll:!0});else{const lt=N.current.getScrollPosition();Ge.focus(),N.current.scroll(lt)}}},[oe,V,N]),Ze)return v.jsx("div",{"data-colindex":c,role:"presentation",style:H({width:"var(--width)"},Qe)});let Je=E.onFocus;process.env.NODE_ENV==="test"&&L.experimentalFeatures?.warnIfFocusStateIsNotSynced&&(Je=Me=>{const Ae=yo(N);if(Ae?.id===i&&Ae.field===F){typeof E.onFocus=="function"&&E.onFocus(Me);return}BI||(console.warn([`MUI X: The cell with id=${i} and field=${F} received focus.`,`According to the state, the focus should be at id=${Ae?.id}, field=${Ae?.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
|
-
`)),BI=!0)});let be,Ee;if(R===null&&r.renderCell&&(be=r.renderCell(G)),R!==null&&r.renderEditCell){const Me=N.current.getRowWithUpdatedValues(i,r.field),Ae=Te(R,SY),Ge=r.valueFormatter?r.valueFormatter(R.value,Me,r,N):G.formattedValue,lt=H({},G,{row:Me,formattedValue:Ge},Ae);be=r.renderEditCell(lt),se.push(j["cell--editing"]),se.push(q?.["cell--editing"])}if(be===void 0){const Me=ae?.toString();be=Me,Ee=Me}const me=h?null:{onDragEnter:$e("cellDragEnter",I),onDragOver:$e("cellDragOver",D)};return v.jsx("div",H({className:ie(xe.root,se,d),role:"gridcell","data-field":F,"data-colindex":c,"aria-colindex":c+1,"aria-colspan":g,"aria-rowspan":Le,style:Qe,title:Ee,tabIndex:J,onClick:$e("cellClick",S),onDoubleClick:$e("cellDoubleClick",P),onMouseOver:$e("cellMouseOver",k),onMouseDown:Ue("cellMouseDown"),onMouseUp:we("cellMouseUp"),onKeyDown:$e("cellKeyDown",T),onKeyUp:$e("cellKeyUp",O)},me,E,{onFocus:Je,ref:Q,children:be}))});process.env.NODE_ENV!=="production"&&(Ty.displayName="GridCell"),process.env.NODE_ENV!=="production"&&(Ty.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 PY=Tr(Ty),EY=["field","type","align","width","height","empty","style","className"],HI="1.3em",IY="1.2em",zI=[40,80],TY={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},MY=e=>{const{align:t,classes:n,empty:r}=e,s={root:["cell","cellSkeleton",`cell--text${t?pe(t):"Left"}`,r&&"cellEmpty"]};return de(s,ot,n)},OY=KG(12345);function jI(e){const{field:t,type:n,align:r,width:s,height:i,empty:a=!1,style:l,className:c}=e,u=Te(e,EY),d=De(),p={classes:d.classes,align:r,empty:a},g=MY(p),h=f.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:HI,height:HI};const[m,b]=n?TY[n]??zI:zI;return{variant:"text",width:`${Math.round(OY(m,b))}%`,height:IY}},[n]);return v.jsx("div",H({"data-field":t,className:ie(g.root,c),style:H({height:i,maxWidth:s,minWidth:s},l)},u,{children:!a&&v.jsx(d.slots.baseSkeleton,H({},h))}))}process.env.NODE_ENV!=="production"&&(jI.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 kY=Tr(jI),DY=10,If=-5,bl=1,GI={width:3,rx:1.5,x:10.5},FY="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",NY=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,RY=Z("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${j.autoHeight}`]:t.autoHeight},{[`&.${j.autosizing}`]:t.autosizing},{[`&.${j["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${j["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${j["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${j["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${j["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${j.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${j.actionsCell}`]:t.actionsCell},{[`& .${j.booleanCell}`]:t.booleanCell},{[`& .${j.cell}`]:t.cell},{[`& .${j["cell--editable"]}`]:t["cell--editable"]},{[`& .${j["cell--editing"]}`]:t["cell--editing"]},{[`& .${j["cell--flex"]}`]:t["cell--flex"]},{[`& .${j["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${j["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${j["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${j["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${j["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${j["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${j["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${j["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${j["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${j["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${j["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${j["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${j.cellCheckbox}`]:t.cellCheckbox},{[`& .${j.cellEmpty}`]:t.cellEmpty},{[`& .${j.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${j.cellSkeleton}`]:t.cellSkeleton},{[`& .${j.checkboxInput}`]:t.checkboxInput},{[`& .${j.columnHeader}`]:t.columnHeader},{[`& .${j["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${j["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${j["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${j["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${j["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${j["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${j["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${j["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${j["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${j["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${j["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${j["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${j["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${j["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${j["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${j["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${j["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${j.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${j.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${j.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${j.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${j.columnSeparator}`]:t.columnSeparator},{[`& .${j["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${j["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${j["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${j["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${j["container--bottom"]}`]:t["container--bottom"]},{[`& .${j["container--top"]}`]:t["container--top"]},{[`& .${j.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${j["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${j.editBooleanCell}`]:t.editBooleanCell},{[`& .${j.filterIcon}`]:t.filterIcon},{[`& .${j["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${j["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${j["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${j.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${j.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${j.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${j.headerFilterRow}`]:t.headerFilterRow},{[`& .${j.iconSeparator}`]:t.iconSeparator},{[`& .${j.menuIcon}`]:t.menuIcon},{[`& .${j.menuIconButton}`]:t.menuIconButton},{[`& .${j.menuList}`]:t.menuList},{[`& .${j.menuOpen}`]:t.menuOpen},{[`& .${j.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${j.pinnedRows}`]:t.pinnedRows},{[`& .${j["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${j["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${j.row}`]:t.row},{[`& .${j["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${j["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${j["row--dragging"]}`]:t["row--dragging"]},{[`& .${j["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${j["row--editable"]}`]:t["row--editable"]},{[`& .${j["row--editing"]}`]:t["row--editing"]},{[`& .${j["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${j["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${j.rowReorderCell}`]:t.rowReorderCell},{[`& .${j["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${j.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${j.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${j.rowSkeleton}`]:t.rowSkeleton},{[`& .${j.scrollbar}`]:t.scrollbar},{[`& .${j["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${j["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${j.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${j["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${j.sortIcon}`]:t.sortIcon},{[`& .${j.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${j.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${j.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${j.withBorderColor}`]:t.withBorderColor},{[`& .${j["row--beingDragged"]}`]:t["row--beingDragged"]}]})(()=>{const e=qn(),t=ue(e,NY),n=Ie.colors.background.base,r=Ie.header.background.base,s=Ie.cell.background.pinned,i=$Y(Ie.colors.interactive.hover),a=Ie.colors.interactive.hoverOpacity,l=Ie.colors.interactive.selected,c=Ie.colors.interactive.selectedOpacity,u=l,d=`calc(${c} + ${a})`,p={hover:Ie.colors.interactive.hover,selected:l,selectedHover:l},g=Zs(n,i,a,p.hover),h=Zs(n,l,c,p.selected),y=Zs(n,u,d,p.selectedHover),m=Zs(s,i,a,p.hover),b=Zs(s,l,c,p.selected),C=Zs(s,u,d,p.selectedHover),w=T=>({[`& .${j["cell--pinnedLeft"]}, & .${j["cell--pinnedRight"]}`]:{backgroundColor:T,"&.Mui-selected":{backgroundColor:Zs(T,h,c,p.selected),"&:hover":{backgroundColor:Zs(T,y,d,p.selectedHover)}}}}),S=w(m),P=w(b),x=w(C),M={backgroundColor:h,"&:hover":{backgroundColor:y,"@media (hover: none)":{backgroundColor:h}}};return{"--unstable_DataGrid-radius":Ie.radius.base,"--unstable_DataGrid-headWeight":Ie.typography.fontWeight.medium,"--DataGrid-rowBorderColor":Ie.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:Ie.colors.border.base,borderRadius:"var(--unstable_DataGrid-radius)",backgroundColor:Ie.colors.background.base,color:Ie.colors.foreground.base,font:Ie.typography.font.body,outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${j.main} > *:first-child${FY}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${j.autoHeight}`]:{height:"auto"},[`&.${j.autosizing}`]:{[`& .${j.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${j.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${j.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${j.groupingCriteriaCell}`]:{width:"unset"},[`& .${j.treeDataGroupingCell}`]:{width:"unset"},[`& .${j["columnHeader--filter"]}`]:{flex:"none !important",width:"unset !important"}},[`&.${j.withSidePanel}`]:{flexDirection:"row"},[`& .${j.mainContent}`]:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1},[`& .${j.columnHeader}, & .${j.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${j.columnHeader}:focus-within, & .${j.cell}:focus-within`]:{outline:`solid ${WI(Ie.colors.interactive.focus,.5)} ${bl}px`,outlineOffset:bl*-1},[`& .${j.columnHeader}:focus, & .${j.cell}:focus`]:{outline:`solid ${Ie.colors.interactive.focus} ${bl}px`,outlineOffset:bl*-1},[`& .${j.columnHeader}:focus,
|
|
338
|
-
& .${j["columnHeader--withLeftBorder"]},
|
|
339
|
-
& .${j["columnHeader--withRightBorder"]},
|
|
340
|
-
& .${j["columnHeader--siblingFocused"]}
|
|
341
|
-
`]:{[`& .${j.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${j["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${j["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${j["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${j["root--noToolbar"]} [aria-rowindex="1"] .${j["columnHeader--last"]}`]:{borderTopRightRadius:t?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${j.columnHeaderCheckbox}, & .${j.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${j.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",backgroundColor:r},[`& .${j.columnHeader} .${j.sortButton}`]:{backgroundColor:Ie.header.background.base},[`& .${j["columnHeader--filter"]}`]:{paddingTop:8,paddingBottom:8,paddingRight:5,minHeight:"min-content",overflow:"hidden"},[`& .${j["virtualScroller--hasScrollX"]} .${j["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${j["pivotPanelField--sorted"]} .${j.iconButtonContainer},
|
|
342
|
-
& .${j["columnHeader--sorted"]} .${j.iconButtonContainer},
|
|
343
|
-
& .${j["columnHeader--filtered"]} .${j.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${j.pivotPanelField}:not(.${j["pivotPanelField--sorted"]}) .${j.sortButton},
|
|
344
|
-
& .${j.columnHeader}:not(.${j["columnHeader--sorted"]}) .${j.sortButton}`]:{opacity:0,transition:Ie.transition(["opacity"],{duration:Ie.transitions.duration.short})},[`& .${j.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:Ie.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${j.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${j["columnHeader--filledGroup"]} .${j.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${j.sortIcon}, & .${j.filterIcon}`]:{fontSize:"inherit"},[`& .${j["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${j["columnHeader--alignCenter"]} .${j.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${j["columnHeader--alignRight"]} .${j.columnHeaderDraggableContainer}, & .${j["columnHeader--alignRight"]} .${j.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${j["columnHeader--alignCenter"]} .${j.menuIcon}`]:{marginLeft:"auto"},[`& .${j["columnHeader--alignRight"]} .${j.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${j["columnHeader--moving"]}`]:{backgroundColor:g},[`& .${j["columnHeader--pinnedLeft"]}, & .${j["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:Ie.header.background.base},[`& .${j.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:DY,color:Ie.colors.border.base},[`& .${j.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)",backgroundColor:r},"@media (hover: hover)":{[`& .${j.columnHeader}:hover`]:{[`& .${j.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${j.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${j.columnHeader}:not(.${j["columnHeader--sorted"]}):hover .${j.sortButton},
|
|
345
|
-
& .${j.pivotPanelField}:not(.${j["pivotPanelField--sorted"]}):hover .${j.sortButton},
|
|
346
|
-
& .${j.pivotPanelField}:not(.${j["pivotPanelField--sorted"]}) .${j.sortButton}:focus-visible`]:{opacity:1},[`& .${j.columnHeader}:not(.${j["columnHeader--sorted"]}):hover .${j.sortButton} > *,
|
|
347
|
-
& .${j.pivotPanelField}:not(.${j["pivotPanelField--sorted"]}):hover .${j.sortButton} > *,
|
|
348
|
-
& .${j.pivotPanelField}:not(.${j["pivotPanelField--sorted"]}) .${j.sortButton}:focus-visible > *`]:{opacity:.78},[`& .${j.pivotPanelFieldActionContainer} button:hover`]:{backgroundColor:Ie.colors.background.base}},"@media (hover: none)":{[`& .${j.columnHeader} .${j.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${j.columnHeader}:focus,
|
|
349
|
-
& .${j["columnHeader--siblingFocused"]}`]:{[`.${j["columnSeparator--resizable"]}`]:{color:Ie.colors.foreground.accent}},[`& .${j.pivotPanelField}:not(.${j["pivotPanelField--sorted"]}) .${j.sortButton}`]:{opacity:.78}},[`& .${j["columnHeader--withLeftBorder"]} .${j["columnSeparator--sideLeft"]}:not(.${j["columnSeparator--resizable"]}), & .${j["columnHeader--withRightBorder"]} .${j["columnSeparator--sideRight"]}:not(.${j["columnSeparator--resizable"]})`]:{display:"none"},[`& .${j["columnSeparator--sideLeft"]}`]:{left:If},[`& .${j["columnSeparator--sideRight"]}`]:{right:If},[`& .${j["columnHeader--withRightBorder"]} .${j["columnSeparator--sideLeft"]}`]:{left:If-.5},[`& .${j["columnHeader--withRightBorder"]} .${j["columnSeparator--sideRight"]}`]:{right:If-.5},[`& .${j["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${j["columnSeparator--resizing"]}`]:{color:Ie.colors.foreground.accent},"@media (hover: none)":{[`& .${j.iconSeparator} rect`]:GI},"@media (hover: hover)":{"&:hover":{color:Ie.colors.foreground.accent,[`& .${j.iconSeparator} rect`]:GI}},"& svg":{pointerEvents:"none"}},[`& .${j.iconSeparator}`]:{color:"inherit",transition:Ie.transition(["color","width"],{duration:Ie.transitions.duration.short})},[`& .${j.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${j.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${j.headerFilterRow}`]:{[`& .${j.columnHeader}, & .${j.scrollbarFiller}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${j["row--borderBottom"]} .${j.columnHeader},
|
|
350
|
-
& .${j["row--borderBottom"]} .${j.filler},
|
|
351
|
-
& .${j["row--borderBottom"]} .${j.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${j["row--borderBottom"]} .${j.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${j.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${j["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:g,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${j.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":M,position:"relative"},[`& .${j.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},[`& .${j["virtualScrollerContent--overflowed"]} .${j["row--lastVisible"]} .${j.cell}`]:{borderTopColor:"transparent"},[`& .${j.pinnedRows} .${j.row}, .${j.aggregationRowOverlayWrapper} .${j.row}`]:{backgroundColor:s,"&:hover":{backgroundColor:m}},[`& .${j["pinnedRows--top"]} :first-of-type`]:{[`& .${j.cell}, .${j.scrollbarFiller}`]:{borderTop:"none"}},[`&.${j["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${j["row--dynamicHeight"]} > .${j.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${j.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${j.cell}.${j["cell--selectionMode"]}`]:{cursor:"default"},[`& .${j.cell}.${j["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:Ie.shadows.base,backgroundColor:Ie.colors.background.overlay,"&:focus-within":{outline:`${bl}px solid ${Ie.colors.interactive.focus}`,outlineOffset:bl*-1}},[`& .${j["cell--editing"]}`]:{"& .MuiInputBase-root":{height:"100%"}},[`& .${j["row--editing"]}`]:{boxShadow:Ie.shadows.base},[`& .${j["row--editing"]} .${j.cell}`]:{boxShadow:"none",backgroundColor:Ie.colors.background.overlay},[`& .${j.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${j.booleanCell}[data-value="true"]`]:{color:Ie.colors.foreground.muted},[`& .${j.booleanCell}[data-value="false"]`]:{color:Ie.colors.foreground.disabled},[`& .${j.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:Ie.spacing(1)},[`& .${j.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:Ie.colors.interactive.disabledOpacity},[`& .${j["rowReorderCell--draggable"]}`]:{cursor:"grab",opacity:1},[`& .${j.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${j.withBorderColor}`]:{borderColor:Ie.colors.border.base},[`& .${j["cell--withLeftBorder"]}, & .${j["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${j["cell--withRightBorder"]}, & .${j["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${j["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${j["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${j["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${j["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${j["cell--pinnedLeft"]}, & .${j["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:Ie.cell.background.pinned,"&.Mui-selected":{backgroundColor:b}},[`& .${j.row}`]:{"&:hover":S,"&.Mui-selected":P,"&.Mui-selected:hover":x},[`& .${j.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${j.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${j.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${j.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${j["columnHeader--dragging"]}`]:{background:Ie.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:Ie.colors.interactive.disabledOpacity},[`& .${j["row--dragging"]}`]:{background:Ie.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",border:"1px solid var(--DataGrid-rowBorderColor)",color:Ie.colors.foreground.base,transform:"translateZ(0)",[`& .${j.rowReorderCellPlaceholder}`]:{padding:"0 6px",display:"flex"}},[`& .${j.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${j.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:Ie.spacing(2)},[`& .${j.treeDataGroupingCellLoadingContainer}, .${j.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${j.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${j.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:Ie.spacing(2)},[`& .${j.columnHeaders} .${j.scrollbarFiller}`]:{backgroundColor:r},[`.${j.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",backgroundColor:r,[`&.${j["scrollbarFiller--pinnedRight"]}`]:{position:"sticky",zIndex:40,right:0}},[`& .${j.filler}`]:{flex:"1 0 auto"},[`& .${j["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${j.columnHeaders} .${j.filler}`]:{backgroundColor:r},[`& .${j["main--hiddenContent"]}`]:{[`& .${j.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${j.pinnedRows}`]:{display:"none"}},[`& .${j["row--beingDragged"]}`]:{color:Ie.colors.foreground.disabled,"&:hover":{backgroundColor:"transparent"}}}});function WI(e,t){return`rgba(from ${e} r g b / ${t})`}function $Y(e){return WI(e,1)}const My=typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("color","color-mix(in srgb, red 50%, blue 50%)"),Oy=(e,t)=>My?e:t;function Zs(e,t,n,r){return Oy(`color-mix(in srgb,${e}, ${t} calc(${n} * 100%))`,r)}const LY=()=>()=>{},AY=()=>!1,VY=()=>!0,_Y=()=>Db.useSyncExternalStore(LY,AY,VY),ky=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(ky.displayName="GridPanelContext");function Dy(){const e=f.useContext(ky);if(e===void 0)throw new Error("MUI X: Missing context.");return e}function BY({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(ky.Provider,{value:s,children:e})}function HY(){const e=tt(),t=ue(e,Ko),n=De(),r=ue(e,Ki),{columnsPanelTriggerRef:s,filterPanelTriggerRef:i,aiAssistantPanelTriggerRef:a}=Dy(),l=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??vo.filters);let c=null;switch(r.openedPanelValue){case vo.filters:c=i.current;break;case vo.columns:c=s.current;break;case vo.aiAssistant:c=a.current;break}return v.jsx(n.slots.panel,H({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 zY(){const e=De();return v.jsxs(f.Fragment,{children:[v.jsx(HY,{}),e.showToolbar&&v.jsx(e.slots.toolbar,H({},e.slotProps?.toolbar))]})}const jY=["className","children","sidePanel"],GY=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:s}=e,i={root:["root",n&&"autoHeight",`root--density${pe(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",s&&"withVerticalBorder"]};return de(i,ot,r)},Fy=Xe(function(t,n){const r=De(),{className:s,children:i,sidePanel:a}=t,l=Te(t,jY),c=qn(),u=ue(c,nl),d=c.current.rootElementRef,p=f.useCallback(C=>{C!==null&&c.current.publishEvent("rootMount",C)},[c]),g=st(d,n,p),h=r,y=GY(h,u),m=uW();return _Y()?null:v.jsxs(RY,H({className:ie(y.root,s,m.className,a&&j.withSidePanel),ownerState:h},l,{ref:g,children:[v.jsxs("div",{className:j.mainContent,role:"presentation",children:[v.jsx(zY,{}),v.jsx(hY,{children:i}),v.jsx(gY,{})]}),a,m.tag]}))});process.env.NODE_ENV!=="production"&&(Fy.displayName="GridRoot"),process.env.NODE_ENV!=="production"&&(Fy.propTypes={sidePanel:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const WY=Tr(Fy),UY=["className"],qY=e=>{const{classes:t}=e;return de({root:["footerContainer","withBorderColor"]},ot,t)},YY=xt("div",{name:"MuiDataGrid",slot:"FooterContainer"})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),Ny=Xe(function(t,n){const{className:r}=t,s=Te(t,UY),i=De(),a=qY(i);return v.jsx(YY,H({className:ie(a.root,r),ownerState:i},s,{ref:n}))});process.env.NODE_ENV!=="production"&&(Ny.displayName="GridFooterContainer"),process.env.NODE_ENV!=="production"&&(Ny.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const KY=["className"],XY=e=>{const{classes:t}=e;return de({root:["overlay"]},ot,t)},ZY=xt("div",{name:"MuiDataGrid",slot:"Overlay"})({width:"100%",height:"100%",display:"flex",gap:Ie.spacing(1),flexDirection:"column",alignSelf:"center",alignItems:"center",justifyContent:"center",textAlign:"center",textWrap:"balance",backgroundColor:Ie.colors.background.backdrop}),yl=Xe(function(t,n){const{className:r}=t,s=Te(t,KY),i=De(),a=XY(i);return v.jsx(ZY,H({className:ie(a.root,r),ownerState:i},s,{ref:n}))});process.env.NODE_ENV!=="production"&&(yl.displayName="GridOverlay"),process.env.NODE_ENV!=="production"&&(yl.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function es(e,t,n,r={}){return typeof t=="function"?t(n,r):t?(t.props.className&&(n.className=QY(t.props.className,n.className)),(t.props.style||n.style)&&(n.style=Qc({},n.style,t.props.style)),f.cloneElement(t,n)):f.createElement(e,n)}function QY(e,t){return!e||!t?e||t:`${e} ${t}`}const Ry=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ry.displayName="ToolbarContext");function JY(){const e=f.useContext(Ry);if(e===void 0)throw new Error("MUI X: Missing context. Toolbar subcomponents must be placed within a <Toolbar /> component.");return e}function eK(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 tK=["render","className"],nK=e=>{const{classes:t}=e;return de({root:["toolbar"]},ot,t)},oK=xt("div",{name:"MuiDataGrid",slot:"Toolbar"})({flex:"0 1 1px",display:"flex",alignItems:"center",justifyContent:"end",gap:Ie.spacing(.25),padding:Ie.spacing(.75),minHeight:52,boxSizing:"border-box",borderBottom:`1px solid ${Ie.colors.border.base}`}),$y=Xe(function(t,n){const{render:r,className:s}=t,i=Te(t,tK),a=De(),l=nK(a),[c,u]=f.useState(null),[d,p]=f.useState([]),g=f.useCallback(()=>d.sort(eK),[d]),h=f.useCallback((x,M,k=!0)=>{let T=x;const O=g(),I=O.length;for(let D=0;D<I;D+=1){if(T+=M,T>=I){if(!k)return-1;T=0}else if(T<0){if(!k)return-1;T=I-1}if(!O[T].ref.current?.disabled&&O[T].ref.current?.ariaDisabled!=="true")return T}return-1},[g]),y=f.useCallback((x,M)=>{p(k=>[...k,{id:x,ref:M}])},[]),m=f.useCallback(x=>{p(M=>M.filter(k=>k.id!==x))},[]),b=f.useCallback(x=>{if(!c)return;const M=g(),k=M.findIndex(O=>O.id===c);let T=-1;if(x.key==="ArrowRight"?(x.preventDefault(),T=h(k,1)):x.key==="ArrowLeft"?(x.preventDefault(),T=h(k,-1)):x.key==="Home"?(x.preventDefault(),T=h(-1,1,!1)):x.key==="End"&&(x.preventDefault(),T=h(M.length,-1,!1)),T>=0&&T<M.length){const O=M[T];u(O.id),O.ref.current?.focus()}},[g,c,h]),C=f.useCallback(x=>{c!==x&&u(x)},[c,u]),w=f.useCallback(x=>{const M=g(),k=M.findIndex(O=>O.id===x),T=h(k,1);if(T>=0&&T<M.length){const O=M[T];u(O.id),O.ref.current?.focus()}},[g,h]);f.useEffect(()=>{const x=g();if(x.length>0){if(!c){u(x[0].id);return}const M=x.findIndex(k=>k.id===c);if(x[M]){if(M===-1){const k=x[M];k&&(u(k.id),k.ref.current?.focus())}}else{const k=x[x.length-1];k&&(u(k.id),k.ref.current?.focus())}}},[g,h]);const S=f.useMemo(()=>({focusableItemId:c,registerItem:y,unregisterItem:m,onItemKeyDown:b,onItemFocus:C,onItemDisabled:w}),[c,y,m,b,C,w]),P=es(oK,r,H({role:"toolbar","aria-orientation":"horizontal","aria-label":a.label||void 0,className:ie(l.root,s)},i,{ref:n}));return v.jsx(Ry.Provider,{value:S,children:P})});process.env.NODE_ENV!=="production"&&($y.displayName="Toolbar"),process.env.NODE_ENV!=="production"&&($y.propTypes={render:o.oneOfType([o.element,o.func])});const rK=["render","onKeyDown","onFocus","disabled","aria-disabled"],vl=Xe(function(t,n){const{render:r,onKeyDown:s,onFocus:i,disabled:a,"aria-disabled":l}=t,c=Te(t,rK),u=dt(),d=De(),p=f.useRef(null),g=st(p,n),{focusableItemId:h,registerItem:y,unregisterItem:m,onItemKeyDown:b,onItemFocus:C,onItemDisabled:w}=JY(),S=T=>{b(T),s?.(T)},P=T=>{C(u),i?.(T)};f.useEffect(()=>(y(u,p),()=>m(u)),[]);const x=f.useRef(a);f.useEffect(()=>{x.current!==a&&a===!0&&w(u,a),x.current=a},[a,u,w]);const M=f.useRef(l);f.useEffect(()=>{M.current!==l&&l===!0&&w(u,!0),M.current=l},[l,u,w]);const k=es(d.slots.baseIconButton,r,H({},d.slotProps?.baseIconButton,{tabIndex:h===u?0:-1},c,{disabled:a,"aria-disabled":l,onKeyDown:S,onFocus:P,ref:g}));return v.jsx(f.Fragment,{children:k})});process.env.NODE_ENV!=="production"&&(vl.displayName="ToolbarButton"),process.env.NODE_ENV!=="production"&&(vl.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});const sK=e=>{const{classes:t,open:n}=e;return de({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},ot,t)},UI=f.memo(e=>{const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:s,iconButtonRef:i}=e,a=tt(),l=De(),c=H({},e,{classes:l.classes}),u=sK(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,H({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},l.slotProps?.baseTooltip,{children:v.jsx(l.slots.baseIconButton,H({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"&&(UI.displayName="ColumnHeaderMenuIcon");function qI({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:s,open:i,target:a,onExited:l}){const c=tt(),u=c.current.getColumn(s),d=fe(p=>{p&&(p.stopPropagation(),a?.contains(p.target))||c.current.hideColumnMenu()});return!a||!u?null:v.jsx(sl,{position:`bottom-${u.align==="right"?"start":"end"}`,open:i,target:a,onClose:d,onExited:l,children:v.jsx(n,H({colDef:u,hideMenu:d,open:i,id:e,labelledby:t},r))})}process.env.NODE_ENV!=="production"&&(qI.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:ar});function iK(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Tf(e,t){return e.closest(`.${t}`)}function ts(e){return e.replace(/["\\]/g,"\\$&")}function aK(e,t){return e.querySelector(`[role="columnheader"][data-field="${ts(t)}"]`)}function YI(e){return`.${j.row}[data-id="${ts(String(e))}"]`}function lK(e,t){return e.querySelector(YI(t))}function cK(e,{id:t,field:n}){const r=YI(t),s=`.${j.cell}[data-field="${ts(n)}"]`,i=`${r} ${s}`;return e.querySelector(i)}function Cl(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function uK(e){return e.getAttribute("data-field")}function dK(e,t){return e.querySelector(`[data-field="${ts(t)}"]`)}function pK(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function fK(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${ts(t)}-|"]`)??[])}function hK(e,t){if(!Tf(e,j.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?(QI(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 KI(e,t){return e.rootElementRef.current.querySelector(`.${j[t]}`)}const XI=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const s=[];return QI(e).forEach(i=>{i.getAttribute("data-id")&&i.querySelectorAll(`.${j[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(l=>{const c=wl(l);c!==null&&r(c)&&s.push(l)})}),s};function gK(e,t,n){const r=wl(t);return XI({api:e,colIndex:r,position:n?"right":"left",filterFn:s=>n?s<r:s>r})}function mK(e,t,n){const r=wl(t);return XI({api:e,colIndex:r,position:n?"left":"right",filterFn:s=>n?s>r:s<r})}const ZI=({api:e,colIndex:t,position:n,filterFn:r})=>{if(!e.columnHeadersContainerRef?.current)return[];if(t===null)return[];const s=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${j[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(i=>{const a=wl(i);a!==null&&r(a,i)&&s.push(i)}),s};function bK(e,t,n){const r=wl(t);return ZI({api:e,position:n?"right":"left",colIndex:r,filterFn:s=>n?s<r:s>r})}function yK(e,t,n){const r=wl(t);return ZI({api:e,position:n?"left":"right",colIndex:r,filterFn:(s,i)=>i.classList.contains(j["columnHeader--last"])?!1:n?s>r:s<r})}function vK(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${ts(t)}"][role="columnheader"]`)}function CK(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > .${j.headerFilterRow} > [data-field="${ts(t)}"]`)}function wK(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${ts(t)}"][role="gridcell"]`))}function QI(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${j.row}`)}function wl(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const SK=["className","aria-label"],xK=e=>{const{classes:t}=e;return de({root:["columnHeaderTitle"]},ot,t)},PK=xt("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle"})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),JI=Xe(function(t,n){const{className:r}=t,s=Te(t,SK),i=De(),a=xK(i);return v.jsx(PK,H({className:ie(a.root,r),ownerState:i},s,{ref:n}))});process.env.NODE_ENV!=="production"&&(JI.displayName="ColumnHeaderInnerTitle");function eT(e){const{label:t,description:n}=e,r=De(),s=f.useRef(null),[i,a]=f.useState(""),l=f.useCallback(()=>{if(!n&&s?.current){const c=iK(s.current);a(c?t:"")}},[n,t]);return v.jsx(r.slots.baseTooltip,H({title:n||i},r.slotProps?.baseTooltip,{children:v.jsx(JI,{onMouseOver:l,ref:s,children:t})}))}process.env.NODE_ENV!=="production"&&(eT.propTypes={columnWidth:o.number.isRequired,description:o.node,label:o.string.isRequired});const EK=["resizable","resizing","height","side"];var Ly=(function(e){return e.Left="left",e.Right="right",e})(Ly||{});const IK=e=>{const{resizable:t,resizing:n,classes:r,side:s}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",s&&`columnSeparator--side${pe(s)}`],icon:["iconSeparator"]};return de(i,ot,r)};function tT(e){const{height:t,side:n=Ly.Right}=e,r=Te(e,EK),s=De(),i=H({},e,{side:n,classes:s.classes}),a=IK(i),l=f.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return v.jsx("div",H({className:a.root,style:{minHeight:t}},r,{onClick:l,children:v.jsx(s.slots.columnResizeIcon,{className:a.icon})}))}const nT=f.memo(tT);process.env.NODE_ENV!=="production"&&(nT.displayName="GridColumnHeaderSeparator"),process.env.NODE_ENV!=="production"&&(tT.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"],Ay=Xe(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:y=null,columnMenu:m=null,columnTitleIconButtons:b=null,headerClassName:C,label:w,resizable:S,draggableContainerProps:P,columnHeaderSeparatorProps:x,style:M}=t,k=Te(t,TK),T=De(),O=f.useRef(null),I=st(O,n);let D="none";return l!=null&&(D=l==="asc"?"ascending":"descending"),v.jsxs("div",H({className:ie(r.root,C),style:H({},M,{width:h}),role:"columnheader",tabIndex:c,"aria-colindex":s+1,"aria-sort":D},k,{ref:I,children:[v.jsxs("div",H({className:r.draggableContainer,draggable:d,role:"presentation"},P,{children:[v.jsxs("div",{className:r.titleContainer,role:"presentation",children:[v.jsx("div",{className:r.titleContainerContent,children:p!==void 0?p:v.jsx(eT,{label:w,description:g,columnWidth:h})}),b]}),y]})),v.jsx(nT,H({resizable:!T.disableColumnResize&&!!S,resizing:a,height:i,side:u},x)),m]}))});process.env.NODE_ENV!=="production"&&(Ay.displayName="GridGenericColumnHeaderItem");const MK=e=>{const{disableColumnSorting:t}=De(),{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,y=n.type==="number",m={root:["columnHeader",n.headerAlign==="left"&&"columnHeader--alignLeft",n.headerAlign==="center"&&"columnHeader--alignCenter",n.headerAlign==="right"&&"columnHeader--alignRight",p&&"columnHeader--sortable",s&&"columnHeader--moving",g&&"columnHeader--sorted",h&&"columnHeader--filtered",y&&"columnHeader--numeric","withBorderColor",a&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder",u===mt.LEFT&&"columnHeader--pinnedLeft",u===mt.RIGHT&&"columnHeader--pinnedRight",d&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return de(m,ot,r)};function oT(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:y,showRightBorder:m,pinnedPosition:b,pinnedOffset:C}=e,w=qn(),S=De(),P=Gt(),x=f.useRef(null),M=dt(),k=dt(),T=f.useRef(null),[O,I]=f.useState(n),D=!S.disableColumnReorder&&!g&&!t.disableReorder;let E;t.renderHeader&&(E=t.renderHeader(w.current.getColumnHeaderParams(t.field)));const N=H({},e,{classes:S.classes,showRightBorder:m,showLeftBorder:y}),L=MK(N),$=f.useCallback(oe=>K=>{Cl(K)||w.current.publishEvent(oe,w.current.getColumnHeaderParams(t.field),K)},[w,t.field]),F=f.useMemo(()=>({onClick:$("columnHeaderClick"),onContextMenu:$("columnHeaderContextMenu"),onDoubleClick:$("columnHeaderDoubleClick"),onMouseOver:$("columnHeaderOver"),onMouseOut:$("columnHeaderOut"),onMouseEnter:$("columnHeaderEnter"),onMouseLeave:$("columnHeaderLeave"),onKeyDown:$("columnHeaderKeyDown"),onFocus:$("columnHeaderFocus"),onBlur:$("columnHeaderBlur")}),[$]),R=f.useMemo(()=>D?{onDragStart:$("columnHeaderDragStart"),onDragEnter:$("columnHeaderDragEnter"),onDragOver:$("columnHeaderDragOver"),onDragEndCapture:$("columnHeaderDragEnd")}:{},[D,$]),B=f.useMemo(()=>({onMouseDown:$("columnSeparatorMouseDown"),onDoubleClick:$("columnSeparatorDoubleClick")}),[$]);f.useEffect(()=>{!O&&n&&I(n)},[O,n]);const _=f.useCallback(()=>{I(!1)},[]),V=!S.disableColumnMenu&&!t.disableColumnMenu&&v.jsx(UI,{colDef:t,columnMenuId:M,columnMenuButtonId:k,open:O,iconButtonRef:T}),A=v.jsx(qI,{columnMenuId:M,columnMenuButtonId:k,field:t.field,open:n,target:T.current,ContentComponent:S.slots.columnMenu,contentComponentProps:S.slotProps?.columnMenu,onExited:_}),z=t.sortingOrder??S.sortingOrder,G=(t.sortable||l!=null)&&!t.hideSortIcons&&!S.disableColumnSorting,U=v.jsxs(f.Fragment,{children:[!S.disableColumnFilter&&v.jsx(S.slots.columnHeaderFilterIconButton,H({field:t.field,counter:u},S.slotProps?.columnHeaderFilterIconButton)),G&&v.jsx(S.slots.columnHeaderSortIcon,H({field:t.field,direction:l,index:c,sortingOrder:z,disabled:!t.sortable},S.slotProps?.columnHeaderSortIcon))]});f.useLayoutEffect(()=>{const oe=w.current.state.columnMenu;if(d&&!oe.open){const W=x.current.querySelector('[tabindex="0"]')||x.current;if(!W)return;if(Iy())W.focus({preventScroll:!0});else{const J=w.current.getScrollPosition();W.focus(),w.current.scroll(J)}}},[w,d]);const X=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,Y=t.headerName??t.field,ee=f.useMemo(()=>mu(H({},e.style),P,b,C),[b,C,e.style,P]);return v.jsx(Ay,H({ref:x,classes:L,columnMenuOpen:n,colIndex:r,height:s,isResizing:i,sortDirection:l,hasFocus:d,tabIndex:p,separatorSide:h,isDraggable:D,headerComponent:E,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:V,columnTitleIconButtons:U,headerClassName:ie(X,a&&j["columnHeader--last"]),label:Y,resizable:!S.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:A,draggableContainerProps:R,columnHeaderSeparatorProps:B,style:ee},F))}process.env.NODE_ENV!=="production"&&(oT.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 OK=Tr(oT),kK=["className"],DK=e=>{const{classes:t}=e;return de({root:["iconButtonContainer"]},ot,t)},FK=xt("div",{name:"MuiDataGrid",slot:"IconButtonContainer"})(()=>({display:"flex",visibility:"hidden",width:0})),Vy=Xe(function(t,n){const{className:r}=t,s=Te(t,kK),i=De(),a=DK(i);return v.jsx(FK,H({className:ie(a.root,r),ownerState:i},s,{ref:n}))});process.env.NODE_ENV!=="production"&&(Vy.displayName="GridIconButtonContainer");const NK=["direction","index","sortingOrder","disabled","className"],RK=e=>{const{classes:t}=e;return de({root:["sortButton"],icon:["sortIcon"]},ot,t)},$K=xt(Kr,{name:"MuiDataGrid",slot:"SortButton"})({transition:Ie.transition(["opacity"],{duration:Ie.transitions.duration.short,easing:Ie.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,H({fontSize:"small",className:n},i)):null}function rT(e){const{direction:t,index:n,sortingOrder:r,disabled:s,className:i}=e,a=Te(e,NK),l=tt(),c=De(),u=H({},e,{classes:c.classes}),d=RK(u),p=LK(c.slots,t,d.icon,r);if(!p)return null;const g=v.jsx($K,H({as:c.slots.baseIconButton,ownerState:u,"aria-label":l.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:s,className:ie(d.root,i)},c.slotProps?.baseIconButton,a,{children:p}));return v.jsx(c.slots.baseTooltip,H({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"&&(rT.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 sT(e){return v.jsx(Vy,{children:v.jsx(rT,H({},e,{tabIndex:-1}))})}const iT=f.memo(sT);process.env.NODE_ENV!=="production"&&(iT.displayName="GridColumnHeaderSortIcon"),process.env.NODE_ENV!=="production"&&(sT.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 AK=e=>{const{classes:t}=e;return de({icon:["filterIcon"]},ot,t)};function aT(e){return e.counter?v.jsx(lT,H({},e)):null}process.env.NODE_ENV!=="production"&&(aT.propTypes={counter:o.number,field:o.string.isRequired,onClick:o.func});function lT(e){const{counter:t,field:n,onClick:r}=e,s=tt(),i=De(),a=H({},e,{classes:i.classes}),l=AK(a),c=dt(),u=ue(s,aq,c),d=dt(),p=f.useCallback(h=>{h.preventDefault(),h.stopPropagation();const{open:y,openedPanelValue:m}=Ki(s);y&&m===vo.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,H({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,H({title:s.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},i.slotProps?.baseTooltip,{children:v.jsxs(Vy,{children:[t>1&&v.jsx(i.slots.baseBadge,{badgeContent:t,color:"default",children:g}),t===1&&g]})}))}process.env.NODE_ENV!=="production"&&(lT.propTypes={counter:o.number,field:o.string.isRequired,onClick:o.func});const Jt=vt,cT=Jt(v.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),uT=Jt(v.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),dT=Jt(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"),pT=Jt(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),VK=Jt(v.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),fT=Jt(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"),_K=Jt(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");Jt(v.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),Jt(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 BK=Jt(v.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ColumnIcon"),HK=Jt(v.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),zK=Jt(v.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),jK=Jt(v.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),GK=Jt(v.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),WK=Jt(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"),hT=Jt(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"),gT=Jt(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),UK=Jt(v.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),qK=Jt(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"),mT=Jt(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"),bT=Jt(v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),YK=Jt(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"),KK=Jt(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"),XK=Jt(v.jsx("g",{children:v.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),yT=Jt(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");Jt(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 ZK=Jt(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"),QK=Jt(v.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),JK=["hideMenu","colDef","id","labelledby","className","children","open"],eX=Z(Kr)(()=>({minWidth:248}));function vT(e){e.currentTarget.contains(e.target)&&e.stopPropagation()}const _y=Xe(function(t,n){const{hideMenu:r,id:s,labelledby:i,className:a,children:l,open:c}=t,u=Te(t,JK),d=De(),p=f.useCallback(g=>{g.key==="Tab"&&g.preventDefault(),SE(g.key)&&r(g)},[r]);return v.jsx(eX,H({as:d.slots.baseMenuList,id:s,className:ie(j.menuList,a),"aria-labelledby":i,onKeyDown:p,onWheel:vT,onTouchMove:vT,autoFocus:c},u,{ref:n,children:l}))});process.env.NODE_ENV!=="production"&&(_y.displayName="GridColumnMenuContainer"),process.env.NODE_ENV!=="production"&&(_y.propTypes={colDef:o.object.isRequired,hideMenu:o.func.isRequired,id:o.string,labelledby:o.string,open:o.bool.isRequired});const tX=["displayOrder"],nX=e=>{const t=qn(),n=De(),{defaultSlots:r,defaultSlotProps:s,slots:i={},slotProps:a={},hideMenu:l,colDef:c,addDividers:u=!0}=e,d=f.useMemo(()=>H({},r,i),[r,i]),p=f.useMemo(()=>{if(!a||Object.keys(a).length===0)return s;const y=H({},a);return Object.entries(s).forEach(([m,b])=>{y[m]=H({},b,a[m]||{})}),y},[s,a]),g=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),h=f.useMemo(()=>{const y=Object.keys(r);return Object.keys(i).filter(m=>!y.includes(m))},[i,r]);return f.useMemo(()=>{const b=Array.from(new Set([...g,...h])).filter(C=>d[C]!=null).sort((C,w)=>{const S=p[C],P=p[w],x=Number.isFinite(S?.displayOrder)?S.displayOrder:100,M=Number.isFinite(P?.displayOrder)?P.displayOrder:100;return x-M});return b.reduce((C,w,S)=>{let P={colDef:c,onClick:l};const x=p[w];if(x){const M=Te(x,tX);P=H({},P,M)}return u&&S!==b.length-1?[...C,[d[w],P],[n.slots.baseDivider,{}]]:[...C,[d[w],P]]},[])},[u,c,g,l,d,p,h,n.slots.baseDivider])};function CT(e){const{colDef:t,onClick:n}=e,r=tt(),s=De(),l=hn(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"&&(CT.propTypes={colDef:o.object.isRequired,onClick:o.func.isRequired});function wT(e){const{onClick:t}=e,n=tt(),r=De(),s=f.useCallback(i=>{t(i),n.current.showPreferences(vo.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"&&(wT.propTypes={colDef:o.object.isRequired,onClick:o.func.isRequired});function ST(e){return v.jsxs(f.Fragment,{children:[v.jsx(CT,H({},e)),v.jsx(wT,H({},e))]})}process.env.NODE_ENV!=="production"&&(ST.propTypes={colDef:o.object.isRequired,onClick:o.func.isRequired});function xT(e){const{colDef:t,onClick:n}=e,r=tt(),s=De(),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"&&(xT.propTypes={colDef:o.object.isRequired,onClick:o.func.isRequired});function PT(e){const{colDef:t,onClick:n}=e,r=tt(),s=ue(r,Un),i=De(),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"&&(PT.propTypes={colDef:o.object.isRequired,onClick:o.func.isRequired});const oX=["defaultSlots","defaultSlotProps","slots","slotProps"],ET={columnMenuSortItem:PT,columnMenuFilterItem:xT,columnMenuColumnsItem:ST},IT={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Mf=Xe(function(t,n){const{defaultSlots:r,defaultSlotProps:s,slots:i,slotProps:a}=t,l=Te(t,oX),c=nX(H({},l,{defaultSlots:r,defaultSlotProps:s,slots:i,slotProps:a}));return v.jsx(_y,H({},l,{ref:n,children:c.map(([u,d],p)=>v.jsx(u,H({},d),p))}))});process.env.NODE_ENV!=="production"&&(Mf.displayName="GridGenericColumnMenu"),process.env.NODE_ENV!=="production"&&(Mf.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 By=Xe(function(t,n){return v.jsx(Mf,H({},t,{ref:n,defaultSlots:ET,defaultSlotProps:IT}))});process.env.NODE_ENV!=="production"&&(By.displayName="GridColumnMenu"),process.env.NODE_ENV!=="production"&&(By.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 rX=["className"],sX=e=>{const{classes:t}=e;return de({root:["panelWrapper"]},ot,t)},iX=Z("div",{name:"MuiDataGrid",slot:"PanelWrapper"})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Hy=Xe(function(t,n){const{className:r}=t,s=Te(t,rX),i=De(),a=sX(i);return v.jsx(iX,H({tabIndex:-1,className:ie(a.root,r),ownerState:i},s,{ref:n}))});process.env.NODE_ENV!=="production"&&(Hy.displayName="GridPanelWrapper");function aX(e){const t=De();return v.jsx(Hy,H({},e,{children:v.jsx(t.slots.columnsManagement,H({},t.slotProps?.columnsManagement))}))}const lX=["children","className","classes","onClose"],cX=Oe("MuiDataGrid",["panel","paper"]),uX=Z(Kr,{name:"MuiDataGrid",slot:"panel"})({zIndex:Ie.zIndex.panel}),dX=Z("div",{name:"MuiDataGrid",slot:"panelContent"})({backgroundColor:Ie.colors.background.overlay,borderRadius:Ie.radius.base,boxShadow:Ie.shadows.overlay,display:"flex",maxWidth:`calc(100vw - ${Ie.spacing(2)})`,overflow:"auto"}),zy=Xe((e,t)=>{const{children:n,className:r,onClose:s}=e,i=Te(e,lX),a=tt(),l=De(),c=cX,[u,d]=f.useState(!1),p=PE(),g=fe(()=>d(!0)),h=fe(()=>d(!1)),y=fe(()=>{s?.()}),m=fe(w=>{w.key==="Escape"&&s?.()}),[b,C]=f.useState(null);return f.useEffect(()=>{const w=a.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');w&&C(w)},[a]),b?v.jsx(uX,H({as:l.slots.basePopper,ownerState:l,placement:"bottom-end",className:ie(c.panel,r,p),flip:!0,onDidShow:g,onDidHide:h,onClickAway:y,clickAwayMouseEvent:"onPointerUp",clickAwayTouchEvent:!1,focusTrap:!0},i,l.slotProps?.basePopper,{target:e.target??b,ref:t,children:v.jsx(dX,{className:c.paper,ownerState:l,onKeyDown:m,children:u&&n})})):null});process.env.NODE_ENV!=="production"&&(zy.displayName="GridPanel"),process.env.NODE_ENV!=="production"&&(zy.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 pX=["className"],fX=e=>{const{classes:t}=e;return de({root:["panelContent"]},ot,t)},hX=xt("div",{name:"MuiDataGrid",slot:"PanelContent"})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,padding:Ie.spacing(2.5,1.5,2,1),gap:Ie.spacing(2.5)});function TT(e){const{className:t}=e,n=Te(e,pX),r=De(),s=fX(r);return v.jsx(hX,H({className:ie(s.root,t),ownerState:r},n))}process.env.NODE_ENV!=="production"&&(TT.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const gX=["className"],mX=e=>{const{classes:t}=e;return de({root:["panelFooter"]},ot,t)},bX=Z("div",{name:"MuiDataGrid",slot:"PanelFooter"})({padding:Ie.spacing(1),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${Ie.colors.border.base}`});function MT(e){const{className:t}=e,n=Te(e,gX),r=De(),s=mX(r);return v.jsx(bX,H({className:ie(s.root,t),ownerState:r},n))}process.env.NODE_ENV!=="production"&&(MT.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const yX=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],vX=["InputComponentProps"],CX=e=>{const{classes:t}=e;return de({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},ot,t)},wX=Z("div",{name:"MuiDataGrid",slot:"FilterForm"})({display:"flex",gap:Ie.spacing(1.5)}),SX=Z("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon"})({flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"}),xX=Z("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput"})({minWidth:75,justifyContent:"end"}),PX=Z("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput"})({width:150}),EX=Z("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput"})({width:150}),IX=Z("div",{name:"MuiDataGrid",slot:"FilterFormValueInput"})({width:190}),TX=e=>{switch(e){case bo.And:return"filterPanelOperatorAnd";case bo.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},bu=e=>e.headerName||e.field,OT=new Intl.Collator,Of=Xe(function(t,n){const{item:r,hasMultipleFilters:s,deleteFilter:i,applyFilterChanges:a,showMultiFilterOperators:l,disableMultiFilterOperator:c,applyMultiFilterOperatorChanges:u,focusElementRef:d,logicOperators:p=[bo.And,bo.Or],columnsSort:g,filterColumns:h,deleteIconProps:y={},logicOperatorInputProps:m={},operatorInputProps:b={},columnInputProps:C={},valueInputProps:w={},readOnly:S}=t,P=Te(t,yX),x=tt(),M=ue(x,Qr),k=ue(x,uE),T=ue(x,gn),O=dt(),I=dt(),D=dt(),E=dt(),N=De(),L=CX(N),$=f.useRef(null),F=f.useRef(null),R=T.logicOperator??bo.And,B=s&&p.length>0,V=(N.slotProps?.baseSelect||{}).native??!1,A=N.slotProps?.baseSelectOption||{},{InputComponentProps:z}=w,G=Te(w,vX),U=ue(x,Yi),X=ue(x,gy),{filteredColumns:Y,selectedField:ee}=f.useMemo(()=>{let se=r.field;const ae=M[r.field].filterable===!1?M[r.field]:null;if(ae)return{filteredColumns:[ae],selectedField:se};if(U)return{filteredColumns:k.filter(Q=>X.get(Q.field)!==void 0),selectedField:se};if(h===void 0||typeof h!="function")return{filteredColumns:k,selectedField:se};const te=h({field:r.field,columns:k,currentFilters:T?.items||[]});return{filteredColumns:k.filter(Q=>{const Ce=te.includes(Q.field);return Q.field===r.field&&!Ce&&(se=void 0),Ce}),selectedField:se}},[r.field,M,U,h,k,T?.items,X]),oe=f.useMemo(()=>{switch(g){case"asc":return Y.sort((se,ae)=>OT.compare(bu(se),bu(ae)));case"desc":return Y.sort((se,ae)=>-OT.compare(bu(se),bu(ae)));default:return Y}},[Y,g]),K=r.field?x.current.getColumn(r.field):null,W=f.useMemo(()=>!r.operator||!K?null:K.filterOperators?.find(se=>se.value===r.operator),[r,K]),J=f.useCallback(se=>{const ae=se.target.value,te=x.current.getColumn(ae);if(te.field===K.field)return;const Q=te.filterOperators.find(xe=>xe.value===r.operator)||te.filterOperators[0];let le=!Q.InputComponent||Q.InputComponent!==W?.InputComponent||te.type!==K.type?void 0:r.value;if(te.type==="singleSelect"&&le!==void 0){const xe=te,we=qi(xe);Array.isArray(le)?le=le.filter(Ue=>bf(Ue,we,xe?.getOptionValue)!==void 0):bf(r.value,we,xe?.getOptionValue)===void 0&&(le=void 0)}a(H({},r,{field:ae,operator:Q.value,value:le}))},[x,a,r,K,W]),q=f.useCallback(se=>{const ae=se.target.value,te=K?.filterOperators.find(Ce=>Ce.value===ae),Q=!te?.InputComponent||te?.InputComponent!==W?.InputComponent;a(H({},r,{operator:ae,value:Q?void 0:r.value}))},[a,r,K,W]),ce=f.useCallback(se=>{const ae=se.target.value===bo.And.toString()?bo.And:bo.Or;u(ae)},[u]),re=()=>{i(r)};return f.useImperativeHandle(d,()=>({focus:()=>{W?.InputComponent?$?.current?.focus():F.current.focus()}}),[W]),v.jsxs(wX,H({className:L.root,"data-id":r.id,ownerState:N},P,{ref:n,children:[v.jsx(SX,H({},y,{className:ie(L.deleteIcon,y.className),ownerState:N,children:v.jsx(N.slots.baseIconButton,H({"aria-label":x.current.getLocaleText("filterPanelDeleteIconLabel"),title:x.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:re,size:"small",disabled:S},N.slotProps?.baseIconButton,{children:v.jsx(N.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),v.jsx(xX,H({as:N.slots.baseSelect,sx:[B?{display:"flex"}:{display:"none"},l?{visibility:"visible"}:{visibility:"hidden"},m.sx],className:ie(L.logicOperatorInput,m.className),ownerState:N},m,{size:"small",slotProps:{htmlInput:{"aria-label":x.current.getLocaleText("filterPanelLogicOperator")}},value:R??"",onChange:ce,disabled:!!c||p.length===1,native:V},N.slotProps?.baseSelect,{children:p.map(se=>ge.createElement(N.slots.baseSelectOption,H({},A,{native:V,key:se.toString(),value:se.toString()}),x.current.getLocaleText(TX(se))))})),v.jsx(PX,H({as:N.slots.baseSelect},C,{className:ie(L.columnInput,C.className),ownerState:N,size:"small",labelId:I,id:O,label:x.current.getLocaleText("filterPanelColumns"),value:ee??"",onChange:J,native:V,disabled:S},N.slotProps?.baseSelect,{children:oe.map(se=>ge.createElement(N.slots.baseSelectOption,H({},A,{native:V,key:se.field,value:se.field}),bu(se)))})),v.jsx(EX,H({as:N.slots.baseSelect,size:"small"},b,{className:ie(L.operatorInput,b.className),ownerState:N,labelId:E,label:x.current.getLocaleText("filterPanelOperator"),id:D,value:r.operator,onChange:q,native:V,inputRef:F,disabled:S},N.slotProps?.baseSelect,{children:K?.filterOperators?.map(se=>ge.createElement(N.slots.baseSelectOption,H({},A,{native:V,key:se.value,value:se.value}),se.label||x.current.getLocaleText(`filterOperator${pe(se.value)}`)))})),v.jsx(IX,H({},G,{className:ie(L.valueInput,G.className),ownerState:N,children:W?.InputComponent?v.jsx(W.InputComponent,H({apiRef:x,item:r,applyValue:a,focusElementRef:$,disabled:S,slotProps:{root:{size:"small"}}},W.InputComponentProps,z),r.field):null}))]}))});process.env.NODE_ENV!=="production"&&(Of.displayName="GridFilterForm"),process.env.NODE_ENV!=="production"&&(Of.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 MX=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],jy=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Gy=Xe(function(t,n){const r=tt(),s=De(),i=ue(r,gn),a=ue(r,uE),l=ue(r,dE),c=f.useRef(null),u=f.useRef(null),{logicOperators:d=[bo.And,bo.Or],columnsSort:p,filterFormProps:g,getColumnForNewFilter:h,disableAddFilterButton:y=!1,disableRemoveAllButton:m=!1}=t,b=Te(t,MX),C=r.current.upsertFilterItem,w=f.useCallback(E=>{r.current.setFilterLogicOperator(E)},[r]),S=f.useCallback(()=>{let E;if(h&&typeof h=="function"){const N=h({currentFilters:i?.items||[],columns:a});if(N===null)return null;E=a.find(({field:L})=>L===N)}else E=a.find(N=>N.filterOperators?.length);return E?jy(E):null},[i?.items,a,h]),P=f.useCallback(()=>{if(h===void 0||typeof h!="function")return S();const E=i.items.length?i.items:[S()].filter(Boolean),N=h({currentFilters:E,columns:a});if(N===null)return null;const L=a.find(({field:$})=>$===N);return L?jy(L):null},[i.items,a,h,S]),x=f.useMemo(()=>i.items.length?i.items:(u.current||(u.current=S()),u.current?[u.current]:[]),[i.items,S]),M=x.length>1,{readOnlyFilters:k,validFilters:T}=f.useMemo(()=>x.reduce((E,N)=>(l[N.field]?E.validFilters.push(N):E.readOnlyFilters.push(N),E),{readOnlyFilters:[],validFilters:[]}),[x,l]),O=f.useCallback(()=>{const E=P();E&&r.current.upsertFilterItems([...x,E])},[r,P,x]),I=f.useCallback(E=>{const N=T.length===1;r.current.deleteFilterItem(E),N&&r.current.hideFilterPanel()},[r,T.length]),D=f.useCallback(()=>T.length===1&&T[0].value===void 0?(r.current.deleteFilterItem(T[0]),r.current.hideFilterPanel()):r.current.setFilterModel(H({},i,{items:k}),"removeAllFilterItems"),[r,k,i,T]);return f.useEffect(()=>{d.length>0&&i.logicOperator&&!d.includes(i.logicOperator)&&w(d[0])},[d,w,i.logicOperator]),f.useEffect(()=>{T.length>0&&c.current.focus()},[T.length]),v.jsxs(Hy,H({},b,{ref:n,children:[v.jsxs(TT,{children:[k.map((E,N)=>v.jsx(Of,H({item:E,applyFilterChanges:C,deleteFilter:I,hasMultipleFilters:M,showMultiFilterOperators:N>0,disableMultiFilterOperator:N!==1,applyMultiFilterOperatorChanges:w,focusElementRef:null,readOnly:!0,logicOperators:d,columnsSort:p},g),E.id==null?N:E.id)),T.map((E,N)=>v.jsx(Of,H({item:E,applyFilterChanges:C,deleteFilter:I,hasMultipleFilters:M,showMultiFilterOperators:k.length+N>0,disableMultiFilterOperator:k.length+N!==1,applyMultiFilterOperatorChanges:w,focusElementRef:N===T.length-1?c:null,logicOperators:d,columnsSort:p},g),E.id==null?N+k.length:E.id))]}),!s.disableMultipleColumnsFiltering&&!(y&&m)?v.jsxs(MT,{children:[y?v.jsx("span",{}):v.jsx(s.slots.baseButton,H({onClick:O,startIcon:v.jsx(s.slots.filterPanelAddIcon,{})},s.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!m&&T.length>0?v.jsx(s.slots.baseButton,H({onClick:D,startIcon:v.jsx(s.slots.filterPanelRemoveAllIcon,{})},s.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))});process.env.NODE_ENV!=="production"&&(Gy.displayName="GridFilterPanel"),process.env.NODE_ENV!=="production"&&(Gy.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 OX=(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},kX=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,DX=["children"],FX=tr({from:{opacity:0},to:{opacity:1}}),NX=tr({"from, to":{"--scrollable":'" "'}}),RX=xt("div",{name:"MuiDataGrid",slot:"ShadowScrollArea"})`
|
|
352
|
-
flex: 1;
|
|
353
|
-
display: flex;
|
|
354
|
-
flex-direction: column;
|
|
355
|
-
animation: ${NX};
|
|
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: ${FX} 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
|
-
`,Wy=Xe(function(t,n){const{children:r}=t,s=Te(t,DX);return v.jsx(RX,H({},s,{ref:n,children:r}))});process.env.NODE_ENV!=="production"&&(Wy.displayName="GridShadowScrollArea"),process.env.NODE_ENV!=="production"&&(Wy.propTypes={children:o.node});const $X=e=>{const{classes:t}=e;return de({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},ot,t)},kT=new Intl.Collator;function DT(e){const t=tt(),n=f.useRef(null),r=ue(t,QG),s=ue(t,Xo),i=De(),[a,l]=f.useState(""),c=$X(i),u=ue(t,Ko),d=ue(t,Yi),p=ue(t,gy),g=f.useMemo(()=>d?Array.from(p.values()):u,[d,p,u]),{sort:h,searchPredicate:y=kX,autoFocusSearchField:m=!0,disableShowHideToggle:b=!1,disableResetButton:C=!1,toggleAllMode:w="all",getTogglableColumns:S,searchInputProps:P,searchDebounceMs:x=i.columnFilterDebounceMs}=e,M=f.useMemo(()=>vr(V=>{l(V)},x??150),[x]),k=f.useMemo(()=>OX(s,r),[s,r]),T=f.useMemo(()=>{switch(h){case"asc":return[...g].sort((V,A)=>kT.compare(V.headerName||V.field,A.headerName||A.field));case"desc":return[...g].sort((V,A)=>-kT.compare(V.headerName||V.field,A.headerName||A.field));default:return g}},[g,h]),O=V=>{const{name:A}=V.target;t.current.setColumnVisibility(A,s[A]===!1)},I=f.useMemo(()=>{const V=S?S(T):null,A=V?T.filter(({field:z})=>V.includes(z)):T;return a?A.filter(z=>y(z,a.toLowerCase())):A},[T,a,y,S]),D=f.useCallback(V=>{const A=Xo(t),z=H({},A),G=S?S(g):null;return(w==="filteredOnly"?I:g).forEach(U=>{U.hideable&&(G==null||G.includes(U.field))&&(V?delete z[U.field]:z[U.field]=!1)}),t.current.setColumnVisibilityModel(z)},[t,g,S,w,I]),E=f.useCallback(V=>{M(V.target.value)},[M]),N=f.useMemo(()=>I.filter(V=>V.hideable),[I]),L=f.useMemo(()=>N.every(V=>s[V.field]==null||s[V.field]!==!1),[s,N]),$=f.useMemo(()=>N.every(V=>s[V.field]===!1),[s,N]),F=f.useRef(null);f.useEffect(()=>{m?n.current?.focus():F.current&&typeof F.current.focus=="function"&&F.current.focus()},[m]);let R=!1;const B=V=>R===!1&&V.hideable!==!1?(R=!0,!0):!1,_=f.useCallback(()=>{l(""),n.current&&(n.current.value="",n.current.focus())},[]);return v.jsxs(f.Fragment,{children:[v.jsx(VX,{className:c.header,ownerState:i,children:v.jsx(_X,H({as:i.slots.baseTextField,ownerState:i,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:c.searchInput,onChange:E,size:"small",type:"search",slotProps:{input:{startAdornment:v.jsx(i.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:v.jsx(i.slots.baseIconButton,H({size:"small","aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),style:a?{visibility:"visible"}:{visibility:"hidden"},tabIndex:-1,onClick:_,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,P))}),v.jsx(AX,{ownerState:i,children:v.jsxs(LX,{className:c.root,ownerState:i,children:[I.map(V=>v.jsx(zX,H({as:i.slots.baseCheckbox,className:c.row,disabled:V.hideable===!1||d,checked:s[V.field]!==!1,onChange:O,name:V.field,inputRef:B(V)?F:void 0,label:V.headerName||V.field,density:"compact",fullWidth:!0},i.slotProps?.baseCheckbox),V.field)),I.length===0&&v.jsx(HX,{ownerState:i,children:t.current.getLocaleText("columnsManagementNoColumns")})]})}),!b||!C?v.jsxs(BX,{ownerState:i,className:c.footer,children:[b?v.jsx("span",{}):v.jsx(i.slots.baseCheckbox,H({disabled:N.length===0||d,checked:L,indeterminate:!L&&!$,onChange:()=>D(!L),name:t.current.getLocaleText("columnsManagementShowHideAllText"),label:t.current.getLocaleText("columnsManagementShowHideAllText"),density:"compact"},i.slotProps?.baseCheckbox)),C?null:v.jsx(i.slots.baseButton,H({onClick:()=>t.current.setColumnVisibilityModel(r),disabled:k||d},i.slotProps?.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}process.env.NODE_ENV!=="production"&&(DT.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 LX=Z("div",{name:"MuiDataGrid",slot:"ColumnsManagement"})({display:"flex",flexDirection:"column",padding:Ie.spacing(.5,1.5)}),AX=Z(Wy,{name:"MuiDataGrid",slot:"ColumnsManagementScrollArea"})({maxHeight:300}),VX=Z("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader"})({padding:Ie.spacing(1.5,2),borderBottom:`1px solid ${Ie.colors.border.base}`}),_X=Z(Kr,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput"})({[`& .${Wn.input}::-webkit-search-decoration,
|
|
396
|
-
& .${Wn.input}::-webkit-search-cancel-button,
|
|
397
|
-
& .${Wn.input}::-webkit-search-results-button,
|
|
398
|
-
& .${Wn.input}::-webkit-search-results-decoration`]:{display:"none"}}),BX=Z("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter"})({padding:Ie.spacing(1,1,1,1.5),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${Ie.colors.border.base}`}),HX=Z("div",{name:"MuiDataGrid",slot:"ColumnsManagementEmptyText"})({padding:Ie.spacing(1,0),alignSelf:"center",font:Ie.typography.font.body}),zX=Z(Kr,{name:"MuiDataGrid",slot:"ColumnsManagementRow"})({}),Uy=Xe(function(t,n){const{children:r,slotProps:s={}}=t,i=s.button||{},a=s.tooltip||{},l=tt(),c=De(),u=dt(),d=dt(),[p,g]=f.useState(!1),h=f.useRef(null),y=st(n,h),m=C=>{g(w=>!w),i.onClick?.(C)},b=()=>g(!1);return r==null?null:v.jsxs(f.Fragment,{children:[v.jsx(c.slots.baseTooltip,H({title:l.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},c.slotProps?.baseTooltip,a,{children:v.jsx(c.slots.baseButton,H({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:y,children:l.current.getLocaleText("toolbarExport")}))})),v.jsx(sl,{open:p,target:h.current,onClose:b,position:"bottom-end",children:v.jsx(c.slots.baseMenuList,{id:d,className:j.menuList,"aria-labelledby":u,autoFocusItem:p,children:f.Children.map(r,C=>f.isValidElement(C)?f.cloneElement(C,{hideMenu:b}):C)})})]})});process.env.NODE_ENV!=="production"&&(Uy.displayName="GridToolbarExportContainer"),process.env.NODE_ENV!=="production"&&(Uy.propTypes={slotProps:o.object});const jX=["hideMenu","options"],GX=["hideMenu","options"],WX=["csvOptions","printOptions","excelOptions"];function FT(e){const t=tt(),n=De(),{hideMenu:r,options:s}=e,i=Te(e,jX);return v.jsx(n.slots.baseMenuItem,H({onClick:()=>{t.current.exportDataAsCsv(s),r?.()}},i,{children:t.current.getLocaleText("toolbarExportCSV")}))}process.env.NODE_ENV!=="production"&&(FT.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 NT(e){const t=tt(),n=De(),{hideMenu:r,options:s}=e,i=Te(e,GX);return v.jsx(n.slots.baseMenuItem,H({onClick:()=>{t.current.exportDataAsPrint(s),r?.()}},i,{children:t.current.getLocaleText("toolbarExportPrint")}))}process.env.NODE_ENV!=="production"&&(NT.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 RT=Xe(function(t,n){const r=t,{csvOptions:s={},printOptions:i={},excelOptions:a}=r,l=Te(r,WX),u=tt().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(Uy,H({},l,{ref:n,children:u.map((d,p)=>f.cloneElement(d.component,{key:p}))}))});process.env.NODE_ENV!=="production"&&(RT.displayName="GridToolbarExport"),process.env.NODE_ENV!=="production"&&(RT.propTypes={csvOptions:o.object,printOptions:o.object,slotProps:o.object});const qy=f.createContext(void 0);process.env.NODE_ENV!=="production"&&(qy.displayName="QuickFilterContext");function Yy(){const e=f.useContext(qy);if(e===void 0)throw new Error("MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.");return e}const UX=["render","className","parser","formatter","debounceMs","defaultExpanded","expanded","onExpandedChange"],qX=e=>e.split(" ").filter(t=>t!==""),YX=e=>e.join(" ");function $T(e){const t=De(),{render:n,className:r,parser:s=qX,formatter:i=YX,debounceMs:a=t.filterDebounceMs,defaultExpanded:l,expanded:c,onExpandedChange:u}=e,d=Te(e,UX),p=tt(),g=f.useRef(null),h=f.useRef(null),y=ue(p,AE),[m,b]=f.useState(i(y??[])),[C,w]=f.useState(l??m.length>0),S=c??C,P=f.useMemo(()=>({value:m,expanded:S}),[m,S]),x=typeof r=="function"?r(P):r,M=f.useRef(null),k=dt(),T=f.useCallback(R=>{u&&u(R),c===void 0&&w(R)},[u,c]),O=f.useRef(y);f.useEffect(()=>{No(O.current,y)||(O.current=y,b(R=>No(s(R),y)?R:i(y??[])))},[y,i,s]);const I=f.useRef(!0),D=f.useRef(S);f.useEffect(()=>{if(I.current){I.current=!1;return}D.current!==S&&(S?requestAnimationFrame(()=>{g.current?.focus({preventScroll:!0})}):h.current?.focus({preventScroll:!0}),D.current=S)},[S]);const E=f.useMemo(()=>vr(R=>{const B=s(R);O.current=B,p.current.setQuickFilterValues(B)},a),[p,a,s]);f.useEffect(()=>E.clear,[E]);const N=f.useCallback(R=>{const B=R.target.value;b(B),E(B)},[E]),L=f.useCallback(()=>{b(""),p.current.setQuickFilterValues([]),g.current?.focus()},[p,g]),$=f.useMemo(()=>({controlRef:g,triggerRef:h,state:P,controlId:k,clearValue:L,onValueChange:N,onExpandedChange:T}),[k,P,N,L,T]);ht(()=>{M.current&&h.current&&M.current.style.setProperty("--trigger-width",`${h.current?.offsetWidth}px`)},[]);const F=es("div",n,H({className:x},d,{ref:M}),P);return v.jsx(qy.Provider,{value:$,children:F})}process.env.NODE_ENV!=="production"&&($T.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 KX=["render","className","slotProps","onKeyDown","onChange"],Ky=Xe(function(t,n){const{render:r,className:s,slotProps:i,onKeyDown:a,onChange:l}=t,c=Te(t,KX),u=De(),{state:d,controlId:p,controlRef:g,onValueChange:h,onExpandedChange:y,clearValue:m}=Yy(),b=typeof s=="function"?s(d):s,C=st(g,n),w=M=>{M.key==="Escape"&&(d.value===""?y(!1):m()),a?.(M)},S=M=>{d.value===""&&y(!1),i?.htmlInput?.onBlur?.(M)},P=M=>{d.expanded||y(!0),h(M),l?.(M)},x=es(u.slots.baseTextField,r,H({},u.slotProps?.baseTextField,{slotProps:H({htmlInput:H({role:"searchbox",id:p,tabIndex:d.expanded?void 0:-1},i?.htmlInput,{onBlur:S})},i),value:d.value,className:b},c,{onChange:P,onKeyDown:w,ref:C}),d);return v.jsx(f.Fragment,{children:x})});process.env.NODE_ENV!=="production"&&(Ky.displayName="QuickFilterControl"),process.env.NODE_ENV!=="production"&&(Ky.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 XX=["render","className","onClick"],Xy=Xe(function(t,n){const{render:r,className:s,onClick:i}=t,a=Te(t,XX),l=De(),{state:c,clearValue:u}=Yy(),d=typeof s=="function"?s(c):s,p=h=>{u(),i?.(h)},g=es(l.slots.baseIconButton,r,H({},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"&&(Xy.displayName="QuickFilterClear"),process.env.NODE_ENV!=="production"&&(Xy.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 ZX=["render","className","onClick"],Zy=Xe(function(t,n){const{render:r,className:s,onClick:i}=t,a=Te(t,ZX),l=De(),{state:c,controlId:u,onExpandedChange:d,triggerRef:p}=Yy(),g=typeof s=="function"?s(c):s,h=st(p,n),y=b=>{d(!c.expanded),i?.(b)},m=es(l.slots.baseButton,r,H({},l.slotProps?.baseButton,{className:g,"aria-controls":u,"aria-expanded":c.expanded},a,{onClick:y,ref:h}),c);return v.jsx(f.Fragment,{children:m})});process.env.NODE_ENV!=="production"&&(Zy.displayName="QuickFilterTrigger"),process.env.NODE_ENV!=="production"&&(Zy.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 QX=["quickFilterParser","quickFilterFormatter","debounceMs","className","slotProps"],JX=["ref","slotProps"],eZ=e=>{const{classes:t}=e;return de({root:["toolbarQuickFilter"],trigger:["toolbarQuickFilterTrigger"],control:["toolbarQuickFilterControl"]},ot,t)},tZ=xt("div",{name:"MuiDataGrid",slot:"ToolbarQuickFilter"})({display:"grid",alignItems:"center"}),nZ=xt(vl,{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:Ie.transition(["opacity"])})),oZ=xt(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:Ie.transition(["width","opacity"])}));function LT(e){const t=tt(),n=De(),r={classes:n.classes,expanded:!1},s=eZ(r),{quickFilterParser:i,quickFilterFormatter:a,debounceMs:l,className:c,slotProps:u}=e,d=Te(e,QX);return v.jsx($T,{parser:i,formatter:a,debounceMs:l,render:(p,g)=>{const h=H({},r,{expanded:g.expanded});return v.jsxs(tZ,H({},p,{className:ie(s.root,c),children:[v.jsx(Zy,{render:y=>v.jsx(n.slots.baseTooltip,{title:t.current.getLocaleText("toolbarQuickFilterLabel"),enterDelay:0,children:v.jsx(nZ,H({className:s.trigger},y,{ownerState:h,color:"default","aria-disabled":g.expanded,children:v.jsx(n.slots.quickFilterIcon,{fontSize:"small"})}))})}),v.jsx(Ky,{render:y=>{let{ref:m,slotProps:b}=y,C=Te(y,JX);return v.jsx(oZ,H({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:H({input:H({startAdornment:v.jsx(n.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:C.value?v.jsx(Xy,{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},b?.input)},b)},n.slotProps?.baseTextField,C,u?.root,d))}})]}))}})}process.env.NODE_ENV!=="production"&&(LT.propTypes={className:o.string,debounceMs:o.number,quickFilterFormatter:o.func,quickFilterParser:o.func,slotProps:o.object});const rZ=["render","className","onClick","onPointerUp"],Qy=Xe(function(t,n){const{render:r,className:s,onClick:i,onPointerUp:a}=t,l=Te(t,rZ),c=De(),u=dt(),d=dt(),p=tt(),g=ue(p,Ki),h=g.open&&g.openedPanelValue===vo.filters,m=ue(p,ty).length,b={open:h,filterCount:m},C=typeof s=="function"?s(b):s,{filterPanelTriggerRef:w}=Dy(),S=st(n,w),P=k=>{h?p.current.hidePreferences():p.current.showPreferences(vo.filters,d,u),i?.(k)},x=k=>{h&&k.stopPropagation(),a?.(k)},M=es(c.slots.baseButton,r,H({},c.slotProps?.baseButton,{id:u,"aria-haspopup":"true","aria-expanded":h?"true":void 0,"aria-controls":h?d:void 0,onClick:P,onPointerUp:x,className:C},l,{ref:S}),b);return v.jsx(f.Fragment,{children:M})});process.env.NODE_ENV!=="production"&&(Qy.displayName="FilterPanelTrigger"),process.env.NODE_ENV!=="production"&&(Qy.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 sZ=["render","className","onClick","onPointerUp"],Jy=Xe(function(t,n){const{render:r,className:s,onClick:i,onPointerUp:a}=t,l=Te(t,sZ),c=De(),u=dt(),d=dt(),p=tt(),g=ue(p,Ki),h=g.open&&g.openedPanelValue===vo.columns,y={open:h},m=typeof s=="function"?s(y):s,{columnsPanelTriggerRef:b}=Dy(),C=st(n,b),w=x=>{h?p.current.hidePreferences():p.current.showPreferences(vo.columns,d,u),i?.(x)},S=x=>{h&&x.stopPropagation(),a?.(x)},P=es(c.slots.baseButton,r,H({},c.slotProps?.baseButton,{id:u,"aria-haspopup":"true","aria-expanded":h?"true":void 0,"aria-controls":h?d:void 0,className:m},l,{onPointerUp:S,onClick:w,ref:C}),y);return v.jsx(f.Fragment,{children:P})});process.env.NODE_ENV!=="production"&&(Jy.displayName="ColumnsPanelTrigger"),process.env.NODE_ENV!=="production"&&(Jy.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 iZ=["render","options","onClick"],e0=Xe(function(t,n){const{render:r,options:s,onClick:i}=t,a=Te(t,iZ),l=De(),c=tt(),u=p=>{c.current.exportDataAsCsv(s),i?.(p)},d=es(l.slots.baseButton,r,H({},l.slotProps?.baseButton,{onClick:u},a,{ref:n}));return v.jsx(f.Fragment,{children:d})});process.env.NODE_ENV!=="production"&&(e0.displayName="ExportCsv"),process.env.NODE_ENV!=="production"&&(e0.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 aZ=["render","options","onClick"],t0=Xe(function(t,n){const{render:r,options:s,onClick:i}=t,a=Te(t,aZ),l=De(),c=tt(),u=p=>{c.current.exportDataAsPrint(s),i?.(p)},d=es(l.slots.baseButton,r,H({},l.slotProps?.baseButton,{onClick:u},a,{ref:n}));return v.jsx(f.Fragment,{children:d})});process.env.NODE_ENV!=="production"&&(t0.displayName="ExportPrint"),process.env.NODE_ENV!=="production"&&(t0.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 lZ=["className"],cZ=["className"],uZ=["showQuickFilter","quickFilterProps","csvOptions","printOptions","additionalItems","additionalExportMenuItems"],AT=e=>{const{classes:t}=e;return de({divider:["toolbarDivider"],label:["toolbarLabel"]},ot,t)},dZ=xt(Kr,{name:"MuiDataGrid",slot:"ToolbarDivider"})({height:"50%",margin:Ie.spacing(0,.5)}),pZ=xt("span",{name:"MuiDataGrid",slot:"ToolbarLabel"})({flex:1,font:Ie.typography.font.large,fontWeight:Ie.typography.fontWeight.medium,margin:Ie.spacing(0,.5),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"});function n0(e){const t=Te(e,lZ),n=De(),r=AT(n);return v.jsx(dZ,H({as:n.slots.baseDivider,orientation:"vertical",className:r.divider},t))}process.env.NODE_ENV!=="production"&&(n0.propTypes={className:o.string,orientation:o.oneOf(["horizontal","vertical"])});function fZ(e){const t=Te(e,cZ),n=De(),r=AT(n);return v.jsx(pZ,H({className:r.label},t))}function VT(e){const{showQuickFilter:t=!0,quickFilterProps:n,csvOptions:r,printOptions:s,additionalItems:i,additionalExportMenuItems:a}=e,l=Te(e,uZ),c=tt(),u=De(),[d,p]=f.useState(!1),g=f.useRef(null),h=dt(),y=dt(),m=!r?.disableToolbarButton||!s?.disableToolbarButton||a,b=()=>p(!1);return v.jsxs($y,H({},l,{children:[u.label&&v.jsx(fZ,{children:u.label}),!u.disableColumnSelector&&v.jsx(u.slots.baseTooltip,{title:c.current.getLocaleText("toolbarColumns"),children:v.jsx(Jy,{render:v.jsx(vl,{}),children:v.jsx(u.slots.columnSelectorIcon,{fontSize:"small"})})}),!u.disableColumnFilter&&v.jsx(u.slots.baseTooltip,{title:c.current.getLocaleText("toolbarFilters"),children:v.jsx(Qy,{render:(C,w)=>v.jsx(vl,H({},C,{color:w.filterCount>0?"primary":"default",children:v.jsx(u.slots.baseBadge,{badgeContent:w.filterCount,color:"primary",variant:"dot",children:v.jsx(u.slots.openFilterButtonIcon,{fontSize:"small"})})}))})}),i,m&&(!u.disableColumnFilter||!u.disableColumnSelector)&&v.jsx(n0,{}),m&&v.jsxs(f.Fragment,{children:[v.jsx(u.slots.baseTooltip,{title:c.current.getLocaleText("toolbarExport"),disableInteractive:d,children:v.jsx(vl,{ref:g,id:y,"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(sl,{target:g.current,open:d,onClose:b,position:"bottom-end",children:v.jsxs(u.slots.baseMenuList,H({id:h,"aria-labelledby":y,autoFocusItem:!0},u.slotProps?.baseMenuList,{children:[!s?.disableToolbarButton&&v.jsx(t0,{render:v.jsx(u.slots.baseMenuItem,H({},u.slotProps?.baseMenuItem)),options:s,onClick:b,children:c.current.getLocaleText("toolbarExportPrint")}),!r?.disableToolbarButton&&v.jsx(e0,{render:v.jsx(u.slots.baseMenuItem,H({},u.slotProps?.baseMenuItem)),options:r,onClick:b,children:c.current.getLocaleText("toolbarExportCSV")}),a?.(b)]}))})]}),t&&v.jsxs(f.Fragment,{children:[v.jsx(n0,{}),v.jsx(LT,H({},n))]})]}))}process.env.NODE_ENV!=="production"&&(VT.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 hZ=["className","selectedRowCount"],gZ=e=>{const{classes:t}=e;return de({root:["selectedRowCount"]},ot,t)},mZ=xt("div",{name:"MuiDataGrid",slot:"SelectedRowCount"})({alignItems:"center",display:"flex",margin:Ie.spacing(0,2),visibility:"hidden",width:0,height:0,[Ie.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}),o0=Xe(function(t,n){const{className:r,selectedRowCount:s}=t,i=Te(t,hZ),a=tt(),l=De(),c=gZ(l),u=a.current.getLocaleText("footerRowSelected")(s);return v.jsx(mZ,H({className:ie(c.root,r),ownerState:l},i,{ref:n,children:u}))});process.env.NODE_ENV!=="production"&&(o0.displayName="GridSelectedRowCount"),process.env.NODE_ENV!=="production"&&(o0.propTypes={selectedRowCount:o.number.isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const r0=Xe(function(t,n){const r=tt(),s=De(),i=ue(r,gG),a=ue(r,ff),l=ue(r,al),c=!s.hideFooterSelectedRowCount&&a>0?v.jsx(o0,{selectedRowCount:a}):v.jsx("div",{}),u=!s.hideFooterRowCount&&!s.pagination?v.jsx(s.slots.footerRowCount,H({},s.slotProps?.footerRowCount,{rowCount:i,visibleRowCount:l})):null,d=s.pagination&&!s.hideFooterPagination&&s.slots.pagination&&v.jsx(s.slots.pagination,H({},s.slotProps?.pagination));return v.jsxs(Ny,H({},t,{ref:n,children:[c,u,d]}))});process.env.NODE_ENV!=="production"&&(r0.displayName="GridFooter"),process.env.NODE_ENV!=="production"&&(r0.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const yu=(e,t,n,r,s,i)=>{let a;switch(e){case mt.LEFT:a=r[n];break;case mt.RIGHT:a=s-r[n]-t+i;break;default:a=void 0;break}return Number.isNaN(a)&&(a=void 0),a},vu=(e,t,n,r,s,i)=>{const a=t===n-1;return i?.startsWith("border")&&e===mt.LEFT&&a?!0:r?e===mt.LEFT?!0:e===mt.RIGHT?!a:!a||s:!1},Cu=(e,t,n,r)=>r?.startsWith("border")?e===mt.RIGHT&&t===0:n&&e===mt.RIGHT&&t===0,bZ=["skeletonRowsCount","visibleColumns","showFirstRowBorder"],yZ=xt("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay"})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),vZ=e=>{const{classes:t}=e;return de({root:["skeletonLoadingOverlay"]},ot,t)},_T=e=>parseInt(e.getAttribute("data-colindex"),10),BT=Xe(function(t,n){const r=De(),{slots:s}=r,i=Gt(),a=vZ({classes:r.classes}),l=f.useRef(null),c=st(l,n),u=tt(),d=ue(u,fn),p=ue(u,eu),g=ue(u,Us),h=f.useMemo(()=>g.filter(T=>T<=p).length,[p,g]),{skeletonRowsCount:y,visibleColumns:m,showFirstRowBorder:b}=t,C=Te(t,bZ),w=ue(u,hn),S=f.useMemo(()=>w.slice(0,h),[w,h]),P=ue(u,rl),x=f.useCallback(T=>{if(P.left.findIndex(O=>O.field===T)!==-1)return mt.LEFT;if(P.right.findIndex(O=>O.field===T)!==-1)return mt.RIGHT},[P.left,P.right]),M=f.useMemo(()=>{const T=[];for(let O=0;O<y;O+=1){const I=[];for(let D=0;D<S.length;D+=1){const E=S[D],N=x(E.field),L=N===mt.LEFT,$=N===mt.RIGHT,F=_I(N,i),R=F?P[F].length:S.length-P.left.length-P.right.length,B=F?P[F].findIndex(J=>J.field===E.field):D-P.left.length,_=d.hasScrollY?d.scrollbarSize:0,V=mu({},i,N,yu(N,E.computedWidth,D,g,d.columnsTotalWidth,_)),A=d.columnsTotalWidth<d.viewportOuterSize.width,z=vu(N,B,R,r.showCellVerticalBorder,A,r.pinnedColumnsSectionSeparator),G=Cu(N,B,r.showCellVerticalBorder,r.pinnedColumnsSectionSeparator),U=D===S.length-1,X=$&&B===0,Y=X&&A,ee=U&&!X&&A,oe=d.viewportOuterSize.width-d.columnsTotalWidth,K=Math.max(0,oe),W=v.jsx(s.skeletonCell,{width:K,empty:!0},`skeleton-filler-column-${O}`);Y&&I.push(W),I.push(v.jsx(s.skeletonCell,{field:E.field,type:E.type,align:E.align,width:"var(--width)",height:d.rowHeight,"data-colindex":D,empty:m&&!m.has(E.field),className:ie(L&&j["cell--pinnedLeft"],$&&j["cell--pinnedRight"],z&&j["cell--withRightBorder"],G&&j["cell--withLeftBorder"]),style:H({"--width":`${E.computedWidth}px`},V)},`skeleton-column-${O}-${E.field}`)),ee&&I.push(W)}T.push(v.jsx("div",{className:ie(j.row,j.rowSkeleton,O===0&&!b&&j["row--firstVisible"]),children:I},`skeleton-row-${O}`))}return T},[y,S,x,i,P,d.hasScrollY,d.scrollbarSize,d.columnsTotalWidth,d.viewportOuterSize.width,d.rowHeight,g,r.showCellVerticalBorder,r.pinnedColumnsSectionSeparator,s,m,b]);return Pe(u,"columnResize",T=>{const{colDef:O,width:I}=T,D=l.current?.querySelectorAll(`[data-field="${ts(O.field)}"]`);if(!D)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const E=S.findIndex(B=>B.field===O.field),N=x(O.field),L=N===mt.LEFT,$=N===mt.RIGHT,F=getComputedStyle(D[0]).getPropertyValue("--width"),R=parseInt(F,10)-I;D&&D.forEach(B=>{B.style.setProperty("--width",`${I}px`)}),L&&l.current?.querySelectorAll(`.${j["cell--pinnedLeft"]}`)?.forEach(_=>{_T(_)>E&&(_.style.left=`${parseInt(getComputedStyle(_).left,10)-R}px`)}),$&&l.current?.querySelectorAll(`.${j["cell--pinnedRight"]}`)?.forEach(_=>{_T(_)<E&&(_.style.right=`${parseInt(getComputedStyle(_).right,10)+R}px`)})}),v.jsx(yZ,H({className:a.root},C,{ref:c,children:M}))});process.env.NODE_ENV!=="production"&&(BT.displayName="GridSkeletonLoadingOverlayInner");const HT=Xe(function(t,n){const r=tt(),s=ue(r,fn),i=s?.viewportInnerSize.height??0,a=Math.ceil(i/s.rowHeight);return v.jsx(BT,H({},t,{skeletonRowsCount:a,ref:n}))});process.env.NODE_ENV!=="production"&&(HT.displayName="GridSkeletonLoadingOverlay");const CZ=["variant","noRowsVariant","style"],wZ={"circular-progress":{component:e=>e.slots.baseCircularProgress,style:{}},"linear-progress":{component:e=>e.slots.baseLinearProgress,style:{display:"block"}},skeleton:{component:()=>HT,style:{display:"block"}}},s0=Xe(function(t,n){const{variant:r="linear-progress",noRowsVariant:s="skeleton",style:i}=t,a=Te(t,CZ),l=tt(),c=De(),u=ue(l,Ja),d=wZ[u===0?s:r],p=d.component(c);return v.jsx(yl,H({style:H({},d.style,i)},a,{ref:n,children:v.jsx(p,{})}))});process.env.NODE_ENV!=="production"&&(s0.displayName="GridLoadingOverlay"),process.env.NODE_ENV!=="production"&&(s0.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 i0=Xe(function(t,n){const s=tt().current.getLocaleText("noRowsLabel");return v.jsx(yl,H({},t,{ref:n,children:s}))});process.env.NODE_ENV!=="production"&&(i0.displayName="GridNoRowsOverlay"),process.env.NODE_ENV!=="production"&&(i0.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const a0=Xe(function(t,n){const r=De(),s=tt(),i=ue(s,mr),a=()=>{s.current.showPreferences(vo.columns)},l=!r.disableColumnSelector&&i.length>0;return v.jsxs(yl,H({},t,{ref:n,children:[s.current.getLocaleText("noColumnsOverlayLabel"),l&&v.jsx(r.slots.baseButton,H({size:"small"},r.slotProps?.baseButton,{onClick:a,children:s.current.getLocaleText("noColumnsOverlayManageColumns")}))]}))});process.env.NODE_ENV!=="production"&&(a0.displayName="GridNoColumnsOverlay"),process.env.NODE_ENV!=="production"&&(a0.propTypes={sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const SZ=Z(Kr)({maxHeight:"calc(100% + 1px)",flexGrow:1});function zT(){const e=tt(),t=De(),n=ue(e,En),r=ue(e,qs),s=ue(e,YE),{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(y=>{e.current.setPageSize(y)},[e]),p=f.useCallback((y,m)=>{e.current.setPage(m)},[e]),g=y=>{for(let m=0;m<t.pageSizeOptions.length;m+=1){const b=t.pageSizeOptions[m];if(typeof b=="number"){if(b===y)return!0}else if(b.value===y)return!0}return!1};if(process.env.NODE_ENV!=="production"){const y=f.useRef(!1),m=t.paginationModel?.pageSize??n.pageSize;!y.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
|
-
`)),y.current=!0)}const h=g(n.pageSize)?t.pageSizeOptions:[];return v.jsx(SZ,H({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"&&(zT.propTypes={component:o.elementType});const xZ=["className","rowCount","visibleRowCount"],PZ=e=>{const{classes:t}=e;return de({root:["rowCount"]},ot,t)},EZ=xt("div",{name:"MuiDataGrid",slot:"RowCount"})({alignItems:"center",display:"flex",margin:Ie.spacing(0,2)}),l0=Xe(function(t,n){const{className:r,rowCount:s,visibleRowCount:i}=t,a=Te(t,xZ),l=tt(),c=De(),u=PZ(c);if(s===0)return null;const d=i<s?l.current.getLocaleText("footerTotalVisibleRows")(i,s):s.toLocaleString();return v.jsxs(EZ,H({className:ie(u.root,r),ownerState:c},a,{ref:n,children:[l.current.getLocaleText("footerTotalRows")," ",d]}))});process.env.NODE_ENV!=="production"&&(l0.displayName="GridRowCount"),process.env.NODE_ENV!=="production"&&(l0.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 IZ(e,t){return de(t,ot,e)}const c0=_t(e=>e.rowReorder),TZ=Ne(c0,e=>e?.isActive??!1),jT=Ne(c0,e=>e?.dropTarget??{rowId:null,position:null});Ne(jT,e=>e.rowId??null);const MZ=Ne(jT,(e,t)=>e.rowId===t?e.position:null);Ne(c0,e=>e?.draggedRowId??null);const OZ=Z("div",{name:"MuiDataGrid",slot:"RowDragOverlay",shouldForwardProp:e=>Io(e)&&e!=="action"})(({theme:e,action:t})=>H({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)`:zn(e.palette.primary.main,.1)})),GT=f.memo(function(t){const{rowId:n,className:r}=t,s=qn(),i=ue(s,MZ,n);return i?v.jsx(OZ,{action:i,className:r}):null});process.env.NODE_ENV!=="production"&&(GT.displayName="GridRowDragAndDropOverlay");const kZ=["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"],DZ=Ne($n,(e,{rowReordering:t,treeData:n})=>!t||n?!1:!!df(e)),u0=Xe(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:y,lastColumnIndex:m,focusedColumnIndex:b,isFirstVisible:C,isLastVisible:w,isNotVisible:S,showBottomBorder:P,scrollbarWidth:x,gridHasFiller:M,onClick:k,onDoubleClick:T,onMouseEnter:O,onMouseLeave:I,onMouseOut:D,onMouseOver:E}=t,N=Te(t,kZ),L=qn(),$=af(),F=f.useRef(null),R=De(),B=AI(L),_=ue(L,Un),V=ue(L,Us),A=R.rowReordering,z=R.treeData,G=ue(L,DZ,{rowReordering:A,treeData:z}),U=ue(L,TZ),X=st(F,n),Y=It(L,s),ee=ue(L,mI,{rowId:s,editMode:R.editMode}),oe=R.editMode===Xr.Row,K=b!==void 0,W=K&&b>=p.left.length&&b<y,J=K&&b<d.length-p.right.length&&b>=m,q=IZ(R.classes,{root:["row",r&&"selected",oe&&"row--editable",ee&&"row--editing",C&&"row--firstVisible",w&&"row--lastVisible",P&&"row--borderBottom",c==="auto"&&"row--dynamicHeight"]}),ce=$.hooks.useGridRowAriaAttributes();f.useLayoutEffect(()=>{if(B.range){const be=L.current.getRowIndexRelativeToVisibleRows(s);be!==void 0&&L.current.unstable_setLastMeasuredRowIndex(be)}if(F.current&&c==="auto")return L.current.observeRowHeight(F.current,s)},[L,B.range,c,s]);const re=f.useCallback((be,Ee)=>me=>{Cl(me)||L.current.getRow(s)&&(L.current.publishEvent(be,L.current.getRowParams(s),me),Ee&&Ee(me))},[L,s]),se=f.useCallback(be=>{const me=Tf(be.target,j.cell)?.getAttribute("data-field");me&&(me===cl.field||me===ao||me==="__reorder__"||L.current.getCellMode(s,me)===Vt.Edit||L.current.getColumn(me)?.type===cf)||re("rowClick",k)(be)},[L,k,re,s]),{slots:ae,slotProps:te,disableColumnReorder:Q}=R,Ce=ue(L,()=>H({},L.current.getRowHeightEntry(s)),void 0,WP),le=f.useMemo(()=>{if(S)return{opacity:0,width:0,height:0};const be=H({},l,{maxHeight:c==="auto"?"none":c,minHeight:c,"--height":typeof c=="number"?`${c}px`:c});if(Ce.spacingTop){const Ee=R.rowSpacingType==="border"?"borderTopWidth":"marginTop";be[Ee]=Ce.spacingTop}if(Ce.spacingBottom){const Ee=R.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let me=be[Ee];typeof me!="number"&&(me=parseInt(me||"0",10)),me+=Ce.spacingBottom,be[Ee]=me}return be},[S,c,l,Ce.spacingTop,Ce.spacingBottom,R.rowSpacingType]);if(!Y)return null;const xe=L.current.unstable_applyPipeProcessors("rowClassName",[],s),we=ce(Y,a);if(typeof R.getRowClassName=="function"){const be=a-(B.range?.firstRowIndex||0),Ee=H({},L.current.getRowParams(s),{isFirstVisible:be===0,isLastVisible:be===B.rows.length-1,indexRelativeToCurrentPage:be});xe.push(R.getRowClassName(Ee))}const Ue=(be,Ee,me,Me,Ae=mt.NONE)=>{const Ge=L.current.unstable_getCellColSpanInfo(s,me);if(Ge?.spannedByColSpan)return null;const lt=Ge?.cellProps.width??be.computedWidth,Dt=Ge?.cellProps.colSpan??1,qe=yu(Ae,be.computedWidth,me,V,h,x);if(Y.type==="skeletonRow")return v.jsx(ae.skeletonCell,{type:be.type,width:lt,height:c,field:be.field,align:be.align},be.field);const Fe=be.field==="__reorder__",Ye=!(Q||be.disableReorder),pt=G&&!_.length,qt=!(Ye||Fe&&pt||U),kt=Ae===mt.VIRTUAL,Yn=Cu(Ae,Ee,R.showCellVerticalBorder,R.pinnedColumnsSectionSeparator),_n=vu(Ae,Ee,Me,R.showCellVerticalBorder,M,R.pinnedColumnsSectionSeparator);return v.jsx(ae.cell,H({column:be,width:lt,rowId:s,align:be.align||"left",colIndex:me,colSpan:Dt,disableDragEvents:qt,isNotVisible:kt,pinnedOffset:qe,pinnedPosition:Ae,showLeftBorder:Yn,showRightBorder:_n,row:i,rowNode:Y},te?.cell),be.field)};process.env.NODE_ENV!=="production"&&(Ue.displayName="getCell");const $e=p.left.map((be,Ee)=>Ue(be,Ee,Ee,p.left.length,mt.LEFT)),Ze=p.right.map((be,Ee)=>{const me=d.length-p.right.length+Ee;return Ue(be,Ee,me,p.right.length,mt.RIGHT)}),Le=d.length-p.left.length-p.right.length,Qe=[];W&&Qe.push(Ue(d[b],b-p.left.length,b,Le,mt.VIRTUAL));for(let be=y;be<m;be+=1){const Ee=d[be],me=be-p.left.length;Ee&&Qe.push(Ue(Ee,me,be,Le))}J&&Qe.push(Ue(d[b],b-p.left.length,b,Le,mt.VIRTUAL));const Je=i?{onClick:se,onDoubleClick:re("rowDoubleClick",T),onMouseEnter:re("rowMouseEnter",O),onMouseLeave:re("rowMouseLeave",I),onMouseOut:re("rowMouseOut",D),onMouseOver:re("rowMouseOver",E)}:null;return v.jsxs("div",H({"data-id":s,"data-rowindex":a,role:"row",className:ie(...xe,q.root,u),style:le},we,Je,N,{ref:X,children:[$e,v.jsx("div",{role:"presentation",className:j.cellOffsetLeft,style:{width:g}}),Qe,v.jsx("div",{role:"presentation",className:ie(j.cell,j.cellEmpty)}),Ze,v.jsx(GT,{rowId:s})]}))});process.env.NODE_ENV!=="production"&&(u0.displayName="GridRow"),process.env.NODE_ENV!=="production"&&(u0.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 FZ=Tr(u0);function NZ({privateApiRef:e,configuration:t,props:n,children:r}){const s=f.useRef(e.current.getPublicApi());return v.jsx(Yb.Provider,{value:t,children:v.jsx(Vb.Provider,{value:n,children:v.jsx(hy.Provider,{value:e,children:v.jsx(_b.Provider,{value:s,children:v.jsx(BY,{children:v.jsx(dW,{children:r})})})})})})}function he(){return he=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},he.apply(null,arguments)}const WT=[];let Zi=0;for(;Zi<64;)WT[Zi]=0|Math.sin(++Zi%Math.PI)*4294967296;function RZ(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]+WT[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 kf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",UT=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=kf.indexOf(e.charAt(u++)),a=kf.indexOf(e.charAt(u++)),l=kf.indexOf(e.charAt(u++)),c=kf.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},$Z=["pro","premium"],LZ=["perpetual","annual","subscription"],AZ=typeof window<"u"&&window.location.hostname.endsWith(".csb.app");function Sl(e){(AZ?console.log:console.error)(["*************************************************************","",...e,"","*************************************************************"].join(`
|
|
400
|
-
`))}function VZ(){Sl(["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 _Z({packageName:e}){const t=e.replace(/-(premium|pro)$/,"");Sl(["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 BZ(){Sl(["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 HZ({plan:e,packageName:t}){Sl(["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 zZ({packageName:e}){Sl(["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 jZ({plan:e,licenseKey:t,expiryTimestamp:n}){Sl(["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 GZ({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 Df{static getLicenseInfo(){return globalThis.__MUI_LICENSE_INFO__}static getLicenseKey(){return Df.getLicenseInfo().key}static setLicenseKey(t){const n=Df.getLicenseInfo();n.key=t}}let pn=(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 WZ(e,t){let n;return e.includes("-pro")?n=["pro","premium"]:e.includes("-premium")?n=["premium"]:n=[],n.includes(t)}const UZ=/^.*EXPIRY=([0-9]+),.*$/,qZ=/^.*ORDER:([0-9]+),.*$/,YZ=["x-data-grid-pro","x-date-pickers-pro"];function KZ(e){let t,n;try{t=parseInt(e.match(UZ)[1],10),(!t||Number.isNaN(t))&&(t=null),n=parseInt(e.match(qZ)[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 XZ(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 ZZ(e){const t=UT(e);return t.includes("KEYVERSION=1")?KZ(t):t.includes("KV=2")?XZ(t):null}function QZ({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:pn.NotFound};const r=t.substr(0,32),s=t.substr(32);if(r!==RZ(s))return{status:pn.Invalid};const i=ZZ(s);if(i==null)return console.error("MUI X: Error checking license. Key version not found!"),{status:pn.Invalid};if(i.licenseModel==null||!LZ.includes(i.licenseModel))return console.error("MUI X: Error checking license. License model not found or invalid!"),{status:pn.Invalid};if(i.expiryTimestamp==null)return console.error("MUI X: Error checking license. Expiry timestamp not found or invalid!"),{status:pn.Invalid};if(i.licenseModel==="perpetual"||process.env.NODE_ENV==="production"){const a=parseInt(UT(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:pn.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:pn.ExpiredAnnualGrace,meta:{expiryTimestamp:i.expiryTimestamp,licenseKey:t}}:{status:pn.ExpiredAnnual,meta:{expiryTimestamp:i.expiryTimestamp,licenseKey:t}};return i.planScope==null||!$Z.includes(i.planScope)?(console.error("MUI X: Error checking license. planScope not found or invalid!"),{status:pn.Invalid}):WZ(n,i.planScope)?i.planVersion==="initial"&&i.planScope==="pro"&&!YZ.includes(n)?{status:pn.NotAvailableInInitialProPlan}:{status:pn.Valid}:{status:pn.OutOfScope}}function Ff(){return Ff=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},Ff.apply(null,arguments)}const JZ=()=>null,eQ={licenseVerification:process.env.NODE_ENV==="production"?JZ:(e,t)=>({eventName:"licenseVerification",payload:t,context:e})};function xl(){return xl=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},xl.apply(null,arguments)}const tQ=["1","true","yes","y"],nQ=["0","false","no","n"];function Nf(e){if(e){if(tQ.includes(e))return!0;if(nQ.includes(e))return!1}}function qT(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=Nf(t[s]?.toLowerCase());if(typeof i=="boolean")return i}}function oQ(){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=qT("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=Nf(t);if(typeof n=="boolean")return!n}catch{}}function rQ(){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=qT("MUI_X_TELEMETRY_DEBUG",process.env);if(typeof t=="boolean")return t}if(process.env.MUI_X_TELEMETRY_DEBUG){const t=Nf(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=Nf(e);if(typeof t=="boolean")return t}catch{}return!1}function sQ(){try{return process.env.NODE_ENV??"<unknown>"}catch{return"<unknown>"}}let d0=null;function iQ(e=!1){return(e||!d0)&&(d0={NODE_ENV:sQ(),IS_COLLECTING:oQ(),DEBUG:rQ()}),d0}function YT(e){return iQ()[e]}async function KT(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(KT(e,t,n-1))},Math.random()*3e3)})}}const aQ=3;function lQ(e){if(typeof window>"u")return!1;const t=YT("IS_COLLECTING");return typeof t=="boolean"?t:(e.traits.isCI,!1)}async function cQ(e){try{if(process.env.NODE_ENV==="production")return;const{default:t}=await Promise.resolve().then(()=>Die),n=await t();if(!e||!lQ(n))return;const r=xl({},e,{context:xl({},n.traits,e.context)});if(YT("DEBUG")){console.log("[mui-x-telemetry] event",JSON.stringify(r,null,2));return}await KT("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])},aQ)}catch(t){console.log("[mui-x-telemetry] error",t)}}const uQ={};const dQ=()=>{},pQ=process.env.NODE_ENV==="production"?dQ:cQ;process.env.NODE_ENV;const XT=f.createContext({key:void 0});process.env.NODE_ENV!=="production"&&(XT.displayName="MuiLicenseInfoContext");const Rf={};function wu(e,t){const{key:n}=f.useContext(XT);return f.useMemo(()=>{const r=n??Df.getLicenseKey();if(Rf[e]&&Rf[e].key===r)return Rf[e].licenseVerifier;const s=e.includes("premium")?"Premium":"Pro",i=QZ({releaseInfo:t,licenseKey:r,packageName:e}),a=`@mui/${e}`;if(pQ(eQ.licenseVerification({licenseKey:r},{packageName:e,packageReleaseInfo:t,licenseStatus:i?.status})),i.status!==pn.Valid){if(i.status===pn.Invalid)VZ();else if(i.status===pn.NotAvailableInInitialProPlan)BZ();else if(i.status===pn.OutOfScope)_Z({packageName:a});else if(i.status===pn.NotFound)HZ({plan:s,packageName:a});else if(i.status===pn.ExpiredAnnualGrace)jZ(Ff({plan:s},i.meta));else if(i.status===pn.ExpiredAnnual)GZ(Ff({plan:s},i.meta));else if(i.status===pn.ExpiredVersion)zZ({packageName:a});else if(process.env.NODE_ENV!=="production")throw new Error("missing status handler")}return Rf[e]={key:r,licenseVerifier:i},i},[e,t,n])}function fQ(e){switch(e){case pn.ExpiredAnnualGrace:case pn.ExpiredAnnual:return"MUI X Expired license key";case pn.ExpiredVersion:return"MUI X Expired package version";case pn.Invalid:return"MUI X Invalid license key";case pn.OutOfScope:return"MUI X License key plan mismatch";case pn.NotAvailableInInitialProPlan:return"MUI X Product not covered by plan";case pn.NotFound:return"MUI X Missing license key";default:throw new Error("Unhandled MUI X license status.")}}function hQ(e){const{packageName:t,releaseInfo:n}=e,r=wu(t,n);return r.status===pn.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:fQ(r.status)})}const ZT=Tr(hQ),gQ=["sortingOrder"],QT=f.memo(function(t){const{sortingOrder:n}=t,r=Te(t,gQ),s=De(),[i]=n,a=i==="asc"?s.slots.columnSortedAscendingIcon:s.slots.columnSortedDescendingIcon;return a?v.jsx(a,H({},r)):null});process.env.NODE_ENV!=="production"&&(QT.displayName="GridColumnUnsortedIcon");const mQ=new TextEncoder;let $f=2*1024,Su=new ArrayBuffer($f),p0=new Uint8Array(Su),Qi=new Int32Array(Su);const bQ=yQ;function yQ(e){const t=e.length*2;t>$f&&($f=t+(4-t%4),Su=new ArrayBuffer($f),p0=new Uint8Array(Su),Qi=new Int32Array(Su));const n=mQ.encodeInto(e,p0).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(Nr(a+Math.imul(Qi[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(Nr(l+Math.imul(Qi[i+0|0]|0,2246822519)|0,13)|0,2654435761),c=Math.imul(Nr(c+Math.imul(Qi[i+4|0]|0,2246822519)|0,13)|0,2654435761),u=Math.imul(Nr(u+Math.imul(Qi[i+8|0]|0,2246822519)|0,13)|0,2654435761),d=Math.imul(Nr(d+Math.imul(Qi[i+12|0]|0,2246822519)|0,13)|0,2654435761);for(a=(((Nr(l,1)|0+Nr(c,7)|0)+Nr(u,12)|0)+Nr(d,18)|0)+s|0;(i+3|0)<s;i=i+4|0)a=Math.imul(Nr(a+Math.imul(Qi[i]|0,3266489917)|0,17)|0,668265263)}for(;i<s;i=i+1|0)a=Math.imul(Nr(a+Math.imul(p0[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 Nr(e,t){return e<<t|e>>>32-t}function vQ(){const e=uo();return f.useMemo(()=>{const t=bQ(PQ(e)),n=CQ(e);return{id:t,variables:n}},[e])}function CQ(e){const t=SQ(e),n=(e.vars||e).palette.DataGrid,r=(e.vars||e).palette.background.paper,s=n?.bg??(e.palette.mode==="dark"?Oy(`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})`:zn(e.palette.background.default,e.palette.action.disabledOpacity),c=e.palette.mode==="dark"?Oy(`color-mix(in srgb, ${r} 90%, #fff)`,r):r,u=e.vars?`rgb(${e.vars.palette.primary.mainChannel})`:e.palette.primary.main,d=wQ(e),p=e.vars?.font?.body2??f0(e.typography.body2),g=e.vars?.font?.caption??f0(e.typography.caption),h=e.vars?.font?.body1??f0(e.typography.body1),y=Ie.keys;return{[y.spacingUnit]:e.vars?e.vars.spacing??e.spacing(1):e.spacing(1),[y.colors.border.base]:t,[y.colors.background.base]:s,[y.colors.background.overlay]:c,[y.colors.background.backdrop]:l,[y.colors.foreground.base]:(e.vars||e).palette.text.primary,[y.colors.foreground.muted]:(e.vars||e).palette.text.secondary,[y.colors.foreground.accent]:(e.vars||e).palette.primary.dark,[y.colors.foreground.disabled]:(e.vars||e).palette.text.disabled,[y.colors.foreground.error]:(e.vars||e).palette.error.dark,[y.colors.interactive.hover]:My?(e.vars||e).palette.action.hover:(e.vars||e).palette.grey[e.palette.mode==="dark"?800:100],[y.colors.interactive.hoverOpacity]:(e.vars||e).palette.action.hoverOpacity,[y.colors.interactive.focus]:JT((e.vars||e).palette.primary.main),[y.colors.interactive.focusOpacity]:(e.vars||e).palette.action.focusOpacity,[y.colors.interactive.disabled]:JT((e.vars||e).palette.action.disabled),[y.colors.interactive.disabledOpacity]:(e.vars||e).palette.action.disabledOpacity,[y.colors.interactive.selected]:My?u:(e.vars||e).palette.grey[e.palette.mode==="dark"?700:200],[y.colors.interactive.selectedOpacity]:(e.vars||e).palette.action.selectedOpacity,[y.header.background.base]:i,[y.cell.background.pinned]:a,[y.radius.base]:d,[y.typography.fontFamily.base]:e.typography.fontFamily,[y.typography.fontWeight.light]:e.typography.fontWeightLight,[y.typography.fontWeight.regular]:e.typography.fontWeightRegular,[y.typography.fontWeight.medium]:e.typography.fontWeightMedium,[y.typography.fontWeight.bold]:e.typography.fontWeightBold,[y.typography.font.body]:p,[y.typography.font.small]:g,[y.typography.font.large]:h,[y.transitions.easing.easeIn]:e.transitions.easing.easeIn,[y.transitions.easing.easeOut]:e.transitions.easing.easeOut,[y.transitions.easing.easeInOut]:e.transitions.easing.easeInOut,[y.transitions.duration.short]:`${e.transitions.duration.shorter}ms`,[y.transitions.duration.base]:`${e.transitions.duration.short}ms`,[y.transitions.duration.long]:`${e.transitions.duration.standard}ms`,[y.shadows.base]:(e.vars||e).shadows[2],[y.shadows.overlay]:(e.vars||e).shadows[8],[y.zIndex.panel]:(e.vars||e).zIndex.modal,[y.zIndex.menu]:(e.vars||e).zIndex.modal}}function wQ(e){return e.vars?e.vars.shape.borderRadius:typeof e.shape.borderRadius=="number"?`${e.shape.borderRadius}px`:e.shape.borderRadius}function SQ(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?tc(zn(e.palette.divider,1),.88):ec(zn(e.palette.divider,1),.68)}function xQ(e,t){return`rgba(from ${e} r g b / ${t})`}function JT(e){return xQ(e,1)}function f0(e){if(!e)return;const t=typeof e.fontSize=="number"?`${e.fontSize}px`:e.fontSize;return`${e.fontWeight} ${t} / ${e.lineHeight} ${e.fontFamily}`}function PQ(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 EQ=["id","label","labelId","material","disabled","slotProps","onChange","onKeyDown","onOpen","onClose","size","style","fullWidth"],IQ=["onRowsPerPageChange","material","disabled"],TQ=["material"],MQ=["autoFocus","label","fullWidth","slotProps","className","material"],OQ=["material"],kQ=["material"],DQ=["material"],FQ=["material"],NQ=["material"],RQ=["material"],$Q=["material"],LQ=["material"],AQ=["material"],VQ=["material","label","className"],_Q=["material"],BQ=["inert","iconStart","iconEnd","children","material"],HQ=["slotProps","material"],zQ=["id","multiple","freeSolo","options","getOptionLabel","isOptionEqualToValue","value","onChange","label","placeholder","slotProps","material"],jQ=["key"],GQ=["inputProps","InputProps","InputLabelProps"],WQ=["slotProps","material"],UQ=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement","material"],qQ=["native"],YQ=["children","value","active"],KQ=["items","value","material"],eM=Z(Aa)(({theme:e})=>({[`&.${Ug.positionEnd} .${vg.sizeSmall}`]:{marginRight:e.spacing(-.75)}})),tM=Z(wc,{shouldForwardProp:e=>e!=="fullWidth"})(({theme:e})=>({gap:e.spacing(.5),margin:0,overflow:"hidden",[`& .${La.label}`]:{fontSize:e.typography.pxToRem(14),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),nM=Z(Na,{shouldForwardProp:e=>e!=="density"})(({theme:e})=>({variants:[{props:{density:"compact"},style:{padding:e.spacing(.5)}}]})),XQ=Z(Ur)({[`& .${Pi.primary}`]:{overflowX:"clip",textOverflow:"ellipsis",maxWidth:"300px"}}),oM=Xe(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:y,fullWidth:m}=t,b=Te(t,EQ),w=uo().components?.MuiTextField?.defaultProps??{},S=h??w.size,P=w.variant??"outlined",x={PaperProps:{onKeyDown:d}};return g&&(x.onClose=g),v.jsxs($s,{size:S,fullWidth:m,style:y,disabled:l,ref:n,children:[v.jsx(wi,{id:i,htmlFor:r,shrink:!0,variant:P,children:s}),v.jsx(Ls,H({id:r,labelId:i,label:s,displayEmpty:!0,onChange:u,variant:P},b,{inputProps:c?.htmlInput,onOpen:p,MenuProps:x,size:S},a))]})});process.env.NODE_ENV!=="production"&&(oM.displayName="BaseSelect");const ZQ=Z(C2)(({theme:e})=>({[`& .${Ei.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Ei.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),rM=Xe(function(t,n){const{onRowsPerPageChange:r,material:s,disabled:i}=t,a=Te(t,IQ),l=f.useMemo(()=>{if(i)return{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}},[i]),c=tt(),u=De(),{estimatedRowCount:d}=u;return v.jsx(ZQ,H({component:"div",onRowsPerPageChange:fe(p=>{r?.(Number(p.target.value))}),labelRowsPerPage:c.current.getLocaleText("paginationRowsPerPage"),labelDisplayedRows:p=>c.current.getLocaleText("paginationDisplayedRows")(H({},p,{estimated:d})),getItemAriaLabel:c.current.getLocaleText("paginationItemAriaLabel")},l,a,s,{ref:n}))});process.env.NODE_ENV!=="production"&&(rM.displayName="BasePagination");const sM=Xe(function(t,n){const{material:r}=t,s=Te(t,TQ);return v.jsx(xw,H({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(sM.displayName="BaseBadge");const iM=Xe(function(t,n){const{autoFocus:r,label:s,fullWidth:i,slotProps:a,className:l,material:c}=t,u=Te(t,MQ),d=f.useRef(null),p=st(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(tM,{className:l,control:v.jsx(nM,H({},u,c,{inputProps:a?.htmlInput,ref:p,touchRippleRef:g})),label:s,fullWidth:i}):v.jsx(nM,H({},u,c,{className:ie(l,c?.className),inputProps:a?.htmlInput,ref:p,touchRippleRef:g}))});process.env.NODE_ENV!=="production"&&(iM.displayName="BaseCheckbox");const aM=Xe(function(t,n){const{material:r}=t,s=Te(t,OQ);return v.jsx(fi,H({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(aM.displayName="BaseCircularProgress");const lM=Xe(function(t,n){const{material:r}=t,s=Te(t,kQ);return v.jsx(Cc,H({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(lM.displayName="BaseDivider");const cM=Xe(function(t,n){const{material:r}=t,s=Te(t,DQ);return v.jsx(jw,H({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(cM.displayName="BaseLinearProgress");const uM=Xe(function(t,n){const{material:r}=t,s=Te(t,FQ);return v.jsx(Gn,H({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(uM.displayName="BaseButton");const QQ=Z(k2)(({theme:e})=>({gap:e.spacing(1),border:0})),dM=Xe(function(t,n){const{material:r}=t,s=Te(t,NQ);return v.jsx(QQ,H({size:"small",color:"primary"},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(dM.displayName="BaseToggleButton");const pM=Xe(function(t,n){const{material:r}=t,s=Te(t,RQ);return v.jsx(Da,H({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(pM.displayName="BaseChip");const fM=Xe(function(t,n){const{material:r}=t,s=Te(t,$Q);return v.jsx(kn,H({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(fM.displayName="BaseIconButton");const hM=Xe(function(t,n){const{material:r}=t,s=Te(t,LQ);return v.jsx(xr,H({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(hM.displayName="BaseTooltip");const gM=Xe(function(t,n){const{material:r}=t,s=Te(t,AQ);return v.jsx(u2,H({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(gM.displayName="BaseSkeleton");const mM=Xe(function(t,n){const{material:r,label:s,className:i}=t,a=Te(t,VQ);return s?v.jsx(tM,{className:i,control:v.jsx(cm,H({},a,r,{ref:n})),label:s}):v.jsx(cm,H({},a,r,{className:i,ref:n}))});process.env.NODE_ENV!=="production"&&(mM.displayName="BaseSwitch");const bM=Xe(function(t,n){const{material:r}=t,s=Te(t,_Q);return v.jsx(nm,H({},s,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(bM.displayName="BaseMenuList");function JQ(e){const{inert:t,iconStart:n,iconEnd:r,children:s,material:i}=e,a=Te(e,BQ);return t&&(a.disableRipple=!0),f.createElement(pr,H({},a,i),[n&&v.jsx(xi,{children:n},"1"),v.jsx(XQ,{children:s},"2"),r&&v.jsx(xi,{children:r},"3")])}function eJ(e){const{slotProps:t,material:n}=e,r=Te(e,HQ),i=uo().components?.MuiTextField?.defaultProps??{},a=r.variant??i.variant??"outlined",l=r.size??i.size;return v.jsx(As,H({variant:a,size:l},r,n,{inputProps:t?.htmlInput,InputProps:h0(t?.input),InputLabelProps:H({shrink:!0},t?.inputLabel)}))}function tJ(e){const t=De(),{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,y=Te(e,zQ);return v.jsx(Dg,H({id:n,multiple:r,freeSolo:s,options:i,getOptionLabel:a,isOptionEqualToValue:l,value:c,onChange:u,renderTags:(m,b)=>m.map((C,w)=>{const S=b({index:w}),{key:P}=S,x=Te(S,jQ);return v.jsx(Da,H({variant:"outlined",size:"small",label:typeof C=="string"?C:a?.(C)},x),P)}),renderInput:m=>{const{inputProps:b,InputProps:C,InputLabelProps:w}=m,S=Te(m,GQ);return v.jsx(As,H({},S,{label:d,placeholder:p,inputProps:b,InputProps:h0(C,!1),InputLabelProps:H({shrink:!0},w)},g?.textField,t.slotProps?.baseTextField))}},y,h))}function nJ(e){return v.jsx(Fa,H({},h0(e)))}function h0(e,t=!0){if(!e)return;const{slotProps:n,material:r}=e,i=Te(e,WQ);t&&(i.startAdornment&&(i.startAdornment=v.jsx(eM,{position:"start",children:i.startAdornment})),i.endAdornment&&(i.endAdornment=v.jsx(eM,{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=H({},i.inputProps,n?.htmlInput):i.inputProps=n?.htmlInput),i}const oJ={"bottom-start":"top left","bottom-end":"top right"};function rJ(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=Te(e,UQ),y=f.useMemo(()=>{const b=[{name:"preventOverflow",options:{padding:8}}];return s&&b.push({name:"flip",enabled:!0}),(a||l)&&b.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{a?.()},effect:()=>()=>{l?.()}}),b},[s,a,l]);let m;if(!d)m=yM(e,n);else{const b=C=>w=>{C&&C(),i&&i(w)};m=C=>yM(e,v.jsx(Ci,H({},C.TransitionProps,{style:{transformOrigin:oJ[C.placement]},onExited:b(C.TransitionProps?.onExited),children:v.jsx(wr,{children:n})})))}return v.jsx(bi,H({id:c,className:r,open:t,anchorEl:u,transition:d,placement:p,modifiers:y},h,g,{children:m}))}function yM(e,t){return iJ(e,sJ(e,t))}function sJ(e,t){return e.onClickAway===void 0?t:v.jsx(zd,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}function iJ(e,t){return e.focusTrap===void 0?t:v.jsx($a,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:v.jsx("div",{tabIndex:-1,children:t})})}function aJ(e){let{native:t}=e,n=Te(e,qQ);return t?v.jsx("option",H({},n)):v.jsx(pr,H({},n))}const lJ=Z(T2,{name:"MuiDataGrid",slot:"Tabs"})(({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`})),cJ=Z(p2,{name:"MuiDataGrid",slot:"Tab"})({flex:1,minWidth:"fit-content"}),uJ=Z("div",{name:"MuiDataGrid",slot:"TabPanel"})({flex:1,display:"flex",flexDirection:"column",overflow:"hidden"});function dJ(e){const{children:t,active:n}=e,r=Te(e,YQ);return v.jsx(uJ,H({role:"tabpanel",style:{display:n?"flex":"none"}},r,{children:t}))}function pJ(e){let{items:t,value:n,material:r}=e,s=Te(e,KQ);const i=dt(),a=`${i}-tab-${n}`,l=`${i}-tabpanel-${n}`;return v.jsxs(f.Fragment,{children:[v.jsx(lJ,H({},s,{value:n,variant:"scrollable",scrollButtons:"auto"},r,{children:t.map(c=>v.jsx(cJ,{value:c.value,label:c.label,id:a,"aria-controls":l},c.value))})),t.map(c=>v.jsx(dJ,{value:c.value,active:n===c.value,id:l,"aria-labelledby":a,children:c.children},c.value))]})}const fJ=H({},{baseAutocomplete:tJ,baseBadge:sM,baseCheckbox:iM,baseChip:pM,baseCircularProgress:aM,baseDivider:lM,baseInput:nJ,baseLinearProgress:cM,baseMenuList:bM,baseMenuItem:JQ,baseTextField:eJ,baseButton:uM,baseIconButton:fM,baseToggleButton:dM,baseTooltip:hM,baseTabs:pJ,basePagination:rM,basePopper:rJ,baseSelect:oM,baseSelectOption:aJ,baseSkeleton:gM,baseSwitch:mM},{booleanCellTrueIcon:bT,booleanCellFalseIcon:hT,columnMenuIcon:WK,openFilterButtonIcon:VK,filterPanelDeleteIcon:hT,columnFilteredIcon:fT,columnSelectorIcon:BK,columnUnsortedIcon:QT,columnSortedAscendingIcon:cT,columnSortedDescendingIcon:uT,columnResizeIcon:HK,densityCompactIcon:zK,densityStandardIcon:jK,densityComfortableIcon:GK,exportIcon:QK,moreActionsIcon:YK,treeDataCollapseIcon:pT,treeDataExpandIcon:dT,groupingCriteriaCollapseIcon:pT,groupingCriteriaExpandIcon:dT,detailPanelExpandIcon:gT,detailPanelCollapseIcon:UK,rowReorderIcon:mT,quickFilterIcon:_K,quickFilterClearIcon:yT,columnMenuHideIcon:KK,columnMenuSortAscendingIcon:cT,columnMenuSortDescendingIcon:uT,columnMenuUnsortIcon:null,columnMenuFilterIcon:fT,columnMenuManageColumnsIcon:XK,columnMenuClearIcon:yT,loadIcon:qK,filterPanelAddIcon:gT,filterPanelRemoveAllIcon:ZK,columnReorderIcon:mT,menuItemCheckIcon:bT}),hJ=()=>f.useRef(null),gJ=()=>{const e=qn(),t=De(),n=ue(e,hn),r=ue(e,ey),s=ue(e,du),i=ue(e,kP),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":ny(t)}},mJ=()=>{const e=qn(),t=ue(e,du);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])},bJ=e=>{const t=f.useCallback((r,s,i)=>{const a=It(e,r),l=It(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=Ui(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 y=yt(e)[nt],b=[...y.children];return b.splice(g,0,b.splice(d,1)[0]),H({},h,{rows:H({},h.rows,{tree:H({},h.rows.tree,{[nt]:H({},y,{children:b})})})})}),e.current.publishEvent("rowsSet"))},[e]);return{setRowIndex:f.useCallback((r,s)=>{const i=It(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=yt(e)[nt],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]),H({},a,{rows:H({},a.rows,{tree:H({},a.rows.tree,{[nt]:H({},l,{children:d})})})})}),e.current.publishEvent("rowsSet")},[e]),setRowPosition:t}},yJ=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)=>FP(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}},vJ=()=>f.useCallback(e=>!tl(e.rowNode),[]),CJ=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})},wJ=e=>{const t=Gt();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=>H({},r,{isRtl:t}))},[e,t])},SJ=qG()&&window.localStorage.getItem("DEBUG")!=null,xu=()=>{},xJ={debug:xu,info:xu,warn:xu,error:xu},vM=["debug","info","warn","error"];function CM(e,t,n=console){const r=vM.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return vM.reduce((i,a,l)=>(l>=r?i[a]=(...c)=>{const[u,...d]=c;n[a](`MUI X: ${e} - ${u}`,...d)}:i[a]=xu,i),{})}const PJ=(e,t)=>{const n=f.useCallback(r=>SJ?CM(r,"debug",t.logger):t.logLevel?CM(r,t.logLevel.toString(),t.logger):xJ,[t.logLevel,t.logger]);rt(e,{getLogger:n},"private")},EJ=(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 Co=(function(e){return e.DataSource="dataSource",e.RowTree="rowTree",e})({});const wo=(e,t,n,r)=>{const s=f.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);gs(()=>{s()});const i=f.useRef(!0);f.useEffect(()=>{i.current?i.current=!1:s()},[s])},Ji="none",wM={dataSourceRowsUpdate:Co.DataSource,rowTreeCreation:Co.RowTree,filtering:Co.RowTree,sorting:Co.RowTree,visibleRowsLookupCreation:Co.RowTree},IJ=e=>{const t=f.useRef(new Map),n=f.useRef({}),r=f.useCallback((c,u,d)=>{const p=()=>{const y=n.current[u],m=Te(y,[c].map(gu));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(wM[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),p},[e]),s=f.useCallback((c,u)=>{const d=e.current.getActiveStrategy(wM[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]??Ji,[]),a=f.useCallback((c,u,d)=>{t.current.set(u,{group:c,isAvailable:d}),e.current.publishEvent("strategyAvailabilityChange")},[e]);rt(e,{registerStrategyProcessor:r,applyStrategyProcessor:s,getActiveStrategy:i,setStrategyAvailability:a},"private")},TJ=e=>{const t=f.useRef({}),n=f.useCallback(l=>{t.current[l.stateId]=l},[]),r=f.useCallback((l,c)=>{let u;if(UG(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 y=t.current[h],m=y.stateSelector(e),b=y.stateSelector(d);b!==m&&(g.push({stateId:y.stateId,hasPropChanged:b!==y.propModel}),y.propModel!==void 0&&b!==y.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:y}=g[0],m=t.current[h],b=m.stateSelector(d);m.propOnChange&&y&&m.propOnChange(b,{reason:c,api:e.current}),p||e.current.publishEvent(m.changeEvent,b,{reason:c})}return!p},[e]),s=f.useCallback((l,c,u)=>e.current.setState(d=>H({},d,{[l]:c(d[l])}),u),[e]),i={setState:r},a={updateControlState:s,registerControlState:n};rt(e,i,"public"),rt(e,a,"private")},MJ=(e,t)=>H({},e,{props:{listView:t.listView,getRowId:t.getRowId,isCellEditable:t.isCellEditable,isRowSelectable:t.isRowSelectable}}),OJ=(e,t)=>{const n=f.useRef(!0);f.useEffect(()=>{if(n.current){n.current=!1;return}e.current.setState(r=>H({},r,{props:{listView:t.listView,getRowId:t.getRowId,isCellEditable:t.isCellEditable,isRowSelectable:t.isRowSelectable}}))},[e,t.listView,t.getRowId,t.isCellEditable,t.isRowSelectable])},kJ=(e,t)=>{CJ(e),OJ(e,t),wJ(e),PJ(e,t),TJ(e),sY(e),IJ(e),EJ(e,t),e.current.register("private",{rootProps:t})},mn=(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 g0(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 SM=(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 g0(s,n)};class m0{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 DJ=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:s})=>{const i=new m0({csvOptions:r});return t.forEach(a=>{const l=n(e,a.field);String(l.formattedValue)==="[object Object]"&&xn(["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(SM(l,{ignoreValueFormatter:s,csvOptions:r}))}),i.getRowString()};function FJ(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:s,apiRef:i}=e,a=n.reduce((p,g)=>`${p}${DJ({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!==cl.field),c=[];if(r.includeColumnGroupsHeaders){const p=i.current.getAllGroupDetails();let g=0;const h=l.reduce((y,m)=>{const b=i.current.getColumnGroupPath(m.field);return y[m.field]=b,g=Math.max(g,b.length),y},{});for(let y=0;y<g;y+=1){const m=new m0({csvOptions:r,sanitizeCellValue:g0});c.push(m),l.forEach(b=>{const C=(h[b.field]||[])[y],w=p[C];m.addValue(w?w.headerName||w.groupId:"")})}}const u=new m0({csvOptions:r,sanitizeCellValue:g0});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 xM(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 NJ(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{xM(e)}):xM(e)}function RJ(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(!lW(a)||RJ(a.target))return;let l="";if(ff(e)>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:s,shouldAppendQuotes:!1,escapeFormulas:!1});else{const u=yo(e);if(u){const d=e.current.getCellParams(u.id,u.field);l=SM(d,{csvOptions:{delimiter:s,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(NJ(l),e.current.publishEvent("clipboardCopy",l))},[e,r,s]);cI(e,()=>e.current.rootElementRef.current,"keydown",i),Nt(e,"clipboardCopy",t.onClipboardCopy)},LJ=e=>H({},e,{columnMenu:{open:!1}}),AJ=e=>{const t=Rn(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=xf(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(),H({},h,{columnMenu:{open:!0,field:u}}))),e.current.hidePreferences())},[e,t,s]),a=f.useCallback(()=>{const u=xf(e);if(u.field){const g=Qr(e),h=Xo(e),y=mr(e);let m=u.field;if(g[m]||(m=y[0]),h[m]===!1){const b=y.filter(w=>w===m?!0:h[w]!==!1),C=b.indexOf(m);m=b[C+1]||b[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(),H({},g,{columnMenu:d})))},[e,t,r]),l=f.useCallback(u=>{t.debug("Toggle Column Menu");const d=xf(e);!d.open||d.field!==u?i(u):a()},[e,t,i,a]);rt(e,{showColumnMenu:i,hideColumnMenu:a,toggleColumnMenu:l},"public"),Pe(e,"columnResizeStart",a)},VJ=(e,t,n)=>{n.current.caches.columns={lastColumnsProp:t.columns};const r=pl({apiRef:n,columnsToUpsert:t.columns,initialState:t.initialState?.columns,columnVisibilityModel:t.columnVisibilityModel??t.initialState?.columns?.columnVisibilityModel??{},keepOnlyColumnsToUpsert:!0});return H({},e,{columns:r,pinnedColumns:e.pinnedColumns??sf})};function _J(e,t){const n=Rn(e,"useGridColumns");e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Xo,changeEvent:"columnVisibilityModelChange"});const r=f.useCallback(T=>{n.debug("Updating columns state."),e.current.setState(BJ(T)),e.current.publishEvent("columnsChange",T.orderedFields)},[n,e]),s=f.useCallback(T=>Qr(e)[T],[e]),i=f.useCallback(()=>Ko(e),[e]),a=f.useCallback(()=>hn(e),[e]),l=f.useCallback((T,O=!0)=>(O?hn(e):Ko(e)).findIndex(D=>D.field===T),[e]),c=f.useCallback(T=>{const O=l(T);return Us(e)[O]},[e,l]),u=f.useCallback(T=>{Xo(e)!==T&&(e.current.setState(I=>H({},I,{columns:pl({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:T,keepOnlyColumnsToUpsert:!1})})),e.current.updateRenderContext?.())},[e]),d=f.useCallback(T=>{let O=T;if(Yi(e)){const D=[],E=[],N=gy(e);if(T.forEach(L=>{N.has(L.field)?D.push(L):E.push(L)}),D.length>0&&e.current.updateNonPivotColumns(D),E.length===0)return;O=E}const I=pl({apiRef:e,columnsToUpsert:O,initialState:void 0,keepOnlyColumnsToUpsert:!1,updateInitialVisibilityModel:!0});r(I)},[e,r]),p=f.useCallback((T,O)=>{const I=Xo(e),D=I[T]??!0;if(O!==D){const E=H({},I,{[T]:O});e.current.setColumnVisibilityModel(E)}},[e]),g=f.useCallback(T=>mr(e).findIndex(I=>I===T),[e]),h=f.useCallback((T,O)=>{const I=mr(e),D=g(T);if(D===O)return;n.debug(`Moving column ${T} to index ${O}`);const E=[...I],N=E.splice(D,1)[0];E.splice(O,0,N),r(H({},kr(e),{orderedFields:E}));const L={column:e.current.getColumn(T),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(T),oldIndex:D};e.current.publishEvent("columnIndexChange",L)},[e,n,r,g]),y=f.useCallback((T,O)=>{n.debug(`Updating column ${T} width to ${O}`);const I=kr(e),D=I.lookup[T],E=H({},D,{width:O,hasBeenResized:!0});r(dy(H({},I,{lookup:H({},I.lookup,{[T]:E})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(T),colDef:E,width:O})},[e,n,r]),m={getColumn:s,getAllColumns:i,getColumnIndex:l,getColumnPosition:c,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:g,updateColumns:d,setColumnVisibilityModel:u,setColumnVisibility:p,setColumnWidth:y},b={setColumnIndex:h};rt(e,m,"public"),rt(e,b,t.signature===Do.DataGrid?"private":"public");const C=f.useCallback((T,O)=>{const I={},D=Xo(e);(!O.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(t.initialState?.columns?.columnVisibilityModel??{}).length>0||Object.keys(D).length>0)&&(I.columnVisibilityModel=D),I.orderedFields=mr(e);const N=Ko(e),L={};return N.forEach($=>{if($.hasBeenResized){const F={};aI.forEach(R=>{let B=$[R];B===1/0&&(B=-1),F[R]=B}),L[$.field]=F}}),Object.keys(L).length>0&&(I.dimensions=L),H({},T,{columns:I})},[e,t.columnVisibilityModel,t.initialState?.columns]),w=f.useCallback((T,O)=>{const I=O.stateToRestore.columns,D=I?.columnVisibilityModel;if(I==null)return T;const E=pl({apiRef:e,columnsToUpsert:[],initialState:I,columnVisibilityModel:D,keepOnlyColumnsToUpsert:!1});return I!=null&&e.current.setState(N=>H({},N,{columns:H({},N.columns,{lookup:E.lookup,orderedFields:E.orderedFields,initialColumnVisibilityModel:E.initialColumnVisibilityModel})})),D!=null&&e.current.setState(N=>H({},N,{columns:H({},N.columns,{columnVisibilityModel:D})})),I!=null&&e.current.publishEvent("columnsChange",E.orderedFields),T},[e]),S=f.useCallback((T,O)=>{if(O===vo.columns){const I=t.slots.columnsPanel;return v.jsx(I,H({},t.slotProps?.columnsPanel))}return T},[t.slots.columnsPanel,t.slotProps?.columnsPanel]),P=f.useCallback(T=>{const O=Yi(e);return t.disableColumnSelector||O?T:[...T,"columnMenuColumnsItem"]},[t.disableColumnSelector,e]);Ct(e,"columnMenu",P),Ct(e,"exportState",C),Ct(e,"restoreState",w),Ct(e,"preferencePanel",S);const x=f.useRef(null);Pe(e,"viewportInnerSizeChange",T=>{if(x.current!==T.width){if(x.current=T.width,!hn(e).some(I=>I.flex&&I.flex>0))return;r(dy(kr(e),e.current.getRootDimensions()))}});const k=f.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const T=pl({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});r(T)},[e,n,r]);Py(e,"hydrateColumns",k),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 T=pl({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0,updateInitialVisibilityModel:!0,columnVisibilityModel:t.columnVisibilityModel});r(T)},[n,e,r,t.columns,t.columnVisibilityModel]),f.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function BJ(e){return t=>H({},t,{columns:e})}const HJ=(e,t)=>H({},e,{density:t.initialState?.density??t.density??"standard"}),zJ=(e,t)=>{const n=Rn(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:nl,changeEvent:"densityChange"});const s={setDensity:fe(l=>{nl(e)!==l&&(n.debug(`Set grid density to ${l}`),e.current.setState(u=>H({},u,{density:l})))})};rt(e,s,"public");const i=f.useCallback((l,c)=>{const u=nl(e);return!c.exportOnlyDirtyModels||t.density!=null||t.initialState?.density!=null?H({},l,{density:u}):l},[e,t.density,t.initialState?.density]),a=f.useCallback((l,c)=>{const u=c.stateToRestore?.density?c.stateToRestore.density:nl(e);return e.current.setState(d=>H({},d,{density:u})),l},[e]);Ct(e,"exportState",i),Ct(e,"restoreState",a),f.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function jJ(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 PM=({apiRef:e,options:t})=>{const n=Ko(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:hn(e)).filter(s=>s.disableExport!==!0)},EM=({apiRef:e})=>{const t=Jb(e),n=yt(e),r=ff(e),s=t.filter(c=>n[c].type!=="footer"),i=_i(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=BE(e);return s.filter(u=>c.has(u))}return s},GJ=(e,t)=>{const n=Rn(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=PM({apiRef:e,options:u}),g=(u.getRowsToExport??EM)({apiRef:e});return FJ({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"});jJ(p,"csv",u?.fileName)},[n,i]);rt(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const c=f.useCallback((u,d)=>d.csvOptions?.disableToolbarButton?u:[...u,{component:v.jsx(FT,{options:d.csvOptions}),componentName:"csvExport"}],[]);Ct(e,"exportMenu",c)};function WJ(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 Lf=(e,t,n)=>{let r=e.paginationModel;const s=e.rowCount,i=n?.pageSize??r.pageSize,a=n?.page??r.page,l=GE(s,i,a);n&&(n?.page!==r.page||n?.pageSize!==r.pageSize)&&(r=n);const c=i===-1?0:tU(r.page,l);return c!==r.page&&(r=H({},r,{page:c})),UE(r.pageSize,t),r},UJ=(e,t)=>{const n=Rn(e,"useGridPaginationModel"),r=ue(e,tu),s=f.useRef(gn(e)),i=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:En,changeEvent:"paginationModelChange"});const a=f.useCallback(P=>{const x=En(e);P!==x.page&&(n.debug(`Setting page to ${P}`),e.current.setPaginationModel({page:P,pageSize:x.pageSize}))},[e,n]),l=f.useMemo(()=>vr(a,0),[a]),c=f.useCallback(P=>{const x=En(e);P!==x.pageSize&&(n.debug(`Setting page size to ${P}`),e.current.setPaginationModel({pageSize:P,page:x.page}))},[e,n]),u=f.useCallback(P=>{const x=En(e);P!==x&&(n.debug("Setting 'paginationModel' to",P),e.current.setState(M=>H({},M,{pagination:H({},M.pagination,{paginationModel:Lf(M.pagination,t.signature,P)})}),"setPaginationModel"))},[e,n,t.signature]);rt(e,{setPage:a,setPageSize:c,setPaginationModel:u},"public");const p=f.useCallback((P,x)=>{const M=En(e);return!x.exportOnlyDirtyModels||t.paginationModel!=null||t.initialState?.pagination?.paginationModel!=null||M.page!==0&&M.pageSize!==eU(t.autoPageSize)?H({},P,{pagination:H({},P.pagination,{paginationModel:M})}):P},[e,t.paginationModel,t.initialState?.pagination?.paginationModel,t.autoPageSize]),g=f.useCallback((P,x)=>{const M=x.stateToRestore.pagination?.paginationModel?H({},WE(t.autoPageSize),x.stateToRestore.pagination?.paginationModel):En(e);return e.current.setState(k=>H({},k,{pagination:H({},k.pagination,{paginationModel:Lf(k.pagination,t.signature,M)})}),"stateRestorePreProcessing"),P},[e,t.autoPageSize,t.signature]);Ct(e,"exportState",p),Ct(e,"restoreState",g);const h=()=>{const P=En(e);e.current.virtualScrollerRef?.current&&e.current.scrollToIndexes({rowIndex:P.page*P.pageSize})},y=f.useCallback(()=>{if(!t.autoPageSize)return;const P=e.current.getRootDimensions(),x=Math.max(1,Math.floor(P.viewportInnerSize.height/i));e.current.setPageSize(x)},[e,t.autoPageSize,i]),m=f.useCallback(P=>{if(P==null)return;const x=En(e);if(x.page===0)return;const M=YE(e);x.page>M-1&&queueMicrotask(()=>{l(Math.max(0,M-1))})},[e,l]),b=f.useCallback(()=>{En(e).page!==0&&l(0),e.current.getScrollPosition().top!==0&&e.current.scroll({top:0})},[e,l]),C=f.useMemo(()=>vr(b,0),[b]),w=f.useCallback(P=>{const x=H({},P,{items:ty(e)});No(x,s.current)||(s.current=x,C())},[e,C]);Pe(e,"viewportInnerSizeChange",y),Pe(e,"paginationModelChange",h),Pe(e,"rowCountChange",m),Pe(e,"sortModelChange",C),Pe(e,"filterModelChange",w);const S=f.useRef(!0);f.useEffect(()=>{if(S.current){S.current=!1;return}t.pagination&&e.current.setState(P=>H({},P,{pagination:H({},P.pagination,{paginationModel:Lf(P.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),f.useEffect(()=>{e.current.setState(P=>{const x=t.pagination===!0;return P.pagination.paginationMode===t.paginationMode&&P.pagination.enabled===x?P:H({},P,{pagination:H({},P.pagination,{paginationMode:t.paginationMode,enabled:x})})})},[e,t.paginationMode,t.pagination]),f.useEffect(y,[y])};function qJ(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function YJ(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 KJ=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=Rn(e,"useGridPrintExport"),s=f.useRef(null),i=f.useRef(null),a=f.useRef({}),l=f.useRef([]),c=f.useRef(null);f.useEffect(()=>{s.current=Qt(e.current.rootElementRef.current)},[e,n]);const u=f.useCallback((b,C,w)=>new Promise(S=>{const P=PM({apiRef:e,options:{fields:b,allColumns:C}}).map(k=>k.field),x=Ko(e),M={};x.forEach(k=>{M[k.field]=P.includes(k.field)}),w&&(M[cl.field]=!0),e.current.setColumnVisibilityModel(M),S()}),[e]),d=f.useCallback(b=>{const w=b({apiRef:e}).reduce((S,P)=>{const x=e.current.getRow(P);return x[Bi]||S.push(x),S},[]);e.current.setRows(w)},[e]),p=f.useCallback((b,C)=>{const w=H({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},C),S=b.contentDocument;if(!S)return;const P=e.current.rootElementRef.current,x=P.cloneNode(!0),M=x.querySelector(`.${j.virtualScrollerContent}`),k=x.querySelector(`.${j.main}`);if(k.style.overflow="visible",x.querySelector(`.${j.virtualScrollerRenderZone}`).style.position="static",M.style.flexBasis="auto",x.querySelector(`.${j["scrollbar--vertical"]}`)?.remove(),!(M.nextSibling instanceof HTMLElement&&M.nextSibling.classList.contains(j.filler))){const E=document.createElement("div");E.style.height=RI,M.insertAdjacentElement("afterend",E)}const T=x.querySelector(`.${j.footerContainer}`);w.hideToolbar&&x.querySelector(`.${j.toolbar}`)?.remove(),w.hideFooter&&T&&T.remove(),x.style.height="auto",x.style.boxSizing="content-box",!w.hideFooter&&T&&(T.style.width="100%");const O=document.createElement("div");O.appendChild(x),S.body.style.marginTop="0px",S.body.innerHTML=O.innerHTML;const I=typeof w.pageStyle=="function"?w.pageStyle():w.pageStyle;if(typeof I=="string"){const E=S.createElement("style");E.appendChild(S.createTextNode(I)),S.head.appendChild(E)}w.bodyClassName&&S.body.classList.add(...w.bodyClassName.split(" "));let D=[];if(w.copyStyles){const E=P.getRootNode(),N=E.constructor.name==="ShadowRoot"?E:s.current;D=WJ(S,N)}process.env.NODE_ENV!=="test"&&Promise.all(D).then(()=>{b.contentWindow.print()})},[e,s]),g=f.useCallback(b=>{s.current.body.removeChild(b),e.current.restoreState(i.current||{}),i.current?.columns?.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.setState(C=>H({},C,{virtualization:c.current})),e.current.setRows(l.current),i.current=null,a.current={},l.current=[]},[e]),y={exportDataAsPrint:f.useCallback(async b=>{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=Xo(e),l.current=e.current.getSortedRows().filter(w=>!w[Bi]),t.pagination){const S={page:0,pageSize:ey(e)};e.current.setState(P=>H({},P,{pagination:H({},P.pagination,{paginationModel:Lf(P.pagination,"DataGridPro",S)})}))}c.current=e.current.state.virtualization,e.current.unstable_setVirtualization(!1),await u(b?.fields,b?.allColumns,b?.includeCheckboxes),d(b?.getRowsToExport??EM),await qJ();const C=YJ(b?.fileName);process.env.NODE_ENV==="test"?(s.current.body.appendChild(C),p(C,b),g(C)):(C.onload=()=>{p(C,b),C.contentWindow.matchMedia("print").addEventListener("change",S=>{S.matches===!1&&g(C)})},s.current.body.appendChild(C))},[t,r,e,p,g,u,d])};rt(e,y,"public");const m=f.useCallback((b,C)=>C.printOptions?.disableToolbarButton?b:[...b,{component:v.jsx(NT,{options:C.printOptions}),componentName:"printExport"}],[]);Ct(e,"exportMenu",m)},XJ=(e,t,n)=>{const r=t.filterModel??t.initialState?.filter?.filterModel??nu();return H({},e,{filter:H({filterModel:qb(r,t.disableMultipleColumnsFiltering,n)},rf),visibleRowsLookup:{}})},ZJ=e=>e.filteredRowsLookup;function IM(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function QJ(){return Tb(Object.values)}const JJ=(e,t,n)=>{const r=Rn(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:gn,changeEvent:"filterModelChange"});const s=f.useCallback(()=>{e.current.setState(O=>{const I=gn(e),D=e.current.getFilterState(I),E=H({},O,{filter:H({},O.filter,D)}),N=IM(e,E);return H({},E,{visibleRowsLookup:N})}),e.current.publishEvent("filteredRowsSet")},[e]),i=f.useCallback((O,I)=>I==null||I.filterable===!1||t.disableColumnFilter?O:[...O,"columnMenuFilterItem"],[t.disableColumnFilter]),a=f.useCallback(O=>{const I=gn(e),D=[...I.items],E=D.findIndex(N=>N.id===O.id);E===-1?D.push(O):D[E]=O,e.current.setFilterModel(H({},I,{items:D}),"upsertFilterItem")},[e]),l=f.useCallback(O=>{const I=gn(e),D=[...I.items];O.forEach(E=>{const N=D.findIndex(L=>L.id===E.id);N===-1?D.push(E):D[N]=E}),e.current.setFilterModel(H({},I,{items:D}),"upsertFilterItems")},[e]),c=f.useCallback(O=>{const I=gn(e),D=I.items.filter(E=>E.id!==O.id);D.length!==I.items.length&&e.current.setFilterModel(H({},I,{items:D}),"deleteFilterItem")},[e]),u=f.useCallback((O,I,D)=>{if(r.debug("Displaying filter panel"),O){const E=gn(e),N=E.items.filter(R=>{if(R.value!==void 0)return!(Array.isArray(R.value)&&R.value.length===0);const _=e.current.getColumn(R.field).filterOperators?.find(A=>A.value===R.operator);return!(typeof _?.requiresFilterValue>"u"?!0:_?.requiresFilterValue)});let L;const $=N.find(R=>R.field===O),F=e.current.getColumn(O);$?L=N:t.disableMultipleColumnsFiltering?L=[Ub({field:O,operator:F.filterOperators[0].value},e)]:L=[...N,Ub({field:O,operator:F.filterOperators[0].value},e)],e.current.setFilterModel(H({},E,{items:L}))}e.current.showPreferences(vo.filters,I,D)},[e,r,t.disableMultipleColumnsFiltering]),d=f.useCallback(()=>{r.debug("Hiding filter panel"),e.current.hidePreferences()},[e,r]),p=f.useCallback(O=>{const I=gn(e);I.logicOperator!==O&&e.current.setFilterModel(H({},I,{logicOperator:O}),"changeLogicOperator")},[e]),g=f.useCallback(O=>{const I=gn(e);No(I.quickFilterValues,O)||e.current.setFilterModel(H({},I,{quickFilterValues:[...O]}))},[e]),h=f.useCallback((O,I)=>{gn(e)!==O&&(r.debug("Setting filter model"),e.current.updateControlState("filter",pE(O,t.disableMultipleColumnsFiltering,e),I),e.current.unstable_applyFilters())},[e,r,t.disableMultipleColumnsFiltering]),y=f.useCallback(O=>{const I=qb(O,t.disableMultipleColumnsFiltering,e),D=n.hooks.useFilterValueGetter(e,t),E=t.filterMode==="client"?rW(I,D,e,t.disableEval):null,N=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:E,filterModel:I??nu(),filterValueGetter:D});return H({},N,{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:y};rt(e,m,"public");const b=f.useCallback((O,I)=>{const D=gn(e);return D.items.forEach(N=>{delete N.fromInput}),!I.exportOnlyDirtyModels||t.filterModel!=null||t.initialState?.filter?.filterModel!=null||!No(D,nu())?H({},O,{filter:{filterModel:D}}):O},[e,t.filterModel,t.initialState?.filter?.filterModel]),C=f.useCallback((O,I)=>{const D=I.stateToRestore.filter?.filterModel;return D==null?O:(e.current.updateControlState("filter",pE(D,t.disableMultipleColumnsFiltering,e),"restoreState"),H({},O,{callbacks:[...O.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),w=f.useCallback((O,I)=>{if(I===vo.filters){const D=t.slots.filterPanel;return v.jsx(D,H({},t.slotProps?.filterPanel))}return O},[t.slots.filterPanel,t.slotProps?.filterPanel]),{getRowId:S}=t,P=fo(QJ),x=f.useCallback(O=>{if(t.filterMode!=="client"||!O.isRowMatchingFilters||!O.filterModel.items.length&&!O.filterModel.quickFilterValues?.length)return rf;const I=mo(e),D={},{isRowMatchingFilters:E}=O,N={},L={passingFilterItems:null,passingQuickFilterValues:null},$=P.current(e.current.state.rows.dataRowIdToModelLookup);for(let B=0;B<$.length;B+=1){const _=$[B],V=S?S(_):_.id;E(_,void 0,L);const A=bE([L.passingFilterItems],[L.passingQuickFilterValues],O.filterModel,O.filterValueGetter,e,N);A||(D[V]=A)}const F="auto-generated-group-footer-root";return I[F]&&(D[F]=!0),{filteredRowsLookup:D,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,S,P]);Ct(e,"columnMenu",i),Ct(e,"exportState",b),Ct(e,"restoreState",C),Ct(e,"preferencePanel",w),wo(e,Ji,"filtering",x),wo(e,Ji,"visibleRowsLookupCreation",ZJ);const M=f.useCallback(()=>{r.debug("onColUpdated - GridColumns changed, applying filters");const O=gn(e),I=Qr(e),D=O.items.filter(E=>E.field&&I[E.field]);D.length<O.items.length&&e.current.setFilterModel(H({},O,{items:D}))},[e,r]),k=f.useCallback(O=>{O==="filtering"&&e.current.unstable_applyFilters()},[e]),T=f.useCallback(()=>{e.current.setState(O=>H({},O,{visibleRowsLookup:IM(e,O)}))},[e]);Pe(e,"rowsSet",s),Pe(e,"columnsChange",M),Pe(e,"activeStrategyProcessorChange",k),Pe(e,"rowExpansionChange",T),Pe(e,"columnVisibilityModelChange",()=>{const O=gn(e);O.quickFilterValues?.length&&gE(O)&&s()}),gs(()=>{t.signature==="DataGrid"&&s()}),ht(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,r,t.filterModel])},eee=e=>H({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),tee=(e,t)=>{const n=Rn(e,"useGridFocus"),r=f.useRef(null),s=e.current.rootElementRef.current!==null,i=f.useCallback((O,I)=>{O&&e.current.getRow(O.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(O.id,O.field),I)},[e]),a=f.useCallback((O,I)=>{const D=yo(e);D?.id===O&&D?.field===I||(e.current.setState(E=>(n.debug(`Focusing on cell with id=${O} and field=${I}`),H({},E,{tabIndex:{cell:{id:O,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:O,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.getRow(O)&&(D&&i(D,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(O,I))))},[e,n,i]),l=f.useCallback((O,I={})=>{const D=yo(e);i(D,I),e.current.setState(E=>(n.debug(`Focusing on column header with colIndex=${O}`),H({},E,{tabIndex:{columnHeader:{field:O},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:O},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))},[e,n,i]),c=f.useCallback((O,I={})=>{const D=yo(e);i(D,I),e.current.setState(E=>(n.debug(`Focusing on column header filter with colIndex=${O}`),H({},E,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:O},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:O},cell:null,columnGroupHeader:null}})))},[e,n,i]),u=f.useCallback((O,I,D={})=>{const E=yo(e);E&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(E.id,E.field),D),e.current.setState(N=>H({},N,{tabIndex:{columnGroupHeader:{field:O,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:O,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null}}))},[e]),d=f.useCallback(()=>gf(e),[e]),p=f.useCallback((O,I,D)=>{let E=e.current.getColumnIndex(I);const N=hn(e),L=bs(e,{pagination:t.pagination,paginationMode:t.paginationMode}),$=_i(e),F=[].concat($.top||[],L.rows,$.bottom||[]);let R=F.findIndex(A=>A.id===O);D==="right"?E+=1:D==="left"?E-=1:R+=1,E>=N.length?(R+=1,R<F.length&&(E=0)):E<0&&(R-=1,R>=0&&(E=N.length-1)),R=zi(R,0,F.length-1);const B=F[R];if(!B)return;const _=e.current.unstable_getCellColSpanInfo(B.id,E);_&&_.spannedByColSpan&&(D==="left"||D==="below"?E=_.leftVisibleCellIndex:D==="right"&&(E=_.rightVisibleCellIndex)),E=zi(E,0,N.length-1);const V=N[E];e.current.setCellFocus(B.id,V.field)},[e,t.pagination,t.paginationMode]),g=f.useCallback(({id:O,field:I})=>{e.current.setCellFocus(O,I)},[e]),h=f.useCallback((O,I)=>{I.key==="Enter"||I.key==="Tab"||I.key==="Shift"||Gi(I.key)||e.current.setCellFocus(O.id,O.field)},[e]),y=f.useCallback(({field:O},I)=>{I.target===I.currentTarget&&e.current.setColumnHeaderFocus(O,I)},[e]),m=f.useCallback(({fields:O,depth:I},D)=>{if(D.target!==D.currentTarget)return;const E=gf(e);E!==null&&E.depth===I&&O.includes(E.field)||e.current.setColumnGroupHeaderFocus(O[0],I,D)},[e]),b=f.useCallback((O,I)=>{I.relatedTarget?.getAttribute("class")?.includes(j.columnHeader)||(n.debug("Clearing focus"),e.current.setState(D=>H({},D,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=f.useCallback(O=>{r.current=O},[]),w=f.useCallback(O=>{const I=r.current;r.current=null;const D=yo(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:O,cell:I}))return;if(!D){I&&e.current.setCellFocus(I.id,I.field);return}I?.id===D.id&&I?.field===D.field||e.current.getCellElement(D.id,D.field)?.contains(O.target)||(I?e.current.setCellFocus(I.id,I.field):(e.current.setState(L=>H({},L,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),i(D,O)))},[e,i]),S=f.useCallback(O=>{if(O.cellMode==="view")return;const I=yo(e);(I?.id!==O.id||I?.field!==O.field)&&e.current.setCellFocus(O.id,O.field)},[e]),P=f.useCallback(()=>{const O=yo(e);if(O&&!e.current.getRow(O.id)){const I=O.id;let D=null;if(typeof I<"u"){const E=e.current.getRowElement(I),N=E?.dataset.rowindex?Number(E?.dataset.rowindex):0,L=bs(e,{pagination:t.pagination,paginationMode:t.paginationMode});D=L.rows[zi(N,0,L.rows.length-1)]?.id??null}e.current.setState(E=>H({},E,{focus:{cell:D===null?null:{id:D,field:O.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),x=f.useMemo(()=>vr(P,0),[P]),M=fe(()=>{const O=yo(e);if(!O)return;const I=bs(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(I.rows.find(N=>N.id===O.id)||I.rows.length===0)return;const E=hn(e);e.current.setState(N=>H({},N,{tabIndex:{cell:{id:I.rows[0].id,field:E[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),k={setCellFocus:a,setColumnHeaderFocus:l,setColumnHeaderFilterFocus:c},T={moveFocusToRelativeCell:p,setColumnGroupHeaderFocus:u,getColumnGroupHeaderFocus:d};rt(e,k,"public"),rt(e,T,"private"),f.useEffect(()=>{const O=Qt(e.current.rootElementRef.current);return O.addEventListener("mouseup",w),()=>{O.removeEventListener("mouseup",w)}},[e,s,w]),Pe(e,"columnHeaderBlur",b),Pe(e,"cellDoubleClick",g),Pe(e,"cellMouseDown",C),Pe(e,"cellKeyDown",h),Pe(e,"cellModeChange",S),Pe(e,"columnHeaderFocus",y),Pe(e,"columnGroupHeaderFocus",m),Pe(e,"rowsSet",x),Pe(e,"paginationModelChange",M)},b0=({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},y0=({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 nee(e,t,n,r){const s=gl.selectors.hiddenCells(e.current.virtualizer.store.state);if(!s[t]?.[n])return t;const i=Jb(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 oee=Ot(cu,_i,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),ree=(e,t)=>{const n=Rn(e,"useGridKeyboardNavigation"),r=Gt(),s=f.useCallback(()=>oee(e),[e]),i=t.signature!=="DataGrid"&&t.headerFilters,a=f.useCallback((b,C,w="left",S="up")=>{const P=Wi(e),x=e.current.unstable_getCellColSpanInfo(C,b);x&&x.spannedByColSpan&&(w==="left"?b=x.leftVisibleCellIndex:w==="right"&&(b=x.rightVisibleCellIndex));const M=ol(e)[b],k=nee(e,C,b,S),T=P.findIndex(O=>O.id===k);n.debug(`Navigating to cell row ${T}, col ${b}`),e.current.scrollToIndexes({colIndex:b,rowIndex:T}),e.current.setCellFocus(k,M)},[e,n]),l=f.useCallback((b,C)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const w=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFocus(w,C)},[e,n]),c=f.useCallback((b,C)=>{n.debug(`Navigating to header filter col ${b}`),e.current.scrollToIndexes({colIndex:b});const w=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFilterFocus(w,C)},[e,n]),u=f.useCallback((b,C,w)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const{field:S}=e.current.getVisibleColumns()[b];e.current.setColumnGroupHeaderFocus(S,C,w)},[e,n]),d=f.useCallback(b=>s()[b]?.id,[s]),p=f.useCallback((b,C)=>{const w=C.currentTarget.querySelector(`.${j.columnHeaderTitleContainerContent}`);if(!!w&&w.contains(C.target)&&b.field!==cl.field||!Gi(C.key)&&C.key!=="Tab"&&C.key!=="Enter"||C.key==="Tab"&&(t.tabNavigation==="none"||t.tabNavigation==="content"&&C.shiftKey))return;const P=s(),x=e.current.getViewportPageSize(),M=b.field?e.current.getColumnIndex(b.field):0,k=P.length>0?0:null,T=P.length>0?P.length-1:null,O=0,I=Math.max(0,hn(e).length-1),D=du(e);let E=!0;if(C.key==="Tab"&&t.tabNavigation==="content"&&!C.shiftKey){k!==null&&(a(O,d(k)),C.preventDefault());return}switch(C.key){case"ArrowDown":{i?c(M,C):k!==null&&a(M,d(k));break}case"ArrowRight":{const N=y0({currentColIndex:M,firstColIndex:O,lastColIndex:I,isRtl:r});N!==null&&l(N,C);break}case"ArrowLeft":{const N=b0({currentColIndex:M,firstColIndex:O,lastColIndex:I,isRtl:r});N!==null&&l(N,C);break}case"ArrowUp":{D>0&&u(M,D-1,C);break}case"PageDown":{k!==null&&T!==null&&a(M,d(Math.min(k+x,T)));break}case"Home":{l(O,C);break}case"End":{l(I,C);break}case"Enter":{(C.ctrlKey||C.metaKey)&&e.current.toggleColumnMenu(b.field);break}case"Tab":{C.shiftKey?M===O?D>0?u(I,D-1,C):E=!1:l(M-1,C):M===I?i?c(O,C):t.tabNavigation==="all"&&k!==null?a(O,d(k)):E=!1:l(M+1,C);break}case" ":break;default:E=!1}E&&C.preventDefault()},[e,t.tabNavigation,s,i,c,a,d,r,l,u]),g=f.useCallback((b,C)=>{const w=rI(e)===b.field;if(cy(e)===b.field||w&&C.key!=="Tab"||!Gi(C.key)&&C.key!=="Tab"||C.key==="Tab"&&(t.tabNavigation==="none"||t.tabNavigation==="content"&&C.shiftKey))return;const P=s(),x=e.current.getViewportPageSize(),M=b.field?e.current.getColumnIndex(b.field):0,k=P.length>0?0:null,T=P.length>0?P.length-1:null,O=0,I=Math.max(0,hn(e).length-1);let D=!0;if(C.key==="Tab"&&t.tabNavigation==="content"&&!C.shiftKey){k!==null&&(a(O,d(k)),C.preventDefault());return}switch(C.key){case"ArrowDown":{k!==null&&a(M,d(k));break}case"ArrowRight":{const E=y0({currentColIndex:M,firstColIndex:O,lastColIndex:I,isRtl:r});E!==null&&c(E,C);break}case"ArrowLeft":{const E=b0({currentColIndex:M,firstColIndex:O,lastColIndex:I,isRtl:r});E!==null?c(E,C):e.current.setColumnHeaderFilterFocus(b.field,C);break}case"ArrowUp":{l(M,C);break}case"PageDown":{k!==null&&T!==null&&a(M,d(Math.min(k+x,T)));break}case"Home":{c(O,C);break}case"End":{c(I,C);break}case"Tab":{C.shiftKey?M===O?l(I,C):c(M-1,C):M===I?t.tabNavigation==="all"&&k!==null?a(O,d(k)):D=!1:c(M+1,C);break}case" ":break;default:D=!1}D&&C.preventDefault()},[e,t.tabNavigation,s,c,r,l,a,d]),h=f.useCallback((b,C)=>{const w=gf(e);if(w===null)return;const{field:S,depth:P}=w,{fields:x,depth:M,maxDepth:k}=b;if(!Gi(C.key)&&C.key!=="Tab"||C.key==="Tab"&&(t.tabNavigation==="none"||t.tabNavigation==="content"&&C.shiftKey))return;const T=s(),O=e.current.getViewportPageSize(),I=e.current.getColumnIndex(S),D=S?e.current.getColumnIndex(S):0,E=T.length>0?0:null,N=T.length>0?T.length-1:null,L=0,$=Math.max(0,hn(e).length-1);let F=!0;if(C.key==="Tab"&&t.tabNavigation==="content"&&!C.shiftKey){E!==null&&(a(L,d(E)),C.preventDefault());return}switch(C.key){case"ArrowDown":{M===k-1?l(I,C):u(I,P+1,C);break}case"ArrowUp":{M>0&&u(I,P-1,C);break}case"ArrowRight":{const R=x.length-x.indexOf(S)-1;I+R+1<=$&&u(I+R+1,P,C);break}case"ArrowLeft":{const R=x.indexOf(S);I-R-1>=L&&u(I-R-1,P,C);break}case"PageDown":{E!==null&&N!==null&&a(D,d(Math.min(E+O,N)));break}case"Home":{u(L,P,C);break}case"End":{u($,P,C);break}case"Tab":{if(C.shiftKey){const R=x.indexOf(S),B=I-R-1;B<L?M===0?F=!1:u($,P-1,C):u(B,P,C)}else{const R=x.length-x.indexOf(S)-1,B=I+R+1;B>$&&M===k-1?l(L,C):B>$?u(L,P+1,C):u(B,P,C)}break}case" ":break;default:F=!1}F&&C.preventDefault()},[e,t.tabNavigation,s,l,u,a,d]),y=f.useCallback((b,C)=>{if(Cl(C))return;const w=e.current.getCellParams(b.id,b.field);if(w.cellMode===Vt.Edit||!Gi(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:w}))return;const P=s();if(P.length===0)return;const x=i?c:l,M=e.current.getViewportPageSize(),k=b.field?e.current.getColumnIndex(b.field):0,T=P.findIndex(L=>L.id===b.id),O=0,I=P.length-1,D=0,E=Math.max(0,hn(e).length-1);let N=!0;if(C.key==="Tab"&&t.tabNavigation==="header"&&C.shiftKey){x(E,C),C.preventDefault();return}switch(C.key){case"ArrowDown":{T<I&&a(k,d(T+1),r?"right":"left","down");break}case"ArrowUp":{T>O?a(k,d(T-1)):x(k,C);break}case"ArrowRight":{const L=y0({currentColIndex:k,firstColIndex:D,lastColIndex:E,isRtl:r});L!==null&&a(L,d(T),r?"left":"right");break}case"ArrowLeft":{const L=b0({currentColIndex:k,firstColIndex:D,lastColIndex:E,isRtl:r});L!==null&&a(L,d(T),r?"right":"left");break}case"Tab":{C.shiftKey?k===D&&T===O?t.tabNavigation==="all"?x(E,C):N=!1:k===D?a(E,d(T-1)):a(k-1,d(T),"left"):k===E?T!==I?a(D,d(T+1)):N=!1:a(k+1,d(T),"right");break}case" ":{if(b.field===ao)break;const $=b.colDef;if($&&($.field===Kb||CY($.field)))break;!C.shiftKey&&T<I&&a(k,d(Math.min(T+M,I)));break}case"PageDown":{T<I&&a(k,d(Math.min(T+M,I)));break}case"PageUp":{const L=Math.max(T-M,O);L!==T&&L>=O?a(k,d(L)):l(k,C);break}case"Home":{C.ctrlKey||C.metaKey||C.shiftKey?a(D,d(O)):a(D,d(T));break}case"End":{C.ctrlKey||C.metaKey||C.shiftKey?a(E,d(I)):a(E,d(T));break}default:N=!1}N&&C.preventDefault()},[e,t.tabNavigation,s,r,a,d,i,c,l]),m=f.useCallback((b,{event:C})=>C.key===" "?!1:b,[]);Ct(e,"canStartEditing",m),Pe(e,"columnHeaderKeyDown",p),Pe(e,"headerFilterKeyDown",g),Pe(e,"columnGroupHeaderKeyDown",h),Pe(e,"cellKeyDown",y)},see=(e,t)=>{const n=Rn(e,"useGridRowCount"),r=fo(()=>En(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:qs,changeEvent:"rowCountChange"});const i={setRowCount:f.useCallback(u=>{qs(e)!==u&&(n.debug("Setting 'rowCount' to",u),e.current.setState(p=>H({},p,{pagination:H({},p.pagination,{rowCount:u})})))},[e,n])};rt(e,i,"public");const a=f.useCallback((u,d)=>{const p=qs(e);return!d.exportOnlyDirtyModels||t.rowCount!=null||t.initialState?.pagination?.rowCount!=null?H({},u,{pagination:H({},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:qs(e);return e.current.setState(g=>H({},g,{pagination:H({},g.pagination,{rowCount:p})})),u},[e]);Ct(e,"exportState",a),Ct(e,"restoreState",l);const c=f.useCallback(u=>{t.paginationMode==="client"||!r.current||u.pageSize!==r.current&&(r.current=u.pageSize,qs(e)===-1&&e.current.setPage(0))},[t.paginationMode,r,e]);Pe(e,"paginationModelChange",c),f.useEffect(()=>{t.paginationMode==="server"&&t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,t.rowCount]),zs(e.current.store,()=>{if(lu(e).hasNextPage===!1)return!0;if(t.paginationMode==="client")return al(e)},(u,d)=>{if(d===!0&&qs(e)!==-1){const p=al(e),g=En(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(al(e))},[e,t.paginationMode])},iee=(e,t)=>{const n=Rn(e,"useGridPaginationMeta");e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:lu,changeEvent:"paginationMetaChange"});const s={setPaginationMeta:f.useCallback(l=>{lu(e)!==l&&(n.debug("Setting 'paginationMeta' to",l),e.current.setState(u=>H({},u,{pagination:H({},u.pagination,{meta:l})})))},[e,n])};rt(e,s,"public");const i=f.useCallback((l,c)=>{const u=lu(e);return!c.exportOnlyDirtyModels||t.paginationMeta!=null||t.initialState?.pagination?.meta!=null?H({},l,{pagination:H({},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:lu(e);return e.current.setState(d=>H({},d,{pagination:H({},d.pagination,{meta:u})})),l},[e]);Ct(e,"exportState",i),Ct(e,"restoreState",a),f.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},aee=(e,t)=>{const n=H({},WE(t.autoPageSize),t.paginationModel??t.initialState?.pagination?.paginationModel);UE(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 H({},e,{pagination:H({},e.pagination,{paginationModel:n,rowCount:r,meta:s,enabled:t.pagination===!0,paginationMode:t.paginationMode})})},lee=(e,t)=>{iee(e,t),UJ(e,t),see(e,t)},cee=(e,t)=>H({},e,{preferencePanel:t.initialState?.preferencePanel??{open:!1}}),uee=(e,t)=>{const n=Rn(e,"useGridPreferencesPanel"),r=f.useCallback(()=>{e.current.setState(l=>{if(!l.preferencePanel.open)return l;n.debug("Hiding Preferences Panel");const c=Ki(e);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:c.openedPanelValue}),H({},l,{preferencePanel:{open:!1}})})},[e,n]),s=f.useCallback((l,c,u)=>{n.debug("Opening Preferences Panel"),e.current.setState(d=>H({},d,{preferencePanel:H({},d.preferencePanel,{open:!0,openedPanelValue:l,panelId:c,labelId:u})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:l})},[n,e]);rt(e,{showPreferences:s,hidePreferences:r},"public");const i=f.useCallback((l,c)=>{const u=Ki(e);return!c.exportOnlyDirtyModels||t.initialState?.preferencePanel!=null||u.open?H({},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=>H({},d,{preferencePanel:u})),l},[e]);Ct(e,"exportState",i),Ct(e,"restoreState",a)},v0=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},dee=["id","field"],pee=["id","field"],fee=(e,t)=>{const[n,r]=f.useState({}),s=f.useRef(n),i=f.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:l,cellModesModel:c,onCellModesModelChange:u}=t,d=$=>(...F)=>{t.editMode===Xr.Cell&&$(...F)},p=f.useCallback(($,F)=>{const R=e.current.getCellParams($,F);if(!e.current.isCellEditable(R))throw new Error(`MUI X: The cell with id=${$} and field=${F} is not editable.`)},[e]),g=f.useCallback(($,F,R)=>{if(e.current.getCellMode($,F)!==R)throw new Error(`MUI X: The cell with id=${$} and field=${F} is not in ${R} mode.`)},[e]),h=f.useCallback(($,F)=>{if(!$.isEditable||$.cellMode===Vt.Edit)return;const R=H({},$,{reason:fs.cellDoubleClick});e.current.publishEvent("cellEditStart",R,F)},[e]),y=f.useCallback(($,F)=>{if($.cellMode===Vt.View||e.current.getCellMode($.id,$.field)===Vt.View)return;const R=H({},$,{reason:Or.cellFocusOut});e.current.publishEvent("cellEditStop",R,F)},[e]),m=f.useCallback(($,F)=>{if($.cellMode===Vt.Edit){if(F.which===229)return;let R;if(F.key==="Escape"?R=Or.escapeKeyDown:F.key==="Enter"?R=Or.enterKeyDown:F.key==="Tab"&&(R=F.shiftKey?Or.shiftTabKeyDown:Or.tabKeyDown,F.preventDefault()),R){const B=H({},$,{reason:R});e.current.publishEvent("cellEditStop",B,F)}}else if($.isEditable){let R;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:F,cellParams:$,editMode:"cell"}))return;if(wE(F)?R=fs.printableKeyDown:xE(F)?R=fs.pasteKeyDown:F.key==="Enter"?(R=fs.enterKeyDown,F.preventDefault()):(F.key==="Backspace"||F.key==="Delete")&&(R=fs.deleteKeyDown),R){const _=H({},$,{reason:R,key:F.key});e.current.publishEvent("cellEditStart",_,F)}}},[e]),b=f.useCallback($=>{const{id:F,field:R,reason:B}=$,_={id:F,field:R};(B===fs.printableKeyDown||B===fs.deleteKeyDown||B===fs.pasteKeyDown)&&(_.deleteValue=!0),e.current.startCellEditMode(_)},[e]),C=f.useCallback($=>{const{id:F,field:R,reason:B}=$;e.current.runPendingEditCellValueMutation(F,R);let _;B===Or.enterKeyDown?_="below":B===Or.tabKeyDown?_="right":B===Or.shiftTabKeyDown&&(_="left");const V=B==="escapeKeyDown";e.current.stopCellEditMode({id:F,field:R,ignoreModifications:V,cellToFocusAfter:_})},[e]),w=$=>async(...F)=>{if($){const{id:R,field:B}=F[0];e.current.state.editRows[R][B]?.error||$(...F)}};Pe(e,"cellDoubleClick",d(h)),Pe(e,"cellFocusOut",d(y)),Pe(e,"cellKeyDown",d(m)),Pe(e,"cellEditStart",d(b)),Pe(e,"cellEditStop",d(C)),Nt(e,"cellEditStart",t.onCellEditStart),Nt(e,"cellEditStop",w(t.onCellEditStop));const S=f.useCallback(($,F)=>{const R=$n(e);return R[$]&&R[$][F]?Vt.Edit:Vt.View},[e]),P=fe($=>{const F=$!==t.cellModesModel;u&&F&&u($,{api:e.current}),!(t.cellModesModel&&F)&&(r($),s.current=$,e.current.publishEvent("cellModesModelChange",$))}),x=f.useCallback(($,F,R)=>{const B=H({},s.current);if(R!==null)B[$]=H({},B[$],{[F]:H({},R)});else{const _=B[$],V=Te(_,[F].map(gu));B[$]=V,Object.keys(B[$]).length===0&&delete B[$]}P(B)},[P]),M=f.useCallback(($,F,R)=>{e.current.setState(B=>{const _=H({},B.editRows);return R!==null?_[$]=H({},_[$],{[F]:H({},R)}):(delete _[$][F],Object.keys(_[$]).length===0&&delete _[$]),H({},B,{editRows:_})})},[e]),k=f.useCallback($=>{const{id:F,field:R}=$,B=Te($,dee);p(F,R),g(F,R,Vt.View),x(F,R,H({mode:Vt.Edit},B))},[p,g,x]),T=fe(async $=>{const{id:F,field:R,deleteValue:B,initialValue:_}=$,V=e.current.getCellValue(F,R);let A=V;B?A=v0(e.current.getColumn(R)):_&&(A=_);const z=e.current.getColumn(R),G=!!z.preProcessEditCellProps&&B;let U={value:A,error:!1,isProcessingProps:G};if(M(F,R,U),e.current.setCellFocus(F,R),G&&(U=await Promise.resolve(z.preProcessEditCellProps({id:F,row:e.current.getRow(F),props:U,hasChanged:A!==V})),e.current.getCellMode(F,R)===Vt.Edit)){const X=$n(e);M(F,R,H({},U,{value:X[F][R].value,isProcessingProps:!1}))}}),O=f.useCallback($=>{const{id:F,field:R}=$,B=Te($,pee);g(F,R,Vt.Edit),x(F,R,H({mode:Vt.View},B))},[g,x]),I=fe(async $=>{const{id:F,field:R,ignoreModifications:B,cellToFocusAfter:_="none"}=$;g(F,R,Vt.Edit),e.current.runPendingEditCellValueMutation(F,R);const V=()=>{M(F,R,null),x(F,R,null),_!=="none"&&e.current.moveFocusToRelativeCell(F,R,_)};if(B){V();return}const A=$n(e),{error:z,isProcessingProps:G}=A[F][R],U=e.current.getRow(F);if(z||G){i.current[F][R].mode=Vt.Edit,x(F,R,{mode:Vt.Edit});return}const X=e.current.getRowWithUpdatedValuesFromCellEditing(F,R);if(t.dataSource?.updateRow){if(No(U,X)){V();return}const Y=()=>{i.current[F][R].mode=Vt.Edit,x(F,R,{mode:Vt.Edit})},ee={rowId:F,updatedRow:X,previousRow:U};try{await e.current.dataSource.editRow(ee),V()}catch{Y()}}else if(a){const Y=ee=>{i.current[F][R].mode=Vt.Edit,x(F,R,{mode:Vt.Edit}),l?l(ee):xn(["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(X,U,{rowId:F})).then(ee=>{e.current.updateRows([ee]),V()}).catch(Y)}catch(ee){Y(ee)}}else e.current.updateRows([X]),V()}),D=f.useCallback(async $=>{const{id:F,field:R,value:B,debounceMs:_,unstable_skipValueParser:V}=$;p(F,R),g(F,R,Vt.Edit);const A=e.current.getColumn(R),z=e.current.getRow(F);let G=B;A.valueParser&&!V&&(G=A.valueParser(B,z,A,e));let U=$n(e),X=H({},U[F][R],{value:G,changeReason:_?"debouncedSetEditCellValue":"setEditCellValue"});if(A.preProcessEditCellProps){const Y=B!==U[F][R].value;X=H({},X,{isProcessingProps:!0}),M(F,R,X),X=await Promise.resolve(A.preProcessEditCellProps({id:F,row:z,props:X,hasChanged:Y}))}return e.current.getCellMode(F,R)===Vt.View?!1:(U=$n(e),X=H({},X,{isProcessingProps:!1}),X.value=A.preProcessEditCellProps?U[F][R].value:G,M(F,R,X),U=$n(e),!U[F]?.[R]?.error)},[e,p,g,M]),E=f.useCallback(($,F)=>{const R=e.current.getColumn(F),B=$n(e),_=e.current.getRow($);if(!B[$]||!B[$][F])return e.current.getRow($);const{value:V}=B[$][F];return R.valueSetter?R.valueSetter(V,_,R,e):H({},_,{[F]:V})},[e]),N={getCellMode:S,startCellEditMode:k,stopCellEditMode:O},L={setCellEditingEditCellValue:D,getRowWithUpdatedValuesFromCellEditing:E};rt(e,N,"public"),rt(e,L,"private"),f.useEffect(()=>{c&&P(c)},[c,P]),ht(()=>{const $=mo(e),F=i.current;i.current=oE(n),Object.entries(n).forEach(([R,B])=>{Object.entries(B).forEach(([_,V])=>{const A=F[R]?.[_]?.mode||Vt.View,z=$[R]?e.current.getRowId($[R]):R;V.mode===Vt.Edit&&A===Vt.View?T(H({id:z,field:_},V)):V.mode===Vt.View&&A===Vt.Edit&&I(H({id:z,field:_},V))})})},[e,n,T,I])},hee=["id"],gee=["id"],mee=(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=>(...A)=>{t.editMode===Xr.Row&&V(...A)},y=f.useCallback((V,A)=>{const z=e.current.getCellParams(V,A);if(!e.current.isCellEditable(z))throw new Error(`MUI X: The cell with id=${V} and field=${A} is not editable.`)},[e]),m=f.useCallback((V,A)=>{if(e.current.getRowMode(V)!==A)throw new Error(`MUI X: The row with id=${V} is not in ${A} mode.`)},[e]),b=f.useCallback(V=>{const A=$n(e);return Object.values(A[V]).some(z=>z.error)},[e]),C=f.useCallback((V,A)=>{if(!V.isEditable||e.current.getRowMode(V.id)===dn.Edit)return;const z=e.current.getRowParams(V.id),G=H({},z,{field:V.field,reason:Ws.cellDoubleClick});e.current.publishEvent("rowEditStart",G,A)},[e]),w=f.useCallback(V=>{c.current=V},[]),S=f.useCallback((V,A)=>{V.isEditable&&e.current.getRowMode(V.id)!==dn.View&&(c.current=null,l.current=setTimeout(()=>{if(c.current?.id!==V.id){if(!e.current.getRow(V.id)||e.current.getRowMode(V.id)===dn.View||b(V.id))return;const z=e.current.getRowParams(V.id),G=H({},z,{field:V.field,reason:Zr.rowFocusOut});e.current.publishEvent("rowEditStop",G,A)}}))},[e,b]);f.useEffect(()=>()=>{clearTimeout(l.current)},[]);const P=f.useCallback((V,A)=>{if(V.cellMode===dn.Edit){if(A.which===229)return;let z;if(A.key==="Escape")z=Zr.escapeKeyDown;else if(A.key==="Enter")z=Zr.enterKeyDown;else if(A.key==="Tab"){const G=ol(e).filter(U=>e.current.getColumn(U).type===cf?!0:e.current.isCellEditable(e.current.getCellParams(V.id,U)));if(A.shiftKey?V.field===G[0]&&(z=Zr.shiftTabKeyDown):V.field===G[G.length-1]&&(z=Zr.tabKeyDown),A.preventDefault(),!z){const U=G.findIndex(Y=>Y===V.field),X=G[A.shiftKey?U-1:U+1];e.current.setCellFocus(V.id,X)}}if(z){if(z!==Zr.escapeKeyDown&&b(V.id))return;const G=H({},e.current.getRowParams(V.id),{reason:z,field:V.field});e.current.publishEvent("rowEditStop",G,A)}}else if(V.isEditable){let z;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:A,cellParams:V,editMode:"row"}))return;if(wE(A)||xE(A)?z=Ws.printableKeyDown:A.key==="Enter"?z=Ws.enterKeyDown:(A.key==="Backspace"||A.key==="Delete")&&(z=Ws.deleteKeyDown),z){const U=e.current.getRowParams(V.id),X=H({},U,{field:V.field,reason:z});e.current.publishEvent("rowEditStart",X,A)}}},[e,b]),x=f.useCallback(V=>{const{id:A,field:z,reason:G}=V,U={id:A,fieldToFocus:z};(G===Ws.printableKeyDown||G===Ws.deleteKeyDown)&&(U.deleteValue=!!z),e.current.startRowEditMode(U)},[e]),M=f.useCallback(V=>{const{id:A,reason:z,field:G}=V;e.current.runPendingEditCellValueMutation(A);let U;z===Zr.enterKeyDown?U="below":z===Zr.tabKeyDown?U="right":z===Zr.shiftTabKeyDown&&(U="left");const X=z==="escapeKeyDown";e.current.stopRowEditMode({id:A,ignoreModifications:X,field:G,cellToFocusAfter:U})},[e]);Pe(e,"cellDoubleClick",h(C)),Pe(e,"cellFocusIn",h(w)),Pe(e,"cellFocusOut",h(S)),Pe(e,"cellKeyDown",h(P)),Pe(e,"rowEditStart",h(x)),Pe(e,"rowEditStop",h(M)),Nt(e,"rowEditStart",t.onRowEditStart),Nt(e,"rowEditStop",t.onRowEditStop);const k=f.useCallback(V=>mI(e,{rowId:V,editMode:t.editMode})?dn.Edit:dn.View,[e,t.editMode]),T=fe(V=>{const A=V!==t.rowModesModel;g&&A&&g(V,{api:e.current}),!(t.rowModesModel&&A)&&(r(V),s.current=V,e.current.publishEvent("rowModesModelChange",V))}),O=f.useCallback((V,A)=>{const z=H({},s.current);A!==null?z[V]=H({},A):delete z[V],T(z)},[T]),I=f.useCallback((V,A)=>{e.current.setState(z=>{const G=H({},z.editRows);return A!==null?G[V]=A:delete G[V],H({},z,{editRows:G})})},[e]),D=f.useCallback((V,A,z)=>{e.current.setState(G=>{const U=H({},G.editRows);return z!==null?U[V]=H({},U[V],{[A]:H({},z)}):(delete U[V][A],Object.keys(U[V]).length===0&&delete U[V]),H({},G,{editRows:U})})},[e]),E=f.useCallback(V=>{const{id:A}=V,z=Te(V,hee);m(A,dn.View),O(A,H({mode:dn.Edit},z))},[m,O]),N=fe(V=>{const{id:A,fieldToFocus:z,deleteValue:G,initialValue:U}=V,X=e.current.getRow(A),Y=Ko(e),ee=Y.reduce((oe,K)=>{const W=K.field;if(!e.current.getCellParams(A,W).isEditable)return oe;const q=e.current.getColumn(W);let ce=e.current.getCellValue(A,W);return z===W&&(G||U)&&(G?ce=v0(q):U&&(ce=U)),oe[W]={value:ce,error:!1,isProcessingProps:q.editable&&!!q.preProcessEditCellProps&&G},oe},{});a.current[A]=X,I(A,ee),z&&e.current.setCellFocus(A,z),Y.filter(oe=>e.current.getCellParams(A,oe.field).isEditable&&oe.editable&&!!oe.preProcessEditCellProps&&G).forEach(oe=>{const K=oe.field,W=e.current.getCellValue(A,K),J=G?v0(oe):U??W;Promise.resolve(oe.preProcessEditCellProps({id:A,row:X,props:ee[K],hasChanged:J!==W})).then(q=>{if(e.current.getRowMode(A)===dn.Edit){const ce=$n(e);D(A,K,H({},q,{value:ce[A][K].value,isProcessingProps:!1}))}})})}),L=f.useCallback(V=>{const{id:A}=V,z=Te(V,gee);m(A,dn.Edit),O(A,H({mode:dn.View},z))},[m,O]),$=fe(async V=>{const{id:A,ignoreModifications:z,field:G,cellToFocusAfter:U="none"}=V;e.current.runPendingEditCellValueMutation(A);const X=()=>{U!=="none"&&G&&e.current.moveFocusToRelativeCell(A,G,U),I(A,null),O(A,null),delete a.current[A]};if(z){X();return}const Y=$n(e),ee=a.current[A];if(Object.values(Y[A]).some(W=>W.isProcessingProps)){i.current[A].mode=dn.Edit;return}if(b(A)){i.current[A].mode=dn.Edit,O(A,{mode:dn.Edit});return}const K=e.current.getRowWithUpdatedValuesFromRowEditing(A);if(t.dataSource?.updateRow){if(No(ee,K)){X();return}const W=()=>{i.current[A].mode=dn.Edit,O(A,{mode:dn.Edit})},J={rowId:A,updatedRow:K,previousRow:ee};try{await e.current.dataSource.editRow(J),X()}catch{W()}}else if(u){const W=J=>{i.current[A]&&(i.current[A].mode=dn.Edit,O(A,{mode:dn.Edit})),d?d(J):xn(["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(K,ee,{rowId:A})).then(J=>{e.current.updateRows([J]),X()}).catch(W)}catch(J){W(J)}}else e.current.updateRows([K]),X()}),F=f.useCallback(V=>{const{id:A,field:z,value:G,debounceMs:U,unstable_skipValueParser:X}=V;y(A,z);const Y=e.current.getColumn(z),ee=e.current.getRow(A);let oe=G;Y.valueParser&&!X&&(oe=Y.valueParser(G,ee,Y,e));let K=$n(e),W=H({},K[A][z],{value:oe,changeReason:U?"debouncedSetEditCellValue":"setEditCellValue"});return Y.preProcessEditCellProps||D(A,z,W),new Promise(J=>{const q=[];if(Y.preProcessEditCellProps){const ce=W.value!==K[A][z].value;W=H({},W,{isProcessingProps:!0}),D(A,z,W);const re=K[A],se=Te(re,[z].map(gu)),ae=Promise.resolve(Y.preProcessEditCellProps({id:A,row:ee,props:W,hasChanged:ce,otherFieldsProps:se})).then(te=>{if(e.current.getRowMode(A)===dn.View){J(!1);return}K=$n(e),te=H({},te,{isProcessingProps:!1}),te.value=Y.preProcessEditCellProps?K[A][z].value:oe,D(A,z,te)});q.push(ae)}Object.entries(K[A]).forEach(([ce,re])=>{if(ce===z)return;const se=e.current.getColumn(ce);if(!se.preProcessEditCellProps)return;re=H({},re,{isProcessingProps:!0}),D(A,ce,re),K=$n(e);const ae=K[A],te=Te(ae,[ce].map(gu)),Q=Promise.resolve(se.preProcessEditCellProps({id:A,row:ee,props:re,hasChanged:!1,otherFieldsProps:te})).then(Ce=>{if(e.current.getRowMode(A)===dn.View){J(!1);return}Ce=H({},Ce,{isProcessingProps:!1}),D(A,ce,Ce)});q.push(Q)}),Promise.all(q).then(()=>{e.current.getRowMode(A)===dn.Edit?(K=$n(e),J(!K[A][z].error)):J(!1)})})},[e,y,D]),R=f.useCallback(V=>{const A=$n(e),z=e.current.getRow(V);if(!A[V])return e.current.getRow(V);let G=H({},a.current[V],z);return Object.entries(A[V]).forEach(([U,X])=>{const Y=e.current.getColumn(U);Y?.valueSetter?G=Y.valueSetter(X.value,G,Y,e):G[U]=X.value}),G},[e]),B={getRowMode:k,startRowEditMode:E,stopRowEditMode:L},_={setRowEditingEditCellValue:F,getRowWithUpdatedValuesFromRowEditing:R};rt(e,B,"public"),rt(e,_,"private"),f.useEffect(()=>{p&&T(p)},[p,T]),ht(()=>{const V=mo(e),A=i.current;i.current=oE(n);const z=new Set([...Object.keys(n),...Object.keys(A)]);Array.from(z).forEach(G=>{const U=n[G]??{mode:dn.View},X=A[G]?.mode||dn.View,Y=V[G]?e.current.getRowId(V[G]):G;U.mode===dn.Edit&&X===dn.View?N(H({id:Y},U)):U.mode===dn.View&&X===dn.Edit&&$(H({id:Y},U))})},[e,n,N,$])},bee=e=>H({},e,{editRows:{}}),yee=(e,t,n)=>{fee(e,t),mee(e,t);const r=f.useRef({}),{isCellEditable:s}=t,i=n.hooks.useIsCellEditable(e,t),a=f.useCallback(y=>!i(y)||!y.colDef.editable||!y.colDef.renderEditCell?!1:s?s(y):!0,[s,i]),l=(y,m,b,C)=>{if(!b){C();return}if(r.current[y]||(r.current[y]={}),r.current[y][m]){const[P]=r.current[y][m];clearTimeout(P)}const w=()=>{const[P]=r.current[y][m];clearTimeout(P),C(),delete r.current[y][m]},S=setTimeout(()=>{C(),delete r.current[y][m]},b);r.current[y][m]=[S,w]};f.useEffect(()=>{const y=r.current;return()=>{Object.entries(y).forEach(([m,b])=>{Object.keys(b).forEach(C=>{const[w]=y[m][C];clearTimeout(w),delete y[m][C]})})}},[]);const c=f.useCallback((y,m)=>{if(r.current[y]){if(!m)Object.keys(r.current[y]).forEach(b=>{const[,C]=r.current[y][b];C()});else if(r.current[y][m]){const[,b]=r.current[y][m];b()}}},[]),u=f.useCallback(y=>{const{id:m,field:b,debounceMs:C}=y;return new Promise(w=>{l(m,b,C,async()=>{const S=t.editMode===Xr.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(m,b)===Vt.Edit){const P=await S(y);w(P)}})})},[e,t.editMode]),d=f.useCallback((y,m)=>t.editMode===Xr.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(y,m):e.current.getRowWithUpdatedValuesFromRowEditing(y),[e,t.editMode]),p=f.useCallback((y,m)=>$n(e)[y]?.[m]??null,[e]),g={isCellEditable:a,setEditCellValue:u,getRowWithUpdatedValues:d,unstable_getEditCellMeta:p},h={runPendingEditCellValueMutation:c};rt(e,g,"public"),rt(e,h,"private")},vee=(e,t,n)=>{const r=!!t.dataSource;return n.current.caches.rows=tf({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),H({},e,{rows:RP({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},Cee=(e,t,n)=>{if(process.env.NODE_ENV!=="production")try{Object.freeze(t.rows)}catch{}const r=Rn(e,"useGridRows"),s=f.useRef(Date.now()),i=f.useRef(t.rowCount),a=On(),{setRowIndex:l,setRowPosition:c}=n.hooks.useGridRowsOverridableMethods(e,t),u=f.useCallback(_=>{const V=mo(e)[_];if(V)return V;const A=It(e,_);return A&&tl(A)?{[Bi]:_}:null},[e]),d=f.useCallback(_=>Zo(e,_),[e]),p=f.useCallback(({cache:_,throttle:V})=>{const A=()=>{s.current=Date.now(),e.current.setState(G=>H({},G,{rows:RP({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:yt(e),previousTreeDepths:OP(e),previousGroupsToFetch:MP(e)})})),e.current.publishEvent("rowsSet")};if(a.clear(),e.current.caches.rows=_,!V){A();return}const z=t.throttleRowsMs-(Date.now()-s.current);if(z>0){a.start(z,A);return}A()},[t.throttleRowsMs,t.rowCount,t.loading,e,a]),g=f.useCallback(_=>{if(r.debug(`Updating all rows, new length ${_.length}`),!t.dataSource&&Yi(e)){e.current.updateNonPivotRows(_,!1);return}const V=tf({rows:_,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),A=e.current.caches.rows;V.rowsBeforePartialUpdates=A.rowsBeforePartialUpdates,p({cache:V,throttle:!0})},[r,t.getRowId,t.dataSource,t.loading,t.rowCount,p,e]),h=f.useCallback(_=>{if(t.signature===Do.DataGrid&&_.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&&Yi(e)){e.current.updateNonPivotRows(_);return}const V=VP(e,_,t.getRowId),A=LP({updates:V,getRowId:t.getRowId,previousCache:e.current.caches.rows});p({cache:A,throttle:!0})},[t.signature,t.dataSource,t.getRowId,p,e]),y=f.useCallback((_,V)=>{const A=VP(e,_,t.getRowId),z=LP({updates:A,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:V??[]});p({cache:z,throttle:!1})},[t.getRowId,p,e]),m=f.useCallback(_=>{r.debug(`Setting loading to ${_}`),e.current.setState(V=>H({},V,{rows:H({},V.rows,{loading:_})})),e.current.caches.rows.loadingPropBeforePartialUpdates=_},[e,r]),b=f.useCallback(()=>{const _=Vi(e),V=mo(e);return new Map(_.map(A=>[A,V[A]??{}]))},[e]),C=f.useCallback(()=>Ja(e),[e]),w=f.useCallback(()=>Vi(e),[e]),S=f.useCallback(_=>{const{rowIdToIndexMap:V}=bs(e);return V.get(_)},[e]),P=f.useCallback((_,V)=>{const A=It(e,_);if(!A)throw new Error(`MUI X: No row with id #${_} found.`);if(A.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const z=H({},A,{childrenExpanded:V});e.current.setState(G=>H({},G,{rows:H({},G.rows,{tree:H({},G.rows.tree,{[_]:z})})})),e.current.publishEvent("rowExpansionChange",z)},[e]),x=f.useCallback(()=>{const _=H({},yt(e)),V=A=>{const z=_[A];z?.type==="group"&&(_[A]=H({},z,{childrenExpanded:!0}),z.children.forEach(V))};V(nt),e.current.setState(A=>H({},A,{rows:H({},A.rows,{tree:_})})),e.current.publishEvent("rowExpansionChange",_[nt])},[e]),M=f.useCallback(()=>{const _=H({},yt(e)),V=A=>{const z=_[A];z?.type==="group"&&(_[A]=H({},z,{childrenExpanded:!1}),z.children.forEach(V))};V(nt),e.current.setState(A=>H({},A,{rows:H({},A.rows,{tree:_})})),e.current.publishEvent("rowExpansionChange",_[nt])},[e]),k=f.useCallback(_=>It(e,_)??null,[e]),T=f.useCallback(({skipAutoGeneratedRows:_=!0,groupId:V,applySorting:A,applyFiltering:z,directChildrenOnly:G=!1})=>{const U=yt(e);let X;if(A){const Y=U[V];if(!Y)return[];const ee=su(e);X=[];const oe=ee.findIndex(K=>K===V)+1;for(let K=oe;K<ee.length&&(G?U[ee[K]].depth===Y.depth+1:U[ee[K]].depth>Y.depth);K+=1){const W=ee[K];(!_||!tl(U[W]))&&X.push(W)}}else X=Hi(U,V,_,G);if(z){const Y=il(e);X=df(Y)?X:X.filter(ee=>Y[ee]!==!1)}return X},[e]),O=f.useCallback((_,V)=>{if(t.signature===Do.DataGrid&&V.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(V.length===0)return;if(js(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const z=H({},yt(e)),G=H({},mo(e)),U=z[nt],X=[...U.children],Y=new Set;for(let oe=0;oe<V.length;oe+=1){const K=V[oe],W=el(K,t.getRowId,"A row was provided without id when calling replaceRows()."),[J]=X.splice(_+oe,1,W);Y.has(J)||(delete G[J],delete z[J]);const q={id:W,depth:0,parent:nt,type:"leaf",groupingKey:null};G[W]=K,z[W]=q,Y.add(W)}z[nt]=H({},U,{children:X});const ee=X.filter(oe=>z[oe]?.type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=G,e.current.setState(oe=>H({},oe,{rows:H({},oe.rows,{loading:t.loading,totalRowCount:Math.max(t.rowCount||0,X.length),dataRowIdToModelLookup:G,dataRowIds:ee,tree:z})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId,t.loading,t.rowCount]),I={getRow:u,setLoading:m,getRowId:d,getRowModels:b,getRowsCount:C,getAllRowIds:w,setRows:g,updateRows:h,getRowNode:k,getRowIndexRelativeToVisibleRows:S,unstable_replaceRows:O},D={setRowIndex:l,setRowPosition:c,setRowChildrenExpansion:P,getRowGroupChildren:T,expandAllRows:x,collapseAllRows:M},E={updateNestedRows:y},N=f.useCallback(()=>{r.info("Row grouping pre-processing have changed, regenerating the row tree");let _;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?_=H({},e.current.caches.rows,{updates:{type:"full",rows:Vi(e)}}):_=tf({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),p({cache:_,throttle:!1})},[r,e,t.rows,t.getRowId,t.loading,t.rowCount,p]),L=fo(()=>t.dataSource),$=f.useCallback(_=>{if(t.dataSource&&t.dataSource!==L.current){L.current=t.dataSource;return}_==="rowTreeCreation"&&N()},[N,L,t.dataSource]),F=f.useCallback(()=>{e.current.getActiveStrategy(Co.RowTree)!==bG(e)&&N()},[e,N]);Pe(e,"activeStrategyProcessorChange",$),Pe(e,"strategyAvailabilityChange",F);const R=f.useCallback(()=>{e.current.setState(_=>{const V=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:yt(e),treeDepths:OP(e),dataRowIds:Vi(e),dataRowIdToModelLookup:mo(e)});return H({},_,{rows:H({},_.rows,V,{totalTopLevelRowCount:NP({tree:V.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet")},[e,t.rowCount]);Py(e,"hydrateRows",R),rt(e,I,"public"),rt(e,D,t.signature===Do.DataGrid?"private":"public"),rt(e,E,"private");const B=f.useRef(!0);f.useEffect(()=>{if(B.current){B.current=!1;return}let _=!1;t.rowCount!==i.current&&(_=!0,i.current=t.rowCount);const V=t.dataSource?yG(e):t.rows,A=e.current.caches.rows.rowsBeforePartialUpdates===V,z=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,G=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;A&&(z||(e.current.setState(U=>H({},U,{rows:H({},U.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading),G||(e.current.setState(U=>H({},U,{rows:H({},U.rows,{totalRowCount:Math.max(t.rowCount||0,U.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,U.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount),!_)||(r.debug(`Updating all rows, new length ${V?.length}`),p({cache:tf({rows:V,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,t.dataSource,r,p,e])},wee=e=>{const t={[nt]:H({},DP(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:nt,type:"leaf",groupingKey:null}}return{groupingName:Ji,tree:t,treeDepths:{0:e.length},dataRowIds:e}},See=({previousTree:e,actions:t})=>{const n=H({},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:nt,type:"leaf",groupingKey:null}}const s=n[nt];let i=[...s.children,...t.insert];return Object.values(r).length&&(i=i.filter(a=>!r[a])),n[nt]=H({},s,{children:i}),{groupingName:Ji,tree:n,treeDepths:{0:i.length},dataRowIds:i}},xee=e=>e.updates.type==="full"?wee(e.updates.rows):See({previousTree:e.previousTree,actions:e.updates.actions}),Pee=e=>{wo(e,Ji,"rowTreeCreation",xee)};class TM extends Error{}function Eee(e,t,n){const r=f.useCallback(h=>({field:h,colDef:e.current.getColumn(h)}),[e]),s=f.useCallback(h=>{const y=e.current.getRow(h);if(!y)throw new TM(`No row with id #${h} found`);return{id:h,columns:e.current.getAllColumns(),row:y}},[e]),i=f.useCallback((h,y,m,{cellMode:b,colDef:C,hasFocus:w,rowNode:S,tabIndex:P,value:x,formattedValue:M})=>{const k=x!==void 0?x:e.current.getRowValue(m,C),T=M!==void 0?M:e.current.getRowFormattedValue(m,C),O={id:h,field:y,row:m,rowNode:S,colDef:C,cellMode:b,hasFocus:w,tabIndex:P,value:k,formattedValue:T,isEditable:!1,api:e.current};return O.isEditable=C&&e.current.isCellEditable(O),O},[e]),a=f.useCallback((h,y)=>{const m=e.current.getRow(h),b=It(e,h);if(!m||!b)throw new TM(`No row with id #${h} found`);const C=yo(e),w=ry(e),S=e.current.getCellMode(h,y);return e.current.getCellParamsForRow(h,y,m,{colDef:t.listView&&t.listViewColumn?.field===y?lE(e):e.current.getColumn(y),rowNode:b,hasFocus:C!==null&&C.field===y&&C.id===h,tabIndex:w&&w.field===y&&w.id===h?0:-1,cellMode:S})},[e,t.listView,t.listViewColumn?.field]),l=f.useCallback(h=>e.current.rootElementRef.current?aK(e.current.rootElementRef.current,h):null,[e]),c=f.useCallback(h=>e.current.rootElementRef.current?lK(e.current.rootElementRef.current,h):null,[e]),u=f.useCallback((h,y)=>e.current.rootElementRef.current?cK(e.current.rootElementRef.current,{id:h,field:y}):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};rt(e,p,"public"),rt(e,g,"private")}const Pu={type:"include",ids:new Set},Iee=(e,t)=>H({},e,{rowSelection:t.rowSelection?t.rowSelectionModel??Pu:Pu}),Tee=(e,t)=>{const n=Rn(e,"useGridSelection"),r=ue(e,js)>1,s=t.signature!==Do.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:Dr,changeEvent:"rowSelectionChange"});const{checkboxSelection:l,disableRowSelectionOnClick:c,isRowSelectable:u}=t,d=ny(t),p=f.useCallback(B=>{let _=B;const V=a.current??B,A=e.current.isRowSelected(B);if(A){const z=Jr(e),G=z.findIndex(X=>X===V),U=z.findIndex(X=>X===_);if(G===U)return;G>U?_=z[U+1]:_=z[U-1]}a.current=B,e.current.selectRowRange({startId:V,endId:_},!A)},[e]),g=fe(()=>t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?KE(e):Jr(e)),h=f.useCallback((B,_)=>{if(t.signature===Do.DataGrid&&!d&&(B.type!=="include"||B.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(Dr(e)!==B){if(n.debug("Setting selection model"),a.current!==null){const A=B.ids.has(a.current);(B.type==="include"&&!A||B.type==="exclude"&&A)&&(a.current=null)}e.current.setState(A=>H({},A,{rowSelection:t.rowSelection?B:Pu}),_)}},[e,n,t.rowSelection,t.signature,d]),y=f.useCallback(B=>iu(e).has(B),[e]),m=f.useCallback(B=>{if(t.rowSelection===!1)return!1;if(t.keepNonExistentRowsSelected&&!e.current.getRow(B))return!0;if(u&&!u(e.current.getRowParams(B)))return!1;const _=It(e,B);return!(_?.type==="footer"||_?.type==="pinnedRow")},[e,t.rowSelection,t.keepNonExistentRowsSelected,u]),b=f.useCallback(()=>BE(e),[e]),C=f.useCallback((B,_=!0,V=!1)=>{if(!e.current.isRowSelectable(B))return;const A=yt(e);if(a.current=_?B:null,V){n.debug(`Setting selection for row ${B}`);const z={type:"include",ids:new Set},G=U=>{z.ids.add(U)};_&&(G(B),s&&au(e,A,B,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,G)),e.current.setRowSelectionModel(z,"singleRowSelection")}else{n.debug(`Toggling selection for row ${B}`);const z=Dr(e),G={type:z.type,ids:new Set(z.ids)},U=Gs(G);U.unselect(B);const X=oe=>{U.select(oe)},Y=oe=>{U.unselect(oe)};_?(X(B),s&&au(e,A,B,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,X)):s&&zE(e,A,B,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,Y),(G.type==="include"&&G.ids.size<2||d)&&e.current.setRowSelectionModel(G,"singleRowSelection")}},[e,n,s,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,d]),w=f.useCallback((B,_=!0,V=!1)=>{if(n.debug("Setting selection for several rows"),t.rowSelection===!1)return;const A=yt(e),z=new Set;for(let Y=0;Y<B.length;Y+=1){const ee=B[Y];e.current.isRowSelectable(ee)&&z.add(ee)}const G=Dr(e);let U;if(V){if(U={type:"include",ids:z},_){const Y=Gs(U);if(s){const ee=oe=>{Y.select(oe)};for(const oe of z)au(e,A,oe,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,ee)}}else U.ids=new Set;if(G.type===U.type&&U.ids.size===G.ids.size&&Array.from(U.ids).every(Y=>G.ids.has(Y)))return}else{U={type:G.type,ids:new Set(G.ids)};const Y=Gs(U),ee=K=>{Y.select(K)},oe=K=>{Y.unselect(K)};for(const K of z)_?(Y.select(K),s&&au(e,A,K,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,ee)):(oe(K),s&&zE(e,A,K,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,oe))}(U.type==="include"&&U.ids.size<2||d)&&e.current.setRowSelectionModel(U,"multipleRowsSelection")},[n,s,d,e,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,t.rowSelection]),S=f.useCallback(B=>{if(!r||!s||B.type==="exclude"||B.ids.size===0&&B.type==="include")return B;const _={type:B.type,ids:new Set(B.ids)},V=yt(e),A=Gs(_),z=G=>{A.select(G)};for(const G of B.ids)au(e,V,G,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,z,A);return _},[e,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,r,s]),P=f.useCallback(({startId:B,endId:_},V=!0,A=!1)=>{if(!e.current.getRow(B)||!e.current.getRow(_))return;n.debug(`Expanding selection from row ${B} to row ${_}`);const z=Jr(e),G=z.indexOf(B),U=z.indexOf(_),[X,Y]=G>U?[U,G]:[G,U],ee=z.slice(X,Y+1);e.current.selectRows(ee,V,A)},[e,n]),x={selectRow:C,setRowSelectionModel:h,getSelectedRows:b,isRowSelected:y,isRowSelectable:m},M={selectRows:w,selectRowRange:P,getPropagatedRowSelectionModel:S};rt(e,x,"public"),rt(e,M,t.signature===Do.DataGrid?"private":"public");const k=f.useRef(!0),T=f.useCallback(()=>{if(k.current)return;const B=Dr(e),_=mo(e),V=yt(e),A=il(e),z=ee=>t.filterMode==="server"?!_[ee]:!V[ee]||A[ee]===!1,G={type:B.type,ids:new Set(B.ids)},U=Gs(G);let X=!1;for(const ee of B.ids){if(z(ee)){if(t.keepNonExistentRowsSelected)continue;U.unselect(ee),X=!0;continue}if(!t.rowSelectionPropagation?.parents)continue;const oe=V[ee];if(oe?.type==="group"){if(oe.isAutoGenerated){U.unselect(ee),X=!0;continue}oe.children.every(W=>A[W]===!1)||(U.unselect(ee),X=!0)}}const Y=r&&t.rowSelectionPropagation?.parents&&(G.ids.size>0||G.type==="exclude");if(X||Y)if(Y)if(G.type==="exclude"){const ee=g(),oe=[];for(let K=0;K<ee.length;K+=1){const W=ee[K];(t.keepNonExistentRowsSelected||!z(W))&&U.has(W)&&oe.push(W)}e.current.selectRows(oe,!0,!0)}else e.current.selectRows(Array.from(G.ids),!0,!0);else e.current.setRowSelectionModel(G,"multipleRowsSelection")},[e,r,t.rowSelectionPropagation?.parents,t.keepNonExistentRowsSelected,t.filterMode,g]),O=f.useCallback((B,_)=>{const V=_.metaKey||_.ctrlKey,A=!l&&!V&&!aW(_),z=!d||A,G=e.current.isRowSelected(B),Y=ff(e)>1&&z||!G;e.current.selectRow(B,Y,z)},[e,d,l]),I=f.useCallback((B,_)=>{if(c)return;const V=_.target.closest(`.${j.cell}`)?.getAttribute("data-field");V===cl.field||V===ao||V&&e.current.getColumn(V)?.type===cf||It(e,B.id).type==="pinnedRow"||(_.shiftKey&&d?p(B.id):O(B.id,_))},[c,d,e,p,O]),D=f.useCallback((B,_)=>{d&&_.shiftKey&&window.getSelection()?.removeAllRanges()},[d]),E=f.useCallback((B,_)=>{d&&_.nativeEvent.shiftKey?p(B.id):e.current.selectRow(B.id,B.value,!d)},[e,p,d]),N=f.useCallback(B=>{const _=gn(e),V=AE(e),A=_.items.length>0||V?.some(z=>z.length);!t.isRowSelectable&&!t.checkboxSelectionVisibleOnly&&(!r||t.rowSelectionPropagation?.descendants)&&!A&&!t.disableRowSelectionExcludeModel?e.current.setRowSelectionModel({type:B?"exclude":"include",ids:new Set},"multipleRowsSelection"):e.current.selectRows(g(),B)},[e,g,t.checkboxSelectionVisibleOnly,t.isRowSelectable,t.rowSelectionPropagation?.descendants,t.disableRowSelectionExcludeModel,r]),L=f.useCallback(B=>{N(B.value)},[N]),$=f.useCallback((B,_)=>{if(e.current.getCellMode(B.id,B.field)!==Vt.Edit&&!Cl(_)){if(Gi(_.key)&&_.shiftKey){const V=yo(e);if(V&&V.id!==B.id){_.preventDefault();const A=e.current.isRowSelected(V.id);if(!d){e.current.selectRow(V.id,!A,!0);return}const z=e.current.getRowIndexRelativeToVisibleRows(V.id),G=e.current.getRowIndexRelativeToVisibleRows(B.id);let U,X;z>G?A?(U=G,X=z-1):(U=G,X=z):A?(U=z+1,X=G):(U=z,X=G);const Y=bs(e),ee=[];for(let oe=U;oe<=X;oe+=1)ee.push(Y.rows[oe].id);e.current.selectRows(ee,!A);return}}if(_.key===" "&&_.shiftKey){_.preventDefault(),O(B.id,_);return}String.fromCharCode(_.keyCode)==="A"&&(_.ctrlKey||_.metaKey)&&(_.preventDefault(),d&&N(!0))}},[e,d,O,N]),F=fe(()=>{if(!t.rowSelection){e.current.setRowSelectionModel(Pu);return}if(i===void 0)return;if(!s||!r||i.type==="include"&&i.ids.size===0){e.current.setRowSelectionModel(i);return}const B=e.current.getPropagatedRowSelectionModel(i);if(B.type!==i.type||B.ids.size!==i.ids.size||!Array.from(i.ids).every(_=>B.ids.has(_))){e.current.setRowSelectionModel(B);return}e.current.setRowSelectionModel(i)});Pe(e,"filteredRowsSet",Pn(t.rowSelection,T)),Pe(e,"rowClick",Pn(t.rowSelection,I)),Pe(e,"rowSelectionCheckboxChange",Pn(t.rowSelection,E)),Pe(e,"headerSelectionCheckboxChange",L),Pe(e,"cellMouseDown",Pn(t.rowSelection,D)),Pe(e,"cellKeyDown",Pn(t.rowSelection,$)),f.useEffect(()=>{F()},[e,i,t.rowSelection,F]);const R=i!=null;f.useEffect(()=>{if(R||!t.rowSelection||typeof m!="function")return;const B=Dr(e);if(B.type!=="include")return;const _=new Set;for(const V of B.ids)m(V)&&_.add(V);_.size<B.ids.size&&e.current.setRowSelectionModel({type:B.type,ids:_})},[e,m,R,t.rowSelection]),f.useEffect(()=>{if(!t.rowSelection||R)return;const B=Dr(e);!d&&(B.type==="include"&&B.ids.size>1||B.type==="exclude")&&e.current.setRowSelectionModel(Pu)},[e,d,l,R,t.rowSelection]),f.useEffect(()=>{Pn(t.rowSelection,T)},[t.rowSelection,T]),f.useEffect(()=>{k.current&&(k.current=!1)},[])},Mee=e=>{const{classes:t}=e;return f.useMemo(()=>de({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},ot,t),[t])},Oee=(e,t)=>{const n={classes:t.classes},r=Mee(n),s=f.useCallback(i=>{const a=H({},cl,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,c=i.lookup[Fr]!=null;return l&&!c?(i.lookup[Fr]=a,i.orderedFields=[Fr,...i.orderedFields]):!l&&c?(delete i.lookup[Fr],i.orderedFields=i.orderedFields.filter(u=>u!==Fr)):l&&c&&(i.lookup[Fr]=H({},a,i.lookup[Fr]),t.columns.some(u=>u.field===Fr)||(i.orderedFields=[Fr,...i.orderedFields.filter(u=>u!==Fr)])),i},[e,r,t.columns,t.checkboxSelection]);Ct(e,"hydrateColumns",s)},kee=(e,t)=>{const n=t.sortModel??t.initialState?.sorting?.sortModel??[];return H({},e,{sorting:{sortModel:QP(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},Dee=(e,t)=>{const n=Rn(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Un,changeEvent:"sortModelChange"});const r=f.useCallback((x,M)=>{const k=Un(e),T=k.findIndex(I=>I.field===x);let O=[...k];return T>-1?M?.sort==null?O.splice(T,1):O.splice(T,1,M):O=[...k,M],O},[e]),s=f.useCallback((x,M)=>{const T=Un(e).find(O=>O.field===x.field);if(T){const O=M===void 0?eE(x.sortingOrder??t.sortingOrder,T.sort):M;return O===void 0?void 0:H({},T,{sort:O})}return{field:x.field,sort:M===void 0?eE(x.sortingOrder??t.sortingOrder):M}},[e,t.sortingOrder]),i=f.useCallback((x,M)=>M==null||M.sortable===!1||t.disableColumnSorting?x:(M.sortingOrder||t.sortingOrder).some(T=>!!T)?[...x,"columnMenuSortItem"]:x,[t.sortingOrder,t.disableColumnSorting]),a=f.useCallback(()=>{e.current.setState(x=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),H({},x,{sorting:H({},x.sorting,{sortedRows:Hi(yt(e),nt,!1)})});const M=Un(e),k=zG(M,e),T=e.current.applyStrategyProcessor("sorting",{sortRowList:k});return H({},x,{sorting:H({},x.sorting,{sortedRows:T})})}),e.current.publishEvent("sortedRowsSet")},[e,n,t.sortingMode]),l=f.useCallback(x=>{Un(e)!==x&&(n.debug("Setting sort model"),e.current.setState(JP(x,t.disableMultipleColumnsSorting)),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),c=f.useCallback((x,M,k)=>{const T=e.current.getColumn(x),O=s(T,M);let I;!k||t.disableMultipleColumnsSorting?I=O?.sort==null?[]:[O]:I=r(T.field,O),e.current.setSortModel(I)},[e,r,s,t.disableMultipleColumnsSorting]),u=f.useCallback(()=>Un(e),[e]),d=f.useCallback(()=>Zb(e).map(M=>M.model),[e]),p=f.useCallback(()=>su(e),[e]),g=f.useCallback(x=>e.current.getSortedRowIds()[x],[e]);rt(e,{getSortModel:u,getSortedRows:d,getSortedRowIds:p,getRowIdFromRowIndex:g,setSortModel:l,sortColumn:c,applySorting:a},"public");const y=f.useCallback((x,M)=>{const k=Un(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||t.initialState?.sorting?.sortModel!=null||k.length>0?H({},x,{sorting:{sortModel:k}}):x},[e,t.sortModel,t.initialState?.sorting?.sortModel]),m=f.useCallback((x,M)=>{const k=M.stateToRestore.sorting?.sortModel;return k==null?x:(e.current.setState(JP(k,t.disableMultipleColumnsSorting)),H({},x,{callbacks:[...x.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),b=f.useCallback(x=>{const M=yt(e),k=M[nt],T=x.sortRowList?x.sortRowList(k.children.map(O=>M[O])):[...k.children];return k.footerId!=null&&T.push(k.footerId),T},[e]);Ct(e,"exportState",y),Ct(e,"restoreState",m),wo(e,Ji,"sorting",b);const C=f.useCallback(({field:x,colDef:M},k)=>{if(!M.sortable||t.disableColumnSorting)return;const T=t.multipleColumnsSortingMode==="always"||k.shiftKey||k.metaKey||k.ctrlKey;c(x,void 0,T)},[c,t.disableColumnSorting,t.multipleColumnsSortingMode]),w=f.useCallback(({field:x,colDef:M},k)=>{!M.sortable||t.disableColumnSorting||k.key==="Enter"&&!k.ctrlKey&&!k.metaKey&&c(x,void 0,t.multipleColumnsSortingMode==="always"||k.shiftKey)},[c,t.disableColumnSorting,t.multipleColumnsSortingMode]),S=f.useCallback(()=>{const x=Un(e),M=Qr(e);if(x.length>0){const k=x.filter(T=>M[T.field]);k.length<x.length&&e.current.setSortModel(k)}},[e]),P=f.useCallback(x=>{x==="sorting"&&e.current.applySorting()},[e]);Ct(e,"columnMenu",i),Pe(e,"columnHeaderClick",C),Pe(e,"columnHeaderKeyDown",w),Pe(e,"rowsSet",e.current.applySorting),Pe(e,"columnsChange",S),Pe(e,"activeStrategyProcessorChange",P),gs(()=>{t.signature==="DataGrid"&&e.current.applySorting()}),ht(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function MM(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 Fee=(e,t)=>{const n=Gt(),r=Rn(e,"useGridScroll"),s=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,a=f.useCallback(d=>{const p=fn(e),g=Ja(e),h=hn(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){const b=Us(e);let C;if(typeof d.rowIndex<"u"){const S=Wi(e)[d.rowIndex]?.id,P=e.current.unstable_getCellColSpanInfo(S,d.colIndex);P&&!P.spannedByColSpan&&(C=P.cellProps.width)}typeof C>"u"&&(C=h[d.colIndex].computedWidth),m.left=MM({containerSize:p.viewportOuterSize.width,scrollPosition:Math.abs(i.current.scrollLeft),elementSize:C,elementOffset:b[d.colIndex]})}if(d.rowIndex!==void 0){const b=TP(e),C=oU(e),w=rU(e),S=t.pagination?d.rowIndex-C*w:d.rowIndex,P=b.positions[S+1]?b.positions[S+1]-b.positions[S]:b.currentPageTotalHeight-b.positions[S];m.top=MM({containerSize:p.viewportInnerSize.height,scrollPosition:i.current.scrollTop,elementSize:P,elementOffset:b.positions[S]})}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]);rt(e,{scroll:l,scrollToIndexes:a,getScrollPosition:c},"public")};function Nee(e,t){Nt(e,"columnHeaderClick",t.onColumnHeaderClick),Nt(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),Nt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Nt(e,"columnHeaderOver",t.onColumnHeaderOver),Nt(e,"columnHeaderOut",t.onColumnHeaderOut),Nt(e,"columnHeaderEnter",t.onColumnHeaderEnter),Nt(e,"columnHeaderLeave",t.onColumnHeaderLeave),Nt(e,"cellClick",t.onCellClick),Nt(e,"cellDoubleClick",t.onCellDoubleClick),Nt(e,"cellKeyDown",t.onCellKeyDown),Nt(e,"preferencePanelClose",t.onPreferencePanelClose),Nt(e,"preferencePanelOpen",t.onPreferencePanelOpen),Nt(e,"menuOpen",t.onMenuOpen),Nt(e,"menuClose",t.onMenuClose),Nt(e,"rowDoubleClick",t.onRowDoubleClick),Nt(e,"rowClick",t.onRowClick),Nt(e,"stateChange",t.onStateChange)}const Eu={width:0,height:0},Ree={isReady:!1,root:Eu,viewportOuterSize:Eu,viewportInnerSize:Eu,contentSize:Eu,minimumSize:Eu,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=Ree,s=tu(n),i=H({},r,Vee(t,n,s,rl(n)));return n.current.store.state.dimensions=i,H({},e,{dimensions:i})},Lee=Ne(hn,Us,(e,t)=>{const n=e.length;return n===0?0:Xi(t[n-1]+e[n-1].computedWidth,1)});function Aee(e,t){const n=f.useCallback(()=>fn(e),[e]),r={getRootDimensions:n},s={updateDimensions:()=>e.current.virtualizer.api.updateDimensions(),getViewportPageSize:()=>e.current.virtualizer.api.getViewportPageSize()};if(rt(e,r,"public"),rt(e,s,"private"),Nt(e,"rootMount",a=>{OM(a,fn(e))}),Nt(e,"debouncedResize",t.onResize),process.env.NODE_ENV!=="production"){const a=Rn(e,"useResizeContainer"),l=f.useRef(!1);Nt(e,"resize",c=>{n().isReady&&(c.height===0&&!l.current&&!t.autoHeight&&!Cy&&(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&&!Cy&&(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))})}zs(e.current.store,a=>a.dimensions,(a,l)=>{l.isReady&&(e.current.rootElementRef.current&&OM(e.current.rootElementRef.current,l),_ee(l.viewportInnerSize,a.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",l.viewportInnerSize),e.current.publishEvent("debouncedResize",l.root))})}function OM(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 Vee(e,t,n,r){const s=BP(e.rowHeight,xy.rowHeight,HP);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:Lee(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 _ee(e,t){return e.width===t.width&&e.height===t.height}const Bee=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]);rt(e,{exportState:t,restoreState:n},"public")},Hee=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};rt(e,s,"public"),rt(e,i,"private"),Pe(e,"columnOrderChange",t)},zee=["groupId","children"],C0=e=>{const t={};for(let n=0;n<e.length;n+=1){const r=e[n];if(rE(r))continue;const{groupId:s,children:i}=r,a=Te(r,zee);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=H({},a,{groupId:s}),c=C0(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},kM=(e,t,n)=>{if(rE(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=>{kM(i,[...t,r],n)})},w0=e=>{if(!e)return{};const t={};return e.forEach(n=>{kM(n,[],t)}),t},S0=(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),y=!!p?.includes(c),m=!!p?.includes(u);return g!==h||y!==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],y=h.columnFields[h.columnFields.length-1];h.groupId!==g||!a(y,p,c)||l(y,p)?u.push({columnFields:[p],groupId:g}):h.columnFields.push(p)}s.push(u)}return s},jee=(e,t,n)=>{if(n.current.caches.columnGrouping={lastColumnGroupingModel:t.columnGroupingModel},!t.columnGroupingModel)return H({},e,{columnGrouping:void 0});const r=mr(n),s=ol(n),i=C0(t.columnGroupingModel??[]),a=w0(t.columnGroupingModel??[]),l=S0(r,a,n.current.state.pinnedColumns??{}),c=s.length===0?0:Math.max(...s.map(u=>a[u]?.length??0));return H({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:l,maxDepth:c}})},Gee=(e,t)=>{const n=f.useCallback(l=>sI(e)[l]??[],[e]),r=f.useCallback(()=>iI(e),[e]);rt(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const i=f.useCallback(()=>{const l=w0(t.columnGroupingModel??[]);e.current.setState(c=>{const u=c.columns?.orderedFields??[],d=c.pinnedColumns??{},p=S0(u,l,d);return H({},c,{columnGrouping:H({},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=mr(e),d=ol(e),p=C0(l??[]),g=w0(l??[]),h=S0(u,g,c),y=d.length===0?0:Math.max(...d.map(m=>g[m]?.length??0));e.current.setState(m=>H({},m,{columnGrouping:{lookup:p,unwrappedGroupingModel:g,headerStructure:h,maxDepth:y}}))},[e]);Pe(e,"columnIndexChange",i),Pe(e,"columnsChange",()=>{a(t.columnGroupingModel)}),Pe(e,"columnVisibilityModelChange",()=>{a(t.columnGroupingModel)}),f.useEffect(()=>{t.columnGroupingModel!==e.current.caches.columnGrouping.lastColumnGroupingModel&&a(t.columnGroupingModel)},[e,a,t.columnGroupingModel])};function Wee(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function DM(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 FM(e,t,n,r){let s=e;return r==="Right"?s+=t-n.left:s+=n.right-t,Math.round(s)}function Uee(e,t,n){return n==="Left"?e-t.left:t.right-e}function qee(e){return e==="Right"?"Left":"Right"}function Yee(e,t){const n=e.classList.contains(j["columnSeparator--sideRight"])?"Right":"Left";return t?qee(n):n}function NM(e,t){return t===Nn.LEFT?e?"--DataGrid-rightPinnedWidth":"--DataGrid-leftPinnedWidth":e?"--DataGrid-leftPinnedWidth":"--DataGrid-rightPinnedWidth"}function RM(e,t,n){return n===Nn.LEFT?t?e.rightPinnedWidth:e.leftPinnedWidth:t?e.leftPinnedWidth:e.rightPinnedWidth}function $M(e){e.preventDefault(),e.stopImmediatePropagation()}function Kee(e){const t=f.useRef(void 0),n=()=>Hq(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=Wee()}return t.current}}function Xee(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 Zee(e,t,n){const r={},s=e.current.rootElementRef.current;s.classList.add(j.autosizing);const i=t.includeHeaderFilters&&oI(e);return n.forEach(a=>{const c=wK(e.current,a.field).map(m=>m.getBoundingClientRect().width??0),u=t.includeOutliers?c:Xee(c,t.outliersFactor);if(t.includeHeaders){const m=vK(e.current,a.field);if(m){const b=m.querySelector(`.${j.columnHeaderTitleContainer}`),C=Array.from(b.children),w=m.querySelector(`.${j.menuIcon}`),S=window.getComputedStyle(b,null),P=parseInt(S.gap,10)||0,x=window.getComputedStyle(m,null),M=parseInt(x.paddingLeft,10)+parseInt(x.paddingRight,10);let k=0,T=0;for(let I=0;I<C.length;I+=1){const D=C[I];D.clientWidth>0&&(k+=1,T+=D.scrollWidth)}T+=1;const O=T+P*(k-1)+M+(w?.clientWidth??0);u.push(O)}}if(i){const m=CK(e.current,a.field);if(m){const b=window.getComputedStyle(m,null),C=parseInt(b.paddingLeft,10)+parseInt(b.paddingRight,10),S=m.scrollWidth+C;u.push(S)}}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,y=u.length===0?0:Math.max(...u);r[a.field]=zi(y,g,h)}),s.classList.remove(j.autosizing),r}const Qee=e=>H({},e,{columnResize:{resizingColumnField:""}});function Jee(){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 ete=(e,t)=>{const n=Gt(),r=Rn(e,"useGridColumnResize"),s=fo(Jee).current,i=f.useRef(null),a=f.useRef(null),l=On(),c=f.useRef(void 0),u=I=>{r.debug(`Updating width to ${I} for col ${s.colDef.field}`);const D=s.columnHeaderElement.offsetWidth,E=I-D,N=I-s.initialColWidth;if(N>0){const R=s.initialTotalWidth+N;e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${R}px`)}s.colDef.computedWidth=I,s.colDef.width=I,s.colDef.flex=0,s.columnHeaderElement.style.width=`${I}px`;const L=s.headerFilterElement;L&&(L.style.width=`${I}px`),s.groupHeaderElements.forEach(R=>{const B=R;let _;B.getAttribute("aria-colspan")==="1"?_=`${I}px`:_=`${B.offsetWidth+E}px`,B.style.width=_}),s.cellElements.forEach(R=>{const B=R;let _;B.getAttribute("aria-colspan")==="1"?_=`${I}px`:_=`${B.offsetWidth+E}px`,B.style.setProperty("--width",_)});const $=fn(e),F=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,s.colDef.field);F===Nn.LEFT&&(Pl(s.fillerLeft,"width",E),s.leftPinnedCellsAfter.forEach(R=>{Pl(R,"left",E)}),s.leftPinnedHeadersAfter.forEach(R=>{Pl(R,"left",E)}),e.current.rootElementRef?.current?.style.setProperty(NM(n,F),`${RM($,n,F)+N}px`)),F===Nn.RIGHT&&(Pl(s.fillerRight,"width",E),s.rightPinnedCellsBefore.forEach(R=>{Pl(R,"right",E)}),s.rightPinnedHeadersBefore.forEach(R=>{Pl(R,"right",E)}),e.current.rootElementRef?.current?.style.setProperty(NM(n,F),`${RM($,n,F)+N}px`))},d=I=>{if(w(),s.previousMouseClickEvent){const D=s.previousMouseClickEvent,E=D.timeStamp,N=D.clientX,L=D.clientY;if(I.timeStamp-E<300&&I.clientX===N&&I.clientY===L){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 D=kr(e);s.groupHeaderElements.forEach(E=>{const N=pK(E),L=E,F=`${N.reduce((R,B)=>D.columnVisibilityModel[B]!==!1?R+D.lookup[B].computedWidth:R,0)}px`;L.style.width=F})}l.start(0,()=>{e.current.publishEvent("columnResizeStop",null,I)})},p=()=>{s.columnHeaderElement&&(s.cellElements=hK(s.columnHeaderElement,e.current))},g=(I,D,E)=>{const N=e.current.rootElementRef.current;s.initialColWidth=I.computedWidth,s.initialTotalWidth=e.current.getRootDimensions().rowWidth,s.colDef=I,s.columnHeaderElement=dK(e.current.columnHeadersContainerRef.current,I.field);const L=N.querySelector(`.${j.headerFilterRow} [data-field="${ts(I.field)}"]`);L&&(s.headerFilterElement=L),s.groupHeaderElements=fK(e.current.columnHeadersContainerRef?.current,I.field),p(),s.fillerLeft=KI(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),s.fillerRight=KI(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const $=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,s.colDef.field);s.leftPinnedCellsAfter=$!==Nn.LEFT?[]:gK(e.current,s.columnHeaderElement,n),s.rightPinnedCellsBefore=$!==Nn.RIGHT?[]:mK(e.current,s.columnHeaderElement,n),s.leftPinnedHeadersAfter=$!==Nn.LEFT?[]:bK(e.current,s.columnHeaderElement,n),s.rightPinnedHeadersBefore=$!==Nn.RIGHT?[]:yK(e.current,s.columnHeaderElement,n),a.current=Yee(D,n),i.current=Uee(E,s.columnHeaderElement.getBoundingClientRect(),a.current)},h=fe(d),y=fe(I=>{if(I.buttons===0){h(I);return}let D=FM(i.current,I.clientX,s.columnHeaderElement.getBoundingClientRect(),a.current);D=zi(D,s.colDef.minWidth,s.colDef.maxWidth),u(D);const E={element:s.columnHeaderElement,colDef:s.colDef,width:D};e.current.publishEvent("columnResize",E,I)}),m=fe(I=>{DM(I,c.current)&&d(I)}),b=fe(I=>{const D=DM(I,c.current);if(!D)return;if(I.type==="mousemove"&&I.buttons===0){m(I);return}let E=FM(i.current,D.x,s.columnHeaderElement.getBoundingClientRect(),a.current);E=zi(E,s.colDef.minWidth,s.colDef.maxWidth),u(E);const N={element:s.columnHeaderElement,colDef:s.colDef,width:E};e.current.publishEvent("columnResize",N,I)}),C=fe(I=>{const D=Tf(I.target,j["columnSeparator--resizable"]);if(!D)return;const E=I.changedTouches[0];E!=null&&(c.current=E.identifier);const N=Tf(I.target,j.columnHeader),L=uK(N),$=e.current.getColumn(L);r.debug(`Start Resize on col ${$.field}`),e.current.publishEvent("columnResizeStart",{field:L},I),g($,D,E.clientX);const F=Qt(I.currentTarget);F.addEventListener("touchmove",b),F.addEventListener("touchend",m)}),w=f.useCallback(()=>{const I=Qt(e.current.rootElementRef.current);I.body.style.removeProperty("cursor"),I.removeEventListener("mousemove",y),I.removeEventListener("mouseup",h),I.removeEventListener("touchmove",b),I.removeEventListener("touchend",m),setTimeout(()=>{I.removeEventListener("click",$M,!0)},100),s.columnHeaderElement&&(s.columnHeaderElement.style.pointerEvents="unset")},[e,s,y,h,b,m]),S=f.useCallback(({field:I})=>{e.current.setState(D=>H({},D,{columnResize:H({},D.columnResize,{resizingColumnField:I})}))},[e]),P=f.useCallback(()=>{e.current.setState(I=>H({},I,{columnResize:H({},I.columnResize,{resizingColumnField:""})}))},[e]),x=fe(({colDef:I},D)=>{if(D.button!==0||!D.currentTarget.classList.contains(j["columnSeparator--resizable"]))return;D.preventDefault(),r.debug(`Start Resize on col ${I.field}`),e.current.publishEvent("columnResizeStart",{field:I.field},D),g(I,D.currentTarget,D.clientX);const E=Qt(e.current.rootElementRef.current);E.body.style.cursor="col-resize",s.previousMouseClickEvent=D.nativeEvent,E.addEventListener("mousemove",y),E.addEventListener("mouseup",h),E.addEventListener("click",$M,!0)}),M=fe((I,D)=>{if(t.disableAutosize||D.button!==0)return;const E=e.current.state.columns.lookup[I.field];E.resizable!==!1&&e.current.autosizeColumns(H({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[E.field]}))}),k=Kee(e),T=f.useRef(!1),O=f.useCallback(async I=>{if(!e.current.rootElementRef?.current||T.current)return;T.current=!0;const E=kr(e),N=H({},sq,I,{columns:I?.columns??E.orderedFields});N.columns=N.columns.filter($=>E.columnVisibilityModel[$]!==!1);const L=N.columns.map($=>e.current.state.columns.lookup[$]);try{!t.disableVirtualization&&N.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await k());const $=Zee(e,N,L),F=L.map(R=>H({},R,{width:$[R.field],computedWidth:$[R.field],flex:0}));if(N.expand){const B=E.orderedFields.map(z=>E.lookup[z]).filter(z=>E.columnVisibilityModel[z.field]!==!1).reduce((z,G)=>z+($[G.field]??G.computedWidth??G.width),0),A=e.current.getRootDimensions().viewportInnerSize.width-B;if(A>0){const z=A/(F.length||1);F.forEach(G=>{G.width+=z,G.computedWidth+=z})}}e.current.updateColumns(F),F.forEach((R,B)=>{if(R.width!==L[B].width){const _=R.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(R.field),colDef:R,width:_})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),T.current=!1}},[e,k,t.disableVirtualization]);f.useEffect(()=>w,[w]),Sd(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),cI(e,()=>e.current.columnHeadersContainerRef?.current,"touchstart",C,{passive:!0}),rt(e,{autosizeColumns:O},"public"),Pe(e,"columnResizeStop",P),Pe(e,"columnResizeStart",S),Pe(e,"columnSeparatorMouseDown",x),Pe(e,"columnSeparatorDoubleClick",M),Pe(e,"rowsSet",()=>{rq(e)!==""&&requestAnimationFrame(()=>{p()})}),Nt(e,"columnResize",t.onColumnResize),Nt(e,"columnWidthChange",t.onColumnWidthChange)};function Pl(e,t,n){e&&(e.style[t]=`${Math.round(parseFloat(e.style[t]))+n}px`)}function tte(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 LM(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const x0=(e,t,n)=>{if(!e)return null;const r=e[t.field];return t.rowSpanValueGetter?t.rowSpanValueGetter(r,e,t,n):FP(e,t,n)},ea={caches:{spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},processedRange:{firstRowIndex:0,lastRowIndex:0}},nte=(e,t,n,r,s,i)=>{const a=e.current.virtualizer,l=i?ea:gl.selectors.state(a.store.state),c=H({},l.caches.spannedCells),u=H({},l.caches.hiddenCells),d=H({},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 y=s.firstRowIndex;y<s.lastRowIndex;y+=1){const m=n[y];if(u[m.id]?.[h])continue;const b=x0(m.model,g,e);if(b==null)continue;let C=m.id,w=y,S=0;const P=[];if(y===s.firstRowIndex){let M=y-1,k=n[M];for(;M>=r.firstRowIndex&&k&&x0(k.model,g,e)===b;){const T=n[M+1];u[T.id]?u[T.id][h]=!0:u[T.id]={[h]:!0},P.push(y),S+=1,C=k.id,w=M,M-=1,k=n[M]}}P.forEach(M=>{d[M]?d[M][h]=w:d[M]={[h]:w}});let x=y+1;for(;x<=r.lastRowIndex&&n[x]&&x0(n[x].model,g,e)===b;){const M=n[x];u[M.id]?u[M.id][h]=!0:u[M.id]={[h]:!0},d[x]?d[x][h]=w:d[x]={[h]:w},x+=1,S+=1}S>0&&(c[C]?c[C][h]=S+1:c[C]={[h]:S+1})}}),{caches:{spannedCells:c,hiddenCells:u,hiddenCellOriginMap:d},processedRange:p}},ote=e=>H({},e,{rowSpanning:ea}),rte=(e,t)=>{const n=f.useCallback((a,l=!1)=>{const c=e.current.virtualizer.store,{range:u,rows:d}=bs(e);if(l&&c.set("rowSpanning",ea),u===null||!LM(a))return;const p=l?ea:gl.selectors.state(c.state),g=tte({firstRowIndex:a.firstRowIndex,lastRowIndex:Math.min(a.lastRowIndex,u.lastRowIndex-u.firstRowIndex+1)},p.processedRange);if(g===null)return;const h=hn(e),y=nte(e,h,d,u,g,l),m=Object.keys(y.caches.spannedCells).length,b=Object.keys(y.caches.hiddenCells).length,C=Object.keys(p.caches.spannedCells).length,w=Object.keys(p.caches.hiddenCells).length;!(l||m!==C||b!==w)||m===0&&C===0||c.set("rowSpanning",y)},[e]),{schedule:r,cancel:s}=VU(n),i=f.useCallback(()=>{const a=ml(e);LM(a)&&r(a,!0)},[e,r]);Pe(e,"renderedRowsIntervalChange",Pn(t.rowSpanning,a=>{const l=s();n(a,l)})),Pe(e,"sortedRowsSet",Pn(t.rowSpanning,i)),Pe(e,"paginationModelChange",Pn(t.rowSpanning,i)),Pe(e,"filteredRowsSet",Pn(t.rowSpanning,i)),Pe(e,"columnsChange",Pn(t.rowSpanning,i)),Pe(e,"rowExpansionChange",Pn(t.rowSpanning,i)),f.useEffect(()=>{const a=e.current.virtualizer?.store;a&&(t.rowSpanning?a.state.rowSpanning===ea&&n(ml(e)):a.state.rowSpanning!==ea&&a.set("rowSpanning",ea))},[e,t.rowSpanning,n])},ste=(e,t,n)=>H({},e,{listViewColumn:t.listViewColumn?H({},t.listViewColumn,{computedWidth:P0(n)}):void 0});function ite(e,t){const n=()=>{e.current.setState(i=>i.listViewColumn?H({},i,{listViewColumn:H({},i.listViewColumn,{computedWidth:P0(e)})}):i)},r=f.useRef(null);Pe(e,"viewportInnerSizeChange",i=>{r.current!==i.width&&(r.current=i.width,n())}),Pe(e,"columnVisibilityModelChange",n),ht(()=>{const i=t.listViewColumn;i&&e.current.setState(a=>H({},a,{listViewColumn:H({},i,{computedWidth:P0(e)})}))},[e,t.listViewColumn]),f.useEffect(()=>{t.listView&&!t.listViewColumn&&xn(["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 P0(e){return fn(e).viewportInnerSize.width}const AM=Ne(gn,Un,En,(e,t,n)=>({groupKeys:[],paginationModel:n,sortModel:t,filterModel:e,start:n.page*n.pageSize,end:n.page*n.pageSize+n.pageSize-1}));let lo=(function(e){return e.Default="set-flat-rows",e.LazyLoading="replace-row-range",e.GroupedData="set-grouped-rows",e})({});class Af{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(H({},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=H({},n,{pageInfo:H({},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)=>H({},r,{rows:[...n.rows,...r.rows]}),{rows:[],rowCount:0,pageInfo:{}})}const ate=["skipCache","keepChildrenExpanded"],lte={clear:()=>{},get:()=>{},set:()=>{}};function VM(e,t={}){return e===null?lte:e??new Uq(t)}const cte=(e,t,n={})=>{const r=f.useCallback(()=>{e.current.setStrategyAvailability(Co.DataSource,lo.Default,t.dataSource?()=>!0:()=>!1)},[e,t.dataSource]),[s,i]=f.useState(e.current.getActiveStrategy(Co.DataSource)),a=f.useMemo(()=>s===lo.Default||s===lo.GroupedData,[s]),l=ue(e,En),c=f.useRef(0),u=t.onDataSourceError,d=fo(()=>{if(!t.pagination)return new Af(l.pageSize);const M=t.pageSizeOptions.map(T=>typeof T=="number"?T:T.value).sort((T,O)=>T-O),k=Math.min(l.pageSize,M[0]);return new Af(k)}).current,[p,g]=f.useState(()=>VM(t.dataSourceCache,n.cacheOptions)),h=f.useCallback(async(M,k)=>{const T=t.dataSource?.getRows;if(!T)return;if(M&&M!==nt&&t.signature!=="DataGrid"){n.fetchRowChildren?.([M]);return}n.clearDataSourceState?.();const O=k||{},{skipCache:I,keepChildrenExpanded:D}=O,E=Te(O,ate),N=H({},AM(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),E),$=d.getCacheKeys(N).map(R=>p.get(R));if(!I&&$.every(R=>R!==void 0)){e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:Af.mergeResponses($),fetchParams:N,options:{skipCache:I,keepChildrenExpanded:D}});return}(a||e.current.getRowsCount()===0)&&e.current.setLoading(!0);const F=c.current+1;c.current=F;try{const R=await T(N);d.splitResponse(N,R).forEach((_,V)=>p.set(V,_)),c.current===F&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:R,fetchParams:N,options:{skipCache:I,keepChildrenExpanded:D}})}catch(R){c.current===F&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:R,fetchParams:N,options:{skipCache:I,keepChildrenExpanded:D}}),typeof u=="function"?u(new NI({message:R?.message,params:N,cause:R})):xn(["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===F&&e.current.setLoading(!1)}},[d,p,e,a,t.dataSource?.getRows,u,n,t.signature]),y=f.useCallback(()=>{i(e.current.getActiveStrategy(Co.DataSource))},[e]),m=f.useCallback(M=>{if("error"in M){e.current.setRows([]);return}const{response:k}=M;k.rowCount!==void 0&&e.current.setRowCount(k.rowCount),e.current.setRows(k.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:M.fetchParams,response:k},!0)},[e]),b=t.dataSource?.updateRow,C=n.handleEditRow,w=f.useCallback(async M=>{if(b)try{const k=await b(M);return typeof C=="function"?(C(M,k),k):(k&&!No(k,M.previousRow)&&e.current.dataSource.cache.clear(),e.current.updateNestedRows([k],[]),k)}catch(k){throw typeof u=="function"?u(new qq({message:k?.message,params:M,cause:k})):xn(["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"),k}},[e,b,u,C]),S={dataSource:{fetchRows:h,cache:p,editRow:w}},P=f.useMemo(()=>vr(h,0),[h]),x=f.useRef(!0);return f.useEffect(()=>{if(x.current){x.current=!1;return}if(t.dataSourceCache===void 0)return;const M=VM(t.dataSourceCache,n.cacheOptions);g(k=>k!==M?M:k)},[t.dataSourceCache,n.cacheOptions]),f.useEffect(()=>{if(!(s!==lo.Default&&s!==lo.LazyLoading&&s!==lo.GroupedData))return t.dataSource&&(e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows()),()=>{c.current+=1}},[e,t.dataSource,s]),{api:{public:S},debouncedFetchRows:P,strategyProcessor:{strategyName:lo.Default,group:"dataSourceRowsUpdate",processor:m},setStrategyAvailability:r,cacheChunkManager:d,cache:p,events:{strategyAvailabilityChange:y,sortModelChange:Pn(a,()=>P()),filterModelChange:Pn(a,()=>P()),paginationModelChange:Pn(a,()=>P())}}},ute=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:s,showLeftBorder:i,showRightBorder:a,groupId:l,pinnedPosition:c}=e,u={root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",a&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","withBorderColor",l===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",c===mt.LEFT&&"columnHeader--pinnedLeft",c===mt.RIGHT&&"columnHeader--pinnedRight",s&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return de(u,ot,t)};function dte(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=De(),y=Gt(),m=f.useRef(null),b=tt(),C=ue(b,iI),w=t?C[t]:{},{headerName:S=t??"",description:P="",headerAlign:x=void 0}=w;let M;const k=t&&C[t]?.renderHeaderGroup,T=f.useMemo(()=>({groupId:t,headerName:S,description:P,depth:r,maxDepth:s,fields:i,colIndex:l,isLastColumn:d}),[t,S,P,r,s,i,l,d]);t&&k&&(M=k(T));const O=H({},e,{classes:h.classes,headerAlign:x,depth:r,isDragging:!1}),I=S??t,D=dt(),E=t===null?`empty-group-cell-${D}`:t,N=ute(O);f.useLayoutEffect(()=>{if(c){const _=m.current.querySelector('[tabindex="0"]')||m.current;if(!_)return;if(Iy())_.focus({preventScroll:!0});else{const V=b.current.getScrollPosition();_.focus(),b.current.scroll(V)}}},[b,c]);const L=f.useCallback(B=>_=>{Cl(_)||b.current.publishEvent(B,T,_)},[b,T]),$=f.useMemo(()=>({onKeyDown:L("columnGroupHeaderKeyDown"),onFocus:L("columnGroupHeaderFocus"),onBlur:L("columnGroupHeaderBlur")}),[L]),F=typeof w.headerClassName=="function"?w.headerClassName(T):w.headerClassName,R=f.useMemo(()=>mu(H({},e.style),y,p,g),[p,g,e.style,y]);return v.jsx(Ay,H({ref:m,classes:N,columnMenuOpen:!1,colIndex:l,height:a,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:M,headerClassName:F,description:P,elementId:E,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:I,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:R},$))}const _M={root:j.scrollbarFiller,pinnedRight:j["scrollbarFiller--pinnedRight"]};function pte({pinnedRight:e}){return v.jsx("div",{role:"presentation",className:ie(_M.root,e&&_M.pinnedRight)})}const E0=Z("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}),BM=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,y]=f.useState(""),[m,b]=f.useState(""),C=qn(),w=De(),S=ue(C,sI),P=ue(C,Us),x=ue(C,Gq),M=ue(C,rl),k=ue(C,Qr),T=II(P,x,M.left.length),O=ue(C,eu),I=ue(C,Lb),D=ue(C,uG),E=ue(C,dG),N=ue(C,Ab),L=f.useCallback(Y=>b(Y.field),[]),$=f.useCallback(()=>b(""),[]),F=f.useCallback(Y=>y(Y.field),[]),R=f.useCallback(()=>y(""),[]),B=f.useMemo(()=>M.left.length?{firstColumnIndex:0,lastColumnIndex:M.left.length}:null,[M.left.length]),_=f.useMemo(()=>M.right.length?{firstColumnIndex:t.length-M.right.length,lastColumnIndex:t.length}:null,[M.right.length,t.length]);Pe(C,"columnResizeStart",L),Pe(C,"columnResizeStop",$),Pe(C,"columnHeaderDragStart",F),Pe(C,"columnHeaderDragEndNative",R);const V=Y=>{const{renderContext:ee=x}=Y||{},oe=ee.firstColumnIndex,K=Math.min(ee.lastColumnIndex,t.length);return{renderedColumns:t.slice(oe,K),firstColumnToRender:oe,lastColumnToRender:K}},A=(Y,ee,oe,K=!1)=>{const W=Y?.position===mt.RIGHT,J=Y?.position===void 0,q=M.right.length>0&&W||M.right.length===0&&J,ce=T-oe;return v.jsxs(f.Fragment,{children:[J&&v.jsx("div",{role:"presentation",style:{width:ce}}),ee,J&&v.jsx("div",{role:"presentation",className:ie(j.filler,K&&j["filler--borderBottom"])}),q&&v.jsx(pte,{pinnedRight:W})]})};process.env.NODE_ENV!=="production"&&(A.displayName="getFillers");const z=(Y,ee={})=>{const{renderedColumns:oe,firstColumnToRender:K}=V(Y),W=[];for(let J=0;J<oe.length;J+=1){const q=oe[J],ce=K+J,re=ce===0,se=s!==null&&s.field===q.field||re&&!g?0:-1,ae=a!==null&&a.field===q.field,te=u.open&&u.field===q.field,Q=Y?.position,Ce=yu(Q,q.computedWidth,ce,P,O,N),le=Q===mt.RIGHT?oe[J-1]:oe[J+1],xe=le?a!==null&&a.field===le.field:!1,we=J,Ue=oe.length,$e=Cu(Q,we,w.showColumnVerticalBorder,w.pinnedColumnsSectionSeparator),Ze=vu(Q,we,Ue,w.showColumnVerticalBorder,I,w.pinnedColumnsSectionSeparator);W.push(v.jsx(OK,H({},n[q.field],{columnMenuOpen:te,filterItemsCounter:r[q.field]&&r[q.field].length,headerHeight:D,isDragging:q.field===h,colDef:q,colIndex:ce,isResizing:m===q.field,isLast:ce===P.length-1,hasFocus:ae,tabIndex:se,pinnedPosition:Q,pinnedOffset:Ce,isSiblingFocused:xe,showLeftBorder:$e,showRightBorder:Ze},ee),q.field))}return A(Y,W,0)},G=()=>v.jsxs(E0,{role:"row","aria-rowindex":c+1,ownerState:w,className:j["row--borderBottom"],style:{height:D},children:[B&&z({position:mt.LEFT,renderContext:B},{disableReorder:!0}),z({renderContext:x}),_&&z({position:mt.RIGHT,renderContext:_},{disableReorder:!0,separatorSide:Ly.Left})]});process.env.NODE_ENV!=="production"&&(G.displayName="getColumnHeadersRow");const U=({depth:Y,params:ee})=>{const oe=V(ee);if(oe.renderedColumns.length===0)return null;const{firstColumnToRender:K,lastColumnToRender:W}=oe,J=p[Y],q=t[K].field,ce=S[q]?.[Y]??null,re=J.findIndex(({groupId:$e,columnFields:Ze})=>$e===ce&&Ze.includes(q)),se=t[W-1].field,ae=S[se]?.[Y]??null,te=J.findIndex(({groupId:$e,columnFields:Ze})=>$e===ae&&Ze.includes(se)),Q=J.slice(re,te+1).map($e=>H({},$e,{columnFields:$e.columnFields.filter(Ze=>d[Ze]!==!1)})).filter($e=>$e.columnFields.length>0),Ce=Q[0].columnFields.indexOf(q),xe=Q[0].columnFields.slice(0,Ce).reduce(($e,Ze)=>{const Le=k[Ze];return $e+(Le.computedWidth??0)},0);let we=K;const Ue=Q.map(({groupId:$e,columnFields:Ze},Le)=>{const Qe=l!==null&&l.depth===Y&&Ze.includes(l.field),Je=i!==null&&i.depth===Y&&Ze.includes(i.field)?0:-1,be={width:Ze.reduce((Ae,Ge)=>Ae+k[Ge].computedWidth,0),fields:Ze,colIndex:we},Ee=ee.position,me=yu(Ee,be.width,we,P,O,N);we+=Ze.length;let Me=Le;return Ee===mt.LEFT&&(Me=we-1),v.jsx(dte,{groupId:$e,width:be.width,fields:be.fields,colIndex:be.colIndex,depth:Y,isLastColumn:Le===Q.length-1,maxDepth:c,height:E,hasFocus:Qe,tabIndex:Je,pinnedPosition:Ee,pinnedOffset:me,showLeftBorder:Cu(Ee,Me,w.showColumnVerticalBorder,w.pinnedColumnsSectionSeparator),showRightBorder:vu(Ee,Me,Q.length,w.showColumnVerticalBorder,I,w.pinnedColumnsSectionSeparator)},Le)});return A(ee,Ue,xe)};return{renderContext:x,leftRenderContext:B,rightRenderContext:_,pinnedColumns:M,visibleColumns:t,columnPositions:P,getFillers:A,getColumnHeadersRow:G,getColumnsToRender:V,getColumnGroupHeadersRows:()=>{if(c===0)return null;const Y=[];for(let ee=0;ee<c;ee+=1)Y.push(v.jsxs(E0,{role:"row","aria-rowindex":ee+1,ownerState:w,style:{height:E},children:[B&&U({depth:ee,params:{position:mt.LEFT,renderContext:B,maxLastColumn:B.lastColumnIndex}}),U({depth:ee,params:{renderContext:x}}),_&&U({depth:ee,params:{position:mt.RIGHT,renderContext:_,maxLastColumn:_.lastColumnIndex}})]},ee));return Y},getPinnedCellOffset:yu,isDragging:!!h,getInnerProps:()=>({role:"rowgroup"})}},fte=["className"],hte=e=>{const{classes:t}=e;return de({root:["columnHeaders"]},ot,t)},gte=xt("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),I0=Xe(function(t,n){const{className:r}=t,s=Te(t,fte),i=De(),a=hte(i);return v.jsx(gte,H({className:ie(a.root,r),ownerState:i},s,{role:"presentation",ref:n}))});process.env.NODE_ENV!=="production"&&(I0.displayName="GridBaseColumnHeaders");const mte=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],T0=Xe(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:y}=t,m=Te(t,mte),{getInnerProps:b,getColumnHeadersRow:C,getColumnGroupHeadersRows:w}=BM({visibleColumns:r,sortColumnLookup:s,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:l,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:g,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:y});return v.jsxs(I0,H({},m,b(),{ref:n,children:[w(),C()]}))});process.env.NODE_ENV!=="production"&&(T0.displayName="GridColumnHeaders"),process.env.NODE_ENV!=="production"&&(T0.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 bte=Tr(T0);function yte(e){return null}function vte(e){return null}const HM=Xe(function(t,n){const s=tt().current.getLocaleText("noResultsOverlayLabel");return v.jsx(yl,H({},t,{ref:n,children:s}))});process.env.NODE_ENV!=="production"&&(HM.displayName="GridNoResultsOverlay");const Cte=()=>de({root:["bottomContainer"]},ot,{}),wte=xt("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function Ste(e){const t=Cte();return v.jsx(wte,H({},e,{className:ie(t.root,j["container--bottom"]),role:"presentation"}))}const xte=H({},fJ,{cell:PY,skeletonCell:kY,columnHeaderFilterIconButton:aT,columnHeaderSortIcon:iT,columnMenu:By,columnHeaders:bte,detailPanels:yte,bottomContainer:Ste,footer:r0,footerRowCount:l0,toolbar:VT,pinnedRows:vte,loadingOverlay:s0,noResultsOverlay:HM,noRowsOverlay:i0,noColumnsOverlay:a0,pagination:zT,filterPanel:Gy,columnsPanel:aX,columnsManagement:DT,panel:zy,row:FZ});class zM{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 jM=Symbol("mui.api_private"),Pte=e=>e.isPropagationStopped!==void 0;let GM=0;function Ete(e){const t=e.current?.[jM];if(t)return t;const n={},r={state:n,store:Jc.create(n),instanceId:{id:GM}};return GM+=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 zM}),r}function Ite(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[jM]:e.current}}function Tte(e,t){const n=f.useRef(null),r=f.useRef(null);r.current||(r.current=Ete(n)),n.current||(n.current=Ite(r));const s=f.useCallback((...a)=>{const[l,c,u={}]=a;if(u.defaultMuiPrevented=!1,Pte(u)&&u.isPropagationStopped())return;const d=t.signature===Do.DataGridPro||t.signature===Do.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 rt(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 Mte=(e,t)=>H({},e,{headerFiltering:{enabled:t.headerFilters??!1,editing:null,menuOpen:null}}),Ote=(e,t)=>{const n=Rn(e,"useGridHeaderFiltering"),r=f.useCallback(p=>{e.current.setState(g=>t.signature==="DataGrid"?g:H({},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=Qr(e),h=Xo(e),y=mr(e);if(g[p]||(p=y[0]),h[p]===!1){const m=y.filter(C=>C===p?!0:h[C]!==!1),b=m.indexOf(p);p=m[b+1]||m[b-1]}e.current.setHeaderFilterState({menuOpen:null}),e.current.setColumnHeaderFilterFocus(p)}},[e,n]),c={setHeaderFilterState:r};rt(e,{startHeaderFilterEditMode:s,stopHeaderFilterEditMode:i,showHeaderFilterMenu:a,hideHeaderFilterMenu:l},"public"),rt(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 Iu{}class kte{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}}xn(["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 WM=e=>`auto-generated-row-${e.map(n=>`${n.field}/${n.key}`).join("-")}`,UM=({id:e,tree:t})=>{const n=[];let r=t[e];for(;r.id!==nt;)n.push({field:r.type==="leaf"?null:r.groupingField,key:r.groupingKey}),r=t[r.parent];return n.reverse(),n},qM=(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===nt?i=!0:r?i=r(e):i=t===-1||t>e.depth,i},YM=(e,t,n,r,s)=>{const i=qM(e,t,n,r,s);return e.childrenExpanded=i,e},Vf=(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)},M0=({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]=he({},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]=he({},i,{children:c,childrenFromPath:u})}},KM=({node:e,updatedNode:t,previousTree:n,tree:r,treeDepths:s})=>{e.children.forEach(a=>{r[a]=he({},r[a],{parent:t.id})}),M0({node:e,tree:r,treeDepths:s});const i=he({},e,t);Vf(i,r,s,n)},XM=({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 Dte(e){const t=e;return!t||t instanceof Element&&t.classList.contains(j.cell)?t:t.closest(`[class*="${j.cell}"]`)||t}function O0(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 Fte=(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},ZM=(e,t,n)=>{let r=e;for(;r&&r.id!==nt;){if(r.id===t.id)return!0;r=n[r.parent]}return!1},Nte=(e,t,n)=>{const r=s=>{const i=t[s];i&&(t[s]=he({},i,{depth:i.depth+n}),i.type==="group"&&i.children.forEach(r))};e.children.forEach(r)};function Rte(e,t){t?t(e):xn(["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 QM{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),Rte(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 Qs=(e,t)=>{const n=[];let r=e;for(;r&&r.id!==nt;)(r.type==="leaf"||r.type==="group")&&r.groupingKey!==null&&n.unshift(String(r.groupingKey)),r=t[r.parent];return n};function _f(e){xn(`MUI X: ${e} requires \`setTreeDataPath()\` prop to update row data paths. Please provide a \`setTreeDataPath()\` function to enable this feature.`,"warning")}function Bf(e,t){const n=e[t.parent],r=n.children.filter(s=>s!==t.id);r.length===0?e[t.parent]=he({},n,{type:"leaf",children:void 0}):e[t.parent]=he({},n,{children:r})}async function k0(e,t,n){const{apiRef:r,setTreeDataPath:s,processRowUpdate:i,onProcessRowUpdateError:a}=n,l=mo(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 QM(r,i,a);g.queueUpdate(e.id,d,p);const{successful:h,updates:y}=await g.executeAll();return h.length===0?null:y[0]}async function D0(e,t,n,r){const{apiRef:s,setTreeDataPath:i,processRowUpdate:a,onProcessRowUpdateError:l}=r,c=yt(s),u=mo(s),d=Fte(e,c);d.unshift(e);const p=t.length,g=new QM(s,a,l);for(const m of d){const b=u[m.id],w=Qs(m,c).slice(p),S=[...n,...w],P=i(S,b);g.queueUpdate(m.id,b,P)}const{successful:h,updates:y}=await g.executeAll();return h.length===0?[]:y}function Hf(e,t,n,r){if(e[t.id]=he({},t,{parent:n,depth:r}),t.type==="group"){const s=r-t.depth;Nte(t,e,s)}}class $te extends Iu{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=It(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=It(l,s[u]);if(r>d&&c.parent===p.parent){if(u=r-1,p=It(l,s[u]),p&&p.depth!==c.depth)for(;p.depth>c.depth&&u>=0;)u-=1,p=It(l,s[u]);if(u===-1)return null}let g=!1;if(!p)if(r>=s.length&&s.length>0)p=It(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 b=u-1;for(;b>=0;){const C=It(l,s[b]);if(C&&C.depth<c.depth)return null;if(C&&C.depth===c.depth){u=b,h=C;break}b-=1}}if(t.dropPosition==="below"&&c.parent!==h.parent){const b=r-1,C=It(l,s[b]);C&&C.parent===c.parent&&(h=C,g=!0)}if(c.parent!==h.parent)return null;const m=O0(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=yt(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]),he({},l,{rows:he({},l.rows,{tree:he({},l.rows.tree,{[r.parent]:he({},c,{children:u})})})}))}),i.current.publishEvent("rowsSet")}}class Lte extends Iu{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=It(a,n);if(!c||c.type!=="leaf")return null;l||_f("Cross-parent reordering");let u=r;if(u===s.length&&s.length>0&&(u=s.length-1),u<0)return null;const d=It(a,s[u]);if(!d||c.parent===d.parent)return null;const p=O0(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=yt(a),c=l[s.parent],u=Qs(c,l),d=await k0(r,u,n);d&&(a.current.setState(p=>{const g=he({},p.rows.tree);Bf(g,r);const h=g[s.parent],y=[...h.children];y.splice(i,0,r.id),g[s.parent]=he({},h,{children:y});const m=g[s.parent];return Hf(g,r,s.parent,m.depth+1),he({},p,{rows:he({},p.rows,{tree:g})})}),a.current.updateRows([d]),a.current.publishEvent("rowsSet"))}}class Ate extends Iu{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=It(a,n);if(!c||c.type==="footer")return null;l||_f("Drop on leaf reordering");let u=s;if(u===i.length&&i.length>0&&(u=i.length-1),u<0)return null;const d=It(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=yt(i),l=Qs(s,a);let c=[];if(r.type==="leaf"){const u=await k0(r,l,n);if(!u)return;c.push(u)}else{const u=a[r.parent],d=Qs(u,a);if(c=await D0(r,d,l,n),c.length===0)return}i.current.setState(u=>{const d=he({},u.rows.tree);return Bf(d,r),d[s.id]=he({},s,{type:"group",children:[r.id],childrenFromPath:{},groupingField:null,isAutoGenerated:!1,childrenExpanded:!0}),Hf(d,r,s.id,s.depth+1),he({},u,{rows:he({},u.rows,{tree:d})})}),i.current.updateRows(c),i.current.publishEvent("rowsSet")}}class Vte extends Iu{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=It(a,n);if(!u||u.type==="footer")return null;l||_f("Drop on group reordering");let d=s;if(d===i.length&&i.length>0&&(d=i.length-1),d<0)return null;const p=It(a,i[d]);return!p||p.type!=="group"||ZM(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=yt(i),l=Qs(s,a);let c=[];if(r.type==="leaf"){const u=await k0(r,l,n);if(!u)return;c.push(u)}else{const u=a[r.parent],d=Qs(u,a);if(c=await D0(r,d,l,n),c.length===0)return}i.current.setState(u=>{const d=he({},u.rows.tree);Bf(d,r);const p=d[s.id],g=[r.id,...p.children];return d[s.id]=he({},p,{children:g}),Hf(d,r,s.id,s.depth+1),he({},u,{rows:he({},u.rows,{tree:d})})}),i.current.updateRows(c),i.current.publishEvent("rowsSet")}}class _te extends Iu{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=It(a,n);if(!c||c.type!=="group")return null;l||_f("Cross-parent reordering");let u=r;if(u===s.length&&s.length>0&&(u=s.length-1),u<0)return null;const d=It(a,s[u]);if(!d||c.parent===d.parent||ZM(d,c,i))return null;const p=O0(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=yt(a),c=l[s.parent],u=Qs(c,l),d=l[r.parent],p=Qs(d,l),g=await D0(r,p,u,n);g.length>0&&(a.current.setState(h=>{const y=he({},h.rows.tree);Bf(y,r);const m=y[s.parent],b=[...m.children];b.splice(i,0,r.id),y[s.parent]=he({},m,{children:b});const w=y[s.parent].depth+1;return Hf(y,r,s.parent,w),he({},h,{rows:he({},h.rows,{tree:y})})}),a.current.updateRows(g),a.current.publishEvent("rowsSet"))}}const Bte=new kte([new $te,new Lte,new Ate,new Vte,new _te]),Hte=(e,t)=>{const{processRowUpdate:n,onProcessRowUpdateError:r,setTreeDataPath:s}=t,{setRowIndex:i,setRowPosition:a}=bJ(e),l=ue(e,js)===1,c=f.useCallback(async(d,p,g)=>{const h=Jr(e),y=Ui(e),m=yt(e),b=It(e,d),C=It(e,p);if(!b)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(b.type==="footer")throw new Error("MUI X: The row reordering do not support reordering of footer rows.");const w=y[p];if(w===void 0)throw new Error(`MUI X: Target row with id #${p} not found in current view.`);const S=g==="below"?w+1:w,P={sourceRowId:d,dropPosition:g,placeholderIndex:S,sortedFilteredRowIds:h,sortedFilteredRowIndexLookup:y,rowTree:m,apiRef:e,processRowUpdate:n,onProcessRowUpdateError:r,setTreeDataPath:s};return Bte.execute(P)},[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}},zte=(e,t)=>{const n=t.rowsLoadingMode==="client"&&!!t.onRowsScrollEnd,r=fe(()=>{const s=hn(e),i=bs(e),a=e.current.getViewportPageSize(),l={visibleColumns:s,viewportPageSize:a,visibleRowsCount:i.rows.length};e.current.publishEvent("rowsScrollEnd",l)});Nt(e,"rowsScrollEnd",t.onRowsScrollEnd),Pe(e,"rowsScrollEndIntersection",Pn(n,r))},jte=_t(e=>e.columnReorder),JM=Ne(jte,e=>e.dragCol),eO="left",tO="right",Gte=(e,t)=>e.x<=t.x?tO:eO,Wte=(e,t)=>e.x!==t.x||e.y!==t.y,Ute=e=>{const{classes:t}=e;return de({columnHeaderDragging:["columnHeader--dragging"]},ot,t)},qte=e=>he({},e,{columnReorder:{dragCol:""}}),Yte=(e,t)=>{const n=Rn(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=Ute(c),d=Gt();f.useEffect(()=>()=>{clearTimeout(l.current)},[]);const p=f.useCallback((m,b)=>{const C=JM(e);if(!(t.disableColumnReorder||!C)){if(n.debug("End dragging col"),b.preventDefault(),b.stopPropagation(),clearTimeout(l.current),r.current.classList.contains(u.columnHeaderDragging)&&r.current.classList.remove(u.columnHeaderDragging),r.current=null,b.dataTransfer.dropEffect==="none"&&!t.keepColumnPositionIfDraggedOutside)e.current.setColumnIndex(C,i.current),i.current=null;else{const w={column:e.current.getColumn(C),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(C),oldIndex:i.current};e.current.publishEvent("columnOrderChange",w)}e.current.setState(w=>he({},w,{columnReorder:he({},w.columnReorder,{dragCol:""})}))}},[e,t.disableColumnReorder,t.keepColumnPositionIfDraggedOutside,n,u.columnHeaderDragging]),g=f.useCallback((m,b)=>{if(t.disableColumnReorder||m.colDef.disableReorder)return;n.debug(`Start dragging col ${m.field}`),b.stopPropagation(),r.current=b.currentTarget,r.current.classList.add(u.columnHeaderDragging);const C=T=>{r.current.removeEventListener("dragend",C),e.current.publishEvent("columnHeaderDragEndNative",m,T)};r.current.addEventListener("dragend",C),b.dataTransfer&&(b.dataTransfer.effectAllowed="move"),e.current.setState(T=>he({},T,{columnReorder:he({},T.columnReorder,{dragCol:m.field})})),l.current=setTimeout(()=>{r.current.classList.remove(u.columnHeaderDragging)}),i.current=e.current.getColumnIndex(m.field,!1);const w=e.current.getColumnGroupPath(m.field),S=i.current,P=e.current.getAllColumns(),x=e.current.getAllGroupDetails(),M=T=>{const O=P[T].field;return e.current.getColumnGroupPath(O)};let k=null;w.forEach(T=>{x[T]?.freeReordering||(S>0&&M(S-1).includes(T)||S+1<P.length&&M(S+1).includes(T))&&(k=T)}),a.current={};for(let T=0;T<P.length;T+=1){const O=T<=S?T-1:T,I=T<S?T:T+1;if(k!==null){let D=!1;(O>=0&&M(O).includes(k)||I<P.length&&M(I).includes(k))&&(D=!0),D||(a.current[T]=!0)}O>=0&&I<P.length&&M(I).forEach(D=>{M(O).includes(D)&&(w.includes(D)||x[D]?.freeReordering||(a.current[T]=!0))})}},[t.disableColumnReorder,u.columnHeaderDragging,n,e]),h=f.useCallback((m,b)=>{b.preventDefault(),b.stopPropagation()},[]),y=f.useCallback((m,b)=>{const C=JM(e);if(!C)return;n.debug(`Dragging over col ${m.field}`),b.preventDefault(),b.stopPropagation();const w={x:b.clientX,y:b.clientY};if(m.field!==C&&Wte(s.current,w)){const S=e.current.getColumnIndex(m.field,!1),P=e.current.getColumnIndex(m.field,!0),x=e.current.getColumn(m.field),M=e.current.getColumnIndex(C,!1),k=e.current.getVisibleColumns(),T=e.current.getAllColumns(),O=Gte(s.current,w),I=O===eO&&(d?M<S:S<M),D=O===tO&&(d?S<M:M<S);if(I||D){let E,N=0;if(x.disableReorder?I?E=P>0&&!k[P-1].disableReorder:E=P<k.length-1&&!k[P+1].disableReorder:E=!0,a.current[S]){let $,F=S+N;if(I)for($=P>0?k[P-1].field:null;F>0&&T[F].field!==$&&a.current[F];)N-=1,F=S+N;else for($=P+1<k.length?k[P+1].field:null;F<T.length-1&&T[F].field!==$&&a.current[F];)N+=1,F=S+N;(a.current[F]||T[F].field===$)&&(E=!1)}e.current.unstable_applyPipeProcessors("canBeReordered",E,{targetIndex:P})&&e.current.setColumnIndex(C,S+N)}s.current=w}},[e,n,d]);f.useEffect(()=>{if(!t.keepColumnPositionIfDraggedOutside)return()=>{};const m=Qt(e.current.rootElementRef.current),b=C=>{C.dataTransfer&&(C.preventDefault(),C.dataTransfer.dropEffect="move")};return m.addEventListener("dragover",b),()=>{m.removeEventListener("dragover",b)}},[e,t.keepColumnPositionIfDraggedOutside]),Pe(e,"columnHeaderDragStart",g),Pe(e,"columnHeaderDragEnter",h),Pe(e,"columnHeaderDragOver",y),Pe(e,"columnHeaderDragEndNative",p),Pe(e,"cellDragEnter",h),Pe(e,"cellDragOver",y),Nt(e,"columnOrderChange",t.onColumnOrderChange)},nO=he({},Fo,{type:"custom",sortable:!1,filterable:!1,disableColumnMenu:!0,disableReorder:!0,align:"left",width:200,valueGetter:(e,t,n,r)=>{const s=Zo(r,t),i=It(r,s);return i?.type==="group"||i?.type==="leaf"?i.groupingKey:void 0}}),zf={field:Kb,editable:!1,groupable:!1};class Kte{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 ta={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=yt(e.apiRef)[t];if(!n)break;t=n.parent}return!1},isAdjacentPosition:e=>{const t=Ui(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=yt(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=yt(e.apiRef),n=e.targetNode,r=n.children?.[0]?t[n.children[0]]:null;return r?r.depth===e.sourceNode.depth:!1}},Xte=[{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=>ta.isAdjacentPosition(e),isInvalid:()=>!0,message:"Source and target are adjacent"},{name:"to-descendent",applies:e=>ta.isGroupToLeaf(e)||ta.isGroupToGroup(e),isInvalid:e=>{let t=e.targetNode;const n=yt(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=>ta.isGroupToGroup(e)&&ta.isDropAbove(e)&&ta.prevIsLeaf(e),isInvalid:ta.prevBelongsToSource,message:"Previous leaf belongs to source group or its descendants"}],Zte=new Kte(Xte),Qte=(e,t)=>{const n=f.useCallback((i,a)=>{if(e.current.getCellParams(i.id,i.field).colDef.field===Kb&&(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(js(e)===1||!t.treeData)return i;const d=Ui(e),p=Jr(e),g=yt(e),h=d[l],y=g[a],m=g[l],b=h>0?g[p[h-1]]:null,C=h<p.length-1?g[p[h+1]]:null;if(!y||!m)return!1;const w={apiRef:e,sourceNode:y,targetNode:m,prevNode:b,nextNode:C,dropPosition:c,dragDirection:u};let S=Zte.validate(w);return S&&r&&(S=r(w)),S},[e,t.treeData,r]);Ct(e,"isRowReorderValid",s),Pe(e,"cellKeyDown",n)};function El(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}let oo=(function(e){return e.Default="tree-data",e.DataSource="tree-data-source",e})({});const Jte=e=>{const{apiRef:t,rowTree:n,disableChildrenFiltering:r,isRowMatchingFilters:s}=e,i={},a={},l={},c={},u={passingFilterItems:null,passingQuickFilterValues:null},d=(g,h,y)=>{const m=r&&g.depth>0;let b;if(m)b=null;else if(!s||g.type==="footer")b=!0;else{const P=t.current.getRow(g.id);s(P,void 0,u),b=bE([u.passingFilterItems],[u.passingQuickFilterValues],e.filterModel,e.filterValueGetter,e.apiRef,c)}let C=0,w=0;g.type==="group"&&g.children.forEach(P=>{const x=n[P],M=d(x,b??h,y&&!!g.childrenExpanded);w+=M,M>0&&(C+=1)});let S;switch(b){case!0:{S=!0;break}case!1:{S=w>0;break}default:{S=h;break}}return S||(i[g.id]=!1),S?(a[g.id]=C,l[g.id]=w,g.type==="footer"?w:w+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}},Ro=De,F0=tt,ene=e=>{const{classes:t}=e;return de({root:["treeDataGroupingCell"],toggle:["treeDataGroupingCellToggle"]},ot,t)};function oO(e){const{id:t,field:n,formattedValue:r,rowNode:s,hideDescendantCount:i,offsetMultiplier:a=2}=e,l=Ro(),c=F0(),u=ene(l),p=ue(c,AW)[s.id]??0,g=s.childrenExpanded?l.slots.treeDataCollapseIcon:l.slots.treeDataExpandIcon,h=y=>{c.current.setRowChildrenExpansion(t,!s.childrenExpanded),c.current.setCellFocus(t,n),y.stopPropagation()};return v.jsxs("div",{className:u.root,style:{marginLeft:Ie.spacing(s.depth*a)},children:[v.jsx("div",{className:u.toggle,children:p>0&&v.jsx(l.slots.baseIconButton,he({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"&&(oO.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 rO(e){const{colDef:t,onClick:n}=e,r=F0(),s=Ro(),i=Gt(),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(Nn.LEFT),iconStart:v.jsx(s.slots.columnMenuPinLeftIcon,{fontSize:"small"}),children:r.current.getLocaleText("pinToLeft")}),u=v.jsx(s.slots.baseMenuItem,{onClick:a(Nn.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===Nn.RIGHT?Nn.LEFT:Nn.RIGHT,g=p===Nn.RIGHT?"pinToRight":"pinToLeft",h=d===Nn.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"&&(rO.propTypes={colDef:o.object.isRequired,onClick:o.func.isRequired});const N0=_t(e=>e.detailPanel),Js=Ne(N0,e=>e.expandedRowIds),jf=Ne(N0,e=>e.contentCache),R0=Ot(N0,e=>e.heightCache),tne=e=>{const{classes:t,isExpanded:n}=e;return de({root:["detailPanelToggleCell",n&&"detailPanelToggleCell--expanded"]},ot,t)},nne=Ne(Js,(e,t)=>e.has(t));function sO(e){const{id:t,row:n,api:r}=e,s=r.getRowId(n),i=ue({current:r},nne,s),a=Ro(),l=F0(),c={classes:a.classes,isExpanded:i},u=tne(c),d=ue(l,jf),p=f.isValidElement(d[t]),g=i?a.slots.detailPanelCollapseIcon:a.slots.detailPanelExpandIcon;return v.jsx(a.slots.baseIconButton,he({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"&&(sO.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 one=e=>{const{isDraggable:t,classes:n}=e;return de({root:["rowReorderCell",t&&"rowReorderCell--draggable"],placeholder:["rowReorderCellPlaceholder"],icon:["rowReorderIcon"]},ot,n)},rne=xt("svg",{name:"MuiDataGrid",slot:"RowReorderIcon"})({color:Ie.colors.foreground.muted});function iO(e){const t=tt(),n=Ro(),r=ue(t,Un),s=ue(t,$n),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=one(d),g=f.useCallback((w,S)=>P=>{Cl(P)||t.current.getRow(e.id)&&(t.current.publishEvent(w,t.current.getRowParams(e.id),P),S&&S(P))},[t,e.id]),h=f.useCallback(()=>{t.current.rootElementRef?.current?.classList.add(j["root--disableUserSelection"])},[t]),y=f.useCallback(()=>{t.current.rootElementRef?.current?.classList.remove(j["root--disableUserSelection"])},[t]),m=f.useCallback(w=>{y(),t.current.getRow(e.id)&&t.current.publishEvent("rowDragEnd",t.current.getRowParams(e.id),w),l.current.removeEventListener("dragend",m),l.current=null},[t,e.id,y]),b=f.useCallback(w=>{a.current&&(g("rowDragStart")(w),a.current.addEventListener("dragend",m),l.current=a.current)},[g,m]),C=u?{onDragStart:b,onDragOver:g("rowDragOver"),onMouseDown:h,onMouseUp:y}:null;return e.rowNode.type==="footer"?null:v.jsxs("div",he({ref:a,className:p.root,draggable:u},C,{children:[v.jsx(rne,{as:n.slots.rowReorderIcon,ownerState:d,className:p.icon,fontSize:"small"}),v.jsx("div",{className:p.placeholder,children:i})]}))}process.env.NODE_ENV!=="production"&&(iO.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 aO=e=>e.rowNode.type==="footer"||e.rowNode.type==="pinnedRow"?null:v.jsx(iO,he({},e));process.env.NODE_ENV!=="production"&&(aO.displayName="renderRowReorderCell");const sne=Jt(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"),ine=Jt(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"),ane=["operators","item","field","buttonRef","headerFilterMenuRef","disabled","showClearItem","clearFilterItem"];function lO(e){const{operators:t,item:n,field:r,buttonRef:s,headerFilterMenuRef:i,disabled:a=!1,showClearItem:l,clearFilterItem:c}=e,u=El(e,ane),d=dt(),p=dt(),g=Ro(),h=tt(),m=!!(ue(h,cy)===r&&i.current),b=S=>{i.current=S.currentTarget,h.current.showHeaderFilterMenu(r)};if(!g.slots.headerFilterMenu)return null;const C=h.current.getLocaleText("filterPanelOperator"),w=C?String(C):void 0;return v.jsxs(f.Fragment,{children:[v.jsx(g.slots.baseIconButton,he({id:d,ref:s,"aria-label":w,title:w,"aria-controls":p,"aria-expanded":m?"true":void 0,"aria-haspopup":"true",tabIndex:-1,size:"small",onClick:b,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,he({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"&&(lO.propTypes={applyFilterChanges:o.func.isRequired,buttonRef:At,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 lne(e){const t=Ro();return v.jsx(t.slots.baseIconButton,he({tabIndex:-1,"aria-label":"Clear filter",size:"small"},t.slotProps?.baseIconButton,e,{children:v.jsx(t.slots.columnMenuClearIcon,{fontSize:"inherit"})}))}const cne=["colIndex","height","hasFocus","width","headerClassName","colDef","item","headerFilterMenuRef","InputComponentProps","showClearIcon","pinnedPosition","pinnedOffset","style","showLeftBorder","showRightBorder"],une=Z(io,{name:"MuiDataGrid",slot:"ColumnHeaderFilterInput"})({flex:1,marginRight:Ie.spacing(.5),marginBottom:Ie.spacing(-.25),'& input[type="number"], & input[type="date"], & input[type="datetime-local"]':{'&[value=""]:not(:focus)':{color:"transparent"}},[`& .${Wn.input}`]:{fontSize:"14px"},[`.${j["root--densityCompact"]} & .${Wn.input}`]:{paddingTop:Ie.spacing(.5),paddingBottom:Ie.spacing(.5),height:23}}),dne=Z("span",{name:"MuiDataGrid",slot:"ColumnHeaderFilterOperatorLabel"})({flex:1,marginRight:Ie.spacing(.5),color:Ie.colors.foreground.muted,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}),pne=e=>{const{colDef:t,classes:n,showRightBorder:r,showLeftBorder:s,pinnedPosition:i}=e,a={root:["columnHeader","columnHeader--filter",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight","withBorderColor",r&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder",i===mt.LEFT&&"columnHeader--pinnedLeft",i===mt.RIGHT&&"columnHeader--pinnedRight"],input:["columnHeaderFilterInput"],operatorLabel:["columnHeaderFilterOperatorLabel"]};return de(a,ot,n)},fne={string:io,number:io,date:hs,dateTime:hs,boolean:Xb,singleSelect:yf,actions:null,custom:null},$0=Xe((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:y,showLeftBorder:m,showRightBorder:b}=e,C=El(e,cne),w=qn(),S=Gt(),P=ue(w,ol),x=Ro(),M=f.useRef(null),k=st(t,M),T=f.useRef(null),O=f.useRef(null),D=ue(w,rI)===l.field,N=ue(w,cy)===l.field,L=f.useMemo(()=>l.filterOperators?l.filterOperators.filter(re=>re.value!=="isAnyOf"):[],[l.filterOperators]),$=ue(w,gn),F=ue(w,dE),R=f.useMemo(()=>{if(!$?.items.length)return!1;const re=$.items.find(se=>se.field===l.field);return re?!F[re.field]:!1},[l.field,$,F]),B=f.useMemo(()=>L.find(re=>re.value===c.operator)??L[0],[c.operator,L]),_=l.filterable||R?B.InputComponent??fne[l.type]:null,V=f.useCallback(()=>{w.current.deleteFilterItem(c)},[w,c]);let A;l.renderHeaderFilter&&(A=l.renderHeaderFilter(he({},e,{inputRef:T}))),f.useLayoutEffect(()=>{if(s&&!N){let re=M.current.querySelector('[tabindex="0"]');D&&_&&(re=T.current);const se=re||M.current,ae=w.current.getScrollPosition();se?.focus(),w.current.scroll(ae)}},[_,w,s,D,N]);const z=f.useCallback(re=>{if(!(N||Gi(re.key)||R))switch(re.key){case"Escape":D&&w.current.stopHeaderFilterEditMode();break;case"Enter":if(D&&!re.defaultPrevented){w.current.stopHeaderFilterEditMode();break}if(re.metaKey||re.ctrlKey){u.current=O.current,w.current.showHeaderFilterMenu(l.field);break}w.current.startHeaderFilterEditMode(l.field);break;case"Tab":{if(D){const se=P[n+(re.shiftKey?-1:1)]??null;se&&(w.current.startHeaderFilterEditMode(se),w.current.setColumnHeaderFilterFocus(se,re))}break}default:if(D||re.metaKey||re.ctrlKey||re.altKey||re.shiftKey)break;w.current.startHeaderFilterEditMode(l.field);break}},[w,l.field,n,P,u,D,R,N]),G=f.useCallback((re,se)=>ae=>{w.current.publishEvent(re,w.current.getColumnHeaderParams(l.field),ae),se&&se(ae)},[w,l.field]),U=f.useCallback(re=>{s||(T.current?.contains?.(re.target)&&T.current.focus(),w.current.setColumnHeaderFilterFocus(l.field,re))},[w,l.field,s]),X=f.useMemo(()=>({onKeyDown:G("headerFilterKeyDown",z),onClick:G("headerFilterClick"),onMouseDown:G("headerFilterMouseDown",U),onBlur:G("headerFilterBlur")}),[U,z,G]),Y=he({},x,{pinnedPosition:g,colDef:l,showLeftBorder:m,showRightBorder:b}),ee=pne(Y),oe=B.headerLabel??w.current.getLocaleText(`headerFilterOperator${pe(c.operator)}`),K=B.requiresFilterValue===!1,W=c?.value!==void 0||K,J=W||s,q=v.jsx(lO,{operators:L,item:c,field:l.field,disabled:R,applyFilterChanges:w.current.upsertFilterItem,headerFilterMenuRef:u,buttonRef:O,showClearItem:!p&&W,clearFilterItem:V}),ce=p&&W?v.jsx(lne,{onClick:V,disabled:R}):null;return v.jsxs("div",he({className:ie(ee.root,a),style:mu(he({height:r,width:i},y),S,g,h),role:"columnheader","aria-colindex":n+1,"aria-label":A==null?l.headerName??l.field:void 0},C,X,{ref:k,children:[A,A===void 0?v.jsxs(f.Fragment,{children:[K?v.jsxs(f.Fragment,{children:[v.jsx(dne,{className:ee.operatorLabel,children:oe}),ce,q]}):null,_&&!K?v.jsx(une,he({as:_,className:ee.input,apiRef:w,item:c,inputRef:T,applyValue:w.current.upsertFilterItem,onFocus:()=>w.current.startHeaderFilterEditMode(l.field),onBlur:re=>{w.current.stopHeaderFilterEditMode(),re.relatedTarget?.className.includes("columnHeader")||w.current.setState(se=>he({},se,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},isFilterActive:J,headerFilterMenu:q,clearButton:ce,disabled:R||K,tabIndex:-1,slotProps:{root:{size:"small",label:pe(oe),placeholder:""}}},K?{value:""}:{},B?.InputComponentProps,d)):null]}):null]}))});process.env.NODE_ENV!=="production"&&($0.displayName="GridHeaderFilterCell"),process.env.NODE_ENV!=="production"&&($0.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 hne=Tr($0);function cO({open:e,field:t,target:n,applyFilterChanges:r,operators:s,item:i,id:a,labelledBy:l,showClearItem:c,clearFilterItem:u}){const d=tt(),p=De(),g=f.useCallback(()=>{d.current.hideHeaderFilterMenu()},[d]);return n?v.jsx(sl,{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 y=h.value===i.operator,m=h?.headerLabel??d.current.getLocaleText(`headerFilterOperator${pe(h.value)}`);return v.jsx(p.slots.baseMenuItem,{iconStart:y?v.jsx(p.slots.menuItemCheckIcon,{fontSize:"small"}):v.jsx("span",{}),onClick:()=>{r(he({},i,{operator:h.value})),g()},autoFocus:y?e:!1,children:m},`${t}-${h.value}`)})]})}):null}process.env.NODE_ENV!=="production"&&(cO.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:ar});const L0=({id:e,path:t,previousTree:n,tree:r,treeDepths:s,onDuplicatePath:i,isGroupExpandedByDefault:a,defaultGroupingExpansionDepth:l,serverChildrenCount:c,groupsToFetch:u,maxDepth:d})=>{let p=nt;for(let g=0;g<t.length;g+=1){const{key:h,field:y}=t[g],m=y??"__no_field__",b=h??"__no_key__",C=r[p].childrenFromPath?.[m]?.[b.toString()];if(g===t.length-1)if(C==null){let w;c!==void 0&&c!==0?(w={type:"group",id:e,parent:p,path:t.map(P=>P.key),depth:g,isAutoGenerated:!1,groupingKey:h,groupingField:y,children:[],childrenFromPath:{},childrenExpanded:!1,serverChildrenCount:c},qM(w,l,d,a)&&u?.add(e)):w={type:"leaf",id:e,depth:g,parent:p,groupingKey:h},Vf(w,r,s,n)}else{const w=r[C];w.type==="group"&&w.isAutoGenerated?KM({tree:r,previousTree:n,treeDepths:s,node:w,updatedNode:{id:e,isAutoGenerated:!1}}):i?.(C,e,t)}else if(C==null){const w=WM(t.slice(0,g+1));Vf(YM({type:"group",id:w,parent:p,depth:g,isAutoGenerated:!0,groupingKey:h,groupingField:y,children:[],childrenFromPath:{},childrenExpanded:!1},l,d,a,n?.[w]?.childrenExpanded),r,s,n),p=w}else{const w=r[C];if(w.type!=="group"){const S={type:"group",id:w.id,parent:w.parent,depth:w.depth,isAutoGenerated:!1,groupingKey:h,groupingField:y,children:[],childrenFromPath:{},childrenExpanded:!1};r[C]=YM(S,l,d,a,n?.[w.id]?.childrenExpanded)}p=w.id}}},uO=e=>{const t=[],n={[nt]:DP()},r={},s=new Set;for(let i=0;i<e.nodes.length;i+=1){const a=e.nodes[i];t.push(a.id),L0({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 dO=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 Tu{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 Tu(null,null);let n=0;const r=new dO(t[n],null);let s=r;for(;n+1<t.length;){n+=1;const i=new dO(t[n],null);s.next=i,s=i}return new Tu(r,s)}}const gne=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[nt]);const a=Tu.from(s.get(nt));return a.forEach(l=>{const c=s.get(l.data);c?.length&&l.insertAfter(Tu.from(c))}),a.data()},mne=["getColumnsToRender","getPinnedCellOffset","renderContext","leftRenderContext","rightRenderContext","pinnedColumns","visibleColumns","columnPositions"],bne=e=>{const{classes:t}=e;return f.useMemo(()=>de({headerFilterRow:["headerFilterRow"]},ot,t),[t])},yne=e=>{const t=qn(),{headerGroupingMaxDepth:n,hasOtherElementInTabSequence:r}=e,s=ue(t,ZW),i=BM(he({},e,{hasOtherElementInTabSequence:r||s!==null})),{getColumnsToRender:a,getPinnedCellOffset:l,renderContext:c,leftRenderContext:u,rightRenderContext:d,pinnedColumns:p,visibleColumns:g,columnPositions:h}=i,y=El(i,mne),m=f.useRef(null);t.current.register("private",{headerFiltersElementRef:m});const b=f.useRef(null),C=Ro(),w=bne(C),S=!C.headerFilters,P=ue(t,gn),x=ue(t,eu),M=ue(t,Lb),k=ue(t,pG),T=ue(t,Ab),O=ue(t,XW),I=f.useRef(Object.create(null)).current,D=f.useCallback(L=>{const $=P?.items.find(B=>B.field===L.field&&B.operator!=="isAnyOf");if($!=null)return $;const F=I[L.field];if(F!=null)return F;const R=jy(L);return I[L.field]=R,R},[P]),E=L=>{const{renderedColumns:$,firstColumnToRender:F}=a(L),R=[];for(let B=0;B<$.length;B+=1){const _=$[B],V=F+B,A=O?.field===_.field,z=V===0,U=s?.field===_.field||z&&!e.hasOtherElementInTabSequence?0:-1,X=typeof _.headerClassName=="function"?_.headerClassName({field:_.field,colDef:_}):_.headerClassName,Y=D(_),ee=L?.position,oe=l(ee,_.computedWidth,V,h,x,T),K=B,W=$.length,J=Cu(ee,K,C.showColumnVerticalBorder,C.pinnedColumnsSectionSeparator),q=vu(ee,K,W,C.showColumnVerticalBorder,M,C.pinnedColumnsSectionSeparator);R.push(v.jsx(C.slots.headerFilterCell,he({colIndex:V,height:k,width:_.computedWidth,colDef:_,hasFocus:A,tabIndex:U,headerFilterMenuRef:b,headerClassName:X,"data-field":_.field,item:Y,pinnedPosition:ee,pinnedOffset:oe,showLeftBorder:J,showRightBorder:q},C.slotProps?.headerFilterCell),`${_.field}-filter`))}return y.getFillers(L,R,0,!0)},N=()=>S?null:v.jsxs(E0,{ref:m,className:w.headerFilterRow,role:"row","aria-rowindex":n+2,ownerState:C,children:[u&&E({position:mt.LEFT,renderContext:u,maxLastColumn:u.lastColumnIndex}),E({renderContext:c,maxLastColumn:g.length-p.right.length}),d&&E({position:mt.RIGHT,renderContext:d,maxLastColumn:d.lastColumnIndex})]});return process.env.NODE_ENV!=="production"&&(N.displayName="getColumnFiltersRow"),he({},y,{getColumnFiltersRow:N})},vne=["style","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],Cne=Z("div")({flex:1,backgroundColor:Ie.header.background.base}),A0=Xe(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:y,hasOtherElementInTabSequence:m}=t,b=El(t,vne),{getInnerProps:C,getColumnHeadersRow:w,getColumnFiltersRow:S,getColumnGroupHeadersRows:P}=yne({visibleColumns:s,sortColumnLookup:i,filterColumnLookup:a,columnHeaderTabIndexState:l,hasOtherElementInTabSequence:m,columnGroupHeaderTabIndexState:c,columnHeaderFocus:u,columnGroupHeaderFocus:d,headerGroupingMaxDepth:p,columnMenuState:g,columnVisibility:h,columnGroupsHeaderStructure:y});return v.jsxs(I0,he({className:r},b,C(),{ref:n,children:[P(),w(),S(),v.jsx(Cne,{})]}))});process.env.NODE_ENV!=="production"&&(A0.displayName="GridColumnHeaders"),process.env.NODE_ENV!=="production"&&(A0.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 wne=he({},ET,{columnMenuPinningItem:rO}),Sne=he({},IT,{columnMenuPinningItem:{displayOrder:15}}),pO=Xe(function(t,n){return v.jsx(Mf,he({},t,{defaultSlots:wne,defaultSlotProps:Sne,ref:n}))});process.env.NODE_ENV!=="production"&&(pO.displayName="GridProColumnMenu");const Mu=qn,xne=he({},Fo,{type:"custom",field:ao,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=Zo(r,t);return Js(r).has(s)},rowSpanValueGetter:(e,t,n,r)=>Zo(r,t),renderCell:e=>v.jsx(sO,he({},e)),renderHeader:({colDef:e})=>v.jsx("div",{"aria-label":e.headerName})}),Pne=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test",Ene=()=>{};function Ine(e,t,n){const r=f.useRef(null);r.current=t,ht(()=>{if(n===!1||typeof ResizeObserver>"u")return Ene;let s=0;const i=e.current,a=new ResizeObserver(l=>{Pne?s=requestAnimationFrame(()=>{r.current(l)}):r.current(l)});return i&&a.observe(i),()=>{s&&cancelAnimationFrame(s),a.disconnect()}},[e,n])}const Tne=Z("div",{name:"MuiDataGrid",slot:"DetailPanel"})({width:"calc(var(--DataGrid-rowWidth) - var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",backgroundColor:Ie.colors.background.base,overflow:"auto"});function Mne(e){const{rowId:t,height:n,className:r,children:s}=e,i=Mu(),a=f.useRef(null),c=Ro(),u=n==="auto",d=It(i,t);return f.useLayoutEffect(()=>{u&&typeof ResizeObserver>"u"&&i.current.storeDetailPanelHeight(t,a.current.clientHeight)},[i,u,t]),Ine(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(Tne,{ref:a,ownerState:c,role:"presentation",style:{height:n},className:r,children:s})}const One=()=>de({detailPanel:["detailPanel"]},ot,{});function kne(e){return Ro().getDetailPanelContent?f.createElement(Dne,e):null}function Dne({virtualScroller:e}){const t=Mu(),n=One(),{setPanels:r}=e,s=ue(t,Js),i=ue(t,jf),a=ue(t,R0),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(Mne,{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 Fne=()=>de({root:["pinnedRows"]},ot,{});function Nne({position:e,virtualScroller:t}){const n=Fne(),r=qn(),i=ue(r,_i)[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},yt(r));return v.jsx("div",{className:ie(n.root,j[`pinnedRows--${e}`]),role:"presentation",children:c})}const Rne=he({},{columnMenuPinRightIcon:sne,columnMenuPinLeftIcon:ine}),$ne=he({},xte,Rne,{columnMenu:pO,columnHeaders:A0,detailPanels:kne,headerFilterCell:hne,headerFilterMenu:cO,pinnedRows:Nne}),Lne=()=>{const e=gJ(),n=Ro().treeData?{role:"treegrid"}:{};return he({},e,n)},Ane=e=>{const t=Mu(),n=Ro(),r=mJ(),s=ue(t,al),i=ue(t,LW),a=ue(t,VW);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===nt?s:i[l.parent],u["aria-posinset"]=a[l.id]),u},[n.treeData,e,s,i,a,r])},Vne=(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={},he({},e,{pinnedColumns:r})},_ne=(e,t)=>{const n=ue(e,ji),r=f.useCallback((m,b)=>{const C=rl(e);if(!b.colIndex||C.left.length===0&&C.right.length===0)return m;const w=hn(e),S=eu(e),P=Us(e),x=e.current.virtualScrollerRef.current.clientWidth,M=Math.abs(e.current.virtualScrollerRef.current.scrollLeft),k=w[b.colIndex].computedWidth,T=P[b.colIndex],O=P[C.left.length],I=S-P[P.length-C.right.length],D=T+k;if(D-(x-I)>M){const E=D-(x-I);return he({},m,{left:E})}if(T<M+O){const E=T-O;return he({},m,{left:E})}return m},[e]),s=f.useCallback((m,b)=>t.disableColumnPinning||b.pinnable===!1?m:[...m,"columnMenuPinningItem"],[t.disableColumnPinning]),i=f.useCallback((m,{targetIndex:b})=>{const C=rl(e);if(C.left.length===0&&C.right.length===0)return m;if(C.left.length>0&&b<C.left.length)return!1;if(C.right.length>0){const S=hn(e).length-C.right.length;return b>=S?!1:m}return m},[e]),a=f.useCallback((m,b)=>{const C=ji(e);return!b.exportOnlyDirtyModels||t.pinnedColumns!=null||t.initialState?.pinnedColumns!=null||(C.left??[]).length>0||(C.right??[]).length>0?he({},m,{pinnedColumns:C}):m},[e,t.pinnedColumns,t.initialState?.pinnedColumns]),l=f.useCallback((m,b)=>{const C=b.stateToRestore.pinnedColumns;return C!=null&&fO(e,C),m},[e]);Ct(e,"scrollToIndexes",r),Ct(e,"columnMenu",s),Ct(e,"canBeReordered",i),Ct(e,"exportState",a),Ct(e,"restoreState",l),e.current.registerControlState({stateId:"pinnedColumns",propModel:t.pinnedColumns,propOnChange:t.onPinnedColumnsChange,stateSelector:ji,changeEvent:"pinnedColumnsChange"});const c=f.useCallback((m,b)=>{if(e.current.isColumnPinned(m)===b)return;const C=b===Nn.RIGHT?Nn.LEFT:Nn.RIGHT,w={[b]:[...n[b]||[],m],[C]:(n[C]||[]).filter(S=>S!==m)};e.current.setPinnedColumns(w)},[e,n]),u=f.useCallback(m=>{e.current.setPinnedColumns({left:(n.left||[]).filter(b=>b!==m),right:(n.right||[]).filter(b=>b!==m)})},[e,n.left,n.right]),d=f.useCallback(()=>ji(e),[e]),p=f.useCallback(m=>{fO(e,m),e.current.requestPipeProcessorsApplication("hydrateColumns")},[e]),g=f.useCallback(m=>(n.left||[]).includes(m)?Nn.LEFT:(n.right||[]).includes(m)?Nn.RIGHT:!1,[n.left,n.right]);rt(e,{pinColumn:c,unpinColumn:u,getPinnedColumns:d,setPinnedColumns:p,isColumnPinned:g},"public"),Pe(e,"columnOrderChange",m=>{if(!e.current.caches.columnPinning.orderedFieldsBeforePinningColumns)return;const{column:b,targetIndex:C,oldIndex:w}=m,S=C>w?1:-1,x=mr(e)[C-S],M=[...e.current.caches.columnPinning.orderedFieldsBeforePinningColumns];let k=M.findIndex(I=>I===b.field),T=k+S;const O=M.findIndex(I=>I===x);for(;S>0?k<O:k>O;){for(;e.current.isColumnPinned(M[T]);)T+=S;const I=M[k];M[k]=M[T],M[T]=I,k=T,T=k+S}e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=M}),f.useEffect(()=>{t.pinnedColumns&&e.current.setPinnedColumns(t.pinnedColumns)},[e,t.pinnedColumns])};function fO(e,t){e.current.setState(n=>he({},n,{pinnedColumns:t}))}const Bne=(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=he({},l,{columns:a});const c=JG(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],b=[...a.orderedFields];r.current.forEach(w=>{if(!g.includes(w)&&a.lookup[w]){const S=h.indexOf(w);p[S]=w,m[S]=w,b.splice(b.indexOf(w),1)}}),g.forEach(w=>{let S=h.indexOf(w);if((S===-1||S>=m.length)&&(S=a.orderedFields.indexOf(w)),m[S]!==null)for(S=0;m[S]!==null;)S+=1;p[S]=w,m[S]=w,b.splice(b.indexOf(w),1)});let C=0;b.forEach(w=>{for(;m[C]!==null;)C+=1;m[C]=w,p[C]=w}),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 y=p.filter(m=>!u.includes(m)&&!d.includes(m));return he({},a,{orderedFields:[...u,...y,...d]})},[e,n]);Ct(e,"hydrateColumns",s);const i=f.useCallback((a,l)=>e.current.isColumnPinned(l),[e]);Ct(e,"isColumnPinned",i)};function Hne(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:rf.filteredRowsLookup,filteredChildrenCountLookup:t,filteredDescendantCountLookup:rf.filteredDescendantCountLookup}}function zne(e){return Hi(e,nt,!1)}function jne(e,t){return t.updates.type!=="full"||!t.previousTree?.[e]||t.previousTree[e].depth<1||!("path"in t.previousTree[e])?[]:t.previousTree[e].path||[]}const Gf=_t(e=>e.dataSource);Ne(Gf,e=>e.loading);const Gne=Ne(Gf,(e,t)=>e.loading[t]??!1),Wne=Ne(Gf,e=>e.errors),Une=Ne(Gf,(e,t)=>e.errors[t]),hO=e=>{const{classes:t}=e;return de({root:["treeDataGroupingCell"],toggle:["treeDataGroupingCellToggle"],loadingContainer:["treeDataGroupingCellLoadingContainer"]},ot,t)};function qne(e){const t=Mu(),n=Ro(),r=hO(n),{rowNode:s,id:i,field:a,descendantCount:l}=e,c=ue(t,Gne,i),u=ue(t,Une,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,he({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 Yne(e){const{id:t,field:n,formattedValue:r,rowNode:s,hideDescendantCount:i,offsetMultiplier:a=2}=e,l=Ro(),c=Mu(),u=ue(c,mG,t),d=hO(l);let p=0;return u&&(p=l.dataSource?.getChildrenCount?.(u)??0),v.jsxs("div",{className:d.root,style:{marginLeft:Ie.spacing(s.depth*a)},children:[v.jsx("div",{className:d.toggle,children:v.jsx(qne,{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 Kne=["hideDescendantCount"],Xne=(e,t)=>{const n=f.useCallback(()=>{e.current.setStrategyAvailability(Co.RowTree,oo.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:oo.DataSource,fields:[]};d=u(m)}else d=u;const p=d??{},{hideDescendantCount:g}=p,h=El(p,Kne),y=he({},nO,{renderCell:m=>v.jsx(Yne,he({},m,{hideDescendantCount:g})),headerName:e.current.getLocaleText("treeDataGroupingHeaderName")});return he({},y,h,zf)},[e,t.groupingColDef]),s=f.useCallback(u=>{if(!t.dataSource)return u;const d=zf.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=y=>{const m=u.updates.groupKeys??jne(y,u),b=p(u.dataRowIdToModelLookup[y]);return{id:y,path:[...m,d(u.dataRowIdToModelLookup[y])].map(C=>({key:C,field:null})),serverChildrenCount:b}},h=(y,m,b)=>{throw new Error(["MUI X: The values returned by `getGroupKey` for all the sibling rows should be unique.",`The rows with id #${y} and #${m} have the same.`,`Path: ${JSON.stringify(b.map(C=>C.key))}.`].join(`
|
|
414
|
-
`))};return u.updates.type==="full"?uO({previousTree:u.previousTree,nodes:u.updates.rows.map(g),defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:oo.DataSource,onDuplicatePath:h}):EO({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:oo.DataSource})},[t.dataSource,t.defaultGroupingExpansionDepth,t.isGroupExpandedByDefault]),a=f.useCallback(()=>{const u=yt(e);return Hne(u)},[e]),l=f.useCallback(()=>{const u=yt(e);return zne(u)},[e]);Ct(e,"hydrateColumns",s),wo(e,oo.DataSource,"rowTreeCreation",i),wo(e,oo.DataSource,"filtering",a),wo(e,oo.DataSource,"sorting",l),wo(e,oo.DataSource,"visibleRowsLookupCreation",XM),gs(()=>{n()});const c=f.useRef(!0);f.useEffect(()=>{c.current?c.current=!1:n()},[n])},Zne=new Set,Qne=(e,t)=>he({},e,{detailPanel:{heightCache:{},expandedRowIds:t.detailPanelExpandedRowIds??t.initialState?.detailPanel?.expandedRowIds??Zne}});function gO(e,t,n,r){if(typeof t!="function")return{};const s=Vi(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 Jne=(e,t)=>{const n=f.useCallback((C,w)=>{if(C.field!==ao||t.getDetailPanelContent==null)return;const P=jf(e)[C.id];f.isValidElement(P)&&w.target!==w.currentTarget&&e.current.toggleDetailPanel(C.id)},[e,t.getDetailPanelContent]),r=f.useCallback((C,w)=>{t.getDetailPanelContent!=null&&C.field===ao&&w.key===" "&&e.current.toggleDetailPanel(C.id)},[e,t.getDetailPanelContent]);Pe(e,"cellClick",n),Pe(e,"cellKeyDown",r),e.current.registerControlState({stateId:"detailPanels",propModel:t.detailPanelExpandedRowIds,propOnChange:t.onDetailPanelExpandedRowIdsChange,stateSelector:Js,changeEvent:"detailPanelsExpandedRowIdsChange"});const s=f.useCallback(C=>{if(t.getDetailPanelContent==null)return;const S=jf(e)[C];if(!f.isValidElement(S))return;const P=e.current.getExpandedDetailPanels(),x=new Set(P);P.has(C)?x.delete(C):x.add(C),e.current.setExpandedDetailPanels(x)},[e,t.getDetailPanelContent]),i=f.useCallback(()=>Js(e),[e]),a=f.useCallback(C=>{e.current.setState(w=>he({},w,{detailPanel:he({},w.detailPanel,{expandedRowIds:C})})),e.current.requestPipeProcessorsApplication("rowHeight")},[e]),l=f.useCallback((C,w)=>{const S=R0(e);!S[C]||S[C].height===w||(e.current.setState(P=>he({},P,{detailPanel:he({},P.detailPanel,{heightCache:he({},S,{[C]:he({},S[C],{height:w})})})})),e.current.requestPipeProcessorsApplication("rowHeight"))},[e]),c={toggleDetailPanel:s,getExpandedDetailPanels:i,setExpandedDetailPanels:a},u={storeDetailPanelHeight:l};rt(e,c,"public"),rt(e,u,"private"),f.useEffect(()=>{t.detailPanelExpandedRowIds&&Js(e)!==t.detailPanelExpandedRowIds&&e.current.setExpandedDetailPanels(t.detailPanelExpandedRowIds)},[e,t.detailPanelExpandedRowIds]);const d=f.useCallback(()=>{t.getDetailPanelContent&&e.current.setState(C=>he({},C,{detailPanel:he({},C.detailPanel,gO(e,t.getDetailPanelContent,t.getDetailPanelHeight,C.detailPanel.heightCache))}))},[e,t.getDetailPanelContent,t.getDetailPanelHeight]);Pe(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=>he({},C,{detailPanel:he({},C.detailPanel,gO(e,t.getDetailPanelContent,t.getDetailPanelHeight,C.detailPanel.heightCache))})),p.current=t.getDetailPanelContent,g.current=t.getDetailPanelHeight)},[e,t.getDetailPanelContent,t.getDetailPanelHeight]),y=f.useCallback((C,w)=>{const S=Js(e);if(!S||!S.has(w.id))return C.detail=0,C;h();const P=R0(e);return C.detail=P[w.id]?.height??0,C},[e,h]),m=t.getDetailPanelContent!==void 0;Ct(e,"rowHeight",y,m);const b=f.useRef(!0);b.current&&h(),f.useEffect(()=>{b.current||h(),b.current=!1},[e,h])},eoe=(e,t)=>{const n=f.useCallback(s=>{const i=he({},xne,{headerName:e.current.getLocaleText("detailPanelToggle")}),a=!!t.getDetailPanelContent,l=s.lookup[ao]!=null;return a&&!l?(s.lookup[ao]=i,s.orderedFields=[ao,...s.orderedFields]):!a&&l?(delete s.lookup[ao],s.orderedFields=s.orderedFields.filter(c=>c!==ao)):a&&l&&(s.lookup[ao]=he({},i,s.lookup[ao]),t.columns.some(c=>c.field===ao)||(s.orderedFields=[ao,...s.orderedFields.filter(c=>c!==ao)])),s},[e,t.columns,t.getDetailPanelContent]),r=f.useCallback((s,i)=>t.getDetailPanelContent==null||!Js(e).has(i)?s:[...s,j["row--detailPanelExpanded"]],[e,t.getDetailPanelContent]);Ct(e,"hydrateColumns",n),Ct(e,"rowClassName",r)},V0=he({},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:aO,rowSpanValueGetter:(e,t,n,r)=>Zo(r,t)}),mO={previousTargetId:null,dragDirection:null,previousDropPosition:null},Wf=5,Uf={rowId:null},toe=e=>{const{classes:t}=e;return de({rowDragging:["row--dragging"],rowBeingDragged:["row--beingDragged"]},ot,t)},noe=e=>he({},e,{rowReorder:{isActive:!1}}),ooe=(e,t)=>{const n=Rn(e,"useGridRowReorder"),r=ue(e,Un),s=f.useRef(null),i=f.useRef(null),a=f.useRef(void 0),l={classes:t.classes},c=toe(l),[u,d]=f.useState(""),p=f.useRef(Uf),g=On(),h=f.useRef(mO),y=f.useRef({targetRowId:null,targetRowIndex:null,dropPosition:null});f.useEffect(()=>()=>{clearTimeout(a.current)},[]);const m=f.useMemo(()=>!t.rowReordering||!!r.length,[t.rowReordering,r]),b=f.useCallback(O=>{const D=(t.treeData?Dte(O.target):O.target).getBoundingClientRect(),E=Math.floor(O.clientY-D.top);if(t.treeData){const L=D.height*.2,$=D.height*.8;return E<L?"above":E>$?"below":"inside"}const N=D.height/2;return E<N?"above":"below"},[t.treeData]),C=f.useCallback((O,I)=>{if(O){const D=e.current.rootElementRef?.current?.querySelector(`[data-id="${O}"]`);D&&(I?D.classList.add(c.rowBeingDragged):D.classList.remove(c.rowBeingDragged))}},[e,c.rowBeingDragged]),w=f.useCallback(async O=>{const I=e.current.rootElementRef?.current;if(!I)return;const D=I.querySelectorAll("[data-id]");if(!D.length)return;const E=Array.from(D),N=new Map;E.forEach(L=>{const $=L.getAttribute("data-id");$&&N.set($,L.getBoundingClientRect())}),await O(),requestAnimationFrame(()=>{const L=I.querySelectorAll("[data-id]"),$=[];L.forEach(F=>{const R=F.getAttribute("data-id");if(!R)return;const B=N.get(R);if(!B)return;const _=F.getBoundingClientRect(),V=B.top-_.top;if(Math.abs(V)>1){const A=F.animate([{transform:`translateY(${V}px)`},{transform:"translateY(0)"}],{duration:200,easing:"ease-in-out",fill:"forwards"});$.push(A)}}),$.length>0&&Promise.allSettled($.map(F=>F.finished)).then(()=>{})})},[e]),S=f.useCallback((O,I)=>{const D=$n(e);if(I.dataTransfer.effectAllowed="copy",m||Object.keys(D).length!==0)return;p.current&&(g.clear(),p.current=Uf),n.debug(`Start dragging row ${O.id}`),I.stopPropagation(),e.current.setState(N=>he({},N,{rowReorder:he({},N.rowReorder,{isActive:!0,draggedRowId:O.id})})),s.current=I.currentTarget,s.current.classList.add(c.rowDragging),d(O.id),C(O.id,!0),a.current=setTimeout(()=>{s.current.classList.remove(c.rowDragging)});const E=Ui(e);i.current=E[O.id],e.current.setCellFocus(O.id,V0.field)},[e,m,n,c.rowDragging,C,g]),P=f.useCallback((O,I)=>{if(u==="")return;const D=It(e,O.id),E=It(e,u);if(!E||!D||D.type==="footer"||D.type==="pinnedRow"||!I.target)return;n.debug(`Dragging over row ${O.id}`),I.preventDefault(),I.stopPropagation(),p.current&&(p.current.rowId!==O.id||I.clientY>p.current.clientY+Wf||I.clientY<p.current.clientY-Wf||I.clientX>p.current.clientX+Wf||I.clientX<p.current.clientX-Wf)&&(g.clear(),p.current=Uf);const N=b(I);if(D.type==="group"&&!D.childrenExpanded&&!p.current.rowId&&D.id!==E.id&&(N==="inside"||D.depth<E.depth)){g.start(500,()=>{const B=It(e,O.id);e.current.setRowChildrenExpansion(O.id,!B.childrenExpanded)}),p.current={rowId:O.id,clientY:I.clientY,clientX:I.clientX};return}const L=Ui(e),$=L[O.id],F=L[u],R={dragDirection:$<F?"up":"down",previousTargetId:O.id,previousDropPosition:N};if(h.current.previousTargetId!==O.id||h.current.previousDropPosition!==N){const B=$===F,_=N==="above"&&$===F+1||N==="below"&&$===F-1;e.current.unstable_applyPipeProcessors("isRowReorderValid",!1,{sourceRowId:u,targetRowId:O.id,dropPosition:N,dragDirection:R.dragDirection})||_||B?(y.current={targetRowId:O.id,targetRowIndex:$,dropPosition:N},e.current.setState(A=>he({},A,{rowReorder:he({},A.rowReorder,{dropTarget:{rowId:O.id,position:N}})}))):(y.current={targetRowId:null,targetRowIndex:null,dropPosition:null},e.current.setState(A=>he({},A,{rowReorder:he({},A.rowReorder,{dropTarget:void 0})}))),h.current=R}y.current.targetRowId===null?I.dataTransfer.dropEffect="none":I.dataTransfer.dropEffect="copy"},[u,e,n,g,b]),x=f.useCallback(async(O,I)=>{const D=$n(e);if(u===""||m||Object.keys(D).length!==0)return;p.current&&(g.clear(),p.current=Uf),n.debug("End dragging row"),I.preventDefault(),I.stopPropagation(),clearTimeout(a.current),s.current=null;const E=h.current.dragDirection;if(h.current=mO,!I.dataTransfer||I.dataTransfer.dropEffect==="none"){y.current={targetRowId:null,targetRowIndex:null,dropPosition:null},i.current=null,d(""),C(u,!1),e.current.setState(N=>he({},N,{rowReorder:{isActive:!1,draggedRowId:null}}));return}if(y.current.targetRowIndex!==null&&y.current.targetRowId!==null)if(e.current.unstable_applyPipeProcessors("isRowReorderValid",!1,{sourceRowId:u,targetRowId:y.current.targetRowId,dropPosition:y.current.dropPosition,dragDirection:E}))try{const L=yt(e),$=It(e,u);if(!$)throw new Error(`MUI X: No row node found for id #${u}`);const F=$.parent,B=L[F].children.indexOf(u)??i.current;await w(async()=>{await e.current.setRowPosition(u,y.current.targetRowId,y.current.dropPosition);const _=yt(e),V=_[u];if(!V)throw new Error(`MUI X: Row node for id #${u} not found after move`);const A=V.parent,G=_[A].children.indexOf(u),U={row:e.current.getRow(u),oldIndex:B,targetIndex:G,oldParent:F===nt?null:F,newParent:A===nt?null:A};C(u,!1),e.current.setState(X=>he({},X,{rowReorder:{isActive:!1,draggedRowId:null}})),e.current.publishEvent("rowOrderChange",U)})}catch{C(u,!1),e.current.setState($=>he({},$,{rowReorder:{isActive:!1,draggedRowId:null}}))}else C(u,!1),e.current.setState(L=>he({},L,{rowReorder:he({},L.rowReorder,{dropTarget:void 0})}));y.current={targetRowId:null,targetRowIndex:null,dropPosition:null},d("")},[e,u,m,n,C,g,w]),M=t.isValidRowReorder,k=f.useCallback((O,{sourceRowId:I,targetRowId:D,dropPosition:E,dragDirection:N})=>{if(js(e)>1)return O;const L=Ui(e),$=L[D],F=L[I];if(E==="above"&&$===F+1||E==="below"&&$===F-1||F===$)return!1;if(M){const B=Jr(e),_=yt(e),V=_[I],A=_[D],z=$>0?_[B[$-1]]:null,G=$<B.length-1?_[B[$+1]]:null;if(!M({apiRef:e,sourceNode:V,targetNode:A,prevNode:z,nextNode:G,dropPosition:E,dragDirection:N}))return!1}return!0},[e,M]);Ct(e,"isRowReorderValid",k),Pe(e,"rowDragStart",S),Pe(e,"rowDragOver",P),Pe(e,"rowDragEnd",x),Pe(e,"cellDragOver",P),Nt(e,"rowOrderChange",t.onRowOrderChange);const T=f.useCallback(O=>{e.current.setState(I=>he({},I,{rowReorder:he({},I.rowReorder,{isActive:O})}))},[e]);rt(e,{setRowDragActive:T},"private")},roe=e=>{const{classes:t}=e;return f.useMemo(()=>de({rowReorderCellContainer:["rowReorderCellContainer"],columnHeaderReorder:["columnHeaderReorder"]},ot,t),[t])},soe=(e,t)=>{const n={classes:t.classes},r=roe(n),s=f.useCallback(i=>{const a=he({},V0,{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]=he({},a,i.lookup[a.field]),t.columns.some(u=>u.field===V0.field)||(i.orderedFields=[a.field,...i.orderedFields.filter(u=>u!==a.field)])),i},[e,r,t.columns,t.rowReordering]);Ct(e,"hydrateColumns",s)};function bO(e,t){const n={topIds:[],bottomIds:[],idLookup:{}};return e?.top?.forEach(r=>{const s=el(r,t);n.topIds.push(s),n.idLookup[s]=r}),e?.bottom?.forEach(r=>{const s=el(r,t);n.bottomIds.push(s),n.idLookup[s]=r}),n}const ioe=(e,t,n)=>(n.current.caches.pinnedRows=bO(t.pinnedRows,t.getRowId),he({},e,{rows:he({},e.rows,{additionalRowGroups:he({},e.rows?.additionalRowGroups,{pinnedRows:{top:[],bottom:[]}})})})),aoe=(e,t)=>{const n=f.useCallback(s=>{e.current.caches.pinnedRows=bO(s,t.getRowId),e.current.requestPipeProcessorsApplication("hydrateRows")},[e,t.getRowId]);rt(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 yO({groupingParams:e,rowModel:t,rowId:n,position:r,apiRef:s,isAutoGenerated:i}){const a=he({},e.dataRowIdToModelLookup),l=he({},e.tree),c=he({},e.treeDepths);Vf({type:"pinnedRow",id:n,depth:0,parent:nt,isAutoGenerated:i},l,c,null),a[n]=t,s.current.caches.rows.dataRowIdToModelLookup[n]=he({},t);const d=e.additionalRowGroups?.pinnedRows||{},p={id:n,model:t};return e.additionalRowGroups?.pinnedRows?.[r]?.includes(p)?he({},e,{dataRowIdToModelLookup:a,tree:l,treeDepths:c}):he({},e,{dataRowIdToModelLookup:a,tree:l,treeDepths:c,additionalRowGroups:he({},e.additionalRowGroups,{pinnedRows:he({},d,{[r]:[...d[r]||[],p]})})})}const loe=e=>{const t=f.useRef(null),n=f.useCallback(r=>{const s=e.current.caches.pinnedRows||{},i=t.current;t.current=s;let a=he({},r,{additionalRowGroups:he({},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=yO({groupingParams:a,rowModel:s.idLookup[l],rowId:l,position:"top",apiRef:e,isAutoGenerated:!1})}),s.bottomIds?.forEach(l=>{a=yO({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[nt];a.tree[nt]=he({},c,{children:c.children.filter(l)}),a.dataRowIds=a.dataRowIds.filter(l)}return a},[e]);Ct(e,"hydrateRows",n)},vO=({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=It(e,i[a].id)?.type==="skeletonRow",d=It(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},coe=(e,t)=>{const n=ue(e,Un),r=ue(e,gn),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=bs(e,{pagination:t.pagination,paginationMode:t.paginationMode}),g=vO({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=ml(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=ml(e),p={firstRowToRender:d.firstRowIndex,lastRowToRender:d.lastRowIndex,sortModel:n,filterModel:u};e.current.publishEvent("fetchRows",p)},[e,i,n]);Pe(e,"renderedRowsIntervalChange",a),Pe(e,"sortModelChange",l),Pe(e,"filterModelChange",c),Nt(e,"fetchRows",t.onFetchRows)},CO="auto-generated-skeleton-row-root",uoe=e=>`${CO}-${e}`,doe=(e,t)=>{const n=f.useCallback(r=>{const s=r.tree[nt];if(t.rowsLoadingMode!=="server"||!t.rowCount||s.children.length>=t.rowCount)return r;const i=he({},r.tree),a=[...s.children];for(let l=0;l<t.rowCount-s.children.length;l+=1){const c=uoe(l);a.push(c);const u={type:"skeletonRow",id:c,parent:nt,depth:0};i[c]=u}return i[nt]=he({},s,{children:a}),he({},r,{tree:i})},[t.rowCount,t.rowsLoadingMode]);Ct(e,"hydrateRows",n)};var na=(function(e){return e[e.VIEWPORT=0]="VIEWPORT",e[e.SCROLL_END=1]="SCROLL_END",e})(na||{});const poe={firstRowToRender:0,lastRowToRender:0},wO=e=>`${CO}-${e}`,foe=(e,t)=>{const n=f.useCallback(()=>{e.current.setStrategyAvailability(Co.DataSource,lo.LazyLoading,t.dataSource&&t.lazyLoading?()=>!0:()=>!1)},[e,t.lazyLoading,t.dataSource]),[r,s]=f.useState(!1),i=f.useRef(poe),a=f.useRef(0),l=f.useRef(null),c=f.useRef(!1),u=f.useRef(null),d=f.useCallback(D=>{e.current.dataSource.fetchRows(nt,D)},[e]),p=f.useMemo(()=>vr(d,0),[d]),g=f.useCallback(D=>{if(typeof D.start!="number")return D;const E=En(e);return he({},D,{start:D.start-D.start%E.pageSize,end:D.end+E.pageSize-D.end%E.pageSize-1})},[e]),h=f.useCallback(()=>{e.current.setLoading(!0),e.current.dataSource.cache.clear(),c.current=!0,a.current=0;const D=En(e),E=Un(e),N=gn(e),L={start:0,end:D.pageSize-1,sortModel:E,filterModel:N};d(L)},[e,d]),y=f.useCallback((D,E)=>{if(D===na.VIEWPORT&&E===na.SCROLL_END){h();return}const $=[...e.current.state.rows.tree[nt].children],F=e.current.state.pagination.rowCount;$.length>F&&h()},[e,h]),m=f.useCallback(()=>{const D=e.current.state.rows.tree,E=D[nt],N=[...E.children],L=e.current.state.pagination.rowCount,$=N.length;if($===0)return;const F=g({start:i.current.firstRowToRender,end:i.current.lastRowToRender});let R=!1;const B=i.current.firstRowToRender===0&&i.current.lastRowToRender===0;for(let _=0;_<$&&!B;_+=1){if(F.start<=_&&_<=F.end||D[N[_]]?.type==="skeletonRow"||D[N[_]]?.id===u.current)continue;const V=D[N[_]].id,A={type:"skeletonRow",id:V,parent:nt,depth:0};D[V]=A,R=!0}if(l.current===na.VIEWPORT)for(let _=0;_<L-$;_+=1){const V=wO(_+$);N.push(V);const A={type:"skeletonRow",id:V,parent:nt,depth:0};D[V]=A,R=!0}R&&(D[nt]=he({},E,{children:N}),e.current.setState(_=>he({},_,{rows:he({},_.rows,{tree:D})}),"addSkeletonRows"))},[e,g]),b=f.useCallback(D=>{const E=D===-1?na.SCROLL_END:na.VIEWPORT;l.current!==null&&y(l.current,E),l.current!==E&&(l.current=E)},[y]),C=f.useCallback(D=>{if("error"in D)return;const{response:E,fetchParams:N}=D,L=e.current.state.pagination.rowCount,$=e.current.state.rows.tree,F=e.current.state.rows.dataRowIdToModelLookup;if((E.rowCount!==void 0||L===void 0)&&e.current.setRowCount(E.rowCount===void 0?-1:E.rowCount),c.current&&D.fetchParams.start===0)e.current.scroll({top:0}),e.current.setRows(E.rows);else{const R=$[nt],B=[...R.children],_=Jb(e),V=typeof N.start=="string"?Math.max(_.indexOf(N.start),0):N.start;let A=0;E.rows.forEach(z=>{const G=Zo(e,z);if($[G]||F[G]){const U=B.indexOf(G);if(U!==-1){const X=wO(U);B[U]=X,$[X]={type:"skeletonRow",id:X,parent:nt,depth:0}}delete $[G],delete F[G],A+=1}}),A>0&&($[nt]=he({},R,{children:B}),e.current.setState(z=>he({},z,{rows:he({},z.rows,{tree:$,dataRowIdToModelLookup:F})}))),e.current.unstable_replaceRows(V,E.rows)}c.current=!1,l.current===null&&b(e.current.state.pagination.rowCount),m(),e.current.setLoading(!1),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:D.fetchParams,response:E},!1),e.current.requestPipeProcessorsApplication("hydrateRows")},[e,b,m]),w=f.useCallback(()=>{c.current||l.current===null||(b(e.current.state.pagination.rowCount),m(),e.current.requestPipeProcessorsApplication("hydrateRows"))},[e,b,m]),S=fe(()=>{if(c.current||l.current!==na.SCROLL_END)return;const D=ml(e);if(a.current>=D.lastRowIndex)return;a.current=D.lastRowIndex;const E=En(e),N=Un(e),L=gn(e),$={start:D.lastRowIndex,end:D.lastRowIndex+E.pageSize-1,sortModel:N,filterModel:L};e.current.setLoading(!0),d(g($))}),P=f.useCallback(D=>{if(c.current)return;const E=Un(e),N=gn(e),L={start:D.firstRowIndex,end:D.lastRowIndex-1,sortModel:E,filterModel:N};if(i.current.firstRowToRender===D.firstRowIndex&&i.current.lastRowToRender===D.lastRowIndex)return;i.current={firstRowToRender:D.firstRowIndex,lastRowToRender:D.lastRowIndex};const $=bs(e),F=vO({apiRef:e,visibleRows:$.rows,range:{firstRowIndex:D.firstRowIndex,lastRowIndex:D.lastRowIndex-1}});F&&(L.start=F.firstRowIndex,L.end=F.lastRowIndex,d(g(L)))},[e,g,d]),x=f.useMemo(()=>bI(P,t.lazyLoadingRequestThrottleMs),[t.lazyLoadingRequestThrottleMs,P]);f.useEffect(()=>()=>{x.clear()},[x]);const M=f.useCallback(D=>{c.current=!0,x.clear(),a.current=0;const E=En(e),N=gn(e),L={start:0,end:E.pageSize-1,sortModel:D,filterModel:N};e.current.setLoading(!0),p(L)},[e,p,x]),k=f.useCallback(D=>{c.current=!0,x.clear(),a.current=0;const E=En(e),N=Un(e),L={start:0,end:E.pageSize-1,sortModel:N,filterModel:D};e.current.setLoading(!0),p(L)},[e,p,x]),T=f.useCallback(D=>{u.current=D.id},[]),O=f.useCallback(()=>{u.current=null},[]),I=f.useCallback(()=>{s(e.current.getActiveStrategy(Co.DataSource)===lo.LazyLoading)},[e]);wo(e,lo.LazyLoading,"dataSourceRowsUpdate",C),Pe(e,"strategyAvailabilityChange",I),Pe(e,"rowCountChange",Pn(r,w)),Pe(e,"rowsScrollEndIntersection",Pn(r,S)),Pe(e,"renderedRowsIntervalChange",Pn(r,x)),Pe(e,"sortModelChange",Pn(r,M)),Pe(e,"filterModelChange",Pn(r,k)),Pe(e,"rowDragStart",Pn(r,T)),Pe(e,"rowDragEnd",Pn(r,O)),f.useEffect(()=>{n()},[n])},hoe=xt("div")({position:"sticky",left:0,width:0,height:0}),goe=(e,t)=>{const n=f.useRef(null),r=On(),s=f.useRef(null),i=t.rowsLoadingMode==="client"&&!!t.onRowsScrollEnd,a=t.dataSource&&t.lazyLoading,l=i||a,c=ue(e,()=>l&&fn(e).isReady),u=fe(([y])=>{const m=y.intersectionRatio;y.isIntersecting&&m===1&&(n.current?.disconnect(),s.current=null,e.current.publishEvent("rowsScrollEndIntersection"))});f.useEffect(()=>{const y=e.current.virtualScrollerRef.current;if(!c||!y)return;n.current?.disconnect();const m=IP(e),b=t.scrollEndThreshold-m;n.current=new IntersectionObserver(u,{threshold:1,root:y,rootMargin:`0px 0px ${b}px 0px`}),s.current&&n.current.observe(s.current)},[e,u,c,t.scrollEndThreshold]);const d=y=>{s.current!==y&&(n.current?.disconnect(),s.current=y,s.current&&n.current?.observe(s.current))},p=f.useCallback(y=>{l&&r.start(0,()=>d(y))},[l,r]),h={getInfiniteLoadingTriggerElement:f.useCallback(({lastRowId:y})=>l?v.jsx(hoe,{ref:p,role:"presentation"},`trigger-${y}`):null,[l,p])};rt(e,h,"private")},moe=1/0;let Ou=(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 boe{pendingRequests=new Set;queuedRequests=new Set;settledRequests=new Set;constructor(t,n=moe){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=>{const n={};t.forEach(r=>{this.queuedRequests.add(r),n[r]=!0}),this.api.setState(r=>he({},r,{dataSource:he({},r.dataSource,{loading:he({},r.dataSource.loading,n)})})),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)?Ou.PENDING:this.queuedRequests.has(t)?Ou.QUEUED:this.settledRequests.has(t)?Ou.SETTLED:Ou.UNKNOWN;getActiveRequestsCount=()=>this.pendingRequests.size+this.queuedRequests.size}const yoe=(e,t)=>{let r=e[t].parent;const s=[];for(;r&&r!==nt;){const i=e[r];s.push(i.groupingKey??""),r=i.parent}return s.reverse()},_0={loading:{},errors:{}},voe=(e,t,n={})=>{const r=ue(e,MP),s=fo(()=>new boe(e)).current,i=f.useRef(0),a=f.useCallback(()=>(s.clear(),i.current=0,e.current.state.dataSource!==_0&&e.current.resetDataSourceState(),null),[e,s]),l=f.useCallback((T,O)=>{O&&!No(O,T.previousRow)&&e.current.dataSource.cache.clear();const I=yoe(yt(e),T.rowId);e.current.updateNestedRows([O],I)},[e]),{api:c,debouncedFetchRows:u,strategyProcessor:d,events:p,cacheChunkManager:g,cache:h}=cte(e,t,he({fetchRowChildren:s.queue,clearDataSourceState:a,handleEditRow:l},n)),y=f.useCallback(()=>{const T=t.treeData?lo.GroupedData:lo.Default,O=T===lo.GroupedData?lo.Default:lo.GroupedData;e.current.setStrategyAvailability(Co.DataSource,O,()=>!1),e.current.setStrategyAvailability(Co.DataSource,T,t.dataSource&&!t.lazyLoading?()=>!0:()=>!1)},[e,t.dataSource,t.lazyLoading,t.treeData]),m=t.onDataSourceError,b=f.useCallback(async T=>{const O=e.current.unstable_applyPipeProcessors("getRowsParams",{});if(!t.treeData&&(O.groupFields?.length??0)===0){s.clearPendingRequest(T);return}const I=t.dataSource?.getRows;if(!I){s.clearPendingRequest(T);return}const D=e.current.getRowNode(T);if(!D){s.clearPendingRequest(T);return}const E=he({},AM(e),O,{groupKeys:D.path}),L=g.getCacheKeys(E).map(R=>h.get(R)),$=L.some(R=>R===void 0)?void 0:Af.mergeResponses(L);if($!==void 0){const R=$.rows;s.setRequestSettled(T),e.current.updateNestedRows(R,D.path),$.rowCount!==void 0&&e.current.setRowCount($.rowCount),e.current.setRowChildrenExpansion(T,!0),e.current.dataSource.setChildrenLoading(T,!1);return}(Wne(e)[T]??null)&&e.current.dataSource.setChildrenFetchError(T,null);try{const R=await I(E);if(!e.current.getRowNode(T)){s.clearPendingRequest(T);return}if(s.getRequestStatus(T)===Ou.UNKNOWN){e.current.dataSource.setChildrenLoading(T,!1);return}s.setRequestSettled(T),g.splitResponse(E,R).forEach((V,A)=>{h.set(A,V)}),R.rowCount!==void 0&&e.current.setRowCount(R.rowCount);const _=[];R.rows.forEach(V=>{const A=Zo(e,V);It(e,A)&&_.push({id:A,_action:"delete"})}),_.length>0&&e.current.updateNestedRows(_,D.path),e.current.updateNestedRows(R.rows,D.path),e.current.setRowChildrenExpansion(T,!0)}catch(R){const B=R;e.current.dataSource.setChildrenFetchError(T,B),typeof m=="function"?m(new NI({message:B.message,params:E,cause:B})):xn(["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(T,!1),s.setRequestSettled(T)}},[s,g,h,m,e,t.treeData,t.dataSource?.getRows]),C=f.useCallback((T,O)=>{e.current.setState(I=>{if(!I.dataSource.loading[T]&&O===!1)return I;const D=he({},I.dataSource.loading);return O===!1?delete D[T]:D[T]=O,he({},I,{dataSource:he({},I.dataSource,{loading:D})})})},[e]),w=f.useCallback((T,O)=>{e.current.setState(I=>{const D=he({},I.dataSource.errors);return O===null&&D[T]!==void 0?delete D[T]:D[T]=O,he({},I,{dataSource:he({},I.dataSource,{errors:D})})})},[e]),S=f.useCallback(()=>{e.current.setState(T=>he({},T,{dataSource:_0}))},[e]),P=f.useCallback(T=>{const O=It(e,T);if(!O||O.type!=="group"||O.children.length===0)return;const I=[],D=E=>{const N=It(e,E);N&&(N.type==="group"&&N.children.length>0&&N.children.forEach(D),I.push({id:E,_action:"delete"}))};O.children.forEach(D),I.length>0&&e.current.updateNestedRows(I,O.path)},[e]),x=f.useCallback(T=>{if("error"in T){e.current.setRows([]);return}const{response:O,options:{keepChildrenExpanded:I}}=T;if(O.rowCount!==void 0&&e.current.setRowCount(O.rowCount),I===!1)e.current.setRows(O.rows);else{const D=yt(e),E=new Set(Hi(D,nt,!1,!0));O.rows.forEach(L=>{E.delete(Zo(e,L))});const N=[];E.size>0&&E.forEach(L=>{const $=Hi(D,L,!1,!1);for(let F=$.length-1;F>=0;F-=1)N.push({id:$[F],_action:"delete"});N.push({id:L,_action:"delete"})}),e.current.updateRows(O.rows.concat(N))}e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:T.fetchParams,response:O},!0)},[e]),M={dataSource:he({},c.public.dataSource,{setChildrenLoading:C,setChildrenFetchError:w})},k={fetchRowChildren:b,resetDataSourceState:S,removeChildrenRows:P};return f.useEffect(()=>{if(r&&r.length&&i.current<r.length){const T=r.slice(i.current);s.queue(T),i.current=r.length}},[e,s,r]),{api:{public:M,private:k},debouncedFetchRows:u,flatTreeStrategyProcessor:d,groupedDataStrategyProcessor:{strategyName:lo.GroupedData,group:"dataSourceRowsUpdate",processor:x},events:p,setStrategyAvailability:y,cacheChunkManager:g,cache:h}};function Coe(e){return JSON.stringify([e.filterModel,e.sortModel,e.groupKeys,e.start,e.end])}const woe=e=>he({},e,{dataSource:_0}),Soe={cacheOptions:{getKey:Coe}},xoe=(e,t)=>{const{api:n,flatTreeStrategyProcessor:r,groupedDataStrategyProcessor:s,events:i,setStrategyAvailability:a}=voe(e,t,Soe);rt(e,n.public,"public"),rt(e,n.private,"private"),wo(e,r.strategyName,r.group,r.processor),wo(e,s.strategyName,s.group,s.processor),Object.entries(i).forEach(([l,c])=>{Pe(e,l,c)}),f.useEffect(()=>{a()},[a])},Poe=[...bY,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!==Do.DataGrid&&e.paginationMode==="client"&&e.rowsLoadingMode!=="server"&&jb(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!==Do.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 Eoe=(function(e){return e.Default="grouping-columns",e.DataSource="grouping-columns-data-source",e})({});const SO=({node:e,tree:t,treeDepths:n})=>{M0({node:e,tree:t,treeDepths:n}),e.type==="group"&&e.footerId!=null&&M0({node:t[e.footerId],tree:t,treeDepths:n})},xO=({node:e,tree:t,treeDepths:n})=>{SO({node:e,tree:t,treeDepths:n});const r=t[e.parent];r.id!==nt&&r.children.length===0&&(r.isAutoGenerated?xO({node:r,tree:t,treeDepths:n}):t[r.id]={type:"leaf",id:r.id,depth:r.depth,parent:r.parent,groupingKey:r.groupingKey})},Ioe=({node:e,tree:t,treeDepths:n})=>{KM({previousTree:null,tree:t,treeDepths:n,node:e,updatedNode:{id:WM(UM({id:e.id,tree:t})),isAutoGenerated:!0}})},PO=({id:e,tree:t,treeDepths:n,groupingName:r})=>{const s=t[e];s.type==="group"&&s.children.length>0?Ioe({node:s,tree:t,treeDepths:n}):r===oo.Default||r===Eoe.Default?xO({node:s,tree:t,treeDepths:n}):SO({node:s,tree:t,treeDepths:n})},EO=e=>{const t=he({},e.previousTree),n=he({},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];L0({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];PO({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=UM({tree:t,id:a});No(u,l)||(PO({tree:t,treeDepths:n,id:a,groupingName:e.groupingName}),L0({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=Hi(t,nt,!0);return{tree:t,treeDepths:n,groupingName:e.groupingName,dataRowIds:s,groupsToFetch:Array.from(r)}},Toe=["hideDescendantCount"],Moe=(e,t)=>{const n=f.useCallback(()=>{e.current.setStrategyAvailability(Co.RowTree,oo.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:oo.Default,fields:[]};d=u(m)}else d=u;const p=d??{},{hideDescendantCount:g}=p,h=El(p,Toe),y=he({},nO,{renderCell:m=>v.jsx(oO,he({},m,{hideDescendantCount:g})),headerName:e.current.getLocaleText("treeDataGroupingHeaderName")});return he({},y,h,zf)},[e,t.groupingColDef]),s=f.useCallback(u=>{if(t.dataSource)return u;const d=zf.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,y)=>{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(y.map(m=>m.key))}.`].join(`
|
|
415
|
-
`))};return u.updates.type==="full"?uO({previousTree:u.previousTree,nodes:u.updates.rows.map(d),defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:oo.Default,onDuplicatePath:p}):EO({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:oo.Default})},[t.getTreeDataPath,t.defaultGroupingExpansionDepth,t.isGroupExpandedByDefault]),a=f.useCallback(u=>{const d=yt(e);return Jte({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=yt(e);return gne({rowTree:d,sortRowList:u.sortRowList,disableChildrenSorting:t.disableChildrenSorting})},[e,t.disableChildrenSorting]);Ct(e,"hydrateColumns",s),wo(e,oo.Default,"rowTreeCreation",i),wo(e,oo.Default,"filtering",a),wo(e,oo.Default,"sorting",l),wo(e,oo.Default,"visibleRowsLookupCreation",XM),gs(()=>{n()});const c=f.useRef(!0);f.useEffect(()=>{c.current?c.current=!1:n()},[n])},Ooe=(e,t,n)=>{kJ(e,t),eoe(e,t),Moe(e,t),Xne(e,t),Oee(e,t),doe(e,t),loe(e),soe(e,t),Bne(e,t),Pee(e),mn(MJ,e,t),mn(Mte,e,t),mn(Iee,e,t),mn(noe,e,t),mn(Qne,e,t),mn(Vne,e,t),mn(VJ,e,t),mn(ioe,e,t),mn(vee,e,t),mn(aee,e,t),mn(bee,e,t),mn(eee,e,t),mn(kee,e,t),mn(cee,e,t),mn(XJ,e,t),mn(ote,e,t),mn(HJ,e,t),mn(qte,e,t),mn(Qee,e,t),mn(LJ,e,t),mn(jee,e,t),mn(_q,e,t),mn(woe,e,t),mn($ee,e,t),mn(iY,e,t),mn(ste,e,t),Ote(e,t),Qte(e,t),ree(e,t),Tee(e,t),_ne(e,t),aoe(e,t),_J(e,t),Cee(e,t,n),rte(e,t),Eee(e,t,n),Jne(e,t),Hee(e),Gee(e,t),yee(e,t,n),tee(e,t),uee(e,t),JJ(e,t,n),Dee(e,t),zJ(e,t),Yte(e,t),ete(e,t),lee(e,t),ooe(e,t),Fee(e,t),zte(e,t),coe(e,t),foe(e,t),goe(e,t),AJ(e),GJ(e,t),KJ(e,t),$J(e,t),Aee(e,t),Nee(e,t),Bee(e),Bq(e,t),xoe(e,t),ite(e,t),gs(()=>{e.current.runAppliersForPendingProcessors()}),f.useEffect(()=>{e.current.runAppliersForPendingProcessors()})},koe=e=>he({signature:"DataGridPro"},e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}),Doe=he({},xy,{autosizeOnMount:!1,defaultGroupingExpansionDepth:0,disableAutosize:!1,disableChildrenFiltering:!1,disableChildrenSorting:!1,disableColumnPinning:!1,getDetailPanelHeight:()=>500,headerFilters:!1,keepColumnPositionIfDraggedOutside:!1,rowSelectionPropagation:zW,rowReordering:!1,rowsLoadingMode:"client",scrollEndThreshold:80,treeData:!1,lazyLoading:!1,lazyLoadingRequestThrottleMs:500,listView:!1,multipleColumnsSortingMode:"withModifierKey",pinnedColumnsSectionSeparator:"border-and-shadow",pinnedRowsSectionSeparator:"border-and-shadow"}),Foe=$ne,Noe=e=>{const t=uo(),n=f.useMemo(()=>Gh({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),r=f.useMemo(()=>he({},SG,n.localeText),[n.localeText]),s=f.useMemo(()=>mY({defaultSlots:Foe,slots:n.slots}),[n.slots]);return f.useMemo(()=>he({},Doe,n,{localeText:r,slots:s},koe(n)),[n,r,s])},IO={hooks:{useCSSVariables:vQ,useGridAriaAttributes:Lne,useGridRowAriaAttributes:Ane,useGridRowsOverridableMethods:Hte,useGridParamsOverridableMethods:yJ,useIsCellEditable:vJ,useCellAggregationResult:()=>null,useFilterValueGetter:e=>e.current.getRowValue}},TO="MTc2NjUzNDQwMDAwMA==",Roe=v.jsx(ZT,{packageName:"x-data-grid-pro",releaseInfo:TO}),B0=Xe(function(t,n){const r=Noe(t),s=Tte(r.apiRef,r);return Ooe(s,r,IO),wu("x-data-grid-pro",TO),process.env.NODE_ENV!=="production"&&yY(r,Poe),v.jsx(NZ,{privateApiRef:s,configuration:IO,props:r,children:v.jsx(WY,he({className:r.className,style:r.style,sx:r.sx},r.slotProps?.root,{ref:n,children:Roe}))})});process.env.NODE_ENV!=="production"&&(B0.displayName="DataGridProRaw");const MO=f.memo(B0);process.env.NODE_ENV!=="production"&&(MO.displayName="DataGridPro"),B0.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}),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 $oe=hJ,Loe=({contextMenu:e,setContextMenu:t,options:n,checked:r,optionGroup:s})=>v.jsxs(v.Fragment,{children:[v.jsx(Kd,{open:e!==null,onClose:()=>t(null),anchorReference:"anchorPosition",anchorPosition:e!==null?{top:e.mouseY,left:e.mouseX}:void 0,slots:{transition:as},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(jn,{children:[a!==0&&n[a-1].group!==i.group?v.jsx(Cc,{}):null,v.jsxs(pr,{onClick:i.click,disabled:i.disabled,children:[v.jsx(xi,{sx:{color:l=>s==="toolbar"?l.palette["gr-base-light"].main:l.palette["gr-base-dark"].main},children:i.icon}),v.jsx(Ur,{children:v.jsx($t,{sx:{color:l=>s==="toolbar"?l.palette["gr-base-light"].main:l.palette["gr-base-dark"].main},children:i.name})}),i.selected?v.jsxs($t,{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($t,{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(jn,{children:i.dialog},a))]}),H0=vt(v.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),Aoe=({label:e,value:t,setValue:n,values:r,placeholder:s,disabled:i,fullWidth:a,white:l})=>{const c=u=>v.jsx(H0,{...u,sx:{color:l?"black !important":"white !important",...u.sx}});return v.jsx(v.Fragment,{children:v.jsxs($s,{fullWidth:a,focused:!0,children:[v.jsx(wi,{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(Ls,{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(pr,{sx:{mt:2},disabled:!0,value:"",children:v.jsx("em",{children:s})}),r.map(u=>v.jsx(pr,{value:u.value,children:u.label},u.value))]})]})})},Voe=({label:e,value:t,setValue:n,values:r,placeholder:s,disabled:i,fullWidth:a,white:l})=>{const c=u=>v.jsx(H0,{...u,sx:{color:l?"black !important":"white !important",...u.sx}});return v.jsx(v.Fragment,{children:v.jsxs($s,{fullWidth:a,focused:!0,children:[v.jsx(wi,{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(Ls,{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(pr,{disabled:!0,value:"",children:v.jsx("em",{children:s})}),r.map(u=>v.jsxs(pr,{value:u.value,children:[v.jsx(Na,{checked:t.includes(u.value)}),v.jsx(Ur,{slotProps:{primary:{sx:{color:"#FFFFFF"}}},primary:u.label})]},u.value))]})]})})};function So(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 ze(){return ze=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},ze.apply(null,arguments)}const qf=e=>{const t=[],n=[];return e.forEach(r=>{r.dateName==="start"?t.push(r):n.push(r)}),{startDate:t,endDate:n}},_oe=e=>e.map((t,n)=>n===e.length-1?ze({},t,{separator:null}):t);function OO(e){return e.fieldType??"multi-input"}const Boe=["value","referenceDate"],Il={emptyValue:[null,null],getTodayValue:(e,t,n)=>[Ip(e,t,n),Ip(e,t,n)],getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=So(e,Boe);const s=r.adapter.isValid(t[0]),i=r.adapter.isValid(t[1]);if(s&&i)return t;const a=n??gx(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=>WS(e,n)),areValuesEqual:(e,t,n)=>Ep(e,t[0],n[0])&&Ep(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)]},Hoe=({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"?ze({},c,{dateName:a,endSeparator:`${c.endSeparator} ${e} `}):ze({},c,{dateName:a}))};return[...s(t,"start"),...s(n,"end")]},getV7HiddenInputValueFromSections:t=>{const n=qf(t);return QS([...n.startDate,...n.endDate])},getV6InputValueFromSections:(t,n,r)=>{const s=qf(t);return JS([...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[Yf(n)],getDateSectionsFromValue:(t,n)=>{const r=qf(t);return Yf(n)===0?_oe(r.startDate):r.endDate},updateDateInValue:(t,n,r)=>Yf(n)===0?[r,t[1]]:[t[0],r],clearDateSections:(t,n)=>{const r=qf(t);return Yf(n)===0?[...r.startDate.map(s=>ze({},s,{value:""})),...r.endDate]:[...r.startDate,...r.endDate.map(s=>ze({},s,{value:""}))]}});function Yf(e){return e==null||e.dateName==="start"?0:1}const Tl=(e,t)=>e.isValid(t[0])&&e.isValid(t[1])&&!e.isBefore(t[1],t[0]),z0=(e,t,n)=>Tl(e,n)&&e.isWithinRange(t,n),Kf=(e,t,n)=>Tl(e,n)&&e.isSameDay(t,n[0]),ku=(e,t,n)=>Tl(e,n)&&e.isSameDay(t,n[1]),zoe=(e,t,n)=>Tl(e,t)?`${e.format(t[0],n)} - ${e.format(t[1],n)}`:null,joe=["shouldDisableDate"],Du=({adapter:e,value:t,timezone:n,props:r})=>{const[s,i]=t,{shouldDisableDate:a}=r,l=So(r,joe),c=[Bs({adapter:e,value:s,timezone:n,props:ze({},l,{shouldDisableDate:u=>!!a?.(u,"start")})}),Bs({adapter:e,value:i,timezone:n,props:ze({},l,{shouldDisableDate:u=>!!a?.(u,"end")})})];return c[0]||c[1]?c:s===null||i===null?[null,null]:Tl(e,t)?[null,null]:["invalidRange","invalidRange"]};Du.valueManager=Il;function Goe(e={}){const{enableAccessibleFieldDOMStructure:t=!0,dateSeparator:n}=e;return f.useMemo(()=>({valueType:"date",validator:Du,internal_valueManager:Il,internal_fieldValueManager:Hoe({dateSeparator:n}),internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:Uoe,internal_useOpenPickerButtonAriaLabel:Woe}),[t,n])}function Woe(e){const t=Et(),n=Oo();return f.useMemo(()=>n.openRangePickerDialogue(zoe(t,e,"fullDate")),[e,n,t])}function Uoe(e){const t=Et(),n=Hs(e);return f.useMemo(()=>ze({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}const qoe=e=>{const t=Goe(e);return kp({manager:t,props:e})},Yoe=["slots","slotProps"],Ml=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSingleInputDateRangeField"}),{slots:s,slotProps:i}=r,a=So(r,Yoe),l=_p({slotProps:i,ref:n,externalForwardedProps:a}),c=qoe(l);return v.jsx(Bp,{slots:s,slotProps:i,inputRef:a.inputRef,children:v.jsx(Vp,{fieldResponse:c,defaultOpenPickerIcon:P_})})});process.env.NODE_ENV!=="production"&&(Ml.displayName="SingleInputDateRangeField"),Ml.fieldType="single-input",process.env.NODE_ENV!=="production"&&(Ml.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:At,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 Koe=({label:e,value:t,setValue:n,disabled:r,fullWidth:s})=>{const{format:i}=ge.useContext(Pr);return v.jsx(v.Fragment,{children:v.jsx(_c,{dateAdapter:pP,children:v.jsx(Ml,{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 Xoe(e){return ke("MuiDateRangePickerToolbar",e)}Oe("MuiDateRangePickerToolbar",["root","container"]);const Ol=f.createContext(null);process.env.NODE_ENV!=="production"&&(Ol.displayName="PickerRangePositionContext");function Zoe(){const e=f.useContext(Ol);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 Qoe(){return f.useContext(Ol)}const Joe=["toolbarFormat","className","classes"],ere=e=>de({root:["root"],container:["container"]},Xoe,e),tre=Z(wb,{name:"MuiDateRangePickerToolbar",slot:"Root"})({}),nre=Z("div",{name:"MuiDateRangePickerToolbar",slot:"Container"})({display:"flex"}),j0=f.forwardRef(function(t,n){const r=Et(),s=Rt({props:t,name:"MuiDateRangePickerToolbar"}),{toolbarFormat:i,className:a,classes:l}=s,c=So(s,Joe),{value:u}=Fi(),d=Oo(),p=Cb(),{rangePosition:g,setRangePosition:h}=Zoe(),y=ere(l),m=i??r.formats.shortDate,b=(C,w)=>r.isValid(C)?r.formatByString(C,m):w;return v.jsx(tre,ze({},c,{toolbarTitle:d.dateRangePickerToolbarTitle,className:ie(y.root,a),ownerState:p,ref:n,children:v.jsxs(nre,{className:y.container,children:[v.jsx(Eb,{variant:u[0]==null?"h6":"h5",value:b(u[0],d.start),selected:g==="start",onClick:()=>h("start")}),v.jsxs($t,{variant:"h5",children:[" ","–"," "]}),v.jsx(Eb,{variant:u[1]==null?"h6":"h5",value:b(u[1],d.end),selected:g==="end",onClick:()=>h("end")})]})}))});process.env.NODE_ENV!=="production"&&(j0.displayName="DateRangePickerToolbar"),process.env.NODE_ENV!=="production"&&(j0.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 G0(e,t){const n=Rt({props:e,name:t}),r=Hs(n),s=f.useMemo(()=>n.localeText?.toolbarTitle==null?n.localeText:ze({},n.localeText,{dateRangePickerToolbarTitle:n.localeText.toolbarTitle}),[n.localeText]);return ze({},n,r,{localeText:s,slots:ze({toolbar:j0},n.slots)})}const ore=e=>ke("MuiDateRangeCalendar",e),kO=Oe("MuiDateRangeCalendar",["root","monthContainer","dayDragging"]);function DO(e,t){return Array.isArray(e)?t==="start"?e[0]:e[1]:e}function W0({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=ki(e,n,l)),c&&r==="end"&&(n=ki(e,n,c)));const u=a&&n&&i?ki(e,n,DO(a,r)):n;if(r==="start"){const p=s?{nextSelection:"start",newRange:[c,u]}:{nextSelection:"end",newRange:[u,null]};return c&&e.isAfter(u,c)?p:{nextSelection:"end",newRange:[u,c]}}const d=s?{nextSelection:"end",newRange:[u,l]}:{nextSelection:"end",newRange:[u,null]};return l&&e.isBeforeDay(u,l)?d:{nextSelection:"start",newRange:[l,u]}}function rre(e){if(e.newDate==null)return[null,null];const[t,n]=e.range,{newRange:r}=W0(e);if(!t||!n)return r;const[s,i]=r;return e.rangePosition==="end"?[n,i]:[s,t]}function sre(e){return ke("MuiDateRangePickerDay",e)}const Cn=Oe("MuiDateRangePickerDay",["root","rangeIntervalDayHighlight","rangeIntervalDayHighlightStart","rangeIntervalDayHighlightEnd","rangeIntervalPreview","rangeIntervalDayPreview","rangeIntervalDayPreviewStart","rangeIntervalDayPreviewEnd","outsideCurrentMonth","startOfMonth","endOfMonth","firstVisibleCell","lastVisibleCell","hiddenDayFiller","day","dayOutsideRangeInterval","dayInsideRangeInterval","notSelectedDate"]),ire=["className","classes","isEndOfHighlighting","isEndOfPreviewing","isHighlighting","isPreviewing","isStartOfHighlighting","isStartOfPreviewing","isVisuallySelected","sx","draggable","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],are=(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:y}=t;return de({root:["root",n&&"rangeIntervalDayHighlight",s&&"rangeIntervalDayHighlightStart",i&&"rangeIntervalDayHighlightEnd",r&&"outsideCurrentMonth",d&&"startOfMonth",p&&"endOfMonth",g&&"firstVisibleCell",h&&"lastVisibleCell",y&&"hiddenDayFiller"],rangeIntervalPreview:["rangeIntervalPreview",u&&"rangeIntervalDayPreview",(l||d)&&"rangeIntervalDayPreviewStart",(c||p)&&"rangeIntervalDayPreviewEnd"],day:["day",!n&&"notSelectedDate",!n&&"dayOutsideRangeInterval",!a&&"dayInsideRangeInterval"]},sre,e)},Xf={borderTopRightRadius:"50%",borderBottomRightRadius:"50%"},Zf={borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%"},lre=Z("div",{name:"MuiDateRangePickerDay",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Cn.rangeIntervalDayHighlight}`]:t.rangeIntervalDayHighlight},{[`&.${Cn.rangeIntervalDayHighlightStart}`]:t.rangeIntervalDayHighlightStart},{[`&.${Cn.rangeIntervalDayHighlightEnd}`]:t.rangeIntervalDayHighlightEnd},{[`&.${Cn.firstVisibleCell}`]:t.firstVisibleCell},{[`&.${Cn.lastVisibleCell}`]:t.lastVisibleCell},{[`&.${Cn.startOfMonth}`]:t.startOfMonth},{[`&.${Cn.endOfMonth}`]:t.endOfMonth},{[`&.${Cn.outsideCurrentMonth}`]:t.outsideCurrentMonth},{[`&.${Cn.hiddenDayFiller}`]:t.hiddenDayFiller},t.root]})(({theme:e})=>({variants:[{props:{isDayFillerCell:!1},style:{[`&:first-of-type .${Cn.rangeIntervalDayPreview}`]:ze({},Zf,{borderLeftColor:(e.vars||e).palette.divider}),[`&:last-of-type .${Cn.rangeIntervalDayPreview}`]:ze({},Xf,{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})`:zn(e.palette.primary.main,e.palette.action.focusOpacity),"&:first-of-type":Zf,"&:last-of-type":Xf}},{props:({ownerState:{isDayFillerCell:t,isDaySelectionStart:n,isDayFirstVisibleCell:r}})=>!t&&(n||r),style:ze({},Zf,{paddingLeft:0})},{props:({ownerState:{isDayFillerCell:t,isDaySelectionEnd:n,isDayLastVisibleCell:r}})=>!t&&(n||r),style:ze({},Xf,{paddingRight:0})}]})),cre=Z("div",{name:"MuiDateRangePickerDay",slot:"RangeIntervalPreview",overridesResolver:(e,t)=>[{[`&.${Cn.rangeIntervalDayPreview}`]:t.rangeIntervalDayPreview},{[`&.${Cn.rangeIntervalDayPreviewStart}`]:t.rangeIntervalDayPreviewStart},{[`&.${Cn.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:ze({borderLeftColor:(e.vars||e).palette.divider},Zf)},{props:({ownerState:{isDayPreviewed:t,isDayFillerCell:n,isDayPreviewEnd:r,isDayLastVisibleCell:s}})=>t&&!n&&(r||s),style:ze({borderRightColor:(e.vars||e).palette.divider},Xf)}]})),ure=Z(ib,{name:"MuiDateRangePickerDay",slot:"Day",overridesResolver:(e,t)=>[{[`&.${Cn.dayInsideRangeInterval}`]:t.dayInsideRangeInterval},{[`&.${Cn.dayOutsideRangeInterval}`]:t.dayOutsideRangeInterval},{[`&.${Cn.notSelectedDate}`]:t.notSelectedDate},t.day]})({transform:"scale(1.1)","& > *":{transform:"scale(0.9)"},variants:[{props:{draggable:!0},style:{cursor:"grab",touchAction:"none"}}]}),U0=f.forwardRef(function(t,n){const r=Rt({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:y,isFirstVisibleCell:m,isLastVisibleCell:b,day:C,selected:w,disabled:S,today:P,outsideCurrentMonth:x,disableMargin:M,disableHighlightToday:k,showDaysOutsideCurrentMonth:T}=r,O=So(r,ire);wu("x-date-pickers-pro","MTc2NjUzNDQwMDAwMA==");const I=Et(),D=rb({day:C,selected:w,disabled:S,today:P,outsideCurrentMonth:x,disableMargin:M,disableHighlightToday:k,showDaysOutsideCurrentMonth:T}),E=ze({},D,{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:b,isDayFillerCell:x&&!T}),N=are(i,E);return v.jsx(lre,{className:ie(N.root,s),ownerState:E,sx:h,children:v.jsx(cre,{className:N.rangeIntervalPreview,ownerState:E,children:v.jsx(ure,ze({},O,{ref:n,day:C,selected:g,disabled:S,today:P,outsideCurrentMonth:x,disableMargin:!0,disableHighlightToday:k,showDaysOutsideCurrentMonth:T,className:N.day,ownerState:E,draggable:y,isFirstVisibleCell:m,isLastVisibleCell:b}))})})});process.env.NODE_ENV!=="production"&&(U0.displayName="DateRangePickerDayRaw"),process.env.NODE_ENV!=="production"&&(U0.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 FO=f.memo(U0);process.env.NODE_ENV!=="production"&&(FO.displayName="DateRangePickerDay");const kl=(e,t,n)=>{const r=e.dataset.timestamp;if(!r)return null;const s=+r;return t.date(new Date(s).toISOString(),n)},dre=e=>e.target.dataset.timestamp===e.dataTransfer.getData("draggingDate"),NO=e=>e&&(e instanceof HTMLButtonElement&&!e.disabled?e:e.children.length?NO(e.children[0]):null),q0=(e,t)=>{if(e.changedTouches?.length===1&&e.touches.length<=1){const n=document.elementFromPoint(e.changedTouches[0].clientX,e.changedTouches[0].clientY),r=NO(n);return t&&r===e.changedTouches[0].target?null:r}return null},pre=({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=P=>{if(P==null)return!1;const x=!a&&!!l[0]&&!!l[1],M=Kf(e,P,l),k=ku(e,P,l);return x&&(M||k)},p=fe(P=>{const x=kl(P.target,e,c);if(!d(x))return;P.stopPropagation(),u.current&&P.dataTransfer.setDragImage(u.current,0,0),t(x),P.dataTransfer.effectAllowed="move",n(!0);const M=P.target.dataset;M.timestamp&&P.dataTransfer.setData("draggingDate",M.timestamp),M.position&&s(M.position)}),g=fe(P=>{const x=q0(P);if(!x)return;const M=kl(x,e,c);d(M)&&t(M)}),h=fe(P=>{r&&(P.preventDefault(),P.stopPropagation(),P.dataTransfer.dropEffect="move",t(kl(P.target,e,c)))}),y=fe(P=>{const x=q0(P);if(!x)return;const M=kl(x,e,c);if(M&&t(M),!(x===P.changedTouches[0].target)||!d(M))return;n(!0);const O=P.target.dataset;O.position&&s(O.position)}),m=fe(P=>{r&&(P.preventDefault(),P.stopPropagation())}),b=fe(P=>{r&&(P.preventDefault(),P.stopPropagation(),P.dataTransfer.dropEffect="move")}),C=fe(P=>{if(!r)return;t(null),n(!1);const x=q0(P,!0);if(!x)return;x.focus();const M=kl(x,e,c);M&&i(M)}),w=fe(P=>{r&&(P.preventDefault(),P.stopPropagation(),n(!1),t(null))}),S=fe(P=>{if(!r||(P.preventDefault(),P.stopPropagation(),n(!1),t(null),P.currentTarget.focus(),dre(P)))return;const x=kl(P.target,e,c);x&&i(x)});return{onDragStart:p,onDragEnter:h,onDragLeave:m,onDragOver:b,onDragEnd:w,onDrop:S,onTouchStart:g,onTouchMove:y,onTouchEnd:C}},fre=({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,y]=s;if(c){if(h&&t.isBefore(c,h))return"start";if(y&&t.isAfter(c,y))return"end"}return null},[s,c,t]),g=pre({adapter:t,onDatePositionChange:n,onDrop:r,setIsDragging:l,isDragging:a,setRangeDragDay:d,disableDragEditing:e,dateRange:s,timezone:i});return f.useMemo(()=>ze({isDragging:a,rangeDragDay:c,draggingDatePosition:p},e?{}:g),[a,c,p,e,g])},Qf=e=>{const[t,n]=po({name:"useRangePosition",state:"rangePosition",controlled:e.rangePosition,default:e.defaultRangePosition??"start"}),r=fe(s=>{n(s),e.onRangePositionChange?.(s)});return{rangePosition:t,setRangePosition:r}},hre=40,gre=["calendars","month","monthIndex","labelId"],mre=["format","slots","slotProps","currentMonth","onMonthChange","disableFuture","disablePast","minDate","maxDate","timezone","reduceAnimations","views","view"],bre=Z(Qm)({padding:"12px 16px 4px 16px",display:"flex",alignItems:"center",justifyContent:"space-between"}),Y0=f.forwardRef(function(t,n){const r=Et(),s=Oo(),{calendars:i,month:a,monthIndex:l,labelId:c}=t,u=So(t,gre),{format:d,slots:p,slotProps:g,currentMonth:h,onMonthChange:y,disableFuture:m,disablePast:b,minDate:C,maxDate:w,timezone:S}=u,P=So(u,mre),x=fx(h,{disableFuture:m,maxDate:w,timezone:S}),M=hx(h,{disablePast:b,minDate:C,timezone:S});if(i===1)return v.jsx(Gp,ze({},u,{labelId:c,ref:n}));const k=()=>y(r.addMonths(h,1)),T=()=>y(r.addMonths(h,-1));return v.jsx(bre,ze({},P,{ref:n,onGoToPrevious:T,onGoToNext:k,isPreviousHidden:l!==0,isPreviousDisabled:M,previousLabel:s.previousMonth,isNextHidden:l!==i-1,isNextDisabled:x,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"&&(Y0.displayName="PickersRangeCalendarHeader"),process.env.NODE_ENV!=="production"&&(Y0.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 yre=Oe("MuiDateRangePickerDay2",["root","dayOutsideMonth","today","disabled","fillerCell","previewStart","previewEnd","insidePreviewing","selectionStart","selectionEnd","insideSelection","startOfWeek","endOfWeek","startOfMonth","endOfMonth","previewed","selected","draggable"]),vre=["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"],Cre=["isDragging","rangeDragDay","draggingDatePosition"],wre="MTc2NjUzNDQwMDAwMA==",Sre=Z("div",{name:"MuiDateRangeCalendar",slot:"Root"})({display:"flex",flexDirection:"row"}),xre=Z("div",{name:"MuiDateRangeCalendar",slot:"Container",overridesResolver:(e,t)=>t.monthContainer})(({theme:e})=>({"&:not(:last-of-type)":{borderRight:`1px solid ${(e.vars||e).palette.divider}`}})),Pre=(hre+Gc*2)*6,Ere=Z(_x)(({theme:e})=>({minWidth:312,minHeight:Pre,[`&.${kO.dayDragging}`]:{[`& .${yre.root}, & .${Cn.day}`]:{cursor:"grabbing"},[`& .${Cn.root}:not(.${Cn.rangeIntervalDayHighlightStart}):not(.${Cn.rangeIntervalDayHighlightEnd}) .${Cn.day}:not(.${Cn.notSelectedDate})`]:{opacity:.6}},[`&:not(.${kO.dayDragging}) .${Cn.dayOutsideRangeInterval}`]:{"@media (pointer: fine)":{"&:hover":{border:`1px solid ${(e.vars||e).palette.grey[500]}`}}}}));function Ire(e,t){const n=Rt({props:e,name:t}),r=yb(n.reduceAnimations),s=Hs(n);return ze({},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 Tre=(e,t)=>{const n={root:["root"],monthContainer:["monthContainer"],dayCalendar:[t.isDraggingDay&&"dayDragging"]};return de(n,ore,e)},K0=f.forwardRef(function(t,n){const r=Ire(t,"MuiDateRangeCalendar"),s=tp(ob,{defaultMatches:!1}),{value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:g,minDate:h,maxDate:y,shouldDisableDate:m,reduceAnimations:b,onMonthChange:C,rangePosition:w,defaultRangePosition:S,onRangePositionChange:P,calendars:x,currentMonthCalendarPosition:M=1,slots:k,slotProps:T,loading:O,renderLoading:I,disableHighlightToday:D,focusedView:E,onFocusedViewChange:N,readOnly:L,disabled:$,showDaysOutsideCurrentMonth:F,dayOfWeekFormatter:R,disableAutoMonthSwitching:B,autoFocus:_,fixedWeekNumber:V,disableDragEditing:A,displayWeekNumber:z,timezone:G,availableRangePositions:U,views:X,view:Y,openTo:ee,onViewChange:oe}=r,K=So(r,vre),W=Qoe(),{value:J,handleValueChange:q,timezone:ce}=qa({name:"DateRangeCalendar",timezone:G,value:i,referenceDate:l,defaultValue:a,onChange:c,valueManager:Il}),{view:re,setFocusedView:se,focusedView:ae,setValueAndGoToNextView:te}=eb({view:Y,views:X,openTo:ee,onChange:q,onViewChange:oe,autoFocus:_,focusedView:E,onFocusedViewChange:N}),Q=Et(),Ce=dt(),{rangePosition:le,setRangePosition:xe}=Qf({rangePosition:w??W?.rangePosition,defaultRangePosition:S,onRangePositionChange:P??W?.setRangePosition}),we=fe(ct=>{le!==ct&&xe(ct)}),Ue=fe((ct,Bt,tn=!1)=>{const{nextSelection:Ft,newRange:an}=W0({newDate:ct,adapter:Q,range:J,rangePosition:le,allowRangeFlip:tn,shouldMergeDateAndTime:!0,referenceDate:l}),Lo=U.includes(Ft);Lo&&xe(Ft);const aa=le==="end"&&Tl(Q,an);te(an,aa||!Lo?"finish":"partial",re)}),$e=fe(ct=>{Ue(ct,void 0,!0)}),Ze=A||$||L,Le=f.useMemo(()=>[Q.isValid(J[0])?Q.startOfDay(J[0]):J[0],Q.isValid(J[1])?Q.endOfDay(J[1]):J[1]],[J,Q]),Qe=fre({disableDragEditing:Ze,onDrop:$e,onDatePositionChange:we,adapter:Q,dateRange:Le,timezone:ce}),{isDragging:Je,rangeDragDay:be,draggingDatePosition:Ee}=Qe,me=So(Qe,Cre),{ownerState:Me}=Qn(),Ae=ze({},Me,{isDraggingDay:Je}),Ge=Tre(d,Ae),lt=f.useMemo(()=>{if(!Le[0]||!Le[1]||!be)return[null,null];const ct=W0({adapter:Q,range:Le,newDate:be,rangePosition:le,allowRangeFlip:!0}).newRange;return ct[0]!==null&&ct[1]!==null?[Q.startOfDay(ct[0]),Q.endOfDay(ct[1])]:ct},[le,be,Q,Le]),Dt=f.useMemo(()=>{if(m)return ct=>m(ct,Ee||le)},[m,le,Ee]),{calendarState:qe,setVisibleDate:Fe,onMonthSwitchingAnimationEnd:Ye}=Lx({value:J[0]||J[1],referenceDate:DO(l,le),disableFuture:p,disablePast:g,maxDate:y,minDate:h,onMonthChange:C,reduceAnimations:b,shouldDisableDate:Dt,timezone:ce,getCurrentMonthFromVisibleDate:(ct,Bt)=>{const tn=Q.addMonths(Bt,1-M),Ft=Q.endOfMonth(Q.addMonths(tn,x-1));return Q.isWithinRange(ct,[tn,Ft])?Bt:Q.isAfter(ct,Ft)?Q.startOfMonth(Q.addMonths(ct,M-1)):Q.startOfMonth(Q.addMonths(ct,M-x))}}),pt=k?.calendarHeader??Y0,qt=it({elementType:pt,externalSlotProps:T?.calendarHeader,additionalProps:{calendars:x,views:["day"],view:"day",currentMonth:qe.currentMonth,onMonthChange:ct=>Fe({target:ct,reason:"header-navigation"}),minDate:h,maxDate:y,disabled:$,disablePast:g,disableFuture:p,reduceAnimations:b,timezone:ce,slots:k,slotProps:T},ownerState:Ae}),kt=f.useRef(null);f.useEffect(()=>{const ct=le==="start"?J[0]:J[1];if(!Q.isValid(ct))return;const Bt=le==="start"?kt.current?.[0]:kt.current?.[1];if(kt.current=J,B&&Bt&&Q.isEqual(Bt,ct))return;const tn=x-M,Ft=Q.getMonth(qe.currentMonth),an=Q.getMonth(ct);if(!Q.isSameYear(qe.currentMonth,ct)||an<Ft||an>Ft+tn){const Lo=le==="start"?ct:Q.addMonths(ct,-tn);Fe({target:Lo,reason:"controlled-value-change"})}},[le,J]);const Yn={disablePast:g,disableFuture:p,maxDate:y,minDate:h},_n={disableHighlightToday:D,readOnly:L,disabled:$},[Kn,Xn]=f.useState(null),je=f.useMemo(()=>({onMouseLeave:()=>Xn(null)}),[]),Lt=rre({adapter:Q,range:Le,newDate:Kn,rangePosition:le}),_e=fe((ct,Bt)=>{let tn;Le[0]==null&&Le[1]==null||z0(Q,Bt,Le)?tn=null:tn=Bt,Ep(Q,tn,Kn)||Xn(tn)}),et=ze({day:FO},k),St=ze({},T,{day:ct=>{const{day:Bt,isDaySelected:tn}=ct,Ft=Kf(Q,Bt,Le),an=ku(Q,Bt,Le),aa=!Ze&&Le[0]&&Le[1]&&(Ft||an);let Ss;Ft?Ss="start":an&&(Ss="end");const la=Je?Kf(Q,Bt,lt):Ft,Se=Je?ku(Q,Bt,lt):an;return ze({isPreviewing:s?z0(Q,Bt,Lt):!1,isStartOfPreviewing:s?Kf(Q,Bt,Lt):!1,isEndOfPreviewing:s?ku(Q,Bt,Lt):!1,isHighlighting:z0(Q,Bt,Je?lt:Le),isStartOfHighlighting:la,isEndOfHighlighting:Je?ku(Q,Bt,lt):an,onMouseEnter:s?_e:void 0,isVisuallySelected:tn||Je&&(la||Se),"data-position":Ss},me,{draggable:aa?!0:void 0},Zn(T?.day,ct)??{})}}),Tt=f.useMemo(()=>Array.from({length:x}).map((ct,Bt)=>Bt),[x]),sn=f.useMemo(()=>{process.env.NODE_ENV!=="production"&&(M>x||M<1)&&xn(["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 ct=Q.addMonths(qe.currentMonth,1-M);return Array.from({length:x}).map((Bt,tn)=>Q.addMonths(ct,tn))},[Q,qe.currentMonth,x,M]),co=ae!==null,Po=f.useRef(re);return f.useEffect(()=>{Po.current!==re&&(ae===Po.current&&se(re,!0),Po.current=re)},[ae,se,re]),v.jsxs(Sre,ze({ref:n,className:ie(Ge.root,u),ownerState:Ae},K,{children:[v.jsx(ZT,{packageName:"x-date-pickers-pro",releaseInfo:wre}),Tt.map(ct=>{const Bt=sn[ct],tn=`${Ce}-grid-${ct}-label`;return v.jsxs(xre,{className:Ge.monthContainer,children:[v.jsx(pt,ze({},qt,{month:Bt,monthIndex:ct,labelId:tn})),v.jsx(Ere,ze({className:Ge.dayCalendar},qe,Yn,_n,{onMonthSwitchingAnimationEnd:Ye,onFocusedDayChange:Ft=>Fe({target:Ft,reason:"cell-interaction"}),reduceAnimations:b,selectedDays:J,onSelectedDaysChange:Ue,currentMonth:Bt,TransitionProps:je,shouldDisableDate:Dt,hasFocus:co,onFocusedViewChange:Ft=>se("day",Ft),showDaysOutsideCurrentMonth:x===1&&F,dayOfWeekFormatter:R,loading:O,renderLoading:I,slots:et,slotProps:St,fixedWeekNumber:V,displayWeekNumber:z,timezone:ce,gridLabelId:tn}))]},ct)})]}))});process.env.NODE_ENV!=="production"&&(K0.displayName="DateRangeCalendar"),process.env.NODE_ENV!=="production"&&(K0.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 Jf=({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:y,shouldDisableDate:m,reduceAnimations:b,onMonthChange:C,calendars:w,currentMonthCalendarPosition:S,slots:P,slotProps:x,loading:M,renderLoading:k,disableHighlightToday:T,readOnly:O,disabled:I,showDaysOutsideCurrentMonth:D,dayOfWeekFormatter:E,disableAutoMonthSwitching:N,sx:L,autoFocus:$,fixedWeekNumber:F,disableDragEditing:R,displayWeekNumber:B,timezone:_,availableRangePositions:V})=>v.jsx(K0,{view:t,views:e,onViewChange:n,focusedView:r&&Bm(r)?r:null,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:g,minDate:h,maxDate:y,shouldDisableDate:m,reduceAnimations:b,onMonthChange:C,calendars:w,currentMonthCalendarPosition:S,slots:P,slotProps:x,loading:M,renderLoading:k,disableHighlightToday:T,readOnly:O,disabled:I,showDaysOutsideCurrentMonth:D,dayOfWeekFormatter:E,disableAutoMonthSwitching:N,sx:L,autoFocus:$,fixedWeekNumber:F,disableDragEditing:R,displayWeekNumber:B,timezone:_,availableRangePositions:V});process.env.NODE_ENV!=="production"&&(Jf.displayName="renderDateRangeViewCalendar");function X0(e){const{steps:t,rangePositionResponse:n}=e;return px({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 Mre=["props","steps"],Ore=["ownerState"],kre=e=>{let{props:t,steps:n}=e,r=So(e,Mre);wu("x-date-pickers-pro","MTc2NjUzNDQwMDAwMA==");const{slots:s,slotProps:i,inputRef:a,localeText:l}=t,u=OO(s.field)==="single-input",d=u?"dialog":"tooltip",p=Qf(t),g=X0({steps:n,rangePositionResponse:p}),{providerProps:h,renderCurrentView:y,ownerState:m}=Zc(ze({},r,{props:t,variant:"desktop",autoFocusView:d==="dialog",viewContainerRole:d,localeText:l,getStepNavigation:g,onPopperExited:fe(()=>p.setRangePosition(t.defaultRangePosition??"start"))})),b=s.field,C=it({elementType:b,externalSlotProps:i?.field,ownerState:m,additionalProps:{"data-active-range-position":h.contextValue.open?p.rangePosition:void 0}}),w=So(C,Ore),S=s?.layout??Li,P=()=>v.jsx(zc,ze({},h,{children:v.jsxs(Ol.Provider,{value:p,children:[v.jsx(b,ze({},w,{slots:ze({},s,w.slots),slotProps:ze({},i,w.slotProps)},u&&{inputRef:a})),v.jsx(Xx,{slots:s,slotProps:i,children:v.jsx(S,ze({},i?.layout,{slots:s,slotProps:i,children:y()}))})]})}));return process.env.NODE_ENV!=="production"&&(P.displayName="renderPicker"),{renderPicker:P}},Z0=f.forwardRef(function(t,n){const r=Et(),s=G0(t,"MuiDesktopDateRangePicker"),i=ze({day:Jf},s.viewRenderers),a=ze({},s,{closeOnSelect:s.closeOnSelect??!0,viewRenderers:i,format:s.format??r.formats.keyboardDate,calendars:s.calendars??2,views:["day"],openTo:"day",slots:ze({field:Ml},s.slots),slotProps:ze({},s.slotProps,{field:c=>ze({},Zn(s.slotProps?.field,c),xp(s)),toolbar:ze({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=kre({ref:n,props:a,valueManager:Il,valueType:"date",validator:Du,steps:null});return l()});process.env.NODE_ENV!=="production"&&(Z0.displayName="DesktopDateRangePicker"),Z0.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:At,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 Dre=["props","steps"],Fre=["ownerState"],Nre=e=>{let{props:t,steps:n}=e,r=So(e,Dre);wu("x-date-pickers-pro","MTc2NjUzNDQwMDAwMA==");const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=OO(s.field),d=u==="single-input",p=Qf(t),g=Oo(),h=X0({steps:n,rangePositionResponse:p}),{providerProps:y,renderCurrentView:m,ownerState:b}=Zc(ze({},r,{props:t,variant:"mobile",autoFocusView:!0,viewContainerRole:"dialog",localeText:c,getStepNavigation:h,onPopperExited:fe(()=>p.setRangePosition(t.defaultRangePosition??"start"))})),C=y.privateContextValue.labelId,w=i?.toolbar?.hidden??!1,S=s.field,P=it({elementType:S,externalSlotProps:i?.field,additionalProps:ze({},d&&w&&{id:C}),ownerState:b}),x=So(P,Fre),M=s?.layout??Li,k=ze({},g,c);let T=r.valueType==="date-time"?`${C}-start-toolbar ${C}-end-toolbar`:C;if(w){const D=[];u==="multi-input"?(k.start&&D.push(`${C}-start-label`),k.end&&D.push(`${C}-end-label`)):a!=null&&D.push(`${C}-label`),T=D.length>0?D.join(" "):void 0}const O=ze({},i,{toolbar:ze({},i?.toolbar,{titleId:C}),mobilePaper:ze({"aria-labelledby":T},i?.mobilePaper)},u==="multi-input"&&{textField:D=>ze({},Zn(i?.textField,D),{id:`${C}-${D.position}`})}),I=()=>v.jsx(zc,ze({},y,{children:v.jsxs(Ol.Provider,{value:p,children:[v.jsx(S,ze({},x,{slots:ze({},s,x.slots),slotProps:ze({},O,x.slotProps)},d&&{inputRef:l})),v.jsx(rP,{slots:s,slotProps:O,children:v.jsx(M,ze({},O?.layout,{slots:s,slotProps:O,children:m()}))})]})}));return process.env.NODE_ENV!=="production"&&(I.displayName="renderPicker"),{renderPicker:I}},Q0=f.forwardRef(function(t,n){const r=Et(),s=G0(t,"MuiMobileDateRangePicker"),i=ze({day:Jf},s.viewRenderers),a=ze({},s,{viewRenderers:i,format:s.format??r.formats.keyboardDate,calendars:1,currentMonthCalendarPosition:1,views:["day"],openTo:"day",slots:ze({field:Ml},s.slots),slotProps:ze({},s.slotProps,{field:c=>ze({},Zn(s.slotProps?.field,c),xp(s)),toolbar:ze({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=Nre({ref:n,props:a,valueManager:Il,valueType:"date",validator:Du,steps:null});return l()});process.env.NODE_ENV!=="production"&&(Q0.displayName="MobileDateRangePicker"),Q0.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:At,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 Rre=["desktopModeMediaQuery"],eh=f.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDateRangePicker"}),{desktopModeMediaQuery:s=ob}=r,i=So(r,Rre);return tp(s,{defaultMatches:!0})?v.jsx(Z0,ze({ref:n},i)):v.jsx(Q0,ze({ref:n},i))});process.env.NODE_ENV!=="production"&&(eh.displayName="DateRangePicker"),process.env.NODE_ENV!=="production"&&(eh.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:At,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=({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}=ge.useContext(Pr),g=uo(),h=ci({...g,palette:{...g.palette,primary:{main:"#9D9A95"}}});return v.jsx(SC,{theme:h,children:v.jsx(eh,{label:e,defaultValue:t,value:n,onChange:y=>r(y),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:y=>a?y.palette["gr-grey"].light:y.palette["gr-grey"].main},"& .MuiChip-label":{color:a?"black !important":"white !important"},"& .MuiChip-root:hover":{bgcolor:y=>y.palette["gr-grey"].dark},"& .MuiDayCalendar-weekDayLabel":{color:y=>a?y.palette["gr-base-dark"].main:"white !important"},"& .MuiPickersCalendarHeader-label":{color:a?"black !important":"white !important"},"& .MuiYearCalendar-button":{color:y=>y.palette["gr-base-dark"].main},"& .MuiButtonBase-root":{color:y=>a?y.palette["gr-base-dark"].main:"white !important"},"& .Mui-disabled":{color:y=>`${y.palette["gr-grey"].main} !important`},"& .MuiPickersArrowSwitcher-root":{color:'(theme) => theme.palette["gr-base-dark"].main'},"& .Mui-selected, & .MuiPickersDay-root.Mui-selected":{bgcolor:y=>`${y.palette["gr-yellow"].main} !important`,color:a?"black !important":"white !important"},"& .MuiYearCalendar-yearButton.Mui-selected":{bgcolor:y=>`${y.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiPaper-root":{bgcolor:y=>a?y.palette["gr-grey"].light:"black !important",borderRadius:"20px"},"& .MuiPickersDay-root":{color:y=>y.palette["gr-base-dark"].main}}}},maxDate:c,minDate:u})})},Lre=({label:e,initialValue:t,value:n,setValue:r,disabled:s,white:i,fullWidth:a})=>{const{format:l,singleShortcut:c}=ge.useContext(Pr);return v.jsx(v.Fragment,{children:v.jsx(Wp,{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}}}}})})},Are=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(bt,{size:i.ncolumn,children:v.jsx(Aoe,{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(bt,{size:i.ncolumn,children:v.jsx(Voe,{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(bt,{size:i.ncolumn,children:v.jsx(Koe,{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(bt,{size:i.ncolumn,children:v.jsx(Lre,{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(bt,{size:i.ncolumn,children:v.jsx($re,{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(jn,{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(bt,{container:!0,spacing:2,sx:{flexGrow:1},children:[t.title&&v.jsx(bt,{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(bt,{size:r.ncolumn,children:v.jsx(jn,{sx:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"10px"},children:r.buttons.map((i,a)=>v.jsx(Gn,{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))})})]})})})},Vre=vt(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"),_re=e=>v.jsxs(v.Fragment,{children:[v.jsx(MO,{...e,apiRef:e.apiRef,showToolbar:e.toolbar!==void 0,headerFilters:e.headerFilters,slots:{toolbar:Are,headerFilterMenu:null},slotProps:{...e.slotProps,toolbar:{...e.toolbar},baseTextField:{color:e.toolbar!==void 0?"primary":"error",slotProps:{input:{endAdornment:v.jsx(Aa,{sx:{color:t=>e.toolbar!==void 0?t.palette["gr-grey"].main:t.palette["gr-grey"].light},position:"end",children:v.jsx(Vre,{})})}}},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(Loe,{contextMenu:e.contextMenu,setContextMenu:e.setContextMenu,options:e.options,checked:e.rowSelectionModel,optionGroup:e.optionGroup})]}),Bre=()=>{const e=$oe(),[t,n]=ge.useState(!1),[r,s]=ge.useState([]),[i,a]=ge.useState({pageSize:25,page:0}),[l,c]=ge.useState({type:"include",ids:new Set}),[u,d]=ge.useState(null),[p,g]=ge.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}},RO=vt(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"),Hre=vt(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"),zre=vt(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"),jre=vt(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"),Gre=()=>{const{enqueueSnackbar:e}=KV(),t=r=>{HS(r)};return{showAlert:(r,s)=>e(s,{variant:r,content:(a,l)=>v.jsx(Cg,{sx:{borderRadius:"24px",bgcolor:"#fff",boxShadow:3,color:c=>c.palette["gr-base-dark"].main},severity:r,iconMapping:{error:v.jsx(RO,{}),info:v.jsx(jre,{}),success:v.jsx(Hre,{}),warning:v.jsx(zre,{}),default:v.jsx(fi,{color:"gr-blue",size:20})},onClose:()=>t(a),children:l},a)}),closeAlert:t}};var Fu={exports:{}},J0={},th={exports:{}},$O;function Wre(){if($O)return th.exports;$O=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 th.exports=t,th.exports.clsx=t,th.exports}var An={},ei={},LO;function nh(){if(LO)return ei;LO=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.dontSetMe=s,ei.findInArray=e,ei.int=r,ei.isFunction=t,ei.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 ei}var ti={},AO;function Ure(){if(AO)return ti;AO=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.browserPrefixToKey=n,ti.browserPrefixToStyle=r,ti.default=void 0,ti.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 ti.default=t(),ti}var VO;function e1(){if(VO)return An;VO=1,Object.defineProperty(An,"__esModule",{value:!0}),An.addClassName=x,An.addEvent=a,An.addUserSelectStyles=w,An.createCSSTransform=h,An.createSVGTransform=y,An.getTouch=b,An.getTouchIdentifier=C,An.getTranslation=m,An.innerHeight=d,An.innerWidth=p,An.matchesSelector=s,An.matchesSelectorAndParentsTo=i,An.offsetXYFromParent=g,An.outerHeight=c,An.outerWidth=u,An.removeClassName=M,An.removeEvent=l,An.scheduleRemoveUserSelectStyles=S;var e=nh(),t=n(Ure());function n(k,T){if(typeof WeakMap=="function")var O=new WeakMap,I=new WeakMap;return(n=function(D,E){if(!E&&D&&D.__esModule)return D;var N,L,$={__proto__:null,default:D};if(D===null||typeof D!="object"&&typeof D!="function")return $;if(N=E?I:O){if(N.has(D))return N.get(D);N.set(D,$)}for(const F in D)F!=="default"&&{}.hasOwnProperty.call(D,F)&&((L=(N=Object.defineProperty)&&Object.getOwnPropertyDescriptor(D,F))&&(L.get||L.set)?N($,F,L):$[F]=D[F]);return $})(k,T)}let r="";function s(k,T){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(O){return(0,e.isFunction)(k[O])})),(0,e.isFunction)(k[r])?k[r](T):!1}function i(k,T,O){let I=k;do{if(s(I,T))return!0;if(I===O)return!1;I=I.parentNode}while(I);return!1}function a(k,T,O,I){if(!k)return;const D={capture:!0,...I};k.addEventListener?k.addEventListener(T,O,D):k.attachEvent?k.attachEvent("on"+T,O):k["on"+T]=O}function l(k,T,O,I){if(!k)return;const D={capture:!0,...I};k.removeEventListener?k.removeEventListener(T,O,D):k.detachEvent?k.detachEvent("on"+T,O):k["on"+T]=null}function c(k){let T=k.clientHeight;const O=k.ownerDocument.defaultView.getComputedStyle(k);return T+=(0,e.int)(O.borderTopWidth),T+=(0,e.int)(O.borderBottomWidth),T}function u(k){let T=k.clientWidth;const O=k.ownerDocument.defaultView.getComputedStyle(k);return T+=(0,e.int)(O.borderLeftWidth),T+=(0,e.int)(O.borderRightWidth),T}function d(k){let T=k.clientHeight;const O=k.ownerDocument.defaultView.getComputedStyle(k);return T-=(0,e.int)(O.paddingTop),T-=(0,e.int)(O.paddingBottom),T}function p(k){let T=k.clientWidth;const O=k.ownerDocument.defaultView.getComputedStyle(k);return T-=(0,e.int)(O.paddingLeft),T-=(0,e.int)(O.paddingRight),T}function g(k,T,O){const D=T===T.ownerDocument.body?{left:0,top:0}:T.getBoundingClientRect(),E=(k.clientX+T.scrollLeft-D.left)/O,N=(k.clientY+T.scrollTop-D.top)/O;return{x:E,y:N}}function h(k,T){const O=m(k,T,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:O}}function y(k,T){return m(k,T,"")}function m(k,T,O){let{x:I,y:D}=k,E=`translate(${I}${O},${D}${O})`;if(T){const N=`${typeof T.x=="string"?T.x:T.x+O}`,L=`${typeof T.y=="string"?T.y:T.y+O}`;E=`translate(${N}, ${L})`+E}return E}function b(k,T){return k.targetTouches&&(0,e.findInArray)(k.targetTouches,O=>T===O.identifier)||k.changedTouches&&(0,e.findInArray)(k.changedTouches,O=>T===O.identifier)}function C(k){if(k.targetTouches&&k.targetTouches[0])return k.targetTouches[0].identifier;if(k.changedTouches&&k.changedTouches[0])return k.changedTouches[0].identifier}function w(k){if(!k)return;let T=k.getElementById("react-draggable-style-el");T||(T=k.createElement("style"),T.type="text/css",T.id="react-draggable-style-el",T.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
417
|
-
`,T.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
418
|
-
`,k.getElementsByTagName("head")[0].appendChild(T)),k.body&&x(k.body,"react-draggable-transparent-selection")}function S(k){window.requestAnimationFrame?window.requestAnimationFrame(()=>{P(k)}):P(k)}function P(k){if(k)try{if(k.body&&M(k.body,"react-draggable-transparent-selection"),k.selection)k.selection.empty();else{const T=(k.defaultView||window).getSelection();T&&T.type!=="Caret"&&T.removeAllRanges()}}catch{}}function x(k,T){k.classList?k.classList.add(T):k.className.match(new RegExp(`(?:^|\\s)${T}(?!\\S)`))||(k.className+=` ${T}`)}function M(k,T){k.classList?k.classList.remove(T):k.className=k.className.replace(new RegExp(`(?:^|\\s)${T}(?!\\S)`,"g"),"")}return An}var ns={},_O;function BO(){if(_O)return ns;_O=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.canDragX=s,ns.canDragY=i,ns.createCoreData=l,ns.createDraggableData=c,ns.getBoundPosition=n,ns.getControlPosition=a,ns.snapToGrid=r;var e=nh(),t=e1();function n(p,g,h){if(!p.props.bounds)return[g,h];let{bounds:y}=p.props;y=typeof y=="string"?y:u(y);const m=d(p);if(typeof y=="string"){const{ownerDocument:b}=m,C=b.defaultView;let w;if(y==="parent"?w=m.parentNode:w=m.getRootNode().querySelector(y),!(w instanceof C.HTMLElement))throw new Error('Bounds selector "'+y+'" could not find an element.');const S=w,P=C.getComputedStyle(m),x=C.getComputedStyle(S);y={left:-m.offsetLeft+(0,e.int)(x.paddingLeft)+(0,e.int)(P.marginLeft),top:-m.offsetTop+(0,e.int)(x.paddingTop)+(0,e.int)(P.marginTop),right:(0,t.innerWidth)(S)-(0,t.outerWidth)(m)-m.offsetLeft+(0,e.int)(x.paddingRight)-(0,e.int)(P.marginRight),bottom:(0,t.innerHeight)(S)-(0,t.outerHeight)(m)-m.offsetTop+(0,e.int)(x.paddingBottom)-(0,e.int)(P.marginBottom)}}return(0,e.isNum)(y.right)&&(g=Math.min(g,y.right)),(0,e.isNum)(y.bottom)&&(h=Math.min(h,y.bottom)),(0,e.isNum)(y.left)&&(g=Math.max(g,y.left)),(0,e.isNum)(y.top)&&(h=Math.max(h,y.top)),[g,h]}function r(p,g,h){const y=Math.round(g/p[0])*p[0],m=Math.round(h/p[1])*p[1];return[y,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 y=typeof g=="number"?(0,t.getTouch)(p,g):null;if(typeof g=="number"&&!y)return null;const m=d(h),b=h.props.offsetParent||m.offsetParent||m.ownerDocument.body;return(0,t.offsetXYFromParent)(y||p,b,h.props.scale)}function l(p,g,h){const y=!(0,e.isNum)(p.lastX),m=d(p);return y?{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 ns}var Nu={},oh={},HO;function zO(){if(HO)return oh;HO=1,Object.defineProperty(oh,"__esModule",{value:!0}),oh.default=e;function e(){}return oh}var jO;function qre(){if(jO)return Nu;jO=1,Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.default=void 0;var e=c(ge),t=l(Ah()),n=l(xs),r=e1(),s=BO(),i=nh(),a=l(zO());function l(m){return m&&m.__esModule?m:{default:m}}function c(m,b){if(typeof WeakMap=="function")var C=new WeakMap,w=new WeakMap;return(c=function(S,P){if(!P&&S&&S.__esModule)return S;var x,M,k={__proto__:null,default:S};if(S===null||typeof S!="object"&&typeof S!="function")return k;if(x=P?w:C){if(x.has(S))return x.get(S);x.set(S,k)}for(const T in S)T!=="default"&&{}.hasOwnProperty.call(S,T)&&((M=(x=Object.defineProperty)&&Object.getOwnPropertyDescriptor(S,T))&&(M.get||M.set)?x(k,T,M):k[T]=S[T]);return k})(m,b)}function u(m,b,C){return(b=d(b))in m?Object.defineProperty(m,b,{value:C,enumerable:!0,configurable:!0,writable:!0}):m[b]=C,m}function d(m){var b=p(m,"string");return typeof b=="symbol"?b:b+""}function p(m,b){if(typeof m!="object"||!m)return m;var C=m[Symbol.toPrimitive];if(C!==void 0){var w=C.call(m,b);if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(m)}const g={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let h=g.mouse,y=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",b=>{if(this.props.onMouseDown(b),!this.props.allowAnyClick&&typeof b.button=="number"&&b.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:w}=C;if(this.props.disabled||!(b.target instanceof w.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(b.target,this.props.handle,C)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(b.target,this.props.cancel,C))return;b.type==="touchstart"&&!this.props.allowMobileScroll&&b.preventDefault();const S=(0,r.getTouchIdentifier)(b);this.touchIdentifier=S;const P=(0,s.getControlPosition)(b,S,this);if(P==null)return;const{x,y:M}=P,k=(0,s.createCoreData)(this,x,M);(0,a.default)("DraggableCore: handleDragStart: %j",k),(0,a.default)("calling",this.props.onStart),!(this.props.onStart(b,k)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(w),this.dragging=!0,this.lastX=x,this.lastY=M,(0,r.addEvent)(w,h.move,this.handleDrag),(0,r.addEvent)(w,h.stop,this.handleDragStop))}),u(this,"handleDrag",b=>{const C=(0,s.getControlPosition)(b,this.touchIdentifier,this);if(C==null)return;let{x:w,y:S}=C;if(Array.isArray(this.props.grid)){let M=w-this.lastX,k=S-this.lastY;if([M,k]=(0,s.snapToGrid)(this.props.grid,M,k),!M&&!k)return;w=this.lastX+M,S=this.lastY+k}const P=(0,s.createCoreData)(this,w,S);if((0,a.default)("DraggableCore: handleDrag: %j",P),this.props.onDrag(b,P)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const k=document.createEvent("MouseEvents");k.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(k)}return}this.lastX=w,this.lastY=S}),u(this,"handleDragStop",b=>{if(!this.dragging)return;const C=(0,s.getControlPosition)(b,this.touchIdentifier,this);if(C==null)return;let{x:w,y:S}=C;if(Array.isArray(this.props.grid)){let k=w-this.lastX||0,T=S-this.lastY||0;[k,T]=(0,s.snapToGrid)(this.props.grid,k,T),w=this.lastX+k,S=this.lastY+T}const P=(0,s.createCoreData)(this,w,S);if(this.props.onStop(b,P)===!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",P),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",b=>(h=g.mouse,this.handleDragStart(b))),u(this,"onMouseUp",b=>(h=g.mouse,this.handleDragStop(b))),u(this,"onTouchStart",b=>(h=g.touch,this.handleDragStart(b))),u(this,"onTouchEnd",b=>(h=g.touch,this.handleDragStop(b)))}componentDidMount(){this.mounted=!0;const b=this.findDOMNode();b&&(0,r.addEvent)(b,g.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const b=this.findDOMNode();if(b){const{ownerDocument:C}=b;(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)(b,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 Nu.default=y,u(y,"displayName","DraggableCore"),u(y,"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,b){if(m[b]&&m[b].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(y,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Nu}var GO;function Yre(){return GO||(GO=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(ge),n=d(Ah()),r=d(xs),s=Wre(),i=e1(),a=BO(),l=nh(),c=d(qre()),u=d(zO());function d(C){return C&&C.__esModule?C:{default:C}}function p(C,w){if(typeof WeakMap=="function")var S=new WeakMap,P=new WeakMap;return(p=function(x,M){if(!M&&x&&x.__esModule)return x;var k,T,O={__proto__:null,default:x};if(x===null||typeof x!="object"&&typeof x!="function")return O;if(k=M?P:S){if(k.has(x))return k.get(x);k.set(x,O)}for(const I in x)I!=="default"&&{}.hasOwnProperty.call(x,I)&&((T=(k=Object.defineProperty)&&Object.getOwnPropertyDescriptor(x,I))&&(T.get||T.set)?k(O,I,T):O[I]=x[I]);return O})(C,w)}function g(){return g=Object.assign?Object.assign.bind():function(C){for(var w=1;w<arguments.length;w++){var S=arguments[w];for(var P in S)({}).hasOwnProperty.call(S,P)&&(C[P]=S[P])}return C},g.apply(null,arguments)}function h(C,w,S){return(w=y(w))in C?Object.defineProperty(C,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):C[w]=S,C}function y(C){var w=m(C,"string");return typeof w=="symbol"?w:w+""}function m(C,w){if(typeof C!="object"||!C)return C;var S=C[Symbol.toPrimitive];if(S!==void 0){var P=S.call(C,w);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(C)}class b extends t.Component{static getDerivedStateFromProps(w,S){let{position:P}=w,{prevPropsPosition:x}=S;return P&&(!x||P.x!==x.x||P.y!==x.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:P,prevPropsPosition:x}),{x:P.x,y:P.y,prevPropsPosition:{...P}}):null}constructor(w){super(w),h(this,"onDragStart",(S,P)=>{if((0,u.default)("Draggable: onDragStart: %j",P),this.props.onStart(S,(0,a.createDraggableData)(this,P))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),h(this,"onDrag",(S,P)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",P);const x=(0,a.createDraggableData)(this,P),M={x:x.x,y:x.y,slackX:0,slackY:0};if(this.props.bounds){const{x:T,y:O}=M;M.x+=this.state.slackX,M.y+=this.state.slackY;const[I,D]=(0,a.getBoundPosition)(this,M.x,M.y);M.x=I,M.y=D,M.slackX=this.state.slackX+(T-M.x),M.slackY=this.state.slackY+(O-M.y),x.x=M.x,x.y=M.y,x.deltaX=M.x-this.state.x,x.deltaY=M.y-this.state.y}if(this.props.onDrag(S,x)===!1)return!1;this.setState(M)}),h(this,"onDragStop",(S,P)=>{if(!this.state.dragging||this.props.onStop(S,(0,a.createDraggableData)(this,P))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",P);const M={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:T,y:O}=this.props.position;M.x=T,M.y=O}this.setState(M)}),this.state={dragging:!1,dragged:!1,x:w.position?w.position.x:w.defaultPosition.x,y:w.position?w.position.y:w.defaultPosition.y,prevPropsPosition:{...w.position},slackX:0,slackY:0,isElementSVG:!1},w.position&&!(w.onDrag||w.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:w,bounds:S,children:P,defaultPosition:x,defaultClassName:M,defaultClassNameDragging:k,defaultClassNameDragged:T,position:O,positionOffset:I,scale:D,...E}=this.props;let N={},L=null;const F=!!!O||this.state.dragging,R=O||x,B={x:(0,a.canDragX)(this)&&F?this.state.x:R.x,y:(0,a.canDragY)(this)&&F?this.state.y:R.y};this.state.isElementSVG?L=(0,i.createSVGTransform)(B,I):N=(0,i.createCSSTransform)(B,I);const _=(0,s.clsx)(P.props.className||"",M,{[k]:this.state.dragging,[T]:this.state.dragged});return t.createElement(c.default,g({},E,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(P),{className:_,style:{...P.props.style,...N},transform:L}))}}e.default=b,h(b,"displayName","Draggable"),h(b,"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(b,"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})})(J0)),J0}var WO;function Kre(){if(WO)return Fu.exports;WO=1;const{default:e,DraggableCore:t}=Yre();return Fu.exports=e,Fu.exports.default=e,Fu.exports.DraggableCore=t,Fu.exports}var Xre=Kre();const Zre=Ps(Xre),Qre=vt(v.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),Jre=vt(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"),ese=({label:e,initialValue:t,value:n,setValue:r,disabled:s,fullWidth:i,white:a})=>{const{format:l}=ge.useContext(Pr);return v.jsx(v.Fragment,{children:v.jsx(gb,{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(Aa,{position:"end",sx:{color:a?"black":"white"},children:v.jsx(Jre,{})})})})},tse=vt(v.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),nse=({label:e,placeholder:t,values:n,value:r,setValue:s,white:i})=>{const[a,l]=ge.useState(!1);return v.jsx(v.Fragment,{children:v.jsx(Dg,{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(As,{...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(xr,{title:d.highlight?.tooltip,sx:{borderRadius:"24px"},children:v.jsx(Da,{variant:"filled",label:d.label,size:"small",...h,sx:{bgcolor:y=>d.highlight?.active?`${y.palette["gr-orange"].main}20`:`${y.palette["gr-grey"].main}20`,color:y=>y.palette["gr-base-dark"].main,"& .MuiChip-deleteIcon":{color:y=>y.palette["gr-base-dark"].main,"&:hover":{color:y=>y.palette["gr-base-dark"].main}},border:d.highlight?.active?"1px solid":"none",borderColor:y=>d.highlight?.active?y.palette["gr-orange"].main:"none"}},g)})}),popupIcon:v.jsx(tse,{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(RO,{sx:{color:i?"black !important":"white !important"}})}},limitTags:2,size:"small"})})},ose=({label:e,value:t,setValue:n,values:r,placeholder:s,disabled:i,fullWidth:a,white:l})=>{const c=u=>v.jsx(H0,{...u,sx:{color:l?"black !important":"white !important",...u.sx}});return v.jsx(v.Fragment,{children:v.jsxs($s,{fullWidth:a,focused:!0,children:[v.jsx(wi,{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(Ls,{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(pr,{sx:{mt:2},disabled:!0,value:"",children:v.jsx("em",{children:s})}),r.map(u=>v.jsx(pr,{value:u.value,children:u.label},u.value))]})]})})};function Re(){return Re=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},Re.apply(null,arguments)}function Ru(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 UO(e){return Rt}function rse(e){return ke("MuiSimpleTreeView",e)}Oe("MuiSimpleTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox"]);const qO={};function $u(e,t){const n=f.useRef(qO);return n.current===qO&&(n.current=e(t)),n}function rh(e,t,n,r){const s=$u(sse).current;return ise(s,e,t,n,r)&&ase(s,[e,t,n,r]),s.callback}function sse(){return{callback:null,cleanup:null,refs:[]}}function ise(e,t,n,r,s){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==s}function ase(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}}}}}}}const lse=e=>e.isPropagationStopped!==void 0,YO=()=>{const[e]=f.useState(()=>new zM),t=f.useCallback((...r)=>{const[s,i,a={}]=r;a.defaultMuiPrevented=!1,!(lse(a)&&a.isPropagationStopped())&&e.emit(s,i,a)},[e]),n=f.useCallback((r,s)=>(e.on(r,s),()=>{e.removeListener(r,s)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};YO.params={};const KO=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};KO.params={};const Lu={treeId:gt(e=>e.id.treeId)};let XO=0;const cse=()=>(XO+=1,`mui-tree-view-${XO}`),sh=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,t1=({params:e,store:t})=>{f.useEffect(()=>{const r=t.state.id;e.id===r.providedTreeId&&r.treeId!==void 0||t.set("id",Re({},r,{treeId:e.id??cse()}))},[t,e.id]);const n=Wt(t,Lu.treeId);return{getRootProps:()=>({id:n})}};t1.params={id:!0},t1.getInitialState=({id:e})=>({id:{treeId:void 0,providedTreeId:e}});const use=[YO,KO,t1],dse=["apiRef"],pse=e=>{let{props:{apiRef:t},plugins:n}=e,r=Ru(e.props,dse);const s=f.useMemo(()=>{const l={};return n.forEach(c=>{Object.assign(l,c.params)}),l},[n]),{forwardedProps:i,pluginParams:a}=f.useMemo(()=>{const l={},c={};Object.keys(r).forEach(d=>{const p=r[d];s[d]?l[d]=p:c[d]=p});const u=n.reduce((d,p)=>p.applyDefaultValuesToParams?p.applyDefaultValuesToParams({params:d}):d,l);return{forwardedProps:c,pluginParams:u}},[n,r,s]);return{forwardedProps:i,pluginParams:a,apiRef:t}},fse=e=>{const{plugins:t,instance:n,publicAPI:r,store:s,rootRef:i}=e,a=f.useCallback(u=>{let d=null,p=null;const g=[],h={};t.forEach(b=>{if(!b.itemPlugin)return;const C=b.itemPlugin({props:u,rootRef:d,contentRef:p});C?.rootRef&&(d=C.rootRef),C?.contentRef&&(p=C.contentRef),C?.propsEnhancers&&(g.push(C.propsEnhancers),Object.keys(C.propsEnhancers).forEach(w=>{h[w]=!0}))});const y=b=>C=>{const w={};return g.forEach(S=>{const P=S[b];P!=null&&Object.assign(w,P(C))}),w},m=Object.fromEntries(Object.keys(h).map(b=>[b,y(b)]));return{contentRef:p,rootRef:d,propsEnhancers:m}},[t]),l=f.useCallback(({itemId:u,children:d,idAttribute:p})=>{let g=d;for(let h=t.length-1;h>=0;h-=1){const y=t[h];y.wrapItem&&(g=y.wrapItem({instance:n,itemId:u,children:g,idAttribute:p}))}return g},[t,n]),c=f.useCallback(({children:u})=>{let d=u;for(let p=t.length-1;p>=0;p-=1){const g=t[p];g.wrapRoot&&(d=g.wrapRoot({children:d}))}return d},[t]);return f.useMemo(()=>({runItemPlugins:a,wrapItem:l,wrapRoot:c,instance:n,publicAPI:r,store:s,rootRef:i}),[a,l,c,n,r,s,i])};function hse(e){return e.current==null&&(e.current={}),e}function gse(e){const t=f.useRef({});return e?hse(e):t}const mse=({plugins:e,rootRef:t,props:n})=>{const r=f.useMemo(()=>[...use,...e],[e]),{pluginParams:s,forwardedProps:i,apiRef:a}=pse({plugins:r,props:n}),l=$u(()=>({})).current,c=gse(a),u=f.useRef(null),d=rh(u,t),p=$u(()=>{const b={};for(const C of r)C.getInitialState&&Object.assign(b,C.getInitialState(s));return new Jc(b)}).current,g=fse({plugins:r,instance:l,publicAPI:c.current,store:p,rootRef:u}),h=[],y=b=>{const C=b({instance:l,params:s,rootRef:u,plugins:r,store:p});C.getRootProps&&h.push(C.getRootProps),C.publicAPI&&Object.assign(c.current,C.publicAPI),C.instance&&Object.assign(l,C.instance)};return r.forEach(y),{getRootProps:(b={})=>{const C=Re({role:"tree"},i,b,{ref:d});return h.forEach(w=>{Object.assign(C,w(b))}),C},rootRef:d,contextValue:g}},n1=f.createContext(null);process.env.NODE_ENV!=="production"&&(n1.displayName="TreeViewContext");const oa=()=>{const e=f.useContext(n1);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},o1=f.createContext({classes:{},slots:{},slotProps:{}});process.env.NODE_ENV!=="production"&&(o1.displayName="TreeViewStyleContext");const ZO=()=>f.useContext(o1),r1={};function bse(e){const{contextValue:t,classes:n=r1,slots:r=r1,slotProps:s=r1,children:i}=e,a=f.useMemo(()=>({classes:n,slots:{collapseIcon:r.collapseIcon,expandIcon:r.expandIcon,endIcon:r.endIcon},slotProps:{collapseIcon:s.collapseIcon,expandIcon:s.expandIcon,endIcon:s.endIcon}}),[n,r.collapseIcon,r.expandIcon,r.endIcon,s.collapseIcon,s.expandIcon,s.endIcon]);return v.jsx(n1.Provider,{value:t,children:v.jsx(o1.Provider,{value:a,children:t.wrapRoot({children:i})})})}const s1=f[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],yse=s1&&s1!==f.useLayoutEffect?s1:e=>e();function $o(e){const t=$u(vse).current;return t.next=e,yse(t.effect),t.trampoline}function vse(){const e={next:void 0,callback:Cse,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Cse(){if(process.env.NODE_ENV!=="production")throw new Error("Base UI: Cannot call an event handler while rendering.")}const Rr="__TREE_VIEW_ROOT_PARENT_ID__",QO=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},ih=(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 JO(e){const{config:t,items:n,disabledItemsFocusable:r}=e,s={},i={},a={},l={};function c(u,d,p){const g=d??Rr,{metaLookup:h,modelLookup:y,orderedChildrenIds:m,childrenIndexes:b,itemsChildren:C}=ek({config:t,items:u,parentId:d,depth:p,isItemExpandable:(w,S)=>!!S&&S.length>0,otherItemsMetaLookup:s});Object.assign(s,h),Object.assign(i,y),a[g]=m,l[g]=b;for(const w of C)c(w.children||[],w.id,p+1)}return c(n,null,0),{disabledItemsFocusable:r,itemMetaLookup:s,itemModelLookup:i,itemOrderedChildrenIdsLookup:a,itemChildrenIndexesLookup:l,domStructure:"nested"}}function ek(e){const{config: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;wse({id:h,parentId:r,item:g,itemMetaLookup:a,siblingsMetaLookup:l});const y=t.getItemLabel?t.getItemLabel(g):g.label;if(y==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:y,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:QO(u),itemsChildren:d}}function wse({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 Dl=f.createContext(()=>-1);process.env.NODE_ENV!=="production"&&(Dl.displayName="TreeViewItemDepthContext");const Sse=[],We={domStructure:gt(e=>e.items.domStructure),disabledItemFocusable:gt(e=>e.items.disabledItemsFocusable),itemMetaLookup:gt(e=>e.items.itemMetaLookup),itemOrderedChildrenIdsLookup:gt(e=>e.items.itemOrderedChildrenIdsLookup),itemMeta:gt((e,t)=>e.items.itemMetaLookup[t??Rr]??null),itemOrderedChildrenIds:gt((e,t)=>e.items.itemOrderedChildrenIdsLookup[t??Rr]??Sse),itemModel:gt((e,t)=>e.items.itemModelLookup[t]),isItemDisabled:gt((e,t)=>ih(e.items.itemMetaLookup,t)),itemIndex:gt((e,t)=>{const n=e.items.itemMetaLookup[t];return n==null?-1:e.items.itemChildrenIndexesLookup[n.parentId??Rr][n.id]}),itemParentId:gt((e,t)=>e.items.itemMetaLookup[t]?.parentId??null),itemDepth:gt((e,t)=>e.items.itemMetaLookup[t]?.depth??0),canItemBeFocused:gt((e,t)=>e.items.disabledItemsFocusable||!ih(e.items.itemMetaLookup,t)),isItemSelectable:gt((e,t)=>e.items.itemMetaLookup[t]?.selectable??!0)},xse=e=>e.disableSelection===!0,Fl=({instance:e,params:t,store:n})=>{const r=f.useMemo(()=>({isItemDisabled:t.isItemDisabled,isItemSelectionDisabled:t.isItemSelectionDisabled,getItemLabel:t.getItemLabel,getItemChildren:t.getItemChildren,getItemId:t.getItemId}),[t.isItemDisabled,t.isItemSelectionDisabled,t.getItemLabel,t.getItemChildren,t.getItemId]),s=f.useCallback(C=>We.itemModel(n.state,C),[n]),i=f.useCallback(C=>We.itemMeta(n.state,C)?.parentId||null,[n]),a=$o(({itemId:C,shouldBeDisabled:w})=>{if(!n.state.items.itemMetaLookup[C])return;const S=Re({},n.state.items.itemMetaLookup);S[C]=Re({},S[C],{disabled:w??!S[C].disabled}),n.set("items",Re({},n.state.items,{itemMetaLookup:S}))}),l=f.useCallback(()=>{const C=w=>{const S=We.itemModel(n.state,w),P=Re({},S),x=We.itemOrderedChildrenIds(n.state,w);return x.length>0?P.children=x.map(C):delete P.children,P};return We.itemOrderedChildrenIds(n.state,null).map(C)},[n]),c=f.useCallback(C=>We.itemOrderedChildrenIds(n.state,C),[n]),u=C=>{const w=We.itemMeta(n.state,C);if(w==null)return null;const S=sh({treeId:Lu.treeId(n.state),itemId:C,id:w.idAttribute});return document.getElementById(S)},d=f.useRef(!1),p=f.useCallback(()=>{d.current=!0},[]),g=f.useCallback(()=>d.current,[]),h=({items:C,parentId:w,getChildrenCount:S})=>{const P=w??Rr,x=w==null?-1:We.itemDepth(n.state,w),{metaLookup:M,modelLookup:k,orderedChildrenIds:T,childrenIndexes:O}=ek({config:r,items:C,parentId:w,depth:x+1,isItemExpandable:S?D=>S(D)>0:()=>!1,otherItemsMetaLookup:We.itemMetaLookup(n.state)}),I={itemModelLookup:Re({},n.state.items.itemModelLookup,k),itemMetaLookup:Re({},n.state.items.itemMetaLookup,M),itemOrderedChildrenIdsLookup:Re({},n.state.items.itemOrderedChildrenIdsLookup,{[P]:T}),itemChildrenIndexesLookup:Re({},n.state.items.itemChildrenIndexesLookup,{[P]:O})};n.set("items",Re({},n.state.items,I))},y=$o(C=>{const w=Object.keys(n.state.items.itemMetaLookup).reduce((M,k)=>{const T=n.state.items.itemMetaLookup[k];return T.parentId===C?M:Re({},M,{[T.id]:T})},{}),S=Re({},n.state.items.itemOrderedChildrenIdsLookup),P=Re({},n.state.items.itemChildrenIndexesLookup),x=C??Rr;delete P[x],delete S[x],n.set("items",Re({},n.state.items,{itemMetaLookup:w,itemOrderedChildrenIdsLookup:S,itemChildrenIndexesLookup:P}))}),m=$o(C=>{const w=Re({},n.state.items.itemMetaLookup);for(const S of C)w[S]=Re({},w[S],{expandable:!0});n.set("items",Re({},n.state.items,{itemMetaLookup:w}))});f.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const C=JO({disabledItemsFocusable:t.disabledItemsFocusable,items:t.items,config:r});n.set("items",Re({},n.state.items,C))},[e,n,t.items,t.disabledItemsFocusable,r]);const b=$o((C,w)=>{t.onItemClick&&t.onItemClick(C,w)});return{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:s,getItemDOMElement:u,getItemTree:l,getItemOrderedChildrenIds:c,setIsItemDisabled:a,getParentId:i},instance:{getItemDOMElement:u,preventItemUpdates:p,areItemUpdatesPrevented:g,setItemChildren:h,removeChildren:y,addExpandableItems:m,handleItemClick:b}}};Fl.getInitialState=e=>({items:JO({items:e.items,disabledItemsFocusable:e.disabledItemsFocusable,config:{isItemDisabled:e.isItemDisabled,isItemSelectionDisabled:e.isItemSelectionDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel,getItemChildren:e.getItemChildren}})}),Fl.applyDefaultValuesToParams=({params:e})=>Re({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px",isItemSelectionDisabled:e.isItemSelectionDisabled??xse}),Fl.wrapRoot=({children:e})=>v.jsx(Dl.Provider,{value:We.itemDepth,children:e}),process.env.NODE_ENV!=="production"&&(Fl.wrapRoot.displayName="useTreeViewItems.wrapRoot"),Fl.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,isItemSelectionDisabled:!0,getItemLabel:!0,getItemChildren:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};function Pse(e){const{componentName:t,propName:n,controlled:r,defaultValue:s,warningPrefix:i="MUI X"}=e,[{initialDefaultValue:a,isControlled:l}]=f.useState({initialDefaultValue:s,isControlled:r!==void 0});l!==(r!==void 0)&&xn([`${i}: A component is changing the ${l?"":"un"}controlled ${n} state of ${t} to be ${l?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} 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(a)!==JSON.stringify(s)&&xn([`${i}: A component is changing the default ${n} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`],"error")}const tk=process.env.NODE_ENV==="production"?()=>{}:Pse,Nl=typeof document<"u"?f.useLayoutEffect:()=>{},i1=no(e=>e.expansion.expandedItems,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),Vn={expandedItemsRaw:gt(e=>e.expansion.expandedItems),expandedItemsMap:i1,flatList:no(We.itemOrderedChildrenIdsLookup,i1,(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[Rr]??[]).flatMap(n)}),triggerSlot:gt(e=>e.expansion.expansionTrigger),isItemExpanded:gt(i1,(e,t)=>e.has(t)),isItemExpandable:gt(We.itemMeta,(e,t)=>e?.expandable??!1)},nk=({isItemEditable:e,expansionTrigger:t})=>t||(e?"iconContainer":"content"),Ese=(e,t,n)=>{e.$$publishEvent(t,n)},ah=({instance:e,store:t,params:n})=>{tk({componentName:"Tree View",propName:"expandedItems",controlled:n.expandedItems,defaultValue:n.defaultExpandedItems}),Nl(()=>{const u=nk({isItemEditable:n.isItemEditable,expansionTrigger:n.expansionTrigger});t.state.expansion.expansionTrigger!==u&&t.set("expansion",Re({},t.state.expansion,{expansionTrigger:u}))},[t,n.isItemEditable,n.expansionTrigger]);const r=(u,d)=>{n.expandedItems===void 0&&t.set("expansion",Re({},t.state.expansion,{expandedItems:d})),n.onExpandedItemsChange?.(u,d)},s=$o(()=>{r(null,[])}),i=$o(({itemId:u,event:d,shouldBeExpanded:p})=>{const g=Vn.expandedItemsRaw(t.state);let h;p?h=[u].concat(g):h=g.filter(y=>y!==u),n.onItemExpansionToggle&&n.onItemExpansionToggle(d,u,p),r(d,h)}),a=$o(({itemId:u,event:d=null,shouldBeExpanded:p})=>{const g=Vn.isItemExpanded(t.state,u),h=p??!g;if(g===h)return;const y={isExpansionPrevented:!1,shouldBeExpanded:h,event:d,itemId:u};Ese(e,"beforeItemToggleExpansion",y),!y.isExpansionPrevented&&e.applyItemExpansion({itemId:u,event:d,shouldBeExpanded:h})}),l=$o(u=>Vn.isItemExpanded(t.state,u)),c=(u,d)=>{const p=We.itemMeta(t.state,d);if(p==null)return;const h=We.itemOrderedChildrenIds(t.state,p.parentId).filter(m=>Vn.isItemExpandable(t.state,m)&&!Vn.isItemExpanded(t.state,m)),y=Vn.expandedItemsRaw(t.state).concat(h);h.length>0&&(n.onItemExpansionToggle&&h.forEach(m=>{n.onItemExpansionToggle(u,m,!0)}),r(u,y))};return Nl(()=>{const u=n.expandedItems;u!==void 0&&t.set("expansion",Re({},t.state.expansion,{expandedItems:u}))},[t,n.expandedItems]),{publicAPI:{setItemExpansion:a,isItemExpanded:l},instance:{setItemExpansion:a,applyItemExpansion:i,expandAllSiblings:c,resetItemExpansion:s}}},Ise=[];ah.applyDefaultValuesToParams=({params:e})=>Re({},e,{defaultExpandedItems:e.defaultExpandedItems??Ise}),ah.getInitialState=e=>({expansion:{expandedItems:e.expandedItems===void 0?e.defaultExpandedItems:e.expandedItems,expansionTrigger:nk(e)}}),ah.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const a1=(e,t)=>{let n=t.length-1;for(;n>=0&&!We.canItemBeFocused(e,t[n]);)n-=1;if(n!==-1)return t[n]},ok=(e,t)=>{const n=We.itemMeta(e,t);if(!n)return null;const r=We.itemOrderedChildrenIds(e,n.parentId),s=We.itemIndex(e,t);if(s===0)return n.parentId;let i=s-1;for(;!We.canItemBeFocused(e,r[i])&&i>=0;)i-=1;if(i===-1)return n.parentId==null?null:ok(e,n.parentId);let a=r[i],l=a1(e,We.itemOrderedChildrenIds(e,a));for(;Vn.isItemExpanded(e,a)&&l!=null;)a=l,l=a1(e,We.itemOrderedChildrenIds(e,a));return a},lh=(e,t)=>{if(Vn.isItemExpanded(e,t)){const r=We.itemOrderedChildrenIds(e,t).find(s=>We.canItemBeFocused(e,s));if(r!=null)return r}let n=We.itemMeta(e,t);for(;n!=null;){const r=We.itemOrderedChildrenIds(e,n.parentId),s=We.itemIndex(e,n.id);if(s<r.length-1){let i=s+1;for(;!We.canItemBeFocused(e,r[i])&&i<r.length-1;)i+=1;if(We.canItemBeFocused(e,r[i]))return r[i]}n=We.itemMeta(e,n.parentId)}return null},rk=e=>{let t=null;for(;t==null||Vn.isItemExpanded(e,t);){const n=We.itemOrderedChildrenIds(e,t),r=a1(e,n);if(r==null)return t;t=r}return t},ch=e=>We.itemOrderedChildrenIds(e,null).find(t=>We.canItemBeFocused(e,t)),sk=(e,t,n)=>{if(t===n)return[t,n];const r=We.itemMeta(e,t),s=We.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=We.itemParentId(e,l))),g&&!u&&(a.push(c),d=i.indexOf(c)!==-1,g=c!==null,!d&&g&&(c=We.itemParentId(e,c)));const h=u?l:c,y=We.itemOrderedChildrenIds(e,h),m=i[i.indexOf(h)-1],b=a[a.indexOf(h)-1];return y.indexOf(m)<y.indexOf(b)?[t,n]:[n,t]},Tse=(e,t,n)=>{const r=c=>{if(Vn.isItemExpandable(e,c)&&Vn.isItemExpanded(e,c))return We.itemOrderedChildrenIds(e,c)[0];let u=We.itemMeta(e,c);for(;u!=null;){const d=We.itemOrderedChildrenIds(e,u.parentId),p=We.itemIndex(e,u.id);if(p<d.length-1)return d[p+1];u=u.parentId?We.itemMeta(e,u.parentId):null}throw new Error("Invalid range")},[s,i]=sk(e,t,n),a=[s];let l=s;for(;l!==i;)l=r(l),We.isItemDisabled(e,l)||a.push(l);return a},Mse=e=>{let t=ch(e);const n=[];for(;t!=null;)n.push(t),t=lh(e,t);return n},l1=(e,t)=>t!==e.closest('*[role="treeitem"]'),ik=no(e=>e.selection.selectedItems,e=>Array.isArray(e)?e:e!=null?[e]:[]),ak=no(ik,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),Ut={selectedItemsRaw:gt(e=>e.selection.selectedItems),selectedItems:ik,selectedItemsMap:ak,enabled:gt(e=>e.selection.isEnabled),isMultiSelectEnabled:gt(e=>e.selection.isMultiSelectEnabled),isCheckboxSelectionEnabled:gt(e=>e.selection.isCheckboxSelectionEnabled),propagationRules:gt(e=>e.selection.selectionPropagation),isItemSelected:gt(ak,(e,t)=>e.has(t)),isFeatureEnabledForItem:gt(We.isItemSelectable,e=>e.selection.isEnabled,(e,t,n)=>t&&e),canItemBeSelected:gt(We.isItemDisabled,We.isItemSelectable,e=>e.selection.isEnabled,(e,t,n,r)=>n&&!e&&t)},uh=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},lk=({store:e,oldModel:t,newModel:n})=>{const r=new Map;return n.forEach(s=>{r.set(s,!0)}),{added:n.filter(s=>!Ut.isItemSelected(e.state,s)),removed:t.filter(s=>!r.has(s))}},Ose=({store:e,selectionPropagation:t,newModel:n,oldModel:r,additionalItemsToPropagate:s})=>{if(!t.descendants&&!t.parents)return n;let i=!1;const a=uh(n),l=lk({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),We.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}if(t.parents){const u=p=>a[p]?We.itemOrderedChildrenIds(e.state,p).every(u):!1,d=p=>{const g=We.itemParentId(e.state,p);if(g==null)return;We.itemOrderedChildrenIds(e.state,g).every(u)&&(i=!0,a[g]=!0,d(g))};d(c)}}),l.removed.forEach(c=>{if(t.parents){let u=We.itemParentId(e.state,c);for(;u!=null;)a[u]&&(i=!0,delete a[u]),u=We.itemParentId(e.state,u)}if(t.descendants){const u=d=>{d!==c&&(i=!0,delete a[d]),We.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}}),i?Object.keys(a):n},kse=gt((e,t)=>{if(Ut.isItemSelected(e,t))return"checked";let n=!1,r=!1;const s=a=>{a!==t&&(Ut.isItemSelected(e,a)?n=!0:r=!0),We.itemOrderedChildrenIds(e,a).forEach(s)};return s(t),Ut.propagationRules(e).parents?n&&r?"indeterminate":n&&!r?"checked":"empty":n?"indeterminate":"empty"}),Dse=({props:e})=>{const{itemId:t}=e,{store:n}=oa(),r=Wt(n,Ut.isCheckboxSelectionEnabled),s=Wt(n,Ut.isFeatureEnabledForItem,t),i=Wt(n,Ut.canItemBeSelected,t),a=Wt(n,kse,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&&Ut.canItemBeSelected(n.state,t)&&c.handleCheckboxSelection(d)},visible:r&&s,disabled:!i,checked:a==="checked",indeterminate:a==="indeterminate"})}}},Au=({store:e,params:t})=>{tk({componentName:"Tree View",propName:"selectedItems",controlled:t.selectedItems,defaultValue:t.defaultSelectedItems});const n=f.useRef(null),r=f.useRef({}),s=(g,h,y)=>{const m=Ut.selectedItemsRaw(e.state);let b;const C=Ut.isMultiSelectEnabled(e.state);if(C&&(t.selectionPropagation.descendants||t.selectionPropagation.parents)?b=Ose({store:e,selectionPropagation:t.selectionPropagation,newModel:h,oldModel:m,additionalItemsToPropagate:y}):b=h,t.onItemSelectionToggle)if(C){const w=lk({store:e,newModel:b,oldModel:m});t.onItemSelectionToggle&&(w.added.forEach(S=>{t.onItemSelectionToggle(g,S,!0)}),w.removed.forEach(S=>{t.onItemSelectionToggle(g,S,!1)}))}else t.onItemSelectionToggle&&b!==m&&(m!=null&&t.onItemSelectionToggle(g,m,!1),b!=null&&t.onItemSelectionToggle(g,b,!0));t.selectedItems===void 0&&e.set("selection",Re({},e.state.selection,{selectedItems:b})),t.onSelectedItemsChange?.(g,b)},i=({itemId:g,event:h=null,keepExistingSelection:y=!1,shouldBeSelected:m})=>{if(!Ut.enabled(e.state))return;let b;const C=Ut.isMultiSelectEnabled(e.state);if(y){const w=Ut.selectedItems(e.state),S=Ut.isItemSelected(e.state,g);S&&(m===!1||m==null)?b=w.filter(P=>P!==g):!S&&(m===!0||m==null)?b=[g].concat(w):b=w}else m===!1||m==null&&Ut.isItemSelected(e.state,g)?b=C?[]:null:b=C?[g]:g;s(h,b,[g]),n.current=g,r.current={}},a=(g,[h,y])=>{if(!Ut.isMultiSelectEnabled(e.state))return;let b=Ut.selectedItems(e.state).slice();Object.keys(r.current).length>0&&(b=b.filter(P=>!r.current[P]));const C=uh(b),w=Tse(e.state,h,y).filter(P=>We.isItemSelectable(e.state,P)),S=w.filter(P=>!C[P]);b=b.concat(S),s(g,b),r.current=uh(w)},l=(g,h)=>{if(n.current!=null){const[y,m]=sk(e.state,h,n.current);a(g,[y,m])}},c=(g,h)=>{a(g,[ch(e.state),h])},u=(g,h)=>{a(g,[h,rk(e.state)])},d=g=>{if(!Ut.isMultiSelectEnabled(e.state))return;const y=Mse(e.state);s(g,y),r.current=uh(y)},p=(g,h,y)=>{if(!Ut.isMultiSelectEnabled(e.state))return;let b=Ut.selectedItems(e.state).slice();Object.keys(r.current).length===0?(b.push(y),r.current={[h]:!0,[y]:!0}):(r.current[h]||(r.current={}),r.current[y]?(b=b.filter(C=>C!==h),delete r.current[h]):(b.push(y),r.current[y]=!0)),s(g,b)};return Nl(()=>{e.set("selection",{selectedItems:t.selectedItems===void 0?e.state.selection.selectedItems:t.selectedItems,isEnabled:!t.disableSelection,isMultiSelectEnabled:t.multiSelect,isCheckboxSelectionEnabled:t.checkboxSelection,selectionPropagation:{descendants:t.selectionPropagation.descendants,parents:t.selectionPropagation.parents}})},[e,t.selectedItems,t.multiSelect,t.checkboxSelection,t.disableSelection,t.selectionPropagation.descendants,t.selectionPropagation.parents]),{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{setItemSelection:i},instance:{setItemSelection:i,selectAllNavigableItems:d,expandSelectionRange:l,selectRangeFromStartToItem:c,selectRangeFromItemToEnd:u,selectItemFromArrowNavigation:p}}};Au.itemPlugin=Dse;const Fse=[],Nse={};Au.applyDefaultValuesToParams=({params:e})=>Re({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?Fse:null),selectionPropagation:e.selectionPropagation??Nse}),Au.getInitialState=e=>({selection:{selectedItems:e.selectedItems===void 0?e.defaultSelectedItems:e.selectedItems,isEnabled:!e.disableSelection,isMultiSelectEnabled:e.multiSelect,isCheckboxSelectionEnabled:e.checkboxSelection,selectionPropagation:e.selectionPropagation}}),Au.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0,selectionPropagation:!0};const ck=no(Ut.selectedItems,Vn.expandedItemsMap,We.itemMetaLookup,We.disabledItemFocusable,e=>We.itemOrderedChildrenIds(e,null),(e,t,n,r,s)=>{const i=e.find(l=>{if(!r&&ih(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||!ih(n,l));return a??null}),ra={defaultFocusableItemId:ck,isItemTheDefaultFocusableItem:gt(ck,(e,t)=>e===t),focusedItemId:gt(e=>e.focus.focusedItemId),isItemFocused:gt((e,t)=>e.focus.focusedItemId===t)},c1=({instance:e,params:t,store:n})=>{const r=$o(d=>{ra.focusedItemId(n.state)!==d&&n.set("focus",Re({},n.state.focus,{focusedItemId:d}))}),s=d=>{const p=We.itemMeta(n.state,d);return p&&(p.parentId==null||Vn.isItemExpanded(n.state,p.parentId))},i=(d,p)=>{const g=e.getItemDOMElement(p);g&&g.focus(),r(p),t.onItemFocus&&t.onItemFocus(d,p)},a=$o((d,p)=>{s(p)&&i(d,p)}),l=$o(()=>{const d=ra.focusedItemId(n.state);if(d==null)return;if(We.itemMeta(n.state,d)){const g=e.getItemDOMElement(d);g&&g.blur()}r(null)});zs(n,We.itemMetaLookup,()=>{const d=ra.focusedItemId(n.state);if(d==null||!!We.itemMeta(n.state,d))return;const g=ra.defaultFocusableItemId(n.state);if(g==null){r(null);return}i(null,g)});const c=d=>p=>{if(d.onFocus?.(p),p.defaultMuiPrevented)return;const g=ra.defaultFocusableItemId(n.state);p.target===p.currentTarget&&g!=null&&i(p,g)},u=d=>p=>{d.onBlur?.(p),!p.defaultMuiPrevented&&r(null)};return{getRootProps:d=>({onFocus:c(d),onBlur:u(d)}),publicAPI:{focusItem:a},instance:{focusItem:a,removeFocusedItem:l}}};c1.getInitialState=()=>({focus:{focusedItemId:null}}),c1.params={onItemFocus:!0};const Rse=[];function $se(e){f.useEffect(e,Rse)}const Vu=0;class u1{static create(){return new u1}currentId=Vu;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Vu,n()},t)}isStarted(){return this.currentId!==Vu}clear=()=>{this.currentId!==Vu&&(clearTimeout(this.currentId),this.currentId=Vu)};disposeEffect=()=>this.clear}function Lse(){const e=$u(u1.create).current;return $se(e.disposeEffect),e}const dh=(e,t)=>e.getAvailablePlugins().has(t),ys={isItemEditable:gt(e=>e.label?.isItemEditable,We.itemModel,(e,t,n)=>!t||e==null?!1:typeof e=="boolean"?e:e(t)),isItemBeingEdited:gt((e,t)=>t==null?!1:e.label?.editedItemId===t),isAnyItemBeingEdited:gt(e=>!!e.label?.editedItemId)},Ase=({props:e})=>{const{store:t}=oa(),{label:n,itemId:r}=e,[s,i]=f.useState(n),a=Wt(t,ys.isItemEditable,r),l=Wt(t,ys.isItemBeingEdited,r);return f.useEffect(()=>{l||i(n)},[l,n]),{propsEnhancers:{label:()=>({editable:a}),labelInput:({externalEventHandlers:c,interactions:u})=>a?{value:s??"","data-element":"labelInput",onChange:h=>{c.onChange?.(h),i(h.target.value)},onKeyDown:h=>{if(c.onKeyDown?.(h),h.defaultMuiPrevented)return;const y=h.target;h.key==="Enter"&&y.value?u.handleSaveItemLabel(h,y.value):h.key==="Escape"&&u.handleCancelItemLabelEditing(h)},onBlur:h=>{c.onBlur?.(h),!h.defaultMuiPrevented&&h.target.value&&u.handleSaveItemLabel(h,h.target.value)},autoFocus:!0,type:"text"}:{}}}},ni=({store:e,params:t})=>{const n=s=>{s!==null&&!ys.isItemEditable(e.state,s)||e.set("label",Re({},e.state.label,{editedItemId:s}))},r=(s,i)=>{if(!i)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",s].join(`
|
|
423
|
-
`));const a=e.state.items.itemMetaLookup[s];a.label!==i&&(e.set("items",Re({},e.state.items,{itemMetaLookup:Re({},e.state.items.itemMetaLookup,{[s]:Re({},a,{label:i})})})),t.onItemLabelChange&&t.onItemLabelChange(s,i))};return Nl(()=>{e.set("label",Re({},e.state.label,{isItemEditable:t.isItemEditable}))},[e,t.isItemEditable]),{instance:{setEditedItem:n,updateItemLabel:r},publicAPI:{setEditedItem:n,updateItemLabel:r}}};ni.itemPlugin=Ase,ni.applyDefaultValuesToParams=({params:e})=>Re({},e,{isItemEditable:e.isItemEditable??!1}),ni.getInitialState=e=>({label:{isItemEditable:e.isItemEditable,editedItemId:null}}),ni.params={onItemLabelChange:!0,isItemEditable:!0};function Vse(e){return!!e&&e.length===1&&!!e.match(/\S/)}const _se=500,uk=({instance:e,store:t,params:n})=>{const r=Gt(),s=f.useRef({}),i=f.useRef(""),a=Lse(),l=$o(m=>{s.current=m(s.current)}),c=Wt(t,We.itemMetaLookup);f.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const m={},b=C=>{m[C.id]=C.label.toLowerCase()};Object.values(c).forEach(b),s.current=m},[c,n.getItemId,e]);const u=m=>{const b=lh(t.state,m);return b===null?ch(t.state):b},d=(m,b)=>{let C=null;const w={};let S=b.length>1?m:u(m);for(;C==null&&!w[S];)s.current[S]?.startsWith(b)?C=S:(w[S]=!0,S=u(S));return C},p=(m,b)=>{const C=b.toLowerCase(),w=`${i.current}${C}`,S=d(m,w);if(S!=null)return i.current=w,S;const P=d(m,C);return P!=null?(i.current=C,P):(i.current="",null)},g=m=>Ut.canItemBeSelected(t.state,m),h=m=>!We.isItemDisabled(t.state,m)&&Vn.isItemExpandable(t.state,m);return{instance:{updateLabelMap:l,handleItemKeyDown:async(m,b)=>{if(m.defaultMuiPrevented||m.altKey||l1(m.target,m.currentTarget))return;const C=m.ctrlKey||m.metaKey,w=m.key,S=Ut.isMultiSelectEnabled(t.state);switch(!0){case(w===" "&&g(b)):{m.preventDefault(),S&&m.shiftKey?e.expandSelectionRange(m,b):e.setItemSelection({event:m,itemId:b,keepExistingSelection:S,shouldBeSelected:void 0});break}case w==="Enter":{dh(e,ni)&&ys.isItemEditable(t.state,b)&&!ys.isItemBeingEdited(t.state,b)?e.setEditedItem(b):h(b)?(e.setItemExpansion({event:m,itemId:b}),m.preventDefault()):g(b)&&(S?(m.preventDefault(),e.setItemSelection({event:m,itemId:b,keepExistingSelection:!0})):Ut.isItemSelected(t.state,b)||(e.setItemSelection({event:m,itemId:b}),m.preventDefault()));break}case w==="ArrowDown":{const P=lh(t.state,b);P&&(m.preventDefault(),e.focusItem(m,P),S&&m.shiftKey&&g(P)&&e.selectItemFromArrowNavigation(m,b,P));break}case w==="ArrowUp":{const P=ok(t.state,b);P&&(m.preventDefault(),e.focusItem(m,P),S&&m.shiftKey&&g(P)&&e.selectItemFromArrowNavigation(m,b,P));break}case(w==="ArrowRight"&&!r||w==="ArrowLeft"&&r):{if(C)return;if(Vn.isItemExpanded(t.state,b)){const P=lh(t.state,b);P&&(e.focusItem(m,P),m.preventDefault())}else h(b)&&(e.setItemExpansion({event:m,itemId:b}),m.preventDefault());break}case(w==="ArrowLeft"&&!r||w==="ArrowRight"&&r):{if(C)return;if(h(b)&&Vn.isItemExpanded(t.state,b))e.setItemExpansion({event:m,itemId:b}),m.preventDefault();else{const P=We.itemParentId(t.state,b);P&&(e.focusItem(m,P),m.preventDefault())}break}case w==="Home":{g(b)&&S&&C&&m.shiftKey?e.selectRangeFromStartToItem(m,b):e.focusItem(m,ch(t.state)),m.preventDefault();break}case w==="End":{g(b)&&S&&C&&m.shiftKey?e.selectRangeFromItemToEnd(m,b):e.focusItem(m,rk(t.state)),m.preventDefault();break}case w==="*":{e.expandAllSiblings(m,b),m.preventDefault();break}case(String.fromCharCode(m.keyCode)==="A"&&C&&S&&Ut.enabled(t.state)):{e.selectAllNavigableItems(m),m.preventDefault();break}case(!C&&!m.shiftKey&&Vse(w)):{a.clear();const P=p(b,w);P!=null?(e.focusItem(m,P),m.preventDefault()):i.current="",a.start(_se,()=>{i.current=""});break}}}}}};uk.params={};function Bse(e){return e.replace(/["\\]/g,"\\$&")}const d1=f.createContext(null);process.env.NODE_ENV!=="production"&&(d1.displayName="TreeViewChildrenItemContext");function p1(e){const{children:t,itemId:n=null,idAttribute:r}=e,{instance:s,store:i,rootRef:a}=oa(),l=f.useRef(new Map);f.useEffect(()=>{if(!a.current)return;const u=We.itemOrderedChildrenIds(i.state,n??null)??[],d=Bse(r??a.current.id);if(n!=null){const y=a.current.querySelector(`*[id="${d}"][role="treeitem"]`);if(y&&y.getAttribute("aria-expanded")==="false")return}const p=a.current.querySelectorAll(`${n==null?"":`*[id="${d}"] `}[role="treeitem"]:not(*[id="${d}"] [role="treeitem"] [role="treeitem"])`),g=Array.from(p).map(y=>l.current.get(y.id));(g.length!==u.length||g.some((y,m)=>y!==u[m]))&&s.setJSXItemsOrderedChildrenIds(n??null,g)});const c=f.useMemo(()=>({registerChild:(u,d)=>l.current.set(u,d),unregisterChild:u=>l.current.delete(u),parentId:n}),[n]);return v.jsx(d1.Provider,{value:c,children:t})}process.env.NODE_ENV!=="production"&&(p1.propTypes={children:o.node,id:o.string});const dk={dataSource:gt(e=>e.lazyLoading?.dataSource),isItemLoading:gt((e,t)=>e.lazyLoading?.dataSource.loading[t??Rr]??!1),itemHasError:gt((e,t)=>!!e.lazyLoading?.dataSource.errors[t??Rr]),itemError:gt((e,t)=>e.lazyLoading?.dataSource.errors[t??Rr])},f1=e=>Array.isArray(e)?e.length>0&&e.some(f1):!!e,Hse=({itemId:e,children:t})=>{const{instance:n,store:r,publicAPI:s}=oa(),i=Wt(r,Vn.isItemExpandable,e),a=Wt(r,dk.isItemLoading,e),l=Wt(r,dk.itemHasError,e),c=f1(t)||i,u=Wt(r,Vn.isItemExpanded,e),d=Wt(r,ra.isItemFocused,e),p=Wt(r,Ut.isItemSelected,e),g=Wt(r,We.isItemDisabled,e),h=Wt(r,ys.isItemBeingEdited,e),y=Wt(r,ys.isItemEditable,e),m={expandable:c,expanded:u,focused:d,selected:p,disabled:g,editing:h,editable:y,loading:a,error:l},b=k=>{if(m.disabled)return;m.focused||n.focusItem(k,e);const T=Ut.isMultiSelectEnabled(r.state)&&(k.shiftKey||k.ctrlKey||k.metaKey);m.expandable&&!(T&&Vn.isItemExpanded(r.state,e))&&n.setItemExpansion({event:k,itemId:e})},C=k=>{if(!Ut.canItemBeSelected(r.state,e))return;!m.focused&&!m.editing&&n.focusItem(k,e),Ut.isMultiSelectEnabled(r.state)&&(k.shiftKey||k.ctrlKey||k.metaKey)?k.shiftKey?n.expandSelectionRange(k,e):n.setItemSelection({event:k,itemId:e,keepExistingSelection:!0}):n.setItemSelection({event:k,itemId:e,shouldBeSelected:!0})},w=k=>{const T=k.nativeEvent.shiftKey,O=Ut.isMultiSelectEnabled(r.state);O&&T?n.expandSelectionRange(k,e):n.setItemSelection({event:k,itemId:e,keepExistingSelection:O,shouldBeSelected:k.target.checked})},S=()=>{dh(n,ni)&&(h?n.setEditedItem(null):n.setEditedItem(e))};return{interactions:{handleExpansion:b,handleSelection:C,handleCheckboxSelection:w,toggleItemEditing:S,handleSaveItemLabel:(k,T)=>{dh(n,ni)&&ys.isItemBeingEdited(r.state,e)&&(n.updateItemLabel(e,T),S(),n.focusItem(k,e))},handleCancelItemLabelEditing:k=>{dh(n,ni)&&ys.isItemBeingEdited(r.state,e)&&(S(),n.focusItem(k,e))}},status:m,publicAPI:s}},zse=({props:e,rootRef:t,contentRef:n})=>{const{instance:r,store:s}=oa(),{children:i,disabled:a=!1,disableSelection:l=!1,label:c,itemId:u,id:d}=e,p=f.useContext(d1);if(p==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(`
|
|
424
|
-
`));const{registerChild:g,unregisterChild:h,parentId:y}=p,m=f1(i),b=f.useRef(null),C=rh(b,n),w=Wt(s,Lu.treeId);return Nl(()=>{const S=sh({itemId:u,treeId:w,id:d});return g(S,u),()=>{h(S),h(S)}},[s,r,g,h,u,d,w]),Nl(()=>r.insertJSXItem({id:u,idAttribute:d,parentId:y,expandable:m,disabled:a,selectable:!l}),[r,y,u,m,a,l,d]),f.useEffect(()=>{if(c)return r.mapLabelFromJSX(u,(b.current?.textContent??"").toLowerCase())},[r,u,c]),{contentRef:C,rootRef:t}},sa=({instance:e,store:t})=>{e.preventItemUpdates();const n=$o(i=>{if(t.state.items.itemMetaLookup[i.id]!=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.",`Two items were provided with the same id in the \`items\` prop: "${i.id}"`].join(`
|
|
425
|
-
`));return t.set("items",Re({},t.state.items,{itemMetaLookup:Re({},t.state.items.itemMetaLookup,{[i.id]:i}),itemModelLookup:Re({},t.state.items.itemModelLookup,{[i.id]:{id:i.id,label:i.label??""}})})),()=>{const a=Re({},t.state.items.itemMetaLookup),l=Re({},t.state.items.itemModelLookup);delete a[i.id],delete l[i.id],t.set("items",Re({},t.state.items,{itemMetaLookup:a,itemModelLookup:l}))}}),r=(i,a)=>{const l=i??Rr;t.set("items",Re({},t.state.items,{itemOrderedChildrenIdsLookup:Re({},t.state.items.itemOrderedChildrenIdsLookup,{[l]:a}),itemChildrenIndexesLookup:Re({},t.state.items.itemChildrenIndexesLookup,{[l]:QO(a)})}))},s=$o((i,a)=>(e.updateLabelMap(l=>(l[i]=a,l)),()=>{e.updateLabelMap(l=>{const c=Re({},l);return delete c[i],c})}));return{instance:{insertJSXItem:n,setJSXItemsOrderedChildrenIds:r,mapLabelFromJSX:s}}};sa.itemPlugin=zse,sa.wrapItem=({children:e,itemId:t,idAttribute:n})=>{const r=f.useContext(Dl);return v.jsx(p1,{itemId:t,idAttribute:n,children:v.jsx(Dl.Provider,{value:r+1,children:e})})},process.env.NODE_ENV!=="production"&&(sa.wrapItem.displayName="useTreeViewJSXItems.wrapItem"),sa.wrapRoot=({children:e})=>v.jsx(p1,{itemId:null,idAttribute:null,children:v.jsx(Dl.Provider,{value:0,children:e})}),process.env.NODE_ENV!=="production"&&(sa.wrapRoot.displayName="useTreeViewJSXItems.wrapRoot"),sa.params={};const jse=[Fl,ah,Au,c1,uk,sa],Gse=["slots","slotProps"],Wse=UO(),Use=e=>{const{classes:t}=e;return f.useMemo(()=>de({root:["root"],item:["item"],itemContent:["itemContent"],itemGroupTransition:["itemGroupTransition"],itemIconContainer:["itemIconContainer"],itemLabel:["itemLabel"],itemCheckbox:["itemCheckbox"]},rse,t),[t])},qse=Z("ul",{name:"MuiSimpleTreeView",slot:"Root"})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Yse=[],h1=f.forwardRef(function(t,n){const r=Wse({props:t,name:"MuiSimpleTreeView"}),{slots:s,slotProps:i}=r,a=Ru(r,Gse);process.env.NODE_ENV!=="production"&&r.items!=null&&xn(["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{getRootProps:l,contextValue:c}=mse({plugins:jse,rootRef:n,props:Re({},a,{items:Yse})}),u=Use(r),d=s?.root??qse,p=it({elementType:d,externalSlotProps:i?.root,className:u.root,getSlotProps:l,ownerState:r});return v.jsx(bse,{contextValue:c,classes:u,slots:s,slotProps:i,children:v.jsx(d,Re({},p))})});process.env.NODE_ENV!=="production"&&(h1.displayName="SimpleTreeView"),process.env.NODE_ENV!=="production"&&(h1.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 Kse=(e,t,n)=>typeof n=="function"?n(e,t):n,Xse=e=>{const{runItemPlugins:t,instance:n,publicAPI:r,store:s}=oa(),i=f.useContext(Dl),a=Wt(s,Kse,e.itemId,i),{id:l,itemId:c,label:u,children:d,rootRef:p}=e,{rootRef:g,contentRef:h,propsEnhancers:y}=t(e),{interactions:m,status:b}=Hse({itemId:c,children:d}),C=f.useRef(null),w=f.useRef(null),S=rh(p,g,C),P=rh(h,w),x=f.useRef(null),M=Wt(s,Lu.treeId),k=Wt(s,Ut.isCheckboxSelectionEnabled),T=sh({itemId:c,treeId:M,id:l}),O=Wt(s,ra.isItemTheDefaultFocusableItem,c),I={rootRefObject:C,contentRefObject:w,interactions:m},D=K=>W=>{K.onFocus?.(W),!W.defaultMuiPrevented&&!b.focused&&We.canItemBeFocused(s.state,c)&&W.currentTarget===W.target&&n.focusItem(W,c)},E=K=>W=>{if(K.onBlur?.(W),W.defaultMuiPrevented)return;const J=n.getItemDOMElement(c);b.editing||W.relatedTarget&&l1(W.relatedTarget,J)&&(W.target&&W.target?.dataset?.element==="labelInput"&&l1(W.target,J)||W.relatedTarget?.dataset?.element==="labelInput")||n.removeFocusedItem()},N=K=>W=>{K.onKeyDown?.(W),!(W.defaultMuiPrevented||W.target?.dataset?.element==="labelInput")&&n.handleItemKeyDown(W,c)},L=K=>W=>{K.onDoubleClick?.(W),!W.defaultMuiPrevented&&m.toggleItemEditing()},$=K=>W=>{K.onClick?.(W),n.handleItemClick(W,c),!(W.defaultMuiPrevented||x.current?.contains(W.target))&&(Vn.triggerSlot(s.state)==="content"&&m.handleExpansion(W),k||m.handleSelection(W))},F=K=>W=>{K.onMouseDown?.(W),!W.defaultMuiPrevented&&(W.shiftKey||W.ctrlKey||W.metaKey||b.disabled)&&W.preventDefault()},R=K=>W=>{K.onClick?.(W),!W.defaultMuiPrevented&&Vn.triggerSlot(s.state)==="iconContainer"&&m.handleExpansion(W)};return{getContextProviderProps:()=>({itemId:c,id:l}),getRootProps:(K={})=>{const W=Re({},zo(e),zo(K)),J=Re({},W,{ref:S,role:"treeitem",tabIndex:O?0:-1,id:T,"aria-expanded":b.expandable?b.expanded:void 0,"aria-disabled":b.disabled||void 0},K,{style:Re({},K.style??{},{"--TreeView-itemDepth":a}),onFocus:D(W),onBlur:E(W),onKeyDown:N(W)}),q=y.root?.(Re({},I,{externalEventHandlers:W}))??{};return Re({},J,q)},getContentProps:(K={})=>{const W=zo(K),J=Re({},W,K,{ref:P,onClick:$(W),onMouseDown:F(W),status:b});["expanded","selected","focused","disabled","editing","editable"].forEach(ce=>{b[ce]&&(J[`data-${ce}`]="")});const q=y.content?.(Re({},I,{externalEventHandlers:W}))??{};return Re({},J,q)},getGroupTransitionProps:(K={})=>{const W=zo(K);return Re({},W,{unmountOnExit:!0,component:"ul",role:"group",in:b.expanded,children:d},K)},getIconContainerProps:(K={})=>{const W=zo(K);return Re({},W,K,{onClick:R(W)})},getCheckboxProps:(K={})=>{const W=zo(K),J=Re({},W,{ref:x,"aria-hidden":!0},K),q=y.checkbox?.(Re({},I,{externalEventHandlers:W}))??{};return Re({},J,q)},getLabelProps:(K={})=>{const W=Re({},zo(K)),J=Re({},W,{children:u},K,{onDoubleClick:L(W)}),q=y.label?.(Re({},I,{externalEventHandlers:W}))??{};return Re({},q,J)},getLabelInputProps:(K={})=>{const W=zo(K),J=y.labelInput?.(Re({},I,{externalEventHandlers:W}))??{};return Re({},K,J)},getDragAndDropOverlayProps:(K={})=>{const W=zo(K),J=y.dragAndDropOverlay?.(Re({},I,{externalEventHandlers:W}))??{};return Re({},K,J)},getErrorContainerProps:(K={})=>{const W=zo(K);return Re({},W,K)},getLoadingContainerProps:(K={})=>{const W=zo(K);return Re({size:"12px",thickness:6},W,K)},rootRef:S,status:b,publicAPI:r}};function Zse(e){return ke("MuiTreeItem",e)}Oe("MuiTreeItem",["root","content","groupTransition","iconContainer","label","checkbox","labelInput","dragAndDropOverlay","errorIcon","loadingIcon","expanded","selected","focused","disabled","editable","editing"]);const Qse=vt(v.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),Jse=vt(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon"),eie=["ownerState"];function g1(e,t,n){return e!==void 0?e:t!==void 0?t:n}function pk(e){const{slots:t,slotProps:n,status:r}=e,{slots:s,slotProps:i}=ZO(),a={collapseIcon:g1(t?.collapseIcon,s.collapseIcon,Jse),expandIcon:g1(t?.expandIcon,s.expandIcon,Qse),endIcon:g1(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=it({elementType:c,externalSlotProps:p=>Re({},Zn(i[l],p),Zn(n?.[l],p)),ownerState:{}}),d=Ru(u,eie);return c?v.jsx(c,Re({},d)):null}process.env.NODE_ENV!=="production"&&(pk.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 tie=Z("div",{name:"MuiTreeItemDragAndDropOverlay",slot:"Root",shouldForwardProp:e=>Io(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})`:zn(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 fk(e){return e.action==null?null:v.jsx(tie,Re({},e))}process.env.NODE_ENV!=="production"&&(fk.propTypes={action:o.oneOf(["make-child","move-to-parent","reorder-above","reorder-below"]),style:o.object});function hk(e){const{children:t,itemId:n,id:r}=e,{wrapItem:s,instance:i,store:a}=oa(),l=Wt(a,Lu.treeId),c=sh({itemId:n,treeId:l,id:r});return v.jsx(f.Fragment,{children:s({children:t,itemId:n,instance:i,idAttribute:c})})}process.env.NODE_ENV!=="production"&&(hk.propTypes={children:o.node,id:o.string,itemId:o.string.isRequired});const nie=Z("input",{name:"MuiTreeItem",slot:"LabelInput"})(({theme:e})=>Re({},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}`}})),oie=["visible"],rie=["id","itemId","label","disabled","disableSelection","children","slots","slotProps","classes"],sie=UO(),iie=Z("li",{name:"MuiTreeItem",slot:"Root"})({listStyle:"none",margin:0,padding:0,outline:0}),aie=Z("div",{name:"MuiTreeItem",slot:"Content",shouldForwardProp:e=>Io(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})`:zn(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}))`:zn(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})`:zn(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}))`:zn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}})),lie=Z("div",{name:"MuiTreeItem",slot:"Label",shouldForwardProp:e=>Io(e)&&e!=="editable"})(({theme:e})=>Re({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),cie=Z("div",{name:"MuiTreeItem",slot:"IconContainer"})({width:16,display:"flex",flexShrink:0,justifyContent:"center",position:"relative",cursor:"inherit","& svg":{fontSize:18}}),uie=Z(xd,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0}),die=Z("div",{name:"MuiTreeItem",slot:"ErrorIcon"})({position:"absolute",right:-3,width:7,height:7,borderRadius:"50%",backgroundColor:"red"}),pie=Z(fi,{name:"MuiTreeItem",slot:"LoadingIcon"})({color:"text.primary"}),gk=Z(f.forwardRef((e,t)=>{const{visible:n}=e,r=Ru(e,oie);return n?v.jsx(Na,Re({},r,{ref:t})):null}),{name:"MuiTreeItem",slot:"Checkbox"})({padding:0});process.env.NODE_ENV!=="production"&&(gk.displayName="TreeItemCheckbox");const fie=e=>{const{classes:t}=ZO(),n=Re({},e,{root:ie(e?.root,t.root),content:ie(e?.content,t.itemContent),iconContainer:ie(e?.iconContainer,t.itemIconContainer),checkbox:ie(e?.checkbox,t.itemCheckbox),label:ie(e?.label,t.itemLabel),groupTransition:ie(e?.groupTransition,t.itemGroupTransition),labelInput:ie(e?.labelInput,t.itemLabelInput),dragAndDropOverlay:ie(e?.dragAndDropOverlay,t.itemDragAndDropOverlay),errorIcon:ie(e?.errorIcon,t.itemErrorIcon),loadingIcon:ie(e?.loadingIcon,t.itemLoadingIcon)});return de({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"]},Zse,n)},ph=f.forwardRef(function(t,n){const r=sie({props:t,name:"MuiTreeItem"}),{id:s,itemId:i,label:a,disabled:l,disableSelection:c,children:u,slots:d={},slotProps:p={},classes:g}=r,h=Ru(r,rie),{getContextProviderProps:y,getRootProps:m,getContentProps:b,getIconContainerProps:C,getCheckboxProps:w,getLabelProps:S,getGroupTransitionProps:P,getLabelInputProps:x,getDragAndDropOverlayProps:M,getErrorContainerProps:k,getLoadingContainerProps:T,status:O}=Xse({id:s,itemId:i,children:u,label:a,disabled:l,disableSelection:c}),I=fie(g),D=d.root??iie,E=it({elementType:D,getSlotProps:m,externalForwardedProps:h,externalSlotProps:p.root,additionalProps:{ref:n},ownerState:{},className:I.root}),N=d.content??aie,L=it({elementType:N,getSlotProps:b,externalSlotProps:p.content,ownerState:{},className:ie(I.content,O.expanded&&I.expanded,O.selected&&I.selected,O.focused&&I.focused,O.disabled&&I.disabled,O.editing&&I.editing,O.editable&&I.editable)}),$=d.iconContainer??cie,F=it({elementType:$,getSlotProps:C,externalSlotProps:p.iconContainer,ownerState:{},className:I.iconContainer}),R=d.label??lie,B=it({elementType:R,getSlotProps:S,externalSlotProps:p.label,ownerState:{},className:I.label}),_=d.checkbox??gk,V=it({elementType:_,getSlotProps:w,externalSlotProps:p.checkbox,ownerState:{},className:I.checkbox}),A=d.groupTransition??void 0,z=it({elementType:A,getSlotProps:P,externalSlotProps:p.groupTransition,ownerState:{},className:I.groupTransition}),G=d.labelInput??nie,U=it({elementType:G,getSlotProps:x,externalSlotProps:p.labelInput,ownerState:{},className:I.labelInput}),X=d.dragAndDropOverlay??fk,Y=it({elementType:X,getSlotProps:M,externalSlotProps:p.dragAndDropOverlay,ownerState:{},className:I.dragAndDropOverlay}),ee=d.errorIcon??die,oe=it({elementType:ee,getSlotProps:k,externalSlotProps:p.errorIcon,ownerState:{},className:I.errorIcon}),K=d.loadingIcon??pie,W=it({elementType:K,getSlotProps:T,externalSlotProps:p.loadingIcon,ownerState:{},className:I.loadingIcon});return v.jsx(hk,Re({},y(),{children:v.jsxs(D,Re({},E,{children:[v.jsxs(N,Re({},L,{children:[v.jsxs($,Re({},F,{children:[O.error&&v.jsx(ee,Re({},oe)),O.loading?v.jsx(K,Re({},W)):v.jsx(pk,{status:O,slots:d,slotProps:p})]})),v.jsx(_,Re({},V)),O.editing?v.jsx(G,Re({},U)):v.jsx(R,Re({},B)),v.jsx(X,Re({},Y))]})),u&&v.jsx(uie,Re({as:A},z))]}))}))});process.env.NODE_ENV!=="production"&&(ph.displayName="TreeItem"),process.env.NODE_ENV!=="production"&&(ph.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:ag,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 mk=({item:e,path:t})=>e.children.length===0?v.jsx(ph,{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(ph,{itemId:`${t}/${e.id}`,label:e.name,disabled:e.disabled,children:e.children.map(n=>v.jsx(mk,{item:n,path:`${t}/${e.id}`},n.id))})}),hie=({items:e})=>v.jsx(v.Fragment,{children:v.jsx(h1,{sx:{borderRadius:"16px",border:t=>`1px solid ${t.palette["gr-base-dark"].main}`,p:1.5},children:e.map(t=>v.jsx(mk,{item:t,path:"origin"},t.id))})}),gie=vt([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"),mie=({label:e,initialValue:t,value:n,setValue:r,disabled:s,fullWidth:i,white:a})=>v.jsx(v.Fragment,{children:v.jsx(hb,{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(gie,{style:{color:a?"black":"white"}})}}}}})}),bie=({label:e,initialValue:t,value:n,setValue:r,disabled:s,white:i,fullWidth:a})=>{const{format:l,singleShortcut:c}=ge.useContext(Pr);return v.jsx(v.Fragment,{children:v.jsx(Wp,{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}}}}})})},yie=({label:e,initialValue:t,value:n,setValue:r,calendars:s,disabled:i,white:a,fullWidth:l})=>{const{format:c,rangeShortcut:u}=ge.useContext(Pr);return v.jsx(v.Fragment,{children:v.jsx(eh,{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}}}}})})},vie=["props","steps"],Cie=Z(Li)(({theme:e})=>({overflow:"hidden",minWidth:Wc,backgroundColor:(e.vars||e).palette.background.paper})),wie=e=>{let{props:t,steps:n}=e,r=So(e,vie);const{localeText:s,slots:i,slotProps:a,displayStaticWrapperAs:l,autoFocus:c}=t,u=Qf(t),d=X0({steps:n,rangePositionResponse:u}),{providerProps:p,renderCurrentView:g}=Zc(ze({},r,{props:t,variant:l,autoFocusView:c??!1,viewContainerRole:null,localeText:s,getStepNavigation:d})),h=i?.layout??Cie,y=()=>v.jsx(Ol.Provider,{value:u,children:v.jsx(zc,ze({},p,{children:v.jsx(h,ze({},a?.layout,{slots:i,slotProps:a,sx:H_(p.contextValue.rootSx,a?.layout?.sx),className:ie(p.contextValue.rootClassName,a?.layout?.className),ref:p.contextValue.rootRef,children:g()}))}))});return process.env.NODE_ENV!=="production"&&(y.displayName="renderPicker"),{renderPicker:y}},m1=f.forwardRef(function(t,n){const r=G0(t,"MuiStaticDateRangePicker"),s=r.displayStaticWrapperAs??"mobile",i=ze({day:Jf},r.viewRenderers),a=ze({},r,{viewRenderers:i,displayStaticWrapperAs:s,views:["day"],openTo:"day",calendars:r.calendars??(s==="mobile"?1:2),slotProps:ze({},r.slotProps,{toolbar:ze({hidden:s==="desktop"},r.slotProps?.toolbar)})}),{renderPicker:l}=wie({ref:n,props:a,valueManager:Il,valueType:"date",validator:Du,steps:null});return l()});process.env.NODE_ENV!=="production"&&(m1.displayName="StaticDateRangePicker"),m1.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 Sie=({initialValue:e,value:t,setValue:n,calendars:r,disabled:s,white:i})=>{const{rangeShortcut:a}=ge.useContext(Pr);return v.jsx(m1,{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"}}}})},xie=e=>{const t=ge.useRef(null);return v.jsx(v.Fragment,{children:v.jsx(Zre,{nodeRef:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',children:v.jsx(wr,{...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"}})})})},Pie=({title:e,alert:t,action:n,fields:r,open:s,setOpen:i,loading:a,onClickSave:l})=>{const[c,u]=ge.useState(!1),d=(h,y)=>{switch(h.element){case"TextField":return v.jsx(bt,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(As,{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"})},y);case"SelectField":return v.jsx(bt,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(ose,{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})},y);case"DateField":return v.jsx(bt,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(ese,{label:h.label,initialValue:h.initialValue,value:h.value,setValue:h.setValue,disabled:h.disable||n.actionButton.loading,fullWidth:!0,white:!0})},y);case"CheckboxField":return v.jsx(bt,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(qd,{children:v.jsx(wc,{control:v.jsx(Na,{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})})},y);case"CheckboxGroup":return v.jsx(bt,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(qd,{children:h.checkboxs.map((m,b)=>v.jsx(wc,{control:v.jsx(Na,{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},b))})},y);case"RadioGroupField":return v.jsx(bt,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsxs($s,{sx:{mt:h.label.text?"none":"-7px"},children:[v.jsx(jg,{children:h.label.text}),v.jsx(s2,{value:h.value,onChange:m=>h.setValue(m.target.value),row:h.row,children:h.radios.map((m,b)=>v.jsx(wc,{value:m.value,control:v.jsx(r2,{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},b))})]})},y);case"AutoCompleteField":return v.jsx(bt,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(nse,{label:h.label,placeholder:"Seleccionar",values:h.values,value:h.value,setValue:h.setValue,white:!0})},y);case"ListField":return v.jsx(bt,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(ls,{dense:!0,sx:{borderRadius:"16px",border:m=>h.border?`1px solid ${m.palette["gr-grey"].dark}`:"none"},children:h.items.map((m,b)=>v.jsx(Jg,{secondaryAction:h.action,children:v.jsx(Ur,{primary:m.primaryText,secondary:m.secondaryText})},b))})},y);case"TreeviewField":return v.jsxs(bt,{size:h.ncolumn,sx:{mb:"20px"},children:[v.jsx($t,{variant:"body1",children:h.label}),v.jsx(hie,{items:h.items})]},y);case"TimeField":return v.jsx(bt,{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})},y);case"TypographyField":return v.jsx(bt,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx($t,{variant:"body1",children:h.text})},y);case"DatePickerField":return v.jsx(v.Fragment,{children:v.jsx(bt,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(bie,{label:h.label,initialValue:h.initialValue,value:h.value,setValue:h.setValue,disabled:h.disable||n.actionButton.loading,fullWidth:!0,white:!0})},y)});case"DateRangePickerField":return v.jsx(v.Fragment,{children:v.jsx(bt,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(yie,{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})},y)});case"DateRangeCalendarField":return v.jsx(v.Fragment,{children:v.jsx(bt,{size:h.ncolumn,sx:{mb:"20px"},children:v.jsx(Sie,{initialValue:h.initialValue,value:h.value,setValue:h.setValue,calendars:h.calendars,disabled:h.disable||n.actionButton.loading,white:h.white})},y)});case"SheetField":return v.jsx(v.Fragment,{children:v.jsx(bt,{size:h.ncolumn,sx:{mb:"20px"}},y)});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(y=>{y.setValue(y.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(b=>b.value!==b.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 ge.useEffect(()=>{s||p()},[s]),v.jsx(v.Fragment,{children:v.jsxs(Bg,{open:s,onClose:()=>g(r),PaperComponent:xie,"aria-labelledby":"draggable-dialog-title",children:[v.jsxs(Vw,{style:{cursor:"move",textAlign:"left",margin:0,padding:0,width:"100%"},id:"draggable-dialog-title",children:[e,v.jsx(kn,{sx:{position:"absolute",right:10,top:10},onClick:()=>g(r),children:v.jsx(Wr,{baseClassName:"material-symbols-rounded",sx:{color:h=>h.palette["gr-base-dark"].main,fontSize:"24px"},children:"close"})})]}),c&&v.jsx(Wd,{sx:{padding:0,margin:0,width:"100%",overflow:"hidden",minHeight:"85px"},children:v.jsxs(Cg,{icon:v.jsx(Qre,{}),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(jn,{sx:{mt:3.75},children:[v.jsx(Gn,{color:"gr-grey",size:"small",onClick:()=>u(!1),children:v.jsx("b",{children:t.actionButton.buttonText})}),v.jsx(Gn,{color:"gr-grey",size:"small",onClick:()=>{p(),i(!1)},children:v.jsx("b",{children:t.cancelButton.buttonText})})]}),children:[v.jsx(zC,{children:t.title}),v.jsx($t,{variant:"body2",children:t.message})]})}),v.jsxs(Wd,{sx:{padding:0,margin:0,position:"relative",overflow:a?"hidden":"auto"},children:[v.jsx(bt,{container:!0,spacing:2,sx:{mt:1,visibility:a?"hidden":"visible"},children:r.map((h,y)=>d(h,y))}),a&&v.jsx(jn,{sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:v.jsx(fi,{size:60})})]}),v.jsxs(Hg,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",width:"100%"},children:[v.jsx(Gn,{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(Gn,{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})]})]})})},ia={config:{isInitialized:!1},traits:{}},Eie="__mui_x_telemetry_";function bk(e){return Eie+btoa(e)}function b1(e,t,n){try{if(typeof window<"u"&&window[e])return window[e].setItem(bk(t),n),!0}catch{}return!1}function y1(e,t){try{if(typeof window<"u"&&window[e])return window[e].getItem(bk(t))}catch{}return null}function v1(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 Iie(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=y1("localStorage",e);if(t)return JSON.parse(t);const n=await Promise.resolve().then(()=>rle),s=await(await n.load({monitoring:!1})).get(),i=xl({},s.components);delete i.cookiesEnabled;const a=n.hashComponents(i),l=n.hashComponents(xl({},Iie(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 b1("localStorage",e,JSON.stringify(c)),c}catch{return null}};function Mie(){const e="anonymous_id",t=y1("localStorage",e);if(t)return t;const n=`anid_${v1(32)}`;return b1("localStorage",e,n)?n:""}function Oie(){const e="session_id",t=y1("sessionStorage",e);if(t)return t;const n=`sesid_${v1(32)}`;return b1("sessionStorage",e,n)?n:`sestp_${v1(32)}`}async function kie(){return ia.traits.sessionId=Oie(),ia.config.isInitialized||(ia.traits.anonymousId=Mie(),ia.config.isInitialized=!0),ia.traits.fingerprint||(ia.traits.fingerprint=await Tie()),ia}const Die=Object.freeze(Object.defineProperty({__proto__:null,default:kie},Symbol.toStringTag,{value:"Module"}));var C1=function(){return C1=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},C1.apply(this,arguments)};function vs(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 Cs(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 yk(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 vk="3.4.2";function _u(e,t){return new Promise(function(n){return setTimeout(n,e,t)})}function Fie(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})}):_u(Math.min(e,t))}function fh(e){return!!e&&typeof e.then=="function"}function Ck(e,t){try{var n=e();fh(n)?n.then(function(r){return t(!0,r)},function(r){return t(!1,r)}):t(!0,n)}catch(r){t(!1,r)}}function wk(e,t,n){return n===void 0&&(n=16),vs(this,void 0,void 0,function(){var r,s,i,a;return Cs(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,_u(0)]):[3,3]):[3,4];case 2:l.sent(),l.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Bu(e){e.then(void 0,function(){})}function oi(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 yr(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 Rl(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 Jo(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 wn(e,t){return[e[0]^t[0],e[1]^t[1]]}function Sk(e){return e=wn(e,[0,e[0]>>>1]),e=yr(e,[4283543511,3981806797]),e=wn(e,[0,e[0]>>>1]),e=yr(e,[3301882366,444984403]),e=wn(e,[0,e[0]>>>1]),e}function xk(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=yr(a,c),a=Rl(a,31),a=yr(a,u),s=wn(s,a),s=Rl(s,27),s=oi(s,i),s=oi(yr(s,[0,5]),[0,1390208809]),l=yr(l,u),l=Rl(l,33),l=yr(l,c),i=wn(i,l),i=Rl(i,31),i=oi(i,s),i=oi(yr(i,[0,5]),[0,944331445]);switch(a=[0,0],l=[0,0],n){case 15:l=wn(l,Jo([0,e.charCodeAt(d+14)],48));case 14:l=wn(l,Jo([0,e.charCodeAt(d+13)],40));case 13:l=wn(l,Jo([0,e.charCodeAt(d+12)],32));case 12:l=wn(l,Jo([0,e.charCodeAt(d+11)],24));case 11:l=wn(l,Jo([0,e.charCodeAt(d+10)],16));case 10:l=wn(l,Jo([0,e.charCodeAt(d+9)],8));case 9:l=wn(l,[0,e.charCodeAt(d+8)]),l=yr(l,u),l=Rl(l,33),l=yr(l,c),i=wn(i,l);case 8:a=wn(a,Jo([0,e.charCodeAt(d+7)],56));case 7:a=wn(a,Jo([0,e.charCodeAt(d+6)],48));case 6:a=wn(a,Jo([0,e.charCodeAt(d+5)],40));case 5:a=wn(a,Jo([0,e.charCodeAt(d+4)],32));case 4:a=wn(a,Jo([0,e.charCodeAt(d+3)],24));case 3:a=wn(a,Jo([0,e.charCodeAt(d+2)],16));case 2:a=wn(a,Jo([0,e.charCodeAt(d+1)],8));case 1:a=wn(a,[0,e.charCodeAt(d)]),a=yr(a,c),a=Rl(a,31),a=yr(a,u),s=wn(s,a)}return s=wn(s,[0,e.length]),i=wn(i,[0,e.length]),s=oi(s,i),i=oi(i,s),s=Sk(s),i=Sk(i),s=oi(s,i),i=oi(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 Nie(e){var t;return C1({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
|
|
426
|
-
`)},e)}function Rie(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}function $ie(e,t){return!Rie(e,t)}function w1(e){return parseInt(e)}function $r(e){return parseFloat(e)}function ws(e,t){return typeof e=="number"&&isNaN(e)?t:e}function Lr(e){return e.reduce(function(t,n){return t+(n?1:0)},0)}function Pk(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 Ek(e){return e&&typeof e=="object"&&"message"in e?e:{message:e}}function Ik(e){return typeof e!="function"}function Aie(e,t){var n=new Promise(function(r){var s=Date.now();Ck(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:Ek(i[1]),duration:l}});var c=i[1];if(Ik(c))return r(function(){return{value:c,duration:l}});r(function(){return new Promise(function(u){var d=Date.now();Ck(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:Ek(p[1]),duration:h});u({value:p[1],duration:h})})})})})});return Bu(n),function(){return n.then(function(s){return s()})}}function Tk(e,t,n){var r=Object.keys(e).filter(function(i){return $ie(n,i)}),s=wk(r,function(i){return Aie(e[i],t)});return Bu(s),function(){return vs(this,void 0,void 0,function(){var a,l,c,u,d;return Cs(this,function(p){switch(p.label){case 0:return[4,s];case 1:return a=p.sent(),[4,wk(a,function(g){var h=g();return Bu(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 Vie(e,t){var n=function(r){return Ik(r)?t(r):function(){var s=r();return fh(s)?s.then(t):t(s)}};return function(r){var s=e(r);return fh(s)?s.then(n):n(s)}}function S1(){var e=window,t=navigator;return Lr(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function Mk(){var e=window,t=navigator;return Lr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!S1()}function hh(){var e=window,t=navigator;return Lr(["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 $l(){var e=window,t=navigator;return Lr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function gh(){var e=window;return Lr(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function Ok(){var e,t,n=window;return Lr(["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 _ie(){var e=window;return Lr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function Bie(){var e=window;return Lr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Hie(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return Lr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function kk(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function zie(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function x1(){var e=hh(),t=Ok();if(!e&&!t)return!1;var n=window;return Lr(["onorientationchange"in n,"orientation"in n,e&&!("SharedWorker"in n),t&&/android/i.test(navigator.appVersion)])>=2}function jie(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(Gie())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=Wie(s),c=l[0],u=l[1],d=c.then(function(p){return Uie(p.getChannelData(0).subarray(n))},function(p){if(p.name==="timeout"||p.name==="suspended")return-3;throw p});return Bu(d),function(){return u(),d}}function Gie(){return $l()&&!gh()&&!Bie()}function Wie(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(y){return l(y.renderedBuffer)};var g=function(){setTimeout(function(){return c(Dk("timeout"))},Math.min(r,p+s-Date.now()))},h=function(){try{var y=e.startRendering();switch(fh(y)&&Bu(y),e.state){case"running":p=Date.now(),u&&g();break;case"suspended":document.hidden||d++,u&&d>=t?c(Dk("suspended")):setTimeout(h,n);break}}catch(m){c(m)}};h(),i=function(){u||(u=!0,p>0&&g())}});return[a,i]}function Uie(e){for(var t=0,n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function Dk(e){var t=new Error(e);return t.name=e,t}function P1(e,t,n){var r,s,i;return n===void 0&&(n=50),vs(this,void 0,void 0,function(){var a,l;return Cs(this,function(c){switch(c.label){case 0:a=document,c.label=1;case 1:return a.body?[3,3]:[4,_u(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(b){p=!0,d(b)};l.onload=g,l.onerror=h;var y=l.style;y.setProperty("display","block","important"),y.position="absolute",y.top="0",y.left="0",y.visibility="hidden",t&&"srcdoc"in l?l.srcdoc=t:l.src="about:blank",a.body.appendChild(l);var m=function(){var b,C;p||(((C=(b=l.contentWindow)===null||b===void 0?void 0:b.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,_u(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 qie(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"?Yie(s.style,c):s.setAttribute(l,c)}return s}function Yie(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 Kie="mmMwWLliI0O&1",Xie="48px",Ll=["monospace","sans-serif","serif"],Fk=["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 Zie(){return P1(function(e,t){var n=t.document,r=n.body;r.style.fontSize=Xie;var s=n.createElement("div"),i={},a={},l=function(m){var b=n.createElement("span"),C=b.style;return C.position="absolute",C.top="0",C.left="0",C.fontFamily=m,b.textContent=Kie,s.appendChild(b),b},c=function(m,b){return l("'".concat(m,"',").concat(b))},u=function(){return Ll.map(l)},d=function(){for(var m={},b=function(P){m[P]=Ll.map(function(x){return c(P,x)})},C=0,w=Fk;C<w.length;C++){var S=w[C];b(S)}return m},p=function(m){return Ll.some(function(b,C){return m[C].offsetWidth!==i[b]||m[C].offsetHeight!==a[b]})},g=u(),h=d();r.appendChild(s);for(var y=0;y<Ll.length;y++)i[Ll[y]]=g[y].offsetWidth,a[Ll[y]]=g[y].offsetHeight;return Fk.filter(function(m){return p(h[m])})})}function Qie(){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 Jie(){var e=!1,t,n,r=eae(),s=r[0],i=r[1];if(!tae(s,i))t=n="";else{e=nae(i),oae(s,i);var a=E1(s),l=E1(s);a!==l?t=n="unstable":(n=a,rae(s,i),t=E1(s))}return{winding:e,geometry:t,text:n}}function eae(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function tae(e,t){return!!(t&&e.toDataURL)}function nae(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function oae(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 rae(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 E1(e){return e.toDataURL()}function sae(){var e=navigator,t=0,n;e.maxTouchPoints!==void 0?t=w1(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 iae(){return navigator.oscpu}function aae(){var e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))hh()&&_ie()||t.push(e.languages);else if(typeof e.languages=="string"){var r=e.languages;r&&t.push(r.split(","))}return t}function lae(){return window.screen.colorDepth}function cae(){return ws($r(navigator.deviceMemory),void 0)}function uae(){var e=screen,t=function(r){return ws(w1(r),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n}var dae=2500,pae=10,mh,I1;function fae(){if(I1===void 0){var e=function(){var t=T1();M1(t)?I1=setTimeout(e,dae):(mh=t,I1=void 0)};e()}}function Nk(){var e=this;return fae(),function(){return vs(e,void 0,void 0,function(){var t;return Cs(this,function(n){switch(n.label){case 0:return t=T1(),M1(t)?mh?[2,yk([],mh,!0)]:kk()?[4,zie()]:[3,2]:[3,2];case 1:n.sent(),t=T1(),n.label=2;case 2:return M1(t)||(mh=t),[2,t]}})})}}function hae(){var e=this,t=Nk();return function(){return vs(e,void 0,void 0,function(){var n,r;return Cs(this,function(s){switch(s.label){case 0:return[4,t()];case 1:return n=s.sent(),r=function(i){return i===null?null:Pk(i,pae)},[2,[r(n[0]),r(n[1]),r(n[2]),r(n[3])]]}})})}}function T1(){var e=screen;return[ws($r(e.availTop),null),ws($r(e.width)-$r(e.availWidth)-ws($r(e.availLeft),0),null),ws($r(e.height)-$r(e.availHeight)-ws($r(e.availTop),0),null),ws($r(e.availLeft),null)]}function M1(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function gae(){return ws(w1(navigator.hardwareConcurrency),void 0)}function mae(){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=-bae();return"UTC".concat(r>=0?"+":"").concat(Math.abs(r))}function bae(){var e=new Date().getFullYear();return Math.max($r(new Date(e,0,1).getTimezoneOffset()),$r(new Date(e,6,1).getTimezoneOffset()))}function yae(){try{return!!window.sessionStorage}catch{return!0}}function vae(){try{return!!window.localStorage}catch{return!0}}function Cae(){if(!(S1()||Mk()))try{return!!window.indexedDB}catch{return!0}}function wae(){return!!window.openDatabase}function Sae(){return navigator.cpuClass}function xae(){var e=navigator.platform;return e==="MacIntel"&&$l()&&!gh()?Hie()?"iPad":"iPhone":e}function Pae(){return navigator.vendor||""}function Eae(){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 Iae(){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 Mae(e){var t=e===void 0?{}:e,n=t.debug;return vs(this,void 0,void 0,function(){var r,s,i,a,l,c;return Cs(this,function(u){switch(u.label){case 0:return Oae()?(r=Tae(),s=Object.keys(r),i=(c=[]).concat.apply(c,s.map(function(d){return r[d]})),[4,kae(i)]):[2,void 0];case 1:return a=u.sent(),n&&Dae(r,a),l=s.filter(function(d){var p=r[d],g=Lr(p.map(function(h){return a[h]}));return g>p.length*.6}),l.sort(),[2,l]}})})}function Oae(){return $l()||x1()}function kae(e){var t;return vs(this,void 0,void 0,function(){var n,r,s,i,c,a,l,c;return Cs(this,function(u){switch(u.label){case 0:for(n=document,r=n.createElement("div"),s=new Array(e.length),i={},Rk(r),c=0;c<e.length;++c)a=qie(e[c]),a.tagName==="DIALOG"&&a.show(),l=n.createElement("div"),Rk(l),l.appendChild(a),r.appendChild(l),s[c]=a;u.label=1;case 1:return n.body?[3,3]:[4,_u(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 Rk(e){e.style.setProperty("display","block","important")}function Dae(e,t){for(var n="DOM blockers debug:\n```",r=0,s=Object.keys(e);r<s.length;r++){var i=s[r];n+=`
|
|
427
|
-
`.concat(i,":");for(var a=0,l=e[i];a<l.length;a++){var c=l[a];n+=`
|
|
428
|
-
`.concat(t[c]?"🚫":"➡️"," ").concat(c)}}console.log("".concat(n,"\n```"))}function Fae(){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 Nae(){if($k("inverted"))return!0;if($k("none"))return!1}function $k(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function Rae(){if(Lk("active"))return!0;if(Lk("none"))return!1}function Lk(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}var $ae=100;function Lae(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=$ae;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}}function Aae(){if(Al("no-preference"))return 0;if(Al("high")||Al("more"))return 1;if(Al("low")||Al("less"))return-1;if(Al("forced"))return 10}function Al(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function Vae(){if(Ak("reduce"))return!0;if(Ak("no-preference"))return!1}function Ak(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function _ae(){if(Vk("high"))return!0;if(Vk("standard"))return!1}function Vk(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var en=Math,xo=function(){return 0};function Bae(){var e=en.acos||xo,t=en.acosh||xo,n=en.asin||xo,r=en.asinh||xo,s=en.atanh||xo,i=en.atan||xo,a=en.sin||xo,l=en.sinh||xo,c=en.cos||xo,u=en.cosh||xo,d=en.tan||xo,p=en.tanh||xo,g=en.exp||xo,h=en.expm1||xo,y=en.log1p||xo,m=function(T){return en.pow(en.PI,T)},b=function(T){return en.log(T+en.sqrt(T*T-1))},C=function(T){return en.log(T+en.sqrt(T*T+1))},w=function(T){return en.log((1+T)/(1-T))/2},S=function(T){return en.exp(T)-1/en.exp(T)/2},P=function(T){return(en.exp(T)+1/en.exp(T))/2},x=function(T){return en.exp(T)-1},M=function(T){return(en.exp(2*T)-1)/(en.exp(2*T)+1)},k=function(T){return en.log(1+T)};return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:b(1e154),asin:n(.12312423423423424),asinh:r(1),asinhPf:C(1),atanh:s(.5),atanhPf:w(.5),atan:i(.5),sin:a(-1e300),sinh:l(1),sinhPf:S(1),cos:c(10.000000000123),cosh:u(1),coshPf:P(1),tan:d(-1e300),tanh:p(1),tanhPf:M(1),exp:g(1),expm1:h(1),expm1Pf:x(1),log1p:y(10),log1pPf:k(10),powPI:m(-100)}}var Hae="mmMwWLliI0fiflO&1",O1={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function zae(){return jae(function(e,t){for(var n={},r={},s=0,i=Object.keys(O1);s<i.length;s++){var a=i[s],l=O1[a],c=l[0],u=c===void 0?{}:c,d=l[1],p=d===void 0?Hae:d,g=e.createElement("span");g.textContent=p,g.style.whiteSpace="nowrap";for(var h=0,y=Object.keys(u);h<y.length;h++){var m=y[h],b=u[m];b!==void 0&&(g.style[m]=b)}n[a]=g,t.appendChild(e.createElement("br")),t.appendChild(g)}for(var C=0,w=Object.keys(O1);C<w.length;C++){var a=w[C];r[a]=n[a].getBoundingClientRect().width}return r})}function jae(e,t){return t===void 0&&(t=4e3),P1(function(n,r){var s=r.document,i=s.body,a=i.style;a.width="".concat(t,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",hh()?i.style.zoom="".concat(1/r.devicePixelRatio):$l()&&(i.style.zoom="reset");var l=s.createElement("div");return l.textContent=yk([],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 Gae(){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 Wae(){return navigator.pdfViewerEnabled}function Uae(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}var _k={fonts:Zie,domBlockers:Mae,fontPreferences:zae,audio:jie,screenFrame:hae,osCpu:iae,languages:aae,colorDepth:lae,deviceMemory:cae,screenResolution:uae,hardwareConcurrency:gae,timezone:mae,sessionStorage:yae,localStorage:vae,indexedDB:Cae,openDatabase:wae,cpuClass:Sae,platform:xae,plugins:Qie,canvas:Jie,touchSupport:sae,vendor:Pae,vendorFlavors:Eae,cookiesEnabled:Iae,colorGamut:Fae,invertedColors:Nae,forcedColors:Rae,monochrome:Lae,contrast:Aae,reducedMotion:Vae,hdr:_ae,math:Bae,videoCard:Gae,pdfViewerEnabled:Wae,architecture:Uae};function qae(e){return Tk(_k,e,[])}var Yae="$ if upgrade to Pro: https://fpjs.dev/pro";function Kae(e){var t=Xae(e),n=Zae(t);return{score:t,comment:Yae.replace(/\$/g,"".concat(n))}}function Xae(e){if(x1())return .4;if($l())return gh()?.5:.3;var t=e.platform.value||"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function Zae(e){return Pk(.99+.01*e,1e-4)}function Qae(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 k1(e){return JSON.stringify(e,function(t,n){return n instanceof Error?Nie(n):n},2)}function D1(e){return xk(Qae(e))}function Jae(e){var t,n=Kae(e);return{get visitorId(){return t===void 0&&(t=D1(this.components)),t},set visitorId(r){t=r},confidence:n,components:e,version:vk}}function Bk(e){return e===void 0&&(e=50),Fie(e,e*2)}function ele(e,t){var n=Date.now();return{get:function(r){return vs(this,void 0,void 0,function(){var s,i,a;return Cs(this,function(l){switch(l.label){case 0:return s=Date.now(),[4,e()];case 1:return i=l.sent(),a=Jae(i),(t||r?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(a.version,`
|
|
429
|
-
userAgent: `).concat(navigator.userAgent,`
|
|
430
|
-
timeBetweenLoadAndGet: `).concat(s-n,`
|
|
431
|
-
visitorId: `).concat(a.visitorId,`
|
|
432
|
-
components: `).concat(k1(i),"\n```")),[2,a]}})})}}}function tle(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(vk,"/npm-monitoring"),!0),e.send()}catch(t){console.error(t)}}function Hk(e){var t=e===void 0?{}:e,n=t.delayFallback,r=t.debug,s=t.monitoring,i=s===void 0?!0:s;return vs(this,void 0,void 0,function(){var a;return Cs(this,function(l){switch(l.label){case 0:return i&&tle(),[4,Bk(n)];case 1:return l.sent(),a=qae({debug:r}),[2,ele(a,r)]}})})}var nle={load:Hk,hashComponents:D1,componentsToDebugString:k1},ole=xk;const rle=Object.freeze(Object.defineProperty({__proto__:null,componentsToDebugString:k1,default:nle,getFullscreenElement:kk,getScreenFrame:Nk,hashComponents:D1,isAndroid:x1,isChromium:hh,isDesktopSafari:gh,isEdgeHTML:Mk,isGecko:Ok,isTrident:S1,isWebKit:$l,load:Hk,loadSources:Tk,murmurX64Hash128:ole,prepareForSources:Bk,sources:_k,transformSource:Vie,withIframe:P1},Symbol.toStringTag,{value:"Module"}));Jn.Core=Fj,Jn.CoreContext=Pr,Jn.CoreProvider=Nj,Jn.Form=Pie,Jn.GoodRabbitDarkTheme=nL,Jn.GoodRabbitLightTheme=oL,Jn.Table=_re,Jn.useSystemAlert=Gre,Jn.useTable=Bre,Object.defineProperty(Jn,Symbol.toStringTag,{value:"Module"})}));
|