h2o-library 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -20,6 +20,30 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
20
20
 
21
21
  ---
22
22
 
23
+ ## [2.2.1] — 2026-07-14
24
+
25
+ ### Changed
26
+
27
+ - **WaterfallChart data API** — now takes a single structured `ShapExplanation` object (`{ features: { name, prob, value }[], fx, efx, otherFactorsProb?, otherFactorsValue?, text? }`) that maps 1:1 to the model output. Bars run from `efx` (`E[f(x)]`) up to the prediction marker at `fx` (`f(x)`); features are sorted by `|prob|`.
28
+ - **Sign colors swapped** — **blue** now pushes the prediction higher and **red** pushes it lower (was red/blue). The `Chart` wrapper legend and defaults follow. Both still overridable via `colors`.
29
+ - **Thicker bars** — reduced `barCategoryGap` so arrow bars read more clearly.
30
+
31
+ ### Added
32
+
33
+ - **`onBarClick` on WaterfallChart** — `onBarClick(datum, index, event)` where `datum` is `{ feature, code, value, contribution }`. Bars become pointer-interactive only when provided; also forwarded through the `Chart` wrapper. Exports the `WaterfallBarDatum` and `ShapExplanation` / `ShapFeature` types.
34
+ - **Pinned "other features" row** — the pre-aggregated `otherFactors` bucket (and any data-provided "N other features / other factors" row) is always pinned to the bottom regardless of magnitude, matching the native SHAP layout.
35
+
36
+ ### Fixed
37
+
38
+ - **Cumulative staircase direction** — bars now accumulate from the base at the bottom row up to the prediction at the top row, matching `shap.waterfall_plot` (was inverted).
39
+ - **X-axis ticks** — evenly spaced on "nice" 1 / 2 / 5 × 10ⁿ steps instead of being pinned to the ragged padded domain edges.
40
+
41
+ ### Removed
42
+
43
+ - **WaterfallChart legacy data forms** — no longer accepts the flat `ShapRecord` object or a typed `WaterfallFeature[]`; removed the `baseValue`, `prediction`, `probSuffix`, and `valueSuffix` props and the `ShapRecord` type export.
44
+
45
+ ---
46
+
23
47
  ## [2.2.0] — 2026-07-02
24
48
 
25
49
  ### Added
@@ -29,7 +29,7 @@ type BarChartSpecificProps = {
29
29
  layout?: "single" | "grouped" | "stacked" | "grouped-stacked";
30
30
  orientation?: "vertical" | "horizontal";
31
31
  };
32
- type WaterfallSpecificProps = Pick<WaterfallChartProps, "baseValue" | "prediction" | "maxFeatures" | "colors" | "compact" | "probSuffix" | "valueSuffix" | "onBarClick">;
32
+ type WaterfallSpecificProps = Pick<WaterfallChartProps, "maxFeatures" | "colors" | "compact" | "onBarClick">;
33
33
  type ChartTypeSpecificProps<T extends ChartType> = T extends "bar" ? BarChartSpecificProps : T extends "waterfall" ? WaterfallSpecificProps : Record<string, never>;
