@inkorange/space-ui 1.0.3 → 1.1.0

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.
@@ -1,70 +1,53 @@
1
1
  import type * as React from "react";
2
2
  import { type ReactNode } from "react";
3
- export interface RootProps {
3
+ export interface SelectProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "value" | "children" | "onChange"> {
4
4
  /** The selected item's value. Fully controlled. */
5
5
  value: string;
6
6
  /** Called with the newly selected value. */
7
7
  onValueChange: (v: string) => void;
8
8
  /** Blocks the trigger and removes it from the tab order. */
9
9
  disabled?: boolean;
10
- /** A Trigger and a Content. */
11
- children?: ReactNode;
12
- }
13
- /**
14
- * A single-choice menu for lists too long to show inline. Fully controlled.
15
- *
16
- * Reads its options at render time rather than through effects, so the
17
- * trigger shows the right label on first paint and under SSR.
18
- */
19
- export declare function Root({ value, onValueChange, disabled, children }: RootProps): React.JSX.Element;
20
- export interface TriggerProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "value"> {
21
- /** Shown when nothing is selected. Counts toward the trigger's width,
22
- * so selecting an option never resizes it.
23
- */
10
+ /** Shown when nothing is selected. Counts toward the control's width, so
11
+ * selecting an option never resizes it. */
24
12
  placeholder?: string;
25
- /** Ambient motion: the lit arc orbiting the rim. The glass skin itself
26
- * is always applied. Default true. */
13
+ /** Ambient motion: the lit arc orbiting the rim. The glass skin itself is
14
+ * always applied. Default true. */
27
15
  animated?: boolean;
16
+ /** One or more `Select.Item`. Anything else is ignored for selection but
17
+ * still rendered in the panel. */
18
+ children?: ReactNode;
28
19
  }
29
20
  /**
30
- * The closed state of the Select, showing the selected item's own content.
21
+ * A single-choice menu for lists too long to show inline. Fully controlled.
31
22
  *
32
- * Sizes itself to its widest option, so it never changes width as you select
33
- * — capped by `--sp-select-trigger-max-width`, past which the label
23
+ * The control sizes itself to its widest option, so it never changes width as
24
+ * you select — capped by `--sp-select-trigger-max-width`, past which the label
34
25
  * ellipsizes.
35
- */
36
- export declare function Trigger({ placeholder, animated, className, ...rest }: TriggerProps): React.JSX.Element;
37
- export interface ContentProps {
38
- /** Merged with the panel's own classes. */
39
- className?: string;
40
- /** Accepted for Radix call-site compatibility ("popper" everywhere);
41
- * our listbox is always trigger-anchored. */
42
- position?: string;
43
- /** Ambient motion on the panel rim. Default true. */
44
- animated?: boolean;
45
- /** The Items. */
46
- children?: ReactNode;
47
- }
48
- /**
49
- * The option panel. Always mounted but hidden while closed, so the trigger
50
- * can read its labels for sizing.
51
26
  *
52
- * Never narrower than the trigger, and grows to fit the longest option so
53
- * labels only wrap when they truly must.
27
+ * Reads its options at render time rather than through effects, so the right
28
+ * label shows on first paint and under SSR.
29
+ *
30
+ * Every prop other than the ones listed lands on the trigger button, which is
31
+ * the focusable control — so `aria-label`, `id`, `name` and `onBlur` go where
32
+ * you would expect.
54
33
  */
55
- export declare function Content({ className, position: _position, animated, children }: ContentProps): React.JSX.Element;
56
- export interface ItemProps {
34
+ declare function SelectRoot({ value, onValueChange, disabled, placeholder, animated, className, children, ...rest }: SelectProps): React.JSX.Element;
35
+ export interface SelectItemProps {
57
36
  /** Reported to onValueChange when chosen. */
58
37
  value: string;
59
- /** Skipped by keyboard navigation and not selectable. Still contributes
60
- * its width to the trigger's sizing. */
38
+ /** Skipped by keyboard navigation and not selectable. Still contributes its
39
+ * width to the control's sizing. */
61
40
  disabled?: boolean;
62
- /** Shown in the panel and, once selected, in the trigger — so it has to
63
- * read correctly in both places. */
41
+ /** Shown in the panel and, once selected, in the closed control — so it has
42
+ * to read correctly in both places. */
64
43
  children?: ReactNode;
65
44
  }
66
45
  /**
67
- * One option. Its children are what the trigger displays once selected, so
68
- * anything rendered here has to read correctly in both places.
46
+ * One option. Its children are what the closed control displays once
47
+ * selected, so anything rendered here has to read correctly in both places.
69
48
  */
70
- export declare function Item({ value, disabled, children }: ItemProps): React.JSX.Element;
49
+ declare function Item({ value, disabled, children }: SelectItemProps): React.JSX.Element;
50
+ export declare const Select: typeof SelectRoot & {
51
+ Item: typeof Item;
52
+ };
53
+ export {};
@@ -1,23 +1,24 @@
1
1
  import type * as React from "react";
2
2
  import { type ReactNode } from "react";
3
- /**
4
- * Wraps a tab set and owns which tab is showing. Fully controlled — pass
5
- * `value` and `onValueChange`; there is no uncontrolled mode.
6
- *
7
- * Renders a plain div, so it imposes no layout of its own. It also mints the
8
- * id that pairs each Trigger with its Content, which is why every part has to
9
- * sit inside a Root rather than being usable on its own.
10
- */
11
- export declare function Root({ value, onValueChange, className, children }: {
3
+ export interface TabsProps {
12
4
  /** The selected tab's value. Fully controlled — there is no default. */
13
5
  value: string;
14
6
  /** Called with the newly selected tab's value. */
15
7
  onValueChange: (v: string) => void;
16
8
  /** Merged onto the wrapper div, which is otherwise unstyled. */
17
9
  className?: string;
18
- /** A List and the Contents it switches between. */
10
+ /** A `Tabs.List` and the `Tabs.Content`s it switches between. */
19
11
  children?: ReactNode;
20
- }): React.JSX.Element;
12
+ }
13
+ /**
14
+ * Wraps a tab set and owns which tab is showing. Fully controlled — pass
15
+ * `value` and `onValueChange`; there is no uncontrolled mode.
16
+ *
17
+ * Renders a plain div, so it imposes no layout of its own. It also mints the
18
+ * id that pairs each Trigger with its Content, which is why every part has to
19
+ * sit inside it rather than being usable on its own.
20
+ */
21
+ declare function TabsRoot({ value, onValueChange, className, children }: TabsProps): React.JSX.Element;
21
22
  /**
22
23
  * The row of triggers, and the keyboard model for the set: arrow keys move
23
24
  * between tabs, Home and End jump to the ends, each moving focus and
@@ -26,7 +27,7 @@ export declare function Root({ value, onValueChange, className, children }: {
26
27
  * Bottom-aligns its children, so an active tab that grows taller rises above
27
28
  * its neighbours instead of pushing the row down — the folder-tab effect.
28
29
  */
29
- export declare function List({ children, }: {
30
+ declare function List({ children, }: {
30
31
  /** The Triggers. Their order is the tab order. */
31
32
  children?: ReactNode;
32
33
  }): React.JSX.Element;
@@ -37,7 +38,7 @@ export declare function List({ children, }: {
37
38
  * Emits `data-state="active" | "inactive"`, which is the hook the active
38
39
  * styling keys off — useful if you are restyling tabs from outside.
39
40
  */
40
- export declare function Trigger({ value, className, children, ...rest }: {
41
+ declare function Trigger({ value, className, children, ...rest }: {
41
42
  /** Selects this value. Must match the Content it reveals. */
42
43
  value: string;
43
44
  /** Merged with the tab's own classes rather than replacing them. */
@@ -53,9 +54,15 @@ export declare function Trigger({ value, className, children, ...rest }: {
53
54
  * Carries no styling: the surface a tab set seats onto is the consumer's, and
54
55
  * should match `--sp-tabs-surface-color` so the active tab connects to it.
55
56
  */
56
- export declare function Content({ value, children, }: {
57
+ declare function Content({ value, children, }: {
57
58
  /** Shown while this matches the Root's value. Must match a Trigger. */
58
59
  value: string;
59
60
  /** Panel contents. Unmounted while another tab is selected. */
60
61
  children?: ReactNode;
61
62
  }): React.JSX.Element | null;
63
+ export declare const Tabs: typeof TabsRoot & {
64
+ List: typeof List;
65
+ Trigger: typeof Trigger;
66
+ Content: typeof Content;
67
+ };
68
+ export {};
@@ -1,6 +1,6 @@
1
1
  import type * as React from "react";
2
2
  import { type ReactNode } from "react";
3
- export interface RootProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "className" | "style"> {
3
+ export interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "className" | "style"> {
4
4
  /** Merged onto the field wrapper, not the inner input. */
5
5
  className?: string;
6
6
  /** Ambient motion on the rim. The glass skin is always applied.
@@ -11,20 +11,16 @@ export interface RootProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
11
11
  /** Slots rendered inside the field, alongside the input. */
12
12
  children?: ReactNode;
13
13
  }
14
- /**
15
- * Single-line text entry. Composed as a Root so slots can sit alongside the
16
- * input inside the same field surface.
17
- *
18
- * Props land on the inner input, so `value`, `onChange` and the rest behave
19
- * as they would on a bare input.
20
- */
21
- export declare const Root: React.ForwardRefExoticComponent<RootProps & React.RefAttributes<HTMLInputElement>>;
22
14
  /**
23
15
  * A fixed element inside the field, before or after the input — an icon, a
24
16
  * unit, a short affordance. Sits within the field's surface rather than
25
17
  * beside it, and does not shrink as the input fills.
26
18
  */
27
- export declare function Slot({ children, }: {
19
+ declare function Slot({ children, }: {
28
20
  /** The slot's contents — an icon, a unit, a short affordance. */
29
21
  children?: ReactNode;
30
22
  }): React.JSX.Element;
23
+ export declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>> & {
24
+ Slot: typeof Slot;
25
+ };
26
+ export {};
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),o=require("react/jsx-runtime"),S={0:"0",1:"var(--spacing-xs)",2:"var(--spacing-sm)",3:"var(--spacing-md)",4:"var(--spacing-md)",5:"var(--spacing-lg)",6:"var(--spacing-xl)"};function y({m:e,mt:n,mb:s,p:r,pb:t},c){const i={...e!==void 0&&{margin:S[e]},...n!==void 0&&{marginTop:S[n]},...s!==void 0&&{marginBottom:S[s]},...r!==void 0&&{padding:S[r]},...t!==void 0&&{paddingBottom:S[t]},...c};return Object.keys(i).length>0?i:void 0}function g(...e){return e.filter(Boolean).join(" ")}const De="_text_4vcq4_1",Te="_size1_4vcq4_5",Ee="_size2_4vcq4_11",Ne="_size3_4vcq4_16",He="_size4_4vcq4_21",Oe="_size5_4vcq4_27",Pe="_size6_4vcq4_33",Ve="_medium_4vcq4_39",Ae="_bold_4vcq4_43",Ze="_colorMuted_4vcq4_47",Be="_colorDanger_4vcq4_51",Fe="_colorSuccess_4vcq4_55",We="_colorWarning_4vcq4_59",P={text:De,size1:Te,size2:Ee,size3:Ne,size4:He,size5:Oe,size6:Pe,medium:Ve,bold:Ae,colorMuted:Ze,colorDanger:Be,colorSuccess:Fe,colorWarning:We},re=l.forwardRef(function({as:n="span",size:s,weight:r,color:t,className:c,style:i,m:a,mt:f,mb:_,p:u,pb:p,...d},C){return l.createElement(n,{...d,ref:C,className:g(P.text,s&&P[`size${s}`],r&&P[r],t&&P[`color${t[0].toUpperCase()}${t.slice(1)}`],c),style:y({m:a,mt:f,mb:_,p:u,pb:p},i)})}),Ge="_heading_vs4zk_1",Ue="_size4_vs4zk_7",Xe="_size5_vs4zk_13",Ke="_size6_vs4zk_19",Ye="_size7_vs4zk_25",Qe="_size8_vs4zk_31",Je="_size9_vs4zk_37",et="_colorMuted_vs4zk_43",tt="_colorDanger_vs4zk_47",nt="_alignCenter_vs4zk_51",D={heading:Ge,size4:Ue,size5:Xe,size6:Ke,size7:Ye,size8:Qe,size9:Je,colorMuted:et,colorDanger:tt,alignCenter:nt},le=l.forwardRef(function({as:n="h2",size:s,color:r,align:t,className:c,style:i,m:a,mt:f,mb:_,p:u,pb:p,...d},C){return l.createElement(n,{...d,ref:C,className:g(D.heading,s&&D[`size${s}`],r==="muted"&&D.colorMuted,r==="danger"&&D.colorDanger,t==="center"&&D.alignCenter,c),style:y({m:a,mt:f,mb:_,p:u,pb:p},i)})}),ot="_link_1qa7j_1",st="_size1_1qa7j_10",rt="_size2_1qa7j_16",lt="_size3_1qa7j_21",ee={link:ot,size1:st,size2:rt,size3:lt},ct=l.forwardRef(function({asChild:n,size:s,className:r,style:t,m:c,mt:i,mb:a,p:f,pb:_,children:u,...p},d){const C=g(ee.link,s&&ee[`size${s}`],r),m=y({m:c,mt:i,mb:a,p:f,pb:_},t);if(n&&l.isValidElement(u)){const h=u;return l.cloneElement(h,{...p,className:g(C,h.props.className),style:{...m,...h.props.style}})}return o.jsx("a",{...p,ref:d,className:C,style:m,children:u})}),it="_flex_v4ziu_1",at="_gap1_v4ziu_5",ut="_gap2_v4ziu_9",dt="_gap3_v4ziu_13",_t="_gap4_v4ziu_17",ft="_gap5_v4ziu_21",pt="_gap6_v4ziu_25",Ct="_directionRow_v4ziu_29",gt="_directionColumn_v4ziu_33",mt="_alignStart_v4ziu_37",ht="_alignCenter_v4ziu_41",vt="_alignEnd_v4ziu_45",xt="_alignBaseline_v4ziu_49",bt="_alignStretch_v4ziu_53",wt="_justifyStart_v4ziu_57",jt="_justifyCenter_v4ziu_61",yt="_justifyEnd_v4ziu_65",Rt="_justifyBetween_v4ziu_69",$t="_wrapWrap_v4ziu_73",kt="_wrapNowrap_v4ziu_77",k={flex:it,gap1:at,gap2:ut,gap3:dt,gap4:_t,gap5:ft,gap6:pt,directionRow:Ct,directionColumn:gt,alignStart:mt,alignCenter:ht,alignEnd:vt,alignBaseline:xt,alignStretch:bt,justifyStart:wt,justifyCenter:jt,justifyEnd:yt,justifyBetween:Rt,wrapWrap:$t,wrapNowrap:kt},V=e=>e[0].toUpperCase()+e.slice(1),qt=l.forwardRef(function({asChild:n,gap:s,direction:r,align:t,justify:c,wrap:i,className:a,style:f,m:_,mt:u,mb:p,p:d,pb:C,children:m,...h},v){const x=g(k.flex,s&&k[`gap${s}`],r&&k[`direction${V(r)}`],t&&k[`align${V(t)}`],c&&k[`justify${V(c)}`],i&&k[`wrap${V(i)}`],a),R=y({m:_,mt:u,mb:p,p:d,pb:C},f);if(n&&l.isValidElement(m)){const $=m;return l.cloneElement($,{...h,className:g(x,$.props.className),style:{...R,...$.props.style}})}return o.jsx("div",{...h,ref:v,className:x,style:R,children:m})}),Lt=l.forwardRef(function({style:n,m:s,mt:r,mb:t,p:c,pb:i,...a},f){return o.jsx("div",{...a,ref:f,style:y({m:s,mt:r,mb:t,p:c,pb:i},n)})}),Mt="_grid_erpqq_1",zt="_cols1_erpqq_5",It="_cols2_erpqq_9",St="_cols3_erpqq_13",Dt="_smCols2_erpqq_18",Tt="_smCols3_erpqq_21",Et="_mdCols2_erpqq_26",Nt="_mdCols3_erpqq_29",Ht="_gap1_erpqq_33",Ot="_gap2_erpqq_37",Pt="_gap3_erpqq_41",Vt="_gap4_erpqq_45",At="_gap5_erpqq_49",Zt="_gap6_erpqq_53",q={grid:Mt,cols1:zt,cols2:It,cols3:St,smCols2:Dt,smCols3:Tt,mdCols2:Et,mdCols3:Nt,gap1:Ht,gap2:Ot,gap3:Pt,gap4:Vt,gap5:At,gap6:Zt},Bt=l.forwardRef(function({columns:n,gap:s,className:r,style:t,m:c,mt:i,mb:a,p:f,pb:_,...u},p){const d=typeof n=="string"?[q[`cols${n}`]]:n?[n.initial&&q[`cols${n.initial}`],n.sm&&q[`smCols${n.sm}`],n.md&&q[`mdCols${n.md}`]]:[];return o.jsx("div",{...u,ref:p,className:g(q.grid,...d,s&&q[`gap${s}`],r),style:y({m:c,mt:i,mb:a,p:f,pb:_},t)})}),Ft="_badge_1twqf_2",Wt="_size1_1twqf_10",Gt="_size2_1twqf_19",Ut="_colorMuted_1twqf_28",Xt="_colorPrimary_1twqf_33",Kt="_colorSuccess_1twqf_38",Yt="_colorDanger_1twqf_43",Qt="_colorWarning_1twqf_48",Jt="_colorCyan_1twqf_53",en="_colorPurple_1twqf_58",tn="_colorOrange_1twqf_63",nn="_colorAccent_1twqf_68",on="_colorYellow_1twqf_73",sn="_solid_1twqf_81",rn="_wrap_1twqf_89",T={badge:Ft,size1:Wt,size2:Gt,colorMuted:Ut,colorPrimary:Xt,colorSuccess:Kt,colorDanger:Yt,colorWarning:Qt,colorCyan:Jt,colorPurple:en,colorOrange:tn,colorAccent:nn,colorYellow:on,solid:sn,wrap:rn},ln=e=>e[0].toUpperCase()+e.slice(1),cn=l.forwardRef(function({color:n="primary",variant:s="soft",size:r="1",wrap:t,className:c,style:i,m:a,mt:f,mb:_,p:u,pb:p,...d},C){return o.jsx("span",{...d,ref:C,className:g(T.badge,T[`color${ln(n)}`],s==="solid"&&T.solid,T[`size${r}`],t&&T.wrap,c),style:y({m:a,mt:f,mb:_,p:u,pb:p},i)})}),an="_separator_vao01_1",un="_full_vao01_7",te={separator:an,full:un},dn=l.forwardRef(function({size:n="4",className:s,...r},t){return o.jsx("span",{...r,ref:t,role:"separator",className:g(te.separator,n==="4"&&te.full,s)})}),_n="_card_10wsm_1",fn={card:_n},pn=l.forwardRef(function({className:n,style:s,m:r,mt:t,mb:c,p:i,pb:a,...f},_){return o.jsx("div",{...f,ref:_,className:g(fn.card,n),style:y({m:r,mt:t,mb:c,p:i,pb:a},s)})}),Cn="_scrollArea_ujp70_1",gn={scrollArea:Cn},mn=l.forwardRef(function({className:n,...s},r){return o.jsx("div",{...s,ref:r,className:g(gn.scrollArea,n)})}),hn="_spaceButton_kjhqx_14",vn="_rimRotate_kjhqx_1",xn="_glintSweep_kjhqx_1",bn="_iconOnly_kjhqx_97",wn="_lg_kjhqx_104",jn="_sm_kjhqx_110",yn="_micro_kjhqx_122",Rn="_stars_kjhqx_136",$n="_fullWidth_kjhqx_141",kn="_ember_kjhqx_147",qn="_label_kjhqx_157",Ln="_star_kjhqx_136",Mn="_twinkle_kjhqx_1",w={spaceButton:hn,rimRotate:vn,glintSweep:xn,iconOnly:bn,lg:wn,sm:jn,micro:yn,stars:Rn,fullWidth:$n,ember:kn,label:qn,star:Ln,twinkle:Mn};function zn(e){return function(){e|=0,e=e+1831565813|0;let n=Math.imul(e^e>>>15,1|e);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}function In(e){let n=2166136261;for(let s=0;s<e.length;s++)n^=e.charCodeAt(s),n=Math.imul(n,16777619);return n>>>0}const Sn=l.forwardRef(function({iconOnly:n,ember:s,size:r="md",fullWidth:t,animated:c=!0,className:i,children:a,...f},_){const u=l.useId(),p=l.useMemo(()=>{const C=zn(In(u));return Array.from({length:3},()=>({top:`${12+C()*58}%`,left:`${8+C()*80}%`,animationDelay:`${(C()*3.2).toFixed(2)}s`,animationDuration:`${(2.8+C()*1.8).toFixed(2)}s`}))},[u]),d=[w.spaceButton,n?w.iconOnly:"",s?w.ember:"",r!=="md"?w[r]:"",t?w.fullWidth:"",i??""].filter(Boolean).join(" ");return o.jsxs("button",{ref:_,className:d,"data-animated":c?void 0:"false",...f,children:[r!=="micro"&&o.jsx("span",{className:w.stars,"aria-hidden":!0,children:p.map((C,m)=>o.jsx("i",{className:w.star,style:C},m))}),o.jsx("span",{className:w.label,children:a})]})}),Dn="_wrap_dwcut_5",Tn="_sm_dwcut_30",En="_md_dwcut_36",Nn="_lg_dwcut_42",Hn="_orbit_dwcut_49",On="_planet_dwcut_58",Pn="_moon_dwcut_73",Vn="_label_dwcut_92",L={wrap:Dn,sm:Tn,md:En,lg:Nn,orbit:Hn,planet:On,"sp-loader-planet-pulse":"_sp-loader-planet-pulse_dwcut_1",moon:Pn,"sp-loader-orbit":"_sp-loader-orbit_dwcut_1",label:Vn,"sp-loader-reduced-pulse":"_sp-loader-reduced-pulse_dwcut_1"};function An({size:e="md",label:n,className:s}){return o.jsxs("div",{className:g(L.wrap,L[e],s),role:"status","aria-live":"polite","aria-label":n??"Loading",children:[o.jsxs("span",{className:L.orbit,children:[o.jsx("span",{className:L.planet}),o.jsx("span",{className:L.moon})]}),n&&o.jsx("span",{className:L.label,children:n})]})}const Zn="_content_1bxfq_6",Bn={content:Zn},Fn=350,Wn=80,ne=8,E=8;function Gn({triggerRef:e,tooltipId:n,show:s,hide:r,children:t}){const c=t.props;return l.cloneElement(t,{ref:e,"aria-describedby":n,onPointerEnter:i=>{var a;(a=c.onPointerEnter)==null||a.call(c,i),i.pointerType==="mouse"&&s()},onPointerLeave:i=>{var a;(a=c.onPointerLeave)==null||a.call(c,i),r()},onFocus:i=>{var a;(a=c.onFocus)==null||a.call(c,i),s(!0)},onBlur:i=>{var a;(a=c.onBlur)==null||a.call(c,i),r()},onClick:i=>{var a;(a=c.onClick)==null||a.call(c,i),r()}})}function ce({label:e,side:n="bottom",children:s}){const r=l.useId(),[t,c]=l.useState(!1),[i,a]=l.useState(null),f=l.useRef(null),_=l.useRef(null),u=l.useRef(null),p=l.useRef(null),d=()=>{u.current&&(clearTimeout(u.current),u.current=null),p.current&&(clearTimeout(p.current),p.current=null)},C=(h=!1)=>{if(d(),h){c(!0);return}u.current=setTimeout(()=>c(!0),Fn)},m=()=>{d(),p.current=setTimeout(()=>c(!1),Wn)};return l.useEffect(()=>d,[]),l.useLayoutEffect(()=>{const h=_.current;if(!h)return;if(!t){h.matches(":popover-open")&&h.hidePopover();return}h.matches(":popover-open")||h.showPopover();const v=f.current;if(!v)return;const x=v.getBoundingClientRect(),R=h.offsetWidth,$=h.offsetHeight,Z=x.bottom+ne,B=x.top-$-ne,Q=Z+$<=window.innerHeight-E,J=B>=E,Ie=n==="bottom"?Q||!J?Z:B:J||!Q?B:Z,Se=Math.min(Math.max(x.left+x.width/2-R/2,E),Math.max(window.innerWidth-R-E,E));a({top:Ie,left:Se})},[t,n,e]),!e||!l.isValidElement(s)?o.jsx(o.Fragment,{children:s}):o.jsxs(o.Fragment,{children:[o.jsx(Gn,{triggerRef:f,tooltipId:r,show:C,hide:m,children:s}),o.jsx("div",{ref:_,id:r,popover:"auto",role:"tooltip",className:Bn.content,style:i?{top:i.top,left:i.left}:void 0,onToggle:h=>{h.nativeEvent.newState==="closed"&&t&&c(!1)},children:e})]})}const Un="_group_1kj0b_3",Xn="_segment_1kj0b_14",Kn="_active_1kj0b_34",F={group:Un,segment:Xn,active:Kn};function Yn({options:e,value:n,onValueChange:s,className:r=""}){return o.jsx("div",{className:`${F.group} ${r}`,role:"group",children:e.map(t=>o.jsx(ce,{label:t.label,side:"bottom",children:o.jsx("button",{type:"button",className:`${F.segment} ${t.value===n?F.active:""}`,"aria-label":t.label,"aria-pressed":t.value===n,onClick:()=>{t.value!==n&&s(t.value)},children:t.icon})},t.value))})}const Qn="_root_1bvtq_2",Jn="_trigger_1bvtq_7",eo="_labelWrap_1bvtq_30",to="_sizer_1bvtq_8",no="_triggerLabel_1bvtq_70",oo="_chevron_1bvtq_77",so="_listbox_1bvtq_82",ro="_item_1bvtq_110",j={root:Qn,trigger:Jn,labelWrap:eo,sizer:to,triggerLabel:no,chevron:oo,listbox:so,item:ro},lo="_spaceControl_18935_17",co="_spaceSlider_18935_74",io="_spacePanel_18935_111",ao="_spaceInput_18935_34",uo="_spaceTextArea_18935_226",_o={spaceControl:lo,spaceSlider:co,spacePanel:io,spaceInput:ao,spaceTextArea:uo},z=_o,ie=l.createContext(null),G=()=>{const e=l.useContext(ie);if(!e)throw new Error("Select parts must be inside Select.Root");return e},ae=(e,n)=>`${e}-${encodeURIComponent(n)}`,ue=l.createContext(null),U=()=>{const e=l.useContext(ue);if(!e)throw new Error("Select parts must be inside Select.Root");return e};function fo(e){const n=[],s=r=>{l.Children.forEach(r,t=>{if(!l.isValidElement(t))return;const c=t.props;t.type===_e&&typeof c.value=="string"?n.push({value:c.value,label:c.children,disabled:c.disabled}):c.children&&s(c.children)})};return s(e),n}function po({value:e,onValueChange:n,disabled:s,children:r}){const[t,c]=l.useState(!1),[i,a]=l.useState(null),f=l.useId(),_=l.useRef(null),u=l.useRef(null),p=l.useMemo(()=>{let v=null;return l.Children.forEach(r,x=>{l.isValidElement(x)&&x.type===de&&(v=x.props.children)}),v},[r]),d=l.useMemo(()=>fo(p),[p]),C=l.useMemo(()=>d.filter(v=>!v.disabled).map(v=>v.value),[d]),m=l.useMemo(()=>d.map(v=>v.label),[d]),h=l.useCallback(v=>{var x;return((x=d.find(R=>R.value===v))==null?void 0:x.label)??null},[d]);return l.useEffect(()=>{if(!t)return;const v=x=>{u.current&&!u.current.contains(x.target)&&c(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[t]),o.jsx(ie.Provider,{value:{value:e,onValueChange:n,disabled:s,open:t,setOpen:c,highlighted:i,setHighlighted:a,listboxId:f,values:C,itemLabels:m,labelFor:h},children:o.jsx(ue.Provider,{value:_,children:o.jsx("div",{ref:u,className:j.root,children:r})})})}function Co({placeholder:e,animated:n=!0,className:s,...r}){const t=G(),c=U(),i=t.value?t.labelFor(t.value):null,a=f=>{t.setHighlighted(f??t.values[0]??null),t.setOpen(!0)};return o.jsxs("button",{type:"button",...r,ref:c,disabled:t.disabled,className:g(j.trigger,z.spaceControl,"spSelectTrigger",s),"data-animated":n?void 0:"false","data-state":t.open?"open":"closed","aria-haspopup":"listbox","aria-expanded":t.open,"aria-controls":t.listboxId,onClick:()=>t.open?t.setOpen(!1):a(t.value||null),onKeyDown:f=>{(f.key==="ArrowDown"||f.key==="Enter"||f.key===" ")&&(f.preventDefault(),a(t.value||null))},children:[o.jsxs("span",{className:j.labelWrap,children:[o.jsxs("span",{className:j.sizer,"data-sizer":"","aria-hidden":"true",children:[t.itemLabels.map((f,_)=>o.jsx("span",{children:f},_)),e&&o.jsx("span",{children:e})]}),o.jsx("span",{className:j.triggerLabel,children:i??e??""})]}),o.jsx("svg",{className:j.chevron,width:"9",height:"9",viewBox:"0 0 9 9","aria-hidden":"true",children:o.jsx("path",{d:"M0.5 3 L4.5 7 L8.5 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})]})}function de({className:e,position:n,animated:s=!0,children:r}){const t=G(),c=U(),i=l.useRef(null),[a,f]=l.useState(null),[_,u]=l.useState(null);l.useLayoutEffect(()=>{if(t.open&&c.current){const d=c.current.getBoundingClientRect();f(c.current.offsetWidth);const C=window.innerHeight-d.bottom-16;u(Math.min(380,Math.max(120,C)))}},[t.open,c]),l.useEffect(()=>{var d;t.open&&((d=i.current)==null||d.focus())},[t.open]);const p=d=>{const C=t.highlighted?t.values.indexOf(t.highlighted):-1,m=Math.min(Math.max(C+d,0),t.values.length-1);t.setHighlighted(t.values[m]??null)};return o.jsx("div",{ref:i,id:t.listboxId,role:"listbox",tabIndex:-1,hidden:!t.open,"aria-activedescendant":t.highlighted?ae(t.listboxId,t.highlighted):void 0,className:g(j.listbox,z.spacePanel,e),"data-animated":s?void 0:"false",style:a!=null||_!=null?{...a!=null?{"--_select-trigger-width":`${a}px`}:{},..._!=null?{maxHeight:`${_}px`}:{}}:void 0,onKeyDown:d=>{var C,m;d.key==="Escape"?(d.stopPropagation(),t.setOpen(!1),(C=c.current)==null||C.focus()):d.key==="ArrowDown"?(d.preventDefault(),p(1)):d.key==="ArrowUp"?(d.preventDefault(),p(-1)):d.key==="Home"?(d.preventDefault(),t.setHighlighted(t.values[0]??null)):d.key==="End"?(d.preventDefault(),t.setHighlighted(t.values[t.values.length-1]??null)):d.key==="Enter"||d.key===" "?(d.preventDefault(),t.highlighted&&(t.onValueChange(t.highlighted),t.setOpen(!1),(m=c.current)==null||m.focus())):d.key==="Tab"&&t.setOpen(!1)},children:r})}function _e({value:e,disabled:n,children:s}){const r=G(),t=U(),c=r.value===e,i=r.highlighted===e;return o.jsx("div",{id:ae(r.listboxId,e),role:"option","aria-selected":c,"aria-disabled":n||void 0,"data-highlighted":i?"":void 0,className:g(j.item,"spSelectItem"),onMouseEnter:()=>!n&&r.setHighlighted(e),onClick:()=>{var a;n||(r.onValueChange(e),r.setOpen(!1),(a=t.current)==null||a.focus())},children:s})}const go=Object.freeze(Object.defineProperty({__proto__:null,Content:de,Item:_e,Root:po,Trigger:Co},Symbol.toStringTag,{value:"Module"})),mo="_root_1lx7y_1",ho="_input_1lx7y_7",vo="_slot_1lx7y_17",W={root:mo,input:ho,slot:vo},xo=l.forwardRef(function({className:n,style:s,animated:r=!0,children:t,...c},i){return o.jsxs("div",{className:g(W.root,z.spaceInput,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:s,children:[t,o.jsx("input",{...c,ref:i,className:g(W.input,"spTextFieldInput")})]})});function bo({children:e}){return o.jsx("span",{className:W.slot,children:e})}const wo=Object.freeze(Object.defineProperty({__proto__:null,Root:xo,Slot:bo},Symbol.toStringTag,{value:"Module"})),jo="_root_1qu6w_1",yo="_textarea_1qu6w_6",oe={root:jo,textarea:yo},Ro=l.forwardRef(function({className:n,style:s,animated:r=!0,...t},c){return o.jsx("div",{className:g(oe.root,z.spaceInput,z.spaceTextArea,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:s,children:o.jsx("textarea",{...t,ref:c,className:g(oe.textarea,"spTextAreaInput")})})}),$o="_root_14a1b_1",ko="_track_14a1b_12",qo="_range_14a1b_22",Lo="_thumb_14a1b_28",Mo="_input_14a1b_38",N={root:$o,track:ko,range:qo,thumb:Lo,input:Mo},zo=l.forwardRef(function({value:n,onValueChange:s,min:r,max:t,step:c,disabled:i,className:a,"aria-label":f},_){const u=n[0]??r,p=t===r?0:(u-r)/(t-r)*100;return o.jsxs("span",{className:g(N.root,z.spaceSlider,a),"data-disabled":i||void 0,children:[o.jsx("span",{className:g(N.track,"spSliderTrack"),children:o.jsx("span",{className:g(N.range,"spSliderRange"),style:{width:`${p}%`}})}),o.jsx("span",{className:g(N.thumb,"spSliderThumb"),style:{left:`${p}%`}}),o.jsx("input",{ref:_,type:"range",className:g(N.input,"spSliderInput"),value:u,min:r,max:t,step:c,disabled:i,"aria-label":f,onChange:d=>s([Number(d.target.value)])})]})}),Io="_root_1qhel_2",So="_item_1qhel_8",Do="_selfLabeled_1qhel_15",To="_input_1qhel_19",Eo="_orb_1qhel_35",M={root:Io,item:So,selfLabeled:Do,input:To,orb:Eo},fe=l.createContext(null);function No({value:e,onValueChange:n,disabled:s,className:r,children:t}){const c=l.useId();return o.jsx(fe.Provider,{value:{value:e,onValueChange:n,disabled:s,name:c},children:o.jsx("div",{role:"radiogroup",className:g(M.root,r),children:t})})}function Ho({value:e,disabled:n,children:s}){const r=l.useContext(fe);if(!r)throw new Error("RadioGroup.Item must be inside RadioGroup.Root");const t=n||r.disabled,c=o.jsxs(o.Fragment,{children:[o.jsx("input",{type:"radio",className:M.input,name:r.name,value:e,checked:r.value===e,disabled:t,onChange:()=>r.onValueChange(e)}),o.jsx("span",{className:g(M.orb,"spRadioOrb"),"aria-hidden":"true"})]});return s==null?o.jsx("span",{className:M.item,children:c}):o.jsxs("label",{className:g(M.item,M.selfLabeled),children:[c,s]})}const Oo=Object.freeze(Object.defineProperty({__proto__:null,Item:Ho,Root:No},Symbol.toStringTag,{value:"Module"})),Po="_progress_1cre6_16",Vo={progress:Po};function Ao({value:e,max:n=100,className:s,style:r,...t}){const c=n>0?Math.min(Math.max(e/n*100,0),100):0;return o.jsx("div",{...t,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":n,className:g(Vo.progress,s),style:r,children:o.jsx("div",{style:{width:`${c}%`,height:"100%"}})})}const b={width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0};function Zo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M3.5 5.00006C3.22386 5.00006 3 5.22392 3 5.50006L3 11.5001C3 11.7762 3.22386 12.0001 3.5 12.0001L11.5 12.0001C11.7761 12.0001 12 11.7762 12 11.5001L12 5.50006C12 5.22392 11.7761 5.00006 11.5 5.00006L10.25 5.00006C9.97386 5.00006 9.75 4.7762 9.75 4.50006C9.75 4.22392 9.97386 4.00006 10.25 4.00006L11.5 4.00006C12.3284 4.00006 13 4.67163 13 5.50006L13 11.5001C13 12.3285 12.3284 13.0001 11.5 13.0001L3.5 13.0001C2.67157 13.0001 2 12.3285 2 11.5001L2 5.50006C2 4.67163 2.67157 4.00006 3.5 4.00006L4.75 4.00006C5.02614 4.00006 5.25 4.22392 5.25 4.50006C5.25 4.7762 5.02614 5.00006 4.75 5.00006L3.5 5.00006ZM7 1.6364L5.5682 3.0682C5.39246 3.24393 5.10754 3.24393 4.9318 3.0682C4.75607 2.89246 4.75607 2.60754 4.9318 2.4318L7.1818 0.181802C7.26619 0.09741 7.38065 0.049999 7.5 0.049999C7.61935 0.049999 7.73381 0.09741 7.8182 0.181802L10.0682 2.4318C10.2439 2.60754 10.2439 2.89246 10.0682 3.0682C9.89246 3.24393 9.60754 3.24393 9.4318 3.0682L8 1.6364L8 8.5C8 8.77614 7.77614 9 7.5 9C7.22386 9 7 8.77614 7 8.5L7 1.6364Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Bo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Fo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Wo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Go(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.25769 1.35248 6.86058 1.92336 7.50002 2.93545C8.13946 1.92336 8.74235 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Uo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2ZM9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2ZM2 9.5C2 9.22386 2.22386 9 2.5 9H5.5C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5ZM9 9.5C9 9.22386 9.22386 9 9.5 9H12.5C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Xo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ko(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Yo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Qo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Jo(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31166C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function es(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ts(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ns(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M4.89346 2.35248C3.49195 2.35248 2.35248 3.49359 2.35248 4.90532C2.35248 6.38164 3.20954 7.9168 4.37255 9.33522C5.39396 10.581 6.59464 11.6702 7.50002 12.4778C8.4054 11.6702 9.60608 10.581 10.6275 9.33522C11.7905 7.9168 12.6476 6.38164 12.6476 4.90532C12.6476 3.49359 11.5081 2.35248 10.1066 2.35248C9.27059 2.35248 8.81894 2.64323 8.5397 2.95843C8.27877 3.25295 8.14623 3.58566 8.02501 3.88993C8.00391 3.9429 7.98315 3.99501 7.96211 4.04591C7.88482 4.23294 7.7024 4.35494 7.50002 4.35494C7.29765 4.35494 7.11523 4.23295 7.03793 4.04592C7.01689 3.99501 6.99612 3.94289 6.97502 3.8899C6.8538 3.58564 6.72126 3.25294 6.46034 2.95843C6.18109 2.64323 5.72945 2.35248 4.89346 2.35248ZM1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.0084 1.35248 6.73504 1.76049 7.20884 2.2953C7.32062 2.42147 7.41686 2.55382 7.50002 2.68545C7.58318 2.55382 7.67941 2.42147 7.79119 2.2953C8.265 1.76049 8.99164 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function os(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ss(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function rs(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M6.1584 3.13508C5.95694 3.32394 5.94673 3.64036 6.13559 3.84182L9.56499 7.49991L6.13559 11.158C5.94673 11.3595 5.95694 11.6759 6.1584 11.8647C6.35986 12.0536 6.67628 12.0434 6.86514 11.8419L10.6151 7.84182C10.7954 7.64946 10.7954 7.35036 10.6151 7.158L6.86514 3.15801C6.67628 2.95655 6.35986 2.94634 6.1584 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ls(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M8.84182 3.13508C9.04328 3.32394 9.05348 3.64036 8.86462 3.84182L5.43523 7.49991L8.86462 11.158C9.05348 11.3595 9.04328 11.6759 8.84182 11.8647C8.64036 12.0536 8.32394 12.0434 8.13508 11.8419L4.38508 7.84182C4.20477 7.64946 4.20477 7.35036 4.38508 7.158L8.13508 3.15801C8.32394 2.95655 8.64036 2.94634 8.84182 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function cs(e){return o.jsx("svg",{...b,...e,children:o.jsx("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function pe(e){return o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",...e,children:o.jsx("path",{d:"M11.8 3.2a.6.6 0 0 0-.85 0L7.5 6.65 4.05 3.2a.6.6 0 1 0-.85.85L6.65 7.5 3.2 10.95a.6.6 0 1 0 .85.85L7.5 8.35l3.45 3.45a.6.6 0 0 0 .85-.85L8.35 7.5l3.45-3.45a.6.6 0 0 0 0-.85Z",fill:"currentColor"})})}const is="_dialog_1qqku_2",as="_inner_1qqku_34",us="_size4_1qqku_39",ds="_title_1qqku_43",_s="_closeX_1qqku_51",H={dialog:is,inner:as,size4:us,title:ds,closeX:_s};let A=0;const Ce=l.createContext(null),I=()=>{const e=l.useContext(Ce);if(!e)throw new Error("Dialog parts must be inside Dialog.Root");return e};function X(e){return function({open:s,onOpenChange:r,children:t}){const[c,i]=l.useState(!1),a=s!==void 0,f=a?s:c,_=m=>{a||i(m),r==null||r(m)},u=l.useId(),p=l.useId(),[d,C]=l.useState(!1);return o.jsx(Ce.Provider,{value:{open:f,setOpen:_,titleId:u,descId:p,alert:e,hasDesc:d,setHasDesc:C},children:t})}}const fs=X(!1),ge=(e,n)=>{if(!l.isValidElement(e))return e;const s=e;return l.cloneElement(s,{onClick:r=>{var t,c;(c=(t=s.props).onClick)==null||c.call(t,r),n()}})};function me({children:e}){const n=I();return o.jsx(o.Fragment,{children:ge(e,()=>n.setOpen(!0))})}function K({children:e}){const n=I();return o.jsx(o.Fragment,{children:ge(e,()=>n.setOpen(!1))})}function he({size:e="3",maxWidth:n,className:s,style:r,children:t,...c}){const i=I(),a=l.useRef(null),f=l.useRef(!1),_=l.useRef(!1);return l.useEffect(()=>{const u=a.current;u&&(i.open&&!u.open?u.showModal():!i.open&&u.open&&u.close())},[i.open]),l.useEffect(()=>{if(i.open)return A+=1,A===1&&(document.body.style.overflow="hidden"),()=>{A-=1,A===0&&(document.body.style.overflow="")}},[i.open]),o.jsx("dialog",{...c,ref:a,role:i.alert?"alertdialog":void 0,"aria-labelledby":i.titleId,"aria-describedby":i.hasDesc?i.descId:void 0,className:g(H.dialog,"spDialog",e==="4"&&H.size4,s),style:{...n?{maxWidth:n}:null,...r},onKeyDownCapture:u=>{var p,d;u.key==="Escape"&&((p=a.current)!=null&&p.querySelector("dialog[open]")||(d=a.current)!=null&&d.querySelector('[role="listbox"]:not([hidden])')&&(f.current=!0))},onCancel:u=>{if(u.preventDefault(),f.current){f.current=!1;return}i.setOpen(!1)},onClose:()=>{i.open&&i.setOpen(!1)},onPointerDown:u=>{_.current=u.target===a.current},onClick:u=>{!i.alert&&u.target===a.current&&_.current&&i.setOpen(!1)},children:o.jsxs("div",{className:H.inner,children:[!i.alert&&o.jsx("button",{type:"button",className:H.closeX,"aria-label":"Close",onClick:()=>i.setOpen(!1),children:o.jsx(pe,{width:16,height:16})}),t]})})}function ve({className:e,...n}){const s=I();return o.jsx(le,{as:"h2",size:"5",...n,id:s.titleId,className:g(H.title,e)})}function xe(e){const n=I(),{setHasDesc:s}=n;return l.useLayoutEffect(()=>(s(!0),()=>s(!1)),[s]),o.jsx(re,{as:"p",...e,id:n.descId})}const ps=Object.freeze(Object.defineProperty({__proto__:null,Close:K,Content:he,Description:xe,Root:fs,Title:ve,Trigger:me,makeRoot:X,useDialog:I},Symbol.toStringTag,{value:"Module"})),Cs=X(!0),gs=me,ms=he,hs=ve,vs=xe,xs=K,bs=K,ws=Object.freeze(Object.defineProperty({__proto__:null,Action:bs,Cancel:xs,Content:ms,Description:vs,Root:Cs,Title:hs,Trigger:gs},Symbol.toStringTag,{value:"Module"})),js="_menu_1hwyv_1",ys="_label_1hwyv_16",Rs="_item_1hwyv_26",$s="_danger_1hwyv_45",ks="_separator_1hwyv_49",O={menu:js,label:ys,item:Rs,danger:$s,separator:ks},be=l.createContext(null),Y=()=>{const e=l.useContext(be);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},we=l.createContext(null),je=()=>{const e=l.useContext(we);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},ye=l.createContext(null),qs=()=>{const e=l.useContext(ye);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},Re=l.createContext(null),$e=()=>{const e=l.useContext(Re);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e},ke=l.createContext(null),qe=()=>{const e=l.useContext(ke);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e};function Ls(e){return e.current?(e.current=!1,!0):!1}function se(e){e.current=!0}function Ms({children:e}){const[n,s]=l.useState(!1),r=l.useId(),t=l.useRef(null),c=l.useRef(null),i=l.useRef(!1),a=l.useRef(!1);return o.jsx(be.Provider,{value:{open:n,setOpen:s,menuId:r},children:o.jsx(we.Provider,{value:t,children:o.jsx(ye.Provider,{value:c,children:o.jsx(Re.Provider,{value:i,children:o.jsx(ke.Provider,{value:a,children:e})})})})})}function zs({children:e}){const n=Y(),s=je(),r=$e();if(!l.isValidElement(e))return null;const t=e;return l.cloneElement(t,{ref:s,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.menuId,onClick:c=>{var i,a;(a=(i=t.props).onClick)==null||a.call(i,c),!Ls(r)&&n.setOpen(!n.open)}})}function Is({align:e="start",children:n}){const s=Y(),r=je(),t=qs(),c=$e(),i=qe(),[a,f]=l.useState(null);return l.useLayoutEffect(()=>{var u;const _=t.current;if(_)if(s.open){const p=r.current;if(p){const d=p.getBoundingClientRect(),C=e==="end"?"auto":d.left,m=e==="end"?window.innerWidth-d.right:"auto";f({top:d.bottom+6,left:C,right:m})}_.showPopover(),(u=_.querySelector('[role="menuitem"]'))==null||u.focus()}else _.matches(":popover-open")&&_.hidePopover()},[s.open,e,t,r]),l.useEffect(()=>{if(!s.open)return;const _=s.setOpen,u=()=>_(!1);return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[s.open,s.setOpen]),o.jsx("div",{ref:t,id:s.menuId,role:"menu",popover:"auto",className:O.menu,style:a?{top:a.top,left:a.left==="auto"?"auto":a.left,right:a.right==="auto"?"auto":a.right}:void 0,onToggle:_=>{if(_.nativeEvent.newState==="closed"){const u=i.current;i.current=!1,u||(c.current=!0,setTimeout(()=>{c.current=!1},300)),s.open&&s.setOpen(!1)}},onKeyDown:_=>{var d,C,m,h,v,x;const u=Array.from(((d=t.current)==null?void 0:d.querySelectorAll('[role="menuitem"]'))??[]),p=u.indexOf(document.activeElement);_.key==="ArrowDown"?(_.preventDefault(),(C=u[Math.min(p+1,u.length-1)])==null||C.focus()):_.key==="ArrowUp"?(_.preventDefault(),(m=u[Math.max(p-1,0)])==null||m.focus()):_.key==="Home"?(_.preventDefault(),(h=u[0])==null||h.focus()):_.key==="End"?(_.preventDefault(),(v=u[u.length-1])==null||v.focus()):_.key==="Escape"&&(s.setOpen(!1),(x=r.current)==null||x.focus())},children:n})}function Ss({children:e}){return o.jsx("div",{className:O.label,children:e})}function Ds({asChild:e,color:n,onSelect:s,children:r}){const t=Y(),c=qe(),i=g(O.item,n==="danger"&&O.danger),a=()=>{se(c),t.setOpen(!1),s==null||s()};if(e&&l.isValidElement(r)){const f=r,{className:_,onClick:u,children:p,role:d,tabIndex:C,...m}=f.props,h=f.ref;return l.createElement(f.type,{key:f.key,ref:h,role:"menuitem",tabIndex:-1,...m,className:g(i,_),onClick:v=>{u==null||u(v),se(c),t.setOpen(!1)}},p)}return o.jsx("button",{type:"button",role:"menuitem",tabIndex:-1,className:i,onClick:a,children:r})}function Ts(){return o.jsx("div",{role:"separator",className:O.separator})}const Es=Object.freeze(Object.defineProperty({__proto__:null,Content:Is,Item:Ds,Label:Ss,Root:Ms,Separator:Ts,Trigger:zs},Symbol.toStringTag,{value:"Module"})),Ns="_list_1hc3r_19",Hs="_trigger_1hc3r_28",Le={list:Ns,trigger:Hs},Me=l.createContext(null),ze=()=>{const e=l.useContext(Me);if(!e)throw new Error("Tabs parts must be inside Tabs.Root");return e};function Os({value:e,onValueChange:n,className:s,children:r}){const t=l.useId();return o.jsx(Me.Provider,{value:{value:e,onValueChange:n,id:t},children:o.jsx("div",{className:s,children:r})})}function Ps({children:e}){return o.jsx("div",{role:"tablist",className:g(Le.list,"spTabsList"),onKeyDown:n=>{const s=Array.from(n.currentTarget.querySelectorAll('[role="tab"]')),r=s.indexOf(document.activeElement);if(r!==-1){if(n.key==="ArrowRight"){n.preventDefault();const t=s[(r+1)%s.length];t.focus(),t.click()}else if(n.key==="ArrowLeft"){n.preventDefault();const t=s[(r-1+s.length)%s.length];t.focus(),t.click()}else if(n.key==="Home"){n.preventDefault();const t=s[0];t.focus(),t.click()}else if(n.key==="End"){n.preventDefault();const t=s[s.length-1];t.focus(),t.click()}}},children:e})}function Vs({value:e,className:n,children:s,...r}){const t=ze(),c=t.value===e;return o.jsx("button",{...r,type:"button",role:"tab",id:`${t.id}-tab-${e}`,"aria-selected":c,"aria-controls":`${t.id}-panel-${e}`,tabIndex:c?0:-1,"data-state":c?"active":"inactive",className:g(Le.trigger,"spTabsTrigger",n),onClick:()=>t.onValueChange(e),children:s})}function As({value:e,children:n}){const s=ze();return s.value!==e?null:o.jsx("div",{role:"tabpanel",id:`${s.id}-panel-${e}`,"aria-labelledby":`${s.id}-tab-${e}`,children:n})}const Zs=Object.freeze(Object.defineProperty({__proto__:null,Content:As,List:Ps,Root:Os,Trigger:Vs},Symbol.toStringTag,{value:"Module"}));exports.AlertDialog=ws;exports.Badge=cn;exports.BookmarkIcon=cs;exports.Box=Lt;exports.Button=Sn;exports.Card=pn;exports.ChatBubbleIcon=Bo;exports.CheckIcon=Ko;exports.ChevronDownIcon=ss;exports.ChevronLeftIcon=ls;exports.ChevronRightIcon=rs;exports.ChevronUpIcon=os;exports.Dialog=ps;exports.DropdownMenu=Es;exports.EnterFullScreenIcon=Xo;exports.ExitFullScreenIcon=Uo;exports.Flex=qt;exports.Grid=Bt;exports.Heading=le;exports.HeartFilledIcon=Go;exports.HeartIcon=ns;exports.IconToggle=Yn;exports.Link=ct;exports.Loader=An;exports.MagnifyingGlassIcon=ts;exports.MinusIcon=es;exports.Pencil1Icon=Wo;exports.PersonIcon=Jo;exports.PlusIcon=Fo;exports.Progress=Ao;exports.QuestionMarkCircledIcon=Qo;exports.RadioGroup=Oo;exports.ScrollArea=mn;exports.Select=go;exports.Separator=dn;exports.Share2Icon=Zo;exports.Slider=zo;exports.Tabs=Zs;exports.Text=re;exports.TextArea=Ro;exports.TextField=wo;exports.Tooltip=ce;exports.TrashIcon=Yo;exports.XIcon=pe;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),n=require("react/jsx-runtime"),H={0:"0",1:"var(--spacing-xs)",2:"var(--spacing-sm)",3:"var(--spacing-md)",4:"var(--spacing-md)",5:"var(--spacing-lg)",6:"var(--spacing-xl)"};function z({m:e,mt:t,mb:o,p:r,pb:s},c){const i={...e!==void 0&&{margin:H[e]},...t!==void 0&&{marginTop:H[t]},...o!==void 0&&{marginBottom:H[o]},...r!==void 0&&{padding:H[r]},...s!==void 0&&{paddingBottom:H[s]},...c};return Object.keys(i).length>0?i:void 0}function m(...e){return e.filter(Boolean).join(" ")}const qe="_text_4vcq4_1",Le="_size1_4vcq4_5",Ie="_size2_4vcq4_11",ze="_size3_4vcq4_16",Me="_size4_4vcq4_21",Se="_size5_4vcq4_27",De="_size6_4vcq4_33",Ne="_medium_4vcq4_39",Ee="_bold_4vcq4_43",Te="_colorMuted_4vcq4_47",He="_colorDanger_4vcq4_51",Ve="_colorSuccess_4vcq4_55",Ae="_colorWarning_4vcq4_59",X={text:qe,size1:Le,size2:Ie,size3:ze,size4:Me,size5:Se,size6:De,medium:Ne,bold:Ee,colorMuted:Te,colorDanger:He,colorSuccess:Ve,colorWarning:Ae},le=l.forwardRef(function({as:t="span",size:o,weight:r,color:s,className:c,style:i,m:u,mt:_,mb:C,p:a,pb:p,...v},d){return l.createElement(t,{...v,ref:d,className:m(X.text,o&&X[`size${o}`],r&&X[r],s&&X[`color${s[0].toUpperCase()}${s.slice(1)}`],c),style:z({m:u,mt:_,mb:C,p:a,pb:p},i)})}),Ze="_heading_vs4zk_1",Be="_size4_vs4zk_7",Pe="_size5_vs4zk_13",Oe="_size6_vs4zk_19",Fe="_size7_vs4zk_25",We="_size8_vs4zk_31",Ge="_size9_vs4zk_37",Ue="_colorMuted_vs4zk_43",Xe="_colorDanger_vs4zk_47",Ke="_alignCenter_vs4zk_51",V={heading:Ze,size4:Be,size5:Pe,size6:Oe,size7:Fe,size8:We,size9:Ge,colorMuted:Ue,colorDanger:Xe,alignCenter:Ke},ce=l.forwardRef(function({as:t="h2",size:o,color:r,align:s,className:c,style:i,m:u,mt:_,mb:C,p:a,pb:p,...v},d){return l.createElement(t,{...v,ref:d,className:m(V.heading,o&&V[`size${o}`],r==="muted"&&V.colorMuted,r==="danger"&&V.colorDanger,s==="center"&&V.alignCenter,c),style:z({m:u,mt:_,mb:C,p:a,pb:p},i)})}),Ye="_link_1qa7j_1",Qe="_size1_1qa7j_10",Je="_size2_1qa7j_16",et="_size3_1qa7j_21",te={link:Ye,size1:Qe,size2:Je,size3:et},tt=l.forwardRef(function({asChild:t,size:o,className:r,style:s,m:c,mt:i,mb:u,p:_,pb:C,children:a,...p},v){const d=m(te.link,o&&te[`size${o}`],r),g=z({m:c,mt:i,mb:u,p:_,pb:C},s);if(t&&l.isValidElement(a)){const h=a;return l.cloneElement(h,{...p,className:m(d,h.props.className),style:{...g,...h.props.style}})}return n.jsx("a",{...p,ref:v,className:d,style:g,children:a})}),nt="_flex_v4ziu_1",ot="_gap1_v4ziu_5",st="_gap2_v4ziu_9",rt="_gap3_v4ziu_13",lt="_gap4_v4ziu_17",ct="_gap5_v4ziu_21",it="_gap6_v4ziu_25",at="_directionRow_v4ziu_29",ut="_directionColumn_v4ziu_33",dt="_alignStart_v4ziu_37",_t="_alignCenter_v4ziu_41",ft="_alignEnd_v4ziu_45",pt="_alignBaseline_v4ziu_49",Ct="_alignStretch_v4ziu_53",gt="_justifyStart_v4ziu_57",mt="_justifyCenter_v4ziu_61",vt="_justifyEnd_v4ziu_65",ht="_justifyBetween_v4ziu_69",xt="_wrapWrap_v4ziu_73",wt="_wrapNowrap_v4ziu_77",M={flex:nt,gap1:ot,gap2:st,gap3:rt,gap4:lt,gap5:ct,gap6:it,directionRow:at,directionColumn:ut,alignStart:dt,alignCenter:_t,alignEnd:ft,alignBaseline:pt,alignStretch:Ct,justifyStart:gt,justifyCenter:mt,justifyEnd:vt,justifyBetween:ht,wrapWrap:xt,wrapNowrap:wt},K=e=>e[0].toUpperCase()+e.slice(1),bt=l.forwardRef(function({asChild:t,gap:o,direction:r,align:s,justify:c,wrap:i,className:u,style:_,m:C,mt:a,mb:p,p:v,pb:d,children:g,...h},w){const j=m(M.flex,o&&M[`gap${o}`],r&&M[`direction${K(r)}`],s&&M[`align${K(s)}`],c&&M[`justify${K(c)}`],i&&M[`wrap${K(i)}`],u),y=z({m:C,mt:a,mb:p,p:v,pb:d},_);if(t&&l.isValidElement(g)){const k=g;return l.cloneElement(k,{...h,className:m(j,k.props.className),style:{...y,...k.props.style}})}return n.jsx("div",{...h,ref:w,className:j,style:y,children:g})}),jt=l.forwardRef(function({style:t,m:o,mt:r,mb:s,p:c,pb:i,...u},_){return n.jsx("div",{...u,ref:_,style:z({m:o,mt:r,mb:s,p:c,pb:i},t)})}),yt="_grid_erpqq_1",Rt="_cols1_erpqq_5",$t="_cols2_erpqq_9",kt="_cols3_erpqq_13",qt="_smCols2_erpqq_18",Lt="_smCols3_erpqq_21",It="_mdCols2_erpqq_26",zt="_mdCols3_erpqq_29",Mt="_gap1_erpqq_33",St="_gap2_erpqq_37",Dt="_gap3_erpqq_41",Nt="_gap4_erpqq_45",Et="_gap5_erpqq_49",Tt="_gap6_erpqq_53",S={grid:yt,cols1:Rt,cols2:$t,cols3:kt,smCols2:qt,smCols3:Lt,mdCols2:It,mdCols3:zt,gap1:Mt,gap2:St,gap3:Dt,gap4:Nt,gap5:Et,gap6:Tt},Ht=l.forwardRef(function({columns:t,gap:o,className:r,style:s,m:c,mt:i,mb:u,p:_,pb:C,...a},p){const v=typeof t=="string"?[S[`cols${t}`]]:t?[t.initial&&S[`cols${t.initial}`],t.sm&&S[`smCols${t.sm}`],t.md&&S[`mdCols${t.md}`]]:[];return n.jsx("div",{...a,ref:p,className:m(S.grid,...v,o&&S[`gap${o}`],r),style:z({m:c,mt:i,mb:u,p:_,pb:C},s)})}),Vt="_badge_1twqf_2",At="_size1_1twqf_10",Zt="_size2_1twqf_19",Bt="_colorMuted_1twqf_28",Pt="_colorPrimary_1twqf_33",Ot="_colorSuccess_1twqf_38",Ft="_colorDanger_1twqf_43",Wt="_colorWarning_1twqf_48",Gt="_colorCyan_1twqf_53",Ut="_colorPurple_1twqf_58",Xt="_colorOrange_1twqf_63",Kt="_colorAccent_1twqf_68",Yt="_colorYellow_1twqf_73",Qt="_solid_1twqf_81",Jt="_wrap_1twqf_89",A={badge:Vt,size1:At,size2:Zt,colorMuted:Bt,colorPrimary:Pt,colorSuccess:Ot,colorDanger:Ft,colorWarning:Wt,colorCyan:Gt,colorPurple:Ut,colorOrange:Xt,colorAccent:Kt,colorYellow:Yt,solid:Qt,wrap:Jt},en=e=>e[0].toUpperCase()+e.slice(1),tn=l.forwardRef(function({color:t="primary",variant:o="soft",size:r="1",wrap:s,className:c,style:i,m:u,mt:_,mb:C,p:a,pb:p,...v},d){return n.jsx("span",{...v,ref:d,className:m(A.badge,A[`color${en(t)}`],o==="solid"&&A.solid,A[`size${r}`],s&&A.wrap,c),style:z({m:u,mt:_,mb:C,p:a,pb:p},i)})}),nn="_separator_vao01_1",on="_full_vao01_7",ne={separator:nn,full:on},sn=l.forwardRef(function({size:t="4",className:o,...r},s){return n.jsx("span",{...r,ref:s,role:"separator",className:m(ne.separator,t==="4"&&ne.full,o)})}),rn="_card_10wsm_1",ln={card:rn},cn=l.forwardRef(function({className:t,style:o,m:r,mt:s,mb:c,p:i,pb:u,..._},C){return n.jsx("div",{..._,ref:C,className:m(ln.card,t),style:z({m:r,mt:s,mb:c,p:i,pb:u},o)})}),an="_scrollArea_ujp70_1",un={scrollArea:an},dn=l.forwardRef(function({className:t,...o},r){return n.jsx("div",{...o,ref:r,className:m(un.scrollArea,t)})}),_n="_spaceButton_kjhqx_14",fn="_rimRotate_kjhqx_1",pn="_glintSweep_kjhqx_1",Cn="_iconOnly_kjhqx_97",gn="_lg_kjhqx_104",mn="_sm_kjhqx_110",vn="_micro_kjhqx_122",hn="_stars_kjhqx_136",xn="_fullWidth_kjhqx_141",wn="_ember_kjhqx_147",bn="_label_kjhqx_157",jn="_star_kjhqx_136",yn="_twinkle_kjhqx_1",L={spaceButton:_n,rimRotate:fn,glintSweep:pn,iconOnly:Cn,lg:gn,sm:mn,micro:vn,stars:hn,fullWidth:xn,ember:wn,label:bn,star:jn,twinkle:yn};function Rn(e){return function(){e|=0,e=e+1831565813|0;let t=Math.imul(e^e>>>15,1|e);return t=t+Math.imul(t^t>>>7,61|t)^t,((t^t>>>14)>>>0)/4294967296}}function $n(e){let t=2166136261;for(let o=0;o<e.length;o++)t^=e.charCodeAt(o),t=Math.imul(t,16777619);return t>>>0}const ie=l.forwardRef(function({iconOnly:t,ember:o,size:r="md",fullWidth:s,animated:c=!0,className:i,children:u,..._},C){const a=l.useId(),p=l.useMemo(()=>{const d=Rn($n(a));return Array.from({length:3},()=>({top:`${12+d()*58}%`,left:`${8+d()*80}%`,animationDelay:`${(d()*3.2).toFixed(2)}s`,animationDuration:`${(2.8+d()*1.8).toFixed(2)}s`}))},[a]),v=[L.spaceButton,t?L.iconOnly:"",o?L.ember:"",r!=="md"?L[r]:"",s?L.fullWidth:"",i??""].filter(Boolean).join(" ");return n.jsxs("button",{ref:C,className:v,"data-animated":c?void 0:"false",..._,children:[r!=="micro"&&n.jsx("span",{className:L.stars,"aria-hidden":!0,children:p.map((d,g)=>n.jsx("i",{className:L.star,style:d},g))}),n.jsx("span",{className:L.label,children:u})]})}),kn="_wrap_dwcut_5",qn="_sm_dwcut_30",Ln="_md_dwcut_36",In="_lg_dwcut_42",zn="_orbit_dwcut_49",Mn="_planet_dwcut_58",Sn="_moon_dwcut_73",Dn="_label_dwcut_92",D={wrap:kn,sm:qn,md:Ln,lg:In,orbit:zn,planet:Mn,"sp-loader-planet-pulse":"_sp-loader-planet-pulse_dwcut_1",moon:Sn,"sp-loader-orbit":"_sp-loader-orbit_dwcut_1",label:Dn,"sp-loader-reduced-pulse":"_sp-loader-reduced-pulse_dwcut_1"};function Nn({size:e="md",label:t,className:o}){return n.jsxs("div",{className:m(D.wrap,D[e],o),role:"status","aria-live":"polite","aria-label":t??"Loading",children:[n.jsxs("span",{className:D.orbit,children:[n.jsx("span",{className:D.planet}),n.jsx("span",{className:D.moon})]}),t&&n.jsx("span",{className:D.label,children:t})]})}const En="_content_1bxfq_6",Tn={content:En},Hn=350,Vn=80,oe=8,Z=8;function An({triggerRef:e,tooltipId:t,show:o,hide:r,children:s}){const c=s.props;return l.cloneElement(s,{ref:e,"aria-describedby":t,onPointerEnter:i=>{var u;(u=c.onPointerEnter)==null||u.call(c,i),i.pointerType==="mouse"&&o()},onPointerLeave:i=>{var u;(u=c.onPointerLeave)==null||u.call(c,i),r()},onFocus:i=>{var u;(u=c.onFocus)==null||u.call(c,i),o(!0)},onBlur:i=>{var u;(u=c.onBlur)==null||u.call(c,i),r()},onClick:i=>{var u;(u=c.onClick)==null||u.call(c,i),r()}})}function ae({label:e,side:t="bottom",children:o}){const r=l.useId(),[s,c]=l.useState(!1),[i,u]=l.useState(null),_=l.useRef(null),C=l.useRef(null),a=l.useRef(null),p=l.useRef(null),v=()=>{a.current&&(clearTimeout(a.current),a.current=null),p.current&&(clearTimeout(p.current),p.current=null)},d=(h=!1)=>{if(v(),h){c(!0);return}a.current=setTimeout(()=>c(!0),Hn)},g=()=>{v(),p.current=setTimeout(()=>c(!1),Vn)};return l.useEffect(()=>v,[]),l.useLayoutEffect(()=>{const h=C.current;if(!h)return;if(!s){h.matches(":popover-open")&&h.hidePopover();return}h.matches(":popover-open")||h.showPopover();const w=_.current;if(!w)return;const j=w.getBoundingClientRect(),y=h.offsetWidth,k=h.offsetHeight,R=j.bottom+oe,b=j.top-k-oe,W=R+k<=window.innerHeight-Z,T=b>=Z,G=t==="bottom"?W||!T?R:b:T||!W?b:R,U=Math.min(Math.max(j.left+j.width/2-y/2,Z),Math.max(window.innerWidth-y-Z,Z));u({top:G,left:U})},[s,t,e]),!e||!l.isValidElement(o)?n.jsx(n.Fragment,{children:o}):n.jsxs(n.Fragment,{children:[n.jsx(An,{triggerRef:_,tooltipId:r,show:d,hide:g,children:o}),n.jsx("div",{ref:C,id:r,popover:"auto",role:"tooltip",className:Tn.content,style:i?{top:i.top,left:i.left}:void 0,onToggle:h=>{h.nativeEvent.newState==="closed"&&s&&c(!1)},children:e})]})}const Zn="_group_1kj0b_3",Bn="_segment_1kj0b_14",Pn="_active_1kj0b_34",Q={group:Zn,segment:Bn,active:Pn};function On({options:e,value:t,onValueChange:o,className:r=""}){return n.jsx("div",{className:`${Q.group} ${r}`,role:"group",children:e.map(s=>n.jsx(ae,{label:s.label,side:"bottom",children:n.jsx("button",{type:"button",className:`${Q.segment} ${s.value===t?Q.active:""}`,"aria-label":s.label,"aria-pressed":s.value===t,onClick:()=>{s.value!==t&&o(s.value)},children:s.icon})},s.value))})}const Fn="_root_1bvtq_2",Wn="_trigger_1bvtq_7",Gn="_labelWrap_1bvtq_30",Un="_sizer_1bvtq_8",Xn="_triggerLabel_1bvtq_70",Kn="_chevron_1bvtq_77",Yn="_listbox_1bvtq_82",Qn="_item_1bvtq_110",I={root:Fn,trigger:Wn,labelWrap:Gn,sizer:Un,triggerLabel:Xn,chevron:Kn,listbox:Yn,item:Qn},Jn="_spaceControl_4ou97_17",e1="_spaceSlider_4ou97_74",t1="_spacePanel_4ou97_111",n1="_spaceInput_4ou97_34",o1="_spaceTextArea_4ou97_226",s1={spaceControl:Jn,spaceSlider:e1,spacePanel:t1,spaceInput:n1,spaceTextArea:o1},E=s1,ue=l.createContext(null),r1=()=>{const e=l.useContext(ue);if(!e)throw new Error("Select.Item must be inside a Select");return e},de=(e,t)=>`${e}-${encodeURIComponent(t)}`;function l1(e){const t=[],o=r=>{l.Children.forEach(r,s=>{if(!l.isValidElement(s))return;const c=s.props;s.type===_e&&typeof c.value=="string"?t.push({value:c.value,label:c.children,disabled:c.disabled}):c.children&&o(c.children)})};return o(e),t}function c1({value:e,onValueChange:t,disabled:o,placeholder:r,animated:s=!0,className:c,children:i,...u}){const[_,C]=l.useState(!1),[a,p]=l.useState(null),v=l.useId(),d=l.useRef(null),g=l.useRef(null),h=l.useRef(null),[w,j]=l.useState(null),[y,k]=l.useState(null),R=l.useMemo(()=>l1(i),[i]),b=l.useMemo(()=>R.filter(f=>!f.disabled).map(f=>f.value),[R]),W=l.useMemo(()=>R.map(f=>f.label),[R]),T=l.useCallback(f=>{var $;return(($=R.find(q=>q.value===f))==null?void 0:$.label)??null},[R]);l.useEffect(()=>{if(!_)return;const f=$=>{g.current&&!g.current.contains($.target)&&C(!1)};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[_]),l.useLayoutEffect(()=>{if(!_)return;const f=d.current;if(!f)return;const $=f.getBoundingClientRect();j(f.offsetWidth);const q=window.innerHeight-$.bottom-16;k(Math.min(380,Math.max(120,q)))},[_]),l.useEffect(()=>{var f;_&&((f=h.current)==null||f.focus())},[_]);const G=f=>{p(f??b[0]??null),C(!0)},U=f=>{const $=a?b.indexOf(a):-1,q=Math.min(Math.max($+f,0),b.length-1);p(b[q]??null)},ke=e?T(e):null;return n.jsx(ue.Provider,{value:{value:e,onValueChange:t,disabled:o,open:_,setOpen:C,highlighted:a,setHighlighted:p,listboxId:v,values:b,labelFor:T,triggerRef:d},children:n.jsxs("div",{ref:g,className:I.root,children:[n.jsxs("button",{type:"button",...u,ref:d,disabled:o,className:m(I.trigger,E.spaceControl,"spSelectTrigger",c),"data-animated":s?void 0:"false","data-state":_?"open":"closed","aria-haspopup":"listbox","aria-expanded":_,"aria-controls":v,onClick:()=>_?C(!1):G(e||null),onKeyDown:f=>{(f.key==="ArrowDown"||f.key==="Enter"||f.key===" ")&&(f.preventDefault(),G(e||null))},children:[n.jsxs("span",{className:I.labelWrap,children:[n.jsxs("span",{className:I.sizer,"data-sizer":"","aria-hidden":"true",children:[W.map((f,$)=>n.jsx("span",{children:f},$)),r&&n.jsx("span",{children:r})]}),n.jsx("span",{className:I.triggerLabel,children:ke??r??""})]}),n.jsx("svg",{className:I.chevron,width:"9",height:"9",viewBox:"0 0 9 9","aria-hidden":"true",children:n.jsx("path",{d:"M0.5 3 L4.5 7 L8.5 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})]}),n.jsx("div",{ref:h,id:v,role:"listbox",tabIndex:-1,hidden:!_,"aria-activedescendant":a?de(v,a):void 0,className:m(I.listbox,E.spacePanel),"data-animated":s?void 0:"false",style:w!=null||y!=null?{...w!=null?{"--_select-trigger-width":`${w}px`}:{},...y!=null?{maxHeight:`${y}px`}:{}}:void 0,onKeyDown:f=>{var $,q;f.key==="Escape"?(f.stopPropagation(),C(!1),($=d.current)==null||$.focus()):f.key==="ArrowDown"?(f.preventDefault(),U(1)):f.key==="ArrowUp"?(f.preventDefault(),U(-1)):f.key==="Home"?(f.preventDefault(),p(b[0]??null)):f.key==="End"?(f.preventDefault(),p(b[b.length-1]??null)):f.key==="Enter"||f.key===" "?(f.preventDefault(),a&&(t(a),C(!1),(q=d.current)==null||q.focus())):f.key==="Tab"&&C(!1)},children:i})]})})}function _e({value:e,disabled:t,children:o}){const r=r1(),s=r.value===e,c=r.highlighted===e;return n.jsx("div",{id:de(r.listboxId,e),role:"option","aria-selected":s,"aria-disabled":t||void 0,"data-highlighted":c?"":void 0,className:m(I.item,"spSelectItem"),onMouseEnter:()=>!t&&r.setHighlighted(e),onClick:()=>{var i;t||(r.onValueChange(e),r.setOpen(!1),(i=r.triggerRef.current)==null||i.focus())},children:o})}const i1=Object.assign(c1,{Item:_e}),a1="_root_1lx7y_1",u1="_input_1lx7y_7",d1="_slot_1lx7y_17",J={root:a1,input:u1,slot:d1},_1=l.forwardRef(function({className:t,style:o,animated:r=!0,children:s,...c},i){return n.jsxs("div",{className:m(J.root,E.spaceInput,"spTextFieldRoot",t),"data-animated":r?void 0:"false",style:o,children:[s,n.jsx("input",{...c,ref:i,className:m(J.input,"spTextFieldInput")})]})});function f1({children:e}){return n.jsx("span",{className:J.slot,children:e})}const p1=Object.assign(_1,{Slot:f1}),C1="_root_1qu6w_1",g1="_textarea_1qu6w_6",se={root:C1,textarea:g1},m1=l.forwardRef(function({className:t,style:o,animated:r=!0,...s},c){return n.jsx("div",{className:m(se.root,E.spaceInput,E.spaceTextArea,"spTextFieldRoot",t),"data-animated":r?void 0:"false",style:o,children:n.jsx("textarea",{...s,ref:c,className:m(se.textarea,"spTextAreaInput")})})}),v1="_root_14a1b_1",h1="_track_14a1b_12",x1="_range_14a1b_22",w1="_thumb_14a1b_28",b1="_input_14a1b_38",B={root:v1,track:h1,range:x1,thumb:w1,input:b1},j1=l.forwardRef(function({value:t,onValueChange:o,min:r,max:s,step:c,disabled:i,className:u,"aria-label":_},C){const a=t[0]??r,p=s===r?0:(a-r)/(s-r)*100;return n.jsxs("span",{className:m(B.root,E.spaceSlider,u),"data-disabled":i||void 0,children:[n.jsx("span",{className:m(B.track,"spSliderTrack"),children:n.jsx("span",{className:m(B.range,"spSliderRange"),style:{width:`${p}%`}})}),n.jsx("span",{className:m(B.thumb,"spSliderThumb"),style:{left:`${p}%`}}),n.jsx("input",{ref:C,type:"range",className:m(B.input,"spSliderInput"),value:a,min:r,max:s,step:c,disabled:i,"aria-label":_,onChange:v=>o([Number(v.target.value)])})]})}),y1="_root_1qhel_2",R1="_item_1qhel_8",$1="_selfLabeled_1qhel_15",k1="_input_1qhel_19",q1="_orb_1qhel_35",N={root:y1,item:R1,selfLabeled:$1,input:k1,orb:q1},fe=l.createContext(null);function L1({value:e,onValueChange:t,disabled:o,className:r,children:s}){const c=l.useId();return n.jsx(fe.Provider,{value:{value:e,onValueChange:t,disabled:o,name:c},children:n.jsx("div",{role:"radiogroup",className:m(N.root,r),children:s})})}function I1({value:e,disabled:t,children:o}){const r=l.useContext(fe);if(!r)throw new Error("RadioGroup.Item must be inside a RadioGroup");const s=t||r.disabled,c=n.jsxs(n.Fragment,{children:[n.jsx("input",{type:"radio",className:N.input,name:r.name,value:e,checked:r.value===e,disabled:s,onChange:()=>r.onValueChange(e)}),n.jsx("span",{className:m(N.orb,"spRadioOrb"),"aria-hidden":"true"})]});return o==null?n.jsx("span",{className:N.item,children:c}):n.jsxs("label",{className:m(N.item,N.selfLabeled),children:[c,o]})}const z1=Object.assign(L1,{Item:I1}),M1="_progress_1cre6_16",S1={progress:M1};function D1({value:e,max:t=100,className:o,style:r,...s}){const c=t>0?Math.min(Math.max(e/t*100,0),100):0;return n.jsx("div",{...s,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":t,className:m(S1.progress,o),style:r,children:n.jsx("div",{style:{width:`${c}%`,height:"100%"}})})}const x={width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0};function N1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M3.5 5.00006C3.22386 5.00006 3 5.22392 3 5.50006L3 11.5001C3 11.7762 3.22386 12.0001 3.5 12.0001L11.5 12.0001C11.7761 12.0001 12 11.7762 12 11.5001L12 5.50006C12 5.22392 11.7761 5.00006 11.5 5.00006L10.25 5.00006C9.97386 5.00006 9.75 4.7762 9.75 4.50006C9.75 4.22392 9.97386 4.00006 10.25 4.00006L11.5 4.00006C12.3284 4.00006 13 4.67163 13 5.50006L13 11.5001C13 12.3285 12.3284 13.0001 11.5 13.0001L3.5 13.0001C2.67157 13.0001 2 12.3285 2 11.5001L2 5.50006C2 4.67163 2.67157 4.00006 3.5 4.00006L4.75 4.00006C5.02614 4.00006 5.25 4.22392 5.25 4.50006C5.25 4.7762 5.02614 5.00006 4.75 5.00006L3.5 5.00006ZM7 1.6364L5.5682 3.0682C5.39246 3.24393 5.10754 3.24393 4.9318 3.0682C4.75607 2.89246 4.75607 2.60754 4.9318 2.4318L7.1818 0.181802C7.26619 0.09741 7.38065 0.049999 7.5 0.049999C7.61935 0.049999 7.73381 0.09741 7.8182 0.181802L10.0682 2.4318C10.2439 2.60754 10.2439 2.89246 10.0682 3.0682C9.89246 3.24393 9.60754 3.24393 9.4318 3.0682L8 1.6364L8 8.5C8 8.77614 7.77614 9 7.5 9C7.22386 9 7 8.77614 7 8.5L7 1.6364Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function E1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function T1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function H1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function V1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.25769 1.35248 6.86058 1.92336 7.50002 2.93545C8.13946 1.92336 8.74235 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function A1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2ZM9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2ZM2 9.5C2 9.22386 2.22386 9 2.5 9H5.5C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5ZM9 9.5C9 9.22386 9.22386 9 9.5 9H12.5C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Z1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function B1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function P1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function O1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function F1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31166C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function W1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function G1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function U1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M4.89346 2.35248C3.49195 2.35248 2.35248 3.49359 2.35248 4.90532C2.35248 6.38164 3.20954 7.9168 4.37255 9.33522C5.39396 10.581 6.59464 11.6702 7.50002 12.4778C8.4054 11.6702 9.60608 10.581 10.6275 9.33522C11.7905 7.9168 12.6476 6.38164 12.6476 4.90532C12.6476 3.49359 11.5081 2.35248 10.1066 2.35248C9.27059 2.35248 8.81894 2.64323 8.5397 2.95843C8.27877 3.25295 8.14623 3.58566 8.02501 3.88993C8.00391 3.9429 7.98315 3.99501 7.96211 4.04591C7.88482 4.23294 7.7024 4.35494 7.50002 4.35494C7.29765 4.35494 7.11523 4.23295 7.03793 4.04592C7.01689 3.99501 6.99612 3.94289 6.97502 3.8899C6.8538 3.58564 6.72126 3.25294 6.46034 2.95843C6.18109 2.64323 5.72945 2.35248 4.89346 2.35248ZM1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.0084 1.35248 6.73504 1.76049 7.20884 2.2953C7.32062 2.42147 7.41686 2.55382 7.50002 2.68545C7.58318 2.55382 7.67941 2.42147 7.79119 2.2953C8.265 1.76049 8.99164 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function X1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function K1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Y1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M6.1584 3.13508C5.95694 3.32394 5.94673 3.64036 6.13559 3.84182L9.56499 7.49991L6.13559 11.158C5.94673 11.3595 5.95694 11.6759 6.1584 11.8647C6.35986 12.0536 6.67628 12.0434 6.86514 11.8419L10.6151 7.84182C10.7954 7.64946 10.7954 7.35036 10.6151 7.158L6.86514 3.15801C6.67628 2.95655 6.35986 2.94634 6.1584 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Q1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M8.84182 3.13508C9.04328 3.32394 9.05348 3.64036 8.86462 3.84182L5.43523 7.49991L8.86462 11.158C9.05348 11.3595 9.04328 11.6759 8.84182 11.8647C8.64036 12.0536 8.32394 12.0434 8.13508 11.8419L4.38508 7.84182C4.20477 7.64946 4.20477 7.35036 4.38508 7.158L8.13508 3.15801C8.32394 2.95655 8.64036 2.94634 8.84182 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function J1(e){return n.jsx("svg",{...x,...e,children:n.jsx("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function pe(e){return n.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",...e,children:n.jsx("path",{d:"M11.8 3.2a.6.6 0 0 0-.85 0L7.5 6.65 4.05 3.2a.6.6 0 1 0-.85.85L6.65 7.5 3.2 10.95a.6.6 0 1 0 .85.85L7.5 8.35l3.45 3.45a.6.6 0 0 0 .85-.85L8.35 7.5l3.45-3.45a.6.6 0 0 0 0-.85Z",fill:"currentColor"})})}const eo="_dialog_1qqku_2",to="_inner_1qqku_34",no="_size4_1qqku_39",oo="_title_1qqku_43",so="_closeX_1qqku_51",P={dialog:eo,inner:to,size4:no,title:oo,closeX:so};let Y=0;const Ce=l.createContext(null),F=()=>{const e=l.useContext(Ce);if(!e)throw new Error("Dialog parts must be inside a Dialog");return e};function ge(e){return function({open:o,onOpenChange:r,children:s}){const[c,i]=l.useState(!1),u=o!==void 0,_=u?o:c,C=g=>{u||i(g),r==null||r(g)},a=l.useId(),p=l.useId(),[v,d]=l.useState(!1);return n.jsx(Ce.Provider,{value:{open:_,setOpen:C,titleId:a,descId:p,alert:e,hasDesc:v,setHasDesc:d},children:s})}}const ro=ge(!1),me=(e,t)=>{if(!l.isValidElement(e))return e;const o=e;return l.cloneElement(o,{onClick:r=>{var s,c;(c=(s=o.props).onClick)==null||c.call(s,r),t()}})};function ve({children:e}){const t=F();return n.jsx(n.Fragment,{children:me(e,()=>t.setOpen(!0))})}function ee({children:e}){const t=F();return n.jsx(n.Fragment,{children:me(e,()=>t.setOpen(!1))})}function he({size:e="3",maxWidth:t,className:o,style:r,children:s,...c}){const i=F(),u=l.useRef(null),_=l.useRef(!1),C=l.useRef(!1);return l.useEffect(()=>{const a=u.current;a&&(i.open&&!a.open?a.showModal():!i.open&&a.open&&a.close())},[i.open]),l.useEffect(()=>{if(i.open)return Y+=1,Y===1&&(document.body.style.overflow="hidden"),()=>{Y-=1,Y===0&&(document.body.style.overflow="")}},[i.open]),n.jsx("dialog",{...c,ref:u,role:i.alert?"alertdialog":void 0,"aria-labelledby":i.titleId,"aria-describedby":i.hasDesc?i.descId:void 0,className:m(P.dialog,"spDialog",e==="4"&&P.size4,o),style:{...t?{maxWidth:t}:null,...r},onKeyDownCapture:a=>{var p,v;a.key==="Escape"&&((p=u.current)!=null&&p.querySelector("dialog[open]")||(v=u.current)!=null&&v.querySelector('[role="listbox"]:not([hidden])')&&(_.current=!0))},onCancel:a=>{if(a.preventDefault(),_.current){_.current=!1;return}i.setOpen(!1)},onClose:()=>{i.open&&i.setOpen(!1)},onPointerDown:a=>{C.current=a.target===u.current},onClick:a=>{!i.alert&&a.target===u.current&&C.current&&i.setOpen(!1)},children:n.jsxs("div",{className:P.inner,children:[!i.alert&&n.jsx("button",{type:"button",className:P.closeX,"aria-label":"Close",onClick:()=>i.setOpen(!1),children:n.jsx(pe,{width:16,height:16})}),s]})})}function xe({className:e,...t}){const o=F();return n.jsx(ce,{as:"h2",size:"5",...t,id:o.titleId,className:m(P.title,e)})}function we(e){const t=F(),{setHasDesc:o}=t;return l.useLayoutEffect(()=>(o(!0),()=>o(!1)),[o]),n.jsx(le,{as:"p",...e,id:t.descId})}const lo=Object.assign(ro,{Trigger:ve,Close:ee,Content:he,Title:xe,Description:we}),co=ee,io=ee,ao=Object.assign(ge(!0),{Trigger:ve,Content:he,Title:xe,Description:we,Cancel:co,Action:io}),uo="_menu_1hwyv_1",_o="_label_1hwyv_16",fo="_item_1hwyv_26",po="_danger_1hwyv_45",Co="_separator_1hwyv_49",O={menu:uo,label:_o,item:fo,danger:po,separator:Co},be=l.createContext(null),go=()=>{const e=l.useContext(be);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e},je=l.createContext(null),mo=()=>{const e=l.useContext(je);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e};function vo(e){return e.current?(e.current=!1,!0):!1}function re(e){e.current=!0}function ho({label:e,align:t="start",children:o,...r}){const[s,c]=l.useState(!1),i=l.useId(),u=l.useRef(null),_=l.useRef(null),C=l.useRef(!1),a=l.useRef(!1),[p,v]=l.useState(null);return l.useLayoutEffect(()=>{var g;const d=_.current;if(d)if(s){const h=u.current;if(h){const w=h.getBoundingClientRect(),j=t==="end"?"auto":w.left,y=t==="end"?window.innerWidth-w.right:"auto";v({top:w.bottom+6,left:j,right:y})}d.showPopover(),(g=d.querySelector('[role="menuitem"]'))==null||g.focus()}else d.matches(":popover-open")&&d.hidePopover()},[s,t]),l.useEffect(()=>{if(!s)return;const d=()=>c(!1);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[s]),n.jsx(be.Provider,{value:{open:s,setOpen:c,menuId:i},children:n.jsxs(je.Provider,{value:a,children:[n.jsx(ie,{...r,ref:u,"aria-haspopup":"menu","aria-expanded":s,"aria-controls":i,onClick:d=>{var g;(g=r.onClick)==null||g.call(r,d),!vo(C)&&c(!s)},children:e}),n.jsx("div",{ref:_,id:i,role:"menu",popover:"auto",className:O.menu,style:p?{top:p.top,left:p.left==="auto"?"auto":p.left,right:p.right==="auto"?"auto":p.right}:void 0,onToggle:d=>{if(d.nativeEvent.newState==="closed"){const g=a.current;a.current=!1,g||(C.current=!0,setTimeout(()=>{C.current=!1},300)),s&&c(!1)}},onKeyDown:d=>{var w,j,y,k,R,b;const g=Array.from(((w=_.current)==null?void 0:w.querySelectorAll('[role="menuitem"]'))??[]),h=g.indexOf(document.activeElement);d.key==="ArrowDown"?(d.preventDefault(),(j=g[Math.min(h+1,g.length-1)])==null||j.focus()):d.key==="ArrowUp"?(d.preventDefault(),(y=g[Math.max(h-1,0)])==null||y.focus()):d.key==="Home"?(d.preventDefault(),(k=g[0])==null||k.focus()):d.key==="End"?(d.preventDefault(),(R=g[g.length-1])==null||R.focus()):d.key==="Escape"&&(c(!1),(b=u.current)==null||b.focus())},children:o})]})})}function xo({children:e}){return n.jsx("div",{className:O.label,children:e})}function wo({asChild:e,color:t,onSelect:o,children:r}){const s=go(),c=mo(),i=m(O.item,t==="danger"&&O.danger),u=()=>{re(c),s.setOpen(!1),o==null||o()};if(e&&l.isValidElement(r)){const _=r,{className:C,onClick:a,children:p,role:v,tabIndex:d,...g}=_.props,h=_.ref;return l.createElement(_.type,{key:_.key,ref:h,role:"menuitem",tabIndex:-1,...g,className:m(i,C),onClick:w=>{a==null||a(w),re(c),s.setOpen(!1)}},p)}return n.jsx("button",{type:"button",role:"menuitem",tabIndex:-1,className:i,onClick:u,children:r})}function bo(){return n.jsx("div",{role:"separator",className:O.separator})}const jo=Object.assign(ho,{Item:wo,Separator:bo,Label:xo}),yo="_list_1hc3r_19",Ro="_trigger_1hc3r_28",ye={list:yo,trigger:Ro},Re=l.createContext(null),$e=()=>{const e=l.useContext(Re);if(!e)throw new Error("Tabs parts must be inside a Tabs");return e};function $o({value:e,onValueChange:t,className:o,children:r}){const s=l.useId();return n.jsx(Re.Provider,{value:{value:e,onValueChange:t,id:s},children:n.jsx("div",{className:o,children:r})})}function ko({children:e}){return n.jsx("div",{role:"tablist",className:m(ye.list,"spTabsList"),onKeyDown:t=>{const o=Array.from(t.currentTarget.querySelectorAll('[role="tab"]')),r=o.indexOf(document.activeElement);if(r!==-1){if(t.key==="ArrowRight"){t.preventDefault();const s=o[(r+1)%o.length];s.focus(),s.click()}else if(t.key==="ArrowLeft"){t.preventDefault();const s=o[(r-1+o.length)%o.length];s.focus(),s.click()}else if(t.key==="Home"){t.preventDefault();const s=o[0];s.focus(),s.click()}else if(t.key==="End"){t.preventDefault();const s=o[o.length-1];s.focus(),s.click()}}},children:e})}function qo({value:e,className:t,children:o,...r}){const s=$e(),c=s.value===e;return n.jsx("button",{...r,type:"button",role:"tab",id:`${s.id}-tab-${e}`,"aria-selected":c,"aria-controls":`${s.id}-panel-${e}`,tabIndex:c?0:-1,"data-state":c?"active":"inactive",className:m(ye.trigger,"spTabsTrigger",t),onClick:()=>s.onValueChange(e),children:o})}function Lo({value:e,children:t}){const o=$e();return o.value!==e?null:n.jsx("div",{role:"tabpanel",id:`${o.id}-panel-${e}`,"aria-labelledby":`${o.id}-tab-${e}`,children:t})}const Io=Object.assign($o,{List:ko,Trigger:qo,Content:Lo});exports.AlertDialog=ao;exports.Badge=tn;exports.BookmarkIcon=J1;exports.Box=jt;exports.Button=ie;exports.Card=cn;exports.ChatBubbleIcon=E1;exports.CheckIcon=B1;exports.ChevronDownIcon=K1;exports.ChevronLeftIcon=Q1;exports.ChevronRightIcon=Y1;exports.ChevronUpIcon=X1;exports.Dialog=lo;exports.DropdownMenu=jo;exports.EnterFullScreenIcon=Z1;exports.ExitFullScreenIcon=A1;exports.Flex=bt;exports.Grid=Ht;exports.Heading=ce;exports.HeartFilledIcon=V1;exports.HeartIcon=U1;exports.IconToggle=On;exports.Link=tt;exports.Loader=Nn;exports.MagnifyingGlassIcon=G1;exports.MinusIcon=W1;exports.Pencil1Icon=H1;exports.PersonIcon=F1;exports.PlusIcon=T1;exports.Progress=D1;exports.QuestionMarkCircledIcon=O1;exports.RadioGroup=z1;exports.ScrollArea=dn;exports.Select=i1;exports.Separator=sn;exports.Share2Icon=N1;exports.Slider=j1;exports.Tabs=Io;exports.Text=le;exports.TextArea=m1;exports.TextField=p1;exports.Tooltip=ae;exports.TrashIcon=P1;exports.XIcon=pe;
2
2
  //# sourceMappingURL=index.cjs.map