"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[4169],{27943:(e,t,r)=>{r.d(t,{A:()=>R});var n=r(83673),o=r(6614),l=r(7552),i=r(93878),a=r(64761),s=r(60827),u=r(86259),c=r(18283),d=r(51148),p=r(31049),f=r(76819),g=r(69500);const h=["animation","className","component","height","style","variant","width"];let m,b,w,C,v=e=>e;const x=(0,a.i7)(m||(m=v`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`)),y=(0,a.i7)(b||(b=v`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`)),A=(0,d.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((({theme:e,ownerState:t})=>{const r=(0,u.l_)(e.shape.borderRadius)||"px",n=(0,u.db)(e.shape.borderRadius);return(0,o.A)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,c.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===t.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${r}/${Math.round(n/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===t.variant&&{borderRadius:"50%"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})}),(({ownerState:e})=>"pulse"===e.animation&&(0,a.AH)(w||(w=v`
      animation: ${0} 2s ease-in-out 0.5s infinite;
    `),x)),(({ownerState:e,theme:t})=>"wave"===e.animation&&(0,a.AH)(C||(C=v`
      position: relative;
      overflow: hidden;

      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
      -webkit-mask-image: -webkit-radial-gradient(white, black);

      &::after {
        animation: ${0} 2s linear 0.5s infinite;
        background: linear-gradient(
          90deg,
          transparent,
          ${0},
          transparent
        );
        content: '';
        position: absolute;
        transform: translateX(-100%); /* Avoid flash during server-side hydration */
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
      }
    `),y,(t.vars||t).palette.action.hover))),R=l.forwardRef((function(e,t){const r=(0,p.A)({props:e,name:"MuiSkeleton"}),{animation:l="pulse",className:a,component:u="span",height:c,style:d,variant:m="text",width:b}=r,w=(0,n.A)(r,h),C=(0,o.A)({},r,{animation:l,component:u,variant:m,hasChildren:Boolean(w.children)}),v=(e=>{const{classes:t,variant:r,animation:n,hasChildren:o,width:l,height:i}=e,a={root:["root",r,n,o&&"withChildren",o&&!l&&"fitContent",o&&!i&&"heightAuto"]};return(0,s.A)(a,f.E,t)})(C);return(0,g.jsx)(A,(0,o.A)({as:u,ref:t,className:(0,i.A)(v.root,a),ownerState:C},w,{style:(0,o.A)({width:b,height:c},d)}))}))},76819:(e,t,r)=>{r.d(t,{A:()=>i,E:()=>l});var n=r(55549),o=r(9577);function l(e){return(0,o.Ay)("MuiSkeleton",e)}const i=(0,n.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"])},14169:(e,t,r)=>{r.d(t,{z:()=>jt});var n=r(6614),o=r(7552),l=r(15152),i=r.n(l),a=r(48335),s=r(1074),u=r(91195),c=r(98114),d=r(61311),p=r(48231),f=r(58766),g=r(99270);const h=(0,f.s3)()&&null!=window.localStorage.getItem("DEBUG"),m=()=>{},b={debug:m,info:m,warn:m,error:m},w=["debug","info","warn","error"];function C(e,t,r=console){const n=w.indexOf(t);if(-1===n)throw new Error(`MUI X: Log level ${t} not recognized.`);return w.reduce(((t,o,l)=>(t[o]=l>=n?(...t)=>{const[n,...l]=t;r[o](`MUI X: ${e} - ${n}`,...l)}:m,t)),{})}class v{static create(e){return new v(e)}constructor(e){this.value=void 0,this.listeners=void 0,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.value,this.update=e=>{this.value=e,this.listeners.forEach((t=>t(e)))},this.value=e,this.listeners=new Set}}var x=r(89148);class y{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t,r={}){let n=this.events[e];n||(n={highPriority:new Map,regular:new Map},this.events[e]=n),r.isFirst?n.highPriority.set(t,!0):n.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const r=this.events[e];if(!r)return;const n=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let e=n.length-1;e>=0;e-=1){const o=n[e];r.highPriority.has(o)&&o.apply(this,t)}for(let e=0;e<o.length;e+=1){const n=o[e];r.regular.has(n)&&n.apply(this,t)}}once(e,t){const r=this;this.on(e,(function n(...o){r.removeListener(e,n),t.apply(r,o)}))}}const A=Symbol("mui.api_private");let R=0;var S=r(83673),I=r(89031);const M="none",k={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},P=(e,t)=>{const r=function(e,t){const r=o.useRef(),n=o.useRef();n.current||(n.current=function(e){const t=e.current?.[A];if(t)return t;const r={},n={state:r,store:v.create(r),instanceId:{id:R}};return R+=1,n.getPublicApi=()=>e.current,n.register=(t,r)=>{Object.keys(r).forEach((o=>{const l=r[o],i=n[o];if(!0===i?.spying?i.target=l:n[o]=l,"public"===t){const t=e.current,r=t[o];!0===r?.spying?r.target=l:t[o]=l}}))},n.register("private",{caches:{},eventManager:new y}),n}(r)),r.current||(r.current=function(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[A]:e.current}}(n));const l=o.useCallback(((...e)=>{const[r,o,l={}]=e;if(l.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(l)&&l.isPropagationStopped())return;const i=t.signature===x.HV.DataGridPro?{api:n.current.getPublicApi()}:{};n.current.eventManager.emit(r,o,l,i)}),[n,t.signature]),i=o.useCallback(((e,t,r)=>{n.current.eventManager.on(e,t,r);const o=n.current;return()=>{o.eventManager.removeListener(e,t)}}),[n]);return(0,g.P)(n,{subscribeEvent:i,publishEvent:l},"public"),e&&!e.current?.state&&(e.current=r.current),o.useImperativeHandle(e,(()=>r.current),[r]),o.useEffect((()=>{const e=n.current;return()=>{e.publishEvent("unmount")}}),[n]),n}(e,t);return(e=>{const t=o.useRef(null),r=o.useRef(null),n=o.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:r,virtualScrollerRef:n})})(r),(e=>{const t=(0,p.A)();e.current.state.theme||(e.current.state.theme=t);const r=o.useRef(!0);o.useEffect((()=>{r.current?r.current=!1:e.current.setState((e=>(0,n.A)({},e,{theme:t})))}),[e,t])})(r),((e,t)=>{const r=o.useCallback((e=>h?C(e,"debug",t.logger):t.logLevel?C(e,t.logLevel.toString(),t.logger):b),[t.logLevel,t.logger]);(0,g.P)(e,{getLogger:r},"private")})(r,t),(e=>{const t=o.useRef({}),[,r]=o.useState(),l=o.useCallback((e=>{t.current[e.stateId]=e}),[]),i=o.useCallback(((r,n)=>{let o;if(o=(0,f.Tn)(r)?r(e.current.state):r,e.current.state===o)return!1;let l=!1;const i=[];if(Object.keys(t.current).forEach((r=>{const n=t.current[r],a=n.stateSelector(e.current.state,e.current.instanceId),s=n.stateSelector(o,e.current.instanceId);s!==a&&(i.push({stateId:n.stateId,hasPropChanged:s!==n.propModel}),void 0!==n.propModel&&s!==n.propModel&&(l=!0))})),i.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${i[0].stateId}, therefore, you're not allowed to update ${i.map((e=>e.stateId)).join(", ")} in the same transaction.`);if(l||(e.current.state=o,e.current.publishEvent&&e.current.publishEvent("stateChange",o),e.current.store.update(o)),1===i.length){const{stateId:r,hasPropChanged:a}=i[0],s=t.current[r],u=s.stateSelector(o,e.current.instanceId);s.propOnChange&&a&&s.propOnChange(u,{reason:n,api:e.current}),l||e.current.publishEvent(s.changeEvent,u,{reason:n})}return!l}),[e]),a=o.useCallback(((t,r,o)=>e.current.setState((e=>(0,n.A)({},e,{[t]:r(e[t])})),o)),[e]),s={setState:i,forceUpdate:o.useCallback((()=>r((()=>e.current.state))),[e])},u={updateControlState:a,registerControlState:l};(0,g.P)(e,s,"public"),(0,g.P)(e,u,"private")})(r),(e=>{const t=o.useRef({}),r=o.useRef(!1),n=o.useCallback((e=>{!r.current&&e&&(r.current=!0,Object.values(e.appliers).forEach((e=>{e()})),r.current=!1)}),[]),l={registerPipeProcessor:o.useCallback(((e,r,o)=>{t.current[e]||(t.current[e]={processors:new Map,processorsAsArray:[],appliers:{}});const l=t.current[e];return l.processors.get(r)!==o&&(l.processors.set(r,o),l.processorsAsArray=Array.from(t.current[e].processors.values()),n(l)),()=>{t.current[e].processors.delete(r),t.current[e].processorsAsArray=Array.from(t.current[e].processors.values())}}),[n]),registerPipeApplier:o.useCallback(((e,r,n)=>(t.current[e]||(t.current[e]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[e].appliers[r]=n,()=>{const n=t.current[e].appliers,o=(0,S.A)(n,[r].map(I.A));t.current[e].appliers=o})),[]),requestPipeProcessorsApplication:o.useCallback((e=>{n(t.current[e])}),[n])},i={unstable_applyPipeProcessors:o.useCallback(((...e)=>{const[r,n,o]=e;if(!t.current[r])return n;const l=t.current[r].processorsAsArray;let i=n;for(let e=0;e<l.length;e+=1)i=l[e](i,o);return i}),[])};(0,g.P)(e,l,"private"),(0,g.P)(e,i,"public")})(r),(e=>{const t=o.useRef(new Map),r=o.useRef({}),n={registerStrategyProcessor:o.useCallback(((t,n,o)=>{const l=()=>{const e=r.current[n],o=(0,S.A)(e,[t].map(I.A));r.current[n]=o};r.current[n]||(r.current[n]={});const i=r.current[n],a=i[t];return i[t]=o,a&&a!==o?(t===e.current.getActiveStrategy(k[n])&&e.current.publishEvent("activeStrategyProcessorChange",n),l):l}),[e]),applyStrategyProcessor:o.useCallback(((t,n)=>{const o=e.current.getActiveStrategy(k[t]);if(null==o)throw new Error("Can't apply a strategy processor before defining an active strategy");const l=r.current[t];if(!l||!l[o])throw new Error(`No processor found for processor "${t}" on strategy "${o}"`);return(0,l[o])(n)}),[e]),getActiveStrategy:o.useCallback((e=>{const r=Array.from(t.current.entries()).find((([,t])=>t.group===e&&t.isAvailable()));return r?.[0]??M}),[]),setStrategyAvailability:o.useCallback(((r,n,o)=>{t.current.set(n,{group:r,isAvailable:o}),e.current.publishEvent("strategyAvailabilityChange")}),[e])};(0,g.P)(e,n,"private")})(r),((e,t)=>{const r=o.useCallback((e=>{if(null==t.localeText[e])throw new Error(`Missing translation for key ${e}.`);return t.localeText[e]}),[t.localeText]);e.current.register("public",{getLocaleText:r})})(r,t),r.current.register("private",{rootProps:t}),r},E=(e,t,r)=>{const n=o.useRef(!1);n.current||(t.current.state=e(t.current.state,r,t),n.current=!0)};var F=r(47434),H=r(3247),T=r(92179),O=r(94251);function D(e,t,r){if("string"==typeof e){if(r){const r=e.replace(/"/g,'""');return[t,"\n","\r",'"'].some((t=>e.includes(t)))?`"${r}"`:r}return e}return e}const z=(e,t)=>{const{delimiterCharacter:r,ignoreValueFormatter:n,shouldAppendQuotes:o}=t;let l;if(n){const t=e.colDef.type;l="number"===t?String(e.value):"date"===t||"dateTime"===t?e.value?.toISOString():"function"==typeof e.value?.toString?e.value.toString():e.value}else l=e.formattedValue;return D(l,r,o)};(0,O.f)(["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."]);class L{constructor(e){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=e}addValue(e){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),null==e?this.rowString+="":"function"==typeof this.options.sanitizeCellValue?this.rowString+=this.options.sanitizeCellValue(e,this.options.delimiterCharacter,this.options.shouldAppendQuotes):this.rowString+=e,this.isEmpty=!1}getRowString(){return this.rowString}}function j(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 r=document.createRange();r.selectNode(t);const n=window.getSelection();n.removeAllRanges(),n.addRange(r);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}var N=r(65111),$=r(83182),V=r(80163);const G=e=>(0,n.A)({},e,{columnMenu:{open:!1}});var B=r(20849);const U=(e,t,r)=>{const n=o.useRef(),l=o.useRef(`mui-${Math.round(1e9*Math.random())}`),i=o.useCallback((()=>{n.current=e.current.registerPipeProcessor(t,l.current,r)}),[e,r,t]);(0,B.g)((()=>{i()}));const a=o.useRef(!0);o.useEffect((()=>(a.current?a.current=!1:i(),()=>{n.current&&(n.current(),n.current=null)})),[i])},W=(e,t,r)=>{const n=o.useRef(),l=o.useRef(`mui-${Math.round(1e9*Math.random())}`),i=o.useCallback((()=>{n.current=e.current.registerPipeApplier(t,l.current,r)}),[e,r,t]);(0,B.g)((()=>{i()}));const a=o.useRef(!0);o.useEffect((()=>(a.current?a.current=!1:i(),()=>{n.current&&(n.current(),n.current=null)})),[i])};var _=r(36155),K=r(60378),q=r(48534),X=r(69500);const Y=(e,t,r)=>{const o=(0,K.Pd)({apiRef:r,columnsToUpsert:t.columns,initialState:t.initialState?.columns,columnVisibilityModel:t.columnVisibilityModel??t.initialState?.columns?.columnVisibilityModel??{},keepOnlyColumnsToUpsert:!0});return(0,n.A)({},e,{columns:o,pinnedColumns:e.pinnedColumns??_.u})};function Z(e){return t=>(0,n.A)({},t,{columns:e})}var Q=r(74795),J=r(33658);const ee=(e,t)=>(0,n.A)({},e,{density:t.initialState?.density??t.density??"standard"});var te=r(2220),re=r(4394);const ne=({apiRef:e,options:t})=>{const r=(0,V.OV)(e);return t.fields?t.fields.reduce(((e,t)=>{const n=r.find((e=>e.field===t));return n&&e.push(n),e}),[]):(t.allColumns?r:(0,V.iv)(e)).filter((e=>!e.disableExport))},oe=({apiRef:e})=>{const t=(0,te.qA)(e),r=(0,re.qj)(e),n=e.current.getSelectedRows(),o=t.filter((e=>"footer"!==r[e].type)),l=(0,re.$2)(e),i=l?.top?.map((e=>e.id))||[],a=l?.bottom?.map((e=>e.id))||[];return o.unshift(...i),o.push(...a),n.size>0?o.filter((e=>n.has(e))):o};var le=r(38175);const ie=(e,t)=>{const r=(0,N.q)(e,"useGridCsvExport"),n=t.ignoreValueFormatterDuringExport,l=("object"==typeof n?n?.csvExport:n)||!1,i=o.useCallback(((t={})=>(r.debug("Get data as CSV"),function(e){const{columns:t,rowIds:r,delimiterCharacter:n,includeHeaders:o,includeColumnGroupsHeaders:l,ignoreValueFormatter:i,apiRef:a,shouldAppendQuotes:s}=e,u=r.reduce(((e,r)=>`${e}${(({id:e,columns:t,getCellParams:r,delimiterCharacter:n,ignoreValueFormatter:o,shouldAppendQuotes:l})=>{const i=new L({delimiterCharacter:n,shouldAppendQuotes:l});return t.forEach((t=>{const a=r(e,t.field);i.addValue(z(a,{delimiterCharacter:n,ignoreValueFormatter:o,shouldAppendQuotes:l}))})),i.getRowString()})({id:r,columns:t,getCellParams:a.current.getCellParams,delimiterCharacter:n,ignoreValueFormatter:i,shouldAppendQuotes:s})}\r\n`),"").trim();if(!o)return u;const c=t.filter((e=>e.field!==T.f.field)),d=[];if(l){const e=a.current.getAllGroupDetails();let t=0;const r=c.reduce(((e,r)=>{const n=a.current.getColumnGroupPath(r.field);return e[r.field]=n,t=Math.max(t,n.length),e}),{});for(let o=0;o<t;o+=1){const t=new L({delimiterCharacter:n,sanitizeCellValue:D,shouldAppendQuotes:s});d.push(t),c.forEach((n=>{const l=(r[n.field]||[])[o],i=e[l];t.addValue(i?i.headerName||i.groupId:"")}))}}const p=new L({delimiterCharacter:n,sanitizeCellValue:D,shouldAppendQuotes:s});return c.forEach((e=>{p.addValue(e.headerName||e.field)})),d.push(p),`${d.map((e=>e.getRowString())).join("\r\n")}\r\n${u}`.trim()}({columns:ne({apiRef:e,options:t}),rowIds:(t.getRowsToExport??oe)({apiRef:e}),delimiterCharacter:t.delimiter||",",includeHeaders:t.includeHeaders??!0,includeColumnGroupsHeaders:t.includeColumnGroupsHeaders??!0,ignoreValueFormatter:l,apiRef:e,shouldAppendQuotes:t.shouldAppendQuotes??!0}))),[r,e,l]),a=o.useCallback((e=>{r.debug("Export data as CSV");const t=i(e);!function(e,t="csv",r=document.title||"untitled"){const n=`${r}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),r=document.createElement("a");return r.href=t,r.download=n,r.click(),void setTimeout((()=>{URL.revokeObjectURL(t)}))}throw new Error("MUI X: exportAs not supported.")}(new Blob([e?.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",e?.fileName)}),[r,i]),s={getDataAsCsv:i,exportDataAsCsv:a};(0,g.P)(e,s,"public");const u=o.useCallback(((e,t)=>t.csvOptions?.disableToolbarButton?e:[...e,{component:(0,X.jsx)(le.jX,{options:t.csvOptions}),componentName:"csvExport"}]),[]);U(e,"exportMenu",u)};var ae=r(89301),se=r(76959),ue=r(69639),ce=r(12274),de=r(24940),pe=r(92268);const fe=(e,t,r)=>{let o=e.paginationModel;const l=e.rowCount,i=r?.pageSize??o.pageSize,a=(0,pe.$_)(l,i);!r||r?.page===o.page&&r?.pageSize===o.pageSize||(o=r);const s=(0,pe.m6)(o.page,a);return s!==o.page&&(o=(0,n.A)({},o,{page:s})),(0,pe.RW)(o.pageSize,t),o};var ge=r(83726),he=r(94921),me=r(45175),be=r(15060);const we=(e,t,r,n)=>{const l=o.useCallback((()=>{e.current.registerStrategyProcessor(t,r,n)}),[e,n,r,t]);(0,B.g)((()=>{l()}));const i=o.useRef(!0);o.useEffect((()=>{i.current?i.current=!1:l()}),[l])};var Ce=r(43905);const ve=(e,t,r)=>{const o=t.filterModel??t.initialState?.filter?.filterModel??(0,be.T)();return(0,n.A)({},e,{filter:{filterModel:(0,Ce.L5)(o,t.disableMultipleColumnsFiltering,r),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},xe=e=>e.filteredRowsLookup;function ye(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function Ae(){return(0,ge.UI)(Object.values)}var Re=r(67129),Se=r(23392);const Ie=e=>(0,n.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}});var Me=r(87795),ke=r(59340),Pe=r(8751),Ee=r(10365),Fe=r(10930);const He=({currentColIndex:e,firstColIndex:t,lastColIndex:r,direction:n})=>{if("rtl"===n){if(e<r)return e+1}else if("ltr"===n&&e>t)return e-1;return null},Te=({currentColIndex:e,firstColIndex:t,lastColIndex:r,direction:n})=>{if("rtl"===n){if(e>t)return e-1}else if("ltr"===n&&e<r)return e+1;return null},Oe=(e,t)=>{const r=(0,n.A)({},(0,pe.N0)(t.autoPageSize),t.paginationModel??t.initialState?.pagination?.paginationModel);(0,pe.RW)(r.pageSize,t.signature);const o=t.rowCount??t.initialState?.pagination?.rowCount;return(0,n.A)({},e,{pagination:{paginationModel:r,rowCount:o}})};var De=r(38577);const ze=(e,t)=>(0,n.A)({},e,{preferencePanel:t.initialState?.preferencePanel??{open:!1}});var Le=r(62185),je=r(88729);const Ne=["id","field"],$e=["id","field"];(0,O.f)(["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/#server-side-persistence."],"error");var Ve=r(89037),Ge=r(65325);const Be=["id"],Ue=["id"];(0,O.f)(["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/#server-side-persistence."],"error");var We=r(59458);const _e=e=>(0,n.A)({},e,{editRows:{}});var Ke=r(74727),qe=r(43026);const Xe=(e,t,r)=>(r.current.caches.rows=(0,We.Z)({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),(0,n.A)({},e,{rows:(0,We.TW)({apiRef:r,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),Ye=e=>"full"===e.updates.type?(e=>{const t={[We.OL]:(0,n.A)({},(0,We.Mk)(),{children:e})};for(let r=0;r<e.length;r+=1){const n=e[r];t[n]={id:n,depth:0,parent:We.OL,type:"leaf",groupingKey:null}}return{groupingName:M,tree:t,treeDepths:{0:e.length},dataRowIds:e}})(e.updates.rows):(({previousTree:e,actions:t})=>{const r=(0,n.A)({},e),o={};for(let e=0;e<t.remove.length;e+=1){const n=t.remove[e];o[n]=!0,delete r[n]}for(let e=0;e<t.insert.length;e+=1){const n=t.insert[e];r[n]={id:n,depth:0,parent:We.OL,type:"leaf",groupingKey:null}}const l=r[We.OL];let i=[...l.children,...t.insert];return Object.values(o).length&&(i=i.filter((e=>!o[e]))),r[We.OL]=(0,n.A)({},l,{children:i}),{groupingName:M,tree:r,treeDepths:{0:i.length},dataRowIds:i}})({previousTree:e.previousTree,actions:e.updates.actions});var Ze=r(15665),Qe=r(82188),Je=r(41222);const et=(e,t)=>null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e],tt=(e,t)=>(0,n.A)({},e,{rowSelection:t.rowSelection?et(t.rowSelectionModel)??[]:[]});var rt=r(60827);var nt=r(14298);const ot=(e,t)=>{const r=t.sortModel??t.initialState?.sorting?.sortModel??[];return(0,n.A)({},e,{sorting:{sortModel:(0,nt.Zx)(r,t.disableMultipleColumnsSorting),sortedRows:[]}})};var lt=r(29641);function it(e){const{clientHeight:t,scrollTop:r,offsetHeight:n,offsetTop:o}=e,l=o+n;return n>t?o:l-t>r?l-t:o<r?o:void 0}var at=r(1629),st=r(35281);const ut={width:0,height:0},ct={isReady:!1,root:ut,viewportOuterSize:ut,viewportInnerSize:ut,contentSize:ut,minimumSize:ut,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},dt=e=>{const t=ct;return(0,n.A)({},e,{dimensions:t})};var pt=r(58977),ft=r(78617);const gt=e=>(0,n.A)({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),ht=(e,t,r)=>"number"==typeof e&&e>0?e:t;function mt(e){const{apiRef:t,lookup:r,columnIndex:n,rowId:o,minFirstColumnIndex:l,maxLastColumnIndex:i,columns:a}=e,s=a.length,u=a[n],c=t.current.getRow(o),d=t.current.getRowValue(c,u),p="function"==typeof u.colSpan?u.colSpan(d,c,u,t):u.colSpan;if(!p||1===p)return bt(r,o,n,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let f=u.computedWidth;for(let e=1;e<p;e+=1){const t=n+e;t>=l&&t<i&&(f+=a[t].computedWidth,bt(r,o,n+e,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(n+p,s-1),leftVisibleCellIndex:n})),bt(r,o,n,{spannedByColSpan:!1,cellProps:{colSpan:p,width:f}})}return{colSpan:p}}function bt(e,t,r,n){e[t]||(e[t]={}),e[t][r]=n}["MUI X: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join("\n"),["MUI X: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join("\n");var wt=r(20581);const Ct=(e,t,r)=>{if((0,wt.x)(e)){if(void 0!==r[e.field])throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${r[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join("\n"));return void(r[e.field]=t)}const{groupId:n,children:o}=e;o.forEach((e=>{Ct(e,[...t,n],r)}))},vt=e=>{if(!e)return{};const t={};return e.forEach((e=>{Ct(e,[],t)})),t},xt=(e,t,r)=>{const n=e=>t[e]??[],o=[],l=Math.max(...e.map((e=>n(e).length))),i=(e,t,r)=>(0,f.Hv)(n(e).slice(0,r+1),n(t).slice(0,r+1));for(let t=0;t<l;t+=1){const l=e.reduce(((e,o)=>{const l=n(o)[t]??null;if(0===e.length)return[{columnFields:[o],groupId:l}];const a=e[e.length-1],s=a.columnFields[a.columnFields.length-1];return a.groupId!==l||!i(s,o,t)||(u=s,c=o,r?.left&&r.left.includes(u)&&!r.left.includes(c)||r?.right&&!r.right.includes(u)&&r.right.includes(c))?[...e,{columnFields:[o],groupId:l}]:[...e.slice(0,e.length-1),{columnFields:[...a.columnFields,o],groupId:l}];var u,c}),[]);o.push(l)}return o},yt=["groupId","children"],At=e=>{let t={};return e.forEach((e=>{if((0,wt.x)(e))return;const{groupId:r,children:o}=e,l=(0,S.A)(e,yt);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const i=(0,n.A)({},l,{groupId:r}),a=At(o);if(void 0!==a[r]||void 0!==t[r])throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=(0,n.A)({},t,a,{[r]:i})})),(0,n.A)({},t)},Rt=(e,t,r)=>{if(!t.columnGroupingModel)return e;const o=(0,V.JR)(r),l=(0,V.TI)(r),i=At(t.columnGroupingModel??[]),a=vt(t.columnGroupingModel??[]),s=xt(o,a,r.current.state.pinnedColumns??{}),u=0===l.length?0:Math.max(...l.map((e=>a[e]?.length??0)));return(0,n.A)({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:s,maxDepth:u}})};var St=r(55730),It=r(32125),Mt=r(38813);let kt=!1;function Pt(){return void 0===kt&&(kt="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),kt}function Et(e,t){if(void 0!==t&&e.changedTouches){for(let r=0;r<e.changedTouches.length;r+=1){const n=e.changedTouches[r];if(n.identifier===t)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Ft(e,t,r,n){let o=e;return o+="Right"===n?t-r.left:r.right-t,o}function Ht(e){e.preventDefault(),e.stopImmediatePropagation()}const Tt=e=>(0,n.A)({},e,{columnResize:{resizingColumnField:""}}),Ot=(e,t)=>{const r=(0,p.A)(),l=(0,N.q)(e,"useGridColumnResize"),i=o.useRef(),a=o.useRef(),s=o.useRef(),u=o.useRef(),c=o.useRef([]),d=o.useRef([]),h=o.useRef([]),m=o.useRef([]),b=o.useRef(),w=o.useRef(),C=o.useRef([]),v=o.useRef([]),y=o.useRef(),A=o.useRef(),R=(0,Ke.A)(),S=o.useRef(),I=t=>{l.debug(`Updating width to ${t} for col ${i.current.field}`);const r=s.current.offsetWidth,n=t-r;i.current.computedWidth=t,i.current.width=t,i.current.flex=0,s.current.style.width=`${t}px`,s.current.style.minWidth=`${t}px`,s.current.style.maxWidth=`${t}px`;const o=u.current;o&&(o.style.width=`${t}px`,o.style.minWidth=`${t}px`,o.style.maxWidth=`${t}px`),c.current.forEach((e=>{const r=e;let o;o="1"===r.getAttribute("aria-colspan")?`${t}px`:`${r.offsetWidth+n}px`,r.style.width=o,r.style.minWidth=o,r.style.maxWidth=o})),d.current.forEach((e=>{const r=e;let o;o="1"===r.getAttribute("aria-colspan")?`${t}px`:`${r.offsetWidth+n}px`,r.style.setProperty("--width",o)}));const a=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,i.current.field);a===_.K.LEFT&&(Dt(b.current,"width",n),h.current.forEach((e=>{Dt(e,"left",n)})),C.current.forEach((e=>{Dt(e,"left",n)}))),a===_.K.RIGHT&&(Dt(w.current,"width",n),m.current.forEach((e=>{Dt(e,"right",n)})),v.current.forEach((e=>{Dt(e,"right",n)})))},M=t=>{if(D(),a.current){const e=a.current,r=e.timeStamp,n=e.clientX,o=e.clientY;if(t.timeStamp-r<300&&t.clientX===n&&t.clientY===o)return void(a.current=void 0)}i.current&&(e.current.setColumnWidth(i.current.field,i.current.width),l.debug(`Updating col ${i.current.field} with new width: ${i.current.width}`)),R.start(0,(()=>{e.current.publishEvent("columnResizeStop",null,t)}))},k=(t,n,o)=>{const l=e.current.rootElementRef.current;i.current=t,s.current=(0,Fe.Bx)(e.current.columnHeadersContainerRef.current,t.field);const a=l.querySelector(`.${se.x.headerFilterRow} [data-field="${t.field}"]`);a&&(u.current=a),c.current=(0,Fe.Rb)(e.current.columnHeadersContainerRef?.current,t.field),d.current=(0,Fe.Dq)(s.current,e.current),b.current=(0,Fe.YI)(e.current,"filler--pinnedLeft"),w.current=(0,Fe.YI)(e.current,"filler--pinnedRight");const p=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,i.current.field);h.current=p!==_.K.LEFT?[]:(0,Fe.iF)(e.current,s.current),m.current=p!==_.K.RIGHT?[]:(0,Fe.mH)(e.current,s.current),C.current=p!==_.K.LEFT?[]:(0,Fe.Zw)(e.current,s.current),v.current=p!==_.K.RIGHT?[]:(0,Fe.$c)(e.current,s.current),A.current=function(e,t){const r=e.classList.contains(se.x["columnSeparator--sideRight"])?"Right":"Left";return"rtl"===t?function(e){return"Right"===e?"Left":"Right"}(r):r}(n,r.direction),y.current=function(e,t,r){return"Left"===r?e-t.left:t.right-e}(o,s.current.getBoundingClientRect(),A.current)},P=(0,Q.A)(M),E=(0,Q.A)((t=>{if(0===t.buttons)return void P(t);let r=Ft(y.current,t.clientX,s.current.getBoundingClientRect(),A.current);r=(0,f.qE)(r,i.current.minWidth,i.current.maxWidth),I(r);const n={element:s.current,colDef:i.current,width:r};e.current.publishEvent("columnResize",n,t)})),H=(0,Q.A)((e=>{Et(e,S.current)&&M(e)})),T=(0,Q.A)((t=>{const r=Et(t,S.current);if(!r)return;if("mousemove"===t.type&&0===t.buttons)return void H(t);let n=Ft(y.current,r.x,s.current.getBoundingClientRect(),A.current);n=(0,f.qE)(n,i.current.minWidth,i.current.maxWidth),I(n);const o={element:s.current,colDef:i.current,width:n};e.current.publishEvent("columnResize",o,t)})),O=(0,Q.A)((t=>{const r=(0,Fe.fl)(t.target,se.x["columnSeparator--resizable"]);if(!r)return;Pt()||t.preventDefault();const n=t.changedTouches[0];null!=n&&(S.current=n.identifier);const o=(0,Fe.fl)(t.target,se.x.columnHeader),i=(0,Fe.Tq)(o),a=e.current.getColumn(i);l.debug(`Start Resize on col ${a.field}`),e.current.publishEvent("columnResizeStart",{field:i},t),k(a,r,n.clientX);const s=(0,ae.A)(t.currentTarget);s.addEventListener("touchmove",T),s.addEventListener("touchend",H)})),D=o.useCallback((()=>{const t=(0,ae.A)(e.current.rootElementRef.current);t.body.style.removeProperty("cursor"),t.removeEventListener("mousemove",E),t.removeEventListener("mouseup",P),t.removeEventListener("touchmove",T),t.removeEventListener("touchend",H),setTimeout((()=>{t.removeEventListener("click",Ht,!0)}),100),s.current&&(s.current.style.pointerEvents="unset")}),[e,s,E,P,T,H]),z=o.useCallback((({field:t})=>{e.current.setState((e=>(0,n.A)({},e,{columnResize:(0,n.A)({},e.columnResize,{resizingColumnField:t})}))),e.current.forceUpdate()}),[e]),L=o.useCallback((()=>{e.current.setState((e=>(0,n.A)({},e,{columnResize:(0,n.A)({},e.columnResize,{resizingColumnField:""})}))),e.current.forceUpdate()}),[e]),j=(0,Q.A)((({colDef:t},r)=>{if(0!==r.button)return;if(!r.currentTarget.classList.contains(se.x["columnSeparator--resizable"]))return;r.preventDefault(),l.debug(`Start Resize on col ${t.field}`),e.current.publishEvent("columnResizeStart",{field:t.field},r),k(t,r.currentTarget,r.clientX);const n=(0,ae.A)(e.current.rootElementRef.current);n.body.style.cursor="col-resize",a.current=r.nativeEvent,n.addEventListener("mousemove",E),n.addEventListener("mouseup",P),n.addEventListener("click",Ht,!0)})),$=(0,Q.A)(((r,o)=>{if(t.disableAutosize)return;if(0!==o.button)return;const l=e.current.state.columns.lookup[r.field];!1!==l.resizable&&e.current.autosizeColumns((0,n.A)({},t.autosizeOptions,{columns:[l.field]}))})),G=function(e){const t=o.useRef(),r=()=>(0,st.m5)(e),n=(0,ce.N)(e,r);return o.useEffect((()=>{t.current&&!1===n&&(t.current.resolve(),t.current=void 0)})),()=>{if(!t.current){if(!1===r())return Promise.resolve();t.current=function(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n}));return r.resolve=e,r.reject=t,r}()}return t.current}}(e),B=o.useRef(!1),U=o.useCallback((async t=>{const r=e.current.rootElementRef?.current;if(!r)return;if(B.current)return;B.current=!0;const o=(0,V.em)(e.current.state),l=(0,n.A)({},It.N,t,{columns:t?.columns??o.orderedFields});l.columns=l.columns.filter((e=>!1!==o.columnVisibilityModel[e]));const i=l.columns.map((t=>e.current.state.columns.lookup[t]));try{e.current.unstable_setColumnVirtualization(!1),await G();const t=function(e,t,r){const n={},o=e.current.rootElementRef.current;return o.classList.add(se.x.autosizing),r.forEach((r=>{const o=(0,Fe.j4)(e.current,r.field).map((e=>e.getBoundingClientRect().width??0)),l=t.includeOutliers?o:function(e,t){if(e.length<4)return e;const r=e.slice();r.sort(((e,t)=>e-t));const n=r[Math.floor(.25*r.length)],o=r[Math.floor(.75*r.length)-1],l=o-n,i=l<5?5:l*t;return r.filter((e=>e>n-i&&e<o+i))}(o,t.outliersFactor);if(t.includeHeaders){const t=(0,Fe.dL)(e.current,r.field);if(t){const e=t.querySelector(`.${se.x.columnHeaderTitle}`),r=t.querySelector(`.${se.x.columnHeaderTitleContainerContent}`),n=t.querySelector(`.${se.x.iconButtonContainer}`),o=t.querySelector(`.${se.x.menuIcon}`),i=e??r,a=window.getComputedStyle(t,null),s=parseInt(a.paddingLeft,10)+parseInt(a.paddingRight,10),u=i.scrollWidth+1+s+(n?.clientWidth??0)+(o?.clientWidth??0);l.push(u)}}const i=r.minWidth!==-1/0&&void 0!==r.minWidth,a=r.maxWidth!==1/0&&void 0!==r.maxWidth,s=i?r.minWidth:0,u=a?r.maxWidth:1/0,c=0===l.length?0:Math.max(...l);n[r.field]=(0,f.qE)(c,s,u)})),o.classList.remove(se.x.autosizing),n}(e,l,i),r=i.map((e=>(0,n.A)({},e,{width:t[e.field],computedWidth:t[e.field]})));if(l.expand){const n=o.orderedFields.map((e=>o.lookup[e])).filter((e=>!1!==o.columnVisibilityModel[e.field])).reduce(((e,r)=>e+(t[r.field]??r.computedWidth??r.width)),0),l=e.current.getRootDimensions().viewportInnerSize.width-n;if(l>0){const e=l/(r.length||1);r.forEach((t=>{t.width+=e,t.computedWidth+=e}))}}e.current.updateColumns(r),r.forEach(((t,r)=>{if(t.width!==i[r].width){const r=t.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t.field),colDef:t,width:r})}}))}finally{e.current.unstable_setColumnVirtualization(!0),B.current=!1}}),[e,G]);o.useEffect((()=>D),[D]),(0,Mt.A)((()=>{t.autosizeOnMount&&Promise.resolve().then((()=>{e.current.autosizeColumns(t.autosizeOptions)}))})),(0,F.h)(e,(()=>e.current.columnHeadersContainerRef?.current),"touchstart",O,{passive:Pt()}),(0,g.P)(e,{autosizeColumns:U},"public"),(0,x.cz)(e,"columnResizeStop",L),(0,x.cz)(e,"columnResizeStart",z),(0,x.cz)(e,"columnSeparatorMouseDown",j),(0,x.cz)(e,"columnSeparatorDoubleClick",$),(0,x.re)(e,"columnResize",t.onColumnResize),(0,x.re)(e,"columnWidthChange",t.onColumnWidthChange)};function Dt(e,t,r){e&&(e.style[t]=`${parseInt(e.style[t],10)+r}px`)}const zt=(e,t)=>{const r=P(e,t);return((e,t)=>{const r=(e=>{const{classes:t}=e;return o.useMemo((()=>(0,rt.A)({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},se.B,t)),[t])})({classes:t.classes}),l=o.useCallback((o=>{const l=(0,n.A)({},T.f,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),i=t.checkboxSelection,a=null!=o.lookup[T.t];return i&&!a?(o.lookup[T.t]=l,o.orderedFields=[T.t,...o.orderedFields]):!i&&a?(delete o.lookup[T.t],o.orderedFields=o.orderedFields.filter((e=>e!==T.t))):i&&a&&(o.lookup[T.t]=(0,n.A)({},l,o.lookup[T.t])),o}),[e,r,t.checkboxSelection]);U(e,"hydrateColumns",l)})(r,t),(e=>{we(e,M,"rowTreeCreation",Ye)})(r),E(dt,r,t),E(tt,r,t),E(Y,r,t),E(Xe,r,t),E(_e,r,t),E(Ie,r,t),E(ot,r,t),E(ze,r,t),E(ve,r,t),E(ee,r,t),E(Tt,r,t),E(Oe,r,t),E(gt,r,t),E(G,r,t),E(Rt,r,t),E(St.nu,r,t),((e,t)=>{const r=(0,N.q)(e,"useGridKeyboardNavigation"),n=(0,Se.h)(e,t).rows,l=(0,p.A)(),i=o.useMemo((()=>function(e,t){const r=(0,re.$2)(e)||{};return[...r.top||[],...t,...r.bottom||[]]}(e,n)),[e,n]),a="DataGrid"!==t.signature&&t.headerFilters,s=o.useCallback(((t,n,o="left")=>{const l=(0,te.em)(e),i=e.current.unstable_getCellColSpanInfo(n,t);i&&i.spannedByColSpan&&("left"===o?t=i.leftVisibleCellIndex:"right"===o&&(t=i.rightVisibleCellIndex));const a=l.findIndex((e=>e.id===n));r.debug(`Navigating to cell row ${a}, col ${t}`),e.current.scrollToIndexes({colIndex:t,rowIndex:a});const s=e.current.getVisibleColumns()[t].field;e.current.setCellFocus(n,s)}),[e,r]),u=o.useCallback(((t,n)=>{r.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(o,n)}),[e,r]),c=o.useCallback(((t,n)=>{r.debug(`Navigating to header filter col ${t}`),e.current.scrollToIndexes({colIndex:t});const o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFilterFocus(o,n)}),[e,r]),d=o.useCallback(((t,n,o)=>{r.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const{field:l}=e.current.getVisibleColumns()[t];e.current.setColumnGroupHeaderFocus(l,n,o)}),[e,r]),f=o.useCallback((e=>i[e]?.id),[i]),g=o.useCallback(((t,r)=>{const n=r.currentTarget.querySelector(`.${se.x.columnHeaderTitleContainerContent}`);if(n&&n.contains(r.target)&&t.field!==T.f.field)return;const o=e.current.getViewportPageSize(),p=t.field?e.current.getColumnIndex(t.field):0,g=i.length>0?0:null,h=i.length-1,m=(0,V.iv)(e).length-1,b=(0,Pe.aC)(e);let w=!0;switch(r.key){case"ArrowDown":null!==g&&(a?c(p,r):s(p,f(g)));break;case"ArrowRight":{const e=Te({currentColIndex:p,firstColIndex:0,lastColIndex:m,direction:l.direction});null!==e&&u(e,r);break}case"ArrowLeft":{const e=He({currentColIndex:p,firstColIndex:0,lastColIndex:m,direction:l.direction});null!==e&&u(e,r);break}case"ArrowUp":b>0&&d(p,b-1,r);break;case"PageDown":null!==g&&null!==h&&s(p,f(Math.min(g+o,h)));break;case"Home":u(0,r);break;case"End":u(m,r);break;case"Enter":(r.ctrlKey||r.metaKey)&&e.current.toggleColumnMenu(t.field);break;case" ":break;default:w=!1}w&&r.preventDefault()}),[e,i.length,a,c,s,f,l.direction,u,d]),h=o.useCallback(((t,r)=>{const n=(0,Ee.B$)(e)===t.field,o=(0,Ee.K8)(e)===t.field;if(n||o||!(0,Re.q9)(r.key))return;const a=e.current.getViewportPageSize(),d=t.field?e.current.getColumnIndex(t.field):0,p=i.length-1,g=(0,V.iv)(e).length-1;let h=!0;switch(r.key){case"ArrowDown":{const e=f(0);null!=e&&s(d,e);break}case"ArrowRight":{const e=Te({currentColIndex:d,firstColIndex:0,lastColIndex:g,direction:l.direction});null!==e&&c(e,r);break}case"ArrowLeft":{const n=He({currentColIndex:d,firstColIndex:0,lastColIndex:g,direction:l.direction});null!==n?c(n,r):e.current.setColumnHeaderFilterFocus(t.field,r);break}case"ArrowUp":u(d,r);break;case"PageDown":null!==p&&s(d,f(Math.min(0+a,p)));break;case"Home":c(0,r);break;case"End":c(g,r);break;case" ":break;default:h=!1}h&&r.preventDefault()}),[e,i.length,c,l.direction,u,s,f]),m=o.useCallback(((t,r)=>{const n=(0,H.WO)(e);if(null===n)return;const{field:o,depth:l}=n,{fields:a,depth:c,maxDepth:p}=t,g=e.current.getViewportPageSize(),h=e.current.getColumnIndex(o),m=o?e.current.getColumnIndex(o):0,b=i.length-1,w=(0,V.iv)(e).length-1;let C=!0;switch(r.key){case"ArrowDown":c===p-1?u(h,r):d(h,l+1,r);break;case"ArrowUp":c>0&&d(h,l-1,r);break;case"ArrowRight":{const e=a.length-a.indexOf(o)-1;h+e+1<=w&&d(h+e+1,l,r);break}case"ArrowLeft":{const e=a.indexOf(o);h-e-1>=0&&d(h-e-1,l,r);break}case"PageDown":null!==b&&s(m,f(Math.min(0+g,b)));break;case"Home":d(0,l,r);break;case"End":d(w,l,r);break;case" ":break;default:C=!1}C&&r.preventDefault()}),[e,i.length,u,d,s,f]),b=o.useCallback(((t,r)=>{if((0,Fe.TA)(r))return;const n=e.current.getCellParams(t.id,t.field);if(n.cellMode===Me.bs.Edit||!(0,Re.q9)(r.key))return;if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:r,cell:n}))return;if(0===i.length)return;const o=l.direction,d=e.current.getViewportPageSize(),p=t.field?e.current.getColumnIndex(t.field):0,g=i.findIndex((e=>e.id===t.id)),h=i.length-1,m=(0,V.iv)(e).length-1;let b=!0;switch(r.key){case"ArrowDown":g<h&&s(p,f(g+1));break;case"ArrowUp":g>0?s(p,f(g-1)):a?c(p,r):u(p,r);break;case"ArrowRight":{const e=Te({currentColIndex:p,firstColIndex:0,lastColIndex:m,direction:o});null!==e&&s(e,f(g),"rtl"===o?"left":"right");break}case"ArrowLeft":{const e=He({currentColIndex:p,firstColIndex:0,lastColIndex:m,direction:o});null!==e&&s(e,f(g),"rtl"===o?"right":"left");break}case"Tab":r.shiftKey&&p>0?s(p-1,f(g),"left"):!r.shiftKey&&p<m&&s(p+1,f(g),"right");break;case" ":{if(t.field===ke.U)break;const e=t.colDef;if(e&&"__tree_data_group__"===e.field)break;!r.shiftKey&&g<h&&s(p,f(Math.min(g+d,h)));break}case"PageDown":g<h&&s(p,f(Math.min(g+d,h)));break;case"PageUp":{const e=Math.max(g-d,0);e!==g&&e>=0?s(p,f(e)):u(p,r);break}case"Home":r.ctrlKey||r.metaKey||r.shiftKey?s(0,f(0)):s(0,f(g));break;case"End":r.ctrlKey||r.metaKey||r.shiftKey?s(m,f(h)):s(m,f(g));break;default:b=!1}b&&r.preventDefault()}),[e,i,l.direction,s,f,a,c,u]),w=o.useCallback(((e,{event:t})=>" "!==t.key&&e),[]);U(e,"canStartEditing",w),(0,x.cz)(e,"columnHeaderKeyDown",g),(0,x.cz)(e,"headerFilterKeyDown",h),(0,x.cz)(e,"columnGroupHeaderKeyDown",m),(0,x.cz)(e,"cellKeyDown",b)})(r,t),((e,t)=>{const r=(0,N.q)(e,"useGridSelection"),l=e=>(...r)=>{t.rowSelection&&e(...r)},i=o.useMemo((()=>et(t.rowSelectionModel,(0,Qe.Bi)(e.current.state))),[e,t.rowSelectionModel]),a=o.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:t.onRowSelectionModelChange,stateSelector:Qe.Bi,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableRowSelectionOnClick:u,isRowSelectable:c}=t,d=(0,Je.c)(t),p=(0,Se.h)(e,t),f=o.useCallback((t=>{let r=t;const n=a.current??t,o=e.current.isRowSelected(t);if(o){const t=(0,te.ux)(e),o=t.findIndex((e=>e===n)),l=t.findIndex((e=>e===r));if(o===l)return;r=o>l?t[l+1]:t[l-1]}a.current=t,e.current.selectRowRange({startId:n,endId:r},!o)}),[e]),h=o.useCallback((o=>{if(t.signature===x.HV.DataGrid&&!d&&Array.isArray(o)&&o.length>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("\n"));(0,Qe.Bi)(e.current.state)!==o&&(r.debug("Setting selection model"),e.current.setState((e=>(0,n.A)({},e,{rowSelection:t.rowSelection?o:[]}))),e.current.forceUpdate())}),[e,r,t.rowSelection,t.signature,d]),m=o.useCallback((t=>(0,Qe.Bi)(e.current.state).includes(t)),[e]),b=o.useCallback((t=>{if(c&&!c(e.current.getRowParams(t)))return!1;const r=e.current.getRowNode(t);return"footer"!==r?.type&&"pinnedRow"!==r?.type}),[e,c]),w=o.useCallback((()=>(0,Qe.gt)(e)),[e]),C=o.useCallback(((t,n=!0,o=!1)=>{if(e.current.isRowSelectable(t))if(a.current=t,o)r.debug(`Setting selection for row ${t}`),e.current.setRowSelectionModel(n?[t]:[]);else{r.debug(`Toggling selection for row ${t}`);const o=(0,Qe.Bi)(e.current.state).filter((e=>e!==t));n&&o.push(t),(o.length<2||d)&&e.current.setRowSelectionModel(o)}}),[e,r,d]),v=o.useCallback(((t,o=!0,l=!1)=>{r.debug("Setting selection for several rows");const i=t.filter((t=>e.current.isRowSelectable(t)));let a;if(l)a=o?i:[];else{const t=(0,n.A)({},(0,Qe.Zk)(e));i.forEach((e=>{o?t[e]=e:delete t[e]})),a=Object.values(t)}(a.length<2||d)&&e.current.setRowSelectionModel(a)}),[e,r,d]),y=o.useCallback((({startId:t,endId:n},o=!0,l=!1)=>{if(!e.current.getRow(t)||!e.current.getRow(n))return;r.debug(`Expanding selection from row ${t} to row ${n}`);const i=(0,te.ux)(e),a=i.indexOf(t),s=i.indexOf(n),[u,c]=a>s?[s,a]:[a,s],d=i.slice(u,c+1);e.current.selectRows(d,o,l)}),[e,r]),A={selectRow:C,setRowSelectionModel:h,getSelectedRows:w,isRowSelected:m,isRowSelectable:b},R={selectRows:v,selectRowRange:y};(0,g.P)(e,A,"public"),(0,g.P)(e,R,t.signature===x.HV.DataGrid?"private":"public");const S=o.useCallback((()=>{if(t.keepNonExistentRowsSelected)return;const r=(0,Qe.Bi)(e.current.state),o=(0,re.rI)(e),l=(0,n.A)({},(0,Qe.Zk)(e));let i=!1;r.forEach((e=>{o[e]||(delete l[e],i=!0)})),i&&e.current.setRowSelectionModel(Object.values(l))}),[e,t.keepNonExistentRowsSelected]),I=o.useCallback(((t,r)=>{const n=r.metaKey||r.ctrlKey,o=!s&&!n&&!(0,Re.kx)(r),l=!d||o,i=e.current.isRowSelected(t);l?e.current.selectRow(t,!!o||!i,!0):e.current.selectRow(t,!i,!1)}),[e,d,s]),M=o.useCallback(((t,r)=>{if(u)return;const n=r.target.closest(`.${se.x.cell}`)?.getAttribute("data-field");if(n!==T.f.field&&n!==ke.U){if(n){const t=e.current.getColumn(n);if(t?.type===Ge.D)return}"pinnedRow"!==e.current.getRowNode(t.id).type&&(r.shiftKey&&d?f(t.id):I(t.id,r))}}),[u,d,e,f,I]),k=o.useCallback(((e,t)=>{d&&t.shiftKey&&window.getSelection()?.removeAllRanges()}),[d]),P=o.useCallback(((t,r)=>{d&&r.nativeEvent.shiftKey?f(t.id):e.current.selectRow(t.id,t.value,!d)}),[e,f,d]),E=o.useCallback((r=>{const n=t.checkboxSelectionVisibleOnly&&t.pagination?(0,de.ee)(e):(0,te.ux)(e),o=(0,te.ZI)(e);e.current.selectRows(n,r.value,o?.items.length>0)}),[e,t.checkboxSelectionVisibleOnly,t.pagination]),F=o.useCallback(((t,r)=>{if(e.current.getCellMode(t.id,t.field)!==Me.bs.Edit&&!(0,Fe.TA)(r)){if((0,Re.q9)(r.key)&&r.shiftKey){const n=(0,H.MO)(e);if(n&&n.id!==t.id){r.preventDefault();const o=e.current.isRowSelected(n.id);if(!d)return void e.current.selectRow(n.id,!o,!0);const l=e.current.getRowIndexRelativeToVisibleRows(n.id),i=e.current.getRowIndexRelativeToVisibleRows(t.id);let a,s;l>i?o?(a=i,s=l-1):(a=i,s=l):o?(a=l+1,s=i):(a=l,s=i);const u=p.rows.slice(a,s+1).map((e=>e.id));return void e.current.selectRows(u,!o)}}if(" "===r.key&&r.shiftKey)return r.preventDefault(),void I(t.id,r);"a"===r.key&&(r.ctrlKey||r.metaKey)&&(r.preventDefault(),v(e.current.getAllRowIds(),!0))}}),[e,I,v,p.rows,d]);(0,x.cz)(e,"sortedRowsSet",l(S)),(0,x.cz)(e,"rowClick",l(M)),(0,x.cz)(e,"rowSelectionCheckboxChange",l(P)),(0,x.cz)(e,"headerSelectionCheckboxChange",E),(0,x.cz)(e,"cellMouseDown",l(k)),(0,x.cz)(e,"cellKeyDown",l(F)),o.useEffect((()=>{void 0!==i&&e.current.setRowSelectionModel(i)}),[e,i,t.rowSelection]),o.useEffect((()=>{t.rowSelection||e.current.setRowSelectionModel([])}),[e,t.rowSelection]);const O=null!=i;o.useEffect((()=>{if(O||!t.rowSelection)return;const r=(0,Qe.Bi)(e.current.state);if(b){const t=r.filter((e=>b(e)));t.length<r.length&&e.current.setRowSelectionModel(t)}}),[e,b,O,t.rowSelection]),o.useEffect((()=>{if(!t.rowSelection||O)return;const r=(0,Qe.Bi)(e.current.state);!d&&r.length>1&&e.current.setRowSelectionModel([])}),[e,d,s,O,t.rowSelection])})(r,t),function(e,t){const r=(0,N.q)(e,"useGridColumns"),l=o.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:V.FY,changeEvent:"columnVisibilityModelChange"});const i=o.useCallback((t=>{r.debug("Updating columns state."),e.current.setState(Z(t)),e.current.publishEvent("columnsChange",t.orderedFields),e.current.updateRenderContext?.(),e.current.forceUpdate()}),[r,e]),a=o.useCallback((t=>(0,V.gv)(e)[t]),[e]),s=o.useCallback((()=>(0,V.OV)(e)),[e]),u=o.useCallback((()=>(0,V.iv)(e)),[e]),c=o.useCallback(((t,r=!0)=>(r?(0,V.iv)(e):(0,V.OV)(e)).findIndex((e=>e.field===t))),[e]),d=o.useCallback((t=>{const r=c(t);return(0,V.Sw)(e)[r]}),[e,c]),p=o.useCallback((t=>{(0,V.FY)(e)!==t&&(e.current.setState((r=>(0,n.A)({},r,{columns:(0,K.Pd)({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:t,keepOnlyColumnsToUpsert:!1})}))),e.current.updateRenderContext?.(),e.current.forceUpdate())}),[e]),f=o.useCallback((t=>{const r=(0,K.Pd)({apiRef:e,columnsToUpsert:t,initialState:void 0,keepOnlyColumnsToUpsert:!1});i(r)}),[e,i]),h=o.useCallback(((t,r)=>{const o=(0,V.FY)(e);if(r!==(o[t]??!0)){const l=(0,n.A)({},o,{[t]:r});e.current.setColumnVisibilityModel(l)}}),[e]),m=o.useCallback((t=>(0,V.JR)(e).findIndex((e=>e===t))),[e]),b=o.useCallback(((t,o)=>{const l=(0,V.JR)(e),a=m(t);if(a===o)return;r.debug(`Moving column ${t} to index ${o}`);const s=[...l],u=s.splice(a,1)[0];s.splice(o,0,u),i((0,n.A)({},(0,V.em)(e.current.state),{orderedFields:s}));const c={column:e.current.getColumn(t),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(t),oldIndex:a};e.current.publishEvent("columnIndexChange",c)}),[e,r,i,m]),w=o.useCallback(((t,o)=>{r.debug(`Updating column ${t} width to ${o}`);const l=(0,V.em)(e.current.state),a=l.lookup[t],s=(0,n.A)({},a,{width:o,hasBeenResized:!0});i((0,K.LN)((0,n.A)({},l,{lookup:(0,n.A)({},l.lookup,{[t]:s})}),e.current.getRootDimensions().viewportInnerSize.width)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:s,width:o})}),[e,r,i]),C={getColumn:a,getAllColumns:s,getColumnIndex:c,getColumnPosition:d,getVisibleColumns:u,getColumnIndexRelativeToVisibleColumns:m,updateColumns:f,setColumnVisibilityModel:p,setColumnVisibility:h,setColumnWidth:w},v={setColumnIndex:b};(0,g.P)(e,C,"public"),(0,g.P)(e,v,t.signature===x.HV.DataGrid?"private":"public");const y=o.useCallback(((r,o)=>{const l={},i=(0,V.FY)(e);(!o.exportOnlyDirtyModels||null!=t.columnVisibilityModel||Object.keys(t.initialState?.columns?.columnVisibilityModel??{}).length>0||Object.keys(i).length>0)&&(l.columnVisibilityModel=i),l.orderedFields=(0,V.JR)(e);const a=(0,V.OV)(e),s={};return a.forEach((e=>{if(e.hasBeenResized){const t={};K.Pr.forEach((r=>{let n=e[r];n===1/0&&(n=-1),t[r]=n})),s[e.field]=t}})),Object.keys(s).length>0&&(l.dimensions=s),(0,n.A)({},r,{columns:l})}),[e,t.columnVisibilityModel,t.initialState?.columns]),A=o.useCallback(((t,r)=>{const n=r.stateToRestore.columns?.columnVisibilityModel,o=r.stateToRestore.columns;if(null==n&&null==o)return t;const l=(0,K.Pd)({apiRef:e,columnsToUpsert:[],initialState:o,columnVisibilityModel:n,keepOnlyColumnsToUpsert:!1});return e.current.setState(Z(l)),null!=o&&e.current.publishEvent("columnsChange",l.orderedFields),t}),[e]),R=o.useCallback(((e,r)=>{if(r===q.y.columns){const e=t.slots.columnsPanel;return(0,X.jsx)(e,(0,n.A)({},t.slotProps?.columnsPanel))}return e}),[t.slots.columnsPanel,t.slotProps?.columnsPanel]),S=o.useCallback((e=>t.disableColumnSelector?e:[...e,"columnMenuColumnsItem"]),[t.disableColumnSelector]);U(e,"columnMenu",S),U(e,"exportState",y),U(e,"restoreState",A),U(e,"preferencePanel",R);const I=o.useRef(null);(0,x.cz)(e,"viewportInnerSizeChange",(t=>{I.current!==t.width&&(I.current=t.width,i((0,K.LN)((0,V.em)(e.current.state),t.width)))}));const M=o.useCallback((()=>{r.info("Columns pipe processing have changed, regenerating the columns");const t=(0,K.Pd)({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});i(t)}),[e,r,i]);W(e,"hydrateColumns",M);const k=o.useRef(!0);o.useEffect((()=>{if(k.current)return void(k.current=!1);if(r.info(`GridColumns have changed, new length ${t.columns.length}`),l.current===t.columns)return;const n=(0,K.Pd)({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});l.current=t.columns,i(n)}),[r,e,i,t.columns]),o.useEffect((()=>{void 0!==t.columnVisibilityModel&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)}),[e,r,t.columnVisibilityModel])}(r,t),((e,t)=>{const r=(0,N.q)(e,"useGridRows"),l=(0,Se.h)(e,t),i=o.useRef(Date.now()),a=(0,Ke.A)(),s=o.useCallback((t=>{const r=(0,re.rI)(e)[t];if(r)return r;const n=e.current.getRowNode(t);return n&&(0,We.DJ)(n)?{[We.gb]:t}:null}),[e]),u=t.getRowId,c=o.useCallback((e=>We.gb in e?e[We.gb]:u?u(e):e.id),[u]),d=o.useMemo((()=>l.rows.reduce(((e,{id:t},r)=>(e[t]=r,e)),{})),[l.rows]),p=o.useCallback((({cache:r,throttle:o})=>{const l=()=>{i.current=Date.now(),e.current.setState((r=>(0,n.A)({},r,{rows:(0,We.TW)({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:(0,re.qj)(e),previousTreeDepths:(0,re.Mz)(e)})}))),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(a.clear(),e.current.caches.rows=r,!o)return void l();const s=t.throttleRowsMs-(Date.now()-i.current);s>0?a.start(s,l):l()}),[t.throttleRowsMs,t.rowCount,t.loading,e,a]),f=o.useCallback((n=>{r.debug(`Updating all rows, new length ${n.length}`);const o=(0,We.Z)({rows:n,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),l=e.current.caches.rows;o.rowsBeforePartialUpdates=l.rowsBeforePartialUpdates,p({cache:o,throttle:!0})}),[r,t.getRowId,t.loading,t.rowCount,p,e]),h=o.useCallback((r=>{if(t.signature===x.HV.DataGrid&&r.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("\n"));const o=[];r.forEach((r=>{const l=(0,We.HZ)(r,t.getRowId,"A row was provided without id when calling updateRows():"),i=e.current.getRowNode(l);if("pinnedRow"===i?.type){const t=e.current.caches.pinnedRows,o=t.idLookup[l];o&&(t.idLookup[l]=(0,n.A)({},o,r))}else o.push(r)}));const l=(0,We.Ze)({updates:o,getRowId:t.getRowId,previousCache:e.current.caches.rows});p({cache:l,throttle:!0})}),[t.signature,t.getRowId,p,e]),m=o.useCallback((()=>{const t=(0,re.A6)(e),r=(0,re.rI)(e);return new Map(t.map((e=>[e,r[e]??{}])))}),[e]),b=o.useCallback((()=>(0,re.H0)(e)),[e]),w=o.useCallback((()=>(0,re.A6)(e)),[e]),C=o.useCallback((e=>d[e]),[d]),v=o.useCallback(((t,r)=>{const o=e.current.getRowNode(t);if(!o)throw new Error(`MUI X: No row with id #${t} found.`);if("group"!==o.type)throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const l=(0,n.A)({},o,{childrenExpanded:r});e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{tree:(0,n.A)({},e.rows.tree,{[t]:l})})}))),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",l)}),[e]),y=o.useCallback((t=>(0,re.qj)(e)[t]??null),[e]),A=o.useCallback((({skipAutoGeneratedRows:t=!0,groupId:r,applySorting:n,applyFiltering:o})=>{const l=(0,re.qj)(e);let i;if(n){const n=l[r];if(!n)return[];const o=(0,qe.RJ)(e);i=[];for(let e=o.findIndex((e=>e===r))+1;e<o.length&&l[o[e]].depth>n.depth;e+=1){const r=o[e];t&&(0,We.DJ)(l[r])||i.push(r)}}else i=(0,We.l_)(l,r,t);if(o){const t=(0,te.wx)(e);i=i.filter((e=>!1!==t[e]))}return i}),[e]),R=o.useCallback(((t,o)=>{const l=e.current.getRowNode(t);if(!l)throw new Error(`MUI X: No row with id #${t} found.`);if(l.parent!==We.OL)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if("leaf"!==l.type)throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState((l=>{const i=(0,re.qj)(l,e.current.instanceId)[We.OL],a=i.children,s=a.findIndex((e=>e===t));if(-1===s||s===o)return l;r.debug(`Moving row ${t} to index ${o}`);const u=[...a];return u.splice(o,0,u.splice(s,1)[0]),(0,n.A)({},l,{rows:(0,n.A)({},l.rows,{tree:(0,n.A)({},l.rows.tree,{[We.OL]:(0,n.A)({},i,{children:u})})})})})),e.current.publishEvent("rowsSet")}),[e,r]),S={getRow:s,getRowId:c,getRowModels:m,getRowsCount:b,getAllRowIds:w,setRows:f,updateRows:h,getRowNode:y,getRowIndexRelativeToVisibleRows:C,unstable_replaceRows:o.useCallback(((r,o)=>{if(t.signature===x.HV.DataGrid&&o.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("\n"));if(0===o.length)return;if((0,re.V2)(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const l=(0,n.A)({},(0,re.qj)(e)),i=(0,n.A)({},(0,re.rI)(e)),a=(0,n.A)({},(0,re.gk)(e)),s=l[We.OL],u=[...s.children],c=new Set;for(let e=0;e<o.length;e+=1){const n=o[e],s=(0,We.HZ)(n,t.getRowId,"A row was provided without id when calling replaceRows()."),[d]=u.splice(r+e,1,s);c.has(d)||(delete i[d],delete a[d],delete l[d]);const p={id:s,depth:0,parent:We.OL,type:"leaf",groupingKey:null};i[s]=n,a[s]=s,l[s]=p,c.add(s)}l[We.OL]=(0,n.A)({},s,{children:u});const d=u.filter((e=>"leaf"===l[e]?.type));e.current.caches.rows.dataRowIdToModelLookup=i,e.current.caches.rows.dataRowIdToIdLookup=a,e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{dataRowIdToModelLookup:i,dataRowIdToIdLookup:a,dataRowIds:d,tree:l})}))),e.current.publishEvent("rowsSet")}),[e,t.signature,t.getRowId])},I={setRowIndex:R,setRowChildrenExpansion:v,getRowGroupChildren:A},M=o.useCallback((()=>{let o;r.info("Row grouping pre-processing have changed, regenerating the row tree"),o=e.current.caches.rows.rowsBeforePartialUpdates===t.rows?(0,n.A)({},e.current.caches.rows,{updates:{type:"full",rows:(0,re.A6)(e)}}):(0,We.Z)({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),p({cache:o,throttle:!1})}),[r,e,t.rows,t.getRowId,t.loading,t.rowCount,p]),k=o.useCallback((e=>{"rowTreeCreation"===e&&M()}),[M]),P=o.useCallback((()=>{e.current.getActiveStrategy("rowTree")!==(0,re.Y1)(e)&&M()}),[e,M]);(0,x.cz)(e,"activeStrategyProcessorChange",k),(0,x.cz)(e,"strategyAvailabilityChange",P);const E=o.useCallback((()=>{e.current.setState((r=>{const o=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:(0,re.qj)(r,e.current.instanceId),treeDepths:(0,re.Mz)(r,e.current.instanceId),dataRowIds:(0,re.A6)(r,e.current.instanceId),dataRowIdToModelLookup:(0,re.rI)(r,e.current.instanceId),dataRowIdToIdLookup:(0,re.gk)(r,e.current.instanceId)});return(0,n.A)({},r,{rows:(0,n.A)({},r.rows,o,{totalTopLevelRowCount:(0,We.fS)({tree:o.tree,rowCountProp:t.rowCount})})})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()}),[e,t.rowCount]);W(e,"hydrateRows",E),(0,g.P)(e,S,"public"),(0,g.P)(e,I,t.signature===x.HV.DataGrid?"private":"public");const F=o.useRef(!0);o.useEffect((()=>{if(F.current)return void(F.current=!1);const o=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,l=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,i=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(o)return l||(e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{loading:t.loading})}))),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),void(i||(e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{totalRowCount:Math.max(t.rowCount||0,e.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,e.rows.totalTopLevelRowCount)})}))),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()));r.debug(`Updating all rows, new length ${t.rows.length}`),p({cache:(0,We.Z)({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})}),[t.rows,t.rowCount,t.getRowId,t.loading,r,p,e])})(r,t),(0,Ze.s)(r),(e=>{const t=o.useRef({}),r={unstable_getCellColSpanInfo:(e,r)=>t.current[e]?.[r]},n={calculateColSpan:o.useCallback((({rowId:r,minFirstColumn:n,maxLastColumn:o,columns:l})=>{for(let i=n;i<o;i+=1){const a=mt({apiRef:e,lookup:t.current,columnIndex:i,rowId:r,minFirstColumnIndex:n,maxLastColumnIndex:o,columns:l});a.colSpan>1&&(i+=a.colSpan-1)}}),[e])};(0,g.P)(e,r,"public"),(0,g.P)(e,n,"private");const l=o.useCallback((()=>{t.current={}}),[]);(0,x.cz)(e,"columnOrderChange",l)})(r),((e,t)=>{const r={getColumnGroupPath:o.useCallback((t=>(0,Pe.TQ)(e)[t]??[]),[e]),getAllGroupDetails:o.useCallback((()=>(0,Pe.ED)(e)),[e])};(0,g.P)(e,r,"public");const l=o.useCallback((()=>{const r=vt(t.columnGroupingModel??[]);e.current.setState((e=>{const t=e.columns?.orderedFields??[],o=e.pinnedColumns??{},l=xt(t,r,o);return(0,n.A)({},e,{columnGrouping:(0,n.A)({},e.columnGrouping,{headerStructure:l})})}))}),[e,t.columnGroupingModel]),i=o.useCallback((t=>{const r=e.current.getPinnedColumns?.()??{},o=(0,V.JR)(e),l=(0,V.TI)(e),i=At(t??[]),a=vt(t??[]),s=xt(o,a,r),u=0===l.length?0:Math.max(...l.map((e=>a[e]?.length??0)));e.current.setState((e=>(0,n.A)({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:s,maxDepth:u}})))}),[e]);(0,x.cz)(e,"columnIndexChange",l),(0,x.cz)(e,"columnsChange",(()=>{i(t.columnGroupingModel)})),(0,x.cz)(e,"columnVisibilityModelChange",(()=>{i(t.columnGroupingModel)})),o.useEffect((()=>{i(t.columnGroupingModel)}),[i,t.columnGroupingModel])})(r,t),((e,t)=>{((e,t)=>{const[r,l]=o.useState({}),i=o.useRef(r),a=o.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:u,cellModesModel:c,onCellModesModelChange:d}=t,p=e=>(...r)=>{t.editMode===Me.RL.Cell&&e(...r)},h=o.useCallback(((t,r)=>{const n=e.current.getCellParams(t,r);if(!e.current.isCellEditable(n))throw new Error(`MUI X: The cell with id=${t} and field=${r} is not editable.`)}),[e]),m=o.useCallback(((t,r,n)=>{if(e.current.getCellMode(t,r)!==n)throw new Error(`MUI X: The cell with id=${t} and field=${r} is not in ${n} mode.`)}),[e]),b=o.useCallback(((t,r)=>{if(!t.isEditable)return;if(t.cellMode===Me.bs.Edit)return;const o=(0,n.A)({},t,{reason:je.a.cellDoubleClick});e.current.publishEvent("cellEditStart",o,r)}),[e]),w=o.useCallback(((t,r)=>{if(t.cellMode===Me.bs.View)return;if(e.current.getCellMode(t.id,t.field)===Me.bs.View)return;const o=(0,n.A)({},t,{reason:je.Q.cellFocusOut});e.current.publishEvent("cellEditStop",o,r)}),[e]),C=o.useCallback(((t,r)=>{if(t.cellMode===Me.bs.Edit){if(229===r.which)return;let o;if("Escape"===r.key?o=je.Q.escapeKeyDown:"Enter"===r.key?o=je.Q.enterKeyDown:"Tab"===r.key&&(o=r.shiftKey?je.Q.shiftTabKeyDown:je.Q.tabKeyDown,r.preventDefault()),o){const l=(0,n.A)({},t,{reason:o});e.current.publishEvent("cellEditStop",l,r)}}else if(t.isEditable){let o;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:r,cellParams:t,editMode:"cell"}))return;if((0,Re.TW)(r)?o=je.a.printableKeyDown:(0,Re.IA)(r)?o=je.a.pasteKeyDown:"Enter"===r.key?o=je.a.enterKeyDown:"Backspace"!==r.key&&"Delete"!==r.key||(o=je.a.deleteKeyDown),o){const l=(0,n.A)({},t,{reason:o,key:r.key});e.current.publishEvent("cellEditStart",l,r)}}}),[e]),v=o.useCallback((t=>{const{id:r,field:n,reason:o}=t,l={id:r,field:n};o!==je.a.printableKeyDown&&o!==je.a.deleteKeyDown&&o!==je.a.pasteKeyDown||(l.deleteValue=!0),e.current.startCellEditMode(l)}),[e]),y=o.useCallback((t=>{const{id:r,field:n,reason:o}=t;let l;e.current.runPendingEditCellValueMutation(r,n),o===je.Q.enterKeyDown?l="below":o===je.Q.tabKeyDown?l="right":o===je.Q.shiftTabKeyDown&&(l="left");const i="escapeKeyDown"===o;e.current.stopCellEditMode({id:r,field:n,ignoreModifications:i,cellToFocusAfter:l})}),[e]);(0,x.cz)(e,"cellDoubleClick",p(b)),(0,x.cz)(e,"cellFocusOut",p(w)),(0,x.cz)(e,"cellKeyDown",p(C)),(0,x.cz)(e,"cellEditStart",p(v)),(0,x.cz)(e,"cellEditStop",p(y)),(0,x.re)(e,"cellEditStart",t.onCellEditStart),(0,x.re)(e,"cellEditStop",t.onCellEditStop);const A=o.useCallback(((t,r)=>{const n=(0,Le.w)(e.current.state);return n[t]&&n[t][r]?Me.bs.Edit:Me.bs.View}),[e]),R=(0,Q.A)((r=>{const n=r!==t.cellModesModel;d&&n&&d(r,{api:e.current}),t.cellModesModel&&n||(l(r),i.current=r,e.current.publishEvent("cellModesModelChange",r))})),M=o.useCallback(((e,t,r)=>{const o=(0,n.A)({},i.current);if(null!==r)o[e]=(0,n.A)({},o[e],{[t]:(0,n.A)({},r)});else{const r=o[e],n=(0,S.A)(r,[t].map(I.A));o[e]=n,0===Object.keys(o[e]).length&&delete o[e]}R(o)}),[R]),k=o.useCallback(((t,r,o)=>{e.current.setState((e=>{const l=(0,n.A)({},e.editRows);return null!==o?l[t]=(0,n.A)({},l[t],{[r]:(0,n.A)({},o)}):(delete l[t][r],0===Object.keys(l[t]).length&&delete l[t]),(0,n.A)({},e,{editRows:l})})),e.current.forceUpdate()}),[e]),P=o.useCallback((e=>{const{id:t,field:r}=e,o=(0,S.A)(e,Ne);h(t,r),m(t,r,Me.bs.View),M(t,r,(0,n.A)({mode:Me.bs.Edit},o))}),[h,m,M]),E=(0,Q.A)((t=>{const{id:r,field:n,deleteValue:o,initialValue:l}=t;let i=e.current.getCellValue(r,n);if(o)switch(e.current.getColumn(n).type){case"boolean":i=!1;break;case"date":case"dateTime":case"number":i=void 0;break;case"singleSelect":i=null;break;default:i=""}else l&&(i=l);k(r,n,{value:i,error:!1,isProcessingProps:!1}),e.current.setCellFocus(r,n)})),F=o.useCallback((e=>{const{id:t,field:r}=e,o=(0,S.A)(e,$e);m(t,r,Me.bs.Edit),M(t,r,(0,n.A)({mode:Me.bs.View},o))}),[m,M]),H=(0,Q.A)((async t=>{const{id:r,field:n,ignoreModifications:o,cellToFocusAfter:l="none"}=t;m(r,n,Me.bs.Edit),e.current.runPendingEditCellValueMutation(r,n);const i=()=>{k(r,n,null),M(r,n,null),"none"!==l&&e.current.moveFocusToRelativeCell(r,n,l)};if(o)return void i();const c=(0,Le.w)(e.current.state),{error:d,isProcessingProps:p}=c[r][n];if(d||p)return a.current[r][n].mode=Me.bs.Edit,void M(r,n,{mode:Me.bs.Edit});const f=e.current.getRowWithUpdatedValuesFromCellEditing(r,n);if(s){const t=e=>{a.current[r][n].mode=Me.bs.Edit,M(r,n,{mode:Me.bs.Edit}),u&&u(e)};try{const n=e.current.getRow(r);Promise.resolve(s(f,n)).then((t=>{e.current.updateRows([t]),i()})).catch(t)}catch(e){t(e)}}else e.current.updateRows([f]),i()})),T={getCellMode:A,startCellEditMode:P,stopCellEditMode:F},O={setCellEditingEditCellValue:o.useCallback((async t=>{const{id:r,field:o,value:l,debounceMs:i,unstable_skipValueParser:a}=t;h(r,o),m(r,o,Me.bs.Edit);const s=e.current.getColumn(o),u=e.current.getRow(r);let c=l;s.valueParser&&!a&&(c=s.valueParser(l,u,s,e));let d=(0,Le.w)(e.current.state),p=(0,n.A)({},d[r][o],{value:c,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});if(s.preProcessEditCellProps){const e=l!==d[r][o].value;p=(0,n.A)({},p,{isProcessingProps:!0}),k(r,o,p),p=await Promise.resolve(s.preProcessEditCellProps({id:r,row:u,props:p,hasChanged:e}))}return e.current.getCellMode(r,o)!==Me.bs.View&&(d=(0,Le.w)(e.current.state),p=(0,n.A)({},p,{isProcessingProps:!1}),p.value=s.preProcessEditCellProps?d[r][o].value:c,k(r,o,p),d=(0,Le.w)(e.current.state),!d[r]?.[o]?.error)}),[e,h,m,k]),getRowWithUpdatedValuesFromCellEditing:o.useCallback(((t,r)=>{const o=e.current.getColumn(r),l=(0,Le.w)(e.current.state),i=e.current.getRow(t);if(!l[t]||!l[t][r])return e.current.getRow(t);const{value:a}=l[t][r];return o.valueSetter?o.valueSetter(a,i,o,e):(0,n.A)({},i,{[r]:a})}),[e])};(0,g.P)(e,T,"public"),(0,g.P)(e,O,"private"),o.useEffect((()=>{c&&R(c)}),[c,R]),(0,he.A)((()=>{const t=(0,re.gk)(e),o=a.current;a.current=(0,f.Go)(r),Object.entries(r).forEach((([e,r])=>{Object.entries(r).forEach((([r,l])=>{const i=o[e]?.[r]?.mode||Me.bs.View,a=t[e]??e;l.mode===Me.bs.Edit&&i===Me.bs.View?E((0,n.A)({id:a,field:r},l)):l.mode===Me.bs.View&&i===Me.bs.Edit&&H((0,n.A)({id:a,field:r},l))}))}))}),[e,r,E,H])})(e,t),((e,t)=>{const[r,l]=o.useState({}),i=o.useRef(r),a=o.useRef({}),s=o.useRef(),u=o.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:d,rowModesModel:p,onRowModesModelChange:h}=t,m=e=>(...r)=>{t.editMode===Me.RL.Row&&e(...r)},b=o.useCallback(((t,r)=>{const n=e.current.getCellParams(t,r);if(!e.current.isCellEditable(n))throw new Error(`MUI X: The cell with id=${t} and field=${r} is not editable.`)}),[e]),w=o.useCallback(((t,r)=>{if(e.current.getRowMode(t)!==r)throw new Error(`MUI X: The row with id=${t} is not in ${r} mode.`)}),[e]),C=o.useCallback((t=>{const r=(0,Le.w)(e.current.state);return Object.values(r[t]).some((e=>e.error))}),[e]),v=o.useCallback(((t,r)=>{if(!t.isEditable)return;if(e.current.getRowMode(t.id)===Me.V_.Edit)return;const o=e.current.getRowParams(t.id),l=(0,n.A)({},o,{field:t.field,reason:Ve.a.cellDoubleClick});e.current.publishEvent("rowEditStart",l,r)}),[e]),y=o.useCallback((e=>{u.current=e}),[]),A=o.useCallback(((t,r)=>{t.isEditable&&e.current.getRowMode(t.id)!==Me.V_.View&&(u.current=null,s.current=setTimeout((()=>{if(u.current?.id!==t.id){if(!e.current.getRow(t.id))return;if(e.current.getRowMode(t.id)===Me.V_.View)return;if(C(t.id))return;const o=e.current.getRowParams(t.id),l=(0,n.A)({},o,{field:t.field,reason:Ve.q.rowFocusOut});e.current.publishEvent("rowEditStop",l,r)}})))}),[e,C]);o.useEffect((()=>()=>{clearTimeout(s.current)}),[]);const R=o.useCallback(((t,r)=>{if(t.cellMode===Me.V_.Edit){if(229===r.which)return;let o;if("Escape"===r.key)o=Ve.q.escapeKeyDown;else if("Enter"===r.key)o=Ve.q.enterKeyDown;else if("Tab"===r.key){const n=(0,V.TI)(e).filter((r=>e.current.getColumn(r).type===Ge.D||e.current.isCellEditable(e.current.getCellParams(t.id,r))));if(r.shiftKey?t.field===n[0]&&(o=Ve.q.shiftTabKeyDown):t.field===n[n.length-1]&&(o=Ve.q.tabKeyDown),r.preventDefault(),!o){const o=n.findIndex((e=>e===t.field)),l=n[r.shiftKey?o-1:o+1];e.current.setCellFocus(t.id,l)}}if(o){if(o!==Ve.q.escapeKeyDown&&C(t.id))return;const l=(0,n.A)({},e.current.getRowParams(t.id),{reason:o,field:t.field});e.current.publishEvent("rowEditStop",l,r)}}else if(t.isEditable){let o;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:r,cellParams:t,editMode:"row"}))return;if((0,Re.TW)(r)||(0,Re.IA)(r)?o=Ve.a.printableKeyDown:"Enter"===r.key?o=Ve.a.enterKeyDown:"Backspace"!==r.key&&"Delete"!==r.key||(o=Ve.a.deleteKeyDown),o){const l=e.current.getRowParams(t.id),i=(0,n.A)({},l,{field:t.field,reason:o});e.current.publishEvent("rowEditStart",i,r)}}}),[e,C]),M=o.useCallback((t=>{const{id:r,field:n,reason:o}=t,l={id:r,fieldToFocus:n};o!==Ve.a.printableKeyDown&&o!==Ve.a.deleteKeyDown||(l.deleteValue=!!n),e.current.startRowEditMode(l)}),[e]),k=o.useCallback((t=>{const{id:r,reason:n,field:o}=t;let l;e.current.runPendingEditCellValueMutation(r),n===Ve.q.enterKeyDown?l="below":n===Ve.q.tabKeyDown?l="right":n===Ve.q.shiftTabKeyDown&&(l="left");const i="escapeKeyDown"===n;e.current.stopRowEditMode({id:r,ignoreModifications:i,field:o,cellToFocusAfter:l})}),[e]);(0,x.cz)(e,"cellDoubleClick",m(v)),(0,x.cz)(e,"cellFocusIn",m(y)),(0,x.cz)(e,"cellFocusOut",m(A)),(0,x.cz)(e,"cellKeyDown",m(R)),(0,x.cz)(e,"rowEditStart",m(M)),(0,x.cz)(e,"rowEditStop",m(k)),(0,x.re)(e,"rowEditStart",t.onRowEditStart),(0,x.re)(e,"rowEditStop",t.onRowEditStop);const P=o.useCallback((r=>{if(t.editMode===Me.RL.Cell)return Me.V_.View;const n=(0,Le.w)(e.current.state);return n[r]&&Object.keys(n[r]).length>0?Me.V_.Edit:Me.V_.View}),[e,t.editMode]),E=(0,Q.A)((r=>{const n=r!==t.rowModesModel;h&&n&&h(r,{api:e.current}),t.rowModesModel&&n||(l(r),i.current=r,e.current.publishEvent("rowModesModelChange",r))})),F=o.useCallback(((e,t)=>{const r=(0,n.A)({},i.current);null!==t?r[e]=(0,n.A)({},t):delete r[e],E(r)}),[E]),H=o.useCallback(((t,r)=>{e.current.setState((e=>{const o=(0,n.A)({},e.editRows);return null!==r?o[t]=r:delete o[t],(0,n.A)({},e,{editRows:o})})),e.current.forceUpdate()}),[e]),T=o.useCallback(((t,r,o)=>{e.current.setState((e=>{const l=(0,n.A)({},e.editRows);return null!==o?l[t]=(0,n.A)({},l[t],{[r]:(0,n.A)({},o)}):(delete l[t][r],0===Object.keys(l[t]).length&&delete l[t]),(0,n.A)({},e,{editRows:l})})),e.current.forceUpdate()}),[e]),O=o.useCallback((e=>{const{id:t}=e,r=(0,S.A)(e,Be);w(t,Me.V_.View),F(t,(0,n.A)({mode:Me.V_.Edit},r))}),[w,F]),D=(0,Q.A)((t=>{const{id:r,fieldToFocus:n,deleteValue:o,initialValue:l}=t,i=(0,V.JR)(e).reduce(((t,i)=>{if(!e.current.getCellParams(r,i).isEditable)return t;let a=e.current.getCellValue(r,i);return n===i&&(o||l)&&(a=o?"":l),t[i]={value:a,error:!1,isProcessingProps:!1},t}),{});H(r,i),n&&e.current.setCellFocus(r,n)})),z=o.useCallback((e=>{const{id:t}=e,r=(0,S.A)(e,Ue);w(t,Me.V_.Edit),F(t,(0,n.A)({mode:Me.V_.View},r))}),[w,F]),L=(0,Q.A)((t=>{const{id:r,ignoreModifications:n,field:o,cellToFocusAfter:l="none"}=t;e.current.runPendingEditCellValueMutation(r);const i=()=>{"none"!==l&&o&&e.current.moveFocusToRelativeCell(r,o,l),H(r,null),F(r,null)};if(n)return void i();const s=(0,Le.w)(e.current.state),u=e.current.getRow(r);if(Object.values(s[r]).some((e=>e.isProcessingProps)))return void(a.current[r].mode=Me.V_.Edit);if(C(r))return a.current[r].mode=Me.V_.Edit,void F(r,{mode:Me.V_.Edit});const p=e.current.getRowWithUpdatedValuesFromRowEditing(r);if(c){const t=e=>{a.current[r].mode=Me.V_.Edit,F(r,{mode:Me.V_.Edit}),d&&d(e)};try{Promise.resolve(c(p,u)).then((t=>{e.current.updateRows([t]),i()})).catch(t)}catch(e){t(e)}}else e.current.updateRows([p]),i()})),j={getRowMode:P,startRowEditMode:O,stopRowEditMode:z},N={setRowEditingEditCellValue:o.useCallback((t=>{const{id:r,field:o,value:l,debounceMs:i,unstable_skipValueParser:a}=t;b(r,o);const s=e.current.getColumn(o),u=e.current.getRow(r);let c=l;s.valueParser&&!a&&(c=s.valueParser(l,u,s,e));let d=(0,Le.w)(e.current.state),p=(0,n.A)({},d[r][o],{value:c,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});return s.preProcessEditCellProps||T(r,o,p),new Promise((t=>{const l=[];if(s.preProcessEditCellProps){const i=p.value!==d[r][o].value;p=(0,n.A)({},p,{isProcessingProps:!0}),T(r,o,p);const a=d[r],f=(0,S.A)(a,[o].map(I.A)),g=Promise.resolve(s.preProcessEditCellProps({id:r,row:u,props:p,hasChanged:i,otherFieldsProps:f})).then((l=>{e.current.getRowMode(r)!==Me.V_.View?(d=(0,Le.w)(e.current.state),(l=(0,n.A)({},l,{isProcessingProps:!1})).value=s.preProcessEditCellProps?d[r][o].value:c,T(r,o,l)):t(!1)}));l.push(g)}Object.entries(d[r]).forEach((([i,a])=>{if(i===o)return;const s=e.current.getColumn(i);if(!s.preProcessEditCellProps)return;a=(0,n.A)({},a,{isProcessingProps:!0}),T(r,i,a),d=(0,Le.w)(e.current.state);const c=d[r],p=(0,S.A)(c,[i].map(I.A)),f=Promise.resolve(s.preProcessEditCellProps({id:r,row:u,props:a,hasChanged:!1,otherFieldsProps:p})).then((o=>{e.current.getRowMode(r)!==Me.V_.View?(o=(0,n.A)({},o,{isProcessingProps:!1}),T(r,i,o)):t(!1)}));l.push(f)})),Promise.all(l).then((()=>{e.current.getRowMode(r)===Me.V_.Edit?(d=(0,Le.w)(e.current.state),t(!d[r][o].error)):t(!1)}))}))}),[e,b,T]),getRowWithUpdatedValuesFromRowEditing:o.useCallback((t=>{const r=(0,Le.w)(e.current.state),o=e.current.getRow(t);if(!r[t])return e.current.getRow(t);let l=(0,n.A)({},o);return Object.entries(r[t]).forEach((([t,r])=>{const n=e.current.getColumn(t);n.valueSetter?l=n.valueSetter(r.value,l,n,e):l[t]=r.value})),l}),[e])};(0,g.P)(e,j,"public"),(0,g.P)(e,N,"private"),o.useEffect((()=>{p&&E(p)}),[p,E]),(0,he.A)((()=>{const t=(0,re.gk)(e),o=a.current;a.current=(0,f.Go)(r),Object.entries(r).forEach((([e,r])=>{const l=o[e]?.mode||Me.V_.View,i=t[e]??e;r.mode===Me.V_.Edit&&l===Me.V_.View?D((0,n.A)({id:i},r)):r.mode===Me.V_.View&&l===Me.V_.Edit&&L((0,n.A)({id:i},r))}))}),[e,r,D,L])})(e,t);const r=o.useRef({}),{isCellEditable:l}=t,i=o.useCallback((e=>!(0,We.DJ)(e.rowNode)&&!!e.colDef.editable&&!!e.colDef.renderEditCell&&(!l||l(e))),[l]);o.useEffect((()=>{const e=r.current;return()=>{Object.entries(e).forEach((([t,r])=>{Object.keys(r).forEach((r=>{const[n]=e[t][r];clearTimeout(n),delete e[t][r]}))}))}}),[]);const a=o.useCallback(((e,t)=>{if(r.current[e])if(t){if(r.current[e][t]){const[,n]=r.current[e][t];n()}}else Object.keys(r.current[e]).forEach((t=>{const[,n]=r.current[e][t];n()}))}),[]),s={isCellEditable:i,setEditCellValue:o.useCallback((n=>{const{id:o,field:l,debounceMs:i}=n;return new Promise((a=>{((e,t,n,o)=>{if(!n)return void o();if(r.current[e]||(r.current[e]={}),r.current[e][t]){const[n]=r.current[e][t];clearTimeout(n)}const l=setTimeout((()=>{o(),delete r.current[e][t]}),n);r.current[e][t]=[l,()=>{const[n]=r.current[e][t];clearTimeout(n),o(),delete r.current[e][t]}]})(o,l,i,(async()=>{const r=t.editMode===Me.RL.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(o,l)===Me.bs.Edit){const e=await r(n);a(e)}}))}))}),[e,t.editMode]),getRowWithUpdatedValues:o.useCallback(((r,n)=>t.editMode===Me.RL.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(r,n):e.current.getRowWithUpdatedValuesFromRowEditing(r)),[e,t.editMode]),unstable_getEditCellMeta:o.useCallback(((t,r)=>{const n=(0,Le.w)(e.current.state);return n[t]?.[r]??null}),[e])},u={runPendingEditCellValueMutation:a};(0,g.P)(e,s,"public"),(0,g.P)(e,u,"private")})(r,t),((e,t)=>{const r=(0,N.q)(e,"useGridFocus"),l=o.useRef(null),i=o.useCallback(((t,r)=>{t&&e.current.getRow(t.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(t.id,t.field),r)}),[e]),a=o.useCallback(((t,o)=>{const l=(0,H.MO)(e);l?.id===t&&l?.field===o||(e.current.setState((e=>(r.debug(`Focusing on cell with id=${t} and field=${o}`),(0,n.A)({},e,{tabIndex:{cell:{id:t,field:o},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:t,field:o},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))),e.current.forceUpdate(),e.current.getRow(t)&&(l&&i(l,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(t,o))))}),[e,r,i]),s=o.useCallback(((t,o={})=>{const l=(0,H.MO)(e);i(l,o),e.current.setState((e=>(r.debug(`Focusing on column header with colIndex=${t}`),(0,n.A)({},e,{tabIndex:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))),e.current.forceUpdate()}),[e,r,i]),u=o.useCallback(((t,o={})=>{const l=(0,H.MO)(e);i(l,o),e.current.setState((e=>(r.debug(`Focusing on column header filter with colIndex=${t}`),(0,n.A)({},e,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null}})))),e.current.forceUpdate()}),[e,r,i]),c=o.useCallback(((t,r,o={})=>{const l=(0,H.MO)(e);l&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(l.id,l.field),o),e.current.setState((e=>(0,n.A)({},e,{tabIndex:{columnGroupHeader:{field:t,depth:r},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:t,depth:r},columnHeader:null,columnHeaderFilter:null,cell:null}}))),e.current.forceUpdate()}),[e]),d=o.useCallback((()=>(0,H.WO)(e)),[e]),p=o.useCallback(((r,n,o)=>{let l=e.current.getColumnIndex(n);const i=(0,V.iv)(e),a=(0,Se.e)(e,{pagination:t.pagination,paginationMode:t.paginationMode}),s=(0,re.$2)(e),u=[].concat(s.top||[],a.rows,s.bottom||[]);let c=u.findIndex((e=>e.id===r));"right"===o?l+=1:"left"===o?l-=1:c+=1,l>=i.length?(c+=1,c<u.length&&(l=0)):l<0&&(c-=1,c>=0&&(l=i.length-1)),c=(0,f.qE)(c,0,u.length-1);const d=u[c];if(!d)return;const p=e.current.unstable_getCellColSpanInfo(d.id,l);p&&p.spannedByColSpan&&("left"===o||"below"===o?l=p.leftVisibleCellIndex:"right"===o&&(l=p.rightVisibleCellIndex)),l=(0,f.qE)(l,0,i.length-1);const g=i[l];e.current.setCellFocus(d.id,g.field)}),[e,t.pagination,t.paginationMode]),h=o.useCallback((({id:t,field:r})=>{e.current.setCellFocus(t,r)}),[e]),m=o.useCallback(((t,r)=>{"Enter"===r.key||"Tab"===r.key||"Shift"===r.key||(0,Re.q9)(r.key)||e.current.setCellFocus(t.id,t.field)}),[e]),b=o.useCallback((({field:t},r)=>{r.target===r.currentTarget&&e.current.setColumnHeaderFocus(t,r)}),[e]),w=o.useCallback((({fields:t,depth:r},n)=>{if(n.target!==n.currentTarget)return;const o=(0,H.WO)(e);null!==o&&o.depth===r&&t.includes(o.field)||e.current.setColumnGroupHeaderFocus(t[0],r,n)}),[e]),C=o.useCallback(((t,o)=>{o.relatedTarget?.className.includes(se.x.columnHeader)||(r.debug("Clearing focus"),e.current.setState((e=>(0,n.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))))}),[r,e]),v=o.useCallback((e=>{l.current=e}),[]),y=o.useCallback((t=>{const r=l.current;l.current=null;const o=(0,H.MO)(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:t,cell:r}))return;if(!o)return void(r&&e.current.setCellFocus(r.id,r.field));if(r?.id===o.id&&r?.field===o.field)return;const a=e.current.getCellElement(o.id,o.field);a?.contains(t.target)||(r?e.current.setCellFocus(r.id,r.field):(e.current.setState((e=>(0,n.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),i(o,t)))}),[e,i]),A=o.useCallback((t=>{if("view"===t.cellMode)return;const r=(0,H.MO)(e);r?.id===t.id&&r?.field===t.field||e.current.setCellFocus(t.id,t.field)}),[e]),R=o.useCallback((()=>{const t=(0,H.MO)(e);t&&!e.current.getRow(t.id)&&e.current.setState((e=>(0,n.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))}),[e]),S=(0,Q.A)((()=>{const r=(0,H.MO)(e);if(!r)return;const o=(0,Se.e)(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(o.rows.find((e=>e.id===r.id)))return;const l=(0,V.iv)(e);e.current.setState((e=>(0,n.A)({},e,{tabIndex:{cell:{id:o.rows[0].id,field:l[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}})))})),I={setCellFocus:a,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:u},M={moveFocusToRelativeCell:p,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:d};(0,g.P)(e,I,"public"),(0,g.P)(e,M,"private"),o.useEffect((()=>{const t=(0,ae.A)(e.current.rootElementRef.current);return t.addEventListener("mouseup",y),()=>{t.removeEventListener("mouseup",y)}}),[e,y]),(0,x.cz)(e,"columnHeaderBlur",C),(0,x.cz)(e,"cellDoubleClick",h),(0,x.cz)(e,"cellMouseDown",v),(0,x.cz)(e,"cellKeyDown",m),(0,x.cz)(e,"cellModeChange",A),(0,x.cz)(e,"columnHeaderFocus",b),(0,x.cz)(e,"columnGroupHeaderFocus",w),(0,x.cz)(e,"rowsSet",R),(0,x.cz)(e,"paginationModelChange",S)})(r,t),((e,t)=>{const r=(0,N.q)(e,"useGridPreferencesPanel"),l=o.useRef(),i=o.useRef(),a=o.useCallback((()=>{r.debug("Hiding Preferences Panel");const t=(0,De._)(e.current.state);t.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:t.openedPanelValue}),e.current.setState((e=>(0,n.A)({},e,{preferencePanel:{open:!1}}))),e.current.forceUpdate()}),[e,r]),s=o.useCallback((()=>{i.current=setTimeout((()=>clearTimeout(l.current)),0)}),[]),u=o.useCallback((()=>{l.current=setTimeout(a,100)}),[a]),c=o.useCallback(((t,o,l)=>{r.debug("Opening Preferences Panel"),s(),e.current.setState((e=>(0,n.A)({},e,{preferencePanel:(0,n.A)({},e.preferencePanel,{open:!0,openedPanelValue:t,panelId:o,labelId:l})}))),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:t}),e.current.forceUpdate()}),[r,s,e]);(0,g.P)(e,{showPreferences:c,hidePreferences:u},"public");const d=o.useCallback(((r,o)=>{const l=(0,De._)(e.current.state);return!o.exportOnlyDirtyModels||null!=t.initialState?.preferencePanel||l.open?(0,n.A)({},r,{preferencePanel:l}):r}),[e,t.initialState?.preferencePanel]),p=o.useCallback(((t,r)=>{const o=r.stateToRestore.preferencePanel;return null!=o&&e.current.setState((e=>(0,n.A)({},e,{preferencePanel:o}))),t}),[e]);U(e,"exportState",d),U(e,"restoreState",p),o.useEffect((()=>()=>{clearTimeout(l.current),clearTimeout(i.current)}),[])})(r,t),((e,t)=>{const r=(0,N.q)(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:te.ZI,changeEvent:"filterModelChange"});const l=o.useCallback((()=>{e.current.setState((r=>{const o=(0,te.ZI)(r,e.current.instanceId),l="client"===t.filterMode?(0,Ce.Fv)(o,e,t.disableEval):null,i=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:l,filterModel:o??(0,be.T)()}),a=(0,n.A)({},r,{filter:(0,n.A)({},r.filter,i)}),s=ye(e,a);return(0,n.A)({},a,{visibleRowsLookup:s})})),e.current.publishEvent("filteredRowsSet")}),[e,t.filterMode,t.disableEval]),i=o.useCallback(((e,r)=>null==r||!1===r.filterable||t.disableColumnFilter?e:[...e,"columnMenuFilterItem"]),[t.disableColumnFilter]),a=o.useCallback((()=>{l(),e.current.forceUpdate()}),[e,l]),s=o.useCallback((t=>{const r=(0,te.ZI)(e),o=[...r.items],l=o.findIndex((e=>e.id===t.id));-1===l?o.push(t):o[l]=t,e.current.setFilterModel((0,n.A)({},r,{items:o}),"upsertFilterItem")}),[e]),u=o.useCallback((t=>{const r=(0,te.ZI)(e),o=[...r.items];t.forEach((e=>{const t=o.findIndex((t=>t.id===e.id));-1===t?o.push(e):o[t]=e})),e.current.setFilterModel((0,n.A)({},r,{items:o}),"upsertFilterItems")}),[e]),c=o.useCallback((t=>{const r=(0,te.ZI)(e),o=r.items.filter((e=>e.id!==t.id));o.length!==r.items.length&&e.current.setFilterModel((0,n.A)({},r,{items:o}),"deleteFilterItem")}),[e]),d=o.useCallback(((o,l,i)=>{if(r.debug("Displaying filter panel"),o){const r=(0,te.ZI)(e),l=r.items.filter((t=>{if(void 0!==t.value)return!Array.isArray(t.value)||0!==t.value.length;const r=e.current.getColumn(t.field),n=r.filterOperators?.find((e=>e.value===t.operator));return!(void 0===n?.requiresFilterValue||n?.requiresFilterValue)}));let i;const a=l.find((e=>e.field===o)),s=e.current.getColumn(o);i=a?l:t.disableMultipleColumnsFiltering?[(0,Ce.zk)({field:o,operator:s.filterOperators[0].value},e)]:[...l,(0,Ce.zk)({field:o,operator:s.filterOperators[0].value},e)],e.current.setFilterModel((0,n.A)({},r,{items:i}))}e.current.showPreferences(q.y.filters,l,i)}),[e,r,t.disableMultipleColumnsFiltering]),p=o.useCallback((()=>{r.debug("Hiding filter panel"),e.current.hidePreferences()}),[e,r]),h=o.useCallback((t=>{const r=(0,te.ZI)(e);r.logicOperator!==t&&e.current.setFilterModel((0,n.A)({},r,{logicOperator:t}),"changeLogicOperator")}),[e]),m=o.useCallback((t=>{const r=(0,te.ZI)(e);(0,f.Hv)(r.quickFilterValues,t)||e.current.setFilterModel((0,n.A)({},r,{quickFilterValues:[...t]}))}),[e]),b={setFilterLogicOperator:h,unstable_applyFilters:a,deleteFilterItem:c,upsertFilterItem:s,upsertFilterItems:u,setFilterModel:o.useCallback(((n,o)=>{(0,te.ZI)(e)!==n&&(r.debug("Setting filter model"),e.current.updateControlState("filter",(0,Ce.zU)(n,t.disableMultipleColumnsFiltering,e),o),e.current.unstable_applyFilters())}),[e,r,t.disableMultipleColumnsFiltering]),showFilterPanel:d,hideFilterPanel:p,setQuickFilterValues:m,ignoreDiacritics:t.ignoreDiacritics};(0,g.P)(e,b,"public");const w=o.useCallback(((r,o)=>{const l=(0,te.ZI)(e);return o.exportOnlyDirtyModels&&null==t.filterModel&&null==t.initialState?.filter?.filterModel&&(0,f.Hv)(l,(0,be.T)())?r:(0,n.A)({},r,{filter:{filterModel:l}})}),[e,t.filterModel,t.initialState?.filter?.filterModel]),C=o.useCallback(((r,o)=>{const l=o.stateToRestore.filter?.filterModel;return null==l?r:(e.current.updateControlState("filter",(0,Ce.zU)(l,t.disableMultipleColumnsFiltering,e),"restoreState"),(0,n.A)({},r,{callbacks:[...r.callbacks,e.current.unstable_applyFilters]}))}),[e,t.disableMultipleColumnsFiltering]),v=o.useCallback(((e,r)=>{if(r===q.y.filters){const e=t.slots.filterPanel;return(0,X.jsx)(e,(0,n.A)({},t.slotProps?.filterPanel))}return e}),[t.slots.filterPanel,t.slotProps?.filterPanel]),{getRowId:y}=t,A=(0,me.A)(Ae),R=o.useCallback((r=>{if("client"!==t.filterMode||!r.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const n=(0,re.rI)(e),o={},{isRowMatchingFilters:l}=r,i={},a={passingFilterItems:null,passingQuickFilterValues:null},s=A.current(e.current.state.rows.dataRowIdToModelLookup);for(let t=0;t<s.length;t+=1){const n=s[t],u=y?y(n):n.id;l(n,void 0,a);const c=(0,Ce.Ko)([a.passingFilterItems],[a.passingQuickFilterValues],r.filterModel,e,i);o[u]=c}const u="auto-generated-group-footer-root";return n[u]&&(o[u]=!0),{filteredRowsLookup:o,filteredDescendantCountLookup:{}}}),[e,t.filterMode,y,A]);U(e,"columnMenu",i),U(e,"exportState",w),U(e,"restoreState",C),U(e,"preferencePanel",v),we(e,M,"filtering",R),we(e,M,"visibleRowsLookupCreation",xe);const S=o.useCallback((()=>{r.debug("onColUpdated - GridColumns changed, applying filters");const t=(0,te.ZI)(e),o=(0,V.gv)(e),l=t.items.filter((e=>e.field&&o[e.field]));l.length<t.items.length&&e.current.setFilterModel((0,n.A)({},t,{items:l}))}),[e,r]),I=o.useCallback((t=>{"filtering"===t&&e.current.unstable_applyFilters()}),[e]),k=o.useCallback((()=>{e.current.setState((t=>(0,n.A)({},t,{visibleRowsLookup:ye(e,t)}))),e.current.forceUpdate()}),[e]);(0,x.cz)(e,"rowsSet",l),(0,x.cz)(e,"columnsChange",S),(0,x.cz)(e,"activeStrategyProcessorChange",I),(0,x.cz)(e,"rowExpansionChange",k),(0,x.cz)(e,"columnVisibilityModelChange",(()=>{const t=(0,te.ZI)(e);t.quickFilterValues&&(0,Ce.kO)(t)&&e.current.unstable_applyFilters()})),(0,B.g)((()=>{e.current.unstable_applyFilters()})),(0,he.A)((()=>{void 0!==t.filterModel&&e.current.setFilterModel(t.filterModel)}),[e,r,t.filterModel])})(r,t),((e,t)=>{const r=(0,N.q)(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:qe.XU,changeEvent:"sortModelChange"});const l=o.useCallback(((t,r)=>{const n=(0,qe.XU)(e),o=n.findIndex((e=>e.field===t));let l=[...n];return o>-1?null==r?.sort?l.splice(o,1):l.splice(o,1,r):l=[...n,r],l}),[e]),i=o.useCallback(((r,o)=>{const l=(0,qe.XU)(e).find((e=>e.field===r.field));if(l){const e=void 0===o?(0,nt.Hm)(r.sortingOrder??t.sortingOrder,l.sort):o;return void 0===e?void 0:(0,n.A)({},l,{sort:e})}return{field:r.field,sort:void 0===o?(0,nt.Hm)(r.sortingOrder??t.sortingOrder):o}}),[e,t.sortingOrder]),a=o.useCallback(((e,r)=>null==r||!1===r.sortable||t.disableColumnSorting?e:(r.sortingOrder||t.sortingOrder).some((e=>!!e))?[...e,"columnMenuSortItem"]:e),[t.sortingOrder,t.disableColumnSorting]),s=o.useCallback((()=>{e.current.setState((o=>{if("server"===t.sortingMode)return r.debug("Skipping sorting rows as sortingMode = server"),(0,n.A)({},o,{sorting:(0,n.A)({},o.sorting,{sortedRows:(0,We.l_)((0,re.qj)(e),We.OL,!1)})});const l=(0,qe.XU)(o,e.current.instanceId),i=(0,nt.Lj)(l,e),a=e.current.applyStrategyProcessor("sorting",{sortRowList:i});return(0,n.A)({},o,{sorting:(0,n.A)({},o.sorting,{sortedRows:a})})})),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()}),[e,r,t.sortingMode]),u=o.useCallback((n=>{(0,qe.XU)(e)!==n&&(r.debug("Setting sort model"),e.current.setState((0,nt.ps)(n,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())}),[e,r,t.disableMultipleColumnsSorting]),c=o.useCallback(((r,n,o)=>{const a=e.current.getColumn(r),s=i(a,n);let u;u=!o||t.disableMultipleColumnsSorting?null==s?.sort?[]:[s]:l(a.field,s),e.current.setSortModel(u)}),[e,l,i,t.disableMultipleColumnsSorting]),d={getSortModel:o.useCallback((()=>(0,qe.XU)(e)),[e]),getSortedRows:o.useCallback((()=>(0,qe.J6)(e).map((e=>e.model))),[e]),getSortedRowIds:o.useCallback((()=>(0,qe.RJ)(e)),[e]),getRowIdFromRowIndex:o.useCallback((t=>e.current.getSortedRowIds()[t]),[e]),setSortModel:u,sortColumn:c,applySorting:s};(0,g.P)(e,d,"public");const p=o.useCallback(((r,o)=>{const l=(0,qe.XU)(e);return!o.exportOnlyDirtyModels||null!=t.sortModel||null!=t.initialState?.sorting?.sortModel||l.length>0?(0,n.A)({},r,{sorting:{sortModel:l}}):r}),[e,t.sortModel,t.initialState?.sorting?.sortModel]),f=o.useCallback(((r,o)=>{const l=o.stateToRestore.sorting?.sortModel;return null==l?r:(e.current.setState((0,nt.ps)(l,t.disableMultipleColumnsSorting)),(0,n.A)({},r,{callbacks:[...r.callbacks,e.current.applySorting]}))}),[e,t.disableMultipleColumnsSorting]),h=o.useCallback((t=>{const r=(0,re.qj)(e),n=r[We.OL],o=t.sortRowList?t.sortRowList(n.children.map((e=>r[e]))):[...n.children];return null!=n.footerId&&o.push(n.footerId),o}),[e]);U(e,"exportState",p),U(e,"restoreState",f),we(e,M,"sorting",h);const m=o.useCallback((({field:e,colDef:r},n)=>{if(!r.sortable||t.disableColumnSorting)return;const o=n.shiftKey||n.metaKey||n.ctrlKey;c(e,void 0,o)}),[c,t.disableColumnSorting]),b=o.useCallback((({field:e,colDef:r},n)=>{r.sortable&&!t.disableColumnSorting&&("Enter"!==n.key||n.ctrlKey||n.metaKey||c(e,void 0,n.shiftKey))}),[c,t.disableColumnSorting]),w=o.useCallback((()=>{const t=(0,qe.XU)(e),r=(0,V.gv)(e);if(t.length>0){const n=t.filter((e=>r[e.field]));n.length<t.length&&e.current.setSortModel(n)}}),[e]),C=o.useCallback((t=>{"sorting"===t&&e.current.applySorting()}),[e]);U(e,"columnMenu",a),(0,x.cz)(e,"columnHeaderClick",m),(0,x.cz)(e,"columnHeaderKeyDown",b),(0,x.cz)(e,"rowsSet",e.current.applySorting),(0,x.cz)(e,"columnsChange",w),(0,x.cz)(e,"activeStrategyProcessorChange",C),(0,B.g)((()=>{e.current.applySorting()})),(0,he.A)((()=>{void 0!==t.sortModel&&e.current.setSortModel(t.sortModel)}),[e,t.sortModel])})(r,t),((e,t)=>{const r=(0,N.q)(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:J._v,changeEvent:"densityChange"});const l=(0,Q.A)((t=>{(0,J._v)(e.current.state)!==t&&(r.debug(`Set grid density to ${t}`),e.current.setState((e=>(0,n.A)({},e,{density:t}))))}));o.useEffect((()=>{t.density&&e.current.setDensity(t.density)}),[e,t.density]);const i={setDensity:l};(0,g.P)(e,i,"public")})(r,t),Ot(r,t),((e,t)=>{((e,t)=>{const r=(0,N.q)(e,"useGridPaginationModel"),l=(0,ce.N)(e,J.rf),i=Math.floor(t.rowHeight*l);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:de.lN,changeEvent:"paginationModelChange"});const a={setPage:o.useCallback((t=>{const n=(0,de.lN)(e);t!==n.page&&(r.debug(`Setting page to ${t}`),e.current.setPaginationModel({page:t,pageSize:n.pageSize}))}),[e,r]),setPageSize:o.useCallback((t=>{const n=(0,de.lN)(e);t!==n.pageSize&&(r.debug(`Setting page size to ${t}`),e.current.setPaginationModel({pageSize:t,page:n.page}))}),[e,r]),setPaginationModel:o.useCallback((o=>{const l=(0,de.lN)(e);o!==l&&(r.debug("Setting 'paginationModel' to",o),e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:fe(e.pagination,t.signature,o)})}))))}),[e,r,t.signature])};(0,g.P)(e,a,"public");const s=o.useCallback(((r,o)=>{const l=(0,de.lN)(e);return!o.exportOnlyDirtyModels||null!=t.paginationModel||null!=t.initialState?.pagination?.paginationModel||0!==l.page&&l.pageSize!==(0,pe.eW)(t.autoPageSize)?(0,n.A)({},r,{pagination:(0,n.A)({},r.pagination,{paginationModel:l})}):r}),[e,t.paginationModel,t.initialState?.pagination?.paginationModel,t.autoPageSize]),u=o.useCallback(((r,o)=>{const l=o.stateToRestore.pagination?.paginationModel?(0,n.A)({},(0,pe.N0)(t.autoPageSize),o.stateToRestore.pagination?.paginationModel):(0,de.lN)(e);return e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:fe(e.pagination,t.signature,l)})}))),r}),[e,t.autoPageSize,t.signature]);U(e,"exportState",s),U(e,"restoreState",u);const c=o.useCallback((()=>{if(!t.autoPageSize)return;const r=e.current.getRootDimensions(),n=Math.floor(r.viewportInnerSize.height/i);e.current.setPageSize(n)}),[e,t.autoPageSize,i]),d=o.useCallback((t=>{if(null==t)return;const r=(0,de.lN)(e),n=(0,de.O)(e);r.page>n-1&&e.current.setPage(Math.max(0,n-1))}),[e]);(0,x.cz)(e,"viewportInnerSizeChange",c),(0,x.cz)(e,"paginationModelChange",(()=>{const t=(0,de.lN)(e);e.current.virtualScrollerRef?.current&&e.current.scrollToIndexes({rowIndex:t.page*t.pageSize})})),(0,x.cz)(e,"rowCountChange",d),o.useEffect((()=>{e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:fe(e.pagination,t.signature,t.paginationModel)})})))}),[e,t.paginationModel,t.paginationMode,t.signature]),o.useEffect(c,[c])})(e,t),((e,t)=>{const r=(0,N.q)(e,"useGridRowCount"),l=(0,ce.N)(e,te.RN),i=(0,ce.N)(e,de.H2);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:de.H2,changeEvent:"rowCountChange"});const a={setRowCount:o.useCallback((t=>{i!==t&&(r.debug("Setting 'rowCount' to",t),e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{rowCount:t})}))))}),[e,r,i])};(0,g.P)(e,a,"public");const s=o.useCallback(((r,o)=>{const l=(0,de.H2)(e);return o.exportOnlyDirtyModels&&null==t.rowCount&&null==t.initialState?.pagination?.rowCount?r:(0,n.A)({},r,{pagination:(0,n.A)({},r.pagination,{rowCount:l})})}),[e,t.rowCount,t.initialState?.pagination?.rowCount]),u=o.useCallback(((t,r)=>{const o=r.stateToRestore.pagination?.rowCount?r.stateToRestore.pagination.rowCount:(0,de.H2)(e);return e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{rowCount:o})}))),t}),[e]);U(e,"exportState",s),U(e,"restoreState",u),o.useEffect((()=>{}),[t.rowCount,t.paginationMode]),o.useEffect((()=>{"client"===t.paginationMode?e.current.setRowCount(l):null!=t.rowCount&&e.current.setRowCount(t.rowCount)}),[e,l,t.paginationMode,t.rowCount])})(e,t)})(r,t),((e,t)=>{const{getRowHeight:r,getRowSpacing:l,getEstimatedRowHeight:i}=t,a=o.useRef(Object.create(null)),s=o.useRef(-1),u=o.useRef(!1),c=(0,ce.N)(e,J.rf),d=(0,ce.N)(e,te.ZI),p=(0,ce.N)(e,de.M5),f=(0,ce.N)(e,qe.XU),h=(0,Se.h)(e,t),m=(0,ce.N)(e,re.$2),b=ht(t.rowHeight,ft.E.rowHeight),w=Math.floor(b*c),C=o.useCallback((()=>{u.current=!1;const t=t=>{a.current[t.id]||(a.current[t.id]={sizes:{baseCenter:w},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:o,needsFirstMeasurement:s,sizes:d}=a.current[t.id];let p="number"==typeof w&&w>0?w:52;const f=d.baseCenter;if(o)p=f;else if(r){const e=r((0,n.A)({},t,{densityFactor:c}));"auto"===e?(p=s?(i?i((0,n.A)({},t,{densityFactor:c})):w)??w:f,u.current=!0,a.current[t.id].autoHeight=!0):(p=ht(e,w),a.current[t.id].needsFirstMeasurement=!1,a.current[t.id].autoHeight=!1)}else a.current[t.id].needsFirstMeasurement=!1;const g={baseCenter:p};if(l){const r=e.current.getRowIndexRelativeToVisibleRows(t.id),o=l((0,n.A)({},t,{isFirstVisible:0===r,isLastVisible:r===h.rows.length-1,indexRelativeToCurrentPage:r}));g.spacingTop=o.top??0,g.spacingBottom=o.bottom??0}const m=e.current.unstable_applyPipeProcessors("rowHeight",g,t);return a.current[t.id].sizes=m,m},o=[],d=h.rows.reduce(((e,r)=>{o.push(e);let n=0;const l=t(r);for(const e in l){const t=l[e];"baseCenter"!==e&&(n+=t)}return e+l.baseCenter+n}),0);m?.top?.forEach((e=>{t(e)})),m?.bottom?.forEach((e=>{t(e)})),e.current.setState((e=>(0,n.A)({},e,{rowsMeta:{currentPageTotalHeight:d,positions:o}}))),u.current||(s.current=1/0),e.current.forceUpdate()}),[e,h.rows,w,r,l,i,m,c]),v=o.useCallback((e=>{const t=a.current[e];return t?t.sizes.baseCenter:w}),[w]),x=o.useCallback(((e,t)=>{a.current[e].sizes.baseCenter=t,a.current[e].isResized=!0,a.current[e].needsFirstMeasurement=!1,C()}),[C]),y=o.useMemo((()=>(0,pt.A)(C,t.rowPositionsDebounceMs)),[C,t.rowPositionsDebounceMs]),A=o.useCallback(((e,t)=>{if(!a.current[e]||!a.current[e].autoHeight)return;const r=a.current[e].sizes.baseCenter!==t;a.current[e].needsFirstMeasurement=!1,a.current[e].sizes.baseCenter=t,r&&y()}),[y]),R=o.useCallback((e=>a.current[e]?.autoHeight||!1),[]),S=o.useCallback((()=>s.current),[]),I=o.useCallback((e=>{u.current&&e>s.current&&(s.current=e)}),[]),M=o.useCallback((()=>{a.current={},C()}),[C]);o.useEffect((()=>{C()}),[w,d,p,f,C]),W(e,"rowHeight",C);const k={unstable_setLastMeasuredRowIndex:I,unstable_getRowHeight:v,unstable_getRowInternalSizes:e=>a.current[e]?.sizes,unstable_setRowHeight:x,unstable_storeRowHeightMeasurement:A,resetRowHeights:M},P={getLastMeasuredRowIndex:S,rowHasAutoHeight:R};(0,g.P)(e,k,"public"),(0,g.P)(e,P,"private")})(r,t),((e,t)=>{const r=(0,p.A)(),n=(0,N.q)(e,"useGridScroll"),l=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,a=(0,ce.N)(e,te.em),s=o.useCallback((r=>{const o=(0,lt.z)(e.current.state),l=(0,re.H0)(e),s=(0,V.iv)(e);if(null!=r.rowIndex&&0===l||0===s.length)return!1;n.debug(`Scrolling to cell at row ${r.rowIndex}, col: ${r.colIndex} `);let u={};if(void 0!==r.colIndex){const t=(0,V.Sw)(e);let n;if(void 0!==r.rowIndex){const t=a[r.rowIndex]?.id,o=e.current.unstable_getCellColSpanInfo(t,r.colIndex);o&&!o.spannedByColSpan&&(n=o.cellProps.width)}void 0===n&&(n=s[r.colIndex].computedWidth),u.left=it({clientHeight:o.viewportInnerSize.width,scrollTop:Math.abs(i.current.scrollLeft),offsetHeight:n,offsetTop:t[r.colIndex]})}if(void 0!==r.rowIndex){const n=(0,ue.E)(e.current.state),l=(0,de.$i)(e),a=(0,de.ij)(e),s=t.pagination?r.rowIndex-l*a:r.rowIndex,c=n.positions[s+1]?n.positions[s+1]-n.positions[s]:n.currentPageTotalHeight-n.positions[s];u.top=it({clientHeight:o.viewportInnerSize.height,scrollTop:i.current.scrollTop,offsetHeight:c,offsetTop:n.positions[s]})}return u=e.current.unstable_applyPipeProcessors("scrollToIndexes",u,r),(void 0!==typeof u.left||void 0!==typeof u.top)&&(e.current.scroll(u),!0)}),[n,e,i,t.pagination,a]),u={scroll:o.useCallback((e=>{if(i.current&&void 0!==e.left&&l.current){const t="rtl"===r.direction?-1:1;l.current.scrollLeft=e.left,i.current.scrollLeft=t*e.left,n.debug(`Scrolling left: ${e.left}`)}i.current&&void 0!==e.top&&(i.current.scrollTop=e.top,n.debug(`Scrolling top: ${e.top}`)),n.debug("Scrolling, updating container, and viewport")}),[i,r.direction,l,n]),scrollToIndexes:s,getScrollPosition:o.useCallback((()=>i?.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0}),[i])};(0,g.P)(e,u,"public")})(r,t),(e=>{const t=(0,N.q)(e,"useGridColumnMenu"),r=o.useCallback((r=>{const o=(0,$.$)(e.current.state),l=r;(!0!==o.open||l!==o.field)&&(e.current.setState((e=>e.columnMenu.open&&e.columnMenu.field===r?e:(t.debug("Opening Column Menu"),(0,n.A)({},e,{columnMenu:{open:!0,field:r}})))),e.current.hidePreferences(),e.current.forceUpdate())}),[e,t]),l=o.useCallback((()=>{const r=(0,$.$)(e.current.state);if(r.field){const t=(0,V.gv)(e),n=(0,V.FY)(e),o=(0,V.JR)(e);let l=r.field;if(t[l]||(l=o[0]),!1===n[l]){const e=o.filter((e=>e===l||!1!==n[e])),t=e.indexOf(l);l=e[t+1]||e[t-1]}e.current.setColumnHeaderFocus(l)}const o={open:!1,field:void 0};(o.open!==r.open||o.field!==r.field)&&(e.current.setState((e=>(t.debug("Hiding Column Menu"),(0,n.A)({},e,{columnMenu:o})))),e.current.forceUpdate())}),[e,t]),i=o.useCallback((n=>{t.debug("Toggle Column Menu");const o=(0,$.$)(e.current.state);o.open&&o.field===n?l():r(n)}),[e,t,r,l]),a={showColumnMenu:r,hideColumnMenu:l,toggleColumnMenu:i};(0,g.P)(e,a,"public"),(0,x.cz)(e,"columnResizeStart",l),(0,x.cz)(e,"virtualScrollerWheel",e.current.hideColumnMenu),(0,x.cz)(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)})(r),ie(r,t),((e,t)=>{const r=(0,N.q)(e,"useGridPrintExport"),l=o.useRef(null),i=o.useRef(null),a=o.useRef({}),s=o.useRef([]);o.useEffect((()=>{l.current=(0,ae.A)(e.current.rootElementRef.current)}),[e]);const u=o.useCallback(((t,r,n)=>new Promise((o=>{const l=ne({apiRef:e,options:{fields:t,allColumns:r}}).map((e=>e.field)),i=(0,V.OV)(e),a={};i.forEach((e=>{a[e.field]=l.includes(e.field)})),n&&(a[T.f.field]=!0),e.current.setColumnVisibilityModel(a),o()}))),[e]),c=o.useCallback((t=>{const r=t({apiRef:e}).map((t=>e.current.getRow(t)));e.current.setRows(r)}),[e]),d=o.useCallback(((r,o)=>{const i=(0,n.A)({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},o),a=r.contentDocument;if(!a)return;const s=(0,ue.E)(e.current.state),u=e.current.rootElementRef.current,c=u.cloneNode(!0);c.querySelector(`.${se.x.main}`).style.overflow="visible",c.style.contain="size";let d=u.querySelector(`.${se.x.toolbarContainer}`)?.offsetHeight||0,p=u.querySelector(`.${se.x.footerContainer}`)?.offsetHeight||0;i.hideToolbar&&(c.querySelector(`.${se.x.toolbarContainer}`)?.remove(),d=0),i.hideFooter&&(c.querySelector(`.${se.x.footerContainer}`)?.remove(),p=0);const f=s.currentPageTotalHeight+(0,K.pe)(e,t.columnHeaderHeight)+d+p;c.style.height=`${f}px`,c.style.boxSizing="content-box";const g=c.querySelector(`.${se.x.footerContainer}`);g.style.position="absolute",g.style.width="100%",g.style.top=f-p+"px";const h=document.createElement("div");h.appendChild(c),a.body.innerHTML=h.innerHTML;const m="function"==typeof i.pageStyle?i.pageStyle():i.pageStyle;if("string"==typeof m){const e=a.createElement("style");e.appendChild(a.createTextNode(m)),a.head.appendChild(e)}i.bodyClassName&&a.body.classList.add(...i.bodyClassName.split(" "));const b=[];if(i.copyStyles){const e=u.getRootNode(),t=("ShadowRoot"===e.constructor.name?e:l.current).querySelectorAll("style, link[rel='stylesheet']");for(let e=0;e<t.length;e+=1){const r=t[e];if("STYLE"===r.tagName){const e=a.createElement(r.tagName),t=r.sheet;if(t){let r="";for(let e=0;e<t.cssRules.length;e+=1)"string"==typeof t.cssRules[e].cssText&&(r+=`${t.cssRules[e].cssText}\r\n`);e.appendChild(a.createTextNode(r)),a.head.appendChild(e)}}else if(r.getAttribute("href")){const e=a.createElement(r.tagName);for(let t=0;t<r.attributes.length;t+=1){const n=r.attributes[t];n&&e.setAttribute(n.nodeName,n.nodeValue||"")}b.push(new Promise((t=>{e.addEventListener("load",(()=>t()))}))),a.head.appendChild(e)}}}Promise.all(b).then((()=>{r.contentWindow.print()}))}),[e,l,t.columnHeaderHeight]),p=o.useCallback((t=>{l.current.body.removeChild(t),e.current.restoreState(i.current||{}),i.current?.columns?.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.unstable_setVirtualization(!0),e.current.setRows(s.current),i.current=null,a.current={},s.current=[]}),[e]),f={exportDataAsPrint:o.useCallback((async o=>{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=(0,V.FY)(e),s.current=e.current.getSortedRows(),t.pagination){const t={page:0,pageSize:(0,te.O7)(e)};e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:fe(e.pagination,"DataGridPro",t)})}))),e.current.forceUpdate()}await u(o?.fields,o?.allColumns,o?.includeCheckboxes),c(o?.getRowsToExport??oe),e.current.unstable_setVirtualization(!1),await new Promise((e=>{requestAnimationFrame((()=>{e()}))}));const f=function(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}(o?.fileName);f.onload=()=>{d(f,o),f.contentWindow.matchMedia("print").addEventListener("change",(e=>{!1===e.matches&&p(f)}))},l.current.body.appendChild(f)}),[t,r,e,d,p,u,c])};(0,g.P)(e,f,"public");const h=o.useCallback(((e,t)=>t.printOptions?.disableToolbarButton?e:[...e,{component:(0,X.jsx)(le.ME,{options:t.printOptions}),componentName:"printExport"}]),[]);U(e,"exportMenu",h)})(r,t),((e,t)=>{const r=t.ignoreValueFormatterDuringExport,n=("object"==typeof r?r?.clipboardExport:r)||!1,l=t.clipboardCopyCellDelimiter,i=o.useCallback((t=>{if(!t.ctrlKey&&!t.metaKey||"c"!==t.key.toLowerCase()||t.shiftKey||t.altKey)return;if(r=t.target,window.getSelection()?.toString()||r&&(r.selectionEnd||0)-(r.selectionStart||0)>0)return;var r;let o="";if(e.current.getSelectedRows().size>0)o=e.current.getDataAsCsv({includeHeaders:!1,delimiter:l,shouldAppendQuotes:!1});else{const t=(0,H.MO)(e);if(t){const r=e.current.getCellParams(t.id,t.field);o=z(r,{delimiterCharacter:l,ignoreValueFormatter:n,shouldAppendQuotes:!1})}}var i;o=e.current.unstable_applyPipeProcessors("clipboardCopy",o),o&&(i=o,navigator.clipboard?navigator.clipboard.writeText(i).catch((()=>{j(i)})):j(i),e.current.publishEvent("clipboardCopy",o))}),[e,n,l]);(0,F.h)(e,e.current.rootElementRef,"keydown",i),(0,x.re)(e,"clipboardCopy",t.onClipboardCopy)})(r,t),function(e,t){const r=(0,N.q)(e,"useResizeContainer"),l=o.useRef(!1),i=o.useRef(ut),a=(0,ce.N)(e,ue.E),s=(0,ce.N)(e,V.Q1),u=(0,ce.N)(e,J.rf),c=Math.floor(t.rowHeight*u),d=Math.floor(t.columnHeaderHeight*u),p=(f=(0,V.fc)(e),Math.round(f*10**6)/10**6);var f;const h=(0,K.pe)(e,t.columnHeaderHeight),m=s.left.reduce(((e,t)=>e+t.computedWidth),0),b=s.right.reduce(((e,t)=>e+t.computedWidth),0),[w,C]=o.useState(),v=o.useMemo((()=>function(e,t=166){let r,n;const o=()=>{r=void 0,e(...n)};function l(...e){n=e,void 0===r&&(r=setTimeout(o,t))}return l.clear=()=>{clearTimeout(r),r=void 0},l}(C,t.resizeThrottleMs)),[t.resizeThrottleMs]),y=o.useRef(),A=(0,Q.A)((t=>{e.current.setState((e=>(0,n.A)({},e,{dimensions:t})))})),R=o.useCallback((()=>{const t=e.current.mainElementRef.current;if(!t)return;const r=(0,at.A)(t).getComputedStyle(t),n=parseFloat(r.height)||0,o=parseFloat(r.width)||0,l=n!==y.current?.height,i=o!==y.current?.width;if(!y.current||l||i){const t={width:o,height:n};e.current.publishEvent("resize",t),y.current=t}}),[e]),S=o.useCallback((()=>{const r=(0,lt.z)(e.current.state);if(!r.isReady)return 0;const n=(0,Se.e)(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const t=(0,st.nZ)(e),r=t.lastRowIndex-t.firstRowIndex;return Math.min(r-1,n.rows.length)}const o=Math.floor(r.viewportInnerSize.height/c);return Math.min(o,n.rows.length)}),[e,t.pagination,t.paginationMode,t.getRowHeight,c]),I=o.useCallback((()=>{const r=e.current.rootElementRef.current,n=(0,We.zo)(e),o=function(e,t,r){if(void 0!==r)return r;if(null===e||0===t)return 0;const n=(0,ae.A)(e).createElement("div");n.style.width="99px",n.style.height="99px",n.style.position="absolute",n.style.overflow="scroll",n.className="scrollDiv",e.appendChild(n);const o=n.offsetWidth-n.clientWidth;return e.removeChild(n),o}(r,p,t.scrollbarSize),l=h+n.top,s=n.bottom,u={width:p-m-b,height:a.currentPageTotalHeight};let f,g,w=!1,C=!1;if(t.autoHeight)C=!1,w=Math.round(p)>Math.round(i.current.width),f={width:i.current.width,height:l+s+u.height},g={width:Math.max(0,f.width-(C?o:0)),height:Math.max(0,f.height-(w?o:0))};else{f={width:i.current.width,height:i.current.height},g={width:Math.max(0,f.width-m-b),height:Math.max(0,f.height-l-s)};const e=u,t=g,r=e.width>t.width,n=e.height>t.height;(r||n)&&(C=n,w=e.width+(C?o:0)>t.width,w&&(C=e.height+o>t.height)),C&&(g.width-=o),w&&(g.height-=o)}const v=Math.max(f.width,p+(C?o:0)),x={width:p,height:l+u.height+s},y={isReady:!0,root:i.current,viewportOuterSize:f,viewportInnerSize:g,contentSize:u,minimumSize:x,hasScrollX:w,hasScrollY:C,scrollbarSize:o,headerHeight:d,rowWidth:v,rowHeight:c,columnsTotalWidth:p,leftPinnedWidth:m,rightPinnedWidth:b,headersTotalHeight:h,topContainerHeight:l,bottomContainerHeight:s},R=e.current.state.dimensions;A(y),y.viewportInnerSize.width===R.viewportInnerSize.width&&y.viewportInnerSize.height===R.viewportInnerSize.height||e.current.publishEvent("viewportInnerSizeChange",y.viewportInnerSize),e.current.updateRenderContext?.()}),[e,A,t.scrollbarSize,t.autoHeight,a.currentPageTotalHeight,c,d,p,h,m,b]),M={resize:R,getRootDimensions:()=>e.current.state.dimensions},k={updateDimensions:I,getViewportPageSize:S};(0,g.P)(e,M,"public"),(0,g.P)(e,k,"private"),(0,he.A)((()=>{w&&(I(),e.current.publishEvent("debouncedResize",i.current))}),[e,w,I]);const P=e.current.rootElementRef.current,E=e.current.state.dimensions;(0,he.A)((()=>{if(!P)return;const e=(e,t)=>P.style.setProperty(e,t);e("--DataGrid-width",`${E.viewportOuterSize.width}px`),e("--DataGrid-hasScrollX",`${Number(E.hasScrollX)}`),e("--DataGrid-hasScrollY",`${Number(E.hasScrollY)}`),e("--DataGrid-scrollbarSize",`${E.scrollbarSize}px`),e("--DataGrid-rowWidth",`${E.rowWidth}px`),e("--DataGrid-columnsTotalWidth",`${E.columnsTotalWidth}px`),e("--DataGrid-leftPinnedWidth",`${E.leftPinnedWidth}px`),e("--DataGrid-rightPinnedWidth",`${E.rightPinnedWidth}px`),e("--DataGrid-headerHeight",`${E.headerHeight}px`),e("--DataGrid-headersTotalHeight",`${E.headersTotalHeight}px`),e("--DataGrid-topContainerHeight",`${E.topContainerHeight}px`),e("--DataGrid-bottomContainerHeight",`${E.bottomContainerHeight}px`),e("--height",`${E.rowHeight}px`)}),[P,E]);const F=o.useRef(!0),H=o.useCallback((e=>{i.current=e;const n=/jsdom/.test(window.navigator.userAgent);if(0!==e.height||l.current||t.autoHeight||n||(r.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("\n")),l.current=!0),0!==e.width||l.current||n||(r.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("\n")),l.current=!0),F.current)return C(e),void(F.current=!1);v(e)}),[t.autoHeight,v,r]);(0,he.A)(I,[I]),(0,x.re)(e,"sortedRowsSet",I),(0,x.re)(e,"paginationModelChange",I),(0,x.re)(e,"columnsChange",I),(0,x.cz)(e,"resize",H),(0,x.re)(e,"debouncedResize",t.onResize)}(r,t),function(e,t){(0,x.re)(e,"columnHeaderClick",t.onColumnHeaderClick),(0,x.re)(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),(0,x.re)(e,"columnHeaderOver",t.onColumnHeaderOver),(0,x.re)(e,"columnHeaderOut",t.onColumnHeaderOut),(0,x.re)(e,"columnHeaderEnter",t.onColumnHeaderEnter),(0,x.re)(e,"columnHeaderLeave",t.onColumnHeaderLeave),(0,x.re)(e,"cellClick",t.onCellClick),(0,x.re)(e,"cellDoubleClick",t.onCellDoubleClick),(0,x.re)(e,"cellKeyDown",t.onCellKeyDown),(0,x.re)(e,"preferencePanelClose",t.onPreferencePanelClose),(0,x.re)(e,"preferencePanelOpen",t.onPreferencePanelOpen),(0,x.re)(e,"menuOpen",t.onMenuOpen),(0,x.re)(e,"menuClose",t.onMenuClose),(0,x.re)(e,"rowDoubleClick",t.onRowDoubleClick),(0,x.re)(e,"rowClick",t.onRowClick),(0,x.re)(e,"stateChange",t.onStateChange)}(r,t),(e=>{const t={exportState:o.useCallback(((t={})=>e.current.unstable_applyPipeProcessors("exportState",{},t)),[e]),restoreState:o.useCallback((t=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:t}).callbacks.forEach((e=>{e()})),e.current.forceUpdate()}),[e])};(0,g.P)(e,t,"public")})(r),(0,St.lA)(r,t),r},Lt=(new Set,o.forwardRef((function(e,t){const r=(0,ft.Y)(e),o=zt(r.apiRef,r);return(0,X.jsx)(d.X,{privateApiRef:o,props:r,children:(0,X.jsxs)(a.h,(0,n.A)({className:r.className,style:r.style,sx:r.sx,ref:t},r.forwardedProps,{children:[(0,X.jsx)(s.k,{}),(0,X.jsx)(u.S,{}),(0,X.jsx)(c.r,{})]}))})}))),jt=o.memo(Lt);Lt.propTypes={apiRef:i().shape({current:i().object.isRequired}),"aria-label":i().string,"aria-labelledby":i().string,autoHeight:i().bool,autoPageSize:i().bool,autosizeOnMount:i().bool,autosizeOptions:i().shape({columns:i().arrayOf(i().string),expand:i().bool,includeHeaders:i().bool,includeOutliers:i().bool,outliersFactor:i().number}),cellModesModel:i().object,checkboxSelection:i().bool,classes:i().object,clipboardCopyCellDelimiter:i().string,columnBufferPx:i().number,columnGroupingModel:i().arrayOf(i().object),columnHeaderHeight:i().number,columns:i().arrayOf(i().object).isRequired,columnVisibilityModel:i().object,density:i().oneOf(["comfortable","compact","standard"]),disableAutosize:i().bool,disableColumnFilter:i().bool,disableColumnMenu:i().bool,disableColumnResize:i().bool,disableColumnSelector:i().bool,disableColumnSorting:i().bool,disableDensitySelector:i().bool,disableEval:i().bool,disableMultipleRowSelection:i().bool,disableRowSelectionOnClick:i().bool,disableVirtualization:i().bool,editMode:i().oneOf(["cell","row"]),experimentalFeatures:i().shape({warnIfFocusStateIsNotSynced:i().bool}),filterDebounceMs:i().number,filterMode:i().oneOf(["client","server"]),filterModel:i().shape({items:i().arrayOf(i().shape({field:i().string.isRequired,id:i().oneOfType([i().number,i().string]),operator:i().string.isRequired,value:i().any})).isRequired,logicOperator:i().oneOf(["and","or"]),quickFilterExcludeHiddenColumns:i().bool,quickFilterLogicOperator:i().oneOf(["and","or"]),quickFilterValues:i().array}),forwardedProps:i().object,getCellClassName:i().func,getDetailPanelContent:i().func,getEstimatedRowHeight:i().func,getRowClassName:i().func,getRowHeight:i().func,getRowId:i().func,getRowSpacing:i().func,hideFooter:i().bool,hideFooterPagination:i().bool,hideFooterSelectedRowCount:i().bool,ignoreDiacritics:i().bool,ignoreValueFormatterDuringExport:i().oneOfType([i().shape({clipboardExport:i().bool,csvExport:i().bool}),i().bool]),initialState:i().object,isCellEditable:i().func,isRowSelectable:i().func,keepNonExistentRowsSelected:i().bool,loading:i().bool,localeText:i().object,logger:i().shape({debug:i().func.isRequired,error:i().func.isRequired,info:i().func.isRequired,warn:i().func.isRequired}),logLevel:i().oneOf(["debug","error","info","warn",!1]),nonce:i().string,onCellClick:i().func,onCellDoubleClick:i().func,onCellEditStart:i().func,onCellEditStop:i().func,onCellKeyDown:i().func,onCellModesModelChange:i().func,onClipboardCopy:i().func,onColumnHeaderClick:i().func,onColumnHeaderDoubleClick:i().func,onColumnHeaderEnter:i().func,onColumnHeaderLeave:i().func,onColumnHeaderOut:i().func,onColumnHeaderOver:i().func,onColumnOrderChange:i().func,onColumnResize:i().func,onColumnVisibilityModelChange:i().func,onColumnWidthChange:i().func,onDensityChange:i().func,onFilterModelChange:i().func,onMenuClose:i().func,onMenuOpen:i().func,onPaginationModelChange:i().func,onPreferencePanelClose:i().func,onPreferencePanelOpen:i().func,onProcessRowUpdateError:i().func,onResize:i().func,onRowClick:i().func,onRowCountChange:i().func,onRowDoubleClick:i().func,onRowEditStart:i().func,onRowEditStop:i().func,onRowModesModelChange:i().func,onRowSelectionModelChange:i().func,onSortModelChange:i().func,onStateChange:i().func,pageSizeOptions:i().arrayOf(i().oneOfType([i().number,i().shape({label:i().string.isRequired,value:i().number.isRequired})]).isRequired),pagination:i().oneOf([!0]),paginationMode:i().oneOf(["client","server"]),paginationModel:i().shape({page:i().number.isRequired,pageSize:i().number.isRequired}),processRowUpdate:i().func,resizeThrottleMs:i().number,rowBufferPx:i().number,rowCount:i().number,rowHeight:i().number,rowModesModel:i().object,rowPositionsDebounceMs:i().number,rows:i().arrayOf(i().object),rowSelection:i().bool,rowSelectionModel:i().oneOfType([i().arrayOf(i().oneOfType([i().number,i().string]).isRequired),i().number,i().string]),rowSpacingType:i().oneOf(["border","margin"]),scrollbarSize:i().number,showCellVerticalBorder:i().bool,showColumnVerticalBorder:i().bool,slotProps:i().object,slots:i().object,sortingMode:i().oneOf(["client","server"]),sortingOrder:i().arrayOf(i().oneOf(["asc","desc"])),sortModel:i().arrayOf(i().shape({field:i().string.isRequired,sort:i().oneOf(["asc","desc"])})),sx:i().oneOfType([i().arrayOf(i().oneOfType([i().func,i().object,i().bool])),i().func,i().object])}},78617:(e,t,r)=>{r.d(t,{E:()=>X,Y:()=>Z});var n=r(6614),o=r(7552),l=r(31049),i=r(52101),a=r(10736),s=r(92765),u=r(55507),c=r(22987),d=r(47732),p=r(77484),f=r(56384),g=r(51820),h=r(16028),m=r(36014),b=r(63869),w=r(84142),C=r(33360),v=r(79162),x=r(66456),y=r(76404),A=r(1895),R=r(69500);const S=o.forwardRef((function(e,t){const r=(0,y.h)().current.getLocaleText("noResultsOverlayLabel");return(0,R.jsx)(A.$,(0,n.A)({ref:t},e,{children:r}))}));var I=r(32808),M=r(1343),k=r(48171),P=r(98360),E=r(5401),F=r(61723),H=r(93117),T=r(89003),O=r(34383),D=r(17125),z=r(15779),L=r(83673),j=r(64565);const N=["sortingOrder"],$=o.memo((function(e){const{sortingOrder:t}=e,r=(0,L.A)(e,N),o=(0,j.A)(),[l]=t,i="asc"===l?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?(0,R.jsx)(i,(0,n.A)({},r)):null}));var V=r(80170),G=r(29629);const B=["native"],U={booleanCellTrueIcon:V.qb,booleanCellFalseIcon:V.yd,columnMenuIcon:V.A_,openFilterButtonIcon:V.Ui,filterPanelDeleteIcon:V.yd,columnFilteredIcon:V.lj,columnSelectorIcon:V.Gf,columnUnsortedIcon:$,columnSortedAscendingIcon:V.ay,columnSortedDescendingIcon:V.xC,columnResizeIcon:V.r$,densityCompactIcon:V.dc,densityStandardIcon:V.Bn,densityComfortableIcon:V.v$,exportIcon:V.U_,moreActionsIcon:V.c8,treeDataCollapseIcon:V.T5,treeDataExpandIcon:V.fX,groupingCriteriaCollapseIcon:V.T5,groupingCriteriaExpandIcon:V.fX,detailPanelExpandIcon:V.jt,detailPanelCollapseIcon:V.yk,rowReorderIcon:V.Cf,quickFilterIcon:V.Kw,quickFilterClearIcon:V.yd,columnMenuHideIcon:V.j8,columnMenuSortAscendingIcon:V.ay,columnMenuSortDescendingIcon:V.xC,columnMenuFilterIcon:V.lj,columnMenuManageColumnsIcon:V.jS,columnMenuClearIcon:V.hR,loadIcon:V.e2,filterPanelAddIcon:V.jt,filterPanelRemoveAllIcon:V.aC,columnReorderIcon:V.Cf},W=(0,n.A)({},U,{baseCheckbox:I.A,baseTextField:M.A,baseFormControl:k.A,baseSelect:P.A,baseButton:E.A,baseIconButton:F.A,baseInputAdornment:H.A,baseTooltip:T.A,basePopper:O.A,baseInputLabel:D.A,baseSelectOption:function(e){let{native:t}=e,r=(0,L.A)(e,B);return t?(0,R.jsx)("option",(0,n.A)({},r)):(0,R.jsx)(G.A,(0,n.A)({},r))},baseChip:z.A}),_=(0,n.A)({},W,{cell:C.LX,skeletonCell:a.k,columnHeaderFilterIconButton:s.f,columnMenu:x.aU,columnHeaders:v.f,detailPanels:function(e){return null},footer:u.C,footerRowCount:c.g,toolbar:null,pinnedRows:function(e){return null},loadingOverlay:d.b,noResultsOverlay:S,noRowsOverlay:p.h,pagination:f.h,filterPanel:g.v,columnsPanel:h.G,columnsManagement:m.D,panel:b.F,row:w.T});var K=r(87795);const q={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},X={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBufferPx:150,rowBufferPx:150,rows:[],rowSelection:!0,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableColumnSorting:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:K.RL.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,resizeThrottleMs:60,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:"\t",rowPositionsDebounceMs:166,autosizeOnMount:!1,disableAutosize:!1},Y=_,Z=e=>{const t=(s=(0,l.A)({props:e,name:"MuiDataGrid"}),o.useMemo((()=>function(e){const t=Object.keys(e);if(!t.some((e=>e.startsWith("aria-")||e.startsWith("data-"))))return e;const r={},n=e.forwardedProps??{};for(let o=0;o<t.length;o+=1){const l=t[o];l.startsWith("aria-")||l.startsWith("data-")?n[l]=e[l]:r[l]=e[l]}return r.forwardedProps=n,r}((0,n.A)({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(s),s)))),[s])),r=o.useMemo((()=>(0,n.A)({},i._,t.localeText)),[t.localeText]),a=o.useMemo((()=>function({defaultSlots:e,slots:t}){const r=t;if(!r||0===Object.keys(r).length)return e;const o=(0,n.A)({},e);return Object.keys(r).forEach((e=>{const t=e;void 0!==r[t]&&(o[t]=r[t])})),o}({defaultSlots:Y,slots:t.slots})),[t.slots]);var s;return o.useMemo((()=>(0,n.A)({},X,t,{localeText:r,slots:a},q)),[t,r,a])}},65325:(e,t,r)=>{r.d(t,{C:()=>a,D:()=>i});var n=r(6614),o=r(59747),l=r(61828);const i="actions",a=(0,n.A)({},o.C,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:l.o,getApplyQuickFilterFn:void 0})},97830:(e,t,r)=>{r.d(t,{H:()=>u});var n=r(6614),o=r(59747),l=r(2735),i=r(24411),a=r(14298),s=r(52446);const u=(0,n.A)({},o.C,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:l.b,renderEditCell:i.b,sortComparator:a.Ou,valueFormatter:(e,t,r,n)=>e?n.current.getLocaleText("booleanCellTrueLabel"):n.current.getLocaleText("booleanCellFalseLabel"),filterOperators:(0,s.y)(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>(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)})},52446:(e,t,r)=>{r.d(t,{y:()=>o});var n=r(19868);const o=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t="true"===String(e.value);return e=>Boolean(e)===t},InputComponent:n.h}]},92179:(e,t,r)=>{r.d(t,{f:()=>c,t:()=>u});var n=r(6614),o=(r(7552),r(17279)),l=r(83861),i=r(82188),a=r(97830),s=r(69500);const u="__check__",c=(0,n.A)({},a.H,{type:"custom",field:u,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,t,r,n)=>void 0!==(0,i.Zk)(n)[n.current.getRowId(t)],renderHeader:e=>(0,s.jsx)(l.J,(0,n.A)({},e)),renderCell:e=>(0,s.jsx)(o.r,(0,n.A)({},e))})},54310:(e,t,r)=>{r.d(t,{Bj:()=>d,SZ:()=>c,mP:()=>p,zT:()=>u});var n=r(6614),o=r(14298),l=r(30430),i=r(59747),a=r(26067);function s({value:e,columnType:t,rowId:r,field:n}){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: ${r}, field: "${n}".`].join("\n"))}const u=(e,t,r,n)=>e?(s({value:e,columnType:"date",rowId:n.current.getRowId(t),field:r.field}),e.toLocaleDateString()):"",c=(e,t,r,n)=>e?(s({value:e,columnType:"dateTime",rowId:n.current.getRowId(t),field:r.field}),e.toLocaleString()):"",d=(0,n.A)({},i.C,{type:"date",sortComparator:o.VE,valueFormatter:u,filterOperators:(0,l.Q)(),renderEditCell:a.z,pastedValueParser:e=>new Date(e)}),p=(0,n.A)({},i.C,{type:"dateTime",sortComparator:o.VE,valueFormatter:c,filterOperators:(0,l.Q)(!0),renderEditCell:a.z,pastedValueParser:e=>new Date(e)})},30430:(e,t,r)=>{r.d(t,{Q:()=>l});var n=r(22762);function o(e,t,r,n){if(!e.value)return null;const o=new Date(e.value);r?o.setSeconds(0,0):o.setHours(0,0,0,0);const l=o.getTime();return e=>{if(!e)return!1;if(n)return t(e.getTime(),l);const o=new Date(e);return r?o.setSeconds(0,0):o.setHours(0,0,0,0),t(o.getTime(),l)}}const l=e=>[{value:"is",getApplyFilterFn:t=>o(t,((e,t)=>e===t),e),InputComponent:n.L,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>o(t,((e,t)=>e!==t),e),InputComponent:n.L,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>o(t,((e,t)=>e>t),e),InputComponent:n.L,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>o(t,((e,t)=>e>=t),e),InputComponent:n.L,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>o(t,((e,t)=>e<t),e,!e),InputComponent:n.L,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>o(t,((e,t)=>e<=t),e),InputComponent:n.L,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>null!=e,requiresFilterValue:!1}]},23987:(e,t,r)=>{r.d(t,{Z:()=>c,x:()=>u});var n=r(59747),o=r(21605),l=r(54310),i=r(97830),a=r(10830),s=r(65325);const u="string",c=()=>({string:n.C,number:o.g,date:l.Bj,dateTime:l.mP,boolean:i.H,singleSelect:a.m,[s.D]:s.C,custom:n.C})},21605:(e,t,r)=>{r.d(t,{g:()=>s});var n=r(6614),o=r(14298),l=r(58766),i=r(81647),a=r(59747);const s=(0,n.A)({},a.C,{type:"number",align:"right",headerAlign:"right",sortComparator:o.Ou,valueParser:e=>""===e?null:Number(e),valueFormatter:e=>(0,l.Et)(e)?e.toLocaleString():e||"",filterOperators:(0,i.J)(),getApplyQuickFilterFn:i.h})},81647:(e,t,r)=>{r.d(t,{J:()=>a,h:()=>i});var n=r(31525),o=r(33745);const l=e=>null==e?null:Number(e),i=e=>null==e||Number.isNaN(e)||""===e?null:t=>l(t)===l(e),a=()=>[{value:"=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>l(t)===e.value,InputComponent:n.y,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>l(t)!==e.value,InputComponent:n.y,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&l(t)>e.value,InputComponent:n.y,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&l(t)>=e.value,InputComponent:n.y,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&l(t)<e.value,InputComponent:n.y,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&l(t)<=e.value,InputComponent:n.y,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>Array.isArray(e.value)&&0!==e.value.length?t=>null!=t&&e.value.includes(Number(t)):null,InputComponent:o.M,InputComponentProps:{type:"number"}}]},10830:(e,t,r)=>{r.d(t,{m:()=>u});var n=r(6614),o=r(59747),l=r(57715),i=r(60150),a=r(12003),s=r(58766);const u=(0,n.A)({},o.C,{type:"singleSelect",getOptionLabel:e=>(0,s.Gv)(e)?e.label:String(e),getOptionValue:e=>(0,s.Gv)(e)?e.value:e,valueFormatter(e,t,r,n){const o=n.current.getRowId(t);if(!(0,a._W)(r))return"";const l=(0,a.KJ)(r,{id:o,row:t});if(null==e)return"";if(!l)return e;if("object"!=typeof l[0])return r.getOptionLabel(e);const i=l.find((t=>r.getOptionValue(t)===e));return i?r.getOptionLabel(i):""},renderEditCell:l.j,filterOperators:(0,i.m)(),pastedValueParser:(e,t,r)=>{const n=r,o=(0,a.KJ)(n)||[],l=n.getOptionValue;if(o.find((t=>l(t)===e)))return e}})},60150:(e,t,r)=>{r.d(t,{m:()=>a});var n=r(24634),o=r(57134),l=r(58766);const i=e=>null!=e&&(0,l.Gv)(e)?e.value:e,a=()=>[{value:"is",getApplyFilterFn:e=>null==e.value||""===e.value?null:t=>i(t)===i(e.value),InputComponent:n.t},{value:"not",getApplyFilterFn:e=>null==e.value||""===e.value?null:t=>i(t)!==i(e.value),InputComponent:n.t},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=e.value.map(i);return e=>t.includes(i(e))},InputComponent:o.B}]},59747:(e,t,r)=>{r.d(t,{C:()=>i});var n=r(3619),o=r(14298),l=r(21721);const i={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:o.Az,type:"string",align:"left",filterOperators:(0,l.n)(),renderEditCell:n.j,getApplyQuickFilterFn:l.X}},21721:(e,t,r)=>{r.d(t,{X:()=>a,n:()=>s});var n=r(31525),o=r(58766),l=r(33745),i=r(43905);const a=e=>{if(!e)return null;const t=new RegExp((0,o.Nt)(e),"i");return(e,r,n,o)=>{let l=o.current.getRowFormattedValue(r,n);return o.current.ignoreDiacritics&&(l=(0,i.WL)(l)),null!=l&&t.test(l.toString())}},s=(e=!1)=>[{value:"contains",getApplyFilterFn:t=>{if(!t.value)return null;const r=e?t.value:t.value.trim(),n=new RegExp((0,o.Nt)(r),"i");return e=>null!=e&&n.test(String(e))},InputComponent:n.y},{value:"equals",getApplyFilterFn:t=>{if(!t.value)return null;const r=e?t.value:t.value.trim(),n=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&0===n.compare(r,e.toString())},InputComponent:n.y},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const r=e?t.value:t.value.trim(),n=new RegExp(`^${(0,o.Nt)(r)}.*$`,"i");return e=>null!=e&&n.test(e.toString())},InputComponent:n.y},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const r=e?t.value:t.value.trim(),n=new RegExp(`.*${(0,o.Nt)(r)}$`,"i");return e=>null!=e&&n.test(e.toString())},InputComponent:n.y},{value:"isEmpty",getApplyFilterFn:()=>e=>""===e||null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>""!==e&&null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||0===t.value.length)return null;const r=e?t.value:t.value.map((e=>e.trim())),n=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&r.some((t=>0===n.compare(t,e.toString()||"")))},InputComponent:l.M}]},79162:(e,t,r)=>{r.d(t,{f:()=>$});var n=r(6614),o=r(83673),l=r(7552),i=r(56691),a=r(93878),s=r(51148),u=r(48231),c=r(12274),d=r(64565),p=r(71115),f=r(89148),g=r(86775),h=r(29641),m=r(35281),b=r(85854),w=r(60827),C=r(61941),v=r(76959),x=r(8751),y=r(76404),A=r(50796),R=r(10930),S=r(4780),I=r(69500);function M(e){const{groupId:t,width:r,depth:o,maxDepth:i,fields:a,height:s,colIndex:u,hasFocus:p,tabIndex:f,isLastColumn:g,pinnedPosition:h,style:m,indexInSection:b,sectionLength:M,gridHasFiller:k}=e,P=(0,d.A)(),E=l.useRef(null),F=(0,y.h)(),H=(0,c.N)(F,x.ED),T=t?H[t]:{},{headerName:O=t??"",description:D="",headerAlign:z}=T;let L;const j=t&&H[t]?.renderHeaderGroup,N=l.useMemo((()=>({groupId:t,headerName:O,description:D,depth:o,maxDepth:i,fields:a,colIndex:u,isLastColumn:g})),[t,O,D,o,i,a,u,g]);t&&j&&(L=j(N));const $=(0,S.o)(h,b),V=(0,S.L)(h,b,M,P.showCellVerticalBorder,k),G=(0,n.A)({},e,{classes:P.classes,showLeftBorder:$,showRightBorder:V,headerAlign:z,depth:o,isDragging:!1}),B=O??t,U=(0,C.A)(),W=null===t?`empty-group-cell-${U}`:t,_=(e=>{const{classes:t,headerAlign:r,isDragging:n,showLeftBorder:o,showRightBorder:l,groupId:i,pinnedPosition:a}=e,s={root:["columnHeader","left"===r&&"columnHeader--alignLeft","center"===r&&"columnHeader--alignCenter","right"===r&&"columnHeader--alignRight",n&&"columnHeader--moving",l&&"columnHeader--withRightBorder",o&&"columnHeader--withLeftBorder","withBorderColor",null===i?"columnHeader--emptyGroup":"columnHeader--filledGroup","left"===a&&"columnHeader--pinnedLeft","right"===a&&"columnHeader--pinnedRight"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,w.A)(s,v.B,t)})(G);l.useLayoutEffect((()=>{if(p){const e=E.current.querySelector('[tabindex="0"]')||E.current;e?.focus()}}),[F,p]);const K=l.useCallback((e=>t=>{(0,R.TA)(t)||F.current.publishEvent(e,N,t)}),[F,N]),q=l.useMemo((()=>({onKeyDown:K("columnGroupHeaderKeyDown"),onFocus:K("columnGroupHeaderFocus"),onBlur:K("columnGroupHeaderBlur")})),[K]),X="function"==typeof T.headerClassName?T.headerClassName(N):T.headerClassName;return(0,I.jsx)(A.a,(0,n.A)({ref:E,classes:_,columnMenuOpen:!1,colIndex:u,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:f,isDraggable:!1,headerComponent:L,headerClassName:X,description:D,elementId:W,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!0,label:B,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`,style:m},q))}var k=r(80163),P=r(36155),E=r(85290),F=r(98571),H=r(38975);const T=(0,s.Ay)("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex",height:"var(--DataGrid-headerHeight)"});var O=r(49267);const D=["className"],z=(0,O.A)("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),L=l.forwardRef((function(e,t){const{className:r}=e,l=(0,o.A)(e,D),i=(0,d.A)(),s=(e=>{const{classes:t}=e;return(0,w.A)({root:["columnHeaders"]},v.B,t)})(i);return(0,I.jsx)(z,(0,n.A)({ref:t,className:(0,a.A)(r,s.root),ownerState:i},l,{role:"presentation"}))})),j=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],N=l.forwardRef((function(e,t){const{visibleColumns:r,sortColumnLookup:i,filterColumnLookup:s,columnHeaderTabIndexState:w,columnGroupHeaderTabIndexState:C,columnHeaderFocus:x,columnGroupHeaderFocus:y,headerGroupingMaxDepth:A,columnMenuState:R,columnVisibility:S,columnGroupsHeaderStructure:O,hasOtherElementInTabSequence:D}=e,z=(0,o.A)(e,j),{getInnerProps:N,getColumnHeadersRow:$,getColumnGroupHeadersRows:V}=(e=>{const{visibleColumns:t,sortColumnLookup:r,filterColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:s,columnHeaderFocus:w,columnGroupHeaderFocus:C,headerGroupingMaxDepth:x,columnMenuState:y,columnVisibility:A,columnGroupsHeaderStructure:R,hasOtherElementInTabSequence:S}=e,[O,D]=l.useState(""),[z,L]=l.useState(""),j=(0,p.E)(),N=(0,u.A)(),$=(0,d.A)(),V=(0,c.N)(j,m.m5),G=(0,c.N)(j,h.z),B=(0,c.N)(j,k.Sw),U=(0,c.N)(j,m.EG),W=(0,c.N)(j,k.Q1),_=(0,b.Yr)(B,U,N.direction,W.left.length),K=G.columnsTotalWidth<G.viewportOuterSize.width;l.useEffect((()=>{j.current.columnHeadersContainerRef.current.scrollLeft=0}),[j]);const q=l.useCallback((e=>L(e.field)),[]),X=l.useCallback((()=>L("")),[]),Y=l.useCallback((e=>D(e.field)),[]),Z=l.useCallback((()=>D("")),[]),Q=l.useMemo((()=>W.left.length?{firstColumnIndex:0,lastColumnIndex:W.left.length}:null),[W.left.length]),J=l.useMemo((()=>W.right.length?{firstColumnIndex:t.length-W.right.length,lastColumnIndex:t.length}:null),[W.right.length,t.length]);(0,f.cz)(j,"columnResizeStart",q),(0,f.cz)(j,"columnResizeStop",X),(0,f.cz)(j,"columnHeaderDragStart",Y),(0,f.cz)(j,"columnHeaderDragEnd",Z);const ee=e=>{const{renderContext:r=U,maxLastColumn:n=t.length}=e||{},o=V?r.firstColumnIndex:0,l=V?r.lastColumnIndex:n;return{renderedColumns:t.slice(o,l),firstColumnToRender:o,lastColumnToRender:l}},te=(e,t,r,n=!1)=>{const o=e?.position===P.K.RIGHT,i=void 0===e?.position,s=W.right.length>0&&o||0===W.right.length&&i,u=_-r;return(0,I.jsxs)(l.Fragment,{children:[i&&(0,I.jsx)("div",{role:"presentation",style:{width:u}}),t,i&&(0,I.jsx)("div",{role:"presentation",className:(0,a.A)(v.x.filler,n&&v.x["filler--borderTop"])}),s&&(0,I.jsx)(E.t,{header:!0,borderTop:n,pinnedRight:o})]})},re=({pinnedPosition:e,columnIndex:t,computedWidth:r})=>{let n;if("left"===e||"right"===e){const o=(0,F.Y)(e,r,t,B,G);"left"===e&&(n={left:o}),"right"===e&&(n={right:o})}return n},ne=(e,t={})=>{const{renderedColumns:l,firstColumnToRender:a}=ee(e),s=[];for(let u=0;u<l.length;u+=1){const c=l[u],d=a+u,p=0===d,f=null!==i&&i.field===c.field||p&&!S?0:-1,h=null!==w&&w.field===c.field,m=y.open&&y.field===c.field,b=e?.position,C=re({pinnedPosition:b,columnIndex:d,computedWidth:c.computedWidth});s.push((0,I.jsx)(g.d,(0,n.A)({},r[c.field],{columnMenuOpen:m,filterItemsCounter:o[c.field]&&o[c.field].length,headerHeight:G.headerHeight,isDragging:c.field===O,colDef:c,colIndex:d,isResizing:z===c.field,hasFocus:h,tabIndex:f,pinnedPosition:b,style:C,indexInSection:u,sectionLength:l.length,gridHasFiller:K},t),c.field))}return te(e,s,0)},oe=({depth:e,params:r})=>{const o=ee(r);if(0===o.renderedColumns.length)return null;const{renderedColumns:l,firstColumnToRender:i,lastColumnToRender:a}=o,u=R[e],c=t[i].field,d=j.current.getColumnGroupPath(c)[e]??null,p=u.findIndex((({groupId:e,columnFields:t})=>e===d&&t.includes(c))),f=t[a-1].field,g=j.current.getColumnGroupPath(f)[e]??null,h=u.findIndex((({groupId:e,columnFields:t})=>e===g&&t.includes(f))),m=u.slice(p,h+1).map((e=>(0,n.A)({},e,{columnFields:e.columnFields.filter((e=>!1!==A[e]))}))).filter((e=>e.columnFields.length>0)),b=m[0].columnFields.indexOf(c),w=m[0].columnFields.slice(0,b).reduce(((e,t)=>e+(j.current.getColumn(t).computedWidth??0)),0);let v=i;const y=m.map((({groupId:n,columnFields:o},i)=>{const a=null!==C&&C.depth===e&&o.includes(C.field),u=null!==s&&s.depth===e&&o.includes(s.field)?0:-1,c={groupId:n,width:o.reduce(((e,t)=>e+j.current.getColumn(t).computedWidth),0),fields:o,colIndex:v,hasFocus:a,tabIndex:u},d=r.position,p=re({pinnedPosition:d,columnIndex:v,computedWidth:c.width});v+=o.length;let f=i;return"left"===d&&(f=v-1),(0,I.jsx)(M,{groupId:n,width:c.width,fields:c.fields,colIndex:c.colIndex,depth:e,isLastColumn:c.colIndex===t.length-c.fields.length,maxDepth:x,height:G.headerHeight,hasFocus:a,tabIndex:u,pinnedPosition:d,style:p,indexInSection:f,sectionLength:l.length,gridHasFiller:K},i)}));return te(r,y,w)};return{renderContext:U,leftRenderContext:Q,rightRenderContext:J,pinnedColumns:W,visibleColumns:t,getCellOffsetStyle:re,getFillers:te,getColumnHeadersRow:()=>(0,I.jsxs)(T,{role:"row","aria-rowindex":x+1,ownerState:$,children:[Q&&ne({position:P.K.LEFT,renderContext:Q,minFirstColumn:Q.firstColumnIndex,maxLastColumn:Q.lastColumnIndex},{disableReorder:!0}),ne({renderContext:U,minFirstColumn:W.left.length,maxLastColumn:t.length-W.right.length}),J&&ne({position:P.K.RIGHT,renderContext:J,minFirstColumn:J.firstColumnIndex,maxLastColumn:J.lastColumnIndex},{disableReorder:!0,separatorSide:H.j.Left})]}),getColumnsToRender:ee,getColumnGroupHeadersRows:()=>{if(0===x)return null;const e=[];for(let t=0;t<x;t+=1)e.push((0,I.jsxs)(T,{role:"row","aria-rowindex":t+1,ownerState:$,children:[Q&&oe({depth:t,params:{position:P.K.LEFT,renderContext:Q,minFirstColumn:Q.firstColumnIndex,maxLastColumn:Q.lastColumnIndex}}),oe({depth:t,params:{renderContext:U}}),J&&oe({depth:t,params:{position:P.K.RIGHT,renderContext:J,minFirstColumn:J.firstColumnIndex,maxLastColumn:J.lastColumnIndex}})]},t));return e},isDragging:!!O,getInnerProps:()=>({role:"rowgroup"})}})({visibleColumns:r,sortColumnLookup:i,filterColumnLookup:s,columnHeaderTabIndexState:w,columnGroupHeaderTabIndexState:C,columnHeaderFocus:x,columnGroupHeaderFocus:y,headerGroupingMaxDepth:A,columnMenuState:R,columnVisibility:S,columnGroupsHeaderStructure:O,hasOtherElementInTabSequence:D});return(0,I.jsxs)(L,(0,n.A)({ref:t},z,N(),{children:[V(),$()]}))})),$=(0,i.n)(N)},55507:(e,t,r)=>{r.d(t,{C:()=>g});var n=r(6614),o=r(7552),l=r(12274),i=r(4394),a=r(82188),s=r(2220),u=r(76404),c=r(43434),d=r(91681),p=r(64565),f=r(69500);const g=o.forwardRef((function(e,t){const r=(0,u.h)(),o=(0,p.A)(),g=(0,l.N)(r,i.O8),h=(0,l.N)(r,a.vF),m=(0,l.N)(r,s.RN),b=!o.hideFooterSelectedRowCount&&h>0?(0,f.jsx)(c.p,{selectedRowCount:h}):(0,f.jsx)("div",{}),w=o.hideFooterRowCount||o.pagination?null:(0,f.jsx)(o.slots.footerRowCount,(0,n.A)({},o.slotProps?.footerRowCount,{rowCount:g,visibleRowCount:m})),C=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&(0,f.jsx)(o.slots.pagination,(0,n.A)({},o.slotProps?.pagination));return(0,f.jsxs)(d.J,(0,n.A)({ref:t},e,{children:[b,w,C]}))}))},1074:(e,t,r)=>{r.d(t,{k:()=>f});var n=r(6614),o=r(7552),l=r(64565),i=r(80163),a=r(12274),s=r(38577),u=r(48534),c=r(76404),d=r(69500);const p=o.forwardRef((function(e,t){const r=(0,c.h)(),o=(0,a.N)(r,i.OV),p=(0,l.A)(),f=(0,a.N)(r,s._),g=r.current.unstable_applyPipeProcessors("preferencePanel",null,f.openedPanelValue??u.y.filters);return(0,d.jsx)(p.slots.panel,(0,n.A)({ref:t,as:p.slots.basePopper,open:o.length>0&&f.open,id:f.panelId,"aria-labelledby":f.labelId},p.slotProps?.panel,e,p.slotProps?.basePopper,{children:g}))}));function f(){const e=(0,l.A)();return(0,d.jsxs)(o.Fragment,{children:[(0,d.jsx)(p,{}),e.slots.toolbar&&(0,d.jsx)(e.slots.toolbar,(0,n.A)({},e.slotProps?.toolbar))]})}},47732:(e,t,r)=>{r.d(t,{b:()=>s});var n=r(6614),o=r(7552),l=r(59705),i=r(1895),a=r(69500);const s=o.forwardRef((function(e,t){return(0,a.jsx)(i.$,(0,n.A)({ref:t},e,{children:(0,a.jsx)(l.A,{})}))}))},77484:(e,t,r)=>{r.d(t,{h:()=>s});var n=r(6614),o=r(7552),l=r(76404),i=r(1895),a=r(69500);const s=o.forwardRef((function(e,t){const r=(0,l.h)().current.getLocaleText("noRowsLabel");return(0,a.jsx)(i.$,(0,n.A)({ref:t},e,{children:r}))}))},56384:(e,t,r)=>{r.d(t,{h:()=>g});var n=r(6614),o=r(7552),l=r(8565),i=r(85663),a=r(51148),s=r(12274),u=r(76404),c=r(64565),d=r(24940),p=r(69500);const f=(0,a.Ay)(l.A)((({theme:e})=>({[`& .${i.A.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${i.A.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}}))),g=o.forwardRef((function(e,t){const r=(0,u.h)(),l=(0,c.A)(),i=(0,s.N)(r,d.lN),a=(0,s.N)(r,d.H2),g=o.useMemo((()=>{const e=Math.ceil(a/(i.pageSize||1))-1;return Math.max(0,e)}),[a,i.pageSize]),h=o.useCallback((e=>{const t=Number(e.target.value);r.current.setPageSize(t)}),[r]),m=o.useCallback(((e,t)=>{r.current.setPage(t)}),[r]),b=(e=>{for(let t=0;t<l.pageSizeOptions.length;t+=1){const r=l.pageSizeOptions[t];if("number"==typeof r){if(r===e)return!0}else if(r.value===e)return!0}return!1})(i.pageSize)?l.pageSizeOptions:[];return(0,p.jsx)(f,(0,n.A)({ref:t,component:"div",count:a,page:i.page<=g?i.page:g,rowsPerPageOptions:b,rowsPerPage:i.pageSize,onPageChange:m,onRowsPerPageChange:h},r.current.getLocaleText("MuiTablePagination"),e))}))},84142:(e,t,r)=>{r.d(t,{T:()=>H});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(60827),s=r(24979),u=r(56691),c=r(87795),d=r(76404),p=r(76959),f=r(64565),g=r(80163),h=r(12274),m=r(23392),b=r(10930),w=r(92179),C=r(65325),v=r(59340),x=r(43026),y=r(4394),A=r(8751),R=r(62185),S=r(33360),I=r(85290),M=r(98571),k=r(69500);const P=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetTop","offsetLeft","dimensions","renderContext","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"];function E({width:e}){return e?(0,k.jsx)("div",{role:"presentation",className:(0,i.A)(p.x.cell,p.x.cellEmpty),style:{"--width":`${e}px`}}):null}const F=l.forwardRef((function(e,t){const{selected:r,rowId:u,row:F,index:H,style:T,rowHeight:O,className:D,visibleColumns:z,pinnedColumns:L,offsetLeft:j,dimensions:N,renderContext:$,focusedColumnIndex:V,isFirstVisible:G,isLastVisible:B,isNotVisible:U,onClick:W,onDoubleClick:_,onMouseEnter:K,onMouseLeave:q,onMouseOut:X,onMouseOver:Y}=e,Z=(0,o.A)(e,P),Q=(0,d.h)(),J=l.useRef(null),ee=(0,f.A)(),te=(0,m.h)(Q,ee),re=(0,h.N)(Q,x.XU),ne=(0,h.N)(Q,y.V2),oe=(0,h.N)(Q,A.aC),le=(0,h.N)(Q,g.Sw),ie=(0,h.N)(Q,R.w),ae=(0,s.A)(J,t),se=Q.current.getRowNode(u),ue=N.hasScrollY?N.scrollbarSize:0,ce=N.columnsTotalWidth<N.viewportOuterSize.width,de=void 0!==V,pe=de&&V>=L.left.length&&V<$.firstColumnIndex,fe=de&&V<z.length-L.right.length&&V>=$.lastColumnIndex,ge=H+oe+2,he=(e=>{const{editable:t,editing:r,selected:n,isFirstVisible:o,isLastVisible:l,rowHeight:i,classes:s}=e,u={root:["row",n&&"selected",t&&"row--editable",r&&"row--editing",o&&"row--firstVisible",l&&"row--lastVisible","auto"===i&&"row--dynamicHeight"]};return(0,a.A)(u,p.B,s)})({selected:r,isFirstVisible:G,isLastVisible:B,classes:ee.classes,editing:Q.current.getRowMode(u)===c.V_.Edit,editable:ee.editMode===c.RL.Row,rowHeight:O});l.useLayoutEffect((()=>{"auto"===O&&J.current&&"undefined"==typeof ResizeObserver&&Q.current.unstable_storeRowHeightMeasurement(u,J.current.clientHeight)}),[Q,O,u]),l.useLayoutEffect((()=>{if(te.range){const e=Q.current.getRowIndexRelativeToVisibleRows(u);null!=e&&Q.current.unstable_setLastMeasuredRowIndex(e)}const e=J.current;if(!e||"auto"!==O||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver((e=>{const[t]=e,r=t.borderBoxSize&&t.borderBoxSize.length>0?t.borderBoxSize[0].blockSize:t.contentRect.height;Q.current.unstable_storeRowHeightMeasurement(u,r)}));return t.observe(e),()=>t.disconnect()}),[Q,te.range,H,O,u]);const me=l.useCallback(((e,t)=>r=>{(0,b.TA)(r)||Q.current.getRow(u)&&(Q.current.publishEvent(e,Q.current.getRowParams(u),r),t&&t(r))}),[Q,u]),be=l.useCallback((e=>{const t=(0,b.fl)(e.target,p.x.cell),r=t?.getAttribute("data-field");if(r){if(r===w.f.field)return;if(r===v.U)return;if("__reorder__"===r)return;if(Q.current.getCellMode(u,r)===c.bs.Edit)return;const e=Q.current.getColumn(r);if(e?.type===C.D)return}me("rowClick",W)(e)}),[Q,W,me,u]),{slots:we,slotProps:Ce,disableColumnReorder:ve}=ee,xe=ee.rowReordering,ye=(0,h.N)(Q,(()=>(0,n.A)({},Q.current.unstable_getRowInternalSizes(u))),h.T);let Ae=O;if("auto"===Ae&&ye){const e=1,t=ye.baseCenter??0;t>0&&e>1&&(Ae=t)}const Re=l.useMemo((()=>{if(U)return{opacity:0,width:0,height:0};const e=(0,n.A)({},T,{maxHeight:"auto"===O?"none":O,minHeight:Ae,"--height":"number"==typeof O?`${O}px`:O});if(ye?.spacingTop&&(e["border"===ee.rowSpacingType?"borderTopWidth":"marginTop"]=ye.spacingTop),ye?.spacingBottom){const t="border"===ee.rowSpacingType?"borderBottomWidth":"marginBottom";let r=e[t];"number"!=typeof r&&(r=parseInt(r||"0",10)),r+=ye.spacingBottom,e[t]=r}return e}),[U,O,T,Ae,ye,ee.rowSpacingType]),Se=Q.current.unstable_applyPipeProcessors("rowClassName",[],u);if("function"==typeof ee.getRowClassName){const e=H-(te.range?.firstRowIndex||0),t=(0,n.A)({},Q.current.getRowParams(u),{isFirstVisible:0===e,isLastVisible:e===te.rows.length-1,indexRelativeToCurrentPage:e});Se.push(ee.getRowClassName(t))}const Ie=(e,t,r,o,l=S.UP.NONE)=>{const i=Q.current.unstable_getCellColSpanInfo(u,r);if(i?.spannedByColSpan)return null;const a=i?.cellProps.width??e.computedWidth,s=i?.cellProps.colSpan??1,c=(0,M.Y)(S.gB[l],e.computedWidth,r,le,N);if("skeletonRow"===se?.type)return(0,k.jsx)(we.skeletonCell,{width:a,height:O,field:e.field,align:e.align??"left"},e.field);const d=ie[u]?.[e.field]??null,p="__reorder__"===e.field,f=Object.keys(ie).length>0,g=!(ve||e.disableReorder),h=xe&&!re.length&&ne<=1&&!f,m=!(g||p&&h),b=l===S.UP.VIRTUAL;return(0,k.jsx)(we.cell,(0,n.A)({column:e,width:a,rowId:u,align:e.align||"left",colIndex:r,colSpan:s,disableDragEvents:m,editCellState:d,isNotVisible:b,pinnedOffset:c,pinnedPosition:l,sectionIndex:t,sectionLength:o,gridHasFiller:ce},Ce?.cell),e.field)};if(!se)return null;const Me=L.left.map(((e,t)=>Ie(e,t,t,L.left.length,S.UP.LEFT))),ke=L.right.map(((e,t)=>{const r=z.length-L.right.length+t;return Ie(e,t,r,L.right.length,S.UP.RIGHT)})),Pe=z.length-L.left.length-L.right.length,Ee=[];pe&&Ee.push(Ie(z[V],V-L.left.length,V,Pe,S.UP.VIRTUAL));for(let e=$.firstColumnIndex;e<$.lastColumnIndex;e+=1){const t=z[e],r=e-L.left.length;Ee.push(Ie(t,r,e,Pe))}fe&&Ee.push(Ie(z[V],V-L.left.length,V,Pe,S.UP.VIRTUAL));const Fe=F?{onClick:be,onDoubleClick:me("rowDoubleClick",_),onMouseEnter:me("rowMouseEnter",K),onMouseLeave:me("rowMouseLeave",q),onMouseOut:me("rowMouseOut",X),onMouseOver:me("rowMouseOver",Y)}:null,He=N.viewportOuterSize.width-N.columnsTotalWidth-ue,Te=Math.max(0,He);return(0,k.jsxs)("div",(0,n.A)({ref:ae,"data-id":u,"data-rowindex":H,role:"row",className:(0,i.A)(...Se,he.root,D),"aria-rowindex":ge,"aria-selected":r,style:Re},Fe,Z,{children:[Me,(0,k.jsx)("div",{role:"presentation",className:p.x.cellOffsetLeft,style:{width:j}}),Ee,Te>0&&(0,k.jsx)(E,{width:Te}),ke.length>0&&(0,k.jsx)("div",{role:"presentation",className:p.x.filler}),ke,0!==ue&&(0,k.jsx)(I.t,{pinnedRight:L.right.length>0})]}))})),H=(0,u.n)(F)},22987:(e,t,r)=>{r.d(t,{g:()=>h});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(60827),s=r(49267),u=r(76404),c=r(76959),d=r(64565),p=r(69500);const f=["className","rowCount","visibleRowCount"],g=(0,s.A)("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})((({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)}))),h=l.forwardRef((function(e,t){const{className:r,rowCount:l,visibleRowCount:s}=e,h=(0,o.A)(e,f),m=(0,u.h)(),b=(0,d.A)(),w=(e=>{const{classes:t}=e;return(0,a.A)({root:["rowCount"]},c.B,t)})(b);if(0===l)return null;const C=s<l?m.current.getLocaleText("footerTotalVisibleRows")(s,l):l.toLocaleString();return(0,p.jsxs)(g,(0,n.A)({ref:t,className:(0,i.A)(w.root,r),ownerState:b},h,{children:[m.current.getLocaleText("footerTotalRows")," ",C]}))}))},85290:(e,t,r)=>{r.d(t,{t:()=>a}),r(7552);var n=r(93878),o=r(76959),l=r(69500);const i={root:o.x.scrollbarFiller,header:o.x["scrollbarFiller--header"],borderTop:o.x["scrollbarFiller--borderTop"],pinnedRight:o.x["scrollbarFiller--pinnedRight"]};function a({header:e,borderTop:t=!0,pinnedRight:r}){return(0,l.jsx)("div",{role:"presentation",className:(0,n.A)(i.root,e&&i.header,t&&i.borderTop,r&&i.pinnedRight)})}},43434:(e,t,r)=>{r.d(t,{p:()=>h});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(60827),s=r(49267),u=r(76404),c=r(76959),d=r(64565),p=r(69500);const f=["className","selectedRowCount"],g=(0,s.A)("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})((({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}))),h=l.forwardRef((function(e,t){const{className:r,selectedRowCount:l}=e,s=(0,o.A)(e,f),h=(0,u.h)(),m=(0,d.A)(),b=(e=>{const{classes:t}=e;return(0,a.A)({root:["selectedRowCount"]},c.B,t)})(m),w=h.current.getLocaleText("footerRowSelected")(l);return(0,p.jsx)(g,(0,n.A)({ref:t,className:(0,i.A)(b.root,r),ownerState:m},s,{children:w}))}))},98114:(e,t,r)=>{r.d(t,{r:()=>i});var n=r(6614),o=(r(7552),r(64565)),l=r(69500);function i(){const e=(0,o.A)();return e.hideFooter?null:(0,l.jsx)(e.slots.footer,(0,n.A)({},e.slotProps?.footer))}},80677:(e,t,r)=>{r.d(t,{I:()=>x});var n=r(6614),o=(r(7552),r(49267)),l=r(60827),i=r(93878),a=r(12274),s=r(2220),u=r(4394),c=r(29641),d=r(76404),p=r(64565),f=r(23392),g=r(59458),h=r(76959),m=r(69500);const b=(0,o.A)("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>"overlayType"!==e,overridesResolver:(e,t)=>t.overlayWrapper})((({overlayType:e})=>({position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:"loadingOverlay"===e?5:4}))),w=(0,o.A)("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>"overlayType"!==e,overridesResolver:(e,t)=>t.overlayWrapperInner})({}),C=e=>{const{classes:t}=e;return(0,l.A)({root:["overlayWrapper"],inner:["overlayWrapperInner"]},h.B,t)};function v(e){const t=(0,d.h)(),r=(0,p.A)(),o=(0,f.h)(t,r),l=(0,a.N)(t,c.z);let s=l.viewportOuterSize.height-l.headersTotalHeight-(l.hasScrollX?l.scrollbarSize:0);(r.autoHeight&&0===o.rows.length||0===s)&&(s=(0,g.OM)(t));const u=C((0,n.A)({},e,{classes:r.classes}));return(0,m.jsx)(b,{className:(0,i.A)(u.root),overlayType:e.overlayType,children:(0,m.jsx)(w,(0,n.A)({className:(0,i.A)(u.inner),style:{height:s,width:l.viewportOuterSize.width}},e))})}function x(){const e=(0,d.h)(),t=(0,p.A)(),r=(0,a.N)(e,u.H0),o=(0,a.N)(e,s.O7),l=(0,a.N)(e,u.Dl),i=!l&&r>0&&0===o;let c=null,f="";return!l&&0===r&&(c=(0,m.jsx)(t.slots.noRowsOverlay,(0,n.A)({},t.slotProps?.noRowsOverlay)),f="noRowsOverlay"),i&&(c=(0,m.jsx)(t.slots.noResultsOverlay,(0,n.A)({},t.slotProps?.noResultsOverlay)),f="noResultsOverlay"),l&&(c=(0,m.jsx)(t.slots.loadingOverlay,(0,n.A)({},t.slotProps?.loadingOverlay)),f="loadingOverlay"),null===c?null:(0,m.jsx)(v,{overlayType:f,children:c})}},61828:(e,t,r)=>{r.d(t,{i:()=>m,o:()=>b});var n=r(6614),o=r(83673),l=r(7552),i=r(6679),a=r(48231),s=r(61941),u=r(76959),c=r(83749),d=r(64565),p=r(76404),f=r(69500);const g=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],h=e=>"function"==typeof e.getActions;function m(e){const{colDef:t,id:r,hasFocus:m,tabIndex:b,position:w="bottom-end",focusElementRef:C}=e,v=(0,o.A)(e,g),[x,y]=l.useState(-1),[A,R]=l.useState(!1),S=(0,p.h)(),I=l.useRef(null),M=l.useRef(null),k=l.useRef(!1),P=l.useRef({}),E=(0,a.A)(),F=(0,s.A)(),H=(0,s.A)(),T=(0,d.A)();if(!h(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const O=t.getActions(S.current.getRowParams(r)),D=O.filter((e=>!e.props.showInMenu)),z=O.filter((e=>e.props.showInMenu)),L=D.length+(z.length?1:0);l.useLayoutEffect((()=>{m||Object.entries(P.current).forEach((([e,t])=>{t?.stop({},(()=>{delete P.current[e]}))}))}),[m]),l.useEffect((()=>{x<0||!I.current||x>=I.current.children.length||I.current.children[x].focus({preventScroll:!0})}),[x]),l.useEffect((()=>{m||(y(-1),k.current=!1)}),[m]),l.useImperativeHandle(C,(()=>({focus(){if(!k.current){const e=O.findIndex((e=>!e.props.disabled));y(e)}}})),[O]),l.useEffect((()=>{x>=L&&y(L-1)}),[x,L]);const j=()=>{R(!1)},N=e=>t=>{P.current[e]=t},$=(e,t)=>r=>{y(e),k.current=!0,t&&t(r)};return(0,f.jsxs)("div",(0,n.A)({role:"menu",ref:I,tabIndex:-1,className:u.x.actionsCell,onKeyDown:e=>{if(L<=1)return;const t=(e,r)=>{if(e<0||e>O.length)return e;const n=("left"===r?-1:1)*("rtl"===E.direction?-1:1);return O[e+n]?.props.disabled?t(e+n,r):e+n};let r=x;"ArrowRight"===e.key?r=t(x,"right"):"ArrowLeft"===e.key&&(r=t(x,"left")),r<0||r>=L||r!==x&&(e.preventDefault(),e.stopPropagation(),y(r))}},v,{children:[D.map(((e,t)=>l.cloneElement(e,{key:t,touchRippleRef:N(t),onClick:$(t,e.props.onClick),tabIndex:x===t?b:-1}))),z.length>0&&H&&(0,f.jsx)(T.slots.baseIconButton,(0,n.A)({ref:M,id:H,"aria-label":S.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":A,"aria-controls":A?F:void 0,role:"menuitem",size:"small",onClick:()=>{R(!0),y(L-1),k.current=!0},touchRippleRef:N(H),tabIndex:x===D.length?b:-1},T.slotProps?.baseIconButton,{children:(0,f.jsx)(T.slots.moreActionsIcon,{fontSize:"small"})})),z.length>0&&(0,f.jsx)(c.U,{open:A,target:M.current,position:w,onClose:j,children:(0,f.jsx)(i.A,{id:F,className:u.x.menuList,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),["Tab","Escape"].includes(e.key)&&j()},"aria-labelledby":H,variant:"menu",autoFocusItem:!0,children:z.map(((e,t)=>l.cloneElement(e,{key:t,closeMenu:j})))})})]}))}const b=e=>(0,f.jsx)(m,(0,n.A)({},e))},2735:(e,t,r)=>{r.d(t,{b:()=>h,n:()=>g});var n=r(6614),o=r(83673),l=r(7552),i=r(60827),a=r(76959),s=r(64565),u=r(76404),c=r(59458),d=r(69500);const p=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"];function f(e){const{value:t}=e,r=(0,o.A)(e,p),c=(0,u.h)(),f=(0,s.A)(),g=(e=>{const{classes:t}=e;return(0,i.A)({root:["booleanCell"]},a.B,t)})({classes:f.classes}),h=l.useMemo((()=>t?f.slots.booleanCellTrueIcon:f.slots.booleanCellFalseIcon),[f.slots.booleanCellFalseIcon,f.slots.booleanCellTrueIcon,t]);return(0,d.jsx)(h,(0,n.A)({fontSize:"small",className:g.root,titleAccess:c.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},r))}const g=l.memo(f),h=e=>"__row_group_by_columns_group__"!==e.field&&(0,c.DJ)(e.rowNode)?"":(0,d.jsx)(g,(0,n.A)({},e))},33360:(e,t,r)=>{r.d(t,{LX:()=>k,UP:()=>R,gB:()=>S});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(81119),s=r(60827),u=r(24979),c=r(89301),d=r(56691);let p;var f=r(76959),g=r(87795),h=r(12274),m=r(76404),b=r(64565),w=r(15665),C=r(4780),v=r(36155),x=r(69500);const y=["column","rowId","editCellState","align","children","colIndex","width","className","style","gridHasScrollX","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],A=["changeReason","unstable_updateValueOnRender"];let R=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 S={[R.LEFT]:v.K.LEFT,[R.RIGHT]:v.K.RIGHT,[R.NONE]:void 0,[R.VIRTUAL]:void 0},I={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:g.bs.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},M=l.forwardRef(((e,t)=>{const{column:r,rowId:d,editCellState:v,align:M,colIndex:k,width:P,className:E,style:F,colSpan:H,disableDragEvents:T,isNotVisible:O,pinnedOffset:D,pinnedPosition:z,sectionIndex:L,sectionLength:j,gridHasFiller:N,onClick:$,onDoubleClick:V,onMouseDown:G,onMouseUp:B,onMouseOver:U,onKeyDown:W,onKeyUp:_,onDragEnter:K,onDragOver:q}=e,X=(0,o.A)(e,y),Y=(0,m.h)(),Z=(0,b.A)(),Q=r.field,J=(0,h.N)(Y,(()=>{try{const e=Y.current.getCellParams(d,Q);return e.api=Y.current,e}catch(e){if(e instanceof w.W)return I;throw e}}),h.T),ee=(0,h.N)(Y,(()=>Y.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:d,field:Q}))),{cellMode:te,hasFocus:re,isEditable:ne=!1,value:oe,formattedValue:le}=J,ie="actions"===r.type&&r.getActions?.(Y.current.getRowParams(d)).some((e=>!e.props.disabled)),ae="view"!==te&&ne||ie?-1:J.tabIndex,{classes:se,getCellClassName:ue}=Z,ce=[(0,h.N)(Y,(()=>Y.current.unstable_applyPipeProcessors("cellClassName",[],{id:d,field:Q}).filter(Boolean).join(" ")))];r.cellClassName&&ce.push("function"==typeof r.cellClassName?r.cellClassName(J):r.cellClassName),"flex"===r.display&&ce.push(f.x["cell--flex"]),ue&&ce.push(ue(J));const de=null==le?oe:le,pe=l.useRef(null),fe=(0,u.A)(t,pe),ge=l.useRef(null),he=Z.cellSelection??!1,me=S[z],be=(e=>{const{align:t,showLeftBorder:r,showRightBorder:n,pinnedPosition:o,isEditable:l,isSelected:i,isSelectionMode:u,classes:c}=e,d={root:["cell",`cell--text${(0,a.A)(t)}`,i&&"selected",l&&"cell--editable",r&&"cell--withLeftBorder",n&&"cell--withRightBorder",o===R.LEFT&&"cell--pinnedLeft",o===R.RIGHT&&"cell--pinnedRight",u&&!l&&"cell--selectionMode"]};return(0,s.A)(d,f.B,c)})({align:M,showLeftBorder:(0,C.o)(me,L),showRightBorder:(0,C.L)(me,L,j,Z.showCellVerticalBorder,N),isEditable:ne,classes:Z.classes,pinnedPosition:z,isSelected:ee,isSelectionMode:he}),we=l.useCallback((e=>t=>{const r=Y.current.getCellParams(d,Q||"");Y.current.publishEvent(e,r,t),B&&B(t)}),[Y,Q,B,d]),Ce=l.useCallback((e=>t=>{const r=Y.current.getCellParams(d,Q||"");Y.current.publishEvent(e,r,t),G&&G(t)}),[Y,Q,G,d]),ve=l.useCallback(((e,t)=>r=>{if(!Y.current.getRow(d))return;const n=Y.current.getCellParams(d,Q||"");Y.current.publishEvent(e,n,r),t&&t(r)}),[Y,Q,d]),xe=l.useMemo((()=>{if(O)return{padding:0,opacity:0,width:0,border:0};const e=(0,n.A)({"--width":`${P}px`},F);return z===R.LEFT&&(e.left=D),z===R.RIGHT&&(e.right=D),e}),[P,O,F,D,z]);if(l.useEffect((()=>{if(!re||te===g.bs.Edit)return;const e=(0,c.A)(Y.current.rootElementRef.current);if(pe.current&&!pe.current.contains(e.activeElement)){const e=pe.current.querySelector('[tabindex="0"]'),t=ge.current||e||pe.current;if(void 0===p&&document.createElement("div").focus({get preventScroll(){return p=!0,!1}}),p)t.focus({preventScroll:!0});else{const e=Y.current.getScrollPosition();t.focus(),Y.current.scroll(e)}}}),[re,te,Y]),J===I)return null;let ye,Ae,Re=X.onFocus;if(null===v&&r.renderCell&&(ye=r.renderCell(J)),null!==v&&r.renderEditCell){const e=Y.current.getRowWithUpdatedValues(d,r.field),t=(0,o.A)(v,A),l=(0,n.A)({},J,{row:e},t);ye=r.renderEditCell(l),ce.push(f.x["cell--editing"]),ce.push(se?.["cell--editing"])}if(void 0===ye){const e=de?.toString();ye=e,Ae=e}l.isValidElement(ye)&&ie&&(ye=l.cloneElement(ye,{focusElementRef:ge}));const Se=T?null:{onDragEnter:ve("cellDragEnter",K),onDragOver:ve("cellDragOver",q)};return(0,x.jsx)("div",(0,n.A)({ref:fe,className:(0,i.A)(E,ce,be.root),role:"gridcell","data-field":Q,"data-colindex":k,"aria-colindex":k+1,"aria-colspan":H,style:xe,title:Ae,tabIndex:ae,onClick:ve("cellClick",$),onDoubleClick:ve("cellDoubleClick",V),onMouseOver:ve("cellMouseOver",U),onMouseDown:Ce("cellMouseDown"),onMouseUp:we("cellMouseUp"),onKeyDown:ve("cellKeyDown",W),onKeyUp:ve("cellKeyUp",_)},Se,X,{onFocus:Re,children:ye}))})),k=(0,d.n)(M)},24411:(e,t,r)=>{r.d(t,{X:()=>m,b:()=>b});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(60827),s=r(61941),u=r(94921),c=r(76959),d=r(64565),p=r(76404),f=r(69500);const g=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],h=e=>{const{classes:t}=e;return(0,a.A)({root:["editBooleanCell"]},c.B,t)};function m(e){const{id:t,value:r,field:a,className:c,hasFocus:m,onValueChange:b}=e,w=(0,o.A)(e,g),C=(0,p.h)(),v=l.useRef(null),x=(0,s.A)(),[y,A]=l.useState(r),R=(0,d.A)(),S={classes:R.classes},I=h(S),M=l.useCallback((async e=>{const r=e.target.checked;b&&await b(e,r),A(r),await C.current.setEditCellValue({id:t,field:a,value:r},e)}),[C,a,t,b]);return l.useEffect((()=>{A(r)}),[r]),(0,u.A)((()=>{m&&v.current.focus()}),[m]),(0,f.jsx)("label",(0,n.A)({htmlFor:x,className:(0,i.A)(I.root,c)},w,{children:(0,f.jsx)(R.slots.baseCheckbox,(0,n.A)({id:x,inputRef:v,checked:Boolean(y),onChange:M,size:"small"},R.slotProps?.baseCheckbox))}))}const b=e=>(0,f.jsx)(m,(0,n.A)({},e))},26067:(e,t,r)=>{r.d(t,{Z:()=>b,z:()=>w});var n=r(6614),o=r(83673),l=r(7552),i=r(60827),a=r(94921),s=r(98879),u=r(51148),c=r(76959),d=r(64565),p=r(76404),f=r(69500);const g=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],h=(0,u.Ay)(s.Ay)({fontSize:"inherit"}),m=e=>{const{classes:t}=e;return(0,i.A)({root:["editInputCell"]},c.B,t)};function b(e){const{id:t,value:r,field:i,colDef:s,hasFocus:u,inputProps:c,onValueChange:b}=e,w=(0,o.A)(e,g),C="dateTime"===s.type,v=(0,p.h)(),x=l.useRef(),y=l.useMemo((()=>{let e,t;return e=null==r?null:r instanceof Date?r:new Date((r??"").toString()),t=null==e||Number.isNaN(e.getTime())?"":new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,C?16:10),{parsed:e,formatted:t}}),[r,C]),[A,R]=l.useState(y),S={classes:(0,d.A)().classes},I=m(S),M=l.useCallback((e=>{if(""===e)return null;const[t,r]=e.split("T"),[n,o,l]=t.split("-"),i=new Date;if(i.setFullYear(Number(n),Number(o)-1,Number(l)),i.setHours(0,0,0,0),r){const[e,t]=r.split(":");i.setHours(Number(e),Number(t),0,0)}return i}),[]),k=l.useCallback((async e=>{const r=e.target.value,n=M(r);b&&await b(e,n),R({parsed:n,formatted:r}),v.current.setEditCellValue({id:t,field:i,value:n},e)}),[v,i,t,b,M]);return l.useEffect((()=>{R((e=>y.parsed!==e.parsed&&y.parsed?.getTime()!==e.parsed?.getTime()?y:e))}),[y]),(0,a.A)((()=>{u&&x.current.focus()}),[u]),(0,f.jsx)(h,(0,n.A)({inputRef:x,fullWidth:!0,className:I.root,type:C?"datetime-local":"date",inputProps:(0,n.A)({max:C?"9999-12-31T23:59":"9999-12-31"},c),value:A.formatted,onChange:k},w))}const w=e=>(0,f.jsx)(b,(0,n.A)({},e))},3619:(e,t,r)=>{r.d(t,{B:()=>m,j:()=>b});var n=r(83673),o=r(6614),l=r(7552),i=r(60827),a=r(94921),s=r(51148),u=r(98879),c=r(76959),d=r(64565),p=r(76404),f=r(69500);const g=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],h=(0,s.Ay)(u.Ay,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})((({theme:e})=>(0,o.A)({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}))),m=l.forwardRef(((e,t)=>{const r=(0,d.A)(),{id:s,value:u,field:m,colDef:b,hasFocus:w,debounceMs:C=200,isProcessingProps:v,onValueChange:x}=e,y=(0,n.A)(e,g),A=(0,p.h)(),R=l.useRef(),[S,I]=l.useState(u),M=(e=>{const{classes:t}=e;return(0,i.A)({root:["editInputCell"]},c.B,t)})(r),k=l.useCallback((async e=>{const t=e.target.value;x&&await x(e,t);const r=A.current.getColumn(m);let n=t;r.valueParser&&(n=r.valueParser(t,A.current.getRow(s),r,A)),I(n),A.current.setEditCellValue({id:s,field:m,value:n,debounceMs:C,unstable_skipValueParser:!0},e)}),[A,C,m,s,x]),P=A.current.unstable_getEditCellMeta(s,m);return l.useEffect((()=>{"debouncedSetEditCellValue"!==P?.changeReason&&I(u)}),[P,u]),(0,a.A)((()=>{w&&R.current.focus()}),[w]),(0,f.jsx)(h,(0,o.A)({ref:t,inputRef:R,className:M.root,ownerState:r,fullWidth:!0,type:"number"===b.type?b.type:"text",value:S??"",onChange:k,endAdornment:v?(0,f.jsx)(r.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},y))})),b=e=>(0,f.jsx)(m,(0,o.A)({},e))},57715:(e,t,r)=>{r.d(t,{D:()=>m,j:()=>b});var n=r(6614),o=r(83673),l=r(7552),i=r(94921),a=r(88729),s=r(67129),u=r(64565),c=r(87795),d=r(12003),p=r(76404),f=r(69500);const g=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],h=["MenuProps"];function m(e){const t=(0,u.A)(),{id:r,value:m,field:b,row:w,colDef:C,hasFocus:v,error:x,onValueChange:y,initialOpen:A=t.editMode===c.RL.Cell}=e,R=(0,o.A)(e,g),S=(0,p.h)(),I=l.useRef(),M=l.useRef(),[k,P]=l.useState(A),E=(t.slotProps?.baseSelect||{}).native??!1,F=t.slotProps?.baseSelect||{},{MenuProps:H}=F,T=(0,o.A)(F,h);if((0,i.A)((()=>{v&&M.current?.focus()}),[v]),!(0,d._W)(C))return null;const O=(0,d.KJ)(C,{id:r,row:w});if(!O)return null;const D=C.getOptionValue,z=C.getOptionLabel;return O&&C?(0,f.jsx)(t.slots.baseSelect,(0,n.A)({ref:I,inputRef:M,value:m,onChange:async e=>{if(!(0,d._W)(C)||!O)return;P(!1);const t=e.target,n=(0,d.Rc)(t.value,O,D);y&&await y(e,n),await S.current.setEditCellValue({id:r,field:b,value:n},e)},open:k,onOpen:e=>{(function(e){return!!e.key})(e)&&"Enter"===e.key||P(!0)},MenuProps:(0,n.A)({onClose:(e,o)=>{if(t.editMode!==c.RL.Row){if("backdropClick"===o||(0,s.nx)(e.key)){const t=S.current.getCellParams(r,b);S.current.publishEvent("cellEditStop",(0,n.A)({},t,{reason:(0,s.nx)(e.key)?a.Q.escapeKeyDown:a.Q.cellFocusOut}))}}else P(!1)}},H),error:x,native:E,fullWidth:!0},R,T,{children:O.map((e=>{const r=D(e);return(0,l.createElement)(t.slots.baseSelectOption,(0,n.A)({},t.slotProps?.baseSelectOption||{},{native:E,key:r,value:r}),z(e))}))})):null}const b=e=>(0,f.jsx)(m,(0,n.A)({},e))},10736:(e,t,r)=>{r.d(t,{k:()=>h});var n=r(6614),o=r(83673),l=(r(7552),r(27943)),i=r(81119),a=r(60827),s=r(56691),u=r(58766),c=r(64565),d=r(76959),p=r(69500);const f=["field","align","width","height"],g=(0,u.nX)(1e4,20,80),h=(0,s.n)((function(e){const{align:t,width:r,height:s}=e,u=(0,o.A)(e,f),h=(e=>{const{align:t,classes:r}=e,n={root:["cell","cellSkeleton",`cell--text${(0,i.A)(t)}`,"withBorderColor"]};return(0,a.A)(n,d.B,r)})({classes:(0,c.A)().classes,align:t}),m=Math.round(g());return(0,p.jsx)("div",(0,n.A)({className:h.root,style:{height:s,maxWidth:r,minWidth:r}},u,{children:(0,p.jsx)(l.A,{width:`${m}%`,height:25})}))}))},92765:(e,t,r)=>{r.d(t,{f:()=>b});var n=r(6614),o=r(7552),l=r(60827),i=r(61941),a=r(46245),s=r(12274),u=r(38577),c=r(48534),d=r(76404),p=r(76959),f=r(64565),g=r(71481),h=r(69500);const m=e=>{const{classes:t}=e;return(0,l.A)({icon:["filterIcon"]},p.B,t)};function b(e){const{counter:t,field:r,onClick:l}=e,p=(0,d.h)(),b=(0,f.A)(),w=(0,n.A)({},e,{classes:b.classes}),C=m(w),v=(0,s.N)(p,u._),x=(0,i.A)(),y=(0,i.A)(),A=o.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:n}=(0,u._)(p.current.state);t&&n===c.y.filters?p.current.hideFilterPanel():p.current.showFilterPanel(void 0,y,x),l&&l(p.current.getColumnHeaderParams(r),e)}),[p,r,l,y,x]);if(!t)return null;const R=v.open&&v.labelId===x,S=(0,h.jsx)(b.slots.baseIconButton,(0,n.A)({id:x,onClick:A,color:"default","aria-label":p.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":R,"aria-controls":R?y:void 0},b.slotProps?.baseIconButton,{children:(0,h.jsx)(b.slots.columnFilteredIcon,{className:C.icon,fontSize:"small"})}));return(0,h.jsx)(b.slots.baseTooltip,(0,n.A)({title:p.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},b.slotProps?.baseTooltip,{children:(0,h.jsxs)(g.r,{children:[t>1&&(0,h.jsx)(a.A,{badgeContent:t,color:"default",children:S}),1===t&&S]})}))}},86775:(e,t,r)=>{r.d(t,{d:()=>C});var n=r(6614),o=r(7552),l=r(60827),i=r(61941),a=r(56691),s=r(71115),u=r(30943),c=r(76404),d=r(76959),p=r(64565),f=r(69500);const g=o.memo((e=>{const{colDef:t,open:r,columnMenuId:i,columnMenuButtonId:a,iconButtonRef:s}=e,u=(0,c.h)(),g=(0,p.A)(),h=(e=>{const{classes:t,open:r}=e,n={root:["menuIcon",r&&"menuOpen"],button:["menuIconButton"]};return(0,l.A)(n,d.B,t)})((0,n.A)({},e,{classes:g.classes})),m=o.useCallback((e=>{e.preventDefault(),e.stopPropagation(),u.current.toggleColumnMenu(t.field)}),[u,t.field]);return(0,f.jsx)("div",{className:h.root,children:(0,f.jsx)(g.slots.baseTooltip,(0,n.A)({title:u.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},g.slotProps?.baseTooltip,{children:(0,f.jsx)(g.slots.baseIconButton,(0,n.A)({ref:s,tabIndex:-1,className:h.button,"aria-label":u.current.getLocaleText("columnMenuLabel"),size:"small",onClick:m,"aria-haspopup":"menu","aria-expanded":r,"aria-controls":r?i:void 0,id:a},g.slotProps?.baseIconButton,{children:(0,f.jsx)(g.slots.columnMenuIcon,{fontSize:"small"})}))}))})}));var h=r(42386),m=r(50796),b=r(10930),w=r(4780);const C=(0,a.n)((function(e){const{colDef:t,columnMenuOpen:r,colIndex:a,headerHeight:c,isResizing:C,sortDirection:v,sortIndex:x,filterItemsCounter:y,hasFocus:A,tabIndex:R,disableReorder:S,separatorSide:I,style:M,pinnedPosition:k,indexInSection:P,sectionLength:E,gridHasFiller:F}=e,H=(0,s.E)(),T=(0,p.A)(),O=o.useRef(null),D=(0,i.A)(),z=(0,i.A)(),L=o.useRef(null),[j,N]=o.useState(r),$=o.useMemo((()=>!T.disableColumnReorder&&!S&&!t.disableReorder),[T.disableColumnReorder,S,t.disableReorder]);let V;t.renderHeader&&(V=t.renderHeader(H.current.getColumnHeaderParams(t.field)));const G=(0,w.o)(k,P),B=(0,w.L)(k,P,E,T.showCellVerticalBorder,F),U=(e=>{const{colDef:t,classes:r,isDragging:n,sortDirection:o,showRightBorder:i,showLeftBorder:a,filterItemsCounter:s,pinnedPosition:u}=e,c=null!=o,p=null!=s&&s>0,f="number"===t.type,g={root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",n&&"columnHeader--moving",c&&"columnHeader--sorted",p&&"columnHeader--filtered",f&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",a&&"columnHeader--withLeftBorder","left"===u&&"columnHeader--pinnedLeft","right"===u&&"columnHeader--pinnedRight"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,l.A)(g,d.B,r)})((0,n.A)({},e,{classes:T.classes,showRightBorder:B,showLeftBorder:G})),W=o.useCallback((e=>r=>{(0,b.TA)(r)||H.current.publishEvent(e,H.current.getColumnHeaderParams(t.field),r)}),[H,t.field]),_=o.useMemo((()=>({onClick:W("columnHeaderClick"),onDoubleClick:W("columnHeaderDoubleClick"),onMouseOver:W("columnHeaderOver"),onMouseOut:W("columnHeaderOut"),onMouseEnter:W("columnHeaderEnter"),onMouseLeave:W("columnHeaderLeave"),onKeyDown:W("columnHeaderKeyDown"),onFocus:W("columnHeaderFocus"),onBlur:W("columnHeaderBlur")})),[W]),K=o.useMemo((()=>$?{onDragStart:W("columnHeaderDragStart"),onDragEnter:W("columnHeaderDragEnter"),onDragOver:W("columnHeaderDragOver"),onDragEnd:W("columnHeaderDragEnd")}:{}),[$,W]),q=o.useMemo((()=>({onMouseDown:W("columnSeparatorMouseDown"),onDoubleClick:W("columnSeparatorDoubleClick")})),[W]);o.useEffect((()=>{j||N(r)}),[j,r]);const X=o.useCallback((()=>{N(!1)}),[]),Y=!T.disableColumnMenu&&!t.disableColumnMenu&&(0,f.jsx)(g,{colDef:t,columnMenuId:D,columnMenuButtonId:z,open:j,iconButtonRef:L}),Z=(0,f.jsx)(h.H,{columnMenuId:D,columnMenuButtonId:z,field:t.field,open:r,target:L.current,ContentComponent:T.slots.columnMenu,contentComponentProps:T.slotProps?.columnMenu,onExited:X}),Q=t.sortingOrder??T.sortingOrder,J=(t.sortable||null!=v)&&!t.hideSortIcons&&!T.disableColumnSorting,ee=(0,f.jsxs)(o.Fragment,{children:[!T.disableColumnFilter&&(0,f.jsx)(T.slots.columnHeaderFilterIconButton,(0,n.A)({field:t.field,counter:y},T.slotProps?.columnHeaderFilterIconButton)),J&&(0,f.jsx)(u.J,{direction:v,index:x,sortingOrder:Q,disabled:!t.sortable})]});o.useLayoutEffect((()=>{const e=H.current.state.columnMenu;if(A&&!e.open){const e=O.current.querySelector('[tabindex="0"]')||O.current;e?.focus(),H.current.columnHeadersContainerRef?.current&&(H.current.columnHeadersContainerRef.current.scrollLeft=0)}}),[H,A]);const te="function"==typeof t.headerClassName?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,re=t.headerName??t.field;return(0,f.jsx)(m.a,(0,n.A)({ref:O,classes:U,columnMenuOpen:r,colIndex:a,height:c,isResizing:C,sortDirection:v,hasFocus:A,tabIndex:R,separatorSide:I,isDraggable:$,headerComponent:V,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:Y,columnTitleIconButtons:ee,headerClassName:te,label:re,resizable:!T.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:Z,draggableContainerProps:K,columnHeaderSeparatorProps:q,style:M},_))}))},38975:(e,t,r)=>{r.d(t,{V:()=>g,j:()=>p});var n=r(6614),o=r(83673),l=r(7552),i=r(81119),a=r(60827),s=r(76959),u=r(64565),c=r(69500);const d=["resizable","resizing","height","side"];var p=function(e){return e.Left="left",e.Right="right",e}(p||{});function f(e){const{height:t,side:r=p.Right}=e,f=(0,o.A)(e,d),g=(0,u.A)(),h=(e=>{const{resizable:t,resizing:r,classes:n,side:o}=e,l={root:["columnSeparator",t&&"columnSeparator--resizable",r&&"columnSeparator--resizing",o&&`columnSeparator--side${(0,i.A)(o)}`],icon:["iconSeparator"]};return(0,a.A)(l,s.B,n)})((0,n.A)({},e,{side:r,classes:g.classes})),m=l.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]);return(0,c.jsx)("div",(0,n.A)({className:h.root,style:{minHeight:t,opacity:g.showColumnVerticalBorder?1:0}},f,{onClick:m,children:(0,c.jsx)(g.slots.columnResizeIcon,{className:h.icon})}))}const g=l.memo(f)},30943:(e,t,r)=>{r.d(t,{J:()=>f});var n=r(6614),o=r(7552),l=r(60827),i=r(46245),a=r(76404),s=r(76959),u=r(64565),c=r(71481),d=r(69500);function p(e){const{direction:t,index:r,sortingOrder:o,disabled:p}=e,f=(0,a.h)(),g=(0,u.A)(),h=(e=>{const{classes:t}=e;return(0,l.A)({icon:["sortIcon"]},s.B,t)})((0,n.A)({},e,{classes:g.classes})),m=function(e,t,r,o){let l;const i={};return"asc"===t?l=e.columnSortedAscendingIcon:"desc"===t?l=e.columnSortedDescendingIcon:(l=e.columnUnsortedIcon,i.sortingOrder=o),l?(0,d.jsx)(l,(0,n.A)({fontSize:"small",className:r},i)):null}(g.slots,t,h.icon,o);if(!m)return null;const b=(0,d.jsx)(g.slots.baseIconButton,(0,n.A)({tabIndex:-1,"aria-label":f.current.getLocaleText("columnHeaderSortIconLabel"),title:f.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:p},g.slotProps?.baseIconButton,{children:m}));return(0,d.jsxs)(c.r,{children:[null!=r&&(0,d.jsx)(i.A,{badgeContent:r,color:"default",children:b}),null==r&&b]})}const f=o.memo(p)},87038:(e,t,r)=>{r.d(t,{_:()=>m});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(60827),s=r(49267),u=r(10930),c=r(76959),d=r(64565),p=r(69500);const f=["className"],g=(0,s.A)("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),h=l.forwardRef((function(e,t){const{className:r}=e,l=(0,o.A)(e,f),s=(0,d.A)(),u=(e=>{const{classes:t}=e;return(0,a.A)({root:["columnHeaderTitle"]},c.B,t)})(s);return(0,p.jsx)(g,(0,n.A)({ref:t,className:(0,i.A)(u.root,r),ownerState:s},l))}));function m(e){const{label:t,description:r}=e,o=(0,d.A)(),i=l.useRef(null),[a,s]=l.useState(""),c=l.useCallback((()=>{if(!r&&i?.current){const e=(0,u.Dy)(i.current);s(e?t:"")}}),[r,t]);return(0,p.jsx)(o.slots.baseTooltip,(0,n.A)({title:r||a},o.slotProps?.baseTooltip,{children:(0,p.jsx)(h,{onMouseOver:c,ref:i,children:t})}))}},50796:(e,t,r)=>{r.d(t,{a:()=>g});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(24979),s=r(71115),u=r(87038),c=r(38975),d=r(64565),p=r(69500);const f=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],g=l.forwardRef((function(e,t){const{classes:r,columnMenuOpen:g,colIndex:h,height:m,isResizing:b,sortDirection:w,hasFocus:C,tabIndex:v,separatorSide:x,isDraggable:y,headerComponent:A,description:R,width:S,columnMenuIconButton:I=null,columnMenu:M=null,columnTitleIconButtons:k=null,headerClassName:P,label:E,resizable:F,draggableContainerProps:H,columnHeaderSeparatorProps:T,style:O}=e,D=(0,o.A)(e,f),z=(0,s.E)(),L=(0,d.A)(),j=l.useRef(null),[N,$]=l.useState(g),V=(0,a.A)(j,t);let G="none";return null!=w&&(G="asc"===w?"ascending":"descending"),l.useEffect((()=>{N||$(g)}),[N,g]),l.useLayoutEffect((()=>{const e=z.current.state.columnMenu;if(C&&!e.open){const e=j.current.querySelector('[tabindex="0"]')||j.current;e?.focus(),z.current.columnHeadersContainerRef?.current&&(z.current.columnHeadersContainerRef.current.scrollLeft=0)}}),[z,C]),(0,p.jsxs)("div",(0,n.A)({ref:V,className:(0,i.A)(r.root,P),style:(0,n.A)({},O,{height:m,width:S,minWidth:S,maxWidth:S}),role:"columnheader",tabIndex:v,"aria-colindex":h+1,"aria-sort":G,"aria-label":null==A?E:void 0},D,{children:[(0,p.jsxs)("div",(0,n.A)({className:r.draggableContainer,draggable:y,role:"presentation"},H,{children:[(0,p.jsxs)("div",{className:r.titleContainer,role:"presentation",children:[(0,p.jsx)("div",{className:r.titleContainerContent,children:void 0!==A?A:(0,p.jsx)(u._,{label:E,description:R,columnWidth:S})}),k]}),I]})),(0,p.jsx)(c.V,(0,n.A)({resizable:!L.disableColumnResize&&!!F,resizing:b,height:m,side:x},T)),M]}))}))},71481:(e,t,r)=>{r.d(t,{r:()=>g});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(60827),s=r(49267),u=r(76959),c=r(64565),d=r(69500);const p=["className"],f=(0,s.A)("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})((()=>({display:"flex",visibility:"hidden",width:0}))),g=l.forwardRef((function(e,t){const{className:r}=e,l=(0,o.A)(e,p),s=(0,c.A)(),g=(e=>{const{classes:t}=e;return(0,a.A)({root:["iconButtonContainer"]},u.B,t)})(s);return(0,d.jsx)(f,(0,n.A)({ref:t,className:(0,i.A)(g.root,r),ownerState:s},l))}))},17279:(e,t,r)=>{r.d(t,{c:()=>f,r:()=>g});var n=r(6614),o=r(83673),l=r(7552),i=r(60827),a=r(24979),s=r(76404),u=r(64565),c=r(76959),d=r(69500);const p=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],f=l.forwardRef((function(e,t){const{field:r,id:f,value:g,rowNode:h,hasFocus:m,tabIndex:b}=e,w=(0,o.A)(e,p),C=(0,s.h)(),v=(0,u.A)(),x=(e=>{const{classes:t}=e;return(0,i.A)({root:["checkboxInput"]},c.B,t)})({classes:v.classes}),y=l.useRef(null),A=l.useRef(null),R=(0,a.A)(y,t);l.useLayoutEffect((()=>{if(0===b){const e=C.current.getCellElement(f,r);e&&(e.tabIndex=-1)}}),[C,b,f,r]),l.useEffect((()=>{if(m){const e=y.current?.querySelector("input");e?.focus({preventScroll:!0})}else A.current&&A.current.stop({})}),[m]);const S=l.useCallback((e=>{" "===e.key&&e.stopPropagation()}),[]);if("footer"===h.type||"pinnedRow"===h.type)return null;const I=C.current.isRowSelectable(f),M=C.current.getLocaleText(g?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return(0,d.jsx)(v.slots.baseCheckbox,(0,n.A)({ref:R,tabIndex:b,checked:g,onChange:e=>{const t={value:e.target.checked,id:f};C.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:x.root,inputProps:{"aria-label":M},onKeyDown:S,disabled:!I,touchRippleRef:A},v.slotProps?.baseCheckbox,w))})),g=f},83861:(e,t,r)=>{r.d(t,{J:()=>w});var n=r(6614),o=r(83673),l=r(7552),i=r(60827),a=r(41222),s=r(12274),u=r(3247),c=r(82188),d=r(76404),p=r(76959),f=r(64565),g=r(2220),h=r(24940),m=r(69500);const b=["field","colDef"],w=l.forwardRef((function(e,t){const r=(0,o.A)(e,b),[,w]=l.useState(!1),C=(0,d.h)(),v=(0,f.A)(),x=(e=>{const{classes:t}=e;return(0,i.A)({root:["checkboxInput"]},p.B,t)})({classes:v.classes}),y=(0,s.N)(C,u.Kr),A=(0,s.N)(C,c.Bi),R=(0,s.N)(C,g.ux),S=(0,s.N)(C,h.ee),I=l.useMemo((()=>"function"!=typeof v.isRowSelectable?A:A.filter((e=>!!C.current.getRow(e)&&v.isRowSelectable(C.current.getRowParams(e))))),[C,v.isRowSelectable,A]),M=l.useMemo((()=>(v.pagination&&v.checkboxSelectionVisibleOnly?S:R).reduce(((e,t)=>(e[t]=!0,e)),{})),[v.pagination,v.checkboxSelectionVisibleOnly,S,R]),k=l.useMemo((()=>I.filter((e=>M[e])).length),[I,M]),P=k>0&&k<Object.keys(M).length,E=k>0,F=null!==y&&y.field===e.field?0:-1;l.useLayoutEffect((()=>{const t=C.current.getColumnHeaderElement(e.field);0===F&&t&&(t.tabIndex=-1)}),[F,C,e.field]);const H=l.useCallback((e=>{" "===e.key&&C.current.publishEvent("headerSelectionCheckboxChange",{value:!E})}),[C,E]),T=l.useCallback((()=>{w((e=>!e))}),[]);l.useEffect((()=>C.current.subscribeEvent("rowSelectionChange",T)),[C,T]);const O=C.current.getLocaleText(E?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return(0,m.jsx)(v.slots.baseCheckbox,(0,n.A)({ref:t,indeterminate:P,checked:E,onChange:e=>{const t={value:e.target.checked};C.current.publishEvent("headerSelectionCheckboxChange",t)},className:x.root,inputProps:{"aria-label":O},tabIndex:F,onKeyDown:H,disabled:!(0,a.c)(v)},v.slotProps?.baseCheckbox,r))}))},36014:(e,t,r)=>{r.d(t,{D:()=>C});var n=r(6614),o=r(7552),l=r(60827),i=r(33371),a=r(51148),s=r(80163),u=r(12274),c=r(76404),d=r(64565),p=r(76959),f=r(45175);const g=(e,t)=>{const r=new Set(Object.keys(e).filter((t=>!1===e[t]))),n=new Set(Object.keys(t).filter((e=>!1===t[e])));if(r.size!==n.size)return!1;let o=!0;return r.forEach((e=>{n.has(e)||(o=!1)})),o},h=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;var m=r(69500);const b=e=>{const{classes:t}=e;return(0,l.A)({root:["columnsManagement"],header:["columnsManagementHeader"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},p.B,t)},w=new Intl.Collator;function C(e){const t=(0,c.h)(),r=o.useRef(null),l=(0,u.N)(t,s.OV),a=(0,f.A)((()=>(0,s.FY)(t))).current,p=(0,u.N)(t,s.FY),C=(0,d.A)(),[R,S]=o.useState(""),I=b(C),{sort:M,searchPredicate:k=h,autoFocusSearchField:P=!0,disableShowHideToggle:E=!1,disableResetButton:F=!1,toggleAllMode:H="all",getTogglableColumns:T}=e,O=o.useMemo((()=>g(p,a)),[p,a]),D=o.useMemo((()=>{switch(M){case"asc":return[...l].sort(((e,t)=>w.compare(e.headerName||e.field,t.headerName||t.field)));case"desc":return[...l].sort(((e,t)=>-w.compare(e.headerName||e.field,t.headerName||t.field)));default:return l}}),[l,M]),z=e=>{const{name:r}=e.target;t.current.setColumnVisibility(r,!1===p[r])},L=o.useMemo((()=>{const e=T?T(D):null,t=e?D.filter((({field:t})=>e.includes(t))):D;return R?t.filter((e=>k(e,R.toLowerCase()))):t}),[D,R,k,T]),j=o.useCallback((e=>{const r=(0,s.FY)(t),o=(0,n.A)({},r),i=T?T(l):null;return("filteredOnly"===H?L:l).forEach((t=>{t.hideable&&(null==i||i.includes(t.field))&&(e?delete o[t.field]:o[t.field]=!1)})),t.current.setColumnVisibilityModel(o)}),[t,l,T,H,L]),N=o.useCallback((e=>{S(e.target.value)}),[]),$=o.useMemo((()=>L.filter((e=>e.hideable))),[L]),V=o.useMemo((()=>$.every((e=>null==p[e.field]||!1!==p[e.field]))),[p,$]),G=o.useMemo((()=>$.every((e=>!1===p[e.field]))),[p,$]),B=o.useRef(null);o.useEffect((()=>{P?r.current.focus():B.current&&"function"==typeof B.current.focus&&B.current.focus()}),[P]);let U=!1;const W=e=>!1===U&&!1!==e.hideable&&(U=!0,!0);return(0,m.jsxs)(o.Fragment,{children:[(0,m.jsx)(x,{className:I.header,ownerState:C,children:(0,m.jsx)(C.slots.baseTextField,(0,n.A)({placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:r,value:R,onChange:N,variant:"outlined",size:"small",InputProps:{startAdornment:(0,m.jsx)(C.slots.baseInputAdornment,{position:"start",children:(0,m.jsx)(C.slots.quickFilterIcon,{})}),sx:{pl:1.5}},fullWidth:!0},C.slotProps?.baseTextField))}),(0,m.jsxs)(v,{className:I.root,ownerState:C,children:[L.map((e=>(0,m.jsx)(i.A,{className:I.row,control:(0,m.jsx)(C.slots.baseCheckbox,(0,n.A)({disabled:!1===e.hideable,checked:!1!==p[e.field],onClick:z,name:e.field,sx:{p:.5},inputRef:W(e)?B:void 0},C.slotProps?.baseCheckbox)),label:e.headerName||e.field},e.field))),0===L.length&&(0,m.jsx)(A,{ownerState:C,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),E&&F||!(L.length>0)?null:(0,m.jsxs)(y,{ownerState:C,className:I.footer,children:[E?(0,m.jsx)("span",{}):(0,m.jsx)(i.A,{control:(0,m.jsx)(C.slots.baseCheckbox,(0,n.A)({disabled:0===$.length,checked:V,indeterminate:!V&&!G,onClick:()=>j(!V),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},C.slotProps?.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),F?null:(0,m.jsx)(C.slots.baseButton,(0,n.A)({onClick:()=>t.current.setColumnVisibilityModel(a),disabled:O},C.slotProps?.baseButton,{children:"Reset"}))]})]})}const v=(0,a.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,t)=>t.columnsManagement})((({theme:e})=>({padding:e.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"}))),x=(0,a.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})((({theme:e})=>({padding:e.spacing(1.5,3)}))),y=(0,a.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,t)=>t.columnsManagementFooter})((({theme:e})=>({padding:e.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${e.palette.divider}`}))),A=(0,a.Ay)("div")((({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]})))},91681:(e,t,r)=>{r.d(t,{J:()=>g});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(60827),s=r(49267),u=r(76959),c=r(64565),d=r(69500);const p=["className"],f=(0,s.A)("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),g=l.forwardRef((function(e,t){const{className:r}=e,l=(0,o.A)(e,p),s=(0,c.A)(),g=(e=>{const{classes:t}=e;return(0,a.A)({root:["footerContainer","withBorderColor"]},u.B,t)})(s);return(0,d.jsx)(f,(0,n.A)({ref:t,className:(0,i.A)(g.root,r),ownerState:s},l))}))},1895:(e,t,r)=>{r.d(t,{$:()=>g});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(60827),s=r(49267),u=r(76959),c=r(64565),d=r(69500);const p=["className"],f=(0,s.A)("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),g=l.forwardRef((function(e,t){const{className:r}=e,l=(0,o.A)(e,p),s=(0,c.A)(),g=(e=>{const{classes:t}=e;return(0,a.A)({root:["overlay"]},u.B,t)})(s);return(0,d.jsx)(f,(0,n.A)({ref:t,className:(0,i.A)(g.root,r),ownerState:s},l))}))},48335:(e,t,r)=>{r.d(t,{h:()=>I});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(81119),s=r(60827),u=r(24979),c=r(94921),d=r(49267),p=r(18283),f=r(51148),g=r(76959);const h={[`.${g.x.columnSeparator}, .${g.x["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},m={[`& .${g.x.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${g.x.menuIcon}`]:{width:"auto",visibility:"visible"}},b=(0,f.Ay)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${g.x.autoHeight}`]:t.autoHeight},{[`&.${g.x.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${g.x["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${g.x["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${g.x["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${g.x.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${g.x["root--disableUserSelection"]} .${g.x.cell}`]:t["root--disableUserSelection"]},{[`&.${g.x.autosizing}`]:t.autosizing},{[`& .${g.x.editBooleanCell}`]:t.editBooleanCell},{[`& .${g.x.cell}`]:t.cell},{[`& .${g.x["cell--editing"]}`]:t["cell--editing"]},{[`& .${g.x["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${g.x["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${g.x["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${g.x["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${g.x["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${g.x["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${g.x["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${g.x["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${g.x.cellCheckbox}`]:t.cellCheckbox},{[`& .${g.x.cellSkeleton}`]:t.cellSkeleton},{[`& .${g.x.checkboxInput}`]:t.checkboxInput},{[`& .${g.x["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${g.x["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${g.x["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${g.x["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${g.x["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${g.x["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${g.x["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${g.x["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${g.x["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${g.x.columnHeader}`]:t.columnHeader},{[`& .${g.x.headerFilterRow}`]:t.headerFilterRow},{[`& .${g.x.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${g.x.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${g.x.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${g.x["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${g.x["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${g.x.columnSeparator}`]:t.columnSeparator},{[`& .${g.x.filterIcon}`]:t.filterIcon},{[`& .${g.x.iconSeparator}`]:t.iconSeparator},{[`& .${g.x.menuIcon}`]:t.menuIcon},{[`& .${g.x.menuIconButton}`]:t.menuIconButton},{[`& .${g.x.menuOpen}`]:t.menuOpen},{[`& .${g.x.menuList}`]:t.menuList},{[`& .${g.x["row--editable"]}`]:t["row--editable"]},{[`& .${g.x["row--editing"]}`]:t["row--editing"]},{[`& .${g.x["row--dragging"]}`]:t["row--dragging"]},{[`& .${g.x.row}`]:t.row},{[`& .${g.x.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${g.x.rowReorderCell}`]:t.rowReorderCell},{[`& .${g.x["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${g.x.sortIcon}`]:t.sortIcon},{[`& .${g.x.withBorderColor}`]:t.withBorderColor},{[`& .${g.x.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${g.x.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${g.x.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${g.x["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})((({theme:e})=>{const t=(r=e).vars?r.vars.palette.TableCell.border:"light"===r.palette.mode?(0,p.a)((0,p.X4)(r.palette.divider,1),.88):(0,p.e$)((0,p.X4)(r.palette.divider,1),.68);var r;const o=e.shape.borderRadius,l=e.vars?e.vars.palette.background.default:e.mixins.MuiDataGrid?.containerBackground??e.palette.background.default,i=e.mixins.MuiDataGrid?.pinnedBackground??l,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:(0,p.X4)(e.palette.background.default,e.palette.action.disabledOpacity),s=(e.vars||e).palette.action.hoverOpacity,u=(e.vars||e).palette.action.hover,c=(e.vars||e).palette.action.selectedOpacity,d=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${c})`:(0,p.X4)(e.palette.primary.main,c),f=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(\n                ${e.vars.palette.action.selectedOpacity} + \n                ${e.vars.palette.action.hoverOpacity}\n              ))`:(0,p.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),b=e.vars?u:w(i,u,s),C=e.vars?d:w(i,d,c),v=e.vars?u:w(C,u,s),x={backgroundColor:d,"&:hover":{backgroundColor:f,"@media (hover: none)":{backgroundColor:d}}};return(0,n.A)({"--unstable_DataGrid-radius":"number"==typeof o?`${o}px`:o,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":a,"--DataGrid-containerBackground":l,"--DataGrid-pinnedBackground":i,"--DataGrid-rowBorderColor":t,"--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:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`.${g.x.main} > *:first-of-type`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${g.x.autoHeight}`]:{height:"auto"},[`&.${g.x.autosizing}`]:{[`& .${g.x.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${g.x.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${g.x.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${g.x.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${g.x.groupingCriteriaCell}`]:{width:"unset"},[`& .${g.x.treeDataGroupingCell}`]:{width:"unset"}},[`& .${g.x.columnHeader}, & .${g.x.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${g.x.columnHeader}:focus-within, & .${g.x.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:(0,p.X4)(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${g.x.columnHeader}:focus, & .${g.x.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${g.x.columnHeaderCheckbox}, & .${g.x.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${g.x.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",overflow:"hidden"},[`& .${g.x["columnHeader--sorted"]} .${g.x.iconButtonContainer}, & .${g.x["columnHeader--filtered"]} .${g.x.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${g.x.columnHeader}:not(.${g.x["columnHeader--sorted"]}) .${g.x.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${g.x.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${g.x.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${g.x["columnHeader--filledGroup"]} .${g.x.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${g.x.sortIcon}, & .${g.x.filterIcon}`]:{fontSize:"inherit"},[`& .${g.x["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${g.x["columnHeader--alignCenter"]} .${g.x.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${g.x["columnHeader--alignRight"]} .${g.x.columnHeaderDraggableContainer}, & .${g.x["columnHeader--alignRight"]} .${g.x.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${g.x["columnHeader--alignCenter"]} .${g.x.menuIcon}, & .${g.x["columnHeader--alignRight"]} .${g.x.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${g.x["columnHeader--alignRight"]} .${g.x.menuIcon}, & .${g.x["columnHeader--alignRight"]} .${g.x.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${g.x["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${g.x["columnHeader--pinnedLeft"]}, & .${g.x["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${g.x.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${g.x.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${g.x.columnHeaders}:hover`]:h,[`& .${g.x.columnHeader}:hover`]:m,[`& .${g.x.columnHeader}:not(.${g.x["columnHeader--sorted"]}):hover .${g.x.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${g.x.columnHeaders}`]:h,[`& .${g.x.columnHeader}`]:m},[`& .${g.x["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${g.x["columnSeparator--sideRight"]}`]:{right:-12},[`& .${g.x["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${g.x["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${g.x.iconSeparator}`]:{color:"inherit"},[`& .${g.x.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${g.x.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${g.x.headerFilterRow}`]:{[`& .${g.x.columnHeader}`]:{boxSizing:"border-box",borderTop:"1px solid var(--DataGrid-rowBorderColor)"}},[`.${g.x.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${g.x["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":x},[`& .${g.x["container--top"]}, & .${g.x["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${g.x.cell}`]:{height:"var(--height)",minWidth:"var(--width)",maxWidth:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":x},[`& .${g.x["virtualScrollerContent--overflowed"]} .${g.x["row--lastVisible"]} .${g.x.cell}`]:{borderTopColor:"transparent"},[`&.${g.x["root--disableUserSelection"]} .${g.x.cell}`]:{userSelect:"none"},[`& .${g.x["row--dynamicHeight"]} > .${g.x.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${g.x.cellEmpty}`]:{padding:0,height:"unset"},[`& .${g.x.cell}.${g.x["cell--selectionMode"]}`]:{cursor:"default"},[`& .${g.x.cell}.${g.x["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${g.x["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${g.x["row--editing"]} .${g.x.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${g.x.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${g.x.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${g.x.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${g.x.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${g.x.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${g.x["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${g.x.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${g.x.withBorderColor}`]:{borderColor:t},[`& .${g.x["cell--withLeftBorder"]}, & .${g.x["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${g.x["cell--withRightBorder"]}, & .${g.x["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${g.x["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${g.x["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${g.x["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${g.x["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${g.x["cell--pinnedLeft"]}, & .${g.x["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)"},[`& .${g.x.virtualScrollerContent} .${g.x.row}`]:{"&:hover":{[`& .${g.x["cell--pinnedLeft"]}, & .${g.x["cell--pinnedRight"]}`]:{backgroundColor:b}},"&.Mui-selected":{[`& .${g.x["cell--pinnedLeft"]}, & .${g.x["cell--pinnedRight"]}`]:{backgroundColor:C},"&:hover":{[`& .${g.x["cell--pinnedLeft"]}, & .${g.x["cell--pinnedRight"]}`]:{backgroundColor:v}}}},[`& .${g.x.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${g.x.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${g.x.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${g.x.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${g.x["columnHeader--dragging"]}, & .${g.x["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${g.x["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${g.x.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${g.x.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${g.x.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${g.x.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${g.x.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${g.x.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${g.x["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${g.x["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${g.x.filler}`]:{flex:1},[`& .${g.x["filler--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"}})}));function w(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),l=(0,p.rP)(e),i=(0,p.rP)(t),a=[o(l.values[0],i.values[0]),o(l.values[1],i.values[1]),o(l.values[2],i.values[2])];return(0,p.X0)({type:"rgb",values:a})}var C=r(12274),v=r(71115),x=r(64565),y=r(33658),A=r(69500);const R=["children","className"],S=(0,d.A)("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0}),I=l.forwardRef((function(e,t){const r=(0,x.A)(),{children:d,className:p}=e,f=(0,o.A)(e,R),h=(0,v.E)(),m=(0,C.N)(h,y._v),w=h.current.rootElementRef,I=(0,u.A)(w,t),M=(0,n.A)({},r,{density:m}),k=(e=>{const{autoHeight:t,density:r,classes:n,showCellVerticalBorder:o}=e,l={root:["root",t&&"autoHeight",`root--density${(0,a.A)(r)}`,"withBorderColor",o&&"withVerticalBorder"]};return(0,s.A)(l,g.B,n)})(M),[P,E]=l.useState(!1);return(0,c.A)((()=>{E(!0)}),[]),P?(0,A.jsxs)(b,(0,n.A)({ref:I,className:(0,i.A)(p,k.root),ownerState:M},f,{children:[(0,A.jsx)(S,{role:"presentation","data-id":"gridPanelAnchor"}),d]})):null}))},83749:(e,t,r)=>{r.d(t,{U:()=>y});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(54767),s=r(60827),u=r(94921),c=r(4407),d=r(943),p=r(34383),f=r(51148),g=r(76959),h=r(64565),m=r(76404),b=r(69500);const w=["open","target","onClose","children","position","className","onExited"],C=e=>{const{classes:t}=e;return(0,s.A)({root:["menu"]},g.B,t)},v=(0,f.Ay)(p.A,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})((({theme:e})=>({zIndex:e.zIndex.modal,[`& .${g.x.menuList}`]:{outline:0}}))),x={"bottom-start":"top left","bottom-end":"top right"};function y(e){const{open:t,target:r,onClose:s,children:p,position:f,className:g,onExited:y}=e,A=(0,o.A)(e,w),R=(0,m.h)(),S=(0,h.A)(),I=C(S),M=l.useRef(null);(0,u.A)((()=>{t?M.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(M.current?.focus?.(),M.current=null)}),[t]),l.useEffect((()=>{const e=t?"menuOpen":"menuClose";R.current.publishEvent(e,{target:r})}),[R,t,r]);const k=e=>{e.target&&(r===e.target||r?.contains(e.target))||s(e)};return(0,b.jsx)(v,(0,n.A)({as:S.slots.basePopper,className:(0,i.A)(g,I.root),ownerState:S,open:t,anchorEl:r,transition:!0,placement:f},A,S.slotProps?.basePopper,{children:({TransitionProps:e,placement:t})=>{return(0,b.jsx)(a.x,{onClickAway:k,mouseEvent:"onMouseDown",children:(0,b.jsx)(c.A,(0,n.A)({},e,{style:{transformOrigin:x[t]},onExited:(r=e?.onExited,e=>{r&&r(),y&&y(e)}),children:(0,b.jsx)(d.A,{children:p})}))});var r}}))}},42386:(e,t,r)=>{r.d(t,{H:()=>s});var n=r(6614),o=(r(7552),r(74795)),l=r(76404),i=r(83749),a=r(69500);function s({columnMenuId:e,columnMenuButtonId:t,ContentComponent:r,contentComponentProps:s,field:u,open:c,target:d,onExited:p}){const f=(0,l.h)(),g=f.current.getColumn(u),h=(0,o.A)((e=>{e&&(e.stopPropagation(),d?.contains(e.target))||f.current.hideColumnMenu()}));return d&&g?(0,a.jsx)(i.U,{placement:"bottom-"+("right"===g.align?"start":"end"),open:c,target:d,onClose:h,onExited:p,children:(0,a.jsx)(r,(0,n.A)({colDef:g,hideMenu:h,open:c,id:e,labelledby:t},s))}):null}},66456:(e,t,r)=>{r.d(t,{ai:()=>h,ep:()=>m,aU:()=>w,HO:()=>b});var n=r(6614),o=r(83673),l=r(7552),i=r(24387),a=r(71115);const s=["displayOrder"];var u=r(2956),c=r(32745),d=r(32780),p=r(23942),f=r(69500);const g=["defaultSlots","defaultSlotProps","slots","slotProps"],h={columnMenuSortItem:p.H,columnMenuFilterItem:d.r,columnMenuColumnsItem:c.O},m={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},b=l.forwardRef((function(e,t){const{defaultSlots:r,defaultSlotProps:c,slots:d,slotProps:p}=e,h=(0,o.A)(e,g),m=(e=>{const t=(0,a.E)(),{defaultSlots:r,defaultSlotProps:u,slots:c={},slotProps:d={},hideMenu:p,colDef:f,addDividers:g=!0}=e,h=l.useMemo((()=>(0,n.A)({},r,c)),[r,c]),m=l.useMemo((()=>{if(!d||0===Object.keys(d).length)return u;const e=(0,n.A)({},d);return Object.entries(u).forEach((([t,r])=>{e[t]=(0,n.A)({},r,d[t]||{})})),e}),[u,d]),b=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),w=l.useMemo((()=>{const e=Object.keys(r);return Object.keys(c).filter((t=>!e.includes(t)))}),[c,r]);return l.useMemo((()=>{const e=Array.from(new Set([...b,...w])).filter((e=>null!=h[e])).sort(((e,t)=>{const r=m[e],n=m[t];return(Number.isFinite(r?.displayOrder)?r.displayOrder:100)-(Number.isFinite(n?.displayOrder)?n.displayOrder:100)}));return e.reduce(((t,r,l)=>{let a={colDef:f,onClick:p};const u=m[r];if(u){const e=(0,o.A)(u,s);a=(0,n.A)({},a,e)}return g&&l!==e.length-1?[...t,[h[r],a],[i.A,{}]]:[...t,[h[r],a]]}),[])}),[g,f,b,p,h,m,w])})((0,n.A)({},h,{defaultSlots:r,defaultSlotProps:c,slots:d,slotProps:p}));return(0,f.jsx)(u.T,(0,n.A)({ref:t},h,{children:m.map((([e,t],r)=>(0,f.jsx)(e,(0,n.A)({},t),r)))}))})),w=l.forwardRef((function(e,t){return(0,f.jsx)(b,(0,n.A)({},e,{ref:t,defaultSlots:h,defaultSlotProps:m}))}))},2956:(e,t,r)=>{r.d(t,{T:()=>g});var n=r(6614),o=r(83673),l=r(93878),i=r(7552),a=r(6679),s=r(51148),u=r(67129),c=r(76959),d=r(69500);const p=["hideMenu","colDef","id","labelledby","className","children","open"],f=(0,s.Ay)(a.A)((()=>({minWidth:248}))),g=i.forwardRef((function(e,t){const{hideMenu:r,id:a,labelledby:s,className:g,children:h,open:m}=e,b=(0,o.A)(e,p),w=i.useCallback((e=>{(0,u.vY)(e.key)&&e.preventDefault(),(0,u.HF)(e.key)&&r(e)}),[r]);return(0,d.jsx)(f,(0,n.A)({id:a,ref:t,className:(0,l.A)(c.x.menuList,g),"aria-labelledby":s,onKeyDown:w,autoFocus:m},b,{children:h}))}))},32745:(e,t,r)=>{r.d(t,{O:()=>s});var n=r(6614),o=r(7552),l=r(49158),i=r(61361),a=r(69500);function s(e){return(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(l.l,(0,n.A)({},e)),(0,a.jsx)(i.s,(0,n.A)({},e))]})}},32780:(e,t,r)=>{r.d(t,{r:()=>c});var n=r(7552),o=r(29629),l=r(66765),i=r(81453),a=r(76404),s=r(64565),u=r(69500);function c(e){const{colDef:t,onClick:r}=e,c=(0,a.h)(),d=(0,s.A)(),p=n.useCallback((e=>{r(e),c.current.showFilterPanel(t.field)}),[c,t.field,r]);return d.disableColumnFilter||!t.filterable?null:(0,u.jsxs)(o.A,{onClick:p,children:[(0,u.jsx)(l.A,{children:(0,u.jsx)(d.slots.columnMenuFilterIcon,{fontSize:"small"})}),(0,u.jsx)(i.A,{children:c.current.getLocaleText("columnMenuFilter")})]})}},49158:(e,t,r)=>{r.d(t,{l:()=>d});var n=r(7552),o=r(29629),l=r(66765),i=r(81453),a=r(76404),s=r(64565),u=r(80163),c=r(69500);function d(e){const{colDef:t,onClick:r}=e,d=(0,a.h)(),p=(0,s.A)(),f=1===(0,u.iv)(d).filter((e=>!0!==e.disableColumnMenu)).length,g=n.useCallback((e=>{f||(d.current.setColumnVisibility(t.field,!1),r(e))}),[d,t.field,r,f]);return p.disableColumnSelector||!1===t.hideable?null:(0,c.jsxs)(o.A,{onClick:g,disabled:f,children:[(0,c.jsx)(l.A,{children:(0,c.jsx)(p.slots.columnMenuHideIcon,{fontSize:"small"})}),(0,c.jsx)(i.A,{children:d.current.getLocaleText("columnMenuHideColumn")})]})}},61361:(e,t,r)=>{r.d(t,{s:()=>d});var n=r(7552),o=r(29629),l=r(66765),i=r(81453),a=r(48534),s=r(76404),u=r(64565),c=r(69500);function d(e){const{onClick:t}=e,r=(0,s.h)(),d=(0,u.A)(),p=n.useCallback((e=>{t(e),r.current.showPreferences(a.y.columns)}),[r,t]);return d.disableColumnSelector?null:(0,c.jsxs)(o.A,{onClick:p,children:[(0,c.jsx)(l.A,{children:(0,c.jsx)(d.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),(0,c.jsx)(i.A,{children:r.current.getLocaleText("columnMenuManageColumns")})]})}},23942:(e,t,r)=>{r.d(t,{H:()=>p});var n=r(7552),o=r(29629),l=r(66765),i=r(81453),a=r(12274),s=r(43026),u=r(76404),c=r(64565),d=r(69500);function p(e){const{colDef:t,onClick:r}=e,p=(0,u.h)(),f=(0,a.N)(p,s.XU),g=(0,c.A)(),h=n.useMemo((()=>{if(!t)return null;const e=f.find((e=>e.field===t.field));return e?.sort}),[t,f]),m=t.sortingOrder??g.sortingOrder,b=n.useCallback((e=>{r(e);const n=e.currentTarget.getAttribute("data-value")||null;p.current.sortColumn(t.field,n===h?null:n)}),[p,t,r,h]);if(g.disableColumnSorting||!t||!t.sortable||!m.some((e=>!!e)))return null;const w=e=>{const r=p.current.getLocaleText(e);return"function"==typeof r?r(t):r};return(0,d.jsxs)(n.Fragment,{children:[m.includes("asc")&&"asc"!==h?(0,d.jsxs)(o.A,{onClick:b,"data-value":"asc",children:[(0,d.jsx)(l.A,{children:(0,d.jsx)(g.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),(0,d.jsx)(i.A,{children:w("columnMenuSortAsc")})]}):null,m.includes("desc")&&"desc"!==h?(0,d.jsxs)(o.A,{onClick:b,"data-value":"desc",children:[(0,d.jsx)(l.A,{children:(0,d.jsx)(g.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),(0,d.jsx)(i.A,{children:w("columnMenuSortDesc")})]}):null,m.includes(null)&&null!=h?(0,d.jsxs)(o.A,{onClick:b,children:[(0,d.jsx)(l.A,{}),(0,d.jsx)(i.A,{children:p.current.getLocaleText("columnMenuUnsort")})]}):null]})}},16028:(e,t,r)=>{r.d(t,{G:()=>s});var n=r(6614),o=(r(7552),r(98118)),l=r(36014),i=r(64565),a=r(69500);function s(e){const t=(0,i.A)();return(0,a.jsx)(o.G,(0,n.A)({},e,{children:(0,a.jsx)(l.D,(0,n.A)({},t.slotProps?.columnsManagement))}))}},63869:(e,t,r)=>{r.d(t,{F:()=>v,x:()=>b});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(51148),s=r(55549),u=r(54767),c=r(943),d=r(34383),p=r(76404),f=r(67129),g=r(64565),h=r(69500);const m=["children","className","classes"],b=(0,s.A)("MuiDataGrid",["panel","paper"]),w=(0,a.Ay)(d.A,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})((({theme:e})=>({zIndex:e.zIndex.modal}))),C=(0,a.Ay)(c.A,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}))),v=l.forwardRef(((e,t)=>{const{children:r,className:a}=e,s=(0,o.A)(e,m),c=(0,p.h)(),d=(0,g.A)(),v=b,[x,y]=l.useState(!1),A=l.useCallback((()=>{c.current.hidePreferences()}),[c]),R=l.useCallback((e=>{(0,f.nx)(e.key)&&c.current.hidePreferences()}),[c]),S=l.useMemo((()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{y(!0)},effect:()=>()=>{y(!1)}}]),[]),[I,M]=l.useState(null);return l.useEffect((()=>{const e=c.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');e&&M(e)}),[c]),I?(0,h.jsx)(w,(0,n.A)({ref:t,placement:"bottom-start",className:(0,i.A)(a,v.panel),ownerState:d,anchorEl:I,modifiers:S},s,{children:(0,h.jsx)(u.x,{mouseEvent:"onMouseUp",onClickAway:A,children:(0,h.jsx)(C,{className:v.paper,ownerState:d,elevation:8,onKeyDown:R,children:x&&r})})})):null}))},53936:(e,t,r)=>{r.d(t,{o:()=>g});var n=r(6614),o=r(83673),l=(r(7552),r(93878)),i=r(49267),a=r(60827),s=r(76959),u=r(64565),c=r(69500);const d=["className"],p=e=>{const{classes:t}=e;return(0,a.A)({root:["panelContent"]},s.B,t)},f=(0,i.A)("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function g(e){const{className:t}=e,r=(0,o.A)(e,d),i=(0,u.A)(),a=p(i);return(0,c.jsx)(f,(0,n.A)({className:(0,l.A)(t,a.root),ownerState:i},r))}},95126:(e,t,r)=>{r.d(t,{g:()=>g});var n=r(6614),o=r(83673),l=(r(7552),r(93878)),i=r(49267),a=r(60827),s=r(76959),u=r(64565),c=r(69500);const d=["className"],p=e=>{const{classes:t}=e;return(0,a.A)({root:["panelFooter"]},s.B,t)},f=(0,i.A)("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})((({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"})));function g(e){const{className:t}=e,r=(0,o.A)(e,d),i=(0,u.A)(),a=p(i);return(0,c.jsx)(f,(0,n.A)({className:(0,l.A)(t,a.root),ownerState:i},r))}},98118:(e,t,r)=>{r.d(t,{G:()=>m});var n=r(6614),o=r(83673),l=r(7552),i=r(93878),a=r(18131),s=r(51148),u=r(60827),c=r(76959),d=r(64565),p=r(69500);const f=["className","slotProps"],g=(0,s.Ay)("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),h=()=>!0,m=l.forwardRef((function(e,t){const{className:r,slotProps:l={}}=e,s=(0,o.A)(e,f),m=(0,d.A)(),b=(e=>{const{classes:t}=e;return(0,u.A)({root:["panelWrapper"]},c.B,t)})(m);return(0,p.jsx)(a.s,(0,n.A)({open:!0,disableEnforceFocus:!0,isEnabled:h},l.TrapFocus,{children:(0,p.jsx)(g,(0,n.A)({ref:t,tabIndex:-1,className:(0,i.A)(r,b.root),ownerState:m},s))}))}))},55766:(e,t,r)=>{r.d(t,{R:()=>E});var n=r(6614),o=r(83673),l=r(7552),i=r(60827),a=r(61941),s=r(81119),u=r(51148),c=r(93878),d=r(80163),p=r(2220),f=r(12274),g=r(93527),h=r(76404),m=r(64565),b=r(76959),w=r(12003),C=r(69500);const v=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],x=["InputComponentProps"],y=(0,u.Ay)("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})((({theme:e})=>({display:"flex",padding:e.spacing(1)}))),A=(0,u.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})((({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)}))),R=(0,u.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),S=(0,u.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),I=(0,u.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),M=(0,u.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),k=e=>e.headerName||e.field,P=new Intl.Collator,E=l.forwardRef((function(e,t){const{item:r,hasMultipleFilters:u,deleteFilter:E,applyFilterChanges:F,showMultiFilterOperators:H,disableMultiFilterOperator:T,applyMultiFilterOperatorChanges:O,focusElementRef:D,logicOperators:z=[g.V.And,g.V.Or],columnsSort:L,filterColumns:j,deleteIconProps:N={},logicOperatorInputProps:$={},operatorInputProps:V={},columnInputProps:G={},valueInputProps:B={},readOnly:U}=e,W=(0,o.A)(e,v),_=(0,h.h)(),K=(0,f.N)(_,d.gv),q=(0,f.N)(_,d.Oe),X=(0,f.N)(_,p.ZI),Y=(0,a.A)(),Z=(0,a.A)(),Q=(0,a.A)(),J=(0,a.A)(),ee=(0,m.A)(),te=(e=>{const{classes:t}=e;return(0,i.A)({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},b.B,t)})(ee),re=l.useRef(null),ne=l.useRef(null),oe=X.logicOperator??g.V.And,le=u&&z.length>0,ie=ee.slotProps?.baseFormControl||{},ae=(ee.slotProps?.baseSelect||{}).native??!1,se=ee.slotProps?.baseInputLabel||{},ue=ee.slotProps?.baseSelectOption||{},{InputComponentProps:ce}=B,de=(0,o.A)(B,x),{filteredColumns:pe,selectedField:fe}=l.useMemo((()=>{let e=r.field;const t=!1===K[r.field].filterable?K[r.field]:null;if(t)return{filteredColumns:[t],selectedField:e};if(void 0===j||"function"!=typeof j)return{filteredColumns:q,selectedField:e};const n=j({field:r.field,columns:q,currentFilters:X?.items||[]});return{filteredColumns:q.filter((t=>{const o=n.includes(t.field);return t.field!==r.field||o||(e=void 0),o})),selectedField:e}}),[j,X?.items,q,r.field,K]),ge=l.useMemo((()=>{switch(L){case"asc":return pe.sort(((e,t)=>P.compare(k(e),k(t))));case"desc":return pe.sort(((e,t)=>-P.compare(k(e),k(t))));default:return pe}}),[pe,L]),he=r.field?_.current.getColumn(r.field):null,me=l.useMemo((()=>r.operator&&he?he.filterOperators?.find((e=>e.value===r.operator)):null),[r,he]),be=l.useCallback((e=>{const t=e.target.value,o=_.current.getColumn(t);if(o.field===he.field)return;const l=o.filterOperators.find((e=>e.value===r.operator))||o.filterOperators[0];let i=l.InputComponent&&l.InputComponent===me?.InputComponent&&o.type===he.type?r.value:void 0;if("singleSelect"===o.type&&void 0!==i){const e=o,t=(0,w.KJ)(e);Array.isArray(i)?i=i.filter((r=>void 0!==(0,w.Rc)(r,t,e?.getOptionValue))):void 0===(0,w.Rc)(r.value,t,e?.getOptionValue)&&(i=void 0)}F((0,n.A)({},r,{field:t,operator:l.value,value:i}))}),[_,F,r,he,me]),we=l.useCallback((e=>{const t=e.target.value,o=he?.filterOperators.find((e=>e.value===t)),l=!o?.InputComponent||o?.InputComponent!==me?.InputComponent;F((0,n.A)({},r,{operator:t,value:l?void 0:r.value}))}),[F,r,he,me]),Ce=l.useCallback((e=>{const t=e.target.value===g.V.And.toString()?g.V.And:g.V.Or;O(t)}),[O]);return l.useImperativeHandle(D,(()=>({focus:()=>{me?.InputComponent?re?.current?.focus():ne.current.focus()}})),[me]),(0,C.jsxs)(y,(0,n.A)({ref:t,className:te.root,"data-id":r.id,ownerState:ee},W,{children:[(0,C.jsx)(A,(0,n.A)({variant:"standard",as:ee.slots.baseFormControl},ie,N,{className:(0,c.A)(te.deleteIcon,ie.className,N.className),ownerState:ee,children:(0,C.jsx)(ee.slots.baseIconButton,(0,n.A)({"aria-label":_.current.getLocaleText("filterPanelDeleteIconLabel"),title:_.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{ee.disableMultipleColumnsFiltering?void 0===r.value?E(r):F((0,n.A)({},r,{value:void 0})):E(r)},size:"small",disabled:U},ee.slotProps?.baseIconButton,{children:(0,C.jsx)(ee.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),(0,C.jsx)(R,(0,n.A)({variant:"standard",as:ee.slots.baseFormControl},ie,$,{sx:(0,n.A)({display:le?"flex":"none",visibility:H?"visible":"hidden"},ie.sx||{},$.sx||{}),className:(0,c.A)(te.logicOperatorInput,ie.className,$.className),ownerState:ee,children:(0,C.jsx)(ee.slots.baseSelect,(0,n.A)({inputProps:{"aria-label":_.current.getLocaleText("filterPanelLogicOperator")},value:oe??"",onChange:Ce,disabled:!!T||1===z.length,native:ae},ee.slotProps?.baseSelect,{children:z.map((e=>(0,l.createElement)(ee.slots.baseSelectOption,(0,n.A)({},ue,{native:ae,key:e.toString(),value:e.toString()}),_.current.getLocaleText((e=>{switch(e){case g.V.And:return"filterPanelOperatorAnd";case g.V.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}})(e)))))}))})),(0,C.jsxs)(S,(0,n.A)({variant:"standard",as:ee.slots.baseFormControl},ie,G,{className:(0,c.A)(te.columnInput,ie.className,G.className),ownerState:ee,children:[(0,C.jsx)(ee.slots.baseInputLabel,(0,n.A)({},se,{htmlFor:Y,id:Z,children:_.current.getLocaleText("filterPanelColumns")})),(0,C.jsx)(ee.slots.baseSelect,(0,n.A)({labelId:Z,id:Y,label:_.current.getLocaleText("filterPanelColumns"),value:fe??"",onChange:be,native:ae,disabled:U},ee.slotProps?.baseSelect,{children:ge.map((e=>(0,l.createElement)(ee.slots.baseSelectOption,(0,n.A)({},ue,{native:ae,key:e.field,value:e.field}),k(e))))}))]})),(0,C.jsxs)(I,(0,n.A)({variant:"standard",as:ee.slots.baseFormControl},ie,V,{className:(0,c.A)(te.operatorInput,ie.className,V.className),ownerState:ee,children:[(0,C.jsx)(ee.slots.baseInputLabel,(0,n.A)({},se,{htmlFor:Q,id:J,children:_.current.getLocaleText("filterPanelOperator")})),(0,C.jsx)(ee.slots.baseSelect,(0,n.A)({labelId:J,label:_.current.getLocaleText("filterPanelOperator"),id:Q,value:r.operator,onChange:we,native:ae,inputRef:ne,disabled:U},ee.slotProps?.baseSelect,{children:he?.filterOperators?.map((e=>(0,l.createElement)(ee.slots.baseSelectOption,(0,n.A)({},ue,{native:ae,key:e.value,value:e.value}),e.label||_.current.getLocaleText(`filterOperator${(0,s.A)(e.value)}`))))}))]})),(0,C.jsx)(M,(0,n.A)({variant:"standard",as:ee.slots.baseFormControl},ie,de,{className:(0,c.A)(te.valueInput,ie.className,de.className),ownerState:ee,children:me?.InputComponent?(0,C.jsx)(me.InputComponent,(0,n.A)({apiRef:_,item:r,applyValue:F,focusElementRef:re,disabled:U},me.InputComponentProps,ce),r.field):null}))]}))}))},19868:(e,t,r)=>{r.d(t,{h:()=>p});var n=r(6614),o=r(83673),l=r(7552),i=r(61941),a=r(51148),s=r(64565),u=r(69500);const c=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],d=(0,a.Ay)("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function p(e){const{item:t,applyValue:r,apiRef:a,focusElementRef:p,clearButton:f,tabIndex:g,label:h,variant:m="standard"}=e,b=(0,o.A)(e,c),[w,C]=l.useState(t.value||""),v=(0,s.A)(),x=(0,i.A)(),y=(0,i.A)(),A=v.slotProps?.baseSelect||{},R=A.native??!1,S=v.slotProps?.baseSelectOption||{},I=l.useCallback((e=>{const o=e.target.value;C(o),r((0,n.A)({},t,{value:o}))}),[r,t]);l.useEffect((()=>{C(t.value||"")}),[t.value]);const M=h??a.current.getLocaleText("filterPanelInputLabel");return(0,u.jsxs)(d,{children:[(0,u.jsxs)(v.slots.baseFormControl,{fullWidth:!0,children:[(0,u.jsx)(v.slots.baseInputLabel,(0,n.A)({},v.slotProps?.baseInputLabel,{id:x,shrink:!0,variant:m,children:M})),(0,u.jsxs)(v.slots.baseSelect,(0,n.A)({labelId:x,id:y,label:M,value:w,onChange:I,variant:m,notched:"outlined"===m||void 0,native:R,displayEmpty:!0,inputProps:{ref:p,tabIndex:g}},b,A,{children:[(0,u.jsx)(v.slots.baseSelectOption,(0,n.A)({},S,{native:R,value:"",children:a.current.getLocaleText("filterValueAny")})),(0,u.jsx)(v.slots.baseSelectOption,(0,n.A)({},S,{native:R,value:"true",children:a.current.getLocaleText("filterValueTrue")})),(0,u.jsx)(v.slots.baseSelectOption,(0,n.A)({},S,{native:R,value:"false",children:a.current.getLocaleText("filterValueFalse")}))]}))]}),f]})}},22762:(e,t,r)=>{r.d(t,{L:()=>p});var n=r(6614),o=r(83673),l=r(7552),i=r(61941),a=r(74727),s=r(64565),u=r(69500);const c=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function d(e,t){if(null==e)return"";const r=new Date(e);return Number.isNaN(r.getTime())?"":(r.setMinutes(r.getMinutes()-r.getTimezoneOffset()),"date"===t?r.toISOString().substring(0,10):"datetime-local"===t?r.toISOString().substring(0,19):r.toISOString().substring(0,10))}function p(e){const{item:t,applyValue:r,type:p,apiRef:f,focusElementRef:g,InputProps:h,clearButton:m,tabIndex:b,disabled:w}=e,C=(0,o.A)(e,c),v=(0,a.A)(),[x,y]=l.useState((()=>d(t.value,p))),[A,R]=l.useState(!1),S=(0,i.A)(),I=(0,s.A)(),M=l.useCallback((e=>{v.clear();const o=e.target.value;y(o),R(!0),v.start(I.filterDebounceMs,(()=>{const e=new Date(o);r((0,n.A)({},t,{value:Number.isNaN(e.getTime())?void 0:e})),R(!1)}))}),[r,t,I.filterDebounceMs,v]);return l.useEffect((()=>{const e=d(t.value,p);y(e)}),[t.value,p]),(0,u.jsx)(I.slots.baseTextField,(0,n.A)({fullWidth:!0,id:S,label:f.current.getLocaleText("filterPanelInputLabel"),placeholder:f.current.getLocaleText("filterPanelInputPlaceholder"),value:x,onChange:M,variant:"standard",type:p||"text",InputLabelProps:{shrink:!0},inputRef:g,InputProps:(0,n.A)({},A||m?{endAdornment:A?(0,u.jsx)(I.slots.loadIcon,{fontSize:"small",color:"action"}):m}:{},{disabled:w},h,{inputProps:(0,n.A)({max:"datetime-local"===p?"9999-12-31T23:59":"9999-12-31",tabIndex:b},h?.inputProps)})},C,I.slotProps?.baseTextField))}},57134:(e,t,r)=>{r.d(t,{B:()=>g});var n=r(6614),o=r(83673),l=r(7552),i=r(53059),a=r(48901),s=r(61941),u=r(12003),c=r(64565),d=r(69500);const p=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],f=(0,i.Z)();function g(e){const{item:t,applyValue:r,apiRef:i,focusElementRef:g,color:h,error:m,helperText:b,size:w,variant:C="standard"}=e,v=(0,o.A)(e,p),x={color:h,error:m,helperText:b,size:w,variant:C},y=(0,s.A)(),A=(0,c.A)();let R=null;if(t.field){const e=i.current.getColumn(t.field);(0,u._W)(e)&&(R=e)}const S=R?.getOptionValue,I=R?.getOptionLabel,M=l.useCallback(((e,t)=>S(e)===S(t)),[S]),k=l.useMemo((()=>(0,u.KJ)(R)||[]),[R]),P=l.useMemo((()=>Array.isArray(t.value)?t.value.reduce(((e,t)=>{const r=k.find((e=>S(e)===t));return null!=r&&e.push(r),e}),[]):[]),[S,t.value,k]),E=l.useCallback(((e,o)=>{r((0,n.A)({},t,{value:o.map(S)}))}),[r,t,S]);return(0,d.jsx)(a.A,(0,n.A)({multiple:!0,options:k,isOptionEqualToValue:M,filterOptions:f,id:y,value:P,onChange:E,getOptionLabel:I,renderTags:(e,t)=>e.map(((e,r)=>(0,d.jsx)(A.slots.baseChip,(0,n.A)({variant:"outlined",size:"small",label:I(e)},t({index:r}))))),renderInput:e=>(0,d.jsx)(A.slots.baseTextField,(0,n.A)({},e,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,n.A)({},e.InputLabelProps,{shrink:!0}),inputRef:g,type:"singleSelect"},x,A.slotProps?.baseTextField))},v))}},33745:(e,t,r)=>{r.d(t,{M:()=>d});var n=r(6614),o=r(83673),l=r(7552),i=r(48901),a=r(61941),s=r(64565),u=r(69500);const c=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function d(e){const{item:t,applyValue:r,type:d,apiRef:p,focusElementRef:f,color:g,error:h,helperText:m,size:b,variant:w}=e,C=(0,o.A)(e,c),v={color:g,error:h,helperText:m,size:b,variant:w},[x,y]=l.useState(t.value||[]),A=(0,a.A)(),R=(0,s.A)();l.useEffect((()=>{const e=t.value??[];y(e.map(String))}),[t.value]);const S=l.useCallback(((e,o)=>{y(o.map(String)),r((0,n.A)({},t,{value:[...o]}))}),[r,t]);return(0,u.jsx)(i.A,(0,n.A)({multiple:!0,freeSolo:!0,options:[],filterOptions:(e,t)=>{const{inputValue:r}=t;return null==r||""===r?[]:[r]},id:A,value:x,onChange:S,renderTags:(e,t)=>e.map(((e,r)=>(0,u.jsx)(R.slots.baseChip,(0,n.A)({variant:"outlined",size:"small",label:e},t({index:r}))))),renderInput:e=>(0,u.jsx)(R.slots.baseTextField,(0,n.A)({},e,{label:p.current.getLocaleText("filterPanelInputLabel"),placeholder:p.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,n.A)({},e.InputLabelProps,{shrink:!0}),inputRef:f,type:d||"text"},v,R.slotProps?.baseTextField))},C))}},24634:(e,t,r)=>{r.d(t,{t:()=>g});var n=r(83673),o=r(6614),l=r(7552),i=r(61941),a=r(51148),s=r(64565),u=r(12003),c=r(69500);const d=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],p=({column:e,OptionComponent:t,getOptionLabel:r,getOptionValue:n,isSelectNative:i,baseSelectOptionProps:a})=>["",...(0,u.KJ)(e)||[]].map((e=>{const s=n(e);let u=r(e);return""===u&&(u=" "),(0,l.createElement)(t,(0,o.A)({},a,{native:i,key:s,value:s}),u)})),f=(0,a.Ay)("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function g(e){const{item:t,applyValue:r,type:a,apiRef:g,focusElementRef:h,placeholder:m,tabIndex:b,label:w,variant:C="standard",clearButton:v}=e,x=(0,n.A)(e,d),y=t.value??"",A=(0,i.A)(),R=(0,i.A)(),S=(0,s.A)(),I=S.slotProps?.baseSelect?.native??!1;let M=null;if(t.field){const e=g.current.getColumn(t.field);(0,u._W)(e)&&(M=e)}const k=M?.getOptionValue,P=M?.getOptionLabel,E=l.useMemo((()=>(0,u.KJ)(M)),[M]),F=l.useCallback((e=>{let n=e.target.value;n=(0,u.Rc)(n,E,k),r((0,o.A)({},t,{value:n}))}),[E,k,r,t]);if(!(0,u._W)(M))return null;const H=w??g.current.getLocaleText("filterPanelInputLabel");return(0,c.jsxs)(f,{children:[(0,c.jsxs)(S.slots.baseFormControl,{fullWidth:!0,children:[(0,c.jsx)(S.slots.baseInputLabel,(0,o.A)({},S.slotProps?.baseInputLabel,{id:R,htmlFor:A,shrink:!0,variant:C,children:H})),(0,c.jsx)(S.slots.baseSelect,(0,o.A)({id:A,label:H,labelId:R,value:y,onChange:F,variant:C,type:a||"text",inputProps:{tabIndex:b,ref:h,placeholder:m??g.current.getLocaleText("filterPanelInputPlaceholder")},native:I,notched:"outlined"===C||void 0},x,S.slotProps?.baseSelect,{children:p({column:M,OptionComponent:S.slots.baseSelectOption,getOptionLabel:P,getOptionValue:k,isSelectNative:I,baseSelectOptionProps:S.slotProps?.baseSelectOption})}))]}),v]})}},31525:(e,t,r)=>{r.d(t,{y:()=>d});var n=r(6614),o=r(83673),l=r(7552),i=r(61941),a=r(74727),s=r(64565),u=r(69500);const c=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function d(e){const{item:t,applyValue:r,type:d,apiRef:p,focusElementRef:f,tabIndex:g,disabled:h,clearButton:m,InputProps:b,variant:w="standard"}=e,C=(0,o.A)(e,c),v=(0,a.A)(),[x,y]=l.useState(t.value??""),[A,R]=l.useState(!1),S=(0,i.A)(),I=(0,s.A)(),M=l.useCallback((e=>{const{value:o}=e.target;y(String(o)),R(!0),v.start(I.filterDebounceMs,(()=>{const e=(0,n.A)({},t,{value:o,fromInput:S});r(e),R(!1)}))}),[S,r,t,I.filterDebounceMs,v]);return l.useEffect((()=>{t.fromInput===S&&void 0!==t.value||y(String(t.value??""))}),[S,t]),(0,u.jsx)(I.slots.baseTextField,(0,n.A)({id:S,label:p.current.getLocaleText("filterPanelInputLabel"),placeholder:p.current.getLocaleText("filterPanelInputPlaceholder"),value:x,onChange:M,variant:w,type:d||"text",InputProps:(0,n.A)({},A||m?{endAdornment:A?(0,u.jsx)(I.slots.loadIcon,{fontSize:"small",color:"action"}):m}:{},{disabled:h},b,{inputProps:(0,n.A)({tabIndex:g},b?.inputProps)}),InputLabelProps:{shrink:!0},inputRef:f},C,I.slotProps?.baseTextField))}},51820:(e,t,r)=>{r.d(t,{v:()=>C});var n=r(6614),o=r(83673),l=r(7552),i=r(93527),a=r(76404),s=r(53936),u=r(95126),c=r(98118),d=r(55766),p=r(64565),f=r(12274),g=r(2220),h=r(80163),m=r(69500);const b=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],w=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}),C=l.forwardRef((function(e,t){const r=(0,a.h)(),C=(0,p.A)(),v=(0,f.N)(r,g.ZI),x=(0,f.N)(r,h.Oe),y=(0,f.N)(r,h.U8),A=l.useRef(null),R=l.useRef(null),{logicOperators:S=[i.V.And,i.V.Or],columnsSort:I,filterFormProps:M,getColumnForNewFilter:k,disableAddFilterButton:P=!1,disableRemoveAllButton:E=!1}=e,F=(0,o.A)(e,b),H=r.current.upsertFilterItem,T=l.useCallback((e=>{r.current.setFilterLogicOperator(e)}),[r]),O=l.useCallback((()=>{let e;if(k&&"function"==typeof k){const t=k({currentFilters:v?.items||[],columns:x});if(null===t)return null;e=x.find((({field:e})=>e===t))}else e=x.find((e=>e.filterOperators?.length));return e?w(e):null}),[v?.items,x,k]),D=l.useCallback((()=>{if(void 0===k||"function"!=typeof k)return O();const e=v.items.length?v.items:[O()].filter(Boolean),t=k({currentFilters:e,columns:x});if(null===t)return null;const r=x.find((({field:e})=>e===t));return r?w(r):null}),[v.items,x,k,O]),z=l.useMemo((()=>v.items.length?v.items:(R.current||(R.current=O()),R.current?[R.current]:[])),[v.items,O]),L=z.length>1,{readOnlyFilters:j,validFilters:N}=l.useMemo((()=>z.reduce(((e,t)=>(y[t.field]?e.validFilters.push(t):e.readOnlyFilters.push(t),e)),{readOnlyFilters:[],validFilters:[]})),[z,y]),$=l.useCallback((()=>{const e=D();e&&r.current.upsertFilterItems([...z,e])}),[r,D,z]),V=l.useCallback((e=>{const t=1===N.length;r.current.deleteFilterItem(e),t&&r.current.hideFilterPanel()}),[r,N.length]),G=l.useCallback((()=>1===N.length&&void 0===N[0].value?(r.current.deleteFilterItem(N[0]),r.current.hideFilterPanel()):r.current.setFilterModel((0,n.A)({},v,{items:j}),"removeAllFilterItems")),[r,j,v,N]);return l.useEffect((()=>{S.length>0&&v.logicOperator&&!S.includes(v.logicOperator)&&T(S[0])}),[S,T,v.logicOperator]),l.useEffect((()=>{N.length>0&&A.current.focus()}),[N.length]),(0,m.jsxs)(c.G,(0,n.A)({ref:t},F,{children:[(0,m.jsxs)(s.o,{children:[j.map(((e,t)=>(0,m.jsx)(d.R,(0,n.A)({item:e,applyFilterChanges:H,deleteFilter:V,hasMultipleFilters:L,showMultiFilterOperators:t>0,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:T,focusElementRef:null,readOnly:!0,logicOperators:S,columnsSort:I},M),null==e.id?t:e.id))),N.map(((e,t)=>(0,m.jsx)(d.R,(0,n.A)({item:e,applyFilterChanges:H,deleteFilter:V,hasMultipleFilters:L,showMultiFilterOperators:j.length+t>0,disableMultiFilterOperator:j.length+t!==1,applyMultiFilterOperatorChanges:T,focusElementRef:t===N.length-1?A:null,logicOperators:S,columnsSort:I},M),null==e.id?t+j.length:e.id)))]}),C.disableMultipleColumnsFiltering||P&&E?null:(0,m.jsxs)(u.g,{children:[P?(0,m.jsx)("span",{}):(0,m.jsx)(C.slots.baseButton,(0,n.A)({onClick:$,startIcon:(0,m.jsx)(C.slots.filterPanelAddIcon,{})},C.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!E&&N.length>0?(0,m.jsx)(C.slots.baseButton,(0,n.A)({onClick:G,startIcon:(0,m.jsx)(C.slots.filterPanelRemoveAllIcon,{})},C.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]})]}))}))},12003:(e,t,r)=>{r.d(t,{KJ:()=>l,Rc:()=>i,_W:()=>o});var n=r(6614);function o(e){return"singleSelect"===e?.type}function l(e,t){if(e)return"function"==typeof e.valueOptions?e.valueOptions((0,n.A)({field:e.field},t)):e.valueOptions}function i(e,t,r){if(void 0===t)return;const n=t.find((t=>{const n=r(t);return String(n)===String(e)}));return r(n)}},38175:(e,t,r)=>{r.d(t,{ME:()=>g,jX:()=>f,qn:()=>h});var n=r(6614),o=r(83673),l=r(7552),i=r(29629),a=r(76404),s=r(75492),u=r(69500);const c=["hideMenu","options"],d=["hideMenu","options"],p=["csvOptions","printOptions","excelOptions"];function f(e){const t=(0,a.h)(),{hideMenu:r,options:l}=e,s=(0,o.A)(e,c);return(0,u.jsx)(i.A,(0,n.A)({onClick:()=>{t.current.exportDataAsCsv(l),r?.()}},s,{children:t.current.getLocaleText("toolbarExportCSV")}))}function g(e){const t=(0,a.h)(),{hideMenu:r,options:l}=e,s=(0,o.A)(e,d);return(0,u.jsx)(i.A,(0,n.A)({onClick:()=>{t.current.exportDataAsPrint(l),r?.()}},s,{children:t.current.getLocaleText("toolbarExportPrint")}))}const h=l.forwardRef((function(e,t){const{csvOptions:r={},printOptions:i={},excelOptions:c}=e,d=(0,o.A)(e,p),f=(0,a.h)().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:c,csvOptions:r,printOptions:i}).sort(((e,t)=>e.componentName>t.componentName?1:-1));return 0===f.length?null:(0,u.jsx)(s.Z,(0,n.A)({},d,{ref:t,children:f.map(((e,t)=>l.cloneElement(e.component,{key:t})))}))}))},75492:(e,t,r)=>{r.d(t,{Z:()=>g});var n=r(6614),o=r(7552),l=r(61941),i=r(24979),a=r(6679),s=r(67129),u=r(76404),c=r(83749),d=r(64565),p=r(76959),f=r(69500);const g=o.forwardRef((function(e,t){const{children:r,slotProps:g={}}=e,h=g.button||{},m=g.tooltip||{},b=(0,u.h)(),w=(0,d.A)(),C=(0,l.A)(),v=(0,l.A)(),[x,y]=o.useState(!1),A=o.useRef(null),R=(0,i.A)(t,A),S=()=>y(!1);return null==r?null:(0,f.jsxs)(o.Fragment,{children:[(0,f.jsx)(w.slots.baseTooltip,(0,n.A)({title:b.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},m,w.slotProps?.baseTooltip,{children:(0,f.jsx)(w.slots.baseButton,(0,n.A)({ref:R,size:"small",startIcon:(0,f.jsx)(w.slots.exportIcon,{}),"aria-expanded":x,"aria-label":b.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":x?v:void 0,id:C},h,{onClick:e=>{y((e=>!e)),h.onClick?.(e)}},w.slotProps?.baseButton,{children:b.current.getLocaleText("toolbarExport")}))})),(0,f.jsx)(c.U,{open:x,target:A.current,onClose:S,position:"bottom-start",children:(0,f.jsx)(a.A,{id:v,className:p.x.menuList,"aria-labelledby":C,onKeyDown:e=>{(0,s.vY)(e.key)&&e.preventDefault(),(0,s.HF)(e.key)&&S()},autoFocusItem:x,children:o.Children.map(r,(e=>o.isValidElement(e)?o.cloneElement(e,{hideMenu:S}):e))})})]})}))},91195:(e,t,r)=>{r.d(t,{S:()=>de});var n=r(6614),o=r(7552),l=r(49267),i=r(60827),a=r(93878),s=r(74795),u=r(64565),c=r(76959),d=r(76404),p=r(89148),f=r(12274),g=r(29641),h=r(33658),m=r(80163),b=r(74727),w=r(60378),C=r(56691),v=r(69500);const x=(0,l.A)("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${c.x["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${c.x["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})((()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${c.x["scrollArea--left"]}`]:{left:0},[`&.${c.x["scrollArea--right"]}`]:{right:0}}))),y=(0,C.n)((function(e){const{scrollDirection:t}=e,r=o.useRef(null),l=(0,d.h)(),C=(0,b.A)(),y=(0,f.N)(l,h.rf),A=(0,f.N)(l,m.fc),R=(0,f.N)(l,g.z),S=o.useRef({left:0,top:0}),I=()=>{if("left"===t)return S.current.left>0;if("right"===t){const e=A-R.viewportInnerSize.width;return S.current.left<e}return!1},[M,k]=o.useState(!1),[P,E]=o.useState(I),F=(0,u.A)(),H=(0,n.A)({},F,{scrollDirection:t}),T=(e=>{const{scrollDirection:t,classes:r}=e,n={root:["scrollArea",`scrollArea--${t}`]};return(0,i.A)(n,c.B,r)})(H),O=(0,w.pe)(l,F.columnHeaderHeight),D=Math.floor(F.columnHeaderHeight*y),z={height:D,top:O-D};"left"===t?z.left=R.leftPinnedWidth:"right"===t&&(z.right=R.rightPinnedWidth+(R.hasScrollX?R.scrollbarSize:0));const L=(0,s.A)((e=>{let n;if(e.preventDefault(),"left"===t)n=e.clientX-r.current.getBoundingClientRect().right;else{if("right"!==t)throw new Error("MUI X: Wrong drag direction");n=Math.max(1,e.clientX-r.current.getBoundingClientRect().left)}n=1.5*(n-1)+1,C.start(0,(()=>{l.current.scroll({left:S.current.left+n,top:S.current.top})}))})),j=(0,s.A)((()=>{k(!0)})),N=(0,s.A)((()=>{k(!1)}));return(0,p.cz)(l,"scrollPositionChange",(e=>{S.current=e,E(I)})),(0,p.cz)(l,"columnHeaderDragStart",j),(0,p.cz)(l,"columnHeaderDragEnd",N),M&&P?(0,v.jsx)(x,{ref:r,className:(0,a.A)(T.root),ownerState:H,onDragOver:L,style:z}):null}));var A=r(85854),R=r(80677),S=r(71115),I=r(2220),M=r(43026),k=r(3247),P=r(8751),E=r(83182);const F=(0,C.n)((function(){const e=(0,S.E)(),t=(0,u.A)(),r=(0,f.N)(e,m.iv),n=(0,f.N)(e,I.od),l=(0,f.N)(e,M.oF),i=(0,f.N)(e,k.Kr),a=(0,f.N)(e,k.H5),s=(0,f.N)(e,k.dS),c=(0,f.N)(e,k.rj),d=(0,f.N)(e,k.WO),p=(0,f.N)(e,P.aC),g=(0,f.N)(e,E.$),h=(0,f.N)(e,m.FY),b=(0,f.N)(e,P.GD),w=!(null===s&&null===i&&null===a),C=o.useRef(null);return e.current.register("private",{columnHeadersContainerRef:C}),(0,v.jsx)(t.slots.columnHeaders,{ref:C,visibleColumns:r,filterColumnLookup:n,sortColumnLookup:l,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:s,columnHeaderFocus:c,columnGroupHeaderFocus:d,headerGroupingMaxDepth:p,columnMenuState:g,columnVisibility:h,columnGroupsHeaderStructure:b,hasOtherElementInTabSequence:w})}));var H=r(4394),T=r(41222);const O=(0,l.A)("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})({flexGrow:1,position:"relative",overflow:"hidden"}),D=o.forwardRef(((e,t)=>{const r=(()=>{const e=(0,S.E)(),t=(0,u.A)(),r=(0,f.N)(e,m.iv),n=(0,f.N)(e,H.H0),o=(0,f.N)(e,P.aC),l=(0,f.N)(e,H.OQ);let i="grid";return t.treeData&&(i="treegrid"),{role:i,"aria-colcount":r.length,"aria-rowcount":o+1+l+n,"aria-multiselectable":(0,T.c)(t)}})(),o=(0,u.A)();return(0,v.jsx)(O,(0,n.A)({ref:t,ownerState:o,className:e.className,tabIndex:-1},r,{children:e.children}))})),z=()=>(0,i.A)({root:["topContainer"]},c.B,{}),L=(0,l.A)("div")({position:"sticky",zIndex:4,top:0,"&::after":{content:'" "',position:"absolute",zIndex:5,bottom:0,left:0,right:0,height:1,width:"var(--DataGrid-rowWidth)",backgroundColor:"var(--DataGrid-rowBorderColor)"}});function j(e){const t=z();return(0,v.jsx)(L,(0,n.A)({},e,{className:(0,a.A)(t.root,e.className,c.x["container--top"]),role:"presentation"}))}const N=()=>(0,i.A)({root:["bottomContainer"]},c.B,{}),$=(0,l.A)("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function V(e){const t=N();return(0,v.jsx)($,(0,n.A)({},e,{className:(0,a.A)(t.root,e.className,c.x["container--bottom"]),role:"presentation"}))}const G=(0,l.A)("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),B=o.forwardRef((function(e,t){const r=(0,u.A)(),o=((e,t)=>{const{classes:r}=e,n={root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]};return(0,i.A)(n,c.B,r)})(r,!r.autoHeight&&"auto"===e.style?.minHeight);return(0,v.jsx)(G,(0,n.A)({ref:t},e,{ownerState:r,className:(0,a.A)(o.root,e.className)}))})),U=(0,l.A)("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),W=(0,l.A)("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--DataGrid-rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),_=(0,l.A)(W)({left:0,borderRight:"1px solid var(--DataGrid-rowBorderColor)"}),K=(0,l.A)(W)({right:0,borderLeft:"1px solid var(--DataGrid-rowBorderColor)"}),q=(0,l.A)("div")({flexGrow:1,borderTop:"1px solid var(--DataGrid-rowBorderColor)"}),X=(0,C.n)((function(){const e=(0,d.h)(),{viewportOuterSize:t,minimumSize:r,hasScrollX:n,hasScrollY:o,scrollbarSize:l,leftPinnedWidth:i,rightPinnedWidth:a}=(0,f.N)(e,g.z),s=n?l:0,u=t.height-r.height-s,p=Math.max(s,u);return 0===p?null:(0,v.jsxs)(U,{className:c.x.filler,role:"presentation",style:{height:p},children:[i>0&&(0,v.jsx)(_,{className:c.x["filler--pinnedLeft"],style:{width:i}}),(0,v.jsx)(q,{}),a>0&&(0,v.jsx)(K,{className:c.x["filler--pinnedRight"],style:{width:a+(o?l:0)}})]})}));var Y=r(83673),Z=r(69639),Q=r(35281);const J=["className"],ee=(0,l.A)("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),te=o.forwardRef((function(e,t){const{className:r}=e,o=(0,Y.A)(e,J),l=(0,d.h)(),s=(0,u.A)(),p=(e=>{const{classes:t}=e;return(0,i.A)({root:["virtualScrollerRenderZone"]},c.B,t)})(s),g=(0,f.N)(l,(()=>{const e=(0,Q.nZ)(l);return(0,Z.E)(l.current.state).positions[e.firstRowIndex]??0}));return(0,v.jsx)(ee,(0,n.A)({ref:t,className:(0,a.A)(p.root,r),ownerState:s,style:{transform:`translate3d(0, ${g}px, 0)`}},o))}));var re=r(24979),ne=r(38813);const oe=(0,l.A)("div")({position:"absolute",display:"inline-block",zIndex:6,"& > div":{display:"inline-block"},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),le=(0,l.A)(oe)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),ie=(0,l.A)(oe)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),ae=(0,l.A)("div")({display:"inline-block"}),se=o.forwardRef((function(e,t){const r=(0,S.E)(),n=(0,u.A)(),l=o.useRef(!1),a=o.useRef(0),d=o.useRef(null),p=o.useRef(null),h=((e,t)=>{const{classes:r}=e,n={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return(0,i.A)(n,c.B,r)})(n,e.position),m=(0,f.N)(r,g.z),b="vertical"===e.position?"height":"width",w="vertical"===e.position?"scrollTop":"scrollLeft",C="vertical"===e.position?m.hasScrollX:m.hasScrollY,x=m.minimumSize[b]+(C?m.scrollbarSize:0),y=("vertical"===e.position?m.viewportInnerSize.height:m.viewportOuterSize.width)*(x/m.viewportOuterSize[b]),A=(0,s.A)((()=>{const e=r.current.virtualScrollerRef.current,t=d.current;if(e[w]===a.current)return;if(l.current)return void(l.current=!1);l.current=!0;const n=e[w]/x;t[w]=n*y,a.current=e[w]})),R=(0,s.A)((()=>{const e=r.current.virtualScrollerRef.current,t=d.current;if(l.current)return void(l.current=!1);l.current=!0;const n=t[w]/y;e[w]=n*x}));(0,ne.A)((()=>{const e=r.current.virtualScrollerRef.current,t=d.current;return e.addEventListener("scroll",A,{capture:!0}),t.addEventListener("scroll",R,{capture:!0}),()=>{e.removeEventListener("scroll",A,{capture:!0}),t.removeEventListener("scroll",R,{capture:!0})}})),o.useEffect((()=>{p.current.style.setProperty(b,`${y}px`)}),[y,b]);const I="vertical"===e.position?le:ie;return(0,v.jsx)(I,{ref:(0,re.A)(t,d),className:h.root,tabIndex:-1,children:(0,v.jsx)(ae,{ref:p,className:h.content})})})),ue=(e,t)=>{const{classes:r}=e,n={root:["main",t.rightPinnedWidth>0&&"main--hasPinnedRight"],scroller:["virtualScroller"]};return(0,i.A)(n,c.B,r)},ce=(0,l.A)("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({position:"relative",height:"100%",overflow:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0});function de(e){const t=(0,d.h)(),r=(0,u.A)(),o=(0,f.N)(t,g.z),l=ue(r,o),i=(0,A.j$)(),{getContainerProps:a,getScrollerProps:s,getContentProps:c,getRenderZoneProps:p,getScrollbarVerticalProps:h,getScrollbarHorizontalProps:m,getRows:b}=i,w=b();return(0,v.jsxs)(D,(0,n.A)({className:l.root},a(),{children:[(0,v.jsx)(y,{scrollDirection:"left"}),(0,v.jsx)(y,{scrollDirection:"right"}),(0,v.jsxs)(ce,(0,n.A)({className:l.scroller},s(),{ownerState:r,children:[(0,v.jsxs)(j,{children:[(0,v.jsx)(F,{}),(0,v.jsx)(r.slots.pinnedRows,{position:"top",virtualScroller:i})]}),(0,v.jsx)(R.I,{}),(0,v.jsx)(B,(0,n.A)({},c(),{children:(0,v.jsxs)(te,(0,n.A)({},p(),{children:[w,(0,v.jsx)(r.slots.detailPanels,{virtualScroller:i})]}))})),w.length>0&&(0,v.jsx)(X,{}),(0,v.jsx)(V,{children:(0,v.jsx)(r.slots.pinnedRows,{position:"bottom",virtualScroller:i})})]})),o.hasScrollY&&(0,v.jsx)(se,(0,n.A)({position:"vertical"},h())),o.hasScrollX&&(0,v.jsx)(se,(0,n.A)({position:"horizontal"},m())),e.children]}))}},76959:(e,t,r)=>{r.d(t,{B:()=>o,x:()=>l});var n=r(9577);function o(e){return(0,n.Ay)("MuiDataGrid",e)}const l=(0,r(55549).A)("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","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","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderTop","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--pinnedRight","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"])},59340:(e,t,r)=>{r.d(t,{U:()=>n});const n="__detail_panel_toggle__"},52101:(e,t,r)=>{r.d(t,{_:()=>n});const n={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",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=>1!==e?`${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",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",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",filterOperatorEquals:"equals",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",headerFilterOperatorEquals:"Equals",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",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${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",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"}},61311:(e,t,r)=>{r.d(t,{X:()=>s});var n=r(7552),o=r(92019),l=r(71115),i=r(65568),a=r(69500);function s({privateApiRef:e,props:t,children:r}){const s=n.useRef(e.current.getPublicApi());return(0,a.jsx)(i.y.Provider,{value:t,children:(0,a.jsx)(l.z.Provider,{value:e,children:(0,a.jsx)(o.k.Provider,{value:s,children:r})})})}},8751:(e,t,r)=>{r.d(t,{ED:()=>i,GD:()=>a,TQ:()=>l,aC:()=>s,tf:()=>o});var n=r(90810);const o=e=>e.columnGrouping,l=(0,n.S)(o,(e=>e?.unwrappedGroupingModel??{})),i=(0,n.S)(o,(e=>e?.lookup??{})),a=(0,n.S)(o,(e=>e?.headerStructure??[])),s=(0,n.M)(o,(e=>e?.maxDepth??0))},83182:(e,t,r)=>{r.d(t,{$:()=>n});const n=e=>e.columnMenu},32125:(e,t,r)=>{r.d(t,{N:()=>n});const n={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1}},36155:(e,t,r)=>{r.d(t,{K:()=>n,u:()=>o});let n=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const o={left:[],right:[]}},80163:(e,t,r)=>{r.d(t,{OV:()=>s,JR:()=>i,gv:()=>a,Sw:()=>g,FY:()=>u,em:()=>l,fc:()=>h,Oe:()=>m,U8:()=>b,kw:()=>w,He:()=>p,iv:()=>c,TI:()=>d,Q1:()=>f});var n=r(90810),o=r(36155);const l=e=>e.columns,i=(0,n.M)(l,(e=>e.orderedFields)),a=(0,n.M)(l,(e=>e.lookup)),s=(0,n.S)(i,a,((e,t)=>e.map((e=>t[e])))),u=(0,n.M)(l,(e=>e.columnVisibilityModel)),c=(0,n.S)(s,u,((e,t)=>e.filter((e=>!1!==t[e.field])))),d=(0,n.S)(c,(e=>e.map((e=>e.field)))),p=e=>e.pinnedColumns,f=(0,n.S)(l,p,d,(e=>e.theme),((e,t,r,n)=>{const l=function(e,t,r){if(!Array.isArray(e.left)&&!Array.isArray(e.right))return o.u;if(0===e.left?.length&&0===e.right?.length)return o.u;const n=(e,t)=>Array.isArray(e)?e.filter((e=>t.includes(e))):[],l=n(e.left,t),i=t.filter((e=>!l.includes(e))),a=n(e.right,i);return r?{left:a,right:l}:{left:l,right:a}}(t,r,"rtl"===n.direction);return{left:l.left.map((t=>e.lookup[t])),right:l.right.map((t=>e.lookup[t]))}})),g=(0,n.S)(c,(e=>{const t=[];let r=0;for(let n=0;n<e.length;n+=1)t.push(r),r+=e[n].computedWidth;return t})),h=(0,n.M)(c,g,((e,t)=>{const r=e.length;return 0===r?0:t[r-1]+e[r-1].computedWidth})),m=(0,n.S)(s,(e=>e.filter((e=>e.filterable)))),b=(0,n.S)(s,(e=>e.reduce(((e,t)=>(t.filterable&&(e[t.field]=t),e)),{}))),w=(0,n.S)(s,(e=>e.some((e=>void 0!==e.colSpan))))},60378:(e,t,r)=>{r.d(t,{A8:()=>m,LN:()=>f,Pd:()=>h,Pr:()=>d,pe:()=>b});var n=r(6614),o=r(23987),l=r(59747),i=r(80163),a=r(58766),s=r(33658),u=r(10365),c=r(8751);const d=["maxWidth","minWidth","width","flex"],p=(0,o.Z)(),f=(e,t)=>{const r={};let o=0,i=0;const s=[];e.orderedFields.forEach((t=>{const u=(0,n.A)({},e.lookup[t]);if(!1===e.columnVisibilityModel[t])u.computedWidth=0;else{let e;u.flex&&u.flex>0?(o+=u.flex,e=0,s.push(u)):e=(0,a.qE)(u.width||l.C.width,u.minWidth||l.C.minWidth,u.maxWidth||l.C.maxWidth),i+=e,u.computedWidth=e}r[t]=u}));const u=Math.max(t-i,0);if(o>0&&t>0){const e=function({initialFreeSpace:e,totalFlexUnits:t,flexColumns:r}){const n=new Set(r.map((e=>e.field))),o={all:{},frozenFields:[],freeze:e=>{const t=o.all[e];t&&!0!==t.frozen&&(o.all[e].frozen=!0,o.frozenFields.push(e))}};return function l(){if(o.frozenFields.length===n.size)return;const i={min:{},max:{}};let a=e,s=t,u=0;o.frozenFields.forEach((e=>{a-=o.all[e].computedWidth,s-=o.all[e].flex}));for(let e=0;e<r.length;e+=1){const t=r[e];if(o.all[t.field]&&!0===o.all[t.field].frozen)continue;let n=a/s*t.flex;n<t.minWidth?(u+=t.minWidth-n,n=t.minWidth,i.min[t.field]=!0):n>t.maxWidth&&(u+=t.maxWidth-n,n=t.maxWidth,i.max[t.field]=!0),o.all[t.field]={frozen:!1,computedWidth:n,flex:t.flex}}u<0?Object.keys(i.max).forEach((e=>{o.freeze(e)})):u>0?Object.keys(i.min).forEach((e=>{o.freeze(e)})):r.forEach((({field:e})=>{o.freeze(e)})),l()}(),o.all}({initialFreeSpace:u,totalFlexUnits:o,flexColumns:s});Object.keys(e).forEach((t=>{r[t].computedWidth=e[t].computedWidth}))}return(0,n.A)({},e,{lookup:r})};function g(e){let t=p[o.x];return e&&p[e]&&(t=p[e]),t}const h=({apiRef:e,columnsToUpsert:t,initialState:r,columnVisibilityModel:o=(0,i.FY)(e),keepOnlyColumnsToUpsert:l=!1})=>{const a=!e.current.state.columns;let s;if(a)s={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const t=(0,i.em)(e.current.state);s={orderedFields:l?[]:[...t.orderedFields],lookup:(0,n.A)({},t.lookup),columnVisibilityModel:o}}let u={};l&&!a&&(u=Object.keys(s.lookup).reduce(((e,t)=>(0,n.A)({},e,{[t]:!1})),{}));const c={};t.forEach((e=>{const{field:t}=e;c[t]=!0,u[t]=!0;let r=s.lookup[t];null==r?(r=(0,n.A)({},g(e.type),{field:t,hasBeenResized:!1}),s.orderedFields.push(t)):l&&s.orderedFields.push(t),r&&r.type!==e.type&&(r=(0,n.A)({},g(e.type),{field:t}));let o=r.hasBeenResized;d.forEach((t=>{void 0!==e[t]&&(o=!0,-1===e[t]&&(e[t]=1/0))})),s.lookup[t]=(0,n.A)({},r,e,{hasBeenResized:o})})),l&&!a&&Object.keys(s.lookup).forEach((e=>{u[e]||delete s.lookup[e]}));const p=((e,t)=>{if(!t)return e;const{orderedFields:r=[],dimensions:o={}}=t,l=Object.keys(o);if(0===l.length&&0===r.length)return e;const i={},a=[];for(let t=0;t<r.length;t+=1){const n=r[t];e.lookup[n]&&(i[n]=!0,a.push(n))}const s=0===a.length?e.orderedFields:[...a,...e.orderedFields.filter((e=>!i[e]))],u=(0,n.A)({},e.lookup);for(let e=0;e<l.length;e+=1){const t=l[e],r=(0,n.A)({},u[t],{hasBeenResized:!0});Object.entries(o[t]).forEach((([e,t])=>{r[e]=-1===t?1/0:t})),u[t]=r}return(0,n.A)({},e,{orderedFields:s,lookup:u})})(e.current.unstable_applyPipeProcessors("hydrateColumns",s),r);return f(p,e.current.getRootDimensions?.().viewportInnerSize.width??0)};function m({firstColumnToRender:e,apiRef:t,firstRowToRender:r,lastRowToRender:n,visibleRows:o}){let l=e;for(let i=r;i<n;i+=1)if(o[i]){const r=o[i].id,n=t.current.unstable_getCellColSpanInfo(r,e);n&&n.spannedByColSpan&&(l=n.leftVisibleCellIndex)}return l}function b(e,t){const r=(0,s.rf)(e),n=(0,c.aC)(e),o=(0,u.yt)(e)?2:1;return Math.floor(t*r)*((n??0)+o)}},33658:(e,t,r)=>{r.d(t,{Y8:()=>l,_v:()=>a,rf:()=>s,tS:()=>o});var n=r(90810);const o=.7,l=1.3,i={compact:o,comfortable:l,standard:1},a=e=>e.density,s=(0,n.M)(a,(e=>i[e]))},29641:(e,t,r)=>{r.d(t,{z:()=>n});const n=e=>e.dimensions},62185:(e,t,r)=>{r.d(t,{w:()=>n});const n=e=>e.editRows},2220:(e,t,r)=>{r.d(t,{Ai:()=>v,O7:()=>w,RN:()=>C,ZI:()=>s,ZP:()=>p,em:()=>f,lL:()=>c,oU:()=>h,od:()=>x,q6:()=>u,qA:()=>m,tW:()=>b,ux:()=>g,wx:()=>d});var n=r(90810),o=r(43026),l=r(80163),i=r(4394);const a=e=>e.filter,s=(0,n.M)(a,(e=>e.filterModel)),u=(0,n.M)(s,(e=>e.quickFilterValues)),c=e=>e.visibleRowsLookup,d=(0,n.M)(a,(e=>e.filteredRowsLookup)),p=(0,n.M)(a,(e=>e.filteredDescendantCountLookup)),f=(0,n.S)(c,o.J6,((e,t)=>t.filter((t=>!1!==e[t.id])))),g=(0,n.S)(f,(e=>e.map((e=>e.id)))),h=(0,n.S)(d,o.J6,((e,t)=>t.filter((t=>!1!==e[t.id])))),m=(0,n.S)(h,(e=>e.map((e=>e.id)))),b=(0,n.S)(f,i.qj,i.V2,((e,t,r)=>r<2?e:e.filter((e=>0===t[e.id]?.depth)))),w=(0,n.M)(f,(e=>e.length)),C=(0,n.M)(b,(e=>e.length)),v=(0,n.S)(s,l.gv,((e,t)=>e.items?.filter((e=>{if(!e.field)return!1;const r=t[e.field];if(!r?.filterOperators||0===r?.filterOperators?.length)return!1;const n=r.filterOperators.find((t=>t.value===e.operator));return!!n&&(!n.InputComponent||null!=e.value&&""!==e.value?.toString())})))),x=(0,n.S)(v,(e=>e.reduce(((e,t)=>(e[t.field]?e[t.field].push(t):e[t.field]=[t],e)),{})))},15060:(e,t,r)=>{r.d(t,{T:()=>o});var n=r(93527);const o=()=>({items:[],logicOperator:n.V.And,quickFilterValues:[],quickFilterLogicOperator:n.V.And})},43905:(e,t,r)=>{r.d(t,{Fv:()=>v,zk:()=>c,zU:()=>h,Ko:()=>y,WL:()=>m,L5:()=>g,kO:()=>C});var n=r(6614),o=r(93527),l=r(15060),i=r(94251);function a(e){return{current:e.current.getPublicApi()}}var s=r(80163);let u;const c=(e,t)=>{const r=(0,n.A)({},e);if(null==r.id&&(r.id=Math.round(1e5*Math.random())),null==r.operator){const e=(0,s.gv)(t)[r.field];r.operator=e&&e.filterOperators[0].value}return r},d=(0,i.f)(["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 `DataGrid`, this prop is always `true`."],"error"),p=(0,i.f)("MUI X: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),f=(0,i.f)("MUI X: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),g=(e,t,r)=>{const o=e.items.length>1;let l;o&&t?(d(),l=[e.items[0]]):l=e.items;const i=o&&l.some((e=>null==e.id)),a=l.some((e=>null==e.operator));return i&&p(),a&&f(),a||i?(0,n.A)({},e,{items:l.map((e=>c(e,r)))}):e.items!==l?(0,n.A)({},e,{items:l}):e},h=(e,t,r)=>o=>(0,n.A)({},o,{filterModel:g(e,t,r)}),m=e=>"string"==typeof e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,b=(e,t)=>{if(!e.field||!e.operator)return null;const r=t.current.getColumn(e.field);if(!r)return null;let o;if(r.valueParser){const n=r.valueParser;o=Array.isArray(e.value)?e.value?.map((e=>n(e,void 0,r,t))):n(e.value,void 0,r,t)}else o=e.value;const{ignoreDiacritics:l}=t.current.rootProps;l&&(o=m(o));const i=(0,n.A)({},e,{value:o}),s=r.filterOperators;if(!s?.length)throw new Error(`MUI X: No filter operators found for column '${r.field}'.`);const u=s.find((e=>e.value===i.operator));if(!u)throw new Error(`MUI X: No filter operator found for column '${r.field}' and operator value '${i.operator}'.`);const c=a(t),d=u.getApplyFilterFn(i,r);return"function"!=typeof d?null:{item:i,fn:e=>{let n=t.current.getRowValue(e,r);return l&&(n=m(n)),d(n,e,r,c)}}};let w=1;const C=e=>e.quickFilterExcludeHiddenColumns??!0,v=(e,t,r)=>{const n=((e,t,r)=>{const{items:n}=e,o=n.map((e=>b(e,t))).filter((e=>!!e));if(0===o.length)return null;if(r||!function(){if(void 0!==u)return u;try{u=new Function("return true")()}catch(e){u=!1}return u}())return(e,t)=>{const r={};for(let n=0;n<o.length;n+=1){const l=o[n];t&&!t(l.item.field)||(r[l.item.id]=l.fn(e))}return r};const l=new Function("appliers","row","shouldApplyFilter",`"use strict";\n${o.map(((e,t)=>`const shouldApply${t} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(e.item.field)});`)).join("\n")}\n\nconst result$$ = {\n${o.map(((e,t)=>`  ${JSON.stringify(String(e.item.id))}: !shouldApply${t} ? false : appliers[${t}].fn(row),`)).join("\n")}\n};\n\nreturn result$$;`.replaceAll("$$",String(w)));return w+=1,(e,t)=>l(o,e,t)})(e,t,r),o=((e,t)=>{const r=e.quickFilterValues?.filter(Boolean)??[];if(0===r.length)return null;const n=C(e)?(0,s.TI)(t):(0,s.JR)(t),o=[],{ignoreDiacritics:l}=t.current.rootProps,i=a(t);return n.forEach((e=>{const n=t.current.getColumn(e),a=n?.getApplyQuickFilterFn;a&&o.push({column:n,appliers:r.map((e=>{const t=l?m(e):e;return{fn:a(t,n,i)}}))})})),function(e,n){const a={};e:for(let s=0;s<r.length;s+=1){const u=r[s];for(let r=0;r<o.length;r+=1){const{column:c,appliers:d}=o[r],{field:p}=c;if(n&&!n(p))continue;const f=d[s];let g=t.current.getRowValue(e,c);if(null!==f.fn&&(l&&(g=m(g)),f.fn(g,e,c,i))){a[u]=!0;continue e}}a[u]=!1}return a}})(e,t);return function(e,t,r){r.passingFilterItems=n?.(e,t)??null,r.passingQuickFilterValues=o?.(e,t)??null}},x=e=>null!=e,y=(e,t,r,n,i)=>{const a=((e,t,r)=>(e.cleanedFilterItems||(e.cleanedFilterItems=r.filter((e=>null!==b(e,t)))),e.cleanedFilterItems))(i,n,r.items),s=e.filter(x),u=t.filter(x);if(s.length>0){const e=e=>s.some((t=>t[e.id]));if((r.logicOperator??(0,l.T)().logicOperator)===o.V.And){if(!a.every(e))return!1}else if(!a.some(e))return!1}if(u.length>0&&null!=r.quickFilterValues){const e=e=>u.some((t=>t[e]));if((r.quickFilterLogicOperator??(0,l.T)().quickFilterLogicOperator)===o.V.And){if(!r.quickFilterValues.every(e))return!1}else if(!r.quickFilterValues.some(e))return!1}return!0}},3247:(e,t,r)=>{r.d(t,{H5:()=>c,IL:()=>p,Kr:()=>d,MO:()=>l,Uh:()=>u,WO:()=>s,XY:()=>a,dS:()=>f,he:()=>o,rj:()=>i});var n=r(90810);const o=e=>e.focus,l=(0,n.M)(o,(e=>e.cell)),i=(0,n.M)(o,(e=>e.columnHeader)),a=(0,n.M)(o,(e=>e.columnHeaderFilter)),s=(0,n.M)(o,(e=>e.columnGroupHeader)),u=e=>e.tabIndex,c=(0,n.M)(u,(e=>e.cell)),d=(0,n.M)(u,(e=>e.columnHeader)),p=(0,n.M)(u,(e=>e.columnHeaderFilter)),f=(0,n.M)(u,(e=>e.columnGroupHeader))},10365:(e,t,r)=>{r.d(t,{B$:()=>i,K8:()=>a,ON:()=>o,yt:()=>l});var n=r(90810);const o=e=>e.headerFiltering,l=(0,n.M)(o,(e=>e?.enabled??!1)),i=(0,n.M)(o,(e=>e.editing)),a=(0,n.M)(o,(e=>e.menuOpen))},24940:(e,t,r)=>{r.d(t,{$i:()=>c,H2:()=>u,M5:()=>a,O:()=>p,Q8:()=>g,ee:()=>h,ij:()=>d,lN:()=>s,vd:()=>f});var n=r(90810),o=r(2220),l=r(4394),i=r(92268);const a=e=>e.pagination,s=(0,n.M)(a,(e=>e.paginationModel)),u=(0,n.M)(a,(e=>e.rowCount)),c=(0,n.M)(s,(e=>e.page)),d=(0,n.M)(s,(e=>e.pageSize)),p=(0,n.M)(d,u,((e,t)=>(0,i.$_)(t,e))),f=(0,n.S)(s,l.qj,l.V2,o.em,o.tW,((e,t,r,n,o)=>{const l=o.length,i=Math.min(e.pageSize*e.page,l-1),a=Math.min(i+e.pageSize-1,l-1);if(-1===i||-1===a)return null;if(r<2)return{firstRowIndex:i,lastRowIndex:a};const s=o[i],u=a-i+1,c=n.findIndex((e=>e.id===s.id));let d=c,p=0;for(;d<n.length&&p<=u;){const e=n[d],r=t[e.id]?.depth;void 0===r?d+=1:((p<u||r>0)&&(d+=1),0===r&&(p+=1))}return{firstRowIndex:c,lastRowIndex:d-1}})),g=(0,n.S)(o.em,f,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),h=(0,n.S)(o.ux,f,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]))},92268:(e,t,r)=>{r.d(t,{$_:()=>i,N0:()=>a,RW:()=>u,eW:()=>l,m6:()=>s});var n=r(94251),o=r(89148);const l=e=>e?0:100,i=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,a=((0,n.f)(["MUI X: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error"),e=>({page:0,pageSize:e?0:100})),s=(e,t=0)=>0===t?e:Math.max(Math.min(e,t-1),0),u=(e,t)=>{if(t===o.HV.DataGrid&&e>100)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("\n"))}},38577:(e,t,r)=>{r.d(t,{_:()=>n});const n=e=>e.preferencePanel},48534:(e,t,r)=>{r.d(t,{y:()=>n});var n=function(e){return e.filters="filters",e.columns="columns",e}(n||{})},82188:(e,t,r)=>{r.d(t,{Bi:()=>l,Zk:()=>s,gt:()=>a,vF:()=>i});var n=r(90810),o=r(4394);const l=e=>e.rowSelection,i=(0,n.M)(l,(e=>e.length)),a=(0,n.S)(l,o.rI,((e,t)=>new Map(e.map((e=>[e,t[e]]))))),s=(0,n.S)(l,(e=>e.reduce(((e,t)=>(e[t]=t,e)),{})))},41222:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(89148);function o(e){return e.signature===n.HV.DataGrid?e.checkboxSelection&&!0!==e.disableMultipleRowSelection:!e.disableMultipleRowSelection}},69639:(e,t,r)=>{r.d(t,{E:()=>n});const n=e=>e.rowsMeta},4394:(e,t,r)=>{r.d(t,{$2:()=>m,A6:()=>g,Dl:()=>i,H0:()=>l,Mz:()=>p,O8:()=>a,OQ:()=>b,V2:()=>f,Y1:()=>d,gk:()=>u,qj:()=>c,rI:()=>s});var n=r(90810);const o=e=>e.rows,l=(0,n.M)(o,(e=>e.totalRowCount)),i=(0,n.M)(o,(e=>e.loading)),a=(0,n.M)(o,(e=>e.totalTopLevelRowCount)),s=(0,n.M)(o,(e=>e.dataRowIdToModelLookup)),u=(0,n.M)(o,(e=>e.dataRowIdToIdLookup)),c=(0,n.M)(o,(e=>e.tree)),d=(0,n.M)(o,(e=>e.groupingName)),p=(0,n.M)(o,(e=>e.treeDepths)),f=(0,n.S)(o,(e=>{const t=Object.entries(e.treeDepths);return 0===t.length?1:t.filter((([,e])=>e>0)).map((([e])=>Number(e))).sort(((e,t)=>t-e))[0]+1})),g=(0,n.M)(o,(e=>e.dataRowIds)),h=(0,n.M)(o,(e=>e?.additionalRowGroups)),m=(0,n.S)(h,(e=>{const t=e?.pinnedRows;return{bottom:t?.bottom?.map((e=>({id:e.id,model:e.model??{}})))??[],top:t?.top?.map((e=>({id:e.id,model:e.model??{}})))??[]}})),b=(0,n.M)(m,(e=>(e?.top?.length||0)+(e?.bottom?.length||0)))},59458:(e,t,r)=>{r.d(t,{DJ:()=>g,Gh:()=>u,HZ:()=>c,Mk:()=>s,OL:()=>i,OM:()=>w,TW:()=>f,Z:()=>d,Ze:()=>m,fS:()=>p,gb:()=>a,l_:()=>h,zo:()=>b});var n=r(6614),o=r(4394),l=r(29641);const i="auto-generated-group-node-root",a=Symbol("mui.id_autogenerated"),s=()=>({type:"group",id:i,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function u(e,t,r="A row was provided without id in the rows prop:"){if(null==e)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.",r,JSON.stringify(t)].join("\n"))}const c=(e,t,r)=>{const n=t?t(e):e.id;return u(n,e,r),n},d=({rows:e,getRowId:t,loading:r,rowCount:n})=>{const o={type:"full",rows:[]},l={},i={};for(let r=0;r<e.length;r+=1){const n=e[r],a=c(n,t);l[a]=n,i[a]=a,o.rows.push(a)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:r,rowCountPropBeforePartialUpdates:n,updates:o,dataRowIdToIdLookup:i,dataRowIdToModelLookup:l}},p=({tree:e,rowCountProp:t=0})=>{const r=e[i];return Math.max(t,r.children.length+(null==r.footerId?0:1))},f=({apiRef:e,rowCountProp:t=0,loadingProp:r,previousTree:o,previousTreeDepths:l})=>{const i=e.current.caches.rows,{tree:a,treeDepths:s,dataRowIds:u,groupingName:c}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:o,previousTreeDepths:l,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),d=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:s,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:u,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},(0,n.A)({},d,{totalRowCount:Math.max(t,d.dataRowIds.length),totalTopLevelRowCount:p({tree:d.tree,rowCountProp:t}),groupingName:c,loading:r})},g=e=>"skeletonRow"===e.type||"footer"===e.type||"group"===e.type&&e.isAutoGenerated||"pinnedRow"===e.type&&e.isAutoGenerated,h=(e,t,r)=>{const n=e[t];if("group"!==n.type)return[];const o=[];for(let t=0;t<n.children.length;t+=1){const l=n.children[t];r&&g(e[l])||o.push(l);const i=h(e,l,r);for(let e=0;e<i.length;e+=1)o.push(i[e])}return r||null==n.footerId||o.push(n.footerId),o},m=({previousCache:e,getRowId:t,updates:r})=>{if("full"===e.updates.type)throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const o=new Map;r.forEach((e=>{const r=c(e,t,"A row was provided without id when calling updateRows():");o.has(r)?o.set(r,(0,n.A)({},o.get(r),e)):o.set(r,e)}));const l={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:(0,n.A)({},e.updates.idToActionLookup)},i=(0,n.A)({},e.dataRowIdToModelLookup),a=(0,n.A)({},e.dataRowIdToIdLookup),s={insert:{},modify:{},remove:{}};o.forEach(((e,t)=>{const r=l.idToActionLookup[t];if("delete"===e._action){if("remove"===r||!i[t])return;return null!=r&&(s[r][t]=!0),l.actions.remove.push(t),delete i[t],void delete a[t]}const o=i[t];if(o)return"remove"===r?(s.remove[t]=!0,l.actions.modify.push(t)):null==r&&l.actions.modify.push(t),void(i[t]=(0,n.A)({},o,e));"remove"===r?(s.remove[t]=!0,l.actions.insert.push(t)):null==r&&l.actions.insert.push(t),i[t]=e,a[t]=t}));const u=Object.keys(s);for(let e=0;e<u.length;e+=1){const t=u[e],r=s[t];Object.keys(r).length>0&&(l.actions[t]=l.actions[t].filter((e=>!r[e])))}return{dataRowIdToModelLookup:i,dataRowIdToIdLookup:a,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function b(e){const t=(0,o.$2)(e);return{top:t?.top?.reduce(((t,r)=>t+e.current.unstable_getRowHeight(r.id)),0)||0,bottom:t?.bottom?.reduce(((t,r)=>t+e.current.unstable_getRowHeight(r.id)),0)||0}}function w(e){return`var(--DataGrid-overlayHeight, ${2*(0,l.z)(e.current.state).rowHeight}px)`}},15665:(e,t,r)=>{r.d(t,{W:()=>a,s:()=>s});var n=r(7552),o=r(10930),l=r(99270),i=r(3247);class a extends Error{}function s(e){const t=n.useCallback((t=>({field:t,colDef:e.current.getColumn(t)})),[e]),r=n.useCallback((t=>{const r=e.current.getRow(t);if(!r)throw new a(`No row with id #${t} found`);return{id:t,columns:e.current.getAllColumns(),row:r}}),[e]),s=n.useCallback(((t,r)=>{const n=e.current.getColumn(r),o=e.current.getRow(t),l=e.current.getRowNode(t);if(!o||!l)throw new a(`No row with id #${t} found`);const s=o[r],u=n?.valueGetter?n.valueGetter(s,o,n,e):s,c=(0,i.MO)(e),d=(0,i.H5)(e),p={id:t,field:r,row:o,rowNode:l,colDef:n,cellMode:e.current.getCellMode(t,r),hasFocus:null!==c&&c.field===r&&c.id===t,tabIndex:d&&d.field===r&&d.id===t?0:-1,value:u,formattedValue:u,isEditable:!1};return n&&n.valueFormatter&&(p.formattedValue=n.valueFormatter(u,o,n,e)),p.isEditable=n&&e.current.isCellEditable(p),p}),[e]),u=n.useCallback(((t,r)=>{const n=e.current.getColumn(r),o=e.current.getRow(t);if(!o)throw new a(`No row with id #${t} found`);return n&&n.valueGetter?n.valueGetter(o[n.field],o,n,e):o[r]}),[e]),c=n.useCallback(((t,r)=>{const n=r.field;if(!r||!r.valueGetter)return t[n];const o=t[r.field];return r.valueGetter(o,t,r,e)}),[e]),d=n.useCallback(((t,r)=>{const n=c(t,r);return r&&r.valueFormatter?r.valueFormatter(n,t,r,e):n}),[e,c]),p=n.useCallback((t=>e.current.rootElementRef.current?(0,o.u)(e.current.rootElementRef.current,t):null),[e]),f=n.useCallback((t=>e.current.rootElementRef.current?(0,o.v_)(e.current.rootElementRef.current,t):null),[e]),g={getCellValue:u,getCellParams:s,getCellElement:n.useCallback(((t,r)=>e.current.rootElementRef.current?(0,o.xE)(e.current.rootElementRef.current,{id:t,field:r}):null),[e]),getRowValue:c,getRowFormattedValue:d,getRowParams:r,getRowElement:f,getColumnHeaderParams:t,getColumnHeaderElement:p};(0,l.P)(e,g,"public")}},43026:(e,t,r)=>{r.d(t,{J6:()=>a,RJ:()=>i,XU:()=>s,oF:()=>u});var n=r(90810),o=r(4394);const l=e=>e.sorting,i=(0,n.M)(l,(e=>e.sortedRows)),a=(0,n.S)(i,o.rI,((e,t)=>e.map((e=>({id:e,model:t[e]??{}}))))),s=(0,n.M)(l,(e=>e.sortModel)),u=(0,n.S)(s,(e=>e.reduce(((t,r,n)=>(t[r.field]={sortDirection:r.sort,sortIndex:e.length>1?n+1:void 0},t)),{})))},14298:(e,t,r)=>{r.d(t,{Az:()=>c,Hm:()=>a,Lj:()=>i,Ou:()=>d,VE:()=>p,Zx:()=>o,ps:()=>l});var n=r(6614);(0,r(94251).f)(["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 `DataGrid`, this prop is always `true`."],"error");const o=(e,t)=>t&&e.length>1?[e[0]]:e,l=(e,t)=>r=>(0,n.A)({},r,{sorting:(0,n.A)({},r.sorting,{sortModel:o(e,t)})}),i=(e,t)=>{const r=e.map((e=>((e,t)=>{const r=t.current.getColumn(e.field);if(!r||null===e.sort)return null;let n;return n=r.getSortComparator?r.getSortComparator(e.sort):"desc"===e.sort?(...e)=>-1*r.sortComparator(...e):r.sortComparator,n?{getSortCellParams:e=>({id:e,field:r.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,r.field),api:t.current}),comparator:n}:null})(e,t))).filter((e=>!!e));return 0===r.length?null:e=>e.map((e=>({node:e,params:r.map((t=>t.getSortCellParams(e.id)))}))).sort(((e,t)=>{return n=e,o=t,r.reduce(((e,t,r)=>{if(0!==e)return e;const l=n.params[r],i=o.params[r];return t.comparator(l.value,i.value,l,i)}),0);var n,o})).map((e=>e.node.id))},a=(e,t)=>{const r=e.indexOf(t);return t&&-1!==r&&r+1!==e.length?e[r+1]:e[0]},s=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,u=new Intl.Collator,c=(e,t)=>{const r=s(e,t);return null!==r?r:"string"==typeof e?u.compare(e.toString(),t.toString()):e-t},d=(e,t)=>{const r=s(e,t);return null!==r?r:Number(e)-Number(t)},p=(e,t)=>{const r=s(e,t);return null!==r?r:e>t?1:e<t?-1:0}},35281:(e,t,r)=>{r.d(t,{EG:()=>s,_U:()=>l,dU:()=>o,m5:()=>i,nZ:()=>a});var n=r(90810);const o=e=>e.virtualization,l=(0,n.M)(o,(e=>e.enabled)),i=(0,n.M)(o,(e=>e.enabledForColumns)),a=(0,n.M)(o,(e=>e.renderContext)),s=(0,n.S)((e=>e.virtualization.renderContext.firstColumnIndex),(e=>e.virtualization.renderContext.lastColumnIndex),((e,t)=>({firstColumnIndex:e,lastColumnIndex:t})))},85854:(e,t,r)=>{r.d(t,{Yr:()=>$,j$:()=>O});var n=r(6614),o=r(7552),l=r(28485),i=r(74795),a=r(94921),s=r(45175),u=r(74727),c=r(48231),d=r(71115),p=r(64565),f=r(12274),g=r(82609),h=r(61959),m=r(80163),b=r(29641),w=r(4394),C=r(3247),v=r(23392),x=r(89148),y=r(58766),A=r(82188),R=r(69639),S=r(60378),I=r(59458),M=r(35281),k=r(55730),P=r(69500),E=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}(E||{});const F={top:0,left:0},H=Object.freeze(new Map),T="undefined"!=typeof window&&/jsdom/.test(window.navigator.userAgent),O=()=>{const e=(0,d.E)(),t=(0,p.A)(),r=(0,f.N)(e,m.iv),S=(0,f.N)(e,M._U)&&!T,O=(0,f.N)(e,M.m5)&&!T,L=(0,f.N)(e,b.z),j=L.viewportOuterSize,N=(0,f.N)(e,w.$2),G=(0,f.N)(e,m.Q1),B=N.bottom.length>0,[U,W]=o.useState(H),_=(0,c.A)(),K=(0,f.N)(e,C.MO),q=(0,f.N)(e,C.H5),X=(0,f.N)(e,R.E),Y=(0,f.N)(e,A.Zk),Z=(0,v.h)(e,t),Q=e.current.rootElementRef,J=e.current.mainElementRef,ee=e.current.virtualScrollerRef,te=o.useRef(null),re=o.useRef(null),ne=L.contentSize.height,oe=L.columnsTotalWidth,le=(0,f.N)(e,m.kw);(0,g.w)(J,(()=>e.current.resize()));const ie=o.useRef(F),ae=o.useRef(F),se=o.useRef(k.$A),ue=(0,f.N)(e,M.nZ),ce=(0,u.A)(),de=o.useRef(void 0),pe=(0,s.A)((()=>{return e=_.direction,r=t.rowBufferPx,n=t.columnBufferPx,o=15*L.rowHeight,300,{direction:E.NONE,buffer:V(e,E.NONE,r,n,o,300)};var e,r,n,o})).current,fe={rowIndex:o.useMemo((()=>K?Z.rows.findIndex((e=>e.id===K.id)):-1),[K,Z.rows]),columnIndex:o.useMemo((()=>K?r.findIndex((e=>e.field===K.field)):-1),[K,r])},ge=o.useCallback((t=>{if(r=t,o=e.current.state.virtualization.renderContext,r===o||r.firstRowIndex===o.firstRowIndex&&r.lastRowIndex===o.lastRowIndex&&r.firstColumnIndex===o.firstColumnIndex&&r.lastColumnIndex===o.lastColumnIndex)return;var r,o;const l=t.firstRowIndex!==se.current.firstRowIndex||t.lastRowIndex!==se.current.lastRowIndex;e.current.setState((e=>(0,n.A)({},e,{virtualization:(0,n.A)({},e.virtualization,{renderContext:t})}))),L.isReady&&l&&(se.current=t,e.current.publishEvent("renderedRowsIntervalChange",t)),ae.current=ie.current}),[e,L.isReady]),he=()=>{const r={top:ee.current.scrollTop,left:ee.current.scrollLeft},n=r.left-ie.current.left,o=r.top-ie.current.top,i=0!==n||0!==o;ie.current=r;const a=i?function(e,t){return 0===e&&0===t?E.NONE:Math.abs(t)>=Math.abs(e)?t>0?E.DOWN:E.UP:e>0?E.RIGHT:E.LEFT}(n,o):E.NONE,s=Math.abs(ie.current.top-ae.current.top),u=Math.abs(ie.current.left-ae.current.left),c=s>=L.rowHeight||u>=50,d=pe.direction!==a;if(!c&&!d)return ue;if(d)switch(a){case E.NONE:case E.LEFT:case E.RIGHT:de.current=void 0;break;default:de.current=ue}pe.direction=a,pe.buffer=V(_.direction,a,t.rowBufferPx,t.columnBufferPx,15*L.rowHeight,300);const p=z(D(e,t,S,O),ie.current,pe);return l.flushSync((()=>{ge(p)})),ce.start(1e3,he),p},me=()=>{const r=z(D(e,t,S,O),ie.current,pe);ge(r)},be=(0,i.A)((t=>{const{scrollTop:r,scrollLeft:n}=t.currentTarget;if(r<0)return;if("ltr"===_.direction&&n<0)return;if("rtl"===_.direction&&n>0)return;const o=he();e.current.publishEvent("scrollPositionChange",{top:r,left:n,renderContext:o})})),we=(0,i.A)((t=>{e.current.publishEvent("virtualScrollerWheel",{},t)})),Ce=(0,i.A)((t=>{e.current.publishEvent("virtualScrollerTouchMove",{},t)})),ve=j.width&&oe>=j.width,xe=o.useMemo((()=>({overflowX:ve?void 0:"hidden",overflowY:t.autoHeight?"hidden":void 0})),[ve,t.autoHeight]),ye=o.useMemo((()=>{const r=Math.max(ne,1),n={width:ve?oe:"auto",height:r};return t.autoHeight&&(0===Z.rows.length?n.height=(0,I.OM)(e):n.height=ne),n}),[e,oe,ne,ve,t.autoHeight,Z.rows.length]);return o.useEffect((()=>{e.current.publishEvent("virtualScrollerContentSizeChange")}),[e,ye]),(0,a.A)((()=>{e.current.resize()}),[e,X.currentPageTotalHeight]),(0,a.A)((()=>{S&&(ee.current.scrollLeft=0,ee.current.scrollTop=0)}),[S,Q,ee]),(0,h.A)(0!==j.width,(()=>{const r=z(D(e,t,S,O),ie.current,pe);ge(r),e.current.publishEvent("scrollPositionChange",{top:ie.current.top,left:ie.current.left,renderContext:r})})),e.current.register("private",{updateRenderContext:me}),(0,x.cz)(e,"columnsChange",me),(0,x.cz)(e,"filteredRowsSet",me),(0,x.cz)(e,"rowExpansionChange",me),{renderContext:ue,setPanels:W,getRows:(o={})=>{if(!o.rows&&!Z.range)return[];const l=o.renderContext??ue,i=!B&&void 0===o.position||B&&"bottom"===o.position,a=void 0!==o.position;let s;switch(o.position){case"top":s=0;break;case"bottom":s=N.top.length+Z.rows.length;break;case void 0:s=N.top.length}const u=o.rows??Z.rows,c=l.firstRowIndex,d=Math.min(l.lastRowIndex,u.length),p=o.rows?(0,y.y1)(0,o.rows.length):(0,y.y1)(c,d);let f=-1;a||-1===fe.rowIndex||(fe.rowIndex<c&&(f=fe.rowIndex,p.unshift(f)),fe.rowIndex>=d&&(f=fe.rowIndex,p.push(f)));const g=[],h=t.slotProps?.row,b=(0,m.Sw)(e);return p.forEach((c=>{const{id:d,model:p}=u[c];if(le){const t=G.left.length,n=r.length-G.right.length;e.current.calculateColSpan({rowId:d,minFirstColumn:t,maxLastColumn:n,columns:r}),G.left.length>0&&e.current.calculateColSpan({rowId:d,minFirstColumn:0,maxLastColumn:G.left.length,columns:r}),G.right.length>0&&e.current.calculateColSpan({rowId:d,minFirstColumn:r.length-G.right.length,maxLastColumn:r.length,columns:r})}const m=K?.id===d,w=e.current.rowHasAutoHeight(d)?"auto":e.current.unstable_getRowHeight(d);let C;C=null!=Y[d]&&e.current.isRowSelectable(d);let v=!1;void 0===o.position&&(v=0===c);let x=!1;i&&(a?x=c===u.length-1:c===Z.rows.length-1&&(x=!0));const y=c===f;let A=null;null!==q&&q.id===d&&(A="view"===e.current.getCellParams(d,q.field).cellMode?q.field:null);let R=l;!a&&de.current&&c>=de.current.firstRowIndex&&c<de.current.lastRowIndex&&(R=de.current);const S=$(b,R,_.direction,G.left.length),I=(Z?.range?.firstRowIndex||0)+s+c;g.push((0,P.jsx)(t.slots.row,(0,n.A)({row:p,rowId:d,index:I,selected:C,offsetTop:o.rows?void 0:X.positions[c],offsetLeft:S,dimensions:L,rowHeight:w,tabbableCell:A,pinnedColumns:G,visibleColumns:r,renderContext:R,focusedColumnIndex:m?fe.columnIndex:void 0,isFirstVisible:v,isLastVisible:x,isNotVisible:y},h),d));const M=U.get(d);M&&g.push(M),x&&g.push(e.current.getInfiniteLoadingTriggerElement?.({lastRowId:d}))})),g},getContainerProps:()=>({ref:J}),getScrollerProps:()=>({ref:ee,tabIndex:-1,onScroll:be,onWheel:we,onTouchMove:Ce,style:xe,role:"presentation"}),getContentProps:()=>({style:ye,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:te,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:re,role:"presentation"})}};function D(e,t,r,n){const o=(0,b.z)(e.current.state),l=(0,v.e)(e,t),i=(0,m.iv)(e),a=e.current.state.rows.dataRowIds.at(-1),s=i.at(-1);return{enabled:r,enabledForColumns:n,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:void 0!==a?e.current.unstable_getRowHeight(a):0,lastColumnWidth:s?.computedWidth??0,rowsMeta:(0,R.E)(e.current.state),columnPositions:(0,m.Sw)(e),rows:l.rows,range:l.range,pinnedColumns:(0,m.Q1)(e),visibleColumns:i}}function z(e,t,r){let n;if(e.enabled){const{top:o,left:l}=t,i=Math.abs(l)+e.leftPinnedWidth,a=Math.min(L(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1),s=e.autoHeight?a+e.rows.length:L(e,o+e.viewportInnerHeight);let u=0,c=e.columnPositions.length;if(e.enabledForColumns){let t=!1;const[n,o]=N({firstIndex:a,lastIndex:s,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:r.buffer.rowBefore,bufferAfter:r.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});for(let r=n;r<o&&!t;r+=1){const n=e.rows[r];t=e.apiRef.current.rowHasAutoHeight(n.id)}t||(u=j(i,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),c=j(i+e.viewportInnerWidth,e.columnPositions))}n={firstRowIndex:a,lastRowIndex:s,firstColumnIndex:u,lastColumnIndex:c}}else n={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length};const o=function(e,t,r){const[n,o]=N({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:r.buffer.rowBefore,bufferAfter:r.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[l,i]=N({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:r.buffer.columnBefore,bufferAfter:r.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth});return{firstRowIndex:n,lastRowIndex:o,firstColumnIndex:(0,S.A8)({firstColumnToRender:l,apiRef:e.apiRef,firstRowToRender:n,lastRowToRender:o,visibleRows:e.rows}),lastColumnIndex:i}}(e,n,r);return o}function L(e,t,r){const n=e.apiRef.current.getLastMeasuredRowIndex();let o=n===1/0;e.range?.lastRowIndex&&!o&&(o=n>=e.range.lastRowIndex);const l=(0,y.qE)(n-(e.range?.firstRowIndex||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[l]>=t?j(t,e.rowsMeta.positions,r):function(e,t,r,n){let o=1;for(;r<t.length&&Math.abs(t[r])<e;)r+=o,o*=2;return j(e,t,n,Math.floor(r/2),Math.min(r,t.length))}(t,e.rowsMeta.positions,l,r)}function j(e,t,r=void 0,n=0,o=t.length){if(t.length<=0)return-1;if(n>=o)return n;const l=n+Math.floor((o-n)/2),i=t[l];let a;return a=r?.atStart?e-((l===t.length-1?r.lastPosition:t[l+1])-i)<i:e<=i,a?j(e,t,r,n,l):j(e,t,r,l+1,o)}function N({firstIndex:e,lastIndex:t,bufferBefore:r,bufferAfter:n,minFirstIndex:o,maxLastIndex:l,positions:i,lastSize:a}){const s=i[e]-r,u=i[t]+n,c=j(s,i,{atStart:!0,lastPosition:i[i.length-1]+a}),d=j(u,i);return[(0,y.qE)(c,o,l),(0,y.qE)(d,o,l)]}function $(e,t,r,n){const o=("ltr"===r?1:-1)*(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(o)}function V(e,t,r,n,o,l){if("rtl"===e)switch(t){case E.LEFT:t=E.RIGHT;break;case E.RIGHT:t=E.LEFT}switch(t){case E.NONE:return{rowAfter:r,rowBefore:r,columnAfter:n,columnBefore:n};case E.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:l};case E.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:l,columnBefore:0};case E.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case E.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}},55730:(e,t,r)=>{r.d(t,{$A:()=>i,lA:()=>s,nu:()=>a});var n=r(6614),o=r(7552),l=r(99270);const i={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},a=(e,t)=>{const r={enabled:!t.disableVirtualization,enabledForColumns:!0,renderContext:i};return(0,n.A)({},e,{virtualization:r})};function s(e,t){const r=t=>{e.current.setState((e=>(0,n.A)({},e,{virtualization:(0,n.A)({},e.virtualization,{enabled:t})})))},i={unstable_setVirtualization:r,unstable_setColumnVirtualization:t=>{e.current.setState((e=>(0,n.A)({},e,{virtualization:(0,n.A)({},e.virtualization,{enabledForColumns:t})})))}};(0,l.P)(e,i,"public"),o.useEffect((()=>{r(!t.disableVirtualization)}),[t.disableVirtualization])}},20849:(e,t,r)=>{r.d(t,{g:()=>o});var n=r(7552);const o=e=>{const t=n.useRef(!0);t.current&&(t.current=!1,e())}},89148:(e,t,r)=>{r.d(t,{HV:()=>i,s9:()=>s,_7:()=>c,cz:()=>d,re:()=>f});var n=r(7552);class o{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,r){this.timeouts||(this.timeouts=new Map);const n=setTimeout((()=>{"function"==typeof t&&t(),this.timeouts.delete(r.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(r.cleanupToken,n)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach(((e,t)=>{this.unregister({cleanupToken:t})})),this.timeouts=void 0)}}class l{constructor(){this.registry=new FinalizationRegistry((e=>{"function"==typeof e&&e()}))}register(e,t,r){this.registry.register(e,t,r)}unregister(e){this.registry.unregister(e)}reset(){}}var i=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(i||{});class a{}function s(e){let t=0;return function(r,i,s,u){null===e.registry&&(e.registry="undefined"!=typeof FinalizationRegistry?new l:new o);const[c]=n.useState(new a),d=n.useRef(null),p=n.useRef();p.current=s;const f=n.useRef(null);if(!d.current&&p.current){const n=(e,t,r)=>{t.defaultMuiPrevented||p.current?.(e,t,r)};d.current=r.current.subscribeEvent(i,n,u),t+=1,f.current={cleanupToken:t},e.registry.register(c,(()=>{d.current?.(),d.current=null,f.current=null}),f.current)}else!p.current&&d.current&&(d.current(),d.current=null,f.current&&(e.registry.unregister(f.current),f.current=null));n.useEffect((()=>{if(!d.current&&p.current){const e=(e,t,r)=>{t.defaultMuiPrevented||p.current?.(e,t,r)};d.current=r.current.subscribeEvent(i,e,u)}return f.current&&e.registry&&(e.registry.unregister(f.current),f.current=null),()=>{d.current?.(),d.current=null}}),[r,i,u])}}const u={registry:null},c=()=>{u.registry?.reset(),u.registry=null},d=s(u),p={isFirst:!0};function f(e,t,r){d(e,t,r,p)}},99270:(e,t,r)=>{r.d(t,{P:()=>o});var n=r(7552);function o(e,t,r){const o=n.useRef(!0);n.useEffect((()=>{o.current=!1,e.current.register(r,t)}),[e,r,t]),o.current&&e.current.register(r,t)}},65111:(e,t,r)=>{r.d(t,{q:()=>o});var n=r(7552);function o(e,t){const r=n.useRef(null);if(r.current)return r.current;const o=e.current.getLogger(t);return r.current=o,o}},47434:(e,t,r)=>{r.d(t,{h:()=>i});var n=r(7552),o=r(58766),l=r(65111);const i=(e,t,r,i,a)=>{const s=(0,l.q)(e,"useNativeEventListener"),[u,c]=n.useState(!1),d=n.useRef(i),p=(0,o.Tn)(t)?t():t?.current??null,f=n.useCallback((e=>d.current&&d.current(e)),[]);n.useEffect((()=>{d.current=i}),[i]),n.useEffect((()=>{if(p&&r&&!u){s.debug(`Binding native ${r} event`),p.addEventListener(r,f,a),c(!0);const t=()=>{s.debug(`Clearing native ${r} event`),p.removeEventListener(r,f,a)};e.current.subscribeEvent("unmount",t)}}),[p,f,r,u,s,a,e])}},71115:(e,t,r)=>{r.d(t,{E:()=>l,z:()=>o});var n=r(7552);const o=n.createContext(void 0);function l(){const e=n.useContext(o);if(void 0===e)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("\n"));return e}},12274:(e,t,r)=>{r.d(t,{N:()=>p,T:()=>c});var n=r(7552),o=r(45175),l=r(38813),i=r(94251),a=r(56381);function s(e,t){return function(e){return e.acceptsApiRef}(t)?t(e):t(e.current.state)}(0,i.f)(["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 u=Object.is,c=a.v,d=()=>({state:null,equals:null,selector:null}),p=(e,t,r=u)=>{const i=(0,o.A)(d),a=null!==i.current.selector,[c,p]=n.useState(a?null:s(e,t));return i.current.state=c,i.current.equals=r,i.current.selector=t,(0,l.A)((()=>e.current.store.subscribe((()=>{const t=s(e,i.current.selector);i.current.equals(i.current.state,t)||(i.current.state=t,p(t))})))),c}},23392:(e,t,r)=>{r.d(t,{e:()=>i,h:()=>a});var n=r(7552),o=r(24940),l=r(2220);const i=(e,t)=>{let r,n;return t.pagination&&"client"===t.paginationMode?(n=(0,o.vd)(e),r=(0,o.Q8)(e)):(r=(0,l.em)(e),n=0===r.length?null:{firstRowIndex:0,lastRowIndex:r.length-1}),{rows:r,range:n}},a=(e,t)=>{const r=i(e,t);return n.useMemo((()=>({rows:r.rows,range:r.range})),[r.rows,r.range])}},82609:(e,t,r)=>{r.d(t,{w:()=>a});var n=r(7552),o=r(94921);const l=!1,i=()=>{};function a(e,t,r){const a=n.useRef(null);a.current=t,(0,o.A)((()=>{if(!1===r||"undefined"==typeof ResizeObserver)return i;let t=0;const n=e.current,o=new ResizeObserver((e=>{l?t=requestAnimationFrame((()=>{a.current(e)})):a.current(e)}));return n&&o.observe(n),()=>{t&&cancelAnimationFrame(t),o.disconnect()}}),[e,r])}},61959:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(7552),o=r(94921);const l=()=>{},i=(e,t)=>{const r=n.useRef(!1);(0,o.A)((()=>r.current||!e?l:(r.current=!0,t())),[r.current||e])}},98571:(e,t,r)=>{r.d(t,{Y:()=>o});var n=r(36155);const o=(e,t,r,o,l)=>{const i=l.hasScrollY?l.scrollbarSize:0;let a;switch(e){case n.K.LEFT:a=o[r];break;case n.K.RIGHT:a=l.columnsTotalWidth-o[r]-t+i;break;default:a=0}return a}},80170:(e,t,r)=>{r.d(t,{$2:()=>p,A_:()=>C,Bn:()=>b,Cf:()=>R,Gf:()=>g,Kw:()=>d,T5:()=>s,U_:()=>S,Ui:()=>u,aC:()=>H,ay:()=>l,c8:()=>M,dc:()=>m,e2:()=>A,fX:()=>a,gC:()=>f,hR:()=>E,j8:()=>k,jS:()=>P,jt:()=>x,jy:()=>F,lj:()=>c,qb:()=>I,r$:()=>h,v$:()=>w,xC:()=>i,yd:()=>v,yk:()=>y}),r(7552);var n=r(74893),o=r(69500);const l=(0,n.A)((0,o.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),i=(0,n.A)((0,o.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),a=(0,n.A)((0,o.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),s=(0,n.A)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),u=(0,n.A)((0,o.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),c=(0,n.A)((0,o.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"),d=(0,n.A)((0,o.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"),p=(0,n.A)((0,o.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),f=(0,n.A)((0,o.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"),g=(0,n.A)((0,o.jsx)("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),h=(0,n.A)((0,o.jsx)("path",{d:"M11 19V5h2v14z"}),"Separator"),m=(0,n.A)((0,o.jsx)("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),b=(0,n.A)((0,o.jsx)("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),w=(0,n.A)((0,o.jsx)("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),C=(0,n.A)((0,o.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"),v=(0,n.A)((0,o.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"),x=(0,n.A)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),y=(0,n.A)((0,o.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),A=(0,n.A)((0,o.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"),R=(0,n.A)((0,o.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"),S=(0,n.A)((0,o.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),I=(0,n.A)((0,o.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),M=(0,n.A)((0,o.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"),k=(0,n.A)((0,o.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"),P=(0,n.A)((0,o.jsx)("g",{children:(0,o.jsx)("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),E=(0,n.A)((0,o.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"}),"Clear"),F=(0,n.A)((0,o.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"),H=(0,n.A)((0,o.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")},20581:(e,t,r)=>{function n(e){return void 0!==e.field}r.d(t,{x:()=>n})},87795:(e,t,r)=>{r.d(t,{RL:()=>n,V_:()=>l,bs:()=>o});var n=function(e){return e.Cell="cell",e.Row="row",e}(n||{}),o=function(e){return e.Edit="edit",e.View="view",e}(o||{}),l=function(e){return e.Edit="edit",e.View="view",e}(l||{})},93527:(e,t,r)=>{r.d(t,{V:()=>n});var n=function(e){return e.And="and",e.Or="or",e}(n||{})},88729:(e,t,r)=>{r.d(t,{Q:()=>o,a:()=>n});var n=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(n||{}),o=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(o||{})},89037:(e,t,r)=>{r.d(t,{a:()=>n,q:()=>o});var n=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(n||{}),o=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(o||{})},4780:(e,t,r)=>{r.d(t,{L:()=>o,o:()=>l});var n=r(36155);const o=(e,t,r,o,l)=>{const i=t===r-1;return!(e!==n.K.LEFT||!i)||!!o&&(e===n.K.LEFT||(e===n.K.RIGHT?!i:!i||l))},l=(e,t)=>e===n.K.RIGHT&&0===t},90810:(e,t,r)=>{function n(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var l,i=0,a={memoizeOptions:void 0},s=n.pop();if("object"==typeof s&&(a=s,s=n.pop()),"function"!=typeof s)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof s+"]");var u=a.memoizeOptions,c=void 0===u?r:u,d=Array.isArray(c)?c:[c],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var r=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return t}(n),f=e.apply(void 0,[function(){return i++,s.apply(null,arguments)}].concat(d)),g=e((function(){for(var e=[],t=p.length,r=0;r<t;r++)e.push(p[r].apply(null,arguments));return l=f.apply(null,e)}));return Object.assign(g,{resultFunc:s,memoizedResultFunc:f,dependencies:p,lastResult:function(){return l},recomputations:function(){return i},resetRecomputations:function(){return i=0}}),g}}r.d(t,{M:()=>u,S:()=>c});var o=n(r(83726).UI),l=r(94251);const i=new WeakMap;function a(e){return"current"in e&&"instanceId"in e.current}(0,l.f)(["MUI X: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, for example `mySelector(apiRef)`, or pass the instance ID explicitly, for example `mySelector(state, apiRef.current.instanceId)`."]);const s={id:"default"},u=(e,t,r,n,o,l,...i)=>{if(i.length>0)throw new Error("Unsupported number of selectors");let u;if(e&&t&&r&&n&&o&&l)u=(i,u)=>{const c=a(i),d=u??(c?i.current.instanceId:s),p=c?i.current.state:i,f=e(p,d),g=t(p,d),h=r(p,d),m=n(p,d),b=o(p,d);return l(f,g,h,m,b)};else if(e&&t&&r&&n&&o)u=(l,i)=>{const u=a(l),c=i??(u?l.current.instanceId:s),d=u?l.current.state:l,p=e(d,c),f=t(d,c),g=r(d,c),h=n(d,c);return o(p,f,g,h)};else if(e&&t&&r&&n)u=(o,l)=>{const i=a(o),u=l??(i?o.current.instanceId:s),c=i?o.current.state:o,d=e(c,u),p=t(c,u),f=r(c,u);return n(d,p,f)};else if(e&&t&&r)u=(n,o)=>{const l=a(n),i=o??(l?n.current.instanceId:s),u=l?n.current.state:n,c=e(u,i),d=t(u,i);return r(c,d)};else{if(!e||!t)throw new Error("Missing arguments");u=(r,n)=>{const o=a(r),l=n??(o?r.current.instanceId:s),i=o?r.current.state:r,u=e(i,l);return t(u)}}return u.acceptsApiRef=!0,u},c=(...e)=>{const t=(t,r)=>{const n=a(t),l=n?t.current.instanceId:r??s,u=n?t.current.state:t,c=i.get(l),d=c??new Map,p=d?.get(e);if(d&&p)return p(u,l);const f=o(...e);return c||i.set(l,d),d.set(e,f),f(u,l)};return t.acceptsApiRef=!0,t}},10930:(e,t,r)=>{r.d(t,{$c:()=>y,Bx:()=>f,Dq:()=>h,Dy:()=>o,Rb:()=>g,TA:()=>d,Tq:()=>p,YI:()=>m,Zw:()=>x,dL:()=>A,fl:()=>l,iF:()=>w,j4:()=>R,mH:()=>C,u:()=>a,v_:()=>u,xE:()=>c});var n=r(76959);function o(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function l(e,t){return e.closest(`.${t}`)}function i(e){return e.replace(/["\\]/g,"\\$&")}function a(e,t){return e.querySelector(`[role="columnheader"][data-field="${i(t)}"]`)}function s(e){return`.${n.x.row}[data-id="${i(String(e))}"]`}function u(e,t){return e.querySelector(s(t))}function c(e,{id:t,field:r}){const o=`${s(t)} .${n.x.cell}[data-field="${i(r)}"]`;return e.querySelector(o)}function d(e){return 1===e.target.nodeType&&!e.currentTarget.contains(e.target)}function p(e){return e.getAttribute("data-field")}function f(e,t){return e.querySelector(`[data-field="${t}"]`)}function g(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${t}-|"]`)??[])}function h(e,t){if(!l(e,n.x.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const o=Number(r)-1,i=[];return t.virtualScrollerRef?.current?(S(t).forEach((e=>{const r=e.getAttribute("data-id");if(!r)return;let n=o;const l=t.unstable_getCellColSpanInfo(r,o);l&&l.spannedByColSpan&&(n=l.leftVisibleCellIndex);const a=e.querySelector(`[data-colindex="${n}"]`);a&&i.push(a)})),i):[]}function m(e,t){return e.rootElementRef.current.querySelector(`.${n.x[t]}`)}const b=({api:e,colIndex:t,position:r,filterFn:o})=>{if(null===t)return[];const l=[];return S(e).forEach((e=>{e.getAttribute("data-id")&&e.querySelectorAll(`.${n.x["left"===r?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach((e=>{const t=I(e);null!==t&&o(t)&&l.push(e)}))})),l};function w(e,t){const r=I(t);return b({api:e,colIndex:r,position:"left",filterFn:e=>e>r})}function C(e,t){const r=I(t);return b({api:e,colIndex:r,position:"right",filterFn:e=>e<r})}const v=({api:e,colIndex:t,position:r,filterFn:o})=>{if(!e.columnHeadersContainerRef?.current)return[];if(null===t)return[];const l=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${n.x["left"===r?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach((e=>{const t=I(e);null!==t&&o(t)&&l.push(e)})),l};function x(e,t){const r=I(t);return v({api:e,position:"left",colIndex:r,filterFn:e=>e>r})}function y(e,t){const r=I(t);return v({api:e,position:"right",colIndex:r,filterFn:e=>e<r})}function A(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${t}"][role="columnheader"]`)}function R(e,t){const r=e.virtualScrollerRef.current;return Array.from(r.querySelectorAll(`:scope > div > div > div > [data-field="${t}"][role="gridcell"]`))}function S(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${n.x.row}`)}function I(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}},56691:(e,t,r)=>{r.d(t,{n:()=>l});var n=r(7552),o=r(56381);function l(e){return n.memo(e,o.v)}},56381:(e,t,r)=>{r.d(t,{v:()=>o});const n=Object.is;function o(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let r=0,o=0;for(const o in e){if(r+=1,!n(e[o],t[o]))return!1;if(!(o in t))return!1}for(const e in t)o+=1;return r===o}},67129:(e,t,r)=>{r.d(t,{HF:()=>s,IA:()=>u,TW:()=>l,kx:()=>a,nx:()=>n,q9:()=>i,vY:()=>o});const n=e=>"Escape"===e,o=e=>"Tab"===e;function l(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}const i=e=>0===e.indexOf("Arrow")||0===e.indexOf("Page")||" "===e||"Home"===e||"End"===e,a=e=>!!e.key,s=e=>o(e)||n(e);function u(e){return!(!e.ctrlKey&&!e.metaKey||"v"!==e.key.toLowerCase()||e.shiftKey||e.altKey)}},58766:(e,t,r)=>{function n(e){return"number"==typeof e&&!Number.isNaN(e)}function o(e){return"function"==typeof e}function l(e){return"object"==typeof e&&null!==e}function i(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}function a(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}r.d(t,{Et:()=>n,Go:()=>p,Gv:()=>l,Hv:()=>c,Nt:()=>a,Tn:()=>o,nX:()=>d,qE:()=>s,s3:()=>i,y1:()=>u});const s=(e,t,r)=>Math.max(t,Math.min(r,e));function u(e,t){return Array.from({length:t-e}).map(((t,r)=>e+r))}function c(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n+=1)if(!c(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const r=Array.from(e.entries());for(let e=0;e<r.length;e+=1)if(!t.has(r[e][0]))return!1;for(let e=0;e<r.length;e+=1){const n=r[e];if(!c(n[1],t.get(n[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const r=Array.from(e.entries());for(let e=0;e<r.length;e+=1)if(!t.has(r[e][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n+=1)if(e[n]!==t[n])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 r=Object.keys(e),n=r.length;if(n!==Object.keys(t).length)return!1;for(let e=0;e<n;e+=1)if(!Object.prototype.hasOwnProperty.call(t,r[e]))return!1;for(let o=0;o<n;o+=1){const n=r[o];if(!c(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function d(e,t,r){const n=(o=e,()=>{let e=o+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296});var o;return()=>t+(r-t)*n()}function p(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}},94251:(e,t,r)=>{r.d(t,{f:()=>n});const n=(e,t="warning")=>{let r=!1;const n=Array.isArray(e)?e.join("\n"):e;return()=>{r||(r=!0,"error"===t?console.error(n):console.warn(n))}}},83726:(e,t,r)=>{r.d(t,{UI:()=>l});var n="NOT_FOUND",o=function(e,t){return e===t};function l(e,t){var r,l,i="object"==typeof t?t:{equalityCheck:t},a=i.equalityCheck,s=void 0===a?o:a,u=i.maxSize,c=void 0===u?1:u,d=i.resultEqualityCheck,p=function(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,o=0;o<n;o++)if(!e(t[o],r[o]))return!1;return!0}}(s),f=1===c?(r=p,{get:function(e){return l&&r(l.key,e)?l.value:n},put:function(e,t){l={key:e,value:t}},getEntries:function(){return l?[l]:[]},clear:function(){l=void 0}}):function(e,t){var r=[];function o(e){var o=r.findIndex((function(r){return t(e,r.key)}));if(o>-1){var l=r[o];return o>0&&(r.splice(o,1),r.unshift(l)),l.value}return n}return{get:o,put:function(t,l){o(t)===n&&(r.unshift({key:t,value:l}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(c,p);function g(){var t=f.get(arguments);if(t===n){if(t=e.apply(null,arguments),d){var r=f.getEntries().find((function(e){return d(e.value,t)}));r&&(t=r.value)}f.put(arguments,t)}return t}return g.clearCache=function(){return f.clear()},g}}}]);
//# sourceMappingURL=4169.1633a3d7.chunk.js.map