"use strict";(globalThis.webpackChunkcookiez=globalThis.webpackChunkcookiez||[]).push([[5120],{11793(e,t,i){i.d(t,{E:()=>h});var r=i(58168),s=i(51609),n=i(81984);const o=(0,i(11848).Ay)("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}));var a=i(98587),l=i(46964),c=i(24108);const d=["width","height","resolveSizeBeforeRender","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis","skipAnimation"];var u=i(10790);const h=s.forwardRef(function(e,t){const{hasIntrinsicSize:i,chartContainerProps:h,resizableChartContainerProps:x}=((e,t)=>{const{width:i,height:n,resolveSizeBeforeRender:o,margin:u,children:h,series:x,colors:A,dataset:g,desc:m,disableAxisListener:f,highlightedItem:p,onHighlightChange:y,plugins:v,sx:w,title:I,viewBox:b,xAxis:C,yAxis:z,zAxis:R,skipAnimation:k}=e,S=(0,a.A)(e,d),{containerRef:j,width:F,height:K}=((e,t,i)=>{const r=s.useRef({displayError:!1,initialCompute:!0,computeRun:0}),n=s.useRef(null),[o,a]=s.useState(0),[d,u]=s.useState(0),h=s.useCallback(()=>{const e=n?.current;if(!e)return{};const t=(0,c.A)(e).getComputedStyle(e),i=Math.floor(parseFloat(t.height))||0,r=Math.floor(parseFloat(t.width))||0;return a(r),u(i),{width:r,height:i}},[]);return s.useEffect(()=>{r.current.displayError=!0},[]),(0,l.A)(()=>{if(!i||!r.current.initialCompute||r.current.computeRun>20)return;const e=h();e.width!==o||e.height!==d?r.current.computeRun+=1:r.current.initialCompute&&(r.current.initialCompute=!1)},[o,d,h,i]),(0,l.A)(()=>{if(void 0!==e&&void 0!==t)return()=>{};h();const i=n.current;if("undefined"==typeof ResizeObserver)return()=>{};let r;const s=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{h()})});return i&&s.observe(i),()=>{r&&cancelAnimationFrame(r),i&&s.unobserve(i)}},[h,t,e]),{containerRef:n,width:e??o,height:t??d}})(i,n,o);return{hasIntrinsicSize:F&&K,chartContainerProps:{margin:u,children:h,series:x,colors:A,dataset:g,desc:m,disableAxisListener:f,highlightedItem:p,onHighlightChange:y,plugins:v,sx:w,title:I,viewBox:b,xAxis:C,yAxis:z,zAxis:R,skipAnimation:k,width:F,height:K,ref:t},resizableChartContainerProps:(0,r.A)({},S,{ownerState:{width:i,height:n},ref:j})}})(e,t);return(0,u.jsx)(o,(0,r.A)({},x,{children:i?(0,u.jsx)(n.a,(0,r.A)({},h)):null}))})},50333(e,t,i){i.d(t,{A:()=>s});var r=i(32586);const s=e=>{const{seriesOrder:t,series:i}=e;return t.reduce((e,t)=>{const s=(0,r.p)(i[t].label,"legend");return void 0===s||e.push({id:t,seriesId:t,color:i[t].color,label:s}),e},[])}},48774(e,t,i){i.d(t,{I:()=>n});const r=(e,t)=>[null===t[0]?e[0]:Math.min(e[0],t[0]),null===t[1]?e[1]:Math.max(e[1],t[1])];var s=i(58168);const n={seriesType:"scatter",seriesFormatter:({series:e,seriesOrder:t},i)=>({series:Object.fromEntries(Object.entries(e).map(([e,t])=>{const r=t?.datasetKeys,n=["x","y","id"].filter(e=>"string"!=typeof r?.[e]);if(t?.datasetKeys&&n.length>0)throw new Error([`MUI X: scatter series with id='${e}' has incomplete datasetKeys.`,`Properties ${n.map(e=>`"${e}"`).join(", ")} are missing.`].join("\n"));const o=r?i?.map(e=>({x:e[r.x]??null,y:e[r.y]??null,z:r.z&&e[r.z],id:e[r.id]}))??[]:t.data??[];return[e,(0,s.A)({},t,{data:o,valueFormatter:t.valueFormatter??(e=>`(${e.x}, ${e.y})`)})]})),seriesOrder:t}),colorProcessor:(e,t,i,r)=>{const s=r?.colorScale,n=i?.colorScale,o=t?.colorScale;return s?t=>{if(void 0!==r?.data?.[t]){const e=s(r?.data?.[t]);if(null!==e)return e}const i=e.data[t],n=null===i?e.color:s(i.z);return null===n?e.color:n}:n?t=>{const i=e.data[t],r=null===i?e.color:n(i.y);return null===r?e.color:r}:o?t=>{const i=e.data[t],r=null===i?e.color:o(i.x);return null===r?e.color:r}:()=>e.color},xExtremumGetter:e=>{const{series:t,axis:i,isDefaultAxis:s,getFilters:n}=e;return Object.keys(t).filter(e=>{const r=t[e].xAxisId??t[e].xAxisKey;return r===i.id||void 0===r&&s}).reduce((e,o)=>{const a=n?.({currentAxisId:i.id,isDefaultAxis:s,seriesXAxisId:t[o].xAxisId??t[o].xAxisKey,seriesYAxisId:t[o].yAxisId??t[o].yAxisKey}),l=t[o].data?.reduce((e,t,i)=>a&&!a(t,i)?e:r(e,[t.x,t.x]),[1/0,-1/0]);return r(e,l??[1/0,-1/0])},[1/0,-1/0])},yExtremumGetter:e=>{const{series:t,axis:i,isDefaultAxis:s,getFilters:n}=e;return Object.keys(t).filter(e=>{const r=t[e].yAxisId??t[e].yAxisKey;return r===i.id||void 0===r&&s}).reduce((e,o)=>{const a=n?.({currentAxisId:i.id,isDefaultAxis:s,seriesXAxisId:t[o].xAxisId??t[o].xAxisKey,seriesYAxisId:t[o].yAxisId??t[o].yAxisKey}),l=t[o].data?.reduce((e,t,i)=>a&&!a(t,i)?e:r(e,[t.y,t.y]),[1/0,-1/0]);return r(e,l??[1/0,-1/0])},[1/0,-1/0])}}}}]);