34
34
  export type ChartProps<T extends ChartType> = BaseChartProps & {
35
35
  data: BaseChartData[T];
@@ -12,7 +12,31 @@ export interface WaterfallFeature {
12
12
  value?: number | string;
13
13
  contribution: number;
14
14
  }
15
- export type ShapRecord = Record<string, number | string>;
15
+ /** One feature entry inside a {@link ShapExplanation}. */
16
+ export interface ShapFeature {
17
+ name: string;
18
+ prob: number;
19
+ value?: number | string;
20
+ }
21
+ /**
22
+ * The structured SHAP explanation object. Passed straight to
23
+ * {@link WaterfallChartProps.data} with no transform.
24
+ */
25
+ export interface ShapExplanation {
26
+ recordId?: number;
27
+ losRecordId?: number;
28
+ probabilityDischargeNext2Days?: number;
29
+ /** f(x) — model output probability. */
30
+ fx: number;
31
+ /** E(f(x)) — baseline (expected) probability. */
32
+ efx: number;
33
+ /** Summed contribution of all features not individually listed. */
34
+ otherFactorsProb?: number;
35
+ /** Count of features grouped into otherFactors. */
36
+ otherFactorsValue?: number;
37
+ text?: string;
38
+ features: ShapFeature[];
39
+ }
16
40
  export interface WaterfallColors {
17
41
  positive?: string;
18
42
  negative?: string;
@@ -25,16 +49,12 @@ export interface WaterfallBarDatum {
25
49
  contribution: number;
26
50
  }
27
51
  export interface WaterfallChartProps {
28
- data: WaterfallFeature[] | ShapRecord;
29
- baseValue?: number;
30
- prediction?: number;
52
+ data: ShapExplanation;
31
53
  maxFeatures?: number;
32
54
  colors?: WaterfallColors;
33
55
  compact?: boolean;
34
56
  height?: number;
35
57
  className?: string;
36
- probSuffix?: string;
37
- valueSuffix?: string;
38
58
  onBarClick?: (datum: WaterfallBarDatum, index: number, event: React.MouseEvent<SVGElement>) => void;
39
59
  }
40
- export declare const WaterfallChart: ({ data, baseValue, prediction, maxFeatures, colors, compact, height, className, probSuffix, valueSuffix, onBarClick, }: WaterfallChartProps) => import("react/jsx-runtime").JSX.Element;
60
+ export declare const WaterfallChart: ({ data, maxFeatures, colors, compact, height, className, onBarClick, }: WaterfallChartProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("react/jsx-runtime"),e=require("react"),t=require("recharts"),o=require("react-dom");function s(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var a=s(e);function l(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(r);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(t[o[s]]=r[o[s]])}return t}"function"==typeof SuppressedError&&SuppressedError;const n={backgroundColor:"hsl(var(--tooltip-dark-bg))",color:"hsl(var(--tooltip-dark-fg))",padding:"0.5rem 0.75rem",borderRadius:"6px",fontSize:"0.8125rem",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",whiteSpace:"nowrap",lineHeight:1.5},i={background:"none",border:"none",padding:0,boxShadow:"none",outline:"none"};Object.assign(Object.assign({},n),{position:"fixed",pointerEvents:"none",zIndex:9999,transform:"translate(-50%, calc(-100% - 10px))"});const c=({active:e,payload:t,label:o,bars:s,hoveredBar:a})=>{var l,i,c;if(!e||!(null==t?void 0:t.length)||!a)return null;const d=t.find((r=>r.dataKey===a.dataKey));if(!d)return null;const h=s.find((r=>r.key===a.dataKey)),x=null!==(l=null==h?void 0:h.unit)&&void 0!==l?l:"",u=null!==(c=null!==(i=null==h?void 0:h.label)&&void 0!==i?i:d.name)&&void 0!==c?c:"";return r.jsxs("div",{style:n,children:[r.jsx("div",{style:{fontSize:"0.75rem",opacity:.8},children:o}),r.jsx("div",{children:`${u}: ${d.value}${x?` ${x}`:""}`})]})},d=({x:e,y:t,payload:o,onClick:s})=>r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("text",{x:0,y:0,dy:16,textAnchor:"middle",fill:"hsl(var(--muted-200))",fontSize:12,style:{cursor:s?"pointer":"default"},onClick:s?r=>s(o.value,r):void 0,children:o.value})}),h=({x:e,y:t,payload:o,onClick:s})=>r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("text",{x:0,y:0,dy:4,textAnchor:"end",fill:"hsl(var(--muted-200))",fontSize:12,style:{cursor:s?"pointer":"default"},onClick:s?r=>s(o.value,r):void 0,children:o.value})}),x=({x:e,y:t,payload:o,maxWidth:s,onClick:a})=>r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("foreignObject",{x:-s/2,y:2,width:s,height:22,children:r.jsx("div",{title:String(o.value),style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"center",fontSize:12,color:"hsl(var(--muted-200))",padding:"4px 4px 0",cursor:a?"pointer":"default"},onClick:a?r=>a(o.value,r):void 0,onKeyDown:a?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),a(o.value,r))}:void 0,role:a?"button":void 0,tabIndex:a?0:void 0,children:String(o.value)})})}),u=({x:e,y:t,payload:o,onClick:s})=>{const a=String(o.value);return r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("foreignObject",{x:-144,y:-16,width:140,height:32,children:r.jsx("div",{title:a,className:"bar-chart-y-label",style:{cursor:s?"pointer":"default"},onClick:s?r=>s(o.value,r):void 0,onKeyDown:s?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),s(o.value,r))}:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,children:a})})})},p=({data:o,bars:s,layout:a="single",orientation:l="vertical",showGrid:n=!0,showLegend:p=!1,height:j=400,className:k,onXAxisTickClick:m,onYAxisTickClick:v,onBarClick:C})=>{const[g,y]=e.useState(null),[f,M]=e.useState(null),[b,w]=e.useState(0),F=e.useCallback((r=>w(r)),[]),N=(()=>{const r=(()=>{if("stacked"===a)return Math.max(...o.map((r=>s.reduce(((e,t)=>e+(Number(r[t.key])||0)),0))));if("grouped-stacked"===a){const r=[...new Set(s.filter((r=>r.stackId)).map((r=>r.stackId)))];return r.length?Math.max(...o.map((e=>Math.max(...r.map((r=>s.filter((e=>e.stackId===r)).reduce(((r,t)=>r+(Number(e[t.key])||0)),0))))))):Math.max(...o.map((r=>Math.max(...s.map((e=>Number(r[e.key])||0))))))}return Math.max(...o.map((r=>Math.max(...s.map((e=>Number(r[e.key])||0))))))})();if(0===r)return 5;const e=1.2*r,t=Math.floor(Math.log10(e)),l=Math.pow(10,t),n=e/l;let i;return i=n<=1?1:n<=1.2?1.2:n<=1.5?1.5:n<=2?2:n<=2.5?2.5:n<=3?3:n<=4?4:n<=5?5:n<=6?6:n<=8?8:10,i*l})(),$=()=>{M(null),y(null)},S=r=>"stacked"===a?"a":"grouped-stacked"===a?r.stackId:void 0;return r.jsx("div",{className:"bar-chart-container"+(k?` ${k}`:""),children:r.jsx(t.ResponsiveContainer,{width:"100%",height:j,onResize:F,children:r.jsxs(t.BarChart,{data:o,layout:"vertical"===l?"horizontal":"vertical",barGap:"grouped"===a||"grouped-stacked"===a?0:4,margin:{top:5,right:20,left:10,bottom:5},children:[n&&r.jsx(t.CartesianGrid,{stroke:"hsl(var(--muted))",vertical:"horizontal"===l,horizontal:"vertical"===l}),(()=>{if("vertical"===l){const e=Math.max(20,(b-80)/o.length);return r.jsx(t.XAxis,{dataKey:"x",axisLine:!1,tickLine:!1,tick:t=>r.jsx(x,Object.assign({},t,{maxWidth:e,onClick:m})),interval:0})}return r.jsx(t.XAxis,{type:"number",axisLine:!1,tickLine:!1,domain:[0,N],tick:e=>r.jsx(d,Object.assign({},e,{onClick:m}))})})(),"vertical"===l?r.jsx(t.YAxis,{axisLine:!1,tickLine:!1,tick:e=>r.jsx(h,Object.assign({},e,{onClick:v})),domain:[0,N]}):r.jsx(t.YAxis,{type:"category",dataKey:"x",axisLine:!1,tickLine:!1,tick:e=>r.jsx(u,Object.assign({},e,{onClick:v})),width:148,tickMargin:5,interval:0}),r.jsx(t.Tooltip,{cursor:!1,content:r.jsx(c,{bars:s,hoveredBar:f}),wrapperStyle:i,position:null!=g?g:void 0,isAnimationActive:!1}),p&&r.jsx(t.Legend,{}),s.map((e=>{var s;return r.jsx(t.Bar,{dataKey:e.key,fill:e.color,name:null!==(s=e.label)&&void 0!==s?s:e.key,stackId:S(e),onMouseLeave:$,onClick:C?(r,t,o)=>C(r,t,e.key,o):void 0,style:{cursor:C?"pointer":void 0},children:o.map(((o,s)=>r.jsx(t.Cell,{onMouseEnter:r=>{const t=r.currentTarget.getBoundingClientRect(),o=r.currentTarget.closest(".recharts-wrapper");if(o){const r=o.getBoundingClientRect();((r,e,t,o,s,a)=>{M({dataKey:r,index:e}),y("vertical"===l?{x:t+s/2,y:o}:{x:t+s,y:o+a/2})})(e.key,s,t.left-r.left,t.top-r.top,t.width,t.height)}}},`cell-${s}`)))},e.key)}))]})})})},j=({cx:t,cy:o,stroke:s,setTooltipPosition:a})=>(e.useLayoutEffect((()=>{void 0!==t&&void 0!==o&&a({x:t,y:o})}),[t,o,a]),r.jsx("circle",{cx:t,cy:o,r:6,stroke:"hsl(var(--background))",strokeWidth:2,fill:s})),k=({active:e,payload:t,label:o,lines:s,hoveredDataKey:a,showTooltipLabel:l})=>{var i,c,d;if(!e||!(null==t?void 0:t.length)||!a)return null;const h=t.find((r=>r.dataKey===a));if(!h)return null;const x=s.find((r=>r.key===h.dataKey)),u=null!==(i=null==x?void 0:x.unit)&&void 0!==i?i:"",p=null!==(d=null!==(c=null==x?void 0:x.label)&&void 0!==c?c:h.name)&&void 0!==d?d:"";return r.jsxs("div",{style:n,children:[l&&r.jsx("div",{style:{fontSize:"0.75rem",opacity:.8},children:o}),r.jsx("div",{children:`${p}: ${h.value}${u?` ${u}`:""}`})]})},m=({x:e,y:t,payload:o,onClick:s})=>r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("text",{x:0,y:0,dy:4,textAnchor:"end",fill:"hsl(var(--muted-200))",fontSize:12,style:{cursor:s?"pointer":"default"},onClick:s?r=>s(o.value,r):void 0,children:o.value})}),v=({x:e,y:t,payload:o,maxWidth:s,onClick:a})=>r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("foreignObject",{x:-s/2,y:2,width:s,height:22,children:r.jsx("div",{title:String(o.value),style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"center",fontSize:12,color:"hsl(var(--muted-200))",padding:"4px 4px 0",cursor:a?"pointer":"default"},onClick:a?r=>a(o.value,r):void 0,onKeyDown:a?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),a(o.value,r))}:void 0,role:a?"button":void 0,tabIndex:a?0:void 0,children:String(o.value)})})}),C=({data:o,lines:s,showGrid:a=!0,showLegend:l=!1,showGradient:n=!0,height:c=400,showTooltipLabel:d=!1,className:h,onXAxisTickClick:x,onYAxisTickClick:u,onDataPointClick:p})=>{const[C,g]=e.useState(null),[y,f]=e.useState(null),[M,b]=e.useState(0),w=e.useCallback((r=>b(r)),[]),F=(()=>{const r=(()=>{let r=0;return o.forEach((e=>{s.forEach((t=>{const o=e[t.key];"number"==typeof o&&o>r&&(r=o)}))})),r})();if(0===r)return 5;const e=1.2*r,t=Math.floor(Math.log10(e)),a=Math.pow(10,t),l=e/a;let n;return n=l<=1?1:l<=1.2?1.2:l<=1.5?1.5:l<=2?2:l<=2.5?2.5:l<=3?3:l<=4?4:l<=5?5:l<=6?6:l<=8?8:10,n*a})();return r.jsx("div",{className:"line-chart-container"+(h?` ${h}`:""),children:r.jsx(t.ResponsiveContainer,{width:"100%",height:c,onResize:w,children:r.jsxs(t.ComposedChart,{data:o,onMouseLeave:()=>{g(null),f(null)},children:[a&&r.jsx(t.CartesianGrid,{stroke:"hsl(var(--muted))",vertical:!1}),r.jsx(t.XAxis,{dataKey:"x",axisLine:!1,tickLine:!1,tick:e=>r.jsx(v,Object.assign({},e,{maxWidth:Math.max(20,(M-60)/o.length),onClick:x})),interval:0}),r.jsx(t.YAxis,{axisLine:!1,tickLine:!1,tick:e=>r.jsx(m,Object.assign({},e,{onClick:u})),domain:[0,F]}),r.jsx(t.Tooltip,{cursor:!1,content:r.jsx(k,{lines:s,hoveredDataKey:C,showTooltipLabel:d}),wrapperStyle:i,offset:10,position:null!=y?y:void 0,isAnimationActive:!1}),l&&r.jsx(t.Legend,{}),n&&r.jsx("defs",{children:s.map((e=>r.jsxs("linearGradient",{id:`colorGradient_${e.key.replace(/\s/g,"")}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[r.jsx("stop",{offset:"5%",stopColor:e.color,stopOpacity:.4}),r.jsx("stop",{offset:"95%",stopColor:e.color,stopOpacity:0})]},`${e.key}-gradient`)))}),s.map((e=>r.jsx(t.Area,{type:"monotone",dataKey:e.key,stroke:"none",fill:n?`url(#colorGradient_${e.key.replace(/\s/g,"")})`:"none",fillOpacity:1,isAnimationActive:!1,connectNulls:!0,activeDot:!1},`${e.key}-fill`))),s.map((e=>{var o;return r.jsx(t.Line,{type:"monotone",dataKey:e.key,stroke:e.color,strokeWidth:null!==(o=e.lineWidth)&&void 0!==o?o:2,strokeDasharray:e.dashed?"5 5":"0",dot:!1,activeDot:C===e.key?r.jsx(j,{setTooltipPosition:f}):void 0,isAnimationActive:!1,connectNulls:!0},`${e.key}-line`)})),s.map((e=>r.jsx(t.Line,{type:"monotone",dataKey:e.key,stroke:"transparent",strokeWidth:20,onMouseOver:()=>g(e.key),dot:!!p&&(t=>r.jsx("circle",{cx:t.cx,cy:t.cy,r:10,fill:"transparent",style:{cursor:"pointer"},onClick:r=>{r.stopPropagation(),p(t.payload,t.index,e.key,r)}},`${e.key}-hit-${t.index}`)),activeDot:!1,isAnimationActive:!1,connectNulls:!0},`${e.key}-hover`)))]})})})};function g(r){var e,t,o="";if("string"==typeof r||"number"==typeof r)o+=r;else if("object"==typeof r)if(Array.isArray(r)){var s=r.length;for(e=0;e<s;e++)r[e]&&(t=g(r[e]))&&(o&&(o+=" "),o+=t)}else for(t in r)r[t]&&(o&&(o+=" "),o+=t);return o}function y(){for(var r,e,t=0,o="",s=arguments.length;t<s;t++)(r=arguments[t])&&(e=g(r))&&(o&&(o+=" "),o+=e);return o}const f=({items:e,itemStyle:t="rectangle",direction:o="horizontal",ariaLabel:s,className:a,itemClassName:l,labelClassName:n,colorClassName:i})=>{const c=(e,t)=>{const o={line:{backgroundColor:e},"dashed-line":{borderColor:e},circle:{backgroundColor:e},rectangle:{backgroundColor:e}};return r.jsx("div",{className:y("legend-swatch",`legend-swatch--${t}`,i),style:o[t]})};return r.jsx("div",{className:y("legend","vertical"===o&&"legend--vertical",a),"aria-label":s,role:s?"region":void 0,children:e.map((e=>{var o;return r.jsxs("div",{className:y("legend-item",e.onClick&&"legend-item--clickable",l),onClick:e.onClick,role:e.onClick?"button":void 0,tabIndex:e.onClick?0:void 0,onKeyDown:e.onClick?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),e.onClick())}:void 0,children:[c(e.color,null!==(o=e.style)&&void 0!==o?o:t),r.jsx("span",{className:y("legend-label",n),children:e.label})]},e.label)}))})},M=["hsl(225, 91%, 59%)","hsl(280, 91%, 59%)","hsl(330, 91%, 59%)","hsl(30, 91%, 59%)","hsl(150, 91%, 59%)","hsl(190, 91%, 59%)"],b=e=>{var o,s,a,l,n;const i=Math.PI/180,{startAngle:c,endAngle:d,fill:h}=e,x=Number(null!==(o=e.cx)&&void 0!==o?o:0),u=Number(null!==(s=e.cy)&&void 0!==s?s:0),p=Number(null!==(a=e.innerRadius)&&void 0!==a?a:0),j=Number(null!==(l=e.outerRadius)&&void 0!==l?l:0),k=Number(null!==(n=e.midAngle)&&void 0!==n?n:0),m=x+8*Math.cos(-k*i),v=u+8*Math.sin(-k*i);return r.jsx(t.Sector,{cx:m,cy:v,innerRadius:p,outerRadius:j+4,startAngle:c,endAngle:d,fill:h})},w=({data:o,variant:s="pie",showLegend:a=!1,height:l=400,showLabels:c=!1,showPercentageInTooltip:d=!1,className:h,onSliceClick:x})=>{const[u,p]=e.useState(void 0),[j,k]=e.useState(null),m=o.map(((r,e)=>{var t;return Object.assign(Object.assign({},r),{color:null!==(t=r.color)&&void 0!==t?t:M[e%M.length]})})),v=m.reduce(((r,e)=>r+e.value),0),C=Math.PI/180;return r.jsxs("div",{className:`pie-chart-container${x?" pie-chart-clickable":""}${h?` ${h}`:""}`,children:[a&&r.jsx(f,{itemStyle:"circle",items:m.map((r=>({label:r.label,color:r.color}))),className:"pie-chart-legend"}),r.jsx(t.ResponsiveContainer,{width:"100%",height:l,style:{cursor:x?"pointer":void 0},children:r.jsxs(t.PieChart,{children:[r.jsx(t.Tooltip,{content:({active:e,payload:t})=>{var o;if(!e||!(null==t?void 0:t.length)||void 0===u)return null;const s=t[0].payload,a=null!==(o=s.unit)&&void 0!==o?o:"",l=v>0?(s.value/v*100).toFixed(1):"0";return r.jsxs("div",{style:n,children:[r.jsx("div",{style:{fontSize:"0.75rem",opacity:.8},children:s.label}),r.jsx("div",{children:`${s.value}${a?` ${a}`:""}${d?` (${l}%)`:""}`})]})},wrapperStyle:i,position:null!=j?j:void 0,isAnimationActive:!1}),r.jsx(t.Pie,{data:m,dataKey:"value",nameKey:"label",cx:"50%",cy:"50%",outerRadius:"80%",innerRadius:"donut"===s?"40%":"0%",activeIndex:u,activeShape:b,onMouseEnter:(r,e)=>{var t,o,s,a,l;p(e);const n=Number(null!==(t=r.cx)&&void 0!==t?t:0),i=Number(null!==(o=r.cy)&&void 0!==o?o:0),c=Number(null!==(s=r.midAngle)&&void 0!==s?s:0),d=Number(null!==(a=r.innerRadius)&&void 0!==a?a:0),h=d+(Number(null!==(l=r.outerRadius)&&void 0!==l?l:0)-d)/2,x=n+h*Math.cos(-c*C),u=i+h*Math.sin(-c*C);k({x:x,y:u})},onMouseLeave:()=>{p(void 0),k(null)},style:{cursor:x?"pointer":void 0},onClick:x?(r,e,t)=>x(r,e,t):void 0,labelLine:!1,label:!!c&&(e=>{const{cx:t,cy:o,midAngle:s,innerRadius:a,outerRadius:l,percent:n}=e,i=a+.5*(l-a),c=t+i*Math.cos(-s*C),d=o+i*Math.sin(-s*C);return r.jsx("text",{x:c,y:d,fill:"hsl(var(--background))",textAnchor:"middle",dominantBaseline:"central",fontSize:12,children:`${(100*(null!=n?n:0)).toFixed(0)}%`})}),children:m.map(((e,o)=>r.jsx(t.Cell,{fill:e.color,stroke:"none"},`cell-${o}`)))})]})})]})},F=new Set,N=()=>{F.forEach((r=>r()))},$=({text:t,position:s="top",className:a="",contentClassName:l="",children:n,content:i,variant:c="dark",delay:d=0,maxWidth:h})=>{const[x,u]=e.useState(!1),[p,j]=e.useState({}),[k,m]=e.useState(!1),v=e.useRef(null),C=e.useRef(null),g=e.useRef(),y=e.useId(),f=i||t;e.useEffect((()=>{m(!0)}),[]);const M=e.useCallback((()=>{clearTimeout(g.current),u(!1)}),[]),b=e.useCallback((()=>{d>0?g.current=setTimeout((()=>u(!0)),d):u(!0)}),[d]),w=e.useCallback((()=>{if(!v.current||!C.current)return;const r=v.current.getBoundingClientRect(),e=C.current.getBoundingClientRect();let t=0,o=0;switch(s){case"top":t=r.top-e.height-8,o=r.left+r.width/2-e.width/2;break;case"bottom":t=r.bottom+8,o=r.left+r.width/2-e.width/2;break;case"left":t=r.top+r.height/2-e.height/2,o=r.left-e.width-8;break;case"right":t=r.top+r.height/2-e.height/2,o=r.right+8}j({top:`${t}px`,left:`${o}px`})}),[s]);e.useEffect((()=>{if(x)return w(),r=M,0===F.size&&"undefined"!=typeof window&&window.addEventListener("scroll",N,{capture:!0,passive:!0}),F.add(r),()=>(r=>{F.delete(r),0===F.size&&"undefined"!=typeof window&&window.removeEventListener("scroll",N,{capture:!0})})(M);var r}),[x,w,M]),e.useEffect((()=>()=>clearTimeout(g.current)),[]);const $=void 0!==h?"number"==typeof h?`${h}px`:h:void 0,S=r.jsx("div",{id:y,ref:C,role:"tooltip",className:`tooltip-box tooltip-box--${c}${x?" tooltip-visible":""} ${l}`,"data-position":s,style:Object.assign(Object.assign({},p),$?{maxWidth:$}:{}),children:f});return r.jsxs(r.Fragment,{children:[r.jsx("div",{ref:v,className:`tooltip-container ${a}`,"aria-describedby":x?y:void 0,onMouseEnter:b,onMouseLeave:M,onFocus:b,onBlur:M,children:n}),k&&o.createPortal(S,document.body)]})},S=({data:e,showValue:t=!0,showPercentage:o=!1,height:s,className:l,onRowClick:n,onColumnClick:i,onCellClick:c})=>{const{rows:d,columns:h,matrix:x}=e,u=x.flat(),p=Math.max(...u,0),j=r=>({backgroundColor:`hsl(var(--heatmap-hue, 225), var(--heatmap-saturation, 92%), ${(95-50*(p>0?r/p:0)).toFixed(1)}%)`}),k=r=>{const e=p>0?r/p:0;if(95-50*e<65)return{color:"hsl(0, 0%, 100%)"};return{color:`hsl(var(--heatmap-hue, 225), var(--heatmap-saturation, 92%), ${(60-30*e).toFixed(1)}%)`}},m=r=>r.toString().includes(".")?r.toFixed(2):String(r);return r.jsx("div",{className:"heatmap-container"+(l?` ${l}`:""),style:{height:s},children:r.jsxs("div",{className:"heatmap-grid",style:{gridTemplateColumns:`repeat(${h.length+1}, 1fr)`,gridTemplateRows:`auto repeat(${d.length}, 1fr)`},children:[r.jsx("div",{className:"heatmap-col-header"}),h.map((e=>r.jsx("div",{className:"heatmap-col-tooltip",children:r.jsx($,{text:e,position:"top",className:"heatmap-col-tooltip",children:r.jsx("div",{className:"heatmap-col-header heatmap-header-label",style:{cursor:i?"pointer":"default"},onClick:i?r=>i(e,r):void 0,role:i?"button":void 0,tabIndex:i?0:void 0,onKeyDown:i?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),i(e,r))}:void 0,children:e})})},e))),d.map(((e,s)=>r.jsxs(a.default.Fragment,{children:[r.jsx("div",{className:"heatmap-row-tooltip",children:r.jsx($,{text:e,position:"top",className:"heatmap-row-tooltip",children:r.jsx("div",{className:"heatmap-row-header heatmap-header-label",style:{cursor:n?"pointer":"default"},onClick:n?r=>n(e,r):void 0,role:n?"button":void 0,tabIndex:n?0:void 0,onKeyDown:n?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),n(e,r))}:void 0,children:e})})}),x[s].map(((e,l)=>{const n=d[s],i=h[l],x=p>0?(e/p*100).toFixed(0):"0",u=r.jsxs("div",{className:"heatmap-cell",style:Object.assign(Object.assign({},j(e)),{cursor:c?"pointer":void 0}),onClick:c?r=>c(n,i,e,r):void 0,onKeyDown:c?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),c(n,i,e,r))}:void 0,role:c?"button":void 0,tabIndex:c?0:void 0,children:[t&&r.jsx("div",{className:"heatmap-cell-content heatmap-cell-value-container",style:k(e),children:r.jsx("span",{children:m(e)})}),o&&r.jsx("div",{className:"heatmap-cell-content heatmap-cell-percentage-container",style:k(e),children:r.jsxs("span",{children:[x,"%"]})})]});return t||o?r.jsx(a.default.Fragment,{children:u},`${s}-${l}`):r.jsx($,{content:r.jsxs("div",{className:"heatmap-cell-tooltip-content",children:[r.jsxs("div",{children:["Value: ",m(e)]}),r.jsx("div",{children:p>0?`${(e/p*100).toFixed(0)}% of max`:"0% of max"})]}),position:"top",children:u},`${s}-${l}`)}))]},e)))]})})},A={alert:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",stroke:"currentColor"}),r.jsx("path",{d:"M12 9v4",stroke:"currentColor"}),r.jsx("path",{d:"M12 17h.01",stroke:"currentColor"})]}),"align-center":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M21 5H3",stroke:"currentColor"}),r.jsx("path",{d:"M17 12H7",stroke:"currentColor"}),r.jsx("path",{d:"M19 19H5",stroke:"currentColor"})]}),"align-left":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M21 5H3",stroke:"currentColor"}),r.jsx("path",{d:"M15 12H3",stroke:"currentColor"}),r.jsx("path",{d:"M17 19H3",stroke:"currentColor"})]}),"align-right":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M21 5H3",stroke:"currentColor"}),r.jsx("path",{d:"M21 12H9",stroke:"currentColor"}),r.jsx("path",{d:"M21 19H7",stroke:"currentColor"})]}),"arrow-down":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 5v14",stroke:"currentColor"}),r.jsx("path",{d:"m19 12-7 7-7-7",stroke:"currentColor"})]}),"arrow-down-narrow-wide":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m3 16 4 4 4-4",stroke:"currentColor"}),r.jsx("path",{d:"M7 20V4",stroke:"currentColor"}),r.jsx("path",{d:"M11 4h4",stroke:"currentColor"}),r.jsx("path",{d:"M11 8h7",stroke:"currentColor"}),r.jsx("path",{d:"M11 12h10",stroke:"currentColor"})]}),"arrow-down-wide-narrow":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m3 16 4 4 4-4",stroke:"currentColor"}),r.jsx("path",{d:"M7 20V4",stroke:"currentColor"}),r.jsx("path",{d:"M11 4h10",stroke:"currentColor"}),r.jsx("path",{d:"M11 8h7",stroke:"currentColor"}),r.jsx("path",{d:"M11 12h4",stroke:"currentColor"})]}),"arrow-left":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m12 19-7-7 7-7",stroke:"currentColor"}),r.jsx("path",{d:"M19 12H5",stroke:"currentColor"})]}),"arrow-right":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M5 12h14",stroke:"currentColor"}),r.jsx("path",{d:"m12 5 7 7-7 7",stroke:"currentColor"})]}),"arrow-up":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m5 12 7-7 7 7",stroke:"currentColor"}),r.jsx("path",{d:"M12 19V5",stroke:"currentColor"})]}),"arrow-up-narrow-wide":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m3 8 4-4 4 4",stroke:"currentColor"}),r.jsx("path",{d:"M7 4v16",stroke:"currentColor"}),r.jsx("path",{d:"M11 12h4",stroke:"currentColor"}),r.jsx("path",{d:"M11 16h7",stroke:"currentColor"}),r.jsx("path",{d:"M11 20h10",stroke:"currentColor"})]}),"arrow-up-wide-narrow":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m3 8 4-4 4 4",stroke:"currentColor"}),r.jsx("path",{d:"M7 4v16",stroke:"currentColor"}),r.jsx("path",{d:"M11 12h10",stroke:"currentColor"}),r.jsx("path",{d:"M11 16h7",stroke:"currentColor"}),r.jsx("path",{d:"M11 20h4",stroke:"currentColor"})]}),bell:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10.268 21a2 2 0 0 0 3.464 0",stroke:"currentColor"}),r.jsx("path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",stroke:"currentColor"})]}),"bell-ring":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10.268 21a2 2 0 0 0 3.464 0",stroke:"currentColor"}),r.jsx("path",{d:"M22 8c0-2.3-.8-4.3-2-6",stroke:"currentColor"}),r.jsx("path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",stroke:"currentColor"}),r.jsx("path",{d:"M4 2C2.8 3.7 2 5.7 2 8",stroke:"currentColor"})]}),bold:r.jsx("path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",stroke:"currentColor"}),building:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10 12h4",stroke:"currentColor"}),r.jsx("path",{d:"M10 8h4",stroke:"currentColor"}),r.jsx("path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",stroke:"currentColor"}),r.jsx("path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",stroke:"currentColor"}),r.jsx("path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",stroke:"currentColor"})]}),calendar:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M8 2v4",stroke:"currentColor"}),r.jsx("path",{d:"M16 2v4",stroke:"currentColor"}),r.jsx("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",stroke:"currentColor"}),r.jsx("path",{d:"M3 10h18",stroke:"currentColor"}),r.jsx("path",{d:"M8 14h.01",stroke:"currentColor"}),r.jsx("path",{d:"M12 14h.01",stroke:"currentColor"}),r.jsx("path",{d:"M16 14h.01",stroke:"currentColor"}),r.jsx("path",{d:"M8 18h.01",stroke:"currentColor"}),r.jsx("path",{d:"M12 18h.01",stroke:"currentColor"}),r.jsx("path",{d:"M16 18h.01",stroke:"currentColor"})]}),"calendar-check":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M8 2v4",stroke:"currentColor"}),r.jsx("path",{d:"M16 2v4",stroke:"currentColor"}),r.jsx("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",stroke:"currentColor"}),r.jsx("path",{d:"M3 10h18",stroke:"currentColor"}),r.jsx("path",{d:"m9 16 2 2 4-4",stroke:"currentColor"})]}),"calendar-clock":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M16 14v2.2l1.6 1",stroke:"currentColor"}),r.jsx("path",{d:"M16 2v4",stroke:"currentColor"}),r.jsx("path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",stroke:"currentColor"}),r.jsx("path",{d:"M3 10h5",stroke:"currentColor"}),r.jsx("path",{d:"M8 2v4",stroke:"currentColor"}),r.jsx("circle",{cx:"16",cy:"16",r:"6",stroke:"currentColor"})]}),"calendar-cog":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m15.228 16.852-.923-.383",stroke:"currentColor"}),r.jsx("path",{d:"m15.228 19.148-.923.383",stroke:"currentColor"}),r.jsx("path",{d:"M16 2v4",stroke:"currentColor"}),r.jsx("path",{d:"m16.47 14.305.382.923",stroke:"currentColor"}),r.jsx("path",{d:"m16.852 20.772-.383.924",stroke:"currentColor"}),r.jsx("path",{d:"m19.148 15.228.383-.923",stroke:"currentColor"}),r.jsx("path",{d:"m19.53 21.696-.382-.924",stroke:"currentColor"}),r.jsx("path",{d:"m20.772 16.852.924-.383",stroke:"currentColor"}),r.jsx("path",{d:"m20.772 19.148.924.383",stroke:"currentColor"}),r.jsx("path",{d:"M21 10.592V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",stroke:"currentColor"}),r.jsx("path",{d:"M3 10h18",stroke:"currentColor"}),r.jsx("path",{d:"M8 2v4",stroke:"currentColor"}),r.jsx("circle",{cx:"18",cy:"18",r:"3",stroke:"currentColor"})]}),"calendar-plus":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M8 2v4",stroke:"currentColor"}),r.jsx("path",{d:"M16 2v4",stroke:"currentColor"}),r.jsx("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",stroke:"currentColor"}),r.jsx("path",{d:"M3 10h18",stroke:"currentColor"}),r.jsx("path",{d:"M10 16h4",stroke:"currentColor"}),r.jsx("path",{d:"M12 14v4",stroke:"currentColor"})]}),"calendar-sync":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M11 10v4h4",stroke:"currentColor"}),r.jsx("path",{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5",stroke:"currentColor"}),r.jsx("path",{d:"M16 2v4",stroke:"currentColor"}),r.jsx("path",{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5",stroke:"currentColor"}),r.jsx("path",{d:"M21 22v-4h-4",stroke:"currentColor"}),r.jsx("path",{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3",stroke:"currentColor"}),r.jsx("path",{d:"M3 10h4",stroke:"currentColor"}),r.jsx("path",{d:"M8 2v4",stroke:"currentColor"})]}),camera:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",stroke:"currentColor"}),r.jsx("circle",{cx:"12",cy:"13",r:"3",stroke:"currentColor"})]}),check:r.jsx("path",{d:"M20 6 9 17l-5-5",stroke:"currentColor"}),"chevron-down":r.jsx("path",{d:"m6 9 6 6 6-6",stroke:"currentColor"}),"chevron-left":r.jsx("path",{d:"m15 18-6-6 6-6",stroke:"currentColor"}),"chevron-right":r.jsx("path",{d:"m9 18 6-6-6-6",stroke:"currentColor"}),"chevron-up":r.jsx("path",{d:"m18 15-6-6-6 6",stroke:"currentColor"}),"chevrons-x":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m9 7-5 5 5 5",stroke:"currentColor"}),r.jsx("path",{d:"m15 7 5 5-5 5",stroke:"currentColor"})]}),"chevrons-y":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m7 15 5 5 5-5",stroke:"currentColor"}),r.jsx("path",{d:"m7 9 5-5 5 5",stroke:"currentColor"})]}),clock:r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor"}),r.jsx("path",{d:"M12 6v6l4 2",stroke:"currentColor"})]}),"clock-alert":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 6v6l4 2",stroke:"currentColor"}),r.jsx("path",{d:"M20 12v5",stroke:"currentColor"}),r.jsx("path",{d:"M20 21h.01",stroke:"currentColor"}),r.jsx("path",{d:"M21.25 8.2A10 10 0 1 0 16 21.16",stroke:"currentColor"})]}),close:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M18 6 6 18",stroke:"currentColor"}),r.jsx("path",{d:"m6 6 12 12",stroke:"currentColor"})]}),coffee:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10 2v2",stroke:"currentColor"}),r.jsx("path",{d:"M14 2v2",stroke:"currentColor"}),r.jsx("path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",stroke:"currentColor"}),r.jsx("path",{d:"M6 2v2",stroke:"currentColor"})]}),comment:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M14 14a2 2 0 0 0 2-2V8h-2",stroke:"currentColor"}),r.jsx("path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",stroke:"currentColor"}),r.jsx("path",{d:"M8 14a2 2 0 0 0 2-2V8H8",stroke:"currentColor"})]}),"compact-view":r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",stroke:"currentColor"}),r.jsx("path",{d:"M21 9H3",stroke:"currentColor"}),r.jsx("path",{d:"M21 15H3",stroke:"currentColor"})]}),copy:r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",stroke:"currentColor"}),r.jsx("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",stroke:"currentColor"})]}),cut:r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"6",cy:"6",r:"3",stroke:"currentColor"}),r.jsx("path",{d:"M8.12 8.12 12 12",stroke:"currentColor"}),r.jsx("path",{d:"M20 4 8.12 15.88",stroke:"currentColor"}),r.jsx("circle",{cx:"6",cy:"18",r:"3",stroke:"currentColor"}),r.jsx("path",{d:"M14.8 14.8 20 20",stroke:"currentColor"})]}),dashboard:r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",stroke:"currentColor"})]}),"dots-horizontal":r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"12",cy:"12",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"19",cy:"12",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"5",cy:"12",r:"1",stroke:"currentColor"})]}),"dots-vertical":r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"12",cy:"12",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"12",cy:"5",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"12",cy:"19",r:"1",stroke:"currentColor"})]}),"double-chevron-left":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m11 17-5-5 5-5",stroke:"currentColor"}),r.jsx("path",{d:"m18 17-5-5 5-5",stroke:"currentColor"})]}),"double-chevron-right":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m6 17 5-5-5-5",stroke:"currentColor"}),r.jsx("path",{d:"m13 17 5-5-5-5",stroke:"currentColor"})]}),download:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 15V3",stroke:"currentColor"}),r.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",stroke:"currentColor"}),r.jsx("path",{d:"m7 10 5 5 5-5",stroke:"currentColor"})]}),"drag-handle":r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"9",cy:"12",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"9",cy:"5",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"9",cy:"19",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"15",cy:"12",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"15",cy:"5",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"15",cy:"19",r:"1",stroke:"currentColor"})]}),edit:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",stroke:"currentColor"}),r.jsx("path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",stroke:"currentColor"})]}),envelope:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",stroke:"currentColor"}),r.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",stroke:"currentColor"})]}),"external-link":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M15 3h6v6",stroke:"currentColor"}),r.jsx("path",{d:"M10 14 21 3",stroke:"currentColor"}),r.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",stroke:"currentColor"})]}),eye:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",stroke:"currentColor"}),r.jsx("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor"})]}),"eye-off":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",stroke:"currentColor"}),r.jsx("path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",stroke:"currentColor"}),r.jsx("path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",stroke:"currentColor"}),r.jsx("path",{d:"m2 2 20 20",stroke:"currentColor"})]}),file:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",stroke:"currentColor"}),r.jsx("path",{d:"M14 2v5a1 1 0 0 0 1 1h5",stroke:"currentColor"})]}),"file-code":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",stroke:"currentColor"}),r.jsx("path",{d:"M14 2v5a1 1 0 0 0 1 1h5",stroke:"currentColor"}),r.jsx("path",{d:"m5 16-3 3 3 3",stroke:"currentColor"}),r.jsx("path",{d:"m9 22 3-3-3-3",stroke:"currentColor"})]}),filter:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M2 5h20",stroke:"currentColor"}),r.jsx("path",{d:"M6 12h12",stroke:"currentColor"}),r.jsx("path",{d:"M9 19h6",stroke:"currentColor"})]}),"filter-plus":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 5H2",stroke:"currentColor"}),r.jsx("path",{d:"M6 12h12",stroke:"currentColor"}),r.jsx("path",{d:"M9 19h6",stroke:"currentColor"}),r.jsx("path",{d:"M16 5h6",stroke:"currentColor"}),r.jsx("path",{d:"M19 8V2",stroke:"currentColor"})]}),flag:r.jsx("path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",stroke:"currentColor"}),forbidden:r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor"}),r.jsx("path",{d:"M4.929 4.929 19.07 19.071",stroke:"currentColor"})]}),grid:r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",stroke:"currentColor"})]}),hint:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",stroke:"currentColor"}),r.jsx("path",{d:"M9 18h6",stroke:"currentColor"}),r.jsx("path",{d:"M10 22h4",stroke:"currentColor"})]}),hospital:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 7v4",stroke:"currentColor"}),r.jsx("path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",stroke:"currentColor"}),r.jsx("path",{d:"M14 9h-4",stroke:"currentColor"}),r.jsx("path",{d:"M18 11h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2",stroke:"currentColor"}),r.jsx("path",{d:"M18 21V5a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16",stroke:"currentColor"})]}),home:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",stroke:"currentColor"}),r.jsx("path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",stroke:"currentColor"})]}),image:r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",stroke:"currentColor"}),r.jsx("circle",{cx:"9",cy:"9",r:"2",stroke:"currentColor"}),r.jsx("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",stroke:"currentColor"})]}),inbox:r.jsxs(r.Fragment,{children:[r.jsx("polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",stroke:"currentColor"}),r.jsx("path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",stroke:"currentColor"})]}),info:r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor"}),r.jsx("path",{d:"M12 16v-4",stroke:"currentColor"}),r.jsx("path",{d:"M12 8h.01",stroke:"currentColor"})]}),italic:r.jsxs(r.Fragment,{children:[r.jsx("line",{x1:"19",x2:"10",y1:"4",y2:"4",stroke:"currentColor"}),r.jsx("line",{x1:"14",x2:"5",y1:"20",y2:"20",stroke:"currentColor"}),r.jsx("line",{x1:"15",x2:"9",y1:"4",y2:"20",stroke:"currentColor"})]}),layout:r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"7",x:"14",y:"3",rx:"7",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"7",x:"3",y:"14",rx:"7",stroke:"currentColor"})]}),library:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m16 6 4 14",stroke:"currentColor"}),r.jsx("path",{d:"M12 6v14",stroke:"currentColor"}),r.jsx("path",{d:"M8 8v12",stroke:"currentColor"}),r.jsx("path",{d:"M4 4v16",stroke:"currentColor"})]}),link:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",stroke:"currentColor"}),r.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",stroke:"currentColor"})]}),list:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 5h.01",stroke:"currentColor"}),r.jsx("path",{d:"M3 12h.01",stroke:"currentColor"}),r.jsx("path",{d:"M3 19h.01",stroke:"currentColor"}),r.jsx("path",{d:"M8 5h13",stroke:"currentColor"}),r.jsx("path",{d:"M8 12h13",stroke:"currentColor"}),r.jsx("path",{d:"M8 19h13",stroke:"currentColor"})]}),"list-ol":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M11 5h10",stroke:"currentColor"}),r.jsx("path",{d:"M11 12h10",stroke:"currentColor"}),r.jsx("path",{d:"M11 19h10",stroke:"currentColor"}),r.jsx("path",{d:"M4 4h1v5",stroke:"currentColor"}),r.jsx("path",{d:"M4 9h2",stroke:"currentColor"}),r.jsx("path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",stroke:"currentColor"})]}),"list-ul":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 5h18",stroke:"currentColor"}),r.jsx("path",{d:"M3 12h18",stroke:"currentColor"}),r.jsx("path",{d:"M3 19h18",stroke:"currentColor"})]}),"log-in":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m10 17 5-5-5-5",stroke:"currentColor"}),r.jsx("path",{d:"M15 12H3",stroke:"currentColor"}),r.jsx("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",stroke:"currentColor"})]}),"log-out":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m16 17 5-5-5-5",stroke:"currentColor"}),r.jsx("path",{d:"M21 12H9",stroke:"currentColor"}),r.jsx("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",stroke:"currentColor"})]}),maximize:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M15 3h6v6",stroke:"currentColor"}),r.jsx("path",{d:"m21 3-7 7",stroke:"currentColor"}),r.jsx("path",{d:"m3 21 7-7",stroke:"currentColor"}),r.jsx("path",{d:"M9 21H3v-6",stroke:"currentColor"})]}),message:r.jsx("path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",stroke:"currentColor"}),minimize:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m14 10 7-7",stroke:"currentColor"}),r.jsx("path",{d:"M20 10h-6V4",stroke:"currentColor"}),r.jsx("path",{d:"m3 21 7-7",stroke:"currentColor"}),r.jsx("path",{d:"M4 14h6v6",stroke:"currentColor"})]}),minus:r.jsx("path",{d:"M5 12h14",stroke:"currentColor"}),note:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",stroke:"currentColor"}),r.jsx("path",{d:"M15 3v5a1 1 0 0 0 1 1h5",stroke:"currentColor"})]}),paste:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M11 14h10",stroke:"currentColor"}),r.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",stroke:"currentColor"}),r.jsx("path",{d:"m17 18 4-4-4-4",stroke:"currentColor"}),r.jsx("path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",stroke:"currentColor"}),r.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",stroke:"currentColor"})]}),phone:r.jsx("path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",stroke:"currentColor"}),plus:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M5 12h14",stroke:"currentColor"}),r.jsx("path",{d:"M12 5v14",stroke:"currentColor"})]}),quote:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",stroke:"currentColor"}),r.jsx("path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",stroke:"currentColor"})]}),redo:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M21 7v6h-6",stroke:"currentColor"}),r.jsx("path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",stroke:"currentColor"})]}),refresh:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",stroke:"currentColor"}),r.jsx("path",{d:"M21 3v5h-5",stroke:"currentColor"}),r.jsx("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",stroke:"currentColor"}),r.jsx("path",{d:"M8 16H3v5",stroke:"currentColor"})]}),"relaxed-view":r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",stroke:"currentColor"}),r.jsx("path",{d:"M3 12h18",stroke:"currentColor"})]}),search:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m21 21-4.34-4.34",stroke:"currentColor"}),r.jsx("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor"})]}),send:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",stroke:"currentColor"}),r.jsx("path",{d:"M6 12h16",stroke:"currentColor"})]}),settings:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",stroke:"currentColor"}),r.jsx("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor"})]}),shuffle:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m18 14 4 4-4 4",stroke:"currentColor"}),r.jsx("path",{d:"m18 2 4 4-4 4",stroke:"currentColor"}),r.jsx("path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",stroke:"currentColor"}),r.jsx("path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",stroke:"currentColor"}),r.jsx("path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",stroke:"currentColor"})]}),stats:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 3v16a2 2 0 0 0 2 2h16",stroke:"currentColor"}),r.jsx("path",{d:"M18 17V9",stroke:"currentColor"}),r.jsx("path",{d:"M13 17V5",stroke:"currentColor"}),r.jsx("path",{d:"M8 17v-3",stroke:"currentColor"})]}),strikethrough:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M16 4H9a3 3 0 0 0-2.83 4",stroke:"currentColor"}),r.jsx("path",{d:"M14 12a4 4 0 0 1 0 8H6",stroke:"currentColor"}),r.jsx("line",{x1:"4",x2:"20",y1:"12",y2:"12",stroke:"currentColor"})]}),swap:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M8 3 4 7l4 4",stroke:"currentColor"}),r.jsx("path",{d:"M4 7h16",stroke:"currentColor"}),r.jsx("path",{d:"m16 21 4-4-4-4",stroke:"currentColor"}),r.jsx("path",{d:"M20 17H4",stroke:"currentColor"})]}),"swap-vertical":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m3 16 4 4 4-4",stroke:"currentColor"}),r.jsx("path",{d:"M7 20V4",stroke:"currentColor"}),r.jsx("path",{d:"m21 8-4-4-4 4",stroke:"currentColor"}),r.jsx("path",{d:"M17 4v16",stroke:"currentColor"})]}),trash:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10 11v6",stroke:"currentColor"}),r.jsx("path",{d:"M14 11v6",stroke:"currentColor"}),r.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",stroke:"currentColor"}),r.jsx("path",{d:"M3 6h18",stroke:"currentColor"}),r.jsx("path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",stroke:"currentColor"})]}),underline:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M6 4v6a6 6 0 0 0 12 0V4",stroke:"currentColor"}),r.jsx("line",{x1:"4",x2:"20",y1:"20",y2:"20",stroke:"currentColor"})]}),undo:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 7v6h6",stroke:"currentColor"}),r.jsx("path",{d:"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",stroke:"currentColor"})]}),upload:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 3v12",stroke:"currentColor"}),r.jsx("path",{d:"m17 8-5-5-5 5",stroke:"currentColor"}),r.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",stroke:"currentColor"})]}),user:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",stroke:"currentColor"}),r.jsx("circle",{cx:"12",cy:"7",r:"4",stroke:"currentColor"})]}),"user-check":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m16 11 2 2 4-4",stroke:"currentColor"}),r.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",stroke:"currentColor"}),r.jsx("circle",{cx:"9",cy:"7",r:"4",stroke:"currentColor"})]}),users:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",stroke:"currentColor"}),r.jsx("path",{d:"M16 3.128a4 4 0 0 1 0 7.744",stroke:"currentColor"}),r.jsx("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",stroke:"currentColor"}),r.jsx("circle",{cx:"9",cy:"7",r:"4",stroke:"currentColor"})]}),wand:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",stroke:"currentColor"}),r.jsx("path",{d:"m14 7 3 3",stroke:"currentColor"}),r.jsx("path",{d:"M5 6v4",stroke:"currentColor"}),r.jsx("path",{d:"M19 14v4",stroke:"currentColor"}),r.jsx("path",{d:"M10 2v2",stroke:"currentColor"}),r.jsx("path",{d:"M7 8H3",stroke:"currentColor"}),r.jsx("path",{d:"M21 16h-4",stroke:"currentColor"}),r.jsx("path",{d:"M11 3H9",stroke:"currentColor"})]}),"zoom-in":r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor"}),r.jsx("line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",stroke:"currentColor"}),r.jsx("line",{x1:"11",x2:"11",y1:"8",y2:"14",stroke:"currentColor"}),r.jsx("line",{x1:"8",x2:"14",y1:"11",y2:"11",stroke:"currentColor"})]}),"zoom-out":r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor"}),r.jsx("line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",stroke:"currentColor"}),r.jsx("line",{x1:"8",x2:"14",y1:"11",y2:"11",stroke:"currentColor"})]}),sort:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 5h8",stroke:"currentColor"}),r.jsx("path",{d:"M3 12h8",stroke:"currentColor"}),r.jsx("path",{d:"M3 19h8",stroke:"currentColor"}),r.jsx("path",{d:"m15 8 3-3 3 3",stroke:"currentColor"}),r.jsx("path",{d:"m15 16 3 3 3-3",stroke:"currentColor"})]}),sun:r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"12",cy:"12",r:"4",stroke:"currentColor"}),r.jsx("path",{d:"M12 2v2",stroke:"currentColor"}),r.jsx("path",{d:"M12 20v2",stroke:"currentColor"}),r.jsx("path",{d:"m4.93 4.93 1.41 1.41",stroke:"currentColor"}),r.jsx("path",{d:"m17.66 17.66 1.41 1.41",stroke:"currentColor"}),r.jsx("path",{d:"M2 12h2",stroke:"currentColor"}),r.jsx("path",{d:"M20 12h2",stroke:"currentColor"}),r.jsx("path",{d:"m6.34 17.66-1.41 1.41",stroke:"currentColor"}),r.jsx("path",{d:"m19.07 4.93-1.41 1.41",stroke:"currentColor"})]}),moon:r.jsx("path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",stroke:"currentColor"}),tool:r.jsx("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",stroke:"currentColor"}),hook:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m17.586 11.414-5.93 5.93a1 1 0 0 1-8-8l3.137-3.137a.707.707 0 0 1 1.207.5V10",stroke:"currentColor"}),r.jsx("path",{d:"M20.414 8.586 22 7",stroke:"currentColor"}),r.jsx("circle",{cx:"19",cy:"10",r:"2",stroke:"currentColor"})]}),component:r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"18",height:"12",x:"3",y:"8",rx:"1",stroke:"currentColor"}),r.jsx("path",{d:"M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3",stroke:"currentColor"}),r.jsx("path",{d:"M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3",stroke:"currentColor"})]}),"arrow-up-right":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M7 7h10v10",stroke:"currentColor"}),r.jsx("path",{d:"M7 17 17 7",stroke:"currentColor"})]}),chart:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 3v16a2 2 0 0 0 2 2h16",stroke:"currentColor"}),r.jsx("path",{d:"m19 9-5 5-4-4-3 3",stroke:"currentColor"})]}),star:r.jsx("path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",stroke:"currentColor"}),sparkles:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",stroke:"currentColor"}),r.jsx("path",{d:"M20 2v4",stroke:"currentColor"}),r.jsx("path",{d:"M22 4h-4",stroke:"currentColor"}),r.jsx("circle",{cx:"4",cy:"20",r:"2",stroke:"currentColor"})]}),terminal:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 19h8",stroke:"currentColor"}),r.jsx("path",{d:"m4 17 6-6-6-6",stroke:"currentColor"})]}),shield:r.jsx("path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",stroke:"currentColor"}),code:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m18 16 4-4-4-4",stroke:"currentColor"}),r.jsx("path",{d:"m6 8-4 4 4 4",stroke:"currentColor"}),r.jsx("path",{d:"m14.5 4-5 16",stroke:"currentColor"})]})},L=e=>{var t,{icon:o,size:s=24,tooltip:a,tooltipPosition:n="top",tooltipVariant:i="dark",strokeWidth:c=2}=e,d=l(e,["icon","size","tooltip","tooltipPosition","tooltipVariant","strokeWidth"]);const h=null!==(t=A[o])&&void 0!==t?t:null,x=r.jsx("svg",Object.assign({height:s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:c,strokeLinecap:"round",strokeLinejoin:"round"},d,{children:h}));if(null!=a){const e="string"==typeof a?{text:a}:{content:a};return r.jsx($,Object.assign({},e,{position:n,variant:i,children:x}))}return x},z=r=>{if(Number.isInteger(r))return String(r);return(Math.abs(r)<1?r.toFixed(3):r.toFixed(2)).replace(/\.?0+$/,"")},H=r=>`${r>=0?"+":"−"}${Math.abs(r).toFixed(2).replace(/\.?0+$/,"")}`,O=({active:e,payload:t,colors:o})=>{if(!e||!(null==t?void 0:t.length))return null;const s=t[0].payload,a=s.contribution>=0;return r.jsxs("div",{style:Object.assign(Object.assign({},n),{width:220,whiteSpace:"normal",overflowWrap:"break-word"}),children:[r.jsx("div",{style:{fontWeight:600},children:s.feature}),void 0!==s.value&&r.jsxs("div",{style:{fontSize:"0.75rem",opacity:.8},children:["value: ",String(s.value)]}),r.jsx("div",{style:{color:a?o.positive:o.negative},children:H(s.contribution)})]})},E=({x:e=0,y:t=0,width:o=0,height:s=0,payload:a,index:l=0,colors:n,onBarClick:i})=>{if(!a)return null;const c=a.contribution>=0,d=c?n.positive:n.negative,h=!!i,x=i?r=>i({feature:a.feature,code:a.code,value:a.value,contribution:a.contribution},l,r):void 0,u=Math.max(0,Math.min(5,o,s/2)),p=t+s/2,j=(c?[[e,t],[e+o-u,t],[e+o,p],[e+o-u,t+s],[e,t+s]]:[[e+o,t],[e+u,t],[e,p],[e+u,t+s],[e+o,t+s]]).map((r=>r.join(","))).join(" "),k=H(a.contribution),m=o>7*k.length+14,v=m?e+o/2:c?e+o+5:e-5;return r.jsxs("g",{onClick:x,style:h?{cursor:"pointer"}:void 0,children:[r.jsx("polygon",{points:j,fill:d}),r.jsx("text",{x:v,y:p,dy:4,textAnchor:m?"middle":c?"start":"end",fontSize:12,fontWeight:m?600:400,fill:m?"hsl(var(--primary-foreground))":d,children:k})]})},V=({x:e,y:t,payload:o,labelWidth:s})=>{const a=String(o.value),l=a.indexOf("␟"),n=l>=0?a.slice(0,l):"",i=l>=0?a.slice(l+1):a,c=n?`${n} = ${i}`:i;return r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("foreignObject",{x:-s-4,y:-16,width:s,height:32,children:r.jsxs("div",{title:c,className:"waterfall-chart-y-label",children:[n&&r.jsxs("span",{className:"waterfall-chart-y-value",children:[n," = "]}),r.jsx("span",{className:"waterfall-chart-y-feature",children:i})]})})})},T=({x:e,y:t,payload:o})=>r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("text",{x:0,y:0,dy:16,textAnchor:"middle",fill:"hsl(var(--muted-200))",fontSize:12,children:z(Number(o.value))})}),R=({data:o,baseValue:s,prediction:a,maxFeatures:l,colors:n,compact:c,height:d=400,className:h,probSuffix:x="_prob",valueSuffix:u="_value",onBarClick:p})=>{var j,k;const m={positive:null!==(j=null==n?void 0:n.positive)&&void 0!==j?j:"hsl(var(--destructive))",negative:null!==(k=null==n?void 0:n.negative)&&void 0!==k?k:"hsl(var(--primary))"},v=(r=>{const[t,o]=e.useState(!1);return e.useEffect((()=>{if("undefined"==typeof window)return;const e=window.matchMedia(r);e.matches!==t&&o(e.matches);const s=()=>{o(e.matches)};return e.addEventListener("change",s),()=>e.removeEventListener("change",s)}),[t,r]),t})("(max-width: 640px)"),C=null!=c?c:v,{rows:g,base:y,finalPrediction:f,domain:M,legend:b}=e.useMemo((()=>{var r,e;const t=(r=>Array.isArray(r))(o)?{features:o,base:void 0,prediction:void 0}:((r,e,t)=>{const o=[];let s,a;for(const[l,n]of Object.entries(r))if("E(f(x))"!==l)if("f(x)"!==l){if(l.endsWith(e)){const s=l.slice(0,-e.length),a=s+t;o.push({feature:s,value:a in r?r[a]:void 0,contribution:Number(n)})}}else a=Number(n);else s=Number(n);return{features:o,base:s,prediction:a}})(o,x,u),n=null!==(r=null!=s?s:t.base)&&void 0!==r?r:0,i=[...t.features].sort(((r,e)=>Math.abs(e.contribution)-Math.abs(r.contribution)));let c=i,d=null;if(void 0!==l&&l>0&&i.length>l){c=i.slice(0,l);const r=i.slice(l),e=r.reduce(((r,e)=>r+e.contribution),0);d={feature:`${r.length} other feature${1===r.length?"":"s"}`,contribution:e}}const h=d?[...c,d]:c;let p=n,j=n,k=n;const m=h.map(((r,e)=>{const t=p,o=p+r.contribution;p=o,j=Math.min(j,t,o),k=Math.max(k,t,o);const s=void 0===r.value?"":"number"==typeof r.value?z(r.value):String(r.value),a=(r=>{let e=r,t="";do{t=String.fromCharCode(65+e%26)+t,e=Math.floor(e/26)-1}while(e>=0);return t})(e);return{label:`${s}␟${C?a:r.feature}`,feature:r.feature,code:a,value:r.value,contribution:r.contribution,offset:Math.min(t,o),span:Math.abs(r.contribution)}})),v=C?m.map((r=>({code:r.code,feature:r.feature}))):[],g=null!=a?a:t.features.length?p:null!==(e=t.prediction)&&void 0!==e?e:n;j=Math.min(j,g),k=Math.max(k,g);const y=.12*(k-j||1);return{rows:m,base:n,finalPrediction:g,domain:[j-y,k+y],legend:v}}),[o,s,a,l,x,u,C]),w=C?56:200;return r.jsxs("div",{className:"waterfall-chart-container"+(h?` ${h}`:""),children:[r.jsx(t.ResponsiveContainer,{width:"100%",height:d,children:r.jsxs(t.BarChart,{data:g,layout:"vertical",barCategoryGap:"28%",margin:{top:24,right:40,left:10,bottom:24},children:[r.jsx(t.XAxis,{type:"number",domain:M,allowDataOverflow:!0,axisLine:{stroke:"hsl(var(--muted-200))"},tickLine:{stroke:"hsl(var(--muted-200))"},tick:e=>r.jsx(T,Object.assign({},e))}),r.jsx(t.YAxis,{type:"category",dataKey:"label",axisLine:!1,tickLine:!1,tick:e=>r.jsx(V,Object.assign({},e,{labelWidth:w})),width:w+8,interval:0}),r.jsx(t.Tooltip,{cursor:{fill:"hsl(var(--muted) / 0.35)"},content:r.jsx(O,{colors:m}),wrapperStyle:i,isAnimationActive:!1}),r.jsx(t.ReferenceLine,{x:y,stroke:"hsl(var(--muted-200))",strokeDasharray:"4 4",label:{value:`E[f(x)] = ${z(y)}`,position:"bottom",fill:"hsl(var(--muted-200))",fontSize:12,fontWeight:600}}),r.jsx(t.ReferenceLine,{x:f,stroke:"hsl(var(--foreground))",strokeDasharray:"4 4",label:{value:`f(x) = ${z(f)}`,position:"top",fill:"hsl(var(--foreground))",fontSize:12,fontWeight:600}}),r.jsx(t.Bar,{dataKey:"offset",stackId:"w",fill:"transparent",isAnimationActive:!1}),r.jsx(t.Bar,{dataKey:"span",stackId:"w",isAnimationActive:!1,shape:e=>r.jsx(E,Object.assign({},e,{colors:m,onBarClick:p}))})]})}),b.length>0&&r.jsxs("details",{className:"waterfall-chart-legend",children:[r.jsxs("summary",{className:"waterfall-chart-legend-summary",children:[r.jsx("span",{className:"waterfall-chart-legend-title",children:"Feature legend"}),r.jsx(L,{icon:"chevron-down",className:"waterfall-chart-legend-icon"})]}),r.jsx("dl",{className:"waterfall-chart-legend-list",children:b.map((e=>r.jsxs("div",{className:"waterfall-chart-legend-item",children:[r.jsx("dt",{className:"waterfall-chart-legend-code",children:e.code}),r.jsx("dd",{className:"waterfall-chart-legend-name",children:e.feature})]},e.code)))})]})]})},D=r=>{if(!r)return"";return r.split(/(?=[A-Z])|[_-]/g).map((r=>r.trim())).filter((r=>r.length>0)).map(((r,e)=>0===e?r.charAt(0).toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase())).join(" ")},I=["hsl(var(--primary))","hsl(var(--primary-200))","hsl(var(--primary-400))"],K=["hsl(var(--primary))","hsl(var(--primary-400))"],W=["hsl(225, 91%, 59%)","hsl(280, 91%, 59%)","hsl(330, 91%, 59%)","hsl(30, 91%, 59%)","hsl(150, 91%, 59%)","hsl(190, 91%, 59%)"];const P=({data:e,headerHeight:t})=>r.jsxs("div",{className:"stat-chart-difference-col",children:[r.jsx("p",{className:"stat-chart-difference-title",style:{height:t},children:"Difference"}),e.map(((e,t)=>{const o=e.value2-e.value1,s=0===e.value1?o>0?100:0:o/e.value1*100,a=o>=0,l=a?"stat-chart-difference-positive":"stat-chart-difference-negative",n=a?"arrow-up":"arrow-down";return r.jsxs("div",{className:"stat-chart-difference-row",children:[r.jsxs("span",{className:l,children:[r.jsx(L,{icon:n,size:14}),Math.abs(o).toLocaleString()]}),r.jsxs("span",{className:l,children:[r.jsx(L,{icon:n,size:14}),Math.abs(Math.round(s)),"%"]})]},t)}))]}),B=({label:e,labelWidth:t,value:o,rowMax:s,fillColor:a,trackColor:l,showTrack:n,reversed:i=!1,tooltipText:c})=>{const d=s>0?Math.min(o/s*100,100):0,h=r.jsx("div",{style:Object.assign({position:"absolute",top:0,bottom:0,width:`${d}%`,backgroundColor:a},i?{right:0}:{left:0})}),x=r.jsx($,{text:c,position:"top",className:"stat-chart-bar-tooltip",children:r.jsx("div",{className:"stat-chart-bar-track",style:{backgroundColor:n?l:"hsl(var(--muted-50))"},children:h})});return r.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.625rem",height:48,flexDirection:i?"row-reverse":"row"},children:[!i&&void 0!==e&&r.jsx("span",{style:{width:t,flexShrink:0,fontSize:"0.8125rem",color:"hsl(var(--muted-200))",textAlign:"right",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:e,children:e}),x]})},G=11;function X({item:e}){const t=e.rangeEnd-e.rangeStart,o=Math.max(e.barStart,e.rangeStart),s=Math.min(e.barEnd,e.rangeEnd),a=Math.max(0,s-o),l=Math.max(0,e.barEnd-e.rangeEnd),n=e.barEnd-e.barStart,i=t>0?(a/t).toFixed(2):"0.00",c=Math.round(60*l),d=n>0?(l/n).toFixed(2):"0.00";return r.jsxs("div",{className:"gantt-tooltip-content",children:[r.jsxs("div",{children:["Range Utilization: ",i]}),l>0&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:["Overflow Time: ",c," min"]}),r.jsxs("div",{children:["Overflow Utilization: ",d]})]})]})}exports.BarChart=p,exports.Chart=e=>{var{type:t,title:o,info:s,description:a,kpis:n,data:i,height:c=400,className:d}=e,h=l(e,["type","title","info","description","kpis","data","height","className"]);return r.jsxs("div",{className:"chart-container"+(d?` ${d}`:""),children:[r.jsxs("div",{className:"chart-header",children:[r.jsxs("div",{className:"chart-header-content",children:[(o||s)&&r.jsxs("div",{className:"chart-title-container",children:[o&&r.jsx("h3",{className:"chart-title",children:o}),s&&r.jsx($,{text:s,position:"top",children:r.jsx(L,{icon:"info",size:16,className:"chart-info-icon"})})]}),a&&r.jsx("p",{className:"chart-description",children:a})]}),r.jsxs("div",{className:"chart-metadata",children:[(null==n?void 0:n.length)?r.jsx("div",{className:"chart-kpis",children:n.map(((e,t)=>r.jsxs("div",{className:"chart-kpi",children:[r.jsx("div",{className:"chart-kpi-label",children:e.label}),r.jsx("div",{className:"chart-kpi-value",children:e.value})]},t)))}):null,"pie"!==t&&"heatmap"!==t&&r.jsx(f,{items:(()=>{var r,e,o,s;switch(t){case"bar":case"line":{const r=i[0];if(!r)return[];const e="line"===t?K:I;return Object.keys(r).filter((r=>"x"!==r)).map(((r,o)=>({label:D(r),color:e[o%e.length],style:"line"===t?"line":"rectangle"})))}case"pie":return i.map(((r,e)=>{var t;return{label:D(r.label),color:null!==(t=r.color)&&void 0!==t?t:W[e%W.length],style:"circle"}}));case"waterfall":{const t=h;return[{label:"Pushes higher",color:null!==(e=null===(r=t.colors)||void 0===r?void 0:r.positive)&&void 0!==e?e:"hsl(var(--destructive))",style:"rectangle"},{label:"Pushes lower",color:null!==(s=null===(o=t.colors)||void 0===o?void 0:o.negative)&&void 0!==s?s:"hsl(var(--primary))",style:"rectangle"}]}default:return[]}})(),className:"chart-legend"})]})]}),(()=>{switch(t){case"bar":{const e=i,t=h,o=e.length>0?Object.keys(e[0]).filter((r=>"x"!==r)).map(((r,e)=>({key:r,color:I[e%I.length],label:r}))):[];return r.jsx(p,{data:e,height:c,bars:o,layout:t.layout,orientation:t.orientation,showGrid:!0,showLegend:!1})}case"line":{const e=i,t=e.length>0?Object.keys(e[0]).filter((r=>"x"!==r)).map(((r,e)=>({key:r,color:K[e%K.length],label:r}))):[];return r.jsx(C,{data:e,height:c,lines:t,showGrid:!0,showLegend:!1,showGradient:!0,showTooltipLabel:!0})}case"pie":{const e=i.map(((r,e)=>{var t;return Object.assign(Object.assign({},r),{color:null!==(t=r.color)&&void 0!==t?t:W[e%W.length]})}));return r.jsx(w,{data:e,height:c,showLegend:!0,showLabels:!0})}case"heatmap":return r.jsx(S,{data:i,height:c,showValue:!0,showPercentage:!0});case"waterfall":{const e=h;return r.jsx(R,Object.assign({data:i,height:c},e))}default:return null}})()]})},exports.GanttChart=({data:t,minTime:o=0,maxTime:s=24,tickInterval:a=2,rangeColor:l="hsl(225, 91%, 80%)",barColor:n="hsl(225, 91%, 50%)",overflowColor:i="hsl(350, 80%, 68%)",rangeLabel:c="Range",barLabel:d="Bar",showLegend:h=!0,labelWidth:x,className:u,onRowClick:p})=>{const j=null!=x?x:90,k=s-o,m=e.useCallback((r=>(r-o)/k*100),[o,k]),v=r=>{const e=Math.floor(r);return`${e}:${Math.round(60*(r-e)).toString().padStart(2,"0")}`},C=[];for(let r=o;r<=s;r+=a)C.push(r);return r.jsxs("div",{className:"gantt-chart-container"+(u?` ${u}`:""),children:[h&&r.jsx(f,{direction:"horizontal",itemStyle:"line",items:[{label:c,color:l},{label:d,color:n}],className:"gantt-chart-legend"}),r.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[r.jsxs("div",{style:{width:j,flexShrink:0},children:[t.map((e=>r.jsx("div",{style:{height:44,display:"flex",alignItems:"center",paddingRight:"0.75rem",fontSize:"0.8125rem",color:"hsl(var(--muted-200))"},children:e.label},e.label))),r.jsx("div",{style:{height:32,display:"flex",alignItems:"flex-start",paddingTop:10,fontSize:"0.75rem",color:"hsl(var(--muted-200))"},children:"Time"})]}),r.jsxs("div",{style:{flex:1,minWidth:0,position:"relative"},children:[C.map((e=>r.jsx("div",{style:{position:"absolute",left:`${m(e)}%`,top:0,bottom:32,width:1,backgroundColor:"hsl(var(--muted-50))",pointerEvents:"none"}},e))),t.map((e=>{const t=m(e.rangeStart),o=m(e.rangeEnd)-t,s=m(e.barStart),a=Math.min(e.barEnd,e.rangeEnd),c=m(a)-s,d=e.barEnd>e.rangeEnd,h=m(e.rangeEnd),x=m(e.barEnd)-h,u=16.5,j=m(e.barStart),k=m(e.barEnd),v=Math.max(0,k-j),C=v>0;return r.jsxs("div",{style:{height:44,position:"relative",cursor:p?"pointer":"default"},onClick:p?r=>p(e,r):void 0,onKeyDown:p?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),p(e,r))}:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,children:[r.jsx("div",{style:{position:"absolute",left:`${t}%`,width:`${Math.max(o,0)}%`,height:16,top:14,backgroundColor:l,borderRadius:8}}),c>0&&r.jsx("div",{style:{position:"absolute",left:`${s}%`,width:`${Math.max(c,0)}%`,height:G,top:u,backgroundColor:n,borderRadius:d?"5.5px 0 0 5.5px":5.5,zIndex:1}}),d&&x>0&&r.jsx("div",{style:{position:"absolute",left:`${h}%`,width:`${Math.max(x,0)}%`,height:G,top:u,background:`linear-gradient(to right, ${n}, ${i})`,borderRadius:"0 5.5px 5.5px 0",zIndex:1}}),C&&r.jsx("div",{style:{position:"absolute",left:`${j}%`,width:`${v}%`,top:u,height:G,zIndex:2},children:r.jsx($,{content:r.jsx(X,{item:e}),position:"top",className:"gantt-bar-tooltip",maxWidth:280,children:r.jsx("div",{className:"gantt-bar-tooltip-hit"})})})]},e.label)})),r.jsx("div",{style:{height:32,position:"relative",borderTop:"1px solid hsl(var(--muted-50))"},children:C.map((e=>r.jsx("div",{style:{position:"absolute",left:`${m(e)}%`,top:8,transform:"translateX(-50%)",fontSize:11,color:"hsl(var(--muted-200))",whiteSpace:"nowrap"},children:v(e)},e)))})]})]})]})},exports.HeatmapChart=S,exports.Legend=f,exports.LineChart=C,exports.PieChart=w,exports.StatChart=({data:e,compareData:t,primaryColor:o="hsl(var(--primary))",primaryLabel:s,compareColor:a="hsl(225, 65%, 62%)",compareLabel:l,trackColor:n="hsl(var(--primary-muted))",compareTrackColor:i,unit:c,showDifference:d=!1,height:h,className:x})=>{const u=null!=i?i:"hsl(225, 65%, 88%)",p=r=>`${r.toLocaleString()}${c?` ${c}`:""}`;if(!t){const t=e.some((r=>void 0!==r.total)),s=Math.max(...e.map((r=>r.value))),a=function(r){const e=r.reduce(((r,e)=>Math.max(r,e.length)),0),t=Math.ceil(7*e)+8;return Math.min(Math.max(t,48),200)}(e.map((r=>r.label)));return r.jsx("div",{className:"stat-chart-container"+(x?` ${x}`:""),style:{height:h},children:e.map((e=>{var l;const i=t?null!==(l=e.total)&&void 0!==l?l:e.value:s;return r.jsx(B,{label:e.label,labelWidth:a,value:e.value,rowMax:i,fillColor:o,trackColor:n,showTrack:t&&void 0!==e.total,tooltipText:p(e.value)},e.label)}))})}const j=e.map((r=>{const e=t.find((e=>e.label===r.label));return e?{label:r.label,current:r,previous:e}:null})).filter((r=>null!==r));if(!j.length)return null;const k=e.some((r=>void 0!==r.total)),m=k?void 0:Math.max(...e.map((r=>r.value)),...t.map((r=>r.value))),v=l||s?32:0,C=j.map((({previous:r,current:e})=>({value1:r.value,value2:e.value})));return r.jsxs("div",{className:"stat-chart-compare-wrapper"+(x?` ${x}`:""),style:{height:h},children:[r.jsxs("div",{className:"stat-chart-compare-section",children:[l&&r.jsx("div",{className:"stat-chart-compare-label",style:{height:v},children:l}),j.map((({label:e,previous:t})=>{var o;const s=k?null!==(o=t.total)&&void 0!==o?o:t.value:m;return r.jsx(B,{value:t.value,rowMax:s,fillColor:a,trackColor:u,showTrack:k&&void 0!==t.total,reversed:!0,tooltipText:p(t.value)},e)}))]}),r.jsx("div",{className:"stat-chart-compare-center",style:{paddingTop:v},children:j.map((({label:e})=>r.jsx("div",{className:"stat-chart-compare-center-label",style:{height:48,display:"flex",alignItems:"center",justifyContent:"center"},children:e},e)))}),r.jsxs("div",{className:"stat-chart-compare-section",children:[s&&r.jsx("div",{className:"stat-chart-compare-label",style:{height:v},children:s}),j.map((({label:e,current:t})=>{var s;const a=k?null!==(s=t.total)&&void 0!==s?s:t.value:m;return r.jsx(B,{value:t.value,rowMax:a,fillColor:o,trackColor:n,showTrack:k&&void 0!==t.total,tooltipText:p(t.value)},e)}))]}),d&&r.jsx(P,{data:C,headerHeight:v})]})},exports.WaterfallChart=R;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("react/jsx-runtime"),e=require("react"),t=require("recharts"),o=require("react-dom");function s(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var a=s(e);function l(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(r);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(t[o[s]]=r[o[s]])}return t}"function"==typeof SuppressedError&&SuppressedError;const n={backgroundColor:"hsl(var(--tooltip-dark-bg))",color:"hsl(var(--tooltip-dark-fg))",padding:"0.5rem 0.75rem",borderRadius:"6px",fontSize:"0.8125rem",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",whiteSpace:"nowrap",lineHeight:1.5},c={background:"none",border:"none",padding:0,boxShadow:"none",outline:"none"};Object.assign(Object.assign({},n),{position:"fixed",pointerEvents:"none",zIndex:9999,transform:"translate(-50%, calc(-100% - 10px))"});const i=({active:e,payload:t,label:o,bars:s,hoveredBar:a})=>{var l,c,i;if(!e||!(null==t?void 0:t.length)||!a)return null;const h=t.find((r=>r.dataKey===a.dataKey));if(!h)return null;const d=s.find((r=>r.key===a.dataKey)),x=null!==(l=null==d?void 0:d.unit)&&void 0!==l?l:"",u=null!==(i=null!==(c=null==d?void 0:d.label)&&void 0!==c?c:h.name)&&void 0!==i?i:"";return r.jsxs("div",{style:n,children:[r.jsx("div",{style:{fontSize:"0.75rem",opacity:.8},children:o}),r.jsx("div",{children:`${u}: ${h.value}${x?` ${x}`:""}`})]})},h=({x:e,y:t,payload:o,onClick:s})=>r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("text",{x:0,y:0,dy:16,textAnchor:"middle",fill:"hsl(var(--muted-200))",fontSize:12,style:{cursor:s?"pointer":"default"},onClick:s?r=>s(o.value,r):void 0,children:o.value})}),d=({x:e,y:t,payload:o,onClick:s})=>r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("text",{x:0,y:0,dy:4,textAnchor:"end",fill:"hsl(var(--muted-200))",fontSize:12,style:{cursor:s?"pointer":"default"},onClick:s?r=>s(o.value,r):void 0,children:o.value})}),x=({x:e,y:t,payload:o,maxWidth:s,onClick:a})=>r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("foreignObject",{x:-s/2,y:2,width:s,height:22,children:r.jsx("div",{title:String(o.value),style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"center",fontSize:12,color:"hsl(var(--muted-200))",padding:"4px 4px 0",cursor:a?"pointer":"default"},onClick:a?r=>a(o.value,r):void 0,onKeyDown:a?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),a(o.value,r))}:void 0,role:a?"button":void 0,tabIndex:a?0:void 0,children:String(o.value)})})}),u=({x:e,y:t,payload:o,onClick:s})=>{const a=String(o.value);return r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("foreignObject",{x:-144,y:-16,width:140,height:32,children:r.jsx("div",{title:a,className:"bar-chart-y-label",style:{cursor:s?"pointer":"default"},onClick:s?r=>s(o.value,r):void 0,onKeyDown:s?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),s(o.value,r))}:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,children:a})})})},p=({data:o,bars:s,layout:a="single",orientation:l="vertical",showGrid:n=!0,showLegend:p=!1,height:j=400,className:k,onXAxisTickClick:m,onYAxisTickClick:v,onBarClick:C})=>{const[g,y]=e.useState(null),[f,M]=e.useState(null),[b,w]=e.useState(0),F=e.useCallback((r=>w(r)),[]),N=(()=>{const r=(()=>{if("stacked"===a)return Math.max(...o.map((r=>s.reduce(((e,t)=>e+(Number(r[t.key])||0)),0))));if("grouped-stacked"===a){const r=[...new Set(s.filter((r=>r.stackId)).map((r=>r.stackId)))];return r.length?Math.max(...o.map((e=>Math.max(...r.map((r=>s.filter((e=>e.stackId===r)).reduce(((r,t)=>r+(Number(e[t.key])||0)),0))))))):Math.max(...o.map((r=>Math.max(...s.map((e=>Number(r[e.key])||0))))))}return Math.max(...o.map((r=>Math.max(...s.map((e=>Number(r[e.key])||0))))))})();if(0===r)return 5;const e=1.2*r,t=Math.floor(Math.log10(e)),l=Math.pow(10,t),n=e/l;let c;return c=n<=1?1:n<=1.2?1.2:n<=1.5?1.5:n<=2?2:n<=2.5?2.5:n<=3?3:n<=4?4:n<=5?5:n<=6?6:n<=8?8:10,c*l})(),$=()=>{M(null),y(null)},S=r=>"stacked"===a?"a":"grouped-stacked"===a?r.stackId:void 0;return r.jsx("div",{className:"bar-chart-container"+(k?` ${k}`:""),children:r.jsx(t.ResponsiveContainer,{width:"100%",height:j,onResize:F,children:r.jsxs(t.BarChart,{data:o,layout:"vertical"===l?"horizontal":"vertical",barGap:"grouped"===a||"grouped-stacked"===a?0:4,margin:{top:5,right:20,left:10,bottom:5},children:[n&&r.jsx(t.CartesianGrid,{stroke:"hsl(var(--muted))",vertical:"horizontal"===l,horizontal:"vertical"===l}),(()=>{if("vertical"===l){const e=Math.max(20,(b-80)/o.length);return r.jsx(t.XAxis,{dataKey:"x",axisLine:!1,tickLine:!1,tick:t=>r.jsx(x,Object.assign({},t,{maxWidth:e,onClick:m})),interval:0})}return r.jsx(t.XAxis,{type:"number",axisLine:!1,tickLine:!1,domain:[0,N],tick:e=>r.jsx(h,Object.assign({},e,{onClick:m}))})})(),"vertical"===l?r.jsx(t.YAxis,{axisLine:!1,tickLine:!1,tick:e=>r.jsx(d,Object.assign({},e,{onClick:v})),domain:[0,N]}):r.jsx(t.YAxis,{type:"category",dataKey:"x",axisLine:!1,tickLine:!1,tick:e=>r.jsx(u,Object.assign({},e,{onClick:v})),width:148,tickMargin:5,interval:0}),r.jsx(t.Tooltip,{cursor:!1,content:r.jsx(i,{bars:s,hoveredBar:f}),wrapperStyle:c,position:null!=g?g:void 0,isAnimationActive:!1}),p&&r.jsx(t.Legend,{}),s.map((e=>{var s;return r.jsx(t.Bar,{dataKey:e.key,fill:e.color,name:null!==(s=e.label)&&void 0!==s?s:e.key,stackId:S(e),onMouseLeave:$,onClick:C?(r,t,o)=>C(r,t,e.key,o):void 0,style:{cursor:C?"pointer":void 0},children:o.map(((o,s)=>r.jsx(t.Cell,{onMouseEnter:r=>{const t=r.currentTarget.getBoundingClientRect(),o=r.currentTarget.closest(".recharts-wrapper");if(o){const r=o.getBoundingClientRect();((r,e,t,o,s,a)=>{M({dataKey:r,index:e}),y("vertical"===l?{x:t+s/2,y:o}:{x:t+s,y:o+a/2})})(e.key,s,t.left-r.left,t.top-r.top,t.width,t.height)}}},`cell-${s}`)))},e.key)}))]})})})},j=({cx:t,cy:o,stroke:s,setTooltipPosition:a})=>(e.useLayoutEffect((()=>{void 0!==t&&void 0!==o&&a({x:t,y:o})}),[t,o,a]),r.jsx("circle",{cx:t,cy:o,r:6,stroke:"hsl(var(--background))",strokeWidth:2,fill:s})),k=({active:e,payload:t,label:o,lines:s,hoveredDataKey:a,showTooltipLabel:l})=>{var c,i,h;if(!e||!(null==t?void 0:t.length)||!a)return null;const d=t.find((r=>r.dataKey===a));if(!d)return null;const x=s.find((r=>r.key===d.dataKey)),u=null!==(c=null==x?void 0:x.unit)&&void 0!==c?c:"",p=null!==(h=null!==(i=null==x?void 0:x.label)&&void 0!==i?i:d.name)&&void 0!==h?h:"";return r.jsxs("div",{style:n,children:[l&&r.jsx("div",{style:{fontSize:"0.75rem",opacity:.8},children:o}),r.jsx("div",{children:`${p}: ${d.value}${u?` ${u}`:""}`})]})},m=({x:e,y:t,payload:o,onClick:s})=>r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("text",{x:0,y:0,dy:4,textAnchor:"end",fill:"hsl(var(--muted-200))",fontSize:12,style:{cursor:s?"pointer":"default"},onClick:s?r=>s(o.value,r):void 0,children:o.value})}),v=({x:e,y:t,payload:o,maxWidth:s,onClick:a})=>r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("foreignObject",{x:-s/2,y:2,width:s,height:22,children:r.jsx("div",{title:String(o.value),style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"center",fontSize:12,color:"hsl(var(--muted-200))",padding:"4px 4px 0",cursor:a?"pointer":"default"},onClick:a?r=>a(o.value,r):void 0,onKeyDown:a?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),a(o.value,r))}:void 0,role:a?"button":void 0,tabIndex:a?0:void 0,children:String(o.value)})})}),C=({data:o,lines:s,showGrid:a=!0,showLegend:l=!1,showGradient:n=!0,height:i=400,showTooltipLabel:h=!1,className:d,onXAxisTickClick:x,onYAxisTickClick:u,onDataPointClick:p})=>{const[C,g]=e.useState(null),[y,f]=e.useState(null),[M,b]=e.useState(0),w=e.useCallback((r=>b(r)),[]),F=(()=>{const r=(()=>{let r=0;return o.forEach((e=>{s.forEach((t=>{const o=e[t.key];"number"==typeof o&&o>r&&(r=o)}))})),r})();if(0===r)return 5;const e=1.2*r,t=Math.floor(Math.log10(e)),a=Math.pow(10,t),l=e/a;let n;return n=l<=1?1:l<=1.2?1.2:l<=1.5?1.5:l<=2?2:l<=2.5?2.5:l<=3?3:l<=4?4:l<=5?5:l<=6?6:l<=8?8:10,n*a})();return r.jsx("div",{className:"line-chart-container"+(d?` ${d}`:""),children:r.jsx(t.ResponsiveContainer,{width:"100%",height:i,onResize:w,children:r.jsxs(t.ComposedChart,{data:o,onMouseLeave:()=>{g(null),f(null)},children:[a&&r.jsx(t.CartesianGrid,{stroke:"hsl(var(--muted))",vertical:!1}),r.jsx(t.XAxis,{dataKey:"x",axisLine:!1,tickLine:!1,tick:e=>r.jsx(v,Object.assign({},e,{maxWidth:Math.max(20,(M-60)/o.length),onClick:x})),interval:0}),r.jsx(t.YAxis,{axisLine:!1,tickLine:!1,tick:e=>r.jsx(m,Object.assign({},e,{onClick:u})),domain:[0,F]}),r.jsx(t.Tooltip,{cursor:!1,content:r.jsx(k,{lines:s,hoveredDataKey:C,showTooltipLabel:h}),wrapperStyle:c,offset:10,position:null!=y?y:void 0,isAnimationActive:!1}),l&&r.jsx(t.Legend,{}),n&&r.jsx("defs",{children:s.map((e=>r.jsxs("linearGradient",{id:`colorGradient_${e.key.replace(/\s/g,"")}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[r.jsx("stop",{offset:"5%",stopColor:e.color,stopOpacity:.4}),r.jsx("stop",{offset:"95%",stopColor:e.color,stopOpacity:0})]},`${e.key}-gradient`)))}),s.map((e=>r.jsx(t.Area,{type:"monotone",dataKey:e.key,stroke:"none",fill:n?`url(#colorGradient_${e.key.replace(/\s/g,"")})`:"none",fillOpacity:1,isAnimationActive:!1,connectNulls:!0,activeDot:!1},`${e.key}-fill`))),s.map((e=>{var o;return r.jsx(t.Line,{type:"monotone",dataKey:e.key,stroke:e.color,strokeWidth:null!==(o=e.lineWidth)&&void 0!==o?o:2,strokeDasharray:e.dashed?"5 5":"0",dot:!1,activeDot:C===e.key?r.jsx(j,{setTooltipPosition:f}):void 0,isAnimationActive:!1,connectNulls:!0},`${e.key}-line`)})),s.map((e=>r.jsx(t.Line,{type:"monotone",dataKey:e.key,stroke:"transparent",strokeWidth:20,onMouseOver:()=>g(e.key),dot:!!p&&(t=>r.jsx("circle",{cx:t.cx,cy:t.cy,r:10,fill:"transparent",style:{cursor:"pointer"},onClick:r=>{r.stopPropagation(),p(t.payload,t.index,e.key,r)}},`${e.key}-hit-${t.index}`)),activeDot:!1,isAnimationActive:!1,connectNulls:!0},`${e.key}-hover`)))]})})})};function g(r){var e,t,o="";if("string"==typeof r||"number"==typeof r)o+=r;else if("object"==typeof r)if(Array.isArray(r)){var s=r.length;for(e=0;e<s;e++)r[e]&&(t=g(r[e]))&&(o&&(o+=" "),o+=t)}else for(t in r)r[t]&&(o&&(o+=" "),o+=t);return o}function y(){for(var r,e,t=0,o="",s=arguments.length;t<s;t++)(r=arguments[t])&&(e=g(r))&&(o&&(o+=" "),o+=e);return o}const f=({items:e,itemStyle:t="rectangle",direction:o="horizontal",ariaLabel:s,className:a,itemClassName:l,labelClassName:n,colorClassName:c})=>{const i=(e,t)=>{const o={line:{backgroundColor:e},"dashed-line":{borderColor:e},circle:{backgroundColor:e},rectangle:{backgroundColor:e}};return r.jsx("div",{className:y("legend-swatch",`legend-swatch--${t}`,c),style:o[t]})};return r.jsx("div",{className:y("legend","vertical"===o&&"legend--vertical",a),"aria-label":s,role:s?"region":void 0,children:e.map((e=>{var o;return r.jsxs("div",{className:y("legend-item",e.onClick&&"legend-item--clickable",l),onClick:e.onClick,role:e.onClick?"button":void 0,tabIndex:e.onClick?0:void 0,onKeyDown:e.onClick?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),e.onClick())}:void 0,children:[i(e.color,null!==(o=e.style)&&void 0!==o?o:t),r.jsx("span",{className:y("legend-label",n),children:e.label})]},e.label)}))})},M=["hsl(225, 91%, 59%)","hsl(280, 91%, 59%)","hsl(330, 91%, 59%)","hsl(30, 91%, 59%)","hsl(150, 91%, 59%)","hsl(190, 91%, 59%)"],b=e=>{var o,s,a,l,n;const c=Math.PI/180,{startAngle:i,endAngle:h,fill:d}=e,x=Number(null!==(o=e.cx)&&void 0!==o?o:0),u=Number(null!==(s=e.cy)&&void 0!==s?s:0),p=Number(null!==(a=e.innerRadius)&&void 0!==a?a:0),j=Number(null!==(l=e.outerRadius)&&void 0!==l?l:0),k=Number(null!==(n=e.midAngle)&&void 0!==n?n:0),m=x+8*Math.cos(-k*c),v=u+8*Math.sin(-k*c);return r.jsx(t.Sector,{cx:m,cy:v,innerRadius:p,outerRadius:j+4,startAngle:i,endAngle:h,fill:d})},w=({data:o,variant:s="pie",showLegend:a=!1,height:l=400,showLabels:i=!1,showPercentageInTooltip:h=!1,className:d,onSliceClick:x})=>{const[u,p]=e.useState(void 0),[j,k]=e.useState(null),m=o.map(((r,e)=>{var t;return Object.assign(Object.assign({},r),{color:null!==(t=r.color)&&void 0!==t?t:M[e%M.length]})})),v=m.reduce(((r,e)=>r+e.value),0),C=Math.PI/180;return r.jsxs("div",{className:`pie-chart-container${x?" pie-chart-clickable":""}${d?` ${d}`:""}`,children:[a&&r.jsx(f,{itemStyle:"circle",items:m.map((r=>({label:r.label,color:r.color}))),className:"pie-chart-legend"}),r.jsx(t.ResponsiveContainer,{width:"100%",height:l,style:{cursor:x?"pointer":void 0},children:r.jsxs(t.PieChart,{children:[r.jsx(t.Tooltip,{content:({active:e,payload:t})=>{var o;if(!e||!(null==t?void 0:t.length)||void 0===u)return null;const s=t[0].payload,a=null!==(o=s.unit)&&void 0!==o?o:"",l=v>0?(s.value/v*100).toFixed(1):"0";return r.jsxs("div",{style:n,children:[r.jsx("div",{style:{fontSize:"0.75rem",opacity:.8},children:s.label}),r.jsx("div",{children:`${s.value}${a?` ${a}`:""}${h?` (${l}%)`:""}`})]})},wrapperStyle:c,position:null!=j?j:void 0,isAnimationActive:!1}),r.jsx(t.Pie,{data:m,dataKey:"value",nameKey:"label",cx:"50%",cy:"50%",outerRadius:"80%",innerRadius:"donut"===s?"40%":"0%",activeIndex:u,activeShape:b,onMouseEnter:(r,e)=>{var t,o,s,a,l;p(e);const n=Number(null!==(t=r.cx)&&void 0!==t?t:0),c=Number(null!==(o=r.cy)&&void 0!==o?o:0),i=Number(null!==(s=r.midAngle)&&void 0!==s?s:0),h=Number(null!==(a=r.innerRadius)&&void 0!==a?a:0),d=h+(Number(null!==(l=r.outerRadius)&&void 0!==l?l:0)-h)/2,x=n+d*Math.cos(-i*C),u=c+d*Math.sin(-i*C);k({x:x,y:u})},onMouseLeave:()=>{p(void 0),k(null)},style:{cursor:x?"pointer":void 0},onClick:x?(r,e,t)=>x(r,e,t):void 0,labelLine:!1,label:!!i&&(e=>{const{cx:t,cy:o,midAngle:s,innerRadius:a,outerRadius:l,percent:n}=e,c=a+.5*(l-a),i=t+c*Math.cos(-s*C),h=o+c*Math.sin(-s*C);return r.jsx("text",{x:i,y:h,fill:"hsl(var(--background))",textAnchor:"middle",dominantBaseline:"central",fontSize:12,children:`${(100*(null!=n?n:0)).toFixed(0)}%`})}),children:m.map(((e,o)=>r.jsx(t.Cell,{fill:e.color,stroke:"none"},`cell-${o}`)))})]})})]})},F=new Set,N=()=>{F.forEach((r=>r()))},$=({text:t,position:s="top",className:a="",contentClassName:l="",children:n,content:c,variant:i="dark",delay:h=0,maxWidth:d})=>{const[x,u]=e.useState(!1),[p,j]=e.useState({}),[k,m]=e.useState(!1),v=e.useRef(null),C=e.useRef(null),g=e.useRef(),y=e.useId(),f=c||t;e.useEffect((()=>{m(!0)}),[]);const M=e.useCallback((()=>{clearTimeout(g.current),u(!1)}),[]),b=e.useCallback((()=>{h>0?g.current=setTimeout((()=>u(!0)),h):u(!0)}),[h]),w=e.useCallback((()=>{if(!v.current||!C.current)return;const r=v.current.getBoundingClientRect(),e=C.current.getBoundingClientRect();let t=0,o=0;switch(s){case"top":t=r.top-e.height-8,o=r.left+r.width/2-e.width/2;break;case"bottom":t=r.bottom+8,o=r.left+r.width/2-e.width/2;break;case"left":t=r.top+r.height/2-e.height/2,o=r.left-e.width-8;break;case"right":t=r.top+r.height/2-e.height/2,o=r.right+8}j({top:`${t}px`,left:`${o}px`})}),[s]);e.useEffect((()=>{if(x)return w(),r=M,0===F.size&&"undefined"!=typeof window&&window.addEventListener("scroll",N,{capture:!0,passive:!0}),F.add(r),()=>(r=>{F.delete(r),0===F.size&&"undefined"!=typeof window&&window.removeEventListener("scroll",N,{capture:!0})})(M);var r}),[x,w,M]),e.useEffect((()=>()=>clearTimeout(g.current)),[]);const $=void 0!==d?"number"==typeof d?`${d}px`:d:void 0,S=r.jsx("div",{id:y,ref:C,role:"tooltip",className:`tooltip-box tooltip-box--${i}${x?" tooltip-visible":""} ${l}`,"data-position":s,style:Object.assign(Object.assign({},p),$?{maxWidth:$}:{}),children:f});return r.jsxs(r.Fragment,{children:[r.jsx("div",{ref:v,className:`tooltip-container ${a}`,"aria-describedby":x?y:void 0,onMouseEnter:b,onMouseLeave:M,onFocus:b,onBlur:M,children:n}),k&&o.createPortal(S,document.body)]})},S=({data:e,showValue:t=!0,showPercentage:o=!1,height:s,className:l,onRowClick:n,onColumnClick:c,onCellClick:i})=>{const{rows:h,columns:d,matrix:x}=e,u=x.flat(),p=Math.max(...u,0),j=r=>({backgroundColor:`hsl(var(--heatmap-hue, 225), var(--heatmap-saturation, 92%), ${(95-50*(p>0?r/p:0)).toFixed(1)}%)`}),k=r=>{const e=p>0?r/p:0;if(95-50*e<65)return{color:"hsl(0, 0%, 100%)"};return{color:`hsl(var(--heatmap-hue, 225), var(--heatmap-saturation, 92%), ${(60-30*e).toFixed(1)}%)`}},m=r=>r.toString().includes(".")?r.toFixed(2):String(r);return r.jsx("div",{className:"heatmap-container"+(l?` ${l}`:""),style:{height:s},children:r.jsxs("div",{className:"heatmap-grid",style:{gridTemplateColumns:`repeat(${d.length+1}, 1fr)`,gridTemplateRows:`auto repeat(${h.length}, 1fr)`},children:[r.jsx("div",{className:"heatmap-col-header"}),d.map((e=>r.jsx("div",{className:"heatmap-col-tooltip",children:r.jsx($,{text:e,position:"top",className:"heatmap-col-tooltip",children:r.jsx("div",{className:"heatmap-col-header heatmap-header-label",style:{cursor:c?"pointer":"default"},onClick:c?r=>c(e,r):void 0,role:c?"button":void 0,tabIndex:c?0:void 0,onKeyDown:c?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),c(e,r))}:void 0,children:e})})},e))),h.map(((e,s)=>r.jsxs(a.default.Fragment,{children:[r.jsx("div",{className:"heatmap-row-tooltip",children:r.jsx($,{text:e,position:"top",className:"heatmap-row-tooltip",children:r.jsx("div",{className:"heatmap-row-header heatmap-header-label",style:{cursor:n?"pointer":"default"},onClick:n?r=>n(e,r):void 0,role:n?"button":void 0,tabIndex:n?0:void 0,onKeyDown:n?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),n(e,r))}:void 0,children:e})})}),x[s].map(((e,l)=>{const n=h[s],c=d[l],x=p>0?(e/p*100).toFixed(0):"0",u=r.jsxs("div",{className:"heatmap-cell",style:Object.assign(Object.assign({},j(e)),{cursor:i?"pointer":void 0}),onClick:i?r=>i(n,c,e,r):void 0,onKeyDown:i?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),i(n,c,e,r))}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:[t&&r.jsx("div",{className:"heatmap-cell-content heatmap-cell-value-container",style:k(e),children:r.jsx("span",{children:m(e)})}),o&&r.jsx("div",{className:"heatmap-cell-content heatmap-cell-percentage-container",style:k(e),children:r.jsxs("span",{children:[x,"%"]})})]});return t||o?r.jsx(a.default.Fragment,{children:u},`${s}-${l}`):r.jsx($,{content:r.jsxs("div",{className:"heatmap-cell-tooltip-content",children:[r.jsxs("div",{children:["Value: ",m(e)]}),r.jsx("div",{children:p>0?`${(e/p*100).toFixed(0)}% of max`:"0% of max"})]}),position:"top",children:u},`${s}-${l}`)}))]},e)))]})})},A={alert:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",stroke:"currentColor"}),r.jsx("path",{d:"M12 9v4",stroke:"currentColor"}),r.jsx("path",{d:"M12 17h.01",stroke:"currentColor"})]}),"align-center":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M21 5H3",stroke:"currentColor"}),r.jsx("path",{d:"M17 12H7",stroke:"currentColor"}),r.jsx("path",{d:"M19 19H5",stroke:"currentColor"})]}),"align-left":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M21 5H3",stroke:"currentColor"}),r.jsx("path",{d:"M15 12H3",stroke:"currentColor"}),r.jsx("path",{d:"M17 19H3",stroke:"currentColor"})]}),"align-right":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M21 5H3",stroke:"currentColor"}),r.jsx("path",{d:"M21 12H9",stroke:"currentColor"}),r.jsx("path",{d:"M21 19H7",stroke:"currentColor"})]}),"arrow-down":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 5v14",stroke:"currentColor"}),r.jsx("path",{d:"m19 12-7 7-7-7",stroke:"currentColor"})]}),"arrow-down-narrow-wide":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m3 16 4 4 4-4",stroke:"currentColor"}),r.jsx("path",{d:"M7 20V4",stroke:"currentColor"}),r.jsx("path",{d:"M11 4h4",stroke:"currentColor"}),r.jsx("path",{d:"M11 8h7",stroke:"currentColor"}),r.jsx("path",{d:"M11 12h10",stroke:"currentColor"})]}),"arrow-down-wide-narrow":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m3 16 4 4 4-4",stroke:"currentColor"}),r.jsx("path",{d:"M7 20V4",stroke:"currentColor"}),r.jsx("path",{d:"M11 4h10",stroke:"currentColor"}),r.jsx("path",{d:"M11 8h7",stroke:"currentColor"}),r.jsx("path",{d:"M11 12h4",stroke:"currentColor"})]}),"arrow-left":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m12 19-7-7 7-7",stroke:"currentColor"}),r.jsx("path",{d:"M19 12H5",stroke:"currentColor"})]}),"arrow-right":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M5 12h14",stroke:"currentColor"}),r.jsx("path",{d:"m12 5 7 7-7 7",stroke:"currentColor"})]}),"arrow-up":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m5 12 7-7 7 7",stroke:"currentColor"}),r.jsx("path",{d:"M12 19V5",stroke:"currentColor"})]}),"arrow-up-narrow-wide":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m3 8 4-4 4 4",stroke:"currentColor"}),r.jsx("path",{d:"M7 4v16",stroke:"currentColor"}),r.jsx("path",{d:"M11 12h4",stroke:"currentColor"}),r.jsx("path",{d:"M11 16h7",stroke:"currentColor"}),r.jsx("path",{d:"M11 20h10",stroke:"currentColor"})]}),"arrow-up-wide-narrow":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m3 8 4-4 4 4",stroke:"currentColor"}),r.jsx("path",{d:"M7 4v16",stroke:"currentColor"}),r.jsx("path",{d:"M11 12h10",stroke:"currentColor"}),r.jsx("path",{d:"M11 16h7",stroke:"currentColor"}),r.jsx("path",{d:"M11 20h4",stroke:"currentColor"})]}),bell:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10.268 21a2 2 0 0 0 3.464 0",stroke:"currentColor"}),r.jsx("path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",stroke:"currentColor"})]}),"bell-ring":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10.268 21a2 2 0 0 0 3.464 0",stroke:"currentColor"}),r.jsx("path",{d:"M22 8c0-2.3-.8-4.3-2-6",stroke:"currentColor"}),r.jsx("path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",stroke:"currentColor"}),r.jsx("path",{d:"M4 2C2.8 3.7 2 5.7 2 8",stroke:"currentColor"})]}),bold:r.jsx("path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",stroke:"currentColor"}),building:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10 12h4",stroke:"currentColor"}),r.jsx("path",{d:"M10 8h4",stroke:"currentColor"}),r.jsx("path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",stroke:"currentColor"}),r.jsx("path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",stroke:"currentColor"}),r.jsx("path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",stroke:"currentColor"})]}),calendar:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M8 2v4",stroke:"currentColor"}),r.jsx("path",{d:"M16 2v4",stroke:"currentColor"}),r.jsx("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",stroke:"currentColor"}),r.jsx("path",{d:"M3 10h18",stroke:"currentColor"}),r.jsx("path",{d:"M8 14h.01",stroke:"currentColor"}),r.jsx("path",{d:"M12 14h.01",stroke:"currentColor"}),r.jsx("path",{d:"M16 14h.01",stroke:"currentColor"}),r.jsx("path",{d:"M8 18h.01",stroke:"currentColor"}),r.jsx("path",{d:"M12 18h.01",stroke:"currentColor"}),r.jsx("path",{d:"M16 18h.01",stroke:"currentColor"})]}),"calendar-check":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M8 2v4",stroke:"currentColor"}),r.jsx("path",{d:"M16 2v4",stroke:"currentColor"}),r.jsx("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",stroke:"currentColor"}),r.jsx("path",{d:"M3 10h18",stroke:"currentColor"}),r.jsx("path",{d:"m9 16 2 2 4-4",stroke:"currentColor"})]}),"calendar-clock":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M16 14v2.2l1.6 1",stroke:"currentColor"}),r.jsx("path",{d:"M16 2v4",stroke:"currentColor"}),r.jsx("path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",stroke:"currentColor"}),r.jsx("path",{d:"M3 10h5",stroke:"currentColor"}),r.jsx("path",{d:"M8 2v4",stroke:"currentColor"}),r.jsx("circle",{cx:"16",cy:"16",r:"6",stroke:"currentColor"})]}),"calendar-cog":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m15.228 16.852-.923-.383",stroke:"currentColor"}),r.jsx("path",{d:"m15.228 19.148-.923.383",stroke:"currentColor"}),r.jsx("path",{d:"M16 2v4",stroke:"currentColor"}),r.jsx("path",{d:"m16.47 14.305.382.923",stroke:"currentColor"}),r.jsx("path",{d:"m16.852 20.772-.383.924",stroke:"currentColor"}),r.jsx("path",{d:"m19.148 15.228.383-.923",stroke:"currentColor"}),r.jsx("path",{d:"m19.53 21.696-.382-.924",stroke:"currentColor"}),r.jsx("path",{d:"m20.772 16.852.924-.383",stroke:"currentColor"}),r.jsx("path",{d:"m20.772 19.148.924.383",stroke:"currentColor"}),r.jsx("path",{d:"M21 10.592V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",stroke:"currentColor"}),r.jsx("path",{d:"M3 10h18",stroke:"currentColor"}),r.jsx("path",{d:"M8 2v4",stroke:"currentColor"}),r.jsx("circle",{cx:"18",cy:"18",r:"3",stroke:"currentColor"})]}),"calendar-plus":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M8 2v4",stroke:"currentColor"}),r.jsx("path",{d:"M16 2v4",stroke:"currentColor"}),r.jsx("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",stroke:"currentColor"}),r.jsx("path",{d:"M3 10h18",stroke:"currentColor"}),r.jsx("path",{d:"M10 16h4",stroke:"currentColor"}),r.jsx("path",{d:"M12 14v4",stroke:"currentColor"})]}),"calendar-sync":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M11 10v4h4",stroke:"currentColor"}),r.jsx("path",{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5",stroke:"currentColor"}),r.jsx("path",{d:"M16 2v4",stroke:"currentColor"}),r.jsx("path",{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5",stroke:"currentColor"}),r.jsx("path",{d:"M21 22v-4h-4",stroke:"currentColor"}),r.jsx("path",{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3",stroke:"currentColor"}),r.jsx("path",{d:"M3 10h4",stroke:"currentColor"}),r.jsx("path",{d:"M8 2v4",stroke:"currentColor"})]}),camera:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",stroke:"currentColor"}),r.jsx("circle",{cx:"12",cy:"13",r:"3",stroke:"currentColor"})]}),check:r.jsx("path",{d:"M20 6 9 17l-5-5",stroke:"currentColor"}),"chevron-down":r.jsx("path",{d:"m6 9 6 6 6-6",stroke:"currentColor"}),"chevron-left":r.jsx("path",{d:"m15 18-6-6 6-6",stroke:"currentColor"}),"chevron-right":r.jsx("path",{d:"m9 18 6-6-6-6",stroke:"currentColor"}),"chevron-up":r.jsx("path",{d:"m18 15-6-6-6 6",stroke:"currentColor"}),"chevrons-x":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m9 7-5 5 5 5",stroke:"currentColor"}),r.jsx("path",{d:"m15 7 5 5-5 5",stroke:"currentColor"})]}),"chevrons-y":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m7 15 5 5 5-5",stroke:"currentColor"}),r.jsx("path",{d:"m7 9 5-5 5 5",stroke:"currentColor"})]}),clock:r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor"}),r.jsx("path",{d:"M12 6v6l4 2",stroke:"currentColor"})]}),"clock-alert":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 6v6l4 2",stroke:"currentColor"}),r.jsx("path",{d:"M20 12v5",stroke:"currentColor"}),r.jsx("path",{d:"M20 21h.01",stroke:"currentColor"}),r.jsx("path",{d:"M21.25 8.2A10 10 0 1 0 16 21.16",stroke:"currentColor"})]}),close:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M18 6 6 18",stroke:"currentColor"}),r.jsx("path",{d:"m6 6 12 12",stroke:"currentColor"})]}),coffee:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10 2v2",stroke:"currentColor"}),r.jsx("path",{d:"M14 2v2",stroke:"currentColor"}),r.jsx("path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",stroke:"currentColor"}),r.jsx("path",{d:"M6 2v2",stroke:"currentColor"})]}),comment:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M14 14a2 2 0 0 0 2-2V8h-2",stroke:"currentColor"}),r.jsx("path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",stroke:"currentColor"}),r.jsx("path",{d:"M8 14a2 2 0 0 0 2-2V8H8",stroke:"currentColor"})]}),"compact-view":r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",stroke:"currentColor"}),r.jsx("path",{d:"M21 9H3",stroke:"currentColor"}),r.jsx("path",{d:"M21 15H3",stroke:"currentColor"})]}),copy:r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",stroke:"currentColor"}),r.jsx("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",stroke:"currentColor"})]}),cut:r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"6",cy:"6",r:"3",stroke:"currentColor"}),r.jsx("path",{d:"M8.12 8.12 12 12",stroke:"currentColor"}),r.jsx("path",{d:"M20 4 8.12 15.88",stroke:"currentColor"}),r.jsx("circle",{cx:"6",cy:"18",r:"3",stroke:"currentColor"}),r.jsx("path",{d:"M14.8 14.8 20 20",stroke:"currentColor"})]}),dashboard:r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",stroke:"currentColor"})]}),"dots-horizontal":r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"12",cy:"12",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"19",cy:"12",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"5",cy:"12",r:"1",stroke:"currentColor"})]}),"dots-vertical":r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"12",cy:"12",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"12",cy:"5",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"12",cy:"19",r:"1",stroke:"currentColor"})]}),"double-chevron-left":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m11 17-5-5 5-5",stroke:"currentColor"}),r.jsx("path",{d:"m18 17-5-5 5-5",stroke:"currentColor"})]}),"double-chevron-right":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m6 17 5-5-5-5",stroke:"currentColor"}),r.jsx("path",{d:"m13 17 5-5-5-5",stroke:"currentColor"})]}),download:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 15V3",stroke:"currentColor"}),r.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",stroke:"currentColor"}),r.jsx("path",{d:"m7 10 5 5 5-5",stroke:"currentColor"})]}),"drag-handle":r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"9",cy:"12",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"9",cy:"5",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"9",cy:"19",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"15",cy:"12",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"15",cy:"5",r:"1",stroke:"currentColor"}),r.jsx("circle",{cx:"15",cy:"19",r:"1",stroke:"currentColor"})]}),edit:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",stroke:"currentColor"}),r.jsx("path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",stroke:"currentColor"})]}),envelope:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",stroke:"currentColor"}),r.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",stroke:"currentColor"})]}),"external-link":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M15 3h6v6",stroke:"currentColor"}),r.jsx("path",{d:"M10 14 21 3",stroke:"currentColor"}),r.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",stroke:"currentColor"})]}),eye:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",stroke:"currentColor"}),r.jsx("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor"})]}),"eye-off":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",stroke:"currentColor"}),r.jsx("path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",stroke:"currentColor"}),r.jsx("path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",stroke:"currentColor"}),r.jsx("path",{d:"m2 2 20 20",stroke:"currentColor"})]}),file:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",stroke:"currentColor"}),r.jsx("path",{d:"M14 2v5a1 1 0 0 0 1 1h5",stroke:"currentColor"})]}),"file-code":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",stroke:"currentColor"}),r.jsx("path",{d:"M14 2v5a1 1 0 0 0 1 1h5",stroke:"currentColor"}),r.jsx("path",{d:"m5 16-3 3 3 3",stroke:"currentColor"}),r.jsx("path",{d:"m9 22 3-3-3-3",stroke:"currentColor"})]}),filter:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M2 5h20",stroke:"currentColor"}),r.jsx("path",{d:"M6 12h12",stroke:"currentColor"}),r.jsx("path",{d:"M9 19h6",stroke:"currentColor"})]}),"filter-plus":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 5H2",stroke:"currentColor"}),r.jsx("path",{d:"M6 12h12",stroke:"currentColor"}),r.jsx("path",{d:"M9 19h6",stroke:"currentColor"}),r.jsx("path",{d:"M16 5h6",stroke:"currentColor"}),r.jsx("path",{d:"M19 8V2",stroke:"currentColor"})]}),flag:r.jsx("path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",stroke:"currentColor"}),forbidden:r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor"}),r.jsx("path",{d:"M4.929 4.929 19.07 19.071",stroke:"currentColor"})]}),grid:r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",stroke:"currentColor"})]}),hint:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",stroke:"currentColor"}),r.jsx("path",{d:"M9 18h6",stroke:"currentColor"}),r.jsx("path",{d:"M10 22h4",stroke:"currentColor"})]}),hospital:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 7v4",stroke:"currentColor"}),r.jsx("path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",stroke:"currentColor"}),r.jsx("path",{d:"M14 9h-4",stroke:"currentColor"}),r.jsx("path",{d:"M18 11h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2",stroke:"currentColor"}),r.jsx("path",{d:"M18 21V5a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16",stroke:"currentColor"})]}),home:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",stroke:"currentColor"}),r.jsx("path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",stroke:"currentColor"})]}),image:r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",stroke:"currentColor"}),r.jsx("circle",{cx:"9",cy:"9",r:"2",stroke:"currentColor"}),r.jsx("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",stroke:"currentColor"})]}),inbox:r.jsxs(r.Fragment,{children:[r.jsx("polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",stroke:"currentColor"}),r.jsx("path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",stroke:"currentColor"})]}),info:r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor"}),r.jsx("path",{d:"M12 16v-4",stroke:"currentColor"}),r.jsx("path",{d:"M12 8h.01",stroke:"currentColor"})]}),italic:r.jsxs(r.Fragment,{children:[r.jsx("line",{x1:"19",x2:"10",y1:"4",y2:"4",stroke:"currentColor"}),r.jsx("line",{x1:"14",x2:"5",y1:"20",y2:"20",stroke:"currentColor"}),r.jsx("line",{x1:"15",x2:"9",y1:"4",y2:"20",stroke:"currentColor"})]}),layout:r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"7",x:"14",y:"3",rx:"7",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",stroke:"currentColor"}),r.jsx("rect",{width:"7",height:"7",x:"3",y:"14",rx:"7",stroke:"currentColor"})]}),library:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m16 6 4 14",stroke:"currentColor"}),r.jsx("path",{d:"M12 6v14",stroke:"currentColor"}),r.jsx("path",{d:"M8 8v12",stroke:"currentColor"}),r.jsx("path",{d:"M4 4v16",stroke:"currentColor"})]}),link:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",stroke:"currentColor"}),r.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",stroke:"currentColor"})]}),list:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 5h.01",stroke:"currentColor"}),r.jsx("path",{d:"M3 12h.01",stroke:"currentColor"}),r.jsx("path",{d:"M3 19h.01",stroke:"currentColor"}),r.jsx("path",{d:"M8 5h13",stroke:"currentColor"}),r.jsx("path",{d:"M8 12h13",stroke:"currentColor"}),r.jsx("path",{d:"M8 19h13",stroke:"currentColor"})]}),"list-ol":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M11 5h10",stroke:"currentColor"}),r.jsx("path",{d:"M11 12h10",stroke:"currentColor"}),r.jsx("path",{d:"M11 19h10",stroke:"currentColor"}),r.jsx("path",{d:"M4 4h1v5",stroke:"currentColor"}),r.jsx("path",{d:"M4 9h2",stroke:"currentColor"}),r.jsx("path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",stroke:"currentColor"})]}),"list-ul":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 5h18",stroke:"currentColor"}),r.jsx("path",{d:"M3 12h18",stroke:"currentColor"}),r.jsx("path",{d:"M3 19h18",stroke:"currentColor"})]}),"log-in":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m10 17 5-5-5-5",stroke:"currentColor"}),r.jsx("path",{d:"M15 12H3",stroke:"currentColor"}),r.jsx("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",stroke:"currentColor"})]}),"log-out":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m16 17 5-5-5-5",stroke:"currentColor"}),r.jsx("path",{d:"M21 12H9",stroke:"currentColor"}),r.jsx("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",stroke:"currentColor"})]}),maximize:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M15 3h6v6",stroke:"currentColor"}),r.jsx("path",{d:"m21 3-7 7",stroke:"currentColor"}),r.jsx("path",{d:"m3 21 7-7",stroke:"currentColor"}),r.jsx("path",{d:"M9 21H3v-6",stroke:"currentColor"})]}),message:r.jsx("path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",stroke:"currentColor"}),minimize:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m14 10 7-7",stroke:"currentColor"}),r.jsx("path",{d:"M20 10h-6V4",stroke:"currentColor"}),r.jsx("path",{d:"m3 21 7-7",stroke:"currentColor"}),r.jsx("path",{d:"M4 14h6v6",stroke:"currentColor"})]}),minus:r.jsx("path",{d:"M5 12h14",stroke:"currentColor"}),note:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",stroke:"currentColor"}),r.jsx("path",{d:"M15 3v5a1 1 0 0 0 1 1h5",stroke:"currentColor"})]}),paste:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M11 14h10",stroke:"currentColor"}),r.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",stroke:"currentColor"}),r.jsx("path",{d:"m17 18 4-4-4-4",stroke:"currentColor"}),r.jsx("path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",stroke:"currentColor"}),r.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",stroke:"currentColor"})]}),phone:r.jsx("path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",stroke:"currentColor"}),plus:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M5 12h14",stroke:"currentColor"}),r.jsx("path",{d:"M12 5v14",stroke:"currentColor"})]}),quote:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",stroke:"currentColor"}),r.jsx("path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",stroke:"currentColor"})]}),redo:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M21 7v6h-6",stroke:"currentColor"}),r.jsx("path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",stroke:"currentColor"})]}),refresh:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",stroke:"currentColor"}),r.jsx("path",{d:"M21 3v5h-5",stroke:"currentColor"}),r.jsx("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",stroke:"currentColor"}),r.jsx("path",{d:"M8 16H3v5",stroke:"currentColor"})]}),"relaxed-view":r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",stroke:"currentColor"}),r.jsx("path",{d:"M3 12h18",stroke:"currentColor"})]}),search:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m21 21-4.34-4.34",stroke:"currentColor"}),r.jsx("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor"})]}),send:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",stroke:"currentColor"}),r.jsx("path",{d:"M6 12h16",stroke:"currentColor"})]}),settings:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",stroke:"currentColor"}),r.jsx("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor"})]}),shuffle:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m18 14 4 4-4 4",stroke:"currentColor"}),r.jsx("path",{d:"m18 2 4 4-4 4",stroke:"currentColor"}),r.jsx("path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",stroke:"currentColor"}),r.jsx("path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",stroke:"currentColor"}),r.jsx("path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",stroke:"currentColor"})]}),stats:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 3v16a2 2 0 0 0 2 2h16",stroke:"currentColor"}),r.jsx("path",{d:"M18 17V9",stroke:"currentColor"}),r.jsx("path",{d:"M13 17V5",stroke:"currentColor"}),r.jsx("path",{d:"M8 17v-3",stroke:"currentColor"})]}),strikethrough:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M16 4H9a3 3 0 0 0-2.83 4",stroke:"currentColor"}),r.jsx("path",{d:"M14 12a4 4 0 0 1 0 8H6",stroke:"currentColor"}),r.jsx("line",{x1:"4",x2:"20",y1:"12",y2:"12",stroke:"currentColor"})]}),swap:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M8 3 4 7l4 4",stroke:"currentColor"}),r.jsx("path",{d:"M4 7h16",stroke:"currentColor"}),r.jsx("path",{d:"m16 21 4-4-4-4",stroke:"currentColor"}),r.jsx("path",{d:"M20 17H4",stroke:"currentColor"})]}),"swap-vertical":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m3 16 4 4 4-4",stroke:"currentColor"}),r.jsx("path",{d:"M7 20V4",stroke:"currentColor"}),r.jsx("path",{d:"m21 8-4-4-4 4",stroke:"currentColor"}),r.jsx("path",{d:"M17 4v16",stroke:"currentColor"})]}),trash:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M10 11v6",stroke:"currentColor"}),r.jsx("path",{d:"M14 11v6",stroke:"currentColor"}),r.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",stroke:"currentColor"}),r.jsx("path",{d:"M3 6h18",stroke:"currentColor"}),r.jsx("path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",stroke:"currentColor"})]}),underline:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M6 4v6a6 6 0 0 0 12 0V4",stroke:"currentColor"}),r.jsx("line",{x1:"4",x2:"20",y1:"20",y2:"20",stroke:"currentColor"})]}),undo:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 7v6h6",stroke:"currentColor"}),r.jsx("path",{d:"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",stroke:"currentColor"})]}),upload:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 3v12",stroke:"currentColor"}),r.jsx("path",{d:"m17 8-5-5-5 5",stroke:"currentColor"}),r.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",stroke:"currentColor"})]}),user:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",stroke:"currentColor"}),r.jsx("circle",{cx:"12",cy:"7",r:"4",stroke:"currentColor"})]}),"user-check":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m16 11 2 2 4-4",stroke:"currentColor"}),r.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",stroke:"currentColor"}),r.jsx("circle",{cx:"9",cy:"7",r:"4",stroke:"currentColor"})]}),users:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",stroke:"currentColor"}),r.jsx("path",{d:"M16 3.128a4 4 0 0 1 0 7.744",stroke:"currentColor"}),r.jsx("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",stroke:"currentColor"}),r.jsx("circle",{cx:"9",cy:"7",r:"4",stroke:"currentColor"})]}),wand:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",stroke:"currentColor"}),r.jsx("path",{d:"m14 7 3 3",stroke:"currentColor"}),r.jsx("path",{d:"M5 6v4",stroke:"currentColor"}),r.jsx("path",{d:"M19 14v4",stroke:"currentColor"}),r.jsx("path",{d:"M10 2v2",stroke:"currentColor"}),r.jsx("path",{d:"M7 8H3",stroke:"currentColor"}),r.jsx("path",{d:"M21 16h-4",stroke:"currentColor"}),r.jsx("path",{d:"M11 3H9",stroke:"currentColor"})]}),"zoom-in":r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor"}),r.jsx("line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",stroke:"currentColor"}),r.jsx("line",{x1:"11",x2:"11",y1:"8",y2:"14",stroke:"currentColor"}),r.jsx("line",{x1:"8",x2:"14",y1:"11",y2:"11",stroke:"currentColor"})]}),"zoom-out":r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor"}),r.jsx("line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",stroke:"currentColor"}),r.jsx("line",{x1:"8",x2:"14",y1:"11",y2:"11",stroke:"currentColor"})]}),sort:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 5h8",stroke:"currentColor"}),r.jsx("path",{d:"M3 12h8",stroke:"currentColor"}),r.jsx("path",{d:"M3 19h8",stroke:"currentColor"}),r.jsx("path",{d:"m15 8 3-3 3 3",stroke:"currentColor"}),r.jsx("path",{d:"m15 16 3 3 3-3",stroke:"currentColor"})]}),sun:r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:"12",cy:"12",r:"4",stroke:"currentColor"}),r.jsx("path",{d:"M12 2v2",stroke:"currentColor"}),r.jsx("path",{d:"M12 20v2",stroke:"currentColor"}),r.jsx("path",{d:"m4.93 4.93 1.41 1.41",stroke:"currentColor"}),r.jsx("path",{d:"m17.66 17.66 1.41 1.41",stroke:"currentColor"}),r.jsx("path",{d:"M2 12h2",stroke:"currentColor"}),r.jsx("path",{d:"M20 12h2",stroke:"currentColor"}),r.jsx("path",{d:"m6.34 17.66-1.41 1.41",stroke:"currentColor"}),r.jsx("path",{d:"m19.07 4.93-1.41 1.41",stroke:"currentColor"})]}),moon:r.jsx("path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",stroke:"currentColor"}),tool:r.jsx("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",stroke:"currentColor"}),hook:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m17.586 11.414-5.93 5.93a1 1 0 0 1-8-8l3.137-3.137a.707.707 0 0 1 1.207.5V10",stroke:"currentColor"}),r.jsx("path",{d:"M20.414 8.586 22 7",stroke:"currentColor"}),r.jsx("circle",{cx:"19",cy:"10",r:"2",stroke:"currentColor"})]}),component:r.jsxs(r.Fragment,{children:[r.jsx("rect",{width:"18",height:"12",x:"3",y:"8",rx:"1",stroke:"currentColor"}),r.jsx("path",{d:"M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3",stroke:"currentColor"}),r.jsx("path",{d:"M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3",stroke:"currentColor"})]}),"arrow-up-right":r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M7 7h10v10",stroke:"currentColor"}),r.jsx("path",{d:"M7 17 17 7",stroke:"currentColor"})]}),chart:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M3 3v16a2 2 0 0 0 2 2h16",stroke:"currentColor"}),r.jsx("path",{d:"m19 9-5 5-4-4-3 3",stroke:"currentColor"})]}),star:r.jsx("path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",stroke:"currentColor"}),sparkles:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",stroke:"currentColor"}),r.jsx("path",{d:"M20 2v4",stroke:"currentColor"}),r.jsx("path",{d:"M22 4h-4",stroke:"currentColor"}),r.jsx("circle",{cx:"4",cy:"20",r:"2",stroke:"currentColor"})]}),terminal:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"M12 19h8",stroke:"currentColor"}),r.jsx("path",{d:"m4 17 6-6-6-6",stroke:"currentColor"})]}),shield:r.jsx("path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",stroke:"currentColor"}),code:r.jsxs(r.Fragment,{children:[r.jsx("path",{d:"m18 16 4-4-4-4",stroke:"currentColor"}),r.jsx("path",{d:"m6 8-4 4 4 4",stroke:"currentColor"}),r.jsx("path",{d:"m14.5 4-5 16",stroke:"currentColor"})]})},L=e=>{var t,{icon:o,size:s=24,tooltip:a,tooltipPosition:n="top",tooltipVariant:c="dark",strokeWidth:i=2}=e,h=l(e,["icon","size","tooltip","tooltipPosition","tooltipVariant","strokeWidth"]);const d=null!==(t=A[o])&&void 0!==t?t:null,x=r.jsx("svg",Object.assign({height:s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"},h,{children:d}));if(null!=a){const e="string"==typeof a?{text:a}:{content:a};return r.jsx($,Object.assign({},e,{position:n,variant:c,children:x}))}return x},z=r=>{let e=r,t="";do{t=String.fromCharCode(65+e%26)+t,e=Math.floor(e/26)-1}while(e>=0);return t},H=r=>{if(Number.isInteger(r))return String(r);return(Math.abs(r)<1?r.toFixed(3):r.toFixed(2)).replace(/\.?0+$/,"")},O=r=>`${r>=0?"+":"−"}${Math.abs(r).toFixed(2).replace(/\.?0+$/,"")}`,V=({active:e,payload:t,colors:o})=>{if(!e||!(null==t?void 0:t.length))return null;const s=t[0].payload,a=s.contribution>=0;return r.jsxs("div",{style:Object.assign(Object.assign({},n),{width:220,whiteSpace:"normal",overflowWrap:"break-word"}),children:[r.jsx("div",{style:{fontWeight:600},children:s.feature}),void 0!==s.value&&r.jsxs("div",{style:{fontSize:"0.75rem",opacity:.8},children:["value: ",String(s.value)]}),r.jsx("div",{style:{color:a?o.positive:o.negative},children:O(s.contribution)})]})},E=({x:e=0,y:t=0,width:o=0,height:s=0,payload:a,index:l=0,colors:n,onBarClick:c})=>{if(!a)return null;const i=a.contribution>=0,h=i?n.positive:n.negative,d=!!c,x=c?r=>c({feature:a.feature,code:a.code,value:a.value,contribution:a.contribution},l,r):void 0,u=Math.max(0,Math.min(5,o,s/2)),p=t+s/2,j=(i?[[e,t],[e+o-u,t],[e+o,p],[e+o-u,t+s],[e,t+s]]:[[e+o,t],[e+u,t],[e,p],[e+u,t+s],[e+o,t+s]]).map((r=>r.join(","))).join(" "),k=O(a.contribution),m=o>7*k.length+14,v=m?e+o/2:i?e+o+5:e-5;return r.jsxs("g",{onClick:x,style:d?{cursor:"pointer"}:void 0,children:[r.jsx("polygon",{points:j,fill:h}),r.jsx("text",{x:v,y:p,dy:4,textAnchor:m?"middle":i?"start":"end",fontSize:12,fontWeight:m?600:400,fill:m?"hsl(var(--primary-foreground))":h,children:k})]})},T=({x:e,y:t,payload:o,labelWidth:s})=>{const a=String(o.value),l=a.indexOf("␟"),n=l>=0?a.slice(0,l):"",c=l>=0?a.slice(l+1):a,i=n?`${n} = ${c}`:c;return r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("foreignObject",{x:-s-4,y:-16,width:s,height:32,children:r.jsxs("div",{title:i,className:"waterfall-chart-y-label",children:[n&&r.jsxs("span",{className:"waterfall-chart-y-value",children:[n," = "]}),r.jsx("span",{className:"waterfall-chart-y-feature",children:c})]})})})},R=({x:e,y:t,payload:o})=>r.jsx("g",{transform:`translate(${e},${t})`,children:r.jsx("text",{x:0,y:0,dy:16,textAnchor:"middle",fill:"hsl(var(--muted-200))",fontSize:12,children:H(Number(o.value))})}),I=({data:o,maxFeatures:s,colors:a,compact:l,height:n=400,className:i,onBarClick:h})=>{var d,x;const u={positive:null!==(d=null==a?void 0:a.positive)&&void 0!==d?d:"hsl(var(--primary))",negative:null!==(x=null==a?void 0:a.negative)&&void 0!==x?x:"hsl(var(--destructive))"},p=(r=>{const[t,o]=e.useState(!1);return e.useEffect((()=>{if("undefined"==typeof window)return;const e=window.matchMedia(r);e.matches!==t&&o(e.matches);const s=()=>{o(e.matches)};return e.addEventListener("change",s),()=>e.removeEventListener("change",s)}),[t,r]),t})("(max-width: 640px)"),j=null!=l?l:p,{rows:k,base:m,finalPrediction:v,domain:C,ticks:g,legend:y}=e.useMemo((()=>{const r=(r=>{const e=r.features.map((r=>({feature:r.name,value:r.value,contribution:r.prob})));return void 0!==r.otherFactorsProb&&null!==r.otherFactorsProb&&e.push({feature:null!=r.otherFactorsValue?`${r.otherFactorsValue} other features`:"other features",contribution:r.otherFactorsProb}),{features:e,base:r.efx,prediction:r.fx}})(o),e=r.base,t=[...r.features].sort(((r,e)=>Math.abs(e.contribution)-Math.abs(r.contribution))),a=t.findIndex((r=>/\bother\s+(features?|factors?)\b/i.test(r.feature))),l=a>=0?t.splice(a,1)[0]:null;let n=t,c=null;if(void 0!==s&&s>0&&t.length>s){n=t.slice(0,s);const r=t.slice(s),e=r.reduce(((r,e)=>r+e.contribution),0);c={feature:`${r.length} other feature${1===r.length?"":"s"}`,contribution:e}}const i=c&&l?{feature:c.feature,contribution:c.contribution+l.contribution}:null!=c?c:l,h=i?[...n,i]:n;let d=e,x=e,u=e;const p=new Array(h.length);for(let r=h.length-1;r>=0;r--){const e=h[r],t=d,o=d+e.contribution;d=o,x=Math.min(x,t,o),u=Math.max(u,t,o);const s=void 0===e.value?"":"number"==typeof e.value?H(e.value):String(e.value),a=z(r);p[r]={label:`${s}␟${j?a:e.feature}`,feature:e.feature,code:a,value:e.value,contribution:e.contribution,offset:Math.min(t,o),span:Math.abs(e.contribution)}}const k=j?p.map((r=>({code:r.code,feature:r.feature}))):[],m=r.features.length?d:r.prediction;x=Math.min(x,m),u=Math.max(u,m);const v=.12*(u-x||1),C=x-v,g=u+v,y=(r=>{if(!(r>0))return 1;const e=Math.pow(10,Math.floor(Math.log10(r))),t=r/e;return(t<=1?1:t<=2?2:t<=5?5:10)*e})((g-C)/4),f=[];for(let r=Math.ceil(C/y-1e-9)*y;r<=g+1e-9;r+=y)f.push(Number(r.toFixed(6)));return{rows:p,base:e,finalPrediction:m,domain:[C,g],ticks:f,legend:k}}),[o,s,j]),f=j?56:200;return r.jsxs("div",{className:"waterfall-chart-container"+(i?` ${i}`:""),children:[r.jsx(t.ResponsiveContainer,{width:"100%",height:n,children:r.jsxs(t.BarChart,{data:k,layout:"vertical",barCategoryGap:"16%",margin:{top:24,right:40,left:10,bottom:24},children:[r.jsx(t.XAxis,{type:"number",domain:C,ticks:g,allowDataOverflow:!0,axisLine:{stroke:"hsl(var(--muted-200))"},tickLine:{stroke:"hsl(var(--muted-200))"},tick:e=>r.jsx(R,Object.assign({},e))}),r.jsx(t.YAxis,{type:"category",dataKey:"label",axisLine:!1,tickLine:!1,tick:e=>r.jsx(T,Object.assign({},e,{labelWidth:f})),width:f+8,interval:0}),r.jsx(t.Tooltip,{cursor:{fill:"hsl(var(--muted) / 0.35)"},content:r.jsx(V,{colors:u}),wrapperStyle:c,isAnimationActive:!1}),r.jsx(t.ReferenceLine,{x:m,stroke:"hsl(var(--muted-200))",strokeDasharray:"4 4",label:{value:`E[f(x)] = ${H(m)}`,position:"bottom",fill:"hsl(var(--muted-200))",fontSize:12,fontWeight:600}}),r.jsx(t.ReferenceLine,{x:v,stroke:"hsl(var(--foreground))",strokeDasharray:"4 4",label:{value:`f(x) = ${H(v)}`,position:"top",fill:"hsl(var(--foreground))",fontSize:12,fontWeight:600}}),r.jsx(t.Bar,{dataKey:"offset",stackId:"w",fill:"transparent",isAnimationActive:!1}),r.jsx(t.Bar,{dataKey:"span",stackId:"w",isAnimationActive:!1,shape:e=>r.jsx(E,Object.assign({},e,{colors:u,onBarClick:h}))})]})}),y.length>0&&r.jsxs("details",{className:"waterfall-chart-legend",children:[r.jsxs("summary",{className:"waterfall-chart-legend-summary",children:[r.jsx("span",{className:"waterfall-chart-legend-title",children:"Feature legend"}),r.jsx(L,{icon:"chevron-down",className:"waterfall-chart-legend-icon"})]}),r.jsx("dl",{className:"waterfall-chart-legend-list",children:y.map((e=>r.jsxs("div",{className:"waterfall-chart-legend-item",children:[r.jsx("dt",{className:"waterfall-chart-legend-code",children:e.code}),r.jsx("dd",{className:"waterfall-chart-legend-name",children:e.feature})]},e.code)))})]})]})},D=r=>{if(!r)return"";return r.split(/(?=[A-Z])|[_-]/g).map((r=>r.trim())).filter((r=>r.length>0)).map(((r,e)=>0===e?r.charAt(0).toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase())).join(" ")},K=["hsl(var(--primary))","hsl(var(--primary-200))","hsl(var(--primary-400))"],P=["hsl(var(--primary))","hsl(var(--primary-400))"],W=["hsl(225, 91%, 59%)","hsl(280, 91%, 59%)","hsl(330, 91%, 59%)","hsl(30, 91%, 59%)","hsl(150, 91%, 59%)","hsl(190, 91%, 59%)"];const B=({data:e,headerHeight:t})=>r.jsxs("div",{className:"stat-chart-difference-col",children:[r.jsx("p",{className:"stat-chart-difference-title",style:{height:t},children:"Difference"}),e.map(((e,t)=>{const o=e.value2-e.value1,s=0===e.value1?o>0?100:0:o/e.value1*100,a=o>=0,l=a?"stat-chart-difference-positive":"stat-chart-difference-negative",n=a?"arrow-up":"arrow-down";return r.jsxs("div",{className:"stat-chart-difference-row",children:[r.jsxs("span",{className:l,children:[r.jsx(L,{icon:n,size:14}),Math.abs(o).toLocaleString()]}),r.jsxs("span",{className:l,children:[r.jsx(L,{icon:n,size:14}),Math.abs(Math.round(s)),"%"]})]},t)}))]}),G=({label:e,labelWidth:t,value:o,rowMax:s,fillColor:a,trackColor:l,showTrack:n,reversed:c=!1,tooltipText:i})=>{const h=s>0?Math.min(o/s*100,100):0,d=r.jsx("div",{style:Object.assign({position:"absolute",top:0,bottom:0,width:`${h}%`,backgroundColor:a},c?{right:0}:{left:0})}),x=r.jsx($,{text:i,position:"top",className:"stat-chart-bar-tooltip",children:r.jsx("div",{className:"stat-chart-bar-track",style:{backgroundColor:n?l:"hsl(var(--muted-50))"},children:d})});return r.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.625rem",height:48,flexDirection:c?"row-reverse":"row"},children:[!c&&void 0!==e&&r.jsx("span",{style:{width:t,flexShrink:0,fontSize:"0.8125rem",color:"hsl(var(--muted-200))",textAlign:"right",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:e,children:e}),x]})},X=11;function q({item:e}){const t=e.rangeEnd-e.rangeStart,o=Math.max(e.barStart,e.rangeStart),s=Math.min(e.barEnd,e.rangeEnd),a=Math.max(0,s-o),l=Math.max(0,e.barEnd-e.rangeEnd),n=e.barEnd-e.barStart,c=t>0?(a/t).toFixed(2):"0.00",i=Math.round(60*l),h=n>0?(l/n).toFixed(2):"0.00";return r.jsxs("div",{className:"gantt-tooltip-content",children:[r.jsxs("div",{children:["Range Utilization: ",c]}),l>0&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:["Overflow Time: ",i," min"]}),r.jsxs("div",{children:["Overflow Utilization: ",h]})]})]})}exports.BarChart=p,exports.Chart=e=>{var{type:t,title:o,info:s,description:a,kpis:n,data:c,height:i=400,className:h}=e,d=l(e,["type","title","info","description","kpis","data","height","className"]);return r.jsxs("div",{className:"chart-container"+(h?` ${h}`:""),children:[r.jsxs("div",{className:"chart-header",children:[r.jsxs("div",{className:"chart-header-content",children:[(o||s)&&r.jsxs("div",{className:"chart-title-container",children:[o&&r.jsx("h3",{className:"chart-title",children:o}),s&&r.jsx($,{text:s,position:"top",children:r.jsx(L,{icon:"info",size:16,className:"chart-info-icon"})})]}),a&&r.jsx("p",{className:"chart-description",children:a})]}),r.jsxs("div",{className:"chart-metadata",children:[(null==n?void 0:n.length)?r.jsx("div",{className:"chart-kpis",children:n.map(((e,t)=>r.jsxs("div",{className:"chart-kpi",children:[r.jsx("div",{className:"chart-kpi-label",children:e.label}),r.jsx("div",{className:"chart-kpi-value",children:e.value})]},t)))}):null,"pie"!==t&&"heatmap"!==t&&r.jsx(f,{items:(()=>{var r,e,o,s;switch(t){case"bar":case"line":{const r=c[0];if(!r)return[];const e="line"===t?P:K;return Object.keys(r).filter((r=>"x"!==r)).map(((r,o)=>({label:D(r),color:e[o%e.length],style:"line"===t?"line":"rectangle"})))}case"pie":return c.map(((r,e)=>{var t;return{label:D(r.label),color:null!==(t=r.color)&&void 0!==t?t:W[e%W.length],style:"circle"}}));case"waterfall":{const t=d;return[{label:"Pushes higher",color:null!==(e=null===(r=t.colors)||void 0===r?void 0:r.positive)&&void 0!==e?e:"hsl(var(--primary))",style:"rectangle"},{label:"Pushes lower",color:null!==(s=null===(o=t.colors)||void 0===o?void 0:o.negative)&&void 0!==s?s:"hsl(var(--destructive))",style:"rectangle"}]}default:return[]}})(),className:"chart-legend"})]})]}),(()=>{switch(t){case"bar":{const e=c,t=d,o=e.length>0?Object.keys(e[0]).filter((r=>"x"!==r)).map(((r,e)=>({key:r,color:K[e%K.length],label:r}))):[];return r.jsx(p,{data:e,height:i,bars:o,layout:t.layout,orientation:t.orientation,showGrid:!0,showLegend:!1})}case"line":{const e=c,t=e.length>0?Object.keys(e[0]).filter((r=>"x"!==r)).map(((r,e)=>({key:r,color:P[e%P.length],label:r}))):[];return r.jsx(C,{data:e,height:i,lines:t,showGrid:!0,showLegend:!1,showGradient:!0,showTooltipLabel:!0})}case"pie":{const e=c.map(((r,e)=>{var t;return Object.assign(Object.assign({},r),{color:null!==(t=r.color)&&void 0!==t?t:W[e%W.length]})}));return r.jsx(w,{data:e,height:i,showLegend:!0,showLabels:!0})}case"heatmap":return r.jsx(S,{data:c,height:i,showValue:!0,showPercentage:!0});case"waterfall":{const e=d;return r.jsx(I,Object.assign({data:c,height:i},e))}default:return null}})()]})},exports.GanttChart=({data:t,minTime:o=0,maxTime:s=24,tickInterval:a=2,rangeColor:l="hsl(225, 91%, 80%)",barColor:n="hsl(225, 91%, 50%)",overflowColor:c="hsl(350, 80%, 68%)",rangeLabel:i="Range",barLabel:h="Bar",showLegend:d=!0,labelWidth:x,className:u,onRowClick:p})=>{const j=null!=x?x:90,k=s-o,m=e.useCallback((r=>(r-o)/k*100),[o,k]),v=r=>{const e=Math.floor(r);return`${e}:${Math.round(60*(r-e)).toString().padStart(2,"0")}`},C=[];for(let r=o;r<=s;r+=a)C.push(r);return r.jsxs("div",{className:"gantt-chart-container"+(u?` ${u}`:""),children:[d&&r.jsx(f,{direction:"horizontal",itemStyle:"line",items:[{label:i,color:l},{label:h,color:n}],className:"gantt-chart-legend"}),r.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[r.jsxs("div",{style:{width:j,flexShrink:0},children:[t.map((e=>r.jsx("div",{style:{height:44,display:"flex",alignItems:"center",paddingRight:"0.75rem",fontSize:"0.8125rem",color:"hsl(var(--muted-200))"},children:e.label},e.label))),r.jsx("div",{style:{height:32,display:"flex",alignItems:"flex-start",paddingTop:10,fontSize:"0.75rem",color:"hsl(var(--muted-200))"},children:"Time"})]}),r.jsxs("div",{style:{flex:1,minWidth:0,position:"relative"},children:[C.map((e=>r.jsx("div",{style:{position:"absolute",left:`${m(e)}%`,top:0,bottom:32,width:1,backgroundColor:"hsl(var(--muted-50))",pointerEvents:"none"}},e))),t.map((e=>{const t=m(e.rangeStart),o=m(e.rangeEnd)-t,s=m(e.barStart),a=Math.min(e.barEnd,e.rangeEnd),i=m(a)-s,h=e.barEnd>e.rangeEnd,d=m(e.rangeEnd),x=m(e.barEnd)-d,u=16.5,j=m(e.barStart),k=m(e.barEnd),v=Math.max(0,k-j),C=v>0;return r.jsxs("div",{style:{height:44,position:"relative",cursor:p?"pointer":"default"},onClick:p?r=>p(e,r):void 0,onKeyDown:p?r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),p(e,r))}:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,children:[r.jsx("div",{style:{position:"absolute",left:`${t}%`,width:`${Math.max(o,0)}%`,height:16,top:14,backgroundColor:l,borderRadius:8}}),i>0&&r.jsx("div",{style:{position:"absolute",left:`${s}%`,width:`${Math.max(i,0)}%`,height:X,top:u,backgroundColor:n,borderRadius:h?"5.5px 0 0 5.5px":5.5,zIndex:1}}),h&&x>0&&r.jsx("div",{style:{position:"absolute",left:`${d}%`,width:`${Math.max(x,0)}%`,height:X,top:u,background:`linear-gradient(to right, ${n}, ${c})`,borderRadius:"0 5.5px 5.5px 0",zIndex:1}}),C&&r.jsx("div",{style:{position:"absolute",left:`${j}%`,width:`${v}%`,top:u,height:X,zIndex:2},children:r.jsx($,{content:r.jsx(q,{item:e}),position:"top",className:"gantt-bar-tooltip",maxWidth:280,children:r.jsx("div",{className:"gantt-bar-tooltip-hit"})})})]},e.label)})),r.jsx("div",{style:{height:32,position:"relative",borderTop:"1px solid hsl(var(--muted-50))"},children:C.map((e=>r.jsx("div",{style:{position:"absolute",left:`${m(e)}%`,top:8,transform:"translateX(-50%)",fontSize:11,color:"hsl(var(--muted-200))",whiteSpace:"nowrap"},children:v(e)},e)))})]})]})]})},exports.HeatmapChart=S,exports.Legend=f,exports.LineChart=C,exports.PieChart=w,exports.StatChart=({data:e,compareData:t,primaryColor:o="hsl(var(--primary))",primaryLabel:s,compareColor:a="hsl(225, 65%, 62%)",compareLabel:l,trackColor:n="hsl(var(--primary-muted))",compareTrackColor:c,unit:i,showDifference:h=!1,height:d,className:x})=>{const u=null!=c?c:"hsl(225, 65%, 88%)",p=r=>`${r.toLocaleString()}${i?` ${i}`:""}`;if(!t){const t=e.some((r=>void 0!==r.total)),s=Math.max(...e.map((r=>r.value))),a=function(r){const e=r.reduce(((r,e)=>Math.max(r,e.length)),0),t=Math.ceil(7*e)+8;return Math.min(Math.max(t,48),200)}(e.map((r=>r.label)));return r.jsx("div",{className:"stat-chart-container"+(x?` ${x}`:""),style:{height:d},children:e.map((e=>{var l;const c=t?null!==(l=e.total)&&void 0!==l?l:e.value:s;return r.jsx(G,{label:e.label,labelWidth:a,value:e.value,rowMax:c,fillColor:o,trackColor:n,showTrack:t&&void 0!==e.total,tooltipText:p(e.value)},e.label)}))})}const j=e.map((r=>{const e=t.find((e=>e.label===r.label));return e?{label:r.label,current:r,previous:e}:null})).filter((r=>null!==r));if(!j.length)return null;const k=e.some((r=>void 0!==r.total)),m=k?void 0:Math.max(...e.map((r=>r.value)),...t.map((r=>r.value))),v=l||s?32:0,C=j.map((({previous:r,current:e})=>({value1:r.value,value2:e.value})));return r.jsxs("div",{className:"stat-chart-compare-wrapper"+(x?` ${x}`:""),style:{height:d},children:[r.jsxs("div",{className:"stat-chart-compare-section",children:[l&&r.jsx("div",{className:"stat-chart-compare-label",style:{height:v},children:l}),j.map((({label:e,previous:t})=>{var o;const s=k?null!==(o=t.total)&&void 0!==o?o:t.value:m;return r.jsx(G,{value:t.value,rowMax:s,fillColor:a,trackColor:u,showTrack:k&&void 0!==t.total,reversed:!0,tooltipText:p(t.value)},e)}))]}),r.jsx("div",{className:"stat-chart-compare-center",style:{paddingTop:v},children:j.map((({label:e})=>r.jsx("div",{className:"stat-chart-compare-center-label",style:{height:48,display:"flex",alignItems:"center",justifyContent:"center"},children:e},e)))}),r.jsxs("div",{className:"stat-chart-compare-section",children:[s&&r.jsx("div",{className:"stat-chart-compare-label",style:{height:v},children:s}),j.map((({label:e,current:t})=>{var s;const a=k?null!==(s=t.total)&&void 0!==s?s:t.value:m;return r.jsx(G,{value:t.value,rowMax:a,fillColor:o,trackColor:n,showTrack:k&&void 0!==t.total,tooltipText:p(t.value)},e)}))]}),h&&r.jsx(B,{data:C,headerHeight:v})]})},exports.WaterfallChart=I;
2
2
  //# sourceMappingURL=index.cjs.js.map