@sakaniui/react 0.3.26 → 0.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{TopBar-CwxSs2uQ.js → TopBar-Cbskdj4E.js} +700 -634
- package/dist/TopBar-P5mbIdH5.cjs +1 -0
- package/dist/blocks.cjs +1 -1
- package/dist/blocks.mjs +15 -23
- package/dist/components/SidebarItem/SidebarItem.d.ts +8 -0
- package/dist/components/Switch/Switch.d.ts +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +392 -361
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/TopBar-DMt67HWs.cjs +0 -1
package/dist/blocks.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, H as s, I as c, J as l, K as u, L as d, N as f, O as p, P as m, Q as h, R as g, S as _, U as v, V as y, W as b, X as x, Y as ee, Z as te, _ as S, a as ne, at as C, b as re, c as ie, ct as ae, d as oe, dt as se, et as ce, f as le, ft as ue, g as de, h as fe, i as pe, it as me, j as he, k as ge, l as _e, lt as ve, m as ye, n as be, nt as xe, o as w, ot as Se, p as Ce, pt as T, r as we, rt as Te, s as Ee, st as De, t as Oe, tt as E, u as ke, ut as Ae, v as je, w as Me, x as Ne, y as Pe, z as Fe } from "./TopBar-
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, H as s, I as c, J as l, K as u, L as d, N as f, O as p, P as m, Q as h, R as g, S as _, U as v, V as y, W as b, X as x, Y as ee, Z as te, _ as S, a as ne, at as C, b as re, c as ie, ct as ae, d as oe, dt as se, et as ce, f as le, ft as ue, g as de, h as fe, i as pe, it as me, j as he, k as ge, l as _e, lt as ve, m as ye, n as be, nt as xe, o as w, ot as Se, p as Ce, pt as T, r as we, rt as Te, s as Ee, st as De, t as Oe, tt as E, u as ke, ut as Ae, v as je, w as Me, x as Ne, y as Pe, z as Fe } from "./TopBar-Cbskdj4E.js";
|
|
2
2
|
import D from "react";
|
|
3
3
|
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
4
4
|
import { Bell as Ie, Boxes as Le, Building2 as Re, Calendar as ze, CalendarDays as Be, ChartPie as Ve, Check as He, ChevronDown as Ue, ChevronUp as We, ChevronsUpDown as Ge, Circle as Ke, CircleCheck as qe, Coins as Je, Columns3 as Ye, CreditCard as Xe, Database as Ze, Download as Qe, Eye as $e, EyeOff as et, File as tt, FileText as nt, Filter as rt, Flag as it, Group as at, House as ot, LayoutGrid as st, Lock as ct, Mail as lt, MailCheck as ut, Merge as dt, MessageCircle as ft, MessageCircleMore as pt, MessageSquare as mt, MoreHorizontal as ht, PanelLeftClose as gt, PanelRight as _t, Pencil as vt, Phone as yt, Plug as bt, Plus as xt, Quote as St, Search as Ct, Settings as wt, ShieldCheck as Tt, ShoppingBag as Et, Sparkles as Dt, Target as Ot, Trash as kt, Truck as At, Upload as jt, UploadCloud as Mt, User as Nt, UserPlus as Pt, Users as Ft, Video as It, Workflow as Lt, X as Rt, Zap as zt } from "lucide-react";
|
|
@@ -2796,7 +2796,7 @@ var Bt = {
|
|
|
2796
2796
|
0,
|
|
2797
2797
|
1,
|
|
2798
2798
|
2
|
|
2799
|
-
] : []), [s, c] = D.useState(Jn);
|
|
2799
|
+
] : []), [s, c] = D.useState(Jn), [l, u] = D.useState(["Status: Active", "Role: Admin"]);
|
|
2800
2800
|
D.useEffect(() => {
|
|
2801
2801
|
o(e === "bulk" ? [
|
|
2802
2802
|
0,
|
|
@@ -2804,11 +2804,11 @@ var Bt = {
|
|
|
2804
2804
|
2
|
|
2805
2805
|
] : []);
|
|
2806
2806
|
}, [e]);
|
|
2807
|
-
let
|
|
2807
|
+
let d = e === "filtered" ? Jn.filter((e) => e.role === "Admin" && e.status === "Active") : e === "empty" || e === "error" ? [] : Jn, f = a.length > 0;
|
|
2808
2808
|
return /* @__PURE__ */ A("div", {
|
|
2809
2809
|
className: [U.block, t ?? ""].filter(Boolean).join(" "),
|
|
2810
2810
|
children: [
|
|
2811
|
-
|
|
2811
|
+
f ? /* @__PURE__ */ A("div", {
|
|
2812
2812
|
className: U.bulkBar,
|
|
2813
2813
|
children: [
|
|
2814
2814
|
/* @__PURE__ */ A("span", {
|
|
@@ -2847,22 +2847,14 @@ var Bt = {
|
|
|
2847
2847
|
placeholder: e === "filtered" ? "admin" : "Search members…",
|
|
2848
2848
|
defaultValue: e === "filtered" ? "admin" : void 0
|
|
2849
2849
|
})
|
|
2850
|
-
}), e === "filtered" || e === "empty" ? /* @__PURE__ */ A(O, { children: [
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
onRemove: () => {},
|
|
2859
|
-
children: "Role: Admin"
|
|
2860
|
-
}),
|
|
2861
|
-
/* @__PURE__ */ k(je, {
|
|
2862
|
-
type: "add",
|
|
2863
|
-
children: "Add filter"
|
|
2864
|
-
})
|
|
2865
|
-
] }) : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(je, {
|
|
2850
|
+
}), e === "filtered" || e === "empty" ? /* @__PURE__ */ A(O, { children: [l.map((e) => /* @__PURE__ */ k(je, {
|
|
2851
|
+
type: "active",
|
|
2852
|
+
onRemove: () => u((t) => t.filter((t) => t !== e)),
|
|
2853
|
+
children: e
|
|
2854
|
+
}, e)), /* @__PURE__ */ k(je, {
|
|
2855
|
+
type: "add",
|
|
2856
|
+
children: "Add filter"
|
|
2857
|
+
})] }) : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(je, {
|
|
2866
2858
|
type: "default",
|
|
2867
2859
|
children: "Status"
|
|
2868
2860
|
}), /* @__PURE__ */ k(je, {
|
|
@@ -2935,7 +2927,7 @@ var Bt = {
|
|
|
2935
2927
|
className: U.tableShell,
|
|
2936
2928
|
children: [/* @__PURE__ */ k(pe, {
|
|
2937
2929
|
columns: Xn,
|
|
2938
|
-
rows: e === "filtered" ?
|
|
2930
|
+
rows: e === "filtered" ? d : s,
|
|
2939
2931
|
selectable: !0,
|
|
2940
2932
|
selectedRows: a,
|
|
2941
2933
|
onSelectionChange: o,
|
|
@@ -2949,7 +2941,7 @@ var Bt = {
|
|
|
2949
2941
|
})]
|
|
2950
2942
|
}) : /* @__PURE__ */ k(pe, {
|
|
2951
2943
|
columns: Xn,
|
|
2952
|
-
rows: e === "filtered" ?
|
|
2944
|
+
rows: e === "filtered" ? d : s,
|
|
2953
2945
|
selectable: !0,
|
|
2954
2946
|
selectedRows: a,
|
|
2955
2947
|
onSelectionChange: o,
|
|
@@ -2961,7 +2953,7 @@ var Bt = {
|
|
|
2961
2953
|
className: U.footer,
|
|
2962
2954
|
children: [/* @__PURE__ */ k("span", {
|
|
2963
2955
|
className: U.footer__count,
|
|
2964
|
-
children: e === "loading" ? "Loading members…" : e === "error" ? "—" :
|
|
2956
|
+
children: e === "loading" ? "Loading members…" : e === "error" ? "—" : d.length === 0 ? `Showing 0 of ${Jn.length} members` : f ? `${a.length} of ${Jn.length} members selected` : `Showing 1–${d.length} of ${Jn.length} members`
|
|
2965
2957
|
}), /* @__PURE__ */ k(fe, {
|
|
2966
2958
|
total: e === "filtered" ? 1 : 5,
|
|
2967
2959
|
page: r,
|
|
@@ -13,6 +13,14 @@ export interface SidebarItemProps {
|
|
|
13
13
|
badge?: string;
|
|
14
14
|
hasSubmenu?: boolean;
|
|
15
15
|
collapsed?: boolean;
|
|
16
|
+
/** Only matters when `hasSubmenu`. Rotates the chevron 90° (pointing down)
|
|
17
|
+
* to show the section is open; the resting state points right, toward a
|
|
18
|
+
* closed section — matches Figma's collapsible "Navigation group" /
|
|
19
|
+
* "Project group" headers (node 2307:42338, e.g. 2308:18305 "Projects"
|
|
20
|
+
* expanded vs 2308:18387 "Website refresh" collapsed). Not a navigation
|
|
21
|
+
* disclosure like `active` — the caller owns the open/closed state and
|
|
22
|
+
* toggles this alongside conditionally rendering the children. */
|
|
23
|
+
expanded?: boolean;
|
|
16
24
|
onClick?: () => void;
|
|
17
25
|
href?: string;
|
|
18
26
|
/** Native title-attribute tooltip on collapse. Defaults to true; set
|
|
@@ -2,6 +2,10 @@ import { default as React } from 'react';
|
|
|
2
2
|
export interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
3
3
|
/** Optional label rendered to the right of the switch. */
|
|
4
4
|
label?: string;
|
|
5
|
+
/** Help text under the label, left-aligned with it (not with the track),
|
|
6
|
+
* e.g. the current state of a controlled switch. Same pattern as
|
|
7
|
+
* Checkbox's description. */
|
|
8
|
+
description?: React.ReactNode;
|
|
5
9
|
}
|
|
6
10
|
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
7
11
|
export default Switch;
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./TopBar-DMt67HWs.cjs");let t=require("react");t=e.mt(t,1);let n=require("react/jsx-runtime"),r=require("lucide-react"),i=require("recharts");var a={announcement:`_announcement_1ba3c_1`,"announcement--neutral":`_announcement--neutral_1ba3c_13`,"announcement--urgent":`_announcement--urgent_1ba3c_16`,content:`_content_1ba3c_20`,icon:`_icon_1ba3c_28`,icon__neutral:`_icon__neutral_1ba3c_32`,message:`_message_1ba3c_36`,link:`_link_1ba3c_52`},o=({message:t,linkLabel:i,linkHref:o,onLinkClick:s,onDismiss:c,variant:l=`neutral`,className:u})=>{let d=l===`urgent`;return(0,n.jsxs)(`div`,{className:[a.announcement,a[`announcement--${l}`],u??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:a.content,children:[(0,n.jsx)(`span`,{className:a.icon,"aria-hidden":`true`,children:d?(0,n.jsx)(r.TriangleAlert,{size:24,strokeWidth:1.5,style:{fill:`var(--color-info-solid)`,stroke:`var(--color-info-bg)`}}):(0,n.jsx)(r.Sparkles,{size:24,strokeWidth:1.5,fill:`currentColor`,stroke:`currentColor`,className:a.icon__neutral})}),(0,n.jsx)(`p`,{className:a.message,children:t}),!d&&i&&(0,n.jsx)(e.st,{href:o,onClick:s,className:a.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:i})]}),c&&(0,n.jsx)(e.ot,{icon:r.X,size:`sm`,variant:`ghost`,"aria-label":`Dismiss`,onClick:c})]})},s={snippet:`_snippet_1ao90_1`,header:`_header_1ao90_12`,filename:`_filename_1ao90_19`,body:`_body_1ao90_31`,tokenKeyword:`_tokenKeyword_1ao90_42`,tokenString:`_tokenString_1ao90_43`,editableBody:`_editableBody_1ao90_50`,textarea:`_textarea_1ao90_55`},c=[`import`,`export`,`from`,`default`,`function`,`return`,`const`,`let`,`var`,`if`,`else`,`for`,`while`,`class`,`extends`,`new`,`async`,`await`,`as`,`of`,`in`],l=RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${c.join(`|`)})\\b)`,`g`),u=e=>e.split(l).map((e,r)=>{if(!e)return null;let i=/^['"`]/.test(e),a=!i&&c.includes(e);return i?(0,n.jsx)(`span`,{className:s.tokenString,children:e},r):a?(0,n.jsx)(`span`,{className:s.tokenKeyword,children:e},r):(0,n.jsx)(t.default.Fragment,{children:e},r)}),d=({code:i,filename:a,onCopy:o,editable:c=!1,onChange:l,placeholder:d,className:f})=>{let[p,m]=t.default.useState(!1),[h,g]=t.default.useState(i);t.default.useEffect(()=>g(i),[i]);let _=()=>{navigator.clipboard?.writeText(h),o?.(h),m(!0),window.setTimeout(()=>m(!1),1500)},v=e=>{g(e),l?.(e)},y=c?(0,n.jsxs)(`div`,{className:s.editableBody,children:[(0,n.jsx)(`pre`,{className:s.body,"aria-hidden":`true`,children:u(h)}),(0,n.jsx)(`textarea`,{className:s.textarea,value:h,placeholder:d,spellCheck:!1,onChange:e=>v(e.target.value),onKeyDown:e=>{if(e.key!==`Tab`)return;e.preventDefault();let t=e.currentTarget,{selectionStart:n,selectionEnd:r}=t,i=`${h.slice(0,n)} ${h.slice(r)}`;v(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=n+2})}})]}):(0,n.jsx)(`pre`,{className:s.body,children:u(h)});return a?(0,n.jsxs)(`div`,{className:[s.snippet,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:s.header,children:[(0,n.jsx)(`p`,{className:s.filename,children:a}),(0,n.jsx)(e.ot,{icon:p?r.Check:r.Copy,variant:`ghost`,size:`sm`,"aria-label":p?`Copied`:`Copy code`,onClick:_})]}),y]}):(0,n.jsx)(`div`,{className:[s.snippet,f??``].filter(Boolean).join(` `),children:y})},f={expenses:`_expenses_1imiq_1`,row:`_row_1imiq_10`,top:`_top_1imiq_18`,left:`_left_1imiq_26`,icon:`_icon_1imiq_32`,label:`_label_1imiq_44`,amount:`_amount_1imiq_55`},p=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),m=({categories:t,variant:r=`default`,formatAmount:i=p,className:a})=>{let o=r===`compact`,s=Math.max(1,...t.map(e=>e.amount));return(0,n.jsx)(`div`,{className:[f.expenses,a??``].filter(Boolean).join(` `),children:t.map((t,r)=>(0,n.jsxs)(`div`,{className:f.row,children:[(0,n.jsxs)(`div`,{className:f.top,children:[(0,n.jsxs)(`div`,{className:f.left,children:[(0,n.jsx)(`span`,{className:f.icon,"aria-hidden":`true`,children:t.icon}),(0,n.jsx)(`p`,{className:f.label,children:t.label})]}),(0,n.jsx)(`p`,{className:f.amount,children:i(t.amount)})]}),!o&&(0,n.jsx)(e.nt,{value:t.amount/s*100,size:`lg`,label:`${t.label} spending`})]},t.id??r))})},h={hint:`_hint_49nyi_1`,bar:`_bar_49nyi_9`,"hint--neutral":`_hint--neutral_49nyi_15`,"hint--warning":`_hint--warning_49nyi_16`,icon:`_icon_49nyi_18`,message:`_message_49nyi_24`},g=14,_=({message:t,variant:i=`neutral`,className:a})=>{let o=i===`warning`?r.TriangleAlert:r.Info;return(0,n.jsxs)(`div`,{className:[h.hint,h[`hint--${i}`],a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:h.bar,"aria-hidden":`true`}),(0,n.jsx)(o,{size:g,strokeWidth:e.pt(g),className:h.icon}),(0,n.jsx)(`p`,{className:h.message,children:t})]})},v={item:`_item_mg6gs_1`,"item--horizontal":`_item--horizontal_mg6gs_6`,"item--vertical":`_item--vertical_mg6gs_11`,value:`_value_mg6gs_16`,topRow:`_topRow_mg6gs_31`,connectorHorizontal:`_connectorHorizontal_mg6gs_36`,rail:`_rail_mg6gs_44`,connectorVertical:`_connectorVertical_mg6gs_51`,text:`_text_mg6gs_59`,title:`_title_mg6gs_65`,description:`_description_mg6gs_73`},y=({step:t,title:i,description:a,completed:o=!1,orientation:s=`horizontal`,isLast:c=!1,className:l})=>{let u=s===`vertical`,d=(0,n.jsx)(`span`,{className:v.value,"aria-hidden":`true`,children:o?(0,n.jsx)(r.Check,{size:14,strokeWidth:e.pt(14)}):t}),f=(0,n.jsxs)(`div`,{className:v.text,children:[(0,n.jsx)(`p`,{className:v.title,children:i}),a&&(0,n.jsx)(`p`,{className:v.description,children:a})]});return u?(0,n.jsxs)(`div`,{className:[v.item,v[`item--vertical`],l??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:v.rail,children:[d,!c&&(0,n.jsx)(`div`,{className:v.connectorVertical})]}),f]}):(0,n.jsxs)(`div`,{className:[v.item,v[`item--horizontal`],l??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:v.topRow,children:[d,!c&&(0,n.jsx)(`div`,{className:v.connectorHorizontal})]}),f]})},b={separator:`_separator_pcfo8_1`,line:`_line_pcfo8_9`,overline:`_overline_pcfo8_19`,badge:`_badge_pcfo8_31`,iconWrap:`_iconWrap_pcfo8_37`},x=({children:t,label:r,className:i})=>(0,n.jsxs)(`div`,{className:[b.separator,i??``].filter(Boolean).join(` `),role:`separator`,children:[(0,n.jsx)(e.tt,{className:b.line}),t??(r&&(0,n.jsx)(`span`,{className:b.overline,children:r})),(0,n.jsx)(e.tt,{className:b.line})]});function S(e){let[,n]=(0,t.useState)(0);return(0,t.useEffect)(()=>{if(typeof document>`u`)return;n(e=>e+1);let t=new MutationObserver(()=>n(e=>e+1)),r=new Set([document.documentElement]);for(let t=e.current;t;t=t.parentElement)r.add(t);return r.forEach(e=>t.observe(e,{attributes:!0,attributeFilter:[`class`]})),()=>t.disconnect()},[e]),t=>{if(typeof window>`u`)return;let n=e.current??document.documentElement;return getComputedStyle(n).getPropertyValue(t).trim()||void 0}}var C=[`#ff4700`,`#5b92dd`,`#47a8a2`,`#9179d6`,`#dca84f`,`#12b76a`],w={tooltip:`_tooltip_ic16u_3`,title:`_title_ic16u_23`,row:`_row_ic16u_27`,dot:`_dot_ic16u_34`,label:`_label_ic16u_41`,value:`_value_ic16u_42`},T=({active:e,payload:t,label:r,formatter:i})=>!e||!t||t.length===0?null:(0,n.jsxs)(`div`,{className:w.tooltip,children:[r!==void 0&&r!==``&&(0,n.jsx)(`span`,{className:w.title,children:r}),t.map((e,t)=>(0,n.jsxs)(`div`,{className:w.row,children:[(0,n.jsx)(`span`,{className:w.dot,style:{background:e.color??e.payload?.fill??e.fill}}),(0,n.jsx)(`span`,{className:w.label,children:e.name}),(0,n.jsx)(`span`,{className:w.value,children:i?i(e.value,e.name):e.value})]},t))]}),E={chart:`_chart_1s6lv_2`,legend:`_legend_1s6lv_31`,legendItem:`_legendItem_1s6lv_41`,legendSwatch:`_legendSwatch_1s6lv_46`},D={sm:180,md:240,lg:320,xl:420},O=6,k=e=>{if(e<=0)return 1;let t=10**Math.floor(Math.log10(e)),n=e/t;return(n<=1?1:n<=2?2:n<=5?5:10)*t},A=({data:e,variant:r=`default`,size:a=`md`,seriesLabels:o=[`Value`,`Value 2`],className:s})=>{let[c,l]=t.default.useState(null),[u,d]=t.default.useState(null),f=t.default.useRef(null),p=S(f),m=p(`--color-chart-2`)??`#5b92dd`,h=p(`--color-chart-5`)??`#dca84f`,g=p(`--color-chart-1`)??`#ff4700`,_=[1,2,3,4,5,6].map(e=>p(`--color-chart-${e}`)??C[e-1]),v=p(`--color-border-subtle`)??`#e7e5e1`,y=p(`--color-fg-muted`)??`#78716a`,b=r===`multiple`||r===`stacked`,x=b&&e.some(e=>e.value2!==void 0),w=p(`--color-bg-canvas`)??`#fafaf9`,A=k(Math.max(1,...e.map(e=>Math.abs(e.value)))),j=[-A,-A/2,0,A/2,A],ee=(0,n.jsx)(i.Tooltip,{cursor:!1,content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50},position:u?{y:u.y}:void 0}),M=t=>r===`active`?_[t%_.length]:r===`negative`&&e[t].value<0?g:m,te=e=>c!==null&&e!==c?.45:1,ne=(e,t,n,r,i,a)=>({x:e?t+r:t+r/2,y:e?n+i/2:a<0?n+i:n}),N=t=>a=>{let{x:o,y:s,width:c,height:l,fill:u,radius:d}=a,f=Number(e[a.index]?.[t]??0),{x:p,y:h}=ne(r===`horizontal`,o,s,c,l,f);return r===`stacked`&&t===`value`?(0,n.jsx)(i.Rectangle,{x:o,y:s,width:c,height:l,fill:u,radius:d}):(0,n.jsxs)(`g`,{children:[(0,n.jsx)(i.Rectangle,{x:o,y:s,width:c,height:l,fill:u,radius:d}),(0,n.jsx)(`circle`,{cx:p,cy:h,r:4,fill:u,stroke:w,strokeWidth:1.5}),r===`stacked`&&t===`value2`&&(0,n.jsx)(`circle`,{cx:o+c/2,cy:s+l,r:4,fill:m,stroke:w,strokeWidth:1.5})]})},re=t=>(n,i)=>{l(i);let a=Number(e[i]?.[t]??0);d(ne(r===`horizontal`,n.x,n.y,n.width,n.height,a))},ie=()=>{l(null),d(null)};return(0,n.jsx)(`div`,{ref:f,className:[E.chart,s??``].filter(Boolean).join(` `),children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:D[a],children:(0,n.jsxs)(i.BarChart,{data:e,layout:r===`horizontal`?`vertical`:`horizontal`,margin:{top:8,right:8,bottom:8,left:r===`horizontal`?8:0},children:[(0,n.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:v,horizontal:!0,vertical:r===`horizontal`}),r===`horizontal`?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.XAxis,{type:`number`,stroke:y,fontSize:12,tickLine:!1,axisLine:!1}),(0,n.jsx)(i.YAxis,{type:`category`,dataKey:`label`,stroke:y,fontSize:12,tickLine:!1,axisLine:!1,width:64})]}):(0,n.jsx)(i.XAxis,{dataKey:`label`,stroke:y,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),r===`negative`&&(0,n.jsx)(i.YAxis,{hide:!0,domain:[-A,A],ticks:j}),ee,b&&(0,n.jsx)(i.Legend,{content:e=>(0,n.jsx)(`ul`,{className:E.legend,children:e.payload?.map(e=>(0,n.jsxs)(`li`,{className:E.legendItem,children:[(0,n.jsx)(`span`,{className:E.legendSwatch,style:{background:e.color}}),(0,n.jsx)(`span`,{style:{color:e.color},children:e.value})]},e.value))})}),b?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Bar,{dataKey:`value`,name:o[0]??`Value`,fill:m,stackId:r===`stacked`?`stack`:void 0,radius:r===`stacked`?[0,0,O,O]:[O,O,O,O],isAnimationActive:!1,activeBar:N(`value`),onMouseEnter:re(`value`),onMouseLeave:ie,children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:m,fillOpacity:c!==null&&t!==c?.45:1},t))}),x&&(0,n.jsx)(i.Bar,{dataKey:`value2`,name:o[1]??`Value 2`,fill:h,stackId:r===`stacked`?`stack`:void 0,radius:r===`stacked`?[O,O,0,0]:[O,O,O,O],isAnimationActive:!1,activeBar:N(`value2`),onMouseEnter:re(`value2`),onMouseLeave:ie,children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:h,fillOpacity:c!==null&&t!==c?.45:1},t))})]}):(0,n.jsx)(i.Bar,{dataKey:`value`,name:`Value`,fill:c===null?m:M(c),radius:[O,O,O,O],isAnimationActive:!1,activeBar:N(`value`),onMouseEnter:re(`value`),onMouseLeave:ie,children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:M(t),fillOpacity:te(t)},t))})]})})})},j={row:`_row_5wjem_2`,left:`_left_5wjem_16`,logo:`_logo_5wjem_23`,logoLg:`_logoLg_5wjem_29`,text:`_text_5wjem_36`,symbol:`_symbol_5wjem_42`,name:`_name_5wjem_50`,right:`_right_5wjem_59`,price:`_price_5wjem_65`,changeRow:`_changeRow_5wjem_73`,changeText:`_changeText_5wjem_78`,trendUp:`_trendUp_5wjem_84`,trendDown:`_trendDown_5wjem_85`,card:`_card_5wjem_88`,header:`_header_5wjem_102`,headerIcon:`_headerIcon_5wjem_109`,headerLabel:`_headerLabel_5wjem_110`,tickerRow:`_tickerRow_5wjem_117`,body:`_body_5wjem_125`,priceRow:`_priceRow_5wjem_132`,priceGroup:`_priceGroup_5wjem_139`,priceLg:`_priceLg_5wjem_144`,changeRowLg:`_changeRowLg_5wjem_153`,changeTextLg:`_changeTextLg_5wjem_158`,chart:`_chart_5wjem_165`},ee=e=>Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),M=({logo:t,symbol:i,name:a,price:o,change:s,formatAmount:c=ee,chart:l,periodLabel:u=`Last 6 months`,onPeriodClick:d,className:f})=>{let p=s.amount>=0,m=p?r.TrendingUp:r.TrendingDown,h=p?`+`:`-`,g=`${h}${c(s.amount)} (${h}${Math.abs(s.percent)}%)`,_=p?j.trendUp:j.trendDown;return l?(0,n.jsxs)(`div`,{className:[j.card,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:j.header,children:[(0,n.jsx)(r.ChartColumn,{size:16,strokeWidth:e.pt(16),className:j.headerIcon}),(0,n.jsx)(`span`,{className:j.headerLabel,children:`Stock market`})]}),(0,n.jsxs)(`div`,{className:j.tickerRow,children:[(0,n.jsx)(`span`,{className:j.logoLg,"aria-hidden":`true`,children:t}),(0,n.jsxs)(`div`,{className:j.text,children:[(0,n.jsx)(`p`,{className:j.symbol,children:i}),(0,n.jsx)(`p`,{className:j.name,children:a})]})]}),(0,n.jsxs)(`div`,{className:j.body,children:[(0,n.jsxs)(`div`,{className:j.priceRow,children:[(0,n.jsxs)(`div`,{className:j.priceGroup,children:[(0,n.jsx)(`p`,{className:j.priceLg,children:c(o)}),(0,n.jsxs)(`div`,{className:j.changeRowLg,children:[(0,n.jsx)(m,{size:24,strokeWidth:e.pt(24),className:_}),(0,n.jsx)(`span`,{className:[j.changeTextLg,_].join(` `),children:g})]})]}),(0,n.jsx)(e.at,{variant:`outline`,size:`sm`,rightIcon:(0,n.jsx)(r.ChevronDown,{size:16,strokeWidth:e.pt(16)}),onClick:d,children:u})]}),(0,n.jsx)(A,{data:l,className:j.chart})]})]}):(0,n.jsxs)(`div`,{className:[j.row,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:j.left,children:[(0,n.jsx)(`span`,{className:j.logo,"aria-hidden":`true`,children:t}),(0,n.jsxs)(`div`,{className:j.text,children:[(0,n.jsx)(`p`,{className:j.symbol,children:i}),(0,n.jsx)(`p`,{className:j.name,children:a})]})]}),(0,n.jsxs)(`div`,{className:j.right,children:[(0,n.jsx)(`p`,{className:j.price,children:c(o)}),(0,n.jsxs)(`div`,{className:j.changeRow,children:[(0,n.jsx)(m,{size:20,strokeWidth:e.pt(20),className:_}),(0,n.jsx)(`span`,{className:[j.changeText,_].join(` `),children:g})]})]})]})},te={tags:`_tags_acsad_1`,remove:`_remove_acsad_8`},ne=({tags:t,onRemove:i,className:a})=>(0,n.jsx)(`div`,{className:[te.tags,a??``].filter(Boolean).join(` `),children:t.map((t,a)=>(0,n.jsx)(e.X,{rightIcon:i&&(0,n.jsx)(`button`,{type:`button`,className:te.remove,onClick:()=>i(t,a),"aria-label":`Remove ${t}`,children:(0,n.jsx)(r.X,{size:12,strokeWidth:e.pt(12)})}),children:t},t))}),N={ticker:`_ticker_6xnxy_1`,track:`_track_6xnxy_9`,"ticker-scroll":`_ticker-scroll_6xnxy_1`,row:`_row_6xnxy_24`,item:`_item_6xnxy_33`,symbol:`_symbol_6xnxy_40`,change:`_change_6xnxy_49`,trendUp:`_trendUp_6xnxy_57`,trendDown:`_trendDown_6xnxy_58`,fadeLeft:`_fadeLeft_6xnxy_60`,fadeRight:`_fadeRight_6xnxy_61`},re=e=>`${e>=0?`+`:``}${e}%`,ie=({items:t,formatChange:i,ariaHidden:a})=>(0,n.jsx)(`div`,{className:N.row,"aria-hidden":a,children:t.map((t,a)=>{let o=t.changePercent>=0,s=o?r.TrendingUp:r.TrendingDown,c=o?N.trendUp:N.trendDown;return(0,n.jsxs)(`div`,{className:N.item,children:[(0,n.jsx)(`span`,{className:N.symbol,children:t.symbol}),(0,n.jsx)(s,{size:14,strokeWidth:e.pt(14),className:c}),(0,n.jsx)(`span`,{className:[N.change,c].join(` `),children:i(t.changePercent)})]},`${t.symbol}-${a}`)})}),ae=({items:e,speed:r=40,formatChange:i=re,className:a})=>{let o=t.default.useRef(null),[s,c]=t.default.useState(20);return t.default.useEffect(()=>{let e=o.current;if(!e)return;let t=e.firstElementChild;if(!t)return;let n=()=>{let e=t.scrollWidth;e>0&&c(e/r)};n();let i=new ResizeObserver(n);return i.observe(t),()=>i.disconnect()},[e,r]),(0,n.jsxs)(`div`,{className:[N.ticker,a??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{ref:o,className:N.track,style:{"--ticker-duration":`${s}s`},children:[(0,n.jsx)(ie,{items:e,formatChange:i}),(0,n.jsx)(ie,{items:e,formatChange:i,ariaHidden:!0})]}),(0,n.jsx)(`div`,{className:N.fadeLeft,"aria-hidden":`true`}),(0,n.jsx)(`div`,{className:N.fadeRight,"aria-hidden":`true`})]})},P={list:`_list_ovxee_1`,row:`_row_ovxee_9`,rowLast:`_rowLast_ovxee_18`,left:`_left_ovxee_22`,iconWrap:`_iconWrap_ovxee_29`,info:`_info_ovxee_41`,name:`_name_ovxee_46`,category:`_category_ovxee_54`,amount:`_amount_ovxee_63`,amountUp:`_amountUp_ovxee_71`,amountDown:`_amountDown_ovxee_72`,empty:`_empty_ovxee_75`,emptyIcon:`_emptyIcon_ovxee_86`,emptyTitle:`_emptyTitle_ovxee_89`,emptyDesc:`_emptyDesc_ovxee_96`},oe=e=>`${e>=0?`+`:`-`}${Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`})}`,se=({transactions:t,formatAmount:i=oe,emptyTitle:a=`No transactions yet`,emptyDescription:o=`Your activity will show up here.`,className:s})=>t.length===0?(0,n.jsxs)(`div`,{className:[P.empty,s??``].filter(Boolean).join(` `),children:[(0,n.jsx)(r.Receipt,{size:24,strokeWidth:e.pt(24),className:P.emptyIcon}),(0,n.jsx)(`p`,{className:P.emptyTitle,children:a}),(0,n.jsx)(`p`,{className:P.emptyDesc,children:o})]}):(0,n.jsx)(`div`,{className:[P.list,s??``].filter(Boolean).join(` `),children:t.map((e,r)=>{let a=e.amount>=0;return(0,n.jsxs)(`div`,{className:[P.row,r===t.length-1?P.rowLast:``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:P.left,children:[(0,n.jsx)(`span`,{className:P.iconWrap,"aria-hidden":`true`,children:e.icon}),(0,n.jsxs)(`div`,{className:P.info,children:[(0,n.jsx)(`p`,{className:P.name,children:e.name}),(0,n.jsx)(`p`,{className:P.category,children:e.category})]})]}),(0,n.jsx)(`p`,{className:[P.amount,a?P.amountUp:P.amountDown].join(` `),children:i(e.amount)})]},e.id??`${e.name}-${r}`)})}),F={root:`_root_19qxp_1`,rootAttributed:`_rootAttributed_19qxp_10`,rootSimple:`_rootSimple_19qxp_18`,rail:`_rail_19qxp_27`,body:`_body_19qxp_37`,markRow:`_markRow_19qxp_46`,markRowEnd:`_markRowEnd_19qxp_51`,mark:`_mark_19qxp_46`,quoteAttributed:`_quoteAttributed_19qxp_59`,quoteSimple:`_quoteSimple_19qxp_68`,author:`_author_19qxp_77`,authorText:`_authorText_19qxp_83`,authorName:`_authorName_19qxp_91`},ce=({quote:t,author:i,className:a})=>{let o=!!i;return(0,n.jsxs)(`div`,{className:[F.root,o?F.rootAttributed:F.rootSimple,a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.tt,{orientation:`vertical`,className:F.rail}),(0,n.jsxs)(`div`,{className:F.body,children:[o&&(0,n.jsx)(`span`,{className:F.markRow,"aria-hidden":`true`,children:(0,n.jsx)(r.Quote,{size:12,strokeWidth:e.pt(12),className:F.mark,fill:`currentColor`})}),(0,n.jsx)(`p`,{className:o?F.quoteAttributed:F.quoteSimple,children:o?t:`"${t}"`}),o&&(0,n.jsx)(`span`,{className:[F.markRow,F.markRowEnd].join(` `),"aria-hidden":`true`,children:(0,n.jsx)(r.Quote,{size:12,strokeWidth:e.pt(12),className:F.mark,fill:`currentColor`})}),i&&(0,n.jsxs)(`div`,{className:F.author,children:[(0,n.jsx)(e.ut,{size:`sm`,src:i.avatarSrc,alt:i.avatarAlt??i.name}),(0,n.jsxs)(`p`,{className:F.authorText,children:[(0,n.jsx)(`span`,{className:F.authorName,children:i.name}),(0,n.jsxs)(`span`,{className:F.authorRole,children:[`, `,i.role]})]})]})]})]})},le={root:`_root_btuyr_1`,rootLeft:`_rootLeft_btuyr_13`,rootTop:`_rootTop_btuyr_19`,ruleLeft:`_ruleLeft_btuyr_24`,ruleTop:`_ruleTop_btuyr_31`,text:`_text_btuyr_39`},ue=({text:e,align:t=`left`,className:r})=>(0,n.jsxs)(`div`,{className:[le.root,t===`top`?le.rootTop:le.rootLeft,r??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:t===`top`?le.ruleTop:le.ruleLeft,"aria-hidden":`true`}),(0,n.jsx)(`p`,{className:le.text,children:e})]}),de={root:`_root_awxwk_1`,imageWrap:`_imageWrap_awxwk_10`,"root--large":`_root--large_awxwk_27`,"root--small":`_root--small_awxwk_33`,image:`_image_awxwk_10`,caption:`_caption_awxwk_47`},fe=({src:e,alt:t=``,size:r=`large`,caption:i,className:a})=>(0,n.jsxs)(`figure`,{className:[de.root,de[`root--${r}`],a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:de.imageWrap,children:(0,n.jsx)(`img`,{src:e,alt:t,className:de.image})}),i&&(0,n.jsx)(`figcaption`,{className:de.caption,children:i})]}),I={root:`_root_uc5r9_1`,rootCenter:`_rootCenter_uc5r9_10`,rootLeft:`_rootLeft_uc5r9_15`,title:`_title_uc5r9_20`,description:`_description_uc5r9_30`,ctaRow:`_ctaRow_uc5r9_39`,avatarBlock:`_avatarBlock_uc5r9_45`,avatarsCaption:`_avatarsCaption_uc5r9_57`},pe=({title:t,description:i,badgeLabel:a,primaryCta:o,secondaryCta:s,avatars:c,avatarsCaption:l,align:u=`center`,className:d})=>{let f=!!(o||s),p=!!(c&&c.length>0);return(0,n.jsxs)(`div`,{className:[I.root,u===`left`?I.rootLeft:I.rootCenter,d??``].filter(Boolean).join(` `),children:[a&&(0,n.jsx)(e.X,{variant:`accent`,emphasis:`subtle`,children:a}),(0,n.jsx)(`p`,{className:I.title,children:t}),i&&(0,n.jsx)(`p`,{className:I.description,children:i}),f&&(0,n.jsxs)(`div`,{className:I.ctaRow,children:[o&&(0,n.jsx)(e.at,{variant:`primary`,onClick:o.onClick,children:o.label}),s&&(0,n.jsx)(e.at,{variant:`secondary`,leftIcon:(0,n.jsx)(r.Play,{size:16,strokeWidth:e.pt(16),fill:`currentColor`}),onClick:s.onClick,children:s.label})]}),p&&(0,n.jsxs)(`div`,{className:I.avatarBlock,children:[(0,n.jsx)(e.N,{size:`md`,avatars:c}),l&&(0,n.jsx)(`p`,{className:I.avatarsCaption,children:l})]})]})},me={root:`_root_5kajg_1`,item:`_item_5kajg_12`,marker:`_marker_5kajg_18`,dot:`_dot_5kajg_26`,label:`_label_5kajg_34`},he=({items:t,style:i=`check`,className:a})=>(0,n.jsx)(`ul`,{className:[me.root,a??``].filter(Boolean).join(` `),children:t.map((t,a)=>(0,n.jsxs)(`li`,{className:me.item,children:[(0,n.jsxs)(`span`,{className:me.marker,"aria-hidden":`true`,children:[i===`check`&&(0,n.jsx)(r.Check,{size:18,strokeWidth:e.pt(18)}),i===`arrow`&&(0,n.jsx)(r.ArrowRight,{size:16,strokeWidth:e.pt(16)}),i===`bullet`&&(0,n.jsx)(`span`,{className:me.dot})]}),(0,n.jsx)(`span`,{className:me.label,children:t})]},a))}),ge={marquee:`_marquee_1pc4i_1`,track:`_track_1pc4i_13`,row:`_row_1pc4i_19`,item:`_item_1pc4i_25`,fadeLeft:`_fadeLeft_1pc4i_31`,fadeRight:`_fadeRight_1pc4i_32`},_e=({items:e,gap:t,ariaHidden:r})=>(0,n.jsx)(`div`,{className:ge.row,style:{gap:t,paddingRight:t},"aria-hidden":r,children:e.map((e,t)=>(0,n.jsx)(`div`,{className:ge.item,children:e},t))}),ve=({items:e,speed:r=40,gap:i,className:a})=>{let o=t.default.useRef(null),s=t.default.useRef(0),c=t.default.useRef(0),l=t.default.useRef(!1);return t.default.useEffect(()=>{let e=o.current?.firstElementChild;if(!e)return;let t=()=>{s.current=e.scrollWidth};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e,i]),t.default.useEffect(()=>{let e=o.current;if(!e||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let t,n=performance.now(),i=()=>{let a=performance.now(),o=(a-n)/1e3;n=a;let u=l.current?r*.2:r,d=s.current;d>0&&(c.current=(c.current+u*o)%d,e.style.transform=`translateX(-${c.current}px)`),t=setTimeout(i,16)};return t=setTimeout(i,16),()=>clearTimeout(t)},[r]),(0,n.jsxs)(`div`,{className:[ge.marquee,a??``].filter(Boolean).join(` `),onMouseEnter:()=>{l.current=!0},onMouseLeave:()=>{l.current=!1},children:[(0,n.jsxs)(`div`,{ref:o,className:ge.track,children:[(0,n.jsx)(_e,{items:e,gap:i}),(0,n.jsx)(_e,{items:e,gap:i,ariaHidden:!0})]}),(0,n.jsx)(`div`,{className:ge.fadeLeft,"aria-hidden":`true`}),(0,n.jsx)(`div`,{className:ge.fadeRight,"aria-hidden":`true`})]})},ye={root:`_root_17a1b_1`,numRow:`_numRow_17a1b_9`,value:`_value_17a1b_15`,trend:`_trend_17a1b_25`,trendUp:`_trendUp_17a1b_35`,trendDown:`_trendDown_17a1b_39`,label:`_label_17a1b_43`},be=({value:t,label:i,trend:a,className:o})=>{let s=a!==void 0,c=s&&a>=0,l=c?r.TrendingUp:r.TrendingDown;return(0,n.jsxs)(`div`,{className:[ye.root,o??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:ye.numRow,children:[(0,n.jsx)(`p`,{className:ye.value,children:t}),s&&(0,n.jsxs)(`span`,{className:[ye.trend,c?ye.trendUp:ye.trendDown].join(` `),children:[(0,n.jsx)(l,{size:24,strokeWidth:e.pt(24)}),Math.abs(a),`%`]})]}),(0,n.jsx)(`p`,{className:ye.label,children:i})]})},L={root:`_root_scbx4_1`,header:`_header_scbx4_13`,label:`_label_scbx4_21`,toggle:`_toggle_scbx4_34`,fullWidth:`_fullWidth_scbx4_48`,collapse:`_collapse_scbx4_67`,collapseOpen:`_collapseOpen_scbx4_74`,collapseInner:`_collapseInner_scbx4_78`,navLinks:`_navLinks_scbx4_91`,navLink:`_navLink_scbx4_91`},xe=({label:i,links:a,ctaLabel:o=`Get started`,onCtaClick:s,open:c,defaultOpen:l=!1,onOpenChange:u,className:d})=>{let f=c!==void 0,[p,m]=t.default.useState(l),h=f?c:p,g=()=>{let e=!h;f||m(e),u?.(e)},_=t.default.useRef(null),[v,y]=t.default.useState(0);return t.default.useEffect(()=>{let e=_.current;if(!e)return;let t=()=>y(e.scrollHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[a,o]),(0,n.jsxs)(`div`,{className:[L.root,d??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:L.header,children:[(0,n.jsx)(`p`,{className:L.label,children:i}),(0,n.jsx)(`button`,{type:`button`,className:L.toggle,onClick:g,"aria-expanded":h,"aria-label":h?`Close menu`:`Open menu`,children:h?(0,n.jsx)(r.X,{size:16,strokeWidth:e.pt(16)}):(0,n.jsx)(r.Menu,{size:16,strokeWidth:e.pt(16)})})]}),(0,n.jsx)(`div`,{className:[L.collapse,h?L.collapseOpen:``].filter(Boolean).join(` `),style:{maxHeight:h?`${v}px`:`0px`},"aria-hidden":!h,children:(0,n.jsxs)(`div`,{ref:_,className:L.collapseInner,children:[(0,n.jsx)(`nav`,{className:L.navLinks,"aria-label":i,children:a.map(e=>(0,n.jsx)(`a`,{href:e.href,onClick:e.onClick,className:L.navLink,tabIndex:h?void 0:-1,children:e.label},e.label))}),(0,n.jsx)(e.tt,{className:L.fullWidth}),(0,n.jsx)(e.at,{variant:`primary`,className:L.fullWidth,onClick:s,tabIndex:h?void 0:-1,children:o})]})})]})},Se={root:`_root_lrpdp_1`,"root--sm":`_root--sm_lrpdp_14`,"root--md":`_root--md_lrpdp_18`,"root--lg":`_root--lg_lrpdp_22`,defaultMark:`_defaultMark_lrpdp_27`},Ce={sm:14,md:16,lg:18},we=({size:r=`md`,logo:i,label:a,className:o})=>{let s=Ce[r],c=t.default.isValidElement(i)?t.default.cloneElement(i,{size:s,strokeWidth:e.pt(s)}):i??(0,n.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%3e%3cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H20C24.4183%200%2028%203.58172%2028%208V20C28%2024.4183%2024.4183%2028%2020%2028H8C3.58172%2028%200%2024.4183%200%2020V8Z'%20fill='%23FF4700'/%3e%3cpath%20d='M6.63704%2015.9944L20.6362%2014.491'%20stroke='%23FAFAF9'%20stroke-width='2.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14.208%2022.884C12.848%2022.884%2011.664%2022.636%2010.656%2022.14C9.664%2021.644%208.88%2020.956%208.304%2020.076C7.728%2019.196%207.392%2018.172%207.296%2017.004L9.96%2016.836C10.072%2017.636%2010.304%2018.316%2010.656%2018.876C11.008%2019.42%2011.48%2019.836%2012.072%2020.124C12.68%2020.396%2013.408%2020.532%2014.256%2020.532C14.992%2020.532%2015.616%2020.444%2016.128%2020.268C16.656%2020.076%2017.056%2019.796%2017.328%2019.428C17.6%2019.06%2017.736%2018.612%2017.736%2018.084C17.736%2017.604%2017.616%2017.18%2017.376%2016.812C17.152%2016.428%2016.712%2016.084%2016.056%2015.78C15.416%2015.46%2014.472%2015.148%2013.224%2014.844C11.864%2014.508%2010.776%2014.14%209.96%2013.74C9.144%2013.34%208.552%2012.844%208.184%2012.252C7.832%2011.644%207.656%2010.9%207.656%2010.02C7.656%209.044%207.888%208.188%208.352%207.452C8.832%206.7%209.512%206.116%2010.392%205.7C11.272%205.284%2012.328%205.076%2013.56%205.076C14.856%205.076%2015.96%205.316%2016.872%205.796C17.8%206.276%2018.528%206.932%2019.056%207.764C19.6%208.596%2019.936%209.548%2020.064%2010.62L17.4%2010.764C17.32%2010.108%2017.12%209.532%2016.8%209.036C16.48%208.524%2016.048%208.132%2015.504%207.86C14.96%207.572%2014.296%207.428%2013.512%207.428C12.52%207.428%2011.736%207.66%2011.16%208.124C10.6%208.572%2010.32%209.172%2010.32%209.924C10.32%2010.404%2010.432%2010.812%2010.656%2011.148C10.896%2011.468%2011.312%2011.748%2011.904%2011.988C12.512%2012.228%2013.368%2012.484%2014.472%2012.756C15.944%2013.092%2017.112%2013.508%2017.976%2014.004C18.856%2014.484%2019.48%2015.052%2019.848%2015.708C20.216%2016.364%2020.4%2017.108%2020.4%2017.94C20.4%2018.948%2020.136%2019.828%2019.608%2020.58C19.096%2021.316%2018.376%2021.884%2017.448%2022.284C16.52%2022.684%2015.44%2022.884%2014.208%2022.884Z'%20fill='%23FAFAF9'/%3e%3c/svg%3e`,alt:``,width:s,height:s,className:Se.defaultMark});return(0,n.jsx)(`span`,{className:[Se.root,Se[`root--${r}`],o??``].filter(Boolean).join(` `),role:`img`,"aria-label":a??`Logo placeholder`,children:c})},R={root:`_root_ibchq_1`,rootCompact:`_rootCompact_ibchq_7`,rootDetailed:`_rootDetailed_ibchq_14`,infoCompact:`_infoCompact_ibchq_21`,infoDetailed:`_infoDetailed_ibchq_27`,name:`_name_ibchq_35`,role:`_role_ibchq_44`,bio:`_bio_ibchq_53`,social:`_social_ibchq_63`,socialBtn:`_socialBtn_ibchq_71`},Te=({name:t,role:r,avatarSrc:i,avatarAlt:a,bio:o,socialLinks:s=[],className:c})=>{let l=!!o||s.length>0;return(0,n.jsxs)(`div`,{className:[R.root,l?R.rootDetailed:R.rootCompact,c??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.ut,{size:`xl`,src:i,alt:a??t}),(0,n.jsxs)(`div`,{className:l?R.infoDetailed:R.infoCompact,children:[(0,n.jsx)(`p`,{className:R.name,children:t}),(0,n.jsx)(`p`,{className:R.role,children:r})]}),l&&o&&(0,n.jsx)(`p`,{className:R.bio,children:o}),l&&s.length>0&&(0,n.jsx)(`div`,{className:R.social,children:s.map((e,t)=>(0,n.jsx)(`a`,{href:e.href,onClick:e.onClick,className:R.socialBtn,"aria-label":e.label,children:e.icon},e.label??t))})]})},Ee={heading:`_heading_96cdx_1`,h2:`_h2_96cdx_8`,h3:`_h3_96cdx_14`},De=({children:e,level:t=`h2`,className:r})=>(0,n.jsx)(t,{className:[Ee.heading,Ee[t],r??``].filter(Boolean).join(` `),children:e}),Oe={paragraph:`_paragraph_8pqdi_1`},ke=({children:e,className:t})=>(0,n.jsx)(`p`,{className:[Oe.paragraph,t??``].filter(Boolean).join(` `),children:e}),z={rootBordered:`_rootBordered_5cgsj_1`,rail:`_rail_5cgsj_12`,contentHorizontal:`_contentHorizontal_5cgsj_18`,contentVertical:`_contentVertical_5cgsj_25`,textHorizontal:`_textHorizontal_5cgsj_33`,textVertical:`_textVertical_5cgsj_41`,title:`_title_5cgsj_49`,description:`_description_5cgsj_57`},Ae=({icon:r,title:i,description:a,layout:o=`horizontal`,leftBorder:s=!1,className:c})=>{let l=o===`vertical`,u=(0,n.jsxs)(`div`,{className:l?z.contentVertical:z.contentHorizontal,children:[(0,n.jsx)(e.P,{icon:r,size:`sm`,variant:`light`}),(0,n.jsxs)(`div`,{className:l?z.textVertical:z.textHorizontal,children:[(0,n.jsx)(`p`,{className:z.title,children:i}),(0,n.jsx)(`p`,{className:z.description,children:a})]})]});return s?(0,n.jsxs)(`div`,{className:[z.rootBordered,c??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.tt,{orientation:`vertical`,className:z.rail}),u]}):t.default.cloneElement(u,{className:[u.props.className,c??``].filter(Boolean).join(` `)})},je={chart:`_chart_qqaox_2`},Me={sm:180,md:240,lg:320,xl:420},Ne=({data:e,variant:r=`default`,seriesLabels:a=[`Value`,`Value 2`],size:o=`md`,height:s,className:c})=>{let l=t.default.useRef(null),u=S(l),d=u(`--color-chart-5`)??`#dca84f`,f=u(`--color-chart-2`)??`#5b92dd`,p=u(`--color-border-subtle`)??`#e7e5e1`,m=u(`--color-fg-muted`)??`#78716a`,h=e.some(e=>e.value2!==void 0),g=r===`step`?`step`:r===`linear`?`linear`:`monotone`,_=r===`stacked`?`stack`:void 0;return(0,n.jsx)(`div`,{ref:l,className:[je.chart,c??``].filter(Boolean).join(` `),children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:s??Me[o],children:(0,n.jsxs)(i.AreaChart,{data:e,margin:{top:8,right:8,bottom:8,left:0},children:[(0,n.jsxs)(`defs`,{children:[(0,n.jsxs)(`linearGradient`,{id:`sakani-area-1`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,n.jsx)(`stop`,{offset:`5%`,stopColor:d,stopOpacity:.35}),(0,n.jsx)(`stop`,{offset:`95%`,stopColor:d,stopOpacity:.02})]}),(0,n.jsxs)(`linearGradient`,{id:`sakani-area-2`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,n.jsx)(`stop`,{offset:`5%`,stopColor:f,stopOpacity:.35}),(0,n.jsx)(`stop`,{offset:`95%`,stopColor:f,stopOpacity:.02})]})]}),(0,n.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:p,vertical:!1}),(0,n.jsx)(i.XAxis,{dataKey:`label`,stroke:m,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,n.jsx)(i.Tooltip,{cursor:{stroke:u(`--color-border-default`)??`#dbdad7`,strokeWidth:1},content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}}),h&&(0,n.jsx)(i.Area,{type:g,dataKey:`value2`,name:a[1]??`Value 2`,stackId:_,stroke:f,strokeWidth:2,fill:`url(#sakani-area-2)`,dot:!1,activeDot:{r:4,fill:f,stroke:u(`--color-bg-canvas`),strokeWidth:1.5}}),(0,n.jsx)(i.Area,{type:g,dataKey:`value`,name:a[0]??`Value`,stackId:_,stroke:d,strokeWidth:2,fill:`url(#sakani-area-1)`,dot:!1,activeDot:{r:4,fill:d,stroke:u(`--color-bg-canvas`),strokeWidth:1.5}})]})})})},B={col:`_col_1v24u_2`,col__header:`_col__header_1v24u_11`,col__dot:`_col__dot_1v24u_12`,col__title:`_col__title_1v24u_13`,col__count:`_col__count_1v24u_14`,col__spacer:`_col__spacer_1v24u_15`,col__action:`_col__action_1v24u_16`,col__body:`_col__body_1v24u_24`,col__drop:`_col__drop_1v24u_25`,col__add:`_col__add_1v24u_31`},Pe=({state:t=`default`,title:i,count:a,dotColor:o=`var(--color-chart-1)`,children:s,onAdd:c,onMenu:l,className:u})=>(0,n.jsxs)(`div`,{className:[B.col,u??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:B.col__header,children:[(0,n.jsx)(`span`,{className:B.col__dot,style:{background:o},"aria-hidden":`true`}),(0,n.jsx)(`span`,{className:B.col__title,children:i}),a!=null&&(0,n.jsx)(`span`,{className:B.col__count,children:a}),(0,n.jsx)(`span`,{className:B.col__spacer}),(0,n.jsx)(`button`,{type:`button`,className:B.col__action,onClick:c,"aria-label":`Add task`,children:(0,n.jsx)(r.Plus,{size:16,strokeWidth:e.pt(16)})}),(0,n.jsx)(`button`,{type:`button`,className:B.col__action,onClick:l,"aria-label":`Column options`,children:(0,n.jsx)(r.MoreHorizontal,{size:16,strokeWidth:e.pt(16)})})]}),(0,n.jsx)(`div`,{className:B.col__body,children:t===`empty`?(0,n.jsx)(`div`,{className:B.col__drop,children:`Drop tasks here`}):s}),(0,n.jsxs)(`button`,{type:`button`,className:B.col__add,onClick:c,children:[(0,n.jsx)(r.Plus,{size:16,strokeWidth:e.pt(16),"aria-hidden":`true`}),`Add task`]})]}),V={calendar:`_calendar_1ljjb_2`,header:`_header_1ljjb_14`,header__label:`_header__label_1ljjb_15`,navBtn:`_navBtn_1ljjb_16`,weekdays:`_weekdays_1ljjb_27`,weekday:`_weekday_1ljjb_27`,grid:`_grid_1ljjb_34`,day:`_day_1ljjb_35`,"day--default":`_day--default_1ljjb_45`,"day--hover":`_day--hover_1ljjb_46`,"day--selected":`_day--selected_1ljjb_47`,"day--today":`_day--today_1ljjb_48`,"day--in-range":`_day--in-range_1ljjb_49`,"day--outside":`_day--outside_1ljjb_50`,"day--disabled":`_day--disabled_1ljjb_51`,dropdowns:`_dropdowns_1ljjb_54`,dropdown:`_dropdown_1ljjb_54`},Fe=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],Ie=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Le=(e,t)=>!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),Re=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),ze=({mode:i=`single`,value:a,onChange:o,range:s,onRangeChange:c,headerType:l=`arrows`,defaultMonth:u,minDate:d,maxDate:f,className:p})=>{let[m,h]=t.default.useState(()=>{let e=u??a??s?.from??new Date;return new Date(e.getFullYear(),e.getMonth(),1)}),[g,_]=t.default.useState({}),v=e.E(),y=s===void 0?g:s,b=new Date,x=m.getFullYear(),S=m.getMonth(),C=new Date(x,S,1).getDay(),w=new Date(x,S,1-C),T=Array.from({length:42},(e,t)=>new Date(w.getFullYear(),w.getMonth(),w.getDate()+t)),E=e=>d&&e<Re(d)||f&&e>f,D=e=>{s===void 0&&_(e),c?.(e)},O=e=>{if(i===`single`){o?.(e);return}let{from:t,to:n}=y;D(!t||t&&n?{from:e,to:void 0}:e<t?{from:e,to:t}:{from:t,to:e})},k=e=>{if(E(e))return`disabled`;if(i===`single`){if(Le(e,a))return`selected`}else{let{from:t,to:n}=y;if(Le(e,t)||Le(e,n))return`selected`;if(t&&n&&e>t&&e<n)return`in-range`}return e.getMonth()===S?Le(e,b)?`today`:`default`:`outside`},A=d?d.getFullYear():x-10,j=f?f.getFullYear():x+10,ee=Array.from({length:j-A+1},(e,t)=>A+t);return(0,n.jsxs)(`div`,{className:[V.calendar,p??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:V.header,children:[(0,n.jsx)(`button`,{type:`button`,className:V.navBtn,onClick:()=>h(new Date(x,S-1,1)),"aria-label":`Previous month`,children:(0,n.jsx)(r.ChevronLeft,{size:16,strokeWidth:e.pt(16)})}),l===`dropdowns`?(0,n.jsxs)(`span`,{className:V.dropdowns,children:[(0,n.jsx)(`select`,{className:V.dropdown,value:S,onChange:e=>h(new Date(x,Number(e.target.value),1)),"aria-label":`Month`,children:Ie.map((e,t)=>(0,n.jsx)(`option`,{value:t,children:e},e))}),(0,n.jsx)(`select`,{className:V.dropdown,value:x,onChange:e=>h(new Date(Number(e.target.value),S,1)),"aria-label":`Year`,children:ee.map(e=>(0,n.jsx)(`option`,{value:e,children:e},e))})]}):(0,n.jsxs)(`span`,{className:V.header__label,children:[Ie[S],` `,x]}),(0,n.jsx)(`button`,{type:`button`,className:V.navBtn,onClick:()=>h(new Date(x,S+1,1)),"aria-label":`Next month`,children:(0,n.jsx)(r.ChevronRight,{size:16,strokeWidth:e.pt(16)})})]}),(0,n.jsx)(`div`,{className:V.weekdays,children:Fe.map(e=>(0,n.jsx)(`span`,{className:V.weekday,children:e},e))}),(0,n.jsxs)(`div`,{ref:v.ref,...v.groupProps,className:V.grid,children:[v.highlight,T.map((e,t)=>{let r=k(e);return(0,n.jsx)(`button`,{type:`button`,"data-hover-item":``,className:[V.day,V[`day--${r}`]].filter(Boolean).join(` `),disabled:r===`disabled`,"aria-current":r===`today`?`date`:void 0,"aria-selected":r===`selected`,"aria-label":e.toLocaleDateString(void 0,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`}),onClick:()=>O(e),children:e.getDate()},t)})]})]})},H={card:`_card_1567t_3`,"card--interactive":`_card--interactive_1567t_19`,card__header:`_card__header_1567t_27`,card__title:`_card__title_1567t_31`,card__description:`_card__description_1567t_40`,card__body:`_card__body_1567t_50`,card__actions:`_card__actions_1567t_54`,"card__actions--split":`_card__actions--split_1567t_63`,card__actionsGroup:`_card__actionsGroup_1567t_64`},Be=({title:e,description:t,actions:r,leadingAction:i,interactive:a,children:o,className:s})=>(0,n.jsxs)(`div`,{className:[H.card,a?H[`card--interactive`]:``,s??``].filter(Boolean).join(` `),children:[(e||t)&&(0,n.jsxs)(`div`,{className:H.card__header,children:[e&&(0,n.jsx)(`h3`,{className:H.card__title,children:e}),t&&(0,n.jsx)(`p`,{className:H.card__description,children:t})]}),o&&(0,n.jsx)(`div`,{className:H.card__body,children:o}),(r||i)&&(i?(0,n.jsxs)(`div`,{className:[H.card__actions,H[`card__actions--split`]].join(` `),children:[i,(0,n.jsx)(`div`,{className:H.card__actionsGroup,children:r})]}):(0,n.jsx)(`div`,{className:H.card__actions,children:r}))]}),U={field:`_field_12ugs_7`,field__label:`_field__label_12ugs_8`,field__description:`_field__description_12ugs_9`,field__error:`_field__error_12ugs_10`,control:`_control_12ugs_13`,"control--sm":`_control--sm_12ugs_25`,"control--md":`_control--md_12ugs_26`,"control--lg":`_control--lg_12ugs_27`,"control--open":`_control--open_12ugs_30`,"control--error":`_control--error_12ugs_41`,"control--disabled":`_control--disabled_12ugs_46`,control__value:`_control__value_12ugs_52`,"control__value--placeholder":`_control__value--placeholder_12ugs_62`,control__input:`_control__input_12ugs_63`,control__chevron:`_control__chevron_12ugs_83`,"control__chevron--open":`_control__chevron--open_12ugs_84`,chips:`_chips_12ugs_90`,chip:`_chip_12ugs_90`,"chip--leaving":`_chip--leaving_12ugs_102`,"sakani-combobox-chip-out":`_sakani-combobox-chip-out_12ugs_1`,chip__remove:`_chip__remove_12ugs_110`,panel:`_panel_12ugs_121`,"panel--entering":`_panel--entering_12ugs_145`,"sakani-combobox-panel-in":`_sakani-combobox-panel-in_12ugs_1`,"panel--exiting":`_panel--exiting_12ugs_146`,"sakani-combobox-panel-out":`_sakani-combobox-panel-out_12ugs_1`,panel__empty:`_panel__empty_12ugs_156`,option:`_option_12ugs_164`,"option--selected":`_option--selected_12ugs_189`,"option--disabled":`_option--disabled_12ugs_190`,optionHighlight:`_optionHighlight_12ugs_165`,"optionHighlight--animated":`_optionHighlight--animated_12ugs_221`,option__box:`_option__box_12ugs_228`,"option__box--checked":`_option__box--checked_12ugs_245`,option__icon:`_option__icon_12ugs_250`,option__label:`_option__label_12ugs_251`,option__check:`_option__check_12ugs_252`,panel__loading:`_panel__loading_12ugs_255`,panel__spinner:`_panel__spinner_12ugs_259`,"sakani-cb-spin":`_sakani-cb-spin_12ugs_1`},Ve=({options:r,mode:i=`single`,size:a=`md`,label:o,description:s,error:c,placeholder:l=`Select...`,disabled:u,loading:d,value:f,onChange:p,className:m})=>{let h=t.default.useId(),[g,_]=t.default.useState(!1),[v,y]=t.default.useState(!1),[b,x]=t.default.useState(0),S=t.default.useRef(null),C=r;t.default.useEffect(()=>{g&&y(!0)},[g]);let w=t.default.useRef({}),T=t.default.useRef(null),[E,D]=t.default.useState(null),[O,k]=t.default.useState(!1);t.default.useLayoutEffect(()=>{let e=w.current[b];if(!e){D(null);return}D({top:e.offsetTop,height:e.offsetHeight})},[b,C.length]),t.default.useLayoutEffect(()=>{if(!v){k(!1);return}k(!1);let e=window.requestAnimationFrame(()=>k(!0));return()=>window.cancelAnimationFrame(e)},[v]),t.default.useEffect(()=>{if(!T.current)return;let e=new ResizeObserver(()=>{let e=w.current[b];e&&D({top:e.offsetTop,height:e.offsetHeight})});return e.observe(T.current),()=>e.disconnect()},[v]);let[A,j]=t.default.useState(i===`multi`?[]:``),ee=f===void 0?A:f,M=Array.isArray(ee)?ee:ee?[ee]:[],[te,ne]=t.default.useState(()=>M.map(e=>({value:e,leaving:!1}))),N=M.join(`\0`);t.default.useLayoutEffect(()=>{ne(e=>{let t=e.map(e=>({value:e.value,leaving:!M.includes(e.value)}));for(let e of M)t.some(t=>t.value===e)||t.push({value:e,leaving:!1});return t})},[N]);let re=e=>ne(t=>t.filter(t=>!(t.value===e&&t.leaving))),ie=!!c;t.default.useEffect(()=>{let e=e=>{S.current&&!S.current.contains(e.target)&&_(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let ae=e=>{f===void 0&&j(e),p?.(e)},P=e=>{if(!e.disabled)if(i===`multi`){let t=new Set(M);t.has(e.value)?t.delete(e.value):t.add(e.value),ae([...t])}else ae(e.value),_(!1)},oe=e=>r.find(t=>t.value===e)?.label??e,se=M.length?oe(M[0]):``,F=e=>{u||(e.key===`ArrowDown`?(e.preventDefault(),_(!0),x(e=>Math.min(e+1,C.length-1))):e.key===`ArrowUp`?(e.preventDefault(),x(e=>Math.max(e-1,0))):e.key===`Enter`?(e.preventDefault(),g&&C[b]?P(C[b]):_(!0)):e.key===`Escape`&&_(!1))},ce=u?`disabled`:ie?`error`:g?`open`:`default`;return(0,n.jsxs)(`div`,{className:[U.field,m??``].filter(Boolean).join(` `),ref:S,children:[o&&(0,n.jsx)(`label`,{htmlFor:`${h}-trigger`,className:U.field__label,children:o}),(0,n.jsxs)(`div`,{id:`${h}-trigger`,role:`combobox`,tabIndex:u?-1:0,"aria-haspopup":`listbox`,"aria-expanded":g,"aria-controls":`${h}-panel`,"aria-invalid":ie||void 0,"aria-disabled":u||void 0,"aria-activedescendant":g&&C[b]?`${h}-opt-${b}`:void 0,className:[U.control,U[`control--${a}`],U[`control--${ce}`]].join(` `),onClick:()=>!u&&_(e=>!e),onKeyDown:F,children:[i===`multi`&&te.length>0&&(0,n.jsx)(`div`,{className:U.chips,children:te.map(({value:e,leaving:t})=>(0,n.jsxs)(`span`,{className:[U.chip,t?U[`chip--leaving`]:``].filter(Boolean).join(` `),"aria-hidden":t||void 0,onAnimationEnd:t?()=>re(e):void 0,children:[oe(e),(0,n.jsx)(`button`,{type:`button`,className:U.chip__remove,tabIndex:t?-1:void 0,onClick:t=>{t.stopPropagation(),P(r.find(t=>t.value===e))},"aria-label":`Remove ${oe(e)}`,children:`×`})]},e))}),!(i===`multi`&&te.length>0)&&(0,n.jsx)(`span`,{className:[U.control__value,i===`single`&&se?``:U[`control__value--placeholder`]].filter(Boolean).join(` `),children:i===`single`&&se?se:l}),(0,n.jsx)(`span`,{className:[U.control__chevron,g?U[`control__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.pt(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),v&&!u&&(0,n.jsx)(`div`,{ref:T,className:[U.panel,g?U[`panel--entering`]:U[`panel--exiting`]].filter(Boolean).join(` `),id:`${h}-panel`,role:`listbox`,"aria-multiselectable":i===`multi`||void 0,"aria-busy":d||void 0,onAnimationEnd:()=>{g||y(!1)},children:d?(0,n.jsxs)(`div`,{className:U.panel__loading,children:[(0,n.jsx)(`span`,{className:U.panel__spinner,"aria-hidden":`true`}),`Loading…`]}):C.length===0?(0,n.jsx)(`div`,{className:U.panel__empty,children:`No options available`}):(0,n.jsxs)(n.Fragment,{children:[E&&(0,n.jsx)(`span`,{"aria-hidden":`true`,className:[U.optionHighlight,O?U[`optionHighlight--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateY(${E.top}px)`,height:E.height}}),C.map((t,r)=>{let a=M.includes(t.value);return(0,n.jsxs)(`div`,{ref:e=>{w.current[r]=e},id:`${h}-opt-${r}`,role:`option`,"aria-selected":a,className:[U.option,a&&i===`single`?U[`option--selected`]:``,t.disabled?U[`option--disabled`]:``].filter(Boolean).join(` `),onMouseEnter:()=>{t.disabled||x(r)},onClick:()=>P(t),children:[i===`multi`&&(0,n.jsx)(`span`,{className:[U.option__box,a?U[`option__box--checked`]:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.pt(12),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),t.icon&&(0,n.jsx)(`span`,{className:U.option__icon,"aria-hidden":`true`,children:t.icon}),(0,n.jsx)(`span`,{className:U.option__label,children:t.label}),a&&i===`single`&&(0,n.jsx)(`span`,{className:U.option__check,"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})})]},t.value)})]})}),(s||c)&&(0,n.jsx)(`span`,{className:ie?U.field__error:U.field__description,children:c||s})]})},He={chart:`_chart_aiboa_2`,center:`_center_aiboa_26`,center__value:`_center__value_aiboa_35`,center__caption:`_center__caption_aiboa_36`},Ue={sm:{h:180,inner:50,outer:72},md:{h:220,inner:62,outer:90},lg:{h:280,inner:80,outer:116},xl:{h:340,inner:98,outer:142}},We=({data:e,size:r=`md`,centerValue:a,centerCaption:o,height:s,className:c})=>{let[l,u]=t.default.useState(null),[d,f]=t.default.useState(null),p=e=>{let t=e.currentTarget.getBoundingClientRect();f({x:e.clientX-t.left,y:e.clientY-t.top})},m=t.default.useRef(null),h=S(m),g=[1,2,3,4,5].map(e=>h(`--color-chart-${e}`)??C[e-1]),_={...Ue[r],h:s??Ue[r].h},v=(_.outer-_.inner)/2-7;return(0,n.jsxs)(`div`,{ref:m,className:[He.chart,c??``].filter(Boolean).join(` `),style:{height:_.h},onMouseMove:p,children:[(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.jsx)(i.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:_.inner,outerRadius:_.outer,cornerRadius:v,paddingAngle:2,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>u(t),onMouseLeave:()=>{u(null),f(null)},children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:g[t%g.length],fillOpacity:l!==null&&t!==l?.45:1},t))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50},position:d??void 0})]})}),(a||o)&&(0,n.jsxs)(`div`,{className:He.center,children:[a&&(0,n.jsx)(`span`,{className:He.center__value,children:a}),o&&(0,n.jsx)(`span`,{className:He.center__caption,children:o})]})]})},W={wrap:`_wrap_1b5p5_2`,dropzone:`_dropzone_1b5p5_4`,"dropzone--dragging":`_dropzone--dragging_1b5p5_21`,dropzone__icon:`_dropzone__icon_1b5p5_23`,dropzone__label:`_dropzone__label_1b5p5_28`,dropzone__link:`_dropzone__link_1b5p5_29`,dropzone__hint:`_dropzone__hint_1b5p5_30`,input:`_input_1b5p5_32`,files:`_files_1b5p5_35`,file:`_file_1b5p5_35`,file__icon:`_file__icon_1b5p5_45`,file__name:`_file__name_1b5p5_46`,file__remove:`_file__remove_1b5p5_47`},Ge=({accept:i,multiple:a,hint:o=`SVG, PNG, JPG or PDF (max. 2MB)`,onFilesChange:s,className:c})=>{let l=t.default.useRef(null),[u,d]=t.default.useState(!1),[f,p]=t.default.useState([]),m=e=>{p(e),s?.(e)},h=e=>{if(!e)return;let t=Array.from(e);m(a?[...f,...t]:t.slice(0,1))},g=e=>m(f.filter((t,n)=>n!==e));return(0,n.jsxs)(`div`,{className:[W.wrap,c??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:[W.dropzone,u?W[`dropzone--dragging`]:``].filter(Boolean).join(` `),onClick:()=>l.current?.click(),onDragOver:e=>{e.preventDefault(),d(!0)},onDragLeave:()=>d(!1),onDrop:e=>{e.preventDefault(),d(!1),h(e.dataTransfer.files)},role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&l.current?.click()},children:[(0,n.jsx)(`span`,{className:W.dropzone__icon,"aria-hidden":`true`,children:(0,n.jsx)(r.UploadCloud,{size:22,strokeWidth:e.pt(22)})}),(0,n.jsxs)(`span`,{className:W.dropzone__label,children:[(0,n.jsx)(`span`,{className:W.dropzone__link,children:`Click to upload`}),` or drag and drop`]}),(0,n.jsx)(`span`,{className:W.dropzone__hint,children:o}),(0,n.jsx)(`input`,{ref:l,type:`file`,accept:i,multiple:a,className:W.input,onChange:e=>h(e.target.files)})]}),f.length>0&&(0,n.jsx)(`ul`,{className:W.files,children:f.map((t,i)=>(0,n.jsxs)(`li`,{className:W.file,children:[(0,n.jsx)(`span`,{className:W.file__icon,"aria-hidden":`true`,children:(0,n.jsx)(r.File,{size:16,strokeWidth:e.pt(16)})}),(0,n.jsx)(`span`,{className:W.file__name,children:t.name}),(0,n.jsx)(`button`,{type:`button`,className:W.file__remove,onClick:()=>g(i),"aria-label":`Remove ${t.name}`,children:(0,n.jsx)(r.X,{size:14,strokeWidth:e.pt(14)})})]},i))})]})},G={chart:`_chart_1m9hd_1`,svg:`_svg_1m9hd_7`,segment:`_segment_1m9hd_12`,pctLabel:`_pctLabel_1m9hd_19`,labels:`_labels_1m9hd_27`,labelItem:`_labelItem_1m9hd_31`,tooltip:`_tooltip_1m9hd_41`,tooltip__title:`_tooltip__title_1m9hd_54`,tooltip__row:`_tooltip__row_1m9hd_60`,tooltip__dot:`_tooltip__dot_1m9hd_68`,tooltip__label:`_tooltip__label_1m9hd_74`,tooltip__value:`_tooltip__value_1m9hd_75`},Ke={sm:180,md:240,lg:320,xl:420},qe=560,Je=.3,Ye=.55,Xe=({data:e,size:r=`md`,className:i})=>{let[a,o]=t.default.useState(null),s=t.default.useRef(null),c=S(s),l=c(`--color-chart-1`)??`#ff4700`,u=c(`--color-bg-canvas`)??`#fafaf9`,d=e[0]?.value||1,f=Ke[r],p=f*.66,m=p/2+8,h=qe/e.length,g=e[0]?.value||1,_=e=>e/g*p,v=e.map(e=>_(e.value));v.push(_(e[e.length-1]?.value??0)*Ye);let y=t=>e.length<=1?1:Je+t/(e.length-1)*(1-Je),b=a===null?null:e[a],x=a===null?0:m-v[a]/2,C=a===null?0:a*h+h/2;return(0,n.jsxs)(`div`,{ref:s,className:[G.chart,i??``].filter(Boolean).join(` `),style:{height:f},children:[(0,n.jsx)(`svg`,{viewBox:`0 0 ${qe} ${f}`,width:`100%`,height:f,className:G.svg,children:e.map((e,t)=>{let r=t*h,i=(t+1)*h,s=(r+i)/2,c=v[t]/2,u=v[t+1]/2,f=m-c,p=m-u,g=m+c,_=m+u,b=[`M ${r} ${f}`,`C ${s} ${f} ${s} ${p} ${i} ${p}`,`L ${i} ${_}`,`C ${s} ${_} ${s} ${g} ${r} ${g}`,`Z`].join(` `),x=a===null?y(t):t===a?1:.45,S=Math.round(e.value/d*100);return(0,n.jsxs)(`g`,{className:G.segment,onMouseEnter:()=>o(t),onMouseLeave:()=>o(null),children:[(0,n.jsx)(`path`,{d:b,fill:l,fillOpacity:x}),(0,n.jsxs)(`text`,{x:s,y:m,textAnchor:`middle`,dominantBaseline:`middle`,className:G.pctLabel,children:[S,`%`]})]},t)})}),(0,n.jsx)(`div`,{className:G.labels,style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((e,t)=>(0,n.jsx)(`span`,{className:G.labelItem,children:e.label},t))}),b&&(0,n.jsxs)(`div`,{className:G.tooltip,style:{left:`${C/qe*100}%`,top:`${x/f*100}%`,background:u},children:[(0,n.jsx)(`span`,{className:G.tooltip__title,children:b.label}),(0,n.jsxs)(`div`,{className:G.tooltip__row,children:[(0,n.jsx)(`span`,{className:G.tooltip__dot,style:{background:l}}),(0,n.jsx)(`span`,{className:G.tooltip__label,children:`Share`}),(0,n.jsxs)(`span`,{className:G.tooltip__value,children:[Math.round(b.value/d*100),`%`]})]})]})]})},K={chart:`_chart_1yc8b_1`,grid:`_grid_1yc8b_6`,rowLabel:`_rowLabel_1yc8b_13`,colLabel:`_colLabel_1yc8b_14`,cell:`_cell_1yc8b_29`,"chart--sm":`_chart--sm_1yc8b_38`,"chart--md":`_chart--md_1yc8b_39`,"chart--lg":`_chart--lg_1yc8b_40`,"chart--xl":`_chart--xl_1yc8b_41`,tooltip:`_tooltip_1yc8b_48`,tooltip__title:`_tooltip__title_1yc8b_70`,tooltip__row:`_tooltip__row_1yc8b_76`,tooltip__dot:`_tooltip__dot_1yc8b_84`,tooltip__label:`_tooltip__label_1yc8b_91`,tooltip__value:`_tooltip__value_1yc8b_92`},Ze=.12,Qe=.45,$e=({data:e,rowLabels:r,colLabels:i,valueLabel:a=`Value`,size:o=`md`,className:s})=>{let c=t.default.useRef(null),l=S(c),u=t.default.useRef(null),[d,f]=t.default.useState(null),p=l(`--color-chart-1`)??`#ff4700`,m=Math.max(1,...e.flat()),h=e[0]?.length??0,g=(e,t,n)=>r=>{let i=r.currentTarget.getBoundingClientRect(),a=u.current?.getBoundingClientRect();a&&f({row:e,col:t,value:n,left:i.left-a.left+i.width/2,top:i.top-a.top})};return(0,n.jsx)(`div`,{ref:c,className:[K.chart,K[`chart--${o}`],s??``].filter(Boolean).join(` `),children:(0,n.jsxs)(`div`,{ref:u,className:K.grid,style:{gridTemplateColumns:`auto repeat(${h}, 1fr)`},children:[e.map((e,i)=>(0,n.jsxs)(t.default.Fragment,{children:[(0,n.jsx)(`span`,{className:K.rowLabel,children:r?.[i]??``}),e.map((e,t)=>{let r=d?.row===i&&d?.col===t,a=d!==null&&!r,o=r?1:Ze+e/m*(1-Ze);return(0,n.jsx)(`div`,{className:K.cell,style:{background:p,opacity:a?Qe:o},onMouseEnter:g(i,t,e),onMouseLeave:()=>f(null)},t)})]},i)),i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{}),i.map((e,t)=>(0,n.jsx)(`span`,{className:K.colLabel,children:e},t))]}),d&&(0,n.jsxs)(`div`,{className:K.tooltip,style:{left:d.left,top:d.top},children:[(0,n.jsx)(`span`,{className:K.tooltip__title,children:[r?.[d.row],i?.[d.col]].filter(Boolean).join(` · `)||`Row ${d.row+1}, Col ${d.col+1}`}),(0,n.jsxs)(`div`,{className:K.tooltip__row,children:[(0,n.jsx)(`span`,{className:K.tooltip__dot}),(0,n.jsx)(`span`,{className:K.tooltip__label,children:a}),(0,n.jsx)(`span`,{className:K.tooltip__value,children:d.value})]})]})]})})},et={kbd:`_kbd_1cz4m_3`},tt=({children:e,className:t})=>(0,n.jsx)(`kbd`,{className:[et.kbd,t??``].filter(Boolean).join(` `),children:e}),nt={label:`_label_rcdks_3`,label__required:`_label__required_rcdks_17`},rt=t.default.forwardRef(({required:e,children:t,className:r,...i},a)=>(0,n.jsxs)(`label`,{ref:a,className:[nt.label,r??``].filter(Boolean).join(` `),...i,children:[t,e&&(0,n.jsx)(`span`,{className:nt.label__required,"aria-hidden":`true`,children:` *`})]}));rt.displayName=`Label`;var it={chart:`_chart_18fgd_2`},at={sm:180,md:240,lg:320,xl:420},ot=new Set([`dots`,`custom-dots`,`dots-colors`,`label`,`custom-label`]),st=({data:e,series:r,xKey:a=`label`,variant:o=`default`,labelKey:s,size:c=`md`,height:l,showLegend:u,className:d})=>{let f=t.default.useRef(null),p=S(f),m=[1,2,3,4,5].map(e=>p(`--color-chart-${e}`)??C[e-1]),h=[m[1],m[0],...m.slice(2)],g=p(`--color-border-subtle`)??`#e7e5e1`,_=p(`--color-fg-muted`)??`#78716a`,v=p(`--color-bg-canvas`)??`#fafaf9`,y=p(`--color-fg-default`)??`#141414`,b=o===`linear`?`linear`:o===`step`?`step`:`monotone`,x=ot.has(o),w=e=>t=>{let{cx:r,cy:i}=t;return(0,n.jsxs)(`g`,{stroke:e,strokeWidth:2,strokeLinecap:`round`,children:[(0,n.jsx)(`line`,{x1:r,y1:i-3,x2:r,y2:i-3-6}),(0,n.jsx)(`line`,{x1:r,y1:i+3,x2:r,y2:i+3+6}),(0,n.jsx)(`circle`,{cx:r,cy:i,r:3,fill:e,stroke:`none`})]})},E=e=>{let{cx:t,cy:r,index:i}=e,a=m[(i??0)%m.length];return(0,n.jsx)(`circle`,{cx:t,cy:r,r:4,fill:a,stroke:v,strokeWidth:1.5})},D=t=>{let{x:r,y:i,value:a,index:c}=t,l=o===`custom-label`&&s?e[c]?.[s]:a;return l===void 0?(0,n.jsx)(`g`,{}):(0,n.jsx)(`text`,{x:r,y:i-12,textAnchor:`middle`,fill:y,fontSize:12,fontWeight:500,fontFamily:`var(--font-sans)`,children:l})};return(0,n.jsx)(`div`,{ref:f,className:[it.chart,d??``].filter(Boolean).join(` `),children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:l??at[c],children:(0,n.jsxs)(i.LineChart,{data:e,margin:{top:8,right:8,bottom:8,left:12},children:[(0,n.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:g,vertical:!1}),(0,n.jsx)(i.XAxis,{dataKey:a,stroke:_,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,n.jsx)(i.Tooltip,{cursor:{stroke:p(`--color-border-default`)??`#dbdad7`,strokeWidth:1},content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}}),u&&(0,n.jsx)(i.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),r.map((e,t)=>{let r=h[t%h.length],a=x?o===`custom-dots`?w(r):o===`dots-colors`?E:{r:4,fill:r,stroke:v,strokeWidth:1.5}:!1;return(0,n.jsx)(i.Line,{type:b,dataKey:e,stroke:r,strokeWidth:2,dot:a,activeDot:{r:4,fill:r,stroke:v,strokeWidth:1.5},label:o===`label`||o===`custom-label`?D:void 0},e)})]})})})},q={item:`_item_1bb82_2`,"item--disabled":`_item--disabled_1bb82_18`,"item--selected":`_item--selected_1bb82_19`,item__leading:`_item__leading_1bb82_22`,item__text:`_item__text_1bb82_23`,item__title:`_item__title_1bb82_24`,item__description:`_item__description_1bb82_25`,item__trailing:`_item__trailing_1bb82_26`},ct=({title:e,description:t,leading:r,trailing:i,selected:a,disabled:o,onClick:s,className:c})=>(0,n.jsxs)(`button`,{type:`button`,"data-hover-item":``,disabled:o,onClick:s,"aria-current":a?`true`:void 0,className:[q.item,a?q[`item--selected`]:``,o?q[`item--disabled`]:``,c??``].filter(Boolean).join(` `),children:[r&&(0,n.jsx)(`span`,{className:q.item__leading,children:r}),(0,n.jsxs)(`span`,{className:q.item__text,children:[(0,n.jsx)(`span`,{className:q.item__title,children:e}),t&&(0,n.jsx)(`span`,{className:q.item__description,children:t})]}),i&&(0,n.jsx)(`span`,{className:q.item__trailing,children:i})]}),lt={menu:`_menu_k5ohq_2`,divider:`_divider_k5ohq_13`},ut=({children:t,minWidth:r=208,className:i,...a})=>{let o=e.E();return(0,n.jsxs)(`div`,{ref:o.ref,...o.groupProps,role:`menu`,"aria-label":a[`aria-label`],style:{minWidth:r},className:[lt.menu,i??``].filter(Boolean).join(` `),children:[o.highlight,t]})},dt=()=>(0,n.jsx)(`div`,{className:lt.divider,role:`separator`}),ft={item:`_item_gdhzp_2`,item__icon:`_item__icon_gdhzp_23`,item__label:`_item__label_gdhzp_24`,item__shortcut:`_item__shortcut_gdhzp_25`,item__check:`_item__check_gdhzp_32`,"item--checked":`_item--checked_gdhzp_34`,"item--disabled":`_item--disabled_gdhzp_35`,"item--destructive":`_item--destructive_gdhzp_36`},pt=({state:t=`default`,icon:i,shortcut:a,children:o,onSelect:s,className:c})=>{let l=t===`disabled`;return(0,n.jsxs)(`div`,{role:`menuitem`,"data-hover-item":``,"aria-disabled":l||void 0,"aria-checked":t===`checked`||void 0,tabIndex:l?-1:0,onClick:l?void 0:s,onKeyDown:e=>{l||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s?.())},className:[ft.item,ft[`item--${t}`],c??``].filter(Boolean).join(` `),children:[i&&(0,n.jsx)(`span`,{className:ft.item__icon,"aria-hidden":`true`,children:i}),(0,n.jsx)(`span`,{className:ft.item__label,children:o}),a&&(0,n.jsx)(`kbd`,{className:ft.item__shortcut,children:a}),t===`checked`&&(0,n.jsx)(r.Check,{size:16,strokeWidth:e.pt(16),className:ft.item__check,"aria-hidden":`true`})]})},mt={chart:`_chart_cc7lx_2`,center:`_center_cc7lx_30`,center__value:`_center__value_cc7lx_39`,center__caption:`_center__caption_cc7lx_40`},ht={sm:{h:180,outer:72},md:{h:220,outer:90},lg:{h:280,outer:116},xl:{h:340,outer:142}},gt=new Set([`donut`,`donut-active`,`donut-with-text`,`interactive`]),_t=new Set([`donut-active`]),vt=new Set([`interactive`]),yt=new Set([`donut-with-text`]),bt=Math.PI/180,xt=({data:e,variant:r=`donut`,size:a=`md`,centerValue:o,centerCaption:s,className:c})=>{let l=t.default.useRef(null),u=S(l),[d,f]=t.default.useState(void 0),p=[1,2,3,4,5].map(e=>u(`--color-chart-${e}`)??C[e-1]),m=u(`--color-bg-surface`)??`#ffffff`,h=u(`--color-fg-default`)??`#141414`,g=ht[a],_=gt.has(r),v=_t.has(r),y=vt.has(r),b=_?g.outer*.6:0,x=yt.has(r)&&(o||s),w=d??(v||y?0:void 0),E=e=>{let{cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:s,endAngle:c,fill:l,index:u}=e,d=u===w,f=d&&(v||y)?16:0;return d&&y?(0,n.jsxs)(`g`,{children:[(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:a,outerRadius:o+f,startAngle:s,endAngle:c,fill:l}),(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:o+f+3,outerRadius:o+f+7,startAngle:s,endAngle:c,fill:l})]}):(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:a,outerRadius:o+f,startAngle:s,endAngle:c,fill:l})},D=e=>{let{cx:t,cy:n,midAngle:r,outerRadius:i}=e,a=r??0,o=Math.cos(-a*bt),s=Math.sin(-a*bt),c=t+i*o,l=n+i*s,u=t+(i+16)*o,d=n+(i+16)*s,f=o>=0,p=u+(f?14:-14);return{d:`M ${c} ${l} L ${u} ${d} L ${p} ${d}`,endX:p,endY:d,textAnchor:f?`start`:`end`}},O=e=>{let{value:t,fill:r}=e,{d:i,endX:a,endY:o,textAnchor:s}=D(e),c=a+(s===`start`?4:-4);return(0,n.jsxs)(`g`,{children:[(0,n.jsx)(`path`,{d:i,fill:`none`,stroke:r,strokeWidth:1}),(0,n.jsx)(`text`,{x:c,y:o,textAnchor:s,dominantBaseline:`central`,fill:h,fontSize:12,fontFamily:`var(--font-sans)`,children:t})]})},k=e=>{let{x:t,y:r,textAnchor:i,value:a}=e;return(0,n.jsx)(`text`,{x:t,y:r,textAnchor:i,dominantBaseline:`central`,fill:h,fontSize:20,fontWeight:400,fontFamily:`var(--font-sans)`,children:a})},A=t=>{let{cx:r,cy:i,midAngle:a,innerRadius:o,outerRadius:s,index:c}=t,l=(o+s)/2;return(0,n.jsx)(`text`,{x:r+l*Math.cos(-a*bt),y:i+l*Math.sin(-a*bt),textAnchor:`middle`,dominantBaseline:`central`,fill:`#fff`,fontSize:11,fontWeight:500,fontFamily:`var(--font-sans)`,children:e[c]?.label})};if(r===`stacked`){let t=e=>d!==void 0&&d!==e?.45:1;return(0,n.jsx)(`div`,{ref:l,className:[mt.chart,c??``].filter(Boolean).join(` `),style:{height:g.h},children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.jsx)(i.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:g.outer*.82,outerRadius:g.outer,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>f(t),onMouseLeave:()=>f(void 0),children:e.map((e,r)=>(0,n.jsx)(i.Cell,{fill:p[r%p.length],fillOpacity:t(r)},r))}),(0,n.jsx)(i.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:0,outerRadius:g.outer*.62,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>f(t),onMouseLeave:()=>f(void 0),children:e.map((e,r)=>(0,n.jsx)(i.Cell,{fill:p[r%p.length],fillOpacity:t(r)},r))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}})]})})})}return(0,n.jsxs)(`div`,{ref:l,className:[mt.chart,c??``].filter(Boolean).join(` `),style:{height:g.h},children:[(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.jsx)(i.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:b,outerRadius:g.outer,paddingAngle:0,stroke:r===`pie`?m:`none`,strokeWidth:r===`pie`?2:0,isAnimationActive:!1,shape:v||y?E:void 0,label:r===`label`?O:r===`custom-label`?k:r===`label-list`?A:void 0,labelLine:!1,onMouseEnter:(e,t)=>f(t),onMouseLeave:()=>f(void 0),children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:p[t%p.length]},t))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}})]})}),x&&(0,n.jsxs)(`div`,{className:mt.center,children:[o&&(0,n.jsx)(`span`,{className:mt.center__value,children:o}),s&&(0,n.jsx)(`span`,{className:mt.center__caption,children:s})]})]})},J={root:`_root_16f5u_2`,trigger:`_trigger_16f5u_3`,panel:`_panel_16f5u_5`,"panel--bottom":`_panel--bottom_16f5u_22`,"panel--bottom-start":`_panel--bottom-start_16f5u_23`,"panel--bottom-end":`_panel--bottom-end_16f5u_24`,"panel--top":`_panel--top_16f5u_25`,"panel--entering":`_panel--entering_16f5u_39`,"sakani-popover-in":`_sakani-popover-in_16f5u_1`,"panel--exiting":`_panel--exiting_16f5u_40`,"sakani-popover-out":`_sakani-popover-out_16f5u_1`,"sakani-popover-in-up":`_sakani-popover-in-up_16f5u_1`,"sakani-popover-out-up":`_sakani-popover-out-up_16f5u_1`,panel__title:`_panel__title_16f5u_75`,panel__description:`_panel__description_16f5u_76`,panel__body:`_panel__body_16f5u_77`,panel__actions:`_panel__actions_16f5u_78`},St=({trigger:e,title:r,description:i,actions:a,placement:o=`bottom-start`,children:s,className:c})=>{let[l,u]=t.default.useState(!1),[d,f]=t.default.useState(!1),p=t.default.useRef(null),m=t.default.useRef(null);return t.default.useEffect(()=>{l&&f(!0)},[l]),t.default.useEffect(()=>{if(l||!d)return;let e=setTimeout(()=>f(!1),240);return()=>clearTimeout(e)},[l,d]),t.default.useEffect(()=>{if(!l)return;let e=e=>{p.current&&!p.current.contains(e.target)&&u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[l]),t.default.useEffect(()=>{!l&&m.current&&(m.current.focus(),m.current=null)},[l]),(0,n.jsxs)(`div`,{className:[J.root,c??``].filter(Boolean).join(` `),ref:p,children:[(0,n.jsx)(`span`,{className:J.trigger,onClick:()=>{l||(m.current=document.activeElement),u(e=>!e)},children:e}),d&&(0,n.jsxs)(`div`,{className:[J.panel,J[`panel--${o}`],l?J[`panel--entering`]:J[`panel--exiting`]].filter(Boolean).join(` `),role:`dialog`,onAnimationEnd:e=>{e.target===e.currentTarget&&!l&&f(!1)},children:[r&&(0,n.jsx)(`div`,{className:J.panel__title,children:r}),i&&(0,n.jsx)(`div`,{className:J.panel__description,children:i}),s&&(0,n.jsx)(`div`,{className:J.panel__body,children:s}),a&&(0,n.jsx)(`div`,{className:J.panel__actions,children:a})]})]})},Ct={chart:`_chart_q6xhl_2`,circleFillSvg:`_circleFillSvg_q6xhl_17`},wt={sm:200,md:260,lg:340,xl:420},Tt=new Set([`circle-grid`,`circle-grid-no-lines`,`circle-grid-filled`]),Et=new Set([`default`,`grid-custom`]),Dt=new Set([`dots-grid-none`]),Ot=new Set([`grid-filled`]),kt=e=>e===`circle-grid-filled`,At=new Set([`default`,`dots`,`dots-grid-none`,`circle-grid`,`circle-grid-no-lines`,`multiple`,`custom-label`,`grid-custom`,`grid-filled`,`circle-grid-filled`]),jt=[1,.8,.6,.4,.2],Mt=({data:e,variant:r=`default`,size:a=`md`,seriesLabels:o=[`Value`,`Value 2`],className:s})=>{let c=t.default.useRef(null),l=S(c),u=l(`--color-chart-1`)??`#ff4700`,d=l(`--color-chart-2`)??`#5b92dd`,f=l(`--color-border-default`)??`#dbdad7`,p=l(`--color-fg-subtle`)??`#a8a29b`,m=r===`multiple`,h=r===`lines-only`,g=m||r===`custom-label`||h,_=!h,v=r===`dots`||r===`dots-grid-none`||r===`circle-grid`||r===`circle-grid-no-lines`,y=Ot.has(r),b=Et.has(r),x=Dt.has(r),C=kt(r),[w,E]=t.default.useState(0);t.default.useEffect(()=>{if(!C||!c.current)return;let e=c.current,t=new ResizeObserver(([e])=>E(e.contentRect.width));return t.observe(e),()=>t.disconnect()},[C]);let D=t.default.useMemo(()=>{if(!y)return e;let t=Math.max(1,...e.flatMap(e=>[e.value,e.value2??0]));return e.map(e=>{let n={};return jt.forEach((e,r)=>{n[`ring${r}`]=e*t}),{...e,...n}})},[e,y]),O=t=>{let{x:r,y:i,cx:a,cy:o,payload:s,textAnchor:c}=t,l=e.find(e=>e.label===s?.value)??e[s?.index];if(!l)return(0,n.jsx)(`g`,{});let u=r-a,d=i-o,f=l.value2===void 0?`${l.value}`:`${l.value}/${l.value2}`,m=Math.abs(d)>Math.abs(u),h,g;if(m&&d<0)g=i-4-6,h=g-16;else if(m)h=i+4+10,g=h+18;else{let e=i+d/(Math.sqrt(u*u+d*d)||1)*4;h=e-8,g=e+12}let _=m?r:r+u/Math.sqrt(u*u+d*d||1)*4;return(0,n.jsxs)(`g`,{children:[(0,n.jsx)(`text`,{x:_,y:h,textAnchor:c,fill:p,fontSize:15,fontWeight:600,fontFamily:`var(--font-sans)`,children:f}),(0,n.jsx)(`text`,{x:_,y:g,textAnchor:c,fill:p,fontSize:13,fontFamily:`var(--font-sans)`,children:l.label})]})},k=wt[a],A=(w>0?Math.min(w,k)/2-5:0)*.7;return(0,n.jsxs)(`div`,{ref:c,className:[Ct.chart,s??``].filter(Boolean).join(` `),children:[C&&w>0&&(0,n.jsx)(`svg`,{className:Ct.circleFillSvg,width:w,height:k,children:jt.map(e=>(0,n.jsx)(`circle`,{cx:w/2,cy:k/2,r:A*e,fill:d,fillOpacity:.1},e))}),(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:k,children:(0,n.jsxs)(i.RadarChart,{data:D,outerRadius:`70%`,children:[!y&&!x&&(0,n.jsx)(i.PolarGrid,{gridType:Tt.has(r)?`circle`:`polygon`,radialLines:r!==`circle-grid-no-lines`&&!b,stroke:f}),(0,n.jsx)(i.PolarAngleAxis,{dataKey:`label`,axisLine:!1,tick:r===`custom-label`?O:{fill:p,fontSize:12,fontFamily:`var(--font-sans)`}}),(0,n.jsx)(i.PolarRadiusAxis,{tick:!1,axisLine:!1,tickCount:b?2:void 0}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}}),m&&(0,n.jsx)(i.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),y&&jt.map((e,t)=>(0,n.jsx)(i.Radar,{dataKey:`ring${t}`,stroke:`none`,fill:d,fillOpacity:.1,isAnimationActive:!1,legendType:`none`},`ring${t}`)),(0,n.jsx)(i.Radar,{name:m?o[0]??`Value`:void 0,dataKey:`value`,stroke:At.has(r)?`none`:d,fill:_?d:`none`,fillOpacity:_?b?1:g?.45:.5:0,strokeWidth:At.has(r)?0:2,dot:v?{r:4,fill:d,stroke:`none`}:!1,isAnimationActive:!1}),g&&(0,n.jsx)(i.Radar,{name:m?o[1]??`Value 2`:void 0,dataKey:`value2`,stroke:h?u:`none`,fill:h?`none`:u,fillOpacity:h?0:.8,strokeWidth:h?2:0,dot:v?{r:4,fill:u,stroke:`none`}:!1,isAnimationActive:!1})]})})]})},Y={chart:`_chart_1ogmh_2`,gridSvg:`_gridSvg_1ogmh_19`,gaugeSvg:`_gaugeSvg_1ogmh_31`,center:`_center_1ogmh_36`,center__value:`_center__value_1ogmh_45`,center__caption:`_center__caption_1ogmh_46`},Nt={sm:180,md:220,lg:280,xl:340},Pt=Math.PI/180,Ft=e=>Math.round(e*1e3)/1e3,It={multi:[`30%`,`100%`],grid:[`30%`,`100%`],"stacked-label":[`30%`,`100%`],text:[`76%`,`100%`]},Lt=({value:e,max:t,color:r,track:i,centerValue:a,centerCaption:o,labelColor:s,captionColor:c})=>{let l=Math.round(Math.min(e,t)/t*40);return(0,n.jsxs)(`svg`,{viewBox:`0 0 200 120`,className:Y.gaugeSvg,children:[Array.from({length:40}).map((e,t)=>{let a=180+t/39*180;return(0,n.jsx)(`line`,{x1:Ft(100+78*Math.cos(a*Pt)),y1:Ft(100+78*Math.sin(a*Pt)),x2:Ft(100+92*Math.cos(a*Pt)),y2:Ft(100+92*Math.sin(a*Pt)),stroke:t<l?r:i,strokeWidth:2.5,strokeLinecap:`round`},t)}),(a||o)&&(0,n.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[a&&(0,n.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:a}),o&&(0,n.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:o})]})]})},Rt=({rings:e,spokes:t,color:r})=>(0,n.jsxs)(`svg`,{viewBox:`0 0 200 200`,className:Y.gridSvg,children:[Array.from({length:e}).map((t,i)=>(0,n.jsx)(`circle`,{cx:100,cy:100,r:(i+1)/e*96,fill:`none`,stroke:r,strokeWidth:1},i)),Array.from({length:t}).map((e,i)=>{let a=i/t*360,o=99.5*1.1;return(0,n.jsx)(`line`,{x1:100,y1:100,x2:Ft(100+o*Math.cos(a*Pt)),y2:Ft(100+o*Math.sin(a*Pt)),stroke:r,strokeWidth:1},i)})]}),zt=({data:e,palette:t,track:r,centerValue:a,centerCaption:o,labelColor:s,captionColor:c})=>{let l=e[0]?.max??e.reduce((e,t)=>e+t.value,0),u=210,d=e.map((e,n)=>{let r=l>0?e.value/l*240:0,i=u,a=u-r;return u=a,{segStart:i,segEnd:a,fill:t[n%t.length]}});return(0,n.jsxs)(`svg`,{viewBox:`0 0 200 160`,className:Y.gaugeSvg,children:[d.map((e,t)=>(0,n.jsx)(i.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:e.segStart,endAngle:e.segEnd,fill:e.fill,cornerRadius:4},t)),u>-29.5&&(0,n.jsx)(i.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:u,endAngle:-30,fill:r,cornerRadius:4}),(a||o)&&(0,n.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[a&&(0,n.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:a}),o&&(0,n.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:o})]})]})},Bt=({data:e,variant:r=`multi`,size:a=`md`,centerValue:o,centerCaption:s,className:c})=>{let l=t.default.useRef(null),u=S(l),d=[1,2,3,4,5].map(e=>u(`--color-chart-${e}`)??C[e-1]),f=u(`--color-bg-subtle`)??`#f5f4f2`,p=u(`--color-border-subtle`)??`#e7e5e1`,m=u(`--color-fg-default`)??`#141414`,h=u(`--color-fg-muted`)??`#78716a`,g=Nt[a];if(r===`gauge-tick`){let t=e[0];return(0,n.jsx)(`div`,{ref:l,className:[Y.chart,c??``].filter(Boolean).join(` `),style:{height:g},children:(0,n.jsx)(Lt,{value:t?.value??0,max:t?.max??100,color:d[0],track:f,centerValue:o,centerCaption:s,labelColor:m,captionColor:h})})}if(r===`shape`||r===`stacked`||r===`stacked-3-layers`)return(0,n.jsx)(`div`,{ref:l,className:[Y.chart,c??``].filter(Boolean).join(` `),style:{height:g},children:(0,n.jsx)(zt,{data:e,palette:d,track:f,centerValue:o,centerCaption:s,labelColor:m,captionColor:h})});let[_,v]=It[r]??[`30%`,`100%`],y=(r===`stacked-label`||r===`text`)&&(o||s);return(0,n.jsxs)(`div`,{ref:l,className:[Y.chart,c??``].filter(Boolean).join(` `),style:{height:g},children:[r===`grid`&&(0,n.jsx)(Rt,{rings:8,spokes:12,color:p}),(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.RadialBarChart,{data:e,innerRadius:_,outerRadius:v,startAngle:90,endAngle:-270,barCategoryGap:`12%`,children:[(0,n.jsx)(i.PolarAngleAxis,{type:`number`,domain:[0,e[0]?.max??100],tick:!1,axisLine:!1}),(0,n.jsx)(i.RadialBar,{dataKey:`value`,background:r!==`grid`&&{fill:f},cornerRadius:8,isAnimationActive:!1,children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:d[t%d.length]},t))})]})}),y&&(0,n.jsxs)(`div`,{className:Y.center,children:[o&&(0,n.jsx)(`span`,{className:Y.center__value,children:o}),s&&(0,n.jsx)(`span`,{className:Y.center__caption,children:s})]})]})},X={wrapper:`_wrapper_5ueza_3`,"wrapper--disabled":`_wrapper--disabled_5ueza_11`,input:`_input_5ueza_13`,circle:`_circle_5ueza_15`,dot:`_dot_5ueza_31`,text:`_text_5ueza_79`,text__label:`_text__label_5ueza_80`,text__description:`_text__description_5ueza_81`,"wrapper--withDescription":`_wrapper--withDescription_5ueza_85`},Vt=t.default.forwardRef(({label:e,description:r,disabled:i,id:a,className:o,...s},c)=>{let l=t.default.useId(),u=a??l;return(0,n.jsxs)(`label`,{htmlFor:u,className:[X.wrapper,r?X[`wrapper--withDescription`]:``,i?X[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`input`,{ref:c,id:u,type:`radio`,disabled:i,className:X.input,...s}),(0,n.jsx)(`span`,{className:X.circle,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:X.dot})}),(e||r)&&(0,n.jsxs)(`span`,{className:X.text,children:[e&&(0,n.jsx)(`span`,{className:X.text__label,children:e}),r&&(0,n.jsx)(`span`,{className:X.text__description,children:r})]})]})});Vt.displayName=`Radio`;var Z={footer:`_footer_1ric6_4`,"footer--collapsed":`_footer--collapsed_1ric6_12`,footer__text:`_footer__text_1ric6_14`,footer__title:`_footer__title_1ric6_15`,footer__subtitle:`_footer__subtitle_1ric6_16`,footer__menu:`_footer__menu_1ric6_17`,footer__action:`_footer__action_1ric6_26`},Ht=({type:t=`user`,title:i,subtitle:a,avatarSrc:o,avatarInitials:s,collapsed:c,onMenu:l,onSignOut:u})=>{let d=(0,n.jsx)(e.ut,{size:`sm`,src:o,initials:s,alt:i??`User`});return c?(0,n.jsx)(`div`,{className:[Z.footer,Z[`footer--collapsed`]].join(` `),children:d}):t===`actions`?(0,n.jsx)(`div`,{className:Z.footer,children:(0,n.jsxs)(`button`,{type:`button`,"data-hover-item":``,className:Z.footer__action,onClick:u,children:[(0,n.jsx)(r.LogOut,{size:16,strokeWidth:e.pt(16)}),` Sign out`]})}):(0,n.jsxs)(`div`,{className:Z.footer,children:[d,(0,n.jsxs)(`span`,{className:Z.footer__text,children:[i&&(0,n.jsx)(`span`,{className:Z.footer__title,children:i}),a&&(0,n.jsx)(`span`,{className:Z.footer__subtitle,children:a})]}),t===`user-menu`&&(0,n.jsx)(`button`,{type:`button`,"data-hover-item":``,className:Z.footer__menu,onClick:l,"aria-label":`Open menu`,children:(0,n.jsx)(r.EllipsisVertical,{size:16,strokeWidth:e.pt(16)})})]})},Ut={promo:`_promo_qzdlk_4`,promo__head:`_promo__head_qzdlk_20`,promo__icon:`_promo__icon_qzdlk_21`,promo__title:`_promo__title_qzdlk_22`,promo__dismiss:`_promo__dismiss_qzdlk_23`,promo__desc:`_promo__desc_qzdlk_30`,promo__cta:`_promo__cta_qzdlk_33`},Wt=({type:t=`upgrade`,title:i,description:a,ctaLabel:o,onCta:s,onDismiss:c,icon:l=r.Sparkles})=>(0,n.jsxs)(`div`,{className:[Ut.promo,Ut[`promo--${t}`]].join(` `),children:[(0,n.jsxs)(`div`,{className:Ut.promo__head,children:[(0,n.jsx)(`span`,{className:Ut.promo__icon,"aria-hidden":`true`,children:(0,n.jsx)(l,{size:16,strokeWidth:e.pt(16)})}),(0,n.jsx)(`span`,{className:Ut.promo__title,children:i}),c&&(0,n.jsx)(`button`,{type:`button`,className:Ut.promo__dismiss,onClick:c,"aria-label":`Dismiss`,children:(0,n.jsx)(r.X,{size:14,strokeWidth:e.pt(14)})})]}),a&&(0,n.jsx)(`p`,{className:Ut.promo__desc,children:a}),o&&(0,n.jsx)(`button`,{type:`button`,className:Ut.promo__cta,onClick:s,children:o})]}),Gt={search:`_search_1airw_2`,search__icon:`_search__icon_1airw_25`,search__input:`_search__input_1airw_26`,search__placeholder:`_search__placeholder_1airw_38`,search__kbd:`_search__kbd_1airw_39`,collapsed:`_collapsed_1airw_53`},Kt=({type:t=`field`,placeholder:i=`Search…`,collapsed:a,value:o,onChange:s,onClick:c})=>a?(0,n.jsx)(`button`,{type:`button`,className:Gt.collapsed,onClick:c,"aria-label":`Search`,children:(0,n.jsx)(r.Search,{size:18,strokeWidth:e.pt(18)})}):t===`command`?(0,n.jsxs)(`button`,{type:`button`,className:Gt.search,onClick:c,children:[(0,n.jsx)(r.Search,{size:16,strokeWidth:e.pt(16),className:Gt.search__icon}),(0,n.jsx)(`span`,{className:Gt.search__placeholder,children:i}),(0,n.jsx)(`kbd`,{className:Gt.search__kbd,children:`⌘K`})]}):(0,n.jsxs)(`div`,{className:Gt.search,children:[(0,n.jsx)(r.Search,{size:16,strokeWidth:e.pt(16),className:Gt.search__icon}),(0,n.jsx)(`input`,{className:Gt.search__input,placeholder:i,value:o,onChange:e=>s?.(e.target.value)})]}),qt={spinner:`_spinner_14r00_3`,"spinner--sm":`_spinner--sm_14r00_12`,"spinner--md":`_spinner--md_14r00_13`,"spinner--lg":`_spinner--lg_14r00_14`,spinner__svg:`_spinner__svg_14r00_17`,"spinner-rotate":`_spinner-rotate_14r00_1`},Jt=({size:e=`md`,label:t=`Loading...`,className:r})=>(0,n.jsx)(`span`,{role:`status`,"aria-label":t,className:[qt.spinner,qt[`spinner--${e}`],r??``].filter(Boolean).join(` `),children:(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,"aria-hidden":`true`,className:qt.spinner__svg,children:[(0,n.jsx)(`circle`,{cx:12,cy:12,r:9,opacity:.2}),(0,n.jsx)(`path`,{d:`M12 3a9 9 0 0 1 9 9`,className:qt.spinner__arc})]})}),Q={card:`_card_u5kvg_4`,"card--featured":`_card--featured_u5kvg_24`,card__head:`_card__head_u5kvg_26`,card__icon:`_card__icon_u5kvg_27`,card__title:`_card__title_u5kvg_41`,card__menu:`_card__menu_u5kvg_42`,card__value:`_card__value_u5kvg_50`,card__meta:`_card__meta_u5kvg_59`,card__sparkline:`_card__sparkline_u5kvg_66`,"card--trend-up":`_card--trend-up_u5kvg_68`,"card--trend-down":`_card--trend-down_u5kvg_69`,card__description:`_card__description_u5kvg_72`},Yt={up:r.TrendingUp,down:r.TrendingDown,flat:r.Minus},Xt={up:`success`,down:`danger`,flat:`neutral`},Zt=({data:e})=>{if(e.length<2)return null;let t=Math.min(...e),r=Math.max(...e)-t||1,i=e.map((n,i)=>`${i/(e.length-1)*100},${30-(n-t)/r*26}`).join(` `);return(0,n.jsx)(`svg`,{className:Qt,viewBox:`0 0 100 32`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,n.jsx)(`polyline`,{points:i,fill:`none`,strokeWidth:2,vectorEffect:`non-scaling-stroke`,strokeLinejoin:`round`,strokeLinecap:`round`})})},Qt=Q.card__sparkline,$t=({title:t,value:i,description:a,sparkline:o,delta:s,trend:c=`up`,badgeVariant:l,variant:u=`minimal`,icon:d,showMenu:f,onMenu:p,className:m})=>{let h=Yt[c],g=(u===`icon`||u===`featured`)&&d;return(0,n.jsxs)(`div`,{className:[Q.card,Q[`card--${u}`],Q[`card--trend-${c}`],m??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:Q.card__head,children:[g&&(0,n.jsx)(`span`,{className:Q.card__icon,"aria-hidden":`true`,children:(0,n.jsx)(d,{size:18,strokeWidth:e.pt(18)})}),(0,n.jsx)(`span`,{className:Q.card__title,children:t}),f&&(0,n.jsx)(`button`,{type:`button`,className:Q.card__menu,onClick:p,"aria-label":`More options`,children:(0,n.jsx)(r.MoreHorizontal,{size:16,strokeWidth:e.pt(16)})})]}),(0,n.jsx)(`div`,{className:Q.card__value,children:i}),o&&(0,n.jsx)(Zt,{data:o}),(s||a)&&(0,n.jsxs)(`div`,{className:Q.card__meta,children:[s&&(0,n.jsx)(e.X,{variant:l??Xt[c],leftIcon:(0,n.jsx)(h,{size:12,strokeWidth:2}),children:s}),a&&(0,n.jsx)(`p`,{className:Q.card__description,children:a})]})]})},$={stepper:`_stepper_kxw14_3`,"stepper--horizontal":`_stepper--horizontal_kxw14_4`,"stepper--vertical":`_stepper--vertical_kxw14_5`,step:`_step_kxw14_3`,"step--horizontal":`_step--horizontal_kxw14_8`,"step--vertical":`_step--vertical_kxw14_9`,circle:`_circle_kxw14_12`,circle__num:`_circle__num_kxw14_24`,"circle--completed":`_circle--completed_kxw14_26`,"circle--current":`_circle--current_kxw14_27`,"circle--upcoming":`_circle--upcoming_kxw14_32`,step__text:`_step__text_kxw14_39`,step__label:`_step__label_kxw14_40`,"step__label--current":`_step__label--current_kxw14_41`,"step__label--upcoming":`_step__label--upcoming_kxw14_42`,step__desc:`_step__desc_kxw14_43`,connector:`_connector_kxw14_46`,"connector--horizontal":`_connector--horizontal_kxw14_47`,"connector--vertical":`_connector--vertical_kxw14_48`,"connector--filled":`_connector--filled_kxw14_49`},en=({index:t,state:i,label:a,description:o,orientation:s=`horizontal`})=>(0,n.jsxs)(`div`,{className:[$.step,$[`step--${s}`]].join(` `),children:[(0,n.jsx)(`span`,{className:[$.circle,$[`circle--${i}`]].join(` `),"aria-hidden":`true`,children:i===`completed`?(0,n.jsx)(r.Check,{size:14,strokeWidth:e.pt(14)}):(0,n.jsx)(`span`,{className:$.circle__num,children:t+1})}),(0,n.jsxs)(`span`,{className:$.step__text,children:[(0,n.jsx)(`span`,{className:[$.step__label,i===`current`?$[`step__label--current`]:``,i===`upcoming`?$[`step__label--upcoming`]:``].filter(Boolean).join(` `),children:a}),o&&(0,n.jsx)(`span`,{className:$.step__desc,children:o})]})]}),tn=({steps:e,current:r,orientation:i=`horizontal`,className:a})=>{let o=e=>e<r?`completed`:e===r?`current`:`upcoming`;return(0,n.jsx)(`div`,{className:[$.stepper,$[`stepper--${i}`],a??``].filter(Boolean).join(` `),children:e.map((a,s)=>(0,n.jsxs)(t.default.Fragment,{children:[(0,n.jsx)(en,{index:s,state:o(s),label:a.label,description:a.description,orientation:i}),s<e.length-1&&(0,n.jsx)(`span`,{className:[$.connector,$[`connector--${i}`],s<r?$[`connector--filled`]:``].filter(Boolean).join(` `),"aria-hidden":`true`})]},s))})},nn={wrapper:`_wrapper_bkgd3_3`,"wrapper--disabled":`_wrapper--disabled_bkgd3_11`,input:`_input_bkgd3_13`,track:`_track_bkgd3_15`,thumb:`_thumb_bkgd3_28`,label:`_label_bkgd3_45`},rn=t.default.forwardRef(({label:e,disabled:r,id:i,className:a,...o},s)=>{let c=t.default.useId(),l=i??c;return(0,n.jsxs)(`label`,{htmlFor:l,className:[nn.wrapper,r?nn[`wrapper--disabled`]:``,a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`input`,{ref:s,id:l,type:`checkbox`,role:`switch`,disabled:r,className:nn.input,...o}),(0,n.jsx)(`span`,{className:nn.track,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:nn.thumb})}),e&&(0,n.jsx)(`span`,{className:nn.label,children:e})]})});rn.displayName=`Switch`;var an={field:`_field_53t87_6`,field__label:`_field__label_53t87_8`,field__description:`_field__description_53t87_10`,field__error:`_field__error_53t87_11`,textarea:`_textarea_53t87_13`,"textarea--error":`_textarea--error_53t87_37`,"textarea--disabled":`_textarea--disabled_53t87_52`},on=t.default.forwardRef(({label:e,description:r,error:i,disabled:a,id:o,className:s,rows:c=3,...l},u)=>{let d=t.default.useId(),f=o??d,p=!!i,m=r||i?`${f}-desc`:void 0;return(0,n.jsxs)(`div`,{className:[an.field,s??``].filter(Boolean).join(` `),children:[e&&(0,n.jsx)(`label`,{htmlFor:f,className:an.field__label,children:e}),(0,n.jsx)(`textarea`,{ref:u,id:f,rows:c,disabled:a,"aria-invalid":p||void 0,"aria-describedby":m,className:[an.textarea,p?an[`textarea--error`]:``,a?an[`textarea--disabled`]:``].filter(Boolean).join(` `),...l}),(r||i)&&(0,n.jsx)(`span`,{id:m,className:p?an.field__error:an.field__description,children:i||r})]})});on.displayName=`Textarea`;var sn={toast:`_toast_8yqwj_3`,toast__icon:`_toast__icon_8yqwj_17`,"toast--success":`_toast--success_8yqwj_18`,"toast--error":`_toast--error_8yqwj_19`,"toast--info":`_toast--info_8yqwj_20`,toast__content:`_toast__content_8yqwj_22`,toast__title:`_toast__title_8yqwj_23`,toast__description:`_toast__description_8yqwj_24`,toast__dismiss:`_toast__dismiss_8yqwj_26`},cn={success:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,n.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),error:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,n.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,n.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),info:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,n.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,n.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},ln=({status:t=`info`,title:r,description:i,onDismiss:a,className:o})=>(0,n.jsxs)(`div`,{role:t===`error`?`alert`:`status`,"aria-live":t===`error`?`assertive`:`polite`,className:[sn.toast,sn[`toast--${t}`],o??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:sn.toast__icon,"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.pt(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:cn[t]})}),(0,n.jsxs)(`div`,{className:sn.toast__content,children:[r&&(0,n.jsx)(`div`,{className:sn.toast__title,children:r}),i&&(0,n.jsx)(`div`,{className:sn.toast__description,children:i})]}),a&&(0,n.jsx)(`button`,{type:`button`,className:sn.toast__dismiss,onClick:a,"aria-label":`Dismiss`,children:(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.pt(16),strokeLinecap:`round`,strokeLinejoin:`round`,width:16,height:16,children:[(0,n.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,n.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]}),un={bar:`_bar_14cqo_2`,bar__icon:`_bar__icon_14cqo_10`,bar__title:`_bar__title_14cqo_17`,"bar__title--center":`_bar__title--center_14cqo_21`,bar__search:`_bar__search_14cqo_22`},dn=({type:t=`title`,title:i,trailing:a,search:o,onMenu:s,onAction:c,onClose:l,className:u})=>(0,n.jsxs)(`header`,{className:[un.bar,u??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`button`,{type:`button`,className:un.bar__icon,onClick:s,"aria-label":`Open menu`,children:(0,n.jsx)(r.Menu,{size:18,strokeWidth:e.pt(18)})}),t===`search`?(0,n.jsx)(`div`,{className:un.bar__search,children:o}):(0,n.jsx)(`span`,{className:[un.bar__title,t===`title-centered`?un[`bar__title--center`]:``].join(` `),children:i}),t===`title-action`&&(0,n.jsx)(`button`,{type:`button`,className:un.bar__icon,onClick:c,"aria-label":`Add`,children:(0,n.jsx)(r.Plus,{size:18,strokeWidth:e.pt(18)})}),t===`search`&&(0,n.jsx)(`button`,{type:`button`,className:un.bar__icon,onClick:l,"aria-label":`Close search`,children:(0,n.jsx)(r.X,{size:18,strokeWidth:e.pt(18)})}),(t===`title`||t===`title-centered`)&&a]});exports.Accordion=e.dt,exports.AccordionItem=e.ft,exports.ActivityFeed=e.ct,exports.ActivityFeedHighlight=e.lt,exports.Alert=e.O,exports.Announcement=o,exports.AreaChart=Ne,exports.Avatar=e.ut,exports.AvatarGroup=e.N,exports.AvatarUpload=e.it,exports.Badge=e.X,exports.Balance=e.rt,exports.BarChart=A,exports.BlogBlockquote=ce,exports.BlogFeatureText=ue,exports.BlogImage=fe,exports.BlogListingCard=e.I,exports.BlogListingFeaturedCard=e.F,exports.BoardCard=e.D,exports.BoardColumn=Pe,exports.Breadcrumb=e.w,exports.Button=e.at,exports.Calendar=ze,exports.Card=Be,exports.CardMetaItem=e.C,exports.CartItem=e.J,exports.ChatComposer=e.S,exports.Checkbox=e.x,exports.CheckoutSteps=e.K,exports.CodeSnippet=d,exports.ColorSwatch=e.W,exports.Combobox=Ve,exports.ConversationItem=e.b,exports.DEFAULT_CHECKOUT_STEPS=e.q,exports.Divider=e.tt,exports.DonutChart=We,exports.EmptyState=e.y,exports.Expenses=m,exports.FeaturedIcon=e.P,exports.FileUpload=Ge,exports.FilterChip=e.v,exports.FirstPageHeading=pe,exports.FunnelChart=Xe,exports.HeatmapChart=$e,exports.HoverGroup=e.T,exports.IconButton=e.ot,exports.InlineHint=_,exports.Input=e._,exports.JobListing=e.j,exports.Kbd=tt,exports.Label=rt,exports.LineChart=st,exports.Link=e.st,exports.List=he,exports.ListItem=ct,exports.LocationDot=e.M,exports.Marquee=ve,exports.Menu=ut,exports.MenuDivider=dt,exports.MenuItem=pt,exports.MessageBubble=e.g,exports.Metric=be,exports.MobileNavigationMenu=xe,exports.Modal=e.et,exports.NotificationItem=e.$,exports.Pagination=e.h,exports.PieChart=xt,exports.PlaceholderLogo=we,exports.Popover=St,exports.PriceDisplay=e.U,exports.ProductCard=e.V,exports.ProductGallery=e.B,exports.ProfileCard=Te,exports.Progress=e.nt,exports.ProgressItem=y,exports.ProgressStat=e.Q,exports.QuantitySelector=e.Y,exports.RadarChart=Mt,exports.RadialChart=Bt,exports.Radio=Vt,exports.RichSeparator=x,exports.RichTextHeading=De,exports.RichTextParagraph=ke,exports.SectionHeading=e.A,exports.SegmentedControl=e.m,exports.Select=e.p,exports.Sidebar=e.f,exports.SidebarDivider=e.d,exports.SidebarFooter=Ht,exports.SidebarGroupLabel=e.u,exports.SidebarHeader=e.l,exports.SidebarItem=e.c,exports.SidebarPromo=Wt,exports.SidebarSearch=Kt,exports.SidebarSubItem=e.s,exports.SizeSelector=e.z,exports.Skeleton=e.o,exports.Slider=e.a,exports.SpendingBalance=e.Z,exports.Spinner=Jt,exports.StarRating=e.R,exports.StatCard=$t,exports.Stepper=tn,exports.StepperStep=en,exports.StockMarket=M,exports.StockStatus=e.L,exports.SubFeature=Ae,exports.Switch=rn,exports.Table=e.i,exports.Tabs=e.r,exports.Tags=ne,exports.TeamCard=e.k,exports.Textarea=on,exports.Ticker=ae,exports.Toast=ln,exports.Tooltip=e.n,exports.TopBar=e.t,exports.TopBarMobile=dn,exports.Transactions=se,exports.WishlistButton=e.H,exports.getContrastColor=e.G,exports.iconStrokeWidth=e.pt,exports.useHoverHighlight=e.E;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./TopBar-P5mbIdH5.cjs");let t=require("react");t=e.mt(t,1);let n=require("react/jsx-runtime"),r=require("lucide-react"),i=require("recharts");var a={announcement:`_announcement_1ba3c_1`,"announcement--neutral":`_announcement--neutral_1ba3c_13`,"announcement--urgent":`_announcement--urgent_1ba3c_16`,content:`_content_1ba3c_20`,icon:`_icon_1ba3c_28`,icon__neutral:`_icon__neutral_1ba3c_32`,message:`_message_1ba3c_36`,link:`_link_1ba3c_52`},o=({message:t,linkLabel:i,linkHref:o,onLinkClick:s,onDismiss:c,variant:l=`neutral`,className:u})=>{let d=l===`urgent`;return(0,n.jsxs)(`div`,{className:[a.announcement,a[`announcement--${l}`],u??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:a.content,children:[(0,n.jsx)(`span`,{className:a.icon,"aria-hidden":`true`,children:d?(0,n.jsx)(r.TriangleAlert,{size:24,strokeWidth:1.5,style:{fill:`var(--color-info-solid)`,stroke:`var(--color-info-bg)`}}):(0,n.jsx)(r.Sparkles,{size:24,strokeWidth:1.5,fill:`currentColor`,stroke:`currentColor`,className:a.icon__neutral})}),(0,n.jsx)(`p`,{className:a.message,children:t}),!d&&i&&(0,n.jsx)(e.st,{href:o,onClick:s,className:a.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:i})]}),c&&(0,n.jsx)(e.ot,{icon:r.X,size:`sm`,variant:`ghost`,"aria-label":`Dismiss`,onClick:c})]})},s={snippet:`_snippet_1ao90_1`,header:`_header_1ao90_12`,filename:`_filename_1ao90_19`,body:`_body_1ao90_31`,tokenKeyword:`_tokenKeyword_1ao90_42`,tokenString:`_tokenString_1ao90_43`,editableBody:`_editableBody_1ao90_50`,textarea:`_textarea_1ao90_55`},c=[`import`,`export`,`from`,`default`,`function`,`return`,`const`,`let`,`var`,`if`,`else`,`for`,`while`,`class`,`extends`,`new`,`async`,`await`,`as`,`of`,`in`],l=RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${c.join(`|`)})\\b)`,`g`),u=e=>e.split(l).map((e,r)=>{if(!e)return null;let i=/^['"`]/.test(e),a=!i&&c.includes(e);return i?(0,n.jsx)(`span`,{className:s.tokenString,children:e},r):a?(0,n.jsx)(`span`,{className:s.tokenKeyword,children:e},r):(0,n.jsx)(t.default.Fragment,{children:e},r)}),d=({code:i,filename:a,onCopy:o,editable:c=!1,onChange:l,placeholder:d,className:f})=>{let[p,m]=t.default.useState(!1),[h,g]=t.default.useState(i);t.default.useEffect(()=>g(i),[i]);let _=()=>{navigator.clipboard?.writeText(h),o?.(h),m(!0),window.setTimeout(()=>m(!1),1500)},v=e=>{g(e),l?.(e)},y=c?(0,n.jsxs)(`div`,{className:s.editableBody,children:[(0,n.jsx)(`pre`,{className:s.body,"aria-hidden":`true`,children:u(h)}),(0,n.jsx)(`textarea`,{className:s.textarea,value:h,placeholder:d,spellCheck:!1,onChange:e=>v(e.target.value),onKeyDown:e=>{if(e.key!==`Tab`)return;e.preventDefault();let t=e.currentTarget,{selectionStart:n,selectionEnd:r}=t,i=`${h.slice(0,n)} ${h.slice(r)}`;v(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=n+2})}})]}):(0,n.jsx)(`pre`,{className:s.body,children:u(h)});return a?(0,n.jsxs)(`div`,{className:[s.snippet,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:s.header,children:[(0,n.jsx)(`p`,{className:s.filename,children:a}),(0,n.jsx)(e.ot,{icon:p?r.Check:r.Copy,variant:`ghost`,size:`sm`,"aria-label":p?`Copied`:`Copy code`,onClick:_})]}),y]}):(0,n.jsx)(`div`,{className:[s.snippet,f??``].filter(Boolean).join(` `),children:y})},f={expenses:`_expenses_1imiq_1`,row:`_row_1imiq_10`,top:`_top_1imiq_18`,left:`_left_1imiq_26`,icon:`_icon_1imiq_32`,label:`_label_1imiq_44`,amount:`_amount_1imiq_55`},p=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),m=({categories:t,variant:r=`default`,formatAmount:i=p,className:a})=>{let o=r===`compact`,s=Math.max(1,...t.map(e=>e.amount));return(0,n.jsx)(`div`,{className:[f.expenses,a??``].filter(Boolean).join(` `),children:t.map((t,r)=>(0,n.jsxs)(`div`,{className:f.row,children:[(0,n.jsxs)(`div`,{className:f.top,children:[(0,n.jsxs)(`div`,{className:f.left,children:[(0,n.jsx)(`span`,{className:f.icon,"aria-hidden":`true`,children:t.icon}),(0,n.jsx)(`p`,{className:f.label,children:t.label})]}),(0,n.jsx)(`p`,{className:f.amount,children:i(t.amount)})]}),!o&&(0,n.jsx)(e.nt,{value:t.amount/s*100,size:`lg`,label:`${t.label} spending`})]},t.id??r))})},h={hint:`_hint_49nyi_1`,bar:`_bar_49nyi_9`,"hint--neutral":`_hint--neutral_49nyi_15`,"hint--warning":`_hint--warning_49nyi_16`,icon:`_icon_49nyi_18`,message:`_message_49nyi_24`},g=14,_=({message:t,variant:i=`neutral`,className:a})=>{let o=i===`warning`?r.TriangleAlert:r.Info;return(0,n.jsxs)(`div`,{className:[h.hint,h[`hint--${i}`],a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:h.bar,"aria-hidden":`true`}),(0,n.jsx)(o,{size:g,strokeWidth:e.pt(g),className:h.icon}),(0,n.jsx)(`p`,{className:h.message,children:t})]})},v={item:`_item_mg6gs_1`,"item--horizontal":`_item--horizontal_mg6gs_6`,"item--vertical":`_item--vertical_mg6gs_11`,value:`_value_mg6gs_16`,topRow:`_topRow_mg6gs_31`,connectorHorizontal:`_connectorHorizontal_mg6gs_36`,rail:`_rail_mg6gs_44`,connectorVertical:`_connectorVertical_mg6gs_51`,text:`_text_mg6gs_59`,title:`_title_mg6gs_65`,description:`_description_mg6gs_73`},y=({step:t,title:i,description:a,completed:o=!1,orientation:s=`horizontal`,isLast:c=!1,className:l})=>{let u=s===`vertical`,d=(0,n.jsx)(`span`,{className:v.value,"aria-hidden":`true`,children:o?(0,n.jsx)(r.Check,{size:14,strokeWidth:e.pt(14)}):t}),f=(0,n.jsxs)(`div`,{className:v.text,children:[(0,n.jsx)(`p`,{className:v.title,children:i}),a&&(0,n.jsx)(`p`,{className:v.description,children:a})]});return u?(0,n.jsxs)(`div`,{className:[v.item,v[`item--vertical`],l??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:v.rail,children:[d,!c&&(0,n.jsx)(`div`,{className:v.connectorVertical})]}),f]}):(0,n.jsxs)(`div`,{className:[v.item,v[`item--horizontal`],l??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:v.topRow,children:[d,!c&&(0,n.jsx)(`div`,{className:v.connectorHorizontal})]}),f]})},b={separator:`_separator_pcfo8_1`,line:`_line_pcfo8_9`,overline:`_overline_pcfo8_19`,badge:`_badge_pcfo8_31`,iconWrap:`_iconWrap_pcfo8_37`},x=({children:t,label:r,className:i})=>(0,n.jsxs)(`div`,{className:[b.separator,i??``].filter(Boolean).join(` `),role:`separator`,children:[(0,n.jsx)(e.tt,{className:b.line}),t??(r&&(0,n.jsx)(`span`,{className:b.overline,children:r})),(0,n.jsx)(e.tt,{className:b.line})]});function S(e){let[,n]=(0,t.useState)(0);return(0,t.useEffect)(()=>{if(typeof document>`u`)return;n(e=>e+1);let t=new MutationObserver(()=>n(e=>e+1)),r=new Set([document.documentElement]);for(let t=e.current;t;t=t.parentElement)r.add(t);return r.forEach(e=>t.observe(e,{attributes:!0,attributeFilter:[`class`]})),()=>t.disconnect()},[e]),t=>{if(typeof window>`u`)return;let n=e.current??document.documentElement;return getComputedStyle(n).getPropertyValue(t).trim()||void 0}}var C=[`#ff4700`,`#5b92dd`,`#47a8a2`,`#9179d6`,`#dca84f`,`#12b76a`],w={tooltip:`_tooltip_ic16u_3`,title:`_title_ic16u_23`,row:`_row_ic16u_27`,dot:`_dot_ic16u_34`,label:`_label_ic16u_41`,value:`_value_ic16u_42`},T=({active:e,payload:t,label:r,formatter:i})=>!e||!t||t.length===0?null:(0,n.jsxs)(`div`,{className:w.tooltip,children:[r!==void 0&&r!==``&&(0,n.jsx)(`span`,{className:w.title,children:r}),t.map((e,t)=>(0,n.jsxs)(`div`,{className:w.row,children:[(0,n.jsx)(`span`,{className:w.dot,style:{background:e.color??e.payload?.fill??e.fill}}),(0,n.jsx)(`span`,{className:w.label,children:e.name}),(0,n.jsx)(`span`,{className:w.value,children:i?i(e.value,e.name):e.value})]},t))]}),E={chart:`_chart_1s6lv_2`,legend:`_legend_1s6lv_31`,legendItem:`_legendItem_1s6lv_41`,legendSwatch:`_legendSwatch_1s6lv_46`},D={sm:180,md:240,lg:320,xl:420},O=6,k=e=>{if(e<=0)return 1;let t=10**Math.floor(Math.log10(e)),n=e/t;return(n<=1?1:n<=2?2:n<=5?5:10)*t},A=({data:e,variant:r=`default`,size:a=`md`,seriesLabels:o=[`Value`,`Value 2`],className:s})=>{let[c,l]=t.default.useState(null),[u,d]=t.default.useState(null),f=t.default.useRef(null),p=S(f),m=p(`--color-chart-2`)??`#5b92dd`,h=p(`--color-chart-5`)??`#dca84f`,g=p(`--color-chart-1`)??`#ff4700`,_=[1,2,3,4,5,6].map(e=>p(`--color-chart-${e}`)??C[e-1]),v=p(`--color-border-subtle`)??`#e7e5e1`,y=p(`--color-fg-muted`)??`#78716a`,b=r===`multiple`||r===`stacked`,x=b&&e.some(e=>e.value2!==void 0),w=p(`--color-bg-canvas`)??`#fafaf9`,A=k(Math.max(1,...e.map(e=>Math.abs(e.value)))),j=[-A,-A/2,0,A/2,A],ee=(0,n.jsx)(i.Tooltip,{cursor:!1,content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50},position:u?{y:u.y}:void 0}),M=t=>r===`active`?_[t%_.length]:r===`negative`&&e[t].value<0?g:m,N=e=>c!==null&&e!==c?.45:1,te=(e,t,n,r,i,a)=>({x:e?t+r:t+r/2,y:e?n+i/2:a<0?n+i:n}),ne=t=>a=>{let{x:o,y:s,width:c,height:l,fill:u,radius:d}=a,f=Number(e[a.index]?.[t]??0),{x:p,y:h}=te(r===`horizontal`,o,s,c,l,f);return r===`stacked`&&t===`value`?(0,n.jsx)(i.Rectangle,{x:o,y:s,width:c,height:l,fill:u,radius:d}):(0,n.jsxs)(`g`,{children:[(0,n.jsx)(i.Rectangle,{x:o,y:s,width:c,height:l,fill:u,radius:d}),(0,n.jsx)(`circle`,{cx:p,cy:h,r:4,fill:u,stroke:w,strokeWidth:1.5}),r===`stacked`&&t===`value2`&&(0,n.jsx)(`circle`,{cx:o+c/2,cy:s+l,r:4,fill:m,stroke:w,strokeWidth:1.5})]})},P=t=>(n,i)=>{l(i);let a=Number(e[i]?.[t]??0);d(te(r===`horizontal`,n.x,n.y,n.width,n.height,a))},re=()=>{l(null),d(null)};return(0,n.jsx)(`div`,{ref:f,className:[E.chart,s??``].filter(Boolean).join(` `),children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:D[a],children:(0,n.jsxs)(i.BarChart,{data:e,layout:r===`horizontal`?`vertical`:`horizontal`,margin:{top:8,right:8,bottom:8,left:r===`horizontal`?8:0},children:[(0,n.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:v,horizontal:!0,vertical:r===`horizontal`}),r===`horizontal`?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.XAxis,{type:`number`,stroke:y,fontSize:12,tickLine:!1,axisLine:!1}),(0,n.jsx)(i.YAxis,{type:`category`,dataKey:`label`,stroke:y,fontSize:12,tickLine:!1,axisLine:!1,width:64})]}):(0,n.jsx)(i.XAxis,{dataKey:`label`,stroke:y,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),r===`negative`&&(0,n.jsx)(i.YAxis,{hide:!0,domain:[-A,A],ticks:j}),ee,b&&(0,n.jsx)(i.Legend,{content:e=>(0,n.jsx)(`ul`,{className:E.legend,children:e.payload?.map(e=>(0,n.jsxs)(`li`,{className:E.legendItem,children:[(0,n.jsx)(`span`,{className:E.legendSwatch,style:{background:e.color}}),(0,n.jsx)(`span`,{style:{color:e.color},children:e.value})]},e.value))})}),b?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Bar,{dataKey:`value`,name:o[0]??`Value`,fill:m,stackId:r===`stacked`?`stack`:void 0,radius:r===`stacked`?[0,0,O,O]:[O,O,O,O],isAnimationActive:!1,activeBar:ne(`value`),onMouseEnter:P(`value`),onMouseLeave:re,children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:m,fillOpacity:c!==null&&t!==c?.45:1},t))}),x&&(0,n.jsx)(i.Bar,{dataKey:`value2`,name:o[1]??`Value 2`,fill:h,stackId:r===`stacked`?`stack`:void 0,radius:r===`stacked`?[O,O,0,0]:[O,O,O,O],isAnimationActive:!1,activeBar:ne(`value2`),onMouseEnter:P(`value2`),onMouseLeave:re,children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:h,fillOpacity:c!==null&&t!==c?.45:1},t))})]}):(0,n.jsx)(i.Bar,{dataKey:`value`,name:`Value`,fill:c===null?m:M(c),radius:[O,O,O,O],isAnimationActive:!1,activeBar:ne(`value`),onMouseEnter:P(`value`),onMouseLeave:re,children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:M(t),fillOpacity:N(t)},t))})]})})})},j={row:`_row_5wjem_2`,left:`_left_5wjem_16`,logo:`_logo_5wjem_23`,logoLg:`_logoLg_5wjem_29`,text:`_text_5wjem_36`,symbol:`_symbol_5wjem_42`,name:`_name_5wjem_50`,right:`_right_5wjem_59`,price:`_price_5wjem_65`,changeRow:`_changeRow_5wjem_73`,changeText:`_changeText_5wjem_78`,trendUp:`_trendUp_5wjem_84`,trendDown:`_trendDown_5wjem_85`,card:`_card_5wjem_88`,header:`_header_5wjem_102`,headerIcon:`_headerIcon_5wjem_109`,headerLabel:`_headerLabel_5wjem_110`,tickerRow:`_tickerRow_5wjem_117`,body:`_body_5wjem_125`,priceRow:`_priceRow_5wjem_132`,priceGroup:`_priceGroup_5wjem_139`,priceLg:`_priceLg_5wjem_144`,changeRowLg:`_changeRowLg_5wjem_153`,changeTextLg:`_changeTextLg_5wjem_158`,chart:`_chart_5wjem_165`},ee=e=>Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),M=({logo:t,symbol:i,name:a,price:o,change:s,formatAmount:c=ee,chart:l,periodLabel:u=`Last 6 months`,onPeriodClick:d,className:f})=>{let p=s.amount>=0,m=p?r.TrendingUp:r.TrendingDown,h=p?`+`:`-`,g=`${h}${c(s.amount)} (${h}${Math.abs(s.percent)}%)`,_=p?j.trendUp:j.trendDown;return l?(0,n.jsxs)(`div`,{className:[j.card,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:j.header,children:[(0,n.jsx)(r.ChartColumn,{size:16,strokeWidth:e.pt(16),className:j.headerIcon}),(0,n.jsx)(`span`,{className:j.headerLabel,children:`Stock market`})]}),(0,n.jsxs)(`div`,{className:j.tickerRow,children:[(0,n.jsx)(`span`,{className:j.logoLg,"aria-hidden":`true`,children:t}),(0,n.jsxs)(`div`,{className:j.text,children:[(0,n.jsx)(`p`,{className:j.symbol,children:i}),(0,n.jsx)(`p`,{className:j.name,children:a})]})]}),(0,n.jsxs)(`div`,{className:j.body,children:[(0,n.jsxs)(`div`,{className:j.priceRow,children:[(0,n.jsxs)(`div`,{className:j.priceGroup,children:[(0,n.jsx)(`p`,{className:j.priceLg,children:c(o)}),(0,n.jsxs)(`div`,{className:j.changeRowLg,children:[(0,n.jsx)(m,{size:24,strokeWidth:e.pt(24),className:_}),(0,n.jsx)(`span`,{className:[j.changeTextLg,_].join(` `),children:g})]})]}),(0,n.jsx)(e.at,{variant:`outline`,size:`sm`,rightIcon:(0,n.jsx)(r.ChevronDown,{size:16,strokeWidth:e.pt(16)}),onClick:d,children:u})]}),(0,n.jsx)(A,{data:l,className:j.chart})]})]}):(0,n.jsxs)(`div`,{className:[j.row,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:j.left,children:[(0,n.jsx)(`span`,{className:j.logo,"aria-hidden":`true`,children:t}),(0,n.jsxs)(`div`,{className:j.text,children:[(0,n.jsx)(`p`,{className:j.symbol,children:i}),(0,n.jsx)(`p`,{className:j.name,children:a})]})]}),(0,n.jsxs)(`div`,{className:j.right,children:[(0,n.jsx)(`p`,{className:j.price,children:c(o)}),(0,n.jsxs)(`div`,{className:j.changeRow,children:[(0,n.jsx)(m,{size:20,strokeWidth:e.pt(20),className:_}),(0,n.jsx)(`span`,{className:[j.changeText,_].join(` `),children:g})]})]})]})},N={tags:`_tags_bsi1x_1`,remove:`_remove_bsi1x_8`,tag:`_tag_bsi1x_1`,"tag--leaving":`_tag--leaving_bsi1x_22`},te=160,ne=({tags:i,onRemove:a,className:o})=>{let[s,c]=t.default.useState(null),l=t.default.useRef(void 0);t.default.useEffect(()=>()=>window.clearTimeout(l.current),[]);let u=(e,t)=>{if(!(!a||s)){if(window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches){a(e,t);return}c(e),l.current=window.setTimeout(()=>{a(e,t),c(null)},te)}};return(0,n.jsx)(`div`,{className:[N.tags,o??``].filter(Boolean).join(` `),children:i.map((t,i)=>(0,n.jsx)(e.X,{className:[N.tag,s===t?N[`tag--leaving`]:``].filter(Boolean).join(` `),rightIcon:a&&(0,n.jsx)(`button`,{type:`button`,className:N.remove,onClick:()=>u(t,i),"aria-label":`Remove ${t}`,children:(0,n.jsx)(r.X,{size:12,strokeWidth:e.pt(12)})}),children:t},t))})},P={ticker:`_ticker_6xnxy_1`,track:`_track_6xnxy_9`,"ticker-scroll":`_ticker-scroll_6xnxy_1`,row:`_row_6xnxy_24`,item:`_item_6xnxy_33`,symbol:`_symbol_6xnxy_40`,change:`_change_6xnxy_49`,trendUp:`_trendUp_6xnxy_57`,trendDown:`_trendDown_6xnxy_58`,fadeLeft:`_fadeLeft_6xnxy_60`,fadeRight:`_fadeRight_6xnxy_61`},re=e=>`${e>=0?`+`:``}${e}%`,ie=({items:t,formatChange:i,ariaHidden:a})=>(0,n.jsx)(`div`,{className:P.row,"aria-hidden":a,children:t.map((t,a)=>{let o=t.changePercent>=0,s=o?r.TrendingUp:r.TrendingDown,c=o?P.trendUp:P.trendDown;return(0,n.jsxs)(`div`,{className:P.item,children:[(0,n.jsx)(`span`,{className:P.symbol,children:t.symbol}),(0,n.jsx)(s,{size:14,strokeWidth:e.pt(14),className:c}),(0,n.jsx)(`span`,{className:[P.change,c].join(` `),children:i(t.changePercent)})]},`${t.symbol}-${a}`)})}),ae=({items:e,speed:r=40,formatChange:i=re,className:a})=>{let o=t.default.useRef(null),[s,c]=t.default.useState(20);return t.default.useEffect(()=>{let e=o.current;if(!e)return;let t=e.firstElementChild;if(!t)return;let n=()=>{let e=t.scrollWidth;e>0&&c(e/r)};n();let i=new ResizeObserver(n);return i.observe(t),()=>i.disconnect()},[e,r]),(0,n.jsxs)(`div`,{className:[P.ticker,a??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{ref:o,className:P.track,style:{"--ticker-duration":`${s}s`},children:[(0,n.jsx)(ie,{items:e,formatChange:i}),(0,n.jsx)(ie,{items:e,formatChange:i,ariaHidden:!0})]}),(0,n.jsx)(`div`,{className:P.fadeLeft,"aria-hidden":`true`}),(0,n.jsx)(`div`,{className:P.fadeRight,"aria-hidden":`true`})]})},F={list:`_list_ovxee_1`,row:`_row_ovxee_9`,rowLast:`_rowLast_ovxee_18`,left:`_left_ovxee_22`,iconWrap:`_iconWrap_ovxee_29`,info:`_info_ovxee_41`,name:`_name_ovxee_46`,category:`_category_ovxee_54`,amount:`_amount_ovxee_63`,amountUp:`_amountUp_ovxee_71`,amountDown:`_amountDown_ovxee_72`,empty:`_empty_ovxee_75`,emptyIcon:`_emptyIcon_ovxee_86`,emptyTitle:`_emptyTitle_ovxee_89`,emptyDesc:`_emptyDesc_ovxee_96`},oe=e=>`${e>=0?`+`:`-`}${Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`})}`,se=({transactions:t,formatAmount:i=oe,emptyTitle:a=`No transactions yet`,emptyDescription:o=`Your activity will show up here.`,className:s})=>t.length===0?(0,n.jsxs)(`div`,{className:[F.empty,s??``].filter(Boolean).join(` `),children:[(0,n.jsx)(r.Receipt,{size:24,strokeWidth:e.pt(24),className:F.emptyIcon}),(0,n.jsx)(`p`,{className:F.emptyTitle,children:a}),(0,n.jsx)(`p`,{className:F.emptyDesc,children:o})]}):(0,n.jsx)(`div`,{className:[F.list,s??``].filter(Boolean).join(` `),children:t.map((e,r)=>{let a=e.amount>=0;return(0,n.jsxs)(`div`,{className:[F.row,r===t.length-1?F.rowLast:``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:F.left,children:[(0,n.jsx)(`span`,{className:F.iconWrap,"aria-hidden":`true`,children:e.icon}),(0,n.jsxs)(`div`,{className:F.info,children:[(0,n.jsx)(`p`,{className:F.name,children:e.name}),(0,n.jsx)(`p`,{className:F.category,children:e.category})]})]}),(0,n.jsx)(`p`,{className:[F.amount,a?F.amountUp:F.amountDown].join(` `),children:i(e.amount)})]},e.id??`${e.name}-${r}`)})}),I={root:`_root_19qxp_1`,rootAttributed:`_rootAttributed_19qxp_10`,rootSimple:`_rootSimple_19qxp_18`,rail:`_rail_19qxp_27`,body:`_body_19qxp_37`,markRow:`_markRow_19qxp_46`,markRowEnd:`_markRowEnd_19qxp_51`,mark:`_mark_19qxp_46`,quoteAttributed:`_quoteAttributed_19qxp_59`,quoteSimple:`_quoteSimple_19qxp_68`,author:`_author_19qxp_77`,authorText:`_authorText_19qxp_83`,authorName:`_authorName_19qxp_91`},ce=({quote:t,author:i,className:a})=>{let o=!!i;return(0,n.jsxs)(`div`,{className:[I.root,o?I.rootAttributed:I.rootSimple,a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.tt,{orientation:`vertical`,className:I.rail}),(0,n.jsxs)(`div`,{className:I.body,children:[o&&(0,n.jsx)(`span`,{className:I.markRow,"aria-hidden":`true`,children:(0,n.jsx)(r.Quote,{size:12,strokeWidth:e.pt(12),className:I.mark,fill:`currentColor`})}),(0,n.jsx)(`p`,{className:o?I.quoteAttributed:I.quoteSimple,children:o?t:`"${t}"`}),o&&(0,n.jsx)(`span`,{className:[I.markRow,I.markRowEnd].join(` `),"aria-hidden":`true`,children:(0,n.jsx)(r.Quote,{size:12,strokeWidth:e.pt(12),className:I.mark,fill:`currentColor`})}),i&&(0,n.jsxs)(`div`,{className:I.author,children:[(0,n.jsx)(e.ut,{size:`sm`,src:i.avatarSrc,alt:i.avatarAlt??i.name}),(0,n.jsxs)(`p`,{className:I.authorText,children:[(0,n.jsx)(`span`,{className:I.authorName,children:i.name}),(0,n.jsxs)(`span`,{className:I.authorRole,children:[`, `,i.role]})]})]})]})]})},le={root:`_root_btuyr_1`,rootLeft:`_rootLeft_btuyr_13`,rootTop:`_rootTop_btuyr_19`,ruleLeft:`_ruleLeft_btuyr_24`,ruleTop:`_ruleTop_btuyr_31`,text:`_text_btuyr_39`},ue=({text:e,align:t=`left`,className:r})=>(0,n.jsxs)(`div`,{className:[le.root,t===`top`?le.rootTop:le.rootLeft,r??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:t===`top`?le.ruleTop:le.ruleLeft,"aria-hidden":`true`}),(0,n.jsx)(`p`,{className:le.text,children:e})]}),de={root:`_root_awxwk_1`,imageWrap:`_imageWrap_awxwk_10`,"root--large":`_root--large_awxwk_27`,"root--small":`_root--small_awxwk_33`,image:`_image_awxwk_10`,caption:`_caption_awxwk_47`},fe=({src:e,alt:t=``,size:r=`large`,caption:i,className:a})=>(0,n.jsxs)(`figure`,{className:[de.root,de[`root--${r}`],a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:de.imageWrap,children:(0,n.jsx)(`img`,{src:e,alt:t,className:de.image})}),i&&(0,n.jsx)(`figcaption`,{className:de.caption,children:i})]}),L={root:`_root_uc5r9_1`,rootCenter:`_rootCenter_uc5r9_10`,rootLeft:`_rootLeft_uc5r9_15`,title:`_title_uc5r9_20`,description:`_description_uc5r9_30`,ctaRow:`_ctaRow_uc5r9_39`,avatarBlock:`_avatarBlock_uc5r9_45`,avatarsCaption:`_avatarsCaption_uc5r9_57`},pe=({title:t,description:i,badgeLabel:a,primaryCta:o,secondaryCta:s,avatars:c,avatarsCaption:l,align:u=`center`,className:d})=>{let f=!!(o||s),p=!!(c&&c.length>0);return(0,n.jsxs)(`div`,{className:[L.root,u===`left`?L.rootLeft:L.rootCenter,d??``].filter(Boolean).join(` `),children:[a&&(0,n.jsx)(e.X,{variant:`accent`,emphasis:`subtle`,children:a}),(0,n.jsx)(`p`,{className:L.title,children:t}),i&&(0,n.jsx)(`p`,{className:L.description,children:i}),f&&(0,n.jsxs)(`div`,{className:L.ctaRow,children:[o&&(0,n.jsx)(e.at,{variant:`primary`,onClick:o.onClick,children:o.label}),s&&(0,n.jsx)(e.at,{variant:`secondary`,leftIcon:(0,n.jsx)(r.Play,{size:16,strokeWidth:e.pt(16),fill:`currentColor`}),onClick:s.onClick,children:s.label})]}),p&&(0,n.jsxs)(`div`,{className:L.avatarBlock,children:[(0,n.jsx)(e.N,{size:`md`,avatars:c}),l&&(0,n.jsx)(`p`,{className:L.avatarsCaption,children:l})]})]})},me={root:`_root_5kajg_1`,item:`_item_5kajg_12`,marker:`_marker_5kajg_18`,dot:`_dot_5kajg_26`,label:`_label_5kajg_34`},he=({items:t,style:i=`check`,className:a})=>(0,n.jsx)(`ul`,{className:[me.root,a??``].filter(Boolean).join(` `),children:t.map((t,a)=>(0,n.jsxs)(`li`,{className:me.item,children:[(0,n.jsxs)(`span`,{className:me.marker,"aria-hidden":`true`,children:[i===`check`&&(0,n.jsx)(r.Check,{size:18,strokeWidth:e.pt(18)}),i===`arrow`&&(0,n.jsx)(r.ArrowRight,{size:16,strokeWidth:e.pt(16)}),i===`bullet`&&(0,n.jsx)(`span`,{className:me.dot})]}),(0,n.jsx)(`span`,{className:me.label,children:t})]},a))}),ge={marquee:`_marquee_1pc4i_1`,track:`_track_1pc4i_13`,row:`_row_1pc4i_19`,item:`_item_1pc4i_25`,fadeLeft:`_fadeLeft_1pc4i_31`,fadeRight:`_fadeRight_1pc4i_32`},_e=({items:e,gap:t,ariaHidden:r})=>(0,n.jsx)(`div`,{className:ge.row,style:{gap:t,paddingRight:t},"aria-hidden":r,children:e.map((e,t)=>(0,n.jsx)(`div`,{className:ge.item,children:e},t))}),ve=({items:e,speed:r=40,gap:i,className:a})=>{let o=t.default.useRef(null),s=t.default.useRef(0),c=t.default.useRef(0),l=t.default.useRef(!1);return t.default.useEffect(()=>{let e=o.current?.firstElementChild;if(!e)return;let t=()=>{s.current=e.scrollWidth};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e,i]),t.default.useEffect(()=>{let e=o.current;if(!e||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let t,n=performance.now(),i=()=>{let a=performance.now(),o=(a-n)/1e3;n=a;let u=l.current?r*.2:r,d=s.current;d>0&&(c.current=(c.current+u*o)%d,e.style.transform=`translateX(-${c.current}px)`),t=setTimeout(i,16)};return t=setTimeout(i,16),()=>clearTimeout(t)},[r]),(0,n.jsxs)(`div`,{className:[ge.marquee,a??``].filter(Boolean).join(` `),onMouseEnter:()=>{l.current=!0},onMouseLeave:()=>{l.current=!1},children:[(0,n.jsxs)(`div`,{ref:o,className:ge.track,children:[(0,n.jsx)(_e,{items:e,gap:i}),(0,n.jsx)(_e,{items:e,gap:i,ariaHidden:!0})]}),(0,n.jsx)(`div`,{className:ge.fadeLeft,"aria-hidden":`true`}),(0,n.jsx)(`div`,{className:ge.fadeRight,"aria-hidden":`true`})]})},ye={root:`_root_17a1b_1`,numRow:`_numRow_17a1b_9`,value:`_value_17a1b_15`,trend:`_trend_17a1b_25`,trendUp:`_trendUp_17a1b_35`,trendDown:`_trendDown_17a1b_39`,label:`_label_17a1b_43`},be=({value:t,label:i,trend:a,className:o})=>{let s=a!==void 0,c=s&&a>=0,l=c?r.TrendingUp:r.TrendingDown;return(0,n.jsxs)(`div`,{className:[ye.root,o??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:ye.numRow,children:[(0,n.jsx)(`p`,{className:ye.value,children:t}),s&&(0,n.jsxs)(`span`,{className:[ye.trend,c?ye.trendUp:ye.trendDown].join(` `),children:[(0,n.jsx)(l,{size:24,strokeWidth:e.pt(24)}),Math.abs(a),`%`]})]}),(0,n.jsx)(`p`,{className:ye.label,children:i})]})},R={root:`_root_scbx4_1`,header:`_header_scbx4_13`,label:`_label_scbx4_21`,toggle:`_toggle_scbx4_34`,fullWidth:`_fullWidth_scbx4_48`,collapse:`_collapse_scbx4_67`,collapseOpen:`_collapseOpen_scbx4_74`,collapseInner:`_collapseInner_scbx4_78`,navLinks:`_navLinks_scbx4_91`,navLink:`_navLink_scbx4_91`},xe=({label:i,links:a,ctaLabel:o=`Get started`,onCtaClick:s,open:c,defaultOpen:l=!1,onOpenChange:u,className:d})=>{let f=c!==void 0,[p,m]=t.default.useState(l),h=f?c:p,g=()=>{let e=!h;f||m(e),u?.(e)},_=t.default.useRef(null),[v,y]=t.default.useState(0);return t.default.useEffect(()=>{let e=_.current;if(!e)return;let t=()=>y(e.scrollHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[a,o]),(0,n.jsxs)(`div`,{className:[R.root,d??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:R.header,children:[(0,n.jsx)(`p`,{className:R.label,children:i}),(0,n.jsx)(`button`,{type:`button`,className:R.toggle,onClick:g,"aria-expanded":h,"aria-label":h?`Close menu`:`Open menu`,children:h?(0,n.jsx)(r.X,{size:16,strokeWidth:e.pt(16)}):(0,n.jsx)(r.Menu,{size:16,strokeWidth:e.pt(16)})})]}),(0,n.jsx)(`div`,{className:[R.collapse,h?R.collapseOpen:``].filter(Boolean).join(` `),style:{maxHeight:h?`${v}px`:`0px`},"aria-hidden":!h,children:(0,n.jsxs)(`div`,{ref:_,className:R.collapseInner,children:[(0,n.jsx)(`nav`,{className:R.navLinks,"aria-label":i,children:a.map(e=>(0,n.jsx)(`a`,{href:e.href,onClick:e.onClick,className:R.navLink,tabIndex:h?void 0:-1,children:e.label},e.label))}),(0,n.jsx)(e.tt,{className:R.fullWidth}),(0,n.jsx)(e.at,{variant:`primary`,className:R.fullWidth,onClick:s,tabIndex:h?void 0:-1,children:o})]})})]})},Se={root:`_root_lrpdp_1`,"root--sm":`_root--sm_lrpdp_14`,"root--md":`_root--md_lrpdp_18`,"root--lg":`_root--lg_lrpdp_22`,defaultMark:`_defaultMark_lrpdp_27`},Ce={sm:14,md:16,lg:18},we=({size:r=`md`,logo:i,label:a,className:o})=>{let s=Ce[r],c=t.default.isValidElement(i)?t.default.cloneElement(i,{size:s,strokeWidth:e.pt(s)}):i??(0,n.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%3e%3cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H20C24.4183%200%2028%203.58172%2028%208V20C28%2024.4183%2024.4183%2028%2020%2028H8C3.58172%2028%200%2024.4183%200%2020V8Z'%20fill='%23FF4700'/%3e%3cpath%20d='M6.63704%2015.9944L20.6362%2014.491'%20stroke='%23FAFAF9'%20stroke-width='2.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14.208%2022.884C12.848%2022.884%2011.664%2022.636%2010.656%2022.14C9.664%2021.644%208.88%2020.956%208.304%2020.076C7.728%2019.196%207.392%2018.172%207.296%2017.004L9.96%2016.836C10.072%2017.636%2010.304%2018.316%2010.656%2018.876C11.008%2019.42%2011.48%2019.836%2012.072%2020.124C12.68%2020.396%2013.408%2020.532%2014.256%2020.532C14.992%2020.532%2015.616%2020.444%2016.128%2020.268C16.656%2020.076%2017.056%2019.796%2017.328%2019.428C17.6%2019.06%2017.736%2018.612%2017.736%2018.084C17.736%2017.604%2017.616%2017.18%2017.376%2016.812C17.152%2016.428%2016.712%2016.084%2016.056%2015.78C15.416%2015.46%2014.472%2015.148%2013.224%2014.844C11.864%2014.508%2010.776%2014.14%209.96%2013.74C9.144%2013.34%208.552%2012.844%208.184%2012.252C7.832%2011.644%207.656%2010.9%207.656%2010.02C7.656%209.044%207.888%208.188%208.352%207.452C8.832%206.7%209.512%206.116%2010.392%205.7C11.272%205.284%2012.328%205.076%2013.56%205.076C14.856%205.076%2015.96%205.316%2016.872%205.796C17.8%206.276%2018.528%206.932%2019.056%207.764C19.6%208.596%2019.936%209.548%2020.064%2010.62L17.4%2010.764C17.32%2010.108%2017.12%209.532%2016.8%209.036C16.48%208.524%2016.048%208.132%2015.504%207.86C14.96%207.572%2014.296%207.428%2013.512%207.428C12.52%207.428%2011.736%207.66%2011.16%208.124C10.6%208.572%2010.32%209.172%2010.32%209.924C10.32%2010.404%2010.432%2010.812%2010.656%2011.148C10.896%2011.468%2011.312%2011.748%2011.904%2011.988C12.512%2012.228%2013.368%2012.484%2014.472%2012.756C15.944%2013.092%2017.112%2013.508%2017.976%2014.004C18.856%2014.484%2019.48%2015.052%2019.848%2015.708C20.216%2016.364%2020.4%2017.108%2020.4%2017.94C20.4%2018.948%2020.136%2019.828%2019.608%2020.58C19.096%2021.316%2018.376%2021.884%2017.448%2022.284C16.52%2022.684%2015.44%2022.884%2014.208%2022.884Z'%20fill='%23FAFAF9'/%3e%3c/svg%3e`,alt:``,width:s,height:s,className:Se.defaultMark});return(0,n.jsx)(`span`,{className:[Se.root,Se[`root--${r}`],o??``].filter(Boolean).join(` `),role:`img`,"aria-label":a??`Logo placeholder`,children:c})},z={root:`_root_ibchq_1`,rootCompact:`_rootCompact_ibchq_7`,rootDetailed:`_rootDetailed_ibchq_14`,infoCompact:`_infoCompact_ibchq_21`,infoDetailed:`_infoDetailed_ibchq_27`,name:`_name_ibchq_35`,role:`_role_ibchq_44`,bio:`_bio_ibchq_53`,social:`_social_ibchq_63`,socialBtn:`_socialBtn_ibchq_71`},Te=({name:t,role:r,avatarSrc:i,avatarAlt:a,bio:o,socialLinks:s=[],className:c})=>{let l=!!o||s.length>0;return(0,n.jsxs)(`div`,{className:[z.root,l?z.rootDetailed:z.rootCompact,c??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.ut,{size:`xl`,src:i,alt:a??t}),(0,n.jsxs)(`div`,{className:l?z.infoDetailed:z.infoCompact,children:[(0,n.jsx)(`p`,{className:z.name,children:t}),(0,n.jsx)(`p`,{className:z.role,children:r})]}),l&&o&&(0,n.jsx)(`p`,{className:z.bio,children:o}),l&&s.length>0&&(0,n.jsx)(`div`,{className:z.social,children:s.map((e,t)=>(0,n.jsx)(`a`,{href:e.href,onClick:e.onClick,className:z.socialBtn,"aria-label":e.label,children:e.icon},e.label??t))})]})},Ee={heading:`_heading_96cdx_1`,h2:`_h2_96cdx_8`,h3:`_h3_96cdx_14`},De=({children:e,level:t=`h2`,className:r})=>(0,n.jsx)(t,{className:[Ee.heading,Ee[t],r??``].filter(Boolean).join(` `),children:e}),Oe={paragraph:`_paragraph_8pqdi_1`},ke=({children:e,className:t})=>(0,n.jsx)(`p`,{className:[Oe.paragraph,t??``].filter(Boolean).join(` `),children:e}),Ae={rootBordered:`_rootBordered_5cgsj_1`,rail:`_rail_5cgsj_12`,contentHorizontal:`_contentHorizontal_5cgsj_18`,contentVertical:`_contentVertical_5cgsj_25`,textHorizontal:`_textHorizontal_5cgsj_33`,textVertical:`_textVertical_5cgsj_41`,title:`_title_5cgsj_49`,description:`_description_5cgsj_57`},je=({icon:r,title:i,description:a,layout:o=`horizontal`,leftBorder:s=!1,className:c})=>{let l=o===`vertical`,u=(0,n.jsxs)(`div`,{className:l?Ae.contentVertical:Ae.contentHorizontal,children:[(0,n.jsx)(e.P,{icon:r,size:`sm`,variant:`light`}),(0,n.jsxs)(`div`,{className:l?Ae.textVertical:Ae.textHorizontal,children:[(0,n.jsx)(`p`,{className:Ae.title,children:i}),(0,n.jsx)(`p`,{className:Ae.description,children:a})]})]});return s?(0,n.jsxs)(`div`,{className:[Ae.rootBordered,c??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.tt,{orientation:`vertical`,className:Ae.rail}),u]}):t.default.cloneElement(u,{className:[u.props.className,c??``].filter(Boolean).join(` `)})},Me={chart:`_chart_qqaox_2`},Ne={sm:180,md:240,lg:320,xl:420},Pe=({data:e,variant:r=`default`,seriesLabels:a=[`Value`,`Value 2`],size:o=`md`,height:s,className:c})=>{let l=t.default.useRef(null),u=S(l),d=u(`--color-chart-5`)??`#dca84f`,f=u(`--color-chart-2`)??`#5b92dd`,p=u(`--color-border-subtle`)??`#e7e5e1`,m=u(`--color-fg-muted`)??`#78716a`,h=e.some(e=>e.value2!==void 0),g=r===`step`?`step`:r===`linear`?`linear`:`monotone`,_=r===`stacked`?`stack`:void 0;return(0,n.jsx)(`div`,{ref:l,className:[Me.chart,c??``].filter(Boolean).join(` `),children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:s??Ne[o],children:(0,n.jsxs)(i.AreaChart,{data:e,margin:{top:8,right:8,bottom:8,left:0},children:[(0,n.jsxs)(`defs`,{children:[(0,n.jsxs)(`linearGradient`,{id:`sakani-area-1`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,n.jsx)(`stop`,{offset:`5%`,stopColor:d,stopOpacity:.35}),(0,n.jsx)(`stop`,{offset:`95%`,stopColor:d,stopOpacity:.02})]}),(0,n.jsxs)(`linearGradient`,{id:`sakani-area-2`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,n.jsx)(`stop`,{offset:`5%`,stopColor:f,stopOpacity:.35}),(0,n.jsx)(`stop`,{offset:`95%`,stopColor:f,stopOpacity:.02})]})]}),(0,n.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:p,vertical:!1}),(0,n.jsx)(i.XAxis,{dataKey:`label`,stroke:m,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,n.jsx)(i.Tooltip,{cursor:{stroke:u(`--color-border-default`)??`#dbdad7`,strokeWidth:1},content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}}),h&&(0,n.jsx)(i.Area,{type:g,dataKey:`value2`,name:a[1]??`Value 2`,stackId:_,stroke:f,strokeWidth:2,fill:`url(#sakani-area-2)`,dot:!1,activeDot:{r:4,fill:f,stroke:u(`--color-bg-canvas`),strokeWidth:1.5}}),(0,n.jsx)(i.Area,{type:g,dataKey:`value`,name:a[0]??`Value`,stackId:_,stroke:d,strokeWidth:2,fill:`url(#sakani-area-1)`,dot:!1,activeDot:{r:4,fill:d,stroke:u(`--color-bg-canvas`),strokeWidth:1.5}})]})})})},B={col:`_col_1v24u_2`,col__header:`_col__header_1v24u_11`,col__dot:`_col__dot_1v24u_12`,col__title:`_col__title_1v24u_13`,col__count:`_col__count_1v24u_14`,col__spacer:`_col__spacer_1v24u_15`,col__action:`_col__action_1v24u_16`,col__body:`_col__body_1v24u_24`,col__drop:`_col__drop_1v24u_25`,col__add:`_col__add_1v24u_31`},Fe=({state:t=`default`,title:i,count:a,dotColor:o=`var(--color-chart-1)`,children:s,onAdd:c,onMenu:l,className:u})=>(0,n.jsxs)(`div`,{className:[B.col,u??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:B.col__header,children:[(0,n.jsx)(`span`,{className:B.col__dot,style:{background:o},"aria-hidden":`true`}),(0,n.jsx)(`span`,{className:B.col__title,children:i}),a!=null&&(0,n.jsx)(`span`,{className:B.col__count,children:a}),(0,n.jsx)(`span`,{className:B.col__spacer}),(0,n.jsx)(`button`,{type:`button`,className:B.col__action,onClick:c,"aria-label":`Add task`,children:(0,n.jsx)(r.Plus,{size:16,strokeWidth:e.pt(16)})}),(0,n.jsx)(`button`,{type:`button`,className:B.col__action,onClick:l,"aria-label":`Column options`,children:(0,n.jsx)(r.MoreHorizontal,{size:16,strokeWidth:e.pt(16)})})]}),(0,n.jsx)(`div`,{className:B.col__body,children:t===`empty`?(0,n.jsx)(`div`,{className:B.col__drop,children:`Drop tasks here`}):s}),(0,n.jsxs)(`button`,{type:`button`,className:B.col__add,onClick:c,children:[(0,n.jsx)(r.Plus,{size:16,strokeWidth:e.pt(16),"aria-hidden":`true`}),`Add task`]})]}),V={calendar:`_calendar_1ljjb_2`,header:`_header_1ljjb_14`,header__label:`_header__label_1ljjb_15`,navBtn:`_navBtn_1ljjb_16`,weekdays:`_weekdays_1ljjb_27`,weekday:`_weekday_1ljjb_27`,grid:`_grid_1ljjb_34`,day:`_day_1ljjb_35`,"day--default":`_day--default_1ljjb_45`,"day--hover":`_day--hover_1ljjb_46`,"day--selected":`_day--selected_1ljjb_47`,"day--today":`_day--today_1ljjb_48`,"day--in-range":`_day--in-range_1ljjb_49`,"day--outside":`_day--outside_1ljjb_50`,"day--disabled":`_day--disabled_1ljjb_51`,dropdowns:`_dropdowns_1ljjb_54`,dropdown:`_dropdown_1ljjb_54`},Ie=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],Le=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Re=(e,t)=>!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),ze=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Be=({mode:i=`single`,value:a,onChange:o,range:s,onRangeChange:c,headerType:l=`arrows`,defaultMonth:u,minDate:d,maxDate:f,className:p})=>{let[m,h]=t.default.useState(()=>{let e=u??a??s?.from??new Date;return new Date(e.getFullYear(),e.getMonth(),1)}),[g,_]=t.default.useState({}),v=e.E(),y=s===void 0?g:s,b=new Date,x=m.getFullYear(),S=m.getMonth(),C=new Date(x,S,1).getDay(),w=new Date(x,S,1-C),T=Array.from({length:42},(e,t)=>new Date(w.getFullYear(),w.getMonth(),w.getDate()+t)),E=e=>d&&e<ze(d)||f&&e>f,D=e=>{s===void 0&&_(e),c?.(e)},O=e=>{if(i===`single`){o?.(e);return}let{from:t,to:n}=y;D(!t||t&&n?{from:e,to:void 0}:e<t?{from:e,to:t}:{from:t,to:e})},k=e=>{if(E(e))return`disabled`;if(i===`single`){if(Re(e,a))return`selected`}else{let{from:t,to:n}=y;if(Re(e,t)||Re(e,n))return`selected`;if(t&&n&&e>t&&e<n)return`in-range`}return e.getMonth()===S?Re(e,b)?`today`:`default`:`outside`},A=d?d.getFullYear():x-10,j=f?f.getFullYear():x+10,ee=Array.from({length:j-A+1},(e,t)=>A+t);return(0,n.jsxs)(`div`,{className:[V.calendar,p??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:V.header,children:[(0,n.jsx)(`button`,{type:`button`,className:V.navBtn,onClick:()=>h(new Date(x,S-1,1)),"aria-label":`Previous month`,children:(0,n.jsx)(r.ChevronLeft,{size:16,strokeWidth:e.pt(16)})}),l===`dropdowns`?(0,n.jsxs)(`span`,{className:V.dropdowns,children:[(0,n.jsx)(`select`,{className:V.dropdown,value:S,onChange:e=>h(new Date(x,Number(e.target.value),1)),"aria-label":`Month`,children:Le.map((e,t)=>(0,n.jsx)(`option`,{value:t,children:e},e))}),(0,n.jsx)(`select`,{className:V.dropdown,value:x,onChange:e=>h(new Date(Number(e.target.value),S,1)),"aria-label":`Year`,children:ee.map(e=>(0,n.jsx)(`option`,{value:e,children:e},e))})]}):(0,n.jsxs)(`span`,{className:V.header__label,children:[Le[S],` `,x]}),(0,n.jsx)(`button`,{type:`button`,className:V.navBtn,onClick:()=>h(new Date(x,S+1,1)),"aria-label":`Next month`,children:(0,n.jsx)(r.ChevronRight,{size:16,strokeWidth:e.pt(16)})})]}),(0,n.jsx)(`div`,{className:V.weekdays,children:Ie.map(e=>(0,n.jsx)(`span`,{className:V.weekday,children:e},e))}),(0,n.jsxs)(`div`,{ref:v.ref,...v.groupProps,className:V.grid,children:[v.highlight,T.map((e,t)=>{let r=k(e);return(0,n.jsx)(`button`,{type:`button`,"data-hover-item":``,className:[V.day,V[`day--${r}`]].filter(Boolean).join(` `),disabled:r===`disabled`,"aria-current":r===`today`?`date`:void 0,"aria-selected":r===`selected`,"aria-label":e.toLocaleDateString(void 0,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`}),onClick:()=>O(e),children:e.getDate()},t)})]})]})},H={card:`_card_1567t_3`,"card--interactive":`_card--interactive_1567t_19`,card__header:`_card__header_1567t_27`,card__title:`_card__title_1567t_31`,card__description:`_card__description_1567t_40`,card__body:`_card__body_1567t_50`,card__actions:`_card__actions_1567t_54`,"card__actions--split":`_card__actions--split_1567t_63`,card__actionsGroup:`_card__actionsGroup_1567t_64`},Ve=({title:e,description:t,actions:r,leadingAction:i,interactive:a,children:o,className:s})=>(0,n.jsxs)(`div`,{className:[H.card,a?H[`card--interactive`]:``,s??``].filter(Boolean).join(` `),children:[(e||t)&&(0,n.jsxs)(`div`,{className:H.card__header,children:[e&&(0,n.jsx)(`h3`,{className:H.card__title,children:e}),t&&(0,n.jsx)(`p`,{className:H.card__description,children:t})]}),o&&(0,n.jsx)(`div`,{className:H.card__body,children:o}),(r||i)&&(i?(0,n.jsxs)(`div`,{className:[H.card__actions,H[`card__actions--split`]].join(` `),children:[i,(0,n.jsx)(`div`,{className:H.card__actionsGroup,children:r})]}):(0,n.jsx)(`div`,{className:H.card__actions,children:r}))]}),U={field:`_field_12ugs_7`,field__label:`_field__label_12ugs_8`,field__description:`_field__description_12ugs_9`,field__error:`_field__error_12ugs_10`,control:`_control_12ugs_13`,"control--sm":`_control--sm_12ugs_25`,"control--md":`_control--md_12ugs_26`,"control--lg":`_control--lg_12ugs_27`,"control--open":`_control--open_12ugs_30`,"control--error":`_control--error_12ugs_41`,"control--disabled":`_control--disabled_12ugs_46`,control__value:`_control__value_12ugs_52`,"control__value--placeholder":`_control__value--placeholder_12ugs_62`,control__input:`_control__input_12ugs_63`,control__chevron:`_control__chevron_12ugs_83`,"control__chevron--open":`_control__chevron--open_12ugs_84`,chips:`_chips_12ugs_90`,chip:`_chip_12ugs_90`,"chip--leaving":`_chip--leaving_12ugs_102`,"sakani-combobox-chip-out":`_sakani-combobox-chip-out_12ugs_1`,chip__remove:`_chip__remove_12ugs_110`,panel:`_panel_12ugs_121`,"panel--entering":`_panel--entering_12ugs_145`,"sakani-combobox-panel-in":`_sakani-combobox-panel-in_12ugs_1`,"panel--exiting":`_panel--exiting_12ugs_146`,"sakani-combobox-panel-out":`_sakani-combobox-panel-out_12ugs_1`,panel__empty:`_panel__empty_12ugs_156`,option:`_option_12ugs_164`,"option--selected":`_option--selected_12ugs_189`,"option--disabled":`_option--disabled_12ugs_190`,optionHighlight:`_optionHighlight_12ugs_165`,"optionHighlight--animated":`_optionHighlight--animated_12ugs_221`,option__box:`_option__box_12ugs_228`,"option__box--checked":`_option__box--checked_12ugs_245`,option__icon:`_option__icon_12ugs_250`,option__label:`_option__label_12ugs_251`,option__check:`_option__check_12ugs_252`,panel__loading:`_panel__loading_12ugs_255`,panel__spinner:`_panel__spinner_12ugs_259`,"sakani-cb-spin":`_sakani-cb-spin_12ugs_1`},He=({options:r,mode:i=`single`,size:a=`md`,label:o,description:s,error:c,placeholder:l=`Select...`,disabled:u,loading:d,value:f,onChange:p,className:m})=>{let h=t.default.useId(),[g,_]=t.default.useState(!1),[v,y]=t.default.useState(!1),[b,x]=t.default.useState(0),S=t.default.useRef(null),C=r;t.default.useEffect(()=>{g&&y(!0)},[g]);let w=t.default.useRef({}),T=t.default.useRef(null),[E,D]=t.default.useState(null),[O,k]=t.default.useState(!1);t.default.useLayoutEffect(()=>{let e=w.current[b];if(!e){D(null);return}D({top:e.offsetTop,height:e.offsetHeight})},[b,C.length]),t.default.useLayoutEffect(()=>{if(!v){k(!1);return}k(!1);let e=window.requestAnimationFrame(()=>k(!0));return()=>window.cancelAnimationFrame(e)},[v]),t.default.useEffect(()=>{if(!T.current)return;let e=new ResizeObserver(()=>{let e=w.current[b];e&&D({top:e.offsetTop,height:e.offsetHeight})});return e.observe(T.current),()=>e.disconnect()},[v]);let[A,j]=t.default.useState(i===`multi`?[]:``),ee=f===void 0?A:f,M=Array.isArray(ee)?ee:ee?[ee]:[],[N,te]=t.default.useState(()=>M.map(e=>({value:e,leaving:!1}))),ne=M.join(`\0`);t.default.useLayoutEffect(()=>{te(e=>{let t=e.map(e=>({value:e.value,leaving:!M.includes(e.value)}));for(let e of M)t.some(t=>t.value===e)||t.push({value:e,leaving:!1});return t})},[ne]);let P=e=>te(t=>t.filter(t=>!(t.value===e&&t.leaving))),re=!!c;t.default.useEffect(()=>{let e=e=>{S.current&&!S.current.contains(e.target)&&_(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let ie=e=>{f===void 0&&j(e),p?.(e)},ae=e=>{if(!e.disabled)if(i===`multi`){let t=new Set(M);t.has(e.value)?t.delete(e.value):t.add(e.value),ie([...t])}else ie(e.value),_(!1)},F=e=>r.find(t=>t.value===e)?.label??e,oe=M.length?F(M[0]):``,se=e=>{u||(e.key===`ArrowDown`?(e.preventDefault(),_(!0),x(e=>Math.min(e+1,C.length-1))):e.key===`ArrowUp`?(e.preventDefault(),x(e=>Math.max(e-1,0))):e.key===`Enter`?(e.preventDefault(),g&&C[b]?ae(C[b]):_(!0)):e.key===`Escape`&&_(!1))},I=u?`disabled`:re?`error`:g?`open`:`default`;return(0,n.jsxs)(`div`,{className:[U.field,m??``].filter(Boolean).join(` `),ref:S,children:[o&&(0,n.jsx)(`label`,{htmlFor:`${h}-trigger`,className:U.field__label,children:o}),(0,n.jsxs)(`div`,{id:`${h}-trigger`,role:`combobox`,tabIndex:u?-1:0,"aria-haspopup":`listbox`,"aria-expanded":g,"aria-controls":`${h}-panel`,"aria-invalid":re||void 0,"aria-disabled":u||void 0,"aria-activedescendant":g&&C[b]?`${h}-opt-${b}`:void 0,className:[U.control,U[`control--${a}`],U[`control--${I}`]].join(` `),onClick:()=>!u&&_(e=>!e),onKeyDown:se,children:[i===`multi`&&N.length>0&&(0,n.jsx)(`div`,{className:U.chips,children:N.map(({value:e,leaving:t})=>(0,n.jsxs)(`span`,{className:[U.chip,t?U[`chip--leaving`]:``].filter(Boolean).join(` `),"aria-hidden":t||void 0,onAnimationEnd:t?()=>P(e):void 0,children:[F(e),(0,n.jsx)(`button`,{type:`button`,className:U.chip__remove,tabIndex:t?-1:void 0,onClick:t=>{t.stopPropagation(),ae(r.find(t=>t.value===e))},"aria-label":`Remove ${F(e)}`,children:`×`})]},e))}),!(i===`multi`&&N.length>0)&&(0,n.jsx)(`span`,{className:[U.control__value,i===`single`&&oe?``:U[`control__value--placeholder`]].filter(Boolean).join(` `),children:i===`single`&&oe?oe:l}),(0,n.jsx)(`span`,{className:[U.control__chevron,g?U[`control__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.pt(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),v&&!u&&(0,n.jsx)(`div`,{ref:T,className:[U.panel,g?U[`panel--entering`]:U[`panel--exiting`]].filter(Boolean).join(` `),id:`${h}-panel`,role:`listbox`,"aria-multiselectable":i===`multi`||void 0,"aria-busy":d||void 0,onAnimationEnd:()=>{g||y(!1)},children:d?(0,n.jsxs)(`div`,{className:U.panel__loading,children:[(0,n.jsx)(`span`,{className:U.panel__spinner,"aria-hidden":`true`}),`Loading…`]}):C.length===0?(0,n.jsx)(`div`,{className:U.panel__empty,children:`No options available`}):(0,n.jsxs)(n.Fragment,{children:[E&&(0,n.jsx)(`span`,{"aria-hidden":`true`,className:[U.optionHighlight,O?U[`optionHighlight--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateY(${E.top}px)`,height:E.height}}),C.map((t,r)=>{let a=M.includes(t.value);return(0,n.jsxs)(`div`,{ref:e=>{w.current[r]=e},id:`${h}-opt-${r}`,role:`option`,"aria-selected":a,className:[U.option,a&&i===`single`?U[`option--selected`]:``,t.disabled?U[`option--disabled`]:``].filter(Boolean).join(` `),onMouseEnter:()=>{t.disabled||x(r)},onClick:()=>ae(t),children:[i===`multi`&&(0,n.jsx)(`span`,{className:[U.option__box,a?U[`option__box--checked`]:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.pt(12),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),t.icon&&(0,n.jsx)(`span`,{className:U.option__icon,"aria-hidden":`true`,children:t.icon}),(0,n.jsx)(`span`,{className:U.option__label,children:t.label}),a&&i===`single`&&(0,n.jsx)(`span`,{className:U.option__check,"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})})]},t.value)})]})}),(s||c)&&(0,n.jsx)(`span`,{className:re?U.field__error:U.field__description,children:c||s})]})},Ue={chart:`_chart_aiboa_2`,center:`_center_aiboa_26`,center__value:`_center__value_aiboa_35`,center__caption:`_center__caption_aiboa_36`},We={sm:{h:180,inner:50,outer:72},md:{h:220,inner:62,outer:90},lg:{h:280,inner:80,outer:116},xl:{h:340,inner:98,outer:142}},Ge=({data:e,size:r=`md`,centerValue:a,centerCaption:o,height:s,className:c})=>{let[l,u]=t.default.useState(null),[d,f]=t.default.useState(null),p=e=>{let t=e.currentTarget.getBoundingClientRect();f({x:e.clientX-t.left,y:e.clientY-t.top})},m=t.default.useRef(null),h=S(m),g=[1,2,3,4,5].map(e=>h(`--color-chart-${e}`)??C[e-1]),_={...We[r],h:s??We[r].h},v=(_.outer-_.inner)/2-7;return(0,n.jsxs)(`div`,{ref:m,className:[Ue.chart,c??``].filter(Boolean).join(` `),style:{height:_.h},onMouseMove:p,children:[(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.jsx)(i.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:_.inner,outerRadius:_.outer,cornerRadius:v,paddingAngle:2,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>u(t),onMouseLeave:()=>{u(null),f(null)},children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:g[t%g.length],fillOpacity:l!==null&&t!==l?.45:1},t))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50},position:d??void 0})]})}),(a||o)&&(0,n.jsxs)(`div`,{className:Ue.center,children:[a&&(0,n.jsx)(`span`,{className:Ue.center__value,children:a}),o&&(0,n.jsx)(`span`,{className:Ue.center__caption,children:o})]})]})},W={wrap:`_wrap_1b5p5_2`,dropzone:`_dropzone_1b5p5_4`,"dropzone--dragging":`_dropzone--dragging_1b5p5_21`,dropzone__icon:`_dropzone__icon_1b5p5_23`,dropzone__label:`_dropzone__label_1b5p5_28`,dropzone__link:`_dropzone__link_1b5p5_29`,dropzone__hint:`_dropzone__hint_1b5p5_30`,input:`_input_1b5p5_32`,files:`_files_1b5p5_35`,file:`_file_1b5p5_35`,file__icon:`_file__icon_1b5p5_45`,file__name:`_file__name_1b5p5_46`,file__remove:`_file__remove_1b5p5_47`},Ke=({accept:i,multiple:a,hint:o=`SVG, PNG, JPG or PDF (max. 2MB)`,onFilesChange:s,className:c})=>{let l=t.default.useRef(null),[u,d]=t.default.useState(!1),[f,p]=t.default.useState([]),m=e=>{p(e),s?.(e)},h=e=>{if(!e)return;let t=Array.from(e);m(a?[...f,...t]:t.slice(0,1))},g=e=>m(f.filter((t,n)=>n!==e));return(0,n.jsxs)(`div`,{className:[W.wrap,c??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:[W.dropzone,u?W[`dropzone--dragging`]:``].filter(Boolean).join(` `),onClick:()=>l.current?.click(),onDragOver:e=>{e.preventDefault(),d(!0)},onDragLeave:()=>d(!1),onDrop:e=>{e.preventDefault(),d(!1),h(e.dataTransfer.files)},role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&l.current?.click()},children:[(0,n.jsx)(`span`,{className:W.dropzone__icon,"aria-hidden":`true`,children:(0,n.jsx)(r.UploadCloud,{size:22,strokeWidth:e.pt(22)})}),(0,n.jsxs)(`span`,{className:W.dropzone__label,children:[(0,n.jsx)(`span`,{className:W.dropzone__link,children:`Click to upload`}),` or drag and drop`]}),(0,n.jsx)(`span`,{className:W.dropzone__hint,children:o}),(0,n.jsx)(`input`,{ref:l,type:`file`,accept:i,multiple:a,className:W.input,onChange:e=>h(e.target.files)})]}),f.length>0&&(0,n.jsx)(`ul`,{className:W.files,children:f.map((t,i)=>(0,n.jsxs)(`li`,{className:W.file,children:[(0,n.jsx)(`span`,{className:W.file__icon,"aria-hidden":`true`,children:(0,n.jsx)(r.File,{size:16,strokeWidth:e.pt(16)})}),(0,n.jsx)(`span`,{className:W.file__name,children:t.name}),(0,n.jsx)(`button`,{type:`button`,className:W.file__remove,onClick:()=>g(i),"aria-label":`Remove ${t.name}`,children:(0,n.jsx)(r.X,{size:14,strokeWidth:e.pt(14)})})]},i))})]})},G={chart:`_chart_1m9hd_1`,svg:`_svg_1m9hd_7`,segment:`_segment_1m9hd_12`,pctLabel:`_pctLabel_1m9hd_19`,labels:`_labels_1m9hd_27`,labelItem:`_labelItem_1m9hd_31`,tooltip:`_tooltip_1m9hd_41`,tooltip__title:`_tooltip__title_1m9hd_54`,tooltip__row:`_tooltip__row_1m9hd_60`,tooltip__dot:`_tooltip__dot_1m9hd_68`,tooltip__label:`_tooltip__label_1m9hd_74`,tooltip__value:`_tooltip__value_1m9hd_75`},qe={sm:180,md:240,lg:320,xl:420},Je=560,Ye=.3,Xe=.55,Ze=({data:e,size:r=`md`,className:i})=>{let[a,o]=t.default.useState(null),s=t.default.useRef(null),c=S(s),l=c(`--color-chart-1`)??`#ff4700`,u=c(`--color-bg-canvas`)??`#fafaf9`,d=e[0]?.value||1,f=qe[r],p=f*.66,m=p/2+8,h=Je/e.length,g=e[0]?.value||1,_=e=>e/g*p,v=e.map(e=>_(e.value));v.push(_(e[e.length-1]?.value??0)*Xe);let y=t=>e.length<=1?1:Ye+t/(e.length-1)*(1-Ye),b=a===null?null:e[a],x=a===null?0:m-v[a]/2,C=a===null?0:a*h+h/2;return(0,n.jsxs)(`div`,{ref:s,className:[G.chart,i??``].filter(Boolean).join(` `),style:{height:f},children:[(0,n.jsx)(`svg`,{viewBox:`0 0 ${Je} ${f}`,width:`100%`,height:f,className:G.svg,children:e.map((e,t)=>{let r=t*h,i=(t+1)*h,s=(r+i)/2,c=v[t]/2,u=v[t+1]/2,f=m-c,p=m-u,g=m+c,_=m+u,b=[`M ${r} ${f}`,`C ${s} ${f} ${s} ${p} ${i} ${p}`,`L ${i} ${_}`,`C ${s} ${_} ${s} ${g} ${r} ${g}`,`Z`].join(` `),x=a===null?y(t):t===a?1:.45,S=Math.round(e.value/d*100);return(0,n.jsxs)(`g`,{className:G.segment,onMouseEnter:()=>o(t),onMouseLeave:()=>o(null),children:[(0,n.jsx)(`path`,{d:b,fill:l,fillOpacity:x}),(0,n.jsxs)(`text`,{x:s,y:m,textAnchor:`middle`,dominantBaseline:`middle`,className:G.pctLabel,children:[S,`%`]})]},t)})}),(0,n.jsx)(`div`,{className:G.labels,style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((e,t)=>(0,n.jsx)(`span`,{className:G.labelItem,children:e.label},t))}),b&&(0,n.jsxs)(`div`,{className:G.tooltip,style:{left:`${C/Je*100}%`,top:`${x/f*100}%`,background:u},children:[(0,n.jsx)(`span`,{className:G.tooltip__title,children:b.label}),(0,n.jsxs)(`div`,{className:G.tooltip__row,children:[(0,n.jsx)(`span`,{className:G.tooltip__dot,style:{background:l}}),(0,n.jsx)(`span`,{className:G.tooltip__label,children:`Share`}),(0,n.jsxs)(`span`,{className:G.tooltip__value,children:[Math.round(b.value/d*100),`%`]})]})]})]})},K={chart:`_chart_1yc8b_1`,grid:`_grid_1yc8b_6`,rowLabel:`_rowLabel_1yc8b_13`,colLabel:`_colLabel_1yc8b_14`,cell:`_cell_1yc8b_29`,"chart--sm":`_chart--sm_1yc8b_38`,"chart--md":`_chart--md_1yc8b_39`,"chart--lg":`_chart--lg_1yc8b_40`,"chart--xl":`_chart--xl_1yc8b_41`,tooltip:`_tooltip_1yc8b_48`,tooltip__title:`_tooltip__title_1yc8b_70`,tooltip__row:`_tooltip__row_1yc8b_76`,tooltip__dot:`_tooltip__dot_1yc8b_84`,tooltip__label:`_tooltip__label_1yc8b_91`,tooltip__value:`_tooltip__value_1yc8b_92`},Qe=.12,$e=.45,et=({data:e,rowLabels:r,colLabels:i,valueLabel:a=`Value`,size:o=`md`,className:s})=>{let c=t.default.useRef(null),l=S(c),u=t.default.useRef(null),[d,f]=t.default.useState(null),p=l(`--color-chart-1`)??`#ff4700`,m=Math.max(1,...e.flat()),h=e[0]?.length??0,g=(e,t,n)=>r=>{let i=r.currentTarget.getBoundingClientRect(),a=u.current?.getBoundingClientRect();a&&f({row:e,col:t,value:n,left:i.left-a.left+i.width/2,top:i.top-a.top})};return(0,n.jsx)(`div`,{ref:c,className:[K.chart,K[`chart--${o}`],s??``].filter(Boolean).join(` `),children:(0,n.jsxs)(`div`,{ref:u,className:K.grid,style:{gridTemplateColumns:`auto repeat(${h}, 1fr)`},children:[e.map((e,i)=>(0,n.jsxs)(t.default.Fragment,{children:[(0,n.jsx)(`span`,{className:K.rowLabel,children:r?.[i]??``}),e.map((e,t)=>{let r=d?.row===i&&d?.col===t,a=d!==null&&!r,o=r?1:Qe+e/m*(1-Qe);return(0,n.jsx)(`div`,{className:K.cell,style:{background:p,opacity:a?$e:o},onMouseEnter:g(i,t,e),onMouseLeave:()=>f(null)},t)})]},i)),i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{}),i.map((e,t)=>(0,n.jsx)(`span`,{className:K.colLabel,children:e},t))]}),d&&(0,n.jsxs)(`div`,{className:K.tooltip,style:{left:d.left,top:d.top},children:[(0,n.jsx)(`span`,{className:K.tooltip__title,children:[r?.[d.row],i?.[d.col]].filter(Boolean).join(` · `)||`Row ${d.row+1}, Col ${d.col+1}`}),(0,n.jsxs)(`div`,{className:K.tooltip__row,children:[(0,n.jsx)(`span`,{className:K.tooltip__dot}),(0,n.jsx)(`span`,{className:K.tooltip__label,children:a}),(0,n.jsx)(`span`,{className:K.tooltip__value,children:d.value})]})]})]})})},tt={kbd:`_kbd_1cz4m_3`},nt=({children:e,className:t})=>(0,n.jsx)(`kbd`,{className:[tt.kbd,t??``].filter(Boolean).join(` `),children:e}),rt={label:`_label_rcdks_3`,label__required:`_label__required_rcdks_17`},it=t.default.forwardRef(({required:e,children:t,className:r,...i},a)=>(0,n.jsxs)(`label`,{ref:a,className:[rt.label,r??``].filter(Boolean).join(` `),...i,children:[t,e&&(0,n.jsx)(`span`,{className:rt.label__required,"aria-hidden":`true`,children:` *`})]}));it.displayName=`Label`;var at={chart:`_chart_18fgd_2`},ot={sm:180,md:240,lg:320,xl:420},st=new Set([`dots`,`custom-dots`,`dots-colors`,`label`,`custom-label`]),ct=({data:e,series:r,xKey:a=`label`,variant:o=`default`,labelKey:s,size:c=`md`,height:l,showLegend:u,className:d})=>{let f=t.default.useRef(null),p=S(f),m=[1,2,3,4,5].map(e=>p(`--color-chart-${e}`)??C[e-1]),h=[m[1],m[0],...m.slice(2)],g=p(`--color-border-subtle`)??`#e7e5e1`,_=p(`--color-fg-muted`)??`#78716a`,v=p(`--color-bg-canvas`)??`#fafaf9`,y=p(`--color-fg-default`)??`#141414`,b=o===`linear`?`linear`:o===`step`?`step`:`monotone`,x=st.has(o),w=e=>t=>{let{cx:r,cy:i}=t;return(0,n.jsxs)(`g`,{stroke:e,strokeWidth:2,strokeLinecap:`round`,children:[(0,n.jsx)(`line`,{x1:r,y1:i-3,x2:r,y2:i-3-6}),(0,n.jsx)(`line`,{x1:r,y1:i+3,x2:r,y2:i+3+6}),(0,n.jsx)(`circle`,{cx:r,cy:i,r:3,fill:e,stroke:`none`})]})},E=e=>{let{cx:t,cy:r,index:i}=e,a=m[(i??0)%m.length];return(0,n.jsx)(`circle`,{cx:t,cy:r,r:4,fill:a,stroke:v,strokeWidth:1.5})},D=t=>{let{x:r,y:i,value:a,index:c}=t,l=o===`custom-label`&&s?e[c]?.[s]:a;return l===void 0?(0,n.jsx)(`g`,{}):(0,n.jsx)(`text`,{x:r,y:i-12,textAnchor:`middle`,fill:y,fontSize:12,fontWeight:500,fontFamily:`var(--font-sans)`,children:l})};return(0,n.jsx)(`div`,{ref:f,className:[at.chart,d??``].filter(Boolean).join(` `),children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:l??ot[c],children:(0,n.jsxs)(i.LineChart,{data:e,margin:{top:8,right:8,bottom:8,left:12},children:[(0,n.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:g,vertical:!1}),(0,n.jsx)(i.XAxis,{dataKey:a,stroke:_,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,n.jsx)(i.Tooltip,{cursor:{stroke:p(`--color-border-default`)??`#dbdad7`,strokeWidth:1},content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}}),u&&(0,n.jsx)(i.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),r.map((e,t)=>{let r=h[t%h.length],a=x?o===`custom-dots`?w(r):o===`dots-colors`?E:{r:4,fill:r,stroke:v,strokeWidth:1.5}:!1;return(0,n.jsx)(i.Line,{type:b,dataKey:e,stroke:r,strokeWidth:2,dot:a,activeDot:{r:4,fill:r,stroke:v,strokeWidth:1.5},label:o===`label`||o===`custom-label`?D:void 0},e)})]})})})},lt={item:`_item_va3db_2`,"item--disabled":`_item--disabled_va3db_18`,"item--selected":`_item--selected_va3db_22`,item__leading:`_item__leading_va3db_26`,item__text:`_item__text_va3db_27`,item__title:`_item__title_va3db_28`,item__description:`_item__description_va3db_29`,item__trailing:`_item__trailing_va3db_30`},ut=({title:e,description:t,leading:r,trailing:i,selected:a,disabled:o,onClick:s,className:c})=>(0,n.jsxs)(`button`,{type:`button`,"data-hover-item":``,disabled:o,onClick:s,"aria-current":a?`true`:void 0,className:[lt.item,a?lt[`item--selected`]:``,o?lt[`item--disabled`]:``,c??``].filter(Boolean).join(` `),children:[r&&(0,n.jsx)(`span`,{className:lt.item__leading,children:r}),(0,n.jsxs)(`span`,{className:lt.item__text,children:[(0,n.jsx)(`span`,{className:lt.item__title,children:e}),t&&(0,n.jsx)(`span`,{className:lt.item__description,children:t})]}),i&&(0,n.jsx)(`span`,{className:lt.item__trailing,children:i})]}),dt={menu:`_menu_tcvhi_2`,divider:`_divider_tcvhi_13`},ft=({children:t,minWidth:r=208,className:i,...a})=>{let o=e.E();return(0,n.jsxs)(`div`,{ref:o.ref,...o.groupProps,role:`menu`,"aria-label":a[`aria-label`],style:{minWidth:r},className:[dt.menu,i??``].filter(Boolean).join(` `),children:[o.highlight,t]})},pt=()=>(0,n.jsx)(`div`,{className:dt.divider,role:`separator`}),mt={item:`_item_1n6g9_2`,item__icon:`_item__icon_1n6g9_23`,item__label:`_item__label_1n6g9_24`,item__shortcut:`_item__shortcut_1n6g9_25`,item__check:`_item__check_1n6g9_32`,"item--checked":`_item--checked_1n6g9_34`,"item--disabled":`_item--disabled_1n6g9_35`,"item--destructive":`_item--destructive_1n6g9_36`},ht=({state:t=`default`,icon:i,shortcut:a,children:o,onSelect:s,className:c})=>{let l=t===`disabled`;return(0,n.jsxs)(`div`,{role:`menuitem`,"data-hover-item":``,"aria-disabled":l||void 0,"aria-checked":t===`checked`||void 0,tabIndex:l?-1:0,onClick:l?void 0:s,onKeyDown:e=>{l||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s?.())},className:[mt.item,mt[`item--${t}`],c??``].filter(Boolean).join(` `),children:[i&&(0,n.jsx)(`span`,{className:mt.item__icon,"aria-hidden":`true`,children:i}),(0,n.jsx)(`span`,{className:mt.item__label,children:o}),a&&(0,n.jsx)(`kbd`,{className:mt.item__shortcut,children:a}),t===`checked`&&(0,n.jsx)(r.Check,{size:16,strokeWidth:e.pt(16),className:mt.item__check,"aria-hidden":`true`})]})},gt={chart:`_chart_cc7lx_2`,center:`_center_cc7lx_30`,center__value:`_center__value_cc7lx_39`,center__caption:`_center__caption_cc7lx_40`},_t={sm:{h:180,outer:72},md:{h:220,outer:90},lg:{h:280,outer:116},xl:{h:340,outer:142}},vt=new Set([`donut`,`donut-active`,`donut-with-text`,`interactive`]),yt=new Set([`donut-active`]),bt=new Set([`interactive`]),xt=new Set([`donut-with-text`]),St=Math.PI/180,Ct=({data:e,variant:r=`donut`,size:a=`md`,centerValue:o,centerCaption:s,className:c})=>{let l=t.default.useRef(null),u=S(l),[d,f]=t.default.useState(void 0),p=[1,2,3,4,5].map(e=>u(`--color-chart-${e}`)??C[e-1]),m=u(`--color-bg-surface`)??`#ffffff`,h=u(`--color-fg-default`)??`#141414`,g=_t[a],_=vt.has(r),v=yt.has(r),y=bt.has(r),b=_?g.outer*.6:0,x=xt.has(r)&&(o||s),w=d??(v||y?0:void 0),E=e=>{let{cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:s,endAngle:c,fill:l,index:u}=e,d=u===w,f=d&&(v||y)?16:0;return d&&y?(0,n.jsxs)(`g`,{children:[(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:a,outerRadius:o+f,startAngle:s,endAngle:c,fill:l}),(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:o+f+3,outerRadius:o+f+7,startAngle:s,endAngle:c,fill:l})]}):(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:a,outerRadius:o+f,startAngle:s,endAngle:c,fill:l})},D=e=>{let{cx:t,cy:n,midAngle:r,outerRadius:i}=e,a=r??0,o=Math.cos(-a*St),s=Math.sin(-a*St),c=t+i*o,l=n+i*s,u=t+(i+16)*o,d=n+(i+16)*s,f=o>=0,p=u+(f?14:-14);return{d:`M ${c} ${l} L ${u} ${d} L ${p} ${d}`,endX:p,endY:d,textAnchor:f?`start`:`end`}},O=e=>{let{value:t,fill:r}=e,{d:i,endX:a,endY:o,textAnchor:s}=D(e),c=a+(s===`start`?4:-4);return(0,n.jsxs)(`g`,{children:[(0,n.jsx)(`path`,{d:i,fill:`none`,stroke:r,strokeWidth:1}),(0,n.jsx)(`text`,{x:c,y:o,textAnchor:s,dominantBaseline:`central`,fill:h,fontSize:12,fontFamily:`var(--font-sans)`,children:t})]})},k=e=>{let{x:t,y:r,textAnchor:i,value:a}=e;return(0,n.jsx)(`text`,{x:t,y:r,textAnchor:i,dominantBaseline:`central`,fill:h,fontSize:20,fontWeight:400,fontFamily:`var(--font-sans)`,children:a})},A=t=>{let{cx:r,cy:i,midAngle:a,innerRadius:o,outerRadius:s,index:c}=t,l=(o+s)/2;return(0,n.jsx)(`text`,{x:r+l*Math.cos(-a*St),y:i+l*Math.sin(-a*St),textAnchor:`middle`,dominantBaseline:`central`,fill:`#fff`,fontSize:11,fontWeight:500,fontFamily:`var(--font-sans)`,children:e[c]?.label})};if(r===`stacked`){let t=e=>d!==void 0&&d!==e?.45:1;return(0,n.jsx)(`div`,{ref:l,className:[gt.chart,c??``].filter(Boolean).join(` `),style:{height:g.h},children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.jsx)(i.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:g.outer*.82,outerRadius:g.outer,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>f(t),onMouseLeave:()=>f(void 0),children:e.map((e,r)=>(0,n.jsx)(i.Cell,{fill:p[r%p.length],fillOpacity:t(r)},r))}),(0,n.jsx)(i.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:0,outerRadius:g.outer*.62,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>f(t),onMouseLeave:()=>f(void 0),children:e.map((e,r)=>(0,n.jsx)(i.Cell,{fill:p[r%p.length],fillOpacity:t(r)},r))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}})]})})})}return(0,n.jsxs)(`div`,{ref:l,className:[gt.chart,c??``].filter(Boolean).join(` `),style:{height:g.h},children:[(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.jsx)(i.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:b,outerRadius:g.outer,paddingAngle:0,stroke:r===`pie`?m:`none`,strokeWidth:r===`pie`?2:0,isAnimationActive:!1,shape:v||y?E:void 0,label:r===`label`?O:r===`custom-label`?k:r===`label-list`?A:void 0,labelLine:!1,onMouseEnter:(e,t)=>f(t),onMouseLeave:()=>f(void 0),children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:p[t%p.length]},t))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}})]})}),x&&(0,n.jsxs)(`div`,{className:gt.center,children:[o&&(0,n.jsx)(`span`,{className:gt.center__value,children:o}),s&&(0,n.jsx)(`span`,{className:gt.center__caption,children:s})]})]})},q={root:`_root_16f5u_2`,trigger:`_trigger_16f5u_3`,panel:`_panel_16f5u_5`,"panel--bottom":`_panel--bottom_16f5u_22`,"panel--bottom-start":`_panel--bottom-start_16f5u_23`,"panel--bottom-end":`_panel--bottom-end_16f5u_24`,"panel--top":`_panel--top_16f5u_25`,"panel--entering":`_panel--entering_16f5u_39`,"sakani-popover-in":`_sakani-popover-in_16f5u_1`,"panel--exiting":`_panel--exiting_16f5u_40`,"sakani-popover-out":`_sakani-popover-out_16f5u_1`,"sakani-popover-in-up":`_sakani-popover-in-up_16f5u_1`,"sakani-popover-out-up":`_sakani-popover-out-up_16f5u_1`,panel__title:`_panel__title_16f5u_75`,panel__description:`_panel__description_16f5u_76`,panel__body:`_panel__body_16f5u_77`,panel__actions:`_panel__actions_16f5u_78`},wt=({trigger:e,title:r,description:i,actions:a,placement:o=`bottom-start`,children:s,className:c})=>{let[l,u]=t.default.useState(!1),[d,f]=t.default.useState(!1),p=t.default.useRef(null),m=t.default.useRef(null);return t.default.useEffect(()=>{l&&f(!0)},[l]),t.default.useEffect(()=>{if(l||!d)return;let e=setTimeout(()=>f(!1),240);return()=>clearTimeout(e)},[l,d]),t.default.useEffect(()=>{if(!l)return;let e=e=>{p.current&&!p.current.contains(e.target)&&u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[l]),t.default.useEffect(()=>{!l&&m.current&&(m.current.focus(),m.current=null)},[l]),(0,n.jsxs)(`div`,{className:[q.root,c??``].filter(Boolean).join(` `),ref:p,children:[(0,n.jsx)(`span`,{className:q.trigger,onClick:()=>{l||(m.current=document.activeElement),u(e=>!e)},children:e}),d&&(0,n.jsxs)(`div`,{className:[q.panel,q[`panel--${o}`],l?q[`panel--entering`]:q[`panel--exiting`]].filter(Boolean).join(` `),role:`dialog`,onAnimationEnd:e=>{e.target===e.currentTarget&&!l&&f(!1)},children:[r&&(0,n.jsx)(`div`,{className:q.panel__title,children:r}),i&&(0,n.jsx)(`div`,{className:q.panel__description,children:i}),s&&(0,n.jsx)(`div`,{className:q.panel__body,children:s}),a&&(0,n.jsx)(`div`,{className:q.panel__actions,children:a})]})]})},Tt={chart:`_chart_q6xhl_2`,circleFillSvg:`_circleFillSvg_q6xhl_17`},Et={sm:200,md:260,lg:340,xl:420},Dt=new Set([`circle-grid`,`circle-grid-no-lines`,`circle-grid-filled`]),Ot=new Set([`default`,`grid-custom`]),kt=new Set([`dots-grid-none`]),At=new Set([`grid-filled`]),jt=e=>e===`circle-grid-filled`,Mt=new Set([`default`,`dots`,`dots-grid-none`,`circle-grid`,`circle-grid-no-lines`,`multiple`,`custom-label`,`grid-custom`,`grid-filled`,`circle-grid-filled`]),Nt=[1,.8,.6,.4,.2],Pt=({data:e,variant:r=`default`,size:a=`md`,seriesLabels:o=[`Value`,`Value 2`],className:s})=>{let c=t.default.useRef(null),l=S(c),u=l(`--color-chart-1`)??`#ff4700`,d=l(`--color-chart-2`)??`#5b92dd`,f=l(`--color-border-default`)??`#dbdad7`,p=l(`--color-fg-subtle`)??`#a8a29b`,m=r===`multiple`,h=r===`lines-only`,g=m||r===`custom-label`||h,_=!h,v=r===`dots`||r===`dots-grid-none`||r===`circle-grid`||r===`circle-grid-no-lines`,y=At.has(r),b=Ot.has(r),x=kt.has(r),C=jt(r),[w,E]=t.default.useState(0);t.default.useEffect(()=>{if(!C||!c.current)return;let e=c.current,t=new ResizeObserver(([e])=>E(e.contentRect.width));return t.observe(e),()=>t.disconnect()},[C]);let D=t.default.useMemo(()=>{if(!y)return e;let t=Math.max(1,...e.flatMap(e=>[e.value,e.value2??0]));return e.map(e=>{let n={};return Nt.forEach((e,r)=>{n[`ring${r}`]=e*t}),{...e,...n}})},[e,y]),O=t=>{let{x:r,y:i,cx:a,cy:o,payload:s,textAnchor:c}=t,l=e.find(e=>e.label===s?.value)??e[s?.index];if(!l)return(0,n.jsx)(`g`,{});let u=r-a,d=i-o,f=l.value2===void 0?`${l.value}`:`${l.value}/${l.value2}`,m=Math.abs(d)>Math.abs(u),h,g;if(m&&d<0)g=i-4-6,h=g-16;else if(m)h=i+4+10,g=h+18;else{let e=i+d/(Math.sqrt(u*u+d*d)||1)*4;h=e-8,g=e+12}let _=m?r:r+u/Math.sqrt(u*u+d*d||1)*4;return(0,n.jsxs)(`g`,{children:[(0,n.jsx)(`text`,{x:_,y:h,textAnchor:c,fill:p,fontSize:15,fontWeight:600,fontFamily:`var(--font-sans)`,children:f}),(0,n.jsx)(`text`,{x:_,y:g,textAnchor:c,fill:p,fontSize:13,fontFamily:`var(--font-sans)`,children:l.label})]})},k=Et[a],A=(w>0?Math.min(w,k)/2-5:0)*.7;return(0,n.jsxs)(`div`,{ref:c,className:[Tt.chart,s??``].filter(Boolean).join(` `),children:[C&&w>0&&(0,n.jsx)(`svg`,{className:Tt.circleFillSvg,width:w,height:k,children:Nt.map(e=>(0,n.jsx)(`circle`,{cx:w/2,cy:k/2,r:A*e,fill:d,fillOpacity:.1},e))}),(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:k,children:(0,n.jsxs)(i.RadarChart,{data:D,outerRadius:`70%`,children:[!y&&!x&&(0,n.jsx)(i.PolarGrid,{gridType:Dt.has(r)?`circle`:`polygon`,radialLines:r!==`circle-grid-no-lines`&&!b,stroke:f}),(0,n.jsx)(i.PolarAngleAxis,{dataKey:`label`,axisLine:!1,tick:r===`custom-label`?O:{fill:p,fontSize:12,fontFamily:`var(--font-sans)`}}),(0,n.jsx)(i.PolarRadiusAxis,{tick:!1,axisLine:!1,tickCount:b?2:void 0}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}}),m&&(0,n.jsx)(i.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),y&&Nt.map((e,t)=>(0,n.jsx)(i.Radar,{dataKey:`ring${t}`,stroke:`none`,fill:d,fillOpacity:.1,isAnimationActive:!1,legendType:`none`},`ring${t}`)),(0,n.jsx)(i.Radar,{name:m?o[0]??`Value`:void 0,dataKey:`value`,stroke:Mt.has(r)?`none`:d,fill:_?d:`none`,fillOpacity:_?b?1:g?.45:.5:0,strokeWidth:Mt.has(r)?0:2,dot:v?{r:4,fill:d,stroke:`none`}:!1,isAnimationActive:!1}),g&&(0,n.jsx)(i.Radar,{name:m?o[1]??`Value 2`:void 0,dataKey:`value2`,stroke:h?u:`none`,fill:h?`none`:u,fillOpacity:h?0:.8,strokeWidth:h?2:0,dot:v?{r:4,fill:u,stroke:`none`}:!1,isAnimationActive:!1})]})})]})},J={chart:`_chart_1ogmh_2`,gridSvg:`_gridSvg_1ogmh_19`,gaugeSvg:`_gaugeSvg_1ogmh_31`,center:`_center_1ogmh_36`,center__value:`_center__value_1ogmh_45`,center__caption:`_center__caption_1ogmh_46`},Ft={sm:180,md:220,lg:280,xl:340},It=Math.PI/180,Lt=e=>Math.round(e*1e3)/1e3,Rt={multi:[`30%`,`100%`],grid:[`30%`,`100%`],"stacked-label":[`30%`,`100%`],text:[`76%`,`100%`]},zt=({value:e,max:t,color:r,track:i,centerValue:a,centerCaption:o,labelColor:s,captionColor:c})=>{let l=Math.round(Math.min(e,t)/t*40);return(0,n.jsxs)(`svg`,{viewBox:`0 0 200 120`,className:J.gaugeSvg,children:[Array.from({length:40}).map((e,t)=>{let a=180+t/39*180;return(0,n.jsx)(`line`,{x1:Lt(100+78*Math.cos(a*It)),y1:Lt(100+78*Math.sin(a*It)),x2:Lt(100+92*Math.cos(a*It)),y2:Lt(100+92*Math.sin(a*It)),stroke:t<l?r:i,strokeWidth:2.5,strokeLinecap:`round`},t)}),(a||o)&&(0,n.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[a&&(0,n.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:a}),o&&(0,n.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:o})]})]})},Bt=({rings:e,spokes:t,color:r})=>(0,n.jsxs)(`svg`,{viewBox:`0 0 200 200`,className:J.gridSvg,children:[Array.from({length:e}).map((t,i)=>(0,n.jsx)(`circle`,{cx:100,cy:100,r:(i+1)/e*96,fill:`none`,stroke:r,strokeWidth:1},i)),Array.from({length:t}).map((e,i)=>{let a=i/t*360,o=99.5*1.1;return(0,n.jsx)(`line`,{x1:100,y1:100,x2:Lt(100+o*Math.cos(a*It)),y2:Lt(100+o*Math.sin(a*It)),stroke:r,strokeWidth:1},i)})]}),Vt=({data:e,palette:t,track:r,centerValue:a,centerCaption:o,labelColor:s,captionColor:c})=>{let l=e[0]?.max??e.reduce((e,t)=>e+t.value,0),u=210,d=e.map((e,n)=>{let r=l>0?e.value/l*240:0,i=u,a=u-r;return u=a,{segStart:i,segEnd:a,fill:t[n%t.length]}});return(0,n.jsxs)(`svg`,{viewBox:`0 0 200 160`,className:J.gaugeSvg,children:[d.map((e,t)=>(0,n.jsx)(i.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:e.segStart,endAngle:e.segEnd,fill:e.fill,cornerRadius:4},t)),u>-29.5&&(0,n.jsx)(i.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:u,endAngle:-30,fill:r,cornerRadius:4}),(a||o)&&(0,n.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[a&&(0,n.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:a}),o&&(0,n.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:o})]})]})},Ht=({data:e,variant:r=`multi`,size:a=`md`,centerValue:o,centerCaption:s,className:c})=>{let l=t.default.useRef(null),u=S(l),d=[1,2,3,4,5].map(e=>u(`--color-chart-${e}`)??C[e-1]),f=u(`--color-bg-subtle`)??`#f5f4f2`,p=u(`--color-border-subtle`)??`#e7e5e1`,m=u(`--color-fg-default`)??`#141414`,h=u(`--color-fg-muted`)??`#78716a`,g=Ft[a];if(r===`gauge-tick`){let t=e[0];return(0,n.jsx)(`div`,{ref:l,className:[J.chart,c??``].filter(Boolean).join(` `),style:{height:g},children:(0,n.jsx)(zt,{value:t?.value??0,max:t?.max??100,color:d[0],track:f,centerValue:o,centerCaption:s,labelColor:m,captionColor:h})})}if(r===`shape`||r===`stacked`||r===`stacked-3-layers`)return(0,n.jsx)(`div`,{ref:l,className:[J.chart,c??``].filter(Boolean).join(` `),style:{height:g},children:(0,n.jsx)(Vt,{data:e,palette:d,track:f,centerValue:o,centerCaption:s,labelColor:m,captionColor:h})});let[_,v]=Rt[r]??[`30%`,`100%`],y=(r===`stacked-label`||r===`text`)&&(o||s);return(0,n.jsxs)(`div`,{ref:l,className:[J.chart,c??``].filter(Boolean).join(` `),style:{height:g},children:[r===`grid`&&(0,n.jsx)(Bt,{rings:8,spokes:12,color:p}),(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.RadialBarChart,{data:e,innerRadius:_,outerRadius:v,startAngle:90,endAngle:-270,barCategoryGap:`12%`,children:[(0,n.jsx)(i.PolarAngleAxis,{type:`number`,domain:[0,e[0]?.max??100],tick:!1,axisLine:!1}),(0,n.jsx)(i.RadialBar,{dataKey:`value`,background:r!==`grid`&&{fill:f},cornerRadius:8,isAnimationActive:!1,children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:d[t%d.length]},t))})]})}),y&&(0,n.jsxs)(`div`,{className:J.center,children:[o&&(0,n.jsx)(`span`,{className:J.center__value,children:o}),s&&(0,n.jsx)(`span`,{className:J.center__caption,children:s})]})]})},Y={wrapper:`_wrapper_5ueza_3`,"wrapper--disabled":`_wrapper--disabled_5ueza_11`,input:`_input_5ueza_13`,circle:`_circle_5ueza_15`,dot:`_dot_5ueza_31`,text:`_text_5ueza_79`,text__label:`_text__label_5ueza_80`,text__description:`_text__description_5ueza_81`,"wrapper--withDescription":`_wrapper--withDescription_5ueza_85`},Ut=t.default.forwardRef(({label:e,description:r,disabled:i,id:a,className:o,...s},c)=>{let l=t.default.useId(),u=a??l;return(0,n.jsxs)(`label`,{htmlFor:u,className:[Y.wrapper,r?Y[`wrapper--withDescription`]:``,i?Y[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`input`,{ref:c,id:u,type:`radio`,disabled:i,className:Y.input,...s}),(0,n.jsx)(`span`,{className:Y.circle,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:Y.dot})}),(e||r)&&(0,n.jsxs)(`span`,{className:Y.text,children:[e&&(0,n.jsx)(`span`,{className:Y.text__label,children:e}),r&&(0,n.jsx)(`span`,{className:Y.text__description,children:r})]})]})});Ut.displayName=`Radio`;var X={footer:`_footer_mks3d_4`,"footer--collapsed":`_footer--collapsed_mks3d_12`,footer__text:`_footer__text_mks3d_14`,footer__title:`_footer__title_mks3d_15`,footer__subtitle:`_footer__subtitle_mks3d_16`,footer__menu:`_footer__menu_mks3d_17`,footer__action:`_footer__action_mks3d_29`},Wt=({type:t=`user`,title:i,subtitle:a,avatarSrc:o,avatarInitials:s,collapsed:c,onMenu:l,onSignOut:u})=>{let d=(0,n.jsx)(e.ut,{size:c?`sm`:`md`,src:o,initials:s,alt:i??`User`});return c?(0,n.jsx)(`div`,{className:[X.footer,X[`footer--collapsed`]].join(` `),children:d}):t===`actions`?(0,n.jsx)(`div`,{className:X.footer,children:(0,n.jsxs)(`button`,{type:`button`,"data-hover-item":``,className:X.footer__action,onClick:u,children:[(0,n.jsx)(r.LogOut,{size:16,strokeWidth:e.pt(16)}),` Sign out`]})}):(0,n.jsxs)(`div`,{className:X.footer,children:[d,(0,n.jsxs)(`span`,{className:X.footer__text,children:[i&&(0,n.jsx)(`span`,{className:X.footer__title,children:i}),a&&(0,n.jsx)(`span`,{className:X.footer__subtitle,children:a})]}),t===`user-menu`&&(0,n.jsx)(`button`,{type:`button`,"data-hover-item":``,className:X.footer__menu,onClick:l,"aria-label":`Open menu`,children:(0,n.jsx)(r.ChevronsUpDown,{size:16,strokeWidth:e.pt(16)})})]})},Gt={promo:`_promo_qzdlk_4`,promo__head:`_promo__head_qzdlk_20`,promo__icon:`_promo__icon_qzdlk_21`,promo__title:`_promo__title_qzdlk_22`,promo__dismiss:`_promo__dismiss_qzdlk_23`,promo__desc:`_promo__desc_qzdlk_30`,promo__cta:`_promo__cta_qzdlk_33`},Kt=({type:t=`upgrade`,title:i,description:a,ctaLabel:o,onCta:s,onDismiss:c,icon:l=r.Sparkles})=>(0,n.jsxs)(`div`,{className:[Gt.promo,Gt[`promo--${t}`]].join(` `),children:[(0,n.jsxs)(`div`,{className:Gt.promo__head,children:[(0,n.jsx)(`span`,{className:Gt.promo__icon,"aria-hidden":`true`,children:(0,n.jsx)(l,{size:16,strokeWidth:e.pt(16)})}),(0,n.jsx)(`span`,{className:Gt.promo__title,children:i}),c&&(0,n.jsx)(`button`,{type:`button`,className:Gt.promo__dismiss,onClick:c,"aria-label":`Dismiss`,children:(0,n.jsx)(r.X,{size:14,strokeWidth:e.pt(14)})})]}),a&&(0,n.jsx)(`p`,{className:Gt.promo__desc,children:a}),o&&(0,n.jsx)(`button`,{type:`button`,className:Gt.promo__cta,onClick:s,children:o})]}),qt={search:`_search_1airw_2`,search__icon:`_search__icon_1airw_25`,search__input:`_search__input_1airw_26`,search__placeholder:`_search__placeholder_1airw_38`,search__kbd:`_search__kbd_1airw_39`,collapsed:`_collapsed_1airw_53`},Jt=({type:t=`field`,placeholder:i=`Search…`,collapsed:a,value:o,onChange:s,onClick:c})=>a?(0,n.jsx)(`button`,{type:`button`,className:qt.collapsed,onClick:c,"aria-label":`Search`,children:(0,n.jsx)(r.Search,{size:18,strokeWidth:e.pt(18)})}):t===`command`?(0,n.jsxs)(`button`,{type:`button`,className:qt.search,onClick:c,children:[(0,n.jsx)(r.Search,{size:16,strokeWidth:e.pt(16),className:qt.search__icon}),(0,n.jsx)(`span`,{className:qt.search__placeholder,children:i}),(0,n.jsx)(`kbd`,{className:qt.search__kbd,children:`⌘K`})]}):(0,n.jsxs)(`div`,{className:qt.search,children:[(0,n.jsx)(r.Search,{size:16,strokeWidth:e.pt(16),className:qt.search__icon}),(0,n.jsx)(`input`,{className:qt.search__input,placeholder:i,value:o,onChange:e=>s?.(e.target.value)})]}),Yt={spinner:`_spinner_14r00_3`,"spinner--sm":`_spinner--sm_14r00_12`,"spinner--md":`_spinner--md_14r00_13`,"spinner--lg":`_spinner--lg_14r00_14`,spinner__svg:`_spinner__svg_14r00_17`,"spinner-rotate":`_spinner-rotate_14r00_1`},Xt=({size:e=`md`,label:t=`Loading...`,className:r})=>(0,n.jsx)(`span`,{role:`status`,"aria-label":t,className:[Yt.spinner,Yt[`spinner--${e}`],r??``].filter(Boolean).join(` `),children:(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,"aria-hidden":`true`,className:Yt.spinner__svg,children:[(0,n.jsx)(`circle`,{cx:12,cy:12,r:9,opacity:.2}),(0,n.jsx)(`path`,{d:`M12 3a9 9 0 0 1 9 9`,className:Yt.spinner__arc})]})}),Z={card:`_card_u5kvg_4`,"card--featured":`_card--featured_u5kvg_24`,card__head:`_card__head_u5kvg_26`,card__icon:`_card__icon_u5kvg_27`,card__title:`_card__title_u5kvg_41`,card__menu:`_card__menu_u5kvg_42`,card__value:`_card__value_u5kvg_50`,card__meta:`_card__meta_u5kvg_59`,card__sparkline:`_card__sparkline_u5kvg_66`,"card--trend-up":`_card--trend-up_u5kvg_68`,"card--trend-down":`_card--trend-down_u5kvg_69`,card__description:`_card__description_u5kvg_72`},Zt={up:r.TrendingUp,down:r.TrendingDown,flat:r.Minus},Qt={up:`success`,down:`danger`,flat:`neutral`},$t=({data:e})=>{if(e.length<2)return null;let t=Math.min(...e),r=Math.max(...e)-t||1,i=e.map((n,i)=>`${i/(e.length-1)*100},${30-(n-t)/r*26}`).join(` `);return(0,n.jsx)(`svg`,{className:en,viewBox:`0 0 100 32`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,n.jsx)(`polyline`,{points:i,fill:`none`,strokeWidth:2,vectorEffect:`non-scaling-stroke`,strokeLinejoin:`round`,strokeLinecap:`round`})})},en=Z.card__sparkline,tn=({title:t,value:i,description:a,sparkline:o,delta:s,trend:c=`up`,badgeVariant:l,variant:u=`minimal`,icon:d,showMenu:f,onMenu:p,className:m})=>{let h=Zt[c],g=(u===`icon`||u===`featured`)&&d;return(0,n.jsxs)(`div`,{className:[Z.card,Z[`card--${u}`],Z[`card--trend-${c}`],m??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:Z.card__head,children:[g&&(0,n.jsx)(`span`,{className:Z.card__icon,"aria-hidden":`true`,children:(0,n.jsx)(d,{size:18,strokeWidth:e.pt(18)})}),(0,n.jsx)(`span`,{className:Z.card__title,children:t}),f&&(0,n.jsx)(`button`,{type:`button`,className:Z.card__menu,onClick:p,"aria-label":`More options`,children:(0,n.jsx)(r.MoreHorizontal,{size:16,strokeWidth:e.pt(16)})})]}),(0,n.jsx)(`div`,{className:Z.card__value,children:i}),o&&(0,n.jsx)($t,{data:o}),(s||a)&&(0,n.jsxs)(`div`,{className:Z.card__meta,children:[s&&(0,n.jsx)(e.X,{variant:l??Qt[c],leftIcon:(0,n.jsx)(h,{size:12,strokeWidth:2}),children:s}),a&&(0,n.jsx)(`p`,{className:Z.card__description,children:a})]})]})},Q={stepper:`_stepper_kxw14_3`,"stepper--horizontal":`_stepper--horizontal_kxw14_4`,"stepper--vertical":`_stepper--vertical_kxw14_5`,step:`_step_kxw14_3`,"step--horizontal":`_step--horizontal_kxw14_8`,"step--vertical":`_step--vertical_kxw14_9`,circle:`_circle_kxw14_12`,circle__num:`_circle__num_kxw14_24`,"circle--completed":`_circle--completed_kxw14_26`,"circle--current":`_circle--current_kxw14_27`,"circle--upcoming":`_circle--upcoming_kxw14_32`,step__text:`_step__text_kxw14_39`,step__label:`_step__label_kxw14_40`,"step__label--current":`_step__label--current_kxw14_41`,"step__label--upcoming":`_step__label--upcoming_kxw14_42`,step__desc:`_step__desc_kxw14_43`,connector:`_connector_kxw14_46`,"connector--horizontal":`_connector--horizontal_kxw14_47`,"connector--vertical":`_connector--vertical_kxw14_48`,"connector--filled":`_connector--filled_kxw14_49`},nn=({index:t,state:i,label:a,description:o,orientation:s=`horizontal`})=>(0,n.jsxs)(`div`,{className:[Q.step,Q[`step--${s}`]].join(` `),children:[(0,n.jsx)(`span`,{className:[Q.circle,Q[`circle--${i}`]].join(` `),"aria-hidden":`true`,children:i===`completed`?(0,n.jsx)(r.Check,{size:14,strokeWidth:e.pt(14)}):(0,n.jsx)(`span`,{className:Q.circle__num,children:t+1})}),(0,n.jsxs)(`span`,{className:Q.step__text,children:[(0,n.jsx)(`span`,{className:[Q.step__label,i===`current`?Q[`step__label--current`]:``,i===`upcoming`?Q[`step__label--upcoming`]:``].filter(Boolean).join(` `),children:a}),o&&(0,n.jsx)(`span`,{className:Q.step__desc,children:o})]})]}),rn=({steps:e,current:r,orientation:i=`horizontal`,className:a})=>{let o=e=>e<r?`completed`:e===r?`current`:`upcoming`;return(0,n.jsx)(`div`,{className:[Q.stepper,Q[`stepper--${i}`],a??``].filter(Boolean).join(` `),children:e.map((a,s)=>(0,n.jsxs)(t.default.Fragment,{children:[(0,n.jsx)(nn,{index:s,state:o(s),label:a.label,description:a.description,orientation:i}),s<e.length-1&&(0,n.jsx)(`span`,{className:[Q.connector,Q[`connector--${i}`],s<r?Q[`connector--filled`]:``].filter(Boolean).join(` `),"aria-hidden":`true`})]},s))})},$={wrapper:`_wrapper_1xxik_3`,"wrapper--disabled":`_wrapper--disabled_1xxik_11`,input:`_input_1xxik_13`,track:`_track_1xxik_15`,thumb:`_thumb_1xxik_28`,label:`_label_1xxik_55`,"wrapper--withDescription":`_wrapper--withDescription_1xxik_60`,text:`_text_1xxik_61`,description:`_description_1xxik_63`},an=t.default.forwardRef(({label:e,description:r,disabled:i,id:a,className:o,...s},c)=>{let l=t.default.useId(),u=a??l;return(0,n.jsxs)(`label`,{htmlFor:u,className:[$.wrapper,r?$[`wrapper--withDescription`]:``,i?$[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`input`,{ref:c,id:u,type:`checkbox`,role:`switch`,disabled:i,className:$.input,...s}),(0,n.jsx)(`span`,{className:$.track,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:$.thumb})}),r?(0,n.jsxs)(`span`,{className:$.text,children:[e&&(0,n.jsx)(`span`,{className:$.label,children:e}),(0,n.jsx)(`span`,{className:$.description,children:r})]}):e&&(0,n.jsx)(`span`,{className:$.label,children:e})]})});an.displayName=`Switch`;var on={field:`_field_53t87_6`,field__label:`_field__label_53t87_8`,field__description:`_field__description_53t87_10`,field__error:`_field__error_53t87_11`,textarea:`_textarea_53t87_13`,"textarea--error":`_textarea--error_53t87_37`,"textarea--disabled":`_textarea--disabled_53t87_52`},sn=t.default.forwardRef(({label:e,description:r,error:i,disabled:a,id:o,className:s,rows:c=3,...l},u)=>{let d=t.default.useId(),f=o??d,p=!!i,m=r||i?`${f}-desc`:void 0;return(0,n.jsxs)(`div`,{className:[on.field,s??``].filter(Boolean).join(` `),children:[e&&(0,n.jsx)(`label`,{htmlFor:f,className:on.field__label,children:e}),(0,n.jsx)(`textarea`,{ref:u,id:f,rows:c,disabled:a,"aria-invalid":p||void 0,"aria-describedby":m,className:[on.textarea,p?on[`textarea--error`]:``,a?on[`textarea--disabled`]:``].filter(Boolean).join(` `),...l}),(r||i)&&(0,n.jsx)(`span`,{id:m,className:p?on.field__error:on.field__description,children:i||r})]})});sn.displayName=`Textarea`;var cn={toast:`_toast_8yqwj_3`,toast__icon:`_toast__icon_8yqwj_17`,"toast--success":`_toast--success_8yqwj_18`,"toast--error":`_toast--error_8yqwj_19`,"toast--info":`_toast--info_8yqwj_20`,toast__content:`_toast__content_8yqwj_22`,toast__title:`_toast__title_8yqwj_23`,toast__description:`_toast__description_8yqwj_24`,toast__dismiss:`_toast__dismiss_8yqwj_26`},ln={success:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,n.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),error:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,n.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,n.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),info:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,n.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,n.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},un=({status:t=`info`,title:r,description:i,onDismiss:a,className:o})=>(0,n.jsxs)(`div`,{role:t===`error`?`alert`:`status`,"aria-live":t===`error`?`assertive`:`polite`,className:[cn.toast,cn[`toast--${t}`],o??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:cn.toast__icon,"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.pt(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:ln[t]})}),(0,n.jsxs)(`div`,{className:cn.toast__content,children:[r&&(0,n.jsx)(`div`,{className:cn.toast__title,children:r}),i&&(0,n.jsx)(`div`,{className:cn.toast__description,children:i})]}),a&&(0,n.jsx)(`button`,{type:`button`,className:cn.toast__dismiss,onClick:a,"aria-label":`Dismiss`,children:(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.pt(16),strokeLinecap:`round`,strokeLinejoin:`round`,width:16,height:16,children:[(0,n.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,n.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]}),dn={bar:`_bar_14cqo_2`,bar__icon:`_bar__icon_14cqo_10`,bar__title:`_bar__title_14cqo_17`,"bar__title--center":`_bar__title--center_14cqo_21`,bar__search:`_bar__search_14cqo_22`},fn=({type:t=`title`,title:i,trailing:a,search:o,onMenu:s,onAction:c,onClose:l,className:u})=>(0,n.jsxs)(`header`,{className:[dn.bar,u??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`button`,{type:`button`,className:dn.bar__icon,onClick:s,"aria-label":`Open menu`,children:(0,n.jsx)(r.Menu,{size:18,strokeWidth:e.pt(18)})}),t===`search`?(0,n.jsx)(`div`,{className:dn.bar__search,children:o}):(0,n.jsx)(`span`,{className:[dn.bar__title,t===`title-centered`?dn[`bar__title--center`]:``].join(` `),children:i}),t===`title-action`&&(0,n.jsx)(`button`,{type:`button`,className:dn.bar__icon,onClick:c,"aria-label":`Add`,children:(0,n.jsx)(r.Plus,{size:18,strokeWidth:e.pt(18)})}),t===`search`&&(0,n.jsx)(`button`,{type:`button`,className:dn.bar__icon,onClick:l,"aria-label":`Close search`,children:(0,n.jsx)(r.X,{size:18,strokeWidth:e.pt(18)})}),(t===`title`||t===`title-centered`)&&a]});exports.Accordion=e.dt,exports.AccordionItem=e.ft,exports.ActivityFeed=e.ct,exports.ActivityFeedHighlight=e.lt,exports.Alert=e.O,exports.Announcement=o,exports.AreaChart=Pe,exports.Avatar=e.ut,exports.AvatarGroup=e.N,exports.AvatarUpload=e.it,exports.Badge=e.X,exports.Balance=e.rt,exports.BarChart=A,exports.BlogBlockquote=ce,exports.BlogFeatureText=ue,exports.BlogImage=fe,exports.BlogListingCard=e.I,exports.BlogListingFeaturedCard=e.F,exports.BoardCard=e.D,exports.BoardColumn=Fe,exports.Breadcrumb=e.w,exports.Button=e.at,exports.Calendar=Be,exports.Card=Ve,exports.CardMetaItem=e.C,exports.CartItem=e.J,exports.ChatComposer=e.S,exports.Checkbox=e.x,exports.CheckoutSteps=e.K,exports.CodeSnippet=d,exports.ColorSwatch=e.W,exports.Combobox=He,exports.ConversationItem=e.b,exports.DEFAULT_CHECKOUT_STEPS=e.q,exports.Divider=e.tt,exports.DonutChart=Ge,exports.EmptyState=e.y,exports.Expenses=m,exports.FeaturedIcon=e.P,exports.FileUpload=Ke,exports.FilterChip=e.v,exports.FirstPageHeading=pe,exports.FunnelChart=Ze,exports.HeatmapChart=et,exports.HoverGroup=e.T,exports.IconButton=e.ot,exports.InlineHint=_,exports.Input=e._,exports.JobListing=e.j,exports.Kbd=nt,exports.Label=it,exports.LineChart=ct,exports.Link=e.st,exports.List=he,exports.ListItem=ut,exports.LocationDot=e.M,exports.Marquee=ve,exports.Menu=ft,exports.MenuDivider=pt,exports.MenuItem=ht,exports.MessageBubble=e.g,exports.Metric=be,exports.MobileNavigationMenu=xe,exports.Modal=e.et,exports.NotificationItem=e.$,exports.Pagination=e.h,exports.PieChart=Ct,exports.PlaceholderLogo=we,exports.Popover=wt,exports.PriceDisplay=e.U,exports.ProductCard=e.V,exports.ProductGallery=e.B,exports.ProfileCard=Te,exports.Progress=e.nt,exports.ProgressItem=y,exports.ProgressStat=e.Q,exports.QuantitySelector=e.Y,exports.RadarChart=Pt,exports.RadialChart=Ht,exports.Radio=Ut,exports.RichSeparator=x,exports.RichTextHeading=De,exports.RichTextParagraph=ke,exports.SectionHeading=e.A,exports.SegmentedControl=e.m,exports.Select=e.p,exports.Sidebar=e.f,exports.SidebarDivider=e.d,exports.SidebarFooter=Wt,exports.SidebarGroupLabel=e.u,exports.SidebarHeader=e.l,exports.SidebarItem=e.c,exports.SidebarPromo=Kt,exports.SidebarSearch=Jt,exports.SidebarSubItem=e.s,exports.SizeSelector=e.z,exports.Skeleton=e.o,exports.Slider=e.a,exports.SpendingBalance=e.Z,exports.Spinner=Xt,exports.StarRating=e.R,exports.StatCard=tn,exports.Stepper=rn,exports.StepperStep=nn,exports.StockMarket=M,exports.StockStatus=e.L,exports.SubFeature=je,exports.Switch=an,exports.Table=e.i,exports.Tabs=e.r,exports.Tags=ne,exports.TeamCard=e.k,exports.Textarea=sn,exports.Ticker=ae,exports.Toast=un,exports.Tooltip=e.n,exports.TopBar=e.t,exports.TopBarMobile=fn,exports.Transactions=se,exports.WishlistButton=e.H,exports.getContrastColor=e.G,exports.iconStrokeWidth=e.pt,exports.useHoverHighlight=e.E;
|