@perses-dev/timeseries-table-plugin 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/js/{2795.da99f4e6.js → 2795.a440ef38.js} +1 -1
- package/__mf/js/{TimeSeriesTable.4632354a.js → TimeSeriesTable.2da81b85.js} +3 -3
- package/__mf/js/async/1143.485578ee.js +37 -0
- package/__mf/js/async/1146.07aa30ae.js +1 -0
- package/__mf/js/async/1495.b3e3893c.js +29 -0
- package/__mf/js/async/2292.fc810bed.js +2 -0
- package/__mf/js/async/2980.18947ff5.js +1 -0
- package/__mf/js/async/{5409.6e494cf6.js → 5409.a87deb49.js} +1 -1
- package/__mf/js/async/5901.13294148.js +2 -0
- package/__mf/js/async/7179.07f82b2f.js +73 -0
- package/__mf/js/async/{__federation_expose_TimeSeriesTable.1b608971.js → __federation_expose_TimeSeriesTable.6b53cd91.js} +1 -1
- package/__mf/js/main.631883b2.js +1 -0
- package/mf-manifest.json +48 -86
- package/mf-stats.json +49 -87
- package/package.json +5 -11
- package/__mf/css/async/8433.53436797.css +0 -1
- package/__mf/js/async/1996.eb63b85f.js +0 -2
- package/__mf/js/async/2358.d5e2a579.js +0 -7
- package/__mf/js/async/2399.c004c2a0.js +0 -23
- package/__mf/js/async/2641.01bd627c.js +0 -1
- package/__mf/js/async/3001.f5a37a5a.js +0 -1
- package/__mf/js/async/3111.078f056e.js +0 -37
- package/__mf/js/async/3598.da131c3c.js +0 -1
- package/__mf/js/async/3660.8a07b6df.js +0 -23
- package/__mf/js/async/4446.de8c4376.js +0 -1
- package/__mf/js/async/52.66016701.js +0 -2
- package/__mf/js/async/5662.5aa06a68.js +0 -1
- package/__mf/js/async/5767.9f409196.js +0 -1
- package/__mf/js/async/5998.273ad1d8.js +0 -73
- package/__mf/js/async/654.0d83c19c.js +0 -1
- package/__mf/js/async/6884.bc471e42.js +0 -1
- package/__mf/js/async/7606.1f156522.js +0 -1
- package/__mf/js/async/894.670bb5d0.js +0 -1
- package/__mf/js/async/9560.b16c7025.js +0 -1
- package/__mf/js/async/9954.d0a3f126.js +0 -1
- package/__mf/js/main.f66bbd09.js +0 -1
- /package/__mf/js/async/{2358.d5e2a579.js.LICENSE.txt → 1495.b3e3893c.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{1996.eb63b85f.js.LICENSE.txt → 2292.fc810bed.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{52.66016701.js.LICENSE.txt → 5901.13294148.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5998.273ad1d8.js.LICENSE.txt → 7179.07f82b2f.js.LICENSE.txt} +0 -0
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkTimeSeriesTable=self.webpackChunkTimeSeriesTable||[]).push([["3111"],{11774:function(e,t,r){"use strict";r.d(t,{Z:()=>U});var o,n,i=r(54538),a=r(90496),l=r(82267),s=r(16838),p=r(57174),c=r(75651),u=r(12709),d=r(82319),f=r(51751),m=r(51640),h=r(44124),g=r(6749);function v(e){return(0,g.ZP)("MuiListSubheader",e)}(0,h.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var b=r(24246);let y=e=>{let{classes:t,color:r,disableGutters:o,inset:n,disableSticky:i}=e,a={root:["root","default"!==r&&`color${(0,m.Z)(r)}`,!o&&"gutters",n&&"inset",!i&&"sticky"]};return(0,l.Z)(a,v,t)},x=(0,u.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${(0,m.Z)(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((0,d.Z)(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),w=i.forwardRef(function(e,t){let r=(0,f.i)({props:e,name:"MuiListSubheader"}),{className:o,color:n="default",component:i="li",disableGutters:l=!1,disableSticky:s=!1,inset:p=!1,...c}=r,u={...r,color:n,component:i,disableGutters:l,disableSticky:s,inset:p},d=y(u);return(0,b.jsx)(x,{as:i,className:(0,a.Z)(d.root,o),ref:t,ownerState:u,...c})});w&&(w.muiSkipListHighlight=!0);var Z=r(28866),O=r(75094),P=r(52889),$=r(28678),k=r(3597),R=r(8782),M=r(6499),S=r(23049),C=r(97686);function T(e){return(0,g.ZP)("MuiAutocomplete",e)}let A=(0,h.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var L=r(16351);let j=e=>{let{classes:t,disablePortal:r,expanded:o,focused:n,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:p,popupOpen:c,size:u}=e,d={root:["root",o&&"expanded",n&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",p&&"inputFocused"],tag:["tag",`tagSize${(0,m.Z)(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.Z)(d,T,t)},D=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{fullWidth:o,hasClearIcon:n,hasPopupIcon:i,inputFocused:a,size:l}=r;return[{[`& .${A.tag}`]:t.tag},{[`& .${A.tag}`]:t[`tagSize${(0,m.Z)(l)}`]},{[`& .${A.inputRoot}`]:t.inputRoot},{[`& .${A.input}`]:t.input},{[`& .${A.input}`]:a&&t.inputFocused},t.root,o&&t.fullWidth,i&&t.hasPopupIcon,n&&t.hasClearIcon]}})({[`&.${A.focused} .${A.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${A.clearIndicator}`]:{visibility:"visible"}},[`& .${A.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${A.inputRoot}`]:{[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:30},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:56},[`& .${A.input}`]:{width:0,minWidth:30}},[`& .${$.Z.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${$.Z.root}.${k.Z.sizeSmall}`]:{[`& .${$.Z.input}`]:{padding:"2px 4px 3px 0"}},[`& .${R.Z.root}`]:{padding:9,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:39},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:65},[`& .${A.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${R.Z.root}.${k.Z.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${A.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${M.Z.root}`]:{paddingTop:19,paddingLeft:8,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:39},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:65},[`& .${M.Z.input}`]:{padding:"7px 4px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${M.Z.root}.${k.Z.sizeSmall}`]:{paddingBottom:1,[`& .${M.Z.input}`]:{padding:"2.5px 4px"}},[`& .${k.Z.hiddenLabel}`]:{paddingTop:8},[`& .${M.Z.root}.${k.Z.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${A.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${M.Z.root}.${k.Z.hiddenLabel}.${k.Z.sizeSmall}`]:{[`& .${A.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${A.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${A.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${A.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${A.inputRoot}`]:{flexWrap:"wrap"}}}]}),I=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),W=(0,u.ZP)(O.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),E=(0,u.ZP)(O.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),H=(0,u.ZP)(c.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${A.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})((0,d.Z)(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),N=(0,u.ZP)(Z.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((0,d.Z)(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),B=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((0,d.Z)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),F=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((0,d.Z)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),V=(0,u.ZP)("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((0,d.Z)(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${A.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${A.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${A.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${A.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${A.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),z=(0,u.ZP)(w,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((0,d.Z)(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),q=(0,u.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${A.option}`]:{paddingLeft:24}}),U=i.forwardRef(function(e,t){let r;let l=(0,f.i)({props:e,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:u=!1,autoSelect:d=!1,blurOnSelect:m=!1,ChipProps:h,className:g,clearIcon:v=o||(o=(0,b.jsx)(S.Z,{fontSize:"small"})),clearOnBlur:y=!l.freeSolo,clearOnEscape:x=!1,clearText:w="Clear",closeText:O="Close",componentsProps:$,defaultValue:k=l.multiple?[]:null,disableClearable:R=!1,disableCloseOnSelect:M=!1,disabled:T=!1,disabledItemsFocusable:A=!1,disableListWrap:U=!1,disablePortal:_=!1,filterOptions:X,filterSelectedOptions:Y=!1,forcePopupIcon:G="auto",freeSolo:K=!1,fullWidth:Q=!1,getLimitTagsText:J=e=>`+${e}`,getOptionDisabled:ee,getOptionKey:et,getOptionLabel:er,isOptionEqualToValue:eo,groupBy:en,handleHomeEndKeys:ei=!l.freeSolo,id:ea,includeInputInList:el=!1,inputValue:es,limitTags:ep=-1,ListboxComponent:ec,ListboxProps:eu,loading:ed=!1,loadingText:ef="Loading…",multiple:em=!1,noOptionsText:eh="No options",onChange:eg,onClose:ev,onHighlightChange:eb,onInputChange:ey,onOpen:ex,open:ew,openOnFocus:eZ=!1,openText:eO="Open",options:eP,PaperComponent:e$,PopperComponent:ek,popupIcon:eR=n||(n=(0,b.jsx)(C.Z,{})),readOnly:eM=!1,renderGroup:eS,renderInput:eC,renderOption:eT,renderTags:eA,selectOnFocus:eL=!l.freeSolo,size:ej="medium",slots:eD={},slotProps:eI={},value:eW,...eE}=l,{getRootProps:eH,getInputProps:eN,getInputLabelProps:eB,getPopupIndicatorProps:eF,getClearProps:eV,getTagProps:ez,getListboxProps:eq,getOptionProps:eU,value:e_,dirty:eX,expanded:eY,id:eG,popupOpen:eK,focused:eQ,focusedTag:eJ,anchorEl:e0,setAnchorEl:e1,inputValue:e2,groupedOptions:e4}=(0,p.Z)({...l,componentName:"Autocomplete"}),e5=!R&&!T&&eX&&!eM,e6=(!K||!0===G)&&!1!==G,{onMouseDown:e9}=eN(),{ref:e7,...e8}=eq(),e3=er||(e=>e.label??e),te={...l,disablePortal:_,expanded:eY,focused:eQ,fullWidth:Q,getOptionLabel:e3,hasClearIcon:e5,hasPopupIcon:e6,inputFocused:-1===eJ,popupOpen:eK,size:ej},tt=j(te),tr={slots:{paper:e$,popper:ek,...eD},slotProps:{chip:h,listbox:eu,...$,...eI}},[to,tn]=(0,L.Z)("listbox",{elementType:V,externalForwardedProps:tr,ownerState:te,className:tt.listbox,additionalProps:e8,ref:e7}),[ti,ta]=(0,L.Z)("paper",{elementType:Z.Z,externalForwardedProps:tr,ownerState:te,className:tt.paper}),[tl,ts]=(0,L.Z)("popper",{elementType:c.Z,externalForwardedProps:tr,ownerState:te,className:tt.popper,additionalProps:{disablePortal:_,style:{width:e0?e0.clientWidth:null},role:"presentation",anchorEl:e0,open:eK}});if(em&&e_.length>0){let e=e=>({className:tt.tag,disabled:T,...ez(e)});r=eA?eA(e_,e,te):e_.map((t,r)=>{let{key:o,...n}=e({index:r});return(0,b.jsx)(P.Z,{label:e3(t),size:ej,...n,...tr.slotProps.chip},o)})}if(ep>-1&&Array.isArray(r)){let e=r.length-ep;!eQ&&e>0&&(r=r.splice(0,ep)).push((0,b.jsx)("span",{className:tt.tag,children:J(e)},r.length))}let tp=eS||(e=>(0,b.jsxs)("li",{children:[(0,b.jsx)(z,{className:tt.groupLabel,ownerState:te,component:"div",children:e.group}),(0,b.jsx)(q,{className:tt.groupUl,ownerState:te,children:e.children})]},e.key)),tc=eT||((e,t)=>{let{key:r,...o}=e;return(0,b.jsx)("li",{...o,children:e3(t)},r)}),tu=(e,t)=>{let r=eU({option:e,index:t});return tc({...r,className:tt.option},e,{selected:r["aria-selected"],index:t,inputValue:e2},te)},td=tr.slotProps.clearIndicator,tf=tr.slotProps.popupIndicator;return(0,b.jsxs)(i.Fragment,{children:[(0,b.jsx)(D,{ref:t,className:(0,a.Z)(tt.root,g),ownerState:te,...eH(eE),children:eC({id:eG,disabled:T,fullWidth:!0,size:"small"===ej?"small":void 0,InputLabelProps:eB(),InputProps:{ref:e1,className:tt.inputRoot,startAdornment:r,onMouseDown:e=>{e.target===e.currentTarget&&e9(e)},...(e5||e6)&&{endAdornment:(0,b.jsxs)(I,{className:tt.endAdornment,ownerState:te,children:[e5?(0,b.jsx)(W,{...eV(),"aria-label":w,title:w,ownerState:te,...td,className:(0,a.Z)(tt.clearIndicator,td?.className),children:v}):null,e6?(0,b.jsx)(E,{...eF(),disabled:T,"aria-label":eK?O:eO,title:eK?O:eO,ownerState:te,...tf,className:(0,a.Z)(tt.popupIndicator,tf?.className),children:eR}):null]})}},inputProps:{className:tt.input,disabled:T,readOnly:eM,...eN()}})}),e0?(0,b.jsx)(H,{as:tl,...ts,children:(0,b.jsxs)(N,{as:ti,...ta,children:[ed&&0===e4.length?(0,b.jsx)(B,{className:tt.loading,ownerState:te,children:ef}):null,0!==e4.length||K||ed?null:(0,b.jsx)(F,{className:tt.noOptions,ownerState:te,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:eh}),e4.length>0?(0,b.jsx)(to,{as:ec,...tn,children:e4.map((e,t)=>en?tp({key:e.key,group:e.group,children:e.options.map((t,r)=>tu(t,e.index+r))}):tu(e,t))}):null]})}):null]})})},82707:function(e,t,r){"use strict";r.d(t,{Z:()=>C});var o=r(54538),n=r(90496),i=r(82267),a=r(16838),l=r(99140),s=r(90247),p=r(24246);let c=(0,s.Z)((0,p.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),u=(0,s.Z)((0,p.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),d=(0,s.Z)((0,p.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var f=r(51640),m=r(73037),h=r(44124),g=r(6749);function v(e){return(0,g.ZP)("MuiCheckbox",e)}let b=(0,h.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var y=r(12709),x=r(82319),w=r(90433),Z=r(51751),O=r(27834),P=r(16351);let $=e=>{let{classes:t,indeterminate:r,color:o,size:n}=e,a={root:["root",r&&"indeterminate",`color${(0,f.Z)(o)}`,`size${(0,f.Z)(n)}`]},l=(0,i.Z)(a,v,t);return{...t,...l}},k=(0,y.ZP)(l.Z,{shouldForwardProp:e=>(0,m.Z)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,f.Z)(r.size)}`],"default"!==r.color&&t[`color${(0,f.Z)(r.color)}`]]}})((0,x.Z)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,a.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,w.Z)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,a.Fq)(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,w.Z)()).map(([t])=>({props:{color:t},style:{[`&.${b.checked}, &.${b.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${b.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),R=(0,p.jsx)(u,{}),M=(0,p.jsx)(c,{}),S=(0,p.jsx)(d,{}),C=o.forwardRef(function(e,t){let r=(0,Z.i)({props:e,name:"MuiCheckbox"}),{checkedIcon:i=R,color:a="primary",icon:l=M,indeterminate:s=!1,indeterminateIcon:c=S,inputProps:u,size:d="medium",disableRipple:f=!1,className:m,slots:h={},slotProps:g={},...v}=r,b=s?c:l,y=s?c:i,x={...r,disableRipple:f,color:a,indeterminate:s,size:d},w=$(x),C=g.input??u,[T,A]=(0,P.Z)("root",{ref:t,elementType:k,className:(0,n.Z)(w.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:g,...v},ownerState:x,additionalProps:{type:"checkbox",icon:o.cloneElement(b,{fontSize:b.props.fontSize??d}),checkedIcon:o.cloneElement(y,{fontSize:y.props.fontSize??d}),disableRipple:f,slots:h,slotProps:{input:(0,O.Z)("function"==typeof C?C(x):C,{"data-indeterminate":s})}}});return(0,p.jsx)(T,{...A,classes:w})})},56873:function(e,t,r){"use strict";r.d(t,{Z:()=>M});var o=r(54538),n=r(90496),i=r(82267),a=r(5056),l=r(51640),s=r(49106),p=r(69761),c=r(28866),u=r(44124),d=r(6749);function f(e){return(0,d.ZP)("MuiDialog",e)}let m=(0,u.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var h=r(56484),g=r(19090),v=r(12709),b=r(94776),y=r(82319),x=r(51751),w=r(16351),Z=r(24246);let O=(0,v.ZP)(g.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),P=e=>{let{classes:t,scroll:r,maxWidth:o,fullWidth:n,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${(0,l.Z)(r)}`],paper:["paper",`paperScroll${(0,l.Z)(r)}`,`paperWidth${(0,l.Z)(String(o))}`,n&&"paperFullWidth",a&&"paperFullScreen"]};return(0,i.Z)(s,f,t)},$=(0,v.ZP)(s.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),k=(0,v.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.container,t[`scroll${(0,l.Z)(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),R=(0,v.ZP)(c.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t[`scrollPaper${(0,l.Z)(r.scroll)}`],t[`paperWidth${(0,l.Z)(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((0,y.Z)(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${m.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(e=>"xs"!==e).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${m.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${m.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),M=o.forwardRef(function(e,t){let r=(0,x.i)({props:e,name:"MuiDialog"}),i=(0,b.Z)(),l={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":u,"aria-modal":d=!0,BackdropComponent:f,BackdropProps:m,children:g,className:v,disableEscapeKeyDown:y=!1,fullScreen:M=!1,fullWidth:S=!1,maxWidth:C="sm",onBackdropClick:T,onClick:A,onClose:L,open:j,PaperComponent:D=c.Z,PaperProps:I={},scroll:W="paper",slots:E={},slotProps:H={},TransitionComponent:N=p.Z,transitionDuration:B=l,TransitionProps:F,...V}=r,z={...r,disableEscapeKeyDown:y,fullScreen:M,fullWidth:S,maxWidth:C,scroll:W},q=P(z),U=o.useRef(),_=(0,a.Z)(u),X=o.useMemo(()=>({titleId:_}),[_]),Y={slots:{transition:N,...E},slotProps:{transition:F,paper:I,backdrop:m,...H}},[G,K]=(0,w.Z)("root",{elementType:$,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:z,className:(0,n.Z)(q.root,v),ref:t}),[Q,J]=(0,w.Z)("backdrop",{elementType:O,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:z}),[ee,et]=(0,w.Z)("paper",{elementType:R,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:z,className:(0,n.Z)(q.paper,I.className)}),[er,eo]=(0,w.Z)("container",{elementType:k,externalForwardedProps:Y,ownerState:z,className:(0,n.Z)(q.container)}),[en,ei]=(0,w.Z)("transition",{elementType:p.Z,externalForwardedProps:Y,ownerState:z,additionalProps:{appear:!0,in:j,timeout:B,role:"presentation"}});return(0,Z.jsx)(G,{closeAfterTransition:!0,slots:{backdrop:Q},slotProps:{backdrop:{transitionDuration:B,as:f,...J}},disableEscapeKeyDown:y,onClose:L,open:j,onClick:e=>{A&&A(e),U.current&&(U.current=null,T&&T(e),L&&L(e,"backdropClick"))},...K,...V,children:(0,Z.jsx)(en,{...ei,children:(0,Z.jsx)(er,{onMouseDown:e=>{U.current=e.target===e.currentTarget},...eo,children:(0,Z.jsx)(ee,{as:D,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":_,"aria-modal":d,...et,children:(0,Z.jsx)(h.Z.Provider,{value:X,children:g})})})})})})},56484:function(e,t,r){"use strict";r.d(t,{Z:()=>o});let o=r(54538).createContext({})},70616:function(e,t,r){"use strict";r.d(t,{Z:()=>m});var o=r(54538),n=r(90496),i=r(82267),a=r(12709),l=r(51751),s=r(44124),p=r(6749);function c(e){return(0,p.ZP)("MuiDialogActions",e)}(0,s.Z)("MuiDialogActions",["root","spacing"]);var u=r(24246);let d=e=>{let{classes:t,disableSpacing:r}=e;return(0,i.Z)({root:["root",!r&&"spacing"]},c,t)},f=(0,a.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),m=o.forwardRef(function(e,t){let r=(0,l.i)({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,s={...r,disableSpacing:i},p=d(s);return(0,u.jsx)(f,{className:(0,n.Z)(p.root,o),ownerState:s,ref:t,...a})})},19978:function(e,t,r){"use strict";r.d(t,{Z:()=>g});var o=r(54538),n=r(90496),i=r(82267),a=r(12709),l=r(82319),s=r(51751),p=r(44124),c=r(6749);function u(e){return(0,c.ZP)("MuiDialogContent",e)}(0,p.Z)("MuiDialogContent",["root","dividers"]);var d=r(30138),f=r(24246);let m=e=>{let{classes:t,dividers:r}=e;return(0,i.Z)({root:["root",r&&"dividers"]},u,t)},h=(0,a.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((0,l.Z)(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${d.Z.root} + &`]:{paddingTop:0}}}]}))),g=o.forwardRef(function(e,t){let r=(0,s.i)({props:e,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,l={...r,dividers:i},p=m(l);return(0,f.jsx)(h,{className:(0,n.Z)(p.root,o),ownerState:l,ref:t,...a})})},51602:function(e,t,r){"use strict";r.d(t,{Z:()=>m});var o=r(54538),n=r(90496),i=r(82267),a=r(52054),l=r(12709),s=r(51751),p=r(30138),c=r(56484),u=r(24246);let d=e=>{let{classes:t}=e;return(0,i.Z)({root:["root"]},p.a,t)},f=(0,l.ZP)(a.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),m=o.forwardRef(function(e,t){let r=(0,s.i)({props:e,name:"MuiDialogTitle"}),{className:i,id:a,...l}=r,p=d(r),{titleId:m=a}=o.useContext(c.Z);return(0,u.jsx)(f,{component:"h2",className:(0,n.Z)(p.root,i),ownerState:r,ref:t,variant:"h6",id:a??m,...l})})},30138:function(e,t,r){"use strict";r.d(t,{Z:()=>a,a:()=>i});var o=r(44124),n=r(6749);function i(e){return(0,n.ZP)("MuiDialogTitle",e)}let a=(0,o.Z)("MuiDialogTitle",["root"])},757:function(e,t,r){"use strict";r.d(t,{Z:()=>a,w:()=>i});var o=r(44124),n=r(6749);function i(e){return(0,n.ZP)("MuiLink",e)}let a=(0,o.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"])},75651:function(e,t,r){"use strict";r.d(t,{Z:()=>eC});var o,n,i,a,l,s=r(6595),p=r(54538),c=r(97048),u=r(96858),d=r(80668);function f(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function m(e){var t=f(e).Element;return e instanceof t||e instanceof Element}function h(e){var t=f(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function g(e){if("undefined"==typeof ShadowRoot)return!1;var t=f(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var v=Math.max,b=Math.min,y=Math.round;function x(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function w(){return!/^((?!chrome|android).)*safari/i.test(x())}function Z(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=e.getBoundingClientRect(),n=1,i=1;t&&h(e)&&(n=e.offsetWidth>0&&y(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&y(o.height)/e.offsetHeight||1);var a=(m(e)?f(e):window).visualViewport,l=!w()&&r,s=(o.left+(l&&a?a.offsetLeft:0))/n,p=(o.top+(l&&a?a.offsetTop:0))/i,c=o.width/n,u=o.height/i;return{width:c,height:u,top:p,right:s+c,bottom:p+u,left:s,x:s,y:p}}function O(e){var t=f(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function P(e){return e?(e.nodeName||"").toLowerCase():null}function $(e){return((m(e)?e.ownerDocument:e.document)||window.document).documentElement}function k(e){return Z($(e)).left+O(e).scrollLeft}function R(e){return f(e).getComputedStyle(e)}function M(e){var t=R(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function S(e){var t=Z(e),r=e.offsetWidth,o=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-o)&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function C(e){return"html"===P(e)?e:e.assignedSlot||e.parentNode||(g(e)?e.host:null)||$(e)}function T(e,t){void 0===t&&(t=[]);var r,o=function e(t){return["html","body","#document"].indexOf(P(t))>=0?t.ownerDocument.body:h(t)&&M(t)?t:e(C(t))}(e),n=o===(null==(r=e.ownerDocument)?void 0:r.body),i=f(o),a=n?[i].concat(i.visualViewport||[],M(o)?o:[]):o,l=t.concat(a);return n?l:l.concat(T(C(a)))}function A(e){return h(e)&&"fixed"!==R(e).position?e.offsetParent:null}function L(e){for(var t=f(e),r=A(e);r&&["table","td","th"].indexOf(P(r))>=0&&"static"===R(r).position;)r=A(r);return r&&("html"===P(r)||"body"===P(r)&&"static"===R(r).position)?t:r||function(e){var t=/firefox/i.test(x());if(/Trident/i.test(x())&&h(e)&&"fixed"===R(e).position)return null;var r=C(e);for(g(r)&&(r=r.host);h(r)&&0>["html","body"].indexOf(P(r));){var o=R(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(e)||t}var j="bottom",D="right",I="left",W="auto",E=["top",j,D,I],H="start",N="viewport",B="popper",F=E.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),V=[].concat(E,[W]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],q={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var _={passive:!0};function X(e){return e.split("-")[0]}function Y(e){return e.split("-")[1]}function G(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e){var t,r=e.reference,o=e.element,n=e.placement,i=n?X(n):null,a=n?Y(n):null,l=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2;switch(i){case"top":t={x:l,y:r.y-o.height};break;case j:t={x:l,y:r.y+r.height};break;case D:t={x:r.x+r.width,y:s};break;case I:t={x:r.x-o.width,y:s};break;default:t={x:r.x,y:r.y}}var p=i?G(i):null;if(null!=p){var c="y"===p?"height":"width";switch(a){case H:t[p]=t[p]-(r[c]/2-o[c]/2);break;case"end":t[p]=t[p]+(r[c]/2-o[c]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,r,o,n,i,a,l,s=e.popper,p=e.popperRect,c=e.placement,u=e.variation,d=e.offsets,m=e.position,h=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,b=e.isFixed,x=d.x,w=void 0===x?0:x,Z=d.y,O=void 0===Z?0:Z,P="function"==typeof v?v({x:w,y:O}):{x:w,y:O};w=P.x,O=P.y;var k=d.hasOwnProperty("x"),M=d.hasOwnProperty("y"),S=I,C="top",T=window;if(g){var A=L(s),W="clientHeight",E="clientWidth";A===f(s)&&"static"!==R(A=$(s)).position&&"absolute"===m&&(W="scrollHeight",E="scrollWidth"),("top"===c||(c===I||c===D)&&"end"===u)&&(C=j,O-=(b&&A===T&&T.visualViewport?T.visualViewport.height:A[W])-p.height,O*=h?1:-1),(c===I||("top"===c||c===j)&&"end"===u)&&(S=D,w-=(b&&A===T&&T.visualViewport?T.visualViewport.width:A[E])-p.width,w*=h?1:-1)}var H=Object.assign({position:m},g&&Q),N=!0===v?(t={x:w,y:O},r=f(s),o=t.x,n=t.y,{x:y(o*(i=r.devicePixelRatio||1))/i||0,y:y(n*i)/i||0}):{x:w,y:O};return(w=N.x,O=N.y,h)?Object.assign({},H,((l={})[C]=M?"0":"",l[S]=k?"0":"",l.transform=1>=(T.devicePixelRatio||1)?"translate("+w+"px, "+O+"px)":"translate3d("+w+"px, "+O+"px, 0)",l)):Object.assign({},H,((a={})[C]=M?O+"px":"",a[S]=k?w+"px":"",a.transform="",a))}var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function et(e){return e.replace(/left|right|bottom|top/g,function(e){return ee[e]})}var er={start:"end",end:"start"};function eo(e){return e.replace(/start|end/g,function(e){return er[e]})}function en(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&g(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ei(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,r){var o,n,i,a,l,s,p,c,u,d;return t===N?ei(function(e,t){var r=f(e),o=$(e),n=r.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(n){i=n.width,a=n.height;var p=w();(p||!p&&"fixed"===t)&&(l=n.offsetLeft,s=n.offsetTop)}return{width:i,height:a,x:l+k(e),y:s}}(e,r)):m(t)?((o=Z(t,!1,"fixed"===r)).top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o):ei((n=$(e),a=$(n),l=O(n),s=null==(i=n.ownerDocument)?void 0:i.body,p=v(a.scrollWidth,a.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=v(a.scrollHeight,a.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),u=-l.scrollLeft+k(n),d=-l.scrollTop,"rtl"===R(s||a).direction&&(u+=v(a.clientWidth,s?s.clientWidth:0)-p),{width:p,height:c,x:u,y:d}))}function el(){return{top:0,right:0,bottom:0,left:0}}function es(e){return Object.assign({},el(),e)}function ep(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function ec(e,t){void 0===t&&(t={});var r,o,n,i,a,l,s,p,c=t,u=c.placement,d=void 0===u?e.placement:u,f=c.strategy,g=void 0===f?e.strategy:f,y=c.boundary,x=c.rootBoundary,w=c.elementContext,O=void 0===w?B:w,k=c.altBoundary,M=c.padding,S=void 0===M?0:M,A=es("number"!=typeof S?S:ep(S,E)),I=e.rects.popper,W=e.elements[void 0!==k&&k?O===B?"reference":B:O],H=(r=m(W)?W:W.contextElement||$(e.elements.popper),o=void 0===y?"clippingParents":y,n=void 0===x?N:x,s=(l=[].concat("clippingParents"===o?(i=T(C(r)),m(a=["absolute","fixed"].indexOf(R(r).position)>=0&&h(r)?L(r):r)?i.filter(function(e){return m(e)&&en(e,a)&&"body"!==P(e)}):[]):[].concat(o),[n]))[0],(p=l.reduce(function(e,t){var o=ea(r,t,g);return e.top=v(o.top,e.top),e.right=b(o.right,e.right),e.bottom=b(o.bottom,e.bottom),e.left=v(o.left,e.left),e},ea(r,s,g))).width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p),F=Z(e.elements.reference),V=K({reference:F,element:I,strategy:"absolute",placement:d}),z=ei(Object.assign({},I,V)),q=O===B?z:F,U={top:H.top-q.top+A.top,bottom:q.bottom-H.bottom+A.bottom,left:H.left-q.left+A.left,right:q.right-H.right+A.right},_=e.modifiersData.offset;if(O===B&&_){var X=_[d];Object.keys(U).forEach(function(e){var t=[D,j].indexOf(e)>=0?1:-1,r=["top",j].indexOf(e)>=0?"y":"x";U[e]+=X[r]*t})}return U}function eu(e,t,r){return v(e,b(t,r))}function ed(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ef(e){return["top",D,j,I].some(function(t){return e[t]>=0})}var em=(i=void 0===(n=(o={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,i=void 0===n||n,a=o.resize,l=void 0===a||a,s=f(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach(function(e){e.addEventListener("scroll",r.update,_)}),l&&s.addEventListener("resize",r.update,_),function(){i&&p.forEach(function(e){e.removeEventListener("scroll",r.update,_)}),l&&s.removeEventListener("resize",r.update,_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=r.adaptive,i=r.roundOffsets,a=void 0===i||i,l={placement:X(t.placement),variation:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===o||o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,J(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===n||n,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,J(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},o=t.attributes[e]||{},n=t.elements[e];h(n)&&P(n)&&(Object.assign(n.style,r),Object.keys(o).forEach(function(e){var t=o[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],n=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});h(o)&&P(o)&&(Object.assign(o.style,i),Object.keys(n).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.offset,i=void 0===n?[0,0]:n,a=V.reduce(function(e,r){var o,n,a,l,s,p;return e[r]=(o=t.rects,a=[I,"top"].indexOf(n=X(r))>=0?-1:1,s=(l="function"==typeof i?i(Object.assign({},o,{placement:r})):i)[0],p=l[1],s=s||0,p=(p||0)*a,[I,D].indexOf(n)>=0?{x:p,y:s}:{x:s,y:p}),e},{}),l=a[t.placement],s=l.x,p=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=p),t.modifiersData[o]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,i=void 0===n||n,a=r.altAxis,l=void 0===a||a,s=r.fallbackPlacements,p=r.padding,c=r.boundary,u=r.rootBoundary,d=r.altBoundary,f=r.flipVariations,m=void 0===f||f,h=r.allowedAutoPlacements,g=t.options.placement,v=X(g)===g,b=s||(v||!m?[et(g)]:function(e){if(X(e)===W)return[];var t=et(e);return[eo(e),t,eo(t)]}(g)),y=[g].concat(b).reduce(function(e,r){var o,n,i,a,l,s,d,f,g,v,b,y;return e.concat(X(r)===W?(n=(o={placement:r,boundary:c,rootBoundary:u,padding:p,flipVariations:m,allowedAutoPlacements:h}).placement,i=o.boundary,a=o.rootBoundary,l=o.padding,s=o.flipVariations,f=void 0===(d=o.allowedAutoPlacements)?V:d,0===(b=(v=(g=Y(n))?s?F:F.filter(function(e){return Y(e)===g}):E).filter(function(e){return f.indexOf(e)>=0})).length&&(b=v),Object.keys(y=b.reduce(function(e,r){return e[r]=ec(t,{placement:r,boundary:i,rootBoundary:a,padding:l})[X(r)],e},{})).sort(function(e,t){return y[e]-y[t]})):r)},[]),x=t.rects.reference,w=t.rects.popper,Z=new Map,O=!0,P=y[0],$=0;$<y.length;$++){var k=y[$],R=X(k),M=Y(k)===H,S=["top",j].indexOf(R)>=0,C=S?"width":"height",T=ec(t,{placement:k,boundary:c,rootBoundary:u,altBoundary:d,padding:p}),A=S?M?D:I:M?j:"top";x[C]>w[C]&&(A=et(A));var L=et(A),N=[];if(i&&N.push(T[R]<=0),l&&N.push(T[A]<=0,T[L]<=0),N.every(function(e){return e})){P=k,O=!1;break}Z.set(k,N)}if(O)for(var B=m?3:1,z=function(e){var t=y.find(function(t){var r=Z.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return P=t,"break"},q=B;q>0&&"break"!==z(q);q--);t.placement!==P&&(t.modifiersData[o]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,i=r.altAxis,a=r.boundary,l=r.rootBoundary,s=r.altBoundary,p=r.padding,c=r.tether,u=void 0===c||c,d=r.tetherOffset,f=void 0===d?0:d,m=ec(t,{boundary:a,rootBoundary:l,padding:p,altBoundary:s}),h=X(t.placement),g=Y(t.placement),y=!g,x=G(h),w="x"===x?"y":"x",Z=t.modifiersData.popperOffsets,O=t.rects.reference,P=t.rects.popper,$="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,k="number"==typeof $?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(Z){if(void 0===n||n){var C,T="y"===x?"top":I,A="y"===x?j:D,W="y"===x?"height":"width",E=Z[x],N=E+m[T],B=E-m[A],F=u?-P[W]/2:0,V=g===H?O[W]:P[W],z=g===H?-P[W]:-O[W],q=t.elements.arrow,U=u&&q?S(q):{width:0,height:0},_=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),K=_[T],Q=_[A],J=eu(0,O[W],U[W]),ee=y?O[W]/2-F-J-K-k.mainAxis:V-J-K-k.mainAxis,et=y?-O[W]/2+F+J+Q+k.mainAxis:z+J+Q+k.mainAxis,er=t.elements.arrow&&L(t.elements.arrow),eo=er?"y"===x?er.clientTop||0:er.clientLeft||0:0,en=null!=(C=null==R?void 0:R[x])?C:0,ei=eu(u?b(N,E+ee-en-eo):N,E,u?v(B,E+et-en):B);Z[x]=ei,M[x]=ei-E}if(void 0!==i&&i){var ea,es,ep="x"===x?"top":I,ed="x"===x?j:D,ef=Z[w],em="y"===w?"height":"width",eh=ef+m[ep],eg=ef-m[ed],ev=-1!==["top",I].indexOf(h),eb=null!=(es=null==R?void 0:R[w])?es:0,ey=ev?eh:ef-O[em]-P[em]-eb+k.altAxis,ex=ev?ef+O[em]+P[em]-eb-k.altAxis:eg,ew=u&&ev?(ea=eu(ey,ef,ex))>ex?ex:ea:eu(u?ey:eh,ef,u?ex:eg);Z[w]=ew,M[w]=ew-ef}t.modifiersData[o]=M}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,o=e.state,n=e.name,i=e.options,a=o.elements.arrow,l=o.modifiersData.popperOffsets,s=X(o.placement),p=G(s),c=[I,D].indexOf(s)>=0?"height":"width";if(a&&l){var u=es("number"!=typeof(t="function"==typeof(t=i.padding)?t(Object.assign({},o.rects,{placement:o.placement})):t)?t:ep(t,E)),d=S(a),f="y"===p?"top":I,m="y"===p?j:D,h=o.rects.reference[c]+o.rects.reference[p]-l[p]-o.rects.popper[c],g=l[p]-o.rects.reference[p],v=L(a),b=v?"y"===p?v.clientHeight||0:v.clientWidth||0:0,y=u[f],x=b-d[c]-u[m],w=b/2-d[c]/2+(h/2-g/2),Z=eu(y,w,x);o.modifiersData[n]=((r={})[p]=Z,r.centerOffset=Z-w,r)}},effect:function(e){var t=e.state,r=e.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&en(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,i=t.modifiersData.preventOverflow,a=ec(t,{elementContext:"reference"}),l=ec(t,{altBoundary:!0}),s=ed(a,o),p=ed(l,n,i),c=ef(s),u=ef(p);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:p,isReferenceHidden:c,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":u})}}]}).defaultModifiers)?[]:n,l=void 0===(a=o.defaultOptions)?q:a,function(e,t,r){void 0===r&&(r=l);var o,n,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},q,l),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],p=!1,c={state:a,setOptions:function(r){var o,n,p,d,f,h,g="function"==typeof r?r(a.options):r;u(),a.options=Object.assign({},l,a.options,g),a.scrollParents={reference:m(e)?T(e):e.contextElement?T(e.contextElement):[],popper:T(t)};var v=(n=Object.keys(o=[].concat(i,a.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return o[e]}),p=new Map,d=new Set,f=[],n.forEach(function(e){p.set(e.name,e)}),n.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var r=p.get(t);r&&e(r)}}),f.push(t)}(e)}),h=f,z.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=v.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,o=e.effect;if("function"==typeof o){var n=o({state:a,name:t,instance:c,options:void 0===r?{}:r});s.push(n||function(){})}}),c.update()},forceUpdate:function(){if(!p){var e,t,r,o,n,i,l,s,u,d,m,g=a.elements,v=g.reference,b=g.popper;if(U(v,b)){a.rects={reference:(e=L(b),t="fixed"===a.options.strategy,r=h(e),l=h(e)&&(n=y((o=e.getBoundingClientRect()).width)/e.offsetWidth||1,i=y(o.height)/e.offsetHeight||1,1!==n||1!==i),s=$(e),u=Z(v,l,t),d={scrollLeft:0,scrollTop:0},m={x:0,y:0},(r||!r&&!t)&&(("body"!==P(e)||M(s))&&(d=function(e){return e!==f(e)&&h(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:O(e)}(e)),h(e)?(m=Z(e,!0),m.x+=e.clientLeft,m.y+=e.clientTop):s&&(m.x=k(s))),{x:u.left+d.scrollLeft-m.x,y:u.top+d.scrollTop-m.y,width:u.width,height:u.height}),popper:S(b)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var x=0;x<a.orderedModifiers.length;x++){if(!0===a.reset){a.reset=!1,x=-1;continue}var w=a.orderedModifiers[x],R=w.fn,C=w.options,T=void 0===C?{}:C,A=w.name;"function"==typeof R&&(a=R({state:a,options:T,name:A,instance:c})||a)}}}},update:(o=function(){return new Promise(function(e){c.forceUpdate(),e(a)})},function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(o())})})),n}),destroy:function(){u(),p=!0}};if(!U(e,t))return c;function u(){s.forEach(function(e){return e()}),s=[]}return c.setOptions(r).then(function(e){!p&&r.onFirstUpdate&&r.onFirstUpdate(e)}),c}),eh=r(82267),eg=r(25399),ev=r(7444),eb=r(44124),ey=r(6749);function ex(e){return(0,ey.ZP)("MuiPopper",e)}(0,eb.Z)("MuiPopper",["root"]);var ew=r(24246);function eZ(e){return"function"==typeof e?e():e}let eO=e=>{let{classes:t}=e;return(0,eh.Z)({root:["root"]},ex,t)},eP={},e$=p.forwardRef(function(e,t){let{anchorEl:r,children:o,direction:n,disablePortal:i,modifiers:a,open:l,placement:s,popperOptions:d,popperRef:f,slotProps:m={},slots:h={},TransitionProps:g,ownerState:v,...b}=e,y=p.useRef(null),x=(0,c.Z)(y,t),w=p.useRef(null),Z=(0,c.Z)(w,f),O=p.useRef(Z);(0,u.Z)(()=>{O.current=Z},[Z]),p.useImperativeHandle(f,()=>w.current,[]);let P=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(s,n),[$,k]=p.useState(P),[R,M]=p.useState(eZ(r));p.useEffect(()=>{w.current&&w.current.forceUpdate()}),p.useEffect(()=>{r&&M(eZ(r))},[r]),(0,u.Z)(()=>{if(!R||!l)return;let e=e=>{k(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=a&&(t=t.concat(a)),d&&null!=d.modifiers&&(t=t.concat(d.modifiers));let r=em(R,y.current,{placement:P,...d,modifiers:t});return O.current(r),()=>{r.destroy(),O.current(null)}},[R,i,a,l,d,P]);let S={placement:$};null!==g&&(S.TransitionProps=g);let C=eO(e),T=h.root??"div",A=(0,eg.Z)({elementType:T,externalSlotProps:m.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:x},ownerState:e,className:C.root});return(0,ew.jsx)(T,{...A,children:"function"==typeof o?o(S):o})}),ek=p.forwardRef(function(e,t){let r;let{anchorEl:o,children:n,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:s=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:m=eP,popperRef:h,style:g,transition:v=!1,slotProps:b={},slots:y={},...x}=e,[w,Z]=p.useState(!0);if(!s&&!u&&(!v||w))return null;if(i)r=i;else if(o){let e=eZ(o);r=e&&void 0!==e.nodeType?(0,d.Z)(e).body:(0,d.Z)(null).body}let O=!u&&s&&(!v||w)?"none":void 0,P=v?{in:u,onEnter:()=>{Z(!1)},onExited:()=>{Z(!0)}}:void 0;return(0,ew.jsx)(ev.Z,{disablePortal:l,container:r,children:(0,ew.jsx)(e$,{anchorEl:o,direction:a,disablePortal:l,modifiers:c,ref:t,open:v?!w:u,placement:f,popperOptions:m,popperRef:h,slotProps:b,slots:y,...x,style:{position:"fixed",top:0,left:0,display:O,...g},TransitionProps:P,children:n})})});var eR=r(12709),eM=r(51751);let eS=(0,eR.ZP)(ek,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eC=p.forwardRef(function(e,t){let r=(0,s.V)(),{anchorEl:o,component:n,components:i,componentsProps:a,container:l,disablePortal:p,keepMounted:c,modifiers:u,open:d,placement:f,popperOptions:m,popperRef:h,transition:g,slots:v,slotProps:b,...y}=(0,eM.i)({props:e,name:"MuiPopper"}),x=v?.root??i?.Root,w={anchorEl:o,container:l,disablePortal:p,keepMounted:c,modifiers:u,open:d,placement:f,popperOptions:m,popperRef:h,transition:g,...y};return(0,ew.jsx)(eS,{as:n,direction:r?"rtl":"ltr",slots:{root:x},slotProps:b??a,...w,ref:t})})},66224:function(e,t,r){"use strict";r.d(t,{Z:()=>w});var o=r(54538),n=r(90496),i=r(82267),a=r(16838),l=r(72116),s=r(12709),p=r(82319),c=r(51751),u=r(44124),d=r(6749);function f(e){return(0,d.ZP)("MuiSkeleton",e)}(0,u.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var m=r(24246);let h=e=>{let{classes:t,variant:r,animation:o,hasChildren:n,width:a,height:l}=e;return(0,i.Z)({root:["root",r,o,n&&"withChildren",n&&!a&&"fitContent",n&&!l&&"heightAuto"]},f,t)},g=(0,l.keyframes)`
|
|
2
|
-
0% {
|
|
3
|
-
opacity: 1;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
50% {
|
|
7
|
-
opacity: 0.4;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
100% {
|
|
11
|
-
opacity: 1;
|
|
12
|
-
}
|
|
13
|
-
`,v=(0,l.keyframes)`
|
|
14
|
-
0% {
|
|
15
|
-
transform: translateX(-100%);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
50% {
|
|
19
|
-
/* +0.5s of delay between each loop */
|
|
20
|
-
transform: translateX(100%);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
100% {
|
|
24
|
-
transform: translateX(100%);
|
|
25
|
-
}
|
|
26
|
-
`,b="string"!=typeof g?(0,l.css)`
|
|
27
|
-
animation: ${g} 2s ease-in-out 0.5s infinite;
|
|
28
|
-
`:null,y="string"!=typeof v?(0,l.css)`
|
|
29
|
-
&::after {
|
|
30
|
-
animation: ${v} 2s linear 0.5s infinite;
|
|
31
|
-
}
|
|
32
|
-
`:null,x=(0,s.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((0,p.Z)(({theme:e})=>{let t=String(e.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",r=parseFloat(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,a.Fq)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${t}/${Math.round(r/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:b||{animation:`${g} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
|
|
33
|
-
90deg,
|
|
34
|
-
transparent,
|
|
35
|
-
${(e.vars||e).palette.action.hover},
|
|
36
|
-
transparent
|
|
37
|
-
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:y||{"&::after":{animation:`${v} 2s linear 0.5s infinite`}}}]}})),w=o.forwardRef(function(e,t){let r=(0,c.i)({props:e,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:l,style:s,variant:p="text",width:u,...d}=r,f={...r,animation:o,component:a,variant:p,hasChildren:!!d.children},g=h(f);return(0,m.jsx)(x,{as:a,ref:t,className:(0,n.Z)(g.root,i),ownerState:f,...d,style:{width:u,height:l,...s}})})},59019:function(e,t,r){"use strict";r.d(t,{Z:()=>m});var o=r(54538),n=r(90496),i=r(82267),a=r(12709),l=r(51751),s=r(44124),p=r(6749);function c(e){return(0,p.ZP)("MuiTableContainer",e)}(0,s.Z)("MuiTableContainer",["root"]);var u=r(24246);let d=e=>{let{classes:t}=e;return(0,i.Z)({root:["root"]},c,t)},f=(0,a.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),m=o.forwardRef(function(e,t){let r=(0,l.i)({props:e,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=r,s={...r,component:i},p=d(s);return(0,u.jsx)(f,{ref:t,as:i,className:(0,n.Z)(p.root,o),ownerState:s,...a})})},32964:function(e,t,r){"use strict";r.d(t,{Z:()=>L});var o=r(54538),n=r(90496),i=r(47126),a=r(82267),l=r(16838),s=r(6595),p=r(74111),c=r(94680),u=r(12709),d=r(94776),f=r(82319),m=r(51751),h=r(51640),g=r(23382),v=r(75651),b=r(67151),y=r(51183),x=r(56839),w=r(18817),Z=r(16351),O=r(87143),P=r(24246);let $=e=>{let{classes:t,disableInteractive:r,arrow:o,touch:n,placement:i}=e,l={popper:["popper",!r&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",n&&"touch",`tooltipPlacement${(0,h.Z)(i.split("-")[0])}`],arrow:["arrow"]};return(0,a.Z)(l,O.Q,t)},k=(0,u.ZP)(v.Z,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((0,f.Z)(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${O.Z.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${O.Z.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${O.Z.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${O.Z.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${O.Z.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${O.Z.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${O.Z.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${O.Z.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),R=(0,u.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,h.Z)(r.placement.split("-")[0])}`]]}})((0,f.Z)(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,l.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${O.Z.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${O.Z.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${O.Z.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${O.Z.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Math.round(16/14*1e5)/1e5}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${O.Z.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${O.Z.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${O.Z.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${O.Z.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${O.Z.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${O.Z.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${O.Z.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${O.Z.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${O.Z.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${O.Z.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),M=(0,u.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((0,f.Z)(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,l.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))),S=!1,C=new i.V,T={x:0,y:0};function A(e,t){return(r,...o)=>{t&&t(r,...o),e(r,...o)}}let L=o.forwardRef(function(e,t){let r=(0,m.i)({props:e,name:"MuiTooltip"}),{arrow:a=!1,children:l,classes:u,components:f={},componentsProps:h={},describeChild:O=!1,disableFocusListener:L=!1,disableHoverListener:j=!1,disableInteractive:D=!1,disableTouchListener:I=!1,enterDelay:W=100,enterNextDelay:E=0,enterTouchDelay:H=700,followCursor:N=!1,id:B,leaveDelay:F=0,leaveTouchDelay:V=1500,onClose:z,onOpen:q,open:U,placement:_="bottom",PopperComponent:X,PopperProps:Y={},slotProps:G={},slots:K={},title:Q,TransitionComponent:J,TransitionProps:ee,...et}=r,er=o.isValidElement(l)?l:(0,P.jsx)("span",{children:l}),eo=(0,d.Z)(),en=(0,s.V)(),[ei,ea]=o.useState(),[el,es]=o.useState(null),ep=o.useRef(!1),ec=D||N,eu=(0,i.Z)(),ed=(0,i.Z)(),ef=(0,i.Z)(),em=(0,i.Z)(),[eh,eg]=(0,w.Z)({controlled:U,default:!1,name:"Tooltip",state:"open"}),ev=eh,eb=(0,x.Z)(B),ey=o.useRef(),ex=(0,b.Z)(()=>{void 0!==ey.current&&(document.body.style.WebkitUserSelect=ey.current,ey.current=void 0),em.clear()});o.useEffect(()=>ex,[ex]);let ew=e=>{C.clear(),S=!0,eg(!0),q&&!ev&&q(e)},eZ=(0,b.Z)(e=>{C.start(800+F,()=>{S=!1}),eg(!1),z&&ev&&z(e),eu.start(eo.transitions.duration.shortest,()=>{ep.current=!1})}),eO=e=>{(!ep.current||"touchstart"===e.type)&&(ei&&ei.removeAttribute("title"),ed.clear(),ef.clear(),W||S&&E?ed.start(S?E:W,()=>{ew(e)}):ew(e))},eP=e=>{ed.clear(),ef.start(F,()=>{eZ(e)})},[,e$]=o.useState(!1),ek=e=>{(0,p.Z)(e.target)||(e$(!1),eP(e))},eR=e=>{ei||ea(e.currentTarget),(0,p.Z)(e.target)&&(e$(!0),eO(e))},eM=e=>{ep.current=!0;let t=er.props;t.onTouchStart&&t.onTouchStart(e)};o.useEffect(()=>{if(ev)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&eZ(e)}},[eZ,ev]);let eS=(0,y.Z)((0,c.Z)(er),ea,t);Q||0===Q||(ev=!1);let eC=o.useRef(),eT={},eA="string"==typeof Q;O?(eT.title=ev||!eA||j?null:Q,eT["aria-describedby"]=ev?eb:null):(eT["aria-label"]=eA?Q:null,eT["aria-labelledby"]=ev&&!eA?eb:null);let eL={...eT,...et,...er.props,className:(0,n.Z)(et.className,er.props.className),onTouchStart:eM,ref:eS,...N?{onMouseMove:e=>{let t=er.props;t.onMouseMove&&t.onMouseMove(e),T={x:e.clientX,y:e.clientY},eC.current&&eC.current.update()}}:{}},ej={};I||(eL.onTouchStart=e=>{eM(e),ef.clear(),eu.clear(),ex(),ey.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",em.start(H,()=>{document.body.style.WebkitUserSelect=ey.current,eO(e)})},eL.onTouchEnd=e=>{er.props.onTouchEnd&&er.props.onTouchEnd(e),ex(),ef.start(V,()=>{eZ(e)})}),j||(eL.onMouseOver=A(eO,eL.onMouseOver),eL.onMouseLeave=A(eP,eL.onMouseLeave),ec||(ej.onMouseOver=eO,ej.onMouseLeave=eP)),L||(eL.onFocus=A(eR,eL.onFocus),eL.onBlur=A(ek,eL.onBlur),ec||(ej.onFocus=eR,ej.onBlur=ek));let eD={...r,isRtl:en,arrow:a,disableInteractive:ec,placement:_,PopperComponentProp:X,touch:ep.current},eI="function"==typeof G.popper?G.popper(eD):G.popper,eW=o.useMemo(()=>{let e=[{name:"arrow",enabled:!!el,options:{element:el,padding:4}}];return Y.popperOptions?.modifiers&&(e=e.concat(Y.popperOptions.modifiers)),eI?.popperOptions?.modifiers&&(e=e.concat(eI.popperOptions.modifiers)),{...Y.popperOptions,...eI?.popperOptions,modifiers:e}},[el,Y.popperOptions,eI?.popperOptions]),eE=$(eD),eH="function"==typeof G.transition?G.transition(eD):G.transition,eN={slots:{popper:f.Popper,transition:f.Transition??J,tooltip:f.Tooltip,arrow:f.Arrow,...K},slotProps:{arrow:G.arrow??h.arrow,popper:{...Y,...eI??h.popper},tooltip:G.tooltip??h.tooltip,transition:{...ee,...eH??h.transition}}},[eB,eF]=(0,Z.Z)("popper",{elementType:k,externalForwardedProps:eN,ownerState:eD,className:(0,n.Z)(eE.popper,Y?.className)}),[eV,ez]=(0,Z.Z)("transition",{elementType:g.Z,externalForwardedProps:eN,ownerState:eD}),[eq,eU]=(0,Z.Z)("tooltip",{elementType:R,className:eE.tooltip,externalForwardedProps:eN,ownerState:eD}),[e_,eX]=(0,Z.Z)("arrow",{elementType:M,className:eE.arrow,externalForwardedProps:eN,ownerState:eD,ref:es});return(0,P.jsxs)(o.Fragment,{children:[o.cloneElement(er,eL),(0,P.jsx)(eB,{as:X??v.Z,placement:_,anchorEl:N?{getBoundingClientRect:()=>({top:T.y,left:T.x,right:T.x,bottom:T.y,width:0,height:0})}:ei,popperRef:eC,open:!!ei&&ev,id:eb,transition:!0,...ej,...eF,popperOptions:eW,children:({TransitionProps:e})=>(0,P.jsx)(eV,{timeout:eo.transitions.duration.shorter,...e,...ez,children:(0,P.jsxs)(eq,{...eU,children:[Q,a?(0,P.jsx)(e_,{...eX}):null]})})})]})})},87143:function(e,t,r){"use strict";r.d(t,{Q:()=>i,Z:()=>a});var o=r(44124),n=r(6749);function i(e){return(0,n.ZP)("MuiTooltip",e)}let a=(0,o.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"])},57174:function(e,t,r){"use strict";r.d(t,{D:()=>c,Z:()=>h});var o=r(54538),n=r(5056),i=r(9831);let a=e=>{let t=o.useRef({});return o.useEffect(()=>{t.current=e}),t.current};var l=r(81925),s=r(85817);function p(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function c(e={}){let{ignoreAccents:t=!0,ignoreCase:r=!0,limit:o,matchFrom:n="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let c=a?l.trim():l;r&&(c=c.toLowerCase()),t&&(c=p(c));let u=c?e.filter(e=>{let o=(i||s)(e);return r&&(o=o.toLowerCase()),t&&(o=p(o)),"start"===n?o.startsWith(c):o.includes(c)}):e;return"number"==typeof o?u.slice(0,o):u}}let u=c(),d=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),f=[];function m(e,t,r){if(t||null==e)return"";let o=r(e);return"string"==typeof o?o:""}let h=function(e){let{unstable_isActiveElementInListbox:t=d,unstable_classNamePrefix:r="Mui",autoComplete:p=!1,autoHighlight:c=!1,autoSelect:h=!1,blurOnSelect:g=!1,clearOnBlur:v=!e.freeSolo,clearOnEscape:b=!1,componentName:y="useAutocomplete",defaultValue:x=e.multiple?f:null,disableClearable:w=!1,disableCloseOnSelect:Z=!1,disabled:O,disabledItemsFocusable:P=!1,disableListWrap:$=!1,filterOptions:k=u,filterSelectedOptions:R=!1,freeSolo:M=!1,getOptionDisabled:S,getOptionKey:C,getOptionLabel:T=e=>e.label??e,groupBy:A,handleHomeEndKeys:L=!e.freeSolo,id:j,includeInputInList:D=!1,inputValue:I,isOptionEqualToValue:W=(e,t)=>e===t,multiple:E=!1,onChange:H,onClose:N,onHighlightChange:B,onInputChange:F,onOpen:V,open:z,openOnFocus:q=!1,options:U,readOnly:_=!1,selectOnFocus:X=!e.freeSolo,value:Y}=e,G=(0,n.Z)(j),K=T;K=e=>{let t=T(e);return"string"!=typeof t?String(t):t};let Q=o.useRef(!1),J=o.useRef(!0),ee=o.useRef(null),et=o.useRef(null),[er,eo]=o.useState(null),[en,ei]=o.useState(-1),ea=c?0:-1,el=o.useRef(ea),es=o.useRef(m(x,E,K)).current,[ep,ec]=(0,i.Z)({controlled:Y,default:x,name:y}),[eu,ed]=(0,i.Z)({controlled:I,default:es,name:y,state:"inputValue"}),[ef,em]=o.useState(!1),eh=o.useCallback((e,t,r)=>{if(!(E?ep.length<t.length:null!==t)&&!v)return;let o=m(t,E,K);eu!==o&&(ed(o),F&&F(e,o,r))},[K,eu,E,F,ed,v,ep]),[eg,ev]=(0,i.Z)({controlled:z,default:!1,name:y,state:"open"}),[eb,ey]=o.useState(!0),ex=!E&&null!=ep&&eu===K(ep),ew=eg&&!_,eZ=ew?k(U.filter(e=>!(R&&(E?ep:[ep]).some(t=>null!==t&&W(e,t)))),{inputValue:ex&&eb?"":eu,getOptionLabel:K}):[],eO=a({filteredOptions:eZ,value:ep,inputValue:eu});o.useEffect(()=>{let e=ep!==eO.value;(!ef||e)&&(!M||e)&&eh(null,ep,"reset")},[ep,eh,ef,eO.value,M]);let eP=eg&&eZ.length>0&&!_,e$=(0,l.Z)(e=>{-1===e?ee.current.focus():er.querySelector(`[data-tag-index="${e}"]`).focus()});o.useEffect(()=>{E&&en>ep.length-1&&(ei(-1),e$(-1))},[ep,E,en,e$]);let ek=(0,l.Z)(({event:e,index:t,reason:o="auto"})=>{if(el.current=t,-1===t?ee.current.removeAttribute("aria-activedescendant"):ee.current.setAttribute("aria-activedescendant",`${G}-option-${t}`),B&&B(e,-1===t?null:eZ[t],o),!et.current)return;let n=et.current.querySelector(`[role="option"].${r}-focused`);n&&(n.classList.remove(`${r}-focused`),n.classList.remove(`${r}-focusVisible`));let i=et.current;if("listbox"!==et.current.getAttribute("role")&&(i=et.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t){i.scrollTop=0;return}let a=et.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${r}-focused`),"keyboard"===o&&a.classList.add(`${r}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==o&&"touch"!==o)){let e=i.clientHeight+i.scrollTop,t=a.offsetTop+a.offsetHeight;t>e?i.scrollTop=t-i.clientHeight:a.offsetTop-a.offsetHeight*(1.3*!!A)<i.scrollTop&&(i.scrollTop=a.offsetTop-a.offsetHeight*(1.3*!!A))}}),eR=(0,l.Z)(({event:e,diff:t,direction:r="next",reason:o="auto"})=>{if(!ew)return;let n=function(e,t){if(!et.current||e<0||e>=eZ.length)return -1;let r=e;for(;;){let o=et.current.querySelector(`[data-option-index="${r}"]`),n=!P&&(!o||o.disabled||"true"===o.getAttribute("aria-disabled"));if(o&&o.hasAttribute("tabindex")&&!n)return r;if((r="next"===t?(r+1)%eZ.length:(r-1+eZ.length)%eZ.length)===e)return -1}}((()=>{let e=eZ.length-1;if("reset"===t)return ea;if("start"===t)return 0;if("end"===t)return e;let r=el.current+t;return r<0?-1===r&&D?-1:$&&-1!==el.current||Math.abs(t)>1?0:e:r>e?r===e+1&&D?-1:$||Math.abs(t)>1?e:0:r})(),r);if(ek({index:n,reason:o,event:e}),p&&"reset"!==t){if(-1===n)ee.current.value=eu;else{let e=K(eZ[n]);ee.current.value=e,0===e.toLowerCase().indexOf(eu.toLowerCase())&&eu.length>0&&ee.current.setSelectionRange(eu.length,e.length)}}}),eM=()=>{var e,t;if(-1!==el.current&&eO.filteredOptions&&eO.filteredOptions.length!==eZ.length&&eO.inputValue===eu&&(E?ep.length===eO.value.length&&eO.value.every((e,t)=>K(ep[t])===K(e)):(e=eO.value,t=ep,(e?K(e):"")===(t?K(t):"")))){let e=eO.filteredOptions[el.current];if(e)return eZ.findIndex(t=>K(t)===K(e))}return -1},eS=o.useCallback(()=>{if(!ew)return;let e=eM();if(-1!==e){el.current=e;return}let t=E?ep[0]:ep;if(0===eZ.length||null==t){eR({diff:"reset"});return}if(et.current){if(null!=t){let e=eZ[el.current];if(E&&e&&-1!==ep.findIndex(t=>W(e,t)))return;let r=eZ.findIndex(e=>W(e,t));-1===r?eR({diff:"reset"}):ek({index:r});return}if(el.current>=eZ.length-1){ek({index:eZ.length-1});return}ek({index:el.current})}},[eZ.length,!E&&ep,R,eR,ek,ew,eu,E]),eC=(0,l.Z)(e=>{(0,s.Z)(et,e),e&&eS()});o.useEffect(()=>{eS()},[eS]);let eT=e=>{!eg&&(ev(!0),ey(!0),V&&V(e))},eA=(e,t)=>{eg&&(ev(!1),N&&N(e,t))},eL=(e,t,r,o)=>{if(E){if(ep.length===t.length&&ep.every((e,r)=>e===t[r]))return}else if(ep===t)return;H&&H(e,t,r,o),ec(t)},ej=o.useRef(!1),eD=(e,t,r="selectOption",o="options")=>{let n=r,i=t;if(E){let e=(i=Array.isArray(ep)?ep.slice():[]).findIndex(e=>W(t,e));-1===e?i.push(t):"freeSolo"!==o&&(i.splice(e,1),n="removeOption")}eh(e,i,n),eL(e,i,n,{option:t}),Z||e&&(e.ctrlKey||e.metaKey)||eA(e,n),(!0===g||"touch"===g&&ej.current||"mouse"===g&&!ej.current)&&ee.current.blur()},eI=(e,t)=>{if(!E)return;""===eu&&eA(e,"toggleInput");let r=en;-1===en?""===eu&&"previous"===t&&(r=ep.length-1):((r+="next"===t?1:-1)<0&&(r=0),r===ep.length&&(r=-1)),ei(r=function(e,t){if(-1===e)return -1;let r=e;for(;;){if("next"===t&&r===ep.length||"previous"===t&&-1===r)return -1;let e=er.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t)),e$(r)},eW=e=>{Q.current=!0,ed(""),F&&F(e,"","clear"),eL(e,E?[]:null,"clear")},eE=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===en||["ArrowLeft","ArrowRight"].includes(t.key)||(ei(-1),e$(-1)),229!==t.which))switch(t.key){case"Home":ew&&L&&(t.preventDefault(),eR({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ew&&L&&(t.preventDefault(),eR({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),eR({diff:-5,direction:"previous",reason:"keyboard",event:t}),eT(t);break;case"PageDown":t.preventDefault(),eR({diff:5,direction:"next",reason:"keyboard",event:t}),eT(t);break;case"ArrowDown":t.preventDefault(),eR({diff:1,direction:"next",reason:"keyboard",event:t}),eT(t);break;case"ArrowUp":t.preventDefault(),eR({diff:-1,direction:"previous",reason:"keyboard",event:t}),eT(t);break;case"ArrowLeft":eI(t,"previous");break;case"ArrowRight":eI(t,"next");break;case"Enter":if(-1!==el.current&&ew){let e=eZ[el.current],r=!!S&&S(e);if(t.preventDefault(),r)return;eD(t,e,"selectOption"),p&&ee.current.setSelectionRange(ee.current.value.length,ee.current.value.length)}else M&&""!==eu&&!1===ex&&(E&&t.preventDefault(),eD(t,eu,"createOption","freeSolo"));break;case"Escape":ew?(t.preventDefault(),t.stopPropagation(),eA(t,"escape")):b&&(""!==eu||E&&ep.length>0)&&(t.preventDefault(),t.stopPropagation(),eW(t));break;case"Backspace":if(E&&!_&&""===eu&&ep.length>0){let e=-1===en?ep.length-1:en,r=ep.slice();r.splice(e,1),eL(t,r,"removeOption",{option:ep[e]})}break;case"Delete":if(E&&!_&&""===eu&&ep.length>0&&-1!==en){let e=ep.slice();e.splice(en,1),eL(t,e,"removeOption",{option:ep[en]})}}},eH=e=>{em(!0),q&&!Q.current&&eT(e)},eN=e=>{if(t(et)){ee.current.focus();return}em(!1),J.current=!0,Q.current=!1,h&&-1!==el.current&&ew?eD(e,eZ[el.current],"blur"):h&&M&&""!==eu?eD(e,eu,"blur","freeSolo"):v&&eh(e,ep,"blur"),eA(e,"blur")},eB=e=>{let t=e.target.value;eu!==t&&(ed(t),ey(!1),F&&F(e,t,"input")),""===t?w||E||eL(e,null,"clear"):eT(e)},eF=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));el.current!==t&&ek({event:e,index:t,reason:"mouse"})},eV=e=>{ek({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ej.current=!0},ez=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));eD(e,eZ[t],"selectOption"),ej.current=!1},eq=e=>t=>{let r=ep.slice();r.splice(e,1),eL(t,r,"removeOption",{option:ep[e]})},eU=e=>{eg?eA(e,"toggleInput"):eT(e)},e_=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==G&&e.preventDefault()},eX=e=>{e.currentTarget.contains(e.target)&&(ee.current.focus(),X&&J.current&&ee.current.selectionEnd-ee.current.selectionStart==0&&ee.current.select(),J.current=!1)},eY=e=>{O||""!==eu&&eg||eU(e)},eG=M&&eu.length>0;eG=eG||(E?ep.length>0:null!==ep);let eK=eZ;return A&&(eK=eZ.reduce((e,t,r)=>{let o=A(t);return e.length>0&&e[e.length-1].group===o?e[e.length-1].options.push(t):e.push({key:r,index:r,group:o,options:[t]}),e},[])),O&&ef&&eN(),{getRootProps:(e={})=>({...e,onKeyDown:eE(e),onMouseDown:e_,onClick:eX}),getInputLabelProps:()=>({id:`${G}-label`,htmlFor:G}),getInputProps:()=>({id:G,value:eu,onBlur:eN,onFocus:eH,onChange:eB,onMouseDown:eY,"aria-activedescendant":ew?"":null,"aria-autocomplete":p?"both":"list","aria-controls":eP?`${G}-listbox`:void 0,"aria-expanded":eP,autoComplete:"off",ref:ee,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:O}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:eW}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:eU}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!_&&{onDelete:eq(e)}}),getListboxProps:()=>({role:"listbox",id:`${G}-listbox`,"aria-labelledby":`${G}-label`,ref:eC,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{let r=(E?ep:[ep]).some(e=>null!=e&&W(t,e)),o=!!S&&S(t);return{key:C?.(t)??K(t),tabIndex:-1,role:"option",id:`${G}-option-${e}`,onMouseMove:eF,onClick:ez,onTouchStart:eV,"data-option-index":e,"aria-disabled":o,"aria-selected":r}},id:G,inputValue:eu,value:ep,dirty:eG,expanded:ew&&er,popupOpen:ew,focused:ef||-1!==en,anchorEl:er,setAnchorEl:eo,focusedTag:en,groupedOptions:eK}}},10763:function(e,t,r){"use strict";t.default=void 0;var o,n=(o=r(30265))&&o.__esModule?o:{default:o};t.default=(0,n.default)("M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z","Close")},39398:function(e,t,r){"use strict";t.default=void 0;var o,n=(o=r(30265))&&o.__esModule?o:{default:o};t.default=(0,n.default)("M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z","InformationOutline")},75186:function(e,t,r){"use strict";t.default=void 0;var o,n=(o=r(30265))&&o.__esModule?o:{default:o};t.default=(0,n.default)("M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12M8.8,14L10,12.8V4H14V12.8L15.2,14H8.8Z","PinOutline")},58772:function(e,t,r){"use strict";var o=r(90331);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,i,a){if(a!==o){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:n};return r.PropTypes=r,r}},23615:function(e,t,r){e.exports=r(58772)()},90331:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkTimeSeriesTable=self.webpackChunkTimeSeriesTable||[]).push([["3598"],{40717:function(t,e,n){n.d(e,{r:()=>s,t:()=>function t(e,n,s){if(s.isAnimationEnabled()&&n){if((0,i.isArray)(n)){(0,i.each)(n,function(n){t(e,n,s)});return}var u=n.keyframes,h=n.duration;if(s&&null==h){var f=(0,a.ke)("enter",s,0);h=f&&f.duration}if(u&&h){var d=o(e);(0,i.each)(r.O0,function(t){var r;if(!t||e[t])u.sort(function(t,e){return t.percent-e.percent}),(0,i.each)(u,function(a){var o=e.animators,s=t?a[t]:a;if(s){var u=(0,i.keys)(s);if(t||(u=(0,i.filter)(u,function(t){return 0>(0,i.indexOf)(l,t)})),u.length){r||((r=e.animate(t,n.loop,!0)).scope="keyframe");for(var f=0;f<o.length;f++)o[f]!==r&&o[f].targetName===r.targetName&&o[f].stopTracks(u);t&&(d[t]=d[t]||{});var c=t?d[t]:d;(0,i.each)(u,function(n){c[n]=((t?e[t]:e)||{})[n]}),r.whenWithKeys(h*a.percent,s,u,a.easing)}}}),r&&r.delay(n.delay||0).duration(h).start(n.easing)})}}}});var i=n(67975),r=n(89655),a=n(99858),o=(0,n(86571).Yf)(),l=["percent","easing","shape","style","extra"];function s(t){t.stopAnimation("keyframe"),t.attr(o(t))}},89655:function(t,e,n){n.d(e,{O0:()=>d,O3:()=>v,Ob:()=>x,WK:()=>y,_9:()=>p});var i=n(86571),r=n(67975),a=n(17993),o=n(2097),l=n(99858),s=n(7185),u=n(44066),h={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},f=(0,r.keys)(h);(0,r.reduce)(u.dN,function(t,e){return t[e]=1,t},{}),u.dN.join(", ");var d=["","style","shape","extra"],c=(0,i.Yf)();function g(t,e,n,i,a){var o=t+"Animation",s=(0,l.ke)(t,i,a)||{},u=c(e).userDuring;return s.duration>0&&(s.during=u?(0,r.bind)(O,{el:e,userDuring:u}):null,s.setToFinal=!0,s.scope=t),(0,r.extend)(s,n[o]),s}function x(t,e,n,a){var l,x,v=(a=a||{}).dataIndex,m=a.isInit,w=a.clearStyle,O=n.isAnimationEnabled(),b=c(t),k=e.style;b.userDuring=e.during;var P={},T={};if(function(t,e,n){for(var i=0;i<f.length;i++){var r=f[i],a=h[r],o=e[r];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var i=0;i<u.dN.length;i++){var l=u.dN[i];null!=e[l]&&(n[l]=e[l])}}(0,e,T),C("shape",e,T),C("extra",e,T),!m&&O&&(function(t,e,n){for(var r=e.transition,a=y(r)?u.dN:(0,i.kF)(r||[]),o=0;o<a.length;o++){var l=a[o];if("style"!==l&&"shape"!==l&&"extra"!==l){var s=t[l];n[l]=s}}}(t,e,P),S("shape",t,e,P),S("extra",t,e,P),function(t,e,n,a){if(n){var o,l=t.style;if(l){var s=n.transition,u=e.transition;if(s&&!y(s)){var h=(0,i.kF)(s);o||(o=a.style={});for(var f=0;f<h.length;f++){var d=h[f],c=l[d];o[d]=c}}else if(t.getAnimationStyleProps&&(y(u)||y(s)||(0,r.indexOf)(u,"style")>=0)){var g=t.getAnimationStyleProps(),x=g?g.style:null;if(x){o||(o=a.style={});for(var p=(0,r.keys)(n),f=0;f<p.length;f++){var d=p[f];if(x[d]){var c=l[d];o[d]=c}}}}}}}(t,e,k,P)),T.style=k,function(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,a=0;a<r.length;a++){var o=r[a];"style"===o.targetName&&o.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}(t,T,w),l=t,x=e,(0,r.hasOwn)(x,"silent")&&(l.silent=x.silent),(0,r.hasOwn)(x,"ignore")&&(l.ignore=x.ignore),l instanceof o.ZP&&(0,r.hasOwn)(x,"invisible")&&(l.invisible=x.invisible),l instanceof s.ZP&&(0,r.hasOwn)(x,"autoBatch")&&(l.autoBatch=x.autoBatch),O){if(m){var I={};(0,r.each)(d,function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(I[t]=I[t]||{}),(0,r.extend)(t?I[t]:I,n.enterFrom))});var B=g("enter",t,e,n,v);B.duration>0&&t.animateFrom(I,B)}else!function(t,e,n,i,r){if(r){var a=g("update",t,e,i,n);a.duration>0&&t.animateFrom(r,a)}}(t,e,v||0,n,P)}p(t,e),k?t.dirty():t.markRedraw()}function p(t,e){for(var n=c(t).leaveToProps,i=0;i<d.length;i++){var a=d[i],o=a?e[a]:e;o&&o.leaveTo&&(n||(n=c(t).leaveToProps={}),a&&(n[a]=n[a]||{}),(0,r.extend)(a?n[a]:n,o.leaveTo))}}function v(t,e,n,i){if(t){var r=t.parent,a=c(t).leaveToProps;if(a){var o=g("update",t,e,n,0);o.done=function(){r.remove(t),i&&i()},t.animateTo(a,o)}else r.remove(t),i&&i()}}function y(t){return"all"===t}var m={},w={setTransform:function(t,e){return m.el[t]=e,this},getTransform:function(t){return m.el[t]},setShape:function(t,e){var n=m.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=m.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=m.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=m.el.style;if(e)return e[t]},setExtra:function(t,e){return(m.el.extra||(m.el.extra={}))[t]=e,this},getExtra:function(t){var e=m.el.extra;if(e)return e[t]}};function O(){var t=this.el;if(t){var e=c(t).userDuring,n=this.userDuring;if(e!==n){this.el=this.userDuring=null;return}m.el=t,n(w)}}function S(t,e,n,a){var o,l=n[t];if(l){var s=e[t];if(s){var u=n.transition,h=l.transition;if(h){if(o||(o=a[t]={}),y(h))(0,r.extend)(o,s);else for(var f=(0,i.kF)(h),d=0;d<f.length;d++){var c=f[d],g=s[c];o[c]=g}}else if(y(u)||(0,r.indexOf)(u,t)>=0){o||(o=a[t]={});for(var x=(0,r.keys)(s),d=0;d<x.length;d++){var p,v,c=x[d],g=s[c];p=l[c],v=g,((0,r.isArrayLike)(p)?p!==v:null!=p&&isFinite(p))&&(o[c]=g)}}}}}function C(t,e,n){var i=e[t];if(i)for(var o=n[t]={},l=(0,r.keys)(i),s=0;s<l.length;s++){var u=l[s];o[u]=(0,a.V)(i[u])}}},35246:function(t,e,n){n.d(e,{N:()=>tl});var i=n(69988),r=n(30984),a=n(86571),o=n(2021),l={color:"fill",borderColor:"stroke"},s={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},u=(0,a.Yf)(),h=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.ZT)(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return(0,r.Z)(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=u(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(o.Z),f=n(67975),d=n(7185),c=n(29790),g=n(63287),x=n(76150),p=n(37293),v=n(98306),y=n(33361),m=n(16072),w=n(58783),O=n(82787),S=n(58050),C=n(21730);function b(t,e){return e=e||[0,0],f.map(["x","y"],function(n,i){var r=this.getAxis(n),a=e[i],o=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o))},this)}function k(t,e){return e=e||[0,0],f.map([0,1],function(n){var i=e[n],r=t[n]/2,a=[],o=[];return a[n]=i-r,o[n]=i+r,a[1-n]=o[1-n]=e[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function P(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function T(t,e){return e=e||[0,0],f.map(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),a=e[i],o=t[i]/2,l="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o));return"Angle"===n&&(l=l*Math.PI/180),l},this)}var I=n(2097),B=n(43810),A=n(12159),F=n(96151),W=n(89655),D=n(40717),z="emphasis",R="normal",M="blur",Z="select",E=[R,z,M,Z],L={normal:["itemStyle"],emphasis:[z,"itemStyle"],blur:[M,"itemStyle"],select:[Z,"itemStyle"]},H={normal:["label"],emphasis:[z,"label"],blur:[M,"label"],select:[Z,"label"]},Y=["x","y"],_={normal:{},emphasis:{},blur:{},select:{}},N={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:f.bind(b,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:f.bind(k,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:(0,f.bind)(P,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),a=n.dataToAngle(i[1]),o=t.coordToPoint([r,a]);return o.push(r,a*Math.PI/180),o},size:f.bind(T,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function G(t){return t instanceof d.ZP}function X(t){return t instanceof I.ZP}var V=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.ZT)(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,a=t.getData(),o=this.group,l=q(t,a,e,n);r||o.removeAll(),a.diff(r).add(function(e){Q(n,null,e,l(e,i),t,o,a)}).remove(function(e){var n=r.getItemGraphicEl(e);n&&(0,W.O3)(n,u(n).option,t)}).update(function(e,s){Q(n,r.getItemGraphicEl(s),e,l(e,i),t,o,a)}).execute();var s=t.get("clip",!0)?(0,C.lQ)(t.coordinateSystem,!1,t):null;s?o.setClipPath(s):o.removeClipPath(),this._data=a},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var a=e.getData(),o=q(e,a,n,i),l=this._progressiveEls=[];function s(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var h=Q(null,null,u,o(u,r),e,this.group,a);h&&(h.traverse(s),l.push(h))}},e.prototype.eachRendered=function(t){c.traverseElements(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},e.type="custom",e}(S.Z);function K(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,a=to(i);u(e=c.makePath(a,null,r,i.layout||"center")).customPathData=a}else if("image"===n)u(e=new g.ZP({})).customImagePath=t.style.image;else if("text"===n)e=new x.ZP({});else if("group"===n)e=new p.Z;else if("compoundPath"===n)throw Error('"compoundPath" is not supported yet.');else{var o=c.getShapeClass(n);o||(0,A._y)(""),e=new o}return u(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function U(t,e,n,i,r,a,o){(0,D.r)(e);var l=r&&r.normal.cfg;l&&e.setTextConfig(l),i&&null==i.transition&&(i.transition=Y);var s=i&&i.style;if(s){"text"===e.type&&((0,f.hasOwn)(s,"textFill")&&(s.fill=s.textFill),(0,f.hasOwn)(s,"textStroke")&&(s.stroke=s.textStroke));var u=void 0,h=G(e)?s.decal:null;t&&h&&(h.dirty=!0,u=(0,F.I)(h,t)),s.__decalPattern=u}if(X(e)&&s){var u=s.__decalPattern;u&&(s.decal=u)}(0,W.Ob)(e,i,a,{dataIndex:n,isInit:o,clearStyle:!0}),(0,D.t)(e,i.keyframeAnimation,a)}function j(t,e,n,i,r){var a=e.isGroup?null:e,o=r&&r[t].cfg;if(a){var l=a.ensureState(t);if(!1===i){var s=a.getState(t);s&&(s.style=null)}else l.style=i||null;o&&(l.textConfig=o),(0,v.MA)(a)}}function q(t,e,n,i){var r,a,o,u,h=t.get("renderItem"),d=t.coordinateSystem,c={};d&&(c=d.prepareCustoms?d.prepareCustoms(d):N[d.type](d));for(var g=(0,f.defaults)({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=o),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,i){null==i&&(i=o);var r=e.getItemVisual(i,"style"),a=r&&r.fill,l=r&&r.opacity,s=P(i,R).getItemStyle();null!=a&&(s.fill=a),null!=l&&(s.opacity=l);var u={inheritColor:(0,f.isString)(a)?a:"#000"},h=T(i,R),d=y.Lr(h,null,u,!1,!0);d.text=h.getShallow("show")?(0,f.retrieve2)(t.getFormattedLabel(i,R),(0,m.H)(e,i)):null;var c=y.nC(h,u,!1);return A(n,s),s=(0,B.n8)(s,d,c),n&&I(s,n),s.legacy=!0,s},ordinalRawValue:function(t,n){null==n&&(n=o),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var a=e.get(i.name,n),l=i&&i.ordinalMeta;return l?l.categories[a]:a},styleEmphasis:function(n,i){null==i&&(i=o);var r=P(i,z).getItemStyle(),a=T(i,z),l=y.Lr(a,null,null,!0,!0);l.text=a.getShallow("show")?(0,f.retrieve3)(t.getFormattedLabel(i,z),t.getFormattedLabel(i,R),(0,m.H)(e,i)):null;var s=y.nC(a,null,!0);return A(n,r),r=(0,B.n8)(r,l,s),n&&I(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=o),(0,f.hasOwn)(l,t)){var i=e.getItemVisual(n,"style");return i?i[l[t]]:null}if((0,f.hasOwn)(s,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===d.type){var e=d.getBaseAxis();return(0,w.Gk)((0,f.defaults)({axis:e},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return y.qT(t,n)}},c.api||{}),x={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:c.coordSys,dataInsideLength:e.count(),encode:(r=t.getData(),a={},(0,f.each)(r.dimensions,function(t){var e=r.getDimensionInfo(t);if(!e.isExtraCoord){var n=e.coordDim;(a[n]=a[n]||[])[e.coordDimIndex]=r.getDimensionIndex(t)}}),a)},p={},v={},O={},S={},C=0;C<E.length;C++){var b=E[C];O[b]=t.getModel(L[b]),S[b]=t.getModel(H[b])}function k(t){return t===o?u||(u=e.getItemModel(t)):e.getItemModel(t)}function P(t,n){return e.hasItemOption?t===o?p[n]||(p[n]=k(t).getModel(L[n])):k(t).getModel(L[n]):O[n]}function T(t,n){return e.hasItemOption?t===o?v[n]||(v[n]=k(t).getModel(H[n])):k(t).getModel(H[n]):S[n]}return function(t,n){return o=t,u=null,p={},v={},h&&h((0,f.defaults)({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},x),g)};function I(t,e){for(var n in e)(0,f.hasOwn)(e,n)&&(t[n]=e[n])}function A(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function Q(t,e,n,i,r,a,o){if(!i){a.remove(e);return}var l=$(t,e,n,i,r,a);return l&&o.setItemGraphicEl(n,l),l&&(0,v.k5)(l,i.focus,i.blurScope,i.emphasisDisabled),l}function $(t,e,n,i,r,a){var o,l=-1,s=e;e&&J(e,i,r)&&(l=(0,f.indexOf)(a.childrenRef(),e),e=null);var h=!e,d=e;d?d.clearStates():(d=K(i),s&&((o=d).copyTransform(s),X(o)&&X(s)&&(o.setStyle(s.style),o.z=s.z,o.z2=s.z2,o.zlevel=s.zlevel,o.invisible=s.invisible,o.ignore=s.ignore,G(o)&&G(s)&&o.setShape(s.shape)))),!1===i.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),_.normal.cfg=_.normal.conOpt=_.emphasis.cfg=_.emphasis.conOpt=_.blur.cfg=_.blur.conOpt=_.select.cfg=_.select.conOpt=null,_.isLegacy=!1,function(t,e,n,i,r,a){if(!t.isGroup){tt(n,null,a),tt(n,z,a);var o=a.normal.conOpt,l=a.emphasis.conOpt,s=a.blur.conOpt,u=a.select.conOpt;if(null!=o||null!=l||null!=u||null!=s){var h=t.getTextContent();if(!1===o)h&&t.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},h?h.clearStates():(h=K(o),t.setTextContent(h)),U(null,h,e,o,null,i,r);for(var f=o&&o.style,d=0;d<E.length;d++){var c=E[d];if(c!==R){var g=a[c].conOpt;j(c,h,g,tn(o,g,c),null)}}f?h.dirty():h.markRedraw()}}}}(d,n,i,r,h,_),function(t,e,n,i,r){var a=n.clipPath;if(!1===a)t&&t.getClipPath()&&t.removeClipPath();else if(a){var o=t.getClipPath();o&&J(o,a,i)&&(o=null),!o&&(o=K(a),t.setClipPath(o)),U(null,o,e,a,null,i,r)}}(d,n,i,r,h),U(t,d,n,i,_,r,h),(0,f.hasOwn)(i,"info")&&(u(d).info=i.info);for(var c=0;c<E.length;c++){var g=E[c];if(g!==R){var x=te(i,g),p=tn(i,x,g);j(g,d,x,p,_)}}return!function(t,e,n){if(!t.isGroup){var i=n.currentZ,r=n.currentZLevel;t.z=i,t.zlevel=r;var a=e.z2;null!=a&&(t.z2=a||0);for(var o=0;o<E.length;o++)(function(t,e,n){var i=n===R,r=i?e:te(e,n),a=r?r.z2:null;null!=a&&((i?t:t.ensureState(n)).z2=a||0)})(t,e,E[o])}}(d,i,r),"group"===i.type&&function(t,e,n,i,r){var a=i.children,o=a?a.length:0,l=i.$mergeChildren,s="byName"===l||i.diffChildrenByName,h=!1===l;if(o||s||h){if(s){(function(t){new O.Z(t.oldChildren,t.newChildren,ti,ti,t).add(tr).update(tr).remove(ta).execute()})({api:t,oldChildren:e.children()||[],newChildren:a||[],dataIndex:n,seriesModel:r,group:e});return}h&&e.removeAll();for(var f=0;f<o;f++){var d=a[f],c=e.childAt(f);d?(null==d.ignore&&(d.ignore=!1),$(t,c,n,d,r,e)):c.ignore=!0}for(var g=e.childCount()-1;g>=f;g--){var x,p,v,y=e.childAt(g);x=e,p=y,v=r,p&&(0,W.O3)(p,u(x).option,v)}}}(t,d,n,i,r),l>=0?a.replaceAt(d,l):a.add(d),d}function J(t,e,n){var i,r=u(t),a=e.type,o=e.shape,l=e.style;return n.isUniversalTransitionEnabled()||null!=a&&a!==r.customGraphicType||"path"===a&&(i=o)&&((0,f.hasOwn)(i,"pathData")||(0,f.hasOwn)(i,"d"))&&to(o)!==r.customPathData||"image"===a&&(0,f.hasOwn)(l,"image")&&l.image!==r.customImagePath}function tt(t,e,n){var i=e?te(t,e):t,r=e?tn(t,i,z):t.style,a=t.type,o=i?i.textConfig:null,l=t.textContent,s=l?e?te(l,e):l:null;if(r&&(n.isLegacy||(0,B.Sv)(r,a,!!o,!!s))){n.isLegacy=!0;var u=(0,B.Tw)(r,a,!e);!o&&u.textConfig&&(o=u.textConfig),!s&&u.textContent&&(s=u.textContent)}if(!e&&s){var h=s;h.type||(h.type="text")}var f=e?n[e]:n.normal;f.cfg=o,f.conOpt=s}function te(t,e){return e?t?t[e]:null:t}function tn(t,e,n){var i=e&&e.style;return null==i&&n===z&&t&&(i=t.styleEmphasis),i}function ti(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function tr(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;$(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function ta(t){var e=this.context,n=e.oldChildren[t];n&&(0,W.O3)(n,u(n).option,e.seriesModel)}function to(t){return t&&(t.pathData||t.d)}function tl(t){t.registerChartView(V),t.registerSeriesModel(h)}},43810:function(t,e,n){n.d(e,{Sv:()=>r,Tw:()=>a,n8:()=>l});var i=n(67975);function r(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||(0,i.hasOwn)(t,"text")))}function a(t,e,n){var r,a,l;if("text"===e)l=t;else{l={},(0,i.hasOwn)(t,"text")&&(l.text=t.text),(0,i.hasOwn)(t,"rich")&&(l.rich=t.rich),(0,i.hasOwn)(t,"textFill")&&(l.fill=t.textFill),(0,i.hasOwn)(t,"textStroke")&&(l.stroke=t.textStroke),(0,i.hasOwn)(t,"fontFamily")&&(l.fontFamily=t.fontFamily),(0,i.hasOwn)(t,"fontSize")&&(l.fontSize=t.fontSize),(0,i.hasOwn)(t,"fontStyle")&&(l.fontStyle=t.fontStyle),(0,i.hasOwn)(t,"fontWeight")&&(l.fontWeight=t.fontWeight),a={type:"text",style:l,silent:!0},r={};var s=(0,i.hasOwn)(t,"textPosition");n?r.position=s?t.textPosition:"inside":s&&(r.position=t.textPosition),(0,i.hasOwn)(t,"textPosition")&&(r.position=t.textPosition),(0,i.hasOwn)(t,"textOffset")&&(r.offset=t.textOffset),(0,i.hasOwn)(t,"textRotation")&&(r.rotation=t.textRotation),(0,i.hasOwn)(t,"textDistance")&&(r.distance=t.textDistance)}return o(l,t),(0,i.each)(l.rich,function(t){o(t,t)}),{textConfig:r,textContent:a}}function o(t,e){e&&(e.font=e.textFont||e.font,(0,i.hasOwn)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),(0,i.hasOwn)(e,"textAlign")&&(t.align=e.textAlign),(0,i.hasOwn)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),(0,i.hasOwn)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),(0,i.hasOwn)(e,"textWidth")&&(t.width=e.textWidth),(0,i.hasOwn)(e,"textHeight")&&(t.height=e.textHeight),(0,i.hasOwn)(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),(0,i.hasOwn)(e,"textPadding")&&(t.padding=e.textPadding),(0,i.hasOwn)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),(0,i.hasOwn)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),(0,i.hasOwn)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),(0,i.hasOwn)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),(0,i.hasOwn)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),(0,i.hasOwn)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),(0,i.hasOwn)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function l(t,e,n){t.textPosition=t.textPosition||n.position||"inside",null!=n.offset&&(t.textOffset=n.offset),null!=n.rotation&&(t.textRotation=n.rotation),null!=n.distance&&(t.textDistance=n.distance);var r=t.textPosition.indexOf("inside")>=0,a=t.fill||"#000";s(t,e);var o=null==t.textFill;return r?o&&(t.textFill=n.insideFill||"#fff",!t.textStroke&&n.insideStroke&&(t.textStroke=n.insideStroke),t.textStroke||(t.textStroke=a),null==t.textStrokeWidth&&(t.textStrokeWidth=2)):(o&&(t.textFill=t.fill||n.outsideFill||"#000"),!t.textStroke&&n.outsideStroke&&(t.textStroke=n.outsideStroke)),t.text=e.text,t.rich=e.rich,(0,i.each)(e.rich,function(t){s(t,t)}),t}function s(t,e){e&&((0,i.hasOwn)(e,"fill")&&(t.textFill=e.fill),(0,i.hasOwn)(e,"stroke")&&(t.textStroke=e.fill),(0,i.hasOwn)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),(0,i.hasOwn)(e,"font")&&(t.font=e.font),(0,i.hasOwn)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),(0,i.hasOwn)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),(0,i.hasOwn)(e,"fontSize")&&(t.fontSize=e.fontSize),(0,i.hasOwn)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),(0,i.hasOwn)(e,"align")&&(t.textAlign=e.align),(0,i.hasOwn)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),(0,i.hasOwn)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),(0,i.hasOwn)(e,"width")&&(t.textWidth=e.width),(0,i.hasOwn)(e,"height")&&(t.textHeight=e.height),(0,i.hasOwn)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),(0,i.hasOwn)(e,"padding")&&(t.textPadding=e.padding),(0,i.hasOwn)(e,"borderColor")&&(t.textBorderColor=e.borderColor),(0,i.hasOwn)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),(0,i.hasOwn)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),(0,i.hasOwn)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),(0,i.hasOwn)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),(0,i.hasOwn)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),(0,i.hasOwn)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),(0,i.hasOwn)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),(0,i.hasOwn)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),(0,i.hasOwn)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),(0,i.hasOwn)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}}}]);
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkTimeSeriesTable=self.webpackChunkTimeSeriesTable||[]).push([["3660"],{76726:function(e,t,n){let r;n.r(t),n.d(t,{ErrorAlert:()=>tD,JSONEditor:()=>tH,INCREASE_NEARBY_SERIES_MULTIPLIER:()=>nR,OptionsEditorGroup:()=>n3,DensitySelector:()=>tu,assembleTransform:()=>nV,clearHighlightedSeries:()=>nD,getColorsForValues:()=>ij,ErrorBoundary:()=>tI.ErrorBoundary,SeriesMarker:()=>nf,TimeRangeSelector:()=>rT,testChartsTheme:()=>rW,ChartsThemeContext:()=>b,TextOverlay:()=>n8,hexToHSL:()=>iC,DEFAULT_COLUMN_HEIGHT:()=>eT,useMousePosition:()=>nc,NoDataOverlay:()=>n9,generateChartsTheme:()=>rP,OptionsEditorGrid:()=>n7,OPTIMIZED_MODE_SERIES_LIMIT:()=>nS,TOOLTIP_ADJUST_Y_POS_MULTIPLIER:()=>t8,DiscardChangesConfirmationDialog:()=>e3,getDateRange:()=>P,EMPHASIZED_SERIES_DESCRIPTION:()=>nn,useChartsTheme:()=>C,persesColumnsToTanstackColumns:()=>eM,mockChartsContext:()=>r$,Legend:()=>eG,TOOLTIP_DATE_FORMAT:()=>ni,TOOLTIP_MAX_WIDTH:()=>t7,dateFormatOptionsWithTimeZone:()=>tK,legacyCheckforNearbySeries:()=>nW,ToolbarIconButton:()=>rM,PIN_TOOLTIP_HELP_TEXT:()=>nh,checkforNearbyTimeSeries:()=>nz,getTheme:()=>r4,PieChart:()=>ip,TooltipHeader:()=>nZ,TOOLTIP_BG_COLOR_FALLBACK:()=>nr,UNPIN_TOOLTIP_HELP_TEXT:()=>np,DateTimeRangePicker:()=>rk,handleMoveUp:()=>tw,browser:()=>na,getClosestTimestamp:()=>nF,formatWithTimeZone:()=>tq,batchDispatchNearbySeriesActions:()=>nE,getFormattedAxis:()=>R,useTimeZone:()=>t2,ChartsProvider:()=>y,isWithinPercentageRange:()=>nB,TOOLTIP_MIN_WIDTH:()=>t6,StatusHistoryChart:()=>iv,TOOLTIP_LABELS_MAX_WIDTH:()=>t4,getYBuffer:()=>n_,DEFAULT_PINNED_CROSSHAIR:()=>nT,LineChartTooltip:()=>nY,FormatControls:()=>rE,TooltipContent:()=>nb,hslToHex:()=>iw,SHOW_FEWER_SERIES_LIMIT:()=>nO,TimeChartTooltip:()=>rm,getClosestTimestampInFullDataset:()=>nN,getTableCellLayout:()=>eA,pointerEventsSupported:()=>ns,EChart:()=>L,PINNED_CROSSHAIR_SERIES_NAME:()=>nk,SortSelector:()=>rn,SnackbarProvider:()=>rF.wT,Drawer:()=>tA,AlignSelector:()=>a,LinksEditor:()=>nQ,ValueMappingsEditor:()=>iT,TimeZoneContext:()=>t1,GaugeChart:()=>tP,LineChart:()=>nG,SeriesLabelsStack:()=>nv,checkCrosshairPinnedStatus:()=>nL,StatChart:()=>ro,SeriesInfo:()=>ny,ColorPicker:()=>V,Table:()=>eB,useSnackbar:()=>rN,InfoTooltip:()=>tr,TimeZoneProvider:()=>t5,LoadingOverlay:()=>re,typography:()=>r7,Dialog:()=>e7,DropIndicator:()=>th,TransformsEditor:()=>ic,OptionsEditorControl:()=>to,TOOLTIP_PADDING:()=>t9,getFormattedAxisLabel:()=>tQ,SortSelectorButtons:()=>rr,getTooltipStyles:()=>nU,useChartsContext:()=>j,RefreshIntervalPicker:()=>iu,enableDataZoom:()=>nA,useDragAndDropMonitor:()=>tv,trackingEventName:()=>nd,combineSx:()=>en,OptionsEditorColumn:()=>n6,getDateAndTime:()=>t0,ThresholdsEditor:()=>rg,DEFAULT_TOOLTIP_CONFIG:()=>nu,handleMoveDown:()=>tZ,DragButton:()=>tS,useId:()=>te,ContentWithLegend:()=>eK,BarChart:()=>O,getFormattedDate:()=>tJ,NEARBY_SERIES_DESCRIPTION:()=>nt,getColorForValue:()=>ib,isLegendItemVisuallySelected:()=>eo,getPointInGrid:()=>nI,EMPTY_TOOLTIP_DATA:()=>no,legacyGetNearbySeriesData:()=>nH,buildRelativeTimeOption:()=>rO,SettingsAutocomplete:()=>td,FontSizeSelector:()=>tL,defaultCursorData:()=>nl,DYNAMIC_NEARBY_SERIES_MULTIPLIER:()=>nP,FALLBACK_COLOR:()=>iy,getNearbySeriesData:()=>n$,TOOLTIP_MAX_HEIGHT:()=>t3,YAxisLabel:()=>rL,TimeChart:()=>rf,FALLBACK_CHART_WIDTH:()=>ne,DragAndDropElement:()=>ty,getResponsiveValueSize:()=>tO,restoreChart:()=>nM,ModeSelector:()=>n5,TextField:()=>eq,DEFAULT_COLUMN_WIDTH:()=>ek,FormActions:()=>tN,OptionsColorPicker:()=>X});var i=n(24246),l=n(10970),o=n(48565);function a({onChange:e,value:t="left",...n}){let r=t=>{e(t)};return(0,i.jsxs)(l.Z,{"aria-label":"Alignement",...n,children:[(0,i.jsx)(o.Z,{onClick:()=>r("left"),variant:"left"===t?"contained":"outlined",children:"Left"},"left"),(0,i.jsx)(o.Z,{onClick:()=>r("center"),variant:"center"===t?"contained":"outlined",children:"Center"},"center"),(0,i.jsx)(o.Z,{onClick:()=>r("right"),variant:"right"===t?"contained":"outlined",children:"Right"},"right")]})}var s=n(54538),d=n.n(s),c=n(51278),u=n(36232),h=n(508),p=n(65201),g=n(99635),x=n(23709),m=n(67745),f=n(50378),v=n(36372);function y(e){let{children:t,chartsTheme:n,enablePinning:r=!1}=e,[l,o]=(0,s.useState)(null),a=(0,s.useMemo)(()=>({chartsTheme:n,enablePinning:r,lastTooltipPinnedCoords:l,setLastTooltipPinnedCoords:o}),[n,r,l,o]);return(0,i.jsx)(b.Provider,{value:a,children:t})}let b=(0,s.createContext)(void 0);function j(){let e=(0,s.useContext)(b);if(void 0===e)throw Error("No ChartsThemeContext found. Did you forget a Provider?");return e}function C(){return j().chartsTheme}var w=n(59161),Z=n(56141),S=n.n(Z),k=n(66726),T=n.n(k),A=n(8890),M=n(48906),D=n(27806);(0,u.D)([g.N,M.N,D.N,A.N,p.N,x.N,m.N,f.N]);let I=["click","dblclick","mousedown","mousemove","mouseup","mouseover","mouseout","globalout","contextmenu"],E=["datazoom","downplay","highlight"],L=(0,s.memo)(function({option:e,theme:t,renderer:n,sx:r,onEvents:l,_instance:o,syncGroup:a,onChartInitialized:d}){let c=(0,s.useRef)(e),u=(0,s.useRef)(e),h=(0,s.useRef)(null),p=(0,s.useRef)(null);return(0,s.useLayoutEffect)(()=>{if(null!==h.current&&null===p.current&&(p.current=(0,w.S1)(h.current,t,{renderer:n??"canvas"}),void 0!==p.current))return p.current.setOption(c.current,!0),d?.(p.current),void 0!==o&&(o.current=p.current),()=>{null!==p.current&&(p.current.dispose(),p.current=null)}},[o,d,t,n]),(0,s.useEffect)(()=>{p.current&&a&&(p.current.group=a,(0,w.$j)([p.current]))},[a,p]),(0,s.useEffect)(()=>{!(void 0===u.current||S()(u.current,e))&&p.current&&(p.current.setOption(e,!0),u.current=e)},[e]),(0,s.useLayoutEffect)(()=>{let e=T()(()=>{p.current&&p.current.resize()},200);return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[]),(0,s.useEffect)(()=>{let e=p.current;if(e&&void 0!==l)return function(e,t){if(void 0!==t){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n]??null;r&&function(t,n){var r,i;"function"==typeof n&&((r=t,I.includes(r))?e.on(t,t=>n(t,e)):(i=t,E.includes(i))?e.on(t,e=>n(e)):e.on(t,()=>n(null,e)))}(n,r)}}}(e,l),()=>{if(void 0!==e&&!0!==e.isDisposed())for(let t in l)e.off(t)}},[l]),(0,s.useEffect)(()=>{T()(()=>{p.current&&p.current.resize()},200,{leading:!0})()},[r]),(0,i.jsx)(v.Z,{ref:h,sx:r})});var F=n(15409),N=n.n(F);function R(e,t){return[N()({type:"value",boundaryGap:[0,"10%"],axisLabel:{formatter:e=>(0,c.formatValue)(e,t)}},e)]}function P(e){if(0===e.length)return 36e5;let t=e[e.length-1];return void 0===e[0]||void 0===t?36e5:t-e[0]}function O(e){let{width:t,height:n,data:r,format:l={unit:"decimal"},mode:o="value"}=e,a=C(),d=(0,s.useMemo)(()=>{if(!r||!r.length)return a.noDataOption;let e=[];return r.map(t=>{e.push([t.label,t.value])}),{title:{show:!1},dataset:[{dimensions:["label","value"],source:e}],xAxis:R({},l),yAxis:{type:"category",splitLine:{show:!1},axisLabel:{overflow:"truncate",width:t/3}},series:{type:"bar",label:{show:!0,position:"right",formatter:e=>e.data[1]?"percentage"===o?(0,c.formatValue)(e.data[1],{unit:"percent",decimalPlaces:l.decimalPlaces}):(0,c.formatValue)(e.data[1],l):void 0,barMinWidth:14,barCategoryGap:6},itemStyle:{borderRadius:4,color:a.echartsTheme[0]}},tooltip:{appendToBody:!0,confine:!0,formatter:e=>e.data[1]&&`<b>${e.name}</b>   ${(0,c.formatValue)(e.data[1],l)}`},grid:{left:"5%",right:"5%"}}},[r,a,t,o,l]);return(0,i.jsx)(v.Z,{style:{width:t,height:n},sx:{overflow:"auto"},children:(0,i.jsx)(L,{sx:{minHeight:n,height:r?20*r.length:"100%"},option:d,theme:a.echartsTheme})})}(0,u.D)([h.N,p.N,g.N,x.N,m.N,f.N]);var z=n(25283),W=n(75094),$=n(8695),H=n(53094),B=n(20791),_=n(80354);let V=({color:e,onChange:t,onClear:n,palette:r})=>{let[l,o]=(0,s.useState)(e),a=e=>{o(e),t?.(e)};return(0,i.jsxs)(z.Z,{spacing:1,children:[(0,i.jsx)(H.gW,{color:e,onChange:a,style:{width:"100%"}}),(0,i.jsx)(z.Z,{direction:"row",flexWrap:"wrap",justifyContent:"space-evenly",width:"200px",children:r&&r.map((e,t)=>(0,i.jsx)(W.Z,{size:"small","aria-label":`change color to ${e}`,sx:{color:e},onClick:()=>a(e),children:(0,i.jsx)(B.default,{})},t))}),(0,i.jsxs)(z.Z,{direction:"row",gap:1,alignItems:"center",children:[(0,i.jsx)($.Z,{inputProps:{"aria-label":"enter hex color"},fullWidth:!0,value:l,onChange:e=>{let n=e.target.value.replace(/([^0-9A-F]+)/gi,"").substring(0,8);o(`#${n}`),U(e.target.value)&&t?.(e.target.value)}}),n&&(0,i.jsx)(W.Z,{onClick:n,children:(0,i.jsx)(_.default,{})})]})]})},U=(e,t)=>{let n=/^#?([0-9A-F]{3,8})$/i.exec(e),r=n&&n[1]?n[1].length:0;return 3===r||6===r||!!t&&4===r||!!t&&8===r};var Y=n(6714),G=n(12709);function X({label:e,color:t,onColorChange:n,onClear:r}){let[l,o]=(0,s.useState)(null),a=!!l,{thresholds:{defaultColor:d,palette:c}}=C();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(K,{size:"small","aria-label":`change ${e} color`,isSelected:a,iconColor:t,onClick:e=>{o(e.currentTarget)},children:(0,i.jsx)(B.default,{})}),(0,i.jsx)(Y.ZP,{"data-testid":"options color picker",open:a,anchorEl:l,onClose:()=>{o(null)},slotProps:{paper:{sx:{padding:e=>e.spacing(2)}}},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,i.jsx)(V,{color:t,palette:[d,...c],onChange:n,onClear:r})})]})}let K=(0,G.ZP)(W.Z,{shouldForwardProp:e=>"isSelected"!==e&&"iconColor"!==e})(({iconColor:e,isSelected:t})=>({backgroundColor:t&&e?`${e}3F`:"undefined",color:e}));var q=n(94776),J=n(75586),Q=n(83675),ee=n(73845),et=n(12577);function en(...e){return e.flatMap(e=>void 0===e?[]:Array.isArray(e)?e:[e])}let er=(0,s.memo)(function({color:e,sx:t,...n}){return(0,i.jsx)(v.Z,{...n,sx:en({height:4,width:16,margin:e=>e.spacing(.5)},t),style:{backgroundColor:e}})}),ei=(0,s.forwardRef)(function({item:e,sx:t,truncateLabel:n,onClick:r,isVisuallySelected:l,onMouseOver:o,onMouseOut:a,index:d,...c},u){let[h,p]=(0,s.useState)(n);return(0,i.jsxs)(ee.Z,{...c,role:"listitem",sx:en({padding:0,cursor:"pointer"},t),dense:!0,onClick:t=>{r(t,e.id),e.onClick?.(t)},onMouseOver:t=>o?.(t,{id:e.id,index:d}),onMouseOut:t=>a?.(t,{id:e.id,index:d}),selected:l,ref:u,children:[(0,i.jsx)(v.Z,{sx:{display:"flex",alignItems:"center"},children:(0,i.jsx)(er,{color:e.color})}),(0,i.jsx)(et.Z,{primary:e.label,primaryTypographyProps:{noWrap:h},onMouseOver:function(){n&&p(!1)},onMouseOut:function(){n&&p(!0)}})]})}),el=(0,s.memo)(ei);function eo(e,t){return"ALL"!==t&&!!t[e.id]}function ea({items:e,height:t,width:n,selectedItems:r,onLegendItemClick:l,onItemMouseOver:o,onItemMouseOut:a}){let s=e.length>5;return(0,i.jsx)(Q.OO,{style:{height:t,width:n},data:e,itemContent:(e,t)=>(0,i.jsx)(el,{item:t,index:e,truncateLabel:s,isVisuallySelected:eo(t,r),onClick:l,onMouseOver:o,onMouseOut:a,sx:{width:"100%",wordBreak:"break-word",overflow:"hidden"}},t.id),role:"list"})}function es({height:e,items:t,selectedItems:n,onLegendItemClick:r,onItemMouseOver:l,onItemMouseOut:o}){return(0,i.jsx)(v.Z,{component:"ul",sx:{width:"100%",height:e,padding:[0,1,0,0],overflowY:"scroll",margin:0},children:t.map((e,t)=>(0,i.jsx)(el,{item:e,index:t,isVisuallySelected:eo(e,n),onMouseOver:l,onMouseOut:o,onClick:r,sx:{width:"auto",float:"left",paddingRight:1.5}},e.id))})}var ed=n(22577),ec=n(80900),eu=n(14968),eh=n(16838);let ep=(0,s.forwardRef)(function(e,t){return(0,i.jsx)(eu.Z,{...e,ref:t,sx:{backgroundColor:e=>e.palette.background.default,"&:hover":{backgroundColor:e=>(0,eh.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity)}}})});var eg=n(56174);let ex=(0,s.forwardRef)(function(e,t){return(0,i.jsx)(eg.Z,{...e,ref:t})});var em=n(90190);let ef=(0,G.ZP)(em.Z)(({theme:e})=>({tableLayout:"fixed",borderCollapse:"separate",backgroundColor:e.palette.background.default})),ev={compact:"small",standard:"medium",comfortable:"medium"},ey=(0,s.forwardRef)(function({density:e,...t},n){return(0,i.jsx)(ef,{...t,tabIndex:-1,size:ev[e],ref:n,sx:{width:"100%"}})});var eb=n(31889);let ej=(0,s.forwardRef)(function(e,t){return(0,i.jsx)(eb.Z,{...e,ref:t})});var eC=n(52054),ew=n(78214),eZ=n(23147),eS=n(96205);let ek=150,eT=40;function eA(e,t,{isHeader:n,isLastColumn:r,isFirstColumn:i,defaultColumnHeight:l}={}){var o,a;let s=e.spacing(1),d=e.spacing(1.25),c=e.spacing(2),u=i?c:d,h=r?c:d,p=e.typography.body1.lineHeight,g=e.typography.body1.fontSize;"compact"===t&&(s=e.spacing(.5),d=e.spacing(.5),c=e.spacing(1),u=i?c:d,h=r?c:d,p=e.typography.body2.lineHeight,g=e.typography.body2.fontSize),"comfortable"===t&&(s=e.spacing(2),d=e.spacing(1.5),c=e.spacing(2),u=i?c:d,h=r?c:d,p=e.typography.body1.lineHeight,g=e.typography.body1.fontSize);let x=n||!l||"auto"===l?(o=p,a=s,("string"==typeof o?parseInt(o,10):o??0)+2*("string"==typeof a?parseInt(a,10):a)):l;return{padding:`${s} ${h} ${s} ${u}`,height:x,fontSize:g,lineHeight:p}}function eM(e){return e.map(({width:e,align:t,headerDescription:n,cellDescription:r,enableSorting:i,...l})=>({...l,..."auto"===e||void 0===e?{size:0,minSize:0,maxSize:0}:{size:e},enableSorting:!!i,meta:{align:t,headerDescription:n,cellDescription:r}}))}let eD=(0,G.ZP)(eS.Z)(({theme:e})=>({padding:0,backgroundColor:"inherit","&.MuiTableCell-head":{backgroundColor:e.palette.background.default},"&:focus-visible":{outline:`solid 1px ${e.palette.primary.main}`,outlineOffset:"-1px",borderRadius:0}}));function eI({children:e,density:t,variant:n,width:r,defaultColumnHeight:l,focusState:o="none",onFocusTrigger:a,isFirstColumn:d,isLastColumn:c,description:u,align:h,color:p,backgroundColor:g,...x}){let m=(0,q.Z)(),f=(0,s.useRef)(),y="head"===n;(0,s.useEffect)(()=>{"trigger-focus"===o&&f.current&&f.current.focus()},[o]);let b=e=>{a?.(e)};return(0,i.jsx)(eD,{...x,tabIndex:"none"!==o?0:-1,onFocus:e=>{let t=e.currentTarget?.querySelector('a[href], button, input, textarea, select, details,[role="button"]');t&&t.focus()},onClick:b,onKeyUp:b,style:{width:r},sx:{position:"relative",borderBottom:y?`solid 1px ${m.palette.grey[100]}`:`solid 1px ${m.palette.grey[50]}`,"&:hover #original-cell":{position:"absolute",top:0,left:0,zIndex:10,width:"fit-content",minWidth:"100%",whiteSpace:"nowrap",overflow:"visible",backgroundColor:`${g??m.palette.background.default} !important`,outline:`solid 1px ${m.palette.info.main}`,outlineOffset:"-1px"}},ref:f,children:(0,i.jsx)(v.Z,{id:"original-cell",sx:{...eA(m,t,{isHeader:y,isLastColumn:c,isFirstColumn:d,defaultColumnHeight:l}),position:"relative",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexDirection:"inherit"},style:{backgroundColor:g??"inherit",color:p??"inherit"},title:u,"aria-label":u,textAlign:h,children:e})})}function eE({onSort:e,sortDirection:t,nextSortDirection:n,children:r,...l}){let o=!!e,a=(0,i.jsx)(eC.Z,{noWrap:!0,variant:"inherit",component:"div",color:"inherit",children:r}),s=!!t;return(0,i.jsx)(eI,{...l,children:o?(0,i.jsx)(ew.Z,{onClick:e,direction:s?t:n,active:s,sx:{verticalAlign:"unset",maxWidth:"100%","&:focus-visible":{[`& .${eZ.Z.icon}`]:{opacity:s?1:.5}}},children:a}):a})}var eL=n(59019);let eF=(0,s.forwardRef)(function(e,t){return(0,i.jsx)(eL.Z,{...e,tabIndex:-1,ref:t})}),eN={row:0,column:0},eR=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];function eP({width:e,height:t,density:n,defaultColumnWidth:r,defaultColumnHeight:l,onRowClick:o,onRowMouseOver:a,onRowMouseOut:d,rows:c,columns:u,headers:h,cellConfigs:p}){let g=(0,s.useRef)(null),x=(0,s.useRef)({startIndex:0,endIndex:0}),m=function({visibleRange:e,virtualTable:t,maxRows:n,maxColumns:r}){return function({maxRows:e,maxColumns:t,onActiveCellChange:n}){let[r,i]=(0,s.useState)(eN),[l,o]=(0,s.useState)(!1);return{activeCell:r,isActive:l,onTableKeyDown:(0,s.useCallback)(r=>{let l=r.key;(eR.includes(l)||"Home"===l||"End"===l||"PageDown"===l||"PageUp"===l)&&i(i=>{let o=i.row,a=i.column;"ArrowRight"===l&&a<t-1?(r.preventDefault(),a+=1):"ArrowLeft"===l&&a>0?(r.preventDefault(),a-=1):"ArrowDown"===l&&o<e-1?(r.preventDefault(),o+=1):"ArrowUp"===l&&o>0?(r.preventDefault(),o-=1):"Home"===l?(r.preventDefault(),o=0,a=0):"End"===l&&(r.preventDefault(),o=e-1,a=t-1);let s={column:a,row:o},d=n?.(r,i,s)||s;return d.row===i.row&&d.column===i.column?i:d})},[t,e,n]),onCellFocus:e=>{(e.column!==r.column||e.row!==r.row||!l)&&(o(!0),i(e))}}}({maxRows:n,maxColumns:r,onActiveCellChange:(r,i,l)=>{let o=r.key,a=l&&(i.column!==l.column||i.row!==l.row),s=l?.row??i.row;if("ArrowDown"===o&&a)(s-1<e.current.startIndex||s-1>e.current.endIndex)&&t.current?.scrollToIndex({index:s-1,align:"end"});else if("ArrowUp"===o&&a)(s-1<e.current.startIndex||s-1>e.current.endIndex)&&t.current?.scrollToIndex({index:s-1,align:"start"});else if(a&&("Home"===o||"End"===o))t.current?.scrollToIndex({index:Math.max(s-1,0),align:"start"});else if("PageDown"===o){r.preventDefault();let l=i.row;return l=Math.min(n-1,e.current.endIndex+1),t.current?.scrollToIndex({index:l-1,align:"start"}),{row:l,column:i.column}}else if("PageUp"===o){let n=i.row;return n=Math.max(0,e.current.startIndex-1),t.current?.scrollToIndex({index:n-1,align:"end"}),{row:n,column:i.column}}return l}})}({visibleRange:x,virtualTable:g,maxRows:c.length+1,maxColumns:u.length}),f=e=>e.row===m.activeCell.row&&e.column===m.activeCell.column?m.isActive?"trigger-focus":"focus-next":"none",y=(0,s.useMemo)(()=>({Scroller:eF,Table:t=>(0,i.jsx)(ey,{...t,width:e,density:n,onKeyDown:m.onTableKeyDown}),TableHead:ej,TableRow:({item:e,...t})=>{let r=c[t["data-index"]];if(!r)return null;let l={id:r.id,index:r.index};return(0,i.jsx)(ep,{...t,onClick:e=>o(e,r.id),density:n,onMouseOver:e=>{a?.(e,l)},onMouseOut:e=>{d?.(e,l)}})},TableBody:ex}),[n,m.onTableKeyDown,o,d,a,c,e]);return(0,i.jsx)(v.Z,{style:{width:e,height:t},children:(0,i.jsx)(Q._n,{ref:g,totalCount:c.length,components:y,rangeChanged:e=>{x.current=e},fixedHeaderContent:()=>(0,i.jsx)(i.Fragment,{children:h.map(e=>(0,i.jsx)(ep,{density:n,children:e.headers.map((e,t,o)=>{let a=e.column,s={row:0,column:t},d=a.getIsSorted(),c=a.getNextSortingOrder();return(0,i.jsx)(eE,{onSort:a.getCanSort()?a.getToggleSortingHandler():void 0,sortDirection:"string"==typeof d?d:void 0,nextSortDirection:"string"==typeof c?c:void 0,width:a.getSize()||r,defaultColumnHeight:l,align:a.columnDef.meta?.align,variant:"head",density:n,description:a.columnDef.meta?.headerDescription,focusState:f(s),onFocusTrigger:()=>m.onCellFocus(s),isFirstColumn:0===t,isLastColumn:t===o.length-1,children:(0,ed.ie)(a.columnDef.header,e.getContext())},e.id)})},e.id))}),itemContent:e=>{let t=c[e];return t?(0,i.jsx)(i.Fragment,{children:t.getVisibleCells().map((t,o,a)=>{let s;let d={row:e+1,column:o},c=t.getContext(),u=p?.[c.cell.id],h=t.column.columnDef.cell,g="function"==typeof h?h(c):null,x=t.column.columnDef.meta?.cellDescription;return"function"==typeof x?s=x(c):x&&"string"==typeof g&&(s=g),(0,i.jsx)(eI,{"data-testid":t.id,title:s||u?.text||g,width:t.column.getSize()||r,defaultColumnHeight:l,align:t.column.columnDef.meta?.align,density:n,focusState:f(d),onFocusTrigger:()=>m.onCellFocus(d),isFirstColumn:0===o,isLastColumn:o===a.length-1,description:s,color:u?.textColor??void 0,backgroundColor:u?.backgroundColor??void 0,children:u?.text||g},t.id)})}):null}})})}var eO=n(82707);function ez({color:e,density:t,...n}){let r="compact"===t;return(0,i.jsx)(eO.Z,{size:r?"small":"medium",...n,focusRipple:!1,tabIndex:-1,sx:{color:e,padding:e=>e.spacing(r?.25:.5),position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","&.Mui-checked":{color:e},"&.Mui-focusVisible":{background:e?(0,eh.Fq)(e,.5):void 0},"& .MuiSvgIcon-root":{fontSize:r?16:18}}})}let eW=(e,t)=>`${t}`,e$={},eH=[];function eB({data:e,columns:t,cellConfigs:n,density:r="standard",defaultColumnWidth:l=ek,defaultColumnHeight:o="auto",checkboxSelection:a,onRowSelectionChange:d,onSortingChange:c,getCheckboxColor:u,getRowId:h=eW,rowSelection:p=e$,sorting:g=eH,rowSelectionVariant:x="standard",...m}){let f=(0,q.Z)(),v=(0,s.useCallback)((e,t,n)=>{"standard"===x||n?t.toggleSelected():t.getIsSelected()&&!e.getIsAllRowsSelected()?e.toggleAllRowsSelected():d?.({[t.id]:!0})},[d,x]),y=(0,s.useCallback)((e,t,n)=>{let r=e.nativeEvent&&(e.nativeEvent instanceof MouseEvent||e.nativeEvent instanceof KeyboardEvent)?e.nativeEvent:void 0;v(t,n,!!r?.metaKey||!!r?.shiftKey)},[v]),b=(0,s.useMemo)(()=>({id:"checkboxRowSelect",size:28,header:({table:e})=>(0,i.jsx)(ez,{checked:e.getIsAllRowsSelected(),indeterminate:e.getIsSomeRowsSelected(),onChange:e.getToggleAllRowsSelectedHandler(),color:f.palette.text.primary,density:r}),cell:({row:e,table:t})=>(0,i.jsx)(ez,{checked:e.getIsSelected(),indeterminate:e.getIsSomeSelected(),onChange:n=>{y(n,t,e)},color:u?.(e.original),density:r}),enableSorting:!1}),[f.palette.text.primary,r,u,y]),j=(0,s.useMemo)(()=>{let e=eM(t);return a&&e.unshift(b),e},[b,a,t]),C=(0,ed.b7)({data:e,columns:j,getRowId:h,getCoreRowModel:(0,ec.sC)(),getSortedRowModel:(0,ec.tj)(),enableRowSelection:!!a,onRowSelectionChange:e=>{let t="function"==typeof e?e(p):e;d?.(t)},onSortingChange:e=>{let t="function"==typeof e?e(g):e;c?.(t)},sortDescFirst:!0,state:{rowSelection:p,sorting:g}}),w=(0,s.useCallback)((e,t)=>{let n=C.getRow(t);v(C,n,e.metaKey||e.shiftKey)},[v,C]);return(0,i.jsx)(eP,{...m,density:r,defaultColumnWidth:l,defaultColumnHeight:o,onRowClick:w,rows:C.getRowModel().rows,columns:C.getAllFlatColumns(),headers:C.getHeaderGroups(),cellConfigs:n})}let e_=[{accessorKey:"label",header:"Name",enableSorting:!0,cell:({getValue:e})=>(0,i.jsx)("span",{title:e(),children:e()})}],eV=e=>e.id,eU=e=>e.color;function eY({items:e,selectedItems:t,onSelectedItemsChange:n,onItemMouseOver:r,onItemMouseOut:l,height:o,width:a,columns:d=[],sorting:c,onSortingChange:u}){let h=(0,s.useMemo)(()=>"string"!=typeof t?t:e.reduce((e,t,n)=>(e[eV(t,n)]=!0,e),{}),[t,e]),p=(0,s.useMemo)(()=>[...e_,...d],[d]);return(0,i.jsx)(eB,{height:o,width:a,rowSelection:h,onRowSelectionChange:n,onRowMouseOver:r,onRowMouseOut:l,sorting:c,onSortingChange:u,data:e,columns:p,density:"compact",defaultColumnWidth:"auto",getRowId:eV,getCheckboxColor:eU,checkboxSelection:!0,rowSelectionVariant:"legend"})}function eG({width:e,height:t,options:n,data:r,selectedItems:l,onSelectedItemsChange:o,onItemMouseOver:a,onItemMouseOut:s,tableProps:d}){let u;let h=(e,t)=>{let n=e.metaKey||e.shiftKey;o((0,J.Uy)(l,e=>{if("ALL"===e)return{[t]:!0};let r=!!e[t];return n?(r?delete e[t]:e[t]=!0,e):r?"ALL":{[t]:!0}}))},p=(0,c.getLegendMode)(n.mode),g=r.length>=500,x={height:t,items:r,selectedItems:l,onLegendItemClick:h,onItemMouseOver:a,onItemMouseOut:s};return(u="table"===p?(0,i.jsx)(eY,{...x,onSelectedItemsChange:o,width:e,...d}):"right"===n.position||g?(0,i.jsx)(ea,{...x,width:e,onLegendItemClick:h}):(0,i.jsx)(es,{...x,onLegendItemClick:h}),"right"===n.position)?(0,i.jsx)(v.Z,{style:{width:e,height:t},sx:{position:"absolute",top:0,right:0},children:u}):(0,i.jsx)(v.Z,{style:{width:e,height:t},sx:{position:"absolute",bottom:0},children:u})}let eX={medium:{bottom:6,right:250},small:{bottom:4,right:150}};function eK({children:e,legendProps:t,width:n,height:r,spacing:l=0,legendSize:o,minChildrenWidth:a=100,minChildrenHeight:s=100}){let{content:d,legend:u,margin:h}=function({width:e,height:t,legendProps:n,legendSize:r,minChildrenHeight:i,minChildrenWidth:l,spacing:o,theme:a}){let s,d;let u=n?.options,h={legend:{show:!1,width:0,height:0},content:{width:e,height:t},margin:{right:0,bottom:0}};if(!u)return h;let{position:p}=u;if("list"===(0,c.getLegendMode)(u.mode))s="right"===p?200:e,d=40,"right"===p?d=t:t>=300&&(d=100);else{let i=eA(a,"compact"),l=(n?.tableProps?.columns||[]).reduce((e,t)=>("number"==typeof t.width&&(e+=t.width),e),0);s="right"===p?eX[r].right+l:e;let o=Math.min(eX[r].bottom,n.data.length+1);d="bottom"===p?o*i.height:t}let g="right"===p?e-s-o:e,x="bottom"===p?t-d-o:t;return"right"===p&&g<l||"bottom"===p&&x<i?h:{legend:{width:s,height:d,show:!0},content:{width:g,height:x},margin:{right:"right"===p?o:0,bottom:"bottom"===p?o:0}}}({width:n,height:r,legendProps:t,minChildrenHeight:s,minChildrenWidth:a,spacing:l,theme:(0,q.Z)(),legendSize:(0,c.getLegendSize)(o)});return(0,i.jsxs)(v.Z,{style:{width:n,height:r},sx:{position:"relative",overflow:"hidden"},children:[(0,i.jsx)(v.Z,{style:{width:d.width,height:d.height},sx:{marginRight:`${h.right}px`,marginBottom:`${h.bottom}px`,overflow:"hidden"},children:"function"==typeof e?e({width:d.width,height:d.height}):e}),t&&u.show&&(0,i.jsx)(eG,{...t,height:u.height,width:u.width})]})}let eq=(0,s.forwardRef)(function({debounceMs:e=250,value:t,onChange:n,...r},l){let[o,a]=(0,s.useState)(t),d=(0,s.useCallback)(e=>{n?.(e)},[n]),c=(0,s.useMemo)(()=>T()(d,e),[e,d]);return(0,i.jsx)($.Z,{ref:l,value:o,onChange:function(e){a(e.target.value),c(e.target.value)},...r})});eq.displayName="TextField";var eJ=n(51602),eQ=n(19978),e0=n(56873),e1=n(70616),e5=n(10763);let e2=(0,G.ZP)("form")({overflowY:"auto",display:"flex",flexDirection:"column"}),e6=e=>({position:"absolute",top:e.spacing(.5),right:e.spacing(.5)}),e7=({children:e,...t})=>(0,i.jsx)(e0.Z,{...t,children:e});e7.Header=({children:e,onClose:t,...n})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eJ.Z,{style:{textOverflow:"ellipsis",overflow:"hidden"},...n,children:e}),t&&(0,i.jsx)(W.Z,{"aria-label":"Close",onClick:t,sx:e6,children:(0,i.jsx)(e5.default,{})})]}),e7.Form=e2,e7.Content=({children:e,sx:t,...n})=>(0,i.jsx)(eQ.Z,{dividers:!0,...n,sx:en({minWidth:"500px",textWrap:"balance"},t),children:e}),e7.PrimaryButton=({children:e,...t})=>(0,i.jsx)(o.Z,{variant:"contained",type:"submit",...t,children:e}),e7.SecondaryButton=({children:e,...t})=>(0,i.jsx)(o.Z,{variant:"outlined",color:"secondary",...t,children:e}),e7.Actions=e1.Z;let e3=e=>{let{description:t,isOpen:n,onCancel:r,onDiscardChanges:l}=e;return(0,i.jsxs)(e7,{open:n,"aria-labelledby":"discard-dialog",children:[(0,i.jsx)(e7.Header,{children:"Discard Changes"}),(0,i.jsx)(e7.Content,{children:t}),(0,i.jsxs)(e7.Actions,{children:[(0,i.jsx)(o.Z,{variant:"contained",onClick:l,children:"Discard Changes"}),(0,i.jsx)(o.Z,{variant:"outlined",color:"secondary",onClick:r,children:"Cancel"})]})]})};var e4=n(90192),e8=n(23626),e9=n(39398);function te(e){void 0===globalThis.useIdValue&&(globalThis.useIdValue=0);let t=(0,s.useRef)(void 0);return void 0===t.current&&(t.current=`${e}-${globalThis.useIdValue++}`),t.current}var tt=n(32964),tn=n(87143);let tr=({id:e,title:t,description:n,placement:r,children:l,enterDelay:o,enterNextDelay:a})=>{let s=(0,i.jsx)("span",{children:l});return(0,i.jsx)(tl,{arrow:!0,id:e,placement:r??"top",title:(0,i.jsx)(ti,{title:t,description:n}),enterDelay:o??500,enterNextDelay:a??500,children:s})},ti=({title:e,description:t})=>(0,i.jsxs)(i.Fragment,{children:[e&&(0,i.jsx)(eC.Z,{variant:"body2",sx:e=>({color:e.palette.text.primary,fontWeight:e.typography.fontWeightMedium}),children:e}),(0,i.jsx)(eC.Z,{variant:"caption",sx:e=>({color:e.palette.text.primary,whiteSpace:"pre-line"}),children:t})]}),tl=(0,G.ZP)(({className:e,...t})=>(0,i.jsx)(tt.Z,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${tn.Z.tooltip}`]:{backgroundColor:e.palette.background.tooltip,color:e.palette.text.primary,maxWidth:"300px",padding:e.spacing(1),boxShadow:e.shadows[1]},[`& .${tn.Z.arrow}`]:{color:e.palette.background.tooltip}})),to=({label:e,control:t,description:n})=>{let r=te("EditorSectionControl"),l=`${r}-control`;return(0,i.jsx)(e4.Z,{children:(0,i.jsxs)(z.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(z.Z,{direction:"row",alignItems:"center",justifyContent:"center",children:[(0,i.jsx)(e8.Z,{htmlFor:l,children:e}),n&&(0,i.jsx)(tr,{description:n,enterDelay:100,children:(0,i.jsx)(W.Z,{size:"small",sx:e=>({borderRadius:e.shape.borderRadius,padding:"4x",margin:"0 2px"}),children:(0,i.jsx)(e9.default,{"aria-describedby":"info-tooltip","aria-hidden":!1,fontSize:"inherit",sx:{color:e=>e.palette.grey[700]}})})})]}),(0,i.jsxs)(v.Z,{sx:{width:"180px",textAlign:"right"},children:[" ",d().cloneElement(t,{id:l})]})]})})};var ta=n(11774),ts=n(57174);function td({options:e,renderInput:t=e=>(0,i.jsx)($.Z,{...e}),...n}){let r=e=>e.label??e.id;return(0,i.jsx)(ta.Z,{isOptionEqualToValue:(e,t)=>e.id===t.id,getOptionDisabled:e=>!!e.disabled,getOptionLabel:r,options:e,renderInput:t,renderOption:({key:e,...t},n)=>(0,i.jsx)("li",{...t,children:(0,i.jsxs)("div",{children:[(0,i.jsx)(eC.Z,{variant:"body1",component:"div",children:r(n)}),n.description&&(0,i.jsx)(eC.Z,{variant:"body2",component:"div",sx:{color:e=>e.palette.text.secondary},children:n.description})]})},e),filterOptions:(0,ts.D)({stringify:e=>`${r(e)} ${e.description||""}`}),...n})}let tc=[{id:"compact",label:"Compact"},{id:"standard",label:"Standard"},{id:"comfortable",label:"Comfortable"}];function tu({onChange:e,value:t="standard"}){return(0,i.jsx)(to,{label:"Density",control:(0,i.jsx)(td,{value:tc.find(e=>e.id===t),options:tc,getOptionLabel:e=>e.label,onChange:(t,{id:n})=>{e(n)},disableClearable:!0})})}function th(){return(0,i.jsxs)(z.Z,{direction:"row",alignItems:"center",children:[(0,i.jsx)(v.Z,{sx:{content:'""',width:8,height:8,boxSizing:"border-box",position:"absolute",backgroundColor:e=>e.palette.background.default,border:e=>`2px solid ${e.palette.info.main}`,borderRadius:"50%"}}),(0,i.jsx)(v.Z,{sx:{content:'""',height:2,background:e=>e.palette.info.main,width:"100%"}})]})}var tp=n(39020),tg=n(55255),tx=n(62422),tm=n(74183);let tf={type:"idle"};function tv({elements:e,accessKey:t,axis:n="vertical",onChange:r}){return(0,s.useEffect)(()=>(0,tg.sd)({onDrop({location:i,source:l}){let o=i.current.dropTargets[0];if(!o)return;let a=l.data,s=o.data,d=e.findIndex(e=>e[t]===a[t]),c=e.findIndex(e=>e[t]===s[t]);if(c<0||d<0)return;let u=(0,tm.A)(s);r((0,tp.h)({list:e,startIndex:d,indexOfTarget:c,closestEdgeOfTarget:u,axis:n}))}}),[t,n,e,r])}function ty({children:e,data:t}){let n=(0,s.useRef)(null),[r,l]=(0,s.useState)(tf);return(0,s.useEffect)(()=>{let e=n.current;if(e)return(0,tx.$)((0,tg.En)({element:e,getInitialData:()=>t,onDragStart(){l({type:"is-dragging"})},onDrop(){l(tf)}}),(0,tg.wO)({element:e,canDrop:({source:t})=>t.element!==e,getData:({input:n})=>(0,tm.X)(t,{element:e,input:n,allowedEdges:["top","bottom"]}),getIsSticky:()=>!0,onDragEnter({self:e}){l({type:"is-dragging-over",closestEdge:(0,tm.A)(e.data)})},onDrag({self:e}){let t=(0,tm.A)(e.data);l(e=>"is-dragging-over"===e.type&&e.closestEdge===t?e:{type:"is-dragging-over",closestEdge:t})},onDragLeave(){l(tf)},onDrop(){l(tf)}}))},[t]),(0,i.jsxs)(z.Z,{ref:n,spacing:1,style:{opacity:"is-dragging"===r.type?.5:"unset"},children:["is-dragging-over"===r.type&&"top"===r.closestEdge?(0,i.jsx)(th,{}):null,e,"is-dragging-over"===r.type&&"bottom"===r.closestEdge?(0,i.jsx)(th,{}):null]})}var tb=n(5549),tj=n(10517),tC=n(11682);function tw(e,t){let n=t.indexOf(e);if(0===n)return t;let r=[...t];return r.splice(n,1),r.splice(n-1,0,e),r}function tZ(e,t){let n=t.indexOf(e);if(n===t.length-1)return t;let r=[...t];return r.splice(n,1),r.splice(n+1,0,e),r}let tS=(0,s.forwardRef)(function({onMoveUp:e,onMoveDown:t,onMoveLeft:n,onMoveRight:r,menuSx:l,...o},a){let[d,c]=(0,s.useState)(null),u=!!d;function h(e){c(null),e?.()}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(W.Z,{...o,ref:a,"aria-label":"move","aria-haspopup":!0,"aria-expanded":u,size:"small",onClick:function(e){c(e.currentTarget)},children:(0,i.jsx)(tC.default,{})}),(e||t||n||r)&&(0,i.jsxs)(tb.Z,{id:"drag-button-menu",MenuListProps:{"aria-labelledby":"drag-button-menu"},anchorEl:d,open:u,onClose:()=>h(void 0),sx:l,children:[e&&(0,i.jsx)(tj.Z,{onClick:()=>h(e),children:"Move Up"}),t&&(0,i.jsx)(tj.Z,{onClick:()=>h(t),children:"Move Down"}),n&&(0,i.jsx)(tj.Z,{onClick:()=>h(n),children:"Move Left"}),r&&(0,i.jsx)(tj.Z,{onClick:()=>h(r),children:"Move Right"}),r&&(0,i.jsx)(tj.Z,{onClick:()=>h(r),children:"Move Right"})]})]})});var tk=n(76439),tT=n(73957);let tA=({anchor:e="right",isOpen:t,onClose:n,PaperProps:r,children:l,...o})=>{let a=(0,tk.Z)("(max-width:1080px)");return(0,i.jsx)(tT.ZP,{...o,open:t,onClose:n,anchor:e,PaperProps:{...r,sx:en({width:a?"100%":"1080px",overflow:"hidden"},r?.sx)},children:l})};var tM=n(315);function tD(e){let{error:t}=e;return(0,i.jsx)(tM.Z,{severity:"error",children:t.message})}var tI=n(68715);let tE=[{id:"default",label:"Default",value:void 0},{id:"12",label:"12",value:12},{id:"14",label:"14",value:14},{id:"16",label:"16",value:16},{id:"20",label:"20",value:20},{id:"24",label:"24",value:24},{id:"28",label:"28",value:28},{id:"32",label:"32",value:32},{id:"36",label:"36",value:36},{id:"40",label:"40",value:40},{id:"48",label:"48",value:48},{id:"56",label:"56",value:56},{id:"64",label:"64",value:64},{id:"72",label:"72",value:72},{id:"96",label:"96",value:96},{id:"128",label:"128",value:128},{id:"160",label:"160",value:160},{id:"192",label:"192",value:192}];function tL({value:e,onChange:t}){return(0,i.jsx)(to,{label:"Font Size",control:(0,i.jsx)(td,{value:tE.find(t=>t.value===e),options:tE,getOptionLabel:e=>e.label,onChange:(e,{value:n})=>{t(n)},disableClearable:!0})})}var tF=n(79119);function tN({action:e,submitText:t="Save",cancelText:n="Cancel",isReadonly:r,isValid:l,onActionChange:a,onSubmit:s,onDelete:d,onCancel:c,...u}){return(0,i.jsx)(z.Z,{direction:"row",gap:1,sx:{marginLeft:"auto"},...u,children:"read"===e?(0,i.jsxs)(i.Fragment,{children:[a&&(0,i.jsx)(o.Z,{disabled:r,variant:"contained",onClick:()=>a("update"),children:"Edit"}),d&&(0,i.jsx)(o.Z,{color:"error",disabled:r,variant:"outlined",onClick:d,children:"Delete"}),c&&(s||d)&&(0,i.jsx)(tF.Z,{orientation:"vertical",flexItem:!0,sx:{borderColor:e=>e.palette.grey["500"],"&.MuiDivider-root":{marginLeft:2,marginRight:1}}}),c&&(0,i.jsx)(o.Z,{color:"secondary",variant:"outlined",onClick:c,children:n})]}):(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsx)(o.Z,{variant:"contained",disabled:!l,onClick:s,children:t}),c&&(0,i.jsx)(o.Z,{color:"secondary",variant:"outlined",onClick:c,children:n})]})})}var tR=n(78846);function tP(e){let{width:t,height:n,data:r,format:l,axisLine:o,max:a}=e,s=C(),d=(0,c.useDeepMemo)(()=>{if(void 0===r.value)return s.noDataOption;let e=tO(r.value,l,t,n);return{title:{show:!1},tooltip:{show:!1},series:[{type:"gauge",center:["50%","65%"],radius:"86%",startAngle:200,endAngle:-20,min:0,max:a,silent:!0,progress:{show:!0,width:16,itemStyle:{color:"auto"}},pointer:{show:!1},axisLine:{lineStyle:{color:[[1,"rgba(127,127,127,0.35)"]],width:16}},axisTick:{show:!1,distance:0},splitLine:{show:!1},axisLabel:{show:!1,distance:-18,color:"#999",fontSize:12},anchor:{show:!1},title:{show:!1},detail:{show:!1},data:[{value:r.value}]},{type:"gauge",center:["50%","65%"],radius:"100%",startAngle:200,endAngle:-20,min:0,max:a,pointer:{show:!0,icon:t>170?"path://M12.8,0.7l12,40.1H0.7L12.8,0.7z":"none",length:10,width:5,offsetCenter:[0,"-49%"],itemStyle:{color:"auto"}},axisLine:o,axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},detail:{show:!0,width:"60%",borderRadius:8,offsetCenter:[0,"-9%"],color:"inherit",fontSize:e,formatter:null===r.value?()=>"null":e=>(0,c.formatValue)(e,l)},data:[{value:r.value,name:r.label,title:{show:!0,color:s.echartsTheme.textStyle?.color??"inherit",offsetCenter:[0,"55%"],overflow:"truncate",fontSize:12,width:.8*t}}]}]}},[r,t,n,s,l,o,a]);return(0,i.jsx)(L,{sx:{width:t,height:n,padding:`${s.container.padding.default}px`},option:d,theme:s.echartsTheme})}function tO(e,t,n,r){let i=Math.min(n,r)/(("number"==typeof e?(0,c.formatValue)(e,t):`${e}`).length??2)*.7;return`clamp(3px, ${i}px, 24px)`}(0,u.D)([tR.N,p.N,x.N,m.N,f.N]);var tz=n(97313),tW=n(10225),t$=n(68799);function tH(e){let t=(0,q.Z)(),n="dark"===t.palette.mode,[r,l]=(0,s.useState)(()=>JSON.stringify(e.value,null,2)),[o,a]=(0,s.useState)(r);return(0,s.useEffect)(()=>{l(JSON.stringify(e.value,null,2))},[e.value]),(0,i.jsx)(tz.ZP,{...e,style:{border:`1px solid ${t.palette.divider}`},theme:n?"dark":"light",extensions:[(0,tW.AV)(),(0,t$.ir)((0,tW.ap)()),(0,t$.Q2)()],value:r,onChange:e=>{l(e)},onBlur:()=>{o!==r&&void 0!==e.onChange&&(e.onChange(r),a(r))},placeholder:e.placeholder})}var tB=n(44811),t_=n(98857),tV=n(219),tU=n(17846),tY=n(55328),tG=n(4665),tX=n(20461);function tK(e,t){if(t){let n=t.toLowerCase();if("local"!==n&&"browser"!==n)return{...e,timeZone:"utc"===n?"UTC":t}}return e}function tq(e,t,n){let r=n?.toLowerCase();return n&&"local"!==r&&"browser"!==r?(0,tG.formatInTimeZone)(e,"utc"===r?"UTC":n,t):(0,tX.format)(e,t)}function tJ(e,t,n){let r=tK({hour:"numeric",minute:"numeric",hourCycle:"h23"},n);return t<=18e5?r.second="numeric":t>=864e5&&(r.month="numeric",r.day="numeric"),new Intl.DateTimeFormat(void 0,r).format(e).replace(/, /g," ")}function tQ(e){return e>15768e7?"{yyyy}":e>63072e6?"{MMM} {yyyy}":e>432e6&&e<1577664e4?"{MM}/{dd}":e>1728e5&&e<=432e6?"{MM}/{dd} {HH}:{mm}":{year:"{yearStyle|{yyyy}}\n{monthStyle|{MMM}}",month:"{MMM}",day:"{MM}/{dd}"}}let t0=e=>{if(!e)return{formattedDate:"",formattedTime:""};let t=new Date(e);return{formattedDate:(0,tX.format)(t,"MMM dd, yyyy - "),formattedTime:(0,tX.format)(t,"HH:mm:ss")}},t1=(0,s.createContext)(void 0);function t5(e){let{children:t,timeZone:n}=e;return(0,i.jsx)(t1.Provider,{value:n,children:t})}function t2(){let e=(0,s.useContext)(t1);return{timeZone:e??"local",formatWithUserTimeZone:(t,n)=>tq(t,n,e),dateFormatOptionsWithUserTimeZone:t=>tK(t,e)}}let t6=375,t7=650,t3=650,t4=500,t8=.75,t9=8,ne=750,nt="nearby series showing in tooltip",nn="emphasized series showing as bold in tooltip",nr="#2E313E",ni=new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0}),nl={coords:{plotCanvas:{x:0,y:0},zrender:{x:0,y:0},target:null},chartWidth:0},no=[],na={ie:navigator.userAgent.match(/MSIE\s([\d.]+)/)||navigator.userAgent.match(/Trident\/.+?rv:(([\d.]+))/),edge:navigator.userAgent.match(/Edge?\/([\d.]+)/)},ns="onpointerdown"in window&&(na.edge||na.ie&&na.ie[1]&&+na.ie[1]>=11),nd=ns?"pointermove":"mousemove",nc=()=>{let[e,t]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let e=e=>t({page:{x:e.pageX,y:e.pageY},client:{x:e.clientX,y:e.clientY},plotCanvas:{x:e.zrX,y:e.zrY},target:e.target});return window.addEventListener(nd,e),()=>{window.removeEventListener(nd,e)}},[]),e},nu={wrapLabels:!0,enablePinning:!0},nh="Click chart to pin",np="Click chart to unpin";var ng=n(7444),nx=n(4338),nm=n.n(nx);function nf(e){let{markerColor:t,sx:n}=e;return(0,i.jsx)(v.Z,{sx:en({display:"inline-block",width:"11px",height:"11px",borderRadius:"2px",marginRight:1,verticalAlign:"top"},n),style:{backgroundColor:t}})}function nv(e){let{formattedY:t,markerColor:n,metricName:r,metricLabels:l}=e;return(0,i.jsxs)(z.Z,{spacing:.5,children:[(0,i.jsxs)(v.Z,{sx:e=>({display:"flex",height:"16px",flexDirection:"row",alignItems:"center",justifyContent:"left",color:e.palette.common.white,fontSize:"11px"}),children:[(0,i.jsx)(nf,{markerColor:n,sx:{marginTop:.25}}),(0,i.jsxs)(v.Z,{component:"span",children:[r,(0,i.jsx)(v.Z,{component:"span",sx:e=>({color:e.palette.common.white,fontWeight:700,paddingLeft:"2px"}),children:t})]})]}),(0,i.jsx)(tF.Z,{sx:e=>({borderColor:e.palette.grey["500"]})}),(0,i.jsx)(v.Z,{sx:e=>({color:e.palette.common.white}),children:l.map(e=>{if(e){let[t,n]=e.split("="),r=void 0!==n?`${t}: `:t,l=void 0!==n?n.replace(/(^"|"$)/g,""):n;return(0,i.jsxs)(v.Z,{sx:{display:"flex",gap:"4px"},children:[(0,i.jsx)(eC.Z,{sx:{fontSize:"11px"},children:r}),(0,i.jsx)(eC.Z,{sx:e=>({color:e.palette.common.white,fontWeight:700,fontSize:"11px"}),children:l})]},e)}})})]})}function ny(e){let{seriesName:t,formattedY:n,markerColor:r,totalSeries:l,emphasizeText:o=!1,wrapLabels:a=!0}=e,s=t.split("{"),d=(s[1]??t).replace(/[{}]/g,"").split(",");if(1===l&&d.length>1){let e=s[0]?`${s[0]}:`:"value:";return(0,i.jsx)(nv,{formattedY:n,metricName:e,metricLabels:d,markerColor:r})}let c=t.replace(/[,]/g,", ");return(0,i.jsxs)(v.Z,{sx:{display:"table-row",paddingTop:.5},children:[(0,i.jsxs)(v.Z,{sx:{display:"table-cell",maxWidth:"520px"},children:[(0,i.jsx)(nf,{markerColor:r,sx:{marginTop:.5}}),(0,i.jsx)(v.Z,{component:"span",sx:e=>({display:"inline-block",width:"calc(100% - 20px)",minWidth:150,maxWidth:t4,overflow:"hidden",color:e.palette.common.white,fontWeight:o?e.typography.fontWeightBold:e.typography.fontWeightRegular,textOverflow:"ellipsis",whiteSpace:a?"normal":"nowrap"}),"aria-label":o?nn:nt,children:c})]}),(0,i.jsx)(v.Z,{sx:e=>({display:"table-cell",paddingLeft:1.5,textAlign:"right",verticalAlign:"top",fontWeight:o?e.typography.fontWeightBold:e.typography.fontWeightRegular}),children:n})]})}function nb(e){let{series:t,wrapLabels:n}=e,r=(0,s.useMemo)(()=>null===t?null:t.sort((e,t)=>e.y>t.y?-1:1),[t]);return null===t||null===r?null:(0,i.jsx)(v.Z,{sx:e=>({display:"table",padding:e.spacing(.5,2)}),children:r.map(({datumIdx:e,seriesIdx:t,seriesName:l,y:o,formattedY:a,markerColor:s,isClosestToCursor:d})=>{if(null===e||null===t)return null;let c=t.toString()+e.toString();return(0,i.jsx)(ny,{seriesName:l,y:o,formattedY:a,markerColor:s,totalSeries:r.length,wrapLabels:n,emphasizeText:d},c)})})}var nj=n(87895),nC=n(1889),nw=n(75186);let nZ=(0,s.memo)(function({nearbySeries:e,totalSeries:t,isTooltipPinned:n,showAllSeries:r,enablePinning:l=!0,onShowAllClick:o,onUnpinClick:a}){let s=e[0]?.date??null;if(null===s)return null;let d=l&&t>5;return(0,i.jsxs)(v.Z,{sx:e=>({width:"100%",maxWidth:t7,padding:e.spacing(1.5,2,.5,2),backgroundColor:e.palette.designSystem?.grey[800]??nr,position:"sticky",top:0,left:0}),children:[(0,i.jsxs)(v.Z,{sx:{width:"100%",display:"flex",justifyContent:"start",alignItems:"center",paddingBottom:.5},children:[(e=>{let{formattedTime:t,formattedDate:n}=t0(e);return(0,i.jsxs)(v.Z,{children:[(0,i.jsx)(eC.Z,{variant:"caption",sx:e=>({color:e.palette.common.white}),children:n}),(0,i.jsx)(eC.Z,{variant:"caption",children:(0,i.jsx)("strong",{children:t})})]})})(s),(0,i.jsxs)(z.Z,{direction:"row",gap:1,sx:{marginLeft:"auto"},children:[d&&(0,i.jsxs)(z.Z,{direction:"row",gap:.5,alignItems:"center",sx:{textAlign:"right"},children:[(0,i.jsx)(eC.Z,{sx:{fontSize:11},children:"Show All"}),(0,i.jsx)(nj.Z,{checked:r,size:"small",onChange:(e,t)=>{if(void 0!==o)return o(t)},sx:e=>({"& .MuiSwitch-switchBase":{color:e.palette.common.white},"& .MuiSwitch-track":{backgroundColor:e.palette.common.white}})})]}),l&&(0,i.jsxs)(z.Z,{direction:"row",alignItems:"center",children:[(0,i.jsx)(eC.Z,{sx:{marginRight:.5,fontSize:11,verticalAlign:"middle"},children:n?np:nh}),n?(0,i.jsx)(nC.default,{onClick:()=>{void 0!==a&&a()},sx:{fontSize:16,cursor:"pointer"}}):(0,i.jsx)(nw.default,{sx:{fontSize:16}})]})]})]}),(0,i.jsx)(tF.Z,{sx:e=>({width:"100%",borderColor:e.palette.grey["500"]})})]})}),nS=1e3,nk="Pinned Crosshair",nT={name:nk,type:"line",markLine:{data:[],lineStyle:{type:"dashed",width:2},emphasis:{lineStyle:{width:2,opacity:1}},blur:{lineStyle:{width:2,opacity:1}}}};function nA(e){let t=e._model;void 0!==t&&void 0!==t.option.toolbox&&t.option.toolbox.length>0&&"normal"===t.option.toolbox[0].feature.dataZoom.iconStatus.zoom&&e.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!0})}function nM(e){e.dispatchAction({type:"restore"})}function nD(e){void 0!==e.dispatchAction&&(e.dispatchAction({type:"unselect"}),e.dispatchAction({type:"downplay"}))}function nI(e,t,n){if(void 0===n)return null;let r=[e,t];return n.containPixel("grid",r)?n.convertFromPixel("grid",r):null}function nE(e,t,n,r,i,l){let o=l.length>0?l[l.length-1]:i[i.length-1];void 0!==o&&e.dispatchAction({type:"select",seriesIndex:o.seriesIndex,dataIndex:o.dataIndex,escapeConnect:!0}),e.dispatchAction({type:"downplay",seriesIndex:r}),n.length>0?e.dispatchAction({type:"highlight",seriesIndex:n,notBlur:!1,escapeConnect:!0}):(e.dispatchAction({type:"highlight",seriesIndex:t,notBlur:!0,escapeConnect:!0}),e.dispatchAction({type:"toggleSelect"}))}function nL(e){return e[e.length-1]?.name===nk}function nF(e,t){if(void 0===e||void 0===t)return null;let n=null,r=1/0;for(let[i]of e){let e=Math.abs(i-t);e<r&&(n=i,r=e)}return n}function nN(e,t){if(void 0===t)return null;let n=e.length,r=null;for(let i=0;i<n;i++){let l=n>0?e[i]:null;if(!l)break;r=nF(l.values,t)}return r}let nR=5.5,nP=30,nO=5;function nz(e,t,n,r,i,l){let o=[],a=n[0]??null,s=n[1]??null;if(null===a||null===s||void 0===i.dispatchAction||!Array.isArray(e))return o;let d=[],u=[],h=[],p=[],g=[],x=e.length,m=new Map,f=nF(e[0]?.values,a);if(null===f)return no;for(let n=0;n<x;n++){let a=t[n];if(!a)break;let v=x>0?e[n]:null;if(!v)break;let y=v.values;if(void 0===y||!Array.isArray(y))break;let b=a.name?a.name.toString():"",j=a.color??"#000";if(Array.isArray(e))for(let e=0;e<y.length;e++){let t=y[e];if(void 0===t||!Array.isArray(t))break;let a=t[0],v=t[1];if(null!=v&&f===a&&s<=v+r&&s>=v-r){let t=nB({valueToCheck:s,baseValue:v,percentage:Math.max(x>nO?2:5,100/x)});if(t){u.push(n);let t=m.get(v)??0;m.set(v,t+1),t>0&&g.push({seriesIndex:n,dataIndex:e,seriesName:b,yValue:v}),p.push({seriesIndex:n,dataIndex:e,seriesName:b,yValue:v})}else h.push(n),i.dispatchAction({type:"downplay",seriesIndex:n});let r=(0,c.formatValue)(v,l);o.push({seriesIdx:n,datumIdx:e,seriesName:b,date:f,x:a,y:v,formattedY:r,markerColor:j.toString(),isClosestToCursor:t}),d.push(n)}}}return nE(i,d,u,h,p,g),o}function nW(e,t,n,r,i){let l=[],o=t[0]??null,a=t[1]??null;if(null===o||null===a)return l;let s=[],d=[],u=[],h=e.timeSeries.length;if(Array.isArray(e.xAxis)&&Array.isArray(e.timeSeries))for(let t=0;t<h;t++){let p=e.timeSeries[t];if(void 0===p||l.length>=nS)break;let g=p.name?p.name.toString():"",x=p.color??"#000";if(Array.isArray(p.data))for(let m=0;m<p.data.length;m++){let f=e.xAxis[m]??0,v=p.data[m];if(null!=v&&o===m&&"-"!==v&&a<=v+n&&a>=v-n){let e=nB({valueToCheck:a,baseValue:v,percentage:Math.max(h>nO?2:5,100/h)});e?d.push(t):(u.push(t),r?.dispatchAction!==void 0&&r.dispatchAction({type:"downplay",seriesIndex:t}));let n=f>0x174876e7ff?f:1e3*f,o=(0,c.formatValue)(v,i);l.push({seriesIdx:t,datumIdx:m,seriesName:g,date:n,x:f,y:v,formattedY:o,markerColor:x.toString(),isClosestToCursor:e}),s.push(t)}}}return r?.dispatchAction!==void 0&&(r.dispatchAction({type:"downplay",seriesIndex:u}),d.length>0?r.dispatchAction({type:"highlight",seriesIndex:d,notBlur:!1,escapeConnect:!0}):r.dispatchAction({type:"highlight",seriesIndex:s,notBlur:!0,escapeConnect:!0})),l}function n$({mousePos:e,pinnedPos:t,data:n,seriesMapping:r,chart:i,format:l,showAllSeries:o=!1}){if(void 0===i||null===e)return no;let a=!1;if(null!==e.target){let t=e.target.parentElement;if(null!==t){let e=t.parentElement;null!==e&&i.getDom()===e&&(a=!0)}}if(null!==t&&(e=t,a=!0),!1===a||null===n||void 0===i._model||void 0===e.plotCanvas.x||void 0===e.plotCanvas.y)return no;let s=nI(e.plotCanvas.x,e.plotCanvas.y,i);if(null!==s){let e=n_({yInterval:i._model.getComponent("yAxis").axis.scale._interval,totalSeries:n.length,showAllSeries:o});return nz(n,r,s,e,i,l)}return no}function nH({mousePos:e,pinnedPos:t,chartData:n,chart:r,format:i,showAllSeries:l=!1}){if(void 0===r||null===e)return[];let o=!1;if(null!==e.target){let t=e.target.parentElement;if(null!==t){let e=t.parentElement;null!==e&&r.getDom()===e&&(o=!0)}}if(null!==t&&(e=t,o=!0),!1===o||void 0===r._model)return[];let a=n_({yInterval:r._model.getComponent("yAxis").axis.scale._interval,totalSeries:n.timeSeries.length,showAllSeries:l}),s=[e.plotCanvas.x??0,e.plotCanvas.y??0];if(r.containPixel("grid",s)){let e=r.convertFromPixel("grid",s);if(void 0!==e[0]&&void 0!==e[1])return nW(n,e,a,r,i)}return[]}function nB({valueToCheck:e,baseValue:t,percentage:n}){let r=n/100*t;return e>=t-r&&e<=t+r}function n_({yInterval:e,totalSeries:t,showAllSeries:n=!1}){if(n)return 10*e;let r=.3*e;return t>nO?Math.max(r,e*nP/t):Math.max(r,e*nR)}function nV(e,t,n,r,i,l){let o;if(null===e||(null!==n&&(e=n),void 0===e.plotCanvas.x))return;let a=e.page.x,s=e.page.y+16;return l&&(a=a-(o=l.getBoundingClientRect()).left+l.scrollLeft,s=s-o.top+l.scrollTop),e.client.y+r+16>window.innerHeight&&(s-=r*t8,o&&s<o.top&&(s=t9/2)),e.plotCanvas.x>t-.9*i&&a>t7?`translate3d(${a-32}px, ${s}px, 0) translateX(-100%)`:`translate3d(${a+32}px, ${s}px, 0)`}function nU(e,t,n){return{minWidth:t6,maxWidth:t7,maxHeight:(n?n-t9:void 0)??t3,padding:0,position:"absolute",top:0,left:0,backgroundColor:e.palette.designSystem?.grey[800]??nr,borderRadius:"6px",color:"#fff",fontSize:"11px",visibility:"visible",opacity:1,transition:"all 0.1s ease-out",zIndex:null!==t?"auto":e.zIndex.tooltip,overflow:"hidden","&:hover":{overflowY:"auto"}}}let nY=(0,s.memo)(function({chartRef:e,chartData:t,enablePinning:n=!0,wrapLabels:r,format:l,onUnpinClick:o,pinnedPos:a,containerId:d}){let[c,u]=(0,s.useState)(!1),h=nc(),{height:p,width:g,ref:x}=nm()(),m=(0,s.useRef)(),f=null!==a&&n;if(null===h||null===h.target||null===a&&"CANVAS"!==h.target.tagName)return null;let y=e.current,b=y?.getWidth()??ne,j=nH({mousePos:h,chartData:t,pinnedPos:a,chart:y,format:l,showAllSeries:c});if(0===j.length)return null;let C=t.timeSeries.length,w=d?document.querySelector(d):void 0,Z=w?w.getBoundingClientRect().height:void 0;return f||(m.current=nV(h,b,a,p??0,g??0,w)),(0,i.jsx)(ng.Z,{container:w,children:(0,i.jsx)(v.Z,{ref:x,sx:e=>({minWidth:t6,maxWidth:t7,maxHeight:Z??t3,padding:0,position:"absolute",top:0,left:0,backgroundColor:e.palette.designSystem?.grey[800]??nr,borderRadius:"6px",color:"#fff",fontSize:"11px",visibility:"visible",opacity:1,transition:"all 0.1s ease-out",zIndex:null!==a?"auto":e.zIndex.tooltip,overflow:"hidden","&:hover":{overflowY:"auto"}}),style:{transform:m.current,display:m.current?"block":"none"},children:(0,i.jsxs)(z.Z,{spacing:.5,children:[(0,i.jsx)(nZ,{nearbySeries:j,totalSeries:C,enablePinning:n,isTooltipPinned:f,showAllSeries:c,onShowAllClick:e=>u(e),onUnpinClick:o}),(0,i.jsx)(nb,{series:j,wrapLabels:r})]})})})});(0,u.D)([tB.N,p.N,M.N,t_.N,tV.N,tU.N,x.N,tY.N,m.N,D.N,f.N]);let nG=(0,s.forwardRef)(function({height:e,data:t,yAxis:n,format:r,grid:l,legend:o,tooltipConfig:a=nu,noDataVariant:d="message",syncGroup:c,onDataZoom:u,onDoubleClick:h,__experimentalEChartsOptionsOverride:p},g){let x=C(),m=(0,s.useRef)(),[f,y]=(0,s.useState)(!0),[b,j]=(0,s.useState)(null),{timeZone:w}=t2(),[Z,S]=(0,s.useState)(!1),[k,T]=(0,s.useState)(0);(0,s.useImperativeHandle)(g,()=>({highlightSeries({id:e}){m.current&&m.current.dispatchAction({type:"highlight",seriesId:e})},clearHighlightedSeries:()=>{m.current&&nD(m.current)}}),[]);let A=(0,s.useMemo)(()=>({datazoom:e=>{if(void 0===u&&setTimeout(()=>{j(null)},10),void 0===u||void 0===e.batch[0])return;let n=e.batch[0].startValue??0,r=e.batch[0].endValue??t.xAxis.length-1,i=t.xAxis[n],l=t.xAxis[r];void 0!==i&&void 0!==l&&u({start:i,end:l,startIndex:n,endIndex:r})}}),[t,u,j]);void 0!==m.current&&nA(m.current);let{noDataOption:M}=x,D=(0,s.useMemo)(()=>{if(void 0===t.timeSeries)return{};if(null===t.timeSeries||0===t.timeSeries.length&&"message"===d)return M;let e=t.rangeMs??P(t.xAxis),i={series:t.timeSeries,xAxis:{type:"category",data:t.xAxis,max:t.xAxisMax,axisLabel:{formatter:t=>tJ(t,e,w)}},yAxis:R(n,r),animation:!1,tooltip:{show:!0,trigger:"axis",showContent:!1},axisPointer:{type:"line",z:0,triggerEmphasis:!1,triggerTooltip:!1,snap:!0},toolbox:{feature:{dataZoom:{icon:null,yAxisIndex:"none"}}},grid:l,legend:o};return p?p(i):i},[t,n,r,l,o,M,w,p,d]);return(0,i.jsxs)(v.Z,{style:{height:e},onClick:e=>{a.enablePinning&&e.target instanceof HTMLCanvasElement&&j(t=>null===t?{page:{x:e.pageX,y:e.pageY},client:{x:e.clientX,y:e.clientY},plotCanvas:{x:e.nativeEvent.offsetX,y:e.nativeEvent.offsetY},target:e.target}:null)},onMouseDown:e=>{let{clientX:t}=e;S(!0),T(t)},onMouseMove:e=>{if(!(e.target instanceof HTMLCanvasElement))return;let{clientX:t}=e;Z&&t-k>0&&y(!1)},onMouseUp:()=>{S(!1),T(0),y(!0)},onMouseLeave:()=>{null===b&&y(!1),void 0!==m.current&&nD(m.current)},onMouseEnter:()=>{y(!0),void 0!==m.current&&nA(m.current)},onDoubleClick:e=>{j(null),void 0===h?void 0!==m.current&&nM(m.current):h(e)},children:[!0===f&&D.tooltip?.showContent===!1&&!0!==a.hidden&&(0,i.jsx)(nY,{chartRef:m,chartData:t,wrapLabels:a.wrapLabels,enablePinning:a.enablePinning,pinnedPos:b,format:r,onUnpinClick:()=>{j(null)},containerId:x.tooltipPortalContainerId}),(0,i.jsx)(L,{sx:{width:"100%",height:"100%"},option:D,theme:x.echartsTheme,onEvents:A,_instance:m,syncGroup:c})]})});var nX=n(28797),nK=n(36679),nq=n(33755),nJ=n(86396);function nQ({control:e,...t}){let{fields:n,append:r,remove:l}=(0,nK.useFieldArray)({control:e,name:"panelDefinition.spec.links"});return(0,i.jsxs)(z.Z,{...t,gap:3,children:[n&&n.length>0?n.map((t,n)=>(0,i.jsxs)(s.Fragment,{children:[(0,i.jsxs)(z.Z,{direction:"row",gap:1,alignItems:"center",children:[(0,i.jsx)(n0,{control:e,index:n}),(0,i.jsx)(W.Z,{style:{width:"fit-content",height:"fit-content"},onClick:()=>l(n),children:(0,i.jsx)(nJ.default,{})})]}),(0,i.jsx)(tF.Z,{})]},t.id)):(0,i.jsx)(eC.Z,{variant:"subtitle1",mb:2,fontStyle:"italic",children:"No links defined"}),(0,i.jsx)(W.Z,{style:{width:"fit-content",height:"fit-content"},onClick:()=>r({url:""}),children:(0,i.jsx)(nq.default,{})})]})}function n0({control:e,index:t}){return(0,i.jsxs)(z.Z,{gap:2,flexGrow:1,children:[(0,i.jsxs)(z.Z,{direction:"row",gap:2,children:[(0,i.jsx)(nK.Controller,{control:e,name:`panelDefinition.spec.links.${t}.url`,render:({field:e,fieldState:t})=>(0,i.jsx)($.Z,{...e,required:!0,fullWidth:!0,label:"URL",error:!!t.error,helperText:t.error?.message,onChange:t=>{e.onChange(t)}})}),(0,i.jsx)(nK.Controller,{control:e,name:`panelDefinition.spec.links.${t}.name`,render:({field:e,fieldState:t})=>(0,i.jsx)($.Z,{...e,fullWidth:!0,label:"Name",defaultValue:"",error:!!t.error,helperText:t.error?.message,onChange:t=>{e.onChange(t)}})}),(0,i.jsx)(nK.Controller,{control:e,name:`panelDefinition.spec.links.${t}.tooltip`,render:({field:e,fieldState:t})=>(0,i.jsx)($.Z,{...e,fullWidth:!0,label:"Tooltip",defaultValue:"",error:!!t.error,helperText:t.error?.message,onChange:t=>{e.onChange(t)}})})]}),(0,i.jsxs)(z.Z,{gap:2,direction:"row",alignItems:"center",children:[(0,i.jsx)(nK.Controller,{control:e,name:`panelDefinition.spec.links.${t}.renderVariables`,render:({field:e})=>(0,i.jsx)(nX.Z,{label:"Render Variables",control:(0,i.jsx)(eO.Z,{...e,checked:e.value,onChange:t=>e.onChange(t.target.checked)})})}),(0,i.jsx)(nK.Controller,{control:e,name:`panelDefinition.spec.links.${t}.targetBlank`,render:({field:e})=>(0,i.jsx)(nX.Z,{label:"Open in new tab",control:(0,i.jsx)(eO.Z,{...e,checked:e.value,onChange:t=>e.onChange(t.target.checked)})})})]})]})}let n1=[{id:"value",label:"Value"},{id:"percentage",label:"Percentage"}];function n5({disablePercentageMode:e,onChange:t,value:n="value"}){return(0,i.jsx)(to,{label:"Mode",control:(0,i.jsx)(td,{value:n1.find(e=>e.id===n),options:n1,getOptionLabel:e=>e.label,getOptionDisabled:t=>"percentage"===t.id&&e,onChange:(e,{id:n})=>{t(n)},disableClearable:!0})})}var n2=n(38359);let n6=({children:e})=>(0,i.jsx)(n2.ZP,{item:!0,xs:4,children:(0,i.jsx)(z.Z,{spacing:3,children:e})}),n7=({children:e})=>(0,i.jsx)(n2.ZP,{container:!0,spacing:8,children:e}),n3=({title:e,children:t,icon:n})=>(0,i.jsxs)(v.Z,{children:[(0,i.jsxs)(v.Z,{display:"flex",borderBottom:1,borderColor:"grey.300",marginBottom:e=>e.spacing(1),children:[(0,i.jsx)(eC.Z,{variant:"overline",component:"h4",children:e}),n&&(0,i.jsx)(v.Z,{sx:{marginLeft:"auto"},children:n})]}),(0,i.jsx)(z.Z,{spacing:1,children:t})]});var n4=n(66224);function n8(e){let{message:t}=e;return(0,i.jsx)(z.Z,{sx:{height:"100%",alignItems:"center",justifyContent:"center"},children:(0,i.jsx)(eC.Z,{children:t})})}function n9(e){let{resource:t}=e;return(0,i.jsx)(n8,{message:`No ${t}`})}function re(e){let{variant:t="rounded"}=e;return(0,i.jsx)(z.Z,{sx:{height:"100%",alignItems:"center",justifyContent:"center",px:1},children:(0,i.jsx)(n4.Z,{variant:t,width:"100%",height:"30%","aria-label":"Loading..."})})}let rt=[{id:"asc",label:"Ascending"},{id:"desc",label:"Descending"}];function rn({onChange:e,value:t="desc"}){return(0,i.jsx)(to,{label:"Sort",control:(0,i.jsx)(td,{value:rt.find(e=>e.id===t),options:rt,getOptionLabel:e=>e.label,onChange:(t,{id:n})=>{e(n)},disableClearable:!0})})}function rr({onChange:e,value:t,...n}){let r=t=>{e(t)};return(0,i.jsxs)(l.Z,{"aria-label":"Sort",...n,children:[(0,i.jsx)(o.Z,{onClick:()=>r(void 0),variant:void 0===t?"contained":"outlined",children:"None"}),(0,i.jsx)(o.Z,{onClick:()=>r("asc"),variant:"asc"===t?"contained":"outlined",children:"Asc"}),(0,i.jsx)(o.Z,{onClick:()=>r("desc"),variant:"desc"===t?"contained":"outlined",children:"Desc"})]})}function ri({text:e,fontWeight:t,width:n,height:i,lineHeight:l,maxSize:o,fontSizeOverride:a}){let s=function(){if(!r&&null===(r=document.createElement("canvas").getContext("2d")))throw Error("Canvas context is null.");return r}(),{echartsTheme:d}=C();if(void 0!==a)return Number(a);let c=d.textStyle,u=Number(c?.fontSize)??12,h=c?.fontFamily??"Lato",p=`${t} ${u}px ${h}`;s.font=p;let g=Math.min(i/l,n/s.measureText(e).width*u);return o?Math.min(g,o):g}let rl=(e,t)=>null===e?"null":"number"==typeof e?(0,c.formatValue)(e,t):void 0===e?"":e;(0,u.D)([tB.N,p.N,g.N,x.N,m.N,f.N]);let ro=e=>{let{width:t,height:n,data:r,sparkline:l,showSeriesName:o,format:a,valueFontSize:d}=e,c=C(),u=r.color,h=rl(r.calculatedValue,a),p=c.container.padding.default,g=ri({text:r?.seriesData?.name??"",fontWeight:400,width:t,height:.125*n,lineHeight:1.2,maxSize:30}),x=o?1.2*g+p:0,m=t-2*p,f=n-x,y=ri({text:h,fontSizeOverride:d,fontWeight:700,width:l?m:.5*m,height:l?.25*f:.9*f,lineHeight:1.2}),b=1.2*y;g=Math.min(.7*y,g);let j=(0,s.useMemo)(()=>{if(void 0===r.seriesData)return c.noDataOption;let e=r.seriesData,t=[];if(void 0!==l){let n={type:"line",name:e.name,data:e.values,zlevel:1,symbol:"none",animation:!1,silent:!0},r=N()(n,l);t.push(r)}return{title:{show:!1},grid:{show:!1,top:"35%",right:0,bottom:0,left:0,containLabel:!1},xAxis:{type:"time",show:!1,boundaryGap:!1},yAxis:{type:"value",show:!1,min:e=>e.min>=0&&e.min<=1?0:e.min},tooltip:{show:!1},series:t}},[r,c,l]),w=l?"auto":"center";return(0,i.jsxs)(v.Z,{sx:{height:"100%",width:"100%",display:"flex",flexDirection:"column",justifyContent:w,alignItems:w},children:[o&&(0,i.jsx)(ra,{padding:p,fontSize:g,children:r.seriesData?.name}),(0,i.jsx)(rs,{variant:"h3",color:u,fontSize:y,padding:p,children:h}),void 0!==l&&(0,i.jsx)(L,{sx:{width:"100%",height:n-x-b},option:j,theme:c.echartsTheme,renderer:"svg"})]})},ra=(0,G.ZP)(eC.Z,{shouldForwardProp:e=>"padding"!==e&&"fontSize"!==e})(({theme:e,padding:t,fontSize:n})=>({color:e.palette.text.secondary,padding:`${t}px`,fontSize:`${n}px`,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})),rs=(0,G.ZP)(eC.Z,{shouldForwardProp:e=>"color"!==e&&"padding"!==e&&"fontSize"!==e&&"sparkline"!==e})(({theme:e,color:t,padding:n,fontSize:r,sparkline:i})=>({color:t??e.palette.text.primary,fontSize:`${r}px`,padding:i?`${n}px ${n}px 0 ${n}px`:` 0 ${n}px`,whiteSpace:"nowrap",lineHeight:1.2}));var rd=n(5404),rc=n(98346),ru=n(12434),rh=n(22446);function rp({inputRef:e,label:t,color:n,value:r,mode:l,onChange:o,onColorChange:a,onBlur:d,onDelete:c}){let[u,h]=(0,s.useState)(0);return(0,i.jsxs)(z.Z,{flex:1,direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,i.jsx)(X,{label:t,color:n,onColorChange:a}),(0,i.jsx)(e8.Z,{htmlFor:t,children:t}),(0,i.jsx)($.Z,{id:t,inputRef:e,type:"number",value:0===r?"":r,placeholder:"0",onChange:o,onBlur:d,onKeyDown:e=>{"Enter"===e.key&&(d(),h(u+1))},InputProps:{endAdornment:"percent"===l?(0,i.jsx)(v.Z,{paddingX:1,children:"%"}):void 0}},u),(0,i.jsx)(W.Z,{"aria-label":`delete threshold ${t}`,size:"small",onClick:c,children:(0,i.jsx)(rh.default,{})})]})}function rg({thresholds:e,onChange:t,hideDefault:n,disablePercentMode:r}){let{thresholds:{defaultColor:l,palette:o}}=C(),a=e?.defaultColor??l,[d,c]=(0,s.useState)(e?.steps);(0,s.useEffect)(()=>{c(e?.steps)},[e?.steps]);let u=(0,s.useRef)(null),h=(0,s.useRef)(!1);(0,s.useEffect)(()=>{u.current&&h.current&&(u.current?.focus(),h.current=!1)},[d?.length]);let p=(e,t)=>{c((0,J.Uy)(d,n=>{let r=n?.[t];r&&(r.value=Number(e.target.value))}))},g=(n,r)=>{void 0!==e&&t((0,J.Uy)(e,e=>{if(void 0!==e.steps){let t=e.steps[r];t&&(t.color=n)}}))},x=()=>{if(void 0!==d){let n=[...d];n.sort((e,t)=>e.value-t.value),void 0!==e&&t((0,J.Uy)(e,e=>{e.steps=n}))}},m=n=>{void 0!==e&&t((0,J.Uy)(e,e=>{e.steps&&e.steps.splice(n,1)}))};return(0,i.jsxs)(n3,{title:"Thresholds",icon:(0,i.jsx)(tr,{description:"Add threshold",children:(0,i.jsx)(W.Z,{size:"small","aria-label":"add threshold",onClick:()=>{h.current=!0,void 0===e?t({steps:[{value:10}]}):e&&void 0===e.steps?t((0,J.Uy)(e,e=>{e.steps=[{value:10}]})):t((0,J.Uy)(e,e=>{let t=e.steps;if(t?.length){let e=t[t.length-1],n=o[t.length]??rx();t.push({color:n,value:(e?.value??0)+10})}else t&&t.push({value:10})}))},children:(0,i.jsx)(nq.default,{})})}),children:[(0,i.jsx)(to,{label:"Mode",description:"Percentage means thresholds relative to min & max",control:(0,i.jsxs)(rd.Z,{exclusive:!0,disabled:r,value:e?.mode??"absolute",onChange:(n,r)=>{let i="percent"===r?"percent":void 0;void 0!==e?t((0,J.Uy)(e,e=>{e.mode=i})):t({mode:i})},sx:{height:"36px",marginLeft:"auto"},children:[(0,i.jsx)(rc.Z,{"aria-label":"absolute",value:"absolute",sx:{fontWeight:500},children:"Absolute"}),(0,i.jsx)(rc.Z,{"aria-label":"percent",value:"percent",sx:{fontWeight:500},children:"Percent"})]})}),d&&d.map((t,n)=>(0,i.jsx)(rp,{inputRef:n===d.length-1?u:void 0,label:`T${n+1}`,color:t.color??o[n]??a,value:t.value,mode:e?.mode,onColorChange:e=>g(e,n),onChange:e=>{p(e,n)},onDelete:()=>{m(n)},onBlur:x},n)).reverse(),!n&&(0,i.jsxs)(ru.Z,{flex:1,direction:"row",alignItems:"center",spacing:1,children:[(0,i.jsx)(X,{label:"default",color:a,onColorChange:n=>{void 0!==e?t((0,J.Uy)(e,e=>{e.defaultColor=n})):t({defaultColor:n})}}),(0,i.jsx)(eC.Z,{children:"Default"})]})]})}let rx=()=>"#"+Math.floor(0x1000000*Math.random()).toString(16).padStart(6,"0"),rm=(0,s.memo)(function({containerId:e,chartRef:t,data:n,seriesMapping:r,enablePinning:l=!0,wrapLabels:o,format:a,onUnpinClick:d,pinnedPos:c}){let[u,h]=(0,s.useState)(!1),p=(0,s.useRef)(),g=nc(),{height:x,width:m,ref:f}=nm()(),y=null!==c&&l;if(null===g||null===g.target||null===n||null===c&&"CANVAS"!==g.target.tagName)return null;let b=t.current,j=b?.getWidth()??ne,C=e?document.querySelector(e):void 0,w=C?C.getBoundingClientRect().height:void 0;y||(p.current=nV(g,j,c,x??0,m??0,C));let Z=n$({mousePos:g,data:n,seriesMapping:r,pinnedPos:c,chart:b,format:a,showAllSeries:u});if(0===Z.length)return null;let S=n.length;return(0,i.jsx)(ng.Z,{container:C,children:(0,i.jsx)(v.Z,{ref:f,sx:e=>nU(e,c,w),style:{transform:p.current},children:(0,i.jsxs)(z.Z,{spacing:.5,children:[(0,i.jsx)(nZ,{nearbySeries:Z,totalSeries:S,enablePinning:l,isTooltipPinned:y,showAllSeries:u,onShowAllClick:e=>h(e),onUnpinClick:d}),(0,i.jsx)(nb,{series:Z,wrapLabels:o})]})})})});(0,u.D)([tB.N,h.N,p.N,g.N,M.N,t_.N,tV.N,tU.N,x.N,tY.N,m.N,f.N]);let rf=(0,s.forwardRef)(function({height:e,data:t,seriesMapping:n,timeScale:r,yAxis:l,format:o,grid:a,isStackedBar:d=!1,tooltipConfig:u=nu,noDataVariant:h="message",syncGroup:p,onDataZoom:g,onDoubleClick:x,__experimentalEChartsOptionsOverride:m},f){let y;let{chartsTheme:b,enablePinning:C,lastTooltipPinnedCoords:w,setLastTooltipPinnedCoords:Z}=j(),k=u.enablePinning&&C,T=(0,s.useRef)(),[A,M]=(0,s.useState)(!0),[D,I]=(0,s.useState)(null),[E,F]=(0,s.useState)(null),[P,O]=(0,s.useState)(!1),[z,W]=(0,s.useState)(0),{timeZone:$}=t2();if(void 0===r){let e=(0,c.getCommonTimeScale)(t);if(void 0===e){let e=new Date,t=new Date(e);t.setFullYear(e.getFullYear()-5);let n=e.getTime(),r=t.getTime();y={startMs:r,endMs:n,stepMs:1,rangeMs:n-r}}else y=e}else y=r;(0,s.useImperativeHandle)(f,()=>({highlightSeries({name:e}){T.current&&T.current.dispatchAction({type:"highlight",seriesId:e})},clearHighlightedSeries:()=>{T.current&&nD(T.current)}}),[]);let H=(0,s.useMemo)(()=>({datazoom:e=>{if(void 0===g&&setTimeout(()=>{I(null)},10),void 0===g||void 0===e.batch[0])return;let t=e.batch[0].startValue,n=e.batch[0].endValue;void 0!==t&&void 0!==n&&g({start:t,end:n})},finished:()=>{void 0!==T.current&&nA(T.current)}}),[g,I]),{noDataOption:B}=b,_=(0,s.useMemo)(()=>{if(null===t||0===t.length&&"message"===h)return B;let e=[],r="local"===$;t.map((t,n)=>{let i=t.values.map(([e,t])=>[r?e:(0,tG.toZonedTime)(e,$),null===t?"-":t]);e.push({id:n,source:[...i],dimensions:["time","value"]})});let i={dataset:e,series:C&&null!==E?[...n,E]:n,xAxis:{type:"time",min:r?y.startMs:(0,tG.toZonedTime)(y.startMs,$),max:r?y.endMs:(0,tG.toZonedTime)(y.endMs,$),axisLabel:{hideOverlap:!0,formatter:tQ(y.rangeMs??0)},axisPointer:{snap:!1}},yAxis:R(l,o),animation:!1,tooltip:{show:!0,showContent:d,trigger:d?"item":"axis",appendToBody:d},axisPointer:{type:"line",z:0,triggerEmphasis:!1,triggerTooltip:!1,snap:!1},toolbox:{feature:{dataZoom:{icon:null,yAxisIndex:"none"}}},grid:a};return m?m(i):i},[t,n,y,l,o,a,B,m,h,$,d,C,E]);return(0,s.useEffect)(()=>{null===D||null===w||S()(w,D)||(I(null),null!==D&&null!==E&&F(null))},[w,n]),(0,i.jsxs)(v.Z,{style:{height:e},onClick:e=>{let n=e.ctrlKey||e.metaKey;n&&e.preventDefault();let r=nI(e.nativeEvent.offsetX,e.nativeEvent.offsetY,T.current);if(null!==r&&k&&e.target instanceof HTMLCanvasElement){let i={page:{x:e.pageX,y:e.pageY},client:{x:e.clientX,y:e.clientY},plotCanvas:{x:e.nativeEvent.offsetX,y:e.nativeEvent.offsetY},target:e.target};I(e=>null===e?i:(F(null),null)),F(e=>{if(null!==e)return null;{let e=r[0],n=nF(t[0]?.values,e);return N()({},nT,{markLine:{data:[{xAxis:n}]}})}}),n||Z(i)}},onMouseDown:e=>{let{clientX:t}=e;O(!0),W(t)},onMouseMove:e=>{if(!(e.target instanceof HTMLCanvasElement))return;let{clientX:t}=e;P&&t-z>0&&M(!1)},onMouseUp:()=>{O(!1),W(0),M(!0)},onMouseLeave:()=>{null===D&&M(!1),void 0!==T.current&&nD(T.current)},onMouseEnter:()=>{M(!0),void 0!==T.current&&nA(T.current)},onDoubleClick:e=>{I(null),void 0===x?void 0!==T.current&&nM(T.current):x(e)},children:[!0===A&&_.tooltip?.showContent===!1&&!0!==u.hidden&&(0,i.jsx)(rm,{containerId:b.tooltipPortalContainerId,chartRef:T,data:t,seriesMapping:n,wrapLabels:u.wrapLabels,enablePinning:k,pinnedPos:D,format:o,onUnpinClick:()=>{I(null),F(null)}}),(0,i.jsx)(L,{sx:{width:"100%",height:"100%"},option:_,theme:b.echartsTheme,onEvents:H,_instance:T,syncGroup:p})]})});var rv=n(63767),ry=n(59986),rb=n(53578),rj=n(52583),rC=n(94913),rw=n(51727);let rZ="yyyy-MM-dd HH:mm:ss";function rS(e,t){return e?(0,c.isRelativeTimeRange)(e)?e.pastDuration:function(e,t,n){let r=tq(e.start,t,n),i=tq(e.end,t,n);return`${r} - ${i}`}(e,rZ,t):"Custom Time Range"}let rk=({initialTimeRange:e,onChange:t,onCancel:n})=>{let{formatWithUserTimeZone:r}=t2(),[l,a]=(0,s.useState)(e),[d,c]=(0,s.useState)({start:r(e.start,rZ),end:r(e.end,rZ)}),[u,h]=(0,s.useState)(!0),p=(e,t)=>{let n="string"==typeof e,i=n?e:r(e,rZ);c(e=>({...e,[t]:i})),n||a(n=>({...n,[t]:e}))},g=e=>{p(e,"start")},x=e=>{p(e,"end")},m=()=>{var e,t;let n={start:new Date(d.start),end:new Date(d.end)};if(e=n.start,t=n.end,(0,tX.isValid)(e)&&(0,tX.isValid)(t)?!!(0,tX.isBefore)(e,t)||(console.error("End Time is before Start Time"),!1):(console.error("Invalid Date"),!1))return a(n),n},f=()=>{let e=m();e&&t(e)};return(0,i.jsx)(rb._,{dateAdapter:rw.H,children:(0,i.jsxs)(z.Z,{spacing:2,sx:e=>({padding:e.spacing(1,0,2)}),children:[u&&(0,i.jsxs)(v.Z,{sx:e=>({".MuiPickersLayout-contentWrapper":{backgroundColor:e.palette.background.default}}),children:[(0,i.jsx)(eC.Z,{variant:"h3",padding:1,paddingLeft:2,children:"Select Start Time"}),(0,i.jsx)(rj.S,{displayStaticWrapperAs:"desktop",openTo:"day",disableHighlightToday:!0,value:e.start,onChange:e=>{null!==e&&g(e)},onAccept:()=>{h(!1)}})]}),!u&&(0,i.jsxs)(v.Z,{sx:e=>({".MuiPickersLayout-contentWrapper":{backgroundColor:e.palette.background.default}}),children:[(0,i.jsx)(eC.Z,{variant:"h3",padding:1,paddingLeft:2,children:"Select End Time"}),(0,i.jsx)(rj.S,{displayStaticWrapperAs:"desktop",openTo:"day",disableHighlightToday:!0,value:e.end,minDateTime:l.start,onChange:e=>{null!==e&&x(e)},onAccept:e=>{null!==e&&(h(!0),x(e))}})]}),(0,i.jsxs)(z.Z,{direction:"row",alignItems:"center",gap:1,pl:1,pr:1,children:[(0,i.jsx)(tI.ErrorBoundary,{FallbackComponent:tD,children:(0,i.jsx)(rC.l,{label:"Start Time",value:new Date(d.start),onChange:e=>{e&&g(e)},onBlur:()=>m(),format:rZ})}),(0,i.jsx)(tI.ErrorBoundary,{FallbackComponent:tD,children:(0,i.jsx)(rC.l,{label:"End Time",value:new Date(d.end),onChange:e=>{e&&x(e)},onBlur:()=>m(),format:rZ})})]}),(0,i.jsxs)(z.Z,{direction:"row",sx:{padding:e=>e.spacing(0,1)},gap:1,children:[(0,i.jsx)(o.Z,{variant:"contained",onClick:()=>f(),fullWidth:!0,children:"Apply"}),(0,i.jsx)(o.Z,{variant:"outlined",onClick:()=>n(),fullWidth:!0,children:"Cancel"})]})]})})};function rT({value:e,timeOptions:t,onChange:n,height:r,showCustomTimeRange:l=!0}){let{timeZone:o}=t2(),a=(0,s.useRef)(),[d,u]=(0,s.useState)(!1),h=(0,s.useMemo)(()=>(0,c.isRelativeTimeRange)(e)?(0,c.toAbsoluteTimeRange)(e):e,[e]),p=(0,s.useMemo)(()=>{var t;return{value:t=(0,c.isRelativeTimeRange)(e)?void 0:e,display:rS(t,o)}},[e,o]),[g,x]=(0,s.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y.ZP,{anchorEl:a.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},open:d,onClose:()=>u(!1),sx:e=>({padding:e.spacing(2)}),children:(0,i.jsx)(rk,{initialTimeRange:h,onChange:e=>{n(e),u(!1),x(!1)},onCancel:()=>u(!1)})}),(0,i.jsx)(v.Z,{ref:a,children:(0,i.jsxs)(rv.Z,{open:g,value:rS(e,o),onClick:()=>x(!g),IconComponent:ry.default,inputProps:{"aria-label":`Select time range. Currently set to ${e}`},sx:{".MuiSelect-icon":{marginTop:"1px",transform:"none"},".MuiSelect-select.MuiSelect-outlined.MuiInputBase-input":{paddingRight:"36px"},".MuiSelect-select":r?{lineHeight:r,paddingY:0}:{}},children:[t.map((e,t)=>(0,i.jsx)(tj.Z,{value:rS(e.value,o),onClick:()=>{n(e.value)},children:e.display},t)),l&&(0,i.jsx)(tj.Z,{value:rS(p.value,o),onClick:()=>u(!0),children:p.display})]})})]})}let rA=(0,G.ZP)(o.Z)(({theme:e})=>({padding:e.spacing(.5),minWidth:"auto"})),rM=(0,s.forwardRef)(function(e,t){return(0,i.jsx)(rA,{ref:t,variant:"outlined",color:"secondary",...e})}),rD=Object.entries(c.UNIT_CONFIG).map(([e,t])=>({id:e,...t})).filter(e=>!e.disableSelectorOption),rI=[{id:"default",label:"Default",decimalPlaces:void 0},{id:"0",label:"0",decimalPlaces:0},{id:"1",label:"1",decimalPlaces:1},{id:"2",label:"2",decimalPlaces:2},{id:"3",label:"3",decimalPlaces:3},{id:"4",label:"4",decimalPlaces:4}];function rE({value:e,onChange:t,disabled:n=!1}){var r;let l=(0,c.isUnitWithDecimalPlaces)(e),o=(0,c.isUnitWithShortValues)(e),a=({decimalPlaces:n})=>{l&&t({...e,decimalPlaces:n})},s=c.UNIT_CONFIG[e.unit];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(to,{label:"Short values",control:(0,i.jsx)(nj.Z,{checked:!!o&&(0,c.shouldShortenValues)(e.shortValues),onChange:(n,r)=>{o&&t({...e,shortValues:r})},disabled:!o})}),(0,i.jsx)(to,{label:"Unit",control:(0,i.jsx)(td,{value:{id:e.unit,...s},options:rD,groupBy:e=>e.group,onChange:(e,n)=>{t({unit:n.id})},disableClearable:!0,disabled:n})}),(0,i.jsx)(to,{label:"Decimals",control:(0,i.jsx)(td,{value:(r=e.decimalPlaces,rI.find(e=>e.decimalPlaces===r)),options:rI,getOptionLabel:e=>e.label,onChange:(e,t)=>a(t),disabled:!l,disableClearable:!0})})]})}function rL({name:e,height:t}){return(0,i.jsx)(v.Z,{style:{maxWidth:t,top:`calc(${t}px / 2)`},sx:{display:"inline-block",position:"absolute",transform:"translateX(-50%) rotate(-90deg)",transformOrigin:"top",textAlign:"center",zIndex:1},children:(0,i.jsx)(eC.Z,{variant:"body1","aria-label":"y axis label",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})})}var rF=n(78439);function rN(){let{enqueueSnackbar:e,closeSnackbar:t}=(0,rF.Ds)(),n=rR(e,"error"),r=rR(e,"info"),i=rR(e,"warning"),l=rR(e,"success"),o=(0,s.useCallback)((e,t)=>n(e instanceof Error?e.message:`An unexpected error occurred: ${e}`,t),[n]);return{enqueueSnackbar:e,closeSnackbar:t,errorSnackbar:n,infoSnackbar:r,warningSnackbar:i,successSnackbar:l,exceptionSnackbar:o}}function rR(e,t){return(0,s.useCallback)((n,r)=>e(n,{...r,variant:t}),[e,t])}function rP(e,t){let n=e.palette.text?.primary??"#222",r={title:{show:!1},textStyle:{color:n,fontFamily:e.typography.fontFamily,fontSize:12},grid:{top:5,right:20,bottom:0,left:20,containLabel:!0},color:["#56B4E9","#009E73","#0072B2","#CC79A7","#F0E442","#E69F00","#D55E00"],categoryAxis:{show:!0,axisLabel:{show:!0,color:n,margin:15},axisTick:{show:!1,length:6,lineStyle:{color:e.palette.grey[600]}},axisLine:{show:!0,lineStyle:{color:e.palette.grey[600]}},splitLine:{show:!0,lineStyle:{width:.5,color:e.palette.grey[300],opacity:.4}},splitArea:{show:!1,areaStyle:{color:[e.palette.grey[300]]}}},timeAxis:{show:!0,axisLabel:{show:!0,color:n,margin:15},axisTick:{show:!1,length:6,lineStyle:{color:e.palette.grey[600]}},axisLine:{show:!0,lineStyle:{color:e.palette.grey[600]}},splitLine:{show:!0,lineStyle:{width:.5,color:e.palette.grey[300],opacity:.4}},splitArea:{show:!1,areaStyle:{color:[e.palette.grey[300]]}}},valueAxis:{show:!0,axisLabel:{color:n,margin:12},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{width:.5,color:e.palette.grey[300],opacity:.6}}},legend:{orient:"horizontal",textStyle:{color:n},pageTextStyle:{color:e.palette.grey[600]},pageIconColor:e?.palette?.action?.active,pageIconInactiveColor:e?.palette?.action?.disabled},toolbox:{show:!0,top:10,right:10,iconStyle:{borderColor:n}},tooltip:{backgroundColor:e.palette.designSystem?.grey[800],borderColor:e.palette.designSystem?.grey[800],textStyle:{color:"#fff",fontSize:11}},axisPointer:{lineStyle:{color:e.palette.grey[500]}},markLine:{symbol:"none",symbolSize:0,itemStyle:{color:e.palette.grey[500]},lineStyle:{type:"dashed",width:1}},line:{showSymbol:!1,symbol:"circle",symbolSize:4,smooth:!1,lineStyle:{width:1},emphasis:{lineStyle:{width:1.5}}},bar:{barMaxWidth:150,itemStyle:{borderWidth:0,borderRadius:0,borderColor:e.palette.grey[300]},label:{show:!1,color:n}},gauge:{detail:{fontSize:18,fontWeight:600,valueAnimation:!1},splitLine:{distance:0,length:4,lineStyle:{width:1}},splitNumber:12}};return N()({echartsTheme:r,noDataOption:{title:{show:!0,textStyle:{color:n,fontSize:16,fontWeight:400},text:"No data",left:"center",top:"center"},xAxis:{show:!1},yAxis:{show:!1}},sparkline:{width:2,color:"#1976d2"},container:{padding:{default:parseInt(e.spacing(1.5),10)}},thresholds:{defaultColor:e.palette.success.main,palette:["#FFCC00",e.palette.warning.main,e.palette.error.main]}},t)}function rO(e){return{value:{pastDuration:e},display:`Last ${(0,tX.formatDuration)((0,c.parseDurationString)(e),{delimiter:", "})}`}}var rz=n(28730);let rW=rP((0,rz.Z)({}),{echartsTheme:{textStyle:{fontFamily:"Lato"},categoryAxis:{splitLine:{show:!1}},timeAxis:{splitLine:{show:!1}},bar:{barCategoryGap:2}}}),r$={chartsTheme:rW,enablePinning:!1,lastTooltipPinnedCoords:null,setLastTooltipPinnedCoords:()=>null};var rH=n(79602);let rB={defaultProps:{variant:"standard",severity:"success"},styleOverrides:{standardError:({theme:e})=>"dark"===e.palette.mode?{...e.typography.body1,backgroundColor:e.palette.error.dark,color:e.palette.error.light,[`& .${rH.Z.icon}`]:{color:e.palette.error.main}}:{...e.typography.body1,backgroundColor:e.palette.error.light,color:e.palette.error.dark,[`& .${rH.Z.icon}`]:{color:e.palette.error.main}},standardInfo:({theme:e})=>"dark"===e.palette.mode?{...e.typography.body1,backgroundColor:e.palette.info.dark,color:e.palette.info.light,[`& .${rH.Z.icon}`]:{color:e.palette.info.main}}:{...e.typography.body1,backgroundColor:e.palette.info.light,color:e.palette.info.dark,[`& .${rH.Z.icon}`]:{color:e.palette.info.main}},standardSuccess:({theme:e})=>"dark"===e.palette.mode?{...e.typography.body1,backgroundColor:e.palette.success.dark,color:e.palette.success.light,[`& .${rH.Z.icon}`]:{color:e.palette.success.main}}:{...e.typography.body1,backgroundColor:e.palette.success.light,color:e.palette.success.dark,[`& .${rH.Z.icon}`]:{color:e.palette.success.main}},standardWarning:({theme:e})=>"dark"===e.palette.mode?{...e.typography.body1,backgroundColor:e.palette.warning.dark,color:e.palette.warning.light,[`& .${rH.Z.icon}`]:{color:e.palette.warning.main}}:{...e.typography.body1,backgroundColor:e.palette.warning.light,color:e.palette.warning.dark,[`& .${rH.Z.icon}`]:{color:e.palette.warning.main}},root:{["& ."+n(757).Z.root]:{textDecoration:"underline"}}}},r_={50:"#F0F1F6",100:"#E1E3ED",150:"#D2D5E4",200:"#C3C7DB",300:"#A4ACC8",400:"#8690B6",500:"#717CA4",600:"#535D83",700:"#3E4662",800:"#2A2E42",850:"#1F2331",900:"#151721",950:"#0A0C10"},rV={50:"#E7F1FC",100:"#D0E3FA",150:"#B8D5F7",200:"#A1C7F5",300:"#72ABF0",400:"#438FEB",500:"#1473E6",600:"#105CB8",700:"#0C458A",800:"#082E5C",850:"#062345",900:"#04172E",950:"#020C17"},rU="#FFFFFF",rY=e=>{let t=r_["800"],n=r_["300"];return"light"===e?{navigation:t,accent:n,primary:r_["800"],secondary:r_["700"],disabled:r_["300"],link:rV["500"],linkHover:rV["600"]}:{navigation:t,accent:n,primary:rU,secondary:r_["50"],disabled:r_["600"],link:rV["400"],linkHover:rV["500"]}},rG=e=>{let t=rV["150"],n="rgba(21, 23, 33, 0.75)";return"light"===e?{navigation:t,overlay:n,default:rU,paper:r_["50"],code:r_["50"],tooltip:r_["100"],lighter:r_["50"],border:r_["100"]}:{navigation:t,overlay:n,default:r_["900"],paper:r_["850"],code:r_["800"],tooltip:r_["600"],lighter:r_["700"],border:r_["600"]}},rX=e=>"light"===e?{50:r_["50"],100:r_["100"],200:r_["200"],300:r_["300"],400:r_["400"],500:r_["500"],600:r_["600"],700:r_["700"],800:r_["800"],900:r_["900"],950:r_["950"]}:{50:r_["950"],100:r_["900"],200:r_["800"],300:r_["700"],400:r_["600"],500:r_["500"],600:r_["400"],700:r_["300"],800:r_["200"],900:r_["100"],950:r_["50"]},rK=e=>"light"===e?{main:rV["500"],dark:rV["600"],light:rV["50"]}:{main:rV["400"],dark:rV["800"],light:rV["200"]},rq=e=>"light"===e?{main:r_["600"],dark:r_["900"],light:r_["100"]}:{main:rU,dark:rU,light:rU},rJ={50:"#EAF9F1",100:"#D5F2E3",150:"#C1ECD4",200:"#ACE5C6",300:"#82D9AA",400:"#59CC8D",500:"#2FBF71",600:"#26995A",700:"#1C7344",800:"#134C2D",850:"#0E3922",900:"#092617",950:"#05130B"},rQ={50:"#FFF5E8",100:"#FFECD2",150:"#FFE2BB",200:"#FFD9A4",300:"#FFC577",400:"#FFB249",500:"#FF9F1C",600:"#CC7F16",700:"#995F11",800:"#66400B",850:"#4D3008",900:"#332006",950:"#1A1003"},r0={50:"#EFE9FD",100:"#E0D2FC",150:"#D0BCFA",200:"#C1A6F8",300:"#A179F5",400:"#824DF1",500:"#6320EE",600:"#4F1ABE",700:"#3B138F",800:"#280D5F",850:"#1E0A47",900:"#140630",950:"#0A0318"},r1={50:"#FDEDED",100:"#FBDADA",150:"#F9C8C8",200:"#F7B5B5",300:"#F29191",400:"#EE6C6C",500:"#EA4747",600:"#BD3939",700:"#902B2B",800:"#621D1D",850:"#4C1616",900:"#350F0F",950:"#1F0808"},r5=e=>"light"===e?{main:r1["500"],dark:r1["600"],light:r1["50"]}:{main:r1["400"],dark:r1["800"],light:r1["300"]},r2=e=>"light"===e?{main:rJ["500"],dark:rJ["700"],light:rJ["50"]}:{main:rJ["400"],dark:rJ["800"],light:rJ["300"]},r6=e=>"light"===e?{main:rQ["500"],dark:rQ["700"],light:rQ["50"]}:{main:rQ["400"],dark:rQ["800"],light:rQ["300"]};n(12711),n(89479),n(99511),n(53213);let r7={fontFamily:'"Lato", sans-serif',fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:700,fontWeightBold:900,h1:{fontSize:"1.5rem",fontWeight:700,lineHeight:"32px"},h2:{fontSize:"1.25rem",fontWeight:700,lineHeight:"28px"},h3:{fontSize:"1rem",fontWeight:700,lineHeight:"24px"},h4:{fontSize:"0.875rem",fontWeight:700,lineHeight:"22px"},h5:void 0,h6:void 0,body1:{fontSize:"0.875rem",fontWeight:400,lineHeight:"20px"},body2:{fontSize:"0.75rem",fontWeight:400,lineHeight:"18px"},subtitle1:{fontSize:"1rem",fontWeight:400,lineHeight:"24px",letterSpacing:"0.02rem"},subtitle2:{fontSize:"0.875rem",fontWeight:700,lineHeight:"22px",letterSpacing:"0.03rem",textTransform:"uppercase"},button:{fontSize:"0.875rem",fontWeight:700,lineHeight:"1.25rem",textTransform:"none",letterSpacing:"0.03rem"},caption:{fontSize:"0.6875rem",fontWeight:400,lineHeight:"16px"}},r3=({theme:e})=>({..."light"===e.palette.mode?{}:{backgroundImage:"unset",backgroundColor:e.palette.designSystem.grey[800]}});function r4(e,t={}){return(0,rz.Z)({palette:{mode:e,primary:rK(e),secondary:rq(e),grey:rX(e),background:rG(e),text:rY(e),error:r5(e),warning:r6(e),info:rK(e),success:r2(e),common:{white:rU,black:"#000000"},designSystem:{blue:rV,green:rJ,grey:r_,orange:rQ,purple:r0,red:r1}},typography:r7,mixins:{},components:r8,...t})}let r8={MuiAlert:rB,MuiFormControl:{defaultProps:{size:"small"}},MuiPaper:{styleOverrides:{root:({theme:e})=>({backgroundColor:e.palette.background.default})}},MuiTextField:{defaultProps:{size:"small"}},MuiDrawer:{styleOverrides:{paper:r3}},MuiDialog:{styleOverrides:{paper:r3}},MuiPopover:{styleOverrides:{paper:r3}}};var r9=n(84974),ie=n(12449),it=n(28418),ir=n(57689);function ii({value:e,onChange:t}){return(0,i.jsxs)(z.Z,{direction:"row",children:[(0,i.jsx)(ta.Z,{freeSolo:!0,multiple:!0,id:"join-columns",sx:{width:"100%"},options:[],value:e.spec.columns??[],renderInput:e=>(0,i.jsx)($.Z,{...e,variant:"outlined",label:"Columns",required:!0}),onChange:(n,r)=>{t({...e,spec:{...e.spec,columns:r}})}}),(0,i.jsx)(nX.Z,{label:"Enabled",labelPlacement:"start",control:(0,i.jsx)(nj.Z,{value:!e.spec.disabled,checked:!e.spec.disabled,onChange:n=>t({...e,spec:{...e.spec,disabled:!n.target.checked}})})})]})}function il({value:e,onChange:t}){return(0,i.jsxs)(z.Z,{direction:"row",gap:1,alignItems:"center",children:[(0,i.jsx)(ta.Z,{freeSolo:!0,multiple:!0,id:"merge-columns-columns",sx:{width:"100%"},options:[],value:e.spec.columns??[],renderInput:e=>(0,i.jsx)($.Z,{...e,variant:"outlined",label:"Columns",required:!0}),onChange:(n,r)=>{t({...e,spec:{...e.spec,columns:r}})}}),(0,i.jsx)(eq,{id:"merge-columns-name",variant:"outlined",label:"Output Name",value:e.spec.name??"",sx:{width:"100%"},onChange:n=>{t({...e,spec:{...e.spec,name:n}})},required:!0}),(0,i.jsx)(nX.Z,{label:"Enabled",labelPlacement:"start",control:(0,i.jsx)(nj.Z,{value:!e.spec.disabled,checked:!e.spec.disabled,onChange:n=>t({...e,spec:{...e.spec,disabled:!n.target.checked}})})})]})}function io({value:e,onChange:t}){return(0,i.jsxs)(z.Z,{direction:"row",children:[(0,i.jsx)(eq,{id:"merge-indexed-columns",variant:"outlined",label:"Column",placeholder:"Example: 'value' for merging 'value #1', 'value #2' and 'value #...'",value:e.spec.column??"",sx:{width:"100%"},onChange:n=>{t({...e,spec:{...e.spec,column:n}})},required:!0}),(0,i.jsx)(nX.Z,{label:"Enabled",labelPlacement:"start",control:(0,i.jsx)(nj.Z,{value:!e.spec.disabled,checked:!e.spec.disabled,onChange:n=>t({...e,spec:{...e.spec,disabled:!n.target.checked}})})})]})}function ia({value:e,onChange:t}){return(0,i.jsx)(z.Z,{direction:"row",children:(0,i.jsx)(nX.Z,{label:"Enabled",labelPlacement:"start",control:(0,i.jsx)(nj.Z,{value:!e.spec.disabled,checked:!e.spec.disabled,onChange:n=>t({...e,spec:{...e.spec,disabled:!n.target.checked}})})})})}function is({value:e,onChange:t,...n}){return(0,i.jsxs)(z.Z,{gap:2,sx:{width:"100%"},mt:1,...n,children:[(0,i.jsxs)(eq,{select:!0,label:"Kind",value:e.kind,onChange:n=>t({...e,kind:n}),children:[(0,i.jsx)(tj.Z,{value:"JoinByColumnValue",children:(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(eC.Z,{children:"Join by column value"}),(0,i.jsx)(eC.Z,{variant:"caption",children:"Regroup rows with equal cell value in a column"})]})}),(0,i.jsx)(tj.Z,{value:"MergeColumns",children:(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(eC.Z,{children:"Merge columns"}),(0,i.jsx)(eC.Z,{variant:"caption",children:"Multiple columns are merged to one column"})]})}),(0,i.jsx)(tj.Z,{value:"MergeIndexedColumns",children:(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(eC.Z,{children:"Merge indexed columns"}),(0,i.jsx)(eC.Z,{variant:"caption",children:"Indexed columns are merged to one column"})]})}),(0,i.jsx)(tj.Z,{value:"MergeSeries",children:(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(eC.Z,{children:"Merge series"}),(0,i.jsx)(eC.Z,{variant:"caption",children:"Series will be merged by their labels"})]})})]}),"JoinByColumnValue"===e.kind&&(0,i.jsx)(ii,{value:e,onChange:t}),"MergeColumns"===e.kind&&(0,i.jsx)(il,{value:e,onChange:t}),"MergeIndexedColumns"===e.kind&&(0,i.jsx)(io,{value:e,onChange:t}),"MergeSeries"===e.kind&&(0,i.jsx)(ia,{value:e,onChange:t})]})}function id({index:e,value:t,isCollapsed:n,onChange:r,onCollapse:l,onDelete:o,...a}){return(0,i.jsxs)(z.Z,{...a,children:[(0,i.jsxs)(z.Z,{direction:"row",alignItems:"center",borderBottom:1,borderColor:e=>e.palette.divider,justifyContent:"space-between",gap:4,children:[(0,i.jsxs)(z.Z,{direction:"row",gap:1,children:[(0,i.jsx)(W.Z,{"data-testid":`transform-toggle#${e}`,size:"small",onClick:()=>l(!n),children:n?(0,i.jsx)(r9.default,{}):(0,i.jsx)(ie.default,{})}),(0,i.jsx)(eC.Z,{variant:"overline",component:"h4",sx:{textTransform:"none"},children:t.kind?(0,i.jsx)("span",{children:(0,i.jsx)("strong",{children:c.TRANSFORM_TEXT[t.kind]})}):(0,i.jsx)("strong",{children:"Select a transformation kind"})})]}),(0,i.jsxs)(z.Z,{direction:"row",gap:1,children:[n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tt.Z,{title:t.spec?.disabled?"Enable transformation":"Disable transformation",placement:"top",children:(0,i.jsx)(W.Z,{size:"small",sx:{marginLeft:"auto"},onClick:function(){r({...t,spec:{...t.spec,disabled:!t.spec?.disabled}})},children:t.spec?.disabled?(0,i.jsx)(it.default,{}):(0,i.jsx)(ir.default,{})})}),(0,i.jsx)(tF.Z,{flexItem:!0,orientation:"vertical",variant:"middle"})]}),(0,i.jsx)(tt.Z,{title:"Remove transformation",placement:"top",children:(0,i.jsx)(W.Z,{size:"small",sx:{marginLeft:"auto"},onClick:o,children:(0,i.jsx)(rh.default,{})})})]})]}),!n&&(0,i.jsx)(is,{value:t,onChange:r})]})}function ic({value:e,onChange:t,...n}){let[r,l]=(0,s.useState)(e.map(()=>!0));return(0,i.jsxs)(z.Z,{gap:1,...n,children:[e.map((n,o)=>(0,i.jsx)(id,{index:o,value:n,isCollapsed:r[o]??!0,onChange:n=>(function(n,r){let i=[...e];i[n]=r,t(i)})(o,n),onDelete:()=>(function(n){let r=[...e];r.splice(n,1),t(r),l(e=>(e.splice(n,1),[...e]))})(o),onCollapse:e=>{l(t=>(t[o]=e,[...t]))}},o)),(0,i.jsx)(o.Z,{variant:"contained",startIcon:(0,i.jsx)(nq.default,{}),sx:{marginTop:1},onClick:function(){let n=[...e];n.push({kind:"",spec:{}}),t(n),l(e=>(e.push(!1),[...e]))},children:"Add Transformation"})]})}function iu(e){let{value:t,onChange:n,timeOptions:r,height:l}=e,o=(0,s.useMemo)(()=>{if(t&&!r.some(e=>e.value.pastDuration===t))return(0,i.jsx)(tj.Z,{value:t,children:t})},[r,t]);return(0,i.jsx)(e4.Z,{children:(0,i.jsx)(v.Z,{children:(0,i.jsxs)(rv.Z,{id:"refreshInterval",value:t,onChange:e=>{n(e.target.value)},inputProps:{"aria-label":`Select refresh interval. Currently set to ${t}`},sx:{".MuiSelect-select":l?{lineHeight:l,paddingY:0}:{}},children:[r.map((e,t)=>(0,i.jsx)(tj.Z,{value:e.value.pastDuration,children:e.display},t)),o]})})})}var ih=n(85731);function ip(e){let{width:t,height:n,data:r}=e,l=C(),o={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},axisLabel:{overflow:"truncate",width:t/3},series:[{name:"Access From",type:"pie",radius:"55%",label:!1,center:["40%","50%"],data:r,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}],itemStyle:{borderRadius:2,color:l.echartsTheme[0]}};return(0,i.jsx)(v.Z,{style:{width:t,height:n},sx:{overflow:"auto"},children:(0,i.jsx)(L,{sx:{minHeight:n,height:r?16*r.length:"100%"},option:o,theme:l.echartsTheme})})}(0,u.D)([ih.N,p.N,g.N,x.N,m.N,f.N]);var ig=n(27835),ix=n(943),im=n(72116);(0,u.D)([ig.N,ix.N,p.N,g.N,x.N,m.N,f.N]);let iv=e=>{var t;let{height:n,data:r,xAxisCategories:l,yAxisCategories:o,timeScale:a,colors:s}=e,{timeZone:d}=t2(),c=C(),u=(0,q.Z)(),h={tooltip:{appendToBody:!0,formatter:e=>(function({data:e,label:t,marker:n,xAxisCategories:r,yAxisCategories:i,theme:l}){let[o,a]=e,{formattedDate:s,formattedTime:d}=t0(r[o]),c=(0,im.css)`
|
|
2
|
-
border-bottom: 1px solid ${l.palette.grey[500]};
|
|
3
|
-
padding-bottom: 8px;
|
|
4
|
-
`,u=(0,im.css)`
|
|
5
|
-
display: flex;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
padding-top: 8px;
|
|
8
|
-
`,h=(0,im.css)`
|
|
9
|
-
margin-right: 16px;
|
|
10
|
-
`;return`
|
|
11
|
-
<div>
|
|
12
|
-
<div style="${c.styles}">${s} ${d}</div>
|
|
13
|
-
<div style="${u.styles}">
|
|
14
|
-
<div style="${h.styles}">
|
|
15
|
-
${n}
|
|
16
|
-
<strong>${i[a]}</strong>
|
|
17
|
-
</div>
|
|
18
|
-
<div>
|
|
19
|
-
${t}
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
`})({data:e.data.value,label:e.data.label,marker:e.marker,xAxisCategories:l,yAxisCategories:o,theme:u})},grid:{top:"5%",bottom:"5%"},xAxis:{type:"category",data:l,axisLine:{show:!1},splitArea:{show:!1},axisLabel:{hideOverlap:!0,formatter:(t=a?.rangeMs??0,function(e){let n=new Date(Number(e));return t>15768e7?tq(n,"yyy",d):t>63072e6?tq(n,"MMM yyy",d):t>864e6&&t<1577664e4?tq(n,"dd.MM",d):t>1728e5&&t<=864e6?tq(n,"dd.MM HH:mm",d):tq(n,"HH:mm",d)})}},yAxis:{type:"category",data:o,axisLine:{show:!1},splitArea:{show:!1,interval:0},splitLine:{show:!1},axisLabel:{interval:0}},visualMap:{show:!1,type:"piecewise",pieces:s},series:[{name:"Status history",type:"heatmap",coordinateSystem:"cartesian2d",data:r,label:{show:!1},itemStyle:{borderWidth:1,borderType:"solid",borderColor:"#ffffff"},emphasis:{itemStyle:{opacity:.5}}}]};return(0,i.jsx)(v.Z,{style:{height:n},sx:{overflow:"auto"},children:(0,i.jsx)(L,{sx:{width:"100%",height:n},option:h,theme:c.echartsTheme})})},iy="#1f77b4";function ib(e,t){t.match(/^#[0-9A-Fa-f]{6}$/)||(t=iy);try{let[n,r,i]=iC(t);if(isNaN(n)||isNaN(r)||isNaN(i))throw Error("Invalid HSL values");let l=String(e).split("").reduce((e,t)=>e+t.charCodeAt(0),0),o=Math.min(r+10,90),a=iw(Math.abs((n+l%6*60)%360),Math.min(Math.max(o,50),90),Math.min(Math.max(i+(l%2?15:-15),30),70));if(!a.match(/^#[0-9A-Fa-f]{6}$/))throw Error("Invalid generated color");return a}catch(e){return iy}}function ij(e,t){return t.length>=e.length?t.slice(0,e.length):e.map((e,n)=>n<t.length?t[n]||iy:ib(e,t[0]||iy))}function iC(e){let t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,i=Math.max(t,n,r),l=Math.min(t,n,r),o=0,a=0,s=(i+l)/2;if(i!==l){let e=i-l;switch(a=s>.5?e/(2-i-l):e/(i+l),i){case t:o=(n-r)/e+6*(n<r);break;case n:o=(r-t)/e+2;break;case r:o=(t-n)/e+4}o/=6}return[360*o,100*a,100*s]}function iw(e,t,n){let r=t*Math.min(n/=100,1-n)/100,i=t=>{let i=(t+e/30)%12;return Math.round(255*(n-r*Math.max(Math.min(i-3,9-i,1),-1))).toString(16).padStart(2,"0")};return`#${i(0)}${i(8)}${i(4)}`}var iZ=n(41305);let iS=({mapping:e,onChange:t,...n})=>{switch(e.kind){case"Value":return(0,i.jsx)(z.Z,{gap:1,direction:"row",...n,children:(0,i.jsx)($.Z,{label:"Value",placeholder:"Exact value",value:e.spec?.value??"",onChange:n=>t({...e,spec:{...e.spec,value:n.target.value}}),fullWidth:!0})});case"Range":return(0,i.jsxs)(z.Z,{gap:1,direction:"row",...n,children:[(0,i.jsx)($.Z,{label:"From",placeholder:"Start of range",value:e.spec?.from??"",onChange:n=>t({...e,spec:{...e.spec,from:""===n.target.value?void 0:+n.target.value}}),fullWidth:!0}),(0,i.jsx)($.Z,{label:"To",placeholder:"End of range (inclusive)",value:e.spec?.to??"",onChange:n=>t({...e,spec:{...e.spec,to:""===n.target.value?void 0:+n.target.value}}),fullWidth:!0})]});case"Regex":return(0,i.jsx)(z.Z,{gap:1,direction:"row",...n,children:(0,i.jsx)($.Z,{label:"Regular Expression",placeholder:"JavaScript regular expression",value:e.spec?.pattern??"",onChange:n=>t({...e,spec:{...e.spec,pattern:n.target.value}}),fullWidth:!0})});case"Misc":return(0,i.jsx)(z.Z,{gap:1,direction:"row",...n,children:(0,i.jsxs)($.Z,{select:!0,label:"Value",value:e.spec?.value??"",onChange:n=>t({...e,spec:{value:n.target.value}}),SelectProps:{renderValue:e=>{switch(e){case"empty":return"Empty";case"null":return"Null";case"NaN":return"NaN";case"true":return"True";case"false":return"False";default:return String(e)}}},fullWidth:!0,children:[(0,i.jsx)(tj.Z,{value:"empty",children:(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(eC.Z,{children:"Empty"}),(0,i.jsx)(eC.Z,{variant:"caption",children:"Matches empty string"})]})}),(0,i.jsx)(tj.Z,{value:"null",children:(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(eC.Z,{children:"Null"}),(0,i.jsx)(eC.Z,{variant:"caption",children:"Matches null or undefined"})]})}),(0,i.jsx)(tj.Z,{value:"NaN",children:(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(eC.Z,{children:"NaN"}),(0,i.jsx)(eC.Z,{variant:"caption",children:"Matches Not a Number value"})]})}),(0,i.jsx)(tj.Z,{value:"true",children:(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(eC.Z,{children:"True"}),(0,i.jsx)(eC.Z,{variant:"caption",children:"Matches true boolean"})]})}),(0,i.jsx)(tj.Z,{value:"false",children:(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(eC.Z,{children:"False"}),(0,i.jsx)(eC.Z,{variant:"caption",children:"Matches false boolean"})]})})]})});default:return null}},ik=({mapping:e,onChange:t,onDelete:n,...r})=>{let l=n=>{t({...e,spec:{...e.spec,result:{...e.spec.result,color:n}}})};return(0,i.jsxs)(iZ.Z,{container:!0,spacing:2,...r,children:[(0,i.jsx)(iZ.Z,{size:{xs:5},children:(0,i.jsxs)(z.Z,{direction:"row",gap:1,width:"100%",children:[(0,i.jsxs)($.Z,{select:!0,label:"Type",value:e.kind,onChange:n=>t({...e,kind:n.target.value}),required:!0,sx:{width:"120px"},children:[(0,i.jsx)(tj.Z,{value:"Value",children:(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(eC.Z,{children:"Value"}),"Value"!==e.kind&&(0,i.jsx)(eC.Z,{variant:"caption",children:"Matches an exact text value"})]})}),(0,i.jsx)(tj.Z,{value:"Range",children:(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(eC.Z,{children:"Range"}),"Range"!==e.kind&&(0,i.jsx)(eC.Z,{variant:"caption",children:"Matches against a numerical range"})]})}),(0,i.jsx)(tj.Z,{value:"Regex",children:(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(eC.Z,{children:"Regex"}),"Regex"!==e.kind&&(0,i.jsx)(eC.Z,{variant:"caption",children:"Matches against a regular expression"})]})}),(0,i.jsx)(tj.Z,{value:"Misc",children:(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(eC.Z,{children:"Misc"}),"Misc"!==e.kind&&(0,i.jsx)(eC.Z,{variant:"caption",children:"Matches against empty, null and NaN values"})]})})]}),(0,i.jsx)(iS,{width:"100%",mapping:e,onChange:n=>t({...e,...n})})]})}),(0,i.jsx)(iZ.Z,{size:{xs:4},children:(0,i.jsx)($.Z,{label:"Display text",value:e.spec?.result?.value??"",onChange:n=>t({...e,spec:{...e.spec,result:{...e.spec?.result,value:n.target.value}}}),fullWidth:!0})}),(0,i.jsx)(iZ.Z,{size:{xs:1},children:(0,i.jsx)(z.Z,{direction:"row",justifyContent:"center",gap:1,children:e.spec?.result?.color?(0,i.jsx)(X,{label:"Color",color:e.spec.result.color??"#000",onColorChange:l,onClear:()=>l(void 0)}):(0,i.jsx)(W.Z,{onClick:()=>l("#000"),children:(0,i.jsx)(nq.default,{})})})}),(0,i.jsx)(iZ.Z,{size:{xs:1},textAlign:"end",children:(0,i.jsx)(tt.Z,{title:"Remove mapping settings",placement:"top",children:(0,i.jsx)(W.Z,{size:"small",sx:{marginLeft:"auto"},onClick:n,children:(0,i.jsx)(rh.default,{})})})})]})},iT=({mappings:e,onChange:t})=>{let[n,r]=(0,s.useState)(e);return(0,i.jsxs)(z.Z,{spacing:1,children:[(0,i.jsxs)(iZ.Z,{container:!0,spacing:2,children:[(0,i.jsx)(iZ.Z,{size:{xs:5},children:(0,i.jsx)(eC.Z,{variant:"subtitle1",children:"Condition"})}),(0,i.jsx)(iZ.Z,{size:{xs:4},children:(0,i.jsx)(eC.Z,{variant:"subtitle1",children:"Display Text"})}),(0,i.jsx)(iZ.Z,{size:{xs:1},textAlign:"center",children:(0,i.jsx)(eC.Z,{variant:"subtitle1",children:"Color"})}),(0,i.jsx)(iZ.Z,{size:{xs:1}})]}),(0,i.jsx)(z.Z,{gap:1.5,divider:(0,i.jsx)(tF.Z,{flexItem:!0,orientation:"horizontal"}),children:n.map((e,l)=>(0,i.jsx)(ik,{mapping:e,onChange:e=>(function(e,i){let l=[...n];l[e]=i,r(l),t(l)})(l,e),onDelete:()=>(function(e){let i=[...n];i.splice(e,1),r(i),t(i)})(l)},l))}),(0,i.jsx)(o.Z,{variant:"contained",startIcon:(0,i.jsx)(nq.default,{}),sx:{marginTop:1},onClick:function(){let e=[...n];e.push({kind:"Value",spec:{result:{value:""}}}),r(e),t(e)},children:"Add value mappings"})]})}}}]);
|