@perses-dev/trace-table-plugin 0.10.0-rc.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- /*! For license information please see 935.7406422a.js.LICENSE.txt */
1
+ /*! For license information please see 935.4f599ceb.js.LICENSE.txt */
2
2
  (self.chunk_TraceTable=self.chunk_TraceTable||[]).push([["935"],{69979:function(e,t,r){"use strict";r.d(t,{A:()=>C});var l=r(70451),n=r(11750),o=r(81023),i=r(77308),a=r(23434),s=r(72052),u=r(22402),c=r(62540);let d=(0,u.A)((0,c.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var p=r(29009),f=r(46733);function g(e){return(0,f.Ay)("MuiAvatar",e)}(0,p.A)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var h=r(73397);let m=(0,i.A)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})((0,a.A)(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),b=(0,i.A)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),w=(0,i.A)(d,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"}),C=l.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiAvatar"}),{alt:i,children:a,className:u,component:d="div",slots:p={},slotProps:f={},imgProps:C,sizes:v,src:x,srcSet:y,variant:A="circular",...S}=r,R=null,I={...r,component:d,variant:A},M=function({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){let[o,i]=l.useState(!1);return l.useEffect(()=>{if(!r&&!n)return;i(!1);let l=!0,o=new Image;return o.onload=()=>{l&&i("loaded")},o.onerror=()=>{l&&i("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=r,n&&(o.srcset=n),()=>{l=!1}},[e,t,r,n]),o}({...C,..."function"==typeof f.img?f.img(I):f.img,src:x,srcSet:y}),k=x||y,P=k&&"error"!==M;I.colorDefault=!P,delete I.ownerState;let E=(e=>{let{classes:t,variant:r,colorDefault:l}=e;return(0,o.A)({root:["root",r,l&&"colorDefault"],img:["img"],fallback:["fallback"]},g,t)})(I),[F,H]=(0,h.A)("img",{className:E.img,elementType:b,externalForwardedProps:{slots:p,slotProps:{img:{...C,...f.img}}},additionalProps:{alt:i,src:x,srcSet:y,sizes:v},ownerState:I});return R=P?(0,c.jsx)(F,{...H}):a||0===a?a:k&&i?i[0]:(0,c.jsx)(w,{ownerState:I,className:E.fallback}),(0,c.jsx)(m,{as:d,className:(0,n.A)(E.root,u),ref:t,...S,ownerState:I,children:R})})},58535:function(e,t,r){"use strict";r.d(t,{x:()=>u});var l=r(70451),n=r(95591),o=r(83183),i=r(10713),a=r(30443);function s(e){return e.substring(2).toLowerCase()}function u(e){let{children:t,disableReactTree:r=!1,mouseEvent:u="onClick",onClickAway:c,touchEvent:d="onTouchEnd"}=e,p=l.useRef(!1),f=l.useRef(null),g=l.useRef(!1),h=l.useRef(!1);l.useEffect(()=>(setTimeout(()=>{g.current=!0},0),()=>{g.current=!1}),[]);let m=(0,n.A)((0,a.A)(t),f),b=(0,o.A)(e=>{let t=h.current;h.current=!1;let l=(0,i.A)(f.current);if(!(!g.current||!f.current||"clientX"in e&&(l.documentElement.clientWidth<e.clientX||l.documentElement.clientHeight<e.clientY))){if(p.current){p.current=!1;return}(e.composedPath?e.composedPath().includes(f.current):!l.documentElement.contains(e.target)||f.current.contains(e.target))||!r&&t||c(e)}}),w=e=>r=>{h.current=!0;let l=t.props[e];l&&l(r)},C={ref:m};return!1!==d&&(C[d]=w(d)),l.useEffect(()=>{if(!1!==d){let e=s(d),t=(0,i.A)(f.current),r=()=>{p.current=!0};return t.addEventListener(e,b),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,b),t.removeEventListener("touchmove",r)}}},[b,d]),!1!==u&&(C[u]=w(u)),l.useEffect(()=>{if(!1!==u){let e=s(u),t=(0,i.A)(f.current);return t.addEventListener(e,b),()=>{t.removeEventListener(e,b)}}},[b,u]),l.cloneElement(t,C)}},71971:function(e,t,r){"use strict";let l,n,o,i;r.d(t,{z:()=>cE});var a,s,u,c,d,p,f,g,h,m,b,w,C,v,x,y,A=r(68102),S=r(70451),R=r(62688),I=r.n(R);let M=parseInt(S.version,10),k=e=>{if(M>=19){let t=t=>e(t,t.ref??null);return t.displayName=e.displayName??e.name,t}return S.forwardRef(e)};var P=r(49257),E=r(11750),F=r(85235),H=r(81023),O=r(95591);let D=Object.is;function T(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let r=0,l=0;for(let l in e)if(r+=1,!D(e[l],t[l])||!(l in t))return!1;for(let e in t)l+=1;return r===l}function $(e){return S.memo(e,T)}var L=r(59238),j=r(77308),z=r(46733),V=r(29009);function N(e){return(0,z.Ay)("MuiDataGrid",e)}let G=(0,V.A)("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var B=r(43676),W=r(48731);function _(e){return e.acceptsApiRef}function U(e,t){return _(t)?t(e):t(e.current.state)}function K(e,t,r,l){return _(t)?t(e,r):t(e.current.state,l)}let q=Object.is,X=(e,t)=>e===t||e.length===t.length&&e.every((e,r)=>e===t[r]),Y=()=>({state:null,equals:null,selector:null,args:void 0}),Q=[],Z=()=>null,J=(e,t,r=q)=>{let l=(0,W.A)(Y),n=null!==l.current.selector,[o,i]=S.useState(n?null:U(e,t));l.current.state=o,l.current.equals=r,l.current.selector=t;let a=S.useCallback(()=>(l.current.subscription||(l.current.subscription=e.current.store.subscribe(()=>{let t=U(e,l.current.selector);l.current.equals(l.current.state,t)||(l.current.state=t,i(t))})),null),Q),s=S.useCallback(()=>()=>{l.current.subscription&&(l.current.subscription(),l.current.subscription=void 0)},Q);return(0,B.useSyncExternalStore)(s,a,Z),o},ee=(e,t,r,l=q)=>{let n,o=(0,W.A)(Y),i=null!==o.current.selector,[a,s]=S.useState(i?null:K(e,t,r,e.current.instanceId));o.current.state=a,o.current.equals=l,o.current.selector=t;let u=o.current.args;if(o.current.args=r,i&&(n=Object.is,r instanceof Array?n=X:r instanceof Object&&(n=T),!n(u,r))){let t=K(e,o.current.selector,o.current.args,e.current.instanceId);o.current.equals(o.current.state,t)||(o.current.state=t,s(t))}let c=S.useCallback(()=>(o.current.subscription||(o.current.subscription=e.current.store.subscribe(()=>{let t=K(e,o.current.selector,o.current.args,e.current.instanceId);o.current.equals(o.current.state,t)||(o.current.state=t,s(t))})),null),Q),d=S.useCallback(()=>()=>{o.current.subscription&&(o.current.subscription(),o.current.subscription=void 0)},Q);return(0,B.useSyncExternalStore)(d,c,Z),a},et=S.createContext(void 0);function er(){let e=S.useContext(et);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 el={[`& .${G.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${G.menuIcon}`]:{width:"auto",visibility:"visible"}},en={width:3,rx:1.5,x:10.5},eo=e=>e.dimensions.hasScrollX&&(!e.dimensions.hasScrollY||0===e.dimensions.scrollbarSize),ei=(0,j.A)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${G.autoHeight}`]:t.autoHeight},{[`&.${G.autosizing}`]:t.autosizing},{[`&.${G["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${G["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${G["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${G["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${G["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${G.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${G.actionsCell}`]:t.actionsCell},{[`& .${G.booleanCell}`]:t.booleanCell},{[`& .${G.cell}`]:t.cell},{[`& .${G["cell--editable"]}`]:t["cell--editable"]},{[`& .${G["cell--editing"]}`]:t["cell--editing"]},{[`& .${G["cell--flex"]}`]:t["cell--flex"]},{[`& .${G["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${G["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${G["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${G["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${G["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${G["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${G["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${G["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${G["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${G["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${G["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${G["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${G.cellCheckbox}`]:t.cellCheckbox},{[`& .${G.cellEmpty}`]:t.cellEmpty},{[`& .${G.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${G.cellSkeleton}`]:t.cellSkeleton},{[`& .${G.checkboxInput}`]:t.checkboxInput},{[`& .${G.columnHeader}`]:t.columnHeader},{[`& .${G["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${G["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${G["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${G["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${G["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${G["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${G["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${G["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${G["columnHeader--lastUnpinned"]}`]:t["columnHeader--lastUnpinned"]},{[`& .${G["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${G["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${G["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${G["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${G["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${G["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${G["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${G["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${G["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${G.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${G.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${G.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${G.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${G.columnSeparator}`]:t.columnSeparator},{[`& .${G["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${G["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${G["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${G["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${G["container--bottom"]}`]:t["container--bottom"]},{[`& .${G["container--top"]}`]:t["container--top"]},{[`& .${G.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${G["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${G.editBooleanCell}`]:t.editBooleanCell},{[`& .${G.filterIcon}`]:t.filterIcon},{[`& .${G["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${G["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${G["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${G.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${G.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${G.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${G.headerFilterRow}`]:t.headerFilterRow},{[`& .${G.iconSeparator}`]:t.iconSeparator},{[`& .${G.menuIcon}`]:t.menuIcon},{[`& .${G.menuIconButton}`]:t.menuIconButton},{[`& .${G.menuList}`]:t.menuList},{[`& .${G.menuOpen}`]:t.menuOpen},{[`& .${G.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${G.pinnedRows}`]:t.pinnedRows},{[`& .${G["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${G["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${G.row}`]:t.row},{[`& .${G["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${G["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${G["row--dragging"]}`]:t["row--dragging"]},{[`& .${G["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${G["row--editable"]}`]:t["row--editable"]},{[`& .${G["row--editing"]}`]:t["row--editing"]},{[`& .${G["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${G["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${G.rowReorderCell}`]:t.rowReorderCell},{[`& .${G["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${G.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${G.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${G.rowSkeleton}`]:t.rowSkeleton},{[`& .${G.scrollbar}`]:t.scrollbar},{[`& .${G["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${G["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${G.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${G["scrollbarFiller--borderBottom"]}`]:t["scrollbarFiller--borderBottom"]},{[`& .${G["scrollbarFiller--borderTop"]}`]:t["scrollbarFiller--borderTop"]},{[`& .${G["scrollbarFiller--header"]}`]:t["scrollbarFiller--header"]},{[`& .${G["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${G.sortIcon}`]:t.sortIcon},{[`& .${G.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${G.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${G.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${G.withBorderColor}`]:t.withBorderColor}]})(({theme:e})=>{let t=J(er(),eo),r=e.vars?e.vars.palette.TableCell.border:"light"===e.palette.mode?(0,L.a)((0,L.X4)(e.palette.divider,1),.88):(0,L.e$)((0,L.X4)(e.palette.divider,1),.68),l=e.shape.borderRadius,n=e.vars?e.vars.palette.background.default:e.mixins.MuiDataGrid?.containerBackground??e.palette.background.default,o=e.mixins.MuiDataGrid?.pinnedBackground??n,i=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:(0,L.X4)(e.palette.background.default,e.palette.action.disabledOpacity),a=(e.vars||e).palette.action.hoverOpacity,s=(e.vars||e).palette.action.hover,u=(e.vars||e).palette.action.selectedOpacity,c=e.vars?`calc(${a} + ${u})`:a+u,d=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${u})`:(0,L.X4)(e.palette.primary.main,u),p=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${c})`:(0,L.X4)(e.palette.primary.main,c),f=e.vars?es:ea,g=e=>({[`& .${G["cell--pinnedLeft"]}, & .${G["cell--pinnedRight"]}`]:{backgroundColor:e,"&.Mui-selected":{backgroundColor:f(e,d,u),"&:hover":{backgroundColor:f(e,d,c)}}}}),h=g(f(o,s,a)),m=f(o,d,u),b=g(m),w=g(f(o,p,c)),C={backgroundColor:d,"&:hover":{backgroundColor:p,"@media (hover: none)":{backgroundColor:d}}};return(0,A.A)({"--unstable_DataGrid-radius":"number"==typeof l?`${l}px`:l,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":i,"--DataGrid-containerBackground":n,"--DataGrid-pinnedBackground":o,"--DataGrid-rowBorderColor":r,"--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:r,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",[`.${G.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)"},[`&.${G.autoHeight}`]:{height:"auto"},[`&.${G.autosizing}`]:{[`& .${G.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${G.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${G.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${G.groupingCriteriaCell}`]:{width:"unset"},[`& .${G.treeDataGroupingCell}`]:{width:"unset"}},[`& .${G.columnHeader}, & .${G.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${G.columnHeader}:focus-within, & .${G.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:(0,L.X4)(e.palette.primary.main,.5)} 1px`,outlineOffset:-1},[`& .${G.columnHeader}:focus, & .${G.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`,outlineOffset:-1},[`& .${G.columnHeader}:focus,
3
3
  & .${G["columnHeader--withLeftBorder"]},
4
4
  & .${G["columnHeader--withRightBorder"]},
@@ -77,4 +77,4 @@ ${o.map((e,t)=>` ${JSON.stringify(String(e.item.id))}: !shouldApply${t} ? false
77
77
  return result$$;`.replaceAll("$$",String(re)));return re+=1,(e,t)=>i(o,e,t)})(i,e,t.disableEval),o=((e,t)=>{let r=e.quickFilterValues?.filter(Boolean)??[];if(0===r.length)return null;let l=e.quickFilterExcludeHiddenColumns??!0?eG(t):eL(t),n=[],{ignoreDiacritics:o}=t.current.rootProps,i=t4(t);return l.forEach(e=>{let l=t.current.getColumn(e),a=l?.getApplyQuickFilterFn;a&&n.push({column:l,appliers:r.map(e=>({fn:a(o?t7(e):e,l,i)}))})}),function(e,l){let a={};e:for(let s=0;s<r.length;s+=1){let u=r[s];for(let r=0;r<n.length;r+=1){let{column:c,appliers:d}=n[r],{field:p}=c;if(l&&!l(p))continue;let f=d[s],g=t.current.getRowValue(e,c);if(null!==f.fn&&(o&&(g=t7(g)),f.fn(g,e,c,i))){a[u]=!0;continue e}}a[u]=!1}return a}})(i,e),function(e,t,r){r.passingFilterItems=n?.(e,t)??null,r.passingQuickFilterValues=o?.(e,t)??null}):null,s=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:a,filterModel:i??t5()});return(0,A.A)({},s,{filterModel:i})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),m={setFilterLogicOperator:p,unstable_applyFilters:i,deleteFilterItem:u,upsertFilterItem:a,upsertFilterItems:s,setFilterModel:g,showFilterPanel:c,hideFilterPanel:d,setQuickFilterValues:f,ignoreDiacritics:t.ignoreDiacritics,getFilterState:h};nb(e,m,"public");let b=S.useCallback((r,l)=>{let n=lB(e);return(n.items.forEach(e=>{delete e.fromInput}),l.exportOnlyDirtyModels&&null==t.filterModel&&t.initialState?.filter?.filterModel==null&&tq(n,t5()))?r:(0,A.A)({},r,{filter:{filterModel:n}})},[e,t.filterModel,t.initialState?.filter?.filterModel]),w=S.useCallback((r,l)=>{let n=l.stateToRestore.filter?.filterModel;return null==n?r:(e.current.updateControlState("filter",t6(n,t.disableMultipleColumnsFiltering,e),"restoreState"),(0,A.A)({},r,{callbacks:[...r.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),C=S.useCallback((e,r)=>{if(r===eY.filters){let e=t.slots.filterPanel;return(0,eJ.jsx)(e,(0,A.A)({},t.slotProps?.filterPanel))}return e},[t.slots.filterPanel,t.slotProps?.filterPanel]),{getRowId:v}=t,x=(0,W.A)(ig),y=S.useCallback(r=>{if("client"!==t.filterMode||!r.isRowMatchingFilters||!r.filterModel.items.length&&!r.filterModel.quickFilterValues?.length)return t2;let l=tA(e),n={},{isRowMatchingFilters:o}=r,i={},a={passingFilterItems:null,passingQuickFilterValues:null},s=x.current(e.current.state.rows.dataRowIdToModelLookup);for(let t=0;t<s.length;t+=1){let l=s[t],u=v?v(l):l.id;o(l,void 0,a);let c=rr([a.passingFilterItems],[a.passingQuickFilterValues],r.filterModel,e,i);n[u]=c}let u="auto-generated-group-footer-root";return l[u]&&(n[u]=!0),{filteredRowsLookup:n,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,v,x]);o2(e,"columnMenu",o),o2(e,"exportState",b),o2(e,"restoreState",w),o2(e,"preferencePanel",C),iu(e,oD,"filtering",y),iu(e,oD,"visibleRowsLookupCreation",id);let R=S.useCallback(()=>{r.debug("onColUpdated - GridColumns changed, applying filters");let t=lB(e),l=ej(e),n=t.items.filter(e=>e.field&&l[e.field]);n.length<t.items.length&&e.current.setFilterModel((0,A.A)({},t,{items:n}))},[e,r]),I=S.useCallback(t=>{"filtering"===t&&e.current.unstable_applyFilters()},[e]),M=S.useCallback(()=>{e.current.setState(t=>(0,A.A)({},t,{visibleRowsLookup:ip(e,t)})),e.current.forceUpdate()},[e]);tu(e,"rowsSet",n),tu(e,"columnsChange",R),tu(e,"activeStrategyProcessorChange",I),tu(e,"rowExpansionChange",M),tu(e,"columnVisibilityModelChange",()=>{let t=lB(e);t.quickFilterValues&&(t.quickFilterExcludeHiddenColumns??!0)&&e.current.unstable_applyFilters()}),o1(()=>{e.current.unstable_applyFilters()}),(0,tg.A)(()=>{void 0!==t.filterModel&&e.current.setFilterModel(t.filterModel)},[e,r,t.filterModel])})(oo,t),rb=oj(oo,"useGridSorting"),oo.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:lV,changeEvent:"sortModelChange"}),rM=S.useCallback((e,t)=>{let r=lV(oo),l=r.findIndex(t=>t.field===e),n=[...r];return l>-1?t?.sort==null?n.splice(l,1):n.splice(l,1,t):n=[...r,t],n},[oo]),rF=S.useCallback((e,r)=>{let l=lV(oo).find(t=>t.field===e.field);if(l){let n=void 0===r?tT(e.sortingOrder??t.sortingOrder,l.sort):r;return void 0===n?void 0:(0,A.A)({},l,{sort:n})}return{field:e.field,sort:void 0===r?tT(e.sortingOrder??t.sortingOrder):r}},[oo,t.sortingOrder]),rH=S.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]),rO=S.useCallback(()=>{oo.current.setState(e=>{var r;let l;if("server"===t.sortingMode)return rb.debug("Skipping sorting rows as sortingMode = server"),(0,A.A)({},e,{sorting:(0,A.A)({},e.sorting,{sortedRows:rR(tR(oo),rw,!1)})});let n=(r=lV(e,oo.current.instanceId),0===(l=r.map(e=>{var t,r;let l,n;return t=e,(n=(r=oo).current.getColumn(t.field))&&null!==t.sort?(l=n.getSortComparator?n.getSortComparator(t.sort):"desc"===t.sort?(...e)=>-1*n.sortComparator(...e):n.sortComparator)?{getSortCellParams:e=>({id:e,field:n.field,rowNode:tR(r)[e],value:r.current.getCellValue(e,n.field),api:r.current}),comparator:l}:null:null}).filter(e=>!!e)).length?null:e=>e.map(e=>({node:e,params:l.map(t=>t.getSortCellParams(e.id))})).sort((e,t)=>l.reduce((r,l,n)=>{if(0!==r)return r;let o=e.params[n],i=t.params[n];return l.comparator(o.value,i.value,o,i)},0)).map(e=>e.node.id)),o=oo.current.applyStrategyProcessor("sorting",{sortRowList:n});return(0,A.A)({},e,{sorting:(0,A.A)({},e.sorting,{sortedRows:o})})}),oo.current.publishEvent("sortedRowsSet"),oo.current.forceUpdate()},[oo,rb,t.sortingMode]),r$=S.useCallback(e=>{lV(oo)!==e&&(rb.debug("Setting sort model"),oo.current.setState(tD(e,t.disableMultipleColumnsSorting)),oo.current.forceUpdate(),oo.current.applySorting())},[oo,rb,t.disableMultipleColumnsSorting]),rL=S.useCallback((e,r,l)=>{let n,o=oo.current.getColumn(e),i=rF(o,r);n=!l||t.disableMultipleColumnsSorting?i?.sort==null?[]:[i]:rM(o.field,i),oo.current.setSortModel(n)},[oo,rM,rF,t.disableMultipleColumnsSorting]),rj=S.useCallback(()=>lV(oo),[oo]),rz=S.useCallback(()=>lz(oo).map(e=>e.model),[oo]),rV=S.useCallback(()=>lj(oo),[oo]),rN=S.useCallback(e=>oo.current.getSortedRowIds()[e],[oo]),nb(oo,{getSortModel:rj,getSortedRows:rz,getSortedRowIds:rV,getRowIdFromRowIndex:rN,setSortModel:r$,sortColumn:rL,applySorting:rO},"public"),rG=S.useCallback((e,r)=>{let l=lV(oo);return!r.exportOnlyDirtyModels||null!=t.sortModel||t.initialState?.sorting?.sortModel!=null||l.length>0?(0,A.A)({},e,{sorting:{sortModel:l}}):e},[oo,t.sortModel,t.initialState?.sorting?.sortModel]),rB=S.useCallback((e,r)=>{let l=r.stateToRestore.sorting?.sortModel;return null==l?e:(oo.current.setState(tD(l,t.disableMultipleColumnsSorting)),(0,A.A)({},e,{callbacks:[...e.callbacks,oo.current.applySorting]}))},[oo,t.disableMultipleColumnsSorting]),rW=S.useCallback(e=>{let t=tR(oo),r=t[rw],l=e.sortRowList?e.sortRowList(r.children.map(e=>t[e])):[...r.children];return null!=r.footerId&&l.push(r.footerId),l},[oo]),o2(oo,"exportState",rG),o2(oo,"restoreState",rB),iu(oo,oD,"sorting",rW),rY=S.useCallback(({field:e,colDef:r},l)=>{!r.sortable||t.disableColumnSorting||rL(e,void 0,l.shiftKey||l.metaKey||l.ctrlKey)},[rL,t.disableColumnSorting]),rQ=S.useCallback(({field:e,colDef:r},l)=>{r.sortable&&!t.disableColumnSorting&&("Enter"!==l.key||l.ctrlKey||l.metaKey||rL(e,void 0,l.shiftKey))},[rL,t.disableColumnSorting]),rZ=S.useCallback(()=>{let e=lV(oo),t=ej(oo);if(e.length>0){let r=e.filter(e=>t[e.field]);r.length<e.length&&oo.current.setSortModel(r)}},[oo]),rJ=S.useCallback(e=>{"sorting"===e&&oo.current.applySorting()},[oo]),o2(oo,"columnMenu",rH),tu(oo,"columnHeaderClick",rY),tu(oo,"columnHeaderKeyDown",rQ),tu(oo,"rowsSet",oo.current.applySorting),tu(oo,"columnsChange",rZ),tu(oo,"activeStrategyProcessorChange",rJ),o1(()=>{oo.current.applySorting()}),(0,tg.A)(()=>{void 0!==t.sortModel&&oo.current.setSortModel(t.sortModel)},[oo,t.sortModel]),r0=oj(oo,"useDensity"),oo.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:eP,changeEvent:"densityChange"}),r1=(0,tn.A)(e=>{eP(oo.current.state)!==e&&(r0.debug(`Set grid density to ${e}`),oo.current.setState(t=>(0,A.A)({},t,{density:e})))}),nb(oo,{setDensity:r1},"public"),r2=S.useCallback((e,r)=>{let l=eP(oo.current.state);return r.exportOnlyDirtyModels&&null==t.density&&t.initialState?.density==null?e:(0,A.A)({},e,{density:l})},[oo,t.density,t.initialState?.density]),r5=S.useCallback((e,t)=>{let r=t.stateToRestore?.density?t.stateToRestore.density:eP(oo.current.state);return oo.current.setState(e=>(0,A.A)({},e,{density:r})),e},[oo]),o2(oo,"exportState",r2),o2(oo,"restoreState",r5),S.useEffect(()=>{t.density&&oo.current.setDensity(t.density)},[oo,t.density]),r4=(0,lr.I)(),r3=oj(oo,"useGridColumnResize"),r9=(0,W.A)(ac).current,r6=S.useRef(null),r7=S.useRef(null),r8=(0,tp.A)(),le=S.useRef(void 0),lt=e=>{r3.debug(`Updating width to ${e} for col ${r9.colDef.field}`);let t=e-r9.columnHeaderElement.offsetWidth,r=e-r9.initialColWidth;if(r>0){let e=r9.initialTotalWidth+r;oo.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${e}px`)}r9.colDef.computedWidth=e,r9.colDef.width=e,r9.colDef.flex=0,r9.columnHeaderElement.style.width=`${e}px`;let l=r9.headerFilterElement;l&&(l.style.width=`${e}px`),r9.groupHeaderElements.forEach(r=>{let l;l="1"===r.getAttribute("aria-colspan")?`${e}px`:`${r.offsetWidth+t}px`,r.style.width=l}),r9.cellElements.forEach(r=>{let l;l="1"===r.getAttribute("aria-colspan")?`${e}px`:`${r.offsetWidth+t}px`,r.style.setProperty("--width",l)});let n=oo.current.unstable_applyPipeProcessors("isColumnPinned",!1,r9.colDef.field);n===eD.LEFT&&(ad(r9.fillerLeft,"width",t),r9.leftPinnedCellsAfter.forEach(e=>{ad(e,"left",t)}),r9.leftPinnedHeadersAfter.forEach(e=>{ad(e,"left",t)})),n===eD.RIGHT&&(ad(r9.fillerRight,"width",t),r9.rightPinnedCellsBefore.forEach(e=>{ad(e,"right",t)}),r9.rightPinnedHeadersBefore.forEach(e=>{ad(e,"right",t)}))},ll=e=>{if(lc(),r9.previousMouseClickEvent){let t=r9.previousMouseClickEvent,r=t.timeStamp,l=t.clientX,n=t.clientY;if(e.timeStamp-r<300&&e.clientX===l&&e.clientY===n){r9.previousMouseClickEvent=void 0,oo.current.publishEvent("columnResizeStop",null,e);return}}if(r9.colDef){oo.current.setColumnWidth(r9.colDef.field,r9.colDef.width),r3.debug(`Updating col ${r9.colDef.field} with new width: ${r9.colDef.width}`);let e=e$(oo.current.state);r9.groupHeaderElements.forEach(t=>{let r=t.getAttribute("data-fields").slice(2,-2).split("-|-").reduce((t,r)=>!1!==e.columnVisibilityModel[r]?t+e.lookup[r].computedWidth:t,0),l=`${r}px`;t.style.width=l})}r8.start(0,()=>{oo.current.publishEvent("columnResizeStop",null,e)})},ln=(e,t,r)=>{var l,n,o,i,a,s,u,c,d,p,f,g,h,m,b;let w,C,v,x,y,A=oo.current.rootElementRef.current;r9.initialColWidth=e.computedWidth,r9.initialTotalWidth=oo.current.getRootDimensions().rowWidth,r9.colDef=e,l=oo.current.columnHeadersContainerRef.current,n=e.field,r9.columnHeaderElement=l.querySelector(`[data-field="${ib(n)}"]`);let S=A.querySelector(`.${G.headerFilterRow} [data-field="${ib(e.field)}"]`);S&&(r9.headerFilterElement=S),o=oo.current.columnHeadersContainerRef?.current,i=e.field,r9.groupHeaderElements=Array.from(o.querySelectorAll(`[data-fields*="|-${ib(i)}-|"]`)??[]),r9.cellElements=function(e,t){if(!im(e,G.root))throw Error("MUI X: The root element is not found.");let r=e.getAttribute("aria-colindex");if(!r)return[];let l=Number(r)-1,n=[];return t.virtualScrollerRef?.current?(iA(t).forEach(e=>{let r=e.getAttribute("data-id");if(!r)return;let o=l,i=t.unstable_getCellColSpanInfo(r,l);i&&i.spannedByColSpan&&(o=i.leftVisibleCellIndex);let a=e.querySelector(`[data-colindex="${o}"]`);a&&n.push(a)}),n):[]}(r9.columnHeaderElement,oo.current),r9.fillerLeft=iv(oo.current,r4?"filler--pinnedRight":"filler--pinnedLeft"),r9.fillerRight=iv(oo.current,r4?"filler--pinnedLeft":"filler--pinnedRight");let R=oo.current.unstable_applyPipeProcessors("isColumnPinned",!1,r9.colDef.field);r9.leftPinnedCellsAfter=R!==eD.LEFT?[]:(a=oo.current,s=r9.columnHeaderElement,ix({api:a,colIndex:C=iS(s),position:r4?"right":"left",filterFn:e=>r4?e<C:e>C})),r9.rightPinnedCellsBefore=R!==eD.RIGHT?[]:(u=oo.current,c=r9.columnHeaderElement,ix({api:u,colIndex:v=iS(c),position:r4?"left":"right",filterFn:e=>r4?e>v:e<v})),r9.leftPinnedHeadersAfter=R!==eD.LEFT?[]:(d=oo.current,p=r9.columnHeaderElement,iy({api:d,position:r4?"right":"left",colIndex:x=iS(p),filterFn:e=>r4?e<x:e>x}));r9.rightPinnedHeadersBefore=R!==eD.RIGHT?[]:(f=oo.current,g=r9.columnHeaderElement,iy({api:f,position:r4?"left":"right",colIndex:y=iS(g),filterFn:(e,t)=>!t.classList.contains(G["columnHeader--last"])&&(r4?e>y:e<y)})),m=t,b=r4,w=m.classList.contains(G["columnSeparator--sideRight"])?"Right":"Left",r7.current=b?"Right"===w?"Left":"Right":w,h=r9.columnHeaderElement.getBoundingClientRect(),r6.current="Left"===r7.current?r-h.left:h.right-r},lo=(0,tn.A)(ll),li=(0,tn.A)(e=>{if(0===e.buttons)return void lo(e);let t=aa(r6.current,e.clientX,r9.columnHeaderElement.getBoundingClientRect(),r7.current);lt(t=tU(t,r9.colDef.minWidth,r9.colDef.maxWidth));let r={element:r9.columnHeaderElement,colDef:r9.colDef,width:t};oo.current.publishEvent("columnResize",r,e)}),la=(0,tn.A)(e=>{ai(e,le.current)&&ll(e)}),ls=(0,tn.A)(e=>{let t=ai(e,le.current);if(!t)return;if("mousemove"===e.type&&0===e.buttons)return void la(e);let r=aa(r6.current,t.x,r9.columnHeaderElement.getBoundingClientRect(),r7.current);lt(r=tU(r,r9.colDef.minWidth,r9.colDef.maxWidth));let l={element:r9.columnHeaderElement,colDef:r9.colDef,width:r};oo.current.publishEvent("columnResize",l,e)}),lu=(0,tn.A)(e=>{let t=im(e.target,G["columnSeparator--resizable"]);if(!t)return;let r=e.changedTouches[0];null!=r&&(le.current=r.identifier);let l=im(e.target,G.columnHeader).getAttribute("data-field"),n=oo.current.getColumn(l);r3.debug(`Start Resize on col ${n.field}`),oo.current.publishEvent("columnResizeStart",{field:l},e),ln(n,t,r.clientX);let o=(0,ia.A)(e.currentTarget);o.addEventListener("touchmove",ls),o.addEventListener("touchend",la)}),lc=S.useCallback(()=>{let e=(0,ia.A)(oo.current.rootElementRef.current);e.body.style.removeProperty("cursor"),e.removeEventListener("mousemove",li),e.removeEventListener("mouseup",lo),e.removeEventListener("touchmove",ls),e.removeEventListener("touchend",la),setTimeout(()=>{e.removeEventListener("click",as,!0)},100),r9.columnHeaderElement&&(r9.columnHeaderElement.style.pointerEvents="unset")},[oo,r9,li,lo,ls,la]),ld=S.useCallback(({field:e})=>{oo.current.setState(t=>(0,A.A)({},t,{columnResize:(0,A.A)({},t.columnResize,{resizingColumnField:e})})),oo.current.forceUpdate()},[oo]),lp=S.useCallback(()=>{oo.current.setState(e=>(0,A.A)({},e,{columnResize:(0,A.A)({},e.columnResize,{resizingColumnField:""})})),oo.current.forceUpdate()},[oo]),lg=(0,tn.A)(({colDef:e},t)=>{if(0!==t.button||!t.currentTarget.classList.contains(G["columnSeparator--resizable"]))return;t.preventDefault(),r3.debug(`Start Resize on col ${e.field}`),oo.current.publishEvent("columnResizeStart",{field:e.field},t),ln(e,t.currentTarget,t.clientX);let r=(0,ia.A)(oo.current.rootElementRef.current);r.body.style.cursor="col-resize",r9.previousMouseClickEvent=t.nativeEvent,r.addEventListener("mousemove",li),r.addEventListener("mouseup",lo),r.addEventListener("click",as,!0)}),lh=(0,tn.A)((e,r)=>{if(t.disableAutosize||0!==r.button)return;let l=oo.current.state.columns.lookup[e.field];!1!==l.resizable&&oo.current.autosizeColumns((0,A.A)({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[l.field]}))}),lm=S.useRef(void 0),lC=()=>nf(oo),ly=J(oo,lC),S.useEffect(()=>{lm.current&&!1===ly&&(lm.current.resolve(),lm.current=void 0)}),lR=()=>{if(!lm.current){let e,t,r;if(!1===lC())return Promise.resolve();(r=new Promise((r,l)=>{e=r,t=l})).resolve=e,r.reject=t,lm.current=r}return lm.current},lM=S.useRef(!1),lE=S.useCallback(async e=>{if(!oo.current.rootElementRef?.current||lM.current)return;lM.current=!0;let r=e$(oo.current.state),l=(0,A.A)({},ao,e,{columns:e?.columns??r.orderedFields});l.columns=l.columns.filter(e=>!1!==r.columnVisibilityModel[e]);let n=l.columns.map(e=>oo.current.state.columns.lookup[e]);try{let e,o;!t.disableVirtualization&&l.disableColumnVirtualization&&(oo.current.unstable_setColumnVirtualization(!1),await lR());let i=(e={},(o=oo.current.rootElementRef.current).classList.add(G.autosizing),n.forEach(t=>{var r,n,o,i;let a=(r=oo.current,n=t.field,Array.from(r.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > div > [data-field="${ib(n)}"][role="gridcell"]`))).map(e=>e.getBoundingClientRect().width??0),s=l.includeOutliers?a:function(e,t){if(e.length<4)return e;let r=e.slice();r.sort((e,t)=>e-t);let l=r[Math.floor(.25*r.length)],n=r[Math.floor(.75*r.length)-1],o=n-l,i=o<5?5:o*t;return r.filter(e=>e>l-i&&e<n+i)}(a,l.outliersFactor);if(l.includeHeaders){let e=(o=oo.current,i=t.field,o.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${ib(i)}"][role="columnheader"]`));if(e){let t=e.querySelector(`.${G.columnHeaderTitle}`),r=e.querySelector(`.${G.columnHeaderTitleContainerContent}`),l=e.querySelector(`.${G.iconButtonContainer}`),n=e.querySelector(`.${G.menuIcon}`),o=window.getComputedStyle(e,null),i=parseInt(o.paddingLeft,10)+parseInt(o.paddingRight,10),a=(t??r).scrollWidth+1+i+(l?.clientWidth??0)+(n?.clientWidth??0);s.push(a)}}let u=t.minWidth!==-1/0&&void 0!==t.minWidth,c=t.maxWidth!==1/0&&void 0!==t.maxWidth,d=u?t.minWidth:0,p=c?t.maxWidth:1/0,f=0===s.length?0:Math.max(...s);e[t.field]=tU(f,d,p)}),o.classList.remove(G.autosizing),e),a=n.map(e=>(0,A.A)({},e,{width:i[e.field],computedWidth:i[e.field],flex:0}));if(l.expand){let e=r.orderedFields.map(e=>r.lookup[e]).filter(e=>!1!==r.columnVisibilityModel[e.field]).reduce((e,t)=>e+(i[t.field]??t.computedWidth??t.width),0),t=oo.current.getRootDimensions().viewportInnerSize.width-e;if(t>0){let e=t/(a.length||1);a.forEach(t=>{t.width+=e,t.computedWidth+=e})}}oo.current.updateColumns(a),a.forEach((e,t)=>{if(e.width!==n[t].width){let t=e.width;oo.current.publishEvent("columnWidthChange",{element:oo.current.getColumnHeaderElement(e.field),colDef:e,width:t})}})}finally{t.disableVirtualization||oo.current.unstable_setColumnVirtualization(!0),lM.current=!1}},[oo,lR,t.disableVirtualization]),S.useEffect(()=>lc,[lc]),(0,os.A)(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{oo.current.autosizeColumns(t.autosizeOptions)})}),oz(oo,()=>oo.current.columnHeadersContainerRef?.current,"touchstart",lu,{passive:!0}),nb(oo,{autosizeColumns:lE},"public"),tu(oo,"columnResizeStop",lp),tu(oo,"columnResizeStart",ld),tu(oo,"columnSeparatorMouseDown",lg),tu(oo,"columnSeparatorDoubleClick",lh),td(oo,"columnResize",t.onColumnResize),td(oo,"columnWidthChange",t.onColumnWidthChange),lF=oj(oo,"useGridPaginationMeta"),lH=J(oo,l8),oo.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:l8,changeEvent:"paginationMetaChange"}),lO=S.useCallback(e=>{lH!==e&&(lF.debug("Setting 'paginationMeta' to",e),oo.current.setState(t=>(0,A.A)({},t,{pagination:(0,A.A)({},t.pagination,{meta:e})})))},[oo,lF,lH]),nb(oo,{setPaginationMeta:lO},"public"),lD=S.useCallback((e,r)=>{let l=l8(oo);return r.exportOnlyDirtyModels&&null==t.paginationMeta&&t.initialState?.pagination?.meta==null?e:(0,A.A)({},e,{pagination:(0,A.A)({},e.pagination,{meta:l})})},[oo,t.paginationMeta,t.initialState?.pagination?.meta]),lT=S.useCallback((e,t)=>{let r=t.stateToRestore.pagination?.meta?t.stateToRestore.pagination.meta:l8(oo);return oo.current.setState(e=>(0,A.A)({},e,{pagination:(0,A.A)({},e.pagination,{meta:r})})),e},[oo]),o2(oo,"exportState",lD),o2(oo,"restoreState",lT),S.useEffect(()=>{t.paginationMeta&&oo.current.setPaginationMeta(t.paginationMeta)},[oo,t.paginationMeta]),l$=oj(oo,"useGridPaginationModel"),lL=J(oo,eE),lN=S.useRef(lB(oo)),lG=Math.floor(t.rowHeight*lL),oo.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:l6,changeEvent:"paginationModelChange"}),lW=S.useCallback(e=>{let t=l6(oo);e!==t.page&&(l$.debug(`Setting page to ${e}`),oo.current.setPaginationModel({page:e,pageSize:t.pageSize}))},[oo,l$]),lq=S.useCallback(e=>{let t=l6(oo);e!==t.pageSize&&(l$.debug(`Setting page size to ${e}`),oo.current.setPaginationModel({pageSize:e,page:t.page}))},[oo,l$]),lY=S.useCallback(e=>{e!==l6(oo)&&(l$.debug("Setting 'paginationModel' to",e),oo.current.setState(r=>(0,A.A)({},r,{pagination:(0,A.A)({},r.pagination,{paginationModel:is(r.pagination,t.signature,e)})}),"setPaginationModel"))},[oo,l$,t.signature]),nb(oo,{setPage:lW,setPageSize:lq,setPaginationModel:lY},"public"),lJ=S.useCallback((e,r)=>{let l=l6(oo);return r.exportOnlyDirtyModels&&null==t.paginationModel&&t.initialState?.pagination?.paginationModel==null&&(0===l.page||l.pageSize===100*!t.autoPageSize)?e:(0,A.A)({},e,{pagination:(0,A.A)({},e.pagination,{paginationModel:l})})},[oo,t.paginationModel,t.initialState?.pagination?.paginationModel,t.autoPageSize]),l1=S.useCallback((e,r)=>{let l=r.stateToRestore.pagination?.paginationModel?(0,A.A)({},l5(t.autoPageSize),r.stateToRestore.pagination?.paginationModel):l6(oo);return oo.current.setState(e=>(0,A.A)({},e,{pagination:(0,A.A)({},e.pagination,{paginationModel:is(e.pagination,t.signature,l)})}),"stateRestorePreProcessing"),e},[oo,t.autoPageSize,t.signature]),o2(oo,"exportState",lJ),o2(oo,"restoreState",l1),l2=S.useCallback(()=>{if(!t.autoPageSize)return;let e=Math.floor(oo.current.getRootDimensions().viewportInnerSize.height/lG);oo.current.setPageSize(e)},[oo,t.autoPageSize,lG]),l4=S.useCallback(e=>{if(null==e)return;let t=l6(oo);if(0===t.page)return;let r=nr(oo);t.page>r-1&&oo.current.setPage(Math.max(0,r-1))},[oo]),l3=S.useCallback(()=>{0!==l6(oo).page&&oo.current.setPage(0),0!==oo.current.getScrollPosition().top&&oo.current.scroll({top:0})},[oo]),l9=S.useCallback(e=>{let t=(0,A.A)({},e,{items:l0(oo)});tq(t,lN.current)||(lN.current=t,l3())},[oo,l3]),tu(oo,"viewportInnerSizeChange",l2),tu(oo,"paginationModelChange",()=>{let e=l6(oo);oo.current.virtualScrollerRef?.current&&oo.current.scrollToIndexes({rowIndex:e.page*e.pageSize})}),tu(oo,"rowCountChange",l4),tu(oo,"sortModelChange",tY(t.resetPageOnSortFilter,l3)),tu(oo,"filterModelChange",tY(t.resetPageOnSortFilter,l9)),nl=S.useRef(!0),S.useEffect(()=>{if(nl.current){nl.current=!1;return}t.pagination&&oo.current.setState(e=>(0,A.A)({},e,{pagination:(0,A.A)({},e.pagination,{paginationModel:is(e.pagination,t.signature,t.paginationModel)})}))},[oo,t.paginationModel,t.signature,t.pagination]),S.useEffect(()=>{oo.current.setState(e=>{let r=!0===t.pagination;return e.pagination.paginationMode===t.paginationMode||e.pagination.enabled===r?e:(0,A.A)({},e,{pagination:(0,A.A)({},e.pagination,{paginationMode:t.paginationMode,enabled:!0===t.pagination})})})},[oo,t.paginationMode,t.pagination]),S.useEffect(l2,[l2]),nn=oj(oo,"useGridRowCount"),na=J(oo,lZ),nu=J(oo,l7),np=J(oo,l8),ng=J(oo,l6),nm=(0,W.A)(()=>l6(oo).pageSize),oo.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:l7,changeEvent:"rowCountChange"}),nw=S.useCallback(e=>{nu!==e&&(nn.debug("Setting 'rowCount' to",e),oo.current.setState(t=>(0,A.A)({},t,{pagination:(0,A.A)({},t.pagination,{rowCount:e})})))},[oo,nn,nu]),nb(oo,{setRowCount:nw},"public"),nv=S.useCallback((e,r)=>{let l=l7(oo);return r.exportOnlyDirtyModels&&null==t.rowCount&&t.initialState?.pagination?.rowCount==null?e:(0,A.A)({},e,{pagination:(0,A.A)({},e.pagination,{rowCount:l})})},[oo,t.rowCount,t.initialState?.pagination?.rowCount]),ny=S.useCallback((e,t)=>{let r=t.stateToRestore.pagination?.rowCount?t.stateToRestore.pagination.rowCount:l7(oo);return oo.current.setState(e=>(0,A.A)({},e,{pagination:(0,A.A)({},e.pagination,{rowCount:r})})),e},[oo]),o2(oo,"exportState",nv),o2(oo,"restoreState",ny),nA=S.useCallback(e=>{"client"!==t.paginationMode&&nm.current&&e.pageSize!==nm.current&&(nm.current=e.pageSize,-1===nu&&oo.current.setPage(0))},[t.paginationMode,nm,nu,oo]),tu(oo,"paginationModelChange",nA),S.useEffect(()=>{"client"===t.paginationMode?oo.current.setRowCount(na):null!=t.rowCount&&oo.current.setRowCount(t.rowCount)},[oo,t.paginationMode,na,t.rowCount]),nS=!1===np.hasNextPage,S.useEffect(()=>{nS&&-1===nu&&oo.current.setRowCount(ng.pageSize*ng.page+na)},[oo,na,nS,nu,ng]),((e,t)=>{let{getRowHeight:r,getRowSpacing:l,getEstimatedRowHeight:n}=t,o=e.current.caches.rowsMeta.heights,i=S.useRef(-1),a=S.useRef(!1),s=S.useRef(!1),u=J(e,eE),c=J(e,ni),d=J(e,tF),p=J(e,e3),f=S.useCallback(t=>{let o=e5(e.current.state).rowHeight,i=e.current.getRowHeightEntry(t.id);if(r){let e=r((0,A.A)({},t,{densityFactor:u}));"auto"===e?(i.needsFirstMeasurement&&(i.content=(n?n((0,A.A)({},t,{densityFactor:u})):o)??o),a.current=!0,i.autoHeight=!0):(i.content=rP(e,o,"MUI X: The `getRowHeight` prop should return a number greater than 0 or 'auto'.\nThe default value will be used instead."),i.needsFirstMeasurement=!1,i.autoHeight=!1)}else i.content=o,i.needsFirstMeasurement=!1;if(l){let r=e.current.getRowIndexRelativeToVisibleRows(t.id),n=l((0,A.A)({},t,{isFirstVisible:0===r,isLastVisible:r===c.rows.length-1,indexRelativeToCurrentPage:r}));i.spacingTop=n.top??0,i.spacingBottom=n.bottom??0}else i.spacingTop=0,i.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",i,t),i},[e,c.rows,r,n,p,l,u]),g=S.useCallback(()=>{a.current=!1;let t=d.top.reduce((e,t)=>{let r=f(t);return e+r.content+r.spacingTop+r.spacingBottom+r.detail},0),r=d.bottom.reduce((e,t)=>{let r=f(t);return e+r.content+r.spacingTop+r.spacingBottom+r.detail},0),l=[],n=c.rows.reduce((e,t)=>{l.push(e);let r=f(t);return e+(r.content+r.spacingTop+r.spacingBottom+r.detail)},0);a.current||(i.current=1/0);let o=t!==e.current.state.rowsMeta.pinnedTopRowsTotalHeight||r!==e.current.state.rowsMeta.pinnedBottomRowsTotalHeight||n!==e.current.state.rowsMeta.currentPageTotalHeight,u={currentPageTotalHeight:n,positions:l,pinnedTopRowsTotalHeight:t,pinnedBottomRowsTotalHeight:r};e.current.setState(e=>(0,A.A)({},e,{rowsMeta:u})),o&&e.current.updateDimensions(),s.current=!0},[e,d,c.rows,f]),h=(0,W.A)(()=>new i3(t=>{for(let r=0;r<t.length;r+=1){let l=t[r],n=l.borderBoxSize&&l.borderBoxSize.length>0?l.borderBoxSize[0].blockSize:l.contentRect.height,o=l.target.__mui_id;if(nH(e)?.id===o&&0===n)return;e.current.unstable_storeRowHeightMeasurement(o,n)}s.current||e.current.requestPipeProcessorsApplication("rowHeight")})).current;o5(e,"rowHeight",g),(0,tg.A)(()=>{g()},[g]),nb(e,{unstable_getRowHeight:e=>o.get(e)?.content??p,unstable_setLastMeasuredRowIndex:e=>{a.current&&e>i.current&&(i.current=e)},unstable_storeRowHeightMeasurement:(t,r)=>{let l=e.current.getRowHeightEntry(t),n=l.content!==r;l.needsFirstMeasurement=!1,l.content=r,s.current&&=!n},resetRowHeights:()=>{o.clear(),g()}},"public"),nb(e,{hydrateRowsMeta:g,observeRowHeight:(e,t)=>(e.__mui_id=t,h.observe(e),()=>h.unobserve(e)),rowHasAutoHeight:e=>o.get(e)?.autoHeight??!1,getRowHeightEntry:e=>{let t=o.get(e);return void 0===t&&(t={content:p,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},o.set(e,t)),t},getLastMeasuredRowIndex:()=>i.current},"private")})(oo,t),nI=(0,lr.I)(),nk=oj(oo,"useGridScroll"),nE=oo.current.columnHeadersContainerRef,nF=oo.current.virtualScrollerRef,nT=J(oo,lU),n$=S.useCallback(e=>{let r=e5(oo.current.state),l=tv(oo),n=t.unstable_listView?[oo.current.state.listViewColumn]:eN(oo);if(null!=e.rowIndex&&0===l||0===n.length)return!1;nk.debug(`Scrolling to cell at row ${e.rowIndex}, col: ${e.colIndex} `);let o={};if(void 0!==e.colIndex){let t,l=eW(oo);if(void 0!==e.rowIndex){let r=nT[e.rowIndex]?.id,l=oo.current.unstable_getCellColSpanInfo(r,e.colIndex);l&&!l.spannedByColSpan&&(t=l.cellProps.width)}void 0===t&&(t=n[e.colIndex].computedWidth),o.left=iq({containerSize:r.viewportOuterSize.width,scrollPosition:Math.abs(nF.current.scrollLeft),elementSize:t,elementOffset:l[e.colIndex]})}if(void 0!==e.rowIndex){let l=oo.current.state.rowsMeta,n=ne(oo),i=nt(oo),a=t.pagination?e.rowIndex-n*i:e.rowIndex,s=l.positions[a+1]?l.positions[a+1]-l.positions[a]:l.currentPageTotalHeight-l.positions[a];o.top=iq({containerSize:r.viewportInnerSize.height,scrollPosition:nF.current.scrollTop,elementSize:s,elementOffset:l.positions[a]})}return(o=oo.current.unstable_applyPipeProcessors("scrollToIndexes",o,e)).left,oo.current.scroll(o),!0},[nk,oo,nF,t.pagination,nT,t.unstable_listView]),nL=S.useCallback(e=>{if(nF.current&&void 0!==e.left&&nE.current){let t=nI?-1:1;nE.current.scrollLeft=e.left,nF.current.scrollLeft=t*e.left,nk.debug(`Scrolling left: ${e.left}`)}nF.current&&void 0!==e.top&&(nF.current.scrollTop=e.top,nk.debug(`Scrolling top: ${e.top}`)),nk.debug("Scrolling, updating container, and viewport")},[nF,nI,nE,nk]),nb(oo,{scroll:nL,scrollToIndexes:n$,getScrollPosition:S.useCallback(()=>nF?.current?{top:nF.current.scrollTop,left:nF.current.scrollLeft}:{top:0,left:0},[nF])},"public"),nj=oj(oo,"useGridColumnMenu"),nz=S.useCallback(e=>{let t=nY(oo.current.state);(!0!==t.open||e!==t.field)&&(oo.current.setState(t=>t.columnMenu.open&&t.columnMenu.field===e?t:(nj.debug("Opening Column Menu"),(0,A.A)({},t,{columnMenu:{open:!0,field:e}}))),oo.current.hidePreferences())},[oo,nj]),nV=S.useCallback(()=>{let e=nY(oo.current.state);if(e.field){let t=ej(oo),r=eV(oo),l=eL(oo),n=e.field;if(t[n]||(n=l[0]),!1===r[n]){let e=l.filter(e=>e===n||!1!==r[e]),t=e.indexOf(n);n=e[t+1]||e[t-1]}oo.current.setColumnHeaderFocus(n)}let t={open:!1,field:void 0};(t.open!==e.open||t.field!==e.field)&&oo.current.setState(e=>(nj.debug("Hiding Column Menu"),(0,A.A)({},e,{columnMenu:t})))},[oo,nj]),nN=S.useCallback(e=>{nj.debug("Toggle Column Menu");let t=nY(oo.current.state);t.open&&t.field===e?nV():nz(e)},[oo,nj,nz,nV]),nb(oo,{showColumnMenu:nz,hideColumnMenu:nV,toggleColumnMenu:nN},"public"),tu(oo,"columnResizeStart",nV),tu(oo,"virtualScrollerWheel",oo.current.hideColumnMenu),tu(oo,"virtualScrollerTouchMove",oo.current.hideColumnMenu),nG=oj(oo,"useGridCsvExport"),nW=("object"==typeof(nB=t.ignoreValueFormatterDuringExport)?nB?.csvExport:nB)||!1,n_=S.useCallback((e={})=>(nG.debug("Get data as CSV"),function(e){let{columns:t,rowIds:r,csvOptions:l,ignoreValueFormatter:n,apiRef:o}=e,i=r.reduce((e,r)=>`${e}${(({id:e,columns:t,getCellParams:r,csvOptions:l,ignoreValueFormatter:n})=>{let o=new oq({csvOptions:l});return t.forEach(t=>{let i=r(e,t.field);o.addValue(oK(i,{ignoreValueFormatter:n,csvOptions:l}))}),o.getRowString()})({id:r,columns:t,getCellParams:o.current.getCellParams,ignoreValueFormatter:n,csvOptions:l})}\r
78
78
  `,"").trim();if(!l.includeHeaders)return i;let a=t.filter(e=>e.field!==o_.field),s=[];if(l.includeColumnGroupsHeaders){let e=o.current.getAllGroupDetails(),t=0,r=a.reduce((e,r)=>{let l=o.current.getColumnGroupPath(r.field);return e[r.field]=l,t=Math.max(t,l.length),e},{});for(let n=0;n<t;n+=1){let t=new oq({csvOptions:l,sanitizeCellValue:oU});s.push(t),a.forEach(l=>{let o=e[(r[l.field]||[])[n]];t.addValue(o?o.headerName||o.groupId:"")})}}let u=new oq({csvOptions:l,sanitizeCellValue:oU});a.forEach(e=>{u.addValue(e.headerName||e.field)}),s.push(u);let c=`${s.map(e=>e.getRowString()).join("\r\n")}\r
79
79
  `;return`${c}${i}`.trim()}({columns:o6({apiRef:oo,options:e}),rowIds:(e.getRowsToExport??o7)({apiRef:oo}),csvOptions:{delimiter:e.delimiter||",",shouldAppendQuotes:e.shouldAppendQuotes??!0,includeHeaders:e.includeHeaders??!0,includeColumnGroupsHeaders:e.includeColumnGroupsHeaders??!0,escapeFormulas:e.escapeFormulas??!0},ignoreValueFormatter:nW,apiRef:oo})),[nG,oo,nW]),nU=S.useCallback(e=>{nG.debug("Export data as CSV");let t=n_(e);!function(e,t="csv",r=document.title||"untitled"){let l=`${r}.${t}`;if("download"in HTMLAnchorElement.prototype){let t=URL.createObjectURL(e),r=document.createElement("a");r.href=t,r.download=l,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)},[nG,n_]),nb(oo,{getDataAsCsv:n_,exportDataAsCsv:nU},"public"),o2(oo,"exportMenu",S.useCallback((e,t)=>t.csvOptions?.disableToolbarButton?e:[...e,{component:(0,eJ.jsx)(io,{options:t.csvOptions}),componentName:"csvExport"}],[])),nK=null!==oo.current.rootElementRef.current,nq=oj(oo,"useGridPrintExport"),nX=S.useRef(null),nQ=S.useRef(null),nZ=S.useRef({}),nJ=S.useRef([]),n0=S.useRef(null),S.useEffect(()=>{nX.current=(0,ia.A)(oo.current.rootElementRef.current)},[oo,nK]),n1=S.useCallback((e,t,r)=>new Promise(l=>{let n=o6({apiRef:oo,options:{fields:e,allColumns:t}}).map(e=>e.field),o=ez(oo),i={};o.forEach(e=>{i[e.field]=n.includes(e.field)}),r&&(i[o_.field]=!0),oo.current.setColumnVisibilityModel(i),l()}),[oo]),n2=S.useCallback(e=>{let t=e({apiRef:oo}).reduce((e,t)=>{let r=oo.current.getRow(t);return r[rC]||e.push(r),e},[]);oo.current.setRows(t)},[oo]),n5=S.useCallback((e,r)=>{let l=(0,A.A)({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},r),n=e.contentDocument;if(!n)return;let o=oo.current.state.rowsMeta,i=oo.current.rootElementRef.current,a=i.cloneNode(!0);a.querySelector(`.${G.main}`).style.overflow="visible",a.style.contain="size";let s=i.querySelector(`.${G.toolbarContainer}`)?.offsetHeight||0,u=i.querySelector(`.${G.footerContainer}`)?.offsetHeight||0,c=a.querySelector(`.${G.footerContainer}`);l.hideToolbar&&(a.querySelector(`.${G.toolbarContainer}`)?.remove(),s=0),l.hideFooter&&c&&(c.remove(),u=0);let d=o.currentPageTotalHeight+lP(oo,t)+s+u;a.style.height=`${d}px`,a.style.boxSizing="content-box",!l.hideFooter&&c&&(c.style.position="absolute",c.style.width="100%",c.style.top=`${d-u}px`);let p=document.createElement("div");p.appendChild(a),n.body.style.marginTop="0px",n.body.innerHTML=p.innerHTML;let f="function"==typeof l.pageStyle?l.pageStyle():l.pageStyle;if("string"==typeof f){let e=n.createElement("style");e.appendChild(n.createTextNode(f)),n.head.appendChild(e)}l.bodyClassName&&n.body.classList.add(...l.bodyClassName.split(" "));let g=[];if(l.copyStyles){let e=i.getRootNode(),t=("ShadowRoot"===e.constructor.name?e:nX.current).querySelectorAll("style, link[rel='stylesheet']");for(let e=0;e<t.length;e+=1){let r=t[e];if("STYLE"===r.tagName){let e=n.createElement(r.tagName),t=r.sheet;if(t){let r="";for(let e=0;e<t.cssRules.length;e+=1)"string"==typeof t.cssRules[e].cssText&&(r+=`${t.cssRules[e].cssText}\r
80
- `);e.appendChild(n.createTextNode(r)),n.head.appendChild(e)}}else if(r.getAttribute("href")){let e=n.createElement(r.tagName);for(let t=0;t<r.attributes.length;t+=1){let l=r.attributes[t];l&&e.setAttribute(l.nodeName,l.nodeValue||"")}g.push(new Promise(t=>{e.addEventListener("load",()=>t())})),n.head.appendChild(e)}}}Promise.all(g).then(()=>{e.contentWindow.print()})},[oo,nX,t]),n4=S.useCallback(e=>{nX.current.body.removeChild(e),oo.current.restoreState(nQ.current||{}),nQ.current?.columns?.columnVisibilityModel||oo.current.setColumnVisibilityModel(nZ.current),oo.current.setState(e=>(0,A.A)({},e,{virtualization:n0.current})),oo.current.setRows(nJ.current),nQ.current=null,nZ.current={},nJ.current=[]},[oo]),n3=S.useCallback(async e=>{var r;let l;if(nq.debug("Export data as Print"),!oo.current.rootElementRef.current)throw Error("MUI X: No grid root element available.");if(nQ.current=oo.current.exportState(),nZ.current=eV(oo),nJ.current=oo.current.getSortedRows().filter(e=>!e[rC]),t.pagination){let e={page:0,pageSize:lQ(oo)};oo.current.setState(t=>(0,A.A)({},t,{pagination:(0,A.A)({},t.pagination,{paginationModel:is(t.pagination,"DataGridPro",e)})}))}n0.current=oo.current.state.virtualization,oo.current.setState(e=>(0,A.A)({},e,{virtualization:(0,A.A)({},e.virtualization,{enabled:!1,enabledForColumns:!1})})),await n1(e?.fields,e?.allColumns,e?.includeCheckboxes),n2(e?.getRowsToExport??o7),await new Promise(e=>{requestAnimationFrame(()=>{e()})});let n=(r=e?.fileName,(l=document.createElement("iframe")).style.position="absolute",l.style.width="0px",l.style.height="0px",l.title=r||document.title,l);n.onload=()=>{n5(n,e),n.contentWindow.matchMedia("print").addEventListener("change",e=>{!1===e.matches&&n4(n)})},nX.current.body.appendChild(n)},[t,nq,oo,n5,n4,n1,n2]),nb(oo,{exportDataAsPrint:n3},"public"),o2(oo,"exportMenu",S.useCallback((e,t)=>t.printOptions?.disableToolbarButton?e:[...e,{component:(0,eJ.jsx)(ii,{options:t.printOptions}),componentName:"printExport"}],[])),n6=("object"==typeof(n9=t.ignoreValueFormatterDuringExport)?n9?.clipboardExport:n9)||!1,n7=t.clipboardCopyCellDelimiter,n8=S.useCallback(e=>{var t,r;if(!((e.ctrlKey||e.metaKey)&&"C"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey)||(t=e.target,window.getSelection()?.toString()||t&&(t.selectionEnd||0)-(t.selectionStart||0)>0||0))return;let l="";if(oo.current.getSelectedRows().size>0)l=oo.current.getDataAsCsv({includeHeaders:!1,delimiter:n7,shouldAppendQuotes:!1,escapeFormulas:!1});else{let e=nR(oo);e&&(l=oK(oo.current.getCellParams(e.id,e.field),{csvOptions:{delimiter:n7,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:n6}))}(l=oo.current.unstable_applyPipeProcessors("clipboardCopy",l))&&(r=l,navigator.clipboard?navigator.clipboard.writeText(r).catch(()=>{oJ(r)}):oJ(r),oo.current.publishEvent("clipboardCopy",l))},[oo,n6,n7]),oz(oo,()=>oo.current.rootElementRef.current,"keydown",n8),td(oo,"clipboardCopy",t.onClipboardCopy),function(e,t){let r=oj(e,"useResizeContainer"),l=S.useRef(!1),n=S.useRef(iQ),o=J(e,eB),i=J(e,eE),a=J(e,i0),s=S.useRef(!0),{rowHeight:u,headerHeight:c,groupHeaderHeight:d,headerFilterHeight:p,headersTotalHeight:f,leftPinnedWidth:g,rightPinnedWidth:h}=i2(t,e,i,o),m=S.useRef(void 0),b=S.useCallback(()=>e5(e.current.state),[e]),w=S.useCallback(t=>{e.current.setState(e=>(0,A.A)({},e,{dimensions:t})),e.current.rootElementRef.current&&i1(e.current.rootElementRef.current,e5(e.current.state))},[e]),C=S.useCallback(()=>{let t=e.current.mainElementRef.current;if(!t)return;let r=(0,iX.A)(t).getComputedStyle(t),l={width:parseFloat(r.width)||0,height:parseFloat(r.height)||0};m.current&&i4(m.current,l)||(e.current.publishEvent("resize",l),m.current=l)},[e]),v=S.useCallback(()=>{let r=e5(e.current.state);if(!r.isReady)return 0;let l=ni(e);if(t.getRowHeight){let t=nh(e);return Math.min(t.lastRowIndex-t.firstRowIndex-1,l.rows.length)}return Math.min(Math.floor(r.viewportInnerSize.height/u),l.rows.length)},[e,t.getRowHeight,u]),x=S.useCallback(()=>{let r,l;if(s.current)return;let o=function(e,t){if(void 0!==t)return t;if(null===e)return 0;let r=i5.get(e);if(void 0!==r)return r;let l=(0,ia.A)(e).createElement("div");l.style.width="99px",l.style.height="99px",l.style.position="absolute",l.style.overflow="scroll",l.className="scrollDiv",e.appendChild(l);let n=l.offsetWidth-l.clientWidth;return e.removeChild(l),i5.set(e,n),n}(e.current.mainElementRef.current,t.scrollbarSize),i=e.current.state.rowsMeta,m=f+i.pinnedTopRowsTotalHeight,b=i.pinnedBottomRowsTotalHeight,C={width:a-g-h,height:nO(i.currentPageTotalHeight,1)},v=!1,x=!1;if(t.autoHeight)x=!1,v=Math.round(a)>Math.round(n.current.width),l={width:Math.max(0,(r={width:n.current.width,height:m+b+C.height}).width-(x?o:0)),height:Math.max(0,r.height-(v?o:0))};else{let e=l={width:Math.max(0,(r={width:n.current.width,height:n.current.height}).width-g-h),height:Math.max(0,r.height-m-b)},t=C.width>e.width,i=C.height>e.height;(t||i)&&(x=i,(v=C.width+(x?o:0)>e.width)&&(x=C.height+o>e.height)),x&&(l.width-=o),v&&(l.height-=o)}let y=Math.max(r.width,a+(x?o:0)),A={width:a,height:m+C.height+b},S={isReady:!0,root:n.current,viewportOuterSize:r,viewportInnerSize:l,contentSize:C,minimumSize:A,hasScrollX:v,hasScrollY:x,scrollbarSize:o,headerHeight:c,groupHeaderHeight:d,headerFilterHeight:p,rowWidth:y,rowHeight:u,columnsTotalWidth:a,leftPinnedWidth:g,rightPinnedWidth:h,headersTotalHeight:f,topContainerHeight:m,bottomContainerHeight:b},R=e.current.state.dimensions;tq(R,S)||(w(S),i4(S.viewportInnerSize,R.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",S.viewportInnerSize),e.current.updateRenderContext?.())},[e,w,t.scrollbarSize,t.autoHeight,u,c,d,p,a,f,g,h]),y=(0,tn.A)(x),R=S.useMemo(()=>t.resizeThrottleMs>0?function(e,t=166){let r,l,n=()=>{r=void 0,e(...l)};function o(...e){l=e,void 0===r&&(r=setTimeout(n,t))}return o.clear=()=>{clearTimeout(r),r=void 0},o}(()=>{y(),e.current.publishEvent("debouncedResize",n.current)},t.resizeThrottleMs):void 0,[e,t.resizeThrottleMs,y]);S.useEffect(()=>R?.clear,[R]),(0,tg.A)(x,[x]),nb(e,{resize:C,getRootDimensions:b},"public"),nb(e,{updateDimensions:x,getViewportPageSize:v},"private");let I=S.useCallback(t=>{i1(t,e5(e.current.state))},[e]),M=S.useCallback(e=>{if(n.current=e,0!==e.height||l.current||t.autoHeight||nD||(r.error("The parent DOM element of the Data Grid has an empty height.\nPlease make sure that this element has an intrinsic height.\nThe grid displays with a height of 0px.\n\nMore details: https://mui.com/r/x-data-grid-no-dimensions."),l.current=!0),0!==e.width||l.current||nD||(r.error("The parent DOM element of the Data Grid has an empty width.\nPlease make sure that this element has an intrinsic width.\nThe grid displays with a width of 0px.\n\nMore details: https://mui.com/r/x-data-grid-no-dimensions."),l.current=!0),s.current||!R){s.current=!1,x();return}R()},[x,t.autoHeight,R,r]);td(e,"rootMount",I),td(e,"resize",M),td(e,"debouncedResize",t.onResize)}(oo,t),td(oo,"columnHeaderClick",t.onColumnHeaderClick),td(oo,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),td(oo,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),td(oo,"columnHeaderOver",t.onColumnHeaderOver),td(oo,"columnHeaderOut",t.onColumnHeaderOut),td(oo,"columnHeaderEnter",t.onColumnHeaderEnter),td(oo,"columnHeaderLeave",t.onColumnHeaderLeave),td(oo,"cellClick",t.onCellClick),td(oo,"cellDoubleClick",t.onCellDoubleClick),td(oo,"cellKeyDown",t.onCellKeyDown),td(oo,"preferencePanelClose",t.onPreferencePanelClose),td(oo,"preferencePanelOpen",t.onPreferencePanelOpen),td(oo,"menuOpen",t.onMenuOpen),td(oo,"menuClose",t.onMenuClose),td(oo,"rowDoubleClick",t.onRowDoubleClick),td(oo,"rowClick",t.onRowClick),td(oo,"stateChange",t.onStateChange),oe=S.useCallback((e={})=>oo.current.unstable_applyPipeProcessors("exportState",{},e),[oo]),ot=S.useCallback(e=>{oo.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:e}).callbacks.forEach(e=>{e()}),oo.current.forceUpdate()},[oo]),nb(oo,{exportState:oe,restoreState:ot},"public"),or=e=>{oo.current.setState(r=>(0,A.A)({},r,{virtualization:(0,A.A)({},r.virtualization,{enabled:e,enabledForColumns:e,enabledForRows:e&&!t.autoHeight})}))},nb(oo,{unstable_setVirtualization:or,unstable_setColumnVirtualization:e=>{oo.current.setState(t=>(0,A.A)({},t,{virtualization:(0,A.A)({},t.virtualization,{enabledForColumns:e})}))}},"public"),S.useEffect(()=>{or(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight]),ol=()=>{oo.current.setState(e=>e.listViewColumn?(0,A.A)({},e,{listViewColumn:(0,A.A)({},e.listViewColumn,{computedWidth:ax(oo)})}):e)},on=S.useRef(null),tu(oo,"viewportInnerSizeChange",e=>{on.current!==e.width&&(on.current=e.width,ol())}),tu(oo,"columnVisibilityModelChange",ol),(0,tg.A)(()=>{let e=t.unstable_listColumn;e&&oo.current.setState(t=>(0,A.A)({},t,{listViewColumn:(0,A.A)({},e,{computedWidth:ax(oo)})}))},[oo,t.unstable_listColumn]),S.useEffect(()=>{t.unstable_listView&&!t.unstable_listColumn&&function(e,t="warning"){}(0)},[t.unstable_listView,t.unstable_listColumn]),oo})(s.apiRef,s);return(0,eJ.jsx)(oA,{privateApiRef:u,configuration:ck,props:s,children:(0,eJ.jsx)(ow,(0,A.A)({className:s.className,style:s.style,sx:s.sx},s.forwardedProps,s.slotProps?.root,{ref:t}))})}),cE=S.memo(cP);cP.propTypes={apiRef:I().shape({current:I().object.isRequired}),"aria-label":I().string,"aria-labelledby":I().string,autoHeight:I().bool,autoPageSize:I().bool,autosizeOnMount:I().bool,autosizeOptions:I().shape({columns:I().arrayOf(I().string),disableColumnVirtualization:I().bool,expand:I().bool,includeHeaders:I().bool,includeOutliers:I().bool,outliersFactor:I().number}),cellModesModel:I().object,checkboxSelection:I().bool,classes:I().object,clipboardCopyCellDelimiter:I().string,columnBufferPx:I().number,columnGroupHeaderHeight:I().number,columnGroupingModel:I().arrayOf(I().object),columnHeaderHeight:I().number,columns:I().arrayOf(I().object).isRequired,columnVisibilityModel:I().object,density:I().oneOf(["comfortable","compact","standard"]),disableAutosize:I().bool,disableColumnFilter:I().bool,disableColumnMenu:I().bool,disableColumnResize:I().bool,disableColumnSelector:I().bool,disableColumnSorting:I().bool,disableDensitySelector:I().bool,disableEval:I().bool,disableMultipleRowSelection:I().bool,disableRowSelectionOnClick:I().bool,disableVirtualization:I().bool,editMode:I().oneOf(["cell","row"]),estimatedRowCount:I().number,experimentalFeatures:I().shape({warnIfFocusStateIsNotSynced:I().bool}),filterDebounceMs:I().number,filterMode:I().oneOf(["client","server"]),filterModel:I().shape({items:I().arrayOf(I().shape({field:I().string.isRequired,id:I().oneOfType([I().number,I().string]),operator:I().string.isRequired,value:I().any})).isRequired,logicOperator:I().oneOf(["and","or"]),quickFilterExcludeHiddenColumns:I().bool,quickFilterLogicOperator:I().oneOf(["and","or"]),quickFilterValues:I().array}),forwardedProps:I().object,getCellClassName:I().func,getDetailPanelContent:I().func,getEstimatedRowHeight:I().func,getRowClassName:I().func,getRowHeight:I().func,getRowId:I().func,getRowSpacing:I().func,hideFooter:I().bool,hideFooterPagination:I().bool,hideFooterSelectedRowCount:I().bool,ignoreDiacritics:I().bool,ignoreValueFormatterDuringExport:I().oneOfType([I().shape({clipboardExport:I().bool,csvExport:I().bool}),I().bool]),indeterminateCheckboxAction:I().oneOf(["deselect","select"]),initialState:I().object,isCellEditable:I().func,isRowSelectable:I().func,keepNonExistentRowsSelected:I().bool,loading:I().bool,localeText:I().object,logger:I().shape({debug:I().func.isRequired,error:I().func.isRequired,info:I().func.isRequired,warn:I().func.isRequired}),logLevel:I().oneOf(["debug","error","info","warn",!1]),nonce:I().string,onCellClick:I().func,onCellDoubleClick:I().func,onCellEditStart:I().func,onCellEditStop:I().func,onCellKeyDown:I().func,onCellModesModelChange:I().func,onClipboardCopy:I().func,onColumnHeaderClick:I().func,onColumnHeaderContextMenu:I().func,onColumnHeaderDoubleClick:I().func,onColumnHeaderEnter:I().func,onColumnHeaderLeave:I().func,onColumnHeaderOut:I().func,onColumnHeaderOver:I().func,onColumnOrderChange:I().func,onColumnResize:I().func,onColumnVisibilityModelChange:I().func,onColumnWidthChange:I().func,onDensityChange:I().func,onFilterModelChange:I().func,onMenuClose:I().func,onMenuOpen:I().func,onPaginationMetaChange:I().func,onPaginationModelChange:I().func,onPreferencePanelClose:I().func,onPreferencePanelOpen:I().func,onProcessRowUpdateError:I().func,onResize:I().func,onRowClick:I().func,onRowCountChange:I().func,onRowDoubleClick:I().func,onRowEditStart:I().func,onRowEditStop:I().func,onRowModesModelChange:I().func,onRowSelectionModelChange:I().func,onSortModelChange:I().func,onStateChange:I().func,pageSizeOptions:I().arrayOf(I().oneOfType([I().number,I().shape({label:I().string.isRequired,value:I().number.isRequired})]).isRequired),pagination:I().oneOf([!0]),paginationMeta:I().shape({hasNextPage:I().bool}),paginationMode:I().oneOf(["client","server"]),paginationModel:I().shape({page:I().number.isRequired,pageSize:I().number.isRequired}),processRowUpdate:I().func,resetPageOnSortFilter:I().bool,resizeThrottleMs:I().number,rowBufferPx:I().number,rowCount:I().number,rowHeight:I().number,rowModesModel:I().object,rowPositionsDebounceMs:I().number,rows:I().arrayOf(I().object),rowSelection:I().bool,rowSelectionModel:I().oneOfType([I().arrayOf(I().oneOfType([I().number,I().string]).isRequired),I().number,I().string]),rowSpacingType:I().oneOf(["border","margin"]),scrollbarSize:I().number,showCellVerticalBorder:I().bool,showColumnVerticalBorder:I().bool,slotProps:I().object,slots:I().object,sortingMode:I().oneOf(["client","server"]),sortingOrder:I().arrayOf(I().oneOf(["asc","desc"])),sortModel:I().arrayOf(I().shape({field:I().string.isRequired,sort:I().oneOf(["asc","desc"])})),sx:I().oneOfType([I().arrayOf(I().oneOfType([I().func,I().object,I().bool])),I().func,I().object]),unstable_rowSpanning:I().bool,virtualizeColumnsWithAutoRowHeight:I().bool}},93958:function(e,t,r){"use strict";var l=r(30147).default;t.default=void 0,t.default=parseInt(l(r(70451)).version,10)},33498:function(e,t,r){"use strict";r.d(t,{v:()=>o});var l=r(77308),n=r(47095);let o=(0,l.A)(n.A)(({theme:e})=>({borderRadius:e.shape.borderRadius,padding:"4px"}))},63587:function(e,t,r){"use strict";r.d(t,{w:()=>c});var l=r(62540),n=r(25742),o=r(74628),i=r(79303),a=r(57217),s=r(70451),u=r(33498);function c({actions:e,variableState:t,disabledWithEmptySelection:r}){let{selectionMap:c}=(0,i.useSelection)(),{actionStatuses:d,setActionStatus:p}=(0,i.useItemActions)(),[f,g]=(0,s.useState)({open:!1}),h=(0,s.useCallback)(async(e,r)=>{r?await (0,a.executeAction)({action:e,selectionMap:new Map([[r.id,r.data]]),variableState:t,setActionStatus:p}):await (0,a.executeAction)({action:e,selectionMap:c,variableState:t,setActionStatus:p})},[c,t,p]),m=(0,s.useCallback)((e,t)=>{e.confirmMessage?g({open:!0,action:e,item:t}):h(e,t)},[h]),b=(0,s.useCallback)(()=>g(e=>({...e,open:!1})),[]),w=(0,s.useCallback)(async()=>{g(e=>({...e,open:!1})),f.action&&await h(f.action,f.item)},[f.action,h,f.item]),C=r&&0===c.size,v=(0,s.useMemo)(()=>{if(!e?.length)return[];let t=[];for(let r of e){if(!r.enabled)continue;let e=d.get(r.name)?.loading??!1,s=r.icon?a.ACTION_ICONS.find(e=>e.value===r.icon):void 0;t.push((0,l.jsx)(i.InfoTooltip,{description:r.name,children:(0,l.jsx)(u.v,{size:"small",disabled:e||C,onClick:e=>{e.stopPropagation(),m(r)},"aria-label":r.name,children:e?(0,l.jsx)(n.A,{size:14}):s?s.icon:(0,l.jsx)(o.A,{component:"span",sx:{fontSize:"0.75rem",px:.5},children:r.name})})},r.name))}return t},[e,d,m,C]),x=(0,s.useCallback)(t=>{if(!e?.length)return[];let r=[];for(let s of e){if(!s.enabled)continue;let e=d.get(s.name)?.itemStatuses?.get(t.id)?.loading??!1,c=s.icon?a.ACTION_ICONS.find(e=>e.value===s.icon):void 0;r.push((0,l.jsx)(i.InfoTooltip,{description:s.name,children:(0,l.jsx)(u.v,{size:"small",disabled:e||C,onClick:e=>{e.stopPropagation(),m(s,t)},"aria-label":s.name,children:e?(0,l.jsx)(n.A,{size:14}):c?c.icon:(0,l.jsx)(o.A,{component:"span",sx:{fontSize:"0.75rem",px:.5},children:s.name})})},`${s.name}-${t.id}`))}return r},[e,d,C,m]);return{actionButtons:v,confirmDialog:(0,s.useMemo)(()=>(0,l.jsxs)(i.Dialog,{open:f.open&&!!f.action,onClose:b,children:[(0,l.jsx)(i.Dialog.Header,{onClose:b,children:f.action?.name?`Confirm: ${f.action.name}`:"Confirm Action"}),(0,l.jsx)(i.Dialog.Content,{children:f.action?.confirmMessage??"Are you sure you want to perform this action?"}),(0,l.jsxs)(i.Dialog.Actions,{children:[(0,l.jsx)(i.Dialog.PrimaryButton,{onClick:w,children:"Confirm"}),(0,l.jsx)(i.Dialog.SecondaryButton,{onClick:b,children:"Cancel"})]})]}),[f.open,f.action,b,w]),getItemActionButtons:x}}},92959:function(e,t,r){"use strict";r.d(t,{A:()=>O});var l,n,o,i,a,s,u,c,d,p,f,g,h,m,b,w,C,v,x=function(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r},y=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)};let A=function(e){var t=0;e+="x";var r=Math.floor(65745979961613.07);for(let l=0;l<e.length;l++)t>r&&(t=Math.floor(t/137)),t=131*t+e.charCodeAt(l);return t},S="0123456789abcdef".split(""),R=[-0x80000000,8388608,32768,128],I=[24,16,8,0],M=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],k=[];class P{constructor(e=!1,t=!1){l.set(this,void 0),n.set(this,void 0),o.set(this,void 0),i.set(this,void 0),a.set(this,void 0),s.set(this,void 0),u.set(this,void 0),c.set(this,void 0),d.set(this,void 0),p.set(this,void 0),f.set(this,void 0),g.set(this,void 0),h.set(this,void 0),m.set(this,void 0),b.set(this,void 0),w.set(this,void 0),C.set(this,0),v.set(this,void 0),this.init(e,t)}init(e,t){t?(k[0]=k[16]=k[1]=k[2]=k[3]=k[4]=k[5]=k[6]=k[7]=k[8]=k[9]=k[10]=k[11]=k[12]=k[13]=k[14]=k[15]=0,x(this,n,k)):x(this,n,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),e?(x(this,s,0xc1059ed8),x(this,u,0x367cd507),x(this,c,0x3070dd17),x(this,d,0xf70e5939),x(this,p,0xffc00b31),x(this,f,0x68581511),x(this,g,0x64f98fa7),x(this,h,0xbefa4fa4)):(x(this,s,0x6a09e667),x(this,u,0xbb67ae85),x(this,c,0x3c6ef372),x(this,d,0xa54ff53a),x(this,p,0x510e527f),x(this,f,0x9b05688c),x(this,g,0x1f83d9ab),x(this,h,0x5be0cd19)),x(this,l,x(this,v,x(this,o,x(this,b,0)))),x(this,i,x(this,m,!1)),x(this,a,!0),x(this,w,e)}update(e){let t;if(y(this,i))return this;t=e instanceof ArrayBuffer?new Uint8Array(e):e;let r=0,a=t.length,s=y(this,n);for(;r<a;){let e;if(y(this,m)&&(x(this,m,!1),s[0]=y(this,l),s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),"string"!=typeof t)for(e=y(this,v);r<a&&e<64;++r)s[e>>2]|=t[r]<<I[3&e++];else for(e=y(this,v);r<a&&e<64;++r){let l=t.charCodeAt(r);l<128?s[e>>2]|=l<<I[3&e++]:(l<2048?s[e>>2]|=(192|l>>6)<<I[3&e++]:(l<55296||l>=57344?s[e>>2]|=(224|l>>12)<<I[3&e++]:(l=65536+((1023&l)<<10|1023&t.charCodeAt(++r)),s[e>>2]|=(240|l>>18)<<I[3&e++],s[e>>2]|=(128|l>>12&63)<<I[3&e++]),s[e>>2]|=(128|l>>6&63)<<I[3&e++]),s[e>>2]|=(128|63&l)<<I[3&e++])}x(this,C,e),x(this,o,y(this,o)+(e-y(this,v))),e>=64?(x(this,l,s[16]),x(this,v,e-64),this.hash(),x(this,m,!0)):x(this,v,e)}return y(this,o)>0xffffffff&&(x(this,b,y(this,b)+(y(this,o)/0x100000000|0)),x(this,o,y(this,o)%0x100000000)),this}finalize(){if(y(this,i))return;x(this,i,!0);let e=y(this,n),t=y(this,C);e[16]=y(this,l),e[t>>2]|=R[3&t],x(this,l,e[16]),t>=56&&(y(this,m)||this.hash(),e[0]=y(this,l),e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=y(this,b)<<3|y(this,o)>>>29,e[15]=y(this,o)<<3,this.hash()}hash(){let e,t,r,l,o,i,m,b,C,v=y(this,s),A=y(this,u),S=y(this,c),R=y(this,d),I=y(this,p),k=y(this,f),P=y(this,g),E=y(this,h),F=y(this,n);for(let r=16;r<64;++r)e=((l=F[r-15])>>>7|l<<25)^(l>>>18|l<<14)^l>>>3,t=((l=F[r-2])>>>17|l<<15)^(l>>>19|l<<13)^l>>>10,F[r]=F[r-16]+e+F[r-7]+t|0;C=A&S;for(let n=0;n<64;n+=4)y(this,a)?(y(this,w)?(i=300032,E=(l=F[0]-0x543c9a5b)-0x8f1a6c7|0,R=l+0x170e9b5|0):(i=0x2a01a605,E=(l=F[0]-0xc881298)-0x5ab00ac6|0,R=l+0x8909ae5|0),x(this,a,!1)):(e=(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10),t=(I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7),r=(i=v&A)^v&S^C,l=E+t+(I&k^~I&P)+M[n]+F[n],o=e+r,E=R+l|0,R=l+o|0),e=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),t=(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7),r=(m=R&v)^R&A^i,l=P+t+(E&I^~E&k)+M[n+1]+F[n+1],o=e+r,P=S+l|0,e=((S=l+o|0)>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10),t=(P>>>6|P<<26)^(P>>>11|P<<21)^(P>>>25|P<<7),r=(b=S&R)^S&v^m,l=k+t+(P&E^~P&I)+M[n+2]+F[n+2],o=e+r,k=A+l|0,e=((A=l+o|0)>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10),t=(k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7),r=(C=A&S)^A&R^b,l=I+t+(k&P^~k&E)+M[n+3]+F[n+3],o=e+r,I=v+l|0,v=l+o|0;x(this,s,y(this,s)+v|0),x(this,u,y(this,u)+A|0),x(this,c,y(this,c)+S|0),x(this,d,y(this,d)+R|0),x(this,p,y(this,p)+I|0),x(this,f,y(this,f)+k|0),x(this,g,y(this,g)+P|0),x(this,h,y(this,h)+E|0)}hex(){this.finalize();let e=y(this,s),t=y(this,u),r=y(this,c),l=y(this,d),n=y(this,p),o=y(this,f),i=y(this,g),a=y(this,h),m=S[e>>28&15]+S[e>>24&15]+S[e>>20&15]+S[e>>16&15]+S[e>>12&15]+S[e>>8&15]+S[e>>4&15]+S[15&e]+S[t>>28&15]+S[t>>24&15]+S[t>>20&15]+S[t>>16&15]+S[t>>12&15]+S[t>>8&15]+S[t>>4&15]+S[15&t]+S[r>>28&15]+S[r>>24&15]+S[r>>20&15]+S[r>>16&15]+S[r>>12&15]+S[r>>8&15]+S[r>>4&15]+S[15&r]+S[l>>28&15]+S[l>>24&15]+S[l>>20&15]+S[l>>16&15]+S[l>>12&15]+S[l>>8&15]+S[l>>4&15]+S[15&l]+S[n>>28&15]+S[n>>24&15]+S[n>>20&15]+S[n>>16&15]+S[n>>12&15]+S[n>>8&15]+S[n>>4&15]+S[15&n]+S[o>>28&15]+S[o>>24&15]+S[o>>20&15]+S[o>>16&15]+S[o>>12&15]+S[o>>8&15]+S[o>>4&15]+S[15&o]+S[i>>28&15]+S[i>>24&15]+S[i>>20&15]+S[i>>16&15]+S[i>>12&15]+S[i>>8&15]+S[i>>4&15]+S[15&i];return y(this,w)||(m+=S[a>>28&15]+S[a>>24&15]+S[a>>20&15]+S[a>>16&15]+S[a>>12&15]+S[a>>8&15]+S[a>>4&15]+S[15&a]),m}toString(){return this.hex()}digest(){this.finalize();let e=y(this,s),t=y(this,u),r=y(this,c),l=y(this,d),n=y(this,p),o=y(this,f),i=y(this,g),a=y(this,h),m=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24&255,r>>16&255,r>>8&255,255&r,l>>24&255,l>>16&255,l>>8&255,255&l,n>>24&255,n>>16&255,n>>8&255,255&n,o>>24&255,o>>16&255,o>>8&255,255&o,i>>24&255,i>>16&255,i>>8&255,255&i];return y(this,w)||m.push(a>>24&255,a>>16&255,a>>8&255,255&a),m}array(){return this.digest()}arrayBuffer(){this.finalize();let e=new ArrayBuffer(y(this,w)?28:32),t=new DataView(e);return t.setUint32(0,y(this,s)),t.setUint32(4,y(this,u)),t.setUint32(8,y(this,c)),t.setUint32(12,y(this,d)),t.setUint32(16,y(this,p)),t.setUint32(20,y(this,f)),t.setUint32(24,y(this,g)),y(this,w)||t.setUint32(28,y(this,h)),e}}function E(e){let t=new P;return t.update(e),parseInt(t.hex().substring(0,8),16)}l=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,g=new WeakMap,h=new WeakMap,m=new WeakMap,b=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap;let F=function(e){var t="#";return e.forEach(function(e){e<16&&(t+=0),t+=e.toString(16)}),t},H=function(e,t,r){var l=r<.5?r*(1+t):r+t-r*t,n=2*r-l;return[(e/=360)+1/3,e,e-1/3].map(function(e){return e<0&&e++,e>1&&e--,Math.round(255*(e=e<1/6?n+(l-n)*6*e:e<.5?l:e<2/3?n+(l-n)*6*(2/3-e):n))})};class O{constructor(e={}){const[t,r]=[e.lightness,e.saturation].map(function(e){return Array.isArray(e=void 0!==e?e:[.35,.5,.65])?e.concat():[e]});this.L=t,this.S=r,"number"==typeof e.hue&&(e.hue={min:e.hue,max:e.hue}),"object"!=typeof e.hue||Array.isArray(e.hue)||(e.hue=[e.hue]),void 0===e.hue&&(e.hue=[]),this.hueRanges=e.hue.map(function(e){return{min:void 0===e.min?0:e.min,max:void 0===e.max?360:e.max}}),this.hash=E,"function"==typeof e.hash&&(this.hash=e.hash),"bkdr"===e.hash&&(this.hash=A)}hsl(e){var t,r,l=this.hash(e);if(this.hueRanges.length){let e=this.hueRanges[l%this.hueRanges.length];t=l/this.hueRanges.length%727*(e.max-e.min)/727+e.min}else t=l%359;return l=Math.ceil(l/360),r=this.S[l%this.S.length],l=Math.ceil(l/this.S.length),[t,r,this.L[l%this.L.length]]}rgb(e){var t=this.hsl(e);return H.apply(this,t)}hex(e){return F(this.rgb(e))}}},30182:function(e,t,r){"use strict";var l;t.default=void 0,t.default=(0,((l=r(1448))&&l.__esModule?l:{default:l}).default)("M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z","Information")},32473:function(e,t,r){"use strict";var l=r(70451),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=l.useState,i=l.useEffect,a=l.useLayoutEffect,s=l.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(),l=o({inst:{value:r,getSnapshot:t}}),n=l[0].inst,c=l[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!==l.useSyncExternalStore?l.useSyncExternalStore:c},43676:function(e,t,r){"use strict";e.exports=r(32473)},30147:function(e,t,r){var l=r(10564).default;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=l(e)&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&({}).hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o},e.exports.__esModule=!0,e.exports.default=e.exports},10564:function(e){function t(r){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}}]);
80
+ `);e.appendChild(n.createTextNode(r)),n.head.appendChild(e)}}else if(r.getAttribute("href")){let e=n.createElement(r.tagName);for(let t=0;t<r.attributes.length;t+=1){let l=r.attributes[t];l&&e.setAttribute(l.nodeName,l.nodeValue||"")}g.push(new Promise(t=>{e.addEventListener("load",()=>t())})),n.head.appendChild(e)}}}Promise.all(g).then(()=>{e.contentWindow.print()})},[oo,nX,t]),n4=S.useCallback(e=>{nX.current.body.removeChild(e),oo.current.restoreState(nQ.current||{}),nQ.current?.columns?.columnVisibilityModel||oo.current.setColumnVisibilityModel(nZ.current),oo.current.setState(e=>(0,A.A)({},e,{virtualization:n0.current})),oo.current.setRows(nJ.current),nQ.current=null,nZ.current={},nJ.current=[]},[oo]),n3=S.useCallback(async e=>{var r;let l;if(nq.debug("Export data as Print"),!oo.current.rootElementRef.current)throw Error("MUI X: No grid root element available.");if(nQ.current=oo.current.exportState(),nZ.current=eV(oo),nJ.current=oo.current.getSortedRows().filter(e=>!e[rC]),t.pagination){let e={page:0,pageSize:lQ(oo)};oo.current.setState(t=>(0,A.A)({},t,{pagination:(0,A.A)({},t.pagination,{paginationModel:is(t.pagination,"DataGridPro",e)})}))}n0.current=oo.current.state.virtualization,oo.current.setState(e=>(0,A.A)({},e,{virtualization:(0,A.A)({},e.virtualization,{enabled:!1,enabledForColumns:!1})})),await n1(e?.fields,e?.allColumns,e?.includeCheckboxes),n2(e?.getRowsToExport??o7),await new Promise(e=>{requestAnimationFrame(()=>{e()})});let n=(r=e?.fileName,(l=document.createElement("iframe")).style.position="absolute",l.style.width="0px",l.style.height="0px",l.title=r||document.title,l);n.onload=()=>{n5(n,e),n.contentWindow.matchMedia("print").addEventListener("change",e=>{!1===e.matches&&n4(n)})},nX.current.body.appendChild(n)},[t,nq,oo,n5,n4,n1,n2]),nb(oo,{exportDataAsPrint:n3},"public"),o2(oo,"exportMenu",S.useCallback((e,t)=>t.printOptions?.disableToolbarButton?e:[...e,{component:(0,eJ.jsx)(ii,{options:t.printOptions}),componentName:"printExport"}],[])),n6=("object"==typeof(n9=t.ignoreValueFormatterDuringExport)?n9?.clipboardExport:n9)||!1,n7=t.clipboardCopyCellDelimiter,n8=S.useCallback(e=>{var t,r;if(!((e.ctrlKey||e.metaKey)&&"C"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey)||(t=e.target,window.getSelection()?.toString()||t&&(t.selectionEnd||0)-(t.selectionStart||0)>0||0))return;let l="";if(oo.current.getSelectedRows().size>0)l=oo.current.getDataAsCsv({includeHeaders:!1,delimiter:n7,shouldAppendQuotes:!1,escapeFormulas:!1});else{let e=nR(oo);e&&(l=oK(oo.current.getCellParams(e.id,e.field),{csvOptions:{delimiter:n7,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:n6}))}(l=oo.current.unstable_applyPipeProcessors("clipboardCopy",l))&&(r=l,navigator.clipboard?navigator.clipboard.writeText(r).catch(()=>{oJ(r)}):oJ(r),oo.current.publishEvent("clipboardCopy",l))},[oo,n6,n7]),oz(oo,()=>oo.current.rootElementRef.current,"keydown",n8),td(oo,"clipboardCopy",t.onClipboardCopy),function(e,t){let r=oj(e,"useResizeContainer"),l=S.useRef(!1),n=S.useRef(iQ),o=J(e,eB),i=J(e,eE),a=J(e,i0),s=S.useRef(!0),{rowHeight:u,headerHeight:c,groupHeaderHeight:d,headerFilterHeight:p,headersTotalHeight:f,leftPinnedWidth:g,rightPinnedWidth:h}=i2(t,e,i,o),m=S.useRef(void 0),b=S.useCallback(()=>e5(e.current.state),[e]),w=S.useCallback(t=>{e.current.setState(e=>(0,A.A)({},e,{dimensions:t})),e.current.rootElementRef.current&&i1(e.current.rootElementRef.current,e5(e.current.state))},[e]),C=S.useCallback(()=>{let t=e.current.mainElementRef.current;if(!t)return;let r=(0,iX.A)(t).getComputedStyle(t),l={width:parseFloat(r.width)||0,height:parseFloat(r.height)||0};m.current&&i4(m.current,l)||(e.current.publishEvent("resize",l),m.current=l)},[e]),v=S.useCallback(()=>{let r=e5(e.current.state);if(!r.isReady)return 0;let l=ni(e);if(t.getRowHeight){let t=nh(e);return Math.min(t.lastRowIndex-t.firstRowIndex-1,l.rows.length)}return Math.min(Math.floor(r.viewportInnerSize.height/u),l.rows.length)},[e,t.getRowHeight,u]),x=S.useCallback(()=>{let r,l;if(s.current)return;let o=function(e,t){if(void 0!==t)return t;if(null===e)return 0;let r=i5.get(e);if(void 0!==r)return r;let l=(0,ia.A)(e).createElement("div");l.style.width="99px",l.style.height="99px",l.style.position="absolute",l.style.overflow="scroll",l.className="scrollDiv",e.appendChild(l);let n=l.offsetWidth-l.clientWidth;return e.removeChild(l),i5.set(e,n),n}(e.current.mainElementRef.current,t.scrollbarSize),i=e.current.state.rowsMeta,m=f+i.pinnedTopRowsTotalHeight,b=i.pinnedBottomRowsTotalHeight,C={width:a-g-h,height:nO(i.currentPageTotalHeight,1)},v=!1,x=!1;if(t.autoHeight)x=!1,v=Math.round(a)>Math.round(n.current.width),l={width:Math.max(0,(r={width:n.current.width,height:m+b+C.height}).width-(x?o:0)),height:Math.max(0,r.height-(v?o:0))};else{let e=l={width:Math.max(0,(r={width:n.current.width,height:n.current.height}).width-g-h),height:Math.max(0,r.height-m-b)},t=C.width>e.width,i=C.height>e.height;(t||i)&&(x=i,(v=C.width+(x?o:0)>e.width)&&(x=C.height+o>e.height)),x&&(l.width-=o),v&&(l.height-=o)}let y=Math.max(r.width,a+(x?o:0)),A={width:a,height:m+C.height+b},S={isReady:!0,root:n.current,viewportOuterSize:r,viewportInnerSize:l,contentSize:C,minimumSize:A,hasScrollX:v,hasScrollY:x,scrollbarSize:o,headerHeight:c,groupHeaderHeight:d,headerFilterHeight:p,rowWidth:y,rowHeight:u,columnsTotalWidth:a,leftPinnedWidth:g,rightPinnedWidth:h,headersTotalHeight:f,topContainerHeight:m,bottomContainerHeight:b},R=e.current.state.dimensions;tq(R,S)||(w(S),i4(S.viewportInnerSize,R.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",S.viewportInnerSize),e.current.updateRenderContext?.())},[e,w,t.scrollbarSize,t.autoHeight,u,c,d,p,a,f,g,h]),y=(0,tn.A)(x),R=S.useMemo(()=>t.resizeThrottleMs>0?function(e,t=166){let r,l,n=()=>{r=void 0,e(...l)};function o(...e){l=e,void 0===r&&(r=setTimeout(n,t))}return o.clear=()=>{clearTimeout(r),r=void 0},o}(()=>{y(),e.current.publishEvent("debouncedResize",n.current)},t.resizeThrottleMs):void 0,[e,t.resizeThrottleMs,y]);S.useEffect(()=>R?.clear,[R]),(0,tg.A)(x,[x]),nb(e,{resize:C,getRootDimensions:b},"public"),nb(e,{updateDimensions:x,getViewportPageSize:v},"private");let I=S.useCallback(t=>{i1(t,e5(e.current.state))},[e]),M=S.useCallback(e=>{if(n.current=e,0!==e.height||l.current||t.autoHeight||nD||(r.error("The parent DOM element of the Data Grid has an empty height.\nPlease make sure that this element has an intrinsic height.\nThe grid displays with a height of 0px.\n\nMore details: https://mui.com/r/x-data-grid-no-dimensions."),l.current=!0),0!==e.width||l.current||nD||(r.error("The parent DOM element of the Data Grid has an empty width.\nPlease make sure that this element has an intrinsic width.\nThe grid displays with a width of 0px.\n\nMore details: https://mui.com/r/x-data-grid-no-dimensions."),l.current=!0),s.current||!R){s.current=!1,x();return}R()},[x,t.autoHeight,R,r]);td(e,"rootMount",I),td(e,"resize",M),td(e,"debouncedResize",t.onResize)}(oo,t),td(oo,"columnHeaderClick",t.onColumnHeaderClick),td(oo,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),td(oo,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),td(oo,"columnHeaderOver",t.onColumnHeaderOver),td(oo,"columnHeaderOut",t.onColumnHeaderOut),td(oo,"columnHeaderEnter",t.onColumnHeaderEnter),td(oo,"columnHeaderLeave",t.onColumnHeaderLeave),td(oo,"cellClick",t.onCellClick),td(oo,"cellDoubleClick",t.onCellDoubleClick),td(oo,"cellKeyDown",t.onCellKeyDown),td(oo,"preferencePanelClose",t.onPreferencePanelClose),td(oo,"preferencePanelOpen",t.onPreferencePanelOpen),td(oo,"menuOpen",t.onMenuOpen),td(oo,"menuClose",t.onMenuClose),td(oo,"rowDoubleClick",t.onRowDoubleClick),td(oo,"rowClick",t.onRowClick),td(oo,"stateChange",t.onStateChange),oe=S.useCallback((e={})=>oo.current.unstable_applyPipeProcessors("exportState",{},e),[oo]),ot=S.useCallback(e=>{oo.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:e}).callbacks.forEach(e=>{e()}),oo.current.forceUpdate()},[oo]),nb(oo,{exportState:oe,restoreState:ot},"public"),or=e=>{oo.current.setState(r=>(0,A.A)({},r,{virtualization:(0,A.A)({},r.virtualization,{enabled:e,enabledForColumns:e,enabledForRows:e&&!t.autoHeight})}))},nb(oo,{unstable_setVirtualization:or,unstable_setColumnVirtualization:e=>{oo.current.setState(t=>(0,A.A)({},t,{virtualization:(0,A.A)({},t.virtualization,{enabledForColumns:e})}))}},"public"),S.useEffect(()=>{or(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight]),ol=()=>{oo.current.setState(e=>e.listViewColumn?(0,A.A)({},e,{listViewColumn:(0,A.A)({},e.listViewColumn,{computedWidth:ax(oo)})}):e)},on=S.useRef(null),tu(oo,"viewportInnerSizeChange",e=>{on.current!==e.width&&(on.current=e.width,ol())}),tu(oo,"columnVisibilityModelChange",ol),(0,tg.A)(()=>{let e=t.unstable_listColumn;e&&oo.current.setState(t=>(0,A.A)({},t,{listViewColumn:(0,A.A)({},e,{computedWidth:ax(oo)})}))},[oo,t.unstable_listColumn]),S.useEffect(()=>{t.unstable_listView&&!t.unstable_listColumn&&function(e,t="warning"){}(0)},[t.unstable_listView,t.unstable_listColumn]),oo})(s.apiRef,s);return(0,eJ.jsx)(oA,{privateApiRef:u,configuration:ck,props:s,children:(0,eJ.jsx)(ow,(0,A.A)({className:s.className,style:s.style,sx:s.sx},s.forwardedProps,s.slotProps?.root,{ref:t}))})}),cE=S.memo(cP);cP.propTypes={apiRef:I().shape({current:I().object.isRequired}),"aria-label":I().string,"aria-labelledby":I().string,autoHeight:I().bool,autoPageSize:I().bool,autosizeOnMount:I().bool,autosizeOptions:I().shape({columns:I().arrayOf(I().string),disableColumnVirtualization:I().bool,expand:I().bool,includeHeaders:I().bool,includeOutliers:I().bool,outliersFactor:I().number}),cellModesModel:I().object,checkboxSelection:I().bool,classes:I().object,clipboardCopyCellDelimiter:I().string,columnBufferPx:I().number,columnGroupHeaderHeight:I().number,columnGroupingModel:I().arrayOf(I().object),columnHeaderHeight:I().number,columns:I().arrayOf(I().object).isRequired,columnVisibilityModel:I().object,density:I().oneOf(["comfortable","compact","standard"]),disableAutosize:I().bool,disableColumnFilter:I().bool,disableColumnMenu:I().bool,disableColumnResize:I().bool,disableColumnSelector:I().bool,disableColumnSorting:I().bool,disableDensitySelector:I().bool,disableEval:I().bool,disableMultipleRowSelection:I().bool,disableRowSelectionOnClick:I().bool,disableVirtualization:I().bool,editMode:I().oneOf(["cell","row"]),estimatedRowCount:I().number,experimentalFeatures:I().shape({warnIfFocusStateIsNotSynced:I().bool}),filterDebounceMs:I().number,filterMode:I().oneOf(["client","server"]),filterModel:I().shape({items:I().arrayOf(I().shape({field:I().string.isRequired,id:I().oneOfType([I().number,I().string]),operator:I().string.isRequired,value:I().any})).isRequired,logicOperator:I().oneOf(["and","or"]),quickFilterExcludeHiddenColumns:I().bool,quickFilterLogicOperator:I().oneOf(["and","or"]),quickFilterValues:I().array}),forwardedProps:I().object,getCellClassName:I().func,getDetailPanelContent:I().func,getEstimatedRowHeight:I().func,getRowClassName:I().func,getRowHeight:I().func,getRowId:I().func,getRowSpacing:I().func,hideFooter:I().bool,hideFooterPagination:I().bool,hideFooterSelectedRowCount:I().bool,ignoreDiacritics:I().bool,ignoreValueFormatterDuringExport:I().oneOfType([I().shape({clipboardExport:I().bool,csvExport:I().bool}),I().bool]),indeterminateCheckboxAction:I().oneOf(["deselect","select"]),initialState:I().object,isCellEditable:I().func,isRowSelectable:I().func,keepNonExistentRowsSelected:I().bool,loading:I().bool,localeText:I().object,logger:I().shape({debug:I().func.isRequired,error:I().func.isRequired,info:I().func.isRequired,warn:I().func.isRequired}),logLevel:I().oneOf(["debug","error","info","warn",!1]),nonce:I().string,onCellClick:I().func,onCellDoubleClick:I().func,onCellEditStart:I().func,onCellEditStop:I().func,onCellKeyDown:I().func,onCellModesModelChange:I().func,onClipboardCopy:I().func,onColumnHeaderClick:I().func,onColumnHeaderContextMenu:I().func,onColumnHeaderDoubleClick:I().func,onColumnHeaderEnter:I().func,onColumnHeaderLeave:I().func,onColumnHeaderOut:I().func,onColumnHeaderOver:I().func,onColumnOrderChange:I().func,onColumnResize:I().func,onColumnVisibilityModelChange:I().func,onColumnWidthChange:I().func,onDensityChange:I().func,onFilterModelChange:I().func,onMenuClose:I().func,onMenuOpen:I().func,onPaginationMetaChange:I().func,onPaginationModelChange:I().func,onPreferencePanelClose:I().func,onPreferencePanelOpen:I().func,onProcessRowUpdateError:I().func,onResize:I().func,onRowClick:I().func,onRowCountChange:I().func,onRowDoubleClick:I().func,onRowEditStart:I().func,onRowEditStop:I().func,onRowModesModelChange:I().func,onRowSelectionModelChange:I().func,onSortModelChange:I().func,onStateChange:I().func,pageSizeOptions:I().arrayOf(I().oneOfType([I().number,I().shape({label:I().string.isRequired,value:I().number.isRequired})]).isRequired),pagination:I().oneOf([!0]),paginationMeta:I().shape({hasNextPage:I().bool}),paginationMode:I().oneOf(["client","server"]),paginationModel:I().shape({page:I().number.isRequired,pageSize:I().number.isRequired}),processRowUpdate:I().func,resetPageOnSortFilter:I().bool,resizeThrottleMs:I().number,rowBufferPx:I().number,rowCount:I().number,rowHeight:I().number,rowModesModel:I().object,rowPositionsDebounceMs:I().number,rows:I().arrayOf(I().object),rowSelection:I().bool,rowSelectionModel:I().oneOfType([I().arrayOf(I().oneOfType([I().number,I().string]).isRequired),I().number,I().string]),rowSpacingType:I().oneOf(["border","margin"]),scrollbarSize:I().number,showCellVerticalBorder:I().bool,showColumnVerticalBorder:I().bool,slotProps:I().object,slots:I().object,sortingMode:I().oneOf(["client","server"]),sortingOrder:I().arrayOf(I().oneOf(["asc","desc"])),sortModel:I().arrayOf(I().shape({field:I().string.isRequired,sort:I().oneOf(["asc","desc"])})),sx:I().oneOfType([I().arrayOf(I().oneOfType([I().func,I().object,I().bool])),I().func,I().object]),unstable_rowSpanning:I().bool,virtualizeColumnsWithAutoRowHeight:I().bool}},93958:function(e,t,r){"use strict";var l=r(30147).default;t.default=void 0,t.default=parseInt(l(r(70451)).version,10)},33498:function(e,t,r){"use strict";r.d(t,{v:()=>o});var l=r(77308),n=r(47095);let o=(0,l.A)(n.A)(({theme:e})=>({borderRadius:e.shape.borderRadius,padding:"4px"}))},63587:function(e,t,r){"use strict";r.d(t,{w:()=>c});var l=r(62540),n=r(25742),o=r(74628),i=r(66713),a=r(51949),s=r(70451),u=r(33498);function c({actions:e,variableState:t,disabledWithEmptySelection:r}){let{selectionMap:c}=(0,i.useSelection)(),{actionStatuses:d,setActionStatus:p}=(0,i.useItemActions)(),[f,g]=(0,s.useState)({open:!1}),h=(0,s.useCallback)(async(e,r)=>{r?await (0,a.executeAction)({action:e,selectionMap:new Map([[r.id,r.data]]),variableState:t,setActionStatus:p}):await (0,a.executeAction)({action:e,selectionMap:c,variableState:t,setActionStatus:p})},[c,t,p]),m=(0,s.useCallback)((e,t)=>{e.confirmMessage?g({open:!0,action:e,item:t}):h(e,t)},[h]),b=(0,s.useCallback)(()=>g(e=>({...e,open:!1})),[]),w=(0,s.useCallback)(async()=>{g(e=>({...e,open:!1})),f.action&&await h(f.action,f.item)},[f.action,h,f.item]),C=r&&0===c.size,v=(0,s.useMemo)(()=>{if(!e?.length)return[];let t=[];for(let r of e){if(!r.enabled)continue;let e=d.get(r.name)?.loading??!1,s=r.icon?a.ACTION_ICONS.find(e=>e.value===r.icon):void 0;t.push((0,l.jsx)(i.InfoTooltip,{description:r.name,children:(0,l.jsx)(u.v,{size:"small",disabled:e||C,onClick:e=>{e.stopPropagation(),m(r)},"aria-label":r.name,children:e?(0,l.jsx)(n.A,{size:14}):s?s.icon:(0,l.jsx)(o.A,{component:"span",sx:{fontSize:"0.75rem",px:.5},children:r.name})})},r.name))}return t},[e,d,m,C]),x=(0,s.useCallback)(t=>{if(!e?.length)return[];let r=[];for(let s of e){if(!s.enabled)continue;let e=d.get(s.name)?.itemStatuses?.get(t.id)?.loading??!1,c=s.icon?a.ACTION_ICONS.find(e=>e.value===s.icon):void 0;r.push((0,l.jsx)(i.InfoTooltip,{description:s.name,children:(0,l.jsx)(u.v,{size:"small",disabled:e||C,onClick:e=>{e.stopPropagation(),m(s,t)},"aria-label":s.name,children:e?(0,l.jsx)(n.A,{size:14}):c?c.icon:(0,l.jsx)(o.A,{component:"span",sx:{fontSize:"0.75rem",px:.5},children:s.name})})},`${s.name}-${t.id}`))}return r},[e,d,C,m]);return{actionButtons:v,confirmDialog:(0,s.useMemo)(()=>(0,l.jsxs)(i.Dialog,{open:f.open&&!!f.action,onClose:b,children:[(0,l.jsx)(i.Dialog.Header,{onClose:b,children:f.action?.name?`Confirm: ${f.action.name}`:"Confirm Action"}),(0,l.jsx)(i.Dialog.Content,{children:f.action?.confirmMessage??"Are you sure you want to perform this action?"}),(0,l.jsxs)(i.Dialog.Actions,{children:[(0,l.jsx)(i.Dialog.PrimaryButton,{onClick:w,children:"Confirm"}),(0,l.jsx)(i.Dialog.SecondaryButton,{onClick:b,children:"Cancel"})]})]}),[f.open,f.action,b,w]),getItemActionButtons:x}}},92959:function(e,t,r){"use strict";r.d(t,{A:()=>O});var l,n,o,i,a,s,u,c,d,p,f,g,h,m,b,w,C,v,x=function(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r},y=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)};let A=function(e){var t=0;e+="x";var r=Math.floor(65745979961613.07);for(let l=0;l<e.length;l++)t>r&&(t=Math.floor(t/137)),t=131*t+e.charCodeAt(l);return t},S="0123456789abcdef".split(""),R=[-0x80000000,8388608,32768,128],I=[24,16,8,0],M=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],k=[];class P{constructor(e=!1,t=!1){l.set(this,void 0),n.set(this,void 0),o.set(this,void 0),i.set(this,void 0),a.set(this,void 0),s.set(this,void 0),u.set(this,void 0),c.set(this,void 0),d.set(this,void 0),p.set(this,void 0),f.set(this,void 0),g.set(this,void 0),h.set(this,void 0),m.set(this,void 0),b.set(this,void 0),w.set(this,void 0),C.set(this,0),v.set(this,void 0),this.init(e,t)}init(e,t){t?(k[0]=k[16]=k[1]=k[2]=k[3]=k[4]=k[5]=k[6]=k[7]=k[8]=k[9]=k[10]=k[11]=k[12]=k[13]=k[14]=k[15]=0,x(this,n,k)):x(this,n,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),e?(x(this,s,0xc1059ed8),x(this,u,0x367cd507),x(this,c,0x3070dd17),x(this,d,0xf70e5939),x(this,p,0xffc00b31),x(this,f,0x68581511),x(this,g,0x64f98fa7),x(this,h,0xbefa4fa4)):(x(this,s,0x6a09e667),x(this,u,0xbb67ae85),x(this,c,0x3c6ef372),x(this,d,0xa54ff53a),x(this,p,0x510e527f),x(this,f,0x9b05688c),x(this,g,0x1f83d9ab),x(this,h,0x5be0cd19)),x(this,l,x(this,v,x(this,o,x(this,b,0)))),x(this,i,x(this,m,!1)),x(this,a,!0),x(this,w,e)}update(e){let t;if(y(this,i))return this;t=e instanceof ArrayBuffer?new Uint8Array(e):e;let r=0,a=t.length,s=y(this,n);for(;r<a;){let e;if(y(this,m)&&(x(this,m,!1),s[0]=y(this,l),s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),"string"!=typeof t)for(e=y(this,v);r<a&&e<64;++r)s[e>>2]|=t[r]<<I[3&e++];else for(e=y(this,v);r<a&&e<64;++r){let l=t.charCodeAt(r);l<128?s[e>>2]|=l<<I[3&e++]:(l<2048?s[e>>2]|=(192|l>>6)<<I[3&e++]:(l<55296||l>=57344?s[e>>2]|=(224|l>>12)<<I[3&e++]:(l=65536+((1023&l)<<10|1023&t.charCodeAt(++r)),s[e>>2]|=(240|l>>18)<<I[3&e++],s[e>>2]|=(128|l>>12&63)<<I[3&e++]),s[e>>2]|=(128|l>>6&63)<<I[3&e++]),s[e>>2]|=(128|63&l)<<I[3&e++])}x(this,C,e),x(this,o,y(this,o)+(e-y(this,v))),e>=64?(x(this,l,s[16]),x(this,v,e-64),this.hash(),x(this,m,!0)):x(this,v,e)}return y(this,o)>0xffffffff&&(x(this,b,y(this,b)+(y(this,o)/0x100000000|0)),x(this,o,y(this,o)%0x100000000)),this}finalize(){if(y(this,i))return;x(this,i,!0);let e=y(this,n),t=y(this,C);e[16]=y(this,l),e[t>>2]|=R[3&t],x(this,l,e[16]),t>=56&&(y(this,m)||this.hash(),e[0]=y(this,l),e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=y(this,b)<<3|y(this,o)>>>29,e[15]=y(this,o)<<3,this.hash()}hash(){let e,t,r,l,o,i,m,b,C,v=y(this,s),A=y(this,u),S=y(this,c),R=y(this,d),I=y(this,p),k=y(this,f),P=y(this,g),E=y(this,h),F=y(this,n);for(let r=16;r<64;++r)e=((l=F[r-15])>>>7|l<<25)^(l>>>18|l<<14)^l>>>3,t=((l=F[r-2])>>>17|l<<15)^(l>>>19|l<<13)^l>>>10,F[r]=F[r-16]+e+F[r-7]+t|0;C=A&S;for(let n=0;n<64;n+=4)y(this,a)?(y(this,w)?(i=300032,E=(l=F[0]-0x543c9a5b)-0x8f1a6c7|0,R=l+0x170e9b5|0):(i=0x2a01a605,E=(l=F[0]-0xc881298)-0x5ab00ac6|0,R=l+0x8909ae5|0),x(this,a,!1)):(e=(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10),t=(I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7),r=(i=v&A)^v&S^C,l=E+t+(I&k^~I&P)+M[n]+F[n],o=e+r,E=R+l|0,R=l+o|0),e=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),t=(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7),r=(m=R&v)^R&A^i,l=P+t+(E&I^~E&k)+M[n+1]+F[n+1],o=e+r,P=S+l|0,e=((S=l+o|0)>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10),t=(P>>>6|P<<26)^(P>>>11|P<<21)^(P>>>25|P<<7),r=(b=S&R)^S&v^m,l=k+t+(P&E^~P&I)+M[n+2]+F[n+2],o=e+r,k=A+l|0,e=((A=l+o|0)>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10),t=(k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7),r=(C=A&S)^A&R^b,l=I+t+(k&P^~k&E)+M[n+3]+F[n+3],o=e+r,I=v+l|0,v=l+o|0;x(this,s,y(this,s)+v|0),x(this,u,y(this,u)+A|0),x(this,c,y(this,c)+S|0),x(this,d,y(this,d)+R|0),x(this,p,y(this,p)+I|0),x(this,f,y(this,f)+k|0),x(this,g,y(this,g)+P|0),x(this,h,y(this,h)+E|0)}hex(){this.finalize();let e=y(this,s),t=y(this,u),r=y(this,c),l=y(this,d),n=y(this,p),o=y(this,f),i=y(this,g),a=y(this,h),m=S[e>>28&15]+S[e>>24&15]+S[e>>20&15]+S[e>>16&15]+S[e>>12&15]+S[e>>8&15]+S[e>>4&15]+S[15&e]+S[t>>28&15]+S[t>>24&15]+S[t>>20&15]+S[t>>16&15]+S[t>>12&15]+S[t>>8&15]+S[t>>4&15]+S[15&t]+S[r>>28&15]+S[r>>24&15]+S[r>>20&15]+S[r>>16&15]+S[r>>12&15]+S[r>>8&15]+S[r>>4&15]+S[15&r]+S[l>>28&15]+S[l>>24&15]+S[l>>20&15]+S[l>>16&15]+S[l>>12&15]+S[l>>8&15]+S[l>>4&15]+S[15&l]+S[n>>28&15]+S[n>>24&15]+S[n>>20&15]+S[n>>16&15]+S[n>>12&15]+S[n>>8&15]+S[n>>4&15]+S[15&n]+S[o>>28&15]+S[o>>24&15]+S[o>>20&15]+S[o>>16&15]+S[o>>12&15]+S[o>>8&15]+S[o>>4&15]+S[15&o]+S[i>>28&15]+S[i>>24&15]+S[i>>20&15]+S[i>>16&15]+S[i>>12&15]+S[i>>8&15]+S[i>>4&15]+S[15&i];return y(this,w)||(m+=S[a>>28&15]+S[a>>24&15]+S[a>>20&15]+S[a>>16&15]+S[a>>12&15]+S[a>>8&15]+S[a>>4&15]+S[15&a]),m}toString(){return this.hex()}digest(){this.finalize();let e=y(this,s),t=y(this,u),r=y(this,c),l=y(this,d),n=y(this,p),o=y(this,f),i=y(this,g),a=y(this,h),m=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24&255,r>>16&255,r>>8&255,255&r,l>>24&255,l>>16&255,l>>8&255,255&l,n>>24&255,n>>16&255,n>>8&255,255&n,o>>24&255,o>>16&255,o>>8&255,255&o,i>>24&255,i>>16&255,i>>8&255,255&i];return y(this,w)||m.push(a>>24&255,a>>16&255,a>>8&255,255&a),m}array(){return this.digest()}arrayBuffer(){this.finalize();let e=new ArrayBuffer(y(this,w)?28:32),t=new DataView(e);return t.setUint32(0,y(this,s)),t.setUint32(4,y(this,u)),t.setUint32(8,y(this,c)),t.setUint32(12,y(this,d)),t.setUint32(16,y(this,p)),t.setUint32(20,y(this,f)),t.setUint32(24,y(this,g)),y(this,w)||t.setUint32(28,y(this,h)),e}}function E(e){let t=new P;return t.update(e),parseInt(t.hex().substring(0,8),16)}l=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,g=new WeakMap,h=new WeakMap,m=new WeakMap,b=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap;let F=function(e){var t="#";return e.forEach(function(e){e<16&&(t+=0),t+=e.toString(16)}),t},H=function(e,t,r){var l=r<.5?r*(1+t):r+t-r*t,n=2*r-l;return[(e/=360)+1/3,e,e-1/3].map(function(e){return e<0&&e++,e>1&&e--,Math.round(255*(e=e<1/6?n+(l-n)*6*e:e<.5?l:e<2/3?n+(l-n)*6*(2/3-e):n))})};class O{constructor(e={}){const[t,r]=[e.lightness,e.saturation].map(function(e){return Array.isArray(e=void 0!==e?e:[.35,.5,.65])?e.concat():[e]});this.L=t,this.S=r,"number"==typeof e.hue&&(e.hue={min:e.hue,max:e.hue}),"object"!=typeof e.hue||Array.isArray(e.hue)||(e.hue=[e.hue]),void 0===e.hue&&(e.hue=[]),this.hueRanges=e.hue.map(function(e){return{min:void 0===e.min?0:e.min,max:void 0===e.max?360:e.max}}),this.hash=E,"function"==typeof e.hash&&(this.hash=e.hash),"bkdr"===e.hash&&(this.hash=A)}hsl(e){var t,r,l=this.hash(e);if(this.hueRanges.length){let e=this.hueRanges[l%this.hueRanges.length];t=l/this.hueRanges.length%727*(e.max-e.min)/727+e.min}else t=l%359;return l=Math.ceil(l/360),r=this.S[l%this.S.length],l=Math.ceil(l/this.S.length),[t,r,this.L[l%this.L.length]]}rgb(e){var t=this.hsl(e);return H.apply(this,t)}hex(e){return F(this.rgb(e))}}},30182:function(e,t,r){"use strict";var l;t.default=void 0,t.default=(0,((l=r(1448))&&l.__esModule?l:{default:l}).default)("M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z","Information")},32473:function(e,t,r){"use strict";var l=r(70451),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=l.useState,i=l.useEffect,a=l.useLayoutEffect,s=l.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(),l=o({inst:{value:r,getSnapshot:t}}),n=l[0].inst,c=l[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!==l.useSyncExternalStore?l.useSyncExternalStore:c},43676:function(e,t,r){"use strict";e.exports=r(32473)},30147:function(e,t,r){var l=r(10564).default;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=l(e)&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&({}).hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o},e.exports.__esModule=!0,e.exports.default=e.exports},10564:function(e){function t(r){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}}]);
@@ -1 +1 @@
1
- "use strict";(self.chunk_TraceTable=self.chunk_TraceTable||[]).push([["778"],{17609:function(e,t,n){n.r(t),n.d(t,{TraceTable:()=>M});var l=n(62540),r=n(21147),a=n(74628),i=n(51867),o=n(56599),s=n(88091),c=n(47601),d=n(65211),u=n(57438),m=n(69979),h=n(69791),p=n(63587),f=n(30182),x=n(71971),g=n(70451),v=n(92959);let b=new v.A({hue:{min:20,max:360}}),y=new v.A({hue:{min:0,max:20}}),C={},j=new Intl.DateTimeFormat(void 0,{dateStyle:"long",timeStyle:"medium"}).format,S=new Intl.DateTimeFormat(void 0,{dateStyle:"long",timeStyle:"long",timeZone:"UTC"}).format;function A(e){var t,n,u,m;let{options:v,result:A}=e,M=(0,o.A)(),k=(0,i.useChartsTheme)(),I=(0,r.useAllVariableValues)(),N=(null==(t=v.selection)?void 0:t.enabled)??!1,{selectionMap:$,setSelection:O,clearSelection:R}=(0,i.useSelection)(),F=v.actions,W=(null==F?void 0:F.enabled)&&(null==F?void 0:F.displayWithItem)?F.actionsList:void 0,{getItemActionButtons:_,confirmDialog:z}=(0,p.w)({actions:W,variableState:I}),D=(0,g.useMemo)(()=>Array.from($.keys()),[$]),U=null==(u=v.visual)||null==(n=u.palette)?void 0:n.mode,E=(0,g.useCallback)(e=>(function(e,t,n,l){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if("categorical"===n){let n=t.echartsTheme.color,a=[e.palette.error.light,e.palette.error.main,e.palette.error.dark],i=r?a:n;if(0===i.length)return console.warn("getConsistentCategoricalColor() called with empty color palette, fallback to #000"),"#000";let o=0;for(let e=0;e<l.length;e++)o=l.charCodeAt(e)+((o<<5)-o);return i[Math.abs(o)%i.length]??"#000"}{let e,t;return(t=C[e=`${l}_____${r}`])||(t=function(e,t){let[n,l,r]=t?y.hsl(e):b.hsl(e),a=`${(100*l).toFixed(0)}%`,i=`${(100*r).toFixed(0)}%`;return`hsla(${n.toFixed(2)},${a},${i},0.9)`}(l,r),C[e]=t),t}})(M,k,U,e),[M,k,U]),L=(0,g.useMemo)(()=>{let e=[];for(let a of A){var t,n,l;let i=a.definition.spec.plugin.spec,o=null==i||null==(t=i.datasource)?void 0:t.name;for(let t of(null==(n=a.data)?void 0:n.searchResult)||[]){let n=(null==(l=v.links)?void 0:l.trace)?(0,r.replaceVariablesInString)(v.links.trace,I,{datasourceName:o??"",traceId:t.traceId}):void 0;e.push({...t,traceLink:n})}}return e},[A,null==(m=v.links)?void 0:m.trace,I]),V=(0,g.useMemo)(()=>{let e=new Map;return L.forEach(t=>e.set(t.traceId,t)),e},[L]),G=(0,g.useCallback)(e=>{0===e.length?R():O(e.map(e=>{let t=V.get(e);return t?{id:e,item:t}:null}).filter(e=>null!==e))},[V,O,R]),H=(0,g.useMemo)(()=>[{field:"name",headerName:"Trace name",type:"string",flex:4,display:"flex",valueGetter:(e,t)=>`${t.rootServiceName}: ${t.rootTraceName}`,renderCell:e=>{let{row:t}=e;return(0,l.jsxs)(a.A,{sx:{my:1},children:[(0,l.jsx)(T,{row:t}),(0,l.jsx)("br",{}),Object.entries(t.serviceStats).map(e=>{let[t,n]=e;return(0,l.jsx)(w,{serviceName:t,stats:n,serviceColor:E(t)},t)})]})}},{field:"spanCount",headerName:"Spans",type:"number",headerAlign:"left",align:"left",flex:2,minWidth:145,display:"flex",valueGetter:(e,t)=>Object.values(t.serviceStats).reduce((e,t)=>e+t.spanCount,0),renderCell:e=>{let{row:t}=e,n=0,r=0;for(let e of Object.values(t.serviceStats))n+=e.spanCount,r+=e.errorCount??0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(s.A,{display:"inline",children:[n," spans"]}),r>0&&(0,l.jsx)(c.A,{label:`${r} error${1===r?"":"s"}`,sx:{marginLeft:"5px"},icon:(0,l.jsx)(f.default,{}),variant:"outlined",size:"small",color:"error"})]})}},{field:"durationMs",headerName:"Duration",type:"number",headerAlign:"left",align:"left",flex:1,minWidth:70,display:"flex",renderCell:e=>{let{row:t}=e;return(0,l.jsx)(s.A,{display:"inline",children:t.durationMs<1?"<1ms":(0,h.a3)((0,h.eo)(t.durationMs))})}},{field:"startTimeUnixMs",headerName:"Start time",type:"number",headerAlign:"left",align:"left",flex:3,minWidth:240,display:"flex",renderCell:e=>{let{row:t}=e;return(0,l.jsx)(d.A,{title:S(new Date(t.startTimeUnixMs)),placement:"top",arrow:!0,children:(0,l.jsx)(s.A,{display:"inline",children:j(new Date(t.startTimeUnixMs))},`st-${t.traceId}`)})}},...W&&W.length>0?[{field:"actions",headerName:"Actions",flex:W.length,display:"flex",type:"actions",getActions:e=>{let{row:t}=e;return _({id:t.traceId,data:t})}}]:[]],[E,W,_]);return(0,l.jsxs)(l.Fragment,{children:[z,(0,l.jsx)(x.z,{sx:{borderWidth:0},columns:H,rows:L,getRowId:e=>e.traceId,getRowHeight:()=>"auto",getEstimatedRowHeight:()=>66,checkboxSelection:N,rowSelectionModel:N?D:void 0,onRowSelectionModelChange:N?G:void 0,disableRowSelectionOnClick:!N,pageSizeOptions:[10,20,50,100],initialState:{pagination:{paginationModel:{pageSize:20}},sorting:{sortModel:[{field:"startTimeUnixMs",sort:"desc"}]}}})]})}function T(e){let{row:t}=e,{RouterComponent:n}=(0,r.useRouterContext)();return n&&t.traceLink?(0,l.jsxs)(u.A,{variant:"body1",color:"inherit",underline:"hover",component:n,to:t.traceLink,children:[(0,l.jsxs)("strong",{children:[t.rootServiceName,":"]})," ",t.rootTraceName]}):(0,l.jsxs)(s.A,{display:"inline",children:[(0,l.jsxs)("strong",{children:[t.rootServiceName,":"]})," ",t.rootTraceName]})}function w(e){let{serviceName:t,stats:n,serviceColor:r}=e;return(0,l.jsx)(c.A,{label:t,variant:"outlined",size:"small",style:{"--service-color":r},sx:{marginTop:"5px",marginRight:"5px",borderColor:"var(--service-color)"},avatar:(0,l.jsx)(m.A,{sx:{minWidth:"fit-content",padding:"6px",backgroundColor:"var(--service-color)",fontSize:"0.65rem",fontWeight:"bold",textShadow:"0 0 5px #fff"},children:n.spanCount})})}let M={PanelComponent:function(e){let{spec:t,queryResults:n}=e,r=(0,i.useChartsTheme)().container.padding.default;return n.some(e=>{var t;return((null==(t=e.data)?void 0:t.searchResult)??[]).length>0})?(0,l.jsx)(a.A,{sx:{height:"100%",padding:`${r}px`,overflowY:"auto"},children:(0,l.jsx)(A,{options:t,result:n})}):(0,l.jsx)(i.NoDataOverlay,{resource:"traces"})},panelOptionsEditorComponents:[{label:"Item Actions",content:function(e){let{onChange:t,value:n}=e;return(0,l.jsx)(r.ItemSelectionActionsEditor,{actionOptions:n.actions,onChangeActions:e=>{t({...n,actions:e})},selectionOptions:n.selection,onChangeSelection:e=>{t({...n,selection:e})}})}}],supportedQueryTypes:["TraceQuery"],createInitialOptions:function(){return{}}}}}]);
1
+ "use strict";(self.chunk_TraceTable=self.chunk_TraceTable||[]).push([["778"],{17609:function(e,t,n){n.r(t),n.d(t,{TraceTable:()=>M});var l=n(62540),r=n(36603),a=n(74628),i=n(43349),o=n(56599),s=n(88091),c=n(47601),d=n(65211),u=n(57438),m=n(69979),h=n(69791),p=n(63587),f=n(30182),x=n(71971),g=n(70451),v=n(92959);let b=new v.A({hue:{min:20,max:360}}),y=new v.A({hue:{min:0,max:20}}),C={},j=new Intl.DateTimeFormat(void 0,{dateStyle:"long",timeStyle:"medium"}).format,S=new Intl.DateTimeFormat(void 0,{dateStyle:"long",timeStyle:"long",timeZone:"UTC"}).format;function A(e){var t,n,u,m;let{options:v,result:A}=e,M=(0,o.A)(),k=(0,i.useChartsTheme)(),I=(0,r.useAllVariableValues)(),N=(null==(t=v.selection)?void 0:t.enabled)??!1,{selectionMap:$,setSelection:O,clearSelection:R}=(0,i.useSelection)(),F=v.actions,W=(null==F?void 0:F.enabled)&&(null==F?void 0:F.displayWithItem)?F.actionsList:void 0,{getItemActionButtons:_,confirmDialog:z}=(0,p.w)({actions:W,variableState:I}),D=(0,g.useMemo)(()=>Array.from($.keys()),[$]),U=null==(u=v.visual)||null==(n=u.palette)?void 0:n.mode,E=(0,g.useCallback)(e=>(function(e,t,n,l){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if("categorical"===n){let n=t.echartsTheme.color,a=[e.palette.error.light,e.palette.error.main,e.palette.error.dark],i=r?a:n;if(0===i.length)return console.warn("getConsistentCategoricalColor() called with empty color palette, fallback to #000"),"#000";let o=0;for(let e=0;e<l.length;e++)o=l.charCodeAt(e)+((o<<5)-o);return i[Math.abs(o)%i.length]??"#000"}{let e,t;return(t=C[e=`${l}_____${r}`])||(t=function(e,t){let[n,l,r]=t?y.hsl(e):b.hsl(e),a=`${(100*l).toFixed(0)}%`,i=`${(100*r).toFixed(0)}%`;return`hsla(${n.toFixed(2)},${a},${i},0.9)`}(l,r),C[e]=t),t}})(M,k,U,e),[M,k,U]),L=(0,g.useMemo)(()=>{let e=[];for(let a of A){var t,n,l;let i=a.definition.spec.plugin.spec,o=null==i||null==(t=i.datasource)?void 0:t.name;for(let t of(null==(n=a.data)?void 0:n.searchResult)||[]){let n=(null==(l=v.links)?void 0:l.trace)?(0,r.replaceVariablesInString)(v.links.trace,I,{datasourceName:o??"",traceId:t.traceId}):void 0;e.push({...t,traceLink:n})}}return e},[A,null==(m=v.links)?void 0:m.trace,I]),V=(0,g.useMemo)(()=>{let e=new Map;return L.forEach(t=>e.set(t.traceId,t)),e},[L]),G=(0,g.useCallback)(e=>{0===e.length?R():O(e.map(e=>{let t=V.get(e);return t?{id:e,item:t}:null}).filter(e=>null!==e))},[V,O,R]),H=(0,g.useMemo)(()=>[{field:"name",headerName:"Trace name",type:"string",flex:4,display:"flex",valueGetter:(e,t)=>`${t.rootServiceName}: ${t.rootTraceName}`,renderCell:e=>{let{row:t}=e;return(0,l.jsxs)(a.A,{sx:{my:1},children:[(0,l.jsx)(T,{row:t}),(0,l.jsx)("br",{}),Object.entries(t.serviceStats).map(e=>{let[t,n]=e;return(0,l.jsx)(w,{serviceName:t,stats:n,serviceColor:E(t)},t)})]})}},{field:"spanCount",headerName:"Spans",type:"number",headerAlign:"left",align:"left",flex:2,minWidth:145,display:"flex",valueGetter:(e,t)=>Object.values(t.serviceStats).reduce((e,t)=>e+t.spanCount,0),renderCell:e=>{let{row:t}=e,n=0,r=0;for(let e of Object.values(t.serviceStats))n+=e.spanCount,r+=e.errorCount??0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(s.A,{display:"inline",children:[n," spans"]}),r>0&&(0,l.jsx)(c.A,{label:`${r} error${1===r?"":"s"}`,sx:{marginLeft:"5px"},icon:(0,l.jsx)(f.default,{}),variant:"outlined",size:"small",color:"error"})]})}},{field:"durationMs",headerName:"Duration",type:"number",headerAlign:"left",align:"left",flex:1,minWidth:70,display:"flex",renderCell:e=>{let{row:t}=e;return(0,l.jsx)(s.A,{display:"inline",children:t.durationMs<1?"<1ms":(0,h.a3)((0,h.eo)(t.durationMs))})}},{field:"startTimeUnixMs",headerName:"Start time",type:"number",headerAlign:"left",align:"left",flex:3,minWidth:240,display:"flex",renderCell:e=>{let{row:t}=e;return(0,l.jsx)(d.A,{title:S(new Date(t.startTimeUnixMs)),placement:"top",arrow:!0,children:(0,l.jsx)(s.A,{display:"inline",children:j(new Date(t.startTimeUnixMs))},`st-${t.traceId}`)})}},...W&&W.length>0?[{field:"actions",headerName:"Actions",flex:W.length,display:"flex",type:"actions",getActions:e=>{let{row:t}=e;return _({id:t.traceId,data:t})}}]:[]],[E,W,_]);return(0,l.jsxs)(l.Fragment,{children:[z,(0,l.jsx)(x.z,{sx:{borderWidth:0},columns:H,rows:L,getRowId:e=>e.traceId,getRowHeight:()=>"auto",getEstimatedRowHeight:()=>66,checkboxSelection:N,rowSelectionModel:N?D:void 0,onRowSelectionModelChange:N?G:void 0,disableRowSelectionOnClick:!N,pageSizeOptions:[10,20,50,100],initialState:{pagination:{paginationModel:{pageSize:20}},sorting:{sortModel:[{field:"startTimeUnixMs",sort:"desc"}]}}})]})}function T(e){let{row:t}=e,{RouterComponent:n}=(0,r.useRouterContext)();return n&&t.traceLink?(0,l.jsxs)(u.A,{variant:"body1",color:"inherit",underline:"hover",component:n,to:t.traceLink,children:[(0,l.jsxs)("strong",{children:[t.rootServiceName,":"]})," ",t.rootTraceName]}):(0,l.jsxs)(s.A,{display:"inline",children:[(0,l.jsxs)("strong",{children:[t.rootServiceName,":"]})," ",t.rootTraceName]})}function w(e){let{serviceName:t,stats:n,serviceColor:r}=e;return(0,l.jsx)(c.A,{label:t,variant:"outlined",size:"small",style:{"--service-color":r},sx:{marginTop:"5px",marginRight:"5px",borderColor:"var(--service-color)"},avatar:(0,l.jsx)(m.A,{sx:{minWidth:"fit-content",padding:"6px",backgroundColor:"var(--service-color)",fontSize:"0.65rem",fontWeight:"bold",textShadow:"0 0 5px #fff"},children:n.spanCount})})}let M={PanelComponent:function(e){let{spec:t,queryResults:n}=e,r=(0,i.useChartsTheme)().container.padding.default;return n.some(e=>{var t;return((null==(t=e.data)?void 0:t.searchResult)??[]).length>0})?(0,l.jsx)(a.A,{sx:{height:"100%",padding:`${r}px`,overflowY:"auto"},children:(0,l.jsx)(A,{options:t,result:n})}):(0,l.jsx)(i.NoDataOverlay,{resource:"traces"})},panelOptionsEditorComponents:[{label:"Item Actions",content:function(e){let{onChange:t,value:n}=e;return(0,l.jsx)(r.ItemSelectionActionsEditor,{actionOptions:n.actions,onChangeActions:e=>{t({...n,actions:e})},selectionOptions:n.selection,onChangeSelection:e=>{t({...n,selection:e})}})}}],supportedQueryTypes:["TraceQuery"],createInitialOptions:function(){return{}}}}}]);