anarock-widgets 1.0.64 → 1.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +5 -3
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -117,7 +117,7 @@ export default theme;`}function e0(e){return typeof e=="number"?`${(e*100).toFix
|
|
|
117
117
|
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function jR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const yr=e=>{try{return e()}catch{}},NR=(e="mui")=>ZN(e);function Vf(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const o=i==="dark"?"dark":"light";if(!r){t[i]=CR({...n,palette:{mode:o,...n?.palette},colorSpace:e});return}const{palette:a,...s}=qh({...r,palette:{mode:o,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...ZE(o),...n?.opacity},overlays:n?.overlays||JE(o)},s}function RR(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=TR,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],p=r||(n.light&&d!=="light"?"light":d),h=NR(o),{[p]:g,light:m,dark:v,...y}=n,S={...y};let x=g;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:jr(21,p));let b;a&&(b="oklch");const O=Vf(b,S,x,u,p);m&&!S.light&&Vf(b,S,m,void 0,"light"),v&&!S.dark&&Vf(b,S,v,void 0,"dark");let E={defaultColorScheme:p,...O,cssVarPrefix:o,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:S,font:{...uR(O.typography),...O.font},spacing:jR(u.spacing)};Object.keys(E.colorSchemes).forEach(M=>{const P=E.colorSchemes[M].palette,D=N=>{const L=N.split("-"),B=L[1],K=L[2];return h(N,P[B][K])};P.mode==="light"&&(q(P.common,"background","#fff"),q(P.common,"onBackground","#000")),P.mode==="dark"&&(q(P.common,"background","#000"),q(P.common,"onBackground","#fff"));function j(N,L,B){if(b){let K;return N===Zi&&(K=`transparent ${((1-B)*100).toFixed(0)}%`),N===Ve&&(K=`#000 ${(B*100).toFixed(0)}%`),N===We&&(K=`#fff ${(B*100).toFixed(0)}%`),`color-mix(in ${b}, ${L}, ${K})`}return N(L,B)}if(MR(P,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),P.mode==="light"){q(P.Alert,"errorColor",j(Ve,P.error.light,.6)),q(P.Alert,"infoColor",j(Ve,P.info.light,.6)),q(P.Alert,"successColor",j(Ve,P.success.light,.6)),q(P.Alert,"warningColor",j(Ve,P.warning.light,.6)),q(P.Alert,"errorFilledBg",D("palette-error-main")),q(P.Alert,"infoFilledBg",D("palette-info-main")),q(P.Alert,"successFilledBg",D("palette-success-main")),q(P.Alert,"warningFilledBg",D("palette-warning-main")),q(P.Alert,"errorFilledColor",yr(()=>P.getContrastText(P.error.main))),q(P.Alert,"infoFilledColor",yr(()=>P.getContrastText(P.info.main))),q(P.Alert,"successFilledColor",yr(()=>P.getContrastText(P.success.main))),q(P.Alert,"warningFilledColor",yr(()=>P.getContrastText(P.warning.main))),q(P.Alert,"errorStandardBg",j(We,P.error.light,.9)),q(P.Alert,"infoStandardBg",j(We,P.info.light,.9)),q(P.Alert,"successStandardBg",j(We,P.success.light,.9)),q(P.Alert,"warningStandardBg",j(We,P.warning.light,.9)),q(P.Alert,"errorIconColor",D("palette-error-main")),q(P.Alert,"infoIconColor",D("palette-info-main")),q(P.Alert,"successIconColor",D("palette-success-main")),q(P.Alert,"warningIconColor",D("palette-warning-main")),q(P.AppBar,"defaultBg",D("palette-grey-100")),q(P.Avatar,"defaultBg",D("palette-grey-400")),q(P.Button,"inheritContainedBg",D("palette-grey-300")),q(P.Button,"inheritContainedHoverBg",D("palette-grey-A100")),q(P.Chip,"defaultBorder",D("palette-grey-400")),q(P.Chip,"defaultAvatarColor",D("palette-grey-700")),q(P.Chip,"defaultIconColor",D("palette-grey-700")),q(P.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(P.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(P.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(P.LinearProgress,"primaryBg",j(We,P.primary.main,.62)),q(P.LinearProgress,"secondaryBg",j(We,P.secondary.main,.62)),q(P.LinearProgress,"errorBg",j(We,P.error.main,.62)),q(P.LinearProgress,"infoBg",j(We,P.info.main,.62)),q(P.LinearProgress,"successBg",j(We,P.success.main,.62)),q(P.LinearProgress,"warningBg",j(We,P.warning.main,.62)),q(P.Skeleton,"bg",b?j(Zi,P.text.primary,.11):`rgba(${D("palette-text-primaryChannel")} / 0.11)`),q(P.Slider,"primaryTrack",j(We,P.primary.main,.62)),q(P.Slider,"secondaryTrack",j(We,P.secondary.main,.62)),q(P.Slider,"errorTrack",j(We,P.error.main,.62)),q(P.Slider,"infoTrack",j(We,P.info.main,.62)),q(P.Slider,"successTrack",j(We,P.success.main,.62)),q(P.Slider,"warningTrack",j(We,P.warning.main,.62));const N=b?j(Ve,P.background.default,.6825):ic(P.background.default,.8);q(P.SnackbarContent,"bg",N),q(P.SnackbarContent,"color",yr(()=>b?Hh.text.primary:P.getContrastText(N))),q(P.SpeedDialAction,"fabHoverBg",ic(P.background.paper,.15)),q(P.StepConnector,"border",D("palette-grey-400")),q(P.StepContent,"border",D("palette-grey-400")),q(P.Switch,"defaultColor",D("palette-common-white")),q(P.Switch,"defaultDisabledColor",D("palette-grey-100")),q(P.Switch,"primaryDisabledColor",j(We,P.primary.main,.62)),q(P.Switch,"secondaryDisabledColor",j(We,P.secondary.main,.62)),q(P.Switch,"errorDisabledColor",j(We,P.error.main,.62)),q(P.Switch,"infoDisabledColor",j(We,P.info.main,.62)),q(P.Switch,"successDisabledColor",j(We,P.success.main,.62)),q(P.Switch,"warningDisabledColor",j(We,P.warning.main,.62)),q(P.TableCell,"border",j(We,j(Zi,P.divider,1),.88)),q(P.Tooltip,"bg",j(Zi,P.grey[700],.92))}if(P.mode==="dark"){q(P.Alert,"errorColor",j(We,P.error.light,.6)),q(P.Alert,"infoColor",j(We,P.info.light,.6)),q(P.Alert,"successColor",j(We,P.success.light,.6)),q(P.Alert,"warningColor",j(We,P.warning.light,.6)),q(P.Alert,"errorFilledBg",D("palette-error-dark")),q(P.Alert,"infoFilledBg",D("palette-info-dark")),q(P.Alert,"successFilledBg",D("palette-success-dark")),q(P.Alert,"warningFilledBg",D("palette-warning-dark")),q(P.Alert,"errorFilledColor",yr(()=>P.getContrastText(P.error.dark))),q(P.Alert,"infoFilledColor",yr(()=>P.getContrastText(P.info.dark))),q(P.Alert,"successFilledColor",yr(()=>P.getContrastText(P.success.dark))),q(P.Alert,"warningFilledColor",yr(()=>P.getContrastText(P.warning.dark))),q(P.Alert,"errorStandardBg",j(Ve,P.error.light,.9)),q(P.Alert,"infoStandardBg",j(Ve,P.info.light,.9)),q(P.Alert,"successStandardBg",j(Ve,P.success.light,.9)),q(P.Alert,"warningStandardBg",j(Ve,P.warning.light,.9)),q(P.Alert,"errorIconColor",D("palette-error-main")),q(P.Alert,"infoIconColor",D("palette-info-main")),q(P.Alert,"successIconColor",D("palette-success-main")),q(P.Alert,"warningIconColor",D("palette-warning-main")),q(P.AppBar,"defaultBg",D("palette-grey-900")),q(P.AppBar,"darkBg",D("palette-background-paper")),q(P.AppBar,"darkColor",D("palette-text-primary")),q(P.Avatar,"defaultBg",D("palette-grey-600")),q(P.Button,"inheritContainedBg",D("palette-grey-800")),q(P.Button,"inheritContainedHoverBg",D("palette-grey-700")),q(P.Chip,"defaultBorder",D("palette-grey-700")),q(P.Chip,"defaultAvatarColor",D("palette-grey-300")),q(P.Chip,"defaultIconColor",D("palette-grey-300")),q(P.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(P.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(P.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(P.LinearProgress,"primaryBg",j(Ve,P.primary.main,.5)),q(P.LinearProgress,"secondaryBg",j(Ve,P.secondary.main,.5)),q(P.LinearProgress,"errorBg",j(Ve,P.error.main,.5)),q(P.LinearProgress,"infoBg",j(Ve,P.info.main,.5)),q(P.LinearProgress,"successBg",j(Ve,P.success.main,.5)),q(P.LinearProgress,"warningBg",j(Ve,P.warning.main,.5)),q(P.Skeleton,"bg",b?j(Zi,P.text.primary,.13):`rgba(${D("palette-text-primaryChannel")} / 0.13)`),q(P.Slider,"primaryTrack",j(Ve,P.primary.main,.5)),q(P.Slider,"secondaryTrack",j(Ve,P.secondary.main,.5)),q(P.Slider,"errorTrack",j(Ve,P.error.main,.5)),q(P.Slider,"infoTrack",j(Ve,P.info.main,.5)),q(P.Slider,"successTrack",j(Ve,P.success.main,.5)),q(P.Slider,"warningTrack",j(Ve,P.warning.main,.5));const N=b?j(We,P.background.default,.985):ic(P.background.default,.98);q(P.SnackbarContent,"bg",N),q(P.SnackbarContent,"color",yr(()=>b?YE.text.primary:P.getContrastText(N))),q(P.SpeedDialAction,"fabHoverBg",ic(P.background.paper,.15)),q(P.StepConnector,"border",D("palette-grey-600")),q(P.StepContent,"border",D("palette-grey-600")),q(P.Switch,"defaultColor",D("palette-grey-300")),q(P.Switch,"defaultDisabledColor",D("palette-grey-600")),q(P.Switch,"primaryDisabledColor",j(Ve,P.primary.main,.55)),q(P.Switch,"secondaryDisabledColor",j(Ve,P.secondary.main,.55)),q(P.Switch,"errorDisabledColor",j(Ve,P.error.main,.55)),q(P.Switch,"infoDisabledColor",j(Ve,P.info.main,.55)),q(P.Switch,"successDisabledColor",j(Ve,P.success.main,.55)),q(P.Switch,"warningDisabledColor",j(Ve,P.warning.main,.55)),q(P.TableCell,"border",j(Ve,j(Zi,P.divider,1),.68)),q(P.Tooltip,"bg",j(Zi,P.grey[700],.92))}zr(P.background,"default"),zr(P.background,"paper"),zr(P.common,"background"),zr(P.common,"onBackground"),zr(P,"divider"),Object.keys(P).forEach(N=>{const L=P[N];N!=="tonalOffset"&&L&&typeof L=="object"&&(L.main&&q(P[N],"mainChannel",bs(xs(L.main))),L.light&&q(P[N],"lightChannel",bs(xs(L.light))),L.dark&&q(P[N],"darkChannel",bs(xs(L.dark))),L.contrastText&&q(P[N],"contrastTextChannel",bs(xs(L.contrastText))),N==="text"&&(zr(P[N],"primary"),zr(P[N],"secondary")),N==="action"&&(L.active&&zr(P[N],"active"),L.selected&&zr(P[N],"selected")))})}),E=t.reduce((M,P)=>cn(M,P),E);const C={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:kR(E),enableContrastVars:a},{vars:T,generateThemeVars:k,generateStyleSheets:R}=eR(E,C);return E.vars=T,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([M,P])=>{E[M]=P}),E.generateThemeVars=k,E.generateStyleSheets=R,E.generateSpacing=function(){return LE(u.spacing,sg(this))},E.getColorSchemeSelector=tR(l),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=s,E.unstable_sxConfig={...xl,...u?.unstable_sxConfig},E.unstable_sx=function(P){return ga({sx:P,theme:this})},E.toRuntimeSource=XE,E}function t0(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:wg({...n===!0?{}:n.palette,mode:t})})}function DR(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...a}=e,s=o||"light",l=i?.[s],c={...i,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return qh(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=qh({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},t0(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},t0(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),RR({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Og=DR(),Sg="$$material";function Ad(){const e=FE(Og);return process.env.NODE_ENV!=="production"&&_.useDebugValue(e),e[Sg]||e}function QE(e){return w.jsx(BE,{...e,defaultTheme:Og,themeId:Sg})}process.env.NODE_ENV!=="production"&&(QE.propTypes={styles:f.oneOfType([f.array,f.func,f.number,f.object,f.string,f.bool])});function e_(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Wn=e=>e_(e)&&e!=="classes",ve=RN({themeId:Sg,defaultTheme:Og,rootShouldForwardProp:Wn});function IR(e){return function(n){return w.jsx(QE,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function $R(){return bj}const St=XN;process.env.NODE_ENV!=="production"&&(f.node,f.object.isRequired);function ut(e){return KN(e)}function LR(e){return Ge("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const FR=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Re(t)}`,`fontSize${Re(n)}`]};return rt(i,LR,r)},BR=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Re(n.color)}`],t[`fontSize${Re(n.fontSize)}`]]}})(St(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),lu=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...h}=r,g=_.isValidElement(i)&&i.type==="svg",m={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:g},v={};u||(v.viewBox=p);const y=FR(m);return w.jsxs(BR,{as:s,className:oe(y.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...v,...h,...g&&i.props,ownerState:m,children:[g?i.props.children:i,d?w.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(lu.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),f.string]),component:f.elementType,fontSize:f.oneOfType([f.oneOf(["inherit","large","medium","small"]),f.string]),htmlColor:f.string,inheritViewBox:f.bool,shapeRendering:f.string,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),titleAccess:f.string,viewBox:f.string});lu.muiName="SvgIcon";function Fi(e,t){function n(r,i){return w.jsx(lu,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=lu.muiName,_.memo(_.forwardRef(n))}function t_(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Ln(e){return e&&e.ownerDocument||document}function ri(e){return Ln(e).defaultView||window}function n0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function cu(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:o}=_.useRef(t!==void 0),[a,s]=_.useState(n),l=o?t:a;if(process.env.NODE_ENV!=="production"){_.useEffect(()=>{o!==(t!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${i} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
118
118
|
`))},[i,r,t]);const{current:u}=_.useRef(n);_.useEffect(()=>{!o&&JSON.stringify(n)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
119
119
|
`))},[JSON.stringify(n)])}const c=_.useCallback(u=>{o||s(u)},[]);return[l,c]}function Qr(e){const t=_.useRef(e);return Nr(()=>{t.current=e}),_.useRef((...n)=>(0,t.current)(...n)).current}function Ht(...e){const t=_.useRef(void 0),n=_.useCallback(r=>{const i=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const a=o,s=a(r);return typeof s=="function"?s:()=>{a(null)}}return o.current=r,()=>{o.current=null}});return()=>{i.forEach(o=>o?.())}},e);return _.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function zR(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function n_(e,t){if(!e)return t;function n(a,s){const l={};return Object.keys(s).forEach(c=>{zR(c,s[c])&&typeof a[c]=="function"&&(l[c]=(...u)=>{a[c](...u),s[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return a=>{const s=typeof t=="function"?t(a):t,l=typeof e=="function"?e({...a,...s}):e,c=oe(a?.className,s?.className,l?.className),u=n(l,s);return{...s,...l,...u,...!!c&&{className:c},...s?.style&&l?.style&&{style:{...s.style,...l.style}},...s?.sx&&l?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,i=n(e,r),o=oe(r?.className,e?.className);return{...t,...e,...i,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const VR=Fi(w.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),Sl=Fi(w.jsx("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"}),"DescriptionOutlined"),WR=Fi(w.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),qt=Fi(w.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNewOutlined");var r_={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},r0=I.createContext&&I.createContext(r_),UR=["attr","size","title"];function HR(e,t){if(e==null)return{};var n=qR(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qR(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function uu(){return uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uu.apply(this,arguments)}function i0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function du(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i0(Object(n),!0).forEach(function(r){KR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KR(e,t,n){return t=YR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YR(e){var t=GR(e,"string");return typeof t=="symbol"?t:t+""}function GR(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i_(e){return e&&e.map((t,n)=>I.createElement(t.tag,du({key:n},t.attr),i_(t.child)))}function Xe(e){return t=>I.createElement(XR,uu({attr:du({},e.attr)},t),i_(e.child))}function XR(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=HR(e,UR),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),I.createElement("svg",uu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:du(du({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&I.createElement("title",null,o),e.children)};return r0!==void 0?I.createElement(r0.Consumer,null,n=>t(n)):t(r_)}function ZR(e){return Xe({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 160c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-82.7L342.6 374.6c-12.5 12.5-32.8 12.5-45.3 0L192 269.3 54.6 406.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0L320 306.7 466.7 160 384 160z"},child:[]}]})(e)}function JR(e){return Xe({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"},child:[]}]})(e)}function QR(e){return Xe({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"},child:[]}]})(e)}function eD(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"},child:[]}]})(e)}function tD(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"},child:[]}]})(e)}function nD({title:e,description:t}){return w.jsxs("div",{className:"flex items-center justify-between px-6 my-6",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[24px] text-[#121212] font-semibold",children:e}),w.jsx("div",{className:"text-gray-500 text-[14px]",children:t})]}),w.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-[12px]",children:[w.jsxs("div",{className:"w-full sm:w-auto flex items-center justify-center gap-[8px] bg-white shadow-sm px-2 md:px-6 py-1 rounded-sm text-[#64748B] text-sm hover:bg-slate-50",children:[w.jsx(VR,{fontSize:"12"}),w.jsx("div",{className:" whitespace-nowrap",children:"Last 7 Days"}),w.jsx(eD,{fontSize:"12"})]}),w.jsxs("div",{className:"w-full flex items-center justify-center gap-[8px] bg-white text-[#884EA7] px-2 md:px-6 py-1 rounded-sm shadow-sm hover:bg-purple-50",children:[w.jsx("div",{className:"font-medium whitespace-nowrap",children:"Export Report"}),w.jsx(WR,{fontSize:"12"})]})]})]})}function o0(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(e)}function rD(e){return Xe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"},child:[]}]})(e)}function Eg(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M9 22v-4h6v4"},child:[]},{tag:"path",attr:{d:"M8 6h.01"},child:[]},{tag:"path",attr:{d:"M16 6h.01"},child:[]},{tag:"path",attr:{d:"M12 6h.01"},child:[]},{tag:"path",attr:{d:"M12 10h.01"},child:[]},{tag:"path",attr:{d:"M12 14h.01"},child:[]},{tag:"path",attr:{d:"M16 10h.01"},child:[]},{tag:"path",attr:{d:"M16 14h.01"},child:[]},{tag:"path",attr:{d:"M8 10h.01"},child:[]},{tag:"path",attr:{d:"M8 14h.01"},child:[]}]})(e)}function iD(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2"},child:[]},{tag:"circle",attr:{cx:"7",cy:"17",r:"2"},child:[]},{tag:"path",attr:{d:"M9 17h6"},child:[]},{tag:"circle",attr:{cx:"17",cy:"17",r:"2"},child:[]}]})(e)}function o_(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 4h3a2 2 0 0 1 2 2v14"},child:[]},{tag:"path",attr:{d:"M2 20h3"},child:[]},{tag:"path",attr:{d:"M13 20h9"},child:[]},{tag:"path",attr:{d:"M10 12v.01"},child:[]},{tag:"path",attr:{d:"M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z"},child:[]}]})(e)}function oD(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 5h6"},child:[]},{tag:"path",attr:{d:"M19 2v6"},child:[]},{tag:"path",attr:{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5"},child:[]},{tag:"path",attr:{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"},child:[]},{tag:"circle",attr:{cx:"9",cy:"9",r:"2"},child:[]}]})(e)}function a_(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},child:[]}]})(e)}function a0(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z"},child:[]},{tag:"path",attr:{d:"M14 8H8"},child:[]},{tag:"path",attr:{d:"M16 12H8"},child:[]},{tag:"path",attr:{d:"M13 16H8"},child:[]}]})(e)}function s_(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"},child:[]},{tag:"path",attr:{d:"m9 12 2 2 4-4"},child:[]}]})(e)}function _g(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]},{tag:"path",attr:{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]},{tag:"path",attr:{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]}]})(e)}function aD(e){return Xe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},child:[]}]})(e)}function l_(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.03 2.59a1.501 1.501 0 0 1 1.94 0l7.5 6.363a1.5 1.5 0 0 1 .53 1.144V19.5a1.5 1.5 0 0 1-1.5 1.5h-5.75a.75.75 0 0 1-.75-.75V14h-2v6.25a.75.75 0 0 1-.75.75H4.5A1.5 1.5 0 0 1 3 19.5v-9.403c0-.44.194-.859.53-1.144ZM12 3.734l-7.5 6.363V19.5h5v-6.25a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 .75.75v6.25h5v-9.403Z"},child:[]}]})(e)}function c_(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3.5 8a5.5 5.5 0 1 1 8.596 4.547 9.005 9.005 0 0 1 5.9 8.18.751.751 0 0 1-1.5.045 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.499-.044 9.005 9.005 0 0 1 5.9-8.181A5.496 5.496 0 0 1 3.5 8ZM9 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm8.29 4c-.148 0-.292.01-.434.03a.75.75 0 1 1-.212-1.484 4.53 4.53 0 0 1 3.38 8.097 6.69 6.69 0 0 1 3.956 6.107.75.75 0 0 1-1.5 0 5.193 5.193 0 0 0-3.696-4.972l-.534-.16v-1.676l.41-.209A3.03 3.03 0 0 0 17.29 8Z"},child:[]}]})(e)}function u_(e){return Xe({attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 2 7 L 2 24 L 30 24 L 30 7 L 2 7 z M 6 9 L 26 9 C 26 10.105 26.895 11 28 11 L 28 20 C 26.895 20 26 20.895 26 22 L 6 22 C 6 20.895 5.105 20 4 20 L 4 11 C 5.105 11 6 10.105 6 9 z M 16 11 C 13.789 11 12 13.016 12 15.5 C 12 17.984 13.789 20 16 20 C 18.211 20 20 17.984 20 15.5 C 20 13.016 18.211 11 16 11 z M 16 13 C 17.102 13 18 14.121 18 15.5 C 18 16.879 17.102 18 16 18 C 14.898 18 14 16.879 14 15.5 C 14 14.121 14.898 13 16 13 z M 8.5 14 C 7.672 14 7 14.672 7 15.5 C 7 16.328 7.672 17 8.5 17 C 9.328 17 10 16.328 10 15.5 C 10 14.672 9.328 14 8.5 14 z M 23.5 14 C 22.672 14 22 14.672 22 15.5 C 22 16.328 22.672 17 23.5 17 C 24.328 17 25 16.328 25 15.5 C 25 14.672 24.328 14 23.5 14 z"},child:[]}]})(e)}const sD=[{name:"Overview",icon:l_},{name:"Community",icon:Eg},{name:"Financials",icon:u_},{name:"Facilities",icon:o_},{name:"Gate & Security",icon:_g},{name:"Helpdesk",icon:rD},{name:"Engagement",icon:a_}];function lD(){const[e,t]=I.useState("Overview");return w.jsx("div",{className:"flex gap-[8px] p-3",children:sD.map(n=>{const r=n.icon,i=e===n.name;return w.jsxs("button",{onClick:()=>t(n.name),className:`flex items-center gap-[8px] rounded px-4 py-3 text-[14px] leading-[16px] font-medium transition
|
|
120
|
-
${i?"bg-[#FBF5FF] text-[#884EA7]":"bg-white text-[#64748B] hover:bg-gray-50"}`,children:[w.jsx(r,{className:"h-[15px] w-[15px] font-bold"}),n.name]},n.name)})})}const s0=({color:e})=>w.jsx("span",{style:{display:"inline-block",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e,marginRight:"6px"}}),El=({active:e,payload:t})=>!e||!t||!t.length?null:w.jsx("div",{className:"bg-[#121212] text-white !text-[12px] p-3 rounded-lg shadow-lg",children:t.map((n,r)=>w.jsxs("div",{className:"capitalize flex gap-[4px] items-center leading-relaxed",children:[n.color&&w.jsx(s0,{color:n.color}),n.payload.color&&w.jsx(s0,{color:n.payload.color}),w.jsx("div",{className:"min-w-[84px] text-[#D1D3D4]",children:n.name}),w.jsx("div",{className:"font-semibold",children:n.value})]},r))}),d_=({value:e})=>{const t=typeof e=="string"?parseFloat(e.replace("%","")):e??0,n=t>=0;return w.jsxs("div",{className:`w-fit p-1 rounded text-[10px] leading-[14px] font-medium flex items-center gap-1 ${n?"bg-[#F7FEFA] text-[#1FA05B]":"bg-[#FFF2F2] text-[#AB0000]"}`,children:[n?w.jsx(QR,{}):w.jsx(JR,{}),Math.abs(t).toFixed(1),"%"]})},$o=({title:e,icon:t,period:n,actionButtons:r,children:i,footer:o,className:a="",childrenClassName:s,titleWeight:l})=>{const c=l==="semi-bold"?600:500;return w.jsxs("div",{className:`relative bg-white !border-[0.5px] !border-[#EBEBEB] !rounded-[12px] !shadow-[0_0_12px_0_#EAF2FF] p-[16px] flex flex-col gap-[24px] ${a}`,children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-[12px]",children:[t,w.jsx("div",{style:{fontWeight:c,fontSize:"16px",lineHeight:"20px"},className:"!my-0 !text-[16px] !leading-[20px] !text-[#121212]",children:e})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[r&&r,n&&w.jsx("div",{className:"!text-[12px] !leading-[16px] !text-[#64748B]",children:n})]})]}),w.jsx("div",{className:`flex-1 min-h-0 space-y-[24px] ${s}`,children:i}),o&&w.jsx("div",{className:"mt-3 pt-3 border-t border-gray-100 !text-[12px] text-[#64748B]",children:o})]})};function yi(e,t){sessionStorage.setItem(e,t),(e==="community_id"||e==="export")&&window.dispatchEvent(new StorageEvent("dashboard-update",{key:e}))}var Wf={},Uf={},l0;function cD(){return l0||(l0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(Uf)),Uf}var Hf={},c0;function f_(){return c0||(c0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(Hf)),Hf}var qf={},u0;function p_(){return u0||(u0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="string"||typeof n=="symbol"?n:Object.is(n?.valueOf?.(),-0)?"-0":String(n)}e.toKey=t})(qf)),qf}var Kf={},d0;function Pg(){return d0||(d0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){const r=[],i=n.length;if(i===0)return r;let o=0,a="",s="",l=!1;for(n.charCodeAt(0)===46&&(r.push(""),o++);o<i;){const c=n[o];s?c==="\\"&&o+1<i?(o++,a+=n[o]):c===s?s="":a+=c:l?c==='"'||c==="'"?s=c:c==="]"?(l=!1,r.push(a),a=""):a+=c:c==="["?(l=!0,a&&(r.push(a),a="")):c==="."?a&&(r.push(a),a=""):a+=c,o++}return a&&r.push(a),r}e.toPath=t})(Kf)),Kf}var f0;function Cg(){return f0||(f0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cD(),n=f_(),r=p_(),i=Pg();function o(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?n.isDeepKey(l)?o(s,i.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=r.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return a(s,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function a(s,l,c){if(l.length===0)return c;let u=s;for(let d=0;d<l.length;d++){if(u==null||t.isUnsafeProperty(l[d]))return c;u=u[l[d]]}return u===void 0?c:u}e.get=o})(Wf)),Wf}var Yf,p0;function uD(){return p0||(p0=1,Yf=Cg().get),Yf}var dD=uD();const Co=ui(dD);var Ut=e=>e===0?0:e>0?1:-1,Fn=e=>typeof e=="number"&&e!=+e,ho=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,ge=e=>(typeof e=="number"||e instanceof Number)&&!Fn(e),Rr=e=>ge(e)||typeof e=="string",fD=0,qs=e=>{var t=++fD;return"".concat(e||"").concat(t)},un=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ge(t)&&typeof t!="string")return r;var o;if(ho(t)){if(n==null)return r;var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Fn(o)&&(o=r),i&&n!=null&&o>n&&(o=n),o},h_=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1};function wt(e,t,n){return ge(e)&&ge(t)?e+n*(t-e):t}function m_(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):Co(r,t))===n)}var mt=e=>e===null||typeof e>"u",_l=e=>mt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),pD=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function Tg(e){if(typeof e!="string")return!1;var t=pD;return t.includes(e)}var hD=["viewBox","children"],h0=["points","pathLength"],Gf={svg:hD,polygon:h0,polyline:h0},Ag=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(I.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{Tg(i)&&(r[i]=(o=>n[i](n,o)))}),r},mD=(e,t,n)=>r=>(e(t,n,r),null),kd=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var o=e[i];Tg(i)&&typeof o=="function"&&(r||(r={}),r[i]=mD(o,t,n))}),r},gD=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function g_(e){if(typeof e!="string")return!1;var t=gD;return t.includes(e)}function Lr(e){var t=Object.entries(e).filter(n=>{var[r]=n;return g_(r)});return Object.fromEntries(t)}var m0=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",g0=null,Xf=null,v_=e=>{if(e===g0&&Array.isArray(Xf))return Xf;var t=[];return I.Children.forEach(e,n=>{mt(n)||(ki.isFragment(n)?t=t.concat(v_(n.props.children)):t.push(n))}),Xf=t,g0=e,t};function kg(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>m0(i)):r=[m0(t)],v_(e).forEach(i=>{var o=Co(i,"type.displayName")||Co(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}var y_=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,vD=(e,t,n,r)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var o=(i=r&&Gf?.[r])!==null&&i!==void 0?i:[],a=t.startsWith("data-"),s=typeof e!="function"&&(!!r&&o.includes(t)||g_(t)),l=!!n&&Tg(t);return a||s||l},vt=(e,t,n)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(I.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var i={};return Object.keys(r).forEach(o=>{var a;vD((a=r)===null||a===void 0?void 0:a[o],o,t,n)&&(i[o]=r[o])}),i},yD=["children","width","height","viewBox","className","style","title","desc"];function Yh(){return Yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yh.apply(null,arguments)}function bD(e,t){if(e==null)return{};var n,r,i=xD(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var b_=I.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:o,className:a,style:s,title:l,desc:c}=e,u=bD(e,yD),d=o||{width:r,height:i,x:0,y:0},p=oe("recharts-surface",a);return _.createElement("svg",Yh({},vt(u,!0,"svg"),{className:p,width:r,height:i,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),_.createElement("title",null,l),_.createElement("desc",null,c),n)}),wD=["children","className"];function Gh(){return Gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gh.apply(null,arguments)}function OD(e,t){if(e==null)return{};var n,r,i=SD(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function SD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Qt=_.forwardRef((e,t)=>{var{children:n,className:r}=e,i=OD(e,wD),o=oe("recharts-layer",r);return _.createElement("g",Gh({className:o},vt(i,!0),{ref:t}),n)}),ED=I.createContext(null);function it(e){return function(){return e}}const x_=Math.cos,fu=Math.sin,hr=Math.sqrt,pu=Math.PI,Md=2*pu,Xh=Math.PI,Zh=2*Xh,ro=1e-6,_D=Zh-ro;function w_(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function PD(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return w_;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class CD{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?w_:PD(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-t,d=s-n,p=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>ro)if(!(Math.abs(d*l-c*u)>ro)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,g=i-s,m=l*l+c*c,v=h*h+g*g,y=Math.sqrt(m),S=Math.sqrt(p),x=o*Math.tan((Xh-Math.acos((m+p-v)/(2*y*S)))/2),b=x/S,O=x/y;Math.abs(b-1)>ro&&this._append`L${t+b*u},${n+b*d}`,this._append`A${o},${o},0,0,${+(d*h>u*g)},${this._x1=t+O*l},${this._y1=n+O*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,p=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ro||Math.abs(this._y1-u)>ro)&&this._append`L${c},${u}`,r&&(p<0&&(p=p%Zh+Zh),p>_D?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:p>ro&&this._append`A${r},${r},0,${+(p>=Xh)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Mg(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new CD(t)}function jg(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function O_(e){this._context=e}O_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function jd(e){return new O_(e)}function S_(e){return e[0]}function E_(e){return e[1]}function __(e,t){var n=it(!0),r=null,i=jd,o=null,a=Mg(s);e=typeof e=="function"?e:e===void 0?S_:it(e),t=typeof t=="function"?t:t===void 0?E_:it(t);function s(l){var c,u=(l=jg(l)).length,d,p=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:it(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:it(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:it(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function oc(e,t,n){var r=null,i=it(!0),o=null,a=jd,s=null,l=Mg(c);e=typeof e=="function"?e:e===void 0?S_:it(+e),t=typeof t=="function"?t:it(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?E_:it(+n);function c(d){var p,h,g,m=(d=jg(d)).length,v,y=!1,S,x=new Array(m),b=new Array(m);for(o==null&&(s=a(S=l())),p=0;p<=m;++p){if(!(p<m&&i(v=d[p],p,d))===y)if(y=!y)h=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=p-1;g>=h;--g)s.point(x[g],b[g]);s.lineEnd(),s.areaEnd()}y&&(x[p]=+e(v,p,d),b[p]=+t(v,p,d),s.point(r?+r(v,p,d):x[p],n?+n(v,p,d):b[p]))}if(S)return s=null,S+""||null}function u(){return __().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:it(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:it(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:it(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:it(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:it(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:it(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:it(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}class P_{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function TD(e){return new P_(e,!0)}function AD(e){return new P_(e,!1)}const Ng={draw(e,t){const n=hr(t/pu);e.moveTo(n,0),e.arc(0,0,n,0,Md)}},kD={draw(e,t){const n=hr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},C_=hr(1/3),MD=C_*2,jD={draw(e,t){const n=hr(t/MD),r=n*C_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},ND={draw(e,t){const n=hr(t),r=-n/2;e.rect(r,r,n,n)}},RD=.8908130915292852,T_=fu(pu/10)/fu(7*pu/10),DD=fu(Md/10)*T_,ID=-x_(Md/10)*T_,$D={draw(e,t){const n=hr(t*RD),r=DD*n,i=ID*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Md*o/5,s=x_(a),l=fu(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Zf=hr(3),LD={draw(e,t){const n=-hr(t/(Zf*3));e.moveTo(0,n*2),e.lineTo(-Zf*n,-n),e.lineTo(Zf*n,-n),e.closePath()}},Yn=-.5,Gn=hr(3)/2,Jh=1/hr(12),FD=(Jh/2+1)*3,BD={draw(e,t){const n=hr(t/FD),r=n/2,i=n*Jh,o=r,a=n*Jh+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Yn*r-Gn*i,Gn*r+Yn*i),e.lineTo(Yn*o-Gn*a,Gn*o+Yn*a),e.lineTo(Yn*s-Gn*l,Gn*s+Yn*l),e.lineTo(Yn*r+Gn*i,Yn*i-Gn*r),e.lineTo(Yn*o+Gn*a,Yn*a-Gn*o),e.lineTo(Yn*s+Gn*l,Yn*l-Gn*s),e.closePath()}};function zD(e,t){let n=null,r=Mg(i);e=typeof e=="function"?e:it(e||Ng),t=typeof t=="function"?t:it(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:it(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:it(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function hu(){}function mu(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function A_(e){this._context=e}A_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:mu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:mu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function VD(e){return new A_(e)}function k_(e){this._context=e}k_.prototype={areaStart:hu,areaEnd:hu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:mu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function WD(e){return new k_(e)}function M_(e){this._context=e}M_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:mu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UD(e){return new M_(e)}function j_(e){this._context=e}j_.prototype={areaStart:hu,areaEnd:hu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function HD(e){return new j_(e)}function v0(e){return e<0?-1:1}function y0(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(v0(o)+v0(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function b0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Jf(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function gu(e){this._context=e}gu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Jf(this,this._t0,b0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Jf(this,b0(this,n=y0(this,e,t)),n);break;default:Jf(this,this._t0,n=y0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function N_(e){this._context=new R_(e)}(N_.prototype=Object.create(gu.prototype)).point=function(e,t){gu.prototype.point.call(this,t,e)};function R_(e){this._context=e}R_.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function qD(e){return new gu(e)}function KD(e){return new N_(e)}function D_(e){this._context=e}D_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=x0(e),i=x0(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function x0(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function YD(e){return new D_(e)}function Nd(e,t){this._context=e,this._t=t}Nd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function GD(e){return new Nd(e,.5)}function XD(e){return new Nd(e,0)}function ZD(e){return new Nd(e,1)}function ya(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Qh(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function JD(e,t){return e[t]}function QD(e){const t=[];return t.key=e,t}function eI(){var e=it([]),t=Qh,n=ya,r=JD;function i(o){var a=Array.from(e.apply(this,arguments),QD),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=jg(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:it(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:it(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?Qh:typeof o=="function"?o:it(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??ya,i):n},i}function tI(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}ya(e,t)}}function nI(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}ya(e,t)}}function rI(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,p=u[r-1][1]||0,h=(d-p)/2,g=0;g<s;++g){var m=e[t[g]],v=m[r][1]||0,y=m[r-1][1]||0;h+=v-y}l+=d,c+=h*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,ya(e,t)}}var iI=["type","size","sizeType"];function em(){return em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},em.apply(null,arguments)}function w0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function O0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w0(Object(n),!0).forEach(function(r){oI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oI(e,t,n){return(t=aI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aI(e){var t=sI(e,"string");return typeof t=="symbol"?t:t+""}function sI(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lI(e,t){if(e==null)return{};var n,r,i=cI(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var I_={symbolCircle:Ng,symbolCross:kD,symbolDiamond:jD,symbolSquare:ND,symbolStar:$D,symbolTriangle:LD,symbolWye:BD},uI=Math.PI/180,dI=e=>{var t="symbol".concat(_l(e));return I_[t]||Ng},fI=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*uI;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},pI=(e,t)=>{I_["symbol".concat(_l(e))]=t},$_=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=lI(e,iI),o=O0(O0({},i),{},{type:t,size:n,sizeType:r}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var p=dI(a),h=zD().type(p).size(fI(n,r,a));return h()},{className:l,cx:c,cy:u}=o,d=vt(o,!0);return c===+c&&u===+u&&n===+n?_.createElement("path",em({},d,{className:oe("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};$_.registerSymbol=pI;var Qf={},ep={},S0;function hI(){return S0||(S0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o<n.length;o++){const a=n[o],s=r(a);i.has(s)||i.set(s,a)}return Array.from(i.values())}e.uniqBy=t})(ep)),ep}var tp={},E0;function L_(){return E0||(E0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(tp)),tp}var np={},rp={},ip={},_0;function mI(){return _0||(_0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(ip)),ip}var P0;function Rg(){return P0||(P0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mI();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(rp)),rp}var op={},C0;function gI(){return C0||(C0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(op)),op}var T0;function vI(){return T0||(T0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Rg(),n=gI();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(np)),np}var ap={},sp={},A0;function yI(){return A0||(A0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Cg();function n(r){return function(i){return t.get(i,r)}}e.property=n})(sp)),sp}var lp={},cp={},up={},dp={},k0;function F_(){return k0||(k0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(dp)),dp}var fp={},M0;function B_(){return M0||(M0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(fp)),fp}var pp={},j0;function z_(){return j0||(j0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t})(pp)),pp}var N0;function bI(){return N0||(N0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Dg(),n=F_(),r=B_(),i=z_();function o(d,p,h){return typeof h!="function"?t.isMatch(d,p):a(d,p,function g(m,v,y,S,x,b){const O=h(m,v,y,S,x,b);return O!==void 0?!!O:a(m,v,g,b)},new Map)}function a(d,p,h,g){if(p===d)return!0;switch(typeof p){case"object":return s(d,p,h,g);case"function":return Object.keys(p).length>0?a(d,{...p},h,g):i.eq(d,p);default:return n.isObject(d)?typeof p=="string"?p==="":!0:i.eq(d,p)}}function s(d,p,h,g){if(p==null)return!0;if(Array.isArray(p))return c(d,p,h,g);if(p instanceof Map)return l(d,p,h,g);if(p instanceof Set)return u(d,p,h,g);const m=Object.keys(p);if(d==null)return m.length===0;if(m.length===0)return!0;if(g&&g.has(p))return g.get(p)===d;g&&g.set(p,d);try{for(let v=0;v<m.length;v++){const y=m[v];if(!r.isPrimitive(d)&&!(y in d)||p[y]===void 0&&d[y]!==void 0||p[y]===null&&d[y]!==null||!h(d[y],p[y],y,d,p,g))return!1}return!0}finally{g&&g.delete(p)}}function l(d,p,h,g){if(p.size===0)return!0;if(!(d instanceof Map))return!1;for(const[m,v]of p.entries()){const y=d.get(m);if(h(y,v,m,d,p,g)===!1)return!1}return!0}function c(d,p,h,g){if(p.length===0)return!0;if(!Array.isArray(d))return!1;const m=new Set;for(let v=0;v<p.length;v++){const y=p[v];let S=!1;for(let x=0;x<d.length;x++){if(m.has(x))continue;const b=d[x];let O=!1;if(h(b,y,v,d,p,g)&&(O=!0),O){m.add(x),S=!0;break}}if(!S)return!1}return!0}function u(d,p,h,g){return p.size===0?!0:d instanceof Set?c([...d],[...p],h,g):!1}e.isMatchWith=o,e.isSetMatch=u})(up)),up}var R0;function Dg(){return R0||(R0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bI();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(cp)),cp}var hp={},mp={},gp={},D0;function xI(){return D0||(D0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(gp)),gp}var vp={},I0;function V_(){return I0||(I0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(vp)),vp}var yp={},$0;function W_(){return $0||($0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",a="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",d="[object Function]",p="[object ArrayBuffer]",h="[object Object]",g="[object Error]",m="[object DataView]",v="[object Uint8Array]",y="[object Uint8ClampedArray]",S="[object Uint16Array]",x="[object Uint32Array]",b="[object BigUint64Array]",O="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",T="[object BigInt64Array]",k="[object Float32Array]",R="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=p,e.arrayTag=u,e.bigInt64ArrayTag=T,e.bigUint64ArrayTag=b,e.booleanTag=i,e.dataViewTag=m,e.dateTag=s,e.errorTag=g,e.float32ArrayTag=k,e.float64ArrayTag=R,e.functionTag=d,e.int16ArrayTag=E,e.int32ArrayTag=C,e.int8ArrayTag=O,e.mapTag=l,e.numberTag=r,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=n,e.symbolTag=a,e.uint16ArrayTag=S,e.uint32ArrayTag=x,e.uint8ArrayTag=v,e.uint8ClampedArrayTag=y})(yp)),yp}var bp={},L0;function wI(){return L0||(L0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(bp)),bp}var F0;function U_(){return F0||(F0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xI(),n=V_(),r=W_(),i=B_(),o=wI();function a(u,d){return s(u,void 0,u,new Map,d)}function s(u,d,p,h=new Map,g=void 0){const m=g?.(u,d,p,h);if(m!==void 0)return m;if(i.isPrimitive(u))return u;if(h.has(u))return h.get(u);if(Array.isArray(u)){const v=new Array(u.length);h.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,p,h,g);return Object.hasOwn(u,"index")&&(v.index=u.index),Object.hasOwn(u,"input")&&(v.input=u.input),v}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const v=new RegExp(u.source,u.flags);return v.lastIndex=u.lastIndex,v}if(u instanceof Map){const v=new Map;h.set(u,v);for(const[y,S]of u)v.set(y,s(S,y,p,h,g));return v}if(u instanceof Set){const v=new Set;h.set(u,v);for(const y of u)v.add(s(y,void 0,p,h,g));return v}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(o.isTypedArray(u)){const v=new(Object.getPrototypeOf(u)).constructor(u.length);h.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,p,h,g);return v}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const v=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return h.set(u,v),l(v,u,p,h,g),v}if(typeof File<"u"&&u instanceof File){const v=new File([u],u.name,{type:u.type});return h.set(u,v),l(v,u,p,h,g),v}if(u instanceof Blob){const v=new Blob([u],{type:u.type});return h.set(u,v),l(v,u,p,h,g),v}if(u instanceof Error){const v=new u.constructor;return h.set(u,v),v.message=u.message,v.name=u.name,v.stack=u.stack,v.cause=u.cause,l(v,u,p,h,g),v}if(typeof u=="object"&&c(u)){const v=Object.create(Object.getPrototypeOf(u));return h.set(u,v),l(v,u,p,h,g),v}return u}function l(u,d,p=u,h,g){const m=[...Object.keys(d),...t.getSymbols(d)];for(let v=0;v<m.length;v++){const y=m[v],S=Object.getOwnPropertyDescriptor(u,y);(S==null||S.writable)&&(u[y]=s(d[y],y,p,h,g))}}function c(u){switch(n.getTag(u)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=l})(mp)),mp}var B0;function OI(){return B0||(B0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=U_();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(hp)),hp}var z0;function SI(){return z0||(z0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Dg(),n=OI();function r(i){return i=n.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=r})(lp)),lp}var xp={},wp={},Op={},V0;function EI(){return V0||(V0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=U_(),n=W_();function r(i,o){return t.cloneDeepWith(i,(a,s,l,c)=>{const u=o?.(a,s,l,c);if(u!==void 0)return u;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new i.constructor(i?.valueOf());return t.copyProperties(d,i),d}case n.argumentsTag:{const d={};return t.copyProperties(d,i),d.length=i.length,d[Symbol.iterator]=i[Symbol.iterator],d}default:return}})}e.cloneDeepWith=r})(Op)),Op}var W0;function _I(){return W0||(W0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EI();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(wp)),wp}var Sp={},Ep={},U0;function H_(){return U0||(U0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(Ep)),Ep}var _p={},H0;function PI(){return H0||(H0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=V_();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(_p)),_p}var q0;function CI(){return q0||(q0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=f_(),n=H_(),r=PI(),i=Pg();function o(a,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&a?.[s]==null?l=i.toPath(s):l=[s],l.length===0)return!1;let c=a;for(let u=0;u<l.length;u++){const d=l[u];if((c==null||!Object.hasOwn(c,d))&&!((Array.isArray(c)||r.isArguments(c))&&n.isIndex(d)&&d<c.length))return!1;c=c[d]}return!0}e.has=o})(Sp)),Sp}var K0;function TI(){return K0||(K0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Dg(),n=p_(),r=_I(),i=Cg(),o=CI();function a(s,l){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=n.toKey(s);break}}return l=r.cloneDeep(l),function(c){const u=i.get(c,s);return u===void 0?o.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=a})(xp)),xp}var Y0;function AI(){return Y0||(Y0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=L_(),n=yI(),r=SI(),i=TI();function o(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?i.matchesProperty(a[0],a[1]):r.matches(a);case"string":case"symbol":case"number":return n.property(a)}}e.iteratee=o})(ap)),ap}var G0;function kI(){return G0||(G0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hI(),n=L_(),r=vI(),i=AI();function o(a,s=n.identity){return r.isArrayLikeObject(a)?t.uniqBy(Array.from(a),i.iteratee(s)):[]}e.uniqBy=o})(Qf)),Qf}var Pp,X0;function MI(){return X0||(X0=1,Pp=kI().uniqBy),Pp}var jI=MI();const Z0=ui(jI);function NI(e,t,n){return t===!0?Z0(e,n):typeof t=="function"?Z0(e,t):e}var ac={exports:{}},Cp={},sc={exports:{}},Tp={};/**
|
|
120
|
+
${i?"bg-[#FBF5FF] text-[#884EA7]":"bg-white text-[#64748B] hover:bg-gray-50"}`,children:[w.jsx(r,{className:"h-[15px] w-[15px] font-bold"}),n.name]},n.name)})})}const s0=({color:e})=>w.jsx("span",{style:{display:"inline-block",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e,marginRight:"6px"}}),El=({active:e,payload:t})=>!e||!t||!t.length?null:w.jsx("div",{className:"bg-[#121212] text-white !text-[12px] p-3 rounded-lg shadow-lg",children:t.map((n,r)=>w.jsxs("div",{className:"capitalize flex gap-[4px] items-center leading-relaxed",children:[n.color&&w.jsx(s0,{color:n.color}),n.payload.color&&w.jsx(s0,{color:n.payload.color}),w.jsx("div",{className:"min-w-[84px] text-[#D1D3D4]",children:n.name}),w.jsx("div",{className:"font-semibold",children:n.value})]},r))}),d_=({value:e})=>{const t=typeof e=="string"?parseFloat(e.replace("%","")):e??0,n=t>=0;return w.jsxs("div",{className:`w-fit p-1 rounded text-[10px] leading-[14px] font-medium flex items-center gap-1 ${n?"bg-[#F7FEFA] text-[#1FA05B]":"bg-[#FFF2F2] text-[#AB0000]"}`,children:[n?w.jsx(QR,{}):w.jsx(JR,{}),Math.abs(t).toFixed(1),"%"]})},$o=({title:e,icon:t,period:n,actionButtons:r,children:i,footer:o,className:a="",childrenClassName:s,titleWeight:l})=>{const c=l==="semi-bold"?600:500;return w.jsxs("div",{className:`relative bg-white !border-[0.5px] !border-[#EBEBEB] !rounded-[12px] !shadow-[0_0_12px_0_#EAF2FF] p-[16px] flex flex-col gap-[24px] ${a}`,children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-[12px]",children:[t,w.jsx("div",{style:{fontWeight:c,fontSize:"16px",lineHeight:"20px"},className:"!my-0 !text-[16px] !leading-[20px] !text-[#121212]",children:e})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[r&&r,n&&w.jsx("div",{className:"!text-[12px] !leading-[16px] !text-[#64748B]",children:n})]})]}),w.jsx("div",{className:`flex-1 min-h-0 space-y-[24px] ${s}`,children:i}),o&&w.jsx("div",{className:"mt-3 pt-3 border-t border-gray-100 !text-[12px] text-[#64748B]",children:o})]})};function yi(e,t){sessionStorage.setItem(e,t),(e==="community_id"||e==="export"||e==="widget_id")&&window.dispatchEvent(new StorageEvent("dashboard-update",{key:e}))}var Wf={},Uf={},l0;function cD(){return l0||(l0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(Uf)),Uf}var Hf={},c0;function f_(){return c0||(c0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(Hf)),Hf}var qf={},u0;function p_(){return u0||(u0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="string"||typeof n=="symbol"?n:Object.is(n?.valueOf?.(),-0)?"-0":String(n)}e.toKey=t})(qf)),qf}var Kf={},d0;function Pg(){return d0||(d0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){const r=[],i=n.length;if(i===0)return r;let o=0,a="",s="",l=!1;for(n.charCodeAt(0)===46&&(r.push(""),o++);o<i;){const c=n[o];s?c==="\\"&&o+1<i?(o++,a+=n[o]):c===s?s="":a+=c:l?c==='"'||c==="'"?s=c:c==="]"?(l=!1,r.push(a),a=""):a+=c:c==="["?(l=!0,a&&(r.push(a),a="")):c==="."?a&&(r.push(a),a=""):a+=c,o++}return a&&r.push(a),r}e.toPath=t})(Kf)),Kf}var f0;function Cg(){return f0||(f0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cD(),n=f_(),r=p_(),i=Pg();function o(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?n.isDeepKey(l)?o(s,i.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=r.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return a(s,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function a(s,l,c){if(l.length===0)return c;let u=s;for(let d=0;d<l.length;d++){if(u==null||t.isUnsafeProperty(l[d]))return c;u=u[l[d]]}return u===void 0?c:u}e.get=o})(Wf)),Wf}var Yf,p0;function uD(){return p0||(p0=1,Yf=Cg().get),Yf}var dD=uD();const Co=ui(dD);var Ut=e=>e===0?0:e>0?1:-1,Fn=e=>typeof e=="number"&&e!=+e,ho=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,ge=e=>(typeof e=="number"||e instanceof Number)&&!Fn(e),Rr=e=>ge(e)||typeof e=="string",fD=0,qs=e=>{var t=++fD;return"".concat(e||"").concat(t)},un=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ge(t)&&typeof t!="string")return r;var o;if(ho(t)){if(n==null)return r;var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Fn(o)&&(o=r),i&&n!=null&&o>n&&(o=n),o},h_=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1};function wt(e,t,n){return ge(e)&&ge(t)?e+n*(t-e):t}function m_(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):Co(r,t))===n)}var mt=e=>e===null||typeof e>"u",_l=e=>mt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),pD=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function Tg(e){if(typeof e!="string")return!1;var t=pD;return t.includes(e)}var hD=["viewBox","children"],h0=["points","pathLength"],Gf={svg:hD,polygon:h0,polyline:h0},Ag=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(I.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{Tg(i)&&(r[i]=(o=>n[i](n,o)))}),r},mD=(e,t,n)=>r=>(e(t,n,r),null),kd=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var o=e[i];Tg(i)&&typeof o=="function"&&(r||(r={}),r[i]=mD(o,t,n))}),r},gD=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function g_(e){if(typeof e!="string")return!1;var t=gD;return t.includes(e)}function Lr(e){var t=Object.entries(e).filter(n=>{var[r]=n;return g_(r)});return Object.fromEntries(t)}var m0=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",g0=null,Xf=null,v_=e=>{if(e===g0&&Array.isArray(Xf))return Xf;var t=[];return I.Children.forEach(e,n=>{mt(n)||(ki.isFragment(n)?t=t.concat(v_(n.props.children)):t.push(n))}),Xf=t,g0=e,t};function kg(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>m0(i)):r=[m0(t)],v_(e).forEach(i=>{var o=Co(i,"type.displayName")||Co(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}var y_=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,vD=(e,t,n,r)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var o=(i=r&&Gf?.[r])!==null&&i!==void 0?i:[],a=t.startsWith("data-"),s=typeof e!="function"&&(!!r&&o.includes(t)||g_(t)),l=!!n&&Tg(t);return a||s||l},vt=(e,t,n)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(I.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var i={};return Object.keys(r).forEach(o=>{var a;vD((a=r)===null||a===void 0?void 0:a[o],o,t,n)&&(i[o]=r[o])}),i},yD=["children","width","height","viewBox","className","style","title","desc"];function Yh(){return Yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yh.apply(null,arguments)}function bD(e,t){if(e==null)return{};var n,r,i=xD(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var b_=I.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:o,className:a,style:s,title:l,desc:c}=e,u=bD(e,yD),d=o||{width:r,height:i,x:0,y:0},p=oe("recharts-surface",a);return _.createElement("svg",Yh({},vt(u,!0,"svg"),{className:p,width:r,height:i,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),_.createElement("title",null,l),_.createElement("desc",null,c),n)}),wD=["children","className"];function Gh(){return Gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gh.apply(null,arguments)}function OD(e,t){if(e==null)return{};var n,r,i=SD(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function SD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Qt=_.forwardRef((e,t)=>{var{children:n,className:r}=e,i=OD(e,wD),o=oe("recharts-layer",r);return _.createElement("g",Gh({className:o},vt(i,!0),{ref:t}),n)}),ED=I.createContext(null);function it(e){return function(){return e}}const x_=Math.cos,fu=Math.sin,hr=Math.sqrt,pu=Math.PI,Md=2*pu,Xh=Math.PI,Zh=2*Xh,ro=1e-6,_D=Zh-ro;function w_(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function PD(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return w_;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class CD{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?w_:PD(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-t,d=s-n,p=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>ro)if(!(Math.abs(d*l-c*u)>ro)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,g=i-s,m=l*l+c*c,v=h*h+g*g,y=Math.sqrt(m),S=Math.sqrt(p),x=o*Math.tan((Xh-Math.acos((m+p-v)/(2*y*S)))/2),b=x/S,O=x/y;Math.abs(b-1)>ro&&this._append`L${t+b*u},${n+b*d}`,this._append`A${o},${o},0,0,${+(d*h>u*g)},${this._x1=t+O*l},${this._y1=n+O*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,p=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ro||Math.abs(this._y1-u)>ro)&&this._append`L${c},${u}`,r&&(p<0&&(p=p%Zh+Zh),p>_D?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:p>ro&&this._append`A${r},${r},0,${+(p>=Xh)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Mg(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new CD(t)}function jg(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function O_(e){this._context=e}O_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function jd(e){return new O_(e)}function S_(e){return e[0]}function E_(e){return e[1]}function __(e,t){var n=it(!0),r=null,i=jd,o=null,a=Mg(s);e=typeof e=="function"?e:e===void 0?S_:it(e),t=typeof t=="function"?t:t===void 0?E_:it(t);function s(l){var c,u=(l=jg(l)).length,d,p=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:it(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:it(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:it(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function oc(e,t,n){var r=null,i=it(!0),o=null,a=jd,s=null,l=Mg(c);e=typeof e=="function"?e:e===void 0?S_:it(+e),t=typeof t=="function"?t:it(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?E_:it(+n);function c(d){var p,h,g,m=(d=jg(d)).length,v,y=!1,S,x=new Array(m),b=new Array(m);for(o==null&&(s=a(S=l())),p=0;p<=m;++p){if(!(p<m&&i(v=d[p],p,d))===y)if(y=!y)h=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=p-1;g>=h;--g)s.point(x[g],b[g]);s.lineEnd(),s.areaEnd()}y&&(x[p]=+e(v,p,d),b[p]=+t(v,p,d),s.point(r?+r(v,p,d):x[p],n?+n(v,p,d):b[p]))}if(S)return s=null,S+""||null}function u(){return __().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:it(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:it(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:it(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:it(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:it(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:it(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:it(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}class P_{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function TD(e){return new P_(e,!0)}function AD(e){return new P_(e,!1)}const Ng={draw(e,t){const n=hr(t/pu);e.moveTo(n,0),e.arc(0,0,n,0,Md)}},kD={draw(e,t){const n=hr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},C_=hr(1/3),MD=C_*2,jD={draw(e,t){const n=hr(t/MD),r=n*C_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},ND={draw(e,t){const n=hr(t),r=-n/2;e.rect(r,r,n,n)}},RD=.8908130915292852,T_=fu(pu/10)/fu(7*pu/10),DD=fu(Md/10)*T_,ID=-x_(Md/10)*T_,$D={draw(e,t){const n=hr(t*RD),r=DD*n,i=ID*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Md*o/5,s=x_(a),l=fu(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Zf=hr(3),LD={draw(e,t){const n=-hr(t/(Zf*3));e.moveTo(0,n*2),e.lineTo(-Zf*n,-n),e.lineTo(Zf*n,-n),e.closePath()}},Yn=-.5,Gn=hr(3)/2,Jh=1/hr(12),FD=(Jh/2+1)*3,BD={draw(e,t){const n=hr(t/FD),r=n/2,i=n*Jh,o=r,a=n*Jh+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Yn*r-Gn*i,Gn*r+Yn*i),e.lineTo(Yn*o-Gn*a,Gn*o+Yn*a),e.lineTo(Yn*s-Gn*l,Gn*s+Yn*l),e.lineTo(Yn*r+Gn*i,Yn*i-Gn*r),e.lineTo(Yn*o+Gn*a,Yn*a-Gn*o),e.lineTo(Yn*s+Gn*l,Yn*l-Gn*s),e.closePath()}};function zD(e,t){let n=null,r=Mg(i);e=typeof e=="function"?e:it(e||Ng),t=typeof t=="function"?t:it(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:it(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:it(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function hu(){}function mu(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function A_(e){this._context=e}A_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:mu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:mu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function VD(e){return new A_(e)}function k_(e){this._context=e}k_.prototype={areaStart:hu,areaEnd:hu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:mu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function WD(e){return new k_(e)}function M_(e){this._context=e}M_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:mu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UD(e){return new M_(e)}function j_(e){this._context=e}j_.prototype={areaStart:hu,areaEnd:hu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function HD(e){return new j_(e)}function v0(e){return e<0?-1:1}function y0(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(v0(o)+v0(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function b0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Jf(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function gu(e){this._context=e}gu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Jf(this,this._t0,b0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Jf(this,b0(this,n=y0(this,e,t)),n);break;default:Jf(this,this._t0,n=y0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function N_(e){this._context=new R_(e)}(N_.prototype=Object.create(gu.prototype)).point=function(e,t){gu.prototype.point.call(this,t,e)};function R_(e){this._context=e}R_.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function qD(e){return new gu(e)}function KD(e){return new N_(e)}function D_(e){this._context=e}D_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=x0(e),i=x0(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function x0(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function YD(e){return new D_(e)}function Nd(e,t){this._context=e,this._t=t}Nd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function GD(e){return new Nd(e,.5)}function XD(e){return new Nd(e,0)}function ZD(e){return new Nd(e,1)}function ya(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Qh(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function JD(e,t){return e[t]}function QD(e){const t=[];return t.key=e,t}function eI(){var e=it([]),t=Qh,n=ya,r=JD;function i(o){var a=Array.from(e.apply(this,arguments),QD),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=jg(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:it(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:it(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?Qh:typeof o=="function"?o:it(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??ya,i):n},i}function tI(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}ya(e,t)}}function nI(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}ya(e,t)}}function rI(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,p=u[r-1][1]||0,h=(d-p)/2,g=0;g<s;++g){var m=e[t[g]],v=m[r][1]||0,y=m[r-1][1]||0;h+=v-y}l+=d,c+=h*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,ya(e,t)}}var iI=["type","size","sizeType"];function em(){return em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},em.apply(null,arguments)}function w0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function O0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w0(Object(n),!0).forEach(function(r){oI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oI(e,t,n){return(t=aI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aI(e){var t=sI(e,"string");return typeof t=="symbol"?t:t+""}function sI(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lI(e,t){if(e==null)return{};var n,r,i=cI(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var I_={symbolCircle:Ng,symbolCross:kD,symbolDiamond:jD,symbolSquare:ND,symbolStar:$D,symbolTriangle:LD,symbolWye:BD},uI=Math.PI/180,dI=e=>{var t="symbol".concat(_l(e));return I_[t]||Ng},fI=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*uI;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},pI=(e,t)=>{I_["symbol".concat(_l(e))]=t},$_=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=lI(e,iI),o=O0(O0({},i),{},{type:t,size:n,sizeType:r}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var p=dI(a),h=zD().type(p).size(fI(n,r,a));return h()},{className:l,cx:c,cy:u}=o,d=vt(o,!0);return c===+c&&u===+u&&n===+n?_.createElement("path",em({},d,{className:oe("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};$_.registerSymbol=pI;var Qf={},ep={},S0;function hI(){return S0||(S0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o<n.length;o++){const a=n[o],s=r(a);i.has(s)||i.set(s,a)}return Array.from(i.values())}e.uniqBy=t})(ep)),ep}var tp={},E0;function L_(){return E0||(E0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(tp)),tp}var np={},rp={},ip={},_0;function mI(){return _0||(_0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(ip)),ip}var P0;function Rg(){return P0||(P0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mI();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(rp)),rp}var op={},C0;function gI(){return C0||(C0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(op)),op}var T0;function vI(){return T0||(T0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Rg(),n=gI();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(np)),np}var ap={},sp={},A0;function yI(){return A0||(A0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Cg();function n(r){return function(i){return t.get(i,r)}}e.property=n})(sp)),sp}var lp={},cp={},up={},dp={},k0;function F_(){return k0||(k0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(dp)),dp}var fp={},M0;function B_(){return M0||(M0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(fp)),fp}var pp={},j0;function z_(){return j0||(j0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t})(pp)),pp}var N0;function bI(){return N0||(N0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Dg(),n=F_(),r=B_(),i=z_();function o(d,p,h){return typeof h!="function"?t.isMatch(d,p):a(d,p,function g(m,v,y,S,x,b){const O=h(m,v,y,S,x,b);return O!==void 0?!!O:a(m,v,g,b)},new Map)}function a(d,p,h,g){if(p===d)return!0;switch(typeof p){case"object":return s(d,p,h,g);case"function":return Object.keys(p).length>0?a(d,{...p},h,g):i.eq(d,p);default:return n.isObject(d)?typeof p=="string"?p==="":!0:i.eq(d,p)}}function s(d,p,h,g){if(p==null)return!0;if(Array.isArray(p))return c(d,p,h,g);if(p instanceof Map)return l(d,p,h,g);if(p instanceof Set)return u(d,p,h,g);const m=Object.keys(p);if(d==null)return m.length===0;if(m.length===0)return!0;if(g&&g.has(p))return g.get(p)===d;g&&g.set(p,d);try{for(let v=0;v<m.length;v++){const y=m[v];if(!r.isPrimitive(d)&&!(y in d)||p[y]===void 0&&d[y]!==void 0||p[y]===null&&d[y]!==null||!h(d[y],p[y],y,d,p,g))return!1}return!0}finally{g&&g.delete(p)}}function l(d,p,h,g){if(p.size===0)return!0;if(!(d instanceof Map))return!1;for(const[m,v]of p.entries()){const y=d.get(m);if(h(y,v,m,d,p,g)===!1)return!1}return!0}function c(d,p,h,g){if(p.length===0)return!0;if(!Array.isArray(d))return!1;const m=new Set;for(let v=0;v<p.length;v++){const y=p[v];let S=!1;for(let x=0;x<d.length;x++){if(m.has(x))continue;const b=d[x];let O=!1;if(h(b,y,v,d,p,g)&&(O=!0),O){m.add(x),S=!0;break}}if(!S)return!1}return!0}function u(d,p,h,g){return p.size===0?!0:d instanceof Set?c([...d],[...p],h,g):!1}e.isMatchWith=o,e.isSetMatch=u})(up)),up}var R0;function Dg(){return R0||(R0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bI();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(cp)),cp}var hp={},mp={},gp={},D0;function xI(){return D0||(D0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(gp)),gp}var vp={},I0;function V_(){return I0||(I0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(vp)),vp}var yp={},$0;function W_(){return $0||($0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",a="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",d="[object Function]",p="[object ArrayBuffer]",h="[object Object]",g="[object Error]",m="[object DataView]",v="[object Uint8Array]",y="[object Uint8ClampedArray]",S="[object Uint16Array]",x="[object Uint32Array]",b="[object BigUint64Array]",O="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",T="[object BigInt64Array]",k="[object Float32Array]",R="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=p,e.arrayTag=u,e.bigInt64ArrayTag=T,e.bigUint64ArrayTag=b,e.booleanTag=i,e.dataViewTag=m,e.dateTag=s,e.errorTag=g,e.float32ArrayTag=k,e.float64ArrayTag=R,e.functionTag=d,e.int16ArrayTag=E,e.int32ArrayTag=C,e.int8ArrayTag=O,e.mapTag=l,e.numberTag=r,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=n,e.symbolTag=a,e.uint16ArrayTag=S,e.uint32ArrayTag=x,e.uint8ArrayTag=v,e.uint8ClampedArrayTag=y})(yp)),yp}var bp={},L0;function wI(){return L0||(L0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(bp)),bp}var F0;function U_(){return F0||(F0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xI(),n=V_(),r=W_(),i=B_(),o=wI();function a(u,d){return s(u,void 0,u,new Map,d)}function s(u,d,p,h=new Map,g=void 0){const m=g?.(u,d,p,h);if(m!==void 0)return m;if(i.isPrimitive(u))return u;if(h.has(u))return h.get(u);if(Array.isArray(u)){const v=new Array(u.length);h.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,p,h,g);return Object.hasOwn(u,"index")&&(v.index=u.index),Object.hasOwn(u,"input")&&(v.input=u.input),v}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const v=new RegExp(u.source,u.flags);return v.lastIndex=u.lastIndex,v}if(u instanceof Map){const v=new Map;h.set(u,v);for(const[y,S]of u)v.set(y,s(S,y,p,h,g));return v}if(u instanceof Set){const v=new Set;h.set(u,v);for(const y of u)v.add(s(y,void 0,p,h,g));return v}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(o.isTypedArray(u)){const v=new(Object.getPrototypeOf(u)).constructor(u.length);h.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,p,h,g);return v}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const v=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return h.set(u,v),l(v,u,p,h,g),v}if(typeof File<"u"&&u instanceof File){const v=new File([u],u.name,{type:u.type});return h.set(u,v),l(v,u,p,h,g),v}if(u instanceof Blob){const v=new Blob([u],{type:u.type});return h.set(u,v),l(v,u,p,h,g),v}if(u instanceof Error){const v=new u.constructor;return h.set(u,v),v.message=u.message,v.name=u.name,v.stack=u.stack,v.cause=u.cause,l(v,u,p,h,g),v}if(typeof u=="object"&&c(u)){const v=Object.create(Object.getPrototypeOf(u));return h.set(u,v),l(v,u,p,h,g),v}return u}function l(u,d,p=u,h,g){const m=[...Object.keys(d),...t.getSymbols(d)];for(let v=0;v<m.length;v++){const y=m[v],S=Object.getOwnPropertyDescriptor(u,y);(S==null||S.writable)&&(u[y]=s(d[y],y,p,h,g))}}function c(u){switch(n.getTag(u)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=l})(mp)),mp}var B0;function OI(){return B0||(B0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=U_();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(hp)),hp}var z0;function SI(){return z0||(z0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Dg(),n=OI();function r(i){return i=n.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=r})(lp)),lp}var xp={},wp={},Op={},V0;function EI(){return V0||(V0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=U_(),n=W_();function r(i,o){return t.cloneDeepWith(i,(a,s,l,c)=>{const u=o?.(a,s,l,c);if(u!==void 0)return u;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new i.constructor(i?.valueOf());return t.copyProperties(d,i),d}case n.argumentsTag:{const d={};return t.copyProperties(d,i),d.length=i.length,d[Symbol.iterator]=i[Symbol.iterator],d}default:return}})}e.cloneDeepWith=r})(Op)),Op}var W0;function _I(){return W0||(W0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EI();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(wp)),wp}var Sp={},Ep={},U0;function H_(){return U0||(U0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(Ep)),Ep}var _p={},H0;function PI(){return H0||(H0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=V_();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(_p)),_p}var q0;function CI(){return q0||(q0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=f_(),n=H_(),r=PI(),i=Pg();function o(a,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&a?.[s]==null?l=i.toPath(s):l=[s],l.length===0)return!1;let c=a;for(let u=0;u<l.length;u++){const d=l[u];if((c==null||!Object.hasOwn(c,d))&&!((Array.isArray(c)||r.isArguments(c))&&n.isIndex(d)&&d<c.length))return!1;c=c[d]}return!0}e.has=o})(Sp)),Sp}var K0;function TI(){return K0||(K0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Dg(),n=p_(),r=_I(),i=Cg(),o=CI();function a(s,l){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=n.toKey(s);break}}return l=r.cloneDeep(l),function(c){const u=i.get(c,s);return u===void 0?o.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=a})(xp)),xp}var Y0;function AI(){return Y0||(Y0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=L_(),n=yI(),r=SI(),i=TI();function o(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?i.matchesProperty(a[0],a[1]):r.matches(a);case"string":case"symbol":case"number":return n.property(a)}}e.iteratee=o})(ap)),ap}var G0;function kI(){return G0||(G0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hI(),n=L_(),r=vI(),i=AI();function o(a,s=n.identity){return r.isArrayLikeObject(a)?t.uniqBy(Array.from(a),i.iteratee(s)):[]}e.uniqBy=o})(Qf)),Qf}var Pp,X0;function MI(){return X0||(X0=1,Pp=kI().uniqBy),Pp}var jI=MI();const Z0=ui(jI);function NI(e,t,n){return t===!0?Z0(e,n):typeof t=="function"?Z0(e,t):e}var ac={exports:{}},Cp={},sc={exports:{}},Tp={};/**
|
|
121
121
|
* @license React
|
|
122
122
|
* use-sync-external-store-shim.production.js
|
|
123
123
|
*
|
|
@@ -306,7 +306,7 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
|
|
|
306
306
|
`))}},[Gt,we,S,x,z]),tn&&(S?Je.length===0?de=null:de=Je.reduce((Z,ce,pe)=>(Z.push(ce),pe<Je.length-1&&Z.push(", "),Z),[]):de=Et);let mn=ae;!a&&ie&&X&&(mn=A.clientWidth);let Bt;typeof j<"u"?Bt=j:Bt=d?null:0;const gn=D.id||(x?`mui-component-select-${x}`:void 0),ye={...t,variant:B,value:z,open:De,error:h},rn=CG(ye),zt={...y.PaperProps,...typeof y.slotProps?.paper=="function"?y.slotProps.paper(ye):y.slotProps?.paper},U={...y.MenuListProps,...typeof y.slotProps?.list=="function"?y.slotProps.list(ye):y.slotProps?.list},le=xg();return w.jsxs(_.Fragment,{children:[w.jsx(SG,{as:"div",ref:J,tabIndex:Bt,role:"combobox","aria-controls":De?le:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":De?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,gn].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:Ze,onMouseDown:d||R?null:re,onBlur:Te,onFocus:C,...D,ownerState:ye,className:oe(D.className,rn.select,l),id:gn,children:PG(de)?LO||(LO=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):de}),w.jsx(_G,{"aria-invalid":h,value:Array.isArray(z)?z.join(","):z,name:x,ref:ne,"aria-hidden":!0,onChange:Se,tabIndex:-1,disabled:d,className:rn.nativeInput,autoFocus:o,required:P,...K,ownerState:ye}),w.jsx(EG,{as:g,className:rn.icon,ownerState:ye}),w.jsx(WA,{id:`menu-${x||""}`,anchorEl:A,open:De,onClose:me,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...y,slotProps:{...y.slotProps,list:{"aria-labelledby":v,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:le,...U},paper:{...zt,style:{minWidth:mn,...zt!=null?zt.style:null}}},children:nn})]})});process.env.NODE_ENV!=="production"&&(GA.propTypes={"aria-describedby":f.string,"aria-label":f.string,autoFocus:f.bool,autoWidth:f.bool,children:f.node,classes:f.object,className:f.string,defaultOpen:f.bool,defaultValue:f.any,disabled:f.bool,displayEmpty:f.bool,error:f.bool,IconComponent:f.elementType.isRequired,inputRef:ur,labelId:f.string,MenuProps:f.object,multiple:f.bool,name:f.string,onBlur:f.func,onChange:f.func,onClose:f.func,onFocus:f.func,onOpen:f.func,open:f.bool,readOnly:f.bool,renderValue:f.func,required:f.bool,SelectDisplayProps:f.object,tabIndex:f.oneOfType([f.number,f.string]),type:f.any,value:f.any,variant:f.oneOf(["standard","outlined","filled"])});const TG=e=>{const{classes:t}=e,r=rt({root:["root"]},YA,t);return{...t,...r}},Ry={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Wn(e)&&e!=="variant"},AG=ve(Of,Ry)(""),kG=ve(Sf,Ry)(""),MG=ve(wf,Ry)(""),Ef=_.forwardRef(function(t,n){const r=ut({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=UK,id:d,input:p,inputProps:h,label:g,labelId:m,MenuProps:v,multiple:y=!1,native:S=!1,onClose:x,onOpen:b,open:O,renderValue:E,SelectDisplayProps:C,variant:T="outlined",...k}=r,R=S?qA:GA,M=Wo(),P=qa({props:r,muiFormControl:M,states:["variant","error"]}),D=P.variant||T,j={...r,variant:D,classes:a},N=TG(j),{root:L,...B}=N,K=p||{standard:w.jsx(AG,{ownerState:j}),outlined:w.jsx(kG,{label:g,ownerState:j}),filled:w.jsx(MG,{ownerState:j})}[D],z=Ht(n,Ha(K));return w.jsx(_.Fragment,{children:_.cloneElement(K,{inputComponent:R,inputProps:{children:o,error:P.error,IconComponent:u,variant:D,type:void 0,multiple:y,...S?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:v,onClose:x,onOpen:b,open:O,renderValue:E,SelectDisplayProps:{id:d,...C}},...h,classes:h?cn(B,h.classes):B,...p?p.props.inputProps:{}},...(y&&S||c)&&D==="outlined"?{notched:!0}:{},ref:z,className:oe(K.props.className,s,N.root),...!p&&{variant:D},...k})})});process.env.NODE_ENV!=="production"&&(Ef.propTypes={autoWidth:f.bool,children:f.node,classes:f.object,className:f.string,defaultOpen:f.bool,defaultValue:f.any,displayEmpty:f.bool,IconComponent:f.elementType,id:f.string,input:f.element,inputProps:f.object,label:f.node,labelId:f.string,MenuProps:f.object,multiple:f.bool,native:f.bool,onChange:f.func,onClose:f.func,onOpen:f.func,open:f.bool,renderValue:f.func,SelectDisplayProps:f.object,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),value:f.oneOfType([f.oneOf([""]),f.any]),variant:f.oneOf(["filled","outlined","standard"])});Ef.muiName="Select";function jG(e){return Ge("MuiTooltip",e)}const xt=qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function NG(e){return Math.round(e*1e5)/1e5}const RG=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Re(o.split("-")[0])}`],arrow:["arrow"]};return rt(a,jG,t)},DG=ve(My,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(St(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${xt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${xt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${xt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${xt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${xt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${xt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${xt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${xt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),IG=ve("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Re(n.placement.split("-")[0])}`]]}})(St(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${xt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${xt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${xt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${NG(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${xt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${xt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${xt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${xt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${xt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${xt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${xt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),$G=ve("span",{name:"MuiTooltip",slot:"Arrow"})(St(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Tc=!1;const BO=new ff;let fs={x:0,y:0};function Ac(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Ym=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:h=!1,enterDelay:g=100,enterNextDelay:m=0,enterTouchDelay:v=700,followCursor:y=!1,id:S,leaveDelay:x=0,leaveTouchDelay:b=1500,onClose:O,onOpen:E,open:C,placement:T="bottom",PopperComponent:k,PopperProps:R={},slotProps:M={},slots:P={},title:D,TransitionComponent:j,TransitionProps:N,...L}=r,B=_.isValidElement(o)?o:w.jsx("span",{children:o}),K=Ad(),z=bg(),[F,G]=_.useState(),[Y,ne]=_.useState(null),Q=_.useRef(!1),X=p||y,te=sa(),ie=sa(),ae=sa(),W=sa(),[H,J]=cu({controlled:C,default:!1,name:"Tooltip",state:"open"});let A=H;if(process.env.NODE_ENV!=="production"){const{current:be}=_.useRef(C!==void 0);_.useEffect(()=>{F&&F.disabled&&!be&&D!==""&&F.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
307
307
|
`))},[D,F,be])}const fe=xg(S),re=_.useRef(),me=Qr(()=>{re.current!==void 0&&(document.body.style.WebkitUserSelect=re.current,re.current=void 0),W.clear()});_.useEffect(()=>me,[me]);const we=be=>{BO.clear(),Tc=!0,J(!0),E&&!A&&E(be)},Se=Qr(be=>{BO.start(800+x,()=>{Tc=!1}),J(!1),O&&A&&O(be),te.start(K.transitions.duration.shortest,()=>{Q.current=!1})}),_e=be=>{Q.current&&be.type!=="touchstart"||(F&&F.removeAttribute("title"),ie.clear(),ae.clear(),g||Tc&&m?ie.start(Tc?m:g,()=>{we(be)}):we(be))},Ze=be=>{ie.clear(),ae.start(x,()=>{Se(be)})},[,De]=_.useState(!1),Te=be=>{Ju(be.target)||(De(!1),Ze(be))},de=be=>{F||G(be.currentTarget),Ju(be.target)&&(De(!0),_e(be))},Et=be=>{Q.current=!0;const dn=B.props;dn.onTouchStart&&dn.onTouchStart(be)},Je=be=>{Et(be),ae.clear(),te.clear(),me(),re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",W.start(v,()=>{document.body.style.WebkitUserSelect=re.current,_e(be)})},tn=be=>{B.props.onTouchEnd&&B.props.onTouchEnd(be),me(),ae.start(b,()=>{Se(be)})};_.useEffect(()=>{if(!A)return;function be(dn){dn.key==="Escape"&&Se(dn)}return document.addEventListener("keydown",be),()=>{document.removeEventListener("keydown",be)}},[Se,A]);const Gt=Ht(Ha(B),G,n);!D&&D!==0&&(A=!1);const nn=_.useRef(),mn=be=>{const dn=B.props;dn.onMouseMove&&dn.onMouseMove(be),fs={x:be.clientX,y:be.clientY},nn.current&&nn.current.update()},Bt={},gn=typeof D=="string";c?(Bt.title=!A&&gn&&!d?D:null,Bt["aria-describedby"]=A?fe:null):(Bt["aria-label"]=gn?D:null,Bt["aria-labelledby"]=A&&!gn?fe:null);const ye={...Bt,...L,...B.props,className:oe(L.className,B.props.className),onTouchStart:Et,ref:Gt,...y?{onMouseMove:mn}:{}};process.env.NODE_ENV!=="production"&&(ye["data-mui-internal-clone-element"]=!0,_.useEffect(()=>{F&&!F.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
308
308
|
`))},[F]));const rn={};h||(ye.onTouchStart=Je,ye.onTouchEnd=tn),d||(ye.onMouseOver=Ac(_e,ye.onMouseOver),ye.onMouseLeave=Ac(Ze,ye.onMouseLeave),X||(rn.onMouseOver=_e,rn.onMouseLeave=Ze)),u||(ye.onFocus=Ac(de,ye.onFocus),ye.onBlur=Ac(Te,ye.onBlur),X||(rn.onFocus=de,rn.onBlur=Te)),process.env.NODE_ENV!=="production"&&B.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${B.props.title}\` or the Tooltip component.`].join(`
|
|
309
|
-
`));const zt={...r,isRtl:z,arrow:i,disableInteractive:X,placement:T,PopperComponentProp:k,touch:Q.current},U=typeof M.popper=="function"?M.popper(zt):M.popper,le=_.useMemo(()=>{let be=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return R.popperOptions?.modifiers&&(be=be.concat(R.popperOptions.modifiers)),U?.popperOptions?.modifiers&&(be=be.concat(U.popperOptions.modifiers)),{...R.popperOptions,...U?.popperOptions,modifiers:be}},[Y,R.popperOptions,U?.popperOptions]),Z=RG(zt),ce=typeof M.transition=="function"?M.transition(zt):M.transition,pe={slots:{popper:s.Popper,transition:s.Transition??j,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:M.arrow??l.arrow,popper:{...R,...U??l.popper},tooltip:M.tooltip??l.tooltip,transition:{...N,...ce??l.transition}}},[Qe,dt]=ot("popper",{elementType:DG,externalForwardedProps:pe,ownerState:zt,className:oe(Z.popper,R?.className)}),[Hn,vi]=ot("transition",{elementType:sl,externalForwardedProps:pe,ownerState:zt}),[qn,Gi]=ot("tooltip",{elementType:IG,className:Z.tooltip,externalForwardedProps:pe,ownerState:zt}),[Br,vr]=ot("arrow",{elementType:$G,className:Z.arrow,externalForwardedProps:pe,ownerState:zt,ref:ne});return w.jsxs(_.Fragment,{children:[_.cloneElement(B,ye),w.jsx(Qe,{as:k??My,placement:T,anchorEl:y?{getBoundingClientRect:()=>({top:fs.y,left:fs.x,right:fs.x,bottom:fs.y,width:0,height:0})}:F,popperRef:nn,open:F?A:!1,id:fe,transition:!0,...rn,...dt,popperOptions:le,children:({TransitionProps:be})=>w.jsx(Hn,{timeout:K.transitions.duration.shorter,...be,...vi,children:w.jsxs(qn,{...Gi,children:[D,i?w.jsx(Br,{...vr}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Ym.propTypes={arrow:f.bool,children:Ka.isRequired,classes:f.object,className:f.string,components:f.shape({Arrow:f.elementType,Popper:f.elementType,Tooltip:f.elementType,Transition:f.elementType}),componentsProps:f.shape({arrow:f.object,popper:f.object,tooltip:f.object,transition:f.object}),describeChild:f.bool,disableFocusListener:f.bool,disableHoverListener:f.bool,disableInteractive:f.bool,disableTouchListener:f.bool,enterDelay:f.number,enterNextDelay:f.number,enterTouchDelay:f.number,followCursor:f.bool,id:f.string,leaveDelay:f.number,leaveTouchDelay:f.number,onClose:f.func,onOpen:f.func,open:f.bool,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:f.elementType,PopperProps:f.object,slotProps:f.shape({arrow:f.oneOfType([f.func,f.object]),popper:f.oneOfType([f.func,f.object]),tooltip:f.oneOfType([f.func,f.object]),transition:f.oneOfType([f.func,f.object])}),slots:f.shape({arrow:f.elementType,popper:f.elementType,tooltip:f.elementType,transition:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),title:f.node,TransitionComponent:f.elementType,TransitionProps:f.object});function LG(e){return Ge("MuiTextField",e)}qe("MuiTextField",["root"]);const FG={standard:Of,filled:wf,outlined:Sf},BG=e=>{const{classes:t}=e;return rt({root:["root"]},LG,t)},zG=ve(jy,{name:"MuiTextField",slot:"Root"})({}),XA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:g,id:m,InputLabelProps:v,inputProps:y,InputProps:S,inputRef:x,label:b,maxRows:O,minRows:E,multiline:C=!1,name:T,onBlur:k,onChange:R,onFocus:M,placeholder:P,required:D=!1,rows:j,select:N=!1,SelectProps:L,slots:B={},slotProps:K={},type:z,value:F,variant:G="outlined",...Y}=r,ne={...r,autoFocus:o,color:l,disabled:u,error:d,fullWidth:h,multiline:C,required:D,select:N,variant:G},Q=BG(ne);process.env.NODE_ENV!=="production"&&N&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const X=xg(m),te=g&&X?`${X}-helper-text`:void 0,ie=b&&X?`${X}-label`:void 0,ae=FG[G],W={slots:B,slotProps:{input:S,inputLabel:v,htmlInput:y,formHelperText:p,select:L,...K}},H={},J=W.slotProps.inputLabel;G==="outlined"&&(J&&typeof J.shrink<"u"&&(H.notched=J.shrink),H.label=b),N&&((!L||!L.native)&&(H.id=void 0),H["aria-describedby"]=void 0);const[A,fe]=ot("root",{elementType:zG,shouldForwardComponentProp:!0,externalForwardedProps:{...W,...Y},ownerState:ne,className:oe(Q.root,s),ref:n,additionalProps:{disabled:u,error:d,fullWidth:h,required:D,color:l,variant:G}}),[re,me]=ot("input",{elementType:ae,externalForwardedProps:W,additionalProps:H,ownerState:ne}),[we,Se]=ot("inputLabel",{elementType:$A,externalForwardedProps:W,ownerState:ne}),[_e,Ze]=ot("htmlInput",{elementType:"input",externalForwardedProps:W,ownerState:ne}),[De,Te]=ot("formHelperText",{elementType:DA,externalForwardedProps:W,ownerState:ne}),[de,Et]=ot("select",{elementType:Ef,externalForwardedProps:W,ownerState:ne}),Je=w.jsx(re,{"aria-describedby":te,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:h,multiline:C,name:T,rows:j,maxRows:O,minRows:E,type:z,value:F,id:X,inputRef:x,onBlur:k,onChange:R,onFocus:M,placeholder:P,inputProps:Ze,slots:{input:B.htmlInput?_e:void 0},...me});return w.jsxs(A,{...fe,children:[b!=null&&b!==""&&w.jsx(we,{htmlFor:X,id:ie,...Se,children:b}),N?w.jsx(de,{"aria-describedby":te,id:X,labelId:ie,value:F,input:Je,...Et,children:a}):Je,g&&w.jsx(De,{id:te,...Te,children:g})]})});process.env.NODE_ENV!=="production"&&(XA.propTypes={autoComplete:f.string,autoFocus:f.bool,children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","error","info","success","warning"]),f.string]),defaultValue:f.any,disabled:f.bool,error:f.bool,FormHelperTextProps:f.object,fullWidth:f.bool,helperText:f.node,id:f.string,InputLabelProps:f.object,inputProps:f.object,InputProps:f.object,inputRef:ur,label:f.node,margin:f.oneOf(["dense","none","normal"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,onBlur:f.func,onChange:f.func,onFocus:f.func,placeholder:f.string,required:f.bool,rows:f.oneOfType([f.number,f.string]),select:f.bool,SelectProps:f.object,size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),slotProps:f.shape({formHelperText:f.oneOfType([f.func,f.object]),htmlInput:f.oneOfType([f.func,f.object]),input:f.oneOfType([f.func,f.object]),inputLabel:f.oneOfType([f.func,f.object]),select:f.oneOfType([f.func,f.object])}),slots:f.shape({formHelperText:f.elementType,htmlInput:f.elementType,input:f.elementType,inputLabel:f.elementType,root:f.elementType,select:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any,variant:f.oneOf(["filled","outlined","standard"])});function VG(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Box_List"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M6.562,8.062h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,8.062Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,20.938h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,20.938Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,14.5h-2a1.5,1.5,0,0,1-1.5-1.5V11a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,14.5Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5V11a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M20.438,6.062h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,12.5h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,18.935h-9a.5.5,0,1,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]}]}]}]})(e)}function WG(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Export"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M5.552,20.968a2.577,2.577,0,0,1-2.5-2.73c-.012-2.153,0-4.306,0-6.459a.5.5,0,0,1,1,0c0,2.2-.032,4.4,0,6.6.016,1.107.848,1.589,1.838,1.589H18.353A1.546,1.546,0,0,0,19.825,19a3.023,3.023,0,0,0,.1-1.061V11.779h0a.5.5,0,0,1,1,0c0,2.224.085,4.465,0,6.687a2.567,2.567,0,0,1-2.67,2.5Z"},child:[]},{tag:"path",attr:{d:"M12.337,3.176a.455.455,0,0,0-.311-.138c-.015,0-.028,0-.043-.006s-.027,0-.041.006a.457.457,0,0,0-.312.138L7.961,6.845a.5.5,0,0,0,.707.707l2.816-2.815V15.479a.5.5,0,0,0,1,0V4.737L15.3,7.552a.5.5,0,0,0,.707-.707Z"},child:[]}]}]}]})(e)}function UG(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(e)}const HG=au(Ef)(()=>({width:"fit-content",maxWidth:"100px",height:"28px",padding:"0 6px",display:"flex",fontSize:"12px",alignItems:"center","& .MuiSelect-select":{padding:0},"& .MuiOutlinedInput-notchedOutline":{borderColor:"#C6C6C6",transition:"all 0.2s ease"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#B084CC"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#884EA7 !important",boxShadow:"0 0 0 3px rgba(136, 78, 167, 0.2)"}}));function ZA({widgetId:e,options:t=[],defaultValue:n=["all"],onFilterChange:r=()=>{},onExport:i=()=>{}}){const o=JSON.parse(sessionStorage.getItem("community_id"))||[],[a,s]=I.useState(o),[l,c]=I.useState(""),u=t.filter(h=>h.community_name.toLowerCase().includes(l.toLowerCase())),d=h=>{let g=h.target.value;const m=t.map(v=>v.community_id);if(g.includes("all")&&!a.includes("all"))s(["all",...m]),yi("community_id",JSON.stringify(m)),yi("widget_id",e),r(m);else if(!g.includes("all")&&a.includes("all"))s([]),yi("community_id",JSON.stringify([])),yi("widget_id",e),r([]);else{const v=g.filter(S=>S!=="all"),y=v.length>0&&m.every(S=>v.includes(S));s(y?["all",...m]:v),yi("community_id",JSON.stringify(v)),yi("widget_id",e),r(v)}},p=()=>{yi("widget_id",e),yi("export",!0),i()};return w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Ym,{slotProps:{tooltip:{sx:{fontSize:"12px"}}},children:w.jsx(jy,{size:"small",children:w.jsxs(HG,{multiple:!0,value:a,onChange:d,renderValue:h=>h.length===0?"Select...":h.includes("all")?"All":t.filter(g=>h.includes(g.community_id)).map(g=>g.community_name).join(", "),MenuProps:{PaperProps:{style:{maxHeight:300}},autoFocus:!1},children:[w.jsx(Ps,{onKeyDown:h=>h.stopPropagation(),onClick:h=>h.stopPropagation(),disableRipple:!0,sx:{"&:hover":{backgroundColor:"transparent"},cursor:"default"},children:w.jsx(XA,{placeholder:"Search...",size:"small",variant:"outlined",value:l,onChange:h=>c(h.target.value),onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),sx:{width:"100%"},autoFocus:!0})}),w.jsxs(Ps,{value:"all",children:[w.jsx(qm,{checked:a.includes("all")}),w.jsx(eu,{primary:"All",sx:{fontWeight:600}})]}),u.length>0?u.map(h=>w.jsxs(Ps,{value:h.community_id,children:[w.jsx(qm,{checked:a.includes(h.community_id)}),w.jsx(eu,{primary:h.community_name})]},h.community_id)):w.jsx(Ps,{disabled:!0,children:w.jsx(eu,{primary:"No results found"})})]})})}),w.jsx(Ym,{title:"Export CSV for this widget",children:w.jsx("button",{onClick:p,className:"px-3 py-2 bg-[#FBF5FF] rounded cursor-pointer",children:w.jsx(WG,{className:"stroke-[#884EA7] stroke-[1.4]"})})})]})}function qG({isStatic:e,data:t,communities:n}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],i=[{name:"Notice",value:Number(t?.total_notices||0),color:r[0]},{name:"Post",value:Number(t?.total_topics||0),color:r[1]},{name:"Poll",value:Number(t?.total_polls||0),color:r[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:r[3]}];return w.jsx($o,{title:"Engagement",period:"This Month",icon:w.jsx(a_,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,actionButtons:w.jsx(ZA,{widgetId:t?.widget_id,options:t?.communities,onFilterChange:(o,a)=>console.log(o,a),onExport:o=>console.log("Export triggered for",o)}),children:w.jsx("div",{className:"w-full h-[235px]",children:w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(jH,{data:i,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[w.jsx(cf,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),w.jsx(rl,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),w.jsx(uf,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),w.jsx(zo,{content:w.jsx(El,{}),cursor:{fill:"transparent"}}),w.jsx(PT,{dataKey:"value",barSize:40,isAnimationActive:!1,children:i.map((o,a)=>w.jsx(Ir,{fill:r[a]},o.name))})]})})})})}function KG({isStatic:e,data:t}){const n=Number(t?.totalBookings||0),r=Number(t?.averageUtilizationPercentage||0),i=I.useMemo(()=>{if(!t?.graph)return[];const{labels:s=[],bookings:l=[],utilization:c=[]}=t.graph;return s.map((u,d)=>({time:u,bookings:l[d]||0,utilization:c[d]||0}))},[t]),o=s=>["12 AM","6 AM","12 PM","6 PM","11 PM"].includes(s)?s:"",a=i.length?i:Array.from({length:24},(s,l)=>({time:`${l%12||12} ${l>=12?"PM":"AM"}`,bookings:0,utilization:0}));return w.jsxs($o,{title:"Facilities",period:"Today",icon:w.jsx(o_,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[w.jsxs("div",{className:"grid grid-cols-2 gap-[24px] mb-[16px]",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),w.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:n})]}),w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),w.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[r.toFixed(2),"%"]})]})]}),w.jsx("div",{className:"w-full h-[170px]",children:w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(eA,{data:a,margin:{top:5,right:-30,left:-35,bottom:0},children:[w.jsx(cf,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),w.jsx(uf,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),w.jsx(rl,{yAxisId:"left",tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),w.jsx(rl,{yAxisId:"right",orientation:"right",domain:[0,100],ticks:[0,20,40,60,80,100],tickFormatter:s=>`${s}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),w.jsx(zo,{content:w.jsx(El,{})}),w.jsx(pa,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),w.jsx(pa,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function YG({data:e}){const t=e?.incomeSummary||{},n=e?.expenditureSummary||{},r=["AED","USD","EUR"],i=["Rs","INR","₹"];function o(s){if(s==null||isNaN(s))return"0";const l=Number(s),c=Math.abs(l),u=l<0?"-":"";return c>=1e9?u+(c/1e9).toFixed(c%1e9===0?0:2)+"B":c>=1e6?u+(c/1e6).toFixed(c%1e6===0?0:2)+"M":c>=1e3?u+(c/1e3).toFixed(c%1e3===0?0:2)+"K":u+c.toFixed(c%1===0?0:2)}function a(s,l){return l?i.includes(l)?`${l} ${o(s)}`:r.includes(l)?`${o(s)} ${l}`:`${o(s)} ${l}`:o(s)}return console.log("Finance Summary Data:",e),w.jsx($o,{title:"Income",period:"This Month",icon:w.jsx(a0,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",actionButtons:w.jsx(ZA,{widgetId:e?.widget_id,options:e?.communities,onFilterChange:(s,l)=>console.log(s,l),onExport:s=>console.log("Export triggered for",s)}),children:w.jsxs("div",{children:[w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[w.jsx("div",{children:"Opening"}),w.jsx("div",{children:"Income"}),w.jsx("div",{children:"Collection"}),w.jsx("div",{children:"Closing"})]}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[w.jsx("div",{children:a(t.opening_balance,t?.currency_type)}),w.jsx("div",{children:a(t.income,t?.currency_type)}),w.jsx("div",{children:a(t.collection,t?.currency_type)}),w.jsx("div",{children:a(t.closing_balance,t?.currency_type)})]}),w.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),w.jsx("div",{className:"flex items-center justify-between",children:w.jsxs("div",{className:"flex items-center gap-[12px]",children:[w.jsx(a0,{className:"!text-[24px] text-red-600"}),w.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[w.jsx("div",{children:"Opening"}),w.jsx("div",{children:"Expenditure"}),w.jsx("div",{children:"Payment"}),w.jsx("div",{children:"Outstanding"})]}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[w.jsx("div",{children:a(n.opening_balance,n?.currency_type)}),w.jsx("div",{children:a(n.expenditure,n?.currency_type)}),w.jsx("div",{children:a(n.payment,n?.currency_type)}),w.jsx("div",{children:a(n.outstanding,n?.currency_type)})]})]})})}var GG="tippy-box",JA="tippy-content",XG="tippy-backdrop",QA="tippy-arrow",ek="tippy-svg-arrow",lo={passive:!0,capture:!0},tk=function(){return document.body};function ZG(e,t){return{}.hasOwnProperty.call(e,t)}function Sh(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Dy(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function nk(e,t){return typeof e=="function"?e.apply(void 0,t):e}function zO(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function JG(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function QG(e){return e.split(/\s+/).filter(Boolean)}function oa(e){return[].concat(e)}function VO(e,t){e.indexOf(t)===-1&&e.push(t)}function eX(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function tX(e){return e.split("-")[0]}function id(e){return[].slice.call(e)}function WO(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function $s(){return document.createElement("div")}function cl(e){return["Element","Fragment"].some(function(t){return Dy(e,t)})}function nX(e){return Dy(e,"NodeList")}function rX(e){return Dy(e,"MouseEvent")}function iX(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function oX(e){return cl(e)?[e]:nX(e)?id(e):Array.isArray(e)?e:id(document.querySelectorAll(e))}function Eh(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function UO(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function aX(e){var t,n=oa(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function sX(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=tX(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,p=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,g=c==="left"?u.right.x:0,m=o.top-r+d>l,v=r-o.bottom-p>l,y=o.left-n+h>l,S=n-o.right-g>l;return m||v||y||S})}function _h(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function HO(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var _r={isTouch:!1},qO=0;function lX(){_r.isTouch||(_r.isTouch=!0,window.performance&&document.addEventListener("mousemove",rk))}function rk(){var e=performance.now();e-qO<20&&(_r.isTouch=!1,document.removeEventListener("mousemove",rk)),qO=e}function cX(){var e=document.activeElement;if(iX(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function uX(){document.addEventListener("touchstart",lX,lo),window.addEventListener("blur",cX)}var dX=typeof window<"u"&&typeof document<"u",fX=dX?!!window.msCrypto:!1;function ea(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function KO(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function pX(e){return KO(`
|
|
309
|
+
`));const zt={...r,isRtl:z,arrow:i,disableInteractive:X,placement:T,PopperComponentProp:k,touch:Q.current},U=typeof M.popper=="function"?M.popper(zt):M.popper,le=_.useMemo(()=>{let be=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return R.popperOptions?.modifiers&&(be=be.concat(R.popperOptions.modifiers)),U?.popperOptions?.modifiers&&(be=be.concat(U.popperOptions.modifiers)),{...R.popperOptions,...U?.popperOptions,modifiers:be}},[Y,R.popperOptions,U?.popperOptions]),Z=RG(zt),ce=typeof M.transition=="function"?M.transition(zt):M.transition,pe={slots:{popper:s.Popper,transition:s.Transition??j,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:M.arrow??l.arrow,popper:{...R,...U??l.popper},tooltip:M.tooltip??l.tooltip,transition:{...N,...ce??l.transition}}},[Qe,dt]=ot("popper",{elementType:DG,externalForwardedProps:pe,ownerState:zt,className:oe(Z.popper,R?.className)}),[Hn,vi]=ot("transition",{elementType:sl,externalForwardedProps:pe,ownerState:zt}),[qn,Gi]=ot("tooltip",{elementType:IG,className:Z.tooltip,externalForwardedProps:pe,ownerState:zt}),[Br,vr]=ot("arrow",{elementType:$G,className:Z.arrow,externalForwardedProps:pe,ownerState:zt,ref:ne});return w.jsxs(_.Fragment,{children:[_.cloneElement(B,ye),w.jsx(Qe,{as:k??My,placement:T,anchorEl:y?{getBoundingClientRect:()=>({top:fs.y,left:fs.x,right:fs.x,bottom:fs.y,width:0,height:0})}:F,popperRef:nn,open:F?A:!1,id:fe,transition:!0,...rn,...dt,popperOptions:le,children:({TransitionProps:be})=>w.jsx(Hn,{timeout:K.transitions.duration.shorter,...be,...vi,children:w.jsxs(qn,{...Gi,children:[D,i?w.jsx(Br,{...vr}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Ym.propTypes={arrow:f.bool,children:Ka.isRequired,classes:f.object,className:f.string,components:f.shape({Arrow:f.elementType,Popper:f.elementType,Tooltip:f.elementType,Transition:f.elementType}),componentsProps:f.shape({arrow:f.object,popper:f.object,tooltip:f.object,transition:f.object}),describeChild:f.bool,disableFocusListener:f.bool,disableHoverListener:f.bool,disableInteractive:f.bool,disableTouchListener:f.bool,enterDelay:f.number,enterNextDelay:f.number,enterTouchDelay:f.number,followCursor:f.bool,id:f.string,leaveDelay:f.number,leaveTouchDelay:f.number,onClose:f.func,onOpen:f.func,open:f.bool,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:f.elementType,PopperProps:f.object,slotProps:f.shape({arrow:f.oneOfType([f.func,f.object]),popper:f.oneOfType([f.func,f.object]),tooltip:f.oneOfType([f.func,f.object]),transition:f.oneOfType([f.func,f.object])}),slots:f.shape({arrow:f.elementType,popper:f.elementType,tooltip:f.elementType,transition:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),title:f.node,TransitionComponent:f.elementType,TransitionProps:f.object});function LG(e){return Ge("MuiTextField",e)}qe("MuiTextField",["root"]);const FG={standard:Of,filled:wf,outlined:Sf},BG=e=>{const{classes:t}=e;return rt({root:["root"]},LG,t)},zG=ve(jy,{name:"MuiTextField",slot:"Root"})({}),XA=_.forwardRef(function(t,n){const r=ut({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:g,id:m,InputLabelProps:v,inputProps:y,InputProps:S,inputRef:x,label:b,maxRows:O,minRows:E,multiline:C=!1,name:T,onBlur:k,onChange:R,onFocus:M,placeholder:P,required:D=!1,rows:j,select:N=!1,SelectProps:L,slots:B={},slotProps:K={},type:z,value:F,variant:G="outlined",...Y}=r,ne={...r,autoFocus:o,color:l,disabled:u,error:d,fullWidth:h,multiline:C,required:D,select:N,variant:G},Q=BG(ne);process.env.NODE_ENV!=="production"&&N&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const X=xg(m),te=g&&X?`${X}-helper-text`:void 0,ie=b&&X?`${X}-label`:void 0,ae=FG[G],W={slots:B,slotProps:{input:S,inputLabel:v,htmlInput:y,formHelperText:p,select:L,...K}},H={},J=W.slotProps.inputLabel;G==="outlined"&&(J&&typeof J.shrink<"u"&&(H.notched=J.shrink),H.label=b),N&&((!L||!L.native)&&(H.id=void 0),H["aria-describedby"]=void 0);const[A,fe]=ot("root",{elementType:zG,shouldForwardComponentProp:!0,externalForwardedProps:{...W,...Y},ownerState:ne,className:oe(Q.root,s),ref:n,additionalProps:{disabled:u,error:d,fullWidth:h,required:D,color:l,variant:G}}),[re,me]=ot("input",{elementType:ae,externalForwardedProps:W,additionalProps:H,ownerState:ne}),[we,Se]=ot("inputLabel",{elementType:$A,externalForwardedProps:W,ownerState:ne}),[_e,Ze]=ot("htmlInput",{elementType:"input",externalForwardedProps:W,ownerState:ne}),[De,Te]=ot("formHelperText",{elementType:DA,externalForwardedProps:W,ownerState:ne}),[de,Et]=ot("select",{elementType:Ef,externalForwardedProps:W,ownerState:ne}),Je=w.jsx(re,{"aria-describedby":te,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:h,multiline:C,name:T,rows:j,maxRows:O,minRows:E,type:z,value:F,id:X,inputRef:x,onBlur:k,onChange:R,onFocus:M,placeholder:P,inputProps:Ze,slots:{input:B.htmlInput?_e:void 0},...me});return w.jsxs(A,{...fe,children:[b!=null&&b!==""&&w.jsx(we,{htmlFor:X,id:ie,...Se,children:b}),N?w.jsx(de,{"aria-describedby":te,id:X,labelId:ie,value:F,input:Je,...Et,children:a}):Je,g&&w.jsx(De,{id:te,...Te,children:g})]})});process.env.NODE_ENV!=="production"&&(XA.propTypes={autoComplete:f.string,autoFocus:f.bool,children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","error","info","success","warning"]),f.string]),defaultValue:f.any,disabled:f.bool,error:f.bool,FormHelperTextProps:f.object,fullWidth:f.bool,helperText:f.node,id:f.string,InputLabelProps:f.object,inputProps:f.object,InputProps:f.object,inputRef:ur,label:f.node,margin:f.oneOf(["dense","none","normal"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,onBlur:f.func,onChange:f.func,onFocus:f.func,placeholder:f.string,required:f.bool,rows:f.oneOfType([f.number,f.string]),select:f.bool,SelectProps:f.object,size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),slotProps:f.shape({formHelperText:f.oneOfType([f.func,f.object]),htmlInput:f.oneOfType([f.func,f.object]),input:f.oneOfType([f.func,f.object]),inputLabel:f.oneOfType([f.func,f.object]),select:f.oneOfType([f.func,f.object])}),slots:f.shape({formHelperText:f.elementType,htmlInput:f.elementType,input:f.elementType,inputLabel:f.elementType,root:f.elementType,select:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any,variant:f.oneOf(["filled","outlined","standard"])});function VG(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Box_List"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M6.562,8.062h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,8.062Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,20.938h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,20.938Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,14.5h-2a1.5,1.5,0,0,1-1.5-1.5V11a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,14.5Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5V11a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M20.438,6.062h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,12.5h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,18.935h-9a.5.5,0,1,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]}]}]}]})(e)}function WG(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Export"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M5.552,20.968a2.577,2.577,0,0,1-2.5-2.73c-.012-2.153,0-4.306,0-6.459a.5.5,0,0,1,1,0c0,2.2-.032,4.4,0,6.6.016,1.107.848,1.589,1.838,1.589H18.353A1.546,1.546,0,0,0,19.825,19a3.023,3.023,0,0,0,.1-1.061V11.779h0a.5.5,0,0,1,1,0c0,2.224.085,4.465,0,6.687a2.567,2.567,0,0,1-2.67,2.5Z"},child:[]},{tag:"path",attr:{d:"M12.337,3.176a.455.455,0,0,0-.311-.138c-.015,0-.028,0-.043-.006s-.027,0-.041.006a.457.457,0,0,0-.312.138L7.961,6.845a.5.5,0,0,0,.707.707l2.816-2.815V15.479a.5.5,0,0,0,1,0V4.737L15.3,7.552a.5.5,0,0,0,.707-.707Z"},child:[]}]}]}]})(e)}function UG(e){return Xe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(e)}const HG=au(Ef)(()=>({width:"fit-content",maxWidth:"100px",height:"28px",padding:"0 6px",display:"flex",fontSize:"12px",alignItems:"center","& .MuiSelect-select":{padding:0},"& .MuiOutlinedInput-notchedOutline":{borderColor:"#C6C6C6",transition:"all 0.2s ease"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#B084CC"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#884EA7 !important",boxShadow:"0 0 0 3px rgba(136, 78, 167, 0.2)"}}));function ZA({widgetId:e,options:t=[],defaultValue:n=["all"],onFilterChange:r=()=>{},onExport:i=()=>{}}){const o=JSON.parse(sessionStorage.getItem("community_id"))||[],[a,s]=I.useState(o),[l,c]=I.useState(""),u=t.filter(h=>h.community_name.toLowerCase().includes(l.toLowerCase())),d=h=>{let g=h.target.value;const m=t.map(v=>v.community_id);if(g.includes("all")&&!a.includes("all"))s(["all",...m]),yi("community_id",JSON.stringify(m)),yi("widget_id",e),r(m);else if(!g.includes("all")&&a.includes("all"))s([]),yi("community_id",JSON.stringify([])),yi("widget_id",e),r([]);else{const v=g.filter(x=>x!=="all"),y=v.length>0&&m.every(x=>v.includes(x));s(y?["all",...m]:v);const S=v.length===1?v[0]:v;yi("community_id",JSON.stringify(S)),yi("widget_id",e),r(S)}},p=()=>{yi("widget_id",e),yi("export",!0),i()};return w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Ym,{slotProps:{tooltip:{sx:{fontSize:"12px"}}},children:w.jsx(jy,{size:"small",children:w.jsxs(HG,{multiple:!0,value:a,onChange:d,renderValue:h=>h.length===0?"Select...":h.includes("all")?"All":t.filter(g=>h.includes(g.community_id)).map(g=>g.community_name).join(", "),MenuProps:{PaperProps:{style:{maxHeight:300}},autoFocus:!1},children:[w.jsx(Ps,{onKeyDown:h=>h.stopPropagation(),onClick:h=>h.stopPropagation(),disableRipple:!0,sx:{"&:hover":{backgroundColor:"transparent"},cursor:"default"},children:w.jsx(XA,{placeholder:"Search...",size:"small",variant:"outlined",value:l,onChange:h=>c(h.target.value),onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),sx:{width:"100%"},autoFocus:!0})}),w.jsxs(Ps,{value:"all",children:[w.jsx(qm,{checked:a.includes("all")}),w.jsx(eu,{primary:"All",sx:{fontWeight:600}})]}),u.length>0?u.map(h=>w.jsxs(Ps,{value:h.community_id,children:[w.jsx(qm,{checked:a.includes(h.community_id)}),w.jsx(eu,{primary:h.community_name})]},h.community_id)):w.jsx(Ps,{disabled:!0,children:w.jsx(eu,{primary:"No results found"})})]})})}),w.jsx(Ym,{title:"Export CSV for this widget",children:w.jsx("button",{onClick:p,className:"px-3 py-2 bg-[#FBF5FF] rounded cursor-pointer",children:w.jsx(WG,{className:"stroke-[#884EA7] stroke-[1.4]"})})})]})}function qG({isStatic:e,data:t,communities:n}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],i=[{name:"Notice",value:Number(t?.total_notices||0),color:r[0]},{name:"Post",value:Number(t?.total_topics||0),color:r[1]},{name:"Poll",value:Number(t?.total_polls||0),color:r[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:r[3]}];return w.jsx($o,{title:"Engagement",period:"This Month",icon:w.jsx(a_,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,actionButtons:w.jsx(ZA,{widgetId:t?.widget_id,options:t?.communities,onFilterChange:(o,a)=>console.log(o,a),onExport:o=>console.log("Export triggered for",o)}),children:w.jsx("div",{className:"w-full h-[235px]",children:w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(jH,{data:i,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[w.jsx(cf,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),w.jsx(rl,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),w.jsx(uf,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),w.jsx(zo,{content:w.jsx(El,{}),cursor:{fill:"transparent"}}),w.jsx(PT,{dataKey:"value",barSize:40,isAnimationActive:!1,children:i.map((o,a)=>w.jsx(Ir,{fill:r[a]},o.name))})]})})})})}function KG({isStatic:e,data:t}){const n=Number(t?.totalBookings||0),r=Number(t?.averageUtilizationPercentage||0),i=I.useMemo(()=>{if(!t?.graph)return[];const{labels:s=[],bookings:l=[],utilization:c=[]}=t.graph;return s.map((u,d)=>({time:u,bookings:l[d]||0,utilization:c[d]||0}))},[t]),o=s=>["12 AM","6 AM","12 PM","6 PM","11 PM"].includes(s)?s:"",a=i.length?i:Array.from({length:24},(s,l)=>({time:`${l%12||12} ${l>=12?"PM":"AM"}`,bookings:0,utilization:0}));return w.jsxs($o,{title:"Facilities",period:"Today",icon:w.jsx(o_,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[w.jsxs("div",{className:"grid grid-cols-2 gap-[24px] mb-[16px]",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),w.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:n})]}),w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),w.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[r.toFixed(2),"%"]})]})]}),w.jsx("div",{className:"w-full h-[170px]",children:w.jsx(Vo,{width:"100%",height:"100%",children:w.jsxs(eA,{data:a,margin:{top:5,right:-30,left:-35,bottom:0},children:[w.jsx(cf,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),w.jsx(uf,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),w.jsx(rl,{yAxisId:"left",tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),w.jsx(rl,{yAxisId:"right",orientation:"right",domain:[0,100],ticks:[0,20,40,60,80,100],tickFormatter:s=>`${s}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),w.jsx(zo,{content:w.jsx(El,{})}),w.jsx(pa,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),w.jsx(pa,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function YG({data:e}){const t=e?.incomeSummary||{},n=e?.expenditureSummary||{},r=["AED","USD","EUR"],i=["Rs","INR","₹"];function o(s){if(s==null||isNaN(s))return"0";const l=Number(s),c=Math.abs(l),u=l<0?"-":"";return c>=1e9?u+(c/1e9).toFixed(c%1e9===0?0:2)+"B":c>=1e6?u+(c/1e6).toFixed(c%1e6===0?0:2)+"M":c>=1e3?u+(c/1e3).toFixed(c%1e3===0?0:2)+"K":u+c.toFixed(c%1===0?0:2)}function a(s,l){return l?i.includes(l)?`${l} ${o(s)}`:r.includes(l)?`${o(s)} ${l}`:`${o(s)} ${l}`:o(s)}return console.log("Finance Summary Data:",e),w.jsx($o,{title:"Income",period:"This Month",icon:w.jsx(a0,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",actionButtons:w.jsx(ZA,{widgetId:e?.widget_id,options:e?.communities,onFilterChange:(s,l)=>console.log(s,l),onExport:s=>console.log("Export triggered for",s)}),children:w.jsxs("div",{children:[w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[w.jsx("div",{children:"Opening"}),w.jsx("div",{children:"Income"}),w.jsx("div",{children:"Collection"}),w.jsx("div",{children:"Closing"})]}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[w.jsx("div",{children:a(t.opening_balance,t?.currency_type)}),w.jsx("div",{children:a(t.income,t?.currency_type)}),w.jsx("div",{children:a(t.collection,t?.currency_type)}),w.jsx("div",{children:a(t.closing_balance,t?.currency_type)})]}),w.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),w.jsx("div",{className:"flex items-center justify-between",children:w.jsxs("div",{className:"flex items-center gap-[12px]",children:[w.jsx(a0,{className:"!text-[24px] text-red-600"}),w.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[w.jsx("div",{children:"Opening"}),w.jsx("div",{children:"Expenditure"}),w.jsx("div",{children:"Payment"}),w.jsx("div",{children:"Outstanding"})]}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[w.jsx("div",{children:a(n.opening_balance,n?.currency_type)}),w.jsx("div",{children:a(n.expenditure,n?.currency_type)}),w.jsx("div",{children:a(n.payment,n?.currency_type)}),w.jsx("div",{children:a(n.outstanding,n?.currency_type)})]})]})})}var GG="tippy-box",JA="tippy-content",XG="tippy-backdrop",QA="tippy-arrow",ek="tippy-svg-arrow",lo={passive:!0,capture:!0},tk=function(){return document.body};function ZG(e,t){return{}.hasOwnProperty.call(e,t)}function Sh(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Dy(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function nk(e,t){return typeof e=="function"?e.apply(void 0,t):e}function zO(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function JG(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function QG(e){return e.split(/\s+/).filter(Boolean)}function oa(e){return[].concat(e)}function VO(e,t){e.indexOf(t)===-1&&e.push(t)}function eX(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function tX(e){return e.split("-")[0]}function id(e){return[].slice.call(e)}function WO(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function $s(){return document.createElement("div")}function cl(e){return["Element","Fragment"].some(function(t){return Dy(e,t)})}function nX(e){return Dy(e,"NodeList")}function rX(e){return Dy(e,"MouseEvent")}function iX(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function oX(e){return cl(e)?[e]:nX(e)?id(e):Array.isArray(e)?e:id(document.querySelectorAll(e))}function Eh(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function UO(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function aX(e){var t,n=oa(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function sX(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=tX(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,p=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,g=c==="left"?u.right.x:0,m=o.top-r+d>l,v=r-o.bottom-p>l,y=o.left-n+h>l,S=n-o.right-g>l;return m||v||y||S})}function _h(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function HO(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var _r={isTouch:!1},qO=0;function lX(){_r.isTouch||(_r.isTouch=!0,window.performance&&document.addEventListener("mousemove",rk))}function rk(){var e=performance.now();e-qO<20&&(_r.isTouch=!1,document.removeEventListener("mousemove",rk)),qO=e}function cX(){var e=document.activeElement;if(iX(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function uX(){document.addEventListener("touchstart",lX,lo),window.addEventListener("blur",cX)}var dX=typeof window<"u"&&typeof document<"u",fX=dX?!!window.msCrypto:!1;function ea(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function KO(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function pX(e){return KO(`
|
|
310
310
|
%ctippy.js
|
|
311
311
|
|
|
312
312
|
%c`+KO(e)+`
|
package/dist/index.es.js
CHANGED
|
@@ -6190,7 +6190,7 @@ const v0 = ({ color: e }) => /* @__PURE__ */ w.jsx(
|
|
|
6190
6190
|
);
|
|
6191
6191
|
};
|
|
6192
6192
|
function Ci(e, t) {
|
|
6193
|
-
sessionStorage.setItem(e, t), (e === "community_id" || e === "export") && window.dispatchEvent(new StorageEvent("dashboard-update", { key: e }));
|
|
6193
|
+
sessionStorage.setItem(e, t), (e === "community_id" || e === "export" || e === "widget_id") && window.dispatchEvent(new StorageEvent("dashboard-update", { key: e }));
|
|
6194
6194
|
}
|
|
6195
6195
|
var Qf = {}, ep = {}, y0;
|
|
6196
6196
|
function OD() {
|
|
@@ -34912,8 +34912,10 @@ function fk({
|
|
|
34912
34912
|
else if (!g.includes("all") && a.includes("all"))
|
|
34913
34913
|
s([]), Ci("community_id", JSON.stringify([])), Ci("widget_id", e), r([]);
|
|
34914
34914
|
else {
|
|
34915
|
-
const v = g.filter((
|
|
34916
|
-
s(y ? ["all", ...m] : v)
|
|
34915
|
+
const v = g.filter((x) => x !== "all"), y = v.length > 0 && m.every((x) => v.includes(x));
|
|
34916
|
+
s(y ? ["all", ...m] : v);
|
|
34917
|
+
const S = v.length === 1 ? v[0] : v;
|
|
34918
|
+
Ci("community_id", JSON.stringify(S)), Ci("widget_id", e), r(S);
|
|
34917
34919
|
}
|
|
34918
34920
|
}, p = () => {
|
|
34919
34921
|
Ci("widget_id", e), Ci("export", !0), i();
|
package/dist/index.umd.js
CHANGED
|
@@ -117,7 +117,7 @@ export default theme;`}function j0(e){return typeof e=="number"?`${(e*100).toFix
|
|
|
117
117
|
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function ED(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Er=e=>{try{return e()}catch{}},_D=(e="mui")=>WN(e);function fp(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const o=i==="dark"?"dark":"light";if(!r){t[i]=bD({...n,palette:{mode:o,...n?.palette},colorSpace:e});return}const{palette:a,...s}=up({...r,palette:{mode:o,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...N0(o),...n?.opacity},overlays:n?.overlays||D0(o)},s}function PD(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=xD,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],p=r||(n.light&&d!=="light"?"light":d),h=_D(o),{[p]:g,light:m,dark:v,...y}=n,S={...y};let x=g;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:yr(21,p));let b;a&&(b="oklch");const O=fp(b,S,x,u,p);m&&!S.light&&fp(b,S,m,void 0,"light"),v&&!S.dark&&fp(b,S,v,void 0,"dark");let E={defaultColorScheme:p,...O,cssVarPrefix:o,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:S,font:{...nD(O.typography),...O.font},spacing:ED(u.spacing)};Object.keys(E.colorSchemes).forEach(M=>{const P=E.colorSchemes[M].palette,I=N=>{const L=N.split("-"),B=L[1],K=L[2];return h(N,P[B][K])};P.mode==="light"&&(q(P.common,"background","#fff"),q(P.common,"onBackground","#000")),P.mode==="dark"&&(q(P.common,"background","#000"),q(P.common,"onBackground","#fff"));function j(N,L,B){if(b){let K;return N===Ji&&(K=`transparent ${((1-B)*100).toFixed(0)}%`),N===Ue&&(K=`#000 ${(B*100).toFixed(0)}%`),N===He&&(K=`#fff ${(B*100).toFixed(0)}%`),`color-mix(in ${b}, ${L}, ${K})`}return N(L,B)}if(SD(P,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),P.mode==="light"){q(P.Alert,"errorColor",j(Ue,P.error.light,.6)),q(P.Alert,"infoColor",j(Ue,P.info.light,.6)),q(P.Alert,"successColor",j(Ue,P.success.light,.6)),q(P.Alert,"warningColor",j(Ue,P.warning.light,.6)),q(P.Alert,"errorFilledBg",I("palette-error-main")),q(P.Alert,"infoFilledBg",I("palette-info-main")),q(P.Alert,"successFilledBg",I("palette-success-main")),q(P.Alert,"warningFilledBg",I("palette-warning-main")),q(P.Alert,"errorFilledColor",Er(()=>P.getContrastText(P.error.main))),q(P.Alert,"infoFilledColor",Er(()=>P.getContrastText(P.info.main))),q(P.Alert,"successFilledColor",Er(()=>P.getContrastText(P.success.main))),q(P.Alert,"warningFilledColor",Er(()=>P.getContrastText(P.warning.main))),q(P.Alert,"errorStandardBg",j(He,P.error.light,.9)),q(P.Alert,"infoStandardBg",j(He,P.info.light,.9)),q(P.Alert,"successStandardBg",j(He,P.success.light,.9)),q(P.Alert,"warningStandardBg",j(He,P.warning.light,.9)),q(P.Alert,"errorIconColor",I("palette-error-main")),q(P.Alert,"infoIconColor",I("palette-info-main")),q(P.Alert,"successIconColor",I("palette-success-main")),q(P.Alert,"warningIconColor",I("palette-warning-main")),q(P.AppBar,"defaultBg",I("palette-grey-100")),q(P.Avatar,"defaultBg",I("palette-grey-400")),q(P.Button,"inheritContainedBg",I("palette-grey-300")),q(P.Button,"inheritContainedHoverBg",I("palette-grey-A100")),q(P.Chip,"defaultBorder",I("palette-grey-400")),q(P.Chip,"defaultAvatarColor",I("palette-grey-700")),q(P.Chip,"defaultIconColor",I("palette-grey-700")),q(P.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(P.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(P.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(P.LinearProgress,"primaryBg",j(He,P.primary.main,.62)),q(P.LinearProgress,"secondaryBg",j(He,P.secondary.main,.62)),q(P.LinearProgress,"errorBg",j(He,P.error.main,.62)),q(P.LinearProgress,"infoBg",j(He,P.info.main,.62)),q(P.LinearProgress,"successBg",j(He,P.success.main,.62)),q(P.LinearProgress,"warningBg",j(He,P.warning.main,.62)),q(P.Skeleton,"bg",b?j(Ji,P.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),q(P.Slider,"primaryTrack",j(He,P.primary.main,.62)),q(P.Slider,"secondaryTrack",j(He,P.secondary.main,.62)),q(P.Slider,"errorTrack",j(He,P.error.main,.62)),q(P.Slider,"infoTrack",j(He,P.info.main,.62)),q(P.Slider,"successTrack",j(He,P.success.main,.62)),q(P.Slider,"warningTrack",j(He,P.warning.main,.62));const N=b?j(Ue,P.background.default,.6825):kc(P.background.default,.8);q(P.SnackbarContent,"bg",N),q(P.SnackbarContent,"color",Er(()=>b?lp.text.primary:P.getContrastText(N))),q(P.SpeedDialAction,"fabHoverBg",kc(P.background.paper,.15)),q(P.StepConnector,"border",I("palette-grey-400")),q(P.StepContent,"border",I("palette-grey-400")),q(P.Switch,"defaultColor",I("palette-common-white")),q(P.Switch,"defaultDisabledColor",I("palette-grey-100")),q(P.Switch,"primaryDisabledColor",j(He,P.primary.main,.62)),q(P.Switch,"secondaryDisabledColor",j(He,P.secondary.main,.62)),q(P.Switch,"errorDisabledColor",j(He,P.error.main,.62)),q(P.Switch,"infoDisabledColor",j(He,P.info.main,.62)),q(P.Switch,"successDisabledColor",j(He,P.success.main,.62)),q(P.Switch,"warningDisabledColor",j(He,P.warning.main,.62)),q(P.TableCell,"border",j(He,j(Ji,P.divider,1),.88)),q(P.Tooltip,"bg",j(Ji,P.grey[700],.92))}if(P.mode==="dark"){q(P.Alert,"errorColor",j(He,P.error.light,.6)),q(P.Alert,"infoColor",j(He,P.info.light,.6)),q(P.Alert,"successColor",j(He,P.success.light,.6)),q(P.Alert,"warningColor",j(He,P.warning.light,.6)),q(P.Alert,"errorFilledBg",I("palette-error-dark")),q(P.Alert,"infoFilledBg",I("palette-info-dark")),q(P.Alert,"successFilledBg",I("palette-success-dark")),q(P.Alert,"warningFilledBg",I("palette-warning-dark")),q(P.Alert,"errorFilledColor",Er(()=>P.getContrastText(P.error.dark))),q(P.Alert,"infoFilledColor",Er(()=>P.getContrastText(P.info.dark))),q(P.Alert,"successFilledColor",Er(()=>P.getContrastText(P.success.dark))),q(P.Alert,"warningFilledColor",Er(()=>P.getContrastText(P.warning.dark))),q(P.Alert,"errorStandardBg",j(Ue,P.error.light,.9)),q(P.Alert,"infoStandardBg",j(Ue,P.info.light,.9)),q(P.Alert,"successStandardBg",j(Ue,P.success.light,.9)),q(P.Alert,"warningStandardBg",j(Ue,P.warning.light,.9)),q(P.Alert,"errorIconColor",I("palette-error-main")),q(P.Alert,"infoIconColor",I("palette-info-main")),q(P.Alert,"successIconColor",I("palette-success-main")),q(P.Alert,"warningIconColor",I("palette-warning-main")),q(P.AppBar,"defaultBg",I("palette-grey-900")),q(P.AppBar,"darkBg",I("palette-background-paper")),q(P.AppBar,"darkColor",I("palette-text-primary")),q(P.Avatar,"defaultBg",I("palette-grey-600")),q(P.Button,"inheritContainedBg",I("palette-grey-800")),q(P.Button,"inheritContainedHoverBg",I("palette-grey-700")),q(P.Chip,"defaultBorder",I("palette-grey-700")),q(P.Chip,"defaultAvatarColor",I("palette-grey-300")),q(P.Chip,"defaultIconColor",I("palette-grey-300")),q(P.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(P.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(P.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(P.LinearProgress,"primaryBg",j(Ue,P.primary.main,.5)),q(P.LinearProgress,"secondaryBg",j(Ue,P.secondary.main,.5)),q(P.LinearProgress,"errorBg",j(Ue,P.error.main,.5)),q(P.LinearProgress,"infoBg",j(Ue,P.info.main,.5)),q(P.LinearProgress,"successBg",j(Ue,P.success.main,.5)),q(P.LinearProgress,"warningBg",j(Ue,P.warning.main,.5)),q(P.Skeleton,"bg",b?j(Ji,P.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),q(P.Slider,"primaryTrack",j(Ue,P.primary.main,.5)),q(P.Slider,"secondaryTrack",j(Ue,P.secondary.main,.5)),q(P.Slider,"errorTrack",j(Ue,P.error.main,.5)),q(P.Slider,"infoTrack",j(Ue,P.info.main,.5)),q(P.Slider,"successTrack",j(Ue,P.success.main,.5)),q(P.Slider,"warningTrack",j(Ue,P.warning.main,.5));const N=b?j(He,P.background.default,.985):kc(P.background.default,.98);q(P.SnackbarContent,"bg",N),q(P.SnackbarContent,"color",Er(()=>b?E0.text.primary:P.getContrastText(N))),q(P.SpeedDialAction,"fabHoverBg",kc(P.background.paper,.15)),q(P.StepConnector,"border",I("palette-grey-600")),q(P.StepContent,"border",I("palette-grey-600")),q(P.Switch,"defaultColor",I("palette-grey-300")),q(P.Switch,"defaultDisabledColor",I("palette-grey-600")),q(P.Switch,"primaryDisabledColor",j(Ue,P.primary.main,.55)),q(P.Switch,"secondaryDisabledColor",j(Ue,P.secondary.main,.55)),q(P.Switch,"errorDisabledColor",j(Ue,P.error.main,.55)),q(P.Switch,"infoDisabledColor",j(Ue,P.info.main,.55)),q(P.Switch,"successDisabledColor",j(Ue,P.success.main,.55)),q(P.Switch,"warningDisabledColor",j(Ue,P.warning.main,.55)),q(P.TableCell,"border",j(Ue,j(Ji,P.divider,1),.68)),q(P.Tooltip,"bg",j(Ji,P.grey[700],.92))}Wr(P.background,"default"),Wr(P.background,"paper"),Wr(P.common,"background"),Wr(P.common,"onBackground"),Wr(P,"divider"),Object.keys(P).forEach(N=>{const L=P[N];N!=="tonalOffset"&&L&&typeof L=="object"&&(L.main&&q(P[N],"mainChannel",ls(ds(L.main))),L.light&&q(P[N],"lightChannel",ls(ds(L.light))),L.dark&&q(P[N],"darkChannel",ls(ds(L.dark))),L.contrastText&&q(P[N],"contrastTextChannel",ls(ds(L.contrastText))),N==="text"&&(Wr(P[N],"primary"),Wr(P[N],"secondary")),N==="action"&&(L.active&&Wr(P[N],"active"),L.selected&&Wr(P[N],"selected")))})}),E=t.reduce((M,P)=>nn(M,P),E);const C={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:OD(E),enableContrastVars:a},{vars:T,generateThemeVars:k,generateStyleSheets:D}=qN(E,C);return E.vars=T,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([M,P])=>{E[M]=P}),E.generateThemeVars=k,E.generateStyleSheets=D,E.generateSpacing=function(){return l0(u.spacing,$f(this))},E.getColorSchemeSelector=KN(l),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=s,E.unstable_sxConfig={...ts,...u?.unstable_sxConfig},E.unstable_sx=function(P){return Ko({sx:P,theme:this})},E.toRuntimeSource=M0,E}function I0(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:cp({...n===!0?{}:n.palette,mode:t})})}function CD(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...a}=e,s=o||"light",l=i?.[s],c={...i,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return up(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=up({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},I0(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},I0(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),PD({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const pp=CD(),hp="$$material";function Mc(){const e=c0(pp);return process.env.NODE_ENV!=="production"&&_.useDebugValue(e),e[hp]||e}function R0(e){return w.jsx(u0,{...e,defaultTheme:pp,themeId:hp})}process.env.NODE_ENV!=="production"&&(R0.propTypes={styles:f.oneOfType([f.array,f.func,f.number,f.object,f.string,f.bool])});function $0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jn=e=>$0(e)&&e!=="classes",ve=CN({themeId:hp,defaultTheme:pp,rootShouldForwardProp:jn});function TD(e){return function(n){return w.jsx(R0,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function AD(){return fj}const wt=VN;process.env.NODE_ENV!=="production"&&(f.node,f.object.isRequired);function ct(e){return BN(e)}function kD(e){return Xe("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const MD=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return Je(i,kD,r)},jD=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(wt(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),jc=_.forwardRef(function(t,n){const r=ct({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...h}=r,g=_.isValidElement(i)&&i.type==="svg",m={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:g},v={};u||(v.viewBox=p);const y=MD(m);return w.jsxs(jD,{as:s,className:oe(y.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...v,...h,...g&&i.props,ownerState:m,children:[g?i.props.children:i,d?w.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(jc.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),f.string]),component:f.elementType,fontSize:f.oneOfType([f.oneOf(["inherit","large","medium","small"]),f.string]),htmlColor:f.string,inheritViewBox:f.bool,shapeRendering:f.string,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),titleAccess:f.string,viewBox:f.string}),jc.muiName="SvgIcon";function Oi(e,t){function n(r,i){return w.jsx(jc,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=jc.muiName,_.memo(_.forwardRef(n))}function L0(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Nn(e){return e&&e.ownerDocument||document}function Ur(e){return Nn(e).defaultView||window}function F0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Nc(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:o}=_.useRef(t!==void 0),[a,s]=_.useState(n),l=o?t:a;if(process.env.NODE_ENV!=="production"){_.useEffect(()=>{o!==(t!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${i} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
118
118
|
`))},[i,r,t]);const{current:u}=_.useRef(n);_.useEffect(()=>{!o&&JSON.stringify(n)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
119
119
|
`))},[JSON.stringify(n)])}const c=_.useCallback(u=>{o||s(u)},[]);return[l,c]}function Hr(e){const t=_.useRef(e);return Sr(()=>{t.current=e}),_.useRef((...n)=>(0,t.current)(...n)).current}function zt(...e){const t=_.useRef(void 0),n=_.useCallback(r=>{const i=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const a=o,s=a(r);return typeof s=="function"?s:()=>{a(null)}}return o.current=r,()=>{o.current=null}});return()=>{i.forEach(o=>o?.())}},e);return _.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function ND(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function B0(e,t){if(!e)return t;function n(a,s){const l={};return Object.keys(s).forEach(c=>{ND(c,s[c])&&typeof a[c]=="function"&&(l[c]=(...u)=>{a[c](...u),s[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return a=>{const s=typeof t=="function"?t(a):t,l=typeof e=="function"?e({...a,...s}):e,c=oe(a?.className,s?.className,l?.className),u=n(l,s);return{...s,...l,...u,...!!c&&{className:c},...s?.style&&l?.style&&{style:{...s.style,...l.style}},...s?.sx&&l?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,i=n(e,r),o=oe(r?.className,e?.className);return{...t,...e,...i,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const DD=Oi(w.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),fs=Oi(w.jsx("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"}),"DescriptionOutlined"),ID=Oi(w.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),Vt=Oi(w.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNewOutlined");var z0={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},V0=R.createContext&&R.createContext(z0),RD=["attr","size","title"];function $D(e,t){if(e==null)return{};var n=LD(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function LD(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dc.apply(this,arguments)}function W0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ic(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W0(Object(n),!0).forEach(function(r){FD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FD(e,t,n){return t=BD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BD(e){var t=zD(e,"string");return typeof t=="symbol"?t:t+""}function zD(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U0(e){return e&&e.map((t,n)=>R.createElement(t.tag,Ic({key:n},t.attr),U0(t.child)))}function Ze(e){return t=>R.createElement(VD,Dc({attr:Ic({},e.attr)},t),U0(e.child))}function VD(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=$D(e,RD),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),R.createElement("svg",Dc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:Ic(Ic({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&R.createElement("title",null,o),e.children)};return V0!==void 0?R.createElement(V0.Consumer,null,n=>t(n)):t(z0)}function WD(e){return Ze({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 160c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-82.7L342.6 374.6c-12.5 12.5-32.8 12.5-45.3 0L192 269.3 54.6 406.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0L320 306.7 466.7 160 384 160z"},child:[]}]})(e)}function UD(e){return Ze({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"},child:[]}]})(e)}function HD(e){return Ze({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"},child:[]}]})(e)}function qD(e){return Ze({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"},child:[]}]})(e)}function KD(e){return Ze({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"},child:[]}]})(e)}function YD({title:e,description:t}){return w.jsxs("div",{className:"flex items-center justify-between px-6 my-6",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[24px] text-[#121212] font-semibold",children:e}),w.jsx("div",{className:"text-gray-500 text-[14px]",children:t})]}),w.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-[12px]",children:[w.jsxs("div",{className:"w-full sm:w-auto flex items-center justify-center gap-[8px] bg-white shadow-sm px-2 md:px-6 py-1 rounded-sm text-[#64748B] text-sm hover:bg-slate-50",children:[w.jsx(DD,{fontSize:"12"}),w.jsx("div",{className:" whitespace-nowrap",children:"Last 7 Days"}),w.jsx(qD,{fontSize:"12"})]}),w.jsxs("div",{className:"w-full flex items-center justify-center gap-[8px] bg-white text-[#884EA7] px-2 md:px-6 py-1 rounded-sm shadow-sm hover:bg-purple-50",children:[w.jsx("div",{className:"font-medium whitespace-nowrap",children:"Export Report"}),w.jsx(ID,{fontSize:"12"})]})]})]})}function H0(e){return Ze({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(e)}function GD(e){return Ze({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"},child:[]}]})(e)}function mp(e){return Ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M9 22v-4h6v4"},child:[]},{tag:"path",attr:{d:"M8 6h.01"},child:[]},{tag:"path",attr:{d:"M16 6h.01"},child:[]},{tag:"path",attr:{d:"M12 6h.01"},child:[]},{tag:"path",attr:{d:"M12 10h.01"},child:[]},{tag:"path",attr:{d:"M12 14h.01"},child:[]},{tag:"path",attr:{d:"M16 10h.01"},child:[]},{tag:"path",attr:{d:"M16 14h.01"},child:[]},{tag:"path",attr:{d:"M8 10h.01"},child:[]},{tag:"path",attr:{d:"M8 14h.01"},child:[]}]})(e)}function XD(e){return Ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2"},child:[]},{tag:"circle",attr:{cx:"7",cy:"17",r:"2"},child:[]},{tag:"path",attr:{d:"M9 17h6"},child:[]},{tag:"circle",attr:{cx:"17",cy:"17",r:"2"},child:[]}]})(e)}function q0(e){return Ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 4h3a2 2 0 0 1 2 2v14"},child:[]},{tag:"path",attr:{d:"M2 20h3"},child:[]},{tag:"path",attr:{d:"M13 20h9"},child:[]},{tag:"path",attr:{d:"M10 12v.01"},child:[]},{tag:"path",attr:{d:"M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z"},child:[]}]})(e)}function ZD(e){return Ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 5h6"},child:[]},{tag:"path",attr:{d:"M19 2v6"},child:[]},{tag:"path",attr:{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5"},child:[]},{tag:"path",attr:{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"},child:[]},{tag:"circle",attr:{cx:"9",cy:"9",r:"2"},child:[]}]})(e)}function K0(e){return Ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},child:[]}]})(e)}function Y0(e){return Ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z"},child:[]},{tag:"path",attr:{d:"M14 8H8"},child:[]},{tag:"path",attr:{d:"M16 12H8"},child:[]},{tag:"path",attr:{d:"M13 16H8"},child:[]}]})(e)}function G0(e){return Ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"},child:[]},{tag:"path",attr:{d:"m9 12 2 2 4-4"},child:[]}]})(e)}function gp(e){return Ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]},{tag:"path",attr:{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]},{tag:"path",attr:{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]}]})(e)}function JD(e){return Ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},child:[]}]})(e)}function X0(e){return Ze({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.03 2.59a1.501 1.501 0 0 1 1.94 0l7.5 6.363a1.5 1.5 0 0 1 .53 1.144V19.5a1.5 1.5 0 0 1-1.5 1.5h-5.75a.75.75 0 0 1-.75-.75V14h-2v6.25a.75.75 0 0 1-.75.75H4.5A1.5 1.5 0 0 1 3 19.5v-9.403c0-.44.194-.859.53-1.144ZM12 3.734l-7.5 6.363V19.5h5v-6.25a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 .75.75v6.25h5v-9.403Z"},child:[]}]})(e)}function Z0(e){return Ze({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3.5 8a5.5 5.5 0 1 1 8.596 4.547 9.005 9.005 0 0 1 5.9 8.18.751.751 0 0 1-1.5.045 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.499-.044 9.005 9.005 0 0 1 5.9-8.181A5.496 5.496 0 0 1 3.5 8ZM9 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm8.29 4c-.148 0-.292.01-.434.03a.75.75 0 1 1-.212-1.484 4.53 4.53 0 0 1 3.38 8.097 6.69 6.69 0 0 1 3.956 6.107.75.75 0 0 1-1.5 0 5.193 5.193 0 0 0-3.696-4.972l-.534-.16v-1.676l.41-.209A3.03 3.03 0 0 0 17.29 8Z"},child:[]}]})(e)}function J0(e){return Ze({attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 2 7 L 2 24 L 30 24 L 30 7 L 2 7 z M 6 9 L 26 9 C 26 10.105 26.895 11 28 11 L 28 20 C 26.895 20 26 20.895 26 22 L 6 22 C 6 20.895 5.105 20 4 20 L 4 11 C 5.105 11 6 10.105 6 9 z M 16 11 C 13.789 11 12 13.016 12 15.5 C 12 17.984 13.789 20 16 20 C 18.211 20 20 17.984 20 15.5 C 20 13.016 18.211 11 16 11 z M 16 13 C 17.102 13 18 14.121 18 15.5 C 18 16.879 17.102 18 16 18 C 14.898 18 14 16.879 14 15.5 C 14 14.121 14.898 13 16 13 z M 8.5 14 C 7.672 14 7 14.672 7 15.5 C 7 16.328 7.672 17 8.5 17 C 9.328 17 10 16.328 10 15.5 C 10 14.672 9.328 14 8.5 14 z M 23.5 14 C 22.672 14 22 14.672 22 15.5 C 22 16.328 22.672 17 23.5 17 C 24.328 17 25 16.328 25 15.5 C 25 14.672 24.328 14 23.5 14 z"},child:[]}]})(e)}const QD=[{name:"Overview",icon:X0},{name:"Community",icon:mp},{name:"Financials",icon:J0},{name:"Facilities",icon:q0},{name:"Gate & Security",icon:gp},{name:"Helpdesk",icon:GD},{name:"Engagement",icon:K0}];function eI(){const[e,t]=R.useState("Overview");return w.jsx("div",{className:"flex gap-[8px] p-3",children:QD.map(n=>{const r=n.icon,i=e===n.name;return w.jsxs("button",{onClick:()=>t(n.name),className:`flex items-center gap-[8px] rounded px-4 py-3 text-[14px] leading-[16px] font-medium transition
|
|
120
|
-
${i?"bg-[#FBF5FF] text-[#884EA7]":"bg-white text-[#64748B] hover:bg-gray-50"}`,children:[w.jsx(r,{className:"h-[15px] w-[15px] font-bold"}),n.name]},n.name)})})}const Q0=({color:e})=>w.jsx("span",{style:{display:"inline-block",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e,marginRight:"6px"}}),ps=({active:e,payload:t})=>!e||!t||!t.length?null:w.jsx("div",{className:"bg-[#121212] text-white !text-[12px] p-3 rounded-lg shadow-lg",children:t.map((n,r)=>w.jsxs("div",{className:"capitalize flex gap-[4px] items-center leading-relaxed",children:[n.color&&w.jsx(Q0,{color:n.color}),n.payload.color&&w.jsx(Q0,{color:n.payload.color}),w.jsx("div",{className:"min-w-[84px] text-[#D1D3D4]",children:n.name}),w.jsx("div",{className:"font-semibold",children:n.value})]},r))}),ex=({value:e})=>{const t=typeof e=="string"?parseFloat(e.replace("%","")):e??0,n=t>=0;return w.jsxs("div",{className:`w-fit p-1 rounded text-[10px] leading-[14px] font-medium flex items-center gap-1 ${n?"bg-[#F7FEFA] text-[#1FA05B]":"bg-[#FFF2F2] text-[#AB0000]"}`,children:[n?w.jsx(HD,{}):w.jsx(UD,{}),Math.abs(t).toFixed(1),"%"]})},Qi=({title:e,icon:t,period:n,actionButtons:r,children:i,footer:o,className:a="",childrenClassName:s,titleWeight:l})=>{const c=l==="semi-bold"?600:500;return w.jsxs("div",{className:`relative bg-white !border-[0.5px] !border-[#EBEBEB] !rounded-[12px] !shadow-[0_0_12px_0_#EAF2FF] p-[16px] flex flex-col gap-[24px] ${a}`,children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-[12px]",children:[t,w.jsx("div",{style:{fontWeight:c,fontSize:"16px",lineHeight:"20px"},className:"!my-0 !text-[16px] !leading-[20px] !text-[#121212]",children:e})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[r&&r,n&&w.jsx("div",{className:"!text-[12px] !leading-[16px] !text-[#64748B]",children:n})]})]}),w.jsx("div",{className:`flex-1 min-h-0 space-y-[24px] ${s}`,children:i}),o&&w.jsx("div",{className:"mt-3 pt-3 border-t border-gray-100 !text-[12px] text-[#64748B]",children:o})]})};function Si(e,t){sessionStorage.setItem(e,t),(e==="community_id"||e==="export")&&window.dispatchEvent(new StorageEvent("dashboard-update",{key:e}))}var vp={},yp={},tx;function tI(){return tx||(tx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(yp)),yp}var bp={},nx;function rx(){return nx||(nx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(bp)),bp}var xp={},ix;function ox(){return ix||(ix=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="string"||typeof n=="symbol"?n:Object.is(n?.valueOf?.(),-0)?"-0":String(n)}e.toKey=t})(xp)),xp}var wp={},ax;function Op(){return ax||(ax=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){const r=[],i=n.length;if(i===0)return r;let o=0,a="",s="",l=!1;for(n.charCodeAt(0)===46&&(r.push(""),o++);o<i;){const c=n[o];s?c==="\\"&&o+1<i?(o++,a+=n[o]):c===s?s="":a+=c:l?c==='"'||c==="'"?s=c:c==="]"?(l=!1,r.push(a),a=""):a+=c:c==="["?(l=!0,a&&(r.push(a),a="")):c==="."?a&&(r.push(a),a=""):a+=c,o++}return a&&r.push(a),r}e.toPath=t})(wp)),wp}var sx;function Sp(){return sx||(sx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tI(),n=rx(),r=ox(),i=Op();function o(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?n.isDeepKey(l)?o(s,i.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=r.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return a(s,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function a(s,l,c){if(l.length===0)return c;let u=s;for(let d=0;d<l.length;d++){if(u==null||t.isUnsafeProperty(l[d]))return c;u=u[l[d]]}return u===void 0?c:u}e.get=o})(vp)),vp}var Ep,lx;function nI(){return lx||(lx=1,Ep=Sp().get),Ep}var rI=nI();const eo=zr(rI);var Wt=e=>e===0?0:e>0?1:-1,Dn=e=>typeof e=="number"&&e!=+e,to=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,ge=e=>(typeof e=="number"||e instanceof Number)&&!Dn(e),_r=e=>ge(e)||typeof e=="string",iI=0,hs=e=>{var t=++iI;return"".concat(e||"").concat(t)},on=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ge(t)&&typeof t!="string")return r;var o;if(to(t)){if(n==null)return r;var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Dn(o)&&(o=r),i&&n!=null&&o>n&&(o=n),o},cx=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1};function Ot(e,t,n){return ge(e)&&ge(t)?e+n*(t-e):t}function ux(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):eo(r,t))===n)}var pt=e=>e===null||typeof e>"u",ms=e=>pt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),oI=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function _p(e){if(typeof e!="string")return!1;var t=oI;return t.includes(e)}var aI=["viewBox","children"],dx=["points","pathLength"],Pp={svg:aI,polygon:dx,polyline:dx},Cp=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(R.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{_p(i)&&(r[i]=(o=>n[i](n,o)))}),r},sI=(e,t,n)=>r=>(e(t,n,r),null),Rc=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var o=e[i];_p(i)&&typeof o=="function"&&(r||(r={}),r[i]=sI(o,t,n))}),r},lI=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function fx(e){if(typeof e!="string")return!1;var t=lI;return t.includes(e)}function Pr(e){var t=Object.entries(e).filter(n=>{var[r]=n;return fx(r)});return Object.fromEntries(t)}var px=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",hx=null,Tp=null,mx=e=>{if(e===hx&&Array.isArray(Tp))return Tp;var t=[];return R.Children.forEach(e,n=>{pt(n)||(yi.isFragment(n)?t=t.concat(mx(n.props.children)):t.push(n))}),Tp=t,hx=e,t};function Ap(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>px(i)):r=[px(t)],mx(e).forEach(i=>{var o=eo(i,"type.displayName")||eo(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}var gx=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,cI=(e,t,n,r)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var o=(i=r&&Pp?.[r])!==null&&i!==void 0?i:[],a=t.startsWith("data-"),s=typeof e!="function"&&(!!r&&o.includes(t)||fx(t)),l=!!n&&_p(t);return a||s||l},yt=(e,t,n)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(R.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var i={};return Object.keys(r).forEach(o=>{var a;cI((a=r)===null||a===void 0?void 0:a[o],o,t,n)&&(i[o]=r[o])}),i},uI=["children","width","height","viewBox","className","style","title","desc"];function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kp.apply(null,arguments)}function dI(e,t){if(e==null)return{};var n,r,i=fI(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var vx=R.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:o,className:a,style:s,title:l,desc:c}=e,u=dI(e,uI),d=o||{width:r,height:i,x:0,y:0},p=oe("recharts-surface",a);return _.createElement("svg",kp({},yt(u,!0,"svg"),{className:p,width:r,height:i,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),_.createElement("title",null,l),_.createElement("desc",null,c),n)}),pI=["children","className"];function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mp.apply(null,arguments)}function hI(e,t){if(e==null)return{};var n,r,i=mI(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function mI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Zt=_.forwardRef((e,t)=>{var{children:n,className:r}=e,i=hI(e,pI),o=oe("recharts-layer",r);return _.createElement("g",Mp({className:o},yt(i,!0),{ref:t}),n)}),gI=R.createContext(null);function at(e){return function(){return e}}const yx=Math.cos,$c=Math.sin,fr=Math.sqrt,Lc=Math.PI,Fc=2*Lc,jp=Math.PI,Np=2*jp,no=1e-6,vI=Np-no;function bx(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function yI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return bx;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class bI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?bx:yI(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-t,d=s-n,p=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>no)if(!(Math.abs(d*l-c*u)>no)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,g=i-s,m=l*l+c*c,v=h*h+g*g,y=Math.sqrt(m),S=Math.sqrt(p),x=o*Math.tan((jp-Math.acos((m+p-v)/(2*y*S)))/2),b=x/S,O=x/y;Math.abs(b-1)>no&&this._append`L${t+b*u},${n+b*d}`,this._append`A${o},${o},0,0,${+(d*h>u*g)},${this._x1=t+O*l},${this._y1=n+O*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,p=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>no||Math.abs(this._y1-u)>no)&&this._append`L${c},${u}`,r&&(p<0&&(p=p%Np+Np),p>vI?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:p>no&&this._append`A${r},${r},0,${+(p>=jp)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Dp(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new bI(t)}function Ip(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xx(e){this._context=e}xx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Bc(e){return new xx(e)}function wx(e){return e[0]}function Ox(e){return e[1]}function Sx(e,t){var n=at(!0),r=null,i=Bc,o=null,a=Dp(s);e=typeof e=="function"?e:e===void 0?wx:at(e),t=typeof t=="function"?t:t===void 0?Ox:at(t);function s(l){var c,u=(l=Ip(l)).length,d,p=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:at(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:at(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:at(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function zc(e,t,n){var r=null,i=at(!0),o=null,a=Bc,s=null,l=Dp(c);e=typeof e=="function"?e:e===void 0?wx:at(+e),t=typeof t=="function"?t:at(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Ox:at(+n);function c(d){var p,h,g,m=(d=Ip(d)).length,v,y=!1,S,x=new Array(m),b=new Array(m);for(o==null&&(s=a(S=l())),p=0;p<=m;++p){if(!(p<m&&i(v=d[p],p,d))===y)if(y=!y)h=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=p-1;g>=h;--g)s.point(x[g],b[g]);s.lineEnd(),s.areaEnd()}y&&(x[p]=+e(v,p,d),b[p]=+t(v,p,d),s.point(r?+r(v,p,d):x[p],n?+n(v,p,d):b[p]))}if(S)return s=null,S+""||null}function u(){return Sx().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:at(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:at(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:at(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}class Ex{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function xI(e){return new Ex(e,!0)}function wI(e){return new Ex(e,!1)}const Rp={draw(e,t){const n=fr(t/Lc);e.moveTo(n,0),e.arc(0,0,n,0,Fc)}},OI={draw(e,t){const n=fr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},_x=fr(1/3),SI=_x*2,EI={draw(e,t){const n=fr(t/SI),r=n*_x;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},_I={draw(e,t){const n=fr(t),r=-n/2;e.rect(r,r,n,n)}},PI=.8908130915292852,Px=$c(Lc/10)/$c(7*Lc/10),CI=$c(Fc/10)*Px,TI=-yx(Fc/10)*Px,AI={draw(e,t){const n=fr(t*PI),r=CI*n,i=TI*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Fc*o/5,s=yx(a),l=$c(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},$p=fr(3),kI={draw(e,t){const n=-fr(t/($p*3));e.moveTo(0,n*2),e.lineTo(-$p*n,-n),e.lineTo($p*n,-n),e.closePath()}},Yn=-.5,Gn=fr(3)/2,Lp=1/fr(12),MI=(Lp/2+1)*3,jI={draw(e,t){const n=fr(t/MI),r=n/2,i=n*Lp,o=r,a=n*Lp+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Yn*r-Gn*i,Gn*r+Yn*i),e.lineTo(Yn*o-Gn*a,Gn*o+Yn*a),e.lineTo(Yn*s-Gn*l,Gn*s+Yn*l),e.lineTo(Yn*r+Gn*i,Yn*i-Gn*r),e.lineTo(Yn*o+Gn*a,Yn*a-Gn*o),e.lineTo(Yn*s+Gn*l,Yn*l-Gn*s),e.closePath()}};function NI(e,t){let n=null,r=Dp(i);e=typeof e=="function"?e:at(e||Rp),t=typeof t=="function"?t:at(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:at(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:at(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Vc(){}function Wc(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Cx(e){this._context=e}Cx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Wc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Wc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DI(e){return new Cx(e)}function Tx(e){this._context=e}Tx.prototype={areaStart:Vc,areaEnd:Vc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Wc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function II(e){return new Tx(e)}function Ax(e){this._context=e}Ax.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Wc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RI(e){return new Ax(e)}function kx(e){this._context=e}kx.prototype={areaStart:Vc,areaEnd:Vc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function $I(e){return new kx(e)}function Mx(e){return e<0?-1:1}function jx(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Mx(o)+Mx(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Nx(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Fp(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Uc(e){this._context=e}Uc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Fp(this,this._t0,Nx(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Fp(this,Nx(this,n=jx(this,e,t)),n);break;default:Fp(this,this._t0,n=jx(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Dx(e){this._context=new Ix(e)}(Dx.prototype=Object.create(Uc.prototype)).point=function(e,t){Uc.prototype.point.call(this,t,e)};function Ix(e){this._context=e}Ix.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function LI(e){return new Uc(e)}function FI(e){return new Dx(e)}function Rx(e){this._context=e}Rx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=$x(e),i=$x(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function $x(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function BI(e){return new Rx(e)}function Hc(e,t){this._context=e,this._t=t}Hc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function zI(e){return new Hc(e,.5)}function VI(e){return new Hc(e,0)}function WI(e){return new Hc(e,1)}function na(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Bp(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function UI(e,t){return e[t]}function HI(e){const t=[];return t.key=e,t}function qI(){var e=at([]),t=Bp,n=na,r=UI;function i(o){var a=Array.from(e.apply(this,arguments),HI),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=Ip(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:at(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:at(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?Bp:typeof o=="function"?o:at(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??na,i):n},i}function KI(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}na(e,t)}}function YI(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}na(e,t)}}function GI(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,p=u[r-1][1]||0,h=(d-p)/2,g=0;g<s;++g){var m=e[t[g]],v=m[r][1]||0,y=m[r-1][1]||0;h+=v-y}l+=d,c+=h*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,na(e,t)}}var XI=["type","size","sizeType"];function zp(){return zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zp.apply(null,arguments)}function Lx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lx(Object(n),!0).forEach(function(r){ZI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZI(e,t,n){return(t=JI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JI(e){var t=QI(e,"string");return typeof t=="symbol"?t:t+""}function QI(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eR(e,t){if(e==null)return{};var n,r,i=tR(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Bx={symbolCircle:Rp,symbolCross:OI,symbolDiamond:EI,symbolSquare:_I,symbolStar:AI,symbolTriangle:kI,symbolWye:jI},nR=Math.PI/180,rR=e=>{var t="symbol".concat(ms(e));return Bx[t]||Rp},iR=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*nR;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},oR=(e,t)=>{Bx["symbol".concat(ms(e))]=t},zx=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=eR(e,XI),o=Fx(Fx({},i),{},{type:t,size:n,sizeType:r}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var p=rR(a),h=NI().type(p).size(iR(n,r,a));return h()},{className:l,cx:c,cy:u}=o,d=yt(o,!0);return c===+c&&u===+u&&n===+n?_.createElement("path",zp({},d,{className:oe("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};zx.registerSymbol=oR;var Vp={},Wp={},Vx;function aR(){return Vx||(Vx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o<n.length;o++){const a=n[o],s=r(a);i.has(s)||i.set(s,a)}return Array.from(i.values())}e.uniqBy=t})(Wp)),Wp}var Up={},Wx;function Ux(){return Wx||(Wx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(Up)),Up}var Hp={},qp={},Kp={},Hx;function sR(){return Hx||(Hx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(Kp)),Kp}var qx;function Yp(){return qx||(qx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sR();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(qp)),qp}var Gp={},Kx;function lR(){return Kx||(Kx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(Gp)),Gp}var Yx;function cR(){return Yx||(Yx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Yp(),n=lR();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(Hp)),Hp}var Xp={},Zp={},Gx;function uR(){return Gx||(Gx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Sp();function n(r){return function(i){return t.get(i,r)}}e.property=n})(Zp)),Zp}var Jp={},Qp={},eh={},th={},Xx;function Zx(){return Xx||(Xx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(th)),th}var nh={},Jx;function Qx(){return Jx||(Jx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(nh)),nh}var rh={},e1;function t1(){return e1||(e1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t})(rh)),rh}var n1;function dR(){return n1||(n1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ih(),n=Zx(),r=Qx(),i=t1();function o(d,p,h){return typeof h!="function"?t.isMatch(d,p):a(d,p,function g(m,v,y,S,x,b){const O=h(m,v,y,S,x,b);return O!==void 0?!!O:a(m,v,g,b)},new Map)}function a(d,p,h,g){if(p===d)return!0;switch(typeof p){case"object":return s(d,p,h,g);case"function":return Object.keys(p).length>0?a(d,{...p},h,g):i.eq(d,p);default:return n.isObject(d)?typeof p=="string"?p==="":!0:i.eq(d,p)}}function s(d,p,h,g){if(p==null)return!0;if(Array.isArray(p))return c(d,p,h,g);if(p instanceof Map)return l(d,p,h,g);if(p instanceof Set)return u(d,p,h,g);const m=Object.keys(p);if(d==null)return m.length===0;if(m.length===0)return!0;if(g&&g.has(p))return g.get(p)===d;g&&g.set(p,d);try{for(let v=0;v<m.length;v++){const y=m[v];if(!r.isPrimitive(d)&&!(y in d)||p[y]===void 0&&d[y]!==void 0||p[y]===null&&d[y]!==null||!h(d[y],p[y],y,d,p,g))return!1}return!0}finally{g&&g.delete(p)}}function l(d,p,h,g){if(p.size===0)return!0;if(!(d instanceof Map))return!1;for(const[m,v]of p.entries()){const y=d.get(m);if(h(y,v,m,d,p,g)===!1)return!1}return!0}function c(d,p,h,g){if(p.length===0)return!0;if(!Array.isArray(d))return!1;const m=new Set;for(let v=0;v<p.length;v++){const y=p[v];let S=!1;for(let x=0;x<d.length;x++){if(m.has(x))continue;const b=d[x];let O=!1;if(h(b,y,v,d,p,g)&&(O=!0),O){m.add(x),S=!0;break}}if(!S)return!1}return!0}function u(d,p,h,g){return p.size===0?!0:d instanceof Set?c([...d],[...p],h,g):!1}e.isMatchWith=o,e.isSetMatch=u})(eh)),eh}var r1;function ih(){return r1||(r1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dR();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(Qp)),Qp}var oh={},ah={},sh={},i1;function fR(){return i1||(i1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(sh)),sh}var lh={},o1;function a1(){return o1||(o1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(lh)),lh}var ch={},s1;function l1(){return s1||(s1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",a="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",d="[object Function]",p="[object ArrayBuffer]",h="[object Object]",g="[object Error]",m="[object DataView]",v="[object Uint8Array]",y="[object Uint8ClampedArray]",S="[object Uint16Array]",x="[object Uint32Array]",b="[object BigUint64Array]",O="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",T="[object BigInt64Array]",k="[object Float32Array]",D="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=p,e.arrayTag=u,e.bigInt64ArrayTag=T,e.bigUint64ArrayTag=b,e.booleanTag=i,e.dataViewTag=m,e.dateTag=s,e.errorTag=g,e.float32ArrayTag=k,e.float64ArrayTag=D,e.functionTag=d,e.int16ArrayTag=E,e.int32ArrayTag=C,e.int8ArrayTag=O,e.mapTag=l,e.numberTag=r,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=n,e.symbolTag=a,e.uint16ArrayTag=S,e.uint32ArrayTag=x,e.uint8ArrayTag=v,e.uint8ClampedArrayTag=y})(ch)),ch}var uh={},c1;function pR(){return c1||(c1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(uh)),uh}var u1;function d1(){return u1||(u1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fR(),n=a1(),r=l1(),i=Qx(),o=pR();function a(u,d){return s(u,void 0,u,new Map,d)}function s(u,d,p,h=new Map,g=void 0){const m=g?.(u,d,p,h);if(m!==void 0)return m;if(i.isPrimitive(u))return u;if(h.has(u))return h.get(u);if(Array.isArray(u)){const v=new Array(u.length);h.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,p,h,g);return Object.hasOwn(u,"index")&&(v.index=u.index),Object.hasOwn(u,"input")&&(v.input=u.input),v}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const v=new RegExp(u.source,u.flags);return v.lastIndex=u.lastIndex,v}if(u instanceof Map){const v=new Map;h.set(u,v);for(const[y,S]of u)v.set(y,s(S,y,p,h,g));return v}if(u instanceof Set){const v=new Set;h.set(u,v);for(const y of u)v.add(s(y,void 0,p,h,g));return v}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(o.isTypedArray(u)){const v=new(Object.getPrototypeOf(u)).constructor(u.length);h.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,p,h,g);return v}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const v=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return h.set(u,v),l(v,u,p,h,g),v}if(typeof File<"u"&&u instanceof File){const v=new File([u],u.name,{type:u.type});return h.set(u,v),l(v,u,p,h,g),v}if(u instanceof Blob){const v=new Blob([u],{type:u.type});return h.set(u,v),l(v,u,p,h,g),v}if(u instanceof Error){const v=new u.constructor;return h.set(u,v),v.message=u.message,v.name=u.name,v.stack=u.stack,v.cause=u.cause,l(v,u,p,h,g),v}if(typeof u=="object"&&c(u)){const v=Object.create(Object.getPrototypeOf(u));return h.set(u,v),l(v,u,p,h,g),v}return u}function l(u,d,p=u,h,g){const m=[...Object.keys(d),...t.getSymbols(d)];for(let v=0;v<m.length;v++){const y=m[v],S=Object.getOwnPropertyDescriptor(u,y);(S==null||S.writable)&&(u[y]=s(d[y],y,p,h,g))}}function c(u){switch(n.getTag(u)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=l})(ah)),ah}var f1;function hR(){return f1||(f1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=d1();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(oh)),oh}var p1;function mR(){return p1||(p1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ih(),n=hR();function r(i){return i=n.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=r})(Jp)),Jp}var dh={},fh={},ph={},h1;function gR(){return h1||(h1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=d1(),n=l1();function r(i,o){return t.cloneDeepWith(i,(a,s,l,c)=>{const u=o?.(a,s,l,c);if(u!==void 0)return u;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new i.constructor(i?.valueOf());return t.copyProperties(d,i),d}case n.argumentsTag:{const d={};return t.copyProperties(d,i),d.length=i.length,d[Symbol.iterator]=i[Symbol.iterator],d}default:return}})}e.cloneDeepWith=r})(ph)),ph}var m1;function vR(){return m1||(m1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gR();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(fh)),fh}var hh={},mh={},g1;function v1(){return g1||(g1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(mh)),mh}var gh={},y1;function yR(){return y1||(y1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=a1();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(gh)),gh}var b1;function bR(){return b1||(b1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rx(),n=v1(),r=yR(),i=Op();function o(a,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&a?.[s]==null?l=i.toPath(s):l=[s],l.length===0)return!1;let c=a;for(let u=0;u<l.length;u++){const d=l[u];if((c==null||!Object.hasOwn(c,d))&&!((Array.isArray(c)||r.isArguments(c))&&n.isIndex(d)&&d<c.length))return!1;c=c[d]}return!0}e.has=o})(hh)),hh}var x1;function xR(){return x1||(x1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ih(),n=ox(),r=vR(),i=Sp(),o=bR();function a(s,l){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=n.toKey(s);break}}return l=r.cloneDeep(l),function(c){const u=i.get(c,s);return u===void 0?o.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=a})(dh)),dh}var w1;function wR(){return w1||(w1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ux(),n=uR(),r=mR(),i=xR();function o(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?i.matchesProperty(a[0],a[1]):r.matches(a);case"string":case"symbol":case"number":return n.property(a)}}e.iteratee=o})(Xp)),Xp}var O1;function OR(){return O1||(O1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=aR(),n=Ux(),r=cR(),i=wR();function o(a,s=n.identity){return r.isArrayLikeObject(a)?t.uniqBy(Array.from(a),i.iteratee(s)):[]}e.uniqBy=o})(Vp)),Vp}var vh,S1;function SR(){return S1||(S1=1,vh=OR().uniqBy),vh}var ER=SR();const E1=zr(ER);function _R(e,t,n){return t===!0?E1(e,n):typeof t=="function"?E1(e,t):e}var qc={exports:{}},yh={},Kc={exports:{}},bh={};/**
|
|
120
|
+
${i?"bg-[#FBF5FF] text-[#884EA7]":"bg-white text-[#64748B] hover:bg-gray-50"}`,children:[w.jsx(r,{className:"h-[15px] w-[15px] font-bold"}),n.name]},n.name)})})}const Q0=({color:e})=>w.jsx("span",{style:{display:"inline-block",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e,marginRight:"6px"}}),ps=({active:e,payload:t})=>!e||!t||!t.length?null:w.jsx("div",{className:"bg-[#121212] text-white !text-[12px] p-3 rounded-lg shadow-lg",children:t.map((n,r)=>w.jsxs("div",{className:"capitalize flex gap-[4px] items-center leading-relaxed",children:[n.color&&w.jsx(Q0,{color:n.color}),n.payload.color&&w.jsx(Q0,{color:n.payload.color}),w.jsx("div",{className:"min-w-[84px] text-[#D1D3D4]",children:n.name}),w.jsx("div",{className:"font-semibold",children:n.value})]},r))}),ex=({value:e})=>{const t=typeof e=="string"?parseFloat(e.replace("%","")):e??0,n=t>=0;return w.jsxs("div",{className:`w-fit p-1 rounded text-[10px] leading-[14px] font-medium flex items-center gap-1 ${n?"bg-[#F7FEFA] text-[#1FA05B]":"bg-[#FFF2F2] text-[#AB0000]"}`,children:[n?w.jsx(HD,{}):w.jsx(UD,{}),Math.abs(t).toFixed(1),"%"]})},Qi=({title:e,icon:t,period:n,actionButtons:r,children:i,footer:o,className:a="",childrenClassName:s,titleWeight:l})=>{const c=l==="semi-bold"?600:500;return w.jsxs("div",{className:`relative bg-white !border-[0.5px] !border-[#EBEBEB] !rounded-[12px] !shadow-[0_0_12px_0_#EAF2FF] p-[16px] flex flex-col gap-[24px] ${a}`,children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-[12px]",children:[t,w.jsx("div",{style:{fontWeight:c,fontSize:"16px",lineHeight:"20px"},className:"!my-0 !text-[16px] !leading-[20px] !text-[#121212]",children:e})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[r&&r,n&&w.jsx("div",{className:"!text-[12px] !leading-[16px] !text-[#64748B]",children:n})]})]}),w.jsx("div",{className:`flex-1 min-h-0 space-y-[24px] ${s}`,children:i}),o&&w.jsx("div",{className:"mt-3 pt-3 border-t border-gray-100 !text-[12px] text-[#64748B]",children:o})]})};function Si(e,t){sessionStorage.setItem(e,t),(e==="community_id"||e==="export"||e==="widget_id")&&window.dispatchEvent(new StorageEvent("dashboard-update",{key:e}))}var vp={},yp={},tx;function tI(){return tx||(tx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(yp)),yp}var bp={},nx;function rx(){return nx||(nx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(bp)),bp}var xp={},ix;function ox(){return ix||(ix=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="string"||typeof n=="symbol"?n:Object.is(n?.valueOf?.(),-0)?"-0":String(n)}e.toKey=t})(xp)),xp}var wp={},ax;function Op(){return ax||(ax=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){const r=[],i=n.length;if(i===0)return r;let o=0,a="",s="",l=!1;for(n.charCodeAt(0)===46&&(r.push(""),o++);o<i;){const c=n[o];s?c==="\\"&&o+1<i?(o++,a+=n[o]):c===s?s="":a+=c:l?c==='"'||c==="'"?s=c:c==="]"?(l=!1,r.push(a),a=""):a+=c:c==="["?(l=!0,a&&(r.push(a),a="")):c==="."?a&&(r.push(a),a=""):a+=c,o++}return a&&r.push(a),r}e.toPath=t})(wp)),wp}var sx;function Sp(){return sx||(sx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tI(),n=rx(),r=ox(),i=Op();function o(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?n.isDeepKey(l)?o(s,i.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=r.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return a(s,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function a(s,l,c){if(l.length===0)return c;let u=s;for(let d=0;d<l.length;d++){if(u==null||t.isUnsafeProperty(l[d]))return c;u=u[l[d]]}return u===void 0?c:u}e.get=o})(vp)),vp}var Ep,lx;function nI(){return lx||(lx=1,Ep=Sp().get),Ep}var rI=nI();const eo=zr(rI);var Wt=e=>e===0?0:e>0?1:-1,Dn=e=>typeof e=="number"&&e!=+e,to=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,ge=e=>(typeof e=="number"||e instanceof Number)&&!Dn(e),_r=e=>ge(e)||typeof e=="string",iI=0,hs=e=>{var t=++iI;return"".concat(e||"").concat(t)},on=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ge(t)&&typeof t!="string")return r;var o;if(to(t)){if(n==null)return r;var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Dn(o)&&(o=r),i&&n!=null&&o>n&&(o=n),o},cx=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1};function Ot(e,t,n){return ge(e)&&ge(t)?e+n*(t-e):t}function ux(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):eo(r,t))===n)}var pt=e=>e===null||typeof e>"u",ms=e=>pt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),oI=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function _p(e){if(typeof e!="string")return!1;var t=oI;return t.includes(e)}var aI=["viewBox","children"],dx=["points","pathLength"],Pp={svg:aI,polygon:dx,polyline:dx},Cp=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(R.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{_p(i)&&(r[i]=(o=>n[i](n,o)))}),r},sI=(e,t,n)=>r=>(e(t,n,r),null),Rc=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var o=e[i];_p(i)&&typeof o=="function"&&(r||(r={}),r[i]=sI(o,t,n))}),r},lI=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function fx(e){if(typeof e!="string")return!1;var t=lI;return t.includes(e)}function Pr(e){var t=Object.entries(e).filter(n=>{var[r]=n;return fx(r)});return Object.fromEntries(t)}var px=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",hx=null,Tp=null,mx=e=>{if(e===hx&&Array.isArray(Tp))return Tp;var t=[];return R.Children.forEach(e,n=>{pt(n)||(yi.isFragment(n)?t=t.concat(mx(n.props.children)):t.push(n))}),Tp=t,hx=e,t};function Ap(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>px(i)):r=[px(t)],mx(e).forEach(i=>{var o=eo(i,"type.displayName")||eo(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}var gx=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,cI=(e,t,n,r)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var o=(i=r&&Pp?.[r])!==null&&i!==void 0?i:[],a=t.startsWith("data-"),s=typeof e!="function"&&(!!r&&o.includes(t)||fx(t)),l=!!n&&_p(t);return a||s||l},yt=(e,t,n)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(R.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var i={};return Object.keys(r).forEach(o=>{var a;cI((a=r)===null||a===void 0?void 0:a[o],o,t,n)&&(i[o]=r[o])}),i},uI=["children","width","height","viewBox","className","style","title","desc"];function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kp.apply(null,arguments)}function dI(e,t){if(e==null)return{};var n,r,i=fI(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var vx=R.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:o,className:a,style:s,title:l,desc:c}=e,u=dI(e,uI),d=o||{width:r,height:i,x:0,y:0},p=oe("recharts-surface",a);return _.createElement("svg",kp({},yt(u,!0,"svg"),{className:p,width:r,height:i,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),_.createElement("title",null,l),_.createElement("desc",null,c),n)}),pI=["children","className"];function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mp.apply(null,arguments)}function hI(e,t){if(e==null)return{};var n,r,i=mI(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function mI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Zt=_.forwardRef((e,t)=>{var{children:n,className:r}=e,i=hI(e,pI),o=oe("recharts-layer",r);return _.createElement("g",Mp({className:o},yt(i,!0),{ref:t}),n)}),gI=R.createContext(null);function at(e){return function(){return e}}const yx=Math.cos,$c=Math.sin,fr=Math.sqrt,Lc=Math.PI,Fc=2*Lc,jp=Math.PI,Np=2*jp,no=1e-6,vI=Np-no;function bx(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function yI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return bx;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class bI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?bx:yI(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-t,d=s-n,p=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>no)if(!(Math.abs(d*l-c*u)>no)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,g=i-s,m=l*l+c*c,v=h*h+g*g,y=Math.sqrt(m),S=Math.sqrt(p),x=o*Math.tan((jp-Math.acos((m+p-v)/(2*y*S)))/2),b=x/S,O=x/y;Math.abs(b-1)>no&&this._append`L${t+b*u},${n+b*d}`,this._append`A${o},${o},0,0,${+(d*h>u*g)},${this._x1=t+O*l},${this._y1=n+O*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,p=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>no||Math.abs(this._y1-u)>no)&&this._append`L${c},${u}`,r&&(p<0&&(p=p%Np+Np),p>vI?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:p>no&&this._append`A${r},${r},0,${+(p>=jp)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Dp(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new bI(t)}function Ip(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xx(e){this._context=e}xx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Bc(e){return new xx(e)}function wx(e){return e[0]}function Ox(e){return e[1]}function Sx(e,t){var n=at(!0),r=null,i=Bc,o=null,a=Dp(s);e=typeof e=="function"?e:e===void 0?wx:at(e),t=typeof t=="function"?t:t===void 0?Ox:at(t);function s(l){var c,u=(l=Ip(l)).length,d,p=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:at(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:at(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:at(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function zc(e,t,n){var r=null,i=at(!0),o=null,a=Bc,s=null,l=Dp(c);e=typeof e=="function"?e:e===void 0?wx:at(+e),t=typeof t=="function"?t:at(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Ox:at(+n);function c(d){var p,h,g,m=(d=Ip(d)).length,v,y=!1,S,x=new Array(m),b=new Array(m);for(o==null&&(s=a(S=l())),p=0;p<=m;++p){if(!(p<m&&i(v=d[p],p,d))===y)if(y=!y)h=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=p-1;g>=h;--g)s.point(x[g],b[g]);s.lineEnd(),s.areaEnd()}y&&(x[p]=+e(v,p,d),b[p]=+t(v,p,d),s.point(r?+r(v,p,d):x[p],n?+n(v,p,d):b[p]))}if(S)return s=null,S+""||null}function u(){return Sx().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:at(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:at(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:at(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}class Ex{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function xI(e){return new Ex(e,!0)}function wI(e){return new Ex(e,!1)}const Rp={draw(e,t){const n=fr(t/Lc);e.moveTo(n,0),e.arc(0,0,n,0,Fc)}},OI={draw(e,t){const n=fr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},_x=fr(1/3),SI=_x*2,EI={draw(e,t){const n=fr(t/SI),r=n*_x;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},_I={draw(e,t){const n=fr(t),r=-n/2;e.rect(r,r,n,n)}},PI=.8908130915292852,Px=$c(Lc/10)/$c(7*Lc/10),CI=$c(Fc/10)*Px,TI=-yx(Fc/10)*Px,AI={draw(e,t){const n=fr(t*PI),r=CI*n,i=TI*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Fc*o/5,s=yx(a),l=$c(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},$p=fr(3),kI={draw(e,t){const n=-fr(t/($p*3));e.moveTo(0,n*2),e.lineTo(-$p*n,-n),e.lineTo($p*n,-n),e.closePath()}},Yn=-.5,Gn=fr(3)/2,Lp=1/fr(12),MI=(Lp/2+1)*3,jI={draw(e,t){const n=fr(t/MI),r=n/2,i=n*Lp,o=r,a=n*Lp+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Yn*r-Gn*i,Gn*r+Yn*i),e.lineTo(Yn*o-Gn*a,Gn*o+Yn*a),e.lineTo(Yn*s-Gn*l,Gn*s+Yn*l),e.lineTo(Yn*r+Gn*i,Yn*i-Gn*r),e.lineTo(Yn*o+Gn*a,Yn*a-Gn*o),e.lineTo(Yn*s+Gn*l,Yn*l-Gn*s),e.closePath()}};function NI(e,t){let n=null,r=Dp(i);e=typeof e=="function"?e:at(e||Rp),t=typeof t=="function"?t:at(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:at(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:at(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Vc(){}function Wc(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Cx(e){this._context=e}Cx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Wc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Wc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DI(e){return new Cx(e)}function Tx(e){this._context=e}Tx.prototype={areaStart:Vc,areaEnd:Vc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Wc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function II(e){return new Tx(e)}function Ax(e){this._context=e}Ax.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Wc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RI(e){return new Ax(e)}function kx(e){this._context=e}kx.prototype={areaStart:Vc,areaEnd:Vc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function $I(e){return new kx(e)}function Mx(e){return e<0?-1:1}function jx(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Mx(o)+Mx(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Nx(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Fp(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Uc(e){this._context=e}Uc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Fp(this,this._t0,Nx(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Fp(this,Nx(this,n=jx(this,e,t)),n);break;default:Fp(this,this._t0,n=jx(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Dx(e){this._context=new Ix(e)}(Dx.prototype=Object.create(Uc.prototype)).point=function(e,t){Uc.prototype.point.call(this,t,e)};function Ix(e){this._context=e}Ix.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function LI(e){return new Uc(e)}function FI(e){return new Dx(e)}function Rx(e){this._context=e}Rx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=$x(e),i=$x(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function $x(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function BI(e){return new Rx(e)}function Hc(e,t){this._context=e,this._t=t}Hc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function zI(e){return new Hc(e,.5)}function VI(e){return new Hc(e,0)}function WI(e){return new Hc(e,1)}function na(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Bp(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function UI(e,t){return e[t]}function HI(e){const t=[];return t.key=e,t}function qI(){var e=at([]),t=Bp,n=na,r=UI;function i(o){var a=Array.from(e.apply(this,arguments),HI),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=Ip(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:at(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:at(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?Bp:typeof o=="function"?o:at(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??na,i):n},i}function KI(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}na(e,t)}}function YI(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}na(e,t)}}function GI(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,p=u[r-1][1]||0,h=(d-p)/2,g=0;g<s;++g){var m=e[t[g]],v=m[r][1]||0,y=m[r-1][1]||0;h+=v-y}l+=d,c+=h*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,na(e,t)}}var XI=["type","size","sizeType"];function zp(){return zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zp.apply(null,arguments)}function Lx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lx(Object(n),!0).forEach(function(r){ZI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZI(e,t,n){return(t=JI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JI(e){var t=QI(e,"string");return typeof t=="symbol"?t:t+""}function QI(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eR(e,t){if(e==null)return{};var n,r,i=tR(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Bx={symbolCircle:Rp,symbolCross:OI,symbolDiamond:EI,symbolSquare:_I,symbolStar:AI,symbolTriangle:kI,symbolWye:jI},nR=Math.PI/180,rR=e=>{var t="symbol".concat(ms(e));return Bx[t]||Rp},iR=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*nR;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},oR=(e,t)=>{Bx["symbol".concat(ms(e))]=t},zx=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=eR(e,XI),o=Fx(Fx({},i),{},{type:t,size:n,sizeType:r}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var p=rR(a),h=NI().type(p).size(iR(n,r,a));return h()},{className:l,cx:c,cy:u}=o,d=yt(o,!0);return c===+c&&u===+u&&n===+n?_.createElement("path",zp({},d,{className:oe("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};zx.registerSymbol=oR;var Vp={},Wp={},Vx;function aR(){return Vx||(Vx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o<n.length;o++){const a=n[o],s=r(a);i.has(s)||i.set(s,a)}return Array.from(i.values())}e.uniqBy=t})(Wp)),Wp}var Up={},Wx;function Ux(){return Wx||(Wx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(Up)),Up}var Hp={},qp={},Kp={},Hx;function sR(){return Hx||(Hx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(Kp)),Kp}var qx;function Yp(){return qx||(qx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sR();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(qp)),qp}var Gp={},Kx;function lR(){return Kx||(Kx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(Gp)),Gp}var Yx;function cR(){return Yx||(Yx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Yp(),n=lR();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(Hp)),Hp}var Xp={},Zp={},Gx;function uR(){return Gx||(Gx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Sp();function n(r){return function(i){return t.get(i,r)}}e.property=n})(Zp)),Zp}var Jp={},Qp={},eh={},th={},Xx;function Zx(){return Xx||(Xx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(th)),th}var nh={},Jx;function Qx(){return Jx||(Jx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(nh)),nh}var rh={},e1;function t1(){return e1||(e1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t})(rh)),rh}var n1;function dR(){return n1||(n1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ih(),n=Zx(),r=Qx(),i=t1();function o(d,p,h){return typeof h!="function"?t.isMatch(d,p):a(d,p,function g(m,v,y,S,x,b){const O=h(m,v,y,S,x,b);return O!==void 0?!!O:a(m,v,g,b)},new Map)}function a(d,p,h,g){if(p===d)return!0;switch(typeof p){case"object":return s(d,p,h,g);case"function":return Object.keys(p).length>0?a(d,{...p},h,g):i.eq(d,p);default:return n.isObject(d)?typeof p=="string"?p==="":!0:i.eq(d,p)}}function s(d,p,h,g){if(p==null)return!0;if(Array.isArray(p))return c(d,p,h,g);if(p instanceof Map)return l(d,p,h,g);if(p instanceof Set)return u(d,p,h,g);const m=Object.keys(p);if(d==null)return m.length===0;if(m.length===0)return!0;if(g&&g.has(p))return g.get(p)===d;g&&g.set(p,d);try{for(let v=0;v<m.length;v++){const y=m[v];if(!r.isPrimitive(d)&&!(y in d)||p[y]===void 0&&d[y]!==void 0||p[y]===null&&d[y]!==null||!h(d[y],p[y],y,d,p,g))return!1}return!0}finally{g&&g.delete(p)}}function l(d,p,h,g){if(p.size===0)return!0;if(!(d instanceof Map))return!1;for(const[m,v]of p.entries()){const y=d.get(m);if(h(y,v,m,d,p,g)===!1)return!1}return!0}function c(d,p,h,g){if(p.length===0)return!0;if(!Array.isArray(d))return!1;const m=new Set;for(let v=0;v<p.length;v++){const y=p[v];let S=!1;for(let x=0;x<d.length;x++){if(m.has(x))continue;const b=d[x];let O=!1;if(h(b,y,v,d,p,g)&&(O=!0),O){m.add(x),S=!0;break}}if(!S)return!1}return!0}function u(d,p,h,g){return p.size===0?!0:d instanceof Set?c([...d],[...p],h,g):!1}e.isMatchWith=o,e.isSetMatch=u})(eh)),eh}var r1;function ih(){return r1||(r1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dR();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(Qp)),Qp}var oh={},ah={},sh={},i1;function fR(){return i1||(i1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(sh)),sh}var lh={},o1;function a1(){return o1||(o1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(lh)),lh}var ch={},s1;function l1(){return s1||(s1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",a="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",d="[object Function]",p="[object ArrayBuffer]",h="[object Object]",g="[object Error]",m="[object DataView]",v="[object Uint8Array]",y="[object Uint8ClampedArray]",S="[object Uint16Array]",x="[object Uint32Array]",b="[object BigUint64Array]",O="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",T="[object BigInt64Array]",k="[object Float32Array]",D="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=p,e.arrayTag=u,e.bigInt64ArrayTag=T,e.bigUint64ArrayTag=b,e.booleanTag=i,e.dataViewTag=m,e.dateTag=s,e.errorTag=g,e.float32ArrayTag=k,e.float64ArrayTag=D,e.functionTag=d,e.int16ArrayTag=E,e.int32ArrayTag=C,e.int8ArrayTag=O,e.mapTag=l,e.numberTag=r,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=n,e.symbolTag=a,e.uint16ArrayTag=S,e.uint32ArrayTag=x,e.uint8ArrayTag=v,e.uint8ClampedArrayTag=y})(ch)),ch}var uh={},c1;function pR(){return c1||(c1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(uh)),uh}var u1;function d1(){return u1||(u1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fR(),n=a1(),r=l1(),i=Qx(),o=pR();function a(u,d){return s(u,void 0,u,new Map,d)}function s(u,d,p,h=new Map,g=void 0){const m=g?.(u,d,p,h);if(m!==void 0)return m;if(i.isPrimitive(u))return u;if(h.has(u))return h.get(u);if(Array.isArray(u)){const v=new Array(u.length);h.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,p,h,g);return Object.hasOwn(u,"index")&&(v.index=u.index),Object.hasOwn(u,"input")&&(v.input=u.input),v}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const v=new RegExp(u.source,u.flags);return v.lastIndex=u.lastIndex,v}if(u instanceof Map){const v=new Map;h.set(u,v);for(const[y,S]of u)v.set(y,s(S,y,p,h,g));return v}if(u instanceof Set){const v=new Set;h.set(u,v);for(const y of u)v.add(s(y,void 0,p,h,g));return v}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(o.isTypedArray(u)){const v=new(Object.getPrototypeOf(u)).constructor(u.length);h.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,p,h,g);return v}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const v=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return h.set(u,v),l(v,u,p,h,g),v}if(typeof File<"u"&&u instanceof File){const v=new File([u],u.name,{type:u.type});return h.set(u,v),l(v,u,p,h,g),v}if(u instanceof Blob){const v=new Blob([u],{type:u.type});return h.set(u,v),l(v,u,p,h,g),v}if(u instanceof Error){const v=new u.constructor;return h.set(u,v),v.message=u.message,v.name=u.name,v.stack=u.stack,v.cause=u.cause,l(v,u,p,h,g),v}if(typeof u=="object"&&c(u)){const v=Object.create(Object.getPrototypeOf(u));return h.set(u,v),l(v,u,p,h,g),v}return u}function l(u,d,p=u,h,g){const m=[...Object.keys(d),...t.getSymbols(d)];for(let v=0;v<m.length;v++){const y=m[v],S=Object.getOwnPropertyDescriptor(u,y);(S==null||S.writable)&&(u[y]=s(d[y],y,p,h,g))}}function c(u){switch(n.getTag(u)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=l})(ah)),ah}var f1;function hR(){return f1||(f1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=d1();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(oh)),oh}var p1;function mR(){return p1||(p1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ih(),n=hR();function r(i){return i=n.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=r})(Jp)),Jp}var dh={},fh={},ph={},h1;function gR(){return h1||(h1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=d1(),n=l1();function r(i,o){return t.cloneDeepWith(i,(a,s,l,c)=>{const u=o?.(a,s,l,c);if(u!==void 0)return u;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new i.constructor(i?.valueOf());return t.copyProperties(d,i),d}case n.argumentsTag:{const d={};return t.copyProperties(d,i),d.length=i.length,d[Symbol.iterator]=i[Symbol.iterator],d}default:return}})}e.cloneDeepWith=r})(ph)),ph}var m1;function vR(){return m1||(m1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gR();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(fh)),fh}var hh={},mh={},g1;function v1(){return g1||(g1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(mh)),mh}var gh={},y1;function yR(){return y1||(y1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=a1();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(gh)),gh}var b1;function bR(){return b1||(b1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rx(),n=v1(),r=yR(),i=Op();function o(a,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&a?.[s]==null?l=i.toPath(s):l=[s],l.length===0)return!1;let c=a;for(let u=0;u<l.length;u++){const d=l[u];if((c==null||!Object.hasOwn(c,d))&&!((Array.isArray(c)||r.isArguments(c))&&n.isIndex(d)&&d<c.length))return!1;c=c[d]}return!0}e.has=o})(hh)),hh}var x1;function xR(){return x1||(x1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ih(),n=ox(),r=vR(),i=Sp(),o=bR();function a(s,l){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=n.toKey(s);break}}return l=r.cloneDeep(l),function(c){const u=i.get(c,s);return u===void 0?o.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=a})(dh)),dh}var w1;function wR(){return w1||(w1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ux(),n=uR(),r=mR(),i=xR();function o(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?i.matchesProperty(a[0],a[1]):r.matches(a);case"string":case"symbol":case"number":return n.property(a)}}e.iteratee=o})(Xp)),Xp}var O1;function OR(){return O1||(O1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=aR(),n=Ux(),r=cR(),i=wR();function o(a,s=n.identity){return r.isArrayLikeObject(a)?t.uniqBy(Array.from(a),i.iteratee(s)):[]}e.uniqBy=o})(Vp)),Vp}var vh,S1;function SR(){return S1||(S1=1,vh=OR().uniqBy),vh}var ER=SR();const E1=zr(ER);function _R(e,t,n){return t===!0?E1(e,n):typeof t=="function"?E1(e,t):e}var qc={exports:{}},yh={},Kc={exports:{}},bh={};/**
|
|
121
121
|
* @license React
|
|
122
122
|
* use-sync-external-store-shim.production.js
|
|
123
123
|
*
|
|
@@ -306,7 +306,7 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
|
|
|
306
306
|
`))}},[tn,we,S,x,z]),cn&&(S?nt.length===0?de=null:de=nt.reduce((Z,ue,he)=>(Z.push(ue),he<nt.length-1&&Z.push(", "),Z),[]):de=kt);let Cn=ae;!a&&ie&&X&&(Cn=A.clientWidth);let Yt;typeof j<"u"?Yt=j:Yt=d?null:0;const Tn=I.id||(x?`mui-component-select-${x}`:void 0),ye={...t,variant:B,value:z,open:ze,error:h},dn=yG(ye),Gt={...y.PaperProps,...typeof y.slotProps?.paper=="function"?y.slotProps.paper(ye):y.slotProps?.paper},U={...y.MenuListProps,...typeof y.slotProps?.list=="function"?y.slotProps.list(ye):y.slotProps?.list},le=op();return w.jsxs(_.Fragment,{children:[w.jsx(hG,{as:"div",ref:J,tabIndex:Yt,role:"combobox","aria-controls":ze?le:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":ze?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,Tn].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:tt,onMouseDown:d||D?null:re,onBlur:ke,onFocus:C,...I,ownerState:ye,className:oe(I.className,dn.select,l),id:Tn,children:vG(de)?hT||(hT=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):de}),w.jsx(gG,{"aria-invalid":h,value:Array.isArray(z)?z.join(","):z,name:x,ref:ne,"aria-hidden":!0,onChange:Ee,tabIndex:-1,disabled:d,className:dn.nativeInput,autoFocus:o,required:P,...K,ownerState:ye}),w.jsx(mG,{as:g,className:dn.icon,ownerState:ye}),w.jsx(sT,{id:`menu-${x||""}`,anchorEl:A,open:ze,onClose:me,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...y,slotProps:{...y.slotProps,list:{"aria-labelledby":v,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:le,...U},paper:{...Gt,style:{minWidth:Cn,...Gt!=null?Gt.style:null}}},children:un})]})});process.env.NODE_ENV!=="production"&&(gT.propTypes={"aria-describedby":f.string,"aria-label":f.string,autoFocus:f.bool,autoWidth:f.bool,children:f.node,classes:f.object,className:f.string,defaultOpen:f.bool,defaultValue:f.any,disabled:f.bool,displayEmpty:f.bool,error:f.bool,IconComponent:f.elementType.isRequired,inputRef:nr,labelId:f.string,MenuProps:f.object,multiple:f.bool,name:f.string,onBlur:f.func,onChange:f.func,onClose:f.func,onFocus:f.func,onOpen:f.func,open:f.bool,readOnly:f.bool,renderValue:f.func,required:f.bool,SelectDisplayProps:f.object,tabIndex:f.oneOfType([f.number,f.string]),type:f.any,value:f.any,variant:f.oneOf(["standard","outlined","filled"])});const bG=e=>{const{classes:t}=e,r=Je({root:["root"]},pT,t);return{...t,...r}},oy={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>jn(e)&&e!=="variant"},xG=ve(Hd,oy)(""),wG=ve(Kd,oy)(""),OG=ve(Ud,oy)(""),Yd=_.forwardRef(function(t,n){const r=ct({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=IK,id:d,input:p,inputProps:h,label:g,labelId:m,MenuProps:v,multiple:y=!1,native:S=!1,onClose:x,onOpen:b,open:O,renderValue:E,SelectDisplayProps:C,variant:T="outlined",...k}=r,D=S?uT:gT,M=Mo(),P=Da({props:r,muiFormControl:M,states:["variant","error"]}),I=P.variant||T,j={...r,variant:I,classes:a},N=bG(j),{root:L,...B}=N,K=p||{standard:w.jsx(xG,{ownerState:j}),outlined:w.jsx(wG,{label:g,ownerState:j}),filled:w.jsx(OG,{ownerState:j})}[I],z=zt(n,Na(K));return w.jsx(_.Fragment,{children:_.cloneElement(K,{inputComponent:D,inputProps:{children:o,error:P.error,IconComponent:u,variant:I,type:void 0,multiple:y,...S?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:v,onClose:x,onOpen:b,open:O,renderValue:E,SelectDisplayProps:{id:d,...C}},...h,classes:h?nn(B,h.classes):B,...p?p.props.inputProps:{}},...(y&&S||c)&&I==="outlined"?{notched:!0}:{},ref:z,className:oe(K.props.className,s,N.root),...!p&&{variant:I},...k})})});process.env.NODE_ENV!=="production"&&(Yd.propTypes={autoWidth:f.bool,children:f.node,classes:f.object,className:f.string,defaultOpen:f.bool,defaultValue:f.any,displayEmpty:f.bool,IconComponent:f.elementType,id:f.string,input:f.element,inputProps:f.object,label:f.node,labelId:f.string,MenuProps:f.object,multiple:f.bool,native:f.bool,onChange:f.func,onClose:f.func,onOpen:f.func,open:f.bool,renderValue:f.func,SelectDisplayProps:f.object,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),value:f.oneOfType([f.oneOf([""]),f.any]),variant:f.oneOf(["filled","outlined","standard"])}),Yd.muiName="Select";function SG(e){return Xe("MuiTooltip",e)}const St=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function EG(e){return Math.round(e*1e5)/1e5}const _G=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${je(o.split("-")[0])}`],arrow:["arrow"]};return Je(a,SG,t)},PG=ve(Xv,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(wt(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${St.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${St.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${St.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${St.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${St.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${St.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${St.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${St.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),CG=ve("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${je(n.placement.split("-")[0])}`]]}})(wt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${St.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${St.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${St.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${St.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${EG(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${St.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${St.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${St.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${St.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${St.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${St.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${St.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${St.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${St.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${St.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),TG=ve("span",{name:"MuiTooltip",slot:"Arrow"})(wt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Gd=!1;const vT=new Sd;let El={x:0,y:0};function Xd(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const ay=_.forwardRef(function(t,n){const r=ct({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:h=!1,enterDelay:g=100,enterNextDelay:m=0,enterTouchDelay:v=700,followCursor:y=!1,id:S,leaveDelay:x=0,leaveTouchDelay:b=1500,onClose:O,onOpen:E,open:C,placement:T="bottom",PopperComponent:k,PopperProps:D={},slotProps:M={},slots:P={},title:I,TransitionComponent:j,TransitionProps:N,...L}=r,B=_.isValidElement(o)?o:w.jsx("span",{children:o}),K=Mc(),z=ip(),[F,G]=_.useState(),[Y,ne]=_.useState(null),Q=_.useRef(!1),X=p||y,te=Ta(),ie=Ta(),ae=Ta(),W=Ta(),[H,J]=Nc({controlled:C,default:!1,name:"Tooltip",state:"open"});let A=H;if(process.env.NODE_ENV!=="production"){const{current:be}=_.useRef(C!==void 0);_.useEffect(()=>{F&&F.disabled&&!be&&I!==""&&F.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
307
307
|
`))},[I,F,be])}const fe=op(S),re=_.useRef(),me=Hr(()=>{re.current!==void 0&&(document.body.style.WebkitUserSelect=re.current,re.current=void 0),W.clear()});_.useEffect(()=>me,[me]);const we=be=>{vT.clear(),Gd=!0,J(!0),E&&!A&&E(be)},Ee=Hr(be=>{vT.start(800+x,()=>{Gd=!1}),J(!1),O&&A&&O(be),te.start(K.transitions.duration.shortest,()=>{Q.current=!1})}),Ce=be=>{Q.current&&be.type!=="touchstart"||(F&&F.removeAttribute("title"),ie.clear(),ae.clear(),g||Gd&&m?ie.start(Gd?m:g,()=>{we(be)}):we(be))},tt=be=>{ie.clear(),ae.start(x,()=>{Ee(be)})},[,ze]=_.useState(!1),ke=be=>{Pd(be.target)||(ze(!1),tt(be))},de=be=>{F||G(be.currentTarget),Pd(be.target)&&(ze(!0),Ce(be))},kt=be=>{Q.current=!0;const hn=B.props;hn.onTouchStart&&hn.onTouchStart(be)},nt=be=>{kt(be),ae.clear(),te.clear(),me(),re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",W.start(v,()=>{document.body.style.WebkitUserSelect=re.current,Ce(be)})},cn=be=>{B.props.onTouchEnd&&B.props.onTouchEnd(be),me(),ae.start(b,()=>{Ee(be)})};_.useEffect(()=>{if(!A)return;function be(hn){hn.key==="Escape"&&Ee(hn)}return document.addEventListener("keydown",be),()=>{document.removeEventListener("keydown",be)}},[Ee,A]);const tn=zt(Na(B),G,n);!I&&I!==0&&(A=!1);const un=_.useRef(),Cn=be=>{const hn=B.props;hn.onMouseMove&&hn.onMouseMove(be),El={x:be.clientX,y:be.clientY},un.current&&un.current.update()},Yt={},Tn=typeof I=="string";c?(Yt.title=!A&&Tn&&!d?I:null,Yt["aria-describedby"]=A?fe:null):(Yt["aria-label"]=Tn?I:null,Yt["aria-labelledby"]=A&&!Tn?fe:null);const ye={...Yt,...L,...B.props,className:oe(L.className,B.props.className),onTouchStart:kt,ref:tn,...y?{onMouseMove:Cn}:{}};process.env.NODE_ENV!=="production"&&(ye["data-mui-internal-clone-element"]=!0,_.useEffect(()=>{F&&!F.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
308
308
|
`))},[F]));const dn={};h||(ye.onTouchStart=nt,ye.onTouchEnd=cn),d||(ye.onMouseOver=Xd(Ce,ye.onMouseOver),ye.onMouseLeave=Xd(tt,ye.onMouseLeave),X||(dn.onMouseOver=Ce,dn.onMouseLeave=tt)),u||(ye.onFocus=Xd(de,ye.onFocus),ye.onBlur=Xd(ke,ye.onBlur),X||(dn.onFocus=de,dn.onBlur=ke)),process.env.NODE_ENV!=="production"&&B.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${B.props.title}\` or the Tooltip component.`].join(`
|
|
309
|
-
`));const Gt={...r,isRtl:z,arrow:i,disableInteractive:X,placement:T,PopperComponentProp:k,touch:Q.current},U=typeof M.popper=="function"?M.popper(Gt):M.popper,le=_.useMemo(()=>{let be=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return D.popperOptions?.modifiers&&(be=be.concat(D.popperOptions.modifiers)),U?.popperOptions?.modifiers&&(be=be.concat(U.popperOptions.modifiers)),{...D.popperOptions,...U?.popperOptions,modifiers:be}},[Y,D.popperOptions,U?.popperOptions]),Z=_G(Gt),ue=typeof M.transition=="function"?M.transition(Gt):M.transition,he={slots:{popper:s.Popper,transition:s.Transition??j,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:M.arrow??l.arrow,popper:{...D,...U??l.popper},tooltip:M.tooltip??l.tooltip,transition:{...N,...ue??l.transition}}},[rt,vt]=lt("popper",{elementType:PG,externalForwardedProps:he,ownerState:Gt,className:oe(Z.popper,D?.className)}),[cr,Gi]=lt("transition",{elementType:vl,externalForwardedProps:he,ownerState:Gt}),[ur,Uo]=lt("tooltip",{elementType:CG,className:Z.tooltip,externalForwardedProps:he,ownerState:Gt}),[vi,Br]=lt("arrow",{elementType:TG,className:Z.arrow,externalForwardedProps:he,ownerState:Gt,ref:ne});return w.jsxs(_.Fragment,{children:[_.cloneElement(B,ye),w.jsx(rt,{as:k??Xv,placement:T,anchorEl:y?{getBoundingClientRect:()=>({top:El.y,left:El.x,right:El.x,bottom:El.y,width:0,height:0})}:F,popperRef:un,open:F?A:!1,id:fe,transition:!0,...dn,...vt,popperOptions:le,children:({TransitionProps:be})=>w.jsx(cr,{timeout:K.transitions.duration.shorter,...be,...Gi,children:w.jsxs(ur,{...Uo,children:[I,i?w.jsx(vi,{...Br}):null]})})})]})});process.env.NODE_ENV!=="production"&&(ay.propTypes={arrow:f.bool,children:Ra.isRequired,classes:f.object,className:f.string,components:f.shape({Arrow:f.elementType,Popper:f.elementType,Tooltip:f.elementType,Transition:f.elementType}),componentsProps:f.shape({arrow:f.object,popper:f.object,tooltip:f.object,transition:f.object}),describeChild:f.bool,disableFocusListener:f.bool,disableHoverListener:f.bool,disableInteractive:f.bool,disableTouchListener:f.bool,enterDelay:f.number,enterNextDelay:f.number,enterTouchDelay:f.number,followCursor:f.bool,id:f.string,leaveDelay:f.number,leaveTouchDelay:f.number,onClose:f.func,onOpen:f.func,open:f.bool,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:f.elementType,PopperProps:f.object,slotProps:f.shape({arrow:f.oneOfType([f.func,f.object]),popper:f.oneOfType([f.func,f.object]),tooltip:f.oneOfType([f.func,f.object]),transition:f.oneOfType([f.func,f.object])}),slots:f.shape({arrow:f.elementType,popper:f.elementType,tooltip:f.elementType,transition:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),title:f.node,TransitionComponent:f.elementType,TransitionProps:f.object});function AG(e){return Xe("MuiTextField",e)}We("MuiTextField",["root"]);const kG={standard:Hd,filled:Ud,outlined:Kd},MG=e=>{const{classes:t}=e;return Je({root:["root"]},AG,t)},jG=ve(ey,{name:"MuiTextField",slot:"Root"})({}),yT=_.forwardRef(function(t,n){const r=ct({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:g,id:m,InputLabelProps:v,inputProps:y,InputProps:S,inputRef:x,label:b,maxRows:O,minRows:E,multiline:C=!1,name:T,onBlur:k,onChange:D,onFocus:M,placeholder:P,required:I=!1,rows:j,select:N=!1,SelectProps:L,slots:B={},slotProps:K={},type:z,value:F,variant:G="outlined",...Y}=r,ne={...r,autoFocus:o,color:l,disabled:u,error:d,fullWidth:h,multiline:C,required:I,select:N,variant:G},Q=MG(ne);process.env.NODE_ENV!=="production"&&N&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const X=op(m),te=g&&X?`${X}-helper-text`:void 0,ie=b&&X?`${X}-label`:void 0,ae=kG[G],W={slots:B,slotProps:{input:S,inputLabel:v,htmlInput:y,formHelperText:p,select:L,...K}},H={},J=W.slotProps.inputLabel;G==="outlined"&&(J&&typeof J.shrink<"u"&&(H.notched=J.shrink),H.label=b),N&&((!L||!L.native)&&(H.id=void 0),H["aria-describedby"]=void 0);const[A,fe]=lt("root",{elementType:jG,shouldForwardComponentProp:!0,externalForwardedProps:{...W,...Y},ownerState:ne,className:oe(Q.root,s),ref:n,additionalProps:{disabled:u,error:d,fullWidth:h,required:I,color:l,variant:G}}),[re,me]=lt("input",{elementType:ae,externalForwardedProps:W,additionalProps:H,ownerState:ne}),[we,Ee]=lt("inputLabel",{elementType:XC,externalForwardedProps:W,ownerState:ne}),[Ce,tt]=lt("htmlInput",{elementType:"input",externalForwardedProps:W,ownerState:ne}),[ze,ke]=lt("formHelperText",{elementType:YC,externalForwardedProps:W,ownerState:ne}),[de,kt]=lt("select",{elementType:Yd,externalForwardedProps:W,ownerState:ne}),nt=w.jsx(re,{"aria-describedby":te,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:h,multiline:C,name:T,rows:j,maxRows:O,minRows:E,type:z,value:F,id:X,inputRef:x,onBlur:k,onChange:D,onFocus:M,placeholder:P,inputProps:tt,slots:{input:B.htmlInput?Ce:void 0},...me});return w.jsxs(A,{...fe,children:[b!=null&&b!==""&&w.jsx(we,{htmlFor:X,id:ie,...Ee,children:b}),N?w.jsx(de,{"aria-describedby":te,id:X,labelId:ie,value:F,input:nt,...kt,children:a}):nt,g&&w.jsx(ze,{id:te,...ke,children:g})]})});process.env.NODE_ENV!=="production"&&(yT.propTypes={autoComplete:f.string,autoFocus:f.bool,children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","error","info","success","warning"]),f.string]),defaultValue:f.any,disabled:f.bool,error:f.bool,FormHelperTextProps:f.object,fullWidth:f.bool,helperText:f.node,id:f.string,InputLabelProps:f.object,inputProps:f.object,InputProps:f.object,inputRef:nr,label:f.node,margin:f.oneOf(["dense","none","normal"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,onBlur:f.func,onChange:f.func,onFocus:f.func,placeholder:f.string,required:f.bool,rows:f.oneOfType([f.number,f.string]),select:f.bool,SelectProps:f.object,size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),slotProps:f.shape({formHelperText:f.oneOfType([f.func,f.object]),htmlInput:f.oneOfType([f.func,f.object]),input:f.oneOfType([f.func,f.object]),inputLabel:f.oneOfType([f.func,f.object]),select:f.oneOfType([f.func,f.object])}),slots:f.shape({formHelperText:f.elementType,htmlInput:f.elementType,input:f.elementType,inputLabel:f.elementType,root:f.elementType,select:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any,variant:f.oneOf(["filled","outlined","standard"])});function NG(e){return Ze({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Box_List"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M6.562,8.062h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,8.062Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,20.938h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,20.938Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,14.5h-2a1.5,1.5,0,0,1-1.5-1.5V11a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,14.5Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5V11a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M20.438,6.062h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,12.5h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,18.935h-9a.5.5,0,1,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]}]}]}]})(e)}function DG(e){return Ze({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Export"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M5.552,20.968a2.577,2.577,0,0,1-2.5-2.73c-.012-2.153,0-4.306,0-6.459a.5.5,0,0,1,1,0c0,2.2-.032,4.4,0,6.6.016,1.107.848,1.589,1.838,1.589H18.353A1.546,1.546,0,0,0,19.825,19a3.023,3.023,0,0,0,.1-1.061V11.779h0a.5.5,0,0,1,1,0c0,2.224.085,4.465,0,6.687a2.567,2.567,0,0,1-2.67,2.5Z"},child:[]},{tag:"path",attr:{d:"M12.337,3.176a.455.455,0,0,0-.311-.138c-.015,0-.028,0-.043-.006s-.027,0-.041.006a.457.457,0,0,0-.312.138L7.961,6.845a.5.5,0,0,0,.707.707l2.816-2.815V15.479a.5.5,0,0,0,1,0V4.737L15.3,7.552a.5.5,0,0,0,.707-.707Z"},child:[]}]}]}]})(e)}function IG(e){return Ze({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(e)}const RG=Ec(Yd)(()=>({width:"fit-content",maxWidth:"100px",height:"28px",padding:"0 6px",display:"flex",fontSize:"12px",alignItems:"center","& .MuiSelect-select":{padding:0},"& .MuiOutlinedInput-notchedOutline":{borderColor:"#C6C6C6",transition:"all 0.2s ease"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#B084CC"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#884EA7 !important",boxShadow:"0 0 0 3px rgba(136, 78, 167, 0.2)"}}));function bT({widgetId:e,options:t=[],defaultValue:n=["all"],onFilterChange:r=()=>{},onExport:i=()=>{}}){const o=JSON.parse(sessionStorage.getItem("community_id"))||[],[a,s]=R.useState(o),[l,c]=R.useState(""),u=t.filter(h=>h.community_name.toLowerCase().includes(l.toLowerCase())),d=h=>{let g=h.target.value;const m=t.map(v=>v.community_id);if(g.includes("all")&&!a.includes("all"))s(["all",...m]),Si("community_id",JSON.stringify(m)),Si("widget_id",e),r(m);else if(!g.includes("all")&&a.includes("all"))s([]),Si("community_id",JSON.stringify([])),Si("widget_id",e),r([]);else{const v=g.filter(S=>S!=="all"),y=v.length>0&&m.every(S=>v.includes(S));s(y?["all",...m]:v),Si("community_id",JSON.stringify(v)),Si("widget_id",e),r(v)}},p=()=>{Si("widget_id",e),Si("export",!0),i()};return w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(ay,{slotProps:{tooltip:{sx:{fontSize:"12px"}}},children:w.jsx(ey,{size:"small",children:w.jsxs(RG,{multiple:!0,value:a,onChange:d,renderValue:h=>h.length===0?"Select...":h.includes("all")?"All":t.filter(g=>h.includes(g.community_id)).map(g=>g.community_name).join(", "),MenuProps:{PaperProps:{style:{maxHeight:300}},autoFocus:!1},children:[w.jsx(Ol,{onKeyDown:h=>h.stopPropagation(),onClick:h=>h.stopPropagation(),disableRipple:!0,sx:{"&:hover":{backgroundColor:"transparent"},cursor:"default"},children:w.jsx(yT,{placeholder:"Search...",size:"small",variant:"outlined",value:l,onChange:h=>c(h.target.value),onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),sx:{width:"100%"},autoFocus:!0})}),w.jsxs(Ol,{value:"all",children:[w.jsx(Jv,{checked:a.includes("all")}),w.jsx(qd,{primary:"All",sx:{fontWeight:600}})]}),u.length>0?u.map(h=>w.jsxs(Ol,{value:h.community_id,children:[w.jsx(Jv,{checked:a.includes(h.community_id)}),w.jsx(qd,{primary:h.community_name})]},h.community_id)):w.jsx(Ol,{disabled:!0,children:w.jsx(qd,{primary:"No results found"})})]})})}),w.jsx(ay,{title:"Export CSV for this widget",children:w.jsx("button",{onClick:p,className:"px-3 py-2 bg-[#FBF5FF] rounded cursor-pointer",children:w.jsx(DG,{className:"stroke-[#884EA7] stroke-[1.4]"})})})]})}function $G({isStatic:e,data:t,communities:n}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],i=[{name:"Notice",value:Number(t?.total_notices||0),color:r[0]},{name:"Post",value:Number(t?.total_topics||0),color:r[1]},{name:"Poll",value:Number(t?.total_polls||0),color:r[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:r[3]}];return w.jsx(Qi,{title:"Engagement",period:"This Month",icon:w.jsx(K0,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,actionButtons:w.jsx(bT,{widgetId:t?.widget_id,options:t?.communities,onFilterChange:(o,a)=>console.log(o,a),onExport:o=>console.log("Export triggered for",o)}),children:w.jsx("div",{className:"w-full h-[235px]",children:w.jsx(wo,{width:"100%",height:"100%",children:w.jsxs(SH,{data:i,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[w.jsx(md,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),w.jsx(rl,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),w.jsx(vd,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),w.jsx(xo,{content:w.jsx(ps,{}),cursor:{fill:"transparent"}}),w.jsx(e2,{dataKey:"value",barSize:40,isAnimationActive:!1,children:i.map((o,a)=>w.jsx(kr,{fill:r[a]},o.name))})]})})})})}function LG({isStatic:e,data:t}){const n=Number(t?.totalBookings||0),r=Number(t?.averageUtilizationPercentage||0),i=R.useMemo(()=>{if(!t?.graph)return[];const{labels:s=[],bookings:l=[],utilization:c=[]}=t.graph;return s.map((u,d)=>({time:u,bookings:l[d]||0,utilization:c[d]||0}))},[t]),o=s=>["12 AM","6 AM","12 PM","6 PM","11 PM"].includes(s)?s:"",a=i.length?i:Array.from({length:24},(s,l)=>({time:`${l%12||12} ${l>=12?"PM":"AM"}`,bookings:0,utilization:0}));return w.jsxs(Qi,{title:"Facilities",period:"Today",icon:w.jsx(q0,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[w.jsxs("div",{className:"grid grid-cols-2 gap-[24px] mb-[16px]",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),w.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:n})]}),w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),w.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[r.toFixed(2),"%"]})]})]}),w.jsx("div",{className:"w-full h-[170px]",children:w.jsx(wo,{width:"100%",height:"100%",children:w.jsxs(W2,{data:a,margin:{top:5,right:-30,left:-35,bottom:0},children:[w.jsx(md,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),w.jsx(vd,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),w.jsx(rl,{yAxisId:"left",tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),w.jsx(rl,{yAxisId:"right",orientation:"right",domain:[0,100],ticks:[0,20,40,60,80,100],tickFormatter:s=>`${s}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),w.jsx(xo,{content:w.jsx(ps,{})}),w.jsx(Ea,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),w.jsx(Ea,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function FG({data:e}){const t=e?.incomeSummary||{},n=e?.expenditureSummary||{},r=["AED","USD","EUR"],i=["Rs","INR","₹"];function o(s){if(s==null||isNaN(s))return"0";const l=Number(s),c=Math.abs(l),u=l<0?"-":"";return c>=1e9?u+(c/1e9).toFixed(c%1e9===0?0:2)+"B":c>=1e6?u+(c/1e6).toFixed(c%1e6===0?0:2)+"M":c>=1e3?u+(c/1e3).toFixed(c%1e3===0?0:2)+"K":u+c.toFixed(c%1===0?0:2)}function a(s,l){return l?i.includes(l)?`${l} ${o(s)}`:r.includes(l)?`${o(s)} ${l}`:`${o(s)} ${l}`:o(s)}return console.log("Finance Summary Data:",e),w.jsx(Qi,{title:"Income",period:"This Month",icon:w.jsx(Y0,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",actionButtons:w.jsx(bT,{widgetId:e?.widget_id,options:e?.communities,onFilterChange:(s,l)=>console.log(s,l),onExport:s=>console.log("Export triggered for",s)}),children:w.jsxs("div",{children:[w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[w.jsx("div",{children:"Opening"}),w.jsx("div",{children:"Income"}),w.jsx("div",{children:"Collection"}),w.jsx("div",{children:"Closing"})]}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[w.jsx("div",{children:a(t.opening_balance,t?.currency_type)}),w.jsx("div",{children:a(t.income,t?.currency_type)}),w.jsx("div",{children:a(t.collection,t?.currency_type)}),w.jsx("div",{children:a(t.closing_balance,t?.currency_type)})]}),w.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),w.jsx("div",{className:"flex items-center justify-between",children:w.jsxs("div",{className:"flex items-center gap-[12px]",children:[w.jsx(Y0,{className:"!text-[24px] text-red-600"}),w.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[w.jsx("div",{children:"Opening"}),w.jsx("div",{children:"Expenditure"}),w.jsx("div",{children:"Payment"}),w.jsx("div",{children:"Outstanding"})]}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[w.jsx("div",{children:a(n.opening_balance,n?.currency_type)}),w.jsx("div",{children:a(n.expenditure,n?.currency_type)}),w.jsx("div",{children:a(n.payment,n?.currency_type)}),w.jsx("div",{children:a(n.outstanding,n?.currency_type)})]})]})})}var BG="tippy-box",xT="tippy-content",zG="tippy-backdrop",wT="tippy-arrow",OT="tippy-svg-arrow",No={passive:!0,capture:!0},ST=function(){return document.body};function VG(e,t){return{}.hasOwnProperty.call(e,t)}function sy(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function ly(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function ET(e,t){return typeof e=="function"?e.apply(void 0,t):e}function _T(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function WG(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function UG(e){return e.split(/\s+/).filter(Boolean)}function La(e){return[].concat(e)}function PT(e,t){e.indexOf(t)===-1&&e.push(t)}function HG(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function qG(e){return e.split("-")[0]}function Zd(e){return[].slice.call(e)}function CT(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function _l(){return document.createElement("div")}function Pl(e){return["Element","Fragment"].some(function(t){return ly(e,t)})}function KG(e){return ly(e,"NodeList")}function YG(e){return ly(e,"MouseEvent")}function GG(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function XG(e){return Pl(e)?[e]:KG(e)?Zd(e):Array.isArray(e)?e:Zd(document.querySelectorAll(e))}function cy(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function TT(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function ZG(e){var t,n=La(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function JG(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=qG(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,p=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,g=c==="left"?u.right.x:0,m=o.top-r+d>l,v=r-o.bottom-p>l,y=o.left-n+h>l,S=n-o.right-g>l;return m||v||y||S})}function uy(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function AT(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Ir={isTouch:!1},kT=0;function QG(){Ir.isTouch||(Ir.isTouch=!0,window.performance&&document.addEventListener("mousemove",MT))}function MT(){var e=performance.now();e-kT<20&&(Ir.isTouch=!1,document.removeEventListener("mousemove",MT)),kT=e}function eX(){var e=document.activeElement;if(GG(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function tX(){document.addEventListener("touchstart",QG,No),window.addEventListener("blur",eX)}var nX=typeof window<"u"&&typeof document<"u",rX=nX?!!window.msCrypto:!1;function Fa(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function jT(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function iX(e){return jT(`
|
|
309
|
+
`));const Gt={...r,isRtl:z,arrow:i,disableInteractive:X,placement:T,PopperComponentProp:k,touch:Q.current},U=typeof M.popper=="function"?M.popper(Gt):M.popper,le=_.useMemo(()=>{let be=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return D.popperOptions?.modifiers&&(be=be.concat(D.popperOptions.modifiers)),U?.popperOptions?.modifiers&&(be=be.concat(U.popperOptions.modifiers)),{...D.popperOptions,...U?.popperOptions,modifiers:be}},[Y,D.popperOptions,U?.popperOptions]),Z=_G(Gt),ue=typeof M.transition=="function"?M.transition(Gt):M.transition,he={slots:{popper:s.Popper,transition:s.Transition??j,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:M.arrow??l.arrow,popper:{...D,...U??l.popper},tooltip:M.tooltip??l.tooltip,transition:{...N,...ue??l.transition}}},[rt,vt]=lt("popper",{elementType:PG,externalForwardedProps:he,ownerState:Gt,className:oe(Z.popper,D?.className)}),[cr,Gi]=lt("transition",{elementType:vl,externalForwardedProps:he,ownerState:Gt}),[ur,Uo]=lt("tooltip",{elementType:CG,className:Z.tooltip,externalForwardedProps:he,ownerState:Gt}),[vi,Br]=lt("arrow",{elementType:TG,className:Z.arrow,externalForwardedProps:he,ownerState:Gt,ref:ne});return w.jsxs(_.Fragment,{children:[_.cloneElement(B,ye),w.jsx(rt,{as:k??Xv,placement:T,anchorEl:y?{getBoundingClientRect:()=>({top:El.y,left:El.x,right:El.x,bottom:El.y,width:0,height:0})}:F,popperRef:un,open:F?A:!1,id:fe,transition:!0,...dn,...vt,popperOptions:le,children:({TransitionProps:be})=>w.jsx(cr,{timeout:K.transitions.duration.shorter,...be,...Gi,children:w.jsxs(ur,{...Uo,children:[I,i?w.jsx(vi,{...Br}):null]})})})]})});process.env.NODE_ENV!=="production"&&(ay.propTypes={arrow:f.bool,children:Ra.isRequired,classes:f.object,className:f.string,components:f.shape({Arrow:f.elementType,Popper:f.elementType,Tooltip:f.elementType,Transition:f.elementType}),componentsProps:f.shape({arrow:f.object,popper:f.object,tooltip:f.object,transition:f.object}),describeChild:f.bool,disableFocusListener:f.bool,disableHoverListener:f.bool,disableInteractive:f.bool,disableTouchListener:f.bool,enterDelay:f.number,enterNextDelay:f.number,enterTouchDelay:f.number,followCursor:f.bool,id:f.string,leaveDelay:f.number,leaveTouchDelay:f.number,onClose:f.func,onOpen:f.func,open:f.bool,placement:f.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:f.elementType,PopperProps:f.object,slotProps:f.shape({arrow:f.oneOfType([f.func,f.object]),popper:f.oneOfType([f.func,f.object]),tooltip:f.oneOfType([f.func,f.object]),transition:f.oneOfType([f.func,f.object])}),slots:f.shape({arrow:f.elementType,popper:f.elementType,tooltip:f.elementType,transition:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),title:f.node,TransitionComponent:f.elementType,TransitionProps:f.object});function AG(e){return Xe("MuiTextField",e)}We("MuiTextField",["root"]);const kG={standard:Hd,filled:Ud,outlined:Kd},MG=e=>{const{classes:t}=e;return Je({root:["root"]},AG,t)},jG=ve(ey,{name:"MuiTextField",slot:"Root"})({}),yT=_.forwardRef(function(t,n){const r=ct({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:g,id:m,InputLabelProps:v,inputProps:y,InputProps:S,inputRef:x,label:b,maxRows:O,minRows:E,multiline:C=!1,name:T,onBlur:k,onChange:D,onFocus:M,placeholder:P,required:I=!1,rows:j,select:N=!1,SelectProps:L,slots:B={},slotProps:K={},type:z,value:F,variant:G="outlined",...Y}=r,ne={...r,autoFocus:o,color:l,disabled:u,error:d,fullWidth:h,multiline:C,required:I,select:N,variant:G},Q=MG(ne);process.env.NODE_ENV!=="production"&&N&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const X=op(m),te=g&&X?`${X}-helper-text`:void 0,ie=b&&X?`${X}-label`:void 0,ae=kG[G],W={slots:B,slotProps:{input:S,inputLabel:v,htmlInput:y,formHelperText:p,select:L,...K}},H={},J=W.slotProps.inputLabel;G==="outlined"&&(J&&typeof J.shrink<"u"&&(H.notched=J.shrink),H.label=b),N&&((!L||!L.native)&&(H.id=void 0),H["aria-describedby"]=void 0);const[A,fe]=lt("root",{elementType:jG,shouldForwardComponentProp:!0,externalForwardedProps:{...W,...Y},ownerState:ne,className:oe(Q.root,s),ref:n,additionalProps:{disabled:u,error:d,fullWidth:h,required:I,color:l,variant:G}}),[re,me]=lt("input",{elementType:ae,externalForwardedProps:W,additionalProps:H,ownerState:ne}),[we,Ee]=lt("inputLabel",{elementType:XC,externalForwardedProps:W,ownerState:ne}),[Ce,tt]=lt("htmlInput",{elementType:"input",externalForwardedProps:W,ownerState:ne}),[ze,ke]=lt("formHelperText",{elementType:YC,externalForwardedProps:W,ownerState:ne}),[de,kt]=lt("select",{elementType:Yd,externalForwardedProps:W,ownerState:ne}),nt=w.jsx(re,{"aria-describedby":te,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:h,multiline:C,name:T,rows:j,maxRows:O,minRows:E,type:z,value:F,id:X,inputRef:x,onBlur:k,onChange:D,onFocus:M,placeholder:P,inputProps:tt,slots:{input:B.htmlInput?Ce:void 0},...me});return w.jsxs(A,{...fe,children:[b!=null&&b!==""&&w.jsx(we,{htmlFor:X,id:ie,...Ee,children:b}),N?w.jsx(de,{"aria-describedby":te,id:X,labelId:ie,value:F,input:nt,...kt,children:a}):nt,g&&w.jsx(ze,{id:te,...ke,children:g})]})});process.env.NODE_ENV!=="production"&&(yT.propTypes={autoComplete:f.string,autoFocus:f.bool,children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["primary","secondary","error","info","success","warning"]),f.string]),defaultValue:f.any,disabled:f.bool,error:f.bool,FormHelperTextProps:f.object,fullWidth:f.bool,helperText:f.node,id:f.string,InputLabelProps:f.object,inputProps:f.object,InputProps:f.object,inputRef:nr,label:f.node,margin:f.oneOf(["dense","none","normal"]),maxRows:f.oneOfType([f.number,f.string]),minRows:f.oneOfType([f.number,f.string]),multiline:f.bool,name:f.string,onBlur:f.func,onChange:f.func,onFocus:f.func,placeholder:f.string,required:f.bool,rows:f.oneOfType([f.number,f.string]),select:f.bool,SelectProps:f.object,size:f.oneOfType([f.oneOf(["medium","small"]),f.string]),slotProps:f.shape({formHelperText:f.oneOfType([f.func,f.object]),htmlInput:f.oneOfType([f.func,f.object]),input:f.oneOfType([f.func,f.object]),inputLabel:f.oneOfType([f.func,f.object]),select:f.oneOfType([f.func,f.object])}),slots:f.shape({formHelperText:f.elementType,htmlInput:f.elementType,input:f.elementType,inputLabel:f.elementType,root:f.elementType,select:f.elementType}),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),type:f.string,value:f.any,variant:f.oneOf(["filled","outlined","standard"])});function NG(e){return Ze({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Box_List"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M6.562,8.062h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,8.062Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,20.938h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,20.938Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,14.5h-2a1.5,1.5,0,0,1-1.5-1.5V11a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,14.5Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5V11a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M20.438,6.062h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,12.5h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,18.935h-9a.5.5,0,1,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]}]}]}]})(e)}function DG(e){return Ze({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Export"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M5.552,20.968a2.577,2.577,0,0,1-2.5-2.73c-.012-2.153,0-4.306,0-6.459a.5.5,0,0,1,1,0c0,2.2-.032,4.4,0,6.6.016,1.107.848,1.589,1.838,1.589H18.353A1.546,1.546,0,0,0,19.825,19a3.023,3.023,0,0,0,.1-1.061V11.779h0a.5.5,0,0,1,1,0c0,2.224.085,4.465,0,6.687a2.567,2.567,0,0,1-2.67,2.5Z"},child:[]},{tag:"path",attr:{d:"M12.337,3.176a.455.455,0,0,0-.311-.138c-.015,0-.028,0-.043-.006s-.027,0-.041.006a.457.457,0,0,0-.312.138L7.961,6.845a.5.5,0,0,0,.707.707l2.816-2.815V15.479a.5.5,0,0,0,1,0V4.737L15.3,7.552a.5.5,0,0,0,.707-.707Z"},child:[]}]}]}]})(e)}function IG(e){return Ze({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(e)}const RG=Ec(Yd)(()=>({width:"fit-content",maxWidth:"100px",height:"28px",padding:"0 6px",display:"flex",fontSize:"12px",alignItems:"center","& .MuiSelect-select":{padding:0},"& .MuiOutlinedInput-notchedOutline":{borderColor:"#C6C6C6",transition:"all 0.2s ease"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#B084CC"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#884EA7 !important",boxShadow:"0 0 0 3px rgba(136, 78, 167, 0.2)"}}));function bT({widgetId:e,options:t=[],defaultValue:n=["all"],onFilterChange:r=()=>{},onExport:i=()=>{}}){const o=JSON.parse(sessionStorage.getItem("community_id"))||[],[a,s]=R.useState(o),[l,c]=R.useState(""),u=t.filter(h=>h.community_name.toLowerCase().includes(l.toLowerCase())),d=h=>{let g=h.target.value;const m=t.map(v=>v.community_id);if(g.includes("all")&&!a.includes("all"))s(["all",...m]),Si("community_id",JSON.stringify(m)),Si("widget_id",e),r(m);else if(!g.includes("all")&&a.includes("all"))s([]),Si("community_id",JSON.stringify([])),Si("widget_id",e),r([]);else{const v=g.filter(x=>x!=="all"),y=v.length>0&&m.every(x=>v.includes(x));s(y?["all",...m]:v);const S=v.length===1?v[0]:v;Si("community_id",JSON.stringify(S)),Si("widget_id",e),r(S)}},p=()=>{Si("widget_id",e),Si("export",!0),i()};return w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(ay,{slotProps:{tooltip:{sx:{fontSize:"12px"}}},children:w.jsx(ey,{size:"small",children:w.jsxs(RG,{multiple:!0,value:a,onChange:d,renderValue:h=>h.length===0?"Select...":h.includes("all")?"All":t.filter(g=>h.includes(g.community_id)).map(g=>g.community_name).join(", "),MenuProps:{PaperProps:{style:{maxHeight:300}},autoFocus:!1},children:[w.jsx(Ol,{onKeyDown:h=>h.stopPropagation(),onClick:h=>h.stopPropagation(),disableRipple:!0,sx:{"&:hover":{backgroundColor:"transparent"},cursor:"default"},children:w.jsx(yT,{placeholder:"Search...",size:"small",variant:"outlined",value:l,onChange:h=>c(h.target.value),onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),sx:{width:"100%"},autoFocus:!0})}),w.jsxs(Ol,{value:"all",children:[w.jsx(Jv,{checked:a.includes("all")}),w.jsx(qd,{primary:"All",sx:{fontWeight:600}})]}),u.length>0?u.map(h=>w.jsxs(Ol,{value:h.community_id,children:[w.jsx(Jv,{checked:a.includes(h.community_id)}),w.jsx(qd,{primary:h.community_name})]},h.community_id)):w.jsx(Ol,{disabled:!0,children:w.jsx(qd,{primary:"No results found"})})]})})}),w.jsx(ay,{title:"Export CSV for this widget",children:w.jsx("button",{onClick:p,className:"px-3 py-2 bg-[#FBF5FF] rounded cursor-pointer",children:w.jsx(DG,{className:"stroke-[#884EA7] stroke-[1.4]"})})})]})}function $G({isStatic:e,data:t,communities:n}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],i=[{name:"Notice",value:Number(t?.total_notices||0),color:r[0]},{name:"Post",value:Number(t?.total_topics||0),color:r[1]},{name:"Poll",value:Number(t?.total_polls||0),color:r[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:r[3]}];return w.jsx(Qi,{title:"Engagement",period:"This Month",icon:w.jsx(K0,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,actionButtons:w.jsx(bT,{widgetId:t?.widget_id,options:t?.communities,onFilterChange:(o,a)=>console.log(o,a),onExport:o=>console.log("Export triggered for",o)}),children:w.jsx("div",{className:"w-full h-[235px]",children:w.jsx(wo,{width:"100%",height:"100%",children:w.jsxs(SH,{data:i,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[w.jsx(md,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),w.jsx(rl,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),w.jsx(vd,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),w.jsx(xo,{content:w.jsx(ps,{}),cursor:{fill:"transparent"}}),w.jsx(e2,{dataKey:"value",barSize:40,isAnimationActive:!1,children:i.map((o,a)=>w.jsx(kr,{fill:r[a]},o.name))})]})})})})}function LG({isStatic:e,data:t}){const n=Number(t?.totalBookings||0),r=Number(t?.averageUtilizationPercentage||0),i=R.useMemo(()=>{if(!t?.graph)return[];const{labels:s=[],bookings:l=[],utilization:c=[]}=t.graph;return s.map((u,d)=>({time:u,bookings:l[d]||0,utilization:c[d]||0}))},[t]),o=s=>["12 AM","6 AM","12 PM","6 PM","11 PM"].includes(s)?s:"",a=i.length?i:Array.from({length:24},(s,l)=>({time:`${l%12||12} ${l>=12?"PM":"AM"}`,bookings:0,utilization:0}));return w.jsxs(Qi,{title:"Facilities",period:"Today",icon:w.jsx(q0,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[w.jsxs("div",{className:"grid grid-cols-2 gap-[24px] mb-[16px]",children:[w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),w.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:n})]}),w.jsxs("div",{children:[w.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),w.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[r.toFixed(2),"%"]})]})]}),w.jsx("div",{className:"w-full h-[170px]",children:w.jsx(wo,{width:"100%",height:"100%",children:w.jsxs(W2,{data:a,margin:{top:5,right:-30,left:-35,bottom:0},children:[w.jsx(md,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),w.jsx(vd,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),w.jsx(rl,{yAxisId:"left",tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),w.jsx(rl,{yAxisId:"right",orientation:"right",domain:[0,100],ticks:[0,20,40,60,80,100],tickFormatter:s=>`${s}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),w.jsx(xo,{content:w.jsx(ps,{})}),w.jsx(Ea,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),w.jsx(Ea,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function FG({data:e}){const t=e?.incomeSummary||{},n=e?.expenditureSummary||{},r=["AED","USD","EUR"],i=["Rs","INR","₹"];function o(s){if(s==null||isNaN(s))return"0";const l=Number(s),c=Math.abs(l),u=l<0?"-":"";return c>=1e9?u+(c/1e9).toFixed(c%1e9===0?0:2)+"B":c>=1e6?u+(c/1e6).toFixed(c%1e6===0?0:2)+"M":c>=1e3?u+(c/1e3).toFixed(c%1e3===0?0:2)+"K":u+c.toFixed(c%1===0?0:2)}function a(s,l){return l?i.includes(l)?`${l} ${o(s)}`:r.includes(l)?`${o(s)} ${l}`:`${o(s)} ${l}`:o(s)}return console.log("Finance Summary Data:",e),w.jsx(Qi,{title:"Income",period:"This Month",icon:w.jsx(Y0,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",actionButtons:w.jsx(bT,{widgetId:e?.widget_id,options:e?.communities,onFilterChange:(s,l)=>console.log(s,l),onExport:s=>console.log("Export triggered for",s)}),children:w.jsxs("div",{children:[w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[w.jsx("div",{children:"Opening"}),w.jsx("div",{children:"Income"}),w.jsx("div",{children:"Collection"}),w.jsx("div",{children:"Closing"})]}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[w.jsx("div",{children:a(t.opening_balance,t?.currency_type)}),w.jsx("div",{children:a(t.income,t?.currency_type)}),w.jsx("div",{children:a(t.collection,t?.currency_type)}),w.jsx("div",{children:a(t.closing_balance,t?.currency_type)})]}),w.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),w.jsx("div",{className:"flex items-center justify-between",children:w.jsxs("div",{className:"flex items-center gap-[12px]",children:[w.jsx(Y0,{className:"!text-[24px] text-red-600"}),w.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[w.jsx("div",{children:"Opening"}),w.jsx("div",{children:"Expenditure"}),w.jsx("div",{children:"Payment"}),w.jsx("div",{children:"Outstanding"})]}),w.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[w.jsx("div",{children:a(n.opening_balance,n?.currency_type)}),w.jsx("div",{children:a(n.expenditure,n?.currency_type)}),w.jsx("div",{children:a(n.payment,n?.currency_type)}),w.jsx("div",{children:a(n.outstanding,n?.currency_type)})]})]})})}var BG="tippy-box",xT="tippy-content",zG="tippy-backdrop",wT="tippy-arrow",OT="tippy-svg-arrow",No={passive:!0,capture:!0},ST=function(){return document.body};function VG(e,t){return{}.hasOwnProperty.call(e,t)}function sy(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function ly(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function ET(e,t){return typeof e=="function"?e.apply(void 0,t):e}function _T(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function WG(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function UG(e){return e.split(/\s+/).filter(Boolean)}function La(e){return[].concat(e)}function PT(e,t){e.indexOf(t)===-1&&e.push(t)}function HG(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function qG(e){return e.split("-")[0]}function Zd(e){return[].slice.call(e)}function CT(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function _l(){return document.createElement("div")}function Pl(e){return["Element","Fragment"].some(function(t){return ly(e,t)})}function KG(e){return ly(e,"NodeList")}function YG(e){return ly(e,"MouseEvent")}function GG(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function XG(e){return Pl(e)?[e]:KG(e)?Zd(e):Array.isArray(e)?e:Zd(document.querySelectorAll(e))}function cy(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function TT(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function ZG(e){var t,n=La(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function JG(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=qG(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,p=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,g=c==="left"?u.right.x:0,m=o.top-r+d>l,v=r-o.bottom-p>l,y=o.left-n+h>l,S=n-o.right-g>l;return m||v||y||S})}function uy(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function AT(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Ir={isTouch:!1},kT=0;function QG(){Ir.isTouch||(Ir.isTouch=!0,window.performance&&document.addEventListener("mousemove",MT))}function MT(){var e=performance.now();e-kT<20&&(Ir.isTouch=!1,document.removeEventListener("mousemove",MT)),kT=e}function eX(){var e=document.activeElement;if(GG(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function tX(){document.addEventListener("touchstart",QG,No),window.addEventListener("blur",eX)}var nX=typeof window<"u"&&typeof document<"u",rX=nX?!!window.msCrypto:!1;function Fa(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function jT(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function iX(e){return jT(`
|
|
310
310
|
%ctippy.js
|
|
311
311
|
|
|
312
312
|
%c`+jT(e)+`
|