1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3027],{211:(e,t,r)=>{"use strict";r.d(t,{l2:()=>s,vR:()=>a});var o=r(44501),n=r(14232),l=r(37876);let i=n.createContext(void 0);function a(){let e=n.useContext(i);if(void 0===e)throw Error("MUI X: Missing context.");return e}function s({children:e}){let[t,r]=n.useState({columnsPanel:null,filterPanel:null,aiAssistantPanel:null}),a=n.useCallback((e,t)=>{r(r=>r[e]===t?r:(0,o.A)({},r,{[e]:t}))},[]),s=n.useCallback(e=>{a("columnsPanel",e)},[a]),u=n.useCallback(e=>{a("filterPanel",e)},[a]),c=n.useCallback(e=>{a("aiAssistantPanel",e)},[a]),d=n.useMemo(()=>({triggers:{columnsPanel:{element:t.columnsPanel,setRef:s},filterPanel:{element:t.filterPanel,setRef:u},aiAssistantPanel:{element:t.aiAssistantPanel,setRef:c}}}),[t,s,u,c]);return(0,l.jsx)(i.Provider,{value:d,children:e})}},900:(e,t,r)=>{"use strict";r.d(t,{Q:()=>l});var o=r(14232),n=r(7750);let l=()=>{let e=o.useContext(n.S);if(void 0===e)throw Error("MUI X: Could not find the Data Grid configuration context.\nIt looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.\nThis can also happen if you are bundling multiple versions of the Data Grid.");return e}},3304:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=r(14232).createContext()},3395:(e,t,r)=>{"use strict";r.d(t,{Ai:()=>y,O7:()=>w,RN:()=>C,ZI:()=>u,_J:()=>S,ee:()=>x,em:()=>f,od:()=>A,q6:()=>c,qA:()=>m,tW:()=>v,ux:()=>g,wx:()=>p});var o=r(77972),n=r(11798),l=r(51033),i=r(62497),a=r(19949);let s=(0,n.gz)(e=>e.filter),u=(0,n.Mz)(s,e=>e.filterModel),c=(0,n.Mz)(u,e=>e.quickFilterValues),d=(0,n.gz)(e=>e.visibleRowsLookup),p=(0,n.Mz)(s,e=>e.filteredRowsLookup);(0,n.Mz)(s,e=>e.filteredChildrenCountLookup),(0,n.Mz)(s,e=>e.filteredDescendantCountLookup);let f=(0,n.S)(d,l.J6,(e,t)=>(0,o.Z)(e)?t:t.filter(t=>!1!==e[t.id])),g=(0,n.S)(f,e=>e.map(e=>e.id)),h=(0,n.S)(p,l.J6,(e,t)=>(0,o.Z)(e)?t:t.filter(t=>!1!==e[t.id])),m=(0,n.S)(h,e=>e.map(e=>e.id));(0,n.S)(g,a.qj,(e,t)=>{let r={},o=0;return e.reduce((e,n)=>{let l=t[n];return r[l.depth]||(r[l.depth]=0),l.depth>o&&(r[l.depth]=0),o=l.depth,r[l.depth]+=1,e[n]=r[l.depth],e},{})});let b=(0,n.S)(h,a.qj,a.V2,(e,t,r)=>r<2?[e]:e.reduce((e,r)=>{let o=t[r.id]?.depth;return void 0===o||(e[o]||(e[o]=[]),e[o].push(r)),e},[[]])),v=(0,n.Mz)(b,e=>e[0]??[]),w=(0,n.Mz)(f,e=>e.length),C=(0,n.Mz)(v,e=>e.length),x=(0,n.Mz)(h,e=>e.length);(0,n.Mz)(x,C,(e,t)=>e-t);let y=(0,n.S)(u,i.gv,(e,t)=>e.items?.filter(e=>{if(!e.field)return!1;let r=t[e.field];if(!r?.filterOperators||r?.filterOperators?.length===0)return!1;let o=r.filterOperators.find(t=>t.value===e.operator);if(!o)return!1;let n=Array.isArray(e.value)?e.value.length>0:null!=e.value&&e.value?.toString()!=="";return!o.InputComponent||n})),A=(0,n.S)(y,e=>e.reduce((e,t)=>(e[t.field]?e[t.field].push(t):e[t.field]=[t],e),{})),S=(0,n.S)(g,e=>e.reduce((e,t,r)=>(e[t]=r,e),Object.create(null)))},3520:(e,t,r)=>{"use strict";let o,n;r.d(t,{z:()=>d$});var l,i=r(44501),a=r(14232),s=r(95062),u=r(78438),c=r(40670),d=r(69241),p=r(99351),f=r(75279),g=r(13323),h=r(50494);function m(e){return a.memo(e,h.v)}var b=r(66438),v=r(25640),w=r(95610),C=r(13731);let x=a.createContext(void 0);function y(){let e=a.useContext(x);if(void 0===e)throw Error("MUI X: Could not find the Data Grid private context.\nIt looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.\nThis can also happen if you are bundling multiple versions of the Data Grid.");return e}let A={width:3,rx:1.5,x:10.5},S=e=>e.current.state.dimensions.isReady?e.current.state.dimensions.hasScrollX&&(!e.current.state.dimensions.hasScrollY||0===e.current.state.dimensions.scrollbarSize):0===e.current.state.dimensions.scrollbarSize,R=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>{let r=[t.root];return v.cf.root.forEach(e=>{r.push({[`&.${v.xV[e]}`]:t[e]})}),v.cf.children.forEach(e=>{r.push({[`& .${v.xV[e]}`]:t[e]})}),r}})(()=>{let e=y(),t=(0,C.Nc)(e,S),r=w.f.colors.background.base,o=w.f.header.background.base,n=w.f.cell.background.pinned,l=M(w.f.colors.interactive.hover,1),i=w.f.colors.interactive.hoverOpacity,a=w.f.colors.interactive.selected,s=w.f.colors.interactive.selectedOpacity,u=`calc(${s} + ${i})`,c={hover:w.f.colors.interactive.hover,selected:a,selectedHover:a}
1,d=P(r,l,i,c.hover),p=P(r,a,s,c.selected),f=P(r,a,u,c.selectedHover),g=P(n,l,i,c.hover),h=P(n,a,s,c.selected),m=P(n,a,u,c.selectedHover),b=e=>({[`& .${v.xV["cell--pinnedLeft"]}, & .${v.xV["cell--pinnedRight"]}`]:{backgroundColor:e,"&.Mui-selected":{backgroundColor:P(e,p,s,c.selected),"&:hover":{backgroundColor:P(e,f,u,c.selectedHover)}}}}),x=b(g),R=b(h),I=b(m),k={backgroundColor:p,"&:hover":{backgroundColor:f,"@media (hover: none)":{backgroundColor:p}}};return{"--unstable_DataGrid-radius":w.f.radius.base,"--unstable_DataGrid-headWeight":w.f.typography.fontWeight.medium,"--DataGrid-rowBorderColor":w.f.colors.border.base,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:w.f.colors.border.base,borderRadius:"var(--unstable_DataGrid-radius)",backgroundColor:w.f.colors.background.base,color:w.f.colors.foreground.base,font:w.f.typography.font.body,outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",transform:"translate(0, 0)",[`& .${v.xV.virtualScroller}`]:{overflowAnchor:"none"},[`.${v.xV.main} > *:first-child/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${v.xV.autoHeight}`]:{height:"auto"},[`&.${v.xV.autosizing}`]:{[`& .${v.xV.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${v.xV.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${v.xV.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${v.xV.groupingCriteriaCell}`]:{width:"unset"},[`& .${v.xV.treeDataGroupingCell}`]:{width:"unset"},[`& .${v.xV["columnHeader--filter"]}`]:{flex:"none !important",width:"unset !important"}},[`&.${v.xV.withSidePanel}`]:{flexDirection:"row"},[`& .${v.xV.mainContent}`]:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1},[`& .${v.xV.columnHeader}, & .${v.xV.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${v.xV.columnHeader}:focus-within, & .${v.xV.cell}:focus-within`]:{outline:`solid ${M(w.f.colors.interactive.focus,.5)} 1px`,outlineOffset:-1},[`& .${v.xV.columnHeader}:focus, & .${v.xV.cell}:focus`]:{outline:`solid ${w.f.colors.interactive.focus} 1px`,outlineOffset:-1},[`& .${v.xV.columnHeader}:focus, 2 & .${v.xV["columnHeader--withLeftBorder"]}, 3 & .${v.xV["columnHeader--withRightBorder"]}, 4 & .${v.xV["columnHeader--siblingFocused"]} 5 `]:{[`& .${v.xV.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${v.xV["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${v.xV["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${v.xV["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${v.xV["root--noToolbar"]} [aria-rowindex="1"] .${v.xV["columnHeader--last"]}`]:{borderTopRightRadius:t?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${v.xV.columnHeaderCheckbox}, & .${v.xV.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${v.xV.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",backgroundColor:o},[`& .${v.xV.columnHeader} .${v.xV.sortButton}`]:{backgroundColor:w.f.header.background.base},[`& .${v.xV["columnHeader--filter"]}`]:{paddingTop:8,paddingBottom:8,paddingRight:5,minHeight:"min-content",overflow:"hidden"},[`&.${v.xV["root--densityCompact"]} .${v.xV["columnHeader--filter"]}`]:{paddingTop:4,paddingBottom:4},[`& .${v.xV["virtualScroller--hasScrollX"]} .${v.xV["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${v.xV["pivotPanelField--sorted"]} .${v.xV.iconButtonContainer}, 6 & .${v.xV["columnHeader--sorted"]} .${v.xV.iconButtonContainer}, 7 & .${v.xV["columnHeader--filtered"]} .${v.xV.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${v.xV.pivotPanelField}:not(.${v.xV["pivotPanelField--sorted"]}) .${v.xV.sortButton}, 8 & .${v.xV.columnHeader}:not(.${v.xV["columnHeader--sorted"]}) .${v.xV.sortButton}`]:{opacity:0,transition:w.f.transition(["opacity"],{duration:w.f.transitions.duration.short})},[`& .${v.xV.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:w.f.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${v.xV.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${v.xV["columnHeader--filledGroup"]} .${v.xV.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${v.xV.sortIcon}, & .${v.xV.filterIcon}`]:{fontSize:"inherit"},[`& .${v.xV["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${v.xV["columnHeader--alignCenter"]} .${v.xV.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${v.xV["columnHeader--alignRight"]} .${v.xV.columnHeaderDraggableContainer}, & .${v.xV["columnHeader--alignRight"]} .${v.xV.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${v.xV["columnHeader--alignCenter"]} .${v.xV.menuIcon}`]:{marginLeft:"auto"},[`& .${v.xV["columnHeader--alignRight"]} .${v.xV.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${v.xV["columnHeader--moving"]}`]:{backgroundColor:d},[`& .${v.xV["columnHeader--pinnedLeft"]}, & .${v.xV["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:w.f.header.background.base},[`& .${v.xV.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:10,color:w.f.colors.border.base},[`& .${v.xV.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)",backgroundColor:o},"@media (hover: hover)":{[`& .${v.xV.columnHeader}:hover`]:{[`& .${v.xV.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${v.xV.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${v.xV.columnHeader}:not(.${v.xV["columnHeader--sorted"]}):hover .${v.xV.sortButton}, 9 & .${v.xV.pivotPanelField}:not(.${v.xV["pivotPanelField--sorted"]}):hover .${v.xV.sortButton}, 10 & .${v.xV.pivotPanelField}:not(.${v.xV["pivotPanelField--sorted"]}) .${v.xV.sortButton}:focus-visible`]:{opacity:1},[`& .${v.xV.columnHeader}:not(.${v.xV["columnHeader--sorted"]}):hover .${v.xV.sortButton} > *, 11 & .${v.xV.pivotPanelField}:not(.${v.xV["pivotPanelField--sorted"]}):hover .${v.xV.sortButton} > *, 12 & .${v.xV.pivotPanelField}:not(.${v.xV["pivotPanelField--sorted"]}) .${v.xV.sortButton}:focus-visible > *`]:{opacity:.78},[`& .${v.xV.pivotPanelFieldActionContainer} button:hover`]:{backgroundColor:w.f.colors.background.base}},"@media (hover: none)":{[`& .${v.xV.columnHeader} .${v.xV.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${v.xV.columnHeader}:focus, 13 & .${v.xV["columnHeader--siblingFocused"]}`]:{[`.${v.xV["columnSeparator--resizable"]}`]:{color:w.f.colors.foreground.accent}},[`& .${v.xV.pivotPanelField}:not(.${v.xV["pivotPanelField--sorted"]}) .${v.xV.sortButton}`]:{opacity:.78}},[`& .${v.xV["columnHeader--withLeftBorder"]} .${v.xV["columnSeparator--sideLeft"]}:not(.${v.xV["columnSeparator--resizable"]}), & .${v.xV["columnHeader--withRightBorder"]} .${v.xV["columnSeparator--sideRight"]}
13:not(.${v.xV["columnSeparator--resizable"]})`]:{display:"none"},[`& .${v.xV["columnSeparator--sideLeft"]}`]:{left:-5},[`& .${v.xV["columnSeparator--sideRight"]}`]:{right:-5},[`& .${v.xV["columnHeader--withRightBorder"]} .${v.xV["columnSeparator--sideLeft"]}`]:{left:-5.5},[`& .${v.xV["columnHeader--withRightBorder"]} .${v.xV["columnSeparator--sideRight"]}`]:{right:-5.5},[`& .${v.xV["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${v.xV["columnSeparator--resizing"]}`]:{color:w.f.colors.foreground.accent},"@media (hover: none)":{[`& .${v.xV.iconSeparator} rect`]:A},"@media (hover: hover)":{"&:hover":{color:w.f.colors.foreground.accent,[`& .${v.xV.iconSeparator} rect`]:A}},"& svg":{pointerEvents:"none"}},[`& .${v.xV.iconSeparator}`]:{color:"inherit",transition:w.f.transition(["color","width"],{duration:w.f.transitions.duration.short})},[`& .${v.xV.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${v.xV.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${v.xV.headerFilterRow}`]:{[`& .${v.xV.columnHeader}, & .${v.xV.scrollbarFiller}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${v.xV["row--borderBottom"]} .${v.xV.columnHeader}, 14 & .${v.xV["row--borderBottom"]} .${v.xV.filler}, 15 & .${v.xV["row--borderBottom"]} .${v.xV.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${v.xV["row--borderBottom"]} .${v.xV.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${v.xV.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${v.xV["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:d,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${v.xV.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":k,position:"relative"},[`& .${v.xV.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":k},[`& .${v.xV["virtualScrollerContent--overflowed"]} .${v.xV["row--lastVisible"]} .${v.xV.cell}`]:{borderTopColor:"transparent"},[`& .${v.xV.pinnedRows} .${v.xV.row}, .${v.xV.aggregationRowOverlayWrapper} .${v.xV.row}`]:{backgroundColor:n,"&:hover":{backgroundColor:g}},[`& .${v.xV["pinnedRows--top"]} :first-of-type`]:{[`& .${v.xV.cell}, .${v.xV.scrollbarFiller}`]:{borderTop:"none"}},[`&.${v.xV["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${v.xV["row--dynamicHeight"]} > .${v.xV.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${v.xV.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${v.xV.cell}.${v.xV["cell--selectionMode"]}`]:{cursor:"default"},[`& .${v.xV.cell}.${v.xV["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:w.f.shadows.base,backgroundColor:w.f.colors.background.overlay,"&:focus-within":{outline:`1px solid ${w.f.colors.interactive.focus}`,outlineOffset:-1}},[`& .${v.xV["cell--editing"]}`]:{"& .MuiInputBase-root":{height:"100%"}},[`& .${v.xV["row--editing"]}`]:{boxShadow:w.f.shadows.base},[`& .${v.xV["row--editing"]} .${v.xV.cell}`]:{boxShadow:"none",backgroundColor:w.f.colors.background.overlay},[`& .${v.xV.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${v.xV.booleanCell}[data-value="true"]`]:{color:w.f.colors.foreground.muted},[`& .${v.xV.booleanCell}[data-value="false"]`]:{color:w.f.colors.foreground.disabled},[`& .${v.xV.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:w.f.spacing(1)},[`& .${v.xV.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:w.f.colors.interactive.disabledOpacity},[`& .${v.xV["rowReorderCell--draggable"]}`]:{cursor:"grab",opacity:1},[`& .${v.xV.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${v.xV.withBorderColor}`]:{borderColor:w.f.colors.border.base},[`& .${v.xV["cell--withLeftBorder"]}, & .${v.xV["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${v.xV["cell--withRightBorder"]}, & .${v.xV["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${v.xV["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${v.xV["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${v.xV["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${v.xV["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${v.xV["cell--pinnedLeft"]}, & .${v.xV["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:w.f.cell.background.pinned,"&.Mui-selected":{backgroundColor:h}},[`& .${v.xV.row}`]:{"&:hover":x,"&.Mui-selected":R,"&.Mui-selected:hover":I},[`& .${v.xV.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${v.xV.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${v.xV.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${v.xV.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${v.xV["columnHeader--dragging"]}`]:{background:w.f.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:w.f.colors.interactive.disabledOpacity},[`& .${v.xV["row--dragging"]}`]:{background:w.f.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",border:"1px solid var(--DataGrid-rowBorderColor)",color:w.f.colors.foreground.base,transform:"translateZ(0)",[`& .${v.xV.rowReorderCellPlaceholder}`]:{padding:"0 6px",display:"flex"}},[`& .${v.xV.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${v.xV.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:w.f.spacing(2)},[`& .${v.xV.treeDataGroupingCellLoadingContainer}
15, .${v.xV.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${v.xV.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${v.xV.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:w.f.spacing(2)},[`& .${v.xV.columnHeaders} .${v.xV.scrollbarFiller}`]:{backgroundColor:o},[`.${v.xV.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",backgroundColor:o,[`&.${v.xV["scrollbarFiller--pinnedRight"]}`]:{position:"sticky",zIndex:40,right:0}},[`& .${v.xV.filler}`]:{flex:"1 0 auto"},[`& .${v.xV["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${v.xV.columnHeaders} .${v.xV.filler}`]:{backgroundColor:o},[`& .${v.xV["main--hiddenContent"]}`]:{[`& .${v.xV.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${v.xV.pinnedRows}`]:{display:"none"}},[`& .${v.xV["row--beingDragged"]}`]:{color:w.f.colors.foreground.disabled,"&:hover":{backgroundColor:"transparent"}}}});function M(e,t){return`rgba(from ${e} r g b / ${t})`}let I="undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("color","color-mix(in srgb, red 50%, blue 50%)"),k=(e,t)=>I?e:t;function P(e,t,r,o){return k(`color-mix(in srgb,${e}, ${t} calc(${r} * 100%))`,o)}var E=r(57641),T=r(96188),F=r(65765),D=r(38806);let O=()=>()=>{},z=()=>!1,H=()=>!0;var V=r(62497),j=r(50570),N=r(56827),L=r(58193),$=r(211),B=r(37876);function G(){let e=(0,L.h)(),t=(0,C.Nc)(e,V.OV),r=(0,T.A)(),o=(0,C.Nc)(e,j._),{triggers:n}=(0,$.vR)(),l=e.current.unstable_applyPipeProcessors("preferencePanel",null,o.openedPanelValue??N.y.filters),a=null;switch(o.openedPanelValue){case N.y.filters:a=n.filterPanel.element;break;case N.y.columns:a=n.columnsPanel.element;break;case N.y.aiAssistant:a=n.aiAssistantPanel.element}return(0,B.jsx)(r.slots.panel,(0,i.A)({id:o.panelId,open:t.length>0&&o.open,"aria-labelledby":o.labelId,target:a,onClose:()=>e.current.hidePreferences()},r.slotProps?.panel,{children:l}))}function W(){let e=(0,T.A)();return(0,B.jsxs)(a.Fragment,{children:[(0,B.jsx)(G,{}),e.showToolbar&&(0,B.jsx)(e.slots.toolbar,(0,i.A)({},e.slotProps?.toolbar))]})}let U=("undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"empty").includes("firefox"),_="@supports (-webkit-touch-callout: none)",q="undefined"!=typeof window&&/jsdom|HappyDOM/.test(window.navigator.userAgent);var K=r(11798);let X=(0,K.gz)(e=>e.dimensions),Y=(0,K.Mz)(X,e=>e.columnsTotalWidth),Q=(0,K.Mz)(X,e=>e.rowHeight);(0,K.Mz)(X,e=>e.contentSize.height);let Z=(0,K.Mz)(X,e=>e.hasScrollX),J=(0,K.Mz)(X,e=>e.hasScrollY),ee=(0,K.Mz)(X,e=>e.columnsTotalWidth<e.viewportOuterSize.width),et=(0,K.Mz)(X,e=>e.headerHeight),er=(0,K.Mz)(X,e=>e.groupHeaderHeight);(0,K.Mz)(X,e=>e.headerFilterHeight);let eo=(0,K.Mz)(X,e=>e.hasScrollX?e.scrollbarSize:0),en=(0,K.Mz)(X,e=>e.hasScrollY?e.scrollbarSize:0),el=(0,K.Mz)(X,eo,(e,t)=>{let r=e.viewportOuterSize.height-e.minimumSize.height>0;return 0!==t||!!r});var ei=r(19949),ea=r(89335);class es{timeouts=new Map;cleanupTimeout=1e3;constructor(e=1e3){this.cleanupTimeout=e}register(e,t,r){this.timeouts||(this.timeouts=new Map);let o=setTimeout(()=>{"function"==typeof t&&t(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(e){let 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 eu{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(){}}class ec{static create(){return new ec}}let ed={current:"undefined"!=typeof FinalizationRegistry?new eu:new es},ep=0;function ef(e,t,r,o){let n=a.useState(ec.create)[0],l=a.useRef(null),i=a.useRef(null);i.current=r;let s=a.useRef(null);!l.current&&i.current?(l.current=e.current.subscribeEvent(t,(e,t,r)=>{t&&!t.defaultMuiPrevented&&i.current?.(e,t,r)},o),s.current={cleanupToken:ep+=1},ed.current.register(n,()=>{l.current?.(),l.current=null,s.current=null},s.current)):!i.current&&l.current&&(l.current(),l.current=null,s.current&&(ed.current.unregister(s.current),s.current=null)),a.useEffect(()=>(!l.current&&i.current&&(l.current=e.current.subscribeEvent(t,(e,t,r)=>{t&&!t.defaultMuiPrevented&&i.current?.(e,t,r)},o)),s.current&&ed.current&&(ed.current.unregister(s.current),s.current=null),()=>{l.current?.(),l.current=null}),[e,t,o])}let eg={isFirst:!0};function eh(e,t,r){ef(e,t,r,eg)}var em=r(50655),eb=r(21591),ev=r(61013),ew=r(27460);let eC=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange","slotProps"],ex=(0,b.Ay)(ew.p,{name:"MuiDataGrid",slot:"EditInputCell"})({font:w.f.typography.font.body,padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),ey=(0,u.R)((e,t)=>{let r=(0,T.A)(),{id:o,value:n,field:l,colDef:s,hasFocus:u,debounceMs:d=200,isProcessingProps:p,onValueChange:f,slotProps:h}
15=e,m=(0,c.A)(e,eC),b=(0,L.h)(),w=a.useRef(null),[C,x]=a.useState(n),y=(e=>{let{classes:t}=e;return(0,g.A)({root:["editInputCell"]},v.B9,t)})(r),A=a.useCallback(async e=>{let t=e.target.value,r=b.current.getColumn(l),n=t;r.valueParser&&(n=r.valueParser(t,b.current.getRow(o),r,b)),x(n),b.current.setEditCellValue({id:o,field:l,value:n,debounceMs:d,unstable_skipValueParser:!0},e),f&&await f(e,t)},[b,d,l,o,f]),S=b.current.unstable_getEditCellMeta(o,l);return a.useEffect(()=>{S?.changeReason!=="debouncedSetEditCellValue"&&x(n)},[S,n]),(0,ev.A)(()=>{u&&w.current.focus()},[u]),(0,B.jsx)(ex,(0,i.A)({as:r.slots.baseInput,inputRef:w,className:y.root,ownerState:r,fullWidth:!0,type:"number"===s.type?s.type:"text",value:C??"",onChange:A,endAdornment:p?(0,B.jsx)(r.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},m,h?.root,{ref:t}))});var eA=r(18372);let eS=(e,t)=>t&&e.length>1?((0,eA.m)(["MUI X: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the Data Grid, this prop is always `true`."],"error"),[e[0]]):e,eR=(e,t)=>r=>(0,i.A)({},r,{sorting:(0,i.A)({},r.sorting,{sortModel:eS(e,t)})}),eM=(e,t)=>{let r=e.indexOf(t);return t&&-1!==r&&r+1!==e.length?e[r+1]:e[0]},eI=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,ek=new Intl.Collator,eP=(e,t)=>{let r=eI(e,t);return null!==r?r:Number(e)-Number(t)},eE=(e,t)=>{let r=eI(e,t);return null!==r?r:e>t?1:e<t?-1:0};var eT=r(19993);let eF=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","slotProps","clearButton","headerFilterMenu"];function eD(e){let{item:t,applyValue:r,type:o,apiRef:n,focusElementRef:l,tabIndex:s,disabled:u,slotProps:d,clearButton:p,headerFilterMenu:f}=e,g=(0,c.A)(e,eF),h=d?.root,m=(0,em.A)(),[b,v]=a.useState(eO(t.value)),[w,C]=a.useState(!1),x=(0,eT.A)(),y=(0,T.A)(),A=a.useCallback(e=>{let n=eO(e.target.value);v(n),C(!0),m.start(y.filterDebounceMs,()=>{r((0,i.A)({},t,{value:"number"!==o||Number.isNaN(Number(n))?n:Number(n),fromInput:x})),C(!1)})},[m,y.filterDebounceMs,t,o,x,r]);return a.useEffect(()=>{(t.fromInput!==x||null==t.value)&&v(eO(t.value))},[x,t]),(0,B.jsxs)(a.Fragment,{children:[(0,B.jsx)(y.slots.baseTextField,(0,i.A)({id:x,label:n.current.getLocaleText("filterPanelInputLabel"),placeholder:n.current.getLocaleText("filterPanelInputPlaceholder"),value:b??"",onChange:A,type:o||"text",disabled:u,slotProps:(0,i.A)({},h?.slotProps,{input:(0,i.A)({endAdornment:w?(0,B.jsx)(y.slots.loadIcon,{fontSize:"small",color:"action"}):null},h?.slotProps?.input),htmlInput:(0,i.A)({tabIndex:s},h?.slotProps?.htmlInput)}),inputRef:l},y.slotProps?.baseTextField,g,h)),f,p]})}function eO(e){if(null!=e&&""!==e)return String(e)}function ez(e){return"object"==typeof e&&null!==e}function eH(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}let eV=(e,t,r)=>Math.max(t,Math.min(r,e));function ej(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}let eN=(e,t)=>(...r)=>{e&&t(...r)},eL=["item","applyValue","type","apiRef","focusElementRef","slotProps"];function e$(e){let{item:t,applyValue:r,type:o,apiRef:n,focusElementRef:l,slotProps:s}=e,u=(0,c.A)(e,eL),d=(0,eT.A)(),[p,f]=a.useState([]),[g,h]=a.useState(t.value||[]),m=(0,T.A)();a.useEffect(()=>{h((t.value??[]).map(String))},[t.value]);let b=a.useCallback((e,n)=>{h(n.map(String)),r((0,i.A)({},t,{value:[...n.map(e=>"number"===o?Number(e):e)]}))},[r,t,o]),v=a.useCallback((e,t)=>{""===t?f([]):f([t])},[f]),w=m.slots.baseAutocomplete;return(0,B.jsx)(w,(0,i.A)({multiple:!0,freeSolo:!0,options:p,id:d,value:g,onChange:b,onInputChange:v,label:n.current.getLocaleText("filterPanelInputLabel"),placeholder:n.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:o||"text",inputRef:l}}},u,s?.root))}var eB=function(e){return e.And="and",e.Or="or",e}(eB||{});let eG={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},eW=()=>({items:[],logicOperator:eB.And,quickFilterValues:[],quickFilterLogicOperator:eB.And});function eU(e){return{current:e.current.getPublicApi()}}let e_=(e,t)=>
15{let r=(0,i.A)({},e);if(null==r.id&&(r.id=Math.round(1e5*Math.random())),null==r.operator){let e=(0,V.gv)(t)[r.field];r.operator=e&&e.filterOperators[0].value}return r},eq=(e,t,r)=>{let o,n=e.items.length>1;n&&t?((0,eA.m)(["MUI X: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the Data Grid, this prop is always `true`."],"error"),o=[e.items[0]]):o=e.items;let l=n&&o.some(e=>null==e.id),a=o.some(e=>null==e.operator);return(l&&(0,eA.m)("MUI X: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),a&&(0,eA.m)("MUI X: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),a||l)?(0,i.A)({},e,{items:o.map(e=>e_(e,r))}):e.items!==o?(0,i.A)({},e,{items:o}):e},eK=(e,t,r)=>o=>(0,i.A)({},o,{filterModel:eq(e,t,r)}),eX=e=>"string"==typeof e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,eY=(e,t,r)=>{let o;if(!e.field||!e.operator)return null;let n=r.current.getColumn(e.field);if(!n)return null;if(n.valueParser){let t=n.valueParser;o=Array.isArray(e.value)?e.value?.map(e=>t(e,void 0,n,r)):t(e.value,void 0,n,r)}else o=e.value;let{ignoreDiacritics:l}=r.current.rootProps;l&&(o=eX(o));let a=(0,i.A)({},e,{value:o}),s=n.filterOperators;if(!s?.length)throw Error(`MUI X: No filter operators found for column '${n.field}'.`);let u=s.find(e=>e.value===a.operator);if(!u)throw Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${a.operator}'.`);let c=eU(r),d=u.getApplyFilterFn(a,n);return"function"!=typeof d?null:{item:a,fn:e=>{let r=t(e,n);return l&&(r=eX(r)),d(r,e,n,c)}}},eQ=1,eZ=e=>null!=e,eJ=(e,t,r,o,n,l)=>{let i=((e,t,r,o)=>(e.cleanedFilterItems||(e.cleanedFilterItems=o.filter(e=>null!==eY(e,t,r))),e.cleanedFilterItems))(l,o,n,r.items),a=e.filter(eZ),s=t.filter(eZ);if(a.length>0){let e=e=>a.some(t=>t[e.id]);if((r.logicOperator??eW().logicOperator)===eB.And){if(!i.every(e))return!1}else if(!i.some(e))return!1}if(s.length>0&&null!=r.quickFilterValues){let e=e=>s.some(t=>t[e]);if((r.quickFilterLogicOperator??eW().quickFilterLogicOperator)===eB.And){if(!r.quickFilterValues.every(e))return!1}else if(!r.quickFilterValues.some(e))return!1}return!0},e0=(e,t)=>r=>{if(!r.value)return null;let o=RegExp(eH(e?r.value:r.value.trim()),"i");return e=>{if(null==e)return t;let r=o.test(String(e));return t?!r:r}},e1=(e,t)=>r=>{if(!r.value)return null;let o=e?r.value:r.value.trim(),n=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>{if(null==e)return t;let r=0===n.compare(o,e.toString());return t?!r:r}},e2=e=>()=>t=>{let r=""===t||null==t;return e?!r:r},e9={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,chartable:!0,editable:!1,sortComparator:(e,t)=>{let r=eI(e,t);return null!==r?r:"string"==typeof e?ek.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:((e=!1)=>[{value:"contains",getApplyFilterFn:e0(e,!1),InputComponent:eD},{value:"doesNotContain",getApplyFilterFn:e0(e,!0),InputComponent:eD},{value:"equals",getApplyFilterFn:e1(e,!1),InputComponent:eD},{value:"doesNotEqual",getApplyFilterFn:e1(e,!0),InputComponent:eD},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;let r=e?t.value:t.value.trim(),o=RegExp(`^${eH(r)}.*$`,"i");return e=>null!=e&&o.test(e.toString())},InputComponent:eD},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;let r=e?t.value:t.value.trim(),o=RegExp(`.*${eH(r)}$`,"i");return e=>null!=e&&o.test(e.toString())},InputComponent:eD},{value:"isEmpty",getApplyFilterFn:e2(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:e2(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||0===t.value.length)return null;let r=e?t.value:t.value.map(e=>e.trim()),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&r.some(t=>0===o.compare(t,e.toString()||""))},InputComponent:e$}])(),renderEditCell:e=>(0,B.jsx)(ey,(0,i.A)({},e)),getApplyQuickFilterFn:e=>{if(!e)return null;
15let t=RegExp(eH(e),"i");return(e,r,o,n)=>{let l=n.current.getRowFormattedValue(r,o);return n.current.ignoreDiacritics&&(l=eX(l)),null!=l&&t.test(l.toString())}}},e3=e=>null==e?null:Number(e),e5=(0,i.A)({},e9,{type:"number",align:"right",headerAlign:"right",sortComparator:eP,valueParser:e=>""===e?null:Number(e),valueFormatter:e=>!function(e){return"number"==typeof e&&!Number.isNaN(e)}(e)?e||"":e.toLocaleString(),filterOperators:[{value:"=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>e3(t)===e.value,InputComponent:eD,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>e3(t)!==e.value,InputComponent:eD,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&e3(t)>e.value,InputComponent:eD,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&e3(t)>=e.value,InputComponent:eD,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&e3(t)<e.value,InputComponent:eD,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&e3(t)<=e.value,InputComponent:eD,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:e$,InputComponentProps:{type:"number"}}],getApplyQuickFilterFn:e=>null==e||Number.isNaN(e)||""===e?null:t=>e3(t)===e3(e)}),e4=["item","applyValue","type","apiRef","focusElementRef","slotProps","isFilterActive","headerFilterMenu","clearButton","tabIndex","disabled"];function e6(e,t){if(null==e)return"";let r=new Date(e);return Number.isNaN(r.getTime())?"":"date"===t?r.toISOString().substring(0,10):"datetime-local"===t?(r.setMinutes(r.getMinutes()-r.getTimezoneOffset()),r.toISOString().substring(0,19)):r.toISOString().substring(0,10)}function e7(e){let{item:t,applyValue:r,type:o,apiRef:n,focusElementRef:l,slotProps:s,headerFilterMenu:u,clearButton:d,tabIndex:p,disabled:f}=e,g=(0,c.A)(e,e4),h=s?.root.slotProps,m=(0,em.A)(),[b,v]=a.useState(()=>e6(t.value,o)),[w,C]=a.useState(!1),x=(0,eT.A)(),y=(0,T.A)(),A=a.useCallback(e=>{m.clear();let o=e.target.value;v(o),C(!0),m.start(y.filterDebounceMs,()=>{let e=new Date(o);r((0,i.A)({},t,{value:Number.isNaN(e.getTime())?void 0:e})),C(!1)})},[r,t,y.filterDebounceMs,m]);return a.useEffect(()=>{v(e6(t.value,o))},[t.value,o]),(0,B.jsxs)(a.Fragment,{children:[(0,B.jsx)(y.slots.baseTextField,(0,i.A)({fullWidth:!0,id:x,label:n.current.getLocaleText("filterPanelInputLabel"),placeholder:n.current.getLocaleText("filterPanelInputPlaceholder"),value:b,onChange:A,type:o||"text",disabled:f,inputRef:l,slotProps:(0,i.A)({},h,{input:(0,i.A)({endAdornment:w?(0,B.jsx)(y.slots.loadIcon,{fontSize:"small",color:"action"}):null},h?.input),htmlInput:(0,i.A)({max:"datetime-local"===o?"9999-12-31T23:59":"9999-12-31",tabIndex:p},h?.htmlInput)})},y.slotProps?.baseTextField,g,s?.root)),u,d]})}function e8(e,t,r,o){if(!e.value)return null;let n=new Date(e.value);r?n.setSeconds(0,0):(n.setMinutes(n.getMinutes()+n.getTimezoneOffset()),n.setHours(0,0,0,0));let l=n.getTime();return e=>{if(!e)return!1;if(o)return t(e.getTime(),l);let n=new Date(e);return r?n.setSeconds(0,0):n.setHours(0,0,0,0),t(n.getTime(),l)}}let te=e=>[{value:"is",getApplyFilterFn:t=>e8(t,(e,t)=>e===t,e),InputComponent:e7,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>e8(t,(e,t)=>e!==t,e),InputComponent:e7,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>e8(t,(e,t)=>e>t,e,e),InputComponent:e7,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>e8(t,(e,t)=>e>=t,e,e),InputComponent:e7,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>e8(t,(e,t)=>e<t,e,!0),InputComponent:e7,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>e8(t,(e,t)=>e<=t,e,e),InputComponent:e7,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>null!=e,requiresFilterValue:!1}],tt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange","slotProps"],tr=(0,b.Ay)(ew.p,{slot:"internal"})({fontSize:"inherit"});function to(e){let{id:t,value:r,field:o,colDef:n,hasFocus:l,onValueChange:s,slotProps:u}=e,d=(0,c.A)(e,tt),p="dateTime"===n.type,f=(0,L.h)(),h=a.useRef(null),m=a.useMemo(()=>{let e,t;return t=null==(e=null==r?null:r instanceof Date?r:new Date((r??"").toString()))||Number.isNaN(e.getTime())?"":new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,p?16:10),{parsed:e,formatted:t}},[r,p]),[b,w]=a.useState(m),C=(0,T.A)(),x=(e=>{let{classes:t}=e;return(0,g.A)({root:["editInputCell"]},v.B9,t)})({classes:C.classes}),y=a.useCallback(e=>{if(""===e)return null;let[t,r]=e.split("T"),[o,n,l]=t.split("-"),i=new Date;if(i.setFullYear(Number(o),Number(n)-1,Number(l)),i.setHours(0,0,0,0),r){let[e,t]=r.split(":");i.setHours(Number(e),Number(t),0,0)}return i},[]),A=a.useCallback(async e=>{let r=e.target.value,n=y(r);s&&await s(e,n),w({parsed:n,formatted:r}),f.current.setEditCellValue({id:t,field:o,value:n},e)},[f,o,t,s,y]);return a.useEffect(()=>{w(e=>m.parsed!==e.parsed&&m.parsed?.getTime()!==e.parsed?.getTime()?m:e)},[m]),(0,ev.A)(()=>{l&&h.current.focus()},[l]),(0,B.jsx)(tr,(0,i.A)({as:C.slots.baseInput,inputRef:h,fullWidth:!0,className:x.root,type:p?"datetime-local":"date",value:b.formatted,onChange:A},d,u?.root,{slotProps:{htmlInput:(0,i.A)({max:p?"9999-12-31T23:59":"9999-12-31"},u?.root?.slotProps?.htmlInput)}}))}let tn=e=>(0,B.jsx)(to,(0,i.A)({},e));var tl=r(26011);let ti=(0,K.gz)((e,t)=>tl.gb in t?t[tl.gb]:e.props.getRowId?e.props.getRowId(t):t.id),ta=(0,K.gz)(e=>e.props.isRowSelectable);function ts({value:e,columnType:t,rowId:r,field:o}
15){if(!(e instanceof Date))throw Error(`MUI X: \`${t}\` column type only accepts \`Date\` objects as values. 16Use \`valueGetter\` to transform the value into a \`Date\` object. 17Row ID: ${r}, field: "${o}".`)}let tu=(0,i.A)({},e9,{type:"date",sortComparator:eE,valueFormatter:(e,t,r,o)=>{if(!e)return"";let n=ti(o,t);return!(0,tl.VO)(t)||e instanceof Date?(ts({value:e,columnType:"date",rowId:n,field:r.field}),e.toLocaleDateString()):e},filterOperators:te(),renderEditCell:tn,pastedValueParser:e=>new Date(e)}),tc=(0,i.A)({},e9,{type:"dateTime",sortComparator:eE,valueFormatter:(e,t,r,o)=>{if(!e)return"";let n=ti(o,t);return!(0,tl.VO)(t)||e instanceof Date?(ts({value:e,columnType:"dateTime",rowId:n,field:r.field}),e.toLocaleString()):e},filterOperators:te(!0),renderEditCell:tn,pastedValueParser:e=>new Date(e)}),td="__row_group_by_columns_group__",tp="__detail_panel_toggle__",tf=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({}),tg=["formattedValue","colDef","cellMode","row","api","id","value","rowNode","field","hasFocus","tabIndex","isEditable"],th=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"FooterCell"})({fontWeight:w.f.typography.fontWeight.medium,color:w.f.colors.foreground.accent}),tm=a.memo(function(e){let{formattedValue:t}=e,r=(0,c.A)(e,tg),o={classes:(0,T.A)().classes},n=(e=>{let{classes:t}=e;return(0,g.A)({root:["footerCell"]},v.B9,t)})(o);return(0,B.jsx)(th,(0,i.A)({ownerState:o,className:n.root},r,{children:t}))}),tb=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],tv=a.memo(function(e){let{value:t,rowNode:r}=e,o=(0,c.A)(e,tb),n=(0,L.h)(),l=(0,T.A)(),s=(e=>{let{classes:t}=e;return(0,g.A)({root:["booleanCell"]},v.B9,t)})({classes:l.classes}),u=(0,C.Nc)(n,ei.V2)>0&&"group"===r.type&&!1===l.treeData,d=a.useMemo(()=>t?l.slots.booleanCellTrueIcon:l.slots.booleanCellFalseIcon,[l.slots.booleanCellFalseIcon,l.slots.booleanCellTrueIcon,t]);return u&&void 0===t?null:(0,B.jsx)(d,(0,i.A)({fontSize:"small",className:s.root,titleAccess:n.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},o))}),tw=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function tC(e){let{id:t,value:r,field:o,className:n,hasFocus:l,onValueChange:s}=e,u=(0,c.A)(e,tw),p=(0,L.h)(),f=a.useRef(null),h=(0,eT.A)(),[m,b]=a.useState(r),w=(0,T.A)(),C=(e=>{let{classes:t}=e;return(0,g.A)({root:["editBooleanCell"]},v.B9,t)})({classes:w.classes}),x=a.useCallback(async e=>{let r=e.target.checked;s&&await s(e,r),b(r),await p.current.setEditCellValue({id:t,field:o,value:r},e)},[p,o,t,s]);return a.useEffect(()=>{b(r)},[r]),(0,ev.A)(()=>{l&&f.current.focus()},[l]),(0,B.jsx)("label",(0,i.A)({htmlFor:h,className:(0,d.A)(C.root,n)},u,{children:(0,B.jsx)(w.slots.baseCheckbox,(0,i.A)({id:h,inputRef:f,checked:!!m,onChange:x,size:"small"},w.slotProps?.baseCheckbox))}))}let tx=["item","applyValue","apiRef","focusElementRef","isFilterActive","headerFilterMenu","clearButton","tabIndex","slotProps"];function ty(e){return"true"===String(e).toLowerCase()||"false"!==String(e).toLowerCase()&&void 0}let tA=(0,i.A)({},e9,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:e=>{if(e.field!==td&&(0,tl.nF)(e.rowNode)){let t=e.aggregation;return t?"footer"===t.position?(0,B.jsx)(tm,(0,i.A)({},e)):e.formattedValue:""}return(0,B.jsx)(tv,(0,i.A)({},e))},renderEditCell:e=>(0,B.jsx)(tC,(0,i.A)({},e)),sortComparator:eP,valueFormatter:(e,t,r,o)=>e?o.current.getLocaleText("booleanCellTrueLabel"):o.current.getLocaleText("booleanCellFalseLabel"),filterOperators:[{value:"is",getApplyFilterFn:e=>{let t=ty(e.value);return void 0===t?null:e=>!!e===t},InputComponent:function(e){let{item:t,applyValue:r,apiRef:o,focusElementRef:n,headerFilterMenu:l,clearButton:s,tabIndex:u,slotProps:d}=e,p=(0,c.A)(e,tx),[f,g]=a.useState(ty(t.value)),h=(0,T.A)(),m=(0,eT.A)(),b=(0,eT.A)(),v=h.slotProps?.baseSelect||{},w=v.native??!1,C=h.slotProps?.baseSelectOption||{},x=a.useCallback(e=>{let o=ty(e.target.value);g(o),r((0,i.A)({},t,{value:o}))},[r,t]);a.useEffect(()=>{g(ty(t.value))},[t.value]);let y=d?.root.label??o.current.getLocaleText("filterPanelInputLabel"),A=d?.root.slotProps;return(0,B.jsxs)(a.Fragment,{children:[(0,B.jsxs)(h.slots.baseSelect,(0,i.A)({fullWidth:!0,labelId:m,id:b,label:y,value:void 0===f?"":String(f),onChange:x,native:w,slotProps:{htmlInput:(0,i.A)({ref:n,tabIndex:u},A?.htmlInput)}},v,p,d?.root,{children:[(0,B.jsx)(h.slots.baseSelectOption,(0,i.A)({},C,{native:w,value:"",children:o.current.getLocaleText("filterValueAny")})),(0,B.jsx)(h.slots.baseSelectOption,(0,i.A)({},C,{native:w,value:"true",children:o.current.getLocaleText("filterValueTrue")})),(0,B.jsx)(h.slots.baseSelectOption,(0,i.A)({},C,{native:w,value:"false",children:o.current.getLocaleText("filterValueFalse")}))]})),l,s]})}}],getApplyQuickFilterFn:()=>null,chartable:!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)});var tS=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(tS||{}),tR=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(tR||{}),tM=function(e){return e.Cell="cell",e.Row="row",e}(tM||{}),tI=function(e){return e.Edit="edit",e.View="view",e}(tI||{}),tk=function(e){return e.Edit="edit",e.View="view",e}(tk||{});function tP(e){return e?.type==="singleSelect"}function tE(e,t){if(e)return"function"==typeof e.valueOptions?e.valueOptions((0,i.A)({field:e.field},t)):e.valueOptions}function tT(e,t,r){if(void 0===t)return;let o=t.find(t=>String(r(t))===String(e));return r(o)}let tF=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","slotProps"];function tD(e){let t=(0,T.A)(),{id:r,value:o,field:n,row:l,colDef:s,hasFocus:u,error:d,onValueChange:p,initialOpen:f=t.editMode===tM.Cell,slotProps:g}=e,h=(0,c.A)(e,tF),m=(0,L.h)(),b=a.useRef(null),v=a.useRef(null),[w,C]=a.useState(f),x=(t.slotProps?.baseSelect||{}).native??!1;if((0,ev.A)(()=>{u&&v.current?.focus()},[u]),!tP(s))return null;let y=tE(s,{id:r,row:l});if(!y)return null;let A=s.getOptionValue,S=s.getOptionLabel,R=async e=>{if(!tP(s)||!y)return;C(!1);let t=tT(e.target.value,y,A);p&&await p(e,t),await m.current.setEditCellValue({id:r,field:n,value:t},e)};return y&&s?(0,B.jsx)(t.slots.baseSelect,(0,i.A)({ref:b,value:o,onChange:R,open:w,onOpen:e=>{"key"in e&&e.key&&"Enter"===e.key||C(!0)},onClose:(e,o)=>{if(t.editMode===tM.Row)return void C(!1);if("backdropClick"===o||"Escape"===e.key){let t=m.current.getCellParams(r,n);m.current.publishEvent("cellEditStop",(0,i.A)({},t,{reason:"Escape"===e.key?tR.escapeKeyDown:tR.cellFocusOut}))}},error:d,native:x,fullWidth:!0,slotProps:{htmlInput:{ref:v}}},h,g?.root,t.slotProps?.baseSelect,{children:y.map(e=>{let r=A(e);return(0,a.createElement)(t.slots.baseSelectOption,(0,i.A)({},t.slotProps?.baseSelectOption||{},{native:x,key:r,value:r}),S(e))})})):null}let tO=["item","applyValue","type","apiRef","focusElementRef","tabIndex","isFilterActive","clearButton","headerFilterMenu","slotProps"];function tz(e){let{item:t,applyValue:r,type:o,apiRef:n,focusElementRef:l,tabIndex:s,clearButton:u,headerFilterMenu:d,slotProps:p}=e,f=(0,c.A)(e,tO),g=t.value??"",h=(0,eT.A)(),m=(0,eT.A)(),b=(0,T.A)(),v=b.slotProps?.baseSelect?.native??!1,w=n.current.getColumn(t.field),C=w.getOptionValue,x=w.getOptionLabel,y=a.useMemo(()=>tE(w),[w]),A=a.useCallback(e=>{let o=e.target.value;o=tT(o,y,C),r((0,i.A)({},t,{value:o}))},[y,C,r,t]);if(!w||!tP(w))return null;let S=p?.root.label??n.current.getLocaleText("filterPanelInputLabel");return(0,B.jsxs)(a.Fragment,{children:[(0,B.jsx)(b.slots.baseSelect,(0,i.A)({fullWidth:!0,id:h,label:S,labelId:m,value:g,onChange:A,slotProps:{htmlInput:(0,i.A)({tabIndex:s,ref:l,type:o||"text",placeholder:p?.root.placeholder??n.current.getLocaleText("filterPanelInputPlaceholder")},p?.root.slotProps?.htmlInput)},native:v},b.slotProps?.baseSelect,f,p?.root,{children:(({column:e,OptionComponent:t,getOptionLabel:r,getOptionValue:o,isSelectNative:n,baseSelectOptionProps:l})=>["",...tE(e)||[]].map(e=>{let s=o(e),u=r(e);return""===u&&(u="â"),(0,a.createElement)(t,(0,i.A)({},l,{native:n,key:s,value:s}),u)}))({column:w,OptionComponent:b.slots.baseSelectOption,getOptionLabel:x,getOptionValue:C,isSelectNative:v,baseSelectOptionProps:b.slotProps?.baseSelectOption})})),d,u]})}let tH=["item","applyValue","type","apiRef","focusElementRef","slotProps"],tV=e=>null!=e&&ez(e)?e.value:e,tj=(0,i.A)({},e9,{type:"singleSelect",getOptionLabel:e=>ez(e)?e.label:String(e),getOptionValue:e=>ez(e)?e.value:e,valueFormatter(e,t,r,o){let n=ti(o,t);
17if(!tP(r))return"";let l=tE(r,{id:n,row:t});if(null==e)return"";if(!l)return e;if("object"!=typeof l[0])return r.getOptionLabel(e);let i=l.find(t=>r.getOptionValue(t)===e);return i?r.getOptionLabel(i):""},renderEditCell:e=>(0,B.jsx)(tD,(0,i.A)({},e)),filterOperators:[{value:"is",getApplyFilterFn:e=>null==e.value||""===e.value?null:t=>tV(t)===tV(e.value),InputComponent:tz},{value:"not",getApplyFilterFn:e=>null==e.value||""===e.value?null:t=>tV(t)!==tV(e.value),InputComponent:tz},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;let t=e.value.map(tV);return e=>t.includes(tV(e))},InputComponent:function(e){let{item:t,applyValue:r,type:o,apiRef:n,focusElementRef:l,slotProps:s}=e,u=(0,c.A)(e,tH),d=(0,eT.A)(),p=(0,T.A)(),f=n.current.getColumn(t.field),g=f.getOptionValue,h=f.getOptionLabel,m=a.useCallback((e,t)=>g(e)===g(t),[g]),b=a.useMemo(()=>tE(f)||[],[f]),v=a.useMemo(()=>Array.isArray(t.value)?t.value.reduce((e,t)=>{let r=b.find(e=>g(e)===t);return null!=r&&e.push(r),e},[]):[],[g,t.value,b]),w=a.useCallback((e,o)=>{r((0,i.A)({},t,{value:o.map(g)}))},[r,t,g]);if(!f||!tP(f))return null;let C=p.slots.baseAutocomplete;return(0,B.jsx)(C,(0,i.A)({multiple:!0,options:b,isOptionEqualToValue:m,id:d,value:v,onChange:w,getOptionLabel:h,label:n.current.getLocaleText("filterPanelInputLabel"),placeholder:n.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:o||"text",inputRef:l}}},u,s?.root))}}],pastedValueParser:(e,t,r)=>{let o=tE(r)||[],n=r.getOptionValue;if(o.find(t=>n(t)===e))return e}});var tN=r(11870),tL=r(10048);let t$=["label","icon","showInMenu","onClick"],tB=["label","icon","showInMenu","onClick","closeMenuOnClick","closeMenu"],tG=(0,u.R)((e,t)=>{let r=(0,T.A)();if(!e.showInMenu){let{label:o,icon:n,onClick:l}=e,s=(0,c.A)(e,t$);return(0,B.jsx)(r.slots.baseIconButton,(0,i.A)({size:"small",role:"menuitem","aria-label":o},s,{onClick:e=>{l?.(e)}},r.slotProps?.baseIconButton,{ref:t,children:a.cloneElement(n,{fontSize:"small"})}))}let{label:o,icon:n,onClick:l,closeMenuOnClick:s=!0,closeMenu:u}=e,d=(0,c.A)(e,tB);return(0,B.jsx)(r.slots.baseMenuItem,(0,i.A)({ref:t},d,{onClick:e=>{l?.(e),s&&u?.()},iconStart:n,children:o}))}),tW=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","onMenuOpen","onMenuClose","children","suppressChildrenValidation"];function tU(e){let{id:t,hasFocus:r,tabIndex:o,position:n="bottom-end",onMenuOpen:l,onMenuClose:s,children:u,suppressChildrenValidation:d}=e,p=(0,c.A)(e,tW),[f,g]=a.useState(-1),[h,m]=a.useState(!1),b=(0,L.h)(),w=a.useRef(null),C=a.useRef(null),x=a.useRef(!1),y=a.useRef({}),A=(0,tN.I)(),S=(0,eT.A)(),R=(0,eT.A)(),M=(0,T.A)(),I=b.current.getRowParams(t),k=[];a.Children.forEach(u,e=>{if(a.isValidElement(e))if(e.type===a.Fragment)a.Children.forEach(e.props.children,e=>{a.isValidElement(e)&&k.push(e)});else if(e.type===tG||d)k.push(e);else{let t="function"==typeof e.type?e.type.name:e.type;(0,eA.m)(`MUI X: Invalid child type in \`GridActionsCell\`. Expected \`GridActionsCellItem\` or \`React.Fragment\`, got \`${t}\`. 18If this is intentional, you can suppress this warning by passing the \`suppressChildrenValidation\` prop to \`GridActionsCell\`.`,"error")}});let P=k.filter(e=>!e.props.showInMenu),E=k.filter(e=>e.props.showInMenu),F=P.length+ +!!E.length;a.useLayoutEffect(()=>{r||Object.entries(y.current).forEach(([e,t])=>{t?.stop({},()=>{delete y.current[e]})})},[r]),a.useEffect(()=>{f<0||!w.current||f>=w.current.children.length||w.current.children[f].focus({preventScroll:!0})},[f]);let D=k.findIndex(e=>!e.props.disabled);a.useEffect(()=>{r&&-1===f&&g(D),r||(g(-1),x.current=!1)},[r,f,D]),a.useEffect(()=>{f>=F&&g(F-1)},[f,F]);let O=e=>{(!s||s(I,e))&&m(!1)},z=e=>t=>{y.current[e]=t},H=F>0?{role:"menu",onKeyDown:e=>{if(F<=1)return;let t=(e,r)=>{if(e<0||e>k.length)return e;let o=("left"===r?-1:1)*(A?-1:1);return k[e+o]?.props.disabled?t(e+o,r):e+o},r=f;"ArrowRight"===e.key?r=t(f,"right"):"ArrowLeft"===e.key&&(r=t(f,"left")),r<0||r>=F||r!==f&&(e.preventDefault(),e.stopPropagation(),g(r))}}:void 0;
18return(0,B.jsxs)("div",(0,i.A)({ref:w,tabIndex:-1,className:v.xV.actionsCell},H,p,{children:[P.map((e,t)=>{let r;return a.cloneElement(e,{key:t,touchRippleRef:z(t),onClick:(r=e.props.onClick,e=>{g(t),x.current=!0,r&&r(e)}),tabIndex:f===t?o:-1})}),E.length>0&&R&&(0,B.jsx)(M.slots.baseIconButton,(0,i.A)({ref:C,id:R,"aria-label":b.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?S:void 0,role:"menuitem",size:"small",onClick:e=>{if(e.stopPropagation(),e.preventDefault(),h)O(e);else(!l||l(I,e))&&(m(!0),g(F-1),x.current=!0)},touchRippleRef:z(R),tabIndex:f===P.length?o:-1},M.slotProps?.baseIconButton,{children:(0,B.jsx)(M.slots.moreActionsIcon,{fontSize:"small"})})),E.length>0&&(0,B.jsx)(tL.U,{open:h,target:C.current,position:n,onClose:O,children:(0,B.jsx)(M.slots.baseMenuList,{id:S,className:v.xV.menuList,"aria-labelledby":R,autoFocusItem:!0,children:E.map((e,t)=>a.cloneElement(e,{key:t,closeMenu:O}))})})]}))}function t_(e){let{colDef:t,id:r}=e,o=(0,L.h)();if("function"!=typeof t.getActions)throw Error("MUI X: Missing the `getActions` property in the `GridColDef`.");let n=t.getActions(o.current.getRowParams(r));return(0,B.jsx)(tU,(0,i.A)({suppressChildrenValidation:!0},e,{children:n}))}let tq="actions",tK=(0,i.A)({},e9,{sortable:!1,filterable:!1,aggregable:!1,chartable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:e=>(0,B.jsx)(t_,(0,i.A)({},e)),getApplyQuickFilterFn:()=>null}),tX=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"LongTextCell"})({display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"}),tY=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"LongTextCellContent"})({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1}),tQ=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"LongTextCellPopperContent"})(({theme:e})=>(0,i.A)({},e.typography.body2,{letterSpacing:"normal",paddingBlock:15.5,paddingInline:9,maxHeight:156,overflow:"auto",whiteSpace:"pre-wrap",wordBreak:"break-word",width:"var(--_width)",border:`1px solid ${(e.vars||e).palette.divider}`,boxSizing:"border-box"})),tZ=(0,b.Ay)("button",{name:"MuiDataGrid",slot:"LongTextCellCornerButton"})(({theme:e})=>({lineHeight:0,position:"absolute",bottom:1,right:0,border:"1px solid",color:(e.vars||e).palette.text.secondary,borderColor:(e.vars||e).palette.divider,backgroundColor:(e.vars||e).palette.background.paper,borderRadius:0,fontSize:"0.875rem",padding:2,"&:focus-visible":{outline:"none"},"&:hover":{backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary},[`&.${v.xV.longTextCellExpandButton}`]:{right:-9,opacity:0,[`.${v.xV.longTextCell}:hover &, .${v.xV.longTextCell}.Mui-focused &`]:{opacity:1}},[`&.${v.xV.longTextCellCollapseButton}`]:{bottom:2,right:2,border:"none"}})),tJ=(0,b.Ay)(ew.p,{name:"MuiDataGrid",slot:"LongTextCellPopper"})(({theme:e})=>({zIndex:w.f.zIndex.menu,background:(e.vars||e).palette.background.paper,"&[data-popper-reference-hidden]":{visibility:"hidden",pointerEvents:"none"}}));function t0(e){let{id:t,value:r="",colDef:o,hasFocus:n,slotProps:l,renderContent:s}=e,u=`${t}-${o.field}-longtext-popup`,c=(0,T.A)(),p=(0,L.h)(),f=(e=>{let{classes:t}=e;return(0,g.A)({root:["longTextCell"],content:["longTextCellContent"],expandButton:["longTextCellExpandButton"],collapseButton:["longTextCellCollapseButton"],popup:["longTextCellPopup"],popperContent:["longTextCellPopperContent"]},v.B9,t)})(c),h=(0,C.Nc)(p,Q),[m,b]=a.useState(!1),w=a.useRef(null),x=a.useRef(null);return a.useEffect(()=>{n&&!m&&x.current&&x.current!==document.activeElement&&x.current.focus(),n||b(!1)},[n,m]),(0,B.jsxs)(tX,(0,i.A)({ref:w},l?.root,{className:(0,d.A)(f.root,l?.root?.className,n&&"Mui-focused"),children:[(0,B.jsx)(tY,(0,i.A)({},l?.content,{className:(0,d.A)(f.content,l?.content?.className),children:r})),(0,B.jsx)(tZ,(0,i.A)({ref:x,"aria-label":`${r}, ${p.current.getLocaleText("longTextCellExpandLabel")}`,"aria-haspopup":"dialog","aria-controls":m?u:void 0,"aria-expanded":m,"aria-keyshortcuts":"Space",tabIndex:0},l?.expandButton,{className:(0,d.A)(f.expandButton,l?.expandButton?.className),onClick:e=>{0!==e.detail&&(e.stopPropagation(),b(!0))},onKeyDown:e=>{" "!==e.key||e.shiftKey||(e.preventDefault(),e.stopPropagation(),b(e=>!e)),"Escape"===e.key&&m&&(e.stopPropagation(),b(!1))},children:(0,B.jsx)(c.slots.longTextCellExpandIcon,{fontSize:"inherit"})})),(0,B.jsx)(tJ,(0,i.A)({id:u,role:"dialog","aria-label":o.headerName||o.field,as:c.slots.basePopper,ownerState:c,open:m,target:w.current,placement:"bottom-start",onClickAway:()=>{b(!1)},clickAwayMouseEvent:"onMouseDown",flip:!0,material:{container:w.current?.closest('[role="row"]'),modifiers:[{name:"offset",options:{offset:[-10,-h]}}]}},l?.popper,{className:(0,d.A)(f.popup,l?.popper?.className),children:(0,B.jsxs)(tQ,(0,i.A)({tabIndex:-1,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),b(!1),p.current.getCellElement(t,o.field)?.focu
18s())}},l?.popperContent,{className:(0,d.A)(f.popperContent,l?.popperContent?.className),style:(0,i.A)({"--_width":`${o.computedWidth}px`},l?.popperContent?.style),children:[s?s(r):r,(0,B.jsx)(tZ,(0,i.A)({"aria-label":p.current.getLocaleText("longTextCellCollapseLabel"),"aria-keyshortcuts":"Escape"},l?.collapseButton,{className:(0,d.A)(f.collapseButton,l?.collapseButton?.className),onClick:e=>{e.stopPropagation(),b(!1),p.current.getCellElement(t,o.field)?.focus()},children:(0,B.jsx)(c.slots.longTextCellCollapseIcon,{fontSize:"inherit"})}))]}))}))]}))}let t1=e=>{let{classes:t}=e;return(0,g.A)({root:["editLongTextCell"],value:["editLongTextCellValue"],popup:["editLongTextCellPopup"],popperContent:["editLongTextCellPopperContent"],textarea:["editLongTextCellTextarea"]},v.B9,t)},t2=(0,b.Ay)(ew.p,{name:"MuiDataGrid",slot:"EditLongTextCellTextarea"})(({theme:e})=>(0,i.A)({width:"100%",padding:0},e.typography.body2,{letterSpacing:"normal",outline:"none",background:"transparent",border:"none",resize:"vertical"})),t9=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"EditLongTextCell"})({display:"flex",alignItems:"center",width:"100%",height:"100%",position:"relative"}),t3=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"EditLongTextCellValue"})({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",paddingInline:10}),t5=(0,b.Ay)(ew.p,{name:"MuiDataGrid",slot:"EditLongTextCellPopper"})(({theme:e})=>({zIndex:w.f.zIndex.menu,background:(e.vars||e).palette.background.paper,"&[data-popper-reference-hidden]":{opacity:0}})),t4=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"EditLongTextCellPopperContent"})(({theme:e})=>(0,i.A)({},e.typography.body2,{letterSpacing:"normal",paddingBlock:15.5,paddingInline:9,height:"max-content",overflow:"auto",whiteSpace:"pre-wrap",wordBreak:"break-word",width:"var(--_width)",border:`1px solid ${(e.vars||e).palette.divider}`,boxShadow:(e.vars||e).shadows[4],boxSizing:"border-box"}));function t6(e){let{id:t,value:r,field:o,colDef:n,hasFocus:l,cellMode:s,slotProps:u}=e,c=(0,T.A)(),p=(0,L.h)(),f=t1(c),g=(0,C.Nc)(p,Q),[h,m]=a.useState(r),[b,v]=a.useState(null),w=p.current.unstable_getEditCellMeta(t,o),x=`${t}-${o}-longtext-edit-popup`,y=l&&!!b;return a.useEffect(()=>{w?.changeReason!=="debouncedSetEditCellValue"&&m(r)},[w,r]),(0,B.jsxs)(t9,(0,i.A)({tabIndex:"edit"===s&&"row"===c.editMode?0:void 0,ref:v,"aria-controls":y?x:void 0,"aria-expanded":y},u?.root,{className:(0,d.A)(f.root,u?.root?.className),children:[(0,B.jsx)(t3,(0,i.A)({},u?.value,{className:(0,d.A)(f.value,u?.value?.className),children:h})),(0,B.jsx)(t5,(0,i.A)({as:c.slots.basePopper,ownerState:c,id:x,role:"dialog","aria-label":n.headerName||o,open:y,target:b,placement:"bottom-start",flip:!0,material:{container:b?.closest('[role="row"]'),modifiers:[{name:"offset",options:{offset:[-1,-g]}}]}},u?.popper,{className:(0,d.A)(f.popup,u?.popper?.className),children:(0,B.jsx)(t4,(0,i.A)({},u?.popperContent,{className:(0,d.A)(f.popperContent,u?.popperContent?.className),style:{"--_width":`${n.computedWidth}px`},children:(0,B.jsx)(t7,(0,i.A)({},e,{valueState:h,setValueState:m}))}))}))]}))}function t7(e){let{id:t,field:r,colDef:o,debounceMs:n=200,onValueChange:l,valueState:s,setValueState:u,hasFocus:c,slotProps:p}=e,f=a.useRef(null),g=(0,L.h)(),h=(0,T.A)(),m=t1(h);(0,ev.A)(()=>{if(c&&f.current){f.current.focus({preventScroll:!0});let e=f.current.value.length;f.current.setSelectionRange(e,e)}},[c]);let b=a.useCallback(async e=>{let o=e.target.value,i=g.current.getColumn(r),a=o;i.valueParser&&(a=i.valueParser(o,g.current.getRow(t),i,g)),u(a),g.current.setEditCellValue({id:t,field:r,value:a,debounceMs:n,unstable_skipValueParser:!0},e),l&&await l(e,o)},[g,n,r,t,l,u]),v=a.useCallback(e=>{"Enter"===e.key&&e.shiftKey&&e.stopPropagation(),"cell"===h.editMode&&"Escape"===e.key&&g.current.stopCellEditMode({id:t,field:r,ignoreModifications:!0})},[g,r,t,h.editMode]);return(0,B.jsx)(t2,(0,i.A)({ref:f,as:h.slots.baseTextarea,ownerState:h,"aria-label":o.headerName||r,value:s??"",onChange:b,onKeyDown:v},p?.textarea,{className:(0,d.A)(m.textarea,p?.textarea?.className)}))}let t8=(0,i.A)({},e9,{type:"longText",display:"flex",renderCell:e=>(0,B.jsx)(t0,(0,i.A)({},e)),renderEditCell:e=>(0,B.jsx)(t6,(0,i.A)({},e))}),re=(0,K.gz)(e=>e.headerFiltering),rt=(0,K.Mz)(re,e=>e?.enabled??!1),rr=(0,K.Mz)(re,e=>e.editing),ro=(0,K.Mz)(re,e=>e.menuOpen),rn=(0,K.gz)(e=>e.columnGrouping),rl=(0,K.S)(rn,e=>e?.unwrappedGroupingModel??{}),ri=(0,K.S)(rn,e=>e?.lookup??{}),ra=(0,K.S)(rn,e=>e?.headerStructure??[]),rs=(0,K.Mz)(rn,e=>e?.maxDepth??0),ru=["maxWidth","minWidth","width","flex"],rc={string:e9,number:e5,date:tu,dateTime:tc,boolean:tA,singleSelect:tj,[tq]:tK,custom:e9,longText:t8},rd=(e,t)=>{let r={},o=0,n=0,l=[];e.orderedFields.forEach(t=>{let a=e.lookup[t],s=0,u=!1;!1!==e.columnVisibilityModel[t]&&(a.flex&&a.flex>0?(o+=a.flex,u=!0):s=eV(a.width||e9.width,a.minWidth||e9.minWidth,a.maxWidth||e9.maxWidth),n+=s),a.computedWidth!==s&&(a=(0,i.A)({},a,{computedWidth:s})),u&&l.push(a),r[t]=a});let a=void 0===t?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),s=Math.max(a-n,0);if(o>0&&a>0){let e=function({initialFreeSpace:e,totalFlexUnits:t,flexColumns:r}){let o=new Set(r.map(e=>e.field)),n={all:{},frozenFields:[],freeze:e=>{let t=n.all[e];t&&!0!==t.frozen&&(n.all[e].frozen=!0,n.frozenFields.push(e))}};return!function l(){if(n.frozenFields.length===o.size)return;let i={},a={},s=e,u=t,c=0;
18n.frozenFields.forEach(e=>{s-=n.all[e].computedWidth,u-=n.all[e].flex});for(let e=0;e<r.length;e+=1){let t=r[e];if(n.all[t.field]&&!0===n.all[t.field].frozen)continue;let o=s/u*t.flex;o<t.minWidth?(c+=t.minWidth-o,o=t.minWidth,i[t.field]=!0):o>t.maxWidth&&(c+=t.maxWidth-o,o=t.maxWidth,a[t.field]=!0),n.all[t.field]={frozen:!1,computedWidth:o,flex:t.flex}}c<0?Object.keys(a).forEach(e=>{n.freeze(e)}):c>0?Object.keys(i).forEach(e=>{n.freeze(e)}):r.forEach(({field:e})=>{n.freeze(e)}),l()}(),n.all}({initialFreeSpace:s,totalFlexUnits:o,flexColumns:l});Object.keys(e).forEach(t=>{r[t]=(0,i.A)({},r[t],{computedWidth:e[t].computedWidth})})}return(0,i.A)({},e,{lookup:r})};function rp(e){let t=rc.string;return e&&rc[e]&&(t=rc[e]),t}let rf=({apiRef:e,columnsToUpsert:t,initialState:r,columnVisibilityModel:o=(0,V.FY)(e),keepOnlyColumnsToUpsert:n=!1,updateInitialVisibilityModel:l=!1})=>{let a,s=!e.current.state.columns;if(s)a={orderedFields:[],lookup:{},columnVisibilityModel:o,initialColumnVisibilityModel:o};else{let t=(0,V.em)(e);a={orderedFields:n?[]:[...t.orderedFields],lookup:n?{}:(0,i.A)({},t.lookup),columnVisibilityModel:o,initialColumnVisibilityModel:l?o:t.initialColumnVisibilityModel}}let u={};if(n&&!s)for(let e in a.lookup)Object.prototype.hasOwnProperty.call(a.lookup,e)&&(u[e]=!1);return t.forEach(e=>{let t,{field:r}=e;u[r]=!0;let o=a.lookup[r];null==o?(o=(0,i.A)({},rp(e.type),{field:r,hasBeenResized:!1}),a.orderedFields.push(r)):n&&a.orderedFields.push(r),o&&o.type!==e.type&&(o=(0,i.A)({},rp(e.type),{field:r}));let l=o.hasBeenResized;ru.forEach(t=>{void 0!==e[t]&&(l=!0,-1===e[t]&&(e[t]=1/0))});let s=(0,i.A)({},rp(e.type),{hasBeenResized:l,field:r});for(t in e)void 0!==e[t]&&"field"!==t&&(s[t]=e[t]);a.lookup[r]=(0,eb.A)(o,s)}),n&&!s&&Object.keys(a.lookup).forEach(e=>{u[e]||delete a.lookup[e]}),rd(((e,t)=>{if(!t)return e;let{orderedFields:r=[],dimensions:o={}}=t,n=Object.keys(o);if(0===n.length&&0===r.length)return e;let l={},a=[];for(let t=0;t<r.length;t+=1){let o=r[t];e.lookup[o]&&(l[o]=!0,a.push(o))}let s=0===a.length?e.orderedFields:[...a,...e.orderedFields.filter(e=>!l[e])],u=(0,i.A)({},e.lookup);for(let e=0;e<n.length;e+=1){let t=n[e],r=(0,i.A)({},u[t],{hasBeenResized:!0});Object.entries(o[t]).forEach(([e,t])=>{r[e]=-1===t?1/0:t}),u[t]=r}return(0,i.A)({},e,{orderedFields:s,lookup:u})})(e.current.unstable_applyPipeProcessors("hydrateColumns",a),r),e.current.getRootDimensions?.()??void 0)};function rg(e,t){if(t.listView)return 0;let r=(0,F.rf)(e),o=rs(e),n=rt(e),l=Math.floor(t.columnHeaderHeight*r);return l+Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*r)*o+(n?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*r):0)}let rh=(0,K.gz)(e=>e.rowsMeta),rm=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.scrollArea,t[`scrollArea--${r.scrollDirection}`]]}})(()=>({position:"absolute",zIndex:101,[`&.${v.xV["scrollArea--left"]}`]:{top:0,left:0,width:20,bottom:0},[`&.${v.xV["scrollArea--right"]}`]:{top:0,right:0,width:20,bottom:0},[`&.${v.xV["scrollArea--up"]}`]:{top:0,left:0,right:0,height:20},[`&.${v.xV["scrollArea--down"]}`]:{bottom:0,left:0,right:0,height:20}})),rb=(0,K.Mz)(X,(e,t)=>"left"===t?e.leftPinnedWidth:"right"===t?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function rv(e){let{scrollDirection:t,scrollPosition:r}=e,o=a.useRef(null),n=(0,L.h)(),l=(0,em.A)(),s=(0,C.Nc)(n,F.rf),u=(0,C.Nc)(n,Y),c=(0,C.Nc)(n,rb,t),d=(0,T.A)(),p=rg(n,d),f=Math.floor(d.columnHeaderHeight*s),g=(0,i.A)({height:f,top:p-f},"left"===t?{left:c}:{},"right"===t?{right:c}:{}),h=(0,ea.A)(e=>{let i;if(e.preventDefault(),"left"===t)i=e.clientX-o.current.getBoundingClientRect().right;else if("right"===t)i=Math.max(1,e.clientX-o.current.getBoundingClientRect().left);else throw Error("MUI X: Wrong drag direction");i=(i-1)*1.5+1,l.start(0,()=>{n.current.scroll({left:r.current.left+i,top:r.current.top})})});return(0,B.jsx)(rC,(0,i.A)({},e,{ref:o,getCanScrollMore:()=>{let e=X(n);if("left"===t)return r.current.left>0;if("right"===t){let t=u-e.viewportInnerSize.width;return r.current.left<t}return!1},style:g,handleDragOver:h}))}function rw(e){let{scrollDirection:t,scrollPosition:r}=e,o=a.useRef(null),n=(0,L.h)(),l=(0,em.A)(),s=(0,C.Nc)(n,rh),u=rg(n,(0,T.A)()),c=(0,ea.A)(e=>{let i;if(e.preventDefault(),"up"===t)i=e.clientY-o.current.getBoundingClientRect().bottom;else if("down"===t)i=Math.max(1,e.clientY-o.current.getBoundingClientRect().top);else throw Error("MUI X: Wrong drag direction");i=(i-1)*1.5+1,l.start(0,()=>{n.current.scroll({left:r.current.left,top:r.current.top+i})})});return(0,B.jsx)(rC,(0,i.A)({},e,{ref:o,getCanScrollMore:()=>{let e=X(n);if("up"===t)return r.current.top>0;if("down"===t){let t=(s.currentPageTotalHeight||0)-e.viewportInnerSize.height-(e.hasScrollX?e.scrollbarSize:0);return r.current.top<t}return!1}
18,style:{top:"up"===t?u:void 0,bottom:"down"===t?0:void 0},handleDragOver:c}))}let rC=(0,u.R)(function(e,t){let{scrollDirection:r,getCanScrollMore:o,style:n,handleDragOver:l}=e,s=(0,L.h)(),[u,c]=a.useState(o),d=(0,T.A)(),p=(0,i.A)({},d,{scrollDirection:r}),f=(e=>{let{scrollDirection:t,classes:r}=e,o={root:["scrollArea",`scrollArea--${t}`]};return(0,g.A)(o,v.B9,r)})(p);return(ef(s,"scrollPositionChange",()=>{c(o)}),u)?(0,B.jsx)(rm,{ref:t,className:f.root,ownerState:p,onDragOver:l,style:n}):null}),rx=m(function(e){let t=(0,L.h)(),[r,o]=a.useState("none");return(ef(t,"columnHeaderDragStart",()=>o("horizontal")),ef(t,"columnHeaderDragEnd",()=>o("none")),ef(t,"rowDragStart",()=>o("vertical")),ef(t,"rowDragEnd",()=>o("none")),"none"===r)?null:"horizontal"===r?(0,B.jsx)(rv,(0,i.A)({},e)):(0,B.jsx)(rw,(0,i.A)({},e))});var ry=r(3395);let rA=(0,K.gz)(e=>e.pivoting),rS=(0,K.Mz)(rA,e=>e?.active),rR=new Map,rM=(0,K.Mz)(rA,e=>e?.initialColumns||rR),rI=(e,t)=>{let r=(0,C.Nc)(e,ei.H0),o=(0,C.Nc)(e,ry.O7),n=(0,C.Nc)(e,ei.OQ),l=(0,C.Nc)(e,V.iv),i=0===r&&0===n,a=(0,C.Nc)(e,ei.Dl),s=(0,C.Nc)(e,rS),u=!a&&i,c=!a&&0===l.length,d=null,p=null;return u&&(d="noRowsOverlay"),c&&(d="noColumnsOverlay"),u&&s&&(d="emptyPivotOverlay"),!a&&r>0&&0===o&&(d="noResultsOverlay"),a&&(d="loadingOverlay",p=t.slotProps?.loadingOverlay?.[i?"noRowsVariant":"variant"]??(i?"skeleton":"linear-progress")),{overlayType:d,loadingOverlayVariant:p}};var rk=r(51033);let rP=(0,K.gz)(e=>e.focus),rE=(0,K.Mz)(rP,e=>e.cell),rT=(0,K.Mz)(rP,e=>e.columnHeader);(0,K.Mz)(rP,e=>e.columnHeaderFilter);let rF=(0,K.Mz)(rP,e=>e.columnGroupHeader),rD=(0,K.gz)(e=>e.tabIndex),rO=(0,K.Mz)(rD,e=>e.cell),rz=(0,K.Mz)(rD,e=>e.columnHeader);(0,K.Mz)(rD,e=>e.columnHeaderFilter);let rH=(0,K.Mz)(rD,e=>e.columnGroupHeader),rV=(0,K.gz)(e=>e.columnMenu),rj=m(function(){let e=y(),t=(0,T.A)(),r=(0,C.Nc)(e,V.iv),o=(0,C.Nc)(e,ry.od),n=(0,C.Nc)(e,rk.oF),l=(0,C.Nc)(e,rz),a=(0,C.Nc)(e,()=>null===rO(e)),s=(0,C.Nc)(e,rH),u=(0,C.Nc)(e,rT),c=(0,C.Nc)(e,rF),d=(0,C.Nc)(e,rs),p=(0,C.Nc)(e,rV),f=(0,C.Nc)(e,V.FY),g=(0,C.Nc)(e,ra),h=e.current.columnHeadersContainerRef;return(0,B.jsx)(t.slots.columnHeaders,(0,i.A)({ref:h,visibleColumns:r,filterColumnLookup:o,sortColumnLookup:n,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:s,columnHeaderFocus:u,columnGroupHeaderFocus:c,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:f,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:!(null===s&&null===l&&a)},t.slotProps?.columnHeaders))});var rN=r(900);let rL=(0,b.Ay)("div",{slot:"internal",shouldForwardProp:void 0})({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),r$=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{let{ownerState:r,loadingOverlayVariant:o,overlayType:n}=e;return[t.main,r.hasPinnedRight&&t["main--hasPinnedRight"],("skeleton"===o||"noColumnsOverlay"===n)&&t["main--hiddenContent"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),rB=(0,u.R)((e,t)=>{let{ownerState:r}=e,o=(0,T.A)(),n=(0,rN.Q)().hooks.useGridAriaAttributes();return(0,B.jsxs)(r$,(0,i.A)({ownerState:r,className:e.className,tabIndex:-1},n,o.slotProps?.main,{ref:t,children:[(0,B.jsx)(rL,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),rG=(0,b.Ay)("div",{slot:"internal",shouldForwardProp:void 0})({position:"sticky",zIndex:40,top:0});function rW(e){let t=(0,g.A)({root:["topContainer"]},v.B9,{});return(0,B.jsx)(rG,(0,i.A)({},e,{className:(0,d.A)(t.root,v.xV["container--top"]),role:"presentation"}))}var rU=r(99093);let r_=(0,rU.A)("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.virtualScrollerContent,r.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),rq=(0,u.R)(function(e,t){let r=(0,T.A)(),o=!r.autoHeight&&e.style?.minHeight==="auto",n=((e,t)=>{let{classes:r}=e;return(0,g.A)({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},v.B9,r)})(r,o),l={classes:r.classes,overflowedContent:o};return(0,B.jsx)(r_,(0,i.A)({},e,{ownerState:l,className:(0,d.A)(n.root,e.className),ref:t}))}),rK=(0,b.Ay)("div",{slot:"internal",shouldForwardProp:void 0})({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),rX=(0,b.Ay)("div",{slot:"internal",shouldForwardProp:void 0})({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:w.f.cell.background.pinned}),rY=(0,b.Ay)(rX,{slot:"internal"})({left:0}),rQ=(0,b.Ay)(rX,{slot:"internal"})({right:0}),rZ=(0,b.Ay)("div",{slot:"internal",shouldForwardProp:void 0})({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"}),rJ=m(function({rowsLength:e}){let t=(0,L.h)(),{viewportOuterSize:r,minimumSize:o,hasScrollX:n,hasScrollY:l,scrollbarSize:i,leftPinnedWidth:a,rightPinnedWidth:s}=(0,C.Nc)(t,X),u=n?i:0,c=r.height-o.height>0;return 0!==u||c?(0,B.jsxs)(rK,{className:v.xV.filler,role:"presentation",style:{height:u,"--rowBorderColor":0===e?"transparent":"var(--DataGrid-rowBorderColor)"},children:[a>0&&(0,B.jsx)(rY,{className:v.xV["filler--pinnedLeft"],style:{width:a}}),(0,B.jsx)(rZ,{}),s>0&&(0,B.jsx)(rQ,{className:v.xV["filler--pinnedRight"],style:{width:s+(l?i:0)}})]}):null}),r0=(0,rU.A)("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone"})({position:"absolute",display:"flex",flexDirection:"column"}),r1=(0,u.R)(function(e,t){let r=(0,T.A)(),o=(e=>{let{classes:t}=e;return(0,g.A)({root:["virtualScrollerRenderZone"]},v.B9,t)})(r);return(0,B.jsx)(r0,(0,i.A)({ownerState:r},e,{className:(0,d.A)(o.root,e.className),ref:t}))}),r2="calc(max(var(--DataGrid-scrollbarSize), 14px))",r9=(0,b.Ay)("div",{slot:"internal",shouldForwardProp:void 0})({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":r2,[_]:{display:"none"}}),r3=(0,b.Ay)(r9,{slot:"internal"})({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-headersTotalHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-headersTotalHeight)",right:0}),r5=(0,b.Ay)(r9,{slot:"internal"})({width:"calc(var(--DataGrid-hasScrollX) * (100% - var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:0}),r4=(0,b.Ay)(r9,{slot:"internal"})({width:"var(--size)",height:"var(--size)",right:0,bottom:0,overflow:"scroll","@media print":{display:"none"}}),r6=(0,u.R)(function(e,t){let r=y(),o=((e,t)=>{let{classes:r}=e,o={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return(0,g.A)(o,v.B9,r)})((0,T.A)(),e.position),n=(0,C.Nc)(r,X),l="vertical"===e.position?"height":"width",i="horizontal"===e.position?n.minimumSize.width:n.minimumSize.height-n.headersTotalHeight,s="vertical"===e.position?r3:r5,u=a.useMemo(()=>({[l]:`${i}px`}),[l,i]);return(0,B.jsx)(s,{ref:t,className:o.root,tabIndex:-1,"aria-hidden":"true",onFocus:e=>{e.target.blur()},children:(0,B.jsx)("div",{className:o.content,style:u})})}),r7=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"ScrollShadow",overridesResolver:(e,t)=>[t.root,t[e.position]]})(({theme:e})=>({position:"absolute",inset:0,pointerEvents:"none",transition:w.f.transition(["box-shadow"],{duration:w.f.transitions.duration.short}),"--length":"dark"===e.palette.mode?"8px":"6px","--length-inverse":"calc(var(--length) * -1)","--opacity":"dark"===e.palette.mode?"0.7":"0.18","--blur":"var(--length)","--spread":"
18calc(var(--length) * -1)","--color":"0, 0, 0","--color-start":"rgba(var(--color), calc(var(--hasScrollStart) * var(--opacity)))","--color-end":"rgba(var(--color), calc(var(--hasScrollEnd) * var(--opacity)))",variants:[{props:{position:"vertical"},style:{top:"var(--DataGrid-topContainerHeight)",bottom:"calc(var(--DataGrid-bottomContainerHeight) + var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))",boxShadow:"inset 0 var(--length) var(--blur) var(--spread) var(--color-start), inset 0 var(--length-inverse) var(--blur) var(--spread) var(--color-end)"}},{props:{position:"horizontal"},style:{left:"var(--DataGrid-leftPinnedWidth)",right:"calc(var(--DataGrid-rightPinnedWidth) + var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",boxShadow:"inset var(--length) 0 var(--blur) var(--spread) var(--color-start), inset var(--length-inverse) 0 var(--blur) var(--spread) var(--color-end)"}}]}));function r8(e){let{position:t}=e,r={classes:(0,T.A)().classes,position:t},o=(e=>{let{classes:t,position:r}=e,o={root:["scrollShadow",`scrollShadow--${r}`]};return(0,g.A)(o,v.B9,t)})(r),n=a.useRef(null),l=y(),i=(0,C.Nc)(l,Z),s=(0,C.Nc)(l,J),u=(0,C.Nc)(l,ei.$2),c=(0,C.Nc)(l,V.He),d="vertical"===t?s&&u?.bottom?.length>0:i&&c?.right?.length!==void 0&&c?.right?.length>0,p=(0,tN.I)(),f=a.useCallback(e=>{if(!n.current)return;let r=Math.abs(Math.round(e)),o=X(l),i=Math.round(o.contentSize["vertical"===t?"height":"width"]-o.viewportInnerSize["vertical"===t?"height":"width"]),a="vertical"===t?u?.top?.length>0:c?.left?.length!==void 0&&c?.left?.length>0,s="vertical"===t?u?.bottom?.length>0:c?.right?.length!==void 0&&c?.right?.length>0,d=p?r<i:r>0,f=p?r>0:r<i;n.current.style.setProperty("--hasScrollStart",a&&d?"1":"0"),n.current.style.setProperty("--hasScrollEnd",s&&f?"1":"0")},[u,c,p,t,l]);return ef(l,"scrollPositionChange",e=>{f(e["vertical"===t?"top":"left"])}),ef(l,"columnResizeStop",()=>{"horizontal"===t&&f(l.current.virtualScrollerRef?.current?.scrollLeft||0)}),a.useEffect(()=>{f(("horizontal"===t?l.current.virtualScrollerRef?.current?.scrollLeft:l.current.virtualScrollerRef?.current?.scrollTop)??0)},[f,l,t]),(0,B.jsx)(r7,{className:o.root,ownerState:r,ref:n,style:{"--hasScrollStart":0,"--hasScrollEnd":d?"1":"0"}})}let oe=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>"overlayType"!==e&&"loadingOverlayVariant"!==e&&"right"!==e})(({overlayType:e,loadingOverlayVariant:t,right:r})=>"skeleton"!==t?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,right:`${r}px`,width:0,height:0,zIndex:"loadingOverlay"===e?5:4}:{}),ot=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>"overlayType"!==e&&"loadingOverlayVariant"!==e})({});function or(e){let t=(0,L.h)(),r=(0,T.A)(),o=(0,C.Nc)(t,X),n=Math.max(o.viewportOuterSize.height-o.topContainerHeight-o.bottomContainerHeight-(o.hasScrollX?o.scrollbarSize:0),0);0===n&&(n=tl.SN);let l=(e=>{let{classes:t}=e;return(0,g.A)({root:["overlayWrapper"],inner:["overlayWrapperInner"]},v.B9,t)})((0,i.A)({},e,{classes:r.classes}));return(0,B.jsx)(oe,(0,i.A)({className:l.root},e,{right:o.columnsTotalWidth-o.viewportOuterSize.width,children:(0,B.jsx)(ot,(0,i.A)({className:l.inner,style:{height:n,width:o.viewportOuterSize.width}},e))}))}var oo=r(64639);function on(e,t){return Math.round(e*10**t)/10**t}var ol=r(35881),oi=r(24473);let oa=()=>{};function os(e,t,r){let o=(0,oo.A)(ou,{store:e,selector:t}).current;o.effect=r,(0,oi.A)(o.onMount)}function ou(e){let{store:t,selector:r}=e,o=r(t.state),n={effect:oa,dispose:null,subscribe:()=>{n.dispose??=t.subscribe(e=>{let t=r(e);if(!Object.is(o,t)){let e=o;o=t,n.effect(e,t)}})},onMount:()=>(n.subscribe(),()=>{n.dispose?.(),n.dispose=null})};return n.subscribe(),n}var oc=r(29092),od=r(77190),op=r(44216),of=r(45712),og=r(38420);let oh=og.A>=19?function(e,t,r,o,n){let l=a.useCallback(()=>t(e.getSnapshot(),r,o,n),[e,t,r,o,n]);return(0,D.useSyncExternalStore)(e.subscribe,l,l)}:function(e,t,r,o,n){return(0,of.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,r,o,n))},om={EMPTY:{width:0,height:0},equals:(e,t)=>e.width===t.width&&e.height===t.height},ob={EMPTY:{top:[],bottom:[]}}
18,ov={EMPTY:{left:[],right:[]}},ow={EMPTY:{top:0,left:0}},oC=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}({});(oC||(oC={})).forDelta=function(e,t){if(0===e&&0===t)return oC.NONE;if(Math.abs(t)>=Math.abs(e))if(t>0)return oC.DOWN;else return oC.UP;return e>0?oC.RIGHT:oC.LEFT};let ox={isReady:!1,root:om.EMPTY,viewportOuterSize:om.EMPTY,viewportInnerSize:om.EMPTY,contentSize:om.EMPTY,minimumSize:om.EMPTY,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,topContainerHeight:0,bottomContainerHeight:0,autoHeight:!1,minimalContentHeight:void 0},oy={rootSize:e=>e.rootSize,dimensions:e=>e.dimensions,rowHeight:e=>e.dimensions.rowHeight,columnsTotalWidth:e=>e.dimensions.columnsTotalWidth,contentHeight:e=>e.dimensions.contentSize.height,autoHeight:e=>e.dimensions.autoHeight,minimalContentHeight:e=>e.dimensions.minimalContentHeight,rowsMeta:e=>e.rowsMeta,rowPositions:e=>e.rowsMeta.positions,columnPositions:(0,oc.S)((e,t)=>{let r=[],o=0;for(let e=0;e<t.length;e+=1)r.push(o),o+=t[e].computedWidth;return r}),needsHorizontalScrollbar:e=>e.dimensions.viewportOuterSize.width>0&&e.dimensions.columnsTotalWidth>e.dimensions.viewportOuterSize.width},oA={initialize:function(e){let{rowCount:t,rows:r,getRowHeight:o,dimensions:n}=e,{columnsTotalWidth:l,rowHeight:a,autoHeight:s,minimalContentHeight:u,topPinnedHeight:c,bottomPinnedHeight:d}=n,p=[],f=0;if(o&&r.length>0)for(let e=0;e<r.length;e+=1){p.push(f);let t=o(r[e]);f+="number"==typeof t?t:a}else{for(let e=0;e<t;e+=1)p.push(e*a);f=t*a}let g=(0,i.A)({},ox,n,{autoHeight:s,minimalContentHeight:u,topContainerHeight:c,bottomContainerHeight:d,contentSize:{width:l,height:on(f,1)}}),h={currentPageTotalHeight:f,positions:p,pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0},m=new Map;return{rootSize:om.EMPTY,dimensions:g,rowsMeta:h,rowHeights:m}},use:function(e,t,r){let o=a.useRef(!0),n=a.useRef({counter:0,heights:{content:0,pinnedTop:0,pinnedBottom:0},lastFlipTimestamp:0}),{layout:l,dimensions:{rowHeight:s,columnsTotalWidth:u,leftPinnedWidth:c,rightPinnedWidth:d,topPinnedHeight:p,bottomPinnedHeight:f},onResize:g}=t,h=a.useCallback(r=>{let i,a;if(r&&(o.current=!1),o.current)return;let h=l.refs.container.current,m=oy.rootSize(e.state),b=oy.rowsMeta(e.state),v=function(e,t){if(void 0!==t)return t;if(null===e)return 0;let r=(0,od.A)(e),o=r.defaultView,n=o?.devicePixelRatio??1,l=oS.get(e);if(void 0!==l&&l.devicePixelRatio===n&&l.measuredDirectly)return l.size;let i=o?.getComputedStyle(e),a=i?.overflowY==="auto"||i?.overflowY==="scroll",s=i?.overflowX==="auto"||i?.overflowX==="scroll",u=a&&e.scrollHeight>e.clientHeight,c=s&&e.scrollWidth>e.clientWidth,d=oR(i?.borderLeftWidth)+oR(i?.borderRightWidth),p=oR(i?.borderTopWidth)+oR(i?.borderBottomWidth),f=Math.max(u?e.offsetWidth-e.clientWidth-d:0,c?e.offsetHeight-e.clientHeight-p:0);if(u||c){let t=Math.max(0,f);return oS.set(e,{size:t,devicePixelRatio:n,measuredDirectly:!0}),t}if(void 0!==l&&l.devicePixelRatio===n)return l.size;let g=r.createElement("div");g.style.width="99px",g.style.height="99px",g.style.position="absolute",g.style.overflow="scroll",i?.scrollbarWidth&&(g.style.scrollbarWidth=i.scrollbarWidth),g.className="scrollDiv",e.appendChild(g);let h=g.offsetWidth-g.clientWidth;return e.removeChild(g),oS.set(e,{size:h,devicePixelRatio:n,measuredDirectly:!1}),h}(h,t.dimensions.scrollbarSize),w=p+b.pinnedTopRowsTotalHeight,C=f+b.pinnedBottomRowsTotalHeight,x={width:u,height:on(b.currentPageTotalHeight,1)},y=e.state.dimensions,A=!1,S=!1;if(t.dimensions.autoHeight)S=!1,A=Math.round(u)>Math.round(m.width),a={width:Math.max(0,(i={width:m.width,height:w+C+x.height}).width-(S?v:0)),height:Math.max(0,i.height-(A?v:0))};else{let e=a={width:Math.max(0,(i={width:m.width,height:m.height}).width),height:Math.max(0,i.height-w-C)},t=x.width>e.width,r=x.height>e.height;(t||r)&&(S=r,(A=x.width+(S?v:0)>e.width)&&(S=x.height+v>e.height));{let e=n.current,r=b.currentPageTotalHeight!==e.heights.content||b.pinnedTopRowsTotalHeight!==e.heights.pinnedTop||b.pinnedBottomRowsTotalHeight!==e.heights.pinnedBottom;if(r&&(e.counter=0,e.heights={content:b.currentPageTotalHeight,pinnedTop:b.pinnedTopRowsTotalHeight,pinnedBottom:b.pinnedBottomRowsTotalHeight}),y.isReady&&S!==y.hasScrollY){let o=performance.now();o-e.lastFlipTimestamp>100&&(e.counter=0),e.lastFlipTimestamp=o,r||(e.counter+=1),e.counter>=2&&(S=!1,A=t)}}S&&(a.width-=v),A&&(a.height-=v)}t.disableHorizontalScroll&&(A=!1),t.disableVerticalScroll&&(S=!1);let R=Math.max(i.width,u+(S?v:0)),M={width:u,height:w+x.height+C}
18,I={isReady:!0,root:m,viewportOuterSize:i,viewportInnerSize:a,contentSize:x,minimumSize:M,hasScrollX:A,hasScrollY:S,scrollbarSize:v,rowWidth:R,rowHeight:s,columnsTotalWidth:u,leftPinnedWidth:c,rightPinnedWidth:d,topContainerHeight:w,bottomContainerHeight:C,autoHeight:t.dimensions.autoHeight,minimalContentHeight:t.dimensions.minimalContentHeight};(0,op.H)(y,I)||(e.update({dimensions:I}),g?.(I.root))},[e,l.refs.container,t.dimensions.scrollbarSize,t.dimensions.autoHeight,t.dimensions.minimalContentHeight,t.disableHorizontalScroll,t.disableVerticalScroll,g,s,u,c,d,p,f]),{resizeThrottleMs:m}=t,b=(0,ea.A)(h),v=a.useMemo(()=>m>0?function(e,t=166){let r,o,n=()=>{r=void 0,e(...o)};function l(...e){o=e,void 0===r&&(r=setTimeout(n,t))}return l.clear=()=>{clearTimeout(r),r=void 0},l}(b,m):void 0,[m,b]);a.useEffect(()=>v?.clear,[v]),(0,ev.A)(h,[h]),(0,ev.A)(()=>{e.update({dimensions:(0,i.A)({},e.state.dimensions,{autoHeight:t.dimensions.autoHeight,minimalContentHeight:t.dimensions.minimalContentHeight})})},[e,t.dimensions.autoHeight,t.dimensions.minimalContentHeight]);let w=function(e,t,r){let o=e.state.rowHeights,{rows:n,getRowHeight:l,getRowSpacing:i,getEstimatedRowHeight:s}=t,u=a.useRef(-1),c=a.useRef(!1),d=a.useRef(!1),p=t.pinnedRows,f=oh(e,oy.rowHeight,void 0,void 0,void 0),g=(0,ea.A)(t=>{let r=o.get(t);return void 0===r&&(r={content:e.state.dimensions.rowHeight,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},o.set(t,r)),r}),{applyRowHeight:h}=t,m=a.useCallback(t=>{let r=oy.dimensions(e.state),o=r.rowHeight,n=g(t.id);if(l){let e=l(t);"auto"===e?(n.needsFirstMeasurement&&(n.content=(s?s(t):o)??o),c.current=!0,n.autoHeight=!0):(n.content=e??r.rowHeight,n.needsFirstMeasurement=!1,n.autoHeight=!1)}else n.content=o,n.needsFirstMeasurement=!1;if(i){let e=i(t);n.spacingTop=e.top??0,n.spacingBottom=e.bottom??0}else n.spacingTop=0,n.spacingBottom=0;return h?.(n,t),n},[e,l,g,s,f,i,h]),b=a.useCallback(()=>{c.current=!1;let t=p?.top.reduce((e,t)=>{let r=m(t);return e+r.content+r.spacingTop+r.spacingBottom+r.detail},0)??0,o=p?.bottom.reduce((e,t)=>{let r=m(t);return e+r.content+r.spacingTop+r.spacingBottom+r.detail},0)??0,l=[],i=n.reduce((e,t)=>{l.push(e);let r=m(t);return e+(r.content+r.spacingTop+r.spacingBottom+r.detail)},0);c.current||(u.current=1/0);let a=t!==e.state.rowsMeta.pinnedTopRowsTotalHeight||o!==e.state.rowsMeta.pinnedBottomRowsTotalHeight||i!==e.state.rowsMeta.currentPageTotalHeight;e.set("rowsMeta",{currentPageTotalHeight:i,positions:l,pinnedTopRowsTotalHeight:t,pinnedBottomRowsTotalHeight:o}),a&&r(),d.current=!0},[e,p,n,m,r]),v=(0,ea.A)(b),w=(e,t)=>{let r=g(e),o=r.content!==t;r.needsFirstMeasurement=!1,r.content=t,d.current&&=!o},C=(0,oo.A)(()=>"undefined"==typeof ResizeObserver?void 0:new ResizeObserver(e=>{for(let r=0;r<e.length;r+=1){let o=e[r],n=o.borderBoxSize&&o.borderBoxSize.length>0?o.borderBoxSize[0].blockSize:o.contentRect.height,l=o.target.__mui_id;if(t.focusedVirtualCell?.()?.id===l&&0===n)return;w(l,n)}d.current||requestAnimationFrame(()=>{v()})})).current;return(0,ev.A)(()=>{b()},[b]),{getRowHeight:t=>o.get(t)?.content??oy.rowHeight(e.state),setLastMeasuredRowIndex:e=>{c.current&&e>u.current&&(u.current=e)},storeRowHeightMeasurement:w,hydrateRowsMeta:b,observeRowHeight:(e,t)=>(e.__mui_id=t,C?.observe(e),()=>C?.unobserve(e)),rowHasAutoHeight:e=>o.get(e)?.autoHeight??!1,getRowHeightEntry:g,getLastMeasuredRowIndex:()=>u.current,resetRowHeights:()=>{o.clear(),b()}}}(e,t,h);return{updateDimensions:h,debouncedUpdateDimensions:v,rowsMeta:w}},selectors:oy},oS=new WeakMap;function oR(e){let t=Number.parseFloat(e??"0");return Number.isNaN(t)?0:t}var oM=r(98477);let oI=()=>{};function ok(e){let t=a.useRef(void 0);return(0,ea.A)(r=>r?(t.current=e(r),og.A>=19)?t.current:void 0:void t.current?.())}let oP=(e,t,r)=>Math.max(t,Math.min(r,e)),oE={top:0,left:0},oT=Object.freeze(new Map),oF={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},oD=(()=>{let e=(0,oc.Mz)(e=>e.virtualization.renderContext.firstRowIndex);return{store:(0,oc.Mz)(e=>e.virtualization),renderContext:(0,oc.Mz)(e=>e.virtualization.renderContext),enabledForRows:(0,oc.Mz)(e=>e.virtualization.enabledForRows),enabledForColumns:(0,oc.Mz)(e=>e.virtualization.enabledForColumns),offsetTop:(0,oc.Mz)(oA.selectors.rowPositions,e,(e,t)=>e[t]??0),context:(0,oc.Mz)(e=>e.virtualization.context),scrollPosition:(0,oc.Mz)(e=>e.virtualization.scrollPosition)}})(),oO={initialize:function(e){return{virtualization:(0,i.A)({enabled:!q,enabledForRows:!q,enabledForColumns:!q,renderContext:oF,props:e.layout.constructor.elements.reduce((e,t)=>
18(e[t],e),{}),context:{},scrollPosition:{current:ow.EMPTY}},e.initialState?.virtualization),getters:null}},use:function(e,t,r){let{layout:o,dimensions:{rowHeight:n,columnsTotalWidth:l=0},virtualization:{isRtl:s=!1,rowBufferPx:u=150,columnBufferPx:c=150},colspan:d,initialState:p,rows:f,range:g,columns:h,pinnedRows:m=ob.EMPTY,pinnedColumns:b=ov.EMPTY,onWheel:v,onTouchMove:w,onRenderContextChange:C,onScrollChange:x,scrollReset:y,renderRow:A,renderInfiniteLoadingTrigger:S}=t,R=m.bottom.length>0,[M,I]=a.useState(oT),k=a.useRef(!1),P=a.useRef(!1),E=oh(e,oD.renderContext,void 0,void 0,void 0),T=oh(e,oD.enabledForRows,void 0,void 0,void 0),F=oh(e,oD.enabledForColumns,void 0,void 0,void 0),D=oh(e,oA.selectors.contentHeight,void 0,void 0,void 0),O=a.useRef(p?.scroll??oE),z=a.useRef(!1),H=a.useRef(oE),V=a.useRef(oF),j=(0,em.A)(),N=a.useRef(void 0),L=(0,oo.A)(()=>{var e,t,r,o,l;return e=s,t=u,r=c,o=15*n,l=300,{direction:oC.NONE,buffer:oB(e,oC.NONE,t,r,o,300)}}).current,$=a.useCallback(t=>{oL(t,e.state.virtualization.renderContext)||e.set("virtualization",(0,i.A)({},e.state.virtualization,{renderContext:t,scrollPosition:{current:(0,i.A)({},O.current)}}));let r=oA.selectors.dimensions(e.state).isReady,o=t.firstRowIndex!==V.current.firstRowIndex||t.lastRowIndex!==V.current.lastRowIndex;r&&o&&(V.current=t,C?.(t)),H.current=O.current},[e,C]),B=(0,ea.A)(()=>{let l=o.refs.scroller.current;if(!l)return;let a=oA.selectors.dimensions(e.state),d=Math.ceil(a.contentSize.height-a.viewportInnerSize.height),p=Math.ceil(a.contentSize.width-a.viewportInnerSize.width),f={top:oP(l.scrollTop,0,d),left:s?oP(l.scrollLeft,-Math.abs(p),0):oP(l.scrollLeft,0,p)},g=f.left-O.current.left,h=f.top-O.current.top,m=0!==g||0!==h;O.current=f;let b=m?oC.forDelta(g,h):oC.NONE,v=Math.abs(O.current.top-H.current.top),w=Math.abs(O.current.left-H.current.left),C=L.direction!==b;if(!(v>=n||w>=50||C))return e.set("virtualization",(0,i.A)({},e.state.virtualization,{scrollPosition:{current:(0,i.A)({},O.current)}})),E;if(C)switch(b){case oC.NONE:case oC.LEFT:case oC.RIGHT:N.current=void 0;break;default:N.current=E}L.direction=b,L.buffer=oB(s,b,u,c,15*n,300);let x=oH(oz(e,t,r,T,F),O.current,L);return oL(x,E)?e.set("virtualization",(0,i.A)({},e.state.virtualization,{scrollPosition:{current:(0,i.A)({},O.current)}})):(oM.flushSync(()=>{$(x)}),j.start(1e3,B)),x}),G=()=>{if(!oA.selectors.dimensions(e.state).isReady&&(T||F))return;let o=oH(oz(e,t,r,T,F),O.current,L);N.current=void 0,$(o)},W=(0,ea.A)(G);os(e,oA.selectors.dimensions,(e,t)=>{t.isReady&&G()}),(0,ev.A)(()=>{k.current&&(G(),k.current=!1)});let U=(0,ea.A)(()=>{if(z.current){z.current=!1;return}let e=B();e&&x?.(O.current,e)}),_=a.useRef(null);(0,ev.A)(()=>{P.current&&W()},[F,T,W]),(0,ev.A)(()=>{o.refs.scroller.current&&(o.refs.scroller.current.scrollLeft=0)},[o.refs.scroller,y]),((e,t)=>{let r=a.useRef(!1);(0,ev.A)(()=>r.current||!e?oI:(r.current=!0,t()),[r.current||e])})(E!==oF,()=>{if(x?.(O.current,E),P.current=!0,p?.scroll&&o.refs.scroller.current){let e=o.refs.scroller.current,{top:t,left:r}=p.scroll,n={top:!(t>0),left:!(r>0)};!n.left&&l&&(e.scrollLeft=r,n.left=!0,z.current=!0),!n.top&&D&&(e.scrollTop=t,z.current=!0),n.top&&n.left||(_.current=(o,l)=>{!n.left&&o&&(e.scrollLeft=r,n.left=!0,z.current=!0),!n.top&&l&&(e.scrollTop=t,n.top=!0,z.current=!0),n.left&&n.top&&(_.current=null)})}}),os(e,oA.selectors.dimensions,G),(0,ev.A)(()=>{o.refs.scroller&&_.current?.(l,D)},[o.refs.scroller,l,D]);let q=a.useRef(!0),K=ok(t=>{o.refs.container.current=t;let n=function(e,t,r){if(!e)return;let o=e.getBoundingClientRect(),n={width:on(o.width,1),height:on(o.height,1)};if(t.state.rootSize!==om.EMPTY&&om.equals(n,t.state.rootSize)||r(n),"undefined"==typeof ResizeObserver)return;let l=new ResizeObserver(([e])=>{if(!e)return;let o={width:on(e.contentRect.width,1),height:on(e.contentRect.height,1)};om.equals(o,t.state.rootSize)||r(o)});return l.observe(e),()=>{l.disconnect()}}(t,e,t=>{(0!==t.width||0!==t.height||0===e.state.rootSize.height||0===e.state.rootSize.width)&&(e.state.rootSize=t,q.current||!r.debouncedUpdateDimensions?(r.updateDimensions(q.current),q.current=!1):r.debouncedUpdateDimensions())});return()=>{n?.(),o.refs.container.current=null}}),X=ok(e=>{o.refs.scroller.current=e;let t={passive:!0};return e.addEventListener("scroll",U,t),e.addEventListener("wheel",v,t),e.addEventListener("touchmove",w,t),()=>{e.removeEventListener("scroll",U,t),e.removeEventListener("wheel",v,t),e.removeEventListener("touchmove",w,t),o.refs.scroller.current=null}}),Y=o.use(e,t,r,{containerRef:K,scrollerRef:X}),Q=(0,i.A)({setPanels:I,getRows:(o={},n)=>{let i;if(!o.rows&&!g)return[];let a=E;o.renderContext&&((a=o.renderContext).firstColumnIndex=E.firstColumnIndex,a.lastColumnIndex=E.lastColumnIndex);let s=!R&&void 0===o.position||R&&"bottom"===o.position,u=void 0!==o.position;switch(o.position){case"top":i=0;break;case"bottom":i=m.top.length+f.length;break;default:i=m.top.length}let c=o.rows??f,p=a.firstRowIndex,v=Math.min(a.lastRowIndex,c.length),w=o.rows?oG(0,o.rows.length):oG(p,v),C=-1,x=t.focusedVirtualCell?.();!u&&x&&(x.rowIndex<p&&x.rowIndex>=0&&x.rowIndex<c.length&&(w.unshift(x.rowIndex),C=x.rowIndex),x.rowIndex>v&&x.rowIndex<c.length&&(w.push(x.rowIndex),C=x.rowIndex));let y=[],I=oA.selectors.columnPositions(e.state,h);
18return w.forEach(e=>{let{id:t,model:p}=c[e];if(n&&!n[t])return;let m=(g?.firstRowIndex||0)+i+e;if(d?.enabled){let e=b.left.length,o=h.length-b.right.length;r.calculateColSpan(t,e,o,h),b.left.length>0&&r.calculateColSpan(t,0,b.left.length,h),b.right.length>0&&r.calculateColSpan(t,h.length-b.right.length,h.length,h)}let v=r.rowsMeta.rowHasAutoHeight(t)?"auto":r.rowsMeta.getRowHeight(t),w=!1;void 0===o.position&&(w=0===e);let R=!1,k=e===c.length-1;s&&(u?R=k:e===f.length-1&&(R=!0));let P=a;N.current&&e>=N.current.firstRowIndex&&e<N.current.lastRowIndex&&(P=N.current);let E=e===C,T=x?.rowIndex===m,F=o$(I,P,b.left.length),D=k&&"top"===o.position,O=P.firstColumnIndex,z=P.lastColumnIndex;if(y.push(A({id:t,model:p,rowIndex:m,offsetLeft:F,columnsTotalWidth:l,baseRowHeight:v,firstColumnIndex:O,lastColumnIndex:z,focusedColumnIndex:T?x.columnIndex:void 0,isFirstVisible:w,isLastVisible:R,isVirtualFocusRow:E,showBottomBorder:D})),E)return;let H=M.get(t);H&&y.push(H),void 0===o.position&&k&&S&&y.push(S(t))}),y},rows:t.rows},Y);return(0,i.A)({getters:Q,setPanels:I,forceUpdateRenderContext:G,scheduleUpdateRenderContext:()=>{k.current=!0}},{getCellColSpanInfo:()=>{throw Error("Unimplemented: colspan feature is required")},calculateColSpan:()=>{throw Error("Unimplemented: colspan feature is required")},getHiddenCellsOrigin:()=>{throw Error("Unimplemented: rowspan feature is required")}})},selectors:oD};function oz(e,t,r,o,n){let l=oA.selectors.dimensions(e.state),i=t.rows,a=t.range,s=t.columns,u=r.getHiddenCellsOrigin(),c=t.rows.at(-1)?.id,d=s.at(-1);return{api:r,enabledForRows:o,enabledForColumns:n,autoHeight:l.autoHeight,rowBufferPx:t.virtualization.rowBufferPx,columnBufferPx:t.virtualization.columnBufferPx,leftPinnedWidth:l.leftPinnedWidth,columnsTotalWidth:l.columnsTotalWidth,viewportInnerWidth:l.viewportInnerSize.width,viewportInnerHeight:l.viewportInnerSize.height,lastRowHeight:void 0!==c?r.rowsMeta.getRowHeight(c):0,lastColumnWidth:d?.computedWidth??0,rowsMeta:oA.selectors.rowsMeta(e.state),columnPositions:oA.selectors.columnPositions(e.state,t.columns),rows:i,range:a,pinnedColumns:t.pinnedColumns,columns:s,hiddenCellsOriginMap:u,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function oH(e,t,r){let o={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.columns.length},{top:n,left:l}=t,i=Math.abs(l)+e.leftPinnedWidth;if(e.enabledForRows){let t=Math.min(oV(e,n,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1),r=e.hiddenCellsOriginMap[t];r&&(t=Math.min(t,Math.min(...Object.values(r))));let l=e.autoHeight?t+e.rows.length:oV(e,n+e.viewportInnerHeight);o.firstRowIndex=t,o.lastRowIndex=l}if(e.enabledForColumns){let t=0,n=e.columnPositions.length,l=!1,[a,s]=oN({firstIndex:o.firstRowIndex,lastIndex:o.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:r.buffer.rowBefore,bufferAfter:r.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let t=a;t<s&&!l;t+=1){let r=e.rows[t];l=e.api.rowsMeta.rowHasAutoHeight(r.id)}(!l||e.virtualizeColumnsWithAutoRowHeight)&&(t=oj(i,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),n=oj(i+e.viewportInnerWidth,e.columnPositions)),o.firstColumnIndex=t,o.lastColumnIndex=n}var a=e,s=o,u=r;let[c,d]=oN({firstIndex:s.firstRowIndex,lastIndex:s.lastRowIndex,minFirstIndex:0,maxLastIndex:a.rows.length,bufferBefore:u.buffer.rowBefore,bufferAfter:u.buffer.rowAfter,positions:a.rowsMeta.positions,lastSize:a.lastRowHeight}),[p,f]=oN({firstIndex:s.firstColumnIndex,lastIndex:s.lastColumnIndex,minFirstIndex:a.pinnedColumns?.left.length??0,maxLastIndex:a.columns.length-(a.pinnedColumns?.right.length??0),bufferBefore:u.buffer.columnBefore,bufferAfter:u.buffer.columnAfter,positions:a.columnPositions,lastSize:a.lastColumnWidth}),g=function({api:e,firstColumnToRender:t,firstRowToRender:r,lastRowToRender:o,visibleRows:n}){let l=t,i=!1;for(;!i&&l>=0;){i=!0;for(let t=r;t<o;t+=1)if(n[t]){let r=n[t].id,o=e.getCellColSpanInfo(r,l);if(o&&o.spannedByColSpan&&o.leftVisibleCellIndex<l){l=o.leftVisibleCellIndex,i=!1;break}}}return l}({api:a.api,firstColumnToRender:p,firstRowToRender:c,lastRowToRender:d,visibleRows:a.rows});return{firstRowIndex:c,lastRowIndex:d,firstColumnIndex:g,lastColumnIndex:f}}function oV(e,t,r){let o=e.api.rowsMeta.getLastMeasuredRowIndex(),n=o===1/0;e.range?.lastRowIndex&&!n&&(n=o>=e.range.lastRowIndex);let l=oP(o-(e.range?.firstRowIndex||0),0,e.rowsMeta.positions.length);return n||e.rowsMeta.positions[l]>=t?oj(t,e.rowsMeta.positions,r):function(e,t,r,o){let n=1;for(;r<t.length&&Math.abs(t[r])<e;)r+=n,n*=2;return oj(e,t,o,Math.floor(r/2),Math.min(r,t.length))}(t,e.rowsMeta.positions,l,r)}function oj(e,t,r,o=0,n=t.length){if(t.length<=0)return -1;if(o>=n)return o;let l=o+Math.floor((n-o)/2),i=t[l];return(r?.atStart?e-((l===t.length-1?r.lastPosition:t[l+1])-i)<i:e<=i)?oj(e,t,r,o,l):oj(e,t,r,l+1,n)}function oN({firstIndex:e,lastIndex:t,bufferBefore:r,bufferAfter:o,minFirstIndex:n,maxLastIndex:l,positions:i,lastSize:a}){let s=i[e]-r,u=i[t]+o,c=oj(s,i,{atStart:!0,lastPosition:i[i.length-1]+a}),d=oj(u,i);return[oP(c,n,l),oP(d,n,l)]}function oL(e,t){return e===t||e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function o$(e,t,r){return Math.abs((e[t.firstColumnIndex]??0)-(e[r]??0))}function oB(e,t,r,o,n,l){if(e)switch(t){case oC.LEFT:t=oC.RIGHT;break;case oC.RIGHT:t=oC.LEFT}switch(t){case oC.NONE:return{rowAfter:r,rowBefore:r,columnAfter:o,columnBefore:o};case oC.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:l};case oC.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:l,columnBefore:0};case oC.UP:return{rowAfter:0,rowBefore:n,columnAfter:0,columnBefore:0};
18case oC.DOWN:return{rowAfter:n,rowBefore:0,columnAfter:0,columnBefore:0};default:throw Error("unreachable")}}function oG(e,t){return Array.from({length:t-e}).map((t,r)=>e+r)}class oW{static elements=["scroller","container"];constructor(e){this.refs=e}refSetter(e){return t=>{this.refs[e].current!==t&&(this.refs[e].current=t)}}}class oU extends oW{static elements=["scroller","container","content","positioner","scrollbarVertical","scrollbarHorizontal"];use(e,t,r,o){let{scrollerRef:n,containerRef:l}=o,i=oK(this.refs.scroller,this.refSetter("scrollbarVertical"),"scrollTop",r.updateDimensions),a=oK(this.refs.scroller,this.refSetter("scrollbarHorizontal"),"scrollLeft",r.updateDimensions);e.state.virtualization.context={scrollerRef:n,containerRef:l,scrollbarVerticalRef:i,scrollbarHorizontalRef:a}}static selectors={containerProps:(0,oc.S)(oO.selectors.context,e=>({ref:e.containerRef})),scrollerProps:(0,oc.S)(oO.selectors.context,oA.selectors.autoHeight,oA.selectors.needsHorizontalScrollbar,(e,t,r)=>({ref:e.scrollerRef,style:{overflowX:r?void 0:"hidden",overflowY:t?"hidden":void 0},role:"presentation",tabIndex:U?-1:void 0})),contentProps:(0,oc.S)(oA.selectors.contentHeight,oA.selectors.minimalContentHeight,oA.selectors.columnsTotalWidth,oA.selectors.needsHorizontalScrollbar,(e,t,r,o)=>({style:{width:o?r:"auto",flexBasis:0===e?t:e,flexShrink:0},role:"presentation"})),positionerProps:(0,oc.S)(oO.selectors.offsetTop,e=>({style:{transform:`translate3d(0, ${e}px, 0)`}})),scrollbarHorizontalProps:(0,oc.S)(oO.selectors.context,oO.selectors.scrollPosition,(e,t)=>({ref:e.scrollbarHorizontalRef,scrollPosition:t})),scrollbarVerticalProps:(0,oc.S)(oO.selectors.context,oO.selectors.scrollPosition,(e,t)=>({ref:e.scrollbarVerticalRef,scrollPosition:t})),scrollAreaProps:(0,oc.S)(oO.selectors.scrollPosition,e=>({scrollPosition:e}))}}class o_ extends oU{use(e,t,r,o){super.use(e,t,r,o);let n=e.use(oU.selectors.containerProps),l=e.use(oU.selectors.scrollerProps),i=e.use(oU.selectors.contentProps),a=e.use(oU.selectors.positionerProps),s=e.use(oU.selectors.scrollbarVerticalProps),u=e.use(oU.selectors.scrollbarHorizontalProps),c=e.use(oU.selectors.scrollAreaProps);return{getContainerProps:()=>n,getScrollerProps:()=>l,getContentProps:()=>i,getPositionerProps:()=>a,getScrollbarVerticalProps:()=>s,getScrollbarHorizontalProps:()=>u,getScrollAreaProps:()=>c}}}class oq extends oW{static elements=["scroller","container","content","positioner"];use(e,t,r,o){let{scrollerRef:n,containerRef:l}=o,i=(0,p.A)(n,l);e.state.virtualization.context={mergedRef:i}}static selectors={containerProps:(0,oc.S)(oO.selectors.context,oA.selectors.autoHeight,oA.selectors.needsHorizontalScrollbar,(e,t,r)=>({ref:e.mergedRef,style:{overflowX:r?void 0:"hidden",overflowY:t?"hidden":void 0,position:"relative"},role:"presentation",tabIndex:U?-1:void 0})),contentProps:(0,oc.S)(oA.selectors.contentHeight,e=>({style:{position:"absolute",display:"inline-block",width:"100%",height:e,top:0,left:0,zIndex:-1},role:"presentation"})),positionerProps:(0,oc.S)(oO.selectors.offsetTop,e=>({style:{height:e}}))}}function oK(e,t,r,o){let n=a.useRef(!1),l=a.useRef(0),i=(0,ea.A)(t=>{let o=e.current;if(!o)return;let i=o[r];if(i!==l.current){if(l.current=i,n.current){n.current=!1;return}n.current=!0,t[r]=i}}),s=(0,ea.A)(t=>{let o=e.current;if(o){if(n.current){n.current=!1;return}n.current=!0,o[r]=t[r]}});return ok(r=>{t(r),o();let n=e.current;if(!n)return()=>{t(null)};let l=()=>i(r),a=()=>s(r),u={passive:!0};return n.addEventListener("scroll",l,u),r.addEventListener("scroll",a,u),()=>{n.removeEventListener("scroll",l),r.removeEventListener("scroll",a),t(null)}})}class oX{static create(e){return new oX(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){let t;this.state=e,this.updateTick+=1;let r=this.updateTick,o=this.listeners.values();for(;!(t=o.next()).done;){if(r!==this.updateTick)return;(0,t.value)(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState((0,i.A)({},this.state,e))}set(e,t){Object.is(this.state[e],t)||this.setState((0,i.A)({},this.state,{[e]:t}))}use=(e,t,r,o)=>oh(this,e,t,r,o)}function oY(e,t,r,o){let n=e.get(t);n||(n={},e.set(t,n)),n[r]=o}let oQ={firstRowIndex:0,lastRowIndex:0},oZ={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},oJ={state:e=>e.rowSpanning,hiddenCells:e=>e.rowSpanning.caches.hiddenCells,spannedCells:e=>e.rowSpanning.caches.spannedCells,hiddenCellsOriginMap:e=>e.rowSpanning.caches.hiddenCellOriginMap},o0={initialize:function(e){return{rowSpanning:e.initialState?.rowSpanning??{caches:oZ,processedRange:oQ}}},use:function(e,t,r){return{getHiddenCellsOrigin:()=>oJ.hiddenCellsOriginMap(e.state)}},selectors:oJ},o1={resizeThrottleMs:100,columns:[{field:"DEFAULT_COLUMN"}],dimensions:{autoHeight:!1,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,topPinnedHeight:0,bottomPinnedHeight:0},virtualization:{isRtl:!1,rowBufferPx:150,columnBufferPx:150}},o2=[oA,oO,{initialize:function(e){return{colspanMap:new Map}},use:function(e,t,r){let o=t.colspan?.getColspan,n=(0,ea.A)(o?(t,r,n,l)=>{for(let i=r;i<n;i+=1){let a=function(e,t,r,o,n,l,i){let a=l.length,s=l[t],u=i(r,s,t);if(!u||1===u)return oY(e,r,t,{spannedByColSpan:!1,cellProps:{colSpan:1,width:s.computedWidth}}),{colSpan:1};
18let c=s.computedWidth;for(let i=1;i<u;i+=1){let s=t+i;s>=o&&s<n&&(c+=l[s].computedWidth,oY(e,r,t+i,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(t+u,a-1),leftVisibleCellIndex:t})),oY(e,r,t,{spannedByColSpan:!1,cellProps:{colSpan:u,width:c}})}return{colSpan:u}}(e.state.colspanMap,i,t,r,n,l,o);a.colSpan>1&&(i+=a.colSpan-1)}}:()=>{});return r.calculateColSpan=n,{resetColSpan:()=>{e.state.colspanMap=new Map},getCellColSpanInfo:(t,r)=>e.state.colspanMap.get(t)?.[r],calculateColSpan:n}},selectors:{}},o0,{initialize:function(e){return{}},use:function(e,t,r){return{getViewportPageSize:()=>{let r=oA.selectors.dimensions(e.state);if(!r.isReady)return 0;if(t.getRowHeight){let r=oO.selectors.renderContext(e.state);return Math.min(r.lastRowIndex-r.firstRowIndex-1,t.rows.length)}return Math.min(Math.floor(r.viewportInnerSize.height/r.rowHeight),t.rows.length)}}},selectors:{}}];function o9(e){let t=a.useRef(!0);t.current&&(t.current=!1,e())}let o3=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}({}),o5=(e,t,r)=>t>0&&e>0?Math.ceil(e/t):-1===e?r+2:0,o4=e=>({page:0,pageSize:100*!e}),o6=(e,t)=>{if(t===o3.DataGrid&&e>100)throw Error("MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.\nYou need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.")},o7=(0,K.gz)(e=>e.pagination),o8=(0,K.Mz)(o7,e=>e.enabled&&"client"===e.paginationMode),ne=(0,K.Mz)(o7,e=>e.paginationModel),nt=(0,K.Mz)(o7,e=>e.rowCount),nr=(0,K.Mz)(o7,e=>e.meta),no=(0,K.Mz)(ne,e=>e.page),nn=(0,K.Mz)(ne,e=>e.pageSize),nl=(0,K.Mz)(ne,nt,(e,t)=>o5(t,e.pageSize,e.page)),ni=(0,K.S)(o8,ne,ei.qj,ei.V2,ry.em,ry.tW,(e,t,r,o,n,l)=>{if(!e||!n||0===n.length)return null;let i=l.length,a=Math.min(t.pageSize*t.page,i-1),s=-1===t.pageSize?i-1:Math.min(a+t.pageSize-1,i-1);if(-1===a||-1===s)return null;if(o<2)return{firstRowIndex:a,lastRowIndex:s};let u=l[a],c=s-a+1,d=n.findIndex(e=>e.id===u.id),p=d,f=0;for(;p<n.length&&f<=c;){let e=n[p],t=r[e.id]?.depth;void 0===t?p+=1:((f<c||t>0)&&(p+=1),0===t&&(f+=1))}return{firstRowIndex:d,lastRowIndex:p-1}}),na=(0,K.S)(ry.em,ni,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),ns=(0,K.S)(ry.ux,ni,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),nu=(0,K.S)(o8,ni,na,ry.em,(e,t,r,o)=>e?{rows:r,range:t,rowIdToIndexMap:r.reduce((e,t,r)=>(e.set(t.id,r),e),new Map)}:{rows:o,range:0===o.length?null:{firstRowIndex:0,lastRowIndex:o.length-1},rowIdToIndexMap:o.reduce((e,t,r)=>(e.set(t.id,r),e),new Map)}),nc=(e,t)=>nu(e),nd=(e,t)=>(0,C.Nc)(e,nu),np=(0,K.gz)(e=>e.virtualization);(0,K.Mz)(np,e=>e.enabled);let nf=(0,K.Mz)(np,e=>e.enabledForColumns);(0,K.Mz)(np,e=>e.enabledForRows);let ng=(0,K.Mz)(np,e=>e.renderContext),nh=(0,K.gz)(e=>e.virtualization.renderContext.firstColumnIndex),nm=(0,K.gz)(e=>e.virtualization.renderContext.lastColumnIndex),nb=(0,K.S)(nh,nm,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),nv=(0,K.Mz)(rE,ng,nu,V.iv,(e,t,r,o)=>{if(!e)return!1;let n=r.rowIdToIndexMap.get(e.id),l=o.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(t=>t.field===e.field);return!(void 0!==n&&-1!==l&&n>=t.firstRowIndex&&n<=t.lastRowIndex)}),nw=(0,K.S)(nv,V.iv,nu,rE,(e,t,r,o)=>{if(!e)return null;let n=r.rowIdToIndexMap.get(o.id);if(void 0===n)return null;let l=t.findIndex(e=>e.field===o.field);return -1===l?null:(0,i.A)({},o,{rowIndex:n,columnIndex:l})});class nC{constructor(e){this.data=e.ids}has(e){return this.data.has(e)}select(e){this.data.add(e)}unselect(e){this.data.delete(e)}}class nx{constructor(e){this.data=e.ids}has(e){return!this.data.has(e)}select(e){this.data.delete(e)}unselect(e){this.data.add(e)}}let ny=e=>"include"===e.type?new nC(e):new nx(e),nA=(0,K.gz)(e=>e.rowSelection),nS=(0,K.S)(nA,ny),nR=(0,K.Mz)(nA,ry.ee,(e,t)=>"include"===e.type?e.ids.size:t-e.ids.size),nM=(0,K.S)(nA,ei.rI,ei.A6,(e,t,r)=>{let o=new Map;if("include"===e.type)for(let r of e.ids)o.set(r,t[r]);else for(let n=0;n<r.length;n+=1){let l=r[n];e.ids.has(l)||o.set(l,t[l])}return o}),nI={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnFilterDebounceMs:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,dataSourceRevalidateMs:0,disableRowSelectionOnClick:!1,disableRowSelectionExcludeModel:!1,disableVirtualization:!1,editMode:tM.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rows:[],rowSelection:!0,rowSpacingType:"margin",rowSpanning:!1,showCellVerticalBorder:!1,showColumnVerticalBorder:!1,showToolbar:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,virtualizeColumnsWithAutoRowHeight:!1,tabNavigation:"none"};function nk(e,t,r){let o=a.useRef(!0);(0,ev.A)(()=>{o.current=!1,e.current.register(r,t)},[e,r,t]),o.current&&e.current.register(r,t)}let nP=(e,t,r)=>{let o=a.useRef(null),n=a.useRef(`mui-${Math.round(1e9*Math.random())}`),l=a.useCallback(()=>{o.current=e.current.registerPipeApplier(t,n.current,r)},[e,r,t]);o9(()=>{l()});let i=a.useRef(!0);a.useEffect(()=>(i.current?i.current=!1:l(),()=>{o.current&&(o.current(),o.current=null)}),[l])},nE=(e,t,r)=>{let o=Q(r),n=(0,ei.H0)(r),l=o7(r),a=Math.min(l.enabled?l.paginationModel.pageSize:n,n);return(0,i.A)({},e,{rowsMeta:{currentPageTotalHeight:a*o,positions:Array.from({length:a},(e,t)=>t*o),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},nT=(0,K.Mz)(V.iv,V.Sw,(e,t)=>{let r=e.length;return 0===r?0:on(t[r-1]+e[r-1].computedWidth,1)}),nF=()=>(0,ol.i5)((e,t,r,o,n)=>(0,i.A)({},e,{headerHeight:t,groupHeaderHeight:r,headerFilterHeight:o,headersTotalHeight:n}),{maxSize:1}),nD=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.virtualScroller,r.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},[_]:{scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}},"@media print":{overflow:"hidden"},zIndex:0}),nO=e=>e.current.state.dimensions.rightPinnedWidth>0;function nz(e){let t=y(),r=(0,T.A)(),o=(0,C.Nc)(t,J),n=(0,C.Nc)(t,Z),l=(0,C.Nc)(t,nO),s=(0,C.Nc)(t,el),{overlayType:u,loadingOverlayVariant:c}=rI(t,r),d=r.slots?.[u],p={classes:r.classes,hasScrollX:n,hasPinnedRight:l,overlayType:u,loadingOverlayVariant:c},f=(e=>{let{classes:t,hasScrollX:r,hasPinnedRight:o,loadingOverlayVariant:n,overlayType:l}=e;return(0,g.A)({root:["main",o&&"main--hasPinnedRight",("skeleton"===n||"noColumnsOverlay"===l)&&"main--hiddenContent"],scroller:["virtualScroller",r&&"virtualScroller--hasScrollX"]},v.B9,t)})(p),h=function(){let e=(0,tN.I)(),t=(0,T.A)(),r=y(),{listView:o}=t,n=(0,C.Nc)(r,V.iv),l=(0,C.Nc)(r,ei.$2),s=(0,V.Q1)(r),u=(0,C.Nc)(r,nS),c=a.useCallback(e=>u.has(e)&&r.current.isRowSelectable(e),[u,r]),d=nd(r),p=(0,C.Nc)(r,V.kw),f=(0,C.Nc)(r,en),g=(0,C.Nc)(r,ee),{autoHeight:h}=t,m=(0,C.Nc)(r,F.rf),b=Math.floor((0,tl.Qy)(t.rowHeight,nI.rowHeight,tl.Oq)*m),v=Math.floor(t.columnHeaderHeight*m),w=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*m),x=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*m),A=(0,C.Nc)(r,nT),S=rg(r,t),R=s.left.reduce((e,t)=>
18e+t.computedWidth,0),M=s.right.reduce((e,t)=>e+t.computedWidth,0),I=rI(r,t),k={rowHeight:b,headerHeight:v,columnsTotalWidth:A,leftPinnedWidth:R,rightPinnedWidth:M,topPinnedHeight:S,bottomPinnedHeight:0,autoHeight:h,minimalContentHeight:tl.SN,scrollbarSize:t.scrollbarSize},P=(0,oo.A)(nF).current,E=(0,C.Nc)(r,ei.H0),D=(0,C.Nc)(r,o7),O=Math.min(D.enabled?D.paginationModel.pageSize:E,E),{getRowHeight:z,getEstimatedRowHeight:H,getRowSpacing:j}=t,N=t.slots.row,L=t.slotProps?.row;(0,C.Nc)(r,nw);let $=(e=>{let t=function e(t,r){let o=(0,i.A)({},t);for(let n in r)if(Object.hasOwn(r,n)){let l=r[n];null===l||"object"!=typeof l||Array.isArray(l)?o[n]=t[n]??l:o[n]=e(t[n]??{},l)}return o}(e,o1),r=(0,oo.A)(()=>new oX(o2.map(e=>e.initialize(t)).reduce((e,t)=>Object.assign(e,t),{}))).current,o={};for(let e of o2)Object.assign(o,e.use(r,t,o));return{store:r,api:o}})({layout:(0,oo.A)(()=>new o_({container:r.current.mainElementRef,scroller:r.current.virtualScrollerRef,scrollbarVertical:r.current.virtualScrollbarVerticalRef,scrollbarHorizontal:r.current.virtualScrollbarHorizontalRef})).current,dimensions:k,virtualization:{isRtl:e,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx},colspan:{enabled:p,getColspan:a.useCallback((e,t)=>{if("function"==typeof t.colSpan){let o=r.current.getRow(e),n=r.current.getRowValue(o,t);return t.colSpan(n,o,t,r)??0}return t.colSpan??1},[r])},initialState:{scroll:t.initialState?.scroll,rowSpanning:r.current.state.rowSpanning,virtualization:r.current.state.virtualization},rows:d.rows,range:d.range,rowCount:O,columns:n,pinnedRows:l,pinnedColumns:s,disableHorizontalScroll:o,disableVerticalScroll:"noColumnsOverlay"===I.overlayType||"skeleton"===I.loadingOverlayVariant,getRowHeight:a.useMemo(()=>{if(z)return e=>z((0,i.A)({},e,{densityFactor:m}))},[z,m]),getEstimatedRowHeight:a.useMemo(()=>H?e=>H((0,i.A)({},e,{densityFactor:m})):void 0,[H,m]),getRowSpacing:a.useMemo(()=>j?e=>{let t=d.rowIdToIndexMap.get(e.id)??-1,o={isFirstVisible:0===t,isLastVisible:t===d.rows.length-1,indexRelativeToCurrentPage:t};return j((0,i.A)({},e,o,{indexRelativeToCurrentPage:r.current.getRowIndexRelativeToVisibleRows(e.id)}))}:void 0,[r,j,d.rows,d.rowIdToIndexMap]),applyRowHeight:(0,ea.A)((e,t)=>r.current.unstable_applyPipeProcessors("rowHeight",e,t)),virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight,focusedVirtualCell:(0,ea.A)(()=>nw(r)),resizeThrottleMs:t.resizeThrottleMs,onResize:(0,ea.A)(e=>r.current.publishEvent("resize",e)),onWheel:(0,ea.A)(e=>{r.current.publishEvent("virtualScrollerWheel",{},e)}),onTouchMove:(0,ea.A)(e=>{r.current.publishEvent("virtualScrollerTouchMove",{},e)}),onRenderContextChange:(0,ea.A)(e=>{r.current.publishEvent("renderedRowsIntervalChange",e)}),onScrollChange:a.useCallback((e,t)=>{r.current.publishEvent("scrollPositionChange",{top:e.top,left:e.left,renderContext:t})},[r]),scrollReset:o,renderRow:a.useCallback(e=>(0,B.jsx)(N,(0,i.A)({row:e.model,rowId:e.id,index:e.rowIndex,selected:c(e.id),offsetLeft:e.offsetLeft,columnsTotalWidth:A,rowHeight:e.baseRowHeight,pinnedColumns:s,visibleColumns:n,firstColumnIndex:e.firstColumnIndex,lastColumnIndex:e.lastColumnIndex,focusedColumnIndex:e.focusedColumnIndex,isFirstVisible:e.isFirstVisible,isLastVisible:e.isLastVisible,isNotVisible:e.isVirtualFocusRow,showBottomBorder:e.showBottomBorder,scrollbarWidth:f,gridHasFiller:g},L),e.id),[A,g,c,s,N,L,f,n]),renderInfiniteLoadingTrigger:a.useCallback(e=>r.current.getInfiniteLoadingTriggerElement?.({lastRowId:e}),[r])});o9(()=>{r.current.store.state.dimensions=P($.store.state.dimensions,v,w,x,S),r.current.store.state.rowsMeta=$.store.state.rowsMeta,r.current.store.state.virtualization=$.store.state.virtualization}),os($.store,oA.selectors.dimensions,(e,t)=>{t.isReady&&r.current.setState(e=>(0,i.A)({},e,{dimensions:P(t,v,w,x,S)}))}),os($.store,oA.selectors.rowsMeta,(e,t)=>{t!==r.current.state.rowsMeta&&r.current.setState(e=>(0,i.A)({},e,{rowsMeta:t}))}),os($.store,oO.selectors.store,(e,t)=>{t.renderContext!==oF&&t!==r.current.state.virtualization&&r.current.setState(e=>(0,i.A)({},e,{virtualization:t}))}),r.current.register("private",{virtualizer:$});let{getRowHeight:G,setLastMeasuredRowIndex:W,storeRowHeightMeasurement:U,resetRowHeights:_,hydrateRowsMeta:q,observeRowHeight:K,rowHasAutoHeight:X,getRowHeightEntry:Y,getLastMeasuredRowIndex:Q}=r.current.virtualizer.api.rowsMeta;return nP(r,"rowHeight",q),nk(r,{unstable_getRowHeight:G,unstable_setLastMeasuredRowIndex:W,unstable_storeRowHeightMeasurement:U,resetRowHeights:_},"public"),nk(r,{hydrateRowsMeta:q,observeRowHeight:K,rowHasAutoHeight:X,getRowHeightEntry:Y,getLastMeasuredRowIndex:Q},"private"),$}().api.getters,{getContainerProps:m,getScrollerProps:b,getContentProps:w,getPositionerProps:x,getScrollbarVerticalProps:A,getScrollbarHorizontalProps:S,getRows:R,getScrollAreaProps:M}=h,I=R(void 0,(0,ei.qj)(t));return(0,B.jsxs)(rB,(0,i.A)({className:f.root},m(),{ownerState:p,children:[(0,B.jsx)(rx,(0,i.A)({scrollDirection:"left"},M())),(0,B.jsx)(rx,(0,i.A)({scrollDirection:"right"},M())),(0,B.jsx)(rx,(0,i.A)({scrollDirection:"up"},M())),(0,B.jsx)(rx,(0,i.A)({scrollDirection:"down"},M())),(0,B.jsxs)(nD,(0,i.A)({className:f.scroller},b(),{ownerState:p,children:[(0,B.jsxs)(rW,{children:[!r.listView&&(0,B.jsx)(rj,{}),(0,B.jsx)(r.slots.pinnedRows,{position:"top",virtualScroller:h})]}),u&&(0,B.jsx)(or,{overlayType:u,loadingOverlayVariant:c,children:(0,B.jsx)(d,(0,i.A)({},r.slotProps?.[u]))}),(0,B.jsx)(rq,(0,i.A)({},w(),{children:(0,B.jsxs)(r1,(0,i.A)({role:"rowgroup"},x(),{children:[I,(0,B.jsx)(r.slots.detailPanels,{virtualScroller:h})]}))})),s&&(0,B.jsx)(rJ,{rowsLength:I.length}),(0,B.jsx)(r.slots.bottomContainer,{children:(0,B.jsx)(r.slots.pinnedRows,{position:"bottom",virtualScroller:h})})]})),n&&(0,B.jsxs)(a.Fragment,{children:[r.pinnedColumnsSectionSeparator?.endsWith("shadow")&&(0,B.jsx)(r8,{position:"horizontal"}),(0,B.jsx)(r6,(0,i.A)({position:"horizontal"},S()))]}),o&&(0,B.jsxs)(a.Fragment,{children:[r.pinnedRowsSectionSeparator?.endsWith("shadow")&&(0,B.jsx)(r8,{position:"vertical"}),(0,B.jsx)(r6,(0,i.A)({position:"vertical"},A()))]}),n&&o&&(0,B.jsx)(r4,{"aria-hidden":"true"}),e.children]}))}function nH(){let e=(0,T.A)();return e.hideFooter?null:(0,B.jsx)(e.slots.footer,(0,i.A)({},e.slotProps?.footer))}let nV=["className","children","sidePanel"],nj=m((0,u.R)(function(e,t){let r=(0,T.A)(),{className:o,children:n,sidePanel:l}=e,s=(0,c.A)(e,nV),u=y(),h=(0,C.Nc)(u,F._v),m=u.current.rootElementRef,b=a.useCallback(e=>{null!==e&&u.current.publishEvent("rootMount",e)},[u]),w=(0,p.A)(m,t,b),x=((e,t)=>{let{autoHeight:r,classes:o,showCellVerticalBorder:n}=e,l={root:["root",r&&"autoHeight",`root--density${(0,f.A)(t)}`,null===e.slots.toolbar&&"root--noToolbar","withBorderColor",n&&"withVerticalBorder"]};return(0,g.A)(l,v.B9,o)})(r,h),A=(0,E.x9)();return(0,D.useSyncExternalStore)(O,z,H)?null:(0,B.jsxs)(R,(0,i.A)({className:(0,d.A)(x.root,o,A.className,l&&v.xV.withSidePanel),ownerState:r},s,{ref:w,children:[(0,B.jsxs)("div",{className:v.xV.mainContent,role:"presentation",children:[(0,B.jsx)(W,{}),(0,B.jsx)(nz,{children:n}),(0,B.jsx)(nH,{})]}),l,A.tag]}))}));function nN(e,t){let r=(0,ei.qj)(e),o=(0,rk.RJ)(e),n=(0,ry.wx)(e),l=r[t];if(!l||"group"!==l.type)return[];let i=[],a=o.findIndex(e=>e===t)+1;for(let t=a;t<o.length&&r[o[t]]?.depth>l.depth;t+=1){let r=o[t];!1!==n[r]&&e.current.isRowSelectable(r)&&i.push(r)}return i}let nL=(0,K.Mz)(V.OV,ei.qj,ry.wx,nS,ei.rI,ta,(e,t,r,o,n,l,{groupId:i,autoSelectParents:a})=>{let s=t[i],u={id:i,row:n[i],columns:e}
18,c=!0;if("function"==typeof l&&n[i]&&(c=l(u)),!s||"group"!==s.type||o.has(i))return{isIndeterminate:!1,isChecked:o.has(i),isSelectable:c};let d=!1,p=!1,f=i=>{if(!1===r[i]||d&&p)return;let a=t[i];a?.type==="group"&&a.children.forEach(f);let s={id:i,row:n[i],columns:e};("function"!=typeof l||!n[i]||l(s))&&(o.has(i)?d=!0:p=!0)};return f(i),{isIndeterminate:d&&p,isChecked:!!a&&d&&!p,isSelectable:c}});function n$(e){return e.signature===o3.DataGrid?e.checkboxSelection&&!0!==e.disableMultipleRowSelection:!e.disableMultipleRowSelection}let nB=(e,t,r,o,n,l,i=nS(e))=>{let a=(0,ry.wx)(e),s=new Set([]);if((o||n)&&!1!==a[r]){if(o){let o=t[r];o?.type==="group"&&nN(e,r).forEach(e=>{l(e),s.add(e)})}if(n){let o=r=>{let n=t[r];return!!n&&("group"!==n.type?!e.current.isRowSelectable(r)||i.has(r)||s.has(r):!!(i.has(r)||s.has(r))||n.children.every(o))},n=r=>{let i=((e,t,r)=>{let o=e[r];if(!o)return[];let n=o.parent;return null==n?[]:e[n].children.filter(e=>e!==r&&!1!==t[e])})(t,a,r),u=i.every(t=>!e.current.isRowSelectable(t)||o(t));if(0===i.length||u){let o=t[r],i=o?.parent;null!=i&&i!==tl.OL&&e.current.isRowSelectable(i)&&(l(i),s.add(i),n(i))}},u=t[r];if(!u||u.parent===tl.OL)return;n(r)}}},nG=(e,t,r,o,n,l)=>{let i=nS(e);if((n||o)&&(n&&((e,t)=>{let r=[],o=t;for(;null!=o&&o!==tl.OL;){let t=e[o];if(!t)break;r.push(o),o=t.parent}return r})(t,r).forEach(e=>{i.has(e)&&l(e)}),o)){let o=t[r];o?.type==="group"&&nN(e,r).forEach(e=>{l(e)})}};var nW=r(31080),nU=r(23195),n_=r(7750);function nq({privateApiRef:e,configuration:t,props:r,children:o}){let n=a.useRef(e.current.getPublicApi());return(0,B.jsx)(n_.S.Provider,{value:t,children:(0,B.jsx)(nU.y.Provider,{value:r,children:(0,B.jsx)(x.Provider,{value:e,children:(0,B.jsx)(nW.k.Provider,{value:n,children:(0,B.jsx)($.l2,{children:(0,B.jsx)(E.U9,{children:o})})})})})})}let nK=function(){try{let 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}}()&&null!=window.localStorage.getItem("DEBUG"),nX=()=>{},nY={debug:nX,info:nX,warn:nX,error:nX},nQ=["debug","info","warn","error"];function nZ(e,t,r=console){let o=nQ.indexOf(t);if(-1===o)throw Error(`MUI X: Log level ${t} not recognized.`);return nQ.reduce((t,n,l)=>(l>=o?t[n]=(...t)=>{let[o,...l]=t;r[n](`MUI X: ${e} - ${o}`,...l)}:t[n]=nX,t),{})}function nJ(e){return(nJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n0(e){var t=function(e,t){if("object"!=nJ(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=nJ(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nJ(t)?t:t+""}let n1=function(e){return e.DataSource="dataSource",e.RowTree="rowTree",e}({}),n2="none",n9={dataSourceRowsUpdate:n1.DataSource,rowTreeCreation:n1.RowTree,filtering:n1.RowTree,sorting:n1.RowTree,visibleRowsLookupCreation:n1.RowTree},n3=(e,t)=>(0,i.A)({},e,{props:{listView:t.listView,getRowId:t.getRowId,isCellEditable:t.isCellEditable,isRowSelectable:t.isRowSelectable,dataSource:t.dataSource}}),n5=(e,t,r,o)=>{let n=a.useRef(o),l=a.useRef(!1);o!==n.current&&(l.current=!1,n.current=o),l.current||(t.current.state=e(t.current.state,r,t),l.current=!0)};function n4(e,t){let r=a.useRef(null);if(r.current)return r.current;let o=e.current.getLogger(t);return r.current=o,o}let n6=(e,t,r,o,n)=>{let l=n4(e,"useNativeEventListener");eh(e,"rootMount",()=>{let e=t();if(e&&r)return l.debug(`Binding native ${r} event`),e.addEventListener(r,o,n),()=>{l.debug(`Clearing native ${r} event`),e.removeEventListener(r,o,n)}})},n7=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],n8=(0,u.R)(function(e,t){let{field:r,id:o,rowNode:n,tabIndex:l}=e,s=(0,c.A)(e,n7),u=(0,L.h)(),p=(0,T.A)(),f=(e=>{let{classes:t}=e;return(0,g.A)({root:["checkboxInput"]},v.B9,t)})({classes:p.classes}),{isIndeterminate:h,isChecked:m,isSelectable:b}=(0,C.Nc)(u,nL,{groupId:o,autoSelectParents:p.rowSelectionPropagation?.parents??!1},C.TJ),w=!b;a.useLayoutEffect(()=>{if(0===l&&!w){let e=u.current.getCellElement(o,r);e&&(e.tabIndex=-1)}},[u,l,o,r,w]);let x=(0,ea.A)(e=>{if(" "===e.key&&e.stopPropagation(),w)return}),y=(0,ea.A)(e=>{if(w)return void e.preventDefault()}),A=(0,ea.A)(()=>
18{if(w)return});if("footer"===n.type||"pinnedRow"===n.type)return null;let S=u.current.getLocaleText(m&&!h?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return(0,B.jsx)(p.slots.baseCheckbox,(0,i.A)({tabIndex:w?-1:l,checked:m&&!h,onChange:e=>{if(w)return;let t={value:e.target.checked,id:o};u.current.publishEvent("rowSelectionCheckboxChange",t,e)},onClick:y,onMouseDown:A,className:(0,d.A)(f.root,w&&"Mui-disabled"),disabled:w,material:{disableRipple:w},slotProps:{htmlInput:{"aria-disabled":w||void 0,"aria-label":S,name:"select_row"}},onKeyDown:x,indeterminate:h},p.slotProps?.baseCheckbox,s,{ref:t}))}),le=["field","colDef"],lt=(0,u.R)(function(e,t){let r=(0,c.A)(e,le),[,o]=a.useState(!1),n=(0,L.h)(),l=(0,T.A)(),s=(e=>{let{classes:t}=e;return(0,g.A)({root:["checkboxInput"]},v.B9,t)})({classes:l.classes}),u=(0,C.Nc)(n,rz),d=(0,C.Nc)(n,nA),p=(0,C.Nc)(n,ry.ux),f=(0,C.Nc)(n,ns),h=a.useMemo(()=>{let e=l.isRowSelectable;if("function"!=typeof e||"exclude"===d.type)return d;let t={type:"include",ids:new Set};for(let r of d.ids)l.keepNonExistentRowsSelected&&t.ids.add(r),n.current.getRow(r)&&e(n.current.getRowParams(r))&&t.ids.add(r);return t},[n,l.isRowSelectable,l.keepNonExistentRowsSelected,d]),m=a.useMemo(()=>{let e=l.pagination&&l.checkboxSelectionVisibleOnly&&"server"!==l.paginationMode?f:p,t=new Set;for(let r=0;r<e.length;r+=1){let o=e[r];n.current.getRow(o)&&n.current.isRowSelectable(o)&&t.add(o)}return t},[n,l.pagination,l.paginationMode,l.checkboxSelectionVisibleOnly,f,p]),b=a.useMemo(()=>{let e=ny(h),t=0;for(let r of m)e.has(r)&&(t+=1);return t},[h,m]),w=a.useMemo(()=>{if(0===b)return!1;let e=ny(h);for(let t of m)if(!e.has(t))return!0;return!1},[b,h,m]),x=b>0,y=n$(l),A=null!==u&&u.field===e.field&&y?0:-1;(0,ev.A)(()=>{let t=n.current.getColumnHeaderElement(e.field);0===A&&t&&y&&(t.tabIndex=-1)},[A,n,e.field,y]);let S=a.useCallback(e=>{" "===e.key&&n.current.publishEvent("headerSelectionCheckboxChange",{value:!x})},[n,x]),R=a.useCallback(()=>{o(e=>!e)},[]);a.useEffect(()=>n.current.subscribeEvent("rowSelectionChange",R),[n,R]);let M=n.current.getLocaleText(x&&!w?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return(0,B.jsx)(l.slots.baseCheckbox,(0,i.A)({indeterminate:w,checked:x&&!w,onChange:e=>{let t={value:e.target.checked};n.current.publishEvent("headerSelectionCheckboxChange",t)},className:s.root,slotProps:{htmlInput:{"aria-label":M,name:"select_all_rows"}},tabIndex:A,onKeyDown:S,disabled:!y},l.slotProps?.baseCheckbox,r,{ref:t}))}),lr="__check__",lo=(0,i.A)({},tA,{type:"custom",field:lr,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,chartable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:()=>null,display:"flex",valueGetter:(e,t,r,o)=>{let n=ti(o,t);return o.current.isRowSelected(n)},rowSpanValueGetter:(e,t,r,o)=>ti(o,t),renderHeader:e=>(0,B.jsx)(lt,(0,i.A)({},e)),renderCell:e=>(0,B.jsx)(n8,(0,i.A)({},e))});function ln(e,t){if(null==e)return"";let r="string"==typeof e?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){let e=r.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(e[0])?`"'${e}"`:[t.delimiter,"\n","\r",'"'].some(e=>r.includes(e))?`"${e}"`:e}return r}let ll=(e,t)=>
18{let r,{csvOptions:o,ignoreValueFormatter:n}=t;if(n){let t=e.colDef.type;r="number"===t?String(e.value):"date"===t||"dateTime"===t?e.value?.toISOString():"function"==typeof e.value?.toString?e.value.toString():e.value}else r=e.formattedValue;return ln(r,o)};class li{rowString="";isEmpty=!0;constructor(e){this.options=e}addValue(e){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),"function"==typeof this.options.sanitizeCellValue?this.rowString+=this.options.sanitizeCellValue(e,this.options.csvOptions):this.rowString+=e,this.isEmpty=!1}getRowString(){return this.rowString}}var la=r(26762);function ls(e){let t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);let r=document.createRange();r.selectNode(t);let o=window.getSelection();o.removeAllRanges(),o.addRange(r);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}let lu=e=>(0,i.A)({},e,{columnMenu:{open:!1}}),lc=(e,t,r,o=!0)=>{let n=a.useRef(null),l=a.useRef(`mui-${Math.round(1e9*Math.random())}`),i=a.useCallback(()=>{n.current=e.current.registerPipeProcessor(t,l.current,r)},[e,r,t]);o9(()=>{o&&i()});let s=a.useRef(!0);a.useEffect(()=>(s.current?s.current=!1:o&&i(),()=>{n.current&&(n.current(),n.current=null)}),[i,o])};var ld=r(67814);let lp=(e,t,r)=>{r.current.caches.columns={lastColumnsProp:t.columns};let o=rf({apiRef:r,columnsToUpsert:t.columns,initialState:t.initialState?.columns,columnVisibilityModel:t.columnVisibilityModel??t.initialState?.columns?.columnVisibilityModel??{},keepOnlyColumnsToUpsert:!0});return(0,i.A)({},e,{columns:o,pinnedColumns:e.pinnedColumns??ld.u})},lf=(e,t)=>(0,i.A)({},e,{density:t.initialState?.density??t.density??"standard"}),lg=({apiRef:e,options:t})=>{let r=(0,V.OV)(e);return t.fields?t.fields.reduce((e,t)=>{let o=r.find(e=>e.field===t);return o&&e.push(o),e},[]):(t.allColumns?r:(0,V.iv)(e)).filter(e=>!0!==e.disableExport)},lh=({apiRef:e})=>{let t=(0,ry.qA)(e),r=(0,ei.qj)(e),o=nR(e),n=t.filter(e=>"footer"!==r[e].type),l=(0,ei.$2)(e),i=l?.top?.map(e=>e.id)||[],a=l?.bottom?.map(e=>e.id)||[];if(n.unshift(...i),n.push(...a),o>0){let t=nM(e);return n.filter(e=>t.has(e))}return n};var lm=r(87050),lb=r(66913);let lv=(e,t,r)=>{let o=e.paginationModel,n=e.rowCount,l=r?.pageSize??o.pageSize,a=o5(n,l,r?.page??o.page);r&&(r?.page!==o.page||r?.pageSize!==o.pageSize)&&(o=r);let s=-1===l?0:((e,t=0)=>0===t?e:Math.max(Math.min(e,t-1),0))(o.page,a);return s!==o.page&&(o=(0,i.A)({},o,{page:s})),o6(o.pageSize,t),o},lw=(e,t,r,o)=>{let n=a.useCallback(()=>{e.current.registerStrategyProcessor(t,r,o)},[e,o,r,t]);o9(()=>{n()});let l=a.useRef(!0);a.useEffect(()=>{l.current?l.current=!1:n()},[n])},lC=(e,t,r)=>{let o=t.filterModel??t.initialState?.filter?.filterModel??eW();return(0,i.A)({},e,{filter:(0,i.A)({filterModel:eq(o,t.disableMultipleColumnsFiltering,r)},eG),visibleRowsLookup:{}})},lx=e=>e.filteredRowsLookup;function ly(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function lA(){return(0,ol.i5)(Object.values)}function lS(){return void 0===n&&document.createElement("div").focus({get preventScroll(){return n=!0,!1}}),n}let lR=e=>(0,i.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}});function lM(e,t){return e.closest(`.${t}`)}function lI(e){return e.replace(/["\\]/g,"\\$&")}function lk(e){return`.${v.xV.row}[data-id="${lI(String(e))}"]`}function lP(e){return!(1!==e.target.nodeType||e.currentTarget.contains(e.target))}function lE(e,t){return e.rootElementRef.current.querySelector(`.${v.xV[t]}`)}let lT=({api:e,colIndex:t,position:r,filterFn:o})=>{if(null===t)return[];let n=[];return lD(e).forEach(e=>{e.getAttribute("data-id")&&e.querySelectorAll(`.${v.xV["left"===r?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(e=>{let t=lO(e);null!==t&&o(t)&&n.push(e)})}),n},lF=({api:e,colIndex:t,position:r,filterFn:o})=>{if(!e.columnHeadersContainerRef?.current||null===t)return[];let n=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${v.xV["left"===r?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}
18`).forEach(e=>{let t=lO(e);null!==t&&o(t,e)&&n.push(e)}),n};function lD(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${v.xV.row}`)}function lO(e){let t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}let lz=({currentColIndex:e,firstColIndex:t,lastColIndex:r,isRtl:o})=>{if(o){if(e<r)return e+1}else if(!o&&e>t)return e-1;return null},lH=({currentColIndex:e,firstColIndex:t,lastColIndex:r,isRtl:o})=>{if(o){if(e>t)return e-1}else if(!o&&e<r)return e+1;return null},lV=(0,K.S)(nu,ei.$2,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),lj=(e,t)=>{let r=(0,i.A)({},o4(t.autoPageSize),t.paginationModel??t.initialState?.pagination?.paginationModel);o6(r.pageSize,t.signature);let o=t.rowCount??t.initialState?.pagination?.rowCount??("client"===t.paginationMode?e.rows?.totalRowCount:void 0),n=t.paginationMeta??t.initialState?.pagination?.meta??{};return(0,i.A)({},e,{pagination:(0,i.A)({},e.pagination,{paginationModel:r,rowCount:o,meta:n,enabled:!0===t.pagination,paginationMode:t.paginationMode})})},lN=(e,t)=>(0,i.A)({},e,{preferencePanel:t.initialState?.preferencePanel??{open:!1}}),lL=(0,K.gz)(e=>e.editRows),l$=(0,K.Mz)(lL,(e,{rowId:t,editMode:r})=>r===tM.Row&&!!e[t]),lB=(0,K.Mz)(lL,(e,{rowId:t,field:r})=>e[t]?.[r]??null),lG=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;default:return""}},lW=["id","field"],lU=["id","field"];var l_=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(l_||{}),lq=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(lq||{});let lK=["id"],lX=["id"],lY=e=>(0,i.A)({},e,{editRows:{}});var lQ=r(77972);let lZ=(e,t,r)=>{let o=!!t.dataSource;return r.current.caches.rows=(0,tl.Z)({rows:o?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),(0,i.A)({},e,{rows:(0,tl.TW)({apiRef:r,rowCountProp:t.rowCount,loadingProp:!!o||t.loading,previousTree:null,previousTreeDepths:null})})},lJ=e=>"full"===e.updates.type?(e=>{let t={[tl.OL]:(0,i.A)({},(0,tl.Mk)(),{children:e})};for(let r=0;r<e.length;r+=1){let o=e[r];t[o]={id:o,depth:0,parent:tl.OL,type:"leaf",groupingKey:null}}return{groupingName:n2,tree:t,treeDepths:{0:e.length},dataRowIds:e}})(e.updates.rows):(({previousTree:e,actions:t})=>{let r=(0,i.A)({},e),o={};for(let e=0;e<t.remove.length;e+=1){let n=t.remove[e];o[n]=!0,delete r[n]}for(let e=0;e<t.insert.length;e+=1){let o=t.insert[e];r[o]={id:o,depth:0,parent:tl.OL,type:"leaf",groupingKey:null}}let n=r[tl.OL],l=[...n.children,...t.insert];return Object.values(o).length&&(l=l.filter(e=>!o[e])),r[tl.OL]=(0,i.A)({},n,{children:l}),{groupingName:n2,tree:r,treeDepths:{0:l.length},dataRowIds:l}})({previousTree:e.previousTree,actions:e.updates.actions});var l0=r(30174);class l1 extends Error{}let l2={type:"include",ids:new Set},l9=(e,t)=>(0,i.A)({},e,{rowSelection:t.rowSelection?t.rowSelectionModel??l2:l2}),l3=(e,t)=>{let r=t.sortModel??t.initialState?.sorting?.sortModel??[];return(0,i.A)({},e,{sorting:{sortModel:eS(r,t.disableMultipleColumnsSorting),sortedRows:[]}})};function l5(e){let{containerSize:t,scrollPosition:r,elementSize:o,elementOffset:n}=e,l=n+o;return o>t?n:l-t>r?l-t:n<r?n:void 0}let l4={width:0,height:0},l6={isReady:!1,root:l4,viewportOuterSize:l4,viewportInnerSize:l4,contentSize:l4,minimumSize:l4,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0,autoHeight:!1,minimalContentHeight:void 0},l7=(e,t,r)=>{let o=(0,F.rf)(r),n=(0,i.A)({},l6,function(e,t,r,o){return{rowHeight:Math.floor((0,tl.Qy)(e.rowHeight,nI.rowHeight,tl.Oq)*r),headerHeight:Math.floor(e.columnHeaderHeight*r),groupHeaderHeight:Math.floor((e.columnGroupHeaderHeight??e.columnHeaderHeight)*r),headerFilterHeight:Math.floor((e.headerFilterHeight??e.columnHeaderHeight)*r),columnsTotalWidth:l8(t),headersTotalHeight:rg(t,e),leftPinnedWidth:o.left.reduce((e,t)=>
18e+t.computedWidth,0),rightPinnedWidth:o.right.reduce((e,t)=>e+t.computedWidth,0)}}(t,r,o,(0,V.Q1)(r)));return r.current.store.state.dimensions=n,(0,i.A)({},e,{dimensions:n})},l8=(0,K.Mz)(V.iv,V.Sw,(e,t)=>{let r=e.length;return 0===r?0:on(t[r-1]+e[r-1].computedWidth,1)});function ie(e,t){let r=(t,r)=>e.style.setProperty(t,r);r("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),r("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),r("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),r("--DataGrid-rowWidth",`${t.rowWidth}px`),r("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),r("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),r("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),r("--DataGrid-headerHeight",`${t.headerHeight}px`),r("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),r("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),r("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),r("--height",`${t.rowHeight}px`)}function it(e){return void 0!==e.field}let ir=["groupId","children"],io=e=>{let t={};for(let r=0;r<e.length;r+=1){let o=e[r];if(it(o))continue;let{groupId:n,children:l}=o,a=(0,c.A)(o,ir);if(!n)throw Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");let s=(0,i.A)({},a,{groupId:n}),u=io(l);if(void 0!==u[n]||void 0!==t[n])throw Error(`MUI X: The groupId ${n} is used multiple times in the columnGroupingModel.`);Object.assign(t,u),t[n]=s}return t},il=(e,t,r)=>{if(it(e)){if(void 0!==r[e.field])throw Error(`MUI X: columnGroupingModel contains duplicated field 19column field ${e.field} occurs two times in the grouping model: 20- ${r[e.field].join(" > ")} 21- ${t.join(" > ")}`);r[e.field]=t;return}let{groupId:o,children:n}=e;n.forEach(e=>{il(e,[...t,o],r)})},ii=e=>{if(!e)return{};let t={};return e.forEach(e=>{il(e,[],t)}),t},ia=(e,t,r)=>{let o=e=>t[e]??[],n=[],l=Math.max(0,...e.map(e=>o(e).length)),i=(e,t,r)=>{let n=o(e),l=o(t);for(let e=0;e<=r;e+=1)if(n[e]!==l[e])return!1;return!0},a=(e,t)=>{let o=r?.left,n=r?.right,l=!!o?.includes(e),i=!!o?.includes(t),a=!!n?.includes(e),s=!!n?.includes(t);return l!==i||a!==s};for(let t=0;t<l;t+=1){let r=[];for(let n=0;n<e.length;n+=1){let l=e[n],s=o(l)[t]??null;if(0===r.length){r.push({columnFields:[l],groupId:s});continue}let u=r[r.length-1],c=u.columnFields[u.columnFields.length-1];u.groupId!==s||!i(c,l,t)||a(c,l)?r.push({columnFields:[l],groupId:s}):u.columnFields.push(l)}n.push(r)}return n},is=(e,t,r)=>{if(r.current.caches.columnGrouping={lastColumnGroupingModel:t.columnGroupingModel},!t.columnGroupingModel)return(0,i.A)({},e,{columnGrouping:void 0});let o=(0,V.JR)(r),n=(0,V.TI)(r),l=io(t.columnGroupingModel??[]),a=ii(t.columnGroupingModel??[]),s=ia(o,a,r.current.state.pinnedColumns??{}),u=0===n.length?0:Math.max(...n.map(e=>a[e]?.length??0));return(0,i.A)({},e,{columnGrouping:{lookup:l,unwrappedGroupingModel:a,headerStructure:s,maxDepth:u}})},iu=!("undefined"!=typeof window&&/jsdom|HappyDOM/.test(window.navigator.userAgent)),ic=(e,t)=>{let{disableVirtualization:r,autoHeight:o}=t;return(0,i.A)({},e,{virtualization:{enabled:!r&&iu,enabledForColumns:!r&&iu,enabledForRows:!r&&!o&&iu,renderContext:oF}})},id={includeHeaders:!0,includeHeaderFilters:!1,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},ip=(0,K.gz)(e=>e.columnResize),ig=(0,K.Mz)(ip,e=>e.resizingColumnField);function ih(e,t){if(void 0!==t&&e.changedTouches){for(let r=0;r<e.changedTouches.length;r+=1){let o=e.changedTouches[r];if(o.identifier===t)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function im(e,t,r,o){let n=e;return"Right"===o?n+=t-r.left:n+=r.right-t,Math.round(n)}function ib(e,t){return t===ld.K.LEFT?e?"--DataGrid-rightPinnedWidth":"--DataGrid-leftPinnedWidth":e?"--DataGrid-leftPinnedWidth":"--DataGrid-rightPinnedWidth"}function iv(e,t,r){return r===ld.K.LEFT?t?e.rightPinnedWidth:e.leftPinnedWidth:t?e.leftPinnedWidth:e.rightPinnedWidth}function iw(e){e.preventDefault(),e.stopImmediatePropagation()}let iC=e=>(0,i.A)({},e,{columnResize:{resizingColumnField:""}});function ix(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}function iy(e,t,r){e&&(e.style[t]=`${Math.round(parseFloat(e.style[t]))+r}px`)}function iA(e){return 0!==e.firstRowIndex||0!==e.lastRowIndex}let iS=(e,t,r)=>{if(!e)return null;let o=e[t.field];return t.rowSpanValueGetter?t.rowSpanValueGetter(o,e,t,r):(0,tl.e$)(e,t,r)},iR={caches:{spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},processedRange:{firstRowIndex:0,lastRowIndex:0}},iM=e=>(0,i.A)({},e,{rowSpanning:iR}),iI=(e,t,r)=>(0,i.A)({},e,{listViewColumn:t.listViewColumn?(0,i.A)({},t.listViewColumn,{computedWidth:ik(r)}):void 0});function ik(e){return X(e).viewportInnerSize.width}let iP=(0,K.Mz)(ry.ZI,rk.XU,ne,(e,t,r)=>({groupKeys:[],paginationModel:r,sortModel:t,filterModel:e,start:r.page*r.pageSize,end:r.page*r.pageSize+r.pageSize-1})),iE=function(e){return e.Default="set-flat-rows",e.LazyLoading="replace-row-range",e.GroupedData="set-grouped-rows",e}({});class iT{constructor(e){this.chunkSize=e}getCacheKeys=e=>{if(this.chunkSize<1||"number"!=typeof e.start)return[e];let t=[];for(let r=e.start;r<=e.end;r+=this.chunkSize){let o=Math.min(r+this.chunkSize-1,e.end);t.push((0,i.A)({},e,{start:r,end:o}))}return t};splitResponse=(e,t)=>{let r=this.getCacheKeys(e);if(1===r.length)return new Map([[e,t]]);let o=new Map;return r.forEach(r=>{let n=r.end===e.end,l=(0,i.A)({},t,{pageInfo:(0,i.A)({},t.pageInfo,{hasNextPage:t.pageInfo?.hasNextPage!==void 0&&!n||t.pageInfo?.hasNextPage,nextCursor:t.pageInfo?.nextCursor===void 0||n?t.pageInfo?.nextCursor:t.rows[r.end+1].id}),rows:"number"!=typeof r.start||"number"!=typeof e.start?t.rows:t.rows.slice(r.start-e.start,r.end-e.start+1)});o.set(r,l)}),o};static mergeResponses=e=>1===e.length?e[0]:e.reduce((e,t)=>
21(0,i.A)({},t,{rows:[...e.rows,...t.rows]}),{rows:[],rowCount:0,pageInfo:{}})}function iF(e){return JSON.stringify([e.filterModel,e.sortModel,e.start,e.end])}class iD{constructor({ttl:e=3e5,getKey:t=iF}){this.cache={},this.ttl=e,this.getKey=t}set(e,t){let r=this.getKey(e),o=Date.now()+this.ttl;this.cache[r]={value:t,expiry:o}}get(e){let t=this.getKey(e),r=this.cache[t];if(r)return Date.now()>r.expiry?void delete this.cache[t]:r.value}clear(){this.cache={}}}class iO extends Error{constructor(e){super(e.message),this.name="GridGetRowsError",this.params=e.params,this.cause=e.cause}}class iz extends Error{constructor(e){super(e.message),this.name="GridUpdateRowError",this.params=e.params,this.cause=e.cause}}let iH=["skipCache","keepChildrenExpanded"],iV={clear:()=>{},get:()=>void 0,set:()=>{}};function ij(e,t={}){return null===e?iV:e??new iD(t)}var iN=r(73665),iL=r(86706);let i$={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",noColumnsOverlayLabel:"No columns",noColumnsOverlayManageColumns:"Manage columns",emptyPivotOverlayLabel:"Add fields to rows, columns, and values to create a pivot table",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarUndo:"Undo",toolbarRedo:"Redo",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>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",toolbarPivot:"Pivot",toolbarCharts:"Charts",toolbarAssistant:"AI Assistant",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",headerFilterClear:"Clear filter",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnMenuManagePivot:"Manage pivot",columnMenuManageCharts:"Manage charts",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>
211!==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",longTextCellExpandLabel:"Expand",longTextCellCollapseLabel:"Collapse",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",paginationRowsPerPage:"Rows per page:",paginationDisplayedRows:({from:e,to:t,count:r,estimated:o})=>{if(!o)return`${e}â${t} of ${-1!==r?r:`more than ${t}`}`;let n=o&&o>t?`around ${o}`:`more than ${t}`;return`${e}â${t} of ${-1!==r?r:n}`},paginationItemAriaLabel:e=>"first"===e?"Go to first page":"last"===e?"Go to last page":"next"===e?"Go to next page":"Go to previous page",rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelNone:"none",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size",pivotToggleLabel:"Pivot",pivotRows:"Rows",pivotColumns:"Columns",pivotValues:"Values",pivotCloseButton:"Close pivot settings",pivotSearchButton:"Search f
21ields",pivotSearchControlPlaceholder:"Search fields",pivotSearchControlLabel:"Search fields",pivotSearchControlClear:"Clear search",pivotNoFields:"No fields",pivotMenuMoveUp:"Move up",pivotMenuMoveDown:"Move down",pivotMenuMoveToTop:"Move to top",pivotMenuMoveToBottom:"Move to bottom",pivotMenuRows:"Rows",pivotMenuColumns:"Columns",pivotMenuValues:"Values",pivotMenuOptions:"Field options",pivotMenuAddToRows:"Add to Rows",pivotMenuAddToColumns:"Add to Columns",pivotMenuAddToValues:"Add to Values",pivotMenuRemove:"Remove",pivotDragToRows:"Drag here to create rows",pivotDragToColumns:"Drag here to create columns",pivotDragToValues:"Drag here to create values",pivotYearColumnHeaderName:"(Year)",pivotQuarterColumnHeaderName:"(Quarter)",chartsNoCharts:"There are no charts available",chartsChartNotSelected:"Select a chart type to configure its options",chartsTabChart:"Chart",chartsTabFields:"Fields",chartsTabCustomize:"Customize",chartsCloseButton:"Close charts configuration",chartsSyncButtonLabel:"Sync chart",chartsSearchPlaceholder:"Search fields",chartsSearchLabel:"Search fields",chartsSearchClear:"Clear search",chartsNoFields:"No fields",chartsFieldBlocked:"This field cannot be added to any section",chartsCategories:"Categories",chartsSeries:"Series",chartsMenuAddToDimensions:e=>`Add to ${e}`,chartsMenuAddToValues:e=>`Add to ${e}`,chartsMenuMoveUp:"Move up",chartsMenuMoveDown:"Move down",chartsMenuMoveToTop:"Move to top",chartsMenuMoveToBottom:"Move to bottom",chartsMenuOptions:"Field options",chartsMenuRemove:"Remove",chartsDragToDimensions:e=>`Drag here to use column as ${e}`,chartsDragToValues:e=>`Drag here to use column as ${e}`,aiAssistantPanelTitle:"AI Assistant",aiAssistantPanelClose:"Close AI Assistant",aiAssistantPanelNewConversation:"New conversation",aiAssistantPanelConversationHistory:"Conversation history",aiAssistantPanelEmptyConversation:"No prompt history",aiAssistantSuggestions:"Suggestions",promptFieldLabel:"Prompt",promptFieldPlaceholder:"Type a promptâ¦",promptFieldPlaceholderWithRecording:"Type or record a promptâ¦",promptFieldPlaceholderListening:"Listening for promptâ¦",promptFieldSpeechRecognitionNotSupported:"Speech recognition is not supported in this browser",promptFieldSend:"Send",promptFieldRecord:"Record",promptFieldStopRecording:"Stop recording",promptRerun:"Run again",promptProcessing:"Processingâ¦",promptAppliedChanges:"Applied changes",promptChangeGroupDescription:e=>`Group by ${e}`,promptChangeAggregationLabel:(e,t)=>
21`${e} (${t})`,promptChangeAggregationDescription:(e,t)=>`Aggregate ${e} (${t})`,promptChangeFilterLabel:(e,t,r)=>"is any of"===t?`${e} is any of: ${r}`:`${e} ${t} ${r}`,promptChangeFilterDescription:(e,t,r)=>"is any of"===t?`Filter where ${e} is any of: ${r}`:`Filter where ${e} ${t} ${r}`,promptChangeSortDescription:(e,t)=>`Sort by ${e} (${t})`,promptChangePivotEnableLabel:"Pivot",promptChangePivotEnableDescription:"Enable pivot",promptChangePivotColumnsLabel:e=>`Columns (${e})`,promptChangePivotColumnsDescription:(e,t)=>`${e}${t?` (${t})`:""}`,promptChangePivotRowsLabel:e=>`Rows (${e})`,promptChangePivotValuesLabel:e=>`Values (${e})`,promptChangePivotValuesDescription:(e,t)=>`${e} (${t})`,promptChangeChartsLabel:(e,t)=>`Dimensions (${e}), Values (${t})`},iB=["field","type","align","width","height","empty","style","className"],iG="1.3em",iW=[40,80],iU={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},i_=function(e){var t;let r=(t=12345,()=>{let e=t+=0x6d2b79f5;return e=Math.imul(e^e>>>15,1|e),(((e^=e+Math.imul(e^e>>>7,61|e))^e>>>14)>>>0)/0x100000000});return(e,t)=>e+(t-e)*r()}(0),iq=m(function(e){let{field:t,type:r,align:o,width:n,height:l,empty:s=!1,style:u,className:p}=e,h=(0,c.A)(e,iB),m=(0,T.A)(),b=(e=>{let{align:t,classes:r,empty:o}=e,n={root:["cell","cellSkeleton",`cell--text${t?(0,f.A)(t):"Left"}`,o&&"cellEmpty"]};return(0,g.A)(n,v.B9,r)})({classes:m.classes,align:o,empty:s}),w=a.useMemo(()=>{if("boolean"===r||"actions"===r)return{variant:"circular",width:iG,height:iG};let[e,t]=r?iU[r]??iW:iW;return{variant:"text",width:`${Math.round(i_(e,t))}%`,height:"1.2em"}},[r]);return(0,B.jsx)("div",(0,i.A)({"data-field":t,className:(0,d.A)(b.root,p),style:(0,i.A)({height:l,maxWidth:n,minWidth:n},u)},h,{children:!s&&(0,B.jsx)(m.slots.baseSkeleton,(0,i.A)({},w))}))}),iK=["className"],iX=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"IconButtonContainer"})(()=>({display:"flex",visibility:"hidden",width:0})),iY=(0,u.R)(function(e,t){let{className:r}=e,o=(0,c.A)(e,iK),n=(0,T.A)(),l=(e=>{let{classes:t}=e;return(0,g.A)({root:["iconButtonContainer"]},v.B9,t)})(n);return(0,B.jsx)(iX,(0,i.A)({className:(0,d.A)(l.root,r),ownerState:n},o,{ref:t}))});function iQ(e){let{counter:t,field:r,onClick:o}=e,n=(0,L.h)(),l=(0,T.A)(),s=(e=>{let{classes:t}=e;return(0,g.A)({icon:["filterIcon"]},v.B9,t)})((0,i.A)({},e,{classes:l.classes})),u=(0,eT.A)(),c=(0,C.Nc)(n,j.B,u),d=(0,eT.A)(),p=a.useCallback(e=>{e.preventDefault(),e.stopPropagation();let{open:t,openedPanelValue:l}=(0,j._)(n);t&&l===N.y.filters?n.current.hideFilterPanel():n.current.showFilterPanel(void 0,d,u),o&&o(n.current.getColumnHeaderParams(r),e)},[n,r,o,d,u]);if(!t)return null;let f=(0,B.jsx)(l.slots.baseIconButton,(0,i.A)({id:u,onClick:p,"aria-label":n.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":c,"aria-controls":c?d:void 0},l.slotProps?.baseIconButton,{children:(0,B.jsx)(l.slots.columnFilteredIcon,{className:s.icon,fontSize:"small"})}));return(0,B.jsx)(l.slots.baseTooltip,(0,i.A)({title:n.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},l.slotProps?.baseTooltip,{children:(0,B.jsxs)(iY,{children:[t>1&&(0,B.jsx)(l.slots.baseBadge,{badgeContent:t,color:"default",children:f}),1===t&&f]})}))}let iZ=["direction","index","sortingOrder","disabled","className"],iJ=(0,b.Ay)(ew.p,{name:"MuiDataGrid",slot:"SortButton"})({transition:w.f.transition(["opacity"],{duration:w.f.transitions.duration.short,easing:w.f.transitions.easing.easeInOut})});function i0(e){let{direction:t,index:r,sortingOrder:o,disabled:n,className:l}=e,a=(0,c.A)(e,iZ),s=(0,L.h)(),u=(0,T.A)(),p=(0,i.A)({},e,{classes:u.classes}),f=(e=>{let{classes:t}=e;return(0,g.A)({root:["sortButton"],icon:["sortIcon"]},v.B9,t)})(p),h=function(e,t,r,o){let n,l={};return"asc"===t?n=e.columnSortedAscendingIcon:"desc"===t?n=e.columnSortedDescendingIcon:(n=e.columnUnsortedIcon,l.sortingOrder=o),n?(0,B.jsx)(n,(0,i.A)({fontSize:"small",className:r},l)):null}(u.slots,t,f.icon,o);if(!h)return null;let m=(0,B.jsx)(iJ,(0,i.A)({as:u.slots.baseIconButton,ownerState:p,"aria-label":s.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:n,className:(0,d.A)(f.root,l)},u.slotProps?.baseIconButton,a,{children:h}));return(0,B.jsx)(u.slots.baseTooltip,(0,i.A)({title:s.current.getLocaleText("columnHeaderSortIconLabel"),enterDelay:1e3},u.slotProps?.baseTooltip,{children:(0,B.jsxs)("span",{children:[null!=r&&(0,B.jsx)(u.slots.baseBadge,{badgeContent:r,color:"default",overlap:"circular",children:m}),null==r&&m]})}))}let i1=a.memo(function(e){return(0,B.jsx)(iY,{children:(0,B.jsx)(i0,(0,i.A)({},e,{tabIndex:-1}))})}),i2=["className","selectedRowCount"],i9=(0,rU.A)("div",{name:"MuiDataGrid",slot:"SelectedRowCount"})({alignItems:"center",display:"flex",margin:w.f.spacing(0,2),visibility:"hidden",
21width:0,height:0,[w.f.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}),i3=(0,u.R)(function(e,t){let{className:r,selectedRowCount:o}=e,n=(0,c.A)(e,i2),l=(0,L.h)(),a=(0,T.A)(),s=(e=>{let{classes:t}=e;return(0,g.A)({root:["selectedRowCount"]},v.B9,t)})(a),u=l.current.getLocaleText("footerRowSelected")(o);return(0,B.jsx)(i9,(0,i.A)({className:(0,d.A)(s.root,r),ownerState:a},n,{ref:t,children:u}))}),i5=["className"],i4=(0,rU.A)("div",{name:"MuiDataGrid",slot:"FooterContainer"})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),i6=(0,u.R)(function(e,t){let{className:r}=e,o=(0,c.A)(e,i5),n=(0,T.A)(),l=(e=>{let{classes:t}=e;return(0,g.A)({root:["footerContainer","withBorderColor"]},v.B9,t)})(n);return(0,B.jsx)(i4,(0,i.A)({className:(0,d.A)(l.root,r),ownerState:n},o,{ref:t}))}),i7=(0,u.R)(function(e,t){let r=(0,L.h)(),o=(0,T.A)(),n=(0,C.Nc)(r,ei.O8),l=(0,C.Nc)(r,nR),a=(0,C.Nc)(r,ry.RN),s=!o.hideFooterSelectedRowCount&&l>0?(0,B.jsx)(i3,{selectedRowCount:l}):(0,B.jsx)("div",{}),u=o.hideFooterRowCount||o.pagination?null:(0,B.jsx)(o.slots.footerRowCount,(0,i.A)({},o.slotProps?.footerRowCount,{rowCount:n,visibleRowCount:a})),c=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&(0,B.jsx)(o.slots.pagination,(0,i.A)({},o.slotProps?.pagination));return(0,B.jsxs)(i6,(0,i.A)({},e,{ref:t,children:[s,u,c]}))}),i8=["className","rowCount","visibleRowCount"],ae=(0,rU.A)("div",{name:"MuiDataGrid",slot:"RowCount"})({alignItems:"center",display:"flex",margin:w.f.spacing(0,2)}),at=(0,u.R)(function(e,t){let{className:r,rowCount:o,visibleRowCount:n}=e,l=(0,c.A)(e,i8),a=(0,L.h)(),s=(0,T.A)(),u=(e=>{let{classes:t}=e;return(0,g.A)({root:["rowCount"]},v.B9,t)})(s);if(0===o)return null;let p=n<o?a.current.getLocaleText("footerTotalVisibleRows")(n,o):o.toLocaleString();return(0,B.jsxs)(ae,(0,i.A)({className:(0,d.A)(u.root,r),ownerState:s},l,{ref:t,children:[a.current.getLocaleText("footerTotalRows")," ",p]}))}),ar=["className"],ao=(0,rU.A)("div",{name:"MuiDataGrid",slot:"Overlay"})({width:"100%",height:"100%",display:"flex",gap:w.f.spacing(1),flexDirection:"column",alignSelf:"center",alignItems:"center",justifyContent:"center",textAlign:"center",textWrap:"balance",backgroundColor:w.f.colors.background.backdrop}),an=(0,u.R)(function(e,t){let{className:r}=e,o=(0,c.A)(e,ar),n=(0,T.A)(),l=(e=>{let{classes:t}=e;return(0,g.A)({root:["overlay"]},v.B9,t)})(n);return(0,B.jsx)(ao,(0,i.A)({className:(0,d.A)(l.root,r),ownerState:n},o,{ref:t}))}),al=(e,t,r,o,n,l)=>{let i;switch(e){case tf.LEFT:i=o[r];break;case tf.RIGHT:i=n-o[r]-t+l;break;default:i=void 0}return Number.isNaN(i)&&(i=void 0),i},ai=(e,t,r,o,n,l)=>{let i=t===r-1;return!!l?.startsWith("border")&&e===tf.LEFT&&!!i||!!o&&(e===tf.LEFT||(e===tf.RIGHT?!i:!i||n))},aa=(e,t,r,o)=>o?.startsWith("border")?e===tf.RIGHT&&0===t:r&&e===tf.RIGHT&&0===t,as=(e,t)=>{if(e)if(t){if(e===tf.LEFT)return"right";if(e===tf.RIGHT)return"left"}else{if(e===tf.LEFT)return"left";if(e===tf.RIGHT)return"right"}};function au(e,t,r,o){let n=as(r,t);return n&&void 0!==o&&(e[n]=o),e}let ac=["skeletonRowsCount","visibleColumns","showFirstRowBorder"],ad=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay"})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),ap=e=>parseInt(e.getAttribute("data-colindex"),10),af=(0,u.R)(function(e,t){let r=(0,T.A)(),{slots:o}=r,n=(0,tN.I)(),l=(e=>{let{classes:t}=e;return(0,g.A)({root:["skeletonLoadingOverlay"]},v.B9,t)})({classes:r.classes}),s=a.useRef(null),u=(0,p.A)(s,t),f=(0,L.h)(),h=(0,C.Nc)(f,X),m=(0,C.Nc)(f,Y),b=(0,C.Nc)(f,V.Sw),w=a.useMemo(()=>b.filter(e=>e<=m).length,[m,b]),{skeletonRowsCount:x,visibleColumns:y,showFirstRowBorder:A}=e,S=(0,c.A)(e,ac),R=(0,C.Nc)(f,V.iv),M=a.useMemo(()=>R.slice(0,w),[R,w]),I=(0,C.Nc)(f,V.Q1),k=a.useCallback(e=>-1!==I.left.findIndex(t=>t.field===e)?tf.LEFT:-1!==I.right.findIndex(t=>t.field===e)?tf.RIGHT:void 0,[I.left,I.right]),P=a.useMemo(()=>{let e=[];for(let t=0;t<x;t+=1){let l=[];for(let e=0;e<M.length;e+=1){let a=M[e],s=k(a.field),u=s===tf.LEFT,c=s===tf.RIGHT,p=as(s,n),f=p?I[p].length:M.length-I.left.length-I.right.length,g=p?I[p].findIndex(e=>e.field===a.field):e-I.left.length,m=h.hasScrollY?h.scrollbarSize:0,w=au({},n,s,al(s,a.computedWidth,e,b,h.columnsTotalWidth,m)),C=h.columnsTotalWidth<h.viewportOuterSize.width,x=ai(s,g,f,r.showCellVerticalBorder,C,r.pinnedColumnsSectionSeparator),A=a
21a(s,g,r.showCellVerticalBorder,r.pinnedColumnsSectionSeparator),S=e===M.length-1,R=c&&0===g,P=R&&C,E=S&&!R&&C,T=Math.max(0,h.viewportOuterSize.width-h.columnsTotalWidth),F=(0,B.jsx)(o.skeletonCell,{width:T,empty:!0},`skeleton-filler-column-${t}`);P&&l.push(F),l.push((0,B.jsx)(o.skeletonCell,{field:a.field,type:a.type,align:a.align,width:"var(--width)",height:h.rowHeight,"data-colindex":e,empty:y&&!y.has(a.field),className:(0,d.A)(u&&v.xV["cell--pinnedLeft"],c&&v.xV["cell--pinnedRight"],x&&v.xV["cell--withRightBorder"],A&&v.xV["cell--withLeftBorder"]),style:(0,i.A)({"--width":`${a.computedWidth}px`},w)},`skeleton-column-${t}-${a.field}`)),E&&l.push(F)}e.push((0,B.jsx)("div",{className:(0,d.A)(v.xV.row,v.xV.rowSkeleton,0===t&&!A&&v.xV["row--firstVisible"]),children:l},`skeleton-row-${t}`))}return e},[x,M,k,n,I,h.hasScrollY,h.scrollbarSize,h.columnsTotalWidth,h.viewportOuterSize.width,h.rowHeight,b,r.showCellVerticalBorder,r.pinnedColumnsSectionSeparator,o,y,A]);return ef(f,"columnResize",e=>{let{colDef:t,width:r}=e,o=s.current?.querySelectorAll(`[data-field="${lI(t.field)}"]`);if(!o)throw Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");let n=M.findIndex(e=>e.field===t.field),l=k(t.field),i=l===tf.LEFT,a=l===tf.RIGHT,u=parseInt(getComputedStyle(o[0]).getPropertyValue("--width"),10)-r;if(o&&o.forEach(e=>{e.style.setProperty("--width",`${r}px`)}),i){let e=s.current?.querySelectorAll(`.${v.xV["cell--pinnedLeft"]}`);e?.forEach(e=>{ap(e)>n&&(e.style.left=`${parseInt(getComputedStyle(e).left,10)-u}px`)})}if(a){let e=s.current?.querySelectorAll(`.${v.xV["cell--pinnedRight"]}`);e?.forEach(e=>{ap(e)<n&&(e.style.right=`${parseInt(getComputedStyle(e).right,10)+u}px`)})}}),(0,B.jsx)(ad,(0,i.A)({className:l.root},S,{ref:u,children:P}))}),ag=(0,u.R)(function(e,t){let r=(0,L.h)(),o=(0,C.Nc)(r,X),n=Math.ceil((o?.viewportInnerSize.height??0)/o.rowHeight);return(0,B.jsx)(af,(0,i.A)({},e,{skeletonRowsCount:n,ref:t}))}),ah=["variant","noRowsVariant","style"],am={"circular-progress":{component:e=>e.slots.baseCircularProgress,style:{}},"linear-progress":{component:e=>e.slots.baseLinearProgress,style:{display:"block"}},skeleton:{component:()=>ag,style:{display:"block"}}},ab=(0,u.R)(function(e,t){let{variant:r="linear-progress",noRowsVariant:o="skeleton",style:n}=e,l=(0,c.A)(e,ah),a=(0,L.h)(),s=(0,T.A)(),u=am[0===(0,C.Nc)(a,ei.H0)?o:r],d=u.component(s);return(0,B.jsx)(an,(0,i.A)({style:(0,i.A)({},u.style,n)},l,{ref:t,children:(0,B.jsx)(d,{})}))}),av=(0,u.R)(function(e,t){let r=(0,L.h)().current.getLocaleText("noRowsLabel");return(0,B.jsx)(an,(0,i.A)({},e,{ref:t,children:r}))}),aw=(0,u.R)(function(e,t){let r=(0,T.A)(),o=(0,L.h)(),n=(0,C.Nc)(o,V.JR),l=!r.disableColumnSelector&&n.length>0;return(0,B.jsxs)(an,(0,i.A)({},e,{ref:t,children:[o.current.getLocaleText("noColumnsOverlayLabel"),l&&(0,B.jsx)(r.slots.baseButton,(0,i.A)({size:"small"},r.slotProps?.baseButton,{onClick:()=>{o.current.showPreferences(N.y.columns)},children:o.current.getLocaleText("noColumnsOverlayManageColumns")}))]}))}),aC=(0,b.Ay)(ew.p,{slot:"internal"})({maxHeight:"calc(100% + 1px)",flexGrow:1}),ax=["className"],ay=(0,rU.A)("div",{name:"MuiDataGrid",slot:"PanelContent"})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,padding:w.f.spacing(2.5,1.5,2,1),gap:w.f.spacing(2.5)});function aA(e){let{className:t}=e,r=(0,c.A)(e,ax),o=(0,T.A)(),n=(e=>{let{classes:t}=e;return(0,g.A)({root:["panelContent"]},v.B9,t)})(o);return(0,B.jsx)(ay,(0,i.A)({className:(0,d.A)(n.root,t),ownerState:o},r))}let aS=["className"],aR=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"PanelFooter"})({padding:w.f.spacing(1),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${w.f.colors.border.base}`});function aM(e){let{className:t}=e,r=(0,c.A)(e,aS),o=(0,T.A)(),n=(e=>{let{classes:t}=e;return(0,g.A)({root:["panelFooter"]},v.B9,t)})(o);return(0,B.jsx)(aR,(0,i.A)({className:(0,d.A)(n.root,t),ownerState:o},r))}let aI=["className"],ak=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"PanelWrapper"})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),aP=(0,u.R)(function(e,t){let{className:r}=e,o=(0,c.A)(e,aI),n=(0,T.A)(),l=(e=>{let{classes:t}=e;return(0,g.A)({root:["panelWrapper"]},v.B9,t)})(n);
21return(0,B.jsx)(ak,(0,i.A)({tabIndex:-1,className:(0,d.A)(l.root,r),ownerState:n},o,{ref:t}))}),aE=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],aT=["InputComponentProps"],aF=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"FilterForm"})({display:"flex",gap:w.f.spacing(1.5)}),aD=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon"})({flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"}),aO=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput"})({minWidth:75,justifyContent:"end"}),az=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput"})({width:150}),aH=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput"})({width:150}),aV=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormValueInput"})({width:190}),aj=new Intl.Collator,aN=(0,u.R)(function(e,t){let{item:r,hasMultipleFilters:o,deleteFilter:n,applyFilterChanges:l,showMultiFilterOperators:s,disableMultiFilterOperator:u,applyMultiFilterOperatorChanges:p,focusElementRef:h,logicOperators:m=[eB.And,eB.Or],columnsSort:b,filterColumns:w,deleteIconProps:x={},logicOperatorInputProps:y={},operatorInputProps:A={},columnInputProps:S={},valueInputProps:R={},readOnly:M}=e,I=(0,c.A)(e,aE),k=(0,L.h)(),P=(0,C.Nc)(k,V.gv),E=(0,C.Nc)(k,V.Oe),F=(0,C.Nc)(k,ry.ZI),D=(0,eT.A)(),O=(0,eT.A)(),z=(0,eT.A)(),H=(0,eT.A)(),j=(0,T.A)(),N=(e=>{let{classes:t}=e;return(0,g.A)({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},v.B9,t)})(j),$=a.useRef(null),G=a.useRef(null),W=F.logicOperator??eB.And,U=o&&m.length>0,_=(j.slotProps?.baseSelect||{}).native??!1,q=j.slotProps?.baseSelectOption||{},{InputComponentProps:K}=R,X=(0,c.A)(R,aT),Y=(0,C.Nc)(k,rS),Q=(0,C.Nc)(k,rM),{filteredColumns:Z,selectedField:J}=a.useMemo(()=>{let e=r.field,t=!1===P[r.field].filterable?P[r.field]:null;if(t)return{filteredColumns:[t],selectedField:e};if(Y)return{filteredColumns:E.filter(e=>void 0!==Q.get(e.field)),selectedField:e};if(void 0===w||"function"!=typeof w)return{filteredColumns:E,selectedField:e};let o=w({field:r.field,columns:E,currentFilters:F?.items||[]});return{filteredColumns:E.filter(t=>{let n=o.includes(t.field);return t.field!==r.field||n||(e=void 0),n}),selectedField:e}},[r.field,P,Y,w,E,F?.items,Q]),ee=a.useMemo(()=>{switch(b){case"asc":return Z.sort((e,t)=>aj.compare(e.headerName||e.field,t.headerName||t.field));case"desc":return Z.sort((e,t)=>-aj.compare(e.headerName||e.field,t.headerName||t.field));default:return Z}},[Z,b]),et=r.field?k.current.getColumn(r.field):null,er=a.useMemo(()=>r.operator&&et?et.filterOperators?.find(e=>e.value===r.operator):null,[r,et]),eo=a.useCallback(e=>{let t=e.target.value,o=k.current.getColumn(t);if(o.field===et.field)return;let n=o.filterOperators.find(e=>e.value===r.operator)||o.filterOperators[0],a=n.InputComponent&&n.InputComponent===er?.InputComponent&&o.type===et.type?r.value:void 0;if("singleSelect"===o.type&&void 0!==a){let e=tE(o);Array.isArray(a)?a=a.filter(t=>void 0!==tT(t,e,o?.getOptionValue)):void 0===tT(r.value,e,o?.getOptionValue)&&(a=void 0)}l((0,i.A)({},r,{field:t,operator:n.value,value:a}))},[k,l,r,et,er]),en=a.useCallback(e=>{let t=e.target.value,o=et?.filterOperators.find(e=>e.value===t),n=!o?.InputComponent||o?.InputComponent!==er?.InputComponent;l((0,i.A)({},r,{operator:t,value:n?void 0:r.value}))},[l,r,et,er]),el=a.useCallback(e=>{p(e.target.value===eB.And.toString()?eB.And:eB.Or)},[p]);return a.useImperativeHandle(h,()=>({focus:()=>{er?.InputComponent?$?.current?.focus():G.current.focus()}}),[er]),(0,B.jsxs)(aF,(0,i.A)({className:N.root,"data-id":r.id,ownerState:j},I,{ref:t,children:[(0,B.jsx)(aD,(0,i.A)({},x,{className:(0,d.A)(N.deleteIcon,x.className),ownerState:j,children:(0,B.jsx)(j.slots.baseIconButton,(0,i.A)({"aria-label":k.current.getLocaleText("filterPanelDeleteIconLabel"),title:k.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{n(r)},size:"small",disabled:M},j.slotProps?.baseIconButton,{children:(0,B.jsx)(j.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),(0,B.jsx)(aO,(0,i.A)({as:j.slots.baseSelect,sx:[U?{display:"flex"}:{display:"none"},s?{visibility:"visible"}:{visibility:"hidden"},y.sx],className:(0,d.A)(N.logicOperatorInput,y.className),ownerState:j},y,{size:"small",slotProps:{htmlInput:{"aria-label":k.current.getLocaleText("filterPanelLogicOperator")}},value:W??"",onChange:el,disabled:!!u||1===m.length,native:_},j.slotProps?.baseSelect,{children:m.map(e=>(0,a.createElement)(j.slots.baseSelectOption,(0,i.A)({},q,{native:_,key:e.toString(),value:e.toString()}),k.current.getLocaleText((e=>{switch(e){case eB.And:return"filterPanelOperatorAnd";case eB.Or:return"filterPanelOperatorOr";default:throw Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}})(e))))})),(0,B.jsx)(az,(0,i.A)({as:j.slots.baseSelect},S,{className:(0,d.A)(N.columnInput,S.className),ownerState:j,size:"small",labelId:O,id:D,label:k.current.getLocaleText("filterPanelColumns"),value:J??"",onChange:eo,native:_,disabled:M},j.slotProps?.baseSelect,{children:ee.map(e=>(0,a.createElement)(j.slots.baseSelectOption,(0,i.A)({},q,{native:_,key:e.field,value:e.field}),e.headerName||e.field))})),(0,B.jsx)(aH,(0,i.A)({as:j.slots.baseSelect,size:"small"},A,{className:(0,d.A)(N.operatorInput,A.className),ownerState:j,labelId:H,label:k.current.getLocaleText("filterPanelOperator"),id:z,value:r.operator,onChange:en,native:_,inputRef:G,disabled:M},j.slotProps?.baseSelect,{children:et?.filterOperators?.map(e=>(0,a.createElement)(j.slots.baseSelectOption,(0,i.A)({},q,{native:_,key:e.value,value:e.value}),e.label||k.current.getLocaleText(`filterOperator${(0,f.A)(e.value)}`)))})),(0,B.jsx)(aV,(0,i.A)({},X,{className:(0,d.A)(N.valueInput,X.className),ownerState:j,children:er?.InputComponent?(0,B.jsx)(er.InputComponent,(0,i.A)({apiRef:k,item:r,applyValue:l,focusElementRef:$,disabled:M,slotProps:{root:{size:"small"}}},er.InputComponentProps,K),r.field):null}))]}))}),aL=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],a$=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}),aB=(0,u.R)(function(e,t){let r=(0,L.h)(),o=(0,T.A)(),n=(0,C.Nc)(r,ry.ZI),l=(0,C.Nc)(r,V.Oe),s=(0,C.Nc)(r,V.U8),u=a.useRef(null),d=a.useRef(null),{logicOperators:p=[eB.And,eB.Or],columnsSort:f,filterFormProps:g,getColumnForNewFilter:h,disableAddFilterButton:m=!1,disableRemoveAllButton:b=!1}
21=e,v=(0,c.A)(e,aL),w=r.current.upsertFilterItem,x=a.useCallback(e=>{r.current.setFilterLogicOperator(e)},[r]),y=a.useCallback(()=>{let e;if(h&&"function"==typeof h){let t=h({currentFilters:n?.items||[],columns:l});if(null===t)return null;e=l.find(({field:e})=>e===t)}else e=l.find(e=>e.filterOperators?.length);return e?a$(e):null},[n?.items,l,h]),A=a.useCallback(()=>{if(void 0===h||"function"!=typeof h)return y();let e=h({currentFilters:n.items.length?n.items:[y()].filter(Boolean),columns:l});if(null===e)return null;let t=l.find(({field:t})=>t===e);return t?a$(t):null},[n.items,l,h,y]),S=a.useMemo(()=>n.items.length?n.items:(d.current||(d.current=y()),d.current?[d.current]:[]),[n.items,y]),R=S.length>1,{readOnlyFilters:M,validFilters:I}=a.useMemo(()=>S.reduce((e,t)=>(s[t.field]?e.validFilters.push(t):e.readOnlyFilters.push(t),e),{readOnlyFilters:[],validFilters:[]}),[S,s]),k=a.useCallback(()=>{let e=A();e&&r.current.upsertFilterItems([...S,e])},[r,A,S]),P=a.useCallback(e=>{let t=1===I.length;r.current.deleteFilterItem(e),t&&r.current.hideFilterPanel()},[r,I.length]),E=a.useCallback(()=>1===I.length&&void 0===I[0].value?(r.current.deleteFilterItem(I[0]),r.current.hideFilterPanel()):r.current.setFilterModel((0,i.A)({},n,{items:M}),"removeAllFilterItems"),[r,M,n,I]);return a.useEffect(()=>{p.length>0&&n.logicOperator&&!p.includes(n.logicOperator)&&x(p[0])},[p,x,n.logicOperator]),a.useEffect(()=>{I.length>0&&u.current.focus()},[I.length]),(0,B.jsxs)(aP,(0,i.A)({},v,{ref:t,children:[(0,B.jsxs)(aA,{children:[M.map((e,t)=>(0,B.jsx)(aN,(0,i.A)({item:e,applyFilterChanges:w,deleteFilter:P,hasMultipleFilters:R,showMultiFilterOperators:t>0,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:x,focusElementRef:null,readOnly:!0,logicOperators:p,columnsSort:f},g),null==e.id?t:e.id)),I.map((e,t)=>(0,B.jsx)(aN,(0,i.A)({item:e,applyFilterChanges:w,deleteFilter:P,hasMultipleFilters:R,showMultiFilterOperators:M.length+t>0,disableMultiFilterOperator:M.length+t!==1,applyMultiFilterOperatorChanges:x,focusElementRef:t===I.length-1?u:null,logicOperators:p,columnsSort:f},g),null==e.id?t+M.length:e.id))]}),o.disableMultipleColumnsFiltering||m&&b?null:(0,B.jsxs)(aM,{children:[m?(0,B.jsx)("span",{}):(0,B.jsx)(o.slots.baseButton,(0,i.A)({onClick:k,startIcon:(0,B.jsx)(o.slots.filterPanelAddIcon,{})},o.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!b&&I.length>0?(0,B.jsx)(o.slots.baseButton,(0,i.A)({onClick:E,startIcon:(0,B.jsx)(o.slots.filterPanelRemoveAllIcon,{})},o.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]})]}))});var aG=r(58035);let aW=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;var aU=r(38993);let a_=["children"],aq=(0,aU.i7)({from:{opacity:0}
21,to:{opacity:1}}),aK=(0,aU.i7)({"from, to":{"--scrollable":'" "'}}),aX=(0,rU.A)("div",{name:"MuiDataGrid",slot:"ShadowScrollArea"})` 22 flex: 1; 23 display: flex; 24 flex-direction: column; 25 animation: ${aK}; 26 animation-timeline: --scroll-timeline; 27 animation-fill-mode: none; 28 box-sizing: border-box; 29 overflow: auto; 30 scrollbar-width: thin; 31 scroll-timeline: --scroll-timeline block; 32 33 &::before, 34 &::after { 35 content: ''; 36 flex-shrink: 0; 37 display: block; 38 position: sticky; 39 left: 0; 40 width: 100%; 41 height: 4px; 42 animation: ${aq} linear both; 43 animation-timeline: --scroll-timeline; 44 45 // Custom property toggle trick: 46 // - Detects if the element is scrollable 47 // - https://css-tricks.com/the-css-custom-property-toggle-trick/ 48 --visibility-scrollable: var(--scrollable) visible; 49 --visibility-not-scrollable: hidden; 50 visibility: var(--visibility-scrollable, var(--visibility-not-scrollable)); 51 } 52 53 &::before { 54 top: 0; 55 background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%); 56 animation-range: 0 4px; 57 } 58 59 &::after { 60 bottom: 0; 61 background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%); 62 animation-direction: reverse; 63 animation-range: calc(100% - 4px) 100%; 64 } 65`,aY=(0,u.R)(function(e,t){let{children:r}=e,o=(0,c.A)(e,a_);return(0,B.jsx)(aX,(0,i.A)({},o,{ref:t,children:r}))}),aQ=new Intl.Collator,aZ=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagement"})({display:"flex",flexDirection:"column",padding:w.f.spacing(.5,1.5)}),aJ=(0,b.Ay)(aY,{name:"MuiDataGrid",slot:"ColumnsManagementScrollArea"})({maxHeight:300}),a0=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader"})({padding:w.f.spacing(1.5,2),borderBottom:`1px solid ${w.f.colors.border.base}`}),a1=(0,b.Ay)(ew.p,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput"})({[`& .${aG.A.input}::-webkit-search-decoration, 66 & .${aG.A.input}::-webkit-search-cancel-button, 67 & .${aG.A.input}::-webkit-search-results-button, 68 & .${aG.A.input}::-webkit-search-results-decoration`]:{display:"none"}}),a2=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter"})({padding:w.f.spacing(1,1,1,1.5),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${w.f.colors.border.base}`}),a9=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagementEmptyText"})({padding:w.f.spacing(1,0),alignSelf:"center",font:w.f.typography.font.body}),a3=(0,b.Ay)(ew.p,{name:"MuiDataGrid",slot:"ColumnsManagementRow"})({});var a5=r(14457);let a4=["children","className","classes","onClose"],a6=(0,a5.A)("MuiDataGrid",["panel","paper"]),a7=(0,b.Ay)(ew.p,{name:"MuiDataGrid",slot:"panel"})({zIndex:w.f.zIndex.panel}),a8=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"panelContent"})({backgroundColor:w.f.colors.background.overlay,borderRadius:w.f.radius.base,boxShadow:w.f.shadows.overlay,display:"flex",maxWidth:`calc(100vw - ${w.f.spacing(2)})`,overflow:"auto"}),se=(0,u.R)((e,t)=>{let{children:r,className:o,onClose:n}=e,l=(0,c.A)(e,a4),s=(0,L.h)(),u=(0,T.A)(),[p,f]=a.useState(!1),g=(0,E.oz)(),h=(0,ea.A)(()=>f(!0)),m=(0,ea.A)(()=>f(!1)),b=(0,ea.A)(()=>{n?.()}),v=(0,ea.A)(e=>{"Escape"===e.key&&n?.()}),[w,C]=a.useState(null);return(a.useEffect(()=>{let e=s.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');e&&C(e)},[s]),w)?(0,B.jsx)(a7,(0,i.A)({as:u.slots.basePopper,ownerState:u,placement:"bottom-end",className:(0,d.A)(a6.panel,o,g),flip:!0,onDidShow:h,onDidHide:m,onClickAway:b,clickAwayMouseEvent:"onPointerUp",clickAwayTouchEvent:!1,focusTrap:!0},l,u.slotProps?.basePopper,{target:e.target??w,ref:t,children:(0,B.jsx)(a8,{className:a6.paper,ownerState:u,onKeyDown:v,children:p&&r})})):null}),st=(0,K.gz)(e=>e.rowReorder),sr=(0,K.Mz)(st,e=>e?.isActive??!1),so=(0,K.Mz)(st,e=>e?.dropTarget??{rowId:null,position:null});(0,K.Mz)(so,e=>e.rowId??null);let sn=(0,K.Mz)(so,(e,t)=>e.rowId===t?e.position:null);(0,K.Mz)(st,e=>e?.draggedRowId??null);var sl=r(67387),si=r(69469);let sa=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"RowDragOverlay",shouldForwardProp:e=>(0,si.MC)(e)&&"action"!==e})(({theme:e,action:t})=>(0,i.A)({position:"absolute",left:0,right:0,top:0,bottom:0,pointerEvents:"none",zIndex:1},"above"===t&&{"&::before":{pointerEvents:"none",content:'""',position:"absolute",top:0,left:0,right:0,height:"2px",backgroundColor:(e.vars||e).palette.primary.main}},"below"===t&&{"&::after":{pointerEvents:"none",content:'""',position:"absolute",bottom:"-2px",left:0,right:0,height:"2px",backgroundColor:(e.vars||e).palette.primary.main}},"inside"===t&&{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.1)`:(0,sl.X4)(e.palette.primary.main,.1)})),ss=a.memo(function(e){let{rowId:t,className:r}=e,o=y(),n=(0,C.Nc)(o,sn,t);return n?(0,B.jsx)(sa,{action:n,className:r}):null}),su=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNot
68Visible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],sc=(0,K.Mz)(lL,(e,{rowReordering:t,treeData:r})=>!!t&&!r&&!!(0,lQ.Z)(e)),sd=m((0,u.R)(function(e,t){var r,o;let{selected:n,rowId:l,row:s,index:u,style:f,rowHeight:h,className:m,visibleColumns:b,pinnedColumns:w,offsetLeft:x,columnsTotalWidth:A,firstColumnIndex:S,lastColumnIndex:R,focusedColumnIndex:M,isFirstVisible:I,isLastVisible:k,isNotVisible:P,showBottomBorder:E,scrollbarWidth:F,gridHasFiller:D,onClick:O,onDoubleClick:z,onMouseEnter:H,onMouseLeave:j,onMouseOut:N,onMouseOver:L}=e,$=(0,c.A)(e,su),G=y(),W=(0,rN.Q)(),U=a.useRef(null),_=(0,T.A)(),q=nd(G,_),K=(0,C.Nc)(G,rk.XU),X=(0,C.Nc)(G,V.Sw),Y=_.rowReordering,Q=_.treeData,Z=(0,C.Nc)(G,sc,{rowReordering:Y,treeData:Q}),J=(0,C.Nc)(G,sr),ee=(0,p.A)(U,t),et=(0,ei.Qu)(G,l),er=(0,C.Nc)(G,l$,{rowId:l,editMode:_.editMode}),eo=_.editMode===tM.Row,en=void 0!==M,el=en&&M>=w.left.length&&M<S,ea=en&&M<b.length-w.right.length&&M>=R,es=(r=_.classes,o={root:["row",n&&"selected",eo&&"row--editable",er&&"row--editing",I&&"row--firstVisible",k&&"row--lastVisible",E&&"row--borderBottom","auto"===h&&"row--dynamicHeight"]},(0,g.A)(o,v.B9,r)),eu=W.hooks.useGridRowAriaAttributes();a.useLayoutEffect(()=>{if(q.range){let e=G.current.getRowIndexRelativeToVisibleRows(l);void 0!==e&&G.current.unstable_setLastMeasuredRowIndex(e)}if(U.current&&"auto"===h)return G.current.observeRowHeight(U.current,l)},[G,q.range,h,l]);let ec=a.useCallback((e,t)=>r=>{!lP(r)&&G.current.getRow(l)&&(G.current.publishEvent(e,G.current.getRowParams(l),r),t&&t(r))},[G,l]),ed=a.useCallback(e=>{let t=lM(e.target,v.xV.cell),r=t?.getAttribute("data-field");if(r){if(r===lo.field||r===tp||"__reorder__"===r||G.current.getCellMode(l,r)===tI.Edit)return;let e=G.current.getColumn(r);if(e?.type===tq)return}ec("rowClick",O)(e)},[G,O,ec,l]),{slots:ep,slotProps:ef,disableColumnReorder:eg}=_,eh=(0,C.Nc)(G,()=>(0,i.A)({},G.current.getRowHeightEntry(l)),void 0,C.TJ),em=a.useMemo(()=>{if(P)return{opacity:0,width:0,height:0};let e=(0,i.A)({},f,{maxHeight:"auto"===h?"none":h,minHeight:h,"--height":"number"==typeof h?`${h}px`:h});if(eh.spacingTop&&(e["border"===_.rowSpacingType?"borderTopWidth":"marginTop"]=eh.spacingTop),eh.spacingBottom){let t="border"===_.rowSpacingType?"borderBottomWidth":"marginBottom",r=e[t];"number"!=typeof r&&(r=parseInt(r||"0",10)),r+=eh.spacingBottom,e[t]=r}return e},[P,h,f,eh.spacingTop,eh.spacingBottom,_.rowSpacingType]);if(!et)return null;let eb=G.current.unstable_applyPipeProcessors("rowClassName",[],l),ev=eu(et,u);if("function"==typeof _.getRowClassName){let e=u-(q.range?.firstRowIndex||0),t=(0,i.A)({},G.current.getRowParams(l),{isFirstVisible:0===e,isLastVisible:e===q.rows.length-1,indexRelativeToCurrentPage:e});eb.push(_.getRowClassName(t))}let ew=(e,t,r,o,n=tf.NONE)=>{let a=G.current.unstable_getCellColSpanInfo(l,r);if(a?.spannedByColSpan)return null;let u=a?.cellProps.width??e.computedWidth,c=a?.cellProps.colSpan??1,d=al(n,e.computedWidth,r,X,A,F);if("skeletonRow"===et.type)return(0,B.jsx)(ep.skeletonCell,{type:e.type,width:u,height:h,field:e.field,align:e.align},e.field);let p="__reorder__"===e.field,f=!(eg||e.disableReorder),g=Z&&!K.length,m=n===tf.VIRTUAL,b=aa(n,t,_.showCellVerticalBorder,_.pinnedColumnsSectionSeparator),v=ai(n,t,o,_.showCellVerticalBorder,D,_.pinnedColumnsSectionSeparator);return(0,B.jsx)(ep.cell,(0,i.A)({column:e,width:u,rowId:l,align:e.align||"left",colIndex:r,colSpan:c,disableDragEvents:!(f||p&&g||J),isNotVisible:m,pinnedOffset:d,pinnedPosition:n,showLeftBorder:b,showRightBorder:v,row:s,rowNode:et},ef?.cell),e.field)},eC=w.left.map((e,t)=>ew(e,t,t,w.left.length,tf.LEFT)),ex=w.right.map((e,t)=>{let r=b.length-w.right.length+t;return ew(e,t,r,w.right.length,tf.RIGHT)}),ey=b.length-w.left.length-w.right.length,eA=[];el&&eA.push(ew(b[M],M-w.left.length,M,ey,tf.VIRTUAL));for(let e=S;e<R;e+=1){let t=b[e],r=e-w.left.length;t&&eA.push(ew(t,r,e,ey))}ea&&eA.push(ew(b[M],M-w.left.length,M,ey,tf.VIRTUAL));let eS=s?{onClick:ed,onDoubleClick:ec("rowDoubleClick",z),onMouseEnter:ec("rowMouseEnter",H),onMouseLeave:ec("rowMouseLeave",j),onMouseOut:ec("rowMouseOut",N),onMouseOver:ec("rowMouseOver",L)}:null;return(0,B.jsxs)("div",(0,i.A)({"data-id":l,"data-rowindex":u,role:"row",className:(0,d.A)(...eb,es.root,m),style:em},ev,eS,$,{ref:ee,children:[eC,(0,B.jsx)("div",{role:"presentation",className:v.xV.cellOffsetLeft,style:{width:x}}),eA,(0,B.jsx)("div",{role:"presentation",className:(0,d.A)(v.xV.cell,v.xV.cellEmpty)}),ex,(0,B.jsx)(ss,{rowId:l})]}))})),sp=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],sf=["changeReason","unstable_updateV
68alueOnRender"];tf.LEFT,ld.K.LEFT,tf.RIGHT,ld.K.RIGHT,tf.NONE,tf.VIRTUAL;let sg=m((0,u.R)(function(e,t){let r,o,{column:n,row:l,rowId:s,rowNode:u,align:h,colIndex:m,width:b,className:w,style:x,colSpan:A,disableDragEvents:S,isNotVisible:R,pinnedOffset:M,pinnedPosition:I,showRightBorder:k,showLeftBorder:P,onClick:E,onDoubleClick:F,onMouseDown:D,onMouseUp:O,onMouseOver:z,onKeyDown:H,onKeyUp:V,onDragEnter:j,onDragOver:N}=e,L=(0,c.A)(e,sp),$=y(),G=(0,T.A)(),W=(0,tN.I)(),U=n.field,_=(0,C.Nc)($,lB,{rowId:s,field:U}),q=(0,rN.Q)().hooks.useCellAggregationResult(s,U),K=_?tI.Edit:tI.View,{value:X,formattedValue:Y}=q||{},Q=$.current.getCellParamsForRow(s,U,l,{colDef:n,cellMode:K,rowNode:u,tabIndex:(0,C.Nc)($,()=>{let e=rO($);return e&&e.field===U&&e.id===s?0:-1}),hasFocus:(0,C.Nc)($,()=>{let e=rE($);return e?.id===s&&e.field===U}),value:X,formattedValue:Y});Q.api=$.current,(0,C.Nc)($,()=>$.current.isCellEditable(Q));let Z=(0,C.Nc)($,()=>$.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:s,field:U})),J=$.current.virtualizer.store,ee=oh(J,o0.selectors.hiddenCells,void 0,void 0,void 0),et=oh(J,o0.selectors.spannedCells,void 0,void 0,void 0),{hasFocus:er,isEditable:eo=!1,value:en}=Q,el="view"!==K&&eo||"actions"===n.type?-1:Q.tabIndex,{classes:ei,getCellClassName:ea}=G,es=[(0,C.Nc)($,()=>$.current.unstable_applyPipeProcessors("cellClassName",[],{id:s,field:U}).filter(Boolean).join(" "))];n.cellClassName&&es.push("function"==typeof n.cellClassName?n.cellClassName(Q):n.cellClassName),"flex"===n.display&&es.push(v.xV["cell--flex"]),ea&&es.push(ea(Q));let eu=Q.formattedValue??en,ec=a.useRef(null),ed=(0,p.A)(t,ec),ep=G.cellSelection??!1,ef=(e=>{let{align:t,showLeftBorder:r,showRightBorder:o,pinnedPosition:n,isEditable:l,isSelected:i,isSelectionMode:a,classes:s}=e,u={root:["cell",`cell--text${(0,f.A)(t)}`,i&&"selected",l&&"cell--editable",r&&"cell--withLeftBorder",o&&"cell--withRightBorder",n===tf.LEFT&&"cell--pinnedLeft",n===tf.RIGHT&&"cell--pinnedRight",a&&!l&&"cell--selectionMode"]};return(0,g.A)(u,v.B9,s)})({align:h,showLeftBorder:P,showRightBorder:k,isEditable:eo,classes:G.classes,pinnedPosition:I,isSelected:Z,isSelectionMode:ep}),eg=a.useCallback(e=>t=>{let r=$.current.getCellParams(s,U||"");$.current.publishEvent(e,r,t),O&&O(t)},[$,U,O,s]),eh=a.useCallback(e=>t=>{let r=$.current.getCellParams(s,U||"");$.current.publishEvent(e,r,t),D&&D(t)},[$,U,D,s]),em=a.useCallback((e,t)=>r=>{if(!$.current.getRow(s))return;let o=$.current.getCellParams(s,U||"");$.current.publishEvent(e,o,r),t&&t(r)},[$,U,s]),eb=ee[s]?.[m]??!1,ew=et[s]?.[m]??1,eC=a.useMemo(()=>{if(R)return{padding:0,opacity:0,width:0,height:0,border:0};let e=au((0,i.A)({"--width":`${b}px`},x),W,I,M),t=I===tf.LEFT,r=I===tf.RIGHT;return ew>1&&(e.height=`calc(var(--height) * ${ew})`,e.zIndex=10,(t||r)&&(e.zIndex=40)),e},[b,R,x,M,I,W,ew]);if((0,ev.A)(()=>{if(!er||K===tI.Edit)return;let e=(0,od.A)($.current.rootElementRef.current);if(ec.current&&!ec.current.contains(e.activeElement)){let e=ec.current.querySelector('[tabindex="0"]')||ec.current;if(lS())e.focus({preventScroll:!0});else{let t=$.current.getScrollPosition();e.focus(),$.current.scroll(t)}}},[er,K,$]),eb)return(0,B.jsx)("div",{"data-colindex":m,role:"presentation",style:(0,i.A)({width:"var(--width)"},eC)});let ex=L.onFocus;if(null===_&&n.renderCell&&(r=n.renderCell(Q)),null!==_&&n.renderEditCell){let e=$.current.getRowWithUpdatedValues(s,n.field),t=(0,c.A)(_,sf),o=n.valueFormatter?n.valueFormatter(_.value,e,n,$):Q.formattedValue,l=(0,i.A)({},Q,{row:e,formattedValue:o},t);r=n.renderEditCell(l),es.push(v.xV["cell--editing"]),es.push(ei?.["cell--editing"])}if(void 0===r){let e=eu?.toString();r=e,o=e}let ey=S?null:{onDragEnter:em("cellDragEnter",j),onDragOver:em("cellDragOver",N)};return(0,B.jsx)("div",(0,i.A)({className:(0,d.A)(ef.root,es,w),role:"gridcell","data-field":U,"data-colindex":m,"aria-colindex":m+1,"aria-colspan":A,"aria-rowspan":ew,style:eC,title:o,tabIndex:el,onClick:em("cellClick",E),onDoubleClick:em("cellDoubleClick",F),onMouseOver:em("cellMouseOver",z),onMouseDown:eh("cellMouseDown"),onMouseUp:eg("cellMouseUp"),onKeyDown:em("cellKeyDown",H),onKeyUp:em("cellKeyUp",V)},ey,L,{onFocus:ex,ref:ed,children:r}))}));function sh(e){let{apiRef:t,colDef:r,defaultSlots:o,defaultSlotProps:n,slots:l={},slotProps:a={}}=e,s=(0,i.A)({},o,l),u=n;if(a&&Object.keys(a).length>0){let e=(0,i.A)({},a);
68Object.entries(n).forEach(([t,r])=>{e[t]=(0,i.A)({},r,a[t]||{})}),u=e}let c=t.current.unstable_applyPipeProcessors("columnMenu",[],r),d=Object.keys(o);return Array.from(new Set([...c,...Object.keys(l).filter(e=>!d.includes(e))])).filter(e=>null!=s[e]).sort((e,t)=>{let r=u[e],o=u[t];return(Number.isFinite(r?.displayOrder)?r.displayOrder:100)-(Number.isFinite(o?.displayOrder)?o.displayOrder:100)})}let sm=a.memo(e=>{let{colDef:t,open:r,columnMenuId:o,columnMenuButtonId:n,iconButtonRef:l}=e,s=(0,L.h)(),u=(0,T.A)(),c=(e=>{let{classes:t,open:r}=e;return(0,g.A)({root:["menuIcon",r&&"menuOpen"],button:["menuIconButton"]},v.B9,t)})((0,i.A)({},e,{classes:u.classes})),d=a.useCallback(e=>{e.preventDefault(),e.stopPropagation(),s.current.toggleColumnMenu(t.field)},[s,t.field]),p=t.headerName??t.field;return(0,B.jsx)("div",{className:c.root,children:(0,B.jsx)(u.slots.baseTooltip,(0,i.A)({title:s.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},u.slotProps?.baseTooltip,{children:(0,B.jsx)(u.slots.baseIconButton,(0,i.A)({ref:l,tabIndex:-1,className:c.button,"aria-label":s.current.getLocaleText("columnMenuAriaLabel")(p),size:"small",onClick:d,"aria-haspopup":"menu","aria-expanded":r,"aria-controls":r?o:void 0,id:n},u.slotProps?.baseIconButton,{children:(0,B.jsx)(u.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function sb({columnMenuId:e,columnMenuButtonId:t,ContentComponent:r,contentComponentProps:o,field:n,open:l,target:a,onExited:s}){let u=(0,L.h)(),c=u.current.getColumn(n),d=(0,ea.A)(e=>{e&&(e.stopPropagation(),a?.contains(e.target))||u.current.hideColumnMenu()});return a&&c?(0,B.jsx)(tL.U,{position:`bottom-${"right"===c.align?"start":"end"}`,open:l,target:a,onClose:d,onExited:s,children:(0,B.jsx)(r,(0,i.A)({colDef:c,hideMenu:d,open:l,id:e,labelledby:t},o))}):null}let sv=["className","aria-label"],sw=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle"})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),sC=(0,u.R)(function(e,t){let{className:r}=e,o=(0,c.A)(e,sv),n=(0,T.A)(),l=(e=>{let{classes:t}=e;return(0,g.A)({root:["columnHeaderTitle"]},v.B9,t)})(n);return(0,B.jsx)(sw,(0,i.A)({className:(0,d.A)(l.root,r),ownerState:n},o,{ref:t}))});function sx(e){let{label:t,description:r}=e,o=(0,T.A)(),n=a.useRef(null),[l,s]=a.useState(""),u=a.useCallback(()=>{if(!r&&n?.current){var e;(e=n.current).scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth?s(t):s("")}},[r,t]);return(0,B.jsx)(o.slots.baseTooltip,(0,i.A)({title:r||l},o.slotProps?.baseTooltip,{children:(0,B.jsx)(sC,{onMouseOver:u,ref:n,children:t})}))}let sy=["resizable","resizing","height","side"];var sA=function(e){return e.Left="left",e.Right="right",e}(sA||{});let sS=a.memo(function(e){let{height:t,side:r=sA.Right}=e,o=(0,c.A)(e,sy),n=(0,T.A)(),l=(e=>{let{resizable:t,resizing:r,classes:o,side:n}=e,l={root:["columnSeparator",t&&"columnSeparator--resizable",r&&"columnSeparator--resizing",n&&`columnSeparator--side${(0,f.A)(n)}`],icon:["iconSeparator"]};return(0,g.A)(l,v.B9,o)})((0,i.A)({},e,{side:r,classes:n.classes})),s=a.useCallback(e=>{e.preventDefault(),e.stopPropagation()},[]);return(0,B.jsx)("div",(0,i.A)({className:l.root,style:{minHeight:t}},o,{onClick:s,children:(0,B.jsx)(n.slots.columnResizeIcon,{className:l.icon})}))}),sR=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],sM=(0,u.R)(function(e,t){let{classes:r,colIndex:o,height:n,isResizing:l,sortDirection:s,tabIndex:u,separatorSide:f,isDraggable:g,headerComponent:h,description:m,width:b,columnMenuIconButton:v=null,columnMenu:w=null,columnTitleIconButtons:C=null,headerClassName:x,label:y,resizable:A,draggableContainerProps:S,columnHeaderSeparatorProps:R,style:M}=e,I=(0,c.A)(e,sR),k=(0,T.A)(),P=a.useRef(null),E=(0,p.A)(P,t),F="none";return null!=s&&(F="asc"===s?"ascending":"descending"),(0,B.jsxs)("div",(0,i.A)({className:(0,d.A)(r.root,x),style:(0,i.A)({},M,{width:b}),role:"columnheader",tabIndex:u,"aria-colindex":o+1,"aria-sort":F},I,{ref:E,children:[(0,B.jsxs)("div",(0,i.A)({className:r.draggableContainer,draggable:g,role:"presentation"},S,{children:[(0,B.jsxs)("div",{className:r.titleContainer,role:"presentation",children:[(0,B.jsx)("div",{className:r.titleContainerContent,children:void 0!==h?h:(0,B.jsx)(sx,{label:y,description:m,columnWidth:b})}),C]}),v]})),(0,B.jsx)(sS,(0,i.A)({resizable:!k.disableColumnResize&&!!A,resizing:l,height:n,side:f},R)),w]}))}),sI=m(function(e){let t,{colDef:r,columnMenuOpen:o,colIndex:n,headerHeight:l,isResizing:s,isLast:u,sortDirection:c,sortIndex:p,filterItemsCounter:h,hasFocus:m,tabIndex:b,disableReorder:w,separatorSide:C,showLeftBorder:x,showRightBorder:A,pinnedPosition:S,pinnedOffset:R}=e,M=y(),I=(0,T.A)(),k=(0,tN.I)(),P=a.useRef(null),E=(0,eT.A)(),F=(0,eT.A)(),D=a.useRef(null),[O,z]=a.useState(o),H=I.slotProps?.columnMenu,V=I.slots.columnMenu,j=V?.defaultSlots,N=V?.defaultSlotProps,L=null!=j&&null!=N,$=a.useMemo(()=>L?sh({apiRef:M,colDef:r,defaultSlots:j,defaultSlotProps:N,slots:H?.slots,slotProps:H?.slotProps}):[],[M,r,N,j,L,H?.slotProps,H?.slots]),G=!L||$.length>0,W=!I.disableColumnReorder&&!w&&!r.disableReorder;r.renderHeader&&(t=r.renderHeader(M.current.getColumnHeaderParams(r.field)));let U=(e=>{let{disableColumnSorting:t}=(0,T.A)(),{colDef:r,classes:o,isDragging:n,sortDirection:l,showRightBorder:i,showLeftBorder:a,filterItemsCounter:s,pinnedPosition:u,isSiblingFocused:c}=e,d=r.sortable&&!t,p="number"===r.type,h={root:["columnHeader",r.headerAlign&&`columnHeader--align${(0,f.A)(r.headerAlign)}`,d&&"columnHeader--sortable",n&&"columnHeader--moving",null!=l&&"columnHeader--sorted",null!=s&&s>0&&"columnHeader--filtered",p&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",a&&"columnHeader--withLeftBorder",u===tf.LEFT&&"columnHeader--pinnedLeft",u===tf.RIGHT&&"columnHeader--pinnedRight",c&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,g.A)(h,v.B9,o)})((0,i.A)({},e,{classes:I.classes,showRightBorder:A,showLeftBorder:x})),_=a.useCallback(e=>t=>{lP(t)||M.current.publishEvent(e,M.current.getColumnHeaderParams(r.field),t)},[M,r.field]),q=a.useMemo(()=>({onClick:_("columnHeaderClick"),onContextMenu:_("columnHeaderContextMenu"),onDoubleClick:_("columnHeaderDoubleClick"),onMouseOver:_("columnHeaderOver"),onMouseOut:_("columnHeaderOut"),onMouseEnter:_("columnHeaderEnter"),onMouseLeave:_("columnHeaderLeave"),onKeyDown:_("columnHeaderKeyDown"),onFocus:_("columnHeaderFocus"),onBlur:_("columnHeaderBlur")}),[_]),K=a.useMemo(()=>W?{onDragStart:_("columnHeaderDragStart"),onDragEnter:_("columnHeaderDragEnter"),onDragOver:_("columnHeaderDragOver"),onDragEndCapture:_("columnHeaderDragEnd")}:{},[W,_]),X=a.useMemo(()=>({onMouseDown:_("columnSeparatorMouseDown"),onDoubleClick:_("columnSeparatorDoubleClick")}),[_]);a.useEffect(()=>{!O&&o&&z(o)},[O,o]),a.useEffect(()=>{L&&o&&!G&&M.current.hideColumnMenu()},[M,o,G,L]);let Y=a.useCallback(()=>{z(!1)},[]),Q=!I.disableColumnMenu&&!r.disableColumnMenu&&G&&(0,B.jsx)(sm,{colDef:r,columnMenuId:E,columnMenuButtonId:F,open:O,iconButtonRef:D}),Z=(0,B.jsx)(sb,{columnMenuId:E,columnMenuButtonId:F,field:r.field,open:o,target:D.current,ContentComponent:I.slots.columnMenu,contentComponentProps:I.slotProps?.columnMenu,onExited:Y}),J=r.sortingOrder??I.sortingOrder,ee=(r.sortable||null!=c)&&!r.hideSortIcons&&!I.disableColumnSorting,et=(0,B.jsxs)(a.Fragment,{children:[!I.disableColumnFilter&&(0,B.jsx)(I.slots.columnHeaderFilterIconButton,(0,i.A)({field:r.field,counter:h},I.slotProps?.columnHeaderFilterIconButton)),ee&&(0,B.jsx)(I.slots.columnHeaderSortIcon,(0,i.A)({field:r.field,direction:c,index:p,sortingOrder:J,disabled:!r.sortable},I.slotProps?.columnHeaderSortIcon))]});a.useLayoutEffect(()=>{let e=M.current.state.columnMenu;if(m&&!e.open){let e=P.current.querySelector('[tabindex="0"]')||P.current;if(!e)return;if(lS())e.focus({preventScroll:!0});else{let t=M.current.getScrollPosition();e.focus(),M.current.scroll(t)}}},[M,m]);let er="function"==typeof r.headerClassName?r.headerClassName({field:r.field,colDef:r}):r.headerClassName,eo=r.headerName??r.field,en=a.useMemo(()=>au((0,i.A)({},e.style),k,S,R),[S,R,e.style,k]);return(0,B.jsx)(sM,(0,i.A)({ref:P,classes:U,columnMenuOpen:o,colIndex:n,height:l,isResizing:s,sortDirection:c,hasFocus:m,tabIndex:b,separatorSide:C,isDraggable:W,headerComponent:t,description:r.description,elementId:r.field,width:r.computedWidth,columnMenuIconButton:Q,columnTitleIconButtons:et,headerClassName:(0,d.A)(er,u&&v.xV["columnHeader--last"]),label:eo,resizable:!I.disableColumnResize&&!!r.resizable,"data-field":r.field,columnMenu:Z,draggableContainerProps:K,columnHeaderSeparatorProps:X,style:en},q))});function sk(e){let t,{groupId:r,width:o,depth:n,maxDepth:l,fields:s,height:u,colIndex:c,hasFocus:d,tabIndex:p,isLastColumn:h,pinnedPosition:m,pinnedOffset:b}=e,w=(0,T.A)(),x=(0,tN.I)(),y=a.useRef(null),A=(0,L.h)(),S=(0,C.Nc)(A,ri),R=r?S[r]:{},{headerName:M=r??"",description:I="",headerAlign:k}=R,P=r&&S[r]?.renderHeaderGroup,E=a.useMemo(()=>({groupId:r,headerName:M,description:I,depth:n,maxDepth:l,fields:s,colIndex:c,isLastColumn:h}),[r,M,I,n,l,s,c,h]);r&&P&&(t=P(E));let F=(0,i.A)({},e,{classes:w.classes,headerAlign:k,depth:n,isDragging:!1}),D=M??r,O=(0,eT.A)(),z=null===r?`empty-group-cell-${O}`:r,H=(e=>{let{classes:t,headerAlign:r,isDragging:o,isLastColumn:n,showLeftBorder:l,showRightBorder:i,groupId:a,pinnedPosition:s}=e,u={root:["columnHeader",r&&`columnHeader--align${(0,f.A)(r)}`,o&&"columnHeader--moving",i&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder","withBorderColor",null===a?"columnHeader--emptyGroup":"columnHeader--filledGroup",s===tf.LEFT&&"columnHeader--pinnedLeft",s===tf.RIGHT&&"columnHeader--pinnedRight",n&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,g.A)(u,v.B9,t)})(F);a.useLayoutEffect(()=>{if(d){let e=y.current.querySelector('[tabindex="0"]')||y.current;if(e)if(lS())e.focus({preventScroll:!0});else{let t=A.current.getScrollPosition();e.focus(),A.current.scroll(t)}}},[A,d]);let V=a.useCallback(e=>t=>{lP(t)||A.current.publishEvent(e,E,t)},[A,E]),j=a.useMemo(()=>({onKeyDown:V("columnGroupHeaderKeyDown"),onFocus:V("columnGroupHeaderFocus"),onBlur:V("columnGroupHeaderBlur")}),[V]),N="function"==typeof R.headerClassName?R.headerClassName(E):R.headerClassName,$=a.useMemo(()=>au((0,i.A)({},e.style),x,m,b),[m,b,e.style,x]);return(0,B.jsx)(sM,(0,i.A)({ref:y,classes:H,columnMenuOpen:!1,colIndex:c,height:u,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:p,isDraggable:!1,headerComponent:t,headerClassName:N,description:I,elementId:z,width:o,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:D,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`,style:$},j))}let sP={root:v.xV.scrollbarFiller,pinnedRight:v.xV["scrollbarFiller--pinnedRight"]};function sE({pinnedRight:e}){return(0,B.jsx)("div",{role:"presentation",className:(0,d.A)(sP.root,e&&sP.pinnedRight)})}let sT=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}
68),sF=["className"],sD=(0,rU.A)("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),sO=(0,u.R)(function(e,t){let{className:r}=e,o=(0,c.A)(e,sF),n=(0,T.A)(),l=(e=>{let{classes:t}=e;return(0,g.A)({root:["columnHeaders"]},v.B9,t)})(n);return(0,B.jsx)(sD,(0,i.A)({className:(0,d.A)(l.root,r),ownerState:n},o,{role:"presentation",ref:t}))}),sz=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],sH=m((0,u.R)(function(e,t){let{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:n,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:s,columnHeaderFocus:u,columnGroupHeaderFocus:p,headerGroupingMaxDepth:f,columnMenuState:g,columnVisibility:h,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:b}=e,w=(0,c.A)(e,sz),{getInnerProps:x,getColumnHeadersRow:A,getColumnGroupHeadersRows:S}=(e=>{let{visibleColumns:t,sortColumnLookup:r,filterColumnLookup:o,columnHeaderTabIndexState:n,columnGroupHeaderTabIndexState:l,columnHeaderFocus:s,columnGroupHeaderFocus:u,headerGroupingMaxDepth:c,columnMenuState:p,columnVisibility:f,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:h}=e,[m,b]=a.useState(""),[w,x]=a.useState(""),A=y(),S=(0,T.A)(),R=(0,C.Nc)(A,rl),M=(0,C.Nc)(A,V.Sw),I=(0,C.Nc)(A,nb),k=(0,C.Nc)(A,V.Q1),P=(0,C.Nc)(A,V.gv),E=o$(M,I,k.left.length),F=(0,C.Nc)(A,Y),D=(0,C.Nc)(A,ee),O=(0,C.Nc)(A,et),z=(0,C.Nc)(A,er),H=(0,C.Nc)(A,en),j=a.useCallback(e=>x(e.field),[]),N=a.useCallback(()=>x(""),[]),L=a.useCallback(e=>b(e.field),[]),$=a.useCallback(()=>b(""),[]),G=a.useMemo(()=>k.left.length?{firstColumnIndex:0,lastColumnIndex:k.left.length}:null,[k.left.length]),W=a.useMemo(()=>k.right.length?{firstColumnIndex:t.length-k.right.length,lastColumnIndex:t.length}:null,[k.right.length,t.length]);ef(A,"columnResizeStart",j),ef(A,"columnResizeStop",N),ef(A,"columnHeaderDragStart",L),ef(A,"columnHeaderDragEndNative",$);let U=e=>{let{renderContext:r=I}=e||{},o=r.firstColumnIndex,n=Math.min(r.lastColumnIndex,t.length);return{renderedColumns:t.slice(o,n),firstColumnToRender:o,lastColumnToRender:n}},_=(e,t,r,o=!1)=>{let n=e?.position===tf.RIGHT,l=e?.position===void 0,i=k.right.length>0&&n||0===k.right.length&&l;return(0,B.jsxs)(a.Fragment,{children:[l&&(0,B.jsx)("div",{role:"presentation",style:{width:E-r}}),t,l&&(0,B.jsx)("div",{role:"presentation",className:(0,d.A)(v.xV.filler,o&&v.xV["filler--borderBottom"])}),i&&(0,B.jsx)(sE,{pinnedRight:n})]})},q=(e,t={})=>{let{renderedColumns:l,firstColumnToRender:a}=U(e),u=[];for(let c=0;c<l.length;c+=1){let d=l[c],f=a+c,g=0===f,b=null!==n&&n.field===d.field||g&&!h?0:-1,v=null!==s&&s.field===d.field,C=p.open&&p.field===d.field,x=e?.position,y=al(x,d.computedWidth,f,M,F,H),A=x===tf.RIGHT?l[c-1]:l[c+1],R=!!A&&null!==s&&s.field===A.field,I=c,k=l.length,P=aa(x,I,S.showColumnVerticalBorder,S.pinnedColumnsSectionSeparator),E=ai(x,I,k,S.showColumnVerticalBorder,D,S.pinnedColumnsSectionSeparator);u.push((0,B.jsx)(sI,(0,i.A)({},r[d.field],{columnMenuOpen:C,filterItemsCounter:o[d.field]&&o[d.field].length,headerHeight:O,isDragging:d.field===m,colDef:d,colIndex:f,isResizing:w===d.field,isLast:f===M.length-1,hasFocus:v,tabIndex:b,pinnedPosition:x,pinnedOffset:y,isSiblingFocused:R,showLeftBorder:P,showRightBorder:E},t),d.field))}return _(e,u,0)},K=({depth:e,params:r})=>{let o=U(r);if(0===o.renderedColumns.length)return null;let{firstColumnToRender:n,lastColumnToRender:a}=o,s=g[e],d=t[n].field,p=R[d]?.[e]??null,h=s.findIndex(({groupId:e,columnFields:t})=>e===p&&t.includes(d)),m=t[a-1].field,b=R[m]?.[e]??null,v=s.findIndex(({groupId:e,columnFields:t})=>e===b&&t.includes(m)),w=s.slice(h,v+1).map(e=>(0,i.A)({},e,{columnFields:e.columnFields.filter(e=>!1!==f[e])})).filter(e=>e.columnFields.length>0),C=w[0].columnFields.indexOf(d),x=w[0].columnFields.slice(0,C).reduce((e,t)=>
68e+(P[t].computedWidth??0),0),y=n,A=w.map(({groupId:t,columnFields:o},n)=>{let i=null!==u&&u.depth===e&&o.includes(u.field),a=null!==l&&l.depth===e&&o.includes(l.field)?0:-1,s={groupId:t,width:o.reduce((e,t)=>e+P[t].computedWidth,0),fields:o,colIndex:y,hasFocus:i,tabIndex:a},d=r.position,p=al(d,s.width,y,M,F,H);y+=o.length;let f=n;return d===tf.LEFT&&(f=y-1),(0,B.jsx)(sk,{groupId:t,width:s.width,fields:s.fields,colIndex:s.colIndex,depth:e,isLastColumn:n===w.length-1,maxDepth:c,height:z,hasFocus:i,tabIndex:a,pinnedPosition:d,pinnedOffset:p,showLeftBorder:aa(d,f,S.showColumnVerticalBorder,S.pinnedColumnsSectionSeparator),showRightBorder:ai(d,f,w.length,S.showColumnVerticalBorder,D,S.pinnedColumnsSectionSeparator)},n)});return _(r,A,x)};return{renderContext:I,leftRenderContext:G,rightRenderContext:W,pinnedColumns:k,visibleColumns:t,columnPositions:M,getFillers:_,getColumnHeadersRow:()=>(0,B.jsxs)(sT,{role:"row","aria-rowindex":c+1,ownerState:S,className:v.xV["row--borderBottom"],style:{height:O},children:[G&&q({position:tf.LEFT,renderContext:G},{disableReorder:!0}),q({renderContext:I}),W&&q({position:tf.RIGHT,renderContext:W},{disableReorder:!0,separatorSide:sA.Left})]}),getColumnsToRender:U,getColumnGroupHeadersRows:()=>{if(0===c)return null;let e=[];for(let t=0;t<c;t+=1)e.push((0,B.jsxs)(sT,{role:"row","aria-rowindex":t+1,ownerState:S,style:{height:z},children:[G&&K({depth:t,params:{position:tf.LEFT,renderContext:G,maxLastColumn:G.lastColumnIndex}}),K({depth:t,params:{renderContext:I}}),W&&K({depth:t,params:{position:tf.RIGHT,renderContext:W,maxLastColumn:W.lastColumnIndex}})]},t));return e},getPinnedCellOffset:al,isDragging:!!m,getInnerProps:()=>({role:"rowgroup"})}})({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:n,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:s,columnHeaderFocus:u,columnGroupHeaderFocus:p,headerGroupingMaxDepth:f,columnMenuState:g,columnVisibility:h,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:b});return(0,B.jsxs)(sO,(0,i.A)({},w,x(),{ref:t,children:[S(),A()]}))})),sV=["displayOrder"],sj=["hideMenu","colDef","id","labelledby","className","children","open"],sN=(0,b.Ay)(ew.p,{slot:"internal"})(()=>({minWidth:248}));function sL(e){e.currentTarget.contains(e.target)&&e.stopPropagation()}let s$=(0,u.R)(function(e,t){let{hideMenu:r,id:o,labelledby:n,className:l,children:s,open:u}=e,p=(0,c.A)(e,sj),f=(0,T.A)(),g=a.useCallback(e=>{"Tab"===e.key&&e.preventDefault(),(0,la.HF)(e.key)&&r(e)},[r]);return(0,B.jsx)(sN,(0,i.A)({as:f.slots.baseMenuList,id:o,className:(0,d.A)(v.xV.menuList,l),"aria-labelledby":n,onKeyDown:g,onWheel:sL,onTouchMove:sL,autoFocus:u},p,{ref:t,children:s}))});function sB(e){let{colDef:t,onClick:r}=e,o=(0,L.h)(),n=(0,T.A)(),l=1===(0,V.iv)(o).filter(e=>!0!==e.disableColumnMenu).length,i=a.useCallback(e=>{l||(o.current.setColumnVisibility(t.field,!1),r(e))},[o,t.field,r,l]);return n.disableColumnSelector||!1===t.hideable?null:(0,B.jsx)(n.slots.baseMenuItem,{onClick:i,disabled:l,iconStart:(0,B.jsx)(n.slots.columnMenuHideIcon,{fontSize:"small"}),children:o.current.getLocaleText("columnMenuHideColumn")})}function sG(e){let{onClick:t}=e,r=(0,L.h)(),o=(0,T.A)(),n=a.useCallback(e=>{t(e),r.current.showPreferences(N.y.columns)},[r,t]);return o.disableColumnSelector?null:(0,B.jsx)(o.slots.baseMenuItem,{onClick:n,iconStart:(0,B.jsx)(o.slots.columnMenuManageColumnsIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuManageColumns")})}let sW=["defaultSlots","defaultSlotProps","slots","slotProps"],sU={columnMenuSortItem:function(e){let{colDef:t,onClick:r}=e,o=(0,L.h)(),n=(0,C.Nc)(o,rk.XU),l=(0,T.A)(),i=a.useMemo(()=>{if(!t)return null;let e=n.find(e=>e.field===t.field);return e?.sort},[t,n]),s=t.sortingOrder??l.sortingOrder,u=a.useCallback(e=>{r(e);let n=e.currentTarget.getAttribute("data-value")||null,a="always"===l.multipleColumnsSortingMode;o.current.sortColumn(t.field,n===i?null:n,a)},[o,t,r,i,l.multipleColumnsSortingMode]);if(l.disableColumnSorting||!t||!t.sortable||!s.some(e=>!!e))return null;let c=e=>{let r=o.current.getLocaleText(e);return"function"==typeof r?r(t):r};return(0,B.jsxs)(a.Fragment,{children:[s.includes("asc")&&"asc"!==i?(0,B.jsx)(l.slots.baseMenuItem,{onClick:u,"data-value":"asc",iconStart:(0,B.jsx)(l.slots.columnMenuSortAscendingIcon,{fontSize:"small"}),children:c("columnMenuSortAsc")}
68):null,s.includes("desc")&&"desc"!==i?(0,B.jsx)(l.slots.baseMenuItem,{onClick:u,"data-value":"desc",iconStart:(0,B.jsx)(l.slots.columnMenuSortDescendingIcon,{fontSize:"small"}),children:c("columnMenuSortDesc")}):null,s.includes(null)&&null!=i?(0,B.jsx)(l.slots.baseMenuItem,{onClick:u,iconStart:l.slots.columnMenuUnsortIcon?(0,B.jsx)(l.slots.columnMenuUnsortIcon,{fontSize:"small"}):(0,B.jsx)("span",{}),children:o.current.getLocaleText("columnMenuUnsort")}):null]})},columnMenuFilterItem:function(e){let{colDef:t,onClick:r}=e,o=(0,L.h)(),n=(0,T.A)(),l=a.useCallback(e=>{r(e),o.current.showFilterPanel(t.field)},[o,t.field,r]);return n.disableColumnFilter||!t.filterable?null:(0,B.jsx)(n.slots.baseMenuItem,{onClick:l,iconStart:(0,B.jsx)(n.slots.columnMenuFilterIcon,{fontSize:"small"}),children:o.current.getLocaleText("columnMenuFilter")})},columnMenuColumnsItem:function(e){return(0,B.jsxs)(a.Fragment,{children:[(0,B.jsx)(sB,(0,i.A)({},e)),(0,B.jsx)(sG,(0,i.A)({},e))]})}},s_={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},sq=(0,u.R)(function(e,t){let{defaultSlots:r,defaultSlotProps:o,slots:n,slotProps:l}=e,s=(0,c.A)(e,sW),u=(e=>{let t=y(),r=(0,T.A)(),{defaultSlots:o,defaultSlotProps:n,slots:l={},slotProps:s={},hideMenu:u,colDef:d,addDividers:p=!0}=e,f=a.useMemo(()=>(0,i.A)({},o,l),[o,l]),g=a.useMemo(()=>{if(!s||0===Object.keys(s).length)return n;let e=(0,i.A)({},s);return Object.entries(n).forEach(([t,r])=>{e[t]=(0,i.A)({},r,s[t]||{})}),e},[n,s]);return a.useMemo(()=>{let e=sh({apiRef:t,colDef:d,defaultSlots:o,defaultSlotProps:n,slots:l,slotProps:s});return e.reduce((t,o,n)=>{let l={colDef:d,onClick:u},a=g[o];if(a){let e=(0,c.A)(a,sV);l=(0,i.A)({},l,e)}return p&&n!==e.length-1?[...t,[f[o],l],[r.slots.baseDivider,{}]]:[...t,[f[o],l]]},[])},[p,t,d,n,o,u,f,g,s,l,r.slots.baseDivider])})((0,i.A)({},s,{defaultSlots:r,defaultSlotProps:o,slots:n,slotProps:l}));return(0,B.jsx)(s$,(0,i.A)({},s,{ref:t,children:u.map(([e,t],r)=>(0,B.jsx)(e,(0,i.A)({},t),r))}))}),sK=(0,u.R)(function(e,t){return(0,B.jsx)(sq,(0,i.A)({},e,{ref:t,defaultSlots:sU,defaultSlotProps:s_}))});sK.defaultSlots=sU,sK.defaultSlotProps=s_;let sX=(0,u.R)(function(e,t){let r=(0,L.h)().current.getLocaleText("noResultsOverlayLabel");return(0,B.jsx)(an,(0,i.A)({},e,{ref:t,children:r}))});var sY=r(49099),sQ=r(78283);let sZ=function(e){let{badgeContent:t,invisible:r=!1,max:o=99,showZero:n=!1}=e,l=(0,sQ.A)({badgeContent:t,max:o}),i=r;!1!==r||0!==t||n||(i=!0);let{badgeContent:a,max:s=o}=i?l:e,u=a&&Number(a)>s?"".concat(s,"+"):a;return{badgeContent:a,invisible:i,max:s,displayValue:u}};var sJ=r(95651),s0=r(66352),s1=r(63915),s2=r(64170),s9=r(21849);function s3(e){return(0,s9.Ay)("MuiBadge",e)}let s5=(0,a5.A)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);var s4=r(75687);let s6=(0,b.Ay)("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),s7=(0,b.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.badge,t[r.variant],t["anchorOrigin".concat((0,s2.A)(r.anchorOrigin.vertical)).concat((0,s2.A)(r.anchorOrigin.horizontal)).concat((0,s2.A)(r.overlap))],"default"!==r.color&&t["color".concat((0,s2.A)(r.color))],r.invisible&&t.invisible]}})((0,sJ.A)(e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.entries(t.palette).filter((0,s0.A)(["contrastText"])).map(e=>{let[r]=e;return{props:{color:r},style:{backgroundColor:(t.vars||t).palette[r].main,color:(t.vars||t).palette[r].contrastText}}}),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}},{style:e=>{let{ownerState:t}=e,{vertical:r,horizontal:o}=t.anchorOrigin,n="circular"===t.overlap?"14%":0;return{"--Badge-translateX":"right"===o?"50%":"-50%","--Badge-translateY":"top"===r?"-50%":"50%",top:"top"===r?n:"initial",bottom:"bottom"===r?n:"initial",right:"right"===o?n:"initial",left:"left"===o?n:"initial",transform:"scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",transformOrigin:"".concat("right"===o?"100%":"
680%"," ").concat("top"===r?"0%":"100%"),["&.".concat(s5.invisible)]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]}}));function s8(e){var t,r;return{vertical:null!=(t=null==e?void 0:e.vertical)?t:"top",horizontal:null!=(r=null==e?void 0:e.horizontal)?r:"right"}}let ue=a.forwardRef(function(e,t){var r,o,n,l;let i=(0,s1.b)({props:e,name:"MuiBadge"}),{anchorOrigin:a,className:s,classes:u,component:c,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:b="default",invisible:v=!1,max:w=99,badgeContent:C,slots:x,slotProps:y,showZero:A=!1,variant:S="standard",...R}=i,{badgeContent:M,invisible:I,max:k,displayValue:P}=sZ({max:w,invisible:v,badgeContent:C,showZero:A}),E=(0,sQ.A)({anchorOrigin:s8(a),color:b,overlap:m,variant:S,badgeContent:C}),T=I||null==M&&"dot"!==S,{color:F=b,overlap:D=m,anchorOrigin:O,variant:z=S}=T?E:i,H=s8(O),V="dot"!==z?P:void 0,j={...i,badgeContent:M,invisible:T,max:k,displayValue:V,showZero:A,anchorOrigin:H,color:F,overlap:D,variant:z},N=(e=>{let{color:t,anchorOrigin:r,invisible:o,overlap:n,variant:l,classes:i={}}=e,a={root:["root"],badge:["badge",l,o&&"invisible","anchorOrigin".concat((0,s2.A)(r.vertical)).concat((0,s2.A)(r.horizontal)),"anchorOrigin".concat((0,s2.A)(r.vertical)).concat((0,s2.A)(r.horizontal)).concat((0,s2.A)(n)),"overlap".concat((0,s2.A)(n)),"default"!==t&&"color".concat((0,s2.A)(t))]};return(0,g.A)(a,s3,i)})(j),L={slots:{root:null!=(r=null==x?void 0:x.root)?r:p.Root,badge:null!=(o=null==x?void 0:x.badge)?o:p.Badge},slotProps:{root:null!=(n=null==y?void 0:y.root)?n:f.root,badge:null!=(l=null==y?void 0:y.badge)?l:f.badge}},[$,G]=(0,s4.A)("root",{elementType:s6,externalForwardedProps:{...L,...R},ownerState:j,className:(0,d.A)(N.root,s),ref:t,additionalProps:{as:c}}),[W,U]=(0,s4.A)("badge",{elementType:s7,externalForwardedProps:L,ownerState:j,className:N.badge});return(0,B.jsxs)($,{...G,children:[h,(0,B.jsx)(W,{...U,children:V})]})});var ut=r(56486),ur=r(5820),uo=r(95063),un=r(82097),ul=r(93717),ui=r(66324),ua=r(61150),us=r(43185),uu=r(20370);let uc=(0,b.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((0,sJ.A)(e=>{let{theme:t}=e;return{minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}})),ud=a.forwardRef(function(e,t){let r=(0,s1.b)({props:e,name:"MuiListItemIcon"}),{className:o,...n}=r,l=a.useContext(uu.A),i={...r,alignItems:l.alignItems},s=(e=>{let{alignItems:t,classes:r}=e;return(0,g.A)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},us.f,r)})(i);return(0,B.jsx)(uc,{className:(0,d.A)(s.root,o),ownerState:i,ref:t,...n})});var up=r(85743),uf=r(82777),ug=r(18637);let uh=(0,b.Ay)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(ug.A.primary)]:t.primary},{["& .".concat(ug.A.secondary)]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[".".concat(up.A.root,":where(& .").concat(ug.A.primary,")")]:{display:"block"},[".".concat(up.A.root,":where(& .").concat(ug.A.secondary,")")]:{display:"block"},variants:[{props:e=>{let{ownerState:t}=e;return t.primary&&t.secondary},style:{marginTop:6,marginBottom:6}},{props:e=>{let{ownerState:t}=e;return t.inset},style:{paddingLeft:56}}]}),um=a.forwardRef(function(e,t){let r=(0,s1.b)({props:e,name:"MuiListItemText"}),{children:o,className:n,disableTypography:l=!1,inset:i=!1,primary:s,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:p,slots:f={},slotProps:h={},...m}=r,{dense:b}=a.useContext(uu.A),v=null!=s?s:o,w=c,C={...r,disableTypography:l,inset:i,primary:!!v,secondary:!!w,dense:b},x=(e=>{let{classes:t,inset:r,primary:o,secondary:n,dense:l}=e;return(0,g.A)({root:["root",r&&"inset",l&&"dense",o&&n&&"multiline"],primary:["primary"],secondary:["secondary"]},ug.b,t)})(C),y={slots:f,slotProps:{primary:u,secondary:p,...h}},[A,S]=(0,s4.A)("root",{className:(0,d.A)(x.root,n),elementType:uh,externalForwardedProps:{...y,...m},ownerState:C,ref:t}),[R,M]=(0,s4.A)("primary",{className:x.primary,elementType:uf.A,externalForwardedProps:y,ownerState:C}),[I,k]=(0,s4.A)("secondary",{className:x.secondary,elementType:uf.A,externalForwardedProps:y,ownerState:C});return null==v||v.type===uf.A||l||(v=(0,B.jsx)(R,{variant:b?"body2":"body1",component:(null==M?void 0:M.variant)?void 0:"span",...M,children:v})),null==w||w.type===uf.A||l||(w=(0,B.jsx)(I,{variant:"body2",color:"textSecondary",...k,children:w})),(0,B.jsxs)(A,{...S,children:[v,w]})});var ub=r(48882),uv=r(96524),uw=r(91349),uC=r(68551),ux=r(28166),uy=r(38801),uA=r(98311),uS=r(1779),uR=r(10141);function uM(e){return(0,s9.Ay)("MuiSwitch",e)}let uI=(0,a5.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var uk=r(10738);let uP=(0,b.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.edge&&t["edge".concat((0,s2.A)(r.edge))],t["size".concat((0,s2.A)(r.size))]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,["& .".concat(uI.thumb)]:{width:16,height:16},["& .".concat(uI.switchBase)]:{padding:4,["&.".concat(uI.checked)]:{transform:"translateX(16px)"}}}}]}),uE=(0,b.Ay)(uR.A,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.switchBase,{["& .".concat(uI.input)]:t.input},"default"!==r.color&&t["color".concat((0,s2.A)(r.color))]]}})((0,sJ.A)(e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(uI.checked)]:{transform:"translateX(20px)"},["&.".concat(uI.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(uI.checked," + .").concat(uI.track)]:{opacity:.5},["&.".concat(uI.disabled," + .").concat(uI.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(uI.input)]:{left:"-100%",width:"300%"}}}),(0,sJ.A)(e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter((0,s0.A)(["light"])).map(e=>{let[r]=e;return{props:{color:r},style:{["&.".concat(uI.checked)]:{color:(t.vars||t).palette[r].main,"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(uI.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(r,"DisabledColor")]:"".concat("light"===t.palette.mode?t.lighten(t.palette[r].main,.62):t.darken(t.palette[r].main,.55))}},["&.".concat(uI.checked," + .").concat(uI.track)]:{backgroundColor:(t.vars||t).palette[r].main}}}})]}})),uT=(0,b.Ay)("span",{name:"MuiSwitch",slot:"Track"})((0,sJ.A)(e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,boxSizing:"border-box",border:"1px solid transparent",zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}
68),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),uF=(0,b.Ay)("span",{name:"MuiSwitch",slot:"Thumb"})((0,sJ.A)(e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",boxSizing:"border-box",border:"1px solid transparent",width:20,height:20,borderRadius:"50%"}})),uD=a.forwardRef(function(e,t){let r=(0,s1.b)({props:e,name:"MuiSwitch"}),{className:o,color:n="primary",edge:l=!1,size:i="medium",sx:a,slots:s={},slotProps:u={},...c}=r,p={...r,color:n,edge:l,size:i},f=(e=>{let{classes:t,edge:r,size:o,color:n,checked:l,disabled:i}=e,a={root:["root",r&&"edge".concat((0,s2.A)(r)),"size".concat((0,s2.A)(o))],switchBase:["switchBase","color".concat((0,s2.A)(n)),l&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},s=(0,g.A)(a,uM,t);return{...t,...s}})(p),h=u.input,m={slots:s,slotProps:u},[b,v]=(0,s4.A)("root",{className:(0,d.A)(f.root,o),elementType:uP,externalForwardedProps:m,ownerState:p,additionalProps:{sx:a}}),[w,C]=(0,s4.A)("thumb",{className:f.thumb,elementType:uF,externalForwardedProps:m,ownerState:p}),x=(0,B.jsx)(w,{...C}),[y,A]=(0,s4.A)("track",{className:f.track,elementType:uT,externalForwardedProps:m,ownerState:p});return(0,B.jsxs)(b,{...v,children:[(0,B.jsx)(uE,{type:"checkbox",icon:x,checkedIcon:x,ref:t,ownerState:p,...c,classes:{...f,root:f.switchBase},slots:{...s.switchBase&&{root:s.switchBase},...s.input&&{input:s.input}},slotProps:{...u.switchBase&&{root:"function"==typeof u.switchBase?u.switchBase(p):u.switchBase},input:(0,uk.A)("function"==typeof h?h(p):h,{role:"switch"})}}),(0,B.jsx)(y,{...A})]})});var uO=r(92228),uz=r(40163),uH=r(25925),uV=r(71643),uj=r(77997),uN=r(3417),uL=r(4526);function u$(e){return(0,s9.Ay)("MuiToolbar",e)}(0,a5.A)("MuiToolbar",["root","gutters","regular","dense"]);let uB=(0,b.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((0,sJ.A)(e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",variants:[{props:e=>{let{ownerState:t}=e;return!t.disableGutters},style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}})),uG=a.forwardRef(function(e,t){let r=(0,s1.b)({props:e,name:"MuiToolbar"}),{className:o,component:n="div",disableGutters:l=!1,variant:i="regular",...a}=r,s={...r,component:n,disableGutters:l,variant:i},u=(e=>{let{classes:t,disableGutters:r,variant:o}=e;return(0,g.A)({root:["root",!r&&"gutters",o]},u$,t)})(s);return(0,B.jsx)(uB,{as:n,className:(0,d.A)(u.root,o),ref:t,ownerState:s,...a})});var uW=r(74613),uU=r(40158),u_=r(49416);let uq=(0,u_.A)((0,B.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),uK=(0,u_.A)((0,B.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");function uX(e){return(0,s9.Ay)("MuiTablePaginationActions",e)}(0,a5.A)("MuiTablePaginationActions",["root"]);let uY=(0,b.Ay)("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),uQ=a.forwardRef(function(e,t){var r,o,n,l,i,a,s,u;let c=(0,s1.b)({props:e,name:"MuiTablePaginationActions"}),{backIconButtonProps:p,className:f,count:h,disabled:m=!1,getItemAriaLabel:b,nextIconButtonProps:v,onPageChange:w,page:C,rowsPerPage:x,showFirstButton:y,showLastButton:A,slots:S={},slotProps:R={},...M}=c,I=(0,tN.I)(),k=(e=>{let{classes:t}=e;return(0,g.A)({root:["root"]},uX,t)})(c),P=null!=(r=S.firstButton)?r:uH.A,E=null!=(o=S.lastButton)?o:uH.A,T=null!=(n=S.nextButton)?n:uH.A,F=null!=(l=S.previousButton)?l:uH.A,D=null!=(i=S.firstButtonIcon)?i:uK,O=null!=(a=S.lastButtonIcon)?a:uq,z=null!=(s=S.nextButtonIcon)?s:uU.A,H=null!=(u=S.previousButtonIcon)?u:uW.A,V=I?E:P,j=I?T:F,N=I?F:T,L=I?P:E,$=I?R.lastButton:R.firstButton,G=I?R.nextButton:R.previousButton,W=I?R.previousButton:R.nextButton,U=I?R.firstButton:R.lastButton;return(0,B.jsxs)(uY,{ref:t,className:(0,d.A)(k.root,f),...M,children:[y&&(0,B.jsx)(V,{onClick:e=>{w(e,0)},disabled:m||0===C,"aria-label":b("first",C),title:b("first",C),...$,children:I?(0,B.jsx)(O,{...R.lastButtonIcon}):(0,B.jsx)(D,{...R.firstButtonIcon})}),(0,B.jsx)(j,{onClick:e=>{w(e,C-1)},disabled:m||0===C,color:"inherit","aria-label":b("previous",C),title:b("previous",C),...null!=G?G:p,children:I?(0,B.jsx)(z,{...R.nextButtonIcon}):(0,B.jsx)(H,{...R.previousButtonIcon})}),(0,B.jsx)(N,{onClick:e=>{w(e,C+1)},disabled:m||-1!==h&&C>=Math.ceil(h/x)-1,color:"inherit","aria-label":b("next",C),title:b("next",C),...null!=W?W:v,children:I?(0,B.jsx)(H,{...R.previousButtonIcon}):(0,B.jsx)(z,{...R.nextButtonIcon})}),A&&(0,B.jsx)(L,{onClick:e=>{w(e,Math.max(0,Math.ceil(h/x)-1))},disabled:m||C>=Math.ceil(h/x)-1,"aria-label":b("last",C),title:b("last",C),...U,children:I?(0,B.jsx)(D,{...R.firstButtonIcon}):(0,B.jsx)(O,{...R.lastButtonIcon})})]})});var uZ=r(48414);function uJ(e){return(0,s9.Ay)("MuiTablePagination",e)}let u0=(0,a5.A)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),u1=(0,b.Ay)(uL.A,{name:"MuiTablePagination",slot:"Root"})((0,sJ.A)(e=>{let{theme:t}=e;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),u2=(0,b.Ay)(uG,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({["& .".concat(u0.actions)]:t.actions,...t.toolbar})})((0,sJ.A)(e=>{let{theme:t}=e;return{minHeight:52,paddingRight:2,["".concat(t.breakpoints.up("xs")," and (orientation: landscape)")]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},["& .".concat(u0.actions)]:{flexShrink:0,marginLeft:20}}})),u9=(0,b.Ay)("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),u3=(0,b.Ay)("p",{name:"MuiTablePagination",slot:"SelectLabel"})((0,sJ.A)(e=>{let{theme:t}=e;return{...t.typography.body2,flexShrink:0}})),u5=(0,b.Ay)(uS.A,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({["& .".concat(u0.selectIcon)]:t.selectIcon,["& .".concat(u0.select)]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,["& .".concat(u0.select)]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),u4=(0,b.Ay)(uv.A,{name:"MuiTablePagination",slot:"MenuItem"})({}),u6=(0,b.Ay)("p",{name:"MuiTablePagination",slot:"DisplayedRows"})((0,sJ.A)(e=>{let{theme:t}=e;return{...t.typography.body2,flexShrink:0}}));function u7(e){let{from:t,to:r,count:o}=e;return"".concat(t,"â").concat(r," of ").concat(-1!==o?o:"more than ".concat(r))}function u8(e){return"Go to ".concat(e," page")}let ce=a.forwardRef(function(e,t){var r;let o,n=(0,s1.b)({props:e,name:"MuiTablePagination"}),{ActionsComponent:i=uQ,backIconButtonProps:s,colSpan:u,component:c=uL.A,count:p,disabled:f=!1,getItemAriaLabel:h=u8,labelDisplayedRows:m=u7,labelRowsPerPage:b="Rows per page:",nextIconButtonProps:v,onPageChange:w,onRowsPerPageChange:C,page:x,rowsPerPage:y,rowsPerPageOptions:A=[10,25,50,100],SelectProps:S={}
68,showFirstButton:R=!1,showLastButton:M=!1,slotProps:I={},slots:k={},...P}=n,E=(e=>{let{classes:t}=e;return(0,g.A)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},uJ,t)})(n),T=null!=(r=null==I?void 0:I.select)?r:S,F=T.native?"option":u4;(c===uL.A||"td"===c)&&(o=u||1e3);let D=(0,uZ.A)(T.id),O=(0,uZ.A)(T.labelId),z={slots:k,slotProps:I},[H,V]=(0,s4.A)("root",{ref:t,className:E.root,elementType:u1,externalForwardedProps:{...z,component:c,...P},ownerState:n,additionalProps:{colSpan:o}}),[j,N]=(0,s4.A)("toolbar",{className:E.toolbar,elementType:u2,externalForwardedProps:z,ownerState:n}),[L,$]=(0,s4.A)("spacer",{className:E.spacer,elementType:u9,externalForwardedProps:z,ownerState:n}),[G,W]=(0,s4.A)("selectLabel",{className:E.selectLabel,elementType:u3,externalForwardedProps:z,ownerState:n,additionalProps:{id:O}}),[U,_]=(0,s4.A)("select",{className:E.select,elementType:u5,externalForwardedProps:z,ownerState:n}),[q,K]=(0,s4.A)("menuItem",{className:E.menuItem,elementType:F,externalForwardedProps:z,ownerState:n}),[X,Y]=(0,s4.A)("displayedRows",{className:E.displayedRows,elementType:u6,externalForwardedProps:z,ownerState:n});return(0,B.jsx)(H,{...V,children:(0,B.jsxs)(j,{...N,children:[(0,B.jsx)(L,{...$}),A.length>1&&(0,B.jsx)(G,{...W,children:b}),A.length>1&&(0,B.jsx)(U,{variant:"standard",...!T.variant&&{input:l||(l=(0,B.jsx)(ul.Ay,{}))},value:y,onChange:C,id:D,labelId:O,...T,classes:{...T.classes,root:(0,d.A)(E.input,E.selectRoot,(T.classes||{}).root),select:(0,d.A)(E.select,(T.classes||{}).select),icon:(0,d.A)(E.selectIcon,(T.classes||{}).icon)},disabled:f,..._,children:A.map(e=>(0,a.createElement)(q,{...K,key:e.label?e.label:e,value:e.value?e.value:e},e.label?e.label:e))}),(0,B.jsx)(X,{...Y,children:m({from:0===p?0:x*y+1,to:-1===p?(x+1)*y:-1===y?p:Math.min(p,(x+1)*y),count:-1===p?-1:p,page:x})}),(0,B.jsx)(i,{className:E.actions,backIconButtonProps:s,count:p,nextIconButtonProps:v,onPageChange:w,page:x,rowsPerPage:y,showFirstButton:R,showLastButton:M,slotProps:I.actions,slots:k.actions,getItemAriaLabel:h,disabled:f})]})})});var ct=r(62396),cr=r(90133),co=r(37089),cn=r(58311),cl=r(82099),ci=r(28888);function ca(e){return(0,s9.Ay)("MuiSkeleton",e)}function cs(){let e=(0,ci._)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return cs=function(){return e},e}function cu(){let e=(0,ci._)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"]);return cu=function(){return e},e}function cc(){let e=(0,ci._)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]);return cc=function(){return e},e}function cd(){let e=(0,ci._)(["\n &::after {\n animation: "," 2s linear 0.5s infinite;\n }\n "]);return cd=function(){return e},e}(0,a5.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);let cp=(0,aU.i7)(cs()),cf=(0,aU.i7)(cu()),cg="string"!=typeof cp?(0,aU.AH)(cc(),cp):null,ch="string"!=typeof cf?(0,aU.AH)(cd(),cf):null,cm=(0,b.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{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]}})((0,sJ.A)(e=>{let{theme:t}=e,r=String(t.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",o=parseFloat(t.shape.borderRadius);return{display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:t.alpha(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(o).concat(r,"/").concat(Math.round(o/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:e=>{let{ownerState:t}=e;return t.hasChildren},style:{"& > *":{visibility:"hidden"}}},{props:e=>{let{ownerState:t}=e;return t.hasChildren&&!t.width},style:{maxWidth:"fit-content"}},{props:e=>{let{ownerState:t}=e;return t.hasChildren&&!t.height},style:{height:"auto"}},{props:{animation:"pulse"},style:cg||{animation:"".concat(cp," 2s ease-in-out 0.5s infinite")}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:"linear-gradient(\n 90deg,\n transparent,\n ".concat((t.vars||t).palette.action.hover,",\n transparent\n )"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:ch||{"&::after":{animation:"".concat(cf," 2s linear 0.5s infinite")}}}]}})),cb=a.forwardRef(function(e,t){let r=(0,s1.b)({props:e,name:"MuiSkeleton"}),{animation:o="pulse",className:n,component:l="span",height:i,style:a,variant:s="text",width:u,...c}=r,p={...r,animation:o,component:l,variant:s,hasChildren:!!c.children},f=(e=>{let{classes:t,variant:r,animation:o,hasChildren:n,width:l,height:i}=e;return(0,g.A)({root:["root",r,o,n&&"withChildren",n&&!l&&"fitContent",n&&!i&&"heightAuto"]},ca,t)})(p);return(0,B.jsx)(cm,{as:l,ref:t,className:(0,d.A)(f.root,n),ownerState:p,...c,style:{width:u,height:i,...a}})});var cv=r(86063),cw=r(28332),cC=r(6215);function cx(e){return(0,s9.Ay)("MuiToggleButton",e)}let cy=(0,a5.A)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),cA=a.createContext({}),cS=a.createContext(void 0),cR=(0,b.Ay)(cC.A,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["size".concat((0,s2.A)(r.size))]]}})((0,sJ.A)(e=>{let{theme:t}=e;return{...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:"1px solid ".concat((t.vars||t).palette.divider),color:(t.vars||t).palette.action.active,["&.".concat(cy.disabled)]:{color:(t.vars||t).palette.action.disabled,border:"1px solid ".concat((t.vars||t).palette.action.disabledBackgroun
68d)},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{["&.".concat(cy.selected)]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,"".concat((t.vars||t).palette.action.selectedOpacity," + ").concat((t.vars||t).palette.action.hoverOpacity)),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter((0,s0.A)()).map(e=>{let[r]=e;return{props:{color:r},style:{["&.".concat(cy.selected)]:{color:(t.vars||t).palette[r].main,backgroundColor:t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[r].main,"".concat((t.vars||t).palette.action.selectedOpacity," + ").concat((t.vars||t).palette.action.hoverOpacity)),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.selectedOpacity)}}}}}}),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}})),cM=a.forwardRef(function(e,t){var r;let{value:o,...n}=a.useContext(cA),l=a.useContext(cS),i=(0,eb.A)({...n,selected:(r=e.value,void 0!==o&&void 0!==r&&(Array.isArray(o)?o.includes(r):r===o))},e),s=(0,s1.b)({props:i,name:"MuiToggleButton"}),{children:u,className:c,color:p="standard",disabled:f=!1,disableFocusRipple:h=!1,fullWidth:m=!1,onChange:b,onClick:v,selected:w,size:C="medium",value:x,...y}=s,A={...s,color:p,disabled:f,disableFocusRipple:h,fullWidth:m,size:C},S=(e=>{let{classes:t,fullWidth:r,selected:o,disabled:n,size:l,color:i}=e,a={root:["root",o&&"selected",n&&"disabled",r&&"fullWidth","size".concat((0,s2.A)(l)),i]};return(0,g.A)(a,cx,t)})(A);return(0,B.jsx)(cR,{className:(0,d.A)(n.className,S.root,c,l||""),disabled:f,focusRipple:!h,ref:t,onClick:e=>{v&&(v(e,x),e.defaultPrevented)||b&&b(e,x)},onChange:b,value:x,ownerState:A,"aria-pressed":w,...y,children:u})});var cI=r(85330);let ck=["sortingOrder"],cP=["id","label","labelId","material","disabled","slotProps","onChange","onKeyDown","onOpen","onClose","size","style","fullWidth"],cE=["onRowsPerPageChange","material","disabled"],cT=["material"],cF=["autoFocus","label","fullWidth","slotProps","className","material"],cD=["material"],cO=["material"],cz=["material"],cH=["material"],cV=["material"],cj=["material"],cN=["material"],cL=["material"],c$=["material"],cB=["material","label","className"],cG=["material"],cW=["inert","iconStart","iconEnd","children","material"],cU=["slotProps","material"],c_=["id","multiple","freeSolo","options","getOptionLabel","isOptionEqualToValue","value","onChange","label","placeholder","slotProps","material"],cq=["key"],cK=["inputProps","InputProps","InputLabelProps"],cX=["slotProps","material"],cY=["material"],cQ=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement","material"],cZ=["native"],cJ=["children","value","active"],c0=["items","value","material"],c1=(0,b.Ay)(uV.A,{slot:"internal"})(({theme:e})=>({[`&.${uj.A.positionEnd} .${uz.A.sizeSmall}`]:{marginRight:e.spacing(-.75)}})),c2=(0,b.Ay)(uy.A,{slot:"internal",shouldForwardProp:e=>"fullWidth"!==e})(({theme:e})=>({gap:e.spacing(.5),margin:0,overflow:"hidden",[`& .${uA.A.label}`]:{fontSize:e.typography.pxToRem(14),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),c9=(0,b.Ay)(ut.A,{slot:"internal",shouldForwardProp:e=>"density"!==e})(({theme:e})=>({variants:[{props:{density:"compact"},style:{padding:e.spacing(.5)}}]})),c3=(0,b.Ay)(um,{slot:"internal"})({[`& .${ug.A.primary}`]:{overflowX:"clip",textOverflow:"ellipsis",maxWidth:"300px"}}),c5=(0,u.R)(function(e,t){let{id:r,label:o,labelId:n,material:l,disabled:a,slotProps:s,onChange:u,onKeyDown:d,onOpen:p,onClose:f,size:g,style:h,fullWidth:m}=e,b=(0,c.A)(e,cP),v=(0,iN.A)(),w=v.components?.MuiTextField?.defaultProps??{},C=g??w.size,x=w.variant??"outlined",y={PaperProps:{onKeyDown:d}};return f&&(y.onClose=f),(0,B.jsxs)(ux.A,{size:C,fullWidth:m,style:h,disabled:a,ref:t,children:[(0,B.jsx)(cl.A,{id:n,htmlFor:r,shrink:!0,variant:x,children:o}),(0,B.jsx)(uS.A,(0,i.A)({id:r,labelId:n,label:o,displayEmpty:!0,onChange:u,variant:x},b,{inputProps:s?.htmlInput,onOpen:p,MenuProps:y,size:C},l))]})}),c4=(0,b.Ay)(ce,{slot:"internal"})(({theme:e})=>({[`& .${u0.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${u0.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),c6=(0,u.R)(function(e,t){let{onRowsPerPageChange:r,material:o,disabled:n}
68=e,l=(0,c.A)(e,cE),s=a.useMemo(()=>{if(n)return{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}},[n]),u=(0,L.h)(),{estimatedRowCount:d}=(0,T.A)();return(0,B.jsx)(c4,(0,i.A)({component:"div",onRowsPerPageChange:(0,ea.A)(e=>{r?.(Number(e.target.value))}),labelRowsPerPage:u.current.getLocaleText("paginationRowsPerPage"),labelDisplayedRows:e=>u.current.getLocaleText("paginationDisplayedRows")((0,i.A)({},e,{estimated:d})),getItemAriaLabel:u.current.getLocaleText("paginationItemAriaLabel")},s,l,o,{ref:t}))}),c7=(0,u.R)(function(e,t){let{material:r}=e,o=(0,c.A)(e,cT);return(0,B.jsx)(ue,(0,i.A)({},o,r,{ref:t}))}),c8=(0,u.R)(function(e,t){let{autoFocus:r,label:o,fullWidth:n,slotProps:l,className:s,material:u}=e,f=(0,c.A)(e,cF),g=a.useRef(null),h=(0,p.A)(g,t),m=a.useRef(null);return(a.useEffect(()=>{if(r){let e=g.current?.querySelector("input");e?.focus({preventScroll:!0})}else!1===r&&m.current&&m.current.stop({})},[r]),o)?(0,B.jsx)(c2,{className:s,control:(0,B.jsx)(c9,(0,i.A)({},f,u,{inputProps:l?.htmlInput,ref:h,touchRippleRef:m})),label:o,fullWidth:n}):(0,B.jsx)(c9,(0,i.A)({},f,u,{className:(0,d.A)(s,u?.className),inputProps:l?.htmlInput,ref:h,touchRippleRef:m}))}),de=(0,u.R)(function(e,t){let{material:r}=e,o=(0,c.A)(e,cD);return(0,B.jsx)(uo.A,(0,i.A)({},o,r,{ref:t}))}),dt=(0,u.R)(function(e,t){let{material:r}=e,o=(0,c.A)(e,cO);return(0,B.jsx)(un.A,(0,i.A)({},o,r,{ref:t}))}),dr=(0,u.R)(function(e,t){let{material:r}=e,o=(0,c.A)(e,cz);return(0,B.jsx)(ua.A,(0,i.A)({},o,r,{ref:t}))}),dn=(0,u.R)(function(e,t){let{material:r}=e,o=(0,c.A)(e,cH);return(0,B.jsx)(uO.A,(0,i.A)({},o,r,{ref:t}))}),dl=(0,b.Ay)(cM,{slot:"internal"})(({theme:e})=>({gap:e.spacing(1),border:0})),di=(0,u.R)(function(e,t){let{material:r}=e,o=(0,c.A)(e,cV);return(0,B.jsx)(dl,(0,i.A)({size:"small",color:"primary"},o,r,{ref:t}))}),da=(0,u.R)(function(e,t){let{material:r}=e,o=(0,c.A)(e,cj);return(0,B.jsx)(ur.A,(0,i.A)({},o,r,{ref:t}))}),ds=(0,u.R)(function(e,t){let{material:r}=e,o=(0,c.A)(e,cN);return(0,B.jsx)(uH.A,(0,i.A)({},o,r,{ref:t}))}
68),du=(0,u.R)(function(e,t){let{material:r}=e,o=(0,c.A)(e,cL);return(0,B.jsx)(uN.A,(0,i.A)({},o,r,{ref:t}))}),dc=(0,u.R)(function(e,t){let{material:r}=e,o=(0,c.A)(e,c$);return(0,B.jsx)(cb,(0,i.A)({},o,r,{ref:t}))}),dd=(0,u.R)(function(e,t){let{material:r,label:o,className:n}=e,l=(0,c.A)(e,cB);return o?(0,B.jsx)(c2,{className:n,control:(0,B.jsx)(uD,(0,i.A)({},l,r,{ref:t})),label:o}):(0,B.jsx)(uD,(0,i.A)({},l,r,{className:n,ref:t}))}),dp=(0,u.R)(function(e,t){let{material:r}=e,o=(0,c.A)(e,cG);return(0,B.jsx)(ub.A,(0,i.A)({},o,r,{ref:t}))});function df(e,t=!0){if(!e)return;let{slotProps:r,material:o}=e,n=(0,c.A)(e,cX);for(let e in t&&(n.startAdornment&&(n.startAdornment=(0,B.jsx)(c1,{position:"start",children:n.startAdornment})),n.endAdornment&&(n.endAdornment=(0,B.jsx)(c1,{position:"end",children:n.endAdornment}))),o)Object.hasOwn(o,e)&&(n[e]=o[e]);return r?.htmlInput&&(n.inputProps?n.inputProps=(0,i.A)({},n.inputProps,r?.htmlInput):n.inputProps=r?.htmlInput),n}let dg=(0,u.R)(function(e,t){let{material:r}=e,o=(0,c.A)(e,cY);return(0,B.jsx)(uC.A,(0,i.A)({},o,r,{ref:t}))}),dh={"bottom-start":"top left","bottom-end":"top right"};function dm(e,t){return void 0===e.onClickAway?t:(0,B.jsx)(cr.x,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}function db(e,t){return void 0===e.focusTrap?t:(0,B.jsx)(ui.A,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:(0,B.jsx)("div",{tabIndex:-1,children:t})})}let dv=(0,b.Ay)(cv.A,{name:"MuiDataGrid",slot:"Tabs"})(({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`})),dw=(0,b.Ay)(cw.A,{name:"MuiDataGrid",slot:"Tab"})({flex:1,minWidth:"fit-content"}),dC=(0,b.Ay)("div",{name:"MuiDataGrid",slot:"TabPanel"})({flex:1,display:"flex",flexDirection:"column",overflow:"hidden"});function dx(e){let{children:t,active:r}=e,o=(0,c.A)(e,cJ);return(0,B.jsx)(dC,(0,i.A)({role:"tabpanel",style:{display:r?"flex":"none"}},o,{children:t}))}let dy={booleanCellTrueIcon:cI.qb,booleanCellFalseIcon:cI.yd,columnMenuIcon:cI.A_,openFilterButtonIcon:cI.Ui,filterPanelDeleteIcon:cI.yd,undoIcon:cI.an,redoIcon:cI.sH,columnFilteredIcon:cI.lj,columnSelectorIcon:cI.Gf,columnUnsortedIcon:function(e){let{sortingOrder:t}=e,r=(0,c.A)(e,ck),{slots:o}=(0,T.A)(),[n]=t,l="asc"===n?o.columnSortedAscendingIcon:o.columnSortedDescendingIcon;return l?(0,B.jsx)(l,(0,i.A)({},r)):null},columnSortedAscendingIcon:cI.ay,columnSortedDescendingIcon:cI.xC,columnResizeIcon:cI.r$,densityCompactIcon:cI.dc,densityStandardIcon:cI.Bn,densityComfortableIcon:cI.v$,exportIcon:cI.Ge,moreActionsIcon:cI.c8,treeDataCollapseIcon:cI.T5,treeDataExpandIcon:cI.fX,groupingCriteriaCollapseIcon:cI.T5,groupingCriteriaExpandIcon:cI.fX,detailPanelExpandIcon:cI.jt,detailPanelCollapseIcon:cI.yk,rowReorderIcon:cI.Cf,quickFilterIcon:cI.Kw,quickFilterClearIcon:cI.hR,columnMenuHideIcon:cI.j8,columnMenuSortAscendingIcon:cI.ay,columnMenuSortDescendingIcon:cI.xC,columnMenuUnsortIcon:null,columnMenuFilterIcon:cI.lj,columnMenuManageColumnsIcon:cI.jS,columnMenuClearIcon:cI.hR,loadIcon:cI.e2,filterPanelAddIcon:cI.jt,filterPanelRemoveAllIcon:cI.aC,columnReorderIcon:cI.Cf,menuItemCheckIcon:cI.qb,longTextCellExpandIcon:cI.rf,longTextCellCollapseIcon:cI.yX},dA=(0,i.A)({},{baseAutocomplete:function(e){let t=(0,T.A)(),{id:r,multiple:o,freeSolo:n,options:l,getOptionLabel:a,isOptionEqualToValue:s,value:u,onChange:d,label:p,placeholder:f,slotProps:g,material:h}=e,m=(0,c.A)(e,c_);return(0,B.jsx)(sY.A,(0,i.A)({id:r,multiple:o,freeSolo:n,options:l,getOptionLabel:a,isOptionEqualToValue:s,value:u,onChange:d,renderTags:(e,t)=>e.map((e,r)=>{let o=t({index:r}),{key:n}=o,l=(0,c.A)(o,cq);return(0,B.jsx)(ur.A,(0,i.A)({variant:"outlined",size:"small",label:"string"==typeof e?e:a?.(e)},l),n)}),renderInput:e=>{let{inputProps:r,InputProps:o,InputLabelProps:n}=e,l=(0,c.A)(e,cK);return(0,B.jsx)(uw.A,(0,i.A)({},l,{label:p,placeholder:f,inputProps:r,InputProps:df(o,!1),InputLabelProps:(0,i.A)({shrink:!0},n)},g?.textField,t.slotProps?.baseTextField))}},m,h))},baseBadge:c7,baseCheckbox:c8,baseChip:da,baseCircularProgress:de,baseDivider:dt,baseInput:function(e){return(0,B.jsx)(ul.Ay,(0,i.A)({},df(e)))},baseTextarea:dg,baseLinearProgress:dr,baseMenuList:dp,baseMenuItem:function(e){let{inert:t,iconStart:r,iconEnd:o,children:n,material:l}=e,s=(0,c.A)(e,cW);return t&&(s.disableRipple=!0),a.createElement(uv.A,(0,i.A)({},s,l),[r&&(0,B.jsx)(ud,{children:r},"1"),(0,B.jsx)(c3,{children:n},"2"),o&&(0,B.jsx)(ud,{children:o},"3")])},baseTextField:function(e){let{slotProps:t,material:r}=e,o=(0,c.A)(e,cU),n=(0,iN.A)(),l=n.components?.MuiTextField?.defaultProps??{},a=o.variant??l.variant??"outlined",s=o.size??l.size;return(0,B.jsx)(uw.A,(0,i.A)({variant:a,size:s},o,r,{inputProps:t?.htmlInput,InputProps:df(t?.input),InputLabelProps:(0,i.A)({shrink:!0},t?.inputLabel)}))},baseButton:dn,baseIconButton:ds,baseToggleButton:di,baseTooltip:du,baseTabs:function(e){let{items:t,value:r,material:o}=e,n=(0,c.A)(e,c0),l=(0,eT.A)(),s=`${l}-tab-${r}`,u=`${l}-tabpanel-${r}`;return(0,B.jsxs)(a.Fragment,{children:[(0,B.jsx)(dv,(0,i.A)({},n,{value:r,variant:"scrollable",scrollButtons:"auto"},o,{children:t.map(e=>(0,B.jsx)(dw,{value:e.value,label:e.label,id:s,"aria-controls":u},e.value))})),t.map(e=>(0,B.jsx)(dx,{value:e.value,active:r===e.value,id:u,"aria-labelledby":s,children:e.children},e.value))]})},basePagination:c6,basePopper:function(e){var t;let r,{open:o,children:n,className:l,flip:s,onExited:u,onDidShow:d,onDidHide:p,id:f,target:g,transition:h,placement:m,material:b}
68=e,v=(0,c.A)(e,cQ),w=a.useMemo(()=>{let e=[{name:"preventOverflow",options:{padding:8}}];return s&&e.push({name:"flip",enabled:!0}),(d||p)&&e.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{d?.()},effect:()=>()=>{p?.()}}),e},[s,d,p]);return r=h?t=>{var r;let o;return db(r=e,dm(r,(0,B.jsx)(co.A,(0,i.A)({},t.TransitionProps,{style:{transformOrigin:dh[t.placement]},onExited:(o=t.TransitionProps?.onExited,e=>{o&&o(),u&&u(e)}),children:(0,B.jsx)(cn.A,{children:n})}))))}:db(t=e,dm(t,n)),(0,B.jsx)(ct.A,(0,i.A)({id:f,className:l,open:o,anchorEl:g,transition:h,placement:m,modifiers:w},v,b,{children:r}))},baseSelect:c5,baseSelectOption:function(e){let{native:t}=e,r=(0,c.A)(e,cZ);return t?(0,B.jsx)("option",(0,i.A)({},r)):(0,B.jsx)(uv.A,(0,i.A)({},r))},baseSkeleton:dc,baseSwitch:dd},dy),dS=(0,b.Ay)("div",{slot:"internal",shouldForwardProp:void 0})({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});var dR=r(78517);let dM=(0,i.A)({},dA,{cell:sg,skeletonCell:iq,columnHeaderFilterIconButton:function(e){return e.counter?(0,B.jsx)(iQ,(0,i.A)({},e)):null},columnHeaderSortIcon:i1,columnMenu:sK,columnHeaders:sH,detailPanels:function(e){return null},bottomContainer:function(e){let t=(0,g.A)({root:["bottomContainer"]},v.B9,{});return(0,B.jsx)(dS,(0,i.A)({},e,{className:(0,d.A)(t.root,v.xV["container--bottom"]),role:"presentation"}))},footer:i7,footerRowCount:at,toolbar:dR.OQ,pinnedRows:function(e){return null},loadingOverlay:ab,noResultsOverlay:sX,noRowsOverlay:av,noColumnsOverlay:aw,pagination:function(){let e=(0,L.h)(),t=(0,T.A)(),r=(0,C.Nc)(e,ne),o=(0,C.Nc)(e,nt),n=(0,C.Nc)(e,nl),{paginationMode:l,loading:s}=t,u=-1===o&&"server"===l&&s,c=a.useMemo(()=>Math.max(0,n-1),[n]),d=a.useMemo(()=>-1===o||r.page<=c?r.page:c,[c,r.page,o]),p=a.useCallback(t=>{e.current.setPageSize(t)},[e]),f=a.useCallback((t,r)=>{e.current.setPage(r)},[e]),g=(e=>{for(let r=0;r<t.pageSizeOptions.length;r+=1){let o=t.pageSizeOptions[r];if("number"==typeof o){if(o===e)return!0}else if(o.value===e)return!0}return!1})(r.pageSize)?t.pageSizeOptions:[];return(0,B.jsx)(aC,(0,i.A)({as:t.slots.basePagination,count:o,page:d,rowsPerPageOptions:g,rowsPerPage:r.pageSize,onPageChange:f,onRowsPerPageChange:p,disabled:u},t.slotProps?.basePagination))},filterPanel:aB,columnsPanel:function(e){let t=(0,T.A)();return(0,B.jsx)(aP,(0,i.A)({},e,{children:(0,B.jsx)(t.slots.columnsManagement,(0,i.A)({},t.slotProps?.columnsManagement))}))},columnsManagement:function(e){let t=(0,L.h)(),r=a.useRef(null),o=(0,C.Nc)(t,V.FX),n=(0,C.Nc)(t,V.FY),l=(0,T.A)(),[s,u]=a.useState(""),c=(e=>{let{classes:t}=e;return(0,g.A)({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},v.B9,t)})(l),d=(0,C.Nc)(t,V.OV),p=(0,C.Nc)(t,rS),f=(0,C.Nc)(t,rM),h=a.useMemo(()=>p?Array.from(f.values()):d,[p,f,d]),{sort:m,searchPredicate:b=aW,autoFocusSearchField:w=!0,disableShowHideToggle:x=!1,disableResetButton:y=!1,toggleAllMode:A="all",getTogglableColumns:S,searchInputProps:R,searchDebounceMs:M=l.columnFilterDebounceMs}=e,I=a.useMemo(()=>(0,lb.A)(e=>{u(e)},M??150),[M]),k=a.useMemo(()=>((e,t)=>{let r=new Set(Object.keys(e).filter(t=>!1===e[t])),o=new Set(Object.keys(t).filter(e=>!1===t[e]));if(r.size!==o.size)return!1;let n=!0;return r.forEach(e=>{o.has(e)||(n=!1)}),n})(n,o),[n,o]),P=a.useMemo(()=>{switch(m){case"asc":return[...h].sort((e,t)=>aQ.compare(e.headerName||e.field,t.headerName||t.field));case"desc":return[...h].sort((e,t)=>-aQ.compare(e.headerName||e.field,t.headerName||t.field));default:return h}},[h,m]),E=e=>{let{name:r}=e.target;t.current.setColumnVisibility(r,!1===n[r])},F=a.useMemo(()=>{let e=S?S(P):null,t=e?P.filter(({field:t})=>e.includes(t)):P;return s?t.filter(e=>b(e,s.toLowerCase())):t},[P,s,b,S]),D=a.useCallback(e=>{let r=(0,V.FY)(t),o=(0,i.A)({},r),n=S?S(h):null;return("filteredOnly"===A?F:h).forEach(t=>{t.hideable&&(null==n||n.includes(t.field))&&(e?delete o[t.field]:o[t.field]=!1)}),t.current.setColumnVisibilityModel(o)},[t,h,S,A,F]),O=a.useCallback(e=>{I(e.target.value)},[I]),z=a.useMemo(()=>F.filter(e=>e.hideable),[F]),H=a.useMemo(()=>z.every(e=>null==n[e.field]||!1!==n[e.field]),[n,z]),j=a.useMemo(()=>z.every(e=>!1===n[e.field]),[n,z]),N=a.useRef(null);a.useEffect(()=>{w?r.current?.focus():N.current&&"function"==typeof N.current.focus&&N.current.focus()},[w]);let $=!1,G=a.useCallback(()=>{u(""),r.current&&(r.current.value="",r.current.focus())},[]);return(0,B.jsxs)(a.Fragment,{children:[(0,B.jsx)(a0,{className:c.header,ownerState:l,children:(0,B.jsx)(a1,(0,i.A)({as:l.slots.baseTextField,ownerState:l,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:r,className:c.searchInput,onChange:O,size:"small",type:"search",slotProps:{input:{startAdornment:(0,B.jsx)(l.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:(0,B.jsx)(l.slots.baseIconButton,(0,i.A)({size:"small","aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),style:s?{visibility:"visible"}:{visibility:"hidden"},tabIndex:-1,onClick:G,edge:"end"},l.slotProps?.baseIconButton,{children:(0,B.jsx)(l.slots.quickFilterClearIcon,{fontSize:"small"})}))},htmlInput:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")}},autoComplete:"off",fullWidth:!0},l.slotProps?.baseTextField,R))}),(0,B.jsx)(aJ,{ownerState:l,children:(0,B.jsxs)(aZ,{className:c.root,ownerState:l,children:[F.map(e=>(0,B.jsx)(a3,(0,i.A)({as:l.slots.baseCheckbox,className:c.row,disabled:!1===e.hideable||p,checked:!1!==n[e.field],onChange:E,name:e.field,inputRef:!1===$&&!1!==e.hideable&&($=!0,1)?N:void 0,label:e.headerName||e.field,density:"compact",fullWidth:!0},l.slotProps?.baseCheckbox),e.field)),0===F.length&&(0,B.jsx)(a9,{ownerState:l,children:t.current.getLocaleText("columnsManagementNoColumns")})]})}),x&&y?null:(0,B.jsxs)(a2,{ownerState:l,className:c.footer,children:[x?(0,B.jsx)("span",{}):(0,B.jsx)(l.slots.baseCheckbox,(0,i.A)({disabled:0===z.length||p,checked:H,indeterminate:!H&&!j,onChange:()=>D(!H),name:t.current.getLocaleText("columnsManagementShowHideAllText"),label:t.current.getLocaleText("columnsManagementShowHideAllText"),density:"compact"},l.slotProps?.baseCheckbox)),y?null:(0,B.jsx)(l.slots.baseButton,(0,i.A)({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:k||p},l.slotProps?.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]})]})},panel:se,row:sd}),dI={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",listView:!1}
68,dk=new TextEncoder,dP=2048,dE=new ArrayBuffer(2048),dT=new Uint8Array(dE),dF=new Int32Array(dE);function dD(e,t){return e<<t|e>>>32-t}function dO(e){return`rgba(from ${e} r g b / 1)`}function dz(e){if(!e)return;let t="number"==typeof e.fontSize?`${e.fontSize}px`:e.fontSize;return`${e.fontWeight} ${t} / ${e.lineHeight} ${e.fontFamily}`}class dH{maxListeners=20;warnOnce=!1;events={};on(e,t,r={}){let o=this.events[e];o||(o={highPriority:new Map,regular:new Map},this.events[e]=o),r.isFirst?o.highPriority.set(t,!0):o.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){let r=this.events[e];if(!r)return;let o=Array.from(r.highPriority.keys()),n=Array.from(r.regular.keys());for(let e=o.length-1;e>=0;e-=1){let n=o[e];r.highPriority.has(n)&&n.apply(this,t)}for(let e=0;e<n.length;e+=1){let o=n[e];r.regular.has(o)&&o.apply(this,t)}}once(e,t){let r=this;this.on(e,function o(...n){r.removeListener(e,o),t.apply(r,n)})}}let dV=Symbol("mui.api_private"),dj=0,dN={hooks:{useCSSVariables:function(){let e=(0,iN.A)();return a.useMemo(()=>({id:function(e){let t=2*e.length;t>dP&&(dT=new Uint8Array(dE=new ArrayBuffer(dP=t+(4-t%4))),dF=new Int32Array(dE));let r=0|dk.encodeInto(e,dT).written,o=0,n=(0+r|0)+0x165667b1|0;if(r<16)for(;(o+3|0)<r;o=o+4|0)n=Math.imul(0|dD(n+Math.imul(0|dF[o],0xc2b2ae3d)|0,17),0x27d4eb2f);else{let e=0x24234428,t=-0x7a143589,l=0,i=0x61c8864f;for(;(o+15|0)<r;o=o+16|0)e=Math.imul(0|dD(e+Math.imul(0|dF[o+0|0],0x85ebca77)|0,13),0x9e3779b1),t=Math.imul(0|dD(t+Math.imul(0|dF[o+4|0],0x85ebca77)|0,13),0x9e3779b1),l=Math.imul(0|dD(l+Math.imul(0|dF[o+8|0],0x85ebca77)|0,13),0x9e3779b1),i=Math.imul(0|dD(i+Math.imul(0|dF[o+12|0],0x85ebca77)|0,13),0x9e3779b1);for(n=(((dD(e,1)|0+dD(t,7))+dD(l,12)|0)+dD(i,18)|0)+r|0;(o+3|0)<r;o=o+4|0)n=Math.imul(0|dD(n+Math.imul(0|dF[o],0xc2b2ae3d)|0,17),0x27d4eb2f)}for(;o<r;o=o+1|0)n=Math.imul(0|dD(n+Math.imul(0|dT[o],0x165667b1)|0,11),0x9e3779b1);return(((n=Math.imul((n=Math.imul(n^n>>>15,0x85ebca77))^n>>>13,0xc2b2ae3d))^n>>>16)>>>0).toString()}(function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("undefined"!=typeof window&&r===window||"undefined"!=typeof document&&r===document)return r.toString();if(null!==r&&"object"==typeof r){if(a.isValidElement(r)||t.has(r))return null;t.add(r)}return r})}(e)),variables:function(e){var t,r;let o=(t=e).vars?t.vars.palette.TableCell.border:"light"===t.palette.mode?(0,sl.a)((0,sl.X4)(t.palette.divider,1),.88):(0,sl.e$)((0,sl.X4)(t.palette.divider,1),.68),n=(e.vars||e).palette.DataGrid,l=(e.vars||e).palette.background.paper,i=n?.bg??("dark"===e.palette.mode?k(`color-mix(in srgb, ${l} 95%, #fff)`,l):l),a=n?.headerBg??i,s=n?.pinnedBg??i,u=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:(0,sl.X4)(e.palette.background.default,e.palette.action.disabledOpacity),c="dark"===e.palette.mode?k(`color-mix(in srgb, ${l} 90%, #fff)`,l):l,d=e.vars?`rgb(${e.vars.palette.primary.mainChannel})`:e.palette.primary.main,p=(r=e).vars?r.vars.shape.borderRadius:"number"==typeof r.shape.borderRadius?`${r.shape.borderRadius}px`:r.shape.borderRadius,f=e.vars?.font?.body2??dz(e.typography.body2),g=e.vars?.font?.caption??dz(e.typography.caption),h=e.vars?.font?.body1??dz(e.typography.body1),m=w.f.keys;return{[m.spacingUnit]:e.vars?e.vars.spacing??e.spacing(1):e.spacing(1),[m.colors.border.base]:o,[m.colors.background.base]:i,[m.colors.background.overlay]:c,[m.colors.background.backdrop]:u,[m.colors.foreground.base]:(e.vars||e).palette.text.primary,[m.colors.foreground.muted]:(e.vars||e).palette.text.secondary,[m.colors.foreground.accent]:(e.vars||e).palette.primary.dark,[m.colors.foreground.disabled]:(e.vars||e).palette.text.disabled,[m.colors.foreground.error]:(e.vars||e).palette.error.dark,[m.colors.interactive.hover]:I?(e.vars||e).palette.action.hover:(e.vars||e).palette.grey["dark"===e.palette.mode?800:100],[m.colors.interactive.hoverOpacity]:(e.vars||e).palette.action.hoverOpacity,[m.colors.interactive.focus]:dO((e.vars||e).palette.primary.main),[m.colors.interactive.focusOpacity]:(e.vars||e).palette.action.focusOpacity,[m.colors.interactive.disabled]:dO((e.vars||e).palette.action.disabled),[m.colors.interactive.disabledOpacity]:(e.vars||e).palette.action.disabledOpacity,[m.colors.interactive.selected]:I?d:(e.vars||e).palette.grey["dark"===e.palette.mode?700:200],[m.colors.interactive.selectedOpacity]:(e.vars||e).palette.action.selectedOpacity,[m.header.background.base]:a,[m.cell.background.pinned]:s,[m.radius.base]:p,[m.typography.fontFamily.base]:e.typography.fontFamily,[m.typography.fontWeight.light]:e.typography.fontWeightLight,[m.typography.fontWeight.regular]:e.typography.fontWeightRegular,[m.typography.fontWeight.medium]:e.typography.fontWeightMedium,[m.typography.fontWeight.bold]:e.typography.fontWeightBold,[m.typography.font.body]:f,[m.typography.font.small]:g,[m.typography.font.large]:h,[m.transitions.easing.easeIn]:e.transitions.easing.easeIn,[m.transitions.easing.easeOut]:e.transitions.easing.easeOut,[m.transitions.easing.easeInOut]:e.transitions.easing.easeInOut,[m.transitions.duration.short]:`${e.transitions.duration.shorter}ms`,[m.transitions.duration.base]:`${e.transitions.duration.short}ms`,[m.transitions.duration.long]:`${e.transitions.duration.standard}
68ms`,[m.shadows.base]:(e.vars||e).shadows[2],[m.shadows.overlay]:(e.vars||e).shadows[8],[m.zIndex.panel]:(e.vars||e).zIndex.modal,[m.zIndex.menu]:(e.vars||e).zIndex.modal}}(e)}),[e])},useGridAriaAttributes:()=>{let e=y(),t=(0,T.A)(),r=(0,C.Nc)(e,V.iv),o=(0,C.Nc)(e,ry.O7),n=(0,C.Nc)(e,rs),l=(0,C.Nc)(e,ei.OQ),i=t["aria-label"],a=t["aria-labelledby"];return{role:"grid","aria-label":i||a||!t.label?i:t.label,"aria-labelledby":a,"aria-colcount":r.length,"aria-rowcount":n+1+l+o,"aria-multiselectable":n$(t)}},useGridRowAriaAttributes:()=>{let e=y(),t=(0,C.Nc)(e,rs);return a.useCallback((r,o)=>{let n={};return n["aria-rowindex"]=o+t+2,r&&e.current.isRowSelectable(r.id)&&(n["aria-selected"]=e.current.isRowSelected(r.id)),n},[e,t])},useGridRowsOverridableMethods:e=>{let t=a.useCallback((t,r,o)=>{let n,l=(0,ei.Qu)(e,t),a=(0,ei.Qu)(e,r);if(!l)throw Error(`MUI X: No row with id #${t} found.`);if(!a)throw Error(`MUI X: No row with id #${r} found.`);if("leaf"!==l.type)throw Error("MUI X: The row reordering does not support reordering of footer or grouping rows.");if("inside"===o)throw Error("MUI X: The 'inside' position is only supported for tree data. Use 'above' or 'below' for flat data.");let s=(0,ry._J)(e),u=s[r];if(void 0===u)throw Error(`MUI X: Target row with id #${r} not found in current view.`);let c=s[t];if(void 0===c)throw Error(`MUI X: Source row with id #${t} not found in current view.`);(n="up"==(u<c?"up":"down")?"above"===o?u:u+1:"above"===o?u-1:u)!==c&&(e.current.setState(t=>{let r=(0,ei.qj)(e)[tl.OL],o=[...r.children];return o.splice(n,0,o.splice(c,1)[0]),(0,i.A)({},t,{rows:(0,i.A)({},t.rows,{tree:(0,i.A)({},t.rows.tree,{[tl.OL]:(0,i.A)({},r,{children:o})})})})}),e.current.publishEvent("rowsSet"))},[e]);return{setRowIndex:a.useCallback((t,r)=>{let o=(0,ei.Qu)(e,t);if(!o)throw Error(`MUI X: No row with id #${t} found.`);if("leaf"!==o.type)throw Error("MUI X: The row reordering does not support reordering of footer or grouping rows.");e.current.setState(o=>{let n=(0,ei.qj)(e)[tl.OL],l=n.children,a=l.findIndex(e=>e===t);if(-1===a||a===r)return o;let s=[...l];return s.splice(r,0,s.splice(a,1)[0]),(0,i.A)({},o,{rows:(0,i.A)({},o.rows,{tree:(0,i.A)({},o.rows.tree,{[tl.OL]:(0,i.A)({},n,{children:s})})})})}),e.current.publishEvent("rowsSet")},[e]),setRowPosition:t}},useGridParamsOverridableMethods:e=>{let t=a.useCallback((t,r)=>{let o=e.current.getColumn(r),n=e.current.getRow(t);if(!n)throw Error(`No row with id #${t} found`);return o&&o.valueGetter?o.valueGetter(n[o.field],n,o,e):n[r]},[e]),r=a.useCallback((t,r)=>(0,tl.e$)(t,r,e),[e]),o=a.useCallback((t,o)=>{let n=r(t,o);return o&&o.valueFormatter?o.valueFormatter(n,t,o,e):n},[e,r]);return{getCellValue:t,getRowValue:r,getRowFormattedValue:o}},useIsCellEditable:()=>a.useCallback(e=>!(0,tl.nF)(e.rowNode),[]),useCellAggregationResult:()=>null,useFilterValueGetter:e=>e.current.getRowValue}},dL=function(e,t){var r,n,l,s,u,d,p,f;let h=(e=>{let t=(0,iN.A)(),r=a.useMemo(()=>(0,iL.A)({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),o=a.useMemo(()=>(0,i.A)({},i$,r.localeText),[r.localeText]),n=a.useMemo(()=>(function({defaultSlots:e,slots:t}){if(!t||0===Object.keys(t).length)return e;let r=(0,i.A)({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&(r[e]=t[e])}),r})({defaultSlots:dM,slots:r.slots}),[r.slots]),l=a.useMemo(()=>Object.keys(nI).reduce((e,t)=>(e[t]=r[t]??nI[t],e),{}),[r]);return a.useMemo(()=>(0,i.A)({},r,l,{localeText:o,slots:n},(0,i.A)({},dI,r.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{})),[r,o,n,l])})(e),m=function(e,t){var r;let o=a.useRef(null),n=a.useRef(null);n.current||(n.current=function(e){let t=e.current?.[dV];if(t)return t;let r={},o={state:r,store:oX.create(r),instanceId:{id:dj}};return dj+=1,o.getPublicApi=()=>e.current,o.register=(t,r)=>{Object.keys(r).forEach(n=>{let l=r[n],i=o[n];if(i?.spying===!0?i.target=l:o[n]=l,"public"===t){let t=e.current,r=t[n];r?.spying===!0?r.target=l:t[n]=l}})},o.register("private",{caches:{},eventManager:new dH}),o}(o)),o.current||(o.current={get state(){return r.current.state},get store(){return r.current.store},get instanceId(){return r.current.instanceId},[dV]:(r=n).current});let l=a.useCallback((...e)=>{let[r,o,l={}]=e;if(l.defaultMuiPrevented=!1,void 0!==l.isPropagationStopped&&l.isPropagationStopped())return;let i=t.signature===o3.DataGridPro||t.signature===o3.DataGridPremium?{api:n.current.getPublicApi()}:{};n.current.eventManager.emit(r,o,l,i)},[n,t.signature]),i=a.useCallback((e,t,r)=>{n.current.eventManager.on(e,t,r);let o=n.current;return()=>{o.eventManager.removeListener(e,t)}},[n]);return nk(n,{subscribeEvent:i,publishEvent:l},"public"),e&&!e.current?.state&&(e.current=o.current),a.useImperativeHandle(e,()=>o.current,[o]),a.useEffect(()=>{let e=n.current;return()=>{e.publishEvent("unmount")}},[n]),n}(h.apiRef,h);return r=m,n=h,(e=>{let t=a.useRef(null),r=a.useRef(null),o=a.useRef(null),n=a.useRef(null),l=a.useRef(null),i=a.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:r,virtualScrollerRef:o,virtualScrollbarVerticalRef:n,virtualScrollbarHorizontalRef:l,columnHeadersContainerRef:i})})(r),((e,t)=>{let r=a.useRef(!0);a.useEffect(()=>{if(r.current){r.current=!1;return}e.current.setState(e=>(0,i.A)({},e,{props:{listView:t.listView,getRowId:t.getRowId,isCellEditable:t.isCellEditable,isRowSelectable:t.isRowSelectable,dataSource:t.dataSource}}))},[e,t.listView,t.getRowId,t.isCellEditable,t.isRowSelectable,t.dataSource])})(r,n),(e=>{let t=(0,tN.I)();void 0===e.current.state.isRtl&&(e.current.state.isRtl=t);let r=a.useRef(!0);a.useEffect(()=>{r.current?r.current=!1:e.current.setState(e=>(0,i.A)({},e,{isRtl:t}))},[e,t])})(r),l=r,s=n,nk(l,{getLogger:a.useCallback(e=>nK?nZ(e,"debug",s.logger):s.logLevel?nZ(e,s.logLevel.toString(),s.logger):nY,[s.logLevel,s.logger])}
68,"private"),(e=>{let t=a.useRef({}),r=a.useCallback(e=>{t.current[e.stateId]=e},[]),o=a.useCallback((r,o)=>{let n;if(n="function"==typeof r?r(e.current.state):r,e.current.state===n)return!1;let l={current:{state:n}},i=!1,a=[];if(Object.keys(t.current).forEach(r=>{let o=t.current[r],n=o.stateSelector(e),s=o.stateSelector(l);s!==n&&(a.push({stateId:o.stateId,hasPropChanged:s!==o.propModel}),void 0!==o.propModel&&s!==o.propModel&&(i=!0))}),a.length>1)throw Error(`You're not allowed to update several sub-state in one transaction. You already updated ${a[0].stateId}, therefore, you're not allowed to update ${a.map(e=>e.stateId).join(", ")} in the same transaction.`);if(i||(e.current.state=n,e.current.publishEvent("stateChange",n),e.current.store.update(n)),1===a.length){let{stateId:r,hasPropChanged:n}=a[0],s=t.current[r],u=s.stateSelector(l);s.propOnChange&&n&&s.propOnChange(u,{reason:o,api:e.current}),i||e.current.publishEvent(s.changeEvent,u,{reason:o})}return!i},[e]),n=a.useCallback((t,r,o)=>e.current.setState(e=>(0,i.A)({},e,{[t]:r(e[t])}),o),[e]);nk(e,{setState:o},"public"),nk(e,{updateControlState:n,registerControlState:r},"private")})(r),(e=>{let t=a.useRef({}),r=a.useRef(!1),o=a.useCallback(e=>{!r.current&&e&&(r.current=!0,Object.values(e.appliers).forEach(e=>{e()}),r.current=!1)},[]),n=a.useCallback((e,r,o)=>{t.current[e]||(t.current[e]={processors:new Map,processorsAsArray:[],appliers:{},processorsUpdated:!1});let n=t.current[e];return n.processors.get(r)!==o&&(n.processors.set(r,o),n.processorsAsArray=Array.from(t.current[e].processors.values()).filter(e=>null!==e),n.processorsUpdated=!0),()=>{t.current[e].processors.set(r,null),t.current[e].processorsAsArray=Array.from(t.current[e].processors.values()).filter(e=>null!==e)}},[]),l=a.useCallback((e,r,o)=>(t.current[e]||(t.current[e]={processors:new Map,processorsAsArray:[],appliers:{},processorsUpdated:!1}),t.current[e].appliers[r]=o,()=>{let o=t.current[e].appliers,n=(0,c.A)(o,[r].map(n0));t.current[e].appliers=n}),[]),i=a.useCallback(e=>{o(t.current[e])},[o]),s=a.useCallback(()=>{for(let e in t.current){if(!Object.prototype.hasOwnProperty.call(t.current,e))continue;let r=t.current[e];r.processorsUpdated&&(r.processorsUpdated=!1,o(r))}},[o]),u=a.useCallback((...e)=>{let[r,o,n]=e;if(!t.current[r])return o;let l=t.current[r].processorsAsArray,i=o;for(let e=0;e<l.length;e+=1)i=l[e](i,n);return i},[]);nk(e,{registerPipeProcessor:n,registerPipeApplier:l,requestPipeProcessorsApplication:i,runAppliersForPendingProcessors:s},"private"),nk(e,{unstable_applyPipeProcessors:u},"public")})(r),(e=>{let t=a.useRef(new Map),r=a.useRef({}),o=a.useCallback((t,o,n)=>{let l=()=>{let e=r.current[o],n=(0,c.A)(e,[t].map(n0));r.current[o]=n};r.current[o]||(r.current[o]={});let i=r.current[o],a=i[t];return i[t]=n,a&&a!==n&&t===e.current.getActiveStrategy(n9[o])&&e.current.publishEvent("activeStrategyProcessorChange",o),l},[e]),n=a.useCallback((t,o)=>{let n=e.current.getActiveStrategy(n9[t]);if(null==n)throw Error("Can't apply a strategy processor before defining an active strategy");let l=r.current[t];if(!l||!l[n])throw Error(`No processor found for processor "${t}" on strategy "${n}"`);return(0,l[n])(o)},[e]),l=a.useCallback(e=>{let r=Array.from(t.current.entries()).find(([,t])=>t.group===e&&t.isAvailable());return r?.[0]??n2},[]),i=a.useCallback((r,o,n)=>{t.current.set(o,{group:r,isAvailable:n}),e.current.publishEvent("strategyAvailabilityChange")},[e]);nk(e,{registerStrategyProcessor:o,applyStrategyProcessor:n,getActiveStrategy:l,setStrategyAvailability:i},"private")})(r),((e,t)=>{let r=a.useCallback(e=>{if(null==t.localeText[e])throw Error(`Missing translation for key ${e}.`);return t.localeText[e]},[t.localeText]);e.current.register("public",{getLocaleText:r})})(r,n),r.current.register("private",{rootProps:n}),((e,t)=>{let r=(e=>{let{classes:t}=e;return a.useMemo(()=>(0,g.A)({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},v.B9,t),[t])})({classes:t.classes}),o=a.useCallback(o=>{let n=(0,i.A)({},lo,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,a=null!=o.lookup[lr];return l&&!a?(o.lookup[lr]=n,o.orderedFields=[lr,...o.orderedFields]):!l&&a?(delete o.lookup[lr],o.orderedFields=o.orderedFields.filter(e=>e!==lr)):l&&a&&(o.lookup[lr]=(0,i.A)({},n,o.lookup[lr]),t.columns.some(e=>e.field===lr)||(o.orderedFields=[lr,...o.orderedFields.filter(e=>e!==lr)])),o},[e,r,t.columns,t.checkboxSelection]);lc(e,"hydrateColumns",o)})(m,h),lw(m,n2,"rowTreeCreation",lJ),n5(n3,m,h),n5(l9,m,h),n5(lp,m,h),n5(lZ,m,h),n5(lj,m,h),n5(lY,m,h),n5(lR,m,h),n5(l3,m,h),n5(lN,m,h),n5(lC,m,h),n5(iM,m,h),n5(lf,m,h),n5(iC,m,h),n5(lu,m,h),n5(is,m,h),n5(ic,m,h),n5(l7,m,h),n5(nE,m,h),n5(iI,m,h),((e,t)=>{let r=n4(e,"useGridKeyboardNavigation"),o=(0,tN.I)(),n=a.useCallback(()=>lV(e),[e]),l="DataGrid"!==t.signature&&t.headerFilters,i=a.useCallback((t,o,n="left",l="up")=>{let i=(0,ry.em)(e),a=e.current.unstable_getCellColSpanInfo(o,t);a&&a.spannedByColSpan&&("left"===n?t=a.leftVisibleCellIndex:"right"===n&&(t=a.rightVisibleCellIndex));let s=(0,V.TI)(e)[t],u=function(e,t,r,o){let n=o0.selectors.hiddenCells(e.current.virtualizer.store.state);if(!n[t]?.[r])return t;let l=(0,ry.qA)(e),i=l.indexOf(t)+("down"===o?1:-1);for(;i>=0&&i<l.length;){let e=l[i];if(!n[e]?.[r])return e;i+="down"===o?1:-1}return t}(e,o,t,l),c=i.findIndex(e=>e.id===u);r.debug(`Navigating to cell row ${c}, col ${t}`),e.current.scrollToIndexes({colIndex:t,rowIndex:c}),e.current.setCellFocus(u,s)},[e,r]),s=a.useCallback((t,o)=>{r.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});let n=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(n,o)},[e,r]),u=a.useCallback((t,o)=>{r.debug(`Navigating to header filter col ${t}`),e.current.scrollToIndexes({colIndex:t});let n=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFilterFocus(n,o)},[e,r]),c=a.useCallback((t,o,n)=>{r.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});let{field:l}=e.current.getVisibleColumns()[t];e.current.setColumnGroupHeaderFocus(l,o,n)},[e,r]),d=a.useCallback(e=>n()[e]?.id,[n]),p=a.useCallback((r,a)=>{let p=a.currentTarget.querySelector(`.${v.xV.columnHeaderTitleContainerContent}`);if(p&&p.contains(a.target)&&r.field!==lo.field||!(0,la.q9)(a.key)&&"Tab"!==a.key&&"Enter"!==a.key||"Tab"===a.key&&("none"===t.tabNavigation||"content"===t.tabNavigation&&a.shiftKey))return;let f=n(),g=e.current.getViewportPageSize(),h=r.field?e.current.getColumnIndex(r.field):0,m=f.length>0?0:null,b=f.length>0?f.length-1:null,w=Math.max(0,(0,V.iv)(e).length-1),C=rs(e),x=!0;
68if("Tab"===a.key&&"content"===t.tabNavigation&&!a.shiftKey){null!==m&&(i(0,d(m)),a.preventDefault());return}switch(a.key){case"ArrowDown":l?u(h,a):null!==m&&i(h,d(m));break;case"ArrowRight":{let e=lH({currentColIndex:h,firstColIndex:0,lastColIndex:w,isRtl:o});null!==e&&s(e,a);break}case"ArrowLeft":{let e=lz({currentColIndex:h,firstColIndex:0,lastColIndex:w,isRtl:o});null!==e&&s(e,a);break}case"ArrowUp":C>0&&c(h,C-1,a);break;case"PageDown":null!==m&&null!==b&&i(h,d(Math.min(m+g,b)));break;case"Home":s(0,a);break;case"End":s(w,a);break;case"Enter":(a.ctrlKey||a.metaKey)&&e.current.toggleColumnMenu(r.field);break;case"Tab":a.shiftKey?0===h?C>0?c(w,C-1,a):x=!1:s(h-1,a):h===w?l?u(0,a):"all"===t.tabNavigation&&null!==m?i(0,d(m)):x=!1:s(h+1,a);break;case" ":break;default:x=!1}x&&a.preventDefault()},[e,t.tabNavigation,n,l,u,i,d,o,s,c]),f=a.useCallback((r,l)=>{let a=rr(e)===r.field;if(ro(e)===r.field||a&&"Tab"!==l.key||!(0,la.q9)(l.key)&&"Tab"!==l.key||"Tab"===l.key&&("none"===t.tabNavigation||"content"===t.tabNavigation&&l.shiftKey))return;let c=n(),p=e.current.getViewportPageSize(),f=r.field?e.current.getColumnIndex(r.field):0,g=c.length>0?0:null,h=c.length>0?c.length-1:null,m=Math.max(0,(0,V.iv)(e).length-1),b=!0;if("Tab"===l.key&&"content"===t.tabNavigation&&!l.shiftKey){null!==g&&(i(0,d(g)),l.preventDefault());return}switch(l.key){case"ArrowDown":null!==g&&i(f,d(g));break;case"ArrowRight":{let e=lH({currentColIndex:f,firstColIndex:0,lastColIndex:m,isRtl:o});null!==e&&u(e,l);break}case"ArrowLeft":{let t=lz({currentColIndex:f,firstColIndex:0,lastColIndex:m,isRtl:o});null!==t?u(t,l):e.current.setColumnHeaderFilterFocus(r.field,l);break}case"ArrowUp":s(f,l);break;case"PageDown":null!==g&&null!==h&&i(f,d(Math.min(g+p,h)));break;case"Home":u(0,l);break;case"End":u(m,l);break;case"Tab":l.shiftKey?0===f?s(m,l):u(f-1,l):f===m?"all"===t.tabNavigation&&null!==g?i(0,d(g)):b=!1:u(f+1,l);break;case" ":break;default:b=!1}b&&l.preventDefault()},[e,t.tabNavigation,n,u,o,s,i,d]),g=a.useCallback((r,o)=>{let l=rF(e);if(null===l)return;let{field:a,depth:u}=l,{fields:p,depth:f,maxDepth:g}=r;if(!(0,la.q9)(o.key)&&"Tab"!==o.key||"Tab"===o.key&&("none"===t.tabNavigation||"content"===t.tabNavigation&&o.shiftKey))return;let h=n(),m=e.current.getViewportPageSize(),b=e.current.getColumnIndex(a),v=a?e.current.getColumnIndex(a):0,w=h.length>0?0:null,C=h.length>0?h.length-1:null,x=Math.max(0,(0,V.iv)(e).length-1),y=!0;if("Tab"===o.key&&"content"===t.tabNavigation&&!o.shiftKey){null!==w&&(i(0,d(w)),o.preventDefault());return}switch(o.key){case"ArrowDown":f===g-1?s(b,o):c(b,u+1,o);break;case"ArrowUp":f>0&&c(b,u-1,o);break;case"ArrowRight":{let e=p.length-p.indexOf(a)-1;b+e+1<=x&&c(b+e+1,u,o);break}case"ArrowLeft":{let e=p.indexOf(a);b-e-1>=0&&c(b-e-1,u,o);break}case"PageDown":null!==w&&null!==C&&i(v,d(Math.min(w+m,C)));break;case"Home":c(0,u,o);break;case"End":c(x,u,o);break;case"Tab":if(o.shiftKey){let e=b-p.indexOf(a)-1;e<0?0===f?y=!1:c(x,u-1,o):c(e,u,o)}else{let e=b+(p.length-p.indexOf(a)-1)+1;e>x&&f===g-1?s(0,o):e>x?c(0,u+1,o):c(e,u,o)}break;case" ":break;default:y=!1}y&&o.preventDefault()},[e,t.tabNavigation,n,s,c,i,d]),h=a.useCallback((r,a)=>{if(lP(a))return;let c=e.current.getCellParams(r.id,r.field);if(c.cellMode===tI.Edit||!(0,la.q9)(a.key)&&"Tab"!==a.key||"Tab"===a.key&&("none"===t.tabNavigation||"header"===t.tabNavigation&&!a.shiftKey)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:a,cell:c}))return;let p=n();if(0===p.length)return;let f=l?u:s,g=e.current.getViewportPageSize(),h=r.field?e.current.getColumnIndex(r.field):0,m=p.findIndex(e=>e.id===r.id),b=p.length-1,v=Math.max(0,(0,V.iv)(e).length-1),w=!0;if("Tab"===a.key&&"header"===t.tabNavigation&&a.shiftKey){f(v,a),a.preventDefault();return}switch(a.key){case"ArrowDown":m<b&&i(h,d(m+1),o?"right":"left","down");break;case"ArrowUp":m>0?i(h,d(m-1)):f(h,a);break;case"ArrowRight":{let e=lH({currentColIndex:h,firstColIndex:0,lastColIndex:v,isRtl:o});null!==e&&i(e,d(m),o?"left":"right");break}case"ArrowLeft":{let e=lz({currentColIndex:h,firstColIndex:0,lastColIndex:v,isRtl:o});null!==e&&i(e,d(m),o?"right":"left");break}
68case"Tab":a.shiftKey?0===h&&0===m?"all"===t.tabNavigation?f(v,a):w=!1:0===h?i(v,d(m-1)):i(h-1,d(m),"left"):h===v?m!==b?i(0,d(m+1)):w=!1:i(h+1,d(m),"right");break;case" ":{let e;if(r.field===tp)break;let t=r.colDef;if(t&&("__tree_data_group__"===t.field||(e=t.field)===td||null!==(e=>{let t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null})(e))||t&&"longText"===t.type)break;!a.shiftKey&&m<b&&i(h,d(Math.min(m+g,b)));break}case"PageDown":m<b&&i(h,d(Math.min(m+g,b)));break;case"PageUp":{let e=Math.max(m-g,0);e!==m&&e>=0?i(h,d(e)):s(h,a);break}case"Home":a.ctrlKey||a.metaKey||a.shiftKey?i(0,d(0)):i(0,d(m));break;case"End":a.ctrlKey||a.metaKey||a.shiftKey?i(v,d(b)):i(v,d(m));break;default:w=!1}w&&a.preventDefault()},[e,t.tabNavigation,n,o,i,d,l,u,s]);lc(e,"canStartEditing",a.useCallback((e,{event:t})=>" "!==t.key&&e,[])),ef(e,"columnHeaderKeyDown",p),ef(e,"headerFilterKeyDown",f),ef(e,"columnGroupHeaderKeyDown",g),ef(e,"cellKeyDown",h)})(m,h),((e,t)=>{let r=n4(e,"useGridSelection"),o=(0,C.Nc)(e,ei.V2)>1,n=t.signature!==o3.DataGrid&&(t.rowSelectionPropagation?.parents||t.rowSelectionPropagation?.descendants)&&o,l=a.useMemo(()=>t.rowSelectionModel,[t.rowSelectionModel]),s=a.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:l,propOnChange:t.onRowSelectionModelChange,stateSelector:nA,changeEvent:"rowSelectionChange"});let{checkboxSelection:u,disableRowSelectionOnClick:c,isRowSelectable:d}=t,p=n$(t),f=a.useCallback(t=>{let r=t,o=s.current??t,n=e.current.isRowSelected(t);if(n){let t=(0,ry.ux)(e),n=t.findIndex(e=>e===o),l=t.findIndex(e=>e===r);if(n===l)return;r=n>l?t[l+1]:t[l-1]}s.current=t,e.current.selectRowRange({startId:o,endId:r},!n)},[e]),g=(0,ea.A)(()=>t.pagination&&t.checkboxSelectionVisibleOnly&&"client"===t.paginationMode?ns(e):(0,ry.ux)(e)),h=a.useCallback((o,n)=>{if(t.signature===o3.DataGrid&&!p&&("include"!==o.type||o.ids.size>1))throw Error("MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.\nYou need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection.");if(nA(e)!==o){if(r.debug("Setting selection model"),null!==s.current){let e=o.ids.has(s.current);("include"===o.type&&!e||"exclude"===o.type&&e)&&(s.current=null)}e.current.setState(e=>(0,i.A)({},e,{rowSelection:t.rowSelection?o:l2}),n)}},[e,r,t.rowSelection,t.signature,p]),m=a.useCallback(t=>nS(e).has(t),[e]),b=a.useCallback(r=>{if(!1===t.rowSelection)return!1;if(t.keepNonExistentRowsSelected&&!e.current.getRow(r))return!0;if(d&&!d(e.current.getRowParams(r)))return!1;let o=(0,ei.Qu)(e,r);return o?.type!=="footer"&&o?.type!=="pinnedRow"},[e,t.rowSelection,t.keepNonExistentRowsSelected,d]),w=a.useCallback(()=>nM(e),[e]),x=a.useCallback((o,l=!0,i=!1)=>{if(!e.current.isRowSelectable(o))return;let a=(0,ei.qj)(e);if(s.current=l?o:null,i){r.debug(`Setting selection for row ${o}`);let i={type:"include",ids:new Set},s=e=>{i.ids.add(e)};l&&(s(o),n&&nB(e,a,o,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,s)),e.current.setRowSelectionModel(i,"singleRowSelection")}else{r.debug(`Toggling selection for row ${o}`);let i=nA(e),s={type:i.type,ids:new Set(i.ids)},u=ny(s);u.unselect(o);let c=e=>{u.select(e)};l?(c(o),n&&nB(e,a,o,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,c)):n&&nG(e,a,o,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,e=>{u.unselect(e)}),("include"===s.type&&s.ids.size<2||p)&&e.current.setRowSelectionModel(s,"singleRowSelection")}},[e,r,n,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,p]),y=a.useCallback((o,l=!0,i=!1)=>{let a;if(r.debug("Setting selection for several rows"),!1===t.rowSelection)return;let s=(0,ei.qj)(e),u=new Set;for(let t=0;t<o.length;t+=1){let r=o[t];e.current.isRowSelectable(r)&&u.add(r)}let c=nA(e);if(i){if(a={type:"include",ids:u},l){let r=ny(a);if(n){let o=e=>{r.select(e)};for(let r of u)nB(e,s,r,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,o)}}else a.ids=new Set;if(c.type===a.type&&a.ids.size===c.ids.size&&Array.from(a.ids).every(e=>c.ids.has(e)))return}else{let r=ny(a={type:c.type,ids:new Set(c.ids)}),o=e=>{r.select(e)},i=e=>{r.unselect(e)};for(let a of u)l?(r.select(a),n&&nB(e,s,a,t.rowSelectionPropagation?.desce
68ndants??!1,t.rowSelectionPropagation?.parents??!1,o)):(i(a),n&&nG(e,s,a,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,i))}("include"===a.type&&a.ids.size<2||p)&&e.current.setRowSelectionModel(a,"multipleRowsSelection")},[r,n,p,e,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,t.rowSelection]),A=a.useCallback(r=>{if(!o||!n||"exclude"===r.type||0===r.ids.size&&"include"===r.type)return r;let l={type:r.type,ids:new Set(r.ids)},i=(0,ei.qj)(e),a=ny(l),s=e=>{a.select(e)};for(let o of r.ids)nB(e,i,o,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,s,a);return l},[e,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,o,n]),S=a.useCallback(({startId:t,endId:o},n=!0,l=!1)=>{if(!e.current.getRow(t)||!e.current.getRow(o))return;r.debug(`Expanding selection from row ${t} to row ${o}`);let i=(0,ry.ux)(e),a=i.indexOf(t),s=i.indexOf(o),[u,c]=a>s?[s,a]:[a,s],d=i.slice(u,c+1);e.current.selectRows(d,n,l)},[e,r]);nk(e,{selectRow:x,setRowSelectionModel:h,getSelectedRows:w,isRowSelected:m,isRowSelectable:b},"public"),nk(e,{selectRows:y,selectRowRange:S,getPropagatedRowSelectionModel:A},t.signature===o3.DataGrid?"private":"public");let R=a.useRef(!0),M=a.useCallback(()=>{if(R.current)return;let r=nA(e),n=(0,ei.rI)(e),l=(0,ei.qj)(e),i=(0,ry.wx)(e),a=e=>"server"===t.filterMode?!n[e]:!l[e]||!1===i[e],s={type:r.type,ids:new Set(r.ids)},u=ny(s),c=r=>{let o=l[r];return!!o&&("server"===t.filterMode||!1!==i[r])&&("group"!==o.type?!!n[r]&&e.current.isRowSelectable(r):o.children.some(e=>c(e)))},d=!1;for(let e of r.ids){if(a(e)){if(t.keepNonExistentRowsSelected)continue;u.unselect(e),d=!0;continue}if(!t.rowSelectionPropagation?.parents)continue;let r=l[e];if(r?.type==="group"){if(r.isAutoGenerated){u.unselect(e),d=!0;continue}r.children.some(e=>!1!==i[e]&&c(e))&&(u.unselect(e),d=!0)}}let p=o&&t.rowSelectionPropagation?.parents&&(s.ids.size>0||"exclude"===s.type);if(d||p)if(p)if("exclude"===s.type){let r=g(),o=[];for(let e=0;e<r.length;e+=1){let n=r[e];(t.keepNonExistentRowsSelected||!a(n))&&u.has(n)&&o.push(n)}e.current.selectRows(o,!0,!0)}else e.current.selectRows(Array.from(s.ids),!0,!0);else e.current.setRowSelectionModel(s,"multipleRowsSelection")},[e,o,t.rowSelectionPropagation?.parents,t.keepNonExistentRowsSelected,t.filterMode,g]),I=a.useCallback((t,r)=>{let o=r.metaKey||r.ctrlKey,n=!u&&!o&&!(0,la.kx)(r),l=!p||n,i=e.current.isRowSelected(t),a=nR(e);e.current.selectRow(t,a>1&&l||!i,l)},[e,p,u]),k=a.useCallback((t,r)=>{if(c)return;let o=r.target.closest(`.${v.xV.cell}`)?.getAttribute("data-field");if(o!==lo.field&&o!==tp){if(o){let t=e.current.getColumn(o);if(t?.type===tq)return}"pinnedRow"!==(0,ei.Qu)(e,t.id).type&&(r.shiftKey&&p?f(t.id):I(t.id,r))}},[c,p,e,f,I]),P=a.useCallback((e,t)=>{p&&t.shiftKey&&window.getSelection()?.removeAllRanges()},[p]),E=a.useCallback((t,r)=>{p&&r.nativeEvent.shiftKey?f(t.id):e.current.selectRow(t.id,t.value,!p)},[e,f,p]),T=a.useCallback(r=>{let n=(0,ry.ZI)(e),l=(0,ry.q6)(e),i=n.items.length>0||l?.some(e=>e.length);!(!t.isRowSelectable&&!t.checkboxSelectionVisibleOnly&&(!o||t.rowSelectionPropagation?.descendants))||i||t.disableRowSelectionExcludeModel?e.current.selectRows(g(),r):e.current.setRowSelectionModel({type:r?"exclude":"include",ids:new Set},"multipleRowsSelection")},[e,g,t.checkboxSelectionVisibleOnly,t.isRowSelectable,t.rowSelectionPropagation?.descendants,t.disableRowSelectionExcludeModel,o]),F=a.useCallback(e=>{T(e.value)},[T]),D=a.useCallback((t,r)=>{if(e.current.getCellMode(t.id,t.field)!==tI.Edit&&!lP(r)){if((0,la.q9)(r.key)&&r.shiftKey){let o=rE(e);if(o&&o.id!==t.id){let n,l;r.preventDefault();let i=e.current.isRowSelected(o.id);if(!p)return void e.current.selectRow(o.id,!i,!0);let a=e.current.getRowIndexRelativeToVisibleRows(o.id),s=e.current.getRowIndexRelativeToVisibleRows(t.id);a>s?i?(n=s,l=a-1):(n=s,l=a):(n=i?a+1:a,l=s);let u=nc(e),c=[];for(let e=n;e<=l;e+=1)c.push(u.rows[e].id);return void e.current.selectRows(c,!i)}}if(" "===r.key&&r.shiftKey){r.preventDefault(),I(t.id,r);return}"A"===String.fromCharCode(r.keyCode)&&(r.ctrlKey||r.metaKey)&&(r.preventDefault(),p&&T(!0))}},[e,p,I,T]),O=(0,ea.A)(()=>
68{if(!t.rowSelection)return void e.current.setRowSelectionModel(l2);if(void 0===l)return;if(!n||!o||"include"===l.type&&0===l.ids.size)return void e.current.setRowSelectionModel(l);let r=e.current.getPropagatedRowSelectionModel(l);if(r.type!==l.type||r.ids.size!==l.ids.size||!Array.from(l.ids).every(e=>r.ids.has(e)))return void e.current.setRowSelectionModel(r);e.current.setRowSelectionModel(l)});ef(e,"filteredRowsSet",eN(t.rowSelection,M)),ef(e,"rowClick",eN(t.rowSelection,k)),ef(e,"rowSelectionCheckboxChange",eN(t.rowSelection,E)),ef(e,"headerSelectionCheckboxChange",F),ef(e,"cellMouseDown",eN(t.rowSelection,P)),ef(e,"cellKeyDown",eN(t.rowSelection,D)),a.useEffect(()=>{O()},[e,l,t.rowSelection,O]);let z=null!=l;a.useEffect(()=>{if(z||!t.rowSelection||"function"!=typeof b)return;let r=nA(e);if("include"!==r.type)return;let o=new Set;for(let e of r.ids)b(e)&&o.add(e);o.size<r.ids.size&&e.current.setRowSelectionModel({type:r.type,ids:o})},[e,b,z,t.rowSelection]),a.useEffect(()=>{if(!t.rowSelection||z)return;let r=nA(e);!p&&("include"===r.type&&r.ids.size>1||"exclude"===r.type)&&e.current.setRowSelectionModel(l2)},[e,p,u,z,t.rowSelection]),a.useEffect(()=>{eN(t.rowSelection,M)},[t.rowSelection,M]),a.useEffect(()=>{R.current&&(R.current=!1)},[])})(m,h),!function(e,t){let r=n4(e,"useGridColumns");e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:V.FY,changeEvent:"columnVisibilityModelChange"});let o=a.useCallback(t=>{var o;r.debug("Updating columns state."),e.current.setState((o=t,e=>(0,i.A)({},e,{columns:o}))),e.current.publishEvent("columnsChange",t.orderedFields)},[r,e]),n=a.useCallback(t=>(0,V.gv)(e)[t],[e]),l=a.useCallback(()=>(0,V.OV)(e),[e]),s=a.useCallback(()=>(0,V.iv)(e),[e]),u=a.useCallback((t,r=!0)=>(r?(0,V.iv)(e):(0,V.OV)(e)).findIndex(e=>e.field===t),[e]),c=a.useCallback(t=>{let r=u(t);return(0,V.Sw)(e)[r]},[e,u]),d=a.useCallback(t=>{(0,V.FY)(e)!==t&&(e.current.setState(r=>(0,i.A)({},r,{columns:rf({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:t,keepOnlyColumnsToUpsert:!1})})),e.current.updateRenderContext?.())},[e]),p=a.useCallback(t=>{let r=t;if(rS(e)){let o=[],n=[],l=rM(e);if(t.forEach(e=>{l.has(e.field)?o.push(e):n.push(e)}),o.length>0&&e.current.updateNonPivotColumns(o),0===n.length)return;r=n}o(rf({apiRef:e,columnsToUpsert:r,initialState:void 0,keepOnlyColumnsToUpsert:!1,updateInitialVisibilityModel:!0}))},[e,o]),f=a.useCallback((t,r)=>{let o=(0,V.FY)(e);if(r!==(o[t]??!0)){let n=(0,i.A)({},o,{[t]:r});e.current.setColumnVisibilityModel(n)}},[e]),g=a.useCallback(t=>(0,V.JR)(e).findIndex(e=>e===t),[e]),h=a.useCallback((t,n)=>{let l=(0,V.JR)(e),a=g(t);if(a===n)return;r.debug(`Moving column ${t} to index ${n}`);let s=[...l],u=s.splice(a,1)[0];s.splice(n,0,u),o((0,i.A)({},(0,V.em)(e),{orderedFields:s}));let c={column:e.current.getColumn(t),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(t),oldIndex:a};e.current.publishEvent("columnIndexChange",c)},[e,r,o,g]),m=a.useCallback((t,n)=>{r.debug(`Updating column ${t} width to ${n}`);let l=(0,V.em)(e),a=l.lookup[t],s=(0,i.A)({},a,{width:n,hasBeenResized:!0});o(rd((0,i.A)({},l,{lookup:(0,i.A)({},l.lookup,{[t]:s})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:s,width:n})},[e,r,o]);nk(e,{getColumn:n,getAllColumns:l,getColumnIndex:u,getColumnPosition:c,getVisibleColumns:s,getColumnIndexRelativeToVisibleColumns:g,updateColumns:p,setColumnVisibilityModel:d,setColumnVisibility:f,setColumnWidth:m},"public"),nk(e,{setColumnIndex:h},t.signature===o3.DataGrid?"private":"public");let b=a.useCallback((r,o)=>{let n={},l=(0,V.FY)(e);(!o.exportOnlyDirtyModels||null!=t.columnVisibilityModel||Object.keys(t.initialState?.columns?.columnVisibilityModel??{}).length>0||Object.keys(l).length>0)&&(n.columnVisibilityModel=l),n.orderedFields=(0,V.JR)(e);let a=(0,V.OV)(e),s={};return a.forEach(e=>{if(e.hasBeenResized){let t={};ru.forEach(r=>{let o=e[r];o===1/0&&(o=-1),t[r]=o}),s[e.field]=t}}
68),Object.keys(s).length>0&&(n.dimensions=s),(0,i.A)({},r,{columns:n})},[e,t.columnVisibilityModel,t.initialState?.columns]),v=a.useCallback((t,r)=>{let o=r.stateToRestore.columns,n=o?.columnVisibilityModel;if(null==o)return t;let l=rf({apiRef:e,columnsToUpsert:[],initialState:o,columnVisibilityModel:n,keepOnlyColumnsToUpsert:!1});return null!=o&&e.current.setState(e=>(0,i.A)({},e,{columns:(0,i.A)({},e.columns,{lookup:l.lookup,orderedFields:l.orderedFields,initialColumnVisibilityModel:l.initialColumnVisibilityModel})})),null!=n&&e.current.setState(e=>(0,i.A)({},e,{columns:(0,i.A)({},e.columns,{columnVisibilityModel:n})})),null!=o&&e.current.publishEvent("columnsChange",l.orderedFields),t},[e]),w=a.useCallback((e,r)=>{if(r===N.y.columns){let e=t.slots.columnsPanel;return(0,B.jsx)(e,(0,i.A)({},t.slotProps?.columnsPanel))}return e},[t.slots.columnsPanel,t.slotProps?.columnsPanel]),C=a.useCallback(r=>{let o=rS(e);return t.disableColumnSelector||o?r:[...r,"columnMenuColumnsItem"]},[t.disableColumnSelector,e]);lc(e,"columnMenu",C),lc(e,"exportState",b),lc(e,"restoreState",v),lc(e,"preferencePanel",w);let x=a.useRef(null);ef(e,"viewportInnerSizeChange",t=>{x.current!==t.width&&(x.current=t.width,(0,V.iv)(e).some(e=>e.flex&&e.flex>0)&&o(rd((0,V.em)(e),e.current.getRootDimensions())))});let y=a.useCallback(()=>{r.info("Columns pipe processing have changed, regenerating the columns"),o(rf({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1}))},[e,r,o]);nP(e,"hydrateColumns",y),a.useEffect(()=>{e.current.caches.columns.lastColumnsProp!==t.columns&&(e.current.caches.columns.lastColumnsProp=t.columns,r.info(`GridColumns have changed, new length ${t.columns.length}`),o(rf({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0,updateInitialVisibilityModel:!0,columnVisibilityModel:t.columnVisibilityModel})))},[r,e,o,t.columns,t.columnVisibilityModel]),a.useEffect(()=>{void 0!==t.columnVisibilityModel&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,r,t.columnVisibilityModel])}(m,h),((e,t,r)=>{let o=n4(e,"useGridRows"),n=a.useRef(Date.now()),l=a.useRef(t.rowCount),s=(0,em.A)(),{setRowIndex:u,setRowPosition:c}=r.hooks.useGridRowsOverridableMethods(e,t),d=a.useCallback(t=>{let r=(0,ei.rI)(e)[t];if(r)return r;let o=(0,ei.Qu)(e,t);return o&&(0,tl.nF)(o)?{[tl.gb]:t}:null},[e]),p=a.useCallback(t=>ti(e,t),[e]),f=a.useCallback(({cache:r,throttle:o})=>{let l=()=>{n.current=Date.now(),e.current.setState(r=>(0,i.A)({},r,{rows:(0,tl.TW)({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:(0,ei.qj)(e),previousTreeDepths:(0,ei.Mz)(e),previousGroupsToFetch:(0,ei.r)(e)})})),e.current.publishEvent("rowsSet")};if(s.clear(),e.current.caches.rows=r,!o)return void l();let a=t.throttleRowsMs-(Date.now()-n.current);if(a>0)return void s.start(a,l);l()},[t.throttleRowsMs,t.rowCount,t.loading,e,s]),g=a.useCallback(r=>{if(o.debug(`Updating all rows, new length ${r.length}`),!t.dataSource&&rS(e))return void e.current.updateNonPivotRows(r,!1);let n=(0,tl.Z)({rows:r,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount});n.rowsBeforePartialUpdates=e.current.caches.rows.rowsBeforePartialUpdates,f({cache:n,throttle:!0})},[o,t.getRowId,t.dataSource,t.loading,t.rowCount,f,e]),h=a.useCallback(r=>{if(t.signature===o3.DataGrid&&r.length>1)throw Error("MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.\nYou need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.");if(!t.dataSource&&rS(e))return void e.current.updateNonPivotRows(r);let o=(0,tl.ro)(e,r,t.getRowId);f({cache:(0,tl.Ze)({updates:o,getRowId:t.getRowId,previousCache:e.current.caches.rows}),throttle:!0})},[t.signature,t.dataSource,t.getRowId,f,e]),m=a.useCallback((r,o)=>{let n=(0,tl.ro)(e,r,t.getRowId);f({cache:(0,tl.Ze)({updates:n,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:o??[]}),throttle:!1})},[t.getRowId,f,e]),b=a.useCallback(t=>{o.debug(`Setting loading to ${t}`),e.current.setState(e=>(0,i.A)({},e,{rows:(0,i.A)({},e.rows,{loading:t})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t},[e,o]),v=a.useCallback(()=>{let t=(0,ei.A6)(e),r=(0,ei.rI)(e);return new Map(t.map(e=>[e,r[e]??{}]))},[e]),w=a.useCallback(()=>(0,ei.H0)(e),[e]),C=a.useCallback(()=>(0,ei.A6)(e),[e]),x=a.useCallback(t=>{let{rowIdToIndexMap:r}=nc(e);return r.get(t)},[e]),y=a.useCallback((t,r)=>{let o=(0,ei.Qu)(e,t);if(!o)throw Error(`MUI X: No row with id #${t} found.`);if("group"!==o.type)throw Error("MUI X: Only group nodes can be expanded or collapsed.");let n=(0,i.A)({},o,{childrenExpanded:r});e.current.setState(e=>(0,i.A)({},e,{rows:(0,i.A)({},e.rows,{tree:(0,i.A)({},e.rows.tree,{[t]:n})})})),e.current.publishEvent("rowExpansionChange",n)},[e]),A=a.useCallback(()=>{let t=(0,i.A)({},(0,ei.qj)(e)),r=e=>{let o=t[e];o?.type==="group"&&(t[e]=(0,i.A)({},o,{childrenExpanded:!0}
68),o.children.forEach(r))};r(tl.OL),e.current.setState(e=>(0,i.A)({},e,{rows:(0,i.A)({},e.rows,{tree:t})})),e.current.publishEvent("rowExpansionChange",t[tl.OL])},[e]),S=a.useCallback(()=>{let t=(0,i.A)({},(0,ei.qj)(e)),r=e=>{let o=t[e];o?.type==="group"&&(t[e]=(0,i.A)({},o,{childrenExpanded:!1}),o.children.forEach(r))};r(tl.OL),e.current.setState(e=>(0,i.A)({},e,{rows:(0,i.A)({},e.rows,{tree:t})})),e.current.publishEvent("rowExpansionChange",t[tl.OL])},[e]),R=a.useCallback(t=>(0,ei.Qu)(e,t)??null,[e]),M=a.useCallback(({skipAutoGeneratedRows:t=!0,groupId:r,applySorting:o,applyFiltering:n,directChildrenOnly:l=!1})=>{let i,a=(0,ei.qj)(e);if(o){let o=a[r];if(!o)return[];let n=(0,rk.RJ)(e);i=[];let s=n.findIndex(e=>e===r)+1;for(let e=s;e<n.length&&(l?a[n[e]].depth===o.depth+1:a[n[e]].depth>o.depth);e+=1){let r=n[e];t&&(0,tl.nF)(a[r])||i.push(r)}}else i=(0,tl.l_)(a,r,t,l);if(n){let t=(0,ry.wx)(e);i=(0,lQ.Z)(t)?i:i.filter(e=>!1!==t[e])}return i},[e]),I=a.useCallback((r,o)=>{if(t.signature===o3.DataGrid&&o.length>1)throw Error("MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.\nYou need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.");if(0===o.length)return;if((0,ei.V2)(e)>1)throw Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");let n=(0,i.A)({},(0,ei.qj)(e)),l=(0,i.A)({},(0,ei.rI)(e)),a=n[tl.OL],s=[...a.children],u=new Set;for(let e=0;e<o.length;e+=1){let i=o[e],a=(0,tl.HZ)(i,t.getRowId,"A row was provided without id when calling replaceRows()."),[c]=s.splice(r+e,1,a);u.has(c)||(delete l[c],delete n[c]);let d={id:a,depth:0,parent:tl.OL,type:"leaf",groupingKey:null};l[a]=i,n[a]=d,u.add(a)}n[tl.OL]=(0,i.A)({},a,{children:s});let c=s.filter(e=>n[e]?.type==="leaf");
68e.current.caches.rows.dataRowIdToModelLookup=l,e.current.setState(e=>(0,i.A)({},e,{rows:(0,i.A)({},e.rows,{loading:t.loading,totalRowCount:Math.max(t.rowCount||0,s.length),dataRowIdToModelLookup:l,dataRowIds:c,tree:n})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId,t.loading,t.rowCount]),k=a.useCallback(()=>{o.info("Row grouping pre-processing have changed, regenerating the row tree"),f({cache:e.current.caches.rows.rowsBeforePartialUpdates===t.rows?(0,i.A)({},e.current.caches.rows,{updates:{type:"full",rows:(0,ei.A6)(e)}}):(0,tl.Z)({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[o,e,t.rows,t.getRowId,t.loading,t.rowCount,f]),P=(0,oo.A)(()=>t.dataSource),E=a.useCallback(e=>{if(t.dataSource&&t.dataSource!==P.current){P.current=t.dataSource;return}"rowTreeCreation"===e&&k()},[k,P,t.dataSource]),T=a.useCallback(()=>{e.current.getActiveStrategy(n1.RowTree)!==(0,ei.Y1)(e)&&k()},[e,k]);ef(e,"activeStrategyProcessorChange",E),ef(e,"strategyAvailabilityChange",T);let F=a.useCallback(()=>{e.current.setState(r=>{let o=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:(0,ei.qj)(e),treeDepths:(0,ei.Mz)(e),dataRowIds:(0,ei.A6)(e),dataRowIdToModelLo
68okup:(0,ei.rI)(e)});return(0,i.A)({},r,{rows:(0,i.A)({},r.rows,o,{totalTopLevelRowCount:(0,tl.fS)({tree:o.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet")},[e,t.rowCount]);nP(e,"hydrateRows",F),nk(e,{getRow:d,setLoading:b,getRowId:p,getRowModels:v,getRowsCount:w,getAllRowIds:C,setRows:g,updateRows:h,getRowNode:R,getRowIndexRelativeToVisibleRows:x,unstable_replaceRows:I},"public"),nk(e,{setRowIndex:u,setRowPosition:c,setRowChildrenExpansion:y,getRowGroupChildren:M,expandAllRows:A,collapseAllRows:S},t.signature===o3.DataGrid?"private":"public"),nk(e,{updateNestedRows:m},"private");let D=a.useRef(!0);a.useEffect(()=>{if(D.current){D.current=!1;return}let r=!1;t.rowCount!==l.current&&(r=!0,l.current=t.rowCount);let n=t.dataSource?(0,ei.Zy)(e):t.rows,a=e.current.caches.rows.rowsBeforePartialUpdates===n,s=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,u=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;(!a||(s||(e.current.setState(e=>(0,i.A)({},e,{rows:(0,i.A)({},e.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading),u||(e.current.setState(e=>(0,i.A)({},e,{rows:(0,i.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),r))&&(o.debug(`Updating all rows, new length ${n?.length}`),f({cache:(0,tl.Z)({rows:n,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,t.dataSource,o,f,e])})(m,h,dN),((e,t)=>{let r=a.useCallback((t,r=!1)=>{var o,n;let l=e.current.virtualizer.store,{range:a,rows:s}=nc(e);if(r&&l.set("rowSpanning",iR),null===a||!iA(t))return;let u=r?iR:o0.selectors.state(l.state),c=(o={firstRowIndex:t.firstRowIndex,lastRowIndex:Math.min(t.lastRowIndex,a.lastRowIndex-a.firstRowIndex+1)},n=u.processedRange,o.firstRowIndex>=n.firstRowIndex&&o.lastRowIndex<=n.lastRowIndex?null:o.firstRowIndex>=n.firstRowIndex&&o.lastRowIndex>n.lastRowIndex?{firstRowIndex:n.lastRowIndex,lastRowIndex:o.lastRowIndex}:o.firstRowIndex<n.firstRowIndex&&o.lastRowIndex<=n.lastRowIndex?{firstRowIndex:o.firstRowIndex,lastRowIndex:n.firstRowIndex-1}:o);if(null===c)return;let d=(0,V.iv)(e),p=((e,t,r,o,n,l)=>{let a=e.current.virtualizer,s=l?iR:o0.selectors.state(a.store.state),u=(0,i.A)({},s.caches.spannedCells),c=(0,i.A)({},s.caches.hiddenCells),d=(0,i.A)({},s.caches.hiddenCellOriginMap),p={firstRowIndex:Math.min(s.processedRange.firstRowIndex,n.firstRowIndex),lastRowIndex:Math.max(s.processedRange.lastRowIndex,n.lastRowIndex)};return t.forEach((t,l)=>{for(let i=n.firstRowIndex;i<n.lastRowIndex;i+=1){let a=r[i];if(c[a.id]?.[l])continue;let s=iS(a.model,t,e);if(null==s)continue;let p=a.id,f=i,g=0,h=[];if(i===n.firstRowIndex){let n=i-1,a=r[n];for(;n>=o.firstRowIndex&&a&&iS(a.model,t,e)===s;){let e=r[n+1];c[e.id]?c[e.id][l]=!0:c[e.id]={[l]:!0},h.push(i),g+=1,p=a.id,f=n,n-=1,a=r[n]}}h.forEach(e=>{d[e]?d[e][l]=f:d[e]={[l]:f}});let m=i+1;for(;m<=o.lastRowIndex&&r[m]&&iS(r[m].model,t,e)===s;){let e=r[m];c[e.id]?c[e.id][l]=!0:c[e.id]={[l]:!0},d[m]?d[m][l]=f:d[m]={[l]:f},m+=1,g+=1}g>0&&(u[p]?u[p][l]=g+1:u[p]={[l]:g+1})}}),{caches:{spannedCells:u,hiddenCells:c,hiddenCellOriginMap:d},processedRange:p}})(e,d,s,a,c,r),f=Object.keys(p.caches.spannedCells).length,g=Object.keys(p.caches.hiddenCells).length,h=Object.keys(u.caches.spannedCells).length,m=Object.keys(u.caches.hiddenCells).length;(r||f!==h||g!==m)&&(0!==f||0!==h)&&l.set("rowSpanning",p)},[e]),{schedule:o,cancel:n}=function(e){let t=a.useRef(null),r=a.useCallback((...r)=>{t.current||queueMicrotask(()=>{t.current&&t.current()}),t.current=()=>{t.current=null,e(...r)}},[e]);return a.useLayoutEffect(()=>{t.current&&t.current()}),{schedule:r,cancel:()=>!!t.current&&(t.current=null,!0)}}(r),l=a.useCallback(()=>{let t=ng(e);iA(t)&&o(t,!0)},[e,o]);ef(e,"renderedRowsIntervalChange",eN(t.rowSpanning,e=>{r(e,n())})),ef(e,"sortedRowsSet",eN(t.rowSpanning,l)),ef(e,"paginationModelChange",eN(t.rowSpanning,l)),ef(e,"filteredRowsSet",eN(t.rowSpanning,l)),ef(e,"columnsChange",eN(t.rowSpanning,l)),ef(e,"rowExpansionChange",eN(t.rowSpanning,l)),a.useEffect(()=>{let o=e.current.virtualizer?.store;o&&(t.rowSpanning?o.state.rowSpanning===iR&&r(ng(e)):o.state.rowSpanning!==iR&&o.set("rowSpanning",iR))},[e,t.rowSpanning,r])})(m,h),!function(e,t,r){let o=a.useCallback(t=>({field:t,colDef:e.current.getColumn(t)}),[e]),n=a.useCallback(t=>{let r=e.current.getRow(t);if(!r)throw new l1(`No row with id #${t} found`);return{id:t,columns:e.current.getAllColumns(),row:r}},[e]),l=a.useCallback((t,r,o,{cellMode:n,colDef:l,hasFocus:i,rowNode:a,tabIndex:s,value:u,formattedValue:c})=>{let d=void 0!==u?u:e.current.getRowValue(o,l),p=void 0!==c?c:e.current.getRowFormattedValue(o,l),f={id:t,field:r,row:o,rowNode:a,colDef:l,cellMode:n,hasFocus:i,tabIndex:s,value:d,formattedValue:p,isEditable:!1,api:e.current};return f.isEditable=l&&e.current.isCellEditable(f),f},[e]),i=a.useCallback((r,o)=>{let n=e.current.getRow(r),l=(0,ei.Qu)(e,r);if(!n||!l)throw new l1(`No row with id #${r} found`);let i=rE(e),a=rO(e),s=e.current.getCellMode(r,o);return e.current.getCellParamsForRow(r,o,n,{colDef:t.listView&&t.listViewColumn?.field===o?(0,l0.W)(e):e.current.getColumn(o),rowNode:l,hasFocus:null!==i&&i.field===o&&i.id===r,tabIndex:a&&a.field===o&&a.id===r?0:-1,cellMode:s})},[e,t.listView,t.listViewColumn?.field]),s=a.useCallback(t=>{var r;return e.current.rootElementRef.current?(r=e.current.rootElementRef.current,r.querySelector(`[role="columnheader"][data-field="${lI(t)}"]`)):null},[e]),u=a.useCallback(t=>{var r;return e.current.rootElementRef.current?(r=e.current.rootElementRef.current,r.querySelector(lk(t))):null},[e]),c=a.useCallback((t,r)=>e.current.rootElementRef.current?function(e,{id:t,field:r}){let o=lk(t),n=`.${v.xV.cell}[data-field="${lI(r)}"]`,l=`${o} ${n}`;return e.querySelector(l)}(e.current.rootElementRef.current,{id:t,field:r}):null,[e]),d=r.hooks.useGridParamsOverridableMethods(e);nk(e,{getCellValue:d.getCellValue,getCellParams:i,getCellElement:c,getRowValue:d.getRowValue,getRowFormattedValue:d.getRowFormattedValue,getRowParams:n,getRowElement:u,getColumnHeaderParams:o,getColumnHeaderElement:s},"public"),nk(e,{getCellParamsForRow:l},"private")}(m,h,dN),(e=>{let t=()=>e.current.virtualizer.api.resetColSpan();nk(e,{unstable_getCellColSpanInfo:(...t)=>e.current.virtualizer.api.getCellColSpanInfo(...t)},"public"),nk(e,{resetColSpan:t,calculateColSpan:(...t)=>{e.current.virtualizer.api.calculateColSpan(...t)}},"private"),ef(e,"columnOrderChange",t)})(m),((e,t)=>{let r=a.useCallback(t=>rl(e)[t]??[],[e]),o=a.useCallback(()=>ri(e),[e]);
68nk(e,{getColumnGroupPath:r,getAllGroupDetails:o},"public");let n=a.useCallback(()=>{let r=ii(t.columnGroupingModel??[]);e.current.setState(e=>{let t=ia(e.columns?.orderedFields??[],r,e.pinnedColumns??{});return(0,i.A)({},e,{columnGrouping:(0,i.A)({},e.columnGrouping,{headerStructure:t})})})},[e,t.columnGroupingModel]),l=a.useCallback(t=>{if(!t&&!e.current.caches.columnGrouping.lastColumnGroupingModel)return;e.current.caches.columnGrouping.lastColumnGroupingModel=t;let r=e.current.getPinnedColumns?.()??{},o=(0,V.JR)(e),n=(0,V.TI)(e),l=io(t??[]),a=ii(t??[]),s=ia(o,a,r),u=0===n.length?0:Math.max(...n.map(e=>a[e]?.length??0));e.current.setState(e=>(0,i.A)({},e,{columnGrouping:{lookup:l,unwrappedGroupingModel:a,headerStructure:s,maxDepth:u}}))},[e]);ef(e,"columnIndexChange",n),ef(e,"columnsChange",()=>{l(t.columnGroupingModel)}),ef(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),a.useEffect(()=>{t.columnGroupingModel!==e.current.caches.columnGrouping.lastColumnGroupingModel&&l(t.columnGroupingModel)},[e,l,t.columnGroupingModel])})(m,h),((e,t,r)=>{((e,t)=>{let r,[o,n]=a.useState({}),l=a.useRef(o),s=a.useRef({}),{processRowUpdate:u,onProcessRowUpdateError:d,cellModesModel:p,onCellModesModelChange:f}=t,g=e=>(...r)=>{t.editMode===tM.Cell&&e(...r)},h=a.useCallback((t,r)=>{let o=e.current.getCellParams(t,r);if(!e.current.isCellEditable(o))throw Error(`MUI X: The cell with id=${t} and field=${r} is not editable.`)},[e]),m=a.useCallback((t,r,o)=>{if(e.current.getCellMode(t,r)!==o)throw Error(`MUI X: The cell with id=${t} and field=${r} is not in ${o} mode.`)},[e]),b=a.useCallback((t,r)=>{if(!t.isEditable||t.cellMode===tI.Edit)return;let o=(0,i.A)({},t,{reason:tS.cellDoubleClick});e.current.publishEvent("cellEditStart",o,r)},[e]),v=a.useCallback((t,r)=>{if(t.cellMode===tI.View||e.current.getCellMode(t.id,t.field)===tI.View)return;let o=(0,i.A)({},t,{reason:tR.cellFocusOut});e.current.publishEvent("cellEditStop",o,r)},[e]),w=a.useCallback((t,r)=>{if(t.cellMode===tI.Edit){let o;if(229!==r.which&&("Escape"===r.key?o=tR.escapeKeyDown:"Enter"===r.key?o=tR.enterKeyDown:"Tab"===r.key&&(o=r.shiftKey?tR.shiftTabKeyDown:tR.tabKeyDown,r.preventDefault()),o)){let n=(0,i.A)({},t,{reason:o});e.current.publishEvent("cellEditStop",n,r)}}else if(t.isEditable){let o;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:r,cellParams:t,editMode:"cell"}))return;if((0,la.TW)(r)?o=tS.printableKeyDown:(0,la.IA)(r)?o=tS.pasteKeyDown:"Enter"===r.key?(o=tS.enterKeyDown,r.preventDefault()):("Backspace"===r.key||"Delete"===r.key)&&(o=tS.deleteKeyDown),o){let n=(0,i.A)({},t,{reason:o,key:r.key});e.current.publishEvent("cellEditStart",n,r)}}},[e]),C=a.useCallback(t=>{let{id:r,field:o,reason:n}=t,l={id:r,field:o};(n===tS.printableKeyDown||n===tS.deleteKeyDown||n===tS.pasteKeyDown)&&(l.deleteValue=!0),e.current.startCellEditMode(l)},[e]),x=a.useCallback(t=>{let r,{id:o,field:n,reason:l}=t;e.current.runPendingEditCellValueMutation(o,n),l===tR.enterKeyDown?r="below":l===tR.tabKeyDown?r="right":l===tR.shiftTabKeyDown&&(r="left"),e.current.stopCellEditMode({id:o,field:n,ignoreModifications:"escapeKeyDown"===l,cellToFocusAfter:r})},[e]);ef(e,"cellDoubleClick",g(b)),ef(e,"cellFocusOut",g(v)),ef(e,"cellKeyDown",g(w)),ef(e,"cellEditStart",g(C)),ef(e,"cellEditStop",g(x)),eh(e,"cellEditStart",t.onCellEditStart),eh(e,"cellEditStop",(r=t.onCellEditStop,async(...t)=>{if(r){let{id:o,field:n}=t[0],l=e.current.state.editRows;l[o][n]?.error||r(...t)}}));let y=a.useCallback((t,r)=>{let o=lL(e);return o[t]&&o[t][r]?tI.Edit:tI.View},[e]),A=(0,ea.A)(r=>{let o=r!==t.cellModesModel;f&&o&&f(r,{api:e.current}),t.cellModesModel&&o||(n(r),l.current=r,e.current.publishEvent("cellModesModelChange",r))}),S=a.useCallback((e,t,r)=>{let o=(0,i.A)({},l.current);if(null!==r)o[e]=(0,i.A)({},o[e],{[t]:(0,i.A)({},r)});else{let r=o[e],n=(0,c.A)(r,[t].map(n0));o[e]=n,0===Object.keys(o[e]).length&&delete o[e]}A(o)},[A]),R=a.useCallback((t,r,o)=>{e.current.setState(e=>{let n=(0,i.A)({},e.editRows);return null!==o?n[t]=(0,i.A)({},n[t],{[r]:(0,i.A)({},o)}):(delete n[t][r],0===Object.keys(n[t]).length&&delete n[t]),(0,i.A)({},e,{editRows:n})})},[e]),M=a.useCallback(e=>{let{id:t,field:r}=e,o=(0,c.A)(e,lW);h(t,r),m(t,r,tI.View),S(t,r,(0,i.A)({mode:tI.Edit},o))},[h,m,S]),I=(0,ea.A)(async t=>{let{id:r,field:o,deleteValue:n,initialValue:l}=t,a=e.current.getCellValue(r,o),s=a;n?s=lG(e.current.getColumn(o)):l&&(s=l);let u=e.current.getColumn(o),c=!!u.preProcessEditCellProps&&n,d={value:s,error:!1,isProcessingProps:c};if(R(r,o,d),e.current.setCellFocus(r,o),c&&(d=await Promise.resolve(u.preProcessEditCellProps({id:r,row:e.current.getRow(r),props:d,hasChanged:s!==a})),e.current.getCellMode(r,o)===tI.Edit)){let t=lL(e);R(r,o,(0,i.A)({},d,{value:t[r][o].value,isProcessingProps:!1}))}}),k=a.useCallback(e=>{let{id:t,field:r}=e,o=(0,c.A)(e,lU);m(t,r,tI.Edit),S(t,r,(0,i.A)({mode:tI.View},o))},[m,S]),P=(0,ea.A)(async r=>{let{id:o,field:n,ignoreModifications:l,cellToFocusAfter:i="none"}=r;m(o,n,tI.Edit),e.current.runPendingEditCellValueMutation(o,n);let a=()=>{R(o,n,null),S(o,n,null),"none"!==i&&e.current.moveFocusToRelativeCell(o,n,i)};if(l)return void a();let{error:c,isProcessingProps:p}=lL(e)[o][n],f=e.current.getRow(o);if(c||p){s.current[o][n].mode=tI.Edit,S(o,n,{mode:tI.Edit});return}let g=e.current.getRowWithUpdatedValuesFromCellEditing(o,n);if(t.dataSource?.updateRow){if((0,op.H)(f,g))return void a();try{await e.current.dataSource.editRow({rowId:o,updatedRow:g,previousRow:f}),a()}catch{s.current[o][n].mode=tI.Edit,S(o,n,{mode:tI.Edit})}}else if(u){let t=e=>{s.current[o][n].mode=tI.Edit,S(o,n,{mode:tI.Edit}),d?d(e):(0,eA.m)(["MUI X: A call to `processRowUpdate()` threw an error which was not handled because `onProcessRowUpdateError()` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError()` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/persistence/."],"error")};try{Promise.resolve(u(g,f,{rowId:o})).then(t=>{e.current.updateRows([t]),a()}).catch(t)}catch(e){t(e)}}else e.current.updateRows([g]),a()}),E=a.useCallback(async t=>{let{id:r,field:o,value:n,debounceMs:l,unstable_skipValueParser:a}=t;h(r,o),m(r,o,tI.Edit);let s=e.current.getColumn(o),u=e.current.getRow(r),c=n;s.valueParser&&!a&&(c=s.valueParser(n,u,s,e));let d=lL(e),p=(0,i.A)({},d[r][o],{value:c,changeReason:l?"debouncedSetEditCellValue":"setEditCellValue"});if(s.preProcessEditCellProps){let e=n!==d[r][o].value;R(r,o,p=(0,i.A)({},p,{isProcessingProps:!0})),p=await Promise.resolve(s.preProcessEditCellProps({id:r,row:u,props:p,hasChanged:e}))}return e.current.getCellMode(r,o)!==tI.View&&(d=lL(e),(p=(0,i.A)({},p,{isProcessingProps:!1})).value=s.preProcessEditCellProps?d[r][o].value:c,R(r,o,p),d=lL(e),!d[r]?.[o]?.error)},[e,h,m,R]),T=a.useCallback((t,r)=>{let o=e.current.getColumn(r),n=lL(e),l=e.current.getRow(t);if(!n[t]||!n[t][r])return e.current.getRow(t);let{value:a}=n[t][r];return o.valueSetter?o.valueSetter(a,l,o,e):(0,i.A)({},l,{[r]:a})},[e]);nk(e,{getCellMode:y,startCellEditMode:M,stopCellEditMode:k},"public"),nk(e,{setCellEditingEditCellValue:E,getRowWithUpdatedValuesFromCellEditing:T},"private"),a.useEffect(()=>{p&&A(p)},[p,A]),(0,ev.A)(()=>{let t=(0,ei.rI)(e),r=s.current;
68s.current=ej(o),Object.entries(o).forEach(([o,n])=>{Object.entries(n).forEach(([n,l])=>{let a=r[o]?.[n]?.mode||tI.View,s=t[o]?e.current.getRowId(t[o]):o;l.mode===tI.Edit&&a===tI.View?I((0,i.A)({id:s,field:n},l)):l.mode===tI.View&&a===tI.Edit&&P((0,i.A)({id:s,field:n},l))})})},[e,o,I,P])})(e,t),((e,t)=>{let[r,o]=a.useState({}),n=a.useRef(r),l=a.useRef({}),s=a.useRef({}),u=a.useRef(void 0),d=a.useRef(null),{processRowUpdate:p,onProcessRowUpdateError:f,rowModesModel:g,onRowModesModelChange:h}=t,m=e=>(...r)=>{t.editMode===tM.Row&&e(...r)},b=a.useCallback((t,r)=>{let o=e.current.getCellParams(t,r);if(!e.current.isCellEditable(o))throw Error(`MUI X: The cell with id=${t} and field=${r} is not editable.`)},[e]),v=a.useCallback((t,r)=>{if(e.current.getRowMode(t)!==r)throw Error(`MUI X: The row with id=${t} is not in ${r} mode.`)},[e]),w=a.useCallback(t=>Object.values(lL(e)[t]).some(e=>e.error),[e]),C=a.useCallback((t,r)=>{if(!t.isEditable||e.current.getRowMode(t.id)===tk.Edit)return;let o=e.current.getRowParams(t.id),n=(0,i.A)({},o,{field:t.field,reason:l_.cellDoubleClick});e.current.publishEvent("rowEditStart",n,r)},[e]),x=a.useCallback(e=>{d.current=e},[]),y=a.useCallback((t,r)=>{t.isEditable&&e.current.getRowMode(t.id)!==tk.View&&(d.current=null,u.current=setTimeout(()=>{if(d.current?.id!==t.id){if(!e.current.getRow(t.id)||e.current.getRowMode(t.id)===tk.View||w(t.id))return;let o=e.current.getRowParams(t.id),n=(0,i.A)({},o,{field:t.field,reason:lq.rowFocusOut});e.current.publishEvent("rowEditStop",n,r)}}))},[e,w]);a.useEffect(()=>()=>{clearTimeout(u.current)},[]);let A=a.useCallback((t,r)=>{if(t.cellMode===tk.Edit){let o;if(229!==r.which){if("Escape"===r.key)o=lq.escapeKeyDown;else if("Enter"===r.key)o=lq.enterKeyDown;else if("Tab"===r.key){let n=(0,V.TI)(e).filter(r=>e.current.getColumn(r).type===tq||e.current.isCellEditable(e.current.getCellParams(t.id,r)));if(r.shiftKey?t.field===n[0]&&(o=lq.shiftTabKeyDown):t.field===n[n.length-1]&&(o=lq.tabKeyDown),r.preventDefault(),!o){let 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!==lq.escapeKeyDown&&w(t.id))return;let n=(0,i.A)({},e.current.getRowParams(t.id),{reason:o,field:t.field});e.current.publishEvent("rowEditStop",n,r)}}}else if(t.isEditable){let o;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:r,cellParams:t,editMode:"row"}))return;if((0,la.TW)(r)||(0,la.IA)(r)?o=l_.printableKeyDown:"Enter"===r.key?o=l_.enterKeyDown:("Backspace"===r.key||"Delete"===r.key)&&(o=l_.deleteKeyDown),o){let n=e.current.getRowParams(t.id),l=(0,i.A)({},n,{field:t.field,reason:o,key:g&&(0,la.TW)(r)?r.key:void 0});e.current.publishEvent("rowEditStart",l,r)}}},[e,w,g]),S=a.useCallback(t=>{let{id:r,field:o,reason:n}=t,l={id:r,fieldToFocus:o};(n===l_.printableKeyDown||n===l_.deleteKeyDown)&&(g&&n===l_.printableKeyDown&&t.key&&o?l.initialValue=t.key:l.deleteValue=!!o),e.current.startRowEditMode(l)},[e,g]),R=a.useCallback(t=>{let r,{id:o,reason:n,field:l}=t;e.current.runPendingEditCellValueMutation(o),n===lq.enterKeyDown?r="below":n===lq.tabKeyDown?r="right":n===lq.shiftTabKeyDown&&(r="left"),e.current.stopRowEditMode({id:o,ignoreModifications:"escapeKeyDown"===n,field:l,cellToFocusAfter:r})},[e]);ef(e,"cellDoubleClick",m(C)),ef(e,"cellFocusIn",m(x)),ef(e,"cellFocusOut",m(y)),ef(e,"cellKeyDown",m(A)),ef(e,"rowEditStart",m(S)),ef(e,"rowEditStop",m(
68R)),eh(e,"rowEditStart",t.onRowEditStart),eh(e,"rowEditStop",t.onRowEditStop);let M=a.useCallback(r=>l$(e,{rowId:r,editMode:t.editMode})?tk.Edit:tk.View,[e,t.editMode]),I=(0,ea.A)(r=>{let l=r!==t.rowModesModel;h&&l&&h(r,{api:e.current}),t.rowModesModel&&l||(o(r),n.current=r,e.current.publishEvent("rowModesModelChange",r))}),k=a.useCallback((e,t)=>{let r=(0,i.A)({},n.current);null!==t?r[e]=(0,i.A)({},t):delete r[e],I(r)},[I]),P=a.useCallback((t,r)=>{e.current.setState(e=>{let o=(0,i.A)({},e.editRows);return null!==r?o[t]=r:delete o[t],(0,i.A)({},e,{editRows:o})})},[e]),E=a.useCallback((t,r,o)=>{e.current.setState(e=>{let n=(0,i.A)({},e.editRows);return null!==o?n[t]=(0,i.A)({},n[t],{[r]:(0,i.A)({},o)}):(delete n[t][r],0===Object.keys(n[t]).length&&delete n[t]),(0,i.A)({},e,{editRows:n})})},[e]),T=a.useCallback(e=>{let{id:t}=e,r=(0,c.A)(e,lK);v(t,tk.View),k(t,(0,i.A)({mode:tk.Edit},r))},[v,k]),F=(0,ea.A)(t=>{let{id:r,fieldToFocus:o,deleteValue:n,initialValue:l}=t,a=e.current.getRow(r),u=(0,V.OV)(e),c=u.reduce((t,i)=>{let a=i.field;if(!e.current.getCellParams(r,a).isEditable)return t;let s=e.current.getColumn(a),u=e.current.getCellValue(r,a);return o===a&&(n||l)&&(n?u=lG(s):l&&(u=l)),t[a]={value:u,error:!1,isProcessingProps:s.editable&&!!s.preProcessEditCellProps&&n},t},{});s.current[r]=a,P(r,c),o&&e.current.setCellFocus(r,o),u.filter(t=>e.current.getCellParams(r,t.field).isEditable&&t.editable&&!!t.preProcessEditCellProps&&n).forEach(t=>{let o=t.field,s=e.current.getCellValue(r,o),u=n?lG(t):l??s;Promise.resolve(t.preProcessEditCellProps({id:r,row:a,props:c[o],hasChanged:u!==s})).then(t=>{if(e.current.getRowMode(r)===tk.Edit){let n=lL(e);E(r,o,(0,i.A)({},t,{value:n[r][o].value,isProcessingProps:!1}))}})})}),D=a.useCallback(e=>{let{id:t}=e,r=(0,c.A)(e,lX);v(t,tk.Edit),k(t,(0,i.A)({mode:tk.View},r))},[v,k]),O=(0,ea.A)(async r=>{let{id:o,ignoreModifications:n,field:i,cellToFocusAfter:a="none"}=r;e.current.runPendingEditCellValueMutation(o);let u=()=>{"none"!==a&&i&&e.current.moveFocusToRelativeCell(o,i,a),P(o,null),k(o,null),delete s.current[o]};if(n&&e.current.getRow(o))return void u();let c=lL(e);if(!c[o])return void u();let d=s.current[o];if(Object.values(c[o]).some(e=>e.isProcessingProps)){l.current[o].mode=tk.Edit;return}if(w(o)){l.current[o].mode=tk.Edit,k(o,{mode:tk.Edit});return}let g=e.current.getRowWithUpdatedValuesFromRowEditing(o);if(t.dataSource?.updateRow){if((0,op.H)(d,g))return void u();try{await e.current.dataSource.editRow({rowId:o,updatedRow:g,previousRow:d}),u()}catch{l.current[o].mode=tk.Edit,k(o,{mode:tk.Edit})}}else if(p){let t=e=>{l.current[o]&&(l.current[o].mode=tk.Edit,k(o,{mode:tk.Edit})),f?f(e):(0,eA.m)(["MUI X: A call to `processRowUpdate()` threw an error which was not handled because `onProcessRowUpdateError()` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError()` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/persistence/."],"error")};try{Promise.resolve(p(g,d,{rowId:o})).then(t=>{e.current.getRow(o)&&e.current.updateRows([t]),u()}).catch(t)}catch(e){t(e)}}else e.current.getRow(o)&&e.current.updateRows([g]),u()}),z=a.useCallback(t=>{let{id:r,field:o,value:n,debounceMs:l,unstable_skipValueParser:a}=t;b(r,o);let s=e.current.getColumn(o),u=e.current.getRow(r),d=n;s.valueParser&&!a&&(d=s.valueParser(n,u,s,e));let p=lL(e),f=(0,i.A)({},p[r][o],{value:d,changeReason:l?"debouncedSetEditCellValue":"setEditCellValue"});return s.preProcessEditCellProps||E(r,o,f),new Promise(t=>{let n=[];if(s.preProcessEditCellProps){let l=f.value!==p[r][o].value;E(r,o,f=(0,i.A)({},f,{isProcessingProps:!0}));let a=p[r],g=(0,c.A)(a,[o].map(n0)),h=Promise.resolve(s.preProcessEditCellProps({id:r,row:u,props:f,hasChanged:l,otherFieldsProps:g})).then(n=>{if(e.current.getRowMode(r)===tk.View)return void t(!1);p=lL(e),(n=(0,i.A)({},n,{isProcessingProps:!1})).value=s.preProcessEditCellProps?p[r][o].value:d,E(r,o,n)});n.push(h)}Object.entries(p[r]).forEach(([l,a])=>{if(l===o)return;let s=e.current.getColumn(l);if(!s.preProcessEditCellProps)return;E(r,l,a=(0,i.A)({},a,{isProcessingProps:!0}));let d=(p=lL(e))[r],f=(0,c.A)(d,[l].map(n0)),g=Promise.resolve(s.preProcessEditCellProps({id:r,row:u,props:a,hasChanged:!1,otherFieldsProps:f})).then(o=>{if(e.current.getRowMode(r)===tk.View)return void t(!1);E(r,l,o=(0,i.A)({},o,{isProcessingProps:!1}))});n.push(g)}),Promise.all(n).then(()=>{e.current.getRowMode(r)===tk.Edit?t(!(p=lL(e))[r][o].error):t(!1)})})},[e,b,E]),H=a.useCallback(t=>{let r=lL(e),o=e.current.getRow(t);if(!r[t])return e.current.getRow(t);let n=(0,i.A)({},s.current[t],o);
68return Object.entries(r[t]).forEach(([t,r])=>{let o=e.current.getColumn(t);o?.valueSetter?n=o.valueSetter(r.value,n,o,e):n[t]=r.value}),n},[e]);nk(e,{getRowMode:M,startRowEditMode:T,stopRowEditMode:D},"public"),nk(e,{setRowEditingEditCellValue:z,getRowWithUpdatedValuesFromRowEditing:H},"private"),a.useEffect(()=>{g&&I(g)},[g,I]),(0,ev.A)(()=>{let t=(0,ei.rI)(e),o=l.current;l.current=ej(r),Array.from(new Set([...Object.keys(r),...Object.keys(o)])).forEach(n=>{let l=r[n]??{mode:tk.View},a=o[n]?.mode||tk.View,s=t[n]?e.current.getRowId(t[n]):n;l.mode===tk.Edit&&a===tk.View?F((0,i.A)({id:s},l)):l.mode===tk.View&&a===tk.Edit&&O((0,i.A)({id:s},l))})},[e,r,P,F,O,k])})(e,t);let o=a.useRef({}),{isCellEditable:n}=t,l=r.hooks.useIsCellEditable(e,t),s=a.useCallback(e=>!!l(e)&&!!e.colDef.editable&&!!e.colDef.renderEditCell&&(!n||n(e)),[n,l]);a.useEffect(()=>{let e=o.current;return()=>{Object.entries(e).forEach(([t,r])=>{Object.keys(r).forEach(r=>{let[o]=e[t][r];clearTimeout(o),delete e[t][r]})})}},[]);let u=a.useCallback((e,t)=>{if(o.current[e])if(t){if(o.current[e][t]){let[,r]=o.current[e][t];r()}}else Object.keys(o.current[e]).forEach(t=>{let[,r]=o.current[e][t];r()})},[]),d=a.useCallback(r=>{let{id:n,field:l,debounceMs:i}=r;return new Promise(a=>{((e,t,r,n)=>{if(!r)return n();if(o.current[e]||(o.current[e]={}),o.current[e][t]){let[r]=o.current[e][t];clearTimeout(r)}let l=setTimeout(()=>{n(),delete o.current[e][t]},r);o.current[e][t]=[l,()=>{let[r]=o.current[e][t];clearTimeout(r),n(),delete o.current[e][t]}]})(n,l,i,async()=>{let o=t.editMode===tM.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;e.current.getCellMode(n,l)===tI.Edit&&a(await o(r))})})},[e,t.editMode]),p=a.useCallback((r,o)=>t.editMode===tM.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(r,o):e.current.getRowWithUpdatedValuesFromRowEditing(r),[e,t.editMode]),f=a.useCallback((t,r)=>{let o=lL(e);return o[t]?.[r]??null},[e]);nk(e,{isCellEditable:s,setEditCellValue:d,getRowWithUpdatedValues:p,unstable_getEditCellMeta:f},"public"),nk(e,{runPendingEditCellValueMutation:u},"private")})(m,h,dN),((e,t)=>{let r=n4(e,"useGridFocus"),o=a.useRef(null),n=null!==e.current.rootElementRef.current,l=a.useCallback((t,r)=>{t&&e.current.getRow(t.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(t.id,t.field),r)},[e]),s=a.useCallback((t,o)=>{let n=rE(e);if(n?.id===t&&n?.field===o){if("view"!==e.current.getCellMode(t,o))return;let r=e.current.getCellElement(t,o);if(!r)return;let n=e.current.rootElementRef.current,l=(0,od.A)(n),i=l.activeElement;if(!(!i||i===l.body||i===l.documentElement||n?.contains(i))||r.contains(l.activeElement))return;if(lS())r.focus({preventScroll:!0});else{let t=e.current.getScrollPosition();r.focus(),e.current.scroll(t)}return}e.current.setState(e=>(r.debug(`Focusing on cell with id=${t} and field=${o}`),(0,i.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.getRow(t)&&(n&&l(n,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(t,o)))},[e,r,l]),u=a.useCallback((t,o={})=>{l(rE(e),o),e.current.setState(e=>(r.debug(`Focusing on column header with colIndex=${t}`),(0,i.A)({},e,{tabIndex:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))},[e,r,l]),c=a.useCallback((t,o={})=>{l(rE(e),o),e.current.setState(e=>(r.debug(`Focusing on column header filter with colIndex=${t}`),(0,i.A)({},e,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null}})))},[e,r,l]),d=a.useCallback((t,r,o={})=>{let n=rE(e);n&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(n.id,n.field),o),e.current.setState(e=>(0,i.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]),p=a.useCallback(()=>rF(e),[e]),f=a.useCallback((r,o,n)=>{let l=e.current.getColumnIndex(o),i=(0,V.iv)(e),a=nc(e,{pagination:t.pagination,paginationMode:t.paginationMode}),s=(0,ei.$2)(e),u=[].concat(s.top||[],a.rows,s.bottom||[]),c=u.findIndex(e=>e.id===r);"right"===n?l+=1:"left"===n?l-=1:c+=1,l>=i.length?(c+=1)<u.length&&(l=0):l<0&&(c-=1)>=0&&(l=i.length-1),c=eV(c,0,u.length-1);let d=u[c];if(!d)return;let p=e.current.unstable_getCellColSpanInfo(d.id,l);p&&p.spannedByColSpan&&("left"===n||"below"===n?l=p.leftVisibleCellIndex:"right"===n&&(l=p.rightVisibleCellIndex)),l=eV(l,0,i.length-1);let f=i[l];e.current.setCellFocus(d.id,f.field)},[e,t.pagination,t.paginationMode]),g=a.useCallback(({id:t,field:r})=>{e.current.setCellFocus(t,r)},[e]),h=a.useCallback((t,r)=>{(0,la.IA)(r)||"Enter"===r.key||"Tab"===r.key||"Shift"===r.key||(0,la.q9)(r.key)||e.current.setCellFocus(t.id,t.field)},[e]),m=a.useCallback(({field:t},r)=>{r.target===r.currentTarget&&e.current.setColumnHeaderFocus(t,r)},[e]),b=a.useCallback(({fields:t,depth:r},o)=>
68{if(o.target!==o.currentTarget)return;let n=rF(e);null!==n&&n.depth===r&&t.includes(n.field)||e.current.setColumnGroupHeaderFocus(t[0],r,o)},[e]),w=a.useCallback((t,o)=>{o.relatedTarget?.getAttribute("class")?.includes(v.xV.columnHeader)||(r.debug("Clearing focus"),e.current.setState(e=>(0,i.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[r,e]),C=a.useCallback(e=>{o.current=e},[]),x=a.useCallback(t=>{let r=o.current;o.current=null;let n=rE(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:t,cell:r}))return;if(!n){r&&e.current.setCellFocus(r.id,r.field);return}if(r?.id===n.id&&r?.field===n.field)return;let a=e.current.getCellElement(n.id,n.field);a?.contains(t.target)||(r?e.current.setCellFocus(r.id,r.field):(e.current.setState(e=>(0,i.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),l(n,t)))},[e,l]),y=a.useCallback(t=>{if("view"===t.cellMode)return;let r=rE(e);(r?.id!==t.id||r?.field!==t.field)&&e.current.setCellFocus(t.id,t.field)},[e]),A=a.useCallback(()=>{let r=rE(e);if(r&&!e.current.getRow(r.id)){let o=r.id,n=null;if(void 0!==o){let r=e.current.getRowElement(o),l=r?.dataset.rowindex?Number(r?.dataset.rowindex):0,i=nc(e,{pagination:t.pagination,paginationMode:t.paginationMode}),a=i.rows[eV(l,0,i.rows.length-1)];n=a?.id??null}e.current.setState(e=>(0,i.A)({},e,{focus:{cell:null===n?null:{id:n,field:r.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),S=a.useMemo(()=>(0,lb.A)(A,0),[A]),R=(0,ea.A)(()=>{let r=rE(e);if(!r)return;let o=nc(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(o.rows.find(e=>e.id===r.id)||0===o.rows.length)return;let n=(0,V.iv)(e);e.current.setState(e=>(0,i.A)({},e,{tabIndex:{cell:{id:o.rows[0].id,field:n[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))});nk(e,{setCellFocus:s,setColumnHeaderFocus:u,setColumnHeaderFilterFocus:c},"public"),nk(e,{moveFocusToRelativeCell:f,setColumnGroupHeaderFocus:d,getColumnGroupHeaderFocus:p},"private"),a.useEffect(()=>{let t=(0,od.A)(e.current.rootElementRef.current);return t.addEventListener("mouseup",x),()=>{t.removeEventListener("mouseup",x)}},[e,n,x]),ef(e,"columnHeaderBlur",w),ef(e,"cellDoubleClick",g),ef(e,"cellMouseDown",C),ef(e,"cellKeyDown",h),ef(e,"cellModeChange",y),ef(e,"columnHeaderFocus",m),ef(e,"columnGroupHeaderFocus",b),ef(e,"rowsSet",S),ef(e,"paginationModelChange",R)})(m,h),((e,t)=>{let r=n4(e,"useGridPreferencesPanel"),o=a.useCallback(()=>{e.current.setState(t=>{if(!t.preferencePanel.open)return t;r.debug("Hiding Preferences Panel");let o=(0,j._)(e);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:o.openedPanelValue}),(0,i.A)({},t,{preferencePanel:{open:!1}})})},[e,r]),n=a.useCallback((t,o,n)=>{r.debug("Opening Preferences Panel"),e.current.setState(e=>(0,i.A)({},e,{preferencePanel:(0,i.A)({},e.preferencePanel,{open:!0,openedPanelValue:t,panelId:o,labelId:n})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:t})},[r,e]);nk(e,{showPreferences:n,hidePreferences:o},"public");let l=a.useCallback((r,o)=>{let n=(0,j._)(e);return!o.exportOnlyDirtyModels||t.initialState?.preferencePanel!=null||n.open?(0,i.A)({},r,{preferencePanel:n}):r},[e,t.initialState?.preferencePanel]),s=a.useCallback((t,r)=>{let o=r.stateToRestore.preferencePanel;return null!=o&&e.current.setState(e=>(0,i.A)({},e,{preferencePanel:o})),t},[e]);lc(e,"exportState",l),lc(e,"restoreState",s)})(m,h),((e,t,r)=>{let n=n4(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:ry.ZI,changeEvent:"filterModelChange"});let l=a.useCallback(()=>{e.current.setState(t=>{let r=(0,ry.ZI)(e),o=e.current.getFilterState(r),n=(0,i.A)({},t,{filter:(0,i.A)({},t.filter,o)}),l=ly(e,n);return(0,i.A)({},n,{visibleRowsLookup:l})}),e.current.publishEvent("filteredRowsSet")},[e]),s=a.useCallback((e,r)=>null==r||!1===r.filterable||t.disableColumnFilter?e:[...e,"columnMenuFilterItem"],[t.disableColumnFilter]),u=a.useCallback(t=>{let r=(0,ry.ZI)(e),o=[...r.items],n=o.findIndex(e=>e.id===t.id);-1===n?o.push(t):o[n]=t,e.current.setFilterModel((0,i.A)({},r,{items:o}),"upsertFilterItem")},[e]),c=a.useCallback(t=>{let r=(0,ry.ZI)(e),o=[...r.items];
68t.forEach(e=>{let t=o.findIndex(t=>t.id===e.id);-1===t?o.push(e):o[t]=e}),e.current.setFilterModel((0,i.A)({},r,{items:o}),"upsertFilterItems")},[e]),d=a.useCallback(t=>{let r=(0,ry.ZI)(e),o=r.items.filter(e=>e.id!==t.id);o.length!==r.items.length&&e.current.setFilterModel((0,i.A)({},r,{items:o}),"deleteFilterItem")},[e]),p=a.useCallback((r,o,l)=>{if(n.debug("Displaying filter panel"),r){let o,n=(0,ry.ZI)(e),l=n.items.filter(t=>{if(void 0!==t.value)return!Array.isArray(t.value)||0!==t.value.length;let r=e.current.getColumn(t.field),o=r.filterOperators?.find(e=>e.value===t.operator);return!(void 0===o?.requiresFilterValue||o?.requiresFilterValue)}),a=l.find(e=>e.field===r),s=e.current.getColumn(r);o=a?l:t.disableMultipleColumnsFiltering?[e_({field:r,operator:s.filterOperators[0].value},e)]:[...l,e_({field:r,operator:s.filterOperators[0].value},e)],e.current.setFilterModel((0,i.A)({},n,{items:o}))}e.current.showPreferences(N.y.filters,o,l)},[e,n,t.disableMultipleColumnsFiltering]),f=a.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),g=a.useCallback(t=>{let r=(0,ry.ZI)(e);r.logicOperator!==t&&e.current.setFilterModel((0,i.A)({},r,{logicOperator:t}),"changeLogicOperator")},[e]),h=a.useCallback(t=>{let r=(0,ry.ZI)(e);(0,op.H)(r.quickFilterValues,t)||e.current.setFilterModel((0,i.A)({},r,{quickFilterValues:[...t]}))},[e]),m=a.useCallback((r,o)=>{(0,ry.ZI)(e)!==r&&(n.debug("Setting filter model"),e.current.updateControlState("filter",eK(r,t.disableMultipleColumnsFiltering,e),o),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),b=a.useCallback(n=>{let l=eq(n,t.disableMultipleColumnsFiltering,e),a=r.hooks.useFilterValueGetter(e,t),s="client"===t.filterMode?((e,t,r,n)=>{let l=((e,t,r,n)=>{let{items:l}=e,i=l.map(e=>eY(e,t,r)).filter(e=>!!e);if(0===i.length)return null;if(n||!function(){if(void 0!==o)return o;try{o=Function("return true")()}catch(e){o=!1}return o}())return(e,t)=>{let r={};for(let o=0;o<i.length;o+=1){let n=i[o];(!t||t(n.item.field))&&(r[n.item.id]=n.fn(e))}return r};let a=Function("appliers","row","shouldApplyFilter",`"use strict"; 69${i.map((e,t)=>`const shouldApply${t} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(e.item.field)});`).join("\n")} 70 71const result$$ = { 72${i.map((e,t)=>` ${JSON.stringify(String(e.item.id))}: !shouldApply${t} ? false : appliers[${t}].fn(row),`).join("\n")} 73}; 74 75return result$$;`.replaceAll("$$",String(eQ)));return eQ+=1,(e,t)=>a(i,e,t)})(e,t,r,n),i=((e,t,r)=>{let o,n=e.quickFilterValues?.filter(Boolean)??[];if(0===n.length)return null;let l=(0,V.JR)(r),i=(0,V.FY)(r);o=e.quickFilterExcludeHiddenColumns??!0?l.filter(e=>!1!==i[e]):l;let a=[],{ignoreDiacritics:s}=r.current.rootProps,u=eU(r);return o.forEach(e=>{let t=r.current.getColumn(e),o=t?.getApplyQuickFilterFn;o&&a.push({column:t,appliers:n.map(e=>({fn:o(s?eX(e):e,t,u)}))})}),function(e,r){let o={};e:for(let l=0;l<n.length;l+=1){let i=n[l];for(let n=0;n<a.length;n+=1){let{column:c,appliers:d}=a[n],{field:p}=c;if(r&&!r(p))continue;let f=d[l],g=t(e,c);if(null!==f.fn&&(s&&(g=eX(g)),f.fn(g,e,c,u))){o[i]=!0;continue e}}o[i]=!1}return o}})(e,t,r);return function(e,t,r){r.passingFilterItems=l?.(e,t)??null,r.passingQuickFilterValues=i?.(e,t)??null}})(l,a,e,t.disableEval):null,u=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:s,filterModel:l??eW(),filterValueGetter:a});return(0,i.A)({},u,{filterModel:l})},[e,r.hooks,t]),v={setFilterLogicOperator:g,unstable_applyFilters:l,deleteFilterItem:d,upsertFilterItem:u,upsertFilterItems:c,setFilterModel:m,showFilterPanel:p,hideFilterPanel:f,setQuickFilterValues:h,ignoreDiacritics:t.ignoreDiacritics,getFilterState:b};nk(e,v,"public");let w=a.useCallback((r,o)=>{let n=(0,ry.ZI)(e);return(n.items.forEach(e=>{delete e.fromInput}),o.exportOnlyDirtyModels&&null==t.filterModel&&t.initialState?.filter?.filterModel==null&&(0,op.H)(n,eW()))?r:(0,i.A)({},r,{filter:{filterModel:n}})},[e,t.filterModel,t.initialState?.filter?.filterModel]),C=a.useCallback((r,o)=>{let n=o.stateToRestore.filter?.filterModel;return null==n?r:(e.current.updateControlState("filter",eK(n,t.disableMultipleColumnsFiltering,e),"restoreState"),(0,i.A)({},r,{callbacks:[...r.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),x=a.useCallback((e,r)=>{if(r===N.y.filters){let e=t.slots.filterPanel;return(0,B.jsx)(e,(0,i.A)({},t.slotProps?.filterPanel))}return e},[t.slots.filterPanel,t.slotProps?.filterPanel]),{getRowId:y}=t,A=(0,oo.A)(lA),S=a.useCallback(r=>
75{if("client"!==t.filterMode||!r.isRowMatchingFilters||!r.filterModel.items.length&&!r.filterModel.quickFilterValues?.length)return eG;let o=(0,ei.rI)(e),n={},{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){let o=s[t],u=y?y(o):o.id;l(o,void 0,a);let c=eJ([a.passingFilterItems],[a.passingQuickFilterValues],r.filterModel,r.filterValueGetter,e,i);c||(n[u]=c)}let u="auto-generated-group-footer-root";return o[u]&&(n[u]=!0),{filteredRowsLookup:n,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,y,A]);lc(e,"columnMenu",s),lc(e,"exportState",w),lc(e,"restoreState",C),lc(e,"preferencePanel",x),lw(e,n2,"filtering",S),lw(e,n2,"visibleRowsLookupCreation",lx);let R=a.useCallback(()=>{n.debug("onColUpdated - GridColumns changed, applying filters");let t=(0,ry.ZI)(e),r=(0,V.gv)(e),o=t.items.filter(e=>e.field&&r[e.field]);o.length<t.items.length&&e.current.setFilterModel((0,i.A)({},t,{items:o}))},[e,n]),M=a.useCallback(t=>{"filtering"===t&&e.current.unstable_applyFilters()},[e]),I=a.useCallback(()=>{e.current.setState(t=>(0,i.A)({},t,{visibleRowsLookup:ly(e,t)}))},[e]);ef(e,"rowsSet",l),ef(e,"columnsChange",R),ef(e,"activeStrategyProcessorChange",M),ef(e,"rowExpansionChange",I),ef(e,"columnVisibilityModelChange",()=>{let t=(0,ry.ZI)(e);t.quickFilterValues?.length&&(t.quickFilterExcludeHiddenColumns??!0)&&l()}),o9(()=>{"DataGrid"===t.signature&&l()}),(0,ev.A)(()=>{void 0!==t.filterModel&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])})(m,h,dN),((e,t)=>{let r=n4(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:rk.XU,changeEvent:"sortModelChange"});let o=a.useCallback((t,r)=>{let o=(0,rk.XU)(e),n=o.findIndex(e=>e.field===t),l=[...o];return n>-1?r?.sort==null?l.splice(n,1):l.splice(n,1,r):l=[...o,r],l},[e]),n=a.useCallback((r,o)=>{let n=(0,rk.XU)(e).find(e=>e.field===r.field);if(n){let e=void 0===o?eM(r.sortingOrder??t.sortingOrder,n.sort):o;return void 0===e?void 0:(0,i.A)({},n,{sort:e})}return{field:r.field,sort:void 0===o?eM(r.sortingOrder??t.sortingOrder):o}},[e,t.sortingOrder]),l=a.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=a.useCallback(()=>{e.current.setState(o=>{if("server"===t.sortingMode)return r.debug("Skipping sorting rows as sortingMode = server"),(0,i.A)({},o,{sorting:(0,i.A)({},o.sorting,{sortedRows:(0,tl.l_)((0,ei.qj)(e),tl.OL,!1)})});let n=((e,t)=>{let r=e.map(e=>((e,t)=>{let r,o=t.current.getColumn(e.field);return o&&null!==e.sort?(r=o.getSortComparator?o.getSortComparator(e.sort):"desc"===e.sort?(...e)=>-1*o.sortComparator(...e):o.sortComparator)?{getSortCellParams:e=>({id:e,field:o.field,rowNode:(0,ei.Qu)(t,e),value:t.current.getCellValue(e,o.field),api:t.current}),comparator:r}:null: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)=>r.reduce((r,o,n)=>{if(0!==r)return r;let l=e.params[n],i=t.params[n];return o.comparator(l.value,i.value,l,i)},0)).map(e=>e.node.id)})((0,rk.XU)(e),e),l=e.current.applyStrategyProcessor("sorting",{sortRowList:n});return(0,i.A)({},o,{sorting:(0,i.A)({},o.sorting,{sortedRows:l})})}),e.current.publishEvent("sortedRowsSet")},[e,r,t.sortingMode]),u=a.useCallback(o=>{(0,rk.XU)(e)!==o&&(r.debug("Setting sort model"),e.current.setState(eR(o,t.disableMultipleColumnsSorting)),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),c=a.useCallback((r,l,i)=>{let a,s=e.current.getColumn(r),u=n(s,l);a=!i||t.disableMultipleColumnsSorting?u?.sort==null?[]:[u]:o(s.field,u),e.current.setSortModel(a)},[e,o,n,t.disableMultipleColumnsSorting]),d=a.useCallback(()=>(0,rk.XU)(e),[e]),p=a.useCallback(()=>(0,rk.J6)(e).map(e=>e.model),[e]),f=a.useCallback(()=>(0,rk.RJ)(e),[e]),g=a.useCallback(t=>e.current.getSortedRowIds()[t],[e]);nk(e,{getSortModel:d,getSortedRows:p,getSortedRowIds:f,getRowIdFromRowIndex:g,setSortModel:u,sortColumn:c,applySorting:s},"public");let h=a.useCallback((r,o)=>{let n=(0,rk.XU)(e);return!o.exportOnlyDirtyModels||null!=t.sortModel||t.initialState?.sorting?.sortModel!=null||n.length>0?(0,i.A)({},r,{sorting:{sortModel:n}}):r},[e,t.sortModel,t.initialState?.sorting?.sortModel]),m=a.useCallback((r,o)=>{let n=o.stateToRestore.sorting?.sortModel;return null==n?r:(e.current.setState(eR(n,t.disableMultipleColumnsSorting)),(0,i.A)({},r,{callbacks:[...r.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),b=a.useCallback(t=>{let r=(0,ei.qj)(e),o=r[tl.OL],n=t.sortRowList?t.sortRowList(o.children.map(e=>r[e])):[...o.children];return null!=o.footerId&&n.push(o.footerId),n},[e]);lc(e,"exportState",h),lc(e,"restoreState",m),lw(e,n2,"sorting",b);let v=a.useCallback(({field:e,colDef:r},o)=>{r.sortable&&!t.disableColumnSorting&&c(e,void 0,"always"===t.multipleColumnsSortingMode||o.shiftKey||o.metaKey||o.ctrlKey)},[c,t.disableColumnSorting,t.multipleColumnsSortingMode]),w=a.useCallback(({field:e,colDef:r},o)=>{r.sortable&&!t.disableColumnSorting&&("Enter"!==o.key||o.ctrlKey||o.metaKey||c(e,void 0,"always"===t.multipleColumnsSortingMode||o.shiftKey))},[c,t.disableColumnSorting,t.multipleColumnsSortingMode]),C=a.useCallback(()=>{let t=(0,rk.XU)(e),r=(0,V.gv)(e);if(t.length>0){let o=t.filter(e=>r[e.field]);o.length<t.length&&e.current.setSortModel(o)}},[e]),x=a.useCallback(t=>{"sorting"===t&&e.current.applySorting()},[e]);lc(e,"columnMenu",l),ef(e,"columnHeaderClick",v),ef(e,"columnHeaderKeyDown",w),ef(e,"rowsSet",e.current.applySorting),ef(e,"columnsChange",C),ef(e,"activeStrategyProcessorChange",x),o9(()=>{"DataGrid"===t.signature&&e.current.applySorting()}),(0,ev.A)(()=>{void 0!==t.sortModel&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])})(m,h),((e,t)=>{let r=n4(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:F._v,changeEvent:"densityChange"});let o=(0,ea.A)(t=>{(0,F._v)(e)!==t&&(r.debug(`Set grid density to ${t}`),e.current.setState(e=>(0,i.A)({},e,{density:t})))});nk(e,{setDensity:o},"public");let n=a.useCallback((r,o)=>{let n=(0,F._v)(e);return o.exportOnlyDirtyModels&&null==t.density&&t.initialState?.density==null?r:(0,i.A)({},r,{density:n})},[e,t.density,t.initialState?.density]),l=a.useCallback((t,r)=>
75{let o=r.stateToRestore?.density?r.stateToRestore.density:(0,F._v)(e);return e.current.setState(e=>(0,i.A)({},e,{density:o})),t},[e]);lc(e,"exportState",n),lc(e,"restoreState",l),a.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])})(m,h),((e,t)=>{let r=(0,tN.I)(),o=n4(e,"useGridColumnResize"),n=(0,oo.A)(ix).current,l=a.useRef(null),s=a.useRef(null),u=(0,em.A)(),c=a.useRef(void 0),d=t=>{o.debug(`Updating width to ${t} for col ${n.colDef.field}`);let l=t-n.columnHeaderElement.offsetWidth,i=t-n.initialColWidth;if(i>0){let t=n.initialTotalWidth+i;e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${t}px`)}n.colDef.computedWidth=t,n.colDef.width=t,n.colDef.flex=0,n.columnHeaderElement.style.width=`${t}px`;let a=n.headerFilterElement;a&&(a.style.width=`${t}px`),n.groupHeaderElements.forEach(e=>{let r;r="1"===e.getAttribute("aria-colspan")?`${t}px`:`${e.offsetWidth+l}px`,e.style.width=r}),n.cellElements.forEach(e=>{let r;r="1"===e.getAttribute("aria-colspan")?`${t}px`:`${e.offsetWidth+l}px`,e.style.setProperty("--width",r)});let s=X(e),u=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,n.colDef.field);u===ld.K.LEFT&&(iy(n.fillerLeft,"width",l),n.leftPinnedCellsAfter.forEach(e=>{iy(e,"left",l)}),n.leftPinnedHeadersAfter.forEach(e=>{iy(e,"left",l)}),e.current.rootElementRef?.current?.style.setProperty(ib(r,u),`${iv(s,r,u)+i}px`)),u===ld.K.RIGHT&&(iy(n.fillerRight,"width",l),n.rightPinnedCellsBefore.forEach(e=>{iy(e,"right",l)}),n.rightPinnedHeadersBefore.forEach(e=>{iy(e,"right",l)}),e.current.rootElementRef?.current?.style.setProperty(ib(r,u),`${iv(s,r,u)+i}px`))},p=t=>{if(y(),n.previousMouseClickEvent){let r=n.previousMouseClickEvent,o=r.timeStamp,l=r.clientX,i=r.clientY;if(t.timeStamp-o<300&&t.clientX===l&&t.clientY===i){n.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,t);return}}if(n.colDef){e.current.setColumnWidth(n.colDef.field,n.colDef.width),o.debug(`Updating col ${n.colDef.field} with new width: ${n.colDef.width}`);let t=(0,V.em)(e);n.groupHeaderElements.forEach(e=>{let r=e.getAttribute("data-fields").slice(2,-2).split("-|-").reduce((e,r)=>!1!==t.columnVisibilityModel[r]?e+t.lookup[r].computedWidth:e,0),o=`${r}px`;e.style.width=o})}u.start(0,()=>{e.current.publishEvent("columnResizeStop",null,t)})},f=()=>{n.columnHeaderElement&&(n.cellElements=function(e,t){if(!lM(e,v.xV.root))throw Error("MUI X: The root element is not found.");let r=e.getAttribute("aria-colindex");if(!r)return[];let o=Number(r)-1,n=[];return t.virtualScrollerRef?.current?(lD(t).forEach(e=>{let r=e.getAttribute("data-id");if(!r)return;let l=o,i=t.unstable_getCellColSpanInfo(r,o);i&&i.spannedByColSpan&&(l=i.leftVisibleCellIndex);let a=e.querySelector(`[data-colindex="${l}"]`);a&&n.push(a)}),n):[]}(n.columnHeaderElement,e.current))},g=(t,o,i)=>{var a,u,c,d,p,g;let h=e.current.rootElementRef.current;n.initialColWidth=t.computedWidth,n.initialTotalWidth=e.current.getRootDimensions().rowWidth,n.colDef=t,a=e.current.columnHeadersContainerRef.current,u=t.field,n.columnHeaderElement=a.querySelector(`[data-field="${lI(u)}"]`);let m=h.querySelector(`.${v.xV.headerFilterRow} [data-field="${lI(t.field)}"]`);m&&(n.headerFilterElement=m),c=e.current.columnHeadersContainerRef?.current,d=t.field,n.groupHeaderElements=Array.from(c.querySelectorAll(`[data-fields*="|-${lI(d)}-|"]`)??[]),f(),n.fillerLeft=lE(e.current,r?"filler--pinnedRight":"filler--pinnedLeft"),n.fillerRight=lE(e.current,r?"filler--pinnedLeft":"filler--pinnedRight");let b=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,n.colDef.field);n.leftPinnedCellsAfter=b!==ld.K.LEFT?[]:function(e,t,r){let o=lO(t);return lT({api:e,colIndex:o,position:r?"right":"left",filterFn:e=>r?e<o:e>o})}(e.current,n.columnHeaderElement,r),n.rightPinnedCellsBefore=b!==ld.K.RIGHT?[]:function(e,t,r){let o=lO(t);return lT({api:e,colIndex:o,position:r?"left":"right",filterFn:e=>r?e>o:e<o})}(e.current,n.columnHeaderElement,r),n.leftPinnedHeadersAfter=b!==ld.K.LEFT?[]:function(e,t,r){let o=lO(t);return lF({api:e,position:r?"right":"left",colIndex:o,filterFn:e=>r?e<o:e>o})}(e.current,n.columnHeaderElement,r),n.rightPinnedHeadersBefore=b!==ld.K.RIGHT?[]:function(e,t,r){let o=lO(t);return lF({api:e,position:r?"left":"right",colIndex:o,filterFn:(e,t)=>!t.classList.contains(v.xV["columnHeader--last"])&&(r?e>o:e<o)})}(e.current,n.columnHeaderElement,r),s.current=function(e,t){let r=e.classList.contains(v.xV["columnSeparator--sideRight"])?"Right":"Left";return t?"Right"===r?"Left":"Right":r}(o,r),p=i,g=n.columnHeaderElement.getBoundingClientRect(),l.current="Left"===s.current?p-g.left:g.right-p},h=(0,ea.A)(p),m=(0,ea.A)(t=>{if(0===t.buttons)return void h(t);let r=im(l.current,t.clientX,n.columnHeaderElement.getBoundingClientRect(),s.current);d(r=eV(r,n.colDef.minWidth,n.colDef.maxWidth));let o={element:n.columnHeaderElement,colDef:n.colDef,width:r};e.current.publishEvent("columnResize",o,t)}),b=(0,ea.A)(e=>{ih(e,c.current)&&p(e)}),w=(0,ea.A)(t=>{let r=ih(t,c.current);if(!r)return;if("mousemove"===t.type&&0===t.buttons)return void b(t);let o=im(l.current,r.x,n.columnHeaderElement.getBoundingClientRect(),s.current);d(o=eV(o,n.colDef.minWidth,n.colDef.maxWidth));let i={element:n.columnHeaderElement,colDef:n.colDef,width:o};e.current.publishEvent("columnResize",i,t)}),x=(0,ea.A)(t=>{let r=lM(t.target,v.xV["columnSeparator--resizable"]);if(!r)return;let n=t.changedTouches[0];null!=n&&(c.current=n.identifier);let l=lM(t.target,v.xV.columnHeader).getAttribute("data-field"),i=e.current.getColumn(l);o.debug(`Start Resize on col ${i.field}`),e.current.publishEvent("columnResizeStart",{field:l},t),g(i,r,n.clientX);let a=(0,od.A)(t.currentTarget);a.addEventListener("touchmove",w),a.addEventListener("touchend",b)}),y=a.useCallback(()=>{let t=(0,od.A)(e.current.rootElementRef.current);t.body.style.removeProperty("cursor"),t.removeEventListener("mousemove",m),t.removeEventListener("mouseup",h),t.removeEventListener("touchmove",w),t.removeEventListener("touchend",b),setTimeout(()=>{t.removeEventListener("click",iw,!0)},100),n.columnHeaderElement&&(n.columnHeaderElement.style.pointerEvents="unset")},[e,n,m,h,w,b]),A=a.useCallback(({field:t})=>{e.current.setState(e=>(0,i.A)({},e,{columnResize:(0,i.A)({},e.columnResize,{resizingColumnField:t})}))},[e]),S=a.useCallback(()=>{e.current.setState(e=>(0,i.A)({},e,{columnResize:(0,i.A)({},e.columnResize,{resizingColumnField:""})}))},[e]),R=(0,ea.A)(({colDef:t},r)=>{if(0!==r.button||!r.currentTarget.classList.contains(v.xV["columnSeparator--resizable"]))return;r.preventDefault(),o.debug(`Start Resize on col ${t.field}`),e.current.publishEvent("columnResizeStart",{field:t.field},r),g(t,r.currentTarget,r.clientX);let l=(0,od.A)(e.current.rootElementRef.current);l.body.style.cursor="col-resize",n.previousMouseClickEvent=r.nativeEvent,l.addEventListener("mousemove",m),l.addEventListener("mouseup",h),l.addEventListener("click",iw,!0)}),M=(0,ea.A)((r,o)=>{if(t.disableAutosize||0!==o.button)return;let n=e.current.state.columns.lookup[r.field];!1!==n.resizable&&e.current.autosizeColumns((0,i.A)({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[n.field]}))}),I=function(e){let t=a.useRef(void 0),r=()=>nf(e),o=(0,C.Nc)(e,r);return a.useEffect(()=>{t.current&&!1===o&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(!1===r())return Promise.resolve();t.current=function(){let e,t,r=new Promise((r,o)=>{e=r,t=o});return r.resolve=e,r.reject=t,r}()}return t.current}}(e),k=a.useRef(!1),P=a.useCallback(async r=>{if(!e.current.rootElementRef?.current||k.current)return;k.current=!0;let o=(0,V.em)(e),n=(0,i.A)({}
75,id,r,{columns:r?.columns??o.orderedFields});n.columns=n.columns.filter(e=>!1!==o.columnVisibilityModel[e]);let l=n.columns.map(t=>e.current.state.columns.lookup[t]);try{!t.disableVirtualization&&n.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await I());let r=function(e,t,r){let o={},n=e.current.rootElementRef.current;n.classList.add(v.xV.autosizing);let l=t.includeHeaderFilters&&rt(e);return r.forEach(r=>{var n,i,a,s,u,c;let d=(n=e.current,i=r.field,Array.from(n.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > div > [data-field="${lI(i)}"][role="gridcell"]`))).map(e=>e.getBoundingClientRect().width??0),p=t.includeOutliers?d:function(e,t){if(e.length<4)return e;let r=e.slice();r.sort((e,t)=>e-t);let o=r[Math.floor(.25*r.length)],n=r[Math.floor(.75*r.length)-1],l=n-o,i=l<5?5:l*t;return r.filter(e=>e>o-i&&e<n+i)}(d,t.outliersFactor);if(t.includeHeaders){let t=(a=e.current,s=r.field,a.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${lI(s)}"][role="columnheader"]`));if(t){let e=t.querySelector(`.${v.xV.columnHeaderTitleContainer}`),r=Array.from(e.children),o=t.querySelector(`.${v.xV.menuIcon}`),n=parseInt(window.getComputedStyle(e,null).gap,10)||0,l=window.getComputedStyle(t,null),i=parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10),a=0,s=0;for(let e=0;e<r.length;e+=1){let t=r[e];t.clientWidth>0&&(a+=1,s+=t.scrollWidth)}let u=(s+=1)+n*(a-1)+i+(o?.clientWidth??0);p.push(u)}}if(l){let t=(u=e.current,c=r.field,u.columnHeadersContainerRef.current.querySelector(`:scope > .${v.xV.headerFilterRow} > [data-field="${lI(c)}"]`));if(t){let e=window.getComputedStyle(t,null),r=parseInt(e.paddingLeft,10)+parseInt(e.paddingRight,10),o=t.scrollWidth;p.push(o+r)}}let f=r.minWidth!==-1/0&&void 0!==r.minWidth,g=r.maxWidth!==1/0&&void 0!==r.maxWidth,h=f?r.minWidth:0,m=g?r.maxWidth:1/0,b=0===p.length?0:Math.max(...p);o[r.field]=eV(b,h,m)}),n.classList.remove(v.xV.autosizing),o}(e,n,l),a=l.map(e=>(0,i.A)({},e,{width:r[e.field],computedWidth:r[e.field],flex:0}));if(n.expand){let t=o.orderedFields.map(e=>o.lookup[e]).filter(e=>!1!==o.columnVisibilityModel[e.field]).reduce((e,t)=>e+(r[t.field]??t.computedWidth??t.width),0),n=e.current.getRootDimensions().viewportInnerSize.width-t;if(n>0){let e=n/(a.length||1);a.forEach(t=>{t.width+=e,t.computedWidth+=e})}}e.current.updateColumns(a),a.forEach((t,r)=>{if(t.width!==l[r].width){let r=t.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t.field),colDef:t,width:r})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),k.current=!1}},[e,I,t.disableVirtualization]);a.useEffect(()=>y,[y]),(0,oi.A)(()=>{if(t.autosizeOnMount){let r,o,n,l=()=>{o?.(),n?.(),o=void 0,n=void 0},i=()=>{r=void 0,l(),e.current.autosizeColumns(t.autosizeOptions)},a=()=>{(function(e){let t=X(e);if(!t.isReady)return!1;let{rows:r}=nu(e);if(0===r.length)return!0;let o=ng(e);return!(o.lastRowIndex<=o.firstRowIndex)&&(!!t.hasScrollY||0===o.firstRowIndex&&o.lastRowIndex>=r.length)})(e)&&void 0===r&&(r=requestAnimationFrame(i))};return o=e.current.subscribeEvent("stateChange",a),n=e.current.subscribeEvent("renderedRowsIntervalChange",a),a(),()=>{l(),void 0!==r&&cancelAnimationFrame(r)}}}),n6(e,()=>e.current.columnHeadersContainerRef?.current,"touchstart",x,{passive:!0}),nk(e,{autosizeColumns:P},"public"),ef(e,"columnResizeStop",S),ef(e,"columnResizeStart",A),ef(e,"columnSeparatorMouseDown",R),ef(e,"columnSeparatorDoubleClick",M),ef(e,"rowsSet",()=>{""!==ig(e)&&requestAnimationFrame(()=>{f()})}),eh(e,"columnResize",t.onColumnResize),eh(e,"columnWidthChange",t.onColumnWidthChange)})(m,h),((e,t)=>{let r=n4(e,"useGridPaginationMeta");e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:nr,changeEvent:"paginationMetaChange"});let o=a.useCallback(t=>{nr(e)!==t&&(r.debug("Setting 'paginationMeta' to",t),e.current.setState(e=>(0,i.A)({},e,{pagination:(0,i.A)({},e.pagination,{meta:t})})))},[e,r]);nk(e,{setPaginationMeta:o},"public");let n=a.useCallback((r,o)=>{let n=nr(e);return o.exportOnlyDirtyModels&&null==t.paginationMeta&&t.initialState?.pagination?.meta==null?r:(0,i.A)({},r,{pagination:(0,i.A)({},r.pagination,{meta:n})})},[e,t.paginationMeta,t.initialState?.pagination?.meta]),l=a.useCallback((t,r)=>{let o=r.stateToRestore.pagination?.meta?r.stateToRestore.pagination.meta:nr(e);return e.current.setState(e=>(0,i.A)({},e,{pagination:(0,i.A)({},e.pagination,{meta:o})})),t},[e]);lc(e,"exportState",n),lc(e,"restoreState",l),a.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])})(u=m,d=h),((e,t)=>{let r=n4(e,"useGridPaginationModel"),o=(0,C.Nc)(e,F.rf),n=a.useRef((0,ry.ZI)(e)),l=Math.floor(t.rowHeight*o);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:ne,changeEvent:"paginationModelChange"});let s=a.useCallback(t=>{let o=ne(e);t!==o.page&&(r.debug(`Setting page to ${t}`),e.current.setPaginationModel({page:t,pageSize:o.pageSize}))},[e,r]),u=a.useMemo(()=>(0,lb.A)(s,0),[s]),c=a.useCallback(t=>{let o=ne(e);t!==o.pageSize&&(r.debug(`Setting page size to ${t}`),e.current.setPaginationModel({pageSize:t,page:o.page}))},[e,r]),d=a.useCallback(o=>{o!==ne(e)&&(r.debug("Setting 'paginationModel' to",o),e.current.setState(e=>(0,i.A)({},e,{pagination:(0,i.A)({},e.pagination,{paginationModel:lv(e.pagination,t.signature,o)})}),"setPaginationModel"))},[e,r,t.signature]);nk(e,{setPage:s,setPageSize:c,setPaginationModel:d},"public");let p=a.useCallback((r,o)=>{let n=ne(e);return o.exportOnlyDirtyModels&&null==t.paginationModel&&t.initialState?.pagination?.paginationModel==null&&(0===n.page||n.pageSize===100*!t.autoPageSize)?r:(0,i.A)({},r,{pagination:(0,i.A)({},r.pagination,{paginationModel:n})})},[e,t.paginationModel,t.initialState?.pagination?.paginationModel,t.autoPageSize]),f=a.useCallback((r,o)=>{let n=o.stateToRestore.pagination?.paginationModel?(0,i.A)({},o4(t.autoPageSize),o.stateToRestore.pagination?.paginationModel):ne(e);return e.current.setState(e=>(0,i.A)({},e,{pagination:(0,i.A)({},e.pagination,{paginationModel:lv(e.pagination,t.signature,n)})}),"stateRestorePreProcessing"),r},[e,t.autoPageSize,t.signature]);lc(e,"exportState",p),lc(e,"restoreState",f);let g=a.useCallback(()=>
75{if(!t.autoPageSize)return;let r=Math.max(1,Math.floor(e.current.getRootDimensions().viewportInnerSize.height/l));e.current.setPageSize(r)},[e,t.autoPageSize,l]),h=a.useCallback(t=>{if(null==t)return;let r=ne(e);if(0===r.page)return;let o=nl(e);r.page>o-1&&queueMicrotask(()=>{u(Math.max(0,o-1))})},[e,u]),m=a.useCallback(()=>{0!==ne(e).page&&u(0),0!==e.current.getScrollPosition().top&&e.current.scroll({top:0})},[e,u]),b=a.useMemo(()=>(0,lb.A)(m,0),[m]),v=a.useCallback(t=>{let r=(0,i.A)({},t,{items:(0,ry.Ai)(e)});(0,op.H)(r,n.current)||(n.current=r,b())},[e,b]);ef(e,"viewportInnerSizeChange",g),ef(e,"paginationModelChange",()=>{let t=ne(e);e.current.virtualScrollerRef?.current&&e.current.scrollToIndexes({rowIndex:t.page*t.pageSize})}),ef(e,"rowCountChange",h),ef(e,"sortModelChange",b),ef(e,"filterModelChange",v);let w=a.useRef(!0);a.useEffect(()=>{if(w.current){w.current=!1;return}t.pagination&&e.current.setState(e=>(0,i.A)({},e,{pagination:(0,i.A)({},e.pagination,{paginationModel:lv(e.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),a.useEffect(()=>{e.current.setState(e=>{let r=!0===t.pagination;return e.pagination.paginationMode===t.paginationMode&&e.pagination.enabled===r?e:(0,i.A)({},e,{pagination:(0,i.A)({},e.pagination,{paginationMode:t.paginationMode,enabled:r})})})},[e,t.paginationMode,t.pagination]),a.useEffect(g,[g])})(u,d),((e,t)=>{let r=n4(e,"useGridRowCount"),o=(0,oo.A)(()=>ne(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:nt,changeEvent:"rowCountChange"});let n=a.useCallback(t=>{nt(e)!==t&&(r.debug("Setting 'rowCount' to",t),e.current.setState(e=>(0,i.A)({},e,{pagination:(0,i.A)({},e.pagination,{rowCount:t})})))},[e,r]);nk(e,{setRowCount:n},"public");let l=a.useCallback((r,o)=>{let n=nt(e);return o.exportOnlyDirtyModels&&null==t.rowCount&&t.initialState?.pagination?.rowCount==null?r:(0,i.A)({},r,{pagination:(0,i.A)({},r.pagination,{rowCount:n})})},[e,t.rowCount,t.initialState?.pagination?.rowCount]),s=a.useCallback((t,r)=>{let o=r.stateToRestore.pagination?.rowCount?r.stateToRestore.pagination.rowCount:nt(e);return e.current.setState(e=>(0,i.A)({},e,{pagination:(0,i.A)({},e.pagination,{rowCount:o})})),t},[e]);lc(e,"exportState",l),lc(e,"restoreState",s);let u=a.useCallback(r=>{"client"!==t.paginationMode&&o.current&&r.pageSize!==o.current&&(o.current=r.pageSize,-1===nt(e)&&e.current.setPage(0))},[t.paginationMode,o,e]);ef(e,"paginationModelChange",u),a.useEffect(()=>{"server"===t.paginationMode&&null!=t.rowCount&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,t.rowCount]),os(e.current.store,()=>!1===nr(e).hasNextPage||("client"===t.paginationMode?(0,ry.RN)(e):void 0),(t,r)=>{if(!0===r&&-1!==nt(e)){let t=(0,ry.RN)(e),r=ne(e);e.current.setRowCount(r.pageSize*r.page+t)}else"number"==typeof r&&e.current.setRowCount(r)}),a.useEffect(()=>{"client"===t.paginationMode&&e.current.setRowCount((0,ry.RN)(e))},[e,t.paginationMode])})(u,d),((e,t)=>{let r=(0,tN.I)(),o=n4(e,"useGridScroll"),n=e.current.columnHeadersContainerRef,l=e.current.virtualScrollerRef,i=a.useCallback(r=>{let n=X(e),i=(0,ei.H0)(e),a=(0,V.iv)(e);if(null!=r.rowIndex&&0===i||0===a.length)return!1;o.debug(`Scrolling to cell at row ${r.rowIndex}, col: ${r.colIndex} `);let s={};if(void 0!==r.colIndex&&a[r.colIndex]){let t,o=(0,V.Sw)(e);if(void 0!==r.rowIndex){let o=(0,ry.em)(e),n=o[r.rowIndex]?.id,l=e.current.unstable_getCellColSpanInfo(n,r.colIndex);l&&!l.spannedByColSpan&&(t=l.cellProps.width)}void 0===t&&(t=a[r.colIndex].computedWidth),s.left=l5({containerSize:n.viewportOuterSize.width,scrollPosition:Math.abs(l.current?.scrollLeft??0),elementSize:t,elementOffset:o[r.colIndex]})}if(void 0!==r.rowIndex){let o=rh(e),i=no(e),a=nn(e),u=t.pagination?r.rowIndex-i*a:r.rowIndex,c=o.positions[u+1]?o.positions[u+1]-o.positions[u]:o.currentPageTotalHeight-o.positions[u];s.top=l5({containerSize:n.viewportInnerSize.height,scrollPosition:l.current?.scrollTop??0,elementSize:c,elementOffset:o.positions[u]})}return(void 0!==(s=e.current.unstable_applyPipeProcessors("scrollToIndexes",s,r)).left||void 0!==s.top)&&(e.current.scroll(s),!0)},[o,e,l,t.pagination]),s=a.useCallback(e=>{if(l.current&&void 0!==e.left&&n.current){let t=r?-1:1;n.current.scrollLeft=e.left,l.current.scrollLeft=t*e.left,o.debug(`Scrolling left: ${e.left}`)}l.current&&void 0!==e.top&&(l.current.scrollTop=e.top,o.debug(`Scrolling top: ${e.top}`)),o.debug("Scrolling, updating container, and viewport")},[l,r,n,o]);nk(e,{scroll:s,scrollToIndexes:i,getScrollPosition:a.useCallback(()=>l?.current?{top:l.current.scrollTop,left:l.current.scrollLeft}:{top:0,left:0},[l])},"public")})(m,h),(e=>{let t=n4(e,"useGridColumnMenu"),r=a.useRef({}),o=a.useCallback(()=>{r.current.wheel?.(),r.current.touchMove?.()},[]),n=a.useCallback(()=>{o(),r.current.wheel=e.current.subscribeEvent("virtualScrollerWheel",e.current.hideColumnMenu),r.current.touchMove=e.current.subscribeEvent("virtualScrollerTouchMove",e.current.hideColumnMenu)},[e,o]),l=a.useCallback(r=>{let o=rV(e),l=!0,a=r;(l!==o.open||a!==o.field)&&(e.current.setState(e=>e.columnMenu.open&&e.columnMenu.field===r?e:(t.debug("Opening Column Menu"),n(),(0,i.A)({},e,{columnMenu:{open:!0,field:r}}))),e.current.hidePreferences())},[e,t,n]),s=a.useCallback(()=>{let r=rV(e);if(r.field){let t=(0,V.gv)(e),o=(0,V.FY)(e),n=(0,V.JR)(e),l=r.field;if(t[l]||(l=n[0]),!1===o[l]){let e=n.filter(e=>e===l||!1!==o[e]),t=e.indexOf(l);l=e[t+1]||e[t-1]}e.current.setColumnHeaderFocus(l)}let n={open:!1,field:void 0};(n.open!==r.open||n.field!==r.field)&&e.current.setState(e=>(t.debug("Hiding Column Menu"),o(),(0,i.A)({},e,{columnMenu:n})))},[e,t,o]),u=a.useCallback(r=>{t.debug("Toggle Column Menu");let o=rV(e);o.open&&o.field===r?s():l(r)},[e,t,l,s]);nk(e,{showColumnMenu:l,hideColumnMenu:s,toggleColumnMenu:u},"public"),ef(e,"columnResizeStart",s)})(m),((e,t)=>{let r=n4(e,"useGridCsvExport"),o=t.ignoreValueFormatterDuringExport,n=("object"==typeof o?o?.csvExport:o)||!1,l=a.useCallback((t={})=>
75(r.debug("Get data as CSV"),function(e){let{columns:t,rowIds:r,csvOptions:o,ignoreValueFormatter:n,apiRef:l}=e,i=r.reduce((e,r)=>`${e}${(({id:e,columns:t,getCellParams:r,csvOptions:o,ignoreValueFormatter:n})=>{let l=new li({csvOptions:o});return t.forEach(t=>{let i=r(e,t.field);"[object Object]"===String(i.formattedValue)&&(0,eA.m)(["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."]),l.addValue(ll(i,{ignoreValueFormatter:n,csvOptions:o}))}),l.getRowString()})({id:r,columns:t,getCellParams:l.current.getCellParams,ignoreValueFormatter:n,csvOptions:o})}\r 76`,"").trim();if(!o.includeHeaders)return i;let a=t.filter(e=>e.field!==lo.field),s=[];if(o.includeColumnGroupsHeaders){let e=l.current.getAllGroupDetails(),t=0,r=a.reduce((e,r)=>{let o=l.current.getColumnGroupPath(r.field);return e[r.field]=o,t=Math.max(t,o.length),e},{});for(let n=0;n<t;n+=1){let t=new li({csvOptions:o,sanitizeCellValue:ln});s.push(t),a.forEach(o=>{let l=e[(r[o.field]||[])[n]];t.addValue(l?l.headerName||l.groupId:"")})}}let u=new li({csvOptions:o,sanitizeCellValue:ln});a.forEach(e=>{u.addValue(e.headerName||e.field)}),s.push(u);let c=`${s.map(e=>e.getRowString()).join("\r\n")}\r 77`;return`${c}${i}`.trim()}({columns:lg({apiRef:e,options:t}),rowIds:(t.getRowsToExport??lh)({apiRef:e}),csvOptions:{delimiter:t.delimiter||",",shouldAppendQuotes:t.shouldAppendQuotes??!0,includeHeaders:t.includeHeaders??!0,includeColumnGroupsHeaders:t.includeColumnGroupsHeaders??!0,escapeFormulas:t.escapeFormulas??!0},ignoreValueFormatter:n,apiRef:e})),[r,e,n]),i=a.useCallback(e=>{r.debug("Export data as CSV");let t=l(e);!function(e,t="csv",r=document.title||"untitled"){let o=`${r}.${t}`;if("download"in HTMLAnchorElement.prototype){let t=URL.createObjectURL(e),r=document.createElement("a");r.href=t,r.download=o,r.click(),setTimeout(()=>{URL.revokeObjectURL(t)});return}throw Error("MUI X: exportAs not supported.")}(new Blob([e?.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",e?.fileName)},[r,l]);nk(e,{getDataAsCsv:l,exportDataAsCsv:i},"public"),lc(e,"exportMenu",a.useCallback((e,t)=>t.csvOptions?.disableToolbarButton?e:[...e,{component:(0,B.jsx)(lm.jX,{options:t.csvOptions}),componentName:"csvExport"}],[]))})(m,h),((e,t)=>{let r=null!==e.current.rootElementRef.current,o=n4(e,"useGridPrintExport"),n=a.useRef(null),l=a.useRef(null),s=a.useRef({}),u=a.useRef([]),c=a.useRef(null);a.useEffect(()=>{n.current=(0,od.A)(e.current.rootElementRef.current)},[e,r]);let d=a.useCallback((t,r,o)=>new Promise(n=>{let l=lg({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)}),o&&(a[lo.field]=!0),e.current.setColumnVisibilityModel(a),n()}),[e]),p=a.useCallback(t=>{let r=t({apiRef:e}).reduce((t,r)=>{let o=e.current.getRow(r);return o[tl.gb]||t.push(o),t},[]);e.current.setRows(r)},[e]),f=a.useCallback((t,r)=>{let o=(0,i.A)({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},r),l=t.contentDocument;if(!l)return;let a=e.current.rootElementRef.current,s=a.cloneNode(!0),u=s.querySelector(`.${v.xV.virtualScrollerContent}`);if(s.querySelector(`.${v.xV.main}`).style.overflow="visible",s.querySelector(`.${v.xV.virtualScrollerRenderZone}`).style.position="static",u.style.flexBasis="auto",s.querySelector(`.${v.xV["scrollbar--vertical"]}`)?.remove(),!(u.nextSibling instanceof HTMLElement&&u.nextSibling.classList.contains(v.xV.filler))){let e=document.createElement("div");e.style.height=r2,u.insertAdjacentElement("afterend",e)}let c=s.querySelector(`.${v.xV.footerContainer}`);o.hideToolbar&&s.querySelector(`.${v.xV.toolbar}`)?.remove(),o.hideFooter&&c&&c.remove(),s.style.height="auto",s.style.boxSizing="content-box",!o.hideFooter&&c&&(c.style.width="100%");let d=document.createElement("div");d.appendChild(s),l.body.style.marginTop="0px",l.body.innerHTML=d.innerHTML;let p="function"==typeof o.pageStyle?o.pageStyle():o.pageStyle;if("string"==typeof p){let e=l.createElement("style");e.appendChild(l.createTextNode(p)),l.head.appendChild(e)}o.bodyClassName&&l.body.classList.add(...o.bodyClassName.split(" "));let f=[];if(o.copyStyles){let e=a.getRootNode();f=function(e,t,r){let o=[],n=t.querySelectorAll("style, link[rel='stylesheet']");for(let t=0;t<n.length;t+=1){let r=n[t],l=e.createElement(r.tagName);if("STYLE"===r.tagName){let 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 78`);l.appendChild(e.createTextNode(r))}}else if(r.getAttribute("href")){for(let e=0;e<r.attributes.length;e+=1){let t=r.attributes[e];t&&l.setAttribute(t.nodeName,t.nodeValue||"")}o.push(new Promise(e=>{l.addEventListener("load",()=>e())}))}e.head.appendChild(l)}return o}(l,"ShadowRoot"===e.constructor.name?e:n.current)}Promise.all(f).then(()=>{t.contentWindow.print()})},[e,n]),g=a.useCallback(t=>{n.current.body.removeChild(t),e.current.restoreState(l.current||{}),l.current?.columns?.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.setState(e=>(0,i.A)({},e,{virtualization:c.current})),e.current.setRows(u.current),l.current=null,s.current={},u.current=[]},[e]),h=a.useCallback(async r=>{if(o.debug("Export data as Print"),!e.current.rootElementRef.current)throw Error("MUI X: No grid root element available.");if(l.current=e.current.exportState(),s.current=(0,V.FY)(e),u.current=e.current.getSortedRows().filter(e=>!e[tl.gb]),t.pagination){let t={page:0,pageSize:(0,ry.O7)(e)};e.current.setState(e=>(0,i.A)({},e,{pagination:(0,i.A)({},e.pagination,{paginationModel:lv(e.pagination,"DataGridPro",t)})}))}c.current=e.current.state.virtualization,e.current.unstable_setVirtualization(!1),await d(r?.fields,r?.allColumns,r?.includeCheckboxes),p(r?.getRowsToExport??lh),await new Promise(e=>{requestAnimationFrame(()=>{e()})});let a=function(e){let t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}(r?.fileName);a.onload=()=>{f(a,r),a.contentWindow.matchMedia("print").addEventListener("change",e=>{!1===e.matches&&g(a)})},n.current.body.appendChild(a)},[t,o,e,f,g,d,p]);nk(e,{exportDataAsPrint:h},"public"),lc(e,"exportMenu",a.useCallback((e,t)=>t.printOptions?.disableToolbarButton?e:[...e,{component:(0,B.jsx)(lm.ME,{options:t.printOptions}),componentName:"printExport"}],[]))})(m,h),((e,t)=>{let r=t.ignoreValueFormatterDuringExport,o=("object"==typeof r?r?.clipboardExport:r)||!1,n=t.clipboardCopyCellDelimiter,l=a.useCallback(t=>{var r,l;if(!(0,la._n)(t)||(r=t.target,window.getSelection()?.toString()||r&&(r.selectionEnd||0)-(r.selectionStart||0)>0))return;let i="";if(nR(e)>0)i=e.current.getDataAsCsv({includeHeaders:!1,delimiter:n,shouldAppendQuotes:!1,escapeFormulas:!1});else{let t=rE(e);t&&(i=ll(e.current.getCellParams(t.id,t.field),{csvOptions:{delimiter:n,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:o}))}(i=e.current.unstable_applyPipeProcessors("clipboardCopy",i))&&(l=i,navigator.clipboard?navigator.clipboard.writeText(l).catch(()=>{ls(l)}):ls(l),e.current.publishEvent("clipboardCopy",i))},[e,o,n]);n6(e,()=>e.current.rootElementRef.current,"keydown",l),eh(e,"clipboardCopy",t.onClipboardCopy)})(m,h),!function(e,t){let r=a.useCallback(()=>X(e),[e]);nk(e,{getRootDimensions:r},"public"),nk(e,{updateDimensions:()=>e.current.virtualizer.api.updateDimensions(),getViewportPageSize:()=>e.current.virtualizer.api.getViewportPageSize()},"private"),eh(e,"rootMount",t=>{ie(t,X(e))}),eh(e,"debouncedResize",t.onResize),os(e.current.store,e=>e.dimensions,(t,r)=>{var o,n;r.isReady&&(e.current.rootElementRef.current&&ie(e.current.rootElementRef.current,r),o=r.viewportInnerSize,n=t.viewportInnerSize,(o.width!==n.width||o.height!==n.height)&&e.current.publishEvent("viewportInnerSizeChange",r.viewportInnerSize),e.current.publishEvent("debouncedResize",r.root))})}(m,h),eh(p=m,"columnHeaderClick",(f=h).onColumnHeaderClick),eh(p,"columnHeaderContextMenu",f.onColumnHeaderContextMenu),eh(p,"columnHeaderDoubleClick",f.onColumnHeaderDoubleClick),eh(p,"columnHeaderOver",f.onColumnHeaderOver),eh(p,"columnHeaderOut",f.onColumnHeaderOut),eh(p,"columnHeaderEnter",f.onColumnHeaderEnter),eh(p,"columnHeaderLeave",f.onColumnHeaderLeave),eh(p,"cellClick",f.onCellClick),eh(p,"cellDoubleClick",f.onCellDoubleClick),eh(p,"cellKeyDown",f.onCellKeyDown),eh(p,"preferencePanelClose",f.onPreferencePanelClose),eh(p,"preferencePanelOpen",f.onPreferencePanelOpen),eh(p,"menuOpen",f.onMenuOpen),eh(p,"menuClose",f.onMenuClose),eh(p,"rowDoubleClick",f.onRowDoubleClick),eh(p,"rowClick",f.onRowClick),eh(p,"stateChange",f.onStateChange),(e=>{let t=a.useCallback((t={})=>e.current.unstable_applyPipeProcessors("exportState",{},t),[e]),r=a.useCallback(t=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:t}
78).callbacks.forEach(e=>{e()})},[e]);nk(e,{exportState:t,restoreState:r},"public")})(m),!function(e,t){let{autoHeight:r,disableVirtualization:o}=t,n=t=>{let{virtualizer:o}=e.current;t&&=iu;let n=o.store.getSnapshot();(n.virtualization.enabled!==t||n.virtualization.enabledForRows!==t||n.virtualization.enabledForColumns!==t)&&o.store.set("virtualization",(0,i.A)({},o.store.state.virtualization,{enabled:t,enabledForColumns:t,enabledForRows:t&&!r}))},l={unstable_setVirtualization:n,unstable_setColumnVirtualization:t=>{let{virtualizer:r}=e.current;t&&=iu,r.store.getSnapshot().virtualization.enabledForColumns!==t&&r.store.set("virtualization",(0,i.A)({},r.store.state.virtualization,{enabledForColumns:t}))}};nk(e,l,"public");let s=()=>{let{virtualizer:t}=e.current;t?.api.scheduleUpdateRenderContext()};e.current.register("private",{updateRenderContext:s}),eh(e,"sortedRowsSet",s),eh(e,"paginationModelChange",s),eh(e,"columnsChange",s),a.useEffect(()=>{e.current.virtualizer&&n(!t.disableVirtualization)},[e,o,r])}(m,h),!function(e,t){let r=()=>{e.current.setState(t=>t.listViewColumn?(0,i.A)({},t,{listViewColumn:(0,i.A)({},t.listViewColumn,{computedWidth:ik(e)})}):t)},o=a.useRef(null);ef(e,"viewportInnerSizeChange",e=>{o.current!==e.width&&(o.current=e.width,r())}),ef(e,"columnVisibilityModelChange",r),(0,ev.A)(()=>{let r=t.listViewColumn;r&&e.current.setState(t=>(0,i.A)({},t,{listViewColumn:(0,i.A)({},r,{computedWidth:ik(e)})}))},[e,t.listViewColumn]),a.useEffect(()=>{t.listView&&!t.listViewColumn&&(0,eA.m)(["MUI X: The `listViewColumn` prop must be set if `listView` is enabled.",'To fix, pass a column definition to the `listViewColumn` prop, e.g. `{ field: "example", renderCell: (params) => <div>{params.row.id}</div> }`.',"For more details, see https://mui.com/x/react-data-grid/list-view/"])},[t.listView,t.listViewColumn])}(m,h),((e,t)=>{let{api:r,strategyProcessor:o,events:n,setStrategyAvailability:l}=((e,t,r={})=>{let o=a.useCallback(()=>{e.current.setStrategyAvailability(n1.DataSource,iE.Default,t.dataSource?()=>!0:()=>!1)},[e,t.dataSource]),[n,l]=a.useState(e.current.getActiveStrategy(n1.DataSource)),s=a.useMemo(()=>n===iE.Default||n===iE.GroupedData,[n]),u=(0,C.Nc)(e,ne),d=a.useRef(0),p=a.useRef(null),f=t.onDataSourceError,g=t.dataSourceRevalidateMs,h=(0,oo.A)(()=>{if(!t.pagination)return new iT(u.pageSize);let e=t.pageSizeOptions.map(e=>"number"==typeof e?e:e.value).sort((e,t)=>e-t);return new iT(Math.min(u.pageSize,e[0]))}).current,[m,b]=a.useState(()=>ij(t.dataSourceCache,r.cacheOptions)),v=a.useCallback(async(o,n)=>{let l=t.dataSource?.getRows;if(!l)return;if(o&&o!==tl.OL&&"DataGrid"!==t.signature)return void r.fetchRowChildren?.([o]);r.clearDataSourceState?.();let a=n||{},{skipCache:u,keepChildrenExpanded:p}=a,g=(0,c.A)(a,iH),b=(0,i.A)({},iP(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),g),v=h.getCacheKeys(b).map(e=>m.get(e));if(!u&&v.every(e=>void 0!==e))return void e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:iT.mergeResponses(v),fetchParams:b,options:{skipCache:u,keepChildrenExpanded:p}});(s||0===e.current.getRowsCount())&&e.current.setLoading(!0);let w=d.current+1;d.current=w;try{let t=await l(b);h.splitResponse(b,t).forEach((e,t)=>m.set(t,e)),d.current===w&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:t,fetchParams:b,options:{skipCache:u,keepChildrenExpanded:p}})}catch(t){d.current===w&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:t,fetchParams:b,options:{skipCache:u,keepChildrenExpanded:p}}),"function"==typeof f?f(new iO({message:t?.message,params:b,cause:t})):(0,eA.m)(["MUI X: A call to `dataSource.getRows()` threw an error which was not handled because `onDataSourceError()` is missing.","To handle the error pass a callback to the `onDataSourceError` prop, for example `<DataGrid onDataSourceError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/server-side-data/#error-handling."],"error"))}finally{s&&d.current===w&&e.current.setLoading(!1)}},[h,m,e,s,t.dataSource?.getRows,f,r,t.signature]),w=a.useCallback(()=>
78{l(e.current.getActiveStrategy(n1.DataSource))},[e]),x=r.fetchRowChildren,y=(0,ea.A)(async()=>{let r=t.dataSource?.getRows;if(!r||!s)return;let o=()=>{if(n!==iE.GroupedData||!x)return;let t=(0,ei.qj)(e),r=nu(e).rows.reduce((e,r)=>{let o=t[r.id];return"group"===o.type&&o.id!==tl.OL&&!0===o.childrenExpanded&&e.push(r.id),e},[]);r.length>0&&x(r,{showChildrenLoading:!1})},l=(0,i.A)({},iP(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}));if(h.getCacheKeys(l).map(e=>m.get(e)).every(e=>void 0!==e))return void o();try{let t=await r(l),n=(0,i.A)({},iP(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}));if(!(0,op.H)(l,n))return;h.splitResponse(l,t).forEach((e,t)=>m.set(t,e)),e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:t,fetchParams:l,options:{}}),o()}catch{}}),A=a.useCallback(()=>{null!==p.current&&(clearInterval(p.current),p.current=null)},[]),S=(0,ea.A)(()=>{A(),!(g<=0)&&s&&(p.current=setInterval(y,g))}),R=a.useCallback(t=>{if("error"in t)return void e.current.setRows([]);let{response:r}=t;void 0!==r.rowCount&&e.current.setRowCount(r.rowCount),e.current.setRows(r.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:t.fetchParams,response:r},!0),S()},[e,S]),M=t.dataSource?.updateRow,I=r.handleEditRow,k=a.useCallback(async t=>{if(M)try{let r=await M(t);if("function"==typeof I)return I(t,r),r;return r&&!(0,op.H)(r,t.previousRow)&&e.current.dataSource.cache.clear(),e.current.updateNestedRows([r],[]),r}catch(e){throw"function"==typeof f?f(new iz({message:e?.message,params:t,cause:e})):(0,eA.m)(["MUI X: A call to `dataSource.updateRow()` threw an error which was not handled because `onDataSourceError()` is missing.","To handle the error pass a callback to the `onDataSourceError` prop, for example `<DataGrid onDataSourceError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/server-side-data/#error-handling."],"error"),e}},[e,M,f,I]),P=a.useMemo(()=>(0,lb.A)(v,0),[v]),E=a.useCallback(()=>{e.current.setRows([]),A(),P()},[A,P,e]),T=a.useRef(!0);return a.useEffect(()=>{if(T.current){T.current=!1;return}if(void 0===t.dataSourceCache)return;let e=ij(t.dataSourceCache,r.cacheOptions);b(t=>t!==e?e:t)},[t.dataSourceCache,r.cacheOptions]),a.useEffect(()=>{s||A()},[s,A]),a.useEffect(()=>{g<=0&&A()},[g,A]),a.useEffect(()=>A,[A]),a.useEffect(()=>{if(n===iE.Default||n===iE.LazyLoading||n===iE.GroupedData)return t.dataSource&&(A(),e.current.setRows([]),e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows()),()=>{d.current+=1}},[e,t.dataSource,n,A]),{api:{public:{dataSource:{fetchRows:v,cache:m,editRow:k}}},debouncedFetchRows:P,strategyProcessor:{strategyName:iE.Default,group:"dataSourceRowsUpdate",processor:R},setStrategyAvailability:o,startPolling:S,stopPolling:A,cacheChunkManager:h,cache:m,events:{strategyAvailabilityChange:w,sortModelChange:eN(s,E),filterModelChange:eN(s,E),paginationModelChange:eN(s,E)}}})(e,t);nk(e,r.public,"public"),lw(e,o.strategyName,o.group,o.processor),Object.entries(n).forEach(([t,r])=>{ef(e,t,r)}),a.useEffect(()=>{l()},[l])})(m,h),o9(()=>{m.current.runAppliersForPendingProcessors()}),a.useEffect(()=>{m.current.runAppliersForPendingProcessors()}),(0,B.jsx)(nq,{privateApiRef:m,configuration:dN,props:h,children:(0,B.jsx)(nj,(0,i.A)({className:h.className,style:h.style,sx:h.sx},h.slotProps?.root,{ref:t}))})},d$=a.memo((0,u.R)(dL));dL.propTypes={apiRef:s.shape({current:s.object}),"aria-label":s.string,"aria-labelledby":s.string,autoHeight:s.bool,autoPageSize:s.bool,autosizeOnMount:s.bool,autosizeOptions:s.shape({columns:s.arrayOf(s.string),disableColumnVirtualization:s.bool,expand:s.bool,includeHeaders:s.bool,includeOutliers:s.bool,outliersFactor:s.number}),cellModesModel:s.object,checkboxSelection:s.bool,classes:s.object,className:s.string,clipboardCopyCellDelimiter:s.string,columnBufferPx:s.number,columnFilterDebounceMs:s.number,columnGroupHeaderHeight:s.number,columnGroupingModel:s.arrayOf(s.object),columnHeaderHeight:s.number,columns:s.arrayOf(s.object).isRequired,columnVisibilityModel:s.object,dataSource:s.shape({getRows:s.func.isRequired,updateRow:s.func}),dataSourceCache:s.shape({clear:s.func.isRequired,get:s.func.isRequired,set:s.func.isRequired}),dataSourceRevalidateMs:s.number,density:s.oneOf(["comfortable","compact","standard"]),disableAutosize:s.bool,disableColumnFilter:s.bool,disableColumnMenu:s.bool,disableColumnResize:s.bool,disableColumnSelector:s.bool,disableColumnSorting:s.bool,disableDensitySelector:s.bool,disableEval:s.bool,disableMultipleRowSelection:s.bool,disableRowSelectionExcludeModel:s.bool,disableRowSelectionOnClick:s.bool,disableVirtualization:s.bool,editMode:s.oneOf(["cell","row"]),estimatedRowCount:s.number,experimentalFeatures:s.shape({warnIfFocusStateIsNotSynced:s.bool}),filterDebounceMs:s.number,filterMode:s.oneOf(["client","server"]),filterModel:s.shape({items:s.arrayOf(s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any})).isRequired,logicOperator:s.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:s.bool,quickFilterLogicOperator:s.oneOf(["and","or"]),quickFilterValues:s.array}),getCellClassName:s.func,getDetailPanelContent:s.func,getEstimatedRowHeight:s.func,getRowClassName:s.func,getRowHeight:s.func,getRowId:s.func,getRowSpacing:s.func,hideFooter:s.bool,hideFooterPagination:s.bool,hideFooterSelectedRowCount:s.bool,ignoreDiacritics:s.bool,ignoreValueFormatterDuringExport:s.oneOfType([s.shape({clipboardExport:s.bool,csvExport:s.bool}),s.bool]),initialState:s.object,isCellEditable:s.func,isRowSelectable:s.func,keepNonExistentRowsSelected:s.bool,label:s.string,loading:s.bool,localeText:s.object,logger:s.shape({debug:s.func.isRequired,error:s.func.isRequired,info:s.func.isRequired,warn:s.func.isRequired}),logLevel:s.oneOf(["debug","error","info","warn",!1]),nonce:s.string,onCellClick:s.func,onCellDoubleClick:s.func,onCellEditStart:s.func,onCellEditStop:s.func,onCellKeyDown:s.func,onCellModesModelChange:s.func,onClipboardCopy:s.func,onColumnHeaderClick:s.func,onColumnHeaderContextMenu:s.func,onColumnHeaderDoubleClick:s.func,onColumnHeaderEnter:s.func,onColumnHeaderLeave:s.func,onColumnHeaderOut:s.func,onColumnHeaderOver:s.func,onColumnOrderChange:s.func,onColumnResize:s.func,onColumnVisibilityModelChange:s.func,onColumnWidthChange:s.func,onDataSourceError:s.func,onDensityChange:s.func,onFilterModelChange:s.func,onMenuClose:s.func,onMenuOpen:s.func,onPaginationMetaChange:s.func,onPaginationModelChange:s.func,onPreferencePanelClose:s.func,onPreferencePanelOpen:s.func,onProcessRowUpdateError:s.func,onResize:s.func,onRowClick:s.func,onRowCountChange:s.func,onRowDoubleClick:s.func,onRowEditStart:s.func,onRowEditStop:s.func,onRowModesModelChange:s.func,onRowSelectionModelChange:s.func,onSortModelChange:s.func,onStateChange:s.func,pageSizeOptions:s.arrayOf(s.oneOfType([s.number,s.shape({label:s.string.isRequired,value:s.number.isRequired})]).isRequired),pagination:s.oneOf([!0]),paginationMeta:s.shape({hasNextPage:s.bool}),paginationMode:s.oneOf(["client","server"]),paginationModel:s.shape({page:s.number.isRequired,pageSize:s.number.isRequired}),processRowUpdate:s.func,resizeThrottleMs:s.number,rowBufferPx:s.number,rowCount:s.number,rowHeight:s.number,rowModesModel:s.object,rows:s.arrayOf(s.object),rowSelection:s.bool,rowSelectionModel:s.shape({ids:s.instanceOf(Set).isRequired,type:s.oneOf(["exclude","include"]).isRequired}),rowSpacingType:s.oneOf(["border","margin"]),rowSpanning:s.bool,scrollbarSize:s.number,showCellVerticalBorder:s.bool,showColumnVerticalBorder:s.bool,showToolbar:s.bool,slotProps:s.object,slots:s.object,sortingMode:s.oneOf(["client","server"]),sortingOrder:s.arrayOf(s.oneOf(["asc","desc"])),sortModel:s.arrayOf(s.shape({field:s.string.isRequired,sort:s.oneOf(["asc","desc"])})),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),virtualizeColumnsWithAutoRowHeight:s.bool}},3717:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4526:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var o=r(14232),n=r(69241),l=r(13323),i=r(64170),a=r(66260),s=r(3304),u=r(66438),c=r(95651),d=r(63915),p=r(14457),f=r(21849);function g(e){return(0,f.Ay)("MuiTableCell",e)}let h=(0,p.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var m=r(37876);let b=(0,u.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,i.A)(r.size))],"normal"!==r.padding&&t["padding".concat((0,i.A)(r.padding))],"inherit"!==r.align&&t["align".concat((0,i.A)(r.align))],r.stickyHeader&&t.stickyHeader]}})((0,c.A)(e=>{let{theme:t}=e;return{...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?t.lighten(t.alpha(t.palette.divider,1),.88):t.darken(t.alpha(t.palette.divider,1),.68)),textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",["&.".concat(h.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:e=>{let{ownerState:t}=e;return t.stickyHeader},style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}})),v=o.forwardRef(function(e,t){let r,u=(0,d.b)({props:e,name:"MuiTableCell"}),{align:c="inherit",className:p,component:f,padding:h,scope:v,size:w,sortDirection:C,variant:x,...y}=u,A=o.useContext(a.A),S=o.useContext(s.A),R=S&&"head"===S.variant,M=v;"td"===(r=f||(R?"th":"td"))?M=void 0:!M&&R&&(M="col");let I=x||S&&S.variant,k={...u,align:c,component:r,padding:h||(A&&A.padding?A.padding:"normal"),size:w||(A&&A.size?A.size:"medium"),sortDirection:C,stickyHeader:"head"===I&&A&&A.stickyHeader,variant:I},P=(e=>{let{classes:t,variant:r,align:o,padding:n,size:a,stickyHeader:s}=e,u={root:["root",r,s&&"stickyHeader","inherit"!==o&&"align".concat((0,i.A)(o)),"normal"!==n&&"padding".concat((0,i.A)(n)),"size".concat((0,i.A)(a))]};return(0,l.A)(u,g,t)})(k),E=null;return C&&(E="asc"===C?"ascending":"descending"),(0,m.jsx)(b,{as:r,ref:t,className:(0,n.A)(P.root,p),"aria-sort":E,scope:M,ownerState:k,...y})})},7750:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});
78let o=r(14232).createContext(void 0)},10048:(e,t,r)=>{"use strict";r.d(t,{U:()=>C});var o=r(44501),n=r(40670),l=r(14232),i=r(69241),a=r(13323),s=r(61013),u=r(66438),c=r(26762),d=r(95610),p=r(57641),f=r(25640),g=r(96188),h=r(58193),m=r(27460),b=r(37876);let v=["open","target","onClose","children","position","className","onExited"],w=(0,u.Ay)(m.p,{name:"MuiDataGrid",slot:"Menu"})({zIndex:d.f.zIndex.menu,[`& .${f.xV.menuList}`]:{outline:0}});function C(e){let{open:t,target:r,onClose:u,children:d,position:m,className:C,onExited:x}=e,y=(0,n.A)(e,v),A=(0,h.h)(),S=(0,g.A)(),R=(e=>{let{classes:t}=e;return(0,a.A)({root:["menu"]},f.B9,t)})(S),M=(0,p.oz)(),I=l.useRef(null);return(0,s.A)(()=>{t?I.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(I.current?.focus?.(),I.current=null)},[t]),l.useEffect(()=>{let e=t?"menuOpen":"menuClose";A.current.publishEvent(e,{target:r})},[A,t,r]),(0,b.jsx)(w,(0,o.A)({as:S.slots.basePopper,className:(0,i.A)(R.root,C,M),ownerState:S,open:t,target:r,transition:!0,placement:m,onClickAway:e=>{e.target&&(r===e.target||r?.contains(e.target))||u(e)},onExited:x,clickAwayMouseEvent:"onMouseDown",onKeyDown:e=>{(0,c.HF)(e.key)&&u(e)}},y,S.slotProps?.basePopper,{children:d}))}},11132:(e,t,r)=>{"use strict";r.d(t,{_:()=>l});var o=r(44501),n=r(14232);function l(e,t,r,i={}){var a,s;return"function"==typeof t?t(r,i):t?(t.props.className&&(a=t.props.className,s=r.className,r.className=a&&s?`${a} ${s}`:a||s),(t.props.style||r.style)&&(r.style=(0,o.A)({},r.style,t.props.style)),n.cloneElement(t,r)):n.createElement(e,r)}},11798:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>n,S:()=>l,gz:()=>i});var o=r(29092);let n=(...e)=>{let t=(0,o.Mz)(...e);return(e,r,o,n)=>t(a(e),r,o,n)},l=(...e)=>{let t=(0,o.S)(...e);return(e,r,o,n)=>t(a(e),r,o,n)},i=e=>(t,r)=>e(a(t),r);function a(e){return"current"in e?e.current.state:e}},13731:(e,t,r)=>{"use strict";r.d(t,{Nc:()=>f,TJ:()=>u});var o=r(14232),n=r(61013),l=r(50494),i=r(18372),a=r(64639);let s=Object.is,u=l.v,c=(e,t)=>e===t||e.length===t.length&&e.every((e,r)=>e===t[r]),d=()=>({state:null,equals:null,selector:null,args:void 0,storeState:null}),p=[];function f(e,t,r,l=s){let g;e.current.state||(0,i.m)(["MUI X: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);let h=(0,a.A)(d),m=null!==h.current.selector,[b,v]=o.useState(m?null:t(e,r));h.current.state=b,m||(h.current.storeState=e.current.store.state),h.current.equals=l,h.current.selector=t;let w=h.current.args;if(h.current.args=r,m&&(g=Object.is,r instanceof Array?g=c:r instanceof Object&&(g=u),!g(w,r))){let t=h.current.selector(e,h.current.args);h.current.equals(h.current.state,t)||(h.current.state=t,v(t)),h.current.storeState=e.current.store.state}let C=o.useCallback(()=>{let t=e.current.store.state;if(h.current.storeState!==t){let r=h.current.selector(e,h.current.args);h.current.storeState=t,h.current.equals(h.current.state,r)||(h.current.state=r,v(r))}},p);return(0,n.A)(()=>(C(),e.current.store.subscribe(C)),p),b}},15534:(e,t,r)=>{"use strict";r.d(t,{iH:()=>a,wU:()=>i});var o=r(14232),n=r(37876);let l=o.createContext(void 0);function i(){let e=o.useContext(l);if(void 0===e)throw Error("MUI X: Missing context. Toolbar subcomponents must be placed within a <Toolbar /> component.");return e}function a({children:e}){let[t,r]=o.useState(null),i=o.useRef(t),a=o.useRef(null),[u,c]=o.useState([]),d=o.useCallback(e=>{i.current=e,r(e)},[]),p=o.useCallback(()=>u.sort(s),[u]),f=o.useCallback((e,t,r=!0)=>{let o=e,n=p(),l=n.length;for(let e=0;e<l;e+=1){if((o+=t)>=l){if(!r)return -1;o=0}else if(o<0){if(!r)return -1;o=l-1}if(!n[o].ref.current?.disabled&&n[o].ref.current?.ariaDisabled!=="true")return o}return -1},[p]),g=o.useCallback((e,t)=>{c(r=>[...r,{id:e,ref:t}])},[]),h=o.useCallback(e=>{c(t=>t.filter(t=>t.id!==e))},[]),m=o.useCallback(e=>{if(!t)return;let r=p(),o=r.findIndex(e=>e.id===t),n=-1;if("ArrowRight"===e.key?(e.preventDefault(),n=f(o,1)):"ArrowLeft"===e.key?(e.preventDefault(),n=f(o,-1)):"Home"===e.key?(e.preventDefault(),n=f(-1,1,!1)):"End"===e.key&&(e.preventDefault(),n=f(r.length,-1,!1)),n>=0&&n<r.length){let e=r[n];d(e.id),e.ref.current?.focus()}},[p,t,f,d]),b=o.useCallback(e=>{a.current=e,t!==e&&d(e)},[t,d]),v=o.useCallback((e,t)=>{t.currentTarget.disabled||a.current===e&&(a.current=null)},[]),w=o.useCallback(e=>{let t=a.current===e,r=i.current===e;if(!t&&!r)return;let o=p(),n=o.findIndex(t=>t.id===e);if(-1===n)return;let l=t&&!!o[n].ref.current?.disabled,s=f(n,1);if(s>=0&&s<o.length){let e=o[s];d(e.id),l&&(a.current=e.id,e.ref.current?.focus())}else l&&(a.current=null)},[p,f,d]);o.useEffect(()=>{let e=p();if(0!==e.length){if(!i.current){let t=f(-1,1,!1);d(e[-1===t?0:t].id);return}if(!e.some(e=>e.id===i.current)){let t=e[e.length-1];d(t.id),null===a.current||e.some(e=>e.id===a.current)||(a.current=t.id,t.ref.current?.focus())}}},[p,f,d]);let C=o.useMemo(()=>({focusableItemId:t,registerItem:g,unregisterItem:h,onItemKeyDown:m,onItemFocus:b,onItemBlur:v,onItemDisabled:w}),[t,g,h,m,b,v,w]);return(0,n.jsx)(l.Provider,{value:C,children:e})}function s(e,t){if(!e.ref.current||!t.ref.current)return 0;let r=e.ref.current.compareDocumentPosition(t.ref.current);return r?r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0:0}},18070:(e,t,r)=>{"use strict";r.d(t,{M:()=>b});var o=r(44501),n=r(40670);r(14232);
78var l=r(66438),i=r(13323),a=r(69241),s=r(78438),u=r(11132),c=r(15534),d=r(95610),p=r(25640),f=r(96188),g=r(37876);let h=["render","className"],m=(0,l.Ay)("div",{name:"MuiDataGrid",slot:"Toolbar"})({flex:"0 1 1px",display:"flex",alignItems:"center",justifyContent:"end",gap:d.f.spacing(.25),padding:d.f.spacing(.75),minHeight:52,boxSizing:"border-box",borderBottom:`1px solid ${d.f.colors.border.base}`}),b=(0,s.R)(function(e,t){let{render:r,className:l}=e,s=(0,n.A)(e,h),d=(0,f.A)(),b=(e=>{let{classes:t}=e;return(0,i.A)({root:["toolbar"]},p.B9,t)})(d),v=(0,u._)(m,r,(0,o.A)({role:"toolbar","aria-orientation":"horizontal","aria-label":d.label||void 0,className:(0,a.A)(b.root,l)},s,{ref:t}));return(0,g.jsx)(c.iH,{children:v})})},18372:(e,t,r)=>{"use strict";function o(e,t="warning"){}r.d(t,{m:()=>o})},19949:(e,t,r)=>{"use strict";r.d(t,{$2:()=>v,A6:()=>h,Dl:()=>i,H0:()=>l,Mz:()=>f,O8:()=>a,OQ:()=>w,Qu:()=>c,V2:()=>g,Y1:()=>p,Zy:()=>m,qj:()=>u,r:()=>d,rI:()=>s});var o=r(11798);let n=(0,o.gz)(e=>e.rows),l=(0,o.Mz)(n,e=>e.totalRowCount),i=(0,o.Mz)(n,e=>e.loading),a=(0,o.Mz)(n,e=>e.totalTopLevelRowCount),s=(0,o.Mz)(n,e=>
78e.dataRowIdToModelLookup);(0,o.Mz)(s,(e,t)=>e[t]);let u=(0,o.Mz)(n,e=>e.tree),c=(0,o.Mz)(u,(e,t)=>e[t]),d=(0,o.Mz)(n,e=>e.groupsToFetch),p=(0,o.Mz)(n,e=>e.groupingName),f=(0,o.Mz)(n,e=>e.treeDepths),g=(0,o.S)(n,e=>{let 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]??0)+1}),h=(0,o.Mz)(n,e=>e.dataRowIds),m=(0,o.S)(h,s,(e,t)=>e.reduce((e,r)=>(t[r]&&e.push(t[r]),e),[])),b=(0,o.Mz)(n,e=>e?.additionalRowGroups),v=(0,o.S)(b,e=>{let 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??{}}))??[]}}),w=(0,o.Mz)(v,e=>(e?.top?.length||0)+(e?.bottom?.length||0))},20993:(e,t,r)=>{"use strict";r.d(t,{I:()=>h});var o=r(44501),n=r(40670),l=r(14232),i=r(99351),a=r(78438),s=r(11132),u=r(19993),c=r(15534),d=r(96188),p=r(37876);let f=["render","onKeyDown","onFocus","onBlur","disabled","aria-disabled"],g=["tabIndex"],h=(0,a.R)(function(e,t){let{render:r}=e,a=(0,n.A)(e,f),h=(0,d.A)(),m=l.useRef(null),b=(0,i.A)(m,t),v=function(e,t){let{onKeyDown:r,onFocus:o,onBlur:n,disabled:i,"aria-disabled":a}=e,s=(0,u.A)(),{focusableItemId:d,registerItem:p,unregisterItem:f,onItemKeyDown:g,onItemFocus:h,onItemBlur:m,onItemDisabled:b}=(0,c.wU)();l.useEffect(()=>(p(s,t),()=>f(s)),[s,t,p,f]);let v=l.useRef(i);l.useEffect(()=>{v.current!==i&&!0===i&&b(s),v.current=i},[i,s,b]);let w=l.useRef(a);return l.useEffect(()=>{w.current!==a&&!0===a&&b(s),w.current=a},[a,s,b]),{tabIndex:d===s?0:-1,disabled:i,"aria-disabled":a,onKeyDown:e=>{g(e),r?.(e)},onFocus:e=>{h(s),o?.(e)},onBlur:e=>{m(s,e),n?.(e)}}}(e,m),{tabIndex:w}=v,C=(0,n.A)(v,g),x=(0,s._)(h.slots.baseIconButton,r,(0,o.A)({},h.slotProps?.baseIconButton,{tabIndex:w},a,C,{ref:b}));return(0,p.jsx)(l.Fragment,{children:x})})},23195:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});let o=r(14232).createContext(void 0)},25640:(e,t,r)=>{"use strict";r.d(t,{B9:()=>l,cf:()=>i,xV:()=>a});var o=r(21849),n=r(14457);function l(e){return(0,o.Ay)("MuiDataGrid",e)}let i={root:["autoHeight","autosizing","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","withVerticalBorder"],children:["actionsCell","booleanCell","cell","cell--editable","cell--editing","cell--flex","cell--pinnedLeft","cell--pinnedRight","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--rangeTop","cell--selectionMode","cell--textCenter","cell--textLeft","cell--textRight","cell--withLeftBorder","cell--withRightBorder","cellCheckbox","cellEmpty","cellOffsetLeft","cellSkeleton","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--emptyGroup","columnHeader--filledGroup","columnHeader--filtered","columnHeader--last","columnHeader--moving","columnHeader--numeric","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--siblingFocused","columnHeader--sortable","columnHeader--sorted","columnHeader--withLeftBorder","columnHeader--withRightBorder","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnSeparator","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","container--bottom","container--top","detailPanelToggleCell","detailPanelToggleCell--expanded","editBooleanCell","filterIcon","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","groupingCriteriaCell","groupingCriteriaCellLoadingContainer","groupingCriteriaCellToggle","headerFilterRow","iconSeparator","menuIcon","menuIconButton","menuList","menuOpen","overlayWrapperInner","pinnedRows","pinnedRows--bottom","pinnedRows--top","row","row--borderBottom","row--detailPanelExpanded","row--dragging","row--dynamicHeight","row--editable","row--editing","row--firstVisible","row--lastVisible","rowReorderCell","rowReorderCell--draggable","rowReorderCellContainer","rowReorderCellPlaceholder","rowSkeleton","scrollbar","scrollbar--horizontal","scrollbar--vertical","scrollbarFiller","scrollbarFiller--pinnedRight","sortIcon","treeDataGroupingCell","treeDataGroupingCellLoadingContainer","treeDataGroupingCellToggle","withBorderColor","row--beingDragged"]},a=(0,n.A)("MuiDataGrid",[...i.root,...i.children,"aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","mainContent","withSidePanel","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderTitle","columnHeaders","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","detailPanel","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editInputCell","longTextCell","longTextCellContent","longTextCellExpandButton","longTextCellCollapseButton","longTextCellPopup","longTextCellPopperContent","editLongTextCell","editLongTextCellValue","editLongTextCellPopup","editLongTextCellPopperContent","editLongTextCellTextarea","filler","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterForm
78ColumnInput","filterFormOperatorInput","filterFormValueInput","footerContainer","iconButtonContainer","main","main--hasPinnedRight","main--hiddenContent","menu","overlay","overlayWrapper","root","rowCount","rowReorderIcon","scrollArea--left","scrollArea--right","scrollArea--up","scrollArea--down","scrollArea","scrollShadow","scrollShadow--vertical","scrollShadow--horizontal","selectedRowCount","sortButton","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pivotPanelAvailableFields","pivotPanelField","pivotPanelField--sorted","pivotPanelFieldActionContainer","pivotPanelFieldCheckbox","pivotPanelFieldDragIcon","pivotPanelFieldList","pivotPanelFieldName","pivotPanelHeader","pivotPanelPlaceholder","pivotPanelScrollArea","pivotPanelSearchContainer","pivotPanelSection","pivotPanelSectionTitle","pivotPanelSections","pivotPanelSwitch","pivotPanelSwitchLabel","prompt","promptContent","promptText","promptFeedback","promptChangeList","promptChangesToggle","promptChangesToggleIcon","promptIcon","promptIconContainer","promptError","promptAction","resizablePanelHandle","resizablePanelHandle--horizontal","resizablePanelHandle--vertical"])},26011:(e,t,r)=>{"use strict";r.d(t,{HZ:()=>s,Mk:()=>a,OL:()=>l,Oq:()=>C,Qy:()=>w,SN:()=>b,TW:()=>p,VO:()=>f,Z:()=>c,Ze:()=>m,e$:()=>u,fS:()=>d,gb:()=>i,l_:()=>h,nF:()=>g,ro:()=>v});var o=r(44501),n=r(19949);let l="auto-generated-group-node-root",i=Symbol("mui.id_autogenerated"),a=()=>({type:"group",id:l,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:Object.create(null),childrenExpanded:!0,parent:null}),s=(e,t,r)=>{let o=t?t(e):e.id;return!function(e,t,r="A row was provided without id in the rows prop:"){if(null==e)throw Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.\nAlternatively, you can use the `getRowId` prop to specify a custom id for each row.",r,JSON.stringify(t)].join("\n"))}(o,e,r),o},u=(e,t,r)=>{let o=t.field;if(!t||!t.valueGetter)return e[o];let n=e[t.field];return t.valueGetter(n,e,t,r)},c=({rows:e,getRowId:t,loading:r,rowCount:o})=>{let n={type:"full",rows:[]},l={};for(let r=0;r<e.length;r+=1){let o=e[r],i=s(o,t);l[i]=o,n.rows.push(i)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:r,rowCountPropBeforePartialUpdates:o,updates:n,dataRowIdToModelLo
78okup:l}},d=({tree:e,rowCountProp:t=0})=>{let r=e[l];return Math.max(t,r.children.length+ +(null!=r.footerId))},p=({apiRef:e,rowCountProp:t=0,loadingProp:r,previousTree:n,previousTreeDepths:l,previousGroupsToFetch:i})=>{let a=e.current.caches.rows,{tree:s,treeDepths:u,dataRowIds:c,groupingName:p,groupsToFetch:f=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:n,previousTreeDepths:l,updates:a.updates,dataRowIdToModelLookup:a.dataRowIdToModelLookup,previousGroupsToFetch:i}),g=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:u,dataRowIds:c,dataRowIdToModelLookup:a.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},(0,o.A)({},g,{totalRowCount:Math.max(t,g.dataRowIds.length),totalTopLevelRowCount:d({tree:g.tree,rowCountProp:t}),groupingName:p,loading:r,groupsToFetch:f})},f=e=>i in e,g=e=>"skeletonRow"===e.type||"footer"===e.type||"group"===e.type&&e.isAutoGenerated||"pinnedRow"===e.type&&e.isAutoGenerated,h=(e,t,r,o)=>{let n=e[t];if(n?.type!=="group")return[];let l=[];for(let t=0;t<n.children.length;t+=1){let i=n.children[t];if(r&&g(e[i])||l.push(i),o)continue;let a=h(e,i,r,o);for(let e=0;e<a.length;e+=1)l.push(a[e])}return r||null==n.footerId||l.push(n.footerId),l},m=({previousCache:e,getRowId:t,updates:r,groupKeys:n})=>{if("full"===e.updates.type)throw Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");let l=new Map;r.forEach(e=>{let r=s(e,t,"A row was provided without id when calling updateRows():");l.has(r)?l.set(r,(0,o.A)({},l.get(r),e)):l.set(r,e)});let i={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:(0,o.A)({},e.updates.idToActionLookup),groupKeys:n},a=(0,o.A)({}
78,e.dataRowIdToModelLookup),u={insert:{},modify:{},remove:{}};l.forEach((e,t)=>{let r=i.idToActionLookup[t];if("delete"===e._action){if("remove"===r||!a[t])return;null!=r&&(u[r][t]=!0),i.actions.remove.push(t),delete a[t];return}let n=a[t];if(n){"remove"===r?(u.remove[t]=!0,i.actions.modify.push(t)):null==r&&i.actions.modify.push(t),a[t]=(0,o.A)({},n,e);return}"remove"===r?(u.remove[t]=!0,i.actions.insert.push(t)):null==r&&i.actions.insert.push(t),a[t]=e});let c=Object.keys(u);for(let e=0;e<c.length;e+=1){let t=c[e],r=u[t];Object.keys(r).length>0&&(i.actions[t]=i.actions[t].filter(e=>!r[e]))}return{dataRowIdToModelLookup:a,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},b="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function v(e,t,r){let l=[];return t.forEach(t=>{let i=s(t,r,"A row was provided without id when calling updateRows():"),a=(0,n.Qu)(e,i);if(a?.type==="pinnedRow"){let r=e.current.caches.pinnedRows,n=r.idLookup[i];n&&(r.idLookup[i]=(0,o.A)({},n,t))}else l.push(t)}),l}let w=(e,t,r)=>"number"==typeof e&&e>0?e:t,C="MUI X: The `rowHeight` prop should be a number greater than 0.\nThe default value will be used instead."},26762:(e,t,r)=>{"use strict";function o(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}r.d(t,{HF:()=>i,IA:()=>a,TW:()=>o,_n:()=>s,kx:()=>l,q9:()=>n});let n=e=>0===e.indexOf("Arrow")||0===e.indexOf("Page")||" "===e||"Home"===e||"End"===e,l=e=>!!e.key,i=e=>"Tab"===e||"Escape"===e;function a(e){return(e.ctrlKey||e.metaKey)&&"V"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey}function s(e){return(e.ctrlKey||e.metaKey)&&"C"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey}},27460:(e,t,r)=>{"use strict";function o(e){throw Error("Failed assertion: should not be rendered")}r.d(t,{p:()=>o})},29092:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>l,S:()=>i});var o=r(35881);let n=(0,o.Ad)({memoize:o.i5,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),l=(e,t,r,o,n,l,i,a,...s)=>{let u;if(s.length>0)throw Error("Unsupported number of selectors");if(e&&t&&r&&o&&n&&l&&i&&a)u=(s,u,c,d)=>{let p=e(s,u,c,d),f=t(s,u,c,d),g=r(s,u,c,d),h=o(s,u,c,d),m=n(s,u,c,d);return a(p,f,g,h,m,l(s,u,c,d),i(s,u,c,d),u,c,d)};else if(e&&t&&r&&o&&n&&l&&i)u=(a,s,u,c)=>{let d=e(a,s,u,c),p=t(a,s,u,c),f=r(a,s,u,c),g=o(a,s,u,c);return i(d,p,f,g,n(a,s,u,c),l(a,s,u,c),s,u,c)};else if(e&&t&&r&&o&&n&&l)u=(i,a,s,u)=>{let c=e(i,a,s,u),d=t(i,a,s,u),p=r(i,a,s,u);return l(c,d,p,o(i,a,s,u),n(i,a,s,u),a,s,u)};else if(e&&t&&r&&o&&n)u=(l,i,a,s)=>{let u=e(l,i,a,s),c=t(l,i,a,s);return n(u,c,r(l,i,a,s),o(l,i,a,s),i,a,s)};else if(e&&t&&r&&o)u=(n,l,i,a)=>{let s=e(n,l,i,a);return o(s,t(n,l,i,a),r(n,l,i,a),l,i,a)};else if(e&&t&&r)u=(o,n,l,i)=>r(e(o,n,l,i),t(o,n,l,i),n,l,i);else if(e&&t)u=(r,o,n,l)=>t(e(r,o,n,l),o,n,l);else if(e)u=e;else throw Error("Missing arguments");return u},i=(e=>(...t)=>{let r=new WeakMap,o=1,l=t[t.length-1],i=t.length-1||1,a=Math.max(l.length-i,0);if(a>3)throw Error("Unsupported number of arguments");return(i,s,u,c)=>{let d=i.__cacheKey__;d||(i.__cacheKey__=d={id:o},o+=1);let p=r.get(d);if(!p){let o=1===t.length?[e=>e,l]:t,i=t,s=[void 0,void 0,void 0];switch(a){case 0:break;case 1:i=[...o.slice(0,-1),()=>s[0],l];break;case 2:i=[...o.slice(0,-1),()=>s[0],()=>s[1],l];break;case 3:i=[...o.slice(0,-1),()=>s[0],()=>s[1],()=>s[2],l];break;default:throw Error("Unsupported number of arguments")}e&&(i=[...i,e]),(p=n(...i)).selectorArgs=s,r.set(d,p)}switch(a){case 3:p.selectorArgs[2]=c;case 2:p.selectorArgs[1]=u;case 1:p.selectorArgs[0]=s}switch(a){case 0:return p(i);case 1:return p(i,s);case 2:return p(i,s,u);case 3:return p(i,s,u,c);default:throw Error("unreachable")}}})()},29429:(e,t,r)=>{"use strict";var o=r(14232),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=o.useState,i=o.useEffect,a=o.useLayoutEffect,s=o.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),o=l({inst:{value:r,getSnapshot:t}}),n=o[0].inst,c=o[1];return a(function(){n.value=r,n.getSnapshot=t,u(n)&&c({inst:n})},[e,r,t]),i(function(){return u(n)&&c({inst:n}),e(function(){u(n)&&c({inst:n})})},[e]),s(r),r};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:c}
78,30174:(e,t,r)=>{"use strict";r.d(t,{F:()=>n,W:()=>l});var o=r(11798);let n=(0,o.gz)(e=>e.props.listView??!1),l=(0,o.gz)(e=>e.listViewColumn)},31080:(e,t,r)=>{"use strict";r.d(t,{k:()=>o});let o=r(14232).createContext(void 0)},35881:(e,t,r)=>{"use strict";r.d(t,{Ad:()=>s,i5:()=>p});var o="undefined"==typeof WeakRef?class{constructor(e){this.value=e}deref(){return this.value}}:WeakRef;function n(){return{s:0,v:void 0,o:null,p:null}}function l(e,t={}){let r,i=n(),{resultEqualityCheck:a,maxSize:s}=t,u=void 0!==s;if(u&&(!Number.isInteger(s)||s<1))throw TypeError(`maxSize must be a positive integer, received: ${s}`);let c=null,d=0,p=0;function f(){d>=s&&(c=i,i=n(),d=0)}function g(){let t=i,{length:l}=arguments;for(let e=0;e<l;e++){let r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);let o=e.get(r);void 0===o?(t=n(),e.set(r,t)):t=o}else{let e=t.p;null===e&&(t.p=e=new Map);let o=e.get(r);void 0===o?(t=n(),e.set(r,t),d++):t=o}}if(1===t.s)return t.v;if(null!==c){let e=c;for(let t=0;t<l;t++){let r,o=arguments[t];if("function"==typeof o||"object"==typeof o&&null!==o){let t=e.o;r=null!==t?t.get(o):void 0}else{let t=e.p;r=null!==t?t.get(o):void 0}if(void 0===r){e=null;break}e=r}if(null!==e&&1===e.s){let r=t;return r.s=1,r.v=e.v,f(),e.v}}let s=t,g=e.apply(null,arguments);if(p++,a){var h;let e=(h=r)instanceof o?h.deref():h;null!=e&&a(e,g)&&(g=e,0!==p&&p--),r="object"==typeof g&&null!==g||"function"==typeof g?new o(g):g}return s.s=1,s.v=g,u&&f(),g}return g.clearCache=()=>{i=n(),c=null,d=0,g.resetResultsCount()},g.resultsCount=()=>p,g.resetResultsCount=()=>{p=0},g}var i=Symbol("NOT_FOUND"),a=e=>Array.isArray(e)?e:[e];function s(e,...t){let r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,o=(...e)=>{let t,o=0,n=0,i={},s=e.pop();"object"==typeof s&&(i=s,s=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);let{memoize:u,memoizeOptions:c=[],argsMemoize:d=l,argsMemoizeOptions:p=[]}={...r,...i},f=a(c),g=a(p),h=function(e){let t=Array.isArray(e[0])?e[0]:e;return!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),m=u(function(){return o++,s.apply(null,arguments)},...f);return Object.assign(d(function(){n++;let{length:e}=h,r=Array(e);for(let t=0;t<e;t++)r[t]=h[t].apply(null,arguments);return t=m.apply(null,r)},...g),{resultFunc:s,memoizedResultFunc:m,dependencies:h,dependencyRecomputations:()=>n,resetDependencyRecomputations:()=>{n=0},lastResult:()=>t,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:u,argsMemoize:d})};return Object.assign(o,{withTypes:()=>o}),o}var u=s(l),c=Object.assign((e,t=u)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,o)=>(e[r[o]]=t,e),{}))},{withTypes:()=>c}),d=(e,t)=>e===t;function p(e,t){let r,o,{equalityCheck:n=d,maxSize:l=1,resultEqualityCheck:a}="object"==typeof t?t:{equalityCheck:t},s=function(e,t){if(null===e||null===t||e.length!==t.length)return!1;let{length:r}=e;for(let o=0;o<r;o++)if(!n(e[o],t[o]))return!1;return!0},u=0,c=l<=1?{get:e=>r&&s(r.key,e)?r.value:i,put(e,t){r={key:e,value:t}},findMatchingEntry(e,t){let o=r;return void 0!==o&&t(o.value,e)?o:void 0},clear(){r=void 0}}:(o=[],{get:function(e){let t=o.findIndex(t=>s(t.key,e));if(t>-1){let e=o[t];return t>0&&(o.splice(t,1),o.unshift(e)),e.value}return i},put:function(e,t){o.unshift({key:e,value:t}),o.length>l&&o.pop()},findMatchingEntry:function(e,t){let r=o,{length:n}=r;for(let o=0;o<n;o++){let n=r[o];if(t(n.value,e))return n}},clear:function(){o=[]}});function p(){let t=c.get(arguments);if(t===i){if(t=e.apply(null,arguments),u++,a){let e=c.findMatchingEntry(t,a);e&&(t=e.value,0!==u&&u--)}c.put(arguments,t)}return t}return p.clearCache=()=>{c.clear(),p.resetResultsCount()},p.resultsCount=()=>u,p.resetResultsCount=()=>{u=0},p}},38420:(e,t,r)=>{"use strict";r.d(t,{A:()=>
78o});let o=parseInt(r(14232).version,10)},38806:(e,t,r)=>{"use strict";e.exports=r(29429)},44216:(e,t,r)=>{"use strict";r.d(t,{H:()=>function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){let o=t.length;if(o!==r.length)return!1;for(let n=0;n<o;n+=1)if(!e(t[n],r[n]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;let o=Array.from(t.entries());for(let e=0;e<o.length;e+=1)if(!r.has(o[e][0]))return!1;for(let t=0;t<o.length;t+=1){let n=o[t];if(!e(n[1],r.get(n[0])))return!1}return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;let e=Array.from(t.entries());for(let t=0;t<e.length;t+=1)if(!r.has(e[t][0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){let e=t.length;if(e!==r.length)return!1;for(let o=0;o<e;o+=1)if(t[o]!==r[o])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();let o=Object.keys(t),n=o.length;if(n!==Object.keys(r).length)return!1;for(let e=0;e<n;e+=1)if(!Object.prototype.hasOwnProperty.call(r,o[e]))return!1;for(let l=0;l<n;l+=1){let n=o[l];if(!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}})},45712:(e,t,r)=>{"use strict";e.exports=r(58214)},50494:(e,t,r)=>{"use strict";r.d(t,{v:()=>n});let o=Object.is;function n(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let r=0,n=0;for(let n in e)if(r+=1,!o(e[n],t[n])||!(n in t))return!1;for(let e in t)n+=1;return r===n}},50570:(e,t,r)=>{"use strict";r.d(t,{B:()=>l,_:()=>n});var o=r(11798);let n=(0,o.gz)(e=>e.preferencePanel),l=(0,o.Mz)(n,(e,t)=>!!e.open&&e.labelId===t)},51033:(e,t,r)=>{"use strict";r.d(t,{J6:()=>s,RJ:()=>a,XU:()=>u,oF:()=>c});var o=r(11798),n=r(19949),l=r(26011);let i=(0,o.gz)(e=>e.sorting),a=(0,o.Mz)(i,e=>e.sortedRows),s=(0,o.S)(a,n.rI,n.qj,(e,t,r)=>e.reduce((e,o)=>{let n=t[o];if(n)e.push({id:o,model:n});else{let t=r[o];t&&(0,l.nF)(t)&&e.push({id:o,model:{[l.gb]:o}})}return e},[])),u=(0,o.Mz)(i,e=>e.sortModel),c=(0,o.S)(u,e=>e.reduce((t,r,o)=>(t[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},t),{}));(0,o.S)(a,e=>e.reduce((e,t,r)=>(e[t]=r,e),Object.create(null)))},56827:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var o=function(e){return e.filters="filters",e.columns="columns",e.aiAssistant="aiAssistant",e}(o||{})},57641:(e,t,r)=>{"use strict";r.d(t,{U9:()=>c,oz:()=>s,x9:()=>u});var o=r(14232),n=r(96188),l=r(900),i=r(37876);let a=o.createContext({className:"unset",tag:(0,i.jsx)("style",{href:"/unset"})});function s(){return o.useContext(a).className}function u(){return o.useContext(a)}function c(e){let t=(0,l.Q)(),r=(0,n.A)(),s=t.hooks.useCSSVariables(),u=o.useMemo(()=>{let e=`MuiDataGridVariables-${s.id}`,t=`.${e}{${function(e){let t="";for(let r in e)Object.hasOwn(e,r)&&void 0!==e[r]&&(t+=`${r}:${e[r]};`);return t}(s.variables)}}`,o=(0,i.jsx)("style",{href:`/${e}`,nonce:r.nonce,children:t});return{className:e,tag:o}},[r.nonce,s]);return(0,i.jsx)(a.Provider,{value:u,children:e.children})}},58193:(e,t,r)=>{"use strict";r.d(t,{h:()=>l});var o=r(14232),n=r(31080);function l(){let e=o.useContext(n.k);if(void 0===e)throw Error("MUI X: Could not find the Data Grid context.\nIt looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.\nThis can also happen if you are bundling multiple versions of the Data Grid.");return e}},58214:(e,t,r)=>{"use strict";var o=r(14232),n=r(38806),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useSyncExternalStore,a=o.useRef,s=o.useEffect,u=o.useMemo,c=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,o,n){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;var f=i(e,(d=u(function(){function e(e){if(!s){if(s=!0,i=e,e=o(e),void 0!==n&&p.hasValue){var t=p.value;if(n(t,e))return a=t}return a=e}if(t=a,l(i,e))return t;var r=o(e);return void 0!==n&&n(t,r)?(i=e,t):(i=e,a=r)}var i,a,s=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,o,n]))[0],d[1]);return s(function(){p.hasValue=!0,p.value=f},[f]),c(f),f}},60172:(e,t,r)=>{"use strict";r.d(t,{b:()=>$});var o=r(44501),n=r(40670),l=r(13323),i=r(66438),a=r(69241),s=r(25640),u=r(58193),c=r(96188),d=r(14232),p=r(66913),f=r(61013),g=r(19993),h=r(44216),m=r(11132);let b=d.createContext(void 0);function v(){let e=d.useContext(b);if(void 0===e)throw Error("MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.");return e}
78var w=r(13731),C=r(3395),x=r(37876);let y=["render","className","parser","formatter","debounceMs","defaultExpanded","expanded","onExpandedChange"],A=e=>e.split(" ").filter(e=>""!==e),S=e=>e.join(" ");function R(e){let t=(0,c.A)(),{render:r,className:l,parser:i=A,formatter:a=S,debounceMs:s=t.filterDebounceMs,defaultExpanded:v,expanded:R,onExpandedChange:M}=e,I=(0,n.A)(e,y),k=(0,u.h)(),P=d.useRef(null),E=d.useRef(null),T=(0,w.Nc)(k,C.q6),[F,D]=d.useState(a(T??[])),[O,z]=d.useState(v??F.length>0),H=R??O,V=d.useMemo(()=>({value:F,expanded:H}),[F,H]),j="function"==typeof l?l(V):l,N=d.useRef(null),L=(0,g.A)(),$=d.useCallback(e=>{M&&M(e),void 0===R&&z(e)},[M,R]),B=d.useRef(T);d.useEffect(()=>{(0,h.H)(B.current,T)||(B.current=T,D(e=>(0,h.H)(i(e),T)?e:a(T??[])))},[T,a,i]);let G=d.useRef(!0),W=d.useRef(H);d.useEffect(()=>{if(G.current){G.current=!1;return}W.current!==H&&(H?requestAnimationFrame(()=>{P.current?.focus({preventScroll:!0})}):E.current?.focus({preventScroll:!0}),W.current=H)},[H]);let U=d.useMemo(()=>(0,p.A)(e=>{let t=i(e);B.current=t,k.current.setQuickFilterValues(t)},s),[k,s,i]);d.useEffect(()=>U.clear,[U]);let _=d.useCallback(e=>{let t=e.target.value;D(t),U(t)},[U]),q=d.useCallback(()=>{D(""),k.current.setQuickFilterValues([]),P.current?.focus()},[k,P]),K=d.useMemo(()=>({controlRef:P,triggerRef:E,state:V,controlId:L,clearValue:q,onValueChange:_,onExpandedChange:$}),[L,V,_,q,$]);(0,f.A)(()=>{N.current&&E.current&&N.current.style.setProperty("--trigger-width",`${E.current?.offsetWidth}px`)},[]);let X=(0,m._)("div",r,(0,o.A)({className:j},I,{ref:N}),V);return(0,x.jsx)(b.Provider,{value:K,children:X})}var M=r(78438),I=r(99351);let k=["render","className","onClick"],P=(0,M.R)(function(e,t){let{render:r,className:l,onClick:i}=e,a=(0,n.A)(e,k),s=(0,c.A)(),{state:u,controlId:p,onExpandedChange:f,triggerRef:g}=v(),h="function"==typeof l?l(u):l,b=(0,I.A)(g,t),w=(0,m._)(s.slots.baseButton,r,(0,o.A)({},s.slotProps?.baseButton,{className:h,"aria-controls":p,"aria-expanded":u.expanded},a,{onClick:e=>{f(!u.expanded),i?.(e)},ref:b}),u);return(0,x.jsx)(d.Fragment,{children:w})}),E=["render","className","slotProps","onKeyDown","onChange"],T=(0,M.R)(function(e,t){let{render:r,className:l,slotProps:i,onKeyDown:a,onChange:s}=e,u=(0,n.A)(e,E),p=(0,c.A)(),{state:f,controlId:g,controlRef:h,onValueChange:b,onExpandedChange:w,clearValue:C}=v(),y="function"==typeof l?l(f):l,A=(0,I.A)(h,t),S=(0,m._)(p.slots.baseTextField,r,(0,o.A)({},p.slotProps?.baseTextField,{slotProps:(0,o.A)({htmlInput:(0,o.A)({role:"searchbox",id:g,tabIndex:f.expanded?void 0:-1},i?.htmlInput,{onBlur:e=>{""===f.value&&w(!1),i?.htmlInput?.onBlur?.(e)}})},i),value:f.value,className:y},u,{onChange:e=>{f.expanded||w(!0),b(e),s?.(e)},onKeyDown:e=>{"Escape"===e.key&&(""===f.value?w(!1):C()),a?.(e)},ref:A}),f);return(0,x.jsx)(d.Fragment,{children:S})}),F=["render","className","onClick"],D=(0,M.R)(function(e,t){let{render:r,className:l,onClick:i}=e,a=(0,n.A)(e,F),s=(0,c.A)(),{state:u,clearValue:p}=v(),f="function"==typeof l?l(u):l,g=(0,m._)(s.slots.baseIconButton,r,(0,o.A)({},s.slotProps?.baseIconButton,{className:f,tabIndex:-1},a,{onClick:e=>{p(),i?.(e)},ref:t}),u);return(0,x.jsx)(d.Fragment,{children:g})});var O=r(20993),z=r(95610);let H=["quickFilterParser","quickFilterFormatter","debounceMs","className","slotProps"],V=["ref","slotProps"],j=(0,i.Ay)("div",{name:"MuiDataGrid",slot:"ToolbarQuickFilter"})({display:"grid",alignItems:"center"}),N=(0,i.Ay)(O.I,{name:"MuiDataGrid",slot:"ToolbarQuickFilterTrigger"})(({ownerState:e})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:+!e.expanded,pointerEvents:e.expanded?"none":"auto",transition:z.f.transition(["opacity"])})),L=(0,i.Ay)(e=>{throw Error("Failed assertion: should not be rendered")},{name:"MuiDataGrid",slot:"ToolbarQuickFilterControl"})(({ownerState:e})=>({gridArea:"1 / 1",overflowX:"clip",width:e.expanded?260:"var(--trigger-width)",opacity:+!!e.expanded,transition:z.f.transition(["width","opacity"])}));function $(e){let t=(0,u.h)(),r=(0,c.A)(),i={classes:r.classes,expanded:!1},d=(e=>{let{classes:t}=e;return(0,l.A)({root:["toolbarQuickFilter"],trigger:["toolbarQuickFilterTrigger"],control:["toolbarQuickFilterControl"]},s.B9,t)})(i),{quickFilterParser:p,quickFilterFormatter:f,debounceMs:g,className:h,slotProps:m}=e,b=(0,n.A)(e,H);return(0,x.jsx)(R,{parser:p,formatter:f,debounceMs:g,render:(e,l)=>{let s=(0,o.A)({},i,{expanded:l.expanded});return(0,x.jsxs)(j,(0,o.A)({},e,{className:(0,a.A)(d.root,h),children:[(0,x.jsx)(P,{render:e=>(0,x.jsx)(r.slots.baseTooltip,{title:t.current.getLocaleText("toolbarQuickFilterLabel"),enterDelay:0,children:(0,x.jsx)(N,(0,o.A)({className:d.trigger},e,{ownerState:s,color:"default","aria-disabled":l.expanded,children:(0,x.jsx)(r.slots.quickFilterIcon,{fontSize:"small"})}))})}),(0,x.jsx)(T,{render:e=>{let{ref:l,slotProps:i}=e,a=(0,n.A)(e,V);return(0,x.jsx)(L,(0,o.A)({as:r.slots.baseTextField,className:d.control,ownerState:s,inputRef:l,"aria-label":t.current.getLocaleText("toolbarQuickFilterLabel"),placeholder:t.current.getLocaleText("toolbarQuickFilterPlaceholder"),size:"small",slotProps:(0,o.A)({input:(0,o.A)({startAdornment:(0,x.jsx)(r.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:a.value?(0,x.jsx)(D,{render:(0,x.jsx)(r.slots.baseIconButton,{size:"small",edge:"end","aria-label":t.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),children:(0,x.jsx)(r.slots.quickFilterClearIcon,{fontSize:"small"})})}):null},i?.input)},i)},r.slotProps?.baseTextField,a,m?.root,b))}})]}))}})}},61150:(e,t,r)=>{"use strict";r.d(t,{A:()=>z});
78var o=r(28888),n=r(14232),l=r(69241),i=r(13323),a=r(11870),s=r(38993),u=r(66438),c=r(95651),d=r(66352),p=r(63915),f=r(64170),g=r(14457),h=r(21849);function m(e){return(0,h.Ay)("MuiLinearProgress",e)}(0,g.A)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var b=r(37876);function v(){let e=(0,o._)(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"]);return v=function(){return e},e}function w(){let e=(0,o._)(["\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]);return w=function(){return e},e}function C(){let e=(0,o._)(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"]);return C=function(){return e},e}function x(){let e=(0,o._)(["\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]);return x=function(){return e},e}function y(){let e=(0,o._)(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"]);return y=function(){return e},e}function A(){let e=(0,o._)(["\n animation: "," 3s infinite linear;\n "]);return A=function(){return e},e}let S=(0,s.i7)(v()),R="string"!=typeof S?(0,s.AH)(w(),S):null,M=(0,s.i7)(C()),I="string"!=typeof M?(0,s.AH)(x(),M):null,k=(0,s.i7)(y()),P="string"!=typeof k?(0,s.AH)(A(),k):null,E=(e,t)=>e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),T=(0,u.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["color".concat((0,f.A)(r.color))],t[r.variant]]}})((0,c.A)(e=>{let{theme:t}=e;return{position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter((0,d.A)()).map(e=>{let[r]=e;return{props:{color:r},style:{backgroundColor:E(t,r)}}}),{props:e=>{let{ownerState:t}=e;return"inherit"===t.color&&"buffer"!==t.variant},style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}})),F=(0,u.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.dashed,t["dashedColor".concat((0,f.A)(r.color))]]}})((0,c.A)(e=>{let{theme:t}=e;return{position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter((0,d.A)()).map(e=>{let[r]=e,o=E(t,r);return{props:{color:r},style:{backgroundImage:"radial-gradient(".concat(o," 0%, ").concat(o," 16%, transparent 42%)")}}})]}}),P||{animation:"".concat(k," 3s infinite linear")}),D=(0,u.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.bar,t.bar1,t["barColor".concat((0,f.A)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})((0,c.A)(e=>{let{theme:t}=e;return{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter((0,d.A)()).map(e=>{let[r]=e;return{props:{color:r},style:{backgroundColor:(t.vars||t).palette[r].main}}}),{props:{variant:"determinate"},style:{transition:"transform .".concat(4,"s linear")}},{props:{variant:"buffer"},style:{zIndex:1,transition:"transform .".concat(4,"s linear")}},{props:e=>{let{ownerState:t}=e;return"indeterminate"===t.variant||"query"===t.variant},style:{width:"auto"}},{props:e=>{let{ownerState:t}=e;return"indeterminate"===t.variant||"query"===t.variant},style:R||{animation:"".concat(S," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite")}}]}})),O=(0,u.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.bar,t.bar2,t["barColor".concat((0,f.A)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})((0,c.A)(e=>{let{theme:t}=e;return{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter((0,d.A)()).map(e=>{let[r]=e;return{props:{color:r},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[r].main}}}),{props:e=>{let{ownerState:t}=e;return"buffer"!==t.variant&&"inherit"!==t.color},style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:e=>{let{ownerState:t}=e;return"buffer"!==t.variant&&"inherit"===t.color},style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter((0,d.A)()).map(e=>{let[r]=e;return{props:{color:r,variant:"buffer"},style:{backgroundColor:E(t,r),transition:"transform .".concat(4,"s linear")}}}),{props:e=>{let{ownerState:t}=e;return"indeterminate"===t.variant||"query"===t.variant},style:{width:"auto"}},{props:e=>{let{ownerState:t}=e;return"indeterminate"===t.variant||"query"===t.variant},style:I||{animation:"".concat(M," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite")}}]}})),z=n.forwardRef(function(e,t){let r=(0,p.b)({props:e,name:"MuiLinearProgress"}),{className:o,color:n="primary",value:s,valueBuffer:u,variant:c="indeterminate",...d}=r,g={...r,color:n,variant:c},h=(e=>{let{classes:t,variant:r,color:o}=e,n={root:["root","color".concat((0,f.A)(o)),r],dashed:["dashed","dashedColor".concat((0,f.A)(o))],bar1:["bar","bar1","barColor".concat((0,f.A)(o)),("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","bar2","buffer"!==r&&"barColor".concat((0,f.A)(o)),"buffer"===r&&"color".concat((0,f.A)(o)),("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,i.A)(n,m,t)})(g),v=(0,a.I)(),w={},C={},x={};if(("determinate"===c||"buffer"===c)&&void 0!==s){w["aria-valuenow"]=Math.round(s),w["aria-valuemin"]=0,w["aria-valuemax"]=100;let e=s-100;v&&(e=-e),C.transform="translateX(".concat(e,"%)")}if("buffer"===c&&void 0!==u){let e=(u||0)-100;v&&(e=-e),x.transform="translateX(".concat(e,"%)")}return(0,b.jsxs)(T,{className:(0,l.A)(h.root,o),ownerState:g,role:"progressbar",...w,ref:t,...d,children:["buffer"===c?(0,b.jsx)(F,{className:h.dashed,ownerState:g}):null,(0,b.jsx)(D,{className:h.bar1,ownerState:g,style:C}),"determinate"===c?null:(0,b.jsx)(O,{className:h.bar2,ownerState:g,style:x})]})})},62497:(e,t,r)=>{"use strict";r.d(t,{FX:()=>d,FY:()=>c,He:()=>g,JR:()=>a,OV:()=>u,Oe:()=>v,Q1:()=>h,Sw:()=>b,TI:()=>f,U8:()=>w,em:()=>i,gv:()=>s,iv:()=>p,kw:()=>C});var o=r(11798),n=r(67814),l=r(30174);let i=(0,o.gz)(e=>e.columns),a=(0,o.Mz)(i,e=>e.orderedFields),s=(0,o.Mz)(i,e=>e.lookup),u=(0,o.S)(a,s,(e,t)=>e.map(e=>t[e])),c=(0,o.Mz)(i,e=>e.columnVisibilityModel),d=(0,o.Mz)(i,e=>e.initialColumnVisibilityModel),p=(0,o.S)(u,c,l.F,l.W,(e,t,r,o)=>r&&o?[o]:e.filter(e=>!1!==t[e.field])),f=(0,o.S)(p,e=>e.map(e=>e.field)),g=(0,o.gz)(e=>e.pinnedColumns);(0,o.S)(g,a,(e,t)=>m(e,t));let h=(0,o.S)(i,g,f,l.F,(e,t,r,o)=>{if(o)return n.u;let l=m(t,r);return{left:l.left.map(t=>e.lookup[t]),right:l.right.map(t=>e.lookup[t])}});function m(e,t){if(!Array.isArray(e.left)&&!Array.isArray(e.right)||e.left?.length===0&&e.right?.length===0)return n.u;let r=(e,t)=>Array.isArray(e)?e.filter(e=>t.includes(e)):[],o=r(e.left,t),l=t.filter(e=>!o.includes(e));return{left:o,right:r(e.right,l)}}let b=(0,o.S)(p,e=>{let t=[],r=0;for(let o=0;o<e.length;o+=1)t.push(r),r+=e[o].computedWidth;return t}),v=(0,o.S)(u,e=>e.filter(e=>e.filterable)),w=(0,o.S)(u,e=>e.reduce((e,t)=>
78(t.filterable&&(e[t.field]=t),e),{})),C=(0,o.S)(u,e=>e.some(e=>void 0!==e.colSpan))},65765:(e,t,r)=>{"use strict";r.d(t,{_v:()=>l,rf:()=>i});var o=r(11798);let n={compact:.7,comfortable:1.3,standard:1},l=(0,o.gz)(e=>e.density),i=(0,o.Mz)(l,e=>n[e])},66260:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=r(14232).createContext()},67814:(e,t,r)=>{"use strict";r.d(t,{K:()=>o,u:()=>n});let o=function(e){return e.LEFT="left",e.RIGHT="right",e}({}),n={left:[],right:[]}},71643:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var o,n=r(14232),l=r(69241),i=r(13323),a=r(64170),s=r(82777),u=r(76488),c=r(95712),d=r(66438),p=r(95651),f=r(63915),g=r(77997),h=r(37876);let m=(0,d.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["position".concat((0,a.A)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((0,p.A)(e=>{let{theme:t}=e;return{display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{["&.".concat(g.A.positionStart,"&:not(.").concat(g.A.hiddenLabel,")")]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}})),b=n.forwardRef(function(e,t){let r=(0,f.b)({props:e,name:"MuiInputAdornment"}),{children:d,className:p,component:b="div",disablePointerEvents:v=!1,disableTypography:w=!1,position:C,variant:x,...y}=r,A=(0,c.A)()||{},S=x;x&&A.variant,A&&!S&&(S=A.variant);let R={...r,hiddenLabel:A.hiddenLabel,size:A.size,disablePointerEvents:v,position:C,variant:S},M=(e=>{let{classes:t,disablePointerEvents:r,hiddenLabel:o,position:n,size:l,variant:s}=e,u={root:["root",r&&"disablePointerEvents",n&&"position".concat((0,a.A)(n)),s,o&&"hiddenLabel",l&&"size".concat((0,a.A)(l))]};return(0,i.A)(u,g.P,t)})(R);return(0,h.jsx)(u.A.Provider,{value:null,children:(0,h.jsx)(m,{as:b,ownerState:R,className:(0,l.A)(M.root,p),ref:t,...y,children:"string"!=typeof d||w?(0,h.jsxs)(n.Fragment,{children:["start"===C?o||(o=(0,h.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"â"})):null,d]}):(0,h.jsx)(s.A,{color:"textSecondary",children:d})})})})},73885:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(49416),n=r(37876);let l=(0,o.A)((0,n.jsx)("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z"}),"ContentPaste")},77972:(e,t,r)=>{"use strict";function o(e){for(let t in e)return!1;return!0}r.d(t,{Z:()=>o})},77997:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,P:()=>l});var o=r(14457),n=r(21849);function l(e){return(0,n.Ay)("MuiInputAdornment",e)}let i=(0,o.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"])},78438:(e,t,r)=>{"use strict";r.d(t,{R:()=>l});var o=r(14232),n=r(38420);let l=e=>{if(n.A>=19){let t=t=>e(t,t.ref??null);return t.displayName=e.displayName??e.name,t}return o.forwardRef(e)}},78517:(e,t,r)=>{"use strict";r.d(t,{OQ:()=>G,G1:()=>B});var o=r(44501),n=r(40670),l=r(14232),i=r(19993),a=r(66438),s=r(13323),u=r(10048),c=r(18070),d=r(20993),p=r(78438),f=r(11132),g=r(99351),h=r(211),m=r(58193),b=r(13731),v=r(50570),w=r(56827),C=r(3395),x=r(96188),y=r(37876);let A=["render","className","onClick","onPointerUp"],S=(0,p.R)(function(e,t){let{render:r,className:a,onClick:s,onPointerUp:u}=e,c=(0,n.A)(e,A),d=(0,x.A)(),p=(0,i.A)(),S=(0,i.A)(),R=(0,m.h)(),M=(0,b.Nc)(R,v._),I=M.open&&M.openedPanelValue===w.y.filters,k={open:I,filterCount:(0,b.Nc)(R,C.Ai).length},P="function"==typeof a?a(k):a,{triggers:E}=(0,h.vR)(),T=(0,g.A)(t,E.filterPanel.setRef),F=(0,f._)(d.slots.baseButton,r,(0,o.A)({},d.slotProps?.baseButton,{id:p,"aria-haspopup":"true","aria-expanded":I?"true":void 0,"aria-controls":I?S:void 0,onClick:e=>{I?R.current.hidePreferences():R.current.showPreferences(w.y.filters,S,p),s?.(e)},onPointerUp:e=>{I&&e.stopPropagation(),u?.(e)},className:P},c,{ref:T}),k);return(0,y.jsx)(l.Fragment,{children:F})}),R=["render","className","onClick","onPointerUp"],M=(0,p.R)(function(e,t){let{render:r,className:a,onClick:s,onPointerUp:u}=e,c=(0,n.A)(e,R),d=(0,x.A)(),p=(0,i.A)(),C=(0,i.A)(),A=(0,m.h)(),S=(0,b.Nc)(A,v._),M=S.open&&S.openedPanelValue===w.y.columns,I={open:M},k="function"==typeof a?a(I):a,{triggers:P}=(0,h.vR)(),E=(0,g.A)(t,P.columnsPanel.setRef),T=(0,f._)(d.slots.baseButton,r,(0,o.A)({},d.slotProps?.baseButton,{id:p,"aria-haspopup":"true","aria-expanded":M?"true":void 0,"aria-controls":M?C:void 0,className:k},c,{onPointerUp:e=>{M&&e.stopPropagation(),u?.(e)},onClick:e=>{M?A.current.hidePreferences():A.current.showPreferences(w.y.columns,C,p),s?.(e)},ref:E}),I);return(0,y.jsx)(l.Fragment,{children:T})}),I=["render","options","onClick"],k=(0,p.R)(function(e,t){let{render:r,options:i,onClick:a}=e,s=(0,n.A)(e,I),u=(0,x.A)(),c=(0,m.h)(),d=(0,f._)(u.slots.baseButton,r,(0,o.A)({},u.slotProps?.baseButton,{onClick:e=>{c.current.exportDataAsPrint(i),a?.(e)}},s,{ref:t}));return(0,y.jsx)(l.Fragment,{children:d})}),P=["render","options","onClick"],E=(0,p.R)(function(e,t){let{render:r,options:i,onClick:a}=e,s=(0,n.A)(e,P),u=(0,x.A)(),c=(0,m.h)(),d=(0,f._)(u.slots.baseButton,r,(0,o.A)({},u.slotProps?.baseButton,{onClick:e=>{c.current.exportDataAsCsv(i),a?.(e)}},s,{ref:t}));return(0,y.jsx)(l.Fragment,{children:d})});
78var T=r(60172),F=r(27460),D=r(95610),O=r(25640);let z=["className"],H=["className"],V=["showQuickFilter","quickFilterProps","csvOptions","printOptions","mainControls","additionalExportMenuItems"],j=e=>{let{classes:t}=e;return(0,s.A)({divider:["toolbarDivider"],label:["toolbarLabel"]},O.B9,t)},N=(0,a.Ay)(F.p,{name:"MuiDataGrid",slot:"ToolbarDivider"})({height:"50%",margin:D.f.spacing(0,.5)}),L=(0,a.Ay)("span",{name:"MuiDataGrid",slot:"ToolbarLabel"})({flex:1,font:D.f.typography.font.large,fontWeight:D.f.typography.fontWeight.medium,margin:D.f.spacing(0,.5),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"});function $(e){let t=(0,n.A)(e,z),r=(0,x.A)(),l=j(r);return(0,y.jsx)(N,(0,o.A)({as:r.slots.baseDivider,orientation:"vertical",className:l.divider},t))}function B(e){let t=(0,n.A)(e,H),r=j((0,x.A)());return(0,y.jsx)(L,(0,o.A)({className:r.label},t))}function G(e){let{showQuickFilter:t=!0,quickFilterProps:r,csvOptions:a,printOptions:s,mainControls:p,additionalExportMenuItems:f}=e,g=(0,n.A)(e,V),h=(0,m.h)(),b=(0,x.A)(),[v,w]=l.useState(!1),C=l.useRef(null),A=(0,i.A)(),R=(0,i.A)(),I=!a?.disableToolbarButton||!s?.disableToolbarButton||f,P=()=>w(!1);return(0,y.jsxs)(c.M,(0,o.A)({},g,{children:[b.label&&(0,y.jsx)(B,{children:b.label}),p||(0,y.jsxs)(l.Fragment,{children:[!b.disableColumnSelector&&(0,y.jsx)(b.slots.baseTooltip,{title:h.current.getLocaleText("toolbarColumns"),children:(0,y.jsx)(M,{render:(0,y.jsx)(d.I,{}),children:(0,y.jsx)(b.slots.columnSelectorIcon,{fontSize:"small"})})}),!b.disableColumnFilter&&(0,y.jsx)(b.slots.baseTooltip,{title:h.current.getLocaleText("toolbarFilters"),children:(0,y.jsx)(S,{render:(e,t)=>(0,y.jsx)(d.I,(0,o.A)({},e,{color:t.filterCount>0?"primary":"default",children:(0,y.jsx)(b.slots.baseBadge,{badgeContent:t.filterCount,color:"primary",variant:"dot",children:(0,y.jsx)(b.slots.openFilterButtonIcon,{fontSize:"small"})})}))})})]}),I&&(!b.disableColumnFilter||!b.disableColumnSelector)&&(0,y.jsx)($,{}),I&&(0,y.jsxs)(l.Fragment,{children:[(0,y.jsx)(b.slots.baseTooltip,{title:h.current.getLocaleText("toolbarExport"),disableInteractive:v,children:(0,y.jsx)(d.I,{ref:C,id:R,"aria-controls":A,"aria-haspopup":"true","aria-expanded":v?"true":void 0,onClick:()=>w(!v),children:(0,y.jsx)(b.slots.exportIcon,{fontSize:"small"})})}),(0,y.jsx)(u.U,{target:C.current,open:v,onClose:P,position:"bottom-end",children:(0,y.jsxs)(b.slots.baseMenuList,(0,o.A)({id:A,"aria-labelledby":R,autoFocusItem:!0},b.slotProps?.baseMenuList,{children:[!s?.disableToolbarButton&&(0,y.jsx)(k,{render:(0,y.jsx)(b.slots.baseMenuItem,(0,o.A)({},b.slotProps?.baseMenuItem)),options:s,onClick:P,children:h.current.getLocaleText("toolbarExportPrint")}),!a?.disableToolbarButton&&(0,y.jsx)(E,{render:(0,y.jsx)(b.slots.baseMenuItem,(0,o.A)({},b.slotProps?.baseMenuItem)),options:a,onClick:P,children:h.current.getLocaleText("toolbarExportCSV")}),f?.(P)]}))})]}),t&&(0,y.jsxs)(l.Fragment,{children:[(0,y.jsx)($,{}),(0,y.jsx)(T.b,(0,o.A)({},r))]})]}))}},79706:(e,t,r)=>{"use strict";var o=r(3717);function n(){}function l(){}l.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,l,i){if(i!==o){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:n};return r.PropTypes=r,r}},82097:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var o=r(14232),n=r(69241),l=r(13323),i=r(66438),a=r(95651),s=r(63915),u=r(90599),c=r(37876);let d=(0,i.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((0,a.A)(e=>{let{theme:t}=e;return{margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.alpha((t.vars||t).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:e=>{let{ownerState:t}=e;return!!t.children},style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:e=>{let{ownerState:t}=e;return t.children&&"vertical"!==t.orientation},style:{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),borderTopStyle:"inherit"}}},{props:e=>{let{ownerState:t}=e;return"vertical"===t.orientation&&t.children},style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider),borderLeftStyle:"inherit"}}},{props:e=>{let{ownerState:t}=e;return"right"===t.textAlign&&"vertical"!==t.orientation},style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:e=>{let{ownerState:t}=e;return"left"===t.textAlign&&"vertical"!==t.orientation},style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}})),p=(0,i.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((0,a.A)(e=>{let{theme:t}=e;return{display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)"),whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")}}]}})),f=o.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:f="horizontal",component:g=i||"vertical"===f?"div"
78:"hr",flexItem:h=!1,light:m=!1,role:b="hr"!==g?"separator":void 0,textAlign:v="center",variant:w="fullWidth",...C}=r,x={...r,absolute:o,component:g,flexItem:h,light:m,orientation:f,role:b,textAlign:v,variant:w},y=(e=>{let{absolute:t,children:r,classes:o,flexItem:n,light:i,orientation:a,textAlign:s,variant:c}=e;return(0,l.A)({root:["root",t&&"absolute",c,i&&"light","vertical"===a&&"vertical",n&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},u.K,o)})(x);return(0,c.jsx)(d,{as:g,className:(0,n.A)(y.root,a),role:b,ref:t,ownerState:x,"aria-orientation":"separator"===b&&("hr"!==g||"vertical"===f)?f:void 0,...C,children:i?(0,c.jsx)(p,{className:y.wrapper,ownerState:x,children:i}):null})});f&&(f.muiSkipListHighlight=!0);let g=f},87050:(e,t,r)=>{"use strict";r.d(t,{jX:()=>v,ME:()=>w,qn:()=>C});var o=r(44501),n=r(40670),l=r(14232),i=r(78438),a=r(96188),s=r(58193),u=r(19993),c=r(99351),d=r(10048),p=r(25640),f=r(37876);let g=(0,i.R)(function(e,t){let{children:r,slotProps:n={}}=e,i=n.button||{},g=n.tooltip||{},h=(0,s.h)(),m=(0,a.A)(),b=(0,u.A)(),v=(0,u.A)(),[w,C]=l.useState(!1),x=l.useRef(null),y=(0,c.A)(t,x),A=()=>C(!1);return null==r?null:(0,f.jsxs)(l.Fragment,{children:[(0,f.jsx)(m.slots.baseTooltip,(0,o.A)({title:h.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},m.slotProps?.baseTooltip,g,{children:(0,f.jsx)(m.slots.baseButton,(0,o.A)({size:"small",startIcon:(0,f.jsx)(m.slots.exportIcon,{}),"aria-expanded":w,"aria-label":h.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":w?v:void 0,id:b},m.slotProps?.baseButton,i,{onClick:e=>{C(e=>!e),i.onClick?.(e)},ref:y,children:h.current.getLocaleText("toolbarExport")}))})),(0,f.jsx)(d.U,{open:w,target:x.current,onClose:A,position:"bottom-end",children:(0,f.jsx)(m.slots.baseMenuList,{id:v,className:p.xV.menuList,"aria-labelledby":b,autoFocusItem:w,children:l.Children.map(r,e=>l.isValidElement(e)?l.cloneElement(e,{hideMenu:A}):e)})})]})}),h=["hideMenu","options"],m=["hideMenu","options"],b=["csvOptions","printOptions","excelOptions"];function v(e){let t=(0,s.h)(),r=(0,a.A)(),{hideMenu:l,options:i}=e,u=(0,n.A)(e,h);return(0,f.jsx)(r.slots.baseMenuItem,(0,o.A)({onClick:()=>{t.current.exportDataAsCsv(i),l?.()}},u,{children:t.current.getLocaleText("toolbarExportCSV")}))}function w(e){let t=(0,s.h)(),r=(0,a.A)(),{hideMenu:l,options:i}=e,u=(0,n.A)(e,m);return(0,f.jsx)(r.slots.baseMenuItem,(0,o.A)({onClick:()=>{t.current.exportDataAsPrint(i),l?.()}},u,{children:t.current.getLocaleText("toolbarExportPrint")}))}let C=(0,i.R)(function(e,t){let{csvOptions:r={},printOptions:i={},excelOptions:a}=e,u=(0,n.A)(e,b),c=(0,s.h)().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:a,csvOptions:r,printOptions:i}).sort((e,t)=>e.componentName>t.componentName?1:-1);return 0===c.length?null:(0,f.jsx)(g,(0,o.A)({},u,{ref:t,children:c.map((e,t)=>l.cloneElement(e.component,{key:t}))}))})},90133:(e,t,r)=>{"use strict";r.d(t,{x:()=>c});var o=r(14232),n=r(62329),l=r(77190),i=r(99351),a=r(89335),s=r(42207);function u(e){return e.substring(2).toLowerCase()}function c(e){let{children:t,disableReactTree:r=!1,mouseEvent:c="onClick",onClickAway:d,touchEvent:p="onTouchEnd"}=e,f=o.useRef(!1),g=o.useRef(null),h=o.useRef(!1),m=o.useRef(!1);o.useEffect(()=>(setTimeout(()=>{h.current=!0},0),()=>{h.current=!1}),[]);let b=(0,i.A)((0,s.A)(t),g),v=(0,a.A)(e=>{let t=m.current;m.current=!1;let o=(0,l.A)(g.current);if(!(!h.current||!g.current||"clientX"in e&&(o.documentElement.clientWidth<e.clientX||o.documentElement.clientHeight<e.clientY))){if(f.current){f.current=!1;return}(e.composedPath?e.composedPath().includes(g.current):!(0,n.A)(o.documentElement,e.target)||(0,n.A)(g.current,e.target))||!r&&t||d(e)}}),w=e=>r=>{m.current=!0;let o=t.props[e];o&&o(r)},C={ref:b};return!1!==p&&(C[p]=w(p)),o.useEffect(()=>{if(!1!==p){let e=u(p),t=(0,l.A)(g.current),r=()=>{f.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,v),t.removeEventListener("touchmove",r)}}},[v,p]),!1!==c&&(C[c]=w(c)),o.useEffect(()=>{if(!1!==c){let e=u(c),t=(0,l.A)(g.current);return t.addEventListener(e,v),()=>{t.removeEventListener(e,v)}
78}},[v,c]),o.cloneElement(t,C)}},95062:(e,t,r)=>{e.exports=r(79706)()},95610:(e,t,r)=>{"use strict";r.d(t,{f:()=>a});var o=r(44501);let n={values:{xs:0,sm:600,md:900,lg:1200,xl:1536},up:e=>{let t=n.values,r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}px)`}},l={spacingUnit:"--DataGrid-t-spacing-unit",colors:{border:{base:"--DataGrid-t-color-border-base"},foreground:{base:"--DataGrid-t-color-foreground-base",muted:"--DataGrid-t-color-foreground-muted",accent:"--DataGrid-t-color-foreground-accent",disabled:"--DataGrid-t-color-foreground-disabled",error:"--DataGrid-t-color-foreground-error"},background:{base:"--DataGrid-t-color-background-base",overlay:"--DataGrid-t-color-background-overlay",backdrop:"--DataGrid-t-color-background-backdrop"},interactive:{hover:"--DataGrid-t-color-interactive-hover",hoverOpacity:"--DataGrid-t-color-interactive-hover-opacity",focus:"--DataGrid-t-color-interactive-focus",focusOpacity:"--DataGrid-t-color-interactive-focus-opacity",disabled:"--DataGrid-t-color-interactive-disabled",disabledOpacity:"--DataGrid-t-color-interactive-disabled-opacity",selected:"--DataGrid-t-color-interactive-selected",selectedOpacity:"--DataGrid-t-color-interactive-selected-opacity"}},header:{background:{base:"--DataGrid-t-header-background-base"}},cell:{background:{pinned:"--DataGrid-t-cell-background-pinned"}},radius:{base:"--DataGrid-t-radius-base"},typography:{font:{body:"--DataGrid-t-typography-font-body",small:"--DataGrid-t-typography-font-small",large:"--DataGrid-t-typography-font-large"},fontFamily:{base:"--DataGrid-t-typography-font-family-base"},fontWeight:{light:"--DataGrid-t-typography-font-weight-light",regular:"--DataGrid-t-typography-font-weight-regular",medium:"--DataGrid-t-typography-font-weight-medium",bold:"--DataGrid-t-typography-font-weight-bold"}},transitions:{easing:{easeIn:"--DataGrid-t-transition-easing-ease-in",easeOut:"--DataGrid-t-transition-easing-ease-out",easeInOut:"--DataGrid-t-transition-easing-ease-in-out"},duration:{short:"--DataGrid-t-transition-duration-short",base:"--DataGrid-t-transition-duration-base",long:"--DataGrid-t-transition-duration-long"}},shadows:{base:"--DataGrid-t-shadow-base",overlay:"--DataGrid-t-shadow-overlay"},zIndex:{panel:"--DataGrid-t-z-index-panel",menu:"--DataGrid-t-z-index-menu"}},i=function e(t){if("string"==typeof t)return`var(${t})`;let r={};for(let o in t)Object.hasOwn(t,o)&&(r[o]=e(t[o]));return r}(l),a=(0,o.A)({breakpoints:n,spacing:function(e,t,r,o){return void 0===e?s(1):void 0===t?s(e):void 0===r?s(e)+" "+s(t):void 0===o?s(e)+" "+s(t)+" "+s(r):s(e)+" "+s(t)+" "+s(r)+" "+s(o)},transition:function(e,t){let{duration:r=a.transitions.duration.base,easing:o=a.transitions.easing.easeInOut,delay:n=0}=t??{};return e.map(e=>`${e} ${r} ${o} ${n}ms`).join(", ")},keys:l},i);function s(e){return 0===e?"0":`calc(var(--DataGrid-t-spacing-unit) * ${e})`}},96188:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(14232),n=r(23195);let l=()=>{let e=o.useContext(n.y);if(!e)throw Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e}},97284:(e,t,r)=>{"use strict";r.d(t,{O:()=>N});var o=r(44501),n=r(40670),l=r(78438),i=r(14232),a=r(69241),s=r(99093),u=r(13323),c=r(95610),d=r(25640),p=r(96188),f=r(18070),g=r(37876);let h=["className","children"],m=(0,s.A)(f.M,{name:"MuiDataGrid",slot:"ToolbarContainer",shouldForwardProp:e=>"ownerState"!==e})({display:"flex",alignItems:"center",flexWrap:"wrap",gap:c.f.spacing(1),padding:c.f.spacing(.5),minHeight:"auto"}),b=(0,l.R)(function(e,t){let{className:r,children:l}=e,i=(0,n.A)(e,h),s=(0,p.A)(),c=(e=>{let{classes:t}=e;return(0,u.A)({root:["toolbarContainer"]},d.B9,t)})(s);return l?(0,g.jsx)(m,(0,o.A)({className:(0,a.A)(c.root,r),ownerState:s},i,{ref:t,children:l})):null});var v=r(19993),w=r(99351),C=r(13731),x=r(50570),y=r(56827),A=r(58193),S=r(211);let R=(0,l.R)(function(e,t){let{slotProps:r={}}=e,n=r.button||{},l=r.tooltip||{},i=(0,v.A)(),a=(0,v.A)(),s=(0,A.h)(),u=(0,p.A)(),{triggers:c}=(0,S.vR)(),d=(0,C.Nc)(s,x._),f=(0,w.A)(t,c.columnsPanel.setRef);if(u.disableColumnSelector)return null;let h=d.open&&d.panelId===a;return(0,g.jsx)(u.slots.baseTooltip,(0,o.A)({title:s.current.getLocaleText("toolbarColumnsLabel"),enterDelay:1e3},u.slotProps?.baseTooltip,l,{children:(0,g.jsx)(u.slots.baseButton,(0,o.A)({id:i,size:"small","aria-label":s.current.getLocaleText("toolbarColumnsLabel"),"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?a:void 0,startIcon:(0,g.jsx)(u.slots.columnSelectorIcon,{})},u.slotProps?.baseButton,n,{onPointerUp:e=>{d.open&&e.stopPropagation(),n.onPointerUp?.(e)},onClick:e=>{d.open&&d.openedPanelValue===y.y.columns?s.current.hidePreferences():s.current.showPreferences(y.y.columns,a,i),n.onClick?.(e)},ref:f,children:s.current.getLocaleText("toolbarColumns")}))}))});var M=r(65765),I=r(10048);let k=(0,l.R)(function(e,t){let{slotProps:r={}}=e,n=r.button||{},l=r.tooltip||{},a=(0,A.h)(),s=(0,p.A)(),u=(0,C.Nc)(a,M._v),c=(0,v.A)(),f=(0,v.A)(),[h,m]=i.useState(!1),b=i.useRef(null),x=(0,w.A)(t,b),y=[{icon:(0,g.jsx)(s.slots.densityCompactIcon,{}),label:a.current.getLocaleText("toolbarDensityCompact"),value:"compact"},{icon:(0,g.jsx)(s.slots.densityStandardIcon,{}),label:a.current.getLocaleText("toolbarDensityStandard"),value:"standard"},{icon:(0,g.jsx)(s.slots.densityComfortableIcon,{}),label:a.current.getLocaleText("toolbarDensityComfortable"),value:"comfortable"}],S=i.useMemo(()=>{switch(u){case"compact":return(0,g.jsx)(s.slots.densityCompactIcon,{});case"comfortable":return(0,g.jsx)(s.slots.densityComfortableIcon,{});default:return(0,g.jsx)(s.slots.densityStandardIcon,{})}},[u,s]);if(s.disableDensitySelector)return null;let R=y.map((e,t)=>(0,g.jsx)(s.slots.baseMenuItem,{onClick:()=>{var t;return t=e.value,void(a.current.setDensity(t),m(!1))},selected:e.value===u,iconStart:e.icon,children:e.label},t));return(0,g.jsxs)(i.Fragment,{children:[(0,g.jsx)(s.slots.baseTooltip,(0,o.A)({title:a.current.getLocaleText("toolbarDensityLabel"),enterDelay:1e3},s.slotProps?.baseTooltip,l,{children:(0,g.jsx)(s.slots.baseButton,(0,o.A)({size:"small",startIcon:S,"aria-label":a.current.getLocaleText("toolbarDensityLabel"),"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?f:void 0,id:c},s.slotProps?.baseButton,n,{onClick:e=>{m(e=>!e),n.onClick?.(e)},ref:x,children:a.current.getLocaleText("toolbarDensity")}))}
78)),(0,g.jsx)(I.U,{open:h,target:b.current,onClose:()=>{m(!1)},position:"bottom-end",children:(0,g.jsx)(s.slots.baseMenuList,{id:f,className:d.xV.menuList,"aria-labelledby":c,autoFocusItem:h,children:R})})]})});var P=r(66438),E=r(75279),T=r(62497),F=r(3395);let D=(0,P.Ay)("ul",{name:"MuiDataGrid",slot:"ToolbarFilterList"})({margin:c.f.spacing(1,1,.5),padding:c.f.spacing(0,1)}),O=(0,l.R)(function(e,t){let{slotProps:r={}}=e,n=r.button||{},l=r.tooltip||{},a=r.badge||{},s=(0,A.h)(),c=(0,p.A)(),f=(0,C.Nc)(s,F.Ai),h=(0,C.Nc)(s,T.gv),m=(0,C.Nc)(s,x._),b=(e=>{let{classes:t}=e;return(0,u.A)({root:["toolbarFilterList"]},d.B9,t)})(c),R=(0,v.A)(),M=(0,v.A)(),{triggers:I}=(0,S.vR)(),k=(0,w.A)(t,I.filterPanel.setRef),P=i.useMemo(()=>m.open?s.current.getLocaleText("toolbarFiltersTooltipHide"):0===f.length?s.current.getLocaleText("toolbarFiltersTooltipShow"):(0,g.jsxs)("div",{children:[s.current.getLocaleText("toolbarFiltersTooltipActive")(f.length),(0,g.jsx)(D,{className:b.root,ownerState:c,children:f.map((e,t)=>(0,o.A)({},h[e.field]&&(0,g.jsx)("li",{children:`${h[e.field].headerName||e.field} 79 ${h[e.field].filterOperators.find(t=>t.value===e.operator).label||s.current.getLocaleText(`filterOperator${(0,E.A)(e.operator)}`).toString()} 80 ${null!=e.value?(e=>{let{getValueAsString:t}=h[e.field].filterOperators.find(t=>t.value===e.operator);return t?t(e.value):e.value})(e):""}`},t)))})]}),[s,c,m.open,f,h,b]);if(c.disableColumnFilter)return null;let O=m.open&&m.panelId===M;return(0,g.jsx)(c.slots.baseTooltip,(0,o.A)({title:P,enterDelay:1e3},c.slotProps?.baseTooltip,l,{children:(0,g.jsx)(c.slots.baseButton,(0,o.A)({id:R,size:"small","aria-label":s.current.getLocaleText("toolbarFiltersLabel"),"aria-controls":O?M:void 0,"aria-expanded":O,"aria-haspopup":!0,startIcon:(0,g.jsx)(c.slots.baseBadge,(0,o.A)({badgeContent:f.length,color:"primary"},c.slotProps?.baseBadge,a,{children:(0,g.jsx)(c.slots.openFilterButtonIcon,{})}))},c.slotProps?.baseButton,n,{onClick:e=>{let{open:t,openedPanelValue:r}=m;t&&r===y.y.filters?s.current.hidePreferences():s.current.showPreferences(y.y.filters,M,R),n.onClick?.(e)},onPointerUp:e=>{m.open&&e.stopPropagation(),n.onPointerUp?.(e)},ref:k,children:s.current.getLocaleText("toolbarFilters")}))}))});var z=r(87050),H=r(60172),V=r(78517);let j=["className","csvOptions","printOptions","excelOptions","showQuickFilter","quickFilterProps"],N=(0,l.R)(function(e,t){let{csvOptions:r,printOptions:l,excelOptions:i,showQuickFilter:a=!0,quickFilterProps:s={}}=e,u=(0,n.A)(e,j),c=(0,p.A)();return c.disableColumnFilter&&c.disableColumnSelector&&c.disableDensitySelector&&!a?null:(0,g.jsxs)(b,(0,o.A)({},u,{ref:t,children:[c.label&&(0,g.jsx)(V.G1,{children:c.label}),(0,g.jsx)(R,{}),(0,g.jsx)(O,{}),(0,g.jsx)(k,{}),(0,g.jsx)(z.qn,{csvOptions:r,printOptions:l,excelOptions:i}),(0,g.jsx)("div",{style:{flex:1}}),a&&(0,g.jsx)(H.b,(0,o.A)({},s))]}))})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.